Version 1.11.0.
[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-04-12 20:14+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-edit.pl:32 ../tools/virt-win-reg.pl:35
24 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-tar.pl:31
25 #: ../tools/virt-make-fs.pl:35 ../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-edit.pl:36 ../tools/virt-win-reg.pl:39
40 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-tar.pl:35
41 #: ../tools/virt-make-fs.pl:39 ../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-edit.pl:50 ../tools/virt-win-reg.pl:63
85 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-tar.pl:77
86 #: ../tools/virt-make-fs.pl:47 ../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 #. type: textblock
840 #: ../src/guestfs.pod:357
841 msgid "and you can write tar output to a pipe C<fd> by doing:"
842 msgstr ""
843
844 #. type: verbatim
845 #: ../src/guestfs.pod:359
846 #, no-wrap
847 msgid ""
848 " char devfd[64];\n"
849 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
850 " guestfs_tar_out (g, \"/\", devfd);\n"
851 "\n"
852 msgstr ""
853
854 # type: =head2
855 #. type: =head2
856 #: ../src/guestfs.pod:363
857 msgid "LISTING FILES"
858 msgstr ""
859
860 # type: textblock
861 #. type: textblock
862 #: ../src/guestfs.pod:365
863 msgid ""
864 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
865 "L<guestfish(1)>-equivalent command C<ll>)."
866 msgstr ""
867
868 # type: textblock
869 #. type: textblock
870 #: ../src/guestfs.pod:368
871 msgid ""
872 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
873 "programs, as a flat list of strings."
874 msgstr ""
875
876 # type: textblock
877 #. type: textblock
878 #: ../src/guestfs.pod:371
879 msgid ""
880 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
881 "directory, plus additional information about each one.  It is more "
882 "equivalent to using the L<readdir(3)> call on a local filesystem."
883 msgstr ""
884
885 # type: textblock
886 #. type: textblock
887 #: ../src/guestfs.pod:375
888 msgid ""
889 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
890 msgstr ""
891
892 # type: =head2
893 #. type: =head2
894 #: ../src/guestfs.pod:378
895 msgid "RUNNING COMMANDS"
896 msgstr ""
897
898 # type: textblock
899 #. type: textblock
900 #: ../src/guestfs.pod:380
901 msgid ""
902 "Although libguestfs is primarily an API for manipulating files inside guest "
903 "images, we also provide some limited facilities for running commands inside "
904 "guests."
905 msgstr ""
906
907 # type: textblock
908 #. type: textblock
909 #: ../src/guestfs.pod:384
910 msgid "There are many limitations to this:"
911 msgstr ""
912
913 # type: =item
914 #. type: =item
915 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
916 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
917 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1087
918 #: ../src/guestfs.pod:1091 ../src/guestfs.pod:1095 ../src/guestfs.pod:1100
919 #: ../src/guestfs.pod:1108 ../src/guestfs.pod:1127 ../src/guestfs.pod:1135
920 #: ../src/guestfs.pod:1157 ../src/guestfs.pod:1161 ../src/guestfs.pod:1165
921 #: ../src/guestfs.pod:1169 ../src/guestfs.pod:1173 ../src/guestfs.pod:1177
922 #: ../src/guestfs.pod:1659 ../src/guestfs.pod:1664 ../src/guestfs.pod:1668
923 #: ../src/guestfs.pod:1769 ../src/guestfs.pod:1774 ../src/guestfs.pod:1778
924 #: ../src/guestfs.pod:1788 ../src/guestfs.pod:2022 ../src/guestfs.pod:2027
925 #: ../src/guestfs.pod:2033 ../src/guestfs.pod:2041 ../src/guestfs.pod:2395
926 #: ../src/guestfs.pod:2401 ../src/guestfs.pod:2406 ../src/guestfs.pod:2412
927 #: ../src/guestfs.pod:2877 ../src/guestfs.pod:2881 ../src/guestfs.pod:2885
928 #: ../src/guestfs.pod:2889 ../src/guestfs-actions.pod:15
929 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:577
930 #: ../src/guestfs-actions.pod:585 ../src/guestfs-actions.pod:592
931 #: ../src/guestfs-actions.pod:599 ../src/guestfs-actions.pod:1600
932 #: ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1608
933 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1620
934 #: ../src/guestfs-actions.pod:1624 ../src/guestfs-actions.pod:1628
935 #: ../src/guestfs-actions.pod:1638 ../src/guestfs-actions.pod:1642
936 #: ../src/guestfs-actions.pod:1646 ../src/guestfs-actions.pod:1784
937 #: ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1793
938 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1859
939 #: ../src/guestfs-actions.pod:1863 ../src/guestfs-actions.pod:1868
940 #: ../fish/guestfish.pod:443 ../fish/guestfish.pod:447
941 #: ../fish/guestfish.pod:451 ../fish/guestfish.pod:455
942 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
943 #: ../fish/guestfish-actions.pod:380 ../fish/guestfish-actions.pod:388
944 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:402
945 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1076
946 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
947 #: ../fish/guestfish-actions.pod:1092 ../fish/guestfish-actions.pod:1096
948 #: ../fish/guestfish-actions.pod:1100 ../fish/guestfish-actions.pod:1110
949 #: ../fish/guestfish-actions.pod:1114 ../fish/guestfish-actions.pod:1118
950 #: ../fish/guestfish-actions.pod:1208 ../fish/guestfish-actions.pod:1212
951 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1222
952 #: ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1268
953 #: ../fish/guestfish-actions.pod:1273 ../tools/virt-edit.pl:351
954 #: ../tools/virt-edit.pl:356 ../tools/virt-edit.pl:361
955 #: ../tools/virt-edit.pl:372 ../tools/virt-edit.pl:376
956 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
957 #: ../tools/virt-win-reg.pl:548
958 msgid "*"
959 msgstr ""
960
961 # type: textblock
962 #. type: textblock
963 #: ../src/guestfs.pod:390
964 msgid ""
965 "The kernel version that the command runs under will be different from what "
966 "it expects."
967 msgstr ""
968
969 # type: textblock
970 #. type: textblock
971 #: ../src/guestfs.pod:395
972 msgid ""
973 "If the command needs to communicate with daemons, then most likely they "
974 "won't be running."
975 msgstr ""
976
977 # type: textblock
978 #. type: textblock
979 #: ../src/guestfs.pod:400
980 msgid "The command will be running in limited memory."
981 msgstr ""
982
983 # type: textblock
984 #. type: textblock
985 #: ../src/guestfs.pod:404
986 msgid ""
987 "The network may not be available unless you enable it (see L</"
988 "guestfs_set_network>)."
989 msgstr ""
990
991 # type: textblock
992 #. type: textblock
993 #: ../src/guestfs.pod:409
994 msgid "Only supports Linux guests (not Windows, BSD, etc)."
995 msgstr ""
996
997 # type: textblock
998 #. type: textblock
999 #: ../src/guestfs.pod:413
1000 msgid ""
1001 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1002 msgstr ""
1003
1004 # type: textblock
1005 #. type: textblock
1006 #: ../src/guestfs.pod:418
1007 msgid ""
1008 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1009 "See L</SELINUX> in this manpage."
1010 msgstr ""
1011
1012 # type: textblock
1013 #. type: textblock
1014 #: ../src/guestfs.pod:423
1015 msgid ""
1016 "I<Security:> It is not safe to run commands from untrusted, possibly "
1017 "malicious guests.  These commands may attempt to exploit your program by "
1018 "sending unexpected output.  They could also try to exploit the Linux kernel "
1019 "or qemu provided by the libguestfs appliance.  They could use the network "
1020 "provided by the libguestfs appliance to bypass ordinary network partitions "
1021 "and firewalls.  They could use the elevated privileges or different SELinux "
1022 "context of your program to their advantage."
1023 msgstr ""
1024
1025 # type: textblock
1026 #. type: textblock
1027 #: ../src/guestfs.pod:432
1028 msgid ""
1029 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1030 "(a script which runs when the guest next boots normally), and to have this "
1031 "script run the commands you want in the normal context of the running guest, "
1032 "network security and so on.  For information about other security issues, "
1033 "see L</SECURITY>."
1034 msgstr ""
1035
1036 # type: textblock
1037 #. type: textblock
1038 #: ../src/guestfs.pod:440
1039 msgid ""
1040 "The two main API calls to run commands are L</guestfs_command> and L</"
1041 "guestfs_sh> (there are also variations)."
1042 msgstr ""
1043
1044 # type: textblock
1045 #. type: textblock
1046 #: ../src/guestfs.pod:443
1047 msgid ""
1048 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1049 "shell globs, redirections, etc will work."
1050 msgstr ""
1051
1052 # type: =head2
1053 #. type: =head2
1054 #: ../src/guestfs.pod:446
1055 msgid "CONFIGURATION FILES"
1056 msgstr ""
1057
1058 # type: textblock
1059 #. type: textblock
1060 #: ../src/guestfs.pod:448
1061 msgid ""
1062 "To read and write configuration files in Linux guest filesystems, we "
1063 "strongly recommend using Augeas.  For example, Augeas understands how to "
1064 "read and write, say, a Linux shadow password file or X.org configuration "
1065 "file, and so avoids you having to write that code."
1066 msgstr ""
1067
1068 # type: textblock
1069 #. type: textblock
1070 #: ../src/guestfs.pod:453
1071 msgid ""
1072 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1073 "document Augeas itself here because there is excellent documentation on the "
1074 "L<http://augeas.net/> website."
1075 msgstr ""
1076
1077 # type: textblock
1078 #. type: textblock
1079 #: ../src/guestfs.pod:457
1080 msgid ""
1081 "If you don't want to use Augeas (you fool!) then try calling L</"
1082 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1083 "over."
1084 msgstr ""
1085
1086 # type: =head2
1087 #. type: =head2
1088 #: ../src/guestfs.pod:461
1089 msgid "SELINUX"
1090 msgstr ""
1091
1092 # type: textblock
1093 #. type: textblock
1094 #: ../src/guestfs.pod:463
1095 msgid ""
1096 "We support SELinux guests.  To ensure that labeling happens correctly in "
1097 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1098 msgstr ""
1099
1100 # type: =item
1101 #. type: =item
1102 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1280 ../src/guestfs.pod:1411
1103 #: ../src/guestfs.pod:2440
1104 msgid "1."
1105 msgstr ""
1106
1107 # type: textblock
1108 #. type: textblock
1109 #: ../src/guestfs.pod:471
1110 msgid "Before launching, do:"
1111 msgstr ""
1112
1113 # type: verbatim
1114 #. type: verbatim
1115 #: ../src/guestfs.pod:473
1116 #, no-wrap
1117 msgid ""
1118 " guestfs_set_selinux (g, 1);\n"
1119 "\n"
1120 msgstr ""
1121
1122 # type: =item
1123 #. type: =item
1124 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1284 ../src/guestfs.pod:1415
1125 #: ../src/guestfs.pod:2465
1126 msgid "2."
1127 msgstr ""
1128
1129 # type: textblock
1130 #. type: textblock
1131 #: ../src/guestfs.pod:477
1132 msgid ""
1133 "After mounting the guest's filesystem(s), load the policy.  This is best "
1134 "done by running the L<load_policy(8)> command in the guest itself:"
1135 msgstr ""
1136
1137 # type: verbatim
1138 #. type: verbatim
1139 #: ../src/guestfs.pod:481
1140 #, no-wrap
1141 msgid ""
1142 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1143 "\n"
1144 msgstr ""
1145
1146 # type: textblock
1147 #. type: textblock
1148 #: ../src/guestfs.pod:483
1149 msgid ""
1150 "(Older versions of C<load_policy> require you to specify the name of the "
1151 "policy file)."
1152 msgstr ""
1153
1154 # type: =item
1155 #. type: =item
1156 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1421
1157 msgid "3."
1158 msgstr ""
1159
1160 # type: textblock
1161 #. type: textblock
1162 #: ../src/guestfs.pod:488
1163 msgid ""
1164 "Optionally, set the security context for the API.  The correct security "
1165 "context to use can only be known by inspecting the guest.  As an example:"
1166 msgstr ""
1167
1168 # type: verbatim
1169 #. type: verbatim
1170 #: ../src/guestfs.pod:492
1171 #, no-wrap
1172 msgid ""
1173 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1174 "\n"
1175 msgstr ""
1176
1177 # type: textblock
1178 #. type: textblock
1179 #: ../src/guestfs.pod:496
1180 msgid "This will work for running commands and editing existing files."
1181 msgstr ""
1182
1183 # type: textblock
1184 #. type: textblock
1185 #: ../src/guestfs.pod:498
1186 msgid ""
1187 "When new files are created, you may need to label them explicitly, for "
1188 "example by running the external command C<restorecon pathname>."
1189 msgstr ""
1190
1191 # type: =head2
1192 #. type: =head2
1193 #: ../src/guestfs.pod:502
1194 msgid "UMASK"
1195 msgstr ""
1196
1197 # type: textblock
1198 #. type: textblock
1199 #: ../src/guestfs.pod:504
1200 msgid ""
1201 "Certain calls are affected by the current file mode creation mask (the "
1202 "\"umask\").  In particular ones which create files or directories, such as "
1203 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1204 "either the default mode that the file is created with or modifies the mode "
1205 "that you supply."
1206 msgstr ""
1207
1208 # type: textblock
1209 #. type: textblock
1210 #: ../src/guestfs.pod:510
1211 msgid ""
1212 "The default umask is C<022>, so files are created with modes such as C<0644> "
1213 "and directories with C<0755>."
1214 msgstr ""
1215
1216 # type: textblock
1217 #. type: textblock
1218 #: ../src/guestfs.pod:513
1219 msgid ""
1220 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1221 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1222 "guestfs_chmod> after creating each file or directory."
1223 msgstr ""
1224
1225 # type: textblock
1226 #. type: textblock
1227 #: ../src/guestfs.pod:517
1228 msgid "For more information about umask, see L<umask(2)>."
1229 msgstr ""
1230
1231 # type: =head1
1232 #. type: =head1
1233 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:765
1234 msgid "ENCRYPTED DISKS"
1235 msgstr ""
1236
1237 # type: textblock
1238 #. type: textblock
1239 #: ../src/guestfs.pod:521
1240 msgid ""
1241 "Libguestfs allows you to access Linux guests which have been encrypted using "
1242 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1243 "standard.  This includes nearly all whole disk encryption systems used by "
1244 "modern Linux guests."
1245 msgstr ""
1246
1247 # type: textblock
1248 #. type: textblock
1249 #: ../src/guestfs.pod:527
1250 msgid ""
1251 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1252 "returns the string C<crypto_LUKS>)."
1253 msgstr ""
1254
1255 # type: textblock
1256 #. type: textblock
1257 #: ../src/guestfs.pod:530
1258 msgid ""
1259 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1260 "will require the passphrase!"
1261 msgstr ""
1262
1263 # type: textblock
1264 #. type: textblock
1265 #: ../src/guestfs.pod:533
1266 msgid ""
1267 "Opening a LUKS device creates a new device mapper device called C</dev/"
1268 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1269 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1270 "from and encrypted to the underlying block device respectively."
1271 msgstr ""
1272
1273 # type: textblock
1274 #. type: textblock
1275 #: ../src/guestfs.pod:539
1276 msgid ""
1277 "LVM volume groups on the device can be made visible by calling L</"
1278 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1279 "(s) can now be mounted in the usual way."
1280 msgstr ""
1281
1282 # type: textblock
1283 #. type: textblock
1284 #: ../src/guestfs.pod:543
1285 msgid ""
1286 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1287 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1288 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1289 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1290 "underlying encrypted block device)."
1291 msgstr ""
1292
1293 # type: =head2
1294 #. type: =head2
1295 #: ../src/guestfs.pod:550
1296 msgid "INSPECTION"
1297 msgstr ""
1298
1299 #. type: textblock
1300 #: ../src/guestfs.pod:552
1301 msgid ""
1302 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1303 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1304 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1305 "version 1.5.3 the most frequently used part of this library has been "
1306 "rewritten in C and moved into the core code)."
1307 msgstr ""
1308
1309 # type: textblock
1310 #. type: textblock
1311 #: ../src/guestfs.pod:559
1312 msgid ""
1313 "Add all disks belonging to the unknown virtual machine and call L</"
1314 "guestfs_launch> in the usual way."
1315 msgstr ""
1316
1317 # type: textblock
1318 #. type: textblock
1319 #: ../src/guestfs.pod:562
1320 msgid ""
1321 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1322 "and certain heuristics, and returns a list of operating systems that were "
1323 "found.  An empty list means none were found.  A single element is the root "
1324 "filesystem of the operating system.  For dual- or multi-boot guests, "
1325 "multiple roots can be returned, each one corresponding to a separate "
1326 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1327 "world of virtualization, but since this scenario can happen, we have built "
1328 "libguestfs to deal with it.)"
1329 msgstr ""
1330
1331 # type: textblock
1332 #. type: textblock
1333 #: ../src/guestfs.pod:571
1334 msgid ""
1335 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1336 "to get additional details about that operating system.  For example, call L</"
1337 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1338 "Windows and Linux-based operating systems respectively."
1339 msgstr ""
1340
1341 # type: textblock
1342 #. type: textblock
1343 #: ../src/guestfs.pod:577
1344 msgid ""
1345 "Un*x-like and Linux-based operating systems usually consist of several "
1346 "filesystems which are mounted at boot time (for example, a separate boot "
1347 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1348 "filesystems correspond to mount points.  Call "
1349 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1350 "hash table like this example:"
1351 msgstr ""
1352
1353 # type: verbatim
1354 #. type: verbatim
1355 #: ../src/guestfs.pod:584
1356 #, no-wrap
1357 msgid ""
1358 " /boot => /dev/sda1\n"
1359 " /     => /dev/vg_guest/lv_root\n"
1360 " /usr  => /dev/vg_guest/lv_usr\n"
1361 "\n"
1362 msgstr ""
1363
1364 # type: textblock
1365 #. type: textblock
1366 #: ../src/guestfs.pod:588
1367 msgid ""
1368 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1369 "filesystems as suggested."
1370 msgstr ""
1371
1372 # type: textblock
1373 #. type: textblock
1374 #: ../src/guestfs.pod:591
1375 msgid ""
1376 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1377 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1378 msgstr ""
1379
1380 # type: textblock
1381 #. type: textblock
1382 #: ../src/guestfs.pod:595
1383 msgid ""
1384 "Inspection currently only works for some common operating systems.  "
1385 "Contributors are welcome to send patches for other operating systems that we "
1386 "currently cannot detect."
1387 msgstr ""
1388
1389 # type: textblock
1390 #. type: textblock
1391 #: ../src/guestfs.pod:599
1392 msgid ""
1393 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1394 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1395 "encrypted devices."
1396 msgstr ""
1397
1398 # type: textblock
1399 #. type: textblock
1400 #: ../src/guestfs.pod:603
1401 msgid ""
1402 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1403 "inspection and caches the results in the guest handle.  Subsequent calls to "
1404 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1405 "read the disks.  If you change the content of the guest disks, you can redo "
1406 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1407 "guestfs_inspect_list_applications> works a little differently from the other "
1408 "calls and does read the disks.  See documentation for that function for "
1409 "details)."
1410 msgstr ""
1411
1412 #. type: =head3
1413 #: ../src/guestfs.pod:612
1414 msgid "INSPECTING INSTALL DISKS"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../src/guestfs.pod:614
1419 msgid ""
1420 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1421 "CDs and more."
1422 msgstr ""
1423
1424 #. type: textblock
1425 #: ../src/guestfs.pod:617
1426 msgid ""
1427 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1428 "system, which currently can be C<installed> (a regular operating system) or "
1429 "C<installer> (some sort of install disk)."
1430 msgstr ""
1431
1432 #. type: textblock
1433 #: ../src/guestfs.pod:621
1434 msgid ""
1435 "Further information is available about the operating system that can be "
1436 "installed using the regular inspection APIs like L</"
1437 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1438 msgstr ""
1439
1440 #. type: textblock
1441 #: ../src/guestfs.pod:626
1442 msgid ""
1443 "Some additional information specific to installer disks is also available "
1444 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1445 "guestfs_inspect_is_multipart> calls."
1446 msgstr ""
1447
1448 # type: =head2
1449 #. type: =head2
1450 #: ../src/guestfs.pod:631
1451 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1452 msgstr ""
1453
1454 # type: textblock
1455 #. type: textblock
1456 #: ../src/guestfs.pod:633
1457 msgid ""
1458 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1459 "ntfs-3g.org/> driver."
1460 msgstr ""
1461
1462 # type: =head3
1463 #. type: =head3
1464 #: ../src/guestfs.pod:636
1465 msgid "DRIVE LETTERS AND PATHS"
1466 msgstr ""
1467
1468 # type: textblock
1469 #. type: textblock
1470 #: ../src/guestfs.pod:638
1471 msgid ""
1472 "DOS and Windows still use drive letters, and the filesystems are always "
1473 "treated as case insensitive by Windows itself, and therefore you might find "
1474 "a Windows configuration file referring to a path like C<c:\\windows"
1475 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1476 "might be referred to as C</WINDOWS/System32>."
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../src/guestfs.pod:644
1481 msgid ""
1482 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1483 "L</guestfs_inspect_get_drive_mappings>)"
1484 msgstr ""
1485
1486 #. type: textblock
1487 #: ../src/guestfs.pod:647
1488 msgid ""
1489 "Dealing with separator characters (backslash vs forward slash) is outside "
1490 "the scope of libguestfs, but usually a simple character replacement will "
1491 "work."
1492 msgstr ""
1493
1494 #. type: textblock
1495 #: ../src/guestfs.pod:651
1496 msgid ""
1497 "To resolve the case insensitivity of paths, call L</"
1498 "guestfs_case_sensitive_path>."
1499 msgstr ""
1500
1501 # type: =head3
1502 #. type: =head3
1503 #: ../src/guestfs.pod:654
1504 msgid "ACCESSING THE WINDOWS REGISTRY"
1505 msgstr ""
1506
1507 # type: textblock
1508 #. type: textblock
1509 #: ../src/guestfs.pod:656
1510 msgid ""
1511 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1512 "files, through the library C<hivex> which is part of the libguestfs project "
1513 "although ships as a separate tarball.  You have to locate and download the "
1514 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1515 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1516 "reg(1)> for more help on this issue."
1517 msgstr ""
1518
1519 # type: =head3
1520 #. type: =head3
1521 #: ../src/guestfs.pod:664
1522 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1523 msgstr ""
1524
1525 # type: textblock
1526 #. type: textblock
1527 #: ../src/guestfs.pod:666
1528 msgid ""
1529 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1530 "provide something which looks like a Linux symlink.  The way it tries to do "
1531 "the rewriting is described here:"
1532 msgstr ""
1533
1534 # type: textblock
1535 #. type: textblock
1536 #: ../src/guestfs.pod:670
1537 msgid ""
1538 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1539 "symbolic-links/>"
1540 msgstr ""
1541
1542 # type: textblock
1543 #. type: textblock
1544 #: ../src/guestfs.pod:672
1545 msgid ""
1546 "The essential problem is that ntfs-3g simply does not have enough "
1547 "information to do a correct job.  NTFS links can contain drive letters and "
1548 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1549 "It is almost certainly the case that libguestfs callers should ignore what "
1550 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1551 msgstr ""
1552
1553 # type: textblock
1554 #. type: textblock
1555 #: ../src/guestfs.pod:679
1556 msgid ""
1557 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1558 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1559 "attribute, and read the raw reparse data from that (you can find the format "
1560 "documented in various places around the web)."
1561 msgstr ""
1562
1563 # type: =head3
1564 #. type: =head3
1565 #: ../src/guestfs.pod:684
1566 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1567 msgstr ""
1568
1569 # type: textblock
1570 #. type: textblock
1571 #: ../src/guestfs.pod:686
1572 msgid ""
1573 "There are other useful extended attributes that can be read from ntfs-3g "
1574 "filesystems (using L</guestfs_getxattr>).  See:"
1575 msgstr ""
1576
1577 # type: textblock
1578 #. type: textblock
1579 #: ../src/guestfs.pod:689
1580 msgid ""
1581 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1582 msgstr ""
1583
1584 # type: =head2
1585 #. type: =head2
1586 #: ../src/guestfs.pod:691
1587 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1588 msgstr ""
1589
1590 # type: textblock
1591 #. type: textblock
1592 #: ../src/guestfs.pod:693
1593 msgid ""
1594 "Although we don't want to discourage you from using the C API, we will "
1595 "mention here that the same API is also available in other languages."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../src/guestfs.pod:696
1600 msgid ""
1601 "The API is broadly identical in all supported languages.  This means that "
1602 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1603 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1604 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1605 "each language."
1606 msgstr ""
1607
1608 # type: textblock
1609 #. type: textblock
1610 #: ../src/guestfs.pod:702
1611 msgid ""
1612 "Error messages are automatically transformed into exceptions if the language "
1613 "supports it."
1614 msgstr ""
1615
1616 # type: textblock
1617 #. type: textblock
1618 #: ../src/guestfs.pod:705
1619 msgid ""
1620 "We don't try to \"object orientify\" parts of the API in OO languages, "
1621 "although contributors are welcome to write higher level APIs above what we "
1622 "provide in their favourite languages if they wish."
1623 msgstr ""
1624
1625 # type: =item
1626 #. type: =item
1627 #: ../src/guestfs.pod:711
1628 msgid "B<C++>"
1629 msgstr ""
1630
1631 # type: textblock
1632 #. type: textblock
1633 #: ../src/guestfs.pod:713
1634 msgid ""
1635 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1636 "identical to the C API.  C++ classes and exceptions are not used."
1637 msgstr ""
1638
1639 # type: =item
1640 #. type: =item
1641 #: ../src/guestfs.pod:717
1642 msgid "B<C#>"
1643 msgstr ""
1644
1645 # type: textblock
1646 #. type: textblock
1647 #: ../src/guestfs.pod:719
1648 msgid ""
1649 "The C# bindings are highly experimental.  Please read the warnings at the "
1650 "top of C<csharp/Libguestfs.cs>."
1651 msgstr ""
1652
1653 # type: =item
1654 #. type: =item
1655 #: ../src/guestfs.pod:722
1656 msgid "B<Haskell>"
1657 msgstr ""
1658
1659 # type: textblock
1660 #. type: textblock
1661 #: ../src/guestfs.pod:724
1662 msgid ""
1663 "This is the only language binding that is working but incomplete.  Only "
1664 "calls which return simple integers have been bound in Haskell, and we are "
1665 "looking for help to complete this binding."
1666 msgstr ""
1667
1668 # type: =item
1669 #. type: =item
1670 #: ../src/guestfs.pod:728
1671 msgid "B<Java>"
1672 msgstr ""
1673
1674 # type: textblock
1675 #. type: textblock
1676 #: ../src/guestfs.pod:730
1677 msgid ""
1678 "Full documentation is contained in the Javadoc which is distributed with "
1679 "libguestfs."
1680 msgstr ""
1681
1682 # type: =item
1683 #. type: =item
1684 #: ../src/guestfs.pod:733
1685 msgid "B<OCaml>"
1686 msgstr ""
1687
1688 #. type: textblock
1689 #: ../src/guestfs.pod:735
1690 msgid "See L<guestfs-ocaml(3)>."
1691 msgstr ""
1692
1693 # type: =item
1694 #. type: =item
1695 #: ../src/guestfs.pod:737
1696 msgid "B<Perl>"
1697 msgstr ""
1698
1699 #. type: textblock
1700 #: ../src/guestfs.pod:739
1701 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1702 msgstr ""
1703
1704 # type: =item
1705 #. type: =item
1706 #: ../src/guestfs.pod:741
1707 msgid "B<PHP>"
1708 msgstr ""
1709
1710 # type: textblock
1711 #. type: textblock
1712 #: ../src/guestfs.pod:743
1713 msgid ""
1714 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1715 "the php-libguestfs package for your distribution."
1716 msgstr ""
1717
1718 # type: textblock
1719 #. type: textblock
1720 #: ../src/guestfs.pod:746
1721 msgid "The PHP binding only works correctly on 64 bit machines."
1722 msgstr ""
1723
1724 # type: =item
1725 #. type: =item
1726 #: ../src/guestfs.pod:748
1727 msgid "B<Python>"
1728 msgstr ""
1729
1730 #. type: textblock
1731 #: ../src/guestfs.pod:750
1732 msgid "See L<guestfs-python(3)>."
1733 msgstr ""
1734
1735 # type: =item
1736 #. type: =item
1737 #: ../src/guestfs.pod:752
1738 msgid "B<Ruby>"
1739 msgstr ""
1740
1741 #. type: textblock
1742 #: ../src/guestfs.pod:754
1743 msgid "See L<guestfs-ruby(3)>."
1744 msgstr ""
1745
1746 # type: =item
1747 #. type: =item
1748 #: ../src/guestfs.pod:756
1749 msgid "B<shell scripts>"
1750 msgstr ""
1751
1752 #. type: textblock
1753 #: ../src/guestfs.pod:758
1754 msgid "See L<guestfish(1)>."
1755 msgstr ""
1756
1757 # type: =head2
1758 #. type: =head2
1759 #: ../src/guestfs.pod:762
1760 msgid "LIBGUESTFS GOTCHAS"
1761 msgstr ""
1762
1763 # type: textblock
1764 #. type: textblock
1765 #: ../src/guestfs.pod:764
1766 msgid ""
1767 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1768 "system [...] that works in the way it is documented but is counterintuitive "
1769 "and almost invites mistakes.\""
1770 msgstr ""
1771
1772 # type: textblock
1773 #. type: textblock
1774 #: ../src/guestfs.pod:768
1775 msgid ""
1776 "Since we developed libguestfs and the associated tools, there are several "
1777 "things we would have designed differently, but are now stuck with for "
1778 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1779 "release, you can expect these to change.  Beware of them."
1780 msgstr ""
1781
1782 # type: =item
1783 #. type: =item
1784 #: ../src/guestfs.pod:776
1785 msgid "Autosync / forgetting to sync."
1786 msgstr ""
1787
1788 # type: textblock
1789 #. type: textblock
1790 #: ../src/guestfs.pod:778
1791 msgid ""
1792 "When modifying a filesystem from C or another language, you B<must> unmount "
1793 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1794 "libguestfs handle.  You can also call:"
1795 msgstr ""
1796
1797 # type: verbatim
1798 #. type: verbatim
1799 #: ../src/guestfs.pod:782
1800 #, no-wrap
1801 msgid ""
1802 " guestfs_set_autosync (g, 1);\n"
1803 "\n"
1804 msgstr ""
1805
1806 # type: textblock
1807 #. type: textblock
1808 #: ../src/guestfs.pod:784
1809 msgid ""
1810 "to have the unmount/sync done automatically for you when the handle 'g' is "
1811 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1812 msgstr ""
1813
1814 # type: textblock
1815 #. type: textblock
1816 #: ../src/guestfs.pod:788
1817 msgid ""
1818 "If you forget to do this, then it is entirely possible that your changes "
1819 "won't be written out, or will be partially written, or (very rarely) that "
1820 "you'll get disk corruption."
1821 msgstr ""
1822
1823 # type: textblock
1824 #. type: textblock
1825 #: ../src/guestfs.pod:792
1826 msgid ""
1827 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1828 "guestfish scripts that forget to sync will work just fine, which can make "
1829 "this very puzzling if you are trying to debug a problem."
1830 msgstr ""
1831
1832 # type: textblock
1833 #. type: textblock
1834 #: ../src/guestfs.pod:796
1835 msgid ""
1836 "Update: Autosync is enabled by default for all API users starting from "
1837 "libguestfs 1.5.24."
1838 msgstr ""
1839
1840 # type: =item
1841 #. type: =item
1842 #: ../src/guestfs.pod:799
1843 msgid "Mount option C<-o sync> should not be the default."
1844 msgstr ""
1845
1846 # type: textblock
1847 #. type: textblock
1848 #: ../src/guestfs.pod:801
1849 msgid ""
1850 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1851 "However C<-o sync> does not add any reliability benefit, but does have a "
1852 "very large performance impact."
1853 msgstr ""
1854
1855 # type: textblock
1856 #. type: textblock
1857 #: ../src/guestfs.pod:805
1858 msgid ""
1859 "The work around is to use L</guestfs_mount_options> and set the mount "
1860 "options that you actually want to use."
1861 msgstr ""
1862
1863 # type: =item
1864 #. type: =item
1865 #: ../src/guestfs.pod:808
1866 msgid "Read-only should be the default."
1867 msgstr ""
1868
1869 # type: textblock
1870 #. type: textblock
1871 #: ../src/guestfs.pod:810
1872 msgid ""
1873 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1874 "specify I<--rw> if you want to make changes to the image."
1875 msgstr ""
1876
1877 # type: textblock
1878 #. type: textblock
1879 #: ../src/guestfs.pod:813
1880 msgid "This would reduce the potential to corrupt live VM images."
1881 msgstr ""
1882
1883 # type: textblock
1884 #. type: textblock
1885 #: ../src/guestfs.pod:815
1886 msgid ""
1887 "Note that many filesystems change the disk when you just mount and unmount, "
1888 "even if you didn't perform any writes.  You need to use L</"
1889 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1890 msgstr ""
1891
1892 # type: =item
1893 #. type: =item
1894 #: ../src/guestfs.pod:819
1895 msgid "guestfish command line is hard to use."
1896 msgstr ""
1897
1898 # type: textblock
1899 #. type: textblock
1900 #: ../src/guestfs.pod:821
1901 msgid ""
1902 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1903 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1904 "exist, so it fails.  In earlier versions of guestfish the error message was "
1905 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1906 "we should have used C<guestfish -c command> to run commands."
1907 msgstr ""
1908
1909 # type: =item
1910 #. type: =item
1911 #: ../src/guestfs.pod:828
1912 msgid "guestfish megabyte modifiers don't work right on all commands"
1913 msgstr ""
1914
1915 # type: textblock
1916 #. type: textblock
1917 #: ../src/guestfs.pod:830
1918 msgid ""
1919 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1920 "other modifiers).  What guestfish actually does is to multiply the number "
1921 "part by the modifier part and pass the result to the C API.  However this "
1922 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1923 "expecting some other unit (eg. megabytes)."
1924 msgstr ""
1925
1926 # type: textblock
1927 #. type: textblock
1928 #: ../src/guestfs.pod:837
1929 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1930 msgstr ""
1931
1932 # type: verbatim
1933 #. type: verbatim
1934 #: ../src/guestfs.pod:839
1935 #, no-wrap
1936 msgid ""
1937 " lvcreate LV VG 100M\n"
1938 "\n"
1939 msgstr ""
1940
1941 # type: textblock
1942 #. type: textblock
1943 #: ../src/guestfs.pod:841
1944 msgid ""
1945 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1946 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1947 "megabytes * megabytes) logical volume.  The error message you get from this "
1948 "is also a little obscure."
1949 msgstr ""
1950
1951 # type: textblock
1952 #. type: textblock
1953 #: ../src/guestfs.pod:846
1954 msgid ""
1955 "This could be fixed in the generator by specially marking parameters and "
1956 "return values which take bytes or other units."
1957 msgstr ""
1958
1959 # type: =item
1960 #. type: =item
1961 #: ../src/guestfs.pod:849
1962 msgid "Ambiguity between devices and paths"
1963 msgstr ""
1964
1965 # type: textblock
1966 #. type: textblock
1967 #: ../src/guestfs.pod:851
1968 msgid ""
1969 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1970 "sdb2>) and a similar pathname.  A file might just happen to be called "
1971 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1972 msgstr ""
1973
1974 # type: textblock
1975 #. type: textblock
1976 #: ../src/guestfs.pod:856
1977 msgid ""
1978 "In the current API we usually resolve this ambiguity by having two separate "
1979 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1980 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1981 "detecting if the path supplied begins with C</dev/>."
1982 msgstr ""
1983
1984 # type: textblock
1985 #. type: textblock
1986 #: ../src/guestfs.pod:862
1987 msgid ""
1988 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1989 "make paths/devices into structured names.  One way to do this would be to "
1990 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1991 "aspect of grub.  Another way would be to use a structured type, equivalent "
1992 "to this OCaml type:"
1993 msgstr ""
1994
1995 # type: verbatim
1996 #. type: verbatim
1997 #: ../src/guestfs.pod:868
1998 #, no-wrap
1999 msgid ""
2000 " type path = Path of string | Device of int | Partition of int * int\n"
2001 "\n"
2002 msgstr ""
2003
2004 # type: textblock
2005 #. type: textblock
2006 #: ../src/guestfs.pod:870
2007 msgid "which would allow you to pass arguments like:"
2008 msgstr ""
2009
2010 # type: verbatim
2011 #. type: verbatim
2012 #: ../src/guestfs.pod:872
2013 #, no-wrap
2014 msgid ""
2015 " Path \"/foo/bar\"\n"
2016 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2017 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2018 " Path \"/dev/sdb2\"    (* not a device *)\n"
2019 "\n"
2020 msgstr ""
2021
2022 # type: textblock
2023 #. type: textblock
2024 #: ../src/guestfs.pod:877
2025 msgid ""
2026 "As you can see there are still problems to resolve even with this "
2027 "representation.  Also consider how it might work in guestfish."
2028 msgstr ""
2029
2030 # type: =head2
2031 #. type: =head2
2032 #: ../src/guestfs.pod:882
2033 msgid "PROTOCOL LIMITS"
2034 msgstr ""
2035
2036 # type: textblock
2037 #. type: textblock
2038 #: ../src/guestfs.pod:884
2039 msgid ""
2040 "Internally libguestfs uses a message-based protocol to pass API calls and "
2041 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
2042 "plenty more detail about this).  The maximum message size used by the "
2043 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
2044 "aware of this limit.  The API calls which may be affected are individually "
2045 "documented, with a link back to this section of the documentation."
2046 msgstr ""
2047
2048 # type: textblock
2049 #. type: textblock
2050 #: ../src/guestfs.pod:892
2051 msgid ""
2052 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
2053 "a simple string.  Because this string is at some point internally encoded as "
2054 "a message, the maximum size that it can return is slightly under 4 MB.  If "
2055 "the requested file is larger than this then you will get an error."
2056 msgstr ""
2057
2058 # type: textblock
2059 #. type: textblock
2060 #: ../src/guestfs.pod:898
2061 msgid ""
2062 "In order to transfer large files into and out of the guest filesystem, you "
2063 "need to use particular calls that support this.  The sections L</UPLOADING> "
2064 "and L</DOWNLOADING> document how to do this."
2065 msgstr ""
2066
2067 # type: textblock
2068 #. type: textblock
2069 #: ../src/guestfs.pod:902
2070 msgid ""
2071 "You might also consider mounting the disk image using our FUSE filesystem "
2072 "support (L<guestmount(1)>)."
2073 msgstr ""
2074
2075 # type: =head2
2076 #. type: =head2
2077 #: ../src/guestfs.pod:905
2078 msgid "KEYS AND PASSPHRASES"
2079 msgstr ""
2080
2081 # type: textblock
2082 #. type: textblock
2083 #: ../src/guestfs.pod:907
2084 msgid ""
2085 "Certain libguestfs calls take a parameter that contains sensitive key "
2086 "material, passed in as a C string."
2087 msgstr ""
2088
2089 # type: textblock
2090 #. type: textblock
2091 #: ../src/guestfs.pod:910
2092 msgid ""
2093 "In the future we would hope to change the libguestfs implementation so that "
2094 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2095 "swap.  However this is I<not> done at the moment, because of the complexity "
2096 "of such an implementation."
2097 msgstr ""
2098
2099 # type: textblock
2100 #. type: textblock
2101 #: ../src/guestfs.pod:915
2102 msgid ""
2103 "Therefore you should be aware that any key parameter you pass to libguestfs "
2104 "might end up being written out to the swap partition.  If this is a concern, "
2105 "scrub the swap partition or don't use libguestfs on encrypted devices."
2106 msgstr ""
2107
2108 # type: =head1
2109 #. type: =head2
2110 #: ../src/guestfs.pod:920
2111 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2112 msgstr ""
2113
2114 # type: textblock
2115 #. type: textblock
2116 #: ../src/guestfs.pod:922
2117 msgid ""
2118 "All high-level libguestfs actions are synchronous.  If you want to use "
2119 "libguestfs asynchronously then you must create a thread."
2120 msgstr ""
2121
2122 # type: textblock
2123 #. type: textblock
2124 #: ../src/guestfs.pod:925
2125 msgid ""
2126 "Only use the handle from a single thread.  Either use the handle exclusively "
2127 "from one thread, or provide your own mutex so that two threads cannot issue "
2128 "calls on the same handle at the same time."
2129 msgstr ""
2130
2131 # type: textblock
2132 #. type: textblock
2133 #: ../src/guestfs.pod:929
2134 msgid ""
2135 "See the graphical program guestfs-browser for one possible architecture for "
2136 "multithreaded programs using libvirt and libguestfs."
2137 msgstr ""
2138
2139 # type: =head1
2140 #. type: =head2
2141 #: ../src/guestfs.pod:932
2142 msgid "PATH"
2143 msgstr ""
2144
2145 #. type: textblock
2146 #: ../src/guestfs.pod:934
2147 msgid ""
2148 "Libguestfs needs a supermin appliance, which it finds by looking along an "
2149 "internal path."
2150 msgstr ""
2151
2152 # type: textblock
2153 #. type: textblock
2154 #: ../src/guestfs.pod:937
2155 msgid ""
2156 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2157 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2158 msgstr ""
2159
2160 # type: textblock
2161 #. type: textblock
2162 #: ../src/guestfs.pod:940
2163 msgid ""
2164 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2165 "to change the directories that libguestfs will search in.  The value is a "
2166 "colon-separated list of paths.  The current directory is I<not> searched "
2167 "unless the path contains an empty element or C<.>.  For example "
2168 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2169 "then C</usr/lib/guestfs>."
2170 msgstr ""
2171
2172 # type: =head1
2173 #. type: =head2
2174 #: ../src/guestfs.pod:947
2175 msgid "QEMU WRAPPERS"
2176 msgstr ""
2177
2178 # type: textblock
2179 #. type: textblock
2180 #: ../src/guestfs.pod:949
2181 msgid ""
2182 "If you want to compile your own qemu, run qemu from a non-standard location, "
2183 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2184 "around qemu."
2185 msgstr ""
2186
2187 # type: textblock
2188 #. type: textblock
2189 #: ../src/guestfs.pod:953
2190 msgid ""
2191 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2192 "last command in the shell script (so that qemu replaces the shell and "
2193 "becomes the direct child of the libguestfs-using program).  If you don't do "
2194 "this, then the qemu process won't be cleaned up correctly."
2195 msgstr ""
2196
2197 # type: textblock
2198 #. type: textblock
2199 #: ../src/guestfs.pod:958
2200 msgid ""
2201 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2202 "source:"
2203 msgstr ""
2204
2205 # type: verbatim
2206 #. type: verbatim
2207 #: ../src/guestfs.pod:961
2208 #, no-wrap
2209 msgid ""
2210 " #!/bin/sh -\n"
2211 " qemudir=/home/rjones/d/qemu\n"
2212 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2213 "\n"
2214 msgstr ""
2215
2216 # type: textblock
2217 #. type: textblock
2218 #: ../src/guestfs.pod:965
2219 msgid ""
2220 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2221 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2222 "example:"
2223 msgstr ""
2224
2225 # type: verbatim
2226 #. type: verbatim
2227 #: ../src/guestfs.pod:969
2228 #, no-wrap
2229 msgid ""
2230 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2231 "\n"
2232 msgstr ""
2233
2234 # type: textblock
2235 #. type: textblock
2236 #: ../src/guestfs.pod:971
2237 msgid ""
2238 "Note that libguestfs also calls qemu with the -help and -version options in "
2239 "order to determine features."
2240 msgstr ""
2241
2242 #. type: =head2
2243 #: ../src/guestfs.pod:974
2244 msgid "ATTACHING TO RUNNING DAEMONS"
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../src/guestfs.pod:976
2249 msgid ""
2250 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2251 "babies.  Use with caution."
2252 msgstr ""
2253
2254 #. type: textblock
2255 #: ../src/guestfs.pod:979
2256 msgid ""
2257 "I<Note (2):> This section explains how to attach to a running daemon from a "
2258 "low level perspective.  For most users, simply using virt tools such as "
2259 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2260 msgstr ""
2261
2262 #. type: =head3
2263 #: ../src/guestfs.pod:983
2264 msgid "Using guestfs_set_attach_method"
2265 msgstr ""
2266
2267 #. type: textblock
2268 #: ../src/guestfs.pod:985
2269 msgid ""
2270 "By calling L</guestfs_set_attach_method> you can change how the library "
2271 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2272 "ARCHITECTURE> for some background)."
2273 msgstr ""
2274
2275 #. type: textblock
2276 #: ../src/guestfs.pod:989
2277 msgid ""
2278 "The normal attach method is C<appliance>, where a small appliance is created "
2279 "containing the daemon, and then the library connects to this."
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../src/guestfs.pod:992
2284 msgid ""
2285 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2286 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2287 "daemon over the Unix domain socket."
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../src/guestfs.pod:996
2292 msgid ""
2293 "The normal use for this is to connect to a running virtual machine that "
2294 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2295 "files inside the live virtual machine."
2296 msgstr ""
2297
2298 #. type: =head3
2299 #: ../src/guestfs.pod:1000
2300 msgid "Using guestfs_add_domain with live flag"
2301 msgstr ""
2302
2303 #. type: textblock
2304 #: ../src/guestfs.pod:1002
2305 msgid ""
2306 "L</guestfs_add_domain> provides some help for getting the correct attach "
2307 "method.  If you pass the C<live> option to this function, then (if the "
2308 "virtual machine is running) it will examine the libvirt XML looking for a "
2309 "virtio-serial channel to connect to:"
2310 msgstr ""
2311
2312 #. type: verbatim
2313 #: ../src/guestfs.pod:1008
2314 #, no-wrap
2315 msgid ""
2316 " <domain>\n"
2317 "   ...\n"
2318 "   <devices>\n"
2319 "     ...\n"
2320 "     <channel type='unix'>\n"
2321 "       <source mode='bind' path='/path/to/socket'/>\n"
2322 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2323 "     </channel>\n"
2324 "     ...\n"
2325 "   </devices>\n"
2326 " </domain>\n"
2327 "\n"
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../src/guestfs.pod:1020
2332 msgid ""
2333 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2334 "method to C<unix:/path/to/socket>."
2335 msgstr ""
2336
2337 #. type: textblock
2338 #: ../src/guestfs.pod:1023
2339 msgid ""
2340 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2341 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2342 "to attach to and modify live virtual machines."
2343 msgstr ""
2344
2345 #. type: textblock
2346 #: ../src/guestfs.pod:1027
2347 msgid ""
2348 "The virtual machine needs to have been set up beforehand so that it has the "
2349 "virtio-serial channel and so that guestfsd is running inside it."
2350 msgstr ""
2351
2352 # type: =head2
2353 #. type: =head2
2354 #: ../src/guestfs.pod:1031
2355 msgid "ABI GUARANTEE"
2356 msgstr ""
2357
2358 # type: textblock
2359 #. type: textblock
2360 #: ../src/guestfs.pod:1033
2361 msgid ""
2362 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2363 "actions as outlined in this section.  Although we will deprecate some "
2364 "actions, for example if they get replaced by newer calls, we will keep the "
2365 "old actions forever.  This allows you the developer to program in confidence "
2366 "against the libguestfs API."
2367 msgstr ""
2368
2369 # type: =head1
2370 #. type: =head2
2371 #: ../src/guestfs.pod:1039
2372 msgid "BLOCK DEVICE NAMING"
2373 msgstr ""
2374
2375 # type: textblock
2376 #. type: textblock
2377 #: ../src/guestfs.pod:1041
2378 msgid ""
2379 "In the kernel there is now quite a profusion of schemata for naming block "
2380 "devices (in this context, by I<block device> I mean a physical or virtual "
2381 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2382 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2383 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2384 "for the old IDE driver (particularly for SATA devices) those devices also "
2385 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2386 "paravirtualized drivers.  This has created several different naming systems, "
2387 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2388 msgstr ""
2389
2390 # type: textblock
2391 #. type: textblock
2392 #: ../src/guestfs.pod:1053
2393 msgid ""
2394 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2395 "Linux kernel to access block devices.  We can run a variety of appliances "
2396 "based on a variety of Linux kernels."
2397 msgstr ""
2398
2399 # type: textblock
2400 #. type: textblock
2401 #: ../src/guestfs.pod:1057
2402 msgid ""
2403 "This causes a problem for libguestfs because many API calls use device or "
2404 "partition names.  Working scripts and the recipe (example) scripts that we "
2405 "make available over the internet could fail if the naming scheme changes."
2406 msgstr ""
2407
2408 # type: textblock
2409 #. type: textblock
2410 #: ../src/guestfs.pod:1062
2411 msgid ""
2412 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2413 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2414 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2415 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2416 msgstr ""
2417
2418 # type: textblock
2419 #. type: textblock
2420 #: ../src/guestfs.pod:1068
2421 msgid ""
2422 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2423 "L</guestfs_list_partitions> and similar calls return the true names of the "
2424 "devices and partitions as known to the appliance."
2425 msgstr ""
2426
2427 # type: =head2
2428 #. type: =head3
2429 #: ../src/guestfs.pod:1073
2430 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2431 msgstr ""
2432
2433 # type: textblock
2434 #. type: textblock
2435 #: ../src/guestfs.pod:1075
2436 msgid ""
2437 "Usually this translation is transparent.  However in some (very rare)  cases "
2438 "you may need to know the exact algorithm.  Such cases include where you use "
2439 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2440 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2441 msgstr ""
2442
2443 # type: textblock
2444 #. type: textblock
2445 #: ../src/guestfs.pod:1081
2446 msgid ""
2447 "The algorithm is applied only to I<parameters> which are known to be either "
2448 "device or partition names.  Return values from functions such as L</"
2449 "guestfs_list_devices> are never changed."
2450 msgstr ""
2451
2452 # type: textblock
2453 #. type: textblock
2454 #: ../src/guestfs.pod:1089
2455 msgid "Is the string a parameter which is a device or partition name?"
2456 msgstr ""
2457
2458 # type: textblock
2459 #. type: textblock
2460 #: ../src/guestfs.pod:1093
2461 msgid "Does the string begin with C</dev/sd>?"
2462 msgstr ""
2463
2464 # type: textblock
2465 #. type: textblock
2466 #: ../src/guestfs.pod:1097
2467 msgid ""
2468 "Does the named device exist? If so, we use that device.  However if I<not> "
2469 "then we continue with this algorithm."
2470 msgstr ""
2471
2472 # type: textblock
2473 #. type: textblock
2474 #: ../src/guestfs.pod:1102
2475 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2476 msgstr ""
2477
2478 # type: textblock
2479 #. type: textblock
2480 #: ../src/guestfs.pod:1104
2481 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2482 msgstr ""
2483
2484 # type: textblock
2485 #. type: textblock
2486 #: ../src/guestfs.pod:1106
2487 msgid "If that named device exists, use it.  If not, continue."
2488 msgstr ""
2489
2490 # type: textblock
2491 #. type: textblock
2492 #: ../src/guestfs.pod:1110
2493 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2494 msgstr ""
2495
2496 # type: textblock
2497 #. type: textblock
2498 #: ../src/guestfs.pod:1112
2499 msgid "If that named device exists, use it.  If not, return an error."
2500 msgstr ""
2501
2502 # type: =head3
2503 #. type: =head3
2504 #: ../src/guestfs.pod:1116
2505 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2506 msgstr ""
2507
2508 # type: textblock
2509 #. type: textblock
2510 #: ../src/guestfs.pod:1118
2511 msgid ""
2512 "Although the standard naming scheme and automatic translation is useful for "
2513 "simple programs and guestfish scripts, for larger programs it is best not to "
2514 "rely on this mechanism."
2515 msgstr ""
2516
2517 # type: textblock
2518 #. type: textblock
2519 #: ../src/guestfs.pod:1122
2520 msgid ""
2521 "Where possible for maximum future portability programs using libguestfs "
2522 "should use these future-proof techniques:"
2523 msgstr ""
2524
2525 # type: textblock
2526 #. type: textblock
2527 #: ../src/guestfs.pod:1129
2528 msgid ""
2529 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2530 "device names, and then use those names directly."
2531 msgstr ""
2532
2533 # type: textblock
2534 #. type: textblock
2535 #: ../src/guestfs.pod:1132
2536 msgid ""
2537 "Since those device names exist by definition, they will never be translated."
2538 msgstr ""
2539
2540 # type: textblock
2541 #. type: textblock
2542 #: ../src/guestfs.pod:1137
2543 msgid ""
2544 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2545 "filesystem labels."
2546 msgstr ""
2547
2548 # type: =head1
2549 #. type: =head1
2550 #: ../src/guestfs.pod:1142
2551 msgid "SECURITY"
2552 msgstr ""
2553
2554 # type: textblock
2555 #. type: textblock
2556 #: ../src/guestfs.pod:1144
2557 msgid ""
2558 "This section discusses security implications of using libguestfs, "
2559 "particularly with untrusted or malicious guests or disk images."
2560 msgstr ""
2561
2562 # type: =head2
2563 #. type: =head2
2564 #: ../src/guestfs.pod:1147
2565 msgid "GENERAL SECURITY CONSIDERATIONS"
2566 msgstr ""
2567
2568 # type: textblock
2569 #. type: textblock
2570 #: ../src/guestfs.pod:1149
2571 msgid ""
2572 "Be careful with any files or data that you download from a guest (by "
2573 "\"download\" we mean not just the L</guestfs_download> command but any "
2574 "command that reads files, filenames, directories or anything else from a "
2575 "disk image).  An attacker could manipulate the data to fool your program "
2576 "into doing the wrong thing.  Consider cases such as:"
2577 msgstr ""
2578
2579 # type: textblock
2580 #. type: textblock
2581 #: ../src/guestfs.pod:1159
2582 msgid "the data (file etc) not being present"
2583 msgstr ""
2584
2585 # type: textblock
2586 #. type: textblock
2587 #: ../src/guestfs.pod:1163
2588 msgid "being present but empty"
2589 msgstr ""
2590
2591 # type: textblock
2592 #. type: textblock
2593 #: ../src/guestfs.pod:1167
2594 msgid "being much larger than normal"
2595 msgstr ""
2596
2597 # type: textblock
2598 #. type: textblock
2599 #: ../src/guestfs.pod:1171
2600 msgid "containing arbitrary 8 bit data"
2601 msgstr ""
2602
2603 # type: textblock
2604 #. type: textblock
2605 #: ../src/guestfs.pod:1175
2606 msgid "being in an unexpected character encoding"
2607 msgstr ""
2608
2609 # type: textblock
2610 #. type: textblock
2611 #: ../src/guestfs.pod:1179
2612 msgid "containing homoglyphs."
2613 msgstr ""
2614
2615 # type: =head2
2616 #. type: =head2
2617 #: ../src/guestfs.pod:1183
2618 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2619 msgstr ""
2620
2621 # type: textblock
2622 #. type: textblock
2623 #: ../src/guestfs.pod:1185
2624 msgid ""
2625 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2626 "(VFS) module can sometimes be escalated into exploits by deliberately "
2627 "creating a malicious, malformed filesystem.  These exploits are very severe "
2628 "for two reasons.  Firstly there are very many filesystem drivers in the "
2629 "kernel, and many of them are infrequently used and not much developer "
2630 "attention has been paid to the code.  Linux userspace helps potential "
2631 "crackers by detecting the filesystem type and automatically choosing the "
2632 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2633 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2634 "exploit (worse in some ways), giving immediate and total access to the "
2635 "system right down to the hardware level."
2636 msgstr ""
2637
2638 # type: textblock
2639 #. type: textblock
2640 #: ../src/guestfs.pod:1198
2641 msgid ""
2642 "That explains why you should never mount a filesystem from an untrusted "
2643 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2644 "inside a qemu virtual machine, usually running as a non-root user.  The "
2645 "attacker would need to write a filesystem which first exploited the kernel, "
2646 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2647 "the libguestfs protocol, and finally to be as serious as the host kernel "
2648 "exploit it would need to escalate its privileges to root.  This multi-step "
2649 "escalation, performed by a static piece of data, is thought to be extremely "
2650 "hard to do, although we never say 'never' about security issues."
2651 msgstr ""
2652
2653 # type: textblock
2654 #. type: textblock
2655 #: ../src/guestfs.pod:1209
2656 msgid ""
2657 "In any case callers can reduce the attack surface by forcing the filesystem "
2658 "type when mounting (use L</guestfs_mount_vfs>)."
2659 msgstr ""
2660
2661 # type: =head2
2662 #. type: =head2
2663 #: ../src/guestfs.pod:1212
2664 msgid "PROTOCOL SECURITY"
2665 msgstr ""
2666
2667 # type: textblock
2668 #. type: textblock
2669 #: ../src/guestfs.pod:1214
2670 msgid ""
2671 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2672 "defined upper message size.  However a program that uses libguestfs must "
2673 "also take care - for example you can write a program that downloads a binary "
2674 "from a disk image and executes it locally, and no amount of protocol "
2675 "security will save you from the consequences."
2676 msgstr ""
2677
2678 # type: =head2
2679 #. type: =head2
2680 #: ../src/guestfs.pod:1220
2681 msgid "INSPECTION SECURITY"
2682 msgstr ""
2683
2684 # type: textblock
2685 #. type: textblock
2686 #: ../src/guestfs.pod:1222
2687 msgid ""
2688 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2689 "directly from the guest, and these could contain any 8 bit data.  Callers "
2690 "should be careful to escape these before printing them to a structured file "
2691 "(for example, use HTML escaping if creating a web page)."
2692 msgstr ""
2693
2694 # type: textblock
2695 #. type: textblock
2696 #: ../src/guestfs.pod:1228
2697 msgid ""
2698 "Guest configuration may be altered in unusual ways by the administrator of "
2699 "the virtual machine, and may not reflect reality (particularly for untrusted "
2700 "or actively malicious guests).  For example we parse the hostname from "
2701 "configuration files like C</etc/sysconfig/network> that we find in the "
2702 "guest, but the guest administrator can easily manipulate these files to "
2703 "provide the wrong hostname."
2704 msgstr ""
2705
2706 # type: textblock
2707 #. type: textblock
2708 #: ../src/guestfs.pod:1236
2709 msgid ""
2710 "The inspection API parses guest configuration using two external libraries: "
2711 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2712 "designed to be robust in the face of malicious data, although denial of "
2713 "service attacks are still possible, for example with oversized configuration "
2714 "files."
2715 msgstr ""
2716
2717 # type: =head2
2718 #. type: =head2
2719 #: ../src/guestfs.pod:1242
2720 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2721 msgstr ""
2722
2723 # type: textblock
2724 #. type: textblock
2725 #: ../src/guestfs.pod:1244
2726 msgid ""
2727 "Be very cautious about running commands from the guest.  By running a "
2728 "command in the guest, you are giving CPU time to a binary that you do not "
2729 "control, under the same user account as the library, albeit wrapped in qemu "
2730 "virtualization.  More information and alternatives can be found in the "
2731 "section L</RUNNING COMMANDS>."
2732 msgstr ""
2733
2734 # type: =head2
2735 #. type: =head2
2736 #: ../src/guestfs.pod:1250
2737 msgid "CVE-2010-3851"
2738 msgstr ""
2739
2740 # type: textblock
2741 #. type: textblock
2742 #: ../src/guestfs.pod:1252
2743 msgid "https://bugzilla.redhat.com/642934"
2744 msgstr ""
2745
2746 # type: textblock
2747 #. type: textblock
2748 #: ../src/guestfs.pod:1254
2749 msgid ""
2750 "This security bug concerns the automatic disk format detection that qemu "
2751 "does on disk images."
2752 msgstr ""
2753
2754 # type: textblock
2755 #. type: textblock
2756 #: ../src/guestfs.pod:1257
2757 msgid ""
2758 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2759 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2760 "for one of the known headers, and if none is found then assuming the disk "
2761 "image must be raw."
2762 msgstr ""
2763
2764 # type: textblock
2765 #. type: textblock
2766 #: ../src/guestfs.pod:1262
2767 msgid ""
2768 "This allows a guest which has been given a raw disk image to write some "
2769 "other header.  At next boot (or when the disk image is accessed by "
2770 "libguestfs) qemu would do autodetection and think the disk image format was, "
2771 "say, qcow2 based on the header written by the guest."
2772 msgstr ""
2773
2774 # type: textblock
2775 #. type: textblock
2776 #: ../src/guestfs.pod:1267
2777 msgid ""
2778 "This in itself would not be a problem, but qcow2 offers many features, one "
2779 "of which is to allow a disk image to refer to another image (called the "
2780 "\"backing disk\").  It does this by placing the path to the backing disk "
2781 "into the qcow2 header.  This path is not validated and could point to any "
2782 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2783 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2784 "control of the attacker."
2785 msgstr ""
2786
2787 # type: textblock
2788 #. type: textblock
2789 #: ../src/guestfs.pod:1275
2790 msgid ""
2791 "In libguestfs this is rather hard to exploit except under two circumstances:"
2792 msgstr ""
2793
2794 # type: textblock
2795 #. type: textblock
2796 #: ../src/guestfs.pod:1282
2797 msgid "You have enabled the network or have opened the disk in write mode."
2798 msgstr ""
2799
2800 # type: textblock
2801 #. type: textblock
2802 #: ../src/guestfs.pod:1286
2803 msgid ""
2804 "You are also running untrusted code from the guest (see L</RUNNING "
2805 "COMMANDS>)."
2806 msgstr ""
2807
2808 # type: textblock
2809 #. type: textblock
2810 #: ../src/guestfs.pod:1291
2811 msgid ""
2812 "The way to avoid this is to specify the expected disk format when adding "
2813 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2814 "should always do this if the disk is raw format, and it's a good idea for "
2815 "other cases too."
2816 msgstr ""
2817
2818 # type: textblock
2819 #. type: textblock
2820 #: ../src/guestfs.pod:1296
2821 msgid ""
2822 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2823 "format is fetched from libvirt and passed through."
2824 msgstr ""
2825
2826 # type: textblock
2827 #. type: textblock
2828 #: ../src/guestfs.pod:1299
2829 msgid ""
2830 "For libguestfs tools, use the I<--format> command line parameter as "
2831 "appropriate."
2832 msgstr ""
2833
2834 # type: =head1
2835 #. type: =head1
2836 #: ../src/guestfs.pod:1302
2837 msgid "CONNECTION MANAGEMENT"
2838 msgstr ""
2839
2840 # type: =head2
2841 #. type: =head2
2842 #: ../src/guestfs.pod:1304
2843 msgid "guestfs_h *"
2844 msgstr ""
2845
2846 # type: textblock
2847 #. type: textblock
2848 #: ../src/guestfs.pod:1306
2849 msgid ""
2850 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2851 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2852 "handle and release all resources used."
2853 msgstr ""
2854
2855 # type: textblock
2856 #. type: textblock
2857 #: ../src/guestfs.pod:1310
2858 msgid ""
2859 "For information on using multiple handles and threads, see the section L</"
2860 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2861 msgstr ""
2862
2863 # type: =head2
2864 #. type: =head2
2865 #: ../src/guestfs.pod:1313
2866 msgid "guestfs_create"
2867 msgstr ""
2868
2869 # type: verbatim
2870 #. type: verbatim
2871 #: ../src/guestfs.pod:1315
2872 #, no-wrap
2873 msgid ""
2874 " guestfs_h *guestfs_create (void);\n"
2875 "\n"
2876 msgstr ""
2877
2878 # type: textblock
2879 #. type: textblock
2880 #: ../src/guestfs.pod:1317
2881 msgid "Create a connection handle."
2882 msgstr ""
2883
2884 # type: textblock
2885 #. type: textblock
2886 #: ../src/guestfs.pod:1319
2887 msgid ""
2888 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2889 "on the handle at least once."
2890 msgstr ""
2891
2892 # type: textblock
2893 #. type: textblock
2894 #: ../src/guestfs.pod:1322
2895 msgid ""
2896 "This function returns a non-NULL pointer to a handle on success or NULL on "
2897 "error."
2898 msgstr ""
2899
2900 # type: textblock
2901 #. type: textblock
2902 #: ../src/guestfs.pod:1325
2903 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2904 msgstr ""
2905
2906 # type: textblock
2907 #. type: textblock
2908 #: ../src/guestfs.pod:1327
2909 msgid ""
2910 "You may also want to configure error handling for the handle.  See L</ERROR "
2911 "HANDLING> section below."
2912 msgstr ""
2913
2914 # type: =head2
2915 #. type: =head2
2916 #: ../src/guestfs.pod:1330
2917 msgid "guestfs_close"
2918 msgstr ""
2919
2920 # type: verbatim
2921 #. type: verbatim
2922 #: ../src/guestfs.pod:1332
2923 #, no-wrap
2924 msgid ""
2925 " void guestfs_close (guestfs_h *g);\n"
2926 "\n"
2927 msgstr ""
2928
2929 # type: textblock
2930 #. type: textblock
2931 #: ../src/guestfs.pod:1334
2932 msgid "This closes the connection handle and frees up all resources used."
2933 msgstr ""
2934
2935 # type: =head1
2936 #. type: =head1
2937 #: ../src/guestfs.pod:1336
2938 msgid "ERROR HANDLING"
2939 msgstr ""
2940
2941 # type: textblock
2942 #. type: textblock
2943 #: ../src/guestfs.pod:1338
2944 msgid ""
2945 "API functions can return errors.  For example, almost all functions that "
2946 "return C<int> will return C<-1> to indicate an error."
2947 msgstr ""
2948
2949 # type: textblock
2950 #. type: textblock
2951 #: ../src/guestfs.pod:1341
2952 msgid ""
2953 "Additional information is available for errors: an error message string and "
2954 "optionally an error number (errno) if the thing that failed was a system "
2955 "call."
2956 msgstr ""
2957
2958 # type: textblock
2959 #. type: textblock
2960 #: ../src/guestfs.pod:1345
2961 msgid ""
2962 "You can get at the additional information about the last error on the handle "
2963 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2964 "up an error handler with L</guestfs_set_error_handler>."
2965 msgstr ""
2966
2967 # type: textblock
2968 #. type: textblock
2969 #: ../src/guestfs.pod:1350
2970 msgid ""
2971 "When the handle is created, a default error handler is installed which "
2972 "prints the error message string to C<stderr>.  For small short-running "
2973 "command line programs it is sufficient to do:"
2974 msgstr ""
2975
2976 # type: verbatim
2977 #. type: verbatim
2978 #: ../src/guestfs.pod:1354
2979 #, no-wrap
2980 msgid ""
2981 " if (guestfs_launch (g) == -1)\n"
2982 "   exit (EXIT_FAILURE);\n"
2983 "\n"
2984 msgstr ""
2985
2986 # type: textblock
2987 #. type: textblock
2988 #: ../src/guestfs.pod:1357
2989 msgid ""
2990 "since the default error handler will ensure that an error message has been "
2991 "printed to C<stderr> before the program exits."
2992 msgstr ""
2993
2994 # type: textblock
2995 #. type: textblock
2996 #: ../src/guestfs.pod:1360
2997 msgid ""
2998 "For other programs the caller will almost certainly want to install an "
2999 "alternate error handler or do error handling in-line like this:"
3000 msgstr ""
3001
3002 # type: verbatim
3003 #. type: verbatim
3004 #: ../src/guestfs.pod:1363
3005 #, no-wrap
3006 msgid ""
3007 " g = guestfs_create ();\n"
3008 " \n"
3009 msgstr ""
3010
3011 # type: verbatim
3012 #. type: verbatim
3013 #: ../src/guestfs.pod:1365
3014 #, no-wrap
3015 msgid ""
3016 " /* This disables the default behaviour of printing errors\n"
3017 "    on stderr. */\n"
3018 " guestfs_set_error_handler (g, NULL, NULL);\n"
3019 " \n"
3020 msgstr ""
3021
3022 # type: verbatim
3023 #. type: verbatim
3024 #: ../src/guestfs.pod:1369
3025 #, no-wrap
3026 msgid ""
3027 " if (guestfs_launch (g) == -1) {\n"
3028 "   /* Examine the error message and print it etc. */\n"
3029 "   char *msg = guestfs_last_error (g);\n"
3030 "   int errnum = guestfs_last_errno (g);\n"
3031 "   fprintf (stderr, \"%s\\n\", msg);\n"
3032 "   /* ... */\n"
3033 "  }\n"
3034 "\n"
3035 msgstr ""
3036
3037 # type: textblock
3038 #. type: textblock
3039 #: ../src/guestfs.pod:1377
3040 msgid ""
3041 "Out of memory errors are handled differently.  The default action is to call "
3042 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3043 "guestfs_set_out_of_memory_handler>."
3044 msgstr ""
3045
3046 # type: textblock
3047 #. type: textblock
3048 #: ../src/guestfs.pod:1381
3049 msgid ""
3050 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3051 "because there is no handle if this happens there is no way to get additional "
3052 "error information.  However L</guestfs_create> is supposed to be a "
3053 "lightweight operation which can only fail because of insufficient memory (it "
3054 "returns NULL in this case)."
3055 msgstr ""
3056
3057 # type: =head2
3058 #. type: =head2
3059 #: ../src/guestfs.pod:1387
3060 msgid "guestfs_last_error"
3061 msgstr ""
3062
3063 # type: verbatim
3064 #. type: verbatim
3065 #: ../src/guestfs.pod:1389
3066 #, no-wrap
3067 msgid ""
3068 " const char *guestfs_last_error (guestfs_h *g);\n"
3069 "\n"
3070 msgstr ""
3071
3072 # type: textblock
3073 #. type: textblock
3074 #: ../src/guestfs.pod:1391
3075 msgid ""
3076 "This returns the last error message that happened on C<g>.  If there has not "
3077 "been an error since the handle was created, then this returns C<NULL>."
3078 msgstr ""
3079
3080 # type: textblock
3081 #. type: textblock
3082 #: ../src/guestfs.pod:1395
3083 msgid ""
3084 "The lifetime of the returned string is until the next error occurs, or L</"
3085 "guestfs_close> is called."
3086 msgstr ""
3087
3088 # type: =head2
3089 #. type: =head2
3090 #: ../src/guestfs.pod:1398
3091 msgid "guestfs_last_errno"
3092 msgstr ""
3093
3094 # type: verbatim
3095 #. type: verbatim
3096 #: ../src/guestfs.pod:1400
3097 #, no-wrap
3098 msgid ""
3099 " int guestfs_last_errno (guestfs_h *g);\n"
3100 "\n"
3101 msgstr ""
3102
3103 # type: textblock
3104 #. type: textblock
3105 #: ../src/guestfs.pod:1402
3106 msgid "This returns the last error number (errno) that happened on C<g>."
3107 msgstr ""
3108
3109 # type: textblock
3110 #. type: textblock
3111 #: ../src/guestfs.pod:1404
3112 msgid "If successful, an errno integer not equal to zero is returned."
3113 msgstr ""
3114
3115 # type: textblock
3116 #. type: textblock
3117 #: ../src/guestfs.pod:1406
3118 msgid ""
3119 "If no error, this returns 0.  This call can return 0 in three situations:"
3120 msgstr ""
3121
3122 # type: textblock
3123 #. type: textblock
3124 #: ../src/guestfs.pod:1413
3125 msgid "There has not been any error on the handle."
3126 msgstr ""
3127
3128 # type: textblock
3129 #. type: textblock
3130 #: ../src/guestfs.pod:1417
3131 msgid ""
3132 "There has been an error but the errno was meaningless.  This corresponds to "
3133 "the case where the error did not come from a failed system call, but for "
3134 "some other reason."
3135 msgstr ""
3136
3137 # type: textblock
3138 #. type: textblock
3139 #: ../src/guestfs.pod:1423
3140 msgid ""
3141 "There was an error from a failed system call, but for some reason the errno "
3142 "was not captured and returned.  This usually indicates a bug in libguestfs."
3143 msgstr ""
3144
3145 # type: textblock
3146 #. type: textblock
3147 #: ../src/guestfs.pod:1429
3148 msgid ""
3149 "Libguestfs tries to convert the errno from inside the applicance into a "
3150 "corresponding errno for the caller (not entirely trivial: the appliance "
3151 "might be running a completely different operating system from the library "
3152 "and error numbers are not standardized across Un*xen).  If this could not be "
3153 "done, then the error is translated to C<EINVAL>.  In practice this should "
3154 "only happen in very rare circumstances."
3155 msgstr ""
3156
3157 # type: =head2
3158 #. type: =head2
3159 #: ../src/guestfs.pod:1437
3160 msgid "guestfs_set_error_handler"
3161 msgstr ""
3162
3163 # type: verbatim
3164 #. type: verbatim
3165 #: ../src/guestfs.pod:1439
3166 #, no-wrap
3167 msgid ""
3168 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3169 "                                           void *opaque,\n"
3170 "                                           const char *msg);\n"
3171 " void guestfs_set_error_handler (guestfs_h *g,\n"
3172 "                                 guestfs_error_handler_cb cb,\n"
3173 "                                 void *opaque);\n"
3174 "\n"
3175 msgstr ""
3176
3177 # type: textblock
3178 #. type: textblock
3179 #: ../src/guestfs.pod:1446
3180 msgid ""
3181 "The callback C<cb> will be called if there is an error.  The parameters "
3182 "passed to the callback are an opaque data pointer and the error message "
3183 "string."
3184 msgstr ""
3185
3186 # type: textblock
3187 #. type: textblock
3188 #: ../src/guestfs.pod:1450
3189 msgid ""
3190 "C<errno> is not passed to the callback.  To get that the callback must call "
3191 "L</guestfs_last_errno>."
3192 msgstr ""
3193
3194 # type: textblock
3195 #. type: textblock
3196 #: ../src/guestfs.pod:1453
3197 msgid ""
3198 "Note that the message string C<msg> is freed as soon as the callback "
3199 "function returns, so if you want to stash it somewhere you must make your "
3200 "own copy."
3201 msgstr ""
3202
3203 # type: textblock
3204 #. type: textblock
3205 #: ../src/guestfs.pod:1457
3206 msgid "The default handler prints messages on C<stderr>."
3207 msgstr ""
3208
3209 # type: textblock
3210 #. type: textblock
3211 #: ../src/guestfs.pod:1459
3212 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3213 msgstr ""
3214
3215 # type: =head2
3216 #. type: =head2
3217 #: ../src/guestfs.pod:1461
3218 msgid "guestfs_get_error_handler"
3219 msgstr ""
3220
3221 # type: verbatim
3222 #. type: verbatim
3223 #: ../src/guestfs.pod:1463
3224 #, no-wrap
3225 msgid ""
3226 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3227 "                                                     void **opaque_rtn);\n"
3228 "\n"
3229 msgstr ""
3230
3231 # type: textblock
3232 #. type: textblock
3233 #: ../src/guestfs.pod:1466
3234 msgid "Returns the current error handler callback."
3235 msgstr ""
3236
3237 # type: =head2
3238 #. type: =head2
3239 #: ../src/guestfs.pod:1468
3240 msgid "guestfs_set_out_of_memory_handler"
3241 msgstr ""
3242
3243 # type: verbatim
3244 #. type: verbatim
3245 #: ../src/guestfs.pod:1470
3246 #, no-wrap
3247 msgid ""
3248 " typedef void (*guestfs_abort_cb) (void);\n"
3249 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3250 "                                        guestfs_abort_cb);\n"
3251 "\n"
3252 msgstr ""
3253
3254 # type: textblock
3255 #. type: textblock
3256 #: ../src/guestfs.pod:1474
3257 msgid ""
3258 "The callback C<cb> will be called if there is an out of memory situation.  "
3259 "I<Note this callback must not return>."
3260 msgstr ""
3261
3262 # type: textblock
3263 #. type: textblock
3264 #: ../src/guestfs.pod:1477
3265 msgid "The default is to call L<abort(3)>."
3266 msgstr ""
3267
3268 # type: textblock
3269 #. type: textblock
3270 #: ../src/guestfs.pod:1479
3271 msgid ""
3272 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3273 msgstr ""
3274
3275 # type: =head2
3276 #. type: =head2
3277 #: ../src/guestfs.pod:1482
3278 msgid "guestfs_get_out_of_memory_handler"
3279 msgstr ""
3280
3281 # type: verbatim
3282 #. type: verbatim
3283 #: ../src/guestfs.pod:1484
3284 #, no-wrap
3285 msgid ""
3286 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3287 "\n"
3288 msgstr ""
3289
3290 # type: textblock
3291 #. type: textblock
3292 #: ../src/guestfs.pod:1486
3293 msgid "This returns the current out of memory handler."
3294 msgstr ""
3295
3296 # type: =head1
3297 #. type: =head1
3298 #: ../src/guestfs.pod:1488
3299 msgid "API CALLS"
3300 msgstr ""
3301
3302 # type: textblock
3303 #. type: textblock
3304 #: ../src/guestfs.pod:1490 ../fish/guestfish.pod:1008
3305 msgid "@ACTIONS@"
3306 msgstr ""
3307
3308 # type: =head1
3309 #. type: =head1
3310 #: ../src/guestfs.pod:1492
3311 msgid "STRUCTURES"
3312 msgstr ""
3313
3314 # type: textblock
3315 #. type: textblock
3316 #: ../src/guestfs.pod:1494
3317 msgid "@STRUCTS@"
3318 msgstr ""
3319
3320 # type: =head1
3321 #. type: =head1
3322 #: ../src/guestfs.pod:1496
3323 msgid "AVAILABILITY"
3324 msgstr ""
3325
3326 # type: =head2
3327 #. type: =head2
3328 #: ../src/guestfs.pod:1498
3329 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3330 msgstr ""
3331
3332 # type: textblock
3333 #. type: textblock
3334 #: ../src/guestfs.pod:1500
3335 msgid ""
3336 "Using L</guestfs_available> you can test availability of the following "
3337 "groups of functions.  This test queries the appliance to see if the "
3338 "appliance you are currently using supports the functionality."
3339 msgstr ""
3340
3341 # type: textblock
3342 #. type: textblock
3343 #: ../src/guestfs.pod:1505
3344 msgid "@AVAILABILITY@"
3345 msgstr ""
3346
3347 # type: =head2
3348 #. type: =head2
3349 #: ../src/guestfs.pod:1507
3350 msgid "GUESTFISH supported COMMAND"
3351 msgstr ""
3352
3353 # type: textblock
3354 #. type: textblock
3355 #: ../src/guestfs.pod:1509
3356 msgid ""
3357 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3358 "prints out the available groups and whether they are supported by this build "
3359 "of libguestfs.  Note however that you have to do C<run> first."
3360 msgstr ""
3361
3362 # type: =head2
3363 #. type: =head2
3364 #: ../src/guestfs.pod:1514
3365 msgid "SINGLE CALLS AT COMPILE TIME"
3366 msgstr ""
3367
3368 # type: textblock
3369 #. type: textblock
3370 #: ../src/guestfs.pod:1516
3371 msgid ""
3372 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3373 "function, such as:"
3374 msgstr ""
3375
3376 # type: verbatim
3377 #. type: verbatim
3378 #: ../src/guestfs.pod:1519
3379 #, no-wrap
3380 msgid ""
3381 " #define LIBGUESTFS_HAVE_DD 1\n"
3382 "\n"
3383 msgstr ""
3384
3385 # type: textblock
3386 #. type: textblock
3387 #: ../src/guestfs.pod:1521
3388 msgid "if L</guestfs_dd> is available."
3389 msgstr ""
3390
3391 # type: textblock
3392 #. type: textblock
3393 #: ../src/guestfs.pod:1523
3394 msgid ""
3395 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3396 "function is available at compile time, we recommended using build tools such "
3397 "as autoconf or cmake.  For example in autotools you could use:"
3398 msgstr ""
3399
3400 # type: verbatim
3401 #. type: verbatim
3402 #: ../src/guestfs.pod:1528
3403 #, no-wrap
3404 msgid ""
3405 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3406 " AC_CHECK_FUNCS([guestfs_dd])\n"
3407 "\n"
3408 msgstr ""
3409
3410 # type: textblock
3411 #. type: textblock
3412 #: ../src/guestfs.pod:1531
3413 msgid ""
3414 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3415 "in your program."
3416 msgstr ""
3417
3418 # type: =head2
3419 #. type: =head2
3420 #: ../src/guestfs.pod:1534
3421 msgid "SINGLE CALLS AT RUN TIME"
3422 msgstr ""
3423
3424 # type: textblock
3425 #. type: textblock
3426 #: ../src/guestfs.pod:1536
3427 msgid ""
3428 "Testing at compile time doesn't guarantee that a function really exists in "
3429 "the library.  The reason is that you might be dynamically linked against a "
3430 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3431 "This situation unfortunately results in a segmentation fault, which is a "
3432 "shortcoming of the C dynamic linking system itself."
3433 msgstr ""
3434
3435 # type: textblock
3436 #. type: textblock
3437 #: ../src/guestfs.pod:1543
3438 msgid ""
3439 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3440 "in this example program (note that you still need the compile time check as "
3441 "well):"
3442 msgstr ""
3443
3444 # type: verbatim
3445 #. type: verbatim
3446 #: ../src/guestfs.pod:1547
3447 #, no-wrap
3448 msgid ""
3449 " #include <stdio.h>\n"
3450 " #include <stdlib.h>\n"
3451 " #include <unistd.h>\n"
3452 " #include <dlfcn.h>\n"
3453 " #include <guestfs.h>\n"
3454 " \n"
3455 msgstr ""
3456
3457 # type: verbatim
3458 #. type: verbatim
3459 #: ../src/guestfs.pod:1553
3460 #, no-wrap
3461 msgid ""
3462 " main ()\n"
3463 " {\n"
3464 " #ifdef LIBGUESTFS_HAVE_DD\n"
3465 "   void *dl;\n"
3466 "   int has_function;\n"
3467 " \n"
3468 msgstr ""
3469
3470 # type: verbatim
3471 #. type: verbatim
3472 #: ../src/guestfs.pod:1559
3473 #, no-wrap
3474 msgid ""
3475 "   /* Test if the function guestfs_dd is really available. */\n"
3476 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3477 "   if (!dl) {\n"
3478 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3479 "     exit (EXIT_FAILURE);\n"
3480 "   }\n"
3481 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3482 "   dlclose (dl);\n"
3483 " \n"
3484 msgstr ""
3485
3486 # type: verbatim
3487 #. type: verbatim
3488 #: ../src/guestfs.pod:1568
3489 #, no-wrap
3490 msgid ""
3491 "   if (!has_function)\n"
3492 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3493 "   else {\n"
3494 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3495 "     /* Now it's safe to call\n"
3496 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3497 "     */\n"
3498 "   }\n"
3499 " #else\n"
3500 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3501 " #endif\n"
3502 "  }\n"
3503 "\n"
3504 msgstr ""
3505
3506 # type: textblock
3507 #. type: textblock
3508 #: ../src/guestfs.pod:1581
3509 msgid ""
3510 "You may think the above is an awful lot of hassle, and it is.  There are "
3511 "other ways outside of the C linking system to ensure that this kind of "
3512 "incompatibility never arises, such as using package versioning:"
3513 msgstr ""
3514
3515 # type: verbatim
3516 #. type: verbatim
3517 #: ../src/guestfs.pod:1586
3518 #, no-wrap
3519 msgid ""
3520 " Requires: libguestfs >= 1.0.80\n"
3521 "\n"
3522 msgstr ""
3523
3524 # type: =head1
3525 #. type: =head1
3526 #: ../src/guestfs.pod:1588
3527 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3528 msgstr ""
3529
3530 # type: textblock
3531 #. type: textblock
3532 #: ../src/guestfs.pod:1590
3533 msgid ""
3534 "A recent feature of the API is the introduction of calls which take optional "
3535 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3536 "takes variable arguments (ie. C<...>), as in this example:"
3537 msgstr ""
3538
3539 # type: verbatim
3540 #. type: verbatim
3541 #: ../src/guestfs.pod:1595
3542 #, no-wrap
3543 msgid ""
3544 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3545 "\n"
3546 msgstr ""
3547
3548 # type: textblock
3549 #. type: textblock
3550 #: ../src/guestfs.pod:1597
3551 msgid ""
3552 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3553 "call with no optional arguments specified:"
3554 msgstr ""
3555
3556 # type: verbatim
3557 #. type: verbatim
3558 #: ../src/guestfs.pod:1600
3559 #, no-wrap
3560 msgid ""
3561 " guestfs_add_drive_opts (g, filename, -1);\n"
3562 "\n"
3563 msgstr ""
3564
3565 # type: textblock
3566 #. type: textblock
3567 #: ../src/guestfs.pod:1602
3568 msgid "With a single optional argument:"
3569 msgstr ""
3570
3571 # type: verbatim
3572 #. type: verbatim
3573 #: ../src/guestfs.pod:1604
3574 #, no-wrap
3575 msgid ""
3576 " guestfs_add_drive_opts (g, filename,\n"
3577 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3578 "                         -1);\n"
3579 "\n"
3580 msgstr ""
3581
3582 # type: textblock
3583 #. type: textblock
3584 #: ../src/guestfs.pod:1608
3585 msgid "With two:"
3586 msgstr ""
3587
3588 # type: verbatim
3589 #. type: verbatim
3590 #: ../src/guestfs.pod:1610
3591 #, no-wrap
3592 msgid ""
3593 " guestfs_add_drive_opts (g, filename,\n"
3594 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3595 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3596 "                         -1);\n"
3597 "\n"
3598 msgstr ""
3599
3600 # type: textblock
3601 #. type: textblock
3602 #: ../src/guestfs.pod:1615
3603 msgid ""
3604 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3605 "happen!"
3606 msgstr ""
3607
3608 # type: =head2
3609 #. type: =head2
3610 #: ../src/guestfs.pod:1618
3611 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3612 msgstr ""
3613
3614 # type: textblock
3615 #. type: textblock
3616 #: ../src/guestfs.pod:1620
3617 msgid ""
3618 "The second variant has the same name with the suffix C<_va>, which works the "
3619 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3620 "example function, this is declared:"
3621 msgstr ""
3622
3623 # type: verbatim
3624 #. type: verbatim
3625 #: ../src/guestfs.pod:1624
3626 #, no-wrap
3627 msgid ""
3628 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3629 "                                va_list args);\n"
3630 "\n"
3631 msgstr ""
3632
3633 # type: =head2
3634 #. type: =head2
3635 #: ../src/guestfs.pod:1627
3636 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3637 msgstr ""
3638
3639 # type: textblock
3640 #. type: textblock
3641 #: ../src/guestfs.pod:1629
3642 msgid ""
3643 "The third variant is useful where you need to construct these calls.  You "
3644 "pass in a structure where you fill in the optional fields.  The structure "
3645 "has a bitmask as the first element which you must set to indicate which "
3646 "fields you have filled in.  For our example function the structure and call "
3647 "are declared:"
3648 msgstr ""
3649
3650 # type: verbatim
3651 #. type: verbatim
3652 #: ../src/guestfs.pod:1635
3653 #, no-wrap
3654 msgid ""
3655 " struct guestfs_add_drive_opts_argv {\n"
3656 "   uint64_t bitmask;\n"
3657 "   int readonly;\n"
3658 "   const char *format;\n"
3659 "   /* ... */\n"
3660 " };\n"
3661 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3662 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3663 "\n"
3664 msgstr ""
3665
3666 # type: textblock
3667 #. type: textblock
3668 #: ../src/guestfs.pod:1644
3669 msgid "You could call it like this:"
3670 msgstr ""
3671
3672 # type: verbatim
3673 #. type: verbatim
3674 #: ../src/guestfs.pod:1646
3675 #, no-wrap
3676 msgid ""
3677 " struct guestfs_add_drive_opts_argv optargs = {\n"
3678 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3679 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3680 "   .readonly = 1,\n"
3681 "   .format = \"qcow2\"\n"
3682 " };\n"
3683 " \n"
3684 msgstr ""
3685
3686 # type: verbatim
3687 #. type: verbatim
3688 #: ../src/guestfs.pod:1653
3689 #, no-wrap
3690 msgid ""
3691 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3692 "\n"
3693 msgstr ""
3694
3695 # type: textblock
3696 #. type: textblock
3697 #: ../src/guestfs.pod:1655 ../src/guestfs-actions.pod:11
3698 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:9
3699 #: ../fish/guestfish-actions.pod:1260 ../tools/virt-win-reg.pl:532
3700 msgid "Notes:"
3701 msgstr ""
3702
3703 # type: textblock
3704 #. type: textblock
3705 #: ../src/guestfs.pod:1661
3706 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3707 msgstr ""
3708
3709 # type: textblock
3710 #. type: textblock
3711 #: ../src/guestfs.pod:1666
3712 msgid "You do not need to fill in all fields of the structure."
3713 msgstr ""
3714
3715 # type: textblock
3716 #. type: textblock
3717 #: ../src/guestfs.pod:1670
3718 msgid ""
3719 "There must be a one-to-one correspondence between fields of the structure "
3720 "that are filled in, and bits set in the bitmask."
3721 msgstr ""
3722
3723 # type: =head2
3724 #. type: =head2
3725 #: ../src/guestfs.pod:1675
3726 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3727 msgstr ""
3728
3729 # type: textblock
3730 #. type: textblock
3731 #: ../src/guestfs.pod:1677
3732 msgid ""
3733 "In other languages, optional arguments are expressed in the way that is "
3734 "natural for that language.  We refer you to the language-specific "
3735 "documentation for more details on that."
3736 msgstr ""
3737
3738 # type: textblock
3739 #. type: textblock
3740 #: ../src/guestfs.pod:1681
3741 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3742 msgstr ""
3743
3744 # type: =head2
3745 #. type: =head2
3746 #: ../src/guestfs.pod:1683
3747 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3748 msgstr ""
3749
3750 #. type: textblock
3751 #: ../src/guestfs.pod:1685
3752 msgid ""
3753 "B<Note:> This section documents the generic event mechanism introduced in "
3754 "libguestfs 1.10, which you should use in new code if possible.  The old "
3755 "functions C<guestfs_set_log_message_callback>, "
3756 "C<guestfs_set_subprocess_quit_callback>, "
3757 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3758 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3759 "page."
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../src/guestfs.pod:1693
3764 msgid ""
3765 "Handles generate events when certain things happen, such as log messages "
3766 "being generated, progress messages during long-running operations, or the "
3767 "handle being closed.  The API calls described below let you register a "
3768 "callback to be called when events happen.  You can register multiple "
3769 "callbacks (for the same, different or overlapping sets of events), and "
3770 "individually remove callbacks.  If callbacks are not removed, then they "
3771 "remain in force until the handle is closed."
3772 msgstr ""
3773
3774 #. type: textblock
3775 #: ../src/guestfs.pod:1701
3776 msgid ""
3777 "In the current implementation, events are only generated synchronously: that "
3778 "means that events (and hence callbacks) can only happen while you are in the "
3779 "middle of making another libguestfs call.  The callback is called in the "
3780 "same thread."
3781 msgstr ""
3782
3783 #. type: textblock
3784 #: ../src/guestfs.pod:1706
3785 msgid ""
3786 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3787 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3788 msgstr ""
3789
3790 #. type: =head3
3791 #: ../src/guestfs.pod:1710
3792 msgid "CLASSES OF EVENTS"
3793 msgstr ""
3794
3795 #. type: =item
3796 #: ../src/guestfs.pod:1714
3797 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3798 msgstr ""
3799
3800 #. type: textblock
3801 #: ../src/guestfs.pod:1717
3802 msgid ""
3803 "The callback function will be called while the handle is being closed "
3804 "(synchronously from L</guestfs_close>)."
3805 msgstr ""
3806
3807 # type: textblock
3808 #. type: textblock
3809 #: ../src/guestfs.pod:1720
3810 msgid ""
3811 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3812 "handles that are open when the program exits.  This means that this callback "
3813 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3814 "problems in higher-level languages (eg. if your HLL interpreter has already "
3815 "been cleaned up by the time this is called, and if your callback then jumps "
3816 "into some HLL function)."
3817 msgstr ""
3818
3819 #. type: textblock
3820 #: ../src/guestfs.pod:1727
3821 msgid ""
3822 "If no callback is registered: the handle is closed without any callback "
3823 "being invoked."
3824 msgstr ""
3825
3826 #. type: =item
3827 #: ../src/guestfs.pod:1730
3828 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../src/guestfs.pod:1733
3833 msgid ""
3834 "The callback function will be called when the child process quits, either "
3835 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3836 "corresponds to a transition from any state to the CONFIG state)."
3837 msgstr ""
3838
3839 #. type: textblock
3840 #: ../src/guestfs.pod:1737 ../src/guestfs.pod:1746
3841 msgid "If no callback is registered: the event is ignored."
3842 msgstr ""
3843
3844 #. type: =item
3845 #: ../src/guestfs.pod:1739
3846 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../src/guestfs.pod:1742
3851 msgid ""
3852 "The callback function will be called when the child process becomes ready "
3853 "first time after it has been launched.  (This corresponds to a transition "
3854 "from LAUNCHING to the READY state)."
3855 msgstr ""
3856
3857 #. type: =item
3858 #: ../src/guestfs.pod:1748
3859 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3860 msgstr ""
3861
3862 # type: textblock
3863 #. type: textblock
3864 #: ../src/guestfs.pod:1751
3865 msgid ""
3866 "Some long-running operations can generate progress messages.  If this "
3867 "callback is registered, then it will be called each time a progress message "
3868 "is generated (usually two seconds after the operation started, and three "
3869 "times per second thereafter until it completes, although the frequency may "
3870 "change in future versions)."
3871 msgstr ""
3872
3873 #. type: textblock
3874 #: ../src/guestfs.pod:1757
3875 msgid ""
3876 "The callback receives in the payload four unsigned 64 bit numbers which are "
3877 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../src/guestfs.pod:1760
3882 msgid ""
3883 "The units of C<total> are not defined, although for some operations C<total> "
3884 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3885 "or megabytes), and C<position> may be the portion which has been transferred."
3886 msgstr ""
3887
3888 # type: textblock
3889 #. type: textblock
3890 #: ../src/guestfs.pod:1765
3891 msgid "The only defined and stable parts of the API are:"
3892 msgstr ""
3893
3894 # type: textblock
3895 #. type: textblock
3896 #: ../src/guestfs.pod:1771
3897 msgid ""
3898 "The callback can display to the user some type of progress bar or indicator "
3899 "which shows the ratio of C<position>:C<total>."
3900 msgstr ""
3901
3902 # type: textblock
3903 #. type: textblock
3904 #: ../src/guestfs.pod:1776
3905 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3906 msgstr ""
3907
3908 #. type: textblock
3909 #: ../src/guestfs.pod:1780
3910 msgid ""
3911 "If any progress notification is sent during a call, then a final progress "
3912 "notification is always sent when C<position> = C<total> (I<unless> the call "
3913 "fails with an error)."
3914 msgstr ""
3915
3916 # type: textblock
3917 #. type: textblock
3918 #: ../src/guestfs.pod:1784
3919 msgid ""
3920 "This is to simplify caller code, so callers can easily set the progress "
3921 "indicator to \"100%\" at the end of the operation, without requiring special "
3922 "code to detect this case."
3923 msgstr ""
3924
3925 #. type: textblock
3926 #: ../src/guestfs.pod:1790
3927 msgid ""
3928 "For some calls we are unable to estimate the progress of the call, but we "
3929 "can still generate progress messages to indicate activity.  This is known as "
3930 "\"pulse mode\", and is directly supported by certain progress bar "
3931 "implementations (eg. GtkProgressBar)."
3932 msgstr ""
3933
3934 #. type: textblock
3935 #: ../src/guestfs.pod:1795
3936 msgid ""
3937 "For these calls, zero or more progress messages are generated with "
3938 "C<position = 0> and C<total = 1>, followed by a final message with "
3939 "C<position = total = 1>."
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../src/guestfs.pod:1799
3944 msgid ""
3945 "As noted above, if the call fails with an error then the final message may "
3946 "not be generated."
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../src/guestfs.pod:1804
3951 msgid ""
3952 "The callback also receives the procedure number (C<proc_nr>) and serial "
3953 "number (C<serial>) of the call.  These are only useful for debugging "
3954 "protocol issues, and the callback can normally ignore them.  The callback "
3955 "may want to print these numbers in error messages or debugging messages."
3956 msgstr ""
3957
3958 #. type: textblock
3959 #: ../src/guestfs.pod:1810
3960 msgid "If no callback is registered: progress messages are discarded."
3961 msgstr ""
3962
3963 #. type: =item
3964 #: ../src/guestfs.pod:1812
3965 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../src/guestfs.pod:1815
3970 msgid ""
3971 "The callback function is called whenever a log message is generated by qemu, "
3972 "the appliance kernel, guestfsd (daemon), or utility programs."
3973 msgstr ""
3974
3975 #. type: textblock
3976 #: ../src/guestfs.pod:1818
3977 msgid ""
3978 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3979 "guestfs_launch>) then additional debug messages are generated."
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../src/guestfs.pod:1821 ../src/guestfs.pod:1835
3984 msgid ""
3985 "If no callback is registered: the messages are discarded unless the verbose "
3986 "flag is set in which case they are sent to stderr.  You can override the "
3987 "printing of verbose messages to stderr by setting up a callback."
3988 msgstr ""
3989
3990 #. type: =item
3991 #: ../src/guestfs.pod:1826
3992 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../src/guestfs.pod:1829
3997 msgid ""
3998 "The callback function is called whenever a log message is generated by the "
3999 "library part of libguestfs."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../src/guestfs.pod:1832
4004 msgid ""
4005 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
4006 "messages are generated."
4007 msgstr ""
4008
4009 #. type: =item
4010 #: ../src/guestfs.pod:1840
4011 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
4012 msgstr ""
4013
4014 #. type: textblock
4015 #: ../src/guestfs.pod:1843
4016 msgid ""
4017 "The callback function is called whenever a trace message is generated.  This "
4018 "only applies if the trace flag (L</guestfs_set_trace>) is set."
4019 msgstr ""
4020
4021 #. type: textblock
4022 #: ../src/guestfs.pod:1846
4023 msgid ""
4024 "If no callback is registered: the messages are sent to stderr.  You can "
4025 "override the printing of trace messages to stderr by setting up a callback."
4026 msgstr ""
4027
4028 #. type: =head3
4029 #: ../src/guestfs.pod:1852
4030 msgid "guestfs_set_event_callback"
4031 msgstr ""
4032
4033 #. type: verbatim
4034 #: ../src/guestfs.pod:1854
4035 #, no-wrap
4036 msgid ""
4037 " int guestfs_set_event_callback (guestfs_h *g,\n"
4038 "                                 guestfs_event_callback cb,\n"
4039 "                                 uint64_t event_bitmask,\n"
4040 "                                 int flags,\n"
4041 "                                 void *opaque);\n"
4042 "\n"
4043 msgstr ""
4044
4045 #. type: textblock
4046 #: ../src/guestfs.pod:1860
4047 msgid ""
4048 "This function registers a callback (C<cb>) for all event classes in the "
4049 "C<event_bitmask>."
4050 msgstr ""
4051
4052 #. type: textblock
4053 #: ../src/guestfs.pod:1863
4054 msgid ""
4055 "For example, to register for all log message events, you could call this "
4056 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4057 "To register a single callback for all possible classes of events, use "
4058 "C<GUESTFS_EVENT_ALL>."
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../src/guestfs.pod:1869
4063 msgid "C<flags> should always be passed as 0."
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../src/guestfs.pod:1871
4068 msgid ""
4069 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4070 "it for any purpose."
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../src/guestfs.pod:1874
4075 msgid ""
4076 "The return value is the event handle (an integer) which you can use to "
4077 "delete the callback (see below)."
4078 msgstr ""
4079
4080 #. type: textblock
4081 #: ../src/guestfs.pod:1877
4082 msgid ""
4083 "If there is an error, this function returns C<-1>, and sets the error in the "
4084 "handle in the usual way (see L</guestfs_last_error> etc.)"
4085 msgstr ""
4086
4087 #. type: textblock
4088 #: ../src/guestfs.pod:1880
4089 msgid ""
4090 "Callbacks remain in effect until they are deleted, or until the handle is "
4091 "closed."
4092 msgstr ""
4093
4094 #. type: textblock
4095 #: ../src/guestfs.pod:1883
4096 msgid ""
4097 "In the case where multiple callbacks are registered for a particular event "
4098 "class, all of the callbacks are called.  The order in which multiple "
4099 "callbacks are called is not defined."
4100 msgstr ""
4101
4102 #. type: =head3
4103 #: ../src/guestfs.pod:1887
4104 msgid "guestfs_delete_event_callback"
4105 msgstr ""
4106
4107 #. type: verbatim
4108 #: ../src/guestfs.pod:1889
4109 #, no-wrap
4110 msgid ""
4111 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4112 "\n"
4113 msgstr ""
4114
4115 #. type: textblock
4116 #: ../src/guestfs.pod:1891
4117 msgid ""
4118 "Delete a callback that was previously registered.  C<event_handle> should be "
4119 "the integer that was returned by a previous call to "
4120 "C<guestfs_set_event_callback> on the same handle."
4121 msgstr ""
4122
4123 #. type: =head3
4124 #: ../src/guestfs.pod:1895
4125 msgid "guestfs_event_callback"
4126 msgstr ""
4127
4128 #. type: verbatim
4129 #: ../src/guestfs.pod:1897
4130 #, no-wrap
4131 msgid ""
4132 " typedef void (*guestfs_event_callback) (\n"
4133 "                  guestfs_h *g,\n"
4134 "                  void *opaque,\n"
4135 "                  uint64_t event,\n"
4136 "                  int event_handle,\n"
4137 "                  int flags,\n"
4138 "                  const char *buf, size_t buf_len,\n"
4139 "                  const uint64_t *array, size_t array_len);\n"
4140 "\n"
4141 msgstr ""
4142
4143 #. type: textblock
4144 #: ../src/guestfs.pod:1906
4145 msgid ""
4146 "This is the type of the event callback function that you have to provide."
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../src/guestfs.pod:1909
4151 msgid ""
4152 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4153 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4154 "handle, and C<flags> which in the current API you should ignore."
4155 msgstr ""
4156
4157 #. type: textblock
4158 #: ../src/guestfs.pod:1913
4159 msgid ""
4160 "The remaining parameters contain the event payload (if any).  Each event may "
4161 "contain a payload, which usually relates to the event class, but for future "
4162 "proofing your code should be written to handle any payload for any event "
4163 "class."
4164 msgstr ""
4165
4166 #. type: textblock
4167 #: ../src/guestfs.pod:1918
4168 msgid ""
4169 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4170 "there is no message buffer).  Note that this message buffer can contain "
4171 "arbitrary 8 bit data, including NUL bytes."
4172 msgstr ""
4173
4174 #. type: textblock
4175 #: ../src/guestfs.pod:1922
4176 msgid ""
4177 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4178 "moment this is only used for progress messages."
4179 msgstr ""
4180
4181 #. type: =head3
4182 #: ../src/guestfs.pod:1925
4183 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../src/guestfs.pod:1927
4188 msgid ""
4189 "One motivation for the generic event API was to allow GUI programs to "
4190 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4191 "unconditionally to C<stderr>."
4192 msgstr ""
4193
4194 #. type: textblock
4195 #: ../src/guestfs.pod:1931
4196 msgid ""
4197 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4198 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4199 "messages are not events; you must capture error messages separately)."
4200 msgstr ""
4201
4202 #. type: textblock
4203 #: ../src/guestfs.pod:1936
4204 msgid ""
4205 "Programs have to set up a callback to capture the classes of events of "
4206 "interest:"
4207 msgstr ""
4208
4209 #. type: verbatim
4210 #: ../src/guestfs.pod:1939
4211 #, no-wrap
4212 msgid ""
4213 " int eh =\n"
4214 "   guestfs_set_event_callback\n"
4215 "     (g, message_callback,\n"
4216 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4217 "      GUESTFS_EVENT_TRACE,\n"
4218 "      0, NULL) == -1)\n"
4219 " if (eh == -1) {\n"
4220 "   // handle error in the usual way\n"
4221 " }\n"
4222 "\n"
4223 msgstr ""
4224
4225 #. type: textblock
4226 #: ../src/guestfs.pod:1949
4227 msgid ""
4228 "The callback can then direct messages to the appropriate place.  In this "
4229 "example, messages are directed to syslog:"
4230 msgstr ""
4231
4232 #. type: verbatim
4233 #: ../src/guestfs.pod:1952
4234 #, no-wrap
4235 msgid ""
4236 " static void\n"
4237 " message_callback (\n"
4238 "         guestfs_h *g,\n"
4239 "         void *opaque,\n"
4240 "         uint64_t event,\n"
4241 "         int event_handle,\n"
4242 "         int flags,\n"
4243 "         const char *buf, size_t buf_len,\n"
4244 "         const uint64_t *array, size_t array_len)\n"
4245 " {\n"
4246 "   const int priority = LOG_USER|LOG_INFO;\n"
4247 "   if (buf_len > 0)\n"
4248 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4249 " }\n"
4250 "\n"
4251 msgstr ""
4252
4253 # type: =head1
4254 #. type: =head1
4255 #: ../src/guestfs.pod:1967
4256 msgid "PRIVATE DATA AREA"
4257 msgstr ""
4258
4259 #. type: textblock
4260 #: ../src/guestfs.pod:1969
4261 msgid ""
4262 "You can attach named pieces of private data to the libguestfs handle, fetch "
4263 "them by name, and walk over them, for the lifetime of the handle.  This is "
4264 "called the private data area and is only available from the C API."
4265 msgstr ""
4266
4267 # type: textblock
4268 #. type: textblock
4269 #: ../src/guestfs.pod:1974
4270 msgid "To attach a named piece of data, use the following call:"
4271 msgstr ""
4272
4273 # type: verbatim
4274 #. type: verbatim
4275 #: ../src/guestfs.pod:1976
4276 #, no-wrap
4277 msgid ""
4278 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4279 "\n"
4280 msgstr ""
4281
4282 # type: textblock
4283 #. type: textblock
4284 #: ../src/guestfs.pod:1978
4285 msgid ""
4286 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4287 "pointer (which can be C<NULL>).  Any previous item with the same name is "
4288 "overwritten."
4289 msgstr ""
4290
4291 # type: textblock
4292 #. type: textblock
4293 #: ../src/guestfs.pod:1982
4294 msgid ""
4295 "You can use any C<key> you want, but names beginning with an underscore "
4296 "character are reserved for internal libguestfs purposes (for implementing "
4297 "language bindings).  It is recommended to prefix the name with some unique "
4298 "string to avoid collisions with other users."
4299 msgstr ""
4300
4301 # type: textblock
4302 #. type: textblock
4303 #: ../src/guestfs.pod:1987
4304 msgid "To retrieve the pointer, use:"
4305 msgstr ""
4306
4307 # type: verbatim
4308 #. type: verbatim
4309 #: ../src/guestfs.pod:1989
4310 #, no-wrap
4311 msgid ""
4312 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4313 "\n"
4314 msgstr ""
4315
4316 # type: textblock
4317 #. type: textblock
4318 #: ../src/guestfs.pod:1991
4319 msgid ""
4320 "This function returns C<NULL> if either no data is found associated with "
4321 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4322 "C<NULL>."
4323 msgstr ""
4324
4325 #. type: textblock
4326 #: ../src/guestfs.pod:1995
4327 msgid ""
4328 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4329 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4330 "all.  In particular, libguestfs does I<not> try to free the data when the "
4331 "handle is closed.  If the data must be freed, then the caller must either "
4332 "free it before calling L</guestfs_close> or must set up a close callback to "
4333 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4334 msgstr ""
4335
4336 #. type: textblock
4337 #: ../src/guestfs.pod:2002
4338 msgid "To walk over all entries, use these two functions:"
4339 msgstr ""
4340
4341 #. type: verbatim
4342 #: ../src/guestfs.pod:2004
4343 #, no-wrap
4344 msgid ""
4345 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4346 "\n"
4347 msgstr ""
4348
4349 #. type: verbatim
4350 #: ../src/guestfs.pod:2006
4351 #, no-wrap
4352 msgid ""
4353 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4354 "\n"
4355 msgstr ""
4356
4357 #. type: textblock
4358 #: ../src/guestfs.pod:2008
4359 msgid ""
4360 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4361 "not have any particular meaning -- keys are not returned in any defined "
4362 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4363 "corresponding data pointer is returned from the function.  C<NULL> is "
4364 "returned if there are no keys stored in the handle."
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../src/guestfs.pod:2014
4369 msgid ""
4370 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4371 "value of this function is also C<NULL> is there are no further entries to "
4372 "return."
4373 msgstr ""
4374
4375 #. type: textblock
4376 #: ../src/guestfs.pod:2018
4377 msgid "Notes about walking over entries:"
4378 msgstr ""
4379
4380 #. type: textblock
4381 #: ../src/guestfs.pod:2024
4382 msgid ""
4383 "You must not call C<guestfs_set_private> while walking over the entries."
4384 msgstr ""
4385
4386 #. type: textblock
4387 #: ../src/guestfs.pod:2029
4388 msgid ""
4389 "The handle maintains an internal iterator which is reset when you call "
4390 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4391 "call C<guestfs_set_private>."
4392 msgstr ""
4393
4394 #. type: textblock
4395 #: ../src/guestfs.pod:2035
4396 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4397 msgstr ""
4398
4399 #. type: verbatim
4400 #: ../src/guestfs.pod:2037
4401 #, no-wrap
4402 msgid ""
4403 " guestfs_set_private (g, key, NULL);\n"
4404 "\n"
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../src/guestfs.pod:2039
4409 msgid "then that C<key> is not returned when walking."
4410 msgstr ""
4411
4412 #. type: textblock
4413 #: ../src/guestfs.pod:2043
4414 msgid ""
4415 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4416 "C<guestfs_next_private> or C<guestfs_set_private>."
4417 msgstr ""
4418
4419 #. type: textblock
4420 #: ../src/guestfs.pod:2049
4421 msgid ""
4422 "The following example code shows how to print all keys and data pointers "
4423 "that are associated with the handle C<g>:"
4424 msgstr ""
4425
4426 #. type: verbatim
4427 #: ../src/guestfs.pod:2052
4428 #, no-wrap
4429 msgid ""
4430 " const char *key;\n"
4431 " void *data = guestfs_first_private (g, &key);\n"
4432 " while (data != NULL)\n"
4433 "   {\n"
4434 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4435 "     data = guestfs_next_private (g, &key);\n"
4436 "   }\n"
4437 "\n"
4438 msgstr ""
4439
4440 #. type: textblock
4441 #: ../src/guestfs.pod:2060
4442 msgid ""
4443 "More commonly you are only interested in keys that begin with an application-"
4444 "specific prefix C<foo_>.  Modify the loop like so:"
4445 msgstr ""
4446
4447 #. type: verbatim
4448 #: ../src/guestfs.pod:2063
4449 #, no-wrap
4450 msgid ""
4451 " const char *key;\n"
4452 " void *data = guestfs_first_private (g, &key);\n"
4453 " while (data != NULL)\n"
4454 "   {\n"
4455 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4456 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4457 "     data = guestfs_next_private (g, &key);\n"
4458 "   }\n"
4459 "\n"
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../src/guestfs.pod:2072
4464 msgid ""
4465 "If you need to modify keys while walking, then you have to jump back to the "
4466 "beginning of the loop.  For example, to delete all keys prefixed with "
4467 "C<foo_>:"
4468 msgstr ""
4469
4470 #. type: verbatim
4471 #: ../src/guestfs.pod:2076
4472 #, no-wrap
4473 msgid ""
4474 "  const char *key;\n"
4475 "  void *data;\n"
4476 " again:\n"
4477 "  data = guestfs_first_private (g, &key);\n"
4478 "  while (data != NULL)\n"
4479 "    {\n"
4480 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4481 "        {\n"
4482 "          guestfs_set_private (g, key, NULL);\n"
4483 "          /* note that 'key' pointer is now invalid, and so is\n"
4484 "             the internal iterator */\n"
4485 "          goto again;\n"
4486 "        }\n"
4487 "      data = guestfs_next_private (g, &key);\n"
4488 "    }\n"
4489 "\n"
4490 msgstr ""
4491
4492 #. type: textblock
4493 #: ../src/guestfs.pod:2092
4494 msgid ""
4495 "Note that the above loop is guaranteed to terminate because the keys are "
4496 "being deleted, but other manipulations of keys within the loop might not "
4497 "terminate unless you also maintain an indication of which keys have been "
4498 "visited."
4499 msgstr ""
4500
4501 # type: =end
4502 #. type: =end
4503 #: ../src/guestfs.pod:2097 ../src/guestfs.pod:2102
4504 msgid "html"
4505 msgstr ""
4506
4507 # type: textblock
4508 #. type: textblock
4509 #: ../src/guestfs.pod:2099
4510 msgid ""
4511 "<!-- old anchor for the next section --> <a name="
4512 "\"state_machine_and_low_level_event_api\"/>"
4513 msgstr ""
4514
4515 # type: =head1
4516 #. type: =head1
4517 #: ../src/guestfs.pod:2104
4518 msgid "ARCHITECTURE"
4519 msgstr ""
4520
4521 # type: textblock
4522 #. type: textblock
4523 #: ../src/guestfs.pod:2106
4524 msgid ""
4525 "Internally, libguestfs is implemented by running an appliance (a special "
4526 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4527 "process of the main program."
4528 msgstr ""
4529
4530 # type: verbatim
4531 #. type: verbatim
4532 #: ../src/guestfs.pod:2110
4533 #, no-wrap
4534 msgid ""
4535 "  ___________________\n"
4536 " /                   \\\n"
4537 " | main program      |\n"
4538 " |                   |\n"
4539 " |                   |           child process / appliance\n"
4540 " |                   |           __________________________\n"
4541 " |                   |          / qemu                     \\\n"
4542 " +-------------------+   RPC    |      +-----------------+ |\n"
4543 " | libguestfs     <--------------------> guestfsd        | |\n"
4544 " |                   |          |      +-----------------+ |\n"
4545 " \\___________________/          |      | Linux kernel    | |\n"
4546 "                                |      +--^--------------+ |\n"
4547 "                                \\_________|________________/\n"
4548 "                                          |\n"
4549 "                                   _______v______\n"
4550 "                                  /              \\\n"
4551 "                                  | Device or    |\n"
4552 "                                  | disk image   |\n"
4553 "                                  \\______________/\n"
4554 "\n"
4555 msgstr ""
4556
4557 # type: textblock
4558 #. type: textblock
4559 #: ../src/guestfs.pod:2130
4560 msgid ""
4561 "The library, linked to the main program, creates the child process and hence "
4562 "the appliance in the L</guestfs_launch> function."
4563 msgstr ""
4564
4565 # type: textblock
4566 #. type: textblock
4567 #: ../src/guestfs.pod:2133
4568 msgid ""
4569 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4570 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4571 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4572 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4573 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4574 "attached to the qemu process which translates device access by the "
4575 "appliance's Linux kernel into accesses to the image."
4576 msgstr ""
4577
4578 # type: textblock
4579 #. type: textblock
4580 #: ../src/guestfs.pod:2142
4581 msgid ""
4582 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4583 "Although the disk image you are attached to might also be used by some "
4584 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4585 "care if both libguestfs's qemu process and your virtual machine are trying "
4586 "to update the disk image at the same time, since these usually results in "
4587 "massive disk corruption)."
4588 msgstr ""
4589
4590 # type: =head1
4591 #. type: =head1
4592 #: ../src/guestfs.pod:2149
4593 msgid "STATE MACHINE"
4594 msgstr ""
4595
4596 # type: textblock
4597 #. type: textblock
4598 #: ../src/guestfs.pod:2151
4599 msgid "libguestfs uses a state machine to model the child process:"
4600 msgstr ""
4601
4602 # type: verbatim
4603 #. type: verbatim
4604 #: ../src/guestfs.pod:2153
4605 #, no-wrap
4606 msgid ""
4607 "                         |\n"
4608 "                    guestfs_create\n"
4609 "                         |\n"
4610 "                         |\n"
4611 "                     ____V_____\n"
4612 "                    /          \\\n"
4613 "                    |  CONFIG  |\n"
4614 "                    \\__________/\n"
4615 "                     ^ ^   ^  \\\n"
4616 "                    /  |    \\  \\ guestfs_launch\n"
4617 "                   /   |    _\\__V______\n"
4618 "                  /    |   /           \\\n"
4619 "                 /     |   | LAUNCHING |\n"
4620 "                /      |   \\___________/\n"
4621 "               /       |       /\n"
4622 "              /        |  guestfs_launch\n"
4623 "             /         |     /\n"
4624 "    ______  /        __|____V\n"
4625 "   /      \\ ------> /        \\\n"
4626 "   | BUSY |         | READY  |\n"
4627 "   \\______/ <------ \\________/\n"
4628 "\n"
4629 msgstr ""
4630
4631 # type: textblock
4632 #. type: textblock
4633 #: ../src/guestfs.pod:2175
4634 msgid ""
4635 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4636 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4637 "(3) alternating between READY and BUSY as commands are issued to, and "
4638 "carried out by, the child process."
4639 msgstr ""
4640
4641 # type: textblock
4642 #. type: textblock
4643 #: ../src/guestfs.pod:2180
4644 msgid ""
4645 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4646 "asynchronously at any time (eg. due to some internal error), and that causes "
4647 "the state to transition back to CONFIG."
4648 msgstr ""
4649
4650 # type: textblock
4651 #. type: textblock
4652 #: ../src/guestfs.pod:2184
4653 msgid ""
4654 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4655 "issued when in the CONFIG state."
4656 msgstr ""
4657
4658 # type: textblock
4659 #. type: textblock
4660 #: ../src/guestfs.pod:2187
4661 msgid ""
4662 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4663 "L</guestfs_launch> blocks until the child process is READY to accept "
4664 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4665 "moves the state from CONFIG to LAUNCHING while it is running."
4666 msgstr ""
4667
4668 # type: textblock
4669 #. type: textblock
4670 #: ../src/guestfs.pod:2193
4671 msgid ""
4672 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4673 "state.  These API calls block waiting for the command to be carried out (ie. "
4674 "the state to transition to BUSY and then back to READY).  There are no non-"
4675 "blocking versions, and no way to issue more than one command per handle at "
4676 "the same time."
4677 msgstr ""
4678
4679 # type: textblock
4680 #. type: textblock
4681 #: ../src/guestfs.pod:2199
4682 msgid ""
4683 "Finally, the child process sends asynchronous messages back to the main "
4684 "program, such as kernel log messages.  You can register a callback to "
4685 "receive these messages."
4686 msgstr ""
4687
4688 # type: =head1
4689 #. type: =head1
4690 #: ../src/guestfs.pod:2203
4691 msgid "INTERNALS"
4692 msgstr ""
4693
4694 # type: =head2
4695 #. type: =head2
4696 #: ../src/guestfs.pod:2205
4697 msgid "COMMUNICATION PROTOCOL"
4698 msgstr ""
4699
4700 # type: textblock
4701 #. type: textblock
4702 #: ../src/guestfs.pod:2207
4703 msgid ""
4704 "Don't rely on using this protocol directly.  This section documents how it "
4705 "currently works, but it may change at any time."
4706 msgstr ""
4707
4708 # type: textblock
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2210
4711 msgid ""
4712 "The protocol used to talk between the library and the daemon running inside "
4713 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4714 "1014, RFC 1832, RFC 4506)."
4715 msgstr ""
4716
4717 # type: textblock
4718 #. type: textblock
4719 #: ../src/guestfs.pod:2214
4720 msgid ""
4721 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4722 "this file is automatically generated)."
4723 msgstr ""
4724
4725 # type: textblock
4726 #. type: textblock
4727 #: ../src/guestfs.pod:2217
4728 msgid ""
4729 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4730 "and C<FileOut> parameters, which are handled with very simple request/reply "
4731 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4732 "parameters, which use the same request and reply messages, but they may also "
4733 "be followed by files sent using a chunked encoding."
4734 msgstr ""
4735
4736 # type: =head3
4737 #. type: =head3
4738 #: ../src/guestfs.pod:2224
4739 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4740 msgstr ""
4741
4742 # type: textblock
4743 #. type: textblock
4744 #: ../src/guestfs.pod:2226
4745 msgid "For ordinary functions, the request message is:"
4746 msgstr ""
4747
4748 # type: verbatim
4749 #. type: verbatim
4750 #: ../src/guestfs.pod:2228
4751 #, no-wrap
4752 msgid ""
4753 " total length (header + arguments,\n"
4754 "      but not including the length word itself)\n"
4755 " struct guestfs_message_header (encoded as XDR)\n"
4756 " struct guestfs_<foo>_args (encoded as XDR)\n"
4757 "\n"
4758 msgstr ""
4759
4760 # type: textblock
4761 #. type: textblock
4762 #: ../src/guestfs.pod:2233
4763 msgid ""
4764 "The total length field allows the daemon to allocate a fixed size buffer "
4765 "into which it slurps the rest of the message.  As a result, the total length "
4766 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4767 "effective size of any request is limited to somewhere under this size."
4768 msgstr ""
4769
4770 # type: textblock
4771 #. type: textblock
4772 #: ../src/guestfs.pod:2239
4773 msgid ""
4774 "Note also that many functions don't take any arguments, in which case the "
4775 "C<guestfs_I<foo>_args> is completely omitted."
4776 msgstr ""
4777
4778 # type: textblock
4779 #. type: textblock
4780 #: ../src/guestfs.pod:2242
4781 msgid ""
4782 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4783 "receiver knows what type of args structure to expect, or none at all."
4784 msgstr ""
4785
4786 # type: textblock
4787 #. type: textblock
4788 #: ../src/guestfs.pod:2246
4789 msgid ""
4790 "For functions that take optional arguments, the optional arguments are "
4791 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4792 "arguments.  A bitmask in the header indicates which optional arguments are "
4793 "meaningful.  The bitmask is also checked to see if it contains bits set "
4794 "which the daemon does not know about (eg. if more optional arguments were "
4795 "added in a later version of the library), and this causes the call to be "
4796 "rejected."
4797 msgstr ""
4798
4799 # type: textblock
4800 #. type: textblock
4801 #: ../src/guestfs.pod:2254
4802 msgid "The reply message for ordinary functions is:"
4803 msgstr ""
4804
4805 # type: verbatim
4806 #. type: verbatim
4807 #: ../src/guestfs.pod:2256
4808 #, no-wrap
4809 msgid ""
4810 " total length (header + ret,\n"
4811 "      but not including the length word itself)\n"
4812 " struct guestfs_message_header (encoded as XDR)\n"
4813 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4814 "\n"
4815 msgstr ""
4816
4817 # type: textblock
4818 #. type: textblock
4819 #: ../src/guestfs.pod:2261
4820 msgid ""
4821 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4822 "functions that return no formal return values."
4823 msgstr ""
4824
4825 # type: textblock
4826 #. type: textblock
4827 #: ../src/guestfs.pod:2264
4828 msgid ""
4829 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4830 msgstr ""
4831
4832 # type: textblock
4833 #. type: textblock
4834 #: ../src/guestfs.pod:2267
4835 msgid ""
4836 "In the case of an error, a flag is set in the header, and the reply message "
4837 "is slightly changed:"
4838 msgstr ""
4839
4840 # type: verbatim
4841 #. type: verbatim
4842 #: ../src/guestfs.pod:2270
4843 #, no-wrap
4844 msgid ""
4845 " total length (header + error,\n"
4846 "      but not including the length word itself)\n"
4847 " struct guestfs_message_header (encoded as XDR)\n"
4848 " struct guestfs_message_error (encoded as XDR)\n"
4849 "\n"
4850 msgstr ""
4851
4852 # type: textblock
4853 #. type: textblock
4854 #: ../src/guestfs.pod:2275
4855 msgid ""
4856 "The C<guestfs_message_error> structure contains the error message as a "
4857 "string."
4858 msgstr ""
4859
4860 # type: =head3
4861 #. type: =head3
4862 #: ../src/guestfs.pod:2278
4863 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4864 msgstr ""
4865
4866 # type: textblock
4867 #. type: textblock
4868 #: ../src/guestfs.pod:2280
4869 msgid ""
4870 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4871 "The normal request message is sent (see above).  However this is followed by "
4872 "a sequence of file chunks."
4873 msgstr ""
4874
4875 # type: verbatim
4876 #. type: verbatim
4877 #: ../src/guestfs.pod:2284
4878 #, no-wrap
4879 msgid ""
4880 " total length (header + arguments,\n"
4881 "      but not including the length word itself,\n"
4882 "      and not including the chunks)\n"
4883 " struct guestfs_message_header (encoded as XDR)\n"
4884 " struct guestfs_<foo>_args (encoded as XDR)\n"
4885 " sequence of chunks for FileIn param #0\n"
4886 " sequence of chunks for FileIn param #1 etc.\n"
4887 "\n"
4888 msgstr ""
4889
4890 # type: textblock
4891 #. type: textblock
4892 #: ../src/guestfs.pod:2292
4893 msgid "The \"sequence of chunks\" is:"
4894 msgstr ""
4895
4896 # type: verbatim
4897 #. type: verbatim
4898 #: ../src/guestfs.pod:2294
4899 #, no-wrap
4900 msgid ""
4901 " length of chunk (not including length word itself)\n"
4902 " struct guestfs_chunk (encoded as XDR)\n"
4903 " length of chunk\n"
4904 " struct guestfs_chunk (encoded as XDR)\n"
4905 "   ...\n"
4906 " length of chunk\n"
4907 " struct guestfs_chunk (with data.data_len == 0)\n"
4908 "\n"
4909 msgstr ""
4910
4911 # type: textblock
4912 #. type: textblock
4913 #: ../src/guestfs.pod:2302
4914 msgid ""
4915 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4916 "is set in the final chunk to indicate either successful completion or early "
4917 "cancellation."
4918 msgstr ""
4919
4920 # type: textblock
4921 #. type: textblock
4922 #: ../src/guestfs.pod:2306
4923 msgid ""
4924 "At time of writing there are no functions that have more than one FileIn "
4925 "parameter.  However this is (theoretically) supported, by sending the "
4926 "sequence of chunks for each FileIn parameter one after another (from left to "
4927 "right)."
4928 msgstr ""
4929
4930 # type: textblock
4931 #. type: textblock
4932 #: ../src/guestfs.pod:2311
4933 msgid ""
4934 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4935 "transfer.  The library does this by sending a chunk with a special flag set "
4936 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4937 "RPC, does I<not> send any reply, and goes back to reading the next request."
4938 msgstr ""
4939
4940 # type: textblock
4941 #. type: textblock
4942 #: ../src/guestfs.pod:2317
4943 msgid ""
4944 "The daemon may also cancel.  It does this by writing a special word "
4945 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4946 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4947 "cancel chunk).  The special word is chosen so that even if cancellation "
4948 "happens right at the end of the transfer (after the library has finished "
4949 "writing and has started listening for the reply), the \"spurious\" cancel "
4950 "flag will not be confused with the reply message."
4951 msgstr ""
4952
4953 # type: textblock
4954 #. type: textblock
4955 #: ../src/guestfs.pod:2326
4956 msgid ""
4957 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4958 "limit), and also files where the size is not known in advance (eg. from "
4959 "pipes or sockets).  However the chunks are rather small "
4960 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4961 "to keep much in memory."
4962 msgstr ""
4963
4964 # type: =head3
4965 #. type: =head3
4966 #: ../src/guestfs.pod:2332
4967 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4968 msgstr ""
4969
4970 # type: textblock
4971 #. type: textblock
4972 #: ../src/guestfs.pod:2334
4973 msgid ""
4974 "The protocol for FileOut parameters is exactly the same as for FileIn "
4975 "parameters, but with the roles of daemon and library reversed."
4976 msgstr ""
4977
4978 # type: verbatim
4979 #. type: verbatim
4980 #: ../src/guestfs.pod:2337
4981 #, no-wrap
4982 msgid ""
4983 " total length (header + ret,\n"
4984 "      but not including the length word itself,\n"
4985 "      and not including the chunks)\n"
4986 " struct guestfs_message_header (encoded as XDR)\n"
4987 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4988 " sequence of chunks for FileOut param #0\n"
4989 " sequence of chunks for FileOut param #1 etc.\n"
4990 "\n"
4991 msgstr ""
4992
4993 # type: =head3
4994 #. type: =head3
4995 #: ../src/guestfs.pod:2345
4996 msgid "INITIAL MESSAGE"
4997 msgstr ""
4998
4999 # type: textblock
5000 #. type: textblock
5001 #: ../src/guestfs.pod:2347
5002 msgid ""
5003 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
5004 "which indicates that the guest and daemon is alive.  This is what L</"
5005 "guestfs_launch> waits for."
5006 msgstr ""
5007
5008 # type: =head3
5009 #. type: =head3
5010 #: ../src/guestfs.pod:2351
5011 msgid "PROGRESS NOTIFICATION MESSAGES"
5012 msgstr ""
5013
5014 # type: textblock
5015 #. type: textblock
5016 #: ../src/guestfs.pod:2353
5017 msgid ""
5018 "The daemon may send progress notification messages at any time.  These are "
5019 "distinguished by the normal length word being replaced by "
5020 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
5021 msgstr ""
5022
5023 #. type: textblock
5024 #: ../src/guestfs.pod:2357
5025 msgid ""
5026 "The library turns them into progress callbacks (see L</"
5027 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
5028 "if not."
5029 msgstr ""
5030
5031 # type: textblock
5032 #. type: textblock
5033 #: ../src/guestfs.pod:2361
5034 msgid ""
5035 "The daemon self-limits the frequency of progress messages it sends (see "
5036 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
5037 "messages."
5038 msgstr ""
5039
5040 # type: =head1
5041 #. type: =head1
5042 #: ../src/guestfs.pod:2365
5043 msgid "LIBGUESTFS VERSION NUMBERS"
5044 msgstr ""
5045
5046 # type: textblock
5047 #. type: textblock
5048 #: ../src/guestfs.pod:2367
5049 msgid ""
5050 "Since April 2010, libguestfs has started to make separate development and "
5051 "stable releases, along with corresponding branches in our git repository.  "
5052 "These separate releases can be identified by version number:"
5053 msgstr ""
5054
5055 # type: verbatim
5056 #. type: verbatim
5057 #: ../src/guestfs.pod:2372
5058 #, no-wrap
5059 msgid ""
5060 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5061 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5062 "       |\n"
5063 "       v\n"
5064 " 1  .  3  .  5\n"
5065 " ^           ^\n"
5066 " |           |\n"
5067 " |           `-------- sub-version\n"
5068 " |\n"
5069 " `------ always '1' because we don't change the ABI\n"
5070 "\n"
5071 msgstr ""
5072
5073 # type: textblock
5074 #. type: textblock
5075 #: ../src/guestfs.pod:2383
5076 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5077 msgstr ""
5078
5079 # type: textblock
5080 #. type: textblock
5081 #: ../src/guestfs.pod:2385
5082 msgid ""
5083 "As time passes we cherry pick fixes from the development branch and backport "
5084 "those into the stable branch, the effect being that the stable branch should "
5085 "get more stable and less buggy over time.  So the stable releases are ideal "
5086 "for people who don't need new features but would just like the software to "
5087 "work."
5088 msgstr ""
5089
5090 # type: textblock
5091 #. type: textblock
5092 #: ../src/guestfs.pod:2391
5093 msgid "Our criteria for backporting changes are:"
5094 msgstr ""
5095
5096 # type: textblock
5097 #. type: textblock
5098 #: ../src/guestfs.pod:2397
5099 msgid ""
5100 "Documentation changes which don't affect any code are backported unless the "
5101 "documentation refers to a future feature which is not in stable."
5102 msgstr ""
5103
5104 # type: textblock
5105 #. type: textblock
5106 #: ../src/guestfs.pod:2403
5107 msgid ""
5108 "Bug fixes which are not controversial, fix obvious problems, and have been "
5109 "well tested are backported."
5110 msgstr ""
5111
5112 # type: textblock
5113 #. type: textblock
5114 #: ../src/guestfs.pod:2408
5115 msgid ""
5116 "Simple rearrangements of code which shouldn't affect how it works get "
5117 "backported.  This is so that the code in the two branches doesn't get too "
5118 "far out of step, allowing us to backport future fixes more easily."
5119 msgstr ""
5120
5121 # type: textblock
5122 #. type: textblock
5123 #: ../src/guestfs.pod:2414
5124 msgid ""
5125 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5126 "exceptional case: the new feature is required in order to implement an "
5127 "important bug fix."
5128 msgstr ""
5129
5130 # type: textblock
5131 #. type: textblock
5132 #: ../src/guestfs.pod:2420
5133 msgid ""
5134 "A new stable branch starts when we think the new features in development are "
5135 "substantial and compelling enough over the current stable branch to warrant "
5136 "it.  When that happens we create new stable and development versions 1.N.0 "
5137 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5138 "stable at this point, but by backporting fixes from development, that branch "
5139 "will stabilize over time."
5140 msgstr ""
5141
5142 #. type: =head1
5143 #: ../src/guestfs.pod:2428
5144 msgid "EXTENDING LIBGUESTFS"
5145 msgstr ""
5146
5147 #. type: =head2
5148 #: ../src/guestfs.pod:2430
5149 msgid "ADDING A NEW API ACTION"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../src/guestfs.pod:2432
5154 msgid ""
5155 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5156 "documentation) are generated, and this makes it easy to extend the "
5157 "libguestfs API."
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../src/guestfs.pod:2436
5162 msgid "To add a new API action there are two changes:"
5163 msgstr ""
5164
5165 #. type: textblock
5166 #: ../src/guestfs.pod:2442
5167 msgid ""
5168 "You need to add a description of the call (name, parameters, return type, "
5169 "tests, documentation) to C<generator/generator_actions.ml>."
5170 msgstr ""
5171
5172 #. type: textblock
5173 #: ../src/guestfs.pod:2445
5174 msgid ""
5175 "There are two sorts of API action, depending on whether the call goes "
5176 "through to the daemon in the appliance, or is serviced entirely by the "
5177 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5178 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5179 "an example of the latter, since a trace flag is maintained in the handle and "
5180 "all tracing is done on the library side."
5181 msgstr ""
5182
5183 #. type: textblock
5184 #: ../src/guestfs.pod:2453
5185 msgid ""
5186 "Most new actions are of the first type, and get added to the "
5187 "C<daemon_functions> list.  Each function has a unique procedure number used "
5188 "in the RPC protocol which is assigned to that action when we publish "
5189 "libguestfs and cannot be reused.  Take the latest procedure number and "
5190 "increment it."
5191 msgstr ""
5192
5193 #. type: textblock
5194 #: ../src/guestfs.pod:2459
5195 msgid ""
5196 "For library-only actions of the second type, add to the "
5197 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5198 "library and do not travel over the RPC mechanism to the daemon, these "
5199 "functions do not need a procedure number, and so the procedure number is set "
5200 "to C<-1>."
5201 msgstr ""
5202
5203 #. type: textblock
5204 #: ../src/guestfs.pod:2467
5205 msgid "Implement the action (in C):"
5206 msgstr ""
5207
5208 #. type: textblock
5209 #: ../src/guestfs.pod:2469
5210 msgid ""
5211 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5212 "C<daemon/> directory."
5213 msgstr ""
5214
5215 #. type: textblock
5216 #: ../src/guestfs.pod:2472
5217 msgid ""
5218 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5219 "(note: double underscore) in the C<src/> directory."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../src/guestfs.pod:2475
5224 msgid "In either case, use another function as an example of what to do."
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../src/guestfs.pod:2479
5229 msgid "After making these changes, use C<make> to compile."
5230 msgstr ""
5231
5232 #. type: textblock
5233 #: ../src/guestfs.pod:2481
5234 msgid ""
5235 "Note that you don't need to implement the RPC, language bindings, manual "
5236 "pages or anything else.  It's all automatically generated from the OCaml "
5237 "description."
5238 msgstr ""
5239
5240 #. type: =head2
5241 #: ../src/guestfs.pod:2485
5242 msgid "ADDING TESTS FOR AN API ACTION"
5243 msgstr ""
5244
5245 #. type: textblock
5246 #: ../src/guestfs.pod:2487
5247 msgid ""
5248 "You can supply zero or as many tests as you want per API call.  The tests "
5249 "can either be added as part of the API description (C<generator/"
5250 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5251 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5252 "slower, so if possible use the first method."
5253 msgstr ""
5254
5255 #. type: textblock
5256 #: ../src/guestfs.pod:2493
5257 msgid ""
5258 "The following describes the test environment used when you add an API test "
5259 "in C<generator_actions.ml>."
5260 msgstr ""
5261
5262 #. type: textblock
5263 #: ../src/guestfs.pod:2496
5264 msgid "The test environment has 4 block devices:"
5265 msgstr ""
5266
5267 #. type: =item
5268 #: ../src/guestfs.pod:2500
5269 msgid "C</dev/sda> 500MB"
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../src/guestfs.pod:2502
5274 msgid "General block device for testing."
5275 msgstr ""
5276
5277 #. type: =item
5278 #: ../src/guestfs.pod:2504
5279 msgid "C</dev/sdb> 50MB"
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../src/guestfs.pod:2506
5284 msgid ""
5285 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5286 "operations."
5287 msgstr ""
5288
5289 #. type: =item
5290 #: ../src/guestfs.pod:2509
5291 msgid "C</dev/sdc> 10MB"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../src/guestfs.pod:2511
5296 msgid "Used in a few tests where two block devices are needed."
5297 msgstr ""
5298
5299 #. type: =item
5300 #: ../src/guestfs.pod:2513
5301 msgid "C</dev/sdd>"
5302 msgstr ""
5303
5304 #. type: textblock
5305 #: ../src/guestfs.pod:2515
5306 msgid "ISO with fixed content (see C<images/test.iso>)."
5307 msgstr ""
5308
5309 #. type: textblock
5310 #: ../src/guestfs.pod:2519
5311 msgid ""
5312 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5313 "appliance and block devices are reused between tests.  So don't try testing "
5314 "L</guestfs_kill_subprocess> :-x"
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../src/guestfs.pod:2523
5319 msgid ""
5320 "Each test starts with an initial scenario, selected using one of the "
5321 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5322 "initialize the disks mentioned above in a particular way as documented in "
5323 "C<generator_types.ml>.  You should not assume anything about the previous "
5324 "contents of other disks that are not initialized."
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../src/guestfs.pod:2529
5329 msgid ""
5330 "You can add a prerequisite clause to any individual test.  This is a run-"
5331 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5332 "testing a command which might not work on all variations of libguestfs "
5333 "builds.  A test that has prerequisite of C<Always> means to run "
5334 "unconditionally."
5335 msgstr ""
5336
5337 #. type: textblock
5338 #: ../src/guestfs.pod:2535
5339 msgid ""
5340 "In addition, packagers can skip individual tests by setting environment "
5341 "variables before running C<make check>."
5342 msgstr ""
5343
5344 #. type: verbatim
5345 #: ../src/guestfs.pod:2538
5346 #, no-wrap
5347 msgid ""
5348 " SKIP_TEST_<CMD>_<NUM>=1\n"
5349 "\n"
5350 msgstr ""
5351
5352 #. type: textblock
5353 #: ../src/guestfs.pod:2540
5354 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5355 msgstr ""
5356
5357 #. type: textblock
5358 #: ../src/guestfs.pod:2542
5359 msgid "or:"
5360 msgstr ""
5361
5362 #. type: verbatim
5363 #: ../src/guestfs.pod:2544
5364 #, no-wrap
5365 msgid ""
5366 " SKIP_TEST_<CMD>=1\n"
5367 "\n"
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../src/guestfs.pod:2546
5372 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5373 msgstr ""
5374
5375 #. type: textblock
5376 #: ../src/guestfs.pod:2548
5377 msgid "Packagers can run only certain tests by setting for example:"
5378 msgstr ""
5379
5380 #. type: verbatim
5381 #: ../src/guestfs.pod:2550
5382 #, no-wrap
5383 msgid ""
5384 " TEST_ONLY=\"vfs_type zerofree\"\n"
5385 "\n"
5386 msgstr ""
5387
5388 #. type: textblock
5389 #: ../src/guestfs.pod:2552
5390 msgid ""
5391 "See C<capitests/tests.c> for more details of how these environment variables "
5392 "work."
5393 msgstr ""
5394
5395 #. type: =head2
5396 #: ../src/guestfs.pod:2555
5397 msgid "DEBUGGING NEW API ACTIONS"
5398 msgstr ""
5399
5400 #. type: textblock
5401 #: ../src/guestfs.pod:2557
5402 msgid "Test new actions work before submitting them."
5403 msgstr ""
5404
5405 #. type: textblock
5406 #: ../src/guestfs.pod:2559
5407 msgid "You can use guestfish to try out new commands."
5408 msgstr ""
5409
5410 #. type: textblock
5411 #: ../src/guestfs.pod:2561
5412 msgid ""
5413 "Debugging the daemon is a problem because it runs inside a minimal "
5414 "environment.  However you can fprintf messages in the daemon to stderr, and "
5415 "they will show up if you use C<guestfish -v>."
5416 msgstr ""
5417
5418 #. type: =head2
5419 #: ../src/guestfs.pod:2565
5420 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5421 msgstr ""
5422
5423 #. type: textblock
5424 #: ../src/guestfs.pod:2567
5425 msgid ""
5426 "Our C source code generally adheres to some basic code-formatting "
5427 "conventions.  The existing code base is not totally consistent on this "
5428 "front, but we do prefer that contributed code be formatted similarly.  In "
5429 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5430 "indentation level, and other than that, follow the K&R style."
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../src/guestfs.pod:2573
5435 msgid ""
5436 "If you use Emacs, add the following to one of one of your start-up files (e."
5437 "g., ~/.emacs), to help ensure that you get indentation right:"
5438 msgstr ""
5439
5440 #. type: verbatim
5441 #: ../src/guestfs.pod:2576
5442 #, no-wrap
5443 msgid ""
5444 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5445 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5446 " (add-hook 'find-file-hook\n"
5447 "     '(lambda () (if (and buffer-file-name\n"
5448 "                          (string-match \"/libguestfs\\\\>\"\n"
5449 "                              (buffer-file-name))\n"
5450 "                          (not (string-equal mode-name \"Change Log\"))\n"
5451 "                          (not (string-equal mode-name \"Makefile\")))\n"
5452 "                     (setq indent-tabs-mode nil))))\n"
5453 " \n"
5454 msgstr ""
5455
5456 #. type: verbatim
5457 #: ../src/guestfs.pod:2586
5458 #, no-wrap
5459 msgid ""
5460 " ;;; When editing C sources in libguestfs, use this style.\n"
5461 " (defun libguestfs-c-mode ()\n"
5462 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5463 "   (interactive)\n"
5464 "   (c-set-style \"K&R\")\n"
5465 "   (setq c-indent-level 2)\n"
5466 "   (setq c-basic-offset 2))\n"
5467 " (add-hook 'c-mode-hook\n"
5468 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5469 "                               (buffer-file-name))\n"
5470 "                           (libguestfs-c-mode))))\n"
5471 "\n"
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../src/guestfs.pod:2598
5476 msgid "Enable warnings when compiling (and fix any problems this finds):"
5477 msgstr ""
5478
5479 #. type: verbatim
5480 #: ../src/guestfs.pod:2601
5481 #, no-wrap
5482 msgid ""
5483 " ./configure --enable-gcc-warnings\n"
5484 "\n"
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../src/guestfs.pod:2603
5489 msgid "Useful targets are:"
5490 msgstr ""
5491
5492 #. type: verbatim
5493 #: ../src/guestfs.pod:2605
5494 #, no-wrap
5495 msgid ""
5496 " make syntax-check  # checks the syntax of the C code\n"
5497 " make check         # runs the test suite\n"
5498 "\n"
5499 msgstr ""
5500
5501 #. type: =head2
5502 #: ../src/guestfs.pod:2608
5503 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../src/guestfs.pod:2610
5508 msgid ""
5509 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5510 "which are used to do shell quoting."
5511 msgstr ""
5512
5513 #. type: =item
5514 #: ../src/guestfs.pod:2615
5515 msgid "%Q"
5516 msgstr ""
5517
5518 #. type: textblock
5519 #: ../src/guestfs.pod:2617
5520 msgid ""
5521 "Simple shell quoted string.  Any spaces or other shell characters are "
5522 "escaped for you."
5523 msgstr ""
5524
5525 #. type: =item
5526 #: ../src/guestfs.pod:2620
5527 msgid "%R"
5528 msgstr ""
5529
5530 #. type: textblock
5531 #: ../src/guestfs.pod:2622
5532 msgid ""
5533 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5534 "the sysroot."
5535 msgstr ""
5536
5537 # type: textblock
5538 #. type: textblock
5539 #: ../src/guestfs.pod:2627 ../fish/guestfish.pod:240 ../fish/guestfish.pod:613
5540 msgid "For example:"
5541 msgstr ""
5542
5543 #. type: verbatim
5544 #: ../src/guestfs.pod:2629
5545 #, no-wrap
5546 msgid ""
5547 " asprintf (&cmd, \"cat %R\", path);\n"
5548 "\n"
5549 msgstr ""
5550
5551 #. type: textblock
5552 #: ../src/guestfs.pod:2631
5553 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5554 msgstr ""
5555
5556 #. type: textblock
5557 #: ../src/guestfs.pod:2633
5558 msgid ""
5559 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5560 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5561 "they are not passed via the shell (instead, straight to exec).  You probably "
5562 "want to use the C<sysroot_path()> function however."
5563 msgstr ""
5564
5565 #. type: =head2
5566 #: ../src/guestfs.pod:2639
5567 msgid "SUBMITTING YOUR NEW API ACTIONS"
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../src/guestfs.pod:2641
5572 msgid ""
5573 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5574 "libguestfs> and CC to L<rjones@redhat.com>."
5575 msgstr ""
5576
5577 #. type: =head2
5578 #: ../src/guestfs.pod:2645
5579 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../src/guestfs.pod:2647
5584 msgid "We support i18n (gettext anyhow) in the library."
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../src/guestfs.pod:2649
5589 msgid ""
5590 "However many messages come from the daemon, and we don't translate those at "
5591 "the moment.  One reason is that the appliance generally has all locale files "
5592 "removed from it, because they take up a lot of space.  So we'd have to readd "
5593 "some of those, as well as copying our PO files into the appliance."
5594 msgstr ""
5595
5596 #. type: textblock
5597 #: ../src/guestfs.pod:2655
5598 msgid ""
5599 "Debugging messages are never translated, since they are intended for the "
5600 "programmers."
5601 msgstr ""
5602
5603 #. type: =head2
5604 #: ../src/guestfs.pod:2658
5605 msgid "SOURCE CODE SUBDIRECTORIES"
5606 msgstr ""
5607
5608 #. type: =item
5609 #: ../src/guestfs.pod:2662 ../src/guestfs-actions.pod:5806
5610 #: ../fish/guestfish-actions.pod:3900
5611 msgid "C<appliance>"
5612 msgstr ""
5613
5614 #. type: textblock
5615 #: ../src/guestfs.pod:2664
5616 msgid "The libguestfs appliance, build scripts and so on."
5617 msgstr ""
5618
5619 #. type: =item
5620 #: ../src/guestfs.pod:2666
5621 msgid "C<capitests>"
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../src/guestfs.pod:2668
5626 msgid "Automated tests of the C API."
5627 msgstr ""
5628
5629 #. type: =item
5630 #: ../src/guestfs.pod:2670
5631 msgid "C<cat>"
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../src/guestfs.pod:2672
5636 msgid ""
5637 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5638 "documentation."
5639 msgstr ""
5640
5641 #. type: =item
5642 #: ../src/guestfs.pod:2675
5643 msgid "C<contrib>"
5644 msgstr ""
5645
5646 #. type: textblock
5647 #: ../src/guestfs.pod:2677
5648 msgid "Outside contributions, experimental parts."
5649 msgstr ""
5650
5651 #. type: =item
5652 #: ../src/guestfs.pod:2679
5653 msgid "C<daemon>"
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../src/guestfs.pod:2681
5658 msgid ""
5659 "The daemon that runs inside the libguestfs appliance and carries out actions."
5660 msgstr ""
5661
5662 #. type: =item
5663 #: ../src/guestfs.pod:2684
5664 msgid "C<df>"
5665 msgstr ""
5666
5667 #. type: textblock
5668 #: ../src/guestfs.pod:2686
5669 msgid "L<virt-df(1)> command and documentation."
5670 msgstr ""
5671
5672 #. type: =item
5673 #: ../src/guestfs.pod:2688
5674 msgid "C<examples>"
5675 msgstr ""
5676
5677 #. type: textblock
5678 #: ../src/guestfs.pod:2690
5679 msgid "C API example code."
5680 msgstr ""
5681
5682 #. type: =item
5683 #: ../src/guestfs.pod:2692
5684 msgid "C<fish>"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../src/guestfs.pod:2694
5689 msgid ""
5690 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5691 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5692 "L<virt-tar-out(1)>."
5693 msgstr ""
5694
5695 #. type: =item
5696 #: ../src/guestfs.pod:2698
5697 msgid "C<fuse>"
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../src/guestfs.pod:2700
5702 msgid ""
5703 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5704 msgstr ""
5705
5706 #. type: =item
5707 #: ../src/guestfs.pod:2702
5708 msgid "C<generator>"
5709 msgstr ""
5710
5711 #. type: textblock
5712 #: ../src/guestfs.pod:2704
5713 msgid ""
5714 "The crucially important generator, used to automatically generate large "
5715 "amounts of boilerplate C code for things like RPC and bindings."
5716 msgstr ""
5717
5718 #. type: =item
5719 #: ../src/guestfs.pod:2707
5720 msgid "C<images>"
5721 msgstr ""
5722
5723 #. type: textblock
5724 #: ../src/guestfs.pod:2709
5725 msgid "Files used by the test suite."
5726 msgstr ""
5727
5728 #. type: textblock
5729 #: ../src/guestfs.pod:2711
5730 msgid "Some \"phony\" guest images which we test against."
5731 msgstr ""
5732
5733 #. type: =item
5734 #: ../src/guestfs.pod:2713
5735 msgid "C<inspector>"
5736 msgstr ""
5737
5738 #. type: textblock
5739 #: ../src/guestfs.pod:2715
5740 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5741 msgstr ""
5742
5743 #. type: =item
5744 #: ../src/guestfs.pod:2717
5745 msgid "C<logo>"
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../src/guestfs.pod:2719
5750 msgid "Logo used on the website.  The fish is called Arthur by the way."
5751 msgstr ""
5752
5753 #. type: =item
5754 #: ../src/guestfs.pod:2721
5755 msgid "C<m4>"
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../src/guestfs.pod:2723
5760 msgid "M4 macros used by autoconf."
5761 msgstr ""
5762
5763 #. type: =item
5764 #: ../src/guestfs.pod:2725
5765 msgid "C<po>"
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../src/guestfs.pod:2727
5770 msgid "Translations of simple gettext strings."
5771 msgstr ""
5772
5773 #. type: =item
5774 #: ../src/guestfs.pod:2729
5775 msgid "C<po-docs>"
5776 msgstr ""
5777
5778 #. type: textblock
5779 #: ../src/guestfs.pod:2731
5780 msgid ""
5781 "The build infrastructure and PO files for translations of manpages and POD "
5782 "files.  Eventually this will be combined with the C<po> directory, but that "
5783 "is rather complicated."
5784 msgstr ""
5785
5786 #. type: =item
5787 #: ../src/guestfs.pod:2735
5788 msgid "C<regressions>"
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../src/guestfs.pod:2737
5793 msgid "Regression tests."
5794 msgstr ""
5795
5796 #. type: =item
5797 #: ../src/guestfs.pod:2739
5798 msgid "C<rescue>"
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../src/guestfs.pod:2741
5803 msgid "L<virt-rescue(1)> command and documentation."
5804 msgstr ""
5805
5806 #. type: =item
5807 #: ../src/guestfs.pod:2743
5808 msgid "C<src>"
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../src/guestfs.pod:2745
5813 msgid "Source code to the C library."
5814 msgstr ""
5815
5816 #. type: =item
5817 #: ../src/guestfs.pod:2747
5818 msgid "C<tools>"
5819 msgstr ""
5820
5821 #. type: textblock
5822 #: ../src/guestfs.pod:2749
5823 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5824 msgstr ""
5825
5826 #. type: =item
5827 #: ../src/guestfs.pod:2751
5828 msgid "C<test-tool>"
5829 msgstr ""
5830
5831 #. type: textblock
5832 #: ../src/guestfs.pod:2753
5833 msgid ""
5834 "Test tool for end users to test if their qemu/kernel combination will work "
5835 "with libguestfs."
5836 msgstr ""
5837
5838 #. type: =item
5839 #: ../src/guestfs.pod:2756
5840 msgid "C<csharp>"
5841 msgstr ""
5842
5843 #. type: =item
5844 #: ../src/guestfs.pod:2758
5845 msgid "C<haskell>"
5846 msgstr ""
5847
5848 #. type: =item
5849 #: ../src/guestfs.pod:2760
5850 msgid "C<java>"
5851 msgstr ""
5852
5853 #. type: =item
5854 #: ../src/guestfs.pod:2762
5855 msgid "C<ocaml>"
5856 msgstr ""
5857
5858 #. type: =item
5859 #: ../src/guestfs.pod:2764
5860 msgid "C<php>"
5861 msgstr ""
5862
5863 #. type: =item
5864 #: ../src/guestfs.pod:2766
5865 msgid "C<perl>"
5866 msgstr ""
5867
5868 #. type: =item
5869 #: ../src/guestfs.pod:2768
5870 msgid "C<python>"
5871 msgstr ""
5872
5873 #. type: =item
5874 #: ../src/guestfs.pod:2770
5875 msgid "C<ruby>"
5876 msgstr ""
5877
5878 #. type: textblock
5879 #: ../src/guestfs.pod:2772
5880 msgid "Language bindings."
5881 msgstr ""
5882
5883 # type: =head1
5884 #. type: =head1
5885 #: ../src/guestfs.pod:2776 ../fish/guestfish.pod:1015
5886 #: ../test-tool/libguestfs-test-tool.pod:82 ../tools/virt-edit.pl:476
5887 msgid "ENVIRONMENT VARIABLES"
5888 msgstr ""
5889
5890 # type: =item
5891 #. type: =item
5892 #: ../src/guestfs.pod:2780 ../fish/guestfish.pod:1041
5893 msgid "LIBGUESTFS_APPEND"
5894 msgstr ""
5895
5896 # type: textblock
5897 #. type: textblock
5898 #: ../src/guestfs.pod:2782 ../fish/guestfish.pod:1043
5899 msgid "Pass additional options to the guest kernel."
5900 msgstr ""
5901
5902 # type: =item
5903 #. type: =item
5904 #: ../src/guestfs.pod:2784 ../fish/guestfish.pod:1045
5905 msgid "LIBGUESTFS_DEBUG"
5906 msgstr ""
5907
5908 # type: textblock
5909 #. type: textblock
5910 #: ../src/guestfs.pod:2786
5911 msgid ""
5912 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5913 "effect as calling C<guestfs_set_verbose (g, 1)>."
5914 msgstr ""
5915
5916 # type: =item
5917 #. type: =item
5918 #: ../src/guestfs.pod:2789 ../fish/guestfish.pod:1050
5919 msgid "LIBGUESTFS_MEMSIZE"
5920 msgstr ""
5921
5922 # type: textblock
5923 #. type: textblock
5924 #: ../src/guestfs.pod:2791 ../fish/guestfish.pod:1052
5925 msgid ""
5926 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5927 msgstr ""
5928
5929 # type: verbatim
5930 #. type: verbatim
5931 #: ../src/guestfs.pod:2794 ../fish/guestfish.pod:1055
5932 #, no-wrap
5933 msgid ""
5934 " LIBGUESTFS_MEMSIZE=700\n"
5935 "\n"
5936 msgstr ""
5937
5938 # type: =item
5939 #. type: =item
5940 #: ../src/guestfs.pod:2796 ../fish/guestfish.pod:1057
5941 msgid "LIBGUESTFS_PATH"
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../src/guestfs.pod:2798
5946 msgid ""
5947 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5948 "the discussion of paths in section L</PATH> above."
5949 msgstr ""
5950
5951 # type: =item
5952 #. type: =item
5953 #: ../src/guestfs.pod:2801 ../fish/guestfish.pod:1062
5954 msgid "LIBGUESTFS_QEMU"
5955 msgstr ""
5956
5957 # type: textblock
5958 #. type: textblock
5959 #: ../src/guestfs.pod:2803 ../fish/guestfish.pod:1064
5960 msgid ""
5961 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5962 "which was found at compile time by the configure script is used."
5963 msgstr ""
5964
5965 # type: textblock
5966 #. type: textblock
5967 #: ../src/guestfs.pod:2807
5968 msgid "See also L</QEMU WRAPPERS> above."
5969 msgstr ""
5970
5971 # type: =item
5972 #. type: =item
5973 #: ../src/guestfs.pod:2809 ../fish/guestfish.pod:1068
5974 msgid "LIBGUESTFS_TRACE"
5975 msgstr ""
5976
5977 # type: textblock
5978 #. type: textblock
5979 #: ../src/guestfs.pod:2811
5980 msgid ""
5981 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5982 "effect as calling C<guestfs_set_trace (g, 1)>."
5983 msgstr ""
5984
5985 # type: =item
5986 #. type: =item
5987 #: ../src/guestfs.pod:2814 ../fish/guestfish.pod:1077
5988 msgid "TMPDIR"
5989 msgstr ""
5990
5991 #. type: textblock
5992 #: ../src/guestfs.pod:2816 ../fish/guestfish.pod:1079
5993 msgid ""
5994 "Location of temporary directory, defaults to C</tmp> except for the cached "
5995 "supermin appliance which defaults to C</var/tmp>."
5996 msgstr ""
5997
5998 #. type: textblock
5999 #: ../src/guestfs.pod:2819 ../fish/guestfish.pod:1082
6000 msgid ""
6001 "If libguestfs was compiled to use the supermin appliance then the real "
6002 "appliance is cached in this directory, shared between all handles belonging "
6003 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
6004 "use in case C</var/tmp> is not large enough."
6005 msgstr ""
6006
6007 # type: =head1
6008 #. type: =head1
6009 #: ../src/guestfs.pod:2827 ../fish/guestfish.pod:1149
6010 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:267
6011 #: ../tools/virt-edit.pl:496 ../tools/virt-win-reg.pl:572
6012 #: ../tools/virt-list-filesystems.pl:189 ../tools/virt-tar.pl:286
6013 #: ../tools/virt-make-fs.pl:539 ../tools/virt-list-partitions.pl:257
6014 msgid "SEE ALSO"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../src/guestfs.pod:2829
6019 msgid ""
6020 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6021 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6022 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6023 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6024 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6025 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6026 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6027 msgstr ""
6028
6029 # type: textblock
6030 #. type: textblock
6031 #: ../src/guestfs.pod:2856
6032 msgid ""
6033 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6034 "(8)>, L<disktype(1)>."
6035 msgstr ""
6036
6037 # type: =head1
6038 #. type: =head1
6039 #: ../src/guestfs.pod:2863 ../tools/virt-win-reg.pl:587
6040 #: ../tools/virt-make-fs.pl:553
6041 msgid "BUGS"
6042 msgstr ""
6043
6044 # type: textblock
6045 #. type: textblock
6046 #: ../src/guestfs.pod:2865
6047 msgid "To get a list of bugs against libguestfs use this link:"
6048 msgstr ""
6049
6050 # type: textblock
6051 #. type: textblock
6052 #: ../src/guestfs.pod:2867
6053 msgid ""
6054 "L<https://bugzilla.redhat.com/buglist.cgi?"
6055 "component=libguestfs&product=Virtualization+Tools>"
6056 msgstr ""
6057
6058 # type: textblock
6059 #. type: textblock
6060 #: ../src/guestfs.pod:2869
6061 msgid "To report a new bug against libguestfs use this link:"
6062 msgstr ""
6063
6064 # type: textblock
6065 #. type: textblock
6066 #: ../src/guestfs.pod:2871
6067 msgid ""
6068 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6069 "component=libguestfs&product=Virtualization+Tools>"
6070 msgstr ""
6071
6072 # type: textblock
6073 #. type: textblock
6074 #: ../src/guestfs.pod:2873
6075 msgid "When reporting a bug, please check:"
6076 msgstr ""
6077
6078 # type: textblock
6079 #. type: textblock
6080 #: ../src/guestfs.pod:2879
6081 msgid "That the bug hasn't been reported already."
6082 msgstr ""
6083
6084 # type: textblock
6085 #. type: textblock
6086 #: ../src/guestfs.pod:2883
6087 msgid "That you are testing a recent version."
6088 msgstr ""
6089
6090 # type: textblock
6091 #. type: textblock
6092 #: ../src/guestfs.pod:2887
6093 msgid "Describe the bug accurately, and give a way to reproduce it."
6094 msgstr ""
6095
6096 # type: textblock
6097 #. type: textblock
6098 #: ../src/guestfs.pod:2891
6099 msgid ""
6100 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6101 "bug report."
6102 msgstr ""
6103
6104 # type: =head1
6105 #. type: =head1
6106 #: ../src/guestfs.pod:2896 ../fish/guestfish.pod:1172
6107 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:278
6108 msgid "AUTHORS"
6109 msgstr ""
6110
6111 # type: textblock
6112 #. type: textblock
6113 #: ../src/guestfs.pod:2898 ../fish/guestfish.pod:1174
6114 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:280
6115 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6116 msgstr ""
6117
6118 # type: =head1
6119 #. type: =head1
6120 #: ../src/guestfs.pod:2900 ../fish/guestfish.pod:1176
6121 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:282
6122 #: ../tools/virt-edit.pl:514 ../tools/virt-win-reg.pl:602
6123 #: ../tools/virt-list-filesystems.pl:206 ../tools/virt-tar.pl:305
6124 #: ../tools/virt-make-fs.pl:568 ../tools/virt-list-partitions.pl:273
6125 msgid "COPYRIGHT"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../src/guestfs.pod:2902 ../fish/guestfish.pod:1178
6130 #: ../test-tool/libguestfs-test-tool.pod:99
6131 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
6132 msgstr ""
6133
6134 # type: textblock
6135 #. type: textblock
6136 #: ../src/guestfs.pod:2905
6137 msgid ""
6138 "This library is free software; you can redistribute it and/or modify it "
6139 "under the terms of the GNU Lesser General Public License as published by the "
6140 "Free Software Foundation; either version 2 of the License, or (at your "
6141 "option) any later version."
6142 msgstr ""
6143
6144 # type: textblock
6145 #. type: textblock
6146 #: ../src/guestfs.pod:2910
6147 msgid ""
6148 "This library is distributed in the hope that it will be useful, but WITHOUT "
6149 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6150 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6151 "for more details."
6152 msgstr ""
6153
6154 # type: textblock
6155 #. type: textblock
6156 #: ../src/guestfs.pod:2915
6157 msgid ""
6158 "You should have received a copy of the GNU Lesser General Public License "
6159 "along with this library; if not, write to the Free Software Foundation, "
6160 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6161 msgstr ""
6162
6163 # type: =head2
6164 #. type: =head2
6165 #: ../src/guestfs-actions.pod:1
6166 msgid "guestfs_add_cdrom"
6167 msgstr ""
6168
6169 # type: verbatim
6170 #. type: verbatim
6171 #: ../src/guestfs-actions.pod:3
6172 #, no-wrap
6173 msgid ""
6174 " int\n"
6175 " guestfs_add_cdrom (guestfs_h *g,\n"
6176 "                    const char *filename);\n"
6177 "\n"
6178 msgstr ""
6179
6180 # type: textblock
6181 #. type: textblock
6182 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6183 msgid "This function adds a virtual CD-ROM disk image to the guest."
6184 msgstr ""
6185
6186 # type: textblock
6187 #. type: textblock
6188 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6189 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
6190 msgstr ""
6191
6192 # type: textblock
6193 #. type: textblock
6194 #: ../src/guestfs-actions.pod:17
6195 msgid ""
6196 "This call checks for the existence of C<filename>.  This stops you from "
6197 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6198 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6199 "instead."
6200 msgstr ""
6201
6202 # type: textblock
6203 #. type: textblock
6204 #: ../src/guestfs-actions.pod:24
6205 msgid ""
6206 "If you just want to add an ISO file (often you use this as an efficient way "
6207 "to transfer large files into the guest), then you should probably use "
6208 "C<guestfs_add_drive_ro> instead."
6209 msgstr ""
6210
6211 # type: textblock
6212 #. type: textblock
6213 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:134
6214 #: ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:232
6215 #: ../src/guestfs-actions.pod:246 ../src/guestfs-actions.pod:267
6216 #: ../src/guestfs-actions.pod:287 ../src/guestfs-actions.pod:301
6217 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:436
6218 #: ../src/guestfs-actions.pod:450 ../src/guestfs-actions.pod:495
6219 #: ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:541
6220 #: ../src/guestfs-actions.pod:608 ../src/guestfs-actions.pod:641
6221 #: ../src/guestfs-actions.pod:655 ../src/guestfs-actions.pod:670
6222 #: ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:787
6223 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:815
6224 #: ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:996
6225 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1098
6226 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:1135
6227 #: ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1169
6228 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1270
6229 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1337
6230 #: ../src/guestfs-actions.pod:1443 ../src/guestfs-actions.pod:1477
6231 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1717
6232 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2266
6233 #: ../src/guestfs-actions.pod:2410 ../src/guestfs-actions.pod:2471
6234 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:3451
6235 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3491
6236 #: ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3660
6237 #: ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3687
6238 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:3738
6239 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:3830
6240 #: ../src/guestfs-actions.pod:3847 ../src/guestfs-actions.pod:3870
6241 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3925
6242 #: ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:3963
6243 #: ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4010
6244 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:4062
6245 #: ../src/guestfs-actions.pod:4075 ../src/guestfs-actions.pod:4090
6246 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4200
6247 #: ../src/guestfs-actions.pod:4220 ../src/guestfs-actions.pod:4233
6248 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:4302
6249 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4336
6250 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4364
6251 #: ../src/guestfs-actions.pod:4381 ../src/guestfs-actions.pod:4396
6252 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4474
6253 #: ../src/guestfs-actions.pod:4547 ../src/guestfs-actions.pod:4578
6254 #: ../src/guestfs-actions.pod:4597 ../src/guestfs-actions.pod:4616
6255 #: ../src/guestfs-actions.pod:4628 ../src/guestfs-actions.pod:4645
6256 #: ../src/guestfs-actions.pod:4658 ../src/guestfs-actions.pod:4673
6257 #: ../src/guestfs-actions.pod:4688 ../src/guestfs-actions.pod:4723
6258 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4758
6259 #: ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789
6260 #: ../src/guestfs-actions.pod:4838 ../src/guestfs-actions.pod:4875
6261 #: ../src/guestfs-actions.pod:4889 ../src/guestfs-actions.pod:4917
6262 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4952
6263 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5143
6264 #: ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5183
6265 #: ../src/guestfs-actions.pod:5215 ../src/guestfs-actions.pod:5281
6266 #: ../src/guestfs-actions.pod:5298 ../src/guestfs-actions.pod:5311
6267 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5614
6268 #: ../src/guestfs-actions.pod:5633 ../src/guestfs-actions.pod:5652
6269 #: ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5676
6270 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5702
6271 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5732
6272 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5772
6273 #: ../src/guestfs-actions.pod:5791 ../src/guestfs-actions.pod:5821
6274 #: ../src/guestfs-actions.pod:5837 ../src/guestfs-actions.pod:5860
6275 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:5897
6276 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5937
6277 #: ../src/guestfs-actions.pod:5954 ../src/guestfs-actions.pod:5982
6278 #: ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6025
6279 #: ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6068
6280 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6102
6281 #: ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:6162
6282 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6296
6283 #: ../src/guestfs-actions.pod:6417 ../src/guestfs-actions.pod:6429
6284 #: ../src/guestfs-actions.pod:6442 ../src/guestfs-actions.pod:6455
6285 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6490
6286 #: ../src/guestfs-actions.pod:6503 ../src/guestfs-actions.pod:6516
6287 #: ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6590
6288 #: ../src/guestfs-actions.pod:6607 ../src/guestfs-actions.pod:6623
6289 #: ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:6656
6290 #: ../src/guestfs-actions.pod:6669 ../src/guestfs-actions.pod:6689
6291 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6739
6292 #: ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6793
6293 #: ../src/guestfs-actions.pod:6811 ../src/guestfs-actions.pod:6845
6294 #: ../src/guestfs-actions.pod:6881 ../src/guestfs-actions.pod:7000
6295 #: ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7032
6296 #: ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7100
6297 #: ../src/guestfs-actions.pod:7145 ../src/guestfs-actions.pod:7178
6298 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7258
6299 #: ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7343
6300 #: ../src/guestfs-actions.pod:7372
6301 msgid "This function returns 0 on success or -1 on error."
6302 msgstr ""
6303
6304 # type: textblock
6305 #. type: textblock
6306 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:248
6307 #: ../src/guestfs-actions.pod:269 ../fish/guestfish-actions.pod:28
6308 #: ../fish/guestfish-actions.pod:158 ../fish/guestfish-actions.pod:172
6309 msgid ""
6310 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6311 "instead."
6312 msgstr ""
6313
6314 # type: textblock
6315 #. type: textblock
6316 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:251
6317 #: ../src/guestfs-actions.pod:272 ../src/guestfs-actions.pod:1448
6318 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1965
6319 #: ../src/guestfs-actions.pod:4421 ../src/guestfs-actions.pod:7266
6320 #: ../src/guestfs-actions.pod:7435 ../fish/guestfish-actions.pod:31
6321 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:175
6322 #: ../fish/guestfish-actions.pod:956 ../fish/guestfish-actions.pod:1319
6323 #: ../fish/guestfish-actions.pod:1333 ../fish/guestfish-actions.pod:3000
6324 #: ../fish/guestfish-actions.pod:4858 ../fish/guestfish-actions.pod:4955
6325 msgid ""
6326 "Deprecated functions will not be removed from the API, but the fact that "
6327 "they are deprecated indicates that there are problems with correct use of "
6328 "these functions."
6329 msgstr ""
6330
6331 # type: textblock
6332 #. type: textblock
6333 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:136
6334 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1916
6335 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2117
6336 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3473
6337 #: ../src/guestfs-actions.pod:4725 ../src/guestfs-actions.pod:5839
6338 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6070
6339 #: ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6658
6340 #: ../src/guestfs-actions.pod:7180
6341 msgid "(Added in 0.3)"
6342 msgstr ""
6343
6344 # type: =head2
6345 #. type: =head2
6346 #: ../src/guestfs-actions.pod:41
6347 msgid "guestfs_add_domain"
6348 msgstr ""
6349
6350 # type: verbatim
6351 #. type: verbatim
6352 #: ../src/guestfs-actions.pod:43
6353 #, no-wrap
6354 msgid ""
6355 " int\n"
6356 " guestfs_add_domain (guestfs_h *g,\n"
6357 "                     const char *dom,\n"
6358 "                     ...);\n"
6359 "\n"
6360 msgstr ""
6361
6362 # type: textblock
6363 #. type: textblock
6364 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145
6365 #: ../src/guestfs-actions.pod:4435
6366 msgid ""
6367 "You may supply a list of optional arguments to this call.  Use zero or more "
6368 "of the following pairs of parameters, and terminate the list with C<-1> on "
6369 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6370 msgstr ""
6371
6372 #. type: verbatim
6373 #: ../src/guestfs-actions.pod:53
6374 #, no-wrap
6375 msgid ""
6376 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6377 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6378 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6379 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6380 "\n"
6381 msgstr ""
6382
6383 # type: textblock
6384 #. type: textblock
6385 #: ../src/guestfs-actions.pod:58
6386 msgid ""
6387 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6388 "It works by connecting to libvirt, requesting the domain and domain XML from "
6389 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6390 "one."
6391 msgstr ""
6392
6393 # type: textblock
6394 #. type: textblock
6395 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
6396 msgid ""
6397 "The number of disks added is returned.  This operation is atomic: if an "
6398 "error is returned, then no disks are added."
6399 msgstr ""
6400
6401 # type: textblock
6402 #. type: textblock
6403 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
6404 msgid ""
6405 "This function does some minimal checks to make sure the libvirt domain is "
6406 "not running (unless C<readonly> is true).  In a future version we will try "
6407 "to acquire the libvirt lock on each disk."
6408 msgstr ""
6409
6410 # type: textblock
6411 #. type: textblock
6412 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
6413 msgid ""
6414 "Disks must be accessible locally.  This often means that adding disks from a "
6415 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6416 "unless those disks are accessible via the same device path locally too."
6417 msgstr ""
6418
6419 #. type: textblock
6420 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
6421 msgid ""
6422 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6423 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6424 "libvirt URI (or one set through an environment variable, see the libvirt "
6425 "documentation for full details)."
6426 msgstr ""
6427
6428 #. type: textblock
6429 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
6430 msgid ""
6431 "The optional C<live> flag controls whether this call will try to connect to "
6432 "a running virtual machine C<guestfsd> process if it sees a suitable "
6433 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6434 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6435 "DAEMONS> for more information."
6436 msgstr ""
6437
6438 # type: textblock
6439 #. type: textblock
6440 #: ../src/guestfs-actions.pod:88
6441 msgid ""
6442 "The other optional parameters are passed directly through to "
6443 "C<guestfs_add_drive_opts>."
6444 msgstr ""
6445
6446 # type: textblock
6447 #. type: textblock
6448 #: ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:344
6449 #: ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:687
6450 #: ../src/guestfs-actions.pod:718 ../src/guestfs-actions.pod:736
6451 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:1315
6452 #: ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1877
6453 #: ../src/guestfs-actions.pod:1986 ../src/guestfs-actions.pod:2026
6454 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:2104
6455 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2772
6456 #: ../src/guestfs-actions.pod:2793 ../src/guestfs-actions.pod:4861
6457 #: ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5395
6458 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:6766
6459 #: ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7204
6460 #: ../src/guestfs-actions.pod:7217
6461 msgid "On error this function returns -1."
6462 msgstr ""
6463
6464 # type: textblock
6465 #. type: textblock
6466 #: ../src/guestfs-actions.pod:93
6467 msgid "(Added in 1.7.4)"
6468 msgstr ""
6469
6470 # type: =head2
6471 #. type: =head2
6472 #: ../src/guestfs-actions.pod:95
6473 msgid "guestfs_add_domain_va"
6474 msgstr ""
6475
6476 # type: verbatim
6477 #. type: verbatim
6478 #: ../src/guestfs-actions.pod:97
6479 #, no-wrap
6480 msgid ""
6481 " int\n"
6482 " guestfs_add_domain_va (guestfs_h *g,\n"
6483 "                        const char *dom,\n"
6484 "                        va_list args);\n"
6485 "\n"
6486 msgstr ""
6487
6488 # type: textblock
6489 #. type: textblock
6490 #: ../src/guestfs-actions.pod:102
6491 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6492 msgstr ""
6493
6494 # type: textblock
6495 #. type: textblock
6496 #: ../src/guestfs-actions.pod:104 ../src/guestfs-actions.pod:115
6497 #: ../src/guestfs-actions.pod:208 ../src/guestfs-actions.pod:219
6498 #: ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4500
6499 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6500 msgstr ""
6501
6502 # type: =head2
6503 #. type: =head2
6504 #: ../src/guestfs-actions.pod:106
6505 msgid "guestfs_add_domain_argv"
6506 msgstr ""
6507
6508 # type: verbatim
6509 #. type: verbatim
6510 #: ../src/guestfs-actions.pod:108
6511 #, no-wrap
6512 msgid ""
6513 " int\n"
6514 " guestfs_add_domain_argv (guestfs_h *g,\n"
6515 "                          const char *dom,\n"
6516 "                          const struct guestfs_add_domain_argv *optargs);\n"
6517 "\n"
6518 msgstr ""
6519
6520 # type: textblock
6521 #. type: textblock
6522 #: ../src/guestfs-actions.pod:113
6523 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6524 msgstr ""
6525
6526 # type: =head2
6527 #. type: =head2
6528 #: ../src/guestfs-actions.pod:117
6529 msgid "guestfs_add_drive"
6530 msgstr ""
6531
6532 # type: verbatim
6533 #. type: verbatim
6534 #: ../src/guestfs-actions.pod:119
6535 #, no-wrap
6536 msgid ""
6537 " int\n"
6538 " guestfs_add_drive (guestfs_h *g,\n"
6539 "                    const char *filename);\n"
6540 "\n"
6541 msgstr ""
6542
6543 # type: textblock
6544 #. type: textblock
6545 #: ../src/guestfs-actions.pod:123
6546 msgid ""
6547 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6548 "optional parameters, so the disk is added writable, with the format being "
6549 "detected automatically."
6550 msgstr ""
6551
6552 # type: textblock
6553 #. type: textblock
6554 #: ../src/guestfs-actions.pod:127
6555 msgid ""
6556 "Automatic detection of the format opens you up to a potential security hole "
6557 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6558 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6559 "you should think about replacing calls to this function with calls to "
6560 "C<guestfs_add_drive_opts>, and specifying the format."
6561 msgstr ""
6562
6563 # type: =head2
6564 #. type: =head2
6565 #: ../src/guestfs-actions.pod:138
6566 msgid "guestfs_add_drive_opts"
6567 msgstr ""
6568
6569 # type: verbatim
6570 #. type: verbatim
6571 #: ../src/guestfs-actions.pod:140
6572 #, no-wrap
6573 msgid ""
6574 " int\n"
6575 " guestfs_add_drive_opts (guestfs_h *g,\n"
6576 "                         const char *filename,\n"
6577 "                         ...);\n"
6578 "\n"
6579 msgstr ""
6580
6581 # type: verbatim
6582 #. type: verbatim
6583 #: ../src/guestfs-actions.pod:150
6584 #, no-wrap
6585 msgid ""
6586 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6587 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6588 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6589 "\n"
6590 msgstr ""
6591
6592 # type: textblock
6593 #. type: textblock
6594 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
6595 msgid ""
6596 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6597 "The first time you call this function, the disk appears as C</dev/sda>, the "
6598 "second time as C</dev/sdb>, and so on."
6599 msgstr ""
6600
6601 # type: textblock
6602 #. type: textblock
6603 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
6604 msgid ""
6605 "You don't necessarily need to be root when using libguestfs.  However you "
6606 "obviously do need sufficient permissions to access the filename for whatever "
6607 "operations you want to perform (ie. read access if you just want to read the "
6608 "image or write access if you want to modify the image)."
6609 msgstr ""
6610
6611 # type: textblock
6612 #. type: textblock
6613 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
6614 msgid "This call checks that C<filename> exists."
6615 msgstr ""
6616
6617 # type: textblock
6618 #. type: textblock
6619 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4446
6620 #: ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:3011
6621 msgid "The optional arguments are:"
6622 msgstr ""
6623
6624 # type: =item
6625 #. type: =item
6626 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
6627 msgid "C<readonly>"
6628 msgstr ""
6629
6630 # type: textblock
6631 #. type: textblock
6632 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
6633 msgid ""
6634 "If true then the image is treated as read-only.  Writes are still allowed, "
6635 "but they are stored in a temporary snapshot overlay which is discarded at "
6636 "the end.  The disk that you add is not modified."
6637 msgstr ""
6638
6639 # type: =item
6640 #. type: =item
6641 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
6642 msgid "C<format>"
6643 msgstr ""
6644
6645 # type: textblock
6646 #. type: textblock
6647 #: ../src/guestfs-actions.pod:179
6648 msgid ""
6649 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6650 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6651 "Possible formats include C<raw> and C<qcow2>."
6652 msgstr ""
6653
6654 # type: textblock
6655 #. type: textblock
6656 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
6657 msgid ""
6658 "Automatic detection of the format opens you up to a potential security hole "
6659 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6660 "RHBZ#642934.  Specifying the format closes this security hole."
6661 msgstr ""
6662
6663 # type: =item
6664 #. type: =item
6665 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
6666 msgid "C<iface>"
6667 msgstr ""
6668
6669 # type: textblock
6670 #. type: textblock
6671 #: ../src/guestfs-actions.pod:190
6672 msgid ""
6673 "This rarely-used option lets you emulate the behaviour of the deprecated "
6674 "C<guestfs_add_drive_with_if> call (q.v.)"
6675 msgstr ""
6676
6677 # type: textblock
6678 #. type: textblock
6679 #: ../src/guestfs-actions.pod:197
6680 msgid "(Added in 1.5.23)"
6681 msgstr ""
6682
6683 # type: =head2
6684 #. type: =head2
6685 #: ../src/guestfs-actions.pod:199
6686 msgid "guestfs_add_drive_opts_va"
6687 msgstr ""
6688
6689 # type: verbatim
6690 #. type: verbatim
6691 #: ../src/guestfs-actions.pod:201
6692 #, no-wrap
6693 msgid ""
6694 " int\n"
6695 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6696 "                            const char *filename,\n"
6697 "                            va_list args);\n"
6698 "\n"
6699 msgstr ""
6700
6701 # type: textblock
6702 #. type: textblock
6703 #: ../src/guestfs-actions.pod:206
6704 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6705 msgstr ""
6706
6707 # type: =head2
6708 #. type: =head2
6709 #: ../src/guestfs-actions.pod:210
6710 msgid "guestfs_add_drive_opts_argv"
6711 msgstr ""
6712
6713 # type: verbatim
6714 #. type: verbatim
6715 #: ../src/guestfs-actions.pod:212
6716 #, no-wrap
6717 msgid ""
6718 " int\n"
6719 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6720 "                              const char *filename,\n"
6721 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6722 "\n"
6723 msgstr ""
6724
6725 # type: textblock
6726 #. type: textblock
6727 #: ../src/guestfs-actions.pod:217
6728 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6729 msgstr ""
6730
6731 # type: =head2
6732 #. type: =head2
6733 #: ../src/guestfs-actions.pod:221
6734 msgid "guestfs_add_drive_ro"
6735 msgstr ""
6736
6737 # type: verbatim
6738 #. type: verbatim
6739 #: ../src/guestfs-actions.pod:223
6740 #, no-wrap
6741 msgid ""
6742 " int\n"
6743 " guestfs_add_drive_ro (guestfs_h *g,\n"
6744 "                       const char *filename);\n"
6745 "\n"
6746 msgstr ""
6747
6748 # type: textblock
6749 #. type: textblock
6750 #: ../src/guestfs-actions.pod:227
6751 msgid ""
6752 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6753 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6754 "disk is added read-only, with the format being detected automatically."
6755 msgstr ""
6756
6757 # type: textblock
6758 #. type: textblock
6759 #: ../src/guestfs-actions.pod:234
6760 msgid "(Added in 1.0.38)"
6761 msgstr ""
6762
6763 # type: =head2
6764 #. type: =head2
6765 #: ../src/guestfs-actions.pod:236
6766 msgid "guestfs_add_drive_ro_with_if"
6767 msgstr ""
6768
6769 # type: verbatim
6770 #. type: verbatim
6771 #: ../src/guestfs-actions.pod:238
6772 #, no-wrap
6773 msgid ""
6774 " int\n"
6775 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6776 "                               const char *filename,\n"
6777 "                               const char *iface);\n"
6778 "\n"
6779 msgstr ""
6780
6781 # type: textblock
6782 #. type: textblock
6783 #: ../src/guestfs-actions.pod:243
6784 msgid ""
6785 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6786 "QEMU interface emulation to use at run time."
6787 msgstr ""
6788
6789 # type: textblock
6790 #. type: textblock
6791 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
6792 #: ../src/guestfs-actions.pod:2356
6793 msgid "(Added in 1.0.84)"
6794 msgstr ""
6795
6796 # type: =head2
6797 #. type: =head2
6798 #: ../src/guestfs-actions.pod:257
6799 msgid "guestfs_add_drive_with_if"
6800 msgstr ""
6801
6802 # type: verbatim
6803 #. type: verbatim
6804 #: ../src/guestfs-actions.pod:259
6805 #, no-wrap
6806 msgid ""
6807 " int\n"
6808 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6809 "                            const char *filename,\n"
6810 "                            const char *iface);\n"
6811 "\n"
6812 msgstr ""
6813
6814 # type: textblock
6815 #. type: textblock
6816 #: ../src/guestfs-actions.pod:264
6817 msgid ""
6818 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6819 "QEMU interface emulation to use at run time."
6820 msgstr ""
6821
6822 # type: =head2
6823 #. type: =head2
6824 #: ../src/guestfs-actions.pod:278
6825 msgid "guestfs_aug_clear"
6826 msgstr ""
6827
6828 # type: verbatim
6829 #. type: verbatim
6830 #: ../src/guestfs-actions.pod:280
6831 #, no-wrap
6832 msgid ""
6833 " int\n"
6834 " guestfs_aug_clear (guestfs_h *g,\n"
6835 "                    const char *augpath);\n"
6836 "\n"
6837 msgstr ""
6838
6839 # type: textblock
6840 #. type: textblock
6841 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6842 msgid ""
6843 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6844 "L<augtool(1)> C<clear> command."
6845 msgstr ""
6846
6847 # type: textblock
6848 #. type: textblock
6849 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2106
6850 msgid "(Added in 1.3.4)"
6851 msgstr ""
6852
6853 # type: =head2
6854 #. type: =head2
6855 #: ../src/guestfs-actions.pod:291
6856 msgid "guestfs_aug_close"
6857 msgstr ""
6858
6859 # type: verbatim
6860 #. type: verbatim
6861 #: ../src/guestfs-actions.pod:293
6862 #, no-wrap
6863 msgid ""
6864 " int\n"
6865 " guestfs_aug_close (guestfs_h *g);\n"
6866 "\n"
6867 msgstr ""
6868
6869 # type: textblock
6870 #. type: textblock
6871 #: ../src/guestfs-actions.pod:296
6872 msgid ""
6873 "Close the current Augeas handle and free up any resources used by it.  After "
6874 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6875 "any other Augeas functions."
6876 msgstr ""
6877
6878 # type: textblock
6879 #. type: textblock
6880 #: ../src/guestfs-actions.pod:303 ../src/guestfs-actions.pod:328
6881 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
6882 #: ../src/guestfs-actions.pod:418 ../src/guestfs-actions.pod:438
6883 #: ../src/guestfs-actions.pod:452 ../src/guestfs-actions.pod:483
6884 #: ../src/guestfs-actions.pod:497 ../src/guestfs-actions.pod:511
6885 #: ../src/guestfs-actions.pod:525 ../src/guestfs-actions.pod:543
6886 #: ../src/guestfs-actions.pod:5472
6887 msgid "(Added in 0.7)"
6888 msgstr ""
6889
6890 # type: =head2
6891 #. type: =head2
6892 #: ../src/guestfs-actions.pod:305
6893 msgid "guestfs_aug_defnode"
6894 msgstr ""
6895
6896 # type: verbatim
6897 #. type: verbatim
6898 #: ../src/guestfs-actions.pod:307
6899 #, no-wrap
6900 msgid ""
6901 " struct guestfs_int_bool *\n"
6902 " guestfs_aug_defnode (guestfs_h *g,\n"
6903 "                      const char *name,\n"
6904 "                      const char *expr,\n"
6905 "                      const char *val);\n"
6906 "\n"
6907 msgstr ""
6908
6909 # type: textblock
6910 #. type: textblock
6911 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6912 msgid ""
6913 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6914 msgstr ""
6915
6916 # type: textblock
6917 #. type: textblock
6918 #: ../src/guestfs-actions.pod:316
6919 msgid ""
6920 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6921 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6922 "containing that single node."
6923 msgstr ""
6924
6925 # type: textblock
6926 #. type: textblock
6927 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6928 msgid ""
6929 "On success this returns a pair containing the number of nodes in the "
6930 "nodeset, and a boolean flag if a node was created."
6931 msgstr ""
6932
6933 # type: textblock
6934 #. type: textblock
6935 #: ../src/guestfs-actions.pod:324
6936 msgid ""
6937 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6938 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6939 msgstr ""
6940
6941 # type: =head2
6942 #. type: =head2
6943 #: ../src/guestfs-actions.pod:330
6944 msgid "guestfs_aug_defvar"
6945 msgstr ""
6946
6947 # type: verbatim
6948 #. type: verbatim
6949 #: ../src/guestfs-actions.pod:332
6950 #, no-wrap
6951 msgid ""
6952 " int\n"
6953 " guestfs_aug_defvar (guestfs_h *g,\n"
6954 "                     const char *name,\n"
6955 "                     const char *expr);\n"
6956 "\n"
6957 msgstr ""
6958
6959 # type: textblock
6960 #. type: textblock
6961 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6962 msgid ""
6963 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6964 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6965 msgstr ""
6966
6967 # type: textblock
6968 #. type: textblock
6969 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6970 msgid ""
6971 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6972 "evaluates to something which is not a nodeset."
6973 msgstr ""
6974
6975 # type: =head2
6976 #. type: =head2
6977 #: ../src/guestfs-actions.pod:348
6978 msgid "guestfs_aug_get"
6979 msgstr ""
6980
6981 # type: verbatim
6982 #. type: verbatim
6983 #: ../src/guestfs-actions.pod:350
6984 #, no-wrap
6985 msgid ""
6986 " char *\n"
6987 " guestfs_aug_get (guestfs_h *g,\n"
6988 "                  const char *augpath);\n"
6989 "\n"
6990 msgstr ""
6991
6992 # type: textblock
6993 #. type: textblock
6994 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
6995 msgid ""
6996 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6997 "node, the C<value> is returned."
6998 msgstr ""
6999
7000 # type: textblock
7001 #. type: textblock
7002 #: ../src/guestfs-actions.pod:357 ../src/guestfs-actions.pod:857
7003 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:935
7004 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1054
7005 #: ../src/guestfs-actions.pod:1184 ../src/guestfs-actions.pod:1201
7006 #: ../src/guestfs-actions.pod:1220 ../src/guestfs-actions.pod:1354
7007 #: ../src/guestfs-actions.pod:1545 ../src/guestfs-actions.pod:1657
7008 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1837
7009 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1938
7010 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2129
7011 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2528
7012 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2724
7013 #: ../src/guestfs-actions.pod:2744 ../src/guestfs-actions.pod:2864
7014 #: ../src/guestfs-actions.pod:2895 ../src/guestfs-actions.pod:2919
7015 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3016
7016 #: ../src/guestfs-actions.pod:3039 ../src/guestfs-actions.pod:3060
7017 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3982
7018 #: ../src/guestfs-actions.pod:4152 ../src/guestfs-actions.pod:4262
7019 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5200
7020 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5548
7021 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:6209
7022 #: ../src/guestfs-actions.pod:6225 ../src/guestfs-actions.pod:6242
7023 #: ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6940
7024 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6977
7025 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7429
7026 msgid ""
7027 "This function returns a string, or NULL on error.  I<The caller must free "
7028 "the returned string after use>."
7029 msgstr ""
7030
7031 # type: =head2
7032 #. type: =head2
7033 #: ../src/guestfs-actions.pod:362
7034 msgid "guestfs_aug_init"
7035 msgstr ""
7036
7037 # type: verbatim
7038 #. type: verbatim
7039 #: ../src/guestfs-actions.pod:364
7040 #, no-wrap
7041 msgid ""
7042 " int\n"
7043 " guestfs_aug_init (guestfs_h *g,\n"
7044 "                   const char *root,\n"
7045 "                   int flags);\n"
7046 "\n"
7047 msgstr ""
7048
7049 # type: textblock
7050 #. type: textblock
7051 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
7052 msgid ""
7053 "Create a new Augeas handle for editing configuration files.  If there was "
7054 "any previous Augeas handle associated with this guestfs session, then it is "
7055 "closed."
7056 msgstr ""
7057
7058 # type: textblock
7059 #. type: textblock
7060 #: ../src/guestfs-actions.pod:373
7061 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7062 msgstr ""
7063
7064 # type: textblock
7065 #. type: textblock
7066 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
7067 msgid ""
7068 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7069 msgstr ""
7070
7071 # type: textblock
7072 #. type: textblock
7073 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
7074 msgid ""
7075 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7076 "logical I<or> of the following integers:"
7077 msgstr ""
7078
7079 # type: =item
7080 #. type: =item
7081 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
7082 msgid "C<AUG_SAVE_BACKUP> = 1"
7083 msgstr ""
7084
7085 # type: textblock
7086 #. type: textblock
7087 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
7088 msgid "Keep the original file with a C<.augsave> extension."
7089 msgstr ""
7090
7091 # type: =item
7092 #. type: =item
7093 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
7094 msgid "C<AUG_SAVE_NEWFILE> = 2"
7095 msgstr ""
7096
7097 # type: textblock
7098 #. type: textblock
7099 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
7100 msgid ""
7101 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7102 "original.  Overrides C<AUG_SAVE_BACKUP>."
7103 msgstr ""
7104
7105 # type: =item
7106 #. type: =item
7107 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
7108 msgid "C<AUG_TYPE_CHECK> = 4"
7109 msgstr ""
7110
7111 # type: textblock
7112 #. type: textblock
7113 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
7114 msgid "Typecheck lenses (can be expensive)."
7115 msgstr ""
7116
7117 # type: =item
7118 #. type: =item
7119 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
7120 msgid "C<AUG_NO_STDINC> = 8"
7121 msgstr ""
7122
7123 # type: textblock
7124 #. type: textblock
7125 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
7126 msgid "Do not use standard load path for modules."
7127 msgstr ""
7128
7129 # type: =item
7130 #. type: =item
7131 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
7132 msgid "C<AUG_SAVE_NOOP> = 16"
7133 msgstr ""
7134
7135 # type: textblock
7136 #. type: textblock
7137 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
7138 msgid "Make save a no-op, just record what would have been changed."
7139 msgstr ""
7140
7141 # type: =item
7142 #. type: =item
7143 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
7144 msgid "C<AUG_NO_LOAD> = 32"
7145 msgstr ""
7146
7147 # type: textblock
7148 #. type: textblock
7149 #: ../src/guestfs-actions.pod:408
7150 msgid "Do not load the tree in C<guestfs_aug_init>."
7151 msgstr ""
7152
7153 # type: textblock
7154 #. type: textblock
7155 #: ../src/guestfs-actions.pod:412
7156 msgid "To close the handle, you can call C<guestfs_aug_close>."
7157 msgstr ""
7158
7159 # type: textblock
7160 #. type: textblock
7161 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
7162 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7163 msgstr ""
7164
7165 # type: =head2
7166 #. type: =head2
7167 #: ../src/guestfs-actions.pod:420
7168 msgid "guestfs_aug_insert"
7169 msgstr ""
7170
7171 # type: verbatim
7172 #. type: verbatim
7173 #: ../src/guestfs-actions.pod:422
7174 #, no-wrap
7175 msgid ""
7176 " int\n"
7177 " guestfs_aug_insert (guestfs_h *g,\n"
7178 "                     const char *augpath,\n"
7179 "                     const char *label,\n"
7180 "                     int before);\n"
7181 "\n"
7182 msgstr ""
7183
7184 # type: textblock
7185 #. type: textblock
7186 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
7187 msgid ""
7188 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7189 "or after C<path> (depending on the boolean flag C<before>)."
7190 msgstr ""
7191
7192 # type: textblock
7193 #. type: textblock
7194 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
7195 msgid ""
7196 "C<path> must match exactly one existing node in the tree, and C<label> must "
7197 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7198 msgstr ""
7199
7200 # type: =head2
7201 #. type: =head2
7202 #: ../src/guestfs-actions.pod:440
7203 msgid "guestfs_aug_load"
7204 msgstr ""
7205
7206 # type: verbatim
7207 #. type: verbatim
7208 #: ../src/guestfs-actions.pod:442
7209 #, no-wrap
7210 msgid ""
7211 " int\n"
7212 " guestfs_aug_load (guestfs_h *g);\n"
7213 "\n"
7214 msgstr ""
7215
7216 # type: textblock
7217 #. type: textblock
7218 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
7219 msgid "Load files into the tree."
7220 msgstr ""
7221
7222 # type: textblock
7223 #. type: textblock
7224 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
7225 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7226 msgstr ""
7227
7228 # type: =head2
7229 #. type: =head2
7230 #: ../src/guestfs-actions.pod:454
7231 msgid "guestfs_aug_ls"
7232 msgstr ""
7233
7234 # type: verbatim
7235 #. type: verbatim
7236 #: ../src/guestfs-actions.pod:456
7237 #, no-wrap
7238 msgid ""
7239 " char **\n"
7240 " guestfs_aug_ls (guestfs_h *g,\n"
7241 "                 const char *augpath);\n"
7242 "\n"
7243 msgstr ""
7244
7245 # type: textblock
7246 #. type: textblock
7247 #: ../src/guestfs-actions.pod:460
7248 msgid ""
7249 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7250 "sorting the resulting nodes into alphabetical order."
7251 msgstr ""
7252
7253 # type: textblock
7254 #. type: textblock
7255 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:479
7256 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:1073
7257 #: ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:1388
7258 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1510
7259 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:2201
7260 #: ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2236
7261 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2303
7262 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2423
7263 #: ../src/guestfs-actions.pod:2682 ../src/guestfs-actions.pod:2973
7264 #: ../src/guestfs-actions.pod:3262 ../src/guestfs-actions.pod:3552
7265 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3719
7266 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4822
7267 #: ../src/guestfs-actions.pod:5342 ../src/guestfs-actions.pod:5468
7268 #: ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:6282
7269 #: ../src/guestfs-actions.pod:6343 ../src/guestfs-actions.pod:6398
7270 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6568
7271 #: ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7070
7272 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7282
7273 #: ../src/guestfs-actions.pod:7301 ../src/guestfs-actions.pod:7386
7274 #: ../src/guestfs-actions.pod:7405 ../src/guestfs-actions.pod:7451
7275 #: ../src/guestfs-actions.pod:7470
7276 msgid ""
7277 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7278 ">), or NULL if there was an error.  I<The caller must free the strings and "
7279 "the array after use>."
7280 msgstr ""
7281
7282 # type: textblock
7283 #. type: textblock
7284 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:998
7285 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1426
7286 #: ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3371
7287 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4015
7288 #: ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4235
7289 #: ../src/guestfs-actions.pod:4398 ../src/guestfs-actions.pod:4826
7290 #: ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5678
7291 #: ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:5704
7292 #: ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6782
7293 #: ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:7034
7294 #: ../src/guestfs-actions.pod:7270
7295 msgid "(Added in 0.8)"
7296 msgstr ""
7297
7298 # type: =head2
7299 #. type: =head2
7300 #: ../src/guestfs-actions.pod:469
7301 msgid "guestfs_aug_match"
7302 msgstr ""
7303
7304 # type: verbatim
7305 #. type: verbatim
7306 #: ../src/guestfs-actions.pod:471
7307 #, no-wrap
7308 msgid ""
7309 " char **\n"
7310 " guestfs_aug_match (guestfs_h *g,\n"
7311 "                    const char *augpath);\n"
7312 "\n"
7313 msgstr ""
7314
7315 # type: textblock
7316 #. type: textblock
7317 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
7318 msgid ""
7319 "Returns a list of paths which match the path expression C<path>.  The "
7320 "returned paths are sufficiently qualified so that they match exactly one "
7321 "node in the current tree."
7322 msgstr ""
7323
7324 # type: =head2
7325 #. type: =head2
7326 #: ../src/guestfs-actions.pod:485
7327 msgid "guestfs_aug_mv"
7328 msgstr ""
7329
7330 # type: verbatim
7331 #. type: verbatim
7332 #: ../src/guestfs-actions.pod:487
7333 #, no-wrap
7334 msgid ""
7335 " int\n"
7336 " guestfs_aug_mv (guestfs_h *g,\n"
7337 "                 const char *src,\n"
7338 "                 const char *dest);\n"
7339 "\n"
7340 msgstr ""
7341
7342 # type: textblock
7343 #. type: textblock
7344 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
7345 msgid ""
7346 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7347 "C<dest> is overwritten if it exists."
7348 msgstr ""
7349
7350 # type: =head2
7351 #. type: =head2
7352 #: ../src/guestfs-actions.pod:499
7353 msgid "guestfs_aug_rm"
7354 msgstr ""
7355
7356 # type: verbatim
7357 #. type: verbatim
7358 #: ../src/guestfs-actions.pod:501
7359 #, no-wrap
7360 msgid ""
7361 " int\n"
7362 " guestfs_aug_rm (guestfs_h *g,\n"
7363 "                 const char *augpath);\n"
7364 "\n"
7365 msgstr ""
7366
7367 # type: textblock
7368 #. type: textblock
7369 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
7370 msgid "Remove C<path> and all of its children."
7371 msgstr ""
7372
7373 # type: textblock
7374 #. type: textblock
7375 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
7376 msgid "On success this returns the number of entries which were removed."
7377 msgstr ""
7378
7379 # type: =head2
7380 #. type: =head2
7381 #: ../src/guestfs-actions.pod:513
7382 msgid "guestfs_aug_save"
7383 msgstr ""
7384
7385 # type: verbatim
7386 #. type: verbatim
7387 #: ../src/guestfs-actions.pod:515
7388 #, no-wrap
7389 msgid ""
7390 " int\n"
7391 " guestfs_aug_save (guestfs_h *g);\n"
7392 "\n"
7393 msgstr ""
7394
7395 # type: textblock
7396 #. type: textblock
7397 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
7398 msgid "This writes all pending changes to disk."
7399 msgstr ""
7400
7401 # type: textblock
7402 #. type: textblock
7403 #: ../src/guestfs-actions.pod:520
7404 msgid ""
7405 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7406 "are saved."
7407 msgstr ""
7408
7409 # type: =head2
7410 #. type: =head2
7411 #: ../src/guestfs-actions.pod:527
7412 msgid "guestfs_aug_set"
7413 msgstr ""
7414
7415 # type: verbatim
7416 #. type: verbatim
7417 #: ../src/guestfs-actions.pod:529
7418 #, no-wrap
7419 msgid ""
7420 " int\n"
7421 " guestfs_aug_set (guestfs_h *g,\n"
7422 "                  const char *augpath,\n"
7423 "                  const char *val);\n"
7424 "\n"
7425 msgstr ""
7426
7427 # type: textblock
7428 #. type: textblock
7429 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
7430 msgid "Set the value associated with C<path> to C<val>."
7431 msgstr ""
7432
7433 # type: textblock
7434 #. type: textblock
7435 #: ../src/guestfs-actions.pod:536
7436 msgid ""
7437 "In the Augeas API, it is possible to clear a node by setting the value to "
7438 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7439 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7440 msgstr ""
7441
7442 # type: =head2
7443 #. type: =head2
7444 #: ../src/guestfs-actions.pod:545
7445 msgid "guestfs_available"
7446 msgstr ""
7447
7448 # type: verbatim
7449 #. type: verbatim
7450 #: ../src/guestfs-actions.pod:547
7451 #, no-wrap
7452 msgid ""
7453 " int\n"
7454 " guestfs_available (guestfs_h *g,\n"
7455 "                    char *const *groups);\n"
7456 "\n"
7457 msgstr ""
7458
7459 # type: textblock
7460 #. type: textblock
7461 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
7462 msgid ""
7463 "This command is used to check the availability of some groups of "
7464 "functionality in the appliance, which not all builds of the libguestfs "
7465 "appliance will be able to provide."
7466 msgstr ""
7467
7468 # type: textblock
7469 #. type: textblock
7470 #: ../src/guestfs-actions.pod:555
7471 msgid ""
7472 "The libguestfs groups, and the functions that those groups correspond to, "
7473 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7474 "runtime by calling C<guestfs_available_all_groups>."
7475 msgstr ""
7476
7477 # type: textblock
7478 #. type: textblock
7479 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
7480 msgid ""
7481 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7482 "\"]> would check for the availability of the Linux inotify functions and "
7483 "Augeas (configuration file editing) functions."
7484 msgstr ""
7485
7486 # type: textblock
7487 #. type: textblock
7488 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
7489 msgid "The command returns no error if I<all> requested groups are available."
7490 msgstr ""
7491
7492 # type: textblock
7493 #. type: textblock
7494 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
7495 msgid ""
7496 "It fails with an error if one or more of the requested groups is unavailable "
7497 "in the appliance."
7498 msgstr ""
7499
7500 # type: textblock
7501 #. type: textblock
7502 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
7503 msgid ""
7504 "If an unknown group name is included in the list of groups then an error is "
7505 "always returned."
7506 msgstr ""
7507
7508 # type: textblock
7509 #. type: textblock
7510 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
7511 msgid "I<Notes:>"
7512 msgstr ""
7513
7514 # type: textblock
7515 #. type: textblock
7516 #: ../src/guestfs-actions.pod:579
7517 msgid "You must call C<guestfs_launch> before calling this function."
7518 msgstr ""
7519
7520 # type: textblock
7521 #. type: textblock
7522 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
7523 msgid ""
7524 "The reason is because we don't know what groups are supported by the "
7525 "appliance/daemon until it is running and can be queried."
7526 msgstr ""
7527
7528 # type: textblock
7529 #. type: textblock
7530 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
7531 msgid ""
7532 "If a group of functions is available, this does not necessarily mean that "
7533 "they will work.  You still have to check for errors when calling individual "
7534 "API functions even if they are available."
7535 msgstr ""
7536
7537 # type: textblock
7538 #. type: textblock
7539 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
7540 msgid ""
7541 "It is usually the job of distro packagers to build complete functionality "
7542 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7543 "with all requirements satisfied, will support everything."
7544 msgstr ""
7545
7546 # type: textblock
7547 #. type: textblock
7548 #: ../src/guestfs-actions.pod:601
7549 msgid ""
7550 "This call was added in version C<1.0.80>.  In previous versions of "
7551 "libguestfs all you could do would be to speculatively execute a command to "
7552 "find out if the daemon implemented it.  See also C<guestfs_version>."
7553 msgstr ""
7554
7555 # type: textblock
7556 #. type: textblock
7557 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
7558 msgid "(Added in 1.0.80)"
7559 msgstr ""
7560
7561 # type: =head2
7562 #. type: =head2
7563 #: ../src/guestfs-actions.pod:612
7564 msgid "guestfs_available_all_groups"
7565 msgstr ""
7566
7567 # type: verbatim
7568 #. type: verbatim
7569 #: ../src/guestfs-actions.pod:614
7570 #, no-wrap
7571 msgid ""
7572 " char **\n"
7573 " guestfs_available_all_groups (guestfs_h *g);\n"
7574 "\n"
7575 msgstr ""
7576
7577 # type: textblock
7578 #. type: textblock
7579 #: ../src/guestfs-actions.pod:617
7580 msgid ""
7581 "This command returns a list of all optional groups that this daemon knows "
7582 "about.  Note this returns both supported and unsupported groups.  To find "
7583 "out which ones the daemon can actually support you have to call "
7584 "C<guestfs_available> on each member of the returned list."
7585 msgstr ""
7586
7587 # type: textblock
7588 #. type: textblock
7589 #: ../src/guestfs-actions.pod:623
7590 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7591 msgstr ""
7592
7593 # type: textblock
7594 #. type: textblock
7595 #: ../src/guestfs-actions.pod:629
7596 msgid "(Added in 1.3.15)"
7597 msgstr ""
7598
7599 # type: =head2
7600 #. type: =head2
7601 #: ../src/guestfs-actions.pod:631
7602 msgid "guestfs_base64_in"
7603 msgstr ""
7604
7605 # type: verbatim
7606 #. type: verbatim
7607 #: ../src/guestfs-actions.pod:633
7608 #, no-wrap
7609 msgid ""
7610 " int\n"
7611 " guestfs_base64_in (guestfs_h *g,\n"
7612 "                    const char *base64file,\n"
7613 "                    const char *filename);\n"
7614 "\n"
7615 msgstr ""
7616
7617 # type: textblock
7618 #. type: textblock
7619 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
7620 msgid ""
7621 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7622 msgstr ""
7623
7624 # type: textblock
7625 #. type: textblock
7626 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
7627 msgid "(Added in 1.3.5)"
7628 msgstr ""
7629
7630 # type: =head2
7631 #. type: =head2
7632 #: ../src/guestfs-actions.pod:645
7633 msgid "guestfs_base64_out"
7634 msgstr ""
7635
7636 # type: verbatim
7637 #. type: verbatim
7638 #: ../src/guestfs-actions.pod:647
7639 #, no-wrap
7640 msgid ""
7641 " int\n"
7642 " guestfs_base64_out (guestfs_h *g,\n"
7643 "                     const char *filename,\n"
7644 "                     const char *base64file);\n"
7645 "\n"
7646 msgstr ""
7647
7648 # type: textblock
7649 #. type: textblock
7650 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
7651 msgid ""
7652 "This command downloads the contents of C<filename>, writing it out to local "
7653 "file C<base64file> encoded as base64."
7654 msgstr ""
7655
7656 # type: =head2
7657 #. type: =head2
7658 #: ../src/guestfs-actions.pod:659
7659 msgid "guestfs_blockdev_flushbufs"
7660 msgstr ""
7661
7662 # type: verbatim
7663 #. type: verbatim
7664 #: ../src/guestfs-actions.pod:661
7665 #, no-wrap
7666 msgid ""
7667 " int\n"
7668 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7669 "                             const char *device);\n"
7670 "\n"
7671 msgstr ""
7672
7673 # type: textblock
7674 #. type: textblock
7675 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
7676 msgid ""
7677 "This tells the kernel to flush internal buffers associated with C<device>."
7678 msgstr ""
7679
7680 # type: textblock
7681 #. type: textblock
7682 #: ../src/guestfs-actions.pod:668 ../src/guestfs-actions.pod:685
7683 #: ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:716
7684 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:753
7685 #: ../src/guestfs-actions.pod:767 ../src/guestfs-actions.pod:785
7686 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:813
7687 #: ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:459
7688 #: ../fish/guestfish-actions.pod:468 ../fish/guestfish-actions.pod:478
7689 #: ../fish/guestfish-actions.pod:490 ../fish/guestfish-actions.pod:503
7690 #: ../fish/guestfish-actions.pod:511 ../fish/guestfish-actions.pod:522
7691 #: ../fish/guestfish-actions.pod:530 ../fish/guestfish-actions.pod:538
7692 msgid "This uses the L<blockdev(8)> command."
7693 msgstr ""
7694
7695 # type: textblock
7696 #. type: textblock
7697 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:689
7698 #: ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:720
7699 #: ../src/guestfs-actions.pod:738 ../src/guestfs-actions.pod:757
7700 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:789
7701 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:817
7702 msgid "(Added in 0.9.3)"
7703 msgstr ""
7704
7705 # type: =head2
7706 #. type: =head2
7707 #: ../src/guestfs-actions.pod:674
7708 msgid "guestfs_blockdev_getbsz"
7709 msgstr ""
7710
7711 # type: verbatim
7712 #. type: verbatim
7713 #: ../src/guestfs-actions.pod:676
7714 #, no-wrap
7715 msgid ""
7716 " int\n"
7717 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7718 "                          const char *device);\n"
7719 "\n"
7720 msgstr ""
7721
7722 # type: textblock
7723 #. type: textblock
7724 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
7725 msgid "This returns the block size of a device."
7726 msgstr ""
7727
7728 # type: textblock
7729 #. type: textblock
7730 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782
7731 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
7732 msgid ""
7733 "(Note this is different from both I<size in blocks> and I<filesystem block "
7734 "size>)."
7735 msgstr ""
7736
7737 # type: =head2
7738 #. type: =head2
7739 #: ../src/guestfs-actions.pod:691
7740 msgid "guestfs_blockdev_getro"
7741 msgstr ""
7742
7743 # type: verbatim
7744 #. type: verbatim
7745 #: ../src/guestfs-actions.pod:693
7746 #, no-wrap
7747 msgid ""
7748 " int\n"
7749 " guestfs_blockdev_getro (guestfs_h *g,\n"
7750 "                         const char *device);\n"
7751 "\n"
7752 msgstr ""
7753
7754 # type: textblock
7755 #. type: textblock
7756 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
7757 msgid ""
7758 "Returns a boolean indicating if the block device is read-only (true if read-"
7759 "only, false if not)."
7760 msgstr ""
7761
7762 # type: textblock
7763 #. type: textblock
7764 #: ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:1409
7765 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1914
7766 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1997
7767 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2067
7768 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2115
7769 #: ../src/guestfs-actions.pod:3080 ../src/guestfs-actions.pod:3097
7770 #: ../src/guestfs-actions.pod:3116 ../src/guestfs-actions.pod:3279
7771 #: ../src/guestfs-actions.pod:3293 ../src/guestfs-actions.pod:3308
7772 #: ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3338
7773 #: ../src/guestfs-actions.pod:3353 ../src/guestfs-actions.pod:3369
7774 #: ../src/guestfs-actions.pod:3383 ../src/guestfs-actions.pod:3396
7775 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3425
7776 #: ../src/guestfs-actions.pod:3440 ../src/guestfs-actions.pod:4971
7777 msgid "This function returns a C truth value on success or -1 on error."
7778 msgstr ""
7779
7780 # type: =head2
7781 #. type: =head2
7782 #: ../src/guestfs-actions.pod:706
7783 msgid "guestfs_blockdev_getsize64"
7784 msgstr ""
7785
7786 # type: verbatim
7787 #. type: verbatim
7788 #: ../src/guestfs-actions.pod:708
7789 #, no-wrap
7790 msgid ""
7791 " int64_t\n"
7792 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7793 "                             const char *device);\n"
7794 "\n"
7795 msgstr ""
7796
7797 # type: textblock
7798 #. type: textblock
7799 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
7800 msgid "This returns the size of the device in bytes."
7801 msgstr ""
7802
7803 # type: textblock
7804 #. type: textblock
7805 #: ../src/guestfs-actions.pod:714
7806 msgid "See also C<guestfs_blockdev_getsz>."
7807 msgstr ""
7808
7809 # type: =head2
7810 #. type: =head2
7811 #: ../src/guestfs-actions.pod:722
7812 msgid "guestfs_blockdev_getss"
7813 msgstr ""
7814
7815 # type: verbatim
7816 #. type: verbatim
7817 #: ../src/guestfs-actions.pod:724
7818 #, no-wrap
7819 msgid ""
7820 " int\n"
7821 " guestfs_blockdev_getss (guestfs_h *g,\n"
7822 "                         const char *device);\n"
7823 "\n"
7824 msgstr ""
7825
7826 # type: textblock
7827 #. type: textblock
7828 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
7829 msgid ""
7830 "This returns the size of sectors on a block device.  Usually 512, but can be "
7831 "larger for modern devices."
7832 msgstr ""
7833
7834 # type: textblock
7835 #. type: textblock
7836 #: ../src/guestfs-actions.pod:731
7837 msgid ""
7838 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7839 "that)."
7840 msgstr ""
7841
7842 # type: =head2
7843 #. type: =head2
7844 #: ../src/guestfs-actions.pod:740
7845 msgid "guestfs_blockdev_getsz"
7846 msgstr ""
7847
7848 # type: verbatim
7849 #. type: verbatim
7850 #: ../src/guestfs-actions.pod:742
7851 #, no-wrap
7852 msgid ""
7853 " int64_t\n"
7854 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7855 "                         const char *device);\n"
7856 "\n"
7857 msgstr ""
7858
7859 # type: textblock
7860 #. type: textblock
7861 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
7862 msgid ""
7863 "This returns the size of the device in units of 512-byte sectors (even if "
7864 "the sectorsize isn't 512 bytes ... weird)."
7865 msgstr ""
7866
7867 # type: textblock
7868 #. type: textblock
7869 #: ../src/guestfs-actions.pod:749
7870 msgid ""
7871 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7872 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7873 msgstr ""
7874
7875 # type: =head2
7876 #. type: =head2
7877 #: ../src/guestfs-actions.pod:759
7878 msgid "guestfs_blockdev_rereadpt"
7879 msgstr ""
7880
7881 # type: verbatim
7882 #. type: verbatim
7883 #: ../src/guestfs-actions.pod:761
7884 #, no-wrap
7885 msgid ""
7886 " int\n"
7887 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7888 "                            const char *device);\n"
7889 "\n"
7890 msgstr ""
7891
7892 # type: textblock
7893 #. type: textblock
7894 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
7895 msgid "Reread the partition table on C<device>."
7896 msgstr ""
7897
7898 # type: =head2
7899 #. type: =head2
7900 #: ../src/guestfs-actions.pod:773
7901 msgid "guestfs_blockdev_setbsz"
7902 msgstr ""
7903
7904 # type: verbatim
7905 #. type: verbatim
7906 #: ../src/guestfs-actions.pod:775
7907 #, no-wrap
7908 msgid ""
7909 " int\n"
7910 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7911 "                          const char *device,\n"
7912 "                          int blocksize);\n"
7913 "\n"
7914 msgstr ""
7915
7916 # type: textblock
7917 #. type: textblock
7918 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
7919 msgid "This sets the block size of a device."
7920 msgstr ""
7921
7922 # type: =head2
7923 #. type: =head2
7924 #: ../src/guestfs-actions.pod:791
7925 msgid "guestfs_blockdev_setro"
7926 msgstr ""
7927
7928 # type: verbatim
7929 #. type: verbatim
7930 #: ../src/guestfs-actions.pod:793
7931 #, no-wrap
7932 msgid ""
7933 " int\n"
7934 " guestfs_blockdev_setro (guestfs_h *g,\n"
7935 "                         const char *device);\n"
7936 "\n"
7937 msgstr ""
7938
7939 # type: textblock
7940 #. type: textblock
7941 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
7942 msgid "Sets the block device named C<device> to read-only."
7943 msgstr ""
7944
7945 # type: =head2
7946 #. type: =head2
7947 #: ../src/guestfs-actions.pod:805
7948 msgid "guestfs_blockdev_setrw"
7949 msgstr ""
7950
7951 # type: verbatim
7952 #. type: verbatim
7953 #: ../src/guestfs-actions.pod:807
7954 #, no-wrap
7955 msgid ""
7956 " int\n"
7957 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7958 "                         const char *device);\n"
7959 "\n"
7960 msgstr ""
7961
7962 # type: textblock
7963 #. type: textblock
7964 #: ../src/guestfs-actions.pod:811 ../fish/guestfish-actions.pod:536
7965 msgid "Sets the block device named C<device> to read-write."
7966 msgstr ""
7967
7968 # type: =head2
7969 #. type: =head2
7970 #: ../src/guestfs-actions.pod:819
7971 msgid "guestfs_case_sensitive_path"
7972 msgstr ""
7973
7974 # type: verbatim
7975 #. type: verbatim
7976 #: ../src/guestfs-actions.pod:821
7977 #, no-wrap
7978 msgid ""
7979 " char *\n"
7980 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7981 "                              const char *path);\n"
7982 "\n"
7983 msgstr ""
7984
7985 # type: textblock
7986 #. type: textblock
7987 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
7988 msgid ""
7989 "This can be used to resolve case insensitive paths on a filesystem which is "
7990 "case sensitive.  The use case is to resolve paths which you have read from "
7991 "Windows configuration files or the Windows Registry, to the true path."
7992 msgstr ""
7993
7994 # type: textblock
7995 #. type: textblock
7996 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
7997 msgid ""
7998 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7999 "(and probably others), which is that although the underlying filesystem is "
8000 "case-insensitive, the driver exports the filesystem to Linux as case-"
8001 "sensitive."
8002 msgstr ""
8003
8004 # type: textblock
8005 #. type: textblock
8006 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
8007 msgid ""
8008 "One consequence of this is that special directories such as C<c:\\windows> "
8009 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8010 "precise details of how they were created.  In Windows itself this would not "
8011 "be a problem."
8012 msgstr ""
8013
8014 # type: textblock
8015 #. type: textblock
8016 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
8017 msgid ""
8018 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8019 "#posixfilenames1>"
8020 msgstr ""
8021
8022 # type: textblock
8023 #. type: textblock
8024 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
8025 msgid ""
8026 "This function resolves the true case of each element in the path and returns "
8027 "the case-sensitive path."
8028 msgstr ""
8029
8030 # type: textblock
8031 #. type: textblock
8032 #: ../src/guestfs-actions.pod:847
8033 msgid ""
8034 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8035 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8036 "how the directories were originally created under Windows)."
8037 msgstr ""
8038
8039 # type: textblock
8040 #. type: textblock
8041 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
8042 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8043 msgstr ""
8044
8045 # type: textblock
8046 #. type: textblock
8047 #: ../src/guestfs-actions.pod:855
8048 msgid "See also C<guestfs_realpath>."
8049 msgstr ""
8050
8051 # type: textblock
8052 #. type: textblock
8053 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6962
8054 msgid "(Added in 1.0.75)"
8055 msgstr ""
8056
8057 # type: =head2
8058 #. type: =head2
8059 #: ../src/guestfs-actions.pod:862
8060 msgid "guestfs_cat"
8061 msgstr ""
8062
8063 # type: verbatim
8064 #. type: verbatim
8065 #: ../src/guestfs-actions.pod:864
8066 #, no-wrap
8067 msgid ""
8068 " char *\n"
8069 " guestfs_cat (guestfs_h *g,\n"
8070 "              const char *path);\n"
8071 "\n"
8072 msgstr ""
8073
8074 # type: textblock
8075 #. type: textblock
8076 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5458
8077 #: ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3659
8078 msgid "Return the contents of the file named C<path>."
8079 msgstr ""
8080
8081 # type: textblock
8082 #. type: textblock
8083 #: ../src/guestfs-actions.pod:870
8084 msgid ""
8085 "Note that this function cannot correctly handle binary files (specifically, "
8086 "files containing C<\\0> character which is treated as end of string).  For "
8087 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8088 "functions which have a more complex interface."
8089 msgstr ""
8090
8091 # type: textblock
8092 #. type: textblock
8093 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:1057
8094 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:1373
8095 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:1495
8096 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1763
8097 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:2240
8098 #: ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2307
8099 #: ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2353
8100 #: ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5266
8101 #: ../src/guestfs-actions.pod:5397 ../src/guestfs-actions.pod:5423
8102 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:6347
8103 #: ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:6548
8104 #: ../src/guestfs-actions.pod:6572 ../src/guestfs-actions.pod:7234
8105 #: ../src/guestfs-actions.pod:7260 ../src/guestfs-actions.pod:7286
8106 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:7390
8107 #: ../src/guestfs-actions.pod:7409 ../src/guestfs-actions.pod:7455
8108 #: ../src/guestfs-actions.pod:7474 ../fish/guestfish-actions.pod:587
8109 #: ../fish/guestfish-actions.pod:722 ../fish/guestfish-actions.pod:734
8110 #: ../fish/guestfish-actions.pod:910 ../fish/guestfish-actions.pod:920
8111 #: ../fish/guestfish-actions.pod:987 ../fish/guestfish-actions.pod:997
8112 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1493
8113 #: ../fish/guestfish-actions.pod:1503 ../fish/guestfish-actions.pod:1531
8114 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:1556
8115 #: ../fish/guestfish-actions.pod:1575 ../fish/guestfish-actions.pod:3529
8116 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3620
8117 #: ../fish/guestfish-actions.pod:3637 ../fish/guestfish-actions.pod:3652
8118 #: ../fish/guestfish-actions.pod:4278 ../fish/guestfish-actions.pod:4324
8119 #: ../fish/guestfish-actions.pod:4409 ../fish/guestfish-actions.pod:4424
8120 #: ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4852
8121 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:4879
8122 #: ../fish/guestfish-actions.pod:4927 ../fish/guestfish-actions.pod:4937
8123 #: ../fish/guestfish-actions.pod:4966 ../fish/guestfish-actions.pod:4976
8124 msgid ""
8125 "Because of the message protocol, there is a transfer limit of somewhere "
8126 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8127 msgstr ""
8128
8129 # type: textblock
8130 #. type: textblock
8131 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:3556
8132 #: ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:3635
8133 #: ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:4128
8134 #: ../src/guestfs-actions.pod:4142 ../src/guestfs-actions.pod:5346
8135 #: ../src/guestfs-actions.pod:5360 ../src/guestfs-actions.pod:7121
8136 #: ../src/guestfs-actions.pod:7135
8137 msgid "(Added in 0.4)"
8138 msgstr ""
8139
8140 # type: =head2
8141 #. type: =head2
8142 #: ../src/guestfs-actions.pod:883
8143 msgid "guestfs_checksum"
8144 msgstr ""
8145
8146 # type: verbatim
8147 #. type: verbatim
8148 #: ../src/guestfs-actions.pod:885
8149 #, no-wrap
8150 msgid ""
8151 " char *\n"
8152 " guestfs_checksum (guestfs_h *g,\n"
8153 "                   const char *csumtype,\n"
8154 "                   const char *path);\n"
8155 "\n"
8156 msgstr ""
8157
8158 # type: textblock
8159 #. type: textblock
8160 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
8161 msgid ""
8162 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8163 msgstr ""
8164
8165 # type: textblock
8166 #. type: textblock
8167 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
8168 msgid ""
8169 "The type of checksum to compute is given by the C<csumtype> parameter which "
8170 "must have one of the following values:"
8171 msgstr ""
8172
8173 # type: =item
8174 #. type: =item
8175 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
8176 msgid "C<crc>"
8177 msgstr ""
8178
8179 # type: textblock
8180 #. type: textblock
8181 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
8182 msgid ""
8183 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8184 "C<cksum> command."
8185 msgstr ""
8186
8187 # type: =item
8188 #. type: =item
8189 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
8190 msgid "C<md5>"
8191 msgstr ""
8192
8193 # type: textblock
8194 #. type: textblock
8195 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
8196 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8197 msgstr ""
8198
8199 # type: =item
8200 #. type: =item
8201 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
8202 msgid "C<sha1>"
8203 msgstr ""
8204
8205 # type: textblock
8206 #. type: textblock
8207 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
8208 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8209 msgstr ""
8210
8211 # type: =item
8212 #. type: =item
8213 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
8214 msgid "C<sha224>"
8215 msgstr ""
8216
8217 # type: textblock
8218 #. type: textblock
8219 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
8220 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8221 msgstr ""
8222
8223 # type: =item
8224 #. type: =item
8225 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
8226 msgid "C<sha256>"
8227 msgstr ""
8228
8229 # type: textblock
8230 #. type: textblock
8231 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
8232 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8233 msgstr ""
8234
8235 # type: =item
8236 #. type: =item
8237 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
8238 msgid "C<sha384>"
8239 msgstr ""
8240
8241 # type: textblock
8242 #. type: textblock
8243 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
8244 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8245 msgstr ""
8246
8247 # type: =item
8248 #. type: =item
8249 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
8250 msgid "C<sha512>"
8251 msgstr ""
8252
8253 # type: textblock
8254 #. type: textblock
8255 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
8256 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8257 msgstr ""
8258
8259 # type: textblock
8260 #. type: textblock
8261 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
8262 msgid "The checksum is returned as a printable string."
8263 msgstr ""
8264
8265 # type: textblock
8266 #. type: textblock
8267 #: ../src/guestfs-actions.pod:931
8268 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8269 msgstr ""
8270
8271 # type: textblock
8272 #. type: textblock
8273 #: ../src/guestfs-actions.pod:933
8274 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8275 msgstr ""
8276
8277 # type: textblock
8278 #. type: textblock
8279 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1246
8280 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:3295
8281 #: ../src/guestfs-actions.pod:3324 ../src/guestfs-actions.pod:3385
8282 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:6818
8283 msgid "(Added in 1.0.2)"
8284 msgstr ""
8285
8286 # type: =head2
8287 #. type: =head2
8288 #: ../src/guestfs-actions.pod:940
8289 msgid "guestfs_checksum_device"
8290 msgstr ""
8291
8292 # type: verbatim
8293 #. type: verbatim
8294 #: ../src/guestfs-actions.pod:942
8295 #, no-wrap
8296 msgid ""
8297 " char *\n"
8298 " guestfs_checksum_device (guestfs_h *g,\n"
8299 "                          const char *csumtype,\n"
8300 "                          const char *device);\n"
8301 "\n"
8302 msgstr ""
8303
8304 # type: textblock
8305 #. type: textblock
8306 #: ../src/guestfs-actions.pod:947
8307 msgid ""
8308 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8309 "device named C<device>.  For the types of checksums supported see the "
8310 "C<guestfs_checksum> command."
8311 msgstr ""
8312
8313 # type: textblock
8314 #. type: textblock
8315 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:4877
8316 #: ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4973
8317 #: ../src/guestfs-actions.pod:4991 ../src/guestfs-actions.pod:5167
8318 #: ../src/guestfs-actions.pod:6727 ../src/guestfs-actions.pod:6741
8319 #: ../src/guestfs-actions.pod:7147
8320 msgid "(Added in 1.3.2)"
8321 msgstr ""
8322
8323 # type: =head2
8324 #. type: =head2
8325 #: ../src/guestfs-actions.pod:956
8326 msgid "guestfs_checksums_out"
8327 msgstr ""
8328
8329 # type: verbatim
8330 #. type: verbatim
8331 #: ../src/guestfs-actions.pod:958
8332 #, no-wrap
8333 msgid ""
8334 " int\n"
8335 " guestfs_checksums_out (guestfs_h *g,\n"
8336 "                        const char *csumtype,\n"
8337 "                        const char *directory,\n"
8338 "                        const char *sumsfile);\n"
8339 "\n"
8340 msgstr ""
8341
8342 # type: textblock
8343 #. type: textblock
8344 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
8345 msgid ""
8346 "This command computes the checksums of all regular files in C<directory> and "
8347 "then emits a list of those checksums to the local output file C<sumsfile>."
8348 msgstr ""
8349
8350 # type: textblock
8351 #. type: textblock
8352 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
8353 msgid ""
8354 "This can be used for verifying the integrity of a virtual machine.  However "
8355 "to be properly secure you should pay attention to the output of the checksum "
8356 "command (it uses the ones from GNU coreutils).  In particular when the "
8357 "filename is not printable, coreutils uses a special backslash syntax.  For "
8358 "more information, see the GNU coreutils info file."
8359 msgstr ""
8360
8361 # type: textblock
8362 #. type: textblock
8363 #: ../src/guestfs-actions.pod:978
8364 msgid "(Added in 1.3.7)"
8365 msgstr ""
8366
8367 # type: =head2
8368 #. type: =head2
8369 #: ../src/guestfs-actions.pod:980
8370 msgid "guestfs_chmod"
8371 msgstr ""
8372
8373 # type: verbatim
8374 #. type: verbatim
8375 #: ../src/guestfs-actions.pod:982
8376 #, no-wrap
8377 msgid ""
8378 " int\n"
8379 " guestfs_chmod (guestfs_h *g,\n"
8380 "                int mode,\n"
8381 "                const char *path);\n"
8382 "\n"
8383 msgstr ""
8384
8385 # type: textblock
8386 #. type: textblock
8387 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
8388 msgid ""
8389 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8390 "supported."
8391 msgstr ""
8392
8393 # type: textblock
8394 #. type: textblock
8395 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
8396 msgid ""
8397 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8398 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8399 "C<700>."
8400 msgstr ""
8401
8402 # type: textblock
8403 #. type: textblock
8404 #: ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:4379
8405 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4595
8406 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:676
8407 #: ../fish/guestfish-actions.pod:2975 ../fish/guestfish-actions.pod:3104
8408 #: ../fish/guestfish-actions.pod:3114 ../fish/guestfish-actions.pod:3124
8409 msgid "The mode actually set is affected by the umask."
8410 msgstr ""
8411
8412 # type: =head2
8413 #. type: =head2
8414 #: ../src/guestfs-actions.pod:1000
8415 msgid "guestfs_chown"
8416 msgstr ""
8417
8418 # type: verbatim
8419 #. type: verbatim
8420 #: ../src/guestfs-actions.pod:1002
8421 #, no-wrap
8422 msgid ""
8423 " int\n"
8424 " guestfs_chown (guestfs_h *g,\n"
8425 "                int owner,\n"
8426 "                int group,\n"
8427 "                const char *path);\n"
8428 "\n"
8429 msgstr ""
8430
8431 # type: textblock
8432 #. type: textblock
8433 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
8434 msgid "Change the file owner to C<owner> and group to C<group>."
8435 msgstr ""
8436
8437 # type: textblock
8438 #. type: textblock
8439 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3487
8440 #: ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2433
8441 msgid ""
8442 "Only numeric uid and gid are supported.  If you want to use names, you will "
8443 "need to locate and parse the password file yourself (Augeas support makes "
8444 "this relatively easy)."
8445 msgstr ""
8446
8447 # type: =head2
8448 #. type: =head2
8449 #: ../src/guestfs-actions.pod:1018
8450 msgid "guestfs_command"
8451 msgstr ""
8452
8453 # type: verbatim
8454 #. type: verbatim
8455 #: ../src/guestfs-actions.pod:1020
8456 #, no-wrap
8457 msgid ""
8458 " char *\n"
8459 " guestfs_command (guestfs_h *g,\n"
8460 "                  char *const *arguments);\n"
8461 "\n"
8462 msgstr ""
8463
8464 # type: textblock
8465 #. type: textblock
8466 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
8467 msgid ""
8468 "This call runs a command from the guest filesystem.  The filesystem must be "
8469 "mounted, and must contain a compatible operating system (ie. something "
8470 "Linux, with the same or compatible processor architecture)."
8471 msgstr ""
8472
8473 # type: textblock
8474 #. type: textblock
8475 #: ../src/guestfs-actions.pod:1029
8476 msgid ""
8477 "The single parameter is an argv-style list of arguments.  The first element "
8478 "is the name of the program to run.  Subsequent elements are parameters.  The "
8479 "list must be non-empty (ie. must contain a program name).  Note that the "
8480 "command runs directly, and is I<not> invoked via the shell (see "
8481 "C<guestfs_sh>)."
8482 msgstr ""
8483
8484 # type: textblock
8485 #. type: textblock
8486 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
8487 msgid "The return value is anything printed to I<stdout> by the command."
8488 msgstr ""
8489
8490 # type: textblock
8491 #. type: textblock
8492 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
8493 msgid ""
8494 "If the command returns a non-zero exit status, then this function returns an "
8495 "error message.  The error message string is the content of I<stderr> from "
8496 "the command."
8497 msgstr ""
8498
8499 # type: textblock
8500 #. type: textblock
8501 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
8502 msgid ""
8503 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8504 "bin>.  If you require a program from another location, you should provide "
8505 "the full path in the first parameter."
8506 msgstr ""
8507
8508 # type: textblock
8509 #. type: textblock
8510 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
8511 msgid ""
8512 "Shared libraries and data files required by the program must be available on "
8513 "filesystems which are mounted in the correct places.  It is the caller's "
8514 "responsibility to ensure all filesystems that are needed are mounted at the "
8515 "right locations."
8516 msgstr ""
8517
8518 # type: textblock
8519 #. type: textblock
8520 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080
8521 #: ../src/guestfs-actions.pod:1548
8522 msgid "(Added in 0.9.1)"
8523 msgstr ""
8524
8525 # type: =head2
8526 #. type: =head2
8527 #: ../src/guestfs-actions.pod:1062
8528 msgid "guestfs_command_lines"
8529 msgstr ""
8530
8531 # type: verbatim
8532 #. type: verbatim
8533 #: ../src/guestfs-actions.pod:1064
8534 #, no-wrap
8535 msgid ""
8536 " char **\n"
8537 " guestfs_command_lines (guestfs_h *g,\n"
8538 "                        char *const *arguments);\n"
8539 "\n"
8540 msgstr ""
8541
8542 # type: textblock
8543 #. type: textblock
8544 #: ../src/guestfs-actions.pod:1068
8545 msgid ""
8546 "This is the same as C<guestfs_command>, but splits the result into a list of "
8547 "lines."
8548 msgstr ""
8549
8550 # type: textblock
8551 #. type: textblock
8552 #: ../src/guestfs-actions.pod:1071
8553 msgid "See also: C<guestfs_sh_lines>"
8554 msgstr ""
8555
8556 # type: =head2
8557 #. type: =head2
8558 #: ../src/guestfs-actions.pod:1082
8559 msgid "guestfs_config"
8560 msgstr ""
8561
8562 # type: verbatim
8563 #. type: verbatim
8564 #: ../src/guestfs-actions.pod:1084
8565 #, no-wrap
8566 msgid ""
8567 " int\n"
8568 " guestfs_config (guestfs_h *g,\n"
8569 "                 const char *qemuparam,\n"
8570 "                 const char *qemuvalue);\n"
8571 "\n"
8572 msgstr ""
8573
8574 # type: textblock
8575 #. type: textblock
8576 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
8577 msgid ""
8578 "This can be used to add arbitrary qemu command line parameters of the form "
8579 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8580 "setting some parameters which would interfere with parameters that we use."
8581 msgstr ""
8582
8583 # type: textblock
8584 #. type: textblock
8585 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
8586 msgid "The first character of C<param> string must be a C<-> (dash)."
8587 msgstr ""
8588
8589 # type: textblock
8590 #. type: textblock
8591 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
8592 msgid "C<value> can be NULL."
8593 msgstr ""
8594
8595 # type: =head2
8596 #. type: =head2
8597 #: ../src/guestfs-actions.pod:1102
8598 msgid "guestfs_copy_size"
8599 msgstr ""
8600
8601 # type: verbatim
8602 #. type: verbatim
8603 #: ../src/guestfs-actions.pod:1104
8604 #, no-wrap
8605 msgid ""
8606 " int\n"
8607 " guestfs_copy_size (guestfs_h *g,\n"
8608 "                    const char *src,\n"
8609 "                    const char *dest,\n"
8610 "                    int64_t size);\n"
8611 "\n"
8612 msgstr ""
8613
8614 # type: textblock
8615 #. type: textblock
8616 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
8617 msgid ""
8618 "This command copies exactly C<size> bytes from one source device or file "
8619 "C<src> to another destination device or file C<dest>."
8620 msgstr ""
8621
8622 # type: textblock
8623 #. type: textblock
8624 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
8625 msgid ""
8626 "Note this will fail if the source is too short or if the destination is not "
8627 "large enough."
8628 msgstr ""
8629
8630 #. type: textblock
8631 #: ../src/guestfs-actions.pod:1118 ../src/guestfs-actions.pod:1241
8632 #: ../src/guestfs-actions.pod:1272 ../src/guestfs-actions.pod:1317
8633 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1719
8634 #: ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:6813
8635 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:7326
8636 #: ../src/guestfs-actions.pod:7345
8637 msgid ""
8638 "This long-running command can generate progress notification messages so "
8639 "that the caller can display a progress bar or indicator.  To receive these "
8640 "messages, the caller must register a progress event callback.  See L<guestfs"
8641 "(3)/GUESTFS_EVENT_PROGRESS>."
8642 msgstr ""
8643
8644 # type: textblock
8645 #. type: textblock
8646 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:4155
8647 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:7054
8648 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7160
8649 msgid "(Added in 1.0.87)"
8650 msgstr ""
8651
8652 # type: =head2
8653 #. type: =head2
8654 #: ../src/guestfs-actions.pod:1125
8655 msgid "guestfs_cp"
8656 msgstr ""
8657
8658 # type: verbatim
8659 #. type: verbatim
8660 #: ../src/guestfs-actions.pod:1127
8661 #, no-wrap
8662 msgid ""
8663 " int\n"
8664 " guestfs_cp (guestfs_h *g,\n"
8665 "             const char *src,\n"
8666 "             const char *dest);\n"
8667 "\n"
8668 msgstr ""
8669
8670 # type: textblock
8671 #. type: textblock
8672 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
8673 msgid ""
8674 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8675 "destination filename or destination directory."
8676 msgstr ""
8677
8678 # type: textblock
8679 #. type: textblock
8680 #: ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1151
8681 #: ../src/guestfs-actions.pod:1223 ../src/guestfs-actions.pod:1297
8682 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:4840
8683 #: ../src/guestfs-actions.pod:5217
8684 msgid "(Added in 1.0.18)"
8685 msgstr ""
8686
8687 # type: =head2
8688 #. type: =head2
8689 #: ../src/guestfs-actions.pod:1139
8690 msgid "guestfs_cp_a"
8691 msgstr ""
8692
8693 # type: verbatim
8694 #. type: verbatim
8695 #: ../src/guestfs-actions.pod:1141
8696 #, no-wrap
8697 msgid ""
8698 " int\n"
8699 " guestfs_cp_a (guestfs_h *g,\n"
8700 "               const char *src,\n"
8701 "               const char *dest);\n"
8702 "\n"
8703 msgstr ""
8704
8705 # type: textblock
8706 #. type: textblock
8707 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
8708 msgid ""
8709 "This copies a file or directory from C<src> to C<dest> recursively using the "
8710 "C<cp -a> command."
8711 msgstr ""
8712
8713 # type: =head2
8714 #. type: =head2
8715 #: ../src/guestfs-actions.pod:1153
8716 msgid "guestfs_dd"
8717 msgstr ""
8718
8719 # type: verbatim
8720 #. type: verbatim
8721 #: ../src/guestfs-actions.pod:1155
8722 #, no-wrap
8723 msgid ""
8724 " int\n"
8725 " guestfs_dd (guestfs_h *g,\n"
8726 "             const char *src,\n"
8727 "             const char *dest);\n"
8728 "\n"
8729 msgstr ""
8730
8731 # type: textblock
8732 #. type: textblock
8733 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
8734 msgid ""
8735 "This command copies from one source device or file C<src> to another "
8736 "destination device or file C<dest>.  Normally you would use this to copy to "
8737 "or from a device or partition, for example to duplicate a filesystem."
8738 msgstr ""
8739
8740 # type: textblock
8741 #. type: textblock
8742 #: ../src/guestfs-actions.pod:1165
8743 msgid ""
8744 "If the destination is a device, it must be as large or larger than the "
8745 "source file or device, otherwise the copy will fail.  This command cannot do "
8746 "partial copies (see C<guestfs_copy_size>)."
8747 msgstr ""
8748
8749 # type: =head2
8750 #. type: =head2
8751 #: ../src/guestfs-actions.pod:1173
8752 msgid "guestfs_df"
8753 msgstr ""
8754
8755 # type: verbatim
8756 #. type: verbatim
8757 #: ../src/guestfs-actions.pod:1175
8758 #, no-wrap
8759 msgid ""
8760 " char *\n"
8761 " guestfs_df (guestfs_h *g);\n"
8762 "\n"
8763 msgstr ""
8764
8765 # type: textblock
8766 #. type: textblock
8767 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
8768 msgid "This command runs the C<df> command to report disk space used."
8769 msgstr ""
8770
8771 # type: textblock
8772 #. type: textblock
8773 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
8774 msgid ""
8775 "This command is mostly useful for interactive sessions.  It is I<not> "
8776 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8777 "from programs."
8778 msgstr ""
8779
8780 # type: textblock
8781 #. type: textblock
8782 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1204
8783 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:2286
8784 #: ../src/guestfs-actions.pod:2310 ../src/guestfs-actions.pod:2378
8785 #: ../src/guestfs-actions.pod:4265 ../src/guestfs-actions.pod:4740
8786 #: ../src/guestfs-actions.pod:6551 ../src/guestfs-actions.pod:6575
8787 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7206
8788 #: ../src/guestfs-actions.pod:7219
8789 msgid "(Added in 1.0.54)"
8790 msgstr ""
8791
8792 # type: =head2
8793 #. type: =head2
8794 #: ../src/guestfs-actions.pod:1189
8795 msgid "guestfs_df_h"
8796 msgstr ""
8797
8798 # type: verbatim
8799 #. type: verbatim
8800 #: ../src/guestfs-actions.pod:1191
8801 #, no-wrap
8802 msgid ""
8803 " char *\n"
8804 " guestfs_df_h (guestfs_h *g);\n"
8805 "\n"
8806 msgstr ""
8807
8808 # type: textblock
8809 #. type: textblock
8810 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
8811 msgid ""
8812 "This command runs the C<df -h> command to report disk space used in human-"
8813 "readable format."
8814 msgstr ""
8815
8816 # type: =head2
8817 #. type: =head2
8818 #: ../src/guestfs-actions.pod:1206
8819 msgid "guestfs_dmesg"
8820 msgstr ""
8821
8822 # type: verbatim
8823 #. type: verbatim
8824 #: ../src/guestfs-actions.pod:1208
8825 #, no-wrap
8826 msgid ""
8827 " char *\n"
8828 " guestfs_dmesg (guestfs_h *g);\n"
8829 "\n"
8830 msgstr ""
8831
8832 # type: textblock
8833 #. type: textblock
8834 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
8835 msgid ""
8836 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8837 "This is sometimes useful for extended debugging of problems."
8838 msgstr ""
8839
8840 # type: textblock
8841 #. type: textblock
8842 #: ../src/guestfs-actions.pod:1215
8843 msgid ""
8844 "Another way to get the same information is to enable verbose messages with "
8845 "C<guestfs_set_verbose> or by setting the environment variable "
8846 "C<LIBGUESTFS_DEBUG=1> before running the program."
8847 msgstr ""
8848
8849 # type: =head2
8850 #. type: =head2
8851 #: ../src/guestfs-actions.pod:1225
8852 msgid "guestfs_download"
8853 msgstr ""
8854
8855 # type: verbatim
8856 #. type: verbatim
8857 #: ../src/guestfs-actions.pod:1227
8858 #, no-wrap
8859 msgid ""
8860 " int\n"
8861 " guestfs_download (guestfs_h *g,\n"
8862 "                   const char *remotefilename,\n"
8863 "                   const char *filename);\n"
8864 "\n"
8865 msgstr ""
8866
8867 # type: textblock
8868 #. type: textblock
8869 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257
8870 #: ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
8871 msgid ""
8872 "Download file C<remotefilename> and save it as C<filename> on the local "
8873 "machine."
8874 msgstr ""
8875
8876 # type: textblock
8877 #. type: textblock
8878 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6807
8879 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4582
8880 msgid "C<filename> can also be a named pipe."
8881 msgstr ""
8882
8883 # type: textblock
8884 #. type: textblock
8885 #: ../src/guestfs-actions.pod:1237
8886 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8887 msgstr ""
8888
8889 # type: =head2
8890 #. type: =head2
8891 #: ../src/guestfs-actions.pod:1248
8892 msgid "guestfs_download_offset"
8893 msgstr ""
8894
8895 # type: verbatim
8896 #. type: verbatim
8897 #: ../src/guestfs-actions.pod:1250
8898 #, no-wrap
8899 msgid ""
8900 " int\n"
8901 " guestfs_download_offset (guestfs_h *g,\n"
8902 "                          const char *remotefilename,\n"
8903 "                          const char *filename,\n"
8904 "                          int64_t offset,\n"
8905 "                          int64_t size);\n"
8906 "\n"
8907 msgstr ""
8908
8909 # type: textblock
8910 #. type: textblock
8911 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
8912 msgid ""
8913 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8914 "region must be within the file or device)."
8915 msgstr ""
8916
8917 # type: textblock
8918 #. type: textblock
8919 #: ../src/guestfs-actions.pod:1263
8920 msgid ""
8921 "Note that there is no limit on the amount of data that can be downloaded "
8922 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8923 "full amount unless an error occurs."
8924 msgstr ""
8925
8926 # type: textblock
8927 #. type: textblock
8928 #: ../src/guestfs-actions.pod:1268
8929 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8930 msgstr ""
8931
8932 # type: textblock
8933 #. type: textblock
8934 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6852
8935 msgid "(Added in 1.5.17)"
8936 msgstr ""
8937
8938 # type: =head2
8939 #. type: =head2
8940 #: ../src/guestfs-actions.pod:1279
8941 msgid "guestfs_drop_caches"
8942 msgstr ""
8943
8944 # type: verbatim
8945 #. type: verbatim
8946 #: ../src/guestfs-actions.pod:1281
8947 #, no-wrap
8948 msgid ""
8949 " int\n"
8950 " guestfs_drop_caches (guestfs_h *g,\n"
8951 "                      int whattodrop);\n"
8952 "\n"
8953 msgstr ""
8954
8955 # type: textblock
8956 #. type: textblock
8957 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
8958 msgid ""
8959 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8960 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8961 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8962 msgstr ""
8963
8964 # type: textblock
8965 #. type: textblock
8966 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
8967 msgid "Setting C<whattodrop> to 3 should drop everything."
8968 msgstr ""
8969
8970 # type: textblock
8971 #. type: textblock
8972 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
8973 msgid ""
8974 "This automatically calls L<sync(2)> before the operation, so that the "
8975 "maximum guest memory is freed."
8976 msgstr ""
8977
8978 # type: =head2
8979 #. type: =head2
8980 #: ../src/guestfs-actions.pod:1299
8981 msgid "guestfs_du"
8982 msgstr ""
8983
8984 # type: verbatim
8985 #. type: verbatim
8986 #: ../src/guestfs-actions.pod:1301
8987 #, no-wrap
8988 msgid ""
8989 " int64_t\n"
8990 " guestfs_du (guestfs_h *g,\n"
8991 "             const char *path);\n"
8992 "\n"
8993 msgstr ""
8994
8995 # type: textblock
8996 #. type: textblock
8997 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
8998 msgid ""
8999 "This command runs the C<du -s> command to estimate file space usage for "
9000 "C<path>."
9001 msgstr ""
9002
9003 # type: textblock
9004 #. type: textblock
9005 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
9006 msgid ""
9007 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9008 "estimate includes the contents of the directory and all subdirectories "
9009 "(recursively)."
9010 msgstr ""
9011
9012 # type: textblock
9013 #. type: textblock
9014 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
9015 msgid ""
9016 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9017 msgstr ""
9018
9019 # type: =head2
9020 #. type: =head2
9021 #: ../src/guestfs-actions.pod:1324
9022 msgid "guestfs_e2fsck_f"
9023 msgstr ""
9024
9025 # type: verbatim
9026 #. type: verbatim
9027 #: ../src/guestfs-actions.pod:1326
9028 #, no-wrap
9029 msgid ""
9030 " int\n"
9031 " guestfs_e2fsck_f (guestfs_h *g,\n"
9032 "                   const char *device);\n"
9033 "\n"
9034 msgstr ""
9035
9036 # type: textblock
9037 #. type: textblock
9038 #: ../src/guestfs-actions.pod:1330 ../fish/guestfish-actions.pod:885
9039 msgid ""
9040 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9041 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
9042 "clean (C<-f>)."
9043 msgstr ""
9044
9045 # type: textblock
9046 #. type: textblock
9047 #: ../src/guestfs-actions.pod:1334
9048 msgid ""
9049 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9050 "Normally you should use C<guestfs_fsck>."
9051 msgstr ""
9052
9053 # type: textblock
9054 #. type: textblock
9055 #: ../src/guestfs-actions.pod:1339
9056 msgid "(Added in 1.0.29)"
9057 msgstr ""
9058
9059 # type: =head2
9060 #. type: =head2
9061 #: ../src/guestfs-actions.pod:1341
9062 msgid "guestfs_echo_daemon"
9063 msgstr ""
9064
9065 # type: verbatim
9066 #. type: verbatim
9067 #: ../src/guestfs-actions.pod:1343
9068 #, no-wrap
9069 msgid ""
9070 " char *\n"
9071 " guestfs_echo_daemon (guestfs_h *g,\n"
9072 "                      char *const *words);\n"
9073 "\n"
9074 msgstr ""
9075
9076 # type: textblock
9077 #. type: textblock
9078 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:896
9079 msgid ""
9080 "This command concatenates the list of C<words> passed with single spaces "
9081 "between them and returns the resulting string."
9082 msgstr ""
9083
9084 # type: textblock
9085 #. type: textblock
9086 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:899
9087 msgid "You can use this command to test the connection through to the daemon."
9088 msgstr ""
9089
9090 # type: textblock
9091 #. type: textblock
9092 #: ../src/guestfs-actions.pod:1352
9093 msgid "See also C<guestfs_ping_daemon>."
9094 msgstr ""
9095
9096 # type: textblock
9097 #. type: textblock
9098 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:2094
9099 #: ../src/guestfs-actions.pod:6051
9100 msgid "(Added in 1.0.69)"
9101 msgstr ""
9102
9103 # type: =head2
9104 #. type: =head2
9105 #: ../src/guestfs-actions.pod:1359
9106 msgid "guestfs_egrep"
9107 msgstr ""
9108
9109 # type: verbatim
9110 #. type: verbatim
9111 #: ../src/guestfs-actions.pod:1361
9112 #, no-wrap
9113 msgid ""
9114 " char **\n"
9115 " guestfs_egrep (guestfs_h *g,\n"
9116 "                const char *regex,\n"
9117 "                const char *path);\n"
9118 "\n"
9119 msgstr ""
9120
9121 # type: textblock
9122 #. type: textblock
9123 #: ../src/guestfs-actions.pod:1366 ../fish/guestfish-actions.pod:907
9124 msgid ""
9125 "This calls the external C<egrep> program and returns the matching lines."
9126 msgstr ""
9127
9128 # type: textblock
9129 #. type: textblock
9130 #: ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1395
9131 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1498
9132 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:2224
9133 #: ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2399
9134 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2427
9135 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2495
9136 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:3648
9137 #: ../src/guestfs-actions.pod:3662 ../src/guestfs-actions.pod:3675
9138 #: ../src/guestfs-actions.pod:3689 ../src/guestfs-actions.pod:4675
9139 #: ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:5600
9140 #: ../src/guestfs-actions.pod:6419 ../src/guestfs-actions.pod:6431
9141 #: ../src/guestfs-actions.pod:6444 ../src/guestfs-actions.pod:6457
9142 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6492
9143 #: ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6518
9144 #: ../src/guestfs-actions.pod:7289 ../src/guestfs-actions.pod:7308
9145 #: ../src/guestfs-actions.pod:7393 ../src/guestfs-actions.pod:7412
9146 #: ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7477
9147 msgid "(Added in 1.0.66)"
9148 msgstr ""
9149
9150 # type: =head2
9151 #. type: =head2
9152 #: ../src/guestfs-actions.pod:1378
9153 msgid "guestfs_egrepi"
9154 msgstr ""
9155
9156 # type: verbatim
9157 #. type: verbatim
9158 #: ../src/guestfs-actions.pod:1380
9159 #, no-wrap
9160 msgid ""
9161 " char **\n"
9162 " guestfs_egrepi (guestfs_h *g,\n"
9163 "                 const char *regex,\n"
9164 "                 const char *path);\n"
9165 "\n"
9166 msgstr ""
9167
9168 # type: textblock
9169 #. type: textblock
9170 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:917
9171 msgid ""
9172 "This calls the external C<egrep -i> program and returns the matching lines."
9173 msgstr ""
9174
9175 # type: =head2
9176 #. type: =head2
9177 #: ../src/guestfs-actions.pod:1397
9178 msgid "guestfs_equal"
9179 msgstr ""
9180
9181 # type: verbatim
9182 #. type: verbatim
9183 #: ../src/guestfs-actions.pod:1399
9184 #, no-wrap
9185 msgid ""
9186 " int\n"
9187 " guestfs_equal (guestfs_h *g,\n"
9188 "                const char *file1,\n"
9189 "                const char *file2);\n"
9190 "\n"
9191 msgstr ""
9192
9193 # type: textblock
9194 #. type: textblock
9195 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:927
9196 msgid ""
9197 "This compares the two files C<file1> and C<file2> and returns true if their "
9198 "content is exactly equal, or false otherwise."
9199 msgstr ""
9200
9201 # type: textblock
9202 #. type: textblock
9203 #: ../src/guestfs-actions.pod:1407 ../fish/guestfish-actions.pod:930
9204 msgid "The external L<cmp(1)> program is used for the comparison."
9205 msgstr ""
9206
9207 # type: =head2
9208 #. type: =head2
9209 #: ../src/guestfs-actions.pod:1413
9210 msgid "guestfs_exists"
9211 msgstr ""
9212
9213 # type: verbatim
9214 #. type: verbatim
9215 #: ../src/guestfs-actions.pod:1415
9216 #, no-wrap
9217 msgid ""
9218 " int\n"
9219 " guestfs_exists (guestfs_h *g,\n"
9220 "                 const char *path);\n"
9221 "\n"
9222 msgstr ""
9223
9224 # type: textblock
9225 #. type: textblock
9226 #: ../src/guestfs-actions.pod:1419 ../fish/guestfish-actions.pod:936
9227 msgid ""
9228 "This returns C<true> if and only if there is a file, directory (or anything) "
9229 "with the given C<path> name."
9230 msgstr ""
9231
9232 # type: textblock
9233 #. type: textblock
9234 #: ../src/guestfs-actions.pod:1422
9235 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9236 msgstr ""
9237
9238 # type: =head2
9239 #. type: =head2
9240 #: ../src/guestfs-actions.pod:1428
9241 msgid "guestfs_fallocate"
9242 msgstr ""
9243
9244 # type: verbatim
9245 #. type: verbatim
9246 #: ../src/guestfs-actions.pod:1430
9247 #, no-wrap
9248 msgid ""
9249 " int\n"
9250 " guestfs_fallocate (guestfs_h *g,\n"
9251 "                    const char *path,\n"
9252 "                    int len);\n"
9253 "\n"
9254 msgstr ""
9255
9256 # type: textblock
9257 #. type: textblock
9258 #: ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1461
9259 #: ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
9260 msgid ""
9261 "This command preallocates a file (containing zero bytes) named C<path> of "
9262 "size C<len> bytes.  If the file exists already, it is overwritten."
9263 msgstr ""
9264
9265 # type: textblock
9266 #. type: textblock
9267 #: ../src/guestfs-actions.pod:1439 ../fish/guestfish-actions.pod:949
9268 msgid ""
9269 "Do not confuse this with the guestfish-specific C<alloc> command which "
9270 "allocates a file in the host and attaches it as a device."
9271 msgstr ""
9272
9273 # type: textblock
9274 #. type: textblock
9275 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:953
9276 msgid ""
9277 "This function is deprecated.  In new code, use the C<fallocate64> call "
9278 "instead."
9279 msgstr ""
9280
9281 # type: =head2
9282 #. type: =head2
9283 #: ../src/guestfs-actions.pod:1454
9284 msgid "guestfs_fallocate64"
9285 msgstr ""
9286
9287 # type: verbatim
9288 #. type: verbatim
9289 #: ../src/guestfs-actions.pod:1456
9290 #, no-wrap
9291 msgid ""
9292 " int\n"
9293 " guestfs_fallocate64 (guestfs_h *g,\n"
9294 "                      const char *path,\n"
9295 "                      int64_t len);\n"
9296 "\n"
9297 msgstr ""
9298
9299 # type: textblock
9300 #. type: textblock
9301 #: ../src/guestfs-actions.pod:1465
9302 msgid ""
9303 "Note that this call allocates disk blocks for the file.  To create a sparse "
9304 "file use C<guestfs_truncate_size> instead."
9305 msgstr ""
9306
9307 # type: textblock
9308 #. type: textblock
9309 #: ../src/guestfs-actions.pod:1468
9310 msgid ""
9311 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9312 "oversight it only allowed 30 bit lengths to be specified, effectively "
9313 "limiting the maximum size of files created through that call to 1GB."
9314 msgstr ""
9315
9316 # type: textblock
9317 #. type: textblock
9318 #: ../src/guestfs-actions.pod:1473 ../fish/guestfish-actions.pod:976
9319 msgid ""
9320 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9321 "commands which create a file in the host and attach it as a device."
9322 msgstr ""
9323
9324 # type: textblock
9325 #. type: textblock
9326 #: ../src/guestfs-actions.pod:1479
9327 msgid "(Added in 1.3.17)"
9328 msgstr ""
9329
9330 # type: =head2
9331 #. type: =head2
9332 #: ../src/guestfs-actions.pod:1481
9333 msgid "guestfs_fgrep"
9334 msgstr ""
9335
9336 # type: verbatim
9337 #. type: verbatim
9338 #: ../src/guestfs-actions.pod:1483
9339 #, no-wrap
9340 msgid ""
9341 " char **\n"
9342 " guestfs_fgrep (guestfs_h *g,\n"
9343 "                const char *pattern,\n"
9344 "                const char *path);\n"
9345 "\n"
9346 msgstr ""
9347
9348 # type: textblock
9349 #. type: textblock
9350 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:984
9351 msgid ""
9352 "This calls the external C<fgrep> program and returns the matching lines."
9353 msgstr ""
9354
9355 # type: =head2
9356 #. type: =head2
9357 #: ../src/guestfs-actions.pod:1500
9358 msgid "guestfs_fgrepi"
9359 msgstr ""
9360
9361 # type: verbatim
9362 #. type: verbatim
9363 #: ../src/guestfs-actions.pod:1502
9364 #, no-wrap
9365 msgid ""
9366 " char **\n"
9367 " guestfs_fgrepi (guestfs_h *g,\n"
9368 "                 const char *pattern,\n"
9369 "                 const char *path);\n"
9370 "\n"
9371 msgstr ""
9372
9373 # type: textblock
9374 #. type: textblock
9375 #: ../src/guestfs-actions.pod:1507 ../fish/guestfish-actions.pod:994
9376 msgid ""
9377 "This calls the external C<fgrep -i> program and returns the matching lines."
9378 msgstr ""
9379
9380 # type: =head2
9381 #. type: =head2
9382 #: ../src/guestfs-actions.pod:1519
9383 msgid "guestfs_file"
9384 msgstr ""
9385
9386 # type: verbatim
9387 #. type: verbatim
9388 #: ../src/guestfs-actions.pod:1521
9389 #, no-wrap
9390 msgid ""
9391 " char *\n"
9392 " guestfs_file (guestfs_h *g,\n"
9393 "               const char *path);\n"
9394 "\n"
9395 msgstr ""
9396
9397 # type: textblock
9398 #. type: textblock
9399 #: ../src/guestfs-actions.pod:1525 ../fish/guestfish-actions.pod:1004
9400 msgid ""
9401 "This call uses the standard L<file(1)> command to determine the type or "
9402 "contents of the file."
9403 msgstr ""
9404
9405 # type: textblock
9406 #. type: textblock
9407 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1007
9408 msgid ""
9409 "This call will also transparently look inside various types of compressed "
9410 "file."
9411 msgstr ""
9412
9413 # type: textblock
9414 #. type: textblock
9415 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1010
9416 msgid ""
9417 "The exact command which runs is C<file -zb path>.  Note in particular that "
9418 "the filename is not prepended to the output (the C<-b> option)."
9419 msgstr ""
9420
9421 # type: textblock
9422 #. type: textblock
9423 #: ../src/guestfs-actions.pod:1535
9424 msgid ""
9425 "This command can also be used on C</dev/> devices (and partitions, LV "
9426 "names).  You can for example use this to determine if a device contains a "
9427 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
9428 msgstr ""
9429
9430 # type: textblock
9431 #. type: textblock
9432 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1019
9433 msgid ""
9434 "If the C<path> does not begin with C</dev/> then this command only works for "
9435 "the content of regular files.  For other file types (directory, symbolic "
9436 "link etc) it will just return the string C<directory> etc."
9437 msgstr ""
9438
9439 # type: =head2
9440 #. type: =head2
9441 #: ../src/guestfs-actions.pod:1550
9442 msgid "guestfs_file_architecture"
9443 msgstr ""
9444
9445 # type: verbatim
9446 #. type: verbatim
9447 #: ../src/guestfs-actions.pod:1552
9448 #, no-wrap
9449 msgid ""
9450 " char *\n"
9451 " guestfs_file_architecture (guestfs_h *g,\n"
9452 "                            const char *filename);\n"
9453 "\n"
9454 msgstr ""
9455
9456 # type: textblock
9457 #. type: textblock
9458 #: ../src/guestfs-actions.pod:1556 ../fish/guestfish-actions.pod:1028
9459 msgid ""
9460 "This detects the architecture of the binary C<filename>, and returns it if "
9461 "known."
9462 msgstr ""
9463
9464 # type: textblock
9465 #. type: textblock
9466 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1031
9467 msgid "Currently defined architectures are:"
9468 msgstr ""
9469
9470 # type: =item
9471 #. type: =item
9472 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1035
9473 msgid "\"i386\""
9474 msgstr ""
9475
9476 # type: textblock
9477 #. type: textblock
9478 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1037
9479 msgid ""
9480 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9481 "irrespective of the precise processor requirements of the binary."
9482 msgstr ""
9483
9484 # type: =item
9485 #. type: =item
9486 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1040
9487 msgid "\"x86_64\""
9488 msgstr ""
9489
9490 # type: textblock
9491 #. type: textblock
9492 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1042
9493 msgid "64 bit x86-64."
9494 msgstr ""
9495
9496 # type: =item
9497 #. type: =item
9498 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1044
9499 msgid "\"sparc\""
9500 msgstr ""
9501
9502 # type: textblock
9503 #. type: textblock
9504 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1046
9505 msgid "32 bit SPARC."
9506 msgstr ""
9507
9508 # type: =item
9509 #. type: =item
9510 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1048
9511 msgid "\"sparc64\""
9512 msgstr ""
9513
9514 # type: textblock
9515 #. type: textblock
9516 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1050
9517 msgid "64 bit SPARC V9 and above."
9518 msgstr ""
9519
9520 # type: =item
9521 #. type: =item
9522 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1052
9523 msgid "\"ia64\""
9524 msgstr ""
9525
9526 # type: textblock
9527 #. type: textblock
9528 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1054
9529 msgid "Intel Itanium."
9530 msgstr ""
9531
9532 # type: =item
9533 #. type: =item
9534 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1056
9535 msgid "\"ppc\""
9536 msgstr ""
9537
9538 # type: textblock
9539 #. type: textblock
9540 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1058
9541 msgid "32 bit Power PC."
9542 msgstr ""
9543
9544 # type: =item
9545 #. type: =item
9546 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1060
9547 msgid "\"ppc64\""
9548 msgstr ""
9549
9550 # type: textblock
9551 #. type: textblock
9552 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1062
9553 msgid "64 bit Power PC."
9554 msgstr ""
9555
9556 # type: textblock
9557 #. type: textblock
9558 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1066
9559 msgid "Libguestfs may return other architecture strings in future."
9560 msgstr ""
9561
9562 # type: textblock
9563 #. type: textblock
9564 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1068
9565 msgid "The function works on at least the following types of files:"
9566 msgstr ""
9567
9568 # type: textblock
9569 #. type: textblock
9570 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1074
9571 msgid "many types of Un*x and Linux binary"
9572 msgstr ""
9573
9574 # type: textblock
9575 #. type: textblock
9576 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1078
9577 msgid "many types of Un*x and Linux shared library"
9578 msgstr ""
9579
9580 # type: textblock
9581 #. type: textblock
9582 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1082
9583 msgid "Windows Win32 and Win64 binaries"
9584 msgstr ""
9585
9586 # type: textblock
9587 #. type: textblock
9588 #: ../src/guestfs-actions.pod:1614 ../fish/guestfish-actions.pod:1086
9589 msgid "Windows Win32 and Win64 DLLs"
9590 msgstr ""
9591
9592 # type: textblock
9593 #. type: textblock
9594 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1088
9595 msgid "Win32 binaries and DLLs return C<i386>."
9596 msgstr ""
9597
9598 # type: textblock
9599 #. type: textblock
9600 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1090
9601 msgid "Win64 binaries and DLLs return C<x86_64>."
9602 msgstr ""
9603
9604 # type: textblock
9605 #. type: textblock
9606 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1094
9607 msgid "Linux kernel modules"
9608 msgstr ""
9609
9610 # type: textblock
9611 #. type: textblock
9612 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1098
9613 msgid "Linux new-style initrd images"
9614 msgstr ""
9615
9616 # type: textblock
9617 #. type: textblock
9618 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1102
9619 msgid "some non-x86 Linux vmlinuz kernels"
9620 msgstr ""
9621
9622 # type: textblock
9623 #. type: textblock
9624 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1106
9625 msgid "What it can't do currently:"
9626 msgstr ""
9627
9628 # type: textblock
9629 #. type: textblock
9630 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1112
9631 msgid "static libraries (libfoo.a)"
9632 msgstr ""
9633
9634 # type: textblock
9635 #. type: textblock
9636 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1116
9637 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9638 msgstr ""
9639
9640 # type: textblock
9641 #. type: textblock
9642 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1120
9643 msgid "x86 Linux vmlinuz kernels"
9644 msgstr ""
9645
9646 # type: textblock
9647 #. type: textblock
9648 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1122
9649 msgid ""
9650 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9651 "compressed code, and are horribly hard to unpack.  If you want to find the "
9652 "architecture of a kernel, use the architecture of the associated initrd or "
9653 "kernel module(s) instead."
9654 msgstr ""
9655
9656 # type: textblock
9657 #. type: textblock
9658 #: ../src/guestfs-actions.pod:1660 ../src/guestfs-actions.pod:1823
9659 #: ../src/guestfs-actions.pod:1840 ../src/guestfs-actions.pod:2531
9660 #: ../src/guestfs-actions.pod:2616 ../src/guestfs-actions.pod:2686
9661 #: ../src/guestfs-actions.pod:2774 ../src/guestfs-actions.pod:2795
9662 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2922
9663 #: ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3266
9664 #: ../src/guestfs-actions.pod:3398
9665 msgid "(Added in 1.5.3)"
9666 msgstr ""
9667
9668 # type: =head2
9669 #. type: =head2
9670 #: ../src/guestfs-actions.pod:1662
9671 msgid "guestfs_filesize"
9672 msgstr ""
9673
9674 # type: verbatim
9675 #. type: verbatim
9676 #: ../src/guestfs-actions.pod:1664
9677 #, no-wrap
9678 msgid ""
9679 " int64_t\n"
9680 " guestfs_filesize (guestfs_h *g,\n"
9681 "                   const char *file);\n"
9682 "\n"
9683 msgstr ""
9684
9685 # type: textblock
9686 #. type: textblock
9687 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1133
9688 msgid "This command returns the size of C<file> in bytes."
9689 msgstr ""
9690
9691 # type: textblock
9692 #. type: textblock
9693 #: ../src/guestfs-actions.pod:1670
9694 msgid ""
9695 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9696 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9697 "devices, use C<guestfs_blockdev_getsize64>."
9698 msgstr ""
9699
9700 # type: textblock
9701 #. type: textblock
9702 #: ../src/guestfs-actions.pod:1676
9703 msgid "(Added in 1.0.82)"
9704 msgstr ""
9705
9706 # type: =head2
9707 #. type: =head2
9708 #: ../src/guestfs-actions.pod:1678
9709 msgid "guestfs_fill"
9710 msgstr ""
9711
9712 # type: verbatim
9713 #. type: verbatim
9714 #: ../src/guestfs-actions.pod:1680
9715 #, no-wrap
9716 msgid ""
9717 " int\n"
9718 " guestfs_fill (guestfs_h *g,\n"
9719 "               int c,\n"
9720 "               int len,\n"
9721 "               const char *path);\n"
9722 "\n"
9723 msgstr ""
9724
9725 # type: textblock
9726 #. type: textblock
9727 #: ../src/guestfs-actions.pod:1686 ../fish/guestfish-actions.pod:1143
9728 msgid ""
9729 "This command creates a new file called C<path>.  The initial content of the "
9730 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9731 "[0..255]>."
9732 msgstr ""
9733
9734 # type: textblock
9735 #. type: textblock
9736 #: ../src/guestfs-actions.pod:1690
9737 msgid ""
9738 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9739 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9740 "bytes use C<guestfs_fill_pattern>."
9741 msgstr ""
9742
9743 # type: textblock
9744 #. type: textblock
9745 #: ../src/guestfs-actions.pod:1702
9746 msgid "(Added in 1.0.79)"
9747 msgstr ""
9748
9749 # type: =head2
9750 #. type: =head2
9751 #: ../src/guestfs-actions.pod:1704
9752 msgid "guestfs_fill_pattern"
9753 msgstr ""
9754
9755 # type: verbatim
9756 #. type: verbatim
9757 #: ../src/guestfs-actions.pod:1706
9758 #, no-wrap
9759 msgid ""
9760 " int\n"
9761 " guestfs_fill_pattern (guestfs_h *g,\n"
9762 "                       const char *pattern,\n"
9763 "                       int len,\n"
9764 "                       const char *path);\n"
9765 "\n"
9766 msgstr ""
9767
9768 # type: textblock
9769 #. type: textblock
9770 #: ../src/guestfs-actions.pod:1712
9771 msgid ""
9772 "This function is like C<guestfs_fill> except that it creates a new file of "
9773 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9774 "pattern is truncated if necessary to ensure the length of the file is "
9775 "exactly C<len> bytes."
9776 msgstr ""
9777
9778 # type: textblock
9779 #. type: textblock
9780 #: ../src/guestfs-actions.pod:1724
9781 msgid "(Added in 1.3.12)"
9782 msgstr ""
9783
9784 # type: =head2
9785 #. type: =head2
9786 #: ../src/guestfs-actions.pod:1726
9787 msgid "guestfs_find"
9788 msgstr ""
9789
9790 # type: verbatim
9791 #. type: verbatim
9792 #: ../src/guestfs-actions.pod:1728
9793 #, no-wrap
9794 msgid ""
9795 " char **\n"
9796 " guestfs_find (guestfs_h *g,\n"
9797 "               const char *directory);\n"
9798 "\n"
9799 msgstr ""
9800
9801 # type: textblock
9802 #. type: textblock
9803 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1165
9804 msgid ""
9805 "This command lists out all files and directories, recursively, starting at "
9806 "C<directory>.  It is essentially equivalent to running the shell command "
9807 "C<find directory -print> but some post-processing happens on the output, "
9808 "described below."
9809 msgstr ""
9810
9811 # type: textblock
9812 #. type: textblock
9813 #: ../src/guestfs-actions.pod:1737 ../fish/guestfish-actions.pod:1170
9814 msgid ""
9815 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9816 "structure was:"
9817 msgstr ""
9818
9819 # type: verbatim
9820 #. type: verbatim
9821 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1173
9822 #, no-wrap
9823 msgid ""
9824 " /tmp/a\n"
9825 " /tmp/b\n"
9826 " /tmp/c/d\n"
9827 "\n"
9828 msgstr ""
9829
9830 # type: textblock
9831 #. type: textblock
9832 #: ../src/guestfs-actions.pod:1744
9833 msgid ""
9834 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9835 msgstr ""
9836
9837 # type: verbatim
9838 #. type: verbatim
9839 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1180
9840 #, no-wrap
9841 msgid ""
9842 " a\n"
9843 " b\n"
9844 " c\n"
9845 " c/d\n"
9846 "\n"
9847 msgstr ""
9848
9849 # type: textblock
9850 #. type: textblock
9851 #: ../src/guestfs-actions.pod:1752 ../fish/guestfish-actions.pod:1185
9852 msgid "If C<directory> is not a directory, then this command returns an error."
9853 msgstr ""
9854
9855 # type: textblock
9856 #. type: textblock
9857 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1188
9858 msgid "The returned list is sorted."
9859 msgstr ""
9860
9861 # type: textblock
9862 #. type: textblock
9863 #: ../src/guestfs-actions.pod:1757
9864 msgid "See also C<guestfs_find0>."
9865 msgstr ""
9866
9867 # type: textblock
9868 #. type: textblock
9869 #: ../src/guestfs-actions.pod:1766 ../src/guestfs-actions.pod:4092
9870 #: ../src/guestfs-actions.pod:5635
9871 msgid "(Added in 1.0.27)"
9872 msgstr ""
9873
9874 # type: =head2
9875 #. type: =head2
9876 #: ../src/guestfs-actions.pod:1768
9877 msgid "guestfs_find0"
9878 msgstr ""
9879
9880 # type: verbatim
9881 #. type: verbatim
9882 #: ../src/guestfs-actions.pod:1770
9883 #, no-wrap
9884 msgid ""
9885 " int\n"
9886 " guestfs_find0 (guestfs_h *g,\n"
9887 "                const char *directory,\n"
9888 "                const char *files);\n"
9889 "\n"
9890 msgstr ""
9891
9892 # type: textblock
9893 #. type: textblock
9894 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1199
9895 msgid ""
9896 "This command lists out all files and directories, recursively, starting at "
9897 "C<directory>, placing the resulting list in the external file called "
9898 "C<files>."
9899 msgstr ""
9900
9901 # type: textblock
9902 #. type: textblock
9903 #: ../src/guestfs-actions.pod:1779
9904 msgid ""
9905 "This command works the same way as C<guestfs_find> with the following "
9906 "exceptions:"
9907 msgstr ""
9908
9909 # type: textblock
9910 #. type: textblock
9911 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1210
9912 msgid "The resulting list is written to an external file."
9913 msgstr ""
9914
9915 # type: textblock
9916 #. type: textblock
9917 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1214
9918 msgid ""
9919 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9920 "L<find(1)> option I<-print0>."
9921 msgstr ""
9922
9923 # type: textblock
9924 #. type: textblock
9925 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1219
9926 msgid "This command is not limited in the number of names that it can return."
9927 msgstr ""
9928
9929 # type: textblock
9930 #. type: textblock
9931 #: ../src/guestfs-actions.pod:1800 ../fish/guestfish-actions.pod:1224
9932 msgid "The result list is not sorted."
9933 msgstr ""
9934
9935 # type: textblock
9936 #. type: textblock
9937 #: ../src/guestfs-actions.pod:1806
9938 msgid "(Added in 1.0.74)"
9939 msgstr ""
9940
9941 # type: =head2
9942 #. type: =head2
9943 #: ../src/guestfs-actions.pod:1808
9944 msgid "guestfs_findfs_label"
9945 msgstr ""
9946
9947 # type: verbatim
9948 #. type: verbatim
9949 #: ../src/guestfs-actions.pod:1810
9950 #, no-wrap
9951 msgid ""
9952 " char *\n"
9953 " guestfs_findfs_label (guestfs_h *g,\n"
9954 "                       const char *label);\n"
9955 "\n"
9956 msgstr ""
9957
9958 # type: textblock
9959 #. type: textblock
9960 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1234
9961 msgid ""
9962 "This command searches the filesystems and returns the one which has the "
9963 "given label.  An error is returned if no such filesystem can be found."
9964 msgstr ""
9965
9966 # type: textblock
9967 #. type: textblock
9968 #: ../src/guestfs-actions.pod:1818
9969 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9970 msgstr ""
9971
9972 # type: =head2
9973 #. type: =head2
9974 #: ../src/guestfs-actions.pod:1825
9975 msgid "guestfs_findfs_uuid"
9976 msgstr ""
9977
9978 # type: verbatim
9979 #. type: verbatim
9980 #: ../src/guestfs-actions.pod:1827
9981 #, no-wrap
9982 msgid ""
9983 " char *\n"
9984 " guestfs_findfs_uuid (guestfs_h *g,\n"
9985 "                      const char *uuid);\n"
9986 "\n"
9987 msgstr ""
9988
9989 # type: textblock
9990 #. type: textblock
9991 #: ../src/guestfs-actions.pod:1831 ../fish/guestfish-actions.pod:1244
9992 msgid ""
9993 "This command searches the filesystems and returns the one which has the "
9994 "given UUID.  An error is returned if no such filesystem can be found."
9995 msgstr ""
9996
9997 # type: textblock
9998 #. type: textblock
9999 #: ../src/guestfs-actions.pod:1835
10000 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10001 msgstr ""
10002
10003 # type: =head2
10004 #. type: =head2
10005 #: ../src/guestfs-actions.pod:1842
10006 msgid "guestfs_fsck"
10007 msgstr ""
10008
10009 # type: verbatim
10010 #. type: verbatim
10011 #: ../src/guestfs-actions.pod:1844
10012 #, no-wrap
10013 msgid ""
10014 " int\n"
10015 " guestfs_fsck (guestfs_h *g,\n"
10016 "               const char *fstype,\n"
10017 "               const char *device);\n"
10018 "\n"
10019 msgstr ""
10020
10021 # type: textblock
10022 #. type: textblock
10023 #: ../src/guestfs-actions.pod:1849 ../fish/guestfish-actions.pod:1254
10024 msgid ""
10025 "This runs the filesystem checker (fsck) on C<device> which should have "
10026 "filesystem type C<fstype>."
10027 msgstr ""
10028
10029 # type: textblock
10030 #. type: textblock
10031 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1257
10032 msgid ""
10033 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10034 "codes from C<fsck>."
10035 msgstr ""
10036
10037 # type: textblock
10038 #. type: textblock
10039 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1266
10040 msgid "Multiple status codes can be summed together."
10041 msgstr ""
10042
10043 # type: textblock
10044 #. type: textblock
10045 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1270
10046 msgid ""
10047 "A non-zero return code can mean \"success\", for example if errors have been "
10048 "corrected on the filesystem."
10049 msgstr ""
10050
10051 # type: textblock
10052 #. type: textblock
10053 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1275
10054 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10055 msgstr ""
10056
10057 # type: textblock
10058 #. type: textblock
10059 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1280
10060 msgid ""
10061 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10062 msgstr ""
10063
10064 # type: textblock
10065 #. type: textblock
10066 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:7331
10067 msgid "(Added in 1.0.16)"
10068 msgstr ""
10069
10070 # type: =head2
10071 #. type: =head2
10072 #: ../src/guestfs-actions.pod:1881
10073 msgid "guestfs_get_append"
10074 msgstr ""
10075
10076 # type: verbatim
10077 #. type: verbatim
10078 #: ../src/guestfs-actions.pod:1883
10079 #, no-wrap
10080 msgid ""
10081 " const char *\n"
10082 " guestfs_get_append (guestfs_h *g);\n"
10083 "\n"
10084 msgstr ""
10085
10086 # type: textblock
10087 #. type: textblock
10088 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1286
10089 msgid ""
10090 "Return the additional kernel options which are added to the guest kernel "
10091 "command line."
10092 msgstr ""
10093
10094 # type: textblock
10095 #. type: textblock
10096 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1289
10097 msgid "If C<NULL> then no options are added."
10098 msgstr ""
10099
10100 # type: textblock
10101 #. type: textblock
10102 #: ../src/guestfs-actions.pod:1891
10103 msgid ""
10104 "This function returns a string which may be NULL.  There is no way to return "
10105 "an error from this function.  The string is owned by the guest handle and "
10106 "must I<not> be freed."
10107 msgstr ""
10108
10109 # type: textblock
10110 #. type: textblock
10111 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:5313
10112 #: ../src/guestfs-actions.pod:5793 ../src/guestfs-actions.pod:6193
10113 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6228
10114 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:7002
10115 #: ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7374
10116 msgid "(Added in 1.0.26)"
10117 msgstr ""
10118
10119 #. type: =head2
10120 #: ../src/guestfs-actions.pod:1897
10121 msgid "guestfs_get_attach_method"
10122 msgstr ""
10123
10124 #. type: verbatim
10125 #: ../src/guestfs-actions.pod:1899
10126 #, no-wrap
10127 msgid ""
10128 " char *\n"
10129 " guestfs_get_attach_method (guestfs_h *g);\n"
10130 "\n"
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../src/guestfs-actions.pod:1902
10135 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10136 msgstr ""
10137
10138 # type: =head2
10139 #. type: =head2
10140 #: ../src/guestfs-actions.pod:1907
10141 msgid "guestfs_get_autosync"
10142 msgstr ""
10143
10144 # type: verbatim
10145 #. type: verbatim
10146 #: ../src/guestfs-actions.pod:1909
10147 #, no-wrap
10148 msgid ""
10149 " int\n"
10150 " guestfs_get_autosync (guestfs_h *g);\n"
10151 "\n"
10152 msgstr ""
10153
10154 # type: textblock
10155 #. type: textblock
10156 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1301
10157 msgid "Get the autosync flag."
10158 msgstr ""
10159
10160 # type: =head2
10161 #. type: =head2
10162 #: ../src/guestfs-actions.pod:1918
10163 msgid "guestfs_get_direct"
10164 msgstr ""
10165
10166 # type: verbatim
10167 #. type: verbatim
10168 #: ../src/guestfs-actions.pod:1920
10169 #, no-wrap
10170 msgid ""
10171 " int\n"
10172 " guestfs_get_direct (guestfs_h *g);\n"
10173 "\n"
10174 msgstr ""
10175
10176 # type: textblock
10177 #. type: textblock
10178 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1307
10179 msgid "Return the direct appliance mode flag."
10180 msgstr ""
10181
10182 # type: textblock
10183 #. type: textblock
10184 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:5862
10185 msgid "(Added in 1.0.72)"
10186 msgstr ""
10187
10188 # type: =head2
10189 #. type: =head2
10190 #: ../src/guestfs-actions.pod:1929
10191 msgid "guestfs_get_e2label"
10192 msgstr ""
10193
10194 # type: verbatim
10195 #. type: verbatim
10196 #: ../src/guestfs-actions.pod:1931
10197 #, no-wrap
10198 msgid ""
10199 " char *\n"
10200 " guestfs_get_e2label (guestfs_h *g,\n"
10201 "                      const char *device);\n"
10202 "\n"
10203 msgstr ""
10204
10205 # type: textblock
10206 #. type: textblock
10207 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1313
10208 msgid ""
10209 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10210 msgstr ""
10211
10212 # type: textblock
10213 #. type: textblock
10214 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1316
10215 msgid ""
10216 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10217 msgstr ""
10218
10219 # type: textblock
10220 #. type: textblock
10221 #: ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1969
10222 #: ../src/guestfs-actions.pod:5880 ../src/guestfs-actions.pod:5899
10223 msgid "(Added in 1.0.15)"
10224 msgstr ""
10225
10226 # type: =head2
10227 #. type: =head2
10228 #: ../src/guestfs-actions.pod:1950
10229 msgid "guestfs_get_e2uuid"
10230 msgstr ""
10231
10232 # type: verbatim
10233 #. type: verbatim
10234 #: ../src/guestfs-actions.pod:1952
10235 #, no-wrap
10236 msgid ""
10237 " char *\n"
10238 " guestfs_get_e2uuid (guestfs_h *g,\n"
10239 "                     const char *device);\n"
10240 "\n"
10241 msgstr ""
10242
10243 # type: textblock
10244 #. type: textblock
10245 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1327
10246 msgid ""
10247 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10248 msgstr ""
10249
10250 # type: textblock
10251 #. type: textblock
10252 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1330
10253 msgid ""
10254 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10255 msgstr ""
10256
10257 # type: =head2
10258 #. type: =head2
10259 #: ../src/guestfs-actions.pod:1971
10260 msgid "guestfs_get_memsize"
10261 msgstr ""
10262
10263 # type: verbatim
10264 #. type: verbatim
10265 #: ../src/guestfs-actions.pod:1973
10266 #, no-wrap
10267 msgid ""
10268 " int\n"
10269 " guestfs_get_memsize (guestfs_h *g);\n"
10270 "\n"
10271 msgstr ""
10272
10273 # type: textblock
10274 #. type: textblock
10275 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1341
10276 msgid ""
10277 "This gets the memory size in megabytes allocated to the qemu subprocess."
10278 msgstr ""
10279
10280 # type: textblock
10281 #. type: textblock
10282 #: ../src/guestfs-actions.pod:1979
10283 msgid ""
10284 "If C<guestfs_set_memsize> was not called on this handle, and if "
10285 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10286 "value for memsize."
10287 msgstr ""
10288
10289 # type: textblock
10290 #. type: textblock
10291 #: ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:2064
10292 #: ../src/guestfs-actions.pod:5915 ../src/guestfs-actions.pod:6022
10293 #: ../fish/guestfish-actions.pod:1348 ../fish/guestfish-actions.pod:1399
10294 #: ../fish/guestfish-actions.pod:3985 ../fish/guestfish-actions.pod:4072
10295 msgid ""
10296 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10297 msgstr ""
10298
10299 # type: textblock
10300 #. type: textblock
10301 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:4383
10302 #: ../src/guestfs-actions.pod:4580 ../src/guestfs-actions.pod:4599
10303 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4630
10304 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4660
10305 #: ../src/guestfs-actions.pod:5538 ../src/guestfs-actions.pod:5920
10306 #: ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6768
10307 msgid "(Added in 1.0.55)"
10308 msgstr ""
10309
10310 # type: =head2
10311 #. type: =head2
10312 #: ../src/guestfs-actions.pod:1990
10313 msgid "guestfs_get_network"
10314 msgstr ""
10315
10316 # type: verbatim
10317 #. type: verbatim
10318 #: ../src/guestfs-actions.pod:1992
10319 #, no-wrap
10320 msgid ""
10321 " int\n"
10322 " guestfs_get_network (guestfs_h *g);\n"
10323 "\n"
10324 msgstr ""
10325
10326 # type: textblock
10327 #. type: textblock
10328 #: ../src/guestfs-actions.pod:1995 ../fish/guestfish-actions.pod:1355
10329 msgid "This returns the enable network flag."
10330 msgstr ""
10331
10332 # type: textblock
10333 #. type: textblock
10334 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:5939
10335 msgid "(Added in 1.5.4)"
10336 msgstr ""
10337
10338 # type: =head2
10339 #. type: =head2
10340 #: ../src/guestfs-actions.pod:2001
10341 msgid "guestfs_get_path"
10342 msgstr ""
10343
10344 # type: verbatim
10345 #. type: verbatim
10346 #: ../src/guestfs-actions.pod:2003
10347 #, no-wrap
10348 msgid ""
10349 " const char *\n"
10350 " guestfs_get_path (guestfs_h *g);\n"
10351 "\n"
10352 msgstr ""
10353
10354 # type: textblock
10355 #. type: textblock
10356 #: ../src/guestfs-actions.pod:2006 ../fish/guestfish-actions.pod:1361
10357 msgid "Return the current search path."
10358 msgstr ""
10359
10360 # type: textblock
10361 #. type: textblock
10362 #: ../src/guestfs-actions.pod:2008 ../fish/guestfish-actions.pod:1363
10363 msgid ""
10364 "This is always non-NULL.  If it wasn't set already, then this will return "
10365 "the default path."
10366 msgstr ""
10367
10368 # type: textblock
10369 #. type: textblock
10370 #: ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2040
10371 msgid ""
10372 "This function returns a string, or NULL on error.  The string is owned by "
10373 "the guest handle and must I<not> be freed."
10374 msgstr ""
10375
10376 # type: =head2
10377 #. type: =head2
10378 #: ../src/guestfs-actions.pod:2016
10379 msgid "guestfs_get_pid"
10380 msgstr ""
10381
10382 # type: verbatim
10383 #. type: verbatim
10384 #: ../src/guestfs-actions.pod:2018
10385 #, no-wrap
10386 msgid ""
10387 " int\n"
10388 " guestfs_get_pid (guestfs_h *g);\n"
10389 "\n"
10390 msgstr ""
10391
10392 # type: textblock
10393 #. type: textblock
10394 #: ../src/guestfs-actions.pod:2021 ../fish/guestfish-actions.pod:1372
10395 msgid ""
10396 "Return the process ID of the qemu subprocess.  If there is no qemu "
10397 "subprocess, then this will return an error."
10398 msgstr ""
10399
10400 # type: textblock
10401 #. type: textblock
10402 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1375
10403 msgid "This is an internal call used for debugging and testing."
10404 msgstr ""
10405
10406 # type: textblock
10407 #. type: textblock
10408 #: ../src/guestfs-actions.pod:2028
10409 msgid "(Added in 1.0.56)"
10410 msgstr ""
10411
10412 # type: =head2
10413 #. type: =head2
10414 #: ../src/guestfs-actions.pod:2030
10415 msgid "guestfs_get_qemu"
10416 msgstr ""
10417
10418 # type: verbatim
10419 #. type: verbatim
10420 #: ../src/guestfs-actions.pod:2032
10421 #, no-wrap
10422 msgid ""
10423 " const char *\n"
10424 " guestfs_get_qemu (guestfs_h *g);\n"
10425 "\n"
10426 msgstr ""
10427
10428 # type: textblock
10429 #. type: textblock
10430 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1381
10431 msgid "Return the current qemu binary."
10432 msgstr ""
10433
10434 # type: textblock
10435 #. type: textblock
10436 #: ../src/guestfs-actions.pod:2037 ../fish/guestfish-actions.pod:1383
10437 msgid ""
10438 "This is always non-NULL.  If it wasn't set already, then this will return "
10439 "the default qemu binary name."
10440 msgstr ""
10441
10442 # type: textblock
10443 #. type: textblock
10444 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:5984
10445 msgid "(Added in 1.0.6)"
10446 msgstr ""
10447
10448 # type: =head2
10449 #. type: =head2
10450 #: ../src/guestfs-actions.pod:2045
10451 msgid "guestfs_get_recovery_proc"
10452 msgstr ""
10453
10454 # type: verbatim
10455 #. type: verbatim
10456 #: ../src/guestfs-actions.pod:2047
10457 #, no-wrap
10458 msgid ""
10459 " int\n"
10460 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10461 "\n"
10462 msgstr ""
10463
10464 # type: textblock
10465 #. type: textblock
10466 #: ../src/guestfs-actions.pod:2050 ../fish/guestfish-actions.pod:1390
10467 msgid "Return the recovery process enabled flag."
10468 msgstr ""
10469
10470 # type: textblock
10471 #. type: textblock
10472 #: ../src/guestfs-actions.pod:2054 ../src/guestfs-actions.pod:3493
10473 #: ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:4190
10474 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:5243
10475 #: ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:6008
10476 #: ../src/guestfs-actions.pod:6671 ../src/guestfs-actions.pod:6691
10477 #: ../src/guestfs-actions.pod:6883
10478 msgid "(Added in 1.0.77)"
10479 msgstr ""
10480
10481 # type: =head2
10482 #. type: =head2
10483 #: ../src/guestfs-actions.pod:2056
10484 msgid "guestfs_get_selinux"
10485 msgstr ""
10486
10487 # type: verbatim
10488 #. type: verbatim
10489 #: ../src/guestfs-actions.pod:2058
10490 #, no-wrap
10491 msgid ""
10492 " int\n"
10493 " guestfs_get_selinux (guestfs_h *g);\n"
10494 "\n"
10495 msgstr ""
10496
10497 # type: textblock
10498 #. type: textblock
10499 #: ../src/guestfs-actions.pod:2061
10500 msgid ""
10501 "This returns the current setting of the selinux flag which is passed to the "
10502 "appliance at boot time.  See C<guestfs_set_selinux>."
10503 msgstr ""
10504
10505 # type: textblock
10506 #. type: textblock
10507 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2132
10508 #: ../src/guestfs-actions.pod:6027 ../src/guestfs-actions.pod:6085
10509 msgid "(Added in 1.0.67)"
10510 msgstr ""
10511
10512 # type: =head2
10513 #. type: =head2
10514 #: ../src/guestfs-actions.pod:2071
10515 msgid "guestfs_get_state"
10516 msgstr ""
10517
10518 # type: verbatim
10519 #. type: verbatim
10520 #: ../src/guestfs-actions.pod:2073
10521 #, no-wrap
10522 msgid ""
10523 " int\n"
10524 " guestfs_get_state (guestfs_h *g);\n"
10525 "\n"
10526 msgstr ""
10527
10528 # type: textblock
10529 #. type: textblock
10530 #: ../src/guestfs-actions.pod:2076 ../fish/guestfish-actions.pod:1406
10531 msgid ""
10532 "This returns the current state as an opaque integer.  This is only useful "
10533 "for printing debug and internal error messages."
10534 msgstr ""
10535
10536 # type: textblock
10537 #. type: textblock
10538 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:3291
10539 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3381
10540 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:1409
10541 #: ../fish/guestfish-actions.pod:2315 ../fish/guestfish-actions.pod:2333
10542 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2387
10543 msgid "For more information on states, see L<guestfs(3)>."
10544 msgstr ""
10545
10546 # type: =head2
10547 #. type: =head2
10548 #: ../src/guestfs-actions.pod:2085
10549 msgid "guestfs_get_trace"
10550 msgstr ""
10551
10552 # type: verbatim
10553 #. type: verbatim
10554 #: ../src/guestfs-actions.pod:2087
10555 #, no-wrap
10556 msgid ""
10557 " int\n"
10558 " guestfs_get_trace (guestfs_h *g);\n"
10559 "\n"
10560 msgstr ""
10561
10562 # type: textblock
10563 #. type: textblock
10564 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
10565 msgid "Return the command trace flag."
10566 msgstr ""
10567
10568 # type: =head2
10569 #. type: =head2
10570 #: ../src/guestfs-actions.pod:2096
10571 msgid "guestfs_get_umask"
10572 msgstr ""
10573
10574 # type: verbatim
10575 #. type: verbatim
10576 #: ../src/guestfs-actions.pod:2098
10577 #, no-wrap
10578 msgid ""
10579 " int\n"
10580 " guestfs_get_umask (guestfs_h *g);\n"
10581 "\n"
10582 msgstr ""
10583
10584 # type: textblock
10585 #. type: textblock
10586 #: ../src/guestfs-actions.pod:2101
10587 msgid ""
10588 "Return the current umask.  By default the umask is C<022> unless it has been "
10589 "set by calling C<guestfs_umask>."
10590 msgstr ""
10591
10592 # type: =head2
10593 #. type: =head2
10594 #: ../src/guestfs-actions.pod:2108
10595 msgid "guestfs_get_verbose"
10596 msgstr ""
10597
10598 # type: verbatim
10599 #. type: verbatim
10600 #: ../src/guestfs-actions.pod:2110
10601 #, no-wrap
10602 msgid ""
10603 " int\n"
10604 " guestfs_get_verbose (guestfs_h *g);\n"
10605 "\n"
10606 msgstr ""
10607
10608 # type: textblock
10609 #. type: textblock
10610 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1428
10611 msgid "This returns the verbose messages flag."
10612 msgstr ""
10613
10614 # type: =head2
10615 #. type: =head2
10616 #: ../src/guestfs-actions.pod:2119
10617 msgid "guestfs_getcon"
10618 msgstr ""
10619
10620 # type: verbatim
10621 #. type: verbatim
10622 #: ../src/guestfs-actions.pod:2121
10623 #, no-wrap
10624 msgid ""
10625 " char *\n"
10626 " guestfs_getcon (guestfs_h *g);\n"
10627 "\n"
10628 msgstr ""
10629
10630 # type: textblock
10631 #. type: textblock
10632 #: ../src/guestfs-actions.pod:2124 ../fish/guestfish-actions.pod:1434
10633 msgid "This gets the SELinux security context of the daemon."
10634 msgstr ""
10635
10636 # type: textblock
10637 #. type: textblock
10638 #: ../src/guestfs-actions.pod:2126
10639 msgid ""
10640 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10641 msgstr ""
10642
10643 # type: =head2
10644 #. type: =head2
10645 #: ../src/guestfs-actions.pod:2134
10646 msgid "guestfs_getxattr"
10647 msgstr ""
10648
10649 # type: verbatim
10650 #. type: verbatim
10651 #: ../src/guestfs-actions.pod:2136
10652 #, no-wrap
10653 msgid ""
10654 " char *\n"
10655 " guestfs_getxattr (guestfs_h *g,\n"
10656 "                   const char *path,\n"
10657 "                   const char *name,\n"
10658 "                   size_t *size_r);\n"
10659 "\n"
10660 msgstr ""
10661
10662 # type: textblock
10663 #. type: textblock
10664 #: ../src/guestfs-actions.pod:2142
10665 msgid ""
10666 "Get a single extended attribute from file C<path> named C<name>.  This call "
10667 "follows symlinks.  If you want to lookup an extended attribute for the "
10668 "symlink itself, use C<guestfs_lgetxattr>."
10669 msgstr ""
10670
10671 # type: textblock
10672 #. type: textblock
10673 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:3507
10674 msgid ""
10675 "Normally it is better to get all extended attributes from a file in one go "
10676 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10677 "implementations are buggy and do not provide a way to list out attributes.  "
10678 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10679 "extended attributes you want in advance and call this function."
10680 msgstr ""
10681
10682 # type: textblock
10683 #. type: textblock
10684 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:3514
10685 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2452
10686 msgid ""
10687 "Extended attribute values are blobs of binary data.  If there is no extended "
10688 "attribute named C<name>, this returns an error."
10689 msgstr ""
10690
10691 # type: textblock
10692 #. type: textblock
10693 #: ../src/guestfs-actions.pod:2156
10694 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10695 msgstr ""
10696
10697 # type: textblock
10698 #. type: textblock
10699 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:2349
10700 #: ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:5236
10701 #: ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5443
10702 msgid ""
10703 "This function returns a buffer, or NULL on error.  The size of the returned "
10704 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10705 "after use>."
10706 msgstr ""
10707
10708 #. type: textblock
10709 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:3523
10710 msgid "(Added in 1.7.24)"
10711 msgstr ""
10712
10713 # type: =head2
10714 #. type: =head2
10715 #: ../src/guestfs-actions.pod:2164
10716 msgid "guestfs_getxattrs"
10717 msgstr ""
10718
10719 # type: verbatim
10720 #. type: verbatim
10721 #: ../src/guestfs-actions.pod:2166
10722 #, no-wrap
10723 msgid ""
10724 " struct guestfs_xattr_list *\n"
10725 " guestfs_getxattrs (guestfs_h *g,\n"
10726 "                    const char *path);\n"
10727 "\n"
10728 msgstr ""
10729
10730 # type: textblock
10731 #. type: textblock
10732 #: ../src/guestfs-actions.pod:2170 ../fish/guestfish-actions.pod:1463
10733 msgid ""
10734 "This call lists the extended attributes of the file or directory C<path>."
10735 msgstr ""
10736
10737 # type: textblock
10738 #. type: textblock
10739 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1466
10740 msgid ""
10741 "At the system call level, this is a combination of the L<listxattr(2)> and "
10742 "L<getxattr(2)> calls."
10743 msgstr ""
10744
10745 # type: textblock
10746 #. type: textblock
10747 #: ../src/guestfs-actions.pod:2176
10748 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10749 msgstr ""
10750
10751 # type: textblock
10752 #. type: textblock
10753 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:3535
10754 #: ../src/guestfs-actions.pod:4186
10755 msgid ""
10756 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10757 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10758 msgstr ""
10759
10760 # type: textblock
10761 #. type: textblock
10762 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:3539
10763 #: ../src/guestfs-actions.pod:3704 ../src/guestfs-actions.pod:3740
10764 #: ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:6104
10765 #: ../src/guestfs-actions.pod:7439
10766 msgid "(Added in 1.0.59)"
10767 msgstr ""
10768
10769 # type: =head2
10770 #. type: =head2
10771 #: ../src/guestfs-actions.pod:2184
10772 msgid "guestfs_glob_expand"
10773 msgstr ""
10774
10775 # type: verbatim
10776 #. type: verbatim
10777 #: ../src/guestfs-actions.pod:2186
10778 #, no-wrap
10779 msgid ""
10780 " char **\n"
10781 " guestfs_glob_expand (guestfs_h *g,\n"
10782 "                      const char *pattern);\n"
10783 "\n"
10784 msgstr ""
10785
10786 # type: textblock
10787 #. type: textblock
10788 #: ../src/guestfs-actions.pod:2190 ../fish/guestfish-actions.pod:1475
10789 msgid ""
10790 "This command searches for all the pathnames matching C<pattern> according to "
10791 "the wildcard expansion rules used by the shell."
10792 msgstr ""
10793
10794 # type: textblock
10795 #. type: textblock
10796 #: ../src/guestfs-actions.pod:2194 ../fish/guestfish-actions.pod:1479
10797 msgid ""
10798 "If no paths match, then this returns an empty list (note: not an error)."
10799 msgstr ""
10800
10801 # type: textblock
10802 #. type: textblock
10803 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1482
10804 msgid ""
10805 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10806 "GLOB_BRACE>.  See that manual page for more details."
10807 msgstr ""
10808
10809 # type: textblock
10810 #. type: textblock
10811 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6269
10812 #: ../src/guestfs-actions.pod:6286
10813 msgid "(Added in 1.0.50)"
10814 msgstr ""
10815
10816 # type: =head2
10817 #. type: =head2
10818 #: ../src/guestfs-actions.pod:2207
10819 msgid "guestfs_grep"
10820 msgstr ""
10821
10822 # type: verbatim
10823 #. type: verbatim
10824 #: ../src/guestfs-actions.pod:2209
10825 #, no-wrap
10826 msgid ""
10827 " char **\n"
10828 " guestfs_grep (guestfs_h *g,\n"
10829 "               const char *regex,\n"
10830 "               const char *path);\n"
10831 "\n"
10832 msgstr ""
10833
10834 # type: textblock
10835 #. type: textblock
10836 #: ../src/guestfs-actions.pod:2214 ../fish/guestfish-actions.pod:1490
10837 msgid "This calls the external C<grep> program and returns the matching lines."
10838 msgstr ""
10839
10840 # type: =head2
10841 #. type: =head2
10842 #: ../src/guestfs-actions.pod:2226
10843 msgid "guestfs_grepi"
10844 msgstr ""
10845
10846 # type: verbatim
10847 #. type: verbatim
10848 #: ../src/guestfs-actions.pod:2228
10849 #, no-wrap
10850 msgid ""
10851 " char **\n"
10852 " guestfs_grepi (guestfs_h *g,\n"
10853 "                const char *regex,\n"
10854 "                const char *path);\n"
10855 "\n"
10856 msgstr ""
10857
10858 # type: textblock
10859 #. type: textblock
10860 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1500
10861 msgid ""
10862 "This calls the external C<grep -i> program and returns the matching lines."
10863 msgstr ""
10864
10865 # type: =head2
10866 #. type: =head2
10867 #: ../src/guestfs-actions.pod:2245
10868 msgid "guestfs_grub_install"
10869 msgstr ""
10870
10871 # type: verbatim
10872 #. type: verbatim
10873 #: ../src/guestfs-actions.pod:2247
10874 #, no-wrap
10875 msgid ""
10876 " int\n"
10877 " guestfs_grub_install (guestfs_h *g,\n"
10878 "                       const char *root,\n"
10879 "                       const char *device);\n"
10880 "\n"
10881 msgstr ""
10882
10883 # type: textblock
10884 #. type: textblock
10885 #: ../src/guestfs-actions.pod:2252 ../fish/guestfish-actions.pod:1510
10886 msgid ""
10887 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10888 "the root directory being C<root>."
10889 msgstr ""
10890
10891 # type: textblock
10892 #. type: textblock
10893 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1513
10894 msgid ""
10895 "Note: If grub-install reports the error \"No suitable drive was found in the "
10896 "generated device map.\" it may be that you need to create a C</boot/grub/"
10897 "device.map> file first that contains the mapping between grub device names "
10898 "and Linux device names.  It is usually sufficient to create a file "
10899 "containing:"
10900 msgstr ""
10901
10902 # type: verbatim
10903 #. type: verbatim
10904 #: ../src/guestfs-actions.pod:2262 ../fish/guestfish-actions.pod:1520
10905 #, no-wrap
10906 msgid ""
10907 " (hd0) /dev/vda\n"
10908 "\n"
10909 msgstr ""
10910
10911 # type: textblock
10912 #. type: textblock
10913 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1522
10914 msgid "replacing C</dev/vda> with the name of the installation device."
10915 msgstr ""
10916
10917 # type: textblock
10918 #. type: textblock
10919 #: ../src/guestfs-actions.pod:2268
10920 msgid "(Added in 1.0.17)"
10921 msgstr ""
10922
10923 # type: =head2
10924 #. type: =head2
10925 #: ../src/guestfs-actions.pod:2270
10926 msgid "guestfs_head"
10927 msgstr ""
10928
10929 # type: verbatim
10930 #. type: verbatim
10931 #: ../src/guestfs-actions.pod:2272
10932 #, no-wrap
10933 msgid ""
10934 " char **\n"
10935 " guestfs_head (guestfs_h *g,\n"
10936 "               const char *path);\n"
10937 "\n"
10938 msgstr ""
10939
10940 # type: textblock
10941 #. type: textblock
10942 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1528
10943 msgid ""
10944 "This command returns up to the first 10 lines of a file as a list of strings."
10945 msgstr ""
10946
10947 # type: =head2
10948 #. type: =head2
10949 #: ../src/guestfs-actions.pod:2288
10950 msgid "guestfs_head_n"
10951 msgstr ""
10952
10953 # type: verbatim
10954 #. type: verbatim
10955 #: ../src/guestfs-actions.pod:2290
10956 #, no-wrap
10957 msgid ""
10958 " char **\n"
10959 " guestfs_head_n (guestfs_h *g,\n"
10960 "                 int nrlines,\n"
10961 "                 const char *path);\n"
10962 "\n"
10963 msgstr ""
10964
10965 # type: textblock
10966 #. type: textblock
10967 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1538
10968 msgid ""
10969 "If the parameter C<nrlines> is a positive number, this returns the first "
10970 "C<nrlines> lines of the file C<path>."
10971 msgstr ""
10972
10973 # type: textblock
10974 #. type: textblock
10975 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1541
10976 msgid ""
10977 "If the parameter C<nrlines> is a negative number, this returns lines from "
10978 "the file C<path>, excluding the last C<nrlines> lines."
10979 msgstr ""
10980
10981 # type: textblock
10982 #. type: textblock
10983 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:6566
10984 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4422
10985 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10986 msgstr ""
10987
10988 # type: =head2
10989 #. type: =head2
10990 #: ../src/guestfs-actions.pod:2312
10991 msgid "guestfs_hexdump"
10992 msgstr ""
10993
10994 # type: verbatim
10995 #. type: verbatim
10996 #: ../src/guestfs-actions.pod:2314
10997 #, no-wrap
10998 msgid ""
10999 " char *\n"
11000 " guestfs_hexdump (guestfs_h *g,\n"
11001 "                  const char *path);\n"
11002 "\n"
11003 msgstr ""
11004
11005 # type: textblock
11006 #. type: textblock
11007 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1553
11008 msgid ""
11009 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11010 "readable, canonical hex dump of the file."
11011 msgstr ""
11012
11013 # type: textblock
11014 #. type: textblock
11015 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:6350
11016 #: ../src/guestfs-actions.pod:6405
11017 msgid "(Added in 1.0.22)"
11018 msgstr ""
11019
11020 # type: =head2
11021 #. type: =head2
11022 #: ../src/guestfs-actions.pod:2329
11023 msgid "guestfs_initrd_cat"
11024 msgstr ""
11025
11026 # type: verbatim
11027 #. type: verbatim
11028 #: ../src/guestfs-actions.pod:2331
11029 #, no-wrap
11030 msgid ""
11031 " char *\n"
11032 " guestfs_initrd_cat (guestfs_h *g,\n"
11033 "                     const char *initrdpath,\n"
11034 "                     const char *filename,\n"
11035 "                     size_t *size_r);\n"
11036 "\n"
11037 msgstr ""
11038
11039 # type: textblock
11040 #. type: textblock
11041 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1563
11042 msgid ""
11043 "This command unpacks the file C<filename> from the initrd file called "
11044 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11045 "character."
11046 msgstr ""
11047
11048 # type: textblock
11049 #. type: textblock
11050 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1567
11051 msgid ""
11052 "For example, in guestfish you could use the following command to examine the "
11053 "boot script (usually called C</init>)  contained in a Linux initrd or "
11054 "initramfs image:"
11055 msgstr ""
11056
11057 # type: verbatim
11058 #. type: verbatim
11059 #: ../src/guestfs-actions.pod:2345 ../fish/guestfish-actions.pod:1571
11060 #, no-wrap
11061 msgid ""
11062 " initrd-cat /boot/initrd-<version>.img init\n"
11063 "\n"
11064 msgstr ""
11065
11066 # type: textblock
11067 #. type: textblock
11068 #: ../src/guestfs-actions.pod:2347
11069 msgid "See also C<guestfs_initrd_list>."
11070 msgstr ""
11071
11072 # type: =head2
11073 #. type: =head2
11074 #: ../src/guestfs-actions.pod:2358
11075 msgid "guestfs_initrd_list"
11076 msgstr ""
11077
11078 # type: verbatim
11079 #. type: verbatim
11080 #: ../src/guestfs-actions.pod:2360
11081 #, no-wrap
11082 msgid ""
11083 " char **\n"
11084 " guestfs_initrd_list (guestfs_h *g,\n"
11085 "                      const char *path);\n"
11086 "\n"
11087 msgstr ""
11088
11089 # type: textblock
11090 #. type: textblock
11091 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1582
11092 msgid "This command lists out files contained in an initrd."
11093 msgstr ""
11094
11095 # type: textblock
11096 #. type: textblock
11097 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1584
11098 msgid ""
11099 "The files are listed without any initial C</> character.  The files are "
11100 "listed in the order they appear (not necessarily alphabetical).  Directory "
11101 "names are listed as separate items."
11102 msgstr ""
11103
11104 # type: textblock
11105 #. type: textblock
11106 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1588
11107 msgid ""
11108 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11109 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11110 "files)."
11111 msgstr ""
11112
11113 # type: =head2
11114 #. type: =head2
11115 #: ../src/guestfs-actions.pod:2380
11116 msgid "guestfs_inotify_add_watch"
11117 msgstr ""
11118
11119 # type: verbatim
11120 #. type: verbatim
11121 #: ../src/guestfs-actions.pod:2382
11122 #, no-wrap
11123 msgid ""
11124 " int64_t\n"
11125 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11126 "                            const char *path,\n"
11127 "                            int mask);\n"
11128 "\n"
11129 msgstr ""
11130
11131 # type: textblock
11132 #. type: textblock
11133 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1596
11134 msgid "Watch C<path> for the events listed in C<mask>."
11135 msgstr ""
11136
11137 # type: textblock
11138 #. type: textblock
11139 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1598
11140 msgid ""
11141 "Note that if C<path> is a directory then events within that directory are "
11142 "watched, but this does I<not> happen recursively (in subdirectories)."
11143 msgstr ""
11144
11145 # type: textblock
11146 #. type: textblock
11147 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1602
11148 msgid ""
11149 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11150 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11151 msgstr ""
11152
11153 # type: =head2
11154 #. type: =head2
11155 #: ../src/guestfs-actions.pod:2401
11156 msgid "guestfs_inotify_close"
11157 msgstr ""
11158
11159 # type: verbatim
11160 #. type: verbatim
11161 #: ../src/guestfs-actions.pod:2403
11162 #, no-wrap
11163 msgid ""
11164 " int\n"
11165 " guestfs_inotify_close (guestfs_h *g);\n"
11166 "\n"
11167 msgstr ""
11168
11169 # type: textblock
11170 #. type: textblock
11171 #: ../src/guestfs-actions.pod:2406 ../fish/guestfish-actions.pod:1610
11172 msgid ""
11173 "This closes the inotify handle which was previously opened by inotify_init.  "
11174 "It removes all watches, throws away any pending events, and deallocates all "
11175 "resources."
11176 msgstr ""
11177
11178 # type: =head2
11179 #. type: =head2
11180 #: ../src/guestfs-actions.pod:2414
11181 msgid "guestfs_inotify_files"
11182 msgstr ""
11183
11184 # type: verbatim
11185 #. type: verbatim
11186 #: ../src/guestfs-actions.pod:2416
11187 #, no-wrap
11188 msgid ""
11189 " char **\n"
11190 " guestfs_inotify_files (guestfs_h *g);\n"
11191 "\n"
11192 msgstr ""
11193
11194 # type: textblock
11195 #. type: textblock
11196 #: ../src/guestfs-actions.pod:2419
11197 msgid ""
11198 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11199 "returns a list of pathnames of objects that were touched.  The returned "
11200 "pathnames are sorted and deduplicated."
11201 msgstr ""
11202
11203 # type: =head2
11204 #. type: =head2
11205 #: ../src/guestfs-actions.pod:2429
11206 msgid "guestfs_inotify_init"
11207 msgstr ""
11208
11209 # type: verbatim
11210 #. type: verbatim
11211 #: ../src/guestfs-actions.pod:2431
11212 #, no-wrap
11213 msgid ""
11214 " int\n"
11215 " guestfs_inotify_init (guestfs_h *g,\n"
11216 "                       int maxevents);\n"
11217 "\n"
11218 msgstr ""
11219
11220 # type: textblock
11221 #. type: textblock
11222 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1626
11223 msgid ""
11224 "This command creates a new inotify handle.  The inotify subsystem can be "
11225 "used to notify events which happen to objects in the guest filesystem."
11226 msgstr ""
11227
11228 # type: textblock
11229 #. type: textblock
11230 #: ../src/guestfs-actions.pod:2439
11231 msgid ""
11232 "C<maxevents> is the maximum number of events which will be queued up between "
11233 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11234 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11235 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11236 "throws away events, but records the fact that it threw them away by setting "
11237 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11238 "C<guestfs_inotify_read>)."
11239 msgstr ""
11240
11241 # type: textblock
11242 #. type: textblock
11243 #: ../src/guestfs-actions.pod:2449
11244 msgid ""
11245 "Before any events are generated, you have to add some watches to the "
11246 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11247 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11248 msgstr ""
11249
11250 # type: textblock
11251 #. type: textblock
11252 #: ../src/guestfs-actions.pod:2455
11253 msgid ""
11254 "Queued up events should be read periodically by calling "
11255 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11256 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11257 "often enough then you risk the internal queue overflowing."
11258 msgstr ""
11259
11260 # type: textblock
11261 #. type: textblock
11262 #: ../src/guestfs-actions.pod:2462
11263 msgid ""
11264 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11265 "This also removes any watches automatically."
11266 msgstr ""
11267
11268 # type: textblock
11269 #. type: textblock
11270 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1657
11271 msgid ""
11272 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11273 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11274 "that there is one global inotify handle per libguestfs instance."
11275 msgstr ""
11276
11277 # type: =head2
11278 #. type: =head2
11279 #: ../src/guestfs-actions.pod:2475
11280 msgid "guestfs_inotify_read"
11281 msgstr ""
11282
11283 # type: verbatim
11284 #. type: verbatim
11285 #: ../src/guestfs-actions.pod:2477
11286 #, no-wrap
11287 msgid ""
11288 " struct guestfs_inotify_event_list *\n"
11289 " guestfs_inotify_read (guestfs_h *g);\n"
11290 "\n"
11291 msgstr ""
11292
11293 # type: textblock
11294 #. type: textblock
11295 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1666
11296 msgid ""
11297 "Return the complete queue of events that have happened since the previous "
11298 "read call."
11299 msgstr ""
11300
11301 # type: textblock
11302 #. type: textblock
11303 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1669
11304 msgid "If no events have happened, this returns an empty list."
11305 msgstr ""
11306
11307 # type: textblock
11308 #. type: textblock
11309 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1671
11310 msgid ""
11311 "I<Note>: In order to make sure that all events have been read, you must call "
11312 "this function repeatedly until it returns an empty list.  The reason is that "
11313 "the call will read events up to the maximum appliance-to-host message size "
11314 "and leave remaining events in the queue."
11315 msgstr ""
11316
11317 # type: textblock
11318 #. type: textblock
11319 #: ../src/guestfs-actions.pod:2491
11320 msgid ""
11321 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11322 "there was an error.  I<The caller must call "
11323 "C<guestfs_free_inotify_event_list> after use>."
11324 msgstr ""
11325
11326 # type: =head2
11327 #. type: =head2
11328 #: ../src/guestfs-actions.pod:2497
11329 msgid "guestfs_inotify_rm_watch"
11330 msgstr ""
11331
11332 # type: verbatim
11333 #. type: verbatim
11334 #: ../src/guestfs-actions.pod:2499
11335 #, no-wrap
11336 msgid ""
11337 " int\n"
11338 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11339 "                           int wd);\n"
11340 "\n"
11341 msgstr ""
11342
11343 # type: textblock
11344 #. type: textblock
11345 #: ../src/guestfs-actions.pod:2503
11346 msgid ""
11347 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11348 msgstr ""
11349
11350 # type: =head2
11351 #. type: =head2
11352 #: ../src/guestfs-actions.pod:2510
11353 msgid "guestfs_inspect_get_arch"
11354 msgstr ""
11355
11356 # type: verbatim
11357 #. type: verbatim
11358 #: ../src/guestfs-actions.pod:2512
11359 #, no-wrap
11360 msgid ""
11361 " char *\n"
11362 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11363 "                           const char *root);\n"
11364 "\n"
11365 msgstr ""
11366
11367 # type: textblock
11368 #. type: textblock
11369 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2539
11370 #: ../src/guestfs-actions.pod:2624 ../src/guestfs-actions.pod:2668
11371 #: ../src/guestfs-actions.pod:2694 ../src/guestfs-actions.pod:2733
11372 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:2782
11373 #: ../src/guestfs-actions.pod:2803 ../src/guestfs-actions.pod:2846
11374 #: ../src/guestfs-actions.pod:2875 ../src/guestfs-actions.pod:2906
11375 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:2985
11376 #: ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3048
11377 #: ../src/guestfs-actions.pod:3071 ../src/guestfs-actions.pod:3088
11378 #: ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3124
11379 msgid ""
11380 "This function should only be called with a root device string as returned by "
11381 "C<guestfs_inspect_os>."
11382 msgstr ""
11383
11384 # type: textblock
11385 #. type: textblock
11386 #: ../src/guestfs-actions.pod:2519
11387 msgid ""
11388 "This returns the architecture of the inspected operating system.  The "
11389 "possible return values are listed under C<guestfs_file_architecture>."
11390 msgstr ""
11391
11392 # type: textblock
11393 #. type: textblock
11394 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1695
11395 msgid ""
11396 "If the architecture could not be determined, then the string C<unknown> is "
11397 "returned."
11398 msgstr ""
11399
11400 # type: textblock
11401 #. type: textblock
11402 #: ../src/guestfs-actions.pod:2526 ../src/guestfs-actions.pod:2611
11403 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:2742
11404 #: ../src/guestfs-actions.pod:2770 ../src/guestfs-actions.pod:2862
11405 #: ../src/guestfs-actions.pod:2893 ../src/guestfs-actions.pod:2917
11406 #: ../src/guestfs-actions.pod:2971 ../src/guestfs-actions.pod:3014
11407 #: ../src/guestfs-actions.pod:3037 ../src/guestfs-actions.pod:3058
11408 #: ../src/guestfs-actions.pod:3078 ../src/guestfs-actions.pod:3095
11409 #: ../src/guestfs-actions.pod:3114 ../src/guestfs-actions.pod:3217
11410 #: ../src/guestfs-actions.pod:3258 ../fish/guestfish-actions.pod:1698
11411 #: ../fish/guestfish-actions.pod:1776 ../fish/guestfish-actions.pod:1864
11412 #: ../fish/guestfish-actions.pod:1879 ../fish/guestfish-actions.pod:1900
11413 #: ../fish/guestfish-actions.pod:1970 ../fish/guestfish-actions.pod:1994
11414 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2054
11415 #: ../fish/guestfish-actions.pod:2089 ../fish/guestfish-actions.pod:2105
11416 #: ../fish/guestfish-actions.pod:2121 ../fish/guestfish-actions.pod:2134
11417 #: ../fish/guestfish-actions.pod:2147 ../fish/guestfish-actions.pod:2162
11418 #: ../fish/guestfish-actions.pod:2261 ../fish/guestfish-actions.pod:2295
11419 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11420 msgstr ""
11421
11422 # type: =head2
11423 #. type: =head2
11424 #: ../src/guestfs-actions.pod:2533
11425 msgid "guestfs_inspect_get_distro"
11426 msgstr ""
11427
11428 # type: verbatim
11429 #. type: verbatim
11430 #: ../src/guestfs-actions.pod:2535
11431 #, no-wrap
11432 msgid ""
11433 " char *\n"
11434 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11435 "                             const char *root);\n"
11436 "\n"
11437 msgstr ""
11438
11439 # type: textblock
11440 #. type: textblock
11441 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1707
11442 msgid ""
11443 "This returns the distro (distribution) of the inspected operating system."
11444 msgstr ""
11445
11446 # type: textblock
11447 #. type: textblock
11448 #: ../src/guestfs-actions.pod:2545 ../fish/guestfish-actions.pod:1710
11449 msgid "Currently defined distros are:"
11450 msgstr ""
11451
11452 # type: =item
11453 #. type: =item
11454 #: ../src/guestfs-actions.pod:2549 ../fish/guestfish-actions.pod:1714
11455 msgid "\"archlinux\""
11456 msgstr ""
11457
11458 # type: textblock
11459 #. type: textblock
11460 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1716
11461 msgid "Arch Linux."
11462 msgstr ""
11463
11464 # type: =item
11465 #. type: =item
11466 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1718
11467 msgid "\"debian\""
11468 msgstr ""
11469
11470 # type: textblock
11471 #. type: textblock
11472 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1720
11473 msgid "Debian."
11474 msgstr ""
11475
11476 # type: =item
11477 #. type: =item
11478 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1722
11479 msgid "\"fedora\""
11480 msgstr ""
11481
11482 # type: textblock
11483 #. type: textblock
11484 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1724
11485 msgid "Fedora."
11486 msgstr ""
11487
11488 # type: =item
11489 #. type: =item
11490 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1726
11491 msgid "\"gentoo\""
11492 msgstr ""
11493
11494 # type: textblock
11495 #. type: textblock
11496 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1728
11497 msgid "Gentoo."
11498 msgstr ""
11499
11500 # type: =item
11501 #. type: =item
11502 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1730
11503 msgid "\"linuxmint\""
11504 msgstr ""
11505
11506 # type: textblock
11507 #. type: textblock
11508 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1732
11509 msgid "Linux Mint."
11510 msgstr ""
11511
11512 # type: =item
11513 #. type: =item
11514 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1734
11515 msgid "\"mandriva\""
11516 msgstr ""
11517
11518 # type: textblock
11519 #. type: textblock
11520 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1736
11521 msgid "Mandriva."
11522 msgstr ""
11523
11524 # type: =item
11525 #. type: =item
11526 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1738
11527 msgid "\"meego\""
11528 msgstr ""
11529
11530 # type: textblock
11531 #. type: textblock
11532 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1740
11533 msgid "MeeGo."
11534 msgstr ""
11535
11536 # type: =item
11537 #. type: =item
11538 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1742
11539 msgid "\"pardus\""
11540 msgstr ""
11541
11542 # type: textblock
11543 #. type: textblock
11544 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1744
11545 msgid "Pardus."
11546 msgstr ""
11547
11548 # type: =item
11549 #. type: =item
11550 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1746
11551 msgid "\"redhat-based\""
11552 msgstr ""
11553
11554 # type: textblock
11555 #. type: textblock
11556 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1748
11557 msgid "Some Red Hat-derived distro."
11558 msgstr ""
11559
11560 # type: =item
11561 #. type: =item
11562 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1750
11563 msgid "\"rhel\""
11564 msgstr ""
11565
11566 # type: textblock
11567 #. type: textblock
11568 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1752
11569 msgid "Red Hat Enterprise Linux and some derivatives."
11570 msgstr ""
11571
11572 #. type: =item
11573 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1754
11574 msgid "\"slackware\""
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1756
11579 msgid "Slackware."
11580 msgstr ""
11581
11582 # type: =item
11583 #. type: =item
11584 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1758
11585 msgid "\"ubuntu\""
11586 msgstr ""
11587
11588 # type: textblock
11589 #. type: textblock
11590 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1760
11591 msgid "Ubuntu."
11592 msgstr ""
11593
11594 # type: =item
11595 #. type: =item
11596 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2713
11597 #: ../src/guestfs-actions.pod:3005 ../fish/guestfish-actions.pod:1762
11598 #: ../fish/guestfish-actions.pod:1855 ../fish/guestfish-actions.pod:2080
11599 msgid "\"unknown\""
11600 msgstr ""
11601
11602 # type: textblock
11603 #. type: textblock
11604 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1764
11605 msgid "The distro could not be determined."
11606 msgstr ""
11607
11608 # type: =item
11609 #. type: =item
11610 #: ../src/guestfs-actions.pod:2601 ../src/guestfs-actions.pod:2997
11611 #: ../fish/guestfish-actions.pod:1766 ../fish/guestfish-actions.pod:2072
11612 msgid "\"windows\""
11613 msgstr ""
11614
11615 # type: textblock
11616 #. type: textblock
11617 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1768
11618 msgid ""
11619 "Windows does not have distributions.  This string is returned if the OS type "
11620 "is Windows."
11621 msgstr ""
11622
11623 # type: textblock
11624 #. type: textblock
11625 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2719
11626 #: ../src/guestfs-actions.pod:3011 ../fish/guestfish-actions.pod:1773
11627 #: ../fish/guestfish-actions.pod:1861 ../fish/guestfish-actions.pod:2086
11628 msgid ""
11629 "Future versions of libguestfs may return other strings here.  The caller "
11630 "should be prepared to handle any string."
11631 msgstr ""
11632
11633 #. type: =head2
11634 #: ../src/guestfs-actions.pod:2618
11635 msgid "guestfs_inspect_get_drive_mappings"
11636 msgstr ""
11637
11638 #. type: verbatim
11639 #: ../src/guestfs-actions.pod:2620
11640 #, no-wrap
11641 msgid ""
11642 " char **\n"
11643 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
11644 "                                     const char *root);\n"
11645 "\n"
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:1785
11650 msgid ""
11651 "This call is useful for Windows which uses a primitive system of assigning "
11652 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11653 "Windows Registry to find out how disks/partitions are mapped to drive "
11654 "letters, and returns a hash table as in the example below:"
11655 msgstr ""
11656
11657 #. type: verbatim
11658 #: ../src/guestfs-actions.pod:2633 ../fish/guestfish-actions.pod:1791
11659 #, no-wrap
11660 msgid ""
11661 " C      =>     /dev/vda2\n"
11662 " E      =>     /dev/vdb1\n"
11663 " F      =>     /dev/vdc1\n"
11664 "\n"
11665 msgstr ""
11666
11667 #. type: textblock
11668 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1795
11669 msgid ""
11670 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11671 "and just contains the drive letter, without the customary colon separator "
11672 "character."
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../src/guestfs-actions.pod:2641 ../fish/guestfish-actions.pod:1799
11677 msgid ""
11678 "In future we may support other operating systems that also used drive "
11679 "letters, but the keys for those might not be case insensitive and might be "
11680 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11681 "C<h1> etc."
11682 msgstr ""
11683
11684 #. type: textblock
11685 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1804
11686 msgid ""
11687 "For Windows guests, currently only hard drive mappings are returned.  "
11688 "Removable disks (eg. DVD-ROMs) are ignored."
11689 msgstr ""
11690
11691 #. type: textblock
11692 #: ../src/guestfs-actions.pod:2649 ../fish/guestfish-actions.pod:1807
11693 msgid ""
11694 "For guests that do not use drive mappings, or if the drive mappings could "
11695 "not be determined, this returns an empty hash table."
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../src/guestfs-actions.pod:2652
11700 msgid ""
11701 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11702 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
11703 msgstr ""
11704
11705 # type: textblock
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:2832
11708 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:4802
11709 #: ../src/guestfs-actions.pod:6707
11710 msgid ""
11711 "This function returns a NULL-terminated array of strings, or NULL if there "
11712 "was an error.  The array of strings will always have length C<2n+1>, where "
11713 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11714 "caller must free the strings and the array after use>."
11715 msgstr ""
11716
11717 # type: =head2
11718 #. type: =head2
11719 #: ../src/guestfs-actions.pod:2662
11720 msgid "guestfs_inspect_get_filesystems"
11721 msgstr ""
11722
11723 # type: verbatim
11724 #. type: verbatim
11725 #: ../src/guestfs-actions.pod:2664
11726 #, no-wrap
11727 msgid ""
11728 " char **\n"
11729 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11730 "                                  const char *root);\n"
11731 "\n"
11732 msgstr ""
11733
11734 # type: textblock
11735 #. type: textblock
11736 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:1821
11737 msgid ""
11738 "This returns a list of all the filesystems that we think are associated with "
11739 "this operating system.  This includes the root filesystem, other ordinary "
11740 "filesystems, and non-mounted devices like swap partitions."
11741 msgstr ""
11742
11743 # type: textblock
11744 #. type: textblock
11745 #: ../src/guestfs-actions.pod:2676 ../fish/guestfish-actions.pod:1826
11746 msgid ""
11747 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11748 "to be shared between operating systems."
11749 msgstr ""
11750
11751 # type: textblock
11752 #. type: textblock
11753 #: ../src/guestfs-actions.pod:2679
11754 msgid ""
11755 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11756 "C<guestfs_inspect_get_mountpoints>."
11757 msgstr ""
11758
11759 #. type: =head2
11760 #: ../src/guestfs-actions.pod:2688
11761 msgid "guestfs_inspect_get_format"
11762 msgstr ""
11763
11764 #. type: verbatim
11765 #: ../src/guestfs-actions.pod:2690
11766 #, no-wrap
11767 msgid ""
11768 " char *\n"
11769 " guestfs_inspect_get_format (guestfs_h *g,\n"
11770 "                             const char *root);\n"
11771 "\n"
11772 msgstr ""
11773
11774 #. type: textblock
11775 #: ../src/guestfs-actions.pod:2697 ../fish/guestfish-actions.pod:1839
11776 msgid ""
11777 "This returns the format of the inspected operating system.  You can use it "
11778 "to detect install images, live CDs and similar."
11779 msgstr ""
11780
11781 #. type: textblock
11782 #: ../src/guestfs-actions.pod:2700 ../fish/guestfish-actions.pod:1842
11783 msgid "Currently defined formats are:"
11784 msgstr ""
11785
11786 #. type: =item
11787 #: ../src/guestfs-actions.pod:2704 ../fish/guestfish-actions.pod:1846
11788 msgid "\"installed\""
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../src/guestfs-actions.pod:2706 ../fish/guestfish-actions.pod:1848
11793 msgid "This is an installed operating system."
11794 msgstr ""
11795
11796 #. type: =item
11797 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1850
11798 msgid "\"installer\""
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../src/guestfs-actions.pod:2710 ../fish/guestfish-actions.pod:1852
11803 msgid ""
11804 "The disk image being inspected is not an installed operating system, but a "
11805 "I<bootable> install disk, live CD, or similar."
11806 msgstr ""
11807
11808 #. type: textblock
11809 #: ../src/guestfs-actions.pod:2715 ../fish/guestfish-actions.pod:1857
11810 msgid "The format of this disk image is not known."
11811 msgstr ""
11812
11813 # type: =head2
11814 #. type: =head2
11815 #: ../src/guestfs-actions.pod:2727
11816 msgid "guestfs_inspect_get_hostname"
11817 msgstr ""
11818
11819 # type: verbatim
11820 #. type: verbatim
11821 #: ../src/guestfs-actions.pod:2729
11822 #, no-wrap
11823 msgid ""
11824 " char *\n"
11825 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11826 "                               const char *root);\n"
11827 "\n"
11828 msgstr ""
11829
11830 # type: textblock
11831 #. type: textblock
11832 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1873
11833 msgid ""
11834 "This function returns the hostname of the operating system as found by "
11835 "inspection of the guest's configuration files."
11836 msgstr ""
11837
11838 # type: textblock
11839 #. type: textblock
11840 #: ../src/guestfs-actions.pod:2739 ../fish/guestfish-actions.pod:1876
11841 msgid ""
11842 "If the hostname could not be determined, then the string C<unknown> is "
11843 "returned."
11844 msgstr ""
11845
11846 # type: textblock
11847 #. type: textblock
11848 #: ../src/guestfs-actions.pod:2747
11849 msgid "(Added in 1.7.9)"
11850 msgstr ""
11851
11852 # type: =head2
11853 #. type: =head2
11854 #: ../src/guestfs-actions.pod:2749
11855 msgid "guestfs_inspect_get_major_version"
11856 msgstr ""
11857
11858 # type: verbatim
11859 #. type: verbatim
11860 #: ../src/guestfs-actions.pod:2751
11861 #, no-wrap
11862 msgid ""
11863 " int\n"
11864 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11865 "                                    const char *root);\n"
11866 "\n"
11867 msgstr ""
11868
11869 # type: textblock
11870 #. type: textblock
11871 #: ../src/guestfs-actions.pod:2758 ../fish/guestfish-actions.pod:1888
11872 msgid ""
11873 "This returns the major version number of the inspected operating system."
11874 msgstr ""
11875
11876 # type: textblock
11877 #. type: textblock
11878 #: ../src/guestfs-actions.pod:2761 ../fish/guestfish-actions.pod:1891
11879 msgid ""
11880 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11881 "popular public names used by the operating system.  Notably the operating "
11882 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11883 "1).  You can find out the real versions corresponding to releases of Windows "
11884 "by consulting Wikipedia or MSDN."
11885 msgstr ""
11886
11887 # type: textblock
11888 #. type: textblock
11889 #: ../src/guestfs-actions.pod:2768 ../src/guestfs-actions.pod:2788
11890 #: ../fish/guestfish-actions.pod:1898 ../fish/guestfish-actions.pod:1912
11891 msgid "If the version could not be determined, then C<0> is returned."
11892 msgstr ""
11893
11894 # type: =head2
11895 #. type: =head2
11896 #: ../src/guestfs-actions.pod:2776
11897 msgid "guestfs_inspect_get_minor_version"
11898 msgstr ""
11899
11900 # type: verbatim
11901 #. type: verbatim
11902 #: ../src/guestfs-actions.pod:2778
11903 #, no-wrap
11904 msgid ""
11905 " int\n"
11906 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11907 "                                    const char *root);\n"
11908 "\n"
11909 msgstr ""
11910
11911 # type: textblock
11912 #. type: textblock
11913 #: ../src/guestfs-actions.pod:2785 ../fish/guestfish-actions.pod:1909
11914 msgid ""
11915 "This returns the minor version number of the inspected operating system."
11916 msgstr ""
11917
11918 # type: textblock
11919 #. type: textblock
11920 #: ../src/guestfs-actions.pod:2790
11921 msgid ""
11922 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11923 "C<guestfs_inspect_get_major_version>."
11924 msgstr ""
11925
11926 # type: =head2
11927 #. type: =head2
11928 #: ../src/guestfs-actions.pod:2797
11929 msgid "guestfs_inspect_get_mountpoints"
11930 msgstr ""
11931
11932 # type: verbatim
11933 #. type: verbatim
11934 #: ../src/guestfs-actions.pod:2799
11935 #, no-wrap
11936 msgid ""
11937 " char **\n"
11938 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11939 "                                  const char *root);\n"
11940 "\n"
11941 msgstr ""
11942
11943 #. type: textblock
11944 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1924
11945 msgid ""
11946 "This returns a hash of where we think the filesystems associated with this "
11947 "operating system should be mounted.  Callers should note that this is at "
11948 "best an educated guess made by reading configuration files such as C</etc/"
11949 "fstab>.  I<In particular note> that this may return filesystems which are "
11950 "non-existent or not mountable and callers should be prepared to handle or "
11951 "ignore failures if they try to mount them."
11952 msgstr ""
11953
11954 # type: textblock
11955 #. type: textblock
11956 #: ../src/guestfs-actions.pod:2815 ../fish/guestfish-actions.pod:1933
11957 msgid ""
11958 "Each element in the returned hashtable has a key which is the path of the "
11959 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11960 "mounted there (eg. C</dev/sda1>)."
11961 msgstr ""
11962
11963 # type: textblock
11964 #. type: textblock
11965 #: ../src/guestfs-actions.pod:2820 ../fish/guestfish-actions.pod:1938
11966 msgid ""
11967 "Non-mounted devices such as swap devices are I<not> returned in this list."
11968 msgstr ""
11969
11970 #. type: textblock
11971 #: ../src/guestfs-actions.pod:2823
11972 msgid ""
11973 "For operating systems like Windows which still use drive letters, this call "
11974 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11975 "information about the mapping of drive letters to partitions, see "
11976 "C<guestfs_inspect_get_drive_mappings>."
11977 msgstr ""
11978
11979 # type: textblock
11980 #. type: textblock
11981 #: ../src/guestfs-actions.pod:2829
11982 msgid ""
11983 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11984 "C<guestfs_inspect_get_filesystems>."
11985 msgstr ""
11986
11987 # type: =head2
11988 #. type: =head2
11989 #: ../src/guestfs-actions.pod:2840
11990 msgid "guestfs_inspect_get_package_format"
11991 msgstr ""
11992
11993 # type: verbatim
11994 #. type: verbatim
11995 #: ../src/guestfs-actions.pod:2842
11996 #, no-wrap
11997 msgid ""
11998 " char *\n"
11999 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
12000 "                                     const char *root);\n"
12001 "\n"
12002 msgstr ""
12003
12004 # type: textblock
12005 #. type: textblock
12006 #: ../src/guestfs-actions.pod:2849
12007 msgid ""
12008 "This function and C<guestfs_inspect_get_package_management> return the "
12009 "package format and package management tool used by the inspected operating "
12010 "system.  For example for Fedora these functions would return C<rpm> (package "
12011 "format) and C<yum> (package management)."
12012 msgstr ""
12013
12014 # type: textblock
12015 #. type: textblock
12016 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1963
12017 msgid ""
12018 "This returns the string C<unknown> if we could not determine the package "
12019 "format I<or> if the operating system does not have a real packaging system "
12020 "(eg. Windows)."
12021 msgstr ""
12022
12023 # type: textblock
12024 #. type: textblock
12025 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1967
12026 msgid ""
12027 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
12028 "Future versions of libguestfs may return other strings."
12029 msgstr ""
12030
12031 # type: textblock
12032 #. type: textblock
12033 #: ../src/guestfs-actions.pod:2867 ../src/guestfs-actions.pod:2898
12034 msgid "(Added in 1.7.5)"
12035 msgstr ""
12036
12037 # type: =head2
12038 #. type: =head2
12039 #: ../src/guestfs-actions.pod:2869
12040 msgid "guestfs_inspect_get_package_management"
12041 msgstr ""
12042
12043 # type: verbatim
12044 #. type: verbatim
12045 #: ../src/guestfs-actions.pod:2871
12046 #, no-wrap
12047 msgid ""
12048 " char *\n"
12049 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
12050 "                                         const char *root);\n"
12051 "\n"
12052 msgstr ""
12053
12054 # type: textblock
12055 #. type: textblock
12056 #: ../src/guestfs-actions.pod:2878
12057 msgid ""
12058 "C<guestfs_inspect_get_package_format> and this function return the package "
12059 "format and package management tool used by the inspected operating system.  "
12060 "For example for Fedora these functions would return C<rpm> (package format) "
12061 "and C<yum> (package management)."
12062 msgstr ""
12063
12064 # type: textblock
12065 #. type: textblock
12066 #: ../src/guestfs-actions.pod:2884 ../fish/guestfish-actions.pod:1985
12067 msgid ""
12068 "This returns the string C<unknown> if we could not determine the package "
12069 "management tool I<or> if the operating system does not have a real packaging "
12070 "system (eg. Windows)."
12071 msgstr ""
12072
12073 # type: textblock
12074 #. type: textblock
12075 #: ../src/guestfs-actions.pod:2888 ../fish/guestfish-actions.pod:1989
12076 msgid ""
12077 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12078 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12079 "libguestfs may return other strings."
12080 msgstr ""
12081
12082 # type: =head2
12083 #. type: =head2
12084 #: ../src/guestfs-actions.pod:2900
12085 msgid "guestfs_inspect_get_product_name"
12086 msgstr ""
12087
12088 # type: verbatim
12089 #. type: verbatim
12090 #: ../src/guestfs-actions.pod:2902
12091 #, no-wrap
12092 msgid ""
12093 " char *\n"
12094 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12095 "                                   const char *root);\n"
12096 "\n"
12097 msgstr ""
12098
12099 # type: textblock
12100 #. type: textblock
12101 #: ../src/guestfs-actions.pod:2909 ../fish/guestfish-actions.pod:2003
12102 msgid ""
12103 "This returns the product name of the inspected operating system.  The "
12104 "product name is generally some freeform string which can be displayed to the "
12105 "user, but should not be parsed by programs."
12106 msgstr ""
12107
12108 # type: textblock
12109 #. type: textblock
12110 #: ../src/guestfs-actions.pod:2914 ../fish/guestfish-actions.pod:2008
12111 msgid ""
12112 "If the product name could not be determined, then the string C<unknown> is "
12113 "returned."
12114 msgstr ""
12115
12116 #. type: =head2
12117 #: ../src/guestfs-actions.pod:2924
12118 msgid "guestfs_inspect_get_product_variant"
12119 msgstr ""
12120
12121 #. type: verbatim
12122 #: ../src/guestfs-actions.pod:2926
12123 #, no-wrap
12124 msgid ""
12125 " char *\n"
12126 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12127 "                                      const char *root);\n"
12128 "\n"
12129 msgstr ""
12130
12131 #. type: textblock
12132 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2020
12133 msgid "This returns the product variant of the inspected operating system."
12134 msgstr ""
12135
12136 #. type: textblock
12137 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2023
12138 msgid ""
12139 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12140 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12141 "is usually a string such as C<Client> or C<Server> (other values are "
12142 "possible).  This can be used to distinguish consumer and enterprise versions "
12143 "of Windows that have the same version number (for example, Windows 7 and "
12144 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12145 "the latter is C<Server>)."
12146 msgstr ""
12147
12148 #. type: textblock
12149 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2032
12150 msgid ""
12151 "For enterprise Linux guests, in future we intend this to return the product "
12152 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12153 "implemented at present."
12154 msgstr ""
12155
12156 #. type: textblock
12157 #: ../src/guestfs-actions.pod:2949 ../fish/guestfish-actions.pod:2036
12158 msgid ""
12159 "If the product variant could not be determined, then the string C<unknown> "
12160 "is returned."
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../src/guestfs-actions.pod:2952
12165 msgid ""
12166 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12167 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12168 msgstr ""
12169
12170 # type: =head2
12171 #. type: =head2
12172 #: ../src/guestfs-actions.pod:2959
12173 msgid "guestfs_inspect_get_roots"
12174 msgstr ""
12175
12176 # type: verbatim
12177 #. type: verbatim
12178 #: ../src/guestfs-actions.pod:2961
12179 #, no-wrap
12180 msgid ""
12181 " char **\n"
12182 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12183 "\n"
12184 msgstr ""
12185
12186 # type: textblock
12187 #. type: textblock
12188 #: ../src/guestfs-actions.pod:2964
12189 msgid ""
12190 "This function is a convenient way to get the list of root devices, as "
12191 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12192 "the whole inspection process."
12193 msgstr ""
12194
12195 # type: textblock
12196 #. type: textblock
12197 #: ../src/guestfs-actions.pod:2968
12198 msgid ""
12199 "This returns an empty list if either no root devices were found or the "
12200 "caller has not called C<guestfs_inspect_os>."
12201 msgstr ""
12202
12203 # type: textblock
12204 #. type: textblock
12205 #: ../src/guestfs-actions.pod:2977
12206 msgid "(Added in 1.7.3)"
12207 msgstr ""
12208
12209 # type: =head2
12210 #. type: =head2
12211 #: ../src/guestfs-actions.pod:2979
12212 msgid "guestfs_inspect_get_type"
12213 msgstr ""
12214
12215 # type: verbatim
12216 #. type: verbatim
12217 #: ../src/guestfs-actions.pod:2981
12218 #, no-wrap
12219 msgid ""
12220 " char *\n"
12221 " guestfs_inspect_get_type (guestfs_h *g,\n"
12222 "                           const char *root);\n"
12223 "\n"
12224 msgstr ""
12225
12226 # type: textblock
12227 #. type: textblock
12228 #: ../src/guestfs-actions.pod:2988 ../fish/guestfish-actions.pod:2063
12229 msgid ""
12230 "This returns the type of the inspected operating system.  Currently defined "
12231 "types are:"
12232 msgstr ""
12233
12234 # type: =item
12235 #. type: =item
12236 #: ../src/guestfs-actions.pod:2993 ../fish/guestfish-actions.pod:2068
12237 msgid "\"linux\""
12238 msgstr ""
12239
12240 # type: textblock
12241 #. type: textblock
12242 #: ../src/guestfs-actions.pod:2995 ../fish/guestfish-actions.pod:2070
12243 msgid "Any Linux-based operating system."
12244 msgstr ""
12245
12246 # type: textblock
12247 #. type: textblock
12248 #: ../src/guestfs-actions.pod:2999 ../fish/guestfish-actions.pod:2074
12249 msgid "Any Microsoft Windows operating system."
12250 msgstr ""
12251
12252 # type: =item
12253 #. type: =item
12254 #: ../src/guestfs-actions.pod:3001 ../fish/guestfish-actions.pod:2076
12255 msgid "\"freebsd\""
12256 msgstr ""
12257
12258 # type: textblock
12259 #. type: textblock
12260 #: ../src/guestfs-actions.pod:3003 ../fish/guestfish-actions.pod:2078
12261 msgid "FreeBSD."
12262 msgstr ""
12263
12264 # type: textblock
12265 #. type: textblock
12266 #: ../src/guestfs-actions.pod:3007 ../fish/guestfish-actions.pod:2082
12267 msgid "The operating system type could not be determined."
12268 msgstr ""
12269
12270 #. type: =head2
12271 #: ../src/guestfs-actions.pod:3021
12272 msgid "guestfs_inspect_get_windows_current_control_set"
12273 msgstr ""
12274
12275 #. type: verbatim
12276 #: ../src/guestfs-actions.pod:3023
12277 #, no-wrap
12278 msgid ""
12279 " char *\n"
12280 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
12281 "                                                  const char *root);\n"
12282 "\n"
12283 msgstr ""
12284
12285 #. type: textblock
12286 #: ../src/guestfs-actions.pod:3030 ../fish/guestfish-actions.pod:2098
12287 msgid ""
12288 "This returns the Windows CurrentControlSet of the inspected guest.  The "
12289 "CurrentControlSet is a registry key name such as C<ControlSet001>."
12290 msgstr ""
12291
12292 #. type: textblock
12293 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2101
12294 msgid ""
12295 "This call assumes that the guest is Windows and that the Registry could be "
12296 "examined by inspection.  If this is not the case then an error is returned."
12297 msgstr ""
12298
12299 # type: =head2
12300 #. type: =head2
12301 #: ../src/guestfs-actions.pod:3042
12302 msgid "guestfs_inspect_get_windows_systemroot"
12303 msgstr ""
12304
12305 # type: verbatim
12306 #. type: verbatim
12307 #: ../src/guestfs-actions.pod:3044
12308 #, no-wrap
12309 msgid ""
12310 " char *\n"
12311 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12312 "                                         const char *root);\n"
12313 "\n"
12314 msgstr ""
12315
12316 # type: textblock
12317 #. type: textblock
12318 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2114
12319 msgid ""
12320 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12321 "is a directory path such as C</WINDOWS>."
12322 msgstr ""
12323
12324 # type: textblock
12325 #. type: textblock
12326 #: ../src/guestfs-actions.pod:3054 ../fish/guestfish-actions.pod:2117
12327 msgid ""
12328 "This call assumes that the guest is Windows and that the systemroot could be "
12329 "determined by inspection.  If this is not the case then an error is returned."
12330 msgstr ""
12331
12332 # type: textblock
12333 #. type: textblock
12334 #: ../src/guestfs-actions.pod:3063
12335 msgid "(Added in 1.5.25)"
12336 msgstr ""
12337
12338 #. type: =head2
12339 #: ../src/guestfs-actions.pod:3065
12340 msgid "guestfs_inspect_is_live"
12341 msgstr ""
12342
12343 #. type: verbatim
12344 #: ../src/guestfs-actions.pod:3067
12345 #, no-wrap
12346 msgid ""
12347 " int\n"
12348 " guestfs_inspect_is_live (guestfs_h *g,\n"
12349 "                          const char *root);\n"
12350 "\n"
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../src/guestfs-actions.pod:3074
12355 msgid ""
12356 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12357 "disk), then this returns true if a live image was detected on the disk."
12358 msgstr ""
12359
12360 #. type: =head2
12361 #: ../src/guestfs-actions.pod:3082
12362 msgid "guestfs_inspect_is_multipart"
12363 msgstr ""
12364
12365 #. type: verbatim
12366 #: ../src/guestfs-actions.pod:3084
12367 #, no-wrap
12368 msgid ""
12369 " int\n"
12370 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12371 "                               const char *root);\n"
12372 "\n"
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../src/guestfs-actions.pod:3091
12377 msgid ""
12378 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12379 "disk), then this returns true if the disk is part of a set."
12380 msgstr ""
12381
12382 #. type: =head2
12383 #: ../src/guestfs-actions.pod:3099
12384 msgid "guestfs_inspect_is_netinst"
12385 msgstr ""
12386
12387 #. type: verbatim
12388 #: ../src/guestfs-actions.pod:3101
12389 #, no-wrap
12390 msgid ""
12391 " int\n"
12392 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12393 "                             const char *root);\n"
12394 "\n"
12395 msgstr ""
12396
12397 #. type: textblock
12398 #: ../src/guestfs-actions.pod:3108
12399 msgid ""
12400 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12401 "disk), then this returns true if the disk is a network installer, ie. not a "
12402 "self-contained install CD but one which is likely to require network access "
12403 "to complete the install."
12404 msgstr ""
12405
12406 # type: =head2
12407 #. type: =head2
12408 #: ../src/guestfs-actions.pod:3118
12409 msgid "guestfs_inspect_list_applications"
12410 msgstr ""
12411
12412 # type: verbatim
12413 #. type: verbatim
12414 #: ../src/guestfs-actions.pod:3120
12415 #, no-wrap
12416 msgid ""
12417 " struct guestfs_application_list *\n"
12418 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12419 "                                    const char *root);\n"
12420 "\n"
12421 msgstr ""
12422
12423 # type: textblock
12424 #. type: textblock
12425 #: ../src/guestfs-actions.pod:3127 ../fish/guestfish-actions.pod:2171
12426 msgid "Return the list of applications installed in the operating system."
12427 msgstr ""
12428
12429 # type: textblock
12430 #. type: textblock
12431 #: ../src/guestfs-actions.pod:3129
12432 msgid ""
12433 "I<Note:> This call works differently from other parts of the inspection "
12434 "API.  You have to call C<guestfs_inspect_os>, then "
12435 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12436 "this.  Listing applications is a significantly more difficult operation "
12437 "which requires access to the full filesystem.  Also note that unlike the "
12438 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12439 "the libguestfs handle, this call actually reads parts of the mounted "
12440 "filesystems during the call."
12441 msgstr ""
12442
12443 # type: textblock
12444 #. type: textblock
12445 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2183
12446 msgid ""
12447 "This returns an empty list if the inspection code was not able to determine "
12448 "the list of applications."
12449 msgstr ""
12450
12451 # type: textblock
12452 #. type: textblock
12453 #: ../src/guestfs-actions.pod:3142 ../fish/guestfish-actions.pod:2186
12454 msgid "The application structure contains the following fields:"
12455 msgstr ""
12456
12457 # type: =item
12458 #. type: =item
12459 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2190
12460 msgid "C<app_name>"
12461 msgstr ""
12462
12463 # type: textblock
12464 #. type: textblock
12465 #: ../src/guestfs-actions.pod:3148 ../fish/guestfish-actions.pod:2192
12466 msgid ""
12467 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12468 "guests, this is the package name."
12469 msgstr ""
12470
12471 # type: =item
12472 #. type: =item
12473 #: ../src/guestfs-actions.pod:3151 ../fish/guestfish-actions.pod:2195
12474 msgid "C<app_display_name>"
12475 msgstr ""
12476
12477 # type: textblock
12478 #. type: textblock
12479 #: ../src/guestfs-actions.pod:3153 ../fish/guestfish-actions.pod:2197
12480 msgid ""
12481 "The display name of the application, sometimes localized to the install "
12482 "language of the guest operating system."
12483 msgstr ""
12484
12485 # type: textblock
12486 #. type: textblock
12487 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2200
12488 msgid ""
12489 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12490 "to display something can use C<app_name> instead."
12491 msgstr ""
12492
12493 # type: =item
12494 #. type: =item
12495 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2203
12496 msgid "C<app_epoch>"
12497 msgstr ""
12498
12499 # type: textblock
12500 #. type: textblock
12501 #: ../src/guestfs-actions.pod:3161 ../fish/guestfish-actions.pod:2205
12502 msgid ""
12503 "For package managers which use epochs, this contains the epoch of the "
12504 "package (an integer).  If unavailable, this is returned as C<0>."
12505 msgstr ""
12506
12507 # type: =item
12508 #. type: =item
12509 #: ../src/guestfs-actions.pod:3164 ../fish/guestfish-actions.pod:2208
12510 msgid "C<app_version>"
12511 msgstr ""
12512
12513 # type: textblock
12514 #. type: textblock
12515 #: ../src/guestfs-actions.pod:3166 ../fish/guestfish-actions.pod:2210
12516 msgid ""
12517 "The version string of the application or package.  If unavailable this is "
12518 "returned as an empty string C<\"\">."
12519 msgstr ""
12520
12521 # type: =item
12522 #. type: =item
12523 #: ../src/guestfs-actions.pod:3169 ../fish/guestfish-actions.pod:2213
12524 msgid "C<app_release>"
12525 msgstr ""
12526
12527 # type: textblock
12528 #. type: textblock
12529 #: ../src/guestfs-actions.pod:3171 ../fish/guestfish-actions.pod:2215
12530 msgid ""
12531 "The release string of the application or package, for package managers that "
12532 "use this.  If unavailable this is returned as an empty string C<\"\">."
12533 msgstr ""
12534
12535 # type: =item
12536 #. type: =item
12537 #: ../src/guestfs-actions.pod:3175 ../fish/guestfish-actions.pod:2219
12538 msgid "C<app_install_path>"
12539 msgstr ""
12540
12541 # type: textblock
12542 #. type: textblock
12543 #: ../src/guestfs-actions.pod:3177 ../fish/guestfish-actions.pod:2221
12544 msgid ""
12545 "The installation path of the application (on operating systems such as "
12546 "Windows which use installation paths).  This path is in the format used by "
12547 "the guest operating system, it is not a libguestfs path."
12548 msgstr ""
12549
12550 # type: textblock
12551 #. type: textblock
12552 #: ../src/guestfs-actions.pod:3182 ../fish/guestfish-actions.pod:2226
12553 msgid "If unavailable this is returned as an empty string C<\"\">."
12554 msgstr ""
12555
12556 # type: =item
12557 #. type: =item
12558 #: ../src/guestfs-actions.pod:3184 ../fish/guestfish-actions.pod:2228
12559 msgid "C<app_trans_path>"
12560 msgstr ""
12561
12562 # type: textblock
12563 #. type: textblock
12564 #: ../src/guestfs-actions.pod:3186 ../fish/guestfish-actions.pod:2230
12565 msgid ""
12566 "The install path translated into a libguestfs path.  If unavailable this is "
12567 "returned as an empty string C<\"\">."
12568 msgstr ""
12569
12570 # type: =item
12571 #. type: =item
12572 #: ../src/guestfs-actions.pod:3189 ../fish/guestfish-actions.pod:2233
12573 msgid "C<app_publisher>"
12574 msgstr ""
12575
12576 # type: textblock
12577 #. type: textblock
12578 #: ../src/guestfs-actions.pod:3191 ../fish/guestfish-actions.pod:2235
12579 msgid ""
12580 "The name of the publisher of the application, for package managers that use "
12581 "this.  If unavailable this is returned as an empty string C<\"\">."
12582 msgstr ""
12583
12584 # type: =item
12585 #. type: =item
12586 #: ../src/guestfs-actions.pod:3195 ../fish/guestfish-actions.pod:2239
12587 msgid "C<app_url>"
12588 msgstr ""
12589
12590 # type: textblock
12591 #. type: textblock
12592 #: ../src/guestfs-actions.pod:3197 ../fish/guestfish-actions.pod:2241
12593 msgid ""
12594 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12595 "returned as an empty string C<\"\">."
12596 msgstr ""
12597
12598 # type: =item
12599 #. type: =item
12600 #: ../src/guestfs-actions.pod:3200 ../fish/guestfish-actions.pod:2244
12601 msgid "C<app_source_package>"
12602 msgstr ""
12603
12604 # type: textblock
12605 #. type: textblock
12606 #: ../src/guestfs-actions.pod:3202 ../fish/guestfish-actions.pod:2246
12607 msgid ""
12608 "For packaging systems which support this, the name of the source package.  "
12609 "If unavailable this is returned as an empty string C<\"\">."
12610 msgstr ""
12611
12612 # type: =item
12613 #. type: =item
12614 #: ../src/guestfs-actions.pod:3205 ../fish/guestfish-actions.pod:2249
12615 msgid "C<app_summary>"
12616 msgstr ""
12617
12618 # type: textblock
12619 #. type: textblock
12620 #: ../src/guestfs-actions.pod:3207 ../fish/guestfish-actions.pod:2251
12621 msgid ""
12622 "A short (usually one line) description of the application or package.  If "
12623 "unavailable this is returned as an empty string C<\"\">."
12624 msgstr ""
12625
12626 # type: =item
12627 #. type: =item
12628 #: ../src/guestfs-actions.pod:3210 ../fish/guestfish-actions.pod:2254
12629 msgid "C<app_description>"
12630 msgstr ""
12631
12632 # type: textblock
12633 #. type: textblock
12634 #: ../src/guestfs-actions.pod:3212 ../fish/guestfish-actions.pod:2256
12635 msgid ""
12636 "A longer description of the application or package.  If unavailable this is "
12637 "returned as an empty string C<\"\">."
12638 msgstr ""
12639
12640 # type: textblock
12641 #. type: textblock
12642 #: ../src/guestfs-actions.pod:3219
12643 msgid ""
12644 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12645 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
12646 "after use>."
12647 msgstr ""
12648
12649 # type: textblock
12650 #. type: textblock
12651 #: ../src/guestfs-actions.pod:3223
12652 msgid "(Added in 1.7.8)"
12653 msgstr ""
12654
12655 # type: =head2
12656 #. type: =head2
12657 #: ../src/guestfs-actions.pod:3225
12658 msgid "guestfs_inspect_os"
12659 msgstr ""
12660
12661 # type: verbatim
12662 #. type: verbatim
12663 #: ../src/guestfs-actions.pod:3227
12664 #, no-wrap
12665 msgid ""
12666 " char **\n"
12667 " guestfs_inspect_os (guestfs_h *g);\n"
12668 "\n"
12669 msgstr ""
12670
12671 # type: textblock
12672 #. type: textblock
12673 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2267
12674 msgid ""
12675 "This function uses other libguestfs functions and certain heuristics to "
12676 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12677 "for operating systems."
12678 msgstr ""
12679
12680 # type: textblock
12681 #. type: textblock
12682 #: ../src/guestfs-actions.pod:3234 ../fish/guestfish-actions.pod:2271
12683 msgid "The list returned is empty if no operating systems were found."
12684 msgstr ""
12685
12686 # type: textblock
12687 #. type: textblock
12688 #: ../src/guestfs-actions.pod:3236 ../fish/guestfish-actions.pod:2273
12689 msgid ""
12690 "If one operating system was found, then this returns a list with a single "
12691 "element, which is the name of the root filesystem of this operating system.  "
12692 "It is also possible for this function to return a list containing more than "
12693 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12694 "element being the root filesystem of one of the operating systems."
12695 msgstr ""
12696
12697 # type: textblock
12698 #. type: textblock
12699 #: ../src/guestfs-actions.pod:3243
12700 msgid ""
12701 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
12702 "functions in order to query further information about each operating system, "
12703 "such as the name and version."
12704 msgstr ""
12705
12706 # type: textblock
12707 #. type: textblock
12708 #: ../src/guestfs-actions.pod:3248
12709 msgid ""
12710 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
12711 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
12712 "the contents.  This should be called with no disks currently mounted.  The "
12713 "function may also use Augeas, so any existing Augeas handle will be closed."
12714 msgstr ""
12715
12716 # type: textblock
12717 #. type: textblock
12718 #: ../src/guestfs-actions.pod:3254 ../fish/guestfish-actions.pod:2291
12719 msgid ""
12720 "This function cannot decrypt encrypted disks.  The caller must do that first "
12721 "(supplying the necessary keys) if the disk is encrypted."
12722 msgstr ""
12723
12724 # type: textblock
12725 #. type: textblock
12726 #: ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3550
12727 #: ../src/guestfs-actions.pod:3612
12728 msgid "See also C<guestfs_list_filesystems>."
12729 msgstr ""
12730
12731 # type: =head2
12732 #. type: =head2
12733 #: ../src/guestfs-actions.pod:3268
12734 msgid "guestfs_is_blockdev"
12735 msgstr ""
12736
12737 # type: verbatim
12738 #. type: verbatim
12739 #: ../src/guestfs-actions.pod:3270
12740 #, no-wrap
12741 msgid ""
12742 " int\n"
12743 " guestfs_is_blockdev (guestfs_h *g,\n"
12744 "                      const char *path);\n"
12745 "\n"
12746 msgstr ""
12747
12748 # type: textblock
12749 #. type: textblock
12750 #: ../src/guestfs-actions.pod:3274 ../fish/guestfish-actions.pod:2303
12751 msgid ""
12752 "This returns C<true> if and only if there is a block device with the given "
12753 "C<path> name."
12754 msgstr ""
12755
12756 # type: textblock
12757 #. type: textblock
12758 #: ../src/guestfs-actions.pod:3277 ../src/guestfs-actions.pod:3306
12759 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3351
12760 #: ../src/guestfs-actions.pod:3367 ../src/guestfs-actions.pod:3423
12761 #: ../src/guestfs-actions.pod:3438
12762 msgid "See also C<guestfs_stat>."
12763 msgstr ""
12764
12765 # type: textblock
12766 #. type: textblock
12767 #: ../src/guestfs-actions.pod:3281 ../src/guestfs-actions.pod:3310
12768 #: ../src/guestfs-actions.pod:3355 ../src/guestfs-actions.pod:3427
12769 #: ../src/guestfs-actions.pod:3442
12770 msgid "(Added in 1.5.10)"
12771 msgstr ""
12772
12773 # type: =head2
12774 #. type: =head2
12775 #: ../src/guestfs-actions.pod:3283
12776 msgid "guestfs_is_busy"
12777 msgstr ""
12778
12779 # type: verbatim
12780 #. type: verbatim
12781 #: ../src/guestfs-actions.pod:3285
12782 #, no-wrap
12783 msgid ""
12784 " int\n"
12785 " guestfs_is_busy (guestfs_h *g);\n"
12786 "\n"
12787 msgstr ""
12788
12789 # type: textblock
12790 #. type: textblock
12791 #: ../src/guestfs-actions.pod:3288 ../fish/guestfish-actions.pod:2312
12792 msgid ""
12793 "This returns true iff this handle is busy processing a command (in the "
12794 "C<BUSY> state)."
12795 msgstr ""
12796
12797 # type: =head2
12798 #. type: =head2
12799 #: ../src/guestfs-actions.pod:3297
12800 msgid "guestfs_is_chardev"
12801 msgstr ""
12802
12803 # type: verbatim
12804 #. type: verbatim
12805 #: ../src/guestfs-actions.pod:3299
12806 #, no-wrap
12807 msgid ""
12808 " int\n"
12809 " guestfs_is_chardev (guestfs_h *g,\n"
12810 "                     const char *path);\n"
12811 "\n"
12812 msgstr ""
12813
12814 # type: textblock
12815 #. type: textblock
12816 #: ../src/guestfs-actions.pod:3303 ../fish/guestfish-actions.pod:2321
12817 msgid ""
12818 "This returns C<true> if and only if there is a character device with the "
12819 "given C<path> name."
12820 msgstr ""
12821
12822 # type: =head2
12823 #. type: =head2
12824 #: ../src/guestfs-actions.pod:3312
12825 msgid "guestfs_is_config"
12826 msgstr ""
12827
12828 # type: verbatim
12829 #. type: verbatim
12830 #: ../src/guestfs-actions.pod:3314
12831 #, no-wrap
12832 msgid ""
12833 " int\n"
12834 " guestfs_is_config (guestfs_h *g);\n"
12835 "\n"
12836 msgstr ""
12837
12838 # type: textblock
12839 #. type: textblock
12840 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2330
12841 msgid ""
12842 "This returns true iff this handle is being configured (in the C<CONFIG> "
12843 "state)."
12844 msgstr ""
12845
12846 # type: =head2
12847 #. type: =head2
12848 #: ../src/guestfs-actions.pod:3326
12849 msgid "guestfs_is_dir"
12850 msgstr ""
12851
12852 # type: verbatim
12853 #. type: verbatim
12854 #: ../src/guestfs-actions.pod:3328
12855 #, no-wrap
12856 msgid ""
12857 " int\n"
12858 " guestfs_is_dir (guestfs_h *g,\n"
12859 "                 const char *path);\n"
12860 "\n"
12861 msgstr ""
12862
12863 # type: textblock
12864 #. type: textblock
12865 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2339
12866 msgid ""
12867 "This returns C<true> if and only if there is a directory with the given "
12868 "C<path> name.  Note that it returns false for other objects like files."
12869 msgstr ""
12870
12871 # type: =head2
12872 #. type: =head2
12873 #: ../src/guestfs-actions.pod:3342
12874 msgid "guestfs_is_fifo"
12875 msgstr ""
12876
12877 # type: verbatim
12878 #. type: verbatim
12879 #: ../src/guestfs-actions.pod:3344
12880 #, no-wrap
12881 msgid ""
12882 " int\n"
12883 " guestfs_is_fifo (guestfs_h *g,\n"
12884 "                  const char *path);\n"
12885 "\n"
12886 msgstr ""
12887
12888 # type: textblock
12889 #. type: textblock
12890 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2349
12891 msgid ""
12892 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12893 "given C<path> name."
12894 msgstr ""
12895
12896 # type: =head2
12897 #. type: =head2
12898 #: ../src/guestfs-actions.pod:3357
12899 msgid "guestfs_is_file"
12900 msgstr ""
12901
12902 # type: verbatim
12903 #. type: verbatim
12904 #: ../src/guestfs-actions.pod:3359
12905 #, no-wrap
12906 msgid ""
12907 " int\n"
12908 " guestfs_is_file (guestfs_h *g,\n"
12909 "                  const char *path);\n"
12910 "\n"
12911 msgstr ""
12912
12913 # type: textblock
12914 #. type: textblock
12915 #: ../src/guestfs-actions.pod:3363 ../fish/guestfish-actions.pod:2358
12916 msgid ""
12917 "This returns C<true> if and only if there is a regular file with the given "
12918 "C<path> name.  Note that it returns false for other objects like directories."
12919 msgstr ""
12920
12921 # type: =head2
12922 #. type: =head2
12923 #: ../src/guestfs-actions.pod:3373
12924 msgid "guestfs_is_launching"
12925 msgstr ""
12926
12927 # type: verbatim
12928 #. type: verbatim
12929 #: ../src/guestfs-actions.pod:3375
12930 #, no-wrap
12931 msgid ""
12932 " int\n"
12933 " guestfs_is_launching (guestfs_h *g);\n"
12934 "\n"
12935 msgstr ""
12936
12937 # type: textblock
12938 #. type: textblock
12939 #: ../src/guestfs-actions.pod:3378 ../fish/guestfish-actions.pod:2368
12940 msgid ""
12941 "This returns true iff this handle is launching the subprocess (in the "
12942 "C<LAUNCHING> state)."
12943 msgstr ""
12944
12945 # type: =head2
12946 #. type: =head2
12947 #: ../src/guestfs-actions.pod:3387
12948 msgid "guestfs_is_lv"
12949 msgstr ""
12950
12951 # type: verbatim
12952 #. type: verbatim
12953 #: ../src/guestfs-actions.pod:3389
12954 #, no-wrap
12955 msgid ""
12956 " int\n"
12957 " guestfs_is_lv (guestfs_h *g,\n"
12958 "                const char *device);\n"
12959 "\n"
12960 msgstr ""
12961
12962 # type: textblock
12963 #. type: textblock
12964 #: ../src/guestfs-actions.pod:3393 ../fish/guestfish-actions.pod:2377
12965 msgid ""
12966 "This command tests whether C<device> is a logical volume, and returns true "
12967 "iff this is the case."
12968 msgstr ""
12969
12970 # type: =head2
12971 #. type: =head2
12972 #: ../src/guestfs-actions.pod:3400
12973 msgid "guestfs_is_ready"
12974 msgstr ""
12975
12976 # type: verbatim
12977 #. type: verbatim
12978 #: ../src/guestfs-actions.pod:3402
12979 #, no-wrap
12980 msgid ""
12981 " int\n"
12982 " guestfs_is_ready (guestfs_h *g);\n"
12983 "\n"
12984 msgstr ""
12985
12986 # type: textblock
12987 #. type: textblock
12988 #: ../src/guestfs-actions.pod:3405 ../fish/guestfish-actions.pod:2384
12989 msgid ""
12990 "This returns true iff this handle is ready to accept commands (in the "
12991 "C<READY> state)."
12992 msgstr ""
12993
12994 # type: =head2
12995 #. type: =head2
12996 #: ../src/guestfs-actions.pod:3414
12997 msgid "guestfs_is_socket"
12998 msgstr ""
12999
13000 # type: verbatim
13001 #. type: verbatim
13002 #: ../src/guestfs-actions.pod:3416
13003 #, no-wrap
13004 msgid ""
13005 " int\n"
13006 " guestfs_is_socket (guestfs_h *g,\n"
13007 "                    const char *path);\n"
13008 "\n"
13009 msgstr ""
13010
13011 # type: textblock
13012 #. type: textblock
13013 #: ../src/guestfs-actions.pod:3420 ../fish/guestfish-actions.pod:2393
13014 msgid ""
13015 "This returns C<true> if and only if there is a Unix domain socket with the "
13016 "given C<path> name."
13017 msgstr ""
13018
13019 # type: =head2
13020 #. type: =head2
13021 #: ../src/guestfs-actions.pod:3429
13022 msgid "guestfs_is_symlink"
13023 msgstr ""
13024
13025 # type: verbatim
13026 #. type: verbatim
13027 #: ../src/guestfs-actions.pod:3431
13028 #, no-wrap
13029 msgid ""
13030 " int\n"
13031 " guestfs_is_symlink (guestfs_h *g,\n"
13032 "                     const char *path);\n"
13033 "\n"
13034 msgstr ""
13035
13036 # type: textblock
13037 #. type: textblock
13038 #: ../src/guestfs-actions.pod:3435 ../fish/guestfish-actions.pod:2402
13039 msgid ""
13040 "This returns C<true> if and only if there is a symbolic link with the given "
13041 "C<path> name."
13042 msgstr ""
13043
13044 # type: =head2
13045 #. type: =head2
13046 #: ../src/guestfs-actions.pod:3444
13047 msgid "guestfs_kill_subprocess"
13048 msgstr ""
13049
13050 # type: verbatim
13051 #. type: verbatim
13052 #: ../src/guestfs-actions.pod:3446
13053 #, no-wrap
13054 msgid ""
13055 " int\n"
13056 " guestfs_kill_subprocess (guestfs_h *g);\n"
13057 "\n"
13058 msgstr ""
13059
13060 # type: textblock
13061 #. type: textblock
13062 #: ../src/guestfs-actions.pod:3449 ../fish/guestfish-actions.pod:2411
13063 msgid "This kills the qemu subprocess.  You should never need to call this."
13064 msgstr ""
13065
13066 # type: =head2
13067 #. type: =head2
13068 #: ../src/guestfs-actions.pod:3455
13069 msgid "guestfs_launch"
13070 msgstr ""
13071
13072 # type: verbatim
13073 #. type: verbatim
13074 #: ../src/guestfs-actions.pod:3457
13075 #, no-wrap
13076 msgid ""
13077 " int\n"
13078 " guestfs_launch (guestfs_h *g);\n"
13079 "\n"
13080 msgstr ""
13081
13082 # type: textblock
13083 #. type: textblock
13084 #: ../src/guestfs-actions.pod:3460 ../fish/guestfish-actions.pod:2419
13085 msgid ""
13086 "Internally libguestfs is implemented by running a virtual machine using "
13087 "L<qemu(1)>."
13088 msgstr ""
13089
13090 # type: textblock
13091 #. type: textblock
13092 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2422
13093 msgid ""
13094 "You should call this after configuring the handle (eg. adding drives) but "
13095 "before performing any actions."
13096 msgstr ""
13097
13098 # type: =head2
13099 #. type: =head2
13100 #: ../src/guestfs-actions.pod:3475
13101 msgid "guestfs_lchown"
13102 msgstr ""
13103
13104 # type: verbatim
13105 #. type: verbatim
13106 #: ../src/guestfs-actions.pod:3477
13107 #, no-wrap
13108 msgid ""
13109 " int\n"
13110 " guestfs_lchown (guestfs_h *g,\n"
13111 "                 int owner,\n"
13112 "                 int group,\n"
13113 "                 const char *path);\n"
13114 "\n"
13115 msgstr ""
13116
13117 # type: textblock
13118 #. type: textblock
13119 #: ../src/guestfs-actions.pod:3483
13120 msgid ""
13121 "Change the file owner to C<owner> and group to C<group>.  This is like "
13122 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13123 "changed, not the target."
13124 msgstr ""
13125
13126 # type: =head2
13127 #. type: =head2
13128 #: ../src/guestfs-actions.pod:3495
13129 msgid "guestfs_lgetxattr"
13130 msgstr ""
13131
13132 # type: verbatim
13133 #. type: verbatim
13134 #: ../src/guestfs-actions.pod:3497
13135 #, no-wrap
13136 msgid ""
13137 " char *\n"
13138 " guestfs_lgetxattr (guestfs_h *g,\n"
13139 "                    const char *path,\n"
13140 "                    const char *name,\n"
13141 "                    size_t *size_r);\n"
13142 "\n"
13143 msgstr ""
13144
13145 # type: textblock
13146 #. type: textblock
13147 #: ../src/guestfs-actions.pod:3503 ../fish/guestfish-actions.pod:2441
13148 msgid ""
13149 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13150 "is a symlink, then this call returns an extended attribute from the symlink."
13151 msgstr ""
13152
13153 # type: textblock
13154 #. type: textblock
13155 #: ../src/guestfs-actions.pod:3517
13156 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13157 msgstr ""
13158
13159 # type: =head2
13160 #. type: =head2
13161 #: ../src/guestfs-actions.pod:3525
13162 msgid "guestfs_lgetxattrs"
13163 msgstr ""
13164
13165 # type: verbatim
13166 #. type: verbatim
13167 #: ../src/guestfs-actions.pod:3527
13168 #, no-wrap
13169 msgid ""
13170 " struct guestfs_xattr_list *\n"
13171 " guestfs_lgetxattrs (guestfs_h *g,\n"
13172 "                     const char *path);\n"
13173 "\n"
13174 msgstr ""
13175
13176 # type: textblock
13177 #. type: textblock
13178 #: ../src/guestfs-actions.pod:3531
13179 msgid ""
13180 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13181 "then it returns the extended attributes of the link itself."
13182 msgstr ""
13183
13184 # type: =head2
13185 #. type: =head2
13186 #: ../src/guestfs-actions.pod:3541
13187 msgid "guestfs_list_devices"
13188 msgstr ""
13189
13190 # type: verbatim
13191 #. type: verbatim
13192 #: ../src/guestfs-actions.pod:3543
13193 #, no-wrap
13194 msgid ""
13195 " char **\n"
13196 " guestfs_list_devices (guestfs_h *g);\n"
13197 "\n"
13198 msgstr ""
13199
13200 # type: textblock
13201 #. type: textblock
13202 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2469
13203 msgid "List all the block devices."
13204 msgstr ""
13205
13206 # type: textblock
13207 #. type: textblock
13208 #: ../src/guestfs-actions.pod:3548 ../fish/guestfish-actions.pod:2471
13209 msgid "The full block device names are returned, eg. C</dev/sda>."
13210 msgstr ""
13211
13212 # type: =head2
13213 #. type: =head2
13214 #: ../src/guestfs-actions.pod:3558
13215 msgid "guestfs_list_filesystems"
13216 msgstr ""
13217
13218 # type: verbatim
13219 #. type: verbatim
13220 #: ../src/guestfs-actions.pod:3560
13221 #, no-wrap
13222 msgid ""
13223 " char **\n"
13224 " guestfs_list_filesystems (guestfs_h *g);\n"
13225 "\n"
13226 msgstr ""
13227
13228 # type: textblock
13229 #. type: textblock
13230 #: ../src/guestfs-actions.pod:3563 ../fish/guestfish-actions.pod:2479
13231 msgid ""
13232 "This inspection command looks for filesystems on partitions, block devices "
13233 "and logical volumes, returning a list of devices containing filesystems and "
13234 "their type."
13235 msgstr ""
13236
13237 # type: textblock
13238 #. type: textblock
13239 #: ../src/guestfs-actions.pod:3567 ../fish/guestfish-actions.pod:2483
13240 msgid ""
13241 "The return value is a hash, where the keys are the devices containing "
13242 "filesystems, and the values are the filesystem types.  For example:"
13243 msgstr ""
13244
13245 # type: verbatim
13246 #. type: verbatim
13247 #: ../src/guestfs-actions.pod:3571 ../fish/guestfish-actions.pod:2487
13248 #, no-wrap
13249 msgid ""
13250 " \"/dev/sda1\" => \"ntfs\"\n"
13251 " \"/dev/sda2\" => \"ext2\"\n"
13252 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13253 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13254 "\n"
13255 msgstr ""
13256
13257 # type: textblock
13258 #. type: textblock
13259 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2492
13260 msgid ""
13261 "The value can have the special value \"unknown\", meaning the content of the "
13262 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13263 msgstr ""
13264
13265 # type: textblock
13266 #. type: textblock
13267 #: ../src/guestfs-actions.pod:3580
13268 msgid ""
13269 "This command runs other libguestfs commands, which might include "
13270 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13271 "soon after launch and only when nothing is mounted."
13272 msgstr ""
13273
13274 # type: textblock
13275 #. type: textblock
13276 #: ../src/guestfs-actions.pod:3584
13277 msgid ""
13278 "Not all of the filesystems returned will be mountable.  In particular, swap "
13279 "partitions are returned in the list.  Also this command does not check that "
13280 "each filesystem found is valid and mountable, and some filesystems might be "
13281 "mountable but require special options.  Filesystems may not all belong to a "
13282 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13283 msgstr ""
13284
13285 # type: textblock
13286 #. type: textblock
13287 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:5203
13288 msgid "(Added in 1.5.15)"
13289 msgstr ""
13290
13291 # type: =head2
13292 #. type: =head2
13293 #: ../src/guestfs-actions.pod:3600
13294 msgid "guestfs_list_partitions"
13295 msgstr ""
13296
13297 # type: verbatim
13298 #. type: verbatim
13299 #: ../src/guestfs-actions.pod:3602
13300 #, no-wrap
13301 msgid ""
13302 " char **\n"
13303 " guestfs_list_partitions (guestfs_h *g);\n"
13304 "\n"
13305 msgstr ""
13306
13307 # type: textblock
13308 #. type: textblock
13309 #: ../src/guestfs-actions.pod:3605 ../fish/guestfish-actions.pod:2512
13310 msgid "List all the partitions detected on all block devices."
13311 msgstr ""
13312
13313 # type: textblock
13314 #. type: textblock
13315 #: ../src/guestfs-actions.pod:3607 ../fish/guestfish-actions.pod:2514
13316 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13317 msgstr ""
13318
13319 # type: textblock
13320 #. type: textblock
13321 #: ../src/guestfs-actions.pod:3609
13322 msgid ""
13323 "This does not return logical volumes.  For that you will need to call "
13324 "C<guestfs_lvs>."
13325 msgstr ""
13326
13327 # type: =head2
13328 #. type: =head2
13329 #: ../src/guestfs-actions.pod:3620
13330 msgid "guestfs_ll"
13331 msgstr ""
13332
13333 # type: verbatim
13334 #. type: verbatim
13335 #: ../src/guestfs-actions.pod:3622
13336 #, no-wrap
13337 msgid ""
13338 " char *\n"
13339 " guestfs_ll (guestfs_h *g,\n"
13340 "             const char *directory);\n"
13341 "\n"
13342 msgstr ""
13343
13344 # type: textblock
13345 #. type: textblock
13346 #: ../src/guestfs-actions.pod:3626 ../fish/guestfish-actions.pod:2525
13347 msgid ""
13348 "List the files in C<directory> (relative to the root directory, there is no "
13349 "cwd) in the format of 'ls -la'."
13350 msgstr ""
13351
13352 # type: textblock
13353 #. type: textblock
13354 #: ../src/guestfs-actions.pod:3629 ../fish/guestfish-actions.pod:2528
13355 msgid ""
13356 "This command is mostly useful for interactive sessions.  It is I<not> "
13357 "intended that you try to parse the output string."
13358 msgstr ""
13359
13360 # type: =head2
13361 #. type: =head2
13362 #: ../src/guestfs-actions.pod:3637
13363 msgid "guestfs_ln"
13364 msgstr ""
13365
13366 # type: verbatim
13367 #. type: verbatim
13368 #: ../src/guestfs-actions.pod:3639
13369 #, no-wrap
13370 msgid ""
13371 " int\n"
13372 " guestfs_ln (guestfs_h *g,\n"
13373 "             const char *target,\n"
13374 "             const char *linkname);\n"
13375 "\n"
13376 msgstr ""
13377
13378 # type: textblock
13379 #. type: textblock
13380 #: ../src/guestfs-actions.pod:3644 ../fish/guestfish-actions.pod:2535
13381 msgid "This command creates a hard link using the C<ln> command."
13382 msgstr ""
13383
13384 # type: =head2
13385 #. type: =head2
13386 #: ../src/guestfs-actions.pod:3650
13387 msgid "guestfs_ln_f"
13388 msgstr ""
13389
13390 # type: verbatim
13391 #. type: verbatim
13392 #: ../src/guestfs-actions.pod:3652
13393 #, no-wrap
13394 msgid ""
13395 " int\n"
13396 " guestfs_ln_f (guestfs_h *g,\n"
13397 "               const char *target,\n"
13398 "               const char *linkname);\n"
13399 "\n"
13400 msgstr ""
13401
13402 # type: textblock
13403 #. type: textblock
13404 #: ../src/guestfs-actions.pod:3657 ../fish/guestfish-actions.pod:2541
13405 msgid ""
13406 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
13407 "option removes the link (C<linkname>) if it exists already."
13408 msgstr ""
13409
13410 # type: =head2
13411 #. type: =head2
13412 #: ../src/guestfs-actions.pod:3664
13413 msgid "guestfs_ln_s"
13414 msgstr ""
13415
13416 # type: verbatim
13417 #. type: verbatim
13418 #: ../src/guestfs-actions.pod:3666
13419 #, no-wrap
13420 msgid ""
13421 " int\n"
13422 " guestfs_ln_s (guestfs_h *g,\n"
13423 "               const char *target,\n"
13424 "               const char *linkname);\n"
13425 "\n"
13426 msgstr ""
13427
13428 # type: textblock
13429 #. type: textblock
13430 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2548
13431 msgid "This command creates a symbolic link using the C<ln -s> command."
13432 msgstr ""
13433
13434 # type: =head2
13435 #. type: =head2
13436 #: ../src/guestfs-actions.pod:3677
13437 msgid "guestfs_ln_sf"
13438 msgstr ""
13439
13440 # type: verbatim
13441 #. type: verbatim
13442 #: ../src/guestfs-actions.pod:3679
13443 #, no-wrap
13444 msgid ""
13445 " int\n"
13446 " guestfs_ln_sf (guestfs_h *g,\n"
13447 "                const char *target,\n"
13448 "                const char *linkname);\n"
13449 "\n"
13450 msgstr ""
13451
13452 # type: textblock
13453 #. type: textblock
13454 #: ../src/guestfs-actions.pod:3684 ../fish/guestfish-actions.pod:2554
13455 msgid ""
13456 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
13457 "option removes the link (C<linkname>) if it exists already."
13458 msgstr ""
13459
13460 # type: =head2
13461 #. type: =head2
13462 #: ../src/guestfs-actions.pod:3691
13463 msgid "guestfs_lremovexattr"
13464 msgstr ""
13465
13466 # type: verbatim
13467 #. type: verbatim
13468 #: ../src/guestfs-actions.pod:3693
13469 #, no-wrap
13470 msgid ""
13471 " int\n"
13472 " guestfs_lremovexattr (guestfs_h *g,\n"
13473 "                       const char *xattr,\n"
13474 "                       const char *path);\n"
13475 "\n"
13476 msgstr ""
13477
13478 # type: textblock
13479 #. type: textblock
13480 #: ../src/guestfs-actions.pod:3698
13481 msgid ""
13482 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13483 "link, then it removes an extended attribute of the link itself."
13484 msgstr ""
13485
13486 # type: =head2
13487 #. type: =head2
13488 #: ../src/guestfs-actions.pod:3706
13489 msgid "guestfs_ls"
13490 msgstr ""
13491
13492 # type: verbatim
13493 #. type: verbatim
13494 #: ../src/guestfs-actions.pod:3708
13495 #, no-wrap
13496 msgid ""
13497 " char **\n"
13498 " guestfs_ls (guestfs_h *g,\n"
13499 "             const char *directory);\n"
13500 "\n"
13501 msgstr ""
13502
13503 # type: textblock
13504 #. type: textblock
13505 #: ../src/guestfs-actions.pod:3712 ../fish/guestfish-actions.pod:2569
13506 msgid ""
13507 "List the files in C<directory> (relative to the root directory, there is no "
13508 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13509 msgstr ""
13510
13511 # type: textblock
13512 #. type: textblock
13513 #: ../src/guestfs-actions.pod:3716
13514 msgid ""
13515 "This command is mostly useful for interactive sessions.  Programs should "
13516 "probably use C<guestfs_readdir> instead."
13517 msgstr ""
13518
13519 # type: =head2
13520 #. type: =head2
13521 #: ../src/guestfs-actions.pod:3725
13522 msgid "guestfs_lsetxattr"
13523 msgstr ""
13524
13525 # type: verbatim
13526 #. type: verbatim
13527 #: ../src/guestfs-actions.pod:3727
13528 #, no-wrap
13529 msgid ""
13530 " int\n"
13531 " guestfs_lsetxattr (guestfs_h *g,\n"
13532 "                    const char *xattr,\n"
13533 "                    const char *val,\n"
13534 "                    int vallen,\n"
13535 "                    const char *path);\n"
13536 "\n"
13537 msgstr ""
13538
13539 # type: textblock
13540 #. type: textblock
13541 #: ../src/guestfs-actions.pod:3734
13542 msgid ""
13543 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13544 "then it sets an extended attribute of the link itself."
13545 msgstr ""
13546
13547 # type: =head2
13548 #. type: =head2
13549 #: ../src/guestfs-actions.pod:3742
13550 msgid "guestfs_lstat"
13551 msgstr ""
13552
13553 # type: verbatim
13554 #. type: verbatim
13555 #: ../src/guestfs-actions.pod:3744
13556 #, no-wrap
13557 msgid ""
13558 " struct guestfs_stat *\n"
13559 " guestfs_lstat (guestfs_h *g,\n"
13560 "                const char *path);\n"
13561 "\n"
13562 msgstr ""
13563
13564 # type: textblock
13565 #. type: textblock
13566 #: ../src/guestfs-actions.pod:3748 ../src/guestfs-actions.pod:6306
13567 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:4257
13568 msgid "Returns file information for the given C<path>."
13569 msgstr ""
13570
13571 # type: textblock
13572 #. type: textblock
13573 #: ../src/guestfs-actions.pod:3750
13574 msgid ""
13575 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13576 "link, then the link is stat-ed, not the file it refers to."
13577 msgstr ""
13578
13579 # type: textblock
13580 #. type: textblock
13581 #: ../src/guestfs-actions.pod:3754 ../fish/guestfish-actions.pod:2594
13582 msgid "This is the same as the C<lstat(2)> system call."
13583 msgstr ""
13584
13585 # type: textblock
13586 #. type: textblock
13587 #: ../src/guestfs-actions.pod:3756 ../src/guestfs-actions.pod:6310
13588 msgid ""
13589 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
13590 "error.  I<The caller must call C<guestfs_free_stat> after use>."
13591 msgstr ""
13592
13593 # type: textblock
13594 #. type: textblock
13595 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:6314
13596 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6713
13597 msgid "(Added in 0.9.2)"
13598 msgstr ""
13599
13600 # type: =head2
13601 #. type: =head2
13602 #: ../src/guestfs-actions.pod:3762
13603 msgid "guestfs_lstatlist"
13604 msgstr ""
13605
13606 # type: verbatim
13607 #. type: verbatim
13608 #: ../src/guestfs-actions.pod:3764
13609 #, no-wrap
13610 msgid ""
13611 " struct guestfs_stat_list *\n"
13612 " guestfs_lstatlist (guestfs_h *g,\n"
13613 "                    const char *path,\n"
13614 "                    char *const *names);\n"
13615 "\n"
13616 msgstr ""
13617
13618 # type: textblock
13619 #. type: textblock
13620 #: ../src/guestfs-actions.pod:3769
13621 msgid ""
13622 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
13623 "files, where all files are in the directory C<path>.  C<names> is the list "
13624 "of files from this directory."
13625 msgstr ""
13626
13627 # type: textblock
13628 #. type: textblock
13629 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2604
13630 msgid ""
13631 "On return you get a list of stat structs, with a one-to-one correspondence "
13632 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13633 "then the C<ino> field of that structure is set to C<-1>."
13634 msgstr ""
13635
13636 # type: textblock
13637 #. type: textblock
13638 #: ../src/guestfs-actions.pod:3778
13639 msgid ""
13640 "This call is intended for programs that want to efficiently list a directory "
13641 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
13642 "for a similarly efficient call for getting extended attributes.  Very long "
13643 "directory listings might cause the protocol message size to be exceeded, "
13644 "causing this call to fail.  The caller must split up such requests into "
13645 "smaller groups of names."
13646 msgstr ""
13647
13648 # type: textblock
13649 #. type: textblock
13650 #: ../src/guestfs-actions.pod:3786
13651 msgid ""
13652 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
13653 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
13654 msgstr ""
13655
13656 # type: =head2
13657 #. type: =head2
13658 #: ../src/guestfs-actions.pod:3792
13659 msgid "guestfs_luks_add_key"
13660 msgstr ""
13661
13662 # type: verbatim
13663 #. type: verbatim
13664 #: ../src/guestfs-actions.pod:3794
13665 #, no-wrap
13666 msgid ""
13667 " int\n"
13668 " guestfs_luks_add_key (guestfs_h *g,\n"
13669 "                       const char *device,\n"
13670 "                       const char *key,\n"
13671 "                       const char *newkey,\n"
13672 "                       int keyslot);\n"
13673 "\n"
13674 msgstr ""
13675
13676 # type: textblock
13677 #. type: textblock
13678 #: ../src/guestfs-actions.pod:3801 ../fish/guestfish-actions.pod:2621
13679 msgid ""
13680 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13681 "existing key, and is used to access the device.  C<newkey> is the new key to "
13682 "add.  C<keyslot> is the key slot that will be replaced."
13683 msgstr ""
13684
13685 # type: textblock
13686 #. type: textblock
13687 #: ../src/guestfs-actions.pod:3806
13688 msgid ""
13689 "Note that if C<keyslot> already contains a key, then this command will "
13690 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
13691 msgstr ""
13692
13693 # type: textblock
13694 #. type: textblock
13695 #: ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3852
13696 #: ../src/guestfs-actions.pod:3875 ../src/guestfs-actions.pod:3895
13697 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:3946
13698 msgid ""
13699 "This function takes a key or passphrase parameter which could contain "
13700 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
13701 "information."
13702 msgstr ""
13703
13704 # type: textblock
13705 #. type: textblock
13706 #: ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3856
13707 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3899
13708 msgid "(Added in 1.5.2)"
13709 msgstr ""
13710
13711 # type: =head2
13712 #. type: =head2
13713 #: ../src/guestfs-actions.pod:3818
13714 msgid "guestfs_luks_close"
13715 msgstr ""
13716
13717 # type: verbatim
13718 #. type: verbatim
13719 #: ../src/guestfs-actions.pod:3820
13720 #, no-wrap
13721 msgid ""
13722 " int\n"
13723 " guestfs_luks_close (guestfs_h *g,\n"
13724 "                     const char *device);\n"
13725 "\n"
13726 msgstr ""
13727
13728 # type: textblock
13729 #. type: textblock
13730 #: ../src/guestfs-actions.pod:3824
13731 msgid ""
13732 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13733 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13734 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13735 "underlying block device."
13736 msgstr ""
13737
13738 # type: textblock
13739 #. type: textblock
13740 #: ../src/guestfs-actions.pod:3832 ../src/guestfs-actions.pod:3931
13741 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:4000
13742 #: ../src/guestfs-actions.pod:4048
13743 msgid "(Added in 1.5.1)"
13744 msgstr ""
13745
13746 # type: =head2
13747 #. type: =head2
13748 #: ../src/guestfs-actions.pod:3834
13749 msgid "guestfs_luks_format"
13750 msgstr ""
13751
13752 # type: verbatim
13753 #. type: verbatim
13754 #: ../src/guestfs-actions.pod:3836
13755 #, no-wrap
13756 msgid ""
13757 " int\n"
13758 " guestfs_luks_format (guestfs_h *g,\n"
13759 "                      const char *device,\n"
13760 "                      const char *key,\n"
13761 "                      int keyslot);\n"
13762 "\n"
13763 msgstr ""
13764
13765 # type: textblock
13766 #. type: textblock
13767 #: ../src/guestfs-actions.pod:3842 ../fish/guestfish-actions.pod:2647
13768 msgid ""
13769 "This command erases existing data on C<device> and formats the device as a "
13770 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13771 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13772 msgstr ""
13773
13774 # type: textblock
13775 #. type: textblock
13776 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3872
13777 #: ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4954
13778 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:6141
13779 #: ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6190
13780 #: ../src/guestfs-actions.pod:7350 ../fish/guestfish-actions.pod:2655
13781 #: ../fish/guestfish-actions.pod:2668 ../fish/guestfish-actions.pod:2752
13782 #: ../fish/guestfish-actions.pod:3326 ../fish/guestfish-actions.pod:3846
13783 #: ../fish/guestfish-actions.pod:4156 ../fish/guestfish-actions.pod:4172
13784 #: ../fish/guestfish-actions.pod:4187 ../fish/guestfish-actions.pod:4902
13785 msgid ""
13786 "B<This command is dangerous.  Without careful use you can easily destroy all "
13787 "your data>."
13788 msgstr ""
13789
13790 # type: =head2
13791 #. type: =head2
13792 #: ../src/guestfs-actions.pod:3858
13793 msgid "guestfs_luks_format_cipher"
13794 msgstr ""
13795
13796 # type: verbatim
13797 #. type: verbatim
13798 #: ../src/guestfs-actions.pod:3860
13799 #, no-wrap
13800 msgid ""
13801 " int\n"
13802 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13803 "                             const char *device,\n"
13804 "                             const char *key,\n"
13805 "                             int keyslot,\n"
13806 "                             const char *cipher);\n"
13807 "\n"
13808 msgstr ""
13809
13810 # type: textblock
13811 #. type: textblock
13812 #: ../src/guestfs-actions.pod:3867
13813 msgid ""
13814 "This command is the same as C<guestfs_luks_format> but it also allows you to "
13815 "set the C<cipher> used."
13816 msgstr ""
13817
13818 # type: =head2
13819 #. type: =head2
13820 #: ../src/guestfs-actions.pod:3881
13821 msgid "guestfs_luks_kill_slot"
13822 msgstr ""
13823
13824 # type: verbatim
13825 #. type: verbatim
13826 #: ../src/guestfs-actions.pod:3883
13827 #, no-wrap
13828 msgid ""
13829 " int\n"
13830 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13831 "                         const char *device,\n"
13832 "                         const char *key,\n"
13833 "                         int keyslot);\n"
13834 "\n"
13835 msgstr ""
13836
13837 # type: textblock
13838 #. type: textblock
13839 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2675
13840 msgid ""
13841 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13842 "device C<device>.  C<key> must be one of the I<other> keys."
13843 msgstr ""
13844
13845 # type: =head2
13846 #. type: =head2
13847 #: ../src/guestfs-actions.pod:3901
13848 msgid "guestfs_luks_open"
13849 msgstr ""
13850
13851 # type: verbatim
13852 #. type: verbatim
13853 #: ../src/guestfs-actions.pod:3903
13854 #, no-wrap
13855 msgid ""
13856 " int\n"
13857 " guestfs_luks_open (guestfs_h *g,\n"
13858 "                    const char *device,\n"
13859 "                    const char *key,\n"
13860 "                    const char *mapname);\n"
13861 "\n"
13862 msgstr ""
13863
13864 # type: textblock
13865 #. type: textblock
13866 #: ../src/guestfs-actions.pod:3909 ../fish/guestfish-actions.pod:2686
13867 msgid ""
13868 "This command opens a block device which has been encrypted according to the "
13869 "Linux Unified Key Setup (LUKS) standard."
13870 msgstr ""
13871
13872 # type: textblock
13873 #. type: textblock
13874 #: ../src/guestfs-actions.pod:3912 ../fish/guestfish-actions.pod:2689
13875 msgid "C<device> is the encrypted block device or partition."
13876 msgstr ""
13877
13878 # type: textblock
13879 #. type: textblock
13880 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2691
13881 msgid ""
13882 "The caller must supply one of the keys associated with the LUKS block "
13883 "device, in the C<key> parameter."
13884 msgstr ""
13885
13886 # type: textblock
13887 #. type: textblock
13888 #: ../src/guestfs-actions.pod:3917 ../fish/guestfish-actions.pod:2694
13889 msgid ""
13890 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13891 "writes to this block device are decrypted from and encrypted to the "
13892 "underlying C<device> respectively."
13893 msgstr ""
13894
13895 # type: textblock
13896 #. type: textblock
13897 #: ../src/guestfs-actions.pod:3921
13898 msgid ""
13899 "If this block device contains LVM volume groups, then calling "
13900 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13901 "visible."
13902 msgstr ""
13903
13904 # type: =head2
13905 #. type: =head2
13906 #: ../src/guestfs-actions.pod:3933
13907 msgid "guestfs_luks_open_ro"
13908 msgstr ""
13909
13910 # type: verbatim
13911 #. type: verbatim
13912 #: ../src/guestfs-actions.pod:3935
13913 #, no-wrap
13914 msgid ""
13915 " int\n"
13916 " guestfs_luks_open_ro (guestfs_h *g,\n"
13917 "                       const char *device,\n"
13918 "                       const char *key,\n"
13919 "                       const char *mapname);\n"
13920 "\n"
13921 msgstr ""
13922
13923 # type: textblock
13924 #. type: textblock
13925 #: ../src/guestfs-actions.pod:3941
13926 msgid ""
13927 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13928 "created."
13929 msgstr ""
13930
13931 # type: =head2
13932 #. type: =head2
13933 #: ../src/guestfs-actions.pod:3952
13934 msgid "guestfs_lvcreate"
13935 msgstr ""
13936
13937 # type: verbatim
13938 #. type: verbatim
13939 #: ../src/guestfs-actions.pod:3954
13940 #, no-wrap
13941 msgid ""
13942 " int\n"
13943 " guestfs_lvcreate (guestfs_h *g,\n"
13944 "                   const char *logvol,\n"
13945 "                   const char *volgroup,\n"
13946 "                   int mbytes);\n"
13947 "\n"
13948 msgstr ""
13949
13950 # type: textblock
13951 #. type: textblock
13952 #: ../src/guestfs-actions.pod:3960 ../fish/guestfish-actions.pod:2719
13953 msgid ""
13954 "This creates an LVM logical volume called C<logvol> on the volume group "
13955 "C<volgroup>, with C<size> megabytes."
13956 msgstr ""
13957
13958 # type: =head2
13959 #. type: =head2
13960 #: ../src/guestfs-actions.pod:3967
13961 msgid "guestfs_lvm_canonical_lv_name"
13962 msgstr ""
13963
13964 # type: verbatim
13965 #. type: verbatim
13966 #: ../src/guestfs-actions.pod:3969
13967 #, no-wrap
13968 msgid ""
13969 " char *\n"
13970 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13971 "                                const char *lvname);\n"
13972 "\n"
13973 msgstr ""
13974
13975 # type: textblock
13976 #. type: textblock
13977 #: ../src/guestfs-actions.pod:3973 ../fish/guestfish-actions.pod:2726
13978 msgid ""
13979 "This converts alternative naming schemes for LVs that you might find to the "
13980 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13981 "LV>."
13982 msgstr ""
13983
13984 # type: textblock
13985 #. type: textblock
13986 #: ../src/guestfs-actions.pod:3977 ../fish/guestfish-actions.pod:2730
13987 msgid ""
13988 "This command returns an error if the C<lvname> parameter does not refer to a "
13989 "logical volume."
13990 msgstr ""
13991
13992 # type: textblock
13993 #. type: textblock
13994 #: ../src/guestfs-actions.pod:3980
13995 msgid "See also C<guestfs_is_lv>."
13996 msgstr ""
13997
13998 # type: textblock
13999 #. type: textblock
14000 #: ../src/guestfs-actions.pod:3985
14001 msgid "(Added in 1.5.24)"
14002 msgstr ""
14003
14004 # type: =head2
14005 #. type: =head2
14006 #: ../src/guestfs-actions.pod:3987
14007 msgid "guestfs_lvm_clear_filter"
14008 msgstr ""
14009
14010 # type: verbatim
14011 #. type: verbatim
14012 #: ../src/guestfs-actions.pod:3989
14013 #, no-wrap
14014 msgid ""
14015 " int\n"
14016 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
14017 "\n"
14018 msgstr ""
14019
14020 # type: textblock
14021 #. type: textblock
14022 #: ../src/guestfs-actions.pod:3992
14023 msgid ""
14024 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
14025 "see every block device."
14026 msgstr ""
14027
14028 # type: textblock
14029 #. type: textblock
14030 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4037
14031 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2773
14032 msgid ""
14033 "This command also clears the LVM cache and performs a volume group scan."
14034 msgstr ""
14035
14036 # type: =head2
14037 #. type: =head2
14038 #: ../src/guestfs-actions.pod:4002
14039 msgid "guestfs_lvm_remove_all"
14040 msgstr ""
14041
14042 # type: verbatim
14043 #. type: verbatim
14044 #: ../src/guestfs-actions.pod:4004
14045 #, no-wrap
14046 msgid ""
14047 " int\n"
14048 " guestfs_lvm_remove_all (guestfs_h *g);\n"
14049 "\n"
14050 msgstr ""
14051
14052 # type: textblock
14053 #. type: textblock
14054 #: ../src/guestfs-actions.pod:4007 ../fish/guestfish-actions.pod:2749
14055 msgid ""
14056 "This command removes all LVM logical volumes, volume groups and physical "
14057 "volumes."
14058 msgstr ""
14059
14060 # type: =head2
14061 #. type: =head2
14062 #: ../src/guestfs-actions.pod:4017
14063 msgid "guestfs_lvm_set_filter"
14064 msgstr ""
14065
14066 # type: verbatim
14067 #. type: verbatim
14068 #: ../src/guestfs-actions.pod:4019
14069 #, no-wrap
14070 msgid ""
14071 " int\n"
14072 " guestfs_lvm_set_filter (guestfs_h *g,\n"
14073 "                         char *const *devices);\n"
14074 "\n"
14075 msgstr ""
14076
14077 # type: textblock
14078 #. type: textblock
14079 #: ../src/guestfs-actions.pod:4023 ../fish/guestfish-actions.pod:2759
14080 msgid ""
14081 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
14082 "block devices in the list C<devices>, and will ignore all other attached "
14083 "block devices."
14084 msgstr ""
14085
14086 # type: textblock
14087 #. type: textblock
14088 #: ../src/guestfs-actions.pod:4027 ../fish/guestfish-actions.pod:2763
14089 msgid ""
14090 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
14091 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
14092 "there are two types of duplication possible: either cloned PVs/VGs which "
14093 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
14094 "same name.  In normal operation you cannot create this situation, but you "
14095 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
14096 "inside the LVM metadata."
14097 msgstr ""
14098
14099 # type: textblock
14100 #. type: textblock
14101 #: ../src/guestfs-actions.pod:4040 ../fish/guestfish-actions.pod:2776
14102 msgid "You can filter whole block devices or individual partitions."
14103 msgstr ""
14104
14105 # type: textblock
14106 #. type: textblock
14107 #: ../src/guestfs-actions.pod:4042 ../fish/guestfish-actions.pod:2778
14108 msgid ""
14109 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14110 "filesystem), even if you are not filtering out that VG."
14111 msgstr ""
14112
14113 # type: =head2
14114 #. type: =head2
14115 #: ../src/guestfs-actions.pod:4050
14116 msgid "guestfs_lvremove"
14117 msgstr ""
14118
14119 # type: verbatim
14120 #. type: verbatim
14121 #: ../src/guestfs-actions.pod:4052
14122 #, no-wrap
14123 msgid ""
14124 " int\n"
14125 " guestfs_lvremove (guestfs_h *g,\n"
14126 "                   const char *device);\n"
14127 "\n"
14128 msgstr ""
14129
14130 # type: textblock
14131 #. type: textblock
14132 #: ../src/guestfs-actions.pod:4056 ../fish/guestfish-actions.pod:2786
14133 msgid ""
14134 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14135 "LV, such as C</dev/VG/LV>."
14136 msgstr ""
14137
14138 # type: textblock
14139 #. type: textblock
14140 #: ../src/guestfs-actions.pod:4059 ../fish/guestfish-actions.pod:2789
14141 msgid ""
14142 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14143 "dev/VG>."
14144 msgstr ""
14145
14146 # type: textblock
14147 #. type: textblock
14148 #: ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:5300
14149 #: ../src/guestfs-actions.pod:7089
14150 msgid "(Added in 1.0.13)"
14151 msgstr ""
14152
14153 # type: =head2
14154 #. type: =head2
14155 #: ../src/guestfs-actions.pod:4066
14156 msgid "guestfs_lvrename"
14157 msgstr ""
14158
14159 # type: verbatim
14160 #. type: verbatim
14161 #: ../src/guestfs-actions.pod:4068
14162 #, no-wrap
14163 msgid ""
14164 " int\n"
14165 " guestfs_lvrename (guestfs_h *g,\n"
14166 "                   const char *logvol,\n"
14167 "                   const char *newlogvol);\n"
14168 "\n"
14169 msgstr ""
14170
14171 # type: textblock
14172 #. type: textblock
14173 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2796
14174 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14175 msgstr ""
14176
14177 # type: textblock
14178 #. type: textblock
14179 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:7102
14180 msgid "(Added in 1.0.83)"
14181 msgstr ""
14182
14183 # type: =head2
14184 #. type: =head2
14185 #: ../src/guestfs-actions.pod:4079
14186 msgid "guestfs_lvresize"
14187 msgstr ""
14188
14189 # type: verbatim
14190 #. type: verbatim
14191 #: ../src/guestfs-actions.pod:4081
14192 #, no-wrap
14193 msgid ""
14194 " int\n"
14195 " guestfs_lvresize (guestfs_h *g,\n"
14196 "                   const char *device,\n"
14197 "                   int mbytes);\n"
14198 "\n"
14199 msgstr ""
14200
14201 # type: textblock
14202 #. type: textblock
14203 #: ../src/guestfs-actions.pod:4086 ../fish/guestfish-actions.pod:2802
14204 msgid ""
14205 "This resizes (expands or shrinks) an existing LVM logical volume to "
14206 "C<mbytes>.  When reducing, data in the reduced part is lost."
14207 msgstr ""
14208
14209 # type: =head2
14210 #. type: =head2
14211 #: ../src/guestfs-actions.pod:4094
14212 msgid "guestfs_lvresize_free"
14213 msgstr ""
14214
14215 # type: verbatim
14216 #. type: verbatim
14217 #: ../src/guestfs-actions.pod:4096
14218 #, no-wrap
14219 msgid ""
14220 " int\n"
14221 " guestfs_lvresize_free (guestfs_h *g,\n"
14222 "                        const char *lv,\n"
14223 "                        int percent);\n"
14224 "\n"
14225 msgstr ""
14226
14227 # type: textblock
14228 #. type: textblock
14229 #: ../src/guestfs-actions.pod:4101 ../fish/guestfish-actions.pod:2810
14230 msgid ""
14231 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14232 "remaining free space in the volume group.  Commonly you would call this with "
14233 "pc = 100 which expands the logical volume as much as possible, using all "
14234 "remaining free space in the volume group."
14235 msgstr ""
14236
14237 # type: textblock
14238 #. type: textblock
14239 #: ../src/guestfs-actions.pod:4109
14240 msgid "(Added in 1.3.3)"
14241 msgstr ""
14242
14243 # type: =head2
14244 #. type: =head2
14245 #: ../src/guestfs-actions.pod:4111
14246 msgid "guestfs_lvs"
14247 msgstr ""
14248
14249 # type: verbatim
14250 #. type: verbatim
14251 #: ../src/guestfs-actions.pod:4113
14252 #, no-wrap
14253 msgid ""
14254 " char **\n"
14255 " guestfs_lvs (guestfs_h *g);\n"
14256 "\n"
14257 msgstr ""
14258
14259 # type: textblock
14260 #. type: textblock
14261 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2820
14262 msgid ""
14263 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14264 "(8)> command."
14265 msgstr ""
14266
14267 # type: textblock
14268 #. type: textblock
14269 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2823
14270 msgid ""
14271 "This returns a list of the logical volume device names (eg. C</dev/"
14272 "VolGroup00/LogVol00>)."
14273 msgstr ""
14274
14275 # type: textblock
14276 #. type: textblock
14277 #: ../src/guestfs-actions.pod:4122
14278 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14279 msgstr ""
14280
14281 # type: =head2
14282 #. type: =head2
14283 #: ../src/guestfs-actions.pod:4130
14284 msgid "guestfs_lvs_full"
14285 msgstr ""
14286
14287 # type: verbatim
14288 #. type: verbatim
14289 #: ../src/guestfs-actions.pod:4132
14290 #, no-wrap
14291 msgid ""
14292 " struct guestfs_lvm_lv_list *\n"
14293 " guestfs_lvs_full (guestfs_h *g);\n"
14294 "\n"
14295 msgstr ""
14296
14297 # type: textblock
14298 #. type: textblock
14299 #: ../src/guestfs-actions.pod:4135 ../fish/guestfish-actions.pod:2832
14300 msgid ""
14301 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14302 "(8)> command.  The \"full\" version includes all fields."
14303 msgstr ""
14304
14305 # type: textblock
14306 #. type: textblock
14307 #: ../src/guestfs-actions.pod:4138
14308 msgid ""
14309 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14310 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14311 msgstr ""
14312
14313 # type: =head2
14314 #. type: =head2
14315 #: ../src/guestfs-actions.pod:4144
14316 msgid "guestfs_lvuuid"
14317 msgstr ""
14318
14319 # type: verbatim
14320 #. type: verbatim
14321 #: ../src/guestfs-actions.pod:4146
14322 #, no-wrap
14323 msgid ""
14324 " char *\n"
14325 " guestfs_lvuuid (guestfs_h *g,\n"
14326 "                 const char *device);\n"
14327 "\n"
14328 msgstr ""
14329
14330 # type: textblock
14331 #. type: textblock
14332 #: ../src/guestfs-actions.pod:4150 ../fish/guestfish-actions.pod:2839
14333 msgid "This command returns the UUID of the LVM LV C<device>."
14334 msgstr ""
14335
14336 # type: =head2
14337 #. type: =head2
14338 #: ../src/guestfs-actions.pod:4157
14339 msgid "guestfs_lxattrlist"
14340 msgstr ""
14341
14342 # type: verbatim
14343 #. type: verbatim
14344 #: ../src/guestfs-actions.pod:4159
14345 #, no-wrap
14346 msgid ""
14347 " struct guestfs_xattr_list *\n"
14348 " guestfs_lxattrlist (guestfs_h *g,\n"
14349 "                     const char *path,\n"
14350 "                     char *const *names);\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: textblock
14355 #. type: textblock
14356 #: ../src/guestfs-actions.pod:4164 ../fish/guestfish-actions.pod:2845
14357 msgid ""
14358 "This call allows you to get the extended attributes of multiple files, where "
14359 "all files are in the directory C<path>.  C<names> is the list of files from "
14360 "this directory."
14361 msgstr ""
14362
14363 # type: textblock
14364 #. type: textblock
14365 #: ../src/guestfs-actions.pod:4168 ../fish/guestfish-actions.pod:2849
14366 msgid ""
14367 "On return you get a flat list of xattr structs which must be interpreted "
14368 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14369 "C<attrval> in this struct is zero-length to indicate there was an error "
14370 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14371 "number (the number of following attributes for this file, which could be C<"
14372 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14373 "for the first named file.  This repeats for the second and subsequent files."
14374 msgstr ""
14375
14376 # type: textblock
14377 #. type: textblock
14378 #: ../src/guestfs-actions.pod:4178
14379 msgid ""
14380 "This call is intended for programs that want to efficiently list a directory "
14381 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14382 "a similarly efficient call for getting standard stats.  Very long directory "
14383 "listings might cause the protocol message size to be exceeded, causing this "
14384 "call to fail.  The caller must split up such requests into smaller groups of "
14385 "names."
14386 msgstr ""
14387
14388 # type: =head2
14389 #. type: =head2
14390 #: ../src/guestfs-actions.pod:4192
14391 msgid "guestfs_mkdir"
14392 msgstr ""
14393
14394 # type: verbatim
14395 #. type: verbatim
14396 #: ../src/guestfs-actions.pod:4194
14397 #, no-wrap
14398 msgid ""
14399 " int\n"
14400 " guestfs_mkdir (guestfs_h *g,\n"
14401 "                const char *path);\n"
14402 "\n"
14403 msgstr ""
14404
14405 # type: textblock
14406 #. type: textblock
14407 #: ../src/guestfs-actions.pod:4198 ../fish/guestfish-actions.pod:2871
14408 msgid "Create a directory named C<path>."
14409 msgstr ""
14410
14411 # type: =head2
14412 #. type: =head2
14413 #: ../src/guestfs-actions.pod:4204
14414 msgid "guestfs_mkdir_mode"
14415 msgstr ""
14416
14417 # type: verbatim
14418 #. type: verbatim
14419 #: ../src/guestfs-actions.pod:4206
14420 #, no-wrap
14421 msgid ""
14422 " int\n"
14423 " guestfs_mkdir_mode (guestfs_h *g,\n"
14424 "                     const char *path,\n"
14425 "                     int mode);\n"
14426 "\n"
14427 msgstr ""
14428
14429 # type: textblock
14430 #. type: textblock
14431 #: ../src/guestfs-actions.pod:4211 ../fish/guestfish-actions.pod:2877
14432 msgid ""
14433 "This command creates a directory, setting the initial permissions of the "
14434 "directory to C<mode>."
14435 msgstr ""
14436
14437 # type: textblock
14438 #. type: textblock
14439 #: ../src/guestfs-actions.pod:4214 ../fish/guestfish-actions.pod:2880
14440 msgid ""
14441 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14442 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14443 "other ways."
14444 msgstr ""
14445
14446 # type: textblock
14447 #. type: textblock
14448 #: ../src/guestfs-actions.pod:4218
14449 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14450 msgstr ""
14451
14452 # type: =head2
14453 #. type: =head2
14454 #: ../src/guestfs-actions.pod:4224
14455 msgid "guestfs_mkdir_p"
14456 msgstr ""
14457
14458 # type: verbatim
14459 #. type: verbatim
14460 #: ../src/guestfs-actions.pod:4226
14461 #, no-wrap
14462 msgid ""
14463 " int\n"
14464 " guestfs_mkdir_p (guestfs_h *g,\n"
14465 "                  const char *path);\n"
14466 "\n"
14467 msgstr ""
14468
14469 # type: textblock
14470 #. type: textblock
14471 #: ../src/guestfs-actions.pod:4230 ../fish/guestfish-actions.pod:2890
14472 msgid ""
14473 "Create a directory named C<path>, creating any parent directories as "
14474 "necessary.  This is like the C<mkdir -p> shell command."
14475 msgstr ""
14476
14477 # type: =head2
14478 #. type: =head2
14479 #: ../src/guestfs-actions.pod:4237
14480 msgid "guestfs_mkdtemp"
14481 msgstr ""
14482
14483 # type: verbatim
14484 #. type: verbatim
14485 #: ../src/guestfs-actions.pod:4239
14486 #, no-wrap
14487 msgid ""
14488 " char *\n"
14489 " guestfs_mkdtemp (guestfs_h *g,\n"
14490 "                  const char *template);\n"
14491 "\n"
14492 msgstr ""
14493
14494 # type: textblock
14495 #. type: textblock
14496 #: ../src/guestfs-actions.pod:4243 ../fish/guestfish-actions.pod:2897
14497 msgid ""
14498 "This command creates a temporary directory.  The C<template> parameter "
14499 "should be a full pathname for the temporary directory name with the final "
14500 "six characters being \"XXXXXX\"."
14501 msgstr ""
14502
14503 # type: textblock
14504 #. type: textblock
14505 #: ../src/guestfs-actions.pod:4248 ../fish/guestfish-actions.pod:2902
14506 msgid ""
14507 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14508 "being suitable for Windows filesystems."
14509 msgstr ""
14510
14511 # type: textblock
14512 #. type: textblock
14513 #: ../src/guestfs-actions.pod:4251 ../fish/guestfish-actions.pod:2905
14514 msgid "The name of the temporary directory that was created is returned."
14515 msgstr ""
14516
14517 # type: textblock
14518 #. type: textblock
14519 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:2908
14520 msgid "The temporary directory is created with mode 0700 and is owned by root."
14521 msgstr ""
14522
14523 # type: textblock
14524 #. type: textblock
14525 #: ../src/guestfs-actions.pod:4257 ../fish/guestfish-actions.pod:2911
14526 msgid ""
14527 "The caller is responsible for deleting the temporary directory and its "
14528 "contents after use."
14529 msgstr ""
14530
14531 # type: textblock
14532 #. type: textblock
14533 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2914
14534 msgid "See also: L<mkdtemp(3)>"
14535 msgstr ""
14536
14537 # type: =head2
14538 #. type: =head2
14539 #: ../src/guestfs-actions.pod:4267
14540 msgid "guestfs_mke2fs_J"
14541 msgstr ""
14542
14543 # type: verbatim
14544 #. type: verbatim
14545 #: ../src/guestfs-actions.pod:4269
14546 #, no-wrap
14547 msgid ""
14548 " int\n"
14549 " guestfs_mke2fs_J (guestfs_h *g,\n"
14550 "                   const char *fstype,\n"
14551 "                   int blocksize,\n"
14552 "                   const char *device,\n"
14553 "                   const char *journal);\n"
14554 "\n"
14555 msgstr ""
14556
14557 # type: textblock
14558 #. type: textblock
14559 #: ../src/guestfs-actions.pod:4276 ../fish/guestfish-actions.pod:2920
14560 msgid ""
14561 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14562 "C<journal>.  It is equivalent to the command:"
14563 msgstr ""
14564
14565 # type: verbatim
14566 #. type: verbatim
14567 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:2924
14568 #, no-wrap
14569 msgid ""
14570 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14571 "\n"
14572 msgstr ""
14573
14574 # type: textblock
14575 #. type: textblock
14576 #: ../src/guestfs-actions.pod:4282
14577 msgid "See also C<guestfs_mke2journal>."
14578 msgstr ""
14579
14580 # type: textblock
14581 #. type: textblock
14582 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:4304
14583 #: ../src/guestfs-actions.pod:4322 ../src/guestfs-actions.pod:4338
14584 #: ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4366
14585 #: ../src/guestfs-actions.pod:4425 ../src/guestfs-actions.pod:4690
14586 msgid "(Added in 1.0.68)"
14587 msgstr ""
14588
14589 # type: =head2
14590 #. type: =head2
14591 #: ../src/guestfs-actions.pod:4288
14592 msgid "guestfs_mke2fs_JL"
14593 msgstr ""
14594
14595 # type: verbatim
14596 #. type: verbatim
14597 #: ../src/guestfs-actions.pod:4290
14598 #, no-wrap
14599 msgid ""
14600 " int\n"
14601 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14602 "                    const char *fstype,\n"
14603 "                    int blocksize,\n"
14604 "                    const char *device,\n"
14605 "                    const char *label);\n"
14606 "\n"
14607 msgstr ""
14608
14609 # type: textblock
14610 #. type: textblock
14611 #: ../src/guestfs-actions.pod:4297 ../fish/guestfish-actions.pod:2932
14612 msgid ""
14613 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14614 "the journal labeled C<label>."
14615 msgstr ""
14616
14617 # type: textblock
14618 #. type: textblock
14619 #: ../src/guestfs-actions.pod:4300
14620 msgid "See also C<guestfs_mke2journal_L>."
14621 msgstr ""
14622
14623 # type: =head2
14624 #. type: =head2
14625 #: ../src/guestfs-actions.pod:4306
14626 msgid "guestfs_mke2fs_JU"
14627 msgstr ""
14628
14629 # type: verbatim
14630 #. type: verbatim
14631 #: ../src/guestfs-actions.pod:4308
14632 #, no-wrap
14633 msgid ""
14634 " int\n"
14635 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14636 "                    const char *fstype,\n"
14637 "                    int blocksize,\n"
14638 "                    const char *device,\n"
14639 "                    const char *uuid);\n"
14640 "\n"
14641 msgstr ""
14642
14643 # type: textblock
14644 #. type: textblock
14645 #: ../src/guestfs-actions.pod:4315 ../fish/guestfish-actions.pod:2941
14646 msgid ""
14647 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14648 "the journal with UUID C<uuid>."
14649 msgstr ""
14650
14651 # type: textblock
14652 #. type: textblock
14653 #: ../src/guestfs-actions.pod:4318
14654 msgid "See also C<guestfs_mke2journal_U>."
14655 msgstr ""
14656
14657 # type: =head2
14658 #. type: =head2
14659 #: ../src/guestfs-actions.pod:4324
14660 msgid "guestfs_mke2journal"
14661 msgstr ""
14662
14663 # type: verbatim
14664 #. type: verbatim
14665 #: ../src/guestfs-actions.pod:4326
14666 #, no-wrap
14667 msgid ""
14668 " int\n"
14669 " guestfs_mke2journal (guestfs_h *g,\n"
14670 "                      int blocksize,\n"
14671 "                      const char *device);\n"
14672 "\n"
14673 msgstr ""
14674
14675 # type: textblock
14676 #. type: textblock
14677 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2950
14678 msgid ""
14679 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14680 "command:"
14681 msgstr ""
14682
14683 # type: verbatim
14684 #. type: verbatim
14685 #: ../src/guestfs-actions.pod:4334 ../fish/guestfish-actions.pod:2953
14686 #, no-wrap
14687 msgid ""
14688 " mke2fs -O journal_dev -b blocksize device\n"
14689 "\n"
14690 msgstr ""
14691
14692 # type: =head2
14693 #. type: =head2
14694 #: ../src/guestfs-actions.pod:4340
14695 msgid "guestfs_mke2journal_L"
14696 msgstr ""
14697
14698 # type: verbatim
14699 #. type: verbatim
14700 #: ../src/guestfs-actions.pod:4342
14701 #, no-wrap
14702 msgid ""
14703 " int\n"
14704 " guestfs_mke2journal_L (guestfs_h *g,\n"
14705 "                        int blocksize,\n"
14706 "                        const char *label,\n"
14707 "                        const char *device);\n"
14708 "\n"
14709 msgstr ""
14710
14711 # type: textblock
14712 #. type: textblock
14713 #: ../src/guestfs-actions.pod:4348 ../fish/guestfish-actions.pod:2959
14714 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14715 msgstr ""
14716
14717 # type: =head2
14718 #. type: =head2
14719 #: ../src/guestfs-actions.pod:4354
14720 msgid "guestfs_mke2journal_U"
14721 msgstr ""
14722
14723 # type: verbatim
14724 #. type: verbatim
14725 #: ../src/guestfs-actions.pod:4356
14726 #, no-wrap
14727 msgid ""
14728 " int\n"
14729 " guestfs_mke2journal_U (guestfs_h *g,\n"
14730 "                        int blocksize,\n"
14731 "                        const char *uuid,\n"
14732 "                        const char *device);\n"
14733 "\n"
14734 msgstr ""
14735
14736 # type: textblock
14737 #. type: textblock
14738 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2965
14739 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14740 msgstr ""
14741
14742 # type: =head2
14743 #. type: =head2
14744 #: ../src/guestfs-actions.pod:4368
14745 msgid "guestfs_mkfifo"
14746 msgstr ""
14747
14748 # type: verbatim
14749 #. type: verbatim
14750 #: ../src/guestfs-actions.pod:4370
14751 #, no-wrap
14752 msgid ""
14753 " int\n"
14754 " guestfs_mkfifo (guestfs_h *g,\n"
14755 "                 int mode,\n"
14756 "                 const char *path);\n"
14757 "\n"
14758 msgstr ""
14759
14760 # type: textblock
14761 #. type: textblock
14762 #: ../src/guestfs-actions.pod:4375
14763 msgid ""
14764 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14765 "is just a convenient wrapper around C<guestfs_mknod>."
14766 msgstr ""
14767
14768 # type: =head2
14769 #. type: =head2
14770 #: ../src/guestfs-actions.pod:4385
14771 msgid "guestfs_mkfs"
14772 msgstr ""
14773
14774 # type: verbatim
14775 #. type: verbatim
14776 #: ../src/guestfs-actions.pod:4387
14777 #, no-wrap
14778 msgid ""
14779 " int\n"
14780 " guestfs_mkfs (guestfs_h *g,\n"
14781 "               const char *fstype,\n"
14782 "               const char *device);\n"
14783 "\n"
14784 msgstr ""
14785
14786 # type: textblock
14787 #. type: textblock
14788 #: ../src/guestfs-actions.pod:4392 ../fish/guestfish-actions.pod:2981
14789 msgid ""
14790 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14791 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14792 msgstr ""
14793
14794 # type: =head2
14795 #. type: =head2
14796 #: ../src/guestfs-actions.pod:4400
14797 msgid "guestfs_mkfs_b"
14798 msgstr ""
14799
14800 # type: verbatim
14801 #. type: verbatim
14802 #: ../src/guestfs-actions.pod:4402
14803 #, no-wrap
14804 msgid ""
14805 " int\n"
14806 " guestfs_mkfs_b (guestfs_h *g,\n"
14807 "                 const char *fstype,\n"
14808 "                 int blocksize,\n"
14809 "                 const char *device);\n"
14810 "\n"
14811 msgstr ""
14812
14813 # type: textblock
14814 #. type: textblock
14815 #: ../src/guestfs-actions.pod:4408
14816 msgid ""
14817 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14818 "block size of the resulting filesystem.  Supported block sizes depend on the "
14819 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14820 msgstr ""
14821
14822 # type: textblock
14823 #. type: textblock
14824 #: ../src/guestfs-actions.pod:4413 ../src/guestfs-actions.pod:4456
14825 #: ../fish/guestfish-actions.pod:2994 ../fish/guestfish-actions.pod:3021
14826 msgid ""
14827 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14828 "cluster size."
14829 msgstr ""
14830
14831 # type: textblock
14832 #. type: textblock
14833 #: ../src/guestfs-actions.pod:4418 ../fish/guestfish-actions.pod:2997
14834 msgid ""
14835 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
14836 msgstr ""
14837
14838 # type: =head2
14839 #. type: =head2
14840 #: ../src/guestfs-actions.pod:4427
14841 msgid "guestfs_mkfs_opts"
14842 msgstr ""
14843
14844 # type: verbatim
14845 #. type: verbatim
14846 #: ../src/guestfs-actions.pod:4429
14847 #, no-wrap
14848 msgid ""
14849 " int\n"
14850 " guestfs_mkfs_opts (guestfs_h *g,\n"
14851 "                    const char *fstype,\n"
14852 "                    const char *device,\n"
14853 "                    ...);\n"
14854 "\n"
14855 msgstr ""
14856
14857 #. type: verbatim
14858 #: ../src/guestfs-actions.pod:4440
14859 #, no-wrap
14860 msgid ""
14861 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14862 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
14863 "\n"
14864 msgstr ""
14865
14866 # type: textblock
14867 #. type: textblock
14868 #: ../src/guestfs-actions.pod:4443 ../fish/guestfish-actions.pod:3008
14869 msgid ""
14870 "This function creates a filesystem on C<device>.  The filesystem type is "
14871 "C<fstype>, for example C<ext3>."
14872 msgstr ""
14873
14874 # type: =item
14875 #. type: =item
14876 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3015
14877 msgid "C<blocksize>"
14878 msgstr ""
14879
14880 # type: textblock
14881 #. type: textblock
14882 #: ../src/guestfs-actions.pod:4452 ../fish/guestfish-actions.pod:3017
14883 msgid ""
14884 "The filesystem block size.  Supported block sizes depend on the filesystem "
14885 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14886 "filesystems."
14887 msgstr ""
14888
14889 #. type: textblock
14890 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:3024
14891 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14892 msgstr ""
14893
14894 #. type: =item
14895 #: ../src/guestfs-actions.pod:4461 ../fish/guestfish-actions.pod:3026
14896 msgid "C<features>"
14897 msgstr ""
14898
14899 #. type: textblock
14900 #: ../src/guestfs-actions.pod:4463 ../fish/guestfish-actions.pod:3028
14901 msgid "This passes the C<-O> parameter to the external mkfs program."
14902 msgstr ""
14903
14904 #. type: textblock
14905 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:3030
14906 msgid ""
14907 "For certain filesystem types, this allows extra filesystem features to be "
14908 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14909 msgstr ""
14910
14911 #. type: textblock
14912 #: ../src/guestfs-actions.pod:4469 ../fish/guestfish-actions.pod:3034
14913 msgid ""
14914 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14915 "type."
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../src/guestfs-actions.pod:4476
14920 msgid "(Added in 1.7.19)"
14921 msgstr ""
14922
14923 # type: =head2
14924 #. type: =head2
14925 #: ../src/guestfs-actions.pod:4478
14926 msgid "guestfs_mkfs_opts_va"
14927 msgstr ""
14928
14929 # type: verbatim
14930 #. type: verbatim
14931 #: ../src/guestfs-actions.pod:4480
14932 #, no-wrap
14933 msgid ""
14934 " int\n"
14935 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14936 "                       const char *fstype,\n"
14937 "                       const char *device,\n"
14938 "                       va_list args);\n"
14939 "\n"
14940 msgstr ""
14941
14942 # type: textblock
14943 #. type: textblock
14944 #: ../src/guestfs-actions.pod:4486
14945 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14946 msgstr ""
14947
14948 # type: =head2
14949 #. type: =head2
14950 #: ../src/guestfs-actions.pod:4490
14951 msgid "guestfs_mkfs_opts_argv"
14952 msgstr ""
14953
14954 # type: verbatim
14955 #. type: verbatim
14956 #: ../src/guestfs-actions.pod:4492
14957 #, no-wrap
14958 msgid ""
14959 " int\n"
14960 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14961 "                         const char *fstype,\n"
14962 "                         const char *device,\n"
14963 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14964 "\n"
14965 msgstr ""
14966
14967 # type: textblock
14968 #. type: textblock
14969 #: ../src/guestfs-actions.pod:4498
14970 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14971 msgstr ""
14972
14973 # type: =head2
14974 #. type: =head2
14975 #: ../src/guestfs-actions.pod:4502
14976 msgid "guestfs_mkmountpoint"
14977 msgstr ""
14978
14979 # type: verbatim
14980 #. type: verbatim
14981 #: ../src/guestfs-actions.pod:4504
14982 #, no-wrap
14983 msgid ""
14984 " int\n"
14985 " guestfs_mkmountpoint (guestfs_h *g,\n"
14986 "                       const char *exemptpath);\n"
14987 "\n"
14988 msgstr ""
14989
14990 # type: textblock
14991 #. type: textblock
14992 #: ../src/guestfs-actions.pod:4508
14993 msgid ""
14994 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14995 "that can be used to create extra mountpoints before mounting the first "
14996 "filesystem."
14997 msgstr ""
14998
14999 # type: textblock
15000 #. type: textblock
15001 #: ../src/guestfs-actions.pod:4512 ../fish/guestfish-actions.pod:3049
15002 msgid ""
15003 "These calls are I<only> necessary in some very limited circumstances, mainly "
15004 "the case where you want to mount a mix of unrelated and/or read-only "
15005 "filesystems together."
15006 msgstr ""
15007
15008 # type: textblock
15009 #. type: textblock
15010 #: ../src/guestfs-actions.pod:4516 ../fish/guestfish-actions.pod:3053
15011 msgid ""
15012 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
15013 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
15014 "inside that.  You can unpack this as follows in guestfish:"
15015 msgstr ""
15016
15017 # type: verbatim
15018 #. type: verbatim
15019 #: ../src/guestfs-actions.pod:4521 ../fish/guestfish-actions.pod:3058
15020 #, no-wrap
15021 msgid ""
15022 " add-ro Fedora-11-i686-Live.iso\n"
15023 " run\n"
15024 " mkmountpoint /cd\n"
15025 " mkmountpoint /sqsh\n"
15026 " mkmountpoint /ext3fs\n"
15027 " mount /dev/sda /cd\n"
15028 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
15029 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
15030 "\n"
15031 msgstr ""
15032
15033 # type: textblock
15034 #. type: textblock
15035 #: ../src/guestfs-actions.pod:4530 ../fish/guestfish-actions.pod:3067
15036 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
15037 msgstr ""
15038
15039 # type: textblock
15040 #. type: textblock
15041 #: ../src/guestfs-actions.pod:4532
15042 msgid ""
15043 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
15044 "may get unexpected errors if you try to mix these calls.  It is safest to "
15045 "manually unmount filesystems and remove mountpoints after use."
15046 msgstr ""
15047
15048 # type: textblock
15049 #. type: textblock
15050 #: ../src/guestfs-actions.pod:4536
15051 msgid ""
15052 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
15053 "first, so for this to work for manual mountpoints, you must ensure that the "
15054 "innermost mountpoints have the longest pathnames, as in the example code "
15055 "above."
15056 msgstr ""
15057
15058 # type: textblock
15059 #. type: textblock
15060 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3078
15061 msgid ""
15062 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
15063 msgstr ""
15064
15065 #. type: textblock
15066 #: ../src/guestfs-actions.pod:4543
15067 msgid ""
15068 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
15069 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
15070 "can also trigger these issues."
15071 msgstr ""
15072
15073 # type: textblock
15074 #. type: textblock
15075 #: ../src/guestfs-actions.pod:4549 ../src/guestfs-actions.pod:4808
15076 #: ../src/guestfs-actions.pod:5718
15077 msgid "(Added in 1.0.62)"
15078 msgstr ""
15079
15080 # type: =head2
15081 #. type: =head2
15082 #: ../src/guestfs-actions.pod:4551
15083 msgid "guestfs_mknod"
15084 msgstr ""
15085
15086 # type: verbatim
15087 #. type: verbatim
15088 #: ../src/guestfs-actions.pod:4553
15089 #, no-wrap
15090 msgid ""
15091 " int\n"
15092 " guestfs_mknod (guestfs_h *g,\n"
15093 "                int mode,\n"
15094 "                int devmajor,\n"
15095 "                int devminor,\n"
15096 "                const char *path);\n"
15097 "\n"
15098 msgstr ""
15099
15100 # type: textblock
15101 #. type: textblock
15102 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3088
15103 msgid ""
15104 "This call creates block or character special devices, or named pipes (FIFOs)."
15105 msgstr ""
15106
15107 # type: textblock
15108 #. type: textblock
15109 #: ../src/guestfs-actions.pod:4563 ../fish/guestfish-actions.pod:3091
15110 msgid ""
15111 "The C<mode> parameter should be the mode, using the standard constants.  "
15112 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15113 "used when creating block and character special devices."
15114 msgstr ""
15115
15116 # type: textblock
15117 #. type: textblock
15118 #: ../src/guestfs-actions.pod:4568
15119 msgid ""
15120 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15121 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15122 "regular file).  These constants are available in the standard Linux header "
15123 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15124 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15125 "the appropriate constant for you."
15126 msgstr ""
15127
15128 # type: =head2
15129 #. type: =head2
15130 #: ../src/guestfs-actions.pod:4582
15131 msgid "guestfs_mknod_b"
15132 msgstr ""
15133
15134 # type: verbatim
15135 #. type: verbatim
15136 #: ../src/guestfs-actions.pod:4584
15137 #, no-wrap
15138 msgid ""
15139 " int\n"
15140 " guestfs_mknod_b (guestfs_h *g,\n"
15141 "                  int mode,\n"
15142 "                  int devmajor,\n"
15143 "                  int devminor,\n"
15144 "                  const char *path);\n"
15145 "\n"
15146 msgstr ""
15147
15148 # type: textblock
15149 #. type: textblock
15150 #: ../src/guestfs-actions.pod:4591
15151 msgid ""
15152 "This call creates a block device node called C<path> with mode C<mode> and "
15153 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15154 "wrapper around C<guestfs_mknod>."
15155 msgstr ""
15156
15157 # type: =head2
15158 #. type: =head2
15159 #: ../src/guestfs-actions.pod:4601
15160 msgid "guestfs_mknod_c"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #. type: verbatim
15165 #: ../src/guestfs-actions.pod:4603
15166 #, no-wrap
15167 msgid ""
15168 " int\n"
15169 " guestfs_mknod_c (guestfs_h *g,\n"
15170 "                  int mode,\n"
15171 "                  int devmajor,\n"
15172 "                  int devminor,\n"
15173 "                  const char *path);\n"
15174 "\n"
15175 msgstr ""
15176
15177 # type: textblock
15178 #. type: textblock
15179 #: ../src/guestfs-actions.pod:4610
15180 msgid ""
15181 "This call creates a char device node called C<path> with mode C<mode> and "
15182 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15183 "wrapper around C<guestfs_mknod>."
15184 msgstr ""
15185
15186 # type: =head2
15187 #. type: =head2
15188 #: ../src/guestfs-actions.pod:4620
15189 msgid "guestfs_mkswap"
15190 msgstr ""
15191
15192 # type: verbatim
15193 #. type: verbatim
15194 #: ../src/guestfs-actions.pod:4622
15195 #, no-wrap
15196 msgid ""
15197 " int\n"
15198 " guestfs_mkswap (guestfs_h *g,\n"
15199 "                 const char *device);\n"
15200 "\n"
15201 msgstr ""
15202
15203 # type: textblock
15204 #. type: textblock
15205 #: ../src/guestfs-actions.pod:4626 ../fish/guestfish-actions.pod:3130
15206 msgid "Create a swap partition on C<device>."
15207 msgstr ""
15208
15209 # type: =head2
15210 #. type: =head2
15211 #: ../src/guestfs-actions.pod:4632
15212 msgid "guestfs_mkswap_L"
15213 msgstr ""
15214
15215 # type: verbatim
15216 #. type: verbatim
15217 #: ../src/guestfs-actions.pod:4634
15218 #, no-wrap
15219 msgid ""
15220 " int\n"
15221 " guestfs_mkswap_L (guestfs_h *g,\n"
15222 "                   const char *label,\n"
15223 "                   const char *device);\n"
15224 "\n"
15225 msgstr ""
15226
15227 # type: textblock
15228 #. type: textblock
15229 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3136
15230 msgid "Create a swap partition on C<device> with label C<label>."
15231 msgstr ""
15232
15233 # type: textblock
15234 #. type: textblock
15235 #: ../src/guestfs-actions.pod:4641 ../fish/guestfish-actions.pod:3138
15236 msgid ""
15237 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15238 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15239 "or swap tools."
15240 msgstr ""
15241
15242 # type: =head2
15243 #. type: =head2
15244 #: ../src/guestfs-actions.pod:4649
15245 msgid "guestfs_mkswap_U"
15246 msgstr ""
15247
15248 # type: verbatim
15249 #. type: verbatim
15250 #: ../src/guestfs-actions.pod:4651
15251 #, no-wrap
15252 msgid ""
15253 " int\n"
15254 " guestfs_mkswap_U (guestfs_h *g,\n"
15255 "                   const char *uuid,\n"
15256 "                   const char *device);\n"
15257 "\n"
15258 msgstr ""
15259
15260 # type: textblock
15261 #. type: textblock
15262 #: ../src/guestfs-actions.pod:4656 ../fish/guestfish-actions.pod:3146
15263 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15264 msgstr ""
15265
15266 # type: =head2
15267 #. type: =head2
15268 #: ../src/guestfs-actions.pod:4662
15269 msgid "guestfs_mkswap_file"
15270 msgstr ""
15271
15272 # type: verbatim
15273 #. type: verbatim
15274 #: ../src/guestfs-actions.pod:4664
15275 #, no-wrap
15276 msgid ""
15277 " int\n"
15278 " guestfs_mkswap_file (guestfs_h *g,\n"
15279 "                      const char *path);\n"
15280 "\n"
15281 msgstr ""
15282
15283 # type: textblock
15284 #. type: textblock
15285 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3152
15286 msgid "Create a swap file."
15287 msgstr ""
15288
15289 # type: textblock
15290 #. type: textblock
15291 #: ../src/guestfs-actions.pod:4670
15292 msgid ""
15293 "This command just writes a swap file signature to an existing file.  To "
15294 "create the file itself, use something like C<guestfs_fallocate>."
15295 msgstr ""
15296
15297 # type: =head2
15298 #. type: =head2
15299 #: ../src/guestfs-actions.pod:4677
15300 msgid "guestfs_modprobe"
15301 msgstr ""
15302
15303 # type: verbatim
15304 #. type: verbatim
15305 #: ../src/guestfs-actions.pod:4679
15306 #, no-wrap
15307 msgid ""
15308 " int\n"
15309 " guestfs_modprobe (guestfs_h *g,\n"
15310 "                   const char *modulename);\n"
15311 "\n"
15312 msgstr ""
15313
15314 # type: textblock
15315 #. type: textblock
15316 #: ../src/guestfs-actions.pod:4683 ../fish/guestfish-actions.pod:3161
15317 msgid "This loads a kernel module in the appliance."
15318 msgstr ""
15319
15320 # type: textblock
15321 #. type: textblock
15322 #: ../src/guestfs-actions.pod:4685 ../fish/guestfish-actions.pod:3163
15323 msgid ""
15324 "The kernel module must have been whitelisted when libguestfs was built (see "
15325 "C<appliance/kmod.whitelist.in> in the source)."
15326 msgstr ""
15327
15328 # type: =head2
15329 #. type: =head2
15330 #: ../src/guestfs-actions.pod:4692
15331 msgid "guestfs_mount"
15332 msgstr ""
15333
15334 # type: verbatim
15335 #. type: verbatim
15336 #: ../src/guestfs-actions.pod:4694
15337 #, no-wrap
15338 msgid ""
15339 " int\n"
15340 " guestfs_mount (guestfs_h *g,\n"
15341 "                const char *device,\n"
15342 "                const char *mountpoint);\n"
15343 "\n"
15344 msgstr ""
15345
15346 # type: textblock
15347 #. type: textblock
15348 #: ../src/guestfs-actions.pod:4699 ../fish/guestfish-actions.pod:3170
15349 msgid ""
15350 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15351 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15352 "those block devices contain partitions, they will have the usual names (eg. "
15353 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15354 msgstr ""
15355
15356 # type: textblock
15357 #. type: textblock
15358 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3176
15359 msgid ""
15360 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15361 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15362 "mounted on directories which already exist."
15363 msgstr ""
15364
15365 # type: textblock
15366 #. type: textblock
15367 #: ../src/guestfs-actions.pod:4710 ../fish/guestfish-actions.pod:3181
15368 msgid ""
15369 "The mounted filesystem is writable, if we have sufficient permissions on the "
15370 "underlying device."
15371 msgstr ""
15372
15373 # type: textblock
15374 #. type: textblock
15375 #: ../src/guestfs-actions.pod:4713
15376 msgid ""
15377 "B<Important note:> When you use this call, the filesystem options C<sync> "
15378 "and C<noatime> are set implicitly.  This was originally done because we "
15379 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15380 "very large negative performance impact and negligible effect on "
15381 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15382 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15383 "(use an empty string for the first parameter if you don't want any options)."
15384 msgstr ""
15385
15386 # type: =head2
15387 #. type: =head2
15388 #: ../src/guestfs-actions.pod:4727
15389 msgid "guestfs_mount_loop"
15390 msgstr ""
15391
15392 # type: verbatim
15393 #. type: verbatim
15394 #: ../src/guestfs-actions.pod:4729
15395 #, no-wrap
15396 msgid ""
15397 " int\n"
15398 " guestfs_mount_loop (guestfs_h *g,\n"
15399 "                     const char *file,\n"
15400 "                     const char *mountpoint);\n"
15401 "\n"
15402 msgstr ""
15403
15404 # type: textblock
15405 #. type: textblock
15406 #: ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3198
15407 msgid ""
15408 "This command lets you mount C<file> (a filesystem image in a file) on a "
15409 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15410 "mountpoint>."
15411 msgstr ""
15412
15413 # type: =head2
15414 #. type: =head2
15415 #: ../src/guestfs-actions.pod:4742
15416 msgid "guestfs_mount_options"
15417 msgstr ""
15418
15419 # type: verbatim
15420 #. type: verbatim
15421 #: ../src/guestfs-actions.pod:4744
15422 #, no-wrap
15423 msgid ""
15424 " int\n"
15425 " guestfs_mount_options (guestfs_h *g,\n"
15426 "                        const char *options,\n"
15427 "                        const char *device,\n"
15428 "                        const char *mountpoint);\n"
15429 "\n"
15430 msgstr ""
15431
15432 # type: textblock
15433 #. type: textblock
15434 #: ../src/guestfs-actions.pod:4750
15435 msgid ""
15436 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15437 "the mount options as for the L<mount(8)> I<-o> flag."
15438 msgstr ""
15439
15440 # type: textblock
15441 #. type: textblock
15442 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3210
15443 msgid ""
15444 "If the C<options> parameter is an empty string, then no options are passed "
15445 "(all options default to whatever the filesystem uses)."
15446 msgstr ""
15447
15448 # type: textblock
15449 #. type: textblock
15450 #: ../src/guestfs-actions.pod:4760 ../src/guestfs-actions.pod:4774
15451 #: ../src/guestfs-actions.pod:4791
15452 msgid "(Added in 1.0.10)"
15453 msgstr ""
15454
15455 # type: =head2
15456 #. type: =head2
15457 #: ../src/guestfs-actions.pod:4762
15458 msgid "guestfs_mount_ro"
15459 msgstr ""
15460
15461 # type: verbatim
15462 #. type: verbatim
15463 #: ../src/guestfs-actions.pod:4764
15464 #, no-wrap
15465 msgid ""
15466 " int\n"
15467 " guestfs_mount_ro (guestfs_h *g,\n"
15468 "                   const char *device,\n"
15469 "                   const char *mountpoint);\n"
15470 "\n"
15471 msgstr ""
15472
15473 # type: textblock
15474 #. type: textblock
15475 #: ../src/guestfs-actions.pod:4769
15476 msgid ""
15477 "This is the same as the C<guestfs_mount> command, but it mounts the "
15478 "filesystem with the read-only (I<-o ro>) flag."
15479 msgstr ""
15480
15481 # type: =head2
15482 #. type: =head2
15483 #: ../src/guestfs-actions.pod:4776
15484 msgid "guestfs_mount_vfs"
15485 msgstr ""
15486
15487 # type: verbatim
15488 #. type: verbatim
15489 #: ../src/guestfs-actions.pod:4778
15490 #, no-wrap
15491 msgid ""
15492 " int\n"
15493 " guestfs_mount_vfs (guestfs_h *g,\n"
15494 "                    const char *options,\n"
15495 "                    const char *vfstype,\n"
15496 "                    const char *device,\n"
15497 "                    const char *mountpoint);\n"
15498 "\n"
15499 msgstr ""
15500
15501 # type: textblock
15502 #. type: textblock
15503 #: ../src/guestfs-actions.pod:4785
15504 msgid ""
15505 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15506 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
15507 "t> flags."
15508 msgstr ""
15509
15510 # type: =head2
15511 #. type: =head2
15512 #: ../src/guestfs-actions.pod:4793
15513 msgid "guestfs_mountpoints"
15514 msgstr ""
15515
15516 # type: verbatim
15517 #. type: verbatim
15518 #: ../src/guestfs-actions.pod:4795
15519 #, no-wrap
15520 msgid ""
15521 " char **\n"
15522 " guestfs_mountpoints (guestfs_h *g);\n"
15523 "\n"
15524 msgstr ""
15525
15526 # type: textblock
15527 #. type: textblock
15528 #: ../src/guestfs-actions.pod:4798
15529 msgid ""
15530 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
15531 "devices.  This one returns a hash table (map) of device name to directory "
15532 "where the device is mounted."
15533 msgstr ""
15534
15535 # type: =head2
15536 #. type: =head2
15537 #: ../src/guestfs-actions.pod:4810
15538 msgid "guestfs_mounts"
15539 msgstr ""
15540
15541 # type: verbatim
15542 #. type: verbatim
15543 #: ../src/guestfs-actions.pod:4812
15544 #, no-wrap
15545 msgid ""
15546 " char **\n"
15547 " guestfs_mounts (guestfs_h *g);\n"
15548 "\n"
15549 msgstr ""
15550
15551 # type: textblock
15552 #. type: textblock
15553 #: ../src/guestfs-actions.pod:4815 ../fish/guestfish-actions.pod:3241
15554 msgid ""
15555 "This returns the list of currently mounted filesystems.  It returns the list "
15556 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15557 msgstr ""
15558
15559 # type: textblock
15560 #. type: textblock
15561 #: ../src/guestfs-actions.pod:4818 ../fish/guestfish-actions.pod:3244
15562 msgid "Some internal mounts are not shown."
15563 msgstr ""
15564
15565 # type: textblock
15566 #. type: textblock
15567 #: ../src/guestfs-actions.pod:4820
15568 msgid "See also: C<guestfs_mountpoints>"
15569 msgstr ""
15570
15571 # type: =head2
15572 #. type: =head2
15573 #: ../src/guestfs-actions.pod:4828
15574 msgid "guestfs_mv"
15575 msgstr ""
15576
15577 # type: verbatim
15578 #. type: verbatim
15579 #: ../src/guestfs-actions.pod:4830
15580 #, no-wrap
15581 msgid ""
15582 " int\n"
15583 " guestfs_mv (guestfs_h *g,\n"
15584 "             const char *src,\n"
15585 "             const char *dest);\n"
15586 "\n"
15587 msgstr ""
15588
15589 # type: textblock
15590 #. type: textblock
15591 #: ../src/guestfs-actions.pod:4835 ../fish/guestfish-actions.pod:3252
15592 msgid ""
15593 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15594 "destination filename or destination directory."
15595 msgstr ""
15596
15597 # type: =head2
15598 #. type: =head2
15599 #: ../src/guestfs-actions.pod:4842
15600 msgid "guestfs_ntfs_3g_probe"
15601 msgstr ""
15602
15603 # type: verbatim
15604 #. type: verbatim
15605 #: ../src/guestfs-actions.pod:4844
15606 #, no-wrap
15607 msgid ""
15608 " int\n"
15609 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15610 "                        int rw,\n"
15611 "                        const char *device);\n"
15612 "\n"
15613 msgstr ""
15614
15615 # type: textblock
15616 #. type: textblock
15617 #: ../src/guestfs-actions.pod:4849 ../fish/guestfish-actions.pod:3259
15618 msgid ""
15619 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
15620 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
15621 "write, and some cannot be mounted at all)."
15622 msgstr ""
15623
15624 # type: textblock
15625 #. type: textblock
15626 #: ../src/guestfs-actions.pod:4853 ../fish/guestfish-actions.pod:3263
15627 msgid ""
15628 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15629 "can be mounted read-write.  Set it to false if you want to test if the "
15630 "volume can be mounted read-only."
15631 msgstr ""
15632
15633 # type: textblock
15634 #. type: textblock
15635 #: ../src/guestfs-actions.pod:4857 ../fish/guestfish-actions.pod:3267
15636 msgid ""
15637 "The return value is an integer which C<0> if the operation would succeed, or "
15638 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15639 msgstr ""
15640
15641 # type: textblock
15642 #. type: textblock
15643 #: ../src/guestfs-actions.pod:4863
15644 msgid "(Added in 1.0.43)"
15645 msgstr ""
15646
15647 # type: =head2
15648 #. type: =head2
15649 #: ../src/guestfs-actions.pod:4865
15650 msgid "guestfs_ntfsresize"
15651 msgstr ""
15652
15653 # type: verbatim
15654 #. type: verbatim
15655 #: ../src/guestfs-actions.pod:4867
15656 #, no-wrap
15657 msgid ""
15658 " int\n"
15659 " guestfs_ntfsresize (guestfs_h *g,\n"
15660 "                     const char *device);\n"
15661 "\n"
15662 msgstr ""
15663
15664 # type: textblock
15665 #. type: textblock
15666 #: ../src/guestfs-actions.pod:4871 ../fish/guestfish-actions.pod:3275
15667 msgid ""
15668 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15669 "size of the underlying device.  See also L<ntfsresize(8)>."
15670 msgstr ""
15671
15672 # type: =head2
15673 #. type: =head2
15674 #: ../src/guestfs-actions.pod:4879
15675 msgid "guestfs_ntfsresize_size"
15676 msgstr ""
15677
15678 # type: verbatim
15679 #. type: verbatim
15680 #: ../src/guestfs-actions.pod:4881
15681 #, no-wrap
15682 msgid ""
15683 " int\n"
15684 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15685 "                          const char *device,\n"
15686 "                          int64_t size);\n"
15687 "\n"
15688 msgstr ""
15689
15690 # type: textblock
15691 #. type: textblock
15692 #: ../src/guestfs-actions.pod:4886
15693 msgid ""
15694 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15695 "to specify the new size (in bytes) explicitly."
15696 msgstr ""
15697
15698 # type: textblock
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:5327
15701 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5666
15702 #: ../src/guestfs-actions.pod:7237
15703 msgid "(Added in 1.3.14)"
15704 msgstr ""
15705
15706 # type: =head2
15707 #. type: =head2
15708 #: ../src/guestfs-actions.pod:4893
15709 msgid "guestfs_part_add"
15710 msgstr ""
15711
15712 # type: verbatim
15713 #. type: verbatim
15714 #: ../src/guestfs-actions.pod:4895
15715 #, no-wrap
15716 msgid ""
15717 " int\n"
15718 " guestfs_part_add (guestfs_h *g,\n"
15719 "                   const char *device,\n"
15720 "                   const char *prlogex,\n"
15721 "                   int64_t startsect,\n"
15722 "                   int64_t endsect);\n"
15723 "\n"
15724 msgstr ""
15725
15726 # type: textblock
15727 #. type: textblock
15728 #: ../src/guestfs-actions.pod:4902
15729 msgid ""
15730 "This command adds a partition to C<device>.  If there is no partition table "
15731 "on the device, call C<guestfs_part_init> first."
15732 msgstr ""
15733
15734 # type: textblock
15735 #. type: textblock
15736 #: ../src/guestfs-actions.pod:4905 ../fish/guestfish-actions.pod:3293
15737 msgid ""
15738 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15739 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15740 "C<logical>) and C<e> (or C<extended>) partition types."
15741 msgstr ""
15742
15743 # type: textblock
15744 #. type: textblock
15745 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3298
15746 msgid ""
15747 "C<startsect> and C<endsect> are the start and end of the partition in "
15748 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15749 "from the end of the disk (C<-1> is the last sector)."
15750 msgstr ""
15751
15752 # type: textblock
15753 #. type: textblock
15754 #: ../src/guestfs-actions.pod:4914
15755 msgid ""
15756 "Creating a partition which covers the whole disk is not so easy.  Use "
15757 "C<guestfs_part_disk> to do that."
15758 msgstr ""
15759
15760 # type: textblock
15761 #. type: textblock
15762 #: ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4957
15763 #: ../src/guestfs-actions.pod:5010 ../src/guestfs-actions.pod:5088
15764 #: ../src/guestfs-actions.pod:5126 ../src/guestfs-actions.pod:5145
15765 #: ../src/guestfs-actions.pod:5185
15766 msgid "(Added in 1.0.78)"
15767 msgstr ""
15768
15769 # type: =head2
15770 #. type: =head2
15771 #: ../src/guestfs-actions.pod:4921
15772 msgid "guestfs_part_del"
15773 msgstr ""
15774
15775 # type: verbatim
15776 #. type: verbatim
15777 #: ../src/guestfs-actions.pod:4923
15778 #, no-wrap
15779 msgid ""
15780 " int\n"
15781 " guestfs_part_del (guestfs_h *g,\n"
15782 "                   const char *device,\n"
15783 "                   int partnum);\n"
15784 "\n"
15785 msgstr ""
15786
15787 # type: textblock
15788 #. type: textblock
15789 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3309
15790 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15791 msgstr ""
15792
15793 # type: textblock
15794 #. type: textblock
15795 #: ../src/guestfs-actions.pod:4930 ../fish/guestfish-actions.pod:3311
15796 msgid ""
15797 "Note that in the case of MBR partitioning, deleting an extended partition "
15798 "also deletes any logical partitions it contains."
15799 msgstr ""
15800
15801 # type: =head2
15802 #. type: =head2
15803 #: ../src/guestfs-actions.pod:4938
15804 msgid "guestfs_part_disk"
15805 msgstr ""
15806
15807 # type: verbatim
15808 #. type: verbatim
15809 #: ../src/guestfs-actions.pod:4940
15810 #, no-wrap
15811 msgid ""
15812 " int\n"
15813 " guestfs_part_disk (guestfs_h *g,\n"
15814 "                    const char *device,\n"
15815 "                    const char *parttype);\n"
15816 "\n"
15817 msgstr ""
15818
15819 # type: textblock
15820 #. type: textblock
15821 #: ../src/guestfs-actions.pod:4945
15822 msgid ""
15823 "This command is simply a combination of C<guestfs_part_init> followed by "
15824 "C<guestfs_part_add> to create a single primary partition covering the whole "
15825 "disk."
15826 msgstr ""
15827
15828 # type: textblock
15829 #. type: textblock
15830 #: ../src/guestfs-actions.pod:4949
15831 msgid ""
15832 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15833 "possible values are described in C<guestfs_part_init>."
15834 msgstr ""
15835
15836 # type: =head2
15837 #. type: =head2
15838 #: ../src/guestfs-actions.pod:4959
15839 msgid "guestfs_part_get_bootable"
15840 msgstr ""
15841
15842 # type: verbatim
15843 #. type: verbatim
15844 #: ../src/guestfs-actions.pod:4961
15845 #, no-wrap
15846 msgid ""
15847 " int\n"
15848 " guestfs_part_get_bootable (guestfs_h *g,\n"
15849 "                            const char *device,\n"
15850 "                            int partnum);\n"
15851 "\n"
15852 msgstr ""
15853
15854 # type: textblock
15855 #. type: textblock
15856 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3333
15857 msgid ""
15858 "This command returns true if the partition C<partnum> on C<device> has the "
15859 "bootable flag set."
15860 msgstr ""
15861
15862 # type: textblock
15863 #. type: textblock
15864 #: ../src/guestfs-actions.pod:4969
15865 msgid "See also C<guestfs_part_set_bootable>."
15866 msgstr ""
15867
15868 # type: =head2
15869 #. type: =head2
15870 #: ../src/guestfs-actions.pod:4975
15871 msgid "guestfs_part_get_mbr_id"
15872 msgstr ""
15873
15874 # type: verbatim
15875 #. type: verbatim
15876 #: ../src/guestfs-actions.pod:4977
15877 #, no-wrap
15878 msgid ""
15879 " int\n"
15880 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15881 "                          const char *device,\n"
15882 "                          int partnum);\n"
15883 "\n"
15884 msgstr ""
15885
15886 # type: textblock
15887 #. type: textblock
15888 #: ../src/guestfs-actions.pod:4982 ../fish/guestfish-actions.pod:3342
15889 msgid ""
15890 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15891 "partition C<partnum>."
15892 msgstr ""
15893
15894 # type: textblock
15895 #. type: textblock
15896 #: ../src/guestfs-actions.pod:4985 ../src/guestfs-actions.pod:5161
15897 msgid ""
15898 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15899 "undefined results for other partition table types (see "
15900 "C<guestfs_part_get_parttype>)."
15901 msgstr ""
15902
15903 # type: =head2
15904 #. type: =head2
15905 #: ../src/guestfs-actions.pod:4993
15906 msgid "guestfs_part_get_parttype"
15907 msgstr ""
15908
15909 # type: verbatim
15910 #. type: verbatim
15911 #: ../src/guestfs-actions.pod:4995
15912 #, no-wrap
15913 msgid ""
15914 " char *\n"
15915 " guestfs_part_get_parttype (guestfs_h *g,\n"
15916 "                            const char *device);\n"
15917 "\n"
15918 msgstr ""
15919
15920 # type: textblock
15921 #. type: textblock
15922 #: ../src/guestfs-actions.pod:4999 ../fish/guestfish-actions.pod:3353
15923 msgid ""
15924 "This command examines the partition table on C<device> and returns the "
15925 "partition table type (format) being used."
15926 msgstr ""
15927
15928 # type: textblock
15929 #. type: textblock
15930 #: ../src/guestfs-actions.pod:5002
15931 msgid ""
15932 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15933 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15934 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15935 msgstr ""
15936
15937 # type: =head2
15938 #. type: =head2
15939 #: ../src/guestfs-actions.pod:5012
15940 msgid "guestfs_part_init"
15941 msgstr ""
15942
15943 # type: verbatim
15944 #. type: verbatim
15945 #: ../src/guestfs-actions.pod:5014
15946 #, no-wrap
15947 msgid ""
15948 " int\n"
15949 " guestfs_part_init (guestfs_h *g,\n"
15950 "                    const char *device,\n"
15951 "                    const char *parttype);\n"
15952 "\n"
15953 msgstr ""
15954
15955 # type: textblock
15956 #. type: textblock
15957 #: ../src/guestfs-actions.pod:5019 ../fish/guestfish-actions.pod:3365
15958 msgid ""
15959 "This creates an empty partition table on C<device> of one of the partition "
15960 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15961 "(for large disks)."
15962 msgstr ""
15963
15964 # type: textblock
15965 #. type: textblock
15966 #: ../src/guestfs-actions.pod:5023
15967 msgid ""
15968 "Initially there are no partitions.  Following this, you should call "
15969 "C<guestfs_part_add> for each partition required."
15970 msgstr ""
15971
15972 # type: textblock
15973 #. type: textblock
15974 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3372
15975 msgid "Possible values for C<parttype> are:"
15976 msgstr ""
15977
15978 # type: =item
15979 #. type: =item
15980 #: ../src/guestfs-actions.pod:5030 ../fish/guestfish-actions.pod:3376
15981 msgid "B<efi> | B<gpt>"
15982 msgstr ""
15983
15984 # type: textblock
15985 #. type: textblock
15986 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3378
15987 msgid "Intel EFI / GPT partition table."
15988 msgstr ""
15989
15990 # type: textblock
15991 #. type: textblock
15992 #: ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3380
15993 msgid ""
15994 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15995 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15996 "the C<mbr> format."
15997 msgstr ""
15998
15999 # type: =item
16000 #. type: =item
16001 #: ../src/guestfs-actions.pod:5038 ../fish/guestfish-actions.pod:3384
16002 msgid "B<mbr> | B<msdos>"
16003 msgstr ""
16004
16005 # type: textblock
16006 #. type: textblock
16007 #: ../src/guestfs-actions.pod:5040 ../fish/guestfish-actions.pod:3386
16008 msgid ""
16009 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
16010 "Windows.  This partition type will B<only> work for device sizes up to 2 "
16011 "TB.  For large disks we recommend using C<gpt>."
16012 msgstr ""
16013
16014 # type: textblock
16015 #. type: textblock
16016 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3393
16017 msgid ""
16018 "Other partition table types that may work but are not supported include:"
16019 msgstr ""
16020
16021 # type: =item
16022 #. type: =item
16023 #: ../src/guestfs-actions.pod:5052 ../fish/guestfish-actions.pod:3398
16024 msgid "B<aix>"
16025 msgstr ""
16026
16027 # type: textblock
16028 #. type: textblock
16029 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3400
16030 msgid "AIX disk labels."
16031 msgstr ""
16032
16033 # type: =item
16034 #. type: =item
16035 #: ../src/guestfs-actions.pod:5056 ../fish/guestfish-actions.pod:3402
16036 msgid "B<amiga> | B<rdb>"
16037 msgstr ""
16038
16039 # type: textblock
16040 #. type: textblock
16041 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3404
16042 msgid "Amiga \"Rigid Disk Block\" format."
16043 msgstr ""
16044
16045 # type: =item
16046 #. type: =item
16047 #: ../src/guestfs-actions.pod:5060 ../fish/guestfish-actions.pod:3406
16048 msgid "B<bsd>"
16049 msgstr ""
16050
16051 # type: textblock
16052 #. type: textblock
16053 #: ../src/guestfs-actions.pod:5062 ../fish/guestfish-actions.pod:3408
16054 msgid "BSD disk labels."
16055 msgstr ""
16056
16057 # type: =item
16058 #. type: =item
16059 #: ../src/guestfs-actions.pod:5064 ../fish/guestfish-actions.pod:3410
16060 msgid "B<dasd>"
16061 msgstr ""
16062
16063 # type: textblock
16064 #. type: textblock
16065 #: ../src/guestfs-actions.pod:5066 ../fish/guestfish-actions.pod:3412
16066 msgid "DASD, used on IBM mainframes."
16067 msgstr ""
16068
16069 # type: =item
16070 #. type: =item
16071 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3414
16072 msgid "B<dvh>"
16073 msgstr ""
16074
16075 # type: textblock
16076 #. type: textblock
16077 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3416
16078 msgid "MIPS/SGI volumes."
16079 msgstr ""
16080
16081 # type: =item
16082 #. type: =item
16083 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3418
16084 msgid "B<mac>"
16085 msgstr ""
16086
16087 # type: textblock
16088 #. type: textblock
16089 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3420
16090 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
16091 msgstr ""
16092
16093 # type: =item
16094 #. type: =item
16095 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3422
16096 msgid "B<pc98>"
16097 msgstr ""
16098
16099 # type: textblock
16100 #. type: textblock
16101 #: ../src/guestfs-actions.pod:5078 ../fish/guestfish-actions.pod:3424
16102 msgid "NEC PC-98 format, common in Japan apparently."
16103 msgstr ""
16104
16105 # type: =item
16106 #. type: =item
16107 #: ../src/guestfs-actions.pod:5080 ../fish/guestfish-actions.pod:3426
16108 msgid "B<sun>"
16109 msgstr ""
16110
16111 # type: textblock
16112 #. type: textblock
16113 #: ../src/guestfs-actions.pod:5082 ../fish/guestfish-actions.pod:3428
16114 msgid "Sun disk labels."
16115 msgstr ""
16116
16117 # type: =head2
16118 #. type: =head2
16119 #: ../src/guestfs-actions.pod:5090
16120 msgid "guestfs_part_list"
16121 msgstr ""
16122
16123 # type: verbatim
16124 #. type: verbatim
16125 #: ../src/guestfs-actions.pod:5092
16126 #, no-wrap
16127 msgid ""
16128 " struct guestfs_partition_list *\n"
16129 " guestfs_part_list (guestfs_h *g,\n"
16130 "                    const char *device);\n"
16131 "\n"
16132 msgstr ""
16133
16134 # type: textblock
16135 #. type: textblock
16136 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3436
16137 msgid ""
16138 "This command parses the partition table on C<device> and returns the list of "
16139 "partitions found."
16140 msgstr ""
16141
16142 # type: textblock
16143 #. type: textblock
16144 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3439
16145 msgid "The fields in the returned structure are:"
16146 msgstr ""
16147
16148 # type: =item
16149 #. type: =item
16150 #: ../src/guestfs-actions.pod:5103 ../fish/guestfish-actions.pod:3443
16151 msgid "B<part_num>"
16152 msgstr ""
16153
16154 # type: textblock
16155 #. type: textblock
16156 #: ../src/guestfs-actions.pod:5105 ../fish/guestfish-actions.pod:3445
16157 msgid "Partition number, counting from 1."
16158 msgstr ""
16159
16160 # type: =item
16161 #. type: =item
16162 #: ../src/guestfs-actions.pod:5107 ../fish/guestfish-actions.pod:3447
16163 msgid "B<part_start>"
16164 msgstr ""
16165
16166 # type: textblock
16167 #. type: textblock
16168 #: ../src/guestfs-actions.pod:5109
16169 msgid ""
16170 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16171 "the device's sector size, see C<guestfs_blockdev_getss>."
16172 msgstr ""
16173
16174 # type: =item
16175 #. type: =item
16176 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3452
16177 msgid "B<part_end>"
16178 msgstr ""
16179
16180 # type: textblock
16181 #. type: textblock
16182 #: ../src/guestfs-actions.pod:5114 ../fish/guestfish-actions.pod:3454
16183 msgid "End of the partition in bytes."
16184 msgstr ""
16185
16186 # type: =item
16187 #. type: =item
16188 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3456
16189 msgid "B<part_size>"
16190 msgstr ""
16191
16192 # type: textblock
16193 #. type: textblock
16194 #: ../src/guestfs-actions.pod:5118 ../fish/guestfish-actions.pod:3458
16195 msgid "Size of the partition in bytes."
16196 msgstr ""
16197
16198 # type: textblock
16199 #. type: textblock
16200 #: ../src/guestfs-actions.pod:5122
16201 msgid ""
16202 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16203 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16204 "use>."
16205 msgstr ""
16206
16207 # type: =head2
16208 #. type: =head2
16209 #: ../src/guestfs-actions.pod:5128
16210 msgid "guestfs_part_set_bootable"
16211 msgstr ""
16212
16213 # type: verbatim
16214 #. type: verbatim
16215 #: ../src/guestfs-actions.pod:5130
16216 #, no-wrap
16217 msgid ""
16218 " int\n"
16219 " guestfs_part_set_bootable (guestfs_h *g,\n"
16220 "                            const char *device,\n"
16221 "                            int partnum,\n"
16222 "                            int bootable);\n"
16223 "\n"
16224 msgstr ""
16225
16226 # type: textblock
16227 #. type: textblock
16228 #: ../src/guestfs-actions.pod:5136 ../fish/guestfish-actions.pod:3466
16229 msgid ""
16230 "This sets the bootable flag on partition numbered C<partnum> on device "
16231 "C<device>.  Note that partitions are numbered from 1."
16232 msgstr ""
16233
16234 # type: textblock
16235 #. type: textblock
16236 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3469
16237 msgid ""
16238 "The bootable flag is used by some operating systems (notably Windows) to "
16239 "determine which partition to boot from.  It is by no means universally "
16240 "recognized."
16241 msgstr ""
16242
16243 # type: =head2
16244 #. type: =head2
16245 #: ../src/guestfs-actions.pod:5147
16246 msgid "guestfs_part_set_mbr_id"
16247 msgstr ""
16248
16249 # type: verbatim
16250 #. type: verbatim
16251 #: ../src/guestfs-actions.pod:5149
16252 #, no-wrap
16253 msgid ""
16254 " int\n"
16255 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16256 "                          const char *device,\n"
16257 "                          int partnum,\n"
16258 "                          int idbyte);\n"
16259 "\n"
16260 msgstr ""
16261
16262 # type: textblock
16263 #. type: textblock
16264 #: ../src/guestfs-actions.pod:5155 ../fish/guestfish-actions.pod:3477
16265 msgid ""
16266 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16267 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16268 "documentation are in fact hexadecimal numbers, but usually documented "
16269 "without any leading \"0x\" which might be confusing."
16270 msgstr ""
16271
16272 # type: =head2
16273 #. type: =head2
16274 #: ../src/guestfs-actions.pod:5169
16275 msgid "guestfs_part_set_name"
16276 msgstr ""
16277
16278 # type: verbatim
16279 #. type: verbatim
16280 #: ../src/guestfs-actions.pod:5171
16281 #, no-wrap
16282 msgid ""
16283 " int\n"
16284 " guestfs_part_set_name (guestfs_h *g,\n"
16285 "                        const char *device,\n"
16286 "                        int partnum,\n"
16287 "                        const char *name);\n"
16288 "\n"
16289 msgstr ""
16290
16291 # type: textblock
16292 #. type: textblock
16293 #: ../src/guestfs-actions.pod:5177 ../fish/guestfish-actions.pod:3491
16294 msgid ""
16295 "This sets the partition name on partition numbered C<partnum> on device "
16296 "C<device>.  Note that partitions are numbered from 1."
16297 msgstr ""
16298
16299 # type: textblock
16300 #. type: textblock
16301 #: ../src/guestfs-actions.pod:5180 ../fish/guestfish-actions.pod:3494
16302 msgid ""
16303 "The partition name can only be set on certain types of partition table.  "
16304 "This works on C<gpt> but not on C<mbr> partitions."
16305 msgstr ""
16306
16307 # type: =head2
16308 #. type: =head2
16309 #: ../src/guestfs-actions.pod:5187
16310 msgid "guestfs_part_to_dev"
16311 msgstr ""
16312
16313 # type: verbatim
16314 #. type: verbatim
16315 #: ../src/guestfs-actions.pod:5189
16316 #, no-wrap
16317 msgid ""
16318 " char *\n"
16319 " guestfs_part_to_dev (guestfs_h *g,\n"
16320 "                      const char *partition);\n"
16321 "\n"
16322 msgstr ""
16323
16324 # type: textblock
16325 #. type: textblock
16326 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3501
16327 msgid ""
16328 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16329 "partition number, returning the device name (eg. \"/dev/sdb\")."
16330 msgstr ""
16331
16332 # type: textblock
16333 #. type: textblock
16334 #: ../src/guestfs-actions.pod:5197
16335 msgid ""
16336 "The named partition must exist, for example as a string returned from "
16337 "C<guestfs_list_partitions>."
16338 msgstr ""
16339
16340 # type: =head2
16341 #. type: =head2
16342 #: ../src/guestfs-actions.pod:5205
16343 msgid "guestfs_ping_daemon"
16344 msgstr ""
16345
16346 # type: verbatim
16347 #. type: verbatim
16348 #: ../src/guestfs-actions.pod:5207
16349 #, no-wrap
16350 msgid ""
16351 " int\n"
16352 " guestfs_ping_daemon (guestfs_h *g);\n"
16353 "\n"
16354 msgstr ""
16355
16356 # type: textblock
16357 #. type: textblock
16358 #: ../src/guestfs-actions.pod:5210 ../fish/guestfish-actions.pod:3512
16359 msgid ""
16360 "This is a test probe into the guestfs daemon running inside the qemu "
16361 "subprocess.  Calling this function checks that the daemon responds to the "
16362 "ping message, without affecting the daemon or attached block device(s) in "
16363 "any other way."
16364 msgstr ""
16365
16366 # type: =head2
16367 #. type: =head2
16368 #: ../src/guestfs-actions.pod:5219
16369 msgid "guestfs_pread"
16370 msgstr ""
16371
16372 # type: verbatim
16373 #. type: verbatim
16374 #: ../src/guestfs-actions.pod:5221
16375 #, no-wrap
16376 msgid ""
16377 " char *\n"
16378 " guestfs_pread (guestfs_h *g,\n"
16379 "                const char *path,\n"
16380 "                int count,\n"
16381 "                int64_t offset,\n"
16382 "                size_t *size_r);\n"
16383 "\n"
16384 msgstr ""
16385
16386 # type: textblock
16387 #. type: textblock
16388 #: ../src/guestfs-actions.pod:5228 ../fish/guestfish-actions.pod:3521
16389 msgid ""
16390 "This command lets you read part of a file.  It reads C<count> bytes of the "
16391 "file, starting at C<offset>, from file C<path>."
16392 msgstr ""
16393
16394 # type: textblock
16395 #. type: textblock
16396 #: ../src/guestfs-actions.pod:5231 ../src/guestfs-actions.pod:5257
16397 #: ../fish/guestfish-actions.pod:3524 ../fish/guestfish-actions.pod:3539
16398 msgid ""
16399 "This may read fewer bytes than requested.  For further details see the "
16400 "L<pread(2)> system call."
16401 msgstr ""
16402
16403 # type: textblock
16404 #. type: textblock
16405 #: ../src/guestfs-actions.pod:5234
16406 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16407 msgstr ""
16408
16409 # type: =head2
16410 #. type: =head2
16411 #: ../src/guestfs-actions.pod:5245
16412 msgid "guestfs_pread_device"
16413 msgstr ""
16414
16415 # type: verbatim
16416 #. type: verbatim
16417 #: ../src/guestfs-actions.pod:5247
16418 #, no-wrap
16419 msgid ""
16420 " char *\n"
16421 " guestfs_pread_device (guestfs_h *g,\n"
16422 "                       const char *device,\n"
16423 "                       int count,\n"
16424 "                       int64_t offset,\n"
16425 "                       size_t *size_r);\n"
16426 "\n"
16427 msgstr ""
16428
16429 # type: textblock
16430 #. type: textblock
16431 #: ../src/guestfs-actions.pod:5254 ../fish/guestfish-actions.pod:3536
16432 msgid ""
16433 "This command lets you read part of a file.  It reads C<count> bytes of "
16434 "C<device>, starting at C<offset>."
16435 msgstr ""
16436
16437 # type: textblock
16438 #. type: textblock
16439 #: ../src/guestfs-actions.pod:5260
16440 msgid "See also C<guestfs_pread>."
16441 msgstr ""
16442
16443 # type: textblock
16444 #. type: textblock
16445 #: ../src/guestfs-actions.pod:5269
16446 msgid "(Added in 1.5.21)"
16447 msgstr ""
16448
16449 # type: =head2
16450 #. type: =head2
16451 #: ../src/guestfs-actions.pod:5271
16452 msgid "guestfs_pvcreate"
16453 msgstr ""
16454
16455 # type: verbatim
16456 #. type: verbatim
16457 #: ../src/guestfs-actions.pod:5273
16458 #, no-wrap
16459 msgid ""
16460 " int\n"
16461 " guestfs_pvcreate (guestfs_h *g,\n"
16462 "                   const char *device);\n"
16463 "\n"
16464 msgstr ""
16465
16466 # type: textblock
16467 #. type: textblock
16468 #: ../src/guestfs-actions.pod:5277 ../fish/guestfish-actions.pod:3551
16469 msgid ""
16470 "This creates an LVM physical volume on the named C<device>, where C<device> "
16471 "should usually be a partition name such as C</dev/sda1>."
16472 msgstr ""
16473
16474 # type: =head2
16475 #. type: =head2
16476 #: ../src/guestfs-actions.pod:5285
16477 msgid "guestfs_pvremove"
16478 msgstr ""
16479
16480 # type: verbatim
16481 #. type: verbatim
16482 #: ../src/guestfs-actions.pod:5287
16483 #, no-wrap
16484 msgid ""
16485 " int\n"
16486 " guestfs_pvremove (guestfs_h *g,\n"
16487 "                   const char *device);\n"
16488 "\n"
16489 msgstr ""
16490
16491 # type: textblock
16492 #. type: textblock
16493 #: ../src/guestfs-actions.pod:5291 ../fish/guestfish-actions.pod:3559
16494 msgid ""
16495 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16496 "it."
16497 msgstr ""
16498
16499 # type: textblock
16500 #. type: textblock
16501 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3562
16502 msgid ""
16503 "The implementation uses the C<pvremove> command which refuses to wipe "
16504 "physical volumes that contain any volume groups, so you have to remove those "
16505 "first."
16506 msgstr ""
16507
16508 # type: =head2
16509 #. type: =head2
16510 #: ../src/guestfs-actions.pod:5302
16511 msgid "guestfs_pvresize"
16512 msgstr ""
16513
16514 # type: verbatim
16515 #. type: verbatim
16516 #: ../src/guestfs-actions.pod:5304
16517 #, no-wrap
16518 msgid ""
16519 " int\n"
16520 " guestfs_pvresize (guestfs_h *g,\n"
16521 "                   const char *device);\n"
16522 "\n"
16523 msgstr ""
16524
16525 # type: textblock
16526 #. type: textblock
16527 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3570
16528 msgid ""
16529 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16530 "the new size of the underlying device."
16531 msgstr ""
16532
16533 # type: =head2
16534 #. type: =head2
16535 #: ../src/guestfs-actions.pod:5315
16536 msgid "guestfs_pvresize_size"
16537 msgstr ""
16538
16539 # type: verbatim
16540 #. type: verbatim
16541 #: ../src/guestfs-actions.pod:5317
16542 #, no-wrap
16543 msgid ""
16544 " int\n"
16545 " guestfs_pvresize_size (guestfs_h *g,\n"
16546 "                        const char *device,\n"
16547 "                        int64_t size);\n"
16548 "\n"
16549 msgstr ""
16550
16551 # type: textblock
16552 #. type: textblock
16553 #: ../src/guestfs-actions.pod:5322
16554 msgid ""
16555 "This command is the same as C<guestfs_pvresize> except that it allows you to "
16556 "specify the new size (in bytes) explicitly."
16557 msgstr ""
16558
16559 # type: =head2
16560 #. type: =head2
16561 #: ../src/guestfs-actions.pod:5329
16562 msgid "guestfs_pvs"
16563 msgstr ""
16564
16565 # type: verbatim
16566 #. type: verbatim
16567 #: ../src/guestfs-actions.pod:5331
16568 #, no-wrap
16569 msgid ""
16570 " char **\n"
16571 " guestfs_pvs (guestfs_h *g);\n"
16572 "\n"
16573 msgstr ""
16574
16575 # type: textblock
16576 #. type: textblock
16577 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3584
16578 msgid ""
16579 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16580 "(8)> command."
16581 msgstr ""
16582
16583 # type: textblock
16584 #. type: textblock
16585 #: ../src/guestfs-actions.pod:5337 ../fish/guestfish-actions.pod:3587
16586 msgid ""
16587 "This returns a list of just the device names that contain PVs (eg. C</dev/"
16588 "sda2>)."
16589 msgstr ""
16590
16591 # type: textblock
16592 #. type: textblock
16593 #: ../src/guestfs-actions.pod:5340
16594 msgid "See also C<guestfs_pvs_full>."
16595 msgstr ""
16596
16597 # type: =head2
16598 #. type: =head2
16599 #: ../src/guestfs-actions.pod:5348
16600 msgid "guestfs_pvs_full"
16601 msgstr ""
16602
16603 # type: verbatim
16604 #. type: verbatim
16605 #: ../src/guestfs-actions.pod:5350
16606 #, no-wrap
16607 msgid ""
16608 " struct guestfs_lvm_pv_list *\n"
16609 " guestfs_pvs_full (guestfs_h *g);\n"
16610 "\n"
16611 msgstr ""
16612
16613 # type: textblock
16614 #. type: textblock
16615 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:3596
16616 msgid ""
16617 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16618 "(8)> command.  The \"full\" version includes all fields."
16619 msgstr ""
16620
16621 # type: textblock
16622 #. type: textblock
16623 #: ../src/guestfs-actions.pod:5356
16624 msgid ""
16625 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
16626 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
16627 msgstr ""
16628
16629 # type: =head2
16630 #. type: =head2
16631 #: ../src/guestfs-actions.pod:5362
16632 msgid "guestfs_pvuuid"
16633 msgstr ""
16634
16635 # type: verbatim
16636 #. type: verbatim
16637 #: ../src/guestfs-actions.pod:5364
16638 #, no-wrap
16639 msgid ""
16640 " char *\n"
16641 " guestfs_pvuuid (guestfs_h *g,\n"
16642 "                 const char *device);\n"
16643 "\n"
16644 msgstr ""
16645
16646 # type: textblock
16647 #. type: textblock
16648 #: ../src/guestfs-actions.pod:5368 ../fish/guestfish-actions.pod:3603
16649 msgid "This command returns the UUID of the LVM PV C<device>."
16650 msgstr ""
16651
16652 # type: =head2
16653 #. type: =head2
16654 #: ../src/guestfs-actions.pod:5375
16655 msgid "guestfs_pwrite"
16656 msgstr ""
16657
16658 # type: verbatim
16659 #. type: verbatim
16660 #: ../src/guestfs-actions.pod:5377
16661 #, no-wrap
16662 msgid ""
16663 " int\n"
16664 " guestfs_pwrite (guestfs_h *g,\n"
16665 "                 const char *path,\n"
16666 "                 const char *content,\n"
16667 "                 size_t content_size,\n"
16668 "                 int64_t offset);\n"
16669 "\n"
16670 msgstr ""
16671
16672 # type: textblock
16673 #. type: textblock
16674 #: ../src/guestfs-actions.pod:5384 ../fish/guestfish-actions.pod:3609
16675 msgid ""
16676 "This command writes to part of a file.  It writes the data buffer C<content> "
16677 "to the file C<path> starting at offset C<offset>."
16678 msgstr ""
16679
16680 # type: textblock
16681 #. type: textblock
16682 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:3612
16683 msgid ""
16684 "This command implements the L<pwrite(2)> system call, and like that system "
16685 "call it may not write the full data requested.  The return value is the "
16686 "number of bytes that were actually written to the file.  This could even be "
16687 "0, although short writes are unlikely for regular files in ordinary "
16688 "circumstances."
16689 msgstr ""
16690
16691 # type: textblock
16692 #. type: textblock
16693 #: ../src/guestfs-actions.pod:5393
16694 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16695 msgstr ""
16696
16697 # type: =head2
16698 #. type: =head2
16699 #: ../src/guestfs-actions.pod:5402
16700 msgid "guestfs_pwrite_device"
16701 msgstr ""
16702
16703 # type: verbatim
16704 #. type: verbatim
16705 #: ../src/guestfs-actions.pod:5404
16706 #, no-wrap
16707 msgid ""
16708 " int\n"
16709 " guestfs_pwrite_device (guestfs_h *g,\n"
16710 "                        const char *device,\n"
16711 "                        const char *content,\n"
16712 "                        size_t content_size,\n"
16713 "                        int64_t offset);\n"
16714 "\n"
16715 msgstr ""
16716
16717 # type: textblock
16718 #. type: textblock
16719 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:3627
16720 msgid ""
16721 "This command writes to part of a device.  It writes the data buffer "
16722 "C<content> to C<device> starting at offset C<offset>."
16723 msgstr ""
16724
16725 # type: textblock
16726 #. type: textblock
16727 #: ../src/guestfs-actions.pod:5414 ../fish/guestfish-actions.pod:3630
16728 msgid ""
16729 "This command implements the L<pwrite(2)> system call, and like that system "
16730 "call it may not write the full data requested (although short writes to disk "
16731 "devices and partitions are probably impossible with standard Linux kernels)."
16732 msgstr ""
16733
16734 # type: textblock
16735 #. type: textblock
16736 #: ../src/guestfs-actions.pod:5419
16737 msgid "See also C<guestfs_pwrite>."
16738 msgstr ""
16739
16740 # type: textblock
16741 #. type: textblock
16742 #: ../src/guestfs-actions.pod:5426
16743 msgid "(Added in 1.5.20)"
16744 msgstr ""
16745
16746 # type: =head2
16747 #. type: =head2
16748 #: ../src/guestfs-actions.pod:5428
16749 msgid "guestfs_read_file"
16750 msgstr ""
16751
16752 # type: verbatim
16753 #. type: verbatim
16754 #: ../src/guestfs-actions.pod:5430
16755 #, no-wrap
16756 msgid ""
16757 " char *\n"
16758 " guestfs_read_file (guestfs_h *g,\n"
16759 "                    const char *path,\n"
16760 "                    size_t *size_r);\n"
16761 "\n"
16762 msgstr ""
16763
16764 # type: textblock
16765 #. type: textblock
16766 #: ../src/guestfs-actions.pod:5435 ../fish/guestfish-actions.pod:3644
16767 msgid "This calls returns the contents of the file C<path> as a buffer."
16768 msgstr ""
16769
16770 # type: textblock
16771 #. type: textblock
16772 #: ../src/guestfs-actions.pod:5438
16773 msgid ""
16774 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16775 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16776 "function is limited in the total size of file that can be handled."
16777 msgstr ""
16778
16779 # type: textblock
16780 #. type: textblock
16781 #: ../src/guestfs-actions.pod:5450
16782 msgid "(Added in 1.0.63)"
16783 msgstr ""
16784
16785 # type: =head2
16786 #. type: =head2
16787 #: ../src/guestfs-actions.pod:5452
16788 msgid "guestfs_read_lines"
16789 msgstr ""
16790
16791 # type: verbatim
16792 #. type: verbatim
16793 #: ../src/guestfs-actions.pod:5454
16794 #, no-wrap
16795 msgid ""
16796 " char **\n"
16797 " guestfs_read_lines (guestfs_h *g,\n"
16798 "                     const char *path);\n"
16799 "\n"
16800 msgstr ""
16801
16802 # type: textblock
16803 #. type: textblock
16804 #: ../src/guestfs-actions.pod:5460 ../fish/guestfish-actions.pod:3661
16805 msgid ""
16806 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16807 "C<CRLF> character sequences are I<not> returned."
16808 msgstr ""
16809
16810 # type: textblock
16811 #. type: textblock
16812 #: ../src/guestfs-actions.pod:5463
16813 msgid ""
16814 "Note that this function cannot correctly handle binary files (specifically, "
16815 "files containing C<\\0> character which is treated as end of line).  For "
16816 "those you need to use the C<guestfs_read_file> function which has a more "
16817 "complex interface."
16818 msgstr ""
16819
16820 # type: =head2
16821 #. type: =head2
16822 #: ../src/guestfs-actions.pod:5474
16823 msgid "guestfs_readdir"
16824 msgstr ""
16825
16826 # type: verbatim
16827 #. type: verbatim
16828 #: ../src/guestfs-actions.pod:5476
16829 #, no-wrap
16830 msgid ""
16831 " struct guestfs_dirent_list *\n"
16832 " guestfs_readdir (guestfs_h *g,\n"
16833 "                  const char *dir);\n"
16834 "\n"
16835 msgstr ""
16836
16837 # type: textblock
16838 #. type: textblock
16839 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3673
16840 msgid "This returns the list of directory entries in directory C<dir>."
16841 msgstr ""
16842
16843 # type: textblock
16844 #. type: textblock
16845 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3675
16846 msgid ""
16847 "All entries in the directory are returned, including C<.> and C<..>.  The "
16848 "entries are I<not> sorted, but returned in the same order as the underlying "
16849 "filesystem."
16850 msgstr ""
16851
16852 # type: textblock
16853 #. type: textblock
16854 #: ../src/guestfs-actions.pod:5486 ../fish/guestfish-actions.pod:3679
16855 msgid ""
16856 "Also this call returns basic file type information about each file.  The "
16857 "C<ftyp> field will contain one of the following characters:"
16858 msgstr ""
16859
16860 # type: =item
16861 #. type: =item
16862 #: ../src/guestfs-actions.pod:5491 ../fish/guestfish-actions.pod:3684
16863 msgid "'b'"
16864 msgstr ""
16865
16866 # type: textblock
16867 #. type: textblock
16868 #: ../src/guestfs-actions.pod:5493 ../fish/guestfish-actions.pod:3686
16869 msgid "Block special"
16870 msgstr ""
16871
16872 # type: =item
16873 #. type: =item
16874 #: ../src/guestfs-actions.pod:5495 ../fish/guestfish-actions.pod:3688
16875 msgid "'c'"
16876 msgstr ""
16877
16878 # type: textblock
16879 #. type: textblock
16880 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3690
16881 msgid "Char special"
16882 msgstr ""
16883
16884 # type: =item
16885 #. type: =item
16886 #: ../src/guestfs-actions.pod:5499 ../fish/guestfish-actions.pod:3692
16887 msgid "'d'"
16888 msgstr ""
16889
16890 # type: textblock
16891 #. type: textblock
16892 #: ../src/guestfs-actions.pod:5501 ../fish/guestfish-actions.pod:3694
16893 msgid "Directory"
16894 msgstr ""
16895
16896 # type: =item
16897 #. type: =item
16898 #: ../src/guestfs-actions.pod:5503 ../fish/guestfish-actions.pod:3696
16899 msgid "'f'"
16900 msgstr ""
16901
16902 # type: textblock
16903 #. type: textblock
16904 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3698
16905 msgid "FIFO (named pipe)"
16906 msgstr ""
16907
16908 # type: =item
16909 #. type: =item
16910 #: ../src/guestfs-actions.pod:5507 ../fish/guestfish-actions.pod:3700
16911 msgid "'l'"
16912 msgstr ""
16913
16914 # type: textblock
16915 #. type: textblock
16916 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3702
16917 msgid "Symbolic link"
16918 msgstr ""
16919
16920 # type: =item
16921 #. type: =item
16922 #: ../src/guestfs-actions.pod:5511 ../fish/guestfish-actions.pod:3704
16923 msgid "'r'"
16924 msgstr ""
16925
16926 # type: textblock
16927 #. type: textblock
16928 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3706
16929 msgid "Regular file"
16930 msgstr ""
16931
16932 # type: =item
16933 #. type: =item
16934 #: ../src/guestfs-actions.pod:5515 ../fish/guestfish-actions.pod:3708
16935 msgid "'s'"
16936 msgstr ""
16937
16938 # type: textblock
16939 #. type: textblock
16940 #: ../src/guestfs-actions.pod:5517 ../fish/guestfish-actions.pod:3710
16941 msgid "Socket"
16942 msgstr ""
16943
16944 # type: =item
16945 #. type: =item
16946 #: ../src/guestfs-actions.pod:5519 ../fish/guestfish-actions.pod:3712
16947 msgid "'u'"
16948 msgstr ""
16949
16950 # type: textblock
16951 #. type: textblock
16952 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3714
16953 msgid "Unknown file type"
16954 msgstr ""
16955
16956 # type: =item
16957 #. type: =item
16958 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3716
16959 msgid "'?'"
16960 msgstr ""
16961
16962 # type: textblock
16963 #. type: textblock
16964 #: ../src/guestfs-actions.pod:5525 ../fish/guestfish-actions.pod:3718
16965 msgid ""
16966 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16967 msgstr ""
16968
16969 # type: textblock
16970 #. type: textblock
16971 #: ../src/guestfs-actions.pod:5530
16972 msgid ""
16973 "This function is primarily intended for use by programs.  To get a simple "
16974 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16975 "consumption, use C<guestfs_ll>."
16976 msgstr ""
16977
16978 # type: textblock
16979 #. type: textblock
16980 #: ../src/guestfs-actions.pod:5534
16981 msgid ""
16982 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16983 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16984 msgstr ""
16985
16986 # type: =head2
16987 #. type: =head2
16988 #: ../src/guestfs-actions.pod:5540
16989 msgid "guestfs_readlink"
16990 msgstr ""
16991
16992 # type: verbatim
16993 #. type: verbatim
16994 #: ../src/guestfs-actions.pod:5542
16995 #, no-wrap
16996 msgid ""
16997 " char *\n"
16998 " guestfs_readlink (guestfs_h *g,\n"
16999 "                   const char *path);\n"
17000 "\n"
17001 msgstr ""
17002
17003 # type: textblock
17004 #. type: textblock
17005 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3731
17006 msgid "This command reads the target of a symbolic link."
17007 msgstr ""
17008
17009 # type: =head2
17010 #. type: =head2
17011 #: ../src/guestfs-actions.pod:5553
17012 msgid "guestfs_readlinklist"
17013 msgstr ""
17014
17015 # type: verbatim
17016 #. type: verbatim
17017 #: ../src/guestfs-actions.pod:5555
17018 #, no-wrap
17019 msgid ""
17020 " char **\n"
17021 " guestfs_readlinklist (guestfs_h *g,\n"
17022 "                       const char *path,\n"
17023 "                       char *const *names);\n"
17024 "\n"
17025 msgstr ""
17026
17027 # type: textblock
17028 #. type: textblock
17029 #: ../src/guestfs-actions.pod:5560 ../fish/guestfish-actions.pod:3737
17030 msgid ""
17031 "This call allows you to do a C<readlink> operation on multiple files, where "
17032 "all files are in the directory C<path>.  C<names> is the list of files from "
17033 "this directory."
17034 msgstr ""
17035
17036 # type: textblock
17037 #. type: textblock
17038 #: ../src/guestfs-actions.pod:5564 ../fish/guestfish-actions.pod:3741
17039 msgid ""
17040 "On return you get a list of strings, with a one-to-one correspondence to the "
17041 "C<names> list.  Each string is the value of the symbolic link."
17042 msgstr ""
17043
17044 # type: textblock
17045 #. type: textblock
17046 #: ../src/guestfs-actions.pod:5568 ../fish/guestfish-actions.pod:3745
17047 msgid ""
17048 "If the C<readlink(2)> operation fails on any name, then the corresponding "
17049 "result string is the empty string C<\"\">.  However the whole operation is "
17050 "completed even if there were C<readlink(2)> errors, and so you can call this "
17051 "function with names where you don't know if they are symbolic links already "
17052 "(albeit slightly less efficient)."
17053 msgstr ""
17054
17055 # type: textblock
17056 #. type: textblock
17057 #: ../src/guestfs-actions.pod:5575 ../fish/guestfish-actions.pod:3752
17058 msgid ""
17059 "This call is intended for programs that want to efficiently list a directory "
17060 "contents without making many round-trips.  Very long directory listings "
17061 "might cause the protocol message size to be exceeded, causing this call to "
17062 "fail.  The caller must split up such requests into smaller groups of names."
17063 msgstr ""
17064
17065 # type: =head2
17066 #. type: =head2
17067 #: ../src/guestfs-actions.pod:5588
17068 msgid "guestfs_realpath"
17069 msgstr ""
17070
17071 # type: verbatim
17072 #. type: verbatim
17073 #: ../src/guestfs-actions.pod:5590
17074 #, no-wrap
17075 msgid ""
17076 " char *\n"
17077 " guestfs_realpath (guestfs_h *g,\n"
17078 "                   const char *path);\n"
17079 "\n"
17080 msgstr ""
17081
17082 # type: textblock
17083 #. type: textblock
17084 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3763
17085 msgid ""
17086 "Return the canonicalized absolute pathname of C<path>.  The returned path "
17087 "has no C<.>, C<..> or symbolic link path elements."
17088 msgstr ""
17089
17090 # type: =head2
17091 #. type: =head2
17092 #: ../src/guestfs-actions.pod:5602
17093 msgid "guestfs_removexattr"
17094 msgstr ""
17095
17096 # type: verbatim
17097 #. type: verbatim
17098 #: ../src/guestfs-actions.pod:5604
17099 #, no-wrap
17100 msgid ""
17101 " int\n"
17102 " guestfs_removexattr (guestfs_h *g,\n"
17103 "                      const char *xattr,\n"
17104 "                      const char *path);\n"
17105 "\n"
17106 msgstr ""
17107
17108 # type: textblock
17109 #. type: textblock
17110 #: ../src/guestfs-actions.pod:5609 ../fish/guestfish-actions.pod:3770
17111 msgid ""
17112 "This call removes the extended attribute named C<xattr> of the file C<path>."
17113 msgstr ""
17114
17115 # type: textblock
17116 #. type: textblock
17117 #: ../src/guestfs-actions.pod:5612
17118 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
17119 msgstr ""
17120
17121 # type: =head2
17122 #. type: =head2
17123 #: ../src/guestfs-actions.pod:5618
17124 msgid "guestfs_resize2fs"
17125 msgstr ""
17126
17127 # type: verbatim
17128 #. type: verbatim
17129 #: ../src/guestfs-actions.pod:5620
17130 #, no-wrap
17131 msgid ""
17132 " int\n"
17133 " guestfs_resize2fs (guestfs_h *g,\n"
17134 "                    const char *device);\n"
17135 "\n"
17136 msgstr ""
17137
17138 # type: textblock
17139 #. type: textblock
17140 #: ../src/guestfs-actions.pod:5624 ../fish/guestfish-actions.pod:3779
17141 msgid ""
17142 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17143 "underlying device."
17144 msgstr ""
17145
17146 # type: textblock
17147 #. type: textblock
17148 #: ../src/guestfs-actions.pod:5627
17149 msgid ""
17150 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17151 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17152 "sometimes gives an error about this and sometimes not.  In any case, it is "
17153 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17154 msgstr ""
17155
17156 #. type: =head2
17157 #: ../src/guestfs-actions.pod:5637
17158 msgid "guestfs_resize2fs_M"
17159 msgstr ""
17160
17161 #. type: verbatim
17162 #: ../src/guestfs-actions.pod:5639
17163 #, no-wrap
17164 msgid ""
17165 " int\n"
17166 " guestfs_resize2fs_M (guestfs_h *g,\n"
17167 "                      const char *device);\n"
17168 "\n"
17169 msgstr ""
17170
17171 #. type: textblock
17172 #: ../src/guestfs-actions.pod:5643
17173 msgid ""
17174 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17175 "resized to its minimum size.  This works like the C<-M> option to the "
17176 "C<resize2fs> command."
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../src/guestfs-actions.pod:5647
17181 msgid ""
17182 "To get the resulting size of the filesystem you should call "
17183 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17184 "These two numbers, multiplied together, give the resulting size of the "
17185 "minimal filesystem in bytes."
17186 msgstr ""
17187
17188 # type: =head2
17189 #. type: =head2
17190 #: ../src/guestfs-actions.pod:5654
17191 msgid "guestfs_resize2fs_size"
17192 msgstr ""
17193
17194 # type: verbatim
17195 #. type: verbatim
17196 #: ../src/guestfs-actions.pod:5656
17197 #, no-wrap
17198 msgid ""
17199 " int\n"
17200 " guestfs_resize2fs_size (guestfs_h *g,\n"
17201 "                         const char *device,\n"
17202 "                         int64_t size);\n"
17203 "\n"
17204 msgstr ""
17205
17206 # type: textblock
17207 #. type: textblock
17208 #: ../src/guestfs-actions.pod:5661
17209 msgid ""
17210 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17211 "to specify the new size (in bytes) explicitly."
17212 msgstr ""
17213
17214 # type: =head2
17215 #. type: =head2
17216 #: ../src/guestfs-actions.pod:5668
17217 msgid "guestfs_rm"
17218 msgstr ""
17219
17220 # type: verbatim
17221 #. type: verbatim
17222 #: ../src/guestfs-actions.pod:5670
17223 #, no-wrap
17224 msgid ""
17225 " int\n"
17226 " guestfs_rm (guestfs_h *g,\n"
17227 "             const char *path);\n"
17228 "\n"
17229 msgstr ""
17230
17231 # type: textblock
17232 #. type: textblock
17233 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3812
17234 msgid "Remove the single file C<path>."
17235 msgstr ""
17236
17237 # type: =head2
17238 #. type: =head2
17239 #: ../src/guestfs-actions.pod:5680
17240 msgid "guestfs_rm_rf"
17241 msgstr ""
17242
17243 # type: verbatim
17244 #. type: verbatim
17245 #: ../src/guestfs-actions.pod:5682
17246 #, no-wrap
17247 msgid ""
17248 " int\n"
17249 " guestfs_rm_rf (guestfs_h *g,\n"
17250 "                const char *path);\n"
17251 "\n"
17252 msgstr ""
17253
17254 # type: textblock
17255 #. type: textblock
17256 #: ../src/guestfs-actions.pod:5686 ../fish/guestfish-actions.pod:3818
17257 msgid ""
17258 "Remove the file or directory C<path>, recursively removing the contents if "
17259 "its a directory.  This is like the C<rm -rf> shell command."
17260 msgstr ""
17261
17262 # type: =head2
17263 #. type: =head2
17264 #: ../src/guestfs-actions.pod:5694
17265 msgid "guestfs_rmdir"
17266 msgstr ""
17267
17268 # type: verbatim
17269 #. type: verbatim
17270 #: ../src/guestfs-actions.pod:5696
17271 #, no-wrap
17272 msgid ""
17273 " int\n"
17274 " guestfs_rmdir (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:5700 ../fish/guestfish-actions.pod:3826
17282 msgid "Remove the single directory C<path>."
17283 msgstr ""
17284
17285 # type: =head2
17286 #. type: =head2
17287 #: ../src/guestfs-actions.pod:5706
17288 msgid "guestfs_rmmountpoint"
17289 msgstr ""
17290
17291 # type: verbatim
17292 #. type: verbatim
17293 #: ../src/guestfs-actions.pod:5708
17294 #, no-wrap
17295 msgid ""
17296 " int\n"
17297 " guestfs_rmmountpoint (guestfs_h *g,\n"
17298 "                       const char *exemptpath);\n"
17299 "\n"
17300 msgstr ""
17301
17302 # type: textblock
17303 #. type: textblock
17304 #: ../src/guestfs-actions.pod:5712
17305 msgid ""
17306 "This calls removes a mountpoint that was previously created with "
17307 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17308 msgstr ""
17309
17310 # type: =head2
17311 #. type: =head2
17312 #: ../src/guestfs-actions.pod:5720
17313 msgid "guestfs_scrub_device"
17314 msgstr ""
17315
17316 # type: verbatim
17317 #. type: verbatim
17318 #: ../src/guestfs-actions.pod:5722
17319 #, no-wrap
17320 msgid ""
17321 " int\n"
17322 " guestfs_scrub_device (guestfs_h *g,\n"
17323 "                       const char *device);\n"
17324 "\n"
17325 msgstr ""
17326
17327 # type: textblock
17328 #. type: textblock
17329 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3840
17330 msgid ""
17331 "This command writes patterns over C<device> to make data retrieval more "
17332 "difficult."
17333 msgstr ""
17334
17335 # type: textblock
17336 #. type: textblock
17337 #: ../src/guestfs-actions.pod:5729 ../src/guestfs-actions.pod:5750
17338 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3843
17339 #: ../fish/guestfish-actions.pod:3858 ../fish/guestfish-actions.pod:3871
17340 msgid ""
17341 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17342 "more details."
17343 msgstr ""
17344
17345 # type: textblock
17346 #. type: textblock
17347 #: ../src/guestfs-actions.pod:5737 ../src/guestfs-actions.pod:5755
17348 #: ../src/guestfs-actions.pod:5774
17349 msgid "(Added in 1.0.52)"
17350 msgstr ""
17351
17352 # type: =head2
17353 #. type: =head2
17354 #: ../src/guestfs-actions.pod:5739
17355 msgid "guestfs_scrub_file"
17356 msgstr ""
17357
17358 # type: verbatim
17359 #. type: verbatim
17360 #: ../src/guestfs-actions.pod:5741
17361 #, no-wrap
17362 msgid ""
17363 " int\n"
17364 " guestfs_scrub_file (guestfs_h *g,\n"
17365 "                     const char *file);\n"
17366 "\n"
17367 msgstr ""
17368
17369 # type: textblock
17370 #. type: textblock
17371 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3853
17372 msgid ""
17373 "This command writes patterns over a file to make data retrieval more "
17374 "difficult."
17375 msgstr ""
17376
17377 # type: textblock
17378 #. type: textblock
17379 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3856
17380 msgid "The file is I<removed> after scrubbing."
17381 msgstr ""
17382
17383 # type: =head2
17384 #. type: =head2
17385 #: ../src/guestfs-actions.pod:5757
17386 msgid "guestfs_scrub_freespace"
17387 msgstr ""
17388
17389 # type: verbatim
17390 #. type: verbatim
17391 #: ../src/guestfs-actions.pod:5759
17392 #, no-wrap
17393 msgid ""
17394 " int\n"
17395 " guestfs_scrub_freespace (guestfs_h *g,\n"
17396 "                          const char *dir);\n"
17397 "\n"
17398 msgstr ""
17399
17400 # type: textblock
17401 #. type: textblock
17402 #: ../src/guestfs-actions.pod:5763
17403 msgid ""
17404 "This command creates the directory C<dir> and then fills it with files until "
17405 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17406 "and deletes them.  The intention is to scrub any free space on the partition "
17407 "containing C<dir>."
17408 msgstr ""
17409
17410 # type: =head2
17411 #. type: =head2
17412 #: ../src/guestfs-actions.pod:5776
17413 msgid "guestfs_set_append"
17414 msgstr ""
17415
17416 # type: verbatim
17417 #. type: verbatim
17418 #: ../src/guestfs-actions.pod:5778
17419 #, no-wrap
17420 msgid ""
17421 " int\n"
17422 " guestfs_set_append (guestfs_h *g,\n"
17423 "                     const char *append);\n"
17424 "\n"
17425 msgstr ""
17426
17427 # type: textblock
17428 #. type: textblock
17429 #: ../src/guestfs-actions.pod:5782 ../fish/guestfish-actions.pod:3880
17430 msgid ""
17431 "This function is used to add additional options to the guest kernel command "
17432 "line."
17433 msgstr ""
17434
17435 # type: textblock
17436 #. type: textblock
17437 #: ../src/guestfs-actions.pod:5785 ../fish/guestfish-actions.pod:3883
17438 msgid ""
17439 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17440 "environment variable."
17441 msgstr ""
17442
17443 # type: textblock
17444 #. type: textblock
17445 #: ../src/guestfs-actions.pod:5788 ../fish/guestfish-actions.pod:3886
17446 msgid ""
17447 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17448 "(libguestfs always adds a few of its own)."
17449 msgstr ""
17450
17451 #. type: =head2
17452 #: ../src/guestfs-actions.pod:5795
17453 msgid "guestfs_set_attach_method"
17454 msgstr ""
17455
17456 #. type: verbatim
17457 #: ../src/guestfs-actions.pod:5797
17458 #, no-wrap
17459 msgid ""
17460 " int\n"
17461 " guestfs_set_attach_method (guestfs_h *g,\n"
17462 "                            const char *attachmethod);\n"
17463 "\n"
17464 msgstr ""
17465
17466 #. type: textblock
17467 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3895
17468 msgid ""
17469 "Set the method that libguestfs uses to connect to the back end guestfsd "
17470 "daemon.  Possible methods are:"
17471 msgstr ""
17472
17473 #. type: textblock
17474 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:3902
17475 msgid ""
17476 "Launch an appliance and connect to it.  This is the ordinary method and the "
17477 "default."
17478 msgstr ""
17479
17480 #. type: =item
17481 #: ../src/guestfs-actions.pod:5811 ../fish/guestfish-actions.pod:3905
17482 msgid "C<unix:I<path>>"
17483 msgstr ""
17484
17485 #. type: textblock
17486 #: ../src/guestfs-actions.pod:5813 ../fish/guestfish-actions.pod:3907
17487 msgid "Connect to the Unix domain socket I<path>."
17488 msgstr ""
17489
17490 #. type: textblock
17491 #: ../src/guestfs-actions.pod:5815 ../fish/guestfish-actions.pod:3909
17492 msgid ""
17493 "This method lets you connect to an existing daemon or (using virtio-serial) "
17494 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
17495 "RUNNING DAEMONS>."
17496 msgstr ""
17497
17498 # type: =head2
17499 #. type: =head2
17500 #: ../src/guestfs-actions.pod:5823
17501 msgid "guestfs_set_autosync"
17502 msgstr ""
17503
17504 # type: verbatim
17505 #. type: verbatim
17506 #: ../src/guestfs-actions.pod:5825
17507 #, no-wrap
17508 msgid ""
17509 " int\n"
17510 " guestfs_set_autosync (guestfs_h *g,\n"
17511 "                       int autosync);\n"
17512 "\n"
17513 msgstr ""
17514
17515 #. type: textblock
17516 #: ../src/guestfs-actions.pod:5829 ../fish/guestfish-actions.pod:3921
17517 msgid ""
17518 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
17519 "effort attempt to make filesystems consistent and synchronized when the "
17520 "handle is closed (also if the program exits without closing handles)."
17521 msgstr ""
17522
17523 # type: textblock
17524 #. type: textblock
17525 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:3926
17526 msgid ""
17527 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17528 "disabled by default)."
17529 msgstr ""
17530
17531 # type: =head2
17532 #. type: =head2
17533 #: ../src/guestfs-actions.pod:5841
17534 msgid "guestfs_set_direct"
17535 msgstr ""
17536
17537 # type: verbatim
17538 #. type: verbatim
17539 #: ../src/guestfs-actions.pod:5843
17540 #, no-wrap
17541 msgid ""
17542 " int\n"
17543 " guestfs_set_direct (guestfs_h *g,\n"
17544 "                     int direct);\n"
17545 "\n"
17546 msgstr ""
17547
17548 # type: textblock
17549 #. type: textblock
17550 #: ../src/guestfs-actions.pod:5847 ../fish/guestfish-actions.pod:3935
17551 msgid ""
17552 "If the direct appliance mode flag is enabled, then stdin and stdout are "
17553 "passed directly through to the appliance once it is launched."
17554 msgstr ""
17555
17556 # type: textblock
17557 #. type: textblock
17558 #: ../src/guestfs-actions.pod:5851
17559 msgid ""
17560 "One consequence of this is that log messages aren't caught by the library "
17561 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
17562 "stdout."
17563 msgstr ""
17564
17565 # type: textblock
17566 #. type: textblock
17567 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3943
17568 msgid "You probably don't want to use this unless you know what you are doing."
17569 msgstr ""
17570
17571 # type: textblock
17572 #. type: textblock
17573 #: ../src/guestfs-actions.pod:5858 ../fish/guestfish-actions.pod:3946
17574 msgid "The default is disabled."
17575 msgstr ""
17576
17577 # type: =head2
17578 #. type: =head2
17579 #: ../src/guestfs-actions.pod:5864
17580 msgid "guestfs_set_e2label"
17581 msgstr ""
17582
17583 # type: verbatim
17584 #. type: verbatim
17585 #: ../src/guestfs-actions.pod:5866
17586 #, no-wrap
17587 msgid ""
17588 " int\n"
17589 " guestfs_set_e2label (guestfs_h *g,\n"
17590 "                      const char *device,\n"
17591 "                      const char *label);\n"
17592 "\n"
17593 msgstr ""
17594
17595 # type: textblock
17596 #. type: textblock
17597 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3952
17598 msgid ""
17599 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
17600 "C<label>.  Filesystem labels are limited to 16 characters."
17601 msgstr ""
17602
17603 # type: textblock
17604 #. type: textblock
17605 #: ../src/guestfs-actions.pod:5875
17606 msgid ""
17607 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17608 "the existing label on a filesystem."
17609 msgstr ""
17610
17611 # type: =head2
17612 #. type: =head2
17613 #: ../src/guestfs-actions.pod:5882
17614 msgid "guestfs_set_e2uuid"
17615 msgstr ""
17616
17617 # type: verbatim
17618 #. type: verbatim
17619 #: ../src/guestfs-actions.pod:5884
17620 #, no-wrap
17621 msgid ""
17622 " int\n"
17623 " guestfs_set_e2uuid (guestfs_h *g,\n"
17624 "                     const char *device,\n"
17625 "                     const char *uuid);\n"
17626 "\n"
17627 msgstr ""
17628
17629 # type: textblock
17630 #. type: textblock
17631 #: ../src/guestfs-actions.pod:5889 ../fish/guestfish-actions.pod:3963
17632 msgid ""
17633 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
17634 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
17635 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
17636 msgstr ""
17637
17638 # type: textblock
17639 #. type: textblock
17640 #: ../src/guestfs-actions.pod:5894
17641 msgid ""
17642 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17643 "the existing UUID of a filesystem."
17644 msgstr ""
17645
17646 # type: =head2
17647 #. type: =head2
17648 #: ../src/guestfs-actions.pod:5901
17649 msgid "guestfs_set_memsize"
17650 msgstr ""
17651
17652 # type: verbatim
17653 #. type: verbatim
17654 #: ../src/guestfs-actions.pod:5903
17655 #, no-wrap
17656 msgid ""
17657 " int\n"
17658 " guestfs_set_memsize (guestfs_h *g,\n"
17659 "                      int memsize);\n"
17660 "\n"
17661 msgstr ""
17662
17663 # type: textblock
17664 #. type: textblock
17665 #: ../src/guestfs-actions.pod:5907
17666 msgid ""
17667 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
17668 "This only has any effect if called before C<guestfs_launch>."
17669 msgstr ""
17670
17671 # type: textblock
17672 #. type: textblock
17673 #: ../src/guestfs-actions.pod:5911 ../fish/guestfish-actions.pod:3981
17674 msgid ""
17675 "You can also change this by setting the environment variable "
17676 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17677 msgstr ""
17678
17679 # type: =head2
17680 #. type: =head2
17681 #: ../src/guestfs-actions.pod:5922
17682 msgid "guestfs_set_network"
17683 msgstr ""
17684
17685 # type: verbatim
17686 #. type: verbatim
17687 #: ../src/guestfs-actions.pod:5924
17688 #, no-wrap
17689 msgid ""
17690 " int\n"
17691 " guestfs_set_network (guestfs_h *g,\n"
17692 "                      int network);\n"
17693 "\n"
17694 msgstr ""
17695
17696 # type: textblock
17697 #. type: textblock
17698 #: ../src/guestfs-actions.pod:5928 ../fish/guestfish-actions.pod:3994
17699 msgid ""
17700 "If C<network> is true, then the network is enabled in the libguestfs "
17701 "appliance.  The default is false."
17702 msgstr ""
17703
17704 # type: textblock
17705 #. type: textblock
17706 #: ../src/guestfs-actions.pod:5931 ../fish/guestfish-actions.pod:3997
17707 msgid ""
17708 "This affects whether commands are able to access the network (see L<guestfs"
17709 "(3)/RUNNING COMMANDS>)."
17710 msgstr ""
17711
17712 # type: textblock
17713 #. type: textblock
17714 #: ../src/guestfs-actions.pod:5934
17715 msgid ""
17716 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17717 "effect."
17718 msgstr ""
17719
17720 # type: =head2
17721 #. type: =head2
17722 #: ../src/guestfs-actions.pod:5941
17723 msgid "guestfs_set_path"
17724 msgstr ""
17725
17726 # type: verbatim
17727 #. type: verbatim
17728 #: ../src/guestfs-actions.pod:5943
17729 #, no-wrap
17730 msgid ""
17731 " int\n"
17732 " guestfs_set_path (guestfs_h *g,\n"
17733 "                   const char *searchpath);\n"
17734 "\n"
17735 msgstr ""
17736
17737 # type: textblock
17738 #. type: textblock
17739 #: ../src/guestfs-actions.pod:5947 ../fish/guestfish-actions.pod:4009
17740 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17741 msgstr ""
17742
17743 # type: textblock
17744 #. type: textblock
17745 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:4011
17746 msgid ""
17747 "The default is C<$libdir/guestfs> unless overridden by setting "
17748 "C<LIBGUESTFS_PATH> environment variable."
17749 msgstr ""
17750
17751 # type: textblock
17752 #. type: textblock
17753 #: ../src/guestfs-actions.pod:5952 ../fish/guestfish-actions.pod:4014
17754 msgid "Setting C<path> to C<NULL> restores the default path."
17755 msgstr ""
17756
17757 # type: =head2
17758 #. type: =head2
17759 #: ../src/guestfs-actions.pod:5958
17760 msgid "guestfs_set_qemu"
17761 msgstr ""
17762
17763 # type: verbatim
17764 #. type: verbatim
17765 #: ../src/guestfs-actions.pod:5960
17766 #, no-wrap
17767 msgid ""
17768 " int\n"
17769 " guestfs_set_qemu (guestfs_h *g,\n"
17770 "                   const char *qemu);\n"
17771 "\n"
17772 msgstr ""
17773
17774 # type: textblock
17775 #. type: textblock
17776 #: ../src/guestfs-actions.pod:5964 ../fish/guestfish-actions.pod:4022
17777 msgid "Set the qemu binary that we will use."
17778 msgstr ""
17779
17780 # type: textblock
17781 #. type: textblock
17782 #: ../src/guestfs-actions.pod:5966 ../fish/guestfish-actions.pod:4024
17783 msgid ""
17784 "The default is chosen when the library was compiled by the configure script."
17785 msgstr ""
17786
17787 # type: textblock
17788 #. type: textblock
17789 #: ../src/guestfs-actions.pod:5969 ../fish/guestfish-actions.pod:4027
17790 msgid ""
17791 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17792 "variable."
17793 msgstr ""
17794
17795 # type: textblock
17796 #. type: textblock
17797 #: ../src/guestfs-actions.pod:5972 ../fish/guestfish-actions.pod:4030
17798 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17799 msgstr ""
17800
17801 # type: textblock
17802 #. type: textblock
17803 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:4032
17804 msgid ""
17805 "Note that you should call this function as early as possible after creating "
17806 "the handle.  This is because some pre-launch operations depend on testing "
17807 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17808 "don't retest features, and so you might see inconsistent results.  Using the "
17809 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17810 "the qemu binary at the same time as the handle is created."
17811 msgstr ""
17812
17813 # type: =head2
17814 #. type: =head2
17815 #: ../src/guestfs-actions.pod:5986
17816 msgid "guestfs_set_recovery_proc"
17817 msgstr ""
17818
17819 # type: verbatim
17820 #. type: verbatim
17821 #: ../src/guestfs-actions.pod:5988
17822 #, no-wrap
17823 msgid ""
17824 " int\n"
17825 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17826 "                            int recoveryproc);\n"
17827 "\n"
17828 msgstr ""
17829
17830 # type: textblock
17831 #. type: textblock
17832 #: ../src/guestfs-actions.pod:5992
17833 msgid ""
17834 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17835 "not create a recovery process.  The purpose of the recovery process is to "
17836 "stop runaway qemu processes in the case where the main program aborts "
17837 "abruptly."
17838 msgstr ""
17839
17840 # type: textblock
17841 #. type: textblock
17842 #: ../src/guestfs-actions.pod:5997
17843 msgid ""
17844 "This only has any effect if called before C<guestfs_launch>, and the default "
17845 "is true."
17846 msgstr ""
17847
17848 # type: textblock
17849 #. type: textblock
17850 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:4054
17851 msgid ""
17852 "About the only time when you would want to disable this is if the main "
17853 "process will fork itself into the background (\"daemonize\" itself).  In "
17854 "this case the recovery process thinks that the main program has disappeared "
17855 "and so kills qemu, which is not very helpful."
17856 msgstr ""
17857
17858 # type: =head2
17859 #. type: =head2
17860 #: ../src/guestfs-actions.pod:6010
17861 msgid "guestfs_set_selinux"
17862 msgstr ""
17863
17864 # type: verbatim
17865 #. type: verbatim
17866 #: ../src/guestfs-actions.pod:6012
17867 #, no-wrap
17868 msgid ""
17869 " int\n"
17870 " guestfs_set_selinux (guestfs_h *g,\n"
17871 "                      int selinux);\n"
17872 "\n"
17873 msgstr ""
17874
17875 # type: textblock
17876 #. type: textblock
17877 #: ../src/guestfs-actions.pod:6016 ../fish/guestfish-actions.pod:4066
17878 msgid ""
17879 "This sets the selinux flag that is passed to the appliance at boot time.  "
17880 "The default is C<selinux=0> (disabled)."
17881 msgstr ""
17882
17883 # type: textblock
17884 #. type: textblock
17885 #: ../src/guestfs-actions.pod:6019 ../fish/guestfish-actions.pod:4069
17886 msgid ""
17887 "Note that if SELinux is enabled, it is always in Permissive mode "
17888 "(C<enforcing=0>)."
17889 msgstr ""
17890
17891 # type: =head2
17892 #. type: =head2
17893 #: ../src/guestfs-actions.pod:6029
17894 msgid "guestfs_set_trace"
17895 msgstr ""
17896
17897 # type: verbatim
17898 #. type: verbatim
17899 #: ../src/guestfs-actions.pod:6031
17900 #, no-wrap
17901 msgid ""
17902 " int\n"
17903 " guestfs_set_trace (guestfs_h *g,\n"
17904 "                    int trace);\n"
17905 "\n"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4081
17910 msgid ""
17911 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17912 "return values are traced."
17913 msgstr ""
17914
17915 # type: textblock
17916 #. type: textblock
17917 #: ../src/guestfs-actions.pod:6038 ../fish/guestfish-actions.pod:4084
17918 msgid ""
17919 "If you want to trace C API calls into libguestfs (and other libraries) then "
17920 "possibly a better way is to use the external ltrace(1) command."
17921 msgstr ""
17922
17923 # type: textblock
17924 #. type: textblock
17925 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:4088
17926 msgid ""
17927 "Command traces are disabled unless the environment variable "
17928 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17929 msgstr ""
17930
17931 #. type: textblock
17932 #: ../src/guestfs-actions.pod:6045
17933 msgid ""
17934 "Trace messages are normally sent to C<stderr>, unless you register a "
17935 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17936 msgstr ""
17937
17938 # type: =head2
17939 #. type: =head2
17940 #: ../src/guestfs-actions.pod:6053
17941 msgid "guestfs_set_verbose"
17942 msgstr ""
17943
17944 # type: verbatim
17945 #. type: verbatim
17946 #: ../src/guestfs-actions.pod:6055
17947 #, no-wrap
17948 msgid ""
17949 " int\n"
17950 " guestfs_set_verbose (guestfs_h *g,\n"
17951 "                      int verbose);\n"
17952 "\n"
17953 msgstr ""
17954
17955 #. type: textblock
17956 #: ../src/guestfs-actions.pod:6059 ../fish/guestfish-actions.pod:4101
17957 msgid "If C<verbose> is true, this turns on verbose messages."
17958 msgstr ""
17959
17960 # type: textblock
17961 #. type: textblock
17962 #: ../src/guestfs-actions.pod:6061 ../fish/guestfish-actions.pod:4103
17963 msgid ""
17964 "Verbose messages are disabled unless the environment variable "
17965 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../src/guestfs-actions.pod:6064
17970 msgid ""
17971 "Verbose messages are normally sent to C<stderr>, unless you register a "
17972 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17973 msgstr ""
17974
17975 # type: =head2
17976 #. type: =head2
17977 #: ../src/guestfs-actions.pod:6072
17978 msgid "guestfs_setcon"
17979 msgstr ""
17980
17981 # type: verbatim
17982 #. type: verbatim
17983 #: ../src/guestfs-actions.pod:6074
17984 #, no-wrap
17985 msgid ""
17986 " int\n"
17987 " guestfs_setcon (guestfs_h *g,\n"
17988 "                 const char *context);\n"
17989 "\n"
17990 msgstr ""
17991
17992 # type: textblock
17993 #. type: textblock
17994 #: ../src/guestfs-actions.pod:6078 ../fish/guestfish-actions.pod:4114
17995 msgid ""
17996 "This sets the SELinux security context of the daemon to the string "
17997 "C<context>."
17998 msgstr ""
17999
18000 # type: textblock
18001 #. type: textblock
18002 #: ../src/guestfs-actions.pod:6081 ../fish/guestfish-actions.pod:4117
18003 msgid "See the documentation about SELINUX in L<guestfs(3)>."
18004 msgstr ""
18005
18006 # type: =head2
18007 #. type: =head2
18008 #: ../src/guestfs-actions.pod:6087
18009 msgid "guestfs_setxattr"
18010 msgstr ""
18011
18012 # type: verbatim
18013 #. type: verbatim
18014 #: ../src/guestfs-actions.pod:6089
18015 #, no-wrap
18016 msgid ""
18017 " int\n"
18018 " guestfs_setxattr (guestfs_h *g,\n"
18019 "                   const char *xattr,\n"
18020 "                   const char *val,\n"
18021 "                   int vallen,\n"
18022 "                   const char *path);\n"
18023 "\n"
18024 msgstr ""
18025
18026 # type: textblock
18027 #. type: textblock
18028 #: ../src/guestfs-actions.pod:6096 ../fish/guestfish-actions.pod:4123
18029 msgid ""
18030 "This call sets the extended attribute named C<xattr> of the file C<path> to "
18031 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
18032 msgstr ""
18033
18034 # type: textblock
18035 #. type: textblock
18036 #: ../src/guestfs-actions.pod:6100
18037 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
18038 msgstr ""
18039
18040 # type: =head2
18041 #. type: =head2
18042 #: ../src/guestfs-actions.pod:6106
18043 msgid "guestfs_sfdisk"
18044 msgstr ""
18045
18046 # type: verbatim
18047 #. type: verbatim
18048 #: ../src/guestfs-actions.pod:6108
18049 #, no-wrap
18050 msgid ""
18051 " int\n"
18052 " guestfs_sfdisk (guestfs_h *g,\n"
18053 "                 const char *device,\n"
18054 "                 int cyls,\n"
18055 "                 int heads,\n"
18056 "                 int sectors,\n"
18057 "                 char *const *lines);\n"
18058 "\n"
18059 msgstr ""
18060
18061 # type: textblock
18062 #. type: textblock
18063 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4133
18064 msgid ""
18065 "This is a direct interface to the L<sfdisk(8)> program for creating "
18066 "partitions on block devices."
18067 msgstr ""
18068
18069 # type: textblock
18070 #. type: textblock
18071 #: ../src/guestfs-actions.pod:6119 ../fish/guestfish-actions.pod:4136
18072 msgid "C<device> should be a block device, for example C</dev/sda>."
18073 msgstr ""
18074
18075 # type: textblock
18076 #. type: textblock
18077 #: ../src/guestfs-actions.pod:6121 ../fish/guestfish-actions.pod:4138
18078 msgid ""
18079 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
18080 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
18081 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
18082 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
18083 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
18084 "the kernel) cannot work out the right geometry and you will need to tell it."
18085 msgstr ""
18086
18087 # type: textblock
18088 #. type: textblock
18089 #: ../src/guestfs-actions.pod:6129 ../fish/guestfish-actions.pod:4146
18090 msgid ""
18091 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
18092 "refer to the L<sfdisk(8)> manpage."
18093 msgstr ""
18094
18095 # type: textblock
18096 #. type: textblock
18097 #: ../src/guestfs-actions.pod:6132 ../fish/guestfish-actions.pod:4149
18098 msgid ""
18099 "To create a single partition occupying the whole disk, you would pass "
18100 "C<lines> as a single element list, when the single element being the string "
18101 "C<,> (comma)."
18102 msgstr ""
18103
18104 # type: textblock
18105 #. type: textblock
18106 #: ../src/guestfs-actions.pod:6136
18107 msgid ""
18108 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
18109 msgstr ""
18110
18111 # type: =head2
18112 #. type: =head2
18113 #: ../src/guestfs-actions.pod:6146
18114 msgid "guestfs_sfdiskM"
18115 msgstr ""
18116
18117 # type: verbatim
18118 #. type: verbatim
18119 #: ../src/guestfs-actions.pod:6148
18120 #, no-wrap
18121 msgid ""
18122 " int\n"
18123 " guestfs_sfdiskM (guestfs_h *g,\n"
18124 "                  const char *device,\n"
18125 "                  char *const *lines);\n"
18126 "\n"
18127 msgstr ""
18128
18129 # type: textblock
18130 #. type: textblock
18131 #: ../src/guestfs-actions.pod:6153
18132 msgid ""
18133 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18134 "partition sizes are specified in megabytes only (rounded to the nearest "
18135 "cylinder) and you don't need to specify the cyls, heads and sectors "
18136 "parameters which were rarely if ever used anyway."
18137 msgstr ""
18138
18139 # type: textblock
18140 #. type: textblock
18141 #: ../src/guestfs-actions.pod:6159
18142 msgid ""
18143 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18144 "C<guestfs_part_disk>"
18145 msgstr ""
18146
18147 # type: =head2
18148 #. type: =head2
18149 #: ../src/guestfs-actions.pod:6169
18150 msgid "guestfs_sfdisk_N"
18151 msgstr ""
18152
18153 # type: verbatim
18154 #. type: verbatim
18155 #: ../src/guestfs-actions.pod:6171
18156 #, no-wrap
18157 msgid ""
18158 " int\n"
18159 " guestfs_sfdisk_N (guestfs_h *g,\n"
18160 "                   const char *device,\n"
18161 "                   int partnum,\n"
18162 "                   int cyls,\n"
18163 "                   int heads,\n"
18164 "                   int sectors,\n"
18165 "                   const char *line);\n"
18166 "\n"
18167 msgstr ""
18168
18169 # type: textblock
18170 #. type: textblock
18171 #: ../src/guestfs-actions.pod:6180 ../fish/guestfish-actions.pod:4179
18172 msgid ""
18173 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18174 "(note: C<n> counts from 1)."
18175 msgstr ""
18176
18177 # type: textblock
18178 #. type: textblock
18179 #: ../src/guestfs-actions.pod:6183
18180 msgid ""
18181 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18182 "for the cyls/heads/sectors parameters."
18183 msgstr ""
18184
18185 # type: textblock
18186 #. type: textblock
18187 #: ../src/guestfs-actions.pod:6186
18188 msgid "See also: C<guestfs_part_add>"
18189 msgstr ""
18190
18191 # type: =head2
18192 #. type: =head2
18193 #: ../src/guestfs-actions.pod:6195
18194 msgid "guestfs_sfdisk_disk_geometry"
18195 msgstr ""
18196
18197 # type: verbatim
18198 #. type: verbatim
18199 #: ../src/guestfs-actions.pod:6197
18200 #, no-wrap
18201 msgid ""
18202 " char *\n"
18203 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18204 "                               const char *device);\n"
18205 "\n"
18206 msgstr ""
18207
18208 # type: textblock
18209 #. type: textblock
18210 #: ../src/guestfs-actions.pod:6201
18211 msgid ""
18212 "This displays the disk geometry of C<device> read from the partition table.  "
18213 "Especially in the case where the underlying block device has been resized, "
18214 "this can be different from the kernel's idea of the geometry (see "
18215 "C<guestfs_sfdisk_kernel_geometry>)."
18216 msgstr ""
18217
18218 # type: textblock
18219 #. type: textblock
18220 #: ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6222
18221 #: ../fish/guestfish-actions.pod:4199 ../fish/guestfish-actions.pod:4208
18222 msgid "The result is in human-readable format, and not designed to be parsed."
18223 msgstr ""
18224
18225 # type: =head2
18226 #. type: =head2
18227 #: ../src/guestfs-actions.pod:6214
18228 msgid "guestfs_sfdisk_kernel_geometry"
18229 msgstr ""
18230
18231 # type: verbatim
18232 #. type: verbatim
18233 #: ../src/guestfs-actions.pod:6216
18234 #, no-wrap
18235 msgid ""
18236 " char *\n"
18237 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18238 "                                 const char *device);\n"
18239 "\n"
18240 msgstr ""
18241
18242 # type: textblock
18243 #. type: textblock
18244 #: ../src/guestfs-actions.pod:6220 ../fish/guestfish-actions.pod:4206
18245 msgid "This displays the kernel's idea of the geometry of C<device>."
18246 msgstr ""
18247
18248 # type: =head2
18249 #. type: =head2
18250 #: ../src/guestfs-actions.pod:6230
18251 msgid "guestfs_sfdisk_l"
18252 msgstr ""
18253
18254 # type: verbatim
18255 #. type: verbatim
18256 #: ../src/guestfs-actions.pod:6232
18257 #, no-wrap
18258 msgid ""
18259 " char *\n"
18260 " guestfs_sfdisk_l (guestfs_h *g,\n"
18261 "                   const char *device);\n"
18262 "\n"
18263 msgstr ""
18264
18265 # type: textblock
18266 #. type: textblock
18267 #: ../src/guestfs-actions.pod:6236 ../fish/guestfish-actions.pod:4215
18268 msgid ""
18269 "This displays the partition table on C<device>, in the human-readable output "
18270 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18271 msgstr ""
18272
18273 # type: textblock
18274 #. type: textblock
18275 #: ../src/guestfs-actions.pod:6240
18276 msgid "See also: C<guestfs_part_list>"
18277 msgstr ""
18278
18279 # type: =head2
18280 #. type: =head2
18281 #: ../src/guestfs-actions.pod:6247
18282 msgid "guestfs_sh"
18283 msgstr ""
18284
18285 # type: verbatim
18286 #. type: verbatim
18287 #: ../src/guestfs-actions.pod:6249
18288 #, no-wrap
18289 msgid ""
18290 " char *\n"
18291 " guestfs_sh (guestfs_h *g,\n"
18292 "             const char *command);\n"
18293 "\n"
18294 msgstr ""
18295
18296 # type: textblock
18297 #. type: textblock
18298 #: ../src/guestfs-actions.pod:6253 ../fish/guestfish-actions.pod:4225
18299 msgid ""
18300 "This call runs a command from the guest filesystem via the guest's C</bin/"
18301 "sh>."
18302 msgstr ""
18303
18304 # type: textblock
18305 #. type: textblock
18306 #: ../src/guestfs-actions.pod:6256
18307 msgid "This is like C<guestfs_command>, but passes the command to:"
18308 msgstr ""
18309
18310 # type: verbatim
18311 #. type: verbatim
18312 #: ../src/guestfs-actions.pod:6258 ../fish/guestfish-actions.pod:4230
18313 #, no-wrap
18314 msgid ""
18315 " /bin/sh -c \"command\"\n"
18316 "\n"
18317 msgstr ""
18318
18319 # type: textblock
18320 #. type: textblock
18321 #: ../src/guestfs-actions.pod:6260 ../fish/guestfish-actions.pod:4232
18322 msgid ""
18323 "Depending on the guest's shell, this usually results in wildcards being "
18324 "expanded, shell expressions being interpolated and so on."
18325 msgstr ""
18326
18327 # type: textblock
18328 #. type: textblock
18329 #: ../src/guestfs-actions.pod:6264
18330 msgid "All the provisos about C<guestfs_command> apply to this call."
18331 msgstr ""
18332
18333 # type: =head2
18334 #. type: =head2
18335 #: ../src/guestfs-actions.pod:6271
18336 msgid "guestfs_sh_lines"
18337 msgstr ""
18338
18339 # type: verbatim
18340 #. type: verbatim
18341 #: ../src/guestfs-actions.pod:6273
18342 #, no-wrap
18343 msgid ""
18344 " char **\n"
18345 " guestfs_sh_lines (guestfs_h *g,\n"
18346 "                   const char *command);\n"
18347 "\n"
18348 msgstr ""
18349
18350 # type: textblock
18351 #. type: textblock
18352 #: ../src/guestfs-actions.pod:6277
18353 msgid ""
18354 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18355 "lines."
18356 msgstr ""
18357
18358 # type: textblock
18359 #. type: textblock
18360 #: ../src/guestfs-actions.pod:6280
18361 msgid "See also: C<guestfs_command_lines>"
18362 msgstr ""
18363
18364 # type: =head2
18365 #. type: =head2
18366 #: ../src/guestfs-actions.pod:6288
18367 msgid "guestfs_sleep"
18368 msgstr ""
18369
18370 # type: verbatim
18371 #. type: verbatim
18372 #: ../src/guestfs-actions.pod:6290
18373 #, no-wrap
18374 msgid ""
18375 " int\n"
18376 " guestfs_sleep (guestfs_h *g,\n"
18377 "                int secs);\n"
18378 "\n"
18379 msgstr ""
18380
18381 # type: textblock
18382 #. type: textblock
18383 #: ../src/guestfs-actions.pod:6294 ../fish/guestfish-actions.pod:4251
18384 msgid "Sleep for C<secs> seconds."
18385 msgstr ""
18386
18387 # type: textblock
18388 #. type: textblock
18389 #: ../src/guestfs-actions.pod:6298
18390 msgid "(Added in 1.0.41)"
18391 msgstr ""
18392
18393 # type: =head2
18394 #. type: =head2
18395 #: ../src/guestfs-actions.pod:6300 ../src/guestfs-structs.pod:109
18396 msgid "guestfs_stat"
18397 msgstr ""
18398
18399 # type: verbatim
18400 #. type: verbatim
18401 #: ../src/guestfs-actions.pod:6302
18402 #, no-wrap
18403 msgid ""
18404 " struct guestfs_stat *\n"
18405 " guestfs_stat (guestfs_h *g,\n"
18406 "               const char *path);\n"
18407 "\n"
18408 msgstr ""
18409
18410 # type: textblock
18411 #. type: textblock
18412 #: ../src/guestfs-actions.pod:6308 ../fish/guestfish-actions.pod:4259
18413 msgid "This is the same as the C<stat(2)> system call."
18414 msgstr ""
18415
18416 # type: =head2
18417 #. type: =head2
18418 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-structs.pod:135
18419 msgid "guestfs_statvfs"
18420 msgstr ""
18421
18422 # type: verbatim
18423 #. type: verbatim
18424 #: ../src/guestfs-actions.pod:6318
18425 #, no-wrap
18426 msgid ""
18427 " struct guestfs_statvfs *\n"
18428 " guestfs_statvfs (guestfs_h *g,\n"
18429 "                  const char *path);\n"
18430 "\n"
18431 msgstr ""
18432
18433 # type: textblock
18434 #. type: textblock
18435 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4265
18436 msgid ""
18437 "Returns file system statistics for any mounted file system.  C<path> should "
18438 "be a file or directory in the mounted file system (typically it is the mount "
18439 "point itself, but it doesn't need to be)."
18440 msgstr ""
18441
18442 # type: textblock
18443 #. type: textblock
18444 #: ../src/guestfs-actions.pod:6326 ../fish/guestfish-actions.pod:4269
18445 msgid "This is the same as the C<statvfs(2)> system call."
18446 msgstr ""
18447
18448 # type: textblock
18449 #. type: textblock
18450 #: ../src/guestfs-actions.pod:6328
18451 msgid ""
18452 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
18453 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18454 msgstr ""
18455
18456 # type: =head2
18457 #. type: =head2
18458 #: ../src/guestfs-actions.pod:6334
18459 msgid "guestfs_strings"
18460 msgstr ""
18461
18462 # type: verbatim
18463 #. type: verbatim
18464 #: ../src/guestfs-actions.pod:6336
18465 #, no-wrap
18466 msgid ""
18467 " char **\n"
18468 " guestfs_strings (guestfs_h *g,\n"
18469 "                  const char *path);\n"
18470 "\n"
18471 msgstr ""
18472
18473 # type: textblock
18474 #. type: textblock
18475 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4275
18476 msgid ""
18477 "This runs the L<strings(1)> command on a file and returns the list of "
18478 "printable strings found."
18479 msgstr ""
18480
18481 # type: =head2
18482 #. type: =head2
18483 #: ../src/guestfs-actions.pod:6352
18484 msgid "guestfs_strings_e"
18485 msgstr ""
18486
18487 # type: verbatim
18488 #. type: verbatim
18489 #: ../src/guestfs-actions.pod:6354
18490 #, no-wrap
18491 msgid ""
18492 " char **\n"
18493 " guestfs_strings_e (guestfs_h *g,\n"
18494 "                    const char *encoding,\n"
18495 "                    const char *path);\n"
18496 "\n"
18497 msgstr ""
18498
18499 # type: textblock
18500 #. type: textblock
18501 #: ../src/guestfs-actions.pod:6359
18502 msgid ""
18503 "This is like the C<guestfs_strings> command, but allows you to specify the "
18504 "encoding of strings that are looked for in the source file C<path>."
18505 msgstr ""
18506
18507 # type: textblock
18508 #. type: textblock
18509 #: ../src/guestfs-actions.pod:6363 ../fish/guestfish-actions.pod:4289
18510 msgid "Allowed encodings are:"
18511 msgstr ""
18512
18513 # type: =item
18514 #. type: =item
18515 #: ../src/guestfs-actions.pod:6367 ../fish/guestfish-actions.pod:4293
18516 msgid "s"
18517 msgstr ""
18518
18519 # type: textblock
18520 #. type: textblock
18521 #: ../src/guestfs-actions.pod:6369
18522 msgid ""
18523 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
18524 "ISO-8859-X (this is what C<guestfs_strings> uses)."
18525 msgstr ""
18526
18527 # type: =item
18528 #. type: =item
18529 #: ../src/guestfs-actions.pod:6372 ../fish/guestfish-actions.pod:4298
18530 msgid "S"
18531 msgstr ""
18532
18533 # type: textblock
18534 #. type: textblock
18535 #: ../src/guestfs-actions.pod:6374 ../fish/guestfish-actions.pod:4300
18536 msgid "Single 8-bit-byte characters."
18537 msgstr ""
18538
18539 # type: =item
18540 #. type: =item
18541 #: ../src/guestfs-actions.pod:6376 ../fish/guestfish-actions.pod:4302
18542 msgid "b"
18543 msgstr ""
18544
18545 # type: textblock
18546 #. type: textblock
18547 #: ../src/guestfs-actions.pod:6378 ../fish/guestfish-actions.pod:4304
18548 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18549 msgstr ""
18550
18551 # type: =item
18552 #. type: =item
18553 #: ../src/guestfs-actions.pod:6381 ../fish/guestfish-actions.pod:4307
18554 msgid "l (lower case letter L)"
18555 msgstr ""
18556
18557 # type: textblock
18558 #. type: textblock
18559 #: ../src/guestfs-actions.pod:6383 ../fish/guestfish-actions.pod:4309
18560 msgid ""
18561 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
18562 "examining binaries in Windows guests."
18563 msgstr ""
18564
18565 # type: =item
18566 #. type: =item
18567 #: ../src/guestfs-actions.pod:6386 ../fish/guestfish-actions.pod:4312
18568 msgid "B"
18569 msgstr ""
18570
18571 # type: textblock
18572 #. type: textblock
18573 #: ../src/guestfs-actions.pod:6388 ../fish/guestfish-actions.pod:4314
18574 msgid "32-bit big endian such as UCS-4BE."
18575 msgstr ""
18576
18577 # type: =item
18578 #. type: =item
18579 #: ../src/guestfs-actions.pod:6390 ../fish/guestfish-actions.pod:4316
18580 msgid "L"
18581 msgstr ""
18582
18583 # type: textblock
18584 #. type: textblock
18585 #: ../src/guestfs-actions.pod:6392 ../fish/guestfish-actions.pod:4318
18586 msgid "32-bit little endian such as UCS-4LE."
18587 msgstr ""
18588
18589 # type: textblock
18590 #. type: textblock
18591 #: ../src/guestfs-actions.pod:6396 ../fish/guestfish-actions.pod:4322
18592 msgid "The returned strings are transcoded to UTF-8."
18593 msgstr ""
18594
18595 # type: =head2
18596 #. type: =head2
18597 #: ../src/guestfs-actions.pod:6407
18598 msgid "guestfs_swapoff_device"
18599 msgstr ""
18600
18601 # type: verbatim
18602 #. type: verbatim
18603 #: ../src/guestfs-actions.pod:6409
18604 #, no-wrap
18605 msgid ""
18606 " int\n"
18607 " guestfs_swapoff_device (guestfs_h *g,\n"
18608 "                         const char *device);\n"
18609 "\n"
18610 msgstr ""
18611
18612 # type: textblock
18613 #. type: textblock
18614 #: ../src/guestfs-actions.pod:6413
18615 msgid ""
18616 "This command disables the libguestfs appliance swap device or partition "
18617 "named C<device>.  See C<guestfs_swapon_device>."
18618 msgstr ""
18619
18620 # type: =head2
18621 #. type: =head2
18622 #: ../src/guestfs-actions.pod:6421
18623 msgid "guestfs_swapoff_file"
18624 msgstr ""
18625
18626 # type: verbatim
18627 #. type: verbatim
18628 #: ../src/guestfs-actions.pod:6423
18629 #, no-wrap
18630 msgid ""
18631 " int\n"
18632 " guestfs_swapoff_file (guestfs_h *g,\n"
18633 "                       const char *file);\n"
18634 "\n"
18635 msgstr ""
18636
18637 # type: textblock
18638 #. type: textblock
18639 #: ../src/guestfs-actions.pod:6427 ../fish/guestfish-actions.pod:4339
18640 msgid "This command disables the libguestfs appliance swap on file."
18641 msgstr ""
18642
18643 # type: =head2
18644 #. type: =head2
18645 #: ../src/guestfs-actions.pod:6433
18646 msgid "guestfs_swapoff_label"
18647 msgstr ""
18648
18649 # type: verbatim
18650 #. type: verbatim
18651 #: ../src/guestfs-actions.pod:6435
18652 #, no-wrap
18653 msgid ""
18654 " int\n"
18655 " guestfs_swapoff_label (guestfs_h *g,\n"
18656 "                        const char *label);\n"
18657 "\n"
18658 msgstr ""
18659
18660 # type: textblock
18661 #. type: textblock
18662 #: ../src/guestfs-actions.pod:6439 ../fish/guestfish-actions.pod:4345
18663 msgid ""
18664 "This command disables the libguestfs appliance swap on labeled swap "
18665 "partition."
18666 msgstr ""
18667
18668 # type: =head2
18669 #. type: =head2
18670 #: ../src/guestfs-actions.pod:6446
18671 msgid "guestfs_swapoff_uuid"
18672 msgstr ""
18673
18674 # type: verbatim
18675 #. type: verbatim
18676 #: ../src/guestfs-actions.pod:6448
18677 #, no-wrap
18678 msgid ""
18679 " int\n"
18680 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18681 "                       const char *uuid);\n"
18682 "\n"
18683 msgstr ""
18684
18685 # type: textblock
18686 #. type: textblock
18687 #: ../src/guestfs-actions.pod:6452 ../fish/guestfish-actions.pod:4352
18688 msgid ""
18689 "This command disables the libguestfs appliance swap partition with the given "
18690 "UUID."
18691 msgstr ""
18692
18693 # type: =head2
18694 #. type: =head2
18695 #: ../src/guestfs-actions.pod:6459
18696 msgid "guestfs_swapon_device"
18697 msgstr ""
18698
18699 # type: verbatim
18700 #. type: verbatim
18701 #: ../src/guestfs-actions.pod:6461
18702 #, no-wrap
18703 msgid ""
18704 " int\n"
18705 " guestfs_swapon_device (guestfs_h *g,\n"
18706 "                        const char *device);\n"
18707 "\n"
18708 msgstr ""
18709
18710 # type: textblock
18711 #. type: textblock
18712 #: ../src/guestfs-actions.pod:6465
18713 msgid ""
18714 "This command enables the libguestfs appliance to use the swap device or "
18715 "partition named C<device>.  The increased memory is made available for all "
18716 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
18717 msgstr ""
18718
18719 # type: textblock
18720 #. type: textblock
18721 #: ../src/guestfs-actions.pod:6470 ../fish/guestfish-actions.pod:4364
18722 msgid ""
18723 "Note that you should not swap to existing guest swap partitions unless you "
18724 "know what you are doing.  They may contain hibernation information, or other "
18725 "information that the guest doesn't want you to trash.  You also risk leaking "
18726 "information about the host to the guest this way.  Instead, attach a new "
18727 "host device to the guest and swap on that."
18728 msgstr ""
18729
18730 # type: =head2
18731 #. type: =head2
18732 #: ../src/guestfs-actions.pod:6481
18733 msgid "guestfs_swapon_file"
18734 msgstr ""
18735
18736 # type: verbatim
18737 #. type: verbatim
18738 #: ../src/guestfs-actions.pod:6483
18739 #, no-wrap
18740 msgid ""
18741 " int\n"
18742 " guestfs_swapon_file (guestfs_h *g,\n"
18743 "                      const char *file);\n"
18744 "\n"
18745 msgstr ""
18746
18747 # type: textblock
18748 #. type: textblock
18749 #: ../src/guestfs-actions.pod:6487
18750 msgid ""
18751 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
18752 "notes."
18753 msgstr ""
18754
18755 # type: =head2
18756 #. type: =head2
18757 #: ../src/guestfs-actions.pod:6494
18758 msgid "guestfs_swapon_label"
18759 msgstr ""
18760
18761 # type: verbatim
18762 #. type: verbatim
18763 #: ../src/guestfs-actions.pod:6496
18764 #, no-wrap
18765 msgid ""
18766 " int\n"
18767 " guestfs_swapon_label (guestfs_h *g,\n"
18768 "                       const char *label);\n"
18769 "\n"
18770 msgstr ""
18771
18772 # type: textblock
18773 #. type: textblock
18774 #: ../src/guestfs-actions.pod:6500
18775 msgid ""
18776 "This command enables swap to a labeled swap partition.  See "
18777 "C<guestfs_swapon_device> for other notes."
18778 msgstr ""
18779
18780 # type: =head2
18781 #. type: =head2
18782 #: ../src/guestfs-actions.pod:6507
18783 msgid "guestfs_swapon_uuid"
18784 msgstr ""
18785
18786 # type: verbatim
18787 #. type: verbatim
18788 #: ../src/guestfs-actions.pod:6509
18789 #, no-wrap
18790 msgid ""
18791 " int\n"
18792 " guestfs_swapon_uuid (guestfs_h *g,\n"
18793 "                      const char *uuid);\n"
18794 "\n"
18795 msgstr ""
18796
18797 # type: textblock
18798 #. type: textblock
18799 #: ../src/guestfs-actions.pod:6513
18800 msgid ""
18801 "This command enables swap to a swap partition with the given UUID.  See "
18802 "C<guestfs_swapon_device> for other notes."
18803 msgstr ""
18804
18805 # type: =head2
18806 #. type: =head2
18807 #: ../src/guestfs-actions.pod:6520
18808 msgid "guestfs_sync"
18809 msgstr ""
18810
18811 # type: verbatim
18812 #. type: verbatim
18813 #: ../src/guestfs-actions.pod:6522
18814 #, no-wrap
18815 msgid ""
18816 " int\n"
18817 " guestfs_sync (guestfs_h *g);\n"
18818 "\n"
18819 msgstr ""
18820
18821 # type: textblock
18822 #. type: textblock
18823 #: ../src/guestfs-actions.pod:6525 ../fish/guestfish-actions.pod:4396
18824 msgid ""
18825 "This syncs the disk, so that any writes are flushed through to the "
18826 "underlying disk image."
18827 msgstr ""
18828
18829 # type: textblock
18830 #. type: textblock
18831 #: ../src/guestfs-actions.pod:6528 ../fish/guestfish-actions.pod:4399
18832 msgid ""
18833 "You should always call this if you have modified a disk image, before "
18834 "closing the handle."
18835 msgstr ""
18836
18837 # type: =head2
18838 #. type: =head2
18839 #: ../src/guestfs-actions.pod:6535
18840 msgid "guestfs_tail"
18841 msgstr ""
18842
18843 # type: verbatim
18844 #. type: verbatim
18845 #: ../src/guestfs-actions.pod:6537
18846 #, no-wrap
18847 msgid ""
18848 " char **\n"
18849 " guestfs_tail (guestfs_h *g,\n"
18850 "               const char *path);\n"
18851 "\n"
18852 msgstr ""
18853
18854 # type: textblock
18855 #. type: textblock
18856 #: ../src/guestfs-actions.pod:6541 ../fish/guestfish-actions.pod:4406
18857 msgid ""
18858 "This command returns up to the last 10 lines of a file as a list of strings."
18859 msgstr ""
18860
18861 # type: =head2
18862 #. type: =head2
18863 #: ../src/guestfs-actions.pod:6553
18864 msgid "guestfs_tail_n"
18865 msgstr ""
18866
18867 # type: verbatim
18868 #. type: verbatim
18869 #: ../src/guestfs-actions.pod:6555
18870 #, no-wrap
18871 msgid ""
18872 " char **\n"
18873 " guestfs_tail_n (guestfs_h *g,\n"
18874 "                 int nrlines,\n"
18875 "                 const char *path);\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: textblock
18880 #. type: textblock
18881 #: ../src/guestfs-actions.pod:6560 ../fish/guestfish-actions.pod:4416
18882 msgid ""
18883 "If the parameter C<nrlines> is a positive number, this returns the last "
18884 "C<nrlines> lines of the file C<path>."
18885 msgstr ""
18886
18887 # type: textblock
18888 #. type: textblock
18889 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4419
18890 msgid ""
18891 "If the parameter C<nrlines> is a negative number, this returns lines from "
18892 "the file C<path>, starting with the C<-nrlines>th line."
18893 msgstr ""
18894
18895 # type: =head2
18896 #. type: =head2
18897 #: ../src/guestfs-actions.pod:6577
18898 msgid "guestfs_tar_in"
18899 msgstr ""
18900
18901 # type: verbatim
18902 #. type: verbatim
18903 #: ../src/guestfs-actions.pod:6579
18904 #, no-wrap
18905 msgid ""
18906 " int\n"
18907 " guestfs_tar_in (guestfs_h *g,\n"
18908 "                 const char *tarfile,\n"
18909 "                 const char *directory);\n"
18910 "\n"
18911 msgstr ""
18912
18913 # type: textblock
18914 #. type: textblock
18915 #: ../src/guestfs-actions.pod:6584 ../fish/guestfish-actions.pod:4431
18916 msgid ""
18917 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18918 "tar file) into C<directory>."
18919 msgstr ""
18920
18921 # type: textblock
18922 #. type: textblock
18923 #: ../src/guestfs-actions.pod:6587
18924 msgid ""
18925 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18926 msgstr ""
18927
18928 # type: textblock
18929 #. type: textblock
18930 #: ../src/guestfs-actions.pod:6592 ../src/guestfs-actions.pod:6609
18931 #: ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6641
18932 msgid "(Added in 1.0.3)"
18933 msgstr ""
18934
18935 # type: =head2
18936 #. type: =head2
18937 #: ../src/guestfs-actions.pod:6594
18938 msgid "guestfs_tar_out"
18939 msgstr ""
18940
18941 # type: verbatim
18942 #. type: verbatim
18943 #: ../src/guestfs-actions.pod:6596
18944 #, no-wrap
18945 msgid ""
18946 " int\n"
18947 " guestfs_tar_out (guestfs_h *g,\n"
18948 "                  const char *directory,\n"
18949 "                  const char *tarfile);\n"
18950 "\n"
18951 msgstr ""
18952
18953 # type: textblock
18954 #. type: textblock
18955 #: ../src/guestfs-actions.pod:6601 ../fish/guestfish-actions.pod:4443
18956 msgid ""
18957 "This command packs the contents of C<directory> and downloads it to local "
18958 "file C<tarfile>."
18959 msgstr ""
18960
18961 # type: textblock
18962 #. type: textblock
18963 #: ../src/guestfs-actions.pod:6604
18964 msgid ""
18965 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18966 "C<guestfs_txz_out>."
18967 msgstr ""
18968
18969 # type: =head2
18970 #. type: =head2
18971 #: ../src/guestfs-actions.pod:6611
18972 msgid "guestfs_tgz_in"
18973 msgstr ""
18974
18975 # type: verbatim
18976 #. type: verbatim
18977 #: ../src/guestfs-actions.pod:6613
18978 #, no-wrap
18979 msgid ""
18980 " int\n"
18981 " guestfs_tgz_in (guestfs_h *g,\n"
18982 "                 const char *tarball,\n"
18983 "                 const char *directory);\n"
18984 "\n"
18985 msgstr ""
18986
18987 # type: textblock
18988 #. type: textblock
18989 #: ../src/guestfs-actions.pod:6618 ../fish/guestfish-actions.pod:4455
18990 msgid ""
18991 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18992 "tar file) into C<directory>."
18993 msgstr ""
18994
18995 # type: textblock
18996 #. type: textblock
18997 #: ../src/guestfs-actions.pod:6621
18998 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18999 msgstr ""
19000
19001 # type: =head2
19002 #. type: =head2
19003 #: ../src/guestfs-actions.pod:6627
19004 msgid "guestfs_tgz_out"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #. type: verbatim
19009 #: ../src/guestfs-actions.pod:6629
19010 #, no-wrap
19011 msgid ""
19012 " int\n"
19013 " guestfs_tgz_out (guestfs_h *g,\n"
19014 "                  const char *directory,\n"
19015 "                  const char *tarball);\n"
19016 "\n"
19017 msgstr ""
19018
19019 # type: textblock
19020 #. type: textblock
19021 #: ../src/guestfs-actions.pod:6634 ../fish/guestfish-actions.pod:4466
19022 msgid ""
19023 "This command packs the contents of C<directory> and downloads it to local "
19024 "file C<tarball>."
19025 msgstr ""
19026
19027 # type: textblock
19028 #. type: textblock
19029 #: ../src/guestfs-actions.pod:6637
19030 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
19031 msgstr ""
19032
19033 # type: =head2
19034 #. type: =head2
19035 #: ../src/guestfs-actions.pod:6643
19036 msgid "guestfs_touch"
19037 msgstr ""
19038
19039 # type: verbatim
19040 #. type: verbatim
19041 #: ../src/guestfs-actions.pod:6645
19042 #, no-wrap
19043 msgid ""
19044 " int\n"
19045 " guestfs_touch (guestfs_h *g,\n"
19046 "                const char *path);\n"
19047 "\n"
19048 msgstr ""
19049
19050 # type: textblock
19051 #. type: textblock
19052 #: ../src/guestfs-actions.pod:6649 ../fish/guestfish-actions.pod:4477
19053 msgid ""
19054 "Touch acts like the L<touch(1)> command.  It can be used to update the "
19055 "timestamps on a file, or, if the file does not exist, to create a new zero-"
19056 "length file."
19057 msgstr ""
19058
19059 # type: textblock
19060 #. type: textblock
19061 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4481
19062 msgid ""
19063 "This command only works on regular files, and will fail on other file types "
19064 "such as directories, symbolic links, block special etc."
19065 msgstr ""
19066
19067 # type: =head2
19068 #. type: =head2
19069 #: ../src/guestfs-actions.pod:6660
19070 msgid "guestfs_truncate"
19071 msgstr ""
19072
19073 # type: verbatim
19074 #. type: verbatim
19075 #: ../src/guestfs-actions.pod:6662
19076 #, no-wrap
19077 msgid ""
19078 " int\n"
19079 " guestfs_truncate (guestfs_h *g,\n"
19080 "                   const char *path);\n"
19081 "\n"
19082 msgstr ""
19083
19084 # type: textblock
19085 #. type: textblock
19086 #: ../src/guestfs-actions.pod:6666 ../fish/guestfish-actions.pod:4488
19087 msgid ""
19088 "This command truncates C<path> to a zero-length file.  The file must exist "
19089 "already."
19090 msgstr ""
19091
19092 # type: =head2
19093 #. type: =head2
19094 #: ../src/guestfs-actions.pod:6673
19095 msgid "guestfs_truncate_size"
19096 msgstr ""
19097
19098 # type: verbatim
19099 #. type: verbatim
19100 #: ../src/guestfs-actions.pod:6675
19101 #, no-wrap
19102 msgid ""
19103 " int\n"
19104 " guestfs_truncate_size (guestfs_h *g,\n"
19105 "                        const char *path,\n"
19106 "                        int64_t size);\n"
19107 "\n"
19108 msgstr ""
19109
19110 # type: textblock
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4495
19113 msgid ""
19114 "This command truncates C<path> to size C<size> bytes.  The file must exist "
19115 "already."
19116 msgstr ""
19117
19118 # type: textblock
19119 #. type: textblock
19120 #: ../src/guestfs-actions.pod:6683
19121 msgid ""
19122 "If the current file size is less than C<size> then the file is extended to "
19123 "the required size with zero bytes.  This creates a sparse file (ie. disk "
19124 "blocks are not allocated for the file until you write to it).  To create a "
19125 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
19126 msgstr ""
19127
19128 # type: =head2
19129 #. type: =head2
19130 #: ../src/guestfs-actions.pod:6693
19131 msgid "guestfs_tune2fs_l"
19132 msgstr ""
19133
19134 # type: verbatim
19135 #. type: verbatim
19136 #: ../src/guestfs-actions.pod:6695
19137 #, no-wrap
19138 msgid ""
19139 " char **\n"
19140 " guestfs_tune2fs_l (guestfs_h *g,\n"
19141 "                    const char *device);\n"
19142 "\n"
19143 msgstr ""
19144
19145 # type: textblock
19146 #. type: textblock
19147 #: ../src/guestfs-actions.pod:6699 ../fish/guestfish-actions.pod:4508
19148 msgid ""
19149 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19150 "C<device>."
19151 msgstr ""
19152
19153 # type: textblock
19154 #. type: textblock
19155 #: ../src/guestfs-actions.pod:6702 ../fish/guestfish-actions.pod:4511
19156 msgid ""
19157 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19158 "for more details.  The list of fields returned isn't clearly defined, and "
19159 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19160 "and the filesystem itself."
19161 msgstr ""
19162
19163 # type: =head2
19164 #. type: =head2
19165 #: ../src/guestfs-actions.pod:6715
19166 msgid "guestfs_txz_in"
19167 msgstr ""
19168
19169 # type: verbatim
19170 #. type: verbatim
19171 #: ../src/guestfs-actions.pod:6717
19172 #, no-wrap
19173 msgid ""
19174 " int\n"
19175 " guestfs_txz_in (guestfs_h *g,\n"
19176 "                 const char *tarball,\n"
19177 "                 const char *directory);\n"
19178 "\n"
19179 msgstr ""
19180
19181 # type: textblock
19182 #. type: textblock
19183 #: ../src/guestfs-actions.pod:6722 ../fish/guestfish-actions.pod:4520
19184 msgid ""
19185 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19186 "tar file) into C<directory>."
19187 msgstr ""
19188
19189 # type: =head2
19190 #. type: =head2
19191 #: ../src/guestfs-actions.pod:6729
19192 msgid "guestfs_txz_out"
19193 msgstr ""
19194
19195 # type: verbatim
19196 #. type: verbatim
19197 #: ../src/guestfs-actions.pod:6731
19198 #, no-wrap
19199 msgid ""
19200 " int\n"
19201 " guestfs_txz_out (guestfs_h *g,\n"
19202 "                  const char *directory,\n"
19203 "                  const char *tarball);\n"
19204 "\n"
19205 msgstr ""
19206
19207 # type: textblock
19208 #. type: textblock
19209 #: ../src/guestfs-actions.pod:6736 ../fish/guestfish-actions.pod:4529
19210 msgid ""
19211 "This command packs the contents of C<directory> and downloads it to local "
19212 "file C<tarball> (as an xz compressed tar archive)."
19213 msgstr ""
19214
19215 # type: =head2
19216 #. type: =head2
19217 #: ../src/guestfs-actions.pod:6743
19218 msgid "guestfs_umask"
19219 msgstr ""
19220
19221 # type: verbatim
19222 #. type: verbatim
19223 #: ../src/guestfs-actions.pod:6745
19224 #, no-wrap
19225 msgid ""
19226 " int\n"
19227 " guestfs_umask (guestfs_h *g,\n"
19228 "                int mask);\n"
19229 "\n"
19230 msgstr ""
19231
19232 # type: textblock
19233 #. type: textblock
19234 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4538
19235 msgid ""
19236 "This function sets the mask used for creating new files and device nodes to "
19237 "C<mask & 0777>."
19238 msgstr ""
19239
19240 # type: textblock
19241 #. type: textblock
19242 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4541
19243 msgid ""
19244 "Typical umask values would be C<022> which creates new files with "
19245 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19246 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19247 msgstr ""
19248
19249 # type: textblock
19250 #. type: textblock
19251 #: ../src/guestfs-actions.pod:6757 ../fish/guestfish-actions.pod:4546
19252 msgid ""
19253 "The default umask is C<022>.  This is important because it means that "
19254 "directories and device nodes will be created with C<0644> or C<0755> mode "
19255 "even if you specify C<0777>."
19256 msgstr ""
19257
19258 # type: textblock
19259 #. type: textblock
19260 #: ../src/guestfs-actions.pod:6761
19261 msgid ""
19262 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19263 "C<guestfs_mkdir>."
19264 msgstr ""
19265
19266 # type: textblock
19267 #. type: textblock
19268 #: ../src/guestfs-actions.pod:6764 ../fish/guestfish-actions.pod:4553
19269 msgid "This call returns the previous umask."
19270 msgstr ""
19271
19272 # type: =head2
19273 #. type: =head2
19274 #: ../src/guestfs-actions.pod:6770
19275 msgid "guestfs_umount"
19276 msgstr ""
19277
19278 # type: verbatim
19279 #. type: verbatim
19280 #: ../src/guestfs-actions.pod:6772
19281 #, no-wrap
19282 msgid ""
19283 " int\n"
19284 " guestfs_umount (guestfs_h *g,\n"
19285 "                 const char *pathordevice);\n"
19286 "\n"
19287 msgstr ""
19288
19289 # type: textblock
19290 #. type: textblock
19291 #: ../src/guestfs-actions.pod:6776 ../fish/guestfish-actions.pod:4561
19292 msgid ""
19293 "This unmounts the given filesystem.  The filesystem may be specified either "
19294 "by its mountpoint (path) or the device which contains the filesystem."
19295 msgstr ""
19296
19297 # type: =head2
19298 #. type: =head2
19299 #: ../src/guestfs-actions.pod:6784
19300 msgid "guestfs_umount_all"
19301 msgstr ""
19302
19303 # type: verbatim
19304 #. type: verbatim
19305 #: ../src/guestfs-actions.pod:6786
19306 #, no-wrap
19307 msgid ""
19308 " int\n"
19309 " guestfs_umount_all (guestfs_h *g);\n"
19310 "\n"
19311 msgstr ""
19312
19313 # type: textblock
19314 #. type: textblock
19315 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4571
19316 msgid "This unmounts all mounted filesystems."
19317 msgstr ""
19318
19319 # type: textblock
19320 #. type: textblock
19321 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4573
19322 msgid "Some internal mounts are not unmounted by this call."
19323 msgstr ""
19324
19325 # type: =head2
19326 #. type: =head2
19327 #: ../src/guestfs-actions.pod:6797
19328 msgid "guestfs_upload"
19329 msgstr ""
19330
19331 # type: verbatim
19332 #. type: verbatim
19333 #: ../src/guestfs-actions.pod:6799
19334 #, no-wrap
19335 msgid ""
19336 " int\n"
19337 " guestfs_upload (guestfs_h *g,\n"
19338 "                 const char *filename,\n"
19339 "                 const char *remotefilename);\n"
19340 "\n"
19341 msgstr ""
19342
19343 # type: textblock
19344 #. type: textblock
19345 #: ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6828
19346 #: ../fish/guestfish-actions.pod:4579 ../fish/guestfish-actions.pod:4592
19347 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19348 msgstr ""
19349
19350 # type: textblock
19351 #. type: textblock
19352 #: ../src/guestfs-actions.pod:6809
19353 msgid "See also C<guestfs_download>."
19354 msgstr ""
19355
19356 # type: =head2
19357 #. type: =head2
19358 #: ../src/guestfs-actions.pod:6820
19359 msgid "guestfs_upload_offset"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #. type: verbatim
19364 #: ../src/guestfs-actions.pod:6822
19365 #, no-wrap
19366 msgid ""
19367 " int\n"
19368 " guestfs_upload_offset (guestfs_h *g,\n"
19369 "                        const char *filename,\n"
19370 "                        const char *remotefilename,\n"
19371 "                        int64_t offset);\n"
19372 "\n"
19373 msgstr ""
19374
19375 # type: textblock
19376 #. type: textblock
19377 #: ../src/guestfs-actions.pod:6831 ../fish/guestfish-actions.pod:4595
19378 msgid ""
19379 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19380 "The intention is to overwrite parts of existing files or devices, although "
19381 "if a non-existant file is specified then it is created with a \"hole\" "
19382 "before C<offset>.  The size of the data written is implicit in the size of "
19383 "the source C<filename>."
19384 msgstr ""
19385
19386 # type: textblock
19387 #. type: textblock
19388 #: ../src/guestfs-actions.pod:6838
19389 msgid ""
19390 "Note that there is no limit on the amount of data that can be uploaded with "
19391 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19392 "full amount unless an error occurs."
19393 msgstr ""
19394
19395 # type: textblock
19396 #. type: textblock
19397 #: ../src/guestfs-actions.pod:6843
19398 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19399 msgstr ""
19400
19401 # type: =head2
19402 #. type: =head2
19403 #: ../src/guestfs-actions.pod:6854
19404 msgid "guestfs_utimens"
19405 msgstr ""
19406
19407 # type: verbatim
19408 #. type: verbatim
19409 #: ../src/guestfs-actions.pod:6856
19410 #, no-wrap
19411 msgid ""
19412 " int\n"
19413 " guestfs_utimens (guestfs_h *g,\n"
19414 "                  const char *path,\n"
19415 "                  int64_t atsecs,\n"
19416 "                  int64_t atnsecs,\n"
19417 "                  int64_t mtsecs,\n"
19418 "                  int64_t mtnsecs);\n"
19419 "\n"
19420 msgstr ""
19421
19422 # type: textblock
19423 #. type: textblock
19424 #: ../src/guestfs-actions.pod:6864 ../fish/guestfish-actions.pod:4615
19425 msgid "This command sets the timestamps of a file with nanosecond precision."
19426 msgstr ""
19427
19428 # type: textblock
19429 #. type: textblock
19430 #: ../src/guestfs-actions.pod:6867 ../fish/guestfish-actions.pod:4618
19431 msgid ""
19432 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
19433 "from the epoch."
19434 msgstr ""
19435
19436 # type: textblock
19437 #. type: textblock
19438 #: ../src/guestfs-actions.pod:6870 ../fish/guestfish-actions.pod:4621
19439 msgid ""
19440 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
19441 "nanoseconds from the epoch."
19442 msgstr ""
19443
19444 # type: textblock
19445 #. type: textblock
19446 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4624
19447 msgid ""
19448 "If the C<*nsecs> field contains the special value C<-1> then the "
19449 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
19450 "ignored in this case)."
19451 msgstr ""
19452
19453 # type: textblock
19454 #. type: textblock
19455 #: ../src/guestfs-actions.pod:6877 ../fish/guestfish-actions.pod:4628
19456 msgid ""
19457 "If the C<*nsecs> field contains the special value C<-2> then the "
19458 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
19459 "in this case)."
19460 msgstr ""
19461
19462 # type: =head2
19463 #. type: =head2
19464 #: ../src/guestfs-actions.pod:6885 ../src/guestfs-structs.pod:175
19465 msgid "guestfs_version"
19466 msgstr ""
19467
19468 # type: verbatim
19469 #. type: verbatim
19470 #: ../src/guestfs-actions.pod:6887
19471 #, no-wrap
19472 msgid ""
19473 " struct guestfs_version *\n"
19474 " guestfs_version (guestfs_h *g);\n"
19475 "\n"
19476 msgstr ""
19477
19478 # type: textblock
19479 #. type: textblock
19480 #: ../src/guestfs-actions.pod:6890 ../fish/guestfish-actions.pod:4636
19481 msgid ""
19482 "Return the libguestfs version number that the program is linked against."
19483 msgstr ""
19484
19485 # type: textblock
19486 #. type: textblock
19487 #: ../src/guestfs-actions.pod:6893 ../fish/guestfish-actions.pod:4639
19488 msgid ""
19489 "Note that because of dynamic linking this is not necessarily the version of "
19490 "libguestfs that you compiled against.  You can compile the program, and then "
19491 "at runtime dynamically link against a completely different C<libguestfs.so> "
19492 "library."
19493 msgstr ""
19494
19495 # type: textblock
19496 #. type: textblock
19497 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4644
19498 msgid ""
19499 "This call was added in version C<1.0.58>.  In previous versions of "
19500 "libguestfs there was no way to get the version number.  From C code you can "
19501 "use dynamic linker functions to find out if this symbol exists (if it "
19502 "doesn't, then it's an earlier version)."
19503 msgstr ""
19504
19505 # type: textblock
19506 #. type: textblock
19507 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4650
19508 msgid ""
19509 "The call returns a structure with four elements.  The first three (C<major>, "
19510 "C<minor> and C<release>) are numbers and correspond to the usual version "
19511 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
19512 "but may be used for distro-specific information."
19513 msgstr ""
19514
19515 # type: textblock
19516 #. type: textblock
19517 #: ../src/guestfs-actions.pod:6910 ../fish/guestfish-actions.pod:4656
19518 msgid ""
19519 "To construct the original version string: C<$major.$minor.$release$extra>"
19520 msgstr ""
19521
19522 # type: textblock
19523 #. type: textblock
19524 #: ../src/guestfs-actions.pod:6913 ../fish/guestfish-actions.pod:4659
19525 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
19526 msgstr ""
19527
19528 # type: textblock
19529 #. type: textblock
19530 #: ../src/guestfs-actions.pod:6915
19531 msgid ""
19532 "I<Note:> Don't use this call to test for availability of features.  In "
19533 "enterprise distributions we backport features from later versions into "
19534 "earlier versions, making this an unreliable way to test for features.  Use "
19535 "C<guestfs_available> instead."
19536 msgstr ""
19537
19538 # type: textblock
19539 #. type: textblock
19540 #: ../src/guestfs-actions.pod:6921
19541 msgid ""
19542 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
19543 "error.  I<The caller must call C<guestfs_free_version> after use>."
19544 msgstr ""
19545
19546 # type: textblock
19547 #. type: textblock
19548 #: ../src/guestfs-actions.pod:6925
19549 msgid "(Added in 1.0.58)"
19550 msgstr ""
19551
19552 # type: =head2
19553 #. type: =head2
19554 #: ../src/guestfs-actions.pod:6927
19555 msgid "guestfs_vfs_label"
19556 msgstr ""
19557
19558 # type: verbatim
19559 #. type: verbatim
19560 #: ../src/guestfs-actions.pod:6929
19561 #, no-wrap
19562 msgid ""
19563 " char *\n"
19564 " guestfs_vfs_label (guestfs_h *g,\n"
19565 "                    const char *device);\n"
19566 "\n"
19567 msgstr ""
19568
19569 # type: textblock
19570 #. type: textblock
19571 #: ../src/guestfs-actions.pod:6933 ../fish/guestfish-actions.pod:4671
19572 msgid "This returns the filesystem label of the filesystem on C<device>."
19573 msgstr ""
19574
19575 # type: textblock
19576 #. type: textblock
19577 #: ../src/guestfs-actions.pod:6936 ../fish/guestfish-actions.pod:4674
19578 msgid "If the filesystem is unlabeled, this returns the empty string."
19579 msgstr ""
19580
19581 # type: textblock
19582 #. type: textblock
19583 #: ../src/guestfs-actions.pod:6938
19584 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19585 msgstr ""
19586
19587 # type: textblock
19588 #. type: textblock
19589 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6980
19590 msgid "(Added in 1.3.18)"
19591 msgstr ""
19592
19593 # type: =head2
19594 #. type: =head2
19595 #: ../src/guestfs-actions.pod:6945
19596 msgid "guestfs_vfs_type"
19597 msgstr ""
19598
19599 # type: verbatim
19600 #. type: verbatim
19601 #: ../src/guestfs-actions.pod:6947
19602 #, no-wrap
19603 msgid ""
19604 " char *\n"
19605 " guestfs_vfs_type (guestfs_h *g,\n"
19606 "                   const char *device);\n"
19607 "\n"
19608 msgstr ""
19609
19610 # type: textblock
19611 #. type: textblock
19612 #: ../src/guestfs-actions.pod:6951 ../fish/guestfish-actions.pod:4682
19613 msgid ""
19614 "This command gets the filesystem type corresponding to the filesystem on "
19615 "C<device>."
19616 msgstr ""
19617
19618 # type: textblock
19619 #. type: textblock
19620 #: ../src/guestfs-actions.pod:6954 ../fish/guestfish-actions.pod:4685
19621 msgid ""
19622 "For most filesystems, the result is the name of the Linux VFS module which "
19623 "would be used to mount this filesystem if you mounted it without specifying "
19624 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
19625 msgstr ""
19626
19627 # type: =head2
19628 #. type: =head2
19629 #: ../src/guestfs-actions.pod:6964
19630 msgid "guestfs_vfs_uuid"
19631 msgstr ""
19632
19633 # type: verbatim
19634 #. type: verbatim
19635 #: ../src/guestfs-actions.pod:6966
19636 #, no-wrap
19637 msgid ""
19638 " char *\n"
19639 " guestfs_vfs_uuid (guestfs_h *g,\n"
19640 "                   const char *device);\n"
19641 "\n"
19642 msgstr ""
19643
19644 # type: textblock
19645 #. type: textblock
19646 #: ../src/guestfs-actions.pod:6970 ../fish/guestfish-actions.pod:4694
19647 msgid "This returns the filesystem UUID of the filesystem on C<device>."
19648 msgstr ""
19649
19650 # type: textblock
19651 #. type: textblock
19652 #: ../src/guestfs-actions.pod:6973 ../fish/guestfish-actions.pod:4697
19653 msgid "If the filesystem does not have a UUID, this returns the empty string."
19654 msgstr ""
19655
19656 # type: textblock
19657 #. type: textblock
19658 #: ../src/guestfs-actions.pod:6975
19659 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19660 msgstr ""
19661
19662 # type: =head2
19663 #. type: =head2
19664 #: ../src/guestfs-actions.pod:6982
19665 msgid "guestfs_vg_activate"
19666 msgstr ""
19667
19668 # type: verbatim
19669 #. type: verbatim
19670 #: ../src/guestfs-actions.pod:6984
19671 #, no-wrap
19672 msgid ""
19673 " int\n"
19674 " guestfs_vg_activate (guestfs_h *g,\n"
19675 "                      int activate,\n"
19676 "                      char *const *volgroups);\n"
19677 "\n"
19678 msgstr ""
19679
19680 # type: textblock
19681 #. type: textblock
19682 #: ../src/guestfs-actions.pod:6989 ../fish/guestfish-actions.pod:4705
19683 msgid ""
19684 "This command activates or (if C<activate> is false) deactivates all logical "
19685 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
19686 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
19687 "deactivated, then those devices disappear."
19688 msgstr ""
19689
19690 # type: textblock
19691 #. type: textblock
19692 #: ../src/guestfs-actions.pod:6995 ../fish/guestfish-actions.pod:4711
19693 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
19694 msgstr ""
19695
19696 # type: textblock
19697 #. type: textblock
19698 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4713
19699 msgid ""
19700 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19701 "activated or deactivated."
19702 msgstr ""
19703
19704 # type: =head2
19705 #. type: =head2
19706 #: ../src/guestfs-actions.pod:7004
19707 msgid "guestfs_vg_activate_all"
19708 msgstr ""
19709
19710 # type: verbatim
19711 #. type: verbatim
19712 #: ../src/guestfs-actions.pod:7006
19713 #, no-wrap
19714 msgid ""
19715 " int\n"
19716 " guestfs_vg_activate_all (guestfs_h *g,\n"
19717 "                          int activate);\n"
19718 "\n"
19719 msgstr ""
19720
19721 # type: textblock
19722 #. type: textblock
19723 #: ../src/guestfs-actions.pod:7010 ../fish/guestfish-actions.pod:4720
19724 msgid ""
19725 "This command activates or (if C<activate> is false) deactivates all logical "
19726 "volumes in all volume groups.  If activated, then they are made known to the "
19727 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
19728 "those devices disappear."
19729 msgstr ""
19730
19731 # type: textblock
19732 #. type: textblock
19733 #: ../src/guestfs-actions.pod:7016 ../fish/guestfish-actions.pod:4726
19734 msgid "This command is the same as running C<vgchange -a y|n>"
19735 msgstr ""
19736
19737 # type: =head2
19738 #. type: =head2
19739 #: ../src/guestfs-actions.pod:7022
19740 msgid "guestfs_vgcreate"
19741 msgstr ""
19742
19743 # type: verbatim
19744 #. type: verbatim
19745 #: ../src/guestfs-actions.pod:7024
19746 #, no-wrap
19747 msgid ""
19748 " int\n"
19749 " guestfs_vgcreate (guestfs_h *g,\n"
19750 "                   const char *volgroup,\n"
19751 "                   char *const *physvols);\n"
19752 "\n"
19753 msgstr ""
19754
19755 # type: textblock
19756 #. type: textblock
19757 #: ../src/guestfs-actions.pod:7029 ../fish/guestfish-actions.pod:4732
19758 msgid ""
19759 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19760 "of physical volumes C<physvols>."
19761 msgstr ""
19762
19763 # type: =head2
19764 #. type: =head2
19765 #: ../src/guestfs-actions.pod:7036
19766 msgid "guestfs_vglvuuids"
19767 msgstr ""
19768
19769 # type: verbatim
19770 #. type: verbatim
19771 #: ../src/guestfs-actions.pod:7038
19772 #, no-wrap
19773 msgid ""
19774 " char **\n"
19775 " guestfs_vglvuuids (guestfs_h *g,\n"
19776 "                    const char *vgname);\n"
19777 "\n"
19778 msgstr ""
19779
19780 # type: textblock
19781 #. type: textblock
19782 #: ../src/guestfs-actions.pod:7042 ../fish/guestfish-actions.pod:4739
19783 msgid ""
19784 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19785 "volumes created in this volume group."
19786 msgstr ""
19787
19788 # type: textblock
19789 #. type: textblock
19790 #: ../src/guestfs-actions.pod:7045
19791 msgid ""
19792 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19793 "associate logical volumes and volume groups."
19794 msgstr ""
19795
19796 # type: textblock
19797 #. type: textblock
19798 #: ../src/guestfs-actions.pod:7048
19799 msgid "See also C<guestfs_vgpvuuids>."
19800 msgstr ""
19801
19802 # type: =head2
19803 #. type: =head2
19804 #: ../src/guestfs-actions.pod:7056
19805 msgid "guestfs_vgpvuuids"
19806 msgstr ""
19807
19808 # type: verbatim
19809 #. type: verbatim
19810 #: ../src/guestfs-actions.pod:7058
19811 #, no-wrap
19812 msgid ""
19813 " char **\n"
19814 " guestfs_vgpvuuids (guestfs_h *g,\n"
19815 "                    const char *vgname);\n"
19816 "\n"
19817 msgstr ""
19818
19819 # type: textblock
19820 #. type: textblock
19821 #: ../src/guestfs-actions.pod:7062 ../fish/guestfish-actions.pod:4751
19822 msgid ""
19823 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19824 "volumes that this volume group resides on."
19825 msgstr ""
19826
19827 # type: textblock
19828 #. type: textblock
19829 #: ../src/guestfs-actions.pod:7065
19830 msgid ""
19831 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19832 "associate physical volumes and volume groups."
19833 msgstr ""
19834
19835 # type: textblock
19836 #. type: textblock
19837 #: ../src/guestfs-actions.pod:7068
19838 msgid "See also C<guestfs_vglvuuids>."
19839 msgstr ""
19840
19841 # type: =head2
19842 #. type: =head2
19843 #: ../src/guestfs-actions.pod:7076
19844 msgid "guestfs_vgremove"
19845 msgstr ""
19846
19847 # type: verbatim
19848 #. type: verbatim
19849 #: ../src/guestfs-actions.pod:7078
19850 #, no-wrap
19851 msgid ""
19852 " int\n"
19853 " guestfs_vgremove (guestfs_h *g,\n"
19854 "                   const char *vgname);\n"
19855 "\n"
19856 msgstr ""
19857
19858 # type: textblock
19859 #. type: textblock
19860 #: ../src/guestfs-actions.pod:7082 ../fish/guestfish-actions.pod:4763
19861 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19862 msgstr ""
19863
19864 # type: textblock
19865 #. type: textblock
19866 #: ../src/guestfs-actions.pod:7084 ../fish/guestfish-actions.pod:4765
19867 msgid ""
19868 "This also forcibly removes all logical volumes in the volume group (if any)."
19869 msgstr ""
19870
19871 # type: =head2
19872 #. type: =head2
19873 #: ../src/guestfs-actions.pod:7091
19874 msgid "guestfs_vgrename"
19875 msgstr ""
19876
19877 # type: verbatim
19878 #. type: verbatim
19879 #: ../src/guestfs-actions.pod:7093
19880 #, no-wrap
19881 msgid ""
19882 " int\n"
19883 " guestfs_vgrename (guestfs_h *g,\n"
19884 "                   const char *volgroup,\n"
19885 "                   const char *newvolgroup);\n"
19886 "\n"
19887 msgstr ""
19888
19889 # type: textblock
19890 #. type: textblock
19891 #: ../src/guestfs-actions.pod:7098 ../fish/guestfish-actions.pod:4772
19892 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19893 msgstr ""
19894
19895 # type: =head2
19896 #. type: =head2
19897 #: ../src/guestfs-actions.pod:7104
19898 msgid "guestfs_vgs"
19899 msgstr ""
19900
19901 # type: verbatim
19902 #. type: verbatim
19903 #: ../src/guestfs-actions.pod:7106
19904 #, no-wrap
19905 msgid ""
19906 " char **\n"
19907 " guestfs_vgs (guestfs_h *g);\n"
19908 "\n"
19909 msgstr ""
19910
19911 # type: textblock
19912 #. type: textblock
19913 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4778
19914 msgid ""
19915 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19916 "> command."
19917 msgstr ""
19918
19919 # type: textblock
19920 #. type: textblock
19921 #: ../src/guestfs-actions.pod:7112 ../fish/guestfish-actions.pod:4781
19922 msgid ""
19923 "This returns a list of just the volume group names that were detected (eg. "
19924 "C<VolGroup00>)."
19925 msgstr ""
19926
19927 # type: textblock
19928 #. type: textblock
19929 #: ../src/guestfs-actions.pod:7115
19930 msgid "See also C<guestfs_vgs_full>."
19931 msgstr ""
19932
19933 # type: =head2
19934 #. type: =head2
19935 #: ../src/guestfs-actions.pod:7123
19936 msgid "guestfs_vgs_full"
19937 msgstr ""
19938
19939 # type: verbatim
19940 #. type: verbatim
19941 #: ../src/guestfs-actions.pod:7125
19942 #, no-wrap
19943 msgid ""
19944 " struct guestfs_lvm_vg_list *\n"
19945 " guestfs_vgs_full (guestfs_h *g);\n"
19946 "\n"
19947 msgstr ""
19948
19949 # type: textblock
19950 #. type: textblock
19951 #: ../src/guestfs-actions.pod:7128 ../fish/guestfish-actions.pod:4790
19952 msgid ""
19953 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19954 "> command.  The \"full\" version includes all fields."
19955 msgstr ""
19956
19957 # type: textblock
19958 #. type: textblock
19959 #: ../src/guestfs-actions.pod:7131
19960 msgid ""
19961 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19962 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19963 msgstr ""
19964
19965 # type: =head2
19966 #. type: =head2
19967 #: ../src/guestfs-actions.pod:7137
19968 msgid "guestfs_vgscan"
19969 msgstr ""
19970
19971 # type: verbatim
19972 #. type: verbatim
19973 #: ../src/guestfs-actions.pod:7139
19974 #, no-wrap
19975 msgid ""
19976 " int\n"
19977 " guestfs_vgscan (guestfs_h *g);\n"
19978 "\n"
19979 msgstr ""
19980
19981 # type: textblock
19982 #. type: textblock
19983 #: ../src/guestfs-actions.pod:7142 ../fish/guestfish-actions.pod:4797
19984 msgid ""
19985 "This rescans all block devices and rebuilds the list of LVM physical "
19986 "volumes, volume groups and logical volumes."
19987 msgstr ""
19988
19989 # type: =head2
19990 #. type: =head2
19991 #: ../src/guestfs-actions.pod:7149
19992 msgid "guestfs_vguuid"
19993 msgstr ""
19994
19995 # type: verbatim
19996 #. type: verbatim
19997 #: ../src/guestfs-actions.pod:7151
19998 #, no-wrap
19999 msgid ""
20000 " char *\n"
20001 " guestfs_vguuid (guestfs_h *g,\n"
20002 "                 const char *vgname);\n"
20003 "\n"
20004 msgstr ""
20005
20006 # type: textblock
20007 #. type: textblock
20008 #: ../src/guestfs-actions.pod:7155 ../fish/guestfish-actions.pod:4804
20009 msgid "This command returns the UUID of the LVM VG named C<vgname>."
20010 msgstr ""
20011
20012 # type: =head2
20013 #. type: =head2
20014 #: ../src/guestfs-actions.pod:7162
20015 msgid "guestfs_wait_ready"
20016 msgstr ""
20017
20018 # type: verbatim
20019 #. type: verbatim
20020 #: ../src/guestfs-actions.pod:7164
20021 #, no-wrap
20022 msgid ""
20023 " int\n"
20024 " guestfs_wait_ready (guestfs_h *g);\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: textblock
20029 #. type: textblock
20030 #: ../src/guestfs-actions.pod:7167
20031 msgid "This function is a no op."
20032 msgstr ""
20033
20034 # type: textblock
20035 #. type: textblock
20036 #: ../src/guestfs-actions.pod:7169
20037 msgid ""
20038 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
20039 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
20040 "is no longer necessary because C<guestfs_launch> now does the waiting."
20041 msgstr ""
20042
20043 # type: textblock
20044 #. type: textblock
20045 #: ../src/guestfs-actions.pod:7174
20046 msgid ""
20047 "If you see any calls to this function in code then you can just remove them, "
20048 "unless you want to retain compatibility with older versions of the API."
20049 msgstr ""
20050
20051 # type: =head2
20052 #. type: =head2
20053 #: ../src/guestfs-actions.pod:7182
20054 msgid "guestfs_wc_c"
20055 msgstr ""
20056
20057 # type: verbatim
20058 #. type: verbatim
20059 #: ../src/guestfs-actions.pod:7184
20060 #, no-wrap
20061 msgid ""
20062 " int\n"
20063 " guestfs_wc_c (guestfs_h *g,\n"
20064 "               const char *path);\n"
20065 "\n"
20066 msgstr ""
20067
20068 # type: textblock
20069 #. type: textblock
20070 #: ../src/guestfs-actions.pod:7188 ../fish/guestfish-actions.pod:4810
20071 msgid ""
20072 "This command counts the characters in a file, using the C<wc -c> external "
20073 "command."
20074 msgstr ""
20075
20076 # type: =head2
20077 #. type: =head2
20078 #: ../src/guestfs-actions.pod:7195
20079 msgid "guestfs_wc_l"
20080 msgstr ""
20081
20082 # type: verbatim
20083 #. type: verbatim
20084 #: ../src/guestfs-actions.pod:7197
20085 #, no-wrap
20086 msgid ""
20087 " int\n"
20088 " guestfs_wc_l (guestfs_h *g,\n"
20089 "               const char *path);\n"
20090 "\n"
20091 msgstr ""
20092
20093 # type: textblock
20094 #. type: textblock
20095 #: ../src/guestfs-actions.pod:7201 ../fish/guestfish-actions.pod:4817
20096 msgid ""
20097 "This command counts the lines in a file, using the C<wc -l> external command."
20098 msgstr ""
20099
20100 # type: =head2
20101 #. type: =head2
20102 #: ../src/guestfs-actions.pod:7208
20103 msgid "guestfs_wc_w"
20104 msgstr ""
20105
20106 # type: verbatim
20107 #. type: verbatim
20108 #: ../src/guestfs-actions.pod:7210
20109 #, no-wrap
20110 msgid ""
20111 " int\n"
20112 " guestfs_wc_w (guestfs_h *g,\n"
20113 "               const char *path);\n"
20114 "\n"
20115 msgstr ""
20116
20117 # type: textblock
20118 #. type: textblock
20119 #: ../src/guestfs-actions.pod:7214 ../fish/guestfish-actions.pod:4824
20120 msgid ""
20121 "This command counts the words in a file, using the C<wc -w> external command."
20122 msgstr ""
20123
20124 # type: =head2
20125 #. type: =head2
20126 #: ../src/guestfs-actions.pod:7221
20127 msgid "guestfs_write"
20128 msgstr ""
20129
20130 # type: verbatim
20131 #. type: verbatim
20132 #: ../src/guestfs-actions.pod:7223
20133 #, no-wrap
20134 msgid ""
20135 " int\n"
20136 " guestfs_write (guestfs_h *g,\n"
20137 "                const char *path,\n"
20138 "                const char *content,\n"
20139 "                size_t content_size);\n"
20140 "\n"
20141 msgstr ""
20142
20143 # type: textblock
20144 #. type: textblock
20145 #: ../src/guestfs-actions.pod:7229 ../fish/guestfish-actions.pod:4831
20146 msgid ""
20147 "This call creates a file called C<path>.  The content of the file is the "
20148 "string C<content> (which can contain any 8 bit data)."
20149 msgstr ""
20150
20151 # type: =head2
20152 #. type: =head2
20153 #: ../src/guestfs-actions.pod:7239
20154 msgid "guestfs_write_file"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #. type: verbatim
20159 #: ../src/guestfs-actions.pod:7241
20160 #, no-wrap
20161 msgid ""
20162 " int\n"
20163 " guestfs_write_file (guestfs_h *g,\n"
20164 "                     const char *path,\n"
20165 "                     const char *content,\n"
20166 "                     int size);\n"
20167 "\n"
20168 msgstr ""
20169
20170 # type: textblock
20171 #. type: textblock
20172 #: ../src/guestfs-actions.pod:7247 ../fish/guestfish-actions.pod:4841
20173 msgid ""
20174 "This call creates a file called C<path>.  The contents of the file is the "
20175 "string C<content> (which can contain any 8 bit data), with length C<size>."
20176 msgstr ""
20177
20178 # type: textblock
20179 #. type: textblock
20180 #: ../src/guestfs-actions.pod:7251 ../fish/guestfish-actions.pod:4845
20181 msgid ""
20182 "As a special case, if C<size> is C<0> then the length is calculated using "
20183 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20184 msgstr ""
20185
20186 # type: textblock
20187 #. type: textblock
20188 #: ../src/guestfs-actions.pod:7255 ../fish/guestfish-actions.pod:4849
20189 msgid ""
20190 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20191 "I<not> work, even if the length is specified."
20192 msgstr ""
20193
20194 # type: textblock
20195 #. type: textblock
20196 #: ../src/guestfs-actions.pod:7263 ../fish/guestfish-actions.pod:4855
20197 msgid ""
20198 "This function is deprecated.  In new code, use the C<write> call instead."
20199 msgstr ""
20200
20201 # type: =head2
20202 #. type: =head2
20203 #: ../src/guestfs-actions.pod:7272
20204 msgid "guestfs_zegrep"
20205 msgstr ""
20206
20207 # type: verbatim
20208 #. type: verbatim
20209 #: ../src/guestfs-actions.pod:7274
20210 #, no-wrap
20211 msgid ""
20212 " char **\n"
20213 " guestfs_zegrep (guestfs_h *g,\n"
20214 "                 const char *regex,\n"
20215 "                 const char *path);\n"
20216 "\n"
20217 msgstr ""
20218
20219 # type: textblock
20220 #. type: textblock
20221 #: ../src/guestfs-actions.pod:7279 ../fish/guestfish-actions.pod:4866
20222 msgid ""
20223 "This calls the external C<zegrep> program and returns the matching lines."
20224 msgstr ""
20225
20226 # type: =head2
20227 #. type: =head2
20228 #: ../src/guestfs-actions.pod:7291
20229 msgid "guestfs_zegrepi"
20230 msgstr ""
20231
20232 # type: verbatim
20233 #. type: verbatim
20234 #: ../src/guestfs-actions.pod:7293
20235 #, no-wrap
20236 msgid ""
20237 " char **\n"
20238 " guestfs_zegrepi (guestfs_h *g,\n"
20239 "                  const char *regex,\n"
20240 "                  const char *path);\n"
20241 "\n"
20242 msgstr ""
20243
20244 # type: textblock
20245 #. type: textblock
20246 #: ../src/guestfs-actions.pod:7298 ../fish/guestfish-actions.pod:4876
20247 msgid ""
20248 "This calls the external C<zegrep -i> program and returns the matching lines."
20249 msgstr ""
20250
20251 # type: =head2
20252 #. type: =head2
20253 #: ../src/guestfs-actions.pod:7310
20254 msgid "guestfs_zero"
20255 msgstr ""
20256
20257 # type: verbatim
20258 #. type: verbatim
20259 #: ../src/guestfs-actions.pod:7312
20260 #, no-wrap
20261 msgid ""
20262 " int\n"
20263 " guestfs_zero (guestfs_h *g,\n"
20264 "               const char *device);\n"
20265 "\n"
20266 msgstr ""
20267
20268 # type: textblock
20269 #. type: textblock
20270 #: ../src/guestfs-actions.pod:7316 ../fish/guestfish-actions.pod:4886
20271 msgid "This command writes zeroes over the first few blocks of C<device>."
20272 msgstr ""
20273
20274 # type: textblock
20275 #. type: textblock
20276 #: ../src/guestfs-actions.pod:7318 ../fish/guestfish-actions.pod:4888
20277 msgid ""
20278 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20279 "securely wipe the device).  It should be sufficient to remove any partition "
20280 "tables, filesystem superblocks and so on."
20281 msgstr ""
20282
20283 # type: textblock
20284 #. type: textblock
20285 #: ../src/guestfs-actions.pod:7322
20286 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
20287 msgstr ""
20288
20289 # type: =head2
20290 #. type: =head2
20291 #: ../src/guestfs-actions.pod:7333
20292 msgid "guestfs_zero_device"
20293 msgstr ""
20294
20295 # type: verbatim
20296 #. type: verbatim
20297 #: ../src/guestfs-actions.pod:7335
20298 #, no-wrap
20299 msgid ""
20300 " int\n"
20301 " guestfs_zero_device (guestfs_h *g,\n"
20302 "                      const char *device);\n"
20303 "\n"
20304 msgstr ""
20305
20306 # type: textblock
20307 #. type: textblock
20308 #: ../src/guestfs-actions.pod:7339
20309 msgid ""
20310 "This command writes zeroes over the entire C<device>.  Compare with "
20311 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20312 msgstr ""
20313
20314 # type: textblock
20315 #. type: textblock
20316 #: ../src/guestfs-actions.pod:7353
20317 msgid "(Added in 1.3.1)"
20318 msgstr ""
20319
20320 # type: =head2
20321 #. type: =head2
20322 #: ../src/guestfs-actions.pod:7355
20323 msgid "guestfs_zerofree"
20324 msgstr ""
20325
20326 # type: verbatim
20327 #. type: verbatim
20328 #: ../src/guestfs-actions.pod:7357
20329 #, no-wrap
20330 msgid ""
20331 " int\n"
20332 " guestfs_zerofree (guestfs_h *g,\n"
20333 "                   const char *device);\n"
20334 "\n"
20335 msgstr ""
20336
20337 # type: textblock
20338 #. type: textblock
20339 #: ../src/guestfs-actions.pod:7361 ../fish/guestfish-actions.pod:4909
20340 msgid ""
20341 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20342 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20343 "possible to compress the filesystem more effectively."
20344 msgstr ""
20345
20346 # type: textblock
20347 #. type: textblock
20348 #: ../src/guestfs-actions.pod:7366 ../fish/guestfish-actions.pod:4914
20349 msgid "You should B<not> run this program if the filesystem is mounted."
20350 msgstr ""
20351
20352 # type: textblock
20353 #. type: textblock
20354 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4917
20355 msgid ""
20356 "It is possible that using this program can damage the filesystem or data on "
20357 "the filesystem."
20358 msgstr ""
20359
20360 # type: =head2
20361 #. type: =head2
20362 #: ../src/guestfs-actions.pod:7376
20363 msgid "guestfs_zfgrep"
20364 msgstr ""
20365
20366 # type: verbatim
20367 #. type: verbatim
20368 #: ../src/guestfs-actions.pod:7378
20369 #, no-wrap
20370 msgid ""
20371 " char **\n"
20372 " guestfs_zfgrep (guestfs_h *g,\n"
20373 "                 const char *pattern,\n"
20374 "                 const char *path);\n"
20375 "\n"
20376 msgstr ""
20377
20378 # type: textblock
20379 #. type: textblock
20380 #: ../src/guestfs-actions.pod:7383 ../fish/guestfish-actions.pod:4924
20381 msgid ""
20382 "This calls the external C<zfgrep> program and returns the matching lines."
20383 msgstr ""
20384
20385 # type: =head2
20386 #. type: =head2
20387 #: ../src/guestfs-actions.pod:7395
20388 msgid "guestfs_zfgrepi"
20389 msgstr ""
20390
20391 # type: verbatim
20392 #. type: verbatim
20393 #: ../src/guestfs-actions.pod:7397
20394 #, no-wrap
20395 msgid ""
20396 " char **\n"
20397 " guestfs_zfgrepi (guestfs_h *g,\n"
20398 "                  const char *pattern,\n"
20399 "                  const char *path);\n"
20400 "\n"
20401 msgstr ""
20402
20403 # type: textblock
20404 #. type: textblock
20405 #: ../src/guestfs-actions.pod:7402 ../fish/guestfish-actions.pod:4934
20406 msgid ""
20407 "This calls the external C<zfgrep -i> program and returns the matching lines."
20408 msgstr ""
20409
20410 # type: =head2
20411 #. type: =head2
20412 #: ../src/guestfs-actions.pod:7414
20413 msgid "guestfs_zfile"
20414 msgstr ""
20415
20416 # type: verbatim
20417 #. type: verbatim
20418 #: ../src/guestfs-actions.pod:7416
20419 #, no-wrap
20420 msgid ""
20421 " char *\n"
20422 " guestfs_zfile (guestfs_h *g,\n"
20423 "                const char *meth,\n"
20424 "                const char *path);\n"
20425 "\n"
20426 msgstr ""
20427
20428 # type: textblock
20429 #. type: textblock
20430 #: ../src/guestfs-actions.pod:7421 ../fish/guestfish-actions.pod:4944
20431 msgid ""
20432 "This command runs C<file> after first decompressing C<path> using C<method>."
20433 msgstr ""
20434
20435 # type: textblock
20436 #. type: textblock
20437 #: ../src/guestfs-actions.pod:7424 ../fish/guestfish-actions.pod:4947
20438 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
20439 msgstr ""
20440
20441 # type: textblock
20442 #. type: textblock
20443 #: ../src/guestfs-actions.pod:7426
20444 msgid ""
20445 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
20446 "files."
20447 msgstr ""
20448
20449 # type: textblock
20450 #. type: textblock
20451 #: ../src/guestfs-actions.pod:7432 ../fish/guestfish-actions.pod:4952
20452 msgid ""
20453 "This function is deprecated.  In new code, use the C<file> call instead."
20454 msgstr ""
20455
20456 # type: =head2
20457 #. type: =head2
20458 #: ../src/guestfs-actions.pod:7441
20459 msgid "guestfs_zgrep"
20460 msgstr ""
20461
20462 # type: verbatim
20463 #. type: verbatim
20464 #: ../src/guestfs-actions.pod:7443
20465 #, no-wrap
20466 msgid ""
20467 " char **\n"
20468 " guestfs_zgrep (guestfs_h *g,\n"
20469 "                const char *regex,\n"
20470 "                const char *path);\n"
20471 "\n"
20472 msgstr ""
20473
20474 # type: textblock
20475 #. type: textblock
20476 #: ../src/guestfs-actions.pod:7448 ../fish/guestfish-actions.pod:4963
20477 msgid ""
20478 "This calls the external C<zgrep> program and returns the matching lines."
20479 msgstr ""
20480
20481 # type: =head2
20482 #. type: =head2
20483 #: ../src/guestfs-actions.pod:7460
20484 msgid "guestfs_zgrepi"
20485 msgstr ""
20486
20487 # type: verbatim
20488 #. type: verbatim
20489 #: ../src/guestfs-actions.pod:7462
20490 #, no-wrap
20491 msgid ""
20492 " char **\n"
20493 " guestfs_zgrepi (guestfs_h *g,\n"
20494 "                 const char *regex,\n"
20495 "                 const char *path);\n"
20496 "\n"
20497 msgstr ""
20498
20499 # type: textblock
20500 #. type: textblock
20501 #: ../src/guestfs-actions.pod:7467 ../fish/guestfish-actions.pod:4973
20502 msgid ""
20503 "This calls the external C<zgrep -i> program and returns the matching lines."
20504 msgstr ""
20505
20506 # type: =item
20507 #. type: =item
20508 #: ../src/guestfs-availability.pod:3
20509 msgid "B<augeas>"
20510 msgstr ""
20511
20512 # type: textblock
20513 #. type: textblock
20514 #: ../src/guestfs-availability.pod:5
20515 msgid ""
20516 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
20517 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
20518 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
20519 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
20520 "L</guestfs_aug_save> L</guestfs_aug_set>"
20521 msgstr ""
20522
20523 # type: =item
20524 #. type: =item
20525 #: ../src/guestfs-availability.pod:21
20526 msgid "B<inotify>"
20527 msgstr ""
20528
20529 # type: textblock
20530 #. type: textblock
20531 #: ../src/guestfs-availability.pod:23
20532 msgid ""
20533 "The following functions: L</guestfs_inotify_add_watch> L</"
20534 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
20535 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
20536 msgstr ""
20537
20538 # type: =item
20539 #. type: =item
20540 #: ../src/guestfs-availability.pod:31
20541 msgid "B<linuxfsuuid>"
20542 msgstr ""
20543
20544 # type: textblock
20545 #. type: textblock
20546 #: ../src/guestfs-availability.pod:33
20547 msgid ""
20548 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
20549 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
20550 msgstr ""
20551
20552 # type: =item
20553 #. type: =item
20554 #: ../src/guestfs-availability.pod:40
20555 msgid "B<linuxmodules>"
20556 msgstr ""
20557
20558 # type: textblock
20559 #. type: textblock
20560 #: ../src/guestfs-availability.pod:42
20561 msgid "The following functions: L</guestfs_modprobe>"
20562 msgstr ""
20563
20564 # type: =item
20565 #. type: =item
20566 #: ../src/guestfs-availability.pod:45
20567 msgid "B<linuxxattrs>"
20568 msgstr ""
20569
20570 # type: textblock
20571 #. type: textblock
20572 #: ../src/guestfs-availability.pod:47
20573 msgid ""
20574 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
20575 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
20576 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
20577 "guestfs_setxattr>"
20578 msgstr ""
20579
20580 # type: =item
20581 #. type: =item
20582 #: ../src/guestfs-availability.pod:58
20583 msgid "B<luks>"
20584 msgstr ""
20585
20586 # type: textblock
20587 #. type: textblock
20588 #: ../src/guestfs-availability.pod:60
20589 msgid ""
20590 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
20591 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
20592 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
20593 msgstr ""
20594
20595 # type: =item
20596 #. type: =item
20597 #: ../src/guestfs-availability.pod:69
20598 msgid "B<lvm2>"
20599 msgstr ""
20600
20601 # type: textblock
20602 #. type: textblock
20603 #: ../src/guestfs-availability.pod:71
20604 msgid ""
20605 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
20606 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
20607 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
20608 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
20609 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
20610 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
20611 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
20612 msgstr ""
20613
20614 # type: =item
20615 #. type: =item
20616 #: ../src/guestfs-availability.pod:94
20617 msgid "B<mknod>"
20618 msgstr ""
20619
20620 # type: textblock
20621 #. type: textblock
20622 #: ../src/guestfs-availability.pod:96
20623 msgid ""
20624 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
20625 "guestfs_mknod_b> L</guestfs_mknod_c>"
20626 msgstr ""
20627
20628 # type: =item
20629 #. type: =item
20630 #: ../src/guestfs-availability.pod:102
20631 msgid "B<ntfs3g>"
20632 msgstr ""
20633
20634 # type: textblock
20635 #. type: textblock
20636 #: ../src/guestfs-availability.pod:104
20637 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20638 msgstr ""
20639
20640 # type: =item
20641 #. type: =item
20642 #: ../src/guestfs-availability.pod:107
20643 msgid "B<ntfsprogs>"
20644 msgstr ""
20645
20646 # type: textblock
20647 #. type: textblock
20648 #: ../src/guestfs-availability.pod:109
20649 msgid ""
20650 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
20651 msgstr ""
20652
20653 # type: =item
20654 #. type: =item
20655 #: ../src/guestfs-availability.pod:113
20656 msgid "B<realpath>"
20657 msgstr ""
20658
20659 # type: textblock
20660 #. type: textblock
20661 #: ../src/guestfs-availability.pod:115
20662 msgid "The following functions: L</guestfs_realpath>"
20663 msgstr ""
20664
20665 # type: =item
20666 #. type: =item
20667 #: ../src/guestfs-availability.pod:118
20668 msgid "B<scrub>"
20669 msgstr ""
20670
20671 # type: textblock
20672 #. type: textblock
20673 #: ../src/guestfs-availability.pod:120
20674 msgid ""
20675 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
20676 "guestfs_scrub_freespace>"
20677 msgstr ""
20678
20679 # type: =item
20680 #. type: =item
20681 #: ../src/guestfs-availability.pod:125
20682 msgid "B<selinux>"
20683 msgstr ""
20684
20685 # type: textblock
20686 #. type: textblock
20687 #: ../src/guestfs-availability.pod:127
20688 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20689 msgstr ""
20690
20691 # type: =item
20692 #. type: =item
20693 #: ../src/guestfs-availability.pod:131
20694 msgid "B<xz>"
20695 msgstr ""
20696
20697 # type: textblock
20698 #. type: textblock
20699 #: ../src/guestfs-availability.pod:133
20700 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20701 msgstr ""
20702
20703 # type: =item
20704 #. type: =item
20705 #: ../src/guestfs-availability.pod:137
20706 msgid "B<zerofree>"
20707 msgstr ""
20708
20709 # type: textblock
20710 #. type: textblock
20711 #: ../src/guestfs-availability.pod:139
20712 msgid "The following functions: L</guestfs_zerofree>"
20713 msgstr ""
20714
20715 # type: =head2
20716 #. type: =head2
20717 #: ../src/guestfs-structs.pod:1
20718 msgid "guestfs_int_bool"
20719 msgstr ""
20720
20721 # type: verbatim
20722 #. type: verbatim
20723 #: ../src/guestfs-structs.pod:3
20724 #, no-wrap
20725 msgid ""
20726 " struct guestfs_int_bool {\n"
20727 "   int32_t i;\n"
20728 "   int32_t b;\n"
20729 " };\n"
20730 " \n"
20731 msgstr ""
20732
20733 # type: verbatim
20734 #. type: verbatim
20735 #: ../src/guestfs-structs.pod:8
20736 #, no-wrap
20737 msgid ""
20738 " struct guestfs_int_bool_list {\n"
20739 "   uint32_t len; /* Number of elements in list. */\n"
20740 "   struct guestfs_int_bool *val; /* Elements. */\n"
20741 " };\n"
20742 " \n"
20743 msgstr ""
20744
20745 # type: verbatim
20746 #. type: verbatim
20747 #: ../src/guestfs-structs.pod:13
20748 #, no-wrap
20749 msgid ""
20750 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
20751 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
20752 "\n"
20753 msgstr ""
20754
20755 # type: =head2
20756 #. type: =head2
20757 #: ../src/guestfs-structs.pod:16
20758 msgid "guestfs_lvm_pv"
20759 msgstr ""
20760
20761 # type: verbatim
20762 #. type: verbatim
20763 #: ../src/guestfs-structs.pod:18
20764 #, no-wrap
20765 msgid ""
20766 " struct guestfs_lvm_pv {\n"
20767 "   char *pv_name;\n"
20768 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20769 "   char pv_uuid[32];\n"
20770 "   char *pv_fmt;\n"
20771 "   uint64_t pv_size;\n"
20772 "   uint64_t dev_size;\n"
20773 "   uint64_t pv_free;\n"
20774 "   uint64_t pv_used;\n"
20775 "   char *pv_attr;\n"
20776 "   int64_t pv_pe_count;\n"
20777 "   int64_t pv_pe_alloc_count;\n"
20778 "   char *pv_tags;\n"
20779 "   uint64_t pe_start;\n"
20780 "   int64_t pv_mda_count;\n"
20781 "   uint64_t pv_mda_free;\n"
20782 " };\n"
20783 " \n"
20784 msgstr ""
20785
20786 # type: verbatim
20787 #. type: verbatim
20788 #: ../src/guestfs-structs.pod:36
20789 #, no-wrap
20790 msgid ""
20791 " struct guestfs_lvm_pv_list {\n"
20792 "   uint32_t len; /* Number of elements in list. */\n"
20793 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20794 " };\n"
20795 " \n"
20796 msgstr ""
20797
20798 # type: verbatim
20799 #. type: verbatim
20800 #: ../src/guestfs-structs.pod:41
20801 #, no-wrap
20802 msgid ""
20803 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20804 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20805 "\n"
20806 msgstr ""
20807
20808 # type: =head2
20809 #. type: =head2
20810 #: ../src/guestfs-structs.pod:44
20811 msgid "guestfs_lvm_vg"
20812 msgstr ""
20813
20814 # type: verbatim
20815 #. type: verbatim
20816 #: ../src/guestfs-structs.pod:46
20817 #, no-wrap
20818 msgid ""
20819 " struct guestfs_lvm_vg {\n"
20820 "   char *vg_name;\n"
20821 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20822 "   char vg_uuid[32];\n"
20823 "   char *vg_fmt;\n"
20824 "   char *vg_attr;\n"
20825 "   uint64_t vg_size;\n"
20826 "   uint64_t vg_free;\n"
20827 "   char *vg_sysid;\n"
20828 "   uint64_t vg_extent_size;\n"
20829 "   int64_t vg_extent_count;\n"
20830 "   int64_t vg_free_count;\n"
20831 "   int64_t max_lv;\n"
20832 "   int64_t max_pv;\n"
20833 "   int64_t pv_count;\n"
20834 "   int64_t lv_count;\n"
20835 "   int64_t snap_count;\n"
20836 "   int64_t vg_seqno;\n"
20837 "   char *vg_tags;\n"
20838 "   int64_t vg_mda_count;\n"
20839 "   uint64_t vg_mda_free;\n"
20840 " };\n"
20841 " \n"
20842 msgstr ""
20843
20844 # type: verbatim
20845 #. type: verbatim
20846 #: ../src/guestfs-structs.pod:69
20847 #, no-wrap
20848 msgid ""
20849 " struct guestfs_lvm_vg_list {\n"
20850 "   uint32_t len; /* Number of elements in list. */\n"
20851 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20852 " };\n"
20853 " \n"
20854 msgstr ""
20855
20856 # type: verbatim
20857 #. type: verbatim
20858 #: ../src/guestfs-structs.pod:74
20859 #, no-wrap
20860 msgid ""
20861 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20862 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20863 "\n"
20864 msgstr ""
20865
20866 # type: =head2
20867 #. type: =head2
20868 #: ../src/guestfs-structs.pod:77
20869 msgid "guestfs_lvm_lv"
20870 msgstr ""
20871
20872 # type: verbatim
20873 #. type: verbatim
20874 #: ../src/guestfs-structs.pod:79
20875 #, no-wrap
20876 msgid ""
20877 " struct guestfs_lvm_lv {\n"
20878 "   char *lv_name;\n"
20879 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20880 "   char lv_uuid[32];\n"
20881 "   char *lv_attr;\n"
20882 "   int64_t lv_major;\n"
20883 "   int64_t lv_minor;\n"
20884 "   int64_t lv_kernel_major;\n"
20885 "   int64_t lv_kernel_minor;\n"
20886 "   uint64_t lv_size;\n"
20887 "   int64_t seg_count;\n"
20888 "   char *origin;\n"
20889 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20890 "   float snap_percent;\n"
20891 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20892 "   float copy_percent;\n"
20893 "   char *move_pv;\n"
20894 "   char *lv_tags;\n"
20895 "   char *mirror_log;\n"
20896 "   char *modules;\n"
20897 " };\n"
20898 " \n"
20899 msgstr ""
20900
20901 # type: verbatim
20902 #. type: verbatim
20903 #: ../src/guestfs-structs.pod:101
20904 #, no-wrap
20905 msgid ""
20906 " struct guestfs_lvm_lv_list {\n"
20907 "   uint32_t len; /* Number of elements in list. */\n"
20908 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20909 " };\n"
20910 " \n"
20911 msgstr ""
20912
20913 # type: verbatim
20914 #. type: verbatim
20915 #: ../src/guestfs-structs.pod:106
20916 #, no-wrap
20917 msgid ""
20918 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20919 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20920 "\n"
20921 msgstr ""
20922
20923 # type: verbatim
20924 #. type: verbatim
20925 #: ../src/guestfs-structs.pod:111
20926 #, no-wrap
20927 msgid ""
20928 " struct guestfs_stat {\n"
20929 "   int64_t dev;\n"
20930 "   int64_t ino;\n"
20931 "   int64_t mode;\n"
20932 "   int64_t nlink;\n"
20933 "   int64_t uid;\n"
20934 "   int64_t gid;\n"
20935 "   int64_t rdev;\n"
20936 "   int64_t size;\n"
20937 "   int64_t blksize;\n"
20938 "   int64_t blocks;\n"
20939 "   int64_t atime;\n"
20940 "   int64_t mtime;\n"
20941 "   int64_t ctime;\n"
20942 " };\n"
20943 " \n"
20944 msgstr ""
20945
20946 # type: verbatim
20947 #. type: verbatim
20948 #: ../src/guestfs-structs.pod:127
20949 #, no-wrap
20950 msgid ""
20951 " struct guestfs_stat_list {\n"
20952 "   uint32_t len; /* Number of elements in list. */\n"
20953 "   struct guestfs_stat *val; /* Elements. */\n"
20954 " };\n"
20955 " \n"
20956 msgstr ""
20957
20958 # type: verbatim
20959 #. type: verbatim
20960 #: ../src/guestfs-structs.pod:132
20961 #, no-wrap
20962 msgid ""
20963 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20964 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20965 "\n"
20966 msgstr ""
20967
20968 # type: verbatim
20969 #. type: verbatim
20970 #: ../src/guestfs-structs.pod:137
20971 #, no-wrap
20972 msgid ""
20973 " struct guestfs_statvfs {\n"
20974 "   int64_t bsize;\n"
20975 "   int64_t frsize;\n"
20976 "   int64_t blocks;\n"
20977 "   int64_t bfree;\n"
20978 "   int64_t bavail;\n"
20979 "   int64_t files;\n"
20980 "   int64_t ffree;\n"
20981 "   int64_t favail;\n"
20982 "   int64_t fsid;\n"
20983 "   int64_t flag;\n"
20984 "   int64_t namemax;\n"
20985 " };\n"
20986 " \n"
20987 msgstr ""
20988
20989 # type: verbatim
20990 #. type: verbatim
20991 #: ../src/guestfs-structs.pod:151
20992 #, no-wrap
20993 msgid ""
20994 " struct guestfs_statvfs_list {\n"
20995 "   uint32_t len; /* Number of elements in list. */\n"
20996 "   struct guestfs_statvfs *val; /* Elements. */\n"
20997 " };\n"
20998 " \n"
20999 msgstr ""
21000
21001 # type: verbatim
21002 #. type: verbatim
21003 #: ../src/guestfs-structs.pod:156
21004 #, no-wrap
21005 msgid ""
21006 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
21007 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
21008 "\n"
21009 msgstr ""
21010
21011 # type: =head2
21012 #. type: =head2
21013 #: ../src/guestfs-structs.pod:159
21014 msgid "guestfs_dirent"
21015 msgstr ""
21016
21017 # type: verbatim
21018 #. type: verbatim
21019 #: ../src/guestfs-structs.pod:161
21020 #, no-wrap
21021 msgid ""
21022 " struct guestfs_dirent {\n"
21023 "   int64_t ino;\n"
21024 "   char ftyp;\n"
21025 "   char *name;\n"
21026 " };\n"
21027 " \n"
21028 msgstr ""
21029
21030 # type: verbatim
21031 #. type: verbatim
21032 #: ../src/guestfs-structs.pod:167
21033 #, no-wrap
21034 msgid ""
21035 " struct guestfs_dirent_list {\n"
21036 "   uint32_t len; /* Number of elements in list. */\n"
21037 "   struct guestfs_dirent *val; /* Elements. */\n"
21038 " };\n"
21039 " \n"
21040 msgstr ""
21041
21042 # type: verbatim
21043 #. type: verbatim
21044 #: ../src/guestfs-structs.pod:172
21045 #, no-wrap
21046 msgid ""
21047 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
21048 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
21049 "\n"
21050 msgstr ""
21051
21052 # type: verbatim
21053 #. type: verbatim
21054 #: ../src/guestfs-structs.pod:177
21055 #, no-wrap
21056 msgid ""
21057 " struct guestfs_version {\n"
21058 "   int64_t major;\n"
21059 "   int64_t minor;\n"
21060 "   int64_t release;\n"
21061 "   char *extra;\n"
21062 " };\n"
21063 " \n"
21064 msgstr ""
21065
21066 # type: verbatim
21067 #. type: verbatim
21068 #: ../src/guestfs-structs.pod:184
21069 #, no-wrap
21070 msgid ""
21071 " struct guestfs_version_list {\n"
21072 "   uint32_t len; /* Number of elements in list. */\n"
21073 "   struct guestfs_version *val; /* Elements. */\n"
21074 " };\n"
21075 " \n"
21076 msgstr ""
21077
21078 # type: verbatim
21079 #. type: verbatim
21080 #: ../src/guestfs-structs.pod:189
21081 #, no-wrap
21082 msgid ""
21083 " void guestfs_free_version (struct guestfs_free_version *);\n"
21084 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
21085 "\n"
21086 msgstr ""
21087
21088 # type: =head2
21089 #. type: =head2
21090 #: ../src/guestfs-structs.pod:192
21091 msgid "guestfs_xattr"
21092 msgstr ""
21093
21094 # type: verbatim
21095 #. type: verbatim
21096 #: ../src/guestfs-structs.pod:194
21097 #, no-wrap
21098 msgid ""
21099 " struct guestfs_xattr {\n"
21100 "   char *attrname;\n"
21101 "   /* The next two fields describe a byte array. */\n"
21102 "   uint32_t attrval_len;\n"
21103 "   char *attrval;\n"
21104 " };\n"
21105 " \n"
21106 msgstr ""
21107
21108 # type: verbatim
21109 #. type: verbatim
21110 #: ../src/guestfs-structs.pod:201
21111 #, no-wrap
21112 msgid ""
21113 " struct guestfs_xattr_list {\n"
21114 "   uint32_t len; /* Number of elements in list. */\n"
21115 "   struct guestfs_xattr *val; /* Elements. */\n"
21116 " };\n"
21117 " \n"
21118 msgstr ""
21119
21120 # type: verbatim
21121 #. type: verbatim
21122 #: ../src/guestfs-structs.pod:206
21123 #, no-wrap
21124 msgid ""
21125 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
21126 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
21127 "\n"
21128 msgstr ""
21129
21130 # type: =head2
21131 #. type: =head2
21132 #: ../src/guestfs-structs.pod:209
21133 msgid "guestfs_inotify_event"
21134 msgstr ""
21135
21136 # type: verbatim
21137 #. type: verbatim
21138 #: ../src/guestfs-structs.pod:211
21139 #, no-wrap
21140 msgid ""
21141 " struct guestfs_inotify_event {\n"
21142 "   int64_t in_wd;\n"
21143 "   uint32_t in_mask;\n"
21144 "   uint32_t in_cookie;\n"
21145 "   char *in_name;\n"
21146 " };\n"
21147 " \n"
21148 msgstr ""
21149
21150 # type: verbatim
21151 #. type: verbatim
21152 #: ../src/guestfs-structs.pod:218
21153 #, no-wrap
21154 msgid ""
21155 " struct guestfs_inotify_event_list {\n"
21156 "   uint32_t len; /* Number of elements in list. */\n"
21157 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21158 " };\n"
21159 " \n"
21160 msgstr ""
21161
21162 # type: verbatim
21163 #. type: verbatim
21164 #: ../src/guestfs-structs.pod:223
21165 #, no-wrap
21166 msgid ""
21167 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21168 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21169 "\n"
21170 msgstr ""
21171
21172 # type: =head2
21173 #. type: =head2
21174 #: ../src/guestfs-structs.pod:226
21175 msgid "guestfs_partition"
21176 msgstr ""
21177
21178 # type: verbatim
21179 #. type: verbatim
21180 #: ../src/guestfs-structs.pod:228
21181 #, no-wrap
21182 msgid ""
21183 " struct guestfs_partition {\n"
21184 "   int32_t part_num;\n"
21185 "   uint64_t part_start;\n"
21186 "   uint64_t part_end;\n"
21187 "   uint64_t part_size;\n"
21188 " };\n"
21189 " \n"
21190 msgstr ""
21191
21192 # type: verbatim
21193 #. type: verbatim
21194 #: ../src/guestfs-structs.pod:235
21195 #, no-wrap
21196 msgid ""
21197 " struct guestfs_partition_list {\n"
21198 "   uint32_t len; /* Number of elements in list. */\n"
21199 "   struct guestfs_partition *val; /* Elements. */\n"
21200 " };\n"
21201 " \n"
21202 msgstr ""
21203
21204 # type: verbatim
21205 #. type: verbatim
21206 #: ../src/guestfs-structs.pod:240
21207 #, no-wrap
21208 msgid ""
21209 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21210 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: =head2
21215 #. type: =head2
21216 #: ../src/guestfs-structs.pod:243
21217 msgid "guestfs_application"
21218 msgstr ""
21219
21220 # type: verbatim
21221 #. type: verbatim
21222 #: ../src/guestfs-structs.pod:245
21223 #, no-wrap
21224 msgid ""
21225 " struct guestfs_application {\n"
21226 "   char *app_name;\n"
21227 "   char *app_display_name;\n"
21228 "   int32_t app_epoch;\n"
21229 "   char *app_version;\n"
21230 "   char *app_release;\n"
21231 "   char *app_install_path;\n"
21232 "   char *app_trans_path;\n"
21233 "   char *app_publisher;\n"
21234 "   char *app_url;\n"
21235 "   char *app_source_package;\n"
21236 "   char *app_summary;\n"
21237 "   char *app_description;\n"
21238 " };\n"
21239 " \n"
21240 msgstr ""
21241
21242 # type: verbatim
21243 #. type: verbatim
21244 #: ../src/guestfs-structs.pod:260
21245 #, no-wrap
21246 msgid ""
21247 " struct guestfs_application_list {\n"
21248 "   uint32_t len; /* Number of elements in list. */\n"
21249 "   struct guestfs_application *val; /* Elements. */\n"
21250 " };\n"
21251 " \n"
21252 msgstr ""
21253
21254 # type: verbatim
21255 #. type: verbatim
21256 #: ../src/guestfs-structs.pod:265
21257 #, no-wrap
21258 msgid ""
21259 " void guestfs_free_application (struct guestfs_free_application *);\n"
21260 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21261 "\n"
21262 msgstr ""
21263
21264 # type: textblock
21265 #. type: textblock
21266 #: ../fish/guestfish.pod:5
21267 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21268 msgstr ""
21269
21270 # type: verbatim
21271 #. type: verbatim
21272 #: ../fish/guestfish.pod:9
21273 #, no-wrap
21274 msgid ""
21275 " guestfish [--options] [commands]\n"
21276 "\n"
21277 msgstr ""
21278
21279 # type: verbatim
21280 #. type: verbatim
21281 #: ../fish/guestfish.pod:11
21282 #, no-wrap
21283 msgid ""
21284 " guestfish\n"
21285 "\n"
21286 msgstr ""
21287
21288 # type: verbatim
21289 #. type: verbatim
21290 #: ../fish/guestfish.pod:13
21291 #, no-wrap
21292 msgid ""
21293 " guestfish [--ro|--rw] -a disk.img\n"
21294 "\n"
21295 msgstr ""
21296
21297 # type: verbatim
21298 #. type: verbatim
21299 #: ../fish/guestfish.pod:15
21300 #, no-wrap
21301 msgid ""
21302 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21303 "\n"
21304 msgstr ""
21305
21306 # type: verbatim
21307 #. type: verbatim
21308 #: ../fish/guestfish.pod:17
21309 #, no-wrap
21310 msgid ""
21311 " guestfish -d libvirt-domain\n"
21312 "\n"
21313 msgstr ""
21314
21315 # type: verbatim
21316 #. type: verbatim
21317 #: ../fish/guestfish.pod:19
21318 #, no-wrap
21319 msgid ""
21320 " guestfish [--ro|--rw] -a disk.img -i\n"
21321 "\n"
21322 msgstr ""
21323
21324 # type: verbatim
21325 #. type: verbatim
21326 #: ../fish/guestfish.pod:21
21327 #, no-wrap
21328 msgid ""
21329 " guestfish -d libvirt-domain -i\n"
21330 "\n"
21331 msgstr ""
21332
21333 # type: =head1
21334 #. type: =head1
21335 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
21336 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21337 msgid "WARNING"
21338 msgstr ""
21339
21340 # type: textblock
21341 #. type: textblock
21342 #: ../fish/guestfish.pod:25
21343 msgid ""
21344 "Using guestfish in read/write mode on live virtual machines can be "
21345 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21346 "option to use guestfish safely if the disk image or virtual machine might be "
21347 "live."
21348 msgstr ""
21349
21350 # type: textblock
21351 #. type: textblock
21352 #: ../fish/guestfish.pod:32
21353 msgid ""
21354 "Guestfish is a shell and command-line tool for examining and modifying "
21355 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21356 "functionality of the guestfs API, see L<guestfs(3)>."
21357 msgstr ""
21358
21359 # type: textblock
21360 #. type: textblock
21361 #: ../fish/guestfish.pod:36
21362 msgid ""
21363 "Guestfish gives you structured access to the libguestfs API, from shell "
21364 "scripts or the command line or interactively.  If you want to rescue a "
21365 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21366 "command."
21367 msgstr ""
21368
21369 # type: =head1
21370 #. type: =head1
21371 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:947
21372 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:63 ../tools/virt-tar.pl:50
21373 msgid "EXAMPLES"
21374 msgstr ""
21375
21376 # type: =head2
21377 #. type: =head2
21378 #: ../fish/guestfish.pod:43
21379 msgid "As an interactive shell"
21380 msgstr ""
21381
21382 # type: verbatim
21383 #. type: verbatim
21384 #: ../fish/guestfish.pod:45
21385 #, no-wrap
21386 msgid ""
21387 " $ guestfish\n"
21388 " \n"
21389 msgstr ""
21390
21391 # type: verbatim
21392 #. type: verbatim
21393 #: ../fish/guestfish.pod:47
21394 #, no-wrap
21395 msgid ""
21396 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21397 " editing virtual machine filesystems.\n"
21398 " \n"
21399 msgstr ""
21400
21401 # type: verbatim
21402 #. type: verbatim
21403 #: ../fish/guestfish.pod:50
21404 #, no-wrap
21405 msgid ""
21406 " Type: 'help' for a list of commands\n"
21407 "       'man' to read the manual\n"
21408 "       'quit' to quit the shell\n"
21409 " \n"
21410 msgstr ""
21411
21412 # type: verbatim
21413 #. type: verbatim
21414 #: ../fish/guestfish.pod:54
21415 #, no-wrap
21416 msgid ""
21417 " ><fs> add-ro disk.img\n"
21418 " ><fs> run\n"
21419 " ><fs> list-filesystems\n"
21420 " /dev/sda1: ext4\n"
21421 " /dev/vg_guest/lv_root: ext4\n"
21422 " /dev/vg_guest/lv_swap: swap\n"
21423 " ><fs> mount /dev/vg_guest/lv_root /\n"
21424 " ><fs> cat /etc/fstab\n"
21425 " # /etc/fstab\n"
21426 " # Created by anaconda\n"
21427 " [...]\n"
21428 " ><fs> exit\n"
21429 "\n"
21430 msgstr ""
21431
21432 # type: =head2
21433 #. type: =head2
21434 #: ../fish/guestfish.pod:67
21435 msgid "From shell scripts"
21436 msgstr ""
21437
21438 # type: textblock
21439 #. type: textblock
21440 #: ../fish/guestfish.pod:69
21441 msgid "Create a new C</etc/motd> file in a guest or disk image:"
21442 msgstr ""
21443
21444 # type: verbatim
21445 #. type: verbatim
21446 #: ../fish/guestfish.pod:71
21447 #, no-wrap
21448 msgid ""
21449 " guestfish <<_EOF_\n"
21450 " add disk.img\n"
21451 " run\n"
21452 " mount /dev/vg_guest/lv_root /\n"
21453 " write /etc/motd \"Welcome, new users\"\n"
21454 " _EOF_\n"
21455 "\n"
21456 msgstr ""
21457
21458 # type: textblock
21459 #. type: textblock
21460 #: ../fish/guestfish.pod:78
21461 msgid "List the LVM logical volumes in a disk image:"
21462 msgstr ""
21463
21464 # type: verbatim
21465 #. type: verbatim
21466 #: ../fish/guestfish.pod:80
21467 #, no-wrap
21468 msgid ""
21469 " guestfish -a disk.img --ro <<_EOF_\n"
21470 " run\n"
21471 " lvs\n"
21472 " _EOF_\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: textblock
21477 #. type: textblock
21478 #: ../fish/guestfish.pod:85
21479 msgid "List all the filesystems in a disk image:"
21480 msgstr ""
21481
21482 # type: verbatim
21483 #. type: verbatim
21484 #: ../fish/guestfish.pod:87
21485 #, no-wrap
21486 msgid ""
21487 " guestfish -a disk.img --ro <<_EOF_\n"
21488 " run\n"
21489 " list-filesystems\n"
21490 " _EOF_\n"
21491 "\n"
21492 msgstr ""
21493
21494 # type: =head2
21495 #. type: =head2
21496 #: ../fish/guestfish.pod:92
21497 msgid "On one command line"
21498 msgstr ""
21499
21500 # type: textblock
21501 #. type: textblock
21502 #: ../fish/guestfish.pod:94
21503 msgid "Update C</etc/resolv.conf> in a guest:"
21504 msgstr ""
21505
21506 # type: verbatim
21507 #. type: verbatim
21508 #: ../fish/guestfish.pod:96
21509 #, no-wrap
21510 msgid ""
21511 " guestfish \\\n"
21512 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
21513 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
21514 "\n"
21515 msgstr ""
21516
21517 # type: textblock
21518 #. type: textblock
21519 #: ../fish/guestfish.pod:100
21520 msgid "Edit C</boot/grub/grub.conf> interactively:"
21521 msgstr ""
21522
21523 # type: verbatim
21524 #. type: verbatim
21525 #: ../fish/guestfish.pod:102
21526 #, no-wrap
21527 msgid ""
21528 " guestfish --rw --add disk.img \\\n"
21529 "   --mount /dev/vg_guest/lv_root \\\n"
21530 "   --mount /dev/sda1:/boot \\\n"
21531 "   edit /boot/grub/grub.conf\n"
21532 "\n"
21533 msgstr ""
21534
21535 # type: =head2
21536 #. type: =head2
21537 #: ../fish/guestfish.pod:107
21538 msgid "Mount disks automatically"
21539 msgstr ""
21540
21541 # type: textblock
21542 #. type: textblock
21543 #: ../fish/guestfish.pod:109
21544 msgid ""
21545 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
21546 msgstr ""
21547
21548 # type: verbatim
21549 #. type: verbatim
21550 #: ../fish/guestfish.pod:112
21551 #, no-wrap
21552 msgid ""
21553 " guestfish --ro -a disk.img -i cat /etc/group\n"
21554 "\n"
21555 msgstr ""
21556
21557 # type: verbatim
21558 #. type: verbatim
21559 #: ../fish/guestfish.pod:114
21560 #, no-wrap
21561 msgid ""
21562 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
21563 "\n"
21564 msgstr ""
21565
21566 # type: textblock
21567 #. type: textblock
21568 #: ../fish/guestfish.pod:116
21569 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
21570 msgstr ""
21571
21572 # type: verbatim
21573 #. type: verbatim
21574 #: ../fish/guestfish.pod:118
21575 #, no-wrap
21576 msgid ""
21577 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
21578 "\n"
21579 msgstr ""
21580
21581 # type: =head2
21582 #. type: =head2
21583 #: ../fish/guestfish.pod:120
21584 msgid "As a script interpreter"
21585 msgstr ""
21586
21587 # type: textblock
21588 #. type: textblock
21589 #: ../fish/guestfish.pod:122
21590 msgid "Create a 100MB disk containing an ext2-formatted partition:"
21591 msgstr ""
21592
21593 # type: verbatim
21594 #. type: verbatim
21595 #: ../fish/guestfish.pod:124
21596 #, no-wrap
21597 msgid ""
21598 " #!/usr/bin/guestfish -f\n"
21599 " sparse test1.img 100M\n"
21600 " run\n"
21601 " part-disk /dev/sda mbr\n"
21602 " mkfs ext2 /dev/sda1\n"
21603 "\n"
21604 msgstr ""
21605
21606 # type: =head2
21607 #. type: =head2
21608 #: ../fish/guestfish.pod:130
21609 msgid "Start with a prepared disk"
21610 msgstr ""
21611
21612 # type: textblock
21613 #. type: textblock
21614 #: ../fish/guestfish.pod:132
21615 msgid ""
21616 "An alternate way to create a 100MB disk called C<test1.img> containing a "
21617 "single ext2-formatted partition:"
21618 msgstr ""
21619
21620 # type: verbatim
21621 #. type: verbatim
21622 #: ../fish/guestfish.pod:135
21623 #, no-wrap
21624 msgid ""
21625 " guestfish -N fs\n"
21626 "\n"
21627 msgstr ""
21628
21629 # type: textblock
21630 #. type: textblock
21631 #: ../fish/guestfish.pod:137
21632 msgid "To list what is available do:"
21633 msgstr ""
21634
21635 # type: verbatim
21636 #. type: verbatim
21637 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:938
21638 #, no-wrap
21639 msgid ""
21640 " guestfish -N help | less\n"
21641 "\n"
21642 msgstr ""
21643
21644 # type: =head2
21645 #. type: =head2
21646 #: ../fish/guestfish.pod:141
21647 msgid "Remote control"
21648 msgstr ""
21649
21650 # type: verbatim
21651 #. type: verbatim
21652 #: ../fish/guestfish.pod:143
21653 #, no-wrap
21654 msgid ""
21655 " eval \"`guestfish --listen`\"\n"
21656 " guestfish --remote add-ro disk.img\n"
21657 " guestfish --remote run\n"
21658 " guestfish --remote lvs\n"
21659 "\n"
21660 msgstr ""
21661
21662 # type: =head1
21663 #. type: =head1
21664 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
21665 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:81
21666 #: ../tools/virt-win-reg.pl:96 ../tools/virt-list-filesystems.pl:53
21667 #: ../tools/virt-tar.pl:103 ../tools/virt-make-fs.pl:153
21668 #: ../tools/virt-list-partitions.pl:54
21669 msgid "OPTIONS"
21670 msgstr ""
21671
21672 # type: =item
21673 #. type: =item
21674 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
21675 #: ../tools/virt-edit.pl:89 ../tools/virt-win-reg.pl:104
21676 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-tar.pl:111
21677 #: ../tools/virt-make-fs.pl:161 ../tools/virt-list-partitions.pl:62
21678 msgid "B<--help>"
21679 msgstr ""
21680
21681 # type: textblock
21682 #. type: textblock
21683 #: ../fish/guestfish.pod:154
21684 msgid "Displays general help on options."
21685 msgstr ""
21686
21687 # type: =item
21688 #. type: =item
21689 #: ../fish/guestfish.pod:156
21690 msgid "B<-h>"
21691 msgstr ""
21692
21693 # type: =item
21694 #. type: =item
21695 #: ../fish/guestfish.pod:158
21696 msgid "B<--cmd-help>"
21697 msgstr ""
21698
21699 # type: textblock
21700 #. type: textblock
21701 #: ../fish/guestfish.pod:160
21702 msgid "Lists all available guestfish commands."
21703 msgstr ""
21704
21705 # type: =item
21706 #. type: =item
21707 #: ../fish/guestfish.pod:162
21708 msgid "B<-h cmd>"
21709 msgstr ""
21710
21711 # type: =item
21712 #. type: =item
21713 #: ../fish/guestfish.pod:164
21714 msgid "B<--cmd-help cmd>"
21715 msgstr ""
21716
21717 # type: textblock
21718 #. type: textblock
21719 #: ../fish/guestfish.pod:166
21720 msgid "Displays detailed help on a single command C<cmd>."
21721 msgstr ""
21722
21723 # type: =item
21724 #. type: =item
21725 #: ../fish/guestfish.pod:168
21726 msgid "B<-a image>"
21727 msgstr ""
21728
21729 # type: =item
21730 #. type: =item
21731 #: ../fish/guestfish.pod:170
21732 msgid "B<--add image>"
21733 msgstr ""
21734
21735 # type: textblock
21736 #. type: textblock
21737 #: ../fish/guestfish.pod:172
21738 msgid "Add a block device or virtual machine image to the shell."
21739 msgstr ""
21740
21741 # type: textblock
21742 #. type: textblock
21743 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
21744 msgid ""
21745 "The format of the disk image is auto-detected.  To override this and force a "
21746 "particular format use the I<--format=..> option."
21747 msgstr ""
21748
21749 # type: textblock
21750 #. type: textblock
21751 #: ../fish/guestfish.pod:177
21752 msgid ""
21753 "Using this flag is mostly equivalent to using the C<add> command, with "
21754 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21755 "the I<--format:...> flag was given."
21756 msgstr ""
21757
21758 # type: =item
21759 #. type: =item
21760 #: ../fish/guestfish.pod:181
21761 msgid "B<-c URI>"
21762 msgstr ""
21763
21764 # type: =item
21765 #. type: =item
21766 #: ../fish/guestfish.pod:183
21767 msgid "B<--connect URI>"
21768 msgstr ""
21769
21770 # type: textblock
21771 #. type: textblock
21772 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21773 msgid ""
21774 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21775 "URI to use.  The default is to use the default libvirt connection."
21776 msgstr ""
21777
21778 # type: =item
21779 #. type: =item
21780 #: ../fish/guestfish.pod:189
21781 msgid "B<--csh>"
21782 msgstr ""
21783
21784 # type: textblock
21785 #. type: textblock
21786 #: ../fish/guestfish.pod:191
21787 msgid ""
21788 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21789 "section L</REMOTE CONTROL AND CSH> below."
21790 msgstr ""
21791
21792 # type: =item
21793 #. type: =item
21794 #: ../fish/guestfish.pod:194
21795 msgid "B<-d libvirt-domain>"
21796 msgstr ""
21797
21798 # type: =item
21799 #. type: =item
21800 #: ../fish/guestfish.pod:196
21801 msgid "B<--domain libvirt-domain>"
21802 msgstr ""
21803
21804 # type: textblock
21805 #. type: textblock
21806 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21807 msgid ""
21808 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21809 "used, then any libvirt domain can be used.  However in write mode, only "
21810 "libvirt domains which are shut down can be named here."
21811 msgstr ""
21812
21813 # type: textblock
21814 #. type: textblock
21815 #: ../fish/guestfish.pod:202
21816 msgid ""
21817 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21818 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21819 "if the I<--format:...> flag was given."
21820 msgstr ""
21821
21822 # type: =item
21823 #. type: =item
21824 #: ../fish/guestfish.pod:206
21825 msgid "B<-D>"
21826 msgstr ""
21827
21828 # type: =item
21829 #. type: =item
21830 #: ../fish/guestfish.pod:208
21831 msgid "B<--no-dest-paths>"
21832 msgstr ""
21833
21834 # type: textblock
21835 #. type: textblock
21836 #: ../fish/guestfish.pod:210
21837 msgid ""
21838 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21839 "to hit the tab key to complete paths on the guest filesystem, but this "
21840 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21841 "allow this feature to be disabled."
21842 msgstr ""
21843
21844 # type: =item
21845 #. type: =item
21846 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21847 msgid "B<--echo-keys>"
21848 msgstr ""
21849
21850 # type: textblock
21851 #. type: textblock
21852 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21853 msgid ""
21854 "When prompting for keys and passphrases, guestfish normally turns echoing "
21855 "off so you cannot see what you are typing.  If you are not worried about "
21856 "Tempest attacks and there is no one else in the room you can specify this "
21857 "flag to see what you are typing."
21858 msgstr ""
21859
21860 # type: =item
21861 #. type: =item
21862 #: ../fish/guestfish.pod:222
21863 msgid "B<-f file>"
21864 msgstr ""
21865
21866 # type: =item
21867 #. type: =item
21868 #: ../fish/guestfish.pod:224
21869 msgid "B<--file file>"
21870 msgstr ""
21871
21872 # type: textblock
21873 #. type: textblock
21874 #: ../fish/guestfish.pod:226
21875 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21876 msgstr ""
21877
21878 # type: verbatim
21879 #. type: verbatim
21880 #: ../fish/guestfish.pod:229
21881 #, no-wrap
21882 msgid ""
21883 " #!/usr/bin/guestfish -f\n"
21884 "\n"
21885 msgstr ""
21886
21887 # type: =item
21888 #. type: =item
21889 #: ../fish/guestfish.pod:231
21890 msgid "B<--format=raw|qcow2|..>"
21891 msgstr ""
21892
21893 # type: =item
21894 #. type: =item
21895 #: ../fish/guestfish.pod:233
21896 msgid "B<--format>"
21897 msgstr ""
21898
21899 # type: textblock
21900 #. type: textblock
21901 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21902 msgid ""
21903 "The default for the I<-a> option is to auto-detect the format of the disk "
21904 "image.  Using this forces the disk format for I<-a> options which follow on "
21905 "the command line.  Using I<--format> with no argument switches back to auto-"
21906 "detection for subsequent I<-a> options."
21907 msgstr ""
21908
21909 # type: verbatim
21910 #. type: verbatim
21911 #: ../fish/guestfish.pod:242
21912 #, no-wrap
21913 msgid ""
21914 " guestfish --format=raw -a disk.img\n"
21915 "\n"
21916 msgstr ""
21917
21918 # type: textblock
21919 #. type: textblock
21920 #: ../fish/guestfish.pod:244
21921 msgid "forces raw format (no auto-detection) for C<disk.img>."
21922 msgstr ""
21923
21924 # type: verbatim
21925 #. type: verbatim
21926 #: ../fish/guestfish.pod:246
21927 #, no-wrap
21928 msgid ""
21929 " guestfish --format=raw -a disk.img --format -a another.img\n"
21930 "\n"
21931 msgstr ""
21932
21933 # type: textblock
21934 #. type: textblock
21935 #: ../fish/guestfish.pod:248
21936 msgid ""
21937 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21938 "detection for C<another.img>."
21939 msgstr ""
21940
21941 # type: textblock
21942 #. type: textblock
21943 #: ../fish/guestfish.pod:251
21944 msgid ""
21945 "If you have untrusted raw-format guest disk images, you should use this "
21946 "option to specify the disk format.  This avoids a possible security problem "
21947 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21948 msgstr ""
21949
21950 # type: =item
21951 #. type: =item
21952 #: ../fish/guestfish.pod:256
21953 msgid "B<-i>"
21954 msgstr ""
21955
21956 # type: =item
21957 #. type: =item
21958 #: ../fish/guestfish.pod:258
21959 msgid "B<--inspector>"
21960 msgstr ""
21961
21962 # type: textblock
21963 #. type: textblock
21964 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21965 msgid ""
21966 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21967 "system and mount filesystems as they would be mounted on the real virtual "
21968 "machine."
21969 msgstr ""
21970
21971 # type: textblock
21972 #. type: textblock
21973 #: ../fish/guestfish.pod:264
21974 msgid "Typical usage is either:"
21975 msgstr ""
21976
21977 # type: verbatim
21978 #. type: verbatim
21979 #: ../fish/guestfish.pod:266
21980 #, no-wrap
21981 msgid ""
21982 " guestfish -d myguest -i\n"
21983 "\n"
21984 msgstr ""
21985
21986 # type: textblock
21987 #. type: textblock
21988 #: ../fish/guestfish.pod:268
21989 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21990 msgstr ""
21991
21992 # type: verbatim
21993 #. type: verbatim
21994 #: ../fish/guestfish.pod:270
21995 #, no-wrap
21996 msgid ""
21997 " guestfish --ro -d myguest -i\n"
21998 "\n"
21999 msgstr ""
22000
22001 # type: textblock
22002 #. type: textblock
22003 #: ../fish/guestfish.pod:272
22004 msgid "(for active domains, readonly), or specify the block device directly:"
22005 msgstr ""
22006
22007 # type: verbatim
22008 #. type: verbatim
22009 #: ../fish/guestfish.pod:274
22010 #, no-wrap
22011 msgid ""
22012 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
22013 "\n"
22014 msgstr ""
22015
22016 # type: textblock
22017 #. type: textblock
22018 #: ../fish/guestfish.pod:276
22019 msgid ""
22020 "Note that the command line syntax changed slightly over older versions of "
22021 "guestfish.  You can still use the old syntax:"
22022 msgstr ""
22023
22024 # type: verbatim
22025 #. type: verbatim
22026 #: ../fish/guestfish.pod:279
22027 #, no-wrap
22028 msgid ""
22029 " guestfish [--ro] -i disk.img\n"
22030 "\n"
22031 msgstr ""
22032
22033 # type: verbatim
22034 #. type: verbatim
22035 #: ../fish/guestfish.pod:281
22036 #, no-wrap
22037 msgid ""
22038 " guestfish [--ro] -i libvirt-domain\n"
22039 "\n"
22040 msgstr ""
22041
22042 # type: textblock
22043 #. type: textblock
22044 #: ../fish/guestfish.pod:283
22045 msgid ""
22046 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
22047 "then using other commands to mount the filesystems that were found."
22048 msgstr ""
22049
22050 # type: =item
22051 #. type: =item
22052 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
22053 msgid "B<--keys-from-stdin>"
22054 msgstr ""
22055
22056 # type: textblock
22057 #. type: textblock
22058 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
22059 msgid ""
22060 "Read key or passphrase parameters from stdin.  The default is to try to read "
22061 "passphrases from the user by opening C</dev/tty>."
22062 msgstr ""
22063
22064 # type: =item
22065 #. type: =item
22066 #: ../fish/guestfish.pod:292
22067 msgid "B<--listen>"
22068 msgstr ""
22069
22070 # type: textblock
22071 #. type: textblock
22072 #: ../fish/guestfish.pod:294
22073 msgid ""
22074 "Fork into the background and listen for remote commands.  See section L</"
22075 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
22076 msgstr ""
22077
22078 #. type: =item
22079 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
22080 msgid "B<--live>"
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
22085 msgid ""
22086 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
22087 "ATTACHING TO RUNNING DAEMONS>)."
22088 msgstr ""
22089
22090 #. type: =item
22091 #: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:151
22092 msgid "B<-m dev[:mountpoint[:options]]>"
22093 msgstr ""
22094
22095 #. type: =item
22096 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
22097 msgid "B<--mount dev[:mountpoint[:options]]>"
22098 msgstr ""
22099
22100 # type: textblock
22101 #. type: textblock
22102 #: ../fish/guestfish.pod:306
22103 msgid "Mount the named partition or logical volume on the given mountpoint."
22104 msgstr ""
22105
22106 # type: textblock
22107 #. type: textblock
22108 #: ../fish/guestfish.pod:308
22109 msgid "If the mountpoint is omitted, it defaults to C</>."
22110 msgstr ""
22111
22112 # type: textblock
22113 #. type: textblock
22114 #: ../fish/guestfish.pod:310
22115 msgid "You have to mount something on C</> before most commands will work."
22116 msgstr ""
22117
22118 # type: textblock
22119 #. type: textblock
22120 #: ../fish/guestfish.pod:312
22121 msgid ""
22122 "If any I<-m> or I<--mount> options are given, the guest is automatically "
22123 "launched."
22124 msgstr ""
22125
22126 # type: textblock
22127 #. type: textblock
22128 #: ../fish/guestfish.pod:315
22129 msgid ""
22130 "If you don't know what filesystems a disk image contains, you can either run "
22131 "guestfish without this option, then list the partitions, filesystems and LVs "
22132 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22133 "commands), or you can use the L<virt-filesystems(1)> program."
22134 msgstr ""
22135
22136 #. type: textblock
22137 #: ../fish/guestfish.pod:321 ../fuse/guestmount.pod:161
22138 msgid ""
22139 "The third (and rarely used) part of the mount parameter is the list of mount "
22140 "options used to mount the underlying filesystem.  If this is not given, then "
22141 "the mount options are either the empty string or C<ro> (the latter if the "
22142 "I<--ro> flag is used).  By specifying the mount options, you override this "
22143 "default choice.  Probably the only time you would use this is to enable ACLs "
22144 "and/or extended attributes if the filesystem can support them:"
22145 msgstr ""
22146
22147 #. type: verbatim
22148 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:169
22149 #, no-wrap
22150 msgid ""
22151 " -m /dev/sda1:/:acl,user_xattr\n"
22152 "\n"
22153 msgstr ""
22154
22155 #. type: textblock
22156 #: ../fish/guestfish.pod:331
22157 msgid "Using this flag is equivalent to using the C<mount-options> command."
22158 msgstr ""
22159
22160 # type: =item
22161 #. type: =item
22162 #: ../fish/guestfish.pod:333
22163 msgid "B<-n>"
22164 msgstr ""
22165
22166 # type: =item
22167 #. type: =item
22168 #: ../fish/guestfish.pod:335
22169 msgid "B<--no-sync>"
22170 msgstr ""
22171
22172 # type: textblock
22173 #. type: textblock
22174 #: ../fish/guestfish.pod:337
22175 msgid ""
22176 "Disable autosync.  This is enabled by default.  See the discussion of "
22177 "autosync in the L<guestfs(3)> manpage."
22178 msgstr ""
22179
22180 # type: =item
22181 #. type: =item
22182 #: ../fish/guestfish.pod:340
22183 msgid "B<-N type>"
22184 msgstr ""
22185
22186 # type: =item
22187 #. type: =item
22188 #: ../fish/guestfish.pod:342
22189 msgid "B<--new type>"
22190 msgstr ""
22191
22192 # type: =item
22193 #. type: =item
22194 #: ../fish/guestfish.pod:344
22195 msgid "B<-N help>"
22196 msgstr ""
22197
22198 # type: textblock
22199 #. type: textblock
22200 #: ../fish/guestfish.pod:346
22201 msgid ""
22202 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22203 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22204 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22205 "IMAGES> below."
22206 msgstr ""
22207
22208 # type: =item
22209 #. type: =item
22210 #: ../fish/guestfish.pod:351
22211 msgid "B<--progress-bars>"
22212 msgstr ""
22213
22214 # type: textblock
22215 #. type: textblock
22216 #: ../fish/guestfish.pod:353
22217 msgid "Enable progress bars, even when guestfish is used non-interactively."
22218 msgstr ""
22219
22220 # type: textblock
22221 #. type: textblock
22222 #: ../fish/guestfish.pod:355
22223 msgid ""
22224 "Progress bars are enabled by default when guestfish is used as an "
22225 "interactive shell."
22226 msgstr ""
22227
22228 # type: =item
22229 #. type: =item
22230 #: ../fish/guestfish.pod:358
22231 msgid "B<--no-progress-bars>"
22232 msgstr ""
22233
22234 # type: textblock
22235 #. type: textblock
22236 #: ../fish/guestfish.pod:360
22237 msgid "Disable progress bars."
22238 msgstr ""
22239
22240 # type: =item
22241 #. type: =item
22242 #: ../fish/guestfish.pod:362
22243 msgid "B<--remote[=pid]>"
22244 msgstr ""
22245
22246 # type: textblock
22247 #. type: textblock
22248 #: ../fish/guestfish.pod:364
22249 msgid ""
22250 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22251 "CONTROL GUESTFISH OVER A SOCKET> below."
22252 msgstr ""
22253
22254 # type: =item
22255 #. type: =item
22256 #: ../fish/guestfish.pod:367
22257 msgid "B<-r>"
22258 msgstr ""
22259
22260 # type: =item
22261 #. type: =item
22262 #: ../fish/guestfish.pod:369
22263 msgid "B<--ro>"
22264 msgstr ""
22265
22266 # type: textblock
22267 #. type: textblock
22268 #: ../fish/guestfish.pod:371
22269 msgid ""
22270 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22271 "mounts are done read-only."
22272 msgstr ""
22273
22274 # type: textblock
22275 #. type: textblock
22276 #: ../fish/guestfish.pod:374
22277 msgid ""
22278 "The option must always be used if the disk image or virtual machine might be "
22279 "running, and is generally recommended in cases where you don't need write "
22280 "access to the disk."
22281 msgstr ""
22282
22283 # type: textblock
22284 #. type: textblock
22285 #: ../fish/guestfish.pod:378
22286 msgid ""
22287 "Note that prepared disk images created with I<-N> are not affected by this "
22288 "option.  Also commands like C<add> are not affected - you have to specify "
22289 "the C<readonly:true> option explicitly if you need it."
22290 msgstr ""
22291
22292 # type: textblock
22293 #. type: textblock
22294 #: ../fish/guestfish.pod:382
22295 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22296 msgstr ""
22297
22298 # type: =item
22299 #. type: =item
22300 #: ../fish/guestfish.pod:384 ../fuse/guestmount.pod:225
22301 msgid "B<--selinux>"
22302 msgstr ""
22303
22304 # type: textblock
22305 #. type: textblock
22306 #: ../fish/guestfish.pod:386
22307 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22308 msgstr ""
22309
22310 # type: =item
22311 #. type: =item
22312 #: ../fish/guestfish.pod:388
22313 msgid "B<-v>"
22314 msgstr ""
22315
22316 # type: =item
22317 #. type: =item
22318 #: ../fish/guestfish.pod:390
22319 msgid "B<--verbose>"
22320 msgstr ""
22321
22322 # type: textblock
22323 #. type: textblock
22324 #: ../fish/guestfish.pod:392
22325 msgid ""
22326 "Enable very verbose messages.  This is particularly useful if you find a bug."
22327 msgstr ""
22328
22329 # type: =item
22330 #. type: =item
22331 #: ../fish/guestfish.pod:395
22332 msgid "B<-V>"
22333 msgstr ""
22334
22335 # type: =item
22336 #. type: =item
22337 #: ../fish/guestfish.pod:397 ../tools/virt-edit.pl:97
22338 #: ../tools/virt-win-reg.pl:112 ../tools/virt-list-filesystems.pl:69
22339 #: ../tools/virt-tar.pl:119 ../tools/virt-make-fs.pl:169
22340 #: ../tools/virt-list-partitions.pl:70
22341 msgid "B<--version>"
22342 msgstr ""
22343
22344 # type: textblock
22345 #. type: textblock
22346 #: ../fish/guestfish.pod:399
22347 msgid "Display the guestfish / libguestfs version number and exit."
22348 msgstr ""
22349
22350 # type: =item
22351 #. type: =item
22352 #: ../fish/guestfish.pod:401
22353 msgid "B<-w>"
22354 msgstr ""
22355
22356 # type: =item
22357 #. type: =item
22358 #: ../fish/guestfish.pod:403
22359 msgid "B<--rw>"
22360 msgstr ""
22361
22362 #. type: textblock
22363 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:239
22364 msgid ""
22365 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22366 "mounts are done read-write."
22367 msgstr ""
22368
22369 #. type: textblock
22370 #: ../fish/guestfish.pod:408
22371 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
22372 msgstr ""
22373
22374 # type: =item
22375 #. type: =item
22376 #: ../fish/guestfish.pod:410
22377 msgid "B<-x>"
22378 msgstr ""
22379
22380 # type: textblock
22381 #. type: textblock
22382 #: ../fish/guestfish.pod:412
22383 msgid "Echo each command before executing it."
22384 msgstr ""
22385
22386 # type: =head1
22387 #. type: =head1
22388 #: ../fish/guestfish.pod:416
22389 msgid "COMMANDS ON COMMAND LINE"
22390 msgstr ""
22391
22392 # type: textblock
22393 #. type: textblock
22394 #: ../fish/guestfish.pod:418
22395 msgid ""
22396 "Any additional (non-option) arguments are treated as commands to execute."
22397 msgstr ""
22398
22399 # type: textblock
22400 #. type: textblock
22401 #: ../fish/guestfish.pod:421
22402 msgid ""
22403 "Commands to execute should be separated by a colon (C<:>), where the colon "
22404 "is a separate parameter.  Thus:"
22405 msgstr ""
22406
22407 # type: verbatim
22408 #. type: verbatim
22409 #: ../fish/guestfish.pod:424
22410 #, no-wrap
22411 msgid ""
22412 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22413 "\n"
22414 msgstr ""
22415
22416 # type: textblock
22417 #. type: textblock
22418 #: ../fish/guestfish.pod:426
22419 msgid ""
22420 "If there are no additional arguments, then we enter a shell, either an "
22421 "interactive shell with a prompt (if the input is a terminal) or a non-"
22422 "interactive shell."
22423 msgstr ""
22424
22425 # type: textblock
22426 #. type: textblock
22427 #: ../fish/guestfish.pod:430
22428 msgid ""
22429 "In either command line mode or non-interactive shell, the first command that "
22430 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22431 "prompt) if a command fails, you can continue to enter commands."
22432 msgstr ""
22433
22434 # type: =head1
22435 #. type: =head1
22436 #: ../fish/guestfish.pod:435
22437 msgid "USING launch (OR run)"
22438 msgstr ""
22439
22440 # type: textblock
22441 #. type: textblock
22442 #: ../fish/guestfish.pod:437
22443 msgid ""
22444 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22445 "then launch it, then mount any disks you need, and finally issue actions/"
22446 "commands.  So the general order of the day is:"
22447 msgstr ""
22448
22449 # type: textblock
22450 #. type: textblock
22451 #: ../fish/guestfish.pod:445
22452 msgid "add or -a/--add"
22453 msgstr ""
22454
22455 # type: textblock
22456 #. type: textblock
22457 #: ../fish/guestfish.pod:449
22458 msgid "launch (aka run)"
22459 msgstr ""
22460
22461 # type: textblock
22462 #. type: textblock
22463 #: ../fish/guestfish.pod:453
22464 msgid "mount or -m/--mount"
22465 msgstr ""
22466
22467 # type: textblock
22468 #. type: textblock
22469 #: ../fish/guestfish.pod:457
22470 msgid "any other commands"
22471 msgstr ""
22472
22473 # type: textblock
22474 #. type: textblock
22475 #: ../fish/guestfish.pod:461
22476 msgid ""
22477 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
22478 "guest before mounting or performing any other commands."
22479 msgstr ""
22480
22481 # type: textblock
22482 #. type: textblock
22483 #: ../fish/guestfish.pod:464
22484 msgid ""
22485 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
22486 "I<--new> options were given then C<run> is done automatically, simply "
22487 "because guestfish can't perform the action you asked for without doing this."
22488 msgstr ""
22489
22490 # type: =head1
22491 #. type: =head1
22492 #: ../fish/guestfish.pod:469
22493 msgid "OPENING DISKS FOR READ AND WRITE"
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../fish/guestfish.pod:471
22498 msgid ""
22499 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
22500 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
22501 "I<-i> and I<-m> open disk images read-only or for writing."
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../fish/guestfish.pod:476
22506 msgid ""
22507 "In libguestfs E<le> 1.8, guestfish, guestmount and virt-rescue defaulted to "
22508 "opening disk images supplied on the command line for write.  To open a disk "
22509 "image read-only you have to do I<-a image --ro>."
22510 msgstr ""
22511
22512 # type: textblock
22513 #. type: textblock
22514 #: ../fish/guestfish.pod:480
22515 msgid ""
22516 "This matters: If you accidentally open a live VM disk image writable then "
22517 "you will cause irreversible disk corruption."
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../fish/guestfish.pod:483
22522 msgid ""
22523 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
22524 "images will be opened read-only.  You will have to either specify "
22525 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
22526 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
22527 "access for disk images specified by those other command line options."
22528 msgstr ""
22529
22530 #. type: textblock
22531 #: ../fish/guestfish.pod:490
22532 msgid ""
22533 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
22534 "which does nothing (it is already the default).  However it is highly "
22535 "recommended that you use this option to indicate that you need write access, "
22536 "and prepare your scripts for the day when this option will be required for "
22537 "write access."
22538 msgstr ""
22539
22540 # type: textblock
22541 #. type: textblock
22542 #: ../fish/guestfish.pod:496
22543 msgid ""
22544 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
22545 "other libguestfs program apart from guestfish and guestmount."
22546 msgstr ""
22547
22548 # type: =head1
22549 #. type: =head1
22550 #: ../fish/guestfish.pod:499
22551 msgid "QUOTING"
22552 msgstr ""
22553
22554 # type: textblock
22555 #. type: textblock
22556 #: ../fish/guestfish.pod:501
22557 msgid ""
22558 "You can quote ordinary parameters using either single or double quotes.  For "
22559 "example:"
22560 msgstr ""
22561
22562 # type: verbatim
22563 #. type: verbatim
22564 #: ../fish/guestfish.pod:504
22565 #, no-wrap
22566 msgid ""
22567 " add \"file with a space.img\"\n"
22568 "\n"
22569 msgstr ""
22570
22571 # type: verbatim
22572 #. type: verbatim
22573 #: ../fish/guestfish.pod:506
22574 #, no-wrap
22575 msgid ""
22576 " rm '/file name'\n"
22577 "\n"
22578 msgstr ""
22579
22580 # type: verbatim
22581 #. type: verbatim
22582 #: ../fish/guestfish.pod:508
22583 #, no-wrap
22584 msgid ""
22585 " rm '/\"'\n"
22586 "\n"
22587 msgstr ""
22588
22589 # type: textblock
22590 #. type: textblock
22591 #: ../fish/guestfish.pod:510
22592 msgid ""
22593 "A few commands require a list of strings to be passed.  For these, use a "
22594 "whitespace-separated list, enclosed in quotes.  Strings containing "
22595 "whitespace to be passed through must be enclosed in single quotes.  A "
22596 "literal single quote must be escaped with a backslash."
22597 msgstr ""
22598
22599 # type: verbatim
22600 #. type: verbatim
22601 #: ../fish/guestfish.pod:515
22602 #, no-wrap
22603 msgid ""
22604 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
22605 " command \"/bin/echo 'foo      bar'\"\n"
22606 " command \"/bin/echo \\'foo\\'\"\n"
22607 "\n"
22608 msgstr ""
22609
22610 # type: =head1
22611 #. type: =head1
22612 #: ../fish/guestfish.pod:519
22613 msgid "OPTIONAL ARGUMENTS"
22614 msgstr ""
22615
22616 # type: textblock
22617 #. type: textblock
22618 #: ../fish/guestfish.pod:521
22619 msgid ""
22620 "Some commands take optional arguments.  These arguments appear in this "
22621 "documentation as C<[argname:..]>.  You can use them as in these examples:"
22622 msgstr ""
22623
22624 # type: verbatim
22625 #. type: verbatim
22626 #: ../fish/guestfish.pod:525
22627 #, no-wrap
22628 msgid ""
22629 " add-drive-opts filename\n"
22630 "\n"
22631 msgstr ""
22632
22633 # type: verbatim
22634 #. type: verbatim
22635 #: ../fish/guestfish.pod:527
22636 #, no-wrap
22637 msgid ""
22638 " add-drive-opts filename readonly:true\n"
22639 "\n"
22640 msgstr ""
22641
22642 # type: verbatim
22643 #. type: verbatim
22644 #: ../fish/guestfish.pod:529
22645 #, no-wrap
22646 msgid ""
22647 " add-drive-opts filename format:qcow2 readonly:false\n"
22648 "\n"
22649 msgstr ""
22650
22651 # type: textblock
22652 #. type: textblock
22653 #: ../fish/guestfish.pod:531
22654 msgid ""
22655 "Each optional argument can appear at most once.  All optional arguments must "
22656 "appear after the required ones."
22657 msgstr ""
22658
22659 # type: =head1
22660 #. type: =head1
22661 #: ../fish/guestfish.pod:534
22662 msgid "NUMBERS"
22663 msgstr ""
22664
22665 # type: textblock
22666 #. type: textblock
22667 #: ../fish/guestfish.pod:536
22668 msgid ""
22669 "This section applies to all commands which can take integers as parameters."
22670 msgstr ""
22671
22672 # type: =head2
22673 #. type: =head2
22674 #: ../fish/guestfish.pod:539
22675 msgid "SIZE SUFFIX"
22676 msgstr ""
22677
22678 # type: textblock
22679 #. type: textblock
22680 #: ../fish/guestfish.pod:541
22681 msgid ""
22682 "When the command takes a parameter measured in bytes, you can use one of the "
22683 "following suffixes to specify kilobytes, megabytes and larger sizes:"
22684 msgstr ""
22685
22686 # type: =item
22687 #. type: =item
22688 #: ../fish/guestfish.pod:547
22689 msgid "B<k> or B<K> or B<KiB>"
22690 msgstr ""
22691
22692 # type: textblock
22693 #. type: textblock
22694 #: ../fish/guestfish.pod:549
22695 msgid "The size in kilobytes (multiplied by 1024)."
22696 msgstr ""
22697
22698 # type: =item
22699 #. type: =item
22700 #: ../fish/guestfish.pod:551
22701 msgid "B<KB>"
22702 msgstr ""
22703
22704 # type: textblock
22705 #. type: textblock
22706 #: ../fish/guestfish.pod:553
22707 msgid "The size in SI 1000 byte units."
22708 msgstr ""
22709
22710 # type: =item
22711 #. type: =item
22712 #: ../fish/guestfish.pod:555
22713 msgid "B<M> or B<MiB>"
22714 msgstr ""
22715
22716 # type: textblock
22717 #. type: textblock
22718 #: ../fish/guestfish.pod:557
22719 msgid "The size in megabytes (multiplied by 1048576)."
22720 msgstr ""
22721
22722 # type: =item
22723 #. type: =item
22724 #: ../fish/guestfish.pod:559
22725 msgid "B<MB>"
22726 msgstr ""
22727
22728 # type: textblock
22729 #. type: textblock
22730 #: ../fish/guestfish.pod:561
22731 msgid "The size in SI 1000000 byte units."
22732 msgstr ""
22733
22734 # type: =item
22735 #. type: =item
22736 #: ../fish/guestfish.pod:563
22737 msgid "B<G> or B<GiB>"
22738 msgstr ""
22739
22740 # type: textblock
22741 #. type: textblock
22742 #: ../fish/guestfish.pod:565
22743 msgid "The size in gigabytes (multiplied by 2**30)."
22744 msgstr ""
22745
22746 # type: =item
22747 #. type: =item
22748 #: ../fish/guestfish.pod:567
22749 msgid "B<GB>"
22750 msgstr ""
22751
22752 # type: textblock
22753 #. type: textblock
22754 #: ../fish/guestfish.pod:569
22755 msgid "The size in SI 10**9 byte units."
22756 msgstr ""
22757
22758 # type: =item
22759 #. type: =item
22760 #: ../fish/guestfish.pod:571
22761 msgid "B<T> or B<TiB>"
22762 msgstr ""
22763
22764 # type: textblock
22765 #. type: textblock
22766 #: ../fish/guestfish.pod:573
22767 msgid "The size in terabytes (multiplied by 2**40)."
22768 msgstr ""
22769
22770 # type: =item
22771 #. type: =item
22772 #: ../fish/guestfish.pod:575
22773 msgid "B<TB>"
22774 msgstr ""
22775
22776 # type: textblock
22777 #. type: textblock
22778 #: ../fish/guestfish.pod:577
22779 msgid "The size in SI 10**12 byte units."
22780 msgstr ""
22781
22782 # type: =item
22783 #. type: =item
22784 #: ../fish/guestfish.pod:579
22785 msgid "B<P> or B<PiB>"
22786 msgstr ""
22787
22788 # type: textblock
22789 #. type: textblock
22790 #: ../fish/guestfish.pod:581
22791 msgid "The size in petabytes (multiplied by 2**50)."
22792 msgstr ""
22793
22794 # type: =item
22795 #. type: =item
22796 #: ../fish/guestfish.pod:583
22797 msgid "B<PB>"
22798 msgstr ""
22799
22800 # type: textblock
22801 #. type: textblock
22802 #: ../fish/guestfish.pod:585
22803 msgid "The size in SI 10**15 byte units."
22804 msgstr ""
22805
22806 # type: =item
22807 #. type: =item
22808 #: ../fish/guestfish.pod:587
22809 msgid "B<E> or B<EiB>"
22810 msgstr ""
22811
22812 # type: textblock
22813 #. type: textblock
22814 #: ../fish/guestfish.pod:589
22815 msgid "The size in exabytes (multiplied by 2**60)."
22816 msgstr ""
22817
22818 # type: =item
22819 #. type: =item
22820 #: ../fish/guestfish.pod:591
22821 msgid "B<EB>"
22822 msgstr ""
22823
22824 # type: textblock
22825 #. type: textblock
22826 #: ../fish/guestfish.pod:593
22827 msgid "The size in SI 10**18 byte units."
22828 msgstr ""
22829
22830 # type: =item
22831 #. type: =item
22832 #: ../fish/guestfish.pod:595
22833 msgid "B<Z> or B<ZiB>"
22834 msgstr ""
22835
22836 # type: textblock
22837 #. type: textblock
22838 #: ../fish/guestfish.pod:597
22839 msgid "The size in zettabytes (multiplied by 2**70)."
22840 msgstr ""
22841
22842 # type: =item
22843 #. type: =item
22844 #: ../fish/guestfish.pod:599
22845 msgid "B<ZB>"
22846 msgstr ""
22847
22848 # type: textblock
22849 #. type: textblock
22850 #: ../fish/guestfish.pod:601
22851 msgid "The size in SI 10**21 byte units."
22852 msgstr ""
22853
22854 # type: =item
22855 #. type: =item
22856 #: ../fish/guestfish.pod:603
22857 msgid "B<Y> or B<YiB>"
22858 msgstr ""
22859
22860 # type: textblock
22861 #. type: textblock
22862 #: ../fish/guestfish.pod:605
22863 msgid "The size in yottabytes (multiplied by 2**80)."
22864 msgstr ""
22865
22866 # type: =item
22867 #. type: =item
22868 #: ../fish/guestfish.pod:607
22869 msgid "B<YB>"
22870 msgstr ""
22871
22872 # type: textblock
22873 #. type: textblock
22874 #: ../fish/guestfish.pod:609
22875 msgid "The size in SI 10**24 byte units."
22876 msgstr ""
22877
22878 # type: verbatim
22879 #. type: verbatim
22880 #: ../fish/guestfish.pod:615
22881 #, no-wrap
22882 msgid ""
22883 " truncate-size /file 1G\n"
22884 "\n"
22885 msgstr ""
22886
22887 # type: textblock
22888 #. type: textblock
22889 #: ../fish/guestfish.pod:617
22890 msgid "would truncate the file to 1 gigabyte."
22891 msgstr ""
22892
22893 # type: textblock
22894 #. type: textblock
22895 #: ../fish/guestfish.pod:619
22896 msgid ""
22897 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22898 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22899 "suffix will probably not do what you expect."
22900 msgstr ""
22901
22902 # type: =head2
22903 #. type: =head2
22904 #: ../fish/guestfish.pod:623
22905 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22906 msgstr ""
22907
22908 # type: textblock
22909 #. type: textblock
22910 #: ../fish/guestfish.pod:625
22911 msgid ""
22912 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22913 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22914 msgstr ""
22915
22916 # type: verbatim
22917 #. type: verbatim
22918 #: ../fish/guestfish.pod:628
22919 #, no-wrap
22920 msgid ""
22921 " 1234      decimal number 1234\n"
22922 " 02322     octal number, equivalent to decimal 1234\n"
22923 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22924 "\n"
22925 msgstr ""
22926
22927 # type: textblock
22928 #. type: textblock
22929 #: ../fish/guestfish.pod:632
22930 msgid ""
22931 "When using the C<chmod> command, you almost always want to specify an octal "
22932 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22933 "L<chmod(1)> program):"
22934 msgstr ""
22935
22936 # type: verbatim
22937 #. type: verbatim
22938 #: ../fish/guestfish.pod:636
22939 #, no-wrap
22940 msgid ""
22941 " chmod 0777 /public  # OK\n"
22942 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22943 "\n"
22944 msgstr ""
22945
22946 # type: textblock
22947 #. type: textblock
22948 #: ../fish/guestfish.pod:639
22949 msgid ""
22950 "Commands that return numbers usually print them in decimal, but some "
22951 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22952 "octal, preceeded by C<0>)."
22953 msgstr ""
22954
22955 # type: =head1
22956 #. type: =head1
22957 #: ../fish/guestfish.pod:643
22958 msgid "WILDCARDS AND GLOBBING"
22959 msgstr ""
22960
22961 # type: textblock
22962 #. type: textblock
22963 #: ../fish/guestfish.pod:645
22964 msgid ""
22965 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22966 "(globbing) by default.  So for example the following will not do what you "
22967 "expect:"
22968 msgstr ""
22969
22970 # type: verbatim
22971 #. type: verbatim
22972 #: ../fish/guestfish.pod:649
22973 #, no-wrap
22974 msgid ""
22975 " rm-rf /home/*\n"
22976 "\n"
22977 msgstr ""
22978
22979 # type: textblock
22980 #. type: textblock
22981 #: ../fish/guestfish.pod:651
22982 msgid ""
22983 "Assuming you don't have a directory called literally C</home/*> then the "
22984 "above command will return an error."
22985 msgstr ""
22986
22987 # type: textblock
22988 #. type: textblock
22989 #: ../fish/guestfish.pod:654
22990 msgid "To perform wildcard expansion, use the C<glob> command."
22991 msgstr ""
22992
22993 # type: verbatim
22994 #. type: verbatim
22995 #: ../fish/guestfish.pod:656
22996 #, no-wrap
22997 msgid ""
22998 " glob rm-rf /home/*\n"
22999 "\n"
23000 msgstr ""
23001
23002 # type: textblock
23003 #. type: textblock
23004 #: ../fish/guestfish.pod:658
23005 msgid ""
23006 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
23007 "many times), equivalent to:"
23008 msgstr ""
23009
23010 # type: verbatim
23011 #. type: verbatim
23012 #: ../fish/guestfish.pod:661
23013 #, no-wrap
23014 msgid ""
23015 " rm-rf /home/jim\n"
23016 " rm-rf /home/joe\n"
23017 " rm-rf /home/mary\n"
23018 "\n"
23019 msgstr ""
23020
23021 # type: textblock
23022 #. type: textblock
23023 #: ../fish/guestfish.pod:665
23024 msgid "C<glob> only works on simple guest paths and not on device names."
23025 msgstr ""
23026
23027 # type: textblock
23028 #. type: textblock
23029 #: ../fish/guestfish.pod:667
23030 msgid ""
23031 "If you have several parameters, each containing a wildcard, then glob will "
23032 "perform a Cartesian product."
23033 msgstr ""
23034
23035 # type: =head1
23036 #. type: =head1
23037 #: ../fish/guestfish.pod:670
23038 msgid "COMMENTS"
23039 msgstr ""
23040
23041 # type: textblock
23042 #. type: textblock
23043 #: ../fish/guestfish.pod:672
23044 msgid ""
23045 "Any line which starts with a I<#> character is treated as a comment and "
23046 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
23047 "a command.  For example:"
23048 msgstr ""
23049
23050 # type: verbatim
23051 #. type: verbatim
23052 #: ../fish/guestfish.pod:676
23053 #, no-wrap
23054 msgid ""
23055 " # this is a comment\n"
23056 "         # this is a comment\n"
23057 " foo # NOT a comment\n"
23058 "\n"
23059 msgstr ""
23060
23061 # type: textblock
23062 #. type: textblock
23063 #: ../fish/guestfish.pod:680
23064 msgid "Blank lines are also ignored."
23065 msgstr ""
23066
23067 # type: =head1
23068 #. type: =head1
23069 #: ../fish/guestfish.pod:682
23070 msgid "RUNNING COMMANDS LOCALLY"
23071 msgstr ""
23072
23073 # type: textblock
23074 #. type: textblock
23075 #: ../fish/guestfish.pod:684
23076 msgid ""
23077 "Any line which starts with a I<!> character is treated as a command sent to "
23078 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
23079 msgstr ""
23080
23081 # type: verbatim
23082 #. type: verbatim
23083 #: ../fish/guestfish.pod:688
23084 #, no-wrap
23085 msgid ""
23086 " !mkdir local\n"
23087 " tgz-out /remote local/remote-data.tar.gz\n"
23088 "\n"
23089 msgstr ""
23090
23091 # type: textblock
23092 #. type: textblock
23093 #: ../fish/guestfish.pod:691
23094 msgid ""
23095 "will create a directory C<local> on the host, and then export the contents "
23096 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
23097 "(See C<tgz-out>)."
23098 msgstr ""
23099
23100 # type: textblock
23101 #. type: textblock
23102 #: ../fish/guestfish.pod:695
23103 msgid ""
23104 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23105 "effect, due to the way that subprocesses work in Unix."
23106 msgstr ""
23107
23108 #. type: =head2
23109 #: ../fish/guestfish.pod:698
23110 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../fish/guestfish.pod:700
23115 msgid ""
23116 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23117 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23118 "and executed as guestfish commands."
23119 msgstr ""
23120
23121 #. type: textblock
23122 #: ../fish/guestfish.pod:704
23123 msgid ""
23124 "Thus you can use shell script to construct arbitrary guestfish commands "
23125 "which are then parsed by guestfish."
23126 msgstr ""
23127
23128 #. type: textblock
23129 #: ../fish/guestfish.pod:707
23130 msgid ""
23131 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23132 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23133 "if we use a shell script to create the guestfish commands for us:"
23134 msgstr ""
23135
23136 #. type: verbatim
23137 #: ../fish/guestfish.pod:712
23138 #, no-wrap
23139 msgid ""
23140 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23141 "\n"
23142 msgstr ""
23143
23144 #. type: textblock
23145 #: ../fish/guestfish.pod:714
23146 msgid "or with names like C</foo.001>:"
23147 msgstr ""
23148
23149 #. type: verbatim
23150 #: ../fish/guestfish.pod:716
23151 #, no-wrap
23152 msgid ""
23153 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23154 "\n"
23155 msgstr ""
23156
23157 #. type: textblock
23158 #: ../fish/guestfish.pod:718
23159 msgid ""
23160 "When using guestfish interactively it can be helpful to just run the shell "
23161 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23162 "ordinary I<!> local command), see what guestfish commands it would run, and "
23163 "when you are happy with those prepend the C<E<lt>> character to run the "
23164 "guestfish commands for real."
23165 msgstr ""
23166
23167 # type: =head1
23168 #. type: =head1
23169 #: ../fish/guestfish.pod:724
23170 msgid "PIPES"
23171 msgstr ""
23172
23173 # type: textblock
23174 #. type: textblock
23175 #: ../fish/guestfish.pod:726
23176 msgid ""
23177 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23178 "command (a guestfish command) to the second command (any host command).  For "
23179 "example:"
23180 msgstr ""
23181
23182 # type: verbatim
23183 #. type: verbatim
23184 #: ../fish/guestfish.pod:730
23185 #, no-wrap
23186 msgid ""
23187 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23188 "\n"
23189 msgstr ""
23190
23191 # type: textblock
23192 #. type: textblock
23193 #: ../fish/guestfish.pod:732
23194 msgid ""
23195 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23196 "program).  The above command would list all accounts in the guest filesystem "
23197 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23198 msgstr ""
23199
23200 # type: verbatim
23201 #. type: verbatim
23202 #: ../fish/guestfish.pod:737
23203 #, no-wrap
23204 msgid ""
23205 " hexdump /bin/ls | head\n"
23206 " list-devices | tail -1\n"
23207 " tgz-out / - | tar ztf -\n"
23208 "\n"
23209 msgstr ""
23210
23211 # type: textblock
23212 #. type: textblock
23213 #: ../fish/guestfish.pod:741
23214 msgid ""
23215 "The space before the pipe symbol is required, any space after the pipe "
23216 "symbol is optional.  Everything after the pipe symbol is just passed "
23217 "straight to the host shell, so it can contain redirections, globs and "
23218 "anything else that makes sense on the host side."
23219 msgstr ""
23220
23221 # type: textblock
23222 #. type: textblock
23223 #: ../fish/guestfish.pod:746
23224 msgid ""
23225 "To use a literal argument which begins with a pipe symbol, you have to quote "
23226 "it, eg:"
23227 msgstr ""
23228
23229 # type: verbatim
23230 #. type: verbatim
23231 #: ../fish/guestfish.pod:749
23232 #, no-wrap
23233 msgid ""
23234 " echo \"|\"\n"
23235 "\n"
23236 msgstr ""
23237
23238 # type: =head1
23239 #. type: =head1
23240 #: ../fish/guestfish.pod:751
23241 msgid "HOME DIRECTORIES"
23242 msgstr ""
23243
23244 # type: textblock
23245 #. type: textblock
23246 #: ../fish/guestfish.pod:753
23247 msgid ""
23248 "If a parameter starts with the character C<~> then the tilde may be expanded "
23249 "as a home directory path (either C<~> for the current user's home directory, "
23250 "or C<~user> for another user)."
23251 msgstr ""
23252
23253 # type: textblock
23254 #. type: textblock
23255 #: ../fish/guestfish.pod:757
23256 msgid ""
23257 "Note that home directory expansion happens for users known I<on the host>, "
23258 "not in the guest filesystem."
23259 msgstr ""
23260
23261 # type: textblock
23262 #. type: textblock
23263 #: ../fish/guestfish.pod:760
23264 msgid ""
23265 "To use a literal argument which begins with a tilde, you have to quote it, "
23266 "eg:"
23267 msgstr ""
23268
23269 # type: verbatim
23270 #. type: verbatim
23271 #: ../fish/guestfish.pod:763
23272 #, no-wrap
23273 msgid ""
23274 " echo \"~\"\n"
23275 "\n"
23276 msgstr ""
23277
23278 # type: textblock
23279 #. type: textblock
23280 #: ../fish/guestfish.pod:767
23281 msgid ""
23282 "Libguestfs has some support for Linux guests encrypted according to the "
23283 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23284 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23285 "LUKS is supported."
23286 msgstr ""
23287
23288 # type: textblock
23289 #. type: textblock
23290 #: ../fish/guestfish.pod:772
23291 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23292 msgstr ""
23293
23294 # type: verbatim
23295 #. type: verbatim
23296 #: ../fish/guestfish.pod:774
23297 #, no-wrap
23298 msgid ""
23299 " ><fs> vfs-type /dev/sda2\n"
23300 " crypto_LUKS\n"
23301 "\n"
23302 msgstr ""
23303
23304 # type: textblock
23305 #. type: textblock
23306 #: ../fish/guestfish.pod:777
23307 msgid ""
23308 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23309 "device called C</dev/mapper/luksdev>."
23310 msgstr ""
23311
23312 # type: verbatim
23313 #. type: verbatim
23314 #: ../fish/guestfish.pod:780
23315 #, no-wrap
23316 msgid ""
23317 " ><fs> luks-open /dev/sda2 luksdev\n"
23318 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23319 "\n"
23320 msgstr ""
23321
23322 # type: textblock
23323 #. type: textblock
23324 #: ../fish/guestfish.pod:783
23325 msgid ""
23326 "Finally you have to tell LVM to scan for volume groups on the newly created "
23327 "mapper device:"
23328 msgstr ""
23329
23330 # type: verbatim
23331 #. type: verbatim
23332 #: ../fish/guestfish.pod:786
23333 #, no-wrap
23334 msgid ""
23335 " vgscan\n"
23336 " vg-activate-all true\n"
23337 "\n"
23338 msgstr ""
23339
23340 # type: textblock
23341 #. type: textblock
23342 #: ../fish/guestfish.pod:789
23343 msgid "The logical volume(s) can now be mounted in the usual way."
23344 msgstr ""
23345
23346 # type: textblock
23347 #. type: textblock
23348 #: ../fish/guestfish.pod:791
23349 msgid ""
23350 "Before closing a LUKS device you must unmount any logical volumes on it and "
23351 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23352 "one.  Then you can close the mapper device:"
23353 msgstr ""
23354
23355 # type: verbatim
23356 #. type: verbatim
23357 #: ../fish/guestfish.pod:795
23358 #, no-wrap
23359 msgid ""
23360 " vg-activate false /dev/VG\n"
23361 " luks-close /dev/mapper/luksdev\n"
23362 "\n"
23363 msgstr ""
23364
23365 # type: =head1
23366 #. type: =head1
23367 #: ../fish/guestfish.pod:798 ../tools/virt-edit.pl:342
23368 msgid "WINDOWS PATHS"
23369 msgstr ""
23370
23371 #. type: textblock
23372 #: ../fish/guestfish.pod:800
23373 msgid ""
23374 "If a path is prefixed with C<win:> then you can use Windows-style drive "
23375 "letters and paths (with some limitations).  The following commands are "
23376 "equivalent:"
23377 msgstr ""
23378
23379 # type: verbatim
23380 #. type: verbatim
23381 #: ../fish/guestfish.pod:804
23382 #, no-wrap
23383 msgid ""
23384 " file /WINDOWS/system32/config/system.LOG\n"
23385 "\n"
23386 msgstr ""
23387
23388 # type: verbatim
23389 #. type: verbatim
23390 #: ../fish/guestfish.pod:806
23391 #, no-wrap
23392 msgid ""
23393 " file win:\\windows\\system32\\config\\system.log\n"
23394 "\n"
23395 msgstr ""
23396
23397 #. type: verbatim
23398 #: ../fish/guestfish.pod:808
23399 #, no-wrap
23400 msgid ""
23401 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
23402 "\n"
23403 msgstr ""
23404
23405 #. type: textblock
23406 #: ../fish/guestfish.pod:810
23407 msgid ""
23408 "The parameter is rewritten \"behind the scenes\" by looking up the position "
23409 "where the drive is mounted, prepending that to the path, changing all "
23410 "backslash characters to forward slash, then resolving the result using L</"
23411 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
23412 "the parameter might be rewritten like this:"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../fish/guestfish.pod:816
23417 #, no-wrap
23418 msgid ""
23419 " win:e:\\foo\\bar => /e/FOO/bar\n"
23420 "\n"
23421 msgstr ""
23422
23423 #. type: textblock
23424 #: ../fish/guestfish.pod:818
23425 msgid "This only works in argument positions that expect a path."
23426 msgstr ""
23427
23428 # type: =head1
23429 #. type: =head1
23430 #: ../fish/guestfish.pod:820
23431 msgid "UPLOADING AND DOWNLOADING FILES"
23432 msgstr ""
23433
23434 # type: textblock
23435 #. type: textblock
23436 #: ../fish/guestfish.pod:822
23437 msgid ""
23438 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23439 "others which upload from or download to a local file, you can use the "
23440 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23441 msgstr ""
23442
23443 # type: verbatim
23444 #. type: verbatim
23445 #: ../fish/guestfish.pod:826
23446 #, no-wrap
23447 msgid ""
23448 " upload - /foo\n"
23449 "\n"
23450 msgstr ""
23451
23452 # type: textblock
23453 #. type: textblock
23454 #: ../fish/guestfish.pod:828
23455 msgid ""
23456 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23457 msgstr ""
23458
23459 # type: verbatim
23460 #. type: verbatim
23461 #: ../fish/guestfish.pod:831
23462 #, no-wrap
23463 msgid ""
23464 " tar-out /etc - | tar tf -\n"
23465 "\n"
23466 msgstr ""
23467
23468 # type: textblock
23469 #. type: textblock
23470 #: ../fish/guestfish.pod:833
23471 msgid ""
23472 "writes the tarball to stdout and then pipes that into the external \"tar\" "
23473 "command (see L</PIPES>)."
23474 msgstr ""
23475
23476 # type: textblock
23477 #. type: textblock
23478 #: ../fish/guestfish.pod:836
23479 msgid ""
23480 "When using C<-> to read from stdin, the input is read up to the end of "
23481 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
23482 "some arbitrary end marker:"
23483 msgstr ""
23484
23485 # type: verbatim
23486 #. type: verbatim
23487 #: ../fish/guestfish.pod:840
23488 #, no-wrap
23489 msgid ""
23490 " upload -<<END /foo\n"
23491 " input line 1\n"
23492 " input line 2\n"
23493 " input line 3\n"
23494 " END\n"
23495 "\n"
23496 msgstr ""
23497
23498 # type: textblock
23499 #. type: textblock
23500 #: ../fish/guestfish.pod:846
23501 msgid ""
23502 "Any string of characters can be used instead of C<END>.  The end marker must "
23503 "appear on a line of its own, without any preceeding or following characters "
23504 "(not even spaces)."
23505 msgstr ""
23506
23507 # type: textblock
23508 #. type: textblock
23509 #: ../fish/guestfish.pod:850
23510 msgid ""
23511 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
23512 "upload local files (so-called \"FileIn\" parameters in the generator)."
23513 msgstr ""
23514
23515 # type: =head1
23516 #. type: =head1
23517 #: ../fish/guestfish.pod:853
23518 msgid "EXIT ON ERROR BEHAVIOUR"
23519 msgstr ""
23520
23521 # type: textblock
23522 #. type: textblock
23523 #: ../fish/guestfish.pod:855
23524 msgid ""
23525 "By default, guestfish will ignore any errors when in interactive mode (ie. "
23526 "taking commands from a human over a tty), and will exit on the first error "
23527 "in non-interactive mode (scripts, commands given on the command line)."
23528 msgstr ""
23529
23530 # type: textblock
23531 #. type: textblock
23532 #: ../fish/guestfish.pod:860
23533 msgid ""
23534 "If you prefix a command with a I<-> character, then that command will not "
23535 "cause guestfish to exit, even if that (one) command returns an error."
23536 msgstr ""
23537
23538 # type: =head1
23539 #. type: =head1
23540 #: ../fish/guestfish.pod:864
23541 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
23542 msgstr ""
23543
23544 # type: textblock
23545 #. type: textblock
23546 #: ../fish/guestfish.pod:866
23547 msgid ""
23548 "Guestfish can be remote-controlled over a socket.  This is useful "
23549 "particularly in shell scripts where you want to make several different "
23550 "changes to a filesystem, but you don't want the overhead of starting up a "
23551 "guestfish process each time."
23552 msgstr ""
23553
23554 # type: textblock
23555 #. type: textblock
23556 #: ../fish/guestfish.pod:871
23557 msgid "Start a guestfish server process using:"
23558 msgstr ""
23559
23560 # type: verbatim
23561 #. type: verbatim
23562 #: ../fish/guestfish.pod:873
23563 #, no-wrap
23564 msgid ""
23565 " eval \"`guestfish --listen`\"\n"
23566 "\n"
23567 msgstr ""
23568
23569 # type: textblock
23570 #. type: textblock
23571 #: ../fish/guestfish.pod:875
23572 msgid "and then send it commands by doing:"
23573 msgstr ""
23574
23575 # type: verbatim
23576 #. type: verbatim
23577 #: ../fish/guestfish.pod:877
23578 #, no-wrap
23579 msgid ""
23580 " guestfish --remote cmd [...]\n"
23581 "\n"
23582 msgstr ""
23583
23584 # type: textblock
23585 #. type: textblock
23586 #: ../fish/guestfish.pod:879
23587 msgid "To cause the server to exit, send it the exit command:"
23588 msgstr ""
23589
23590 # type: verbatim
23591 #. type: verbatim
23592 #: ../fish/guestfish.pod:881
23593 #, no-wrap
23594 msgid ""
23595 " guestfish --remote exit\n"
23596 "\n"
23597 msgstr ""
23598
23599 # type: textblock
23600 #. type: textblock
23601 #: ../fish/guestfish.pod:883
23602 msgid ""
23603 "Note that the server will normally exit if there is an error in a command.  "
23604 "You can change this in the usual way.  See section L</EXIT ON ERROR "
23605 "BEHAVIOUR>."
23606 msgstr ""
23607
23608 # type: =head2
23609 #. type: =head2
23610 #: ../fish/guestfish.pod:887
23611 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
23612 msgstr ""
23613
23614 # type: textblock
23615 #. type: textblock
23616 #: ../fish/guestfish.pod:889
23617 msgid ""
23618 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
23619 "is how the I<--remote> option knows where to send the commands.  You can "
23620 "have several guestfish listener processes running using:"
23621 msgstr ""
23622
23623 # type: verbatim
23624 #. type: verbatim
23625 #: ../fish/guestfish.pod:893
23626 #, no-wrap
23627 msgid ""
23628 " eval \"`guestfish --listen`\"\n"
23629 " pid1=$GUESTFISH_PID\n"
23630 " eval \"`guestfish --listen`\"\n"
23631 " pid2=$GUESTFISH_PID\n"
23632 " ...\n"
23633 " guestfish --remote=$pid1 cmd\n"
23634 " guestfish --remote=$pid2 cmd\n"
23635 "\n"
23636 msgstr ""
23637
23638 # type: =head2
23639 #. type: =head2
23640 #: ../fish/guestfish.pod:901
23641 msgid "REMOTE CONTROL AND CSH"
23642 msgstr ""
23643
23644 # type: textblock
23645 #. type: textblock
23646 #: ../fish/guestfish.pod:903
23647 msgid ""
23648 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
23649 "option:"
23650 msgstr ""
23651
23652 # type: verbatim
23653 #. type: verbatim
23654 #: ../fish/guestfish.pod:906
23655 #, no-wrap
23656 msgid ""
23657 " eval \"`guestfish --listen --csh`\"\n"
23658 "\n"
23659 msgstr ""
23660
23661 # type: =head2
23662 #. type: =head2
23663 #: ../fish/guestfish.pod:908
23664 msgid "REMOTE CONTROL DETAILS"
23665 msgstr ""
23666
23667 # type: textblock
23668 #. type: textblock
23669 #: ../fish/guestfish.pod:910
23670 msgid ""
23671 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
23672 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
23673 "and C<$PID> is the process ID of the server."
23674 msgstr ""
23675
23676 # type: textblock
23677 #. type: textblock
23678 #: ../fish/guestfish.pod:914
23679 msgid "Guestfish client and server versions must match exactly."
23680 msgstr ""
23681
23682 # type: =head1
23683 #. type: =head1
23684 #: ../fish/guestfish.pod:916
23685 msgid "PREPARED DISK IMAGES"
23686 msgstr ""
23687
23688 # type: textblock
23689 #. type: textblock
23690 #: ../fish/guestfish.pod:918
23691 msgid ""
23692 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
23693 "preformatted disk images that guestfish can make for you to save typing.  "
23694 "This is particularly useful for testing purposes.  This option is used "
23695 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
23696 "can be mixed with I<-a>)."
23697 msgstr ""
23698
23699 # type: textblock
23700 #. type: textblock
23701 #: ../fish/guestfish.pod:924
23702 msgid ""
23703 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
23704 "the second and so on.  Existing files in the current directory are "
23705 "I<overwritten>."
23706 msgstr ""
23707
23708 # type: textblock
23709 #. type: textblock
23710 #: ../fish/guestfish.pod:928
23711 msgid ""
23712 "The type briefly describes how the disk should be sized, partitioned, how "
23713 "filesystem(s) should be created, and how content should be added.  "
23714 "Optionally the type can be followed by extra parameters, separated by C<:> "
23715 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
23716 "allocated disk, containing a single partition, with the partition formatted "
23717 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
23718 "disk instead."
23719 msgstr ""
23720
23721 # type: textblock
23722 #. type: textblock
23723 #: ../fish/guestfish.pod:936
23724 msgid "To list the available types and any extra parameters they take, run:"
23725 msgstr ""
23726
23727 # type: textblock
23728 #. type: textblock
23729 #: ../fish/guestfish.pod:940
23730 msgid ""
23731 "Note that the prepared filesystem is not mounted.  You would usually have to "
23732 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
23733 msgstr ""
23734
23735 # type: textblock
23736 #. type: textblock
23737 #: ../fish/guestfish.pod:944
23738 msgid ""
23739 "If any I<-N> or I<--new> options are given, the guest is automatically "
23740 "launched."
23741 msgstr ""
23742
23743 # type: textblock
23744 #. type: textblock
23745 #: ../fish/guestfish.pod:949
23746 msgid "Create a 100MB disk with an ext4-formatted partition:"
23747 msgstr ""
23748
23749 # type: verbatim
23750 #. type: verbatim
23751 #: ../fish/guestfish.pod:951
23752 #, no-wrap
23753 msgid ""
23754 " guestfish -N fs:ext4\n"
23755 "\n"
23756 msgstr ""
23757
23758 # type: textblock
23759 #. type: textblock
23760 #: ../fish/guestfish.pod:953
23761 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
23762 msgstr ""
23763
23764 # type: verbatim
23765 #. type: verbatim
23766 #: ../fish/guestfish.pod:955
23767 #, no-wrap
23768 msgid ""
23769 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
23770 "\n"
23771 msgstr ""
23772
23773 # type: textblock
23774 #. type: textblock
23775 #: ../fish/guestfish.pod:957
23776 msgid "Create a blank 200MB disk:"
23777 msgstr ""
23778
23779 # type: verbatim
23780 #. type: verbatim
23781 #: ../fish/guestfish.pod:959
23782 #, no-wrap
23783 msgid ""
23784 " guestfish -N disk:200M\n"
23785 "\n"
23786 msgstr ""
23787
23788 # type: =head1
23789 #. type: =head1
23790 #: ../fish/guestfish.pod:961
23791 msgid "PROGRESS BARS"
23792 msgstr ""
23793
23794 # type: textblock
23795 #. type: textblock
23796 #: ../fish/guestfish.pod:963
23797 msgid ""
23798 "Some (not all) long-running commands send progress notification messages as "
23799 "they are running.  Guestfish turns these messages into progress bars."
23800 msgstr ""
23801
23802 # type: textblock
23803 #. type: textblock
23804 #: ../fish/guestfish.pod:967
23805 msgid ""
23806 "When a command that supports progress bars takes longer than two seconds to "
23807 "run, and if progress bars are enabled, then you will see one appearing below "
23808 "the command:"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #. type: verbatim
23813 #: ../fish/guestfish.pod:971
23814 #, no-wrap
23815 msgid ""
23816 " ><fs> copy-size /large-file /another-file 2048M\n"
23817 " / 10% [#####-----------------------------------------] 00:30\n"
23818 "\n"
23819 msgstr ""
23820
23821 # type: textblock
23822 #. type: textblock
23823 #: ../fish/guestfish.pod:974
23824 msgid ""
23825 "The spinner on the left hand side moves round once for every progress "
23826 "notification received from the backend.  This is a (reasonably) golden "
23827 "assurance that the command is \"doing something\" even if the progress bar "
23828 "is not moving, because the command is able to send the progress "
23829 "notifications.  When the bar reaches 100% and the command finishes, the "
23830 "spinner disappears."
23831 msgstr ""
23832
23833 # type: textblock
23834 #. type: textblock
23835 #: ../fish/guestfish.pod:981
23836 msgid ""
23837 "Progress bars are enabled by default when guestfish is used interactively.  "
23838 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23839 "and you can disable them completely using I<--no-progress-bars>."
23840 msgstr ""
23841
23842 # type: =head1
23843 #. type: =head1
23844 #: ../fish/guestfish.pod:986
23845 msgid "GUESTFISH COMMANDS"
23846 msgstr ""
23847
23848 # type: textblock
23849 #. type: textblock
23850 #: ../fish/guestfish.pod:988
23851 msgid ""
23852 "The commands in this section are guestfish convenience commands, in other "
23853 "words, they are not part of the L<guestfs(3)> API."
23854 msgstr ""
23855
23856 # type: =head2
23857 #. type: =head2
23858 #: ../fish/guestfish.pod:991
23859 msgid "help"
23860 msgstr ""
23861
23862 # type: verbatim
23863 #. type: verbatim
23864 #: ../fish/guestfish.pod:993
23865 #, no-wrap
23866 msgid ""
23867 " help\n"
23868 " help cmd\n"
23869 "\n"
23870 msgstr ""
23871
23872 # type: textblock
23873 #. type: textblock
23874 #: ../fish/guestfish.pod:996
23875 msgid "Without any parameter, this provides general help."
23876 msgstr ""
23877
23878 # type: textblock
23879 #. type: textblock
23880 #: ../fish/guestfish.pod:998
23881 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23882 msgstr ""
23883
23884 # type: =head2
23885 #. type: =head2
23886 #: ../fish/guestfish.pod:1000
23887 msgid "quit | exit"
23888 msgstr ""
23889
23890 # type: textblock
23891 #. type: textblock
23892 #: ../fish/guestfish.pod:1002
23893 msgid "This exits guestfish.  You can also use C<^D> key."
23894 msgstr ""
23895
23896 # type: textblock
23897 #. type: textblock
23898 #: ../fish/guestfish.pod:1004
23899 msgid "@FISH_COMMANDS@"
23900 msgstr ""
23901
23902 # type: =head1
23903 #. type: =head1
23904 #: ../fish/guestfish.pod:1006
23905 msgid "COMMANDS"
23906 msgstr ""
23907
23908 # type: =head1
23909 #. type: =head1
23910 #: ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:77
23911 msgid "EXIT CODE"
23912 msgstr ""
23913
23914 # type: textblock
23915 #. type: textblock
23916 #: ../fish/guestfish.pod:1012
23917 msgid ""
23918 "guestfish returns 0 if the commands completed without error, or 1 if there "
23919 "was an error."
23920 msgstr ""
23921
23922 # type: =item
23923 #. type: =item
23924 #: ../fish/guestfish.pod:1019
23925 msgid "EDITOR"
23926 msgstr ""
23927
23928 # type: textblock
23929 #. type: textblock
23930 #: ../fish/guestfish.pod:1021
23931 msgid ""
23932 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23933 "C<vi>."
23934 msgstr ""
23935
23936 # type: =item
23937 #. type: =item
23938 #: ../fish/guestfish.pod:1024
23939 msgid "GUESTFISH_PID"
23940 msgstr ""
23941
23942 # type: textblock
23943 #. type: textblock
23944 #: ../fish/guestfish.pod:1026
23945 msgid ""
23946 "Used with the I<--remote> option to specify the remote guestfish process to "
23947 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23948 msgstr ""
23949
23950 # type: =item
23951 #. type: =item
23952 #: ../fish/guestfish.pod:1030
23953 msgid "HEXEDITOR"
23954 msgstr ""
23955
23956 # type: textblock
23957 #. type: textblock
23958 #: ../fish/guestfish.pod:1032
23959 msgid ""
23960 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23961 "not specified, the external L<hexedit(1)> program is used."
23962 msgstr ""
23963
23964 # type: =item
23965 #. type: =item
23966 #: ../fish/guestfish.pod:1036
23967 msgid "HOME"
23968 msgstr ""
23969
23970 # type: textblock
23971 #. type: textblock
23972 #: ../fish/guestfish.pod:1038
23973 msgid ""
23974 "If compiled with GNU readline support, various files in the home directory "
23975 "can be used.  See L</FILES>."
23976 msgstr ""
23977
23978 # type: textblock
23979 #. type: textblock
23980 #: ../fish/guestfish.pod:1047
23981 msgid ""
23982 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23983 "effect as using the B<-v> option."
23984 msgstr ""
23985
23986 # type: textblock
23987 #. type: textblock
23988 #: ../fish/guestfish.pod:1059
23989 msgid ""
23990 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23991 "the discussion of paths in L<guestfs(3)>."
23992 msgstr ""
23993
23994 # type: textblock
23995 #. type: textblock
23996 #: ../fish/guestfish.pod:1070
23997 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23998 msgstr ""
23999
24000 # type: =item
24001 #. type: =item
24002 #: ../fish/guestfish.pod:1072
24003 msgid "PAGER"
24004 msgstr ""
24005
24006 # type: textblock
24007 #. type: textblock
24008 #: ../fish/guestfish.pod:1074
24009 msgid ""
24010 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
24011 "C<more>."
24012 msgstr ""
24013
24014 # type: =head1
24015 #. type: =head1
24016 #: ../fish/guestfish.pod:1090 ../fuse/guestmount.pod:252
24017 msgid "FILES"
24018 msgstr ""
24019
24020 #. type: =item
24021 #: ../fish/guestfish.pod:1094 ../fuse/guestmount.pod:256
24022 msgid "$HOME/.libguestfs-tools.rc"
24023 msgstr ""
24024
24025 #. type: =item
24026 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:258
24027 msgid "/etc/libguestfs-tools.conf"
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:260
24032 msgid ""
24033 "This configuration file controls the default read-only or read-write mode "
24034 "(I<--ro> or I<--rw>)."
24035 msgstr ""
24036
24037 #. type: textblock
24038 #: ../fish/guestfish.pod:1101
24039 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
24040 msgstr ""
24041
24042 # type: =item
24043 #. type: =item
24044 #: ../fish/guestfish.pod:1103
24045 msgid "$HOME/.guestfish"
24046 msgstr ""
24047
24048 # type: textblock
24049 #. type: textblock
24050 #: ../fish/guestfish.pod:1105
24051 msgid ""
24052 "If compiled with GNU readline support, then the command history is saved in "
24053 "this file."
24054 msgstr ""
24055
24056 # type: =item
24057 #. type: =item
24058 #: ../fish/guestfish.pod:1108
24059 msgid "$HOME/.inputrc"
24060 msgstr ""
24061
24062 # type: =item
24063 #. type: =item
24064 #: ../fish/guestfish.pod:1110
24065 msgid "/etc/inputrc"
24066 msgstr ""
24067
24068 # type: textblock
24069 #. type: textblock
24070 #: ../fish/guestfish.pod:1112
24071 msgid ""
24072 "If compiled with GNU readline support, then these files can be used to "
24073 "configure readline.  For further information, please see L<readline(3)/"
24074 "INITIALIZATION FILE>."
24075 msgstr ""
24076
24077 # type: textblock
24078 #. type: textblock
24079 #: ../fish/guestfish.pod:1116
24080 msgid "To write rules which only apply to guestfish, use:"
24081 msgstr ""
24082
24083 # type: verbatim
24084 #. type: verbatim
24085 #: ../fish/guestfish.pod:1118
24086 #, no-wrap
24087 msgid ""
24088 " $if guestfish\n"
24089 " ...\n"
24090 " $endif\n"
24091 "\n"
24092 msgstr ""
24093
24094 # type: textblock
24095 #. type: textblock
24096 #: ../fish/guestfish.pod:1122
24097 msgid ""
24098 "Variables that you can set in inputrc that change the behaviour of guestfish "
24099 "in useful ways include:"
24100 msgstr ""
24101
24102 # type: =item
24103 #. type: =item
24104 #: ../fish/guestfish.pod:1127
24105 msgid "completion-ignore-case (default: on)"
24106 msgstr ""
24107
24108 # type: textblock
24109 #. type: textblock
24110 #: ../fish/guestfish.pod:1129
24111 msgid ""
24112 "By default, guestfish will ignore case when tab-completing paths on the "
24113 "disk.  Use:"
24114 msgstr ""
24115
24116 # type: verbatim
24117 #. type: verbatim
24118 #: ../fish/guestfish.pod:1132
24119 #, no-wrap
24120 msgid ""
24121 " set completion-ignore-case off\n"
24122 "\n"
24123 msgstr ""
24124
24125 # type: textblock
24126 #. type: textblock
24127 #: ../fish/guestfish.pod:1134
24128 msgid "to make guestfish case sensitive."
24129 msgstr ""
24130
24131 # type: =item
24132 #. type: =item
24133 #: ../fish/guestfish.pod:1138
24134 msgid "test1.img"
24135 msgstr ""
24136
24137 # type: =item
24138 #. type: =item
24139 #: ../fish/guestfish.pod:1140
24140 msgid "test2.img (etc)"
24141 msgstr ""
24142
24143 # type: textblock
24144 #. type: textblock
24145 #: ../fish/guestfish.pod:1142
24146 msgid ""
24147 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
24148 "will be created in the file C<test1.img> in the current directory.  The "
24149 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
24150 "the same name will be overwritten."
24151 msgstr ""
24152
24153 #. type: textblock
24154 #: ../fish/guestfish.pod:1151
24155 msgid ""
24156 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24157 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24158 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24159 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24160 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24161 ">, L<hexedit(1)>."
24162 msgstr ""
24163
24164 # type: textblock
24165 #. type: textblock
24166 #: ../fish/guestfish.pod:1181 ../test-tool/libguestfs-test-tool.pod:102
24167 #: ../fuse/guestmount.pod:287 ../tools/virt-edit.pl:518
24168 #: ../tools/virt-win-reg.pl:606 ../tools/virt-list-filesystems.pl:210
24169 #: ../tools/virt-tar.pl:309 ../tools/virt-make-fs.pl:572
24170 #: ../tools/virt-list-partitions.pl:277
24171 msgid ""
24172 "This program is free software; you can redistribute it and/or modify it "
24173 "under the terms of the GNU General Public License as published by the Free "
24174 "Software Foundation; either version 2 of the License, or (at your option) "
24175 "any later version."
24176 msgstr ""
24177
24178 # type: textblock
24179 #. type: textblock
24180 #: ../fish/guestfish.pod:1186 ../test-tool/libguestfs-test-tool.pod:107
24181 #: ../fuse/guestmount.pod:292 ../tools/virt-edit.pl:523
24182 #: ../tools/virt-win-reg.pl:611 ../tools/virt-list-filesystems.pl:215
24183 #: ../tools/virt-tar.pl:314 ../tools/virt-make-fs.pl:577
24184 #: ../tools/virt-list-partitions.pl:282
24185 msgid ""
24186 "This program is distributed in the hope that it will be useful, but WITHOUT "
24187 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24188 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24189 "more details."
24190 msgstr ""
24191
24192 # type: textblock
24193 #. type: textblock
24194 #: ../fish/guestfish.pod:1191 ../test-tool/libguestfs-test-tool.pod:112
24195 #: ../fuse/guestmount.pod:297 ../tools/virt-edit.pl:528
24196 #: ../tools/virt-win-reg.pl:616 ../tools/virt-list-filesystems.pl:220
24197 #: ../tools/virt-tar.pl:319 ../tools/virt-make-fs.pl:582
24198 #: ../tools/virt-list-partitions.pl:287
24199 msgid ""
24200 "You should have received a copy of the GNU General Public License along with "
24201 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24202 "Ave, Cambridge, MA 02139, USA."
24203 msgstr ""
24204
24205 # type: =head2
24206 #. type: =head2
24207 #: ../fish/guestfish-actions.pod:1
24208 msgid "add-cdrom"
24209 msgstr ""
24210
24211 # type: verbatim
24212 #. type: verbatim
24213 #: ../fish/guestfish-actions.pod:3
24214 #, no-wrap
24215 msgid ""
24216 " add-cdrom filename\n"
24217 "\n"
24218 msgstr ""
24219
24220 # type: textblock
24221 #. type: textblock
24222 #: ../fish/guestfish-actions.pod:15
24223 msgid ""
24224 "This call checks for the existence of C<filename>.  This stops you from "
24225 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24226 "and C<http:> URLs.  To specify those, use the general L</config> call "
24227 "instead."
24228 msgstr ""
24229
24230 # type: textblock
24231 #. type: textblock
24232 #: ../fish/guestfish-actions.pod:22
24233 msgid ""
24234 "If you just want to add an ISO file (often you use this as an efficient way "
24235 "to transfer large files into the guest), then you should probably use L</add-"
24236 "drive-ro> instead."
24237 msgstr ""
24238
24239 # type: =head2
24240 #. type: =head2
24241 #: ../fish/guestfish-actions.pod:35
24242 msgid "add-domain"
24243 msgstr ""
24244
24245 # type: =head2
24246 #. type: =head2
24247 #: ../fish/guestfish-actions.pod:37
24248 msgid "domain"
24249 msgstr ""
24250
24251 #. type: verbatim
24252 #: ../fish/guestfish-actions.pod:39
24253 #, no-wrap
24254 msgid ""
24255 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
24256 "\n"
24257 msgstr ""
24258
24259 # type: textblock
24260 #. type: textblock
24261 #: ../fish/guestfish-actions.pod:41
24262 msgid ""
24263 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24264 "It works by connecting to libvirt, requesting the domain and domain XML from "
24265 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24266 msgstr ""
24267
24268 # type: textblock
24269 #. type: textblock
24270 #: ../fish/guestfish-actions.pod:71
24271 msgid ""
24272 "The other optional parameters are passed directly through to L</add-drive-"
24273 "opts>."
24274 msgstr ""
24275
24276 # type: textblock
24277 #. type: textblock
24278 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138
24279 #: ../fish/guestfish-actions.pod:3039
24280 msgid ""
24281 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24282 msgstr ""
24283
24284 # type: =head2
24285 #. type: =head2
24286 #: ../fish/guestfish-actions.pod:76
24287 msgid "add-drive"
24288 msgstr ""
24289
24290 # type: verbatim
24291 #. type: verbatim
24292 #: ../fish/guestfish-actions.pod:78
24293 #, no-wrap
24294 msgid ""
24295 " add-drive filename\n"
24296 "\n"
24297 msgstr ""
24298
24299 # type: textblock
24300 #. type: textblock
24301 #: ../fish/guestfish-actions.pod:80
24302 msgid ""
24303 "This function is the equivalent of calling L</add-drive-opts> with no "
24304 "optional parameters, so the disk is added writable, with the format being "
24305 "detected automatically."
24306 msgstr ""
24307
24308 # type: textblock
24309 #. type: textblock
24310 #: ../fish/guestfish-actions.pod:84
24311 msgid ""
24312 "Automatic detection of the format opens you up to a potential security hole "
24313 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24314 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24315 "you should think about replacing calls to this function with calls to L</add-"
24316 "drive-opts>, and specifying the format."
24317 msgstr ""
24318
24319 # type: =head2
24320 #. type: =head2
24321 #: ../fish/guestfish-actions.pod:91
24322 msgid "add-drive-opts"
24323 msgstr ""
24324
24325 # type: =head2
24326 #. type: =head2
24327 #: ../fish/guestfish-actions.pod:93
24328 msgid "add"
24329 msgstr ""
24330
24331 # type: verbatim
24332 #. type: verbatim
24333 #: ../fish/guestfish-actions.pod:95
24334 #, no-wrap
24335 msgid ""
24336 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24337 "\n"
24338 msgstr ""
24339
24340 # type: textblock
24341 #. type: textblock
24342 #: ../fish/guestfish-actions.pod:122
24343 msgid ""
24344 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24345 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24346 "include C<raw> and C<qcow2>."
24347 msgstr ""
24348
24349 # type: textblock
24350 #. type: textblock
24351 #: ../fish/guestfish-actions.pod:133
24352 msgid ""
24353 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24354 "add-drive-with-if> call (q.v.)"
24355 msgstr ""
24356
24357 # type: =head2
24358 #. type: =head2
24359 #: ../fish/guestfish-actions.pod:140
24360 msgid "add-drive-ro"
24361 msgstr ""
24362
24363 # type: =head2
24364 #. type: =head2
24365 #: ../fish/guestfish-actions.pod:142
24366 msgid "add-ro"
24367 msgstr ""
24368
24369 # type: verbatim
24370 #. type: verbatim
24371 #: ../fish/guestfish-actions.pod:144
24372 #, no-wrap
24373 msgid ""
24374 " add-drive-ro filename\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: textblock
24379 #. type: textblock
24380 #: ../fish/guestfish-actions.pod:146
24381 msgid ""
24382 "This function is the equivalent of calling L</add-drive-opts> with the "
24383 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24384 "is added read-only, with the format being detected automatically."
24385 msgstr ""
24386
24387 # type: =head2
24388 #. type: =head2
24389 #: ../fish/guestfish-actions.pod:151
24390 msgid "add-drive-ro-with-if"
24391 msgstr ""
24392
24393 # type: verbatim
24394 #. type: verbatim
24395 #: ../fish/guestfish-actions.pod:153
24396 #, no-wrap
24397 msgid ""
24398 " add-drive-ro-with-if filename iface\n"
24399 "\n"
24400 msgstr ""
24401
24402 # type: textblock
24403 #. type: textblock
24404 #: ../fish/guestfish-actions.pod:155
24405 msgid ""
24406 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24407 "interface emulation to use at run time."
24408 msgstr ""
24409
24410 # type: =head2
24411 #. type: =head2
24412 #: ../fish/guestfish-actions.pod:165
24413 msgid "add-drive-with-if"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #. type: verbatim
24418 #: ../fish/guestfish-actions.pod:167
24419 #, no-wrap
24420 msgid ""
24421 " add-drive-with-if filename iface\n"
24422 "\n"
24423 msgstr ""
24424
24425 # type: textblock
24426 #. type: textblock
24427 #: ../fish/guestfish-actions.pod:169
24428 msgid ""
24429 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24430 "interface emulation to use at run time."
24431 msgstr ""
24432
24433 # type: =head2
24434 #. type: =head2
24435 #: ../fish/guestfish-actions.pod:179
24436 msgid "aug-clear"
24437 msgstr ""
24438
24439 # type: verbatim
24440 #. type: verbatim
24441 #: ../fish/guestfish-actions.pod:181
24442 #, no-wrap
24443 msgid ""
24444 " aug-clear augpath\n"
24445 "\n"
24446 msgstr ""
24447
24448 # type: =head2
24449 #. type: =head2
24450 #: ../fish/guestfish-actions.pod:186
24451 msgid "aug-close"
24452 msgstr ""
24453
24454 # type: verbatim
24455 #. type: verbatim
24456 #: ../fish/guestfish-actions.pod:188
24457 #, no-wrap
24458 msgid ""
24459 " aug-close\n"
24460 "\n"
24461 msgstr ""
24462
24463 # type: textblock
24464 #. type: textblock
24465 #: ../fish/guestfish-actions.pod:190
24466 msgid ""
24467 "Close the current Augeas handle and free up any resources used by it.  After "
24468 "calling this, you have to call L</aug-init> again before you can use any "
24469 "other Augeas functions."
24470 msgstr ""
24471
24472 # type: =head2
24473 #. type: =head2
24474 #: ../fish/guestfish-actions.pod:195
24475 msgid "aug-defnode"
24476 msgstr ""
24477
24478 # type: verbatim
24479 #. type: verbatim
24480 #: ../fish/guestfish-actions.pod:197
24481 #, no-wrap
24482 msgid ""
24483 " aug-defnode name expr val\n"
24484 "\n"
24485 msgstr ""
24486
24487 # type: textblock
24488 #. type: textblock
24489 #: ../fish/guestfish-actions.pod:202
24490 msgid ""
24491 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24492 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
24493 "containing that single node."
24494 msgstr ""
24495
24496 # type: =head2
24497 #. type: =head2
24498 #: ../fish/guestfish-actions.pod:210
24499 msgid "aug-defvar"
24500 msgstr ""
24501
24502 # type: verbatim
24503 #. type: verbatim
24504 #: ../fish/guestfish-actions.pod:212
24505 #, no-wrap
24506 msgid ""
24507 " aug-defvar name expr\n"
24508 "\n"
24509 msgstr ""
24510
24511 # type: =head2
24512 #. type: =head2
24513 #: ../fish/guestfish-actions.pod:221
24514 msgid "aug-get"
24515 msgstr ""
24516
24517 # type: verbatim
24518 #. type: verbatim
24519 #: ../fish/guestfish-actions.pod:223
24520 #, no-wrap
24521 msgid ""
24522 " aug-get augpath\n"
24523 "\n"
24524 msgstr ""
24525
24526 # type: =head2
24527 #. type: =head2
24528 #: ../fish/guestfish-actions.pod:228
24529 msgid "aug-init"
24530 msgstr ""
24531
24532 # type: verbatim
24533 #. type: verbatim
24534 #: ../fish/guestfish-actions.pod:230
24535 #, no-wrap
24536 msgid ""
24537 " aug-init root flags\n"
24538 "\n"
24539 msgstr ""
24540
24541 # type: textblock
24542 #. type: textblock
24543 #: ../fish/guestfish-actions.pod:236
24544 msgid "You must call this before using any other L</aug-*> commands."
24545 msgstr ""
24546
24547 # type: textblock
24548 #. type: textblock
24549 #: ../fish/guestfish-actions.pod:271
24550 msgid "Do not load the tree in L</aug-init>."
24551 msgstr ""
24552
24553 # type: textblock
24554 #. type: textblock
24555 #: ../fish/guestfish-actions.pod:275
24556 msgid "To close the handle, you can call L</aug-close>."
24557 msgstr ""
24558
24559 # type: =head2
24560 #. type: =head2
24561 #: ../fish/guestfish-actions.pod:279
24562 msgid "aug-insert"
24563 msgstr ""
24564
24565 # type: verbatim
24566 #. type: verbatim
24567 #: ../fish/guestfish-actions.pod:281
24568 #, no-wrap
24569 msgid ""
24570 " aug-insert augpath label true|false\n"
24571 "\n"
24572 msgstr ""
24573
24574 # type: =head2
24575 #. type: =head2
24576 #: ../fish/guestfish-actions.pod:291
24577 msgid "aug-load"
24578 msgstr ""
24579
24580 # type: verbatim
24581 #. type: verbatim
24582 #: ../fish/guestfish-actions.pod:293
24583 #, no-wrap
24584 msgid ""
24585 " aug-load\n"
24586 "\n"
24587 msgstr ""
24588
24589 # type: =head2
24590 #. type: =head2
24591 #: ../fish/guestfish-actions.pod:300
24592 msgid "aug-ls"
24593 msgstr ""
24594
24595 # type: verbatim
24596 #. type: verbatim
24597 #: ../fish/guestfish-actions.pod:302
24598 #, no-wrap
24599 msgid ""
24600 " aug-ls augpath\n"
24601 "\n"
24602 msgstr ""
24603
24604 # type: textblock
24605 #. type: textblock
24606 #: ../fish/guestfish-actions.pod:304
24607 msgid ""
24608 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
24609 "resulting nodes into alphabetical order."
24610 msgstr ""
24611
24612 # type: =head2
24613 #. type: =head2
24614 #: ../fish/guestfish-actions.pod:307
24615 msgid "aug-match"
24616 msgstr ""
24617
24618 # type: verbatim
24619 #. type: verbatim
24620 #: ../fish/guestfish-actions.pod:309
24621 #, no-wrap
24622 msgid ""
24623 " aug-match augpath\n"
24624 "\n"
24625 msgstr ""
24626
24627 # type: =head2
24628 #. type: =head2
24629 #: ../fish/guestfish-actions.pod:315
24630 msgid "aug-mv"
24631 msgstr ""
24632
24633 # type: verbatim
24634 #. type: verbatim
24635 #: ../fish/guestfish-actions.pod:317
24636 #, no-wrap
24637 msgid ""
24638 " aug-mv src dest\n"
24639 "\n"
24640 msgstr ""
24641
24642 # type: =head2
24643 #. type: =head2
24644 #: ../fish/guestfish-actions.pod:322
24645 msgid "aug-rm"
24646 msgstr ""
24647
24648 # type: verbatim
24649 #. type: verbatim
24650 #: ../fish/guestfish-actions.pod:324
24651 #, no-wrap
24652 msgid ""
24653 " aug-rm augpath\n"
24654 "\n"
24655 msgstr ""
24656
24657 # type: =head2
24658 #. type: =head2
24659 #: ../fish/guestfish-actions.pod:330
24660 msgid "aug-save"
24661 msgstr ""
24662
24663 # type: verbatim
24664 #. type: verbatim
24665 #: ../fish/guestfish-actions.pod:332
24666 #, no-wrap
24667 msgid ""
24668 " aug-save\n"
24669 "\n"
24670 msgstr ""
24671
24672 # type: textblock
24673 #. type: textblock
24674 #: ../fish/guestfish-actions.pod:336
24675 msgid ""
24676 "The flags which were passed to L</aug-init> affect exactly how files are "
24677 "saved."
24678 msgstr ""
24679
24680 # type: =head2
24681 #. type: =head2
24682 #: ../fish/guestfish-actions.pod:339
24683 msgid "aug-set"
24684 msgstr ""
24685
24686 # type: verbatim
24687 #. type: verbatim
24688 #: ../fish/guestfish-actions.pod:341
24689 #, no-wrap
24690 msgid ""
24691 " aug-set augpath val\n"
24692 "\n"
24693 msgstr ""
24694
24695 # type: textblock
24696 #. type: textblock
24697 #: ../fish/guestfish-actions.pod:345
24698 msgid ""
24699 "In the Augeas API, it is possible to clear a node by setting the value to "
24700 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24701 "this call.  Instead you must use the L</aug-clear> call."
24702 msgstr ""
24703
24704 # type: =head2
24705 #. type: =head2
24706 #: ../fish/guestfish-actions.pod:350
24707 msgid "available"
24708 msgstr ""
24709
24710 # type: verbatim
24711 #. type: verbatim
24712 #: ../fish/guestfish-actions.pod:352
24713 #, no-wrap
24714 msgid ""
24715 " available 'groups ...'\n"
24716 "\n"
24717 msgstr ""
24718
24719 # type: textblock
24720 #. type: textblock
24721 #: ../fish/guestfish-actions.pod:358
24722 msgid ""
24723 "The libguestfs groups, and the functions that those groups correspond to, "
24724 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24725 "runtime by calling L</available-all-groups>."
24726 msgstr ""
24727
24728 # type: textblock
24729 #. type: textblock
24730 #: ../fish/guestfish-actions.pod:382
24731 msgid "You must call L</launch> before calling this function."
24732 msgstr ""
24733
24734 # type: textblock
24735 #. type: textblock
24736 #: ../fish/guestfish-actions.pod:404
24737 msgid ""
24738 "This call was added in version C<1.0.80>.  In previous versions of "
24739 "libguestfs all you could do would be to speculatively execute a command to "
24740 "find out if the daemon implemented it.  See also L</version>."
24741 msgstr ""
24742
24743 # type: =head2
24744 #. type: =head2
24745 #: ../fish/guestfish-actions.pod:411
24746 msgid "available-all-groups"
24747 msgstr ""
24748
24749 # type: verbatim
24750 #. type: verbatim
24751 #: ../fish/guestfish-actions.pod:413
24752 #, no-wrap
24753 msgid ""
24754 " available-all-groups\n"
24755 "\n"
24756 msgstr ""
24757
24758 # type: textblock
24759 #. type: textblock
24760 #: ../fish/guestfish-actions.pod:415
24761 msgid ""
24762 "This command returns a list of all optional groups that this daemon knows "
24763 "about.  Note this returns both supported and unsupported groups.  To find "
24764 "out which ones the daemon can actually support you have to call L</"
24765 "available> on each member of the returned list."
24766 msgstr ""
24767
24768 # type: textblock
24769 #. type: textblock
24770 #: ../fish/guestfish-actions.pod:421
24771 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
24772 msgstr ""
24773
24774 # type: =head2
24775 #. type: =head2
24776 #: ../fish/guestfish-actions.pod:423
24777 msgid "base64-in"
24778 msgstr ""
24779
24780 # type: verbatim
24781 #. type: verbatim
24782 #: ../fish/guestfish-actions.pod:425
24783 #, no-wrap
24784 msgid ""
24785 " base64-in (base64file|-) filename\n"
24786 "\n"
24787 msgstr ""
24788
24789 # type: textblock
24790 #. type: textblock
24791 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439
24792 #: ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832
24793 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228
24794 #: ../fish/guestfish-actions.pod:4437 ../fish/guestfish-actions.pod:4449
24795 #: ../fish/guestfish-actions.pod:4460 ../fish/guestfish-actions.pod:4471
24796 #: ../fish/guestfish-actions.pod:4523 ../fish/guestfish-actions.pod:4532
24797 #: ../fish/guestfish-actions.pod:4586 ../fish/guestfish-actions.pod:4609
24798 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
24799 msgstr ""
24800
24801 # type: =head2
24802 #. type: =head2
24803 #: ../fish/guestfish-actions.pod:432
24804 msgid "base64-out"
24805 msgstr ""
24806
24807 # type: verbatim
24808 #. type: verbatim
24809 #: ../fish/guestfish-actions.pod:434
24810 #, no-wrap
24811 msgid ""
24812 " base64-out filename (base64file|-)\n"
24813 "\n"
24814 msgstr ""
24815
24816 # type: =head2
24817 #. type: =head2
24818 #: ../fish/guestfish-actions.pod:441
24819 msgid "blockdev-flushbufs"
24820 msgstr ""
24821
24822 # type: verbatim
24823 #. type: verbatim
24824 #: ../fish/guestfish-actions.pod:443
24825 #, no-wrap
24826 msgid ""
24827 " blockdev-flushbufs device\n"
24828 "\n"
24829 msgstr ""
24830
24831 # type: =head2
24832 #. type: =head2
24833 #: ../fish/guestfish-actions.pod:450
24834 msgid "blockdev-getbsz"
24835 msgstr ""
24836
24837 # type: verbatim
24838 #. type: verbatim
24839 #: ../fish/guestfish-actions.pod:452
24840 #, no-wrap
24841 msgid ""
24842 " blockdev-getbsz device\n"
24843 "\n"
24844 msgstr ""
24845
24846 # type: =head2
24847 #. type: =head2
24848 #: ../fish/guestfish-actions.pod:461
24849 msgid "blockdev-getro"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #. type: verbatim
24854 #: ../fish/guestfish-actions.pod:463
24855 #, no-wrap
24856 msgid ""
24857 " blockdev-getro device\n"
24858 "\n"
24859 msgstr ""
24860
24861 # type: =head2
24862 #. type: =head2
24863 #: ../fish/guestfish-actions.pod:470
24864 msgid "blockdev-getsize64"
24865 msgstr ""
24866
24867 # type: verbatim
24868 #. type: verbatim
24869 #: ../fish/guestfish-actions.pod:472
24870 #, no-wrap
24871 msgid ""
24872 " blockdev-getsize64 device\n"
24873 "\n"
24874 msgstr ""
24875
24876 # type: textblock
24877 #. type: textblock
24878 #: ../fish/guestfish-actions.pod:476
24879 msgid "See also L</blockdev-getsz>."
24880 msgstr ""
24881
24882 # type: =head2
24883 #. type: =head2
24884 #: ../fish/guestfish-actions.pod:480
24885 msgid "blockdev-getss"
24886 msgstr ""
24887
24888 # type: verbatim
24889 #. type: verbatim
24890 #: ../fish/guestfish-actions.pod:482
24891 #, no-wrap
24892 msgid ""
24893 " blockdev-getss device\n"
24894 "\n"
24895 msgstr ""
24896
24897 # type: textblock
24898 #. type: textblock
24899 #: ../fish/guestfish-actions.pod:487
24900 msgid ""
24901 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24902 msgstr ""
24903
24904 # type: =head2
24905 #. type: =head2
24906 #: ../fish/guestfish-actions.pod:492
24907 msgid "blockdev-getsz"
24908 msgstr ""
24909
24910 # type: verbatim
24911 #. type: verbatim
24912 #: ../fish/guestfish-actions.pod:494
24913 #, no-wrap
24914 msgid ""
24915 " blockdev-getsz device\n"
24916 "\n"
24917 msgstr ""
24918
24919 # type: textblock
24920 #. type: textblock
24921 #: ../fish/guestfish-actions.pod:499
24922 msgid ""
24923 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24924 "blockdev-getsize64> for the more useful I<size in bytes>."
24925 msgstr ""
24926
24927 # type: =head2
24928 #. type: =head2
24929 #: ../fish/guestfish-actions.pod:505
24930 msgid "blockdev-rereadpt"
24931 msgstr ""
24932
24933 # type: verbatim
24934 #. type: verbatim
24935 #: ../fish/guestfish-actions.pod:507
24936 #, no-wrap
24937 msgid ""
24938 " blockdev-rereadpt device\n"
24939 "\n"
24940 msgstr ""
24941
24942 # type: =head2
24943 #. type: =head2
24944 #: ../fish/guestfish-actions.pod:513
24945 msgid "blockdev-setbsz"
24946 msgstr ""
24947
24948 # type: verbatim
24949 #. type: verbatim
24950 #: ../fish/guestfish-actions.pod:515
24951 #, no-wrap
24952 msgid ""
24953 " blockdev-setbsz device blocksize\n"
24954 "\n"
24955 msgstr ""
24956
24957 # type: =head2
24958 #. type: =head2
24959 #: ../fish/guestfish-actions.pod:524
24960 msgid "blockdev-setro"
24961 msgstr ""
24962
24963 # type: verbatim
24964 #. type: verbatim
24965 #: ../fish/guestfish-actions.pod:526
24966 #, no-wrap
24967 msgid ""
24968 " blockdev-setro device\n"
24969 "\n"
24970 msgstr ""
24971
24972 # type: =head2
24973 #. type: =head2
24974 #: ../fish/guestfish-actions.pod:532
24975 msgid "blockdev-setrw"
24976 msgstr ""
24977
24978 # type: verbatim
24979 #. type: verbatim
24980 #: ../fish/guestfish-actions.pod:534
24981 #, no-wrap
24982 msgid ""
24983 " blockdev-setrw device\n"
24984 "\n"
24985 msgstr ""
24986
24987 # type: =head2
24988 #. type: =head2
24989 #: ../fish/guestfish-actions.pod:540
24990 msgid "case-sensitive-path"
24991 msgstr ""
24992
24993 # type: verbatim
24994 #. type: verbatim
24995 #: ../fish/guestfish-actions.pod:542
24996 #, no-wrap
24997 msgid ""
24998 " case-sensitive-path path\n"
24999 "\n"
25000 msgstr ""
25001
25002 # type: textblock
25003 #. type: textblock
25004 #: ../fish/guestfish-actions.pod:566
25005 msgid ""
25006 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
25007 "WINDOWS/system32\"> (the exact return value would depend on details of how "
25008 "the directories were originally created under Windows)."
25009 msgstr ""
25010
25011 # type: textblock
25012 #. type: textblock
25013 #: ../fish/guestfish-actions.pod:574
25014 msgid "See also L</realpath>."
25015 msgstr ""
25016
25017 # type: =head2
25018 #. type: =head2
25019 #: ../fish/guestfish-actions.pod:576
25020 msgid "cat"
25021 msgstr ""
25022
25023 # type: verbatim
25024 #. type: verbatim
25025 #: ../fish/guestfish-actions.pod:578
25026 #, no-wrap
25027 msgid ""
25028 " cat path\n"
25029 "\n"
25030 msgstr ""
25031
25032 # type: textblock
25033 #. type: textblock
25034 #: ../fish/guestfish-actions.pod:582
25035 msgid ""
25036 "Note that this function cannot correctly handle binary files (specifically, "
25037 "files containing C<\\0> character which is treated as end of string).  For "
25038 "those you need to use the L</read-file> or L</download> functions which have "
25039 "a more complex interface."
25040 msgstr ""
25041
25042 # type: =head2
25043 #. type: =head2
25044 #: ../fish/guestfish-actions.pod:590
25045 msgid "checksum"
25046 msgstr ""
25047
25048 # type: verbatim
25049 #. type: verbatim
25050 #: ../fish/guestfish-actions.pod:592
25051 #, no-wrap
25052 msgid ""
25053 " checksum csumtype path\n"
25054 "\n"
25055 msgstr ""
25056
25057 # type: textblock
25058 #. type: textblock
25059 #: ../fish/guestfish-actions.pod:635
25060 msgid "To get the checksum for a device, use L</checksum-device>."
25061 msgstr ""
25062
25063 # type: textblock
25064 #. type: textblock
25065 #: ../fish/guestfish-actions.pod:637
25066 msgid "To get the checksums for many files, use L</checksums-out>."
25067 msgstr ""
25068
25069 # type: =head2
25070 #. type: =head2
25071 #: ../fish/guestfish-actions.pod:639
25072 msgid "checksum-device"
25073 msgstr ""
25074
25075 # type: verbatim
25076 #. type: verbatim
25077 #: ../fish/guestfish-actions.pod:641
25078 #, no-wrap
25079 msgid ""
25080 " checksum-device csumtype device\n"
25081 "\n"
25082 msgstr ""
25083
25084 # type: textblock
25085 #. type: textblock
25086 #: ../fish/guestfish-actions.pod:643
25087 msgid ""
25088 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25089 "device named C<device>.  For the types of checksums supported see the L</"
25090 "checksum> command."
25091 msgstr ""
25092
25093 # type: =head2
25094 #. type: =head2
25095 #: ../fish/guestfish-actions.pod:647
25096 msgid "checksums-out"
25097 msgstr ""
25098
25099 # type: verbatim
25100 #. type: verbatim
25101 #: ../fish/guestfish-actions.pod:649
25102 #, no-wrap
25103 msgid ""
25104 " checksums-out csumtype directory (sumsfile|-)\n"
25105 "\n"
25106 msgstr ""
25107
25108 # type: =head2
25109 #. type: =head2
25110 #: ../fish/guestfish-actions.pod:665
25111 msgid "chmod"
25112 msgstr ""
25113
25114 # type: verbatim
25115 #. type: verbatim
25116 #: ../fish/guestfish-actions.pod:667
25117 #, no-wrap
25118 msgid ""
25119 " chmod mode path\n"
25120 "\n"
25121 msgstr ""
25122
25123 # type: =head2
25124 #. type: =head2
25125 #: ../fish/guestfish-actions.pod:678
25126 msgid "chown"
25127 msgstr ""
25128
25129 # type: verbatim
25130 #. type: verbatim
25131 #: ../fish/guestfish-actions.pod:680
25132 #, no-wrap
25133 msgid ""
25134 " chown owner group path\n"
25135 "\n"
25136 msgstr ""
25137
25138 # type: =head2
25139 #. type: =head2
25140 #: ../fish/guestfish-actions.pod:688
25141 msgid "command"
25142 msgstr ""
25143
25144 # type: verbatim
25145 #. type: verbatim
25146 #: ../fish/guestfish-actions.pod:690
25147 #, no-wrap
25148 msgid ""
25149 " command 'arguments ...'\n"
25150 "\n"
25151 msgstr ""
25152
25153 # type: textblock
25154 #. type: textblock
25155 #: ../fish/guestfish-actions.pod:697
25156 msgid ""
25157 "The single parameter is an argv-style list of arguments.  The first element "
25158 "is the name of the program to run.  Subsequent elements are parameters.  The "
25159 "list must be non-empty (ie. must contain a program name).  Note that the "
25160 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25161 msgstr ""
25162
25163 # type: =head2
25164 #. type: =head2
25165 #: ../fish/guestfish-actions.pod:725
25166 msgid "command-lines"
25167 msgstr ""
25168
25169 # type: verbatim
25170 #. type: verbatim
25171 #: ../fish/guestfish-actions.pod:727
25172 #, no-wrap
25173 msgid ""
25174 " command-lines 'arguments ...'\n"
25175 "\n"
25176 msgstr ""
25177
25178 # type: textblock
25179 #. type: textblock
25180 #: ../fish/guestfish-actions.pod:729
25181 msgid ""
25182 "This is the same as L</command>, but splits the result into a list of lines."
25183 msgstr ""
25184
25185 # type: textblock
25186 #. type: textblock
25187 #: ../fish/guestfish-actions.pod:732
25188 msgid "See also: L</sh-lines>"
25189 msgstr ""
25190
25191 # type: =head2
25192 #. type: =head2
25193 #: ../fish/guestfish-actions.pod:737
25194 msgid "config"
25195 msgstr ""
25196
25197 # type: verbatim
25198 #. type: verbatim
25199 #: ../fish/guestfish-actions.pod:739
25200 #, no-wrap
25201 msgid ""
25202 " config qemuparam qemuvalue\n"
25203 "\n"
25204 msgstr ""
25205
25206 # type: =head2
25207 #. type: =head2
25208 #: ../fish/guestfish-actions.pod:750
25209 msgid "copy-size"
25210 msgstr ""
25211
25212 # type: verbatim
25213 #. type: verbatim
25214 #: ../fish/guestfish-actions.pod:752
25215 #, no-wrap
25216 msgid ""
25217 " copy-size src dest size\n"
25218 "\n"
25219 msgstr ""
25220
25221 # type: =head2
25222 #. type: =head2
25223 #: ../fish/guestfish-actions.pod:760
25224 msgid "cp"
25225 msgstr ""
25226
25227 # type: verbatim
25228 #. type: verbatim
25229 #: ../fish/guestfish-actions.pod:762
25230 #, no-wrap
25231 msgid ""
25232 " cp src dest\n"
25233 "\n"
25234 msgstr ""
25235
25236 # type: =head2
25237 #. type: =head2
25238 #: ../fish/guestfish-actions.pod:767
25239 msgid "cp-a"
25240 msgstr ""
25241
25242 # type: verbatim
25243 #. type: verbatim
25244 #: ../fish/guestfish-actions.pod:769
25245 #, no-wrap
25246 msgid ""
25247 " cp-a src dest\n"
25248 "\n"
25249 msgstr ""
25250
25251 # type: =head2
25252 #. type: =head2
25253 #: ../fish/guestfish-actions.pod:774
25254 msgid "dd"
25255 msgstr ""
25256
25257 # type: verbatim
25258 #. type: verbatim
25259 #: ../fish/guestfish-actions.pod:776
25260 #, no-wrap
25261 msgid ""
25262 " dd src dest\n"
25263 "\n"
25264 msgstr ""
25265
25266 # type: textblock
25267 #. type: textblock
25268 #: ../fish/guestfish-actions.pod:783
25269 msgid ""
25270 "If the destination is a device, it must be as large or larger than the "
25271 "source file or device, otherwise the copy will fail.  This command cannot do "
25272 "partial copies (see L</copy-size>)."
25273 msgstr ""
25274
25275 # type: =head2
25276 #. type: =head2
25277 #: ../fish/guestfish-actions.pod:787
25278 msgid "df"
25279 msgstr ""
25280
25281 # type: verbatim
25282 #. type: verbatim
25283 #: ../fish/guestfish-actions.pod:789
25284 #, no-wrap
25285 msgid ""
25286 " df\n"
25287 "\n"
25288 msgstr ""
25289
25290 # type: textblock
25291 #. type: textblock
25292 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
25293 msgid ""
25294 "This command is mostly useful for interactive sessions.  It is I<not> "
25295 "intended that you try to parse the output string.  Use L</statvfs> from "
25296 "programs."
25297 msgstr ""
25298
25299 # type: =head2
25300 #. type: =head2
25301 #: ../fish/guestfish-actions.pod:797
25302 msgid "df-h"
25303 msgstr ""
25304
25305 # type: verbatim
25306 #. type: verbatim
25307 #: ../fish/guestfish-actions.pod:799
25308 #, no-wrap
25309 msgid ""
25310 " df-h\n"
25311 "\n"
25312 msgstr ""
25313
25314 # type: =head2
25315 #. type: =head2
25316 #: ../fish/guestfish-actions.pod:808
25317 msgid "dmesg"
25318 msgstr ""
25319
25320 # type: verbatim
25321 #. type: verbatim
25322 #: ../fish/guestfish-actions.pod:810
25323 #, no-wrap
25324 msgid ""
25325 " dmesg\n"
25326 "\n"
25327 msgstr ""
25328
25329 # type: textblock
25330 #. type: textblock
25331 #: ../fish/guestfish-actions.pod:816
25332 msgid ""
25333 "Another way to get the same information is to enable verbose messages with "
25334 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25335 "before running the program."
25336 msgstr ""
25337
25338 # type: =head2
25339 #. type: =head2
25340 #: ../fish/guestfish-actions.pod:821
25341 msgid "download"
25342 msgstr ""
25343
25344 # type: verbatim
25345 #. type: verbatim
25346 #: ../fish/guestfish-actions.pod:823
25347 #, no-wrap
25348 msgid ""
25349 " download remotefilename (filename|-)\n"
25350 "\n"
25351 msgstr ""
25352
25353 # type: textblock
25354 #. type: textblock
25355 #: ../fish/guestfish-actions.pod:830
25356 msgid "See also L</upload>, L</cat>."
25357 msgstr ""
25358
25359 # type: =head2
25360 #. type: =head2
25361 #: ../fish/guestfish-actions.pod:834
25362 msgid "download-offset"
25363 msgstr ""
25364
25365 # type: verbatim
25366 #. type: verbatim
25367 #: ../fish/guestfish-actions.pod:836
25368 #, no-wrap
25369 msgid ""
25370 " download-offset remotefilename (filename|-) offset size\n"
25371 "\n"
25372 msgstr ""
25373
25374 # type: textblock
25375 #. type: textblock
25376 #: ../fish/guestfish-actions.pod:844
25377 msgid ""
25378 "Note that there is no limit on the amount of data that can be downloaded "
25379 "with this call, unlike with L</pread>, and this call always reads the full "
25380 "amount unless an error occurs."
25381 msgstr ""
25382
25383 # type: textblock
25384 #. type: textblock
25385 #: ../fish/guestfish-actions.pod:849
25386 msgid "See also L</download>, L</pread>."
25387 msgstr ""
25388
25389 # type: =head2
25390 #. type: =head2
25391 #: ../fish/guestfish-actions.pod:853
25392 msgid "drop-caches"
25393 msgstr ""
25394
25395 # type: verbatim
25396 #. type: verbatim
25397 #: ../fish/guestfish-actions.pod:855
25398 #, no-wrap
25399 msgid ""
25400 " drop-caches whattodrop\n"
25401 "\n"
25402 msgstr ""
25403
25404 # type: =head2
25405 #. type: =head2
25406 #: ../fish/guestfish-actions.pod:867
25407 msgid "du"
25408 msgstr ""
25409
25410 # type: verbatim
25411 #. type: verbatim
25412 #: ../fish/guestfish-actions.pod:869
25413 #, no-wrap
25414 msgid ""
25415 " du path\n"
25416 "\n"
25417 msgstr ""
25418
25419 # type: =head2
25420 #. type: =head2
25421 #: ../fish/guestfish-actions.pod:881
25422 msgid "e2fsck-f"
25423 msgstr ""
25424
25425 # type: verbatim
25426 #. type: verbatim
25427 #: ../fish/guestfish-actions.pod:883
25428 #, no-wrap
25429 msgid ""
25430 " e2fsck-f device\n"
25431 "\n"
25432 msgstr ""
25433
25434 # type: textblock
25435 #. type: textblock
25436 #: ../fish/guestfish-actions.pod:889
25437 msgid ""
25438 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25439 "should use L</fsck>."
25440 msgstr ""
25441
25442 # type: =head2
25443 #. type: =head2
25444 #: ../fish/guestfish-actions.pod:892
25445 msgid "echo-daemon"
25446 msgstr ""
25447
25448 # type: verbatim
25449 #. type: verbatim
25450 #: ../fish/guestfish-actions.pod:894
25451 #, no-wrap
25452 msgid ""
25453 " echo-daemon 'words ...'\n"
25454 "\n"
25455 msgstr ""
25456
25457 # type: textblock
25458 #. type: textblock
25459 #: ../fish/guestfish-actions.pod:901
25460 msgid "See also L</ping-daemon>."
25461 msgstr ""
25462
25463 # type: =head2
25464 #. type: =head2
25465 #: ../fish/guestfish-actions.pod:903
25466 msgid "egrep"
25467 msgstr ""
25468
25469 # type: verbatim
25470 #. type: verbatim
25471 #: ../fish/guestfish-actions.pod:905
25472 #, no-wrap
25473 msgid ""
25474 " egrep regex path\n"
25475 "\n"
25476 msgstr ""
25477
25478 # type: =head2
25479 #. type: =head2
25480 #: ../fish/guestfish-actions.pod:913
25481 msgid "egrepi"
25482 msgstr ""
25483
25484 # type: verbatim
25485 #. type: verbatim
25486 #: ../fish/guestfish-actions.pod:915
25487 #, no-wrap
25488 msgid ""
25489 " egrepi regex path\n"
25490 "\n"
25491 msgstr ""
25492
25493 # type: =head2
25494 #. type: =head2
25495 #: ../fish/guestfish-actions.pod:923
25496 msgid "equal"
25497 msgstr ""
25498
25499 # type: verbatim
25500 #. type: verbatim
25501 #: ../fish/guestfish-actions.pod:925
25502 #, no-wrap
25503 msgid ""
25504 " equal file1 file2\n"
25505 "\n"
25506 msgstr ""
25507
25508 # type: =head2
25509 #. type: =head2
25510 #: ../fish/guestfish-actions.pod:932
25511 msgid "exists"
25512 msgstr ""
25513
25514 # type: verbatim
25515 #. type: verbatim
25516 #: ../fish/guestfish-actions.pod:934
25517 #, no-wrap
25518 msgid ""
25519 " exists path\n"
25520 "\n"
25521 msgstr ""
25522
25523 # type: textblock
25524 #. type: textblock
25525 #: ../fish/guestfish-actions.pod:939
25526 msgid "See also L</is-file>, L</is-dir>, L</stat>."
25527 msgstr ""
25528
25529 # type: =head2
25530 #. type: =head2
25531 #: ../fish/guestfish-actions.pod:941
25532 msgid "fallocate"
25533 msgstr ""
25534
25535 # type: verbatim
25536 #. type: verbatim
25537 #: ../fish/guestfish-actions.pod:943
25538 #, no-wrap
25539 msgid ""
25540 " fallocate path len\n"
25541 "\n"
25542 msgstr ""
25543
25544 # type: =head2
25545 #. type: =head2
25546 #: ../fish/guestfish-actions.pod:960
25547 msgid "fallocate64"
25548 msgstr ""
25549
25550 # type: verbatim
25551 #. type: verbatim
25552 #: ../fish/guestfish-actions.pod:962
25553 #, no-wrap
25554 msgid ""
25555 " fallocate64 path len\n"
25556 "\n"
25557 msgstr ""
25558
25559 # type: textblock
25560 #. type: textblock
25561 #: ../fish/guestfish-actions.pod:968
25562 msgid ""
25563 "Note that this call allocates disk blocks for the file.  To create a sparse "
25564 "file use L</truncate-size> instead."
25565 msgstr ""
25566
25567 # type: textblock
25568 #. type: textblock
25569 #: ../fish/guestfish-actions.pod:971
25570 msgid ""
25571 "The deprecated call L</fallocate> does the same, but owing to an oversight "
25572 "it only allowed 30 bit lengths to be specified, effectively limiting the "
25573 "maximum size of files created through that call to 1GB."
25574 msgstr ""
25575
25576 # type: =head2
25577 #. type: =head2
25578 #: ../fish/guestfish-actions.pod:980
25579 msgid "fgrep"
25580 msgstr ""
25581
25582 # type: verbatim
25583 #. type: verbatim
25584 #: ../fish/guestfish-actions.pod:982
25585 #, no-wrap
25586 msgid ""
25587 " fgrep pattern path\n"
25588 "\n"
25589 msgstr ""
25590
25591 # type: =head2
25592 #. type: =head2
25593 #: ../fish/guestfish-actions.pod:990
25594 msgid "fgrepi"
25595 msgstr ""
25596
25597 # type: verbatim
25598 #. type: verbatim
25599 #: ../fish/guestfish-actions.pod:992
25600 #, no-wrap
25601 msgid ""
25602 " fgrepi pattern path\n"
25603 "\n"
25604 msgstr ""
25605
25606 # type: =head2
25607 #. type: =head2
25608 #: ../fish/guestfish-actions.pod:1000
25609 msgid "file"
25610 msgstr ""
25611
25612 # type: verbatim
25613 #. type: verbatim
25614 #: ../fish/guestfish-actions.pod:1002
25615 #, no-wrap
25616 msgid ""
25617 " file path\n"
25618 "\n"
25619 msgstr ""
25620
25621 # type: textblock
25622 #. type: textblock
25623 #: ../fish/guestfish-actions.pod:1014
25624 msgid ""
25625 "This command can also be used on C</dev/> devices (and partitions, LV "
25626 "names).  You can for example use this to determine if a device contains a "
25627 "filesystem, although it's usually better to use L</vfs-type>."
25628 msgstr ""
25629
25630 # type: =head2
25631 #. type: =head2
25632 #: ../fish/guestfish-actions.pod:1024
25633 msgid "file-architecture"
25634 msgstr ""
25635
25636 # type: verbatim
25637 #. type: verbatim
25638 #: ../fish/guestfish-actions.pod:1026
25639 #, no-wrap
25640 msgid ""
25641 " file-architecture filename\n"
25642 "\n"
25643 msgstr ""
25644
25645 # type: =head2
25646 #. type: =head2
25647 #: ../fish/guestfish-actions.pod:1129
25648 msgid "filesize"
25649 msgstr ""
25650
25651 # type: verbatim
25652 #. type: verbatim
25653 #: ../fish/guestfish-actions.pod:1131
25654 #, no-wrap
25655 msgid ""
25656 " filesize file\n"
25657 "\n"
25658 msgstr ""
25659
25660 # type: textblock
25661 #. type: textblock
25662 #: ../fish/guestfish-actions.pod:1135
25663 msgid ""
25664 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
25665 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
25666 msgstr ""
25667
25668 # type: =head2
25669 #. type: =head2
25670 #: ../fish/guestfish-actions.pod:1139
25671 msgid "fill"
25672 msgstr ""
25673
25674 # type: verbatim
25675 #. type: verbatim
25676 #: ../fish/guestfish-actions.pod:1141
25677 #, no-wrap
25678 msgid ""
25679 " fill c len path\n"
25680 "\n"
25681 msgstr ""
25682
25683 # type: textblock
25684 #. type: textblock
25685 #: ../fish/guestfish-actions.pod:1147
25686 msgid ""
25687 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25688 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
25689 "L</fill-pattern>."
25690 msgstr ""
25691
25692 # type: =head2
25693 #. type: =head2
25694 #: ../fish/guestfish-actions.pod:1152
25695 msgid "fill-pattern"
25696 msgstr ""
25697
25698 # type: verbatim
25699 #. type: verbatim
25700 #: ../fish/guestfish-actions.pod:1154
25701 #, no-wrap
25702 msgid ""
25703 " fill-pattern pattern len path\n"
25704 "\n"
25705 msgstr ""
25706
25707 # type: textblock
25708 #. type: textblock
25709 #: ../fish/guestfish-actions.pod:1156
25710 msgid ""
25711 "This function is like L</fill> except that it creates a new file of length "
25712 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
25713 "is truncated if necessary to ensure the length of the file is exactly C<len> "
25714 "bytes."
25715 msgstr ""
25716
25717 # type: =head2
25718 #. type: =head2
25719 #: ../fish/guestfish-actions.pod:1161
25720 msgid "find"
25721 msgstr ""
25722
25723 # type: verbatim
25724 #. type: verbatim
25725 #: ../fish/guestfish-actions.pod:1163
25726 #, no-wrap
25727 msgid ""
25728 " find directory\n"
25729 "\n"
25730 msgstr ""
25731
25732 # type: textblock
25733 #. type: textblock
25734 #: ../fish/guestfish-actions.pod:1177
25735 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
25736 msgstr ""
25737
25738 # type: textblock
25739 #. type: textblock
25740 #: ../fish/guestfish-actions.pod:1190
25741 msgid "See also L</find0>."
25742 msgstr ""
25743
25744 # type: =head2
25745 #. type: =head2
25746 #: ../fish/guestfish-actions.pod:1195
25747 msgid "find0"
25748 msgstr ""
25749
25750 # type: verbatim
25751 #. type: verbatim
25752 #: ../fish/guestfish-actions.pod:1197
25753 #, no-wrap
25754 msgid ""
25755 " find0 directory (files|-)\n"
25756 "\n"
25757 msgstr ""
25758
25759 # type: textblock
25760 #. type: textblock
25761 #: ../fish/guestfish-actions.pod:1203
25762 msgid ""
25763 "This command works the same way as L</find> with the following exceptions:"
25764 msgstr ""
25765
25766 # type: =head2
25767 #. type: =head2
25768 #: ../fish/guestfish-actions.pod:1230
25769 msgid "findfs-label"
25770 msgstr ""
25771
25772 # type: verbatim
25773 #. type: verbatim
25774 #: ../fish/guestfish-actions.pod:1232
25775 #, no-wrap
25776 msgid ""
25777 " findfs-label label\n"
25778 "\n"
25779 msgstr ""
25780
25781 # type: textblock
25782 #. type: textblock
25783 #: ../fish/guestfish-actions.pod:1238
25784 msgid "To find the label of a filesystem, use L</vfs-label>."
25785 msgstr ""
25786
25787 # type: =head2
25788 #. type: =head2
25789 #: ../fish/guestfish-actions.pod:1240
25790 msgid "findfs-uuid"
25791 msgstr ""
25792
25793 # type: verbatim
25794 #. type: verbatim
25795 #: ../fish/guestfish-actions.pod:1242
25796 #, no-wrap
25797 msgid ""
25798 " findfs-uuid uuid\n"
25799 "\n"
25800 msgstr ""
25801
25802 # type: textblock
25803 #. type: textblock
25804 #: ../fish/guestfish-actions.pod:1248
25805 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
25806 msgstr ""
25807
25808 # type: =head2
25809 #. type: =head2
25810 #: ../fish/guestfish-actions.pod:1250
25811 msgid "fsck"
25812 msgstr ""
25813
25814 # type: verbatim
25815 #. type: verbatim
25816 #: ../fish/guestfish-actions.pod:1252
25817 #, no-wrap
25818 msgid ""
25819 " fsck fstype device\n"
25820 "\n"
25821 msgstr ""
25822
25823 # type: =head2
25824 #. type: =head2
25825 #: ../fish/guestfish-actions.pod:1282
25826 msgid "get-append"
25827 msgstr ""
25828
25829 # type: verbatim
25830 #. type: verbatim
25831 #: ../fish/guestfish-actions.pod:1284
25832 #, no-wrap
25833 msgid ""
25834 " get-append\n"
25835 "\n"
25836 msgstr ""
25837
25838 #. type: =head2
25839 #: ../fish/guestfish-actions.pod:1291
25840 msgid "get-attach-method"
25841 msgstr ""
25842
25843 #. type: verbatim
25844 #: ../fish/guestfish-actions.pod:1293
25845 #, no-wrap
25846 msgid ""
25847 " get-attach-method\n"
25848 "\n"
25849 msgstr ""
25850
25851 #. type: textblock
25852 #: ../fish/guestfish-actions.pod:1295
25853 msgid "Return the current attach method.  See L</set-attach-method>."
25854 msgstr ""
25855
25856 # type: =head2
25857 #. type: =head2
25858 #: ../fish/guestfish-actions.pod:1297
25859 msgid "get-autosync"
25860 msgstr ""
25861
25862 # type: verbatim
25863 #. type: verbatim
25864 #: ../fish/guestfish-actions.pod:1299
25865 #, no-wrap
25866 msgid ""
25867 " get-autosync\n"
25868 "\n"
25869 msgstr ""
25870
25871 # type: =head2
25872 #. type: =head2
25873 #: ../fish/guestfish-actions.pod:1303
25874 msgid "get-direct"
25875 msgstr ""
25876
25877 # type: verbatim
25878 #. type: verbatim
25879 #: ../fish/guestfish-actions.pod:1305
25880 #, no-wrap
25881 msgid ""
25882 " get-direct\n"
25883 "\n"
25884 msgstr ""
25885
25886 # type: =head2
25887 #. type: =head2
25888 #: ../fish/guestfish-actions.pod:1309
25889 msgid "get-e2label"
25890 msgstr ""
25891
25892 # type: verbatim
25893 #. type: verbatim
25894 #: ../fish/guestfish-actions.pod:1311
25895 #, no-wrap
25896 msgid ""
25897 " get-e2label device\n"
25898 "\n"
25899 msgstr ""
25900
25901 # type: =head2
25902 #. type: =head2
25903 #: ../fish/guestfish-actions.pod:1323
25904 msgid "get-e2uuid"
25905 msgstr ""
25906
25907 # type: verbatim
25908 #. type: verbatim
25909 #: ../fish/guestfish-actions.pod:1325
25910 #, no-wrap
25911 msgid ""
25912 " get-e2uuid device\n"
25913 "\n"
25914 msgstr ""
25915
25916 # type: =head2
25917 #. type: =head2
25918 #: ../fish/guestfish-actions.pod:1337
25919 msgid "get-memsize"
25920 msgstr ""
25921
25922 # type: verbatim
25923 #. type: verbatim
25924 #: ../fish/guestfish-actions.pod:1339
25925 #, no-wrap
25926 msgid ""
25927 " get-memsize\n"
25928 "\n"
25929 msgstr ""
25930
25931 # type: textblock
25932 #. type: textblock
25933 #: ../fish/guestfish-actions.pod:1344
25934 msgid ""
25935 "If L</set-memsize> was not called on this handle, and if "
25936 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25937 "value for memsize."
25938 msgstr ""
25939
25940 # type: =head2
25941 #. type: =head2
25942 #: ../fish/guestfish-actions.pod:1351
25943 msgid "get-network"
25944 msgstr ""
25945
25946 # type: verbatim
25947 #. type: verbatim
25948 #: ../fish/guestfish-actions.pod:1353
25949 #, no-wrap
25950 msgid ""
25951 " get-network\n"
25952 "\n"
25953 msgstr ""
25954
25955 # type: =head2
25956 #. type: =head2
25957 #: ../fish/guestfish-actions.pod:1357
25958 msgid "get-path"
25959 msgstr ""
25960
25961 # type: verbatim
25962 #. type: verbatim
25963 #: ../fish/guestfish-actions.pod:1359
25964 #, no-wrap
25965 msgid ""
25966 " get-path\n"
25967 "\n"
25968 msgstr ""
25969
25970 # type: =head2
25971 #. type: =head2
25972 #: ../fish/guestfish-actions.pod:1366
25973 msgid "get-pid"
25974 msgstr ""
25975
25976 # type: =head2
25977 #. type: =head2
25978 #: ../fish/guestfish-actions.pod:1368
25979 msgid "pid"
25980 msgstr ""
25981
25982 # type: verbatim
25983 #. type: verbatim
25984 #: ../fish/guestfish-actions.pod:1370
25985 #, no-wrap
25986 msgid ""
25987 " get-pid\n"
25988 "\n"
25989 msgstr ""
25990
25991 # type: =head2
25992 #. type: =head2
25993 #: ../fish/guestfish-actions.pod:1377
25994 msgid "get-qemu"
25995 msgstr ""
25996
25997 # type: verbatim
25998 #. type: verbatim
25999 #: ../fish/guestfish-actions.pod:1379
26000 #, no-wrap
26001 msgid ""
26002 " get-qemu\n"
26003 "\n"
26004 msgstr ""
26005
26006 # type: =head2
26007 #. type: =head2
26008 #: ../fish/guestfish-actions.pod:1386
26009 msgid "get-recovery-proc"
26010 msgstr ""
26011
26012 # type: verbatim
26013 #. type: verbatim
26014 #: ../fish/guestfish-actions.pod:1388
26015 #, no-wrap
26016 msgid ""
26017 " get-recovery-proc\n"
26018 "\n"
26019 msgstr ""
26020
26021 # type: =head2
26022 #. type: =head2
26023 #: ../fish/guestfish-actions.pod:1392
26024 msgid "get-selinux"
26025 msgstr ""
26026
26027 # type: verbatim
26028 #. type: verbatim
26029 #: ../fish/guestfish-actions.pod:1394
26030 #, no-wrap
26031 msgid ""
26032 " get-selinux\n"
26033 "\n"
26034 msgstr ""
26035
26036 # type: textblock
26037 #. type: textblock
26038 #: ../fish/guestfish-actions.pod:1396
26039 msgid ""
26040 "This returns the current setting of the selinux flag which is passed to the "
26041 "appliance at boot time.  See L</set-selinux>."
26042 msgstr ""
26043
26044 # type: =head2
26045 #. type: =head2
26046 #: ../fish/guestfish-actions.pod:1402
26047 msgid "get-state"
26048 msgstr ""
26049
26050 # type: verbatim
26051 #. type: verbatim
26052 #: ../fish/guestfish-actions.pod:1404
26053 #, no-wrap
26054 msgid ""
26055 " get-state\n"
26056 "\n"
26057 msgstr ""
26058
26059 # type: =head2
26060 #. type: =head2
26061 #: ../fish/guestfish-actions.pod:1411
26062 msgid "get-trace"
26063 msgstr ""
26064
26065 # type: verbatim
26066 #. type: verbatim
26067 #: ../fish/guestfish-actions.pod:1413
26068 #, no-wrap
26069 msgid ""
26070 " get-trace\n"
26071 "\n"
26072 msgstr ""
26073
26074 # type: =head2
26075 #. type: =head2
26076 #: ../fish/guestfish-actions.pod:1417
26077 msgid "get-umask"
26078 msgstr ""
26079
26080 # type: verbatim
26081 #. type: verbatim
26082 #: ../fish/guestfish-actions.pod:1419
26083 #, no-wrap
26084 msgid ""
26085 " get-umask\n"
26086 "\n"
26087 msgstr ""
26088
26089 # type: textblock
26090 #. type: textblock
26091 #: ../fish/guestfish-actions.pod:1421
26092 msgid ""
26093 "Return the current umask.  By default the umask is C<022> unless it has been "
26094 "set by calling L</umask>."
26095 msgstr ""
26096
26097 # type: =head2
26098 #. type: =head2
26099 #: ../fish/guestfish-actions.pod:1424
26100 msgid "get-verbose"
26101 msgstr ""
26102
26103 # type: verbatim
26104 #. type: verbatim
26105 #: ../fish/guestfish-actions.pod:1426
26106 #, no-wrap
26107 msgid ""
26108 " get-verbose\n"
26109 "\n"
26110 msgstr ""
26111
26112 # type: =head2
26113 #. type: =head2
26114 #: ../fish/guestfish-actions.pod:1430
26115 msgid "getcon"
26116 msgstr ""
26117
26118 # type: verbatim
26119 #. type: verbatim
26120 #: ../fish/guestfish-actions.pod:1432
26121 #, no-wrap
26122 msgid ""
26123 " getcon\n"
26124 "\n"
26125 msgstr ""
26126
26127 # type: textblock
26128 #. type: textblock
26129 #: ../fish/guestfish-actions.pod:1436
26130 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26131 msgstr ""
26132
26133 # type: =head2
26134 #. type: =head2
26135 #: ../fish/guestfish-actions.pod:1439
26136 msgid "getxattr"
26137 msgstr ""
26138
26139 # type: verbatim
26140 #. type: verbatim
26141 #: ../fish/guestfish-actions.pod:1441
26142 #, no-wrap
26143 msgid ""
26144 " getxattr path name\n"
26145 "\n"
26146 msgstr ""
26147
26148 # type: textblock
26149 #. type: textblock
26150 #: ../fish/guestfish-actions.pod:1443
26151 msgid ""
26152 "Get a single extended attribute from file C<path> named C<name>.  This call "
26153 "follows symlinks.  If you want to lookup an extended attribute for the "
26154 "symlink itself, use L</lgetxattr>."
26155 msgstr ""
26156
26157 # type: textblock
26158 #. type: textblock
26159 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2445
26160 msgid ""
26161 "Normally it is better to get all extended attributes from a file in one go "
26162 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26163 "buggy and do not provide a way to list out attributes.  For these "
26164 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26165 "attributes you want in advance and call this function."
26166 msgstr ""
26167
26168 # type: textblock
26169 #. type: textblock
26170 #: ../fish/guestfish-actions.pod:1457
26171 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26172 msgstr ""
26173
26174 # type: =head2
26175 #. type: =head2
26176 #: ../fish/guestfish-actions.pod:1459
26177 msgid "getxattrs"
26178 msgstr ""
26179
26180 # type: verbatim
26181 #. type: verbatim
26182 #: ../fish/guestfish-actions.pod:1461
26183 #, no-wrap
26184 msgid ""
26185 " getxattrs path\n"
26186 "\n"
26187 msgstr ""
26188
26189 # type: textblock
26190 #. type: textblock
26191 #: ../fish/guestfish-actions.pod:1469
26192 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26193 msgstr ""
26194
26195 # type: =head2
26196 #. type: =head2
26197 #: ../fish/guestfish-actions.pod:1471
26198 msgid "glob-expand"
26199 msgstr ""
26200
26201 # type: verbatim
26202 #. type: verbatim
26203 #: ../fish/guestfish-actions.pod:1473
26204 #, no-wrap
26205 msgid ""
26206 " glob-expand pattern\n"
26207 "\n"
26208 msgstr ""
26209
26210 # type: =head2
26211 #. type: =head2
26212 #: ../fish/guestfish-actions.pod:1486
26213 msgid "grep"
26214 msgstr ""
26215
26216 # type: verbatim
26217 #. type: verbatim
26218 #: ../fish/guestfish-actions.pod:1488
26219 #, no-wrap
26220 msgid ""
26221 " grep regex path\n"
26222 "\n"
26223 msgstr ""
26224
26225 # type: =head2
26226 #. type: =head2
26227 #: ../fish/guestfish-actions.pod:1496
26228 msgid "grepi"
26229 msgstr ""
26230
26231 # type: verbatim
26232 #. type: verbatim
26233 #: ../fish/guestfish-actions.pod:1498
26234 #, no-wrap
26235 msgid ""
26236 " grepi regex path\n"
26237 "\n"
26238 msgstr ""
26239
26240 # type: =head2
26241 #. type: =head2
26242 #: ../fish/guestfish-actions.pod:1506
26243 msgid "grub-install"
26244 msgstr ""
26245
26246 # type: verbatim
26247 #. type: verbatim
26248 #: ../fish/guestfish-actions.pod:1508
26249 #, no-wrap
26250 msgid ""
26251 " grub-install root device\n"
26252 "\n"
26253 msgstr ""
26254
26255 # type: =head2
26256 #. type: =head2
26257 #: ../fish/guestfish-actions.pod:1524
26258 msgid "head"
26259 msgstr ""
26260
26261 # type: verbatim
26262 #. type: verbatim
26263 #: ../fish/guestfish-actions.pod:1526
26264 #, no-wrap
26265 msgid ""
26266 " head path\n"
26267 "\n"
26268 msgstr ""
26269
26270 # type: =head2
26271 #. type: =head2
26272 #: ../fish/guestfish-actions.pod:1534
26273 msgid "head-n"
26274 msgstr ""
26275
26276 # type: verbatim
26277 #. type: verbatim
26278 #: ../fish/guestfish-actions.pod:1536
26279 #, no-wrap
26280 msgid ""
26281 " head-n nrlines path\n"
26282 "\n"
26283 msgstr ""
26284
26285 # type: =head2
26286 #. type: =head2
26287 #: ../fish/guestfish-actions.pod:1549
26288 msgid "hexdump"
26289 msgstr ""
26290
26291 # type: verbatim
26292 #. type: verbatim
26293 #: ../fish/guestfish-actions.pod:1551
26294 #, no-wrap
26295 msgid ""
26296 " hexdump path\n"
26297 "\n"
26298 msgstr ""
26299
26300 # type: =head2
26301 #. type: =head2
26302 #: ../fish/guestfish-actions.pod:1559
26303 msgid "initrd-cat"
26304 msgstr ""
26305
26306 # type: verbatim
26307 #. type: verbatim
26308 #: ../fish/guestfish-actions.pod:1561
26309 #, no-wrap
26310 msgid ""
26311 " initrd-cat initrdpath filename\n"
26312 "\n"
26313 msgstr ""
26314
26315 # type: textblock
26316 #. type: textblock
26317 #: ../fish/guestfish-actions.pod:1573
26318 msgid "See also L</initrd-list>."
26319 msgstr ""
26320
26321 # type: =head2
26322 #. type: =head2
26323 #: ../fish/guestfish-actions.pod:1578
26324 msgid "initrd-list"
26325 msgstr ""
26326
26327 # type: verbatim
26328 #. type: verbatim
26329 #: ../fish/guestfish-actions.pod:1580
26330 #, no-wrap
26331 msgid ""
26332 " initrd-list path\n"
26333 "\n"
26334 msgstr ""
26335
26336 # type: =head2
26337 #. type: =head2
26338 #: ../fish/guestfish-actions.pod:1592
26339 msgid "inotify-add-watch"
26340 msgstr ""
26341
26342 # type: verbatim
26343 #. type: verbatim
26344 #: ../fish/guestfish-actions.pod:1594
26345 #, no-wrap
26346 msgid ""
26347 " inotify-add-watch path mask\n"
26348 "\n"
26349 msgstr ""
26350
26351 # type: =head2
26352 #. type: =head2
26353 #: ../fish/guestfish-actions.pod:1606
26354 msgid "inotify-close"
26355 msgstr ""
26356
26357 # type: verbatim
26358 #. type: verbatim
26359 #: ../fish/guestfish-actions.pod:1608
26360 #, no-wrap
26361 msgid ""
26362 " inotify-close\n"
26363 "\n"
26364 msgstr ""
26365
26366 # type: =head2
26367 #. type: =head2
26368 #: ../fish/guestfish-actions.pod:1614
26369 msgid "inotify-files"
26370 msgstr ""
26371
26372 # type: verbatim
26373 #. type: verbatim
26374 #: ../fish/guestfish-actions.pod:1616
26375 #, no-wrap
26376 msgid ""
26377 " inotify-files\n"
26378 "\n"
26379 msgstr ""
26380
26381 # type: textblock
26382 #. type: textblock
26383 #: ../fish/guestfish-actions.pod:1618
26384 msgid ""
26385 "This function is a helpful wrapper around L</inotify-read> which just "
26386 "returns a list of pathnames of objects that were touched.  The returned "
26387 "pathnames are sorted and deduplicated."
26388 msgstr ""
26389
26390 # type: =head2
26391 #. type: =head2
26392 #: ../fish/guestfish-actions.pod:1622
26393 msgid "inotify-init"
26394 msgstr ""
26395
26396 # type: verbatim
26397 #. type: verbatim
26398 #: ../fish/guestfish-actions.pod:1624
26399 #, no-wrap
26400 msgid ""
26401 " inotify-init maxevents\n"
26402 "\n"
26403 msgstr ""
26404
26405 # type: textblock
26406 #. type: textblock
26407 #: ../fish/guestfish-actions.pod:1630
26408 msgid ""
26409 "C<maxevents> is the maximum number of events which will be queued up between "
26410 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26411 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26412 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26413 "but records the fact that it threw them away by setting a flag "
26414 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26415 msgstr ""
26416
26417 # type: textblock
26418 #. type: textblock
26419 #: ../fish/guestfish-actions.pod:1640
26420 msgid ""
26421 "Before any events are generated, you have to add some watches to the "
26422 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26423 "L</inotify-watch-all>."
26424 msgstr ""
26425
26426 # type: textblock
26427 #. type: textblock
26428 #: ../fish/guestfish-actions.pod:1646
26429 msgid ""
26430 "Queued up events should be read periodically by calling L</inotify-read> (or "
26431 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26432 "If you don't read the events out often enough then you risk the internal "
26433 "queue overflowing."
26434 msgstr ""
26435
26436 # type: textblock
26437 #. type: textblock
26438 #: ../fish/guestfish-actions.pod:1653
26439 msgid ""
26440 "The handle should be closed after use by calling L</inotify-close>.  This "
26441 "also removes any watches automatically."
26442 msgstr ""
26443
26444 # type: =head2
26445 #. type: =head2
26446 #: ../fish/guestfish-actions.pod:1662
26447 msgid "inotify-read"
26448 msgstr ""
26449
26450 # type: verbatim
26451 #. type: verbatim
26452 #: ../fish/guestfish-actions.pod:1664
26453 #, no-wrap
26454 msgid ""
26455 " inotify-read\n"
26456 "\n"
26457 msgstr ""
26458
26459 # type: =head2
26460 #. type: =head2
26461 #: ../fish/guestfish-actions.pod:1677
26462 msgid "inotify-rm-watch"
26463 msgstr ""
26464
26465 # type: verbatim
26466 #. type: verbatim
26467 #: ../fish/guestfish-actions.pod:1679
26468 #, no-wrap
26469 msgid ""
26470 " inotify-rm-watch wd\n"
26471 "\n"
26472 msgstr ""
26473
26474 # type: textblock
26475 #. type: textblock
26476 #: ../fish/guestfish-actions.pod:1681
26477 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
26478 msgstr ""
26479
26480 # type: =head2
26481 #. type: =head2
26482 #: ../fish/guestfish-actions.pod:1684
26483 msgid "inspect-get-arch"
26484 msgstr ""
26485
26486 # type: verbatim
26487 #. type: verbatim
26488 #: ../fish/guestfish-actions.pod:1686
26489 #, no-wrap
26490 msgid ""
26491 " inspect-get-arch root\n"
26492 "\n"
26493 msgstr ""
26494
26495 # type: textblock
26496 #. type: textblock
26497 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704
26498 #: ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1818
26499 #: ../fish/guestfish-actions.pod:1836 ../fish/guestfish-actions.pod:1870
26500 #: ../fish/guestfish-actions.pod:1885 ../fish/guestfish-actions.pod:1906
26501 #: ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1954
26502 #: ../fish/guestfish-actions.pod:1976 ../fish/guestfish-actions.pod:2000
26503 #: ../fish/guestfish-actions.pod:2017 ../fish/guestfish-actions.pod:2060
26504 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2111
26505 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2140
26506 #: ../fish/guestfish-actions.pod:2153 ../fish/guestfish-actions.pod:2168
26507 msgid ""
26508 "This function should only be called with a root device string as returned by "
26509 "L</inspect-os>."
26510 msgstr ""
26511
26512 # type: textblock
26513 #. type: textblock
26514 #: ../fish/guestfish-actions.pod:1691
26515 msgid ""
26516 "This returns the architecture of the inspected operating system.  The "
26517 "possible return values are listed under L</file-architecture>."
26518 msgstr ""
26519
26520 # type: =head2
26521 #. type: =head2
26522 #: ../fish/guestfish-actions.pod:1700
26523 msgid "inspect-get-distro"
26524 msgstr ""
26525
26526 # type: verbatim
26527 #. type: verbatim
26528 #: ../fish/guestfish-actions.pod:1702
26529 #, no-wrap
26530 msgid ""
26531 " inspect-get-distro root\n"
26532 "\n"
26533 msgstr ""
26534
26535 #. type: =head2
26536 #: ../fish/guestfish-actions.pod:1778
26537 msgid "inspect-get-drive-mappings"
26538 msgstr ""
26539
26540 #. type: verbatim
26541 #: ../fish/guestfish-actions.pod:1780
26542 #, no-wrap
26543 msgid ""
26544 " inspect-get-drive-mappings root\n"
26545 "\n"
26546 msgstr ""
26547
26548 #. type: textblock
26549 #: ../fish/guestfish-actions.pod:1810
26550 msgid ""
26551 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26552 "get-mountpoints>, L</inspect-get-filesystems>."
26553 msgstr ""
26554
26555 # type: =head2
26556 #. type: =head2
26557 #: ../fish/guestfish-actions.pod:1814
26558 msgid "inspect-get-filesystems"
26559 msgstr ""
26560
26561 # type: verbatim
26562 #. type: verbatim
26563 #: ../fish/guestfish-actions.pod:1816
26564 #, no-wrap
26565 msgid ""
26566 " inspect-get-filesystems root\n"
26567 "\n"
26568 msgstr ""
26569
26570 # type: textblock
26571 #. type: textblock
26572 #: ../fish/guestfish-actions.pod:1829
26573 msgid ""
26574 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26575 "get-mountpoints>."
26576 msgstr ""
26577
26578 #. type: =head2
26579 #: ../fish/guestfish-actions.pod:1832
26580 msgid "inspect-get-format"
26581 msgstr ""
26582
26583 #. type: verbatim
26584 #: ../fish/guestfish-actions.pod:1834
26585 #, no-wrap
26586 msgid ""
26587 " inspect-get-format root\n"
26588 "\n"
26589 msgstr ""
26590
26591 # type: =head2
26592 #. type: =head2
26593 #: ../fish/guestfish-actions.pod:1866
26594 msgid "inspect-get-hostname"
26595 msgstr ""
26596
26597 # type: verbatim
26598 #. type: verbatim
26599 #: ../fish/guestfish-actions.pod:1868
26600 #, no-wrap
26601 msgid ""
26602 " inspect-get-hostname root\n"
26603 "\n"
26604 msgstr ""
26605
26606 # type: =head2
26607 #. type: =head2
26608 #: ../fish/guestfish-actions.pod:1881
26609 msgid "inspect-get-major-version"
26610 msgstr ""
26611
26612 # type: verbatim
26613 #. type: verbatim
26614 #: ../fish/guestfish-actions.pod:1883
26615 #, no-wrap
26616 msgid ""
26617 " inspect-get-major-version root\n"
26618 "\n"
26619 msgstr ""
26620
26621 # type: =head2
26622 #. type: =head2
26623 #: ../fish/guestfish-actions.pod:1902
26624 msgid "inspect-get-minor-version"
26625 msgstr ""
26626
26627 # type: verbatim
26628 #. type: verbatim
26629 #: ../fish/guestfish-actions.pod:1904
26630 #, no-wrap
26631 msgid ""
26632 " inspect-get-minor-version root\n"
26633 "\n"
26634 msgstr ""
26635
26636 # type: textblock
26637 #. type: textblock
26638 #: ../fish/guestfish-actions.pod:1914
26639 msgid ""
26640 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26641 "get-major-version>."
26642 msgstr ""
26643
26644 # type: =head2
26645 #. type: =head2
26646 #: ../fish/guestfish-actions.pod:1917
26647 msgid "inspect-get-mountpoints"
26648 msgstr ""
26649
26650 # type: verbatim
26651 #. type: verbatim
26652 #: ../fish/guestfish-actions.pod:1919
26653 #, no-wrap
26654 msgid ""
26655 " inspect-get-mountpoints root\n"
26656 "\n"
26657 msgstr ""
26658
26659 #. type: textblock
26660 #: ../fish/guestfish-actions.pod:1941
26661 msgid ""
26662 "For operating systems like Windows which still use drive letters, this call "
26663 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26664 "information about the mapping of drive letters to partitions, see L</inspect-"
26665 "get-drive-mappings>."
26666 msgstr ""
26667
26668 # type: textblock
26669 #. type: textblock
26670 #: ../fish/guestfish-actions.pod:1947
26671 msgid ""
26672 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26673 "get-filesystems>."
26674 msgstr ""
26675
26676 # type: =head2
26677 #. type: =head2
26678 #: ../fish/guestfish-actions.pod:1950
26679 msgid "inspect-get-package-format"
26680 msgstr ""
26681
26682 # type: verbatim
26683 #. type: verbatim
26684 #: ../fish/guestfish-actions.pod:1952
26685 #, no-wrap
26686 msgid ""
26687 " inspect-get-package-format root\n"
26688 "\n"
26689 msgstr ""
26690
26691 # type: textblock
26692 #. type: textblock
26693 #: ../fish/guestfish-actions.pod:1957
26694 msgid ""
26695 "This function and L</inspect-get-package-management> return the package "
26696 "format and package management tool used by the inspected operating system.  "
26697 "For example for Fedora these functions would return C<rpm> (package format) "
26698 "and C<yum> (package management)."
26699 msgstr ""
26700
26701 # type: =head2
26702 #. type: =head2
26703 #: ../fish/guestfish-actions.pod:1972
26704 msgid "inspect-get-package-management"
26705 msgstr ""
26706
26707 # type: verbatim
26708 #. type: verbatim
26709 #: ../fish/guestfish-actions.pod:1974
26710 #, no-wrap
26711 msgid ""
26712 " inspect-get-package-management root\n"
26713 "\n"
26714 msgstr ""
26715
26716 # type: textblock
26717 #. type: textblock
26718 #: ../fish/guestfish-actions.pod:1979
26719 msgid ""
26720 "L</inspect-get-package-format> and this function return the package format "
26721 "and package management tool used by the inspected operating system.  For "
26722 "example for Fedora these functions would return C<rpm> (package format) and "
26723 "C<yum> (package management)."
26724 msgstr ""
26725
26726 # type: =head2
26727 #. type: =head2
26728 #: ../fish/guestfish-actions.pod:1996
26729 msgid "inspect-get-product-name"
26730 msgstr ""
26731
26732 # type: verbatim
26733 #. type: verbatim
26734 #: ../fish/guestfish-actions.pod:1998
26735 #, no-wrap
26736 msgid ""
26737 " inspect-get-product-name root\n"
26738 "\n"
26739 msgstr ""
26740
26741 #. type: =head2
26742 #: ../fish/guestfish-actions.pod:2013
26743 msgid "inspect-get-product-variant"
26744 msgstr ""
26745
26746 #. type: verbatim
26747 #: ../fish/guestfish-actions.pod:2015
26748 #, no-wrap
26749 msgid ""
26750 " inspect-get-product-variant root\n"
26751 "\n"
26752 msgstr ""
26753
26754 #. type: textblock
26755 #: ../fish/guestfish-actions.pod:2039
26756 msgid ""
26757 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26758 "get-product-name>, L</inspect-get-major-version>."
26759 msgstr ""
26760
26761 # type: =head2
26762 #. type: =head2
26763 #: ../fish/guestfish-actions.pod:2043
26764 msgid "inspect-get-roots"
26765 msgstr ""
26766
26767 # type: verbatim
26768 #. type: verbatim
26769 #: ../fish/guestfish-actions.pod:2045
26770 #, no-wrap
26771 msgid ""
26772 " inspect-get-roots\n"
26773 "\n"
26774 msgstr ""
26775
26776 # type: textblock
26777 #. type: textblock
26778 #: ../fish/guestfish-actions.pod:2047
26779 msgid ""
26780 "This function is a convenient way to get the list of root devices, as "
26781 "returned from a previous call to L</inspect-os>, but without redoing the "
26782 "whole inspection process."
26783 msgstr ""
26784
26785 # type: textblock
26786 #. type: textblock
26787 #: ../fish/guestfish-actions.pod:2051
26788 msgid ""
26789 "This returns an empty list if either no root devices were found or the "
26790 "caller has not called L</inspect-os>."
26791 msgstr ""
26792
26793 # type: =head2
26794 #. type: =head2
26795 #: ../fish/guestfish-actions.pod:2056
26796 msgid "inspect-get-type"
26797 msgstr ""
26798
26799 # type: verbatim
26800 #. type: verbatim
26801 #: ../fish/guestfish-actions.pod:2058
26802 #, no-wrap
26803 msgid ""
26804 " inspect-get-type root\n"
26805 "\n"
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../fish/guestfish-actions.pod:2091
26810 msgid "inspect-get-windows-current-control-set"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../fish/guestfish-actions.pod:2093
26815 #, no-wrap
26816 msgid ""
26817 " inspect-get-windows-current-control-set root\n"
26818 "\n"
26819 msgstr ""
26820
26821 # type: =head2
26822 #. type: =head2
26823 #: ../fish/guestfish-actions.pod:2107
26824 msgid "inspect-get-windows-systemroot"
26825 msgstr ""
26826
26827 # type: verbatim
26828 #. type: verbatim
26829 #: ../fish/guestfish-actions.pod:2109
26830 #, no-wrap
26831 msgid ""
26832 " inspect-get-windows-systemroot root\n"
26833 "\n"
26834 msgstr ""
26835
26836 #. type: =head2
26837 #: ../fish/guestfish-actions.pod:2123
26838 msgid "inspect-is-live"
26839 msgstr ""
26840
26841 #. type: verbatim
26842 #: ../fish/guestfish-actions.pod:2125
26843 #, no-wrap
26844 msgid ""
26845 " inspect-is-live root\n"
26846 "\n"
26847 msgstr ""
26848
26849 #. type: textblock
26850 #: ../fish/guestfish-actions.pod:2130
26851 msgid ""
26852 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26853 "then this returns true if a live image was detected on the disk."
26854 msgstr ""
26855
26856 #. type: =head2
26857 #: ../fish/guestfish-actions.pod:2136
26858 msgid "inspect-is-multipart"
26859 msgstr ""
26860
26861 #. type: verbatim
26862 #: ../fish/guestfish-actions.pod:2138
26863 #, no-wrap
26864 msgid ""
26865 " inspect-is-multipart root\n"
26866 "\n"
26867 msgstr ""
26868
26869 #. type: textblock
26870 #: ../fish/guestfish-actions.pod:2143
26871 msgid ""
26872 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26873 "then this returns true if the disk is part of a set."
26874 msgstr ""
26875
26876 #. type: =head2
26877 #: ../fish/guestfish-actions.pod:2149
26878 msgid "inspect-is-netinst"
26879 msgstr ""
26880
26881 #. type: verbatim
26882 #: ../fish/guestfish-actions.pod:2151
26883 #, no-wrap
26884 msgid ""
26885 " inspect-is-netinst root\n"
26886 "\n"
26887 msgstr ""
26888
26889 #. type: textblock
26890 #: ../fish/guestfish-actions.pod:2156
26891 msgid ""
26892 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26893 "then this returns true if the disk is a network installer, ie. not a self-"
26894 "contained install CD but one which is likely to require network access to "
26895 "complete the install."
26896 msgstr ""
26897
26898 # type: =head2
26899 #. type: =head2
26900 #: ../fish/guestfish-actions.pod:2164
26901 msgid "inspect-list-applications"
26902 msgstr ""
26903
26904 # type: verbatim
26905 #. type: verbatim
26906 #: ../fish/guestfish-actions.pod:2166
26907 #, no-wrap
26908 msgid ""
26909 " inspect-list-applications root\n"
26910 "\n"
26911 msgstr ""
26912
26913 # type: textblock
26914 #. type: textblock
26915 #: ../fish/guestfish-actions.pod:2173
26916 msgid ""
26917 "I<Note:> This call works differently from other parts of the inspection "
26918 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
26919 "then mount up the disks, before calling this.  Listing applications is a "
26920 "significantly more difficult operation which requires access to the full "
26921 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
26922 "are just returning data cached in the libguestfs handle, this call actually "
26923 "reads parts of the mounted filesystems during the call."
26924 msgstr ""
26925
26926 # type: =head2
26927 #. type: =head2
26928 #: ../fish/guestfish-actions.pod:2263
26929 msgid "inspect-os"
26930 msgstr ""
26931
26932 # type: verbatim
26933 #. type: verbatim
26934 #: ../fish/guestfish-actions.pod:2265
26935 #, no-wrap
26936 msgid ""
26937 " inspect-os\n"
26938 "\n"
26939 msgstr ""
26940
26941 # type: textblock
26942 #. type: textblock
26943 #: ../fish/guestfish-actions.pod:2280
26944 msgid ""
26945 "You can pass the root string(s) returned to other L</inspect-get-*> "
26946 "functions in order to query further information about each operating system, "
26947 "such as the name and version."
26948 msgstr ""
26949
26950 # type: textblock
26951 #. type: textblock
26952 #: ../fish/guestfish-actions.pod:2285
26953 msgid ""
26954 "This function uses other libguestfs features such as L</mount-ro> and L</"
26955 "umount-all> in order to mount and unmount filesystems and look at the "
26956 "contents.  This should be called with no disks currently mounted.  The "
26957 "function may also use Augeas, so any existing Augeas handle will be closed."
26958 msgstr ""
26959
26960 # type: textblock
26961 #. type: textblock
26962 #: ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2473
26963 #: ../fish/guestfish-actions.pod:2519
26964 msgid "See also L</list-filesystems>."
26965 msgstr ""
26966
26967 # type: =head2
26968 #. type: =head2
26969 #: ../fish/guestfish-actions.pod:2299
26970 msgid "is-blockdev"
26971 msgstr ""
26972
26973 # type: verbatim
26974 #. type: verbatim
26975 #: ../fish/guestfish-actions.pod:2301
26976 #, no-wrap
26977 msgid ""
26978 " is-blockdev path\n"
26979 "\n"
26980 msgstr ""
26981
26982 # type: textblock
26983 #. type: textblock
26984 #: ../fish/guestfish-actions.pod:2306 ../fish/guestfish-actions.pod:2324
26985 #: ../fish/guestfish-actions.pod:2343 ../fish/guestfish-actions.pod:2352
26986 #: ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2396
26987 #: ../fish/guestfish-actions.pod:2405
26988 msgid "See also L</stat>."
26989 msgstr ""
26990
26991 # type: =head2
26992 #. type: =head2
26993 #: ../fish/guestfish-actions.pod:2308
26994 msgid "is-busy"
26995 msgstr ""
26996
26997 # type: verbatim
26998 #. type: verbatim
26999 #: ../fish/guestfish-actions.pod:2310
27000 #, no-wrap
27001 msgid ""
27002 " is-busy\n"
27003 "\n"
27004 msgstr ""
27005
27006 # type: =head2
27007 #. type: =head2
27008 #: ../fish/guestfish-actions.pod:2317
27009 msgid "is-chardev"
27010 msgstr ""
27011
27012 # type: verbatim
27013 #. type: verbatim
27014 #: ../fish/guestfish-actions.pod:2319
27015 #, no-wrap
27016 msgid ""
27017 " is-chardev path\n"
27018 "\n"
27019 msgstr ""
27020
27021 # type: =head2
27022 #. type: =head2
27023 #: ../fish/guestfish-actions.pod:2326
27024 msgid "is-config"
27025 msgstr ""
27026
27027 # type: verbatim
27028 #. type: verbatim
27029 #: ../fish/guestfish-actions.pod:2328
27030 #, no-wrap
27031 msgid ""
27032 " is-config\n"
27033 "\n"
27034 msgstr ""
27035
27036 # type: =head2
27037 #. type: =head2
27038 #: ../fish/guestfish-actions.pod:2335
27039 msgid "is-dir"
27040 msgstr ""
27041
27042 # type: verbatim
27043 #. type: verbatim
27044 #: ../fish/guestfish-actions.pod:2337
27045 #, no-wrap
27046 msgid ""
27047 " is-dir path\n"
27048 "\n"
27049 msgstr ""
27050
27051 # type: =head2
27052 #. type: =head2
27053 #: ../fish/guestfish-actions.pod:2345
27054 msgid "is-fifo"
27055 msgstr ""
27056
27057 # type: verbatim
27058 #. type: verbatim
27059 #: ../fish/guestfish-actions.pod:2347
27060 #, no-wrap
27061 msgid ""
27062 " is-fifo path\n"
27063 "\n"
27064 msgstr ""
27065
27066 # type: =head2
27067 #. type: =head2
27068 #: ../fish/guestfish-actions.pod:2354
27069 msgid "is-file"
27070 msgstr ""
27071
27072 # type: verbatim
27073 #. type: verbatim
27074 #: ../fish/guestfish-actions.pod:2356
27075 #, no-wrap
27076 msgid ""
27077 " is-file path\n"
27078 "\n"
27079 msgstr ""
27080
27081 # type: =head2
27082 #. type: =head2
27083 #: ../fish/guestfish-actions.pod:2364
27084 msgid "is-launching"
27085 msgstr ""
27086
27087 # type: verbatim
27088 #. type: verbatim
27089 #: ../fish/guestfish-actions.pod:2366
27090 #, no-wrap
27091 msgid ""
27092 " is-launching\n"
27093 "\n"
27094 msgstr ""
27095
27096 # type: =head2
27097 #. type: =head2
27098 #: ../fish/guestfish-actions.pod:2373
27099 msgid "is-lv"
27100 msgstr ""
27101
27102 # type: verbatim
27103 #. type: verbatim
27104 #: ../fish/guestfish-actions.pod:2375
27105 #, no-wrap
27106 msgid ""
27107 " is-lv device\n"
27108 "\n"
27109 msgstr ""
27110
27111 # type: =head2
27112 #. type: =head2
27113 #: ../fish/guestfish-actions.pod:2380
27114 msgid "is-ready"
27115 msgstr ""
27116
27117 # type: verbatim
27118 #. type: verbatim
27119 #: ../fish/guestfish-actions.pod:2382
27120 #, no-wrap
27121 msgid ""
27122 " is-ready\n"
27123 "\n"
27124 msgstr ""
27125
27126 # type: =head2
27127 #. type: =head2
27128 #: ../fish/guestfish-actions.pod:2389
27129 msgid "is-socket"
27130 msgstr ""
27131
27132 # type: verbatim
27133 #. type: verbatim
27134 #: ../fish/guestfish-actions.pod:2391
27135 #, no-wrap
27136 msgid ""
27137 " is-socket path\n"
27138 "\n"
27139 msgstr ""
27140
27141 # type: =head2
27142 #. type: =head2
27143 #: ../fish/guestfish-actions.pod:2398
27144 msgid "is-symlink"
27145 msgstr ""
27146
27147 # type: verbatim
27148 #. type: verbatim
27149 #: ../fish/guestfish-actions.pod:2400
27150 #, no-wrap
27151 msgid ""
27152 " is-symlink path\n"
27153 "\n"
27154 msgstr ""
27155
27156 # type: =head2
27157 #. type: =head2
27158 #: ../fish/guestfish-actions.pod:2407
27159 msgid "kill-subprocess"
27160 msgstr ""
27161
27162 # type: verbatim
27163 #. type: verbatim
27164 #: ../fish/guestfish-actions.pod:2409
27165 #, no-wrap
27166 msgid ""
27167 " kill-subprocess\n"
27168 "\n"
27169 msgstr ""
27170
27171 # type: =head2
27172 #. type: =head2
27173 #: ../fish/guestfish-actions.pod:2413
27174 msgid "launch"
27175 msgstr ""
27176
27177 # type: =head2
27178 #. type: =head2
27179 #: ../fish/guestfish-actions.pod:2415
27180 msgid "run"
27181 msgstr ""
27182
27183 # type: verbatim
27184 #. type: verbatim
27185 #: ../fish/guestfish-actions.pod:2417
27186 #, no-wrap
27187 msgid ""
27188 " launch\n"
27189 "\n"
27190 msgstr ""
27191
27192 # type: =head2
27193 #. type: =head2
27194 #: ../fish/guestfish-actions.pod:2425
27195 msgid "lchown"
27196 msgstr ""
27197
27198 # type: verbatim
27199 #. type: verbatim
27200 #: ../fish/guestfish-actions.pod:2427
27201 #, no-wrap
27202 msgid ""
27203 " lchown owner group path\n"
27204 "\n"
27205 msgstr ""
27206
27207 # type: textblock
27208 #. type: textblock
27209 #: ../fish/guestfish-actions.pod:2429
27210 msgid ""
27211 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
27212 "chown> but if C<path> is a symlink then the link itself is changed, not the "
27213 "target."
27214 msgstr ""
27215
27216 # type: =head2
27217 #. type: =head2
27218 #: ../fish/guestfish-actions.pod:2437
27219 msgid "lgetxattr"
27220 msgstr ""
27221
27222 # type: verbatim
27223 #. type: verbatim
27224 #: ../fish/guestfish-actions.pod:2439
27225 #, no-wrap
27226 msgid ""
27227 " lgetxattr path name\n"
27228 "\n"
27229 msgstr ""
27230
27231 # type: textblock
27232 #. type: textblock
27233 #: ../fish/guestfish-actions.pod:2455
27234 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27235 msgstr ""
27236
27237 # type: =head2
27238 #. type: =head2
27239 #: ../fish/guestfish-actions.pod:2457
27240 msgid "lgetxattrs"
27241 msgstr ""
27242
27243 # type: verbatim
27244 #. type: verbatim
27245 #: ../fish/guestfish-actions.pod:2459
27246 #, no-wrap
27247 msgid ""
27248 " lgetxattrs path\n"
27249 "\n"
27250 msgstr ""
27251
27252 # type: textblock
27253 #. type: textblock
27254 #: ../fish/guestfish-actions.pod:2461
27255 msgid ""
27256 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27257 "it returns the extended attributes of the link itself."
27258 msgstr ""
27259
27260 # type: =head2
27261 #. type: =head2
27262 #: ../fish/guestfish-actions.pod:2465
27263 msgid "list-devices"
27264 msgstr ""
27265
27266 # type: verbatim
27267 #. type: verbatim
27268 #: ../fish/guestfish-actions.pod:2467
27269 #, no-wrap
27270 msgid ""
27271 " list-devices\n"
27272 "\n"
27273 msgstr ""
27274
27275 # type: =head2
27276 #. type: =head2
27277 #: ../fish/guestfish-actions.pod:2475
27278 msgid "list-filesystems"
27279 msgstr ""
27280
27281 # type: verbatim
27282 #. type: verbatim
27283 #: ../fish/guestfish-actions.pod:2477
27284 #, no-wrap
27285 msgid ""
27286 " list-filesystems\n"
27287 "\n"
27288 msgstr ""
27289
27290 # type: textblock
27291 #. type: textblock
27292 #: ../fish/guestfish-actions.pod:2496
27293 msgid ""
27294 "This command runs other libguestfs commands, which might include L</mount> "
27295 "and L</umount>, and therefore you should use this soon after launch and only "
27296 "when nothing is mounted."
27297 msgstr ""
27298
27299 # type: textblock
27300 #. type: textblock
27301 #: ../fish/guestfish-actions.pod:2500
27302 msgid ""
27303 "Not all of the filesystems returned will be mountable.  In particular, swap "
27304 "partitions are returned in the list.  Also this command does not check that "
27305 "each filesystem found is valid and mountable, and some filesystems might be "
27306 "mountable but require special options.  Filesystems may not all belong to a "
27307 "single logical operating system (use L</inspect-os> to look for OSes)."
27308 msgstr ""
27309
27310 # type: =head2
27311 #. type: =head2
27312 #: ../fish/guestfish-actions.pod:2508
27313 msgid "list-partitions"
27314 msgstr ""
27315
27316 # type: verbatim
27317 #. type: verbatim
27318 #: ../fish/guestfish-actions.pod:2510
27319 #, no-wrap
27320 msgid ""
27321 " list-partitions\n"
27322 "\n"
27323 msgstr ""
27324
27325 # type: textblock
27326 #. type: textblock
27327 #: ../fish/guestfish-actions.pod:2516
27328 msgid ""
27329 "This does not return logical volumes.  For that you will need to call L</"
27330 "lvs>."
27331 msgstr ""
27332
27333 # type: =head2
27334 #. type: =head2
27335 #: ../fish/guestfish-actions.pod:2521
27336 msgid "ll"
27337 msgstr ""
27338
27339 # type: verbatim
27340 #. type: verbatim
27341 #: ../fish/guestfish-actions.pod:2523
27342 #, no-wrap
27343 msgid ""
27344 " ll directory\n"
27345 "\n"
27346 msgstr ""
27347
27348 # type: =head2
27349 #. type: =head2
27350 #: ../fish/guestfish-actions.pod:2531
27351 msgid "ln"
27352 msgstr ""
27353
27354 # type: verbatim
27355 #. type: verbatim
27356 #: ../fish/guestfish-actions.pod:2533
27357 #, no-wrap
27358 msgid ""
27359 " ln target linkname\n"
27360 "\n"
27361 msgstr ""
27362
27363 # type: =head2
27364 #. type: =head2
27365 #: ../fish/guestfish-actions.pod:2537
27366 msgid "ln-f"
27367 msgstr ""
27368
27369 # type: verbatim
27370 #. type: verbatim
27371 #: ../fish/guestfish-actions.pod:2539
27372 #, no-wrap
27373 msgid ""
27374 " ln-f target linkname\n"
27375 "\n"
27376 msgstr ""
27377
27378 # type: =head2
27379 #. type: =head2
27380 #: ../fish/guestfish-actions.pod:2544
27381 msgid "ln-s"
27382 msgstr ""
27383
27384 # type: verbatim
27385 #. type: verbatim
27386 #: ../fish/guestfish-actions.pod:2546
27387 #, no-wrap
27388 msgid ""
27389 " ln-s target linkname\n"
27390 "\n"
27391 msgstr ""
27392
27393 # type: =head2
27394 #. type: =head2
27395 #: ../fish/guestfish-actions.pod:2550
27396 msgid "ln-sf"
27397 msgstr ""
27398
27399 # type: verbatim
27400 #. type: verbatim
27401 #: ../fish/guestfish-actions.pod:2552
27402 #, no-wrap
27403 msgid ""
27404 " ln-sf target linkname\n"
27405 "\n"
27406 msgstr ""
27407
27408 # type: =head2
27409 #. type: =head2
27410 #: ../fish/guestfish-actions.pod:2557
27411 msgid "lremovexattr"
27412 msgstr ""
27413
27414 # type: verbatim
27415 #. type: verbatim
27416 #: ../fish/guestfish-actions.pod:2559
27417 #, no-wrap
27418 msgid ""
27419 " lremovexattr xattr path\n"
27420 "\n"
27421 msgstr ""
27422
27423 # type: textblock
27424 #. type: textblock
27425 #: ../fish/guestfish-actions.pod:2561
27426 msgid ""
27427 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27428 "it removes an extended attribute of the link itself."
27429 msgstr ""
27430
27431 # type: =head2
27432 #. type: =head2
27433 #: ../fish/guestfish-actions.pod:2565
27434 msgid "ls"
27435 msgstr ""
27436
27437 # type: verbatim
27438 #. type: verbatim
27439 #: ../fish/guestfish-actions.pod:2567
27440 #, no-wrap
27441 msgid ""
27442 " ls directory\n"
27443 "\n"
27444 msgstr ""
27445
27446 # type: textblock
27447 #. type: textblock
27448 #: ../fish/guestfish-actions.pod:2573
27449 msgid ""
27450 "This command is mostly useful for interactive sessions.  Programs should "
27451 "probably use L</readdir> instead."
27452 msgstr ""
27453
27454 # type: =head2
27455 #. type: =head2
27456 #: ../fish/guestfish-actions.pod:2576
27457 msgid "lsetxattr"
27458 msgstr ""
27459
27460 # type: verbatim
27461 #. type: verbatim
27462 #: ../fish/guestfish-actions.pod:2578
27463 #, no-wrap
27464 msgid ""
27465 " lsetxattr xattr val vallen path\n"
27466 "\n"
27467 msgstr ""
27468
27469 # type: textblock
27470 #. type: textblock
27471 #: ../fish/guestfish-actions.pod:2580
27472 msgid ""
27473 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
27474 "sets an extended attribute of the link itself."
27475 msgstr ""
27476
27477 # type: =head2
27478 #. type: =head2
27479 #: ../fish/guestfish-actions.pod:2584
27480 msgid "lstat"
27481 msgstr ""
27482
27483 # type: verbatim
27484 #. type: verbatim
27485 #: ../fish/guestfish-actions.pod:2586
27486 #, no-wrap
27487 msgid ""
27488 " lstat path\n"
27489 "\n"
27490 msgstr ""
27491
27492 # type: textblock
27493 #. type: textblock
27494 #: ../fish/guestfish-actions.pod:2590
27495 msgid ""
27496 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
27497 "the link is stat-ed, not the file it refers to."
27498 msgstr ""
27499
27500 # type: =head2
27501 #. type: =head2
27502 #: ../fish/guestfish-actions.pod:2596
27503 msgid "lstatlist"
27504 msgstr ""
27505
27506 # type: verbatim
27507 #. type: verbatim
27508 #: ../fish/guestfish-actions.pod:2598
27509 #, no-wrap
27510 msgid ""
27511 " lstatlist path 'names ...'\n"
27512 "\n"
27513 msgstr ""
27514
27515 # type: textblock
27516 #. type: textblock
27517 #: ../fish/guestfish-actions.pod:2600
27518 msgid ""
27519 "This call allows you to perform the L</lstat> operation on multiple files, "
27520 "where all files are in the directory C<path>.  C<names> is the list of files "
27521 "from this directory."
27522 msgstr ""
27523
27524 # type: textblock
27525 #. type: textblock
27526 #: ../fish/guestfish-actions.pod:2609
27527 msgid ""
27528 "This call is intended for programs that want to efficiently list a directory "
27529 "contents without making many round-trips.  See also L</lxattrlist> for a "
27530 "similarly efficient call for getting extended attributes.  Very long "
27531 "directory listings might cause the protocol message size to be exceeded, "
27532 "causing this call to fail.  The caller must split up such requests into "
27533 "smaller groups of names."
27534 msgstr ""
27535
27536 # type: =head2
27537 #. type: =head2
27538 #: ../fish/guestfish-actions.pod:2617
27539 msgid "luks-add-key"
27540 msgstr ""
27541
27542 # type: verbatim
27543 #. type: verbatim
27544 #: ../fish/guestfish-actions.pod:2619
27545 #, no-wrap
27546 msgid ""
27547 " luks-add-key device keyslot\n"
27548 "\n"
27549 msgstr ""
27550
27551 # type: textblock
27552 #. type: textblock
27553 #: ../fish/guestfish-actions.pod:2626
27554 msgid ""
27555 "Note that if C<keyslot> already contains a key, then this command will "
27556 "fail.  You have to use L</luks-kill-slot> first to remove that key."
27557 msgstr ""
27558
27559 # type: textblock
27560 #. type: textblock
27561 #: ../fish/guestfish-actions.pod:2630 ../fish/guestfish-actions.pod:2652
27562 #: ../fish/guestfish-actions.pod:2665 ../fish/guestfish-actions.pod:2679
27563 #: ../fish/guestfish-actions.pod:2702 ../fish/guestfish-actions.pod:2712
27564 msgid ""
27565 "This command has one or more key or passphrase parameters.  Guestfish will "
27566 "prompt for these separately."
27567 msgstr ""
27568
27569 # type: =head2
27570 #. type: =head2
27571 #: ../fish/guestfish-actions.pod:2633
27572 msgid "luks-close"
27573 msgstr ""
27574
27575 # type: verbatim
27576 #. type: verbatim
27577 #: ../fish/guestfish-actions.pod:2635
27578 #, no-wrap
27579 msgid ""
27580 " luks-close device\n"
27581 "\n"
27582 msgstr ""
27583
27584 # type: textblock
27585 #. type: textblock
27586 #: ../fish/guestfish-actions.pod:2637
27587 msgid ""
27588 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
27589 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
27590 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
27591 "block device."
27592 msgstr ""
27593
27594 # type: =head2
27595 #. type: =head2
27596 #: ../fish/guestfish-actions.pod:2643
27597 msgid "luks-format"
27598 msgstr ""
27599
27600 # type: verbatim
27601 #. type: verbatim
27602 #: ../fish/guestfish-actions.pod:2645
27603 #, no-wrap
27604 msgid ""
27605 " luks-format device keyslot\n"
27606 "\n"
27607 msgstr ""
27608
27609 # type: =head2
27610 #. type: =head2
27611 #: ../fish/guestfish-actions.pod:2658
27612 msgid "luks-format-cipher"
27613 msgstr ""
27614
27615 # type: verbatim
27616 #. type: verbatim
27617 #: ../fish/guestfish-actions.pod:2660
27618 #, no-wrap
27619 msgid ""
27620 " luks-format-cipher device keyslot cipher\n"
27621 "\n"
27622 msgstr ""
27623
27624 # type: textblock
27625 #. type: textblock
27626 #: ../fish/guestfish-actions.pod:2662
27627 msgid ""
27628 "This command is the same as L</luks-format> but it also allows you to set "
27629 "the C<cipher> used."
27630 msgstr ""
27631
27632 # type: =head2
27633 #. type: =head2
27634 #: ../fish/guestfish-actions.pod:2671
27635 msgid "luks-kill-slot"
27636 msgstr ""
27637
27638 # type: verbatim
27639 #. type: verbatim
27640 #: ../fish/guestfish-actions.pod:2673
27641 #, no-wrap
27642 msgid ""
27643 " luks-kill-slot device keyslot\n"
27644 "\n"
27645 msgstr ""
27646
27647 # type: =head2
27648 #. type: =head2
27649 #: ../fish/guestfish-actions.pod:2682
27650 msgid "luks-open"
27651 msgstr ""
27652
27653 # type: verbatim
27654 #. type: verbatim
27655 #: ../fish/guestfish-actions.pod:2684
27656 #, no-wrap
27657 msgid ""
27658 " luks-open device mapname\n"
27659 "\n"
27660 msgstr ""
27661
27662 # type: textblock
27663 #. type: textblock
27664 #: ../fish/guestfish-actions.pod:2698
27665 msgid ""
27666 "If this block device contains LVM volume groups, then calling L</vgscan> "
27667 "followed by L</vg-activate-all> will make them visible."
27668 msgstr ""
27669
27670 # type: =head2
27671 #. type: =head2
27672 #: ../fish/guestfish-actions.pod:2705
27673 msgid "luks-open-ro"
27674 msgstr ""
27675
27676 # type: verbatim
27677 #. type: verbatim
27678 #: ../fish/guestfish-actions.pod:2707
27679 #, no-wrap
27680 msgid ""
27681 " luks-open-ro device mapname\n"
27682 "\n"
27683 msgstr ""
27684
27685 # type: textblock
27686 #. type: textblock
27687 #: ../fish/guestfish-actions.pod:2709
27688 msgid ""
27689 "This is the same as L</luks-open> except that a read-only mapping is created."
27690 msgstr ""
27691
27692 # type: =head2
27693 #. type: =head2
27694 #: ../fish/guestfish-actions.pod:2715
27695 msgid "lvcreate"
27696 msgstr ""
27697
27698 # type: verbatim
27699 #. type: verbatim
27700 #: ../fish/guestfish-actions.pod:2717
27701 #, no-wrap
27702 msgid ""
27703 " lvcreate logvol volgroup mbytes\n"
27704 "\n"
27705 msgstr ""
27706
27707 # type: =head2
27708 #. type: =head2
27709 #: ../fish/guestfish-actions.pod:2722
27710 msgid "lvm-canonical-lv-name"
27711 msgstr ""
27712
27713 # type: verbatim
27714 #. type: verbatim
27715 #: ../fish/guestfish-actions.pod:2724
27716 #, no-wrap
27717 msgid ""
27718 " lvm-canonical-lv-name lvname\n"
27719 "\n"
27720 msgstr ""
27721
27722 # type: textblock
27723 #. type: textblock
27724 #: ../fish/guestfish-actions.pod:2733
27725 msgid "See also L</is-lv>."
27726 msgstr ""
27727
27728 # type: =head2
27729 #. type: =head2
27730 #: ../fish/guestfish-actions.pod:2735
27731 msgid "lvm-clear-filter"
27732 msgstr ""
27733
27734 # type: verbatim
27735 #. type: verbatim
27736 #: ../fish/guestfish-actions.pod:2737
27737 #, no-wrap
27738 msgid ""
27739 " lvm-clear-filter\n"
27740 "\n"
27741 msgstr ""
27742
27743 # type: textblock
27744 #. type: textblock
27745 #: ../fish/guestfish-actions.pod:2739
27746 msgid ""
27747 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
27748 "block device."
27749 msgstr ""
27750
27751 # type: =head2
27752 #. type: =head2
27753 #: ../fish/guestfish-actions.pod:2745
27754 msgid "lvm-remove-all"
27755 msgstr ""
27756
27757 # type: verbatim
27758 #. type: verbatim
27759 #: ../fish/guestfish-actions.pod:2747
27760 #, no-wrap
27761 msgid ""
27762 " lvm-remove-all\n"
27763 "\n"
27764 msgstr ""
27765
27766 # type: =head2
27767 #. type: =head2
27768 #: ../fish/guestfish-actions.pod:2755
27769 msgid "lvm-set-filter"
27770 msgstr ""
27771
27772 # type: verbatim
27773 #. type: verbatim
27774 #: ../fish/guestfish-actions.pod:2757
27775 #, no-wrap
27776 msgid ""
27777 " lvm-set-filter 'devices ...'\n"
27778 "\n"
27779 msgstr ""
27780
27781 # type: =head2
27782 #. type: =head2
27783 #: ../fish/guestfish-actions.pod:2782
27784 msgid "lvremove"
27785 msgstr ""
27786
27787 # type: verbatim
27788 #. type: verbatim
27789 #: ../fish/guestfish-actions.pod:2784
27790 #, no-wrap
27791 msgid ""
27792 " lvremove device\n"
27793 "\n"
27794 msgstr ""
27795
27796 # type: =head2
27797 #. type: =head2
27798 #: ../fish/guestfish-actions.pod:2792
27799 msgid "lvrename"
27800 msgstr ""
27801
27802 # type: verbatim
27803 #. type: verbatim
27804 #: ../fish/guestfish-actions.pod:2794
27805 #, no-wrap
27806 msgid ""
27807 " lvrename logvol newlogvol\n"
27808 "\n"
27809 msgstr ""
27810
27811 # type: =head2
27812 #. type: =head2
27813 #: ../fish/guestfish-actions.pod:2798
27814 msgid "lvresize"
27815 msgstr ""
27816
27817 # type: verbatim
27818 #. type: verbatim
27819 #: ../fish/guestfish-actions.pod:2800
27820 #, no-wrap
27821 msgid ""
27822 " lvresize device mbytes\n"
27823 "\n"
27824 msgstr ""
27825
27826 # type: =head2
27827 #. type: =head2
27828 #: ../fish/guestfish-actions.pod:2806
27829 msgid "lvresize-free"
27830 msgstr ""
27831
27832 # type: verbatim
27833 #. type: verbatim
27834 #: ../fish/guestfish-actions.pod:2808
27835 #, no-wrap
27836 msgid ""
27837 " lvresize-free lv percent\n"
27838 "\n"
27839 msgstr ""
27840
27841 # type: =head2
27842 #. type: =head2
27843 #: ../fish/guestfish-actions.pod:2816
27844 msgid "lvs"
27845 msgstr ""
27846
27847 # type: verbatim
27848 #. type: verbatim
27849 #: ../fish/guestfish-actions.pod:2818
27850 #, no-wrap
27851 msgid ""
27852 " lvs\n"
27853 "\n"
27854 msgstr ""
27855
27856 # type: textblock
27857 #. type: textblock
27858 #: ../fish/guestfish-actions.pod:2826
27859 msgid "See also L</lvs-full>, L</list-filesystems>."
27860 msgstr ""
27861
27862 # type: =head2
27863 #. type: =head2
27864 #: ../fish/guestfish-actions.pod:2828
27865 msgid "lvs-full"
27866 msgstr ""
27867
27868 # type: verbatim
27869 #. type: verbatim
27870 #: ../fish/guestfish-actions.pod:2830
27871 #, no-wrap
27872 msgid ""
27873 " lvs-full\n"
27874 "\n"
27875 msgstr ""
27876
27877 # type: =head2
27878 #. type: =head2
27879 #: ../fish/guestfish-actions.pod:2835
27880 msgid "lvuuid"
27881 msgstr ""
27882
27883 # type: verbatim
27884 #. type: verbatim
27885 #: ../fish/guestfish-actions.pod:2837
27886 #, no-wrap
27887 msgid ""
27888 " lvuuid device\n"
27889 "\n"
27890 msgstr ""
27891
27892 # type: =head2
27893 #. type: =head2
27894 #: ../fish/guestfish-actions.pod:2841
27895 msgid "lxattrlist"
27896 msgstr ""
27897
27898 # type: verbatim
27899 #. type: verbatim
27900 #: ../fish/guestfish-actions.pod:2843
27901 #, no-wrap
27902 msgid ""
27903 " lxattrlist path 'names ...'\n"
27904 "\n"
27905 msgstr ""
27906
27907 # type: textblock
27908 #. type: textblock
27909 #: ../fish/guestfish-actions.pod:2859
27910 msgid ""
27911 "This call is intended for programs that want to efficiently list a directory "
27912 "contents without making many round-trips.  See also L</lstatlist> for a "
27913 "similarly efficient call for getting standard stats.  Very long directory "
27914 "listings might cause the protocol message size to be exceeded, causing this "
27915 "call to fail.  The caller must split up such requests into smaller groups of "
27916 "names."
27917 msgstr ""
27918
27919 # type: =head2
27920 #. type: =head2
27921 #: ../fish/guestfish-actions.pod:2867
27922 msgid "mkdir"
27923 msgstr ""
27924
27925 # type: verbatim
27926 #. type: verbatim
27927 #: ../fish/guestfish-actions.pod:2869
27928 #, no-wrap
27929 msgid ""
27930 " mkdir path\n"
27931 "\n"
27932 msgstr ""
27933
27934 # type: =head2
27935 #. type: =head2
27936 #: ../fish/guestfish-actions.pod:2873
27937 msgid "mkdir-mode"
27938 msgstr ""
27939
27940 # type: verbatim
27941 #. type: verbatim
27942 #: ../fish/guestfish-actions.pod:2875
27943 #, no-wrap
27944 msgid ""
27945 " mkdir-mode path mode\n"
27946 "\n"
27947 msgstr ""
27948
27949 # type: textblock
27950 #. type: textblock
27951 #: ../fish/guestfish-actions.pod:2884
27952 msgid "See also L</mkdir>, L</umask>"
27953 msgstr ""
27954
27955 # type: =head2
27956 #. type: =head2
27957 #: ../fish/guestfish-actions.pod:2886
27958 msgid "mkdir-p"
27959 msgstr ""
27960
27961 # type: verbatim
27962 #. type: verbatim
27963 #: ../fish/guestfish-actions.pod:2888
27964 #, no-wrap
27965 msgid ""
27966 " mkdir-p path\n"
27967 "\n"
27968 msgstr ""
27969
27970 # type: =head2
27971 #. type: =head2
27972 #: ../fish/guestfish-actions.pod:2893
27973 msgid "mkdtemp"
27974 msgstr ""
27975
27976 # type: verbatim
27977 #. type: verbatim
27978 #: ../fish/guestfish-actions.pod:2895
27979 #, no-wrap
27980 msgid ""
27981 " mkdtemp template\n"
27982 "\n"
27983 msgstr ""
27984
27985 # type: =head2
27986 #. type: =head2
27987 #: ../fish/guestfish-actions.pod:2916
27988 msgid "mke2fs-J"
27989 msgstr ""
27990
27991 # type: verbatim
27992 #. type: verbatim
27993 #: ../fish/guestfish-actions.pod:2918
27994 #, no-wrap
27995 msgid ""
27996 " mke2fs-J fstype blocksize device journal\n"
27997 "\n"
27998 msgstr ""
27999
28000 # type: textblock
28001 #. type: textblock
28002 #: ../fish/guestfish-actions.pod:2926
28003 msgid "See also L</mke2journal>."
28004 msgstr ""
28005
28006 # type: =head2
28007 #. type: =head2
28008 #: ../fish/guestfish-actions.pod:2928
28009 msgid "mke2fs-JL"
28010 msgstr ""
28011
28012 # type: verbatim
28013 #. type: verbatim
28014 #: ../fish/guestfish-actions.pod:2930
28015 #, no-wrap
28016 msgid ""
28017 " mke2fs-JL fstype blocksize device label\n"
28018 "\n"
28019 msgstr ""
28020
28021 # type: textblock
28022 #. type: textblock
28023 #: ../fish/guestfish-actions.pod:2935
28024 msgid "See also L</mke2journal-L>."
28025 msgstr ""
28026
28027 # type: =head2
28028 #. type: =head2
28029 #: ../fish/guestfish-actions.pod:2937
28030 msgid "mke2fs-JU"
28031 msgstr ""
28032
28033 # type: verbatim
28034 #. type: verbatim
28035 #: ../fish/guestfish-actions.pod:2939
28036 #, no-wrap
28037 msgid ""
28038 " mke2fs-JU fstype blocksize device uuid\n"
28039 "\n"
28040 msgstr ""
28041
28042 # type: textblock
28043 #. type: textblock
28044 #: ../fish/guestfish-actions.pod:2944
28045 msgid "See also L</mke2journal-U>."
28046 msgstr ""
28047
28048 # type: =head2
28049 #. type: =head2
28050 #: ../fish/guestfish-actions.pod:2946
28051 msgid "mke2journal"
28052 msgstr ""
28053
28054 # type: verbatim
28055 #. type: verbatim
28056 #: ../fish/guestfish-actions.pod:2948
28057 #, no-wrap
28058 msgid ""
28059 " mke2journal blocksize device\n"
28060 "\n"
28061 msgstr ""
28062
28063 # type: =head2
28064 #. type: =head2
28065 #: ../fish/guestfish-actions.pod:2955
28066 msgid "mke2journal-L"
28067 msgstr ""
28068
28069 # type: verbatim
28070 #. type: verbatim
28071 #: ../fish/guestfish-actions.pod:2957
28072 #, no-wrap
28073 msgid ""
28074 " mke2journal-L blocksize label device\n"
28075 "\n"
28076 msgstr ""
28077
28078 # type: =head2
28079 #. type: =head2
28080 #: ../fish/guestfish-actions.pod:2961
28081 msgid "mke2journal-U"
28082 msgstr ""
28083
28084 # type: verbatim
28085 #. type: verbatim
28086 #: ../fish/guestfish-actions.pod:2963
28087 #, no-wrap
28088 msgid ""
28089 " mke2journal-U blocksize uuid device\n"
28090 "\n"
28091 msgstr ""
28092
28093 # type: =head2
28094 #. type: =head2
28095 #: ../fish/guestfish-actions.pod:2967
28096 msgid "mkfifo"
28097 msgstr ""
28098
28099 # type: verbatim
28100 #. type: verbatim
28101 #: ../fish/guestfish-actions.pod:2969
28102 #, no-wrap
28103 msgid ""
28104 " mkfifo mode path\n"
28105 "\n"
28106 msgstr ""
28107
28108 # type: textblock
28109 #. type: textblock
28110 #: ../fish/guestfish-actions.pod:2971
28111 msgid ""
28112 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28113 "is just a convenient wrapper around L</mknod>."
28114 msgstr ""
28115
28116 # type: =head2
28117 #. type: =head2
28118 #: ../fish/guestfish-actions.pod:2977
28119 msgid "mkfs"
28120 msgstr ""
28121
28122 # type: verbatim
28123 #. type: verbatim
28124 #: ../fish/guestfish-actions.pod:2979
28125 #, no-wrap
28126 msgid ""
28127 " mkfs fstype device\n"
28128 "\n"
28129 msgstr ""
28130
28131 # type: =head2
28132 #. type: =head2
28133 #: ../fish/guestfish-actions.pod:2985
28134 msgid "mkfs-b"
28135 msgstr ""
28136
28137 # type: verbatim
28138 #. type: verbatim
28139 #: ../fish/guestfish-actions.pod:2987
28140 #, no-wrap
28141 msgid ""
28142 " mkfs-b fstype blocksize device\n"
28143 "\n"
28144 msgstr ""
28145
28146 # type: textblock
28147 #. type: textblock
28148 #: ../fish/guestfish-actions.pod:2989
28149 msgid ""
28150 "This call is similar to L</mkfs>, but it allows you to control the block "
28151 "size of the resulting filesystem.  Supported block sizes depend on the "
28152 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28153 msgstr ""
28154
28155 # type: =head2
28156 #. type: =head2
28157 #: ../fish/guestfish-actions.pod:3004
28158 msgid "mkfs-opts"
28159 msgstr ""
28160
28161 #. type: verbatim
28162 #: ../fish/guestfish-actions.pod:3006
28163 #, no-wrap
28164 msgid ""
28165 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
28166 "\n"
28167 msgstr ""
28168
28169 # type: =head2
28170 #. type: =head2
28171 #: ../fish/guestfish-actions.pod:3041
28172 msgid "mkmountpoint"
28173 msgstr ""
28174
28175 # type: verbatim
28176 #. type: verbatim
28177 #: ../fish/guestfish-actions.pod:3043
28178 #, no-wrap
28179 msgid ""
28180 " mkmountpoint exemptpath\n"
28181 "\n"
28182 msgstr ""
28183
28184 # type: textblock
28185 #. type: textblock
28186 #: ../fish/guestfish-actions.pod:3045
28187 msgid ""
28188 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
28189 "to create extra mountpoints before mounting the first filesystem."
28190 msgstr ""
28191
28192 # type: textblock
28193 #. type: textblock
28194 #: ../fish/guestfish-actions.pod:3069
28195 msgid ""
28196 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
28197 "unexpected errors if you try to mix these calls.  It is safest to manually "
28198 "unmount filesystems and remove mountpoints after use."
28199 msgstr ""
28200
28201 # type: textblock
28202 #. type: textblock
28203 #: ../fish/guestfish-actions.pod:3073
28204 msgid ""
28205 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
28206 "for this to work for manual mountpoints, you must ensure that the innermost "
28207 "mountpoints have the longest pathnames, as in the example code above."
28208 msgstr ""
28209
28210 #. type: textblock
28211 #: ../fish/guestfish-actions.pod:3080
28212 msgid ""
28213 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
28214 "L</umount-all> to be called when the handle is closed which can also trigger "
28215 "these issues."
28216 msgstr ""
28217
28218 # type: =head2
28219 #. type: =head2
28220 #: ../fish/guestfish-actions.pod:3084
28221 msgid "mknod"
28222 msgstr ""
28223
28224 # type: verbatim
28225 #. type: verbatim
28226 #: ../fish/guestfish-actions.pod:3086
28227 #, no-wrap
28228 msgid ""
28229 " mknod mode devmajor devminor path\n"
28230 "\n"
28231 msgstr ""
28232
28233 # type: textblock
28234 #. type: textblock
28235 #: ../fish/guestfish-actions.pod:3096
28236 msgid ""
28237 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28238 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28239 "regular file).  These constants are available in the standard Linux header "
28240 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28241 "wrappers around this command which bitwise OR in the appropriate constant "
28242 "for you."
28243 msgstr ""
28244
28245 # type: =head2
28246 #. type: =head2
28247 #: ../fish/guestfish-actions.pod:3106
28248 msgid "mknod-b"
28249 msgstr ""
28250
28251 # type: verbatim
28252 #. type: verbatim
28253 #: ../fish/guestfish-actions.pod:3108
28254 #, no-wrap
28255 msgid ""
28256 " mknod-b mode devmajor devminor path\n"
28257 "\n"
28258 msgstr ""
28259
28260 # type: textblock
28261 #. type: textblock
28262 #: ../fish/guestfish-actions.pod:3110
28263 msgid ""
28264 "This call creates a block device node called C<path> with mode C<mode> and "
28265 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28266 "wrapper around L</mknod>."
28267 msgstr ""
28268
28269 # type: =head2
28270 #. type: =head2
28271 #: ../fish/guestfish-actions.pod:3116
28272 msgid "mknod-c"
28273 msgstr ""
28274
28275 # type: verbatim
28276 #. type: verbatim
28277 #: ../fish/guestfish-actions.pod:3118
28278 #, no-wrap
28279 msgid ""
28280 " mknod-c mode devmajor devminor path\n"
28281 "\n"
28282 msgstr ""
28283
28284 # type: textblock
28285 #. type: textblock
28286 #: ../fish/guestfish-actions.pod:3120
28287 msgid ""
28288 "This call creates a char device node called C<path> with mode C<mode> and "
28289 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28290 "wrapper around L</mknod>."
28291 msgstr ""
28292
28293 # type: =head2
28294 #. type: =head2
28295 #: ../fish/guestfish-actions.pod:3126
28296 msgid "mkswap"
28297 msgstr ""
28298
28299 # type: verbatim
28300 #. type: verbatim
28301 #: ../fish/guestfish-actions.pod:3128
28302 #, no-wrap
28303 msgid ""
28304 " mkswap device\n"
28305 "\n"
28306 msgstr ""
28307
28308 # type: =head2
28309 #. type: =head2
28310 #: ../fish/guestfish-actions.pod:3132
28311 msgid "mkswap-L"
28312 msgstr ""
28313
28314 # type: verbatim
28315 #. type: verbatim
28316 #: ../fish/guestfish-actions.pod:3134
28317 #, no-wrap
28318 msgid ""
28319 " mkswap-L label device\n"
28320 "\n"
28321 msgstr ""
28322
28323 # type: =head2
28324 #. type: =head2
28325 #: ../fish/guestfish-actions.pod:3142
28326 msgid "mkswap-U"
28327 msgstr ""
28328
28329 # type: verbatim
28330 #. type: verbatim
28331 #: ../fish/guestfish-actions.pod:3144
28332 #, no-wrap
28333 msgid ""
28334 " mkswap-U uuid device\n"
28335 "\n"
28336 msgstr ""
28337
28338 # type: =head2
28339 #. type: =head2
28340 #: ../fish/guestfish-actions.pod:3148
28341 msgid "mkswap-file"
28342 msgstr ""
28343
28344 # type: verbatim
28345 #. type: verbatim
28346 #: ../fish/guestfish-actions.pod:3150
28347 #, no-wrap
28348 msgid ""
28349 " mkswap-file path\n"
28350 "\n"
28351 msgstr ""
28352
28353 # type: textblock
28354 #. type: textblock
28355 #: ../fish/guestfish-actions.pod:3154
28356 msgid ""
28357 "This command just writes a swap file signature to an existing file.  To "
28358 "create the file itself, use something like L</fallocate>."
28359 msgstr ""
28360
28361 # type: =head2
28362 #. type: =head2
28363 #: ../fish/guestfish-actions.pod:3157
28364 msgid "modprobe"
28365 msgstr ""
28366
28367 # type: verbatim
28368 #. type: verbatim
28369 #: ../fish/guestfish-actions.pod:3159
28370 #, no-wrap
28371 msgid ""
28372 " modprobe modulename\n"
28373 "\n"
28374 msgstr ""
28375
28376 # type: =head2
28377 #. type: =head2
28378 #: ../fish/guestfish-actions.pod:3166
28379 msgid "mount"
28380 msgstr ""
28381
28382 # type: verbatim
28383 #. type: verbatim
28384 #: ../fish/guestfish-actions.pod:3168
28385 #, no-wrap
28386 msgid ""
28387 " mount device mountpoint\n"
28388 "\n"
28389 msgstr ""
28390
28391 # type: textblock
28392 #. type: textblock
28393 #: ../fish/guestfish-actions.pod:3184
28394 msgid ""
28395 "B<Important note:> When you use this call, the filesystem options C<sync> "
28396 "and C<noatime> are set implicitly.  This was originally done because we "
28397 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28398 "very large negative performance impact and negligible effect on "
28399 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28400 "code that needs performance, and instead use L</mount-options> (use an empty "
28401 "string for the first parameter if you don't want any options)."
28402 msgstr ""
28403
28404 # type: =head2
28405 #. type: =head2
28406 #: ../fish/guestfish-actions.pod:3194
28407 msgid "mount-loop"
28408 msgstr ""
28409
28410 # type: verbatim
28411 #. type: verbatim
28412 #: ../fish/guestfish-actions.pod:3196
28413 #, no-wrap
28414 msgid ""
28415 " mount-loop file mountpoint\n"
28416 "\n"
28417 msgstr ""
28418
28419 # type: =head2
28420 #. type: =head2
28421 #: ../fish/guestfish-actions.pod:3202
28422 msgid "mount-options"
28423 msgstr ""
28424
28425 # type: verbatim
28426 #. type: verbatim
28427 #: ../fish/guestfish-actions.pod:3204
28428 #, no-wrap
28429 msgid ""
28430 " mount-options options device mountpoint\n"
28431 "\n"
28432 msgstr ""
28433
28434 # type: textblock
28435 #. type: textblock
28436 #: ../fish/guestfish-actions.pod:3206
28437 msgid ""
28438 "This is the same as the L</mount> command, but it allows you to set the "
28439 "mount options as for the L<mount(8)> I<-o> flag."
28440 msgstr ""
28441
28442 # type: =head2
28443 #. type: =head2
28444 #: ../fish/guestfish-actions.pod:3214
28445 msgid "mount-ro"
28446 msgstr ""
28447
28448 # type: verbatim
28449 #. type: verbatim
28450 #: ../fish/guestfish-actions.pod:3216
28451 #, no-wrap
28452 msgid ""
28453 " mount-ro device mountpoint\n"
28454 "\n"
28455 msgstr ""
28456
28457 # type: textblock
28458 #. type: textblock
28459 #: ../fish/guestfish-actions.pod:3218
28460 msgid ""
28461 "This is the same as the L</mount> command, but it mounts the filesystem with "
28462 "the read-only (I<-o ro>) flag."
28463 msgstr ""
28464
28465 # type: =head2
28466 #. type: =head2
28467 #: ../fish/guestfish-actions.pod:3221
28468 msgid "mount-vfs"
28469 msgstr ""
28470
28471 # type: verbatim
28472 #. type: verbatim
28473 #: ../fish/guestfish-actions.pod:3223
28474 #, no-wrap
28475 msgid ""
28476 " mount-vfs options vfstype device mountpoint\n"
28477 "\n"
28478 msgstr ""
28479
28480 # type: textblock
28481 #. type: textblock
28482 #: ../fish/guestfish-actions.pod:3225
28483 msgid ""
28484 "This is the same as the L</mount> command, but it allows you to set both the "
28485 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
28486 msgstr ""
28487
28488 # type: =head2
28489 #. type: =head2
28490 #: ../fish/guestfish-actions.pod:3229
28491 msgid "mountpoints"
28492 msgstr ""
28493
28494 # type: verbatim
28495 #. type: verbatim
28496 #: ../fish/guestfish-actions.pod:3231
28497 #, no-wrap
28498 msgid ""
28499 " mountpoints\n"
28500 "\n"
28501 msgstr ""
28502
28503 # type: textblock
28504 #. type: textblock
28505 #: ../fish/guestfish-actions.pod:3233
28506 msgid ""
28507 "This call is similar to L</mounts>.  That call returns a list of devices.  "
28508 "This one returns a hash table (map) of device name to directory where the "
28509 "device is mounted."
28510 msgstr ""
28511
28512 # type: =head2
28513 #. type: =head2
28514 #: ../fish/guestfish-actions.pod:3237
28515 msgid "mounts"
28516 msgstr ""
28517
28518 # type: verbatim
28519 #. type: verbatim
28520 #: ../fish/guestfish-actions.pod:3239
28521 #, no-wrap
28522 msgid ""
28523 " mounts\n"
28524 "\n"
28525 msgstr ""
28526
28527 # type: textblock
28528 #. type: textblock
28529 #: ../fish/guestfish-actions.pod:3246
28530 msgid "See also: L</mountpoints>"
28531 msgstr ""
28532
28533 # type: =head2
28534 #. type: =head2
28535 #: ../fish/guestfish-actions.pod:3248
28536 msgid "mv"
28537 msgstr ""
28538
28539 # type: verbatim
28540 #. type: verbatim
28541 #: ../fish/guestfish-actions.pod:3250
28542 #, no-wrap
28543 msgid ""
28544 " mv src dest\n"
28545 "\n"
28546 msgstr ""
28547
28548 # type: =head2
28549 #. type: =head2
28550 #: ../fish/guestfish-actions.pod:3255
28551 msgid "ntfs-3g-probe"
28552 msgstr ""
28553
28554 # type: verbatim
28555 #. type: verbatim
28556 #: ../fish/guestfish-actions.pod:3257
28557 #, no-wrap
28558 msgid ""
28559 " ntfs-3g-probe true|false device\n"
28560 "\n"
28561 msgstr ""
28562
28563 # type: =head2
28564 #. type: =head2
28565 #: ../fish/guestfish-actions.pod:3271
28566 msgid "ntfsresize"
28567 msgstr ""
28568
28569 # type: verbatim
28570 #. type: verbatim
28571 #: ../fish/guestfish-actions.pod:3273
28572 #, no-wrap
28573 msgid ""
28574 " ntfsresize device\n"
28575 "\n"
28576 msgstr ""
28577
28578 # type: =head2
28579 #. type: =head2
28580 #: ../fish/guestfish-actions.pod:3279
28581 msgid "ntfsresize-size"
28582 msgstr ""
28583
28584 # type: verbatim
28585 #. type: verbatim
28586 #: ../fish/guestfish-actions.pod:3281
28587 #, no-wrap
28588 msgid ""
28589 " ntfsresize-size device size\n"
28590 "\n"
28591 msgstr ""
28592
28593 # type: textblock
28594 #. type: textblock
28595 #: ../fish/guestfish-actions.pod:3283
28596 msgid ""
28597 "This command is the same as L</ntfsresize> except that it allows you to "
28598 "specify the new size (in bytes) explicitly."
28599 msgstr ""
28600
28601 # type: =head2
28602 #. type: =head2
28603 #: ../fish/guestfish-actions.pod:3286
28604 msgid "part-add"
28605 msgstr ""
28606
28607 # type: verbatim
28608 #. type: verbatim
28609 #: ../fish/guestfish-actions.pod:3288
28610 #, no-wrap
28611 msgid ""
28612 " part-add device prlogex startsect endsect\n"
28613 "\n"
28614 msgstr ""
28615
28616 # type: textblock
28617 #. type: textblock
28618 #: ../fish/guestfish-actions.pod:3290
28619 msgid ""
28620 "This command adds a partition to C<device>.  If there is no partition table "
28621 "on the device, call L</part-init> first."
28622 msgstr ""
28623
28624 # type: textblock
28625 #. type: textblock
28626 #: ../fish/guestfish-actions.pod:3302
28627 msgid ""
28628 "Creating a partition which covers the whole disk is not so easy.  Use L</"
28629 "part-disk> to do that."
28630 msgstr ""
28631
28632 # type: =head2
28633 #. type: =head2
28634 #: ../fish/guestfish-actions.pod:3305
28635 msgid "part-del"
28636 msgstr ""
28637
28638 # type: verbatim
28639 #. type: verbatim
28640 #: ../fish/guestfish-actions.pod:3307
28641 #, no-wrap
28642 msgid ""
28643 " part-del device partnum\n"
28644 "\n"
28645 msgstr ""
28646
28647 # type: =head2
28648 #. type: =head2
28649 #: ../fish/guestfish-actions.pod:3315
28650 msgid "part-disk"
28651 msgstr ""
28652
28653 # type: verbatim
28654 #. type: verbatim
28655 #: ../fish/guestfish-actions.pod:3317
28656 #, no-wrap
28657 msgid ""
28658 " part-disk device parttype\n"
28659 "\n"
28660 msgstr ""
28661
28662 # type: textblock
28663 #. type: textblock
28664 #: ../fish/guestfish-actions.pod:3319
28665 msgid ""
28666 "This command is simply a combination of L</part-init> followed by L</part-"
28667 "add> to create a single primary partition covering the whole disk."
28668 msgstr ""
28669
28670 # type: textblock
28671 #. type: textblock
28672 #: ../fish/guestfish-actions.pod:3323
28673 msgid ""
28674 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28675 "possible values are described in L</part-init>."
28676 msgstr ""
28677
28678 # type: =head2
28679 #. type: =head2
28680 #: ../fish/guestfish-actions.pod:3329
28681 msgid "part-get-bootable"
28682 msgstr ""
28683
28684 # type: verbatim
28685 #. type: verbatim
28686 #: ../fish/guestfish-actions.pod:3331
28687 #, no-wrap
28688 msgid ""
28689 " part-get-bootable device partnum\n"
28690 "\n"
28691 msgstr ""
28692
28693 # type: textblock
28694 #. type: textblock
28695 #: ../fish/guestfish-actions.pod:3336
28696 msgid "See also L</part-set-bootable>."
28697 msgstr ""
28698
28699 # type: =head2
28700 #. type: =head2
28701 #: ../fish/guestfish-actions.pod:3338
28702 msgid "part-get-mbr-id"
28703 msgstr ""
28704
28705 # type: verbatim
28706 #. type: verbatim
28707 #: ../fish/guestfish-actions.pod:3340
28708 #, no-wrap
28709 msgid ""
28710 " part-get-mbr-id device partnum\n"
28711 "\n"
28712 msgstr ""
28713
28714 # type: textblock
28715 #. type: textblock
28716 #: ../fish/guestfish-actions.pod:3345 ../fish/guestfish-actions.pod:3483
28717 msgid ""
28718 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28719 "undefined results for other partition table types (see L</part-get-"
28720 "parttype>)."
28721 msgstr ""
28722
28723 # type: =head2
28724 #. type: =head2
28725 #: ../fish/guestfish-actions.pod:3349
28726 msgid "part-get-parttype"
28727 msgstr ""
28728
28729 # type: verbatim
28730 #. type: verbatim
28731 #: ../fish/guestfish-actions.pod:3351
28732 #, no-wrap
28733 msgid ""
28734 " part-get-parttype device\n"
28735 "\n"
28736 msgstr ""
28737
28738 # type: textblock
28739 #. type: textblock
28740 #: ../fish/guestfish-actions.pod:3356
28741 msgid ""
28742 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28743 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28744 "possible, although unusual.  See L</part-init> for a full list."
28745 msgstr ""
28746
28747 # type: =head2
28748 #. type: =head2
28749 #: ../fish/guestfish-actions.pod:3361
28750 msgid "part-init"
28751 msgstr ""
28752
28753 # type: verbatim
28754 #. type: verbatim
28755 #: ../fish/guestfish-actions.pod:3363
28756 #, no-wrap
28757 msgid ""
28758 " part-init device parttype\n"
28759 "\n"
28760 msgstr ""
28761
28762 # type: textblock
28763 #. type: textblock
28764 #: ../fish/guestfish-actions.pod:3369
28765 msgid ""
28766 "Initially there are no partitions.  Following this, you should call L</part-"
28767 "add> for each partition required."
28768 msgstr ""
28769
28770 # type: =head2
28771 #. type: =head2
28772 #: ../fish/guestfish-actions.pod:3432
28773 msgid "part-list"
28774 msgstr ""
28775
28776 # type: verbatim
28777 #. type: verbatim
28778 #: ../fish/guestfish-actions.pod:3434
28779 #, no-wrap
28780 msgid ""
28781 " part-list device\n"
28782 "\n"
28783 msgstr ""
28784
28785 # type: textblock
28786 #. type: textblock
28787 #: ../fish/guestfish-actions.pod:3449
28788 msgid ""
28789 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28790 "the device's sector size, see L</blockdev-getss>."
28791 msgstr ""
28792
28793 # type: =head2
28794 #. type: =head2
28795 #: ../fish/guestfish-actions.pod:3462
28796 msgid "part-set-bootable"
28797 msgstr ""
28798
28799 # type: verbatim
28800 #. type: verbatim
28801 #: ../fish/guestfish-actions.pod:3464
28802 #, no-wrap
28803 msgid ""
28804 " part-set-bootable device partnum true|false\n"
28805 "\n"
28806 msgstr ""
28807
28808 # type: =head2
28809 #. type: =head2
28810 #: ../fish/guestfish-actions.pod:3473
28811 msgid "part-set-mbr-id"
28812 msgstr ""
28813
28814 # type: verbatim
28815 #. type: verbatim
28816 #: ../fish/guestfish-actions.pod:3475
28817 #, no-wrap
28818 msgid ""
28819 " part-set-mbr-id device partnum idbyte\n"
28820 "\n"
28821 msgstr ""
28822
28823 # type: =head2
28824 #. type: =head2
28825 #: ../fish/guestfish-actions.pod:3487
28826 msgid "part-set-name"
28827 msgstr ""
28828
28829 # type: verbatim
28830 #. type: verbatim
28831 #: ../fish/guestfish-actions.pod:3489
28832 #, no-wrap
28833 msgid ""
28834 " part-set-name device partnum name\n"
28835 "\n"
28836 msgstr ""
28837
28838 # type: =head2
28839 #. type: =head2
28840 #: ../fish/guestfish-actions.pod:3497
28841 msgid "part-to-dev"
28842 msgstr ""
28843
28844 # type: verbatim
28845 #. type: verbatim
28846 #: ../fish/guestfish-actions.pod:3499
28847 #, no-wrap
28848 msgid ""
28849 " part-to-dev partition\n"
28850 "\n"
28851 msgstr ""
28852
28853 # type: textblock
28854 #. type: textblock
28855 #: ../fish/guestfish-actions.pod:3505
28856 msgid ""
28857 "The named partition must exist, for example as a string returned from L</"
28858 "list-partitions>."
28859 msgstr ""
28860
28861 # type: =head2
28862 #. type: =head2
28863 #: ../fish/guestfish-actions.pod:3508
28864 msgid "ping-daemon"
28865 msgstr ""
28866
28867 # type: verbatim
28868 #. type: verbatim
28869 #: ../fish/guestfish-actions.pod:3510
28870 #, no-wrap
28871 msgid ""
28872 " ping-daemon\n"
28873 "\n"
28874 msgstr ""
28875
28876 # type: =head2
28877 #. type: =head2
28878 #: ../fish/guestfish-actions.pod:3517
28879 msgid "pread"
28880 msgstr ""
28881
28882 # type: verbatim
28883 #. type: verbatim
28884 #: ../fish/guestfish-actions.pod:3519
28885 #, no-wrap
28886 msgid ""
28887 " pread path count offset\n"
28888 "\n"
28889 msgstr ""
28890
28891 # type: textblock
28892 #. type: textblock
28893 #: ../fish/guestfish-actions.pod:3527
28894 msgid "See also L</pwrite>, L</pread-device>."
28895 msgstr ""
28896
28897 # type: =head2
28898 #. type: =head2
28899 #: ../fish/guestfish-actions.pod:3532
28900 msgid "pread-device"
28901 msgstr ""
28902
28903 # type: verbatim
28904 #. type: verbatim
28905 #: ../fish/guestfish-actions.pod:3534
28906 #, no-wrap
28907 msgid ""
28908 " pread-device device count offset\n"
28909 "\n"
28910 msgstr ""
28911
28912 # type: textblock
28913 #. type: textblock
28914 #: ../fish/guestfish-actions.pod:3542
28915 msgid "See also L</pread>."
28916 msgstr ""
28917
28918 # type: =head2
28919 #. type: =head2
28920 #: ../fish/guestfish-actions.pod:3547
28921 msgid "pvcreate"
28922 msgstr ""
28923
28924 # type: verbatim
28925 #. type: verbatim
28926 #: ../fish/guestfish-actions.pod:3549
28927 #, no-wrap
28928 msgid ""
28929 " pvcreate device\n"
28930 "\n"
28931 msgstr ""
28932
28933 # type: =head2
28934 #. type: =head2
28935 #: ../fish/guestfish-actions.pod:3555
28936 msgid "pvremove"
28937 msgstr ""
28938
28939 # type: verbatim
28940 #. type: verbatim
28941 #: ../fish/guestfish-actions.pod:3557
28942 #, no-wrap
28943 msgid ""
28944 " pvremove device\n"
28945 "\n"
28946 msgstr ""
28947
28948 # type: =head2
28949 #. type: =head2
28950 #: ../fish/guestfish-actions.pod:3566
28951 msgid "pvresize"
28952 msgstr ""
28953
28954 # type: verbatim
28955 #. type: verbatim
28956 #: ../fish/guestfish-actions.pod:3568
28957 #, no-wrap
28958 msgid ""
28959 " pvresize device\n"
28960 "\n"
28961 msgstr ""
28962
28963 # type: =head2
28964 #. type: =head2
28965 #: ../fish/guestfish-actions.pod:3573
28966 msgid "pvresize-size"
28967 msgstr ""
28968
28969 # type: verbatim
28970 #. type: verbatim
28971 #: ../fish/guestfish-actions.pod:3575
28972 #, no-wrap
28973 msgid ""
28974 " pvresize-size device size\n"
28975 "\n"
28976 msgstr ""
28977
28978 # type: textblock
28979 #. type: textblock
28980 #: ../fish/guestfish-actions.pod:3577
28981 msgid ""
28982 "This command is the same as L</pvresize> except that it allows you to "
28983 "specify the new size (in bytes) explicitly."
28984 msgstr ""
28985
28986 # type: =head2
28987 #. type: =head2
28988 #: ../fish/guestfish-actions.pod:3580
28989 msgid "pvs"
28990 msgstr ""
28991
28992 # type: verbatim
28993 #. type: verbatim
28994 #: ../fish/guestfish-actions.pod:3582
28995 #, no-wrap
28996 msgid ""
28997 " pvs\n"
28998 "\n"
28999 msgstr ""
29000
29001 # type: textblock
29002 #. type: textblock
29003 #: ../fish/guestfish-actions.pod:3590
29004 msgid "See also L</pvs-full>."
29005 msgstr ""
29006
29007 # type: =head2
29008 #. type: =head2
29009 #: ../fish/guestfish-actions.pod:3592
29010 msgid "pvs-full"
29011 msgstr ""
29012
29013 # type: verbatim
29014 #. type: verbatim
29015 #: ../fish/guestfish-actions.pod:3594
29016 #, no-wrap
29017 msgid ""
29018 " pvs-full\n"
29019 "\n"
29020 msgstr ""
29021
29022 # type: =head2
29023 #. type: =head2
29024 #: ../fish/guestfish-actions.pod:3599
29025 msgid "pvuuid"
29026 msgstr ""
29027
29028 # type: verbatim
29029 #. type: verbatim
29030 #: ../fish/guestfish-actions.pod:3601
29031 #, no-wrap
29032 msgid ""
29033 " pvuuid device\n"
29034 "\n"
29035 msgstr ""
29036
29037 # type: =head2
29038 #. type: =head2
29039 #: ../fish/guestfish-actions.pod:3605
29040 msgid "pwrite"
29041 msgstr ""
29042
29043 # type: verbatim
29044 #. type: verbatim
29045 #: ../fish/guestfish-actions.pod:3607
29046 #, no-wrap
29047 msgid ""
29048 " pwrite path content offset\n"
29049 "\n"
29050 msgstr ""
29051
29052 # type: textblock
29053 #. type: textblock
29054 #: ../fish/guestfish-actions.pod:3618
29055 msgid "See also L</pread>, L</pwrite-device>."
29056 msgstr ""
29057
29058 # type: =head2
29059 #. type: =head2
29060 #: ../fish/guestfish-actions.pod:3623
29061 msgid "pwrite-device"
29062 msgstr ""
29063
29064 # type: verbatim
29065 #. type: verbatim
29066 #: ../fish/guestfish-actions.pod:3625
29067 #, no-wrap
29068 msgid ""
29069 " pwrite-device device content offset\n"
29070 "\n"
29071 msgstr ""
29072
29073 # type: textblock
29074 #. type: textblock
29075 #: ../fish/guestfish-actions.pod:3635
29076 msgid "See also L</pwrite>."
29077 msgstr ""
29078
29079 # type: =head2
29080 #. type: =head2
29081 #: ../fish/guestfish-actions.pod:3640
29082 msgid "read-file"
29083 msgstr ""
29084
29085 # type: verbatim
29086 #. type: verbatim
29087 #: ../fish/guestfish-actions.pod:3642
29088 #, no-wrap
29089 msgid ""
29090 " read-file path\n"
29091 "\n"
29092 msgstr ""
29093
29094 # type: textblock
29095 #. type: textblock
29096 #: ../fish/guestfish-actions.pod:3647
29097 msgid ""
29098 "Unlike L</cat>, this function can correctly handle files that contain "
29099 "embedded ASCII NUL characters.  However unlike L</download>, this function "
29100 "is limited in the total size of file that can be handled."
29101 msgstr ""
29102
29103 # type: =head2
29104 #. type: =head2
29105 #: ../fish/guestfish-actions.pod:3655
29106 msgid "read-lines"
29107 msgstr ""
29108
29109 # type: verbatim
29110 #. type: verbatim
29111 #: ../fish/guestfish-actions.pod:3657
29112 #, no-wrap
29113 msgid ""
29114 " read-lines path\n"
29115 "\n"
29116 msgstr ""
29117
29118 # type: textblock
29119 #. type: textblock
29120 #: ../fish/guestfish-actions.pod:3664
29121 msgid ""
29122 "Note that this function cannot correctly handle binary files (specifically, "
29123 "files containing C<\\0> character which is treated as end of line).  For "
29124 "those you need to use the L</read-file> function which has a more complex "
29125 "interface."
29126 msgstr ""
29127
29128 # type: =head2
29129 #. type: =head2
29130 #: ../fish/guestfish-actions.pod:3669
29131 msgid "readdir"
29132 msgstr ""
29133
29134 # type: verbatim
29135 #. type: verbatim
29136 #: ../fish/guestfish-actions.pod:3671
29137 #, no-wrap
29138 msgid ""
29139 " readdir dir\n"
29140 "\n"
29141 msgstr ""
29142
29143 # type: textblock
29144 #. type: textblock
29145 #: ../fish/guestfish-actions.pod:3723
29146 msgid ""
29147 "This function is primarily intended for use by programs.  To get a simple "
29148 "list of names, use L</ls>.  To get a printable directory for human "
29149 "consumption, use L</ll>."
29150 msgstr ""
29151
29152 # type: =head2
29153 #. type: =head2
29154 #: ../fish/guestfish-actions.pod:3727
29155 msgid "readlink"
29156 msgstr ""
29157
29158 # type: verbatim
29159 #. type: verbatim
29160 #: ../fish/guestfish-actions.pod:3729
29161 #, no-wrap
29162 msgid ""
29163 " readlink path\n"
29164 "\n"
29165 msgstr ""
29166
29167 # type: =head2
29168 #. type: =head2
29169 #: ../fish/guestfish-actions.pod:3733
29170 msgid "readlinklist"
29171 msgstr ""
29172
29173 # type: verbatim
29174 #. type: verbatim
29175 #: ../fish/guestfish-actions.pod:3735
29176 #, no-wrap
29177 msgid ""
29178 " readlinklist path 'names ...'\n"
29179 "\n"
29180 msgstr ""
29181
29182 # type: =head2
29183 #. type: =head2
29184 #: ../fish/guestfish-actions.pod:3759
29185 msgid "realpath"
29186 msgstr ""
29187
29188 # type: verbatim
29189 #. type: verbatim
29190 #: ../fish/guestfish-actions.pod:3761
29191 #, no-wrap
29192 msgid ""
29193 " realpath path\n"
29194 "\n"
29195 msgstr ""
29196
29197 # type: =head2
29198 #. type: =head2
29199 #: ../fish/guestfish-actions.pod:3766
29200 msgid "removexattr"
29201 msgstr ""
29202
29203 # type: verbatim
29204 #. type: verbatim
29205 #: ../fish/guestfish-actions.pod:3768
29206 #, no-wrap
29207 msgid ""
29208 " removexattr xattr path\n"
29209 "\n"
29210 msgstr ""
29211
29212 # type: textblock
29213 #. type: textblock
29214 #: ../fish/guestfish-actions.pod:3773
29215 msgid "See also: L</lremovexattr>, L<attr(5)>."
29216 msgstr ""
29217
29218 # type: =head2
29219 #. type: =head2
29220 #: ../fish/guestfish-actions.pod:3775
29221 msgid "resize2fs"
29222 msgstr ""
29223
29224 # type: verbatim
29225 #. type: verbatim
29226 #: ../fish/guestfish-actions.pod:3777
29227 #, no-wrap
29228 msgid ""
29229 " resize2fs device\n"
29230 "\n"
29231 msgstr ""
29232
29233 # type: textblock
29234 #. type: textblock
29235 #: ../fish/guestfish-actions.pod:3782
29236 msgid ""
29237 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29238 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29239 "gives an error about this and sometimes not.  In any case, it is always safe "
29240 "to call L</e2fsck-f> before calling this function."
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../fish/guestfish-actions.pod:3788
29245 msgid "resize2fs-M"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../fish/guestfish-actions.pod:3790
29250 #, no-wrap
29251 msgid ""
29252 " resize2fs-M device\n"
29253 "\n"
29254 msgstr ""
29255
29256 #. type: textblock
29257 #: ../fish/guestfish-actions.pod:3792
29258 msgid ""
29259 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29260 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
29261 "command."
29262 msgstr ""
29263
29264 #. type: textblock
29265 #: ../fish/guestfish-actions.pod:3796
29266 msgid ""
29267 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29268 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29269 "multiplied together, give the resulting size of the minimal filesystem in "
29270 "bytes."
29271 msgstr ""
29272
29273 # type: =head2
29274 #. type: =head2
29275 #: ../fish/guestfish-actions.pod:3801
29276 msgid "resize2fs-size"
29277 msgstr ""
29278
29279 # type: verbatim
29280 #. type: verbatim
29281 #: ../fish/guestfish-actions.pod:3803
29282 #, no-wrap
29283 msgid ""
29284 " resize2fs-size device size\n"
29285 "\n"
29286 msgstr ""
29287
29288 # type: textblock
29289 #. type: textblock
29290 #: ../fish/guestfish-actions.pod:3805
29291 msgid ""
29292 "This command is the same as L</resize2fs> except that it allows you to "
29293 "specify the new size (in bytes) explicitly."
29294 msgstr ""
29295
29296 # type: =head2
29297 #. type: =head2
29298 #: ../fish/guestfish-actions.pod:3808
29299 msgid "rm"
29300 msgstr ""
29301
29302 # type: verbatim
29303 #. type: verbatim
29304 #: ../fish/guestfish-actions.pod:3810
29305 #, no-wrap
29306 msgid ""
29307 " rm path\n"
29308 "\n"
29309 msgstr ""
29310
29311 # type: =head2
29312 #. type: =head2
29313 #: ../fish/guestfish-actions.pod:3814
29314 msgid "rm-rf"
29315 msgstr ""
29316
29317 # type: verbatim
29318 #. type: verbatim
29319 #: ../fish/guestfish-actions.pod:3816
29320 #, no-wrap
29321 msgid ""
29322 " rm-rf path\n"
29323 "\n"
29324 msgstr ""
29325
29326 # type: =head2
29327 #. type: =head2
29328 #: ../fish/guestfish-actions.pod:3822
29329 msgid "rmdir"
29330 msgstr ""
29331
29332 # type: verbatim
29333 #. type: verbatim
29334 #: ../fish/guestfish-actions.pod:3824
29335 #, no-wrap
29336 msgid ""
29337 " rmdir path\n"
29338 "\n"
29339 msgstr ""
29340
29341 # type: =head2
29342 #. type: =head2
29343 #: ../fish/guestfish-actions.pod:3828
29344 msgid "rmmountpoint"
29345 msgstr ""
29346
29347 # type: verbatim
29348 #. type: verbatim
29349 #: ../fish/guestfish-actions.pod:3830
29350 #, no-wrap
29351 msgid ""
29352 " rmmountpoint exemptpath\n"
29353 "\n"
29354 msgstr ""
29355
29356 # type: textblock
29357 #. type: textblock
29358 #: ../fish/guestfish-actions.pod:3832
29359 msgid ""
29360 "This calls removes a mountpoint that was previously created with L</"
29361 "mkmountpoint>.  See L</mkmountpoint> for full details."
29362 msgstr ""
29363
29364 # type: =head2
29365 #. type: =head2
29366 #: ../fish/guestfish-actions.pod:3836
29367 msgid "scrub-device"
29368 msgstr ""
29369
29370 # type: verbatim
29371 #. type: verbatim
29372 #: ../fish/guestfish-actions.pod:3838
29373 #, no-wrap
29374 msgid ""
29375 " scrub-device device\n"
29376 "\n"
29377 msgstr ""
29378
29379 # type: =head2
29380 #. type: =head2
29381 #: ../fish/guestfish-actions.pod:3849
29382 msgid "scrub-file"
29383 msgstr ""
29384
29385 # type: verbatim
29386 #. type: verbatim
29387 #: ../fish/guestfish-actions.pod:3851
29388 #, no-wrap
29389 msgid ""
29390 " scrub-file file\n"
29391 "\n"
29392 msgstr ""
29393
29394 # type: =head2
29395 #. type: =head2
29396 #: ../fish/guestfish-actions.pod:3861
29397 msgid "scrub-freespace"
29398 msgstr ""
29399
29400 # type: verbatim
29401 #. type: verbatim
29402 #: ../fish/guestfish-actions.pod:3863
29403 #, no-wrap
29404 msgid ""
29405 " scrub-freespace dir\n"
29406 "\n"
29407 msgstr ""
29408
29409 # type: textblock
29410 #. type: textblock
29411 #: ../fish/guestfish-actions.pod:3865
29412 msgid ""
29413 "This command creates the directory C<dir> and then fills it with files until "
29414 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29415 "deletes them.  The intention is to scrub any free space on the partition "
29416 "containing C<dir>."
29417 msgstr ""
29418
29419 # type: =head2
29420 #. type: =head2
29421 #: ../fish/guestfish-actions.pod:3874
29422 msgid "set-append"
29423 msgstr ""
29424
29425 # type: =head2
29426 #. type: =head2
29427 #: ../fish/guestfish-actions.pod:3876
29428 msgid "append"
29429 msgstr ""
29430
29431 # type: verbatim
29432 #. type: verbatim
29433 #: ../fish/guestfish-actions.pod:3878
29434 #, no-wrap
29435 msgid ""
29436 " set-append append\n"
29437 "\n"
29438 msgstr ""
29439
29440 #. type: =head2
29441 #: ../fish/guestfish-actions.pod:3889
29442 msgid "set-attach-method"
29443 msgstr ""
29444
29445 #. type: =head2
29446 #: ../fish/guestfish-actions.pod:3891
29447 msgid "attach-method"
29448 msgstr ""
29449
29450 #. type: verbatim
29451 #: ../fish/guestfish-actions.pod:3893
29452 #, no-wrap
29453 msgid ""
29454 " set-attach-method attachmethod\n"
29455 "\n"
29456 msgstr ""
29457
29458 # type: =head2
29459 #. type: =head2
29460 #: ../fish/guestfish-actions.pod:3915
29461 msgid "set-autosync"
29462 msgstr ""
29463
29464 # type: =head2
29465 #. type: =head2
29466 #: ../fish/guestfish-actions.pod:3917
29467 msgid "autosync"
29468 msgstr ""
29469
29470 # type: verbatim
29471 #. type: verbatim
29472 #: ../fish/guestfish-actions.pod:3919
29473 #, no-wrap
29474 msgid ""
29475 " set-autosync true|false\n"
29476 "\n"
29477 msgstr ""
29478
29479 # type: =head2
29480 #. type: =head2
29481 #: ../fish/guestfish-actions.pod:3929
29482 msgid "set-direct"
29483 msgstr ""
29484
29485 # type: =head2
29486 #. type: =head2
29487 #: ../fish/guestfish-actions.pod:3931
29488 msgid "direct"
29489 msgstr ""
29490
29491 # type: verbatim
29492 #. type: verbatim
29493 #: ../fish/guestfish-actions.pod:3933
29494 #, no-wrap
29495 msgid ""
29496 " set-direct true|false\n"
29497 "\n"
29498 msgstr ""
29499
29500 # type: textblock
29501 #. type: textblock
29502 #: ../fish/guestfish-actions.pod:3939
29503 msgid ""
29504 "One consequence of this is that log messages aren't caught by the library "
29505 "and handled by L</set-log-message-callback>, but go straight to stdout."
29506 msgstr ""
29507
29508 # type: =head2
29509 #. type: =head2
29510 #: ../fish/guestfish-actions.pod:3948
29511 msgid "set-e2label"
29512 msgstr ""
29513
29514 # type: verbatim
29515 #. type: verbatim
29516 #: ../fish/guestfish-actions.pod:3950
29517 #, no-wrap
29518 msgid ""
29519 " set-e2label device label\n"
29520 "\n"
29521 msgstr ""
29522
29523 # type: textblock
29524 #. type: textblock
29525 #: ../fish/guestfish-actions.pod:3956
29526 msgid ""
29527 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
29528 "label on a filesystem."
29529 msgstr ""
29530
29531 # type: =head2
29532 #. type: =head2
29533 #: ../fish/guestfish-actions.pod:3959
29534 msgid "set-e2uuid"
29535 msgstr ""
29536
29537 # type: verbatim
29538 #. type: verbatim
29539 #: ../fish/guestfish-actions.pod:3961
29540 #, no-wrap
29541 msgid ""
29542 " set-e2uuid device uuid\n"
29543 "\n"
29544 msgstr ""
29545
29546 # type: textblock
29547 #. type: textblock
29548 #: ../fish/guestfish-actions.pod:3968
29549 msgid ""
29550 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
29551 "UUID of a filesystem."
29552 msgstr ""
29553
29554 # type: =head2
29555 #. type: =head2
29556 #: ../fish/guestfish-actions.pod:3971
29557 msgid "set-memsize"
29558 msgstr ""
29559
29560 # type: =head2
29561 #. type: =head2
29562 #: ../fish/guestfish-actions.pod:3973
29563 msgid "memsize"
29564 msgstr ""
29565
29566 # type: verbatim
29567 #. type: verbatim
29568 #: ../fish/guestfish-actions.pod:3975
29569 #, no-wrap
29570 msgid ""
29571 " set-memsize memsize\n"
29572 "\n"
29573 msgstr ""
29574
29575 # type: textblock
29576 #. type: textblock
29577 #: ../fish/guestfish-actions.pod:3977
29578 msgid ""
29579 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29580 "This only has any effect if called before L</launch>."
29581 msgstr ""
29582
29583 # type: =head2
29584 #. type: =head2
29585 #: ../fish/guestfish-actions.pod:3988
29586 msgid "set-network"
29587 msgstr ""
29588
29589 # type: =head2
29590 #. type: =head2
29591 #: ../fish/guestfish-actions.pod:3990
29592 msgid "network"
29593 msgstr ""
29594
29595 # type: verbatim
29596 #. type: verbatim
29597 #: ../fish/guestfish-actions.pod:3992
29598 #, no-wrap
29599 msgid ""
29600 " set-network true|false\n"
29601 "\n"
29602 msgstr ""
29603
29604 # type: textblock
29605 #. type: textblock
29606 #: ../fish/guestfish-actions.pod:4000
29607 msgid ""
29608 "You must call this before calling L</launch>, otherwise it has no effect."
29609 msgstr ""
29610
29611 # type: =head2
29612 #. type: =head2
29613 #: ../fish/guestfish-actions.pod:4003
29614 msgid "set-path"
29615 msgstr ""
29616
29617 # type: =head2
29618 #. type: =head2
29619 #: ../fish/guestfish-actions.pod:4005
29620 msgid "path"
29621 msgstr ""
29622
29623 # type: verbatim
29624 #. type: verbatim
29625 #: ../fish/guestfish-actions.pod:4007
29626 #, no-wrap
29627 msgid ""
29628 " set-path searchpath\n"
29629 "\n"
29630 msgstr ""
29631
29632 # type: =head2
29633 #. type: =head2
29634 #: ../fish/guestfish-actions.pod:4016
29635 msgid "set-qemu"
29636 msgstr ""
29637
29638 # type: =head2
29639 #. type: =head2
29640 #: ../fish/guestfish-actions.pod:4018
29641 msgid "qemu"
29642 msgstr ""
29643
29644 # type: verbatim
29645 #. type: verbatim
29646 #: ../fish/guestfish-actions.pod:4020
29647 #, no-wrap
29648 msgid ""
29649 " set-qemu qemu\n"
29650 "\n"
29651 msgstr ""
29652
29653 # type: =head2
29654 #. type: =head2
29655 #: ../fish/guestfish-actions.pod:4040
29656 msgid "set-recovery-proc"
29657 msgstr ""
29658
29659 # type: =head2
29660 #. type: =head2
29661 #: ../fish/guestfish-actions.pod:4042
29662 msgid "recovery-proc"
29663 msgstr ""
29664
29665 # type: verbatim
29666 #. type: verbatim
29667 #: ../fish/guestfish-actions.pod:4044
29668 #, no-wrap
29669 msgid ""
29670 " set-recovery-proc true|false\n"
29671 "\n"
29672 msgstr ""
29673
29674 # type: textblock
29675 #. type: textblock
29676 #: ../fish/guestfish-actions.pod:4046
29677 msgid ""
29678 "If this is called with the parameter C<false> then L</launch> does not "
29679 "create a recovery process.  The purpose of the recovery process is to stop "
29680 "runaway qemu processes in the case where the main program aborts abruptly."
29681 msgstr ""
29682
29683 # type: textblock
29684 #. type: textblock
29685 #: ../fish/guestfish-actions.pod:4051
29686 msgid ""
29687 "This only has any effect if called before L</launch>, and the default is "
29688 "true."
29689 msgstr ""
29690
29691 # type: =head2
29692 #. type: =head2
29693 #: ../fish/guestfish-actions.pod:4060
29694 msgid "set-selinux"
29695 msgstr ""
29696
29697 # type: =head2
29698 #. type: =head2
29699 #: ../fish/guestfish-actions.pod:4062
29700 msgid "selinux"
29701 msgstr ""
29702
29703 # type: verbatim
29704 #. type: verbatim
29705 #: ../fish/guestfish-actions.pod:4064
29706 #, no-wrap
29707 msgid ""
29708 " set-selinux true|false\n"
29709 "\n"
29710 msgstr ""
29711
29712 # type: =head2
29713 #. type: =head2
29714 #: ../fish/guestfish-actions.pod:4075
29715 msgid "set-trace"
29716 msgstr ""
29717
29718 # type: =head2
29719 #. type: =head2
29720 #: ../fish/guestfish-actions.pod:4077
29721 msgid "trace"
29722 msgstr ""
29723
29724 # type: verbatim
29725 #. type: verbatim
29726 #: ../fish/guestfish-actions.pod:4079
29727 #, no-wrap
29728 msgid ""
29729 " set-trace true|false\n"
29730 "\n"
29731 msgstr ""
29732
29733 #. type: textblock
29734 #: ../fish/guestfish-actions.pod:4091
29735 msgid ""
29736 "Trace messages are normally sent to C<stderr>, unless you register a "
29737 "callback to send them somewhere else (see L</set-event-callback>)."
29738 msgstr ""
29739
29740 # type: =head2
29741 #. type: =head2
29742 #: ../fish/guestfish-actions.pod:4095
29743 msgid "set-verbose"
29744 msgstr ""
29745
29746 # type: =head2
29747 #. type: =head2
29748 #: ../fish/guestfish-actions.pod:4097
29749 msgid "verbose"
29750 msgstr ""
29751
29752 # type: verbatim
29753 #. type: verbatim
29754 #: ../fish/guestfish-actions.pod:4099
29755 #, no-wrap
29756 msgid ""
29757 " set-verbose true|false\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../fish/guestfish-actions.pod:4106
29763 msgid ""
29764 "Verbose messages are normally sent to C<stderr>, unless you register a "
29765 "callback to send them somewhere else (see L</set-event-callback>)."
29766 msgstr ""
29767
29768 # type: =head2
29769 #. type: =head2
29770 #: ../fish/guestfish-actions.pod:4110
29771 msgid "setcon"
29772 msgstr ""
29773
29774 # type: verbatim
29775 #. type: verbatim
29776 #: ../fish/guestfish-actions.pod:4112
29777 #, no-wrap
29778 msgid ""
29779 " setcon context\n"
29780 "\n"
29781 msgstr ""
29782
29783 # type: =head2
29784 #. type: =head2
29785 #: ../fish/guestfish-actions.pod:4119
29786 msgid "setxattr"
29787 msgstr ""
29788
29789 # type: verbatim
29790 #. type: verbatim
29791 #: ../fish/guestfish-actions.pod:4121
29792 #, no-wrap
29793 msgid ""
29794 " setxattr xattr val vallen path\n"
29795 "\n"
29796 msgstr ""
29797
29798 # type: textblock
29799 #. type: textblock
29800 #: ../fish/guestfish-actions.pod:4127
29801 msgid "See also: L</lsetxattr>, L<attr(5)>."
29802 msgstr ""
29803
29804 # type: =head2
29805 #. type: =head2
29806 #: ../fish/guestfish-actions.pod:4129
29807 msgid "sfdisk"
29808 msgstr ""
29809
29810 # type: verbatim
29811 #. type: verbatim
29812 #: ../fish/guestfish-actions.pod:4131
29813 #, no-wrap
29814 msgid ""
29815 " sfdisk device cyls heads sectors 'lines ...'\n"
29816 "\n"
29817 msgstr ""
29818
29819 # type: textblock
29820 #. type: textblock
29821 #: ../fish/guestfish-actions.pod:4153
29822 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
29823 msgstr ""
29824
29825 # type: =head2
29826 #. type: =head2
29827 #: ../fish/guestfish-actions.pod:4159
29828 msgid "sfdiskM"
29829 msgstr ""
29830
29831 # type: verbatim
29832 #. type: verbatim
29833 #: ../fish/guestfish-actions.pod:4161
29834 #, no-wrap
29835 msgid ""
29836 " sfdiskM device 'lines ...'\n"
29837 "\n"
29838 msgstr ""
29839
29840 # type: textblock
29841 #. type: textblock
29842 #: ../fish/guestfish-actions.pod:4163
29843 msgid ""
29844 "This is a simplified interface to the L</sfdisk> command, where partition "
29845 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
29846 "you don't need to specify the cyls, heads and sectors parameters which were "
29847 "rarely if ever used anyway."
29848 msgstr ""
29849
29850 # type: textblock
29851 #. type: textblock
29852 #: ../fish/guestfish-actions.pod:4169
29853 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
29854 msgstr ""
29855
29856 # type: =head2
29857 #. type: =head2
29858 #: ../fish/guestfish-actions.pod:4175
29859 msgid "sfdisk-N"
29860 msgstr ""
29861
29862 # type: verbatim
29863 #. type: verbatim
29864 #: ../fish/guestfish-actions.pod:4177
29865 #, no-wrap
29866 msgid ""
29867 " sfdisk-N device partnum cyls heads sectors line\n"
29868 "\n"
29869 msgstr ""
29870
29871 # type: textblock
29872 #. type: textblock
29873 #: ../fish/guestfish-actions.pod:4182
29874 msgid ""
29875 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
29876 "cyls/heads/sectors parameters."
29877 msgstr ""
29878
29879 # type: textblock
29880 #. type: textblock
29881 #: ../fish/guestfish-actions.pod:4185
29882 msgid "See also: L</part-add>"
29883 msgstr ""
29884
29885 # type: =head2
29886 #. type: =head2
29887 #: ../fish/guestfish-actions.pod:4190
29888 msgid "sfdisk-disk-geometry"
29889 msgstr ""
29890
29891 # type: verbatim
29892 #. type: verbatim
29893 #: ../fish/guestfish-actions.pod:4192
29894 #, no-wrap
29895 msgid ""
29896 " sfdisk-disk-geometry device\n"
29897 "\n"
29898 msgstr ""
29899
29900 # type: textblock
29901 #. type: textblock
29902 #: ../fish/guestfish-actions.pod:4194
29903 msgid ""
29904 "This displays the disk geometry of C<device> read from the partition table.  "
29905 "Especially in the case where the underlying block device has been resized, "
29906 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
29907 "kernel-geometry>)."
29908 msgstr ""
29909
29910 # type: =head2
29911 #. type: =head2
29912 #: ../fish/guestfish-actions.pod:4202
29913 msgid "sfdisk-kernel-geometry"
29914 msgstr ""
29915
29916 # type: verbatim
29917 #. type: verbatim
29918 #: ../fish/guestfish-actions.pod:4204
29919 #, no-wrap
29920 msgid ""
29921 " sfdisk-kernel-geometry device\n"
29922 "\n"
29923 msgstr ""
29924
29925 # type: =head2
29926 #. type: =head2
29927 #: ../fish/guestfish-actions.pod:4211
29928 msgid "sfdisk-l"
29929 msgstr ""
29930
29931 # type: verbatim
29932 #. type: verbatim
29933 #: ../fish/guestfish-actions.pod:4213
29934 #, no-wrap
29935 msgid ""
29936 " sfdisk-l device\n"
29937 "\n"
29938 msgstr ""
29939
29940 # type: textblock
29941 #. type: textblock
29942 #: ../fish/guestfish-actions.pod:4219
29943 msgid "See also: L</part-list>"
29944 msgstr ""
29945
29946 # type: =head2
29947 #. type: =head2
29948 #: ../fish/guestfish-actions.pod:4221
29949 msgid "sh"
29950 msgstr ""
29951
29952 # type: verbatim
29953 #. type: verbatim
29954 #: ../fish/guestfish-actions.pod:4223
29955 #, no-wrap
29956 msgid ""
29957 " sh command\n"
29958 "\n"
29959 msgstr ""
29960
29961 # type: textblock
29962 #. type: textblock
29963 #: ../fish/guestfish-actions.pod:4228
29964 msgid "This is like L</command>, but passes the command to:"
29965 msgstr ""
29966
29967 # type: textblock
29968 #. type: textblock
29969 #: ../fish/guestfish-actions.pod:4236
29970 msgid "All the provisos about L</command> apply to this call."
29971 msgstr ""
29972
29973 # type: =head2
29974 #. type: =head2
29975 #: ../fish/guestfish-actions.pod:4238
29976 msgid "sh-lines"
29977 msgstr ""
29978
29979 # type: verbatim
29980 #. type: verbatim
29981 #: ../fish/guestfish-actions.pod:4240
29982 #, no-wrap
29983 msgid ""
29984 " sh-lines command\n"
29985 "\n"
29986 msgstr ""
29987
29988 # type: textblock
29989 #. type: textblock
29990 #: ../fish/guestfish-actions.pod:4242
29991 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29992 msgstr ""
29993
29994 # type: textblock
29995 #. type: textblock
29996 #: ../fish/guestfish-actions.pod:4245
29997 msgid "See also: L</command-lines>"
29998 msgstr ""
29999
30000 # type: =head2
30001 #. type: =head2
30002 #: ../fish/guestfish-actions.pod:4247
30003 msgid "sleep"
30004 msgstr ""
30005
30006 # type: verbatim
30007 #. type: verbatim
30008 #: ../fish/guestfish-actions.pod:4249
30009 #, no-wrap
30010 msgid ""
30011 " sleep secs\n"
30012 "\n"
30013 msgstr ""
30014
30015 # type: =head2
30016 #. type: =head2
30017 #: ../fish/guestfish-actions.pod:4253
30018 msgid "stat"
30019 msgstr ""
30020
30021 # type: verbatim
30022 #. type: verbatim
30023 #: ../fish/guestfish-actions.pod:4255
30024 #, no-wrap
30025 msgid ""
30026 " stat path\n"
30027 "\n"
30028 msgstr ""
30029
30030 # type: =head2
30031 #. type: =head2
30032 #: ../fish/guestfish-actions.pod:4261
30033 msgid "statvfs"
30034 msgstr ""
30035
30036 # type: verbatim
30037 #. type: verbatim
30038 #: ../fish/guestfish-actions.pod:4263
30039 #, no-wrap
30040 msgid ""
30041 " statvfs path\n"
30042 "\n"
30043 msgstr ""
30044
30045 # type: =head2
30046 #. type: =head2
30047 #: ../fish/guestfish-actions.pod:4271
30048 msgid "strings"
30049 msgstr ""
30050
30051 # type: verbatim
30052 #. type: verbatim
30053 #: ../fish/guestfish-actions.pod:4273
30054 #, no-wrap
30055 msgid ""
30056 " strings path\n"
30057 "\n"
30058 msgstr ""
30059
30060 # type: =head2
30061 #. type: =head2
30062 #: ../fish/guestfish-actions.pod:4281
30063 msgid "strings-e"
30064 msgstr ""
30065
30066 # type: verbatim
30067 #. type: verbatim
30068 #: ../fish/guestfish-actions.pod:4283
30069 #, no-wrap
30070 msgid ""
30071 " strings-e encoding path\n"
30072 "\n"
30073 msgstr ""
30074
30075 # type: textblock
30076 #. type: textblock
30077 #: ../fish/guestfish-actions.pod:4285
30078 msgid ""
30079 "This is like the L</strings> command, but allows you to specify the encoding "
30080 "of strings that are looked for in the source file C<path>."
30081 msgstr ""
30082
30083 # type: textblock
30084 #. type: textblock
30085 #: ../fish/guestfish-actions.pod:4295
30086 msgid ""
30087 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30088 "ISO-8859-X (this is what L</strings> uses)."
30089 msgstr ""
30090
30091 # type: =head2
30092 #. type: =head2
30093 #: ../fish/guestfish-actions.pod:4327
30094 msgid "swapoff-device"
30095 msgstr ""
30096
30097 # type: verbatim
30098 #. type: verbatim
30099 #: ../fish/guestfish-actions.pod:4329
30100 #, no-wrap
30101 msgid ""
30102 " swapoff-device device\n"
30103 "\n"
30104 msgstr ""
30105
30106 # type: textblock
30107 #. type: textblock
30108 #: ../fish/guestfish-actions.pod:4331
30109 msgid ""
30110 "This command disables the libguestfs appliance swap device or partition "
30111 "named C<device>.  See L</swapon-device>."
30112 msgstr ""
30113
30114 # type: =head2
30115 #. type: =head2
30116 #: ../fish/guestfish-actions.pod:4335
30117 msgid "swapoff-file"
30118 msgstr ""
30119
30120 # type: verbatim
30121 #. type: verbatim
30122 #: ../fish/guestfish-actions.pod:4337
30123 #, no-wrap
30124 msgid ""
30125 " swapoff-file file\n"
30126 "\n"
30127 msgstr ""
30128
30129 # type: =head2
30130 #. type: =head2
30131 #: ../fish/guestfish-actions.pod:4341
30132 msgid "swapoff-label"
30133 msgstr ""
30134
30135 # type: verbatim
30136 #. type: verbatim
30137 #: ../fish/guestfish-actions.pod:4343
30138 #, no-wrap
30139 msgid ""
30140 " swapoff-label label\n"
30141 "\n"
30142 msgstr ""
30143
30144 # type: =head2
30145 #. type: =head2
30146 #: ../fish/guestfish-actions.pod:4348
30147 msgid "swapoff-uuid"
30148 msgstr ""
30149
30150 # type: verbatim
30151 #. type: verbatim
30152 #: ../fish/guestfish-actions.pod:4350
30153 #, no-wrap
30154 msgid ""
30155 " swapoff-uuid uuid\n"
30156 "\n"
30157 msgstr ""
30158
30159 # type: =head2
30160 #. type: =head2
30161 #: ../fish/guestfish-actions.pod:4355
30162 msgid "swapon-device"
30163 msgstr ""
30164
30165 # type: verbatim
30166 #. type: verbatim
30167 #: ../fish/guestfish-actions.pod:4357
30168 #, no-wrap
30169 msgid ""
30170 " swapon-device device\n"
30171 "\n"
30172 msgstr ""
30173
30174 # type: textblock
30175 #. type: textblock
30176 #: ../fish/guestfish-actions.pod:4359
30177 msgid ""
30178 "This command enables the libguestfs appliance to use the swap device or "
30179 "partition named C<device>.  The increased memory is made available for all "
30180 "commands, for example those run using L</command> or L</sh>."
30181 msgstr ""
30182
30183 # type: =head2
30184 #. type: =head2
30185 #: ../fish/guestfish-actions.pod:4371
30186 msgid "swapon-file"
30187 msgstr ""
30188
30189 # type: verbatim
30190 #. type: verbatim
30191 #: ../fish/guestfish-actions.pod:4373
30192 #, no-wrap
30193 msgid ""
30194 " swapon-file file\n"
30195 "\n"
30196 msgstr ""
30197
30198 # type: textblock
30199 #. type: textblock
30200 #: ../fish/guestfish-actions.pod:4375
30201 msgid ""
30202 "This command enables swap to a file.  See L</swapon-device> for other notes."
30203 msgstr ""
30204
30205 # type: =head2
30206 #. type: =head2
30207 #: ../fish/guestfish-actions.pod:4378
30208 msgid "swapon-label"
30209 msgstr ""
30210
30211 # type: verbatim
30212 #. type: verbatim
30213 #: ../fish/guestfish-actions.pod:4380
30214 #, no-wrap
30215 msgid ""
30216 " swapon-label label\n"
30217 "\n"
30218 msgstr ""
30219
30220 # type: textblock
30221 #. type: textblock
30222 #: ../fish/guestfish-actions.pod:4382
30223 msgid ""
30224 "This command enables swap to a labeled swap partition.  See L</swapon-"
30225 "device> for other notes."
30226 msgstr ""
30227
30228 # type: =head2
30229 #. type: =head2
30230 #: ../fish/guestfish-actions.pod:4385
30231 msgid "swapon-uuid"
30232 msgstr ""
30233
30234 # type: verbatim
30235 #. type: verbatim
30236 #: ../fish/guestfish-actions.pod:4387
30237 #, no-wrap
30238 msgid ""
30239 " swapon-uuid uuid\n"
30240 "\n"
30241 msgstr ""
30242
30243 # type: textblock
30244 #. type: textblock
30245 #: ../fish/guestfish-actions.pod:4389
30246 msgid ""
30247 "This command enables swap to a swap partition with the given UUID.  See L</"
30248 "swapon-device> for other notes."
30249 msgstr ""
30250
30251 # type: =head2
30252 #. type: =head2
30253 #: ../fish/guestfish-actions.pod:4392
30254 msgid "sync"
30255 msgstr ""
30256
30257 # type: verbatim
30258 #. type: verbatim
30259 #: ../fish/guestfish-actions.pod:4394
30260 #, no-wrap
30261 msgid ""
30262 " sync\n"
30263 "\n"
30264 msgstr ""
30265
30266 # type: =head2
30267 #. type: =head2
30268 #: ../fish/guestfish-actions.pod:4402
30269 msgid "tail"
30270 msgstr ""
30271
30272 # type: verbatim
30273 #. type: verbatim
30274 #: ../fish/guestfish-actions.pod:4404
30275 #, no-wrap
30276 msgid ""
30277 " tail path\n"
30278 "\n"
30279 msgstr ""
30280
30281 # type: =head2
30282 #. type: =head2
30283 #: ../fish/guestfish-actions.pod:4412
30284 msgid "tail-n"
30285 msgstr ""
30286
30287 # type: verbatim
30288 #. type: verbatim
30289 #: ../fish/guestfish-actions.pod:4414
30290 #, no-wrap
30291 msgid ""
30292 " tail-n nrlines path\n"
30293 "\n"
30294 msgstr ""
30295
30296 # type: =head2
30297 #. type: =head2
30298 #: ../fish/guestfish-actions.pod:4427
30299 msgid "tar-in"
30300 msgstr ""
30301
30302 # type: verbatim
30303 #. type: verbatim
30304 #: ../fish/guestfish-actions.pod:4429
30305 #, no-wrap
30306 msgid ""
30307 " tar-in (tarfile|-) directory\n"
30308 "\n"
30309 msgstr ""
30310
30311 # type: textblock
30312 #. type: textblock
30313 #: ../fish/guestfish-actions.pod:4434
30314 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30315 msgstr ""
30316
30317 # type: =head2
30318 #. type: =head2
30319 #: ../fish/guestfish-actions.pod:4439
30320 msgid "tar-out"
30321 msgstr ""
30322
30323 # type: verbatim
30324 #. type: verbatim
30325 #: ../fish/guestfish-actions.pod:4441
30326 #, no-wrap
30327 msgid ""
30328 " tar-out directory (tarfile|-)\n"
30329 "\n"
30330 msgstr ""
30331
30332 # type: textblock
30333 #. type: textblock
30334 #: ../fish/guestfish-actions.pod:4446
30335 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30336 msgstr ""
30337
30338 # type: =head2
30339 #. type: =head2
30340 #: ../fish/guestfish-actions.pod:4451
30341 msgid "tgz-in"
30342 msgstr ""
30343
30344 # type: verbatim
30345 #. type: verbatim
30346 #: ../fish/guestfish-actions.pod:4453
30347 #, no-wrap
30348 msgid ""
30349 " tgz-in (tarball|-) directory\n"
30350 "\n"
30351 msgstr ""
30352
30353 # type: textblock
30354 #. type: textblock
30355 #: ../fish/guestfish-actions.pod:4458
30356 msgid "To upload an uncompressed tarball, use L</tar-in>."
30357 msgstr ""
30358
30359 # type: =head2
30360 #. type: =head2
30361 #: ../fish/guestfish-actions.pod:4462
30362 msgid "tgz-out"
30363 msgstr ""
30364
30365 # type: verbatim
30366 #. type: verbatim
30367 #: ../fish/guestfish-actions.pod:4464
30368 #, no-wrap
30369 msgid ""
30370 " tgz-out directory (tarball|-)\n"
30371 "\n"
30372 msgstr ""
30373
30374 # type: textblock
30375 #. type: textblock
30376 #: ../fish/guestfish-actions.pod:4469
30377 msgid "To download an uncompressed tarball, use L</tar-out>."
30378 msgstr ""
30379
30380 # type: =head2
30381 #. type: =head2
30382 #: ../fish/guestfish-actions.pod:4473
30383 msgid "touch"
30384 msgstr ""
30385
30386 # type: verbatim
30387 #. type: verbatim
30388 #: ../fish/guestfish-actions.pod:4475
30389 #, no-wrap
30390 msgid ""
30391 " touch path\n"
30392 "\n"
30393 msgstr ""
30394
30395 # type: =head2
30396 #. type: =head2
30397 #: ../fish/guestfish-actions.pod:4484
30398 msgid "truncate"
30399 msgstr ""
30400
30401 # type: verbatim
30402 #. type: verbatim
30403 #: ../fish/guestfish-actions.pod:4486
30404 #, no-wrap
30405 msgid ""
30406 " truncate path\n"
30407 "\n"
30408 msgstr ""
30409
30410 # type: =head2
30411 #. type: =head2
30412 #: ../fish/guestfish-actions.pod:4491
30413 msgid "truncate-size"
30414 msgstr ""
30415
30416 # type: verbatim
30417 #. type: verbatim
30418 #: ../fish/guestfish-actions.pod:4493
30419 #, no-wrap
30420 msgid ""
30421 " truncate-size path size\n"
30422 "\n"
30423 msgstr ""
30424
30425 # type: textblock
30426 #. type: textblock
30427 #: ../fish/guestfish-actions.pod:4498
30428 msgid ""
30429 "If the current file size is less than C<size> then the file is extended to "
30430 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30431 "blocks are not allocated for the file until you write to it).  To create a "
30432 "non-sparse file of zeroes, use L</fallocate64> instead."
30433 msgstr ""
30434
30435 # type: =head2
30436 #. type: =head2
30437 #: ../fish/guestfish-actions.pod:4504
30438 msgid "tune2fs-l"
30439 msgstr ""
30440
30441 # type: verbatim
30442 #. type: verbatim
30443 #: ../fish/guestfish-actions.pod:4506
30444 #, no-wrap
30445 msgid ""
30446 " tune2fs-l device\n"
30447 "\n"
30448 msgstr ""
30449
30450 # type: =head2
30451 #. type: =head2
30452 #: ../fish/guestfish-actions.pod:4516
30453 msgid "txz-in"
30454 msgstr ""
30455
30456 # type: verbatim
30457 #. type: verbatim
30458 #: ../fish/guestfish-actions.pod:4518
30459 #, no-wrap
30460 msgid ""
30461 " txz-in (tarball|-) directory\n"
30462 "\n"
30463 msgstr ""
30464
30465 # type: =head2
30466 #. type: =head2
30467 #: ../fish/guestfish-actions.pod:4525
30468 msgid "txz-out"
30469 msgstr ""
30470
30471 # type: verbatim
30472 #. type: verbatim
30473 #: ../fish/guestfish-actions.pod:4527
30474 #, no-wrap
30475 msgid ""
30476 " txz-out directory (tarball|-)\n"
30477 "\n"
30478 msgstr ""
30479
30480 # type: =head2
30481 #. type: =head2
30482 #: ../fish/guestfish-actions.pod:4534
30483 msgid "umask"
30484 msgstr ""
30485
30486 # type: verbatim
30487 #. type: verbatim
30488 #: ../fish/guestfish-actions.pod:4536
30489 #, no-wrap
30490 msgid ""
30491 " umask mask\n"
30492 "\n"
30493 msgstr ""
30494
30495 # type: textblock
30496 #. type: textblock
30497 #: ../fish/guestfish-actions.pod:4550
30498 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
30499 msgstr ""
30500
30501 # type: =head2
30502 #. type: =head2
30503 #: ../fish/guestfish-actions.pod:4555
30504 msgid "umount"
30505 msgstr ""
30506
30507 # type: =head2
30508 #. type: =head2
30509 #: ../fish/guestfish-actions.pod:4557
30510 msgid "unmount"
30511 msgstr ""
30512
30513 # type: verbatim
30514 #. type: verbatim
30515 #: ../fish/guestfish-actions.pod:4559
30516 #, no-wrap
30517 msgid ""
30518 " umount pathordevice\n"
30519 "\n"
30520 msgstr ""
30521
30522 # type: =head2
30523 #. type: =head2
30524 #: ../fish/guestfish-actions.pod:4565
30525 msgid "umount-all"
30526 msgstr ""
30527
30528 # type: =head2
30529 #. type: =head2
30530 #: ../fish/guestfish-actions.pod:4567
30531 msgid "unmount-all"
30532 msgstr ""
30533
30534 # type: verbatim
30535 #. type: verbatim
30536 #: ../fish/guestfish-actions.pod:4569
30537 #, no-wrap
30538 msgid ""
30539 " umount-all\n"
30540 "\n"
30541 msgstr ""
30542
30543 # type: =head2
30544 #. type: =head2
30545 #: ../fish/guestfish-actions.pod:4575
30546 msgid "upload"
30547 msgstr ""
30548
30549 # type: verbatim
30550 #. type: verbatim
30551 #: ../fish/guestfish-actions.pod:4577
30552 #, no-wrap
30553 msgid ""
30554 " upload (filename|-) remotefilename\n"
30555 "\n"
30556 msgstr ""
30557
30558 # type: textblock
30559 #. type: textblock
30560 #: ../fish/guestfish-actions.pod:4584
30561 msgid "See also L</download>."
30562 msgstr ""
30563
30564 # type: =head2
30565 #. type: =head2
30566 #: ../fish/guestfish-actions.pod:4588
30567 msgid "upload-offset"
30568 msgstr ""
30569
30570 # type: verbatim
30571 #. type: verbatim
30572 #: ../fish/guestfish-actions.pod:4590
30573 #, no-wrap
30574 msgid ""
30575 " upload-offset (filename|-) remotefilename offset\n"
30576 "\n"
30577 msgstr ""
30578
30579 # type: textblock
30580 #. type: textblock
30581 #: ../fish/guestfish-actions.pod:4602
30582 msgid ""
30583 "Note that there is no limit on the amount of data that can be uploaded with "
30584 "this call, unlike with L</pwrite>, and this call always writes the full "
30585 "amount unless an error occurs."
30586 msgstr ""
30587
30588 # type: textblock
30589 #. type: textblock
30590 #: ../fish/guestfish-actions.pod:4607
30591 msgid "See also L</upload>, L</pwrite>."
30592 msgstr ""
30593
30594 # type: =head2
30595 #. type: =head2
30596 #: ../fish/guestfish-actions.pod:4611
30597 msgid "utimens"
30598 msgstr ""
30599
30600 # type: verbatim
30601 #. type: verbatim
30602 #: ../fish/guestfish-actions.pod:4613
30603 #, no-wrap
30604 msgid ""
30605 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
30606 "\n"
30607 msgstr ""
30608
30609 # type: =head2
30610 #. type: =head2
30611 #: ../fish/guestfish-actions.pod:4632
30612 msgid "version"
30613 msgstr ""
30614
30615 # type: verbatim
30616 #. type: verbatim
30617 #: ../fish/guestfish-actions.pod:4634
30618 #, no-wrap
30619 msgid ""
30620 " version\n"
30621 "\n"
30622 msgstr ""
30623
30624 # type: textblock
30625 #. type: textblock
30626 #: ../fish/guestfish-actions.pod:4661
30627 msgid ""
30628 "I<Note:> Don't use this call to test for availability of features.  In "
30629 "enterprise distributions we backport features from later versions into "
30630 "earlier versions, making this an unreliable way to test for features.  Use "
30631 "L</available> instead."
30632 msgstr ""
30633
30634 # type: =head2
30635 #. type: =head2
30636 #: ../fish/guestfish-actions.pod:4667
30637 msgid "vfs-label"
30638 msgstr ""
30639
30640 # type: verbatim
30641 #. type: verbatim
30642 #: ../fish/guestfish-actions.pod:4669
30643 #, no-wrap
30644 msgid ""
30645 " vfs-label device\n"
30646 "\n"
30647 msgstr ""
30648
30649 # type: textblock
30650 #. type: textblock
30651 #: ../fish/guestfish-actions.pod:4676
30652 msgid "To find a filesystem from the label, use L</findfs-label>."
30653 msgstr ""
30654
30655 # type: =head2
30656 #. type: =head2
30657 #: ../fish/guestfish-actions.pod:4678
30658 msgid "vfs-type"
30659 msgstr ""
30660
30661 # type: verbatim
30662 #. type: verbatim
30663 #: ../fish/guestfish-actions.pod:4680
30664 #, no-wrap
30665 msgid ""
30666 " vfs-type device\n"
30667 "\n"
30668 msgstr ""
30669
30670 # type: =head2
30671 #. type: =head2
30672 #: ../fish/guestfish-actions.pod:4690
30673 msgid "vfs-uuid"
30674 msgstr ""
30675
30676 # type: verbatim
30677 #. type: verbatim
30678 #: ../fish/guestfish-actions.pod:4692
30679 #, no-wrap
30680 msgid ""
30681 " vfs-uuid device\n"
30682 "\n"
30683 msgstr ""
30684
30685 # type: textblock
30686 #. type: textblock
30687 #: ../fish/guestfish-actions.pod:4699
30688 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
30689 msgstr ""
30690
30691 # type: =head2
30692 #. type: =head2
30693 #: ../fish/guestfish-actions.pod:4701
30694 msgid "vg-activate"
30695 msgstr ""
30696
30697 # type: verbatim
30698 #. type: verbatim
30699 #: ../fish/guestfish-actions.pod:4703
30700 #, no-wrap
30701 msgid ""
30702 " vg-activate true|false 'volgroups ...'\n"
30703 "\n"
30704 msgstr ""
30705
30706 # type: =head2
30707 #. type: =head2
30708 #: ../fish/guestfish-actions.pod:4716
30709 msgid "vg-activate-all"
30710 msgstr ""
30711
30712 # type: verbatim
30713 #. type: verbatim
30714 #: ../fish/guestfish-actions.pod:4718
30715 #, no-wrap
30716 msgid ""
30717 " vg-activate-all true|false\n"
30718 "\n"
30719 msgstr ""
30720
30721 # type: =head2
30722 #. type: =head2
30723 #: ../fish/guestfish-actions.pod:4728
30724 msgid "vgcreate"
30725 msgstr ""
30726
30727 # type: verbatim
30728 #. type: verbatim
30729 #: ../fish/guestfish-actions.pod:4730
30730 #, no-wrap
30731 msgid ""
30732 " vgcreate volgroup 'physvols ...'\n"
30733 "\n"
30734 msgstr ""
30735
30736 # type: =head2
30737 #. type: =head2
30738 #: ../fish/guestfish-actions.pod:4735
30739 msgid "vglvuuids"
30740 msgstr ""
30741
30742 # type: verbatim
30743 #. type: verbatim
30744 #: ../fish/guestfish-actions.pod:4737
30745 #, no-wrap
30746 msgid ""
30747 " vglvuuids vgname\n"
30748 "\n"
30749 msgstr ""
30750
30751 # type: textblock
30752 #. type: textblock
30753 #: ../fish/guestfish-actions.pod:4742
30754 msgid ""
30755 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
30756 "logical volumes and volume groups."
30757 msgstr ""
30758
30759 # type: textblock
30760 #. type: textblock
30761 #: ../fish/guestfish-actions.pod:4745
30762 msgid "See also L</vgpvuuids>."
30763 msgstr ""
30764
30765 # type: =head2
30766 #. type: =head2
30767 #: ../fish/guestfish-actions.pod:4747
30768 msgid "vgpvuuids"
30769 msgstr ""
30770
30771 # type: verbatim
30772 #. type: verbatim
30773 #: ../fish/guestfish-actions.pod:4749
30774 #, no-wrap
30775 msgid ""
30776 " vgpvuuids vgname\n"
30777 "\n"
30778 msgstr ""
30779
30780 # type: textblock
30781 #. type: textblock
30782 #: ../fish/guestfish-actions.pod:4754
30783 msgid ""
30784 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
30785 "physical volumes and volume groups."
30786 msgstr ""
30787
30788 # type: textblock
30789 #. type: textblock
30790 #: ../fish/guestfish-actions.pod:4757
30791 msgid "See also L</vglvuuids>."
30792 msgstr ""
30793
30794 # type: =head2
30795 #. type: =head2
30796 #: ../fish/guestfish-actions.pod:4759
30797 msgid "vgremove"
30798 msgstr ""
30799
30800 # type: verbatim
30801 #. type: verbatim
30802 #: ../fish/guestfish-actions.pod:4761
30803 #, no-wrap
30804 msgid ""
30805 " vgremove vgname\n"
30806 "\n"
30807 msgstr ""
30808
30809 # type: =head2
30810 #. type: =head2
30811 #: ../fish/guestfish-actions.pod:4768
30812 msgid "vgrename"
30813 msgstr ""
30814
30815 # type: verbatim
30816 #. type: verbatim
30817 #: ../fish/guestfish-actions.pod:4770
30818 #, no-wrap
30819 msgid ""
30820 " vgrename volgroup newvolgroup\n"
30821 "\n"
30822 msgstr ""
30823
30824 # type: =head2
30825 #. type: =head2
30826 #: ../fish/guestfish-actions.pod:4774
30827 msgid "vgs"
30828 msgstr ""
30829
30830 # type: verbatim
30831 #. type: verbatim
30832 #: ../fish/guestfish-actions.pod:4776
30833 #, no-wrap
30834 msgid ""
30835 " vgs\n"
30836 "\n"
30837 msgstr ""
30838
30839 # type: textblock
30840 #. type: textblock
30841 #: ../fish/guestfish-actions.pod:4784
30842 msgid "See also L</vgs-full>."
30843 msgstr ""
30844
30845 # type: =head2
30846 #. type: =head2
30847 #: ../fish/guestfish-actions.pod:4786
30848 msgid "vgs-full"
30849 msgstr ""
30850
30851 # type: verbatim
30852 #. type: verbatim
30853 #: ../fish/guestfish-actions.pod:4788
30854 #, no-wrap
30855 msgid ""
30856 " vgs-full\n"
30857 "\n"
30858 msgstr ""
30859
30860 # type: =head2
30861 #. type: =head2
30862 #: ../fish/guestfish-actions.pod:4793
30863 msgid "vgscan"
30864 msgstr ""
30865
30866 # type: verbatim
30867 #. type: verbatim
30868 #: ../fish/guestfish-actions.pod:4795
30869 #, no-wrap
30870 msgid ""
30871 " vgscan\n"
30872 "\n"
30873 msgstr ""
30874
30875 # type: =head2
30876 #. type: =head2
30877 #: ../fish/guestfish-actions.pod:4800
30878 msgid "vguuid"
30879 msgstr ""
30880
30881 # type: verbatim
30882 #. type: verbatim
30883 #: ../fish/guestfish-actions.pod:4802
30884 #, no-wrap
30885 msgid ""
30886 " vguuid vgname\n"
30887 "\n"
30888 msgstr ""
30889
30890 # type: =head2
30891 #. type: =head2
30892 #: ../fish/guestfish-actions.pod:4806
30893 msgid "wc-c"
30894 msgstr ""
30895
30896 # type: verbatim
30897 #. type: verbatim
30898 #: ../fish/guestfish-actions.pod:4808
30899 #, no-wrap
30900 msgid ""
30901 " wc-c path\n"
30902 "\n"
30903 msgstr ""
30904
30905 # type: =head2
30906 #. type: =head2
30907 #: ../fish/guestfish-actions.pod:4813
30908 msgid "wc-l"
30909 msgstr ""
30910
30911 # type: verbatim
30912 #. type: verbatim
30913 #: ../fish/guestfish-actions.pod:4815
30914 #, no-wrap
30915 msgid ""
30916 " wc-l path\n"
30917 "\n"
30918 msgstr ""
30919
30920 # type: =head2
30921 #. type: =head2
30922 #: ../fish/guestfish-actions.pod:4820
30923 msgid "wc-w"
30924 msgstr ""
30925
30926 # type: verbatim
30927 #. type: verbatim
30928 #: ../fish/guestfish-actions.pod:4822
30929 #, no-wrap
30930 msgid ""
30931 " wc-w path\n"
30932 "\n"
30933 msgstr ""
30934
30935 # type: =head2
30936 #. type: =head2
30937 #: ../fish/guestfish-actions.pod:4827
30938 msgid "write"
30939 msgstr ""
30940
30941 # type: verbatim
30942 #. type: verbatim
30943 #: ../fish/guestfish-actions.pod:4829
30944 #, no-wrap
30945 msgid ""
30946 " write path content\n"
30947 "\n"
30948 msgstr ""
30949
30950 # type: =head2
30951 #. type: =head2
30952 #: ../fish/guestfish-actions.pod:4837
30953 msgid "write-file"
30954 msgstr ""
30955
30956 # type: verbatim
30957 #. type: verbatim
30958 #: ../fish/guestfish-actions.pod:4839
30959 #, no-wrap
30960 msgid ""
30961 " write-file path content size\n"
30962 "\n"
30963 msgstr ""
30964
30965 # type: =head2
30966 #. type: =head2
30967 #: ../fish/guestfish-actions.pod:4862
30968 msgid "zegrep"
30969 msgstr ""
30970
30971 # type: verbatim
30972 #. type: verbatim
30973 #: ../fish/guestfish-actions.pod:4864
30974 #, no-wrap
30975 msgid ""
30976 " zegrep regex path\n"
30977 "\n"
30978 msgstr ""
30979
30980 # type: =head2
30981 #. type: =head2
30982 #: ../fish/guestfish-actions.pod:4872
30983 msgid "zegrepi"
30984 msgstr ""
30985
30986 # type: verbatim
30987 #. type: verbatim
30988 #: ../fish/guestfish-actions.pod:4874
30989 #, no-wrap
30990 msgid ""
30991 " zegrepi regex path\n"
30992 "\n"
30993 msgstr ""
30994
30995 # type: =head2
30996 #. type: =head2
30997 #: ../fish/guestfish-actions.pod:4882
30998 msgid "zero"
30999 msgstr ""
31000
31001 # type: verbatim
31002 #. type: verbatim
31003 #: ../fish/guestfish-actions.pod:4884
31004 #, no-wrap
31005 msgid ""
31006 " zero device\n"
31007 "\n"
31008 msgstr ""
31009
31010 # type: textblock
31011 #. type: textblock
31012 #: ../fish/guestfish-actions.pod:4892
31013 msgid "See also: L</zero-device>, L</scrub-device>."
31014 msgstr ""
31015
31016 # type: =head2
31017 #. type: =head2
31018 #: ../fish/guestfish-actions.pod:4894
31019 msgid "zero-device"
31020 msgstr ""
31021
31022 # type: verbatim
31023 #. type: verbatim
31024 #: ../fish/guestfish-actions.pod:4896
31025 #, no-wrap
31026 msgid ""
31027 " zero-device device\n"
31028 "\n"
31029 msgstr ""
31030
31031 # type: textblock
31032 #. type: textblock
31033 #: ../fish/guestfish-actions.pod:4898
31034 msgid ""
31035 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
31036 "which just zeroes the first few blocks of a device."
31037 msgstr ""
31038
31039 # type: =head2
31040 #. type: =head2
31041 #: ../fish/guestfish-actions.pod:4905
31042 msgid "zerofree"
31043 msgstr ""
31044
31045 # type: verbatim
31046 #. type: verbatim
31047 #: ../fish/guestfish-actions.pod:4907
31048 #, no-wrap
31049 msgid ""
31050 " zerofree device\n"
31051 "\n"
31052 msgstr ""
31053
31054 # type: =head2
31055 #. type: =head2
31056 #: ../fish/guestfish-actions.pod:4920
31057 msgid "zfgrep"
31058 msgstr ""
31059
31060 # type: verbatim
31061 #. type: verbatim
31062 #: ../fish/guestfish-actions.pod:4922
31063 #, no-wrap
31064 msgid ""
31065 " zfgrep pattern path\n"
31066 "\n"
31067 msgstr ""
31068
31069 # type: =head2
31070 #. type: =head2
31071 #: ../fish/guestfish-actions.pod:4930
31072 msgid "zfgrepi"
31073 msgstr ""
31074
31075 # type: verbatim
31076 #. type: verbatim
31077 #: ../fish/guestfish-actions.pod:4932
31078 #, no-wrap
31079 msgid ""
31080 " zfgrepi pattern path\n"
31081 "\n"
31082 msgstr ""
31083
31084 # type: =head2
31085 #. type: =head2
31086 #: ../fish/guestfish-actions.pod:4940
31087 msgid "zfile"
31088 msgstr ""
31089
31090 # type: verbatim
31091 #. type: verbatim
31092 #: ../fish/guestfish-actions.pod:4942
31093 #, no-wrap
31094 msgid ""
31095 " zfile meth path\n"
31096 "\n"
31097 msgstr ""
31098
31099 # type: textblock
31100 #. type: textblock
31101 #: ../fish/guestfish-actions.pod:4949
31102 msgid ""
31103 "Since 1.0.63, use L</file> instead which can now process compressed files."
31104 msgstr ""
31105
31106 # type: =head2
31107 #. type: =head2
31108 #: ../fish/guestfish-actions.pod:4959
31109 msgid "zgrep"
31110 msgstr ""
31111
31112 # type: verbatim
31113 #. type: verbatim
31114 #: ../fish/guestfish-actions.pod:4961
31115 #, no-wrap
31116 msgid ""
31117 " zgrep regex path\n"
31118 "\n"
31119 msgstr ""
31120
31121 # type: =head2
31122 #. type: =head2
31123 #: ../fish/guestfish-actions.pod:4969
31124 msgid "zgrepi"
31125 msgstr ""
31126
31127 # type: verbatim
31128 #. type: verbatim
31129 #: ../fish/guestfish-actions.pod:4971
31130 #, no-wrap
31131 msgid ""
31132 " zgrepi regex path\n"
31133 "\n"
31134 msgstr ""
31135
31136 # type: =head2
31137 #. type: =head2
31138 #: ../fish/guestfish-commands.pod:1
31139 msgid "alloc"
31140 msgstr ""
31141
31142 # type: =head2
31143 #. type: =head2
31144 #: ../fish/guestfish-commands.pod:3
31145 msgid "allocate"
31146 msgstr ""
31147
31148 # type: verbatim
31149 #. type: verbatim
31150 #: ../fish/guestfish-commands.pod:5
31151 #, no-wrap
31152 msgid ""
31153 " alloc filename size\n"
31154 "\n"
31155 msgstr ""
31156
31157 # type: textblock
31158 #. type: textblock
31159 #: ../fish/guestfish-commands.pod:7
31160 msgid ""
31161 "This creates an empty (zeroed) file of the given size, and then adds so it "
31162 "can be further examined."
31163 msgstr ""
31164
31165 # type: textblock
31166 #. type: textblock
31167 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
31168 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
31169 msgstr ""
31170
31171 # type: textblock
31172 #. type: textblock
31173 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
31174 msgid "Size can be specified using standard suffixes, eg. C<1M>."
31175 msgstr ""
31176
31177 # type: textblock
31178 #. type: textblock
31179 #: ../fish/guestfish-commands.pod:14
31180 msgid ""
31181 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
31182 "image, see L</PREPARED DISK IMAGES>."
31183 msgstr ""
31184
31185 # type: =head2
31186 #. type: =head2
31187 #: ../fish/guestfish-commands.pod:17
31188 msgid "copy-in"
31189 msgstr ""
31190
31191 # type: verbatim
31192 #. type: verbatim
31193 #: ../fish/guestfish-commands.pod:19
31194 #, no-wrap
31195 msgid ""
31196 " copy-in local [local ...] /remotedir\n"
31197 "\n"
31198 msgstr ""
31199
31200 # type: textblock
31201 #. type: textblock
31202 #: ../fish/guestfish-commands.pod:21
31203 msgid ""
31204 "C<copy-in> copies local files or directories recursively into the disk "
31205 "image, placing them in the directory called C</remotedir> (which must "
31206 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
31207 "other commands as necessary."
31208 msgstr ""
31209
31210 # type: textblock
31211 #. type: textblock
31212 #: ../fish/guestfish-commands.pod:26
31213 msgid ""
31214 "Multiple local files and directories can be specified, but the last "
31215 "parameter must always be a remote directory.  Wildcards cannot be used."
31216 msgstr ""
31217
31218 # type: =head2
31219 #. type: =head2
31220 #: ../fish/guestfish-commands.pod:30
31221 msgid "copy-out"
31222 msgstr ""
31223
31224 # type: verbatim
31225 #. type: verbatim
31226 #: ../fish/guestfish-commands.pod:32
31227 #, no-wrap
31228 msgid ""
31229 " copy-out remote [remote ...] localdir\n"
31230 "\n"
31231 msgstr ""
31232
31233 # type: textblock
31234 #. type: textblock
31235 #: ../fish/guestfish-commands.pod:34
31236 msgid ""
31237 "C<copy-out> copies remote files or directories recursively out of the disk "
31238 "image, placing them on the host disk in a local directory called C<localdir> "
31239 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31240 "download>, L</tar-out> and other commands as necessary."
31241 msgstr ""
31242
31243 # type: textblock
31244 #. type: textblock
31245 #: ../fish/guestfish-commands.pod:40
31246 msgid ""
31247 "Multiple remote files and directories can be specified, but the last "
31248 "parameter must always be a local directory.  To download to the current "
31249 "directory, use C<.> as in:"
31250 msgstr ""
31251
31252 # type: verbatim
31253 #. type: verbatim
31254 #: ../fish/guestfish-commands.pod:44
31255 #, no-wrap
31256 msgid ""
31257 " copy-out /home .\n"
31258 "\n"
31259 msgstr ""
31260
31261 # type: textblock
31262 #. type: textblock
31263 #: ../fish/guestfish-commands.pod:46
31264 msgid ""
31265 "Wildcards cannot be used in the ordinary command, but you can use them with "
31266 "the help of L</glob> like this:"
31267 msgstr ""
31268
31269 # type: verbatim
31270 #. type: verbatim
31271 #: ../fish/guestfish-commands.pod:49
31272 #, no-wrap
31273 msgid ""
31274 " glob copy-out /home/* .\n"
31275 "\n"
31276 msgstr ""
31277
31278 # type: =head2
31279 #. type: =head2
31280 #: ../fish/guestfish-commands.pod:51
31281 msgid "echo"
31282 msgstr ""
31283
31284 # type: verbatim
31285 #. type: verbatim
31286 #: ../fish/guestfish-commands.pod:53
31287 #, no-wrap
31288 msgid ""
31289 " echo [params ...]\n"
31290 "\n"
31291 msgstr ""
31292
31293 # type: textblock
31294 #. type: textblock
31295 #: ../fish/guestfish-commands.pod:55
31296 msgid "This echos the parameters to the terminal."
31297 msgstr ""
31298
31299 # type: =head2
31300 #. type: =head2
31301 #: ../fish/guestfish-commands.pod:57
31302 msgid "edit"
31303 msgstr ""
31304
31305 # type: =head2
31306 #. type: =head2
31307 #: ../fish/guestfish-commands.pod:59
31308 msgid "vi"
31309 msgstr ""
31310
31311 # type: =head2
31312 #. type: =head2
31313 #: ../fish/guestfish-commands.pod:61
31314 msgid "emacs"
31315 msgstr ""
31316
31317 # type: verbatim
31318 #. type: verbatim
31319 #: ../fish/guestfish-commands.pod:63
31320 #, no-wrap
31321 msgid ""
31322 " edit filename\n"
31323 "\n"
31324 msgstr ""
31325
31326 # type: textblock
31327 #. type: textblock
31328 #: ../fish/guestfish-commands.pod:65
31329 msgid ""
31330 "This is used to edit a file.  It downloads the file, edits it locally using "
31331 "your editor, then uploads the result."
31332 msgstr ""
31333
31334 # type: textblock
31335 #. type: textblock
31336 #: ../fish/guestfish-commands.pod:68
31337 msgid ""
31338 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31339 "or C<emacs> you will get those corresponding editors."
31340 msgstr ""
31341
31342 # type: =head2
31343 #. type: =head2
31344 #: ../fish/guestfish-commands.pod:72
31345 msgid "glob"
31346 msgstr ""
31347
31348 # type: verbatim
31349 #. type: verbatim
31350 #: ../fish/guestfish-commands.pod:74
31351 #, no-wrap
31352 msgid ""
31353 " glob command args...\n"
31354 "\n"
31355 msgstr ""
31356
31357 # type: textblock
31358 #. type: textblock
31359 #: ../fish/guestfish-commands.pod:76
31360 msgid ""
31361 "Expand wildcards in any paths in the args list, and run C<command> "
31362 "repeatedly on each matching path."
31363 msgstr ""
31364
31365 # type: textblock
31366 #. type: textblock
31367 #: ../fish/guestfish-commands.pod:79
31368 msgid "See L</WILDCARDS AND GLOBBING>."
31369 msgstr ""
31370
31371 # type: =head2
31372 #. type: =head2
31373 #: ../fish/guestfish-commands.pod:81
31374 msgid "hexedit"
31375 msgstr ""
31376
31377 # type: verbatim
31378 #. type: verbatim
31379 #: ../fish/guestfish-commands.pod:83
31380 #, no-wrap
31381 msgid ""
31382 " hexedit <filename|device>\n"
31383 " hexedit <filename|device> <max>\n"
31384 " hexedit <filename|device> <start> <max>\n"
31385 "\n"
31386 msgstr ""
31387
31388 # type: textblock
31389 #. type: textblock
31390 #: ../fish/guestfish-commands.pod:87
31391 msgid ""
31392 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
31393 "device."
31394 msgstr ""
31395
31396 # type: textblock
31397 #. type: textblock
31398 #: ../fish/guestfish-commands.pod:90
31399 msgid ""
31400 "This command works by downloading potentially the whole file or device, "
31401 "editing it locally, then uploading it.  If the file or device is large, you "
31402 "have to specify which part you wish to edit by using C<max> and/or C<start> "
31403 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
31404 "usual modifiers allowed such as C<1M> (1 megabyte)."
31405 msgstr ""
31406
31407 # type: textblock
31408 #. type: textblock
31409 #: ../fish/guestfish-commands.pod:97
31410 msgid "For example to edit the first few sectors of a disk you might do:"
31411 msgstr ""
31412
31413 # type: verbatim
31414 #. type: verbatim
31415 #: ../fish/guestfish-commands.pod:100
31416 #, no-wrap
31417 msgid ""
31418 " hexedit /dev/sda 1M\n"
31419 "\n"
31420 msgstr ""
31421
31422 # type: textblock
31423 #. type: textblock
31424 #: ../fish/guestfish-commands.pod:102
31425 msgid ""
31426 "which would allow you to edit anywhere within the first megabyte of the disk."
31427 msgstr ""
31428
31429 # type: textblock
31430 #. type: textblock
31431 #: ../fish/guestfish-commands.pod:105
31432 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
31433 msgstr ""
31434
31435 # type: verbatim
31436 #. type: verbatim
31437 #: ../fish/guestfish-commands.pod:107
31438 #, no-wrap
31439 msgid ""
31440 " hexedit /dev/sda1 0x400 0x400\n"
31441 "\n"
31442 msgstr ""
31443
31444 # type: textblock
31445 #. type: textblock
31446 #: ../fish/guestfish-commands.pod:109
31447 msgid "(assuming the superblock is in the standard location)."
31448 msgstr ""
31449
31450 # type: textblock
31451 #. type: textblock
31452 #: ../fish/guestfish-commands.pod:111
31453 msgid ""
31454 "This command requires the external L<hexedit(1)> program.  You can specify "
31455 "another program to use by setting the C<HEXEDITOR> environment variable."
31456 msgstr ""
31457
31458 # type: textblock
31459 #. type: textblock
31460 #: ../fish/guestfish-commands.pod:115
31461 msgid "See also L</hexdump>."
31462 msgstr ""
31463
31464 # type: =head2
31465 #. type: =head2
31466 #: ../fish/guestfish-commands.pod:117
31467 msgid "lcd"
31468 msgstr ""
31469
31470 # type: verbatim
31471 #. type: verbatim
31472 #: ../fish/guestfish-commands.pod:119
31473 #, no-wrap
31474 msgid ""
31475 " lcd directory\n"
31476 "\n"
31477 msgstr ""
31478
31479 # type: textblock
31480 #. type: textblock
31481 #: ../fish/guestfish-commands.pod:121
31482 msgid ""
31483 "Change the local directory, ie. the current directory of guestfish itself."
31484 msgstr ""
31485
31486 # type: textblock
31487 #. type: textblock
31488 #: ../fish/guestfish-commands.pod:124
31489 msgid "Note that C<!cd> won't do what you might expect."
31490 msgstr ""
31491
31492 # type: =head2
31493 #. type: =head2
31494 #: ../fish/guestfish-commands.pod:126
31495 msgid "man"
31496 msgstr ""
31497
31498 # type: =head2
31499 #. type: =head2
31500 #: ../fish/guestfish-commands.pod:128
31501 msgid "manual"
31502 msgstr ""
31503
31504 # type: verbatim
31505 #. type: verbatim
31506 #: ../fish/guestfish-commands.pod:130
31507 #, no-wrap
31508 msgid ""
31509 "  man\n"
31510 "\n"
31511 msgstr ""
31512
31513 # type: textblock
31514 #. type: textblock
31515 #: ../fish/guestfish-commands.pod:132
31516 msgid "Opens the manual page for guestfish."
31517 msgstr ""
31518
31519 # type: =head2
31520 #. type: =head2
31521 #: ../fish/guestfish-commands.pod:134
31522 msgid "more"
31523 msgstr ""
31524
31525 # type: =head2
31526 #. type: =head2
31527 #: ../fish/guestfish-commands.pod:136
31528 msgid "less"
31529 msgstr ""
31530
31531 # type: verbatim
31532 #. type: verbatim
31533 #: ../fish/guestfish-commands.pod:138
31534 #, no-wrap
31535 msgid ""
31536 " more filename\n"
31537 "\n"
31538 msgstr ""
31539
31540 # type: verbatim
31541 #. type: verbatim
31542 #: ../fish/guestfish-commands.pod:140
31543 #, no-wrap
31544 msgid ""
31545 " less filename\n"
31546 "\n"
31547 msgstr ""
31548
31549 # type: textblock
31550 #. type: textblock
31551 #: ../fish/guestfish-commands.pod:142
31552 msgid "This is used to view a file."
31553 msgstr ""
31554
31555 # type: textblock
31556 #. type: textblock
31557 #: ../fish/guestfish-commands.pod:144
31558 msgid ""
31559 "The default viewer is C<$PAGER>.  However if you use the alternate command "
31560 "C<less> you will get the C<less> command specifically."
31561 msgstr ""
31562
31563 # type: =head2
31564 #. type: =head2
31565 #: ../fish/guestfish-commands.pod:147
31566 msgid "reopen"
31567 msgstr ""
31568
31569 # type: verbatim
31570 #. type: verbatim
31571 #: ../fish/guestfish-commands.pod:149
31572 #, no-wrap
31573 msgid ""
31574 "  reopen\n"
31575 "\n"
31576 msgstr ""
31577
31578 # type: textblock
31579 #. type: textblock
31580 #: ../fish/guestfish-commands.pod:151
31581 msgid ""
31582 "Close and reopen the libguestfs handle.  It is not necessary to use this "
31583 "normally, because the handle is closed properly when guestfish exits.  "
31584 "However this is occasionally useful for testing."
31585 msgstr ""
31586
31587 # type: =head2
31588 #. type: =head2
31589 #: ../fish/guestfish-commands.pod:155
31590 msgid "sparse"
31591 msgstr ""
31592
31593 # type: verbatim
31594 #. type: verbatim
31595 #: ../fish/guestfish-commands.pod:157
31596 #, no-wrap
31597 msgid ""
31598 " sparse filename size\n"
31599 "\n"
31600 msgstr ""
31601
31602 # type: textblock
31603 #. type: textblock
31604 #: ../fish/guestfish-commands.pod:159
31605 msgid ""
31606 "This creates an empty sparse file of the given size, and then adds so it can "
31607 "be further examined."
31608 msgstr ""
31609
31610 # type: textblock
31611 #. type: textblock
31612 #: ../fish/guestfish-commands.pod:162
31613 msgid ""
31614 "In all respects it works the same as the L</alloc> command, except that the "
31615 "image file is allocated sparsely, which means that disk blocks are not "
31616 "assigned to the file until they are needed.  Sparse disk files only use "
31617 "space when written to, but they are slower and there is a danger you could "
31618 "run out of real disk space during a write operation."
31619 msgstr ""
31620
31621 # type: =head2
31622 #. type: =head2
31623 #: ../fish/guestfish-commands.pod:172
31624 msgid "supported"
31625 msgstr ""
31626
31627 # type: verbatim
31628 #. type: verbatim
31629 #: ../fish/guestfish-commands.pod:174
31630 #, no-wrap
31631 msgid ""
31632 " supported\n"
31633 "\n"
31634 msgstr ""
31635
31636 # type: textblock
31637 #. type: textblock
31638 #: ../fish/guestfish-commands.pod:176
31639 msgid ""
31640 "This command returns a list of the optional groups known to the daemon, and "
31641 "indicates which ones are supported by this build of the libguestfs appliance."
31642 msgstr ""
31643
31644 # type: textblock
31645 #. type: textblock
31646 #: ../fish/guestfish-commands.pod:180
31647 msgid "See also L<guestfs(3)/AVAILABILITY>."
31648 msgstr ""
31649
31650 # type: =head2
31651 #. type: =head2
31652 #: ../fish/guestfish-commands.pod:182
31653 msgid "time"
31654 msgstr ""
31655
31656 # type: verbatim
31657 #. type: verbatim
31658 #: ../fish/guestfish-commands.pod:184
31659 #, no-wrap
31660 msgid ""
31661 " time command args...\n"
31662 "\n"
31663 msgstr ""
31664
31665 # type: textblock
31666 #. type: textblock
31667 #: ../fish/guestfish-commands.pod:186
31668 msgid ""
31669 "Run the command as usual, but print the elapsed time afterwards.  This can "
31670 "be useful for benchmarking operations."
31671 msgstr ""
31672
31673 # type: textblock
31674 #. type: textblock
31675 #: ../test-tool/libguestfs-test-tool.pod:5
31676 msgid "libguestfs-test-tool - End user tests for libguestfs"
31677 msgstr ""
31678
31679 # type: verbatim
31680 #. type: verbatim
31681 #: ../test-tool/libguestfs-test-tool.pod:9
31682 #, no-wrap
31683 msgid ""
31684 " libguestfs-test-tool [--options]\n"
31685 "\n"
31686 msgstr ""
31687
31688 # type: textblock
31689 #. type: textblock
31690 #: ../test-tool/libguestfs-test-tool.pod:13
31691 msgid ""
31692 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
31693 "and developers, to allow them to check basic libguestfs functionality is "
31694 "working.  This is needed because libguestfs occasionally breaks for reasons "
31695 "beyond our control: usually because of changes in the underlying qemu or "
31696 "kernel packages, or the host environment."
31697 msgstr ""
31698
31699 # type: textblock
31700 #. type: textblock
31701 #: ../test-tool/libguestfs-test-tool.pod:20
31702 msgid "If you suspect a problem in libguestfs, then just run:"
31703 msgstr ""
31704
31705 # type: verbatim
31706 #. type: verbatim
31707 #: ../test-tool/libguestfs-test-tool.pod:22
31708 #, no-wrap
31709 msgid ""
31710 " libguestfs-test-tool\n"
31711 "\n"
31712 msgstr ""
31713
31714 # type: textblock
31715 #. type: textblock
31716 #: ../test-tool/libguestfs-test-tool.pod:24
31717 msgid "It will print lots of diagnostic messages."
31718 msgstr ""
31719
31720 # type: textblock
31721 #. type: textblock
31722 #: ../test-tool/libguestfs-test-tool.pod:26
31723 msgid "If it runs to completion successfully, you will see this near the end:"
31724 msgstr ""
31725
31726 # type: verbatim
31727 #. type: verbatim
31728 #: ../test-tool/libguestfs-test-tool.pod:28
31729 #, no-wrap
31730 msgid ""
31731 " ===== TEST FINISHED OK =====\n"
31732 "\n"
31733 msgstr ""
31734
31735 # type: textblock
31736 #. type: textblock
31737 #: ../test-tool/libguestfs-test-tool.pod:30
31738 msgid "and the test tool will exit with code 0."
31739 msgstr ""
31740
31741 # type: textblock
31742 #. type: textblock
31743 #: ../test-tool/libguestfs-test-tool.pod:32
31744 msgid ""
31745 "If it fails (and/or exits with non-zero error code), please paste the "
31746 "B<complete, unedited> output of the test tool into a bug report.  More "
31747 "information about reporting bugs can be found on the L<http://libguestfs.org/"
31748 "> website."
31749 msgstr ""
31750
31751 # type: =item
31752 #. type: =item
31753 #: ../test-tool/libguestfs-test-tool.pod:41
31754 msgid "I<--help>"
31755 msgstr ""
31756
31757 # type: textblock
31758 #. type: textblock
31759 #: ../test-tool/libguestfs-test-tool.pod:43
31760 msgid "Display short usage information and exit."
31761 msgstr ""
31762
31763 # type: =item
31764 #. type: =item
31765 #: ../test-tool/libguestfs-test-tool.pod:45
31766 msgid "I<--qemu qemu_binary>"
31767 msgstr ""
31768
31769 # type: textblock
31770 #. type: textblock
31771 #: ../test-tool/libguestfs-test-tool.pod:47
31772 msgid ""
31773 "If you have downloaded another qemu binary, point this option at the full "
31774 "path of the binary to try it."
31775 msgstr ""
31776
31777 # type: =item
31778 #. type: =item
31779 #: ../test-tool/libguestfs-test-tool.pod:50
31780 msgid "I<--qemudir qemu_source_dir>"
31781 msgstr ""
31782
31783 # type: textblock
31784 #. type: textblock
31785 #: ../test-tool/libguestfs-test-tool.pod:52
31786 msgid ""
31787 "If you have compiled qemu from source, point this option at the source "
31788 "directory to try it."
31789 msgstr ""
31790
31791 # type: =item
31792 #. type: =item
31793 #: ../test-tool/libguestfs-test-tool.pod:55
31794 msgid "I<--timeout N>"
31795 msgstr ""
31796
31797 # type: textblock
31798 #. type: textblock
31799 #: ../test-tool/libguestfs-test-tool.pod:57
31800 msgid ""
31801 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
31802 "does not usually need to be adjusted unless your machine is very slow."
31803 msgstr ""
31804
31805 # type: =head1
31806 #. type: =head1
31807 #: ../test-tool/libguestfs-test-tool.pod:63
31808 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
31809 msgstr ""
31810
31811 # type: textblock
31812 #. type: textblock
31813 #: ../test-tool/libguestfs-test-tool.pod:65
31814 msgid ""
31815 "If you have compiled another version of qemu from source and would like to "
31816 "try that, then you can use the I<--qemudir> option to point to the qemu "
31817 "source directory."
31818 msgstr ""
31819
31820 # type: textblock
31821 #. type: textblock
31822 #: ../test-tool/libguestfs-test-tool.pod:69
31823 msgid ""
31824 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
31825 "option to point to the binary."
31826 msgstr ""
31827
31828 # type: textblock
31829 #. type: textblock
31830 #: ../test-tool/libguestfs-test-tool.pod:72
31831 msgid ""
31832 "When using an alternate qemu with libguestfs, usually you would need to "
31833 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
31834 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
31835 "use either of the I<--qemudir> or I<--qemu> options."
31836 msgstr ""
31837
31838 # type: textblock
31839 #. type: textblock
31840 #: ../test-tool/libguestfs-test-tool.pod:79
31841 msgid ""
31842 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
31843 "I<1> if there was an error."
31844 msgstr ""
31845
31846 # type: textblock
31847 #. type: textblock
31848 #: ../test-tool/libguestfs-test-tool.pod:84
31849 msgid ""
31850 "For the full list of environment variables which may affect libguestfs, "
31851 "please see the L<guestfs(3)> manual page."
31852 msgstr ""
31853
31854 # type: textblock
31855 #. type: textblock
31856 #: ../test-tool/libguestfs-test-tool.pod:89
31857 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
31858 msgstr ""
31859
31860 # type: textblock
31861 #. type: textblock
31862 #: ../fuse/guestmount.pod:5
31863 msgid ""
31864 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
31865 msgstr ""
31866
31867 # type: verbatim
31868 #. type: verbatim
31869 #: ../fuse/guestmount.pod:9
31870 #, no-wrap
31871 msgid ""
31872 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
31873 "\n"
31874 msgstr ""
31875
31876 # type: verbatim
31877 #. type: verbatim
31878 #: ../fuse/guestmount.pod:11
31879 #, no-wrap
31880 msgid ""
31881 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
31882 "\n"
31883 msgstr ""
31884
31885 # type: verbatim
31886 #. type: verbatim
31887 #: ../fuse/guestmount.pod:13
31888 #, no-wrap
31889 msgid ""
31890 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
31891 "\n"
31892 msgstr ""
31893
31894 # type: textblock
31895 #. type: textblock
31896 #: ../fuse/guestmount.pod:17
31897 msgid ""
31898 "You must I<not> use C<guestmount> in read-write mode on live virtual "
31899 "machines.  If you do this, you risk disk corruption in the VM."
31900 msgstr ""
31901
31902 # type: textblock
31903 #. type: textblock
31904 #: ../fuse/guestmount.pod:22
31905 msgid ""
31906 "The guestmount program can be used to mount virtual machine filesystems and "
31907 "other disk images on the host.  It uses libguestfs for access to the guest "
31908 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31909 "a mountable device."
31910 msgstr ""
31911
31912 # type: textblock
31913 #. type: textblock
31914 #: ../fuse/guestmount.pod:27
31915 msgid ""
31916 "Along with other options, you have to give at least one device (I<-a> "
31917 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31918 "option) or use the I<-i> inspection option.  How this works is better "
31919 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31920 "below."
31921 msgstr ""
31922
31923 # type: textblock
31924 #. type: textblock
31925 #: ../fuse/guestmount.pod:33
31926 msgid ""
31927 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31928 "by you, and the filesystem will not be visible to any other users unless you "
31929 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31930 "the filesystem, use the C<fusermount -u> command."
31931 msgstr ""
31932
31933 # type: textblock
31934 #. type: textblock
31935 #: ../fuse/guestmount.pod:41
31936 msgid ""
31937 "For a typical Windows guest which has its main filesystem on the first "
31938 "partition:"
31939 msgstr ""
31940
31941 # type: verbatim
31942 #. type: verbatim
31943 #: ../fuse/guestmount.pod:44
31944 #, no-wrap
31945 msgid ""
31946 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31947 "\n"
31948 msgstr ""
31949
31950 # type: textblock
31951 #. type: textblock
31952 #: ../fuse/guestmount.pod:46
31953 msgid ""
31954 "For a typical Linux guest which has a /boot filesystem on the first "
31955 "partition, and the root filesystem on a logical volume:"
31956 msgstr ""
31957
31958 # type: verbatim
31959 #. type: verbatim
31960 #: ../fuse/guestmount.pod:49
31961 #, no-wrap
31962 msgid ""
31963 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31964 "\n"
31965 msgstr ""
31966
31967 # type: textblock
31968 #. type: textblock
31969 #: ../fuse/guestmount.pod:51
31970 msgid "To get libguestfs to detect guest mountpoints for you:"
31971 msgstr ""
31972
31973 # type: verbatim
31974 #. type: verbatim
31975 #: ../fuse/guestmount.pod:53
31976 #, no-wrap
31977 msgid ""
31978 " guestmount -a guest.img -i --ro /mnt\n"
31979 "\n"
31980 msgstr ""
31981
31982 # type: textblock
31983 #. type: textblock
31984 #: ../fuse/guestmount.pod:55
31985 msgid "For a libvirt guest called \"Guest\" you could do:"
31986 msgstr ""
31987
31988 # type: verbatim
31989 #. type: verbatim
31990 #: ../fuse/guestmount.pod:57
31991 #, no-wrap
31992 msgid ""
31993 " guestmount -d Guest -i --ro /mnt\n"
31994 "\n"
31995 msgstr ""
31996
31997 # type: textblock
31998 #. type: textblock
31999 #: ../fuse/guestmount.pod:59
32000 msgid ""
32001 "If you don't know what filesystems are contained in a guest or disk image, "
32002 "use L<virt-filesystems(1)> first:"
32003 msgstr ""
32004
32005 # type: verbatim
32006 #. type: verbatim
32007 #: ../fuse/guestmount.pod:62
32008 #, no-wrap
32009 msgid ""
32010 " virt-filesystems MyGuest\n"
32011 "\n"
32012 msgstr ""
32013
32014 # type: textblock
32015 #. type: textblock
32016 #: ../fuse/guestmount.pod:64
32017 msgid ""
32018 "If you want to trace the libguestfs calls but without excessive debugging "
32019 "information, we recommend:"
32020 msgstr ""
32021
32022 # type: verbatim
32023 #. type: verbatim
32024 #: ../fuse/guestmount.pod:67
32025 #, no-wrap
32026 msgid ""
32027 " guestmount [...] --trace /mnt\n"
32028 "\n"
32029 msgstr ""
32030
32031 # type: textblock
32032 #. type: textblock
32033 #: ../fuse/guestmount.pod:69
32034 msgid "If you want to debug the program, we recommend:"
32035 msgstr ""
32036
32037 # type: verbatim
32038 #. type: verbatim
32039 #: ../fuse/guestmount.pod:71
32040 #, no-wrap
32041 msgid ""
32042 " guestmount [...] --trace --verbose /mnt\n"
32043 "\n"
32044 msgstr ""
32045
32046 # type: =item
32047 #. type: =item
32048 #: ../fuse/guestmount.pod:77
32049 msgid "B<-a image> | B<--add image>"
32050 msgstr ""
32051
32052 # type: textblock
32053 #. type: textblock
32054 #: ../fuse/guestmount.pod:79
32055 msgid "Add a block device or virtual machine image."
32056 msgstr ""
32057
32058 # type: =item
32059 #. type: =item
32060 #: ../fuse/guestmount.pod:84
32061 msgid "B<-c URI> | B<--connect URI>"
32062 msgstr ""
32063
32064 # type: =item
32065 #. type: =item
32066 #: ../fuse/guestmount.pod:90
32067 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
32068 msgstr ""
32069
32070 # type: =item
32071 #. type: =item
32072 #: ../fuse/guestmount.pod:96
32073 msgid "B<--dir-cache-timeout N>"
32074 msgstr ""
32075
32076 # type: textblock
32077 #. type: textblock
32078 #: ../fuse/guestmount.pod:98
32079 msgid ""
32080 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
32081 "seconds.  The readdir cache [actually, there are several semi-independent "
32082 "caches] is populated after a readdir(2) call with the stat and extended "
32083 "attributes of the files in the directory, in anticipation that they will be "
32084 "requested soon after."
32085 msgstr ""
32086
32087 # type: textblock
32088 #. type: textblock
32089 #: ../fuse/guestmount.pod:104
32090 msgid ""
32091 "There is also a different attribute cache implemented by FUSE (see the FUSE "
32092 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
32093 "requests, only cache existing ones."
32094 msgstr ""
32095
32096 # type: =item
32097 #. type: =item
32098 #: ../fuse/guestmount.pod:115
32099 msgid "B<--format=raw|qcow2|..> | B<--format>"
32100 msgstr ""
32101
32102 # type: textblock
32103 #. type: textblock
32104 #: ../fuse/guestmount.pod:122
32105 msgid ""
32106 "If you have untrusted raw-format guest disk images, you should use this "
32107 "option to specify the disk format.  This avoids a possible security problem "
32108 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
32109 "guestfs_add_drive_opts>."
32110 msgstr ""
32111
32112 # type: =item
32113 #. type: =item
32114 #: ../fuse/guestmount.pod:127
32115 msgid "B<--fuse-help>"
32116 msgstr ""
32117
32118 # type: textblock
32119 #. type: textblock
32120 #: ../fuse/guestmount.pod:129
32121 msgid "Display help on special FUSE options (see I<-o> below)."
32122 msgstr ""
32123
32124 # type: textblock
32125 #. type: textblock
32126 #: ../fuse/guestmount.pod:133
32127 msgid "Display brief help and exit."
32128 msgstr ""
32129
32130 # type: =item
32131 #. type: =item
32132 #: ../fuse/guestmount.pod:135
32133 msgid "B<-i> | B<--inspector>"
32134 msgstr ""
32135
32136 # type: textblock
32137 #. type: textblock
32138 #: ../fuse/guestmount.pod:155
32139 msgid ""
32140 "Mount the named partition or logical volume on the given mountpoint B<in the "
32141 "guest> (this has nothing to do with mountpoints in the host)."
32142 msgstr ""
32143
32144 # type: textblock
32145 #. type: textblock
32146 #: ../fuse/guestmount.pod:158
32147 msgid ""
32148 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
32149 "something on C</>."
32150 msgstr ""
32151
32152 # type: =item
32153 #. type: =item
32154 #: ../fuse/guestmount.pod:171
32155 msgid "B<-n> | B<--no-sync>"
32156 msgstr ""
32157
32158 # type: textblock
32159 #. type: textblock
32160 #: ../fuse/guestmount.pod:173
32161 msgid ""
32162 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
32163 "unmounted.  If you specify this option, then we don't attempt to sync the "
32164 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
32165 msgstr ""
32166
32167 # type: =item
32168 #. type: =item
32169 #: ../fuse/guestmount.pod:178
32170 msgid "B<-o option> | B<--option option>"
32171 msgstr ""
32172
32173 # type: textblock
32174 #. type: textblock
32175 #: ../fuse/guestmount.pod:180
32176 msgid "Pass extra options to FUSE."
32177 msgstr ""
32178
32179 # type: textblock
32180 #. type: textblock
32181 #: ../fuse/guestmount.pod:182
32182 msgid ""
32183 "To get a list of all the extra options supported by FUSE, use the command "
32184 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32185 "of them are a good idea."
32186 msgstr ""
32187
32188 # type: verbatim
32189 #. type: verbatim
32190 #: ../fuse/guestmount.pod:186
32191 #, no-wrap
32192 msgid ""
32193 " guestmount --fuse-help\n"
32194 "\n"
32195 msgstr ""
32196
32197 # type: textblock
32198 #. type: textblock
32199 #: ../fuse/guestmount.pod:188
32200 msgid "Some potentially useful FUSE options:"
32201 msgstr ""
32202
32203 # type: =item
32204 #. type: =item
32205 #: ../fuse/guestmount.pod:192
32206 msgid "B<-o allow_other>"
32207 msgstr ""
32208
32209 # type: textblock
32210 #. type: textblock
32211 #: ../fuse/guestmount.pod:194
32212 msgid "Allow other users to see the filesystem."
32213 msgstr ""
32214
32215 # type: =item
32216 #. type: =item
32217 #: ../fuse/guestmount.pod:196
32218 msgid "B<-o attr_timeout=N>"
32219 msgstr ""
32220
32221 # type: textblock
32222 #. type: textblock
32223 #: ../fuse/guestmount.pod:198
32224 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32225 msgstr ""
32226
32227 # type: =item
32228 #. type: =item
32229 #: ../fuse/guestmount.pod:200
32230 msgid "B<-o kernel_cache>"
32231 msgstr ""
32232
32233 # type: textblock
32234 #. type: textblock
32235 #: ../fuse/guestmount.pod:202
32236 msgid ""
32237 "Allow the kernel to cache files (reduces the number of reads that have to go "
32238 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32239 "afford the extra memory usage."
32240 msgstr ""
32241
32242 # type: =item
32243 #. type: =item
32244 #: ../fuse/guestmount.pod:206
32245 msgid "B<-o uid=N> B<-o gid=N>"
32246 msgstr ""
32247
32248 # type: textblock
32249 #. type: textblock
32250 #: ../fuse/guestmount.pod:208
32251 msgid ""
32252 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32253 "the chosen values."
32254 msgstr ""
32255
32256 # type: =item
32257 #. type: =item
32258 #: ../fuse/guestmount.pod:213
32259 msgid "B<-r> | B<--ro>"
32260 msgstr ""
32261
32262 # type: textblock
32263 #. type: textblock
32264 #: ../fuse/guestmount.pod:215
32265 msgid ""
32266 "Add devices and mount everything read-only.  Also disallow writes and make "
32267 "the disk appear read-only to FUSE."
32268 msgstr ""
32269
32270 # type: textblock
32271 #. type: textblock
32272 #: ../fuse/guestmount.pod:218
32273 msgid ""
32274 "This is highly recommended if you are not going to edit the guest disk.  If "
32275 "the guest is running and this option is I<not> supplied, then there is a "
32276 "strong risk of disk corruption in the guest.  We try to prevent this from "
32277 "happening, but it is not always possible."
32278 msgstr ""
32279
32280 # type: textblock
32281 #. type: textblock
32282 #: ../fuse/guestmount.pod:223
32283 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32284 msgstr ""
32285
32286 # type: textblock
32287 #. type: textblock
32288 #: ../fuse/guestmount.pod:227
32289 msgid "Enable SELinux support for the guest."
32290 msgstr ""
32291
32292 # type: =item
32293 #. type: =item
32294 #: ../fuse/guestmount.pod:229
32295 msgid "B<-v> | B<--verbose>"
32296 msgstr ""
32297
32298 # type: textblock
32299 #. type: textblock
32300 #: ../fuse/guestmount.pod:231
32301 msgid "Enable verbose messages from underlying libguestfs."
32302 msgstr ""
32303
32304 # type: =item
32305 #. type: =item
32306 #: ../fuse/guestmount.pod:233
32307 msgid "B<-V> | B<--version>"
32308 msgstr ""
32309
32310 # type: textblock
32311 #. type: textblock
32312 #: ../fuse/guestmount.pod:235
32313 msgid "Display the program version and exit."
32314 msgstr ""
32315
32316 # type: =item
32317 #. type: =item
32318 #: ../fuse/guestmount.pod:237
32319 msgid "B<-w> | B<--rw>"
32320 msgstr ""
32321
32322 #. type: textblock
32323 #: ../fuse/guestmount.pod:242 ../fuse/guestmount.pod:263
32324 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32325 msgstr ""
32326
32327 # type: =item
32328 #. type: =item
32329 #: ../fuse/guestmount.pod:244
32330 msgid "B<-x> | B<--trace>"
32331 msgstr ""
32332
32333 # type: textblock
32334 #. type: textblock
32335 #: ../fuse/guestmount.pod:246
32336 msgid "Trace libguestfs calls and entry into each FUSE function."
32337 msgstr ""
32338
32339 # type: textblock
32340 #. type: textblock
32341 #: ../fuse/guestmount.pod:248
32342 msgid "This also stops the daemon from forking into the background."
32343 msgstr ""
32344
32345 # type: textblock
32346 #. type: textblock
32347 #: ../fuse/guestmount.pod:269
32348 msgid ""
32349 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32350 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
32351 "net/>."
32352 msgstr ""
32353
32354 # type: textblock
32355 #. type: textblock
32356 #: ../fuse/guestmount.pod:284
32357 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
32358 msgstr ""
32359
32360 # type: textblock
32361 #. type: textblock
32362 #: ../tools/virt-edit.pl:34
32363 msgid "virt-edit - Edit a file in a virtual machine"
32364 msgstr ""
32365
32366 # type: verbatim
32367 #. type: verbatim
32368 #: ../tools/virt-edit.pl:38
32369 #, no-wrap
32370 msgid ""
32371 " virt-edit [--options] domname file\n"
32372 "\n"
32373 msgstr ""
32374
32375 # type: verbatim
32376 #. type: verbatim
32377 #: ../tools/virt-edit.pl:40
32378 #, no-wrap
32379 msgid ""
32380 " virt-edit [--options] disk.img [disk.img ...] file\n"
32381 "\n"
32382 msgstr ""
32383
32384 # type: verbatim
32385 #. type: verbatim
32386 #: ../tools/virt-edit.pl:42
32387 #, no-wrap
32388 msgid ""
32389 " virt-edit [domname|disk.img] file -e 'expr'\n"
32390 "\n"
32391 msgstr ""
32392
32393 # type: textblock
32394 #. type: textblock
32395 #: ../tools/virt-edit.pl:46
32396 msgid ""
32397 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
32398 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
32399 "doing this, but doesn't catch all cases."
32400 msgstr ""
32401
32402 # type: textblock
32403 #. type: textblock
32404 #: ../tools/virt-edit.pl:52
32405 msgid ""
32406 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
32407 "the named virtual machine (or disk image)."
32408 msgstr ""
32409
32410 #. type: textblock
32411 #: ../tools/virt-edit.pl:55
32412 msgid "If you want to just view a file, use L<virt-cat(1)>."
32413 msgstr ""
32414
32415 #. type: textblock
32416 #: ../tools/virt-edit.pl:57
32417 msgid ""
32418 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
32419 "USING GUESTFISH> below)."
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../tools/virt-edit.pl:60
32424 msgid ""
32425 "C<virt-edit> cannot be used to create a new file, nor to edit multiple "
32426 "files.  L<guestfish(1)> can do that and much more."
32427 msgstr ""
32428
32429 # type: textblock
32430 #. type: textblock
32431 #: ../tools/virt-edit.pl:65
32432 msgid "Edit the named files interactively:"
32433 msgstr ""
32434
32435 # type: verbatim
32436 #. type: verbatim
32437 #: ../tools/virt-edit.pl:67
32438 #, no-wrap
32439 msgid ""
32440 " virt-edit mydomain /boot/grub/grub.conf\n"
32441 "\n"
32442 msgstr ""
32443
32444 # type: verbatim
32445 #. type: verbatim
32446 #: ../tools/virt-edit.pl:69
32447 #, no-wrap
32448 msgid ""
32449 " virt-edit mydomain /etc/passwd\n"
32450 "\n"
32451 msgstr ""
32452
32453 #. type: textblock
32454 #: ../tools/virt-edit.pl:71
32455 msgid "For Windows guests, some Windows paths are understood:"
32456 msgstr ""
32457
32458 #. type: verbatim
32459 #: ../tools/virt-edit.pl:73
32460 #, no-wrap
32461 msgid ""
32462 " virt-edit mywindomain 'c:\\autoexec.bat'\n"
32463 "\n"
32464 msgstr ""
32465
32466 # type: textblock
32467 #. type: textblock
32468 #: ../tools/virt-edit.pl:75
32469 msgid ""
32470 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
32471 "below).  To change the init default level to 5:"
32472 msgstr ""
32473
32474 # type: verbatim
32475 #. type: verbatim
32476 #: ../tools/virt-edit.pl:79
32477 #, no-wrap
32478 msgid ""
32479 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
32480 "\n"
32481 msgstr ""
32482
32483 # type: textblock
32484 #. type: textblock
32485 #: ../tools/virt-edit.pl:91 ../tools/virt-win-reg.pl:106
32486 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
32487 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
32488 msgid "Display brief help."
32489 msgstr ""
32490
32491 # type: textblock
32492 #. type: textblock
32493 #: ../tools/virt-edit.pl:99 ../tools/virt-win-reg.pl:114
32494 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:121
32495 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
32496 msgid "Display version number and exit."
32497 msgstr ""
32498
32499 # type: =item
32500 #. type: =item
32501 #: ../tools/virt-edit.pl:105
32502 msgid "B<--backup extension> | B<-b extension>"
32503 msgstr ""
32504
32505 # type: textblock
32506 #. type: textblock
32507 #: ../tools/virt-edit.pl:107
32508 msgid ""
32509 "Create a backup of the original file I<in the guest disk image>.  The backup "
32510 "has the original filename with C<extension> added."
32511 msgstr ""
32512
32513 # type: textblock
32514 #. type: textblock
32515 #: ../tools/virt-edit.pl:110
32516 msgid ""
32517 "Usually the first character of C<extension> would be a dot C<.> so you would "
32518 "write:"
32519 msgstr ""
32520
32521 # type: verbatim
32522 #. type: verbatim
32523 #: ../tools/virt-edit.pl:113
32524 #, no-wrap
32525 msgid ""
32526 " virt-edit -b .orig [etc]\n"
32527 "\n"
32528 msgstr ""
32529
32530 # type: textblock
32531 #. type: textblock
32532 #: ../tools/virt-edit.pl:115
32533 msgid "By default, no backup file is made."
32534 msgstr ""
32535
32536 # type: =item
32537 #. type: =item
32538 #: ../tools/virt-edit.pl:121 ../tools/virt-win-reg.pl:128
32539 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
32540 #: ../tools/virt-list-partitions.pl:78
32541 msgid "B<--connect URI> | B<-c URI>"
32542 msgstr ""
32543
32544 # type: textblock
32545 #. type: textblock
32546 #: ../tools/virt-edit.pl:123 ../tools/virt-win-reg.pl:130
32547 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
32548 #: ../tools/virt-list-partitions.pl:80
32549 msgid ""
32550 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
32551 "to the default libvirt hypervisor."
32552 msgstr ""
32553
32554 # type: textblock
32555 #. type: textblock
32556 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:133
32557 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
32558 #: ../tools/virt-list-partitions.pl:83
32559 msgid ""
32560 "If you specify guest block devices directly, then libvirt is not used at all."
32561 msgstr ""
32562
32563 # type: =item
32564 #. type: =item
32565 #: ../tools/virt-edit.pl:133 ../tools/virt-win-reg.pl:140
32566 #: ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:139
32567 #: ../tools/virt-list-partitions.pl:90
32568 msgid "B<--format> raw"
32569 msgstr ""
32570
32571 # type: textblock
32572 #. type: textblock
32573 #: ../tools/virt-edit.pl:135 ../tools/virt-win-reg.pl:142
32574 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
32575 #: ../tools/virt-list-partitions.pl:92
32576 msgid ""
32577 "Specify the format of disk images given on the command line.  If this is "
32578 "omitted then the format is autodetected from the content of the disk image."
32579 msgstr ""
32580
32581 # type: textblock
32582 #. type: textblock
32583 #: ../tools/virt-edit.pl:139 ../tools/virt-win-reg.pl:146
32584 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
32585 #: ../tools/virt-list-partitions.pl:96
32586 msgid ""
32587 "If disk images are requested from libvirt, then this program asks libvirt "
32588 "for this information.  In this case, the value of the format parameter is "
32589 "ignored."
32590 msgstr ""
32591
32592 # type: textblock
32593 #. type: textblock
32594 #: ../tools/virt-edit.pl:143 ../tools/virt-win-reg.pl:150
32595 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
32596 #: ../tools/virt-list-partitions.pl:100
32597 msgid ""
32598 "If working with untrusted raw-format guest disk images, you should ensure "
32599 "the format is always specified."
32600 msgstr ""
32601
32602 # type: =item
32603 #. type: =item
32604 #: ../tools/virt-edit.pl:150
32605 msgid "B<--expr EXPR> | B<-e EXPR>"
32606 msgstr ""
32607
32608 # type: textblock
32609 #. type: textblock
32610 #: ../tools/virt-edit.pl:152
32611 msgid ""
32612 "Instead of launching the external editor, non-interactively apply the Perl "
32613 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
32614 "EDITING> below."
32615 msgstr ""
32616
32617 # type: textblock
32618 #. type: textblock
32619 #: ../tools/virt-edit.pl:156
32620 msgid ""
32621 "Be careful to properly quote the expression to prevent it from being altered "
32622 "by the shell."
32623 msgstr ""
32624
32625 # type: =head1
32626 #. type: =head1
32627 #: ../tools/virt-edit.pl:280
32628 msgid "NON-INTERACTIVE EDITING"
32629 msgstr ""
32630
32631 # type: textblock
32632 #. type: textblock
32633 #: ../tools/virt-edit.pl:282
32634 msgid ""
32635 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
32636 "administrator can interactively edit the file."
32637 msgstr ""
32638
32639 # type: textblock
32640 #. type: textblock
32641 #: ../tools/virt-edit.pl:285
32642 msgid ""
32643 "There are two ways also to use C<virt-edit> from scripts in order to make "
32644 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
32645 "like this, it's less error-prone to write scripts directly using the "
32646 "libguestfs API and Augeas for configuration file editing.)"
32647 msgstr ""
32648
32649 # type: textblock
32650 #. type: textblock
32651 #: ../tools/virt-edit.pl:291
32652 msgid ""
32653 "The first method is to temporarily set C<$EDITOR> to any script or program "
32654 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
32655 "update C<tmpfile> in place however it likes."
32656 msgstr ""
32657
32658 # type: textblock
32659 #. type: textblock
32660 #: ../tools/virt-edit.pl:295
32661 msgid ""
32662 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
32663 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
32664 "instances of C<foo> with C<bar> in a file:"
32665 msgstr ""
32666
32667 # type: verbatim
32668 #. type: verbatim
32669 #: ../tools/virt-edit.pl:299
32670 #, no-wrap
32671 msgid ""
32672 " virt-edit domname filename -e 's/foo/bar/'\n"
32673 "\n"
32674 msgstr ""
32675
32676 # type: textblock
32677 #. type: textblock
32678 #: ../tools/virt-edit.pl:301
32679 msgid ""
32680 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
32681 "For example to delete root's password you could do:"
32682 msgstr ""
32683
32684 # type: verbatim
32685 #. type: verbatim
32686 #: ../tools/virt-edit.pl:304
32687 #, no-wrap
32688 msgid ""
32689 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
32690 "\n"
32691 msgstr ""
32692
32693 # type: textblock
32694 #. type: textblock
32695 #: ../tools/virt-edit.pl:306
32696 msgid ""
32697 "What really happens is that the snippet is evaluated as a Perl expression "
32698 "for each line of the file.  The line, including the final C<\\n>, is passed "
32699 "in C<$_> and the expression should update C<$_> or leave it unchanged."
32700 msgstr ""
32701
32702 # type: textblock
32703 #. type: textblock
32704 #: ../tools/virt-edit.pl:311
32705 msgid ""
32706 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
32707 "C<apache> user account from the password file you can do:"
32708 msgstr ""
32709
32710 # type: verbatim
32711 #. type: verbatim
32712 #: ../tools/virt-edit.pl:314
32713 #, no-wrap
32714 msgid ""
32715 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
32716 "\n"
32717 msgstr ""
32718
32719 # type: textblock
32720 #. type: textblock
32721 #: ../tools/virt-edit.pl:316
32722 msgid ""
32723 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
32724 "the end of the file is rather difficult this way since there is no concept "
32725 "of \"last line of the file\" - your expression just doesn't get called "
32726 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
32727 "want to do this."
32728 msgstr ""
32729
32730 # type: textblock
32731 #. type: textblock
32732 #: ../tools/virt-edit.pl:322
32733 msgid ""
32734 "The variable C<$lineno> contains the current line number.  As is "
32735 "traditional, the first line in the file is number C<1>."
32736 msgstr ""
32737
32738 # type: textblock
32739 #. type: textblock
32740 #: ../tools/virt-edit.pl:325
32741 msgid ""
32742 "The return value from the expression is ignored, but the expression may call "
32743 "C<die> in order to abort the whole program, leaving the original file "
32744 "untouched."
32745 msgstr ""
32746
32747 # type: textblock
32748 #. type: textblock
32749 #: ../tools/virt-edit.pl:329
32750 msgid ""
32751 "Remember when matching the end of a line that C<$_> may contain the final C<"
32752 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
32753 "newline then neither of these.  Thus to match or substitute some text at the "
32754 "end of a line, use this regular expression:"
32755 msgstr ""
32756
32757 # type: verbatim
32758 #. type: verbatim
32759 #: ../tools/virt-edit.pl:334
32760 #, no-wrap
32761 msgid ""
32762 " /some text(\\r?\\n)?$/\n"
32763 "\n"
32764 msgstr ""
32765
32766 # type: textblock
32767 #. type: textblock
32768 #: ../tools/virt-edit.pl:336
32769 msgid ""
32770 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
32771 "$_> itself (since that would remove all newlines from the file):"
32772 msgstr ""
32773
32774 # type: verbatim
32775 #. type: verbatim
32776 #: ../tools/virt-edit.pl:340
32777 #, no-wrap
32778 msgid ""
32779 " my $m = $_; chomp $m; $m =~ /some text$/\n"
32780 "\n"
32781 msgstr ""
32782
32783 #. type: textblock
32784 #: ../tools/virt-edit.pl:344
32785 msgid ""
32786 "C<virt-edit> has a limited ability to understand Windows drive letters and "
32787 "paths (eg. C<E:\\foo\\bar.txt>)."
32788 msgstr ""
32789
32790 #. type: textblock
32791 #: ../tools/virt-edit.pl:347
32792 msgid "If and only if the guest is running Windows then:"
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../tools/virt-edit.pl:353
32797 msgid ""
32798 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
32799 "to the correct filesystem."
32800 msgstr ""
32801
32802 #. type: textblock
32803 #: ../tools/virt-edit.pl:358
32804 msgid ""
32805 "Any backslash (C<\\>) characters in the path are replaced with forward "
32806 "slashes so that libguestfs can process it."
32807 msgstr ""
32808
32809 #. type: textblock
32810 #: ../tools/virt-edit.pl:363
32811 msgid ""
32812 "The path is resolved case insensitively to locate the file that should be "
32813 "edited."
32814 msgstr ""
32815
32816 #. type: textblock
32817 #: ../tools/virt-edit.pl:368
32818 msgid "There are some known shortcomings:"
32819 msgstr ""
32820
32821 #. type: textblock
32822 #: ../tools/virt-edit.pl:374
32823 msgid "Some NTFS symbolic links may not be followed correctly."
32824 msgstr ""
32825
32826 #. type: textblock
32827 #: ../tools/virt-edit.pl:378
32828 msgid "NTFS junction points that cross filesystems are not followed."
32829 msgstr ""
32830
32831 #. type: =head1
32832 #: ../tools/virt-edit.pl:435
32833 msgid "USING GUESTFISH"
32834 msgstr ""
32835
32836 #. type: textblock
32837 #: ../tools/virt-edit.pl:437
32838 msgid ""
32839 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
32840 "C<virt-edit> doesn't work."
32841 msgstr ""
32842
32843 #. type: textblock
32844 #: ../tools/virt-edit.pl:440
32845 msgid "Using C<virt-edit> is approximately equivalent to doing:"
32846 msgstr ""
32847
32848 #. type: verbatim
32849 #: ../tools/virt-edit.pl:442
32850 #, no-wrap
32851 msgid ""
32852 " guestfish --rw -i -d domname edit /file\n"
32853 "\n"
32854 msgstr ""
32855
32856 #. type: textblock
32857 #: ../tools/virt-edit.pl:444
32858 msgid ""
32859 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
32860 "path to the file."
32861 msgstr ""
32862
32863 #. type: textblock
32864 #: ../tools/virt-edit.pl:447
32865 msgid ""
32866 "The command above uses libguestfs's guest inspection feature and so does not "
32867 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
32868 "disk images that don't contain guests.  To edit a file on a disk image "
32869 "directly, use:"
32870 msgstr ""
32871
32872 #. type: verbatim
32873 #: ../tools/virt-edit.pl:452
32874 #, no-wrap
32875 msgid ""
32876 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
32877 "\n"
32878 msgstr ""
32879
32880 #. type: textblock
32881 #: ../tools/virt-edit.pl:454
32882 msgid ""
32883 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
32884 "the disk image to edit, and C</file> is the full path to the file."
32885 msgstr ""
32886
32887 #. type: textblock
32888 #: ../tools/virt-edit.pl:458
32889 msgid ""
32890 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
32891 "C<write> or C<upload> instead:"
32892 msgstr ""
32893
32894 #. type: verbatim
32895 #: ../tools/virt-edit.pl:461
32896 #, no-wrap
32897 msgid ""
32898 " guestfish --rw -i -d domname touch /newfile\n"
32899 "\n"
32900 msgstr ""
32901
32902 #. type: verbatim
32903 #: ../tools/virt-edit.pl:463
32904 #, no-wrap
32905 msgid ""
32906 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
32907 "\n"
32908 msgstr ""
32909
32910 #. type: verbatim
32911 #: ../tools/virt-edit.pl:465
32912 #, no-wrap
32913 msgid ""
32914 " guestfish --rw -i -d domname upload localfile /newfile\n"
32915 "\n"
32916 msgstr ""
32917
32918 #. type: textblock
32919 #: ../tools/virt-edit.pl:467
32920 msgid ""
32921 "C<virt-edit> cannot edit multiple files, but guestfish can do it like this:"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../tools/virt-edit.pl:470
32926 #, no-wrap
32927 msgid ""
32928 " guestfish --rw -i -d domname edit /file1 : edit /file2\n"
32929 "\n"
32930 msgstr ""
32931
32932 # type: =item
32933 #. type: =item
32934 #: ../tools/virt-edit.pl:480
32935 msgid "C<EDITOR>"
32936 msgstr ""
32937
32938 # type: textblock
32939 #. type: textblock
32940 #: ../tools/virt-edit.pl:482
32941 msgid ""
32942 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
32943 "\"emacs -nw\">"
32944 msgstr ""
32945
32946 # type: textblock
32947 #. type: textblock
32948 #: ../tools/virt-edit.pl:485
32949 msgid "If not set, C<vi> is used."
32950 msgstr ""
32951
32952 # type: =head2
32953 #. type: =head1
32954 #: ../tools/virt-edit.pl:489 ../tools/virt-win-reg.pl:559
32955 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:279
32956 #: ../tools/virt-make-fs.pl:532 ../tools/virt-list-partitions.pl:250
32957 msgid "SHELL QUOTING"
32958 msgstr ""
32959
32960 # type: textblock
32961 #. type: textblock
32962 #: ../tools/virt-edit.pl:491 ../tools/virt-win-reg.pl:567
32963 #: ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:281
32964 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:252
32965 msgid ""
32966 "Libvirt guest names can contain arbitrary characters, some of which have "
32967 "meaning to the shell such as C<#> and space.  You may need to quote or "
32968 "escape these characters on the command line.  See the shell manual page L<sh"
32969 "(1)> for details."
32970 msgstr ""
32971
32972 #. type: textblock
32973 #: ../tools/virt-edit.pl:498
32974 msgid ""
32975 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
32976 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32977 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
32978 msgstr ""
32979
32980 # type: =head1
32981 #. type: =head1
32982 #: ../tools/virt-edit.pl:510 ../tools/virt-win-reg.pl:598
32983 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:301
32984 #: ../tools/virt-make-fs.pl:564 ../tools/virt-list-partitions.pl:269
32985 msgid "AUTHOR"
32986 msgstr ""
32987
32988 # type: textblock
32989 #. type: textblock
32990 #: ../tools/virt-edit.pl:512 ../tools/virt-win-reg.pl:600
32991 #: ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:303
32992 #: ../tools/virt-make-fs.pl:566 ../tools/virt-list-partitions.pl:271
32993 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
32994 msgstr ""
32995
32996 #. type: textblock
32997 #: ../tools/virt-edit.pl:516
32998 msgid "Copyright (C) 2009-2011 Red Hat Inc."
32999 msgstr ""
33000
33001 # type: textblock
33002 #. type: textblock
33003 #: ../tools/virt-win-reg.pl:37
33004 msgid ""
33005 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
33006 msgstr ""
33007
33008 # type: verbatim
33009 #. type: verbatim
33010 #: ../tools/virt-win-reg.pl:41
33011 #, no-wrap
33012 msgid ""
33013 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
33014 "\n"
33015 msgstr ""
33016
33017 # type: verbatim
33018 #. type: verbatim
33019 #: ../tools/virt-win-reg.pl:43
33020 #, no-wrap
33021 msgid ""
33022 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
33023 "\n"
33024 msgstr ""
33025
33026 # type: verbatim
33027 #. type: verbatim
33028 #: ../tools/virt-win-reg.pl:45
33029 #, no-wrap
33030 msgid ""
33031 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
33032 "\n"
33033 msgstr ""
33034
33035 # type: verbatim
33036 #. type: verbatim
33037 #: ../tools/virt-win-reg.pl:47
33038 #, no-wrap
33039 msgid ""
33040 " virt-win-reg --merge domname [input.reg ...]\n"
33041 "\n"
33042 msgstr ""
33043
33044 # type: verbatim
33045 #. type: verbatim
33046 #: ../tools/virt-win-reg.pl:49
33047 #, no-wrap
33048 msgid ""
33049 " virt-win-reg [--options] disk.img ... # instead of domname\n"
33050 "\n"
33051 msgstr ""
33052
33053 # type: textblock
33054 #. type: textblock
33055 #: ../tools/virt-win-reg.pl:53
33056 msgid ""
33057 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
33058 "virtual machines.  If you do this, you I<will> get irreversible disk "
33059 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
33060 "but doesn't catch all cases."
33061 msgstr ""
33062
33063 # type: textblock
33064 #. type: textblock
33065 #: ../tools/virt-win-reg.pl:58
33066 msgid ""
33067 "Modifying the Windows Registry is an inherently risky operation.  The format "
33068 "is deliberately obscure and undocumented, and Registry changes can leave the "
33069 "system unbootable.  Therefore when using the C<--merge> option, make sure "
33070 "you have a reliable backup first."
33071 msgstr ""
33072
33073 # type: textblock
33074 #. type: textblock
33075 #: ../tools/virt-win-reg.pl:65
33076 msgid ""
33077 "This program can export and merge Windows Registry entries from a Windows "
33078 "guest."
33079 msgstr ""
33080
33081 # type: textblock
33082 #. type: textblock
33083 #: ../tools/virt-win-reg.pl:68
33084 msgid ""
33085 "The first parameter is the libvirt guest name or the raw disk image of a "
33086 "Windows guest."
33087 msgstr ""
33088
33089 # type: textblock
33090 #. type: textblock
33091 #: ../tools/virt-win-reg.pl:71
33092 msgid ""
33093 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
33094 "exported (recursively).  For example:"
33095 msgstr ""
33096
33097 # type: verbatim
33098 #. type: verbatim
33099 #: ../tools/virt-win-reg.pl:74
33100 #, no-wrap
33101 msgid ""
33102 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
33103 "\n"
33104 msgstr ""
33105
33106 # type: textblock
33107 #. type: textblock
33108 #: ../tools/virt-win-reg.pl:76
33109 msgid ""
33110 "You can also display single values from within registry keys, for example:"
33111 msgstr ""
33112
33113 # type: verbatim
33114 #. type: verbatim
33115 #: ../tools/virt-win-reg.pl:79
33116 #, no-wrap
33117 msgid ""
33118 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
33119 " $ virt-win-reg Windows7 $cvkey ProductName\n"
33120 " Windows 7 Enterprise\n"
33121 "\n"
33122 msgstr ""
33123
33124 # type: textblock
33125 #. type: textblock
33126 #: ../tools/virt-win-reg.pl:83
33127 msgid ""
33128 "With C<--merge>, you can merge a textual regedit file into the Windows "
33129 "Registry:"
33130 msgstr ""
33131
33132 # type: verbatim
33133 #. type: verbatim
33134 #: ../tools/virt-win-reg.pl:86
33135 #, no-wrap
33136 msgid ""
33137 " $ virt-win-reg --merge Windows7 changes.reg\n"
33138 "\n"
33139 msgstr ""
33140
33141 # type: =head2
33142 #. type: =head1
33143 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
33144 msgid "NOTE"
33145 msgstr ""
33146
33147 # type: textblock
33148 #. type: textblock
33149 #: ../tools/virt-win-reg.pl:90
33150 msgid ""
33151 "This program is only meant for simple access to the registry.  If you want "
33152 "to do complicated things with the registry, we suggest you download the "
33153 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
33154 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
33155 "L<hivexregedit(1)>."
33156 msgstr ""
33157
33158 # type: =item
33159 #. type: =item
33160 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
33161 msgid "B<--debug>"
33162 msgstr ""
33163
33164 # type: textblock
33165 #. type: textblock
33166 #: ../tools/virt-win-reg.pl:122
33167 msgid "Enable debugging messages."
33168 msgstr ""
33169
33170 # type: =item
33171 #. type: =item
33172 #: ../tools/virt-win-reg.pl:157
33173 msgid "B<--merge>"
33174 msgstr ""
33175
33176 # type: textblock
33177 #. type: textblock
33178 #: ../tools/virt-win-reg.pl:159
33179 msgid ""
33180 "In merge mode, this merges a textual regedit file into the Windows Registry "
33181 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
33182 "displays or exports Registry entries instead."
33183 msgstr ""
33184
33185 # type: textblock
33186 #. type: textblock
33187 #: ../tools/virt-win-reg.pl:163
33188 msgid ""
33189 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
33190 "result in disk corruption.  However exporting (without this flag)  is always "
33191 "safe."
33192 msgstr ""
33193
33194 # type: =item
33195 #. type: =item
33196 #: ../tools/virt-win-reg.pl:171
33197 msgid "B<--encoding> UTF-16LE|ASCII"
33198 msgstr ""
33199
33200 # type: textblock
33201 #. type: textblock
33202 #: ../tools/virt-win-reg.pl:173
33203 msgid ""
33204 "When merging (only), you may need to specify the encoding for strings to be "
33205 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
33206 "(3)/ENCODING STRINGS>."
33207 msgstr ""
33208
33209 # type: textblock
33210 #. type: textblock
33211 #: ../tools/virt-win-reg.pl:177
33212 msgid ""
33213 "The default is to use UTF-16LE, which should work with recent versions of "
33214 "Windows."
33215 msgstr ""
33216
33217 # type: =head2
33218 #. type: =head1
33219 #: ../tools/virt-win-reg.pl:402
33220 msgid "SUPPORTED SYSTEMS"
33221 msgstr ""
33222
33223 # type: textblock
33224 #. type: textblock
33225 #: ../tools/virt-win-reg.pl:404
33226 msgid ""
33227 "The program currently supports Windows NT-derived guests starting with "
33228 "Windows XP through to at least Windows 7."
33229 msgstr ""
33230
33231 # type: textblock
33232 #. type: textblock
33233 #: ../tools/virt-win-reg.pl:407
33234 msgid ""
33235 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
33236 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
33237 "and C<HKEY_USERS\\.DEFAULT>."
33238 msgstr ""
33239
33240 # type: textblock
33241 #. type: textblock
33242 #: ../tools/virt-win-reg.pl:411
33243 msgid ""
33244 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
33245 "C<HKEY_USERS>."
33246 msgstr ""
33247
33248 # type: textblock
33249 #. type: textblock
33250 #: ../tools/virt-win-reg.pl:414
33251 msgid ""
33252 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
33253 "time."
33254 msgstr ""
33255
33256 # type: =head2
33257 #. type: =head1
33258 #: ../tools/virt-win-reg.pl:417
33259 msgid "ENCODING"
33260 msgstr ""
33261
33262 # type: textblock
33263 #. type: textblock
33264 #: ../tools/virt-win-reg.pl:419
33265 msgid ""
33266 "C<virt-win-reg> expects that regedit files have already been reencoded in "
33267 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
33268 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
33269 "Windows-style line endings, you may need to reencode the whole file before "
33270 "or after processing."
33271 msgstr ""
33272
33273 # type: textblock
33274 #. type: textblock
33275 #: ../tools/virt-win-reg.pl:425
33276 msgid ""
33277 "To reencode a file from Windows format to Linux (before processing it with "
33278 "the C<--merge> option), you would do something like this:"
33279 msgstr ""
33280
33281 # type: verbatim
33282 #. type: verbatim
33283 #: ../tools/virt-win-reg.pl:428
33284 #, no-wrap
33285 msgid ""
33286 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
33287 "\n"
33288 msgstr ""
33289
33290 # type: textblock
33291 #. type: textblock
33292 #: ../tools/virt-win-reg.pl:430
33293 msgid ""
33294 "To go in the opposite direction, after exporting and before sending the file "
33295 "to a Windows user, do something like this:"
33296 msgstr ""
33297
33298 # type: verbatim
33299 #. type: verbatim
33300 #: ../tools/virt-win-reg.pl:433
33301 #, no-wrap
33302 msgid ""
33303 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33304 "\n"
33305 msgstr ""
33306
33307 # type: textblock
33308 #. type: textblock
33309 #: ../tools/virt-win-reg.pl:435
33310 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33311 msgstr ""
33312
33313 # type: textblock
33314 #. type: textblock
33315 #: ../tools/virt-win-reg.pl:437
33316 msgid ""
33317 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33318 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33319 "style (CRLF) line endings, like this:"
33320 msgstr ""
33321
33322 # type: verbatim
33323 #. type: verbatim
33324 #: ../tools/virt-win-reg.pl:441
33325 #, no-wrap
33326 msgid ""
33327 " $ file software.reg\n"
33328 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33329 " with CRLF line terminators\n"
33330 "\n"
33331 msgstr ""
33332
33333 # type: textblock
33334 #. type: textblock
33335 #: ../tools/virt-win-reg.pl:445
33336 msgid "This file would need conversion before you could C<--merge> it."
33337 msgstr ""
33338
33339 # type: =head2
33340 #. type: =head1
33341 #: ../tools/virt-win-reg.pl:447
33342 msgid "CurrentControlSet etc."
33343 msgstr ""
33344
33345 # type: textblock
33346 #. type: textblock
33347 #: ../tools/virt-win-reg.pl:449
33348 msgid ""
33349 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33350 "Registry at the level of the hive file, and therefore you cannot modify "
33351 "these."
33352 msgstr ""
33353
33354 # type: textblock
33355 #. type: textblock
33356 #: ../tools/virt-win-reg.pl:453
33357 msgid ""
33358 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33359 "circumstances it might refer to another control set.  The way to find out is "
33360 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33361 msgstr ""
33362
33363 # type: verbatim
33364 #. type: verbatim
33365 #: ../tools/virt-win-reg.pl:457
33366 #, no-wrap
33367 msgid ""
33368 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33369 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33370 " \"Current\"=dword:00000001\n"
33371 " \"Default\"=dword:00000001\n"
33372 " \"Failed\"=dword:00000000\n"
33373 " \"LastKnownGood\"=dword:00000002\n"
33374 "\n"
33375 msgstr ""
33376
33377 # type: textblock
33378 #. type: textblock
33379 #: ../tools/virt-win-reg.pl:464
33380 msgid "\"Current\" is the one which Windows will choose when it boots."
33381 msgstr ""
33382
33383 # type: textblock
33384 #. type: textblock
33385 #: ../tools/virt-win-reg.pl:466
33386 msgid ""
33387 "Similarly, other C<Current...> keys in the path may need to be replaced."
33388 msgstr ""
33389
33390 # type: =head1
33391 #. type: =head1
33392 #: ../tools/virt-win-reg.pl:469
33393 msgid "WINDOWS TIPS"
33394 msgstr ""
33395
33396 # type: textblock
33397 #. type: textblock
33398 #: ../tools/virt-win-reg.pl:471
33399 msgid ""
33400 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33401 "be shut off, else you will get disk corruption."
33402 msgstr ""
33403
33404 # type: =head2
33405 #. type: =head2
33406 #: ../tools/virt-win-reg.pl:474
33407 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33408 msgstr ""
33409
33410 # type: textblock
33411 #. type: textblock
33412 #: ../tools/virt-win-reg.pl:476
33413 msgid ""
33414 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33415 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33416 "is uploaded into C<C:\\>:"
33417 msgstr ""
33418
33419 # type: verbatim
33420 #. type: verbatim
33421 #: ../tools/virt-win-reg.pl:480
33422 #, no-wrap
33423 msgid ""
33424 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33425 "\n"
33426 msgstr ""
33427
33428 # type: textblock
33429 #. type: textblock
33430 #: ../tools/virt-win-reg.pl:482
33431 msgid "Prepare a regedit file containing the registry change:"
33432 msgstr ""
33433
33434 # type: verbatim
33435 #. type: verbatim
33436 #: ../tools/virt-win-reg.pl:484
33437 #, no-wrap
33438 msgid ""
33439 " cat > test.reg <<'EOF'\n"
33440 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33441 " \"Test\"=\"c:\\\\test.bat\"\n"
33442 " EOF\n"
33443 "\n"
33444 msgstr ""
33445
33446 # type: textblock
33447 #. type: textblock
33448 #: ../tools/virt-win-reg.pl:489
33449 msgid ""
33450 "In this example we use the key C<RunOnce> which means that the script will "
33451 "run precisely once when the first user logs in.  If you want it to run every "
33452 "time a user logs in, replace C<RunOnce> with C<Run>."
33453 msgstr ""
33454
33455 # type: textblock
33456 #. type: textblock
33457 #: ../tools/virt-win-reg.pl:493
33458 msgid "Now update the registry:"
33459 msgstr ""
33460
33461 # type: verbatim
33462 #. type: verbatim
33463 #: ../tools/virt-win-reg.pl:495
33464 #, no-wrap
33465 msgid ""
33466 " virt-win-reg --merge WindowsGuest test.reg\n"
33467 "\n"
33468 msgstr ""
33469
33470 # type: =head2
33471 #. type: =head2
33472 #: ../tools/virt-win-reg.pl:497
33473 msgid "INSTALLING A SERVICE"
33474 msgstr ""
33475
33476 # type: textblock
33477 #. type: textblock
33478 #: ../tools/virt-win-reg.pl:499
33479 msgid ""
33480 "This section assumes you are familiar with Windows services, and you either "
33481 "have a program which handles the Windows Service Control Protocol directly "
33482 "or you want to run any program using a service wrapper like SrvAny or the "
33483 "free RHSrvAny."
33484 msgstr ""
33485
33486 # type: textblock
33487 #. type: textblock
33488 #: ../tools/virt-win-reg.pl:504
33489 msgid ""
33490 "First upload the program and optionally the service wrapper.  In this case "
33491 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33492 msgstr ""
33493
33494 # type: verbatim
33495 #. type: verbatim
33496 #: ../tools/virt-win-reg.pl:508
33497 #, no-wrap
33498 msgid ""
33499 " guestfish -i -d WindowsGuest <<EOF\n"
33500 "   upload rhsrvany.exe /rhsrvany.exe\n"
33501 "   upload test.exe /test.exe\n"
33502 " EOF\n"
33503 "\n"
33504 msgstr ""
33505
33506 # type: textblock
33507 #. type: textblock
33508 #: ../tools/virt-win-reg.pl:513
33509 msgid ""
33510 "Prepare a regedit file containing the registry changes.  In this example, "
33511 "the first registry change is needed for the service itself or the service "
33512 "wrapper (if used).  The second registry change is only needed because I am "
33513 "using the RHSrvAny service wrapper."
33514 msgstr ""
33515
33516 # type: verbatim
33517 #. type: verbatim
33518 #: ../tools/virt-win-reg.pl:518
33519 #, no-wrap
33520 msgid ""
33521 " cat > service.reg <<'EOF'\n"
33522 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33523 " \"Type\"=dword:00000010\n"
33524 " \"Start\"=dword:00000002\n"
33525 " \"ErrorControl\"=dword:00000001\n"
33526 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33527 " \"DisplayName\"=\"RHSrvAny\"\n"
33528 " \"ObjectName\"=\"NetworkService\"\n"
33529 " \n"
33530 msgstr ""
33531
33532 # type: verbatim
33533 #. type: verbatim
33534 #: ../tools/virt-win-reg.pl:527
33535 #, no-wrap
33536 msgid ""
33537 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33538 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33539 " \"PWD\"=\"c:\\\\Temp\"\n"
33540 " EOF\n"
33541 "\n"
33542 msgstr ""
33543
33544 # type: textblock
33545 #. type: textblock
33546 #: ../tools/virt-win-reg.pl:538
33547 msgid ""
33548 "For use of C<ControlSet001> see the section above in this manual page.  You "
33549 "may need to adjust this according to the control set that is in use by the "
33550 "guest."
33551 msgstr ""
33552
33553 # type: textblock
33554 #. type: textblock
33555 #: ../tools/virt-win-reg.pl:544
33556 msgid ""
33557 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33558 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33559 "privileged account."
33560 msgstr ""
33561
33562 # type: textblock
33563 #. type: textblock
33564 #: ../tools/virt-win-reg.pl:550
33565 msgid ""
33566 "For the meaning of the magic numbers, see this Microsoft KB article: "
33567 "L<http://support.microsoft.com/kb/103000>."
33568 msgstr ""
33569
33570 # type: textblock
33571 #. type: textblock
33572 #: ../tools/virt-win-reg.pl:555
33573 msgid "Update the registry:"
33574 msgstr ""
33575
33576 # type: verbatim
33577 #. type: verbatim
33578 #: ../tools/virt-win-reg.pl:557
33579 #, no-wrap
33580 msgid ""
33581 " virt-win-reg --merge WindowsGuest service.reg\n"
33582 "\n"
33583 msgstr ""
33584
33585 # type: textblock
33586 #. type: textblock
33587 #: ../tools/virt-win-reg.pl:561
33588 msgid ""
33589 "Be careful when passing parameters containing C<\\> (backslash) in the "
33590 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33591 "(but not both) to protect them from the shell."
33592 msgstr ""
33593
33594 # type: textblock
33595 #. type: textblock
33596 #: ../tools/virt-win-reg.pl:565
33597 msgid "Paths and value names are case-insensitive."
33598 msgstr ""
33599
33600 # type: textblock
33601 #. type: textblock
33602 #: ../tools/virt-win-reg.pl:574
33603 msgid ""
33604 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33605 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33606 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33607 msgstr ""
33608
33609 # type: textblock
33610 #. type: textblock
33611 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
33612 msgid ""
33613 "When reporting bugs, please enable debugging and capture the I<complete> "
33614 "output:"
33615 msgstr ""
33616
33617 # type: verbatim
33618 #. type: verbatim
33619 #: ../tools/virt-win-reg.pl:592
33620 #, no-wrap
33621 msgid ""
33622 " export LIBGUESTFS_DEBUG=1\n"
33623 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33624 "\n"
33625 msgstr ""
33626
33627 # type: textblock
33628 #. type: textblock
33629 #: ../tools/virt-win-reg.pl:595
33630 msgid ""
33631 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33632 "redhat.com/>"
33633 msgstr ""
33634
33635 # type: textblock
33636 #. type: textblock
33637 #: ../tools/virt-win-reg.pl:604 ../tools/virt-make-fs.pl:570
33638 msgid "Copyright (C) 2010 Red Hat Inc."
33639 msgstr ""
33640
33641 # type: textblock
33642 #. type: textblock
33643 #: ../tools/virt-list-filesystems.pl:32
33644 msgid ""
33645 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33646 msgstr ""
33647
33648 # type: verbatim
33649 #. type: verbatim
33650 #: ../tools/virt-list-filesystems.pl:36
33651 #, no-wrap
33652 msgid ""
33653 " virt-list-filesystems [--options] domname\n"
33654 "\n"
33655 msgstr ""
33656
33657 # type: verbatim
33658 #. type: verbatim
33659 #: ../tools/virt-list-filesystems.pl:38
33660 #, no-wrap
33661 msgid ""
33662 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33663 "\n"
33664 msgstr ""
33665
33666 # type: textblock
33667 #. type: textblock
33668 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33669 msgid ""
33670 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33671 "replacement."
33672 msgstr ""
33673
33674 # type: textblock
33675 #. type: textblock
33676 #: ../tools/virt-list-filesystems.pl:45
33677 msgid ""
33678 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33679 "are contained in a virtual machine or disk image."
33680 msgstr ""
33681
33682 # type: textblock
33683 #. type: textblock
33684 #: ../tools/virt-list-filesystems.pl:49
33685 msgid ""
33686 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33687 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33688 "> tool."
33689 msgstr ""
33690
33691 # type: =item
33692 #. type: =item
33693 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33694 msgid "B<-l> | B<--long>"
33695 msgstr ""
33696
33697 # type: textblock
33698 #. type: textblock
33699 #: ../tools/virt-list-filesystems.pl:108
33700 msgid ""
33701 "With this option, C<virt-list-filesystems> displays the type of each "
33702 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33703 msgstr ""
33704
33705 # type: =item
33706 #. type: =item
33707 #: ../tools/virt-list-filesystems.pl:115
33708 msgid "B<-a> | B<--all>"
33709 msgstr ""
33710
33711 # type: textblock
33712 #. type: textblock
33713 #: ../tools/virt-list-filesystems.pl:117
33714 msgid ""
33715 "Normally we only show mountable filesystems.  If this option is given then "
33716 "swap devices are shown too."
33717 msgstr ""
33718
33719 # type: textblock
33720 #. type: textblock
33721 #: ../tools/virt-list-filesystems.pl:191
33722 msgid ""
33723 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33724 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33725 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33726 msgstr ""
33727
33728 # type: textblock
33729 #. type: textblock
33730 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33731 msgid "Copyright (C) 2009 Red Hat Inc."
33732 msgstr ""
33733
33734 # type: textblock
33735 #. type: textblock
33736 #: ../tools/virt-tar.pl:33
33737 msgid "virt-tar - Extract or upload files to a virtual machine"
33738 msgstr ""
33739
33740 # type: verbatim
33741 #. type: verbatim
33742 #: ../tools/virt-tar.pl:37
33743 #, no-wrap
33744 msgid ""
33745 " virt-tar [--options] -x domname directory tarball\n"
33746 "\n"
33747 msgstr ""
33748
33749 # type: verbatim
33750 #. type: verbatim
33751 #: ../tools/virt-tar.pl:39
33752 #, no-wrap
33753 msgid ""
33754 " virt-tar [--options] -u domname tarball directory\n"
33755 "\n"
33756 msgstr ""
33757
33758 # type: verbatim
33759 #. type: verbatim
33760 #: ../tools/virt-tar.pl:41
33761 #, no-wrap
33762 msgid ""
33763 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33764 "\n"
33765 msgstr ""
33766
33767 # type: verbatim
33768 #. type: verbatim
33769 #: ../tools/virt-tar.pl:43
33770 #, no-wrap
33771 msgid ""
33772 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33773 "\n"
33774 msgstr ""
33775
33776 #. type: textblock
33777 #: ../tools/virt-tar.pl:47
33778 msgid ""
33779 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33780 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33781 msgstr ""
33782
33783 # type: textblock
33784 #. type: textblock
33785 #: ../tools/virt-tar.pl:52
33786 msgid "Download C</home> from the VM into a local tarball:"
33787 msgstr ""
33788
33789 # type: verbatim
33790 #. type: verbatim
33791 #: ../tools/virt-tar.pl:54
33792 #, no-wrap
33793 msgid ""
33794 " virt-tar -x domname /home home.tar\n"
33795 "\n"
33796 msgstr ""
33797
33798 # type: verbatim
33799 #. type: verbatim
33800 #: ../tools/virt-tar.pl:56
33801 #, no-wrap
33802 msgid ""
33803 " virt-tar -zx domname /home home.tar.gz\n"
33804 "\n"
33805 msgstr ""
33806
33807 # type: textblock
33808 #. type: textblock
33809 #: ../tools/virt-tar.pl:58
33810 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33811 msgstr ""
33812
33813 # type: verbatim
33814 #. type: verbatim
33815 #: ../tools/virt-tar.pl:60
33816 #, no-wrap
33817 msgid ""
33818 " virt-tar -u domname uploadstuff.tar /tmp\n"
33819 "\n"
33820 msgstr ""
33821
33822 # type: verbatim
33823 #. type: verbatim
33824 #: ../tools/virt-tar.pl:62
33825 #, no-wrap
33826 msgid ""
33827 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33828 "\n"
33829 msgstr ""
33830
33831 # type: textblock
33832 #. type: textblock
33833 #: ../tools/virt-tar.pl:66
33834 msgid ""
33835 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
33836 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33837 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33838 msgstr ""
33839
33840 # type: textblock
33841 #. type: textblock
33842 #: ../tools/virt-tar.pl:71
33843 msgid ""
33844 "You can use C<-x> (extract) on live virtual machines, but you might get "
33845 "inconsistent results or errors if there is filesystem activity inside the "
33846 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33847 "work, but the only way to guarantee consistent results is if the virtual "
33848 "machine is shut down."
33849 msgstr ""
33850
33851 # type: textblock
33852 #. type: textblock
33853 #: ../tools/virt-tar.pl:79
33854 msgid ""
33855 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33856 "parts of a guest filesystem.  There are many possibilities: making backups, "
33857 "uploading data files, snooping on guest activity, fixing or customizing "
33858 "guests, etc."
33859 msgstr ""
33860
33861 # type: textblock
33862 #. type: textblock
33863 #: ../tools/virt-tar.pl:84
33864 msgid ""
33865 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33866 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33867 "should look at the L<guestfish(1)> tool."
33868 msgstr ""
33869
33870 # type: textblock
33871 #. type: textblock
33872 #: ../tools/virt-tar.pl:88
33873 msgid ""
33874 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
33875 "its contents (recursively) from the virtual machine into a local tarball.  "
33876 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
33877 "virtual machine.  You cannot use these two options together."
33878 msgstr ""
33879
33880 # type: textblock
33881 #. type: textblock
33882 #: ../tools/virt-tar.pl:94
33883 msgid ""
33884 "In addition, you may need to use the C<-z> (gZip) option to enable "
33885 "compression.  When uploading, you have to specify C<-z> if the upload file "
33886 "is compressed because virt-tar won't detect this on its own."
33887 msgstr ""
33888
33889 # type: textblock
33890 #. type: textblock
33891 #: ../tools/virt-tar.pl:98
33892 msgid ""
33893 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33894 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33895 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33896 "the L<libguestfs(3)> API)."
33897 msgstr ""
33898
33899 # type: =item
33900 #. type: =item
33901 #: ../tools/virt-tar.pl:156
33902 msgid "B<-x> | B<--extract> | B<--download>"
33903 msgstr ""
33904
33905 # type: =item
33906 #. type: =item
33907 #: ../tools/virt-tar.pl:158
33908 msgid "B<-u> | B<--upload>"
33909 msgstr ""
33910
33911 # type: textblock
33912 #. type: textblock
33913 #: ../tools/virt-tar.pl:160
33914 msgid ""
33915 "Use C<-x> to extract (download) a directory from a virtual machine to a "
33916 "local tarball."
33917 msgstr ""
33918
33919 # type: textblock
33920 #. type: textblock
33921 #: ../tools/virt-tar.pl:163
33922 msgid ""
33923 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
33924 "Please read the L</WARNING> section above before using this option."
33925 msgstr ""
33926
33927 # type: textblock
33928 #. type: textblock
33929 #: ../tools/virt-tar.pl:167
33930 msgid "You must specify exactly one of these options."
33931 msgstr ""
33932
33933 # type: =item
33934 #. type: =item
33935 #: ../tools/virt-tar.pl:173
33936 msgid "B<-z> | B<--gzip>"
33937 msgstr ""
33938
33939 # type: textblock
33940 #. type: textblock
33941 #: ../tools/virt-tar.pl:175
33942 msgid "Specify that the input or output tarball is gzip-compressed."
33943 msgstr ""
33944
33945 #. type: textblock
33946 #: ../tools/virt-tar.pl:288
33947 msgid ""
33948 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
33949 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
33950 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
33951 "org/>."
33952 msgstr ""
33953
33954 # type: textblock
33955 #. type: textblock
33956 #: ../tools/virt-make-fs.pl:37
33957 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
33958 msgstr ""
33959
33960 # type: verbatim
33961 #. type: verbatim
33962 #: ../tools/virt-make-fs.pl:41
33963 #, no-wrap
33964 msgid ""
33965 " virt-make-fs [--options] input.tar output.img\n"
33966 "\n"
33967 msgstr ""
33968
33969 # type: verbatim
33970 #. type: verbatim
33971 #: ../tools/virt-make-fs.pl:43
33972 #, no-wrap
33973 msgid ""
33974 " virt-make-fs [--options] input.tar.gz output.img\n"
33975 "\n"
33976 msgstr ""
33977
33978 # type: verbatim
33979 #. type: verbatim
33980 #: ../tools/virt-make-fs.pl:45
33981 #, no-wrap
33982 msgid ""
33983 " virt-make-fs [--options] directory output.img\n"
33984 "\n"
33985 msgstr ""
33986
33987 # type: textblock
33988 #. type: textblock
33989 #: ../tools/virt-make-fs.pl:49
33990 msgid ""
33991 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
33992 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
33993 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
33994 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
33995 "you want to attach these filesystems to existing virtual machines (eg. to "
33996 "import large amounts of read-only data to a VM)."
33997 msgstr ""
33998
33999 # type: textblock
34000 #. type: textblock
34001 #: ../tools/virt-make-fs.pl:57
34002 msgid "Basic usage is:"
34003 msgstr ""
34004
34005 # type: verbatim
34006 #. type: verbatim
34007 #: ../tools/virt-make-fs.pl:59
34008 #, no-wrap
34009 msgid ""
34010 " virt-make-fs input output\n"
34011 "\n"
34012 msgstr ""
34013
34014 # type: textblock
34015 #. type: textblock
34016 #: ../tools/virt-make-fs.pl:61
34017 msgid ""
34018 "where C<input> is either a directory containing files that you want to add, "
34019 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34020 "C<output> is a disk image.  The input type is detected automatically.  The "
34021 "output disk image defaults to a raw ext2 image unless you specify extra "
34022 "flags (see L</OPTIONS> below)."
34023 msgstr ""
34024
34025 # type: =head2
34026 #. type: =head2
34027 #: ../tools/virt-make-fs.pl:67
34028 msgid "EXTRA SPACE"
34029 msgstr ""
34030
34031 # type: textblock
34032 #. type: textblock
34033 #: ../tools/virt-make-fs.pl:69
34034 msgid ""
34035 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34036 "the files that it contains, but might have extra space.  Depending on how "
34037 "you are going to use the output, you might think this extra space is wasted "
34038 "and want to minimize it, or you might want to leave space so that more files "
34039 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34040 "but you can use the C<--size> flag to leave space in the filesystem if you "
34041 "want it."
34042 msgstr ""
34043
34044 # type: textblock
34045 #. type: textblock
34046 #: ../tools/virt-make-fs.pl:77
34047 msgid ""
34048 "An alternative way to leave extra space but not make the output image any "
34049 "bigger is to use an alternative disk image format (instead of the default "
34050 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34051 "image format (check your hypervisor supports this before using it).  This "
34052 "allows you to choose a large C<--size> but the extra space won't actually be "
34053 "allocated in the image until you try to store something in it."
34054 msgstr ""
34055
34056 #. type: textblock
34057 #: ../tools/virt-make-fs.pl:85
34058 msgid ""
34059 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34060 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34061 "to build another image from scratch."
34062 msgstr ""
34063
34064 # type: =head3
34065 #. type: =head3
34066 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34067 #: ../tools/virt-make-fs.pl:142
34068 msgid "EXAMPLE"
34069 msgstr ""
34070
34071 # type: verbatim
34072 #. type: verbatim
34073 #: ../tools/virt-make-fs.pl:91
34074 #, no-wrap
34075 msgid ""
34076 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34077 "\n"
34078 msgstr ""
34079
34080 # type: =head2
34081 #. type: =head2
34082 #: ../tools/virt-make-fs.pl:93
34083 msgid "FILESYSTEM TYPE"
34084 msgstr ""
34085
34086 # type: textblock
34087 #. type: textblock
34088 #: ../tools/virt-make-fs.pl:95
34089 msgid ""
34090 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34091 "libguestfs supports can be used (but I<not> read-only formats like "
34092 "ISO9660).  Here are some of the more common choices:"
34093 msgstr ""
34094
34095 # type: =item
34096 #. type: =item
34097 #: ../tools/virt-make-fs.pl:101
34098 msgid "I<ext3>"
34099 msgstr ""
34100
34101 # type: textblock
34102 #. type: textblock
34103 #: ../tools/virt-make-fs.pl:103
34104 msgid ""
34105 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34106 "you are not going to use the filesystem in a way that requires the journal, "
34107 "then this is just wasted overhead."
34108 msgstr ""
34109
34110 # type: =item
34111 #. type: =item
34112 #: ../tools/virt-make-fs.pl:107
34113 msgid "I<ntfs> or I<vfat>"
34114 msgstr ""
34115
34116 # type: textblock
34117 #. type: textblock
34118 #: ../tools/virt-make-fs.pl:109
34119 msgid "Useful if exporting data to a Windows guest."
34120 msgstr ""
34121
34122 # type: textblock
34123 #. type: textblock
34124 #: ../tools/virt-make-fs.pl:111
34125 msgid ""
34126 "I<Note for vfat>: The tar archive or local directory must only contain files "
34127 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34128 "program running within libguestfs is unable to change the ownership of non-"
34129 "root files, since vfat itself does not support this."
34130 msgstr ""
34131
34132 # type: =item
34133 #. type: =item
34134 #: ../tools/virt-make-fs.pl:116
34135 msgid "I<minix>"
34136 msgstr ""
34137
34138 # type: textblock
34139 #. type: textblock
34140 #: ../tools/virt-make-fs.pl:118
34141 msgid ""
34142 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34143 "total filesystem size."
34144 msgstr ""
34145
34146 # type: verbatim
34147 #. type: verbatim
34148 #: ../tools/virt-make-fs.pl:125
34149 #, no-wrap
34150 msgid ""
34151 " virt-make-fs --type=minix input minixfs.img\n"
34152 "\n"
34153 msgstr ""
34154
34155 # type: =head2
34156 #. type: =head2
34157 #: ../tools/virt-make-fs.pl:127
34158 msgid "TO PARTITION OR NOT TO PARTITION"
34159 msgstr ""
34160
34161 # type: textblock
34162 #. type: textblock
34163 #: ../tools/virt-make-fs.pl:129
34164 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34165 msgstr ""
34166
34167 # type: textblock
34168 #. type: textblock
34169 #: ../tools/virt-make-fs.pl:131
34170 msgid ""
34171 "Adding a partition can make the disk image more compatible with certain "
34172 "virtualized operating systems which don't expect to see a filesystem "
34173 "directly located on a block device (Linux doesn't care and will happily "
34174 "handle both types)."
34175 msgstr ""
34176
34177 # type: textblock
34178 #. type: textblock
34179 #: ../tools/virt-make-fs.pl:136
34180 msgid ""
34181 "On the other hand, if you have a partition table then the output image is no "
34182 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34183 "directly on a partitioned disk image.  (However libguestfs tools such as "
34184 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34185 msgstr ""
34186
34187 # type: textblock
34188 #. type: textblock
34189 #: ../tools/virt-make-fs.pl:144
34190 msgid "Add an MBR partition:"
34191 msgstr ""
34192
34193 # type: verbatim
34194 #. type: verbatim
34195 #: ../tools/virt-make-fs.pl:146
34196 #, no-wrap
34197 msgid ""
34198 " virt-make-fs --partition -- input disk.img\n"
34199 "\n"
34200 msgstr ""
34201
34202 # type: textblock
34203 #. type: textblock
34204 #: ../tools/virt-make-fs.pl:148
34205 msgid ""
34206 "If the output disk image could be terabyte-sized or larger, it's better to "
34207 "use an EFI/GPT-compatible partition table:"
34208 msgstr ""
34209
34210 # type: verbatim
34211 #. type: verbatim
34212 #: ../tools/virt-make-fs.pl:151
34213 #, no-wrap
34214 msgid ""
34215 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34216 "\n"
34217 msgstr ""
34218
34219 # type: textblock
34220 #. type: textblock
34221 #: ../tools/virt-make-fs.pl:179
34222 msgid "Enable debugging information."
34223 msgstr ""
34224
34225 # type: =item
34226 #. type: =item
34227 #: ../tools/virt-make-fs.pl:185
34228 msgid "B<--size=E<lt>NE<gt>>"
34229 msgstr ""
34230
34231 # type: =item
34232 #. type: =item
34233 #: ../tools/virt-make-fs.pl:187
34234 msgid "B<--size=+E<lt>NE<gt>>"
34235 msgstr ""
34236
34237 # type: =item
34238 #. type: =item
34239 #: ../tools/virt-make-fs.pl:189
34240 msgid "B<-s E<lt>NE<gt>>"
34241 msgstr ""
34242
34243 # type: =item
34244 #. type: =item
34245 #: ../tools/virt-make-fs.pl:191
34246 msgid "B<-s +E<lt>NE<gt>>"
34247 msgstr ""
34248
34249 # type: textblock
34250 #. type: textblock
34251 #: ../tools/virt-make-fs.pl:193
34252 msgid ""
34253 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
34254 msgstr ""
34255
34256 # type: textblock
34257 #. type: textblock
34258 #: ../tools/virt-make-fs.pl:196
34259 msgid ""
34260 "If this option is I<not> given, then the output image will be just large "
34261 "enough to contain all the files, with not much wasted space."
34262 msgstr ""
34263
34264 # type: textblock
34265 #. type: textblock
34266 #: ../tools/virt-make-fs.pl:199
34267 msgid ""
34268 "To choose a fixed size output disk, specify an absolute number followed by b/"
34269 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34270 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34271 "files, else you will get an error."
34272 msgstr ""
34273
34274 # type: textblock
34275 #. type: textblock
34276 #: ../tools/virt-make-fs.pl:204
34277 msgid ""
34278 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34279 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34280 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
34281 "the input files, and (approximately) an extra 200 MB free space."
34282 msgstr ""
34283
34284 # type: textblock
34285 #. type: textblock
34286 #: ../tools/virt-make-fs.pl:210
34287 msgid ""
34288 "Note that virt-make-fs estimates free space, and therefore will not produce "
34289 "filesystems containing precisely the free space requested.  (It is much more "
34290 "expensive and time-consuming to produce a filesystem which has precisely the "
34291 "desired free space)."
34292 msgstr ""
34293
34294 # type: =item
34295 #. type: =item
34296 #: ../tools/virt-make-fs.pl:219
34297 msgid "B<--format=E<lt>fmtE<gt>>"
34298 msgstr ""
34299
34300 # type: =item
34301 #. type: =item
34302 #: ../tools/virt-make-fs.pl:221
34303 msgid "B<-F E<lt>fmtE<gt>>"
34304 msgstr ""
34305
34306 # type: textblock
34307 #. type: textblock
34308 #: ../tools/virt-make-fs.pl:223
34309 msgid "Choose the output disk image format."
34310 msgstr ""
34311
34312 # type: textblock
34313 #. type: textblock
34314 #: ../tools/virt-make-fs.pl:225
34315 msgid "The default is C<raw> (raw disk image)."
34316 msgstr ""
34317
34318 # type: textblock
34319 #. type: textblock
34320 #: ../tools/virt-make-fs.pl:227
34321 msgid ""
34322 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34323 "that would really make sense here is C<qcow2>."
34324 msgstr ""
34325
34326 # type: =item
34327 #. type: =item
34328 #: ../tools/virt-make-fs.pl:234
34329 msgid "B<--type=E<lt>fsE<gt>>"
34330 msgstr ""
34331
34332 # type: =item
34333 #. type: =item
34334 #: ../tools/virt-make-fs.pl:236
34335 msgid "B<-t E<lt>fsE<gt>>"
34336 msgstr ""
34337
34338 # type: textblock
34339 #. type: textblock
34340 #: ../tools/virt-make-fs.pl:238
34341 msgid "Choose the output filesystem type."
34342 msgstr ""
34343
34344 # type: textblock
34345 #. type: textblock
34346 #: ../tools/virt-make-fs.pl:240
34347 msgid "The default is C<ext2>."
34348 msgstr ""
34349
34350 # type: textblock
34351 #. type: textblock
34352 #: ../tools/virt-make-fs.pl:242
34353 msgid ""
34354 "Any filesystem which is supported read-write by libguestfs can be used here."
34355 msgstr ""
34356
34357 # type: =item
34358 #. type: =item
34359 #: ../tools/virt-make-fs.pl:249
34360 msgid "B<--partition>"
34361 msgstr ""
34362
34363 # type: =item
34364 #. type: =item
34365 #: ../tools/virt-make-fs.pl:251
34366 msgid "B<--partition=E<lt>parttypeE<gt>>"
34367 msgstr ""
34368
34369 # type: textblock
34370 #. type: textblock
34371 #: ../tools/virt-make-fs.pl:253
34372 msgid ""
34373 "If specified, this flag adds an MBR partition table to the output disk image."
34374 msgstr ""
34375
34376 # type: textblock
34377 #. type: textblock
34378 #: ../tools/virt-make-fs.pl:256
34379 msgid ""
34380 "You can change the partition table type, eg. C<--partition=gpt> for large "
34381 "disks."
34382 msgstr ""
34383
34384 # type: textblock
34385 #. type: textblock
34386 #: ../tools/virt-make-fs.pl:259
34387 msgid ""
34388 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
34389 "might consider the next parameter to be the partition type.  For example:"
34390 msgstr ""
34391
34392 # type: verbatim
34393 #. type: verbatim
34394 #: ../tools/virt-make-fs.pl:263
34395 #, no-wrap
34396 msgid ""
34397 " virt-make-fs --partition input.tar ...\n"
34398 "\n"
34399 msgstr ""
34400
34401 # type: textblock
34402 #. type: textblock
34403 #: ../tools/virt-make-fs.pl:265
34404 msgid ""
34405 "would cause virt-make-fs to think you wanted to use a partition type of "
34406 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
34407 "dash) between options and the input file argument:"
34408 msgstr ""
34409
34410 # type: verbatim
34411 #. type: verbatim
34412 #: ../tools/virt-make-fs.pl:269
34413 #, no-wrap
34414 msgid ""
34415 " virt-make-fs --partition -- input.tar ...\n"
34416 "\n"
34417 msgstr ""
34418
34419 #. type: textblock
34420 #: ../tools/virt-make-fs.pl:541
34421 msgid ""
34422 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34423 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34424 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34425 msgstr ""
34426
34427 # type: verbatim
34428 #. type: verbatim
34429 #: ../tools/virt-make-fs.pl:558
34430 #, no-wrap
34431 msgid ""
34432 " export LIBGUESTFS_DEBUG=1\n"
34433 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34434 "\n"
34435 msgstr ""
34436
34437 # type: textblock
34438 #. type: textblock
34439 #: ../tools/virt-make-fs.pl:561
34440 msgid ""
34441 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34442 "redhat.com/>"
34443 msgstr ""
34444
34445 # type: textblock
34446 #. type: textblock
34447 #: ../tools/virt-list-partitions.pl:32
34448 msgid ""
34449 "virt-list-partitions - List partitions in a virtual machine or disk image"
34450 msgstr ""
34451
34452 # type: verbatim
34453 #. type: verbatim
34454 #: ../tools/virt-list-partitions.pl:36
34455 #, no-wrap
34456 msgid ""
34457 " virt-list-partitions [--options] domname\n"
34458 "\n"
34459 msgstr ""
34460
34461 # type: verbatim
34462 #. type: verbatim
34463 #: ../tools/virt-list-partitions.pl:38
34464 #, no-wrap
34465 msgid ""
34466 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34467 "\n"
34468 msgstr ""
34469
34470 # type: textblock
34471 #. type: textblock
34472 #: ../tools/virt-list-partitions.pl:45
34473 msgid ""
34474 "C<virt-list-partitions> is a command line tool to list the partitions that "
34475 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34476 "first step to using L<virt-resize(1)>."
34477 msgstr ""
34478
34479 # type: textblock
34480 #. type: textblock
34481 #: ../tools/virt-list-partitions.pl:50
34482 msgid ""
34483 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34484 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34485 "> tool."
34486 msgstr ""
34487
34488 # type: =item
34489 #. type: =item
34490 #: ../tools/virt-list-partitions.pl:107
34491 msgid "B<-h> | B<--human-readable>"
34492 msgstr ""
34493
34494 # type: textblock
34495 #. type: textblock
34496 #: ../tools/virt-list-partitions.pl:109
34497 msgid "Show sizes in human-readable form (eg. \"1G\")."
34498 msgstr ""
34499
34500 # type: textblock
34501 #. type: textblock
34502 #: ../tools/virt-list-partitions.pl:117
34503 msgid ""
34504 "With this option, C<virt-list-partitions> displays the type and size of each "
34505 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34506 msgstr ""
34507
34508 # type: =item
34509 #. type: =item
34510 #: ../tools/virt-list-partitions.pl:124
34511 msgid "B<-t> | B<--total>"
34512 msgstr ""
34513
34514 # type: textblock
34515 #. type: textblock
34516 #: ../tools/virt-list-partitions.pl:126
34517 msgid ""
34518 "Display the total size of each block device (as a separate row or rows)."
34519 msgstr ""
34520
34521 # type: textblock
34522 #. type: textblock
34523 #: ../tools/virt-list-partitions.pl:259
34524 msgid ""
34525 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34526 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34527 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34528 msgstr ""
34529
34530 # type: textblock
34531 #. type: textblock
34532 #: ../tools/virt-list-partitions.pl:275
34533 msgid "Copyright (C) 2009-2010 Red Hat Inc."
34534 msgstr ""