Version 1.11.6.
[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-05-09 15:21+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30
24 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
25 #: ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr "名前"
28
29 # type: textblock
30 #. type: textblock
31 #: ../src/guestfs.pod:5
32 msgid "guestfs - Library for accessing and modifying virtual machine images"
33 msgstr ""
34
35 # type: =head1
36 #. type: =head1
37 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
38 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
39 #: ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34
40 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
41 #: ../tools/virt-list-partitions.pl:34
42 msgid "SYNOPSIS"
43 msgstr ""
44
45 # type: verbatim
46 #. type: verbatim
47 #: ../src/guestfs.pod:9
48 #, no-wrap
49 msgid ""
50 " #include <guestfs.h>\n"
51 " \n"
52 msgstr ""
53
54 # type: verbatim
55 #. type: verbatim
56 #: ../src/guestfs.pod:11
57 #, no-wrap
58 msgid ""
59 " guestfs_h *g = guestfs_create ();\n"
60 " guestfs_add_drive (g, \"guest.img\");\n"
61 " guestfs_launch (g);\n"
62 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
63 " guestfs_touch (g, \"/hello\");\n"
64 " guestfs_umount (g, \"/\");\n"
65 " guestfs_close (g);\n"
66 "\n"
67 msgstr ""
68
69 # type: verbatim
70 #. type: verbatim
71 #: ../src/guestfs.pod:19
72 #, no-wrap
73 msgid ""
74 " cc prog.c -o prog -lguestfs\n"
75 "or:\n"
76 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
77 "\n"
78 msgstr ""
79
80 # type: =head1
81 #. type: =head1
82 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
83 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
84 #: ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40
85 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
86 #: ../tools/virt-list-partitions.pl:40
87 msgid "DESCRIPTION"
88 msgstr ""
89
90 # type: textblock
91 #. type: textblock
92 #: ../src/guestfs.pod:25
93 msgid ""
94 "Libguestfs is a library for accessing and modifying guest disk images.  "
95 "Amongst the things this is good for: making batch configuration changes to "
96 "guests, getting disk used/free statistics (see also: virt-df), migrating "
97 "between virtualization systems (see also: virt-p2v), performing partial "
98 "backups, performing partial guest clones, cloning guests and changing "
99 "registry/UUID/hostname info, and much else besides."
100 msgstr ""
101
102 # type: textblock
103 #. type: textblock
104 #: ../src/guestfs.pod:33
105 msgid ""
106 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
107 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
108 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
109 "qcow2, vmdk."
110 msgstr ""
111
112 # type: textblock
113 #. type: textblock
114 #: ../src/guestfs.pod:38
115 msgid ""
116 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
117 "what filesystem is in each LV, etc.).  It can also run commands in the "
118 "context of the guest.  Also you can access filesystems over FUSE."
119 msgstr ""
120
121 # type: textblock
122 #. type: textblock
123 #: ../src/guestfs.pod:43
124 msgid ""
125 "Libguestfs is a library that can be linked with C and C++ management "
126 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
127 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
128 "line."
129 msgstr ""
130
131 # type: textblock
132 #. type: textblock
133 #: ../src/guestfs.pod:48
134 msgid ""
135 "You don't need to be root to use libguestfs, although obviously you do need "
136 "enough permissions to access the disk images."
137 msgstr ""
138
139 # type: textblock
140 #. type: textblock
141 #: ../src/guestfs.pod:51
142 msgid ""
143 "Libguestfs is a large API because it can do many things.  For a gentle "
144 "introduction, please read the L</API OVERVIEW> section next."
145 msgstr ""
146
147 # type: textblock
148 #. type: textblock
149 #: ../src/guestfs.pod:54
150 msgid ""
151 "There are also some example programs in the L<guestfs-examples(3)> manual "
152 "page."
153 msgstr ""
154
155 # type: =head1
156 #. type: =head1
157 #: ../src/guestfs.pod:57
158 msgid "API OVERVIEW"
159 msgstr ""
160
161 # type: textblock
162 #. type: textblock
163 #: ../src/guestfs.pod:59
164 msgid ""
165 "This section provides a gentler overview of the libguestfs API.  We also try "
166 "to group API calls together, where that may not be obvious from reading "
167 "about the individual calls in the main section of this manual."
168 msgstr ""
169
170 # type: =head2
171 #. type: =head2
172 #: ../src/guestfs.pod:64
173 msgid "HANDLES"
174 msgstr ""
175
176 # type: textblock
177 #. type: textblock
178 #: ../src/guestfs.pod:66
179 msgid ""
180 "Before you can use libguestfs calls, you have to create a handle.  Then you "
181 "must add at least one disk image to the handle, followed by launching the "
182 "handle, then performing whatever operations you want, and finally closing "
183 "the handle.  By convention we use the single letter C<g> for the name of the "
184 "handle variable, although of course you can use any name you want."
185 msgstr ""
186
187 # type: textblock
188 #. type: textblock
189 #: ../src/guestfs.pod:73
190 msgid "The general structure of all libguestfs-using programs looks like this:"
191 msgstr ""
192
193 # type: verbatim
194 #. type: verbatim
195 #: ../src/guestfs.pod:76
196 #, no-wrap
197 msgid ""
198 " guestfs_h *g = guestfs_create ();\n"
199 " \n"
200 msgstr ""
201
202 # type: verbatim
203 #. type: verbatim
204 #: ../src/guestfs.pod:78
205 #, no-wrap
206 msgid ""
207 " /* Call guestfs_add_drive additional times if there are\n"
208 "  * multiple disk images.\n"
209 "  */\n"
210 " guestfs_add_drive (g, \"guest.img\");\n"
211 " \n"
212 msgstr ""
213
214 # type: verbatim
215 #. type: verbatim
216 #: ../src/guestfs.pod:83
217 #, no-wrap
218 msgid ""
219 " /* Most manipulation calls won't work until you've launched\n"
220 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
221 "  * and _before_ other commands.\n"
222 "  */\n"
223 " guestfs_launch (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #. type: verbatim
229 #: ../src/guestfs.pod:89
230 #, no-wrap
231 msgid ""
232 " /* Now you can examine what partitions, LVs etc are available.\n"
233 "  */\n"
234 " char **partitions = guestfs_list_partitions (g);\n"
235 " char **logvols = guestfs_lvs (g);\n"
236 " \n"
237 msgstr ""
238
239 # type: verbatim
240 #. type: verbatim
241 #: ../src/guestfs.pod:94
242 #, no-wrap
243 msgid ""
244 " /* To access a filesystem in the image, you must mount it.\n"
245 "  */\n"
246 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
247 " \n"
248 msgstr ""
249
250 #. type: verbatim
251 #: ../src/guestfs.pod:98
252 #, no-wrap
253 msgid ""
254 " /* Now you can perform filesystem actions on the guest\n"
255 "  * disk image.\n"
256 "  */\n"
257 " guestfs_touch (g, \"/hello\");\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #. type: verbatim
263 #: ../src/guestfs.pod:103
264 #, no-wrap
265 msgid ""
266 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
267 "  * it is done automatically when you close the handle.  See\n"
268 "  * discussion of autosync in this page.\n"
269 "  */\n"
270 " guestfs_sync (g);\n"
271 " \n"
272 msgstr ""
273
274 # type: verbatim
275 #. type: verbatim
276 #: ../src/guestfs.pod:109
277 #, no-wrap
278 msgid ""
279 " /* Close the handle 'g'. */\n"
280 " guestfs_close (g);\n"
281 "\n"
282 msgstr ""
283
284 # type: textblock
285 #. type: textblock
286 #: ../src/guestfs.pod:112
287 msgid ""
288 "The code above doesn't include any error checking.  In real code you should "
289 "check return values carefully for errors.  In general all functions that "
290 "return integers return C<-1> on error, and all functions that return "
291 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
292 "how to handle errors, and consult the documentation for each function call "
293 "below to see precisely how they return error indications.  See L<guestfs-"
294 "examples(3)> for fully worked examples."
295 msgstr ""
296
297 # type: =head2
298 #. type: =head2
299 #: ../src/guestfs.pod:121
300 msgid "DISK IMAGES"
301 msgstr ""
302
303 # type: textblock
304 #. type: textblock
305 #: ../src/guestfs.pod:123
306 msgid ""
307 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
308 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
309 "actual block device, or simply an empty file of zeroes that you have created "
310 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
311 "of these."
312 msgstr ""
313
314 # type: textblock
315 #. type: textblock
316 #: ../src/guestfs.pod:129
317 msgid ""
318 "The call you should use in modern code for adding drives is L</"
319 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
320 "specifying that the format is raw, do:"
321 msgstr ""
322
323 # type: verbatim
324 #. type: verbatim
325 #: ../src/guestfs.pod:133
326 #, no-wrap
327 msgid ""
328 " guestfs_add_drive_opts (g, filename,\n"
329 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
330 "                         -1);\n"
331 "\n"
332 msgstr ""
333
334 # type: textblock
335 #. type: textblock
336 #: ../src/guestfs.pod:137
337 msgid "You can add a disk read-only using:"
338 msgstr ""
339
340 # type: verbatim
341 #. type: verbatim
342 #: ../src/guestfs.pod:139
343 #, no-wrap
344 msgid ""
345 " guestfs_add_drive_opts (g, filename,\n"
346 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
347 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
348 "                         -1);\n"
349 "\n"
350 msgstr ""
351
352 # type: textblock
353 #. type: textblock
354 #: ../src/guestfs.pod:144
355 msgid ""
356 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
357 "libguestfs won't modify the file."
358 msgstr ""
359
360 # type: textblock
361 #. type: textblock
362 #: ../src/guestfs.pod:147
363 msgid ""
364 "Be extremely cautious if the disk image is in use, eg. if it is being used "
365 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
366 "corruption, but adding it read-only is safe."
367 msgstr ""
368
369 # type: textblock
370 #. type: textblock
371 #: ../src/guestfs.pod:151
372 msgid ""
373 "You must add at least one disk image, and you may add multiple disk images.  "
374 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
375 "first one you added), C</dev/sdb> (for the second one you added), etc."
376 msgstr ""
377
378 # type: textblock
379 #. type: textblock
380 #: ../src/guestfs.pod:156
381 msgid ""
382 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
383 "can call L</guestfs_list_devices> to get a list of the device names, in the "
384 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
385 msgstr ""
386
387 # type: =head2
388 #. type: =head2
389 #: ../src/guestfs.pod:161
390 msgid "MOUNTING"
391 msgstr ""
392
393 #. type: textblock
394 #: ../src/guestfs.pod:163
395 msgid ""
396 "Before you can read or write files, create directories and so on in a disk "
397 "image that contains filesystems, you have to mount those filesystems using "
398 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
399 "a disk image contains (for example) one partition with a filesystem on that "
400 "partition, then you can mount it directly:"
401 msgstr ""
402
403 #. type: verbatim
404 #: ../src/guestfs.pod:170
405 #, no-wrap
406 msgid ""
407 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
408 "\n"
409 msgstr ""
410
411 #. type: textblock
412 #: ../src/guestfs.pod:172
413 msgid ""
414 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
415 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
416 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
417 "that these are libguestfs virtual devices, and are nothing to do with host "
418 "devices."
419 msgstr ""
420
421 #. type: textblock
422 #: ../src/guestfs.pod:178
423 msgid ""
424 "If you are given a disk image and you don't know what it contains then you "
425 "have to find out.  Libguestfs can do that too: use L</"
426 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
427 "LVs, and either try mounting each to see what is mountable, or else examine "
428 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
429 "filesystems, use L</guestfs_list_filesystems>."
430 msgstr ""
431
432 #. type: textblock
433 #: ../src/guestfs.pod:186
434 msgid ""
435 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
436 "L</INSPECTION> below).  But you might find it easier to look at higher level "
437 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
438 msgstr ""
439
440 #. type: textblock
441 #: ../src/guestfs.pod:191
442 msgid ""
443 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
444 "several other variations of the C<guestfs_mount_*> call."
445 msgstr ""
446
447 # type: =head2
448 #. type: =head2
449 #: ../src/guestfs.pod:194
450 msgid "FILESYSTEM ACCESS AND MODIFICATION"
451 msgstr ""
452
453 # type: textblock
454 #. type: textblock
455 #: ../src/guestfs.pod:196
456 msgid ""
457 "The majority of the libguestfs API consists of fairly low-level calls for "
458 "accessing and modifying the files, directories, symlinks etc on mounted "
459 "filesystems.  There are over a hundred such calls which you can find listed "
460 "in detail below in this man page, and we don't even pretend to cover them "
461 "all in this overview."
462 msgstr ""
463
464 # type: textblock
465 #. type: textblock
466 #: ../src/guestfs.pod:202
467 msgid ""
468 "Specify filenames as full paths, starting with C<\"/\"> and including the "
469 "mount point."
470 msgstr ""
471
472 # type: textblock
473 #. type: textblock
474 #: ../src/guestfs.pod:205
475 msgid ""
476 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
477 "the file called C<\"etc/passwd\"> then you could do:"
478 msgstr ""
479
480 # type: verbatim
481 #. type: verbatim
482 #: ../src/guestfs.pod:208
483 #, no-wrap
484 msgid ""
485 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
486 "\n"
487 msgstr ""
488
489 # type: textblock
490 #. type: textblock
491 #: ../src/guestfs.pod:210
492 msgid ""
493 "This would return C<data> as a newly allocated buffer containing the full "
494 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
495 "or C<NULL> if there was an error."
496 msgstr ""
497
498 # type: textblock
499 #. type: textblock
500 #: ../src/guestfs.pod:214
501 msgid ""
502 "As another example, to create a top-level directory on that filesystem "
503 "called C<\"var\"> you would do:"
504 msgstr ""
505
506 # type: verbatim
507 #. type: verbatim
508 #: ../src/guestfs.pod:217
509 #, no-wrap
510 msgid ""
511 " guestfs_mkdir (g, \"/var\");\n"
512 "\n"
513 msgstr ""
514
515 # type: textblock
516 #. type: textblock
517 #: ../src/guestfs.pod:219
518 msgid "To create a symlink you could do:"
519 msgstr ""
520
521 # type: verbatim
522 #. type: verbatim
523 #: ../src/guestfs.pod:221
524 #, no-wrap
525 msgid ""
526 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
527 "               \"/etc/rc3.d/S30portmap\");\n"
528 "\n"
529 msgstr ""
530
531 # type: textblock
532 #. type: textblock
533 #: ../src/guestfs.pod:224
534 msgid ""
535 "Libguestfs will reject attempts to use relative paths and there is no "
536 "concept of a current working directory."
537 msgstr ""
538
539 # type: textblock
540 #. type: textblock
541 #: ../src/guestfs.pod:227
542 msgid ""
543 "Libguestfs can return errors in many situations: for example if the "
544 "filesystem isn't writable, or if a file or directory that you requested "
545 "doesn't exist.  If you are using the C API (documented here)  you have to "
546 "check for those error conditions after each call.  (Other language bindings "
547 "turn these errors into exceptions)."
548 msgstr ""
549
550 # type: textblock
551 #. type: textblock
552 #: ../src/guestfs.pod:233
553 msgid ""
554 "File writes are affected by the per-handle umask, set by calling L</"
555 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
556 msgstr ""
557
558 # type: =head2
559 #. type: =head2
560 #: ../src/guestfs.pod:236
561 msgid "PARTITIONING"
562 msgstr ""
563
564 # type: textblock
565 #. type: textblock
566 #: ../src/guestfs.pod:238
567 msgid ""
568 "Libguestfs contains API calls to read, create and modify partition tables on "
569 "disk images."
570 msgstr ""
571
572 # type: textblock
573 #. type: textblock
574 #: ../src/guestfs.pod:241
575 msgid ""
576 "In the common case where you want to create a single partition covering the "
577 "whole disk, you should use the L</guestfs_part_disk> call:"
578 msgstr ""
579
580 # type: verbatim
581 #. type: verbatim
582 #: ../src/guestfs.pod:245
583 #, no-wrap
584 msgid ""
585 " const char *parttype = \"mbr\";\n"
586 " if (disk_is_larger_than_2TB)\n"
587 "   parttype = \"gpt\";\n"
588 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
589 "\n"
590 msgstr ""
591
592 # type: textblock
593 #. type: textblock
594 #: ../src/guestfs.pod:250
595 msgid ""
596 "Obviously this effectively wipes anything that was on that disk image before."
597 msgstr ""
598
599 # type: =head2
600 #. type: =head2
601 #: ../src/guestfs.pod:253
602 msgid "LVM2"
603 msgstr ""
604
605 # type: textblock
606 #. type: textblock
607 #: ../src/guestfs.pod:255
608 msgid ""
609 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
610 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
611 "you familiarize yourself with the concepts of physical volumes, volume "
612 "groups and logical volumes."
613 msgstr ""
614
615 # type: textblock
616 #. type: textblock
617 #: ../src/guestfs.pod:260
618 msgid ""
619 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
620 "tldp.org/HOWTO/LVM-HOWTO/>."
621 msgstr ""
622
623 # type: =head2
624 #. type: =head2
625 #: ../src/guestfs.pod:263
626 msgid "DOWNLOADING"
627 msgstr ""
628
629 #. type: textblock
630 #: ../src/guestfs.pod:265
631 msgid ""
632 "Use L</guestfs_cat> to download small, text only files.  This call is "
633 "limited to files which are less than 2 MB and which cannot contain any ASCII "
634 "NUL (C<\\0>) characters.  However the API is very simple to use."
635 msgstr ""
636
637 # type: textblock
638 #. type: textblock
639 #: ../src/guestfs.pod:269
640 msgid ""
641 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
642 "bit data, since it returns a (pointer, size) pair.  However it is still "
643 "limited to \"small\" files, less than 2 MB."
644 msgstr ""
645
646 # type: textblock
647 #. type: textblock
648 #: ../src/guestfs.pod:273
649 msgid ""
650 "L</guestfs_download> can be used to download any file, with no limits on "
651 "content or size (even files larger than 4 GB)."
652 msgstr ""
653
654 # type: textblock
655 #. type: textblock
656 #: ../src/guestfs.pod:276
657 msgid ""
658 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
659 msgstr ""
660
661 # type: =head2
662 #. type: =head2
663 #: ../src/guestfs.pod:279
664 msgid "UPLOADING"
665 msgstr ""
666
667 # type: textblock
668 #. type: textblock
669 #: ../src/guestfs.pod:281
670 msgid ""
671 "It's often the case that you want to write a file or files to the disk image."
672 msgstr ""
673
674 # type: textblock
675 #. type: textblock
676 #: ../src/guestfs.pod:284
677 msgid ""
678 "To write a small file with fixed content, use L</guestfs_write>.  To create "
679 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
680 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
681 "of other functions for creating test files, for example L</guestfs_fill> and "
682 "L</guestfs_fill_pattern>."
683 msgstr ""
684
685 # type: textblock
686 #. type: textblock
687 #: ../src/guestfs.pod:290
688 msgid ""
689 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
690 "file content or size (even files larger than 4 GB)."
691 msgstr ""
692
693 # type: textblock
694 #. type: textblock
695 #: ../src/guestfs.pod:293
696 msgid ""
697 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
698 msgstr ""
699
700 # type: textblock
701 #. type: textblock
702 #: ../src/guestfs.pod:295
703 msgid ""
704 "However the fastest way to upload I<large numbers of arbitrary files> is to "
705 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
706 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
707 "in a predictable way (eg. adding it last after all other drives) then you "
708 "can get the device name from L</guestfs_list_devices> and mount it directly "
709 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
710 "portable between kernel versions, and they don't support labels or UUIDs.  "
711 "If you want to pre-build an image or you need to mount it using a label or "
712 "UUID, use an ISO image instead."
713 msgstr ""
714
715 # type: =head2
716 #. type: =head2
717 #: ../src/guestfs.pod:306
718 msgid "COPYING"
719 msgstr ""
720
721 # type: textblock
722 #. type: textblock
723 #: ../src/guestfs.pod:308
724 msgid ""
725 "There are various different commands for copying between files and devices "
726 "and in and out of the guest filesystem.  These are summarised in the table "
727 "below."
728 msgstr ""
729
730 # type: =item
731 #. type: =item
732 #: ../src/guestfs.pod:314
733 msgid "B<file> to B<file>"
734 msgstr ""
735
736 # type: textblock
737 #. type: textblock
738 #: ../src/guestfs.pod:316
739 msgid ""
740 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
741 "directories recursively."
742 msgstr ""
743
744 # type: =item
745 #. type: =item
746 #: ../src/guestfs.pod:319
747 msgid "B<file or device> to B<file or device>"
748 msgstr ""
749
750 # type: textblock
751 #. type: textblock
752 #: ../src/guestfs.pod:321
753 msgid ""
754 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
755 "devices in the guest."
756 msgstr ""
757
758 # type: textblock
759 #. type: textblock
760 #: ../src/guestfs.pod:324
761 msgid "Example: duplicate the contents of an LV:"
762 msgstr ""
763
764 # type: verbatim
765 #. type: verbatim
766 #: ../src/guestfs.pod:326
767 #, no-wrap
768 msgid ""
769 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
770 "\n"
771 msgstr ""
772
773 # type: textblock
774 #. type: textblock
775 #: ../src/guestfs.pod:328
776 msgid ""
777 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
778 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
779 "guestfs_copy_size>."
780 msgstr ""
781
782 # type: =item
783 #. type: =item
784 #: ../src/guestfs.pod:332
785 msgid "B<file on the host> to B<file or device>"
786 msgstr ""
787
788 # type: textblock
789 #. type: textblock
790 #: ../src/guestfs.pod:334
791 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
792 msgstr ""
793
794 # type: =item
795 #. type: =item
796 #: ../src/guestfs.pod:336
797 msgid "B<file or device> to B<file on the host>"
798 msgstr ""
799
800 # type: textblock
801 #. type: textblock
802 #: ../src/guestfs.pod:338
803 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
804 msgstr ""
805
806 # type: =head2
807 #. type: =head2
808 #: ../src/guestfs.pod:342
809 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
810 msgstr ""
811
812 # type: textblock
813 #. type: textblock
814 #: ../src/guestfs.pod:344
815 msgid ""
816 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
817 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
818 "appears you can only upload and download to files.  However many Un*x-like "
819 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
820 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
821 "and arbitrary file descriptor N."
822 msgstr ""
823
824 # type: textblock
825 #. type: textblock
826 #: ../src/guestfs.pod:352
827 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
828 msgstr ""
829
830 #. type: verbatim
831 #: ../src/guestfs.pod:355
832 #, no-wrap
833 msgid ""
834 " guestfs_download (g, filename, \"/dev/stdout\");\n"
835 "\n"
836 msgstr ""
837
838 #. type: textblock
839 #: ../src/guestfs.pod:357
840 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
841 msgstr ""
842
843 #. type: verbatim
844 #: ../src/guestfs.pod:359
845 #, no-wrap
846 msgid ""
847 " char devfd[64];\n"
848 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
849 " guestfs_tar_out (g, \"/\", devfd);\n"
850 "\n"
851 msgstr ""
852
853 # type: =head2
854 #. type: =head2
855 #: ../src/guestfs.pod:363
856 msgid "LISTING FILES"
857 msgstr ""
858
859 # type: textblock
860 #. type: textblock
861 #: ../src/guestfs.pod:365
862 msgid ""
863 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
864 "L<guestfish(1)>-equivalent command C<ll>)."
865 msgstr ""
866
867 # type: textblock
868 #. type: textblock
869 #: ../src/guestfs.pod:368
870 msgid ""
871 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
872 "programs, as a flat list of strings."
873 msgstr ""
874
875 # type: textblock
876 #. type: textblock
877 #: ../src/guestfs.pod:371
878 msgid ""
879 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
880 "directory, plus additional information about each one.  It is more "
881 "equivalent to using the L<readdir(3)> call on a local filesystem."
882 msgstr ""
883
884 # type: textblock
885 #. type: textblock
886 #: ../src/guestfs.pod:375
887 msgid ""
888 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
889 msgstr ""
890
891 # type: =head2
892 #. type: =head2
893 #: ../src/guestfs.pod:378
894 msgid "RUNNING COMMANDS"
895 msgstr ""
896
897 # type: textblock
898 #. type: textblock
899 #: ../src/guestfs.pod:380
900 msgid ""
901 "Although libguestfs is primarily an API for manipulating files inside guest "
902 "images, we also provide some limited facilities for running commands inside "
903 "guests."
904 msgstr ""
905
906 # type: textblock
907 #. type: textblock
908 #: ../src/guestfs.pod:384
909 msgid "There are many limitations to this:"
910 msgstr ""
911
912 # type: =item
913 #. type: =item
914 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
915 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
916 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
917 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
918 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
919 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
920 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
921 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
922 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
923 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2008 ../src/guestfs.pod:2013
924 #: ../src/guestfs.pod:2019 ../src/guestfs.pod:2027 ../src/guestfs.pod:2381
925 #: ../src/guestfs.pod:2387 ../src/guestfs.pod:2392 ../src/guestfs.pod:2398
926 #: ../src/guestfs.pod: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:1606
931 #: ../src/guestfs-actions.pod:1610 ../src/guestfs-actions.pod:1614
932 #: ../src/guestfs-actions.pod:1618 ../src/guestfs-actions.pod:1626
933 #: ../src/guestfs-actions.pod:1630 ../src/guestfs-actions.pod:1634
934 #: ../src/guestfs-actions.pod:1644 ../src/guestfs-actions.pod:1648
935 #: ../src/guestfs-actions.pod:1652 ../src/guestfs-actions.pod:1790
936 #: ../src/guestfs-actions.pod:1794 ../src/guestfs-actions.pod:1799
937 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1865
938 #: ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1874
939 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
940 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
941 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
942 #: ../fish/guestfish-actions.pod:385 ../fish/guestfish-actions.pod:393
943 #: ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407
944 #: ../fish/guestfish-actions.pod:1077 ../fish/guestfish-actions.pod:1081
945 #: ../fish/guestfish-actions.pod:1085 ../fish/guestfish-actions.pod:1089
946 #: ../fish/guestfish-actions.pod:1097 ../fish/guestfish-actions.pod:1101
947 #: ../fish/guestfish-actions.pod:1105 ../fish/guestfish-actions.pod:1115
948 #: ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123
949 #: ../fish/guestfish-actions.pod:1213 ../fish/guestfish-actions.pod:1217
950 #: ../fish/guestfish-actions.pod:1222 ../fish/guestfish-actions.pod:1227
951 #: ../fish/guestfish-actions.pod:1269 ../fish/guestfish-actions.pod:1273
952 #: ../fish/guestfish-actions.pod:1278 ../tools/virt-win-reg.pl:536
953 #: ../tools/virt-win-reg.pl:542 ../tools/virt-win-reg.pl:548
954 msgid "*"
955 msgstr ""
956
957 # type: textblock
958 #. type: textblock
959 #: ../src/guestfs.pod:390
960 msgid ""
961 "The kernel version that the command runs under will be different from what "
962 "it expects."
963 msgstr ""
964
965 # type: textblock
966 #. type: textblock
967 #: ../src/guestfs.pod:395
968 msgid ""
969 "If the command needs to communicate with daemons, then most likely they "
970 "won't be running."
971 msgstr ""
972
973 # type: textblock
974 #. type: textblock
975 #: ../src/guestfs.pod:400
976 msgid "The command will be running in limited memory."
977 msgstr ""
978
979 # type: textblock
980 #. type: textblock
981 #: ../src/guestfs.pod:404
982 msgid ""
983 "The network may not be available unless you enable it (see L</"
984 "guestfs_set_network>)."
985 msgstr ""
986
987 # type: textblock
988 #. type: textblock
989 #: ../src/guestfs.pod:409
990 msgid "Only supports Linux guests (not Windows, BSD, etc)."
991 msgstr ""
992
993 # type: textblock
994 #. type: textblock
995 #: ../src/guestfs.pod:413
996 msgid ""
997 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
998 msgstr ""
999
1000 # type: textblock
1001 #. type: textblock
1002 #: ../src/guestfs.pod:418
1003 msgid ""
1004 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1005 "See L</SELINUX> in this manpage."
1006 msgstr ""
1007
1008 # type: textblock
1009 #. type: textblock
1010 #: ../src/guestfs.pod:423
1011 msgid ""
1012 "I<Security:> It is not safe to run commands from untrusted, possibly "
1013 "malicious guests.  These commands may attempt to exploit your program by "
1014 "sending unexpected output.  They could also try to exploit the Linux kernel "
1015 "or qemu provided by the libguestfs appliance.  They could use the network "
1016 "provided by the libguestfs appliance to bypass ordinary network partitions "
1017 "and firewalls.  They could use the elevated privileges or different SELinux "
1018 "context of your program to their advantage."
1019 msgstr ""
1020
1021 # type: textblock
1022 #. type: textblock
1023 #: ../src/guestfs.pod:432
1024 msgid ""
1025 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1026 "(a script which runs when the guest next boots normally), and to have this "
1027 "script run the commands you want in the normal context of the running guest, "
1028 "network security and so on.  For information about other security issues, "
1029 "see L</SECURITY>."
1030 msgstr ""
1031
1032 # type: textblock
1033 #. type: textblock
1034 #: ../src/guestfs.pod:440
1035 msgid ""
1036 "The two main API calls to run commands are L</guestfs_command> and L</"
1037 "guestfs_sh> (there are also variations)."
1038 msgstr ""
1039
1040 # type: textblock
1041 #. type: textblock
1042 #: ../src/guestfs.pod:443
1043 msgid ""
1044 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1045 "shell globs, redirections, etc will work."
1046 msgstr ""
1047
1048 # type: =head2
1049 #. type: =head2
1050 #: ../src/guestfs.pod:446
1051 msgid "CONFIGURATION FILES"
1052 msgstr ""
1053
1054 # type: textblock
1055 #. type: textblock
1056 #: ../src/guestfs.pod:448
1057 msgid ""
1058 "To read and write configuration files in Linux guest filesystems, we "
1059 "strongly recommend using Augeas.  For example, Augeas understands how to "
1060 "read and write, say, a Linux shadow password file or X.org configuration "
1061 "file, and so avoids you having to write that code."
1062 msgstr ""
1063
1064 # type: textblock
1065 #. type: textblock
1066 #: ../src/guestfs.pod:453
1067 msgid ""
1068 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1069 "document Augeas itself here because there is excellent documentation on the "
1070 "L<http://augeas.net/> website."
1071 msgstr ""
1072
1073 # type: textblock
1074 #. type: textblock
1075 #: ../src/guestfs.pod:457
1076 msgid ""
1077 "If you don't want to use Augeas (you fool!) then try calling L</"
1078 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1079 "over."
1080 msgstr ""
1081
1082 # type: =head2
1083 #. type: =head2
1084 #: ../src/guestfs.pod:461
1085 msgid "SELINUX"
1086 msgstr ""
1087
1088 # type: textblock
1089 #. type: textblock
1090 #: ../src/guestfs.pod:463
1091 msgid ""
1092 "We support SELinux guests.  To ensure that labeling happens correctly in "
1093 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1094 msgstr ""
1095
1096 # type: =item
1097 #. type: =item
1098 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1099 #: ../src/guestfs.pod:2426
1100 msgid "1."
1101 msgstr ""
1102
1103 # type: textblock
1104 #. type: textblock
1105 #: ../src/guestfs.pod:471
1106 msgid "Before launching, do:"
1107 msgstr ""
1108
1109 # type: verbatim
1110 #. type: verbatim
1111 #: ../src/guestfs.pod:473
1112 #, no-wrap
1113 msgid ""
1114 " guestfs_set_selinux (g, 1);\n"
1115 "\n"
1116 msgstr ""
1117
1118 # type: =item
1119 #. type: =item
1120 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1121 #: ../src/guestfs.pod:2451
1122 msgid "2."
1123 msgstr ""
1124
1125 # type: textblock
1126 #. type: textblock
1127 #: ../src/guestfs.pod:477
1128 msgid ""
1129 "After mounting the guest's filesystem(s), load the policy.  This is best "
1130 "done by running the L<load_policy(8)> command in the guest itself:"
1131 msgstr ""
1132
1133 # type: verbatim
1134 #. type: verbatim
1135 #: ../src/guestfs.pod:481
1136 #, no-wrap
1137 msgid ""
1138 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1139 "\n"
1140 msgstr ""
1141
1142 # type: textblock
1143 #. type: textblock
1144 #: ../src/guestfs.pod:483
1145 msgid ""
1146 "(Older versions of C<load_policy> require you to specify the name of the "
1147 "policy file)."
1148 msgstr ""
1149
1150 # type: =item
1151 #. type: =item
1152 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1153 msgid "3."
1154 msgstr ""
1155
1156 # type: textblock
1157 #. type: textblock
1158 #: ../src/guestfs.pod:488
1159 msgid ""
1160 "Optionally, set the security context for the API.  The correct security "
1161 "context to use can only be known by inspecting the guest.  As an example:"
1162 msgstr ""
1163
1164 # type: verbatim
1165 #. type: verbatim
1166 #: ../src/guestfs.pod:492
1167 #, no-wrap
1168 msgid ""
1169 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1170 "\n"
1171 msgstr ""
1172
1173 # type: textblock
1174 #. type: textblock
1175 #: ../src/guestfs.pod:496
1176 msgid "This will work for running commands and editing existing files."
1177 msgstr ""
1178
1179 # type: textblock
1180 #. type: textblock
1181 #: ../src/guestfs.pod:498
1182 msgid ""
1183 "When new files are created, you may need to label them explicitly, for "
1184 "example by running the external command C<restorecon pathname>."
1185 msgstr ""
1186
1187 # type: =head2
1188 #. type: =head2
1189 #: ../src/guestfs.pod:502
1190 msgid "UMASK"
1191 msgstr ""
1192
1193 # type: textblock
1194 #. type: textblock
1195 #: ../src/guestfs.pod:504
1196 msgid ""
1197 "Certain calls are affected by the current file mode creation mask (the "
1198 "\"umask\").  In particular ones which create files or directories, such as "
1199 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1200 "either the default mode that the file is created with or modifies the mode "
1201 "that you supply."
1202 msgstr ""
1203
1204 # type: textblock
1205 #. type: textblock
1206 #: ../src/guestfs.pod:510
1207 msgid ""
1208 "The default umask is C<022>, so files are created with modes such as C<0644> "
1209 "and directories with C<0755>."
1210 msgstr ""
1211
1212 # type: textblock
1213 #. type: textblock
1214 #: ../src/guestfs.pod:513
1215 msgid ""
1216 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1217 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1218 "guestfs_chmod> after creating each file or directory."
1219 msgstr ""
1220
1221 # type: textblock
1222 #. type: textblock
1223 #: ../src/guestfs.pod:517
1224 msgid "For more information about umask, see L<umask(2)>."
1225 msgstr ""
1226
1227 # type: =head1
1228 #. type: =head1
1229 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:767
1230 msgid "ENCRYPTED DISKS"
1231 msgstr ""
1232
1233 # type: textblock
1234 #. type: textblock
1235 #: ../src/guestfs.pod:521
1236 msgid ""
1237 "Libguestfs allows you to access Linux guests which have been encrypted using "
1238 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1239 "standard.  This includes nearly all whole disk encryption systems used by "
1240 "modern Linux guests."
1241 msgstr ""
1242
1243 # type: textblock
1244 #. type: textblock
1245 #: ../src/guestfs.pod:527
1246 msgid ""
1247 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1248 "returns the string C<crypto_LUKS>)."
1249 msgstr ""
1250
1251 # type: textblock
1252 #. type: textblock
1253 #: ../src/guestfs.pod:530
1254 msgid ""
1255 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1256 "will require the passphrase!"
1257 msgstr ""
1258
1259 # type: textblock
1260 #. type: textblock
1261 #: ../src/guestfs.pod:533
1262 msgid ""
1263 "Opening a LUKS device creates a new device mapper device called C</dev/"
1264 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1265 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1266 "from and encrypted to the underlying block device respectively."
1267 msgstr ""
1268
1269 # type: textblock
1270 #. type: textblock
1271 #: ../src/guestfs.pod:539
1272 msgid ""
1273 "LVM volume groups on the device can be made visible by calling L</"
1274 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1275 "(s) can now be mounted in the usual way."
1276 msgstr ""
1277
1278 # type: textblock
1279 #. type: textblock
1280 #: ../src/guestfs.pod:543
1281 msgid ""
1282 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1283 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1284 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1285 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1286 "underlying encrypted block device)."
1287 msgstr ""
1288
1289 # type: =head2
1290 #. type: =head2
1291 #: ../src/guestfs.pod:550
1292 msgid "INSPECTION"
1293 msgstr ""
1294
1295 #. type: textblock
1296 #: ../src/guestfs.pod:552
1297 msgid ""
1298 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1299 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1300 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1301 "version 1.5.3 the most frequently used part of this library has been "
1302 "rewritten in C and moved into the core code)."
1303 msgstr ""
1304
1305 # type: textblock
1306 #. type: textblock
1307 #: ../src/guestfs.pod:559
1308 msgid ""
1309 "Add all disks belonging to the unknown virtual machine and call L</"
1310 "guestfs_launch> in the usual way."
1311 msgstr ""
1312
1313 # type: textblock
1314 #. type: textblock
1315 #: ../src/guestfs.pod:562
1316 msgid ""
1317 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1318 "and certain heuristics, and returns a list of operating systems that were "
1319 "found.  An empty list means none were found.  A single element is the root "
1320 "filesystem of the operating system.  For dual- or multi-boot guests, "
1321 "multiple roots can be returned, each one corresponding to a separate "
1322 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1323 "world of virtualization, but since this scenario can happen, we have built "
1324 "libguestfs to deal with it.)"
1325 msgstr ""
1326
1327 # type: textblock
1328 #. type: textblock
1329 #: ../src/guestfs.pod:571
1330 msgid ""
1331 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1332 "to get additional details about that operating system.  For example, call L</"
1333 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1334 "Windows and Linux-based operating systems respectively."
1335 msgstr ""
1336
1337 # type: textblock
1338 #. type: textblock
1339 #: ../src/guestfs.pod:577
1340 msgid ""
1341 "Un*x-like and Linux-based operating systems usually consist of several "
1342 "filesystems which are mounted at boot time (for example, a separate boot "
1343 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1344 "filesystems correspond to mount points.  Call "
1345 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1346 "hash table like this example:"
1347 msgstr ""
1348
1349 # type: verbatim
1350 #. type: verbatim
1351 #: ../src/guestfs.pod:584
1352 #, no-wrap
1353 msgid ""
1354 " /boot => /dev/sda1\n"
1355 " /     => /dev/vg_guest/lv_root\n"
1356 " /usr  => /dev/vg_guest/lv_usr\n"
1357 "\n"
1358 msgstr ""
1359
1360 # type: textblock
1361 #. type: textblock
1362 #: ../src/guestfs.pod:588
1363 msgid ""
1364 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1365 "filesystems as suggested."
1366 msgstr ""
1367
1368 # type: textblock
1369 #. type: textblock
1370 #: ../src/guestfs.pod:591
1371 msgid ""
1372 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1373 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1374 msgstr ""
1375
1376 # type: textblock
1377 #. type: textblock
1378 #: ../src/guestfs.pod:595
1379 msgid ""
1380 "Inspection currently only works for some common operating systems.  "
1381 "Contributors are welcome to send patches for other operating systems that we "
1382 "currently cannot detect."
1383 msgstr ""
1384
1385 # type: textblock
1386 #. type: textblock
1387 #: ../src/guestfs.pod:599
1388 msgid ""
1389 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1390 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1391 "encrypted devices."
1392 msgstr ""
1393
1394 # type: textblock
1395 #. type: textblock
1396 #: ../src/guestfs.pod:603
1397 msgid ""
1398 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1399 "inspection and caches the results in the guest handle.  Subsequent calls to "
1400 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1401 "read the disks.  If you change the content of the guest disks, you can redo "
1402 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1403 "guestfs_inspect_list_applications> works a little differently from the other "
1404 "calls and does read the disks.  See documentation for that function for "
1405 "details)."
1406 msgstr ""
1407
1408 #. type: =head3
1409 #: ../src/guestfs.pod:612
1410 msgid "INSPECTING INSTALL DISKS"
1411 msgstr ""
1412
1413 #. type: textblock
1414 #: ../src/guestfs.pod:614
1415 msgid ""
1416 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1417 "CDs and more."
1418 msgstr ""
1419
1420 #. type: textblock
1421 #: ../src/guestfs.pod:617
1422 msgid ""
1423 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1424 "system, which currently can be C<installed> (a regular operating system) or "
1425 "C<installer> (some sort of install disk)."
1426 msgstr ""
1427
1428 #. type: textblock
1429 #: ../src/guestfs.pod:621
1430 msgid ""
1431 "Further information is available about the operating system that can be "
1432 "installed using the regular inspection APIs like L</"
1433 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../src/guestfs.pod:626
1438 msgid ""
1439 "Some additional information specific to installer disks is also available "
1440 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1441 "guestfs_inspect_is_multipart> calls."
1442 msgstr ""
1443
1444 # type: =head2
1445 #. type: =head2
1446 #: ../src/guestfs.pod:631
1447 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1448 msgstr ""
1449
1450 # type: textblock
1451 #. type: textblock
1452 #: ../src/guestfs.pod:633
1453 msgid ""
1454 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1455 "ntfs-3g.org/> driver."
1456 msgstr ""
1457
1458 # type: =head3
1459 #. type: =head3
1460 #: ../src/guestfs.pod:636
1461 msgid "DRIVE LETTERS AND PATHS"
1462 msgstr ""
1463
1464 # type: textblock
1465 #. type: textblock
1466 #: ../src/guestfs.pod:638
1467 msgid ""
1468 "DOS and Windows still use drive letters, and the filesystems are always "
1469 "treated as case insensitive by Windows itself, and therefore you might find "
1470 "a Windows configuration file referring to a path like C<c:\\windows"
1471 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1472 "might be referred to as C</WINDOWS/System32>."
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../src/guestfs.pod:644
1477 msgid ""
1478 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1479 "L</guestfs_inspect_get_drive_mappings>)"
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../src/guestfs.pod:647
1484 msgid ""
1485 "Dealing with separator characters (backslash vs forward slash) is outside "
1486 "the scope of libguestfs, but usually a simple character replacement will "
1487 "work."
1488 msgstr ""
1489
1490 #. type: textblock
1491 #: ../src/guestfs.pod:651
1492 msgid ""
1493 "To resolve the case insensitivity of paths, call L</"
1494 "guestfs_case_sensitive_path>."
1495 msgstr ""
1496
1497 # type: =head3
1498 #. type: =head3
1499 #: ../src/guestfs.pod:654
1500 msgid "ACCESSING THE WINDOWS REGISTRY"
1501 msgstr ""
1502
1503 # type: textblock
1504 #. type: textblock
1505 #: ../src/guestfs.pod:656
1506 msgid ""
1507 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1508 "files, through the library C<hivex> which is part of the libguestfs project "
1509 "although ships as a separate tarball.  You have to locate and download the "
1510 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1511 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1512 "reg(1)> for more help on this issue."
1513 msgstr ""
1514
1515 # type: =head3
1516 #. type: =head3
1517 #: ../src/guestfs.pod:664
1518 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1519 msgstr ""
1520
1521 # type: textblock
1522 #. type: textblock
1523 #: ../src/guestfs.pod:666
1524 msgid ""
1525 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1526 "provide something which looks like a Linux symlink.  The way it tries to do "
1527 "the rewriting is described here:"
1528 msgstr ""
1529
1530 # type: textblock
1531 #. type: textblock
1532 #: ../src/guestfs.pod:670
1533 msgid ""
1534 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1535 "symbolic-links/>"
1536 msgstr ""
1537
1538 # type: textblock
1539 #. type: textblock
1540 #: ../src/guestfs.pod:672
1541 msgid ""
1542 "The essential problem is that ntfs-3g simply does not have enough "
1543 "information to do a correct job.  NTFS links can contain drive letters and "
1544 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1545 "It is almost certainly the case that libguestfs callers should ignore what "
1546 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1547 msgstr ""
1548
1549 # type: textblock
1550 #. type: textblock
1551 #: ../src/guestfs.pod:679
1552 msgid ""
1553 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1554 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1555 "attribute, and read the raw reparse data from that (you can find the format "
1556 "documented in various places around the web)."
1557 msgstr ""
1558
1559 # type: =head3
1560 #. type: =head3
1561 #: ../src/guestfs.pod:684
1562 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1563 msgstr ""
1564
1565 # type: textblock
1566 #. type: textblock
1567 #: ../src/guestfs.pod:686
1568 msgid ""
1569 "There are other useful extended attributes that can be read from ntfs-3g "
1570 "filesystems (using L</guestfs_getxattr>).  See:"
1571 msgstr ""
1572
1573 # type: textblock
1574 #. type: textblock
1575 #: ../src/guestfs.pod:689
1576 msgid ""
1577 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1578 msgstr ""
1579
1580 # type: =head2
1581 #. type: =head2
1582 #: ../src/guestfs.pod:691
1583 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1584 msgstr ""
1585
1586 # type: textblock
1587 #. type: textblock
1588 #: ../src/guestfs.pod:693
1589 msgid ""
1590 "Although we don't want to discourage you from using the C API, we will "
1591 "mention here that the same API is also available in other languages."
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../src/guestfs.pod:696
1596 msgid ""
1597 "The API is broadly identical in all supported languages.  This means that "
1598 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1599 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1600 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1601 "each language."
1602 msgstr ""
1603
1604 # type: textblock
1605 #. type: textblock
1606 #: ../src/guestfs.pod:702
1607 msgid ""
1608 "Error messages are automatically transformed into exceptions if the language "
1609 "supports it."
1610 msgstr ""
1611
1612 # type: textblock
1613 #. type: textblock
1614 #: ../src/guestfs.pod:705
1615 msgid ""
1616 "We don't try to \"object orientify\" parts of the API in OO languages, "
1617 "although contributors are welcome to write higher level APIs above what we "
1618 "provide in their favourite languages if they wish."
1619 msgstr ""
1620
1621 # type: =item
1622 #. type: =item
1623 #: ../src/guestfs.pod:711
1624 msgid "B<C++>"
1625 msgstr ""
1626
1627 # type: textblock
1628 #. type: textblock
1629 #: ../src/guestfs.pod:713
1630 msgid ""
1631 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1632 "identical to the C API.  C++ classes and exceptions are not used."
1633 msgstr ""
1634
1635 # type: =item
1636 #. type: =item
1637 #: ../src/guestfs.pod:717
1638 msgid "B<C#>"
1639 msgstr ""
1640
1641 # type: textblock
1642 #. type: textblock
1643 #: ../src/guestfs.pod:719
1644 msgid ""
1645 "The C# bindings are highly experimental.  Please read the warnings at the "
1646 "top of C<csharp/Libguestfs.cs>."
1647 msgstr ""
1648
1649 # type: =item
1650 #. type: =item
1651 #: ../src/guestfs.pod:722
1652 msgid "B<Haskell>"
1653 msgstr ""
1654
1655 # type: textblock
1656 #. type: textblock
1657 #: ../src/guestfs.pod:724
1658 msgid ""
1659 "This is the only language binding that is working but incomplete.  Only "
1660 "calls which return simple integers have been bound in Haskell, and we are "
1661 "looking for help to complete this binding."
1662 msgstr ""
1663
1664 # type: =item
1665 #. type: =item
1666 #: ../src/guestfs.pod:728
1667 msgid "B<Java>"
1668 msgstr ""
1669
1670 # type: textblock
1671 #. type: textblock
1672 #: ../src/guestfs.pod:730
1673 msgid ""
1674 "Full documentation is contained in the Javadoc which is distributed with "
1675 "libguestfs."
1676 msgstr ""
1677
1678 # type: =item
1679 #. type: =item
1680 #: ../src/guestfs.pod:733
1681 msgid "B<OCaml>"
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../src/guestfs.pod:735
1686 msgid "See L<guestfs-ocaml(3)>."
1687 msgstr ""
1688
1689 # type: =item
1690 #. type: =item
1691 #: ../src/guestfs.pod:737
1692 msgid "B<Perl>"
1693 msgstr ""
1694
1695 #. type: textblock
1696 #: ../src/guestfs.pod:739
1697 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1698 msgstr ""
1699
1700 # type: =item
1701 #. type: =item
1702 #: ../src/guestfs.pod:741
1703 msgid "B<PHP>"
1704 msgstr ""
1705
1706 # type: textblock
1707 #. type: textblock
1708 #: ../src/guestfs.pod:743
1709 msgid ""
1710 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1711 "the php-libguestfs package for your distribution."
1712 msgstr ""
1713
1714 # type: textblock
1715 #. type: textblock
1716 #: ../src/guestfs.pod:746
1717 msgid "The PHP binding only works correctly on 64 bit machines."
1718 msgstr ""
1719
1720 # type: =item
1721 #. type: =item
1722 #: ../src/guestfs.pod:748
1723 msgid "B<Python>"
1724 msgstr ""
1725
1726 #. type: textblock
1727 #: ../src/guestfs.pod:750
1728 msgid "See L<guestfs-python(3)>."
1729 msgstr ""
1730
1731 # type: =item
1732 #. type: =item
1733 #: ../src/guestfs.pod:752
1734 msgid "B<Ruby>"
1735 msgstr ""
1736
1737 #. type: textblock
1738 #: ../src/guestfs.pod:754
1739 msgid "See L<guestfs-ruby(3)>."
1740 msgstr ""
1741
1742 # type: =item
1743 #. type: =item
1744 #: ../src/guestfs.pod:756
1745 msgid "B<shell scripts>"
1746 msgstr ""
1747
1748 #. type: textblock
1749 #: ../src/guestfs.pod:758
1750 msgid "See L<guestfish(1)>."
1751 msgstr ""
1752
1753 # type: =head2
1754 #. type: =head2
1755 #: ../src/guestfs.pod:762
1756 msgid "LIBGUESTFS GOTCHAS"
1757 msgstr ""
1758
1759 # type: textblock
1760 #. type: textblock
1761 #: ../src/guestfs.pod:764
1762 msgid ""
1763 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1764 "system [...] that works in the way it is documented but is counterintuitive "
1765 "and almost invites mistakes.\""
1766 msgstr ""
1767
1768 # type: textblock
1769 #. type: textblock
1770 #: ../src/guestfs.pod:768
1771 msgid ""
1772 "Since we developed libguestfs and the associated tools, there are several "
1773 "things we would have designed differently, but are now stuck with for "
1774 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1775 "release, you can expect these to change.  Beware of them."
1776 msgstr ""
1777
1778 # type: =item
1779 #. type: =item
1780 #: ../src/guestfs.pod:776
1781 msgid "Autosync / forgetting to sync."
1782 msgstr ""
1783
1784 #. type: textblock
1785 #: ../src/guestfs.pod:778
1786 msgid ""
1787 "I<Update:> Autosync is enabled by default for all API users starting from "
1788 "libguestfs 1.5.24.  This section only applies to older versions."
1789 msgstr ""
1790
1791 # type: textblock
1792 #. type: textblock
1793 #: ../src/guestfs.pod:781
1794 msgid ""
1795 "When modifying a filesystem from C or another language, you B<must> unmount "
1796 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1797 "libguestfs handle.  You can also call:"
1798 msgstr ""
1799
1800 # type: verbatim
1801 #. type: verbatim
1802 #: ../src/guestfs.pod:785
1803 #, no-wrap
1804 msgid ""
1805 " guestfs_set_autosync (g, 1);\n"
1806 "\n"
1807 msgstr ""
1808
1809 # type: textblock
1810 #. type: textblock
1811 #: ../src/guestfs.pod:787
1812 msgid ""
1813 "to have the unmount/sync done automatically for you when the handle 'g' is "
1814 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1815 msgstr ""
1816
1817 # type: textblock
1818 #. type: textblock
1819 #: ../src/guestfs.pod:791
1820 msgid ""
1821 "If you forget to do this, then it is entirely possible that your changes "
1822 "won't be written out, or will be partially written, or (very rarely) that "
1823 "you'll get disk corruption."
1824 msgstr ""
1825
1826 # type: textblock
1827 #. type: textblock
1828 #: ../src/guestfs.pod:795
1829 msgid ""
1830 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1831 "guestfish scripts that forget to sync will work just fine, which can make "
1832 "this very puzzling if you are trying to debug a problem."
1833 msgstr ""
1834
1835 # type: =item
1836 #. type: =item
1837 #: ../src/guestfs.pod:799
1838 msgid "Mount option C<-o sync> should not be the default."
1839 msgstr ""
1840
1841 # type: textblock
1842 #. type: textblock
1843 #: ../src/guestfs.pod:801
1844 msgid ""
1845 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1846 "However C<-o sync> does not add any reliability benefit, but does have a "
1847 "very large performance impact."
1848 msgstr ""
1849
1850 # type: textblock
1851 #. type: textblock
1852 #: ../src/guestfs.pod:805
1853 msgid ""
1854 "The work around is to use L</guestfs_mount_options> and set the mount "
1855 "options that you actually want to use."
1856 msgstr ""
1857
1858 # type: =item
1859 #. type: =item
1860 #: ../src/guestfs.pod:808
1861 msgid "Read-only should be the default."
1862 msgstr ""
1863
1864 # type: textblock
1865 #. type: textblock
1866 #: ../src/guestfs.pod:810
1867 msgid ""
1868 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1869 "specify I<--rw> if you want to make changes to the image."
1870 msgstr ""
1871
1872 # type: textblock
1873 #. type: textblock
1874 #: ../src/guestfs.pod:813
1875 msgid "This would reduce the potential to corrupt live VM images."
1876 msgstr ""
1877
1878 # type: textblock
1879 #. type: textblock
1880 #: ../src/guestfs.pod:815
1881 msgid ""
1882 "Note that many filesystems change the disk when you just mount and unmount, "
1883 "even if you didn't perform any writes.  You need to use L</"
1884 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1885 msgstr ""
1886
1887 # type: =item
1888 #. type: =item
1889 #: ../src/guestfs.pod:819
1890 msgid "guestfish command line is hard to use."
1891 msgstr ""
1892
1893 # type: textblock
1894 #. type: textblock
1895 #: ../src/guestfs.pod:821
1896 msgid ""
1897 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1898 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1899 "exist, so it fails.  In earlier versions of guestfish the error message was "
1900 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1901 "we should have used C<guestfish -c command> to run commands."
1902 msgstr ""
1903
1904 # type: =item
1905 #. type: =item
1906 #: ../src/guestfs.pod:828
1907 msgid "guestfish megabyte modifiers don't work right on all commands"
1908 msgstr ""
1909
1910 # type: textblock
1911 #. type: textblock
1912 #: ../src/guestfs.pod:830
1913 msgid ""
1914 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1915 "other modifiers).  What guestfish actually does is to multiply the number "
1916 "part by the modifier part and pass the result to the C API.  However this "
1917 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1918 "expecting some other unit (eg. megabytes)."
1919 msgstr ""
1920
1921 # type: textblock
1922 #. type: textblock
1923 #: ../src/guestfs.pod:837
1924 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1925 msgstr ""
1926
1927 # type: verbatim
1928 #. type: verbatim
1929 #: ../src/guestfs.pod:839
1930 #, no-wrap
1931 msgid ""
1932 " lvcreate LV VG 100M\n"
1933 "\n"
1934 msgstr ""
1935
1936 # type: textblock
1937 #. type: textblock
1938 #: ../src/guestfs.pod:841
1939 msgid ""
1940 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1941 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1942 "megabytes * megabytes) logical volume.  The error message you get from this "
1943 "is also a little obscure."
1944 msgstr ""
1945
1946 # type: textblock
1947 #. type: textblock
1948 #: ../src/guestfs.pod:846
1949 msgid ""
1950 "This could be fixed in the generator by specially marking parameters and "
1951 "return values which take bytes or other units."
1952 msgstr ""
1953
1954 # type: =item
1955 #. type: =item
1956 #: ../src/guestfs.pod:849
1957 msgid "Ambiguity between devices and paths"
1958 msgstr ""
1959
1960 # type: textblock
1961 #. type: textblock
1962 #: ../src/guestfs.pod:851
1963 msgid ""
1964 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1965 "sdb2>) and a similar pathname.  A file might just happen to be called "
1966 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1967 msgstr ""
1968
1969 # type: textblock
1970 #. type: textblock
1971 #: ../src/guestfs.pod:856
1972 msgid ""
1973 "In the current API we usually resolve this ambiguity by having two separate "
1974 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1975 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1976 "detecting if the path supplied begins with C</dev/>."
1977 msgstr ""
1978
1979 # type: textblock
1980 #. type: textblock
1981 #: ../src/guestfs.pod:862
1982 msgid ""
1983 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1984 "make paths/devices into structured names.  One way to do this would be to "
1985 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1986 "aspect of grub.  Another way would be to use a structured type, equivalent "
1987 "to this OCaml type:"
1988 msgstr ""
1989
1990 # type: verbatim
1991 #. type: verbatim
1992 #: ../src/guestfs.pod:868
1993 #, no-wrap
1994 msgid ""
1995 " type path = Path of string | Device of int | Partition of int * int\n"
1996 "\n"
1997 msgstr ""
1998
1999 # type: textblock
2000 #. type: textblock
2001 #: ../src/guestfs.pod:870
2002 msgid "which would allow you to pass arguments like:"
2003 msgstr ""
2004
2005 # type: verbatim
2006 #. type: verbatim
2007 #: ../src/guestfs.pod:872
2008 #, no-wrap
2009 msgid ""
2010 " Path \"/foo/bar\"\n"
2011 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2012 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2013 " Path \"/dev/sdb2\"    (* not a device *)\n"
2014 "\n"
2015 msgstr ""
2016
2017 # type: textblock
2018 #. type: textblock
2019 #: ../src/guestfs.pod:877
2020 msgid ""
2021 "As you can see there are still problems to resolve even with this "
2022 "representation.  Also consider how it might work in guestfish."
2023 msgstr ""
2024
2025 # type: =head2
2026 #. type: =head2
2027 #: ../src/guestfs.pod:882
2028 msgid "KEYS AND PASSPHRASES"
2029 msgstr ""
2030
2031 # type: textblock
2032 #. type: textblock
2033 #: ../src/guestfs.pod:884
2034 msgid ""
2035 "Certain libguestfs calls take a parameter that contains sensitive key "
2036 "material, passed in as a C string."
2037 msgstr ""
2038
2039 # type: textblock
2040 #. type: textblock
2041 #: ../src/guestfs.pod:887
2042 msgid ""
2043 "In the future we would hope to change the libguestfs implementation so that "
2044 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2045 "swap.  However this is I<not> done at the moment, because of the complexity "
2046 "of such an implementation."
2047 msgstr ""
2048
2049 # type: textblock
2050 #. type: textblock
2051 #: ../src/guestfs.pod:892
2052 msgid ""
2053 "Therefore you should be aware that any key parameter you pass to libguestfs "
2054 "might end up being written out to the swap partition.  If this is a concern, "
2055 "scrub the swap partition or don't use libguestfs on encrypted devices."
2056 msgstr ""
2057
2058 # type: =head1
2059 #. type: =head2
2060 #: ../src/guestfs.pod:897
2061 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2062 msgstr ""
2063
2064 # type: textblock
2065 #. type: textblock
2066 #: ../src/guestfs.pod:899
2067 msgid ""
2068 "All high-level libguestfs actions are synchronous.  If you want to use "
2069 "libguestfs asynchronously then you must create a thread."
2070 msgstr ""
2071
2072 # type: textblock
2073 #. type: textblock
2074 #: ../src/guestfs.pod:902
2075 msgid ""
2076 "Only use the handle from a single thread.  Either use the handle exclusively "
2077 "from one thread, or provide your own mutex so that two threads cannot issue "
2078 "calls on the same handle at the same time."
2079 msgstr ""
2080
2081 # type: textblock
2082 #. type: textblock
2083 #: ../src/guestfs.pod:906
2084 msgid ""
2085 "See the graphical program guestfs-browser for one possible architecture for "
2086 "multithreaded programs using libvirt and libguestfs."
2087 msgstr ""
2088
2089 # type: =head1
2090 #. type: =head2
2091 #: ../src/guestfs.pod:909
2092 msgid "PATH"
2093 msgstr ""
2094
2095 #. type: textblock
2096 #: ../src/guestfs.pod:911
2097 msgid ""
2098 "Libguestfs needs a supermin appliance, which it finds by looking along an "
2099 "internal path."
2100 msgstr ""
2101
2102 # type: textblock
2103 #. type: textblock
2104 #: ../src/guestfs.pod:914
2105 msgid ""
2106 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2107 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2108 msgstr ""
2109
2110 # type: textblock
2111 #. type: textblock
2112 #: ../src/guestfs.pod:917
2113 msgid ""
2114 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2115 "to change the directories that libguestfs will search in.  The value is a "
2116 "colon-separated list of paths.  The current directory is I<not> searched "
2117 "unless the path contains an empty element or C<.>.  For example "
2118 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2119 "then C</usr/lib/guestfs>."
2120 msgstr ""
2121
2122 # type: =head1
2123 #. type: =head2
2124 #: ../src/guestfs.pod:924
2125 msgid "QEMU WRAPPERS"
2126 msgstr ""
2127
2128 # type: textblock
2129 #. type: textblock
2130 #: ../src/guestfs.pod:926
2131 msgid ""
2132 "If you want to compile your own qemu, run qemu from a non-standard location, "
2133 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2134 "around qemu."
2135 msgstr ""
2136
2137 # type: textblock
2138 #. type: textblock
2139 #: ../src/guestfs.pod:930
2140 msgid ""
2141 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2142 "last command in the shell script (so that qemu replaces the shell and "
2143 "becomes the direct child of the libguestfs-using program).  If you don't do "
2144 "this, then the qemu process won't be cleaned up correctly."
2145 msgstr ""
2146
2147 # type: textblock
2148 #. type: textblock
2149 #: ../src/guestfs.pod:935
2150 msgid ""
2151 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2152 "source:"
2153 msgstr ""
2154
2155 # type: verbatim
2156 #. type: verbatim
2157 #: ../src/guestfs.pod:938
2158 #, no-wrap
2159 msgid ""
2160 " #!/bin/sh -\n"
2161 " qemudir=/home/rjones/d/qemu\n"
2162 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2163 "\n"
2164 msgstr ""
2165
2166 # type: textblock
2167 #. type: textblock
2168 #: ../src/guestfs.pod:942
2169 msgid ""
2170 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2171 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2172 "example:"
2173 msgstr ""
2174
2175 # type: verbatim
2176 #. type: verbatim
2177 #: ../src/guestfs.pod:946
2178 #, no-wrap
2179 msgid ""
2180 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2181 "\n"
2182 msgstr ""
2183
2184 # type: textblock
2185 #. type: textblock
2186 #: ../src/guestfs.pod:948
2187 msgid ""
2188 "Note that libguestfs also calls qemu with the -help and -version options in "
2189 "order to determine features."
2190 msgstr ""
2191
2192 #. type: =head2
2193 #: ../src/guestfs.pod:951
2194 msgid "ATTACHING TO RUNNING DAEMONS"
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../src/guestfs.pod:953
2199 msgid ""
2200 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2201 "babies.  Use with caution."
2202 msgstr ""
2203
2204 #. type: textblock
2205 #: ../src/guestfs.pod:956
2206 msgid ""
2207 "I<Note (2):> This section explains how to attach to a running daemon from a "
2208 "low level perspective.  For most users, simply using virt tools such as "
2209 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2210 msgstr ""
2211
2212 #. type: =head3
2213 #: ../src/guestfs.pod:960
2214 msgid "Using guestfs_set_attach_method"
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../src/guestfs.pod:962
2219 msgid ""
2220 "By calling L</guestfs_set_attach_method> you can change how the library "
2221 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2222 "ARCHITECTURE> for some background)."
2223 msgstr ""
2224
2225 #. type: textblock
2226 #: ../src/guestfs.pod:966
2227 msgid ""
2228 "The normal attach method is C<appliance>, where a small appliance is created "
2229 "containing the daemon, and then the library connects to this."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../src/guestfs.pod:969
2234 msgid ""
2235 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2236 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2237 "daemon over the Unix domain socket."
2238 msgstr ""
2239
2240 #. type: textblock
2241 #: ../src/guestfs.pod:973
2242 msgid ""
2243 "The normal use for this is to connect to a running virtual machine that "
2244 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2245 "files inside the live virtual machine."
2246 msgstr ""
2247
2248 #. type: =head3
2249 #: ../src/guestfs.pod:977
2250 msgid "Using guestfs_add_domain with live flag"
2251 msgstr ""
2252
2253 #. type: textblock
2254 #: ../src/guestfs.pod:979
2255 msgid ""
2256 "L</guestfs_add_domain> provides some help for getting the correct attach "
2257 "method.  If you pass the C<live> option to this function, then (if the "
2258 "virtual machine is running) it will examine the libvirt XML looking for a "
2259 "virtio-serial channel to connect to:"
2260 msgstr ""
2261
2262 #. type: verbatim
2263 #: ../src/guestfs.pod:985
2264 #, no-wrap
2265 msgid ""
2266 " <domain>\n"
2267 "   ...\n"
2268 "   <devices>\n"
2269 "     ...\n"
2270 "     <channel type='unix'>\n"
2271 "       <source mode='bind' path='/path/to/socket'/>\n"
2272 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2273 "     </channel>\n"
2274 "     ...\n"
2275 "   </devices>\n"
2276 " </domain>\n"
2277 "\n"
2278 msgstr ""
2279
2280 #. type: textblock
2281 #: ../src/guestfs.pod:997
2282 msgid ""
2283 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2284 "method to C<unix:/path/to/socket>."
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../src/guestfs.pod:1000
2289 msgid ""
2290 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2291 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2292 "to attach to and modify live virtual machines."
2293 msgstr ""
2294
2295 #. type: textblock
2296 #: ../src/guestfs.pod:1004
2297 msgid ""
2298 "The virtual machine needs to have been set up beforehand so that it has the "
2299 "virtio-serial channel and so that guestfsd is running inside it."
2300 msgstr ""
2301
2302 # type: =head2
2303 #. type: =head2
2304 #: ../src/guestfs.pod:1008
2305 msgid "ABI GUARANTEE"
2306 msgstr ""
2307
2308 # type: textblock
2309 #. type: textblock
2310 #: ../src/guestfs.pod:1010
2311 msgid ""
2312 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2313 "actions as outlined in this section.  Although we will deprecate some "
2314 "actions, for example if they get replaced by newer calls, we will keep the "
2315 "old actions forever.  This allows you the developer to program in confidence "
2316 "against the libguestfs API."
2317 msgstr ""
2318
2319 # type: =head1
2320 #. type: =head2
2321 #: ../src/guestfs.pod:1016
2322 msgid "BLOCK DEVICE NAMING"
2323 msgstr ""
2324
2325 # type: textblock
2326 #. type: textblock
2327 #: ../src/guestfs.pod:1018
2328 msgid ""
2329 "In the kernel there is now quite a profusion of schemata for naming block "
2330 "devices (in this context, by I<block device> I mean a physical or virtual "
2331 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2332 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2333 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2334 "for the old IDE driver (particularly for SATA devices) those devices also "
2335 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2336 "paravirtualized drivers.  This has created several different naming systems, "
2337 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2338 msgstr ""
2339
2340 # type: textblock
2341 #. type: textblock
2342 #: ../src/guestfs.pod:1030
2343 msgid ""
2344 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2345 "Linux kernel to access block devices.  We can run a variety of appliances "
2346 "based on a variety of Linux kernels."
2347 msgstr ""
2348
2349 # type: textblock
2350 #. type: textblock
2351 #: ../src/guestfs.pod:1034
2352 msgid ""
2353 "This causes a problem for libguestfs because many API calls use device or "
2354 "partition names.  Working scripts and the recipe (example) scripts that we "
2355 "make available over the internet could fail if the naming scheme changes."
2356 msgstr ""
2357
2358 # type: textblock
2359 #. type: textblock
2360 #: ../src/guestfs.pod:1039
2361 msgid ""
2362 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2363 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2364 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2365 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2366 msgstr ""
2367
2368 # type: textblock
2369 #. type: textblock
2370 #: ../src/guestfs.pod:1045
2371 msgid ""
2372 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2373 "L</guestfs_list_partitions> and similar calls return the true names of the "
2374 "devices and partitions as known to the appliance."
2375 msgstr ""
2376
2377 # type: =head2
2378 #. type: =head3
2379 #: ../src/guestfs.pod:1050
2380 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2381 msgstr ""
2382
2383 # type: textblock
2384 #. type: textblock
2385 #: ../src/guestfs.pod:1052
2386 msgid ""
2387 "Usually this translation is transparent.  However in some (very rare)  cases "
2388 "you may need to know the exact algorithm.  Such cases include where you use "
2389 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2390 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2391 msgstr ""
2392
2393 # type: textblock
2394 #. type: textblock
2395 #: ../src/guestfs.pod:1058
2396 msgid ""
2397 "The algorithm is applied only to I<parameters> which are known to be either "
2398 "device or partition names.  Return values from functions such as L</"
2399 "guestfs_list_devices> are never changed."
2400 msgstr ""
2401
2402 # type: textblock
2403 #. type: textblock
2404 #: ../src/guestfs.pod:1066
2405 msgid "Is the string a parameter which is a device or partition name?"
2406 msgstr ""
2407
2408 # type: textblock
2409 #. type: textblock
2410 #: ../src/guestfs.pod:1070
2411 msgid "Does the string begin with C</dev/sd>?"
2412 msgstr ""
2413
2414 # type: textblock
2415 #. type: textblock
2416 #: ../src/guestfs.pod:1074
2417 msgid ""
2418 "Does the named device exist? If so, we use that device.  However if I<not> "
2419 "then we continue with this algorithm."
2420 msgstr ""
2421
2422 # type: textblock
2423 #. type: textblock
2424 #: ../src/guestfs.pod:1079
2425 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2426 msgstr ""
2427
2428 # type: textblock
2429 #. type: textblock
2430 #: ../src/guestfs.pod:1081
2431 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2432 msgstr ""
2433
2434 # type: textblock
2435 #. type: textblock
2436 #: ../src/guestfs.pod:1083
2437 msgid "If that named device exists, use it.  If not, continue."
2438 msgstr ""
2439
2440 # type: textblock
2441 #. type: textblock
2442 #: ../src/guestfs.pod:1087
2443 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2444 msgstr ""
2445
2446 # type: textblock
2447 #. type: textblock
2448 #: ../src/guestfs.pod:1089
2449 msgid "If that named device exists, use it.  If not, return an error."
2450 msgstr ""
2451
2452 # type: =head3
2453 #. type: =head3
2454 #: ../src/guestfs.pod:1093
2455 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2456 msgstr ""
2457
2458 # type: textblock
2459 #. type: textblock
2460 #: ../src/guestfs.pod:1095
2461 msgid ""
2462 "Although the standard naming scheme and automatic translation is useful for "
2463 "simple programs and guestfish scripts, for larger programs it is best not to "
2464 "rely on this mechanism."
2465 msgstr ""
2466
2467 # type: textblock
2468 #. type: textblock
2469 #: ../src/guestfs.pod:1099
2470 msgid ""
2471 "Where possible for maximum future portability programs using libguestfs "
2472 "should use these future-proof techniques:"
2473 msgstr ""
2474
2475 # type: textblock
2476 #. type: textblock
2477 #: ../src/guestfs.pod:1106
2478 msgid ""
2479 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2480 "device names, and then use those names directly."
2481 msgstr ""
2482
2483 # type: textblock
2484 #. type: textblock
2485 #: ../src/guestfs.pod:1109
2486 msgid ""
2487 "Since those device names exist by definition, they will never be translated."
2488 msgstr ""
2489
2490 # type: textblock
2491 #. type: textblock
2492 #: ../src/guestfs.pod:1114
2493 msgid ""
2494 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2495 "filesystem labels."
2496 msgstr ""
2497
2498 # type: =head1
2499 #. type: =head1
2500 #: ../src/guestfs.pod:1119
2501 msgid "SECURITY"
2502 msgstr ""
2503
2504 # type: textblock
2505 #. type: textblock
2506 #: ../src/guestfs.pod:1121
2507 msgid ""
2508 "This section discusses security implications of using libguestfs, "
2509 "particularly with untrusted or malicious guests or disk images."
2510 msgstr ""
2511
2512 # type: =head2
2513 #. type: =head2
2514 #: ../src/guestfs.pod:1124
2515 msgid "GENERAL SECURITY CONSIDERATIONS"
2516 msgstr ""
2517
2518 # type: textblock
2519 #. type: textblock
2520 #: ../src/guestfs.pod:1126
2521 msgid ""
2522 "Be careful with any files or data that you download from a guest (by "
2523 "\"download\" we mean not just the L</guestfs_download> command but any "
2524 "command that reads files, filenames, directories or anything else from a "
2525 "disk image).  An attacker could manipulate the data to fool your program "
2526 "into doing the wrong thing.  Consider cases such as:"
2527 msgstr ""
2528
2529 # type: textblock
2530 #. type: textblock
2531 #: ../src/guestfs.pod:1136
2532 msgid "the data (file etc) not being present"
2533 msgstr ""
2534
2535 # type: textblock
2536 #. type: textblock
2537 #: ../src/guestfs.pod:1140
2538 msgid "being present but empty"
2539 msgstr ""
2540
2541 # type: textblock
2542 #. type: textblock
2543 #: ../src/guestfs.pod:1144
2544 msgid "being much larger than normal"
2545 msgstr ""
2546
2547 # type: textblock
2548 #. type: textblock
2549 #: ../src/guestfs.pod:1148
2550 msgid "containing arbitrary 8 bit data"
2551 msgstr ""
2552
2553 # type: textblock
2554 #. type: textblock
2555 #: ../src/guestfs.pod:1152
2556 msgid "being in an unexpected character encoding"
2557 msgstr ""
2558
2559 # type: textblock
2560 #. type: textblock
2561 #: ../src/guestfs.pod:1156
2562 msgid "containing homoglyphs."
2563 msgstr ""
2564
2565 # type: =head2
2566 #. type: =head2
2567 #: ../src/guestfs.pod:1160
2568 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2569 msgstr ""
2570
2571 # type: textblock
2572 #. type: textblock
2573 #: ../src/guestfs.pod:1162
2574 msgid ""
2575 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2576 "(VFS) module can sometimes be escalated into exploits by deliberately "
2577 "creating a malicious, malformed filesystem.  These exploits are very severe "
2578 "for two reasons.  Firstly there are very many filesystem drivers in the "
2579 "kernel, and many of them are infrequently used and not much developer "
2580 "attention has been paid to the code.  Linux userspace helps potential "
2581 "crackers by detecting the filesystem type and automatically choosing the "
2582 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2583 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2584 "exploit (worse in some ways), giving immediate and total access to the "
2585 "system right down to the hardware level."
2586 msgstr ""
2587
2588 # type: textblock
2589 #. type: textblock
2590 #: ../src/guestfs.pod:1175
2591 msgid ""
2592 "That explains why you should never mount a filesystem from an untrusted "
2593 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2594 "inside a qemu virtual machine, usually running as a non-root user.  The "
2595 "attacker would need to write a filesystem which first exploited the kernel, "
2596 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2597 "the libguestfs protocol, and finally to be as serious as the host kernel "
2598 "exploit it would need to escalate its privileges to root.  This multi-step "
2599 "escalation, performed by a static piece of data, is thought to be extremely "
2600 "hard to do, although we never say 'never' about security issues."
2601 msgstr ""
2602
2603 # type: textblock
2604 #. type: textblock
2605 #: ../src/guestfs.pod:1186
2606 msgid ""
2607 "In any case callers can reduce the attack surface by forcing the filesystem "
2608 "type when mounting (use L</guestfs_mount_vfs>)."
2609 msgstr ""
2610
2611 # type: =head2
2612 #. type: =head2
2613 #: ../src/guestfs.pod:1189
2614 msgid "PROTOCOL SECURITY"
2615 msgstr ""
2616
2617 # type: textblock
2618 #. type: textblock
2619 #: ../src/guestfs.pod:1191
2620 msgid ""
2621 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2622 "defined upper message size.  However a program that uses libguestfs must "
2623 "also take care - for example you can write a program that downloads a binary "
2624 "from a disk image and executes it locally, and no amount of protocol "
2625 "security will save you from the consequences."
2626 msgstr ""
2627
2628 # type: =head2
2629 #. type: =head2
2630 #: ../src/guestfs.pod:1197
2631 msgid "INSPECTION SECURITY"
2632 msgstr ""
2633
2634 # type: textblock
2635 #. type: textblock
2636 #: ../src/guestfs.pod:1199
2637 msgid ""
2638 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2639 "directly from the guest, and these could contain any 8 bit data.  Callers "
2640 "should be careful to escape these before printing them to a structured file "
2641 "(for example, use HTML escaping if creating a web page)."
2642 msgstr ""
2643
2644 # type: textblock
2645 #. type: textblock
2646 #: ../src/guestfs.pod:1205
2647 msgid ""
2648 "Guest configuration may be altered in unusual ways by the administrator of "
2649 "the virtual machine, and may not reflect reality (particularly for untrusted "
2650 "or actively malicious guests).  For example we parse the hostname from "
2651 "configuration files like C</etc/sysconfig/network> that we find in the "
2652 "guest, but the guest administrator can easily manipulate these files to "
2653 "provide the wrong hostname."
2654 msgstr ""
2655
2656 # type: textblock
2657 #. type: textblock
2658 #: ../src/guestfs.pod:1213
2659 msgid ""
2660 "The inspection API parses guest configuration using two external libraries: "
2661 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2662 "designed to be robust in the face of malicious data, although denial of "
2663 "service attacks are still possible, for example with oversized configuration "
2664 "files."
2665 msgstr ""
2666
2667 # type: =head2
2668 #. type: =head2
2669 #: ../src/guestfs.pod:1219
2670 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2671 msgstr ""
2672
2673 # type: textblock
2674 #. type: textblock
2675 #: ../src/guestfs.pod:1221
2676 msgid ""
2677 "Be very cautious about running commands from the guest.  By running a "
2678 "command in the guest, you are giving CPU time to a binary that you do not "
2679 "control, under the same user account as the library, albeit wrapped in qemu "
2680 "virtualization.  More information and alternatives can be found in the "
2681 "section L</RUNNING COMMANDS>."
2682 msgstr ""
2683
2684 # type: =head2
2685 #. type: =head2
2686 #: ../src/guestfs.pod:1227
2687 msgid "CVE-2010-3851"
2688 msgstr ""
2689
2690 # type: textblock
2691 #. type: textblock
2692 #: ../src/guestfs.pod:1229
2693 msgid "https://bugzilla.redhat.com/642934"
2694 msgstr ""
2695
2696 # type: textblock
2697 #. type: textblock
2698 #: ../src/guestfs.pod:1231
2699 msgid ""
2700 "This security bug concerns the automatic disk format detection that qemu "
2701 "does on disk images."
2702 msgstr ""
2703
2704 # type: textblock
2705 #. type: textblock
2706 #: ../src/guestfs.pod:1234
2707 msgid ""
2708 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2709 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2710 "for one of the known headers, and if none is found then assuming the disk "
2711 "image must be raw."
2712 msgstr ""
2713
2714 # type: textblock
2715 #. type: textblock
2716 #: ../src/guestfs.pod:1239
2717 msgid ""
2718 "This allows a guest which has been given a raw disk image to write some "
2719 "other header.  At next boot (or when the disk image is accessed by "
2720 "libguestfs) qemu would do autodetection and think the disk image format was, "
2721 "say, qcow2 based on the header written by the guest."
2722 msgstr ""
2723
2724 # type: textblock
2725 #. type: textblock
2726 #: ../src/guestfs.pod:1244
2727 msgid ""
2728 "This in itself would not be a problem, but qcow2 offers many features, one "
2729 "of which is to allow a disk image to refer to another image (called the "
2730 "\"backing disk\").  It does this by placing the path to the backing disk "
2731 "into the qcow2 header.  This path is not validated and could point to any "
2732 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2733 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2734 "control of the attacker."
2735 msgstr ""
2736
2737 # type: textblock
2738 #. type: textblock
2739 #: ../src/guestfs.pod:1252
2740 msgid ""
2741 "In libguestfs this is rather hard to exploit except under two circumstances:"
2742 msgstr ""
2743
2744 # type: textblock
2745 #. type: textblock
2746 #: ../src/guestfs.pod:1259
2747 msgid "You have enabled the network or have opened the disk in write mode."
2748 msgstr ""
2749
2750 # type: textblock
2751 #. type: textblock
2752 #: ../src/guestfs.pod:1263
2753 msgid ""
2754 "You are also running untrusted code from the guest (see L</RUNNING "
2755 "COMMANDS>)."
2756 msgstr ""
2757
2758 # type: textblock
2759 #. type: textblock
2760 #: ../src/guestfs.pod:1268
2761 msgid ""
2762 "The way to avoid this is to specify the expected disk format when adding "
2763 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2764 "should always do this if the disk is raw format, and it's a good idea for "
2765 "other cases too."
2766 msgstr ""
2767
2768 # type: textblock
2769 #. type: textblock
2770 #: ../src/guestfs.pod:1273
2771 msgid ""
2772 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2773 "format is fetched from libvirt and passed through."
2774 msgstr ""
2775
2776 # type: textblock
2777 #. type: textblock
2778 #: ../src/guestfs.pod:1276
2779 msgid ""
2780 "For libguestfs tools, use the I<--format> command line parameter as "
2781 "appropriate."
2782 msgstr ""
2783
2784 # type: =head1
2785 #. type: =head1
2786 #: ../src/guestfs.pod:1279
2787 msgid "CONNECTION MANAGEMENT"
2788 msgstr ""
2789
2790 # type: =head2
2791 #. type: =head2
2792 #: ../src/guestfs.pod:1281
2793 msgid "guestfs_h *"
2794 msgstr ""
2795
2796 # type: textblock
2797 #. type: textblock
2798 #: ../src/guestfs.pod:1283
2799 msgid ""
2800 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2801 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2802 "handle and release all resources used."
2803 msgstr ""
2804
2805 #. type: textblock
2806 #: ../src/guestfs.pod:1287
2807 msgid ""
2808 "For information on using multiple handles and threads, see the section L</"
2809 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2810 msgstr ""
2811
2812 # type: =head2
2813 #. type: =head2
2814 #: ../src/guestfs.pod:1290
2815 msgid "guestfs_create"
2816 msgstr ""
2817
2818 # type: verbatim
2819 #. type: verbatim
2820 #: ../src/guestfs.pod:1292
2821 #, no-wrap
2822 msgid ""
2823 " guestfs_h *guestfs_create (void);\n"
2824 "\n"
2825 msgstr ""
2826
2827 # type: textblock
2828 #. type: textblock
2829 #: ../src/guestfs.pod:1294
2830 msgid "Create a connection handle."
2831 msgstr ""
2832
2833 #. type: textblock
2834 #: ../src/guestfs.pod:1296
2835 msgid ""
2836 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2837 "NULL."
2838 msgstr ""
2839
2840 #. type: textblock
2841 #: ../src/guestfs.pod:1299
2842 msgid ""
2843 "You have to \"configure\" the handle after creating it.  This includes "
2844 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2845 "handle at least once."
2846 msgstr ""
2847
2848 # type: textblock
2849 #. type: textblock
2850 #: ../src/guestfs.pod:1303
2851 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2852 msgstr ""
2853
2854 #. type: textblock
2855 #: ../src/guestfs.pod:1305
2856 msgid ""
2857 "You may also want to configure error handling for the handle.  See the L</"
2858 "ERROR HANDLING> section below."
2859 msgstr ""
2860
2861 # type: =head2
2862 #. type: =head2
2863 #: ../src/guestfs.pod:1308
2864 msgid "guestfs_close"
2865 msgstr ""
2866
2867 # type: verbatim
2868 #. type: verbatim
2869 #: ../src/guestfs.pod:1310
2870 #, no-wrap
2871 msgid ""
2872 " void guestfs_close (guestfs_h *g);\n"
2873 "\n"
2874 msgstr ""
2875
2876 # type: textblock
2877 #. type: textblock
2878 #: ../src/guestfs.pod:1312
2879 msgid "This closes the connection handle and frees up all resources used."
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../src/guestfs.pod:1314
2884 msgid ""
2885 "If autosync was set on the handle and the handle was launched, then this "
2886 "implicitly calls various functions to unmount filesystems and sync the "
2887 "disk.  See L</guestfs_set_autosync> for more details."
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../src/guestfs.pod:1318
2892 msgid "If a close callback was set on the handle, then it is called."
2893 msgstr ""
2894
2895 # type: =head1
2896 #. type: =head1
2897 #: ../src/guestfs.pod:1320
2898 msgid "ERROR HANDLING"
2899 msgstr ""
2900
2901 # type: textblock
2902 #. type: textblock
2903 #: ../src/guestfs.pod:1322
2904 msgid ""
2905 "API functions can return errors.  For example, almost all functions that "
2906 "return C<int> will return C<-1> to indicate an error."
2907 msgstr ""
2908
2909 # type: textblock
2910 #. type: textblock
2911 #: ../src/guestfs.pod:1325
2912 msgid ""
2913 "Additional information is available for errors: an error message string and "
2914 "optionally an error number (errno) if the thing that failed was a system "
2915 "call."
2916 msgstr ""
2917
2918 # type: textblock
2919 #. type: textblock
2920 #: ../src/guestfs.pod:1329
2921 msgid ""
2922 "You can get at the additional information about the last error on the handle "
2923 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2924 "up an error handler with L</guestfs_set_error_handler>."
2925 msgstr ""
2926
2927 # type: textblock
2928 #. type: textblock
2929 #: ../src/guestfs.pod:1334
2930 msgid ""
2931 "When the handle is created, a default error handler is installed which "
2932 "prints the error message string to C<stderr>.  For small short-running "
2933 "command line programs it is sufficient to do:"
2934 msgstr ""
2935
2936 # type: verbatim
2937 #. type: verbatim
2938 #: ../src/guestfs.pod:1338
2939 #, no-wrap
2940 msgid ""
2941 " if (guestfs_launch (g) == -1)\n"
2942 "   exit (EXIT_FAILURE);\n"
2943 "\n"
2944 msgstr ""
2945
2946 # type: textblock
2947 #. type: textblock
2948 #: ../src/guestfs.pod:1341
2949 msgid ""
2950 "since the default error handler will ensure that an error message has been "
2951 "printed to C<stderr> before the program exits."
2952 msgstr ""
2953
2954 # type: textblock
2955 #. type: textblock
2956 #: ../src/guestfs.pod:1344
2957 msgid ""
2958 "For other programs the caller will almost certainly want to install an "
2959 "alternate error handler or do error handling in-line like this:"
2960 msgstr ""
2961
2962 # type: verbatim
2963 #. type: verbatim
2964 #: ../src/guestfs.pod:1347
2965 #, no-wrap
2966 msgid ""
2967 " g = guestfs_create ();\n"
2968 " \n"
2969 msgstr ""
2970
2971 # type: verbatim
2972 #. type: verbatim
2973 #: ../src/guestfs.pod:1349
2974 #, no-wrap
2975 msgid ""
2976 " /* This disables the default behaviour of printing errors\n"
2977 "    on stderr. */\n"
2978 " guestfs_set_error_handler (g, NULL, NULL);\n"
2979 " \n"
2980 msgstr ""
2981
2982 # type: verbatim
2983 #. type: verbatim
2984 #: ../src/guestfs.pod:1353
2985 #, no-wrap
2986 msgid ""
2987 " if (guestfs_launch (g) == -1) {\n"
2988 "   /* Examine the error message and print it etc. */\n"
2989 "   char *msg = guestfs_last_error (g);\n"
2990 "   int errnum = guestfs_last_errno (g);\n"
2991 "   fprintf (stderr, \"%s\\n\", msg);\n"
2992 "   /* ... */\n"
2993 "  }\n"
2994 "\n"
2995 msgstr ""
2996
2997 # type: textblock
2998 #. type: textblock
2999 #: ../src/guestfs.pod:1361
3000 msgid ""
3001 "Out of memory errors are handled differently.  The default action is to call "
3002 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3003 "guestfs_set_out_of_memory_handler>."
3004 msgstr ""
3005
3006 # type: textblock
3007 #. type: textblock
3008 #: ../src/guestfs.pod:1365
3009 msgid ""
3010 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3011 "because there is no handle if this happens there is no way to get additional "
3012 "error information.  However L</guestfs_create> is supposed to be a "
3013 "lightweight operation which can only fail because of insufficient memory (it "
3014 "returns NULL in this case)."
3015 msgstr ""
3016
3017 # type: =head2
3018 #. type: =head2
3019 #: ../src/guestfs.pod:1371
3020 msgid "guestfs_last_error"
3021 msgstr ""
3022
3023 # type: verbatim
3024 #. type: verbatim
3025 #: ../src/guestfs.pod:1373
3026 #, no-wrap
3027 msgid ""
3028 " const char *guestfs_last_error (guestfs_h *g);\n"
3029 "\n"
3030 msgstr ""
3031
3032 # type: textblock
3033 #. type: textblock
3034 #: ../src/guestfs.pod:1375
3035 msgid ""
3036 "This returns the last error message that happened on C<g>.  If there has not "
3037 "been an error since the handle was created, then this returns C<NULL>."
3038 msgstr ""
3039
3040 # type: textblock
3041 #. type: textblock
3042 #: ../src/guestfs.pod:1379
3043 msgid ""
3044 "The lifetime of the returned string is until the next error occurs, or L</"
3045 "guestfs_close> is called."
3046 msgstr ""
3047
3048 # type: =head2
3049 #. type: =head2
3050 #: ../src/guestfs.pod:1382
3051 msgid "guestfs_last_errno"
3052 msgstr ""
3053
3054 # type: verbatim
3055 #. type: verbatim
3056 #: ../src/guestfs.pod:1384
3057 #, no-wrap
3058 msgid ""
3059 " int guestfs_last_errno (guestfs_h *g);\n"
3060 "\n"
3061 msgstr ""
3062
3063 # type: textblock
3064 #. type: textblock
3065 #: ../src/guestfs.pod:1386
3066 msgid "This returns the last error number (errno) that happened on C<g>."
3067 msgstr ""
3068
3069 # type: textblock
3070 #. type: textblock
3071 #: ../src/guestfs.pod:1388
3072 msgid "If successful, an errno integer not equal to zero is returned."
3073 msgstr ""
3074
3075 # type: textblock
3076 #. type: textblock
3077 #: ../src/guestfs.pod:1390
3078 msgid ""
3079 "If no error, this returns 0.  This call can return 0 in three situations:"
3080 msgstr ""
3081
3082 # type: textblock
3083 #. type: textblock
3084 #: ../src/guestfs.pod:1397
3085 msgid "There has not been any error on the handle."
3086 msgstr ""
3087
3088 # type: textblock
3089 #. type: textblock
3090 #: ../src/guestfs.pod:1401
3091 msgid ""
3092 "There has been an error but the errno was meaningless.  This corresponds to "
3093 "the case where the error did not come from a failed system call, but for "
3094 "some other reason."
3095 msgstr ""
3096
3097 # type: textblock
3098 #. type: textblock
3099 #: ../src/guestfs.pod:1407
3100 msgid ""
3101 "There was an error from a failed system call, but for some reason the errno "
3102 "was not captured and returned.  This usually indicates a bug in libguestfs."
3103 msgstr ""
3104
3105 # type: textblock
3106 #. type: textblock
3107 #: ../src/guestfs.pod:1413
3108 msgid ""
3109 "Libguestfs tries to convert the errno from inside the applicance into a "
3110 "corresponding errno for the caller (not entirely trivial: the appliance "
3111 "might be running a completely different operating system from the library "
3112 "and error numbers are not standardized across Un*xen).  If this could not be "
3113 "done, then the error is translated to C<EINVAL>.  In practice this should "
3114 "only happen in very rare circumstances."
3115 msgstr ""
3116
3117 # type: =head2
3118 #. type: =head2
3119 #: ../src/guestfs.pod:1421
3120 msgid "guestfs_set_error_handler"
3121 msgstr ""
3122
3123 # type: verbatim
3124 #. type: verbatim
3125 #: ../src/guestfs.pod:1423
3126 #, no-wrap
3127 msgid ""
3128 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3129 "                                           void *opaque,\n"
3130 "                                           const char *msg);\n"
3131 " void guestfs_set_error_handler (guestfs_h *g,\n"
3132 "                                 guestfs_error_handler_cb cb,\n"
3133 "                                 void *opaque);\n"
3134 "\n"
3135 msgstr ""
3136
3137 # type: textblock
3138 #. type: textblock
3139 #: ../src/guestfs.pod:1430
3140 msgid ""
3141 "The callback C<cb> will be called if there is an error.  The parameters "
3142 "passed to the callback are an opaque data pointer and the error message "
3143 "string."
3144 msgstr ""
3145
3146 # type: textblock
3147 #. type: textblock
3148 #: ../src/guestfs.pod:1434
3149 msgid ""
3150 "C<errno> is not passed to the callback.  To get that the callback must call "
3151 "L</guestfs_last_errno>."
3152 msgstr ""
3153
3154 # type: textblock
3155 #. type: textblock
3156 #: ../src/guestfs.pod:1437
3157 msgid ""
3158 "Note that the message string C<msg> is freed as soon as the callback "
3159 "function returns, so if you want to stash it somewhere you must make your "
3160 "own copy."
3161 msgstr ""
3162
3163 # type: textblock
3164 #. type: textblock
3165 #: ../src/guestfs.pod:1441
3166 msgid "The default handler prints messages on C<stderr>."
3167 msgstr ""
3168
3169 # type: textblock
3170 #. type: textblock
3171 #: ../src/guestfs.pod:1443
3172 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3173 msgstr ""
3174
3175 # type: =head2
3176 #. type: =head2
3177 #: ../src/guestfs.pod:1445
3178 msgid "guestfs_get_error_handler"
3179 msgstr ""
3180
3181 # type: verbatim
3182 #. type: verbatim
3183 #: ../src/guestfs.pod:1447
3184 #, no-wrap
3185 msgid ""
3186 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3187 "                                                     void **opaque_rtn);\n"
3188 "\n"
3189 msgstr ""
3190
3191 # type: textblock
3192 #. type: textblock
3193 #: ../src/guestfs.pod:1450
3194 msgid "Returns the current error handler callback."
3195 msgstr ""
3196
3197 # type: =head2
3198 #. type: =head2
3199 #: ../src/guestfs.pod:1452
3200 msgid "guestfs_set_out_of_memory_handler"
3201 msgstr ""
3202
3203 # type: verbatim
3204 #. type: verbatim
3205 #: ../src/guestfs.pod:1454
3206 #, no-wrap
3207 msgid ""
3208 " typedef void (*guestfs_abort_cb) (void);\n"
3209 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3210 "                                        guestfs_abort_cb);\n"
3211 "\n"
3212 msgstr ""
3213
3214 # type: textblock
3215 #. type: textblock
3216 #: ../src/guestfs.pod:1458
3217 msgid ""
3218 "The callback C<cb> will be called if there is an out of memory situation.  "
3219 "I<Note this callback must not return>."
3220 msgstr ""
3221
3222 # type: textblock
3223 #. type: textblock
3224 #: ../src/guestfs.pod:1461
3225 msgid "The default is to call L<abort(3)>."
3226 msgstr ""
3227
3228 # type: textblock
3229 #. type: textblock
3230 #: ../src/guestfs.pod:1463
3231 msgid ""
3232 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3233 msgstr ""
3234
3235 # type: =head2
3236 #. type: =head2
3237 #: ../src/guestfs.pod:1466
3238 msgid "guestfs_get_out_of_memory_handler"
3239 msgstr ""
3240
3241 # type: verbatim
3242 #. type: verbatim
3243 #: ../src/guestfs.pod:1468
3244 #, no-wrap
3245 msgid ""
3246 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3247 "\n"
3248 msgstr ""
3249
3250 # type: textblock
3251 #. type: textblock
3252 #: ../src/guestfs.pod:1470
3253 msgid "This returns the current out of memory handler."
3254 msgstr ""
3255
3256 # type: =head1
3257 #. type: =head1
3258 #: ../src/guestfs.pod:1472
3259 msgid "API CALLS"
3260 msgstr ""
3261
3262 # type: textblock
3263 #. type: textblock
3264 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1010
3265 msgid "@ACTIONS@"
3266 msgstr ""
3267
3268 # type: =head1
3269 #. type: =head1
3270 #: ../src/guestfs.pod:1476
3271 msgid "STRUCTURES"
3272 msgstr ""
3273
3274 # type: textblock
3275 #. type: textblock
3276 #: ../src/guestfs.pod:1478
3277 msgid "@STRUCTS@"
3278 msgstr ""
3279
3280 # type: =head1
3281 #. type: =head1
3282 #: ../src/guestfs.pod:1480
3283 msgid "AVAILABILITY"
3284 msgstr ""
3285
3286 # type: =head2
3287 #. type: =head2
3288 #: ../src/guestfs.pod:1482
3289 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3290 msgstr ""
3291
3292 # type: textblock
3293 #. type: textblock
3294 #: ../src/guestfs.pod:1484
3295 msgid ""
3296 "Using L</guestfs_available> you can test availability of the following "
3297 "groups of functions.  This test queries the appliance to see if the "
3298 "appliance you are currently using supports the functionality."
3299 msgstr ""
3300
3301 # type: textblock
3302 #. type: textblock
3303 #: ../src/guestfs.pod:1489
3304 msgid "@AVAILABILITY@"
3305 msgstr ""
3306
3307 # type: =head2
3308 #. type: =head2
3309 #: ../src/guestfs.pod:1491
3310 msgid "GUESTFISH supported COMMAND"
3311 msgstr ""
3312
3313 # type: textblock
3314 #. type: textblock
3315 #: ../src/guestfs.pod:1493
3316 msgid ""
3317 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3318 "prints out the available groups and whether they are supported by this build "
3319 "of libguestfs.  Note however that you have to do C<run> first."
3320 msgstr ""
3321
3322 # type: =head2
3323 #. type: =head2
3324 #: ../src/guestfs.pod:1498
3325 msgid "SINGLE CALLS AT COMPILE TIME"
3326 msgstr ""
3327
3328 # type: textblock
3329 #. type: textblock
3330 #: ../src/guestfs.pod:1500
3331 msgid ""
3332 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3333 "function, such as:"
3334 msgstr ""
3335
3336 # type: verbatim
3337 #. type: verbatim
3338 #: ../src/guestfs.pod:1503
3339 #, no-wrap
3340 msgid ""
3341 " #define LIBGUESTFS_HAVE_DD 1\n"
3342 "\n"
3343 msgstr ""
3344
3345 # type: textblock
3346 #. type: textblock
3347 #: ../src/guestfs.pod:1505
3348 msgid "if L</guestfs_dd> is available."
3349 msgstr ""
3350
3351 # type: textblock
3352 #. type: textblock
3353 #: ../src/guestfs.pod:1507
3354 msgid ""
3355 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3356 "function is available at compile time, we recommended using build tools such "
3357 "as autoconf or cmake.  For example in autotools you could use:"
3358 msgstr ""
3359
3360 # type: verbatim
3361 #. type: verbatim
3362 #: ../src/guestfs.pod:1512
3363 #, no-wrap
3364 msgid ""
3365 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3366 " AC_CHECK_FUNCS([guestfs_dd])\n"
3367 "\n"
3368 msgstr ""
3369
3370 # type: textblock
3371 #. type: textblock
3372 #: ../src/guestfs.pod:1515
3373 msgid ""
3374 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3375 "in your program."
3376 msgstr ""
3377
3378 # type: =head2
3379 #. type: =head2
3380 #: ../src/guestfs.pod:1518
3381 msgid "SINGLE CALLS AT RUN TIME"
3382 msgstr ""
3383
3384 # type: textblock
3385 #. type: textblock
3386 #: ../src/guestfs.pod:1520
3387 msgid ""
3388 "Testing at compile time doesn't guarantee that a function really exists in "
3389 "the library.  The reason is that you might be dynamically linked against a "
3390 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3391 "This situation unfortunately results in a segmentation fault, which is a "
3392 "shortcoming of the C dynamic linking system itself."
3393 msgstr ""
3394
3395 # type: textblock
3396 #. type: textblock
3397 #: ../src/guestfs.pod:1527
3398 msgid ""
3399 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3400 "in this example program (note that you still need the compile time check as "
3401 "well):"
3402 msgstr ""
3403
3404 # type: verbatim
3405 #. type: verbatim
3406 #: ../src/guestfs.pod:1531
3407 #, no-wrap
3408 msgid ""
3409 " #include <stdio.h>\n"
3410 " #include <stdlib.h>\n"
3411 " #include <unistd.h>\n"
3412 " #include <dlfcn.h>\n"
3413 " #include <guestfs.h>\n"
3414 " \n"
3415 msgstr ""
3416
3417 # type: verbatim
3418 #. type: verbatim
3419 #: ../src/guestfs.pod:1537
3420 #, no-wrap
3421 msgid ""
3422 " main ()\n"
3423 " {\n"
3424 " #ifdef LIBGUESTFS_HAVE_DD\n"
3425 "   void *dl;\n"
3426 "   int has_function;\n"
3427 " \n"
3428 msgstr ""
3429
3430 # type: verbatim
3431 #. type: verbatim
3432 #: ../src/guestfs.pod:1543
3433 #, no-wrap
3434 msgid ""
3435 "   /* Test if the function guestfs_dd is really available. */\n"
3436 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3437 "   if (!dl) {\n"
3438 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3439 "     exit (EXIT_FAILURE);\n"
3440 "   }\n"
3441 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3442 "   dlclose (dl);\n"
3443 " \n"
3444 msgstr ""
3445
3446 # type: verbatim
3447 #. type: verbatim
3448 #: ../src/guestfs.pod:1552
3449 #, no-wrap
3450 msgid ""
3451 "   if (!has_function)\n"
3452 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3453 "   else {\n"
3454 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3455 "     /* Now it's safe to call\n"
3456 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3457 "     */\n"
3458 "   }\n"
3459 " #else\n"
3460 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3461 " #endif\n"
3462 "  }\n"
3463 "\n"
3464 msgstr ""
3465
3466 # type: textblock
3467 #. type: textblock
3468 #: ../src/guestfs.pod:1565
3469 msgid ""
3470 "You may think the above is an awful lot of hassle, and it is.  There are "
3471 "other ways outside of the C linking system to ensure that this kind of "
3472 "incompatibility never arises, such as using package versioning:"
3473 msgstr ""
3474
3475 # type: verbatim
3476 #. type: verbatim
3477 #: ../src/guestfs.pod:1570
3478 #, no-wrap
3479 msgid ""
3480 " Requires: libguestfs >= 1.0.80\n"
3481 "\n"
3482 msgstr ""
3483
3484 # type: =head1
3485 #. type: =head1
3486 #: ../src/guestfs.pod:1572
3487 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3488 msgstr ""
3489
3490 # type: textblock
3491 #. type: textblock
3492 #: ../src/guestfs.pod:1574
3493 msgid ""
3494 "A recent feature of the API is the introduction of calls which take optional "
3495 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3496 "takes variable arguments (ie. C<...>), as in this example:"
3497 msgstr ""
3498
3499 # type: verbatim
3500 #. type: verbatim
3501 #: ../src/guestfs.pod:1579
3502 #, no-wrap
3503 msgid ""
3504 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3505 "\n"
3506 msgstr ""
3507
3508 # type: textblock
3509 #. type: textblock
3510 #: ../src/guestfs.pod:1581
3511 msgid ""
3512 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3513 "call with no optional arguments specified:"
3514 msgstr ""
3515
3516 # type: verbatim
3517 #. type: verbatim
3518 #: ../src/guestfs.pod:1584
3519 #, no-wrap
3520 msgid ""
3521 " guestfs_add_drive_opts (g, filename, -1);\n"
3522 "\n"
3523 msgstr ""
3524
3525 # type: textblock
3526 #. type: textblock
3527 #: ../src/guestfs.pod:1586
3528 msgid "With a single optional argument:"
3529 msgstr ""
3530
3531 # type: verbatim
3532 #. type: verbatim
3533 #: ../src/guestfs.pod:1588
3534 #, no-wrap
3535 msgid ""
3536 " guestfs_add_drive_opts (g, filename,\n"
3537 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3538 "                         -1);\n"
3539 "\n"
3540 msgstr ""
3541
3542 # type: textblock
3543 #. type: textblock
3544 #: ../src/guestfs.pod:1592
3545 msgid "With two:"
3546 msgstr ""
3547
3548 # type: verbatim
3549 #. type: verbatim
3550 #: ../src/guestfs.pod:1594
3551 #, no-wrap
3552 msgid ""
3553 " guestfs_add_drive_opts (g, filename,\n"
3554 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3555 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3556 "                         -1);\n"
3557 "\n"
3558 msgstr ""
3559
3560 # type: textblock
3561 #. type: textblock
3562 #: ../src/guestfs.pod:1599
3563 msgid ""
3564 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3565 "happen!"
3566 msgstr ""
3567
3568 # type: =head2
3569 #. type: =head2
3570 #: ../src/guestfs.pod:1602
3571 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3572 msgstr ""
3573
3574 # type: textblock
3575 #. type: textblock
3576 #: ../src/guestfs.pod:1604
3577 msgid ""
3578 "The second variant has the same name with the suffix C<_va>, which works the "
3579 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3580 "example function, this is declared:"
3581 msgstr ""
3582
3583 # type: verbatim
3584 #. type: verbatim
3585 #: ../src/guestfs.pod:1608
3586 #, no-wrap
3587 msgid ""
3588 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3589 "                                va_list args);\n"
3590 "\n"
3591 msgstr ""
3592
3593 # type: =head2
3594 #. type: =head2
3595 #: ../src/guestfs.pod:1611
3596 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3597 msgstr ""
3598
3599 # type: textblock
3600 #. type: textblock
3601 #: ../src/guestfs.pod:1613
3602 msgid ""
3603 "The third variant is useful where you need to construct these calls.  You "
3604 "pass in a structure where you fill in the optional fields.  The structure "
3605 "has a bitmask as the first element which you must set to indicate which "
3606 "fields you have filled in.  For our example function the structure and call "
3607 "are declared:"
3608 msgstr ""
3609
3610 # type: verbatim
3611 #. type: verbatim
3612 #: ../src/guestfs.pod:1619
3613 #, no-wrap
3614 msgid ""
3615 " struct guestfs_add_drive_opts_argv {\n"
3616 "   uint64_t bitmask;\n"
3617 "   int readonly;\n"
3618 "   const char *format;\n"
3619 "   /* ... */\n"
3620 " };\n"
3621 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3622 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3623 "\n"
3624 msgstr ""
3625
3626 # type: textblock
3627 #. type: textblock
3628 #: ../src/guestfs.pod:1628
3629 msgid "You could call it like this:"
3630 msgstr ""
3631
3632 # type: verbatim
3633 #. type: verbatim
3634 #: ../src/guestfs.pod:1630
3635 #, no-wrap
3636 msgid ""
3637 " struct guestfs_add_drive_opts_argv optargs = {\n"
3638 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3639 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3640 "   .readonly = 1,\n"
3641 "   .format = \"qcow2\"\n"
3642 " };\n"
3643 " \n"
3644 msgstr ""
3645
3646 # type: verbatim
3647 #. type: verbatim
3648 #: ../src/guestfs.pod:1637
3649 #, no-wrap
3650 msgid ""
3651 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3652 "\n"
3653 msgstr ""
3654
3655 # type: textblock
3656 #. type: textblock
3657 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3658 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:9
3659 #: ../fish/guestfish-actions.pod:1265 ../tools/virt-win-reg.pl:532
3660 msgid "Notes:"
3661 msgstr ""
3662
3663 # type: textblock
3664 #. type: textblock
3665 #: ../src/guestfs.pod:1645
3666 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3667 msgstr ""
3668
3669 # type: textblock
3670 #. type: textblock
3671 #: ../src/guestfs.pod:1650
3672 msgid "You do not need to fill in all fields of the structure."
3673 msgstr ""
3674
3675 # type: textblock
3676 #. type: textblock
3677 #: ../src/guestfs.pod:1654
3678 msgid ""
3679 "There must be a one-to-one correspondence between fields of the structure "
3680 "that are filled in, and bits set in the bitmask."
3681 msgstr ""
3682
3683 # type: =head2
3684 #. type: =head2
3685 #: ../src/guestfs.pod:1659
3686 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3687 msgstr ""
3688
3689 # type: textblock
3690 #. type: textblock
3691 #: ../src/guestfs.pod:1661
3692 msgid ""
3693 "In other languages, optional arguments are expressed in the way that is "
3694 "natural for that language.  We refer you to the language-specific "
3695 "documentation for more details on that."
3696 msgstr ""
3697
3698 # type: textblock
3699 #. type: textblock
3700 #: ../src/guestfs.pod:1665
3701 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3702 msgstr ""
3703
3704 # type: =head2
3705 #. type: =head2
3706 #: ../src/guestfs.pod:1667
3707 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3708 msgstr ""
3709
3710 #. type: textblock
3711 #: ../src/guestfs.pod:1669
3712 msgid ""
3713 "B<Note:> This section documents the generic event mechanism introduced in "
3714 "libguestfs 1.10, which you should use in new code if possible.  The old "
3715 "functions C<guestfs_set_log_message_callback>, "
3716 "C<guestfs_set_subprocess_quit_callback>, "
3717 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3718 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3719 "page.  Because of the ABI guarantee, the old functions continue to work."
3720 msgstr ""
3721
3722 #. type: textblock
3723 #: ../src/guestfs.pod:1678
3724 msgid ""
3725 "Handles generate events when certain things happen, such as log messages "
3726 "being generated, progress messages during long-running operations, or the "
3727 "handle being closed.  The API calls described below let you register a "
3728 "callback to be called when events happen.  You can register multiple "
3729 "callbacks (for the same, different or overlapping sets of events), and "
3730 "individually remove callbacks.  If callbacks are not removed, then they "
3731 "remain in force until the handle is closed."
3732 msgstr ""
3733
3734 #. type: textblock
3735 #: ../src/guestfs.pod:1686
3736 msgid ""
3737 "In the current implementation, events are only generated synchronously: that "
3738 "means that events (and hence callbacks) can only happen while you are in the "
3739 "middle of making another libguestfs call.  The callback is called in the "
3740 "same thread."
3741 msgstr ""
3742
3743 #. type: textblock
3744 #: ../src/guestfs.pod:1691
3745 msgid ""
3746 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3747 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3748 msgstr ""
3749
3750 #. type: =head3
3751 #: ../src/guestfs.pod:1695
3752 msgid "CLASSES OF EVENTS"
3753 msgstr ""
3754
3755 #. type: =item
3756 #: ../src/guestfs.pod:1699
3757 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../src/guestfs.pod:1702
3762 msgid ""
3763 "The callback function will be called while the handle is being closed "
3764 "(synchronously from L</guestfs_close>)."
3765 msgstr ""
3766
3767 # type: textblock
3768 #. type: textblock
3769 #: ../src/guestfs.pod:1705
3770 msgid ""
3771 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3772 "handles that are open when the program exits.  This means that this callback "
3773 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3774 "problems in higher-level languages (eg. if your HLL interpreter has already "
3775 "been cleaned up by the time this is called, and if your callback then jumps "
3776 "into some HLL function)."
3777 msgstr ""
3778
3779 #. type: textblock
3780 #: ../src/guestfs.pod:1712
3781 msgid ""
3782 "If no callback is registered: the handle is closed without any callback "
3783 "being invoked."
3784 msgstr ""
3785
3786 #. type: =item
3787 #: ../src/guestfs.pod:1715
3788 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3789 msgstr ""
3790
3791 #. type: textblock
3792 #: ../src/guestfs.pod:1718
3793 msgid ""
3794 "The callback function will be called when the child process quits, either "
3795 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3796 "corresponds to a transition from any state to the CONFIG state)."
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3801 msgid "If no callback is registered: the event is ignored."
3802 msgstr ""
3803
3804 #. type: =item
3805 #: ../src/guestfs.pod:1724
3806 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3807 msgstr ""
3808
3809 #. type: textblock
3810 #: ../src/guestfs.pod:1727
3811 msgid ""
3812 "The callback function will be called when the child process becomes ready "
3813 "first time after it has been launched.  (This corresponds to a transition "
3814 "from LAUNCHING to the READY state)."
3815 msgstr ""
3816
3817 #. type: =item
3818 #: ../src/guestfs.pod:1733
3819 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3820 msgstr ""
3821
3822 # type: textblock
3823 #. type: textblock
3824 #: ../src/guestfs.pod:1736
3825 msgid ""
3826 "Some long-running operations can generate progress messages.  If this "
3827 "callback is registered, then it will be called each time a progress message "
3828 "is generated (usually two seconds after the operation started, and three "
3829 "times per second thereafter until it completes, although the frequency may "
3830 "change in future versions)."
3831 msgstr ""
3832
3833 #. type: textblock
3834 #: ../src/guestfs.pod:1742
3835 msgid ""
3836 "The callback receives in the payload four unsigned 64 bit numbers which are "
3837 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3838 msgstr ""
3839
3840 #. type: textblock
3841 #: ../src/guestfs.pod:1745
3842 msgid ""
3843 "The units of C<total> are not defined, although for some operations C<total> "
3844 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3845 "or megabytes), and C<position> may be the portion which has been transferred."
3846 msgstr ""
3847
3848 # type: textblock
3849 #. type: textblock
3850 #: ../src/guestfs.pod:1750
3851 msgid "The only defined and stable parts of the API are:"
3852 msgstr ""
3853
3854 # type: textblock
3855 #. type: textblock
3856 #: ../src/guestfs.pod:1756
3857 msgid ""
3858 "The callback can display to the user some type of progress bar or indicator "
3859 "which shows the ratio of C<position>:C<total>."
3860 msgstr ""
3861
3862 # type: textblock
3863 #. type: textblock
3864 #: ../src/guestfs.pod:1761
3865 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3866 msgstr ""
3867
3868 #. type: textblock
3869 #: ../src/guestfs.pod:1765
3870 msgid ""
3871 "If any progress notification is sent during a call, then a final progress "
3872 "notification is always sent when C<position> = C<total> (I<unless> the call "
3873 "fails with an error)."
3874 msgstr ""
3875
3876 # type: textblock
3877 #. type: textblock
3878 #: ../src/guestfs.pod:1769
3879 msgid ""
3880 "This is to simplify caller code, so callers can easily set the progress "
3881 "indicator to \"100%\" at the end of the operation, without requiring special "
3882 "code to detect this case."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../src/guestfs.pod:1775
3887 msgid ""
3888 "For some calls we are unable to estimate the progress of the call, but we "
3889 "can still generate progress messages to indicate activity.  This is known as "
3890 "\"pulse mode\", and is directly supported by certain progress bar "
3891 "implementations (eg. GtkProgressBar)."
3892 msgstr ""
3893
3894 #. type: textblock
3895 #: ../src/guestfs.pod:1780
3896 msgid ""
3897 "For these calls, zero or more progress messages are generated with "
3898 "C<position = 0> and C<total = 1>, followed by a final message with "
3899 "C<position = total = 1>."
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../src/guestfs.pod:1784
3904 msgid ""
3905 "As noted above, if the call fails with an error then the final message may "
3906 "not be generated."
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../src/guestfs.pod:1789
3911 msgid ""
3912 "The callback also receives the procedure number (C<proc_nr>) and serial "
3913 "number (C<serial>) of the call.  These are only useful for debugging "
3914 "protocol issues, and the callback can normally ignore them.  The callback "
3915 "may want to print these numbers in error messages or debugging messages."
3916 msgstr ""
3917
3918 #. type: textblock
3919 #: ../src/guestfs.pod:1795
3920 msgid "If no callback is registered: progress messages are discarded."
3921 msgstr ""
3922
3923 #. type: =item
3924 #: ../src/guestfs.pod:1797
3925 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3926 msgstr ""
3927
3928 #. type: textblock
3929 #: ../src/guestfs.pod:1800
3930 msgid ""
3931 "The callback function is called whenever a log message is generated by qemu, "
3932 "the appliance kernel, guestfsd (daemon), or utility programs."
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../src/guestfs.pod:1803
3937 msgid ""
3938 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3939 "guestfs_launch>) then additional debug messages are generated."
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3944 msgid ""
3945 "If no callback is registered: the messages are discarded unless the verbose "
3946 "flag is set in which case they are sent to stderr.  You can override the "
3947 "printing of verbose messages to stderr by setting up a callback."
3948 msgstr ""
3949
3950 #. type: =item
3951 #: ../src/guestfs.pod:1811
3952 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../src/guestfs.pod:1814
3957 msgid ""
3958 "The callback function is called whenever a log message is generated by the "
3959 "library part of libguestfs."
3960 msgstr ""
3961
3962 #. type: textblock
3963 #: ../src/guestfs.pod:1817
3964 msgid ""
3965 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3966 "messages are generated."
3967 msgstr ""
3968
3969 #. type: =item
3970 #: ../src/guestfs.pod:1825
3971 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3972 msgstr ""
3973
3974 #. type: textblock
3975 #: ../src/guestfs.pod:1828
3976 msgid ""
3977 "The callback function is called whenever a trace message is generated.  This "
3978 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3979 msgstr ""
3980
3981 #. type: textblock
3982 #: ../src/guestfs.pod:1831
3983 msgid ""
3984 "If no callback is registered: the messages are sent to stderr.  You can "
3985 "override the printing of trace messages to stderr by setting up a callback."
3986 msgstr ""
3987
3988 #. type: =head3
3989 #: ../src/guestfs.pod:1837
3990 msgid "guestfs_set_event_callback"
3991 msgstr ""
3992
3993 #. type: verbatim
3994 #: ../src/guestfs.pod:1839
3995 #, no-wrap
3996 msgid ""
3997 " int guestfs_set_event_callback (guestfs_h *g,\n"
3998 "                                 guestfs_event_callback cb,\n"
3999 "                                 uint64_t event_bitmask,\n"
4000 "                                 int flags,\n"
4001 "                                 void *opaque);\n"
4002 "\n"
4003 msgstr ""
4004
4005 #. type: textblock
4006 #: ../src/guestfs.pod:1845
4007 msgid ""
4008 "This function registers a callback (C<cb>) for all event classes in the "
4009 "C<event_bitmask>."
4010 msgstr ""
4011
4012 #. type: textblock
4013 #: ../src/guestfs.pod:1848
4014 msgid ""
4015 "For example, to register for all log message events, you could call this "
4016 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4017 "To register a single callback for all possible classes of events, use "
4018 "C<GUESTFS_EVENT_ALL>."
4019 msgstr ""
4020
4021 #. type: textblock
4022 #: ../src/guestfs.pod:1854
4023 msgid "C<flags> should always be passed as 0."
4024 msgstr ""
4025
4026 #. type: textblock
4027 #: ../src/guestfs.pod:1856
4028 msgid ""
4029 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4030 "it for any purpose."
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../src/guestfs.pod:1859
4035 msgid ""
4036 "The return value is the event handle (an integer) which you can use to "
4037 "delete the callback (see below)."
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../src/guestfs.pod:1862
4042 msgid ""
4043 "If there is an error, this function returns C<-1>, and sets the error in the "
4044 "handle in the usual way (see L</guestfs_last_error> etc.)"
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../src/guestfs.pod:1865
4049 msgid ""
4050 "Callbacks remain in effect until they are deleted, or until the handle is "
4051 "closed."
4052 msgstr ""
4053
4054 #. type: textblock
4055 #: ../src/guestfs.pod:1868
4056 msgid ""
4057 "In the case where multiple callbacks are registered for a particular event "
4058 "class, all of the callbacks are called.  The order in which multiple "
4059 "callbacks are called is not defined."
4060 msgstr ""
4061
4062 #. type: =head3
4063 #: ../src/guestfs.pod:1872
4064 msgid "guestfs_delete_event_callback"
4065 msgstr ""
4066
4067 #. type: verbatim
4068 #: ../src/guestfs.pod:1874
4069 #, no-wrap
4070 msgid ""
4071 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4072 "\n"
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../src/guestfs.pod:1876
4077 msgid ""
4078 "Delete a callback that was previously registered.  C<event_handle> should be "
4079 "the integer that was returned by a previous call to "
4080 "C<guestfs_set_event_callback> on the same handle."
4081 msgstr ""
4082
4083 #. type: =head3
4084 #: ../src/guestfs.pod:1880
4085 msgid "guestfs_event_callback"
4086 msgstr ""
4087
4088 #. type: verbatim
4089 #: ../src/guestfs.pod:1882
4090 #, no-wrap
4091 msgid ""
4092 " typedef void (*guestfs_event_callback) (\n"
4093 "                  guestfs_h *g,\n"
4094 "                  void *opaque,\n"
4095 "                  uint64_t event,\n"
4096 "                  int event_handle,\n"
4097 "                  int flags,\n"
4098 "                  const char *buf, size_t buf_len,\n"
4099 "                  const uint64_t *array, size_t array_len);\n"
4100 "\n"
4101 msgstr ""
4102
4103 #. type: textblock
4104 #: ../src/guestfs.pod:1891
4105 msgid ""
4106 "This is the type of the event callback function that you have to provide."
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../src/guestfs.pod:1894
4111 msgid ""
4112 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4113 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4114 "handle, and C<flags> which in the current API you should ignore."
4115 msgstr ""
4116
4117 #. type: textblock
4118 #: ../src/guestfs.pod:1898
4119 msgid ""
4120 "The remaining parameters contain the event payload (if any).  Each event may "
4121 "contain a payload, which usually relates to the event class, but for future "
4122 "proofing your code should be written to handle any payload for any event "
4123 "class."
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../src/guestfs.pod:1903
4128 msgid ""
4129 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4130 "there is no message buffer).  Note that this message buffer can contain "
4131 "arbitrary 8 bit data, including NUL bytes."
4132 msgstr ""
4133
4134 #. type: textblock
4135 #: ../src/guestfs.pod:1907
4136 msgid ""
4137 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4138 "moment this is only used for progress messages."
4139 msgstr ""
4140
4141 #. type: =head3
4142 #: ../src/guestfs.pod:1910
4143 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4144 msgstr ""
4145
4146 #. type: textblock
4147 #: ../src/guestfs.pod:1912
4148 msgid ""
4149 "One motivation for the generic event API was to allow GUI programs to "
4150 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4151 "unconditionally to C<stderr>."
4152 msgstr ""
4153
4154 #. type: textblock
4155 #: ../src/guestfs.pod:1916
4156 msgid ""
4157 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4158 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4159 "messages are not events; you must capture error messages separately)."
4160 msgstr ""
4161
4162 #. type: textblock
4163 #: ../src/guestfs.pod:1921
4164 msgid ""
4165 "Programs have to set up a callback to capture the classes of events of "
4166 "interest:"
4167 msgstr ""
4168
4169 #. type: verbatim
4170 #: ../src/guestfs.pod:1924
4171 #, no-wrap
4172 msgid ""
4173 " int eh =\n"
4174 "   guestfs_set_event_callback\n"
4175 "     (g, message_callback,\n"
4176 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4177 "      GUESTFS_EVENT_TRACE,\n"
4178 "      0, NULL) == -1)\n"
4179 " if (eh == -1) {\n"
4180 "   // handle error in the usual way\n"
4181 " }\n"
4182 "\n"
4183 msgstr ""
4184
4185 #. type: textblock
4186 #: ../src/guestfs.pod:1934
4187 msgid ""
4188 "The callback can then direct messages to the appropriate place.  In this "
4189 "example, messages are directed to syslog:"
4190 msgstr ""
4191
4192 #. type: verbatim
4193 #: ../src/guestfs.pod:1937
4194 #, no-wrap
4195 msgid ""
4196 " static void\n"
4197 " message_callback (\n"
4198 "         guestfs_h *g,\n"
4199 "         void *opaque,\n"
4200 "         uint64_t event,\n"
4201 "         int event_handle,\n"
4202 "         int flags,\n"
4203 "         const char *buf, size_t buf_len,\n"
4204 "         const uint64_t *array, size_t array_len)\n"
4205 " {\n"
4206 "   const int priority = LOG_USER|LOG_INFO;\n"
4207 "   if (buf_len > 0)\n"
4208 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4209 " }\n"
4210 "\n"
4211 msgstr ""
4212
4213 # type: =head1
4214 #. type: =head1
4215 #: ../src/guestfs.pod:1952
4216 msgid "PRIVATE DATA AREA"
4217 msgstr ""
4218
4219 #. type: textblock
4220 #: ../src/guestfs.pod:1954
4221 msgid ""
4222 "You can attach named pieces of private data to the libguestfs handle, fetch "
4223 "them by name, and walk over them, for the lifetime of the handle.  This is "
4224 "called the private data area and is only available from the C API."
4225 msgstr ""
4226
4227 # type: textblock
4228 #. type: textblock
4229 #: ../src/guestfs.pod:1959
4230 msgid "To attach a named piece of data, use the following call:"
4231 msgstr ""
4232
4233 # type: verbatim
4234 #. type: verbatim
4235 #: ../src/guestfs.pod:1961
4236 #, no-wrap
4237 msgid ""
4238 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4239 "\n"
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../src/guestfs.pod:1963
4244 msgid ""
4245 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4246 "pointer (which can be C<NULL>).  Any previous item with the same key is "
4247 "overwritten."
4248 msgstr ""
4249
4250 #. type: textblock
4251 #: ../src/guestfs.pod:1967
4252 msgid ""
4253 "You can use any C<key> you want, but your key should I<not> start with an "
4254 "underscore character.  Keys beginning with an underscore character are "
4255 "reserved for internal libguestfs purposes (eg. for implementing language "
4256 "bindings).  It is recommended that you prefix the key with some unique "
4257 "string to avoid collisions with other users."
4258 msgstr ""
4259
4260 # type: textblock
4261 #. type: textblock
4262 #: ../src/guestfs.pod:1973
4263 msgid "To retrieve the pointer, use:"
4264 msgstr ""
4265
4266 # type: verbatim
4267 #. type: verbatim
4268 #: ../src/guestfs.pod:1975
4269 #, no-wrap
4270 msgid ""
4271 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4272 "\n"
4273 msgstr ""
4274
4275 # type: textblock
4276 #. type: textblock
4277 #: ../src/guestfs.pod:1977
4278 msgid ""
4279 "This function returns C<NULL> if either no data is found associated with "
4280 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4281 "C<NULL>."
4282 msgstr ""
4283
4284 #. type: textblock
4285 #: ../src/guestfs.pod:1981
4286 msgid ""
4287 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4288 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4289 "all.  In particular, libguestfs does I<not> try to free the data when the "
4290 "handle is closed.  If the data must be freed, then the caller must either "
4291 "free it before calling L</guestfs_close> or must set up a close callback to "
4292 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../src/guestfs.pod:1988
4297 msgid "To walk over all entries, use these two functions:"
4298 msgstr ""
4299
4300 #. type: verbatim
4301 #: ../src/guestfs.pod:1990
4302 #, no-wrap
4303 msgid ""
4304 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4305 "\n"
4306 msgstr ""
4307
4308 #. type: verbatim
4309 #: ../src/guestfs.pod:1992
4310 #, no-wrap
4311 msgid ""
4312 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4313 "\n"
4314 msgstr ""
4315
4316 #. type: textblock
4317 #: ../src/guestfs.pod:1994
4318 msgid ""
4319 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4320 "not have any particular meaning -- keys are not returned in any defined "
4321 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4322 "corresponding data pointer is returned from the function.  C<NULL> is "
4323 "returned if there are no keys stored in the handle."
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../src/guestfs.pod:2000
4328 msgid ""
4329 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4330 "value of this function is also C<NULL> is there are no further entries to "
4331 "return."
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../src/guestfs.pod:2004
4336 msgid "Notes about walking over entries:"
4337 msgstr ""
4338
4339 #. type: textblock
4340 #: ../src/guestfs.pod:2010
4341 msgid ""
4342 "You must not call C<guestfs_set_private> while walking over the entries."
4343 msgstr ""
4344
4345 #. type: textblock
4346 #: ../src/guestfs.pod:2015
4347 msgid ""
4348 "The handle maintains an internal iterator which is reset when you call "
4349 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4350 "call C<guestfs_set_private>."
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../src/guestfs.pod:2021
4355 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4356 msgstr ""
4357
4358 #. type: verbatim
4359 #: ../src/guestfs.pod:2023
4360 #, no-wrap
4361 msgid ""
4362 " guestfs_set_private (g, key, NULL);\n"
4363 "\n"
4364 msgstr ""
4365
4366 #. type: textblock
4367 #: ../src/guestfs.pod:2025
4368 msgid "then that C<key> is not returned when walking."
4369 msgstr ""
4370
4371 #. type: textblock
4372 #: ../src/guestfs.pod:2029
4373 msgid ""
4374 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4375 "C<guestfs_next_private> or C<guestfs_set_private>."
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../src/guestfs.pod:2035
4380 msgid ""
4381 "The following example code shows how to print all keys and data pointers "
4382 "that are associated with the handle C<g>:"
4383 msgstr ""
4384
4385 #. type: verbatim
4386 #: ../src/guestfs.pod:2038
4387 #, no-wrap
4388 msgid ""
4389 " const char *key;\n"
4390 " void *data = guestfs_first_private (g, &key);\n"
4391 " while (data != NULL)\n"
4392 "   {\n"
4393 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4394 "     data = guestfs_next_private (g, &key);\n"
4395 "   }\n"
4396 "\n"
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../src/guestfs.pod:2046
4401 msgid ""
4402 "More commonly you are only interested in keys that begin with an application-"
4403 "specific prefix C<foo_>.  Modify the loop like so:"
4404 msgstr ""
4405
4406 #. type: verbatim
4407 #: ../src/guestfs.pod:2049
4408 #, no-wrap
4409 msgid ""
4410 " const char *key;\n"
4411 " void *data = guestfs_first_private (g, &key);\n"
4412 " while (data != NULL)\n"
4413 "   {\n"
4414 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4415 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4416 "     data = guestfs_next_private (g, &key);\n"
4417 "   }\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../src/guestfs.pod:2058
4423 msgid ""
4424 "If you need to modify keys while walking, then you have to jump back to the "
4425 "beginning of the loop.  For example, to delete all keys prefixed with "
4426 "C<foo_>:"
4427 msgstr ""
4428
4429 #. type: verbatim
4430 #: ../src/guestfs.pod:2062
4431 #, no-wrap
4432 msgid ""
4433 "  const char *key;\n"
4434 "  void *data;\n"
4435 " again:\n"
4436 "  data = guestfs_first_private (g, &key);\n"
4437 "  while (data != NULL)\n"
4438 "    {\n"
4439 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4440 "        {\n"
4441 "          guestfs_set_private (g, key, NULL);\n"
4442 "          /* note that 'key' pointer is now invalid, and so is\n"
4443 "             the internal iterator */\n"
4444 "          goto again;\n"
4445 "        }\n"
4446 "      data = guestfs_next_private (g, &key);\n"
4447 "    }\n"
4448 "\n"
4449 msgstr ""
4450
4451 #. type: textblock
4452 #: ../src/guestfs.pod:2078
4453 msgid ""
4454 "Note that the above loop is guaranteed to terminate because the keys are "
4455 "being deleted, but other manipulations of keys within the loop might not "
4456 "terminate unless you also maintain an indication of which keys have been "
4457 "visited."
4458 msgstr ""
4459
4460 # type: =end
4461 #. type: =end
4462 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4463 msgid "html"
4464 msgstr ""
4465
4466 # type: textblock
4467 #. type: textblock
4468 #: ../src/guestfs.pod:2085
4469 msgid ""
4470 "<!-- old anchor for the next section --> <a name="
4471 "\"state_machine_and_low_level_event_api\"/>"
4472 msgstr ""
4473
4474 # type: =head1
4475 #. type: =head1
4476 #: ../src/guestfs.pod:2090
4477 msgid "ARCHITECTURE"
4478 msgstr ""
4479
4480 # type: textblock
4481 #. type: textblock
4482 #: ../src/guestfs.pod:2092
4483 msgid ""
4484 "Internally, libguestfs is implemented by running an appliance (a special "
4485 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4486 "process of the main program."
4487 msgstr ""
4488
4489 # type: verbatim
4490 #. type: verbatim
4491 #: ../src/guestfs.pod:2096
4492 #, no-wrap
4493 msgid ""
4494 "  ___________________\n"
4495 " /                   \\\n"
4496 " | main program      |\n"
4497 " |                   |\n"
4498 " |                   |           child process / appliance\n"
4499 " |                   |           __________________________\n"
4500 " |                   |          / qemu                     \\\n"
4501 " +-------------------+   RPC    |      +-----------------+ |\n"
4502 " | libguestfs     <--------------------> guestfsd        | |\n"
4503 " |                   |          |      +-----------------+ |\n"
4504 " \\___________________/          |      | Linux kernel    | |\n"
4505 "                                |      +--^--------------+ |\n"
4506 "                                \\_________|________________/\n"
4507 "                                          |\n"
4508 "                                   _______v______\n"
4509 "                                  /              \\\n"
4510 "                                  | Device or    |\n"
4511 "                                  | disk image   |\n"
4512 "                                  \\______________/\n"
4513 "\n"
4514 msgstr ""
4515
4516 # type: textblock
4517 #. type: textblock
4518 #: ../src/guestfs.pod:2116
4519 msgid ""
4520 "The library, linked to the main program, creates the child process and hence "
4521 "the appliance in the L</guestfs_launch> function."
4522 msgstr ""
4523
4524 # type: textblock
4525 #. type: textblock
4526 #: ../src/guestfs.pod:2119
4527 msgid ""
4528 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4529 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4530 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4531 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4532 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4533 "attached to the qemu process which translates device access by the "
4534 "appliance's Linux kernel into accesses to the image."
4535 msgstr ""
4536
4537 # type: textblock
4538 #. type: textblock
4539 #: ../src/guestfs.pod:2128
4540 msgid ""
4541 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4542 "Although the disk image you are attached to might also be used by some "
4543 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4544 "care if both libguestfs's qemu process and your virtual machine are trying "
4545 "to update the disk image at the same time, since these usually results in "
4546 "massive disk corruption)."
4547 msgstr ""
4548
4549 # type: =head1
4550 #. type: =head1
4551 #: ../src/guestfs.pod:2135
4552 msgid "STATE MACHINE"
4553 msgstr ""
4554
4555 # type: textblock
4556 #. type: textblock
4557 #: ../src/guestfs.pod:2137
4558 msgid "libguestfs uses a state machine to model the child process:"
4559 msgstr ""
4560
4561 # type: verbatim
4562 #. type: verbatim
4563 #: ../src/guestfs.pod:2139
4564 #, no-wrap
4565 msgid ""
4566 "                         |\n"
4567 "                    guestfs_create\n"
4568 "                         |\n"
4569 "                         |\n"
4570 "                     ____V_____\n"
4571 "                    /          \\\n"
4572 "                    |  CONFIG  |\n"
4573 "                    \\__________/\n"
4574 "                     ^ ^   ^  \\\n"
4575 "                    /  |    \\  \\ guestfs_launch\n"
4576 "                   /   |    _\\__V______\n"
4577 "                  /    |   /           \\\n"
4578 "                 /     |   | LAUNCHING |\n"
4579 "                /      |   \\___________/\n"
4580 "               /       |       /\n"
4581 "              /        |  guestfs_launch\n"
4582 "             /         |     /\n"
4583 "    ______  /        __|____V\n"
4584 "   /      \\ ------> /        \\\n"
4585 "   | BUSY |         | READY  |\n"
4586 "   \\______/ <------ \\________/\n"
4587 "\n"
4588 msgstr ""
4589
4590 # type: textblock
4591 #. type: textblock
4592 #: ../src/guestfs.pod:2161
4593 msgid ""
4594 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4595 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4596 "(3) alternating between READY and BUSY as commands are issued to, and "
4597 "carried out by, the child process."
4598 msgstr ""
4599
4600 # type: textblock
4601 #. type: textblock
4602 #: ../src/guestfs.pod:2166
4603 msgid ""
4604 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4605 "asynchronously at any time (eg. due to some internal error), and that causes "
4606 "the state to transition back to CONFIG."
4607 msgstr ""
4608
4609 # type: textblock
4610 #. type: textblock
4611 #: ../src/guestfs.pod:2170
4612 msgid ""
4613 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4614 "issued when in the CONFIG state."
4615 msgstr ""
4616
4617 # type: textblock
4618 #. type: textblock
4619 #: ../src/guestfs.pod:2173
4620 msgid ""
4621 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4622 "L</guestfs_launch> blocks until the child process is READY to accept "
4623 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4624 "moves the state from CONFIG to LAUNCHING while it is running."
4625 msgstr ""
4626
4627 # type: textblock
4628 #. type: textblock
4629 #: ../src/guestfs.pod:2179
4630 msgid ""
4631 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4632 "state.  These API calls block waiting for the command to be carried out (ie. "
4633 "the state to transition to BUSY and then back to READY).  There are no non-"
4634 "blocking versions, and no way to issue more than one command per handle at "
4635 "the same time."
4636 msgstr ""
4637
4638 # type: textblock
4639 #. type: textblock
4640 #: ../src/guestfs.pod:2185
4641 msgid ""
4642 "Finally, the child process sends asynchronous messages back to the main "
4643 "program, such as kernel log messages.  You can register a callback to "
4644 "receive these messages."
4645 msgstr ""
4646
4647 # type: =head1
4648 #. type: =head1
4649 #: ../src/guestfs.pod:2189
4650 msgid "INTERNALS"
4651 msgstr ""
4652
4653 # type: =head2
4654 #. type: =head2
4655 #: ../src/guestfs.pod:2191
4656 msgid "COMMUNICATION PROTOCOL"
4657 msgstr ""
4658
4659 # type: textblock
4660 #. type: textblock
4661 #: ../src/guestfs.pod:2193
4662 msgid ""
4663 "Don't rely on using this protocol directly.  This section documents how it "
4664 "currently works, but it may change at any time."
4665 msgstr ""
4666
4667 # type: textblock
4668 #. type: textblock
4669 #: ../src/guestfs.pod:2196
4670 msgid ""
4671 "The protocol used to talk between the library and the daemon running inside "
4672 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4673 "1014, RFC 1832, RFC 4506)."
4674 msgstr ""
4675
4676 # type: textblock
4677 #. type: textblock
4678 #: ../src/guestfs.pod:2200
4679 msgid ""
4680 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4681 "this file is automatically generated)."
4682 msgstr ""
4683
4684 # type: textblock
4685 #. type: textblock
4686 #: ../src/guestfs.pod:2203
4687 msgid ""
4688 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4689 "and C<FileOut> parameters, which are handled with very simple request/reply "
4690 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4691 "parameters, which use the same request and reply messages, but they may also "
4692 "be followed by files sent using a chunked encoding."
4693 msgstr ""
4694
4695 # type: =head3
4696 #. type: =head3
4697 #: ../src/guestfs.pod:2210
4698 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4699 msgstr ""
4700
4701 # type: textblock
4702 #. type: textblock
4703 #: ../src/guestfs.pod:2212
4704 msgid "For ordinary functions, the request message is:"
4705 msgstr ""
4706
4707 # type: verbatim
4708 #. type: verbatim
4709 #: ../src/guestfs.pod:2214
4710 #, no-wrap
4711 msgid ""
4712 " total length (header + arguments,\n"
4713 "      but not including the length word itself)\n"
4714 " struct guestfs_message_header (encoded as XDR)\n"
4715 " struct guestfs_<foo>_args (encoded as XDR)\n"
4716 "\n"
4717 msgstr ""
4718
4719 # type: textblock
4720 #. type: textblock
4721 #: ../src/guestfs.pod:2219
4722 msgid ""
4723 "The total length field allows the daemon to allocate a fixed size buffer "
4724 "into which it slurps the rest of the message.  As a result, the total length "
4725 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4726 "effective size of any request is limited to somewhere under this size."
4727 msgstr ""
4728
4729 # type: textblock
4730 #. type: textblock
4731 #: ../src/guestfs.pod:2225
4732 msgid ""
4733 "Note also that many functions don't take any arguments, in which case the "
4734 "C<guestfs_I<foo>_args> is completely omitted."
4735 msgstr ""
4736
4737 # type: textblock
4738 #. type: textblock
4739 #: ../src/guestfs.pod:2228
4740 msgid ""
4741 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4742 "receiver knows what type of args structure to expect, or none at all."
4743 msgstr ""
4744
4745 # type: textblock
4746 #. type: textblock
4747 #: ../src/guestfs.pod:2232
4748 msgid ""
4749 "For functions that take optional arguments, the optional arguments are "
4750 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4751 "arguments.  A bitmask in the header indicates which optional arguments are "
4752 "meaningful.  The bitmask is also checked to see if it contains bits set "
4753 "which the daemon does not know about (eg. if more optional arguments were "
4754 "added in a later version of the library), and this causes the call to be "
4755 "rejected."
4756 msgstr ""
4757
4758 # type: textblock
4759 #. type: textblock
4760 #: ../src/guestfs.pod:2240
4761 msgid "The reply message for ordinary functions is:"
4762 msgstr ""
4763
4764 # type: verbatim
4765 #. type: verbatim
4766 #: ../src/guestfs.pod:2242
4767 #, no-wrap
4768 msgid ""
4769 " total length (header + ret,\n"
4770 "      but not including the length word itself)\n"
4771 " struct guestfs_message_header (encoded as XDR)\n"
4772 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4773 "\n"
4774 msgstr ""
4775
4776 # type: textblock
4777 #. type: textblock
4778 #: ../src/guestfs.pod:2247
4779 msgid ""
4780 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4781 "functions that return no formal return values."
4782 msgstr ""
4783
4784 # type: textblock
4785 #. type: textblock
4786 #: ../src/guestfs.pod:2250
4787 msgid ""
4788 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4789 msgstr ""
4790
4791 # type: textblock
4792 #. type: textblock
4793 #: ../src/guestfs.pod:2253
4794 msgid ""
4795 "In the case of an error, a flag is set in the header, and the reply message "
4796 "is slightly changed:"
4797 msgstr ""
4798
4799 # type: verbatim
4800 #. type: verbatim
4801 #: ../src/guestfs.pod:2256
4802 #, no-wrap
4803 msgid ""
4804 " total length (header + error,\n"
4805 "      but not including the length word itself)\n"
4806 " struct guestfs_message_header (encoded as XDR)\n"
4807 " struct guestfs_message_error (encoded as XDR)\n"
4808 "\n"
4809 msgstr ""
4810
4811 # type: textblock
4812 #. type: textblock
4813 #: ../src/guestfs.pod:2261
4814 msgid ""
4815 "The C<guestfs_message_error> structure contains the error message as a "
4816 "string."
4817 msgstr ""
4818
4819 # type: =head3
4820 #. type: =head3
4821 #: ../src/guestfs.pod:2264
4822 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4823 msgstr ""
4824
4825 # type: textblock
4826 #. type: textblock
4827 #: ../src/guestfs.pod:2266
4828 msgid ""
4829 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4830 "The normal request message is sent (see above).  However this is followed by "
4831 "a sequence of file chunks."
4832 msgstr ""
4833
4834 # type: verbatim
4835 #. type: verbatim
4836 #: ../src/guestfs.pod:2270
4837 #, no-wrap
4838 msgid ""
4839 " total length (header + arguments,\n"
4840 "      but not including the length word itself,\n"
4841 "      and not including the chunks)\n"
4842 " struct guestfs_message_header (encoded as XDR)\n"
4843 " struct guestfs_<foo>_args (encoded as XDR)\n"
4844 " sequence of chunks for FileIn param #0\n"
4845 " sequence of chunks for FileIn param #1 etc.\n"
4846 "\n"
4847 msgstr ""
4848
4849 # type: textblock
4850 #. type: textblock
4851 #: ../src/guestfs.pod:2278
4852 msgid "The \"sequence of chunks\" is:"
4853 msgstr ""
4854
4855 # type: verbatim
4856 #. type: verbatim
4857 #: ../src/guestfs.pod:2280
4858 #, no-wrap
4859 msgid ""
4860 " length of chunk (not including length word itself)\n"
4861 " struct guestfs_chunk (encoded as XDR)\n"
4862 " length of chunk\n"
4863 " struct guestfs_chunk (encoded as XDR)\n"
4864 "   ...\n"
4865 " length of chunk\n"
4866 " struct guestfs_chunk (with data.data_len == 0)\n"
4867 "\n"
4868 msgstr ""
4869
4870 # type: textblock
4871 #. type: textblock
4872 #: ../src/guestfs.pod:2288
4873 msgid ""
4874 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4875 "is set in the final chunk to indicate either successful completion or early "
4876 "cancellation."
4877 msgstr ""
4878
4879 # type: textblock
4880 #. type: textblock
4881 #: ../src/guestfs.pod:2292
4882 msgid ""
4883 "At time of writing there are no functions that have more than one FileIn "
4884 "parameter.  However this is (theoretically) supported, by sending the "
4885 "sequence of chunks for each FileIn parameter one after another (from left to "
4886 "right)."
4887 msgstr ""
4888
4889 # type: textblock
4890 #. type: textblock
4891 #: ../src/guestfs.pod:2297
4892 msgid ""
4893 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4894 "transfer.  The library does this by sending a chunk with a special flag set "
4895 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4896 "RPC, does I<not> send any reply, and goes back to reading the next request."
4897 msgstr ""
4898
4899 # type: textblock
4900 #. type: textblock
4901 #: ../src/guestfs.pod:2303
4902 msgid ""
4903 "The daemon may also cancel.  It does this by writing a special word "
4904 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4905 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4906 "cancel chunk).  The special word is chosen so that even if cancellation "
4907 "happens right at the end of the transfer (after the library has finished "
4908 "writing and has started listening for the reply), the \"spurious\" cancel "
4909 "flag will not be confused with the reply message."
4910 msgstr ""
4911
4912 # type: textblock
4913 #. type: textblock
4914 #: ../src/guestfs.pod:2312
4915 msgid ""
4916 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4917 "limit), and also files where the size is not known in advance (eg. from "
4918 "pipes or sockets).  However the chunks are rather small "
4919 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4920 "to keep much in memory."
4921 msgstr ""
4922
4923 # type: =head3
4924 #. type: =head3
4925 #: ../src/guestfs.pod:2318
4926 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4927 msgstr ""
4928
4929 # type: textblock
4930 #. type: textblock
4931 #: ../src/guestfs.pod:2320
4932 msgid ""
4933 "The protocol for FileOut parameters is exactly the same as for FileIn "
4934 "parameters, but with the roles of daemon and library reversed."
4935 msgstr ""
4936
4937 # type: verbatim
4938 #. type: verbatim
4939 #: ../src/guestfs.pod:2323
4940 #, no-wrap
4941 msgid ""
4942 " total length (header + ret,\n"
4943 "      but not including the length word itself,\n"
4944 "      and not including the chunks)\n"
4945 " struct guestfs_message_header (encoded as XDR)\n"
4946 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4947 " sequence of chunks for FileOut param #0\n"
4948 " sequence of chunks for FileOut param #1 etc.\n"
4949 "\n"
4950 msgstr ""
4951
4952 # type: =head3
4953 #. type: =head3
4954 #: ../src/guestfs.pod:2331
4955 msgid "INITIAL MESSAGE"
4956 msgstr ""
4957
4958 # type: textblock
4959 #. type: textblock
4960 #: ../src/guestfs.pod:2333
4961 msgid ""
4962 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4963 "which indicates that the guest and daemon is alive.  This is what L</"
4964 "guestfs_launch> waits for."
4965 msgstr ""
4966
4967 # type: =head3
4968 #. type: =head3
4969 #: ../src/guestfs.pod:2337
4970 msgid "PROGRESS NOTIFICATION MESSAGES"
4971 msgstr ""
4972
4973 # type: textblock
4974 #. type: textblock
4975 #: ../src/guestfs.pod:2339
4976 msgid ""
4977 "The daemon may send progress notification messages at any time.  These are "
4978 "distinguished by the normal length word being replaced by "
4979 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../src/guestfs.pod:2343
4984 msgid ""
4985 "The library turns them into progress callbacks (see L</"
4986 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
4987 "if not."
4988 msgstr ""
4989
4990 # type: textblock
4991 #. type: textblock
4992 #: ../src/guestfs.pod:2347
4993 msgid ""
4994 "The daemon self-limits the frequency of progress messages it sends (see "
4995 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4996 "messages."
4997 msgstr ""
4998
4999 # type: =head1
5000 #. type: =head1
5001 #: ../src/guestfs.pod:2351
5002 msgid "LIBGUESTFS VERSION NUMBERS"
5003 msgstr ""
5004
5005 # type: textblock
5006 #. type: textblock
5007 #: ../src/guestfs.pod:2353
5008 msgid ""
5009 "Since April 2010, libguestfs has started to make separate development and "
5010 "stable releases, along with corresponding branches in our git repository.  "
5011 "These separate releases can be identified by version number:"
5012 msgstr ""
5013
5014 # type: verbatim
5015 #. type: verbatim
5016 #: ../src/guestfs.pod:2358
5017 #, no-wrap
5018 msgid ""
5019 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5020 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5021 "       |\n"
5022 "       v\n"
5023 " 1  .  3  .  5\n"
5024 " ^           ^\n"
5025 " |           |\n"
5026 " |           `-------- sub-version\n"
5027 " |\n"
5028 " `------ always '1' because we don't change the ABI\n"
5029 "\n"
5030 msgstr ""
5031
5032 # type: textblock
5033 #. type: textblock
5034 #: ../src/guestfs.pod:2369
5035 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5036 msgstr ""
5037
5038 # type: textblock
5039 #. type: textblock
5040 #: ../src/guestfs.pod:2371
5041 msgid ""
5042 "As time passes we cherry pick fixes from the development branch and backport "
5043 "those into the stable branch, the effect being that the stable branch should "
5044 "get more stable and less buggy over time.  So the stable releases are ideal "
5045 "for people who don't need new features but would just like the software to "
5046 "work."
5047 msgstr ""
5048
5049 # type: textblock
5050 #. type: textblock
5051 #: ../src/guestfs.pod:2377
5052 msgid "Our criteria for backporting changes are:"
5053 msgstr ""
5054
5055 # type: textblock
5056 #. type: textblock
5057 #: ../src/guestfs.pod:2383
5058 msgid ""
5059 "Documentation changes which don't affect any code are backported unless the "
5060 "documentation refers to a future feature which is not in stable."
5061 msgstr ""
5062
5063 # type: textblock
5064 #. type: textblock
5065 #: ../src/guestfs.pod:2389
5066 msgid ""
5067 "Bug fixes which are not controversial, fix obvious problems, and have been "
5068 "well tested are backported."
5069 msgstr ""
5070
5071 # type: textblock
5072 #. type: textblock
5073 #: ../src/guestfs.pod:2394
5074 msgid ""
5075 "Simple rearrangements of code which shouldn't affect how it works get "
5076 "backported.  This is so that the code in the two branches doesn't get too "
5077 "far out of step, allowing us to backport future fixes more easily."
5078 msgstr ""
5079
5080 # type: textblock
5081 #. type: textblock
5082 #: ../src/guestfs.pod:2400
5083 msgid ""
5084 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5085 "exceptional case: the new feature is required in order to implement an "
5086 "important bug fix."
5087 msgstr ""
5088
5089 # type: textblock
5090 #. type: textblock
5091 #: ../src/guestfs.pod:2406
5092 msgid ""
5093 "A new stable branch starts when we think the new features in development are "
5094 "substantial and compelling enough over the current stable branch to warrant "
5095 "it.  When that happens we create new stable and development versions 1.N.0 "
5096 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5097 "stable at this point, but by backporting fixes from development, that branch "
5098 "will stabilize over time."
5099 msgstr ""
5100
5101 #. type: =head1
5102 #: ../src/guestfs.pod:2414
5103 msgid "EXTENDING LIBGUESTFS"
5104 msgstr ""
5105
5106 #. type: =head2
5107 #: ../src/guestfs.pod:2416
5108 msgid "ADDING A NEW API ACTION"
5109 msgstr ""
5110
5111 #. type: textblock
5112 #: ../src/guestfs.pod:2418
5113 msgid ""
5114 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5115 "documentation) are generated, and this makes it easy to extend the "
5116 "libguestfs API."
5117 msgstr ""
5118
5119 #. type: textblock
5120 #: ../src/guestfs.pod:2422
5121 msgid "To add a new API action there are two changes:"
5122 msgstr ""
5123
5124 #. type: textblock
5125 #: ../src/guestfs.pod:2428
5126 msgid ""
5127 "You need to add a description of the call (name, parameters, return type, "
5128 "tests, documentation) to C<generator/generator_actions.ml>."
5129 msgstr ""
5130
5131 #. type: textblock
5132 #: ../src/guestfs.pod:2431
5133 msgid ""
5134 "There are two sorts of API action, depending on whether the call goes "
5135 "through to the daemon in the appliance, or is serviced entirely by the "
5136 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5137 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5138 "an example of the latter, since a trace flag is maintained in the handle and "
5139 "all tracing is done on the library side."
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../src/guestfs.pod:2439
5144 msgid ""
5145 "Most new actions are of the first type, and get added to the "
5146 "C<daemon_functions> list.  Each function has a unique procedure number used "
5147 "in the RPC protocol which is assigned to that action when we publish "
5148 "libguestfs and cannot be reused.  Take the latest procedure number and "
5149 "increment it."
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../src/guestfs.pod:2445
5154 msgid ""
5155 "For library-only actions of the second type, add to the "
5156 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5157 "library and do not travel over the RPC mechanism to the daemon, these "
5158 "functions do not need a procedure number, and so the procedure number is set "
5159 "to C<-1>."
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../src/guestfs.pod:2453
5164 msgid "Implement the action (in C):"
5165 msgstr ""
5166
5167 #. type: textblock
5168 #: ../src/guestfs.pod:2455
5169 msgid ""
5170 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5171 "C<daemon/> directory."
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../src/guestfs.pod:2458
5176 msgid ""
5177 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5178 "(note: double underscore) in the C<src/> directory."
5179 msgstr ""
5180
5181 #. type: textblock
5182 #: ../src/guestfs.pod:2461
5183 msgid "In either case, use another function as an example of what to do."
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../src/guestfs.pod:2465
5188 msgid "After making these changes, use C<make> to compile."
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../src/guestfs.pod:2467
5193 msgid ""
5194 "Note that you don't need to implement the RPC, language bindings, manual "
5195 "pages or anything else.  It's all automatically generated from the OCaml "
5196 "description."
5197 msgstr ""
5198
5199 #. type: =head2
5200 #: ../src/guestfs.pod:2471
5201 msgid "ADDING TESTS FOR AN API ACTION"
5202 msgstr ""
5203
5204 #. type: textblock
5205 #: ../src/guestfs.pod:2473
5206 msgid ""
5207 "You can supply zero or as many tests as you want per API call.  The tests "
5208 "can either be added as part of the API description (C<generator/"
5209 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5210 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5211 "slower, so if possible use the first method."
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../src/guestfs.pod:2479
5216 msgid ""
5217 "The following describes the test environment used when you add an API test "
5218 "in C<generator_actions.ml>."
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../src/guestfs.pod:2482
5223 msgid "The test environment has 4 block devices:"
5224 msgstr ""
5225
5226 #. type: =item
5227 #: ../src/guestfs.pod:2486
5228 msgid "C</dev/sda> 500MB"
5229 msgstr ""
5230
5231 #. type: textblock
5232 #: ../src/guestfs.pod:2488
5233 msgid "General block device for testing."
5234 msgstr ""
5235
5236 #. type: =item
5237 #: ../src/guestfs.pod:2490
5238 msgid "C</dev/sdb> 50MB"
5239 msgstr ""
5240
5241 #. type: textblock
5242 #: ../src/guestfs.pod:2492
5243 msgid ""
5244 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5245 "operations."
5246 msgstr ""
5247
5248 #. type: =item
5249 #: ../src/guestfs.pod:2495
5250 msgid "C</dev/sdc> 10MB"
5251 msgstr ""
5252
5253 #. type: textblock
5254 #: ../src/guestfs.pod:2497
5255 msgid "Used in a few tests where two block devices are needed."
5256 msgstr ""
5257
5258 #. type: =item
5259 #: ../src/guestfs.pod:2499
5260 msgid "C</dev/sdd>"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../src/guestfs.pod:2501
5265 msgid "ISO with fixed content (see C<images/test.iso>)."
5266 msgstr ""
5267
5268 #. type: textblock
5269 #: ../src/guestfs.pod:2505
5270 msgid ""
5271 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5272 "appliance and block devices are reused between tests.  So don't try testing "
5273 "L</guestfs_kill_subprocess> :-x"
5274 msgstr ""
5275
5276 #. type: textblock
5277 #: ../src/guestfs.pod:2509
5278 msgid ""
5279 "Each test starts with an initial scenario, selected using one of the "
5280 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5281 "initialize the disks mentioned above in a particular way as documented in "
5282 "C<generator_types.ml>.  You should not assume anything about the previous "
5283 "contents of other disks that are not initialized."
5284 msgstr ""
5285
5286 #. type: textblock
5287 #: ../src/guestfs.pod:2515
5288 msgid ""
5289 "You can add a prerequisite clause to any individual test.  This is a run-"
5290 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5291 "testing a command which might not work on all variations of libguestfs "
5292 "builds.  A test that has prerequisite of C<Always> means to run "
5293 "unconditionally."
5294 msgstr ""
5295
5296 #. type: textblock
5297 #: ../src/guestfs.pod:2521
5298 msgid ""
5299 "In addition, packagers can skip individual tests by setting environment "
5300 "variables before running C<make check>."
5301 msgstr ""
5302
5303 #. type: verbatim
5304 #: ../src/guestfs.pod:2524
5305 #, no-wrap
5306 msgid ""
5307 " SKIP_TEST_<CMD>_<NUM>=1\n"
5308 "\n"
5309 msgstr ""
5310
5311 #. type: textblock
5312 #: ../src/guestfs.pod:2526
5313 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5314 msgstr ""
5315
5316 #. type: textblock
5317 #: ../src/guestfs.pod:2528
5318 msgid "or:"
5319 msgstr ""
5320
5321 #. type: verbatim
5322 #: ../src/guestfs.pod:2530
5323 #, no-wrap
5324 msgid ""
5325 " SKIP_TEST_<CMD>=1\n"
5326 "\n"
5327 msgstr ""
5328
5329 #. type: textblock
5330 #: ../src/guestfs.pod:2532
5331 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5332 msgstr ""
5333
5334 #. type: textblock
5335 #: ../src/guestfs.pod:2534
5336 msgid "Packagers can run only certain tests by setting for example:"
5337 msgstr ""
5338
5339 #. type: verbatim
5340 #: ../src/guestfs.pod:2536
5341 #, no-wrap
5342 msgid ""
5343 " TEST_ONLY=\"vfs_type zerofree\"\n"
5344 "\n"
5345 msgstr ""
5346
5347 #. type: textblock
5348 #: ../src/guestfs.pod:2538
5349 msgid ""
5350 "See C<capitests/tests.c> for more details of how these environment variables "
5351 "work."
5352 msgstr ""
5353
5354 #. type: =head2
5355 #: ../src/guestfs.pod:2541
5356 msgid "DEBUGGING NEW API ACTIONS"
5357 msgstr ""
5358
5359 #. type: textblock
5360 #: ../src/guestfs.pod:2543
5361 msgid "Test new actions work before submitting them."
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../src/guestfs.pod:2545
5366 msgid "You can use guestfish to try out new commands."
5367 msgstr ""
5368
5369 #. type: textblock
5370 #: ../src/guestfs.pod:2547
5371 msgid ""
5372 "Debugging the daemon is a problem because it runs inside a minimal "
5373 "environment.  However you can fprintf messages in the daemon to stderr, and "
5374 "they will show up if you use C<guestfish -v>."
5375 msgstr ""
5376
5377 #. type: =head2
5378 #: ../src/guestfs.pod:2551
5379 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../src/guestfs.pod:2553
5384 msgid ""
5385 "Our C source code generally adheres to some basic code-formatting "
5386 "conventions.  The existing code base is not totally consistent on this "
5387 "front, but we do prefer that contributed code be formatted similarly.  In "
5388 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5389 "indentation level, and other than that, follow the K&R style."
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../src/guestfs.pod:2559
5394 msgid ""
5395 "If you use Emacs, add the following to one of one of your start-up files (e."
5396 "g., ~/.emacs), to help ensure that you get indentation right:"
5397 msgstr ""
5398
5399 #. type: verbatim
5400 #: ../src/guestfs.pod:2562
5401 #, no-wrap
5402 msgid ""
5403 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5404 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5405 " (add-hook 'find-file-hook\n"
5406 "     '(lambda () (if (and buffer-file-name\n"
5407 "                          (string-match \"/libguestfs\\\\>\"\n"
5408 "                              (buffer-file-name))\n"
5409 "                          (not (string-equal mode-name \"Change Log\"))\n"
5410 "                          (not (string-equal mode-name \"Makefile\")))\n"
5411 "                     (setq indent-tabs-mode nil))))\n"
5412 " \n"
5413 msgstr ""
5414
5415 #. type: verbatim
5416 #: ../src/guestfs.pod:2572
5417 #, no-wrap
5418 msgid ""
5419 " ;;; When editing C sources in libguestfs, use this style.\n"
5420 " (defun libguestfs-c-mode ()\n"
5421 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5422 "   (interactive)\n"
5423 "   (c-set-style \"K&R\")\n"
5424 "   (setq c-indent-level 2)\n"
5425 "   (setq c-basic-offset 2))\n"
5426 " (add-hook 'c-mode-hook\n"
5427 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5428 "                               (buffer-file-name))\n"
5429 "                           (libguestfs-c-mode))))\n"
5430 "\n"
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../src/guestfs.pod:2584
5435 msgid "Enable warnings when compiling (and fix any problems this finds):"
5436 msgstr ""
5437
5438 #. type: verbatim
5439 #: ../src/guestfs.pod:2587
5440 #, no-wrap
5441 msgid ""
5442 " ./configure --enable-gcc-warnings\n"
5443 "\n"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../src/guestfs.pod:2589
5448 msgid "Useful targets are:"
5449 msgstr ""
5450
5451 #. type: verbatim
5452 #: ../src/guestfs.pod:2591
5453 #, no-wrap
5454 msgid ""
5455 " make syntax-check  # checks the syntax of the C code\n"
5456 " make check         # runs the test suite\n"
5457 "\n"
5458 msgstr ""
5459
5460 #. type: =head2
5461 #: ../src/guestfs.pod:2594
5462 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../src/guestfs.pod:2596
5467 msgid ""
5468 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5469 "which are used to do shell quoting."
5470 msgstr ""
5471
5472 #. type: =item
5473 #: ../src/guestfs.pod:2601
5474 msgid "%Q"
5475 msgstr ""
5476
5477 #. type: textblock
5478 #: ../src/guestfs.pod:2603
5479 msgid ""
5480 "Simple shell quoted string.  Any spaces or other shell characters are "
5481 "escaped for you."
5482 msgstr ""
5483
5484 #. type: =item
5485 #: ../src/guestfs.pod:2606
5486 msgid "%R"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../src/guestfs.pod:2608
5491 msgid ""
5492 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5493 "the sysroot."
5494 msgstr ""
5495
5496 # type: textblock
5497 #. type: textblock
5498 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:242 ../fish/guestfish.pod:615
5499 msgid "For example:"
5500 msgstr ""
5501
5502 #. type: verbatim
5503 #: ../src/guestfs.pod:2615
5504 #, no-wrap
5505 msgid ""
5506 " asprintf (&cmd, \"cat %R\", path);\n"
5507 "\n"
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../src/guestfs.pod:2617
5512 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5513 msgstr ""
5514
5515 #. type: textblock
5516 #: ../src/guestfs.pod:2619
5517 msgid ""
5518 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5519 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5520 "they are not passed via the shell (instead, straight to exec).  You probably "
5521 "want to use the C<sysroot_path()> function however."
5522 msgstr ""
5523
5524 #. type: =head2
5525 #: ../src/guestfs.pod:2625
5526 msgid "SUBMITTING YOUR NEW API ACTIONS"
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../src/guestfs.pod:2627
5531 msgid ""
5532 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5533 "libguestfs> and CC to L<rjones@redhat.com>."
5534 msgstr ""
5535
5536 #. type: =head2
5537 #: ../src/guestfs.pod:2631
5538 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5539 msgstr ""
5540
5541 #. type: textblock
5542 #: ../src/guestfs.pod:2633
5543 msgid "We support i18n (gettext anyhow) in the library."
5544 msgstr ""
5545
5546 #. type: textblock
5547 #: ../src/guestfs.pod:2635
5548 msgid ""
5549 "However many messages come from the daemon, and we don't translate those at "
5550 "the moment.  One reason is that the appliance generally has all locale files "
5551 "removed from it, because they take up a lot of space.  So we'd have to readd "
5552 "some of those, as well as copying our PO files into the appliance."
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../src/guestfs.pod:2641
5557 msgid ""
5558 "Debugging messages are never translated, since they are intended for the "
5559 "programmers."
5560 msgstr ""
5561
5562 #. type: =head2
5563 #: ../src/guestfs.pod:2644
5564 msgid "SOURCE CODE SUBDIRECTORIES"
5565 msgstr ""
5566
5567 #. type: =item
5568 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5820
5569 #: ../fish/guestfish-actions.pod:3913
5570 msgid "C<appliance>"
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../src/guestfs.pod:2650
5575 msgid "The libguestfs appliance, build scripts and so on."
5576 msgstr ""
5577
5578 #. type: =item
5579 #: ../src/guestfs.pod:2652
5580 msgid "C<capitests>"
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../src/guestfs.pod:2654
5585 msgid "Automated tests of the C API."
5586 msgstr ""
5587
5588 #. type: =item
5589 #: ../src/guestfs.pod:2656
5590 msgid "C<cat>"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../src/guestfs.pod:2658
5595 msgid ""
5596 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5597 "documentation."
5598 msgstr ""
5599
5600 #. type: =item
5601 #: ../src/guestfs.pod:2661
5602 msgid "C<contrib>"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../src/guestfs.pod:2663
5607 msgid "Outside contributions, experimental parts."
5608 msgstr ""
5609
5610 #. type: =item
5611 #: ../src/guestfs.pod:2665
5612 msgid "C<daemon>"
5613 msgstr ""
5614
5615 #. type: textblock
5616 #: ../src/guestfs.pod:2667
5617 msgid ""
5618 "The daemon that runs inside the libguestfs appliance and carries out actions."
5619 msgstr ""
5620
5621 #. type: =item
5622 #: ../src/guestfs.pod:2670
5623 msgid "C<df>"
5624 msgstr ""
5625
5626 #. type: textblock
5627 #: ../src/guestfs.pod:2672
5628 msgid "L<virt-df(1)> command and documentation."
5629 msgstr ""
5630
5631 #. type: =item
5632 #: ../src/guestfs.pod:2674
5633 msgid "C<edit>"
5634 msgstr ""
5635
5636 #. type: textblock
5637 #: ../src/guestfs.pod:2676
5638 msgid "L<virt-edit(1)> command and documentation."
5639 msgstr ""
5640
5641 #. type: =item
5642 #: ../src/guestfs.pod:2678
5643 msgid "C<examples>"
5644 msgstr ""
5645
5646 #. type: textblock
5647 #: ../src/guestfs.pod:2680
5648 msgid "C API example code."
5649 msgstr ""
5650
5651 #. type: =item
5652 #: ../src/guestfs.pod:2682
5653 msgid "C<fish>"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../src/guestfs.pod:2684
5658 msgid ""
5659 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5660 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5661 "L<virt-tar-out(1)>."
5662 msgstr ""
5663
5664 #. type: =item
5665 #: ../src/guestfs.pod:2688
5666 msgid "C<fuse>"
5667 msgstr ""
5668
5669 #. type: textblock
5670 #: ../src/guestfs.pod:2690
5671 msgid ""
5672 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5673 msgstr ""
5674
5675 #. type: =item
5676 #: ../src/guestfs.pod:2692
5677 msgid "C<generator>"
5678 msgstr ""
5679
5680 #. type: textblock
5681 #: ../src/guestfs.pod:2694
5682 msgid ""
5683 "The crucially important generator, used to automatically generate large "
5684 "amounts of boilerplate C code for things like RPC and bindings."
5685 msgstr ""
5686
5687 #. type: =item
5688 #: ../src/guestfs.pod:2697
5689 msgid "C<images>"
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../src/guestfs.pod:2699
5694 msgid "Files used by the test suite."
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../src/guestfs.pod:2701
5699 msgid "Some \"phony\" guest images which we test against."
5700 msgstr ""
5701
5702 #. type: =item
5703 #: ../src/guestfs.pod:2703
5704 msgid "C<inspector>"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../src/guestfs.pod:2705
5709 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5710 msgstr ""
5711
5712 #. type: =item
5713 #: ../src/guestfs.pod:2707
5714 msgid "C<logo>"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../src/guestfs.pod:2709
5719 msgid "Logo used on the website.  The fish is called Arthur by the way."
5720 msgstr ""
5721
5722 #. type: =item
5723 #: ../src/guestfs.pod:2711
5724 msgid "C<m4>"
5725 msgstr ""
5726
5727 #. type: textblock
5728 #: ../src/guestfs.pod:2713
5729 msgid "M4 macros used by autoconf."
5730 msgstr ""
5731
5732 #. type: =item
5733 #: ../src/guestfs.pod:2715
5734 msgid "C<po>"
5735 msgstr ""
5736
5737 #. type: textblock
5738 #: ../src/guestfs.pod:2717
5739 msgid "Translations of simple gettext strings."
5740 msgstr ""
5741
5742 #. type: =item
5743 #: ../src/guestfs.pod:2719
5744 msgid "C<po-docs>"
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../src/guestfs.pod:2721
5749 msgid ""
5750 "The build infrastructure and PO files for translations of manpages and POD "
5751 "files.  Eventually this will be combined with the C<po> directory, but that "
5752 "is rather complicated."
5753 msgstr ""
5754
5755 #. type: =item
5756 #: ../src/guestfs.pod:2725
5757 msgid "C<regressions>"
5758 msgstr ""
5759
5760 #. type: textblock
5761 #: ../src/guestfs.pod:2727
5762 msgid "Regression tests."
5763 msgstr ""
5764
5765 #. type: =item
5766 #: ../src/guestfs.pod:2729
5767 msgid "C<rescue>"
5768 msgstr ""
5769
5770 #. type: textblock
5771 #: ../src/guestfs.pod:2731
5772 msgid "L<virt-rescue(1)> command and documentation."
5773 msgstr ""
5774
5775 #. type: =item
5776 #: ../src/guestfs.pod:2733
5777 msgid "C<src>"
5778 msgstr ""
5779
5780 #. type: textblock
5781 #: ../src/guestfs.pod:2735
5782 msgid "Source code to the C library."
5783 msgstr ""
5784
5785 #. type: =item
5786 #: ../src/guestfs.pod:2737
5787 msgid "C<tools>"
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../src/guestfs.pod:2739
5792 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5793 msgstr ""
5794
5795 #. type: =item
5796 #: ../src/guestfs.pod:2741
5797 msgid "C<test-tool>"
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../src/guestfs.pod:2743
5802 msgid ""
5803 "Test tool for end users to test if their qemu/kernel combination will work "
5804 "with libguestfs."
5805 msgstr ""
5806
5807 #. type: =item
5808 #: ../src/guestfs.pod:2746
5809 msgid "C<csharp>"
5810 msgstr ""
5811
5812 #. type: =item
5813 #: ../src/guestfs.pod:2748
5814 msgid "C<haskell>"
5815 msgstr ""
5816
5817 #. type: =item
5818 #: ../src/guestfs.pod:2750
5819 msgid "C<java>"
5820 msgstr ""
5821
5822 #. type: =item
5823 #: ../src/guestfs.pod:2752
5824 msgid "C<ocaml>"
5825 msgstr ""
5826
5827 #. type: =item
5828 #: ../src/guestfs.pod:2754
5829 msgid "C<php>"
5830 msgstr ""
5831
5832 #. type: =item
5833 #: ../src/guestfs.pod:2756
5834 msgid "C<perl>"
5835 msgstr ""
5836
5837 #. type: =item
5838 #: ../src/guestfs.pod:2758
5839 msgid "C<python>"
5840 msgstr ""
5841
5842 #. type: =item
5843 #: ../src/guestfs.pod:2760
5844 msgid "C<ruby>"
5845 msgstr ""
5846
5847 #. type: textblock
5848 #: ../src/guestfs.pod:2762
5849 msgid "Language bindings."
5850 msgstr ""
5851
5852 #. type: =head1
5853 #: ../src/guestfs.pod:2766
5854 msgid "LIMITS"
5855 msgstr ""
5856
5857 # type: =head2
5858 #. type: =head2
5859 #: ../src/guestfs.pod:2768
5860 msgid "PROTOCOL LIMITS"
5861 msgstr ""
5862
5863 # type: textblock
5864 #. type: textblock
5865 #: ../src/guestfs.pod:2770
5866 msgid ""
5867 "Internally libguestfs uses a message-based protocol to pass API calls and "
5868 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5869 "plenty more detail about this).  The maximum message size used by the "
5870 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5871 "aware of this limit.  The API calls which may be affected are individually "
5872 "documented, with a link back to this section of the documentation."
5873 msgstr ""
5874
5875 # type: textblock
5876 #. type: textblock
5877 #: ../src/guestfs.pod:2778
5878 msgid ""
5879 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5880 "a simple string.  Because this string is at some point internally encoded as "
5881 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5882 "the requested file is larger than this then you will get an error."
5883 msgstr ""
5884
5885 # type: textblock
5886 #. type: textblock
5887 #: ../src/guestfs.pod:2784
5888 msgid ""
5889 "In order to transfer large files into and out of the guest filesystem, you "
5890 "need to use particular calls that support this.  The sections L</UPLOADING> "
5891 "and L</DOWNLOADING> document how to do this."
5892 msgstr ""
5893
5894 # type: textblock
5895 #. type: textblock
5896 #: ../src/guestfs.pod:2788
5897 msgid ""
5898 "You might also consider mounting the disk image using our FUSE filesystem "
5899 "support (L<guestmount(1)>)."
5900 msgstr ""
5901
5902 #. type: =head2
5903 #: ../src/guestfs.pod:2791
5904 msgid "MAXIMUM NUMBER OF DISKS"
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../src/guestfs.pod:2793
5909 msgid "When using virtio disks (the default) the current limit is B<25> disks."
5910 msgstr ""
5911
5912 #. type: textblock
5913 #: ../src/guestfs.pod:2796
5914 msgid ""
5915 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
5916 "slots.  However febootstrap only understands disks with names C</dev/vda> "
5917 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
5918 "purposes."
5919 msgstr ""
5920
5921 #. type: textblock
5922 #: ../src/guestfs.pod:2801
5923 msgid ""
5924 "We are working to substantially raise this limit in future versions but it "
5925 "requires complex changes to qemu."
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../src/guestfs.pod:2804
5930 msgid ""
5931 "In future versions of libguestfs it should also be possible to \"hot plug\" "
5932 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
5933 "requires changes to qemu."
5934 msgstr ""
5935
5936 #. type: =head2
5937 #: ../src/guestfs.pod:2808
5938 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../src/guestfs.pod:2810
5943 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
5944 msgstr ""
5945
5946 #. type: textblock
5947 #: ../src/guestfs.pod:2812
5948 msgid ""
5949 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
5950 "vda>, and C</dev/vda1> through C</dev/vda15>)."
5951 msgstr ""
5952
5953 #. type: textblock
5954 #: ../src/guestfs.pod:2815
5955 msgid ""
5956 "If you attach a disk with more than 15 partitions, the extra partitions are "
5957 "ignored by libguestfs."
5958 msgstr ""
5959
5960 #. type: =head2
5961 #: ../src/guestfs.pod:2818
5962 msgid "MAXIMUM SIZE OF A DISK"
5963 msgstr ""
5964
5965 #. type: textblock
5966 #: ../src/guestfs.pod:2820
5967 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
5968 msgstr ""
5969
5970 #. type: textblock
5971 #: ../src/guestfs.pod:2822
5972 msgid ""
5973 "We have tested block devices up to 1 exabyte (2**60 or "
5974 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
5975 "filesystem."
5976 msgstr ""
5977
5978 #. type: textblock
5979 #: ../src/guestfs.pod:2826
5980 msgid ""
5981 "Although libguestfs probably does not impose any limit, the underlying host "
5982 "storage will.  If you store disk images on a host ext4 filesystem, then the "
5983 "maximum size will be limited by the maximum ext4 file size (currently 16 "
5984 "TB).  If you store disk images as host logical volumes then you are limited "
5985 "by the maximum size of an LV."
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../src/guestfs.pod:2832
5990 msgid ""
5991 "For the hugest disk image files, we recommend using XFS on the host for "
5992 "storage."
5993 msgstr ""
5994
5995 #. type: =head2
5996 #: ../src/guestfs.pod:2835
5997 msgid "MAXIMUM SIZE OF A PARTITION"
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../src/guestfs.pod:2837
6002 msgid ""
6003 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
6004 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
6005 "address a partition located beyond 2 TB on the disk."
6006 msgstr ""
6007
6008 #. type: textblock
6009 #: ../src/guestfs.pod:2841
6010 msgid ""
6011 "It is recommended that you use GPT partitions on disks which are larger than "
6012 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
6013 "which are theoretically larger than the largest disk we could support."
6014 msgstr ""
6015
6016 #. type: =head2
6017 #: ../src/guestfs.pod:2846
6018 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../src/guestfs.pod:2848
6023 msgid ""
6024 "This depends on the filesystem type.  libguestfs itself does not impose any "
6025 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
6026 "what these limits are."
6027 msgstr ""
6028
6029 #. type: =head2
6030 #: ../src/guestfs.pod:2852
6031 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
6032 msgstr ""
6033
6034 #. type: textblock
6035 #: ../src/guestfs.pod:2854
6036 msgid ""
6037 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
6038 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
6039 "uploads and downloads."
6040 msgstr ""
6041
6042 #. type: =head2
6043 #: ../src/guestfs.pod:2858
6044 msgid "INSPECTION LIMITS"
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../src/guestfs.pod:2860
6049 msgid ""
6050 "The inspection code has several arbitrary limits on things like the size of "
6051 "Windows Registry hive it will read, and the length of product name.  These "
6052 "are intended to stop a malicious guest from consuming arbitrary amounts of "
6053 "memory and disk space on the host, and should not be reached in practice.  "
6054 "See the source code for more information."
6055 msgstr ""
6056
6057 # type: =head1
6058 #. type: =head1
6059 #: ../src/guestfs.pod:2866 ../fish/guestfish.pod:1017
6060 #: ../test-tool/libguestfs-test-tool.pod:82
6061 msgid "ENVIRONMENT VARIABLES"
6062 msgstr ""
6063
6064 # type: =item
6065 #. type: =item
6066 #: ../src/guestfs.pod:2870 ../fish/guestfish.pod:1043
6067 msgid "LIBGUESTFS_APPEND"
6068 msgstr ""
6069
6070 # type: textblock
6071 #. type: textblock
6072 #: ../src/guestfs.pod:2872 ../fish/guestfish.pod:1045
6073 msgid "Pass additional options to the guest kernel."
6074 msgstr ""
6075
6076 # type: =item
6077 #. type: =item
6078 #: ../src/guestfs.pod:2874 ../fish/guestfish.pod:1047
6079 msgid "LIBGUESTFS_DEBUG"
6080 msgstr ""
6081
6082 # type: textblock
6083 #. type: textblock
6084 #: ../src/guestfs.pod:2876
6085 msgid ""
6086 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
6087 "effect as calling C<guestfs_set_verbose (g, 1)>."
6088 msgstr ""
6089
6090 # type: =item
6091 #. type: =item
6092 #: ../src/guestfs.pod:2879 ../fish/guestfish.pod:1052
6093 msgid "LIBGUESTFS_MEMSIZE"
6094 msgstr ""
6095
6096 # type: textblock
6097 #. type: textblock
6098 #: ../src/guestfs.pod:2881 ../fish/guestfish.pod:1054
6099 msgid ""
6100 "Set the memory allocated to the qemu process, in megabytes.  For example:"
6101 msgstr ""
6102
6103 # type: verbatim
6104 #. type: verbatim
6105 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1057
6106 #, no-wrap
6107 msgid ""
6108 " LIBGUESTFS_MEMSIZE=700\n"
6109 "\n"
6110 msgstr ""
6111
6112 # type: =item
6113 #. type: =item
6114 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1059
6115 msgid "LIBGUESTFS_PATH"
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../src/guestfs.pod:2888
6120 msgid ""
6121 "Set the path that libguestfs uses to search for a supermin appliance.  See "
6122 "the discussion of paths in section L</PATH> above."
6123 msgstr ""
6124
6125 # type: =item
6126 #. type: =item
6127 #: ../src/guestfs.pod:2891 ../fish/guestfish.pod:1064
6128 msgid "LIBGUESTFS_QEMU"
6129 msgstr ""
6130
6131 # type: textblock
6132 #. type: textblock
6133 #: ../src/guestfs.pod:2893 ../fish/guestfish.pod:1066
6134 msgid ""
6135 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
6136 "which was found at compile time by the configure script is used."
6137 msgstr ""
6138
6139 # type: textblock
6140 #. type: textblock
6141 #: ../src/guestfs.pod:2897
6142 msgid "See also L</QEMU WRAPPERS> above."
6143 msgstr ""
6144
6145 # type: =item
6146 #. type: =item
6147 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1070
6148 msgid "LIBGUESTFS_TRACE"
6149 msgstr ""
6150
6151 # type: textblock
6152 #. type: textblock
6153 #: ../src/guestfs.pod:2901
6154 msgid ""
6155 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
6156 "effect as calling C<guestfs_set_trace (g, 1)>."
6157 msgstr ""
6158
6159 # type: =item
6160 #. type: =item
6161 #: ../src/guestfs.pod:2904 ../fish/guestfish.pod:1079
6162 msgid "TMPDIR"
6163 msgstr ""
6164
6165 #. type: textblock
6166 #: ../src/guestfs.pod:2906 ../fish/guestfish.pod:1081
6167 msgid ""
6168 "Location of temporary directory, defaults to C</tmp> except for the cached "
6169 "supermin appliance which defaults to C</var/tmp>."
6170 msgstr ""
6171
6172 #. type: textblock
6173 #: ../src/guestfs.pod:2909 ../fish/guestfish.pod:1084
6174 msgid ""
6175 "If libguestfs was compiled to use the supermin appliance then the real "
6176 "appliance is cached in this directory, shared between all handles belonging "
6177 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
6178 "use in case C</var/tmp> is not large enough."
6179 msgstr ""
6180
6181 # type: =head1
6182 #. type: =head1
6183 #: ../src/guestfs.pod:2917 ../fish/guestfish.pod:1151
6184 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:269
6185 #: ../tools/virt-win-reg.pl:572 ../tools/virt-list-filesystems.pl:189
6186 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
6187 #: ../tools/virt-list-partitions.pl:257
6188 msgid "SEE ALSO"
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../src/guestfs.pod:2919
6193 msgid ""
6194 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6195 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6196 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6197 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6198 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6199 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6200 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6201 msgstr ""
6202
6203 # type: textblock
6204 #. type: textblock
6205 #: ../src/guestfs.pod:2946
6206 msgid ""
6207 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6208 "(8)>, L<disktype(1)>."
6209 msgstr ""
6210
6211 # type: =head1
6212 #. type: =head1
6213 #: ../src/guestfs.pod:2953 ../tools/virt-win-reg.pl:587
6214 #: ../tools/virt-make-fs.pl:553
6215 msgid "BUGS"
6216 msgstr ""
6217
6218 # type: textblock
6219 #. type: textblock
6220 #: ../src/guestfs.pod:2955
6221 msgid "To get a list of bugs against libguestfs use this link:"
6222 msgstr ""
6223
6224 # type: textblock
6225 #. type: textblock
6226 #: ../src/guestfs.pod:2957
6227 msgid ""
6228 "L<https://bugzilla.redhat.com/buglist.cgi?"
6229 "component=libguestfs&product=Virtualization+Tools>"
6230 msgstr ""
6231
6232 # type: textblock
6233 #. type: textblock
6234 #: ../src/guestfs.pod:2959
6235 msgid "To report a new bug against libguestfs use this link:"
6236 msgstr ""
6237
6238 # type: textblock
6239 #. type: textblock
6240 #: ../src/guestfs.pod:2961
6241 msgid ""
6242 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6243 "component=libguestfs&product=Virtualization+Tools>"
6244 msgstr ""
6245
6246 # type: textblock
6247 #. type: textblock
6248 #: ../src/guestfs.pod:2963
6249 msgid "When reporting a bug, please check:"
6250 msgstr ""
6251
6252 # type: textblock
6253 #. type: textblock
6254 #: ../src/guestfs.pod:2969
6255 msgid "That the bug hasn't been reported already."
6256 msgstr ""
6257
6258 # type: textblock
6259 #. type: textblock
6260 #: ../src/guestfs.pod:2973
6261 msgid "That you are testing a recent version."
6262 msgstr ""
6263
6264 # type: textblock
6265 #. type: textblock
6266 #: ../src/guestfs.pod:2977
6267 msgid "Describe the bug accurately, and give a way to reproduce it."
6268 msgstr ""
6269
6270 # type: textblock
6271 #. type: textblock
6272 #: ../src/guestfs.pod:2981
6273 msgid ""
6274 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6275 "bug report."
6276 msgstr ""
6277
6278 # type: =head1
6279 #. type: =head1
6280 #: ../src/guestfs.pod:2986 ../fish/guestfish.pod:1174
6281 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:280
6282 msgid "AUTHORS"
6283 msgstr ""
6284
6285 # type: textblock
6286 #. type: textblock
6287 #: ../src/guestfs.pod:2988 ../fish/guestfish.pod:1176
6288 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:282
6289 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6290 msgstr ""
6291
6292 # type: =head1
6293 #. type: =head1
6294 #: ../src/guestfs.pod:2990 ../fish/guestfish.pod:1178
6295 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:284
6296 #: ../tools/virt-win-reg.pl:602 ../tools/virt-list-filesystems.pl:206
6297 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6298 #: ../tools/virt-list-partitions.pl:273
6299 msgid "COPYRIGHT"
6300 msgstr ""
6301
6302 #. type: textblock
6303 #: ../src/guestfs.pod:2992 ../fish/guestfish.pod:1180
6304 #: ../test-tool/libguestfs-test-tool.pod:99
6305 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
6306 msgstr ""
6307
6308 # type: textblock
6309 #. type: textblock
6310 #: ../src/guestfs.pod:2995
6311 msgid ""
6312 "This library is free software; you can redistribute it and/or modify it "
6313 "under the terms of the GNU Lesser General Public License as published by the "
6314 "Free Software Foundation; either version 2 of the License, or (at your "
6315 "option) any later version."
6316 msgstr ""
6317
6318 # type: textblock
6319 #. type: textblock
6320 #: ../src/guestfs.pod:3000
6321 msgid ""
6322 "This library is distributed in the hope that it will be useful, but WITHOUT "
6323 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6324 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6325 "for more details."
6326 msgstr ""
6327
6328 # type: textblock
6329 #. type: textblock
6330 #: ../src/guestfs.pod:3005
6331 msgid ""
6332 "You should have received a copy of the GNU Lesser General Public License "
6333 "along with this library; if not, write to the Free Software Foundation, "
6334 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6335 msgstr ""
6336
6337 # type: =head2
6338 #. type: =head2
6339 #: ../src/guestfs-actions.pod:1
6340 msgid "guestfs_add_cdrom"
6341 msgstr ""
6342
6343 # type: verbatim
6344 #. type: verbatim
6345 #: ../src/guestfs-actions.pod:3
6346 #, no-wrap
6347 msgid ""
6348 " int\n"
6349 " guestfs_add_cdrom (guestfs_h *g,\n"
6350 "                    const char *filename);\n"
6351 "\n"
6352 msgstr ""
6353
6354 # type: textblock
6355 #. type: textblock
6356 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6357 msgid "This function adds a virtual CD-ROM disk image to the guest."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6362 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6363 msgstr ""
6364
6365 # type: textblock
6366 #. type: textblock
6367 #: ../src/guestfs-actions.pod:17
6368 msgid ""
6369 "This call checks for the existence of C<filename>.  This stops you from "
6370 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6371 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6372 "instead."
6373 msgstr ""
6374
6375 # type: textblock
6376 #. type: textblock
6377 #: ../src/guestfs-actions.pod:24
6378 msgid ""
6379 "If you just want to add an ISO file (often you use this as an efficient way "
6380 "to transfer large files into the guest), then you should probably use "
6381 "C<guestfs_add_drive_ro> instead."
6382 msgstr ""
6383
6384 # type: textblock
6385 #. type: textblock
6386 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
6387 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
6388 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6389 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
6390 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
6391 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
6392 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
6393 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
6394 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
6395 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
6396 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
6397 #: ../src/guestfs-actions.pod:982 ../src/guestfs-actions.pod:1002
6398 #: ../src/guestfs-actions.pod:1020 ../src/guestfs-actions.pod:1104
6399 #: ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1141
6400 #: ../src/guestfs-actions.pod:1155 ../src/guestfs-actions.pod:1175
6401 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1276
6402 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1343
6403 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1483
6404 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1723
6405 #: ../src/guestfs-actions.pod:1810 ../src/guestfs-actions.pod:2272
6406 #: ../src/guestfs-actions.pod:2416 ../src/guestfs-actions.pod:2477
6407 #: ../src/guestfs-actions.pod:2512 ../src/guestfs-actions.pod:3465
6408 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3505
6409 #: ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3674
6410 #: ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:3701
6411 #: ../src/guestfs-actions.pod:3716 ../src/guestfs-actions.pod:3752
6412 #: ../src/guestfs-actions.pod:3824 ../src/guestfs-actions.pod:3844
6413 #: ../src/guestfs-actions.pod:3861 ../src/guestfs-actions.pod:3884
6414 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:3939
6415 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:3977
6416 #: ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4024
6417 #: ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4076
6418 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4104
6419 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4214
6420 #: ../src/guestfs-actions.pod:4234 ../src/guestfs-actions.pod:4247
6421 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4316
6422 #: ../src/guestfs-actions.pod:4334 ../src/guestfs-actions.pod:4350
6423 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4378
6424 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4410
6425 #: ../src/guestfs-actions.pod:4430 ../src/guestfs-actions.pod:4488
6426 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4592
6427 #: ../src/guestfs-actions.pod:4611 ../src/guestfs-actions.pod:4630
6428 #: ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4659
6429 #: ../src/guestfs-actions.pod:4672 ../src/guestfs-actions.pod:4687
6430 #: ../src/guestfs-actions.pod:4702 ../src/guestfs-actions.pod:4737
6431 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:4772
6432 #: ../src/guestfs-actions.pod:4786 ../src/guestfs-actions.pod:4803
6433 #: ../src/guestfs-actions.pod:4852 ../src/guestfs-actions.pod:4889
6434 #: ../src/guestfs-actions.pod:4903 ../src/guestfs-actions.pod:4931
6435 #: ../src/guestfs-actions.pod:4948 ../src/guestfs-actions.pod:4966
6436 #: ../src/guestfs-actions.pod:5100 ../src/guestfs-actions.pod:5157
6437 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5197
6438 #: ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5295
6439 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5325
6440 #: ../src/guestfs-actions.pod:5339 ../src/guestfs-actions.pod:5628
6441 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5666
6442 #: ../src/guestfs-actions.pod:5678 ../src/guestfs-actions.pod:5690
6443 #: ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5716
6444 #: ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:5746
6445 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5786
6446 #: ../src/guestfs-actions.pod:5805 ../src/guestfs-actions.pod:5835
6447 #: ../src/guestfs-actions.pod:5851 ../src/guestfs-actions.pod:5874
6448 #: ../src/guestfs-actions.pod:5892 ../src/guestfs-actions.pod:5911
6449 #: ../src/guestfs-actions.pod:5932 ../src/guestfs-actions.pod:5951
6450 #: ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:5996
6451 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
6452 #: ../src/guestfs-actions.pod:6063 ../src/guestfs-actions.pod:6082
6453 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6116
6454 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6176
6455 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6310
6456 #: ../src/guestfs-actions.pod:6431 ../src/guestfs-actions.pod:6443
6457 #: ../src/guestfs-actions.pod:6456 ../src/guestfs-actions.pod:6469
6458 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:6504
6459 #: ../src/guestfs-actions.pod:6517 ../src/guestfs-actions.pod:6530
6460 #: ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6604
6461 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:6637
6462 #: ../src/guestfs-actions.pod:6653 ../src/guestfs-actions.pod:6670
6463 #: ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6703
6464 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6753
6465 #: ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6807
6466 #: ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6859
6467 #: ../src/guestfs-actions.pod:6895 ../src/guestfs-actions.pod:7014
6468 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7046
6469 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7114
6470 #: ../src/guestfs-actions.pod:7159 ../src/guestfs-actions.pod:7192
6471 #: ../src/guestfs-actions.pod:7246 ../src/guestfs-actions.pod:7272
6472 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7357
6473 #: ../src/guestfs-actions.pod:7386
6474 msgid "This function returns 0 on success or -1 on error."
6475 msgstr ""
6476
6477 # type: textblock
6478 #. type: textblock
6479 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6480 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6481 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6482 msgid ""
6483 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6484 "instead."
6485 msgstr ""
6486
6487 # type: textblock
6488 #. type: textblock
6489 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6490 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1454
6491 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:1971
6492 #: ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:7280
6493 #: ../src/guestfs-actions.pod:7449 ../fish/guestfish-actions.pod:31
6494 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6495 #: ../fish/guestfish-actions.pod:961 ../fish/guestfish-actions.pod:1324
6496 #: ../fish/guestfish-actions.pod:1338 ../fish/guestfish-actions.pod:3013
6497 #: ../fish/guestfish-actions.pod:4871 ../fish/guestfish-actions.pod:4968
6498 msgid ""
6499 "Deprecated functions will not be removed from the API, but the fact that "
6500 "they are deprecated indicates that there are problems with correct use of "
6501 "these functions."
6502 msgstr ""
6503
6504 # type: textblock
6505 #. type: textblock
6506 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6507 #: ../src/guestfs-actions.pod:1106 ../src/guestfs-actions.pod:1922
6508 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:2123
6509 #: ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3487
6510 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:5853
6511 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6084
6512 #: ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6672
6513 #: ../src/guestfs-actions.pod:7194
6514 msgid "(Added in 0.3)"
6515 msgstr ""
6516
6517 # type: =head2
6518 #. type: =head2
6519 #: ../src/guestfs-actions.pod:41
6520 msgid "guestfs_add_domain"
6521 msgstr ""
6522
6523 # type: verbatim
6524 #. type: verbatim
6525 #: ../src/guestfs-actions.pod:43
6526 #, no-wrap
6527 msgid ""
6528 " int\n"
6529 " guestfs_add_domain (guestfs_h *g,\n"
6530 "                     const char *dom,\n"
6531 "                     ...);\n"
6532 "\n"
6533 msgstr ""
6534
6535 # type: textblock
6536 #. type: textblock
6537 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6538 #: ../src/guestfs-actions.pod:4449
6539 msgid ""
6540 "You may supply a list of optional arguments to this call.  Use zero or more "
6541 "of the following pairs of parameters, and terminate the list with C<-1> on "
6542 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6543 msgstr ""
6544
6545 #. type: verbatim
6546 #: ../src/guestfs-actions.pod:53
6547 #, no-wrap
6548 msgid ""
6549 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6550 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6551 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6552 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6553 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6554 "\n"
6555 msgstr ""
6556
6557 # type: textblock
6558 #. type: textblock
6559 #: ../src/guestfs-actions.pod:59
6560 msgid ""
6561 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6562 "It works by connecting to libvirt, requesting the domain and domain XML from "
6563 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6564 "one."
6565 msgstr ""
6566
6567 # type: textblock
6568 #. type: textblock
6569 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6570 msgid ""
6571 "The number of disks added is returned.  This operation is atomic: if an "
6572 "error is returned, then no disks are added."
6573 msgstr ""
6574
6575 # type: textblock
6576 #. type: textblock
6577 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6578 msgid ""
6579 "This function does some minimal checks to make sure the libvirt domain is "
6580 "not running (unless C<readonly> is true).  In a future version we will try "
6581 "to acquire the libvirt lock on each disk."
6582 msgstr ""
6583
6584 # type: textblock
6585 #. type: textblock
6586 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6587 msgid ""
6588 "Disks must be accessible locally.  This often means that adding disks from a "
6589 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6590 "unless those disks are accessible via the same device path locally too."
6591 msgstr ""
6592
6593 #. type: textblock
6594 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6595 msgid ""
6596 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6597 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6598 "libvirt URI (or one set through an environment variable, see the libvirt "
6599 "documentation for full details)."
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6604 msgid ""
6605 "The optional C<live> flag controls whether this call will try to connect to "
6606 "a running virtual machine C<guestfsd> process if it sees a suitable "
6607 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6608 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6609 "DAEMONS> for more information."
6610 msgstr ""
6611
6612 #. type: textblock
6613 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6614 msgid ""
6615 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6616 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6617 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6618 "as usual."
6619 msgstr ""
6620
6621 # type: textblock
6622 #. type: textblock
6623 #: ../src/guestfs-actions.pod:94
6624 msgid ""
6625 "The other optional parameters are passed directly through to "
6626 "C<guestfs_add_drive_opts>."
6627 msgstr ""
6628
6629 # type: textblock
6630 #. type: textblock
6631 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6632 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6633 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6634 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1321
6635 #: ../src/guestfs-actions.pod:1680 ../src/guestfs-actions.pod:1883
6636 #: ../src/guestfs-actions.pod:1992 ../src/guestfs-actions.pod:2032
6637 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2110
6638 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2786
6639 #: ../src/guestfs-actions.pod:2807 ../src/guestfs-actions.pod:4875
6640 #: ../src/guestfs-actions.pod:5003 ../src/guestfs-actions.pod:5409
6641 #: ../src/guestfs-actions.pod:5435 ../src/guestfs-actions.pod:6780
6642 #: ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218
6643 #: ../src/guestfs-actions.pod:7231
6644 msgid "On error this function returns -1."
6645 msgstr ""
6646
6647 # type: textblock
6648 #. type: textblock
6649 #: ../src/guestfs-actions.pod:99
6650 msgid "(Added in 1.7.4)"
6651 msgstr ""
6652
6653 # type: =head2
6654 #. type: =head2
6655 #: ../src/guestfs-actions.pod:101
6656 msgid "guestfs_add_domain_va"
6657 msgstr ""
6658
6659 # type: verbatim
6660 #. type: verbatim
6661 #: ../src/guestfs-actions.pod:103
6662 #, no-wrap
6663 msgid ""
6664 " int\n"
6665 " guestfs_add_domain_va (guestfs_h *g,\n"
6666 "                        const char *dom,\n"
6667 "                        va_list args);\n"
6668 "\n"
6669 msgstr ""
6670
6671 # type: textblock
6672 #. type: textblock
6673 #: ../src/guestfs-actions.pod:108
6674 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6675 msgstr ""
6676
6677 # type: textblock
6678 #. type: textblock
6679 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6680 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6681 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:4514
6682 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6683 msgstr ""
6684
6685 # type: =head2
6686 #. type: =head2
6687 #: ../src/guestfs-actions.pod:112
6688 msgid "guestfs_add_domain_argv"
6689 msgstr ""
6690
6691 # type: verbatim
6692 #. type: verbatim
6693 #: ../src/guestfs-actions.pod:114
6694 #, no-wrap
6695 msgid ""
6696 " int\n"
6697 " guestfs_add_domain_argv (guestfs_h *g,\n"
6698 "                          const char *dom,\n"
6699 "                          const struct guestfs_add_domain_argv *optargs);\n"
6700 "\n"
6701 msgstr ""
6702
6703 # type: textblock
6704 #. type: textblock
6705 #: ../src/guestfs-actions.pod:119
6706 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6707 msgstr ""
6708
6709 # type: =head2
6710 #. type: =head2
6711 #: ../src/guestfs-actions.pod:123
6712 msgid "guestfs_add_drive"
6713 msgstr ""
6714
6715 # type: verbatim
6716 #. type: verbatim
6717 #: ../src/guestfs-actions.pod:125
6718 #, no-wrap
6719 msgid ""
6720 " int\n"
6721 " guestfs_add_drive (guestfs_h *g,\n"
6722 "                    const char *filename);\n"
6723 "\n"
6724 msgstr ""
6725
6726 # type: textblock
6727 #. type: textblock
6728 #: ../src/guestfs-actions.pod:129
6729 msgid ""
6730 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6731 "optional parameters, so the disk is added writable, with the format being "
6732 "detected automatically."
6733 msgstr ""
6734
6735 # type: textblock
6736 #. type: textblock
6737 #: ../src/guestfs-actions.pod:133
6738 msgid ""
6739 "Automatic detection of the format opens you up to a potential security hole "
6740 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6741 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6742 "you should think about replacing calls to this function with calls to "
6743 "C<guestfs_add_drive_opts>, and specifying the format."
6744 msgstr ""
6745
6746 # type: =head2
6747 #. type: =head2
6748 #: ../src/guestfs-actions.pod:144
6749 msgid "guestfs_add_drive_opts"
6750 msgstr ""
6751
6752 # type: verbatim
6753 #. type: verbatim
6754 #: ../src/guestfs-actions.pod:146
6755 #, no-wrap
6756 msgid ""
6757 " int\n"
6758 " guestfs_add_drive_opts (guestfs_h *g,\n"
6759 "                         const char *filename,\n"
6760 "                         ...);\n"
6761 "\n"
6762 msgstr ""
6763
6764 # type: verbatim
6765 #. type: verbatim
6766 #: ../src/guestfs-actions.pod:156
6767 #, no-wrap
6768 msgid ""
6769 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6770 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6771 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6772 "\n"
6773 msgstr ""
6774
6775 # type: textblock
6776 #. type: textblock
6777 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6778 msgid ""
6779 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6780 "The first time you call this function, the disk appears as C</dev/sda>, the "
6781 "second time as C</dev/sdb>, and so on."
6782 msgstr ""
6783
6784 # type: textblock
6785 #. type: textblock
6786 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6787 msgid ""
6788 "You don't necessarily need to be root when using libguestfs.  However you "
6789 "obviously do need sufficient permissions to access the filename for whatever "
6790 "operations you want to perform (ie. read access if you just want to read the "
6791 "image or write access if you want to modify the image)."
6792 msgstr ""
6793
6794 # type: textblock
6795 #. type: textblock
6796 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6797 msgid "This call checks that C<filename> exists."
6798 msgstr ""
6799
6800 # type: textblock
6801 #. type: textblock
6802 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4460
6803 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3024
6804 msgid "The optional arguments are:"
6805 msgstr ""
6806
6807 # type: =item
6808 #. type: =item
6809 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6810 msgid "C<readonly>"
6811 msgstr ""
6812
6813 # type: textblock
6814 #. type: textblock
6815 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6816 msgid ""
6817 "If true then the image is treated as read-only.  Writes are still allowed, "
6818 "but they are stored in a temporary snapshot overlay which is discarded at "
6819 "the end.  The disk that you add is not modified."
6820 msgstr ""
6821
6822 # type: =item
6823 #. type: =item
6824 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6825 msgid "C<format>"
6826 msgstr ""
6827
6828 # type: textblock
6829 #. type: textblock
6830 #: ../src/guestfs-actions.pod:185
6831 msgid ""
6832 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6833 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6834 "Possible formats include C<raw> and C<qcow2>."
6835 msgstr ""
6836
6837 # type: textblock
6838 #. type: textblock
6839 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6840 msgid ""
6841 "Automatic detection of the format opens you up to a potential security hole "
6842 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6843 "RHBZ#642934.  Specifying the format closes this security hole."
6844 msgstr ""
6845
6846 # type: =item
6847 #. type: =item
6848 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6849 msgid "C<iface>"
6850 msgstr ""
6851
6852 # type: textblock
6853 #. type: textblock
6854 #: ../src/guestfs-actions.pod:196
6855 msgid ""
6856 "This rarely-used option lets you emulate the behaviour of the deprecated "
6857 "C<guestfs_add_drive_with_if> call (q.v.)"
6858 msgstr ""
6859
6860 # type: textblock
6861 #. type: textblock
6862 #: ../src/guestfs-actions.pod:203
6863 msgid "(Added in 1.5.23)"
6864 msgstr ""
6865
6866 # type: =head2
6867 #. type: =head2
6868 #: ../src/guestfs-actions.pod:205
6869 msgid "guestfs_add_drive_opts_va"
6870 msgstr ""
6871
6872 # type: verbatim
6873 #. type: verbatim
6874 #: ../src/guestfs-actions.pod:207
6875 #, no-wrap
6876 msgid ""
6877 " int\n"
6878 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6879 "                            const char *filename,\n"
6880 "                            va_list args);\n"
6881 "\n"
6882 msgstr ""
6883
6884 # type: textblock
6885 #. type: textblock
6886 #: ../src/guestfs-actions.pod:212
6887 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6888 msgstr ""
6889
6890 # type: =head2
6891 #. type: =head2
6892 #: ../src/guestfs-actions.pod:216
6893 msgid "guestfs_add_drive_opts_argv"
6894 msgstr ""
6895
6896 # type: verbatim
6897 #. type: verbatim
6898 #: ../src/guestfs-actions.pod:218
6899 #, no-wrap
6900 msgid ""
6901 " int\n"
6902 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6903 "                              const char *filename,\n"
6904 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6905 "\n"
6906 msgstr ""
6907
6908 # type: textblock
6909 #. type: textblock
6910 #: ../src/guestfs-actions.pod:223
6911 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6912 msgstr ""
6913
6914 # type: =head2
6915 #. type: =head2
6916 #: ../src/guestfs-actions.pod:227
6917 msgid "guestfs_add_drive_ro"
6918 msgstr ""
6919
6920 # type: verbatim
6921 #. type: verbatim
6922 #: ../src/guestfs-actions.pod:229
6923 #, no-wrap
6924 msgid ""
6925 " int\n"
6926 " guestfs_add_drive_ro (guestfs_h *g,\n"
6927 "                       const char *filename);\n"
6928 "\n"
6929 msgstr ""
6930
6931 # type: textblock
6932 #. type: textblock
6933 #: ../src/guestfs-actions.pod:233
6934 msgid ""
6935 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6936 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6937 "disk is added read-only, with the format being detected automatically."
6938 msgstr ""
6939
6940 # type: textblock
6941 #. type: textblock
6942 #: ../src/guestfs-actions.pod:240
6943 msgid "(Added in 1.0.38)"
6944 msgstr ""
6945
6946 # type: =head2
6947 #. type: =head2
6948 #: ../src/guestfs-actions.pod:242
6949 msgid "guestfs_add_drive_ro_with_if"
6950 msgstr ""
6951
6952 # type: verbatim
6953 #. type: verbatim
6954 #: ../src/guestfs-actions.pod:244
6955 #, no-wrap
6956 msgid ""
6957 " int\n"
6958 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6959 "                               const char *filename,\n"
6960 "                               const char *iface);\n"
6961 "\n"
6962 msgstr ""
6963
6964 # type: textblock
6965 #. type: textblock
6966 #: ../src/guestfs-actions.pod:249
6967 msgid ""
6968 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6969 "QEMU interface emulation to use at run time."
6970 msgstr ""
6971
6972 # type: textblock
6973 #. type: textblock
6974 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
6975 #: ../src/guestfs-actions.pod:2362
6976 msgid "(Added in 1.0.84)"
6977 msgstr ""
6978
6979 # type: =head2
6980 #. type: =head2
6981 #: ../src/guestfs-actions.pod:263
6982 msgid "guestfs_add_drive_with_if"
6983 msgstr ""
6984
6985 # type: verbatim
6986 #. type: verbatim
6987 #: ../src/guestfs-actions.pod:265
6988 #, no-wrap
6989 msgid ""
6990 " int\n"
6991 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6992 "                            const char *filename,\n"
6993 "                            const char *iface);\n"
6994 "\n"
6995 msgstr ""
6996
6997 # type: textblock
6998 #. type: textblock
6999 #: ../src/guestfs-actions.pod:270
7000 msgid ""
7001 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
7002 "QEMU interface emulation to use at run time."
7003 msgstr ""
7004
7005 # type: =head2
7006 #. type: =head2
7007 #: ../src/guestfs-actions.pod:284
7008 msgid "guestfs_aug_clear"
7009 msgstr ""
7010
7011 # type: verbatim
7012 #. type: verbatim
7013 #: ../src/guestfs-actions.pod:286
7014 #, no-wrap
7015 msgid ""
7016 " int\n"
7017 " guestfs_aug_clear (guestfs_h *g,\n"
7018 "                    const char *augpath);\n"
7019 "\n"
7020 msgstr ""
7021
7022 # type: textblock
7023 #. type: textblock
7024 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
7025 msgid ""
7026 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7027 "L<augtool(1)> C<clear> command."
7028 msgstr ""
7029
7030 # type: textblock
7031 #. type: textblock
7032 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2112
7033 msgid "(Added in 1.3.4)"
7034 msgstr ""
7035
7036 # type: =head2
7037 #. type: =head2
7038 #: ../src/guestfs-actions.pod:297
7039 msgid "guestfs_aug_close"
7040 msgstr ""
7041
7042 # type: verbatim
7043 #. type: verbatim
7044 #: ../src/guestfs-actions.pod:299
7045 #, no-wrap
7046 msgid ""
7047 " int\n"
7048 " guestfs_aug_close (guestfs_h *g);\n"
7049 "\n"
7050 msgstr ""
7051
7052 # type: textblock
7053 #. type: textblock
7054 #: ../src/guestfs-actions.pod:302
7055 msgid ""
7056 "Close the current Augeas handle and free up any resources used by it.  After "
7057 "calling this, you have to call C<guestfs_aug_init> again before you can use "
7058 "any other Augeas functions."
7059 msgstr ""
7060
7061 # type: textblock
7062 #. type: textblock
7063 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
7064 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
7065 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
7066 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
7067 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
7068 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
7069 #: ../src/guestfs-actions.pod:5486
7070 msgid "(Added in 0.7)"
7071 msgstr ""
7072
7073 # type: =head2
7074 #. type: =head2
7075 #: ../src/guestfs-actions.pod:311
7076 msgid "guestfs_aug_defnode"
7077 msgstr ""
7078
7079 # type: verbatim
7080 #. type: verbatim
7081 #: ../src/guestfs-actions.pod:313
7082 #, no-wrap
7083 msgid ""
7084 " struct guestfs_int_bool *\n"
7085 " guestfs_aug_defnode (guestfs_h *g,\n"
7086 "                      const char *name,\n"
7087 "                      const char *expr,\n"
7088 "                      const char *val);\n"
7089 "\n"
7090 msgstr ""
7091
7092 # type: textblock
7093 #. type: textblock
7094 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
7095 msgid ""
7096 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7097 msgstr ""
7098
7099 # type: textblock
7100 #. type: textblock
7101 #: ../src/guestfs-actions.pod:322
7102 msgid ""
7103 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7104 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
7105 "containing that single node."
7106 msgstr ""
7107
7108 # type: textblock
7109 #. type: textblock
7110 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
7111 msgid ""
7112 "On success this returns a pair containing the number of nodes in the "
7113 "nodeset, and a boolean flag if a node was created."
7114 msgstr ""
7115
7116 # type: textblock
7117 #. type: textblock
7118 #: ../src/guestfs-actions.pod:330
7119 msgid ""
7120 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
7121 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
7122 msgstr ""
7123
7124 # type: =head2
7125 #. type: =head2
7126 #: ../src/guestfs-actions.pod:336
7127 msgid "guestfs_aug_defvar"
7128 msgstr ""
7129
7130 # type: verbatim
7131 #. type: verbatim
7132 #: ../src/guestfs-actions.pod:338
7133 #, no-wrap
7134 msgid ""
7135 " int\n"
7136 " guestfs_aug_defvar (guestfs_h *g,\n"
7137 "                     const char *name,\n"
7138 "                     const char *expr);\n"
7139 "\n"
7140 msgstr ""
7141
7142 # type: textblock
7143 #. type: textblock
7144 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
7145 msgid ""
7146 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7147 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7148 msgstr ""
7149
7150 # type: textblock
7151 #. type: textblock
7152 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
7153 msgid ""
7154 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7155 "evaluates to something which is not a nodeset."
7156 msgstr ""
7157
7158 # type: =head2
7159 #. type: =head2
7160 #: ../src/guestfs-actions.pod:354
7161 msgid "guestfs_aug_get"
7162 msgstr ""
7163
7164 # type: verbatim
7165 #. type: verbatim
7166 #: ../src/guestfs-actions.pod:356
7167 #, no-wrap
7168 msgid ""
7169 " char *\n"
7170 " guestfs_aug_get (guestfs_h *g,\n"
7171 "                  const char *augpath);\n"
7172 "\n"
7173 msgstr ""
7174
7175 # type: textblock
7176 #. type: textblock
7177 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
7178 msgid ""
7179 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7180 "node, the C<value> is returned."
7181 msgstr ""
7182
7183 # type: textblock
7184 #. type: textblock
7185 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:863
7186 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:941
7187 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:1060
7188 #: ../src/guestfs-actions.pod:1190 ../src/guestfs-actions.pod:1207
7189 #: ../src/guestfs-actions.pod:1226 ../src/guestfs-actions.pod:1360
7190 #: ../src/guestfs-actions.pod:1551 ../src/guestfs-actions.pod:1663
7191 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1843
7192 #: ../src/guestfs-actions.pod:1910 ../src/guestfs-actions.pod:1944
7193 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:2135
7194 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:2534
7195 #: ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:2738
7196 #: ../src/guestfs-actions.pod:2758 ../src/guestfs-actions.pod:2878
7197 #: ../src/guestfs-actions.pod:2909 ../src/guestfs-actions.pod:2933
7198 #: ../src/guestfs-actions.pod:2970 ../src/guestfs-actions.pod:3030
7199 #: ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074
7200 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3996
7201 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4276
7202 #: ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:5214
7203 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5562
7204 #: ../src/guestfs-actions.pod:5611 ../src/guestfs-actions.pod:6223
7205 #: ../src/guestfs-actions.pod:6239 ../src/guestfs-actions.pod:6256
7206 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6954
7207 #: ../src/guestfs-actions.pod:6973 ../src/guestfs-actions.pod:6991
7208 #: ../src/guestfs-actions.pod:7171 ../src/guestfs-actions.pod:7443
7209 msgid ""
7210 "This function returns a string, or NULL on error.  I<The caller must free "
7211 "the returned string after use>."
7212 msgstr ""
7213
7214 # type: =head2
7215 #. type: =head2
7216 #: ../src/guestfs-actions.pod:368
7217 msgid "guestfs_aug_init"
7218 msgstr ""
7219
7220 # type: verbatim
7221 #. type: verbatim
7222 #: ../src/guestfs-actions.pod:370
7223 #, no-wrap
7224 msgid ""
7225 " int\n"
7226 " guestfs_aug_init (guestfs_h *g,\n"
7227 "                   const char *root,\n"
7228 "                   int flags);\n"
7229 "\n"
7230 msgstr ""
7231
7232 # type: textblock
7233 #. type: textblock
7234 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
7235 msgid ""
7236 "Create a new Augeas handle for editing configuration files.  If there was "
7237 "any previous Augeas handle associated with this guestfs session, then it is "
7238 "closed."
7239 msgstr ""
7240
7241 # type: textblock
7242 #. type: textblock
7243 #: ../src/guestfs-actions.pod:379
7244 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7245 msgstr ""
7246
7247 # type: textblock
7248 #. type: textblock
7249 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
7250 msgid ""
7251 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7252 msgstr ""
7253
7254 # type: textblock
7255 #. type: textblock
7256 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
7257 msgid ""
7258 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7259 "logical I<or> of the following integers:"
7260 msgstr ""
7261
7262 # type: =item
7263 #. type: =item
7264 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
7265 msgid "C<AUG_SAVE_BACKUP> = 1"
7266 msgstr ""
7267
7268 # type: textblock
7269 #. type: textblock
7270 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7271 msgid "Keep the original file with a C<.augsave> extension."
7272 msgstr ""
7273
7274 # type: =item
7275 #. type: =item
7276 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
7277 msgid "C<AUG_SAVE_NEWFILE> = 2"
7278 msgstr ""
7279
7280 # type: textblock
7281 #. type: textblock
7282 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7283 msgid ""
7284 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7285 "original.  Overrides C<AUG_SAVE_BACKUP>."
7286 msgstr ""
7287
7288 # type: =item
7289 #. type: =item
7290 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
7291 msgid "C<AUG_TYPE_CHECK> = 4"
7292 msgstr ""
7293
7294 # type: textblock
7295 #. type: textblock
7296 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7297 msgid "Typecheck lenses (can be expensive)."
7298 msgstr ""
7299
7300 # type: =item
7301 #. type: =item
7302 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
7303 msgid "C<AUG_NO_STDINC> = 8"
7304 msgstr ""
7305
7306 # type: textblock
7307 #. type: textblock
7308 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7309 msgid "Do not use standard load path for modules."
7310 msgstr ""
7311
7312 # type: =item
7313 #. type: =item
7314 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
7315 msgid "C<AUG_SAVE_NOOP> = 16"
7316 msgstr ""
7317
7318 # type: textblock
7319 #. type: textblock
7320 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
7321 msgid "Make save a no-op, just record what would have been changed."
7322 msgstr ""
7323
7324 # type: =item
7325 #. type: =item
7326 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
7327 msgid "C<AUG_NO_LOAD> = 32"
7328 msgstr ""
7329
7330 # type: textblock
7331 #. type: textblock
7332 #: ../src/guestfs-actions.pod:414
7333 msgid "Do not load the tree in C<guestfs_aug_init>."
7334 msgstr ""
7335
7336 # type: textblock
7337 #. type: textblock
7338 #: ../src/guestfs-actions.pod:418
7339 msgid "To close the handle, you can call C<guestfs_aug_close>."
7340 msgstr ""
7341
7342 # type: textblock
7343 #. type: textblock
7344 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7345 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7346 msgstr ""
7347
7348 # type: =head2
7349 #. type: =head2
7350 #: ../src/guestfs-actions.pod:426
7351 msgid "guestfs_aug_insert"
7352 msgstr ""
7353
7354 # type: verbatim
7355 #. type: verbatim
7356 #: ../src/guestfs-actions.pod:428
7357 #, no-wrap
7358 msgid ""
7359 " int\n"
7360 " guestfs_aug_insert (guestfs_h *g,\n"
7361 "                     const char *augpath,\n"
7362 "                     const char *label,\n"
7363 "                     int before);\n"
7364 "\n"
7365 msgstr ""
7366
7367 # type: textblock
7368 #. type: textblock
7369 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
7370 msgid ""
7371 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7372 "or after C<path> (depending on the boolean flag C<before>)."
7373 msgstr ""
7374
7375 # type: textblock
7376 #. type: textblock
7377 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
7378 msgid ""
7379 "C<path> must match exactly one existing node in the tree, and C<label> must "
7380 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7381 msgstr ""
7382
7383 # type: =head2
7384 #. type: =head2
7385 #: ../src/guestfs-actions.pod:446
7386 msgid "guestfs_aug_load"
7387 msgstr ""
7388
7389 # type: verbatim
7390 #. type: verbatim
7391 #: ../src/guestfs-actions.pod:448
7392 #, no-wrap
7393 msgid ""
7394 " int\n"
7395 " guestfs_aug_load (guestfs_h *g);\n"
7396 "\n"
7397 msgstr ""
7398
7399 # type: textblock
7400 #. type: textblock
7401 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7402 msgid "Load files into the tree."
7403 msgstr ""
7404
7405 # type: textblock
7406 #. type: textblock
7407 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
7408 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7409 msgstr ""
7410
7411 # type: =head2
7412 #. type: =head2
7413 #: ../src/guestfs-actions.pod:460
7414 msgid "guestfs_aug_ls"
7415 msgstr ""
7416
7417 # type: verbatim
7418 #. type: verbatim
7419 #: ../src/guestfs-actions.pod:462
7420 #, no-wrap
7421 msgid ""
7422 " char **\n"
7423 " guestfs_aug_ls (guestfs_h *g,\n"
7424 "                 const char *augpath);\n"
7425 "\n"
7426 msgstr ""
7427
7428 # type: textblock
7429 #. type: textblock
7430 #: ../src/guestfs-actions.pod:466
7431 msgid ""
7432 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7433 "sorting the resulting nodes into alphabetical order."
7434 msgstr ""
7435
7436 # type: textblock
7437 #. type: textblock
7438 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
7439 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1079
7440 #: ../src/guestfs-actions.pod:1375 ../src/guestfs-actions.pod:1394
7441 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1516
7442 #: ../src/guestfs-actions.pod:1765 ../src/guestfs-actions.pod:2207
7443 #: ../src/guestfs-actions.pod:2223 ../src/guestfs-actions.pod:2242
7444 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:2309
7445 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:2429
7446 #: ../src/guestfs-actions.pod:2696 ../src/guestfs-actions.pod:2987
7447 #: ../src/guestfs-actions.pod:3276 ../src/guestfs-actions.pod:3566
7448 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3733
7449 #: ../src/guestfs-actions.pod:4138 ../src/guestfs-actions.pod:4836
7450 #: ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5482
7451 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:6296
7452 #: ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6412
7453 #: ../src/guestfs-actions.pod:6558 ../src/guestfs-actions.pod:6582
7454 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7084
7455 #: ../src/guestfs-actions.pod:7131 ../src/guestfs-actions.pod:7296
7456 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-actions.pod:7400
7457 #: ../src/guestfs-actions.pod:7419 ../src/guestfs-actions.pod:7465
7458 #: ../src/guestfs-actions.pod:7484
7459 msgid ""
7460 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7461 ">), or NULL if there was an error.  I<The caller must free the strings and "
7462 "the array after use>."
7463 msgstr ""
7464
7465 # type: textblock
7466 #. type: textblock
7467 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1004
7468 #: ../src/guestfs-actions.pod:1022 ../src/guestfs-actions.pod:1432
7469 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3385
7470 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:4029
7471 #: ../src/guestfs-actions.pod:4216 ../src/guestfs-actions.pod:4249
7472 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4840
7473 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5692
7474 #: ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5718
7475 #: ../src/guestfs-actions.pod:6158 ../src/guestfs-actions.pod:6796
7476 #: ../src/guestfs-actions.pod:6809 ../src/guestfs-actions.pod:7048
7477 #: ../src/guestfs-actions.pod:7284
7478 msgid "(Added in 0.8)"
7479 msgstr ""
7480
7481 # type: =head2
7482 #. type: =head2
7483 #: ../src/guestfs-actions.pod:475
7484 msgid "guestfs_aug_match"
7485 msgstr ""
7486
7487 # type: verbatim
7488 #. type: verbatim
7489 #: ../src/guestfs-actions.pod:477
7490 #, no-wrap
7491 msgid ""
7492 " char **\n"
7493 " guestfs_aug_match (guestfs_h *g,\n"
7494 "                    const char *augpath);\n"
7495 "\n"
7496 msgstr ""
7497
7498 # type: textblock
7499 #. type: textblock
7500 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
7501 msgid ""
7502 "Returns a list of paths which match the path expression C<path>.  The "
7503 "returned paths are sufficiently qualified so that they match exactly one "
7504 "node in the current tree."
7505 msgstr ""
7506
7507 # type: =head2
7508 #. type: =head2
7509 #: ../src/guestfs-actions.pod:491
7510 msgid "guestfs_aug_mv"
7511 msgstr ""
7512
7513 # type: verbatim
7514 #. type: verbatim
7515 #: ../src/guestfs-actions.pod:493
7516 #, no-wrap
7517 msgid ""
7518 " int\n"
7519 " guestfs_aug_mv (guestfs_h *g,\n"
7520 "                 const char *src,\n"
7521 "                 const char *dest);\n"
7522 "\n"
7523 msgstr ""
7524
7525 # type: textblock
7526 #. type: textblock
7527 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7528 msgid ""
7529 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7530 "C<dest> is overwritten if it exists."
7531 msgstr ""
7532
7533 # type: =head2
7534 #. type: =head2
7535 #: ../src/guestfs-actions.pod:505
7536 msgid "guestfs_aug_rm"
7537 msgstr ""
7538
7539 # type: verbatim
7540 #. type: verbatim
7541 #: ../src/guestfs-actions.pod:507
7542 #, no-wrap
7543 msgid ""
7544 " int\n"
7545 " guestfs_aug_rm (guestfs_h *g,\n"
7546 "                 const char *augpath);\n"
7547 "\n"
7548 msgstr ""
7549
7550 # type: textblock
7551 #. type: textblock
7552 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7553 msgid "Remove C<path> and all of its children."
7554 msgstr ""
7555
7556 # type: textblock
7557 #. type: textblock
7558 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7559 msgid "On success this returns the number of entries which were removed."
7560 msgstr ""
7561
7562 # type: =head2
7563 #. type: =head2
7564 #: ../src/guestfs-actions.pod:519
7565 msgid "guestfs_aug_save"
7566 msgstr ""
7567
7568 # type: verbatim
7569 #. type: verbatim
7570 #: ../src/guestfs-actions.pod:521
7571 #, no-wrap
7572 msgid ""
7573 " int\n"
7574 " guestfs_aug_save (guestfs_h *g);\n"
7575 "\n"
7576 msgstr ""
7577
7578 # type: textblock
7579 #. type: textblock
7580 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7581 msgid "This writes all pending changes to disk."
7582 msgstr ""
7583
7584 # type: textblock
7585 #. type: textblock
7586 #: ../src/guestfs-actions.pod:526
7587 msgid ""
7588 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7589 "are saved."
7590 msgstr ""
7591
7592 # type: =head2
7593 #. type: =head2
7594 #: ../src/guestfs-actions.pod:533
7595 msgid "guestfs_aug_set"
7596 msgstr ""
7597
7598 # type: verbatim
7599 #. type: verbatim
7600 #: ../src/guestfs-actions.pod:535
7601 #, no-wrap
7602 msgid ""
7603 " int\n"
7604 " guestfs_aug_set (guestfs_h *g,\n"
7605 "                  const char *augpath,\n"
7606 "                  const char *val);\n"
7607 "\n"
7608 msgstr ""
7609
7610 # type: textblock
7611 #. type: textblock
7612 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7613 msgid "Set the value associated with C<path> to C<val>."
7614 msgstr ""
7615
7616 # type: textblock
7617 #. type: textblock
7618 #: ../src/guestfs-actions.pod:542
7619 msgid ""
7620 "In the Augeas API, it is possible to clear a node by setting the value to "
7621 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7622 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7623 msgstr ""
7624
7625 # type: =head2
7626 #. type: =head2
7627 #: ../src/guestfs-actions.pod:551
7628 msgid "guestfs_available"
7629 msgstr ""
7630
7631 # type: verbatim
7632 #. type: verbatim
7633 #: ../src/guestfs-actions.pod:553
7634 #, no-wrap
7635 msgid ""
7636 " int\n"
7637 " guestfs_available (guestfs_h *g,\n"
7638 "                    char *const *groups);\n"
7639 "\n"
7640 msgstr ""
7641
7642 # type: textblock
7643 #. type: textblock
7644 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7645 msgid ""
7646 "This command is used to check the availability of some groups of "
7647 "functionality in the appliance, which not all builds of the libguestfs "
7648 "appliance will be able to provide."
7649 msgstr ""
7650
7651 # type: textblock
7652 #. type: textblock
7653 #: ../src/guestfs-actions.pod:561
7654 msgid ""
7655 "The libguestfs groups, and the functions that those groups correspond to, "
7656 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7657 "runtime by calling C<guestfs_available_all_groups>."
7658 msgstr ""
7659
7660 # type: textblock
7661 #. type: textblock
7662 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7663 msgid ""
7664 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7665 "\"]> would check for the availability of the Linux inotify functions and "
7666 "Augeas (configuration file editing) functions."
7667 msgstr ""
7668
7669 # type: textblock
7670 #. type: textblock
7671 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7672 msgid "The command returns no error if I<all> requested groups are available."
7673 msgstr ""
7674
7675 # type: textblock
7676 #. type: textblock
7677 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7678 msgid ""
7679 "It fails with an error if one or more of the requested groups is unavailable "
7680 "in the appliance."
7681 msgstr ""
7682
7683 # type: textblock
7684 #. type: textblock
7685 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7686 msgid ""
7687 "If an unknown group name is included in the list of groups then an error is "
7688 "always returned."
7689 msgstr ""
7690
7691 # type: textblock
7692 #. type: textblock
7693 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7694 msgid "I<Notes:>"
7695 msgstr ""
7696
7697 # type: textblock
7698 #. type: textblock
7699 #: ../src/guestfs-actions.pod:585
7700 msgid "You must call C<guestfs_launch> before calling this function."
7701 msgstr ""
7702
7703 # type: textblock
7704 #. type: textblock
7705 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7706 msgid ""
7707 "The reason is because we don't know what groups are supported by the "
7708 "appliance/daemon until it is running and can be queried."
7709 msgstr ""
7710
7711 # type: textblock
7712 #. type: textblock
7713 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7714 msgid ""
7715 "If a group of functions is available, this does not necessarily mean that "
7716 "they will work.  You still have to check for errors when calling individual "
7717 "API functions even if they are available."
7718 msgstr ""
7719
7720 # type: textblock
7721 #. type: textblock
7722 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7723 msgid ""
7724 "It is usually the job of distro packagers to build complete functionality "
7725 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7726 "with all requirements satisfied, will support everything."
7727 msgstr ""
7728
7729 # type: textblock
7730 #. type: textblock
7731 #: ../src/guestfs-actions.pod:607
7732 msgid ""
7733 "This call was added in version C<1.0.80>.  In previous versions of "
7734 "libguestfs all you could do would be to speculatively execute a command to "
7735 "find out if the daemon implemented it.  See also C<guestfs_version>."
7736 msgstr ""
7737
7738 # type: textblock
7739 #. type: textblock
7740 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1177
7741 msgid "(Added in 1.0.80)"
7742 msgstr ""
7743
7744 # type: =head2
7745 #. type: =head2
7746 #: ../src/guestfs-actions.pod:618
7747 msgid "guestfs_available_all_groups"
7748 msgstr ""
7749
7750 # type: verbatim
7751 #. type: verbatim
7752 #: ../src/guestfs-actions.pod:620
7753 #, no-wrap
7754 msgid ""
7755 " char **\n"
7756 " guestfs_available_all_groups (guestfs_h *g);\n"
7757 "\n"
7758 msgstr ""
7759
7760 # type: textblock
7761 #. type: textblock
7762 #: ../src/guestfs-actions.pod:623
7763 msgid ""
7764 "This command returns a list of all optional groups that this daemon knows "
7765 "about.  Note this returns both supported and unsupported groups.  To find "
7766 "out which ones the daemon can actually support you have to call "
7767 "C<guestfs_available> on each member of the returned list."
7768 msgstr ""
7769
7770 # type: textblock
7771 #. type: textblock
7772 #: ../src/guestfs-actions.pod:629
7773 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7774 msgstr ""
7775
7776 # type: textblock
7777 #. type: textblock
7778 #: ../src/guestfs-actions.pod:635
7779 msgid "(Added in 1.3.15)"
7780 msgstr ""
7781
7782 # type: =head2
7783 #. type: =head2
7784 #: ../src/guestfs-actions.pod:637
7785 msgid "guestfs_base64_in"
7786 msgstr ""
7787
7788 # type: verbatim
7789 #. type: verbatim
7790 #: ../src/guestfs-actions.pod:639
7791 #, no-wrap
7792 msgid ""
7793 " int\n"
7794 " guestfs_base64_in (guestfs_h *g,\n"
7795 "                    const char *base64file,\n"
7796 "                    const char *filename);\n"
7797 "\n"
7798 msgstr ""
7799
7800 # type: textblock
7801 #. type: textblock
7802 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7803 msgid ""
7804 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7805 msgstr ""
7806
7807 # type: textblock
7808 #. type: textblock
7809 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7810 msgid "(Added in 1.3.5)"
7811 msgstr ""
7812
7813 # type: =head2
7814 #. type: =head2
7815 #: ../src/guestfs-actions.pod:651
7816 msgid "guestfs_base64_out"
7817 msgstr ""
7818
7819 # type: verbatim
7820 #. type: verbatim
7821 #: ../src/guestfs-actions.pod:653
7822 #, no-wrap
7823 msgid ""
7824 " int\n"
7825 " guestfs_base64_out (guestfs_h *g,\n"
7826 "                     const char *filename,\n"
7827 "                     const char *base64file);\n"
7828 "\n"
7829 msgstr ""
7830
7831 # type: textblock
7832 #. type: textblock
7833 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7834 msgid ""
7835 "This command downloads the contents of C<filename>, writing it out to local "
7836 "file C<base64file> encoded as base64."
7837 msgstr ""
7838
7839 # type: =head2
7840 #. type: =head2
7841 #: ../src/guestfs-actions.pod:665
7842 msgid "guestfs_blockdev_flushbufs"
7843 msgstr ""
7844
7845 # type: verbatim
7846 #. type: verbatim
7847 #: ../src/guestfs-actions.pod:667
7848 #, no-wrap
7849 msgid ""
7850 " int\n"
7851 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7852 "                             const char *device);\n"
7853 "\n"
7854 msgstr ""
7855
7856 # type: textblock
7857 #. type: textblock
7858 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7859 msgid ""
7860 "This tells the kernel to flush internal buffers associated with C<device>."
7861 msgstr ""
7862
7863 # type: textblock
7864 #. type: textblock
7865 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7866 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7867 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7868 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7869 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7870 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7871 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7872 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7873 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7874 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7875 msgid "This uses the L<blockdev(8)> command."
7876 msgstr ""
7877
7878 # type: textblock
7879 #. type: textblock
7880 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7881 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7882 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7883 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
7884 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
7885 msgid "(Added in 0.9.3)"
7886 msgstr ""
7887
7888 # type: =head2
7889 #. type: =head2
7890 #: ../src/guestfs-actions.pod:680
7891 msgid "guestfs_blockdev_getbsz"
7892 msgstr ""
7893
7894 # type: verbatim
7895 #. type: verbatim
7896 #: ../src/guestfs-actions.pod:682
7897 #, no-wrap
7898 msgid ""
7899 " int\n"
7900 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7901 "                          const char *device);\n"
7902 "\n"
7903 msgstr ""
7904
7905 # type: textblock
7906 #. type: textblock
7907 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
7908 msgid "This returns the block size of a device."
7909 msgstr ""
7910
7911 # type: textblock
7912 #. type: textblock
7913 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
7914 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
7915 msgid ""
7916 "(Note this is different from both I<size in blocks> and I<filesystem block "
7917 "size>)."
7918 msgstr ""
7919
7920 # type: =head2
7921 #. type: =head2
7922 #: ../src/guestfs-actions.pod:697
7923 msgid "guestfs_blockdev_getro"
7924 msgstr ""
7925
7926 # type: verbatim
7927 #. type: verbatim
7928 #: ../src/guestfs-actions.pod:699
7929 #, no-wrap
7930 msgid ""
7931 " int\n"
7932 " guestfs_blockdev_getro (guestfs_h *g,\n"
7933 "                         const char *device);\n"
7934 "\n"
7935 msgstr ""
7936
7937 # type: textblock
7938 #. type: textblock
7939 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
7940 msgid ""
7941 "Returns a boolean indicating if the block device is read-only (true if read-"
7942 "only, false if not)."
7943 msgstr ""
7944
7945 # type: textblock
7946 #. type: textblock
7947 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1415
7948 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1920
7949 #: ../src/guestfs-actions.pod:1931 ../src/guestfs-actions.pod:2003
7950 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2073
7951 #: ../src/guestfs-actions.pod:2098 ../src/guestfs-actions.pod:2121
7952 #: ../src/guestfs-actions.pod:3094 ../src/guestfs-actions.pod:3111
7953 #: ../src/guestfs-actions.pod:3130 ../src/guestfs-actions.pod:3293
7954 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:3322
7955 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3352
7956 #: ../src/guestfs-actions.pod:3367 ../src/guestfs-actions.pod:3383
7957 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3410
7958 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3439
7959 #: ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:4985
7960 msgid "This function returns a C truth value on success or -1 on error."
7961 msgstr ""
7962
7963 # type: =head2
7964 #. type: =head2
7965 #: ../src/guestfs-actions.pod:712
7966 msgid "guestfs_blockdev_getsize64"
7967 msgstr ""
7968
7969 # type: verbatim
7970 #. type: verbatim
7971 #: ../src/guestfs-actions.pod:714
7972 #, no-wrap
7973 msgid ""
7974 " int64_t\n"
7975 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7976 "                             const char *device);\n"
7977 "\n"
7978 msgstr ""
7979
7980 # type: textblock
7981 #. type: textblock
7982 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
7983 msgid "This returns the size of the device in bytes."
7984 msgstr ""
7985
7986 # type: textblock
7987 #. type: textblock
7988 #: ../src/guestfs-actions.pod:720
7989 msgid "See also C<guestfs_blockdev_getsz>."
7990 msgstr ""
7991
7992 # type: =head2
7993 #. type: =head2
7994 #: ../src/guestfs-actions.pod:728
7995 msgid "guestfs_blockdev_getss"
7996 msgstr ""
7997
7998 # type: verbatim
7999 #. type: verbatim
8000 #: ../src/guestfs-actions.pod:730
8001 #, no-wrap
8002 msgid ""
8003 " int\n"
8004 " guestfs_blockdev_getss (guestfs_h *g,\n"
8005 "                         const char *device);\n"
8006 "\n"
8007 msgstr ""
8008
8009 # type: textblock
8010 #. type: textblock
8011 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
8012 msgid ""
8013 "This returns the size of sectors on a block device.  Usually 512, but can be "
8014 "larger for modern devices."
8015 msgstr ""
8016
8017 # type: textblock
8018 #. type: textblock
8019 #: ../src/guestfs-actions.pod:737
8020 msgid ""
8021 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
8022 "that)."
8023 msgstr ""
8024
8025 # type: =head2
8026 #. type: =head2
8027 #: ../src/guestfs-actions.pod:746
8028 msgid "guestfs_blockdev_getsz"
8029 msgstr ""
8030
8031 # type: verbatim
8032 #. type: verbatim
8033 #: ../src/guestfs-actions.pod:748
8034 #, no-wrap
8035 msgid ""
8036 " int64_t\n"
8037 " guestfs_blockdev_getsz (guestfs_h *g,\n"
8038 "                         const char *device);\n"
8039 "\n"
8040 msgstr ""
8041
8042 # type: textblock
8043 #. type: textblock
8044 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
8045 msgid ""
8046 "This returns the size of the device in units of 512-byte sectors (even if "
8047 "the sectorsize isn't 512 bytes ... weird)."
8048 msgstr ""
8049
8050 # type: textblock
8051 #. type: textblock
8052 #: ../src/guestfs-actions.pod:755
8053 msgid ""
8054 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
8055 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
8056 msgstr ""
8057
8058 # type: =head2
8059 #. type: =head2
8060 #: ../src/guestfs-actions.pod:765
8061 msgid "guestfs_blockdev_rereadpt"
8062 msgstr ""
8063
8064 # type: verbatim
8065 #. type: verbatim
8066 #: ../src/guestfs-actions.pod:767
8067 #, no-wrap
8068 msgid ""
8069 " int\n"
8070 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
8071 "                            const char *device);\n"
8072 "\n"
8073 msgstr ""
8074
8075 # type: textblock
8076 #. type: textblock
8077 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
8078 msgid "Reread the partition table on C<device>."
8079 msgstr ""
8080
8081 # type: =head2
8082 #. type: =head2
8083 #: ../src/guestfs-actions.pod:779
8084 msgid "guestfs_blockdev_setbsz"
8085 msgstr ""
8086
8087 # type: verbatim
8088 #. type: verbatim
8089 #: ../src/guestfs-actions.pod:781
8090 #, no-wrap
8091 msgid ""
8092 " int\n"
8093 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
8094 "                          const char *device,\n"
8095 "                          int blocksize);\n"
8096 "\n"
8097 msgstr ""
8098
8099 # type: textblock
8100 #. type: textblock
8101 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
8102 msgid "This sets the block size of a device."
8103 msgstr ""
8104
8105 # type: =head2
8106 #. type: =head2
8107 #: ../src/guestfs-actions.pod:797
8108 msgid "guestfs_blockdev_setro"
8109 msgstr ""
8110
8111 # type: verbatim
8112 #. type: verbatim
8113 #: ../src/guestfs-actions.pod:799
8114 #, no-wrap
8115 msgid ""
8116 " int\n"
8117 " guestfs_blockdev_setro (guestfs_h *g,\n"
8118 "                         const char *device);\n"
8119 "\n"
8120 msgstr ""
8121
8122 # type: textblock
8123 #. type: textblock
8124 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
8125 msgid "Sets the block device named C<device> to read-only."
8126 msgstr ""
8127
8128 # type: =head2
8129 #. type: =head2
8130 #: ../src/guestfs-actions.pod:811
8131 msgid "guestfs_blockdev_setrw"
8132 msgstr ""
8133
8134 # type: verbatim
8135 #. type: verbatim
8136 #: ../src/guestfs-actions.pod:813
8137 #, no-wrap
8138 msgid ""
8139 " int\n"
8140 " guestfs_blockdev_setrw (guestfs_h *g,\n"
8141 "                         const char *device);\n"
8142 "\n"
8143 msgstr ""
8144
8145 # type: textblock
8146 #. type: textblock
8147 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
8148 msgid "Sets the block device named C<device> to read-write."
8149 msgstr ""
8150
8151 # type: =head2
8152 #. type: =head2
8153 #: ../src/guestfs-actions.pod:825
8154 msgid "guestfs_case_sensitive_path"
8155 msgstr ""
8156
8157 # type: verbatim
8158 #. type: verbatim
8159 #: ../src/guestfs-actions.pod:827
8160 #, no-wrap
8161 msgid ""
8162 " char *\n"
8163 " guestfs_case_sensitive_path (guestfs_h *g,\n"
8164 "                              const char *path);\n"
8165 "\n"
8166 msgstr ""
8167
8168 # type: textblock
8169 #. type: textblock
8170 #: ../src/guestfs-actions.pod:831 ../fish/guestfish-actions.pod:549
8171 msgid ""
8172 "This can be used to resolve case insensitive paths on a filesystem which is "
8173 "case sensitive.  The use case is to resolve paths which you have read from "
8174 "Windows configuration files or the Windows Registry, to the true path."
8175 msgstr ""
8176
8177 # type: textblock
8178 #. type: textblock
8179 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:554
8180 msgid ""
8181 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8182 "(and probably others), which is that although the underlying filesystem is "
8183 "case-insensitive, the driver exports the filesystem to Linux as case-"
8184 "sensitive."
8185 msgstr ""
8186
8187 # type: textblock
8188 #. type: textblock
8189 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:559
8190 msgid ""
8191 "One consequence of this is that special directories such as C<c:\\windows> "
8192 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8193 "precise details of how they were created.  In Windows itself this would not "
8194 "be a problem."
8195 msgstr ""
8196
8197 # type: textblock
8198 #. type: textblock
8199 #: ../src/guestfs-actions.pod:847 ../fish/guestfish-actions.pod:565
8200 msgid ""
8201 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8202 "#posixfilenames1>"
8203 msgstr ""
8204
8205 # type: textblock
8206 #. type: textblock
8207 #: ../src/guestfs-actions.pod:850 ../fish/guestfish-actions.pod:568
8208 msgid ""
8209 "This function resolves the true case of each element in the path and returns "
8210 "the case-sensitive path."
8211 msgstr ""
8212
8213 # type: textblock
8214 #. type: textblock
8215 #: ../src/guestfs-actions.pod:853
8216 msgid ""
8217 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8218 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8219 "how the directories were originally created under Windows)."
8220 msgstr ""
8221
8222 # type: textblock
8223 #. type: textblock
8224 #: ../src/guestfs-actions.pod:858 ../fish/guestfish-actions.pod:576
8225 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8226 msgstr ""
8227
8228 # type: textblock
8229 #. type: textblock
8230 #: ../src/guestfs-actions.pod:861
8231 msgid "See also C<guestfs_realpath>."
8232 msgstr ""
8233
8234 # type: textblock
8235 #. type: textblock
8236 #: ../src/guestfs-actions.pod:866 ../src/guestfs-actions.pod:6976
8237 msgid "(Added in 1.0.75)"
8238 msgstr ""
8239
8240 # type: =head2
8241 #. type: =head2
8242 #: ../src/guestfs-actions.pod:868
8243 msgid "guestfs_cat"
8244 msgstr ""
8245
8246 # type: verbatim
8247 #. type: verbatim
8248 #: ../src/guestfs-actions.pod:870
8249 #, no-wrap
8250 msgid ""
8251 " char *\n"
8252 " guestfs_cat (guestfs_h *g,\n"
8253 "              const char *path);\n"
8254 "\n"
8255 msgstr ""
8256
8257 # type: textblock
8258 #. type: textblock
8259 #: ../src/guestfs-actions.pod:874 ../src/guestfs-actions.pod:5472
8260 #: ../fish/guestfish-actions.pod:585 ../fish/guestfish-actions.pod:3672
8261 msgid "Return the contents of the file named C<path>."
8262 msgstr ""
8263
8264 # type: textblock
8265 #. type: textblock
8266 #: ../src/guestfs-actions.pod:876
8267 msgid ""
8268 "Note that this function cannot correctly handle binary files (specifically, "
8269 "files containing C<\\0> character which is treated as end of string).  For "
8270 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8271 "functions which have a more complex interface."
8272 msgstr ""
8273
8274 # type: textblock
8275 #. type: textblock
8276 #: ../src/guestfs-actions.pod:884 ../src/guestfs-actions.pod:1063
8277 #: ../src/guestfs-actions.pod:1083 ../src/guestfs-actions.pod:1379
8278 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:1501
8279 #: ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1769
8280 #: ../src/guestfs-actions.pod:2227 ../src/guestfs-actions.pod:2246
8281 #: ../src/guestfs-actions.pod:2289 ../src/guestfs-actions.pod:2313
8282 #: ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2359
8283 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5280
8284 #: ../src/guestfs-actions.pod:5411 ../src/guestfs-actions.pod:5437
8285 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:6361
8286 #: ../src/guestfs-actions.pod:6416 ../src/guestfs-actions.pod:6562
8287 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:7248
8288 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7300
8289 #: ../src/guestfs-actions.pod:7319 ../src/guestfs-actions.pod:7404
8290 #: ../src/guestfs-actions.pod:7423 ../src/guestfs-actions.pod:7469
8291 #: ../src/guestfs-actions.pod:7488 ../fish/guestfish-actions.pod:592
8292 #: ../fish/guestfish-actions.pod:727 ../fish/guestfish-actions.pod:739
8293 #: ../fish/guestfish-actions.pod:915 ../fish/guestfish-actions.pod:925
8294 #: ../fish/guestfish-actions.pod:992 ../fish/guestfish-actions.pod:1002
8295 #: ../fish/guestfish-actions.pod:1197 ../fish/guestfish-actions.pod:1498
8296 #: ../fish/guestfish-actions.pod:1508 ../fish/guestfish-actions.pod:1536
8297 #: ../fish/guestfish-actions.pod:1551 ../fish/guestfish-actions.pod:1561
8298 #: ../fish/guestfish-actions.pod:1580 ../fish/guestfish-actions.pod:3542
8299 #: ../fish/guestfish-actions.pod:3557 ../fish/guestfish-actions.pod:3633
8300 #: ../fish/guestfish-actions.pod:3650 ../fish/guestfish-actions.pod:3665
8301 #: ../fish/guestfish-actions.pod:4291 ../fish/guestfish-actions.pod:4337
8302 #: ../fish/guestfish-actions.pod:4422 ../fish/guestfish-actions.pod:4437
8303 #: ../fish/guestfish-actions.pod:4847 ../fish/guestfish-actions.pod:4865
8304 #: ../fish/guestfish-actions.pod:4882 ../fish/guestfish-actions.pod:4892
8305 #: ../fish/guestfish-actions.pod:4940 ../fish/guestfish-actions.pod:4950
8306 #: ../fish/guestfish-actions.pod:4979 ../fish/guestfish-actions.pod:4989
8307 msgid ""
8308 "Because of the message protocol, there is a transfer limit of somewhere "
8309 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8310 msgstr ""
8311
8312 # type: textblock
8313 #. type: textblock
8314 #: ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:3570
8315 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3649
8316 #: ../src/guestfs-actions.pod:3737 ../src/guestfs-actions.pod:4142
8317 #: ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:5360
8318 #: ../src/guestfs-actions.pod:5374 ../src/guestfs-actions.pod:7135
8319 #: ../src/guestfs-actions.pod:7149
8320 msgid "(Added in 0.4)"
8321 msgstr ""
8322
8323 # type: =head2
8324 #. type: =head2
8325 #: ../src/guestfs-actions.pod:889
8326 msgid "guestfs_checksum"
8327 msgstr ""
8328
8329 # type: verbatim
8330 #. type: verbatim
8331 #: ../src/guestfs-actions.pod:891
8332 #, no-wrap
8333 msgid ""
8334 " char *\n"
8335 " guestfs_checksum (guestfs_h *g,\n"
8336 "                   const char *csumtype,\n"
8337 "                   const char *path);\n"
8338 "\n"
8339 msgstr ""
8340
8341 # type: textblock
8342 #. type: textblock
8343 #: ../src/guestfs-actions.pod:896 ../fish/guestfish-actions.pod:599
8344 msgid ""
8345 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8346 msgstr ""
8347
8348 # type: textblock
8349 #. type: textblock
8350 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:602
8351 msgid ""
8352 "The type of checksum to compute is given by the C<csumtype> parameter which "
8353 "must have one of the following values:"
8354 msgstr ""
8355
8356 # type: =item
8357 #. type: =item
8358 #: ../src/guestfs-actions.pod:904 ../fish/guestfish-actions.pod:607
8359 msgid "C<crc>"
8360 msgstr ""
8361
8362 # type: textblock
8363 #. type: textblock
8364 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:609
8365 msgid ""
8366 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8367 "C<cksum> command."
8368 msgstr ""
8369
8370 # type: =item
8371 #. type: =item
8372 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:612
8373 msgid "C<md5>"
8374 msgstr ""
8375
8376 # type: textblock
8377 #. type: textblock
8378 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:614
8379 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8380 msgstr ""
8381
8382 # type: =item
8383 #. type: =item
8384 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:616
8385 msgid "C<sha1>"
8386 msgstr ""
8387
8388 # type: textblock
8389 #. type: textblock
8390 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:618
8391 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8392 msgstr ""
8393
8394 # type: =item
8395 #. type: =item
8396 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:620
8397 msgid "C<sha224>"
8398 msgstr ""
8399
8400 # type: textblock
8401 #. type: textblock
8402 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:622
8403 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8404 msgstr ""
8405
8406 # type: =item
8407 #. type: =item
8408 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:624
8409 msgid "C<sha256>"
8410 msgstr ""
8411
8412 # type: textblock
8413 #. type: textblock
8414 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:626
8415 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8416 msgstr ""
8417
8418 # type: =item
8419 #. type: =item
8420 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:628
8421 msgid "C<sha384>"
8422 msgstr ""
8423
8424 # type: textblock
8425 #. type: textblock
8426 #: ../src/guestfs-actions.pod:927 ../fish/guestfish-actions.pod:630
8427 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8428 msgstr ""
8429
8430 # type: =item
8431 #. type: =item
8432 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:632
8433 msgid "C<sha512>"
8434 msgstr ""
8435
8436 # type: textblock
8437 #. type: textblock
8438 #: ../src/guestfs-actions.pod:931 ../fish/guestfish-actions.pod:634
8439 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8440 msgstr ""
8441
8442 # type: textblock
8443 #. type: textblock
8444 #: ../src/guestfs-actions.pod:935 ../fish/guestfish-actions.pod:638
8445 msgid "The checksum is returned as a printable string."
8446 msgstr ""
8447
8448 # type: textblock
8449 #. type: textblock
8450 #: ../src/guestfs-actions.pod:937
8451 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8452 msgstr ""
8453
8454 # type: textblock
8455 #. type: textblock
8456 #: ../src/guestfs-actions.pod:939
8457 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8458 msgstr ""
8459
8460 # type: textblock
8461 #. type: textblock
8462 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:1252
8463 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:3309
8464 #: ../src/guestfs-actions.pod:3338 ../src/guestfs-actions.pod:3399
8465 #: ../src/guestfs-actions.pod:3426 ../src/guestfs-actions.pod:6832
8466 msgid "(Added in 1.0.2)"
8467 msgstr ""
8468
8469 # type: =head2
8470 #. type: =head2
8471 #: ../src/guestfs-actions.pod:946
8472 msgid "guestfs_checksum_device"
8473 msgstr ""
8474
8475 # type: verbatim
8476 #. type: verbatim
8477 #: ../src/guestfs-actions.pod:948
8478 #, no-wrap
8479 msgid ""
8480 " char *\n"
8481 " guestfs_checksum_device (guestfs_h *g,\n"
8482 "                          const char *csumtype,\n"
8483 "                          const char *device);\n"
8484 "\n"
8485 msgstr ""
8486
8487 # type: textblock
8488 #. type: textblock
8489 #: ../src/guestfs-actions.pod:953
8490 msgid ""
8491 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8492 "device named C<device>.  For the types of checksums supported see the "
8493 "C<guestfs_checksum> command."
8494 msgstr ""
8495
8496 # type: textblock
8497 #. type: textblock
8498 #: ../src/guestfs-actions.pod:960 ../src/guestfs-actions.pod:4891
8499 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4987
8500 #: ../src/guestfs-actions.pod:5005 ../src/guestfs-actions.pod:5181
8501 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6755
8502 #: ../src/guestfs-actions.pod:7161
8503 msgid "(Added in 1.3.2)"
8504 msgstr ""
8505
8506 # type: =head2
8507 #. type: =head2
8508 #: ../src/guestfs-actions.pod:962
8509 msgid "guestfs_checksums_out"
8510 msgstr ""
8511
8512 # type: verbatim
8513 #. type: verbatim
8514 #: ../src/guestfs-actions.pod:964
8515 #, no-wrap
8516 msgid ""
8517 " int\n"
8518 " guestfs_checksums_out (guestfs_h *g,\n"
8519 "                        const char *csumtype,\n"
8520 "                        const char *directory,\n"
8521 "                        const char *sumsfile);\n"
8522 "\n"
8523 msgstr ""
8524
8525 # type: textblock
8526 #. type: textblock
8527 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:656
8528 msgid ""
8529 "This command computes the checksums of all regular files in C<directory> and "
8530 "then emits a list of those checksums to the local output file C<sumsfile>."
8531 msgstr ""
8532
8533 # type: textblock
8534 #. type: textblock
8535 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:660
8536 msgid ""
8537 "This can be used for verifying the integrity of a virtual machine.  However "
8538 "to be properly secure you should pay attention to the output of the checksum "
8539 "command (it uses the ones from GNU coreutils).  In particular when the "
8540 "filename is not printable, coreutils uses a special backslash syntax.  For "
8541 "more information, see the GNU coreutils info file."
8542 msgstr ""
8543
8544 # type: textblock
8545 #. type: textblock
8546 #: ../src/guestfs-actions.pod:984
8547 msgid "(Added in 1.3.7)"
8548 msgstr ""
8549
8550 # type: =head2
8551 #. type: =head2
8552 #: ../src/guestfs-actions.pod:986
8553 msgid "guestfs_chmod"
8554 msgstr ""
8555
8556 # type: verbatim
8557 #. type: verbatim
8558 #: ../src/guestfs-actions.pod:988
8559 #, no-wrap
8560 msgid ""
8561 " int\n"
8562 " guestfs_chmod (guestfs_h *g,\n"
8563 "                int mode,\n"
8564 "                const char *path);\n"
8565 "\n"
8566 msgstr ""
8567
8568 # type: textblock
8569 #. type: textblock
8570 #: ../src/guestfs-actions.pod:993 ../fish/guestfish-actions.pod:674
8571 msgid ""
8572 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8573 "supported."
8574 msgstr ""
8575
8576 # type: textblock
8577 #. type: textblock
8578 #: ../src/guestfs-actions.pod:996 ../fish/guestfish-actions.pod:677
8579 msgid ""
8580 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8581 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8582 "C<700>."
8583 msgstr ""
8584
8585 # type: textblock
8586 #. type: textblock
8587 #: ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:4393
8588 #: ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4609
8589 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:681
8590 #: ../fish/guestfish-actions.pod:2988 ../fish/guestfish-actions.pod:3117
8591 #: ../fish/guestfish-actions.pod:3127 ../fish/guestfish-actions.pod:3137
8592 msgid "The mode actually set is affected by the umask."
8593 msgstr ""
8594
8595 # type: =head2
8596 #. type: =head2
8597 #: ../src/guestfs-actions.pod:1006
8598 msgid "guestfs_chown"
8599 msgstr ""
8600
8601 # type: verbatim
8602 #. type: verbatim
8603 #: ../src/guestfs-actions.pod:1008
8604 #, no-wrap
8605 msgid ""
8606 " int\n"
8607 " guestfs_chown (guestfs_h *g,\n"
8608 "                int owner,\n"
8609 "                int group,\n"
8610 "                const char *path);\n"
8611 "\n"
8612 msgstr ""
8613
8614 # type: textblock
8615 #. type: textblock
8616 #: ../src/guestfs-actions.pod:1014 ../fish/guestfish-actions.pod:687
8617 msgid "Change the file owner to C<owner> and group to C<group>."
8618 msgstr ""
8619
8620 # type: textblock
8621 #. type: textblock
8622 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:3501
8623 #: ../fish/guestfish-actions.pod:689 ../fish/guestfish-actions.pod:2446
8624 msgid ""
8625 "Only numeric uid and gid are supported.  If you want to use names, you will "
8626 "need to locate and parse the password file yourself (Augeas support makes "
8627 "this relatively easy)."
8628 msgstr ""
8629
8630 # type: =head2
8631 #. type: =head2
8632 #: ../src/guestfs-actions.pod:1024
8633 msgid "guestfs_command"
8634 msgstr ""
8635
8636 # type: verbatim
8637 #. type: verbatim
8638 #: ../src/guestfs-actions.pod:1026
8639 #, no-wrap
8640 msgid ""
8641 " char *\n"
8642 " guestfs_command (guestfs_h *g,\n"
8643 "                  char *const *arguments);\n"
8644 "\n"
8645 msgstr ""
8646
8647 # type: textblock
8648 #. type: textblock
8649 #: ../src/guestfs-actions.pod:1030 ../fish/guestfish-actions.pod:697
8650 msgid ""
8651 "This call runs a command from the guest filesystem.  The filesystem must be "
8652 "mounted, and must contain a compatible operating system (ie. something "
8653 "Linux, with the same or compatible processor architecture)."
8654 msgstr ""
8655
8656 # type: textblock
8657 #. type: textblock
8658 #: ../src/guestfs-actions.pod:1035
8659 msgid ""
8660 "The single parameter is an argv-style list of arguments.  The first element "
8661 "is the name of the program to run.  Subsequent elements are parameters.  The "
8662 "list must be non-empty (ie. must contain a program name).  Note that the "
8663 "command runs directly, and is I<not> invoked via the shell (see "
8664 "C<guestfs_sh>)."
8665 msgstr ""
8666
8667 # type: textblock
8668 #. type: textblock
8669 #: ../src/guestfs-actions.pod:1042 ../fish/guestfish-actions.pod:709
8670 msgid "The return value is anything printed to I<stdout> by the command."
8671 msgstr ""
8672
8673 # type: textblock
8674 #. type: textblock
8675 #: ../src/guestfs-actions.pod:1045 ../fish/guestfish-actions.pod:712
8676 msgid ""
8677 "If the command returns a non-zero exit status, then this function returns an "
8678 "error message.  The error message string is the content of I<stderr> from "
8679 "the command."
8680 msgstr ""
8681
8682 # type: textblock
8683 #. type: textblock
8684 #: ../src/guestfs-actions.pod:1049 ../fish/guestfish-actions.pod:716
8685 msgid ""
8686 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8687 "bin>.  If you require a program from another location, you should provide "
8688 "the full path in the first parameter."
8689 msgstr ""
8690
8691 # type: textblock
8692 #. type: textblock
8693 #: ../src/guestfs-actions.pod:1054 ../fish/guestfish-actions.pod:721
8694 msgid ""
8695 "Shared libraries and data files required by the program must be available on "
8696 "filesystems which are mounted in the correct places.  It is the caller's "
8697 "responsibility to ensure all filesystems that are needed are mounted at the "
8698 "right locations."
8699 msgstr ""
8700
8701 # type: textblock
8702 #. type: textblock
8703 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1086
8704 #: ../src/guestfs-actions.pod:1554
8705 msgid "(Added in 0.9.1)"
8706 msgstr ""
8707
8708 # type: =head2
8709 #. type: =head2
8710 #: ../src/guestfs-actions.pod:1068
8711 msgid "guestfs_command_lines"
8712 msgstr ""
8713
8714 # type: verbatim
8715 #. type: verbatim
8716 #: ../src/guestfs-actions.pod:1070
8717 #, no-wrap
8718 msgid ""
8719 " char **\n"
8720 " guestfs_command_lines (guestfs_h *g,\n"
8721 "                        char *const *arguments);\n"
8722 "\n"
8723 msgstr ""
8724
8725 # type: textblock
8726 #. type: textblock
8727 #: ../src/guestfs-actions.pod:1074
8728 msgid ""
8729 "This is the same as C<guestfs_command>, but splits the result into a list of "
8730 "lines."
8731 msgstr ""
8732
8733 # type: textblock
8734 #. type: textblock
8735 #: ../src/guestfs-actions.pod:1077
8736 msgid "See also: C<guestfs_sh_lines>"
8737 msgstr ""
8738
8739 # type: =head2
8740 #. type: =head2
8741 #: ../src/guestfs-actions.pod:1088
8742 msgid "guestfs_config"
8743 msgstr ""
8744
8745 # type: verbatim
8746 #. type: verbatim
8747 #: ../src/guestfs-actions.pod:1090
8748 #, no-wrap
8749 msgid ""
8750 " int\n"
8751 " guestfs_config (guestfs_h *g,\n"
8752 "                 const char *qemuparam,\n"
8753 "                 const char *qemuvalue);\n"
8754 "\n"
8755 msgstr ""
8756
8757 #. type: textblock
8758 #: ../src/guestfs-actions.pod:1095 ../fish/guestfish-actions.pod:746
8759 msgid ""
8760 "This can be used to add arbitrary qemu command line parameters of the form "
8761 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8762 "setting some parameters which would interfere with parameters that we use."
8763 msgstr ""
8764
8765 # type: textblock
8766 #. type: textblock
8767 #: ../src/guestfs-actions.pod:1100 ../fish/guestfish-actions.pod:751
8768 msgid "The first character of C<param> string must be a C<-> (dash)."
8769 msgstr ""
8770
8771 # type: textblock
8772 #. type: textblock
8773 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:753
8774 msgid "C<value> can be NULL."
8775 msgstr ""
8776
8777 # type: =head2
8778 #. type: =head2
8779 #: ../src/guestfs-actions.pod:1108
8780 msgid "guestfs_copy_size"
8781 msgstr ""
8782
8783 # type: verbatim
8784 #. type: verbatim
8785 #: ../src/guestfs-actions.pod:1110
8786 #, no-wrap
8787 msgid ""
8788 " int\n"
8789 " guestfs_copy_size (guestfs_h *g,\n"
8790 "                    const char *src,\n"
8791 "                    const char *dest,\n"
8792 "                    int64_t size);\n"
8793 "\n"
8794 msgstr ""
8795
8796 # type: textblock
8797 #. type: textblock
8798 #: ../src/guestfs-actions.pod:1116 ../fish/guestfish-actions.pod:759
8799 msgid ""
8800 "This command copies exactly C<size> bytes from one source device or file "
8801 "C<src> to another destination device or file C<dest>."
8802 msgstr ""
8803
8804 # type: textblock
8805 #. type: textblock
8806 #: ../src/guestfs-actions.pod:1119 ../fish/guestfish-actions.pod:762
8807 msgid ""
8808 "Note this will fail if the source is too short or if the destination is not "
8809 "large enough."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1247
8814 #: ../src/guestfs-actions.pod:1278 ../src/guestfs-actions.pod:1323
8815 #: ../src/guestfs-actions.pod:1703 ../src/guestfs-actions.pod:1725
8816 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:6827
8817 #: ../src/guestfs-actions.pod:6861 ../src/guestfs-actions.pod:7340
8818 #: ../src/guestfs-actions.pod:7359
8819 msgid ""
8820 "This long-running command can generate progress notification messages so "
8821 "that the caller can display a progress bar or indicator.  To receive these "
8822 "messages, the caller must register a progress event callback.  See L<guestfs"
8823 "(3)/GUESTFS_EVENT_PROGRESS>."
8824 msgstr ""
8825
8826 # type: textblock
8827 #. type: textblock
8828 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:4169
8829 #: ../src/guestfs-actions.pod:5387 ../src/guestfs-actions.pod:7068
8830 #: ../src/guestfs-actions.pod:7088 ../src/guestfs-actions.pod:7174
8831 msgid "(Added in 1.0.87)"
8832 msgstr ""
8833
8834 # type: =head2
8835 #. type: =head2
8836 #: ../src/guestfs-actions.pod:1131
8837 msgid "guestfs_cp"
8838 msgstr ""
8839
8840 # type: verbatim
8841 #. type: verbatim
8842 #: ../src/guestfs-actions.pod:1133
8843 #, no-wrap
8844 msgid ""
8845 " int\n"
8846 " guestfs_cp (guestfs_h *g,\n"
8847 "             const char *src,\n"
8848 "             const char *dest);\n"
8849 "\n"
8850 msgstr ""
8851
8852 # type: textblock
8853 #. type: textblock
8854 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:769
8855 msgid ""
8856 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8857 "destination filename or destination directory."
8858 msgstr ""
8859
8860 # type: textblock
8861 #. type: textblock
8862 #: ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1157
8863 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1303
8864 #: ../src/guestfs-actions.pod:1417 ../src/guestfs-actions.pod:4854
8865 #: ../src/guestfs-actions.pod:5231
8866 msgid "(Added in 1.0.18)"
8867 msgstr ""
8868
8869 # type: =head2
8870 #. type: =head2
8871 #: ../src/guestfs-actions.pod:1145
8872 msgid "guestfs_cp_a"
8873 msgstr ""
8874
8875 # type: verbatim
8876 #. type: verbatim
8877 #: ../src/guestfs-actions.pod:1147
8878 #, no-wrap
8879 msgid ""
8880 " int\n"
8881 " guestfs_cp_a (guestfs_h *g,\n"
8882 "               const char *src,\n"
8883 "               const char *dest);\n"
8884 "\n"
8885 msgstr ""
8886
8887 # type: textblock
8888 #. type: textblock
8889 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:776
8890 msgid ""
8891 "This copies a file or directory from C<src> to C<dest> recursively using the "
8892 "C<cp -a> command."
8893 msgstr ""
8894
8895 # type: =head2
8896 #. type: =head2
8897 #: ../src/guestfs-actions.pod:1159
8898 msgid "guestfs_dd"
8899 msgstr ""
8900
8901 # type: verbatim
8902 #. type: verbatim
8903 #: ../src/guestfs-actions.pod:1161
8904 #, no-wrap
8905 msgid ""
8906 " int\n"
8907 " guestfs_dd (guestfs_h *g,\n"
8908 "             const char *src,\n"
8909 "             const char *dest);\n"
8910 "\n"
8911 msgstr ""
8912
8913 # type: textblock
8914 #. type: textblock
8915 #: ../src/guestfs-actions.pod:1166 ../fish/guestfish-actions.pod:783
8916 msgid ""
8917 "This command copies from one source device or file C<src> to another "
8918 "destination device or file C<dest>.  Normally you would use this to copy to "
8919 "or from a device or partition, for example to duplicate a filesystem."
8920 msgstr ""
8921
8922 # type: textblock
8923 #. type: textblock
8924 #: ../src/guestfs-actions.pod:1171
8925 msgid ""
8926 "If the destination is a device, it must be as large or larger than the "
8927 "source file or device, otherwise the copy will fail.  This command cannot do "
8928 "partial copies (see C<guestfs_copy_size>)."
8929 msgstr ""
8930
8931 # type: =head2
8932 #. type: =head2
8933 #: ../src/guestfs-actions.pod:1179
8934 msgid "guestfs_df"
8935 msgstr ""
8936
8937 # type: verbatim
8938 #. type: verbatim
8939 #: ../src/guestfs-actions.pod:1181
8940 #, no-wrap
8941 msgid ""
8942 " char *\n"
8943 " guestfs_df (guestfs_h *g);\n"
8944 "\n"
8945 msgstr ""
8946
8947 # type: textblock
8948 #. type: textblock
8949 #: ../src/guestfs-actions.pod:1184 ../fish/guestfish-actions.pod:796
8950 msgid "This command runs the C<df> command to report disk space used."
8951 msgstr ""
8952
8953 # type: textblock
8954 #. type: textblock
8955 #: ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1203
8956 msgid ""
8957 "This command is mostly useful for interactive sessions.  It is I<not> "
8958 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8959 "from programs."
8960 msgstr ""
8961
8962 # type: textblock
8963 #. type: textblock
8964 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:1210
8965 #: ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:2292
8966 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2384
8967 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4754
8968 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6589
8969 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7220
8970 #: ../src/guestfs-actions.pod:7233
8971 msgid "(Added in 1.0.54)"
8972 msgstr ""
8973
8974 # type: =head2
8975 #. type: =head2
8976 #: ../src/guestfs-actions.pod:1195
8977 msgid "guestfs_df_h"
8978 msgstr ""
8979
8980 # type: verbatim
8981 #. type: verbatim
8982 #: ../src/guestfs-actions.pod:1197
8983 #, no-wrap
8984 msgid ""
8985 " char *\n"
8986 " guestfs_df_h (guestfs_h *g);\n"
8987 "\n"
8988 msgstr ""
8989
8990 # type: textblock
8991 #. type: textblock
8992 #: ../src/guestfs-actions.pod:1200 ../fish/guestfish-actions.pod:806
8993 msgid ""
8994 "This command runs the C<df -h> command to report disk space used in human-"
8995 "readable format."
8996 msgstr ""
8997
8998 # type: =head2
8999 #. type: =head2
9000 #: ../src/guestfs-actions.pod:1212
9001 msgid "guestfs_dmesg"
9002 msgstr ""
9003
9004 # type: verbatim
9005 #. type: verbatim
9006 #: ../src/guestfs-actions.pod:1214
9007 #, no-wrap
9008 msgid ""
9009 " char *\n"
9010 " guestfs_dmesg (guestfs_h *g);\n"
9011 "\n"
9012 msgstr ""
9013
9014 # type: textblock
9015 #. type: textblock
9016 #: ../src/guestfs-actions.pod:1217 ../fish/guestfish-actions.pod:817
9017 msgid ""
9018 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
9019 "This is sometimes useful for extended debugging of problems."
9020 msgstr ""
9021
9022 # type: textblock
9023 #. type: textblock
9024 #: ../src/guestfs-actions.pod:1221
9025 msgid ""
9026 "Another way to get the same information is to enable verbose messages with "
9027 "C<guestfs_set_verbose> or by setting the environment variable "
9028 "C<LIBGUESTFS_DEBUG=1> before running the program."
9029 msgstr ""
9030
9031 # type: =head2
9032 #. type: =head2
9033 #: ../src/guestfs-actions.pod:1231
9034 msgid "guestfs_download"
9035 msgstr ""
9036
9037 # type: verbatim
9038 #. type: verbatim
9039 #: ../src/guestfs-actions.pod:1233
9040 #, no-wrap
9041 msgid ""
9042 " int\n"
9043 " guestfs_download (guestfs_h *g,\n"
9044 "                   const char *remotefilename,\n"
9045 "                   const char *filename);\n"
9046 "\n"
9047 msgstr ""
9048
9049 # type: textblock
9050 #. type: textblock
9051 #: ../src/guestfs-actions.pod:1238 ../src/guestfs-actions.pod:1263
9052 #: ../fish/guestfish-actions.pod:830 ../fish/guestfish-actions.pod:843
9053 msgid ""
9054 "Download file C<remotefilename> and save it as C<filename> on the local "
9055 "machine."
9056 msgstr ""
9057
9058 # type: textblock
9059 #. type: textblock
9060 #: ../src/guestfs-actions.pod:1241 ../src/guestfs-actions.pod:6821
9061 #: ../fish/guestfish-actions.pod:833 ../fish/guestfish-actions.pod:4595
9062 msgid "C<filename> can also be a named pipe."
9063 msgstr ""
9064
9065 # type: textblock
9066 #. type: textblock
9067 #: ../src/guestfs-actions.pod:1243
9068 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
9069 msgstr ""
9070
9071 # type: =head2
9072 #. type: =head2
9073 #: ../src/guestfs-actions.pod:1254
9074 msgid "guestfs_download_offset"
9075 msgstr ""
9076
9077 # type: verbatim
9078 #. type: verbatim
9079 #: ../src/guestfs-actions.pod:1256
9080 #, no-wrap
9081 msgid ""
9082 " int\n"
9083 " guestfs_download_offset (guestfs_h *g,\n"
9084 "                          const char *remotefilename,\n"
9085 "                          const char *filename,\n"
9086 "                          int64_t offset,\n"
9087 "                          int64_t size);\n"
9088 "\n"
9089 msgstr ""
9090
9091 # type: textblock
9092 #. type: textblock
9093 #: ../src/guestfs-actions.pod:1266 ../fish/guestfish-actions.pod:846
9094 msgid ""
9095 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9096 "region must be within the file or device)."
9097 msgstr ""
9098
9099 # type: textblock
9100 #. type: textblock
9101 #: ../src/guestfs-actions.pod:1269
9102 msgid ""
9103 "Note that there is no limit on the amount of data that can be downloaded "
9104 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
9105 "full amount unless an error occurs."
9106 msgstr ""
9107
9108 # type: textblock
9109 #. type: textblock
9110 #: ../src/guestfs-actions.pod:1274
9111 msgid "See also C<guestfs_download>, C<guestfs_pread>."
9112 msgstr ""
9113
9114 # type: textblock
9115 #. type: textblock
9116 #: ../src/guestfs-actions.pod:1283 ../src/guestfs-actions.pod:6866
9117 msgid "(Added in 1.5.17)"
9118 msgstr ""
9119
9120 # type: =head2
9121 #. type: =head2
9122 #: ../src/guestfs-actions.pod:1285
9123 msgid "guestfs_drop_caches"
9124 msgstr ""
9125
9126 # type: verbatim
9127 #. type: verbatim
9128 #: ../src/guestfs-actions.pod:1287
9129 #, no-wrap
9130 msgid ""
9131 " int\n"
9132 " guestfs_drop_caches (guestfs_h *g,\n"
9133 "                      int whattodrop);\n"
9134 "\n"
9135 msgstr ""
9136
9137 # type: textblock
9138 #. type: textblock
9139 #: ../src/guestfs-actions.pod:1291 ../fish/guestfish-actions.pod:862
9140 msgid ""
9141 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9142 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
9143 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9144 msgstr ""
9145
9146 # type: textblock
9147 #. type: textblock
9148 #: ../src/guestfs-actions.pod:1296 ../fish/guestfish-actions.pod:867
9149 msgid "Setting C<whattodrop> to 3 should drop everything."
9150 msgstr ""
9151
9152 # type: textblock
9153 #. type: textblock
9154 #: ../src/guestfs-actions.pod:1298 ../fish/guestfish-actions.pod:869
9155 msgid ""
9156 "This automatically calls L<sync(2)> before the operation, so that the "
9157 "maximum guest memory is freed."
9158 msgstr ""
9159
9160 # type: =head2
9161 #. type: =head2
9162 #: ../src/guestfs-actions.pod:1305
9163 msgid "guestfs_du"
9164 msgstr ""
9165
9166 # type: verbatim
9167 #. type: verbatim
9168 #: ../src/guestfs-actions.pod:1307
9169 #, no-wrap
9170 msgid ""
9171 " int64_t\n"
9172 " guestfs_du (guestfs_h *g,\n"
9173 "             const char *path);\n"
9174 "\n"
9175 msgstr ""
9176
9177 # type: textblock
9178 #. type: textblock
9179 #: ../src/guestfs-actions.pod:1311 ../fish/guestfish-actions.pod:876
9180 msgid ""
9181 "This command runs the C<du -s> command to estimate file space usage for "
9182 "C<path>."
9183 msgstr ""
9184
9185 # type: textblock
9186 #. type: textblock
9187 #: ../src/guestfs-actions.pod:1314 ../fish/guestfish-actions.pod:879
9188 msgid ""
9189 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9190 "estimate includes the contents of the directory and all subdirectories "
9191 "(recursively)."
9192 msgstr ""
9193
9194 # type: textblock
9195 #. type: textblock
9196 #: ../src/guestfs-actions.pod:1318 ../fish/guestfish-actions.pod:883
9197 msgid ""
9198 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9199 msgstr ""
9200
9201 # type: =head2
9202 #. type: =head2
9203 #: ../src/guestfs-actions.pod:1330
9204 msgid "guestfs_e2fsck_f"
9205 msgstr ""
9206
9207 # type: verbatim
9208 #. type: verbatim
9209 #: ../src/guestfs-actions.pod:1332
9210 #, no-wrap
9211 msgid ""
9212 " int\n"
9213 " guestfs_e2fsck_f (guestfs_h *g,\n"
9214 "                   const char *device);\n"
9215 "\n"
9216 msgstr ""
9217
9218 #. type: textblock
9219 #: ../src/guestfs-actions.pod:1336 ../fish/guestfish-actions.pod:890
9220 msgid ""
9221 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9222 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9223 "clean (I<-f>)."
9224 msgstr ""
9225
9226 # type: textblock
9227 #. type: textblock
9228 #: ../src/guestfs-actions.pod:1340
9229 msgid ""
9230 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9231 "Normally you should use C<guestfs_fsck>."
9232 msgstr ""
9233
9234 # type: textblock
9235 #. type: textblock
9236 #: ../src/guestfs-actions.pod:1345
9237 msgid "(Added in 1.0.29)"
9238 msgstr ""
9239
9240 # type: =head2
9241 #. type: =head2
9242 #: ../src/guestfs-actions.pod:1347
9243 msgid "guestfs_echo_daemon"
9244 msgstr ""
9245
9246 # type: verbatim
9247 #. type: verbatim
9248 #: ../src/guestfs-actions.pod:1349
9249 #, no-wrap
9250 msgid ""
9251 " char *\n"
9252 " guestfs_echo_daemon (guestfs_h *g,\n"
9253 "                      char *const *words);\n"
9254 "\n"
9255 msgstr ""
9256
9257 # type: textblock
9258 #. type: textblock
9259 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:901
9260 msgid ""
9261 "This command concatenates the list of C<words> passed with single spaces "
9262 "between them and returns the resulting string."
9263 msgstr ""
9264
9265 # type: textblock
9266 #. type: textblock
9267 #: ../src/guestfs-actions.pod:1356 ../fish/guestfish-actions.pod:904
9268 msgid "You can use this command to test the connection through to the daemon."
9269 msgstr ""
9270
9271 # type: textblock
9272 #. type: textblock
9273 #: ../src/guestfs-actions.pod:1358
9274 msgid "See also C<guestfs_ping_daemon>."
9275 msgstr ""
9276
9277 # type: textblock
9278 #. type: textblock
9279 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:2100
9280 #: ../src/guestfs-actions.pod:6065
9281 msgid "(Added in 1.0.69)"
9282 msgstr ""
9283
9284 # type: =head2
9285 #. type: =head2
9286 #: ../src/guestfs-actions.pod:1365
9287 msgid "guestfs_egrep"
9288 msgstr ""
9289
9290 # type: verbatim
9291 #. type: verbatim
9292 #: ../src/guestfs-actions.pod:1367
9293 #, no-wrap
9294 msgid ""
9295 " char **\n"
9296 " guestfs_egrep (guestfs_h *g,\n"
9297 "                const char *regex,\n"
9298 "                const char *path);\n"
9299 "\n"
9300 msgstr ""
9301
9302 # type: textblock
9303 #. type: textblock
9304 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:912
9305 msgid ""
9306 "This calls the external C<egrep> program and returns the matching lines."
9307 msgstr ""
9308
9309 # type: textblock
9310 #. type: textblock
9311 #: ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401
9312 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1504
9313 #: ../src/guestfs-actions.pod:1523 ../src/guestfs-actions.pod:2230
9314 #: ../src/guestfs-actions.pod:2249 ../src/guestfs-actions.pod:2405
9315 #: ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2433
9316 #: ../src/guestfs-actions.pod:2479 ../src/guestfs-actions.pod:2501
9317 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:3662
9318 #: ../src/guestfs-actions.pod:3676 ../src/guestfs-actions.pod:3689
9319 #: ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:4689
9320 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:5614
9321 #: ../src/guestfs-actions.pod:6433 ../src/guestfs-actions.pod:6445
9322 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6471
9323 #: ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6506
9324 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6532
9325 #: ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7322
9326 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7426
9327 #: ../src/guestfs-actions.pod:7472 ../src/guestfs-actions.pod:7491
9328 msgid "(Added in 1.0.66)"
9329 msgstr ""
9330
9331 # type: =head2
9332 #. type: =head2
9333 #: ../src/guestfs-actions.pod:1384
9334 msgid "guestfs_egrepi"
9335 msgstr ""
9336
9337 # type: verbatim
9338 #. type: verbatim
9339 #: ../src/guestfs-actions.pod:1386
9340 #, no-wrap
9341 msgid ""
9342 " char **\n"
9343 " guestfs_egrepi (guestfs_h *g,\n"
9344 "                 const char *regex,\n"
9345 "                 const char *path);\n"
9346 "\n"
9347 msgstr ""
9348
9349 # type: textblock
9350 #. type: textblock
9351 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:922
9352 msgid ""
9353 "This calls the external C<egrep -i> program and returns the matching lines."
9354 msgstr ""
9355
9356 # type: =head2
9357 #. type: =head2
9358 #: ../src/guestfs-actions.pod:1403
9359 msgid "guestfs_equal"
9360 msgstr ""
9361
9362 # type: verbatim
9363 #. type: verbatim
9364 #: ../src/guestfs-actions.pod:1405
9365 #, no-wrap
9366 msgid ""
9367 " int\n"
9368 " guestfs_equal (guestfs_h *g,\n"
9369 "                const char *file1,\n"
9370 "                const char *file2);\n"
9371 "\n"
9372 msgstr ""
9373
9374 # type: textblock
9375 #. type: textblock
9376 #: ../src/guestfs-actions.pod:1410 ../fish/guestfish-actions.pod:932
9377 msgid ""
9378 "This compares the two files C<file1> and C<file2> and returns true if their "
9379 "content is exactly equal, or false otherwise."
9380 msgstr ""
9381
9382 # type: textblock
9383 #. type: textblock
9384 #: ../src/guestfs-actions.pod:1413 ../fish/guestfish-actions.pod:935
9385 msgid "The external L<cmp(1)> program is used for the comparison."
9386 msgstr ""
9387
9388 # type: =head2
9389 #. type: =head2
9390 #: ../src/guestfs-actions.pod:1419
9391 msgid "guestfs_exists"
9392 msgstr ""
9393
9394 # type: verbatim
9395 #. type: verbatim
9396 #: ../src/guestfs-actions.pod:1421
9397 #, no-wrap
9398 msgid ""
9399 " int\n"
9400 " guestfs_exists (guestfs_h *g,\n"
9401 "                 const char *path);\n"
9402 "\n"
9403 msgstr ""
9404
9405 # type: textblock
9406 #. type: textblock
9407 #: ../src/guestfs-actions.pod:1425 ../fish/guestfish-actions.pod:941
9408 msgid ""
9409 "This returns C<true> if and only if there is a file, directory (or anything) "
9410 "with the given C<path> name."
9411 msgstr ""
9412
9413 # type: textblock
9414 #. type: textblock
9415 #: ../src/guestfs-actions.pod:1428
9416 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9417 msgstr ""
9418
9419 # type: =head2
9420 #. type: =head2
9421 #: ../src/guestfs-actions.pod:1434
9422 msgid "guestfs_fallocate"
9423 msgstr ""
9424
9425 # type: verbatim
9426 #. type: verbatim
9427 #: ../src/guestfs-actions.pod:1436
9428 #, no-wrap
9429 msgid ""
9430 " int\n"
9431 " guestfs_fallocate (guestfs_h *g,\n"
9432 "                    const char *path,\n"
9433 "                    int len);\n"
9434 "\n"
9435 msgstr ""
9436
9437 # type: textblock
9438 #. type: textblock
9439 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1467
9440 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:969
9441 msgid ""
9442 "This command preallocates a file (containing zero bytes) named C<path> of "
9443 "size C<len> bytes.  If the file exists already, it is overwritten."
9444 msgstr ""
9445
9446 # type: textblock
9447 #. type: textblock
9448 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:954
9449 msgid ""
9450 "Do not confuse this with the guestfish-specific C<alloc> command which "
9451 "allocates a file in the host and attaches it as a device."
9452 msgstr ""
9453
9454 # type: textblock
9455 #. type: textblock
9456 #: ../src/guestfs-actions.pod:1451 ../fish/guestfish-actions.pod:958
9457 msgid ""
9458 "This function is deprecated.  In new code, use the C<fallocate64> call "
9459 "instead."
9460 msgstr ""
9461
9462 # type: =head2
9463 #. type: =head2
9464 #: ../src/guestfs-actions.pod:1460
9465 msgid "guestfs_fallocate64"
9466 msgstr ""
9467
9468 # type: verbatim
9469 #. type: verbatim
9470 #: ../src/guestfs-actions.pod:1462
9471 #, no-wrap
9472 msgid ""
9473 " int\n"
9474 " guestfs_fallocate64 (guestfs_h *g,\n"
9475 "                      const char *path,\n"
9476 "                      int64_t len);\n"
9477 "\n"
9478 msgstr ""
9479
9480 # type: textblock
9481 #. type: textblock
9482 #: ../src/guestfs-actions.pod:1471
9483 msgid ""
9484 "Note that this call allocates disk blocks for the file.  To create a sparse "
9485 "file use C<guestfs_truncate_size> instead."
9486 msgstr ""
9487
9488 # type: textblock
9489 #. type: textblock
9490 #: ../src/guestfs-actions.pod:1474
9491 msgid ""
9492 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9493 "oversight it only allowed 30 bit lengths to be specified, effectively "
9494 "limiting the maximum size of files created through that call to 1GB."
9495 msgstr ""
9496
9497 # type: textblock
9498 #. type: textblock
9499 #: ../src/guestfs-actions.pod:1479 ../fish/guestfish-actions.pod:981
9500 msgid ""
9501 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9502 "commands which create a file in the host and attach it as a device."
9503 msgstr ""
9504
9505 # type: textblock
9506 #. type: textblock
9507 #: ../src/guestfs-actions.pod:1485
9508 msgid "(Added in 1.3.17)"
9509 msgstr ""
9510
9511 # type: =head2
9512 #. type: =head2
9513 #: ../src/guestfs-actions.pod:1487
9514 msgid "guestfs_fgrep"
9515 msgstr ""
9516
9517 # type: verbatim
9518 #. type: verbatim
9519 #: ../src/guestfs-actions.pod:1489
9520 #, no-wrap
9521 msgid ""
9522 " char **\n"
9523 " guestfs_fgrep (guestfs_h *g,\n"
9524 "                const char *pattern,\n"
9525 "                const char *path);\n"
9526 "\n"
9527 msgstr ""
9528
9529 # type: textblock
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:989
9532 msgid ""
9533 "This calls the external C<fgrep> program and returns the matching lines."
9534 msgstr ""
9535
9536 # type: =head2
9537 #. type: =head2
9538 #: ../src/guestfs-actions.pod:1506
9539 msgid "guestfs_fgrepi"
9540 msgstr ""
9541
9542 # type: verbatim
9543 #. type: verbatim
9544 #: ../src/guestfs-actions.pod:1508
9545 #, no-wrap
9546 msgid ""
9547 " char **\n"
9548 " guestfs_fgrepi (guestfs_h *g,\n"
9549 "                 const char *pattern,\n"
9550 "                 const char *path);\n"
9551 "\n"
9552 msgstr ""
9553
9554 # type: textblock
9555 #. type: textblock
9556 #: ../src/guestfs-actions.pod:1513 ../fish/guestfish-actions.pod:999
9557 msgid ""
9558 "This calls the external C<fgrep -i> program and returns the matching lines."
9559 msgstr ""
9560
9561 # type: =head2
9562 #. type: =head2
9563 #: ../src/guestfs-actions.pod:1525
9564 msgid "guestfs_file"
9565 msgstr ""
9566
9567 # type: verbatim
9568 #. type: verbatim
9569 #: ../src/guestfs-actions.pod:1527
9570 #, no-wrap
9571 msgid ""
9572 " char *\n"
9573 " guestfs_file (guestfs_h *g,\n"
9574 "               const char *path);\n"
9575 "\n"
9576 msgstr ""
9577
9578 # type: textblock
9579 #. type: textblock
9580 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1009
9581 msgid ""
9582 "This call uses the standard L<file(1)> command to determine the type or "
9583 "contents of the file."
9584 msgstr ""
9585
9586 # type: textblock
9587 #. type: textblock
9588 #: ../src/guestfs-actions.pod:1534 ../fish/guestfish-actions.pod:1012
9589 msgid ""
9590 "This call will also transparently look inside various types of compressed "
9591 "file."
9592 msgstr ""
9593
9594 #. type: textblock
9595 #: ../src/guestfs-actions.pod:1537 ../fish/guestfish-actions.pod:1015
9596 msgid ""
9597 "The exact command which runs is C<file -zb path>.  Note in particular that "
9598 "the filename is not prepended to the output (the I<-b> option)."
9599 msgstr ""
9600
9601 # type: textblock
9602 #. type: textblock
9603 #: ../src/guestfs-actions.pod:1541
9604 msgid ""
9605 "This command can also be used on C</dev/> devices (and partitions, LV "
9606 "names).  You can for example use this to determine if a device contains a "
9607 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
9608 msgstr ""
9609
9610 # type: textblock
9611 #. type: textblock
9612 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
9613 msgid ""
9614 "If the C<path> does not begin with C</dev/> then this command only works for "
9615 "the content of regular files.  For other file types (directory, symbolic "
9616 "link etc) it will just return the string C<directory> etc."
9617 msgstr ""
9618
9619 # type: =head2
9620 #. type: =head2
9621 #: ../src/guestfs-actions.pod:1556
9622 msgid "guestfs_file_architecture"
9623 msgstr ""
9624
9625 # type: verbatim
9626 #. type: verbatim
9627 #: ../src/guestfs-actions.pod:1558
9628 #, no-wrap
9629 msgid ""
9630 " char *\n"
9631 " guestfs_file_architecture (guestfs_h *g,\n"
9632 "                            const char *filename);\n"
9633 "\n"
9634 msgstr ""
9635
9636 # type: textblock
9637 #. type: textblock
9638 #: ../src/guestfs-actions.pod:1562 ../fish/guestfish-actions.pod:1033
9639 msgid ""
9640 "This detects the architecture of the binary C<filename>, and returns it if "
9641 "known."
9642 msgstr ""
9643
9644 # type: textblock
9645 #. type: textblock
9646 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1036
9647 msgid "Currently defined architectures are:"
9648 msgstr ""
9649
9650 # type: =item
9651 #. type: =item
9652 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1040
9653 msgid "\"i386\""
9654 msgstr ""
9655
9656 # type: textblock
9657 #. type: textblock
9658 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1042
9659 msgid ""
9660 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9661 "irrespective of the precise processor requirements of the binary."
9662 msgstr ""
9663
9664 # type: =item
9665 #. type: =item
9666 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1045
9667 msgid "\"x86_64\""
9668 msgstr ""
9669
9670 # type: textblock
9671 #. type: textblock
9672 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1047
9673 msgid "64 bit x86-64."
9674 msgstr ""
9675
9676 # type: =item
9677 #. type: =item
9678 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1049
9679 msgid "\"sparc\""
9680 msgstr ""
9681
9682 # type: textblock
9683 #. type: textblock
9684 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1051
9685 msgid "32 bit SPARC."
9686 msgstr ""
9687
9688 # type: =item
9689 #. type: =item
9690 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1053
9691 msgid "\"sparc64\""
9692 msgstr ""
9693
9694 # type: textblock
9695 #. type: textblock
9696 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1055
9697 msgid "64 bit SPARC V9 and above."
9698 msgstr ""
9699
9700 # type: =item
9701 #. type: =item
9702 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1057
9703 msgid "\"ia64\""
9704 msgstr ""
9705
9706 # type: textblock
9707 #. type: textblock
9708 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1059
9709 msgid "Intel Itanium."
9710 msgstr ""
9711
9712 # type: =item
9713 #. type: =item
9714 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1061
9715 msgid "\"ppc\""
9716 msgstr ""
9717
9718 # type: textblock
9719 #. type: textblock
9720 #: ../src/guestfs-actions.pod:1592 ../fish/guestfish-actions.pod:1063
9721 msgid "32 bit Power PC."
9722 msgstr ""
9723
9724 # type: =item
9725 #. type: =item
9726 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1065
9727 msgid "\"ppc64\""
9728 msgstr ""
9729
9730 # type: textblock
9731 #. type: textblock
9732 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1067
9733 msgid "64 bit Power PC."
9734 msgstr ""
9735
9736 # type: textblock
9737 #. type: textblock
9738 #: ../src/guestfs-actions.pod:1600 ../fish/guestfish-actions.pod:1071
9739 msgid "Libguestfs may return other architecture strings in future."
9740 msgstr ""
9741
9742 # type: textblock
9743 #. type: textblock
9744 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1073
9745 msgid "The function works on at least the following types of files:"
9746 msgstr ""
9747
9748 # type: textblock
9749 #. type: textblock
9750 #: ../src/guestfs-actions.pod:1608 ../fish/guestfish-actions.pod:1079
9751 msgid "many types of Un*x and Linux binary"
9752 msgstr ""
9753
9754 # type: textblock
9755 #. type: textblock
9756 #: ../src/guestfs-actions.pod:1612 ../fish/guestfish-actions.pod:1083
9757 msgid "many types of Un*x and Linux shared library"
9758 msgstr ""
9759
9760 # type: textblock
9761 #. type: textblock
9762 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1087
9763 msgid "Windows Win32 and Win64 binaries"
9764 msgstr ""
9765
9766 # type: textblock
9767 #. type: textblock
9768 #: ../src/guestfs-actions.pod:1620 ../fish/guestfish-actions.pod:1091
9769 msgid "Windows Win32 and Win64 DLLs"
9770 msgstr ""
9771
9772 # type: textblock
9773 #. type: textblock
9774 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1093
9775 msgid "Win32 binaries and DLLs return C<i386>."
9776 msgstr ""
9777
9778 # type: textblock
9779 #. type: textblock
9780 #: ../src/guestfs-actions.pod:1624 ../fish/guestfish-actions.pod:1095
9781 msgid "Win64 binaries and DLLs return C<x86_64>."
9782 msgstr ""
9783
9784 # type: textblock
9785 #. type: textblock
9786 #: ../src/guestfs-actions.pod:1628 ../fish/guestfish-actions.pod:1099
9787 msgid "Linux kernel modules"
9788 msgstr ""
9789
9790 # type: textblock
9791 #. type: textblock
9792 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1103
9793 msgid "Linux new-style initrd images"
9794 msgstr ""
9795
9796 # type: textblock
9797 #. type: textblock
9798 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1107
9799 msgid "some non-x86 Linux vmlinuz kernels"
9800 msgstr ""
9801
9802 # type: textblock
9803 #. type: textblock
9804 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1111
9805 msgid "What it can't do currently:"
9806 msgstr ""
9807
9808 # type: textblock
9809 #. type: textblock
9810 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1117
9811 msgid "static libraries (libfoo.a)"
9812 msgstr ""
9813
9814 # type: textblock
9815 #. type: textblock
9816 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1121
9817 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9818 msgstr ""
9819
9820 # type: textblock
9821 #. type: textblock
9822 #: ../src/guestfs-actions.pod:1654 ../fish/guestfish-actions.pod:1125
9823 msgid "x86 Linux vmlinuz kernels"
9824 msgstr ""
9825
9826 # type: textblock
9827 #. type: textblock
9828 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1127
9829 msgid ""
9830 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9831 "compressed code, and are horribly hard to unpack.  If you want to find the "
9832 "architecture of a kernel, use the architecture of the associated initrd or "
9833 "kernel module(s) instead."
9834 msgstr ""
9835
9836 # type: textblock
9837 #. type: textblock
9838 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1829
9839 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:2537
9840 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2700
9841 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2809
9842 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:2936
9843 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3280
9844 #: ../src/guestfs-actions.pod:3412
9845 msgid "(Added in 1.5.3)"
9846 msgstr ""
9847
9848 # type: =head2
9849 #. type: =head2
9850 #: ../src/guestfs-actions.pod:1668
9851 msgid "guestfs_filesize"
9852 msgstr ""
9853
9854 # type: verbatim
9855 #. type: verbatim
9856 #: ../src/guestfs-actions.pod:1670
9857 #, no-wrap
9858 msgid ""
9859 " int64_t\n"
9860 " guestfs_filesize (guestfs_h *g,\n"
9861 "                   const char *file);\n"
9862 "\n"
9863 msgstr ""
9864
9865 # type: textblock
9866 #. type: textblock
9867 #: ../src/guestfs-actions.pod:1674 ../fish/guestfish-actions.pod:1138
9868 msgid "This command returns the size of C<file> in bytes."
9869 msgstr ""
9870
9871 # type: textblock
9872 #. type: textblock
9873 #: ../src/guestfs-actions.pod:1676
9874 msgid ""
9875 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9876 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9877 "devices, use C<guestfs_blockdev_getsize64>."
9878 msgstr ""
9879
9880 # type: textblock
9881 #. type: textblock
9882 #: ../src/guestfs-actions.pod:1682
9883 msgid "(Added in 1.0.82)"
9884 msgstr ""
9885
9886 # type: =head2
9887 #. type: =head2
9888 #: ../src/guestfs-actions.pod:1684
9889 msgid "guestfs_fill"
9890 msgstr ""
9891
9892 # type: verbatim
9893 #. type: verbatim
9894 #: ../src/guestfs-actions.pod:1686
9895 #, no-wrap
9896 msgid ""
9897 " int\n"
9898 " guestfs_fill (guestfs_h *g,\n"
9899 "               int c,\n"
9900 "               int len,\n"
9901 "               const char *path);\n"
9902 "\n"
9903 msgstr ""
9904
9905 # type: textblock
9906 #. type: textblock
9907 #: ../src/guestfs-actions.pod:1692 ../fish/guestfish-actions.pod:1148
9908 msgid ""
9909 "This command creates a new file called C<path>.  The initial content of the "
9910 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9911 "[0..255]>."
9912 msgstr ""
9913
9914 # type: textblock
9915 #. type: textblock
9916 #: ../src/guestfs-actions.pod:1696
9917 msgid ""
9918 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9919 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9920 "bytes use C<guestfs_fill_pattern>."
9921 msgstr ""
9922
9923 # type: textblock
9924 #. type: textblock
9925 #: ../src/guestfs-actions.pod:1708
9926 msgid "(Added in 1.0.79)"
9927 msgstr ""
9928
9929 # type: =head2
9930 #. type: =head2
9931 #: ../src/guestfs-actions.pod:1710
9932 msgid "guestfs_fill_pattern"
9933 msgstr ""
9934
9935 # type: verbatim
9936 #. type: verbatim
9937 #: ../src/guestfs-actions.pod:1712
9938 #, no-wrap
9939 msgid ""
9940 " int\n"
9941 " guestfs_fill_pattern (guestfs_h *g,\n"
9942 "                       const char *pattern,\n"
9943 "                       int len,\n"
9944 "                       const char *path);\n"
9945 "\n"
9946 msgstr ""
9947
9948 # type: textblock
9949 #. type: textblock
9950 #: ../src/guestfs-actions.pod:1718
9951 msgid ""
9952 "This function is like C<guestfs_fill> except that it creates a new file of "
9953 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9954 "pattern is truncated if necessary to ensure the length of the file is "
9955 "exactly C<len> bytes."
9956 msgstr ""
9957
9958 # type: textblock
9959 #. type: textblock
9960 #: ../src/guestfs-actions.pod:1730
9961 msgid "(Added in 1.3.12)"
9962 msgstr ""
9963
9964 # type: =head2
9965 #. type: =head2
9966 #: ../src/guestfs-actions.pod:1732
9967 msgid "guestfs_find"
9968 msgstr ""
9969
9970 # type: verbatim
9971 #. type: verbatim
9972 #: ../src/guestfs-actions.pod:1734
9973 #, no-wrap
9974 msgid ""
9975 " char **\n"
9976 " guestfs_find (guestfs_h *g,\n"
9977 "               const char *directory);\n"
9978 "\n"
9979 msgstr ""
9980
9981 # type: textblock
9982 #. type: textblock
9983 #: ../src/guestfs-actions.pod:1738 ../fish/guestfish-actions.pod:1170
9984 msgid ""
9985 "This command lists out all files and directories, recursively, starting at "
9986 "C<directory>.  It is essentially equivalent to running the shell command "
9987 "C<find directory -print> but some post-processing happens on the output, "
9988 "described below."
9989 msgstr ""
9990
9991 # type: textblock
9992 #. type: textblock
9993 #: ../src/guestfs-actions.pod:1743 ../fish/guestfish-actions.pod:1175
9994 msgid ""
9995 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9996 "structure was:"
9997 msgstr ""
9998
9999 # type: verbatim
10000 #. type: verbatim
10001 #: ../src/guestfs-actions.pod:1746 ../fish/guestfish-actions.pod:1178
10002 #, no-wrap
10003 msgid ""
10004 " /tmp/a\n"
10005 " /tmp/b\n"
10006 " /tmp/c/d\n"
10007 "\n"
10008 msgstr ""
10009
10010 # type: textblock
10011 #. type: textblock
10012 #: ../src/guestfs-actions.pod:1750
10013 msgid ""
10014 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
10015 msgstr ""
10016
10017 # type: verbatim
10018 #. type: verbatim
10019 #: ../src/guestfs-actions.pod:1753 ../fish/guestfish-actions.pod:1185
10020 #, no-wrap
10021 msgid ""
10022 " a\n"
10023 " b\n"
10024 " c\n"
10025 " c/d\n"
10026 "\n"
10027 msgstr ""
10028
10029 # type: textblock
10030 #. type: textblock
10031 #: ../src/guestfs-actions.pod:1758 ../fish/guestfish-actions.pod:1190
10032 msgid "If C<directory> is not a directory, then this command returns an error."
10033 msgstr ""
10034
10035 # type: textblock
10036 #. type: textblock
10037 #: ../src/guestfs-actions.pod:1761 ../fish/guestfish-actions.pod:1193
10038 msgid "The returned list is sorted."
10039 msgstr ""
10040
10041 # type: textblock
10042 #. type: textblock
10043 #: ../src/guestfs-actions.pod:1763
10044 msgid "See also C<guestfs_find0>."
10045 msgstr ""
10046
10047 # type: textblock
10048 #. type: textblock
10049 #: ../src/guestfs-actions.pod:1772 ../src/guestfs-actions.pod:4106
10050 #: ../src/guestfs-actions.pod:5649
10051 msgid "(Added in 1.0.27)"
10052 msgstr ""
10053
10054 # type: =head2
10055 #. type: =head2
10056 #: ../src/guestfs-actions.pod:1774
10057 msgid "guestfs_find0"
10058 msgstr ""
10059
10060 # type: verbatim
10061 #. type: verbatim
10062 #: ../src/guestfs-actions.pod:1776
10063 #, no-wrap
10064 msgid ""
10065 " int\n"
10066 " guestfs_find0 (guestfs_h *g,\n"
10067 "                const char *directory,\n"
10068 "                const char *files);\n"
10069 "\n"
10070 msgstr ""
10071
10072 # type: textblock
10073 #. type: textblock
10074 #: ../src/guestfs-actions.pod:1781 ../fish/guestfish-actions.pod:1204
10075 msgid ""
10076 "This command lists out all files and directories, recursively, starting at "
10077 "C<directory>, placing the resulting list in the external file called "
10078 "C<files>."
10079 msgstr ""
10080
10081 # type: textblock
10082 #. type: textblock
10083 #: ../src/guestfs-actions.pod:1785
10084 msgid ""
10085 "This command works the same way as C<guestfs_find> with the following "
10086 "exceptions:"
10087 msgstr ""
10088
10089 # type: textblock
10090 #. type: textblock
10091 #: ../src/guestfs-actions.pod:1792 ../fish/guestfish-actions.pod:1215
10092 msgid "The resulting list is written to an external file."
10093 msgstr ""
10094
10095 # type: textblock
10096 #. type: textblock
10097 #: ../src/guestfs-actions.pod:1796 ../fish/guestfish-actions.pod:1219
10098 msgid ""
10099 "Items (filenames) in the result are separated by C<\\0> characters.  See "
10100 "L<find(1)> option I<-print0>."
10101 msgstr ""
10102
10103 # type: textblock
10104 #. type: textblock
10105 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1224
10106 msgid "This command is not limited in the number of names that it can return."
10107 msgstr ""
10108
10109 # type: textblock
10110 #. type: textblock
10111 #: ../src/guestfs-actions.pod:1806 ../fish/guestfish-actions.pod:1229
10112 msgid "The result list is not sorted."
10113 msgstr ""
10114
10115 # type: textblock
10116 #. type: textblock
10117 #: ../src/guestfs-actions.pod:1812
10118 msgid "(Added in 1.0.74)"
10119 msgstr ""
10120
10121 # type: =head2
10122 #. type: =head2
10123 #: ../src/guestfs-actions.pod:1814
10124 msgid "guestfs_findfs_label"
10125 msgstr ""
10126
10127 # type: verbatim
10128 #. type: verbatim
10129 #: ../src/guestfs-actions.pod:1816
10130 #, no-wrap
10131 msgid ""
10132 " char *\n"
10133 " guestfs_findfs_label (guestfs_h *g,\n"
10134 "                       const char *label);\n"
10135 "\n"
10136 msgstr ""
10137
10138 # type: textblock
10139 #. type: textblock
10140 #: ../src/guestfs-actions.pod:1820 ../fish/guestfish-actions.pod:1239
10141 msgid ""
10142 "This command searches the filesystems and returns the one which has the "
10143 "given label.  An error is returned if no such filesystem can be found."
10144 msgstr ""
10145
10146 # type: textblock
10147 #. type: textblock
10148 #: ../src/guestfs-actions.pod:1824
10149 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
10150 msgstr ""
10151
10152 # type: =head2
10153 #. type: =head2
10154 #: ../src/guestfs-actions.pod:1831
10155 msgid "guestfs_findfs_uuid"
10156 msgstr ""
10157
10158 # type: verbatim
10159 #. type: verbatim
10160 #: ../src/guestfs-actions.pod:1833
10161 #, no-wrap
10162 msgid ""
10163 " char *\n"
10164 " guestfs_findfs_uuid (guestfs_h *g,\n"
10165 "                      const char *uuid);\n"
10166 "\n"
10167 msgstr ""
10168
10169 # type: textblock
10170 #. type: textblock
10171 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1249
10172 msgid ""
10173 "This command searches the filesystems and returns the one which has the "
10174 "given UUID.  An error is returned if no such filesystem can be found."
10175 msgstr ""
10176
10177 # type: textblock
10178 #. type: textblock
10179 #: ../src/guestfs-actions.pod:1841
10180 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10181 msgstr ""
10182
10183 # type: =head2
10184 #. type: =head2
10185 #: ../src/guestfs-actions.pod:1848
10186 msgid "guestfs_fsck"
10187 msgstr ""
10188
10189 # type: verbatim
10190 #. type: verbatim
10191 #: ../src/guestfs-actions.pod:1850
10192 #, no-wrap
10193 msgid ""
10194 " int\n"
10195 " guestfs_fsck (guestfs_h *g,\n"
10196 "               const char *fstype,\n"
10197 "               const char *device);\n"
10198 "\n"
10199 msgstr ""
10200
10201 # type: textblock
10202 #. type: textblock
10203 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:1259
10204 msgid ""
10205 "This runs the filesystem checker (fsck) on C<device> which should have "
10206 "filesystem type C<fstype>."
10207 msgstr ""
10208
10209 # type: textblock
10210 #. type: textblock
10211 #: ../src/guestfs-actions.pod:1858 ../fish/guestfish-actions.pod:1262
10212 msgid ""
10213 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10214 "codes from C<fsck>."
10215 msgstr ""
10216
10217 # type: textblock
10218 #. type: textblock
10219 #: ../src/guestfs-actions.pod:1867 ../fish/guestfish-actions.pod:1271
10220 msgid "Multiple status codes can be summed together."
10221 msgstr ""
10222
10223 # type: textblock
10224 #. type: textblock
10225 #: ../src/guestfs-actions.pod:1871 ../fish/guestfish-actions.pod:1275
10226 msgid ""
10227 "A non-zero return code can mean \"success\", for example if errors have been "
10228 "corrected on the filesystem."
10229 msgstr ""
10230
10231 # type: textblock
10232 #. type: textblock
10233 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1280
10234 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10235 msgstr ""
10236
10237 # type: textblock
10238 #. type: textblock
10239 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1285
10240 msgid ""
10241 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10242 msgstr ""
10243
10244 # type: textblock
10245 #. type: textblock
10246 #: ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:7345
10247 msgid "(Added in 1.0.16)"
10248 msgstr ""
10249
10250 # type: =head2
10251 #. type: =head2
10252 #: ../src/guestfs-actions.pod:1887
10253 msgid "guestfs_get_append"
10254 msgstr ""
10255
10256 # type: verbatim
10257 #. type: verbatim
10258 #: ../src/guestfs-actions.pod:1889
10259 #, no-wrap
10260 msgid ""
10261 " const char *\n"
10262 " guestfs_get_append (guestfs_h *g);\n"
10263 "\n"
10264 msgstr ""
10265
10266 # type: textblock
10267 #. type: textblock
10268 #: ../src/guestfs-actions.pod:1892 ../fish/guestfish-actions.pod:1291
10269 msgid ""
10270 "Return the additional kernel options which are added to the guest kernel "
10271 "command line."
10272 msgstr ""
10273
10274 # type: textblock
10275 #. type: textblock
10276 #: ../src/guestfs-actions.pod:1895 ../fish/guestfish-actions.pod:1294
10277 msgid "If C<NULL> then no options are added."
10278 msgstr ""
10279
10280 # type: textblock
10281 #. type: textblock
10282 #: ../src/guestfs-actions.pod:1897
10283 msgid ""
10284 "This function returns a string which may be NULL.  There is no way to return "
10285 "an error from this function.  The string is owned by the guest handle and "
10286 "must I<not> be freed."
10287 msgstr ""
10288
10289 # type: textblock
10290 #. type: textblock
10291 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:5327
10292 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:6207
10293 #: ../src/guestfs-actions.pod:6226 ../src/guestfs-actions.pod:6242
10294 #: ../src/guestfs-actions.pod:6259 ../src/guestfs-actions.pod:7016
10295 #: ../src/guestfs-actions.pod:7034 ../src/guestfs-actions.pod:7388
10296 msgid "(Added in 1.0.26)"
10297 msgstr ""
10298
10299 #. type: =head2
10300 #: ../src/guestfs-actions.pod:1903
10301 msgid "guestfs_get_attach_method"
10302 msgstr ""
10303
10304 #. type: verbatim
10305 #: ../src/guestfs-actions.pod:1905
10306 #, no-wrap
10307 msgid ""
10308 " char *\n"
10309 " guestfs_get_attach_method (guestfs_h *g);\n"
10310 "\n"
10311 msgstr ""
10312
10313 #. type: textblock
10314 #: ../src/guestfs-actions.pod:1908
10315 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10316 msgstr ""
10317
10318 # type: =head2
10319 #. type: =head2
10320 #: ../src/guestfs-actions.pod:1913
10321 msgid "guestfs_get_autosync"
10322 msgstr ""
10323
10324 # type: verbatim
10325 #. type: verbatim
10326 #: ../src/guestfs-actions.pod:1915
10327 #, no-wrap
10328 msgid ""
10329 " int\n"
10330 " guestfs_get_autosync (guestfs_h *g);\n"
10331 "\n"
10332 msgstr ""
10333
10334 # type: textblock
10335 #. type: textblock
10336 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1306
10337 msgid "Get the autosync flag."
10338 msgstr ""
10339
10340 # type: =head2
10341 #. type: =head2
10342 #: ../src/guestfs-actions.pod:1924
10343 msgid "guestfs_get_direct"
10344 msgstr ""
10345
10346 # type: verbatim
10347 #. type: verbatim
10348 #: ../src/guestfs-actions.pod:1926
10349 #, no-wrap
10350 msgid ""
10351 " int\n"
10352 " guestfs_get_direct (guestfs_h *g);\n"
10353 "\n"
10354 msgstr ""
10355
10356 # type: textblock
10357 #. type: textblock
10358 #: ../src/guestfs-actions.pod:1929 ../fish/guestfish-actions.pod:1312
10359 msgid "Return the direct appliance mode flag."
10360 msgstr ""
10361
10362 # type: textblock
10363 #. type: textblock
10364 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:5876
10365 msgid "(Added in 1.0.72)"
10366 msgstr ""
10367
10368 # type: =head2
10369 #. type: =head2
10370 #: ../src/guestfs-actions.pod:1935
10371 msgid "guestfs_get_e2label"
10372 msgstr ""
10373
10374 # type: verbatim
10375 #. type: verbatim
10376 #: ../src/guestfs-actions.pod:1937
10377 #, no-wrap
10378 msgid ""
10379 " char *\n"
10380 " guestfs_get_e2label (guestfs_h *g,\n"
10381 "                      const char *device);\n"
10382 "\n"
10383 msgstr ""
10384
10385 # type: textblock
10386 #. type: textblock
10387 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1318
10388 msgid ""
10389 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10390 msgstr ""
10391
10392 # type: textblock
10393 #. type: textblock
10394 #: ../src/guestfs-actions.pod:1947 ../fish/guestfish-actions.pod:1321
10395 msgid ""
10396 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10397 msgstr ""
10398
10399 # type: textblock
10400 #. type: textblock
10401 #: ../src/guestfs-actions.pod:1954 ../src/guestfs-actions.pod:1975
10402 #: ../src/guestfs-actions.pod:5894 ../src/guestfs-actions.pod:5913
10403 msgid "(Added in 1.0.15)"
10404 msgstr ""
10405
10406 # type: =head2
10407 #. type: =head2
10408 #: ../src/guestfs-actions.pod:1956
10409 msgid "guestfs_get_e2uuid"
10410 msgstr ""
10411
10412 # type: verbatim
10413 #. type: verbatim
10414 #: ../src/guestfs-actions.pod:1958
10415 #, no-wrap
10416 msgid ""
10417 " char *\n"
10418 " guestfs_get_e2uuid (guestfs_h *g,\n"
10419 "                     const char *device);\n"
10420 "\n"
10421 msgstr ""
10422
10423 # type: textblock
10424 #. type: textblock
10425 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1332
10426 msgid ""
10427 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10428 msgstr ""
10429
10430 # type: textblock
10431 #. type: textblock
10432 #: ../src/guestfs-actions.pod:1968 ../fish/guestfish-actions.pod:1335
10433 msgid ""
10434 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10435 msgstr ""
10436
10437 # type: =head2
10438 #. type: =head2
10439 #: ../src/guestfs-actions.pod:1977
10440 msgid "guestfs_get_memsize"
10441 msgstr ""
10442
10443 # type: verbatim
10444 #. type: verbatim
10445 #: ../src/guestfs-actions.pod:1979
10446 #, no-wrap
10447 msgid ""
10448 " int\n"
10449 " guestfs_get_memsize (guestfs_h *g);\n"
10450 "\n"
10451 msgstr ""
10452
10453 # type: textblock
10454 #. type: textblock
10455 #: ../src/guestfs-actions.pod:1982 ../fish/guestfish-actions.pod:1346
10456 msgid ""
10457 "This gets the memory size in megabytes allocated to the qemu subprocess."
10458 msgstr ""
10459
10460 # type: textblock
10461 #. type: textblock
10462 #: ../src/guestfs-actions.pod:1985
10463 msgid ""
10464 "If C<guestfs_set_memsize> was not called on this handle, and if "
10465 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10466 "value for memsize."
10467 msgstr ""
10468
10469 # type: textblock
10470 #. type: textblock
10471 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2070
10472 #: ../src/guestfs-actions.pod:5929 ../src/guestfs-actions.pod:6036
10473 #: ../fish/guestfish-actions.pod:1353 ../fish/guestfish-actions.pod:1404
10474 #: ../fish/guestfish-actions.pod:3998 ../fish/guestfish-actions.pod:4085
10475 msgid ""
10476 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10477 msgstr ""
10478
10479 # type: textblock
10480 #. type: textblock
10481 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:4397
10482 #: ../src/guestfs-actions.pod:4594 ../src/guestfs-actions.pod:4613
10483 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4644
10484 #: ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4674
10485 #: ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5934
10486 #: ../src/guestfs-actions.pod:6181 ../src/guestfs-actions.pod:6782
10487 msgid "(Added in 1.0.55)"
10488 msgstr ""
10489
10490 # type: =head2
10491 #. type: =head2
10492 #: ../src/guestfs-actions.pod:1996
10493 msgid "guestfs_get_network"
10494 msgstr ""
10495
10496 # type: verbatim
10497 #. type: verbatim
10498 #: ../src/guestfs-actions.pod:1998
10499 #, no-wrap
10500 msgid ""
10501 " int\n"
10502 " guestfs_get_network (guestfs_h *g);\n"
10503 "\n"
10504 msgstr ""
10505
10506 # type: textblock
10507 #. type: textblock
10508 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1360
10509 msgid "This returns the enable network flag."
10510 msgstr ""
10511
10512 # type: textblock
10513 #. type: textblock
10514 #: ../src/guestfs-actions.pod:2005 ../src/guestfs-actions.pod:5953
10515 msgid "(Added in 1.5.4)"
10516 msgstr ""
10517
10518 # type: =head2
10519 #. type: =head2
10520 #: ../src/guestfs-actions.pod:2007
10521 msgid "guestfs_get_path"
10522 msgstr ""
10523
10524 # type: verbatim
10525 #. type: verbatim
10526 #: ../src/guestfs-actions.pod:2009
10527 #, no-wrap
10528 msgid ""
10529 " const char *\n"
10530 " guestfs_get_path (guestfs_h *g);\n"
10531 "\n"
10532 msgstr ""
10533
10534 # type: textblock
10535 #. type: textblock
10536 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1366
10537 msgid "Return the current search path."
10538 msgstr ""
10539
10540 # type: textblock
10541 #. type: textblock
10542 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1368
10543 msgid ""
10544 "This is always non-NULL.  If it wasn't set already, then this will return "
10545 "the default path."
10546 msgstr ""
10547
10548 # type: textblock
10549 #. type: textblock
10550 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2046
10551 msgid ""
10552 "This function returns a string, or NULL on error.  The string is owned by "
10553 "the guest handle and must I<not> be freed."
10554 msgstr ""
10555
10556 # type: =head2
10557 #. type: =head2
10558 #: ../src/guestfs-actions.pod:2022
10559 msgid "guestfs_get_pid"
10560 msgstr ""
10561
10562 # type: verbatim
10563 #. type: verbatim
10564 #: ../src/guestfs-actions.pod:2024
10565 #, no-wrap
10566 msgid ""
10567 " int\n"
10568 " guestfs_get_pid (guestfs_h *g);\n"
10569 "\n"
10570 msgstr ""
10571
10572 # type: textblock
10573 #. type: textblock
10574 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
10575 msgid ""
10576 "Return the process ID of the qemu subprocess.  If there is no qemu "
10577 "subprocess, then this will return an error."
10578 msgstr ""
10579
10580 # type: textblock
10581 #. type: textblock
10582 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1380
10583 msgid "This is an internal call used for debugging and testing."
10584 msgstr ""
10585
10586 # type: textblock
10587 #. type: textblock
10588 #: ../src/guestfs-actions.pod:2034
10589 msgid "(Added in 1.0.56)"
10590 msgstr ""
10591
10592 # type: =head2
10593 #. type: =head2
10594 #: ../src/guestfs-actions.pod:2036
10595 msgid "guestfs_get_qemu"
10596 msgstr ""
10597
10598 # type: verbatim
10599 #. type: verbatim
10600 #: ../src/guestfs-actions.pod:2038
10601 #, no-wrap
10602 msgid ""
10603 " const char *\n"
10604 " guestfs_get_qemu (guestfs_h *g);\n"
10605 "\n"
10606 msgstr ""
10607
10608 # type: textblock
10609 #. type: textblock
10610 #: ../src/guestfs-actions.pod:2041 ../fish/guestfish-actions.pod:1386
10611 msgid "Return the current qemu binary."
10612 msgstr ""
10613
10614 # type: textblock
10615 #. type: textblock
10616 #: ../src/guestfs-actions.pod:2043 ../fish/guestfish-actions.pod:1388
10617 msgid ""
10618 "This is always non-NULL.  If it wasn't set already, then this will return "
10619 "the default qemu binary name."
10620 msgstr ""
10621
10622 # type: textblock
10623 #. type: textblock
10624 #: ../src/guestfs-actions.pod:2049 ../src/guestfs-actions.pod:5998
10625 msgid "(Added in 1.0.6)"
10626 msgstr ""
10627
10628 # type: =head2
10629 #. type: =head2
10630 #: ../src/guestfs-actions.pod:2051
10631 msgid "guestfs_get_recovery_proc"
10632 msgstr ""
10633
10634 # type: verbatim
10635 #. type: verbatim
10636 #: ../src/guestfs-actions.pod:2053
10637 #, no-wrap
10638 msgid ""
10639 " int\n"
10640 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10641 "\n"
10642 msgstr ""
10643
10644 # type: textblock
10645 #. type: textblock
10646 #: ../src/guestfs-actions.pod:2056 ../fish/guestfish-actions.pod:1395
10647 msgid "Return the recovery process enabled flag."
10648 msgstr ""
10649
10650 # type: textblock
10651 #. type: textblock
10652 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3507
10653 #: ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:4204
10654 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:5257
10655 #: ../src/guestfs-actions.pod:5600 ../src/guestfs-actions.pod:6022
10656 #: ../src/guestfs-actions.pod:6685 ../src/guestfs-actions.pod:6705
10657 #: ../src/guestfs-actions.pod:6897
10658 msgid "(Added in 1.0.77)"
10659 msgstr ""
10660
10661 # type: =head2
10662 #. type: =head2
10663 #: ../src/guestfs-actions.pod:2062
10664 msgid "guestfs_get_selinux"
10665 msgstr ""
10666
10667 # type: verbatim
10668 #. type: verbatim
10669 #: ../src/guestfs-actions.pod:2064
10670 #, no-wrap
10671 msgid ""
10672 " int\n"
10673 " guestfs_get_selinux (guestfs_h *g);\n"
10674 "\n"
10675 msgstr ""
10676
10677 # type: textblock
10678 #. type: textblock
10679 #: ../src/guestfs-actions.pod:2067
10680 msgid ""
10681 "This returns the current setting of the selinux flag which is passed to the "
10682 "appliance at boot time.  See C<guestfs_set_selinux>."
10683 msgstr ""
10684
10685 # type: textblock
10686 #. type: textblock
10687 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2138
10688 #: ../src/guestfs-actions.pod:6041 ../src/guestfs-actions.pod:6099
10689 msgid "(Added in 1.0.67)"
10690 msgstr ""
10691
10692 # type: =head2
10693 #. type: =head2
10694 #: ../src/guestfs-actions.pod:2077
10695 msgid "guestfs_get_state"
10696 msgstr ""
10697
10698 # type: verbatim
10699 #. type: verbatim
10700 #: ../src/guestfs-actions.pod:2079
10701 #, no-wrap
10702 msgid ""
10703 " int\n"
10704 " guestfs_get_state (guestfs_h *g);\n"
10705 "\n"
10706 msgstr ""
10707
10708 # type: textblock
10709 #. type: textblock
10710 #: ../src/guestfs-actions.pod:2082 ../fish/guestfish-actions.pod:1411
10711 msgid ""
10712 "This returns the current state as an opaque integer.  This is only useful "
10713 "for printing debug and internal error messages."
10714 msgstr ""
10715
10716 # type: textblock
10717 #. type: textblock
10718 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:3305
10719 #: ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3395
10720 #: ../src/guestfs-actions.pod:3422 ../fish/guestfish-actions.pod:1414
10721 #: ../fish/guestfish-actions.pod:2328 ../fish/guestfish-actions.pod:2346
10722 #: ../fish/guestfish-actions.pod:2384 ../fish/guestfish-actions.pod:2400
10723 msgid "For more information on states, see L<guestfs(3)>."
10724 msgstr ""
10725
10726 # type: =head2
10727 #. type: =head2
10728 #: ../src/guestfs-actions.pod:2091
10729 msgid "guestfs_get_trace"
10730 msgstr ""
10731
10732 # type: verbatim
10733 #. type: verbatim
10734 #: ../src/guestfs-actions.pod:2093
10735 #, no-wrap
10736 msgid ""
10737 " int\n"
10738 " guestfs_get_trace (guestfs_h *g);\n"
10739 "\n"
10740 msgstr ""
10741
10742 # type: textblock
10743 #. type: textblock
10744 #: ../src/guestfs-actions.pod:2096 ../fish/guestfish-actions.pod:1420
10745 msgid "Return the command trace flag."
10746 msgstr ""
10747
10748 # type: =head2
10749 #. type: =head2
10750 #: ../src/guestfs-actions.pod:2102
10751 msgid "guestfs_get_umask"
10752 msgstr ""
10753
10754 # type: verbatim
10755 #. type: verbatim
10756 #: ../src/guestfs-actions.pod:2104
10757 #, no-wrap
10758 msgid ""
10759 " int\n"
10760 " guestfs_get_umask (guestfs_h *g);\n"
10761 "\n"
10762 msgstr ""
10763
10764 # type: textblock
10765 #. type: textblock
10766 #: ../src/guestfs-actions.pod:2107
10767 msgid ""
10768 "Return the current umask.  By default the umask is C<022> unless it has been "
10769 "set by calling C<guestfs_umask>."
10770 msgstr ""
10771
10772 # type: =head2
10773 #. type: =head2
10774 #: ../src/guestfs-actions.pod:2114
10775 msgid "guestfs_get_verbose"
10776 msgstr ""
10777
10778 # type: verbatim
10779 #. type: verbatim
10780 #: ../src/guestfs-actions.pod:2116
10781 #, no-wrap
10782 msgid ""
10783 " int\n"
10784 " guestfs_get_verbose (guestfs_h *g);\n"
10785 "\n"
10786 msgstr ""
10787
10788 # type: textblock
10789 #. type: textblock
10790 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1433
10791 msgid "This returns the verbose messages flag."
10792 msgstr ""
10793
10794 # type: =head2
10795 #. type: =head2
10796 #: ../src/guestfs-actions.pod:2125
10797 msgid "guestfs_getcon"
10798 msgstr ""
10799
10800 # type: verbatim
10801 #. type: verbatim
10802 #: ../src/guestfs-actions.pod:2127
10803 #, no-wrap
10804 msgid ""
10805 " char *\n"
10806 " guestfs_getcon (guestfs_h *g);\n"
10807 "\n"
10808 msgstr ""
10809
10810 # type: textblock
10811 #. type: textblock
10812 #: ../src/guestfs-actions.pod:2130 ../fish/guestfish-actions.pod:1439
10813 msgid "This gets the SELinux security context of the daemon."
10814 msgstr ""
10815
10816 # type: textblock
10817 #. type: textblock
10818 #: ../src/guestfs-actions.pod:2132
10819 msgid ""
10820 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10821 msgstr ""
10822
10823 # type: =head2
10824 #. type: =head2
10825 #: ../src/guestfs-actions.pod:2140
10826 msgid "guestfs_getxattr"
10827 msgstr ""
10828
10829 # type: verbatim
10830 #. type: verbatim
10831 #: ../src/guestfs-actions.pod:2142
10832 #, no-wrap
10833 msgid ""
10834 " char *\n"
10835 " guestfs_getxattr (guestfs_h *g,\n"
10836 "                   const char *path,\n"
10837 "                   const char *name,\n"
10838 "                   size_t *size_r);\n"
10839 "\n"
10840 msgstr ""
10841
10842 # type: textblock
10843 #. type: textblock
10844 #: ../src/guestfs-actions.pod:2148
10845 msgid ""
10846 "Get a single extended attribute from file C<path> named C<name>.  This call "
10847 "follows symlinks.  If you want to lookup an extended attribute for the "
10848 "symlink itself, use C<guestfs_lgetxattr>."
10849 msgstr ""
10850
10851 # type: textblock
10852 #. type: textblock
10853 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:3521
10854 msgid ""
10855 "Normally it is better to get all extended attributes from a file in one go "
10856 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10857 "implementations are buggy and do not provide a way to list out attributes.  "
10858 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10859 "extended attributes you want in advance and call this function."
10860 msgstr ""
10861
10862 # type: textblock
10863 #. type: textblock
10864 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3528
10865 #: ../fish/guestfish-actions.pod:1459 ../fish/guestfish-actions.pod:2465
10866 msgid ""
10867 "Extended attribute values are blobs of binary data.  If there is no extended "
10868 "attribute named C<name>, this returns an error."
10869 msgstr ""
10870
10871 # type: textblock
10872 #. type: textblock
10873 #: ../src/guestfs-actions.pod:2162
10874 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10875 msgstr ""
10876
10877 # type: textblock
10878 #. type: textblock
10879 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:2355
10880 #: ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:5250
10881 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5457
10882 msgid ""
10883 "This function returns a buffer, or NULL on error.  The size of the returned "
10884 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10885 "after use>."
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:3537
10890 msgid "(Added in 1.7.24)"
10891 msgstr ""
10892
10893 # type: =head2
10894 #. type: =head2
10895 #: ../src/guestfs-actions.pod:2170
10896 msgid "guestfs_getxattrs"
10897 msgstr ""
10898
10899 # type: verbatim
10900 #. type: verbatim
10901 #: ../src/guestfs-actions.pod:2172
10902 #, no-wrap
10903 msgid ""
10904 " struct guestfs_xattr_list *\n"
10905 " guestfs_getxattrs (guestfs_h *g,\n"
10906 "                    const char *path);\n"
10907 "\n"
10908 msgstr ""
10909
10910 # type: textblock
10911 #. type: textblock
10912 #: ../src/guestfs-actions.pod:2176 ../fish/guestfish-actions.pod:1468
10913 msgid ""
10914 "This call lists the extended attributes of the file or directory C<path>."
10915 msgstr ""
10916
10917 # type: textblock
10918 #. type: textblock
10919 #: ../src/guestfs-actions.pod:2179 ../fish/guestfish-actions.pod:1471
10920 msgid ""
10921 "At the system call level, this is a combination of the L<listxattr(2)> and "
10922 "L<getxattr(2)> calls."
10923 msgstr ""
10924
10925 # type: textblock
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:2182
10928 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10929 msgstr ""
10930
10931 # type: textblock
10932 #. type: textblock
10933 #: ../src/guestfs-actions.pod:2184 ../src/guestfs-actions.pod:3549
10934 #: ../src/guestfs-actions.pod:4200
10935 msgid ""
10936 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10937 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10938 msgstr ""
10939
10940 # type: textblock
10941 #. type: textblock
10942 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:3553
10943 #: ../src/guestfs-actions.pod:3718 ../src/guestfs-actions.pod:3754
10944 #: ../src/guestfs-actions.pod:5630 ../src/guestfs-actions.pod:6118
10945 #: ../src/guestfs-actions.pod:7453
10946 msgid "(Added in 1.0.59)"
10947 msgstr ""
10948
10949 # type: =head2
10950 #. type: =head2
10951 #: ../src/guestfs-actions.pod:2190
10952 msgid "guestfs_glob_expand"
10953 msgstr ""
10954
10955 # type: verbatim
10956 #. type: verbatim
10957 #: ../src/guestfs-actions.pod:2192
10958 #, no-wrap
10959 msgid ""
10960 " char **\n"
10961 " guestfs_glob_expand (guestfs_h *g,\n"
10962 "                      const char *pattern);\n"
10963 "\n"
10964 msgstr ""
10965
10966 # type: textblock
10967 #. type: textblock
10968 #: ../src/guestfs-actions.pod:2196 ../fish/guestfish-actions.pod:1480
10969 msgid ""
10970 "This command searches for all the pathnames matching C<pattern> according to "
10971 "the wildcard expansion rules used by the shell."
10972 msgstr ""
10973
10974 # type: textblock
10975 #. type: textblock
10976 #: ../src/guestfs-actions.pod:2200 ../fish/guestfish-actions.pod:1484
10977 msgid ""
10978 "If no paths match, then this returns an empty list (note: not an error)."
10979 msgstr ""
10980
10981 # type: textblock
10982 #. type: textblock
10983 #: ../src/guestfs-actions.pod:2203 ../fish/guestfish-actions.pod:1487
10984 msgid ""
10985 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10986 "GLOB_BRACE>.  See that manual page for more details."
10987 msgstr ""
10988
10989 # type: textblock
10990 #. type: textblock
10991 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6283
10992 #: ../src/guestfs-actions.pod:6300
10993 msgid "(Added in 1.0.50)"
10994 msgstr ""
10995
10996 # type: =head2
10997 #. type: =head2
10998 #: ../src/guestfs-actions.pod:2213
10999 msgid "guestfs_grep"
11000 msgstr ""
11001
11002 # type: verbatim
11003 #. type: verbatim
11004 #: ../src/guestfs-actions.pod:2215
11005 #, no-wrap
11006 msgid ""
11007 " char **\n"
11008 " guestfs_grep (guestfs_h *g,\n"
11009 "               const char *regex,\n"
11010 "               const char *path);\n"
11011 "\n"
11012 msgstr ""
11013
11014 # type: textblock
11015 #. type: textblock
11016 #: ../src/guestfs-actions.pod:2220 ../fish/guestfish-actions.pod:1495
11017 msgid "This calls the external C<grep> program and returns the matching lines."
11018 msgstr ""
11019
11020 # type: =head2
11021 #. type: =head2
11022 #: ../src/guestfs-actions.pod:2232
11023 msgid "guestfs_grepi"
11024 msgstr ""
11025
11026 # type: verbatim
11027 #. type: verbatim
11028 #: ../src/guestfs-actions.pod:2234
11029 #, no-wrap
11030 msgid ""
11031 " char **\n"
11032 " guestfs_grepi (guestfs_h *g,\n"
11033 "                const char *regex,\n"
11034 "                const char *path);\n"
11035 "\n"
11036 msgstr ""
11037
11038 # type: textblock
11039 #. type: textblock
11040 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1505
11041 msgid ""
11042 "This calls the external C<grep -i> program and returns the matching lines."
11043 msgstr ""
11044
11045 # type: =head2
11046 #. type: =head2
11047 #: ../src/guestfs-actions.pod:2251
11048 msgid "guestfs_grub_install"
11049 msgstr ""
11050
11051 # type: verbatim
11052 #. type: verbatim
11053 #: ../src/guestfs-actions.pod:2253
11054 #, no-wrap
11055 msgid ""
11056 " int\n"
11057 " guestfs_grub_install (guestfs_h *g,\n"
11058 "                       const char *root,\n"
11059 "                       const char *device);\n"
11060 "\n"
11061 msgstr ""
11062
11063 # type: textblock
11064 #. type: textblock
11065 #: ../src/guestfs-actions.pod:2258 ../fish/guestfish-actions.pod:1515
11066 msgid ""
11067 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
11068 "the root directory being C<root>."
11069 msgstr ""
11070
11071 # type: textblock
11072 #. type: textblock
11073 #: ../src/guestfs-actions.pod:2261 ../fish/guestfish-actions.pod:1518
11074 msgid ""
11075 "Note: If grub-install reports the error \"No suitable drive was found in the "
11076 "generated device map.\" it may be that you need to create a C</boot/grub/"
11077 "device.map> file first that contains the mapping between grub device names "
11078 "and Linux device names.  It is usually sufficient to create a file "
11079 "containing:"
11080 msgstr ""
11081
11082 # type: verbatim
11083 #. type: verbatim
11084 #: ../src/guestfs-actions.pod:2268 ../fish/guestfish-actions.pod:1525
11085 #, no-wrap
11086 msgid ""
11087 " (hd0) /dev/vda\n"
11088 "\n"
11089 msgstr ""
11090
11091 # type: textblock
11092 #. type: textblock
11093 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1527
11094 msgid "replacing C</dev/vda> with the name of the installation device."
11095 msgstr ""
11096
11097 # type: textblock
11098 #. type: textblock
11099 #: ../src/guestfs-actions.pod:2274
11100 msgid "(Added in 1.0.17)"
11101 msgstr ""
11102
11103 # type: =head2
11104 #. type: =head2
11105 #: ../src/guestfs-actions.pod:2276
11106 msgid "guestfs_head"
11107 msgstr ""
11108
11109 # type: verbatim
11110 #. type: verbatim
11111 #: ../src/guestfs-actions.pod:2278
11112 #, no-wrap
11113 msgid ""
11114 " char **\n"
11115 " guestfs_head (guestfs_h *g,\n"
11116 "               const char *path);\n"
11117 "\n"
11118 msgstr ""
11119
11120 # type: textblock
11121 #. type: textblock
11122 #: ../src/guestfs-actions.pod:2282 ../fish/guestfish-actions.pod:1533
11123 msgid ""
11124 "This command returns up to the first 10 lines of a file as a list of strings."
11125 msgstr ""
11126
11127 # type: =head2
11128 #. type: =head2
11129 #: ../src/guestfs-actions.pod:2294
11130 msgid "guestfs_head_n"
11131 msgstr ""
11132
11133 # type: verbatim
11134 #. type: verbatim
11135 #: ../src/guestfs-actions.pod:2296
11136 #, no-wrap
11137 msgid ""
11138 " char **\n"
11139 " guestfs_head_n (guestfs_h *g,\n"
11140 "                 int nrlines,\n"
11141 "                 const char *path);\n"
11142 "\n"
11143 msgstr ""
11144
11145 # type: textblock
11146 #. type: textblock
11147 #: ../src/guestfs-actions.pod:2301 ../fish/guestfish-actions.pod:1543
11148 msgid ""
11149 "If the parameter C<nrlines> is a positive number, this returns the first "
11150 "C<nrlines> lines of the file C<path>."
11151 msgstr ""
11152
11153 # type: textblock
11154 #. type: textblock
11155 #: ../src/guestfs-actions.pod:2304 ../fish/guestfish-actions.pod:1546
11156 msgid ""
11157 "If the parameter C<nrlines> is a negative number, this returns lines from "
11158 "the file C<path>, excluding the last C<nrlines> lines."
11159 msgstr ""
11160
11161 # type: textblock
11162 #. type: textblock
11163 #: ../src/guestfs-actions.pod:2307 ../src/guestfs-actions.pod:6580
11164 #: ../fish/guestfish-actions.pod:1549 ../fish/guestfish-actions.pod:4435
11165 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
11166 msgstr ""
11167
11168 # type: =head2
11169 #. type: =head2
11170 #: ../src/guestfs-actions.pod:2318
11171 msgid "guestfs_hexdump"
11172 msgstr ""
11173
11174 # type: verbatim
11175 #. type: verbatim
11176 #: ../src/guestfs-actions.pod:2320
11177 #, no-wrap
11178 msgid ""
11179 " char *\n"
11180 " guestfs_hexdump (guestfs_h *g,\n"
11181 "                  const char *path);\n"
11182 "\n"
11183 msgstr ""
11184
11185 # type: textblock
11186 #. type: textblock
11187 #: ../src/guestfs-actions.pod:2324 ../fish/guestfish-actions.pod:1558
11188 msgid ""
11189 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11190 "readable, canonical hex dump of the file."
11191 msgstr ""
11192
11193 # type: textblock
11194 #. type: textblock
11195 #: ../src/guestfs-actions.pod:2333 ../src/guestfs-actions.pod:6364
11196 #: ../src/guestfs-actions.pod:6419
11197 msgid "(Added in 1.0.22)"
11198 msgstr ""
11199
11200 # type: =head2
11201 #. type: =head2
11202 #: ../src/guestfs-actions.pod:2335
11203 msgid "guestfs_initrd_cat"
11204 msgstr ""
11205
11206 # type: verbatim
11207 #. type: verbatim
11208 #: ../src/guestfs-actions.pod:2337
11209 #, no-wrap
11210 msgid ""
11211 " char *\n"
11212 " guestfs_initrd_cat (guestfs_h *g,\n"
11213 "                     const char *initrdpath,\n"
11214 "                     const char *filename,\n"
11215 "                     size_t *size_r);\n"
11216 "\n"
11217 msgstr ""
11218
11219 # type: textblock
11220 #. type: textblock
11221 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1568
11222 msgid ""
11223 "This command unpacks the file C<filename> from the initrd file called "
11224 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11225 "character."
11226 msgstr ""
11227
11228 # type: textblock
11229 #. type: textblock
11230 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1572
11231 msgid ""
11232 "For example, in guestfish you could use the following command to examine the "
11233 "boot script (usually called C</init>)  contained in a Linux initrd or "
11234 "initramfs image:"
11235 msgstr ""
11236
11237 # type: verbatim
11238 #. type: verbatim
11239 #: ../src/guestfs-actions.pod:2351 ../fish/guestfish-actions.pod:1576
11240 #, no-wrap
11241 msgid ""
11242 " initrd-cat /boot/initrd-<version>.img init\n"
11243 "\n"
11244 msgstr ""
11245
11246 # type: textblock
11247 #. type: textblock
11248 #: ../src/guestfs-actions.pod:2353
11249 msgid "See also C<guestfs_initrd_list>."
11250 msgstr ""
11251
11252 # type: =head2
11253 #. type: =head2
11254 #: ../src/guestfs-actions.pod:2364
11255 msgid "guestfs_initrd_list"
11256 msgstr ""
11257
11258 # type: verbatim
11259 #. type: verbatim
11260 #: ../src/guestfs-actions.pod:2366
11261 #, no-wrap
11262 msgid ""
11263 " char **\n"
11264 " guestfs_initrd_list (guestfs_h *g,\n"
11265 "                      const char *path);\n"
11266 "\n"
11267 msgstr ""
11268
11269 # type: textblock
11270 #. type: textblock
11271 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1587
11272 msgid "This command lists out files contained in an initrd."
11273 msgstr ""
11274
11275 # type: textblock
11276 #. type: textblock
11277 #: ../src/guestfs-actions.pod:2372 ../fish/guestfish-actions.pod:1589
11278 msgid ""
11279 "The files are listed without any initial C</> character.  The files are "
11280 "listed in the order they appear (not necessarily alphabetical).  Directory "
11281 "names are listed as separate items."
11282 msgstr ""
11283
11284 # type: textblock
11285 #. type: textblock
11286 #: ../src/guestfs-actions.pod:2376 ../fish/guestfish-actions.pod:1593
11287 msgid ""
11288 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11289 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11290 "files)."
11291 msgstr ""
11292
11293 # type: =head2
11294 #. type: =head2
11295 #: ../src/guestfs-actions.pod:2386
11296 msgid "guestfs_inotify_add_watch"
11297 msgstr ""
11298
11299 # type: verbatim
11300 #. type: verbatim
11301 #: ../src/guestfs-actions.pod:2388
11302 #, no-wrap
11303 msgid ""
11304 " int64_t\n"
11305 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11306 "                            const char *path,\n"
11307 "                            int mask);\n"
11308 "\n"
11309 msgstr ""
11310
11311 # type: textblock
11312 #. type: textblock
11313 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1601
11314 msgid "Watch C<path> for the events listed in C<mask>."
11315 msgstr ""
11316
11317 # type: textblock
11318 #. type: textblock
11319 #: ../src/guestfs-actions.pod:2395 ../fish/guestfish-actions.pod:1603
11320 msgid ""
11321 "Note that if C<path> is a directory then events within that directory are "
11322 "watched, but this does I<not> happen recursively (in subdirectories)."
11323 msgstr ""
11324
11325 # type: textblock
11326 #. type: textblock
11327 #: ../src/guestfs-actions.pod:2399 ../fish/guestfish-actions.pod:1607
11328 msgid ""
11329 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11330 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11331 msgstr ""
11332
11333 # type: =head2
11334 #. type: =head2
11335 #: ../src/guestfs-actions.pod:2407
11336 msgid "guestfs_inotify_close"
11337 msgstr ""
11338
11339 # type: verbatim
11340 #. type: verbatim
11341 #: ../src/guestfs-actions.pod:2409
11342 #, no-wrap
11343 msgid ""
11344 " int\n"
11345 " guestfs_inotify_close (guestfs_h *g);\n"
11346 "\n"
11347 msgstr ""
11348
11349 # type: textblock
11350 #. type: textblock
11351 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1615
11352 msgid ""
11353 "This closes the inotify handle which was previously opened by inotify_init.  "
11354 "It removes all watches, throws away any pending events, and deallocates all "
11355 "resources."
11356 msgstr ""
11357
11358 # type: =head2
11359 #. type: =head2
11360 #: ../src/guestfs-actions.pod:2420
11361 msgid "guestfs_inotify_files"
11362 msgstr ""
11363
11364 # type: verbatim
11365 #. type: verbatim
11366 #: ../src/guestfs-actions.pod:2422
11367 #, no-wrap
11368 msgid ""
11369 " char **\n"
11370 " guestfs_inotify_files (guestfs_h *g);\n"
11371 "\n"
11372 msgstr ""
11373
11374 # type: textblock
11375 #. type: textblock
11376 #: ../src/guestfs-actions.pod:2425
11377 msgid ""
11378 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11379 "returns a list of pathnames of objects that were touched.  The returned "
11380 "pathnames are sorted and deduplicated."
11381 msgstr ""
11382
11383 # type: =head2
11384 #. type: =head2
11385 #: ../src/guestfs-actions.pod:2435
11386 msgid "guestfs_inotify_init"
11387 msgstr ""
11388
11389 # type: verbatim
11390 #. type: verbatim
11391 #: ../src/guestfs-actions.pod:2437
11392 #, no-wrap
11393 msgid ""
11394 " int\n"
11395 " guestfs_inotify_init (guestfs_h *g,\n"
11396 "                       int maxevents);\n"
11397 "\n"
11398 msgstr ""
11399
11400 # type: textblock
11401 #. type: textblock
11402 #: ../src/guestfs-actions.pod:2441 ../fish/guestfish-actions.pod:1631
11403 msgid ""
11404 "This command creates a new inotify handle.  The inotify subsystem can be "
11405 "used to notify events which happen to objects in the guest filesystem."
11406 msgstr ""
11407
11408 # type: textblock
11409 #. type: textblock
11410 #: ../src/guestfs-actions.pod:2445
11411 msgid ""
11412 "C<maxevents> is the maximum number of events which will be queued up between "
11413 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11414 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11415 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11416 "throws away events, but records the fact that it threw them away by setting "
11417 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11418 "C<guestfs_inotify_read>)."
11419 msgstr ""
11420
11421 # type: textblock
11422 #. type: textblock
11423 #: ../src/guestfs-actions.pod:2455
11424 msgid ""
11425 "Before any events are generated, you have to add some watches to the "
11426 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11427 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11428 msgstr ""
11429
11430 # type: textblock
11431 #. type: textblock
11432 #: ../src/guestfs-actions.pod:2461
11433 msgid ""
11434 "Queued up events should be read periodically by calling "
11435 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11436 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11437 "often enough then you risk the internal queue overflowing."
11438 msgstr ""
11439
11440 # type: textblock
11441 #. type: textblock
11442 #: ../src/guestfs-actions.pod:2468
11443 msgid ""
11444 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11445 "This also removes any watches automatically."
11446 msgstr ""
11447
11448 # type: textblock
11449 #. type: textblock
11450 #: ../src/guestfs-actions.pod:2472 ../fish/guestfish-actions.pod:1662
11451 msgid ""
11452 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11453 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11454 "that there is one global inotify handle per libguestfs instance."
11455 msgstr ""
11456
11457 # type: =head2
11458 #. type: =head2
11459 #: ../src/guestfs-actions.pod:2481
11460 msgid "guestfs_inotify_read"
11461 msgstr ""
11462
11463 # type: verbatim
11464 #. type: verbatim
11465 #: ../src/guestfs-actions.pod:2483
11466 #, no-wrap
11467 msgid ""
11468 " struct guestfs_inotify_event_list *\n"
11469 " guestfs_inotify_read (guestfs_h *g);\n"
11470 "\n"
11471 msgstr ""
11472
11473 # type: textblock
11474 #. type: textblock
11475 #: ../src/guestfs-actions.pod:2486 ../fish/guestfish-actions.pod:1671
11476 msgid ""
11477 "Return the complete queue of events that have happened since the previous "
11478 "read call."
11479 msgstr ""
11480
11481 # type: textblock
11482 #. type: textblock
11483 #: ../src/guestfs-actions.pod:2489 ../fish/guestfish-actions.pod:1674
11484 msgid "If no events have happened, this returns an empty list."
11485 msgstr ""
11486
11487 # type: textblock
11488 #. type: textblock
11489 #: ../src/guestfs-actions.pod:2491 ../fish/guestfish-actions.pod:1676
11490 msgid ""
11491 "I<Note>: In order to make sure that all events have been read, you must call "
11492 "this function repeatedly until it returns an empty list.  The reason is that "
11493 "the call will read events up to the maximum appliance-to-host message size "
11494 "and leave remaining events in the queue."
11495 msgstr ""
11496
11497 # type: textblock
11498 #. type: textblock
11499 #: ../src/guestfs-actions.pod:2497
11500 msgid ""
11501 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11502 "there was an error.  I<The caller must call "
11503 "C<guestfs_free_inotify_event_list> after use>."
11504 msgstr ""
11505
11506 # type: =head2
11507 #. type: =head2
11508 #: ../src/guestfs-actions.pod:2503
11509 msgid "guestfs_inotify_rm_watch"
11510 msgstr ""
11511
11512 # type: verbatim
11513 #. type: verbatim
11514 #: ../src/guestfs-actions.pod:2505
11515 #, no-wrap
11516 msgid ""
11517 " int\n"
11518 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11519 "                           int wd);\n"
11520 "\n"
11521 msgstr ""
11522
11523 # type: textblock
11524 #. type: textblock
11525 #: ../src/guestfs-actions.pod:2509
11526 msgid ""
11527 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11528 msgstr ""
11529
11530 # type: =head2
11531 #. type: =head2
11532 #: ../src/guestfs-actions.pod:2516
11533 msgid "guestfs_inspect_get_arch"
11534 msgstr ""
11535
11536 # type: verbatim
11537 #. type: verbatim
11538 #: ../src/guestfs-actions.pod:2518
11539 #, no-wrap
11540 msgid ""
11541 " char *\n"
11542 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11543 "                           const char *root);\n"
11544 "\n"
11545 msgstr ""
11546
11547 # type: textblock
11548 #. type: textblock
11549 #: ../src/guestfs-actions.pod:2522 ../src/guestfs-actions.pod:2545
11550 #: ../src/guestfs-actions.pod:2638 ../src/guestfs-actions.pod:2682
11551 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:2747
11552 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2796
11553 #: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2860
11554 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:2920
11555 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2999
11556 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3062
11557 #: ../src/guestfs-actions.pod:3085 ../src/guestfs-actions.pod:3102
11558 #: ../src/guestfs-actions.pod:3119 ../src/guestfs-actions.pod:3138
11559 msgid ""
11560 "This function should only be called with a root device string as returned by "
11561 "C<guestfs_inspect_os>."
11562 msgstr ""
11563
11564 # type: textblock
11565 #. type: textblock
11566 #: ../src/guestfs-actions.pod:2525
11567 msgid ""
11568 "This returns the architecture of the inspected operating system.  The "
11569 "possible return values are listed under C<guestfs_file_architecture>."
11570 msgstr ""
11571
11572 # type: textblock
11573 #. type: textblock
11574 #: ../src/guestfs-actions.pod:2529 ../fish/guestfish-actions.pod:1700
11575 msgid ""
11576 "If the architecture could not be determined, then the string C<unknown> is "
11577 "returned."
11578 msgstr ""
11579
11580 # type: textblock
11581 #. type: textblock
11582 #: ../src/guestfs-actions.pod:2532 ../src/guestfs-actions.pod:2625
11583 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:2756
11584 #: ../src/guestfs-actions.pod:2784 ../src/guestfs-actions.pod:2876
11585 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2931
11586 #: ../src/guestfs-actions.pod:2985 ../src/guestfs-actions.pod:3028
11587 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3072
11588 #: ../src/guestfs-actions.pod:3092 ../src/guestfs-actions.pod:3109
11589 #: ../src/guestfs-actions.pod:3128 ../src/guestfs-actions.pod:3231
11590 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:1703
11591 #: ../fish/guestfish-actions.pod:1789 ../fish/guestfish-actions.pod:1877
11592 #: ../fish/guestfish-actions.pod:1892 ../fish/guestfish-actions.pod:1913
11593 #: ../fish/guestfish-actions.pod:1983 ../fish/guestfish-actions.pod:2007
11594 #: ../fish/guestfish-actions.pod:2024 ../fish/guestfish-actions.pod:2067
11595 #: ../fish/guestfish-actions.pod:2102 ../fish/guestfish-actions.pod:2118
11596 #: ../fish/guestfish-actions.pod:2134 ../fish/guestfish-actions.pod:2147
11597 #: ../fish/guestfish-actions.pod:2160 ../fish/guestfish-actions.pod:2175
11598 #: ../fish/guestfish-actions.pod:2274 ../fish/guestfish-actions.pod:2308
11599 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11600 msgstr ""
11601
11602 # type: =head2
11603 #. type: =head2
11604 #: ../src/guestfs-actions.pod:2539
11605 msgid "guestfs_inspect_get_distro"
11606 msgstr ""
11607
11608 # type: verbatim
11609 #. type: verbatim
11610 #: ../src/guestfs-actions.pod:2541
11611 #, no-wrap
11612 msgid ""
11613 " char *\n"
11614 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11615 "                             const char *root);\n"
11616 "\n"
11617 msgstr ""
11618
11619 # type: textblock
11620 #. type: textblock
11621 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1712
11622 msgid ""
11623 "This returns the distro (distribution) of the inspected operating system."
11624 msgstr ""
11625
11626 # type: textblock
11627 #. type: textblock
11628 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1715
11629 msgid "Currently defined distros are:"
11630 msgstr ""
11631
11632 # type: =item
11633 #. type: =item
11634 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1719
11635 msgid "\"archlinux\""
11636 msgstr ""
11637
11638 # type: textblock
11639 #. type: textblock
11640 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1721
11641 msgid "Arch Linux."
11642 msgstr ""
11643
11644 #. type: =item
11645 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1723
11646 msgid "\"centos\""
11647 msgstr ""
11648
11649 #. type: textblock
11650 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1725
11651 msgid "CentOS."
11652 msgstr ""
11653
11654 # type: =item
11655 #. type: =item
11656 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1727
11657 msgid "\"debian\""
11658 msgstr ""
11659
11660 # type: textblock
11661 #. type: textblock
11662 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1729
11663 msgid "Debian."
11664 msgstr ""
11665
11666 # type: =item
11667 #. type: =item
11668 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1731
11669 msgid "\"fedora\""
11670 msgstr ""
11671
11672 # type: textblock
11673 #. type: textblock
11674 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1733
11675 msgid "Fedora."
11676 msgstr ""
11677
11678 # type: =item
11679 #. type: =item
11680 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1735
11681 msgid "\"gentoo\""
11682 msgstr ""
11683
11684 # type: textblock
11685 #. type: textblock
11686 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1737
11687 msgid "Gentoo."
11688 msgstr ""
11689
11690 # type: =item
11691 #. type: =item
11692 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1739
11693 msgid "\"linuxmint\""
11694 msgstr ""
11695
11696 # type: textblock
11697 #. type: textblock
11698 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1741
11699 msgid "Linux Mint."
11700 msgstr ""
11701
11702 # type: =item
11703 #. type: =item
11704 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1743
11705 msgid "\"mandriva\""
11706 msgstr ""
11707
11708 # type: textblock
11709 #. type: textblock
11710 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1745
11711 msgid "Mandriva."
11712 msgstr ""
11713
11714 # type: =item
11715 #. type: =item
11716 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1747
11717 msgid "\"meego\""
11718 msgstr ""
11719
11720 # type: textblock
11721 #. type: textblock
11722 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1749
11723 msgid "MeeGo."
11724 msgstr ""
11725
11726 # type: =item
11727 #. type: =item
11728 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1751
11729 msgid "\"pardus\""
11730 msgstr ""
11731
11732 # type: textblock
11733 #. type: textblock
11734 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1753
11735 msgid "Pardus."
11736 msgstr ""
11737
11738 # type: =item
11739 #. type: =item
11740 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1755
11741 msgid "\"redhat-based\""
11742 msgstr ""
11743
11744 # type: textblock
11745 #. type: textblock
11746 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1757
11747 msgid "Some Red Hat-derived distro."
11748 msgstr ""
11749
11750 # type: =item
11751 #. type: =item
11752 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1759
11753 msgid "\"rhel\""
11754 msgstr ""
11755
11756 #. type: textblock
11757 #: ../src/guestfs-actions.pod:2597 ../fish/guestfish-actions.pod:1761
11758 msgid "Red Hat Enterprise Linux."
11759 msgstr ""
11760
11761 #. type: =item
11762 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1763
11763 msgid "\"scientificlinux\""
11764 msgstr ""
11765
11766 #. type: textblock
11767 #: ../src/guestfs-actions.pod:2601 ../fish/guestfish-actions.pod:1765
11768 msgid "Scientific Linux."
11769 msgstr ""
11770
11771 #. type: =item
11772 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1767
11773 msgid "\"slackware\""
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1769
11778 msgid "Slackware."
11779 msgstr ""
11780
11781 # type: =item
11782 #. type: =item
11783 #: ../src/guestfs-actions.pod:2607 ../fish/guestfish-actions.pod:1771
11784 msgid "\"ubuntu\""
11785 msgstr ""
11786
11787 # type: textblock
11788 #. type: textblock
11789 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1773
11790 msgid "Ubuntu."
11791 msgstr ""
11792
11793 # type: =item
11794 #. type: =item
11795 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2727
11796 #: ../src/guestfs-actions.pod:3019 ../fish/guestfish-actions.pod:1775
11797 #: ../fish/guestfish-actions.pod:1868 ../fish/guestfish-actions.pod:2093
11798 msgid "\"unknown\""
11799 msgstr ""
11800
11801 # type: textblock
11802 #. type: textblock
11803 #: ../src/guestfs-actions.pod:2613 ../fish/guestfish-actions.pod:1777
11804 msgid "The distro could not be determined."
11805 msgstr ""
11806
11807 # type: =item
11808 #. type: =item
11809 #: ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:3011
11810 #: ../fish/guestfish-actions.pod:1779 ../fish/guestfish-actions.pod:2085
11811 msgid "\"windows\""
11812 msgstr ""
11813
11814 # type: textblock
11815 #. type: textblock
11816 #: ../src/guestfs-actions.pod:2617 ../fish/guestfish-actions.pod:1781
11817 msgid ""
11818 "Windows does not have distributions.  This string is returned if the OS type "
11819 "is Windows."
11820 msgstr ""
11821
11822 # type: textblock
11823 #. type: textblock
11824 #: ../src/guestfs-actions.pod:2622 ../src/guestfs-actions.pod:2733
11825 #: ../src/guestfs-actions.pod:3025 ../fish/guestfish-actions.pod:1786
11826 #: ../fish/guestfish-actions.pod:1874 ../fish/guestfish-actions.pod:2099
11827 msgid ""
11828 "Future versions of libguestfs may return other strings here.  The caller "
11829 "should be prepared to handle any string."
11830 msgstr ""
11831
11832 #. type: =head2
11833 #: ../src/guestfs-actions.pod:2632
11834 msgid "guestfs_inspect_get_drive_mappings"
11835 msgstr ""
11836
11837 #. type: verbatim
11838 #: ../src/guestfs-actions.pod:2634
11839 #, no-wrap
11840 msgid ""
11841 " char **\n"
11842 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11843 "                                     const char *root);\n"
11844 "\n"
11845 msgstr ""
11846
11847 #. type: textblock
11848 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1798
11849 msgid ""
11850 "This call is useful for Windows which uses a primitive system of assigning "
11851 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11852 "Windows Registry to find out how disks/partitions are mapped to drive "
11853 "letters, and returns a hash table as in the example below:"
11854 msgstr ""
11855
11856 #. type: verbatim
11857 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1804
11858 #, no-wrap
11859 msgid ""
11860 " C      =>     /dev/vda2\n"
11861 " E      =>     /dev/vdb1\n"
11862 " F      =>     /dev/vdc1\n"
11863 "\n"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1808
11868 msgid ""
11869 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11870 "and just contains the drive letter, without the customary colon separator "
11871 "character."
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../src/guestfs-actions.pod:2655 ../fish/guestfish-actions.pod:1812
11876 msgid ""
11877 "In future we may support other operating systems that also used drive "
11878 "letters, but the keys for those might not be case insensitive and might be "
11879 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11880 "C<h1> etc."
11881 msgstr ""
11882
11883 #. type: textblock
11884 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1817
11885 msgid ""
11886 "For Windows guests, currently only hard drive mappings are returned.  "
11887 "Removable disks (eg. DVD-ROMs) are ignored."
11888 msgstr ""
11889
11890 #. type: textblock
11891 #: ../src/guestfs-actions.pod:2663 ../fish/guestfish-actions.pod:1820
11892 msgid ""
11893 "For guests that do not use drive mappings, or if the drive mappings could "
11894 "not be determined, this returns an empty hash table."
11895 msgstr ""
11896
11897 #. type: textblock
11898 #: ../src/guestfs-actions.pod:2666
11899 msgid ""
11900 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11901 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
11902 msgstr ""
11903
11904 # type: textblock
11905 #. type: textblock
11906 #: ../src/guestfs-actions.pod:2670 ../src/guestfs-actions.pod:2846
11907 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:4816
11908 #: ../src/guestfs-actions.pod:6721
11909 msgid ""
11910 "This function returns a NULL-terminated array of strings, or NULL if there "
11911 "was an error.  The array of strings will always have length C<2n+1>, where "
11912 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11913 "caller must free the strings and the array after use>."
11914 msgstr ""
11915
11916 # type: =head2
11917 #. type: =head2
11918 #: ../src/guestfs-actions.pod:2676
11919 msgid "guestfs_inspect_get_filesystems"
11920 msgstr ""
11921
11922 # type: verbatim
11923 #. type: verbatim
11924 #: ../src/guestfs-actions.pod:2678
11925 #, no-wrap
11926 msgid ""
11927 " char **\n"
11928 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11929 "                                  const char *root);\n"
11930 "\n"
11931 msgstr ""
11932
11933 # type: textblock
11934 #. type: textblock
11935 #: ../src/guestfs-actions.pod:2685 ../fish/guestfish-actions.pod:1834
11936 msgid ""
11937 "This returns a list of all the filesystems that we think are associated with "
11938 "this operating system.  This includes the root filesystem, other ordinary "
11939 "filesystems, and non-mounted devices like swap partitions."
11940 msgstr ""
11941
11942 # type: textblock
11943 #. type: textblock
11944 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:1839
11945 msgid ""
11946 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11947 "to be shared between operating systems."
11948 msgstr ""
11949
11950 # type: textblock
11951 #. type: textblock
11952 #: ../src/guestfs-actions.pod:2693
11953 msgid ""
11954 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11955 "C<guestfs_inspect_get_mountpoints>."
11956 msgstr ""
11957
11958 #. type: =head2
11959 #: ../src/guestfs-actions.pod:2702
11960 msgid "guestfs_inspect_get_format"
11961 msgstr ""
11962
11963 #. type: verbatim
11964 #: ../src/guestfs-actions.pod:2704
11965 #, no-wrap
11966 msgid ""
11967 " char *\n"
11968 " guestfs_inspect_get_format (guestfs_h *g,\n"
11969 "                             const char *root);\n"
11970 "\n"
11971 msgstr ""
11972
11973 #. type: textblock
11974 #: ../src/guestfs-actions.pod:2711 ../fish/guestfish-actions.pod:1852
11975 msgid ""
11976 "This returns the format of the inspected operating system.  You can use it "
11977 "to detect install images, live CDs and similar."
11978 msgstr ""
11979
11980 #. type: textblock
11981 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1855
11982 msgid "Currently defined formats are:"
11983 msgstr ""
11984
11985 #. type: =item
11986 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1859
11987 msgid "\"installed\""
11988 msgstr ""
11989
11990 #. type: textblock
11991 #: ../src/guestfs-actions.pod:2720 ../fish/guestfish-actions.pod:1861
11992 msgid "This is an installed operating system."
11993 msgstr ""
11994
11995 #. type: =item
11996 #: ../src/guestfs-actions.pod:2722 ../fish/guestfish-actions.pod:1863
11997 msgid "\"installer\""
11998 msgstr ""
11999
12000 #. type: textblock
12001 #: ../src/guestfs-actions.pod:2724 ../fish/guestfish-actions.pod:1865
12002 msgid ""
12003 "The disk image being inspected is not an installed operating system, but a "
12004 "I<bootable> install disk, live CD, or similar."
12005 msgstr ""
12006
12007 #. type: textblock
12008 #: ../src/guestfs-actions.pod:2729 ../fish/guestfish-actions.pod:1870
12009 msgid "The format of this disk image is not known."
12010 msgstr ""
12011
12012 # type: =head2
12013 #. type: =head2
12014 #: ../src/guestfs-actions.pod:2741
12015 msgid "guestfs_inspect_get_hostname"
12016 msgstr ""
12017
12018 # type: verbatim
12019 #. type: verbatim
12020 #: ../src/guestfs-actions.pod:2743
12021 #, no-wrap
12022 msgid ""
12023 " char *\n"
12024 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
12025 "                               const char *root);\n"
12026 "\n"
12027 msgstr ""
12028
12029 # type: textblock
12030 #. type: textblock
12031 #: ../src/guestfs-actions.pod:2750 ../fish/guestfish-actions.pod:1886
12032 msgid ""
12033 "This function returns the hostname of the operating system as found by "
12034 "inspection of the guest's configuration files."
12035 msgstr ""
12036
12037 # type: textblock
12038 #. type: textblock
12039 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1889
12040 msgid ""
12041 "If the hostname could not be determined, then the string C<unknown> is "
12042 "returned."
12043 msgstr ""
12044
12045 # type: textblock
12046 #. type: textblock
12047 #: ../src/guestfs-actions.pod:2761
12048 msgid "(Added in 1.7.9)"
12049 msgstr ""
12050
12051 # type: =head2
12052 #. type: =head2
12053 #: ../src/guestfs-actions.pod:2763
12054 msgid "guestfs_inspect_get_major_version"
12055 msgstr ""
12056
12057 # type: verbatim
12058 #. type: verbatim
12059 #: ../src/guestfs-actions.pod:2765
12060 #, no-wrap
12061 msgid ""
12062 " int\n"
12063 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
12064 "                                    const char *root);\n"
12065 "\n"
12066 msgstr ""
12067
12068 # type: textblock
12069 #. type: textblock
12070 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1901
12071 msgid ""
12072 "This returns the major version number of the inspected operating system."
12073 msgstr ""
12074
12075 # type: textblock
12076 #. type: textblock
12077 #: ../src/guestfs-actions.pod:2775 ../fish/guestfish-actions.pod:1904
12078 msgid ""
12079 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
12080 "popular public names used by the operating system.  Notably the operating "
12081 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
12082 "1).  You can find out the real versions corresponding to releases of Windows "
12083 "by consulting Wikipedia or MSDN."
12084 msgstr ""
12085
12086 # type: textblock
12087 #. type: textblock
12088 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:2802
12089 #: ../fish/guestfish-actions.pod:1911 ../fish/guestfish-actions.pod:1925
12090 msgid "If the version could not be determined, then C<0> is returned."
12091 msgstr ""
12092
12093 # type: =head2
12094 #. type: =head2
12095 #: ../src/guestfs-actions.pod:2790
12096 msgid "guestfs_inspect_get_minor_version"
12097 msgstr ""
12098
12099 # type: verbatim
12100 #. type: verbatim
12101 #: ../src/guestfs-actions.pod:2792
12102 #, no-wrap
12103 msgid ""
12104 " int\n"
12105 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
12106 "                                    const char *root);\n"
12107 "\n"
12108 msgstr ""
12109
12110 # type: textblock
12111 #. type: textblock
12112 #: ../src/guestfs-actions.pod:2799 ../fish/guestfish-actions.pod:1922
12113 msgid ""
12114 "This returns the minor version number of the inspected operating system."
12115 msgstr ""
12116
12117 # type: textblock
12118 #. type: textblock
12119 #: ../src/guestfs-actions.pod:2804
12120 msgid ""
12121 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12122 "C<guestfs_inspect_get_major_version>."
12123 msgstr ""
12124
12125 # type: =head2
12126 #. type: =head2
12127 #: ../src/guestfs-actions.pod:2811
12128 msgid "guestfs_inspect_get_mountpoints"
12129 msgstr ""
12130
12131 # type: verbatim
12132 #. type: verbatim
12133 #: ../src/guestfs-actions.pod:2813
12134 #, no-wrap
12135 msgid ""
12136 " char **\n"
12137 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
12138 "                                  const char *root);\n"
12139 "\n"
12140 msgstr ""
12141
12142 #. type: textblock
12143 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1937
12144 msgid ""
12145 "This returns a hash of where we think the filesystems associated with this "
12146 "operating system should be mounted.  Callers should note that this is at "
12147 "best an educated guess made by reading configuration files such as C</etc/"
12148 "fstab>.  I<In particular note> that this may return filesystems which are "
12149 "non-existent or not mountable and callers should be prepared to handle or "
12150 "ignore failures if they try to mount them."
12151 msgstr ""
12152
12153 # type: textblock
12154 #. type: textblock
12155 #: ../src/guestfs-actions.pod:2829 ../fish/guestfish-actions.pod:1946
12156 msgid ""
12157 "Each element in the returned hashtable has a key which is the path of the "
12158 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
12159 "mounted there (eg. C</dev/sda1>)."
12160 msgstr ""
12161
12162 # type: textblock
12163 #. type: textblock
12164 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:1951
12165 msgid ""
12166 "Non-mounted devices such as swap devices are I<not> returned in this list."
12167 msgstr ""
12168
12169 #. type: textblock
12170 #: ../src/guestfs-actions.pod:2837
12171 msgid ""
12172 "For operating systems like Windows which still use drive letters, this call "
12173 "will only return an entry for the first drive \"mounted on\" C</>.  For "
12174 "information about the mapping of drive letters to partitions, see "
12175 "C<guestfs_inspect_get_drive_mappings>."
12176 msgstr ""
12177
12178 # type: textblock
12179 #. type: textblock
12180 #: ../src/guestfs-actions.pod:2843
12181 msgid ""
12182 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12183 "C<guestfs_inspect_get_filesystems>."
12184 msgstr ""
12185
12186 # type: =head2
12187 #. type: =head2
12188 #: ../src/guestfs-actions.pod:2854
12189 msgid "guestfs_inspect_get_package_format"
12190 msgstr ""
12191
12192 # type: verbatim
12193 #. type: verbatim
12194 #: ../src/guestfs-actions.pod:2856
12195 #, no-wrap
12196 msgid ""
12197 " char *\n"
12198 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
12199 "                                     const char *root);\n"
12200 "\n"
12201 msgstr ""
12202
12203 # type: textblock
12204 #. type: textblock
12205 #: ../src/guestfs-actions.pod:2863
12206 msgid ""
12207 "This function and C<guestfs_inspect_get_package_management> return the "
12208 "package format and package management tool used by the inspected operating "
12209 "system.  For example for Fedora these functions would return C<rpm> (package "
12210 "format) and C<yum> (package management)."
12211 msgstr ""
12212
12213 # type: textblock
12214 #. type: textblock
12215 #: ../src/guestfs-actions.pod:2869 ../fish/guestfish-actions.pod:1976
12216 msgid ""
12217 "This returns the string C<unknown> if we could not determine the package "
12218 "format I<or> if the operating system does not have a real packaging system "
12219 "(eg. Windows)."
12220 msgstr ""
12221
12222 # type: textblock
12223 #. type: textblock
12224 #: ../src/guestfs-actions.pod:2873 ../fish/guestfish-actions.pod:1980
12225 msgid ""
12226 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
12227 "Future versions of libguestfs may return other strings."
12228 msgstr ""
12229
12230 # type: textblock
12231 #. type: textblock
12232 #: ../src/guestfs-actions.pod:2881 ../src/guestfs-actions.pod:2912
12233 msgid "(Added in 1.7.5)"
12234 msgstr ""
12235
12236 # type: =head2
12237 #. type: =head2
12238 #: ../src/guestfs-actions.pod:2883
12239 msgid "guestfs_inspect_get_package_management"
12240 msgstr ""
12241
12242 # type: verbatim
12243 #. type: verbatim
12244 #: ../src/guestfs-actions.pod:2885
12245 #, no-wrap
12246 msgid ""
12247 " char *\n"
12248 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
12249 "                                         const char *root);\n"
12250 "\n"
12251 msgstr ""
12252
12253 # type: textblock
12254 #. type: textblock
12255 #: ../src/guestfs-actions.pod:2892
12256 msgid ""
12257 "C<guestfs_inspect_get_package_format> and this function return the package "
12258 "format and package management tool used by the inspected operating system.  "
12259 "For example for Fedora these functions would return C<rpm> (package format) "
12260 "and C<yum> (package management)."
12261 msgstr ""
12262
12263 # type: textblock
12264 #. type: textblock
12265 #: ../src/guestfs-actions.pod:2898 ../fish/guestfish-actions.pod:1998
12266 msgid ""
12267 "This returns the string C<unknown> if we could not determine the package "
12268 "management tool I<or> if the operating system does not have a real packaging "
12269 "system (eg. Windows)."
12270 msgstr ""
12271
12272 # type: textblock
12273 #. type: textblock
12274 #: ../src/guestfs-actions.pod:2902 ../fish/guestfish-actions.pod:2002
12275 msgid ""
12276 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12277 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12278 "libguestfs may return other strings."
12279 msgstr ""
12280
12281 # type: =head2
12282 #. type: =head2
12283 #: ../src/guestfs-actions.pod:2914
12284 msgid "guestfs_inspect_get_product_name"
12285 msgstr ""
12286
12287 # type: verbatim
12288 #. type: verbatim
12289 #: ../src/guestfs-actions.pod:2916
12290 #, no-wrap
12291 msgid ""
12292 " char *\n"
12293 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12294 "                                   const char *root);\n"
12295 "\n"
12296 msgstr ""
12297
12298 # type: textblock
12299 #. type: textblock
12300 #: ../src/guestfs-actions.pod:2923 ../fish/guestfish-actions.pod:2016
12301 msgid ""
12302 "This returns the product name of the inspected operating system.  The "
12303 "product name is generally some freeform string which can be displayed to the "
12304 "user, but should not be parsed by programs."
12305 msgstr ""
12306
12307 # type: textblock
12308 #. type: textblock
12309 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:2021
12310 msgid ""
12311 "If the product name could not be determined, then the string C<unknown> is "
12312 "returned."
12313 msgstr ""
12314
12315 #. type: =head2
12316 #: ../src/guestfs-actions.pod:2938
12317 msgid "guestfs_inspect_get_product_variant"
12318 msgstr ""
12319
12320 #. type: verbatim
12321 #: ../src/guestfs-actions.pod:2940
12322 #, no-wrap
12323 msgid ""
12324 " char *\n"
12325 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12326 "                                      const char *root);\n"
12327 "\n"
12328 msgstr ""
12329
12330 #. type: textblock
12331 #: ../src/guestfs-actions.pod:2947 ../fish/guestfish-actions.pod:2033
12332 msgid "This returns the product variant of the inspected operating system."
12333 msgstr ""
12334
12335 #. type: textblock
12336 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:2036
12337 msgid ""
12338 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12339 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12340 "is usually a string such as C<Client> or C<Server> (other values are "
12341 "possible).  This can be used to distinguish consumer and enterprise versions "
12342 "of Windows that have the same version number (for example, Windows 7 and "
12343 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12344 "the latter is C<Server>)."
12345 msgstr ""
12346
12347 #. type: textblock
12348 #: ../src/guestfs-actions.pod:2959 ../fish/guestfish-actions.pod:2045
12349 msgid ""
12350 "For enterprise Linux guests, in future we intend this to return the product "
12351 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12352 "implemented at present."
12353 msgstr ""
12354
12355 #. type: textblock
12356 #: ../src/guestfs-actions.pod:2963 ../fish/guestfish-actions.pod:2049
12357 msgid ""
12358 "If the product variant could not be determined, then the string C<unknown> "
12359 "is returned."
12360 msgstr ""
12361
12362 #. type: textblock
12363 #: ../src/guestfs-actions.pod:2966
12364 msgid ""
12365 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12366 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12367 msgstr ""
12368
12369 # type: =head2
12370 #. type: =head2
12371 #: ../src/guestfs-actions.pod:2973
12372 msgid "guestfs_inspect_get_roots"
12373 msgstr ""
12374
12375 # type: verbatim
12376 #. type: verbatim
12377 #: ../src/guestfs-actions.pod:2975
12378 #, no-wrap
12379 msgid ""
12380 " char **\n"
12381 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12382 "\n"
12383 msgstr ""
12384
12385 # type: textblock
12386 #. type: textblock
12387 #: ../src/guestfs-actions.pod:2978
12388 msgid ""
12389 "This function is a convenient way to get the list of root devices, as "
12390 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12391 "the whole inspection process."
12392 msgstr ""
12393
12394 # type: textblock
12395 #. type: textblock
12396 #: ../src/guestfs-actions.pod:2982
12397 msgid ""
12398 "This returns an empty list if either no root devices were found or the "
12399 "caller has not called C<guestfs_inspect_os>."
12400 msgstr ""
12401
12402 # type: textblock
12403 #. type: textblock
12404 #: ../src/guestfs-actions.pod:2991
12405 msgid "(Added in 1.7.3)"
12406 msgstr ""
12407
12408 # type: =head2
12409 #. type: =head2
12410 #: ../src/guestfs-actions.pod:2993
12411 msgid "guestfs_inspect_get_type"
12412 msgstr ""
12413
12414 # type: verbatim
12415 #. type: verbatim
12416 #: ../src/guestfs-actions.pod:2995
12417 #, no-wrap
12418 msgid ""
12419 " char *\n"
12420 " guestfs_inspect_get_type (guestfs_h *g,\n"
12421 "                           const char *root);\n"
12422 "\n"
12423 msgstr ""
12424
12425 # type: textblock
12426 #. type: textblock
12427 #: ../src/guestfs-actions.pod:3002 ../fish/guestfish-actions.pod:2076
12428 msgid ""
12429 "This returns the type of the inspected operating system.  Currently defined "
12430 "types are:"
12431 msgstr ""
12432
12433 # type: =item
12434 #. type: =item
12435 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2081
12436 msgid "\"linux\""
12437 msgstr ""
12438
12439 # type: textblock
12440 #. type: textblock
12441 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2083
12442 msgid "Any Linux-based operating system."
12443 msgstr ""
12444
12445 # type: textblock
12446 #. type: textblock
12447 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2087
12448 msgid "Any Microsoft Windows operating system."
12449 msgstr ""
12450
12451 # type: =item
12452 #. type: =item
12453 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2089
12454 msgid "\"freebsd\""
12455 msgstr ""
12456
12457 # type: textblock
12458 #. type: textblock
12459 #: ../src/guestfs-actions.pod:3017 ../fish/guestfish-actions.pod:2091
12460 msgid "FreeBSD."
12461 msgstr ""
12462
12463 # type: textblock
12464 #. type: textblock
12465 #: ../src/guestfs-actions.pod:3021 ../fish/guestfish-actions.pod:2095
12466 msgid "The operating system type could not be determined."
12467 msgstr ""
12468
12469 #. type: =head2
12470 #: ../src/guestfs-actions.pod:3035
12471 msgid "guestfs_inspect_get_windows_current_control_set"
12472 msgstr ""
12473
12474 #. type: verbatim
12475 #: ../src/guestfs-actions.pod:3037
12476 #, no-wrap
12477 msgid ""
12478 " char *\n"
12479 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
12480 "                                                  const char *root);\n"
12481 "\n"
12482 msgstr ""
12483
12484 #. type: textblock
12485 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2111
12486 msgid ""
12487 "This returns the Windows CurrentControlSet of the inspected guest.  The "
12488 "CurrentControlSet is a registry key name such as C<ControlSet001>."
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../src/guestfs-actions.pod:3047 ../fish/guestfish-actions.pod:2114
12493 msgid ""
12494 "This call assumes that the guest is Windows and that the Registry could be "
12495 "examined by inspection.  If this is not the case then an error is returned."
12496 msgstr ""
12497
12498 # type: =head2
12499 #. type: =head2
12500 #: ../src/guestfs-actions.pod:3056
12501 msgid "guestfs_inspect_get_windows_systemroot"
12502 msgstr ""
12503
12504 # type: verbatim
12505 #. type: verbatim
12506 #: ../src/guestfs-actions.pod:3058
12507 #, no-wrap
12508 msgid ""
12509 " char *\n"
12510 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12511 "                                         const char *root);\n"
12512 "\n"
12513 msgstr ""
12514
12515 # type: textblock
12516 #. type: textblock
12517 #: ../src/guestfs-actions.pod:3065 ../fish/guestfish-actions.pod:2127
12518 msgid ""
12519 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12520 "is a directory path such as C</WINDOWS>."
12521 msgstr ""
12522
12523 # type: textblock
12524 #. type: textblock
12525 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2130
12526 msgid ""
12527 "This call assumes that the guest is Windows and that the systemroot could be "
12528 "determined by inspection.  If this is not the case then an error is returned."
12529 msgstr ""
12530
12531 # type: textblock
12532 #. type: textblock
12533 #: ../src/guestfs-actions.pod:3077
12534 msgid "(Added in 1.5.25)"
12535 msgstr ""
12536
12537 #. type: =head2
12538 #: ../src/guestfs-actions.pod:3079
12539 msgid "guestfs_inspect_is_live"
12540 msgstr ""
12541
12542 #. type: verbatim
12543 #: ../src/guestfs-actions.pod:3081
12544 #, no-wrap
12545 msgid ""
12546 " int\n"
12547 " guestfs_inspect_is_live (guestfs_h *g,\n"
12548 "                          const char *root);\n"
12549 "\n"
12550 msgstr ""
12551
12552 #. type: textblock
12553 #: ../src/guestfs-actions.pod:3088
12554 msgid ""
12555 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12556 "disk), then this returns true if a live image was detected on the disk."
12557 msgstr ""
12558
12559 #. type: =head2
12560 #: ../src/guestfs-actions.pod:3096
12561 msgid "guestfs_inspect_is_multipart"
12562 msgstr ""
12563
12564 #. type: verbatim
12565 #: ../src/guestfs-actions.pod:3098
12566 #, no-wrap
12567 msgid ""
12568 " int\n"
12569 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12570 "                               const char *root);\n"
12571 "\n"
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../src/guestfs-actions.pod:3105
12576 msgid ""
12577 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12578 "disk), then this returns true if the disk is part of a set."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../src/guestfs-actions.pod:3113
12583 msgid "guestfs_inspect_is_netinst"
12584 msgstr ""
12585
12586 #. type: verbatim
12587 #: ../src/guestfs-actions.pod:3115
12588 #, no-wrap
12589 msgid ""
12590 " int\n"
12591 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12592 "                             const char *root);\n"
12593 "\n"
12594 msgstr ""
12595
12596 #. type: textblock
12597 #: ../src/guestfs-actions.pod:3122
12598 msgid ""
12599 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12600 "disk), then this returns true if the disk is a network installer, ie. not a "
12601 "self-contained install CD but one which is likely to require network access "
12602 "to complete the install."
12603 msgstr ""
12604
12605 # type: =head2
12606 #. type: =head2
12607 #: ../src/guestfs-actions.pod:3132
12608 msgid "guestfs_inspect_list_applications"
12609 msgstr ""
12610
12611 # type: verbatim
12612 #. type: verbatim
12613 #: ../src/guestfs-actions.pod:3134
12614 #, no-wrap
12615 msgid ""
12616 " struct guestfs_application_list *\n"
12617 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12618 "                                    const char *root);\n"
12619 "\n"
12620 msgstr ""
12621
12622 # type: textblock
12623 #. type: textblock
12624 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2184
12625 msgid "Return the list of applications installed in the operating system."
12626 msgstr ""
12627
12628 # type: textblock
12629 #. type: textblock
12630 #: ../src/guestfs-actions.pod:3143
12631 msgid ""
12632 "I<Note:> This call works differently from other parts of the inspection "
12633 "API.  You have to call C<guestfs_inspect_os>, then "
12634 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12635 "this.  Listing applications is a significantly more difficult operation "
12636 "which requires access to the full filesystem.  Also note that unlike the "
12637 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12638 "the libguestfs handle, this call actually reads parts of the mounted "
12639 "filesystems during the call."
12640 msgstr ""
12641
12642 # type: textblock
12643 #. type: textblock
12644 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2196
12645 msgid ""
12646 "This returns an empty list if the inspection code was not able to determine "
12647 "the list of applications."
12648 msgstr ""
12649
12650 # type: textblock
12651 #. type: textblock
12652 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2199
12653 msgid "The application structure contains the following fields:"
12654 msgstr ""
12655
12656 # type: =item
12657 #. type: =item
12658 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2203
12659 msgid "C<app_name>"
12660 msgstr ""
12661
12662 # type: textblock
12663 #. type: textblock
12664 #: ../src/guestfs-actions.pod:3162 ../fish/guestfish-actions.pod:2205
12665 msgid ""
12666 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12667 "guests, this is the package name."
12668 msgstr ""
12669
12670 # type: =item
12671 #. type: =item
12672 #: ../src/guestfs-actions.pod:3165 ../fish/guestfish-actions.pod:2208
12673 msgid "C<app_display_name>"
12674 msgstr ""
12675
12676 # type: textblock
12677 #. type: textblock
12678 #: ../src/guestfs-actions.pod:3167 ../fish/guestfish-actions.pod:2210
12679 msgid ""
12680 "The display name of the application, sometimes localized to the install "
12681 "language of the guest operating system."
12682 msgstr ""
12683
12684 # type: textblock
12685 #. type: textblock
12686 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2213
12687 msgid ""
12688 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12689 "to display something can use C<app_name> instead."
12690 msgstr ""
12691
12692 # type: =item
12693 #. type: =item
12694 #: ../src/guestfs-actions.pod:3173 ../fish/guestfish-actions.pod:2216
12695 msgid "C<app_epoch>"
12696 msgstr ""
12697
12698 # type: textblock
12699 #. type: textblock
12700 #: ../src/guestfs-actions.pod:3175 ../fish/guestfish-actions.pod:2218
12701 msgid ""
12702 "For package managers which use epochs, this contains the epoch of the "
12703 "package (an integer).  If unavailable, this is returned as C<0>."
12704 msgstr ""
12705
12706 # type: =item
12707 #. type: =item
12708 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2221
12709 msgid "C<app_version>"
12710 msgstr ""
12711
12712 # type: textblock
12713 #. type: textblock
12714 #: ../src/guestfs-actions.pod:3180 ../fish/guestfish-actions.pod:2223
12715 msgid ""
12716 "The version string of the application or package.  If unavailable this is "
12717 "returned as an empty string C<\"\">."
12718 msgstr ""
12719
12720 # type: =item
12721 #. type: =item
12722 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2226
12723 msgid "C<app_release>"
12724 msgstr ""
12725
12726 # type: textblock
12727 #. type: textblock
12728 #: ../src/guestfs-actions.pod:3185 ../fish/guestfish-actions.pod:2228
12729 msgid ""
12730 "The release string of the application or package, for package managers that "
12731 "use this.  If unavailable this is returned as an empty string C<\"\">."
12732 msgstr ""
12733
12734 # type: =item
12735 #. type: =item
12736 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2232
12737 msgid "C<app_install_path>"
12738 msgstr ""
12739
12740 # type: textblock
12741 #. type: textblock
12742 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2234
12743 msgid ""
12744 "The installation path of the application (on operating systems such as "
12745 "Windows which use installation paths).  This path is in the format used by "
12746 "the guest operating system, it is not a libguestfs path."
12747 msgstr ""
12748
12749 # type: textblock
12750 #. type: textblock
12751 #: ../src/guestfs-actions.pod:3196 ../fish/guestfish-actions.pod:2239
12752 msgid "If unavailable this is returned as an empty string C<\"\">."
12753 msgstr ""
12754
12755 # type: =item
12756 #. type: =item
12757 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2241
12758 msgid "C<app_trans_path>"
12759 msgstr ""
12760
12761 # type: textblock
12762 #. type: textblock
12763 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2243
12764 msgid ""
12765 "The install path translated into a libguestfs path.  If unavailable this is "
12766 "returned as an empty string C<\"\">."
12767 msgstr ""
12768
12769 # type: =item
12770 #. type: =item
12771 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2246
12772 msgid "C<app_publisher>"
12773 msgstr ""
12774
12775 # type: textblock
12776 #. type: textblock
12777 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2248
12778 msgid ""
12779 "The name of the publisher of the application, for package managers that use "
12780 "this.  If unavailable this is returned as an empty string C<\"\">."
12781 msgstr ""
12782
12783 # type: =item
12784 #. type: =item
12785 #: ../src/guestfs-actions.pod:3209 ../fish/guestfish-actions.pod:2252
12786 msgid "C<app_url>"
12787 msgstr ""
12788
12789 # type: textblock
12790 #. type: textblock
12791 #: ../src/guestfs-actions.pod:3211 ../fish/guestfish-actions.pod:2254
12792 msgid ""
12793 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12794 "returned as an empty string C<\"\">."
12795 msgstr ""
12796
12797 # type: =item
12798 #. type: =item
12799 #: ../src/guestfs-actions.pod:3214 ../fish/guestfish-actions.pod:2257
12800 msgid "C<app_source_package>"
12801 msgstr ""
12802
12803 # type: textblock
12804 #. type: textblock
12805 #: ../src/guestfs-actions.pod:3216 ../fish/guestfish-actions.pod:2259
12806 msgid ""
12807 "For packaging systems which support this, the name of the source package.  "
12808 "If unavailable this is returned as an empty string C<\"\">."
12809 msgstr ""
12810
12811 # type: =item
12812 #. type: =item
12813 #: ../src/guestfs-actions.pod:3219 ../fish/guestfish-actions.pod:2262
12814 msgid "C<app_summary>"
12815 msgstr ""
12816
12817 # type: textblock
12818 #. type: textblock
12819 #: ../src/guestfs-actions.pod:3221 ../fish/guestfish-actions.pod:2264
12820 msgid ""
12821 "A short (usually one line) description of the application or package.  If "
12822 "unavailable this is returned as an empty string C<\"\">."
12823 msgstr ""
12824
12825 # type: =item
12826 #. type: =item
12827 #: ../src/guestfs-actions.pod:3224 ../fish/guestfish-actions.pod:2267
12828 msgid "C<app_description>"
12829 msgstr ""
12830
12831 # type: textblock
12832 #. type: textblock
12833 #: ../src/guestfs-actions.pod:3226 ../fish/guestfish-actions.pod:2269
12834 msgid ""
12835 "A longer description of the application or package.  If unavailable this is "
12836 "returned as an empty string C<\"\">."
12837 msgstr ""
12838
12839 # type: textblock
12840 #. type: textblock
12841 #: ../src/guestfs-actions.pod:3233
12842 msgid ""
12843 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12844 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
12845 "after use>."
12846 msgstr ""
12847
12848 # type: textblock
12849 #. type: textblock
12850 #: ../src/guestfs-actions.pod:3237
12851 msgid "(Added in 1.7.8)"
12852 msgstr ""
12853
12854 # type: =head2
12855 #. type: =head2
12856 #: ../src/guestfs-actions.pod:3239
12857 msgid "guestfs_inspect_os"
12858 msgstr ""
12859
12860 # type: verbatim
12861 #. type: verbatim
12862 #: ../src/guestfs-actions.pod:3241
12863 #, no-wrap
12864 msgid ""
12865 " char **\n"
12866 " guestfs_inspect_os (guestfs_h *g);\n"
12867 "\n"
12868 msgstr ""
12869
12870 # type: textblock
12871 #. type: textblock
12872 #: ../src/guestfs-actions.pod:3244 ../fish/guestfish-actions.pod:2280
12873 msgid ""
12874 "This function uses other libguestfs functions and certain heuristics to "
12875 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12876 "for operating systems."
12877 msgstr ""
12878
12879 # type: textblock
12880 #. type: textblock
12881 #: ../src/guestfs-actions.pod:3248 ../fish/guestfish-actions.pod:2284
12882 msgid "The list returned is empty if no operating systems were found."
12883 msgstr ""
12884
12885 # type: textblock
12886 #. type: textblock
12887 #: ../src/guestfs-actions.pod:3250 ../fish/guestfish-actions.pod:2286
12888 msgid ""
12889 "If one operating system was found, then this returns a list with a single "
12890 "element, which is the name of the root filesystem of this operating system.  "
12891 "It is also possible for this function to return a list containing more than "
12892 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12893 "element being the root filesystem of one of the operating systems."
12894 msgstr ""
12895
12896 # type: textblock
12897 #. type: textblock
12898 #: ../src/guestfs-actions.pod:3257
12899 msgid ""
12900 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
12901 "functions in order to query further information about each operating system, "
12902 "such as the name and version."
12903 msgstr ""
12904
12905 # type: textblock
12906 #. type: textblock
12907 #: ../src/guestfs-actions.pod:3262
12908 msgid ""
12909 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
12910 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
12911 "the contents.  This should be called with no disks currently mounted.  The "
12912 "function may also use Augeas, so any existing Augeas handle will be closed."
12913 msgstr ""
12914
12915 # type: textblock
12916 #. type: textblock
12917 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2304
12918 msgid ""
12919 "This function cannot decrypt encrypted disks.  The caller must do that first "
12920 "(supplying the necessary keys) if the disk is encrypted."
12921 msgstr ""
12922
12923 # type: textblock
12924 #. type: textblock
12925 #: ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:3564
12926 #: ../src/guestfs-actions.pod:3626
12927 msgid "See also C<guestfs_list_filesystems>."
12928 msgstr ""
12929
12930 # type: =head2
12931 #. type: =head2
12932 #: ../src/guestfs-actions.pod:3282
12933 msgid "guestfs_is_blockdev"
12934 msgstr ""
12935
12936 # type: verbatim
12937 #. type: verbatim
12938 #: ../src/guestfs-actions.pod:3284
12939 #, no-wrap
12940 msgid ""
12941 " int\n"
12942 " guestfs_is_blockdev (guestfs_h *g,\n"
12943 "                      const char *path);\n"
12944 "\n"
12945 msgstr ""
12946
12947 # type: textblock
12948 #. type: textblock
12949 #: ../src/guestfs-actions.pod:3288 ../fish/guestfish-actions.pod:2316
12950 msgid ""
12951 "This returns C<true> if and only if there is a block device with the given "
12952 "C<path> name."
12953 msgstr ""
12954
12955 # type: textblock
12956 #. type: textblock
12957 #: ../src/guestfs-actions.pod:3291 ../src/guestfs-actions.pod:3320
12958 #: ../src/guestfs-actions.pod:3350 ../src/guestfs-actions.pod:3365
12959 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3437
12960 #: ../src/guestfs-actions.pod:3452
12961 msgid "See also C<guestfs_stat>."
12962 msgstr ""
12963
12964 # type: textblock
12965 #. type: textblock
12966 #: ../src/guestfs-actions.pod:3295 ../src/guestfs-actions.pod:3324
12967 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:3441
12968 #: ../src/guestfs-actions.pod:3456
12969 msgid "(Added in 1.5.10)"
12970 msgstr ""
12971
12972 # type: =head2
12973 #. type: =head2
12974 #: ../src/guestfs-actions.pod:3297
12975 msgid "guestfs_is_busy"
12976 msgstr ""
12977
12978 # type: verbatim
12979 #. type: verbatim
12980 #: ../src/guestfs-actions.pod:3299
12981 #, no-wrap
12982 msgid ""
12983 " int\n"
12984 " guestfs_is_busy (guestfs_h *g);\n"
12985 "\n"
12986 msgstr ""
12987
12988 # type: textblock
12989 #. type: textblock
12990 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2325
12991 msgid ""
12992 "This returns true iff this handle is busy processing a command (in the "
12993 "C<BUSY> state)."
12994 msgstr ""
12995
12996 # type: =head2
12997 #. type: =head2
12998 #: ../src/guestfs-actions.pod:3311
12999 msgid "guestfs_is_chardev"
13000 msgstr ""
13001
13002 # type: verbatim
13003 #. type: verbatim
13004 #: ../src/guestfs-actions.pod:3313
13005 #, no-wrap
13006 msgid ""
13007 " int\n"
13008 " guestfs_is_chardev (guestfs_h *g,\n"
13009 "                     const char *path);\n"
13010 "\n"
13011 msgstr ""
13012
13013 # type: textblock
13014 #. type: textblock
13015 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2334
13016 msgid ""
13017 "This returns C<true> if and only if there is a character device with the "
13018 "given C<path> name."
13019 msgstr ""
13020
13021 # type: =head2
13022 #. type: =head2
13023 #: ../src/guestfs-actions.pod:3326
13024 msgid "guestfs_is_config"
13025 msgstr ""
13026
13027 # type: verbatim
13028 #. type: verbatim
13029 #: ../src/guestfs-actions.pod:3328
13030 #, no-wrap
13031 msgid ""
13032 " int\n"
13033 " guestfs_is_config (guestfs_h *g);\n"
13034 "\n"
13035 msgstr ""
13036
13037 # type: textblock
13038 #. type: textblock
13039 #: ../src/guestfs-actions.pod:3331 ../fish/guestfish-actions.pod:2343
13040 msgid ""
13041 "This returns true iff this handle is being configured (in the C<CONFIG> "
13042 "state)."
13043 msgstr ""
13044
13045 # type: =head2
13046 #. type: =head2
13047 #: ../src/guestfs-actions.pod:3340
13048 msgid "guestfs_is_dir"
13049 msgstr ""
13050
13051 # type: verbatim
13052 #. type: verbatim
13053 #: ../src/guestfs-actions.pod:3342
13054 #, no-wrap
13055 msgid ""
13056 " int\n"
13057 " guestfs_is_dir (guestfs_h *g,\n"
13058 "                 const char *path);\n"
13059 "\n"
13060 msgstr ""
13061
13062 # type: textblock
13063 #. type: textblock
13064 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2352
13065 msgid ""
13066 "This returns C<true> if and only if there is a directory with the given "
13067 "C<path> name.  Note that it returns false for other objects like files."
13068 msgstr ""
13069
13070 # type: =head2
13071 #. type: =head2
13072 #: ../src/guestfs-actions.pod:3356
13073 msgid "guestfs_is_fifo"
13074 msgstr ""
13075
13076 # type: verbatim
13077 #. type: verbatim
13078 #: ../src/guestfs-actions.pod:3358
13079 #, no-wrap
13080 msgid ""
13081 " int\n"
13082 " guestfs_is_fifo (guestfs_h *g,\n"
13083 "                  const char *path);\n"
13084 "\n"
13085 msgstr ""
13086
13087 # type: textblock
13088 #. type: textblock
13089 #: ../src/guestfs-actions.pod:3362 ../fish/guestfish-actions.pod:2362
13090 msgid ""
13091 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
13092 "given C<path> name."
13093 msgstr ""
13094
13095 # type: =head2
13096 #. type: =head2
13097 #: ../src/guestfs-actions.pod:3371
13098 msgid "guestfs_is_file"
13099 msgstr ""
13100
13101 # type: verbatim
13102 #. type: verbatim
13103 #: ../src/guestfs-actions.pod:3373
13104 #, no-wrap
13105 msgid ""
13106 " int\n"
13107 " guestfs_is_file (guestfs_h *g,\n"
13108 "                  const char *path);\n"
13109 "\n"
13110 msgstr ""
13111
13112 # type: textblock
13113 #. type: textblock
13114 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2371
13115 msgid ""
13116 "This returns C<true> if and only if there is a regular file with the given "
13117 "C<path> name.  Note that it returns false for other objects like directories."
13118 msgstr ""
13119
13120 # type: =head2
13121 #. type: =head2
13122 #: ../src/guestfs-actions.pod:3387
13123 msgid "guestfs_is_launching"
13124 msgstr ""
13125
13126 # type: verbatim
13127 #. type: verbatim
13128 #: ../src/guestfs-actions.pod:3389
13129 #, no-wrap
13130 msgid ""
13131 " int\n"
13132 " guestfs_is_launching (guestfs_h *g);\n"
13133 "\n"
13134 msgstr ""
13135
13136 # type: textblock
13137 #. type: textblock
13138 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2381
13139 msgid ""
13140 "This returns true iff this handle is launching the subprocess (in the "
13141 "C<LAUNCHING> state)."
13142 msgstr ""
13143
13144 # type: =head2
13145 #. type: =head2
13146 #: ../src/guestfs-actions.pod:3401
13147 msgid "guestfs_is_lv"
13148 msgstr ""
13149
13150 # type: verbatim
13151 #. type: verbatim
13152 #: ../src/guestfs-actions.pod:3403
13153 #, no-wrap
13154 msgid ""
13155 " int\n"
13156 " guestfs_is_lv (guestfs_h *g,\n"
13157 "                const char *device);\n"
13158 "\n"
13159 msgstr ""
13160
13161 # type: textblock
13162 #. type: textblock
13163 #: ../src/guestfs-actions.pod:3407 ../fish/guestfish-actions.pod:2390
13164 msgid ""
13165 "This command tests whether C<device> is a logical volume, and returns true "
13166 "iff this is the case."
13167 msgstr ""
13168
13169 # type: =head2
13170 #. type: =head2
13171 #: ../src/guestfs-actions.pod:3414
13172 msgid "guestfs_is_ready"
13173 msgstr ""
13174
13175 # type: verbatim
13176 #. type: verbatim
13177 #: ../src/guestfs-actions.pod:3416
13178 #, no-wrap
13179 msgid ""
13180 " int\n"
13181 " guestfs_is_ready (guestfs_h *g);\n"
13182 "\n"
13183 msgstr ""
13184
13185 # type: textblock
13186 #. type: textblock
13187 #: ../src/guestfs-actions.pod:3419 ../fish/guestfish-actions.pod:2397
13188 msgid ""
13189 "This returns true iff this handle is ready to accept commands (in the "
13190 "C<READY> state)."
13191 msgstr ""
13192
13193 # type: =head2
13194 #. type: =head2
13195 #: ../src/guestfs-actions.pod:3428
13196 msgid "guestfs_is_socket"
13197 msgstr ""
13198
13199 # type: verbatim
13200 #. type: verbatim
13201 #: ../src/guestfs-actions.pod:3430
13202 #, no-wrap
13203 msgid ""
13204 " int\n"
13205 " guestfs_is_socket (guestfs_h *g,\n"
13206 "                    const char *path);\n"
13207 "\n"
13208 msgstr ""
13209
13210 # type: textblock
13211 #. type: textblock
13212 #: ../src/guestfs-actions.pod:3434 ../fish/guestfish-actions.pod:2406
13213 msgid ""
13214 "This returns C<true> if and only if there is a Unix domain socket with the "
13215 "given C<path> name."
13216 msgstr ""
13217
13218 # type: =head2
13219 #. type: =head2
13220 #: ../src/guestfs-actions.pod:3443
13221 msgid "guestfs_is_symlink"
13222 msgstr ""
13223
13224 # type: verbatim
13225 #. type: verbatim
13226 #: ../src/guestfs-actions.pod:3445
13227 #, no-wrap
13228 msgid ""
13229 " int\n"
13230 " guestfs_is_symlink (guestfs_h *g,\n"
13231 "                     const char *path);\n"
13232 "\n"
13233 msgstr ""
13234
13235 # type: textblock
13236 #. type: textblock
13237 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2415
13238 msgid ""
13239 "This returns C<true> if and only if there is a symbolic link with the given "
13240 "C<path> name."
13241 msgstr ""
13242
13243 # type: =head2
13244 #. type: =head2
13245 #: ../src/guestfs-actions.pod:3458
13246 msgid "guestfs_kill_subprocess"
13247 msgstr ""
13248
13249 # type: verbatim
13250 #. type: verbatim
13251 #: ../src/guestfs-actions.pod:3460
13252 #, no-wrap
13253 msgid ""
13254 " int\n"
13255 " guestfs_kill_subprocess (guestfs_h *g);\n"
13256 "\n"
13257 msgstr ""
13258
13259 # type: textblock
13260 #. type: textblock
13261 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2424
13262 msgid "This kills the qemu subprocess.  You should never need to call this."
13263 msgstr ""
13264
13265 # type: =head2
13266 #. type: =head2
13267 #: ../src/guestfs-actions.pod:3469
13268 msgid "guestfs_launch"
13269 msgstr ""
13270
13271 # type: verbatim
13272 #. type: verbatim
13273 #: ../src/guestfs-actions.pod:3471
13274 #, no-wrap
13275 msgid ""
13276 " int\n"
13277 " guestfs_launch (guestfs_h *g);\n"
13278 "\n"
13279 msgstr ""
13280
13281 # type: textblock
13282 #. type: textblock
13283 #: ../src/guestfs-actions.pod:3474 ../fish/guestfish-actions.pod:2432
13284 msgid ""
13285 "Internally libguestfs is implemented by running a virtual machine using "
13286 "L<qemu(1)>."
13287 msgstr ""
13288
13289 # type: textblock
13290 #. type: textblock
13291 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2435
13292 msgid ""
13293 "You should call this after configuring the handle (eg. adding drives) but "
13294 "before performing any actions."
13295 msgstr ""
13296
13297 # type: =head2
13298 #. type: =head2
13299 #: ../src/guestfs-actions.pod:3489
13300 msgid "guestfs_lchown"
13301 msgstr ""
13302
13303 # type: verbatim
13304 #. type: verbatim
13305 #: ../src/guestfs-actions.pod:3491
13306 #, no-wrap
13307 msgid ""
13308 " int\n"
13309 " guestfs_lchown (guestfs_h *g,\n"
13310 "                 int owner,\n"
13311 "                 int group,\n"
13312 "                 const char *path);\n"
13313 "\n"
13314 msgstr ""
13315
13316 # type: textblock
13317 #. type: textblock
13318 #: ../src/guestfs-actions.pod:3497
13319 msgid ""
13320 "Change the file owner to C<owner> and group to C<group>.  This is like "
13321 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13322 "changed, not the target."
13323 msgstr ""
13324
13325 # type: =head2
13326 #. type: =head2
13327 #: ../src/guestfs-actions.pod:3509
13328 msgid "guestfs_lgetxattr"
13329 msgstr ""
13330
13331 # type: verbatim
13332 #. type: verbatim
13333 #: ../src/guestfs-actions.pod:3511
13334 #, no-wrap
13335 msgid ""
13336 " char *\n"
13337 " guestfs_lgetxattr (guestfs_h *g,\n"
13338 "                    const char *path,\n"
13339 "                    const char *name,\n"
13340 "                    size_t *size_r);\n"
13341 "\n"
13342 msgstr ""
13343
13344 # type: textblock
13345 #. type: textblock
13346 #: ../src/guestfs-actions.pod:3517 ../fish/guestfish-actions.pod:2454
13347 msgid ""
13348 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13349 "is a symlink, then this call returns an extended attribute from the symlink."
13350 msgstr ""
13351
13352 # type: textblock
13353 #. type: textblock
13354 #: ../src/guestfs-actions.pod:3531
13355 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13356 msgstr ""
13357
13358 # type: =head2
13359 #. type: =head2
13360 #: ../src/guestfs-actions.pod:3539
13361 msgid "guestfs_lgetxattrs"
13362 msgstr ""
13363
13364 # type: verbatim
13365 #. type: verbatim
13366 #: ../src/guestfs-actions.pod:3541
13367 #, no-wrap
13368 msgid ""
13369 " struct guestfs_xattr_list *\n"
13370 " guestfs_lgetxattrs (guestfs_h *g,\n"
13371 "                     const char *path);\n"
13372 "\n"
13373 msgstr ""
13374
13375 # type: textblock
13376 #. type: textblock
13377 #: ../src/guestfs-actions.pod:3545
13378 msgid ""
13379 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13380 "then it returns the extended attributes of the link itself."
13381 msgstr ""
13382
13383 # type: =head2
13384 #. type: =head2
13385 #: ../src/guestfs-actions.pod:3555
13386 msgid "guestfs_list_devices"
13387 msgstr ""
13388
13389 # type: verbatim
13390 #. type: verbatim
13391 #: ../src/guestfs-actions.pod:3557
13392 #, no-wrap
13393 msgid ""
13394 " char **\n"
13395 " guestfs_list_devices (guestfs_h *g);\n"
13396 "\n"
13397 msgstr ""
13398
13399 # type: textblock
13400 #. type: textblock
13401 #: ../src/guestfs-actions.pod:3560 ../fish/guestfish-actions.pod:2482
13402 msgid "List all the block devices."
13403 msgstr ""
13404
13405 # type: textblock
13406 #. type: textblock
13407 #: ../src/guestfs-actions.pod:3562 ../fish/guestfish-actions.pod:2484
13408 msgid "The full block device names are returned, eg. C</dev/sda>."
13409 msgstr ""
13410
13411 # type: =head2
13412 #. type: =head2
13413 #: ../src/guestfs-actions.pod:3572
13414 msgid "guestfs_list_filesystems"
13415 msgstr ""
13416
13417 # type: verbatim
13418 #. type: verbatim
13419 #: ../src/guestfs-actions.pod:3574
13420 #, no-wrap
13421 msgid ""
13422 " char **\n"
13423 " guestfs_list_filesystems (guestfs_h *g);\n"
13424 "\n"
13425 msgstr ""
13426
13427 # type: textblock
13428 #. type: textblock
13429 #: ../src/guestfs-actions.pod:3577 ../fish/guestfish-actions.pod:2492
13430 msgid ""
13431 "This inspection command looks for filesystems on partitions, block devices "
13432 "and logical volumes, returning a list of devices containing filesystems and "
13433 "their type."
13434 msgstr ""
13435
13436 # type: textblock
13437 #. type: textblock
13438 #: ../src/guestfs-actions.pod:3581 ../fish/guestfish-actions.pod:2496
13439 msgid ""
13440 "The return value is a hash, where the keys are the devices containing "
13441 "filesystems, and the values are the filesystem types.  For example:"
13442 msgstr ""
13443
13444 # type: verbatim
13445 #. type: verbatim
13446 #: ../src/guestfs-actions.pod:3585 ../fish/guestfish-actions.pod:2500
13447 #, no-wrap
13448 msgid ""
13449 " \"/dev/sda1\" => \"ntfs\"\n"
13450 " \"/dev/sda2\" => \"ext2\"\n"
13451 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13452 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13453 "\n"
13454 msgstr ""
13455
13456 # type: textblock
13457 #. type: textblock
13458 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2505
13459 msgid ""
13460 "The value can have the special value \"unknown\", meaning the content of the "
13461 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13462 msgstr ""
13463
13464 # type: textblock
13465 #. type: textblock
13466 #: ../src/guestfs-actions.pod:3594
13467 msgid ""
13468 "This command runs other libguestfs commands, which might include "
13469 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13470 "soon after launch and only when nothing is mounted."
13471 msgstr ""
13472
13473 # type: textblock
13474 #. type: textblock
13475 #: ../src/guestfs-actions.pod:3598
13476 msgid ""
13477 "Not all of the filesystems returned will be mountable.  In particular, swap "
13478 "partitions are returned in the list.  Also this command does not check that "
13479 "each filesystem found is valid and mountable, and some filesystems might be "
13480 "mountable but require special options.  Filesystems may not all belong to a "
13481 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13482 msgstr ""
13483
13484 # type: textblock
13485 #. type: textblock
13486 #: ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:5217
13487 msgid "(Added in 1.5.15)"
13488 msgstr ""
13489
13490 # type: =head2
13491 #. type: =head2
13492 #: ../src/guestfs-actions.pod:3614
13493 msgid "guestfs_list_partitions"
13494 msgstr ""
13495
13496 # type: verbatim
13497 #. type: verbatim
13498 #: ../src/guestfs-actions.pod:3616
13499 #, no-wrap
13500 msgid ""
13501 " char **\n"
13502 " guestfs_list_partitions (guestfs_h *g);\n"
13503 "\n"
13504 msgstr ""
13505
13506 # type: textblock
13507 #. type: textblock
13508 #: ../src/guestfs-actions.pod:3619 ../fish/guestfish-actions.pod:2525
13509 msgid "List all the partitions detected on all block devices."
13510 msgstr ""
13511
13512 # type: textblock
13513 #. type: textblock
13514 #: ../src/guestfs-actions.pod:3621 ../fish/guestfish-actions.pod:2527
13515 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13516 msgstr ""
13517
13518 # type: textblock
13519 #. type: textblock
13520 #: ../src/guestfs-actions.pod:3623
13521 msgid ""
13522 "This does not return logical volumes.  For that you will need to call "
13523 "C<guestfs_lvs>."
13524 msgstr ""
13525
13526 # type: =head2
13527 #. type: =head2
13528 #: ../src/guestfs-actions.pod:3634
13529 msgid "guestfs_ll"
13530 msgstr ""
13531
13532 # type: verbatim
13533 #. type: verbatim
13534 #: ../src/guestfs-actions.pod:3636
13535 #, no-wrap
13536 msgid ""
13537 " char *\n"
13538 " guestfs_ll (guestfs_h *g,\n"
13539 "             const char *directory);\n"
13540 "\n"
13541 msgstr ""
13542
13543 # type: textblock
13544 #. type: textblock
13545 #: ../src/guestfs-actions.pod:3640 ../fish/guestfish-actions.pod:2538
13546 msgid ""
13547 "List the files in C<directory> (relative to the root directory, there is no "
13548 "cwd) in the format of 'ls -la'."
13549 msgstr ""
13550
13551 # type: textblock
13552 #. type: textblock
13553 #: ../src/guestfs-actions.pod:3643 ../fish/guestfish-actions.pod:2541
13554 msgid ""
13555 "This command is mostly useful for interactive sessions.  It is I<not> "
13556 "intended that you try to parse the output string."
13557 msgstr ""
13558
13559 # type: =head2
13560 #. type: =head2
13561 #: ../src/guestfs-actions.pod:3651
13562 msgid "guestfs_ln"
13563 msgstr ""
13564
13565 # type: verbatim
13566 #. type: verbatim
13567 #: ../src/guestfs-actions.pod:3653
13568 #, no-wrap
13569 msgid ""
13570 " int\n"
13571 " guestfs_ln (guestfs_h *g,\n"
13572 "             const char *target,\n"
13573 "             const char *linkname);\n"
13574 "\n"
13575 msgstr ""
13576
13577 # type: textblock
13578 #. type: textblock
13579 #: ../src/guestfs-actions.pod:3658 ../fish/guestfish-actions.pod:2548
13580 msgid "This command creates a hard link using the C<ln> command."
13581 msgstr ""
13582
13583 # type: =head2
13584 #. type: =head2
13585 #: ../src/guestfs-actions.pod:3664
13586 msgid "guestfs_ln_f"
13587 msgstr ""
13588
13589 # type: verbatim
13590 #. type: verbatim
13591 #: ../src/guestfs-actions.pod:3666
13592 #, no-wrap
13593 msgid ""
13594 " int\n"
13595 " guestfs_ln_f (guestfs_h *g,\n"
13596 "               const char *target,\n"
13597 "               const char *linkname);\n"
13598 "\n"
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2554
13603 msgid ""
13604 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
13605 "option removes the link (C<linkname>) if it exists already."
13606 msgstr ""
13607
13608 # type: =head2
13609 #. type: =head2
13610 #: ../src/guestfs-actions.pod:3678
13611 msgid "guestfs_ln_s"
13612 msgstr ""
13613
13614 # type: verbatim
13615 #. type: verbatim
13616 #: ../src/guestfs-actions.pod:3680
13617 #, no-wrap
13618 msgid ""
13619 " int\n"
13620 " guestfs_ln_s (guestfs_h *g,\n"
13621 "               const char *target,\n"
13622 "               const char *linkname);\n"
13623 "\n"
13624 msgstr ""
13625
13626 # type: textblock
13627 #. type: textblock
13628 #: ../src/guestfs-actions.pod:3685 ../fish/guestfish-actions.pod:2561
13629 msgid "This command creates a symbolic link using the C<ln -s> command."
13630 msgstr ""
13631
13632 # type: =head2
13633 #. type: =head2
13634 #: ../src/guestfs-actions.pod:3691
13635 msgid "guestfs_ln_sf"
13636 msgstr ""
13637
13638 # type: verbatim
13639 #. type: verbatim
13640 #: ../src/guestfs-actions.pod:3693
13641 #, no-wrap
13642 msgid ""
13643 " int\n"
13644 " guestfs_ln_sf (guestfs_h *g,\n"
13645 "                const char *target,\n"
13646 "                const char *linkname);\n"
13647 "\n"
13648 msgstr ""
13649
13650 #. type: textblock
13651 #: ../src/guestfs-actions.pod:3698 ../fish/guestfish-actions.pod:2567
13652 msgid ""
13653 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
13654 "option removes the link (C<linkname>) if it exists already."
13655 msgstr ""
13656
13657 # type: =head2
13658 #. type: =head2
13659 #: ../src/guestfs-actions.pod:3705
13660 msgid "guestfs_lremovexattr"
13661 msgstr ""
13662
13663 # type: verbatim
13664 #. type: verbatim
13665 #: ../src/guestfs-actions.pod:3707
13666 #, no-wrap
13667 msgid ""
13668 " int\n"
13669 " guestfs_lremovexattr (guestfs_h *g,\n"
13670 "                       const char *xattr,\n"
13671 "                       const char *path);\n"
13672 "\n"
13673 msgstr ""
13674
13675 # type: textblock
13676 #. type: textblock
13677 #: ../src/guestfs-actions.pod:3712
13678 msgid ""
13679 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13680 "link, then it removes an extended attribute of the link itself."
13681 msgstr ""
13682
13683 # type: =head2
13684 #. type: =head2
13685 #: ../src/guestfs-actions.pod:3720
13686 msgid "guestfs_ls"
13687 msgstr ""
13688
13689 # type: verbatim
13690 #. type: verbatim
13691 #: ../src/guestfs-actions.pod:3722
13692 #, no-wrap
13693 msgid ""
13694 " char **\n"
13695 " guestfs_ls (guestfs_h *g,\n"
13696 "             const char *directory);\n"
13697 "\n"
13698 msgstr ""
13699
13700 # type: textblock
13701 #. type: textblock
13702 #: ../src/guestfs-actions.pod:3726 ../fish/guestfish-actions.pod:2582
13703 msgid ""
13704 "List the files in C<directory> (relative to the root directory, there is no "
13705 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13706 msgstr ""
13707
13708 # type: textblock
13709 #. type: textblock
13710 #: ../src/guestfs-actions.pod:3730
13711 msgid ""
13712 "This command is mostly useful for interactive sessions.  Programs should "
13713 "probably use C<guestfs_readdir> instead."
13714 msgstr ""
13715
13716 # type: =head2
13717 #. type: =head2
13718 #: ../src/guestfs-actions.pod:3739
13719 msgid "guestfs_lsetxattr"
13720 msgstr ""
13721
13722 # type: verbatim
13723 #. type: verbatim
13724 #: ../src/guestfs-actions.pod:3741
13725 #, no-wrap
13726 msgid ""
13727 " int\n"
13728 " guestfs_lsetxattr (guestfs_h *g,\n"
13729 "                    const char *xattr,\n"
13730 "                    const char *val,\n"
13731 "                    int vallen,\n"
13732 "                    const char *path);\n"
13733 "\n"
13734 msgstr ""
13735
13736 # type: textblock
13737 #. type: textblock
13738 #: ../src/guestfs-actions.pod:3748
13739 msgid ""
13740 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13741 "then it sets an extended attribute of the link itself."
13742 msgstr ""
13743
13744 # type: =head2
13745 #. type: =head2
13746 #: ../src/guestfs-actions.pod:3756
13747 msgid "guestfs_lstat"
13748 msgstr ""
13749
13750 # type: verbatim
13751 #. type: verbatim
13752 #: ../src/guestfs-actions.pod:3758
13753 #, no-wrap
13754 msgid ""
13755 " struct guestfs_stat *\n"
13756 " guestfs_lstat (guestfs_h *g,\n"
13757 "                const char *path);\n"
13758 "\n"
13759 msgstr ""
13760
13761 # type: textblock
13762 #. type: textblock
13763 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:6320
13764 #: ../fish/guestfish-actions.pod:2601 ../fish/guestfish-actions.pod:4270
13765 msgid "Returns file information for the given C<path>."
13766 msgstr ""
13767
13768 # type: textblock
13769 #. type: textblock
13770 #: ../src/guestfs-actions.pod:3764
13771 msgid ""
13772 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13773 "link, then the link is stat-ed, not the file it refers to."
13774 msgstr ""
13775
13776 # type: textblock
13777 #. type: textblock
13778 #: ../src/guestfs-actions.pod:3768 ../fish/guestfish-actions.pod:2607
13779 msgid "This is the same as the C<lstat(2)> system call."
13780 msgstr ""
13781
13782 # type: textblock
13783 #. type: textblock
13784 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:6324
13785 msgid ""
13786 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
13787 "error.  I<The caller must call C<guestfs_free_stat> after use>."
13788 msgstr ""
13789
13790 # type: textblock
13791 #. type: textblock
13792 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:6328
13793 #: ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6727
13794 msgid "(Added in 0.9.2)"
13795 msgstr ""
13796
13797 # type: =head2
13798 #. type: =head2
13799 #: ../src/guestfs-actions.pod:3776
13800 msgid "guestfs_lstatlist"
13801 msgstr ""
13802
13803 # type: verbatim
13804 #. type: verbatim
13805 #: ../src/guestfs-actions.pod:3778
13806 #, no-wrap
13807 msgid ""
13808 " struct guestfs_stat_list *\n"
13809 " guestfs_lstatlist (guestfs_h *g,\n"
13810 "                    const char *path,\n"
13811 "                    char *const *names);\n"
13812 "\n"
13813 msgstr ""
13814
13815 # type: textblock
13816 #. type: textblock
13817 #: ../src/guestfs-actions.pod:3783
13818 msgid ""
13819 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
13820 "files, where all files are in the directory C<path>.  C<names> is the list "
13821 "of files from this directory."
13822 msgstr ""
13823
13824 # type: textblock
13825 #. type: textblock
13826 #: ../src/guestfs-actions.pod:3787 ../fish/guestfish-actions.pod:2617
13827 msgid ""
13828 "On return you get a list of stat structs, with a one-to-one correspondence "
13829 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13830 "then the C<ino> field of that structure is set to C<-1>."
13831 msgstr ""
13832
13833 # type: textblock
13834 #. type: textblock
13835 #: ../src/guestfs-actions.pod:3792
13836 msgid ""
13837 "This call is intended for programs that want to efficiently list a directory "
13838 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
13839 "for a similarly efficient call for getting extended attributes.  Very long "
13840 "directory listings might cause the protocol message size to be exceeded, "
13841 "causing this call to fail.  The caller must split up such requests into "
13842 "smaller groups of names."
13843 msgstr ""
13844
13845 # type: textblock
13846 #. type: textblock
13847 #: ../src/guestfs-actions.pod:3800
13848 msgid ""
13849 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
13850 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
13851 msgstr ""
13852
13853 # type: =head2
13854 #. type: =head2
13855 #: ../src/guestfs-actions.pod:3806
13856 msgid "guestfs_luks_add_key"
13857 msgstr ""
13858
13859 # type: verbatim
13860 #. type: verbatim
13861 #: ../src/guestfs-actions.pod:3808
13862 #, no-wrap
13863 msgid ""
13864 " int\n"
13865 " guestfs_luks_add_key (guestfs_h *g,\n"
13866 "                       const char *device,\n"
13867 "                       const char *key,\n"
13868 "                       const char *newkey,\n"
13869 "                       int keyslot);\n"
13870 "\n"
13871 msgstr ""
13872
13873 # type: textblock
13874 #. type: textblock
13875 #: ../src/guestfs-actions.pod:3815 ../fish/guestfish-actions.pod:2634
13876 msgid ""
13877 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13878 "existing key, and is used to access the device.  C<newkey> is the new key to "
13879 "add.  C<keyslot> is the key slot that will be replaced."
13880 msgstr ""
13881
13882 # type: textblock
13883 #. type: textblock
13884 #: ../src/guestfs-actions.pod:3820
13885 msgid ""
13886 "Note that if C<keyslot> already contains a key, then this command will "
13887 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
13888 msgstr ""
13889
13890 # type: textblock
13891 #. type: textblock
13892 #: ../src/guestfs-actions.pod:3826 ../src/guestfs-actions.pod:3866
13893 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
13894 #: ../src/guestfs-actions.pod:3941 ../src/guestfs-actions.pod:3960
13895 msgid ""
13896 "This function takes a key or passphrase parameter which could contain "
13897 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
13898 "information."
13899 msgstr ""
13900
13901 # type: textblock
13902 #. type: textblock
13903 #: ../src/guestfs-actions.pod:3830 ../src/guestfs-actions.pod:3870
13904 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3913
13905 msgid "(Added in 1.5.2)"
13906 msgstr ""
13907
13908 # type: =head2
13909 #. type: =head2
13910 #: ../src/guestfs-actions.pod:3832
13911 msgid "guestfs_luks_close"
13912 msgstr ""
13913
13914 # type: verbatim
13915 #. type: verbatim
13916 #: ../src/guestfs-actions.pod:3834
13917 #, no-wrap
13918 msgid ""
13919 " int\n"
13920 " guestfs_luks_close (guestfs_h *g,\n"
13921 "                     const char *device);\n"
13922 "\n"
13923 msgstr ""
13924
13925 # type: textblock
13926 #. type: textblock
13927 #: ../src/guestfs-actions.pod:3838
13928 msgid ""
13929 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13930 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13931 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13932 "underlying block device."
13933 msgstr ""
13934
13935 # type: textblock
13936 #. type: textblock
13937 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3945
13938 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:4014
13939 #: ../src/guestfs-actions.pod:4062
13940 msgid "(Added in 1.5.1)"
13941 msgstr ""
13942
13943 # type: =head2
13944 #. type: =head2
13945 #: ../src/guestfs-actions.pod:3848
13946 msgid "guestfs_luks_format"
13947 msgstr ""
13948
13949 # type: verbatim
13950 #. type: verbatim
13951 #: ../src/guestfs-actions.pod:3850
13952 #, no-wrap
13953 msgid ""
13954 " int\n"
13955 " guestfs_luks_format (guestfs_h *g,\n"
13956 "                      const char *device,\n"
13957 "                      const char *key,\n"
13958 "                      int keyslot);\n"
13959 "\n"
13960 msgstr ""
13961
13962 # type: textblock
13963 #. type: textblock
13964 #: ../src/guestfs-actions.pod:3856 ../fish/guestfish-actions.pod:2660
13965 msgid ""
13966 "This command erases existing data on C<device> and formats the device as a "
13967 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13968 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13969 msgstr ""
13970
13971 # type: textblock
13972 #. type: textblock
13973 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3886
13974 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4968
13975 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:6155
13976 #: ../src/guestfs-actions.pod:6178 ../src/guestfs-actions.pod:6204
13977 #: ../src/guestfs-actions.pod:7364 ../fish/guestfish-actions.pod:2668
13978 #: ../fish/guestfish-actions.pod:2681 ../fish/guestfish-actions.pod:2765
13979 #: ../fish/guestfish-actions.pod:3339 ../fish/guestfish-actions.pod:3859
13980 #: ../fish/guestfish-actions.pod:4169 ../fish/guestfish-actions.pod:4185
13981 #: ../fish/guestfish-actions.pod:4200 ../fish/guestfish-actions.pod:4915
13982 msgid ""
13983 "B<This command is dangerous.  Without careful use you can easily destroy all "
13984 "your data>."
13985 msgstr ""
13986
13987 # type: =head2
13988 #. type: =head2
13989 #: ../src/guestfs-actions.pod:3872
13990 msgid "guestfs_luks_format_cipher"
13991 msgstr ""
13992
13993 # type: verbatim
13994 #. type: verbatim
13995 #: ../src/guestfs-actions.pod:3874
13996 #, no-wrap
13997 msgid ""
13998 " int\n"
13999 " guestfs_luks_format_cipher (guestfs_h *g,\n"
14000 "                             const char *device,\n"
14001 "                             const char *key,\n"
14002 "                             int keyslot,\n"
14003 "                             const char *cipher);\n"
14004 "\n"
14005 msgstr ""
14006
14007 # type: textblock
14008 #. type: textblock
14009 #: ../src/guestfs-actions.pod:3881
14010 msgid ""
14011 "This command is the same as C<guestfs_luks_format> but it also allows you to "
14012 "set the C<cipher> used."
14013 msgstr ""
14014
14015 # type: =head2
14016 #. type: =head2
14017 #: ../src/guestfs-actions.pod:3895
14018 msgid "guestfs_luks_kill_slot"
14019 msgstr ""
14020
14021 # type: verbatim
14022 #. type: verbatim
14023 #: ../src/guestfs-actions.pod:3897
14024 #, no-wrap
14025 msgid ""
14026 " int\n"
14027 " guestfs_luks_kill_slot (guestfs_h *g,\n"
14028 "                         const char *device,\n"
14029 "                         const char *key,\n"
14030 "                         int keyslot);\n"
14031 "\n"
14032 msgstr ""
14033
14034 # type: textblock
14035 #. type: textblock
14036 #: ../src/guestfs-actions.pod:3903 ../fish/guestfish-actions.pod:2688
14037 msgid ""
14038 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
14039 "device C<device>.  C<key> must be one of the I<other> keys."
14040 msgstr ""
14041
14042 # type: =head2
14043 #. type: =head2
14044 #: ../src/guestfs-actions.pod:3915
14045 msgid "guestfs_luks_open"
14046 msgstr ""
14047
14048 # type: verbatim
14049 #. type: verbatim
14050 #: ../src/guestfs-actions.pod:3917
14051 #, no-wrap
14052 msgid ""
14053 " int\n"
14054 " guestfs_luks_open (guestfs_h *g,\n"
14055 "                    const char *device,\n"
14056 "                    const char *key,\n"
14057 "                    const char *mapname);\n"
14058 "\n"
14059 msgstr ""
14060
14061 # type: textblock
14062 #. type: textblock
14063 #: ../src/guestfs-actions.pod:3923 ../fish/guestfish-actions.pod:2699
14064 msgid ""
14065 "This command opens a block device which has been encrypted according to the "
14066 "Linux Unified Key Setup (LUKS) standard."
14067 msgstr ""
14068
14069 # type: textblock
14070 #. type: textblock
14071 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2702
14072 msgid "C<device> is the encrypted block device or partition."
14073 msgstr ""
14074
14075 # type: textblock
14076 #. type: textblock
14077 #: ../src/guestfs-actions.pod:3928 ../fish/guestfish-actions.pod:2704
14078 msgid ""
14079 "The caller must supply one of the keys associated with the LUKS block "
14080 "device, in the C<key> parameter."
14081 msgstr ""
14082
14083 # type: textblock
14084 #. type: textblock
14085 #: ../src/guestfs-actions.pod:3931 ../fish/guestfish-actions.pod:2707
14086 msgid ""
14087 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
14088 "writes to this block device are decrypted from and encrypted to the "
14089 "underlying C<device> respectively."
14090 msgstr ""
14091
14092 # type: textblock
14093 #. type: textblock
14094 #: ../src/guestfs-actions.pod:3935
14095 msgid ""
14096 "If this block device contains LVM volume groups, then calling "
14097 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
14098 "visible."
14099 msgstr ""
14100
14101 # type: =head2
14102 #. type: =head2
14103 #: ../src/guestfs-actions.pod:3947
14104 msgid "guestfs_luks_open_ro"
14105 msgstr ""
14106
14107 # type: verbatim
14108 #. type: verbatim
14109 #: ../src/guestfs-actions.pod:3949
14110 #, no-wrap
14111 msgid ""
14112 " int\n"
14113 " guestfs_luks_open_ro (guestfs_h *g,\n"
14114 "                       const char *device,\n"
14115 "                       const char *key,\n"
14116 "                       const char *mapname);\n"
14117 "\n"
14118 msgstr ""
14119
14120 # type: textblock
14121 #. type: textblock
14122 #: ../src/guestfs-actions.pod:3955
14123 msgid ""
14124 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
14125 "created."
14126 msgstr ""
14127
14128 # type: =head2
14129 #. type: =head2
14130 #: ../src/guestfs-actions.pod:3966
14131 msgid "guestfs_lvcreate"
14132 msgstr ""
14133
14134 # type: verbatim
14135 #. type: verbatim
14136 #: ../src/guestfs-actions.pod:3968
14137 #, no-wrap
14138 msgid ""
14139 " int\n"
14140 " guestfs_lvcreate (guestfs_h *g,\n"
14141 "                   const char *logvol,\n"
14142 "                   const char *volgroup,\n"
14143 "                   int mbytes);\n"
14144 "\n"
14145 msgstr ""
14146
14147 # type: textblock
14148 #. type: textblock
14149 #: ../src/guestfs-actions.pod:3974 ../fish/guestfish-actions.pod:2732
14150 msgid ""
14151 "This creates an LVM logical volume called C<logvol> on the volume group "
14152 "C<volgroup>, with C<size> megabytes."
14153 msgstr ""
14154
14155 # type: =head2
14156 #. type: =head2
14157 #: ../src/guestfs-actions.pod:3981
14158 msgid "guestfs_lvm_canonical_lv_name"
14159 msgstr ""
14160
14161 # type: verbatim
14162 #. type: verbatim
14163 #: ../src/guestfs-actions.pod:3983
14164 #, no-wrap
14165 msgid ""
14166 " char *\n"
14167 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
14168 "                                const char *lvname);\n"
14169 "\n"
14170 msgstr ""
14171
14172 # type: textblock
14173 #. type: textblock
14174 #: ../src/guestfs-actions.pod:3987 ../fish/guestfish-actions.pod:2739
14175 msgid ""
14176 "This converts alternative naming schemes for LVs that you might find to the "
14177 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
14178 "LV>."
14179 msgstr ""
14180
14181 # type: textblock
14182 #. type: textblock
14183 #: ../src/guestfs-actions.pod:3991 ../fish/guestfish-actions.pod:2743
14184 msgid ""
14185 "This command returns an error if the C<lvname> parameter does not refer to a "
14186 "logical volume."
14187 msgstr ""
14188
14189 # type: textblock
14190 #. type: textblock
14191 #: ../src/guestfs-actions.pod:3994
14192 msgid "See also C<guestfs_is_lv>."
14193 msgstr ""
14194
14195 # type: textblock
14196 #. type: textblock
14197 #: ../src/guestfs-actions.pod:3999
14198 msgid "(Added in 1.5.24)"
14199 msgstr ""
14200
14201 # type: =head2
14202 #. type: =head2
14203 #: ../src/guestfs-actions.pod:4001
14204 msgid "guestfs_lvm_clear_filter"
14205 msgstr ""
14206
14207 # type: verbatim
14208 #. type: verbatim
14209 #: ../src/guestfs-actions.pod:4003
14210 #, no-wrap
14211 msgid ""
14212 " int\n"
14213 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
14214 "\n"
14215 msgstr ""
14216
14217 # type: textblock
14218 #. type: textblock
14219 #: ../src/guestfs-actions.pod:4006
14220 msgid ""
14221 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
14222 "see every block device."
14223 msgstr ""
14224
14225 # type: textblock
14226 #. type: textblock
14227 #: ../src/guestfs-actions.pod:4009 ../src/guestfs-actions.pod:4051
14228 #: ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:2786
14229 msgid ""
14230 "This command also clears the LVM cache and performs a volume group scan."
14231 msgstr ""
14232
14233 # type: =head2
14234 #. type: =head2
14235 #: ../src/guestfs-actions.pod:4016
14236 msgid "guestfs_lvm_remove_all"
14237 msgstr ""
14238
14239 # type: verbatim
14240 #. type: verbatim
14241 #: ../src/guestfs-actions.pod:4018
14242 #, no-wrap
14243 msgid ""
14244 " int\n"
14245 " guestfs_lvm_remove_all (guestfs_h *g);\n"
14246 "\n"
14247 msgstr ""
14248
14249 # type: textblock
14250 #. type: textblock
14251 #: ../src/guestfs-actions.pod:4021 ../fish/guestfish-actions.pod:2762
14252 msgid ""
14253 "This command removes all LVM logical volumes, volume groups and physical "
14254 "volumes."
14255 msgstr ""
14256
14257 # type: =head2
14258 #. type: =head2
14259 #: ../src/guestfs-actions.pod:4031
14260 msgid "guestfs_lvm_set_filter"
14261 msgstr ""
14262
14263 # type: verbatim
14264 #. type: verbatim
14265 #: ../src/guestfs-actions.pod:4033
14266 #, no-wrap
14267 msgid ""
14268 " int\n"
14269 " guestfs_lvm_set_filter (guestfs_h *g,\n"
14270 "                         char *const *devices);\n"
14271 "\n"
14272 msgstr ""
14273
14274 # type: textblock
14275 #. type: textblock
14276 #: ../src/guestfs-actions.pod:4037 ../fish/guestfish-actions.pod:2772
14277 msgid ""
14278 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
14279 "block devices in the list C<devices>, and will ignore all other attached "
14280 "block devices."
14281 msgstr ""
14282
14283 # type: textblock
14284 #. type: textblock
14285 #: ../src/guestfs-actions.pod:4041 ../fish/guestfish-actions.pod:2776
14286 msgid ""
14287 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
14288 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
14289 "there are two types of duplication possible: either cloned PVs/VGs which "
14290 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
14291 "same name.  In normal operation you cannot create this situation, but you "
14292 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
14293 "inside the LVM metadata."
14294 msgstr ""
14295
14296 # type: textblock
14297 #. type: textblock
14298 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:2789
14299 msgid "You can filter whole block devices or individual partitions."
14300 msgstr ""
14301
14302 # type: textblock
14303 #. type: textblock
14304 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2791
14305 msgid ""
14306 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14307 "filesystem), even if you are not filtering out that VG."
14308 msgstr ""
14309
14310 # type: =head2
14311 #. type: =head2
14312 #: ../src/guestfs-actions.pod:4064
14313 msgid "guestfs_lvremove"
14314 msgstr ""
14315
14316 # type: verbatim
14317 #. type: verbatim
14318 #: ../src/guestfs-actions.pod:4066
14319 #, no-wrap
14320 msgid ""
14321 " int\n"
14322 " guestfs_lvremove (guestfs_h *g,\n"
14323 "                   const char *device);\n"
14324 "\n"
14325 msgstr ""
14326
14327 # type: textblock
14328 #. type: textblock
14329 #: ../src/guestfs-actions.pod:4070 ../fish/guestfish-actions.pod:2799
14330 msgid ""
14331 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14332 "LV, such as C</dev/VG/LV>."
14333 msgstr ""
14334
14335 # type: textblock
14336 #. type: textblock
14337 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2802
14338 msgid ""
14339 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14340 "dev/VG>."
14341 msgstr ""
14342
14343 # type: textblock
14344 #. type: textblock
14345 #: ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:5314
14346 #: ../src/guestfs-actions.pod:7103
14347 msgid "(Added in 1.0.13)"
14348 msgstr ""
14349
14350 # type: =head2
14351 #. type: =head2
14352 #: ../src/guestfs-actions.pod:4080
14353 msgid "guestfs_lvrename"
14354 msgstr ""
14355
14356 # type: verbatim
14357 #. type: verbatim
14358 #: ../src/guestfs-actions.pod:4082
14359 #, no-wrap
14360 msgid ""
14361 " int\n"
14362 " guestfs_lvrename (guestfs_h *g,\n"
14363 "                   const char *logvol,\n"
14364 "                   const char *newlogvol);\n"
14365 "\n"
14366 msgstr ""
14367
14368 # type: textblock
14369 #. type: textblock
14370 #: ../src/guestfs-actions.pod:4087 ../fish/guestfish-actions.pod:2809
14371 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14372 msgstr ""
14373
14374 # type: textblock
14375 #. type: textblock
14376 #: ../src/guestfs-actions.pod:4091 ../src/guestfs-actions.pod:7116
14377 msgid "(Added in 1.0.83)"
14378 msgstr ""
14379
14380 # type: =head2
14381 #. type: =head2
14382 #: ../src/guestfs-actions.pod:4093
14383 msgid "guestfs_lvresize"
14384 msgstr ""
14385
14386 # type: verbatim
14387 #. type: verbatim
14388 #: ../src/guestfs-actions.pod:4095
14389 #, no-wrap
14390 msgid ""
14391 " int\n"
14392 " guestfs_lvresize (guestfs_h *g,\n"
14393 "                   const char *device,\n"
14394 "                   int mbytes);\n"
14395 "\n"
14396 msgstr ""
14397
14398 # type: textblock
14399 #. type: textblock
14400 #: ../src/guestfs-actions.pod:4100 ../fish/guestfish-actions.pod:2815
14401 msgid ""
14402 "This resizes (expands or shrinks) an existing LVM logical volume to "
14403 "C<mbytes>.  When reducing, data in the reduced part is lost."
14404 msgstr ""
14405
14406 # type: =head2
14407 #. type: =head2
14408 #: ../src/guestfs-actions.pod:4108
14409 msgid "guestfs_lvresize_free"
14410 msgstr ""
14411
14412 # type: verbatim
14413 #. type: verbatim
14414 #: ../src/guestfs-actions.pod:4110
14415 #, no-wrap
14416 msgid ""
14417 " int\n"
14418 " guestfs_lvresize_free (guestfs_h *g,\n"
14419 "                        const char *lv,\n"
14420 "                        int percent);\n"
14421 "\n"
14422 msgstr ""
14423
14424 # type: textblock
14425 #. type: textblock
14426 #: ../src/guestfs-actions.pod:4115 ../fish/guestfish-actions.pod:2823
14427 msgid ""
14428 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14429 "remaining free space in the volume group.  Commonly you would call this with "
14430 "pc = 100 which expands the logical volume as much as possible, using all "
14431 "remaining free space in the volume group."
14432 msgstr ""
14433
14434 # type: textblock
14435 #. type: textblock
14436 #: ../src/guestfs-actions.pod:4123
14437 msgid "(Added in 1.3.3)"
14438 msgstr ""
14439
14440 # type: =head2
14441 #. type: =head2
14442 #: ../src/guestfs-actions.pod:4125
14443 msgid "guestfs_lvs"
14444 msgstr ""
14445
14446 # type: verbatim
14447 #. type: verbatim
14448 #: ../src/guestfs-actions.pod:4127
14449 #, no-wrap
14450 msgid ""
14451 " char **\n"
14452 " guestfs_lvs (guestfs_h *g);\n"
14453 "\n"
14454 msgstr ""
14455
14456 # type: textblock
14457 #. type: textblock
14458 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2833
14459 msgid ""
14460 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14461 "(8)> command."
14462 msgstr ""
14463
14464 # type: textblock
14465 #. type: textblock
14466 #: ../src/guestfs-actions.pod:4133 ../fish/guestfish-actions.pod:2836
14467 msgid ""
14468 "This returns a list of the logical volume device names (eg. C</dev/"
14469 "VolGroup00/LogVol00>)."
14470 msgstr ""
14471
14472 # type: textblock
14473 #. type: textblock
14474 #: ../src/guestfs-actions.pod:4136
14475 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14476 msgstr ""
14477
14478 # type: =head2
14479 #. type: =head2
14480 #: ../src/guestfs-actions.pod:4144
14481 msgid "guestfs_lvs_full"
14482 msgstr ""
14483
14484 # type: verbatim
14485 #. type: verbatim
14486 #: ../src/guestfs-actions.pod:4146
14487 #, no-wrap
14488 msgid ""
14489 " struct guestfs_lvm_lv_list *\n"
14490 " guestfs_lvs_full (guestfs_h *g);\n"
14491 "\n"
14492 msgstr ""
14493
14494 # type: textblock
14495 #. type: textblock
14496 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2845
14497 msgid ""
14498 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14499 "(8)> command.  The \"full\" version includes all fields."
14500 msgstr ""
14501
14502 # type: textblock
14503 #. type: textblock
14504 #: ../src/guestfs-actions.pod:4152
14505 msgid ""
14506 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14507 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14508 msgstr ""
14509
14510 # type: =head2
14511 #. type: =head2
14512 #: ../src/guestfs-actions.pod:4158
14513 msgid "guestfs_lvuuid"
14514 msgstr ""
14515
14516 # type: verbatim
14517 #. type: verbatim
14518 #: ../src/guestfs-actions.pod:4160
14519 #, no-wrap
14520 msgid ""
14521 " char *\n"
14522 " guestfs_lvuuid (guestfs_h *g,\n"
14523 "                 const char *device);\n"
14524 "\n"
14525 msgstr ""
14526
14527 # type: textblock
14528 #. type: textblock
14529 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2852
14530 msgid "This command returns the UUID of the LVM LV C<device>."
14531 msgstr ""
14532
14533 # type: =head2
14534 #. type: =head2
14535 #: ../src/guestfs-actions.pod:4171
14536 msgid "guestfs_lxattrlist"
14537 msgstr ""
14538
14539 # type: verbatim
14540 #. type: verbatim
14541 #: ../src/guestfs-actions.pod:4173
14542 #, no-wrap
14543 msgid ""
14544 " struct guestfs_xattr_list *\n"
14545 " guestfs_lxattrlist (guestfs_h *g,\n"
14546 "                     const char *path,\n"
14547 "                     char *const *names);\n"
14548 "\n"
14549 msgstr ""
14550
14551 # type: textblock
14552 #. type: textblock
14553 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:2858
14554 msgid ""
14555 "This call allows you to get the extended attributes of multiple files, where "
14556 "all files are in the directory C<path>.  C<names> is the list of files from "
14557 "this directory."
14558 msgstr ""
14559
14560 # type: textblock
14561 #. type: textblock
14562 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2862
14563 msgid ""
14564 "On return you get a flat list of xattr structs which must be interpreted "
14565 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14566 "C<attrval> in this struct is zero-length to indicate there was an error "
14567 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14568 "number (the number of following attributes for this file, which could be C<"
14569 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14570 "for the first named file.  This repeats for the second and subsequent files."
14571 msgstr ""
14572
14573 # type: textblock
14574 #. type: textblock
14575 #: ../src/guestfs-actions.pod:4192
14576 msgid ""
14577 "This call is intended for programs that want to efficiently list a directory "
14578 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14579 "a similarly efficient call for getting standard stats.  Very long directory "
14580 "listings might cause the protocol message size to be exceeded, causing this "
14581 "call to fail.  The caller must split up such requests into smaller groups of "
14582 "names."
14583 msgstr ""
14584
14585 # type: =head2
14586 #. type: =head2
14587 #: ../src/guestfs-actions.pod:4206
14588 msgid "guestfs_mkdir"
14589 msgstr ""
14590
14591 # type: verbatim
14592 #. type: verbatim
14593 #: ../src/guestfs-actions.pod:4208
14594 #, no-wrap
14595 msgid ""
14596 " int\n"
14597 " guestfs_mkdir (guestfs_h *g,\n"
14598 "                const char *path);\n"
14599 "\n"
14600 msgstr ""
14601
14602 # type: textblock
14603 #. type: textblock
14604 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2884
14605 msgid "Create a directory named C<path>."
14606 msgstr ""
14607
14608 # type: =head2
14609 #. type: =head2
14610 #: ../src/guestfs-actions.pod:4218
14611 msgid "guestfs_mkdir_mode"
14612 msgstr ""
14613
14614 # type: verbatim
14615 #. type: verbatim
14616 #: ../src/guestfs-actions.pod:4220
14617 #, no-wrap
14618 msgid ""
14619 " int\n"
14620 " guestfs_mkdir_mode (guestfs_h *g,\n"
14621 "                     const char *path,\n"
14622 "                     int mode);\n"
14623 "\n"
14624 msgstr ""
14625
14626 # type: textblock
14627 #. type: textblock
14628 #: ../src/guestfs-actions.pod:4225 ../fish/guestfish-actions.pod:2890
14629 msgid ""
14630 "This command creates a directory, setting the initial permissions of the "
14631 "directory to C<mode>."
14632 msgstr ""
14633
14634 # type: textblock
14635 #. type: textblock
14636 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2893
14637 msgid ""
14638 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14639 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14640 "other ways."
14641 msgstr ""
14642
14643 # type: textblock
14644 #. type: textblock
14645 #: ../src/guestfs-actions.pod:4232
14646 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14647 msgstr ""
14648
14649 # type: =head2
14650 #. type: =head2
14651 #: ../src/guestfs-actions.pod:4238
14652 msgid "guestfs_mkdir_p"
14653 msgstr ""
14654
14655 # type: verbatim
14656 #. type: verbatim
14657 #: ../src/guestfs-actions.pod:4240
14658 #, no-wrap
14659 msgid ""
14660 " int\n"
14661 " guestfs_mkdir_p (guestfs_h *g,\n"
14662 "                  const char *path);\n"
14663 "\n"
14664 msgstr ""
14665
14666 # type: textblock
14667 #. type: textblock
14668 #: ../src/guestfs-actions.pod:4244 ../fish/guestfish-actions.pod:2903
14669 msgid ""
14670 "Create a directory named C<path>, creating any parent directories as "
14671 "necessary.  This is like the C<mkdir -p> shell command."
14672 msgstr ""
14673
14674 # type: =head2
14675 #. type: =head2
14676 #: ../src/guestfs-actions.pod:4251
14677 msgid "guestfs_mkdtemp"
14678 msgstr ""
14679
14680 # type: verbatim
14681 #. type: verbatim
14682 #: ../src/guestfs-actions.pod:4253
14683 #, no-wrap
14684 msgid ""
14685 " char *\n"
14686 " guestfs_mkdtemp (guestfs_h *g,\n"
14687 "                  const char *template);\n"
14688 "\n"
14689 msgstr ""
14690
14691 # type: textblock
14692 #. type: textblock
14693 #: ../src/guestfs-actions.pod:4257 ../fish/guestfish-actions.pod:2910
14694 msgid ""
14695 "This command creates a temporary directory.  The C<template> parameter "
14696 "should be a full pathname for the temporary directory name with the final "
14697 "six characters being \"XXXXXX\"."
14698 msgstr ""
14699
14700 # type: textblock
14701 #. type: textblock
14702 #: ../src/guestfs-actions.pod:4262 ../fish/guestfish-actions.pod:2915
14703 msgid ""
14704 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14705 "being suitable for Windows filesystems."
14706 msgstr ""
14707
14708 # type: textblock
14709 #. type: textblock
14710 #: ../src/guestfs-actions.pod:4265 ../fish/guestfish-actions.pod:2918
14711 msgid "The name of the temporary directory that was created is returned."
14712 msgstr ""
14713
14714 # type: textblock
14715 #. type: textblock
14716 #: ../src/guestfs-actions.pod:4268 ../fish/guestfish-actions.pod:2921
14717 msgid "The temporary directory is created with mode 0700 and is owned by root."
14718 msgstr ""
14719
14720 # type: textblock
14721 #. type: textblock
14722 #: ../src/guestfs-actions.pod:4271 ../fish/guestfish-actions.pod:2924
14723 msgid ""
14724 "The caller is responsible for deleting the temporary directory and its "
14725 "contents after use."
14726 msgstr ""
14727
14728 # type: textblock
14729 #. type: textblock
14730 #: ../src/guestfs-actions.pod:4274 ../fish/guestfish-actions.pod:2927
14731 msgid "See also: L<mkdtemp(3)>"
14732 msgstr ""
14733
14734 # type: =head2
14735 #. type: =head2
14736 #: ../src/guestfs-actions.pod:4281
14737 msgid "guestfs_mke2fs_J"
14738 msgstr ""
14739
14740 # type: verbatim
14741 #. type: verbatim
14742 #: ../src/guestfs-actions.pod:4283
14743 #, no-wrap
14744 msgid ""
14745 " int\n"
14746 " guestfs_mke2fs_J (guestfs_h *g,\n"
14747 "                   const char *fstype,\n"
14748 "                   int blocksize,\n"
14749 "                   const char *device,\n"
14750 "                   const char *journal);\n"
14751 "\n"
14752 msgstr ""
14753
14754 # type: textblock
14755 #. type: textblock
14756 #: ../src/guestfs-actions.pod:4290 ../fish/guestfish-actions.pod:2933
14757 msgid ""
14758 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14759 "C<journal>.  It is equivalent to the command:"
14760 msgstr ""
14761
14762 # type: verbatim
14763 #. type: verbatim
14764 #: ../src/guestfs-actions.pod:4294 ../fish/guestfish-actions.pod:2937
14765 #, no-wrap
14766 msgid ""
14767 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14768 "\n"
14769 msgstr ""
14770
14771 # type: textblock
14772 #. type: textblock
14773 #: ../src/guestfs-actions.pod:4296
14774 msgid "See also C<guestfs_mke2journal>."
14775 msgstr ""
14776
14777 # type: textblock
14778 #. type: textblock
14779 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4318
14780 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4352
14781 #: ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4380
14782 #: ../src/guestfs-actions.pod:4439 ../src/guestfs-actions.pod:4704
14783 msgid "(Added in 1.0.68)"
14784 msgstr ""
14785
14786 # type: =head2
14787 #. type: =head2
14788 #: ../src/guestfs-actions.pod:4302
14789 msgid "guestfs_mke2fs_JL"
14790 msgstr ""
14791
14792 # type: verbatim
14793 #. type: verbatim
14794 #: ../src/guestfs-actions.pod:4304
14795 #, no-wrap
14796 msgid ""
14797 " int\n"
14798 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14799 "                    const char *fstype,\n"
14800 "                    int blocksize,\n"
14801 "                    const char *device,\n"
14802 "                    const char *label);\n"
14803 "\n"
14804 msgstr ""
14805
14806 # type: textblock
14807 #. type: textblock
14808 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2945
14809 msgid ""
14810 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14811 "the journal labeled C<label>."
14812 msgstr ""
14813
14814 # type: textblock
14815 #. type: textblock
14816 #: ../src/guestfs-actions.pod:4314
14817 msgid "See also C<guestfs_mke2journal_L>."
14818 msgstr ""
14819
14820 # type: =head2
14821 #. type: =head2
14822 #: ../src/guestfs-actions.pod:4320
14823 msgid "guestfs_mke2fs_JU"
14824 msgstr ""
14825
14826 # type: verbatim
14827 #. type: verbatim
14828 #: ../src/guestfs-actions.pod:4322
14829 #, no-wrap
14830 msgid ""
14831 " int\n"
14832 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14833 "                    const char *fstype,\n"
14834 "                    int blocksize,\n"
14835 "                    const char *device,\n"
14836 "                    const char *uuid);\n"
14837 "\n"
14838 msgstr ""
14839
14840 # type: textblock
14841 #. type: textblock
14842 #: ../src/guestfs-actions.pod:4329 ../fish/guestfish-actions.pod:2954
14843 msgid ""
14844 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14845 "the journal with UUID C<uuid>."
14846 msgstr ""
14847
14848 # type: textblock
14849 #. type: textblock
14850 #: ../src/guestfs-actions.pod:4332
14851 msgid "See also C<guestfs_mke2journal_U>."
14852 msgstr ""
14853
14854 # type: =head2
14855 #. type: =head2
14856 #: ../src/guestfs-actions.pod:4338
14857 msgid "guestfs_mke2journal"
14858 msgstr ""
14859
14860 # type: verbatim
14861 #. type: verbatim
14862 #: ../src/guestfs-actions.pod:4340
14863 #, no-wrap
14864 msgid ""
14865 " int\n"
14866 " guestfs_mke2journal (guestfs_h *g,\n"
14867 "                      int blocksize,\n"
14868 "                      const char *device);\n"
14869 "\n"
14870 msgstr ""
14871
14872 # type: textblock
14873 #. type: textblock
14874 #: ../src/guestfs-actions.pod:4345 ../fish/guestfish-actions.pod:2963
14875 msgid ""
14876 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14877 "command:"
14878 msgstr ""
14879
14880 # type: verbatim
14881 #. type: verbatim
14882 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2966
14883 #, no-wrap
14884 msgid ""
14885 " mke2fs -O journal_dev -b blocksize device\n"
14886 "\n"
14887 msgstr ""
14888
14889 # type: =head2
14890 #. type: =head2
14891 #: ../src/guestfs-actions.pod:4354
14892 msgid "guestfs_mke2journal_L"
14893 msgstr ""
14894
14895 # type: verbatim
14896 #. type: verbatim
14897 #: ../src/guestfs-actions.pod:4356
14898 #, no-wrap
14899 msgid ""
14900 " int\n"
14901 " guestfs_mke2journal_L (guestfs_h *g,\n"
14902 "                        int blocksize,\n"
14903 "                        const char *label,\n"
14904 "                        const char *device);\n"
14905 "\n"
14906 msgstr ""
14907
14908 # type: textblock
14909 #. type: textblock
14910 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2972
14911 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14912 msgstr ""
14913
14914 # type: =head2
14915 #. type: =head2
14916 #: ../src/guestfs-actions.pod:4368
14917 msgid "guestfs_mke2journal_U"
14918 msgstr ""
14919
14920 # type: verbatim
14921 #. type: verbatim
14922 #: ../src/guestfs-actions.pod:4370
14923 #, no-wrap
14924 msgid ""
14925 " int\n"
14926 " guestfs_mke2journal_U (guestfs_h *g,\n"
14927 "                        int blocksize,\n"
14928 "                        const char *uuid,\n"
14929 "                        const char *device);\n"
14930 "\n"
14931 msgstr ""
14932
14933 # type: textblock
14934 #. type: textblock
14935 #: ../src/guestfs-actions.pod:4376 ../fish/guestfish-actions.pod:2978
14936 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14937 msgstr ""
14938
14939 # type: =head2
14940 #. type: =head2
14941 #: ../src/guestfs-actions.pod:4382
14942 msgid "guestfs_mkfifo"
14943 msgstr ""
14944
14945 # type: verbatim
14946 #. type: verbatim
14947 #: ../src/guestfs-actions.pod:4384
14948 #, no-wrap
14949 msgid ""
14950 " int\n"
14951 " guestfs_mkfifo (guestfs_h *g,\n"
14952 "                 int mode,\n"
14953 "                 const char *path);\n"
14954 "\n"
14955 msgstr ""
14956
14957 # type: textblock
14958 #. type: textblock
14959 #: ../src/guestfs-actions.pod:4389
14960 msgid ""
14961 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14962 "is just a convenient wrapper around C<guestfs_mknod>."
14963 msgstr ""
14964
14965 # type: =head2
14966 #. type: =head2
14967 #: ../src/guestfs-actions.pod:4399
14968 msgid "guestfs_mkfs"
14969 msgstr ""
14970
14971 # type: verbatim
14972 #. type: verbatim
14973 #: ../src/guestfs-actions.pod:4401
14974 #, no-wrap
14975 msgid ""
14976 " int\n"
14977 " guestfs_mkfs (guestfs_h *g,\n"
14978 "               const char *fstype,\n"
14979 "               const char *device);\n"
14980 "\n"
14981 msgstr ""
14982
14983 # type: textblock
14984 #. type: textblock
14985 #: ../src/guestfs-actions.pod:4406 ../fish/guestfish-actions.pod:2994
14986 msgid ""
14987 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14988 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14989 msgstr ""
14990
14991 # type: =head2
14992 #. type: =head2
14993 #: ../src/guestfs-actions.pod:4414
14994 msgid "guestfs_mkfs_b"
14995 msgstr ""
14996
14997 # type: verbatim
14998 #. type: verbatim
14999 #: ../src/guestfs-actions.pod:4416
15000 #, no-wrap
15001 msgid ""
15002 " int\n"
15003 " guestfs_mkfs_b (guestfs_h *g,\n"
15004 "                 const char *fstype,\n"
15005 "                 int blocksize,\n"
15006 "                 const char *device);\n"
15007 "\n"
15008 msgstr ""
15009
15010 # type: textblock
15011 #. type: textblock
15012 #: ../src/guestfs-actions.pod:4422
15013 msgid ""
15014 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
15015 "block size of the resulting filesystem.  Supported block sizes depend on the "
15016 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
15017 msgstr ""
15018
15019 # type: textblock
15020 #. type: textblock
15021 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4470
15022 #: ../fish/guestfish-actions.pod:3007 ../fish/guestfish-actions.pod:3034
15023 msgid ""
15024 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
15025 "cluster size."
15026 msgstr ""
15027
15028 # type: textblock
15029 #. type: textblock
15030 #: ../src/guestfs-actions.pod:4432 ../fish/guestfish-actions.pod:3010
15031 msgid ""
15032 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
15033 msgstr ""
15034
15035 # type: =head2
15036 #. type: =head2
15037 #: ../src/guestfs-actions.pod:4441
15038 msgid "guestfs_mkfs_opts"
15039 msgstr ""
15040
15041 # type: verbatim
15042 #. type: verbatim
15043 #: ../src/guestfs-actions.pod:4443
15044 #, no-wrap
15045 msgid ""
15046 " int\n"
15047 " guestfs_mkfs_opts (guestfs_h *g,\n"
15048 "                    const char *fstype,\n"
15049 "                    const char *device,\n"
15050 "                    ...);\n"
15051 "\n"
15052 msgstr ""
15053
15054 #. type: verbatim
15055 #: ../src/guestfs-actions.pod:4454
15056 #, no-wrap
15057 msgid ""
15058 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
15059 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
15060 "\n"
15061 msgstr ""
15062
15063 # type: textblock
15064 #. type: textblock
15065 #: ../src/guestfs-actions.pod:4457 ../fish/guestfish-actions.pod:3021
15066 msgid ""
15067 "This function creates a filesystem on C<device>.  The filesystem type is "
15068 "C<fstype>, for example C<ext3>."
15069 msgstr ""
15070
15071 # type: =item
15072 #. type: =item
15073 #: ../src/guestfs-actions.pod:4464 ../fish/guestfish-actions.pod:3028
15074 msgid "C<blocksize>"
15075 msgstr ""
15076
15077 # type: textblock
15078 #. type: textblock
15079 #: ../src/guestfs-actions.pod:4466 ../fish/guestfish-actions.pod:3030
15080 msgid ""
15081 "The filesystem block size.  Supported block sizes depend on the filesystem "
15082 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
15083 "filesystems."
15084 msgstr ""
15085
15086 #. type: textblock
15087 #: ../src/guestfs-actions.pod:4473 ../fish/guestfish-actions.pod:3037
15088 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
15089 msgstr ""
15090
15091 #. type: =item
15092 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:3039
15093 msgid "C<features>"
15094 msgstr ""
15095
15096 #. type: textblock
15097 #: ../src/guestfs-actions.pod:4477 ../fish/guestfish-actions.pod:3041
15098 msgid "This passes the I<-O> parameter to the external mkfs program."
15099 msgstr ""
15100
15101 #. type: textblock
15102 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:3043
15103 msgid ""
15104 "For certain filesystem types, this allows extra filesystem features to be "
15105 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
15106 msgstr ""
15107
15108 #. type: textblock
15109 #: ../src/guestfs-actions.pod:4483 ../fish/guestfish-actions.pod:3047
15110 msgid ""
15111 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
15112 "type."
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../src/guestfs-actions.pod:4490
15117 msgid "(Added in 1.7.19)"
15118 msgstr ""
15119
15120 # type: =head2
15121 #. type: =head2
15122 #: ../src/guestfs-actions.pod:4492
15123 msgid "guestfs_mkfs_opts_va"
15124 msgstr ""
15125
15126 # type: verbatim
15127 #. type: verbatim
15128 #: ../src/guestfs-actions.pod:4494
15129 #, no-wrap
15130 msgid ""
15131 " int\n"
15132 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
15133 "                       const char *fstype,\n"
15134 "                       const char *device,\n"
15135 "                       va_list args);\n"
15136 "\n"
15137 msgstr ""
15138
15139 # type: textblock
15140 #. type: textblock
15141 #: ../src/guestfs-actions.pod:4500
15142 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
15143 msgstr ""
15144
15145 # type: =head2
15146 #. type: =head2
15147 #: ../src/guestfs-actions.pod:4504
15148 msgid "guestfs_mkfs_opts_argv"
15149 msgstr ""
15150
15151 # type: verbatim
15152 #. type: verbatim
15153 #: ../src/guestfs-actions.pod:4506
15154 #, no-wrap
15155 msgid ""
15156 " int\n"
15157 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
15158 "                         const char *fstype,\n"
15159 "                         const char *device,\n"
15160 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
15161 "\n"
15162 msgstr ""
15163
15164 # type: textblock
15165 #. type: textblock
15166 #: ../src/guestfs-actions.pod:4512
15167 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
15168 msgstr ""
15169
15170 # type: =head2
15171 #. type: =head2
15172 #: ../src/guestfs-actions.pod:4516
15173 msgid "guestfs_mkmountpoint"
15174 msgstr ""
15175
15176 # type: verbatim
15177 #. type: verbatim
15178 #: ../src/guestfs-actions.pod:4518
15179 #, no-wrap
15180 msgid ""
15181 " int\n"
15182 " guestfs_mkmountpoint (guestfs_h *g,\n"
15183 "                       const char *exemptpath);\n"
15184 "\n"
15185 msgstr ""
15186
15187 # type: textblock
15188 #. type: textblock
15189 #: ../src/guestfs-actions.pod:4522
15190 msgid ""
15191 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
15192 "that can be used to create extra mountpoints before mounting the first "
15193 "filesystem."
15194 msgstr ""
15195
15196 # type: textblock
15197 #. type: textblock
15198 #: ../src/guestfs-actions.pod:4526 ../fish/guestfish-actions.pod:3062
15199 msgid ""
15200 "These calls are I<only> necessary in some very limited circumstances, mainly "
15201 "the case where you want to mount a mix of unrelated and/or read-only "
15202 "filesystems together."
15203 msgstr ""
15204
15205 # type: textblock
15206 #. type: textblock
15207 #: ../src/guestfs-actions.pod:4530 ../fish/guestfish-actions.pod:3066
15208 msgid ""
15209 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
15210 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
15211 "inside that.  You can unpack this as follows in guestfish:"
15212 msgstr ""
15213
15214 # type: verbatim
15215 #. type: verbatim
15216 #: ../src/guestfs-actions.pod:4535 ../fish/guestfish-actions.pod:3071
15217 #, no-wrap
15218 msgid ""
15219 " add-ro Fedora-11-i686-Live.iso\n"
15220 " run\n"
15221 " mkmountpoint /cd\n"
15222 " mkmountpoint /sqsh\n"
15223 " mkmountpoint /ext3fs\n"
15224 " mount /dev/sda /cd\n"
15225 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
15226 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
15227 "\n"
15228 msgstr ""
15229
15230 # type: textblock
15231 #. type: textblock
15232 #: ../src/guestfs-actions.pod:4544 ../fish/guestfish-actions.pod:3080
15233 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
15234 msgstr ""
15235
15236 # type: textblock
15237 #. type: textblock
15238 #: ../src/guestfs-actions.pod:4546
15239 msgid ""
15240 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
15241 "may get unexpected errors if you try to mix these calls.  It is safest to "
15242 "manually unmount filesystems and remove mountpoints after use."
15243 msgstr ""
15244
15245 # type: textblock
15246 #. type: textblock
15247 #: ../src/guestfs-actions.pod:4550
15248 msgid ""
15249 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
15250 "first, so for this to work for manual mountpoints, you must ensure that the "
15251 "innermost mountpoints have the longest pathnames, as in the example code "
15252 "above."
15253 msgstr ""
15254
15255 # type: textblock
15256 #. type: textblock
15257 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3091
15258 msgid ""
15259 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../src/guestfs-actions.pod:4557
15264 msgid ""
15265 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
15266 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
15267 "can also trigger these issues."
15268 msgstr ""
15269
15270 # type: textblock
15271 #. type: textblock
15272 #: ../src/guestfs-actions.pod:4563 ../src/guestfs-actions.pod:4822
15273 #: ../src/guestfs-actions.pod:5732
15274 msgid "(Added in 1.0.62)"
15275 msgstr ""
15276
15277 # type: =head2
15278 #. type: =head2
15279 #: ../src/guestfs-actions.pod:4565
15280 msgid "guestfs_mknod"
15281 msgstr ""
15282
15283 # type: verbatim
15284 #. type: verbatim
15285 #: ../src/guestfs-actions.pod:4567
15286 #, no-wrap
15287 msgid ""
15288 " int\n"
15289 " guestfs_mknod (guestfs_h *g,\n"
15290 "                int mode,\n"
15291 "                int devmajor,\n"
15292 "                int devminor,\n"
15293 "                const char *path);\n"
15294 "\n"
15295 msgstr ""
15296
15297 # type: textblock
15298 #. type: textblock
15299 #: ../src/guestfs-actions.pod:4574 ../fish/guestfish-actions.pod:3101
15300 msgid ""
15301 "This call creates block or character special devices, or named pipes (FIFOs)."
15302 msgstr ""
15303
15304 # type: textblock
15305 #. type: textblock
15306 #: ../src/guestfs-actions.pod:4577 ../fish/guestfish-actions.pod:3104
15307 msgid ""
15308 "The C<mode> parameter should be the mode, using the standard constants.  "
15309 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15310 "used when creating block and character special devices."
15311 msgstr ""
15312
15313 # type: textblock
15314 #. type: textblock
15315 #: ../src/guestfs-actions.pod:4582
15316 msgid ""
15317 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15318 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15319 "regular file).  These constants are available in the standard Linux header "
15320 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15321 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15322 "the appropriate constant for you."
15323 msgstr ""
15324
15325 # type: =head2
15326 #. type: =head2
15327 #: ../src/guestfs-actions.pod:4596
15328 msgid "guestfs_mknod_b"
15329 msgstr ""
15330
15331 # type: verbatim
15332 #. type: verbatim
15333 #: ../src/guestfs-actions.pod:4598
15334 #, no-wrap
15335 msgid ""
15336 " int\n"
15337 " guestfs_mknod_b (guestfs_h *g,\n"
15338 "                  int mode,\n"
15339 "                  int devmajor,\n"
15340 "                  int devminor,\n"
15341 "                  const char *path);\n"
15342 "\n"
15343 msgstr ""
15344
15345 # type: textblock
15346 #. type: textblock
15347 #: ../src/guestfs-actions.pod:4605
15348 msgid ""
15349 "This call creates a block device node called C<path> with mode C<mode> and "
15350 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15351 "wrapper around C<guestfs_mknod>."
15352 msgstr ""
15353
15354 # type: =head2
15355 #. type: =head2
15356 #: ../src/guestfs-actions.pod:4615
15357 msgid "guestfs_mknod_c"
15358 msgstr ""
15359
15360 # type: verbatim
15361 #. type: verbatim
15362 #: ../src/guestfs-actions.pod:4617
15363 #, no-wrap
15364 msgid ""
15365 " int\n"
15366 " guestfs_mknod_c (guestfs_h *g,\n"
15367 "                  int mode,\n"
15368 "                  int devmajor,\n"
15369 "                  int devminor,\n"
15370 "                  const char *path);\n"
15371 "\n"
15372 msgstr ""
15373
15374 # type: textblock
15375 #. type: textblock
15376 #: ../src/guestfs-actions.pod:4624
15377 msgid ""
15378 "This call creates a char device node called C<path> with mode C<mode> and "
15379 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15380 "wrapper around C<guestfs_mknod>."
15381 msgstr ""
15382
15383 # type: =head2
15384 #. type: =head2
15385 #: ../src/guestfs-actions.pod:4634
15386 msgid "guestfs_mkswap"
15387 msgstr ""
15388
15389 # type: verbatim
15390 #. type: verbatim
15391 #: ../src/guestfs-actions.pod:4636
15392 #, no-wrap
15393 msgid ""
15394 " int\n"
15395 " guestfs_mkswap (guestfs_h *g,\n"
15396 "                 const char *device);\n"
15397 "\n"
15398 msgstr ""
15399
15400 # type: textblock
15401 #. type: textblock
15402 #: ../src/guestfs-actions.pod:4640 ../fish/guestfish-actions.pod:3143
15403 msgid "Create a swap partition on C<device>."
15404 msgstr ""
15405
15406 # type: =head2
15407 #. type: =head2
15408 #: ../src/guestfs-actions.pod:4646
15409 msgid "guestfs_mkswap_L"
15410 msgstr ""
15411
15412 # type: verbatim
15413 #. type: verbatim
15414 #: ../src/guestfs-actions.pod:4648
15415 #, no-wrap
15416 msgid ""
15417 " int\n"
15418 " guestfs_mkswap_L (guestfs_h *g,\n"
15419 "                   const char *label,\n"
15420 "                   const char *device);\n"
15421 "\n"
15422 msgstr ""
15423
15424 # type: textblock
15425 #. type: textblock
15426 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3149
15427 msgid "Create a swap partition on C<device> with label C<label>."
15428 msgstr ""
15429
15430 # type: textblock
15431 #. type: textblock
15432 #: ../src/guestfs-actions.pod:4655 ../fish/guestfish-actions.pod:3151
15433 msgid ""
15434 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15435 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15436 "or swap tools."
15437 msgstr ""
15438
15439 # type: =head2
15440 #. type: =head2
15441 #: ../src/guestfs-actions.pod:4663
15442 msgid "guestfs_mkswap_U"
15443 msgstr ""
15444
15445 # type: verbatim
15446 #. type: verbatim
15447 #: ../src/guestfs-actions.pod:4665
15448 #, no-wrap
15449 msgid ""
15450 " int\n"
15451 " guestfs_mkswap_U (guestfs_h *g,\n"
15452 "                   const char *uuid,\n"
15453 "                   const char *device);\n"
15454 "\n"
15455 msgstr ""
15456
15457 # type: textblock
15458 #. type: textblock
15459 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3159
15460 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15461 msgstr ""
15462
15463 # type: =head2
15464 #. type: =head2
15465 #: ../src/guestfs-actions.pod:4676
15466 msgid "guestfs_mkswap_file"
15467 msgstr ""
15468
15469 # type: verbatim
15470 #. type: verbatim
15471 #: ../src/guestfs-actions.pod:4678
15472 #, no-wrap
15473 msgid ""
15474 " int\n"
15475 " guestfs_mkswap_file (guestfs_h *g,\n"
15476 "                      const char *path);\n"
15477 "\n"
15478 msgstr ""
15479
15480 # type: textblock
15481 #. type: textblock
15482 #: ../src/guestfs-actions.pod:4682 ../fish/guestfish-actions.pod:3165
15483 msgid "Create a swap file."
15484 msgstr ""
15485
15486 # type: textblock
15487 #. type: textblock
15488 #: ../src/guestfs-actions.pod:4684
15489 msgid ""
15490 "This command just writes a swap file signature to an existing file.  To "
15491 "create the file itself, use something like C<guestfs_fallocate>."
15492 msgstr ""
15493
15494 # type: =head2
15495 #. type: =head2
15496 #: ../src/guestfs-actions.pod:4691
15497 msgid "guestfs_modprobe"
15498 msgstr ""
15499
15500 # type: verbatim
15501 #. type: verbatim
15502 #: ../src/guestfs-actions.pod:4693
15503 #, no-wrap
15504 msgid ""
15505 " int\n"
15506 " guestfs_modprobe (guestfs_h *g,\n"
15507 "                   const char *modulename);\n"
15508 "\n"
15509 msgstr ""
15510
15511 # type: textblock
15512 #. type: textblock
15513 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3174
15514 msgid "This loads a kernel module in the appliance."
15515 msgstr ""
15516
15517 # type: textblock
15518 #. type: textblock
15519 #: ../src/guestfs-actions.pod:4699 ../fish/guestfish-actions.pod:3176
15520 msgid ""
15521 "The kernel module must have been whitelisted when libguestfs was built (see "
15522 "C<appliance/kmod.whitelist.in> in the source)."
15523 msgstr ""
15524
15525 # type: =head2
15526 #. type: =head2
15527 #: ../src/guestfs-actions.pod:4706
15528 msgid "guestfs_mount"
15529 msgstr ""
15530
15531 # type: verbatim
15532 #. type: verbatim
15533 #: ../src/guestfs-actions.pod:4708
15534 #, no-wrap
15535 msgid ""
15536 " int\n"
15537 " guestfs_mount (guestfs_h *g,\n"
15538 "                const char *device,\n"
15539 "                const char *mountpoint);\n"
15540 "\n"
15541 msgstr ""
15542
15543 # type: textblock
15544 #. type: textblock
15545 #: ../src/guestfs-actions.pod:4713 ../fish/guestfish-actions.pod:3183
15546 msgid ""
15547 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15548 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15549 "those block devices contain partitions, they will have the usual names (eg. "
15550 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15551 msgstr ""
15552
15553 # type: textblock
15554 #. type: textblock
15555 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3189
15556 msgid ""
15557 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15558 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15559 "mounted on directories which already exist."
15560 msgstr ""
15561
15562 # type: textblock
15563 #. type: textblock
15564 #: ../src/guestfs-actions.pod:4724 ../fish/guestfish-actions.pod:3194
15565 msgid ""
15566 "The mounted filesystem is writable, if we have sufficient permissions on the "
15567 "underlying device."
15568 msgstr ""
15569
15570 # type: textblock
15571 #. type: textblock
15572 #: ../src/guestfs-actions.pod:4727
15573 msgid ""
15574 "B<Important note:> When you use this call, the filesystem options C<sync> "
15575 "and C<noatime> are set implicitly.  This was originally done because we "
15576 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15577 "very large negative performance impact and negligible effect on "
15578 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15579 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15580 "(use an empty string for the first parameter if you don't want any options)."
15581 msgstr ""
15582
15583 # type: =head2
15584 #. type: =head2
15585 #: ../src/guestfs-actions.pod:4741
15586 msgid "guestfs_mount_loop"
15587 msgstr ""
15588
15589 # type: verbatim
15590 #. type: verbatim
15591 #: ../src/guestfs-actions.pod:4743
15592 #, no-wrap
15593 msgid ""
15594 " int\n"
15595 " guestfs_mount_loop (guestfs_h *g,\n"
15596 "                     const char *file,\n"
15597 "                     const char *mountpoint);\n"
15598 "\n"
15599 msgstr ""
15600
15601 # type: textblock
15602 #. type: textblock
15603 #: ../src/guestfs-actions.pod:4748 ../fish/guestfish-actions.pod:3211
15604 msgid ""
15605 "This command lets you mount C<file> (a filesystem image in a file) on a "
15606 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15607 "mountpoint>."
15608 msgstr ""
15609
15610 # type: =head2
15611 #. type: =head2
15612 #: ../src/guestfs-actions.pod:4756
15613 msgid "guestfs_mount_options"
15614 msgstr ""
15615
15616 # type: verbatim
15617 #. type: verbatim
15618 #: ../src/guestfs-actions.pod:4758
15619 #, no-wrap
15620 msgid ""
15621 " int\n"
15622 " guestfs_mount_options (guestfs_h *g,\n"
15623 "                        const char *options,\n"
15624 "                        const char *device,\n"
15625 "                        const char *mountpoint);\n"
15626 "\n"
15627 msgstr ""
15628
15629 # type: textblock
15630 #. type: textblock
15631 #: ../src/guestfs-actions.pod:4764
15632 msgid ""
15633 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15634 "the mount options as for the L<mount(8)> I<-o> flag."
15635 msgstr ""
15636
15637 # type: textblock
15638 #. type: textblock
15639 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3223
15640 msgid ""
15641 "If the C<options> parameter is an empty string, then no options are passed "
15642 "(all options default to whatever the filesystem uses)."
15643 msgstr ""
15644
15645 # type: textblock
15646 #. type: textblock
15647 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4788
15648 #: ../src/guestfs-actions.pod:4805
15649 msgid "(Added in 1.0.10)"
15650 msgstr ""
15651
15652 # type: =head2
15653 #. type: =head2
15654 #: ../src/guestfs-actions.pod:4776
15655 msgid "guestfs_mount_ro"
15656 msgstr ""
15657
15658 # type: verbatim
15659 #. type: verbatim
15660 #: ../src/guestfs-actions.pod:4778
15661 #, no-wrap
15662 msgid ""
15663 " int\n"
15664 " guestfs_mount_ro (guestfs_h *g,\n"
15665 "                   const char *device,\n"
15666 "                   const char *mountpoint);\n"
15667 "\n"
15668 msgstr ""
15669
15670 # type: textblock
15671 #. type: textblock
15672 #: ../src/guestfs-actions.pod:4783
15673 msgid ""
15674 "This is the same as the C<guestfs_mount> command, but it mounts the "
15675 "filesystem with the read-only (I<-o ro>) flag."
15676 msgstr ""
15677
15678 # type: =head2
15679 #. type: =head2
15680 #: ../src/guestfs-actions.pod:4790
15681 msgid "guestfs_mount_vfs"
15682 msgstr ""
15683
15684 # type: verbatim
15685 #. type: verbatim
15686 #: ../src/guestfs-actions.pod:4792
15687 #, no-wrap
15688 msgid ""
15689 " int\n"
15690 " guestfs_mount_vfs (guestfs_h *g,\n"
15691 "                    const char *options,\n"
15692 "                    const char *vfstype,\n"
15693 "                    const char *device,\n"
15694 "                    const char *mountpoint);\n"
15695 "\n"
15696 msgstr ""
15697
15698 # type: textblock
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:4799
15701 msgid ""
15702 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15703 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
15704 "t> flags."
15705 msgstr ""
15706
15707 # type: =head2
15708 #. type: =head2
15709 #: ../src/guestfs-actions.pod:4807
15710 msgid "guestfs_mountpoints"
15711 msgstr ""
15712
15713 # type: verbatim
15714 #. type: verbatim
15715 #: ../src/guestfs-actions.pod:4809
15716 #, no-wrap
15717 msgid ""
15718 " char **\n"
15719 " guestfs_mountpoints (guestfs_h *g);\n"
15720 "\n"
15721 msgstr ""
15722
15723 # type: textblock
15724 #. type: textblock
15725 #: ../src/guestfs-actions.pod:4812
15726 msgid ""
15727 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
15728 "devices.  This one returns a hash table (map) of device name to directory "
15729 "where the device is mounted."
15730 msgstr ""
15731
15732 # type: =head2
15733 #. type: =head2
15734 #: ../src/guestfs-actions.pod:4824
15735 msgid "guestfs_mounts"
15736 msgstr ""
15737
15738 # type: verbatim
15739 #. type: verbatim
15740 #: ../src/guestfs-actions.pod:4826
15741 #, no-wrap
15742 msgid ""
15743 " char **\n"
15744 " guestfs_mounts (guestfs_h *g);\n"
15745 "\n"
15746 msgstr ""
15747
15748 # type: textblock
15749 #. type: textblock
15750 #: ../src/guestfs-actions.pod:4829 ../fish/guestfish-actions.pod:3254
15751 msgid ""
15752 "This returns the list of currently mounted filesystems.  It returns the list "
15753 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15754 msgstr ""
15755
15756 # type: textblock
15757 #. type: textblock
15758 #: ../src/guestfs-actions.pod:4832 ../fish/guestfish-actions.pod:3257
15759 msgid "Some internal mounts are not shown."
15760 msgstr ""
15761
15762 # type: textblock
15763 #. type: textblock
15764 #: ../src/guestfs-actions.pod:4834
15765 msgid "See also: C<guestfs_mountpoints>"
15766 msgstr ""
15767
15768 # type: =head2
15769 #. type: =head2
15770 #: ../src/guestfs-actions.pod:4842
15771 msgid "guestfs_mv"
15772 msgstr ""
15773
15774 # type: verbatim
15775 #. type: verbatim
15776 #: ../src/guestfs-actions.pod:4844
15777 #, no-wrap
15778 msgid ""
15779 " int\n"
15780 " guestfs_mv (guestfs_h *g,\n"
15781 "             const char *src,\n"
15782 "             const char *dest);\n"
15783 "\n"
15784 msgstr ""
15785
15786 # type: textblock
15787 #. type: textblock
15788 #: ../src/guestfs-actions.pod:4849 ../fish/guestfish-actions.pod:3265
15789 msgid ""
15790 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15791 "destination filename or destination directory."
15792 msgstr ""
15793
15794 # type: =head2
15795 #. type: =head2
15796 #: ../src/guestfs-actions.pod:4856
15797 msgid "guestfs_ntfs_3g_probe"
15798 msgstr ""
15799
15800 # type: verbatim
15801 #. type: verbatim
15802 #: ../src/guestfs-actions.pod:4858
15803 #, no-wrap
15804 msgid ""
15805 " int\n"
15806 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15807 "                        int rw,\n"
15808 "                        const char *device);\n"
15809 "\n"
15810 msgstr ""
15811
15812 # type: textblock
15813 #. type: textblock
15814 #: ../src/guestfs-actions.pod:4863 ../fish/guestfish-actions.pod:3272
15815 msgid ""
15816 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
15817 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
15818 "write, and some cannot be mounted at all)."
15819 msgstr ""
15820
15821 # type: textblock
15822 #. type: textblock
15823 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3276
15824 msgid ""
15825 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15826 "can be mounted read-write.  Set it to false if you want to test if the "
15827 "volume can be mounted read-only."
15828 msgstr ""
15829
15830 # type: textblock
15831 #. type: textblock
15832 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3280
15833 msgid ""
15834 "The return value is an integer which C<0> if the operation would succeed, or "
15835 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15836 msgstr ""
15837
15838 # type: textblock
15839 #. type: textblock
15840 #: ../src/guestfs-actions.pod:4877
15841 msgid "(Added in 1.0.43)"
15842 msgstr ""
15843
15844 # type: =head2
15845 #. type: =head2
15846 #: ../src/guestfs-actions.pod:4879
15847 msgid "guestfs_ntfsresize"
15848 msgstr ""
15849
15850 # type: verbatim
15851 #. type: verbatim
15852 #: ../src/guestfs-actions.pod:4881
15853 #, no-wrap
15854 msgid ""
15855 " int\n"
15856 " guestfs_ntfsresize (guestfs_h *g,\n"
15857 "                     const char *device);\n"
15858 "\n"
15859 msgstr ""
15860
15861 # type: textblock
15862 #. type: textblock
15863 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3288
15864 msgid ""
15865 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15866 "size of the underlying device.  See also L<ntfsresize(8)>."
15867 msgstr ""
15868
15869 # type: =head2
15870 #. type: =head2
15871 #: ../src/guestfs-actions.pod:4893
15872 msgid "guestfs_ntfsresize_size"
15873 msgstr ""
15874
15875 # type: verbatim
15876 #. type: verbatim
15877 #: ../src/guestfs-actions.pod:4895
15878 #, no-wrap
15879 msgid ""
15880 " int\n"
15881 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15882 "                          const char *device,\n"
15883 "                          int64_t size);\n"
15884 "\n"
15885 msgstr ""
15886
15887 # type: textblock
15888 #. type: textblock
15889 #: ../src/guestfs-actions.pod:4900
15890 msgid ""
15891 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15892 "to specify the new size (in bytes) explicitly."
15893 msgstr ""
15894
15895 # type: textblock
15896 #. type: textblock
15897 #: ../src/guestfs-actions.pod:4905 ../src/guestfs-actions.pod:5341
15898 #: ../src/guestfs-actions.pod:5414 ../src/guestfs-actions.pod:5680
15899 #: ../src/guestfs-actions.pod:7251
15900 msgid "(Added in 1.3.14)"
15901 msgstr ""
15902
15903 # type: =head2
15904 #. type: =head2
15905 #: ../src/guestfs-actions.pod:4907
15906 msgid "guestfs_part_add"
15907 msgstr ""
15908
15909 # type: verbatim
15910 #. type: verbatim
15911 #: ../src/guestfs-actions.pod:4909
15912 #, no-wrap
15913 msgid ""
15914 " int\n"
15915 " guestfs_part_add (guestfs_h *g,\n"
15916 "                   const char *device,\n"
15917 "                   const char *prlogex,\n"
15918 "                   int64_t startsect,\n"
15919 "                   int64_t endsect);\n"
15920 "\n"
15921 msgstr ""
15922
15923 # type: textblock
15924 #. type: textblock
15925 #: ../src/guestfs-actions.pod:4916
15926 msgid ""
15927 "This command adds a partition to C<device>.  If there is no partition table "
15928 "on the device, call C<guestfs_part_init> first."
15929 msgstr ""
15930
15931 # type: textblock
15932 #. type: textblock
15933 #: ../src/guestfs-actions.pod:4919 ../fish/guestfish-actions.pod:3306
15934 msgid ""
15935 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15936 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15937 "C<logical>) and C<e> (or C<extended>) partition types."
15938 msgstr ""
15939
15940 # type: textblock
15941 #. type: textblock
15942 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3311
15943 msgid ""
15944 "C<startsect> and C<endsect> are the start and end of the partition in "
15945 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15946 "from the end of the disk (C<-1> is the last sector)."
15947 msgstr ""
15948
15949 # type: textblock
15950 #. type: textblock
15951 #: ../src/guestfs-actions.pod:4928
15952 msgid ""
15953 "Creating a partition which covers the whole disk is not so easy.  Use "
15954 "C<guestfs_part_disk> to do that."
15955 msgstr ""
15956
15957 # type: textblock
15958 #. type: textblock
15959 #: ../src/guestfs-actions.pod:4933 ../src/guestfs-actions.pod:4971
15960 #: ../src/guestfs-actions.pod:5024 ../src/guestfs-actions.pod:5102
15961 #: ../src/guestfs-actions.pod:5140 ../src/guestfs-actions.pod:5159
15962 #: ../src/guestfs-actions.pod:5199
15963 msgid "(Added in 1.0.78)"
15964 msgstr ""
15965
15966 # type: =head2
15967 #. type: =head2
15968 #: ../src/guestfs-actions.pod:4935
15969 msgid "guestfs_part_del"
15970 msgstr ""
15971
15972 # type: verbatim
15973 #. type: verbatim
15974 #: ../src/guestfs-actions.pod:4937
15975 #, no-wrap
15976 msgid ""
15977 " int\n"
15978 " guestfs_part_del (guestfs_h *g,\n"
15979 "                   const char *device,\n"
15980 "                   int partnum);\n"
15981 "\n"
15982 msgstr ""
15983
15984 # type: textblock
15985 #. type: textblock
15986 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3322
15987 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15988 msgstr ""
15989
15990 # type: textblock
15991 #. type: textblock
15992 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3324
15993 msgid ""
15994 "Note that in the case of MBR partitioning, deleting an extended partition "
15995 "also deletes any logical partitions it contains."
15996 msgstr ""
15997
15998 # type: =head2
15999 #. type: =head2
16000 #: ../src/guestfs-actions.pod:4952
16001 msgid "guestfs_part_disk"
16002 msgstr ""
16003
16004 # type: verbatim
16005 #. type: verbatim
16006 #: ../src/guestfs-actions.pod:4954
16007 #, no-wrap
16008 msgid ""
16009 " int\n"
16010 " guestfs_part_disk (guestfs_h *g,\n"
16011 "                    const char *device,\n"
16012 "                    const char *parttype);\n"
16013 "\n"
16014 msgstr ""
16015
16016 # type: textblock
16017 #. type: textblock
16018 #: ../src/guestfs-actions.pod:4959
16019 msgid ""
16020 "This command is simply a combination of C<guestfs_part_init> followed by "
16021 "C<guestfs_part_add> to create a single primary partition covering the whole "
16022 "disk."
16023 msgstr ""
16024
16025 # type: textblock
16026 #. type: textblock
16027 #: ../src/guestfs-actions.pod:4963
16028 msgid ""
16029 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
16030 "possible values are described in C<guestfs_part_init>."
16031 msgstr ""
16032
16033 # type: =head2
16034 #. type: =head2
16035 #: ../src/guestfs-actions.pod:4973
16036 msgid "guestfs_part_get_bootable"
16037 msgstr ""
16038
16039 # type: verbatim
16040 #. type: verbatim
16041 #: ../src/guestfs-actions.pod:4975
16042 #, no-wrap
16043 msgid ""
16044 " int\n"
16045 " guestfs_part_get_bootable (guestfs_h *g,\n"
16046 "                            const char *device,\n"
16047 "                            int partnum);\n"
16048 "\n"
16049 msgstr ""
16050
16051 # type: textblock
16052 #. type: textblock
16053 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3346
16054 msgid ""
16055 "This command returns true if the partition C<partnum> on C<device> has the "
16056 "bootable flag set."
16057 msgstr ""
16058
16059 # type: textblock
16060 #. type: textblock
16061 #: ../src/guestfs-actions.pod:4983
16062 msgid "See also C<guestfs_part_set_bootable>."
16063 msgstr ""
16064
16065 # type: =head2
16066 #. type: =head2
16067 #: ../src/guestfs-actions.pod:4989
16068 msgid "guestfs_part_get_mbr_id"
16069 msgstr ""
16070
16071 # type: verbatim
16072 #. type: verbatim
16073 #: ../src/guestfs-actions.pod:4991
16074 #, no-wrap
16075 msgid ""
16076 " int\n"
16077 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
16078 "                          const char *device,\n"
16079 "                          int partnum);\n"
16080 "\n"
16081 msgstr ""
16082
16083 # type: textblock
16084 #. type: textblock
16085 #: ../src/guestfs-actions.pod:4996 ../fish/guestfish-actions.pod:3355
16086 msgid ""
16087 "Returns the MBR type byte (also known as the ID byte) from the numbered "
16088 "partition C<partnum>."
16089 msgstr ""
16090
16091 # type: textblock
16092 #. type: textblock
16093 #: ../src/guestfs-actions.pod:4999 ../src/guestfs-actions.pod:5175
16094 msgid ""
16095 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
16096 "undefined results for other partition table types (see "
16097 "C<guestfs_part_get_parttype>)."
16098 msgstr ""
16099
16100 # type: =head2
16101 #. type: =head2
16102 #: ../src/guestfs-actions.pod:5007
16103 msgid "guestfs_part_get_parttype"
16104 msgstr ""
16105
16106 # type: verbatim
16107 #. type: verbatim
16108 #: ../src/guestfs-actions.pod:5009
16109 #, no-wrap
16110 msgid ""
16111 " char *\n"
16112 " guestfs_part_get_parttype (guestfs_h *g,\n"
16113 "                            const char *device);\n"
16114 "\n"
16115 msgstr ""
16116
16117 # type: textblock
16118 #. type: textblock
16119 #: ../src/guestfs-actions.pod:5013 ../fish/guestfish-actions.pod:3366
16120 msgid ""
16121 "This command examines the partition table on C<device> and returns the "
16122 "partition table type (format) being used."
16123 msgstr ""
16124
16125 # type: textblock
16126 #. type: textblock
16127 #: ../src/guestfs-actions.pod:5016
16128 msgid ""
16129 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
16130 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
16131 "possible, although unusual.  See C<guestfs_part_init> for a full list."
16132 msgstr ""
16133
16134 # type: =head2
16135 #. type: =head2
16136 #: ../src/guestfs-actions.pod:5026
16137 msgid "guestfs_part_init"
16138 msgstr ""
16139
16140 # type: verbatim
16141 #. type: verbatim
16142 #: ../src/guestfs-actions.pod:5028
16143 #, no-wrap
16144 msgid ""
16145 " int\n"
16146 " guestfs_part_init (guestfs_h *g,\n"
16147 "                    const char *device,\n"
16148 "                    const char *parttype);\n"
16149 "\n"
16150 msgstr ""
16151
16152 # type: textblock
16153 #. type: textblock
16154 #: ../src/guestfs-actions.pod:5033 ../fish/guestfish-actions.pod:3378
16155 msgid ""
16156 "This creates an empty partition table on C<device> of one of the partition "
16157 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
16158 "(for large disks)."
16159 msgstr ""
16160
16161 # type: textblock
16162 #. type: textblock
16163 #: ../src/guestfs-actions.pod:5037
16164 msgid ""
16165 "Initially there are no partitions.  Following this, you should call "
16166 "C<guestfs_part_add> for each partition required."
16167 msgstr ""
16168
16169 # type: textblock
16170 #. type: textblock
16171 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3385
16172 msgid "Possible values for C<parttype> are:"
16173 msgstr ""
16174
16175 # type: =item
16176 #. type: =item
16177 #: ../src/guestfs-actions.pod:5044 ../fish/guestfish-actions.pod:3389
16178 msgid "B<efi> | B<gpt>"
16179 msgstr ""
16180
16181 # type: textblock
16182 #. type: textblock
16183 #: ../src/guestfs-actions.pod:5046 ../fish/guestfish-actions.pod:3391
16184 msgid "Intel EFI / GPT partition table."
16185 msgstr ""
16186
16187 # type: textblock
16188 #. type: textblock
16189 #: ../src/guestfs-actions.pod:5048 ../fish/guestfish-actions.pod:3393
16190 msgid ""
16191 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
16192 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
16193 "the C<mbr> format."
16194 msgstr ""
16195
16196 # type: =item
16197 #. type: =item
16198 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3397
16199 msgid "B<mbr> | B<msdos>"
16200 msgstr ""
16201
16202 # type: textblock
16203 #. type: textblock
16204 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3399
16205 msgid ""
16206 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
16207 "Windows.  This partition type will B<only> work for device sizes up to 2 "
16208 "TB.  For large disks we recommend using C<gpt>."
16209 msgstr ""
16210
16211 # type: textblock
16212 #. type: textblock
16213 #: ../src/guestfs-actions.pod:5061 ../fish/guestfish-actions.pod:3406
16214 msgid ""
16215 "Other partition table types that may work but are not supported include:"
16216 msgstr ""
16217
16218 # type: =item
16219 #. type: =item
16220 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3411
16221 msgid "B<aix>"
16222 msgstr ""
16223
16224 # type: textblock
16225 #. type: textblock
16226 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3413
16227 msgid "AIX disk labels."
16228 msgstr ""
16229
16230 # type: =item
16231 #. type: =item
16232 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3415
16233 msgid "B<amiga> | B<rdb>"
16234 msgstr ""
16235
16236 # type: textblock
16237 #. type: textblock
16238 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3417
16239 msgid "Amiga \"Rigid Disk Block\" format."
16240 msgstr ""
16241
16242 # type: =item
16243 #. type: =item
16244 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3419
16245 msgid "B<bsd>"
16246 msgstr ""
16247
16248 # type: textblock
16249 #. type: textblock
16250 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3421
16251 msgid "BSD disk labels."
16252 msgstr ""
16253
16254 # type: =item
16255 #. type: =item
16256 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3423
16257 msgid "B<dasd>"
16258 msgstr ""
16259
16260 # type: textblock
16261 #. type: textblock
16262 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3425
16263 msgid "DASD, used on IBM mainframes."
16264 msgstr ""
16265
16266 # type: =item
16267 #. type: =item
16268 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3427
16269 msgid "B<dvh>"
16270 msgstr ""
16271
16272 # type: textblock
16273 #. type: textblock
16274 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3429
16275 msgid "MIPS/SGI volumes."
16276 msgstr ""
16277
16278 # type: =item
16279 #. type: =item
16280 #: ../src/guestfs-actions.pod:5086 ../fish/guestfish-actions.pod:3431
16281 msgid "B<mac>"
16282 msgstr ""
16283
16284 # type: textblock
16285 #. type: textblock
16286 #: ../src/guestfs-actions.pod:5088 ../fish/guestfish-actions.pod:3433
16287 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
16288 msgstr ""
16289
16290 # type: =item
16291 #. type: =item
16292 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3435
16293 msgid "B<pc98>"
16294 msgstr ""
16295
16296 # type: textblock
16297 #. type: textblock
16298 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3437
16299 msgid "NEC PC-98 format, common in Japan apparently."
16300 msgstr ""
16301
16302 # type: =item
16303 #. type: =item
16304 #: ../src/guestfs-actions.pod:5094 ../fish/guestfish-actions.pod:3439
16305 msgid "B<sun>"
16306 msgstr ""
16307
16308 # type: textblock
16309 #. type: textblock
16310 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3441
16311 msgid "Sun disk labels."
16312 msgstr ""
16313
16314 # type: =head2
16315 #. type: =head2
16316 #: ../src/guestfs-actions.pod:5104
16317 msgid "guestfs_part_list"
16318 msgstr ""
16319
16320 # type: verbatim
16321 #. type: verbatim
16322 #: ../src/guestfs-actions.pod:5106
16323 #, no-wrap
16324 msgid ""
16325 " struct guestfs_partition_list *\n"
16326 " guestfs_part_list (guestfs_h *g,\n"
16327 "                    const char *device);\n"
16328 "\n"
16329 msgstr ""
16330
16331 # type: textblock
16332 #. type: textblock
16333 #: ../src/guestfs-actions.pod:5110 ../fish/guestfish-actions.pod:3449
16334 msgid ""
16335 "This command parses the partition table on C<device> and returns the list of "
16336 "partitions found."
16337 msgstr ""
16338
16339 # type: textblock
16340 #. type: textblock
16341 #: ../src/guestfs-actions.pod:5113 ../fish/guestfish-actions.pod:3452
16342 msgid "The fields in the returned structure are:"
16343 msgstr ""
16344
16345 # type: =item
16346 #. type: =item
16347 #: ../src/guestfs-actions.pod:5117 ../fish/guestfish-actions.pod:3456
16348 msgid "B<part_num>"
16349 msgstr ""
16350
16351 # type: textblock
16352 #. type: textblock
16353 #: ../src/guestfs-actions.pod:5119 ../fish/guestfish-actions.pod:3458
16354 msgid "Partition number, counting from 1."
16355 msgstr ""
16356
16357 # type: =item
16358 #. type: =item
16359 #: ../src/guestfs-actions.pod:5121 ../fish/guestfish-actions.pod:3460
16360 msgid "B<part_start>"
16361 msgstr ""
16362
16363 # type: textblock
16364 #. type: textblock
16365 #: ../src/guestfs-actions.pod:5123
16366 msgid ""
16367 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16368 "the device's sector size, see C<guestfs_blockdev_getss>."
16369 msgstr ""
16370
16371 # type: =item
16372 #. type: =item
16373 #: ../src/guestfs-actions.pod:5126 ../fish/guestfish-actions.pod:3465
16374 msgid "B<part_end>"
16375 msgstr ""
16376
16377 # type: textblock
16378 #. type: textblock
16379 #: ../src/guestfs-actions.pod:5128 ../fish/guestfish-actions.pod:3467
16380 msgid "End of the partition in bytes."
16381 msgstr ""
16382
16383 # type: =item
16384 #. type: =item
16385 #: ../src/guestfs-actions.pod:5130 ../fish/guestfish-actions.pod:3469
16386 msgid "B<part_size>"
16387 msgstr ""
16388
16389 # type: textblock
16390 #. type: textblock
16391 #: ../src/guestfs-actions.pod:5132 ../fish/guestfish-actions.pod:3471
16392 msgid "Size of the partition in bytes."
16393 msgstr ""
16394
16395 # type: textblock
16396 #. type: textblock
16397 #: ../src/guestfs-actions.pod:5136
16398 msgid ""
16399 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16400 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16401 "use>."
16402 msgstr ""
16403
16404 # type: =head2
16405 #. type: =head2
16406 #: ../src/guestfs-actions.pod:5142
16407 msgid "guestfs_part_set_bootable"
16408 msgstr ""
16409
16410 # type: verbatim
16411 #. type: verbatim
16412 #: ../src/guestfs-actions.pod:5144
16413 #, no-wrap
16414 msgid ""
16415 " int\n"
16416 " guestfs_part_set_bootable (guestfs_h *g,\n"
16417 "                            const char *device,\n"
16418 "                            int partnum,\n"
16419 "                            int bootable);\n"
16420 "\n"
16421 msgstr ""
16422
16423 # type: textblock
16424 #. type: textblock
16425 #: ../src/guestfs-actions.pod:5150 ../fish/guestfish-actions.pod:3479
16426 msgid ""
16427 "This sets the bootable flag on partition numbered C<partnum> on device "
16428 "C<device>.  Note that partitions are numbered from 1."
16429 msgstr ""
16430
16431 # type: textblock
16432 #. type: textblock
16433 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3482
16434 msgid ""
16435 "The bootable flag is used by some operating systems (notably Windows) to "
16436 "determine which partition to boot from.  It is by no means universally "
16437 "recognized."
16438 msgstr ""
16439
16440 # type: =head2
16441 #. type: =head2
16442 #: ../src/guestfs-actions.pod:5161
16443 msgid "guestfs_part_set_mbr_id"
16444 msgstr ""
16445
16446 # type: verbatim
16447 #. type: verbatim
16448 #: ../src/guestfs-actions.pod:5163
16449 #, no-wrap
16450 msgid ""
16451 " int\n"
16452 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16453 "                          const char *device,\n"
16454 "                          int partnum,\n"
16455 "                          int idbyte);\n"
16456 "\n"
16457 msgstr ""
16458
16459 # type: textblock
16460 #. type: textblock
16461 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3490
16462 msgid ""
16463 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16464 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16465 "documentation are in fact hexadecimal numbers, but usually documented "
16466 "without any leading \"0x\" which might be confusing."
16467 msgstr ""
16468
16469 # type: =head2
16470 #. type: =head2
16471 #: ../src/guestfs-actions.pod:5183
16472 msgid "guestfs_part_set_name"
16473 msgstr ""
16474
16475 # type: verbatim
16476 #. type: verbatim
16477 #: ../src/guestfs-actions.pod:5185
16478 #, no-wrap
16479 msgid ""
16480 " int\n"
16481 " guestfs_part_set_name (guestfs_h *g,\n"
16482 "                        const char *device,\n"
16483 "                        int partnum,\n"
16484 "                        const char *name);\n"
16485 "\n"
16486 msgstr ""
16487
16488 # type: textblock
16489 #. type: textblock
16490 #: ../src/guestfs-actions.pod:5191 ../fish/guestfish-actions.pod:3504
16491 msgid ""
16492 "This sets the partition name on partition numbered C<partnum> on device "
16493 "C<device>.  Note that partitions are numbered from 1."
16494 msgstr ""
16495
16496 # type: textblock
16497 #. type: textblock
16498 #: ../src/guestfs-actions.pod:5194 ../fish/guestfish-actions.pod:3507
16499 msgid ""
16500 "The partition name can only be set on certain types of partition table.  "
16501 "This works on C<gpt> but not on C<mbr> partitions."
16502 msgstr ""
16503
16504 # type: =head2
16505 #. type: =head2
16506 #: ../src/guestfs-actions.pod:5201
16507 msgid "guestfs_part_to_dev"
16508 msgstr ""
16509
16510 # type: verbatim
16511 #. type: verbatim
16512 #: ../src/guestfs-actions.pod:5203
16513 #, no-wrap
16514 msgid ""
16515 " char *\n"
16516 " guestfs_part_to_dev (guestfs_h *g,\n"
16517 "                      const char *partition);\n"
16518 "\n"
16519 msgstr ""
16520
16521 # type: textblock
16522 #. type: textblock
16523 #: ../src/guestfs-actions.pod:5207 ../fish/guestfish-actions.pod:3514
16524 msgid ""
16525 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16526 "partition number, returning the device name (eg. \"/dev/sdb\")."
16527 msgstr ""
16528
16529 # type: textblock
16530 #. type: textblock
16531 #: ../src/guestfs-actions.pod:5211
16532 msgid ""
16533 "The named partition must exist, for example as a string returned from "
16534 "C<guestfs_list_partitions>."
16535 msgstr ""
16536
16537 # type: =head2
16538 #. type: =head2
16539 #: ../src/guestfs-actions.pod:5219
16540 msgid "guestfs_ping_daemon"
16541 msgstr ""
16542
16543 # type: verbatim
16544 #. type: verbatim
16545 #: ../src/guestfs-actions.pod:5221
16546 #, no-wrap
16547 msgid ""
16548 " int\n"
16549 " guestfs_ping_daemon (guestfs_h *g);\n"
16550 "\n"
16551 msgstr ""
16552
16553 # type: textblock
16554 #. type: textblock
16555 #: ../src/guestfs-actions.pod:5224 ../fish/guestfish-actions.pod:3525
16556 msgid ""
16557 "This is a test probe into the guestfs daemon running inside the qemu "
16558 "subprocess.  Calling this function checks that the daemon responds to the "
16559 "ping message, without affecting the daemon or attached block device(s) in "
16560 "any other way."
16561 msgstr ""
16562
16563 # type: =head2
16564 #. type: =head2
16565 #: ../src/guestfs-actions.pod:5233
16566 msgid "guestfs_pread"
16567 msgstr ""
16568
16569 # type: verbatim
16570 #. type: verbatim
16571 #: ../src/guestfs-actions.pod:5235
16572 #, no-wrap
16573 msgid ""
16574 " char *\n"
16575 " guestfs_pread (guestfs_h *g,\n"
16576 "                const char *path,\n"
16577 "                int count,\n"
16578 "                int64_t offset,\n"
16579 "                size_t *size_r);\n"
16580 "\n"
16581 msgstr ""
16582
16583 # type: textblock
16584 #. type: textblock
16585 #: ../src/guestfs-actions.pod:5242 ../fish/guestfish-actions.pod:3534
16586 msgid ""
16587 "This command lets you read part of a file.  It reads C<count> bytes of the "
16588 "file, starting at C<offset>, from file C<path>."
16589 msgstr ""
16590
16591 # type: textblock
16592 #. type: textblock
16593 #: ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5271
16594 #: ../fish/guestfish-actions.pod:3537 ../fish/guestfish-actions.pod:3552
16595 msgid ""
16596 "This may read fewer bytes than requested.  For further details see the "
16597 "L<pread(2)> system call."
16598 msgstr ""
16599
16600 # type: textblock
16601 #. type: textblock
16602 #: ../src/guestfs-actions.pod:5248
16603 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16604 msgstr ""
16605
16606 # type: =head2
16607 #. type: =head2
16608 #: ../src/guestfs-actions.pod:5259
16609 msgid "guestfs_pread_device"
16610 msgstr ""
16611
16612 # type: verbatim
16613 #. type: verbatim
16614 #: ../src/guestfs-actions.pod:5261
16615 #, no-wrap
16616 msgid ""
16617 " char *\n"
16618 " guestfs_pread_device (guestfs_h *g,\n"
16619 "                       const char *device,\n"
16620 "                       int count,\n"
16621 "                       int64_t offset,\n"
16622 "                       size_t *size_r);\n"
16623 "\n"
16624 msgstr ""
16625
16626 # type: textblock
16627 #. type: textblock
16628 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:3549
16629 msgid ""
16630 "This command lets you read part of a file.  It reads C<count> bytes of "
16631 "C<device>, starting at C<offset>."
16632 msgstr ""
16633
16634 # type: textblock
16635 #. type: textblock
16636 #: ../src/guestfs-actions.pod:5274
16637 msgid "See also C<guestfs_pread>."
16638 msgstr ""
16639
16640 # type: textblock
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:5283
16643 msgid "(Added in 1.5.21)"
16644 msgstr ""
16645
16646 # type: =head2
16647 #. type: =head2
16648 #: ../src/guestfs-actions.pod:5285
16649 msgid "guestfs_pvcreate"
16650 msgstr ""
16651
16652 # type: verbatim
16653 #. type: verbatim
16654 #: ../src/guestfs-actions.pod:5287
16655 #, no-wrap
16656 msgid ""
16657 " int\n"
16658 " guestfs_pvcreate (guestfs_h *g,\n"
16659 "                   const char *device);\n"
16660 "\n"
16661 msgstr ""
16662
16663 # type: textblock
16664 #. type: textblock
16665 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:3564
16666 msgid ""
16667 "This creates an LVM physical volume on the named C<device>, where C<device> "
16668 "should usually be a partition name such as C</dev/sda1>."
16669 msgstr ""
16670
16671 # type: =head2
16672 #. type: =head2
16673 #: ../src/guestfs-actions.pod:5299
16674 msgid "guestfs_pvremove"
16675 msgstr ""
16676
16677 # type: verbatim
16678 #. type: verbatim
16679 #: ../src/guestfs-actions.pod:5301
16680 #, no-wrap
16681 msgid ""
16682 " int\n"
16683 " guestfs_pvremove (guestfs_h *g,\n"
16684 "                   const char *device);\n"
16685 "\n"
16686 msgstr ""
16687
16688 # type: textblock
16689 #. type: textblock
16690 #: ../src/guestfs-actions.pod:5305 ../fish/guestfish-actions.pod:3572
16691 msgid ""
16692 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16693 "it."
16694 msgstr ""
16695
16696 # type: textblock
16697 #. type: textblock
16698 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3575
16699 msgid ""
16700 "The implementation uses the C<pvremove> command which refuses to wipe "
16701 "physical volumes that contain any volume groups, so you have to remove those "
16702 "first."
16703 msgstr ""
16704
16705 # type: =head2
16706 #. type: =head2
16707 #: ../src/guestfs-actions.pod:5316
16708 msgid "guestfs_pvresize"
16709 msgstr ""
16710
16711 # type: verbatim
16712 #. type: verbatim
16713 #: ../src/guestfs-actions.pod:5318
16714 #, no-wrap
16715 msgid ""
16716 " int\n"
16717 " guestfs_pvresize (guestfs_h *g,\n"
16718 "                   const char *device);\n"
16719 "\n"
16720 msgstr ""
16721
16722 # type: textblock
16723 #. type: textblock
16724 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3583
16725 msgid ""
16726 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16727 "the new size of the underlying device."
16728 msgstr ""
16729
16730 # type: =head2
16731 #. type: =head2
16732 #: ../src/guestfs-actions.pod:5329
16733 msgid "guestfs_pvresize_size"
16734 msgstr ""
16735
16736 # type: verbatim
16737 #. type: verbatim
16738 #: ../src/guestfs-actions.pod:5331
16739 #, no-wrap
16740 msgid ""
16741 " int\n"
16742 " guestfs_pvresize_size (guestfs_h *g,\n"
16743 "                        const char *device,\n"
16744 "                        int64_t size);\n"
16745 "\n"
16746 msgstr ""
16747
16748 # type: textblock
16749 #. type: textblock
16750 #: ../src/guestfs-actions.pod:5336
16751 msgid ""
16752 "This command is the same as C<guestfs_pvresize> except that it allows you to "
16753 "specify the new size (in bytes) explicitly."
16754 msgstr ""
16755
16756 # type: =head2
16757 #. type: =head2
16758 #: ../src/guestfs-actions.pod:5343
16759 msgid "guestfs_pvs"
16760 msgstr ""
16761
16762 # type: verbatim
16763 #. type: verbatim
16764 #: ../src/guestfs-actions.pod:5345
16765 #, no-wrap
16766 msgid ""
16767 " char **\n"
16768 " guestfs_pvs (guestfs_h *g);\n"
16769 "\n"
16770 msgstr ""
16771
16772 # type: textblock
16773 #. type: textblock
16774 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3597
16775 msgid ""
16776 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16777 "(8)> command."
16778 msgstr ""
16779
16780 # type: textblock
16781 #. type: textblock
16782 #: ../src/guestfs-actions.pod:5351 ../fish/guestfish-actions.pod:3600
16783 msgid ""
16784 "This returns a list of just the device names that contain PVs (eg. C</dev/"
16785 "sda2>)."
16786 msgstr ""
16787
16788 # type: textblock
16789 #. type: textblock
16790 #: ../src/guestfs-actions.pod:5354
16791 msgid "See also C<guestfs_pvs_full>."
16792 msgstr ""
16793
16794 # type: =head2
16795 #. type: =head2
16796 #: ../src/guestfs-actions.pod:5362
16797 msgid "guestfs_pvs_full"
16798 msgstr ""
16799
16800 # type: verbatim
16801 #. type: verbatim
16802 #: ../src/guestfs-actions.pod:5364
16803 #, no-wrap
16804 msgid ""
16805 " struct guestfs_lvm_pv_list *\n"
16806 " guestfs_pvs_full (guestfs_h *g);\n"
16807 "\n"
16808 msgstr ""
16809
16810 # type: textblock
16811 #. type: textblock
16812 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3609
16813 msgid ""
16814 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16815 "(8)> command.  The \"full\" version includes all fields."
16816 msgstr ""
16817
16818 # type: textblock
16819 #. type: textblock
16820 #: ../src/guestfs-actions.pod:5370
16821 msgid ""
16822 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
16823 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
16824 msgstr ""
16825
16826 # type: =head2
16827 #. type: =head2
16828 #: ../src/guestfs-actions.pod:5376
16829 msgid "guestfs_pvuuid"
16830 msgstr ""
16831
16832 # type: verbatim
16833 #. type: verbatim
16834 #: ../src/guestfs-actions.pod:5378
16835 #, no-wrap
16836 msgid ""
16837 " char *\n"
16838 " guestfs_pvuuid (guestfs_h *g,\n"
16839 "                 const char *device);\n"
16840 "\n"
16841 msgstr ""
16842
16843 # type: textblock
16844 #. type: textblock
16845 #: ../src/guestfs-actions.pod:5382 ../fish/guestfish-actions.pod:3616
16846 msgid "This command returns the UUID of the LVM PV C<device>."
16847 msgstr ""
16848
16849 # type: =head2
16850 #. type: =head2
16851 #: ../src/guestfs-actions.pod:5389
16852 msgid "guestfs_pwrite"
16853 msgstr ""
16854
16855 # type: verbatim
16856 #. type: verbatim
16857 #: ../src/guestfs-actions.pod:5391
16858 #, no-wrap
16859 msgid ""
16860 " int\n"
16861 " guestfs_pwrite (guestfs_h *g,\n"
16862 "                 const char *path,\n"
16863 "                 const char *content,\n"
16864 "                 size_t content_size,\n"
16865 "                 int64_t offset);\n"
16866 "\n"
16867 msgstr ""
16868
16869 # type: textblock
16870 #. type: textblock
16871 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3622
16872 msgid ""
16873 "This command writes to part of a file.  It writes the data buffer C<content> "
16874 "to the file C<path> starting at offset C<offset>."
16875 msgstr ""
16876
16877 # type: textblock
16878 #. type: textblock
16879 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3625
16880 msgid ""
16881 "This command implements the L<pwrite(2)> system call, and like that system "
16882 "call it may not write the full data requested.  The return value is the "
16883 "number of bytes that were actually written to the file.  This could even be "
16884 "0, although short writes are unlikely for regular files in ordinary "
16885 "circumstances."
16886 msgstr ""
16887
16888 # type: textblock
16889 #. type: textblock
16890 #: ../src/guestfs-actions.pod:5407
16891 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16892 msgstr ""
16893
16894 # type: =head2
16895 #. type: =head2
16896 #: ../src/guestfs-actions.pod:5416
16897 msgid "guestfs_pwrite_device"
16898 msgstr ""
16899
16900 # type: verbatim
16901 #. type: verbatim
16902 #: ../src/guestfs-actions.pod:5418
16903 #, no-wrap
16904 msgid ""
16905 " int\n"
16906 " guestfs_pwrite_device (guestfs_h *g,\n"
16907 "                        const char *device,\n"
16908 "                        const char *content,\n"
16909 "                        size_t content_size,\n"
16910 "                        int64_t offset);\n"
16911 "\n"
16912 msgstr ""
16913
16914 # type: textblock
16915 #. type: textblock
16916 #: ../src/guestfs-actions.pod:5425 ../fish/guestfish-actions.pod:3640
16917 msgid ""
16918 "This command writes to part of a device.  It writes the data buffer "
16919 "C<content> to C<device> starting at offset C<offset>."
16920 msgstr ""
16921
16922 # type: textblock
16923 #. type: textblock
16924 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3643
16925 msgid ""
16926 "This command implements the L<pwrite(2)> system call, and like that system "
16927 "call it may not write the full data requested (although short writes to disk "
16928 "devices and partitions are probably impossible with standard Linux kernels)."
16929 msgstr ""
16930
16931 # type: textblock
16932 #. type: textblock
16933 #: ../src/guestfs-actions.pod:5433
16934 msgid "See also C<guestfs_pwrite>."
16935 msgstr ""
16936
16937 # type: textblock
16938 #. type: textblock
16939 #: ../src/guestfs-actions.pod:5440
16940 msgid "(Added in 1.5.20)"
16941 msgstr ""
16942
16943 # type: =head2
16944 #. type: =head2
16945 #: ../src/guestfs-actions.pod:5442
16946 msgid "guestfs_read_file"
16947 msgstr ""
16948
16949 # type: verbatim
16950 #. type: verbatim
16951 #: ../src/guestfs-actions.pod:5444
16952 #, no-wrap
16953 msgid ""
16954 " char *\n"
16955 " guestfs_read_file (guestfs_h *g,\n"
16956 "                    const char *path,\n"
16957 "                    size_t *size_r);\n"
16958 "\n"
16959 msgstr ""
16960
16961 # type: textblock
16962 #. type: textblock
16963 #: ../src/guestfs-actions.pod:5449 ../fish/guestfish-actions.pod:3657
16964 msgid "This calls returns the contents of the file C<path> as a buffer."
16965 msgstr ""
16966
16967 # type: textblock
16968 #. type: textblock
16969 #: ../src/guestfs-actions.pod:5452
16970 msgid ""
16971 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16972 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16973 "function is limited in the total size of file that can be handled."
16974 msgstr ""
16975
16976 # type: textblock
16977 #. type: textblock
16978 #: ../src/guestfs-actions.pod:5464
16979 msgid "(Added in 1.0.63)"
16980 msgstr ""
16981
16982 # type: =head2
16983 #. type: =head2
16984 #: ../src/guestfs-actions.pod:5466
16985 msgid "guestfs_read_lines"
16986 msgstr ""
16987
16988 # type: verbatim
16989 #. type: verbatim
16990 #: ../src/guestfs-actions.pod:5468
16991 #, no-wrap
16992 msgid ""
16993 " char **\n"
16994 " guestfs_read_lines (guestfs_h *g,\n"
16995 "                     const char *path);\n"
16996 "\n"
16997 msgstr ""
16998
16999 # type: textblock
17000 #. type: textblock
17001 #: ../src/guestfs-actions.pod:5474 ../fish/guestfish-actions.pod:3674
17002 msgid ""
17003 "The file contents are returned as a list of lines.  Trailing C<LF> and "
17004 "C<CRLF> character sequences are I<not> returned."
17005 msgstr ""
17006
17007 # type: textblock
17008 #. type: textblock
17009 #: ../src/guestfs-actions.pod:5477
17010 msgid ""
17011 "Note that this function cannot correctly handle binary files (specifically, "
17012 "files containing C<\\0> character which is treated as end of line).  For "
17013 "those you need to use the C<guestfs_read_file> function which has a more "
17014 "complex interface."
17015 msgstr ""
17016
17017 # type: =head2
17018 #. type: =head2
17019 #: ../src/guestfs-actions.pod:5488
17020 msgid "guestfs_readdir"
17021 msgstr ""
17022
17023 # type: verbatim
17024 #. type: verbatim
17025 #: ../src/guestfs-actions.pod:5490
17026 #, no-wrap
17027 msgid ""
17028 " struct guestfs_dirent_list *\n"
17029 " guestfs_readdir (guestfs_h *g,\n"
17030 "                  const char *dir);\n"
17031 "\n"
17032 msgstr ""
17033
17034 # type: textblock
17035 #. type: textblock
17036 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3686
17037 msgid "This returns the list of directory entries in directory C<dir>."
17038 msgstr ""
17039
17040 # type: textblock
17041 #. type: textblock
17042 #: ../src/guestfs-actions.pod:5496 ../fish/guestfish-actions.pod:3688
17043 msgid ""
17044 "All entries in the directory are returned, including C<.> and C<..>.  The "
17045 "entries are I<not> sorted, but returned in the same order as the underlying "
17046 "filesystem."
17047 msgstr ""
17048
17049 # type: textblock
17050 #. type: textblock
17051 #: ../src/guestfs-actions.pod:5500 ../fish/guestfish-actions.pod:3692
17052 msgid ""
17053 "Also this call returns basic file type information about each file.  The "
17054 "C<ftyp> field will contain one of the following characters:"
17055 msgstr ""
17056
17057 # type: =item
17058 #. type: =item
17059 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3697
17060 msgid "'b'"
17061 msgstr ""
17062
17063 # type: textblock
17064 #. type: textblock
17065 #: ../src/guestfs-actions.pod:5507 ../fish/guestfish-actions.pod:3699
17066 msgid "Block special"
17067 msgstr ""
17068
17069 # type: =item
17070 #. type: =item
17071 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3701
17072 msgid "'c'"
17073 msgstr ""
17074
17075 # type: textblock
17076 #. type: textblock
17077 #: ../src/guestfs-actions.pod:5511 ../fish/guestfish-actions.pod:3703
17078 msgid "Char special"
17079 msgstr ""
17080
17081 # type: =item
17082 #. type: =item
17083 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3705
17084 msgid "'d'"
17085 msgstr ""
17086
17087 # type: textblock
17088 #. type: textblock
17089 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3707
17090 msgid "Directory"
17091 msgstr ""
17092
17093 # type: =item
17094 #. type: =item
17095 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3709
17096 msgid "'f'"
17097 msgstr ""
17098
17099 # type: textblock
17100 #. type: textblock
17101 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3711
17102 msgid "FIFO (named pipe)"
17103 msgstr ""
17104
17105 # type: =item
17106 #. type: =item
17107 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3713
17108 msgid "'l'"
17109 msgstr ""
17110
17111 # type: textblock
17112 #. type: textblock
17113 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3715
17114 msgid "Symbolic link"
17115 msgstr ""
17116
17117 # type: =item
17118 #. type: =item
17119 #: ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:3717
17120 msgid "'r'"
17121 msgstr ""
17122
17123 # type: textblock
17124 #. type: textblock
17125 #: ../src/guestfs-actions.pod:5527 ../fish/guestfish-actions.pod:3719
17126 msgid "Regular file"
17127 msgstr ""
17128
17129 # type: =item
17130 #. type: =item
17131 #: ../src/guestfs-actions.pod:5529 ../fish/guestfish-actions.pod:3721
17132 msgid "'s'"
17133 msgstr ""
17134
17135 # type: textblock
17136 #. type: textblock
17137 #: ../src/guestfs-actions.pod:5531 ../fish/guestfish-actions.pod:3723
17138 msgid "Socket"
17139 msgstr ""
17140
17141 # type: =item
17142 #. type: =item
17143 #: ../src/guestfs-actions.pod:5533 ../fish/guestfish-actions.pod:3725
17144 msgid "'u'"
17145 msgstr ""
17146
17147 # type: textblock
17148 #. type: textblock
17149 #: ../src/guestfs-actions.pod:5535 ../fish/guestfish-actions.pod:3727
17150 msgid "Unknown file type"
17151 msgstr ""
17152
17153 # type: =item
17154 #. type: =item
17155 #: ../src/guestfs-actions.pod:5537 ../fish/guestfish-actions.pod:3729
17156 msgid "'?'"
17157 msgstr ""
17158
17159 # type: textblock
17160 #. type: textblock
17161 #: ../src/guestfs-actions.pod:5539 ../fish/guestfish-actions.pod:3731
17162 msgid ""
17163 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
17164 msgstr ""
17165
17166 # type: textblock
17167 #. type: textblock
17168 #: ../src/guestfs-actions.pod:5544
17169 msgid ""
17170 "This function is primarily intended for use by programs.  To get a simple "
17171 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
17172 "consumption, use C<guestfs_ll>."
17173 msgstr ""
17174
17175 # type: textblock
17176 #. type: textblock
17177 #: ../src/guestfs-actions.pod:5548
17178 msgid ""
17179 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
17180 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
17181 msgstr ""
17182
17183 # type: =head2
17184 #. type: =head2
17185 #: ../src/guestfs-actions.pod:5554
17186 msgid "guestfs_readlink"
17187 msgstr ""
17188
17189 # type: verbatim
17190 #. type: verbatim
17191 #: ../src/guestfs-actions.pod:5556
17192 #, no-wrap
17193 msgid ""
17194 " char *\n"
17195 " guestfs_readlink (guestfs_h *g,\n"
17196 "                   const char *path);\n"
17197 "\n"
17198 msgstr ""
17199
17200 # type: textblock
17201 #. type: textblock
17202 #: ../src/guestfs-actions.pod:5560 ../fish/guestfish-actions.pod:3744
17203 msgid "This command reads the target of a symbolic link."
17204 msgstr ""
17205
17206 # type: =head2
17207 #. type: =head2
17208 #: ../src/guestfs-actions.pod:5567
17209 msgid "guestfs_readlinklist"
17210 msgstr ""
17211
17212 # type: verbatim
17213 #. type: verbatim
17214 #: ../src/guestfs-actions.pod:5569
17215 #, no-wrap
17216 msgid ""
17217 " char **\n"
17218 " guestfs_readlinklist (guestfs_h *g,\n"
17219 "                       const char *path,\n"
17220 "                       char *const *names);\n"
17221 "\n"
17222 msgstr ""
17223
17224 # type: textblock
17225 #. type: textblock
17226 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3750
17227 msgid ""
17228 "This call allows you to do a C<readlink> operation on multiple files, where "
17229 "all files are in the directory C<path>.  C<names> is the list of files from "
17230 "this directory."
17231 msgstr ""
17232
17233 # type: textblock
17234 #. type: textblock
17235 #: ../src/guestfs-actions.pod:5578 ../fish/guestfish-actions.pod:3754
17236 msgid ""
17237 "On return you get a list of strings, with a one-to-one correspondence to the "
17238 "C<names> list.  Each string is the value of the symbolic link."
17239 msgstr ""
17240
17241 # type: textblock
17242 #. type: textblock
17243 #: ../src/guestfs-actions.pod:5582 ../fish/guestfish-actions.pod:3758
17244 msgid ""
17245 "If the C<readlink(2)> operation fails on any name, then the corresponding "
17246 "result string is the empty string C<\"\">.  However the whole operation is "
17247 "completed even if there were C<readlink(2)> errors, and so you can call this "
17248 "function with names where you don't know if they are symbolic links already "
17249 "(albeit slightly less efficient)."
17250 msgstr ""
17251
17252 # type: textblock
17253 #. type: textblock
17254 #: ../src/guestfs-actions.pod:5589 ../fish/guestfish-actions.pod:3765
17255 msgid ""
17256 "This call is intended for programs that want to efficiently list a directory "
17257 "contents without making many round-trips.  Very long directory listings "
17258 "might cause the protocol message size to be exceeded, causing this call to "
17259 "fail.  The caller must split up such requests into smaller groups of names."
17260 msgstr ""
17261
17262 # type: =head2
17263 #. type: =head2
17264 #: ../src/guestfs-actions.pod:5602
17265 msgid "guestfs_realpath"
17266 msgstr ""
17267
17268 # type: verbatim
17269 #. type: verbatim
17270 #: ../src/guestfs-actions.pod:5604
17271 #, no-wrap
17272 msgid ""
17273 " char *\n"
17274 " guestfs_realpath (guestfs_h *g,\n"
17275 "                   const char *path);\n"
17276 "\n"
17277 msgstr ""
17278
17279 # type: textblock
17280 #. type: textblock
17281 #: ../src/guestfs-actions.pod:5608 ../fish/guestfish-actions.pod:3776
17282 msgid ""
17283 "Return the canonicalized absolute pathname of C<path>.  The returned path "
17284 "has no C<.>, C<..> or symbolic link path elements."
17285 msgstr ""
17286
17287 # type: =head2
17288 #. type: =head2
17289 #: ../src/guestfs-actions.pod:5616
17290 msgid "guestfs_removexattr"
17291 msgstr ""
17292
17293 # type: verbatim
17294 #. type: verbatim
17295 #: ../src/guestfs-actions.pod:5618
17296 #, no-wrap
17297 msgid ""
17298 " int\n"
17299 " guestfs_removexattr (guestfs_h *g,\n"
17300 "                      const char *xattr,\n"
17301 "                      const char *path);\n"
17302 "\n"
17303 msgstr ""
17304
17305 # type: textblock
17306 #. type: textblock
17307 #: ../src/guestfs-actions.pod:5623 ../fish/guestfish-actions.pod:3783
17308 msgid ""
17309 "This call removes the extended attribute named C<xattr> of the file C<path>."
17310 msgstr ""
17311
17312 # type: textblock
17313 #. type: textblock
17314 #: ../src/guestfs-actions.pod:5626
17315 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
17316 msgstr ""
17317
17318 # type: =head2
17319 #. type: =head2
17320 #: ../src/guestfs-actions.pod:5632
17321 msgid "guestfs_resize2fs"
17322 msgstr ""
17323
17324 # type: verbatim
17325 #. type: verbatim
17326 #: ../src/guestfs-actions.pod:5634
17327 #, no-wrap
17328 msgid ""
17329 " int\n"
17330 " guestfs_resize2fs (guestfs_h *g,\n"
17331 "                    const char *device);\n"
17332 "\n"
17333 msgstr ""
17334
17335 # type: textblock
17336 #. type: textblock
17337 #: ../src/guestfs-actions.pod:5638 ../fish/guestfish-actions.pod:3792
17338 msgid ""
17339 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17340 "underlying device."
17341 msgstr ""
17342
17343 # type: textblock
17344 #. type: textblock
17345 #: ../src/guestfs-actions.pod:5641
17346 msgid ""
17347 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17348 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17349 "sometimes gives an error about this and sometimes not.  In any case, it is "
17350 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17351 msgstr ""
17352
17353 #. type: =head2
17354 #: ../src/guestfs-actions.pod:5651
17355 msgid "guestfs_resize2fs_M"
17356 msgstr ""
17357
17358 #. type: verbatim
17359 #: ../src/guestfs-actions.pod:5653
17360 #, no-wrap
17361 msgid ""
17362 " int\n"
17363 " guestfs_resize2fs_M (guestfs_h *g,\n"
17364 "                      const char *device);\n"
17365 "\n"
17366 msgstr ""
17367
17368 #. type: textblock
17369 #: ../src/guestfs-actions.pod:5657
17370 msgid ""
17371 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17372 "resized to its minimum size.  This works like the I<-M> option to the "
17373 "C<resize2fs> command."
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../src/guestfs-actions.pod:5661
17378 msgid ""
17379 "To get the resulting size of the filesystem you should call "
17380 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17381 "These two numbers, multiplied together, give the resulting size of the "
17382 "minimal filesystem in bytes."
17383 msgstr ""
17384
17385 # type: =head2
17386 #. type: =head2
17387 #: ../src/guestfs-actions.pod:5668
17388 msgid "guestfs_resize2fs_size"
17389 msgstr ""
17390
17391 # type: verbatim
17392 #. type: verbatim
17393 #: ../src/guestfs-actions.pod:5670
17394 #, no-wrap
17395 msgid ""
17396 " int\n"
17397 " guestfs_resize2fs_size (guestfs_h *g,\n"
17398 "                         const char *device,\n"
17399 "                         int64_t size);\n"
17400 "\n"
17401 msgstr ""
17402
17403 # type: textblock
17404 #. type: textblock
17405 #: ../src/guestfs-actions.pod:5675
17406 msgid ""
17407 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17408 "to specify the new size (in bytes) explicitly."
17409 msgstr ""
17410
17411 # type: =head2
17412 #. type: =head2
17413 #: ../src/guestfs-actions.pod:5682
17414 msgid "guestfs_rm"
17415 msgstr ""
17416
17417 # type: verbatim
17418 #. type: verbatim
17419 #: ../src/guestfs-actions.pod:5684
17420 #, no-wrap
17421 msgid ""
17422 " int\n"
17423 " guestfs_rm (guestfs_h *g,\n"
17424 "             const char *path);\n"
17425 "\n"
17426 msgstr ""
17427
17428 # type: textblock
17429 #. type: textblock
17430 #: ../src/guestfs-actions.pod:5688 ../fish/guestfish-actions.pod:3825
17431 msgid "Remove the single file C<path>."
17432 msgstr ""
17433
17434 # type: =head2
17435 #. type: =head2
17436 #: ../src/guestfs-actions.pod:5694
17437 msgid "guestfs_rm_rf"
17438 msgstr ""
17439
17440 # type: verbatim
17441 #. type: verbatim
17442 #: ../src/guestfs-actions.pod:5696
17443 #, no-wrap
17444 msgid ""
17445 " int\n"
17446 " guestfs_rm_rf (guestfs_h *g,\n"
17447 "                const char *path);\n"
17448 "\n"
17449 msgstr ""
17450
17451 # type: textblock
17452 #. type: textblock
17453 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3831
17454 msgid ""
17455 "Remove the file or directory C<path>, recursively removing the contents if "
17456 "its a directory.  This is like the C<rm -rf> shell command."
17457 msgstr ""
17458
17459 # type: =head2
17460 #. type: =head2
17461 #: ../src/guestfs-actions.pod:5708
17462 msgid "guestfs_rmdir"
17463 msgstr ""
17464
17465 # type: verbatim
17466 #. type: verbatim
17467 #: ../src/guestfs-actions.pod:5710
17468 #, no-wrap
17469 msgid ""
17470 " int\n"
17471 " guestfs_rmdir (guestfs_h *g,\n"
17472 "                const char *path);\n"
17473 "\n"
17474 msgstr ""
17475
17476 # type: textblock
17477 #. type: textblock
17478 #: ../src/guestfs-actions.pod:5714 ../fish/guestfish-actions.pod:3839
17479 msgid "Remove the single directory C<path>."
17480 msgstr ""
17481
17482 # type: =head2
17483 #. type: =head2
17484 #: ../src/guestfs-actions.pod:5720
17485 msgid "guestfs_rmmountpoint"
17486 msgstr ""
17487
17488 # type: verbatim
17489 #. type: verbatim
17490 #: ../src/guestfs-actions.pod:5722
17491 #, no-wrap
17492 msgid ""
17493 " int\n"
17494 " guestfs_rmmountpoint (guestfs_h *g,\n"
17495 "                       const char *exemptpath);\n"
17496 "\n"
17497 msgstr ""
17498
17499 # type: textblock
17500 #. type: textblock
17501 #: ../src/guestfs-actions.pod:5726
17502 msgid ""
17503 "This calls removes a mountpoint that was previously created with "
17504 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17505 msgstr ""
17506
17507 # type: =head2
17508 #. type: =head2
17509 #: ../src/guestfs-actions.pod:5734
17510 msgid "guestfs_scrub_device"
17511 msgstr ""
17512
17513 # type: verbatim
17514 #. type: verbatim
17515 #: ../src/guestfs-actions.pod:5736
17516 #, no-wrap
17517 msgid ""
17518 " int\n"
17519 " guestfs_scrub_device (guestfs_h *g,\n"
17520 "                       const char *device);\n"
17521 "\n"
17522 msgstr ""
17523
17524 # type: textblock
17525 #. type: textblock
17526 #: ../src/guestfs-actions.pod:5740 ../fish/guestfish-actions.pod:3853
17527 msgid ""
17528 "This command writes patterns over C<device> to make data retrieval more "
17529 "difficult."
17530 msgstr ""
17531
17532 # type: textblock
17533 #. type: textblock
17534 #: ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5764
17535 #: ../src/guestfs-actions.pod:5783 ../fish/guestfish-actions.pod:3856
17536 #: ../fish/guestfish-actions.pod:3871 ../fish/guestfish-actions.pod:3884
17537 msgid ""
17538 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17539 "more details."
17540 msgstr ""
17541
17542 # type: textblock
17543 #. type: textblock
17544 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5769
17545 #: ../src/guestfs-actions.pod:5788
17546 msgid "(Added in 1.0.52)"
17547 msgstr ""
17548
17549 # type: =head2
17550 #. type: =head2
17551 #: ../src/guestfs-actions.pod:5753
17552 msgid "guestfs_scrub_file"
17553 msgstr ""
17554
17555 # type: verbatim
17556 #. type: verbatim
17557 #: ../src/guestfs-actions.pod:5755
17558 #, no-wrap
17559 msgid ""
17560 " int\n"
17561 " guestfs_scrub_file (guestfs_h *g,\n"
17562 "                     const char *file);\n"
17563 "\n"
17564 msgstr ""
17565
17566 # type: textblock
17567 #. type: textblock
17568 #: ../src/guestfs-actions.pod:5759 ../fish/guestfish-actions.pod:3866
17569 msgid ""
17570 "This command writes patterns over a file to make data retrieval more "
17571 "difficult."
17572 msgstr ""
17573
17574 # type: textblock
17575 #. type: textblock
17576 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3869
17577 msgid "The file is I<removed> after scrubbing."
17578 msgstr ""
17579
17580 # type: =head2
17581 #. type: =head2
17582 #: ../src/guestfs-actions.pod:5771
17583 msgid "guestfs_scrub_freespace"
17584 msgstr ""
17585
17586 # type: verbatim
17587 #. type: verbatim
17588 #: ../src/guestfs-actions.pod:5773
17589 #, no-wrap
17590 msgid ""
17591 " int\n"
17592 " guestfs_scrub_freespace (guestfs_h *g,\n"
17593 "                          const char *dir);\n"
17594 "\n"
17595 msgstr ""
17596
17597 # type: textblock
17598 #. type: textblock
17599 #: ../src/guestfs-actions.pod:5777
17600 msgid ""
17601 "This command creates the directory C<dir> and then fills it with files until "
17602 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17603 "and deletes them.  The intention is to scrub any free space on the partition "
17604 "containing C<dir>."
17605 msgstr ""
17606
17607 # type: =head2
17608 #. type: =head2
17609 #: ../src/guestfs-actions.pod:5790
17610 msgid "guestfs_set_append"
17611 msgstr ""
17612
17613 # type: verbatim
17614 #. type: verbatim
17615 #: ../src/guestfs-actions.pod:5792
17616 #, no-wrap
17617 msgid ""
17618 " int\n"
17619 " guestfs_set_append (guestfs_h *g,\n"
17620 "                     const char *append);\n"
17621 "\n"
17622 msgstr ""
17623
17624 # type: textblock
17625 #. type: textblock
17626 #: ../src/guestfs-actions.pod:5796 ../fish/guestfish-actions.pod:3893
17627 msgid ""
17628 "This function is used to add additional options to the guest kernel command "
17629 "line."
17630 msgstr ""
17631
17632 # type: textblock
17633 #. type: textblock
17634 #: ../src/guestfs-actions.pod:5799 ../fish/guestfish-actions.pod:3896
17635 msgid ""
17636 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17637 "environment variable."
17638 msgstr ""
17639
17640 # type: textblock
17641 #. type: textblock
17642 #: ../src/guestfs-actions.pod:5802 ../fish/guestfish-actions.pod:3899
17643 msgid ""
17644 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17645 "(libguestfs always adds a few of its own)."
17646 msgstr ""
17647
17648 #. type: =head2
17649 #: ../src/guestfs-actions.pod:5809
17650 msgid "guestfs_set_attach_method"
17651 msgstr ""
17652
17653 #. type: verbatim
17654 #: ../src/guestfs-actions.pod:5811
17655 #, no-wrap
17656 msgid ""
17657 " int\n"
17658 " guestfs_set_attach_method (guestfs_h *g,\n"
17659 "                            const char *attachmethod);\n"
17660 "\n"
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3908
17665 msgid ""
17666 "Set the method that libguestfs uses to connect to the back end guestfsd "
17667 "daemon.  Possible methods are:"
17668 msgstr ""
17669
17670 #. type: textblock
17671 #: ../src/guestfs-actions.pod:5822 ../fish/guestfish-actions.pod:3915
17672 msgid ""
17673 "Launch an appliance and connect to it.  This is the ordinary method and the "
17674 "default."
17675 msgstr ""
17676
17677 #. type: =item
17678 #: ../src/guestfs-actions.pod:5825 ../fish/guestfish-actions.pod:3918
17679 msgid "C<unix:I<path>>"
17680 msgstr ""
17681
17682 #. type: textblock
17683 #: ../src/guestfs-actions.pod:5827 ../fish/guestfish-actions.pod:3920
17684 msgid "Connect to the Unix domain socket I<path>."
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../src/guestfs-actions.pod:5829 ../fish/guestfish-actions.pod:3922
17689 msgid ""
17690 "This method lets you connect to an existing daemon or (using virtio-serial) "
17691 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
17692 "RUNNING DAEMONS>."
17693 msgstr ""
17694
17695 # type: =head2
17696 #. type: =head2
17697 #: ../src/guestfs-actions.pod:5837
17698 msgid "guestfs_set_autosync"
17699 msgstr ""
17700
17701 # type: verbatim
17702 #. type: verbatim
17703 #: ../src/guestfs-actions.pod:5839
17704 #, no-wrap
17705 msgid ""
17706 " int\n"
17707 " guestfs_set_autosync (guestfs_h *g,\n"
17708 "                       int autosync);\n"
17709 "\n"
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../src/guestfs-actions.pod:5843 ../fish/guestfish-actions.pod:3934
17714 msgid ""
17715 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
17716 "effort attempt to make filesystems consistent and synchronized when the "
17717 "handle is closed (also if the program exits without closing handles)."
17718 msgstr ""
17719
17720 # type: textblock
17721 #. type: textblock
17722 #: ../src/guestfs-actions.pod:5848 ../fish/guestfish-actions.pod:3939
17723 msgid ""
17724 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17725 "disabled by default)."
17726 msgstr ""
17727
17728 # type: =head2
17729 #. type: =head2
17730 #: ../src/guestfs-actions.pod:5855
17731 msgid "guestfs_set_direct"
17732 msgstr ""
17733
17734 # type: verbatim
17735 #. type: verbatim
17736 #: ../src/guestfs-actions.pod:5857
17737 #, no-wrap
17738 msgid ""
17739 " int\n"
17740 " guestfs_set_direct (guestfs_h *g,\n"
17741 "                     int direct);\n"
17742 "\n"
17743 msgstr ""
17744
17745 # type: textblock
17746 #. type: textblock
17747 #: ../src/guestfs-actions.pod:5861 ../fish/guestfish-actions.pod:3948
17748 msgid ""
17749 "If the direct appliance mode flag is enabled, then stdin and stdout are "
17750 "passed directly through to the appliance once it is launched."
17751 msgstr ""
17752
17753 # type: textblock
17754 #. type: textblock
17755 #: ../src/guestfs-actions.pod:5865
17756 msgid ""
17757 "One consequence of this is that log messages aren't caught by the library "
17758 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
17759 "stdout."
17760 msgstr ""
17761
17762 # type: textblock
17763 #. type: textblock
17764 #: ../src/guestfs-actions.pod:5869 ../fish/guestfish-actions.pod:3956
17765 msgid "You probably don't want to use this unless you know what you are doing."
17766 msgstr ""
17767
17768 # type: textblock
17769 #. type: textblock
17770 #: ../src/guestfs-actions.pod:5872 ../fish/guestfish-actions.pod:3959
17771 msgid "The default is disabled."
17772 msgstr ""
17773
17774 # type: =head2
17775 #. type: =head2
17776 #: ../src/guestfs-actions.pod:5878
17777 msgid "guestfs_set_e2label"
17778 msgstr ""
17779
17780 # type: verbatim
17781 #. type: verbatim
17782 #: ../src/guestfs-actions.pod:5880
17783 #, no-wrap
17784 msgid ""
17785 " int\n"
17786 " guestfs_set_e2label (guestfs_h *g,\n"
17787 "                      const char *device,\n"
17788 "                      const char *label);\n"
17789 "\n"
17790 msgstr ""
17791
17792 # type: textblock
17793 #. type: textblock
17794 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3965
17795 msgid ""
17796 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
17797 "C<label>.  Filesystem labels are limited to 16 characters."
17798 msgstr ""
17799
17800 # type: textblock
17801 #. type: textblock
17802 #: ../src/guestfs-actions.pod:5889
17803 msgid ""
17804 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17805 "the existing label on a filesystem."
17806 msgstr ""
17807
17808 # type: =head2
17809 #. type: =head2
17810 #: ../src/guestfs-actions.pod:5896
17811 msgid "guestfs_set_e2uuid"
17812 msgstr ""
17813
17814 # type: verbatim
17815 #. type: verbatim
17816 #: ../src/guestfs-actions.pod:5898
17817 #, no-wrap
17818 msgid ""
17819 " int\n"
17820 " guestfs_set_e2uuid (guestfs_h *g,\n"
17821 "                     const char *device,\n"
17822 "                     const char *uuid);\n"
17823 "\n"
17824 msgstr ""
17825
17826 # type: textblock
17827 #. type: textblock
17828 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3976
17829 msgid ""
17830 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
17831 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
17832 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
17833 msgstr ""
17834
17835 # type: textblock
17836 #. type: textblock
17837 #: ../src/guestfs-actions.pod:5908
17838 msgid ""
17839 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17840 "the existing UUID of a filesystem."
17841 msgstr ""
17842
17843 # type: =head2
17844 #. type: =head2
17845 #: ../src/guestfs-actions.pod:5915
17846 msgid "guestfs_set_memsize"
17847 msgstr ""
17848
17849 # type: verbatim
17850 #. type: verbatim
17851 #: ../src/guestfs-actions.pod:5917
17852 #, no-wrap
17853 msgid ""
17854 " int\n"
17855 " guestfs_set_memsize (guestfs_h *g,\n"
17856 "                      int memsize);\n"
17857 "\n"
17858 msgstr ""
17859
17860 # type: textblock
17861 #. type: textblock
17862 #: ../src/guestfs-actions.pod:5921
17863 msgid ""
17864 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
17865 "This only has any effect if called before C<guestfs_launch>."
17866 msgstr ""
17867
17868 # type: textblock
17869 #. type: textblock
17870 #: ../src/guestfs-actions.pod:5925 ../fish/guestfish-actions.pod:3994
17871 msgid ""
17872 "You can also change this by setting the environment variable "
17873 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17874 msgstr ""
17875
17876 # type: =head2
17877 #. type: =head2
17878 #: ../src/guestfs-actions.pod:5936
17879 msgid "guestfs_set_network"
17880 msgstr ""
17881
17882 # type: verbatim
17883 #. type: verbatim
17884 #: ../src/guestfs-actions.pod:5938
17885 #, no-wrap
17886 msgid ""
17887 " int\n"
17888 " guestfs_set_network (guestfs_h *g,\n"
17889 "                      int network);\n"
17890 "\n"
17891 msgstr ""
17892
17893 # type: textblock
17894 #. type: textblock
17895 #: ../src/guestfs-actions.pod:5942 ../fish/guestfish-actions.pod:4007
17896 msgid ""
17897 "If C<network> is true, then the network is enabled in the libguestfs "
17898 "appliance.  The default is false."
17899 msgstr ""
17900
17901 # type: textblock
17902 #. type: textblock
17903 #: ../src/guestfs-actions.pod:5945 ../fish/guestfish-actions.pod:4010
17904 msgid ""
17905 "This affects whether commands are able to access the network (see L<guestfs"
17906 "(3)/RUNNING COMMANDS>)."
17907 msgstr ""
17908
17909 # type: textblock
17910 #. type: textblock
17911 #: ../src/guestfs-actions.pod:5948
17912 msgid ""
17913 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17914 "effect."
17915 msgstr ""
17916
17917 # type: =head2
17918 #. type: =head2
17919 #: ../src/guestfs-actions.pod:5955
17920 msgid "guestfs_set_path"
17921 msgstr ""
17922
17923 # type: verbatim
17924 #. type: verbatim
17925 #: ../src/guestfs-actions.pod:5957
17926 #, no-wrap
17927 msgid ""
17928 " int\n"
17929 " guestfs_set_path (guestfs_h *g,\n"
17930 "                   const char *searchpath);\n"
17931 "\n"
17932 msgstr ""
17933
17934 # type: textblock
17935 #. type: textblock
17936 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4022
17937 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17938 msgstr ""
17939
17940 # type: textblock
17941 #. type: textblock
17942 #: ../src/guestfs-actions.pod:5963 ../fish/guestfish-actions.pod:4024
17943 msgid ""
17944 "The default is C<$libdir/guestfs> unless overridden by setting "
17945 "C<LIBGUESTFS_PATH> environment variable."
17946 msgstr ""
17947
17948 # type: textblock
17949 #. type: textblock
17950 #: ../src/guestfs-actions.pod:5966 ../fish/guestfish-actions.pod:4027
17951 msgid "Setting C<path> to C<NULL> restores the default path."
17952 msgstr ""
17953
17954 # type: =head2
17955 #. type: =head2
17956 #: ../src/guestfs-actions.pod:5972
17957 msgid "guestfs_set_qemu"
17958 msgstr ""
17959
17960 # type: verbatim
17961 #. type: verbatim
17962 #: ../src/guestfs-actions.pod:5974
17963 #, no-wrap
17964 msgid ""
17965 " int\n"
17966 " guestfs_set_qemu (guestfs_h *g,\n"
17967 "                   const char *qemu);\n"
17968 "\n"
17969 msgstr ""
17970
17971 # type: textblock
17972 #. type: textblock
17973 #: ../src/guestfs-actions.pod:5978 ../fish/guestfish-actions.pod:4035
17974 msgid "Set the qemu binary that we will use."
17975 msgstr ""
17976
17977 # type: textblock
17978 #. type: textblock
17979 #: ../src/guestfs-actions.pod:5980 ../fish/guestfish-actions.pod:4037
17980 msgid ""
17981 "The default is chosen when the library was compiled by the configure script."
17982 msgstr ""
17983
17984 # type: textblock
17985 #. type: textblock
17986 #: ../src/guestfs-actions.pod:5983 ../fish/guestfish-actions.pod:4040
17987 msgid ""
17988 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17989 "variable."
17990 msgstr ""
17991
17992 # type: textblock
17993 #. type: textblock
17994 #: ../src/guestfs-actions.pod:5986 ../fish/guestfish-actions.pod:4043
17995 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17996 msgstr ""
17997
17998 # type: textblock
17999 #. type: textblock
18000 #: ../src/guestfs-actions.pod:5988 ../fish/guestfish-actions.pod:4045
18001 msgid ""
18002 "Note that you should call this function as early as possible after creating "
18003 "the handle.  This is because some pre-launch operations depend on testing "
18004 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
18005 "don't retest features, and so you might see inconsistent results.  Using the "
18006 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
18007 "the qemu binary at the same time as the handle is created."
18008 msgstr ""
18009
18010 # type: =head2
18011 #. type: =head2
18012 #: ../src/guestfs-actions.pod:6000
18013 msgid "guestfs_set_recovery_proc"
18014 msgstr ""
18015
18016 # type: verbatim
18017 #. type: verbatim
18018 #: ../src/guestfs-actions.pod:6002
18019 #, no-wrap
18020 msgid ""
18021 " int\n"
18022 " guestfs_set_recovery_proc (guestfs_h *g,\n"
18023 "                            int recoveryproc);\n"
18024 "\n"
18025 msgstr ""
18026
18027 # type: textblock
18028 #. type: textblock
18029 #: ../src/guestfs-actions.pod:6006
18030 msgid ""
18031 "If this is called with the parameter C<false> then C<guestfs_launch> does "
18032 "not create a recovery process.  The purpose of the recovery process is to "
18033 "stop runaway qemu processes in the case where the main program aborts "
18034 "abruptly."
18035 msgstr ""
18036
18037 # type: textblock
18038 #. type: textblock
18039 #: ../src/guestfs-actions.pod:6011
18040 msgid ""
18041 "This only has any effect if called before C<guestfs_launch>, and the default "
18042 "is true."
18043 msgstr ""
18044
18045 # type: textblock
18046 #. type: textblock
18047 #: ../src/guestfs-actions.pod:6014 ../fish/guestfish-actions.pod:4067
18048 msgid ""
18049 "About the only time when you would want to disable this is if the main "
18050 "process will fork itself into the background (\"daemonize\" itself).  In "
18051 "this case the recovery process thinks that the main program has disappeared "
18052 "and so kills qemu, which is not very helpful."
18053 msgstr ""
18054
18055 # type: =head2
18056 #. type: =head2
18057 #: ../src/guestfs-actions.pod:6024
18058 msgid "guestfs_set_selinux"
18059 msgstr ""
18060
18061 # type: verbatim
18062 #. type: verbatim
18063 #: ../src/guestfs-actions.pod:6026
18064 #, no-wrap
18065 msgid ""
18066 " int\n"
18067 " guestfs_set_selinux (guestfs_h *g,\n"
18068 "                      int selinux);\n"
18069 "\n"
18070 msgstr ""
18071
18072 # type: textblock
18073 #. type: textblock
18074 #: ../src/guestfs-actions.pod:6030 ../fish/guestfish-actions.pod:4079
18075 msgid ""
18076 "This sets the selinux flag that is passed to the appliance at boot time.  "
18077 "The default is C<selinux=0> (disabled)."
18078 msgstr ""
18079
18080 # type: textblock
18081 #. type: textblock
18082 #: ../src/guestfs-actions.pod:6033 ../fish/guestfish-actions.pod:4082
18083 msgid ""
18084 "Note that if SELinux is enabled, it is always in Permissive mode "
18085 "(C<enforcing=0>)."
18086 msgstr ""
18087
18088 # type: =head2
18089 #. type: =head2
18090 #: ../src/guestfs-actions.pod:6043
18091 msgid "guestfs_set_trace"
18092 msgstr ""
18093
18094 # type: verbatim
18095 #. type: verbatim
18096 #: ../src/guestfs-actions.pod:6045
18097 #, no-wrap
18098 msgid ""
18099 " int\n"
18100 " guestfs_set_trace (guestfs_h *g,\n"
18101 "                    int trace);\n"
18102 "\n"
18103 msgstr ""
18104
18105 #. type: textblock
18106 #: ../src/guestfs-actions.pod:6049 ../fish/guestfish-actions.pod:4094
18107 msgid ""
18108 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
18109 "return values are traced."
18110 msgstr ""
18111
18112 # type: textblock
18113 #. type: textblock
18114 #: ../src/guestfs-actions.pod:6052 ../fish/guestfish-actions.pod:4097
18115 msgid ""
18116 "If you want to trace C API calls into libguestfs (and other libraries) then "
18117 "possibly a better way is to use the external ltrace(1) command."
18118 msgstr ""
18119
18120 # type: textblock
18121 #. type: textblock
18122 #: ../src/guestfs-actions.pod:6056 ../fish/guestfish-actions.pod:4101
18123 msgid ""
18124 "Command traces are disabled unless the environment variable "
18125 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
18126 msgstr ""
18127
18128 #. type: textblock
18129 #: ../src/guestfs-actions.pod:6059
18130 msgid ""
18131 "Trace messages are normally sent to C<stderr>, unless you register a "
18132 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18133 msgstr ""
18134
18135 # type: =head2
18136 #. type: =head2
18137 #: ../src/guestfs-actions.pod:6067
18138 msgid "guestfs_set_verbose"
18139 msgstr ""
18140
18141 # type: verbatim
18142 #. type: verbatim
18143 #: ../src/guestfs-actions.pod:6069
18144 #, no-wrap
18145 msgid ""
18146 " int\n"
18147 " guestfs_set_verbose (guestfs_h *g,\n"
18148 "                      int verbose);\n"
18149 "\n"
18150 msgstr ""
18151
18152 #. type: textblock
18153 #: ../src/guestfs-actions.pod:6073 ../fish/guestfish-actions.pod:4114
18154 msgid "If C<verbose> is true, this turns on verbose messages."
18155 msgstr ""
18156
18157 # type: textblock
18158 #. type: textblock
18159 #: ../src/guestfs-actions.pod:6075 ../fish/guestfish-actions.pod:4116
18160 msgid ""
18161 "Verbose messages are disabled unless the environment variable "
18162 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../src/guestfs-actions.pod:6078
18167 msgid ""
18168 "Verbose messages are normally sent to C<stderr>, unless you register a "
18169 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18170 msgstr ""
18171
18172 # type: =head2
18173 #. type: =head2
18174 #: ../src/guestfs-actions.pod:6086
18175 msgid "guestfs_setcon"
18176 msgstr ""
18177
18178 # type: verbatim
18179 #. type: verbatim
18180 #: ../src/guestfs-actions.pod:6088
18181 #, no-wrap
18182 msgid ""
18183 " int\n"
18184 " guestfs_setcon (guestfs_h *g,\n"
18185 "                 const char *context);\n"
18186 "\n"
18187 msgstr ""
18188
18189 # type: textblock
18190 #. type: textblock
18191 #: ../src/guestfs-actions.pod:6092 ../fish/guestfish-actions.pod:4127
18192 msgid ""
18193 "This sets the SELinux security context of the daemon to the string "
18194 "C<context>."
18195 msgstr ""
18196
18197 # type: textblock
18198 #. type: textblock
18199 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4130
18200 msgid "See the documentation about SELINUX in L<guestfs(3)>."
18201 msgstr ""
18202
18203 # type: =head2
18204 #. type: =head2
18205 #: ../src/guestfs-actions.pod:6101
18206 msgid "guestfs_setxattr"
18207 msgstr ""
18208
18209 # type: verbatim
18210 #. type: verbatim
18211 #: ../src/guestfs-actions.pod:6103
18212 #, no-wrap
18213 msgid ""
18214 " int\n"
18215 " guestfs_setxattr (guestfs_h *g,\n"
18216 "                   const char *xattr,\n"
18217 "                   const char *val,\n"
18218 "                   int vallen,\n"
18219 "                   const char *path);\n"
18220 "\n"
18221 msgstr ""
18222
18223 # type: textblock
18224 #. type: textblock
18225 #: ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:4136
18226 msgid ""
18227 "This call sets the extended attribute named C<xattr> of the file C<path> to "
18228 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
18229 msgstr ""
18230
18231 # type: textblock
18232 #. type: textblock
18233 #: ../src/guestfs-actions.pod:6114
18234 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
18235 msgstr ""
18236
18237 # type: =head2
18238 #. type: =head2
18239 #: ../src/guestfs-actions.pod:6120
18240 msgid "guestfs_sfdisk"
18241 msgstr ""
18242
18243 # type: verbatim
18244 #. type: verbatim
18245 #: ../src/guestfs-actions.pod:6122
18246 #, no-wrap
18247 msgid ""
18248 " int\n"
18249 " guestfs_sfdisk (guestfs_h *g,\n"
18250 "                 const char *device,\n"
18251 "                 int cyls,\n"
18252 "                 int heads,\n"
18253 "                 int sectors,\n"
18254 "                 char *const *lines);\n"
18255 "\n"
18256 msgstr ""
18257
18258 # type: textblock
18259 #. type: textblock
18260 #: ../src/guestfs-actions.pod:6130 ../fish/guestfish-actions.pod:4146
18261 msgid ""
18262 "This is a direct interface to the L<sfdisk(8)> program for creating "
18263 "partitions on block devices."
18264 msgstr ""
18265
18266 # type: textblock
18267 #. type: textblock
18268 #: ../src/guestfs-actions.pod:6133 ../fish/guestfish-actions.pod:4149
18269 msgid "C<device> should be a block device, for example C</dev/sda>."
18270 msgstr ""
18271
18272 # type: textblock
18273 #. type: textblock
18274 #: ../src/guestfs-actions.pod:6135 ../fish/guestfish-actions.pod:4151
18275 msgid ""
18276 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
18277 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
18278 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
18279 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
18280 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
18281 "the kernel) cannot work out the right geometry and you will need to tell it."
18282 msgstr ""
18283
18284 # type: textblock
18285 #. type: textblock
18286 #: ../src/guestfs-actions.pod:6143 ../fish/guestfish-actions.pod:4159
18287 msgid ""
18288 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
18289 "refer to the L<sfdisk(8)> manpage."
18290 msgstr ""
18291
18292 # type: textblock
18293 #. type: textblock
18294 #: ../src/guestfs-actions.pod:6146 ../fish/guestfish-actions.pod:4162
18295 msgid ""
18296 "To create a single partition occupying the whole disk, you would pass "
18297 "C<lines> as a single element list, when the single element being the string "
18298 "C<,> (comma)."
18299 msgstr ""
18300
18301 # type: textblock
18302 #. type: textblock
18303 #: ../src/guestfs-actions.pod:6150
18304 msgid ""
18305 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
18306 msgstr ""
18307
18308 # type: =head2
18309 #. type: =head2
18310 #: ../src/guestfs-actions.pod:6160
18311 msgid "guestfs_sfdiskM"
18312 msgstr ""
18313
18314 # type: verbatim
18315 #. type: verbatim
18316 #: ../src/guestfs-actions.pod:6162
18317 #, no-wrap
18318 msgid ""
18319 " int\n"
18320 " guestfs_sfdiskM (guestfs_h *g,\n"
18321 "                  const char *device,\n"
18322 "                  char *const *lines);\n"
18323 "\n"
18324 msgstr ""
18325
18326 # type: textblock
18327 #. type: textblock
18328 #: ../src/guestfs-actions.pod:6167
18329 msgid ""
18330 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18331 "partition sizes are specified in megabytes only (rounded to the nearest "
18332 "cylinder) and you don't need to specify the cyls, heads and sectors "
18333 "parameters which were rarely if ever used anyway."
18334 msgstr ""
18335
18336 # type: textblock
18337 #. type: textblock
18338 #: ../src/guestfs-actions.pod:6173
18339 msgid ""
18340 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18341 "C<guestfs_part_disk>"
18342 msgstr ""
18343
18344 # type: =head2
18345 #. type: =head2
18346 #: ../src/guestfs-actions.pod:6183
18347 msgid "guestfs_sfdisk_N"
18348 msgstr ""
18349
18350 # type: verbatim
18351 #. type: verbatim
18352 #: ../src/guestfs-actions.pod:6185
18353 #, no-wrap
18354 msgid ""
18355 " int\n"
18356 " guestfs_sfdisk_N (guestfs_h *g,\n"
18357 "                   const char *device,\n"
18358 "                   int partnum,\n"
18359 "                   int cyls,\n"
18360 "                   int heads,\n"
18361 "                   int sectors,\n"
18362 "                   const char *line);\n"
18363 "\n"
18364 msgstr ""
18365
18366 # type: textblock
18367 #. type: textblock
18368 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4192
18369 msgid ""
18370 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18371 "(note: C<n> counts from 1)."
18372 msgstr ""
18373
18374 # type: textblock
18375 #. type: textblock
18376 #: ../src/guestfs-actions.pod:6197
18377 msgid ""
18378 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18379 "for the cyls/heads/sectors parameters."
18380 msgstr ""
18381
18382 # type: textblock
18383 #. type: textblock
18384 #: ../src/guestfs-actions.pod:6200
18385 msgid "See also: C<guestfs_part_add>"
18386 msgstr ""
18387
18388 # type: =head2
18389 #. type: =head2
18390 #: ../src/guestfs-actions.pod:6209
18391 msgid "guestfs_sfdisk_disk_geometry"
18392 msgstr ""
18393
18394 # type: verbatim
18395 #. type: verbatim
18396 #: ../src/guestfs-actions.pod:6211
18397 #, no-wrap
18398 msgid ""
18399 " char *\n"
18400 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18401 "                               const char *device);\n"
18402 "\n"
18403 msgstr ""
18404
18405 # type: textblock
18406 #. type: textblock
18407 #: ../src/guestfs-actions.pod:6215
18408 msgid ""
18409 "This displays the disk geometry of C<device> read from the partition table.  "
18410 "Especially in the case where the underlying block device has been resized, "
18411 "this can be different from the kernel's idea of the geometry (see "
18412 "C<guestfs_sfdisk_kernel_geometry>)."
18413 msgstr ""
18414
18415 # type: textblock
18416 #. type: textblock
18417 #: ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6236
18418 #: ../fish/guestfish-actions.pod:4212 ../fish/guestfish-actions.pod:4221
18419 msgid "The result is in human-readable format, and not designed to be parsed."
18420 msgstr ""
18421
18422 # type: =head2
18423 #. type: =head2
18424 #: ../src/guestfs-actions.pod:6228
18425 msgid "guestfs_sfdisk_kernel_geometry"
18426 msgstr ""
18427
18428 # type: verbatim
18429 #. type: verbatim
18430 #: ../src/guestfs-actions.pod:6230
18431 #, no-wrap
18432 msgid ""
18433 " char *\n"
18434 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18435 "                                 const char *device);\n"
18436 "\n"
18437 msgstr ""
18438
18439 # type: textblock
18440 #. type: textblock
18441 #: ../src/guestfs-actions.pod:6234 ../fish/guestfish-actions.pod:4219
18442 msgid "This displays the kernel's idea of the geometry of C<device>."
18443 msgstr ""
18444
18445 # type: =head2
18446 #. type: =head2
18447 #: ../src/guestfs-actions.pod:6244
18448 msgid "guestfs_sfdisk_l"
18449 msgstr ""
18450
18451 # type: verbatim
18452 #. type: verbatim
18453 #: ../src/guestfs-actions.pod:6246
18454 #, no-wrap
18455 msgid ""
18456 " char *\n"
18457 " guestfs_sfdisk_l (guestfs_h *g,\n"
18458 "                   const char *device);\n"
18459 "\n"
18460 msgstr ""
18461
18462 # type: textblock
18463 #. type: textblock
18464 #: ../src/guestfs-actions.pod:6250 ../fish/guestfish-actions.pod:4228
18465 msgid ""
18466 "This displays the partition table on C<device>, in the human-readable output "
18467 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18468 msgstr ""
18469
18470 # type: textblock
18471 #. type: textblock
18472 #: ../src/guestfs-actions.pod:6254
18473 msgid "See also: C<guestfs_part_list>"
18474 msgstr ""
18475
18476 # type: =head2
18477 #. type: =head2
18478 #: ../src/guestfs-actions.pod:6261
18479 msgid "guestfs_sh"
18480 msgstr ""
18481
18482 # type: verbatim
18483 #. type: verbatim
18484 #: ../src/guestfs-actions.pod:6263
18485 #, no-wrap
18486 msgid ""
18487 " char *\n"
18488 " guestfs_sh (guestfs_h *g,\n"
18489 "             const char *command);\n"
18490 "\n"
18491 msgstr ""
18492
18493 # type: textblock
18494 #. type: textblock
18495 #: ../src/guestfs-actions.pod:6267 ../fish/guestfish-actions.pod:4238
18496 msgid ""
18497 "This call runs a command from the guest filesystem via the guest's C</bin/"
18498 "sh>."
18499 msgstr ""
18500
18501 # type: textblock
18502 #. type: textblock
18503 #: ../src/guestfs-actions.pod:6270
18504 msgid "This is like C<guestfs_command>, but passes the command to:"
18505 msgstr ""
18506
18507 # type: verbatim
18508 #. type: verbatim
18509 #: ../src/guestfs-actions.pod:6272 ../fish/guestfish-actions.pod:4243
18510 #, no-wrap
18511 msgid ""
18512 " /bin/sh -c \"command\"\n"
18513 "\n"
18514 msgstr ""
18515
18516 # type: textblock
18517 #. type: textblock
18518 #: ../src/guestfs-actions.pod:6274 ../fish/guestfish-actions.pod:4245
18519 msgid ""
18520 "Depending on the guest's shell, this usually results in wildcards being "
18521 "expanded, shell expressions being interpolated and so on."
18522 msgstr ""
18523
18524 # type: textblock
18525 #. type: textblock
18526 #: ../src/guestfs-actions.pod:6278
18527 msgid "All the provisos about C<guestfs_command> apply to this call."
18528 msgstr ""
18529
18530 # type: =head2
18531 #. type: =head2
18532 #: ../src/guestfs-actions.pod:6285
18533 msgid "guestfs_sh_lines"
18534 msgstr ""
18535
18536 # type: verbatim
18537 #. type: verbatim
18538 #: ../src/guestfs-actions.pod:6287
18539 #, no-wrap
18540 msgid ""
18541 " char **\n"
18542 " guestfs_sh_lines (guestfs_h *g,\n"
18543 "                   const char *command);\n"
18544 "\n"
18545 msgstr ""
18546
18547 # type: textblock
18548 #. type: textblock
18549 #: ../src/guestfs-actions.pod:6291
18550 msgid ""
18551 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18552 "lines."
18553 msgstr ""
18554
18555 # type: textblock
18556 #. type: textblock
18557 #: ../src/guestfs-actions.pod:6294
18558 msgid "See also: C<guestfs_command_lines>"
18559 msgstr ""
18560
18561 # type: =head2
18562 #. type: =head2
18563 #: ../src/guestfs-actions.pod:6302
18564 msgid "guestfs_sleep"
18565 msgstr ""
18566
18567 # type: verbatim
18568 #. type: verbatim
18569 #: ../src/guestfs-actions.pod:6304
18570 #, no-wrap
18571 msgid ""
18572 " int\n"
18573 " guestfs_sleep (guestfs_h *g,\n"
18574 "                int secs);\n"
18575 "\n"
18576 msgstr ""
18577
18578 # type: textblock
18579 #. type: textblock
18580 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4264
18581 msgid "Sleep for C<secs> seconds."
18582 msgstr ""
18583
18584 # type: textblock
18585 #. type: textblock
18586 #: ../src/guestfs-actions.pod:6312
18587 msgid "(Added in 1.0.41)"
18588 msgstr ""
18589
18590 # type: =head2
18591 #. type: =head2
18592 #: ../src/guestfs-actions.pod:6314 ../src/guestfs-structs.pod:109
18593 msgid "guestfs_stat"
18594 msgstr ""
18595
18596 # type: verbatim
18597 #. type: verbatim
18598 #: ../src/guestfs-actions.pod:6316
18599 #, no-wrap
18600 msgid ""
18601 " struct guestfs_stat *\n"
18602 " guestfs_stat (guestfs_h *g,\n"
18603 "               const char *path);\n"
18604 "\n"
18605 msgstr ""
18606
18607 # type: textblock
18608 #. type: textblock
18609 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4272
18610 msgid "This is the same as the C<stat(2)> system call."
18611 msgstr ""
18612
18613 # type: =head2
18614 #. type: =head2
18615 #: ../src/guestfs-actions.pod:6330 ../src/guestfs-structs.pod:135
18616 msgid "guestfs_statvfs"
18617 msgstr ""
18618
18619 # type: verbatim
18620 #. type: verbatim
18621 #: ../src/guestfs-actions.pod:6332
18622 #, no-wrap
18623 msgid ""
18624 " struct guestfs_statvfs *\n"
18625 " guestfs_statvfs (guestfs_h *g,\n"
18626 "                  const char *path);\n"
18627 "\n"
18628 msgstr ""
18629
18630 # type: textblock
18631 #. type: textblock
18632 #: ../src/guestfs-actions.pod:6336 ../fish/guestfish-actions.pod:4278
18633 msgid ""
18634 "Returns file system statistics for any mounted file system.  C<path> should "
18635 "be a file or directory in the mounted file system (typically it is the mount "
18636 "point itself, but it doesn't need to be)."
18637 msgstr ""
18638
18639 # type: textblock
18640 #. type: textblock
18641 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4282
18642 msgid "This is the same as the C<statvfs(2)> system call."
18643 msgstr ""
18644
18645 # type: textblock
18646 #. type: textblock
18647 #: ../src/guestfs-actions.pod:6342
18648 msgid ""
18649 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
18650 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18651 msgstr ""
18652
18653 # type: =head2
18654 #. type: =head2
18655 #: ../src/guestfs-actions.pod:6348
18656 msgid "guestfs_strings"
18657 msgstr ""
18658
18659 # type: verbatim
18660 #. type: verbatim
18661 #: ../src/guestfs-actions.pod:6350
18662 #, no-wrap
18663 msgid ""
18664 " char **\n"
18665 " guestfs_strings (guestfs_h *g,\n"
18666 "                  const char *path);\n"
18667 "\n"
18668 msgstr ""
18669
18670 # type: textblock
18671 #. type: textblock
18672 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4288
18673 msgid ""
18674 "This runs the L<strings(1)> command on a file and returns the list of "
18675 "printable strings found."
18676 msgstr ""
18677
18678 # type: =head2
18679 #. type: =head2
18680 #: ../src/guestfs-actions.pod:6366
18681 msgid "guestfs_strings_e"
18682 msgstr ""
18683
18684 # type: verbatim
18685 #. type: verbatim
18686 #: ../src/guestfs-actions.pod:6368
18687 #, no-wrap
18688 msgid ""
18689 " char **\n"
18690 " guestfs_strings_e (guestfs_h *g,\n"
18691 "                    const char *encoding,\n"
18692 "                    const char *path);\n"
18693 "\n"
18694 msgstr ""
18695
18696 # type: textblock
18697 #. type: textblock
18698 #: ../src/guestfs-actions.pod:6373
18699 msgid ""
18700 "This is like the C<guestfs_strings> command, but allows you to specify the "
18701 "encoding of strings that are looked for in the source file C<path>."
18702 msgstr ""
18703
18704 # type: textblock
18705 #. type: textblock
18706 #: ../src/guestfs-actions.pod:6377 ../fish/guestfish-actions.pod:4302
18707 msgid "Allowed encodings are:"
18708 msgstr ""
18709
18710 # type: =item
18711 #. type: =item
18712 #: ../src/guestfs-actions.pod:6381 ../fish/guestfish-actions.pod:4306
18713 msgid "s"
18714 msgstr ""
18715
18716 # type: textblock
18717 #. type: textblock
18718 #: ../src/guestfs-actions.pod:6383
18719 msgid ""
18720 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
18721 "ISO-8859-X (this is what C<guestfs_strings> uses)."
18722 msgstr ""
18723
18724 # type: =item
18725 #. type: =item
18726 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4311
18727 msgid "S"
18728 msgstr ""
18729
18730 # type: textblock
18731 #. type: textblock
18732 #: ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4313
18733 msgid "Single 8-bit-byte characters."
18734 msgstr ""
18735
18736 # type: =item
18737 #. type: =item
18738 #: ../src/guestfs-actions.pod:6390 ../fish/guestfish-actions.pod:4315
18739 msgid "b"
18740 msgstr ""
18741
18742 # type: textblock
18743 #. type: textblock
18744 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4317
18745 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18746 msgstr ""
18747
18748 # type: =item
18749 #. type: =item
18750 #: ../src/guestfs-actions.pod:6395 ../fish/guestfish-actions.pod:4320
18751 msgid "l (lower case letter L)"
18752 msgstr ""
18753
18754 # type: textblock
18755 #. type: textblock
18756 #: ../src/guestfs-actions.pod:6397 ../fish/guestfish-actions.pod:4322
18757 msgid ""
18758 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
18759 "examining binaries in Windows guests."
18760 msgstr ""
18761
18762 # type: =item
18763 #. type: =item
18764 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4325
18765 msgid "B"
18766 msgstr ""
18767
18768 # type: textblock
18769 #. type: textblock
18770 #: ../src/guestfs-actions.pod:6402 ../fish/guestfish-actions.pod:4327
18771 msgid "32-bit big endian such as UCS-4BE."
18772 msgstr ""
18773
18774 # type: =item
18775 #. type: =item
18776 #: ../src/guestfs-actions.pod:6404 ../fish/guestfish-actions.pod:4329
18777 msgid "L"
18778 msgstr ""
18779
18780 # type: textblock
18781 #. type: textblock
18782 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4331
18783 msgid "32-bit little endian such as UCS-4LE."
18784 msgstr ""
18785
18786 # type: textblock
18787 #. type: textblock
18788 #: ../src/guestfs-actions.pod:6410 ../fish/guestfish-actions.pod:4335
18789 msgid "The returned strings are transcoded to UTF-8."
18790 msgstr ""
18791
18792 # type: =head2
18793 #. type: =head2
18794 #: ../src/guestfs-actions.pod:6421
18795 msgid "guestfs_swapoff_device"
18796 msgstr ""
18797
18798 # type: verbatim
18799 #. type: verbatim
18800 #: ../src/guestfs-actions.pod:6423
18801 #, no-wrap
18802 msgid ""
18803 " int\n"
18804 " guestfs_swapoff_device (guestfs_h *g,\n"
18805 "                         const char *device);\n"
18806 "\n"
18807 msgstr ""
18808
18809 # type: textblock
18810 #. type: textblock
18811 #: ../src/guestfs-actions.pod:6427
18812 msgid ""
18813 "This command disables the libguestfs appliance swap device or partition "
18814 "named C<device>.  See C<guestfs_swapon_device>."
18815 msgstr ""
18816
18817 # type: =head2
18818 #. type: =head2
18819 #: ../src/guestfs-actions.pod:6435
18820 msgid "guestfs_swapoff_file"
18821 msgstr ""
18822
18823 # type: verbatim
18824 #. type: verbatim
18825 #: ../src/guestfs-actions.pod:6437
18826 #, no-wrap
18827 msgid ""
18828 " int\n"
18829 " guestfs_swapoff_file (guestfs_h *g,\n"
18830 "                       const char *file);\n"
18831 "\n"
18832 msgstr ""
18833
18834 # type: textblock
18835 #. type: textblock
18836 #: ../src/guestfs-actions.pod:6441 ../fish/guestfish-actions.pod:4352
18837 msgid "This command disables the libguestfs appliance swap on file."
18838 msgstr ""
18839
18840 # type: =head2
18841 #. type: =head2
18842 #: ../src/guestfs-actions.pod:6447
18843 msgid "guestfs_swapoff_label"
18844 msgstr ""
18845
18846 # type: verbatim
18847 #. type: verbatim
18848 #: ../src/guestfs-actions.pod:6449
18849 #, no-wrap
18850 msgid ""
18851 " int\n"
18852 " guestfs_swapoff_label (guestfs_h *g,\n"
18853 "                        const char *label);\n"
18854 "\n"
18855 msgstr ""
18856
18857 # type: textblock
18858 #. type: textblock
18859 #: ../src/guestfs-actions.pod:6453 ../fish/guestfish-actions.pod:4358
18860 msgid ""
18861 "This command disables the libguestfs appliance swap on labeled swap "
18862 "partition."
18863 msgstr ""
18864
18865 # type: =head2
18866 #. type: =head2
18867 #: ../src/guestfs-actions.pod:6460
18868 msgid "guestfs_swapoff_uuid"
18869 msgstr ""
18870
18871 # type: verbatim
18872 #. type: verbatim
18873 #: ../src/guestfs-actions.pod:6462
18874 #, no-wrap
18875 msgid ""
18876 " int\n"
18877 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18878 "                       const char *uuid);\n"
18879 "\n"
18880 msgstr ""
18881
18882 # type: textblock
18883 #. type: textblock
18884 #: ../src/guestfs-actions.pod:6466 ../fish/guestfish-actions.pod:4365
18885 msgid ""
18886 "This command disables the libguestfs appliance swap partition with the given "
18887 "UUID."
18888 msgstr ""
18889
18890 # type: =head2
18891 #. type: =head2
18892 #: ../src/guestfs-actions.pod:6473
18893 msgid "guestfs_swapon_device"
18894 msgstr ""
18895
18896 # type: verbatim
18897 #. type: verbatim
18898 #: ../src/guestfs-actions.pod:6475
18899 #, no-wrap
18900 msgid ""
18901 " int\n"
18902 " guestfs_swapon_device (guestfs_h *g,\n"
18903 "                        const char *device);\n"
18904 "\n"
18905 msgstr ""
18906
18907 # type: textblock
18908 #. type: textblock
18909 #: ../src/guestfs-actions.pod:6479
18910 msgid ""
18911 "This command enables the libguestfs appliance to use the swap device or "
18912 "partition named C<device>.  The increased memory is made available for all "
18913 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
18914 msgstr ""
18915
18916 # type: textblock
18917 #. type: textblock
18918 #: ../src/guestfs-actions.pod:6484 ../fish/guestfish-actions.pod:4377
18919 msgid ""
18920 "Note that you should not swap to existing guest swap partitions unless you "
18921 "know what you are doing.  They may contain hibernation information, or other "
18922 "information that the guest doesn't want you to trash.  You also risk leaking "
18923 "information about the host to the guest this way.  Instead, attach a new "
18924 "host device to the guest and swap on that."
18925 msgstr ""
18926
18927 # type: =head2
18928 #. type: =head2
18929 #: ../src/guestfs-actions.pod:6495
18930 msgid "guestfs_swapon_file"
18931 msgstr ""
18932
18933 # type: verbatim
18934 #. type: verbatim
18935 #: ../src/guestfs-actions.pod:6497
18936 #, no-wrap
18937 msgid ""
18938 " int\n"
18939 " guestfs_swapon_file (guestfs_h *g,\n"
18940 "                      const char *file);\n"
18941 "\n"
18942 msgstr ""
18943
18944 # type: textblock
18945 #. type: textblock
18946 #: ../src/guestfs-actions.pod:6501
18947 msgid ""
18948 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
18949 "notes."
18950 msgstr ""
18951
18952 # type: =head2
18953 #. type: =head2
18954 #: ../src/guestfs-actions.pod:6508
18955 msgid "guestfs_swapon_label"
18956 msgstr ""
18957
18958 # type: verbatim
18959 #. type: verbatim
18960 #: ../src/guestfs-actions.pod:6510
18961 #, no-wrap
18962 msgid ""
18963 " int\n"
18964 " guestfs_swapon_label (guestfs_h *g,\n"
18965 "                       const char *label);\n"
18966 "\n"
18967 msgstr ""
18968
18969 # type: textblock
18970 #. type: textblock
18971 #: ../src/guestfs-actions.pod:6514
18972 msgid ""
18973 "This command enables swap to a labeled swap partition.  See "
18974 "C<guestfs_swapon_device> for other notes."
18975 msgstr ""
18976
18977 # type: =head2
18978 #. type: =head2
18979 #: ../src/guestfs-actions.pod:6521
18980 msgid "guestfs_swapon_uuid"
18981 msgstr ""
18982
18983 # type: verbatim
18984 #. type: verbatim
18985 #: ../src/guestfs-actions.pod:6523
18986 #, no-wrap
18987 msgid ""
18988 " int\n"
18989 " guestfs_swapon_uuid (guestfs_h *g,\n"
18990 "                      const char *uuid);\n"
18991 "\n"
18992 msgstr ""
18993
18994 # type: textblock
18995 #. type: textblock
18996 #: ../src/guestfs-actions.pod:6527
18997 msgid ""
18998 "This command enables swap to a swap partition with the given UUID.  See "
18999 "C<guestfs_swapon_device> for other notes."
19000 msgstr ""
19001
19002 # type: =head2
19003 #. type: =head2
19004 #: ../src/guestfs-actions.pod:6534
19005 msgid "guestfs_sync"
19006 msgstr ""
19007
19008 # type: verbatim
19009 #. type: verbatim
19010 #: ../src/guestfs-actions.pod:6536
19011 #, no-wrap
19012 msgid ""
19013 " int\n"
19014 " guestfs_sync (guestfs_h *g);\n"
19015 "\n"
19016 msgstr ""
19017
19018 # type: textblock
19019 #. type: textblock
19020 #: ../src/guestfs-actions.pod:6539 ../fish/guestfish-actions.pod:4409
19021 msgid ""
19022 "This syncs the disk, so that any writes are flushed through to the "
19023 "underlying disk image."
19024 msgstr ""
19025
19026 # type: textblock
19027 #. type: textblock
19028 #: ../src/guestfs-actions.pod:6542 ../fish/guestfish-actions.pod:4412
19029 msgid ""
19030 "You should always call this if you have modified a disk image, before "
19031 "closing the handle."
19032 msgstr ""
19033
19034 # type: =head2
19035 #. type: =head2
19036 #: ../src/guestfs-actions.pod:6549
19037 msgid "guestfs_tail"
19038 msgstr ""
19039
19040 # type: verbatim
19041 #. type: verbatim
19042 #: ../src/guestfs-actions.pod:6551
19043 #, no-wrap
19044 msgid ""
19045 " char **\n"
19046 " guestfs_tail (guestfs_h *g,\n"
19047 "               const char *path);\n"
19048 "\n"
19049 msgstr ""
19050
19051 # type: textblock
19052 #. type: textblock
19053 #: ../src/guestfs-actions.pod:6555 ../fish/guestfish-actions.pod:4419
19054 msgid ""
19055 "This command returns up to the last 10 lines of a file as a list of strings."
19056 msgstr ""
19057
19058 # type: =head2
19059 #. type: =head2
19060 #: ../src/guestfs-actions.pod:6567
19061 msgid "guestfs_tail_n"
19062 msgstr ""
19063
19064 # type: verbatim
19065 #. type: verbatim
19066 #: ../src/guestfs-actions.pod:6569
19067 #, no-wrap
19068 msgid ""
19069 " char **\n"
19070 " guestfs_tail_n (guestfs_h *g,\n"
19071 "                 int nrlines,\n"
19072 "                 const char *path);\n"
19073 "\n"
19074 msgstr ""
19075
19076 # type: textblock
19077 #. type: textblock
19078 #: ../src/guestfs-actions.pod:6574 ../fish/guestfish-actions.pod:4429
19079 msgid ""
19080 "If the parameter C<nrlines> is a positive number, this returns the last "
19081 "C<nrlines> lines of the file C<path>."
19082 msgstr ""
19083
19084 # type: textblock
19085 #. type: textblock
19086 #: ../src/guestfs-actions.pod:6577 ../fish/guestfish-actions.pod:4432
19087 msgid ""
19088 "If the parameter C<nrlines> is a negative number, this returns lines from "
19089 "the file C<path>, starting with the C<-nrlines>th line."
19090 msgstr ""
19091
19092 # type: =head2
19093 #. type: =head2
19094 #: ../src/guestfs-actions.pod:6591
19095 msgid "guestfs_tar_in"
19096 msgstr ""
19097
19098 # type: verbatim
19099 #. type: verbatim
19100 #: ../src/guestfs-actions.pod:6593
19101 #, no-wrap
19102 msgid ""
19103 " int\n"
19104 " guestfs_tar_in (guestfs_h *g,\n"
19105 "                 const char *tarfile,\n"
19106 "                 const char *directory);\n"
19107 "\n"
19108 msgstr ""
19109
19110 # type: textblock
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:6598 ../fish/guestfish-actions.pod:4444
19113 msgid ""
19114 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
19115 "tar file) into C<directory>."
19116 msgstr ""
19117
19118 # type: textblock
19119 #. type: textblock
19120 #: ../src/guestfs-actions.pod:6601
19121 msgid ""
19122 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
19123 msgstr ""
19124
19125 # type: textblock
19126 #. type: textblock
19127 #: ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:6623
19128 #: ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:6655
19129 msgid "(Added in 1.0.3)"
19130 msgstr ""
19131
19132 # type: =head2
19133 #. type: =head2
19134 #: ../src/guestfs-actions.pod:6608
19135 msgid "guestfs_tar_out"
19136 msgstr ""
19137
19138 # type: verbatim
19139 #. type: verbatim
19140 #: ../src/guestfs-actions.pod:6610
19141 #, no-wrap
19142 msgid ""
19143 " int\n"
19144 " guestfs_tar_out (guestfs_h *g,\n"
19145 "                  const char *directory,\n"
19146 "                  const char *tarfile);\n"
19147 "\n"
19148 msgstr ""
19149
19150 # type: textblock
19151 #. type: textblock
19152 #: ../src/guestfs-actions.pod:6615 ../fish/guestfish-actions.pod:4456
19153 msgid ""
19154 "This command packs the contents of C<directory> and downloads it to local "
19155 "file C<tarfile>."
19156 msgstr ""
19157
19158 # type: textblock
19159 #. type: textblock
19160 #: ../src/guestfs-actions.pod:6618
19161 msgid ""
19162 "To download a compressed tarball, use C<guestfs_tgz_out> or "
19163 "C<guestfs_txz_out>."
19164 msgstr ""
19165
19166 # type: =head2
19167 #. type: =head2
19168 #: ../src/guestfs-actions.pod:6625
19169 msgid "guestfs_tgz_in"
19170 msgstr ""
19171
19172 # type: verbatim
19173 #. type: verbatim
19174 #: ../src/guestfs-actions.pod:6627
19175 #, no-wrap
19176 msgid ""
19177 " int\n"
19178 " guestfs_tgz_in (guestfs_h *g,\n"
19179 "                 const char *tarball,\n"
19180 "                 const char *directory);\n"
19181 "\n"
19182 msgstr ""
19183
19184 # type: textblock
19185 #. type: textblock
19186 #: ../src/guestfs-actions.pod:6632 ../fish/guestfish-actions.pod:4468
19187 msgid ""
19188 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
19189 "tar file) into C<directory>."
19190 msgstr ""
19191
19192 # type: textblock
19193 #. type: textblock
19194 #: ../src/guestfs-actions.pod:6635
19195 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
19196 msgstr ""
19197
19198 # type: =head2
19199 #. type: =head2
19200 #: ../src/guestfs-actions.pod:6641
19201 msgid "guestfs_tgz_out"
19202 msgstr ""
19203
19204 # type: verbatim
19205 #. type: verbatim
19206 #: ../src/guestfs-actions.pod:6643
19207 #, no-wrap
19208 msgid ""
19209 " int\n"
19210 " guestfs_tgz_out (guestfs_h *g,\n"
19211 "                  const char *directory,\n"
19212 "                  const char *tarball);\n"
19213 "\n"
19214 msgstr ""
19215
19216 # type: textblock
19217 #. type: textblock
19218 #: ../src/guestfs-actions.pod:6648 ../fish/guestfish-actions.pod:4479
19219 msgid ""
19220 "This command packs the contents of C<directory> and downloads it to local "
19221 "file C<tarball>."
19222 msgstr ""
19223
19224 # type: textblock
19225 #. type: textblock
19226 #: ../src/guestfs-actions.pod:6651
19227 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
19228 msgstr ""
19229
19230 # type: =head2
19231 #. type: =head2
19232 #: ../src/guestfs-actions.pod:6657
19233 msgid "guestfs_touch"
19234 msgstr ""
19235
19236 # type: verbatim
19237 #. type: verbatim
19238 #: ../src/guestfs-actions.pod:6659
19239 #, no-wrap
19240 msgid ""
19241 " int\n"
19242 " guestfs_touch (guestfs_h *g,\n"
19243 "                const char *path);\n"
19244 "\n"
19245 msgstr ""
19246
19247 # type: textblock
19248 #. type: textblock
19249 #: ../src/guestfs-actions.pod:6663 ../fish/guestfish-actions.pod:4490
19250 msgid ""
19251 "Touch acts like the L<touch(1)> command.  It can be used to update the "
19252 "timestamps on a file, or, if the file does not exist, to create a new zero-"
19253 "length file."
19254 msgstr ""
19255
19256 # type: textblock
19257 #. type: textblock
19258 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4494
19259 msgid ""
19260 "This command only works on regular files, and will fail on other file types "
19261 "such as directories, symbolic links, block special etc."
19262 msgstr ""
19263
19264 # type: =head2
19265 #. type: =head2
19266 #: ../src/guestfs-actions.pod:6674
19267 msgid "guestfs_truncate"
19268 msgstr ""
19269
19270 # type: verbatim
19271 #. type: verbatim
19272 #: ../src/guestfs-actions.pod:6676
19273 #, no-wrap
19274 msgid ""
19275 " int\n"
19276 " guestfs_truncate (guestfs_h *g,\n"
19277 "                   const char *path);\n"
19278 "\n"
19279 msgstr ""
19280
19281 # type: textblock
19282 #. type: textblock
19283 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4501
19284 msgid ""
19285 "This command truncates C<path> to a zero-length file.  The file must exist "
19286 "already."
19287 msgstr ""
19288
19289 # type: =head2
19290 #. type: =head2
19291 #: ../src/guestfs-actions.pod:6687
19292 msgid "guestfs_truncate_size"
19293 msgstr ""
19294
19295 # type: verbatim
19296 #. type: verbatim
19297 #: ../src/guestfs-actions.pod:6689
19298 #, no-wrap
19299 msgid ""
19300 " int\n"
19301 " guestfs_truncate_size (guestfs_h *g,\n"
19302 "                        const char *path,\n"
19303 "                        int64_t size);\n"
19304 "\n"
19305 msgstr ""
19306
19307 # type: textblock
19308 #. type: textblock
19309 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4508
19310 msgid ""
19311 "This command truncates C<path> to size C<size> bytes.  The file must exist "
19312 "already."
19313 msgstr ""
19314
19315 # type: textblock
19316 #. type: textblock
19317 #: ../src/guestfs-actions.pod:6697
19318 msgid ""
19319 "If the current file size is less than C<size> then the file is extended to "
19320 "the required size with zero bytes.  This creates a sparse file (ie. disk "
19321 "blocks are not allocated for the file until you write to it).  To create a "
19322 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
19323 msgstr ""
19324
19325 # type: =head2
19326 #. type: =head2
19327 #: ../src/guestfs-actions.pod:6707
19328 msgid "guestfs_tune2fs_l"
19329 msgstr ""
19330
19331 # type: verbatim
19332 #. type: verbatim
19333 #: ../src/guestfs-actions.pod:6709
19334 #, no-wrap
19335 msgid ""
19336 " char **\n"
19337 " guestfs_tune2fs_l (guestfs_h *g,\n"
19338 "                    const char *device);\n"
19339 "\n"
19340 msgstr ""
19341
19342 # type: textblock
19343 #. type: textblock
19344 #: ../src/guestfs-actions.pod:6713 ../fish/guestfish-actions.pod:4521
19345 msgid ""
19346 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19347 "C<device>."
19348 msgstr ""
19349
19350 # type: textblock
19351 #. type: textblock
19352 #: ../src/guestfs-actions.pod:6716 ../fish/guestfish-actions.pod:4524
19353 msgid ""
19354 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19355 "for more details.  The list of fields returned isn't clearly defined, and "
19356 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19357 "and the filesystem itself."
19358 msgstr ""
19359
19360 # type: =head2
19361 #. type: =head2
19362 #: ../src/guestfs-actions.pod:6729
19363 msgid "guestfs_txz_in"
19364 msgstr ""
19365
19366 # type: verbatim
19367 #. type: verbatim
19368 #: ../src/guestfs-actions.pod:6731
19369 #, no-wrap
19370 msgid ""
19371 " int\n"
19372 " guestfs_txz_in (guestfs_h *g,\n"
19373 "                 const char *tarball,\n"
19374 "                 const char *directory);\n"
19375 "\n"
19376 msgstr ""
19377
19378 # type: textblock
19379 #. type: textblock
19380 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4533
19381 msgid ""
19382 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19383 "tar file) into C<directory>."
19384 msgstr ""
19385
19386 # type: =head2
19387 #. type: =head2
19388 #: ../src/guestfs-actions.pod:6743
19389 msgid "guestfs_txz_out"
19390 msgstr ""
19391
19392 # type: verbatim
19393 #. type: verbatim
19394 #: ../src/guestfs-actions.pod:6745
19395 #, no-wrap
19396 msgid ""
19397 " int\n"
19398 " guestfs_txz_out (guestfs_h *g,\n"
19399 "                  const char *directory,\n"
19400 "                  const char *tarball);\n"
19401 "\n"
19402 msgstr ""
19403
19404 # type: textblock
19405 #. type: textblock
19406 #: ../src/guestfs-actions.pod:6750 ../fish/guestfish-actions.pod:4542
19407 msgid ""
19408 "This command packs the contents of C<directory> and downloads it to local "
19409 "file C<tarball> (as an xz compressed tar archive)."
19410 msgstr ""
19411
19412 # type: =head2
19413 #. type: =head2
19414 #: ../src/guestfs-actions.pod:6757
19415 msgid "guestfs_umask"
19416 msgstr ""
19417
19418 # type: verbatim
19419 #. type: verbatim
19420 #: ../src/guestfs-actions.pod:6759
19421 #, no-wrap
19422 msgid ""
19423 " int\n"
19424 " guestfs_umask (guestfs_h *g,\n"
19425 "                int mask);\n"
19426 "\n"
19427 msgstr ""
19428
19429 # type: textblock
19430 #. type: textblock
19431 #: ../src/guestfs-actions.pod:6763 ../fish/guestfish-actions.pod:4551
19432 msgid ""
19433 "This function sets the mask used for creating new files and device nodes to "
19434 "C<mask & 0777>."
19435 msgstr ""
19436
19437 # type: textblock
19438 #. type: textblock
19439 #: ../src/guestfs-actions.pod:6766 ../fish/guestfish-actions.pod:4554
19440 msgid ""
19441 "Typical umask values would be C<022> which creates new files with "
19442 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19443 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19444 msgstr ""
19445
19446 # type: textblock
19447 #. type: textblock
19448 #: ../src/guestfs-actions.pod:6771 ../fish/guestfish-actions.pod:4559
19449 msgid ""
19450 "The default umask is C<022>.  This is important because it means that "
19451 "directories and device nodes will be created with C<0644> or C<0755> mode "
19452 "even if you specify C<0777>."
19453 msgstr ""
19454
19455 # type: textblock
19456 #. type: textblock
19457 #: ../src/guestfs-actions.pod:6775
19458 msgid ""
19459 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19460 "C<guestfs_mkdir>."
19461 msgstr ""
19462
19463 # type: textblock
19464 #. type: textblock
19465 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4566
19466 msgid "This call returns the previous umask."
19467 msgstr ""
19468
19469 # type: =head2
19470 #. type: =head2
19471 #: ../src/guestfs-actions.pod:6784
19472 msgid "guestfs_umount"
19473 msgstr ""
19474
19475 # type: verbatim
19476 #. type: verbatim
19477 #: ../src/guestfs-actions.pod:6786
19478 #, no-wrap
19479 msgid ""
19480 " int\n"
19481 " guestfs_umount (guestfs_h *g,\n"
19482 "                 const char *pathordevice);\n"
19483 "\n"
19484 msgstr ""
19485
19486 # type: textblock
19487 #. type: textblock
19488 #: ../src/guestfs-actions.pod:6790 ../fish/guestfish-actions.pod:4574
19489 msgid ""
19490 "This unmounts the given filesystem.  The filesystem may be specified either "
19491 "by its mountpoint (path) or the device which contains the filesystem."
19492 msgstr ""
19493
19494 # type: =head2
19495 #. type: =head2
19496 #: ../src/guestfs-actions.pod:6798
19497 msgid "guestfs_umount_all"
19498 msgstr ""
19499
19500 # type: verbatim
19501 #. type: verbatim
19502 #: ../src/guestfs-actions.pod:6800
19503 #, no-wrap
19504 msgid ""
19505 " int\n"
19506 " guestfs_umount_all (guestfs_h *g);\n"
19507 "\n"
19508 msgstr ""
19509
19510 # type: textblock
19511 #. type: textblock
19512 #: ../src/guestfs-actions.pod:6803 ../fish/guestfish-actions.pod:4584
19513 msgid "This unmounts all mounted filesystems."
19514 msgstr ""
19515
19516 # type: textblock
19517 #. type: textblock
19518 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4586
19519 msgid "Some internal mounts are not unmounted by this call."
19520 msgstr ""
19521
19522 # type: =head2
19523 #. type: =head2
19524 #: ../src/guestfs-actions.pod:6811
19525 msgid "guestfs_upload"
19526 msgstr ""
19527
19528 # type: verbatim
19529 #. type: verbatim
19530 #: ../src/guestfs-actions.pod:6813
19531 #, no-wrap
19532 msgid ""
19533 " int\n"
19534 " guestfs_upload (guestfs_h *g,\n"
19535 "                 const char *filename,\n"
19536 "                 const char *remotefilename);\n"
19537 "\n"
19538 msgstr ""
19539
19540 # type: textblock
19541 #. type: textblock
19542 #: ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6842
19543 #: ../fish/guestfish-actions.pod:4592 ../fish/guestfish-actions.pod:4605
19544 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19545 msgstr ""
19546
19547 # type: textblock
19548 #. type: textblock
19549 #: ../src/guestfs-actions.pod:6823
19550 msgid "See also C<guestfs_download>."
19551 msgstr ""
19552
19553 # type: =head2
19554 #. type: =head2
19555 #: ../src/guestfs-actions.pod:6834
19556 msgid "guestfs_upload_offset"
19557 msgstr ""
19558
19559 # type: verbatim
19560 #. type: verbatim
19561 #: ../src/guestfs-actions.pod:6836
19562 #, no-wrap
19563 msgid ""
19564 " int\n"
19565 " guestfs_upload_offset (guestfs_h *g,\n"
19566 "                        const char *filename,\n"
19567 "                        const char *remotefilename,\n"
19568 "                        int64_t offset);\n"
19569 "\n"
19570 msgstr ""
19571
19572 # type: textblock
19573 #. type: textblock
19574 #: ../src/guestfs-actions.pod:6845 ../fish/guestfish-actions.pod:4608
19575 msgid ""
19576 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19577 "The intention is to overwrite parts of existing files or devices, although "
19578 "if a non-existant file is specified then it is created with a \"hole\" "
19579 "before C<offset>.  The size of the data written is implicit in the size of "
19580 "the source C<filename>."
19581 msgstr ""
19582
19583 # type: textblock
19584 #. type: textblock
19585 #: ../src/guestfs-actions.pod:6852
19586 msgid ""
19587 "Note that there is no limit on the amount of data that can be uploaded with "
19588 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19589 "full amount unless an error occurs."
19590 msgstr ""
19591
19592 # type: textblock
19593 #. type: textblock
19594 #: ../src/guestfs-actions.pod:6857
19595 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19596 msgstr ""
19597
19598 # type: =head2
19599 #. type: =head2
19600 #: ../src/guestfs-actions.pod:6868
19601 msgid "guestfs_utimens"
19602 msgstr ""
19603
19604 # type: verbatim
19605 #. type: verbatim
19606 #: ../src/guestfs-actions.pod:6870
19607 #, no-wrap
19608 msgid ""
19609 " int\n"
19610 " guestfs_utimens (guestfs_h *g,\n"
19611 "                  const char *path,\n"
19612 "                  int64_t atsecs,\n"
19613 "                  int64_t atnsecs,\n"
19614 "                  int64_t mtsecs,\n"
19615 "                  int64_t mtnsecs);\n"
19616 "\n"
19617 msgstr ""
19618
19619 # type: textblock
19620 #. type: textblock
19621 #: ../src/guestfs-actions.pod:6878 ../fish/guestfish-actions.pod:4628
19622 msgid "This command sets the timestamps of a file with nanosecond precision."
19623 msgstr ""
19624
19625 # type: textblock
19626 #. type: textblock
19627 #: ../src/guestfs-actions.pod:6881 ../fish/guestfish-actions.pod:4631
19628 msgid ""
19629 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
19630 "from the epoch."
19631 msgstr ""
19632
19633 # type: textblock
19634 #. type: textblock
19635 #: ../src/guestfs-actions.pod:6884 ../fish/guestfish-actions.pod:4634
19636 msgid ""
19637 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
19638 "nanoseconds from the epoch."
19639 msgstr ""
19640
19641 # type: textblock
19642 #. type: textblock
19643 #: ../src/guestfs-actions.pod:6887 ../fish/guestfish-actions.pod:4637
19644 msgid ""
19645 "If the C<*nsecs> field contains the special value C<-1> then the "
19646 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
19647 "ignored in this case)."
19648 msgstr ""
19649
19650 # type: textblock
19651 #. type: textblock
19652 #: ../src/guestfs-actions.pod:6891 ../fish/guestfish-actions.pod:4641
19653 msgid ""
19654 "If the C<*nsecs> field contains the special value C<-2> then the "
19655 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
19656 "in this case)."
19657 msgstr ""
19658
19659 # type: =head2
19660 #. type: =head2
19661 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-structs.pod:175
19662 msgid "guestfs_version"
19663 msgstr ""
19664
19665 # type: verbatim
19666 #. type: verbatim
19667 #: ../src/guestfs-actions.pod:6901
19668 #, no-wrap
19669 msgid ""
19670 " struct guestfs_version *\n"
19671 " guestfs_version (guestfs_h *g);\n"
19672 "\n"
19673 msgstr ""
19674
19675 # type: textblock
19676 #. type: textblock
19677 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4649
19678 msgid ""
19679 "Return the libguestfs version number that the program is linked against."
19680 msgstr ""
19681
19682 # type: textblock
19683 #. type: textblock
19684 #: ../src/guestfs-actions.pod:6907 ../fish/guestfish-actions.pod:4652
19685 msgid ""
19686 "Note that because of dynamic linking this is not necessarily the version of "
19687 "libguestfs that you compiled against.  You can compile the program, and then "
19688 "at runtime dynamically link against a completely different C<libguestfs.so> "
19689 "library."
19690 msgstr ""
19691
19692 # type: textblock
19693 #. type: textblock
19694 #: ../src/guestfs-actions.pod:6912 ../fish/guestfish-actions.pod:4657
19695 msgid ""
19696 "This call was added in version C<1.0.58>.  In previous versions of "
19697 "libguestfs there was no way to get the version number.  From C code you can "
19698 "use dynamic linker functions to find out if this symbol exists (if it "
19699 "doesn't, then it's an earlier version)."
19700 msgstr ""
19701
19702 # type: textblock
19703 #. type: textblock
19704 #: ../src/guestfs-actions.pod:6918 ../fish/guestfish-actions.pod:4663
19705 msgid ""
19706 "The call returns a structure with four elements.  The first three (C<major>, "
19707 "C<minor> and C<release>) are numbers and correspond to the usual version "
19708 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
19709 "but may be used for distro-specific information."
19710 msgstr ""
19711
19712 # type: textblock
19713 #. type: textblock
19714 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4669
19715 msgid ""
19716 "To construct the original version string: C<$major.$minor.$release$extra>"
19717 msgstr ""
19718
19719 # type: textblock
19720 #. type: textblock
19721 #: ../src/guestfs-actions.pod:6927 ../fish/guestfish-actions.pod:4672
19722 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
19723 msgstr ""
19724
19725 # type: textblock
19726 #. type: textblock
19727 #: ../src/guestfs-actions.pod:6929
19728 msgid ""
19729 "I<Note:> Don't use this call to test for availability of features.  In "
19730 "enterprise distributions we backport features from later versions into "
19731 "earlier versions, making this an unreliable way to test for features.  Use "
19732 "C<guestfs_available> instead."
19733 msgstr ""
19734
19735 # type: textblock
19736 #. type: textblock
19737 #: ../src/guestfs-actions.pod:6935
19738 msgid ""
19739 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
19740 "error.  I<The caller must call C<guestfs_free_version> after use>."
19741 msgstr ""
19742
19743 # type: textblock
19744 #. type: textblock
19745 #: ../src/guestfs-actions.pod:6939
19746 msgid "(Added in 1.0.58)"
19747 msgstr ""
19748
19749 # type: =head2
19750 #. type: =head2
19751 #: ../src/guestfs-actions.pod:6941
19752 msgid "guestfs_vfs_label"
19753 msgstr ""
19754
19755 # type: verbatim
19756 #. type: verbatim
19757 #: ../src/guestfs-actions.pod:6943
19758 #, no-wrap
19759 msgid ""
19760 " char *\n"
19761 " guestfs_vfs_label (guestfs_h *g,\n"
19762 "                    const char *device);\n"
19763 "\n"
19764 msgstr ""
19765
19766 # type: textblock
19767 #. type: textblock
19768 #: ../src/guestfs-actions.pod:6947 ../fish/guestfish-actions.pod:4684
19769 msgid "This returns the filesystem label of the filesystem on C<device>."
19770 msgstr ""
19771
19772 # type: textblock
19773 #. type: textblock
19774 #: ../src/guestfs-actions.pod:6950 ../fish/guestfish-actions.pod:4687
19775 msgid "If the filesystem is unlabeled, this returns the empty string."
19776 msgstr ""
19777
19778 # type: textblock
19779 #. type: textblock
19780 #: ../src/guestfs-actions.pod:6952
19781 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19782 msgstr ""
19783
19784 # type: textblock
19785 #. type: textblock
19786 #: ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6994
19787 msgid "(Added in 1.3.18)"
19788 msgstr ""
19789
19790 # type: =head2
19791 #. type: =head2
19792 #: ../src/guestfs-actions.pod:6959
19793 msgid "guestfs_vfs_type"
19794 msgstr ""
19795
19796 # type: verbatim
19797 #. type: verbatim
19798 #: ../src/guestfs-actions.pod:6961
19799 #, no-wrap
19800 msgid ""
19801 " char *\n"
19802 " guestfs_vfs_type (guestfs_h *g,\n"
19803 "                   const char *device);\n"
19804 "\n"
19805 msgstr ""
19806
19807 # type: textblock
19808 #. type: textblock
19809 #: ../src/guestfs-actions.pod:6965 ../fish/guestfish-actions.pod:4695
19810 msgid ""
19811 "This command gets the filesystem type corresponding to the filesystem on "
19812 "C<device>."
19813 msgstr ""
19814
19815 # type: textblock
19816 #. type: textblock
19817 #: ../src/guestfs-actions.pod:6968 ../fish/guestfish-actions.pod:4698
19818 msgid ""
19819 "For most filesystems, the result is the name of the Linux VFS module which "
19820 "would be used to mount this filesystem if you mounted it without specifying "
19821 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
19822 msgstr ""
19823
19824 # type: =head2
19825 #. type: =head2
19826 #: ../src/guestfs-actions.pod:6978
19827 msgid "guestfs_vfs_uuid"
19828 msgstr ""
19829
19830 # type: verbatim
19831 #. type: verbatim
19832 #: ../src/guestfs-actions.pod:6980
19833 #, no-wrap
19834 msgid ""
19835 " char *\n"
19836 " guestfs_vfs_uuid (guestfs_h *g,\n"
19837 "                   const char *device);\n"
19838 "\n"
19839 msgstr ""
19840
19841 # type: textblock
19842 #. type: textblock
19843 #: ../src/guestfs-actions.pod:6984 ../fish/guestfish-actions.pod:4707
19844 msgid "This returns the filesystem UUID of the filesystem on C<device>."
19845 msgstr ""
19846
19847 # type: textblock
19848 #. type: textblock
19849 #: ../src/guestfs-actions.pod:6987 ../fish/guestfish-actions.pod:4710
19850 msgid "If the filesystem does not have a UUID, this returns the empty string."
19851 msgstr ""
19852
19853 # type: textblock
19854 #. type: textblock
19855 #: ../src/guestfs-actions.pod:6989
19856 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19857 msgstr ""
19858
19859 # type: =head2
19860 #. type: =head2
19861 #: ../src/guestfs-actions.pod:6996
19862 msgid "guestfs_vg_activate"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #. type: verbatim
19867 #: ../src/guestfs-actions.pod:6998
19868 #, no-wrap
19869 msgid ""
19870 " int\n"
19871 " guestfs_vg_activate (guestfs_h *g,\n"
19872 "                      int activate,\n"
19873 "                      char *const *volgroups);\n"
19874 "\n"
19875 msgstr ""
19876
19877 # type: textblock
19878 #. type: textblock
19879 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4718
19880 msgid ""
19881 "This command activates or (if C<activate> is false) deactivates all logical "
19882 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
19883 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
19884 "deactivated, then those devices disappear."
19885 msgstr ""
19886
19887 # type: textblock
19888 #. type: textblock
19889 #: ../src/guestfs-actions.pod:7009 ../fish/guestfish-actions.pod:4724
19890 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
19891 msgstr ""
19892
19893 # type: textblock
19894 #. type: textblock
19895 #: ../src/guestfs-actions.pod:7011 ../fish/guestfish-actions.pod:4726
19896 msgid ""
19897 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19898 "activated or deactivated."
19899 msgstr ""
19900
19901 # type: =head2
19902 #. type: =head2
19903 #: ../src/guestfs-actions.pod:7018
19904 msgid "guestfs_vg_activate_all"
19905 msgstr ""
19906
19907 # type: verbatim
19908 #. type: verbatim
19909 #: ../src/guestfs-actions.pod:7020
19910 #, no-wrap
19911 msgid ""
19912 " int\n"
19913 " guestfs_vg_activate_all (guestfs_h *g,\n"
19914 "                          int activate);\n"
19915 "\n"
19916 msgstr ""
19917
19918 # type: textblock
19919 #. type: textblock
19920 #: ../src/guestfs-actions.pod:7024 ../fish/guestfish-actions.pod:4733
19921 msgid ""
19922 "This command activates or (if C<activate> is false) deactivates all logical "
19923 "volumes in all volume groups.  If activated, then they are made known to the "
19924 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
19925 "those devices disappear."
19926 msgstr ""
19927
19928 # type: textblock
19929 #. type: textblock
19930 #: ../src/guestfs-actions.pod:7030 ../fish/guestfish-actions.pod:4739
19931 msgid "This command is the same as running C<vgchange -a y|n>"
19932 msgstr ""
19933
19934 # type: =head2
19935 #. type: =head2
19936 #: ../src/guestfs-actions.pod:7036
19937 msgid "guestfs_vgcreate"
19938 msgstr ""
19939
19940 # type: verbatim
19941 #. type: verbatim
19942 #: ../src/guestfs-actions.pod:7038
19943 #, no-wrap
19944 msgid ""
19945 " int\n"
19946 " guestfs_vgcreate (guestfs_h *g,\n"
19947 "                   const char *volgroup,\n"
19948 "                   char *const *physvols);\n"
19949 "\n"
19950 msgstr ""
19951
19952 # type: textblock
19953 #. type: textblock
19954 #: ../src/guestfs-actions.pod:7043 ../fish/guestfish-actions.pod:4745
19955 msgid ""
19956 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19957 "of physical volumes C<physvols>."
19958 msgstr ""
19959
19960 # type: =head2
19961 #. type: =head2
19962 #: ../src/guestfs-actions.pod:7050
19963 msgid "guestfs_vglvuuids"
19964 msgstr ""
19965
19966 # type: verbatim
19967 #. type: verbatim
19968 #: ../src/guestfs-actions.pod:7052
19969 #, no-wrap
19970 msgid ""
19971 " char **\n"
19972 " guestfs_vglvuuids (guestfs_h *g,\n"
19973 "                    const char *vgname);\n"
19974 "\n"
19975 msgstr ""
19976
19977 # type: textblock
19978 #. type: textblock
19979 #: ../src/guestfs-actions.pod:7056 ../fish/guestfish-actions.pod:4752
19980 msgid ""
19981 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19982 "volumes created in this volume group."
19983 msgstr ""
19984
19985 # type: textblock
19986 #. type: textblock
19987 #: ../src/guestfs-actions.pod:7059
19988 msgid ""
19989 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19990 "associate logical volumes and volume groups."
19991 msgstr ""
19992
19993 # type: textblock
19994 #. type: textblock
19995 #: ../src/guestfs-actions.pod:7062
19996 msgid "See also C<guestfs_vgpvuuids>."
19997 msgstr ""
19998
19999 # type: =head2
20000 #. type: =head2
20001 #: ../src/guestfs-actions.pod:7070
20002 msgid "guestfs_vgpvuuids"
20003 msgstr ""
20004
20005 # type: verbatim
20006 #. type: verbatim
20007 #: ../src/guestfs-actions.pod:7072
20008 #, no-wrap
20009 msgid ""
20010 " char **\n"
20011 " guestfs_vgpvuuids (guestfs_h *g,\n"
20012 "                    const char *vgname);\n"
20013 "\n"
20014 msgstr ""
20015
20016 # type: textblock
20017 #. type: textblock
20018 #: ../src/guestfs-actions.pod:7076 ../fish/guestfish-actions.pod:4764
20019 msgid ""
20020 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
20021 "volumes that this volume group resides on."
20022 msgstr ""
20023
20024 # type: textblock
20025 #. type: textblock
20026 #: ../src/guestfs-actions.pod:7079
20027 msgid ""
20028 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
20029 "associate physical volumes and volume groups."
20030 msgstr ""
20031
20032 # type: textblock
20033 #. type: textblock
20034 #: ../src/guestfs-actions.pod:7082
20035 msgid "See also C<guestfs_vglvuuids>."
20036 msgstr ""
20037
20038 # type: =head2
20039 #. type: =head2
20040 #: ../src/guestfs-actions.pod:7090
20041 msgid "guestfs_vgremove"
20042 msgstr ""
20043
20044 # type: verbatim
20045 #. type: verbatim
20046 #: ../src/guestfs-actions.pod:7092
20047 #, no-wrap
20048 msgid ""
20049 " int\n"
20050 " guestfs_vgremove (guestfs_h *g,\n"
20051 "                   const char *vgname);\n"
20052 "\n"
20053 msgstr ""
20054
20055 # type: textblock
20056 #. type: textblock
20057 #: ../src/guestfs-actions.pod:7096 ../fish/guestfish-actions.pod:4776
20058 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
20059 msgstr ""
20060
20061 # type: textblock
20062 #. type: textblock
20063 #: ../src/guestfs-actions.pod:7098 ../fish/guestfish-actions.pod:4778
20064 msgid ""
20065 "This also forcibly removes all logical volumes in the volume group (if any)."
20066 msgstr ""
20067
20068 # type: =head2
20069 #. type: =head2
20070 #: ../src/guestfs-actions.pod:7105
20071 msgid "guestfs_vgrename"
20072 msgstr ""
20073
20074 # type: verbatim
20075 #. type: verbatim
20076 #: ../src/guestfs-actions.pod:7107
20077 #, no-wrap
20078 msgid ""
20079 " int\n"
20080 " guestfs_vgrename (guestfs_h *g,\n"
20081 "                   const char *volgroup,\n"
20082 "                   const char *newvolgroup);\n"
20083 "\n"
20084 msgstr ""
20085
20086 # type: textblock
20087 #. type: textblock
20088 #: ../src/guestfs-actions.pod:7112 ../fish/guestfish-actions.pod:4785
20089 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
20090 msgstr ""
20091
20092 # type: =head2
20093 #. type: =head2
20094 #: ../src/guestfs-actions.pod:7118
20095 msgid "guestfs_vgs"
20096 msgstr ""
20097
20098 # type: verbatim
20099 #. type: verbatim
20100 #: ../src/guestfs-actions.pod:7120
20101 #, no-wrap
20102 msgid ""
20103 " char **\n"
20104 " guestfs_vgs (guestfs_h *g);\n"
20105 "\n"
20106 msgstr ""
20107
20108 # type: textblock
20109 #. type: textblock
20110 #: ../src/guestfs-actions.pod:7123 ../fish/guestfish-actions.pod:4791
20111 msgid ""
20112 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20113 "> command."
20114 msgstr ""
20115
20116 # type: textblock
20117 #. type: textblock
20118 #: ../src/guestfs-actions.pod:7126 ../fish/guestfish-actions.pod:4794
20119 msgid ""
20120 "This returns a list of just the volume group names that were detected (eg. "
20121 "C<VolGroup00>)."
20122 msgstr ""
20123
20124 # type: textblock
20125 #. type: textblock
20126 #: ../src/guestfs-actions.pod:7129
20127 msgid "See also C<guestfs_vgs_full>."
20128 msgstr ""
20129
20130 # type: =head2
20131 #. type: =head2
20132 #: ../src/guestfs-actions.pod:7137
20133 msgid "guestfs_vgs_full"
20134 msgstr ""
20135
20136 # type: verbatim
20137 #. type: verbatim
20138 #: ../src/guestfs-actions.pod:7139
20139 #, no-wrap
20140 msgid ""
20141 " struct guestfs_lvm_vg_list *\n"
20142 " guestfs_vgs_full (guestfs_h *g);\n"
20143 "\n"
20144 msgstr ""
20145
20146 # type: textblock
20147 #. type: textblock
20148 #: ../src/guestfs-actions.pod:7142 ../fish/guestfish-actions.pod:4803
20149 msgid ""
20150 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20151 "> command.  The \"full\" version includes all fields."
20152 msgstr ""
20153
20154 # type: textblock
20155 #. type: textblock
20156 #: ../src/guestfs-actions.pod:7145
20157 msgid ""
20158 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
20159 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
20160 msgstr ""
20161
20162 # type: =head2
20163 #. type: =head2
20164 #: ../src/guestfs-actions.pod:7151
20165 msgid "guestfs_vgscan"
20166 msgstr ""
20167
20168 # type: verbatim
20169 #. type: verbatim
20170 #: ../src/guestfs-actions.pod:7153
20171 #, no-wrap
20172 msgid ""
20173 " int\n"
20174 " guestfs_vgscan (guestfs_h *g);\n"
20175 "\n"
20176 msgstr ""
20177
20178 # type: textblock
20179 #. type: textblock
20180 #: ../src/guestfs-actions.pod:7156 ../fish/guestfish-actions.pod:4810
20181 msgid ""
20182 "This rescans all block devices and rebuilds the list of LVM physical "
20183 "volumes, volume groups and logical volumes."
20184 msgstr ""
20185
20186 # type: =head2
20187 #. type: =head2
20188 #: ../src/guestfs-actions.pod:7163
20189 msgid "guestfs_vguuid"
20190 msgstr ""
20191
20192 # type: verbatim
20193 #. type: verbatim
20194 #: ../src/guestfs-actions.pod:7165
20195 #, no-wrap
20196 msgid ""
20197 " char *\n"
20198 " guestfs_vguuid (guestfs_h *g,\n"
20199 "                 const char *vgname);\n"
20200 "\n"
20201 msgstr ""
20202
20203 # type: textblock
20204 #. type: textblock
20205 #: ../src/guestfs-actions.pod:7169 ../fish/guestfish-actions.pod:4817
20206 msgid "This command returns the UUID of the LVM VG named C<vgname>."
20207 msgstr ""
20208
20209 # type: =head2
20210 #. type: =head2
20211 #: ../src/guestfs-actions.pod:7176
20212 msgid "guestfs_wait_ready"
20213 msgstr ""
20214
20215 # type: verbatim
20216 #. type: verbatim
20217 #: ../src/guestfs-actions.pod:7178
20218 #, no-wrap
20219 msgid ""
20220 " int\n"
20221 " guestfs_wait_ready (guestfs_h *g);\n"
20222 "\n"
20223 msgstr ""
20224
20225 # type: textblock
20226 #. type: textblock
20227 #: ../src/guestfs-actions.pod:7181
20228 msgid "This function is a no op."
20229 msgstr ""
20230
20231 # type: textblock
20232 #. type: textblock
20233 #: ../src/guestfs-actions.pod:7183
20234 msgid ""
20235 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
20236 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
20237 "is no longer necessary because C<guestfs_launch> now does the waiting."
20238 msgstr ""
20239
20240 # type: textblock
20241 #. type: textblock
20242 #: ../src/guestfs-actions.pod:7188
20243 msgid ""
20244 "If you see any calls to this function in code then you can just remove them, "
20245 "unless you want to retain compatibility with older versions of the API."
20246 msgstr ""
20247
20248 # type: =head2
20249 #. type: =head2
20250 #: ../src/guestfs-actions.pod:7196
20251 msgid "guestfs_wc_c"
20252 msgstr ""
20253
20254 # type: verbatim
20255 #. type: verbatim
20256 #: ../src/guestfs-actions.pod:7198
20257 #, no-wrap
20258 msgid ""
20259 " int\n"
20260 " guestfs_wc_c (guestfs_h *g,\n"
20261 "               const char *path);\n"
20262 "\n"
20263 msgstr ""
20264
20265 # type: textblock
20266 #. type: textblock
20267 #: ../src/guestfs-actions.pod:7202 ../fish/guestfish-actions.pod:4823
20268 msgid ""
20269 "This command counts the characters in a file, using the C<wc -c> external "
20270 "command."
20271 msgstr ""
20272
20273 # type: =head2
20274 #. type: =head2
20275 #: ../src/guestfs-actions.pod:7209
20276 msgid "guestfs_wc_l"
20277 msgstr ""
20278
20279 # type: verbatim
20280 #. type: verbatim
20281 #: ../src/guestfs-actions.pod:7211
20282 #, no-wrap
20283 msgid ""
20284 " int\n"
20285 " guestfs_wc_l (guestfs_h *g,\n"
20286 "               const char *path);\n"
20287 "\n"
20288 msgstr ""
20289
20290 # type: textblock
20291 #. type: textblock
20292 #: ../src/guestfs-actions.pod:7215 ../fish/guestfish-actions.pod:4830
20293 msgid ""
20294 "This command counts the lines in a file, using the C<wc -l> external command."
20295 msgstr ""
20296
20297 # type: =head2
20298 #. type: =head2
20299 #: ../src/guestfs-actions.pod:7222
20300 msgid "guestfs_wc_w"
20301 msgstr ""
20302
20303 # type: verbatim
20304 #. type: verbatim
20305 #: ../src/guestfs-actions.pod:7224
20306 #, no-wrap
20307 msgid ""
20308 " int\n"
20309 " guestfs_wc_w (guestfs_h *g,\n"
20310 "               const char *path);\n"
20311 "\n"
20312 msgstr ""
20313
20314 # type: textblock
20315 #. type: textblock
20316 #: ../src/guestfs-actions.pod:7228 ../fish/guestfish-actions.pod:4837
20317 msgid ""
20318 "This command counts the words in a file, using the C<wc -w> external command."
20319 msgstr ""
20320
20321 # type: =head2
20322 #. type: =head2
20323 #: ../src/guestfs-actions.pod:7235
20324 msgid "guestfs_write"
20325 msgstr ""
20326
20327 # type: verbatim
20328 #. type: verbatim
20329 #: ../src/guestfs-actions.pod:7237
20330 #, no-wrap
20331 msgid ""
20332 " int\n"
20333 " guestfs_write (guestfs_h *g,\n"
20334 "                const char *path,\n"
20335 "                const char *content,\n"
20336 "                size_t content_size);\n"
20337 "\n"
20338 msgstr ""
20339
20340 # type: textblock
20341 #. type: textblock
20342 #: ../src/guestfs-actions.pod:7243 ../fish/guestfish-actions.pod:4844
20343 msgid ""
20344 "This call creates a file called C<path>.  The content of the file is the "
20345 "string C<content> (which can contain any 8 bit data)."
20346 msgstr ""
20347
20348 # type: =head2
20349 #. type: =head2
20350 #: ../src/guestfs-actions.pod:7253
20351 msgid "guestfs_write_file"
20352 msgstr ""
20353
20354 # type: verbatim
20355 #. type: verbatim
20356 #: ../src/guestfs-actions.pod:7255
20357 #, no-wrap
20358 msgid ""
20359 " int\n"
20360 " guestfs_write_file (guestfs_h *g,\n"
20361 "                     const char *path,\n"
20362 "                     const char *content,\n"
20363 "                     int size);\n"
20364 "\n"
20365 msgstr ""
20366
20367 # type: textblock
20368 #. type: textblock
20369 #: ../src/guestfs-actions.pod:7261 ../fish/guestfish-actions.pod:4854
20370 msgid ""
20371 "This call creates a file called C<path>.  The contents of the file is the "
20372 "string C<content> (which can contain any 8 bit data), with length C<size>."
20373 msgstr ""
20374
20375 # type: textblock
20376 #. type: textblock
20377 #: ../src/guestfs-actions.pod:7265 ../fish/guestfish-actions.pod:4858
20378 msgid ""
20379 "As a special case, if C<size> is C<0> then the length is calculated using "
20380 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20381 msgstr ""
20382
20383 # type: textblock
20384 #. type: textblock
20385 #: ../src/guestfs-actions.pod:7269 ../fish/guestfish-actions.pod:4862
20386 msgid ""
20387 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20388 "I<not> work, even if the length is specified."
20389 msgstr ""
20390
20391 # type: textblock
20392 #. type: textblock
20393 #: ../src/guestfs-actions.pod:7277 ../fish/guestfish-actions.pod:4868
20394 msgid ""
20395 "This function is deprecated.  In new code, use the C<write> call instead."
20396 msgstr ""
20397
20398 # type: =head2
20399 #. type: =head2
20400 #: ../src/guestfs-actions.pod:7286
20401 msgid "guestfs_zegrep"
20402 msgstr ""
20403
20404 # type: verbatim
20405 #. type: verbatim
20406 #: ../src/guestfs-actions.pod:7288
20407 #, no-wrap
20408 msgid ""
20409 " char **\n"
20410 " guestfs_zegrep (guestfs_h *g,\n"
20411 "                 const char *regex,\n"
20412 "                 const char *path);\n"
20413 "\n"
20414 msgstr ""
20415
20416 # type: textblock
20417 #. type: textblock
20418 #: ../src/guestfs-actions.pod:7293 ../fish/guestfish-actions.pod:4879
20419 msgid ""
20420 "This calls the external C<zegrep> program and returns the matching lines."
20421 msgstr ""
20422
20423 # type: =head2
20424 #. type: =head2
20425 #: ../src/guestfs-actions.pod:7305
20426 msgid "guestfs_zegrepi"
20427 msgstr ""
20428
20429 # type: verbatim
20430 #. type: verbatim
20431 #: ../src/guestfs-actions.pod:7307
20432 #, no-wrap
20433 msgid ""
20434 " char **\n"
20435 " guestfs_zegrepi (guestfs_h *g,\n"
20436 "                  const char *regex,\n"
20437 "                  const char *path);\n"
20438 "\n"
20439 msgstr ""
20440
20441 # type: textblock
20442 #. type: textblock
20443 #: ../src/guestfs-actions.pod:7312 ../fish/guestfish-actions.pod:4889
20444 msgid ""
20445 "This calls the external C<zegrep -i> program and returns the matching lines."
20446 msgstr ""
20447
20448 # type: =head2
20449 #. type: =head2
20450 #: ../src/guestfs-actions.pod:7324
20451 msgid "guestfs_zero"
20452 msgstr ""
20453
20454 # type: verbatim
20455 #. type: verbatim
20456 #: ../src/guestfs-actions.pod:7326
20457 #, no-wrap
20458 msgid ""
20459 " int\n"
20460 " guestfs_zero (guestfs_h *g,\n"
20461 "               const char *device);\n"
20462 "\n"
20463 msgstr ""
20464
20465 # type: textblock
20466 #. type: textblock
20467 #: ../src/guestfs-actions.pod:7330 ../fish/guestfish-actions.pod:4899
20468 msgid "This command writes zeroes over the first few blocks of C<device>."
20469 msgstr ""
20470
20471 # type: textblock
20472 #. type: textblock
20473 #: ../src/guestfs-actions.pod:7332 ../fish/guestfish-actions.pod:4901
20474 msgid ""
20475 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20476 "securely wipe the device).  It should be sufficient to remove any partition "
20477 "tables, filesystem superblocks and so on."
20478 msgstr ""
20479
20480 # type: textblock
20481 #. type: textblock
20482 #: ../src/guestfs-actions.pod:7336
20483 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
20484 msgstr ""
20485
20486 # type: =head2
20487 #. type: =head2
20488 #: ../src/guestfs-actions.pod:7347
20489 msgid "guestfs_zero_device"
20490 msgstr ""
20491
20492 # type: verbatim
20493 #. type: verbatim
20494 #: ../src/guestfs-actions.pod:7349
20495 #, no-wrap
20496 msgid ""
20497 " int\n"
20498 " guestfs_zero_device (guestfs_h *g,\n"
20499 "                      const char *device);\n"
20500 "\n"
20501 msgstr ""
20502
20503 # type: textblock
20504 #. type: textblock
20505 #: ../src/guestfs-actions.pod:7353
20506 msgid ""
20507 "This command writes zeroes over the entire C<device>.  Compare with "
20508 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20509 msgstr ""
20510
20511 # type: textblock
20512 #. type: textblock
20513 #: ../src/guestfs-actions.pod:7367
20514 msgid "(Added in 1.3.1)"
20515 msgstr ""
20516
20517 # type: =head2
20518 #. type: =head2
20519 #: ../src/guestfs-actions.pod:7369
20520 msgid "guestfs_zerofree"
20521 msgstr ""
20522
20523 # type: verbatim
20524 #. type: verbatim
20525 #: ../src/guestfs-actions.pod:7371
20526 #, no-wrap
20527 msgid ""
20528 " int\n"
20529 " guestfs_zerofree (guestfs_h *g,\n"
20530 "                   const char *device);\n"
20531 "\n"
20532 msgstr ""
20533
20534 # type: textblock
20535 #. type: textblock
20536 #: ../src/guestfs-actions.pod:7375 ../fish/guestfish-actions.pod:4922
20537 msgid ""
20538 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20539 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20540 "possible to compress the filesystem more effectively."
20541 msgstr ""
20542
20543 # type: textblock
20544 #. type: textblock
20545 #: ../src/guestfs-actions.pod:7380 ../fish/guestfish-actions.pod:4927
20546 msgid "You should B<not> run this program if the filesystem is mounted."
20547 msgstr ""
20548
20549 # type: textblock
20550 #. type: textblock
20551 #: ../src/guestfs-actions.pod:7383 ../fish/guestfish-actions.pod:4930
20552 msgid ""
20553 "It is possible that using this program can damage the filesystem or data on "
20554 "the filesystem."
20555 msgstr ""
20556
20557 # type: =head2
20558 #. type: =head2
20559 #: ../src/guestfs-actions.pod:7390
20560 msgid "guestfs_zfgrep"
20561 msgstr ""
20562
20563 # type: verbatim
20564 #. type: verbatim
20565 #: ../src/guestfs-actions.pod:7392
20566 #, no-wrap
20567 msgid ""
20568 " char **\n"
20569 " guestfs_zfgrep (guestfs_h *g,\n"
20570 "                 const char *pattern,\n"
20571 "                 const char *path);\n"
20572 "\n"
20573 msgstr ""
20574
20575 # type: textblock
20576 #. type: textblock
20577 #: ../src/guestfs-actions.pod:7397 ../fish/guestfish-actions.pod:4937
20578 msgid ""
20579 "This calls the external C<zfgrep> program and returns the matching lines."
20580 msgstr ""
20581
20582 # type: =head2
20583 #. type: =head2
20584 #: ../src/guestfs-actions.pod:7409
20585 msgid "guestfs_zfgrepi"
20586 msgstr ""
20587
20588 # type: verbatim
20589 #. type: verbatim
20590 #: ../src/guestfs-actions.pod:7411
20591 #, no-wrap
20592 msgid ""
20593 " char **\n"
20594 " guestfs_zfgrepi (guestfs_h *g,\n"
20595 "                  const char *pattern,\n"
20596 "                  const char *path);\n"
20597 "\n"
20598 msgstr ""
20599
20600 # type: textblock
20601 #. type: textblock
20602 #: ../src/guestfs-actions.pod:7416 ../fish/guestfish-actions.pod:4947
20603 msgid ""
20604 "This calls the external C<zfgrep -i> program and returns the matching lines."
20605 msgstr ""
20606
20607 # type: =head2
20608 #. type: =head2
20609 #: ../src/guestfs-actions.pod:7428
20610 msgid "guestfs_zfile"
20611 msgstr ""
20612
20613 # type: verbatim
20614 #. type: verbatim
20615 #: ../src/guestfs-actions.pod:7430
20616 #, no-wrap
20617 msgid ""
20618 " char *\n"
20619 " guestfs_zfile (guestfs_h *g,\n"
20620 "                const char *meth,\n"
20621 "                const char *path);\n"
20622 "\n"
20623 msgstr ""
20624
20625 # type: textblock
20626 #. type: textblock
20627 #: ../src/guestfs-actions.pod:7435 ../fish/guestfish-actions.pod:4957
20628 msgid ""
20629 "This command runs C<file> after first decompressing C<path> using C<method>."
20630 msgstr ""
20631
20632 # type: textblock
20633 #. type: textblock
20634 #: ../src/guestfs-actions.pod:7438 ../fish/guestfish-actions.pod:4960
20635 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
20636 msgstr ""
20637
20638 # type: textblock
20639 #. type: textblock
20640 #: ../src/guestfs-actions.pod:7440
20641 msgid ""
20642 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
20643 "files."
20644 msgstr ""
20645
20646 # type: textblock
20647 #. type: textblock
20648 #: ../src/guestfs-actions.pod:7446 ../fish/guestfish-actions.pod:4965
20649 msgid ""
20650 "This function is deprecated.  In new code, use the C<file> call instead."
20651 msgstr ""
20652
20653 # type: =head2
20654 #. type: =head2
20655 #: ../src/guestfs-actions.pod:7455
20656 msgid "guestfs_zgrep"
20657 msgstr ""
20658
20659 # type: verbatim
20660 #. type: verbatim
20661 #: ../src/guestfs-actions.pod:7457
20662 #, no-wrap
20663 msgid ""
20664 " char **\n"
20665 " guestfs_zgrep (guestfs_h *g,\n"
20666 "                const char *regex,\n"
20667 "                const char *path);\n"
20668 "\n"
20669 msgstr ""
20670
20671 # type: textblock
20672 #. type: textblock
20673 #: ../src/guestfs-actions.pod:7462 ../fish/guestfish-actions.pod:4976
20674 msgid ""
20675 "This calls the external C<zgrep> program and returns the matching lines."
20676 msgstr ""
20677
20678 # type: =head2
20679 #. type: =head2
20680 #: ../src/guestfs-actions.pod:7474
20681 msgid "guestfs_zgrepi"
20682 msgstr ""
20683
20684 # type: verbatim
20685 #. type: verbatim
20686 #: ../src/guestfs-actions.pod:7476
20687 #, no-wrap
20688 msgid ""
20689 " char **\n"
20690 " guestfs_zgrepi (guestfs_h *g,\n"
20691 "                 const char *regex,\n"
20692 "                 const char *path);\n"
20693 "\n"
20694 msgstr ""
20695
20696 # type: textblock
20697 #. type: textblock
20698 #: ../src/guestfs-actions.pod:7481 ../fish/guestfish-actions.pod:4986
20699 msgid ""
20700 "This calls the external C<zgrep -i> program and returns the matching lines."
20701 msgstr ""
20702
20703 # type: =item
20704 #. type: =item
20705 #: ../src/guestfs-availability.pod:3
20706 msgid "B<augeas>"
20707 msgstr ""
20708
20709 # type: textblock
20710 #. type: textblock
20711 #: ../src/guestfs-availability.pod:5
20712 msgid ""
20713 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
20714 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
20715 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
20716 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
20717 "L</guestfs_aug_save> L</guestfs_aug_set>"
20718 msgstr ""
20719
20720 # type: =item
20721 #. type: =item
20722 #: ../src/guestfs-availability.pod:21
20723 msgid "B<inotify>"
20724 msgstr ""
20725
20726 # type: textblock
20727 #. type: textblock
20728 #: ../src/guestfs-availability.pod:23
20729 msgid ""
20730 "The following functions: L</guestfs_inotify_add_watch> L</"
20731 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
20732 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
20733 msgstr ""
20734
20735 # type: =item
20736 #. type: =item
20737 #: ../src/guestfs-availability.pod:31
20738 msgid "B<linuxfsuuid>"
20739 msgstr ""
20740
20741 # type: textblock
20742 #. type: textblock
20743 #: ../src/guestfs-availability.pod:33
20744 msgid ""
20745 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
20746 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
20747 msgstr ""
20748
20749 # type: =item
20750 #. type: =item
20751 #: ../src/guestfs-availability.pod:40
20752 msgid "B<linuxmodules>"
20753 msgstr ""
20754
20755 # type: textblock
20756 #. type: textblock
20757 #: ../src/guestfs-availability.pod:42
20758 msgid "The following functions: L</guestfs_modprobe>"
20759 msgstr ""
20760
20761 # type: =item
20762 #. type: =item
20763 #: ../src/guestfs-availability.pod:45
20764 msgid "B<linuxxattrs>"
20765 msgstr ""
20766
20767 # type: textblock
20768 #. type: textblock
20769 #: ../src/guestfs-availability.pod:47
20770 msgid ""
20771 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
20772 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
20773 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
20774 "guestfs_setxattr>"
20775 msgstr ""
20776
20777 # type: =item
20778 #. type: =item
20779 #: ../src/guestfs-availability.pod:58
20780 msgid "B<luks>"
20781 msgstr ""
20782
20783 # type: textblock
20784 #. type: textblock
20785 #: ../src/guestfs-availability.pod:60
20786 msgid ""
20787 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
20788 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
20789 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
20790 msgstr ""
20791
20792 # type: =item
20793 #. type: =item
20794 #: ../src/guestfs-availability.pod:69
20795 msgid "B<lvm2>"
20796 msgstr ""
20797
20798 # type: textblock
20799 #. type: textblock
20800 #: ../src/guestfs-availability.pod:71
20801 msgid ""
20802 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
20803 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
20804 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
20805 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
20806 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
20807 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
20808 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
20809 msgstr ""
20810
20811 # type: =item
20812 #. type: =item
20813 #: ../src/guestfs-availability.pod:94
20814 msgid "B<mknod>"
20815 msgstr ""
20816
20817 # type: textblock
20818 #. type: textblock
20819 #: ../src/guestfs-availability.pod:96
20820 msgid ""
20821 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
20822 "guestfs_mknod_b> L</guestfs_mknod_c>"
20823 msgstr ""
20824
20825 # type: =item
20826 #. type: =item
20827 #: ../src/guestfs-availability.pod:102
20828 msgid "B<ntfs3g>"
20829 msgstr ""
20830
20831 # type: textblock
20832 #. type: textblock
20833 #: ../src/guestfs-availability.pod:104
20834 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20835 msgstr ""
20836
20837 # type: =item
20838 #. type: =item
20839 #: ../src/guestfs-availability.pod:107
20840 msgid "B<ntfsprogs>"
20841 msgstr ""
20842
20843 # type: textblock
20844 #. type: textblock
20845 #: ../src/guestfs-availability.pod:109
20846 msgid ""
20847 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
20848 msgstr ""
20849
20850 # type: =item
20851 #. type: =item
20852 #: ../src/guestfs-availability.pod:113
20853 msgid "B<realpath>"
20854 msgstr ""
20855
20856 # type: textblock
20857 #. type: textblock
20858 #: ../src/guestfs-availability.pod:115
20859 msgid "The following functions: L</guestfs_realpath>"
20860 msgstr ""
20861
20862 # type: =item
20863 #. type: =item
20864 #: ../src/guestfs-availability.pod:118
20865 msgid "B<scrub>"
20866 msgstr ""
20867
20868 # type: textblock
20869 #. type: textblock
20870 #: ../src/guestfs-availability.pod:120
20871 msgid ""
20872 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
20873 "guestfs_scrub_freespace>"
20874 msgstr ""
20875
20876 # type: =item
20877 #. type: =item
20878 #: ../src/guestfs-availability.pod:125
20879 msgid "B<selinux>"
20880 msgstr ""
20881
20882 # type: textblock
20883 #. type: textblock
20884 #: ../src/guestfs-availability.pod:127
20885 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20886 msgstr ""
20887
20888 # type: =item
20889 #. type: =item
20890 #: ../src/guestfs-availability.pod:131
20891 msgid "B<xz>"
20892 msgstr ""
20893
20894 # type: textblock
20895 #. type: textblock
20896 #: ../src/guestfs-availability.pod:133
20897 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20898 msgstr ""
20899
20900 # type: =item
20901 #. type: =item
20902 #: ../src/guestfs-availability.pod:137
20903 msgid "B<zerofree>"
20904 msgstr ""
20905
20906 # type: textblock
20907 #. type: textblock
20908 #: ../src/guestfs-availability.pod:139
20909 msgid "The following functions: L</guestfs_zerofree>"
20910 msgstr ""
20911
20912 # type: =head2
20913 #. type: =head2
20914 #: ../src/guestfs-structs.pod:1
20915 msgid "guestfs_int_bool"
20916 msgstr ""
20917
20918 # type: verbatim
20919 #. type: verbatim
20920 #: ../src/guestfs-structs.pod:3
20921 #, no-wrap
20922 msgid ""
20923 " struct guestfs_int_bool {\n"
20924 "   int32_t i;\n"
20925 "   int32_t b;\n"
20926 " };\n"
20927 " \n"
20928 msgstr ""
20929
20930 # type: verbatim
20931 #. type: verbatim
20932 #: ../src/guestfs-structs.pod:8
20933 #, no-wrap
20934 msgid ""
20935 " struct guestfs_int_bool_list {\n"
20936 "   uint32_t len; /* Number of elements in list. */\n"
20937 "   struct guestfs_int_bool *val; /* Elements. */\n"
20938 " };\n"
20939 " \n"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #. type: verbatim
20944 #: ../src/guestfs-structs.pod:13
20945 #, no-wrap
20946 msgid ""
20947 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
20948 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: =head2
20953 #. type: =head2
20954 #: ../src/guestfs-structs.pod:16
20955 msgid "guestfs_lvm_pv"
20956 msgstr ""
20957
20958 # type: verbatim
20959 #. type: verbatim
20960 #: ../src/guestfs-structs.pod:18
20961 #, no-wrap
20962 msgid ""
20963 " struct guestfs_lvm_pv {\n"
20964 "   char *pv_name;\n"
20965 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20966 "   char pv_uuid[32];\n"
20967 "   char *pv_fmt;\n"
20968 "   uint64_t pv_size;\n"
20969 "   uint64_t dev_size;\n"
20970 "   uint64_t pv_free;\n"
20971 "   uint64_t pv_used;\n"
20972 "   char *pv_attr;\n"
20973 "   int64_t pv_pe_count;\n"
20974 "   int64_t pv_pe_alloc_count;\n"
20975 "   char *pv_tags;\n"
20976 "   uint64_t pe_start;\n"
20977 "   int64_t pv_mda_count;\n"
20978 "   uint64_t pv_mda_free;\n"
20979 " };\n"
20980 " \n"
20981 msgstr ""
20982
20983 # type: verbatim
20984 #. type: verbatim
20985 #: ../src/guestfs-structs.pod:36
20986 #, no-wrap
20987 msgid ""
20988 " struct guestfs_lvm_pv_list {\n"
20989 "   uint32_t len; /* Number of elements in list. */\n"
20990 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20991 " };\n"
20992 " \n"
20993 msgstr ""
20994
20995 # type: verbatim
20996 #. type: verbatim
20997 #: ../src/guestfs-structs.pod:41
20998 #, no-wrap
20999 msgid ""
21000 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
21001 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
21002 "\n"
21003 msgstr ""
21004
21005 # type: =head2
21006 #. type: =head2
21007 #: ../src/guestfs-structs.pod:44
21008 msgid "guestfs_lvm_vg"
21009 msgstr ""
21010
21011 # type: verbatim
21012 #. type: verbatim
21013 #: ../src/guestfs-structs.pod:46
21014 #, no-wrap
21015 msgid ""
21016 " struct guestfs_lvm_vg {\n"
21017 "   char *vg_name;\n"
21018 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21019 "   char vg_uuid[32];\n"
21020 "   char *vg_fmt;\n"
21021 "   char *vg_attr;\n"
21022 "   uint64_t vg_size;\n"
21023 "   uint64_t vg_free;\n"
21024 "   char *vg_sysid;\n"
21025 "   uint64_t vg_extent_size;\n"
21026 "   int64_t vg_extent_count;\n"
21027 "   int64_t vg_free_count;\n"
21028 "   int64_t max_lv;\n"
21029 "   int64_t max_pv;\n"
21030 "   int64_t pv_count;\n"
21031 "   int64_t lv_count;\n"
21032 "   int64_t snap_count;\n"
21033 "   int64_t vg_seqno;\n"
21034 "   char *vg_tags;\n"
21035 "   int64_t vg_mda_count;\n"
21036 "   uint64_t vg_mda_free;\n"
21037 " };\n"
21038 " \n"
21039 msgstr ""
21040
21041 # type: verbatim
21042 #. type: verbatim
21043 #: ../src/guestfs-structs.pod:69
21044 #, no-wrap
21045 msgid ""
21046 " struct guestfs_lvm_vg_list {\n"
21047 "   uint32_t len; /* Number of elements in list. */\n"
21048 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
21049 " };\n"
21050 " \n"
21051 msgstr ""
21052
21053 # type: verbatim
21054 #. type: verbatim
21055 #: ../src/guestfs-structs.pod:74
21056 #, no-wrap
21057 msgid ""
21058 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
21059 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
21060 "\n"
21061 msgstr ""
21062
21063 # type: =head2
21064 #. type: =head2
21065 #: ../src/guestfs-structs.pod:77
21066 msgid "guestfs_lvm_lv"
21067 msgstr ""
21068
21069 # type: verbatim
21070 #. type: verbatim
21071 #: ../src/guestfs-structs.pod:79
21072 #, no-wrap
21073 msgid ""
21074 " struct guestfs_lvm_lv {\n"
21075 "   char *lv_name;\n"
21076 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21077 "   char lv_uuid[32];\n"
21078 "   char *lv_attr;\n"
21079 "   int64_t lv_major;\n"
21080 "   int64_t lv_minor;\n"
21081 "   int64_t lv_kernel_major;\n"
21082 "   int64_t lv_kernel_minor;\n"
21083 "   uint64_t lv_size;\n"
21084 "   int64_t seg_count;\n"
21085 "   char *origin;\n"
21086 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21087 "   float snap_percent;\n"
21088 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21089 "   float copy_percent;\n"
21090 "   char *move_pv;\n"
21091 "   char *lv_tags;\n"
21092 "   char *mirror_log;\n"
21093 "   char *modules;\n"
21094 " };\n"
21095 " \n"
21096 msgstr ""
21097
21098 # type: verbatim
21099 #. type: verbatim
21100 #: ../src/guestfs-structs.pod:101
21101 #, no-wrap
21102 msgid ""
21103 " struct guestfs_lvm_lv_list {\n"
21104 "   uint32_t len; /* Number of elements in list. */\n"
21105 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
21106 " };\n"
21107 " \n"
21108 msgstr ""
21109
21110 # type: verbatim
21111 #. type: verbatim
21112 #: ../src/guestfs-structs.pod:106
21113 #, no-wrap
21114 msgid ""
21115 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
21116 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
21117 "\n"
21118 msgstr ""
21119
21120 # type: verbatim
21121 #. type: verbatim
21122 #: ../src/guestfs-structs.pod:111
21123 #, no-wrap
21124 msgid ""
21125 " struct guestfs_stat {\n"
21126 "   int64_t dev;\n"
21127 "   int64_t ino;\n"
21128 "   int64_t mode;\n"
21129 "   int64_t nlink;\n"
21130 "   int64_t uid;\n"
21131 "   int64_t gid;\n"
21132 "   int64_t rdev;\n"
21133 "   int64_t size;\n"
21134 "   int64_t blksize;\n"
21135 "   int64_t blocks;\n"
21136 "   int64_t atime;\n"
21137 "   int64_t mtime;\n"
21138 "   int64_t ctime;\n"
21139 " };\n"
21140 " \n"
21141 msgstr ""
21142
21143 # type: verbatim
21144 #. type: verbatim
21145 #: ../src/guestfs-structs.pod:127
21146 #, no-wrap
21147 msgid ""
21148 " struct guestfs_stat_list {\n"
21149 "   uint32_t len; /* Number of elements in list. */\n"
21150 "   struct guestfs_stat *val; /* Elements. */\n"
21151 " };\n"
21152 " \n"
21153 msgstr ""
21154
21155 # type: verbatim
21156 #. type: verbatim
21157 #: ../src/guestfs-structs.pod:132
21158 #, no-wrap
21159 msgid ""
21160 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
21161 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
21162 "\n"
21163 msgstr ""
21164
21165 # type: verbatim
21166 #. type: verbatim
21167 #: ../src/guestfs-structs.pod:137
21168 #, no-wrap
21169 msgid ""
21170 " struct guestfs_statvfs {\n"
21171 "   int64_t bsize;\n"
21172 "   int64_t frsize;\n"
21173 "   int64_t blocks;\n"
21174 "   int64_t bfree;\n"
21175 "   int64_t bavail;\n"
21176 "   int64_t files;\n"
21177 "   int64_t ffree;\n"
21178 "   int64_t favail;\n"
21179 "   int64_t fsid;\n"
21180 "   int64_t flag;\n"
21181 "   int64_t namemax;\n"
21182 " };\n"
21183 " \n"
21184 msgstr ""
21185
21186 # type: verbatim
21187 #. type: verbatim
21188 #: ../src/guestfs-structs.pod:151
21189 #, no-wrap
21190 msgid ""
21191 " struct guestfs_statvfs_list {\n"
21192 "   uint32_t len; /* Number of elements in list. */\n"
21193 "   struct guestfs_statvfs *val; /* Elements. */\n"
21194 " };\n"
21195 " \n"
21196 msgstr ""
21197
21198 # type: verbatim
21199 #. type: verbatim
21200 #: ../src/guestfs-structs.pod:156
21201 #, no-wrap
21202 msgid ""
21203 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
21204 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
21205 "\n"
21206 msgstr ""
21207
21208 # type: =head2
21209 #. type: =head2
21210 #: ../src/guestfs-structs.pod:159
21211 msgid "guestfs_dirent"
21212 msgstr ""
21213
21214 # type: verbatim
21215 #. type: verbatim
21216 #: ../src/guestfs-structs.pod:161
21217 #, no-wrap
21218 msgid ""
21219 " struct guestfs_dirent {\n"
21220 "   int64_t ino;\n"
21221 "   char ftyp;\n"
21222 "   char *name;\n"
21223 " };\n"
21224 " \n"
21225 msgstr ""
21226
21227 # type: verbatim
21228 #. type: verbatim
21229 #: ../src/guestfs-structs.pod:167
21230 #, no-wrap
21231 msgid ""
21232 " struct guestfs_dirent_list {\n"
21233 "   uint32_t len; /* Number of elements in list. */\n"
21234 "   struct guestfs_dirent *val; /* Elements. */\n"
21235 " };\n"
21236 " \n"
21237 msgstr ""
21238
21239 # type: verbatim
21240 #. type: verbatim
21241 #: ../src/guestfs-structs.pod:172
21242 #, no-wrap
21243 msgid ""
21244 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
21245 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
21246 "\n"
21247 msgstr ""
21248
21249 # type: verbatim
21250 #. type: verbatim
21251 #: ../src/guestfs-structs.pod:177
21252 #, no-wrap
21253 msgid ""
21254 " struct guestfs_version {\n"
21255 "   int64_t major;\n"
21256 "   int64_t minor;\n"
21257 "   int64_t release;\n"
21258 "   char *extra;\n"
21259 " };\n"
21260 " \n"
21261 msgstr ""
21262
21263 # type: verbatim
21264 #. type: verbatim
21265 #: ../src/guestfs-structs.pod:184
21266 #, no-wrap
21267 msgid ""
21268 " struct guestfs_version_list {\n"
21269 "   uint32_t len; /* Number of elements in list. */\n"
21270 "   struct guestfs_version *val; /* Elements. */\n"
21271 " };\n"
21272 " \n"
21273 msgstr ""
21274
21275 # type: verbatim
21276 #. type: verbatim
21277 #: ../src/guestfs-structs.pod:189
21278 #, no-wrap
21279 msgid ""
21280 " void guestfs_free_version (struct guestfs_free_version *);\n"
21281 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
21282 "\n"
21283 msgstr ""
21284
21285 # type: =head2
21286 #. type: =head2
21287 #: ../src/guestfs-structs.pod:192
21288 msgid "guestfs_xattr"
21289 msgstr ""
21290
21291 # type: verbatim
21292 #. type: verbatim
21293 #: ../src/guestfs-structs.pod:194
21294 #, no-wrap
21295 msgid ""
21296 " struct guestfs_xattr {\n"
21297 "   char *attrname;\n"
21298 "   /* The next two fields describe a byte array. */\n"
21299 "   uint32_t attrval_len;\n"
21300 "   char *attrval;\n"
21301 " };\n"
21302 " \n"
21303 msgstr ""
21304
21305 # type: verbatim
21306 #. type: verbatim
21307 #: ../src/guestfs-structs.pod:201
21308 #, no-wrap
21309 msgid ""
21310 " struct guestfs_xattr_list {\n"
21311 "   uint32_t len; /* Number of elements in list. */\n"
21312 "   struct guestfs_xattr *val; /* Elements. */\n"
21313 " };\n"
21314 " \n"
21315 msgstr ""
21316
21317 # type: verbatim
21318 #. type: verbatim
21319 #: ../src/guestfs-structs.pod:206
21320 #, no-wrap
21321 msgid ""
21322 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
21323 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
21324 "\n"
21325 msgstr ""
21326
21327 # type: =head2
21328 #. type: =head2
21329 #: ../src/guestfs-structs.pod:209
21330 msgid "guestfs_inotify_event"
21331 msgstr ""
21332
21333 # type: verbatim
21334 #. type: verbatim
21335 #: ../src/guestfs-structs.pod:211
21336 #, no-wrap
21337 msgid ""
21338 " struct guestfs_inotify_event {\n"
21339 "   int64_t in_wd;\n"
21340 "   uint32_t in_mask;\n"
21341 "   uint32_t in_cookie;\n"
21342 "   char *in_name;\n"
21343 " };\n"
21344 " \n"
21345 msgstr ""
21346
21347 # type: verbatim
21348 #. type: verbatim
21349 #: ../src/guestfs-structs.pod:218
21350 #, no-wrap
21351 msgid ""
21352 " struct guestfs_inotify_event_list {\n"
21353 "   uint32_t len; /* Number of elements in list. */\n"
21354 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21355 " };\n"
21356 " \n"
21357 msgstr ""
21358
21359 # type: verbatim
21360 #. type: verbatim
21361 #: ../src/guestfs-structs.pod:223
21362 #, no-wrap
21363 msgid ""
21364 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21365 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21366 "\n"
21367 msgstr ""
21368
21369 # type: =head2
21370 #. type: =head2
21371 #: ../src/guestfs-structs.pod:226
21372 msgid "guestfs_partition"
21373 msgstr ""
21374
21375 # type: verbatim
21376 #. type: verbatim
21377 #: ../src/guestfs-structs.pod:228
21378 #, no-wrap
21379 msgid ""
21380 " struct guestfs_partition {\n"
21381 "   int32_t part_num;\n"
21382 "   uint64_t part_start;\n"
21383 "   uint64_t part_end;\n"
21384 "   uint64_t part_size;\n"
21385 " };\n"
21386 " \n"
21387 msgstr ""
21388
21389 # type: verbatim
21390 #. type: verbatim
21391 #: ../src/guestfs-structs.pod:235
21392 #, no-wrap
21393 msgid ""
21394 " struct guestfs_partition_list {\n"
21395 "   uint32_t len; /* Number of elements in list. */\n"
21396 "   struct guestfs_partition *val; /* Elements. */\n"
21397 " };\n"
21398 " \n"
21399 msgstr ""
21400
21401 # type: verbatim
21402 #. type: verbatim
21403 #: ../src/guestfs-structs.pod:240
21404 #, no-wrap
21405 msgid ""
21406 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21407 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21408 "\n"
21409 msgstr ""
21410
21411 # type: =head2
21412 #. type: =head2
21413 #: ../src/guestfs-structs.pod:243
21414 msgid "guestfs_application"
21415 msgstr ""
21416
21417 # type: verbatim
21418 #. type: verbatim
21419 #: ../src/guestfs-structs.pod:245
21420 #, no-wrap
21421 msgid ""
21422 " struct guestfs_application {\n"
21423 "   char *app_name;\n"
21424 "   char *app_display_name;\n"
21425 "   int32_t app_epoch;\n"
21426 "   char *app_version;\n"
21427 "   char *app_release;\n"
21428 "   char *app_install_path;\n"
21429 "   char *app_trans_path;\n"
21430 "   char *app_publisher;\n"
21431 "   char *app_url;\n"
21432 "   char *app_source_package;\n"
21433 "   char *app_summary;\n"
21434 "   char *app_description;\n"
21435 " };\n"
21436 " \n"
21437 msgstr ""
21438
21439 # type: verbatim
21440 #. type: verbatim
21441 #: ../src/guestfs-structs.pod:260
21442 #, no-wrap
21443 msgid ""
21444 " struct guestfs_application_list {\n"
21445 "   uint32_t len; /* Number of elements in list. */\n"
21446 "   struct guestfs_application *val; /* Elements. */\n"
21447 " };\n"
21448 " \n"
21449 msgstr ""
21450
21451 # type: verbatim
21452 #. type: verbatim
21453 #: ../src/guestfs-structs.pod:265
21454 #, no-wrap
21455 msgid ""
21456 " void guestfs_free_application (struct guestfs_free_application *);\n"
21457 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21458 "\n"
21459 msgstr ""
21460
21461 # type: textblock
21462 #. type: textblock
21463 #: ../fish/guestfish.pod:5
21464 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21465 msgstr ""
21466
21467 # type: verbatim
21468 #. type: verbatim
21469 #: ../fish/guestfish.pod:9
21470 #, no-wrap
21471 msgid ""
21472 " guestfish [--options] [commands]\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: verbatim
21477 #. type: verbatim
21478 #: ../fish/guestfish.pod:11
21479 #, no-wrap
21480 msgid ""
21481 " guestfish\n"
21482 "\n"
21483 msgstr ""
21484
21485 # type: verbatim
21486 #. type: verbatim
21487 #: ../fish/guestfish.pod:13
21488 #, no-wrap
21489 msgid ""
21490 " guestfish [--ro|--rw] -a disk.img\n"
21491 "\n"
21492 msgstr ""
21493
21494 # type: verbatim
21495 #. type: verbatim
21496 #: ../fish/guestfish.pod:15
21497 #, no-wrap
21498 msgid ""
21499 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21500 "\n"
21501 msgstr ""
21502
21503 # type: verbatim
21504 #. type: verbatim
21505 #: ../fish/guestfish.pod:17
21506 #, no-wrap
21507 msgid ""
21508 " guestfish -d libvirt-domain\n"
21509 "\n"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #. type: verbatim
21514 #: ../fish/guestfish.pod:19
21515 #, no-wrap
21516 msgid ""
21517 " guestfish [--ro|--rw] -a disk.img -i\n"
21518 "\n"
21519 msgstr ""
21520
21521 # type: verbatim
21522 #. type: verbatim
21523 #: ../fish/guestfish.pod:21
21524 #, no-wrap
21525 msgid ""
21526 " guestfish -d libvirt-domain -i\n"
21527 "\n"
21528 msgstr ""
21529
21530 # type: =head1
21531 #. type: =head1
21532 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
21533 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21534 msgid "WARNING"
21535 msgstr ""
21536
21537 # type: textblock
21538 #. type: textblock
21539 #: ../fish/guestfish.pod:25
21540 msgid ""
21541 "Using guestfish in read/write mode on live virtual machines can be "
21542 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21543 "option to use guestfish safely if the disk image or virtual machine might be "
21544 "live."
21545 msgstr ""
21546
21547 # type: textblock
21548 #. type: textblock
21549 #: ../fish/guestfish.pod:32
21550 msgid ""
21551 "Guestfish is a shell and command-line tool for examining and modifying "
21552 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21553 "functionality of the guestfs API, see L<guestfs(3)>."
21554 msgstr ""
21555
21556 # type: textblock
21557 #. type: textblock
21558 #: ../fish/guestfish.pod:36
21559 msgid ""
21560 "Guestfish gives you structured access to the libguestfs API, from shell "
21561 "scripts or the command line or interactively.  If you want to rescue a "
21562 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21563 "command."
21564 msgstr ""
21565
21566 # type: =head1
21567 #. type: =head1
21568 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:949
21569 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
21570 msgid "EXAMPLES"
21571 msgstr ""
21572
21573 # type: =head2
21574 #. type: =head2
21575 #: ../fish/guestfish.pod:43
21576 msgid "As an interactive shell"
21577 msgstr ""
21578
21579 # type: verbatim
21580 #. type: verbatim
21581 #: ../fish/guestfish.pod:45
21582 #, no-wrap
21583 msgid ""
21584 " $ guestfish\n"
21585 " \n"
21586 msgstr ""
21587
21588 # type: verbatim
21589 #. type: verbatim
21590 #: ../fish/guestfish.pod:47
21591 #, no-wrap
21592 msgid ""
21593 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21594 " editing virtual machine filesystems.\n"
21595 " \n"
21596 msgstr ""
21597
21598 # type: verbatim
21599 #. type: verbatim
21600 #: ../fish/guestfish.pod:50
21601 #, no-wrap
21602 msgid ""
21603 " Type: 'help' for a list of commands\n"
21604 "       'man' to read the manual\n"
21605 "       'quit' to quit the shell\n"
21606 " \n"
21607 msgstr ""
21608
21609 # type: verbatim
21610 #. type: verbatim
21611 #: ../fish/guestfish.pod:54
21612 #, no-wrap
21613 msgid ""
21614 " ><fs> add-ro disk.img\n"
21615 " ><fs> run\n"
21616 " ><fs> list-filesystems\n"
21617 " /dev/sda1: ext4\n"
21618 " /dev/vg_guest/lv_root: ext4\n"
21619 " /dev/vg_guest/lv_swap: swap\n"
21620 " ><fs> mount /dev/vg_guest/lv_root /\n"
21621 " ><fs> cat /etc/fstab\n"
21622 " # /etc/fstab\n"
21623 " # Created by anaconda\n"
21624 " [...]\n"
21625 " ><fs> exit\n"
21626 "\n"
21627 msgstr ""
21628
21629 # type: =head2
21630 #. type: =head2
21631 #: ../fish/guestfish.pod:67
21632 msgid "From shell scripts"
21633 msgstr ""
21634
21635 # type: textblock
21636 #. type: textblock
21637 #: ../fish/guestfish.pod:69
21638 msgid "Create a new C</etc/motd> file in a guest or disk image:"
21639 msgstr ""
21640
21641 # type: verbatim
21642 #. type: verbatim
21643 #: ../fish/guestfish.pod:71
21644 #, no-wrap
21645 msgid ""
21646 " guestfish <<_EOF_\n"
21647 " add disk.img\n"
21648 " run\n"
21649 " mount /dev/vg_guest/lv_root /\n"
21650 " write /etc/motd \"Welcome, new users\"\n"
21651 " _EOF_\n"
21652 "\n"
21653 msgstr ""
21654
21655 # type: textblock
21656 #. type: textblock
21657 #: ../fish/guestfish.pod:78
21658 msgid "List the LVM logical volumes in a disk image:"
21659 msgstr ""
21660
21661 # type: verbatim
21662 #. type: verbatim
21663 #: ../fish/guestfish.pod:80
21664 #, no-wrap
21665 msgid ""
21666 " guestfish -a disk.img --ro <<_EOF_\n"
21667 " run\n"
21668 " lvs\n"
21669 " _EOF_\n"
21670 "\n"
21671 msgstr ""
21672
21673 # type: textblock
21674 #. type: textblock
21675 #: ../fish/guestfish.pod:85
21676 msgid "List all the filesystems in a disk image:"
21677 msgstr ""
21678
21679 # type: verbatim
21680 #. type: verbatim
21681 #: ../fish/guestfish.pod:87
21682 #, no-wrap
21683 msgid ""
21684 " guestfish -a disk.img --ro <<_EOF_\n"
21685 " run\n"
21686 " list-filesystems\n"
21687 " _EOF_\n"
21688 "\n"
21689 msgstr ""
21690
21691 # type: =head2
21692 #. type: =head2
21693 #: ../fish/guestfish.pod:92
21694 msgid "On one command line"
21695 msgstr ""
21696
21697 # type: textblock
21698 #. type: textblock
21699 #: ../fish/guestfish.pod:94
21700 msgid "Update C</etc/resolv.conf> in a guest:"
21701 msgstr ""
21702
21703 # type: verbatim
21704 #. type: verbatim
21705 #: ../fish/guestfish.pod:96
21706 #, no-wrap
21707 msgid ""
21708 " guestfish \\\n"
21709 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
21710 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
21711 "\n"
21712 msgstr ""
21713
21714 # type: textblock
21715 #. type: textblock
21716 #: ../fish/guestfish.pod:100
21717 msgid "Edit C</boot/grub/grub.conf> interactively:"
21718 msgstr ""
21719
21720 # type: verbatim
21721 #. type: verbatim
21722 #: ../fish/guestfish.pod:102
21723 #, no-wrap
21724 msgid ""
21725 " guestfish --rw --add disk.img \\\n"
21726 "   --mount /dev/vg_guest/lv_root \\\n"
21727 "   --mount /dev/sda1:/boot \\\n"
21728 "   edit /boot/grub/grub.conf\n"
21729 "\n"
21730 msgstr ""
21731
21732 # type: =head2
21733 #. type: =head2
21734 #: ../fish/guestfish.pod:107
21735 msgid "Mount disks automatically"
21736 msgstr ""
21737
21738 # type: textblock
21739 #. type: textblock
21740 #: ../fish/guestfish.pod:109
21741 msgid ""
21742 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
21743 msgstr ""
21744
21745 # type: verbatim
21746 #. type: verbatim
21747 #: ../fish/guestfish.pod:112
21748 #, no-wrap
21749 msgid ""
21750 " guestfish --ro -a disk.img -i cat /etc/group\n"
21751 "\n"
21752 msgstr ""
21753
21754 # type: verbatim
21755 #. type: verbatim
21756 #: ../fish/guestfish.pod:114
21757 #, no-wrap
21758 msgid ""
21759 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
21760 "\n"
21761 msgstr ""
21762
21763 # type: textblock
21764 #. type: textblock
21765 #: ../fish/guestfish.pod:116
21766 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
21767 msgstr ""
21768
21769 # type: verbatim
21770 #. type: verbatim
21771 #: ../fish/guestfish.pod:118
21772 #, no-wrap
21773 msgid ""
21774 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
21775 "\n"
21776 msgstr ""
21777
21778 # type: =head2
21779 #. type: =head2
21780 #: ../fish/guestfish.pod:120
21781 msgid "As a script interpreter"
21782 msgstr ""
21783
21784 # type: textblock
21785 #. type: textblock
21786 #: ../fish/guestfish.pod:122
21787 msgid "Create a 100MB disk containing an ext2-formatted partition:"
21788 msgstr ""
21789
21790 # type: verbatim
21791 #. type: verbatim
21792 #: ../fish/guestfish.pod:124
21793 #, no-wrap
21794 msgid ""
21795 " #!/usr/bin/guestfish -f\n"
21796 " sparse test1.img 100M\n"
21797 " run\n"
21798 " part-disk /dev/sda mbr\n"
21799 " mkfs ext2 /dev/sda1\n"
21800 "\n"
21801 msgstr ""
21802
21803 # type: =head2
21804 #. type: =head2
21805 #: ../fish/guestfish.pod:130
21806 msgid "Start with a prepared disk"
21807 msgstr ""
21808
21809 # type: textblock
21810 #. type: textblock
21811 #: ../fish/guestfish.pod:132
21812 msgid ""
21813 "An alternate way to create a 100MB disk called C<test1.img> containing a "
21814 "single ext2-formatted partition:"
21815 msgstr ""
21816
21817 # type: verbatim
21818 #. type: verbatim
21819 #: ../fish/guestfish.pod:135
21820 #, no-wrap
21821 msgid ""
21822 " guestfish -N fs\n"
21823 "\n"
21824 msgstr ""
21825
21826 # type: textblock
21827 #. type: textblock
21828 #: ../fish/guestfish.pod:137
21829 msgid "To list what is available do:"
21830 msgstr ""
21831
21832 # type: verbatim
21833 #. type: verbatim
21834 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:940
21835 #, no-wrap
21836 msgid ""
21837 " guestfish -N help | less\n"
21838 "\n"
21839 msgstr ""
21840
21841 # type: =head2
21842 #. type: =head2
21843 #: ../fish/guestfish.pod:141
21844 msgid "Remote control"
21845 msgstr ""
21846
21847 # type: verbatim
21848 #. type: verbatim
21849 #: ../fish/guestfish.pod:143
21850 #, no-wrap
21851 msgid ""
21852 " eval \"`guestfish --listen`\"\n"
21853 " guestfish --remote add-ro disk.img\n"
21854 " guestfish --remote run\n"
21855 " guestfish --remote lvs\n"
21856 "\n"
21857 msgstr ""
21858
21859 # type: =head1
21860 #. type: =head1
21861 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
21862 #: ../fuse/guestmount.pod:73 ../tools/virt-win-reg.pl:96
21863 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
21864 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
21865 msgid "OPTIONS"
21866 msgstr ""
21867
21868 # type: =item
21869 #. type: =item
21870 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:133
21871 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
21872 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
21873 #: ../tools/virt-list-partitions.pl:62
21874 msgid "B<--help>"
21875 msgstr ""
21876
21877 # type: textblock
21878 #. type: textblock
21879 #: ../fish/guestfish.pod:154
21880 msgid "Displays general help on options."
21881 msgstr ""
21882
21883 # type: =item
21884 #. type: =item
21885 #: ../fish/guestfish.pod:156
21886 msgid "B<-h>"
21887 msgstr ""
21888
21889 # type: =item
21890 #. type: =item
21891 #: ../fish/guestfish.pod:158
21892 msgid "B<--cmd-help>"
21893 msgstr ""
21894
21895 # type: textblock
21896 #. type: textblock
21897 #: ../fish/guestfish.pod:160
21898 msgid "Lists all available guestfish commands."
21899 msgstr ""
21900
21901 # type: =item
21902 #. type: =item
21903 #: ../fish/guestfish.pod:162
21904 msgid "B<-h cmd>"
21905 msgstr ""
21906
21907 # type: =item
21908 #. type: =item
21909 #: ../fish/guestfish.pod:164
21910 msgid "B<--cmd-help cmd>"
21911 msgstr ""
21912
21913 # type: textblock
21914 #. type: textblock
21915 #: ../fish/guestfish.pod:166
21916 msgid "Displays detailed help on a single command C<cmd>."
21917 msgstr ""
21918
21919 # type: =item
21920 #. type: =item
21921 #: ../fish/guestfish.pod:168
21922 msgid "B<-a image>"
21923 msgstr ""
21924
21925 # type: =item
21926 #. type: =item
21927 #: ../fish/guestfish.pod:170
21928 msgid "B<--add image>"
21929 msgstr ""
21930
21931 # type: textblock
21932 #. type: textblock
21933 #: ../fish/guestfish.pod:172
21934 msgid "Add a block device or virtual machine image to the shell."
21935 msgstr ""
21936
21937 # type: textblock
21938 #. type: textblock
21939 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
21940 msgid ""
21941 "The format of the disk image is auto-detected.  To override this and force a "
21942 "particular format use the I<--format=..> option."
21943 msgstr ""
21944
21945 #. type: textblock
21946 #: ../fish/guestfish.pod:177
21947 msgid ""
21948 "Using this flag is mostly equivalent to using the C<add> command, with "
21949 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21950 "the I<--format=...> flag was given."
21951 msgstr ""
21952
21953 # type: =item
21954 #. type: =item
21955 #: ../fish/guestfish.pod:181
21956 msgid "B<-c URI>"
21957 msgstr ""
21958
21959 # type: =item
21960 #. type: =item
21961 #: ../fish/guestfish.pod:183
21962 msgid "B<--connect URI>"
21963 msgstr ""
21964
21965 # type: textblock
21966 #. type: textblock
21967 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21968 msgid ""
21969 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21970 "URI to use.  The default is to use the default libvirt connection."
21971 msgstr ""
21972
21973 # type: =item
21974 #. type: =item
21975 #: ../fish/guestfish.pod:189
21976 msgid "B<--csh>"
21977 msgstr ""
21978
21979 # type: textblock
21980 #. type: textblock
21981 #: ../fish/guestfish.pod:191
21982 msgid ""
21983 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21984 "section L</REMOTE CONTROL AND CSH> below."
21985 msgstr ""
21986
21987 # type: =item
21988 #. type: =item
21989 #: ../fish/guestfish.pod:194
21990 msgid "B<-d libvirt-domain>"
21991 msgstr ""
21992
21993 # type: =item
21994 #. type: =item
21995 #: ../fish/guestfish.pod:196
21996 msgid "B<--domain libvirt-domain>"
21997 msgstr ""
21998
21999 # type: textblock
22000 #. type: textblock
22001 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
22002 msgid ""
22003 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
22004 "used, then any libvirt domain can be used.  However in write mode, only "
22005 "libvirt domains which are shut down can be named here."
22006 msgstr ""
22007
22008 #. type: textblock
22009 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:96
22010 msgid "Domain UUIDs can be used instead of names."
22011 msgstr ""
22012
22013 # type: textblock
22014 #. type: textblock
22015 #: ../fish/guestfish.pod:204
22016 msgid ""
22017 "Using this flag is mostly equivalent to using the C<add-domain> command, "
22018 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
22019 "if the I<--format:...> flag was given."
22020 msgstr ""
22021
22022 # type: =item
22023 #. type: =item
22024 #: ../fish/guestfish.pod:208
22025 msgid "B<-D>"
22026 msgstr ""
22027
22028 # type: =item
22029 #. type: =item
22030 #: ../fish/guestfish.pod:210
22031 msgid "B<--no-dest-paths>"
22032 msgstr ""
22033
22034 # type: textblock
22035 #. type: textblock
22036 #: ../fish/guestfish.pod:212
22037 msgid ""
22038 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
22039 "to hit the tab key to complete paths on the guest filesystem, but this "
22040 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
22041 "allow this feature to be disabled."
22042 msgstr ""
22043
22044 # type: =item
22045 #. type: =item
22046 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
22047 msgid "B<--echo-keys>"
22048 msgstr ""
22049
22050 # type: textblock
22051 #. type: textblock
22052 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:112
22053 msgid ""
22054 "When prompting for keys and passphrases, guestfish normally turns echoing "
22055 "off so you cannot see what you are typing.  If you are not worried about "
22056 "Tempest attacks and there is no one else in the room you can specify this "
22057 "flag to see what you are typing."
22058 msgstr ""
22059
22060 # type: =item
22061 #. type: =item
22062 #: ../fish/guestfish.pod:224
22063 msgid "B<-f file>"
22064 msgstr ""
22065
22066 # type: =item
22067 #. type: =item
22068 #: ../fish/guestfish.pod:226
22069 msgid "B<--file file>"
22070 msgstr ""
22071
22072 # type: textblock
22073 #. type: textblock
22074 #: ../fish/guestfish.pod:228
22075 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
22076 msgstr ""
22077
22078 # type: verbatim
22079 #. type: verbatim
22080 #: ../fish/guestfish.pod:231
22081 #, no-wrap
22082 msgid ""
22083 " #!/usr/bin/guestfish -f\n"
22084 "\n"
22085 msgstr ""
22086
22087 # type: =item
22088 #. type: =item
22089 #: ../fish/guestfish.pod:233
22090 msgid "B<--format=raw|qcow2|..>"
22091 msgstr ""
22092
22093 # type: =item
22094 #. type: =item
22095 #: ../fish/guestfish.pod:235
22096 msgid "B<--format>"
22097 msgstr ""
22098
22099 # type: textblock
22100 #. type: textblock
22101 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:119
22102 msgid ""
22103 "The default for the I<-a> option is to auto-detect the format of the disk "
22104 "image.  Using this forces the disk format for I<-a> options which follow on "
22105 "the command line.  Using I<--format> with no argument switches back to auto-"
22106 "detection for subsequent I<-a> options."
22107 msgstr ""
22108
22109 # type: verbatim
22110 #. type: verbatim
22111 #: ../fish/guestfish.pod:244
22112 #, no-wrap
22113 msgid ""
22114 " guestfish --format=raw -a disk.img\n"
22115 "\n"
22116 msgstr ""
22117
22118 # type: textblock
22119 #. type: textblock
22120 #: ../fish/guestfish.pod:246
22121 msgid "forces raw format (no auto-detection) for C<disk.img>."
22122 msgstr ""
22123
22124 # type: verbatim
22125 #. type: verbatim
22126 #: ../fish/guestfish.pod:248
22127 #, no-wrap
22128 msgid ""
22129 " guestfish --format=raw -a disk.img --format -a another.img\n"
22130 "\n"
22131 msgstr ""
22132
22133 # type: textblock
22134 #. type: textblock
22135 #: ../fish/guestfish.pod:250
22136 msgid ""
22137 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
22138 "detection for C<another.img>."
22139 msgstr ""
22140
22141 # type: textblock
22142 #. type: textblock
22143 #: ../fish/guestfish.pod:253
22144 msgid ""
22145 "If you have untrusted raw-format guest disk images, you should use this "
22146 "option to specify the disk format.  This avoids a possible security problem "
22147 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
22148 msgstr ""
22149
22150 # type: =item
22151 #. type: =item
22152 #: ../fish/guestfish.pod:258
22153 msgid "B<-i>"
22154 msgstr ""
22155
22156 # type: =item
22157 #. type: =item
22158 #: ../fish/guestfish.pod:260
22159 msgid "B<--inspector>"
22160 msgstr ""
22161
22162 # type: textblock
22163 #. type: textblock
22164 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:139
22165 msgid ""
22166 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
22167 "system and mount filesystems as they would be mounted on the real virtual "
22168 "machine."
22169 msgstr ""
22170
22171 # type: textblock
22172 #. type: textblock
22173 #: ../fish/guestfish.pod:266
22174 msgid "Typical usage is either:"
22175 msgstr ""
22176
22177 # type: verbatim
22178 #. type: verbatim
22179 #: ../fish/guestfish.pod:268
22180 #, no-wrap
22181 msgid ""
22182 " guestfish -d myguest -i\n"
22183 "\n"
22184 msgstr ""
22185
22186 # type: textblock
22187 #. type: textblock
22188 #: ../fish/guestfish.pod:270
22189 msgid "(for an inactive libvirt domain called I<myguest>), or:"
22190 msgstr ""
22191
22192 # type: verbatim
22193 #. type: verbatim
22194 #: ../fish/guestfish.pod:272
22195 #, no-wrap
22196 msgid ""
22197 " guestfish --ro -d myguest -i\n"
22198 "\n"
22199 msgstr ""
22200
22201 # type: textblock
22202 #. type: textblock
22203 #: ../fish/guestfish.pod:274
22204 msgid "(for active domains, readonly), or specify the block device directly:"
22205 msgstr ""
22206
22207 # type: verbatim
22208 #. type: verbatim
22209 #: ../fish/guestfish.pod:276
22210 #, no-wrap
22211 msgid ""
22212 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
22213 "\n"
22214 msgstr ""
22215
22216 # type: textblock
22217 #. type: textblock
22218 #: ../fish/guestfish.pod:278
22219 msgid ""
22220 "Note that the command line syntax changed slightly over older versions of "
22221 "guestfish.  You can still use the old syntax:"
22222 msgstr ""
22223
22224 # type: verbatim
22225 #. type: verbatim
22226 #: ../fish/guestfish.pod:281
22227 #, no-wrap
22228 msgid ""
22229 " guestfish [--ro] -i disk.img\n"
22230 "\n"
22231 msgstr ""
22232
22233 # type: verbatim
22234 #. type: verbatim
22235 #: ../fish/guestfish.pod:283
22236 #, no-wrap
22237 msgid ""
22238 " guestfish [--ro] -i libvirt-domain\n"
22239 "\n"
22240 msgstr ""
22241
22242 # type: textblock
22243 #. type: textblock
22244 #: ../fish/guestfish.pod:285
22245 msgid ""
22246 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
22247 "then using other commands to mount the filesystems that were found."
22248 msgstr ""
22249
22250 # type: =item
22251 #. type: =item
22252 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
22253 msgid "B<--keys-from-stdin>"
22254 msgstr ""
22255
22256 # type: textblock
22257 #. type: textblock
22258 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:145
22259 msgid ""
22260 "Read key or passphrase parameters from stdin.  The default is to try to read "
22261 "passphrases from the user by opening C</dev/tty>."
22262 msgstr ""
22263
22264 # type: =item
22265 #. type: =item
22266 #: ../fish/guestfish.pod:294
22267 msgid "B<--listen>"
22268 msgstr ""
22269
22270 # type: textblock
22271 #. type: textblock
22272 #: ../fish/guestfish.pod:296
22273 msgid ""
22274 "Fork into the background and listen for remote commands.  See section L</"
22275 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
22276 msgstr ""
22277
22278 #. type: =item
22279 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
22280 msgid "B<--live>"
22281 msgstr ""
22282
22283 #. type: textblock
22284 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:150
22285 msgid ""
22286 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
22287 "ATTACHING TO RUNNING DAEMONS>)."
22288 msgstr ""
22289
22290 #. type: =item
22291 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
22292 msgid "B<-m dev[:mountpoint[:options]]>"
22293 msgstr ""
22294
22295 #. type: =item
22296 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:155
22297 msgid "B<--mount dev[:mountpoint[:options]]>"
22298 msgstr ""
22299
22300 # type: textblock
22301 #. type: textblock
22302 #: ../fish/guestfish.pod:308
22303 msgid "Mount the named partition or logical volume on the given mountpoint."
22304 msgstr ""
22305
22306 # type: textblock
22307 #. type: textblock
22308 #: ../fish/guestfish.pod:310
22309 msgid "If the mountpoint is omitted, it defaults to C</>."
22310 msgstr ""
22311
22312 # type: textblock
22313 #. type: textblock
22314 #: ../fish/guestfish.pod:312
22315 msgid "You have to mount something on C</> before most commands will work."
22316 msgstr ""
22317
22318 # type: textblock
22319 #. type: textblock
22320 #: ../fish/guestfish.pod:314
22321 msgid ""
22322 "If any I<-m> or I<--mount> options are given, the guest is automatically "
22323 "launched."
22324 msgstr ""
22325
22326 # type: textblock
22327 #. type: textblock
22328 #: ../fish/guestfish.pod:317
22329 msgid ""
22330 "If you don't know what filesystems a disk image contains, you can either run "
22331 "guestfish without this option, then list the partitions, filesystems and LVs "
22332 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22333 "commands), or you can use the L<virt-filesystems(1)> program."
22334 msgstr ""
22335
22336 #. type: textblock
22337 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:163
22338 msgid ""
22339 "The third (and rarely used) part of the mount parameter is the list of mount "
22340 "options used to mount the underlying filesystem.  If this is not given, then "
22341 "the mount options are either the empty string or C<ro> (the latter if the "
22342 "I<--ro> flag is used).  By specifying the mount options, you override this "
22343 "default choice.  Probably the only time you would use this is to enable ACLs "
22344 "and/or extended attributes if the filesystem can support them:"
22345 msgstr ""
22346
22347 #. type: verbatim
22348 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:171
22349 #, no-wrap
22350 msgid ""
22351 " -m /dev/sda1:/:acl,user_xattr\n"
22352 "\n"
22353 msgstr ""
22354
22355 #. type: textblock
22356 #: ../fish/guestfish.pod:333
22357 msgid "Using this flag is equivalent to using the C<mount-options> command."
22358 msgstr ""
22359
22360 # type: =item
22361 #. type: =item
22362 #: ../fish/guestfish.pod:335
22363 msgid "B<-n>"
22364 msgstr ""
22365
22366 # type: =item
22367 #. type: =item
22368 #: ../fish/guestfish.pod:337
22369 msgid "B<--no-sync>"
22370 msgstr ""
22371
22372 # type: textblock
22373 #. type: textblock
22374 #: ../fish/guestfish.pod:339
22375 msgid ""
22376 "Disable autosync.  This is enabled by default.  See the discussion of "
22377 "autosync in the L<guestfs(3)> manpage."
22378 msgstr ""
22379
22380 # type: =item
22381 #. type: =item
22382 #: ../fish/guestfish.pod:342
22383 msgid "B<-N type>"
22384 msgstr ""
22385
22386 # type: =item
22387 #. type: =item
22388 #: ../fish/guestfish.pod:344
22389 msgid "B<--new type>"
22390 msgstr ""
22391
22392 # type: =item
22393 #. type: =item
22394 #: ../fish/guestfish.pod:346
22395 msgid "B<-N help>"
22396 msgstr ""
22397
22398 # type: textblock
22399 #. type: textblock
22400 #: ../fish/guestfish.pod:348
22401 msgid ""
22402 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22403 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22404 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22405 "IMAGES> below."
22406 msgstr ""
22407
22408 # type: =item
22409 #. type: =item
22410 #: ../fish/guestfish.pod:353
22411 msgid "B<--progress-bars>"
22412 msgstr ""
22413
22414 # type: textblock
22415 #. type: textblock
22416 #: ../fish/guestfish.pod:355
22417 msgid "Enable progress bars, even when guestfish is used non-interactively."
22418 msgstr ""
22419
22420 # type: textblock
22421 #. type: textblock
22422 #: ../fish/guestfish.pod:357
22423 msgid ""
22424 "Progress bars are enabled by default when guestfish is used as an "
22425 "interactive shell."
22426 msgstr ""
22427
22428 # type: =item
22429 #. type: =item
22430 #: ../fish/guestfish.pod:360
22431 msgid "B<--no-progress-bars>"
22432 msgstr ""
22433
22434 # type: textblock
22435 #. type: textblock
22436 #: ../fish/guestfish.pod:362
22437 msgid "Disable progress bars."
22438 msgstr ""
22439
22440 # type: =item
22441 #. type: =item
22442 #: ../fish/guestfish.pod:364
22443 msgid "B<--remote[=pid]>"
22444 msgstr ""
22445
22446 # type: textblock
22447 #. type: textblock
22448 #: ../fish/guestfish.pod:366
22449 msgid ""
22450 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22451 "CONTROL GUESTFISH OVER A SOCKET> below."
22452 msgstr ""
22453
22454 # type: =item
22455 #. type: =item
22456 #: ../fish/guestfish.pod:369
22457 msgid "B<-r>"
22458 msgstr ""
22459
22460 # type: =item
22461 #. type: =item
22462 #: ../fish/guestfish.pod:371
22463 msgid "B<--ro>"
22464 msgstr ""
22465
22466 # type: textblock
22467 #. type: textblock
22468 #: ../fish/guestfish.pod:373
22469 msgid ""
22470 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22471 "mounts are done read-only."
22472 msgstr ""
22473
22474 # type: textblock
22475 #. type: textblock
22476 #: ../fish/guestfish.pod:376
22477 msgid ""
22478 "The option must always be used if the disk image or virtual machine might be "
22479 "running, and is generally recommended in cases where you don't need write "
22480 "access to the disk."
22481 msgstr ""
22482
22483 # type: textblock
22484 #. type: textblock
22485 #: ../fish/guestfish.pod:380
22486 msgid ""
22487 "Note that prepared disk images created with I<-N> are not affected by this "
22488 "option.  Also commands like C<add> are not affected - you have to specify "
22489 "the C<readonly:true> option explicitly if you need it."
22490 msgstr ""
22491
22492 # type: textblock
22493 #. type: textblock
22494 #: ../fish/guestfish.pod:384
22495 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22496 msgstr ""
22497
22498 # type: =item
22499 #. type: =item
22500 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:227
22501 msgid "B<--selinux>"
22502 msgstr ""
22503
22504 # type: textblock
22505 #. type: textblock
22506 #: ../fish/guestfish.pod:388
22507 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22508 msgstr ""
22509
22510 # type: =item
22511 #. type: =item
22512 #: ../fish/guestfish.pod:390
22513 msgid "B<-v>"
22514 msgstr ""
22515
22516 # type: =item
22517 #. type: =item
22518 #: ../fish/guestfish.pod:392
22519 msgid "B<--verbose>"
22520 msgstr ""
22521
22522 # type: textblock
22523 #. type: textblock
22524 #: ../fish/guestfish.pod:394
22525 msgid ""
22526 "Enable very verbose messages.  This is particularly useful if you find a bug."
22527 msgstr ""
22528
22529 # type: =item
22530 #. type: =item
22531 #: ../fish/guestfish.pod:397
22532 msgid "B<-V>"
22533 msgstr ""
22534
22535 # type: =item
22536 #. type: =item
22537 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
22538 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
22539 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
22540 msgid "B<--version>"
22541 msgstr ""
22542
22543 # type: textblock
22544 #. type: textblock
22545 #: ../fish/guestfish.pod:401
22546 msgid "Display the guestfish / libguestfs version number and exit."
22547 msgstr ""
22548
22549 # type: =item
22550 #. type: =item
22551 #: ../fish/guestfish.pod:403
22552 msgid "B<-w>"
22553 msgstr ""
22554
22555 # type: =item
22556 #. type: =item
22557 #: ../fish/guestfish.pod:405
22558 msgid "B<--rw>"
22559 msgstr ""
22560
22561 #. type: textblock
22562 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:241
22563 msgid ""
22564 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22565 "mounts are done read-write."
22566 msgstr ""
22567
22568 #. type: textblock
22569 #: ../fish/guestfish.pod:410
22570 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
22571 msgstr ""
22572
22573 # type: =item
22574 #. type: =item
22575 #: ../fish/guestfish.pod:412
22576 msgid "B<-x>"
22577 msgstr ""
22578
22579 # type: textblock
22580 #. type: textblock
22581 #: ../fish/guestfish.pod:414
22582 msgid "Echo each command before executing it."
22583 msgstr ""
22584
22585 # type: =head1
22586 #. type: =head1
22587 #: ../fish/guestfish.pod:418
22588 msgid "COMMANDS ON COMMAND LINE"
22589 msgstr ""
22590
22591 # type: textblock
22592 #. type: textblock
22593 #: ../fish/guestfish.pod:420
22594 msgid ""
22595 "Any additional (non-option) arguments are treated as commands to execute."
22596 msgstr ""
22597
22598 # type: textblock
22599 #. type: textblock
22600 #: ../fish/guestfish.pod:423
22601 msgid ""
22602 "Commands to execute should be separated by a colon (C<:>), where the colon "
22603 "is a separate parameter.  Thus:"
22604 msgstr ""
22605
22606 # type: verbatim
22607 #. type: verbatim
22608 #: ../fish/guestfish.pod:426
22609 #, no-wrap
22610 msgid ""
22611 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22612 "\n"
22613 msgstr ""
22614
22615 # type: textblock
22616 #. type: textblock
22617 #: ../fish/guestfish.pod:428
22618 msgid ""
22619 "If there are no additional arguments, then we enter a shell, either an "
22620 "interactive shell with a prompt (if the input is a terminal) or a non-"
22621 "interactive shell."
22622 msgstr ""
22623
22624 # type: textblock
22625 #. type: textblock
22626 #: ../fish/guestfish.pod:432
22627 msgid ""
22628 "In either command line mode or non-interactive shell, the first command that "
22629 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22630 "prompt) if a command fails, you can continue to enter commands."
22631 msgstr ""
22632
22633 # type: =head1
22634 #. type: =head1
22635 #: ../fish/guestfish.pod:437
22636 msgid "USING launch (OR run)"
22637 msgstr ""
22638
22639 # type: textblock
22640 #. type: textblock
22641 #: ../fish/guestfish.pod:439
22642 msgid ""
22643 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22644 "then launch it, then mount any disks you need, and finally issue actions/"
22645 "commands.  So the general order of the day is:"
22646 msgstr ""
22647
22648 # type: textblock
22649 #. type: textblock
22650 #: ../fish/guestfish.pod:447
22651 msgid "add or -a/--add"
22652 msgstr ""
22653
22654 # type: textblock
22655 #. type: textblock
22656 #: ../fish/guestfish.pod:451
22657 msgid "launch (aka run)"
22658 msgstr ""
22659
22660 # type: textblock
22661 #. type: textblock
22662 #: ../fish/guestfish.pod:455
22663 msgid "mount or -m/--mount"
22664 msgstr ""
22665
22666 # type: textblock
22667 #. type: textblock
22668 #: ../fish/guestfish.pod:459
22669 msgid "any other commands"
22670 msgstr ""
22671
22672 # type: textblock
22673 #. type: textblock
22674 #: ../fish/guestfish.pod:463
22675 msgid ""
22676 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
22677 "guest before mounting or performing any other commands."
22678 msgstr ""
22679
22680 # type: textblock
22681 #. type: textblock
22682 #: ../fish/guestfish.pod:466
22683 msgid ""
22684 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
22685 "I<--new> options were given then C<run> is done automatically, simply "
22686 "because guestfish can't perform the action you asked for without doing this."
22687 msgstr ""
22688
22689 # type: =head1
22690 #. type: =head1
22691 #: ../fish/guestfish.pod:471
22692 msgid "OPENING DISKS FOR READ AND WRITE"
22693 msgstr ""
22694
22695 #. type: textblock
22696 #: ../fish/guestfish.pod:473
22697 msgid ""
22698 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
22699 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
22700 "I<-i> and I<-m> open disk images read-only or for writing."
22701 msgstr ""
22702
22703 #. type: textblock
22704 #: ../fish/guestfish.pod:478
22705 msgid ""
22706 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
22707 "opening disk images supplied on the command line for write.  To open a disk "
22708 "image read-only you have to do I<-a image --ro>."
22709 msgstr ""
22710
22711 # type: textblock
22712 #. type: textblock
22713 #: ../fish/guestfish.pod:482
22714 msgid ""
22715 "This matters: If you accidentally open a live VM disk image writable then "
22716 "you will cause irreversible disk corruption."
22717 msgstr ""
22718
22719 #. type: textblock
22720 #: ../fish/guestfish.pod:485
22721 msgid ""
22722 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
22723 "images will be opened read-only.  You will have to either specify "
22724 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
22725 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
22726 "access for disk images specified by those other command line options."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../fish/guestfish.pod:492
22731 msgid ""
22732 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
22733 "which does nothing (it is already the default).  However it is highly "
22734 "recommended that you use this option to indicate that you need write access, "
22735 "and prepare your scripts for the day when this option will be required for "
22736 "write access."
22737 msgstr ""
22738
22739 # type: textblock
22740 #. type: textblock
22741 #: ../fish/guestfish.pod:498
22742 msgid ""
22743 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
22744 "other libguestfs program apart from guestfish and guestmount."
22745 msgstr ""
22746
22747 # type: =head1
22748 #. type: =head1
22749 #: ../fish/guestfish.pod:501
22750 msgid "QUOTING"
22751 msgstr ""
22752
22753 # type: textblock
22754 #. type: textblock
22755 #: ../fish/guestfish.pod:503
22756 msgid ""
22757 "You can quote ordinary parameters using either single or double quotes.  For "
22758 "example:"
22759 msgstr ""
22760
22761 # type: verbatim
22762 #. type: verbatim
22763 #: ../fish/guestfish.pod:506
22764 #, no-wrap
22765 msgid ""
22766 " add \"file with a space.img\"\n"
22767 "\n"
22768 msgstr ""
22769
22770 # type: verbatim
22771 #. type: verbatim
22772 #: ../fish/guestfish.pod:508
22773 #, no-wrap
22774 msgid ""
22775 " rm '/file name'\n"
22776 "\n"
22777 msgstr ""
22778
22779 # type: verbatim
22780 #. type: verbatim
22781 #: ../fish/guestfish.pod:510
22782 #, no-wrap
22783 msgid ""
22784 " rm '/\"'\n"
22785 "\n"
22786 msgstr ""
22787
22788 # type: textblock
22789 #. type: textblock
22790 #: ../fish/guestfish.pod:512
22791 msgid ""
22792 "A few commands require a list of strings to be passed.  For these, use a "
22793 "whitespace-separated list, enclosed in quotes.  Strings containing "
22794 "whitespace to be passed through must be enclosed in single quotes.  A "
22795 "literal single quote must be escaped with a backslash."
22796 msgstr ""
22797
22798 # type: verbatim
22799 #. type: verbatim
22800 #: ../fish/guestfish.pod:517
22801 #, no-wrap
22802 msgid ""
22803 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
22804 " command \"/bin/echo 'foo      bar'\"\n"
22805 " command \"/bin/echo \\'foo\\'\"\n"
22806 "\n"
22807 msgstr ""
22808
22809 # type: =head1
22810 #. type: =head1
22811 #: ../fish/guestfish.pod:521
22812 msgid "OPTIONAL ARGUMENTS"
22813 msgstr ""
22814
22815 # type: textblock
22816 #. type: textblock
22817 #: ../fish/guestfish.pod:523
22818 msgid ""
22819 "Some commands take optional arguments.  These arguments appear in this "
22820 "documentation as C<[argname:..]>.  You can use them as in these examples:"
22821 msgstr ""
22822
22823 # type: verbatim
22824 #. type: verbatim
22825 #: ../fish/guestfish.pod:527
22826 #, no-wrap
22827 msgid ""
22828 " add-drive-opts filename\n"
22829 "\n"
22830 msgstr ""
22831
22832 # type: verbatim
22833 #. type: verbatim
22834 #: ../fish/guestfish.pod:529
22835 #, no-wrap
22836 msgid ""
22837 " add-drive-opts filename readonly:true\n"
22838 "\n"
22839 msgstr ""
22840
22841 # type: verbatim
22842 #. type: verbatim
22843 #: ../fish/guestfish.pod:531
22844 #, no-wrap
22845 msgid ""
22846 " add-drive-opts filename format:qcow2 readonly:false\n"
22847 "\n"
22848 msgstr ""
22849
22850 # type: textblock
22851 #. type: textblock
22852 #: ../fish/guestfish.pod:533
22853 msgid ""
22854 "Each optional argument can appear at most once.  All optional arguments must "
22855 "appear after the required ones."
22856 msgstr ""
22857
22858 # type: =head1
22859 #. type: =head1
22860 #: ../fish/guestfish.pod:536
22861 msgid "NUMBERS"
22862 msgstr ""
22863
22864 # type: textblock
22865 #. type: textblock
22866 #: ../fish/guestfish.pod:538
22867 msgid ""
22868 "This section applies to all commands which can take integers as parameters."
22869 msgstr ""
22870
22871 # type: =head2
22872 #. type: =head2
22873 #: ../fish/guestfish.pod:541
22874 msgid "SIZE SUFFIX"
22875 msgstr ""
22876
22877 # type: textblock
22878 #. type: textblock
22879 #: ../fish/guestfish.pod:543
22880 msgid ""
22881 "When the command takes a parameter measured in bytes, you can use one of the "
22882 "following suffixes to specify kilobytes, megabytes and larger sizes:"
22883 msgstr ""
22884
22885 # type: =item
22886 #. type: =item
22887 #: ../fish/guestfish.pod:549
22888 msgid "B<k> or B<K> or B<KiB>"
22889 msgstr ""
22890
22891 # type: textblock
22892 #. type: textblock
22893 #: ../fish/guestfish.pod:551
22894 msgid "The size in kilobytes (multiplied by 1024)."
22895 msgstr ""
22896
22897 # type: =item
22898 #. type: =item
22899 #: ../fish/guestfish.pod:553
22900 msgid "B<KB>"
22901 msgstr ""
22902
22903 # type: textblock
22904 #. type: textblock
22905 #: ../fish/guestfish.pod:555
22906 msgid "The size in SI 1000 byte units."
22907 msgstr ""
22908
22909 # type: =item
22910 #. type: =item
22911 #: ../fish/guestfish.pod:557
22912 msgid "B<M> or B<MiB>"
22913 msgstr ""
22914
22915 # type: textblock
22916 #. type: textblock
22917 #: ../fish/guestfish.pod:559
22918 msgid "The size in megabytes (multiplied by 1048576)."
22919 msgstr ""
22920
22921 # type: =item
22922 #. type: =item
22923 #: ../fish/guestfish.pod:561
22924 msgid "B<MB>"
22925 msgstr ""
22926
22927 # type: textblock
22928 #. type: textblock
22929 #: ../fish/guestfish.pod:563
22930 msgid "The size in SI 1000000 byte units."
22931 msgstr ""
22932
22933 # type: =item
22934 #. type: =item
22935 #: ../fish/guestfish.pod:565
22936 msgid "B<G> or B<GiB>"
22937 msgstr ""
22938
22939 # type: textblock
22940 #. type: textblock
22941 #: ../fish/guestfish.pod:567
22942 msgid "The size in gigabytes (multiplied by 2**30)."
22943 msgstr ""
22944
22945 # type: =item
22946 #. type: =item
22947 #: ../fish/guestfish.pod:569
22948 msgid "B<GB>"
22949 msgstr ""
22950
22951 # type: textblock
22952 #. type: textblock
22953 #: ../fish/guestfish.pod:571
22954 msgid "The size in SI 10**9 byte units."
22955 msgstr ""
22956
22957 # type: =item
22958 #. type: =item
22959 #: ../fish/guestfish.pod:573
22960 msgid "B<T> or B<TiB>"
22961 msgstr ""
22962
22963 # type: textblock
22964 #. type: textblock
22965 #: ../fish/guestfish.pod:575
22966 msgid "The size in terabytes (multiplied by 2**40)."
22967 msgstr ""
22968
22969 # type: =item
22970 #. type: =item
22971 #: ../fish/guestfish.pod:577
22972 msgid "B<TB>"
22973 msgstr ""
22974
22975 # type: textblock
22976 #. type: textblock
22977 #: ../fish/guestfish.pod:579
22978 msgid "The size in SI 10**12 byte units."
22979 msgstr ""
22980
22981 # type: =item
22982 #. type: =item
22983 #: ../fish/guestfish.pod:581
22984 msgid "B<P> or B<PiB>"
22985 msgstr ""
22986
22987 # type: textblock
22988 #. type: textblock
22989 #: ../fish/guestfish.pod:583
22990 msgid "The size in petabytes (multiplied by 2**50)."
22991 msgstr ""
22992
22993 # type: =item
22994 #. type: =item
22995 #: ../fish/guestfish.pod:585
22996 msgid "B<PB>"
22997 msgstr ""
22998
22999 # type: textblock
23000 #. type: textblock
23001 #: ../fish/guestfish.pod:587
23002 msgid "The size in SI 10**15 byte units."
23003 msgstr ""
23004
23005 # type: =item
23006 #. type: =item
23007 #: ../fish/guestfish.pod:589
23008 msgid "B<E> or B<EiB>"
23009 msgstr ""
23010
23011 # type: textblock
23012 #. type: textblock
23013 #: ../fish/guestfish.pod:591
23014 msgid "The size in exabytes (multiplied by 2**60)."
23015 msgstr ""
23016
23017 # type: =item
23018 #. type: =item
23019 #: ../fish/guestfish.pod:593
23020 msgid "B<EB>"
23021 msgstr ""
23022
23023 # type: textblock
23024 #. type: textblock
23025 #: ../fish/guestfish.pod:595
23026 msgid "The size in SI 10**18 byte units."
23027 msgstr ""
23028
23029 # type: =item
23030 #. type: =item
23031 #: ../fish/guestfish.pod:597
23032 msgid "B<Z> or B<ZiB>"
23033 msgstr ""
23034
23035 # type: textblock
23036 #. type: textblock
23037 #: ../fish/guestfish.pod:599
23038 msgid "The size in zettabytes (multiplied by 2**70)."
23039 msgstr ""
23040
23041 # type: =item
23042 #. type: =item
23043 #: ../fish/guestfish.pod:601
23044 msgid "B<ZB>"
23045 msgstr ""
23046
23047 # type: textblock
23048 #. type: textblock
23049 #: ../fish/guestfish.pod:603
23050 msgid "The size in SI 10**21 byte units."
23051 msgstr ""
23052
23053 # type: =item
23054 #. type: =item
23055 #: ../fish/guestfish.pod:605
23056 msgid "B<Y> or B<YiB>"
23057 msgstr ""
23058
23059 # type: textblock
23060 #. type: textblock
23061 #: ../fish/guestfish.pod:607
23062 msgid "The size in yottabytes (multiplied by 2**80)."
23063 msgstr ""
23064
23065 # type: =item
23066 #. type: =item
23067 #: ../fish/guestfish.pod:609
23068 msgid "B<YB>"
23069 msgstr ""
23070
23071 # type: textblock
23072 #. type: textblock
23073 #: ../fish/guestfish.pod:611
23074 msgid "The size in SI 10**24 byte units."
23075 msgstr ""
23076
23077 # type: verbatim
23078 #. type: verbatim
23079 #: ../fish/guestfish.pod:617
23080 #, no-wrap
23081 msgid ""
23082 " truncate-size /file 1G\n"
23083 "\n"
23084 msgstr ""
23085
23086 # type: textblock
23087 #. type: textblock
23088 #: ../fish/guestfish.pod:619
23089 msgid "would truncate the file to 1 gigabyte."
23090 msgstr ""
23091
23092 # type: textblock
23093 #. type: textblock
23094 #: ../fish/guestfish.pod:621
23095 msgid ""
23096 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
23097 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
23098 "suffix will probably not do what you expect."
23099 msgstr ""
23100
23101 # type: =head2
23102 #. type: =head2
23103 #: ../fish/guestfish.pod:625
23104 msgid "OCTAL AND HEXADECIMAL NUMBERS"
23105 msgstr ""
23106
23107 # type: textblock
23108 #. type: textblock
23109 #: ../fish/guestfish.pod:627
23110 msgid ""
23111 "For specifying the radix (base) use the C convention: C<0> to prefix an "
23112 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
23113 msgstr ""
23114
23115 # type: verbatim
23116 #. type: verbatim
23117 #: ../fish/guestfish.pod:630
23118 #, no-wrap
23119 msgid ""
23120 " 1234      decimal number 1234\n"
23121 " 02322     octal number, equivalent to decimal 1234\n"
23122 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
23123 "\n"
23124 msgstr ""
23125
23126 # type: textblock
23127 #. type: textblock
23128 #: ../fish/guestfish.pod:634
23129 msgid ""
23130 "When using the C<chmod> command, you almost always want to specify an octal "
23131 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
23132 "L<chmod(1)> program):"
23133 msgstr ""
23134
23135 # type: verbatim
23136 #. type: verbatim
23137 #: ../fish/guestfish.pod:638
23138 #, no-wrap
23139 msgid ""
23140 " chmod 0777 /public  # OK\n"
23141 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
23142 "\n"
23143 msgstr ""
23144
23145 # type: textblock
23146 #. type: textblock
23147 #: ../fish/guestfish.pod:641
23148 msgid ""
23149 "Commands that return numbers usually print them in decimal, but some "
23150 "commands print numbers in other radices (eg. C<umask> prints the mode in "
23151 "octal, preceeded by C<0>)."
23152 msgstr ""
23153
23154 # type: =head1
23155 #. type: =head1
23156 #: ../fish/guestfish.pod:645
23157 msgid "WILDCARDS AND GLOBBING"
23158 msgstr ""
23159
23160 # type: textblock
23161 #. type: textblock
23162 #: ../fish/guestfish.pod:647
23163 msgid ""
23164 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
23165 "(globbing) by default.  So for example the following will not do what you "
23166 "expect:"
23167 msgstr ""
23168
23169 # type: verbatim
23170 #. type: verbatim
23171 #: ../fish/guestfish.pod:651
23172 #, no-wrap
23173 msgid ""
23174 " rm-rf /home/*\n"
23175 "\n"
23176 msgstr ""
23177
23178 # type: textblock
23179 #. type: textblock
23180 #: ../fish/guestfish.pod:653
23181 msgid ""
23182 "Assuming you don't have a directory called literally C</home/*> then the "
23183 "above command will return an error."
23184 msgstr ""
23185
23186 # type: textblock
23187 #. type: textblock
23188 #: ../fish/guestfish.pod:656
23189 msgid "To perform wildcard expansion, use the C<glob> command."
23190 msgstr ""
23191
23192 # type: verbatim
23193 #. type: verbatim
23194 #: ../fish/guestfish.pod:658
23195 #, no-wrap
23196 msgid ""
23197 " glob rm-rf /home/*\n"
23198 "\n"
23199 msgstr ""
23200
23201 # type: textblock
23202 #. type: textblock
23203 #: ../fish/guestfish.pod:660
23204 msgid ""
23205 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
23206 "many times), equivalent to:"
23207 msgstr ""
23208
23209 # type: verbatim
23210 #. type: verbatim
23211 #: ../fish/guestfish.pod:663
23212 #, no-wrap
23213 msgid ""
23214 " rm-rf /home/jim\n"
23215 " rm-rf /home/joe\n"
23216 " rm-rf /home/mary\n"
23217 "\n"
23218 msgstr ""
23219
23220 # type: textblock
23221 #. type: textblock
23222 #: ../fish/guestfish.pod:667
23223 msgid "C<glob> only works on simple guest paths and not on device names."
23224 msgstr ""
23225
23226 # type: textblock
23227 #. type: textblock
23228 #: ../fish/guestfish.pod:669
23229 msgid ""
23230 "If you have several parameters, each containing a wildcard, then glob will "
23231 "perform a Cartesian product."
23232 msgstr ""
23233
23234 # type: =head1
23235 #. type: =head1
23236 #: ../fish/guestfish.pod:672
23237 msgid "COMMENTS"
23238 msgstr ""
23239
23240 # type: textblock
23241 #. type: textblock
23242 #: ../fish/guestfish.pod:674
23243 msgid ""
23244 "Any line which starts with a I<#> character is treated as a comment and "
23245 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
23246 "a command.  For example:"
23247 msgstr ""
23248
23249 # type: verbatim
23250 #. type: verbatim
23251 #: ../fish/guestfish.pod:678
23252 #, no-wrap
23253 msgid ""
23254 " # this is a comment\n"
23255 "         # this is a comment\n"
23256 " foo # NOT a comment\n"
23257 "\n"
23258 msgstr ""
23259
23260 # type: textblock
23261 #. type: textblock
23262 #: ../fish/guestfish.pod:682
23263 msgid "Blank lines are also ignored."
23264 msgstr ""
23265
23266 # type: =head1
23267 #. type: =head1
23268 #: ../fish/guestfish.pod:684
23269 msgid "RUNNING COMMANDS LOCALLY"
23270 msgstr ""
23271
23272 # type: textblock
23273 #. type: textblock
23274 #: ../fish/guestfish.pod:686
23275 msgid ""
23276 "Any line which starts with a I<!> character is treated as a command sent to "
23277 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
23278 msgstr ""
23279
23280 # type: verbatim
23281 #. type: verbatim
23282 #: ../fish/guestfish.pod:690
23283 #, no-wrap
23284 msgid ""
23285 " !mkdir local\n"
23286 " tgz-out /remote local/remote-data.tar.gz\n"
23287 "\n"
23288 msgstr ""
23289
23290 # type: textblock
23291 #. type: textblock
23292 #: ../fish/guestfish.pod:693
23293 msgid ""
23294 "will create a directory C<local> on the host, and then export the contents "
23295 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
23296 "(See C<tgz-out>)."
23297 msgstr ""
23298
23299 # type: textblock
23300 #. type: textblock
23301 #: ../fish/guestfish.pod:697
23302 msgid ""
23303 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23304 "effect, due to the way that subprocesses work in Unix."
23305 msgstr ""
23306
23307 #. type: =head2
23308 #: ../fish/guestfish.pod:700
23309 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23310 msgstr ""
23311
23312 #. type: textblock
23313 #: ../fish/guestfish.pod:702
23314 msgid ""
23315 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23316 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23317 "and executed as guestfish commands."
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../fish/guestfish.pod:706
23322 msgid ""
23323 "Thus you can use shell script to construct arbitrary guestfish commands "
23324 "which are then parsed by guestfish."
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../fish/guestfish.pod:709
23329 msgid ""
23330 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23331 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23332 "if we use a shell script to create the guestfish commands for us:"
23333 msgstr ""
23334
23335 #. type: verbatim
23336 #: ../fish/guestfish.pod:714
23337 #, no-wrap
23338 msgid ""
23339 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23340 "\n"
23341 msgstr ""
23342
23343 #. type: textblock
23344 #: ../fish/guestfish.pod:716
23345 msgid "or with names like C</foo.001>:"
23346 msgstr ""
23347
23348 #. type: verbatim
23349 #: ../fish/guestfish.pod:718
23350 #, no-wrap
23351 msgid ""
23352 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23353 "\n"
23354 msgstr ""
23355
23356 #. type: textblock
23357 #: ../fish/guestfish.pod:720
23358 msgid ""
23359 "When using guestfish interactively it can be helpful to just run the shell "
23360 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23361 "ordinary I<!> local command), see what guestfish commands it would run, and "
23362 "when you are happy with those prepend the C<E<lt>> character to run the "
23363 "guestfish commands for real."
23364 msgstr ""
23365
23366 # type: =head1
23367 #. type: =head1
23368 #: ../fish/guestfish.pod:726
23369 msgid "PIPES"
23370 msgstr ""
23371
23372 # type: textblock
23373 #. type: textblock
23374 #: ../fish/guestfish.pod:728
23375 msgid ""
23376 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23377 "command (a guestfish command) to the second command (any host command).  For "
23378 "example:"
23379 msgstr ""
23380
23381 # type: verbatim
23382 #. type: verbatim
23383 #: ../fish/guestfish.pod:732
23384 #, no-wrap
23385 msgid ""
23386 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23387 "\n"
23388 msgstr ""
23389
23390 # type: textblock
23391 #. type: textblock
23392 #: ../fish/guestfish.pod:734
23393 msgid ""
23394 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23395 "program).  The above command would list all accounts in the guest filesystem "
23396 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23397 msgstr ""
23398
23399 # type: verbatim
23400 #. type: verbatim
23401 #: ../fish/guestfish.pod:739
23402 #, no-wrap
23403 msgid ""
23404 " hexdump /bin/ls | head\n"
23405 " list-devices | tail -1\n"
23406 " tgz-out / - | tar ztf -\n"
23407 "\n"
23408 msgstr ""
23409
23410 # type: textblock
23411 #. type: textblock
23412 #: ../fish/guestfish.pod:743
23413 msgid ""
23414 "The space before the pipe symbol is required, any space after the pipe "
23415 "symbol is optional.  Everything after the pipe symbol is just passed "
23416 "straight to the host shell, so it can contain redirections, globs and "
23417 "anything else that makes sense on the host side."
23418 msgstr ""
23419
23420 # type: textblock
23421 #. type: textblock
23422 #: ../fish/guestfish.pod:748
23423 msgid ""
23424 "To use a literal argument which begins with a pipe symbol, you have to quote "
23425 "it, eg:"
23426 msgstr ""
23427
23428 # type: verbatim
23429 #. type: verbatim
23430 #: ../fish/guestfish.pod:751
23431 #, no-wrap
23432 msgid ""
23433 " echo \"|\"\n"
23434 "\n"
23435 msgstr ""
23436
23437 # type: =head1
23438 #. type: =head1
23439 #: ../fish/guestfish.pod:753
23440 msgid "HOME DIRECTORIES"
23441 msgstr ""
23442
23443 # type: textblock
23444 #. type: textblock
23445 #: ../fish/guestfish.pod:755
23446 msgid ""
23447 "If a parameter starts with the character C<~> then the tilde may be expanded "
23448 "as a home directory path (either C<~> for the current user's home directory, "
23449 "or C<~user> for another user)."
23450 msgstr ""
23451
23452 # type: textblock
23453 #. type: textblock
23454 #: ../fish/guestfish.pod:759
23455 msgid ""
23456 "Note that home directory expansion happens for users known I<on the host>, "
23457 "not in the guest filesystem."
23458 msgstr ""
23459
23460 # type: textblock
23461 #. type: textblock
23462 #: ../fish/guestfish.pod:762
23463 msgid ""
23464 "To use a literal argument which begins with a tilde, you have to quote it, "
23465 "eg:"
23466 msgstr ""
23467
23468 # type: verbatim
23469 #. type: verbatim
23470 #: ../fish/guestfish.pod:765
23471 #, no-wrap
23472 msgid ""
23473 " echo \"~\"\n"
23474 "\n"
23475 msgstr ""
23476
23477 # type: textblock
23478 #. type: textblock
23479 #: ../fish/guestfish.pod:769
23480 msgid ""
23481 "Libguestfs has some support for Linux guests encrypted according to the "
23482 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23483 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23484 "LUKS is supported."
23485 msgstr ""
23486
23487 # type: textblock
23488 #. type: textblock
23489 #: ../fish/guestfish.pod:774
23490 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23491 msgstr ""
23492
23493 # type: verbatim
23494 #. type: verbatim
23495 #: ../fish/guestfish.pod:776
23496 #, no-wrap
23497 msgid ""
23498 " ><fs> vfs-type /dev/sda2\n"
23499 " crypto_LUKS\n"
23500 "\n"
23501 msgstr ""
23502
23503 # type: textblock
23504 #. type: textblock
23505 #: ../fish/guestfish.pod:779
23506 msgid ""
23507 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23508 "device called C</dev/mapper/luksdev>."
23509 msgstr ""
23510
23511 # type: verbatim
23512 #. type: verbatim
23513 #: ../fish/guestfish.pod:782
23514 #, no-wrap
23515 msgid ""
23516 " ><fs> luks-open /dev/sda2 luksdev\n"
23517 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23518 "\n"
23519 msgstr ""
23520
23521 # type: textblock
23522 #. type: textblock
23523 #: ../fish/guestfish.pod:785
23524 msgid ""
23525 "Finally you have to tell LVM to scan for volume groups on the newly created "
23526 "mapper device:"
23527 msgstr ""
23528
23529 # type: verbatim
23530 #. type: verbatim
23531 #: ../fish/guestfish.pod:788
23532 #, no-wrap
23533 msgid ""
23534 " vgscan\n"
23535 " vg-activate-all true\n"
23536 "\n"
23537 msgstr ""
23538
23539 # type: textblock
23540 #. type: textblock
23541 #: ../fish/guestfish.pod:791
23542 msgid "The logical volume(s) can now be mounted in the usual way."
23543 msgstr ""
23544
23545 # type: textblock
23546 #. type: textblock
23547 #: ../fish/guestfish.pod:793
23548 msgid ""
23549 "Before closing a LUKS device you must unmount any logical volumes on it and "
23550 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23551 "one.  Then you can close the mapper device:"
23552 msgstr ""
23553
23554 # type: verbatim
23555 #. type: verbatim
23556 #: ../fish/guestfish.pod:797
23557 #, no-wrap
23558 msgid ""
23559 " vg-activate false /dev/VG\n"
23560 " luks-close /dev/mapper/luksdev\n"
23561 "\n"
23562 msgstr ""
23563
23564 # type: =head1
23565 #. type: =head1
23566 #: ../fish/guestfish.pod:800
23567 msgid "WINDOWS PATHS"
23568 msgstr ""
23569
23570 #. type: textblock
23571 #: ../fish/guestfish.pod:802
23572 msgid ""
23573 "If a path is prefixed with C<win:> then you can use Windows-style drive "
23574 "letters and paths (with some limitations).  The following commands are "
23575 "equivalent:"
23576 msgstr ""
23577
23578 # type: verbatim
23579 #. type: verbatim
23580 #: ../fish/guestfish.pod:806
23581 #, no-wrap
23582 msgid ""
23583 " file /WINDOWS/system32/config/system.LOG\n"
23584 "\n"
23585 msgstr ""
23586
23587 # type: verbatim
23588 #. type: verbatim
23589 #: ../fish/guestfish.pod:808
23590 #, no-wrap
23591 msgid ""
23592 " file win:\\windows\\system32\\config\\system.log\n"
23593 "\n"
23594 msgstr ""
23595
23596 #. type: verbatim
23597 #: ../fish/guestfish.pod:810
23598 #, no-wrap
23599 msgid ""
23600 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
23601 "\n"
23602 msgstr ""
23603
23604 #. type: textblock
23605 #: ../fish/guestfish.pod:812
23606 msgid ""
23607 "The parameter is rewritten \"behind the scenes\" by looking up the position "
23608 "where the drive is mounted, prepending that to the path, changing all "
23609 "backslash characters to forward slash, then resolving the result using L</"
23610 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
23611 "the parameter might be rewritten like this:"
23612 msgstr ""
23613
23614 #. type: verbatim
23615 #: ../fish/guestfish.pod:818
23616 #, no-wrap
23617 msgid ""
23618 " win:e:\\foo\\bar => /e/FOO/bar\n"
23619 "\n"
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../fish/guestfish.pod:820
23624 msgid "This only works in argument positions that expect a path."
23625 msgstr ""
23626
23627 # type: =head1
23628 #. type: =head1
23629 #: ../fish/guestfish.pod:822
23630 msgid "UPLOADING AND DOWNLOADING FILES"
23631 msgstr ""
23632
23633 # type: textblock
23634 #. type: textblock
23635 #: ../fish/guestfish.pod:824
23636 msgid ""
23637 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23638 "others which upload from or download to a local file, you can use the "
23639 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23640 msgstr ""
23641
23642 # type: verbatim
23643 #. type: verbatim
23644 #: ../fish/guestfish.pod:828
23645 #, no-wrap
23646 msgid ""
23647 " upload - /foo\n"
23648 "\n"
23649 msgstr ""
23650
23651 # type: textblock
23652 #. type: textblock
23653 #: ../fish/guestfish.pod:830
23654 msgid ""
23655 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23656 msgstr ""
23657
23658 # type: verbatim
23659 #. type: verbatim
23660 #: ../fish/guestfish.pod:833
23661 #, no-wrap
23662 msgid ""
23663 " tar-out /etc - | tar tf -\n"
23664 "\n"
23665 msgstr ""
23666
23667 # type: textblock
23668 #. type: textblock
23669 #: ../fish/guestfish.pod:835
23670 msgid ""
23671 "writes the tarball to stdout and then pipes that into the external \"tar\" "
23672 "command (see L</PIPES>)."
23673 msgstr ""
23674
23675 # type: textblock
23676 #. type: textblock
23677 #: ../fish/guestfish.pod:838
23678 msgid ""
23679 "When using C<-> to read from stdin, the input is read up to the end of "
23680 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
23681 "some arbitrary end marker:"
23682 msgstr ""
23683
23684 # type: verbatim
23685 #. type: verbatim
23686 #: ../fish/guestfish.pod:842
23687 #, no-wrap
23688 msgid ""
23689 " upload -<<END /foo\n"
23690 " input line 1\n"
23691 " input line 2\n"
23692 " input line 3\n"
23693 " END\n"
23694 "\n"
23695 msgstr ""
23696
23697 # type: textblock
23698 #. type: textblock
23699 #: ../fish/guestfish.pod:848
23700 msgid ""
23701 "Any string of characters can be used instead of C<END>.  The end marker must "
23702 "appear on a line of its own, without any preceeding or following characters "
23703 "(not even spaces)."
23704 msgstr ""
23705
23706 # type: textblock
23707 #. type: textblock
23708 #: ../fish/guestfish.pod:852
23709 msgid ""
23710 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
23711 "upload local files (so-called \"FileIn\" parameters in the generator)."
23712 msgstr ""
23713
23714 # type: =head1
23715 #. type: =head1
23716 #: ../fish/guestfish.pod:855
23717 msgid "EXIT ON ERROR BEHAVIOUR"
23718 msgstr ""
23719
23720 # type: textblock
23721 #. type: textblock
23722 #: ../fish/guestfish.pod:857
23723 msgid ""
23724 "By default, guestfish will ignore any errors when in interactive mode (ie. "
23725 "taking commands from a human over a tty), and will exit on the first error "
23726 "in non-interactive mode (scripts, commands given on the command line)."
23727 msgstr ""
23728
23729 # type: textblock
23730 #. type: textblock
23731 #: ../fish/guestfish.pod:862
23732 msgid ""
23733 "If you prefix a command with a I<-> character, then that command will not "
23734 "cause guestfish to exit, even if that (one) command returns an error."
23735 msgstr ""
23736
23737 # type: =head1
23738 #. type: =head1
23739 #: ../fish/guestfish.pod:866
23740 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
23741 msgstr ""
23742
23743 # type: textblock
23744 #. type: textblock
23745 #: ../fish/guestfish.pod:868
23746 msgid ""
23747 "Guestfish can be remote-controlled over a socket.  This is useful "
23748 "particularly in shell scripts where you want to make several different "
23749 "changes to a filesystem, but you don't want the overhead of starting up a "
23750 "guestfish process each time."
23751 msgstr ""
23752
23753 # type: textblock
23754 #. type: textblock
23755 #: ../fish/guestfish.pod:873
23756 msgid "Start a guestfish server process using:"
23757 msgstr ""
23758
23759 # type: verbatim
23760 #. type: verbatim
23761 #: ../fish/guestfish.pod:875
23762 #, no-wrap
23763 msgid ""
23764 " eval \"`guestfish --listen`\"\n"
23765 "\n"
23766 msgstr ""
23767
23768 # type: textblock
23769 #. type: textblock
23770 #: ../fish/guestfish.pod:877
23771 msgid "and then send it commands by doing:"
23772 msgstr ""
23773
23774 # type: verbatim
23775 #. type: verbatim
23776 #: ../fish/guestfish.pod:879
23777 #, no-wrap
23778 msgid ""
23779 " guestfish --remote cmd [...]\n"
23780 "\n"
23781 msgstr ""
23782
23783 # type: textblock
23784 #. type: textblock
23785 #: ../fish/guestfish.pod:881
23786 msgid "To cause the server to exit, send it the exit command:"
23787 msgstr ""
23788
23789 # type: verbatim
23790 #. type: verbatim
23791 #: ../fish/guestfish.pod:883
23792 #, no-wrap
23793 msgid ""
23794 " guestfish --remote exit\n"
23795 "\n"
23796 msgstr ""
23797
23798 # type: textblock
23799 #. type: textblock
23800 #: ../fish/guestfish.pod:885
23801 msgid ""
23802 "Note that the server will normally exit if there is an error in a command.  "
23803 "You can change this in the usual way.  See section L</EXIT ON ERROR "
23804 "BEHAVIOUR>."
23805 msgstr ""
23806
23807 # type: =head2
23808 #. type: =head2
23809 #: ../fish/guestfish.pod:889
23810 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
23811 msgstr ""
23812
23813 # type: textblock
23814 #. type: textblock
23815 #: ../fish/guestfish.pod:891
23816 msgid ""
23817 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
23818 "is how the I<--remote> option knows where to send the commands.  You can "
23819 "have several guestfish listener processes running using:"
23820 msgstr ""
23821
23822 # type: verbatim
23823 #. type: verbatim
23824 #: ../fish/guestfish.pod:895
23825 #, no-wrap
23826 msgid ""
23827 " eval \"`guestfish --listen`\"\n"
23828 " pid1=$GUESTFISH_PID\n"
23829 " eval \"`guestfish --listen`\"\n"
23830 " pid2=$GUESTFISH_PID\n"
23831 " ...\n"
23832 " guestfish --remote=$pid1 cmd\n"
23833 " guestfish --remote=$pid2 cmd\n"
23834 "\n"
23835 msgstr ""
23836
23837 # type: =head2
23838 #. type: =head2
23839 #: ../fish/guestfish.pod:903
23840 msgid "REMOTE CONTROL AND CSH"
23841 msgstr ""
23842
23843 # type: textblock
23844 #. type: textblock
23845 #: ../fish/guestfish.pod:905
23846 msgid ""
23847 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
23848 "option:"
23849 msgstr ""
23850
23851 # type: verbatim
23852 #. type: verbatim
23853 #: ../fish/guestfish.pod:908
23854 #, no-wrap
23855 msgid ""
23856 " eval \"`guestfish --listen --csh`\"\n"
23857 "\n"
23858 msgstr ""
23859
23860 # type: =head2
23861 #. type: =head2
23862 #: ../fish/guestfish.pod:910
23863 msgid "REMOTE CONTROL DETAILS"
23864 msgstr ""
23865
23866 # type: textblock
23867 #. type: textblock
23868 #: ../fish/guestfish.pod:912
23869 msgid ""
23870 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
23871 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
23872 "and C<$PID> is the process ID of the server."
23873 msgstr ""
23874
23875 # type: textblock
23876 #. type: textblock
23877 #: ../fish/guestfish.pod:916
23878 msgid "Guestfish client and server versions must match exactly."
23879 msgstr ""
23880
23881 # type: =head1
23882 #. type: =head1
23883 #: ../fish/guestfish.pod:918
23884 msgid "PREPARED DISK IMAGES"
23885 msgstr ""
23886
23887 # type: textblock
23888 #. type: textblock
23889 #: ../fish/guestfish.pod:920
23890 msgid ""
23891 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
23892 "preformatted disk images that guestfish can make for you to save typing.  "
23893 "This is particularly useful for testing purposes.  This option is used "
23894 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
23895 "can be mixed with I<-a>)."
23896 msgstr ""
23897
23898 # type: textblock
23899 #. type: textblock
23900 #: ../fish/guestfish.pod:926
23901 msgid ""
23902 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
23903 "the second and so on.  Existing files in the current directory are "
23904 "I<overwritten>."
23905 msgstr ""
23906
23907 # type: textblock
23908 #. type: textblock
23909 #: ../fish/guestfish.pod:930
23910 msgid ""
23911 "The type briefly describes how the disk should be sized, partitioned, how "
23912 "filesystem(s) should be created, and how content should be added.  "
23913 "Optionally the type can be followed by extra parameters, separated by C<:> "
23914 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
23915 "allocated disk, containing a single partition, with the partition formatted "
23916 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
23917 "disk instead."
23918 msgstr ""
23919
23920 # type: textblock
23921 #. type: textblock
23922 #: ../fish/guestfish.pod:938
23923 msgid "To list the available types and any extra parameters they take, run:"
23924 msgstr ""
23925
23926 # type: textblock
23927 #. type: textblock
23928 #: ../fish/guestfish.pod:942
23929 msgid ""
23930 "Note that the prepared filesystem is not mounted.  You would usually have to "
23931 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
23932 msgstr ""
23933
23934 # type: textblock
23935 #. type: textblock
23936 #: ../fish/guestfish.pod:946
23937 msgid ""
23938 "If any I<-N> or I<--new> options are given, the guest is automatically "
23939 "launched."
23940 msgstr ""
23941
23942 # type: textblock
23943 #. type: textblock
23944 #: ../fish/guestfish.pod:951
23945 msgid "Create a 100MB disk with an ext4-formatted partition:"
23946 msgstr ""
23947
23948 # type: verbatim
23949 #. type: verbatim
23950 #: ../fish/guestfish.pod:953
23951 #, no-wrap
23952 msgid ""
23953 " guestfish -N fs:ext4\n"
23954 "\n"
23955 msgstr ""
23956
23957 # type: textblock
23958 #. type: textblock
23959 #: ../fish/guestfish.pod:955
23960 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
23961 msgstr ""
23962
23963 # type: verbatim
23964 #. type: verbatim
23965 #: ../fish/guestfish.pod:957
23966 #, no-wrap
23967 msgid ""
23968 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
23969 "\n"
23970 msgstr ""
23971
23972 # type: textblock
23973 #. type: textblock
23974 #: ../fish/guestfish.pod:959
23975 msgid "Create a blank 200MB disk:"
23976 msgstr ""
23977
23978 # type: verbatim
23979 #. type: verbatim
23980 #: ../fish/guestfish.pod:961
23981 #, no-wrap
23982 msgid ""
23983 " guestfish -N disk:200M\n"
23984 "\n"
23985 msgstr ""
23986
23987 # type: =head1
23988 #. type: =head1
23989 #: ../fish/guestfish.pod:963
23990 msgid "PROGRESS BARS"
23991 msgstr ""
23992
23993 # type: textblock
23994 #. type: textblock
23995 #: ../fish/guestfish.pod:965
23996 msgid ""
23997 "Some (not all) long-running commands send progress notification messages as "
23998 "they are running.  Guestfish turns these messages into progress bars."
23999 msgstr ""
24000
24001 # type: textblock
24002 #. type: textblock
24003 #: ../fish/guestfish.pod:969
24004 msgid ""
24005 "When a command that supports progress bars takes longer than two seconds to "
24006 "run, and if progress bars are enabled, then you will see one appearing below "
24007 "the command:"
24008 msgstr ""
24009
24010 # type: verbatim
24011 #. type: verbatim
24012 #: ../fish/guestfish.pod:973
24013 #, no-wrap
24014 msgid ""
24015 " ><fs> copy-size /large-file /another-file 2048M\n"
24016 " / 10% [#####-----------------------------------------] 00:30\n"
24017 "\n"
24018 msgstr ""
24019
24020 # type: textblock
24021 #. type: textblock
24022 #: ../fish/guestfish.pod:976
24023 msgid ""
24024 "The spinner on the left hand side moves round once for every progress "
24025 "notification received from the backend.  This is a (reasonably) golden "
24026 "assurance that the command is \"doing something\" even if the progress bar "
24027 "is not moving, because the command is able to send the progress "
24028 "notifications.  When the bar reaches 100% and the command finishes, the "
24029 "spinner disappears."
24030 msgstr ""
24031
24032 # type: textblock
24033 #. type: textblock
24034 #: ../fish/guestfish.pod:983
24035 msgid ""
24036 "Progress bars are enabled by default when guestfish is used interactively.  "
24037 "You can enable them even for non-interactive modes using I<--progress-bars>, "
24038 "and you can disable them completely using I<--no-progress-bars>."
24039 msgstr ""
24040
24041 # type: =head1
24042 #. type: =head1
24043 #: ../fish/guestfish.pod:988
24044 msgid "GUESTFISH COMMANDS"
24045 msgstr ""
24046
24047 # type: textblock
24048 #. type: textblock
24049 #: ../fish/guestfish.pod:990
24050 msgid ""
24051 "The commands in this section are guestfish convenience commands, in other "
24052 "words, they are not part of the L<guestfs(3)> API."
24053 msgstr ""
24054
24055 # type: =head2
24056 #. type: =head2
24057 #: ../fish/guestfish.pod:993
24058 msgid "help"
24059 msgstr ""
24060
24061 # type: verbatim
24062 #. type: verbatim
24063 #: ../fish/guestfish.pod:995
24064 #, no-wrap
24065 msgid ""
24066 " help\n"
24067 " help cmd\n"
24068 "\n"
24069 msgstr ""
24070
24071 # type: textblock
24072 #. type: textblock
24073 #: ../fish/guestfish.pod:998
24074 msgid "Without any parameter, this provides general help."
24075 msgstr ""
24076
24077 # type: textblock
24078 #. type: textblock
24079 #: ../fish/guestfish.pod:1000
24080 msgid "With a C<cmd> parameter, this displays detailed help for that command."
24081 msgstr ""
24082
24083 # type: =head2
24084 #. type: =head2
24085 #: ../fish/guestfish.pod:1002
24086 msgid "quit | exit"
24087 msgstr ""
24088
24089 # type: textblock
24090 #. type: textblock
24091 #: ../fish/guestfish.pod:1004
24092 msgid "This exits guestfish.  You can also use C<^D> key."
24093 msgstr ""
24094
24095 # type: textblock
24096 #. type: textblock
24097 #: ../fish/guestfish.pod:1006
24098 msgid "@FISH_COMMANDS@"
24099 msgstr ""
24100
24101 # type: =head1
24102 #. type: =head1
24103 #: ../fish/guestfish.pod:1008
24104 msgid "COMMANDS"
24105 msgstr ""
24106
24107 # type: =head1
24108 #. type: =head1
24109 #: ../fish/guestfish.pod:1012 ../test-tool/libguestfs-test-tool.pod:77
24110 msgid "EXIT CODE"
24111 msgstr ""
24112
24113 # type: textblock
24114 #. type: textblock
24115 #: ../fish/guestfish.pod:1014
24116 msgid ""
24117 "guestfish returns 0 if the commands completed without error, or 1 if there "
24118 "was an error."
24119 msgstr ""
24120
24121 # type: =item
24122 #. type: =item
24123 #: ../fish/guestfish.pod:1021
24124 msgid "EDITOR"
24125 msgstr ""
24126
24127 # type: textblock
24128 #. type: textblock
24129 #: ../fish/guestfish.pod:1023
24130 msgid ""
24131 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
24132 "C<vi>."
24133 msgstr ""
24134
24135 # type: =item
24136 #. type: =item
24137 #: ../fish/guestfish.pod:1026
24138 msgid "GUESTFISH_PID"
24139 msgstr ""
24140
24141 # type: textblock
24142 #. type: textblock
24143 #: ../fish/guestfish.pod:1028
24144 msgid ""
24145 "Used with the I<--remote> option to specify the remote guestfish process to "
24146 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
24147 msgstr ""
24148
24149 # type: =item
24150 #. type: =item
24151 #: ../fish/guestfish.pod:1032
24152 msgid "HEXEDITOR"
24153 msgstr ""
24154
24155 # type: textblock
24156 #. type: textblock
24157 #: ../fish/guestfish.pod:1034
24158 msgid ""
24159 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
24160 "not specified, the external L<hexedit(1)> program is used."
24161 msgstr ""
24162
24163 # type: =item
24164 #. type: =item
24165 #: ../fish/guestfish.pod:1038
24166 msgid "HOME"
24167 msgstr ""
24168
24169 # type: textblock
24170 #. type: textblock
24171 #: ../fish/guestfish.pod:1040
24172 msgid ""
24173 "If compiled with GNU readline support, various files in the home directory "
24174 "can be used.  See L</FILES>."
24175 msgstr ""
24176
24177 # type: textblock
24178 #. type: textblock
24179 #: ../fish/guestfish.pod:1049
24180 msgid ""
24181 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
24182 "effect as using the B<-v> option."
24183 msgstr ""
24184
24185 # type: textblock
24186 #. type: textblock
24187 #: ../fish/guestfish.pod:1061
24188 msgid ""
24189 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
24190 "the discussion of paths in L<guestfs(3)>."
24191 msgstr ""
24192
24193 # type: textblock
24194 #. type: textblock
24195 #: ../fish/guestfish.pod:1072
24196 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
24197 msgstr ""
24198
24199 # type: =item
24200 #. type: =item
24201 #: ../fish/guestfish.pod:1074
24202 msgid "PAGER"
24203 msgstr ""
24204
24205 # type: textblock
24206 #. type: textblock
24207 #: ../fish/guestfish.pod:1076
24208 msgid ""
24209 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
24210 "C<more>."
24211 msgstr ""
24212
24213 # type: =head1
24214 #. type: =head1
24215 #: ../fish/guestfish.pod:1092 ../fuse/guestmount.pod:254
24216 msgid "FILES"
24217 msgstr ""
24218
24219 #. type: =item
24220 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:258
24221 msgid "$HOME/.libguestfs-tools.rc"
24222 msgstr ""
24223
24224 #. type: =item
24225 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:260
24226 msgid "/etc/libguestfs-tools.conf"
24227 msgstr ""
24228
24229 #. type: textblock
24230 #: ../fish/guestfish.pod:1100 ../fuse/guestmount.pod:262
24231 msgid ""
24232 "This configuration file controls the default read-only or read-write mode "
24233 "(I<--ro> or I<--rw>)."
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../fish/guestfish.pod:1103
24238 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
24239 msgstr ""
24240
24241 # type: =item
24242 #. type: =item
24243 #: ../fish/guestfish.pod:1105
24244 msgid "$HOME/.guestfish"
24245 msgstr ""
24246
24247 # type: textblock
24248 #. type: textblock
24249 #: ../fish/guestfish.pod:1107
24250 msgid ""
24251 "If compiled with GNU readline support, then the command history is saved in "
24252 "this file."
24253 msgstr ""
24254
24255 # type: =item
24256 #. type: =item
24257 #: ../fish/guestfish.pod:1110
24258 msgid "$HOME/.inputrc"
24259 msgstr ""
24260
24261 # type: =item
24262 #. type: =item
24263 #: ../fish/guestfish.pod:1112
24264 msgid "/etc/inputrc"
24265 msgstr ""
24266
24267 # type: textblock
24268 #. type: textblock
24269 #: ../fish/guestfish.pod:1114
24270 msgid ""
24271 "If compiled with GNU readline support, then these files can be used to "
24272 "configure readline.  For further information, please see L<readline(3)/"
24273 "INITIALIZATION FILE>."
24274 msgstr ""
24275
24276 # type: textblock
24277 #. type: textblock
24278 #: ../fish/guestfish.pod:1118
24279 msgid "To write rules which only apply to guestfish, use:"
24280 msgstr ""
24281
24282 # type: verbatim
24283 #. type: verbatim
24284 #: ../fish/guestfish.pod:1120
24285 #, no-wrap
24286 msgid ""
24287 " $if guestfish\n"
24288 " ...\n"
24289 " $endif\n"
24290 "\n"
24291 msgstr ""
24292
24293 # type: textblock
24294 #. type: textblock
24295 #: ../fish/guestfish.pod:1124
24296 msgid ""
24297 "Variables that you can set in inputrc that change the behaviour of guestfish "
24298 "in useful ways include:"
24299 msgstr ""
24300
24301 # type: =item
24302 #. type: =item
24303 #: ../fish/guestfish.pod:1129
24304 msgid "completion-ignore-case (default: on)"
24305 msgstr ""
24306
24307 # type: textblock
24308 #. type: textblock
24309 #: ../fish/guestfish.pod:1131
24310 msgid ""
24311 "By default, guestfish will ignore case when tab-completing paths on the "
24312 "disk.  Use:"
24313 msgstr ""
24314
24315 # type: verbatim
24316 #. type: verbatim
24317 #: ../fish/guestfish.pod:1134
24318 #, no-wrap
24319 msgid ""
24320 " set completion-ignore-case off\n"
24321 "\n"
24322 msgstr ""
24323
24324 # type: textblock
24325 #. type: textblock
24326 #: ../fish/guestfish.pod:1136
24327 msgid "to make guestfish case sensitive."
24328 msgstr ""
24329
24330 # type: =item
24331 #. type: =item
24332 #: ../fish/guestfish.pod:1140
24333 msgid "test1.img"
24334 msgstr ""
24335
24336 # type: =item
24337 #. type: =item
24338 #: ../fish/guestfish.pod:1142
24339 msgid "test2.img (etc)"
24340 msgstr ""
24341
24342 #. type: textblock
24343 #: ../fish/guestfish.pod:1144
24344 msgid ""
24345 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
24346 "will be created in the file C<test1.img> in the current directory.  The "
24347 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
24348 "the same name will be overwritten."
24349 msgstr ""
24350
24351 #. type: textblock
24352 #: ../fish/guestfish.pod:1153
24353 msgid ""
24354 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24355 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24356 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24357 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24358 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24359 ">, L<hexedit(1)>."
24360 msgstr ""
24361
24362 # type: textblock
24363 #. type: textblock
24364 #: ../fish/guestfish.pod:1183 ../test-tool/libguestfs-test-tool.pod:102
24365 #: ../fuse/guestmount.pod:289 ../tools/virt-win-reg.pl:606
24366 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
24367 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
24368 msgid ""
24369 "This program is free software; you can redistribute it and/or modify it "
24370 "under the terms of the GNU General Public License as published by the Free "
24371 "Software Foundation; either version 2 of the License, or (at your option) "
24372 "any later version."
24373 msgstr ""
24374
24375 # type: textblock
24376 #. type: textblock
24377 #: ../fish/guestfish.pod:1188 ../test-tool/libguestfs-test-tool.pod:107
24378 #: ../fuse/guestmount.pod:294 ../tools/virt-win-reg.pl:611
24379 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
24380 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
24381 msgid ""
24382 "This program is distributed in the hope that it will be useful, but WITHOUT "
24383 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24384 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24385 "more details."
24386 msgstr ""
24387
24388 # type: textblock
24389 #. type: textblock
24390 #: ../fish/guestfish.pod:1193 ../test-tool/libguestfs-test-tool.pod:112
24391 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:616
24392 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
24393 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
24394 msgid ""
24395 "You should have received a copy of the GNU General Public License along with "
24396 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24397 "Ave, Cambridge, MA 02139, USA."
24398 msgstr ""
24399
24400 # type: =head2
24401 #. type: =head2
24402 #: ../fish/guestfish-actions.pod:1
24403 msgid "add-cdrom"
24404 msgstr ""
24405
24406 # type: verbatim
24407 #. type: verbatim
24408 #: ../fish/guestfish-actions.pod:3
24409 #, no-wrap
24410 msgid ""
24411 " add-cdrom filename\n"
24412 "\n"
24413 msgstr ""
24414
24415 # type: textblock
24416 #. type: textblock
24417 #: ../fish/guestfish-actions.pod:15
24418 msgid ""
24419 "This call checks for the existence of C<filename>.  This stops you from "
24420 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24421 "and C<http:> URLs.  To specify those, use the general L</config> call "
24422 "instead."
24423 msgstr ""
24424
24425 # type: textblock
24426 #. type: textblock
24427 #: ../fish/guestfish-actions.pod:22
24428 msgid ""
24429 "If you just want to add an ISO file (often you use this as an efficient way "
24430 "to transfer large files into the guest), then you should probably use L</add-"
24431 "drive-ro> instead."
24432 msgstr ""
24433
24434 # type: =head2
24435 #. type: =head2
24436 #: ../fish/guestfish-actions.pod:35
24437 msgid "add-domain"
24438 msgstr ""
24439
24440 # type: =head2
24441 #. type: =head2
24442 #: ../fish/guestfish-actions.pod:37
24443 msgid "domain"
24444 msgstr ""
24445
24446 #. type: verbatim
24447 #: ../fish/guestfish-actions.pod:39
24448 #, no-wrap
24449 msgid ""
24450 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
24451 "\n"
24452 msgstr ""
24453
24454 # type: textblock
24455 #. type: textblock
24456 #: ../fish/guestfish-actions.pod:41
24457 msgid ""
24458 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24459 "It works by connecting to libvirt, requesting the domain and domain XML from "
24460 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24461 msgstr ""
24462
24463 # type: textblock
24464 #. type: textblock
24465 #: ../fish/guestfish-actions.pod:76
24466 msgid ""
24467 "The other optional parameters are passed directly through to L</add-drive-"
24468 "opts>."
24469 msgstr ""
24470
24471 # type: textblock
24472 #. type: textblock
24473 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
24474 #: ../fish/guestfish-actions.pod:3052
24475 msgid ""
24476 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24477 msgstr ""
24478
24479 # type: =head2
24480 #. type: =head2
24481 #: ../fish/guestfish-actions.pod:81
24482 msgid "add-drive"
24483 msgstr ""
24484
24485 # type: verbatim
24486 #. type: verbatim
24487 #: ../fish/guestfish-actions.pod:83
24488 #, no-wrap
24489 msgid ""
24490 " add-drive filename\n"
24491 "\n"
24492 msgstr ""
24493
24494 # type: textblock
24495 #. type: textblock
24496 #: ../fish/guestfish-actions.pod:85
24497 msgid ""
24498 "This function is the equivalent of calling L</add-drive-opts> with no "
24499 "optional parameters, so the disk is added writable, with the format being "
24500 "detected automatically."
24501 msgstr ""
24502
24503 # type: textblock
24504 #. type: textblock
24505 #: ../fish/guestfish-actions.pod:89
24506 msgid ""
24507 "Automatic detection of the format opens you up to a potential security hole "
24508 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24509 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24510 "you should think about replacing calls to this function with calls to L</add-"
24511 "drive-opts>, and specifying the format."
24512 msgstr ""
24513
24514 # type: =head2
24515 #. type: =head2
24516 #: ../fish/guestfish-actions.pod:96
24517 msgid "add-drive-opts"
24518 msgstr ""
24519
24520 # type: =head2
24521 #. type: =head2
24522 #: ../fish/guestfish-actions.pod:98
24523 msgid "add"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #. type: verbatim
24528 #: ../fish/guestfish-actions.pod:100
24529 #, no-wrap
24530 msgid ""
24531 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24532 "\n"
24533 msgstr ""
24534
24535 # type: textblock
24536 #. type: textblock
24537 #: ../fish/guestfish-actions.pod:127
24538 msgid ""
24539 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24540 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24541 "include C<raw> and C<qcow2>."
24542 msgstr ""
24543
24544 # type: textblock
24545 #. type: textblock
24546 #: ../fish/guestfish-actions.pod:138
24547 msgid ""
24548 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24549 "add-drive-with-if> call (q.v.)"
24550 msgstr ""
24551
24552 # type: =head2
24553 #. type: =head2
24554 #: ../fish/guestfish-actions.pod:145
24555 msgid "add-drive-ro"
24556 msgstr ""
24557
24558 # type: =head2
24559 #. type: =head2
24560 #: ../fish/guestfish-actions.pod:147
24561 msgid "add-ro"
24562 msgstr ""
24563
24564 # type: verbatim
24565 #. type: verbatim
24566 #: ../fish/guestfish-actions.pod:149
24567 #, no-wrap
24568 msgid ""
24569 " add-drive-ro filename\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: textblock
24574 #. type: textblock
24575 #: ../fish/guestfish-actions.pod:151
24576 msgid ""
24577 "This function is the equivalent of calling L</add-drive-opts> with the "
24578 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24579 "is added read-only, with the format being detected automatically."
24580 msgstr ""
24581
24582 # type: =head2
24583 #. type: =head2
24584 #: ../fish/guestfish-actions.pod:156
24585 msgid "add-drive-ro-with-if"
24586 msgstr ""
24587
24588 # type: verbatim
24589 #. type: verbatim
24590 #: ../fish/guestfish-actions.pod:158
24591 #, no-wrap
24592 msgid ""
24593 " add-drive-ro-with-if filename iface\n"
24594 "\n"
24595 msgstr ""
24596
24597 # type: textblock
24598 #. type: textblock
24599 #: ../fish/guestfish-actions.pod:160
24600 msgid ""
24601 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24602 "interface emulation to use at run time."
24603 msgstr ""
24604
24605 # type: =head2
24606 #. type: =head2
24607 #: ../fish/guestfish-actions.pod:170
24608 msgid "add-drive-with-if"
24609 msgstr ""
24610
24611 # type: verbatim
24612 #. type: verbatim
24613 #: ../fish/guestfish-actions.pod:172
24614 #, no-wrap
24615 msgid ""
24616 " add-drive-with-if filename iface\n"
24617 "\n"
24618 msgstr ""
24619
24620 # type: textblock
24621 #. type: textblock
24622 #: ../fish/guestfish-actions.pod:174
24623 msgid ""
24624 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24625 "interface emulation to use at run time."
24626 msgstr ""
24627
24628 # type: =head2
24629 #. type: =head2
24630 #: ../fish/guestfish-actions.pod:184
24631 msgid "aug-clear"
24632 msgstr ""
24633
24634 # type: verbatim
24635 #. type: verbatim
24636 #: ../fish/guestfish-actions.pod:186
24637 #, no-wrap
24638 msgid ""
24639 " aug-clear augpath\n"
24640 "\n"
24641 msgstr ""
24642
24643 # type: =head2
24644 #. type: =head2
24645 #: ../fish/guestfish-actions.pod:191
24646 msgid "aug-close"
24647 msgstr ""
24648
24649 # type: verbatim
24650 #. type: verbatim
24651 #: ../fish/guestfish-actions.pod:193
24652 #, no-wrap
24653 msgid ""
24654 " aug-close\n"
24655 "\n"
24656 msgstr ""
24657
24658 # type: textblock
24659 #. type: textblock
24660 #: ../fish/guestfish-actions.pod:195
24661 msgid ""
24662 "Close the current Augeas handle and free up any resources used by it.  After "
24663 "calling this, you have to call L</aug-init> again before you can use any "
24664 "other Augeas functions."
24665 msgstr ""
24666
24667 # type: =head2
24668 #. type: =head2
24669 #: ../fish/guestfish-actions.pod:200
24670 msgid "aug-defnode"
24671 msgstr ""
24672
24673 # type: verbatim
24674 #. type: verbatim
24675 #: ../fish/guestfish-actions.pod:202
24676 #, no-wrap
24677 msgid ""
24678 " aug-defnode name expr val\n"
24679 "\n"
24680 msgstr ""
24681
24682 # type: textblock
24683 #. type: textblock
24684 #: ../fish/guestfish-actions.pod:207
24685 msgid ""
24686 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24687 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
24688 "containing that single node."
24689 msgstr ""
24690
24691 # type: =head2
24692 #. type: =head2
24693 #: ../fish/guestfish-actions.pod:215
24694 msgid "aug-defvar"
24695 msgstr ""
24696
24697 # type: verbatim
24698 #. type: verbatim
24699 #: ../fish/guestfish-actions.pod:217
24700 #, no-wrap
24701 msgid ""
24702 " aug-defvar name expr\n"
24703 "\n"
24704 msgstr ""
24705
24706 # type: =head2
24707 #. type: =head2
24708 #: ../fish/guestfish-actions.pod:226
24709 msgid "aug-get"
24710 msgstr ""
24711
24712 # type: verbatim
24713 #. type: verbatim
24714 #: ../fish/guestfish-actions.pod:228
24715 #, no-wrap
24716 msgid ""
24717 " aug-get augpath\n"
24718 "\n"
24719 msgstr ""
24720
24721 # type: =head2
24722 #. type: =head2
24723 #: ../fish/guestfish-actions.pod:233
24724 msgid "aug-init"
24725 msgstr ""
24726
24727 # type: verbatim
24728 #. type: verbatim
24729 #: ../fish/guestfish-actions.pod:235
24730 #, no-wrap
24731 msgid ""
24732 " aug-init root flags\n"
24733 "\n"
24734 msgstr ""
24735
24736 # type: textblock
24737 #. type: textblock
24738 #: ../fish/guestfish-actions.pod:241
24739 msgid "You must call this before using any other L</aug-*> commands."
24740 msgstr ""
24741
24742 # type: textblock
24743 #. type: textblock
24744 #: ../fish/guestfish-actions.pod:276
24745 msgid "Do not load the tree in L</aug-init>."
24746 msgstr ""
24747
24748 # type: textblock
24749 #. type: textblock
24750 #: ../fish/guestfish-actions.pod:280
24751 msgid "To close the handle, you can call L</aug-close>."
24752 msgstr ""
24753
24754 # type: =head2
24755 #. type: =head2
24756 #: ../fish/guestfish-actions.pod:284
24757 msgid "aug-insert"
24758 msgstr ""
24759
24760 # type: verbatim
24761 #. type: verbatim
24762 #: ../fish/guestfish-actions.pod:286
24763 #, no-wrap
24764 msgid ""
24765 " aug-insert augpath label true|false\n"
24766 "\n"
24767 msgstr ""
24768
24769 # type: =head2
24770 #. type: =head2
24771 #: ../fish/guestfish-actions.pod:296
24772 msgid "aug-load"
24773 msgstr ""
24774
24775 # type: verbatim
24776 #. type: verbatim
24777 #: ../fish/guestfish-actions.pod:298
24778 #, no-wrap
24779 msgid ""
24780 " aug-load\n"
24781 "\n"
24782 msgstr ""
24783
24784 # type: =head2
24785 #. type: =head2
24786 #: ../fish/guestfish-actions.pod:305
24787 msgid "aug-ls"
24788 msgstr ""
24789
24790 # type: verbatim
24791 #. type: verbatim
24792 #: ../fish/guestfish-actions.pod:307
24793 #, no-wrap
24794 msgid ""
24795 " aug-ls augpath\n"
24796 "\n"
24797 msgstr ""
24798
24799 # type: textblock
24800 #. type: textblock
24801 #: ../fish/guestfish-actions.pod:309
24802 msgid ""
24803 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
24804 "resulting nodes into alphabetical order."
24805 msgstr ""
24806
24807 # type: =head2
24808 #. type: =head2
24809 #: ../fish/guestfish-actions.pod:312
24810 msgid "aug-match"
24811 msgstr ""
24812
24813 # type: verbatim
24814 #. type: verbatim
24815 #: ../fish/guestfish-actions.pod:314
24816 #, no-wrap
24817 msgid ""
24818 " aug-match augpath\n"
24819 "\n"
24820 msgstr ""
24821
24822 # type: =head2
24823 #. type: =head2
24824 #: ../fish/guestfish-actions.pod:320
24825 msgid "aug-mv"
24826 msgstr ""
24827
24828 # type: verbatim
24829 #. type: verbatim
24830 #: ../fish/guestfish-actions.pod:322
24831 #, no-wrap
24832 msgid ""
24833 " aug-mv src dest\n"
24834 "\n"
24835 msgstr ""
24836
24837 # type: =head2
24838 #. type: =head2
24839 #: ../fish/guestfish-actions.pod:327
24840 msgid "aug-rm"
24841 msgstr ""
24842
24843 # type: verbatim
24844 #. type: verbatim
24845 #: ../fish/guestfish-actions.pod:329
24846 #, no-wrap
24847 msgid ""
24848 " aug-rm augpath\n"
24849 "\n"
24850 msgstr ""
24851
24852 # type: =head2
24853 #. type: =head2
24854 #: ../fish/guestfish-actions.pod:335
24855 msgid "aug-save"
24856 msgstr ""
24857
24858 # type: verbatim
24859 #. type: verbatim
24860 #: ../fish/guestfish-actions.pod:337
24861 #, no-wrap
24862 msgid ""
24863 " aug-save\n"
24864 "\n"
24865 msgstr ""
24866
24867 # type: textblock
24868 #. type: textblock
24869 #: ../fish/guestfish-actions.pod:341
24870 msgid ""
24871 "The flags which were passed to L</aug-init> affect exactly how files are "
24872 "saved."
24873 msgstr ""
24874
24875 # type: =head2
24876 #. type: =head2
24877 #: ../fish/guestfish-actions.pod:344
24878 msgid "aug-set"
24879 msgstr ""
24880
24881 # type: verbatim
24882 #. type: verbatim
24883 #: ../fish/guestfish-actions.pod:346
24884 #, no-wrap
24885 msgid ""
24886 " aug-set augpath val\n"
24887 "\n"
24888 msgstr ""
24889
24890 # type: textblock
24891 #. type: textblock
24892 #: ../fish/guestfish-actions.pod:350
24893 msgid ""
24894 "In the Augeas API, it is possible to clear a node by setting the value to "
24895 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24896 "this call.  Instead you must use the L</aug-clear> call."
24897 msgstr ""
24898
24899 # type: =head2
24900 #. type: =head2
24901 #: ../fish/guestfish-actions.pod:355
24902 msgid "available"
24903 msgstr ""
24904
24905 # type: verbatim
24906 #. type: verbatim
24907 #: ../fish/guestfish-actions.pod:357
24908 #, no-wrap
24909 msgid ""
24910 " available 'groups ...'\n"
24911 "\n"
24912 msgstr ""
24913
24914 # type: textblock
24915 #. type: textblock
24916 #: ../fish/guestfish-actions.pod:363
24917 msgid ""
24918 "The libguestfs groups, and the functions that those groups correspond to, "
24919 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24920 "runtime by calling L</available-all-groups>."
24921 msgstr ""
24922
24923 # type: textblock
24924 #. type: textblock
24925 #: ../fish/guestfish-actions.pod:387
24926 msgid "You must call L</launch> before calling this function."
24927 msgstr ""
24928
24929 # type: textblock
24930 #. type: textblock
24931 #: ../fish/guestfish-actions.pod:409
24932 msgid ""
24933 "This call was added in version C<1.0.80>.  In previous versions of "
24934 "libguestfs all you could do would be to speculatively execute a command to "
24935 "find out if the daemon implemented it.  See also L</version>."
24936 msgstr ""
24937
24938 # type: =head2
24939 #. type: =head2
24940 #: ../fish/guestfish-actions.pod:416
24941 msgid "available-all-groups"
24942 msgstr ""
24943
24944 # type: verbatim
24945 #. type: verbatim
24946 #: ../fish/guestfish-actions.pod:418
24947 #, no-wrap
24948 msgid ""
24949 " available-all-groups\n"
24950 "\n"
24951 msgstr ""
24952
24953 # type: textblock
24954 #. type: textblock
24955 #: ../fish/guestfish-actions.pod:420
24956 msgid ""
24957 "This command returns a list of all optional groups that this daemon knows "
24958 "about.  Note this returns both supported and unsupported groups.  To find "
24959 "out which ones the daemon can actually support you have to call L</"
24960 "available> on each member of the returned list."
24961 msgstr ""
24962
24963 # type: textblock
24964 #. type: textblock
24965 #: ../fish/guestfish-actions.pod:426
24966 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
24967 msgstr ""
24968
24969 # type: =head2
24970 #. type: =head2
24971 #: ../fish/guestfish-actions.pod:428
24972 msgid "base64-in"
24973 msgstr ""
24974
24975 # type: verbatim
24976 #. type: verbatim
24977 #: ../fish/guestfish-actions.pod:430
24978 #, no-wrap
24979 msgid ""
24980 " base64-in (base64file|-) filename\n"
24981 "\n"
24982 msgstr ""
24983
24984 # type: textblock
24985 #. type: textblock
24986 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
24987 #: ../fish/guestfish-actions.pod:668 ../fish/guestfish-actions.pod:837
24988 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:1233
24989 #: ../fish/guestfish-actions.pod:4450 ../fish/guestfish-actions.pod:4462
24990 #: ../fish/guestfish-actions.pod:4473 ../fish/guestfish-actions.pod:4484
24991 #: ../fish/guestfish-actions.pod:4536 ../fish/guestfish-actions.pod:4545
24992 #: ../fish/guestfish-actions.pod:4599 ../fish/guestfish-actions.pod:4622
24993 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
24994 msgstr ""
24995
24996 # type: =head2
24997 #. type: =head2
24998 #: ../fish/guestfish-actions.pod:437
24999 msgid "base64-out"
25000 msgstr ""
25001
25002 # type: verbatim
25003 #. type: verbatim
25004 #: ../fish/guestfish-actions.pod:439
25005 #, no-wrap
25006 msgid ""
25007 " base64-out filename (base64file|-)\n"
25008 "\n"
25009 msgstr ""
25010
25011 # type: =head2
25012 #. type: =head2
25013 #: ../fish/guestfish-actions.pod:446
25014 msgid "blockdev-flushbufs"
25015 msgstr ""
25016
25017 # type: verbatim
25018 #. type: verbatim
25019 #: ../fish/guestfish-actions.pod:448
25020 #, no-wrap
25021 msgid ""
25022 " blockdev-flushbufs device\n"
25023 "\n"
25024 msgstr ""
25025
25026 # type: =head2
25027 #. type: =head2
25028 #: ../fish/guestfish-actions.pod:455
25029 msgid "blockdev-getbsz"
25030 msgstr ""
25031
25032 # type: verbatim
25033 #. type: verbatim
25034 #: ../fish/guestfish-actions.pod:457
25035 #, no-wrap
25036 msgid ""
25037 " blockdev-getbsz device\n"
25038 "\n"
25039 msgstr ""
25040
25041 # type: =head2
25042 #. type: =head2
25043 #: ../fish/guestfish-actions.pod:466
25044 msgid "blockdev-getro"
25045 msgstr ""
25046
25047 # type: verbatim
25048 #. type: verbatim
25049 #: ../fish/guestfish-actions.pod:468
25050 #, no-wrap
25051 msgid ""
25052 " blockdev-getro device\n"
25053 "\n"
25054 msgstr ""
25055
25056 # type: =head2
25057 #. type: =head2
25058 #: ../fish/guestfish-actions.pod:475
25059 msgid "blockdev-getsize64"
25060 msgstr ""
25061
25062 # type: verbatim
25063 #. type: verbatim
25064 #: ../fish/guestfish-actions.pod:477
25065 #, no-wrap
25066 msgid ""
25067 " blockdev-getsize64 device\n"
25068 "\n"
25069 msgstr ""
25070
25071 # type: textblock
25072 #. type: textblock
25073 #: ../fish/guestfish-actions.pod:481
25074 msgid "See also L</blockdev-getsz>."
25075 msgstr ""
25076
25077 # type: =head2
25078 #. type: =head2
25079 #: ../fish/guestfish-actions.pod:485
25080 msgid "blockdev-getss"
25081 msgstr ""
25082
25083 # type: verbatim
25084 #. type: verbatim
25085 #: ../fish/guestfish-actions.pod:487
25086 #, no-wrap
25087 msgid ""
25088 " blockdev-getss device\n"
25089 "\n"
25090 msgstr ""
25091
25092 # type: textblock
25093 #. type: textblock
25094 #: ../fish/guestfish-actions.pod:492
25095 msgid ""
25096 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
25097 msgstr ""
25098
25099 # type: =head2
25100 #. type: =head2
25101 #: ../fish/guestfish-actions.pod:497
25102 msgid "blockdev-getsz"
25103 msgstr ""
25104
25105 # type: verbatim
25106 #. type: verbatim
25107 #: ../fish/guestfish-actions.pod:499
25108 #, no-wrap
25109 msgid ""
25110 " blockdev-getsz device\n"
25111 "\n"
25112 msgstr ""
25113
25114 # type: textblock
25115 #. type: textblock
25116 #: ../fish/guestfish-actions.pod:504
25117 msgid ""
25118 "See also L</blockdev-getss> for the real sector size of the device, and L</"
25119 "blockdev-getsize64> for the more useful I<size in bytes>."
25120 msgstr ""
25121
25122 # type: =head2
25123 #. type: =head2
25124 #: ../fish/guestfish-actions.pod:510
25125 msgid "blockdev-rereadpt"
25126 msgstr ""
25127
25128 # type: verbatim
25129 #. type: verbatim
25130 #: ../fish/guestfish-actions.pod:512
25131 #, no-wrap
25132 msgid ""
25133 " blockdev-rereadpt device\n"
25134 "\n"
25135 msgstr ""
25136
25137 # type: =head2
25138 #. type: =head2
25139 #: ../fish/guestfish-actions.pod:518
25140 msgid "blockdev-setbsz"
25141 msgstr ""
25142
25143 # type: verbatim
25144 #. type: verbatim
25145 #: ../fish/guestfish-actions.pod:520
25146 #, no-wrap
25147 msgid ""
25148 " blockdev-setbsz device blocksize\n"
25149 "\n"
25150 msgstr ""
25151
25152 # type: =head2
25153 #. type: =head2
25154 #: ../fish/guestfish-actions.pod:529
25155 msgid "blockdev-setro"
25156 msgstr ""
25157
25158 # type: verbatim
25159 #. type: verbatim
25160 #: ../fish/guestfish-actions.pod:531
25161 #, no-wrap
25162 msgid ""
25163 " blockdev-setro device\n"
25164 "\n"
25165 msgstr ""
25166
25167 # type: =head2
25168 #. type: =head2
25169 #: ../fish/guestfish-actions.pod:537
25170 msgid "blockdev-setrw"
25171 msgstr ""
25172
25173 # type: verbatim
25174 #. type: verbatim
25175 #: ../fish/guestfish-actions.pod:539
25176 #, no-wrap
25177 msgid ""
25178 " blockdev-setrw device\n"
25179 "\n"
25180 msgstr ""
25181
25182 # type: =head2
25183 #. type: =head2
25184 #: ../fish/guestfish-actions.pod:545
25185 msgid "case-sensitive-path"
25186 msgstr ""
25187
25188 # type: verbatim
25189 #. type: verbatim
25190 #: ../fish/guestfish-actions.pod:547
25191 #, no-wrap
25192 msgid ""
25193 " case-sensitive-path path\n"
25194 "\n"
25195 msgstr ""
25196
25197 # type: textblock
25198 #. type: textblock
25199 #: ../fish/guestfish-actions.pod:571
25200 msgid ""
25201 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
25202 "WINDOWS/system32\"> (the exact return value would depend on details of how "
25203 "the directories were originally created under Windows)."
25204 msgstr ""
25205
25206 # type: textblock
25207 #. type: textblock
25208 #: ../fish/guestfish-actions.pod:579
25209 msgid "See also L</realpath>."
25210 msgstr ""
25211
25212 # type: =head2
25213 #. type: =head2
25214 #: ../fish/guestfish-actions.pod:581
25215 msgid "cat"
25216 msgstr ""
25217
25218 # type: verbatim
25219 #. type: verbatim
25220 #: ../fish/guestfish-actions.pod:583
25221 #, no-wrap
25222 msgid ""
25223 " cat path\n"
25224 "\n"
25225 msgstr ""
25226
25227 # type: textblock
25228 #. type: textblock
25229 #: ../fish/guestfish-actions.pod:587
25230 msgid ""
25231 "Note that this function cannot correctly handle binary files (specifically, "
25232 "files containing C<\\0> character which is treated as end of string).  For "
25233 "those you need to use the L</read-file> or L</download> functions which have "
25234 "a more complex interface."
25235 msgstr ""
25236
25237 # type: =head2
25238 #. type: =head2
25239 #: ../fish/guestfish-actions.pod:595
25240 msgid "checksum"
25241 msgstr ""
25242
25243 # type: verbatim
25244 #. type: verbatim
25245 #: ../fish/guestfish-actions.pod:597
25246 #, no-wrap
25247 msgid ""
25248 " checksum csumtype path\n"
25249 "\n"
25250 msgstr ""
25251
25252 # type: textblock
25253 #. type: textblock
25254 #: ../fish/guestfish-actions.pod:640
25255 msgid "To get the checksum for a device, use L</checksum-device>."
25256 msgstr ""
25257
25258 # type: textblock
25259 #. type: textblock
25260 #: ../fish/guestfish-actions.pod:642
25261 msgid "To get the checksums for many files, use L</checksums-out>."
25262 msgstr ""
25263
25264 # type: =head2
25265 #. type: =head2
25266 #: ../fish/guestfish-actions.pod:644
25267 msgid "checksum-device"
25268 msgstr ""
25269
25270 # type: verbatim
25271 #. type: verbatim
25272 #: ../fish/guestfish-actions.pod:646
25273 #, no-wrap
25274 msgid ""
25275 " checksum-device csumtype device\n"
25276 "\n"
25277 msgstr ""
25278
25279 # type: textblock
25280 #. type: textblock
25281 #: ../fish/guestfish-actions.pod:648
25282 msgid ""
25283 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25284 "device named C<device>.  For the types of checksums supported see the L</"
25285 "checksum> command."
25286 msgstr ""
25287
25288 # type: =head2
25289 #. type: =head2
25290 #: ../fish/guestfish-actions.pod:652
25291 msgid "checksums-out"
25292 msgstr ""
25293
25294 # type: verbatim
25295 #. type: verbatim
25296 #: ../fish/guestfish-actions.pod:654
25297 #, no-wrap
25298 msgid ""
25299 " checksums-out csumtype directory (sumsfile|-)\n"
25300 "\n"
25301 msgstr ""
25302
25303 # type: =head2
25304 #. type: =head2
25305 #: ../fish/guestfish-actions.pod:670
25306 msgid "chmod"
25307 msgstr ""
25308
25309 # type: verbatim
25310 #. type: verbatim
25311 #: ../fish/guestfish-actions.pod:672
25312 #, no-wrap
25313 msgid ""
25314 " chmod mode path\n"
25315 "\n"
25316 msgstr ""
25317
25318 # type: =head2
25319 #. type: =head2
25320 #: ../fish/guestfish-actions.pod:683
25321 msgid "chown"
25322 msgstr ""
25323
25324 # type: verbatim
25325 #. type: verbatim
25326 #: ../fish/guestfish-actions.pod:685
25327 #, no-wrap
25328 msgid ""
25329 " chown owner group path\n"
25330 "\n"
25331 msgstr ""
25332
25333 # type: =head2
25334 #. type: =head2
25335 #: ../fish/guestfish-actions.pod:693
25336 msgid "command"
25337 msgstr ""
25338
25339 # type: verbatim
25340 #. type: verbatim
25341 #: ../fish/guestfish-actions.pod:695
25342 #, no-wrap
25343 msgid ""
25344 " command 'arguments ...'\n"
25345 "\n"
25346 msgstr ""
25347
25348 # type: textblock
25349 #. type: textblock
25350 #: ../fish/guestfish-actions.pod:702
25351 msgid ""
25352 "The single parameter is an argv-style list of arguments.  The first element "
25353 "is the name of the program to run.  Subsequent elements are parameters.  The "
25354 "list must be non-empty (ie. must contain a program name).  Note that the "
25355 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25356 msgstr ""
25357
25358 # type: =head2
25359 #. type: =head2
25360 #: ../fish/guestfish-actions.pod:730
25361 msgid "command-lines"
25362 msgstr ""
25363
25364 # type: verbatim
25365 #. type: verbatim
25366 #: ../fish/guestfish-actions.pod:732
25367 #, no-wrap
25368 msgid ""
25369 " command-lines 'arguments ...'\n"
25370 "\n"
25371 msgstr ""
25372
25373 # type: textblock
25374 #. type: textblock
25375 #: ../fish/guestfish-actions.pod:734
25376 msgid ""
25377 "This is the same as L</command>, but splits the result into a list of lines."
25378 msgstr ""
25379
25380 # type: textblock
25381 #. type: textblock
25382 #: ../fish/guestfish-actions.pod:737
25383 msgid "See also: L</sh-lines>"
25384 msgstr ""
25385
25386 # type: =head2
25387 #. type: =head2
25388 #: ../fish/guestfish-actions.pod:742
25389 msgid "config"
25390 msgstr ""
25391
25392 # type: verbatim
25393 #. type: verbatim
25394 #: ../fish/guestfish-actions.pod:744
25395 #, no-wrap
25396 msgid ""
25397 " config qemuparam qemuvalue\n"
25398 "\n"
25399 msgstr ""
25400
25401 # type: =head2
25402 #. type: =head2
25403 #: ../fish/guestfish-actions.pod:755
25404 msgid "copy-size"
25405 msgstr ""
25406
25407 # type: verbatim
25408 #. type: verbatim
25409 #: ../fish/guestfish-actions.pod:757
25410 #, no-wrap
25411 msgid ""
25412 " copy-size src dest size\n"
25413 "\n"
25414 msgstr ""
25415
25416 # type: =head2
25417 #. type: =head2
25418 #: ../fish/guestfish-actions.pod:765
25419 msgid "cp"
25420 msgstr ""
25421
25422 # type: verbatim
25423 #. type: verbatim
25424 #: ../fish/guestfish-actions.pod:767
25425 #, no-wrap
25426 msgid ""
25427 " cp src dest\n"
25428 "\n"
25429 msgstr ""
25430
25431 # type: =head2
25432 #. type: =head2
25433 #: ../fish/guestfish-actions.pod:772
25434 msgid "cp-a"
25435 msgstr ""
25436
25437 # type: verbatim
25438 #. type: verbatim
25439 #: ../fish/guestfish-actions.pod:774
25440 #, no-wrap
25441 msgid ""
25442 " cp-a src dest\n"
25443 "\n"
25444 msgstr ""
25445
25446 # type: =head2
25447 #. type: =head2
25448 #: ../fish/guestfish-actions.pod:779
25449 msgid "dd"
25450 msgstr ""
25451
25452 # type: verbatim
25453 #. type: verbatim
25454 #: ../fish/guestfish-actions.pod:781
25455 #, no-wrap
25456 msgid ""
25457 " dd src dest\n"
25458 "\n"
25459 msgstr ""
25460
25461 # type: textblock
25462 #. type: textblock
25463 #: ../fish/guestfish-actions.pod:788
25464 msgid ""
25465 "If the destination is a device, it must be as large or larger than the "
25466 "source file or device, otherwise the copy will fail.  This command cannot do "
25467 "partial copies (see L</copy-size>)."
25468 msgstr ""
25469
25470 # type: =head2
25471 #. type: =head2
25472 #: ../fish/guestfish-actions.pod:792
25473 msgid "df"
25474 msgstr ""
25475
25476 # type: verbatim
25477 #. type: verbatim
25478 #: ../fish/guestfish-actions.pod:794
25479 #, no-wrap
25480 msgid ""
25481 " df\n"
25482 "\n"
25483 msgstr ""
25484
25485 # type: textblock
25486 #. type: textblock
25487 #: ../fish/guestfish-actions.pod:798 ../fish/guestfish-actions.pod:809
25488 msgid ""
25489 "This command is mostly useful for interactive sessions.  It is I<not> "
25490 "intended that you try to parse the output string.  Use L</statvfs> from "
25491 "programs."
25492 msgstr ""
25493
25494 # type: =head2
25495 #. type: =head2
25496 #: ../fish/guestfish-actions.pod:802
25497 msgid "df-h"
25498 msgstr ""
25499
25500 # type: verbatim
25501 #. type: verbatim
25502 #: ../fish/guestfish-actions.pod:804
25503 #, no-wrap
25504 msgid ""
25505 " df-h\n"
25506 "\n"
25507 msgstr ""
25508
25509 # type: =head2
25510 #. type: =head2
25511 #: ../fish/guestfish-actions.pod:813
25512 msgid "dmesg"
25513 msgstr ""
25514
25515 # type: verbatim
25516 #. type: verbatim
25517 #: ../fish/guestfish-actions.pod:815
25518 #, no-wrap
25519 msgid ""
25520 " dmesg\n"
25521 "\n"
25522 msgstr ""
25523
25524 # type: textblock
25525 #. type: textblock
25526 #: ../fish/guestfish-actions.pod:821
25527 msgid ""
25528 "Another way to get the same information is to enable verbose messages with "
25529 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25530 "before running the program."
25531 msgstr ""
25532
25533 # type: =head2
25534 #. type: =head2
25535 #: ../fish/guestfish-actions.pod:826
25536 msgid "download"
25537 msgstr ""
25538
25539 # type: verbatim
25540 #. type: verbatim
25541 #: ../fish/guestfish-actions.pod:828
25542 #, no-wrap
25543 msgid ""
25544 " download remotefilename (filename|-)\n"
25545 "\n"
25546 msgstr ""
25547
25548 # type: textblock
25549 #. type: textblock
25550 #: ../fish/guestfish-actions.pod:835
25551 msgid "See also L</upload>, L</cat>."
25552 msgstr ""
25553
25554 # type: =head2
25555 #. type: =head2
25556 #: ../fish/guestfish-actions.pod:839
25557 msgid "download-offset"
25558 msgstr ""
25559
25560 # type: verbatim
25561 #. type: verbatim
25562 #: ../fish/guestfish-actions.pod:841
25563 #, no-wrap
25564 msgid ""
25565 " download-offset remotefilename (filename|-) offset size\n"
25566 "\n"
25567 msgstr ""
25568
25569 # type: textblock
25570 #. type: textblock
25571 #: ../fish/guestfish-actions.pod:849
25572 msgid ""
25573 "Note that there is no limit on the amount of data that can be downloaded "
25574 "with this call, unlike with L</pread>, and this call always reads the full "
25575 "amount unless an error occurs."
25576 msgstr ""
25577
25578 # type: textblock
25579 #. type: textblock
25580 #: ../fish/guestfish-actions.pod:854
25581 msgid "See also L</download>, L</pread>."
25582 msgstr ""
25583
25584 # type: =head2
25585 #. type: =head2
25586 #: ../fish/guestfish-actions.pod:858
25587 msgid "drop-caches"
25588 msgstr ""
25589
25590 # type: verbatim
25591 #. type: verbatim
25592 #: ../fish/guestfish-actions.pod:860
25593 #, no-wrap
25594 msgid ""
25595 " drop-caches whattodrop\n"
25596 "\n"
25597 msgstr ""
25598
25599 # type: =head2
25600 #. type: =head2
25601 #: ../fish/guestfish-actions.pod:872
25602 msgid "du"
25603 msgstr ""
25604
25605 # type: verbatim
25606 #. type: verbatim
25607 #: ../fish/guestfish-actions.pod:874
25608 #, no-wrap
25609 msgid ""
25610 " du path\n"
25611 "\n"
25612 msgstr ""
25613
25614 # type: =head2
25615 #. type: =head2
25616 #: ../fish/guestfish-actions.pod:886
25617 msgid "e2fsck-f"
25618 msgstr ""
25619
25620 # type: verbatim
25621 #. type: verbatim
25622 #: ../fish/guestfish-actions.pod:888
25623 #, no-wrap
25624 msgid ""
25625 " e2fsck-f device\n"
25626 "\n"
25627 msgstr ""
25628
25629 # type: textblock
25630 #. type: textblock
25631 #: ../fish/guestfish-actions.pod:894
25632 msgid ""
25633 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25634 "should use L</fsck>."
25635 msgstr ""
25636
25637 # type: =head2
25638 #. type: =head2
25639 #: ../fish/guestfish-actions.pod:897
25640 msgid "echo-daemon"
25641 msgstr ""
25642
25643 # type: verbatim
25644 #. type: verbatim
25645 #: ../fish/guestfish-actions.pod:899
25646 #, no-wrap
25647 msgid ""
25648 " echo-daemon 'words ...'\n"
25649 "\n"
25650 msgstr ""
25651
25652 # type: textblock
25653 #. type: textblock
25654 #: ../fish/guestfish-actions.pod:906
25655 msgid "See also L</ping-daemon>."
25656 msgstr ""
25657
25658 # type: =head2
25659 #. type: =head2
25660 #: ../fish/guestfish-actions.pod:908
25661 msgid "egrep"
25662 msgstr ""
25663
25664 # type: verbatim
25665 #. type: verbatim
25666 #: ../fish/guestfish-actions.pod:910
25667 #, no-wrap
25668 msgid ""
25669 " egrep regex path\n"
25670 "\n"
25671 msgstr ""
25672
25673 # type: =head2
25674 #. type: =head2
25675 #: ../fish/guestfish-actions.pod:918
25676 msgid "egrepi"
25677 msgstr ""
25678
25679 # type: verbatim
25680 #. type: verbatim
25681 #: ../fish/guestfish-actions.pod:920
25682 #, no-wrap
25683 msgid ""
25684 " egrepi regex path\n"
25685 "\n"
25686 msgstr ""
25687
25688 # type: =head2
25689 #. type: =head2
25690 #: ../fish/guestfish-actions.pod:928
25691 msgid "equal"
25692 msgstr ""
25693
25694 # type: verbatim
25695 #. type: verbatim
25696 #: ../fish/guestfish-actions.pod:930
25697 #, no-wrap
25698 msgid ""
25699 " equal file1 file2\n"
25700 "\n"
25701 msgstr ""
25702
25703 # type: =head2
25704 #. type: =head2
25705 #: ../fish/guestfish-actions.pod:937
25706 msgid "exists"
25707 msgstr ""
25708
25709 # type: verbatim
25710 #. type: verbatim
25711 #: ../fish/guestfish-actions.pod:939
25712 #, no-wrap
25713 msgid ""
25714 " exists path\n"
25715 "\n"
25716 msgstr ""
25717
25718 # type: textblock
25719 #. type: textblock
25720 #: ../fish/guestfish-actions.pod:944
25721 msgid "See also L</is-file>, L</is-dir>, L</stat>."
25722 msgstr ""
25723
25724 # type: =head2
25725 #. type: =head2
25726 #: ../fish/guestfish-actions.pod:946
25727 msgid "fallocate"
25728 msgstr ""
25729
25730 # type: verbatim
25731 #. type: verbatim
25732 #: ../fish/guestfish-actions.pod:948
25733 #, no-wrap
25734 msgid ""
25735 " fallocate path len\n"
25736 "\n"
25737 msgstr ""
25738
25739 # type: =head2
25740 #. type: =head2
25741 #: ../fish/guestfish-actions.pod:965
25742 msgid "fallocate64"
25743 msgstr ""
25744
25745 # type: verbatim
25746 #. type: verbatim
25747 #: ../fish/guestfish-actions.pod:967
25748 #, no-wrap
25749 msgid ""
25750 " fallocate64 path len\n"
25751 "\n"
25752 msgstr ""
25753
25754 # type: textblock
25755 #. type: textblock
25756 #: ../fish/guestfish-actions.pod:973
25757 msgid ""
25758 "Note that this call allocates disk blocks for the file.  To create a sparse "
25759 "file use L</truncate-size> instead."
25760 msgstr ""
25761
25762 # type: textblock
25763 #. type: textblock
25764 #: ../fish/guestfish-actions.pod:976
25765 msgid ""
25766 "The deprecated call L</fallocate> does the same, but owing to an oversight "
25767 "it only allowed 30 bit lengths to be specified, effectively limiting the "
25768 "maximum size of files created through that call to 1GB."
25769 msgstr ""
25770
25771 # type: =head2
25772 #. type: =head2
25773 #: ../fish/guestfish-actions.pod:985
25774 msgid "fgrep"
25775 msgstr ""
25776
25777 # type: verbatim
25778 #. type: verbatim
25779 #: ../fish/guestfish-actions.pod:987
25780 #, no-wrap
25781 msgid ""
25782 " fgrep pattern path\n"
25783 "\n"
25784 msgstr ""
25785
25786 # type: =head2
25787 #. type: =head2
25788 #: ../fish/guestfish-actions.pod:995
25789 msgid "fgrepi"
25790 msgstr ""
25791
25792 # type: verbatim
25793 #. type: verbatim
25794 #: ../fish/guestfish-actions.pod:997
25795 #, no-wrap
25796 msgid ""
25797 " fgrepi pattern path\n"
25798 "\n"
25799 msgstr ""
25800
25801 # type: =head2
25802 #. type: =head2
25803 #: ../fish/guestfish-actions.pod:1005
25804 msgid "file"
25805 msgstr ""
25806
25807 # type: verbatim
25808 #. type: verbatim
25809 #: ../fish/guestfish-actions.pod:1007
25810 #, no-wrap
25811 msgid ""
25812 " file path\n"
25813 "\n"
25814 msgstr ""
25815
25816 # type: textblock
25817 #. type: textblock
25818 #: ../fish/guestfish-actions.pod:1019
25819 msgid ""
25820 "This command can also be used on C</dev/> devices (and partitions, LV "
25821 "names).  You can for example use this to determine if a device contains a "
25822 "filesystem, although it's usually better to use L</vfs-type>."
25823 msgstr ""
25824
25825 # type: =head2
25826 #. type: =head2
25827 #: ../fish/guestfish-actions.pod:1029
25828 msgid "file-architecture"
25829 msgstr ""
25830
25831 # type: verbatim
25832 #. type: verbatim
25833 #: ../fish/guestfish-actions.pod:1031
25834 #, no-wrap
25835 msgid ""
25836 " file-architecture filename\n"
25837 "\n"
25838 msgstr ""
25839
25840 # type: =head2
25841 #. type: =head2
25842 #: ../fish/guestfish-actions.pod:1134
25843 msgid "filesize"
25844 msgstr ""
25845
25846 # type: verbatim
25847 #. type: verbatim
25848 #: ../fish/guestfish-actions.pod:1136
25849 #, no-wrap
25850 msgid ""
25851 " filesize file\n"
25852 "\n"
25853 msgstr ""
25854
25855 # type: textblock
25856 #. type: textblock
25857 #: ../fish/guestfish-actions.pod:1140
25858 msgid ""
25859 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
25860 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
25861 msgstr ""
25862
25863 # type: =head2
25864 #. type: =head2
25865 #: ../fish/guestfish-actions.pod:1144
25866 msgid "fill"
25867 msgstr ""
25868
25869 # type: verbatim
25870 #. type: verbatim
25871 #: ../fish/guestfish-actions.pod:1146
25872 #, no-wrap
25873 msgid ""
25874 " fill c len path\n"
25875 "\n"
25876 msgstr ""
25877
25878 # type: textblock
25879 #. type: textblock
25880 #: ../fish/guestfish-actions.pod:1152
25881 msgid ""
25882 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25883 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
25884 "L</fill-pattern>."
25885 msgstr ""
25886
25887 # type: =head2
25888 #. type: =head2
25889 #: ../fish/guestfish-actions.pod:1157
25890 msgid "fill-pattern"
25891 msgstr ""
25892
25893 # type: verbatim
25894 #. type: verbatim
25895 #: ../fish/guestfish-actions.pod:1159
25896 #, no-wrap
25897 msgid ""
25898 " fill-pattern pattern len path\n"
25899 "\n"
25900 msgstr ""
25901
25902 # type: textblock
25903 #. type: textblock
25904 #: ../fish/guestfish-actions.pod:1161
25905 msgid ""
25906 "This function is like L</fill> except that it creates a new file of length "
25907 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
25908 "is truncated if necessary to ensure the length of the file is exactly C<len> "
25909 "bytes."
25910 msgstr ""
25911
25912 # type: =head2
25913 #. type: =head2
25914 #: ../fish/guestfish-actions.pod:1166
25915 msgid "find"
25916 msgstr ""
25917
25918 # type: verbatim
25919 #. type: verbatim
25920 #: ../fish/guestfish-actions.pod:1168
25921 #, no-wrap
25922 msgid ""
25923 " find directory\n"
25924 "\n"
25925 msgstr ""
25926
25927 # type: textblock
25928 #. type: textblock
25929 #: ../fish/guestfish-actions.pod:1182
25930 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
25931 msgstr ""
25932
25933 # type: textblock
25934 #. type: textblock
25935 #: ../fish/guestfish-actions.pod:1195
25936 msgid "See also L</find0>."
25937 msgstr ""
25938
25939 # type: =head2
25940 #. type: =head2
25941 #: ../fish/guestfish-actions.pod:1200
25942 msgid "find0"
25943 msgstr ""
25944
25945 # type: verbatim
25946 #. type: verbatim
25947 #: ../fish/guestfish-actions.pod:1202
25948 #, no-wrap
25949 msgid ""
25950 " find0 directory (files|-)\n"
25951 "\n"
25952 msgstr ""
25953
25954 # type: textblock
25955 #. type: textblock
25956 #: ../fish/guestfish-actions.pod:1208
25957 msgid ""
25958 "This command works the same way as L</find> with the following exceptions:"
25959 msgstr ""
25960
25961 # type: =head2
25962 #. type: =head2
25963 #: ../fish/guestfish-actions.pod:1235
25964 msgid "findfs-label"
25965 msgstr ""
25966
25967 # type: verbatim
25968 #. type: verbatim
25969 #: ../fish/guestfish-actions.pod:1237
25970 #, no-wrap
25971 msgid ""
25972 " findfs-label label\n"
25973 "\n"
25974 msgstr ""
25975
25976 # type: textblock
25977 #. type: textblock
25978 #: ../fish/guestfish-actions.pod:1243
25979 msgid "To find the label of a filesystem, use L</vfs-label>."
25980 msgstr ""
25981
25982 # type: =head2
25983 #. type: =head2
25984 #: ../fish/guestfish-actions.pod:1245
25985 msgid "findfs-uuid"
25986 msgstr ""
25987
25988 # type: verbatim
25989 #. type: verbatim
25990 #: ../fish/guestfish-actions.pod:1247
25991 #, no-wrap
25992 msgid ""
25993 " findfs-uuid uuid\n"
25994 "\n"
25995 msgstr ""
25996
25997 # type: textblock
25998 #. type: textblock
25999 #: ../fish/guestfish-actions.pod:1253
26000 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
26001 msgstr ""
26002
26003 # type: =head2
26004 #. type: =head2
26005 #: ../fish/guestfish-actions.pod:1255
26006 msgid "fsck"
26007 msgstr ""
26008
26009 # type: verbatim
26010 #. type: verbatim
26011 #: ../fish/guestfish-actions.pod:1257
26012 #, no-wrap
26013 msgid ""
26014 " fsck fstype device\n"
26015 "\n"
26016 msgstr ""
26017
26018 # type: =head2
26019 #. type: =head2
26020 #: ../fish/guestfish-actions.pod:1287
26021 msgid "get-append"
26022 msgstr ""
26023
26024 # type: verbatim
26025 #. type: verbatim
26026 #: ../fish/guestfish-actions.pod:1289
26027 #, no-wrap
26028 msgid ""
26029 " get-append\n"
26030 "\n"
26031 msgstr ""
26032
26033 #. type: =head2
26034 #: ../fish/guestfish-actions.pod:1296
26035 msgid "get-attach-method"
26036 msgstr ""
26037
26038 #. type: verbatim
26039 #: ../fish/guestfish-actions.pod:1298
26040 #, no-wrap
26041 msgid ""
26042 " get-attach-method\n"
26043 "\n"
26044 msgstr ""
26045
26046 #. type: textblock
26047 #: ../fish/guestfish-actions.pod:1300
26048 msgid "Return the current attach method.  See L</set-attach-method>."
26049 msgstr ""
26050
26051 # type: =head2
26052 #. type: =head2
26053 #: ../fish/guestfish-actions.pod:1302
26054 msgid "get-autosync"
26055 msgstr ""
26056
26057 # type: verbatim
26058 #. type: verbatim
26059 #: ../fish/guestfish-actions.pod:1304
26060 #, no-wrap
26061 msgid ""
26062 " get-autosync\n"
26063 "\n"
26064 msgstr ""
26065
26066 # type: =head2
26067 #. type: =head2
26068 #: ../fish/guestfish-actions.pod:1308
26069 msgid "get-direct"
26070 msgstr ""
26071
26072 # type: verbatim
26073 #. type: verbatim
26074 #: ../fish/guestfish-actions.pod:1310
26075 #, no-wrap
26076 msgid ""
26077 " get-direct\n"
26078 "\n"
26079 msgstr ""
26080
26081 # type: =head2
26082 #. type: =head2
26083 #: ../fish/guestfish-actions.pod:1314
26084 msgid "get-e2label"
26085 msgstr ""
26086
26087 # type: verbatim
26088 #. type: verbatim
26089 #: ../fish/guestfish-actions.pod:1316
26090 #, no-wrap
26091 msgid ""
26092 " get-e2label device\n"
26093 "\n"
26094 msgstr ""
26095
26096 # type: =head2
26097 #. type: =head2
26098 #: ../fish/guestfish-actions.pod:1328
26099 msgid "get-e2uuid"
26100 msgstr ""
26101
26102 # type: verbatim
26103 #. type: verbatim
26104 #: ../fish/guestfish-actions.pod:1330
26105 #, no-wrap
26106 msgid ""
26107 " get-e2uuid device\n"
26108 "\n"
26109 msgstr ""
26110
26111 # type: =head2
26112 #. type: =head2
26113 #: ../fish/guestfish-actions.pod:1342
26114 msgid "get-memsize"
26115 msgstr ""
26116
26117 # type: verbatim
26118 #. type: verbatim
26119 #: ../fish/guestfish-actions.pod:1344
26120 #, no-wrap
26121 msgid ""
26122 " get-memsize\n"
26123 "\n"
26124 msgstr ""
26125
26126 # type: textblock
26127 #. type: textblock
26128 #: ../fish/guestfish-actions.pod:1349
26129 msgid ""
26130 "If L</set-memsize> was not called on this handle, and if "
26131 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26132 "value for memsize."
26133 msgstr ""
26134
26135 # type: =head2
26136 #. type: =head2
26137 #: ../fish/guestfish-actions.pod:1356
26138 msgid "get-network"
26139 msgstr ""
26140
26141 # type: verbatim
26142 #. type: verbatim
26143 #: ../fish/guestfish-actions.pod:1358
26144 #, no-wrap
26145 msgid ""
26146 " get-network\n"
26147 "\n"
26148 msgstr ""
26149
26150 # type: =head2
26151 #. type: =head2
26152 #: ../fish/guestfish-actions.pod:1362
26153 msgid "get-path"
26154 msgstr ""
26155
26156 # type: verbatim
26157 #. type: verbatim
26158 #: ../fish/guestfish-actions.pod:1364
26159 #, no-wrap
26160 msgid ""
26161 " get-path\n"
26162 "\n"
26163 msgstr ""
26164
26165 # type: =head2
26166 #. type: =head2
26167 #: ../fish/guestfish-actions.pod:1371
26168 msgid "get-pid"
26169 msgstr ""
26170
26171 # type: =head2
26172 #. type: =head2
26173 #: ../fish/guestfish-actions.pod:1373
26174 msgid "pid"
26175 msgstr ""
26176
26177 # type: verbatim
26178 #. type: verbatim
26179 #: ../fish/guestfish-actions.pod:1375
26180 #, no-wrap
26181 msgid ""
26182 " get-pid\n"
26183 "\n"
26184 msgstr ""
26185
26186 # type: =head2
26187 #. type: =head2
26188 #: ../fish/guestfish-actions.pod:1382
26189 msgid "get-qemu"
26190 msgstr ""
26191
26192 # type: verbatim
26193 #. type: verbatim
26194 #: ../fish/guestfish-actions.pod:1384
26195 #, no-wrap
26196 msgid ""
26197 " get-qemu\n"
26198 "\n"
26199 msgstr ""
26200
26201 # type: =head2
26202 #. type: =head2
26203 #: ../fish/guestfish-actions.pod:1391
26204 msgid "get-recovery-proc"
26205 msgstr ""
26206
26207 # type: verbatim
26208 #. type: verbatim
26209 #: ../fish/guestfish-actions.pod:1393
26210 #, no-wrap
26211 msgid ""
26212 " get-recovery-proc\n"
26213 "\n"
26214 msgstr ""
26215
26216 # type: =head2
26217 #. type: =head2
26218 #: ../fish/guestfish-actions.pod:1397
26219 msgid "get-selinux"
26220 msgstr ""
26221
26222 # type: verbatim
26223 #. type: verbatim
26224 #: ../fish/guestfish-actions.pod:1399
26225 #, no-wrap
26226 msgid ""
26227 " get-selinux\n"
26228 "\n"
26229 msgstr ""
26230
26231 # type: textblock
26232 #. type: textblock
26233 #: ../fish/guestfish-actions.pod:1401
26234 msgid ""
26235 "This returns the current setting of the selinux flag which is passed to the "
26236 "appliance at boot time.  See L</set-selinux>."
26237 msgstr ""
26238
26239 # type: =head2
26240 #. type: =head2
26241 #: ../fish/guestfish-actions.pod:1407
26242 msgid "get-state"
26243 msgstr ""
26244
26245 # type: verbatim
26246 #. type: verbatim
26247 #: ../fish/guestfish-actions.pod:1409
26248 #, no-wrap
26249 msgid ""
26250 " get-state\n"
26251 "\n"
26252 msgstr ""
26253
26254 # type: =head2
26255 #. type: =head2
26256 #: ../fish/guestfish-actions.pod:1416
26257 msgid "get-trace"
26258 msgstr ""
26259
26260 # type: verbatim
26261 #. type: verbatim
26262 #: ../fish/guestfish-actions.pod:1418
26263 #, no-wrap
26264 msgid ""
26265 " get-trace\n"
26266 "\n"
26267 msgstr ""
26268
26269 # type: =head2
26270 #. type: =head2
26271 #: ../fish/guestfish-actions.pod:1422
26272 msgid "get-umask"
26273 msgstr ""
26274
26275 # type: verbatim
26276 #. type: verbatim
26277 #: ../fish/guestfish-actions.pod:1424
26278 #, no-wrap
26279 msgid ""
26280 " get-umask\n"
26281 "\n"
26282 msgstr ""
26283
26284 # type: textblock
26285 #. type: textblock
26286 #: ../fish/guestfish-actions.pod:1426
26287 msgid ""
26288 "Return the current umask.  By default the umask is C<022> unless it has been "
26289 "set by calling L</umask>."
26290 msgstr ""
26291
26292 # type: =head2
26293 #. type: =head2
26294 #: ../fish/guestfish-actions.pod:1429
26295 msgid "get-verbose"
26296 msgstr ""
26297
26298 # type: verbatim
26299 #. type: verbatim
26300 #: ../fish/guestfish-actions.pod:1431
26301 #, no-wrap
26302 msgid ""
26303 " get-verbose\n"
26304 "\n"
26305 msgstr ""
26306
26307 # type: =head2
26308 #. type: =head2
26309 #: ../fish/guestfish-actions.pod:1435
26310 msgid "getcon"
26311 msgstr ""
26312
26313 # type: verbatim
26314 #. type: verbatim
26315 #: ../fish/guestfish-actions.pod:1437
26316 #, no-wrap
26317 msgid ""
26318 " getcon\n"
26319 "\n"
26320 msgstr ""
26321
26322 # type: textblock
26323 #. type: textblock
26324 #: ../fish/guestfish-actions.pod:1441
26325 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26326 msgstr ""
26327
26328 # type: =head2
26329 #. type: =head2
26330 #: ../fish/guestfish-actions.pod:1444
26331 msgid "getxattr"
26332 msgstr ""
26333
26334 # type: verbatim
26335 #. type: verbatim
26336 #: ../fish/guestfish-actions.pod:1446
26337 #, no-wrap
26338 msgid ""
26339 " getxattr path name\n"
26340 "\n"
26341 msgstr ""
26342
26343 # type: textblock
26344 #. type: textblock
26345 #: ../fish/guestfish-actions.pod:1448
26346 msgid ""
26347 "Get a single extended attribute from file C<path> named C<name>.  This call "
26348 "follows symlinks.  If you want to lookup an extended attribute for the "
26349 "symlink itself, use L</lgetxattr>."
26350 msgstr ""
26351
26352 # type: textblock
26353 #. type: textblock
26354 #: ../fish/guestfish-actions.pod:1452 ../fish/guestfish-actions.pod:2458
26355 msgid ""
26356 "Normally it is better to get all extended attributes from a file in one go "
26357 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26358 "buggy and do not provide a way to list out attributes.  For these "
26359 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26360 "attributes you want in advance and call this function."
26361 msgstr ""
26362
26363 # type: textblock
26364 #. type: textblock
26365 #: ../fish/guestfish-actions.pod:1462
26366 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26367 msgstr ""
26368
26369 # type: =head2
26370 #. type: =head2
26371 #: ../fish/guestfish-actions.pod:1464
26372 msgid "getxattrs"
26373 msgstr ""
26374
26375 # type: verbatim
26376 #. type: verbatim
26377 #: ../fish/guestfish-actions.pod:1466
26378 #, no-wrap
26379 msgid ""
26380 " getxattrs path\n"
26381 "\n"
26382 msgstr ""
26383
26384 # type: textblock
26385 #. type: textblock
26386 #: ../fish/guestfish-actions.pod:1474
26387 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26388 msgstr ""
26389
26390 # type: =head2
26391 #. type: =head2
26392 #: ../fish/guestfish-actions.pod:1476
26393 msgid "glob-expand"
26394 msgstr ""
26395
26396 # type: verbatim
26397 #. type: verbatim
26398 #: ../fish/guestfish-actions.pod:1478
26399 #, no-wrap
26400 msgid ""
26401 " glob-expand pattern\n"
26402 "\n"
26403 msgstr ""
26404
26405 # type: =head2
26406 #. type: =head2
26407 #: ../fish/guestfish-actions.pod:1491
26408 msgid "grep"
26409 msgstr ""
26410
26411 # type: verbatim
26412 #. type: verbatim
26413 #: ../fish/guestfish-actions.pod:1493
26414 #, no-wrap
26415 msgid ""
26416 " grep regex path\n"
26417 "\n"
26418 msgstr ""
26419
26420 # type: =head2
26421 #. type: =head2
26422 #: ../fish/guestfish-actions.pod:1501
26423 msgid "grepi"
26424 msgstr ""
26425
26426 # type: verbatim
26427 #. type: verbatim
26428 #: ../fish/guestfish-actions.pod:1503
26429 #, no-wrap
26430 msgid ""
26431 " grepi regex path\n"
26432 "\n"
26433 msgstr ""
26434
26435 # type: =head2
26436 #. type: =head2
26437 #: ../fish/guestfish-actions.pod:1511
26438 msgid "grub-install"
26439 msgstr ""
26440
26441 # type: verbatim
26442 #. type: verbatim
26443 #: ../fish/guestfish-actions.pod:1513
26444 #, no-wrap
26445 msgid ""
26446 " grub-install root device\n"
26447 "\n"
26448 msgstr ""
26449
26450 # type: =head2
26451 #. type: =head2
26452 #: ../fish/guestfish-actions.pod:1529
26453 msgid "head"
26454 msgstr ""
26455
26456 # type: verbatim
26457 #. type: verbatim
26458 #: ../fish/guestfish-actions.pod:1531
26459 #, no-wrap
26460 msgid ""
26461 " head path\n"
26462 "\n"
26463 msgstr ""
26464
26465 # type: =head2
26466 #. type: =head2
26467 #: ../fish/guestfish-actions.pod:1539
26468 msgid "head-n"
26469 msgstr ""
26470
26471 # type: verbatim
26472 #. type: verbatim
26473 #: ../fish/guestfish-actions.pod:1541
26474 #, no-wrap
26475 msgid ""
26476 " head-n nrlines path\n"
26477 "\n"
26478 msgstr ""
26479
26480 # type: =head2
26481 #. type: =head2
26482 #: ../fish/guestfish-actions.pod:1554
26483 msgid "hexdump"
26484 msgstr ""
26485
26486 # type: verbatim
26487 #. type: verbatim
26488 #: ../fish/guestfish-actions.pod:1556
26489 #, no-wrap
26490 msgid ""
26491 " hexdump path\n"
26492 "\n"
26493 msgstr ""
26494
26495 # type: =head2
26496 #. type: =head2
26497 #: ../fish/guestfish-actions.pod:1564
26498 msgid "initrd-cat"
26499 msgstr ""
26500
26501 # type: verbatim
26502 #. type: verbatim
26503 #: ../fish/guestfish-actions.pod:1566
26504 #, no-wrap
26505 msgid ""
26506 " initrd-cat initrdpath filename\n"
26507 "\n"
26508 msgstr ""
26509
26510 # type: textblock
26511 #. type: textblock
26512 #: ../fish/guestfish-actions.pod:1578
26513 msgid "See also L</initrd-list>."
26514 msgstr ""
26515
26516 # type: =head2
26517 #. type: =head2
26518 #: ../fish/guestfish-actions.pod:1583
26519 msgid "initrd-list"
26520 msgstr ""
26521
26522 # type: verbatim
26523 #. type: verbatim
26524 #: ../fish/guestfish-actions.pod:1585
26525 #, no-wrap
26526 msgid ""
26527 " initrd-list path\n"
26528 "\n"
26529 msgstr ""
26530
26531 # type: =head2
26532 #. type: =head2
26533 #: ../fish/guestfish-actions.pod:1597
26534 msgid "inotify-add-watch"
26535 msgstr ""
26536
26537 # type: verbatim
26538 #. type: verbatim
26539 #: ../fish/guestfish-actions.pod:1599
26540 #, no-wrap
26541 msgid ""
26542 " inotify-add-watch path mask\n"
26543 "\n"
26544 msgstr ""
26545
26546 # type: =head2
26547 #. type: =head2
26548 #: ../fish/guestfish-actions.pod:1611
26549 msgid "inotify-close"
26550 msgstr ""
26551
26552 # type: verbatim
26553 #. type: verbatim
26554 #: ../fish/guestfish-actions.pod:1613
26555 #, no-wrap
26556 msgid ""
26557 " inotify-close\n"
26558 "\n"
26559 msgstr ""
26560
26561 # type: =head2
26562 #. type: =head2
26563 #: ../fish/guestfish-actions.pod:1619
26564 msgid "inotify-files"
26565 msgstr ""
26566
26567 # type: verbatim
26568 #. type: verbatim
26569 #: ../fish/guestfish-actions.pod:1621
26570 #, no-wrap
26571 msgid ""
26572 " inotify-files\n"
26573 "\n"
26574 msgstr ""
26575
26576 # type: textblock
26577 #. type: textblock
26578 #: ../fish/guestfish-actions.pod:1623
26579 msgid ""
26580 "This function is a helpful wrapper around L</inotify-read> which just "
26581 "returns a list of pathnames of objects that were touched.  The returned "
26582 "pathnames are sorted and deduplicated."
26583 msgstr ""
26584
26585 # type: =head2
26586 #. type: =head2
26587 #: ../fish/guestfish-actions.pod:1627
26588 msgid "inotify-init"
26589 msgstr ""
26590
26591 # type: verbatim
26592 #. type: verbatim
26593 #: ../fish/guestfish-actions.pod:1629
26594 #, no-wrap
26595 msgid ""
26596 " inotify-init maxevents\n"
26597 "\n"
26598 msgstr ""
26599
26600 # type: textblock
26601 #. type: textblock
26602 #: ../fish/guestfish-actions.pod:1635
26603 msgid ""
26604 "C<maxevents> is the maximum number of events which will be queued up between "
26605 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26606 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26607 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26608 "but records the fact that it threw them away by setting a flag "
26609 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26610 msgstr ""
26611
26612 # type: textblock
26613 #. type: textblock
26614 #: ../fish/guestfish-actions.pod:1645
26615 msgid ""
26616 "Before any events are generated, you have to add some watches to the "
26617 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26618 "L</inotify-watch-all>."
26619 msgstr ""
26620
26621 # type: textblock
26622 #. type: textblock
26623 #: ../fish/guestfish-actions.pod:1651
26624 msgid ""
26625 "Queued up events should be read periodically by calling L</inotify-read> (or "
26626 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26627 "If you don't read the events out often enough then you risk the internal "
26628 "queue overflowing."
26629 msgstr ""
26630
26631 # type: textblock
26632 #. type: textblock
26633 #: ../fish/guestfish-actions.pod:1658
26634 msgid ""
26635 "The handle should be closed after use by calling L</inotify-close>.  This "
26636 "also removes any watches automatically."
26637 msgstr ""
26638
26639 # type: =head2
26640 #. type: =head2
26641 #: ../fish/guestfish-actions.pod:1667
26642 msgid "inotify-read"
26643 msgstr ""
26644
26645 # type: verbatim
26646 #. type: verbatim
26647 #: ../fish/guestfish-actions.pod:1669
26648 #, no-wrap
26649 msgid ""
26650 " inotify-read\n"
26651 "\n"
26652 msgstr ""
26653
26654 # type: =head2
26655 #. type: =head2
26656 #: ../fish/guestfish-actions.pod:1682
26657 msgid "inotify-rm-watch"
26658 msgstr ""
26659
26660 # type: verbatim
26661 #. type: verbatim
26662 #: ../fish/guestfish-actions.pod:1684
26663 #, no-wrap
26664 msgid ""
26665 " inotify-rm-watch wd\n"
26666 "\n"
26667 msgstr ""
26668
26669 # type: textblock
26670 #. type: textblock
26671 #: ../fish/guestfish-actions.pod:1686
26672 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
26673 msgstr ""
26674
26675 # type: =head2
26676 #. type: =head2
26677 #: ../fish/guestfish-actions.pod:1689
26678 msgid "inspect-get-arch"
26679 msgstr ""
26680
26681 # type: verbatim
26682 #. type: verbatim
26683 #: ../fish/guestfish-actions.pod:1691
26684 #, no-wrap
26685 msgid ""
26686 " inspect-get-arch root\n"
26687 "\n"
26688 msgstr ""
26689
26690 # type: textblock
26691 #. type: textblock
26692 #: ../fish/guestfish-actions.pod:1693 ../fish/guestfish-actions.pod:1709
26693 #: ../fish/guestfish-actions.pod:1795 ../fish/guestfish-actions.pod:1831
26694 #: ../fish/guestfish-actions.pod:1849 ../fish/guestfish-actions.pod:1883
26695 #: ../fish/guestfish-actions.pod:1898 ../fish/guestfish-actions.pod:1919
26696 #: ../fish/guestfish-actions.pod:1934 ../fish/guestfish-actions.pod:1967
26697 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2013
26698 #: ../fish/guestfish-actions.pod:2030 ../fish/guestfish-actions.pod:2073
26699 #: ../fish/guestfish-actions.pod:2108 ../fish/guestfish-actions.pod:2124
26700 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2153
26701 #: ../fish/guestfish-actions.pod:2166 ../fish/guestfish-actions.pod:2181
26702 msgid ""
26703 "This function should only be called with a root device string as returned by "
26704 "L</inspect-os>."
26705 msgstr ""
26706
26707 # type: textblock
26708 #. type: textblock
26709 #: ../fish/guestfish-actions.pod:1696
26710 msgid ""
26711 "This returns the architecture of the inspected operating system.  The "
26712 "possible return values are listed under L</file-architecture>."
26713 msgstr ""
26714
26715 # type: =head2
26716 #. type: =head2
26717 #: ../fish/guestfish-actions.pod:1705
26718 msgid "inspect-get-distro"
26719 msgstr ""
26720
26721 # type: verbatim
26722 #. type: verbatim
26723 #: ../fish/guestfish-actions.pod:1707
26724 #, no-wrap
26725 msgid ""
26726 " inspect-get-distro root\n"
26727 "\n"
26728 msgstr ""
26729
26730 #. type: =head2
26731 #: ../fish/guestfish-actions.pod:1791
26732 msgid "inspect-get-drive-mappings"
26733 msgstr ""
26734
26735 #. type: verbatim
26736 #: ../fish/guestfish-actions.pod:1793
26737 #, no-wrap
26738 msgid ""
26739 " inspect-get-drive-mappings root\n"
26740 "\n"
26741 msgstr ""
26742
26743 #. type: textblock
26744 #: ../fish/guestfish-actions.pod:1823
26745 msgid ""
26746 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26747 "get-mountpoints>, L</inspect-get-filesystems>."
26748 msgstr ""
26749
26750 # type: =head2
26751 #. type: =head2
26752 #: ../fish/guestfish-actions.pod:1827
26753 msgid "inspect-get-filesystems"
26754 msgstr ""
26755
26756 # type: verbatim
26757 #. type: verbatim
26758 #: ../fish/guestfish-actions.pod:1829
26759 #, no-wrap
26760 msgid ""
26761 " inspect-get-filesystems root\n"
26762 "\n"
26763 msgstr ""
26764
26765 # type: textblock
26766 #. type: textblock
26767 #: ../fish/guestfish-actions.pod:1842
26768 msgid ""
26769 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26770 "get-mountpoints>."
26771 msgstr ""
26772
26773 #. type: =head2
26774 #: ../fish/guestfish-actions.pod:1845
26775 msgid "inspect-get-format"
26776 msgstr ""
26777
26778 #. type: verbatim
26779 #: ../fish/guestfish-actions.pod:1847
26780 #, no-wrap
26781 msgid ""
26782 " inspect-get-format root\n"
26783 "\n"
26784 msgstr ""
26785
26786 # type: =head2
26787 #. type: =head2
26788 #: ../fish/guestfish-actions.pod:1879
26789 msgid "inspect-get-hostname"
26790 msgstr ""
26791
26792 # type: verbatim
26793 #. type: verbatim
26794 #: ../fish/guestfish-actions.pod:1881
26795 #, no-wrap
26796 msgid ""
26797 " inspect-get-hostname root\n"
26798 "\n"
26799 msgstr ""
26800
26801 # type: =head2
26802 #. type: =head2
26803 #: ../fish/guestfish-actions.pod:1894
26804 msgid "inspect-get-major-version"
26805 msgstr ""
26806
26807 # type: verbatim
26808 #. type: verbatim
26809 #: ../fish/guestfish-actions.pod:1896
26810 #, no-wrap
26811 msgid ""
26812 " inspect-get-major-version root\n"
26813 "\n"
26814 msgstr ""
26815
26816 # type: =head2
26817 #. type: =head2
26818 #: ../fish/guestfish-actions.pod:1915
26819 msgid "inspect-get-minor-version"
26820 msgstr ""
26821
26822 # type: verbatim
26823 #. type: verbatim
26824 #: ../fish/guestfish-actions.pod:1917
26825 #, no-wrap
26826 msgid ""
26827 " inspect-get-minor-version root\n"
26828 "\n"
26829 msgstr ""
26830
26831 # type: textblock
26832 #. type: textblock
26833 #: ../fish/guestfish-actions.pod:1927
26834 msgid ""
26835 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26836 "get-major-version>."
26837 msgstr ""
26838
26839 # type: =head2
26840 #. type: =head2
26841 #: ../fish/guestfish-actions.pod:1930
26842 msgid "inspect-get-mountpoints"
26843 msgstr ""
26844
26845 # type: verbatim
26846 #. type: verbatim
26847 #: ../fish/guestfish-actions.pod:1932
26848 #, no-wrap
26849 msgid ""
26850 " inspect-get-mountpoints root\n"
26851 "\n"
26852 msgstr ""
26853
26854 #. type: textblock
26855 #: ../fish/guestfish-actions.pod:1954
26856 msgid ""
26857 "For operating systems like Windows which still use drive letters, this call "
26858 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26859 "information about the mapping of drive letters to partitions, see L</inspect-"
26860 "get-drive-mappings>."
26861 msgstr ""
26862
26863 # type: textblock
26864 #. type: textblock
26865 #: ../fish/guestfish-actions.pod:1960
26866 msgid ""
26867 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26868 "get-filesystems>."
26869 msgstr ""
26870
26871 # type: =head2
26872 #. type: =head2
26873 #: ../fish/guestfish-actions.pod:1963
26874 msgid "inspect-get-package-format"
26875 msgstr ""
26876
26877 # type: verbatim
26878 #. type: verbatim
26879 #: ../fish/guestfish-actions.pod:1965
26880 #, no-wrap
26881 msgid ""
26882 " inspect-get-package-format root\n"
26883 "\n"
26884 msgstr ""
26885
26886 # type: textblock
26887 #. type: textblock
26888 #: ../fish/guestfish-actions.pod:1970
26889 msgid ""
26890 "This function and L</inspect-get-package-management> return the package "
26891 "format and package management tool used by the inspected operating system.  "
26892 "For example for Fedora these functions would return C<rpm> (package format) "
26893 "and C<yum> (package management)."
26894 msgstr ""
26895
26896 # type: =head2
26897 #. type: =head2
26898 #: ../fish/guestfish-actions.pod:1985
26899 msgid "inspect-get-package-management"
26900 msgstr ""
26901
26902 # type: verbatim
26903 #. type: verbatim
26904 #: ../fish/guestfish-actions.pod:1987
26905 #, no-wrap
26906 msgid ""
26907 " inspect-get-package-management root\n"
26908 "\n"
26909 msgstr ""
26910
26911 # type: textblock
26912 #. type: textblock
26913 #: ../fish/guestfish-actions.pod:1992
26914 msgid ""
26915 "L</inspect-get-package-format> and this function return the package format "
26916 "and package management tool used by the inspected operating system.  For "
26917 "example for Fedora these functions would return C<rpm> (package format) and "
26918 "C<yum> (package management)."
26919 msgstr ""
26920
26921 # type: =head2
26922 #. type: =head2
26923 #: ../fish/guestfish-actions.pod:2009
26924 msgid "inspect-get-product-name"
26925 msgstr ""
26926
26927 # type: verbatim
26928 #. type: verbatim
26929 #: ../fish/guestfish-actions.pod:2011
26930 #, no-wrap
26931 msgid ""
26932 " inspect-get-product-name root\n"
26933 "\n"
26934 msgstr ""
26935
26936 #. type: =head2
26937 #: ../fish/guestfish-actions.pod:2026
26938 msgid "inspect-get-product-variant"
26939 msgstr ""
26940
26941 #. type: verbatim
26942 #: ../fish/guestfish-actions.pod:2028
26943 #, no-wrap
26944 msgid ""
26945 " inspect-get-product-variant root\n"
26946 "\n"
26947 msgstr ""
26948
26949 #. type: textblock
26950 #: ../fish/guestfish-actions.pod:2052
26951 msgid ""
26952 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26953 "get-product-name>, L</inspect-get-major-version>."
26954 msgstr ""
26955
26956 # type: =head2
26957 #. type: =head2
26958 #: ../fish/guestfish-actions.pod:2056
26959 msgid "inspect-get-roots"
26960 msgstr ""
26961
26962 # type: verbatim
26963 #. type: verbatim
26964 #: ../fish/guestfish-actions.pod:2058
26965 #, no-wrap
26966 msgid ""
26967 " inspect-get-roots\n"
26968 "\n"
26969 msgstr ""
26970
26971 # type: textblock
26972 #. type: textblock
26973 #: ../fish/guestfish-actions.pod:2060
26974 msgid ""
26975 "This function is a convenient way to get the list of root devices, as "
26976 "returned from a previous call to L</inspect-os>, but without redoing the "
26977 "whole inspection process."
26978 msgstr ""
26979
26980 # type: textblock
26981 #. type: textblock
26982 #: ../fish/guestfish-actions.pod:2064
26983 msgid ""
26984 "This returns an empty list if either no root devices were found or the "
26985 "caller has not called L</inspect-os>."
26986 msgstr ""
26987
26988 # type: =head2
26989 #. type: =head2
26990 #: ../fish/guestfish-actions.pod:2069
26991 msgid "inspect-get-type"
26992 msgstr ""
26993
26994 # type: verbatim
26995 #. type: verbatim
26996 #: ../fish/guestfish-actions.pod:2071
26997 #, no-wrap
26998 msgid ""
26999 " inspect-get-type root\n"
27000 "\n"
27001 msgstr ""
27002
27003 #. type: =head2
27004 #: ../fish/guestfish-actions.pod:2104
27005 msgid "inspect-get-windows-current-control-set"
27006 msgstr ""
27007
27008 #. type: verbatim
27009 #: ../fish/guestfish-actions.pod:2106
27010 #, no-wrap
27011 msgid ""
27012 " inspect-get-windows-current-control-set root\n"
27013 "\n"
27014 msgstr ""
27015
27016 # type: =head2
27017 #. type: =head2
27018 #: ../fish/guestfish-actions.pod:2120
27019 msgid "inspect-get-windows-systemroot"
27020 msgstr ""
27021
27022 # type: verbatim
27023 #. type: verbatim
27024 #: ../fish/guestfish-actions.pod:2122
27025 #, no-wrap
27026 msgid ""
27027 " inspect-get-windows-systemroot root\n"
27028 "\n"
27029 msgstr ""
27030
27031 #. type: =head2
27032 #: ../fish/guestfish-actions.pod:2136
27033 msgid "inspect-is-live"
27034 msgstr ""
27035
27036 #. type: verbatim
27037 #: ../fish/guestfish-actions.pod:2138
27038 #, no-wrap
27039 msgid ""
27040 " inspect-is-live root\n"
27041 "\n"
27042 msgstr ""
27043
27044 #. type: textblock
27045 #: ../fish/guestfish-actions.pod:2143
27046 msgid ""
27047 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27048 "then this returns true if a live image was detected on the disk."
27049 msgstr ""
27050
27051 #. type: =head2
27052 #: ../fish/guestfish-actions.pod:2149
27053 msgid "inspect-is-multipart"
27054 msgstr ""
27055
27056 #. type: verbatim
27057 #: ../fish/guestfish-actions.pod:2151
27058 #, no-wrap
27059 msgid ""
27060 " inspect-is-multipart root\n"
27061 "\n"
27062 msgstr ""
27063
27064 #. type: textblock
27065 #: ../fish/guestfish-actions.pod:2156
27066 msgid ""
27067 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27068 "then this returns true if the disk is part of a set."
27069 msgstr ""
27070
27071 #. type: =head2
27072 #: ../fish/guestfish-actions.pod:2162
27073 msgid "inspect-is-netinst"
27074 msgstr ""
27075
27076 #. type: verbatim
27077 #: ../fish/guestfish-actions.pod:2164
27078 #, no-wrap
27079 msgid ""
27080 " inspect-is-netinst root\n"
27081 "\n"
27082 msgstr ""
27083
27084 #. type: textblock
27085 #: ../fish/guestfish-actions.pod:2169
27086 msgid ""
27087 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
27088 "then this returns true if the disk is a network installer, ie. not a self-"
27089 "contained install CD but one which is likely to require network access to "
27090 "complete the install."
27091 msgstr ""
27092
27093 # type: =head2
27094 #. type: =head2
27095 #: ../fish/guestfish-actions.pod:2177
27096 msgid "inspect-list-applications"
27097 msgstr ""
27098
27099 # type: verbatim
27100 #. type: verbatim
27101 #: ../fish/guestfish-actions.pod:2179
27102 #, no-wrap
27103 msgid ""
27104 " inspect-list-applications root\n"
27105 "\n"
27106 msgstr ""
27107
27108 # type: textblock
27109 #. type: textblock
27110 #: ../fish/guestfish-actions.pod:2186
27111 msgid ""
27112 "I<Note:> This call works differently from other parts of the inspection "
27113 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
27114 "then mount up the disks, before calling this.  Listing applications is a "
27115 "significantly more difficult operation which requires access to the full "
27116 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
27117 "are just returning data cached in the libguestfs handle, this call actually "
27118 "reads parts of the mounted filesystems during the call."
27119 msgstr ""
27120
27121 # type: =head2
27122 #. type: =head2
27123 #: ../fish/guestfish-actions.pod:2276
27124 msgid "inspect-os"
27125 msgstr ""
27126
27127 # type: verbatim
27128 #. type: verbatim
27129 #: ../fish/guestfish-actions.pod:2278
27130 #, no-wrap
27131 msgid ""
27132 " inspect-os\n"
27133 "\n"
27134 msgstr ""
27135
27136 # type: textblock
27137 #. type: textblock
27138 #: ../fish/guestfish-actions.pod:2293
27139 msgid ""
27140 "You can pass the root string(s) returned to other L</inspect-get-*> "
27141 "functions in order to query further information about each operating system, "
27142 "such as the name and version."
27143 msgstr ""
27144
27145 # type: textblock
27146 #. type: textblock
27147 #: ../fish/guestfish-actions.pod:2298
27148 msgid ""
27149 "This function uses other libguestfs features such as L</mount-ro> and L</"
27150 "umount-all> in order to mount and unmount filesystems and look at the "
27151 "contents.  This should be called with no disks currently mounted.  The "
27152 "function may also use Augeas, so any existing Augeas handle will be closed."
27153 msgstr ""
27154
27155 # type: textblock
27156 #. type: textblock
27157 #: ../fish/guestfish-actions.pod:2310 ../fish/guestfish-actions.pod:2486
27158 #: ../fish/guestfish-actions.pod:2532
27159 msgid "See also L</list-filesystems>."
27160 msgstr ""
27161
27162 # type: =head2
27163 #. type: =head2
27164 #: ../fish/guestfish-actions.pod:2312
27165 msgid "is-blockdev"
27166 msgstr ""
27167
27168 # type: verbatim
27169 #. type: verbatim
27170 #: ../fish/guestfish-actions.pod:2314
27171 #, no-wrap
27172 msgid ""
27173 " is-blockdev path\n"
27174 "\n"
27175 msgstr ""
27176
27177 # type: textblock
27178 #. type: textblock
27179 #: ../fish/guestfish-actions.pod:2319 ../fish/guestfish-actions.pod:2337
27180 #: ../fish/guestfish-actions.pod:2356 ../fish/guestfish-actions.pod:2365
27181 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2409
27182 #: ../fish/guestfish-actions.pod:2418
27183 msgid "See also L</stat>."
27184 msgstr ""
27185
27186 # type: =head2
27187 #. type: =head2
27188 #: ../fish/guestfish-actions.pod:2321
27189 msgid "is-busy"
27190 msgstr ""
27191
27192 # type: verbatim
27193 #. type: verbatim
27194 #: ../fish/guestfish-actions.pod:2323
27195 #, no-wrap
27196 msgid ""
27197 " is-busy\n"
27198 "\n"
27199 msgstr ""
27200
27201 # type: =head2
27202 #. type: =head2
27203 #: ../fish/guestfish-actions.pod:2330
27204 msgid "is-chardev"
27205 msgstr ""
27206
27207 # type: verbatim
27208 #. type: verbatim
27209 #: ../fish/guestfish-actions.pod:2332
27210 #, no-wrap
27211 msgid ""
27212 " is-chardev path\n"
27213 "\n"
27214 msgstr ""
27215
27216 # type: =head2
27217 #. type: =head2
27218 #: ../fish/guestfish-actions.pod:2339
27219 msgid "is-config"
27220 msgstr ""
27221
27222 # type: verbatim
27223 #. type: verbatim
27224 #: ../fish/guestfish-actions.pod:2341
27225 #, no-wrap
27226 msgid ""
27227 " is-config\n"
27228 "\n"
27229 msgstr ""
27230
27231 # type: =head2
27232 #. type: =head2
27233 #: ../fish/guestfish-actions.pod:2348
27234 msgid "is-dir"
27235 msgstr ""
27236
27237 # type: verbatim
27238 #. type: verbatim
27239 #: ../fish/guestfish-actions.pod:2350
27240 #, no-wrap
27241 msgid ""
27242 " is-dir path\n"
27243 "\n"
27244 msgstr ""
27245
27246 # type: =head2
27247 #. type: =head2
27248 #: ../fish/guestfish-actions.pod:2358
27249 msgid "is-fifo"
27250 msgstr ""
27251
27252 # type: verbatim
27253 #. type: verbatim
27254 #: ../fish/guestfish-actions.pod:2360
27255 #, no-wrap
27256 msgid ""
27257 " is-fifo path\n"
27258 "\n"
27259 msgstr ""
27260
27261 # type: =head2
27262 #. type: =head2
27263 #: ../fish/guestfish-actions.pod:2367
27264 msgid "is-file"
27265 msgstr ""
27266
27267 # type: verbatim
27268 #. type: verbatim
27269 #: ../fish/guestfish-actions.pod:2369
27270 #, no-wrap
27271 msgid ""
27272 " is-file path\n"
27273 "\n"
27274 msgstr ""
27275
27276 # type: =head2
27277 #. type: =head2
27278 #: ../fish/guestfish-actions.pod:2377
27279 msgid "is-launching"
27280 msgstr ""
27281
27282 # type: verbatim
27283 #. type: verbatim
27284 #: ../fish/guestfish-actions.pod:2379
27285 #, no-wrap
27286 msgid ""
27287 " is-launching\n"
27288 "\n"
27289 msgstr ""
27290
27291 # type: =head2
27292 #. type: =head2
27293 #: ../fish/guestfish-actions.pod:2386
27294 msgid "is-lv"
27295 msgstr ""
27296
27297 # type: verbatim
27298 #. type: verbatim
27299 #: ../fish/guestfish-actions.pod:2388
27300 #, no-wrap
27301 msgid ""
27302 " is-lv device\n"
27303 "\n"
27304 msgstr ""
27305
27306 # type: =head2
27307 #. type: =head2
27308 #: ../fish/guestfish-actions.pod:2393
27309 msgid "is-ready"
27310 msgstr ""
27311
27312 # type: verbatim
27313 #. type: verbatim
27314 #: ../fish/guestfish-actions.pod:2395
27315 #, no-wrap
27316 msgid ""
27317 " is-ready\n"
27318 "\n"
27319 msgstr ""
27320
27321 # type: =head2
27322 #. type: =head2
27323 #: ../fish/guestfish-actions.pod:2402
27324 msgid "is-socket"
27325 msgstr ""
27326
27327 # type: verbatim
27328 #. type: verbatim
27329 #: ../fish/guestfish-actions.pod:2404
27330 #, no-wrap
27331 msgid ""
27332 " is-socket path\n"
27333 "\n"
27334 msgstr ""
27335
27336 # type: =head2
27337 #. type: =head2
27338 #: ../fish/guestfish-actions.pod:2411
27339 msgid "is-symlink"
27340 msgstr ""
27341
27342 # type: verbatim
27343 #. type: verbatim
27344 #: ../fish/guestfish-actions.pod:2413
27345 #, no-wrap
27346 msgid ""
27347 " is-symlink path\n"
27348 "\n"
27349 msgstr ""
27350
27351 # type: =head2
27352 #. type: =head2
27353 #: ../fish/guestfish-actions.pod:2420
27354 msgid "kill-subprocess"
27355 msgstr ""
27356
27357 # type: verbatim
27358 #. type: verbatim
27359 #: ../fish/guestfish-actions.pod:2422
27360 #, no-wrap
27361 msgid ""
27362 " kill-subprocess\n"
27363 "\n"
27364 msgstr ""
27365
27366 # type: =head2
27367 #. type: =head2
27368 #: ../fish/guestfish-actions.pod:2426
27369 msgid "launch"
27370 msgstr ""
27371
27372 # type: =head2
27373 #. type: =head2
27374 #: ../fish/guestfish-actions.pod:2428
27375 msgid "run"
27376 msgstr ""
27377
27378 # type: verbatim
27379 #. type: verbatim
27380 #: ../fish/guestfish-actions.pod:2430
27381 #, no-wrap
27382 msgid ""
27383 " launch\n"
27384 "\n"
27385 msgstr ""
27386
27387 # type: =head2
27388 #. type: =head2
27389 #: ../fish/guestfish-actions.pod:2438
27390 msgid "lchown"
27391 msgstr ""
27392
27393 # type: verbatim
27394 #. type: verbatim
27395 #: ../fish/guestfish-actions.pod:2440
27396 #, no-wrap
27397 msgid ""
27398 " lchown owner group path\n"
27399 "\n"
27400 msgstr ""
27401
27402 # type: textblock
27403 #. type: textblock
27404 #: ../fish/guestfish-actions.pod:2442
27405 msgid ""
27406 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
27407 "chown> but if C<path> is a symlink then the link itself is changed, not the "
27408 "target."
27409 msgstr ""
27410
27411 # type: =head2
27412 #. type: =head2
27413 #: ../fish/guestfish-actions.pod:2450
27414 msgid "lgetxattr"
27415 msgstr ""
27416
27417 # type: verbatim
27418 #. type: verbatim
27419 #: ../fish/guestfish-actions.pod:2452
27420 #, no-wrap
27421 msgid ""
27422 " lgetxattr path name\n"
27423 "\n"
27424 msgstr ""
27425
27426 # type: textblock
27427 #. type: textblock
27428 #: ../fish/guestfish-actions.pod:2468
27429 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27430 msgstr ""
27431
27432 # type: =head2
27433 #. type: =head2
27434 #: ../fish/guestfish-actions.pod:2470
27435 msgid "lgetxattrs"
27436 msgstr ""
27437
27438 # type: verbatim
27439 #. type: verbatim
27440 #: ../fish/guestfish-actions.pod:2472
27441 #, no-wrap
27442 msgid ""
27443 " lgetxattrs path\n"
27444 "\n"
27445 msgstr ""
27446
27447 # type: textblock
27448 #. type: textblock
27449 #: ../fish/guestfish-actions.pod:2474
27450 msgid ""
27451 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27452 "it returns the extended attributes of the link itself."
27453 msgstr ""
27454
27455 # type: =head2
27456 #. type: =head2
27457 #: ../fish/guestfish-actions.pod:2478
27458 msgid "list-devices"
27459 msgstr ""
27460
27461 # type: verbatim
27462 #. type: verbatim
27463 #: ../fish/guestfish-actions.pod:2480
27464 #, no-wrap
27465 msgid ""
27466 " list-devices\n"
27467 "\n"
27468 msgstr ""
27469
27470 # type: =head2
27471 #. type: =head2
27472 #: ../fish/guestfish-actions.pod:2488
27473 msgid "list-filesystems"
27474 msgstr ""
27475
27476 # type: verbatim
27477 #. type: verbatim
27478 #: ../fish/guestfish-actions.pod:2490
27479 #, no-wrap
27480 msgid ""
27481 " list-filesystems\n"
27482 "\n"
27483 msgstr ""
27484
27485 # type: textblock
27486 #. type: textblock
27487 #: ../fish/guestfish-actions.pod:2509
27488 msgid ""
27489 "This command runs other libguestfs commands, which might include L</mount> "
27490 "and L</umount>, and therefore you should use this soon after launch and only "
27491 "when nothing is mounted."
27492 msgstr ""
27493
27494 # type: textblock
27495 #. type: textblock
27496 #: ../fish/guestfish-actions.pod:2513
27497 msgid ""
27498 "Not all of the filesystems returned will be mountable.  In particular, swap "
27499 "partitions are returned in the list.  Also this command does not check that "
27500 "each filesystem found is valid and mountable, and some filesystems might be "
27501 "mountable but require special options.  Filesystems may not all belong to a "
27502 "single logical operating system (use L</inspect-os> to look for OSes)."
27503 msgstr ""
27504
27505 # type: =head2
27506 #. type: =head2
27507 #: ../fish/guestfish-actions.pod:2521
27508 msgid "list-partitions"
27509 msgstr ""
27510
27511 # type: verbatim
27512 #. type: verbatim
27513 #: ../fish/guestfish-actions.pod:2523
27514 #, no-wrap
27515 msgid ""
27516 " list-partitions\n"
27517 "\n"
27518 msgstr ""
27519
27520 # type: textblock
27521 #. type: textblock
27522 #: ../fish/guestfish-actions.pod:2529
27523 msgid ""
27524 "This does not return logical volumes.  For that you will need to call L</"
27525 "lvs>."
27526 msgstr ""
27527
27528 # type: =head2
27529 #. type: =head2
27530 #: ../fish/guestfish-actions.pod:2534
27531 msgid "ll"
27532 msgstr ""
27533
27534 # type: verbatim
27535 #. type: verbatim
27536 #: ../fish/guestfish-actions.pod:2536
27537 #, no-wrap
27538 msgid ""
27539 " ll directory\n"
27540 "\n"
27541 msgstr ""
27542
27543 # type: =head2
27544 #. type: =head2
27545 #: ../fish/guestfish-actions.pod:2544
27546 msgid "ln"
27547 msgstr ""
27548
27549 # type: verbatim
27550 #. type: verbatim
27551 #: ../fish/guestfish-actions.pod:2546
27552 #, no-wrap
27553 msgid ""
27554 " ln target linkname\n"
27555 "\n"
27556 msgstr ""
27557
27558 # type: =head2
27559 #. type: =head2
27560 #: ../fish/guestfish-actions.pod:2550
27561 msgid "ln-f"
27562 msgstr ""
27563
27564 # type: verbatim
27565 #. type: verbatim
27566 #: ../fish/guestfish-actions.pod:2552
27567 #, no-wrap
27568 msgid ""
27569 " ln-f target linkname\n"
27570 "\n"
27571 msgstr ""
27572
27573 # type: =head2
27574 #. type: =head2
27575 #: ../fish/guestfish-actions.pod:2557
27576 msgid "ln-s"
27577 msgstr ""
27578
27579 # type: verbatim
27580 #. type: verbatim
27581 #: ../fish/guestfish-actions.pod:2559
27582 #, no-wrap
27583 msgid ""
27584 " ln-s target linkname\n"
27585 "\n"
27586 msgstr ""
27587
27588 # type: =head2
27589 #. type: =head2
27590 #: ../fish/guestfish-actions.pod:2563
27591 msgid "ln-sf"
27592 msgstr ""
27593
27594 # type: verbatim
27595 #. type: verbatim
27596 #: ../fish/guestfish-actions.pod:2565
27597 #, no-wrap
27598 msgid ""
27599 " ln-sf target linkname\n"
27600 "\n"
27601 msgstr ""
27602
27603 # type: =head2
27604 #. type: =head2
27605 #: ../fish/guestfish-actions.pod:2570
27606 msgid "lremovexattr"
27607 msgstr ""
27608
27609 # type: verbatim
27610 #. type: verbatim
27611 #: ../fish/guestfish-actions.pod:2572
27612 #, no-wrap
27613 msgid ""
27614 " lremovexattr xattr path\n"
27615 "\n"
27616 msgstr ""
27617
27618 # type: textblock
27619 #. type: textblock
27620 #: ../fish/guestfish-actions.pod:2574
27621 msgid ""
27622 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27623 "it removes an extended attribute of the link itself."
27624 msgstr ""
27625
27626 # type: =head2
27627 #. type: =head2
27628 #: ../fish/guestfish-actions.pod:2578
27629 msgid "ls"
27630 msgstr ""
27631
27632 # type: verbatim
27633 #. type: verbatim
27634 #: ../fish/guestfish-actions.pod:2580
27635 #, no-wrap
27636 msgid ""
27637 " ls directory\n"
27638 "\n"
27639 msgstr ""
27640
27641 # type: textblock
27642 #. type: textblock
27643 #: ../fish/guestfish-actions.pod:2586
27644 msgid ""
27645 "This command is mostly useful for interactive sessions.  Programs should "
27646 "probably use L</readdir> instead."
27647 msgstr ""
27648
27649 # type: =head2
27650 #. type: =head2
27651 #: ../fish/guestfish-actions.pod:2589
27652 msgid "lsetxattr"
27653 msgstr ""
27654
27655 # type: verbatim
27656 #. type: verbatim
27657 #: ../fish/guestfish-actions.pod:2591
27658 #, no-wrap
27659 msgid ""
27660 " lsetxattr xattr val vallen path\n"
27661 "\n"
27662 msgstr ""
27663
27664 # type: textblock
27665 #. type: textblock
27666 #: ../fish/guestfish-actions.pod:2593
27667 msgid ""
27668 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
27669 "sets an extended attribute of the link itself."
27670 msgstr ""
27671
27672 # type: =head2
27673 #. type: =head2
27674 #: ../fish/guestfish-actions.pod:2597
27675 msgid "lstat"
27676 msgstr ""
27677
27678 # type: verbatim
27679 #. type: verbatim
27680 #: ../fish/guestfish-actions.pod:2599
27681 #, no-wrap
27682 msgid ""
27683 " lstat path\n"
27684 "\n"
27685 msgstr ""
27686
27687 # type: textblock
27688 #. type: textblock
27689 #: ../fish/guestfish-actions.pod:2603
27690 msgid ""
27691 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
27692 "the link is stat-ed, not the file it refers to."
27693 msgstr ""
27694
27695 # type: =head2
27696 #. type: =head2
27697 #: ../fish/guestfish-actions.pod:2609
27698 msgid "lstatlist"
27699 msgstr ""
27700
27701 # type: verbatim
27702 #. type: verbatim
27703 #: ../fish/guestfish-actions.pod:2611
27704 #, no-wrap
27705 msgid ""
27706 " lstatlist path 'names ...'\n"
27707 "\n"
27708 msgstr ""
27709
27710 # type: textblock
27711 #. type: textblock
27712 #: ../fish/guestfish-actions.pod:2613
27713 msgid ""
27714 "This call allows you to perform the L</lstat> operation on multiple files, "
27715 "where all files are in the directory C<path>.  C<names> is the list of files "
27716 "from this directory."
27717 msgstr ""
27718
27719 # type: textblock
27720 #. type: textblock
27721 #: ../fish/guestfish-actions.pod:2622
27722 msgid ""
27723 "This call is intended for programs that want to efficiently list a directory "
27724 "contents without making many round-trips.  See also L</lxattrlist> for a "
27725 "similarly efficient call for getting extended attributes.  Very long "
27726 "directory listings might cause the protocol message size to be exceeded, "
27727 "causing this call to fail.  The caller must split up such requests into "
27728 "smaller groups of names."
27729 msgstr ""
27730
27731 # type: =head2
27732 #. type: =head2
27733 #: ../fish/guestfish-actions.pod:2630
27734 msgid "luks-add-key"
27735 msgstr ""
27736
27737 # type: verbatim
27738 #. type: verbatim
27739 #: ../fish/guestfish-actions.pod:2632
27740 #, no-wrap
27741 msgid ""
27742 " luks-add-key device keyslot\n"
27743 "\n"
27744 msgstr ""
27745
27746 # type: textblock
27747 #. type: textblock
27748 #: ../fish/guestfish-actions.pod:2639
27749 msgid ""
27750 "Note that if C<keyslot> already contains a key, then this command will "
27751 "fail.  You have to use L</luks-kill-slot> first to remove that key."
27752 msgstr ""
27753
27754 # type: textblock
27755 #. type: textblock
27756 #: ../fish/guestfish-actions.pod:2643 ../fish/guestfish-actions.pod:2665
27757 #: ../fish/guestfish-actions.pod:2678 ../fish/guestfish-actions.pod:2692
27758 #: ../fish/guestfish-actions.pod:2715 ../fish/guestfish-actions.pod:2725
27759 msgid ""
27760 "This command has one or more key or passphrase parameters.  Guestfish will "
27761 "prompt for these separately."
27762 msgstr ""
27763
27764 # type: =head2
27765 #. type: =head2
27766 #: ../fish/guestfish-actions.pod:2646
27767 msgid "luks-close"
27768 msgstr ""
27769
27770 # type: verbatim
27771 #. type: verbatim
27772 #: ../fish/guestfish-actions.pod:2648
27773 #, no-wrap
27774 msgid ""
27775 " luks-close device\n"
27776 "\n"
27777 msgstr ""
27778
27779 # type: textblock
27780 #. type: textblock
27781 #: ../fish/guestfish-actions.pod:2650
27782 msgid ""
27783 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
27784 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
27785 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
27786 "block device."
27787 msgstr ""
27788
27789 # type: =head2
27790 #. type: =head2
27791 #: ../fish/guestfish-actions.pod:2656
27792 msgid "luks-format"
27793 msgstr ""
27794
27795 # type: verbatim
27796 #. type: verbatim
27797 #: ../fish/guestfish-actions.pod:2658
27798 #, no-wrap
27799 msgid ""
27800 " luks-format device keyslot\n"
27801 "\n"
27802 msgstr ""
27803
27804 # type: =head2
27805 #. type: =head2
27806 #: ../fish/guestfish-actions.pod:2671
27807 msgid "luks-format-cipher"
27808 msgstr ""
27809
27810 # type: verbatim
27811 #. type: verbatim
27812 #: ../fish/guestfish-actions.pod:2673
27813 #, no-wrap
27814 msgid ""
27815 " luks-format-cipher device keyslot cipher\n"
27816 "\n"
27817 msgstr ""
27818
27819 # type: textblock
27820 #. type: textblock
27821 #: ../fish/guestfish-actions.pod:2675
27822 msgid ""
27823 "This command is the same as L</luks-format> but it also allows you to set "
27824 "the C<cipher> used."
27825 msgstr ""
27826
27827 # type: =head2
27828 #. type: =head2
27829 #: ../fish/guestfish-actions.pod:2684
27830 msgid "luks-kill-slot"
27831 msgstr ""
27832
27833 # type: verbatim
27834 #. type: verbatim
27835 #: ../fish/guestfish-actions.pod:2686
27836 #, no-wrap
27837 msgid ""
27838 " luks-kill-slot device keyslot\n"
27839 "\n"
27840 msgstr ""
27841
27842 # type: =head2
27843 #. type: =head2
27844 #: ../fish/guestfish-actions.pod:2695
27845 msgid "luks-open"
27846 msgstr ""
27847
27848 # type: verbatim
27849 #. type: verbatim
27850 #: ../fish/guestfish-actions.pod:2697
27851 #, no-wrap
27852 msgid ""
27853 " luks-open device mapname\n"
27854 "\n"
27855 msgstr ""
27856
27857 # type: textblock
27858 #. type: textblock
27859 #: ../fish/guestfish-actions.pod:2711
27860 msgid ""
27861 "If this block device contains LVM volume groups, then calling L</vgscan> "
27862 "followed by L</vg-activate-all> will make them visible."
27863 msgstr ""
27864
27865 # type: =head2
27866 #. type: =head2
27867 #: ../fish/guestfish-actions.pod:2718
27868 msgid "luks-open-ro"
27869 msgstr ""
27870
27871 # type: verbatim
27872 #. type: verbatim
27873 #: ../fish/guestfish-actions.pod:2720
27874 #, no-wrap
27875 msgid ""
27876 " luks-open-ro device mapname\n"
27877 "\n"
27878 msgstr ""
27879
27880 # type: textblock
27881 #. type: textblock
27882 #: ../fish/guestfish-actions.pod:2722
27883 msgid ""
27884 "This is the same as L</luks-open> except that a read-only mapping is created."
27885 msgstr ""
27886
27887 # type: =head2
27888 #. type: =head2
27889 #: ../fish/guestfish-actions.pod:2728
27890 msgid "lvcreate"
27891 msgstr ""
27892
27893 # type: verbatim
27894 #. type: verbatim
27895 #: ../fish/guestfish-actions.pod:2730
27896 #, no-wrap
27897 msgid ""
27898 " lvcreate logvol volgroup mbytes\n"
27899 "\n"
27900 msgstr ""
27901
27902 # type: =head2
27903 #. type: =head2
27904 #: ../fish/guestfish-actions.pod:2735
27905 msgid "lvm-canonical-lv-name"
27906 msgstr ""
27907
27908 # type: verbatim
27909 #. type: verbatim
27910 #: ../fish/guestfish-actions.pod:2737
27911 #, no-wrap
27912 msgid ""
27913 " lvm-canonical-lv-name lvname\n"
27914 "\n"
27915 msgstr ""
27916
27917 # type: textblock
27918 #. type: textblock
27919 #: ../fish/guestfish-actions.pod:2746
27920 msgid "See also L</is-lv>."
27921 msgstr ""
27922
27923 # type: =head2
27924 #. type: =head2
27925 #: ../fish/guestfish-actions.pod:2748
27926 msgid "lvm-clear-filter"
27927 msgstr ""
27928
27929 # type: verbatim
27930 #. type: verbatim
27931 #: ../fish/guestfish-actions.pod:2750
27932 #, no-wrap
27933 msgid ""
27934 " lvm-clear-filter\n"
27935 "\n"
27936 msgstr ""
27937
27938 # type: textblock
27939 #. type: textblock
27940 #: ../fish/guestfish-actions.pod:2752
27941 msgid ""
27942 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
27943 "block device."
27944 msgstr ""
27945
27946 # type: =head2
27947 #. type: =head2
27948 #: ../fish/guestfish-actions.pod:2758
27949 msgid "lvm-remove-all"
27950 msgstr ""
27951
27952 # type: verbatim
27953 #. type: verbatim
27954 #: ../fish/guestfish-actions.pod:2760
27955 #, no-wrap
27956 msgid ""
27957 " lvm-remove-all\n"
27958 "\n"
27959 msgstr ""
27960
27961 # type: =head2
27962 #. type: =head2
27963 #: ../fish/guestfish-actions.pod:2768
27964 msgid "lvm-set-filter"
27965 msgstr ""
27966
27967 # type: verbatim
27968 #. type: verbatim
27969 #: ../fish/guestfish-actions.pod:2770
27970 #, no-wrap
27971 msgid ""
27972 " lvm-set-filter 'devices ...'\n"
27973 "\n"
27974 msgstr ""
27975
27976 # type: =head2
27977 #. type: =head2
27978 #: ../fish/guestfish-actions.pod:2795
27979 msgid "lvremove"
27980 msgstr ""
27981
27982 # type: verbatim
27983 #. type: verbatim
27984 #: ../fish/guestfish-actions.pod:2797
27985 #, no-wrap
27986 msgid ""
27987 " lvremove device\n"
27988 "\n"
27989 msgstr ""
27990
27991 # type: =head2
27992 #. type: =head2
27993 #: ../fish/guestfish-actions.pod:2805
27994 msgid "lvrename"
27995 msgstr ""
27996
27997 # type: verbatim
27998 #. type: verbatim
27999 #: ../fish/guestfish-actions.pod:2807
28000 #, no-wrap
28001 msgid ""
28002 " lvrename logvol newlogvol\n"
28003 "\n"
28004 msgstr ""
28005
28006 # type: =head2
28007 #. type: =head2
28008 #: ../fish/guestfish-actions.pod:2811
28009 msgid "lvresize"
28010 msgstr ""
28011
28012 # type: verbatim
28013 #. type: verbatim
28014 #: ../fish/guestfish-actions.pod:2813
28015 #, no-wrap
28016 msgid ""
28017 " lvresize device mbytes\n"
28018 "\n"
28019 msgstr ""
28020
28021 # type: =head2
28022 #. type: =head2
28023 #: ../fish/guestfish-actions.pod:2819
28024 msgid "lvresize-free"
28025 msgstr ""
28026
28027 # type: verbatim
28028 #. type: verbatim
28029 #: ../fish/guestfish-actions.pod:2821
28030 #, no-wrap
28031 msgid ""
28032 " lvresize-free lv percent\n"
28033 "\n"
28034 msgstr ""
28035
28036 # type: =head2
28037 #. type: =head2
28038 #: ../fish/guestfish-actions.pod:2829
28039 msgid "lvs"
28040 msgstr ""
28041
28042 # type: verbatim
28043 #. type: verbatim
28044 #: ../fish/guestfish-actions.pod:2831
28045 #, no-wrap
28046 msgid ""
28047 " lvs\n"
28048 "\n"
28049 msgstr ""
28050
28051 # type: textblock
28052 #. type: textblock
28053 #: ../fish/guestfish-actions.pod:2839
28054 msgid "See also L</lvs-full>, L</list-filesystems>."
28055 msgstr ""
28056
28057 # type: =head2
28058 #. type: =head2
28059 #: ../fish/guestfish-actions.pod:2841
28060 msgid "lvs-full"
28061 msgstr ""
28062
28063 # type: verbatim
28064 #. type: verbatim
28065 #: ../fish/guestfish-actions.pod:2843
28066 #, no-wrap
28067 msgid ""
28068 " lvs-full\n"
28069 "\n"
28070 msgstr ""
28071
28072 # type: =head2
28073 #. type: =head2
28074 #: ../fish/guestfish-actions.pod:2848
28075 msgid "lvuuid"
28076 msgstr ""
28077
28078 # type: verbatim
28079 #. type: verbatim
28080 #: ../fish/guestfish-actions.pod:2850
28081 #, no-wrap
28082 msgid ""
28083 " lvuuid device\n"
28084 "\n"
28085 msgstr ""
28086
28087 # type: =head2
28088 #. type: =head2
28089 #: ../fish/guestfish-actions.pod:2854
28090 msgid "lxattrlist"
28091 msgstr ""
28092
28093 # type: verbatim
28094 #. type: verbatim
28095 #: ../fish/guestfish-actions.pod:2856
28096 #, no-wrap
28097 msgid ""
28098 " lxattrlist path 'names ...'\n"
28099 "\n"
28100 msgstr ""
28101
28102 # type: textblock
28103 #. type: textblock
28104 #: ../fish/guestfish-actions.pod:2872
28105 msgid ""
28106 "This call is intended for programs that want to efficiently list a directory "
28107 "contents without making many round-trips.  See also L</lstatlist> for a "
28108 "similarly efficient call for getting standard stats.  Very long directory "
28109 "listings might cause the protocol message size to be exceeded, causing this "
28110 "call to fail.  The caller must split up such requests into smaller groups of "
28111 "names."
28112 msgstr ""
28113
28114 # type: =head2
28115 #. type: =head2
28116 #: ../fish/guestfish-actions.pod:2880
28117 msgid "mkdir"
28118 msgstr ""
28119
28120 # type: verbatim
28121 #. type: verbatim
28122 #: ../fish/guestfish-actions.pod:2882
28123 #, no-wrap
28124 msgid ""
28125 " mkdir path\n"
28126 "\n"
28127 msgstr ""
28128
28129 # type: =head2
28130 #. type: =head2
28131 #: ../fish/guestfish-actions.pod:2886
28132 msgid "mkdir-mode"
28133 msgstr ""
28134
28135 # type: verbatim
28136 #. type: verbatim
28137 #: ../fish/guestfish-actions.pod:2888
28138 #, no-wrap
28139 msgid ""
28140 " mkdir-mode path mode\n"
28141 "\n"
28142 msgstr ""
28143
28144 # type: textblock
28145 #. type: textblock
28146 #: ../fish/guestfish-actions.pod:2897
28147 msgid "See also L</mkdir>, L</umask>"
28148 msgstr ""
28149
28150 # type: =head2
28151 #. type: =head2
28152 #: ../fish/guestfish-actions.pod:2899
28153 msgid "mkdir-p"
28154 msgstr ""
28155
28156 # type: verbatim
28157 #. type: verbatim
28158 #: ../fish/guestfish-actions.pod:2901
28159 #, no-wrap
28160 msgid ""
28161 " mkdir-p path\n"
28162 "\n"
28163 msgstr ""
28164
28165 # type: =head2
28166 #. type: =head2
28167 #: ../fish/guestfish-actions.pod:2906
28168 msgid "mkdtemp"
28169 msgstr ""
28170
28171 # type: verbatim
28172 #. type: verbatim
28173 #: ../fish/guestfish-actions.pod:2908
28174 #, no-wrap
28175 msgid ""
28176 " mkdtemp template\n"
28177 "\n"
28178 msgstr ""
28179
28180 # type: =head2
28181 #. type: =head2
28182 #: ../fish/guestfish-actions.pod:2929
28183 msgid "mke2fs-J"
28184 msgstr ""
28185
28186 # type: verbatim
28187 #. type: verbatim
28188 #: ../fish/guestfish-actions.pod:2931
28189 #, no-wrap
28190 msgid ""
28191 " mke2fs-J fstype blocksize device journal\n"
28192 "\n"
28193 msgstr ""
28194
28195 # type: textblock
28196 #. type: textblock
28197 #: ../fish/guestfish-actions.pod:2939
28198 msgid "See also L</mke2journal>."
28199 msgstr ""
28200
28201 # type: =head2
28202 #. type: =head2
28203 #: ../fish/guestfish-actions.pod:2941
28204 msgid "mke2fs-JL"
28205 msgstr ""
28206
28207 # type: verbatim
28208 #. type: verbatim
28209 #: ../fish/guestfish-actions.pod:2943
28210 #, no-wrap
28211 msgid ""
28212 " mke2fs-JL fstype blocksize device label\n"
28213 "\n"
28214 msgstr ""
28215
28216 # type: textblock
28217 #. type: textblock
28218 #: ../fish/guestfish-actions.pod:2948
28219 msgid "See also L</mke2journal-L>."
28220 msgstr ""
28221
28222 # type: =head2
28223 #. type: =head2
28224 #: ../fish/guestfish-actions.pod:2950
28225 msgid "mke2fs-JU"
28226 msgstr ""
28227
28228 # type: verbatim
28229 #. type: verbatim
28230 #: ../fish/guestfish-actions.pod:2952
28231 #, no-wrap
28232 msgid ""
28233 " mke2fs-JU fstype blocksize device uuid\n"
28234 "\n"
28235 msgstr ""
28236
28237 # type: textblock
28238 #. type: textblock
28239 #: ../fish/guestfish-actions.pod:2957
28240 msgid "See also L</mke2journal-U>."
28241 msgstr ""
28242
28243 # type: =head2
28244 #. type: =head2
28245 #: ../fish/guestfish-actions.pod:2959
28246 msgid "mke2journal"
28247 msgstr ""
28248
28249 # type: verbatim
28250 #. type: verbatim
28251 #: ../fish/guestfish-actions.pod:2961
28252 #, no-wrap
28253 msgid ""
28254 " mke2journal blocksize device\n"
28255 "\n"
28256 msgstr ""
28257
28258 # type: =head2
28259 #. type: =head2
28260 #: ../fish/guestfish-actions.pod:2968
28261 msgid "mke2journal-L"
28262 msgstr ""
28263
28264 # type: verbatim
28265 #. type: verbatim
28266 #: ../fish/guestfish-actions.pod:2970
28267 #, no-wrap
28268 msgid ""
28269 " mke2journal-L blocksize label device\n"
28270 "\n"
28271 msgstr ""
28272
28273 # type: =head2
28274 #. type: =head2
28275 #: ../fish/guestfish-actions.pod:2974
28276 msgid "mke2journal-U"
28277 msgstr ""
28278
28279 # type: verbatim
28280 #. type: verbatim
28281 #: ../fish/guestfish-actions.pod:2976
28282 #, no-wrap
28283 msgid ""
28284 " mke2journal-U blocksize uuid device\n"
28285 "\n"
28286 msgstr ""
28287
28288 # type: =head2
28289 #. type: =head2
28290 #: ../fish/guestfish-actions.pod:2980
28291 msgid "mkfifo"
28292 msgstr ""
28293
28294 # type: verbatim
28295 #. type: verbatim
28296 #: ../fish/guestfish-actions.pod:2982
28297 #, no-wrap
28298 msgid ""
28299 " mkfifo mode path\n"
28300 "\n"
28301 msgstr ""
28302
28303 # type: textblock
28304 #. type: textblock
28305 #: ../fish/guestfish-actions.pod:2984
28306 msgid ""
28307 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28308 "is just a convenient wrapper around L</mknod>."
28309 msgstr ""
28310
28311 # type: =head2
28312 #. type: =head2
28313 #: ../fish/guestfish-actions.pod:2990
28314 msgid "mkfs"
28315 msgstr ""
28316
28317 # type: verbatim
28318 #. type: verbatim
28319 #: ../fish/guestfish-actions.pod:2992
28320 #, no-wrap
28321 msgid ""
28322 " mkfs fstype device\n"
28323 "\n"
28324 msgstr ""
28325
28326 # type: =head2
28327 #. type: =head2
28328 #: ../fish/guestfish-actions.pod:2998
28329 msgid "mkfs-b"
28330 msgstr ""
28331
28332 # type: verbatim
28333 #. type: verbatim
28334 #: ../fish/guestfish-actions.pod:3000
28335 #, no-wrap
28336 msgid ""
28337 " mkfs-b fstype blocksize device\n"
28338 "\n"
28339 msgstr ""
28340
28341 # type: textblock
28342 #. type: textblock
28343 #: ../fish/guestfish-actions.pod:3002
28344 msgid ""
28345 "This call is similar to L</mkfs>, but it allows you to control the block "
28346 "size of the resulting filesystem.  Supported block sizes depend on the "
28347 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28348 msgstr ""
28349
28350 # type: =head2
28351 #. type: =head2
28352 #: ../fish/guestfish-actions.pod:3017
28353 msgid "mkfs-opts"
28354 msgstr ""
28355
28356 #. type: verbatim
28357 #: ../fish/guestfish-actions.pod:3019
28358 #, no-wrap
28359 msgid ""
28360 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
28361 "\n"
28362 msgstr ""
28363
28364 # type: =head2
28365 #. type: =head2
28366 #: ../fish/guestfish-actions.pod:3054
28367 msgid "mkmountpoint"
28368 msgstr ""
28369
28370 # type: verbatim
28371 #. type: verbatim
28372 #: ../fish/guestfish-actions.pod:3056
28373 #, no-wrap
28374 msgid ""
28375 " mkmountpoint exemptpath\n"
28376 "\n"
28377 msgstr ""
28378
28379 # type: textblock
28380 #. type: textblock
28381 #: ../fish/guestfish-actions.pod:3058
28382 msgid ""
28383 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
28384 "to create extra mountpoints before mounting the first filesystem."
28385 msgstr ""
28386
28387 # type: textblock
28388 #. type: textblock
28389 #: ../fish/guestfish-actions.pod:3082
28390 msgid ""
28391 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
28392 "unexpected errors if you try to mix these calls.  It is safest to manually "
28393 "unmount filesystems and remove mountpoints after use."
28394 msgstr ""
28395
28396 # type: textblock
28397 #. type: textblock
28398 #: ../fish/guestfish-actions.pod:3086
28399 msgid ""
28400 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
28401 "for this to work for manual mountpoints, you must ensure that the innermost "
28402 "mountpoints have the longest pathnames, as in the example code above."
28403 msgstr ""
28404
28405 #. type: textblock
28406 #: ../fish/guestfish-actions.pod:3093
28407 msgid ""
28408 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
28409 "L</umount-all> to be called when the handle is closed which can also trigger "
28410 "these issues."
28411 msgstr ""
28412
28413 # type: =head2
28414 #. type: =head2
28415 #: ../fish/guestfish-actions.pod:3097
28416 msgid "mknod"
28417 msgstr ""
28418
28419 # type: verbatim
28420 #. type: verbatim
28421 #: ../fish/guestfish-actions.pod:3099
28422 #, no-wrap
28423 msgid ""
28424 " mknod mode devmajor devminor path\n"
28425 "\n"
28426 msgstr ""
28427
28428 # type: textblock
28429 #. type: textblock
28430 #: ../fish/guestfish-actions.pod:3109
28431 msgid ""
28432 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28433 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28434 "regular file).  These constants are available in the standard Linux header "
28435 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28436 "wrappers around this command which bitwise OR in the appropriate constant "
28437 "for you."
28438 msgstr ""
28439
28440 # type: =head2
28441 #. type: =head2
28442 #: ../fish/guestfish-actions.pod:3119
28443 msgid "mknod-b"
28444 msgstr ""
28445
28446 # type: verbatim
28447 #. type: verbatim
28448 #: ../fish/guestfish-actions.pod:3121
28449 #, no-wrap
28450 msgid ""
28451 " mknod-b mode devmajor devminor path\n"
28452 "\n"
28453 msgstr ""
28454
28455 # type: textblock
28456 #. type: textblock
28457 #: ../fish/guestfish-actions.pod:3123
28458 msgid ""
28459 "This call creates a block device node called C<path> with mode C<mode> and "
28460 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28461 "wrapper around L</mknod>."
28462 msgstr ""
28463
28464 # type: =head2
28465 #. type: =head2
28466 #: ../fish/guestfish-actions.pod:3129
28467 msgid "mknod-c"
28468 msgstr ""
28469
28470 # type: verbatim
28471 #. type: verbatim
28472 #: ../fish/guestfish-actions.pod:3131
28473 #, no-wrap
28474 msgid ""
28475 " mknod-c mode devmajor devminor path\n"
28476 "\n"
28477 msgstr ""
28478
28479 # type: textblock
28480 #. type: textblock
28481 #: ../fish/guestfish-actions.pod:3133
28482 msgid ""
28483 "This call creates a char device node called C<path> with mode C<mode> and "
28484 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28485 "wrapper around L</mknod>."
28486 msgstr ""
28487
28488 # type: =head2
28489 #. type: =head2
28490 #: ../fish/guestfish-actions.pod:3139
28491 msgid "mkswap"
28492 msgstr ""
28493
28494 # type: verbatim
28495 #. type: verbatim
28496 #: ../fish/guestfish-actions.pod:3141
28497 #, no-wrap
28498 msgid ""
28499 " mkswap device\n"
28500 "\n"
28501 msgstr ""
28502
28503 # type: =head2
28504 #. type: =head2
28505 #: ../fish/guestfish-actions.pod:3145
28506 msgid "mkswap-L"
28507 msgstr ""
28508
28509 # type: verbatim
28510 #. type: verbatim
28511 #: ../fish/guestfish-actions.pod:3147
28512 #, no-wrap
28513 msgid ""
28514 " mkswap-L label device\n"
28515 "\n"
28516 msgstr ""
28517
28518 # type: =head2
28519 #. type: =head2
28520 #: ../fish/guestfish-actions.pod:3155
28521 msgid "mkswap-U"
28522 msgstr ""
28523
28524 # type: verbatim
28525 #. type: verbatim
28526 #: ../fish/guestfish-actions.pod:3157
28527 #, no-wrap
28528 msgid ""
28529 " mkswap-U uuid device\n"
28530 "\n"
28531 msgstr ""
28532
28533 # type: =head2
28534 #. type: =head2
28535 #: ../fish/guestfish-actions.pod:3161
28536 msgid "mkswap-file"
28537 msgstr ""
28538
28539 # type: verbatim
28540 #. type: verbatim
28541 #: ../fish/guestfish-actions.pod:3163
28542 #, no-wrap
28543 msgid ""
28544 " mkswap-file path\n"
28545 "\n"
28546 msgstr ""
28547
28548 # type: textblock
28549 #. type: textblock
28550 #: ../fish/guestfish-actions.pod:3167
28551 msgid ""
28552 "This command just writes a swap file signature to an existing file.  To "
28553 "create the file itself, use something like L</fallocate>."
28554 msgstr ""
28555
28556 # type: =head2
28557 #. type: =head2
28558 #: ../fish/guestfish-actions.pod:3170
28559 msgid "modprobe"
28560 msgstr ""
28561
28562 # type: verbatim
28563 #. type: verbatim
28564 #: ../fish/guestfish-actions.pod:3172
28565 #, no-wrap
28566 msgid ""
28567 " modprobe modulename\n"
28568 "\n"
28569 msgstr ""
28570
28571 # type: =head2
28572 #. type: =head2
28573 #: ../fish/guestfish-actions.pod:3179
28574 msgid "mount"
28575 msgstr ""
28576
28577 # type: verbatim
28578 #. type: verbatim
28579 #: ../fish/guestfish-actions.pod:3181
28580 #, no-wrap
28581 msgid ""
28582 " mount device mountpoint\n"
28583 "\n"
28584 msgstr ""
28585
28586 # type: textblock
28587 #. type: textblock
28588 #: ../fish/guestfish-actions.pod:3197
28589 msgid ""
28590 "B<Important note:> When you use this call, the filesystem options C<sync> "
28591 "and C<noatime> are set implicitly.  This was originally done because we "
28592 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28593 "very large negative performance impact and negligible effect on "
28594 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28595 "code that needs performance, and instead use L</mount-options> (use an empty "
28596 "string for the first parameter if you don't want any options)."
28597 msgstr ""
28598
28599 # type: =head2
28600 #. type: =head2
28601 #: ../fish/guestfish-actions.pod:3207
28602 msgid "mount-loop"
28603 msgstr ""
28604
28605 # type: verbatim
28606 #. type: verbatim
28607 #: ../fish/guestfish-actions.pod:3209
28608 #, no-wrap
28609 msgid ""
28610 " mount-loop file mountpoint\n"
28611 "\n"
28612 msgstr ""
28613
28614 # type: =head2
28615 #. type: =head2
28616 #: ../fish/guestfish-actions.pod:3215
28617 msgid "mount-options"
28618 msgstr ""
28619
28620 # type: verbatim
28621 #. type: verbatim
28622 #: ../fish/guestfish-actions.pod:3217
28623 #, no-wrap
28624 msgid ""
28625 " mount-options options device mountpoint\n"
28626 "\n"
28627 msgstr ""
28628
28629 # type: textblock
28630 #. type: textblock
28631 #: ../fish/guestfish-actions.pod:3219
28632 msgid ""
28633 "This is the same as the L</mount> command, but it allows you to set the "
28634 "mount options as for the L<mount(8)> I<-o> flag."
28635 msgstr ""
28636
28637 # type: =head2
28638 #. type: =head2
28639 #: ../fish/guestfish-actions.pod:3227
28640 msgid "mount-ro"
28641 msgstr ""
28642
28643 # type: verbatim
28644 #. type: verbatim
28645 #: ../fish/guestfish-actions.pod:3229
28646 #, no-wrap
28647 msgid ""
28648 " mount-ro device mountpoint\n"
28649 "\n"
28650 msgstr ""
28651
28652 # type: textblock
28653 #. type: textblock
28654 #: ../fish/guestfish-actions.pod:3231
28655 msgid ""
28656 "This is the same as the L</mount> command, but it mounts the filesystem with "
28657 "the read-only (I<-o ro>) flag."
28658 msgstr ""
28659
28660 # type: =head2
28661 #. type: =head2
28662 #: ../fish/guestfish-actions.pod:3234
28663 msgid "mount-vfs"
28664 msgstr ""
28665
28666 # type: verbatim
28667 #. type: verbatim
28668 #: ../fish/guestfish-actions.pod:3236
28669 #, no-wrap
28670 msgid ""
28671 " mount-vfs options vfstype device mountpoint\n"
28672 "\n"
28673 msgstr ""
28674
28675 # type: textblock
28676 #. type: textblock
28677 #: ../fish/guestfish-actions.pod:3238
28678 msgid ""
28679 "This is the same as the L</mount> command, but it allows you to set both the "
28680 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
28681 msgstr ""
28682
28683 # type: =head2
28684 #. type: =head2
28685 #: ../fish/guestfish-actions.pod:3242
28686 msgid "mountpoints"
28687 msgstr ""
28688
28689 # type: verbatim
28690 #. type: verbatim
28691 #: ../fish/guestfish-actions.pod:3244
28692 #, no-wrap
28693 msgid ""
28694 " mountpoints\n"
28695 "\n"
28696 msgstr ""
28697
28698 # type: textblock
28699 #. type: textblock
28700 #: ../fish/guestfish-actions.pod:3246
28701 msgid ""
28702 "This call is similar to L</mounts>.  That call returns a list of devices.  "
28703 "This one returns a hash table (map) of device name to directory where the "
28704 "device is mounted."
28705 msgstr ""
28706
28707 # type: =head2
28708 #. type: =head2
28709 #: ../fish/guestfish-actions.pod:3250
28710 msgid "mounts"
28711 msgstr ""
28712
28713 # type: verbatim
28714 #. type: verbatim
28715 #: ../fish/guestfish-actions.pod:3252
28716 #, no-wrap
28717 msgid ""
28718 " mounts\n"
28719 "\n"
28720 msgstr ""
28721
28722 # type: textblock
28723 #. type: textblock
28724 #: ../fish/guestfish-actions.pod:3259
28725 msgid "See also: L</mountpoints>"
28726 msgstr ""
28727
28728 # type: =head2
28729 #. type: =head2
28730 #: ../fish/guestfish-actions.pod:3261
28731 msgid "mv"
28732 msgstr ""
28733
28734 # type: verbatim
28735 #. type: verbatim
28736 #: ../fish/guestfish-actions.pod:3263
28737 #, no-wrap
28738 msgid ""
28739 " mv src dest\n"
28740 "\n"
28741 msgstr ""
28742
28743 # type: =head2
28744 #. type: =head2
28745 #: ../fish/guestfish-actions.pod:3268
28746 msgid "ntfs-3g-probe"
28747 msgstr ""
28748
28749 # type: verbatim
28750 #. type: verbatim
28751 #: ../fish/guestfish-actions.pod:3270
28752 #, no-wrap
28753 msgid ""
28754 " ntfs-3g-probe true|false device\n"
28755 "\n"
28756 msgstr ""
28757
28758 # type: =head2
28759 #. type: =head2
28760 #: ../fish/guestfish-actions.pod:3284
28761 msgid "ntfsresize"
28762 msgstr ""
28763
28764 # type: verbatim
28765 #. type: verbatim
28766 #: ../fish/guestfish-actions.pod:3286
28767 #, no-wrap
28768 msgid ""
28769 " ntfsresize device\n"
28770 "\n"
28771 msgstr ""
28772
28773 # type: =head2
28774 #. type: =head2
28775 #: ../fish/guestfish-actions.pod:3292
28776 msgid "ntfsresize-size"
28777 msgstr ""
28778
28779 # type: verbatim
28780 #. type: verbatim
28781 #: ../fish/guestfish-actions.pod:3294
28782 #, no-wrap
28783 msgid ""
28784 " ntfsresize-size device size\n"
28785 "\n"
28786 msgstr ""
28787
28788 # type: textblock
28789 #. type: textblock
28790 #: ../fish/guestfish-actions.pod:3296
28791 msgid ""
28792 "This command is the same as L</ntfsresize> except that it allows you to "
28793 "specify the new size (in bytes) explicitly."
28794 msgstr ""
28795
28796 # type: =head2
28797 #. type: =head2
28798 #: ../fish/guestfish-actions.pod:3299
28799 msgid "part-add"
28800 msgstr ""
28801
28802 # type: verbatim
28803 #. type: verbatim
28804 #: ../fish/guestfish-actions.pod:3301
28805 #, no-wrap
28806 msgid ""
28807 " part-add device prlogex startsect endsect\n"
28808 "\n"
28809 msgstr ""
28810
28811 # type: textblock
28812 #. type: textblock
28813 #: ../fish/guestfish-actions.pod:3303
28814 msgid ""
28815 "This command adds a partition to C<device>.  If there is no partition table "
28816 "on the device, call L</part-init> first."
28817 msgstr ""
28818
28819 # type: textblock
28820 #. type: textblock
28821 #: ../fish/guestfish-actions.pod:3315
28822 msgid ""
28823 "Creating a partition which covers the whole disk is not so easy.  Use L</"
28824 "part-disk> to do that."
28825 msgstr ""
28826
28827 # type: =head2
28828 #. type: =head2
28829 #: ../fish/guestfish-actions.pod:3318
28830 msgid "part-del"
28831 msgstr ""
28832
28833 # type: verbatim
28834 #. type: verbatim
28835 #: ../fish/guestfish-actions.pod:3320
28836 #, no-wrap
28837 msgid ""
28838 " part-del device partnum\n"
28839 "\n"
28840 msgstr ""
28841
28842 # type: =head2
28843 #. type: =head2
28844 #: ../fish/guestfish-actions.pod:3328
28845 msgid "part-disk"
28846 msgstr ""
28847
28848 # type: verbatim
28849 #. type: verbatim
28850 #: ../fish/guestfish-actions.pod:3330
28851 #, no-wrap
28852 msgid ""
28853 " part-disk device parttype\n"
28854 "\n"
28855 msgstr ""
28856
28857 # type: textblock
28858 #. type: textblock
28859 #: ../fish/guestfish-actions.pod:3332
28860 msgid ""
28861 "This command is simply a combination of L</part-init> followed by L</part-"
28862 "add> to create a single primary partition covering the whole disk."
28863 msgstr ""
28864
28865 # type: textblock
28866 #. type: textblock
28867 #: ../fish/guestfish-actions.pod:3336
28868 msgid ""
28869 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28870 "possible values are described in L</part-init>."
28871 msgstr ""
28872
28873 # type: =head2
28874 #. type: =head2
28875 #: ../fish/guestfish-actions.pod:3342
28876 msgid "part-get-bootable"
28877 msgstr ""
28878
28879 # type: verbatim
28880 #. type: verbatim
28881 #: ../fish/guestfish-actions.pod:3344
28882 #, no-wrap
28883 msgid ""
28884 " part-get-bootable device partnum\n"
28885 "\n"
28886 msgstr ""
28887
28888 # type: textblock
28889 #. type: textblock
28890 #: ../fish/guestfish-actions.pod:3349
28891 msgid "See also L</part-set-bootable>."
28892 msgstr ""
28893
28894 # type: =head2
28895 #. type: =head2
28896 #: ../fish/guestfish-actions.pod:3351
28897 msgid "part-get-mbr-id"
28898 msgstr ""
28899
28900 # type: verbatim
28901 #. type: verbatim
28902 #: ../fish/guestfish-actions.pod:3353
28903 #, no-wrap
28904 msgid ""
28905 " part-get-mbr-id device partnum\n"
28906 "\n"
28907 msgstr ""
28908
28909 # type: textblock
28910 #. type: textblock
28911 #: ../fish/guestfish-actions.pod:3358 ../fish/guestfish-actions.pod:3496
28912 msgid ""
28913 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28914 "undefined results for other partition table types (see L</part-get-"
28915 "parttype>)."
28916 msgstr ""
28917
28918 # type: =head2
28919 #. type: =head2
28920 #: ../fish/guestfish-actions.pod:3362
28921 msgid "part-get-parttype"
28922 msgstr ""
28923
28924 # type: verbatim
28925 #. type: verbatim
28926 #: ../fish/guestfish-actions.pod:3364
28927 #, no-wrap
28928 msgid ""
28929 " part-get-parttype device\n"
28930 "\n"
28931 msgstr ""
28932
28933 # type: textblock
28934 #. type: textblock
28935 #: ../fish/guestfish-actions.pod:3369
28936 msgid ""
28937 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28938 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28939 "possible, although unusual.  See L</part-init> for a full list."
28940 msgstr ""
28941
28942 # type: =head2
28943 #. type: =head2
28944 #: ../fish/guestfish-actions.pod:3374
28945 msgid "part-init"
28946 msgstr ""
28947
28948 # type: verbatim
28949 #. type: verbatim
28950 #: ../fish/guestfish-actions.pod:3376
28951 #, no-wrap
28952 msgid ""
28953 " part-init device parttype\n"
28954 "\n"
28955 msgstr ""
28956
28957 # type: textblock
28958 #. type: textblock
28959 #: ../fish/guestfish-actions.pod:3382
28960 msgid ""
28961 "Initially there are no partitions.  Following this, you should call L</part-"
28962 "add> for each partition required."
28963 msgstr ""
28964
28965 # type: =head2
28966 #. type: =head2
28967 #: ../fish/guestfish-actions.pod:3445
28968 msgid "part-list"
28969 msgstr ""
28970
28971 # type: verbatim
28972 #. type: verbatim
28973 #: ../fish/guestfish-actions.pod:3447
28974 #, no-wrap
28975 msgid ""
28976 " part-list device\n"
28977 "\n"
28978 msgstr ""
28979
28980 # type: textblock
28981 #. type: textblock
28982 #: ../fish/guestfish-actions.pod:3462
28983 msgid ""
28984 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28985 "the device's sector size, see L</blockdev-getss>."
28986 msgstr ""
28987
28988 # type: =head2
28989 #. type: =head2
28990 #: ../fish/guestfish-actions.pod:3475
28991 msgid "part-set-bootable"
28992 msgstr ""
28993
28994 # type: verbatim
28995 #. type: verbatim
28996 #: ../fish/guestfish-actions.pod:3477
28997 #, no-wrap
28998 msgid ""
28999 " part-set-bootable device partnum true|false\n"
29000 "\n"
29001 msgstr ""
29002
29003 # type: =head2
29004 #. type: =head2
29005 #: ../fish/guestfish-actions.pod:3486
29006 msgid "part-set-mbr-id"
29007 msgstr ""
29008
29009 # type: verbatim
29010 #. type: verbatim
29011 #: ../fish/guestfish-actions.pod:3488
29012 #, no-wrap
29013 msgid ""
29014 " part-set-mbr-id device partnum idbyte\n"
29015 "\n"
29016 msgstr ""
29017
29018 # type: =head2
29019 #. type: =head2
29020 #: ../fish/guestfish-actions.pod:3500
29021 msgid "part-set-name"
29022 msgstr ""
29023
29024 # type: verbatim
29025 #. type: verbatim
29026 #: ../fish/guestfish-actions.pod:3502
29027 #, no-wrap
29028 msgid ""
29029 " part-set-name device partnum name\n"
29030 "\n"
29031 msgstr ""
29032
29033 # type: =head2
29034 #. type: =head2
29035 #: ../fish/guestfish-actions.pod:3510
29036 msgid "part-to-dev"
29037 msgstr ""
29038
29039 # type: verbatim
29040 #. type: verbatim
29041 #: ../fish/guestfish-actions.pod:3512
29042 #, no-wrap
29043 msgid ""
29044 " part-to-dev partition\n"
29045 "\n"
29046 msgstr ""
29047
29048 # type: textblock
29049 #. type: textblock
29050 #: ../fish/guestfish-actions.pod:3518
29051 msgid ""
29052 "The named partition must exist, for example as a string returned from L</"
29053 "list-partitions>."
29054 msgstr ""
29055
29056 # type: =head2
29057 #. type: =head2
29058 #: ../fish/guestfish-actions.pod:3521
29059 msgid "ping-daemon"
29060 msgstr ""
29061
29062 # type: verbatim
29063 #. type: verbatim
29064 #: ../fish/guestfish-actions.pod:3523
29065 #, no-wrap
29066 msgid ""
29067 " ping-daemon\n"
29068 "\n"
29069 msgstr ""
29070
29071 # type: =head2
29072 #. type: =head2
29073 #: ../fish/guestfish-actions.pod:3530
29074 msgid "pread"
29075 msgstr ""
29076
29077 # type: verbatim
29078 #. type: verbatim
29079 #: ../fish/guestfish-actions.pod:3532
29080 #, no-wrap
29081 msgid ""
29082 " pread path count offset\n"
29083 "\n"
29084 msgstr ""
29085
29086 # type: textblock
29087 #. type: textblock
29088 #: ../fish/guestfish-actions.pod:3540
29089 msgid "See also L</pwrite>, L</pread-device>."
29090 msgstr ""
29091
29092 # type: =head2
29093 #. type: =head2
29094 #: ../fish/guestfish-actions.pod:3545
29095 msgid "pread-device"
29096 msgstr ""
29097
29098 # type: verbatim
29099 #. type: verbatim
29100 #: ../fish/guestfish-actions.pod:3547
29101 #, no-wrap
29102 msgid ""
29103 " pread-device device count offset\n"
29104 "\n"
29105 msgstr ""
29106
29107 # type: textblock
29108 #. type: textblock
29109 #: ../fish/guestfish-actions.pod:3555
29110 msgid "See also L</pread>."
29111 msgstr ""
29112
29113 # type: =head2
29114 #. type: =head2
29115 #: ../fish/guestfish-actions.pod:3560
29116 msgid "pvcreate"
29117 msgstr ""
29118
29119 # type: verbatim
29120 #. type: verbatim
29121 #: ../fish/guestfish-actions.pod:3562
29122 #, no-wrap
29123 msgid ""
29124 " pvcreate device\n"
29125 "\n"
29126 msgstr ""
29127
29128 # type: =head2
29129 #. type: =head2
29130 #: ../fish/guestfish-actions.pod:3568
29131 msgid "pvremove"
29132 msgstr ""
29133
29134 # type: verbatim
29135 #. type: verbatim
29136 #: ../fish/guestfish-actions.pod:3570
29137 #, no-wrap
29138 msgid ""
29139 " pvremove device\n"
29140 "\n"
29141 msgstr ""
29142
29143 # type: =head2
29144 #. type: =head2
29145 #: ../fish/guestfish-actions.pod:3579
29146 msgid "pvresize"
29147 msgstr ""
29148
29149 # type: verbatim
29150 #. type: verbatim
29151 #: ../fish/guestfish-actions.pod:3581
29152 #, no-wrap
29153 msgid ""
29154 " pvresize device\n"
29155 "\n"
29156 msgstr ""
29157
29158 # type: =head2
29159 #. type: =head2
29160 #: ../fish/guestfish-actions.pod:3586
29161 msgid "pvresize-size"
29162 msgstr ""
29163
29164 # type: verbatim
29165 #. type: verbatim
29166 #: ../fish/guestfish-actions.pod:3588
29167 #, no-wrap
29168 msgid ""
29169 " pvresize-size device size\n"
29170 "\n"
29171 msgstr ""
29172
29173 # type: textblock
29174 #. type: textblock
29175 #: ../fish/guestfish-actions.pod:3590
29176 msgid ""
29177 "This command is the same as L</pvresize> except that it allows you to "
29178 "specify the new size (in bytes) explicitly."
29179 msgstr ""
29180
29181 # type: =head2
29182 #. type: =head2
29183 #: ../fish/guestfish-actions.pod:3593
29184 msgid "pvs"
29185 msgstr ""
29186
29187 # type: verbatim
29188 #. type: verbatim
29189 #: ../fish/guestfish-actions.pod:3595
29190 #, no-wrap
29191 msgid ""
29192 " pvs\n"
29193 "\n"
29194 msgstr ""
29195
29196 # type: textblock
29197 #. type: textblock
29198 #: ../fish/guestfish-actions.pod:3603
29199 msgid "See also L</pvs-full>."
29200 msgstr ""
29201
29202 # type: =head2
29203 #. type: =head2
29204 #: ../fish/guestfish-actions.pod:3605
29205 msgid "pvs-full"
29206 msgstr ""
29207
29208 # type: verbatim
29209 #. type: verbatim
29210 #: ../fish/guestfish-actions.pod:3607
29211 #, no-wrap
29212 msgid ""
29213 " pvs-full\n"
29214 "\n"
29215 msgstr ""
29216
29217 # type: =head2
29218 #. type: =head2
29219 #: ../fish/guestfish-actions.pod:3612
29220 msgid "pvuuid"
29221 msgstr ""
29222
29223 # type: verbatim
29224 #. type: verbatim
29225 #: ../fish/guestfish-actions.pod:3614
29226 #, no-wrap
29227 msgid ""
29228 " pvuuid device\n"
29229 "\n"
29230 msgstr ""
29231
29232 # type: =head2
29233 #. type: =head2
29234 #: ../fish/guestfish-actions.pod:3618
29235 msgid "pwrite"
29236 msgstr ""
29237
29238 # type: verbatim
29239 #. type: verbatim
29240 #: ../fish/guestfish-actions.pod:3620
29241 #, no-wrap
29242 msgid ""
29243 " pwrite path content offset\n"
29244 "\n"
29245 msgstr ""
29246
29247 # type: textblock
29248 #. type: textblock
29249 #: ../fish/guestfish-actions.pod:3631
29250 msgid "See also L</pread>, L</pwrite-device>."
29251 msgstr ""
29252
29253 # type: =head2
29254 #. type: =head2
29255 #: ../fish/guestfish-actions.pod:3636
29256 msgid "pwrite-device"
29257 msgstr ""
29258
29259 # type: verbatim
29260 #. type: verbatim
29261 #: ../fish/guestfish-actions.pod:3638
29262 #, no-wrap
29263 msgid ""
29264 " pwrite-device device content offset\n"
29265 "\n"
29266 msgstr ""
29267
29268 # type: textblock
29269 #. type: textblock
29270 #: ../fish/guestfish-actions.pod:3648
29271 msgid "See also L</pwrite>."
29272 msgstr ""
29273
29274 # type: =head2
29275 #. type: =head2
29276 #: ../fish/guestfish-actions.pod:3653
29277 msgid "read-file"
29278 msgstr ""
29279
29280 # type: verbatim
29281 #. type: verbatim
29282 #: ../fish/guestfish-actions.pod:3655
29283 #, no-wrap
29284 msgid ""
29285 " read-file path\n"
29286 "\n"
29287 msgstr ""
29288
29289 # type: textblock
29290 #. type: textblock
29291 #: ../fish/guestfish-actions.pod:3660
29292 msgid ""
29293 "Unlike L</cat>, this function can correctly handle files that contain "
29294 "embedded ASCII NUL characters.  However unlike L</download>, this function "
29295 "is limited in the total size of file that can be handled."
29296 msgstr ""
29297
29298 # type: =head2
29299 #. type: =head2
29300 #: ../fish/guestfish-actions.pod:3668
29301 msgid "read-lines"
29302 msgstr ""
29303
29304 # type: verbatim
29305 #. type: verbatim
29306 #: ../fish/guestfish-actions.pod:3670
29307 #, no-wrap
29308 msgid ""
29309 " read-lines path\n"
29310 "\n"
29311 msgstr ""
29312
29313 # type: textblock
29314 #. type: textblock
29315 #: ../fish/guestfish-actions.pod:3677
29316 msgid ""
29317 "Note that this function cannot correctly handle binary files (specifically, "
29318 "files containing C<\\0> character which is treated as end of line).  For "
29319 "those you need to use the L</read-file> function which has a more complex "
29320 "interface."
29321 msgstr ""
29322
29323 # type: =head2
29324 #. type: =head2
29325 #: ../fish/guestfish-actions.pod:3682
29326 msgid "readdir"
29327 msgstr ""
29328
29329 # type: verbatim
29330 #. type: verbatim
29331 #: ../fish/guestfish-actions.pod:3684
29332 #, no-wrap
29333 msgid ""
29334 " readdir dir\n"
29335 "\n"
29336 msgstr ""
29337
29338 # type: textblock
29339 #. type: textblock
29340 #: ../fish/guestfish-actions.pod:3736
29341 msgid ""
29342 "This function is primarily intended for use by programs.  To get a simple "
29343 "list of names, use L</ls>.  To get a printable directory for human "
29344 "consumption, use L</ll>."
29345 msgstr ""
29346
29347 # type: =head2
29348 #. type: =head2
29349 #: ../fish/guestfish-actions.pod:3740
29350 msgid "readlink"
29351 msgstr ""
29352
29353 # type: verbatim
29354 #. type: verbatim
29355 #: ../fish/guestfish-actions.pod:3742
29356 #, no-wrap
29357 msgid ""
29358 " readlink path\n"
29359 "\n"
29360 msgstr ""
29361
29362 # type: =head2
29363 #. type: =head2
29364 #: ../fish/guestfish-actions.pod:3746
29365 msgid "readlinklist"
29366 msgstr ""
29367
29368 # type: verbatim
29369 #. type: verbatim
29370 #: ../fish/guestfish-actions.pod:3748
29371 #, no-wrap
29372 msgid ""
29373 " readlinklist path 'names ...'\n"
29374 "\n"
29375 msgstr ""
29376
29377 # type: =head2
29378 #. type: =head2
29379 #: ../fish/guestfish-actions.pod:3772
29380 msgid "realpath"
29381 msgstr ""
29382
29383 # type: verbatim
29384 #. type: verbatim
29385 #: ../fish/guestfish-actions.pod:3774
29386 #, no-wrap
29387 msgid ""
29388 " realpath path\n"
29389 "\n"
29390 msgstr ""
29391
29392 # type: =head2
29393 #. type: =head2
29394 #: ../fish/guestfish-actions.pod:3779
29395 msgid "removexattr"
29396 msgstr ""
29397
29398 # type: verbatim
29399 #. type: verbatim
29400 #: ../fish/guestfish-actions.pod:3781
29401 #, no-wrap
29402 msgid ""
29403 " removexattr xattr path\n"
29404 "\n"
29405 msgstr ""
29406
29407 # type: textblock
29408 #. type: textblock
29409 #: ../fish/guestfish-actions.pod:3786
29410 msgid "See also: L</lremovexattr>, L<attr(5)>."
29411 msgstr ""
29412
29413 # type: =head2
29414 #. type: =head2
29415 #: ../fish/guestfish-actions.pod:3788
29416 msgid "resize2fs"
29417 msgstr ""
29418
29419 # type: verbatim
29420 #. type: verbatim
29421 #: ../fish/guestfish-actions.pod:3790
29422 #, no-wrap
29423 msgid ""
29424 " resize2fs device\n"
29425 "\n"
29426 msgstr ""
29427
29428 # type: textblock
29429 #. type: textblock
29430 #: ../fish/guestfish-actions.pod:3795
29431 msgid ""
29432 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29433 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29434 "gives an error about this and sometimes not.  In any case, it is always safe "
29435 "to call L</e2fsck-f> before calling this function."
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../fish/guestfish-actions.pod:3801
29440 msgid "resize2fs-M"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../fish/guestfish-actions.pod:3803
29445 #, no-wrap
29446 msgid ""
29447 " resize2fs-M device\n"
29448 "\n"
29449 msgstr ""
29450
29451 #. type: textblock
29452 #: ../fish/guestfish-actions.pod:3805
29453 msgid ""
29454 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29455 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
29456 "command."
29457 msgstr ""
29458
29459 #. type: textblock
29460 #: ../fish/guestfish-actions.pod:3809
29461 msgid ""
29462 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29463 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29464 "multiplied together, give the resulting size of the minimal filesystem in "
29465 "bytes."
29466 msgstr ""
29467
29468 # type: =head2
29469 #. type: =head2
29470 #: ../fish/guestfish-actions.pod:3814
29471 msgid "resize2fs-size"
29472 msgstr ""
29473
29474 # type: verbatim
29475 #. type: verbatim
29476 #: ../fish/guestfish-actions.pod:3816
29477 #, no-wrap
29478 msgid ""
29479 " resize2fs-size device size\n"
29480 "\n"
29481 msgstr ""
29482
29483 # type: textblock
29484 #. type: textblock
29485 #: ../fish/guestfish-actions.pod:3818
29486 msgid ""
29487 "This command is the same as L</resize2fs> except that it allows you to "
29488 "specify the new size (in bytes) explicitly."
29489 msgstr ""
29490
29491 # type: =head2
29492 #. type: =head2
29493 #: ../fish/guestfish-actions.pod:3821
29494 msgid "rm"
29495 msgstr ""
29496
29497 # type: verbatim
29498 #. type: verbatim
29499 #: ../fish/guestfish-actions.pod:3823
29500 #, no-wrap
29501 msgid ""
29502 " rm path\n"
29503 "\n"
29504 msgstr ""
29505
29506 # type: =head2
29507 #. type: =head2
29508 #: ../fish/guestfish-actions.pod:3827
29509 msgid "rm-rf"
29510 msgstr ""
29511
29512 # type: verbatim
29513 #. type: verbatim
29514 #: ../fish/guestfish-actions.pod:3829
29515 #, no-wrap
29516 msgid ""
29517 " rm-rf path\n"
29518 "\n"
29519 msgstr ""
29520
29521 # type: =head2
29522 #. type: =head2
29523 #: ../fish/guestfish-actions.pod:3835
29524 msgid "rmdir"
29525 msgstr ""
29526
29527 # type: verbatim
29528 #. type: verbatim
29529 #: ../fish/guestfish-actions.pod:3837
29530 #, no-wrap
29531 msgid ""
29532 " rmdir path\n"
29533 "\n"
29534 msgstr ""
29535
29536 # type: =head2
29537 #. type: =head2
29538 #: ../fish/guestfish-actions.pod:3841
29539 msgid "rmmountpoint"
29540 msgstr ""
29541
29542 # type: verbatim
29543 #. type: verbatim
29544 #: ../fish/guestfish-actions.pod:3843
29545 #, no-wrap
29546 msgid ""
29547 " rmmountpoint exemptpath\n"
29548 "\n"
29549 msgstr ""
29550
29551 # type: textblock
29552 #. type: textblock
29553 #: ../fish/guestfish-actions.pod:3845
29554 msgid ""
29555 "This calls removes a mountpoint that was previously created with L</"
29556 "mkmountpoint>.  See L</mkmountpoint> for full details."
29557 msgstr ""
29558
29559 # type: =head2
29560 #. type: =head2
29561 #: ../fish/guestfish-actions.pod:3849
29562 msgid "scrub-device"
29563 msgstr ""
29564
29565 # type: verbatim
29566 #. type: verbatim
29567 #: ../fish/guestfish-actions.pod:3851
29568 #, no-wrap
29569 msgid ""
29570 " scrub-device device\n"
29571 "\n"
29572 msgstr ""
29573
29574 # type: =head2
29575 #. type: =head2
29576 #: ../fish/guestfish-actions.pod:3862
29577 msgid "scrub-file"
29578 msgstr ""
29579
29580 # type: verbatim
29581 #. type: verbatim
29582 #: ../fish/guestfish-actions.pod:3864
29583 #, no-wrap
29584 msgid ""
29585 " scrub-file file\n"
29586 "\n"
29587 msgstr ""
29588
29589 # type: =head2
29590 #. type: =head2
29591 #: ../fish/guestfish-actions.pod:3874
29592 msgid "scrub-freespace"
29593 msgstr ""
29594
29595 # type: verbatim
29596 #. type: verbatim
29597 #: ../fish/guestfish-actions.pod:3876
29598 #, no-wrap
29599 msgid ""
29600 " scrub-freespace dir\n"
29601 "\n"
29602 msgstr ""
29603
29604 # type: textblock
29605 #. type: textblock
29606 #: ../fish/guestfish-actions.pod:3878
29607 msgid ""
29608 "This command creates the directory C<dir> and then fills it with files until "
29609 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29610 "deletes them.  The intention is to scrub any free space on the partition "
29611 "containing C<dir>."
29612 msgstr ""
29613
29614 # type: =head2
29615 #. type: =head2
29616 #: ../fish/guestfish-actions.pod:3887
29617 msgid "set-append"
29618 msgstr ""
29619
29620 # type: =head2
29621 #. type: =head2
29622 #: ../fish/guestfish-actions.pod:3889
29623 msgid "append"
29624 msgstr ""
29625
29626 # type: verbatim
29627 #. type: verbatim
29628 #: ../fish/guestfish-actions.pod:3891
29629 #, no-wrap
29630 msgid ""
29631 " set-append append\n"
29632 "\n"
29633 msgstr ""
29634
29635 #. type: =head2
29636 #: ../fish/guestfish-actions.pod:3902
29637 msgid "set-attach-method"
29638 msgstr ""
29639
29640 #. type: =head2
29641 #: ../fish/guestfish-actions.pod:3904
29642 msgid "attach-method"
29643 msgstr ""
29644
29645 #. type: verbatim
29646 #: ../fish/guestfish-actions.pod:3906
29647 #, no-wrap
29648 msgid ""
29649 " set-attach-method attachmethod\n"
29650 "\n"
29651 msgstr ""
29652
29653 # type: =head2
29654 #. type: =head2
29655 #: ../fish/guestfish-actions.pod:3928
29656 msgid "set-autosync"
29657 msgstr ""
29658
29659 # type: =head2
29660 #. type: =head2
29661 #: ../fish/guestfish-actions.pod:3930
29662 msgid "autosync"
29663 msgstr ""
29664
29665 # type: verbatim
29666 #. type: verbatim
29667 #: ../fish/guestfish-actions.pod:3932
29668 #, no-wrap
29669 msgid ""
29670 " set-autosync true|false\n"
29671 "\n"
29672 msgstr ""
29673
29674 # type: =head2
29675 #. type: =head2
29676 #: ../fish/guestfish-actions.pod:3942
29677 msgid "set-direct"
29678 msgstr ""
29679
29680 # type: =head2
29681 #. type: =head2
29682 #: ../fish/guestfish-actions.pod:3944
29683 msgid "direct"
29684 msgstr ""
29685
29686 # type: verbatim
29687 #. type: verbatim
29688 #: ../fish/guestfish-actions.pod:3946
29689 #, no-wrap
29690 msgid ""
29691 " set-direct true|false\n"
29692 "\n"
29693 msgstr ""
29694
29695 # type: textblock
29696 #. type: textblock
29697 #: ../fish/guestfish-actions.pod:3952
29698 msgid ""
29699 "One consequence of this is that log messages aren't caught by the library "
29700 "and handled by L</set-log-message-callback>, but go straight to stdout."
29701 msgstr ""
29702
29703 # type: =head2
29704 #. type: =head2
29705 #: ../fish/guestfish-actions.pod:3961
29706 msgid "set-e2label"
29707 msgstr ""
29708
29709 # type: verbatim
29710 #. type: verbatim
29711 #: ../fish/guestfish-actions.pod:3963
29712 #, no-wrap
29713 msgid ""
29714 " set-e2label device label\n"
29715 "\n"
29716 msgstr ""
29717
29718 # type: textblock
29719 #. type: textblock
29720 #: ../fish/guestfish-actions.pod:3969
29721 msgid ""
29722 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
29723 "label on a filesystem."
29724 msgstr ""
29725
29726 # type: =head2
29727 #. type: =head2
29728 #: ../fish/guestfish-actions.pod:3972
29729 msgid "set-e2uuid"
29730 msgstr ""
29731
29732 # type: verbatim
29733 #. type: verbatim
29734 #: ../fish/guestfish-actions.pod:3974
29735 #, no-wrap
29736 msgid ""
29737 " set-e2uuid device uuid\n"
29738 "\n"
29739 msgstr ""
29740
29741 # type: textblock
29742 #. type: textblock
29743 #: ../fish/guestfish-actions.pod:3981
29744 msgid ""
29745 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
29746 "UUID of a filesystem."
29747 msgstr ""
29748
29749 # type: =head2
29750 #. type: =head2
29751 #: ../fish/guestfish-actions.pod:3984
29752 msgid "set-memsize"
29753 msgstr ""
29754
29755 # type: =head2
29756 #. type: =head2
29757 #: ../fish/guestfish-actions.pod:3986
29758 msgid "memsize"
29759 msgstr ""
29760
29761 # type: verbatim
29762 #. type: verbatim
29763 #: ../fish/guestfish-actions.pod:3988
29764 #, no-wrap
29765 msgid ""
29766 " set-memsize memsize\n"
29767 "\n"
29768 msgstr ""
29769
29770 # type: textblock
29771 #. type: textblock
29772 #: ../fish/guestfish-actions.pod:3990
29773 msgid ""
29774 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29775 "This only has any effect if called before L</launch>."
29776 msgstr ""
29777
29778 # type: =head2
29779 #. type: =head2
29780 #: ../fish/guestfish-actions.pod:4001
29781 msgid "set-network"
29782 msgstr ""
29783
29784 # type: =head2
29785 #. type: =head2
29786 #: ../fish/guestfish-actions.pod:4003
29787 msgid "network"
29788 msgstr ""
29789
29790 # type: verbatim
29791 #. type: verbatim
29792 #: ../fish/guestfish-actions.pod:4005
29793 #, no-wrap
29794 msgid ""
29795 " set-network true|false\n"
29796 "\n"
29797 msgstr ""
29798
29799 # type: textblock
29800 #. type: textblock
29801 #: ../fish/guestfish-actions.pod:4013
29802 msgid ""
29803 "You must call this before calling L</launch>, otherwise it has no effect."
29804 msgstr ""
29805
29806 # type: =head2
29807 #. type: =head2
29808 #: ../fish/guestfish-actions.pod:4016
29809 msgid "set-path"
29810 msgstr ""
29811
29812 # type: =head2
29813 #. type: =head2
29814 #: ../fish/guestfish-actions.pod:4018
29815 msgid "path"
29816 msgstr ""
29817
29818 # type: verbatim
29819 #. type: verbatim
29820 #: ../fish/guestfish-actions.pod:4020
29821 #, no-wrap
29822 msgid ""
29823 " set-path searchpath\n"
29824 "\n"
29825 msgstr ""
29826
29827 # type: =head2
29828 #. type: =head2
29829 #: ../fish/guestfish-actions.pod:4029
29830 msgid "set-qemu"
29831 msgstr ""
29832
29833 # type: =head2
29834 #. type: =head2
29835 #: ../fish/guestfish-actions.pod:4031
29836 msgid "qemu"
29837 msgstr ""
29838
29839 # type: verbatim
29840 #. type: verbatim
29841 #: ../fish/guestfish-actions.pod:4033
29842 #, no-wrap
29843 msgid ""
29844 " set-qemu qemu\n"
29845 "\n"
29846 msgstr ""
29847
29848 # type: =head2
29849 #. type: =head2
29850 #: ../fish/guestfish-actions.pod:4053
29851 msgid "set-recovery-proc"
29852 msgstr ""
29853
29854 # type: =head2
29855 #. type: =head2
29856 #: ../fish/guestfish-actions.pod:4055
29857 msgid "recovery-proc"
29858 msgstr ""
29859
29860 # type: verbatim
29861 #. type: verbatim
29862 #: ../fish/guestfish-actions.pod:4057
29863 #, no-wrap
29864 msgid ""
29865 " set-recovery-proc true|false\n"
29866 "\n"
29867 msgstr ""
29868
29869 # type: textblock
29870 #. type: textblock
29871 #: ../fish/guestfish-actions.pod:4059
29872 msgid ""
29873 "If this is called with the parameter C<false> then L</launch> does not "
29874 "create a recovery process.  The purpose of the recovery process is to stop "
29875 "runaway qemu processes in the case where the main program aborts abruptly."
29876 msgstr ""
29877
29878 # type: textblock
29879 #. type: textblock
29880 #: ../fish/guestfish-actions.pod:4064
29881 msgid ""
29882 "This only has any effect if called before L</launch>, and the default is "
29883 "true."
29884 msgstr ""
29885
29886 # type: =head2
29887 #. type: =head2
29888 #: ../fish/guestfish-actions.pod:4073
29889 msgid "set-selinux"
29890 msgstr ""
29891
29892 # type: =head2
29893 #. type: =head2
29894 #: ../fish/guestfish-actions.pod:4075
29895 msgid "selinux"
29896 msgstr ""
29897
29898 # type: verbatim
29899 #. type: verbatim
29900 #: ../fish/guestfish-actions.pod:4077
29901 #, no-wrap
29902 msgid ""
29903 " set-selinux true|false\n"
29904 "\n"
29905 msgstr ""
29906
29907 # type: =head2
29908 #. type: =head2
29909 #: ../fish/guestfish-actions.pod:4088
29910 msgid "set-trace"
29911 msgstr ""
29912
29913 # type: =head2
29914 #. type: =head2
29915 #: ../fish/guestfish-actions.pod:4090
29916 msgid "trace"
29917 msgstr ""
29918
29919 # type: verbatim
29920 #. type: verbatim
29921 #: ../fish/guestfish-actions.pod:4092
29922 #, no-wrap
29923 msgid ""
29924 " set-trace true|false\n"
29925 "\n"
29926 msgstr ""
29927
29928 #. type: textblock
29929 #: ../fish/guestfish-actions.pod:4104
29930 msgid ""
29931 "Trace messages are normally sent to C<stderr>, unless you register a "
29932 "callback to send them somewhere else (see L</set-event-callback>)."
29933 msgstr ""
29934
29935 # type: =head2
29936 #. type: =head2
29937 #: ../fish/guestfish-actions.pod:4108
29938 msgid "set-verbose"
29939 msgstr ""
29940
29941 # type: =head2
29942 #. type: =head2
29943 #: ../fish/guestfish-actions.pod:4110
29944 msgid "verbose"
29945 msgstr ""
29946
29947 # type: verbatim
29948 #. type: verbatim
29949 #: ../fish/guestfish-actions.pod:4112
29950 #, no-wrap
29951 msgid ""
29952 " set-verbose true|false\n"
29953 "\n"
29954 msgstr ""
29955
29956 #. type: textblock
29957 #: ../fish/guestfish-actions.pod:4119
29958 msgid ""
29959 "Verbose messages are normally sent to C<stderr>, unless you register a "
29960 "callback to send them somewhere else (see L</set-event-callback>)."
29961 msgstr ""
29962
29963 # type: =head2
29964 #. type: =head2
29965 #: ../fish/guestfish-actions.pod:4123
29966 msgid "setcon"
29967 msgstr ""
29968
29969 # type: verbatim
29970 #. type: verbatim
29971 #: ../fish/guestfish-actions.pod:4125
29972 #, no-wrap
29973 msgid ""
29974 " setcon context\n"
29975 "\n"
29976 msgstr ""
29977
29978 # type: =head2
29979 #. type: =head2
29980 #: ../fish/guestfish-actions.pod:4132
29981 msgid "setxattr"
29982 msgstr ""
29983
29984 # type: verbatim
29985 #. type: verbatim
29986 #: ../fish/guestfish-actions.pod:4134
29987 #, no-wrap
29988 msgid ""
29989 " setxattr xattr val vallen path\n"
29990 "\n"
29991 msgstr ""
29992
29993 # type: textblock
29994 #. type: textblock
29995 #: ../fish/guestfish-actions.pod:4140
29996 msgid "See also: L</lsetxattr>, L<attr(5)>."
29997 msgstr ""
29998
29999 # type: =head2
30000 #. type: =head2
30001 #: ../fish/guestfish-actions.pod:4142
30002 msgid "sfdisk"
30003 msgstr ""
30004
30005 # type: verbatim
30006 #. type: verbatim
30007 #: ../fish/guestfish-actions.pod:4144
30008 #, no-wrap
30009 msgid ""
30010 " sfdisk device cyls heads sectors 'lines ...'\n"
30011 "\n"
30012 msgstr ""
30013
30014 # type: textblock
30015 #. type: textblock
30016 #: ../fish/guestfish-actions.pod:4166
30017 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
30018 msgstr ""
30019
30020 # type: =head2
30021 #. type: =head2
30022 #: ../fish/guestfish-actions.pod:4172
30023 msgid "sfdiskM"
30024 msgstr ""
30025
30026 # type: verbatim
30027 #. type: verbatim
30028 #: ../fish/guestfish-actions.pod:4174
30029 #, no-wrap
30030 msgid ""
30031 " sfdiskM device 'lines ...'\n"
30032 "\n"
30033 msgstr ""
30034
30035 # type: textblock
30036 #. type: textblock
30037 #: ../fish/guestfish-actions.pod:4176
30038 msgid ""
30039 "This is a simplified interface to the L</sfdisk> command, where partition "
30040 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
30041 "you don't need to specify the cyls, heads and sectors parameters which were "
30042 "rarely if ever used anyway."
30043 msgstr ""
30044
30045 # type: textblock
30046 #. type: textblock
30047 #: ../fish/guestfish-actions.pod:4182
30048 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
30049 msgstr ""
30050
30051 # type: =head2
30052 #. type: =head2
30053 #: ../fish/guestfish-actions.pod:4188
30054 msgid "sfdisk-N"
30055 msgstr ""
30056
30057 # type: verbatim
30058 #. type: verbatim
30059 #: ../fish/guestfish-actions.pod:4190
30060 #, no-wrap
30061 msgid ""
30062 " sfdisk-N device partnum cyls heads sectors line\n"
30063 "\n"
30064 msgstr ""
30065
30066 # type: textblock
30067 #. type: textblock
30068 #: ../fish/guestfish-actions.pod:4195
30069 msgid ""
30070 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
30071 "cyls/heads/sectors parameters."
30072 msgstr ""
30073
30074 # type: textblock
30075 #. type: textblock
30076 #: ../fish/guestfish-actions.pod:4198
30077 msgid "See also: L</part-add>"
30078 msgstr ""
30079
30080 # type: =head2
30081 #. type: =head2
30082 #: ../fish/guestfish-actions.pod:4203
30083 msgid "sfdisk-disk-geometry"
30084 msgstr ""
30085
30086 # type: verbatim
30087 #. type: verbatim
30088 #: ../fish/guestfish-actions.pod:4205
30089 #, no-wrap
30090 msgid ""
30091 " sfdisk-disk-geometry device\n"
30092 "\n"
30093 msgstr ""
30094
30095 # type: textblock
30096 #. type: textblock
30097 #: ../fish/guestfish-actions.pod:4207
30098 msgid ""
30099 "This displays the disk geometry of C<device> read from the partition table.  "
30100 "Especially in the case where the underlying block device has been resized, "
30101 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
30102 "kernel-geometry>)."
30103 msgstr ""
30104
30105 # type: =head2
30106 #. type: =head2
30107 #: ../fish/guestfish-actions.pod:4215
30108 msgid "sfdisk-kernel-geometry"
30109 msgstr ""
30110
30111 # type: verbatim
30112 #. type: verbatim
30113 #: ../fish/guestfish-actions.pod:4217
30114 #, no-wrap
30115 msgid ""
30116 " sfdisk-kernel-geometry device\n"
30117 "\n"
30118 msgstr ""
30119
30120 # type: =head2
30121 #. type: =head2
30122 #: ../fish/guestfish-actions.pod:4224
30123 msgid "sfdisk-l"
30124 msgstr ""
30125
30126 # type: verbatim
30127 #. type: verbatim
30128 #: ../fish/guestfish-actions.pod:4226
30129 #, no-wrap
30130 msgid ""
30131 " sfdisk-l device\n"
30132 "\n"
30133 msgstr ""
30134
30135 # type: textblock
30136 #. type: textblock
30137 #: ../fish/guestfish-actions.pod:4232
30138 msgid "See also: L</part-list>"
30139 msgstr ""
30140
30141 # type: =head2
30142 #. type: =head2
30143 #: ../fish/guestfish-actions.pod:4234
30144 msgid "sh"
30145 msgstr ""
30146
30147 # type: verbatim
30148 #. type: verbatim
30149 #: ../fish/guestfish-actions.pod:4236
30150 #, no-wrap
30151 msgid ""
30152 " sh command\n"
30153 "\n"
30154 msgstr ""
30155
30156 # type: textblock
30157 #. type: textblock
30158 #: ../fish/guestfish-actions.pod:4241
30159 msgid "This is like L</command>, but passes the command to:"
30160 msgstr ""
30161
30162 # type: textblock
30163 #. type: textblock
30164 #: ../fish/guestfish-actions.pod:4249
30165 msgid "All the provisos about L</command> apply to this call."
30166 msgstr ""
30167
30168 # type: =head2
30169 #. type: =head2
30170 #: ../fish/guestfish-actions.pod:4251
30171 msgid "sh-lines"
30172 msgstr ""
30173
30174 # type: verbatim
30175 #. type: verbatim
30176 #: ../fish/guestfish-actions.pod:4253
30177 #, no-wrap
30178 msgid ""
30179 " sh-lines command\n"
30180 "\n"
30181 msgstr ""
30182
30183 # type: textblock
30184 #. type: textblock
30185 #: ../fish/guestfish-actions.pod:4255
30186 msgid "This is the same as L</sh>, but splits the result into a list of lines."
30187 msgstr ""
30188
30189 # type: textblock
30190 #. type: textblock
30191 #: ../fish/guestfish-actions.pod:4258
30192 msgid "See also: L</command-lines>"
30193 msgstr ""
30194
30195 # type: =head2
30196 #. type: =head2
30197 #: ../fish/guestfish-actions.pod:4260
30198 msgid "sleep"
30199 msgstr ""
30200
30201 # type: verbatim
30202 #. type: verbatim
30203 #: ../fish/guestfish-actions.pod:4262
30204 #, no-wrap
30205 msgid ""
30206 " sleep secs\n"
30207 "\n"
30208 msgstr ""
30209
30210 # type: =head2
30211 #. type: =head2
30212 #: ../fish/guestfish-actions.pod:4266
30213 msgid "stat"
30214 msgstr ""
30215
30216 # type: verbatim
30217 #. type: verbatim
30218 #: ../fish/guestfish-actions.pod:4268
30219 #, no-wrap
30220 msgid ""
30221 " stat path\n"
30222 "\n"
30223 msgstr ""
30224
30225 # type: =head2
30226 #. type: =head2
30227 #: ../fish/guestfish-actions.pod:4274
30228 msgid "statvfs"
30229 msgstr ""
30230
30231 # type: verbatim
30232 #. type: verbatim
30233 #: ../fish/guestfish-actions.pod:4276
30234 #, no-wrap
30235 msgid ""
30236 " statvfs path\n"
30237 "\n"
30238 msgstr ""
30239
30240 # type: =head2
30241 #. type: =head2
30242 #: ../fish/guestfish-actions.pod:4284
30243 msgid "strings"
30244 msgstr ""
30245
30246 # type: verbatim
30247 #. type: verbatim
30248 #: ../fish/guestfish-actions.pod:4286
30249 #, no-wrap
30250 msgid ""
30251 " strings path\n"
30252 "\n"
30253 msgstr ""
30254
30255 # type: =head2
30256 #. type: =head2
30257 #: ../fish/guestfish-actions.pod:4294
30258 msgid "strings-e"
30259 msgstr ""
30260
30261 # type: verbatim
30262 #. type: verbatim
30263 #: ../fish/guestfish-actions.pod:4296
30264 #, no-wrap
30265 msgid ""
30266 " strings-e encoding path\n"
30267 "\n"
30268 msgstr ""
30269
30270 # type: textblock
30271 #. type: textblock
30272 #: ../fish/guestfish-actions.pod:4298
30273 msgid ""
30274 "This is like the L</strings> command, but allows you to specify the encoding "
30275 "of strings that are looked for in the source file C<path>."
30276 msgstr ""
30277
30278 # type: textblock
30279 #. type: textblock
30280 #: ../fish/guestfish-actions.pod:4308
30281 msgid ""
30282 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30283 "ISO-8859-X (this is what L</strings> uses)."
30284 msgstr ""
30285
30286 # type: =head2
30287 #. type: =head2
30288 #: ../fish/guestfish-actions.pod:4340
30289 msgid "swapoff-device"
30290 msgstr ""
30291
30292 # type: verbatim
30293 #. type: verbatim
30294 #: ../fish/guestfish-actions.pod:4342
30295 #, no-wrap
30296 msgid ""
30297 " swapoff-device device\n"
30298 "\n"
30299 msgstr ""
30300
30301 # type: textblock
30302 #. type: textblock
30303 #: ../fish/guestfish-actions.pod:4344
30304 msgid ""
30305 "This command disables the libguestfs appliance swap device or partition "
30306 "named C<device>.  See L</swapon-device>."
30307 msgstr ""
30308
30309 # type: =head2
30310 #. type: =head2
30311 #: ../fish/guestfish-actions.pod:4348
30312 msgid "swapoff-file"
30313 msgstr ""
30314
30315 # type: verbatim
30316 #. type: verbatim
30317 #: ../fish/guestfish-actions.pod:4350
30318 #, no-wrap
30319 msgid ""
30320 " swapoff-file file\n"
30321 "\n"
30322 msgstr ""
30323
30324 # type: =head2
30325 #. type: =head2
30326 #: ../fish/guestfish-actions.pod:4354
30327 msgid "swapoff-label"
30328 msgstr ""
30329
30330 # type: verbatim
30331 #. type: verbatim
30332 #: ../fish/guestfish-actions.pod:4356
30333 #, no-wrap
30334 msgid ""
30335 " swapoff-label label\n"
30336 "\n"
30337 msgstr ""
30338
30339 # type: =head2
30340 #. type: =head2
30341 #: ../fish/guestfish-actions.pod:4361
30342 msgid "swapoff-uuid"
30343 msgstr ""
30344
30345 # type: verbatim
30346 #. type: verbatim
30347 #: ../fish/guestfish-actions.pod:4363
30348 #, no-wrap
30349 msgid ""
30350 " swapoff-uuid uuid\n"
30351 "\n"
30352 msgstr ""
30353
30354 # type: =head2
30355 #. type: =head2
30356 #: ../fish/guestfish-actions.pod:4368
30357 msgid "swapon-device"
30358 msgstr ""
30359
30360 # type: verbatim
30361 #. type: verbatim
30362 #: ../fish/guestfish-actions.pod:4370
30363 #, no-wrap
30364 msgid ""
30365 " swapon-device device\n"
30366 "\n"
30367 msgstr ""
30368
30369 # type: textblock
30370 #. type: textblock
30371 #: ../fish/guestfish-actions.pod:4372
30372 msgid ""
30373 "This command enables the libguestfs appliance to use the swap device or "
30374 "partition named C<device>.  The increased memory is made available for all "
30375 "commands, for example those run using L</command> or L</sh>."
30376 msgstr ""
30377
30378 # type: =head2
30379 #. type: =head2
30380 #: ../fish/guestfish-actions.pod:4384
30381 msgid "swapon-file"
30382 msgstr ""
30383
30384 # type: verbatim
30385 #. type: verbatim
30386 #: ../fish/guestfish-actions.pod:4386
30387 #, no-wrap
30388 msgid ""
30389 " swapon-file file\n"
30390 "\n"
30391 msgstr ""
30392
30393 # type: textblock
30394 #. type: textblock
30395 #: ../fish/guestfish-actions.pod:4388
30396 msgid ""
30397 "This command enables swap to a file.  See L</swapon-device> for other notes."
30398 msgstr ""
30399
30400 # type: =head2
30401 #. type: =head2
30402 #: ../fish/guestfish-actions.pod:4391
30403 msgid "swapon-label"
30404 msgstr ""
30405
30406 # type: verbatim
30407 #. type: verbatim
30408 #: ../fish/guestfish-actions.pod:4393
30409 #, no-wrap
30410 msgid ""
30411 " swapon-label label\n"
30412 "\n"
30413 msgstr ""
30414
30415 # type: textblock
30416 #. type: textblock
30417 #: ../fish/guestfish-actions.pod:4395
30418 msgid ""
30419 "This command enables swap to a labeled swap partition.  See L</swapon-"
30420 "device> for other notes."
30421 msgstr ""
30422
30423 # type: =head2
30424 #. type: =head2
30425 #: ../fish/guestfish-actions.pod:4398
30426 msgid "swapon-uuid"
30427 msgstr ""
30428
30429 # type: verbatim
30430 #. type: verbatim
30431 #: ../fish/guestfish-actions.pod:4400
30432 #, no-wrap
30433 msgid ""
30434 " swapon-uuid uuid\n"
30435 "\n"
30436 msgstr ""
30437
30438 # type: textblock
30439 #. type: textblock
30440 #: ../fish/guestfish-actions.pod:4402
30441 msgid ""
30442 "This command enables swap to a swap partition with the given UUID.  See L</"
30443 "swapon-device> for other notes."
30444 msgstr ""
30445
30446 # type: =head2
30447 #. type: =head2
30448 #: ../fish/guestfish-actions.pod:4405
30449 msgid "sync"
30450 msgstr ""
30451
30452 # type: verbatim
30453 #. type: verbatim
30454 #: ../fish/guestfish-actions.pod:4407
30455 #, no-wrap
30456 msgid ""
30457 " sync\n"
30458 "\n"
30459 msgstr ""
30460
30461 # type: =head2
30462 #. type: =head2
30463 #: ../fish/guestfish-actions.pod:4415
30464 msgid "tail"
30465 msgstr ""
30466
30467 # type: verbatim
30468 #. type: verbatim
30469 #: ../fish/guestfish-actions.pod:4417
30470 #, no-wrap
30471 msgid ""
30472 " tail path\n"
30473 "\n"
30474 msgstr ""
30475
30476 # type: =head2
30477 #. type: =head2
30478 #: ../fish/guestfish-actions.pod:4425
30479 msgid "tail-n"
30480 msgstr ""
30481
30482 # type: verbatim
30483 #. type: verbatim
30484 #: ../fish/guestfish-actions.pod:4427
30485 #, no-wrap
30486 msgid ""
30487 " tail-n nrlines path\n"
30488 "\n"
30489 msgstr ""
30490
30491 # type: =head2
30492 #. type: =head2
30493 #: ../fish/guestfish-actions.pod:4440
30494 msgid "tar-in"
30495 msgstr ""
30496
30497 # type: verbatim
30498 #. type: verbatim
30499 #: ../fish/guestfish-actions.pod:4442
30500 #, no-wrap
30501 msgid ""
30502 " tar-in (tarfile|-) directory\n"
30503 "\n"
30504 msgstr ""
30505
30506 # type: textblock
30507 #. type: textblock
30508 #: ../fish/guestfish-actions.pod:4447
30509 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30510 msgstr ""
30511
30512 # type: =head2
30513 #. type: =head2
30514 #: ../fish/guestfish-actions.pod:4452
30515 msgid "tar-out"
30516 msgstr ""
30517
30518 # type: verbatim
30519 #. type: verbatim
30520 #: ../fish/guestfish-actions.pod:4454
30521 #, no-wrap
30522 msgid ""
30523 " tar-out directory (tarfile|-)\n"
30524 "\n"
30525 msgstr ""
30526
30527 # type: textblock
30528 #. type: textblock
30529 #: ../fish/guestfish-actions.pod:4459
30530 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30531 msgstr ""
30532
30533 # type: =head2
30534 #. type: =head2
30535 #: ../fish/guestfish-actions.pod:4464
30536 msgid "tgz-in"
30537 msgstr ""
30538
30539 # type: verbatim
30540 #. type: verbatim
30541 #: ../fish/guestfish-actions.pod:4466
30542 #, no-wrap
30543 msgid ""
30544 " tgz-in (tarball|-) directory\n"
30545 "\n"
30546 msgstr ""
30547
30548 # type: textblock
30549 #. type: textblock
30550 #: ../fish/guestfish-actions.pod:4471
30551 msgid "To upload an uncompressed tarball, use L</tar-in>."
30552 msgstr ""
30553
30554 # type: =head2
30555 #. type: =head2
30556 #: ../fish/guestfish-actions.pod:4475
30557 msgid "tgz-out"
30558 msgstr ""
30559
30560 # type: verbatim
30561 #. type: verbatim
30562 #: ../fish/guestfish-actions.pod:4477
30563 #, no-wrap
30564 msgid ""
30565 " tgz-out directory (tarball|-)\n"
30566 "\n"
30567 msgstr ""
30568
30569 # type: textblock
30570 #. type: textblock
30571 #: ../fish/guestfish-actions.pod:4482
30572 msgid "To download an uncompressed tarball, use L</tar-out>."
30573 msgstr ""
30574
30575 # type: =head2
30576 #. type: =head2
30577 #: ../fish/guestfish-actions.pod:4486
30578 msgid "touch"
30579 msgstr ""
30580
30581 # type: verbatim
30582 #. type: verbatim
30583 #: ../fish/guestfish-actions.pod:4488
30584 #, no-wrap
30585 msgid ""
30586 " touch path\n"
30587 "\n"
30588 msgstr ""
30589
30590 # type: =head2
30591 #. type: =head2
30592 #: ../fish/guestfish-actions.pod:4497
30593 msgid "truncate"
30594 msgstr ""
30595
30596 # type: verbatim
30597 #. type: verbatim
30598 #: ../fish/guestfish-actions.pod:4499
30599 #, no-wrap
30600 msgid ""
30601 " truncate path\n"
30602 "\n"
30603 msgstr ""
30604
30605 # type: =head2
30606 #. type: =head2
30607 #: ../fish/guestfish-actions.pod:4504
30608 msgid "truncate-size"
30609 msgstr ""
30610
30611 # type: verbatim
30612 #. type: verbatim
30613 #: ../fish/guestfish-actions.pod:4506
30614 #, no-wrap
30615 msgid ""
30616 " truncate-size path size\n"
30617 "\n"
30618 msgstr ""
30619
30620 # type: textblock
30621 #. type: textblock
30622 #: ../fish/guestfish-actions.pod:4511
30623 msgid ""
30624 "If the current file size is less than C<size> then the file is extended to "
30625 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30626 "blocks are not allocated for the file until you write to it).  To create a "
30627 "non-sparse file of zeroes, use L</fallocate64> instead."
30628 msgstr ""
30629
30630 # type: =head2
30631 #. type: =head2
30632 #: ../fish/guestfish-actions.pod:4517
30633 msgid "tune2fs-l"
30634 msgstr ""
30635
30636 # type: verbatim
30637 #. type: verbatim
30638 #: ../fish/guestfish-actions.pod:4519
30639 #, no-wrap
30640 msgid ""
30641 " tune2fs-l device\n"
30642 "\n"
30643 msgstr ""
30644
30645 # type: =head2
30646 #. type: =head2
30647 #: ../fish/guestfish-actions.pod:4529
30648 msgid "txz-in"
30649 msgstr ""
30650
30651 # type: verbatim
30652 #. type: verbatim
30653 #: ../fish/guestfish-actions.pod:4531
30654 #, no-wrap
30655 msgid ""
30656 " txz-in (tarball|-) directory\n"
30657 "\n"
30658 msgstr ""
30659
30660 # type: =head2
30661 #. type: =head2
30662 #: ../fish/guestfish-actions.pod:4538
30663 msgid "txz-out"
30664 msgstr ""
30665
30666 # type: verbatim
30667 #. type: verbatim
30668 #: ../fish/guestfish-actions.pod:4540
30669 #, no-wrap
30670 msgid ""
30671 " txz-out directory (tarball|-)\n"
30672 "\n"
30673 msgstr ""
30674
30675 # type: =head2
30676 #. type: =head2
30677 #: ../fish/guestfish-actions.pod:4547
30678 msgid "umask"
30679 msgstr ""
30680
30681 # type: verbatim
30682 #. type: verbatim
30683 #: ../fish/guestfish-actions.pod:4549
30684 #, no-wrap
30685 msgid ""
30686 " umask mask\n"
30687 "\n"
30688 msgstr ""
30689
30690 # type: textblock
30691 #. type: textblock
30692 #: ../fish/guestfish-actions.pod:4563
30693 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
30694 msgstr ""
30695
30696 # type: =head2
30697 #. type: =head2
30698 #: ../fish/guestfish-actions.pod:4568
30699 msgid "umount"
30700 msgstr ""
30701
30702 # type: =head2
30703 #. type: =head2
30704 #: ../fish/guestfish-actions.pod:4570
30705 msgid "unmount"
30706 msgstr ""
30707
30708 # type: verbatim
30709 #. type: verbatim
30710 #: ../fish/guestfish-actions.pod:4572
30711 #, no-wrap
30712 msgid ""
30713 " umount pathordevice\n"
30714 "\n"
30715 msgstr ""
30716
30717 # type: =head2
30718 #. type: =head2
30719 #: ../fish/guestfish-actions.pod:4578
30720 msgid "umount-all"
30721 msgstr ""
30722
30723 # type: =head2
30724 #. type: =head2
30725 #: ../fish/guestfish-actions.pod:4580
30726 msgid "unmount-all"
30727 msgstr ""
30728
30729 # type: verbatim
30730 #. type: verbatim
30731 #: ../fish/guestfish-actions.pod:4582
30732 #, no-wrap
30733 msgid ""
30734 " umount-all\n"
30735 "\n"
30736 msgstr ""
30737
30738 # type: =head2
30739 #. type: =head2
30740 #: ../fish/guestfish-actions.pod:4588
30741 msgid "upload"
30742 msgstr ""
30743
30744 # type: verbatim
30745 #. type: verbatim
30746 #: ../fish/guestfish-actions.pod:4590
30747 #, no-wrap
30748 msgid ""
30749 " upload (filename|-) remotefilename\n"
30750 "\n"
30751 msgstr ""
30752
30753 # type: textblock
30754 #. type: textblock
30755 #: ../fish/guestfish-actions.pod:4597
30756 msgid "See also L</download>."
30757 msgstr ""
30758
30759 # type: =head2
30760 #. type: =head2
30761 #: ../fish/guestfish-actions.pod:4601
30762 msgid "upload-offset"
30763 msgstr ""
30764
30765 # type: verbatim
30766 #. type: verbatim
30767 #: ../fish/guestfish-actions.pod:4603
30768 #, no-wrap
30769 msgid ""
30770 " upload-offset (filename|-) remotefilename offset\n"
30771 "\n"
30772 msgstr ""
30773
30774 # type: textblock
30775 #. type: textblock
30776 #: ../fish/guestfish-actions.pod:4615
30777 msgid ""
30778 "Note that there is no limit on the amount of data that can be uploaded with "
30779 "this call, unlike with L</pwrite>, and this call always writes the full "
30780 "amount unless an error occurs."
30781 msgstr ""
30782
30783 # type: textblock
30784 #. type: textblock
30785 #: ../fish/guestfish-actions.pod:4620
30786 msgid "See also L</upload>, L</pwrite>."
30787 msgstr ""
30788
30789 # type: =head2
30790 #. type: =head2
30791 #: ../fish/guestfish-actions.pod:4624
30792 msgid "utimens"
30793 msgstr ""
30794
30795 # type: verbatim
30796 #. type: verbatim
30797 #: ../fish/guestfish-actions.pod:4626
30798 #, no-wrap
30799 msgid ""
30800 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
30801 "\n"
30802 msgstr ""
30803
30804 # type: =head2
30805 #. type: =head2
30806 #: ../fish/guestfish-actions.pod:4645
30807 msgid "version"
30808 msgstr ""
30809
30810 # type: verbatim
30811 #. type: verbatim
30812 #: ../fish/guestfish-actions.pod:4647
30813 #, no-wrap
30814 msgid ""
30815 " version\n"
30816 "\n"
30817 msgstr ""
30818
30819 # type: textblock
30820 #. type: textblock
30821 #: ../fish/guestfish-actions.pod:4674
30822 msgid ""
30823 "I<Note:> Don't use this call to test for availability of features.  In "
30824 "enterprise distributions we backport features from later versions into "
30825 "earlier versions, making this an unreliable way to test for features.  Use "
30826 "L</available> instead."
30827 msgstr ""
30828
30829 # type: =head2
30830 #. type: =head2
30831 #: ../fish/guestfish-actions.pod:4680
30832 msgid "vfs-label"
30833 msgstr ""
30834
30835 # type: verbatim
30836 #. type: verbatim
30837 #: ../fish/guestfish-actions.pod:4682
30838 #, no-wrap
30839 msgid ""
30840 " vfs-label device\n"
30841 "\n"
30842 msgstr ""
30843
30844 # type: textblock
30845 #. type: textblock
30846 #: ../fish/guestfish-actions.pod:4689
30847 msgid "To find a filesystem from the label, use L</findfs-label>."
30848 msgstr ""
30849
30850 # type: =head2
30851 #. type: =head2
30852 #: ../fish/guestfish-actions.pod:4691
30853 msgid "vfs-type"
30854 msgstr ""
30855
30856 # type: verbatim
30857 #. type: verbatim
30858 #: ../fish/guestfish-actions.pod:4693
30859 #, no-wrap
30860 msgid ""
30861 " vfs-type device\n"
30862 "\n"
30863 msgstr ""
30864
30865 # type: =head2
30866 #. type: =head2
30867 #: ../fish/guestfish-actions.pod:4703
30868 msgid "vfs-uuid"
30869 msgstr ""
30870
30871 # type: verbatim
30872 #. type: verbatim
30873 #: ../fish/guestfish-actions.pod:4705
30874 #, no-wrap
30875 msgid ""
30876 " vfs-uuid device\n"
30877 "\n"
30878 msgstr ""
30879
30880 # type: textblock
30881 #. type: textblock
30882 #: ../fish/guestfish-actions.pod:4712
30883 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
30884 msgstr ""
30885
30886 # type: =head2
30887 #. type: =head2
30888 #: ../fish/guestfish-actions.pod:4714
30889 msgid "vg-activate"
30890 msgstr ""
30891
30892 # type: verbatim
30893 #. type: verbatim
30894 #: ../fish/guestfish-actions.pod:4716
30895 #, no-wrap
30896 msgid ""
30897 " vg-activate true|false 'volgroups ...'\n"
30898 "\n"
30899 msgstr ""
30900
30901 # type: =head2
30902 #. type: =head2
30903 #: ../fish/guestfish-actions.pod:4729
30904 msgid "vg-activate-all"
30905 msgstr ""
30906
30907 # type: verbatim
30908 #. type: verbatim
30909 #: ../fish/guestfish-actions.pod:4731
30910 #, no-wrap
30911 msgid ""
30912 " vg-activate-all true|false\n"
30913 "\n"
30914 msgstr ""
30915
30916 # type: =head2
30917 #. type: =head2
30918 #: ../fish/guestfish-actions.pod:4741
30919 msgid "vgcreate"
30920 msgstr ""
30921
30922 # type: verbatim
30923 #. type: verbatim
30924 #: ../fish/guestfish-actions.pod:4743
30925 #, no-wrap
30926 msgid ""
30927 " vgcreate volgroup 'physvols ...'\n"
30928 "\n"
30929 msgstr ""
30930
30931 # type: =head2
30932 #. type: =head2
30933 #: ../fish/guestfish-actions.pod:4748
30934 msgid "vglvuuids"
30935 msgstr ""
30936
30937 # type: verbatim
30938 #. type: verbatim
30939 #: ../fish/guestfish-actions.pod:4750
30940 #, no-wrap
30941 msgid ""
30942 " vglvuuids vgname\n"
30943 "\n"
30944 msgstr ""
30945
30946 # type: textblock
30947 #. type: textblock
30948 #: ../fish/guestfish-actions.pod:4755
30949 msgid ""
30950 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
30951 "logical volumes and volume groups."
30952 msgstr ""
30953
30954 # type: textblock
30955 #. type: textblock
30956 #: ../fish/guestfish-actions.pod:4758
30957 msgid "See also L</vgpvuuids>."
30958 msgstr ""
30959
30960 # type: =head2
30961 #. type: =head2
30962 #: ../fish/guestfish-actions.pod:4760
30963 msgid "vgpvuuids"
30964 msgstr ""
30965
30966 # type: verbatim
30967 #. type: verbatim
30968 #: ../fish/guestfish-actions.pod:4762
30969 #, no-wrap
30970 msgid ""
30971 " vgpvuuids vgname\n"
30972 "\n"
30973 msgstr ""
30974
30975 # type: textblock
30976 #. type: textblock
30977 #: ../fish/guestfish-actions.pod:4767
30978 msgid ""
30979 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
30980 "physical volumes and volume groups."
30981 msgstr ""
30982
30983 # type: textblock
30984 #. type: textblock
30985 #: ../fish/guestfish-actions.pod:4770
30986 msgid "See also L</vglvuuids>."
30987 msgstr ""
30988
30989 # type: =head2
30990 #. type: =head2
30991 #: ../fish/guestfish-actions.pod:4772
30992 msgid "vgremove"
30993 msgstr ""
30994
30995 # type: verbatim
30996 #. type: verbatim
30997 #: ../fish/guestfish-actions.pod:4774
30998 #, no-wrap
30999 msgid ""
31000 " vgremove vgname\n"
31001 "\n"
31002 msgstr ""
31003
31004 # type: =head2
31005 #. type: =head2
31006 #: ../fish/guestfish-actions.pod:4781
31007 msgid "vgrename"
31008 msgstr ""
31009
31010 # type: verbatim
31011 #. type: verbatim
31012 #: ../fish/guestfish-actions.pod:4783
31013 #, no-wrap
31014 msgid ""
31015 " vgrename volgroup newvolgroup\n"
31016 "\n"
31017 msgstr ""
31018
31019 # type: =head2
31020 #. type: =head2
31021 #: ../fish/guestfish-actions.pod:4787
31022 msgid "vgs"
31023 msgstr ""
31024
31025 # type: verbatim
31026 #. type: verbatim
31027 #: ../fish/guestfish-actions.pod:4789
31028 #, no-wrap
31029 msgid ""
31030 " vgs\n"
31031 "\n"
31032 msgstr ""
31033
31034 # type: textblock
31035 #. type: textblock
31036 #: ../fish/guestfish-actions.pod:4797
31037 msgid "See also L</vgs-full>."
31038 msgstr ""
31039
31040 # type: =head2
31041 #. type: =head2
31042 #: ../fish/guestfish-actions.pod:4799
31043 msgid "vgs-full"
31044 msgstr ""
31045
31046 # type: verbatim
31047 #. type: verbatim
31048 #: ../fish/guestfish-actions.pod:4801
31049 #, no-wrap
31050 msgid ""
31051 " vgs-full\n"
31052 "\n"
31053 msgstr ""
31054
31055 # type: =head2
31056 #. type: =head2
31057 #: ../fish/guestfish-actions.pod:4806
31058 msgid "vgscan"
31059 msgstr ""
31060
31061 # type: verbatim
31062 #. type: verbatim
31063 #: ../fish/guestfish-actions.pod:4808
31064 #, no-wrap
31065 msgid ""
31066 " vgscan\n"
31067 "\n"
31068 msgstr ""
31069
31070 # type: =head2
31071 #. type: =head2
31072 #: ../fish/guestfish-actions.pod:4813
31073 msgid "vguuid"
31074 msgstr ""
31075
31076 # type: verbatim
31077 #. type: verbatim
31078 #: ../fish/guestfish-actions.pod:4815
31079 #, no-wrap
31080 msgid ""
31081 " vguuid vgname\n"
31082 "\n"
31083 msgstr ""
31084
31085 # type: =head2
31086 #. type: =head2
31087 #: ../fish/guestfish-actions.pod:4819
31088 msgid "wc-c"
31089 msgstr ""
31090
31091 # type: verbatim
31092 #. type: verbatim
31093 #: ../fish/guestfish-actions.pod:4821
31094 #, no-wrap
31095 msgid ""
31096 " wc-c path\n"
31097 "\n"
31098 msgstr ""
31099
31100 # type: =head2
31101 #. type: =head2
31102 #: ../fish/guestfish-actions.pod:4826
31103 msgid "wc-l"
31104 msgstr ""
31105
31106 # type: verbatim
31107 #. type: verbatim
31108 #: ../fish/guestfish-actions.pod:4828
31109 #, no-wrap
31110 msgid ""
31111 " wc-l path\n"
31112 "\n"
31113 msgstr ""
31114
31115 # type: =head2
31116 #. type: =head2
31117 #: ../fish/guestfish-actions.pod:4833
31118 msgid "wc-w"
31119 msgstr ""
31120
31121 # type: verbatim
31122 #. type: verbatim
31123 #: ../fish/guestfish-actions.pod:4835
31124 #, no-wrap
31125 msgid ""
31126 " wc-w path\n"
31127 "\n"
31128 msgstr ""
31129
31130 # type: =head2
31131 #. type: =head2
31132 #: ../fish/guestfish-actions.pod:4840
31133 msgid "write"
31134 msgstr ""
31135
31136 # type: verbatim
31137 #. type: verbatim
31138 #: ../fish/guestfish-actions.pod:4842
31139 #, no-wrap
31140 msgid ""
31141 " write path content\n"
31142 "\n"
31143 msgstr ""
31144
31145 # type: =head2
31146 #. type: =head2
31147 #: ../fish/guestfish-actions.pod:4850
31148 msgid "write-file"
31149 msgstr ""
31150
31151 # type: verbatim
31152 #. type: verbatim
31153 #: ../fish/guestfish-actions.pod:4852
31154 #, no-wrap
31155 msgid ""
31156 " write-file path content size\n"
31157 "\n"
31158 msgstr ""
31159
31160 # type: =head2
31161 #. type: =head2
31162 #: ../fish/guestfish-actions.pod:4875
31163 msgid "zegrep"
31164 msgstr ""
31165
31166 # type: verbatim
31167 #. type: verbatim
31168 #: ../fish/guestfish-actions.pod:4877
31169 #, no-wrap
31170 msgid ""
31171 " zegrep regex path\n"
31172 "\n"
31173 msgstr ""
31174
31175 # type: =head2
31176 #. type: =head2
31177 #: ../fish/guestfish-actions.pod:4885
31178 msgid "zegrepi"
31179 msgstr ""
31180
31181 # type: verbatim
31182 #. type: verbatim
31183 #: ../fish/guestfish-actions.pod:4887
31184 #, no-wrap
31185 msgid ""
31186 " zegrepi regex path\n"
31187 "\n"
31188 msgstr ""
31189
31190 # type: =head2
31191 #. type: =head2
31192 #: ../fish/guestfish-actions.pod:4895
31193 msgid "zero"
31194 msgstr ""
31195
31196 # type: verbatim
31197 #. type: verbatim
31198 #: ../fish/guestfish-actions.pod:4897
31199 #, no-wrap
31200 msgid ""
31201 " zero device\n"
31202 "\n"
31203 msgstr ""
31204
31205 # type: textblock
31206 #. type: textblock
31207 #: ../fish/guestfish-actions.pod:4905
31208 msgid "See also: L</zero-device>, L</scrub-device>."
31209 msgstr ""
31210
31211 # type: =head2
31212 #. type: =head2
31213 #: ../fish/guestfish-actions.pod:4907
31214 msgid "zero-device"
31215 msgstr ""
31216
31217 # type: verbatim
31218 #. type: verbatim
31219 #: ../fish/guestfish-actions.pod:4909
31220 #, no-wrap
31221 msgid ""
31222 " zero-device device\n"
31223 "\n"
31224 msgstr ""
31225
31226 # type: textblock
31227 #. type: textblock
31228 #: ../fish/guestfish-actions.pod:4911
31229 msgid ""
31230 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
31231 "which just zeroes the first few blocks of a device."
31232 msgstr ""
31233
31234 # type: =head2
31235 #. type: =head2
31236 #: ../fish/guestfish-actions.pod:4918
31237 msgid "zerofree"
31238 msgstr ""
31239
31240 # type: verbatim
31241 #. type: verbatim
31242 #: ../fish/guestfish-actions.pod:4920
31243 #, no-wrap
31244 msgid ""
31245 " zerofree device\n"
31246 "\n"
31247 msgstr ""
31248
31249 # type: =head2
31250 #. type: =head2
31251 #: ../fish/guestfish-actions.pod:4933
31252 msgid "zfgrep"
31253 msgstr ""
31254
31255 # type: verbatim
31256 #. type: verbatim
31257 #: ../fish/guestfish-actions.pod:4935
31258 #, no-wrap
31259 msgid ""
31260 " zfgrep pattern path\n"
31261 "\n"
31262 msgstr ""
31263
31264 # type: =head2
31265 #. type: =head2
31266 #: ../fish/guestfish-actions.pod:4943
31267 msgid "zfgrepi"
31268 msgstr ""
31269
31270 # type: verbatim
31271 #. type: verbatim
31272 #: ../fish/guestfish-actions.pod:4945
31273 #, no-wrap
31274 msgid ""
31275 " zfgrepi pattern path\n"
31276 "\n"
31277 msgstr ""
31278
31279 # type: =head2
31280 #. type: =head2
31281 #: ../fish/guestfish-actions.pod:4953
31282 msgid "zfile"
31283 msgstr ""
31284
31285 # type: verbatim
31286 #. type: verbatim
31287 #: ../fish/guestfish-actions.pod:4955
31288 #, no-wrap
31289 msgid ""
31290 " zfile meth path\n"
31291 "\n"
31292 msgstr ""
31293
31294 # type: textblock
31295 #. type: textblock
31296 #: ../fish/guestfish-actions.pod:4962
31297 msgid ""
31298 "Since 1.0.63, use L</file> instead which can now process compressed files."
31299 msgstr ""
31300
31301 # type: =head2
31302 #. type: =head2
31303 #: ../fish/guestfish-actions.pod:4972
31304 msgid "zgrep"
31305 msgstr ""
31306
31307 # type: verbatim
31308 #. type: verbatim
31309 #: ../fish/guestfish-actions.pod:4974
31310 #, no-wrap
31311 msgid ""
31312 " zgrep regex path\n"
31313 "\n"
31314 msgstr ""
31315
31316 # type: =head2
31317 #. type: =head2
31318 #: ../fish/guestfish-actions.pod:4982
31319 msgid "zgrepi"
31320 msgstr ""
31321
31322 # type: verbatim
31323 #. type: verbatim
31324 #: ../fish/guestfish-actions.pod:4984
31325 #, no-wrap
31326 msgid ""
31327 " zgrepi regex path\n"
31328 "\n"
31329 msgstr ""
31330
31331 # type: =head2
31332 #. type: =head2
31333 #: ../fish/guestfish-commands.pod:1
31334 msgid "alloc"
31335 msgstr ""
31336
31337 # type: =head2
31338 #. type: =head2
31339 #: ../fish/guestfish-commands.pod:3
31340 msgid "allocate"
31341 msgstr ""
31342
31343 # type: verbatim
31344 #. type: verbatim
31345 #: ../fish/guestfish-commands.pod:5
31346 #, no-wrap
31347 msgid ""
31348 " alloc filename size\n"
31349 "\n"
31350 msgstr ""
31351
31352 # type: textblock
31353 #. type: textblock
31354 #: ../fish/guestfish-commands.pod:7
31355 msgid ""
31356 "This creates an empty (zeroed) file of the given size, and then adds so it "
31357 "can be further examined."
31358 msgstr ""
31359
31360 # type: textblock
31361 #. type: textblock
31362 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
31363 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
31364 msgstr ""
31365
31366 # type: textblock
31367 #. type: textblock
31368 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
31369 msgid "Size can be specified using standard suffixes, eg. C<1M>."
31370 msgstr ""
31371
31372 # type: textblock
31373 #. type: textblock
31374 #: ../fish/guestfish-commands.pod:14
31375 msgid ""
31376 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
31377 "image, see L</PREPARED DISK IMAGES>."
31378 msgstr ""
31379
31380 # type: =head2
31381 #. type: =head2
31382 #: ../fish/guestfish-commands.pod:17
31383 msgid "copy-in"
31384 msgstr ""
31385
31386 # type: verbatim
31387 #. type: verbatim
31388 #: ../fish/guestfish-commands.pod:19
31389 #, no-wrap
31390 msgid ""
31391 " copy-in local [local ...] /remotedir\n"
31392 "\n"
31393 msgstr ""
31394
31395 # type: textblock
31396 #. type: textblock
31397 #: ../fish/guestfish-commands.pod:21
31398 msgid ""
31399 "C<copy-in> copies local files or directories recursively into the disk "
31400 "image, placing them in the directory called C</remotedir> (which must "
31401 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
31402 "other commands as necessary."
31403 msgstr ""
31404
31405 # type: textblock
31406 #. type: textblock
31407 #: ../fish/guestfish-commands.pod:26
31408 msgid ""
31409 "Multiple local files and directories can be specified, but the last "
31410 "parameter must always be a remote directory.  Wildcards cannot be used."
31411 msgstr ""
31412
31413 # type: =head2
31414 #. type: =head2
31415 #: ../fish/guestfish-commands.pod:30
31416 msgid "copy-out"
31417 msgstr ""
31418
31419 # type: verbatim
31420 #. type: verbatim
31421 #: ../fish/guestfish-commands.pod:32
31422 #, no-wrap
31423 msgid ""
31424 " copy-out remote [remote ...] localdir\n"
31425 "\n"
31426 msgstr ""
31427
31428 # type: textblock
31429 #. type: textblock
31430 #: ../fish/guestfish-commands.pod:34
31431 msgid ""
31432 "C<copy-out> copies remote files or directories recursively out of the disk "
31433 "image, placing them on the host disk in a local directory called C<localdir> "
31434 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31435 "download>, L</tar-out> and other commands as necessary."
31436 msgstr ""
31437
31438 # type: textblock
31439 #. type: textblock
31440 #: ../fish/guestfish-commands.pod:40
31441 msgid ""
31442 "Multiple remote files and directories can be specified, but the last "
31443 "parameter must always be a local directory.  To download to the current "
31444 "directory, use C<.> as in:"
31445 msgstr ""
31446
31447 # type: verbatim
31448 #. type: verbatim
31449 #: ../fish/guestfish-commands.pod:44
31450 #, no-wrap
31451 msgid ""
31452 " copy-out /home .\n"
31453 "\n"
31454 msgstr ""
31455
31456 # type: textblock
31457 #. type: textblock
31458 #: ../fish/guestfish-commands.pod:46
31459 msgid ""
31460 "Wildcards cannot be used in the ordinary command, but you can use them with "
31461 "the help of L</glob> like this:"
31462 msgstr ""
31463
31464 # type: verbatim
31465 #. type: verbatim
31466 #: ../fish/guestfish-commands.pod:49
31467 #, no-wrap
31468 msgid ""
31469 " glob copy-out /home/* .\n"
31470 "\n"
31471 msgstr ""
31472
31473 # type: =head2
31474 #. type: =head2
31475 #: ../fish/guestfish-commands.pod:51
31476 msgid "echo"
31477 msgstr ""
31478
31479 # type: verbatim
31480 #. type: verbatim
31481 #: ../fish/guestfish-commands.pod:53
31482 #, no-wrap
31483 msgid ""
31484 " echo [params ...]\n"
31485 "\n"
31486 msgstr ""
31487
31488 # type: textblock
31489 #. type: textblock
31490 #: ../fish/guestfish-commands.pod:55
31491 msgid "This echos the parameters to the terminal."
31492 msgstr ""
31493
31494 # type: =head2
31495 #. type: =head2
31496 #: ../fish/guestfish-commands.pod:57
31497 msgid "edit"
31498 msgstr ""
31499
31500 # type: =head2
31501 #. type: =head2
31502 #: ../fish/guestfish-commands.pod:59
31503 msgid "vi"
31504 msgstr ""
31505
31506 # type: =head2
31507 #. type: =head2
31508 #: ../fish/guestfish-commands.pod:61
31509 msgid "emacs"
31510 msgstr ""
31511
31512 # type: verbatim
31513 #. type: verbatim
31514 #: ../fish/guestfish-commands.pod:63
31515 #, no-wrap
31516 msgid ""
31517 " edit filename\n"
31518 "\n"
31519 msgstr ""
31520
31521 # type: textblock
31522 #. type: textblock
31523 #: ../fish/guestfish-commands.pod:65
31524 msgid ""
31525 "This is used to edit a file.  It downloads the file, edits it locally using "
31526 "your editor, then uploads the result."
31527 msgstr ""
31528
31529 # type: textblock
31530 #. type: textblock
31531 #: ../fish/guestfish-commands.pod:68
31532 msgid ""
31533 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31534 "or C<emacs> you will get those corresponding editors."
31535 msgstr ""
31536
31537 # type: =head2
31538 #. type: =head2
31539 #: ../fish/guestfish-commands.pod:72
31540 msgid "glob"
31541 msgstr ""
31542
31543 # type: verbatim
31544 #. type: verbatim
31545 #: ../fish/guestfish-commands.pod:74
31546 #, no-wrap
31547 msgid ""
31548 " glob command args...\n"
31549 "\n"
31550 msgstr ""
31551
31552 # type: textblock
31553 #. type: textblock
31554 #: ../fish/guestfish-commands.pod:76
31555 msgid ""
31556 "Expand wildcards in any paths in the args list, and run C<command> "
31557 "repeatedly on each matching path."
31558 msgstr ""
31559
31560 # type: textblock
31561 #. type: textblock
31562 #: ../fish/guestfish-commands.pod:79
31563 msgid "See L</WILDCARDS AND GLOBBING>."
31564 msgstr ""
31565
31566 # type: =head2
31567 #. type: =head2
31568 #: ../fish/guestfish-commands.pod:81
31569 msgid "hexedit"
31570 msgstr ""
31571
31572 # type: verbatim
31573 #. type: verbatim
31574 #: ../fish/guestfish-commands.pod:83
31575 #, no-wrap
31576 msgid ""
31577 " hexedit <filename|device>\n"
31578 " hexedit <filename|device> <max>\n"
31579 " hexedit <filename|device> <start> <max>\n"
31580 "\n"
31581 msgstr ""
31582
31583 # type: textblock
31584 #. type: textblock
31585 #: ../fish/guestfish-commands.pod:87
31586 msgid ""
31587 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
31588 "device."
31589 msgstr ""
31590
31591 # type: textblock
31592 #. type: textblock
31593 #: ../fish/guestfish-commands.pod:90
31594 msgid ""
31595 "This command works by downloading potentially the whole file or device, "
31596 "editing it locally, then uploading it.  If the file or device is large, you "
31597 "have to specify which part you wish to edit by using C<max> and/or C<start> "
31598 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
31599 "usual modifiers allowed such as C<1M> (1 megabyte)."
31600 msgstr ""
31601
31602 # type: textblock
31603 #. type: textblock
31604 #: ../fish/guestfish-commands.pod:97
31605 msgid "For example to edit the first few sectors of a disk you might do:"
31606 msgstr ""
31607
31608 # type: verbatim
31609 #. type: verbatim
31610 #: ../fish/guestfish-commands.pod:100
31611 #, no-wrap
31612 msgid ""
31613 " hexedit /dev/sda 1M\n"
31614 "\n"
31615 msgstr ""
31616
31617 # type: textblock
31618 #. type: textblock
31619 #: ../fish/guestfish-commands.pod:102
31620 msgid ""
31621 "which would allow you to edit anywhere within the first megabyte of the disk."
31622 msgstr ""
31623
31624 # type: textblock
31625 #. type: textblock
31626 #: ../fish/guestfish-commands.pod:105
31627 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
31628 msgstr ""
31629
31630 # type: verbatim
31631 #. type: verbatim
31632 #: ../fish/guestfish-commands.pod:107
31633 #, no-wrap
31634 msgid ""
31635 " hexedit /dev/sda1 0x400 0x400\n"
31636 "\n"
31637 msgstr ""
31638
31639 # type: textblock
31640 #. type: textblock
31641 #: ../fish/guestfish-commands.pod:109
31642 msgid "(assuming the superblock is in the standard location)."
31643 msgstr ""
31644
31645 # type: textblock
31646 #. type: textblock
31647 #: ../fish/guestfish-commands.pod:111
31648 msgid ""
31649 "This command requires the external L<hexedit(1)> program.  You can specify "
31650 "another program to use by setting the C<HEXEDITOR> environment variable."
31651 msgstr ""
31652
31653 # type: textblock
31654 #. type: textblock
31655 #: ../fish/guestfish-commands.pod:115
31656 msgid "See also L</hexdump>."
31657 msgstr ""
31658
31659 # type: =head2
31660 #. type: =head2
31661 #: ../fish/guestfish-commands.pod:117
31662 msgid "lcd"
31663 msgstr ""
31664
31665 # type: verbatim
31666 #. type: verbatim
31667 #: ../fish/guestfish-commands.pod:119
31668 #, no-wrap
31669 msgid ""
31670 " lcd directory\n"
31671 "\n"
31672 msgstr ""
31673
31674 # type: textblock
31675 #. type: textblock
31676 #: ../fish/guestfish-commands.pod:121
31677 msgid ""
31678 "Change the local directory, ie. the current directory of guestfish itself."
31679 msgstr ""
31680
31681 # type: textblock
31682 #. type: textblock
31683 #: ../fish/guestfish-commands.pod:124
31684 msgid "Note that C<!cd> won't do what you might expect."
31685 msgstr ""
31686
31687 # type: =head2
31688 #. type: =head2
31689 #: ../fish/guestfish-commands.pod:126
31690 msgid "man"
31691 msgstr ""
31692
31693 # type: =head2
31694 #. type: =head2
31695 #: ../fish/guestfish-commands.pod:128
31696 msgid "manual"
31697 msgstr ""
31698
31699 # type: verbatim
31700 #. type: verbatim
31701 #: ../fish/guestfish-commands.pod:130
31702 #, no-wrap
31703 msgid ""
31704 "  man\n"
31705 "\n"
31706 msgstr ""
31707
31708 # type: textblock
31709 #. type: textblock
31710 #: ../fish/guestfish-commands.pod:132
31711 msgid "Opens the manual page for guestfish."
31712 msgstr ""
31713
31714 # type: =head2
31715 #. type: =head2
31716 #: ../fish/guestfish-commands.pod:134
31717 msgid "more"
31718 msgstr ""
31719
31720 # type: =head2
31721 #. type: =head2
31722 #: ../fish/guestfish-commands.pod:136
31723 msgid "less"
31724 msgstr ""
31725
31726 # type: verbatim
31727 #. type: verbatim
31728 #: ../fish/guestfish-commands.pod:138
31729 #, no-wrap
31730 msgid ""
31731 " more filename\n"
31732 "\n"
31733 msgstr ""
31734
31735 # type: verbatim
31736 #. type: verbatim
31737 #: ../fish/guestfish-commands.pod:140
31738 #, no-wrap
31739 msgid ""
31740 " less filename\n"
31741 "\n"
31742 msgstr ""
31743
31744 # type: textblock
31745 #. type: textblock
31746 #: ../fish/guestfish-commands.pod:142
31747 msgid "This is used to view a file."
31748 msgstr ""
31749
31750 # type: textblock
31751 #. type: textblock
31752 #: ../fish/guestfish-commands.pod:144
31753 msgid ""
31754 "The default viewer is C<$PAGER>.  However if you use the alternate command "
31755 "C<less> you will get the C<less> command specifically."
31756 msgstr ""
31757
31758 # type: =head2
31759 #. type: =head2
31760 #: ../fish/guestfish-commands.pod:147
31761 msgid "reopen"
31762 msgstr ""
31763
31764 # type: verbatim
31765 #. type: verbatim
31766 #: ../fish/guestfish-commands.pod:149
31767 #, no-wrap
31768 msgid ""
31769 "  reopen\n"
31770 "\n"
31771 msgstr ""
31772
31773 # type: textblock
31774 #. type: textblock
31775 #: ../fish/guestfish-commands.pod:151
31776 msgid ""
31777 "Close and reopen the libguestfs handle.  It is not necessary to use this "
31778 "normally, because the handle is closed properly when guestfish exits.  "
31779 "However this is occasionally useful for testing."
31780 msgstr ""
31781
31782 # type: =head2
31783 #. type: =head2
31784 #: ../fish/guestfish-commands.pod:155
31785 msgid "sparse"
31786 msgstr ""
31787
31788 # type: verbatim
31789 #. type: verbatim
31790 #: ../fish/guestfish-commands.pod:157
31791 #, no-wrap
31792 msgid ""
31793 " sparse filename size\n"
31794 "\n"
31795 msgstr ""
31796
31797 # type: textblock
31798 #. type: textblock
31799 #: ../fish/guestfish-commands.pod:159
31800 msgid ""
31801 "This creates an empty sparse file of the given size, and then adds so it can "
31802 "be further examined."
31803 msgstr ""
31804
31805 # type: textblock
31806 #. type: textblock
31807 #: ../fish/guestfish-commands.pod:162
31808 msgid ""
31809 "In all respects it works the same as the L</alloc> command, except that the "
31810 "image file is allocated sparsely, which means that disk blocks are not "
31811 "assigned to the file until they are needed.  Sparse disk files only use "
31812 "space when written to, but they are slower and there is a danger you could "
31813 "run out of real disk space during a write operation."
31814 msgstr ""
31815
31816 # type: =head2
31817 #. type: =head2
31818 #: ../fish/guestfish-commands.pod:172
31819 msgid "supported"
31820 msgstr ""
31821
31822 # type: verbatim
31823 #. type: verbatim
31824 #: ../fish/guestfish-commands.pod:174
31825 #, no-wrap
31826 msgid ""
31827 " supported\n"
31828 "\n"
31829 msgstr ""
31830
31831 # type: textblock
31832 #. type: textblock
31833 #: ../fish/guestfish-commands.pod:176
31834 msgid ""
31835 "This command returns a list of the optional groups known to the daemon, and "
31836 "indicates which ones are supported by this build of the libguestfs appliance."
31837 msgstr ""
31838
31839 # type: textblock
31840 #. type: textblock
31841 #: ../fish/guestfish-commands.pod:180
31842 msgid "See also L<guestfs(3)/AVAILABILITY>."
31843 msgstr ""
31844
31845 # type: =head2
31846 #. type: =head2
31847 #: ../fish/guestfish-commands.pod:182
31848 msgid "time"
31849 msgstr ""
31850
31851 # type: verbatim
31852 #. type: verbatim
31853 #: ../fish/guestfish-commands.pod:184
31854 #, no-wrap
31855 msgid ""
31856 " time command args...\n"
31857 "\n"
31858 msgstr ""
31859
31860 # type: textblock
31861 #. type: textblock
31862 #: ../fish/guestfish-commands.pod:186
31863 msgid ""
31864 "Run the command as usual, but print the elapsed time afterwards.  This can "
31865 "be useful for benchmarking operations."
31866 msgstr ""
31867
31868 # type: textblock
31869 #. type: textblock
31870 #: ../test-tool/libguestfs-test-tool.pod:5
31871 msgid "libguestfs-test-tool - End user tests for libguestfs"
31872 msgstr ""
31873
31874 # type: verbatim
31875 #. type: verbatim
31876 #: ../test-tool/libguestfs-test-tool.pod:9
31877 #, no-wrap
31878 msgid ""
31879 " libguestfs-test-tool [--options]\n"
31880 "\n"
31881 msgstr ""
31882
31883 # type: textblock
31884 #. type: textblock
31885 #: ../test-tool/libguestfs-test-tool.pod:13
31886 msgid ""
31887 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
31888 "and developers, to allow them to check basic libguestfs functionality is "
31889 "working.  This is needed because libguestfs occasionally breaks for reasons "
31890 "beyond our control: usually because of changes in the underlying qemu or "
31891 "kernel packages, or the host environment."
31892 msgstr ""
31893
31894 # type: textblock
31895 #. type: textblock
31896 #: ../test-tool/libguestfs-test-tool.pod:20
31897 msgid "If you suspect a problem in libguestfs, then just run:"
31898 msgstr ""
31899
31900 # type: verbatim
31901 #. type: verbatim
31902 #: ../test-tool/libguestfs-test-tool.pod:22
31903 #, no-wrap
31904 msgid ""
31905 " libguestfs-test-tool\n"
31906 "\n"
31907 msgstr ""
31908
31909 # type: textblock
31910 #. type: textblock
31911 #: ../test-tool/libguestfs-test-tool.pod:24
31912 msgid "It will print lots of diagnostic messages."
31913 msgstr ""
31914
31915 # type: textblock
31916 #. type: textblock
31917 #: ../test-tool/libguestfs-test-tool.pod:26
31918 msgid "If it runs to completion successfully, you will see this near the end:"
31919 msgstr ""
31920
31921 # type: verbatim
31922 #. type: verbatim
31923 #: ../test-tool/libguestfs-test-tool.pod:28
31924 #, no-wrap
31925 msgid ""
31926 " ===== TEST FINISHED OK =====\n"
31927 "\n"
31928 msgstr ""
31929
31930 # type: textblock
31931 #. type: textblock
31932 #: ../test-tool/libguestfs-test-tool.pod:30
31933 msgid "and the test tool will exit with code 0."
31934 msgstr ""
31935
31936 # type: textblock
31937 #. type: textblock
31938 #: ../test-tool/libguestfs-test-tool.pod:32
31939 msgid ""
31940 "If it fails (and/or exits with non-zero error code), please paste the "
31941 "B<complete, unedited> output of the test tool into a bug report.  More "
31942 "information about reporting bugs can be found on the L<http://libguestfs.org/"
31943 "> website."
31944 msgstr ""
31945
31946 # type: =item
31947 #. type: =item
31948 #: ../test-tool/libguestfs-test-tool.pod:41
31949 msgid "I<--help>"
31950 msgstr ""
31951
31952 # type: textblock
31953 #. type: textblock
31954 #: ../test-tool/libguestfs-test-tool.pod:43
31955 msgid "Display short usage information and exit."
31956 msgstr ""
31957
31958 # type: =item
31959 #. type: =item
31960 #: ../test-tool/libguestfs-test-tool.pod:45
31961 msgid "I<--qemu qemu_binary>"
31962 msgstr ""
31963
31964 # type: textblock
31965 #. type: textblock
31966 #: ../test-tool/libguestfs-test-tool.pod:47
31967 msgid ""
31968 "If you have downloaded another qemu binary, point this option at the full "
31969 "path of the binary to try it."
31970 msgstr ""
31971
31972 # type: =item
31973 #. type: =item
31974 #: ../test-tool/libguestfs-test-tool.pod:50
31975 msgid "I<--qemudir qemu_source_dir>"
31976 msgstr ""
31977
31978 # type: textblock
31979 #. type: textblock
31980 #: ../test-tool/libguestfs-test-tool.pod:52
31981 msgid ""
31982 "If you have compiled qemu from source, point this option at the source "
31983 "directory to try it."
31984 msgstr ""
31985
31986 # type: =item
31987 #. type: =item
31988 #: ../test-tool/libguestfs-test-tool.pod:55
31989 msgid "I<--timeout N>"
31990 msgstr ""
31991
31992 # type: textblock
31993 #. type: textblock
31994 #: ../test-tool/libguestfs-test-tool.pod:57
31995 msgid ""
31996 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
31997 "does not usually need to be adjusted unless your machine is very slow."
31998 msgstr ""
31999
32000 # type: =head1
32001 #. type: =head1
32002 #: ../test-tool/libguestfs-test-tool.pod:63
32003 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
32004 msgstr ""
32005
32006 # type: textblock
32007 #. type: textblock
32008 #: ../test-tool/libguestfs-test-tool.pod:65
32009 msgid ""
32010 "If you have compiled another version of qemu from source and would like to "
32011 "try that, then you can use the I<--qemudir> option to point to the qemu "
32012 "source directory."
32013 msgstr ""
32014
32015 # type: textblock
32016 #. type: textblock
32017 #: ../test-tool/libguestfs-test-tool.pod:69
32018 msgid ""
32019 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
32020 "option to point to the binary."
32021 msgstr ""
32022
32023 # type: textblock
32024 #. type: textblock
32025 #: ../test-tool/libguestfs-test-tool.pod:72
32026 msgid ""
32027 "When using an alternate qemu with libguestfs, usually you would need to "
32028 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
32029 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
32030 "use either of the I<--qemudir> or I<--qemu> options."
32031 msgstr ""
32032
32033 # type: textblock
32034 #. type: textblock
32035 #: ../test-tool/libguestfs-test-tool.pod:79
32036 msgid ""
32037 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
32038 "I<1> if there was an error."
32039 msgstr ""
32040
32041 # type: textblock
32042 #. type: textblock
32043 #: ../test-tool/libguestfs-test-tool.pod:84
32044 msgid ""
32045 "For the full list of environment variables which may affect libguestfs, "
32046 "please see the L<guestfs(3)> manual page."
32047 msgstr ""
32048
32049 # type: textblock
32050 #. type: textblock
32051 #: ../test-tool/libguestfs-test-tool.pod:89
32052 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
32053 msgstr ""
32054
32055 # type: textblock
32056 #. type: textblock
32057 #: ../fuse/guestmount.pod:5
32058 msgid ""
32059 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
32060 msgstr ""
32061
32062 # type: verbatim
32063 #. type: verbatim
32064 #: ../fuse/guestmount.pod:9
32065 #, no-wrap
32066 msgid ""
32067 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
32068 "\n"
32069 msgstr ""
32070
32071 # type: verbatim
32072 #. type: verbatim
32073 #: ../fuse/guestmount.pod:11
32074 #, no-wrap
32075 msgid ""
32076 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
32077 "\n"
32078 msgstr ""
32079
32080 # type: verbatim
32081 #. type: verbatim
32082 #: ../fuse/guestmount.pod:13
32083 #, no-wrap
32084 msgid ""
32085 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
32086 "\n"
32087 msgstr ""
32088
32089 # type: textblock
32090 #. type: textblock
32091 #: ../fuse/guestmount.pod:17
32092 msgid ""
32093 "You must I<not> use C<guestmount> in read-write mode on live virtual "
32094 "machines.  If you do this, you risk disk corruption in the VM."
32095 msgstr ""
32096
32097 # type: textblock
32098 #. type: textblock
32099 #: ../fuse/guestmount.pod:22
32100 msgid ""
32101 "The guestmount program can be used to mount virtual machine filesystems and "
32102 "other disk images on the host.  It uses libguestfs for access to the guest "
32103 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
32104 "a mountable device."
32105 msgstr ""
32106
32107 # type: textblock
32108 #. type: textblock
32109 #: ../fuse/guestmount.pod:27
32110 msgid ""
32111 "Along with other options, you have to give at least one device (I<-a> "
32112 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
32113 "option) or use the I<-i> inspection option.  How this works is better "
32114 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
32115 "below."
32116 msgstr ""
32117
32118 # type: textblock
32119 #. type: textblock
32120 #: ../fuse/guestmount.pod:33
32121 msgid ""
32122 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
32123 "by you, and the filesystem will not be visible to any other users unless you "
32124 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
32125 "the filesystem, use the C<fusermount -u> command."
32126 msgstr ""
32127
32128 # type: textblock
32129 #. type: textblock
32130 #: ../fuse/guestmount.pod:41
32131 msgid ""
32132 "For a typical Windows guest which has its main filesystem on the first "
32133 "partition:"
32134 msgstr ""
32135
32136 # type: verbatim
32137 #. type: verbatim
32138 #: ../fuse/guestmount.pod:44
32139 #, no-wrap
32140 msgid ""
32141 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
32142 "\n"
32143 msgstr ""
32144
32145 # type: textblock
32146 #. type: textblock
32147 #: ../fuse/guestmount.pod:46
32148 msgid ""
32149 "For a typical Linux guest which has a /boot filesystem on the first "
32150 "partition, and the root filesystem on a logical volume:"
32151 msgstr ""
32152
32153 # type: verbatim
32154 #. type: verbatim
32155 #: ../fuse/guestmount.pod:49
32156 #, no-wrap
32157 msgid ""
32158 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
32159 "\n"
32160 msgstr ""
32161
32162 # type: textblock
32163 #. type: textblock
32164 #: ../fuse/guestmount.pod:51
32165 msgid "To get libguestfs to detect guest mountpoints for you:"
32166 msgstr ""
32167
32168 # type: verbatim
32169 #. type: verbatim
32170 #: ../fuse/guestmount.pod:53
32171 #, no-wrap
32172 msgid ""
32173 " guestmount -a guest.img -i --ro /mnt\n"
32174 "\n"
32175 msgstr ""
32176
32177 # type: textblock
32178 #. type: textblock
32179 #: ../fuse/guestmount.pod:55
32180 msgid "For a libvirt guest called \"Guest\" you could do:"
32181 msgstr ""
32182
32183 # type: verbatim
32184 #. type: verbatim
32185 #: ../fuse/guestmount.pod:57
32186 #, no-wrap
32187 msgid ""
32188 " guestmount -d Guest -i --ro /mnt\n"
32189 "\n"
32190 msgstr ""
32191
32192 # type: textblock
32193 #. type: textblock
32194 #: ../fuse/guestmount.pod:59
32195 msgid ""
32196 "If you don't know what filesystems are contained in a guest or disk image, "
32197 "use L<virt-filesystems(1)> first:"
32198 msgstr ""
32199
32200 # type: verbatim
32201 #. type: verbatim
32202 #: ../fuse/guestmount.pod:62
32203 #, no-wrap
32204 msgid ""
32205 " virt-filesystems MyGuest\n"
32206 "\n"
32207 msgstr ""
32208
32209 # type: textblock
32210 #. type: textblock
32211 #: ../fuse/guestmount.pod:64
32212 msgid ""
32213 "If you want to trace the libguestfs calls but without excessive debugging "
32214 "information, we recommend:"
32215 msgstr ""
32216
32217 # type: verbatim
32218 #. type: verbatim
32219 #: ../fuse/guestmount.pod:67
32220 #, no-wrap
32221 msgid ""
32222 " guestmount [...] --trace /mnt\n"
32223 "\n"
32224 msgstr ""
32225
32226 # type: textblock
32227 #. type: textblock
32228 #: ../fuse/guestmount.pod:69
32229 msgid "If you want to debug the program, we recommend:"
32230 msgstr ""
32231
32232 # type: verbatim
32233 #. type: verbatim
32234 #: ../fuse/guestmount.pod:71
32235 #, no-wrap
32236 msgid ""
32237 " guestmount [...] --trace --verbose /mnt\n"
32238 "\n"
32239 msgstr ""
32240
32241 # type: =item
32242 #. type: =item
32243 #: ../fuse/guestmount.pod:77
32244 msgid "B<-a image> | B<--add image>"
32245 msgstr ""
32246
32247 # type: textblock
32248 #. type: textblock
32249 #: ../fuse/guestmount.pod:79
32250 msgid "Add a block device or virtual machine image."
32251 msgstr ""
32252
32253 # type: =item
32254 #. type: =item
32255 #: ../fuse/guestmount.pod:84
32256 msgid "B<-c URI> | B<--connect URI>"
32257 msgstr ""
32258
32259 # type: =item
32260 #. type: =item
32261 #: ../fuse/guestmount.pod:90
32262 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
32263 msgstr ""
32264
32265 # type: =item
32266 #. type: =item
32267 #: ../fuse/guestmount.pod:98
32268 msgid "B<--dir-cache-timeout N>"
32269 msgstr ""
32270
32271 # type: textblock
32272 #. type: textblock
32273 #: ../fuse/guestmount.pod:100
32274 msgid ""
32275 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
32276 "seconds.  The readdir cache [actually, there are several semi-independent "
32277 "caches] is populated after a readdir(2) call with the stat and extended "
32278 "attributes of the files in the directory, in anticipation that they will be "
32279 "requested soon after."
32280 msgstr ""
32281
32282 # type: textblock
32283 #. type: textblock
32284 #: ../fuse/guestmount.pod:106
32285 msgid ""
32286 "There is also a different attribute cache implemented by FUSE (see the FUSE "
32287 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
32288 "requests, only cache existing ones."
32289 msgstr ""
32290
32291 # type: =item
32292 #. type: =item
32293 #: ../fuse/guestmount.pod:117
32294 msgid "B<--format=raw|qcow2|..> | B<--format>"
32295 msgstr ""
32296
32297 # type: textblock
32298 #. type: textblock
32299 #: ../fuse/guestmount.pod:124
32300 msgid ""
32301 "If you have untrusted raw-format guest disk images, you should use this "
32302 "option to specify the disk format.  This avoids a possible security problem "
32303 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
32304 "guestfs_add_drive_opts>."
32305 msgstr ""
32306
32307 # type: =item
32308 #. type: =item
32309 #: ../fuse/guestmount.pod:129
32310 msgid "B<--fuse-help>"
32311 msgstr ""
32312
32313 # type: textblock
32314 #. type: textblock
32315 #: ../fuse/guestmount.pod:131
32316 msgid "Display help on special FUSE options (see I<-o> below)."
32317 msgstr ""
32318
32319 # type: textblock
32320 #. type: textblock
32321 #: ../fuse/guestmount.pod:135
32322 msgid "Display brief help and exit."
32323 msgstr ""
32324
32325 # type: =item
32326 #. type: =item
32327 #: ../fuse/guestmount.pod:137
32328 msgid "B<-i> | B<--inspector>"
32329 msgstr ""
32330
32331 # type: textblock
32332 #. type: textblock
32333 #: ../fuse/guestmount.pod:157
32334 msgid ""
32335 "Mount the named partition or logical volume on the given mountpoint B<in the "
32336 "guest> (this has nothing to do with mountpoints in the host)."
32337 msgstr ""
32338
32339 # type: textblock
32340 #. type: textblock
32341 #: ../fuse/guestmount.pod:160
32342 msgid ""
32343 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
32344 "something on C</>."
32345 msgstr ""
32346
32347 # type: =item
32348 #. type: =item
32349 #: ../fuse/guestmount.pod:173
32350 msgid "B<-n> | B<--no-sync>"
32351 msgstr ""
32352
32353 # type: textblock
32354 #. type: textblock
32355 #: ../fuse/guestmount.pod:175
32356 msgid ""
32357 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
32358 "unmounted.  If you specify this option, then we don't attempt to sync the "
32359 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
32360 msgstr ""
32361
32362 # type: =item
32363 #. type: =item
32364 #: ../fuse/guestmount.pod:180
32365 msgid "B<-o option> | B<--option option>"
32366 msgstr ""
32367
32368 # type: textblock
32369 #. type: textblock
32370 #: ../fuse/guestmount.pod:182
32371 msgid "Pass extra options to FUSE."
32372 msgstr ""
32373
32374 # type: textblock
32375 #. type: textblock
32376 #: ../fuse/guestmount.pod:184
32377 msgid ""
32378 "To get a list of all the extra options supported by FUSE, use the command "
32379 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32380 "of them are a good idea."
32381 msgstr ""
32382
32383 # type: verbatim
32384 #. type: verbatim
32385 #: ../fuse/guestmount.pod:188
32386 #, no-wrap
32387 msgid ""
32388 " guestmount --fuse-help\n"
32389 "\n"
32390 msgstr ""
32391
32392 # type: textblock
32393 #. type: textblock
32394 #: ../fuse/guestmount.pod:190
32395 msgid "Some potentially useful FUSE options:"
32396 msgstr ""
32397
32398 # type: =item
32399 #. type: =item
32400 #: ../fuse/guestmount.pod:194
32401 msgid "B<-o allow_other>"
32402 msgstr ""
32403
32404 # type: textblock
32405 #. type: textblock
32406 #: ../fuse/guestmount.pod:196
32407 msgid "Allow other users to see the filesystem."
32408 msgstr ""
32409
32410 # type: =item
32411 #. type: =item
32412 #: ../fuse/guestmount.pod:198
32413 msgid "B<-o attr_timeout=N>"
32414 msgstr ""
32415
32416 # type: textblock
32417 #. type: textblock
32418 #: ../fuse/guestmount.pod:200
32419 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32420 msgstr ""
32421
32422 # type: =item
32423 #. type: =item
32424 #: ../fuse/guestmount.pod:202
32425 msgid "B<-o kernel_cache>"
32426 msgstr ""
32427
32428 # type: textblock
32429 #. type: textblock
32430 #: ../fuse/guestmount.pod:204
32431 msgid ""
32432 "Allow the kernel to cache files (reduces the number of reads that have to go "
32433 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32434 "afford the extra memory usage."
32435 msgstr ""
32436
32437 # type: =item
32438 #. type: =item
32439 #: ../fuse/guestmount.pod:208
32440 msgid "B<-o uid=N> B<-o gid=N>"
32441 msgstr ""
32442
32443 # type: textblock
32444 #. type: textblock
32445 #: ../fuse/guestmount.pod:210
32446 msgid ""
32447 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32448 "the chosen values."
32449 msgstr ""
32450
32451 # type: =item
32452 #. type: =item
32453 #: ../fuse/guestmount.pod:215
32454 msgid "B<-r> | B<--ro>"
32455 msgstr ""
32456
32457 # type: textblock
32458 #. type: textblock
32459 #: ../fuse/guestmount.pod:217
32460 msgid ""
32461 "Add devices and mount everything read-only.  Also disallow writes and make "
32462 "the disk appear read-only to FUSE."
32463 msgstr ""
32464
32465 # type: textblock
32466 #. type: textblock
32467 #: ../fuse/guestmount.pod:220
32468 msgid ""
32469 "This is highly recommended if you are not going to edit the guest disk.  If "
32470 "the guest is running and this option is I<not> supplied, then there is a "
32471 "strong risk of disk corruption in the guest.  We try to prevent this from "
32472 "happening, but it is not always possible."
32473 msgstr ""
32474
32475 # type: textblock
32476 #. type: textblock
32477 #: ../fuse/guestmount.pod:225
32478 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32479 msgstr ""
32480
32481 # type: textblock
32482 #. type: textblock
32483 #: ../fuse/guestmount.pod:229
32484 msgid "Enable SELinux support for the guest."
32485 msgstr ""
32486
32487 # type: =item
32488 #. type: =item
32489 #: ../fuse/guestmount.pod:231
32490 msgid "B<-v> | B<--verbose>"
32491 msgstr ""
32492
32493 # type: textblock
32494 #. type: textblock
32495 #: ../fuse/guestmount.pod:233
32496 msgid "Enable verbose messages from underlying libguestfs."
32497 msgstr ""
32498
32499 # type: =item
32500 #. type: =item
32501 #: ../fuse/guestmount.pod:235
32502 msgid "B<-V> | B<--version>"
32503 msgstr ""
32504
32505 # type: textblock
32506 #. type: textblock
32507 #: ../fuse/guestmount.pod:237
32508 msgid "Display the program version and exit."
32509 msgstr ""
32510
32511 # type: =item
32512 #. type: =item
32513 #: ../fuse/guestmount.pod:239
32514 msgid "B<-w> | B<--rw>"
32515 msgstr ""
32516
32517 #. type: textblock
32518 #: ../fuse/guestmount.pod:244 ../fuse/guestmount.pod:265
32519 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32520 msgstr ""
32521
32522 # type: =item
32523 #. type: =item
32524 #: ../fuse/guestmount.pod:246
32525 msgid "B<-x> | B<--trace>"
32526 msgstr ""
32527
32528 # type: textblock
32529 #. type: textblock
32530 #: ../fuse/guestmount.pod:248
32531 msgid "Trace libguestfs calls and entry into each FUSE function."
32532 msgstr ""
32533
32534 # type: textblock
32535 #. type: textblock
32536 #: ../fuse/guestmount.pod:250
32537 msgid "This also stops the daemon from forking into the background."
32538 msgstr ""
32539
32540 # type: textblock
32541 #. type: textblock
32542 #: ../fuse/guestmount.pod:271
32543 msgid ""
32544 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32545 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
32546 "net/>."
32547 msgstr ""
32548
32549 # type: textblock
32550 #. type: textblock
32551 #: ../fuse/guestmount.pod:286
32552 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
32553 msgstr ""
32554
32555 # type: textblock
32556 #. type: textblock
32557 #: ../tools/virt-win-reg.pl:37
32558 msgid ""
32559 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
32560 msgstr ""
32561
32562 # type: verbatim
32563 #. type: verbatim
32564 #: ../tools/virt-win-reg.pl:41
32565 #, no-wrap
32566 msgid ""
32567 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
32568 "\n"
32569 msgstr ""
32570
32571 # type: verbatim
32572 #. type: verbatim
32573 #: ../tools/virt-win-reg.pl:43
32574 #, no-wrap
32575 msgid ""
32576 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
32577 "\n"
32578 msgstr ""
32579
32580 # type: verbatim
32581 #. type: verbatim
32582 #: ../tools/virt-win-reg.pl:45
32583 #, no-wrap
32584 msgid ""
32585 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
32586 "\n"
32587 msgstr ""
32588
32589 # type: verbatim
32590 #. type: verbatim
32591 #: ../tools/virt-win-reg.pl:47
32592 #, no-wrap
32593 msgid ""
32594 " virt-win-reg --merge domname [input.reg ...]\n"
32595 "\n"
32596 msgstr ""
32597
32598 # type: verbatim
32599 #. type: verbatim
32600 #: ../tools/virt-win-reg.pl:49
32601 #, no-wrap
32602 msgid ""
32603 " virt-win-reg [--options] disk.img ... # instead of domname\n"
32604 "\n"
32605 msgstr ""
32606
32607 #. type: textblock
32608 #: ../tools/virt-win-reg.pl:53
32609 msgid ""
32610 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
32611 "virtual machines.  If you do this, you I<will> get irreversible disk "
32612 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
32613 "but doesn't catch all cases."
32614 msgstr ""
32615
32616 #. type: textblock
32617 #: ../tools/virt-win-reg.pl:58
32618 msgid ""
32619 "Modifying the Windows Registry is an inherently risky operation.  The format "
32620 "is deliberately obscure and undocumented, and Registry changes can leave the "
32621 "system unbootable.  Therefore when using the I<--merge> option, make sure "
32622 "you have a reliable backup first."
32623 msgstr ""
32624
32625 # type: textblock
32626 #. type: textblock
32627 #: ../tools/virt-win-reg.pl:65
32628 msgid ""
32629 "This program can export and merge Windows Registry entries from a Windows "
32630 "guest."
32631 msgstr ""
32632
32633 # type: textblock
32634 #. type: textblock
32635 #: ../tools/virt-win-reg.pl:68
32636 msgid ""
32637 "The first parameter is the libvirt guest name or the raw disk image of a "
32638 "Windows guest."
32639 msgstr ""
32640
32641 #. type: textblock
32642 #: ../tools/virt-win-reg.pl:71
32643 msgid ""
32644 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
32645 "exported (recursively).  For example:"
32646 msgstr ""
32647
32648 # type: verbatim
32649 #. type: verbatim
32650 #: ../tools/virt-win-reg.pl:74
32651 #, no-wrap
32652 msgid ""
32653 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
32654 "\n"
32655 msgstr ""
32656
32657 # type: textblock
32658 #. type: textblock
32659 #: ../tools/virt-win-reg.pl:76
32660 msgid ""
32661 "You can also display single values from within registry keys, for example:"
32662 msgstr ""
32663
32664 # type: verbatim
32665 #. type: verbatim
32666 #: ../tools/virt-win-reg.pl:79
32667 #, no-wrap
32668 msgid ""
32669 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
32670 " $ virt-win-reg Windows7 $cvkey ProductName\n"
32671 " Windows 7 Enterprise\n"
32672 "\n"
32673 msgstr ""
32674
32675 #. type: textblock
32676 #: ../tools/virt-win-reg.pl:83
32677 msgid ""
32678 "With I<--merge>, you can merge a textual regedit file into the Windows "
32679 "Registry:"
32680 msgstr ""
32681
32682 # type: verbatim
32683 #. type: verbatim
32684 #: ../tools/virt-win-reg.pl:86
32685 #, no-wrap
32686 msgid ""
32687 " $ virt-win-reg --merge Windows7 changes.reg\n"
32688 "\n"
32689 msgstr ""
32690
32691 # type: =head2
32692 #. type: =head1
32693 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32694 msgid "NOTE"
32695 msgstr ""
32696
32697 # type: textblock
32698 #. type: textblock
32699 #: ../tools/virt-win-reg.pl:90
32700 msgid ""
32701 "This program is only meant for simple access to the registry.  If you want "
32702 "to do complicated things with the registry, we suggest you download the "
32703 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32704 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32705 "L<hivexregedit(1)>."
32706 msgstr ""
32707
32708 # type: textblock
32709 #. type: textblock
32710 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
32711 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
32712 #: ../tools/virt-list-partitions.pl:64
32713 msgid "Display brief help."
32714 msgstr ""
32715
32716 # type: textblock
32717 #. type: textblock
32718 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
32719 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
32720 #: ../tools/virt-list-partitions.pl:72
32721 msgid "Display version number and exit."
32722 msgstr ""
32723
32724 # type: =item
32725 #. type: =item
32726 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32727 msgid "B<--debug>"
32728 msgstr ""
32729
32730 # type: textblock
32731 #. type: textblock
32732 #: ../tools/virt-win-reg.pl:122
32733 msgid "Enable debugging messages."
32734 msgstr ""
32735
32736 # type: =item
32737 #. type: =item
32738 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
32739 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
32740 msgid "B<--connect URI> | B<-c URI>"
32741 msgstr ""
32742
32743 # type: textblock
32744 #. type: textblock
32745 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
32746 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
32747 msgid ""
32748 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
32749 "to the default libvirt hypervisor."
32750 msgstr ""
32751
32752 # type: textblock
32753 #. type: textblock
32754 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
32755 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
32756 msgid ""
32757 "If you specify guest block devices directly, then libvirt is not used at all."
32758 msgstr ""
32759
32760 # type: =item
32761 #. type: =item
32762 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
32763 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
32764 msgid "B<--format> raw"
32765 msgstr ""
32766
32767 # type: textblock
32768 #. type: textblock
32769 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
32770 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
32771 msgid ""
32772 "Specify the format of disk images given on the command line.  If this is "
32773 "omitted then the format is autodetected from the content of the disk image."
32774 msgstr ""
32775
32776 # type: textblock
32777 #. type: textblock
32778 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
32779 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
32780 msgid ""
32781 "If disk images are requested from libvirt, then this program asks libvirt "
32782 "for this information.  In this case, the value of the format parameter is "
32783 "ignored."
32784 msgstr ""
32785
32786 # type: textblock
32787 #. type: textblock
32788 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
32789 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
32790 msgid ""
32791 "If working with untrusted raw-format guest disk images, you should ensure "
32792 "the format is always specified."
32793 msgstr ""
32794
32795 # type: =item
32796 #. type: =item
32797 #: ../tools/virt-win-reg.pl:157
32798 msgid "B<--merge>"
32799 msgstr ""
32800
32801 # type: textblock
32802 #. type: textblock
32803 #: ../tools/virt-win-reg.pl:159
32804 msgid ""
32805 "In merge mode, this merges a textual regedit file into the Windows Registry "
32806 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32807 "displays or exports Registry entries instead."
32808 msgstr ""
32809
32810 #. type: textblock
32811 #: ../tools/virt-win-reg.pl:163
32812 msgid ""
32813 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
32814 "result in disk corruption.  However exporting (without this flag)  is always "
32815 "safe."
32816 msgstr ""
32817
32818 # type: =item
32819 #. type: =item
32820 #: ../tools/virt-win-reg.pl:171
32821 msgid "B<--encoding> UTF-16LE|ASCII"
32822 msgstr ""
32823
32824 # type: textblock
32825 #. type: textblock
32826 #: ../tools/virt-win-reg.pl:173
32827 msgid ""
32828 "When merging (only), you may need to specify the encoding for strings to be "
32829 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32830 "(3)/ENCODING STRINGS>."
32831 msgstr ""
32832
32833 # type: textblock
32834 #. type: textblock
32835 #: ../tools/virt-win-reg.pl:177
32836 msgid ""
32837 "The default is to use UTF-16LE, which should work with recent versions of "
32838 "Windows."
32839 msgstr ""
32840
32841 # type: =head2
32842 #. type: =head1
32843 #: ../tools/virt-win-reg.pl:402
32844 msgid "SUPPORTED SYSTEMS"
32845 msgstr ""
32846
32847 # type: textblock
32848 #. type: textblock
32849 #: ../tools/virt-win-reg.pl:404
32850 msgid ""
32851 "The program currently supports Windows NT-derived guests starting with "
32852 "Windows XP through to at least Windows 7."
32853 msgstr ""
32854
32855 # type: textblock
32856 #. type: textblock
32857 #: ../tools/virt-win-reg.pl:407
32858 msgid ""
32859 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32860 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32861 "and C<HKEY_USERS\\.DEFAULT>."
32862 msgstr ""
32863
32864 # type: textblock
32865 #. type: textblock
32866 #: ../tools/virt-win-reg.pl:411
32867 msgid ""
32868 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32869 "C<HKEY_USERS>."
32870 msgstr ""
32871
32872 # type: textblock
32873 #. type: textblock
32874 #: ../tools/virt-win-reg.pl:414
32875 msgid ""
32876 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32877 "time."
32878 msgstr ""
32879
32880 # type: =head2
32881 #. type: =head1
32882 #: ../tools/virt-win-reg.pl:417
32883 msgid "ENCODING"
32884 msgstr ""
32885
32886 # type: textblock
32887 #. type: textblock
32888 #: ../tools/virt-win-reg.pl:419
32889 msgid ""
32890 "C<virt-win-reg> expects that regedit files have already been reencoded in "
32891 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
32892 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
32893 "Windows-style line endings, you may need to reencode the whole file before "
32894 "or after processing."
32895 msgstr ""
32896
32897 #. type: textblock
32898 #: ../tools/virt-win-reg.pl:425
32899 msgid ""
32900 "To reencode a file from Windows format to Linux (before processing it with "
32901 "the I<--merge> option), you would do something like this:"
32902 msgstr ""
32903
32904 # type: verbatim
32905 #. type: verbatim
32906 #: ../tools/virt-win-reg.pl:428
32907 #, no-wrap
32908 msgid ""
32909 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
32910 "\n"
32911 msgstr ""
32912
32913 # type: textblock
32914 #. type: textblock
32915 #: ../tools/virt-win-reg.pl:430
32916 msgid ""
32917 "To go in the opposite direction, after exporting and before sending the file "
32918 "to a Windows user, do something like this:"
32919 msgstr ""
32920
32921 # type: verbatim
32922 #. type: verbatim
32923 #: ../tools/virt-win-reg.pl:433
32924 #, no-wrap
32925 msgid ""
32926 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
32927 "\n"
32928 msgstr ""
32929
32930 # type: textblock
32931 #. type: textblock
32932 #: ../tools/virt-win-reg.pl:435
32933 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
32934 msgstr ""
32935
32936 # type: textblock
32937 #. type: textblock
32938 #: ../tools/virt-win-reg.pl:437
32939 msgid ""
32940 "If you are unsure about the current encoding, use the L<file(1)> command.  "
32941 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
32942 "style (CRLF) line endings, like this:"
32943 msgstr ""
32944
32945 # type: verbatim
32946 #. type: verbatim
32947 #: ../tools/virt-win-reg.pl:441
32948 #, no-wrap
32949 msgid ""
32950 " $ file software.reg\n"
32951 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
32952 " with CRLF line terminators\n"
32953 "\n"
32954 msgstr ""
32955
32956 #. type: textblock
32957 #: ../tools/virt-win-reg.pl:445
32958 msgid "This file would need conversion before you could I<--merge> it."
32959 msgstr ""
32960
32961 # type: =head2
32962 #. type: =head1
32963 #: ../tools/virt-win-reg.pl:447
32964 msgid "CurrentControlSet etc."
32965 msgstr ""
32966
32967 # type: textblock
32968 #. type: textblock
32969 #: ../tools/virt-win-reg.pl:449
32970 msgid ""
32971 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
32972 "Registry at the level of the hive file, and therefore you cannot modify "
32973 "these."
32974 msgstr ""
32975
32976 # type: textblock
32977 #. type: textblock
32978 #: ../tools/virt-win-reg.pl:453
32979 msgid ""
32980 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
32981 "circumstances it might refer to another control set.  The way to find out is "
32982 "to look at the C<HKLM\\SYSTEM\\Select> key:"
32983 msgstr ""
32984
32985 # type: verbatim
32986 #. type: verbatim
32987 #: ../tools/virt-win-reg.pl:457
32988 #, no-wrap
32989 msgid ""
32990 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
32991 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
32992 " \"Current\"=dword:00000001\n"
32993 " \"Default\"=dword:00000001\n"
32994 " \"Failed\"=dword:00000000\n"
32995 " \"LastKnownGood\"=dword:00000002\n"
32996 "\n"
32997 msgstr ""
32998
32999 # type: textblock
33000 #. type: textblock
33001 #: ../tools/virt-win-reg.pl:464
33002 msgid "\"Current\" is the one which Windows will choose when it boots."
33003 msgstr ""
33004
33005 # type: textblock
33006 #. type: textblock
33007 #: ../tools/virt-win-reg.pl:466
33008 msgid ""
33009 "Similarly, other C<Current...> keys in the path may need to be replaced."
33010 msgstr ""
33011
33012 # type: =head1
33013 #. type: =head1
33014 #: ../tools/virt-win-reg.pl:469
33015 msgid "WINDOWS TIPS"
33016 msgstr ""
33017
33018 # type: textblock
33019 #. type: textblock
33020 #: ../tools/virt-win-reg.pl:471
33021 msgid ""
33022 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33023 "be shut off, else you will get disk corruption."
33024 msgstr ""
33025
33026 # type: =head2
33027 #. type: =head2
33028 #: ../tools/virt-win-reg.pl:474
33029 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33030 msgstr ""
33031
33032 # type: textblock
33033 #. type: textblock
33034 #: ../tools/virt-win-reg.pl:476
33035 msgid ""
33036 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33037 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33038 "is uploaded into C<C:\\>:"
33039 msgstr ""
33040
33041 # type: verbatim
33042 #. type: verbatim
33043 #: ../tools/virt-win-reg.pl:480
33044 #, no-wrap
33045 msgid ""
33046 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33047 "\n"
33048 msgstr ""
33049
33050 # type: textblock
33051 #. type: textblock
33052 #: ../tools/virt-win-reg.pl:482
33053 msgid "Prepare a regedit file containing the registry change:"
33054 msgstr ""
33055
33056 # type: verbatim
33057 #. type: verbatim
33058 #: ../tools/virt-win-reg.pl:484
33059 #, no-wrap
33060 msgid ""
33061 " cat > test.reg <<'EOF'\n"
33062 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33063 " \"Test\"=\"c:\\\\test.bat\"\n"
33064 " EOF\n"
33065 "\n"
33066 msgstr ""
33067
33068 # type: textblock
33069 #. type: textblock
33070 #: ../tools/virt-win-reg.pl:489
33071 msgid ""
33072 "In this example we use the key C<RunOnce> which means that the script will "
33073 "run precisely once when the first user logs in.  If you want it to run every "
33074 "time a user logs in, replace C<RunOnce> with C<Run>."
33075 msgstr ""
33076
33077 # type: textblock
33078 #. type: textblock
33079 #: ../tools/virt-win-reg.pl:493
33080 msgid "Now update the registry:"
33081 msgstr ""
33082
33083 # type: verbatim
33084 #. type: verbatim
33085 #: ../tools/virt-win-reg.pl:495
33086 #, no-wrap
33087 msgid ""
33088 " virt-win-reg --merge WindowsGuest test.reg\n"
33089 "\n"
33090 msgstr ""
33091
33092 # type: =head2
33093 #. type: =head2
33094 #: ../tools/virt-win-reg.pl:497
33095 msgid "INSTALLING A SERVICE"
33096 msgstr ""
33097
33098 # type: textblock
33099 #. type: textblock
33100 #: ../tools/virt-win-reg.pl:499
33101 msgid ""
33102 "This section assumes you are familiar with Windows services, and you either "
33103 "have a program which handles the Windows Service Control Protocol directly "
33104 "or you want to run any program using a service wrapper like SrvAny or the "
33105 "free RHSrvAny."
33106 msgstr ""
33107
33108 # type: textblock
33109 #. type: textblock
33110 #: ../tools/virt-win-reg.pl:504
33111 msgid ""
33112 "First upload the program and optionally the service wrapper.  In this case "
33113 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33114 msgstr ""
33115
33116 # type: verbatim
33117 #. type: verbatim
33118 #: ../tools/virt-win-reg.pl:508
33119 #, no-wrap
33120 msgid ""
33121 " guestfish -i -d WindowsGuest <<EOF\n"
33122 "   upload rhsrvany.exe /rhsrvany.exe\n"
33123 "   upload test.exe /test.exe\n"
33124 " EOF\n"
33125 "\n"
33126 msgstr ""
33127
33128 # type: textblock
33129 #. type: textblock
33130 #: ../tools/virt-win-reg.pl:513
33131 msgid ""
33132 "Prepare a regedit file containing the registry changes.  In this example, "
33133 "the first registry change is needed for the service itself or the service "
33134 "wrapper (if used).  The second registry change is only needed because I am "
33135 "using the RHSrvAny service wrapper."
33136 msgstr ""
33137
33138 # type: verbatim
33139 #. type: verbatim
33140 #: ../tools/virt-win-reg.pl:518
33141 #, no-wrap
33142 msgid ""
33143 " cat > service.reg <<'EOF'\n"
33144 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33145 " \"Type\"=dword:00000010\n"
33146 " \"Start\"=dword:00000002\n"
33147 " \"ErrorControl\"=dword:00000001\n"
33148 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33149 " \"DisplayName\"=\"RHSrvAny\"\n"
33150 " \"ObjectName\"=\"NetworkService\"\n"
33151 " \n"
33152 msgstr ""
33153
33154 # type: verbatim
33155 #. type: verbatim
33156 #: ../tools/virt-win-reg.pl:527
33157 #, no-wrap
33158 msgid ""
33159 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33160 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33161 " \"PWD\"=\"c:\\\\Temp\"\n"
33162 " EOF\n"
33163 "\n"
33164 msgstr ""
33165
33166 # type: textblock
33167 #. type: textblock
33168 #: ../tools/virt-win-reg.pl:538
33169 msgid ""
33170 "For use of C<ControlSet001> see the section above in this manual page.  You "
33171 "may need to adjust this according to the control set that is in use by the "
33172 "guest."
33173 msgstr ""
33174
33175 # type: textblock
33176 #. type: textblock
33177 #: ../tools/virt-win-reg.pl:544
33178 msgid ""
33179 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33180 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33181 "privileged account."
33182 msgstr ""
33183
33184 # type: textblock
33185 #. type: textblock
33186 #: ../tools/virt-win-reg.pl:550
33187 msgid ""
33188 "For the meaning of the magic numbers, see this Microsoft KB article: "
33189 "L<http://support.microsoft.com/kb/103000>."
33190 msgstr ""
33191
33192 # type: textblock
33193 #. type: textblock
33194 #: ../tools/virt-win-reg.pl:555
33195 msgid "Update the registry:"
33196 msgstr ""
33197
33198 # type: verbatim
33199 #. type: verbatim
33200 #: ../tools/virt-win-reg.pl:557
33201 #, no-wrap
33202 msgid ""
33203 " virt-win-reg --merge WindowsGuest service.reg\n"
33204 "\n"
33205 msgstr ""
33206
33207 # type: =head2
33208 #. type: =head1
33209 #: ../tools/virt-win-reg.pl:559 ../tools/virt-list-filesystems.pl:182
33210 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
33211 #: ../tools/virt-list-partitions.pl:250
33212 msgid "SHELL QUOTING"
33213 msgstr ""
33214
33215 # type: textblock
33216 #. type: textblock
33217 #: ../tools/virt-win-reg.pl:561
33218 msgid ""
33219 "Be careful when passing parameters containing C<\\> (backslash) in the "
33220 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33221 "(but not both) to protect them from the shell."
33222 msgstr ""
33223
33224 # type: textblock
33225 #. type: textblock
33226 #: ../tools/virt-win-reg.pl:565
33227 msgid "Paths and value names are case-insensitive."
33228 msgstr ""
33229
33230 # type: textblock
33231 #. type: textblock
33232 #: ../tools/virt-win-reg.pl:567 ../tools/virt-list-filesystems.pl:184
33233 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
33234 #: ../tools/virt-list-partitions.pl:252
33235 msgid ""
33236 "Libvirt guest names can contain arbitrary characters, some of which have "
33237 "meaning to the shell such as C<#> and space.  You may need to quote or "
33238 "escape these characters on the command line.  See the shell manual page L<sh"
33239 "(1)> for details."
33240 msgstr ""
33241
33242 # type: textblock
33243 #. type: textblock
33244 #: ../tools/virt-win-reg.pl:574
33245 msgid ""
33246 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33247 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33248 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33249 msgstr ""
33250
33251 # type: textblock
33252 #. type: textblock
33253 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
33254 msgid ""
33255 "When reporting bugs, please enable debugging and capture the I<complete> "
33256 "output:"
33257 msgstr ""
33258
33259 # type: verbatim
33260 #. type: verbatim
33261 #: ../tools/virt-win-reg.pl:592
33262 #, no-wrap
33263 msgid ""
33264 " export LIBGUESTFS_DEBUG=1\n"
33265 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33266 "\n"
33267 msgstr ""
33268
33269 # type: textblock
33270 #. type: textblock
33271 #: ../tools/virt-win-reg.pl:595
33272 msgid ""
33273 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33274 "redhat.com/>"
33275 msgstr ""
33276
33277 # type: =head1
33278 #. type: =head1
33279 #: ../tools/virt-win-reg.pl:598 ../tools/virt-list-filesystems.pl:202
33280 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
33281 #: ../tools/virt-list-partitions.pl:269
33282 msgid "AUTHOR"
33283 msgstr ""
33284
33285 # type: textblock
33286 #. type: textblock
33287 #: ../tools/virt-win-reg.pl:600 ../tools/virt-list-filesystems.pl:204
33288 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
33289 #: ../tools/virt-list-partitions.pl:271
33290 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
33291 msgstr ""
33292
33293 # type: textblock
33294 #. type: textblock
33295 #: ../tools/virt-win-reg.pl:604 ../tools/virt-make-fs.pl:570
33296 msgid "Copyright (C) 2010 Red Hat Inc."
33297 msgstr ""
33298
33299 # type: textblock
33300 #. type: textblock
33301 #: ../tools/virt-list-filesystems.pl:32
33302 msgid ""
33303 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33304 msgstr ""
33305
33306 # type: verbatim
33307 #. type: verbatim
33308 #: ../tools/virt-list-filesystems.pl:36
33309 #, no-wrap
33310 msgid ""
33311 " virt-list-filesystems [--options] domname\n"
33312 "\n"
33313 msgstr ""
33314
33315 # type: verbatim
33316 #. type: verbatim
33317 #: ../tools/virt-list-filesystems.pl:38
33318 #, no-wrap
33319 msgid ""
33320 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33321 "\n"
33322 msgstr ""
33323
33324 # type: textblock
33325 #. type: textblock
33326 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33327 msgid ""
33328 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33329 "replacement."
33330 msgstr ""
33331
33332 # type: textblock
33333 #. type: textblock
33334 #: ../tools/virt-list-filesystems.pl:45
33335 msgid ""
33336 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33337 "are contained in a virtual machine or disk image."
33338 msgstr ""
33339
33340 # type: textblock
33341 #. type: textblock
33342 #: ../tools/virt-list-filesystems.pl:49
33343 msgid ""
33344 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33345 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33346 "> tool."
33347 msgstr ""
33348
33349 # type: =item
33350 #. type: =item
33351 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33352 msgid "B<-l> | B<--long>"
33353 msgstr ""
33354
33355 # type: textblock
33356 #. type: textblock
33357 #: ../tools/virt-list-filesystems.pl:108
33358 msgid ""
33359 "With this option, C<virt-list-filesystems> displays the type of each "
33360 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33361 msgstr ""
33362
33363 # type: =item
33364 #. type: =item
33365 #: ../tools/virt-list-filesystems.pl:115
33366 msgid "B<-a> | B<--all>"
33367 msgstr ""
33368
33369 # type: textblock
33370 #. type: textblock
33371 #: ../tools/virt-list-filesystems.pl:117
33372 msgid ""
33373 "Normally we only show mountable filesystems.  If this option is given then "
33374 "swap devices are shown too."
33375 msgstr ""
33376
33377 # type: textblock
33378 #. type: textblock
33379 #: ../tools/virt-list-filesystems.pl:191
33380 msgid ""
33381 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33382 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33383 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33384 msgstr ""
33385
33386 # type: textblock
33387 #. type: textblock
33388 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33389 msgid "Copyright (C) 2009 Red Hat Inc."
33390 msgstr ""
33391
33392 # type: textblock
33393 #. type: textblock
33394 #: ../tools/virt-tar.pl:33
33395 msgid "virt-tar - Extract or upload files to a virtual machine"
33396 msgstr ""
33397
33398 # type: verbatim
33399 #. type: verbatim
33400 #: ../tools/virt-tar.pl:37
33401 #, no-wrap
33402 msgid ""
33403 " virt-tar [--options] -x domname directory tarball\n"
33404 "\n"
33405 msgstr ""
33406
33407 # type: verbatim
33408 #. type: verbatim
33409 #: ../tools/virt-tar.pl:39
33410 #, no-wrap
33411 msgid ""
33412 " virt-tar [--options] -u domname tarball directory\n"
33413 "\n"
33414 msgstr ""
33415
33416 # type: verbatim
33417 #. type: verbatim
33418 #: ../tools/virt-tar.pl:41
33419 #, no-wrap
33420 msgid ""
33421 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33422 "\n"
33423 msgstr ""
33424
33425 # type: verbatim
33426 #. type: verbatim
33427 #: ../tools/virt-tar.pl:43
33428 #, no-wrap
33429 msgid ""
33430 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33431 "\n"
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../tools/virt-tar.pl:47
33436 msgid ""
33437 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33438 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33439 msgstr ""
33440
33441 # type: textblock
33442 #. type: textblock
33443 #: ../tools/virt-tar.pl:52
33444 msgid "Download C</home> from the VM into a local tarball:"
33445 msgstr ""
33446
33447 # type: verbatim
33448 #. type: verbatim
33449 #: ../tools/virt-tar.pl:54
33450 #, no-wrap
33451 msgid ""
33452 " virt-tar -x domname /home home.tar\n"
33453 "\n"
33454 msgstr ""
33455
33456 # type: verbatim
33457 #. type: verbatim
33458 #: ../tools/virt-tar.pl:56
33459 #, no-wrap
33460 msgid ""
33461 " virt-tar -zx domname /home home.tar.gz\n"
33462 "\n"
33463 msgstr ""
33464
33465 # type: textblock
33466 #. type: textblock
33467 #: ../tools/virt-tar.pl:58
33468 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33469 msgstr ""
33470
33471 # type: verbatim
33472 #. type: verbatim
33473 #: ../tools/virt-tar.pl:60
33474 #, no-wrap
33475 msgid ""
33476 " virt-tar -u domname uploadstuff.tar /tmp\n"
33477 "\n"
33478 msgstr ""
33479
33480 # type: verbatim
33481 #. type: verbatim
33482 #: ../tools/virt-tar.pl:62
33483 #, no-wrap
33484 msgid ""
33485 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33486 "\n"
33487 msgstr ""
33488
33489 #. type: textblock
33490 #: ../tools/virt-tar.pl:66
33491 msgid ""
33492 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
33493 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33494 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33495 msgstr ""
33496
33497 #. type: textblock
33498 #: ../tools/virt-tar.pl:71
33499 msgid ""
33500 "You can use I<-x> (extract) on live virtual machines, but you might get "
33501 "inconsistent results or errors if there is filesystem activity inside the "
33502 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33503 "work, but the only way to guarantee consistent results is if the virtual "
33504 "machine is shut down."
33505 msgstr ""
33506
33507 # type: textblock
33508 #. type: textblock
33509 #: ../tools/virt-tar.pl:79
33510 msgid ""
33511 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33512 "parts of a guest filesystem.  There are many possibilities: making backups, "
33513 "uploading data files, snooping on guest activity, fixing or customizing "
33514 "guests, etc."
33515 msgstr ""
33516
33517 # type: textblock
33518 #. type: textblock
33519 #: ../tools/virt-tar.pl:84
33520 msgid ""
33521 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33522 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33523 "should look at the L<guestfish(1)> tool."
33524 msgstr ""
33525
33526 #. type: textblock
33527 #: ../tools/virt-tar.pl:88
33528 msgid ""
33529 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
33530 "its contents (recursively) from the virtual machine into a local tarball.  "
33531 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
33532 "virtual machine.  You cannot use these two options together."
33533 msgstr ""
33534
33535 #. type: textblock
33536 #: ../tools/virt-tar.pl:94
33537 msgid ""
33538 "In addition, you may need to use the I<-z> (gZip) option to enable "
33539 "compression.  When uploading, you have to specify I<-z> if the upload file "
33540 "is compressed because virt-tar won't detect this on its own."
33541 msgstr ""
33542
33543 # type: textblock
33544 #. type: textblock
33545 #: ../tools/virt-tar.pl:98
33546 msgid ""
33547 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33548 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33549 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33550 "the L<libguestfs(3)> API)."
33551 msgstr ""
33552
33553 # type: =item
33554 #. type: =item
33555 #: ../tools/virt-tar.pl:156
33556 msgid "B<-x> | B<--extract> | B<--download>"
33557 msgstr ""
33558
33559 # type: =item
33560 #. type: =item
33561 #: ../tools/virt-tar.pl:158
33562 msgid "B<-u> | B<--upload>"
33563 msgstr ""
33564
33565 #. type: textblock
33566 #: ../tools/virt-tar.pl:160
33567 msgid ""
33568 "Use I<-x> to extract (download) a directory from a virtual machine to a "
33569 "local tarball."
33570 msgstr ""
33571
33572 #. type: textblock
33573 #: ../tools/virt-tar.pl:163
33574 msgid ""
33575 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
33576 "Please read the L</WARNING> section above before using this option."
33577 msgstr ""
33578
33579 # type: textblock
33580 #. type: textblock
33581 #: ../tools/virt-tar.pl:167
33582 msgid "You must specify exactly one of these options."
33583 msgstr ""
33584
33585 # type: =item
33586 #. type: =item
33587 #: ../tools/virt-tar.pl:173
33588 msgid "B<-z> | B<--gzip>"
33589 msgstr ""
33590
33591 # type: textblock
33592 #. type: textblock
33593 #: ../tools/virt-tar.pl:175
33594 msgid "Specify that the input or output tarball is gzip-compressed."
33595 msgstr ""
33596
33597 #. type: textblock
33598 #: ../tools/virt-tar.pl:288
33599 msgid ""
33600 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
33601 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
33602 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
33603 "org/>."
33604 msgstr ""
33605
33606 # type: textblock
33607 #. type: textblock
33608 #: ../tools/virt-make-fs.pl:37
33609 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
33610 msgstr ""
33611
33612 # type: verbatim
33613 #. type: verbatim
33614 #: ../tools/virt-make-fs.pl:41
33615 #, no-wrap
33616 msgid ""
33617 " virt-make-fs [--options] input.tar output.img\n"
33618 "\n"
33619 msgstr ""
33620
33621 # type: verbatim
33622 #. type: verbatim
33623 #: ../tools/virt-make-fs.pl:43
33624 #, no-wrap
33625 msgid ""
33626 " virt-make-fs [--options] input.tar.gz output.img\n"
33627 "\n"
33628 msgstr ""
33629
33630 # type: verbatim
33631 #. type: verbatim
33632 #: ../tools/virt-make-fs.pl:45
33633 #, no-wrap
33634 msgid ""
33635 " virt-make-fs [--options] directory output.img\n"
33636 "\n"
33637 msgstr ""
33638
33639 # type: textblock
33640 #. type: textblock
33641 #: ../tools/virt-make-fs.pl:49
33642 msgid ""
33643 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
33644 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
33645 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
33646 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
33647 "you want to attach these filesystems to existing virtual machines (eg. to "
33648 "import large amounts of read-only data to a VM)."
33649 msgstr ""
33650
33651 # type: textblock
33652 #. type: textblock
33653 #: ../tools/virt-make-fs.pl:57
33654 msgid "Basic usage is:"
33655 msgstr ""
33656
33657 # type: verbatim
33658 #. type: verbatim
33659 #: ../tools/virt-make-fs.pl:59
33660 #, no-wrap
33661 msgid ""
33662 " virt-make-fs input output\n"
33663 "\n"
33664 msgstr ""
33665
33666 # type: textblock
33667 #. type: textblock
33668 #: ../tools/virt-make-fs.pl:61
33669 msgid ""
33670 "where C<input> is either a directory containing files that you want to add, "
33671 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
33672 "C<output> is a disk image.  The input type is detected automatically.  The "
33673 "output disk image defaults to a raw ext2 image unless you specify extra "
33674 "flags (see L</OPTIONS> below)."
33675 msgstr ""
33676
33677 # type: =head2
33678 #. type: =head2
33679 #: ../tools/virt-make-fs.pl:67
33680 msgid "EXTRA SPACE"
33681 msgstr ""
33682
33683 #. type: textblock
33684 #: ../tools/virt-make-fs.pl:69
33685 msgid ""
33686 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
33687 "the files that it contains, but might have extra space.  Depending on how "
33688 "you are going to use the output, you might think this extra space is wasted "
33689 "and want to minimize it, or you might want to leave space so that more files "
33690 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
33691 "but you can use the I<--size> flag to leave space in the filesystem if you "
33692 "want it."
33693 msgstr ""
33694
33695 #. type: textblock
33696 #: ../tools/virt-make-fs.pl:77
33697 msgid ""
33698 "An alternative way to leave extra space but not make the output image any "
33699 "bigger is to use an alternative disk image format (instead of the default "
33700 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
33701 "image format (check your hypervisor supports this before using it).  This "
33702 "allows you to choose a large I<--size> but the extra space won't actually be "
33703 "allocated in the image until you try to store something in it."
33704 msgstr ""
33705
33706 #. type: textblock
33707 #: ../tools/virt-make-fs.pl:85
33708 msgid ""
33709 "Don't forget that you can also use local commands including L<resize2fs(8)> "
33710 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
33711 "to build another image from scratch."
33712 msgstr ""
33713
33714 # type: =head3
33715 #. type: =head3
33716 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
33717 #: ../tools/virt-make-fs.pl:142
33718 msgid "EXAMPLE"
33719 msgstr ""
33720
33721 # type: verbatim
33722 #. type: verbatim
33723 #: ../tools/virt-make-fs.pl:91
33724 #, no-wrap
33725 msgid ""
33726 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
33727 "\n"
33728 msgstr ""
33729
33730 # type: =head2
33731 #. type: =head2
33732 #: ../tools/virt-make-fs.pl:93
33733 msgid "FILESYSTEM TYPE"
33734 msgstr ""
33735
33736 # type: textblock
33737 #. type: textblock
33738 #: ../tools/virt-make-fs.pl:95
33739 msgid ""
33740 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
33741 "libguestfs supports can be used (but I<not> read-only formats like "
33742 "ISO9660).  Here are some of the more common choices:"
33743 msgstr ""
33744
33745 # type: =item
33746 #. type: =item
33747 #: ../tools/virt-make-fs.pl:101
33748 msgid "I<ext3>"
33749 msgstr ""
33750
33751 # type: textblock
33752 #. type: textblock
33753 #: ../tools/virt-make-fs.pl:103
33754 msgid ""
33755 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
33756 "you are not going to use the filesystem in a way that requires the journal, "
33757 "then this is just wasted overhead."
33758 msgstr ""
33759
33760 # type: =item
33761 #. type: =item
33762 #: ../tools/virt-make-fs.pl:107
33763 msgid "I<ntfs> or I<vfat>"
33764 msgstr ""
33765
33766 # type: textblock
33767 #. type: textblock
33768 #: ../tools/virt-make-fs.pl:109
33769 msgid "Useful if exporting data to a Windows guest."
33770 msgstr ""
33771
33772 # type: textblock
33773 #. type: textblock
33774 #: ../tools/virt-make-fs.pl:111
33775 msgid ""
33776 "I<Note for vfat>: The tar archive or local directory must only contain files "
33777 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
33778 "program running within libguestfs is unable to change the ownership of non-"
33779 "root files, since vfat itself does not support this."
33780 msgstr ""
33781
33782 # type: =item
33783 #. type: =item
33784 #: ../tools/virt-make-fs.pl:116
33785 msgid "I<minix>"
33786 msgstr ""
33787
33788 # type: textblock
33789 #. type: textblock
33790 #: ../tools/virt-make-fs.pl:118
33791 msgid ""
33792 "Lower overhead than C<ext2>, but certain limitations on filename length and "
33793 "total filesystem size."
33794 msgstr ""
33795
33796 # type: verbatim
33797 #. type: verbatim
33798 #: ../tools/virt-make-fs.pl:125
33799 #, no-wrap
33800 msgid ""
33801 " virt-make-fs --type=minix input minixfs.img\n"
33802 "\n"
33803 msgstr ""
33804
33805 # type: =head2
33806 #. type: =head2
33807 #: ../tools/virt-make-fs.pl:127
33808 msgid "TO PARTITION OR NOT TO PARTITION"
33809 msgstr ""
33810
33811 # type: textblock
33812 #. type: textblock
33813 #: ../tools/virt-make-fs.pl:129
33814 msgid "Optionally virt-make-fs can add a partition table to the output disk."
33815 msgstr ""
33816
33817 # type: textblock
33818 #. type: textblock
33819 #: ../tools/virt-make-fs.pl:131
33820 msgid ""
33821 "Adding a partition can make the disk image more compatible with certain "
33822 "virtualized operating systems which don't expect to see a filesystem "
33823 "directly located on a block device (Linux doesn't care and will happily "
33824 "handle both types)."
33825 msgstr ""
33826
33827 # type: textblock
33828 #. type: textblock
33829 #: ../tools/virt-make-fs.pl:136
33830 msgid ""
33831 "On the other hand, if you have a partition table then the output image is no "
33832 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
33833 "directly on a partitioned disk image.  (However libguestfs tools such as "
33834 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
33835 msgstr ""
33836
33837 # type: textblock
33838 #. type: textblock
33839 #: ../tools/virt-make-fs.pl:144
33840 msgid "Add an MBR partition:"
33841 msgstr ""
33842
33843 # type: verbatim
33844 #. type: verbatim
33845 #: ../tools/virt-make-fs.pl:146
33846 #, no-wrap
33847 msgid ""
33848 " virt-make-fs --partition -- input disk.img\n"
33849 "\n"
33850 msgstr ""
33851
33852 # type: textblock
33853 #. type: textblock
33854 #: ../tools/virt-make-fs.pl:148
33855 msgid ""
33856 "If the output disk image could be terabyte-sized or larger, it's better to "
33857 "use an EFI/GPT-compatible partition table:"
33858 msgstr ""
33859
33860 # type: verbatim
33861 #. type: verbatim
33862 #: ../tools/virt-make-fs.pl:151
33863 #, no-wrap
33864 msgid ""
33865 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
33866 "\n"
33867 msgstr ""
33868
33869 # type: textblock
33870 #. type: textblock
33871 #: ../tools/virt-make-fs.pl:179
33872 msgid "Enable debugging information."
33873 msgstr ""
33874
33875 # type: =item
33876 #. type: =item
33877 #: ../tools/virt-make-fs.pl:185
33878 msgid "B<--size=E<lt>NE<gt>>"
33879 msgstr ""
33880
33881 # type: =item
33882 #. type: =item
33883 #: ../tools/virt-make-fs.pl:187
33884 msgid "B<--size=+E<lt>NE<gt>>"
33885 msgstr ""
33886
33887 # type: =item
33888 #. type: =item
33889 #: ../tools/virt-make-fs.pl:189
33890 msgid "B<-s E<lt>NE<gt>>"
33891 msgstr ""
33892
33893 # type: =item
33894 #. type: =item
33895 #: ../tools/virt-make-fs.pl:191
33896 msgid "B<-s +E<lt>NE<gt>>"
33897 msgstr ""
33898
33899 #. type: textblock
33900 #: ../tools/virt-make-fs.pl:193
33901 msgid ""
33902 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
33903 msgstr ""
33904
33905 # type: textblock
33906 #. type: textblock
33907 #: ../tools/virt-make-fs.pl:196
33908 msgid ""
33909 "If this option is I<not> given, then the output image will be just large "
33910 "enough to contain all the files, with not much wasted space."
33911 msgstr ""
33912
33913 # type: textblock
33914 #. type: textblock
33915 #: ../tools/virt-make-fs.pl:199
33916 msgid ""
33917 "To choose a fixed size output disk, specify an absolute number followed by b/"
33918 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
33919 "Petabytes or Exabytes.  This must be large enough to contain all the input "
33920 "files, else you will get an error."
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../tools/virt-make-fs.pl:204
33925 msgid ""
33926 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
33927 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
33928 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
33929 "the input files, and (approximately) an extra 200 MB free space."
33930 msgstr ""
33931
33932 # type: textblock
33933 #. type: textblock
33934 #: ../tools/virt-make-fs.pl:210
33935 msgid ""
33936 "Note that virt-make-fs estimates free space, and therefore will not produce "
33937 "filesystems containing precisely the free space requested.  (It is much more "
33938 "expensive and time-consuming to produce a filesystem which has precisely the "
33939 "desired free space)."
33940 msgstr ""
33941
33942 # type: =item
33943 #. type: =item
33944 #: ../tools/virt-make-fs.pl:219
33945 msgid "B<--format=E<lt>fmtE<gt>>"
33946 msgstr ""
33947
33948 # type: =item
33949 #. type: =item
33950 #: ../tools/virt-make-fs.pl:221
33951 msgid "B<-F E<lt>fmtE<gt>>"
33952 msgstr ""
33953
33954 # type: textblock
33955 #. type: textblock
33956 #: ../tools/virt-make-fs.pl:223
33957 msgid "Choose the output disk image format."
33958 msgstr ""
33959
33960 # type: textblock
33961 #. type: textblock
33962 #: ../tools/virt-make-fs.pl:225
33963 msgid "The default is C<raw> (raw disk image)."
33964 msgstr ""
33965
33966 # type: textblock
33967 #. type: textblock
33968 #: ../tools/virt-make-fs.pl:227
33969 msgid ""
33970 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
33971 "that would really make sense here is C<qcow2>."
33972 msgstr ""
33973
33974 # type: =item
33975 #. type: =item
33976 #: ../tools/virt-make-fs.pl:234
33977 msgid "B<--type=E<lt>fsE<gt>>"
33978 msgstr ""
33979
33980 # type: =item
33981 #. type: =item
33982 #: ../tools/virt-make-fs.pl:236
33983 msgid "B<-t E<lt>fsE<gt>>"
33984 msgstr ""
33985
33986 # type: textblock
33987 #. type: textblock
33988 #: ../tools/virt-make-fs.pl:238
33989 msgid "Choose the output filesystem type."
33990 msgstr ""
33991
33992 # type: textblock
33993 #. type: textblock
33994 #: ../tools/virt-make-fs.pl:240
33995 msgid "The default is C<ext2>."
33996 msgstr ""
33997
33998 # type: textblock
33999 #. type: textblock
34000 #: ../tools/virt-make-fs.pl:242
34001 msgid ""
34002 "Any filesystem which is supported read-write by libguestfs can be used here."
34003 msgstr ""
34004
34005 # type: =item
34006 #. type: =item
34007 #: ../tools/virt-make-fs.pl:249
34008 msgid "B<--partition>"
34009 msgstr ""
34010
34011 # type: =item
34012 #. type: =item
34013 #: ../tools/virt-make-fs.pl:251
34014 msgid "B<--partition=E<lt>parttypeE<gt>>"
34015 msgstr ""
34016
34017 # type: textblock
34018 #. type: textblock
34019 #: ../tools/virt-make-fs.pl:253
34020 msgid ""
34021 "If specified, this flag adds an MBR partition table to the output disk image."
34022 msgstr ""
34023
34024 #. type: textblock
34025 #: ../tools/virt-make-fs.pl:256
34026 msgid ""
34027 "You can change the partition table type, eg. I<--partition=gpt> for large "
34028 "disks."
34029 msgstr ""
34030
34031 #. type: textblock
34032 #: ../tools/virt-make-fs.pl:259
34033 msgid ""
34034 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
34035 "might consider the next parameter to be the partition type.  For example:"
34036 msgstr ""
34037
34038 # type: verbatim
34039 #. type: verbatim
34040 #: ../tools/virt-make-fs.pl:263
34041 #, no-wrap
34042 msgid ""
34043 " virt-make-fs --partition input.tar ...\n"
34044 "\n"
34045 msgstr ""
34046
34047 #. type: textblock
34048 #: ../tools/virt-make-fs.pl:265
34049 msgid ""
34050 "would cause virt-make-fs to think you wanted to use a partition type of "
34051 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
34052 "dash) between options and the input file argument:"
34053 msgstr ""
34054
34055 # type: verbatim
34056 #. type: verbatim
34057 #: ../tools/virt-make-fs.pl:269
34058 #, no-wrap
34059 msgid ""
34060 " virt-make-fs --partition -- input.tar ...\n"
34061 "\n"
34062 msgstr ""
34063
34064 #. type: textblock
34065 #: ../tools/virt-make-fs.pl:541
34066 msgid ""
34067 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34068 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34069 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34070 msgstr ""
34071
34072 # type: verbatim
34073 #. type: verbatim
34074 #: ../tools/virt-make-fs.pl:558
34075 #, no-wrap
34076 msgid ""
34077 " export LIBGUESTFS_DEBUG=1\n"
34078 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34079 "\n"
34080 msgstr ""
34081
34082 # type: textblock
34083 #. type: textblock
34084 #: ../tools/virt-make-fs.pl:561
34085 msgid ""
34086 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34087 "redhat.com/>"
34088 msgstr ""
34089
34090 # type: textblock
34091 #. type: textblock
34092 #: ../tools/virt-list-partitions.pl:32
34093 msgid ""
34094 "virt-list-partitions - List partitions in a virtual machine or disk image"
34095 msgstr ""
34096
34097 # type: verbatim
34098 #. type: verbatim
34099 #: ../tools/virt-list-partitions.pl:36
34100 #, no-wrap
34101 msgid ""
34102 " virt-list-partitions [--options] domname\n"
34103 "\n"
34104 msgstr ""
34105
34106 # type: verbatim
34107 #. type: verbatim
34108 #: ../tools/virt-list-partitions.pl:38
34109 #, no-wrap
34110 msgid ""
34111 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34112 "\n"
34113 msgstr ""
34114
34115 # type: textblock
34116 #. type: textblock
34117 #: ../tools/virt-list-partitions.pl:45
34118 msgid ""
34119 "C<virt-list-partitions> is a command line tool to list the partitions that "
34120 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34121 "first step to using L<virt-resize(1)>."
34122 msgstr ""
34123
34124 # type: textblock
34125 #. type: textblock
34126 #: ../tools/virt-list-partitions.pl:50
34127 msgid ""
34128 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34129 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34130 "> tool."
34131 msgstr ""
34132
34133 # type: =item
34134 #. type: =item
34135 #: ../tools/virt-list-partitions.pl:107
34136 msgid "B<-h> | B<--human-readable>"
34137 msgstr ""
34138
34139 # type: textblock
34140 #. type: textblock
34141 #: ../tools/virt-list-partitions.pl:109
34142 msgid "Show sizes in human-readable form (eg. \"1G\")."
34143 msgstr ""
34144
34145 # type: textblock
34146 #. type: textblock
34147 #: ../tools/virt-list-partitions.pl:117
34148 msgid ""
34149 "With this option, C<virt-list-partitions> displays the type and size of each "
34150 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34151 msgstr ""
34152
34153 # type: =item
34154 #. type: =item
34155 #: ../tools/virt-list-partitions.pl:124
34156 msgid "B<-t> | B<--total>"
34157 msgstr ""
34158
34159 # type: textblock
34160 #. type: textblock
34161 #: ../tools/virt-list-partitions.pl:126
34162 msgid ""
34163 "Display the total size of each block device (as a separate row or rows)."
34164 msgstr ""
34165
34166 # type: textblock
34167 #. type: textblock
34168 #: ../tools/virt-list-partitions.pl:259
34169 msgid ""
34170 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34171 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34172 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34173 msgstr ""
34174
34175 # type: textblock
34176 #. type: textblock
34177 #: ../tools/virt-list-partitions.pl:275
34178 msgid "Copyright (C) 2009-2010 Red Hat Inc."
34179 msgstr ""