Version 1.11.2.
[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-18 20:45+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 #: ../fish/guestfish.pod:177
21751 msgid ""
21752 "Using this flag is mostly equivalent to using the C<add> command, with "
21753 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21754 "the I<--format=...> flag was given."
21755 msgstr ""
21756
21757 # type: =item
21758 #. type: =item
21759 #: ../fish/guestfish.pod:181
21760 msgid "B<-c URI>"
21761 msgstr ""
21762
21763 # type: =item
21764 #. type: =item
21765 #: ../fish/guestfish.pod:183
21766 msgid "B<--connect URI>"
21767 msgstr ""
21768
21769 # type: textblock
21770 #. type: textblock
21771 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21772 msgid ""
21773 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21774 "URI to use.  The default is to use the default libvirt connection."
21775 msgstr ""
21776
21777 # type: =item
21778 #. type: =item
21779 #: ../fish/guestfish.pod:189
21780 msgid "B<--csh>"
21781 msgstr ""
21782
21783 # type: textblock
21784 #. type: textblock
21785 #: ../fish/guestfish.pod:191
21786 msgid ""
21787 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21788 "section L</REMOTE CONTROL AND CSH> below."
21789 msgstr ""
21790
21791 # type: =item
21792 #. type: =item
21793 #: ../fish/guestfish.pod:194
21794 msgid "B<-d libvirt-domain>"
21795 msgstr ""
21796
21797 # type: =item
21798 #. type: =item
21799 #: ../fish/guestfish.pod:196
21800 msgid "B<--domain libvirt-domain>"
21801 msgstr ""
21802
21803 # type: textblock
21804 #. type: textblock
21805 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21806 msgid ""
21807 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21808 "used, then any libvirt domain can be used.  However in write mode, only "
21809 "libvirt domains which are shut down can be named here."
21810 msgstr ""
21811
21812 # type: textblock
21813 #. type: textblock
21814 #: ../fish/guestfish.pod:202
21815 msgid ""
21816 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21817 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21818 "if the I<--format:...> flag was given."
21819 msgstr ""
21820
21821 # type: =item
21822 #. type: =item
21823 #: ../fish/guestfish.pod:206
21824 msgid "B<-D>"
21825 msgstr ""
21826
21827 # type: =item
21828 #. type: =item
21829 #: ../fish/guestfish.pod:208
21830 msgid "B<--no-dest-paths>"
21831 msgstr ""
21832
21833 # type: textblock
21834 #. type: textblock
21835 #: ../fish/guestfish.pod:210
21836 msgid ""
21837 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21838 "to hit the tab key to complete paths on the guest filesystem, but this "
21839 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21840 "allow this feature to be disabled."
21841 msgstr ""
21842
21843 # type: =item
21844 #. type: =item
21845 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21846 msgid "B<--echo-keys>"
21847 msgstr ""
21848
21849 # type: textblock
21850 #. type: textblock
21851 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21852 msgid ""
21853 "When prompting for keys and passphrases, guestfish normally turns echoing "
21854 "off so you cannot see what you are typing.  If you are not worried about "
21855 "Tempest attacks and there is no one else in the room you can specify this "
21856 "flag to see what you are typing."
21857 msgstr ""
21858
21859 # type: =item
21860 #. type: =item
21861 #: ../fish/guestfish.pod:222
21862 msgid "B<-f file>"
21863 msgstr ""
21864
21865 # type: =item
21866 #. type: =item
21867 #: ../fish/guestfish.pod:224
21868 msgid "B<--file file>"
21869 msgstr ""
21870
21871 # type: textblock
21872 #. type: textblock
21873 #: ../fish/guestfish.pod:226
21874 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21875 msgstr ""
21876
21877 # type: verbatim
21878 #. type: verbatim
21879 #: ../fish/guestfish.pod:229
21880 #, no-wrap
21881 msgid ""
21882 " #!/usr/bin/guestfish -f\n"
21883 "\n"
21884 msgstr ""
21885
21886 # type: =item
21887 #. type: =item
21888 #: ../fish/guestfish.pod:231
21889 msgid "B<--format=raw|qcow2|..>"
21890 msgstr ""
21891
21892 # type: =item
21893 #. type: =item
21894 #: ../fish/guestfish.pod:233
21895 msgid "B<--format>"
21896 msgstr ""
21897
21898 # type: textblock
21899 #. type: textblock
21900 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21901 msgid ""
21902 "The default for the I<-a> option is to auto-detect the format of the disk "
21903 "image.  Using this forces the disk format for I<-a> options which follow on "
21904 "the command line.  Using I<--format> with no argument switches back to auto-"
21905 "detection for subsequent I<-a> options."
21906 msgstr ""
21907
21908 # type: verbatim
21909 #. type: verbatim
21910 #: ../fish/guestfish.pod:242
21911 #, no-wrap
21912 msgid ""
21913 " guestfish --format=raw -a disk.img\n"
21914 "\n"
21915 msgstr ""
21916
21917 # type: textblock
21918 #. type: textblock
21919 #: ../fish/guestfish.pod:244
21920 msgid "forces raw format (no auto-detection) for C<disk.img>."
21921 msgstr ""
21922
21923 # type: verbatim
21924 #. type: verbatim
21925 #: ../fish/guestfish.pod:246
21926 #, no-wrap
21927 msgid ""
21928 " guestfish --format=raw -a disk.img --format -a another.img\n"
21929 "\n"
21930 msgstr ""
21931
21932 # type: textblock
21933 #. type: textblock
21934 #: ../fish/guestfish.pod:248
21935 msgid ""
21936 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21937 "detection for C<another.img>."
21938 msgstr ""
21939
21940 # type: textblock
21941 #. type: textblock
21942 #: ../fish/guestfish.pod:251
21943 msgid ""
21944 "If you have untrusted raw-format guest disk images, you should use this "
21945 "option to specify the disk format.  This avoids a possible security problem "
21946 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21947 msgstr ""
21948
21949 # type: =item
21950 #. type: =item
21951 #: ../fish/guestfish.pod:256
21952 msgid "B<-i>"
21953 msgstr ""
21954
21955 # type: =item
21956 #. type: =item
21957 #: ../fish/guestfish.pod:258
21958 msgid "B<--inspector>"
21959 msgstr ""
21960
21961 # type: textblock
21962 #. type: textblock
21963 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21964 msgid ""
21965 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21966 "system and mount filesystems as they would be mounted on the real virtual "
21967 "machine."
21968 msgstr ""
21969
21970 # type: textblock
21971 #. type: textblock
21972 #: ../fish/guestfish.pod:264
21973 msgid "Typical usage is either:"
21974 msgstr ""
21975
21976 # type: verbatim
21977 #. type: verbatim
21978 #: ../fish/guestfish.pod:266
21979 #, no-wrap
21980 msgid ""
21981 " guestfish -d myguest -i\n"
21982 "\n"
21983 msgstr ""
21984
21985 # type: textblock
21986 #. type: textblock
21987 #: ../fish/guestfish.pod:268
21988 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21989 msgstr ""
21990
21991 # type: verbatim
21992 #. type: verbatim
21993 #: ../fish/guestfish.pod:270
21994 #, no-wrap
21995 msgid ""
21996 " guestfish --ro -d myguest -i\n"
21997 "\n"
21998 msgstr ""
21999
22000 # type: textblock
22001 #. type: textblock
22002 #: ../fish/guestfish.pod:272
22003 msgid "(for active domains, readonly), or specify the block device directly:"
22004 msgstr ""
22005
22006 # type: verbatim
22007 #. type: verbatim
22008 #: ../fish/guestfish.pod:274
22009 #, no-wrap
22010 msgid ""
22011 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
22012 "\n"
22013 msgstr ""
22014
22015 # type: textblock
22016 #. type: textblock
22017 #: ../fish/guestfish.pod:276
22018 msgid ""
22019 "Note that the command line syntax changed slightly over older versions of "
22020 "guestfish.  You can still use the old syntax:"
22021 msgstr ""
22022
22023 # type: verbatim
22024 #. type: verbatim
22025 #: ../fish/guestfish.pod:279
22026 #, no-wrap
22027 msgid ""
22028 " guestfish [--ro] -i disk.img\n"
22029 "\n"
22030 msgstr ""
22031
22032 # type: verbatim
22033 #. type: verbatim
22034 #: ../fish/guestfish.pod:281
22035 #, no-wrap
22036 msgid ""
22037 " guestfish [--ro] -i libvirt-domain\n"
22038 "\n"
22039 msgstr ""
22040
22041 # type: textblock
22042 #. type: textblock
22043 #: ../fish/guestfish.pod:283
22044 msgid ""
22045 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
22046 "then using other commands to mount the filesystems that were found."
22047 msgstr ""
22048
22049 # type: =item
22050 #. type: =item
22051 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
22052 msgid "B<--keys-from-stdin>"
22053 msgstr ""
22054
22055 # type: textblock
22056 #. type: textblock
22057 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
22058 msgid ""
22059 "Read key or passphrase parameters from stdin.  The default is to try to read "
22060 "passphrases from the user by opening C</dev/tty>."
22061 msgstr ""
22062
22063 # type: =item
22064 #. type: =item
22065 #: ../fish/guestfish.pod:292
22066 msgid "B<--listen>"
22067 msgstr ""
22068
22069 # type: textblock
22070 #. type: textblock
22071 #: ../fish/guestfish.pod:294
22072 msgid ""
22073 "Fork into the background and listen for remote commands.  See section L</"
22074 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
22075 msgstr ""
22076
22077 #. type: =item
22078 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
22079 msgid "B<--live>"
22080 msgstr ""
22081
22082 #. type: textblock
22083 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
22084 msgid ""
22085 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
22086 "ATTACHING TO RUNNING DAEMONS>)."
22087 msgstr ""
22088
22089 #. type: =item
22090 #: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:151
22091 msgid "B<-m dev[:mountpoint[:options]]>"
22092 msgstr ""
22093
22094 #. type: =item
22095 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
22096 msgid "B<--mount dev[:mountpoint[:options]]>"
22097 msgstr ""
22098
22099 # type: textblock
22100 #. type: textblock
22101 #: ../fish/guestfish.pod:306
22102 msgid "Mount the named partition or logical volume on the given mountpoint."
22103 msgstr ""
22104
22105 # type: textblock
22106 #. type: textblock
22107 #: ../fish/guestfish.pod:308
22108 msgid "If the mountpoint is omitted, it defaults to C</>."
22109 msgstr ""
22110
22111 # type: textblock
22112 #. type: textblock
22113 #: ../fish/guestfish.pod:310
22114 msgid "You have to mount something on C</> before most commands will work."
22115 msgstr ""
22116
22117 # type: textblock
22118 #. type: textblock
22119 #: ../fish/guestfish.pod:312
22120 msgid ""
22121 "If any I<-m> or I<--mount> options are given, the guest is automatically "
22122 "launched."
22123 msgstr ""
22124
22125 # type: textblock
22126 #. type: textblock
22127 #: ../fish/guestfish.pod:315
22128 msgid ""
22129 "If you don't know what filesystems a disk image contains, you can either run "
22130 "guestfish without this option, then list the partitions, filesystems and LVs "
22131 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22132 "commands), or you can use the L<virt-filesystems(1)> program."
22133 msgstr ""
22134
22135 #. type: textblock
22136 #: ../fish/guestfish.pod:321 ../fuse/guestmount.pod:161
22137 msgid ""
22138 "The third (and rarely used) part of the mount parameter is the list of mount "
22139 "options used to mount the underlying filesystem.  If this is not given, then "
22140 "the mount options are either the empty string or C<ro> (the latter if the "
22141 "I<--ro> flag is used).  By specifying the mount options, you override this "
22142 "default choice.  Probably the only time you would use this is to enable ACLs "
22143 "and/or extended attributes if the filesystem can support them:"
22144 msgstr ""
22145
22146 #. type: verbatim
22147 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:169
22148 #, no-wrap
22149 msgid ""
22150 " -m /dev/sda1:/:acl,user_xattr\n"
22151 "\n"
22152 msgstr ""
22153
22154 #. type: textblock
22155 #: ../fish/guestfish.pod:331
22156 msgid "Using this flag is equivalent to using the C<mount-options> command."
22157 msgstr ""
22158
22159 # type: =item
22160 #. type: =item
22161 #: ../fish/guestfish.pod:333
22162 msgid "B<-n>"
22163 msgstr ""
22164
22165 # type: =item
22166 #. type: =item
22167 #: ../fish/guestfish.pod:335
22168 msgid "B<--no-sync>"
22169 msgstr ""
22170
22171 # type: textblock
22172 #. type: textblock
22173 #: ../fish/guestfish.pod:337
22174 msgid ""
22175 "Disable autosync.  This is enabled by default.  See the discussion of "
22176 "autosync in the L<guestfs(3)> manpage."
22177 msgstr ""
22178
22179 # type: =item
22180 #. type: =item
22181 #: ../fish/guestfish.pod:340
22182 msgid "B<-N type>"
22183 msgstr ""
22184
22185 # type: =item
22186 #. type: =item
22187 #: ../fish/guestfish.pod:342
22188 msgid "B<--new type>"
22189 msgstr ""
22190
22191 # type: =item
22192 #. type: =item
22193 #: ../fish/guestfish.pod:344
22194 msgid "B<-N help>"
22195 msgstr ""
22196
22197 # type: textblock
22198 #. type: textblock
22199 #: ../fish/guestfish.pod:346
22200 msgid ""
22201 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22202 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22203 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22204 "IMAGES> below."
22205 msgstr ""
22206
22207 # type: =item
22208 #. type: =item
22209 #: ../fish/guestfish.pod:351
22210 msgid "B<--progress-bars>"
22211 msgstr ""
22212
22213 # type: textblock
22214 #. type: textblock
22215 #: ../fish/guestfish.pod:353
22216 msgid "Enable progress bars, even when guestfish is used non-interactively."
22217 msgstr ""
22218
22219 # type: textblock
22220 #. type: textblock
22221 #: ../fish/guestfish.pod:355
22222 msgid ""
22223 "Progress bars are enabled by default when guestfish is used as an "
22224 "interactive shell."
22225 msgstr ""
22226
22227 # type: =item
22228 #. type: =item
22229 #: ../fish/guestfish.pod:358
22230 msgid "B<--no-progress-bars>"
22231 msgstr ""
22232
22233 # type: textblock
22234 #. type: textblock
22235 #: ../fish/guestfish.pod:360
22236 msgid "Disable progress bars."
22237 msgstr ""
22238
22239 # type: =item
22240 #. type: =item
22241 #: ../fish/guestfish.pod:362
22242 msgid "B<--remote[=pid]>"
22243 msgstr ""
22244
22245 # type: textblock
22246 #. type: textblock
22247 #: ../fish/guestfish.pod:364
22248 msgid ""
22249 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22250 "CONTROL GUESTFISH OVER A SOCKET> below."
22251 msgstr ""
22252
22253 # type: =item
22254 #. type: =item
22255 #: ../fish/guestfish.pod:367
22256 msgid "B<-r>"
22257 msgstr ""
22258
22259 # type: =item
22260 #. type: =item
22261 #: ../fish/guestfish.pod:369
22262 msgid "B<--ro>"
22263 msgstr ""
22264
22265 # type: textblock
22266 #. type: textblock
22267 #: ../fish/guestfish.pod:371
22268 msgid ""
22269 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22270 "mounts are done read-only."
22271 msgstr ""
22272
22273 # type: textblock
22274 #. type: textblock
22275 #: ../fish/guestfish.pod:374
22276 msgid ""
22277 "The option must always be used if the disk image or virtual machine might be "
22278 "running, and is generally recommended in cases where you don't need write "
22279 "access to the disk."
22280 msgstr ""
22281
22282 # type: textblock
22283 #. type: textblock
22284 #: ../fish/guestfish.pod:378
22285 msgid ""
22286 "Note that prepared disk images created with I<-N> are not affected by this "
22287 "option.  Also commands like C<add> are not affected - you have to specify "
22288 "the C<readonly:true> option explicitly if you need it."
22289 msgstr ""
22290
22291 # type: textblock
22292 #. type: textblock
22293 #: ../fish/guestfish.pod:382
22294 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22295 msgstr ""
22296
22297 # type: =item
22298 #. type: =item
22299 #: ../fish/guestfish.pod:384 ../fuse/guestmount.pod:225
22300 msgid "B<--selinux>"
22301 msgstr ""
22302
22303 # type: textblock
22304 #. type: textblock
22305 #: ../fish/guestfish.pod:386
22306 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22307 msgstr ""
22308
22309 # type: =item
22310 #. type: =item
22311 #: ../fish/guestfish.pod:388
22312 msgid "B<-v>"
22313 msgstr ""
22314
22315 # type: =item
22316 #. type: =item
22317 #: ../fish/guestfish.pod:390
22318 msgid "B<--verbose>"
22319 msgstr ""
22320
22321 # type: textblock
22322 #. type: textblock
22323 #: ../fish/guestfish.pod:392
22324 msgid ""
22325 "Enable very verbose messages.  This is particularly useful if you find a bug."
22326 msgstr ""
22327
22328 # type: =item
22329 #. type: =item
22330 #: ../fish/guestfish.pod:395
22331 msgid "B<-V>"
22332 msgstr ""
22333
22334 # type: =item
22335 #. type: =item
22336 #: ../fish/guestfish.pod:397 ../tools/virt-edit.pl:97
22337 #: ../tools/virt-win-reg.pl:112 ../tools/virt-list-filesystems.pl:69
22338 #: ../tools/virt-tar.pl:119 ../tools/virt-make-fs.pl:169
22339 #: ../tools/virt-list-partitions.pl:70
22340 msgid "B<--version>"
22341 msgstr ""
22342
22343 # type: textblock
22344 #. type: textblock
22345 #: ../fish/guestfish.pod:399
22346 msgid "Display the guestfish / libguestfs version number and exit."
22347 msgstr ""
22348
22349 # type: =item
22350 #. type: =item
22351 #: ../fish/guestfish.pod:401
22352 msgid "B<-w>"
22353 msgstr ""
22354
22355 # type: =item
22356 #. type: =item
22357 #: ../fish/guestfish.pod:403
22358 msgid "B<--rw>"
22359 msgstr ""
22360
22361 #. type: textblock
22362 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:239
22363 msgid ""
22364 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22365 "mounts are done read-write."
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../fish/guestfish.pod:408
22370 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
22371 msgstr ""
22372
22373 # type: =item
22374 #. type: =item
22375 #: ../fish/guestfish.pod:410
22376 msgid "B<-x>"
22377 msgstr ""
22378
22379 # type: textblock
22380 #. type: textblock
22381 #: ../fish/guestfish.pod:412
22382 msgid "Echo each command before executing it."
22383 msgstr ""
22384
22385 # type: =head1
22386 #. type: =head1
22387 #: ../fish/guestfish.pod:416
22388 msgid "COMMANDS ON COMMAND LINE"
22389 msgstr ""
22390
22391 # type: textblock
22392 #. type: textblock
22393 #: ../fish/guestfish.pod:418
22394 msgid ""
22395 "Any additional (non-option) arguments are treated as commands to execute."
22396 msgstr ""
22397
22398 # type: textblock
22399 #. type: textblock
22400 #: ../fish/guestfish.pod:421
22401 msgid ""
22402 "Commands to execute should be separated by a colon (C<:>), where the colon "
22403 "is a separate parameter.  Thus:"
22404 msgstr ""
22405
22406 # type: verbatim
22407 #. type: verbatim
22408 #: ../fish/guestfish.pod:424
22409 #, no-wrap
22410 msgid ""
22411 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22412 "\n"
22413 msgstr ""
22414
22415 # type: textblock
22416 #. type: textblock
22417 #: ../fish/guestfish.pod:426
22418 msgid ""
22419 "If there are no additional arguments, then we enter a shell, either an "
22420 "interactive shell with a prompt (if the input is a terminal) or a non-"
22421 "interactive shell."
22422 msgstr ""
22423
22424 # type: textblock
22425 #. type: textblock
22426 #: ../fish/guestfish.pod:430
22427 msgid ""
22428 "In either command line mode or non-interactive shell, the first command that "
22429 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22430 "prompt) if a command fails, you can continue to enter commands."
22431 msgstr ""
22432
22433 # type: =head1
22434 #. type: =head1
22435 #: ../fish/guestfish.pod:435
22436 msgid "USING launch (OR run)"
22437 msgstr ""
22438
22439 # type: textblock
22440 #. type: textblock
22441 #: ../fish/guestfish.pod:437
22442 msgid ""
22443 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22444 "then launch it, then mount any disks you need, and finally issue actions/"
22445 "commands.  So the general order of the day is:"
22446 msgstr ""
22447
22448 # type: textblock
22449 #. type: textblock
22450 #: ../fish/guestfish.pod:445
22451 msgid "add or -a/--add"
22452 msgstr ""
22453
22454 # type: textblock
22455 #. type: textblock
22456 #: ../fish/guestfish.pod:449
22457 msgid "launch (aka run)"
22458 msgstr ""
22459
22460 # type: textblock
22461 #. type: textblock
22462 #: ../fish/guestfish.pod:453
22463 msgid "mount or -m/--mount"
22464 msgstr ""
22465
22466 # type: textblock
22467 #. type: textblock
22468 #: ../fish/guestfish.pod:457
22469 msgid "any other commands"
22470 msgstr ""
22471
22472 # type: textblock
22473 #. type: textblock
22474 #: ../fish/guestfish.pod:461
22475 msgid ""
22476 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
22477 "guest before mounting or performing any other commands."
22478 msgstr ""
22479
22480 # type: textblock
22481 #. type: textblock
22482 #: ../fish/guestfish.pod:464
22483 msgid ""
22484 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
22485 "I<--new> options were given then C<run> is done automatically, simply "
22486 "because guestfish can't perform the action you asked for without doing this."
22487 msgstr ""
22488
22489 # type: =head1
22490 #. type: =head1
22491 #: ../fish/guestfish.pod:469
22492 msgid "OPENING DISKS FOR READ AND WRITE"
22493 msgstr ""
22494
22495 #. type: textblock
22496 #: ../fish/guestfish.pod:471
22497 msgid ""
22498 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
22499 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
22500 "I<-i> and I<-m> open disk images read-only or for writing."
22501 msgstr ""
22502
22503 #. type: textblock
22504 #: ../fish/guestfish.pod:476
22505 msgid ""
22506 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
22507 "opening disk images supplied on the command line for write.  To open a disk "
22508 "image read-only you have to do I<-a image --ro>."
22509 msgstr ""
22510
22511 # type: textblock
22512 #. type: textblock
22513 #: ../fish/guestfish.pod:480
22514 msgid ""
22515 "This matters: If you accidentally open a live VM disk image writable then "
22516 "you will cause irreversible disk corruption."
22517 msgstr ""
22518
22519 #. type: textblock
22520 #: ../fish/guestfish.pod:483
22521 msgid ""
22522 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
22523 "images will be opened read-only.  You will have to either specify "
22524 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
22525 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
22526 "access for disk images specified by those other command line options."
22527 msgstr ""
22528
22529 #. type: textblock
22530 #: ../fish/guestfish.pod:490
22531 msgid ""
22532 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
22533 "which does nothing (it is already the default).  However it is highly "
22534 "recommended that you use this option to indicate that you need write access, "
22535 "and prepare your scripts for the day when this option will be required for "
22536 "write access."
22537 msgstr ""
22538
22539 # type: textblock
22540 #. type: textblock
22541 #: ../fish/guestfish.pod:496
22542 msgid ""
22543 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
22544 "other libguestfs program apart from guestfish and guestmount."
22545 msgstr ""
22546
22547 # type: =head1
22548 #. type: =head1
22549 #: ../fish/guestfish.pod:499
22550 msgid "QUOTING"
22551 msgstr ""
22552
22553 # type: textblock
22554 #. type: textblock
22555 #: ../fish/guestfish.pod:501
22556 msgid ""
22557 "You can quote ordinary parameters using either single or double quotes.  For "
22558 "example:"
22559 msgstr ""
22560
22561 # type: verbatim
22562 #. type: verbatim
22563 #: ../fish/guestfish.pod:504
22564 #, no-wrap
22565 msgid ""
22566 " add \"file with a space.img\"\n"
22567 "\n"
22568 msgstr ""
22569
22570 # type: verbatim
22571 #. type: verbatim
22572 #: ../fish/guestfish.pod:506
22573 #, no-wrap
22574 msgid ""
22575 " rm '/file name'\n"
22576 "\n"
22577 msgstr ""
22578
22579 # type: verbatim
22580 #. type: verbatim
22581 #: ../fish/guestfish.pod:508
22582 #, no-wrap
22583 msgid ""
22584 " rm '/\"'\n"
22585 "\n"
22586 msgstr ""
22587
22588 # type: textblock
22589 #. type: textblock
22590 #: ../fish/guestfish.pod:510
22591 msgid ""
22592 "A few commands require a list of strings to be passed.  For these, use a "
22593 "whitespace-separated list, enclosed in quotes.  Strings containing "
22594 "whitespace to be passed through must be enclosed in single quotes.  A "
22595 "literal single quote must be escaped with a backslash."
22596 msgstr ""
22597
22598 # type: verbatim
22599 #. type: verbatim
22600 #: ../fish/guestfish.pod:515
22601 #, no-wrap
22602 msgid ""
22603 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
22604 " command \"/bin/echo 'foo      bar'\"\n"
22605 " command \"/bin/echo \\'foo\\'\"\n"
22606 "\n"
22607 msgstr ""
22608
22609 # type: =head1
22610 #. type: =head1
22611 #: ../fish/guestfish.pod:519
22612 msgid "OPTIONAL ARGUMENTS"
22613 msgstr ""
22614
22615 # type: textblock
22616 #. type: textblock
22617 #: ../fish/guestfish.pod:521
22618 msgid ""
22619 "Some commands take optional arguments.  These arguments appear in this "
22620 "documentation as C<[argname:..]>.  You can use them as in these examples:"
22621 msgstr ""
22622
22623 # type: verbatim
22624 #. type: verbatim
22625 #: ../fish/guestfish.pod:525
22626 #, no-wrap
22627 msgid ""
22628 " add-drive-opts filename\n"
22629 "\n"
22630 msgstr ""
22631
22632 # type: verbatim
22633 #. type: verbatim
22634 #: ../fish/guestfish.pod:527
22635 #, no-wrap
22636 msgid ""
22637 " add-drive-opts filename readonly:true\n"
22638 "\n"
22639 msgstr ""
22640
22641 # type: verbatim
22642 #. type: verbatim
22643 #: ../fish/guestfish.pod:529
22644 #, no-wrap
22645 msgid ""
22646 " add-drive-opts filename format:qcow2 readonly:false\n"
22647 "\n"
22648 msgstr ""
22649
22650 # type: textblock
22651 #. type: textblock
22652 #: ../fish/guestfish.pod:531
22653 msgid ""
22654 "Each optional argument can appear at most once.  All optional arguments must "
22655 "appear after the required ones."
22656 msgstr ""
22657
22658 # type: =head1
22659 #. type: =head1
22660 #: ../fish/guestfish.pod:534
22661 msgid "NUMBERS"
22662 msgstr ""
22663
22664 # type: textblock
22665 #. type: textblock
22666 #: ../fish/guestfish.pod:536
22667 msgid ""
22668 "This section applies to all commands which can take integers as parameters."
22669 msgstr ""
22670
22671 # type: =head2
22672 #. type: =head2
22673 #: ../fish/guestfish.pod:539
22674 msgid "SIZE SUFFIX"
22675 msgstr ""
22676
22677 # type: textblock
22678 #. type: textblock
22679 #: ../fish/guestfish.pod:541
22680 msgid ""
22681 "When the command takes a parameter measured in bytes, you can use one of the "
22682 "following suffixes to specify kilobytes, megabytes and larger sizes:"
22683 msgstr ""
22684
22685 # type: =item
22686 #. type: =item
22687 #: ../fish/guestfish.pod:547
22688 msgid "B<k> or B<K> or B<KiB>"
22689 msgstr ""
22690
22691 # type: textblock
22692 #. type: textblock
22693 #: ../fish/guestfish.pod:549
22694 msgid "The size in kilobytes (multiplied by 1024)."
22695 msgstr ""
22696
22697 # type: =item
22698 #. type: =item
22699 #: ../fish/guestfish.pod:551
22700 msgid "B<KB>"
22701 msgstr ""
22702
22703 # type: textblock
22704 #. type: textblock
22705 #: ../fish/guestfish.pod:553
22706 msgid "The size in SI 1000 byte units."
22707 msgstr ""
22708
22709 # type: =item
22710 #. type: =item
22711 #: ../fish/guestfish.pod:555
22712 msgid "B<M> or B<MiB>"
22713 msgstr ""
22714
22715 # type: textblock
22716 #. type: textblock
22717 #: ../fish/guestfish.pod:557
22718 msgid "The size in megabytes (multiplied by 1048576)."
22719 msgstr ""
22720
22721 # type: =item
22722 #. type: =item
22723 #: ../fish/guestfish.pod:559
22724 msgid "B<MB>"
22725 msgstr ""
22726
22727 # type: textblock
22728 #. type: textblock
22729 #: ../fish/guestfish.pod:561
22730 msgid "The size in SI 1000000 byte units."
22731 msgstr ""
22732
22733 # type: =item
22734 #. type: =item
22735 #: ../fish/guestfish.pod:563
22736 msgid "B<G> or B<GiB>"
22737 msgstr ""
22738
22739 # type: textblock
22740 #. type: textblock
22741 #: ../fish/guestfish.pod:565
22742 msgid "The size in gigabytes (multiplied by 2**30)."
22743 msgstr ""
22744
22745 # type: =item
22746 #. type: =item
22747 #: ../fish/guestfish.pod:567
22748 msgid "B<GB>"
22749 msgstr ""
22750
22751 # type: textblock
22752 #. type: textblock
22753 #: ../fish/guestfish.pod:569
22754 msgid "The size in SI 10**9 byte units."
22755 msgstr ""
22756
22757 # type: =item
22758 #. type: =item
22759 #: ../fish/guestfish.pod:571
22760 msgid "B<T> or B<TiB>"
22761 msgstr ""
22762
22763 # type: textblock
22764 #. type: textblock
22765 #: ../fish/guestfish.pod:573
22766 msgid "The size in terabytes (multiplied by 2**40)."
22767 msgstr ""
22768
22769 # type: =item
22770 #. type: =item
22771 #: ../fish/guestfish.pod:575
22772 msgid "B<TB>"
22773 msgstr ""
22774
22775 # type: textblock
22776 #. type: textblock
22777 #: ../fish/guestfish.pod:577
22778 msgid "The size in SI 10**12 byte units."
22779 msgstr ""
22780
22781 # type: =item
22782 #. type: =item
22783 #: ../fish/guestfish.pod:579
22784 msgid "B<P> or B<PiB>"
22785 msgstr ""
22786
22787 # type: textblock
22788 #. type: textblock
22789 #: ../fish/guestfish.pod:581
22790 msgid "The size in petabytes (multiplied by 2**50)."
22791 msgstr ""
22792
22793 # type: =item
22794 #. type: =item
22795 #: ../fish/guestfish.pod:583
22796 msgid "B<PB>"
22797 msgstr ""
22798
22799 # type: textblock
22800 #. type: textblock
22801 #: ../fish/guestfish.pod:585
22802 msgid "The size in SI 10**15 byte units."
22803 msgstr ""
22804
22805 # type: =item
22806 #. type: =item
22807 #: ../fish/guestfish.pod:587
22808 msgid "B<E> or B<EiB>"
22809 msgstr ""
22810
22811 # type: textblock
22812 #. type: textblock
22813 #: ../fish/guestfish.pod:589
22814 msgid "The size in exabytes (multiplied by 2**60)."
22815 msgstr ""
22816
22817 # type: =item
22818 #. type: =item
22819 #: ../fish/guestfish.pod:591
22820 msgid "B<EB>"
22821 msgstr ""
22822
22823 # type: textblock
22824 #. type: textblock
22825 #: ../fish/guestfish.pod:593
22826 msgid "The size in SI 10**18 byte units."
22827 msgstr ""
22828
22829 # type: =item
22830 #. type: =item
22831 #: ../fish/guestfish.pod:595
22832 msgid "B<Z> or B<ZiB>"
22833 msgstr ""
22834
22835 # type: textblock
22836 #. type: textblock
22837 #: ../fish/guestfish.pod:597
22838 msgid "The size in zettabytes (multiplied by 2**70)."
22839 msgstr ""
22840
22841 # type: =item
22842 #. type: =item
22843 #: ../fish/guestfish.pod:599
22844 msgid "B<ZB>"
22845 msgstr ""
22846
22847 # type: textblock
22848 #. type: textblock
22849 #: ../fish/guestfish.pod:601
22850 msgid "The size in SI 10**21 byte units."
22851 msgstr ""
22852
22853 # type: =item
22854 #. type: =item
22855 #: ../fish/guestfish.pod:603
22856 msgid "B<Y> or B<YiB>"
22857 msgstr ""
22858
22859 # type: textblock
22860 #. type: textblock
22861 #: ../fish/guestfish.pod:605
22862 msgid "The size in yottabytes (multiplied by 2**80)."
22863 msgstr ""
22864
22865 # type: =item
22866 #. type: =item
22867 #: ../fish/guestfish.pod:607
22868 msgid "B<YB>"
22869 msgstr ""
22870
22871 # type: textblock
22872 #. type: textblock
22873 #: ../fish/guestfish.pod:609
22874 msgid "The size in SI 10**24 byte units."
22875 msgstr ""
22876
22877 # type: verbatim
22878 #. type: verbatim
22879 #: ../fish/guestfish.pod:615
22880 #, no-wrap
22881 msgid ""
22882 " truncate-size /file 1G\n"
22883 "\n"
22884 msgstr ""
22885
22886 # type: textblock
22887 #. type: textblock
22888 #: ../fish/guestfish.pod:617
22889 msgid "would truncate the file to 1 gigabyte."
22890 msgstr ""
22891
22892 # type: textblock
22893 #. type: textblock
22894 #: ../fish/guestfish.pod:619
22895 msgid ""
22896 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22897 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22898 "suffix will probably not do what you expect."
22899 msgstr ""
22900
22901 # type: =head2
22902 #. type: =head2
22903 #: ../fish/guestfish.pod:623
22904 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22905 msgstr ""
22906
22907 # type: textblock
22908 #. type: textblock
22909 #: ../fish/guestfish.pod:625
22910 msgid ""
22911 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22912 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22913 msgstr ""
22914
22915 # type: verbatim
22916 #. type: verbatim
22917 #: ../fish/guestfish.pod:628
22918 #, no-wrap
22919 msgid ""
22920 " 1234      decimal number 1234\n"
22921 " 02322     octal number, equivalent to decimal 1234\n"
22922 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22923 "\n"
22924 msgstr ""
22925
22926 # type: textblock
22927 #. type: textblock
22928 #: ../fish/guestfish.pod:632
22929 msgid ""
22930 "When using the C<chmod> command, you almost always want to specify an octal "
22931 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22932 "L<chmod(1)> program):"
22933 msgstr ""
22934
22935 # type: verbatim
22936 #. type: verbatim
22937 #: ../fish/guestfish.pod:636
22938 #, no-wrap
22939 msgid ""
22940 " chmod 0777 /public  # OK\n"
22941 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22942 "\n"
22943 msgstr ""
22944
22945 # type: textblock
22946 #. type: textblock
22947 #: ../fish/guestfish.pod:639
22948 msgid ""
22949 "Commands that return numbers usually print them in decimal, but some "
22950 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22951 "octal, preceeded by C<0>)."
22952 msgstr ""
22953
22954 # type: =head1
22955 #. type: =head1
22956 #: ../fish/guestfish.pod:643
22957 msgid "WILDCARDS AND GLOBBING"
22958 msgstr ""
22959
22960 # type: textblock
22961 #. type: textblock
22962 #: ../fish/guestfish.pod:645
22963 msgid ""
22964 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22965 "(globbing) by default.  So for example the following will not do what you "
22966 "expect:"
22967 msgstr ""
22968
22969 # type: verbatim
22970 #. type: verbatim
22971 #: ../fish/guestfish.pod:649
22972 #, no-wrap
22973 msgid ""
22974 " rm-rf /home/*\n"
22975 "\n"
22976 msgstr ""
22977
22978 # type: textblock
22979 #. type: textblock
22980 #: ../fish/guestfish.pod:651
22981 msgid ""
22982 "Assuming you don't have a directory called literally C</home/*> then the "
22983 "above command will return an error."
22984 msgstr ""
22985
22986 # type: textblock
22987 #. type: textblock
22988 #: ../fish/guestfish.pod:654
22989 msgid "To perform wildcard expansion, use the C<glob> command."
22990 msgstr ""
22991
22992 # type: verbatim
22993 #. type: verbatim
22994 #: ../fish/guestfish.pod:656
22995 #, no-wrap
22996 msgid ""
22997 " glob rm-rf /home/*\n"
22998 "\n"
22999 msgstr ""
23000
23001 # type: textblock
23002 #. type: textblock
23003 #: ../fish/guestfish.pod:658
23004 msgid ""
23005 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
23006 "many times), equivalent to:"
23007 msgstr ""
23008
23009 # type: verbatim
23010 #. type: verbatim
23011 #: ../fish/guestfish.pod:661
23012 #, no-wrap
23013 msgid ""
23014 " rm-rf /home/jim\n"
23015 " rm-rf /home/joe\n"
23016 " rm-rf /home/mary\n"
23017 "\n"
23018 msgstr ""
23019
23020 # type: textblock
23021 #. type: textblock
23022 #: ../fish/guestfish.pod:665
23023 msgid "C<glob> only works on simple guest paths and not on device names."
23024 msgstr ""
23025
23026 # type: textblock
23027 #. type: textblock
23028 #: ../fish/guestfish.pod:667
23029 msgid ""
23030 "If you have several parameters, each containing a wildcard, then glob will "
23031 "perform a Cartesian product."
23032 msgstr ""
23033
23034 # type: =head1
23035 #. type: =head1
23036 #: ../fish/guestfish.pod:670
23037 msgid "COMMENTS"
23038 msgstr ""
23039
23040 # type: textblock
23041 #. type: textblock
23042 #: ../fish/guestfish.pod:672
23043 msgid ""
23044 "Any line which starts with a I<#> character is treated as a comment and "
23045 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
23046 "a command.  For example:"
23047 msgstr ""
23048
23049 # type: verbatim
23050 #. type: verbatim
23051 #: ../fish/guestfish.pod:676
23052 #, no-wrap
23053 msgid ""
23054 " # this is a comment\n"
23055 "         # this is a comment\n"
23056 " foo # NOT a comment\n"
23057 "\n"
23058 msgstr ""
23059
23060 # type: textblock
23061 #. type: textblock
23062 #: ../fish/guestfish.pod:680
23063 msgid "Blank lines are also ignored."
23064 msgstr ""
23065
23066 # type: =head1
23067 #. type: =head1
23068 #: ../fish/guestfish.pod:682
23069 msgid "RUNNING COMMANDS LOCALLY"
23070 msgstr ""
23071
23072 # type: textblock
23073 #. type: textblock
23074 #: ../fish/guestfish.pod:684
23075 msgid ""
23076 "Any line which starts with a I<!> character is treated as a command sent to "
23077 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
23078 msgstr ""
23079
23080 # type: verbatim
23081 #. type: verbatim
23082 #: ../fish/guestfish.pod:688
23083 #, no-wrap
23084 msgid ""
23085 " !mkdir local\n"
23086 " tgz-out /remote local/remote-data.tar.gz\n"
23087 "\n"
23088 msgstr ""
23089
23090 # type: textblock
23091 #. type: textblock
23092 #: ../fish/guestfish.pod:691
23093 msgid ""
23094 "will create a directory C<local> on the host, and then export the contents "
23095 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
23096 "(See C<tgz-out>)."
23097 msgstr ""
23098
23099 # type: textblock
23100 #. type: textblock
23101 #: ../fish/guestfish.pod:695
23102 msgid ""
23103 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23104 "effect, due to the way that subprocesses work in Unix."
23105 msgstr ""
23106
23107 #. type: =head2
23108 #: ../fish/guestfish.pod:698
23109 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23110 msgstr ""
23111
23112 #. type: textblock
23113 #: ../fish/guestfish.pod:700
23114 msgid ""
23115 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23116 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23117 "and executed as guestfish commands."
23118 msgstr ""
23119
23120 #. type: textblock
23121 #: ../fish/guestfish.pod:704
23122 msgid ""
23123 "Thus you can use shell script to construct arbitrary guestfish commands "
23124 "which are then parsed by guestfish."
23125 msgstr ""
23126
23127 #. type: textblock
23128 #: ../fish/guestfish.pod:707
23129 msgid ""
23130 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23131 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23132 "if we use a shell script to create the guestfish commands for us:"
23133 msgstr ""
23134
23135 #. type: verbatim
23136 #: ../fish/guestfish.pod:712
23137 #, no-wrap
23138 msgid ""
23139 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23140 "\n"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../fish/guestfish.pod:714
23145 msgid "or with names like C</foo.001>:"
23146 msgstr ""
23147
23148 #. type: verbatim
23149 #: ../fish/guestfish.pod:716
23150 #, no-wrap
23151 msgid ""
23152 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23153 "\n"
23154 msgstr ""
23155
23156 #. type: textblock
23157 #: ../fish/guestfish.pod:718
23158 msgid ""
23159 "When using guestfish interactively it can be helpful to just run the shell "
23160 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23161 "ordinary I<!> local command), see what guestfish commands it would run, and "
23162 "when you are happy with those prepend the C<E<lt>> character to run the "
23163 "guestfish commands for real."
23164 msgstr ""
23165
23166 # type: =head1
23167 #. type: =head1
23168 #: ../fish/guestfish.pod:724
23169 msgid "PIPES"
23170 msgstr ""
23171
23172 # type: textblock
23173 #. type: textblock
23174 #: ../fish/guestfish.pod:726
23175 msgid ""
23176 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23177 "command (a guestfish command) to the second command (any host command).  For "
23178 "example:"
23179 msgstr ""
23180
23181 # type: verbatim
23182 #. type: verbatim
23183 #: ../fish/guestfish.pod:730
23184 #, no-wrap
23185 msgid ""
23186 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23187 "\n"
23188 msgstr ""
23189
23190 # type: textblock
23191 #. type: textblock
23192 #: ../fish/guestfish.pod:732
23193 msgid ""
23194 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23195 "program).  The above command would list all accounts in the guest filesystem "
23196 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23197 msgstr ""
23198
23199 # type: verbatim
23200 #. type: verbatim
23201 #: ../fish/guestfish.pod:737
23202 #, no-wrap
23203 msgid ""
23204 " hexdump /bin/ls | head\n"
23205 " list-devices | tail -1\n"
23206 " tgz-out / - | tar ztf -\n"
23207 "\n"
23208 msgstr ""
23209
23210 # type: textblock
23211 #. type: textblock
23212 #: ../fish/guestfish.pod:741
23213 msgid ""
23214 "The space before the pipe symbol is required, any space after the pipe "
23215 "symbol is optional.  Everything after the pipe symbol is just passed "
23216 "straight to the host shell, so it can contain redirections, globs and "
23217 "anything else that makes sense on the host side."
23218 msgstr ""
23219
23220 # type: textblock
23221 #. type: textblock
23222 #: ../fish/guestfish.pod:746
23223 msgid ""
23224 "To use a literal argument which begins with a pipe symbol, you have to quote "
23225 "it, eg:"
23226 msgstr ""
23227
23228 # type: verbatim
23229 #. type: verbatim
23230 #: ../fish/guestfish.pod:749
23231 #, no-wrap
23232 msgid ""
23233 " echo \"|\"\n"
23234 "\n"
23235 msgstr ""
23236
23237 # type: =head1
23238 #. type: =head1
23239 #: ../fish/guestfish.pod:751
23240 msgid "HOME DIRECTORIES"
23241 msgstr ""
23242
23243 # type: textblock
23244 #. type: textblock
23245 #: ../fish/guestfish.pod:753
23246 msgid ""
23247 "If a parameter starts with the character C<~> then the tilde may be expanded "
23248 "as a home directory path (either C<~> for the current user's home directory, "
23249 "or C<~user> for another user)."
23250 msgstr ""
23251
23252 # type: textblock
23253 #. type: textblock
23254 #: ../fish/guestfish.pod:757
23255 msgid ""
23256 "Note that home directory expansion happens for users known I<on the host>, "
23257 "not in the guest filesystem."
23258 msgstr ""
23259
23260 # type: textblock
23261 #. type: textblock
23262 #: ../fish/guestfish.pod:760
23263 msgid ""
23264 "To use a literal argument which begins with a tilde, you have to quote it, "
23265 "eg:"
23266 msgstr ""
23267
23268 # type: verbatim
23269 #. type: verbatim
23270 #: ../fish/guestfish.pod:763
23271 #, no-wrap
23272 msgid ""
23273 " echo \"~\"\n"
23274 "\n"
23275 msgstr ""
23276
23277 # type: textblock
23278 #. type: textblock
23279 #: ../fish/guestfish.pod:767
23280 msgid ""
23281 "Libguestfs has some support for Linux guests encrypted according to the "
23282 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23283 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23284 "LUKS is supported."
23285 msgstr ""
23286
23287 # type: textblock
23288 #. type: textblock
23289 #: ../fish/guestfish.pod:772
23290 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23291 msgstr ""
23292
23293 # type: verbatim
23294 #. type: verbatim
23295 #: ../fish/guestfish.pod:774
23296 #, no-wrap
23297 msgid ""
23298 " ><fs> vfs-type /dev/sda2\n"
23299 " crypto_LUKS\n"
23300 "\n"
23301 msgstr ""
23302
23303 # type: textblock
23304 #. type: textblock
23305 #: ../fish/guestfish.pod:777
23306 msgid ""
23307 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23308 "device called C</dev/mapper/luksdev>."
23309 msgstr ""
23310
23311 # type: verbatim
23312 #. type: verbatim
23313 #: ../fish/guestfish.pod:780
23314 #, no-wrap
23315 msgid ""
23316 " ><fs> luks-open /dev/sda2 luksdev\n"
23317 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23318 "\n"
23319 msgstr ""
23320
23321 # type: textblock
23322 #. type: textblock
23323 #: ../fish/guestfish.pod:783
23324 msgid ""
23325 "Finally you have to tell LVM to scan for volume groups on the newly created "
23326 "mapper device:"
23327 msgstr ""
23328
23329 # type: verbatim
23330 #. type: verbatim
23331 #: ../fish/guestfish.pod:786
23332 #, no-wrap
23333 msgid ""
23334 " vgscan\n"
23335 " vg-activate-all true\n"
23336 "\n"
23337 msgstr ""
23338
23339 # type: textblock
23340 #. type: textblock
23341 #: ../fish/guestfish.pod:789
23342 msgid "The logical volume(s) can now be mounted in the usual way."
23343 msgstr ""
23344
23345 # type: textblock
23346 #. type: textblock
23347 #: ../fish/guestfish.pod:791
23348 msgid ""
23349 "Before closing a LUKS device you must unmount any logical volumes on it and "
23350 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23351 "one.  Then you can close the mapper device:"
23352 msgstr ""
23353
23354 # type: verbatim
23355 #. type: verbatim
23356 #: ../fish/guestfish.pod:795
23357 #, no-wrap
23358 msgid ""
23359 " vg-activate false /dev/VG\n"
23360 " luks-close /dev/mapper/luksdev\n"
23361 "\n"
23362 msgstr ""
23363
23364 # type: =head1
23365 #. type: =head1
23366 #: ../fish/guestfish.pod:798 ../tools/virt-edit.pl:342
23367 msgid "WINDOWS PATHS"
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../fish/guestfish.pod:800
23372 msgid ""
23373 "If a path is prefixed with C<win:> then you can use Windows-style drive "
23374 "letters and paths (with some limitations).  The following commands are "
23375 "equivalent:"
23376 msgstr ""
23377
23378 # type: verbatim
23379 #. type: verbatim
23380 #: ../fish/guestfish.pod:804
23381 #, no-wrap
23382 msgid ""
23383 " file /WINDOWS/system32/config/system.LOG\n"
23384 "\n"
23385 msgstr ""
23386
23387 # type: verbatim
23388 #. type: verbatim
23389 #: ../fish/guestfish.pod:806
23390 #, no-wrap
23391 msgid ""
23392 " file win:\\windows\\system32\\config\\system.log\n"
23393 "\n"
23394 msgstr ""
23395
23396 #. type: verbatim
23397 #: ../fish/guestfish.pod:808
23398 #, no-wrap
23399 msgid ""
23400 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
23401 "\n"
23402 msgstr ""
23403
23404 #. type: textblock
23405 #: ../fish/guestfish.pod:810
23406 msgid ""
23407 "The parameter is rewritten \"behind the scenes\" by looking up the position "
23408 "where the drive is mounted, prepending that to the path, changing all "
23409 "backslash characters to forward slash, then resolving the result using L</"
23410 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
23411 "the parameter might be rewritten like this:"
23412 msgstr ""
23413
23414 #. type: verbatim
23415 #: ../fish/guestfish.pod:816
23416 #, no-wrap
23417 msgid ""
23418 " win:e:\\foo\\bar => /e/FOO/bar\n"
23419 "\n"
23420 msgstr ""
23421
23422 #. type: textblock
23423 #: ../fish/guestfish.pod:818
23424 msgid "This only works in argument positions that expect a path."
23425 msgstr ""
23426
23427 # type: =head1
23428 #. type: =head1
23429 #: ../fish/guestfish.pod:820
23430 msgid "UPLOADING AND DOWNLOADING FILES"
23431 msgstr ""
23432
23433 # type: textblock
23434 #. type: textblock
23435 #: ../fish/guestfish.pod:822
23436 msgid ""
23437 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23438 "others which upload from or download to a local file, you can use the "
23439 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23440 msgstr ""
23441
23442 # type: verbatim
23443 #. type: verbatim
23444 #: ../fish/guestfish.pod:826
23445 #, no-wrap
23446 msgid ""
23447 " upload - /foo\n"
23448 "\n"
23449 msgstr ""
23450
23451 # type: textblock
23452 #. type: textblock
23453 #: ../fish/guestfish.pod:828
23454 msgid ""
23455 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23456 msgstr ""
23457
23458 # type: verbatim
23459 #. type: verbatim
23460 #: ../fish/guestfish.pod:831
23461 #, no-wrap
23462 msgid ""
23463 " tar-out /etc - | tar tf -\n"
23464 "\n"
23465 msgstr ""
23466
23467 # type: textblock
23468 #. type: textblock
23469 #: ../fish/guestfish.pod:833
23470 msgid ""
23471 "writes the tarball to stdout and then pipes that into the external \"tar\" "
23472 "command (see L</PIPES>)."
23473 msgstr ""
23474
23475 # type: textblock
23476 #. type: textblock
23477 #: ../fish/guestfish.pod:836
23478 msgid ""
23479 "When using C<-> to read from stdin, the input is read up to the end of "
23480 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
23481 "some arbitrary end marker:"
23482 msgstr ""
23483
23484 # type: verbatim
23485 #. type: verbatim
23486 #: ../fish/guestfish.pod:840
23487 #, no-wrap
23488 msgid ""
23489 " upload -<<END /foo\n"
23490 " input line 1\n"
23491 " input line 2\n"
23492 " input line 3\n"
23493 " END\n"
23494 "\n"
23495 msgstr ""
23496
23497 # type: textblock
23498 #. type: textblock
23499 #: ../fish/guestfish.pod:846
23500 msgid ""
23501 "Any string of characters can be used instead of C<END>.  The end marker must "
23502 "appear on a line of its own, without any preceeding or following characters "
23503 "(not even spaces)."
23504 msgstr ""
23505
23506 # type: textblock
23507 #. type: textblock
23508 #: ../fish/guestfish.pod:850
23509 msgid ""
23510 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
23511 "upload local files (so-called \"FileIn\" parameters in the generator)."
23512 msgstr ""
23513
23514 # type: =head1
23515 #. type: =head1
23516 #: ../fish/guestfish.pod:853
23517 msgid "EXIT ON ERROR BEHAVIOUR"
23518 msgstr ""
23519
23520 # type: textblock
23521 #. type: textblock
23522 #: ../fish/guestfish.pod:855
23523 msgid ""
23524 "By default, guestfish will ignore any errors when in interactive mode (ie. "
23525 "taking commands from a human over a tty), and will exit on the first error "
23526 "in non-interactive mode (scripts, commands given on the command line)."
23527 msgstr ""
23528
23529 # type: textblock
23530 #. type: textblock
23531 #: ../fish/guestfish.pod:860
23532 msgid ""
23533 "If you prefix a command with a I<-> character, then that command will not "
23534 "cause guestfish to exit, even if that (one) command returns an error."
23535 msgstr ""
23536
23537 # type: =head1
23538 #. type: =head1
23539 #: ../fish/guestfish.pod:864
23540 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
23541 msgstr ""
23542
23543 # type: textblock
23544 #. type: textblock
23545 #: ../fish/guestfish.pod:866
23546 msgid ""
23547 "Guestfish can be remote-controlled over a socket.  This is useful "
23548 "particularly in shell scripts where you want to make several different "
23549 "changes to a filesystem, but you don't want the overhead of starting up a "
23550 "guestfish process each time."
23551 msgstr ""
23552
23553 # type: textblock
23554 #. type: textblock
23555 #: ../fish/guestfish.pod:871
23556 msgid "Start a guestfish server process using:"
23557 msgstr ""
23558
23559 # type: verbatim
23560 #. type: verbatim
23561 #: ../fish/guestfish.pod:873
23562 #, no-wrap
23563 msgid ""
23564 " eval \"`guestfish --listen`\"\n"
23565 "\n"
23566 msgstr ""
23567
23568 # type: textblock
23569 #. type: textblock
23570 #: ../fish/guestfish.pod:875
23571 msgid "and then send it commands by doing:"
23572 msgstr ""
23573
23574 # type: verbatim
23575 #. type: verbatim
23576 #: ../fish/guestfish.pod:877
23577 #, no-wrap
23578 msgid ""
23579 " guestfish --remote cmd [...]\n"
23580 "\n"
23581 msgstr ""
23582
23583 # type: textblock
23584 #. type: textblock
23585 #: ../fish/guestfish.pod:879
23586 msgid "To cause the server to exit, send it the exit command:"
23587 msgstr ""
23588
23589 # type: verbatim
23590 #. type: verbatim
23591 #: ../fish/guestfish.pod:881
23592 #, no-wrap
23593 msgid ""
23594 " guestfish --remote exit\n"
23595 "\n"
23596 msgstr ""
23597
23598 # type: textblock
23599 #. type: textblock
23600 #: ../fish/guestfish.pod:883
23601 msgid ""
23602 "Note that the server will normally exit if there is an error in a command.  "
23603 "You can change this in the usual way.  See section L</EXIT ON ERROR "
23604 "BEHAVIOUR>."
23605 msgstr ""
23606
23607 # type: =head2
23608 #. type: =head2
23609 #: ../fish/guestfish.pod:887
23610 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
23611 msgstr ""
23612
23613 # type: textblock
23614 #. type: textblock
23615 #: ../fish/guestfish.pod:889
23616 msgid ""
23617 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
23618 "is how the I<--remote> option knows where to send the commands.  You can "
23619 "have several guestfish listener processes running using:"
23620 msgstr ""
23621
23622 # type: verbatim
23623 #. type: verbatim
23624 #: ../fish/guestfish.pod:893
23625 #, no-wrap
23626 msgid ""
23627 " eval \"`guestfish --listen`\"\n"
23628 " pid1=$GUESTFISH_PID\n"
23629 " eval \"`guestfish --listen`\"\n"
23630 " pid2=$GUESTFISH_PID\n"
23631 " ...\n"
23632 " guestfish --remote=$pid1 cmd\n"
23633 " guestfish --remote=$pid2 cmd\n"
23634 "\n"
23635 msgstr ""
23636
23637 # type: =head2
23638 #. type: =head2
23639 #: ../fish/guestfish.pod:901
23640 msgid "REMOTE CONTROL AND CSH"
23641 msgstr ""
23642
23643 # type: textblock
23644 #. type: textblock
23645 #: ../fish/guestfish.pod:903
23646 msgid ""
23647 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
23648 "option:"
23649 msgstr ""
23650
23651 # type: verbatim
23652 #. type: verbatim
23653 #: ../fish/guestfish.pod:906
23654 #, no-wrap
23655 msgid ""
23656 " eval \"`guestfish --listen --csh`\"\n"
23657 "\n"
23658 msgstr ""
23659
23660 # type: =head2
23661 #. type: =head2
23662 #: ../fish/guestfish.pod:908
23663 msgid "REMOTE CONTROL DETAILS"
23664 msgstr ""
23665
23666 # type: textblock
23667 #. type: textblock
23668 #: ../fish/guestfish.pod:910
23669 msgid ""
23670 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
23671 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
23672 "and C<$PID> is the process ID of the server."
23673 msgstr ""
23674
23675 # type: textblock
23676 #. type: textblock
23677 #: ../fish/guestfish.pod:914
23678 msgid "Guestfish client and server versions must match exactly."
23679 msgstr ""
23680
23681 # type: =head1
23682 #. type: =head1
23683 #: ../fish/guestfish.pod:916
23684 msgid "PREPARED DISK IMAGES"
23685 msgstr ""
23686
23687 # type: textblock
23688 #. type: textblock
23689 #: ../fish/guestfish.pod:918
23690 msgid ""
23691 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
23692 "preformatted disk images that guestfish can make for you to save typing.  "
23693 "This is particularly useful for testing purposes.  This option is used "
23694 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
23695 "can be mixed with I<-a>)."
23696 msgstr ""
23697
23698 # type: textblock
23699 #. type: textblock
23700 #: ../fish/guestfish.pod:924
23701 msgid ""
23702 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
23703 "the second and so on.  Existing files in the current directory are "
23704 "I<overwritten>."
23705 msgstr ""
23706
23707 # type: textblock
23708 #. type: textblock
23709 #: ../fish/guestfish.pod:928
23710 msgid ""
23711 "The type briefly describes how the disk should be sized, partitioned, how "
23712 "filesystem(s) should be created, and how content should be added.  "
23713 "Optionally the type can be followed by extra parameters, separated by C<:> "
23714 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
23715 "allocated disk, containing a single partition, with the partition formatted "
23716 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
23717 "disk instead."
23718 msgstr ""
23719
23720 # type: textblock
23721 #. type: textblock
23722 #: ../fish/guestfish.pod:936
23723 msgid "To list the available types and any extra parameters they take, run:"
23724 msgstr ""
23725
23726 # type: textblock
23727 #. type: textblock
23728 #: ../fish/guestfish.pod:940
23729 msgid ""
23730 "Note that the prepared filesystem is not mounted.  You would usually have to "
23731 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
23732 msgstr ""
23733
23734 # type: textblock
23735 #. type: textblock
23736 #: ../fish/guestfish.pod:944
23737 msgid ""
23738 "If any I<-N> or I<--new> options are given, the guest is automatically "
23739 "launched."
23740 msgstr ""
23741
23742 # type: textblock
23743 #. type: textblock
23744 #: ../fish/guestfish.pod:949
23745 msgid "Create a 100MB disk with an ext4-formatted partition:"
23746 msgstr ""
23747
23748 # type: verbatim
23749 #. type: verbatim
23750 #: ../fish/guestfish.pod:951
23751 #, no-wrap
23752 msgid ""
23753 " guestfish -N fs:ext4\n"
23754 "\n"
23755 msgstr ""
23756
23757 # type: textblock
23758 #. type: textblock
23759 #: ../fish/guestfish.pod:953
23760 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
23761 msgstr ""
23762
23763 # type: verbatim
23764 #. type: verbatim
23765 #: ../fish/guestfish.pod:955
23766 #, no-wrap
23767 msgid ""
23768 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
23769 "\n"
23770 msgstr ""
23771
23772 # type: textblock
23773 #. type: textblock
23774 #: ../fish/guestfish.pod:957
23775 msgid "Create a blank 200MB disk:"
23776 msgstr ""
23777
23778 # type: verbatim
23779 #. type: verbatim
23780 #: ../fish/guestfish.pod:959
23781 #, no-wrap
23782 msgid ""
23783 " guestfish -N disk:200M\n"
23784 "\n"
23785 msgstr ""
23786
23787 # type: =head1
23788 #. type: =head1
23789 #: ../fish/guestfish.pod:961
23790 msgid "PROGRESS BARS"
23791 msgstr ""
23792
23793 # type: textblock
23794 #. type: textblock
23795 #: ../fish/guestfish.pod:963
23796 msgid ""
23797 "Some (not all) long-running commands send progress notification messages as "
23798 "they are running.  Guestfish turns these messages into progress bars."
23799 msgstr ""
23800
23801 # type: textblock
23802 #. type: textblock
23803 #: ../fish/guestfish.pod:967
23804 msgid ""
23805 "When a command that supports progress bars takes longer than two seconds to "
23806 "run, and if progress bars are enabled, then you will see one appearing below "
23807 "the command:"
23808 msgstr ""
23809
23810 # type: verbatim
23811 #. type: verbatim
23812 #: ../fish/guestfish.pod:971
23813 #, no-wrap
23814 msgid ""
23815 " ><fs> copy-size /large-file /another-file 2048M\n"
23816 " / 10% [#####-----------------------------------------] 00:30\n"
23817 "\n"
23818 msgstr ""
23819
23820 # type: textblock
23821 #. type: textblock
23822 #: ../fish/guestfish.pod:974
23823 msgid ""
23824 "The spinner on the left hand side moves round once for every progress "
23825 "notification received from the backend.  This is a (reasonably) golden "
23826 "assurance that the command is \"doing something\" even if the progress bar "
23827 "is not moving, because the command is able to send the progress "
23828 "notifications.  When the bar reaches 100% and the command finishes, the "
23829 "spinner disappears."
23830 msgstr ""
23831
23832 # type: textblock
23833 #. type: textblock
23834 #: ../fish/guestfish.pod:981
23835 msgid ""
23836 "Progress bars are enabled by default when guestfish is used interactively.  "
23837 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23838 "and you can disable them completely using I<--no-progress-bars>."
23839 msgstr ""
23840
23841 # type: =head1
23842 #. type: =head1
23843 #: ../fish/guestfish.pod:986
23844 msgid "GUESTFISH COMMANDS"
23845 msgstr ""
23846
23847 # type: textblock
23848 #. type: textblock
23849 #: ../fish/guestfish.pod:988
23850 msgid ""
23851 "The commands in this section are guestfish convenience commands, in other "
23852 "words, they are not part of the L<guestfs(3)> API."
23853 msgstr ""
23854
23855 # type: =head2
23856 #. type: =head2
23857 #: ../fish/guestfish.pod:991
23858 msgid "help"
23859 msgstr ""
23860
23861 # type: verbatim
23862 #. type: verbatim
23863 #: ../fish/guestfish.pod:993
23864 #, no-wrap
23865 msgid ""
23866 " help\n"
23867 " help cmd\n"
23868 "\n"
23869 msgstr ""
23870
23871 # type: textblock
23872 #. type: textblock
23873 #: ../fish/guestfish.pod:996
23874 msgid "Without any parameter, this provides general help."
23875 msgstr ""
23876
23877 # type: textblock
23878 #. type: textblock
23879 #: ../fish/guestfish.pod:998
23880 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23881 msgstr ""
23882
23883 # type: =head2
23884 #. type: =head2
23885 #: ../fish/guestfish.pod:1000
23886 msgid "quit | exit"
23887 msgstr ""
23888
23889 # type: textblock
23890 #. type: textblock
23891 #: ../fish/guestfish.pod:1002
23892 msgid "This exits guestfish.  You can also use C<^D> key."
23893 msgstr ""
23894
23895 # type: textblock
23896 #. type: textblock
23897 #: ../fish/guestfish.pod:1004
23898 msgid "@FISH_COMMANDS@"
23899 msgstr ""
23900
23901 # type: =head1
23902 #. type: =head1
23903 #: ../fish/guestfish.pod:1006
23904 msgid "COMMANDS"
23905 msgstr ""
23906
23907 # type: =head1
23908 #. type: =head1
23909 #: ../fish/guestfish.pod:1010 ../test-tool/libguestfs-test-tool.pod:77
23910 msgid "EXIT CODE"
23911 msgstr ""
23912
23913 # type: textblock
23914 #. type: textblock
23915 #: ../fish/guestfish.pod:1012
23916 msgid ""
23917 "guestfish returns 0 if the commands completed without error, or 1 if there "
23918 "was an error."
23919 msgstr ""
23920
23921 # type: =item
23922 #. type: =item
23923 #: ../fish/guestfish.pod:1019
23924 msgid "EDITOR"
23925 msgstr ""
23926
23927 # type: textblock
23928 #. type: textblock
23929 #: ../fish/guestfish.pod:1021
23930 msgid ""
23931 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23932 "C<vi>."
23933 msgstr ""
23934
23935 # type: =item
23936 #. type: =item
23937 #: ../fish/guestfish.pod:1024
23938 msgid "GUESTFISH_PID"
23939 msgstr ""
23940
23941 # type: textblock
23942 #. type: textblock
23943 #: ../fish/guestfish.pod:1026
23944 msgid ""
23945 "Used with the I<--remote> option to specify the remote guestfish process to "
23946 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23947 msgstr ""
23948
23949 # type: =item
23950 #. type: =item
23951 #: ../fish/guestfish.pod:1030
23952 msgid "HEXEDITOR"
23953 msgstr ""
23954
23955 # type: textblock
23956 #. type: textblock
23957 #: ../fish/guestfish.pod:1032
23958 msgid ""
23959 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23960 "not specified, the external L<hexedit(1)> program is used."
23961 msgstr ""
23962
23963 # type: =item
23964 #. type: =item
23965 #: ../fish/guestfish.pod:1036
23966 msgid "HOME"
23967 msgstr ""
23968
23969 # type: textblock
23970 #. type: textblock
23971 #: ../fish/guestfish.pod:1038
23972 msgid ""
23973 "If compiled with GNU readline support, various files in the home directory "
23974 "can be used.  See L</FILES>."
23975 msgstr ""
23976
23977 # type: textblock
23978 #. type: textblock
23979 #: ../fish/guestfish.pod:1047
23980 msgid ""
23981 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23982 "effect as using the B<-v> option."
23983 msgstr ""
23984
23985 # type: textblock
23986 #. type: textblock
23987 #: ../fish/guestfish.pod:1059
23988 msgid ""
23989 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23990 "the discussion of paths in L<guestfs(3)>."
23991 msgstr ""
23992
23993 # type: textblock
23994 #. type: textblock
23995 #: ../fish/guestfish.pod:1070
23996 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23997 msgstr ""
23998
23999 # type: =item
24000 #. type: =item
24001 #: ../fish/guestfish.pod:1072
24002 msgid "PAGER"
24003 msgstr ""
24004
24005 # type: textblock
24006 #. type: textblock
24007 #: ../fish/guestfish.pod:1074
24008 msgid ""
24009 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
24010 "C<more>."
24011 msgstr ""
24012
24013 # type: =head1
24014 #. type: =head1
24015 #: ../fish/guestfish.pod:1090 ../fuse/guestmount.pod:252
24016 msgid "FILES"
24017 msgstr ""
24018
24019 #. type: =item
24020 #: ../fish/guestfish.pod:1094 ../fuse/guestmount.pod:256
24021 msgid "$HOME/.libguestfs-tools.rc"
24022 msgstr ""
24023
24024 #. type: =item
24025 #: ../fish/guestfish.pod:1096 ../fuse/guestmount.pod:258
24026 msgid "/etc/libguestfs-tools.conf"
24027 msgstr ""
24028
24029 #. type: textblock
24030 #: ../fish/guestfish.pod:1098 ../fuse/guestmount.pod:260
24031 msgid ""
24032 "This configuration file controls the default read-only or read-write mode "
24033 "(I<--ro> or I<--rw>)."
24034 msgstr ""
24035
24036 #. type: textblock
24037 #: ../fish/guestfish.pod:1101
24038 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
24039 msgstr ""
24040
24041 # type: =item
24042 #. type: =item
24043 #: ../fish/guestfish.pod:1103
24044 msgid "$HOME/.guestfish"
24045 msgstr ""
24046
24047 # type: textblock
24048 #. type: textblock
24049 #: ../fish/guestfish.pod:1105
24050 msgid ""
24051 "If compiled with GNU readline support, then the command history is saved in "
24052 "this file."
24053 msgstr ""
24054
24055 # type: =item
24056 #. type: =item
24057 #: ../fish/guestfish.pod:1108
24058 msgid "$HOME/.inputrc"
24059 msgstr ""
24060
24061 # type: =item
24062 #. type: =item
24063 #: ../fish/guestfish.pod:1110
24064 msgid "/etc/inputrc"
24065 msgstr ""
24066
24067 # type: textblock
24068 #. type: textblock
24069 #: ../fish/guestfish.pod:1112
24070 msgid ""
24071 "If compiled with GNU readline support, then these files can be used to "
24072 "configure readline.  For further information, please see L<readline(3)/"
24073 "INITIALIZATION FILE>."
24074 msgstr ""
24075
24076 # type: textblock
24077 #. type: textblock
24078 #: ../fish/guestfish.pod:1116
24079 msgid "To write rules which only apply to guestfish, use:"
24080 msgstr ""
24081
24082 # type: verbatim
24083 #. type: verbatim
24084 #: ../fish/guestfish.pod:1118
24085 #, no-wrap
24086 msgid ""
24087 " $if guestfish\n"
24088 " ...\n"
24089 " $endif\n"
24090 "\n"
24091 msgstr ""
24092
24093 # type: textblock
24094 #. type: textblock
24095 #: ../fish/guestfish.pod:1122
24096 msgid ""
24097 "Variables that you can set in inputrc that change the behaviour of guestfish "
24098 "in useful ways include:"
24099 msgstr ""
24100
24101 # type: =item
24102 #. type: =item
24103 #: ../fish/guestfish.pod:1127
24104 msgid "completion-ignore-case (default: on)"
24105 msgstr ""
24106
24107 # type: textblock
24108 #. type: textblock
24109 #: ../fish/guestfish.pod:1129
24110 msgid ""
24111 "By default, guestfish will ignore case when tab-completing paths on the "
24112 "disk.  Use:"
24113 msgstr ""
24114
24115 # type: verbatim
24116 #. type: verbatim
24117 #: ../fish/guestfish.pod:1132
24118 #, no-wrap
24119 msgid ""
24120 " set completion-ignore-case off\n"
24121 "\n"
24122 msgstr ""
24123
24124 # type: textblock
24125 #. type: textblock
24126 #: ../fish/guestfish.pod:1134
24127 msgid "to make guestfish case sensitive."
24128 msgstr ""
24129
24130 # type: =item
24131 #. type: =item
24132 #: ../fish/guestfish.pod:1138
24133 msgid "test1.img"
24134 msgstr ""
24135
24136 # type: =item
24137 #. type: =item
24138 #: ../fish/guestfish.pod:1140
24139 msgid "test2.img (etc)"
24140 msgstr ""
24141
24142 # type: textblock
24143 #. type: textblock
24144 #: ../fish/guestfish.pod:1142
24145 msgid ""
24146 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
24147 "will be created in the file C<test1.img> in the current directory.  The "
24148 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
24149 "the same name will be overwritten."
24150 msgstr ""
24151
24152 #. type: textblock
24153 #: ../fish/guestfish.pod:1151
24154 msgid ""
24155 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24156 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24157 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24158 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24159 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24160 ">, L<hexedit(1)>."
24161 msgstr ""
24162
24163 # type: textblock
24164 #. type: textblock
24165 #: ../fish/guestfish.pod:1181 ../test-tool/libguestfs-test-tool.pod:102
24166 #: ../fuse/guestmount.pod:287 ../tools/virt-edit.pl:518
24167 #: ../tools/virt-win-reg.pl:606 ../tools/virt-list-filesystems.pl:210
24168 #: ../tools/virt-tar.pl:309 ../tools/virt-make-fs.pl:572
24169 #: ../tools/virt-list-partitions.pl:277
24170 msgid ""
24171 "This program is free software; you can redistribute it and/or modify it "
24172 "under the terms of the GNU General Public License as published by the Free "
24173 "Software Foundation; either version 2 of the License, or (at your option) "
24174 "any later version."
24175 msgstr ""
24176
24177 # type: textblock
24178 #. type: textblock
24179 #: ../fish/guestfish.pod:1186 ../test-tool/libguestfs-test-tool.pod:107
24180 #: ../fuse/guestmount.pod:292 ../tools/virt-edit.pl:523
24181 #: ../tools/virt-win-reg.pl:611 ../tools/virt-list-filesystems.pl:215
24182 #: ../tools/virt-tar.pl:314 ../tools/virt-make-fs.pl:577
24183 #: ../tools/virt-list-partitions.pl:282
24184 msgid ""
24185 "This program is distributed in the hope that it will be useful, but WITHOUT "
24186 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24187 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24188 "more details."
24189 msgstr ""
24190
24191 # type: textblock
24192 #. type: textblock
24193 #: ../fish/guestfish.pod:1191 ../test-tool/libguestfs-test-tool.pod:112
24194 #: ../fuse/guestmount.pod:297 ../tools/virt-edit.pl:528
24195 #: ../tools/virt-win-reg.pl:616 ../tools/virt-list-filesystems.pl:220
24196 #: ../tools/virt-tar.pl:319 ../tools/virt-make-fs.pl:582
24197 #: ../tools/virt-list-partitions.pl:287
24198 msgid ""
24199 "You should have received a copy of the GNU General Public License along with "
24200 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24201 "Ave, Cambridge, MA 02139, USA."
24202 msgstr ""
24203
24204 # type: =head2
24205 #. type: =head2
24206 #: ../fish/guestfish-actions.pod:1
24207 msgid "add-cdrom"
24208 msgstr ""
24209
24210 # type: verbatim
24211 #. type: verbatim
24212 #: ../fish/guestfish-actions.pod:3
24213 #, no-wrap
24214 msgid ""
24215 " add-cdrom filename\n"
24216 "\n"
24217 msgstr ""
24218
24219 # type: textblock
24220 #. type: textblock
24221 #: ../fish/guestfish-actions.pod:15
24222 msgid ""
24223 "This call checks for the existence of C<filename>.  This stops you from "
24224 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24225 "and C<http:> URLs.  To specify those, use the general L</config> call "
24226 "instead."
24227 msgstr ""
24228
24229 # type: textblock
24230 #. type: textblock
24231 #: ../fish/guestfish-actions.pod:22
24232 msgid ""
24233 "If you just want to add an ISO file (often you use this as an efficient way "
24234 "to transfer large files into the guest), then you should probably use L</add-"
24235 "drive-ro> instead."
24236 msgstr ""
24237
24238 # type: =head2
24239 #. type: =head2
24240 #: ../fish/guestfish-actions.pod:35
24241 msgid "add-domain"
24242 msgstr ""
24243
24244 # type: =head2
24245 #. type: =head2
24246 #: ../fish/guestfish-actions.pod:37
24247 msgid "domain"
24248 msgstr ""
24249
24250 #. type: verbatim
24251 #: ../fish/guestfish-actions.pod:39
24252 #, no-wrap
24253 msgid ""
24254 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
24255 "\n"
24256 msgstr ""
24257
24258 # type: textblock
24259 #. type: textblock
24260 #: ../fish/guestfish-actions.pod:41
24261 msgid ""
24262 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24263 "It works by connecting to libvirt, requesting the domain and domain XML from "
24264 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24265 msgstr ""
24266
24267 # type: textblock
24268 #. type: textblock
24269 #: ../fish/guestfish-actions.pod:71
24270 msgid ""
24271 "The other optional parameters are passed directly through to L</add-drive-"
24272 "opts>."
24273 msgstr ""
24274
24275 # type: textblock
24276 #. type: textblock
24277 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138
24278 #: ../fish/guestfish-actions.pod:3039
24279 msgid ""
24280 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24281 msgstr ""
24282
24283 # type: =head2
24284 #. type: =head2
24285 #: ../fish/guestfish-actions.pod:76
24286 msgid "add-drive"
24287 msgstr ""
24288
24289 # type: verbatim
24290 #. type: verbatim
24291 #: ../fish/guestfish-actions.pod:78
24292 #, no-wrap
24293 msgid ""
24294 " add-drive filename\n"
24295 "\n"
24296 msgstr ""
24297
24298 # type: textblock
24299 #. type: textblock
24300 #: ../fish/guestfish-actions.pod:80
24301 msgid ""
24302 "This function is the equivalent of calling L</add-drive-opts> with no "
24303 "optional parameters, so the disk is added writable, with the format being "
24304 "detected automatically."
24305 msgstr ""
24306
24307 # type: textblock
24308 #. type: textblock
24309 #: ../fish/guestfish-actions.pod:84
24310 msgid ""
24311 "Automatic detection of the format opens you up to a potential security hole "
24312 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24313 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24314 "you should think about replacing calls to this function with calls to L</add-"
24315 "drive-opts>, and specifying the format."
24316 msgstr ""
24317
24318 # type: =head2
24319 #. type: =head2
24320 #: ../fish/guestfish-actions.pod:91
24321 msgid "add-drive-opts"
24322 msgstr ""
24323
24324 # type: =head2
24325 #. type: =head2
24326 #: ../fish/guestfish-actions.pod:93
24327 msgid "add"
24328 msgstr ""
24329
24330 # type: verbatim
24331 #. type: verbatim
24332 #: ../fish/guestfish-actions.pod:95
24333 #, no-wrap
24334 msgid ""
24335 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24336 "\n"
24337 msgstr ""
24338
24339 # type: textblock
24340 #. type: textblock
24341 #: ../fish/guestfish-actions.pod:122
24342 msgid ""
24343 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24344 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24345 "include C<raw> and C<qcow2>."
24346 msgstr ""
24347
24348 # type: textblock
24349 #. type: textblock
24350 #: ../fish/guestfish-actions.pod:133
24351 msgid ""
24352 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24353 "add-drive-with-if> call (q.v.)"
24354 msgstr ""
24355
24356 # type: =head2
24357 #. type: =head2
24358 #: ../fish/guestfish-actions.pod:140
24359 msgid "add-drive-ro"
24360 msgstr ""
24361
24362 # type: =head2
24363 #. type: =head2
24364 #: ../fish/guestfish-actions.pod:142
24365 msgid "add-ro"
24366 msgstr ""
24367
24368 # type: verbatim
24369 #. type: verbatim
24370 #: ../fish/guestfish-actions.pod:144
24371 #, no-wrap
24372 msgid ""
24373 " add-drive-ro filename\n"
24374 "\n"
24375 msgstr ""
24376
24377 # type: textblock
24378 #. type: textblock
24379 #: ../fish/guestfish-actions.pod:146
24380 msgid ""
24381 "This function is the equivalent of calling L</add-drive-opts> with the "
24382 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24383 "is added read-only, with the format being detected automatically."
24384 msgstr ""
24385
24386 # type: =head2
24387 #. type: =head2
24388 #: ../fish/guestfish-actions.pod:151
24389 msgid "add-drive-ro-with-if"
24390 msgstr ""
24391
24392 # type: verbatim
24393 #. type: verbatim
24394 #: ../fish/guestfish-actions.pod:153
24395 #, no-wrap
24396 msgid ""
24397 " add-drive-ro-with-if filename iface\n"
24398 "\n"
24399 msgstr ""
24400
24401 # type: textblock
24402 #. type: textblock
24403 #: ../fish/guestfish-actions.pod:155
24404 msgid ""
24405 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24406 "interface emulation to use at run time."
24407 msgstr ""
24408
24409 # type: =head2
24410 #. type: =head2
24411 #: ../fish/guestfish-actions.pod:165
24412 msgid "add-drive-with-if"
24413 msgstr ""
24414
24415 # type: verbatim
24416 #. type: verbatim
24417 #: ../fish/guestfish-actions.pod:167
24418 #, no-wrap
24419 msgid ""
24420 " add-drive-with-if filename iface\n"
24421 "\n"
24422 msgstr ""
24423
24424 # type: textblock
24425 #. type: textblock
24426 #: ../fish/guestfish-actions.pod:169
24427 msgid ""
24428 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24429 "interface emulation to use at run time."
24430 msgstr ""
24431
24432 # type: =head2
24433 #. type: =head2
24434 #: ../fish/guestfish-actions.pod:179
24435 msgid "aug-clear"
24436 msgstr ""
24437
24438 # type: verbatim
24439 #. type: verbatim
24440 #: ../fish/guestfish-actions.pod:181
24441 #, no-wrap
24442 msgid ""
24443 " aug-clear augpath\n"
24444 "\n"
24445 msgstr ""
24446
24447 # type: =head2
24448 #. type: =head2
24449 #: ../fish/guestfish-actions.pod:186
24450 msgid "aug-close"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #. type: verbatim
24455 #: ../fish/guestfish-actions.pod:188
24456 #, no-wrap
24457 msgid ""
24458 " aug-close\n"
24459 "\n"
24460 msgstr ""
24461
24462 # type: textblock
24463 #. type: textblock
24464 #: ../fish/guestfish-actions.pod:190
24465 msgid ""
24466 "Close the current Augeas handle and free up any resources used by it.  After "
24467 "calling this, you have to call L</aug-init> again before you can use any "
24468 "other Augeas functions."
24469 msgstr ""
24470
24471 # type: =head2
24472 #. type: =head2
24473 #: ../fish/guestfish-actions.pod:195
24474 msgid "aug-defnode"
24475 msgstr ""
24476
24477 # type: verbatim
24478 #. type: verbatim
24479 #: ../fish/guestfish-actions.pod:197
24480 #, no-wrap
24481 msgid ""
24482 " aug-defnode name expr val\n"
24483 "\n"
24484 msgstr ""
24485
24486 # type: textblock
24487 #. type: textblock
24488 #: ../fish/guestfish-actions.pod:202
24489 msgid ""
24490 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24491 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
24492 "containing that single node."
24493 msgstr ""
24494
24495 # type: =head2
24496 #. type: =head2
24497 #: ../fish/guestfish-actions.pod:210
24498 msgid "aug-defvar"
24499 msgstr ""
24500
24501 # type: verbatim
24502 #. type: verbatim
24503 #: ../fish/guestfish-actions.pod:212
24504 #, no-wrap
24505 msgid ""
24506 " aug-defvar name expr\n"
24507 "\n"
24508 msgstr ""
24509
24510 # type: =head2
24511 #. type: =head2
24512 #: ../fish/guestfish-actions.pod:221
24513 msgid "aug-get"
24514 msgstr ""
24515
24516 # type: verbatim
24517 #. type: verbatim
24518 #: ../fish/guestfish-actions.pod:223
24519 #, no-wrap
24520 msgid ""
24521 " aug-get augpath\n"
24522 "\n"
24523 msgstr ""
24524
24525 # type: =head2
24526 #. type: =head2
24527 #: ../fish/guestfish-actions.pod:228
24528 msgid "aug-init"
24529 msgstr ""
24530
24531 # type: verbatim
24532 #. type: verbatim
24533 #: ../fish/guestfish-actions.pod:230
24534 #, no-wrap
24535 msgid ""
24536 " aug-init root flags\n"
24537 "\n"
24538 msgstr ""
24539
24540 # type: textblock
24541 #. type: textblock
24542 #: ../fish/guestfish-actions.pod:236
24543 msgid "You must call this before using any other L</aug-*> commands."
24544 msgstr ""
24545
24546 # type: textblock
24547 #. type: textblock
24548 #: ../fish/guestfish-actions.pod:271
24549 msgid "Do not load the tree in L</aug-init>."
24550 msgstr ""
24551
24552 # type: textblock
24553 #. type: textblock
24554 #: ../fish/guestfish-actions.pod:275
24555 msgid "To close the handle, you can call L</aug-close>."
24556 msgstr ""
24557
24558 # type: =head2
24559 #. type: =head2
24560 #: ../fish/guestfish-actions.pod:279
24561 msgid "aug-insert"
24562 msgstr ""
24563
24564 # type: verbatim
24565 #. type: verbatim
24566 #: ../fish/guestfish-actions.pod:281
24567 #, no-wrap
24568 msgid ""
24569 " aug-insert augpath label true|false\n"
24570 "\n"
24571 msgstr ""
24572
24573 # type: =head2
24574 #. type: =head2
24575 #: ../fish/guestfish-actions.pod:291
24576 msgid "aug-load"
24577 msgstr ""
24578
24579 # type: verbatim
24580 #. type: verbatim
24581 #: ../fish/guestfish-actions.pod:293
24582 #, no-wrap
24583 msgid ""
24584 " aug-load\n"
24585 "\n"
24586 msgstr ""
24587
24588 # type: =head2
24589 #. type: =head2
24590 #: ../fish/guestfish-actions.pod:300
24591 msgid "aug-ls"
24592 msgstr ""
24593
24594 # type: verbatim
24595 #. type: verbatim
24596 #: ../fish/guestfish-actions.pod:302
24597 #, no-wrap
24598 msgid ""
24599 " aug-ls augpath\n"
24600 "\n"
24601 msgstr ""
24602
24603 # type: textblock
24604 #. type: textblock
24605 #: ../fish/guestfish-actions.pod:304
24606 msgid ""
24607 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
24608 "resulting nodes into alphabetical order."
24609 msgstr ""
24610
24611 # type: =head2
24612 #. type: =head2
24613 #: ../fish/guestfish-actions.pod:307
24614 msgid "aug-match"
24615 msgstr ""
24616
24617 # type: verbatim
24618 #. type: verbatim
24619 #: ../fish/guestfish-actions.pod:309
24620 #, no-wrap
24621 msgid ""
24622 " aug-match augpath\n"
24623 "\n"
24624 msgstr ""
24625
24626 # type: =head2
24627 #. type: =head2
24628 #: ../fish/guestfish-actions.pod:315
24629 msgid "aug-mv"
24630 msgstr ""
24631
24632 # type: verbatim
24633 #. type: verbatim
24634 #: ../fish/guestfish-actions.pod:317
24635 #, no-wrap
24636 msgid ""
24637 " aug-mv src dest\n"
24638 "\n"
24639 msgstr ""
24640
24641 # type: =head2
24642 #. type: =head2
24643 #: ../fish/guestfish-actions.pod:322
24644 msgid "aug-rm"
24645 msgstr ""
24646
24647 # type: verbatim
24648 #. type: verbatim
24649 #: ../fish/guestfish-actions.pod:324
24650 #, no-wrap
24651 msgid ""
24652 " aug-rm augpath\n"
24653 "\n"
24654 msgstr ""
24655
24656 # type: =head2
24657 #. type: =head2
24658 #: ../fish/guestfish-actions.pod:330
24659 msgid "aug-save"
24660 msgstr ""
24661
24662 # type: verbatim
24663 #. type: verbatim
24664 #: ../fish/guestfish-actions.pod:332
24665 #, no-wrap
24666 msgid ""
24667 " aug-save\n"
24668 "\n"
24669 msgstr ""
24670
24671 # type: textblock
24672 #. type: textblock
24673 #: ../fish/guestfish-actions.pod:336
24674 msgid ""
24675 "The flags which were passed to L</aug-init> affect exactly how files are "
24676 "saved."
24677 msgstr ""
24678
24679 # type: =head2
24680 #. type: =head2
24681 #: ../fish/guestfish-actions.pod:339
24682 msgid "aug-set"
24683 msgstr ""
24684
24685 # type: verbatim
24686 #. type: verbatim
24687 #: ../fish/guestfish-actions.pod:341
24688 #, no-wrap
24689 msgid ""
24690 " aug-set augpath val\n"
24691 "\n"
24692 msgstr ""
24693
24694 # type: textblock
24695 #. type: textblock
24696 #: ../fish/guestfish-actions.pod:345
24697 msgid ""
24698 "In the Augeas API, it is possible to clear a node by setting the value to "
24699 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24700 "this call.  Instead you must use the L</aug-clear> call."
24701 msgstr ""
24702
24703 # type: =head2
24704 #. type: =head2
24705 #: ../fish/guestfish-actions.pod:350
24706 msgid "available"
24707 msgstr ""
24708
24709 # type: verbatim
24710 #. type: verbatim
24711 #: ../fish/guestfish-actions.pod:352
24712 #, no-wrap
24713 msgid ""
24714 " available 'groups ...'\n"
24715 "\n"
24716 msgstr ""
24717
24718 # type: textblock
24719 #. type: textblock
24720 #: ../fish/guestfish-actions.pod:358
24721 msgid ""
24722 "The libguestfs groups, and the functions that those groups correspond to, "
24723 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24724 "runtime by calling L</available-all-groups>."
24725 msgstr ""
24726
24727 # type: textblock
24728 #. type: textblock
24729 #: ../fish/guestfish-actions.pod:382
24730 msgid "You must call L</launch> before calling this function."
24731 msgstr ""
24732
24733 # type: textblock
24734 #. type: textblock
24735 #: ../fish/guestfish-actions.pod:404
24736 msgid ""
24737 "This call was added in version C<1.0.80>.  In previous versions of "
24738 "libguestfs all you could do would be to speculatively execute a command to "
24739 "find out if the daemon implemented it.  See also L</version>."
24740 msgstr ""
24741
24742 # type: =head2
24743 #. type: =head2
24744 #: ../fish/guestfish-actions.pod:411
24745 msgid "available-all-groups"
24746 msgstr ""
24747
24748 # type: verbatim
24749 #. type: verbatim
24750 #: ../fish/guestfish-actions.pod:413
24751 #, no-wrap
24752 msgid ""
24753 " available-all-groups\n"
24754 "\n"
24755 msgstr ""
24756
24757 # type: textblock
24758 #. type: textblock
24759 #: ../fish/guestfish-actions.pod:415
24760 msgid ""
24761 "This command returns a list of all optional groups that this daemon knows "
24762 "about.  Note this returns both supported and unsupported groups.  To find "
24763 "out which ones the daemon can actually support you have to call L</"
24764 "available> on each member of the returned list."
24765 msgstr ""
24766
24767 # type: textblock
24768 #. type: textblock
24769 #: ../fish/guestfish-actions.pod:421
24770 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
24771 msgstr ""
24772
24773 # type: =head2
24774 #. type: =head2
24775 #: ../fish/guestfish-actions.pod:423
24776 msgid "base64-in"
24777 msgstr ""
24778
24779 # type: verbatim
24780 #. type: verbatim
24781 #: ../fish/guestfish-actions.pod:425
24782 #, no-wrap
24783 msgid ""
24784 " base64-in (base64file|-) filename\n"
24785 "\n"
24786 msgstr ""
24787
24788 # type: textblock
24789 #. type: textblock
24790 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439
24791 #: ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832
24792 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228
24793 #: ../fish/guestfish-actions.pod:4437 ../fish/guestfish-actions.pod:4449
24794 #: ../fish/guestfish-actions.pod:4460 ../fish/guestfish-actions.pod:4471
24795 #: ../fish/guestfish-actions.pod:4523 ../fish/guestfish-actions.pod:4532
24796 #: ../fish/guestfish-actions.pod:4586 ../fish/guestfish-actions.pod:4609
24797 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
24798 msgstr ""
24799
24800 # type: =head2
24801 #. type: =head2
24802 #: ../fish/guestfish-actions.pod:432
24803 msgid "base64-out"
24804 msgstr ""
24805
24806 # type: verbatim
24807 #. type: verbatim
24808 #: ../fish/guestfish-actions.pod:434
24809 #, no-wrap
24810 msgid ""
24811 " base64-out filename (base64file|-)\n"
24812 "\n"
24813 msgstr ""
24814
24815 # type: =head2
24816 #. type: =head2
24817 #: ../fish/guestfish-actions.pod:441
24818 msgid "blockdev-flushbufs"
24819 msgstr ""
24820
24821 # type: verbatim
24822 #. type: verbatim
24823 #: ../fish/guestfish-actions.pod:443
24824 #, no-wrap
24825 msgid ""
24826 " blockdev-flushbufs device\n"
24827 "\n"
24828 msgstr ""
24829
24830 # type: =head2
24831 #. type: =head2
24832 #: ../fish/guestfish-actions.pod:450
24833 msgid "blockdev-getbsz"
24834 msgstr ""
24835
24836 # type: verbatim
24837 #. type: verbatim
24838 #: ../fish/guestfish-actions.pod:452
24839 #, no-wrap
24840 msgid ""
24841 " blockdev-getbsz device\n"
24842 "\n"
24843 msgstr ""
24844
24845 # type: =head2
24846 #. type: =head2
24847 #: ../fish/guestfish-actions.pod:461
24848 msgid "blockdev-getro"
24849 msgstr ""
24850
24851 # type: verbatim
24852 #. type: verbatim
24853 #: ../fish/guestfish-actions.pod:463
24854 #, no-wrap
24855 msgid ""
24856 " blockdev-getro device\n"
24857 "\n"
24858 msgstr ""
24859
24860 # type: =head2
24861 #. type: =head2
24862 #: ../fish/guestfish-actions.pod:470
24863 msgid "blockdev-getsize64"
24864 msgstr ""
24865
24866 # type: verbatim
24867 #. type: verbatim
24868 #: ../fish/guestfish-actions.pod:472
24869 #, no-wrap
24870 msgid ""
24871 " blockdev-getsize64 device\n"
24872 "\n"
24873 msgstr ""
24874
24875 # type: textblock
24876 #. type: textblock
24877 #: ../fish/guestfish-actions.pod:476
24878 msgid "See also L</blockdev-getsz>."
24879 msgstr ""
24880
24881 # type: =head2
24882 #. type: =head2
24883 #: ../fish/guestfish-actions.pod:480
24884 msgid "blockdev-getss"
24885 msgstr ""
24886
24887 # type: verbatim
24888 #. type: verbatim
24889 #: ../fish/guestfish-actions.pod:482
24890 #, no-wrap
24891 msgid ""
24892 " blockdev-getss device\n"
24893 "\n"
24894 msgstr ""
24895
24896 # type: textblock
24897 #. type: textblock
24898 #: ../fish/guestfish-actions.pod:487
24899 msgid ""
24900 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24901 msgstr ""
24902
24903 # type: =head2
24904 #. type: =head2
24905 #: ../fish/guestfish-actions.pod:492
24906 msgid "blockdev-getsz"
24907 msgstr ""
24908
24909 # type: verbatim
24910 #. type: verbatim
24911 #: ../fish/guestfish-actions.pod:494
24912 #, no-wrap
24913 msgid ""
24914 " blockdev-getsz device\n"
24915 "\n"
24916 msgstr ""
24917
24918 # type: textblock
24919 #. type: textblock
24920 #: ../fish/guestfish-actions.pod:499
24921 msgid ""
24922 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24923 "blockdev-getsize64> for the more useful I<size in bytes>."
24924 msgstr ""
24925
24926 # type: =head2
24927 #. type: =head2
24928 #: ../fish/guestfish-actions.pod:505
24929 msgid "blockdev-rereadpt"
24930 msgstr ""
24931
24932 # type: verbatim
24933 #. type: verbatim
24934 #: ../fish/guestfish-actions.pod:507
24935 #, no-wrap
24936 msgid ""
24937 " blockdev-rereadpt device\n"
24938 "\n"
24939 msgstr ""
24940
24941 # type: =head2
24942 #. type: =head2
24943 #: ../fish/guestfish-actions.pod:513
24944 msgid "blockdev-setbsz"
24945 msgstr ""
24946
24947 # type: verbatim
24948 #. type: verbatim
24949 #: ../fish/guestfish-actions.pod:515
24950 #, no-wrap
24951 msgid ""
24952 " blockdev-setbsz device blocksize\n"
24953 "\n"
24954 msgstr ""
24955
24956 # type: =head2
24957 #. type: =head2
24958 #: ../fish/guestfish-actions.pod:524
24959 msgid "blockdev-setro"
24960 msgstr ""
24961
24962 # type: verbatim
24963 #. type: verbatim
24964 #: ../fish/guestfish-actions.pod:526
24965 #, no-wrap
24966 msgid ""
24967 " blockdev-setro device\n"
24968 "\n"
24969 msgstr ""
24970
24971 # type: =head2
24972 #. type: =head2
24973 #: ../fish/guestfish-actions.pod:532
24974 msgid "blockdev-setrw"
24975 msgstr ""
24976
24977 # type: verbatim
24978 #. type: verbatim
24979 #: ../fish/guestfish-actions.pod:534
24980 #, no-wrap
24981 msgid ""
24982 " blockdev-setrw device\n"
24983 "\n"
24984 msgstr ""
24985
24986 # type: =head2
24987 #. type: =head2
24988 #: ../fish/guestfish-actions.pod:540
24989 msgid "case-sensitive-path"
24990 msgstr ""
24991
24992 # type: verbatim
24993 #. type: verbatim
24994 #: ../fish/guestfish-actions.pod:542
24995 #, no-wrap
24996 msgid ""
24997 " case-sensitive-path path\n"
24998 "\n"
24999 msgstr ""
25000
25001 # type: textblock
25002 #. type: textblock
25003 #: ../fish/guestfish-actions.pod:566
25004 msgid ""
25005 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
25006 "WINDOWS/system32\"> (the exact return value would depend on details of how "
25007 "the directories were originally created under Windows)."
25008 msgstr ""
25009
25010 # type: textblock
25011 #. type: textblock
25012 #: ../fish/guestfish-actions.pod:574
25013 msgid "See also L</realpath>."
25014 msgstr ""
25015
25016 # type: =head2
25017 #. type: =head2
25018 #: ../fish/guestfish-actions.pod:576
25019 msgid "cat"
25020 msgstr ""
25021
25022 # type: verbatim
25023 #. type: verbatim
25024 #: ../fish/guestfish-actions.pod:578
25025 #, no-wrap
25026 msgid ""
25027 " cat path\n"
25028 "\n"
25029 msgstr ""
25030
25031 # type: textblock
25032 #. type: textblock
25033 #: ../fish/guestfish-actions.pod:582
25034 msgid ""
25035 "Note that this function cannot correctly handle binary files (specifically, "
25036 "files containing C<\\0> character which is treated as end of string).  For "
25037 "those you need to use the L</read-file> or L</download> functions which have "
25038 "a more complex interface."
25039 msgstr ""
25040
25041 # type: =head2
25042 #. type: =head2
25043 #: ../fish/guestfish-actions.pod:590
25044 msgid "checksum"
25045 msgstr ""
25046
25047 # type: verbatim
25048 #. type: verbatim
25049 #: ../fish/guestfish-actions.pod:592
25050 #, no-wrap
25051 msgid ""
25052 " checksum csumtype path\n"
25053 "\n"
25054 msgstr ""
25055
25056 # type: textblock
25057 #. type: textblock
25058 #: ../fish/guestfish-actions.pod:635
25059 msgid "To get the checksum for a device, use L</checksum-device>."
25060 msgstr ""
25061
25062 # type: textblock
25063 #. type: textblock
25064 #: ../fish/guestfish-actions.pod:637
25065 msgid "To get the checksums for many files, use L</checksums-out>."
25066 msgstr ""
25067
25068 # type: =head2
25069 #. type: =head2
25070 #: ../fish/guestfish-actions.pod:639
25071 msgid "checksum-device"
25072 msgstr ""
25073
25074 # type: verbatim
25075 #. type: verbatim
25076 #: ../fish/guestfish-actions.pod:641
25077 #, no-wrap
25078 msgid ""
25079 " checksum-device csumtype device\n"
25080 "\n"
25081 msgstr ""
25082
25083 # type: textblock
25084 #. type: textblock
25085 #: ../fish/guestfish-actions.pod:643
25086 msgid ""
25087 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25088 "device named C<device>.  For the types of checksums supported see the L</"
25089 "checksum> command."
25090 msgstr ""
25091
25092 # type: =head2
25093 #. type: =head2
25094 #: ../fish/guestfish-actions.pod:647
25095 msgid "checksums-out"
25096 msgstr ""
25097
25098 # type: verbatim
25099 #. type: verbatim
25100 #: ../fish/guestfish-actions.pod:649
25101 #, no-wrap
25102 msgid ""
25103 " checksums-out csumtype directory (sumsfile|-)\n"
25104 "\n"
25105 msgstr ""
25106
25107 # type: =head2
25108 #. type: =head2
25109 #: ../fish/guestfish-actions.pod:665
25110 msgid "chmod"
25111 msgstr ""
25112
25113 # type: verbatim
25114 #. type: verbatim
25115 #: ../fish/guestfish-actions.pod:667
25116 #, no-wrap
25117 msgid ""
25118 " chmod mode path\n"
25119 "\n"
25120 msgstr ""
25121
25122 # type: =head2
25123 #. type: =head2
25124 #: ../fish/guestfish-actions.pod:678
25125 msgid "chown"
25126 msgstr ""
25127
25128 # type: verbatim
25129 #. type: verbatim
25130 #: ../fish/guestfish-actions.pod:680
25131 #, no-wrap
25132 msgid ""
25133 " chown owner group path\n"
25134 "\n"
25135 msgstr ""
25136
25137 # type: =head2
25138 #. type: =head2
25139 #: ../fish/guestfish-actions.pod:688
25140 msgid "command"
25141 msgstr ""
25142
25143 # type: verbatim
25144 #. type: verbatim
25145 #: ../fish/guestfish-actions.pod:690
25146 #, no-wrap
25147 msgid ""
25148 " command 'arguments ...'\n"
25149 "\n"
25150 msgstr ""
25151
25152 # type: textblock
25153 #. type: textblock
25154 #: ../fish/guestfish-actions.pod:697
25155 msgid ""
25156 "The single parameter is an argv-style list of arguments.  The first element "
25157 "is the name of the program to run.  Subsequent elements are parameters.  The "
25158 "list must be non-empty (ie. must contain a program name).  Note that the "
25159 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25160 msgstr ""
25161
25162 # type: =head2
25163 #. type: =head2
25164 #: ../fish/guestfish-actions.pod:725
25165 msgid "command-lines"
25166 msgstr ""
25167
25168 # type: verbatim
25169 #. type: verbatim
25170 #: ../fish/guestfish-actions.pod:727
25171 #, no-wrap
25172 msgid ""
25173 " command-lines 'arguments ...'\n"
25174 "\n"
25175 msgstr ""
25176
25177 # type: textblock
25178 #. type: textblock
25179 #: ../fish/guestfish-actions.pod:729
25180 msgid ""
25181 "This is the same as L</command>, but splits the result into a list of lines."
25182 msgstr ""
25183
25184 # type: textblock
25185 #. type: textblock
25186 #: ../fish/guestfish-actions.pod:732
25187 msgid "See also: L</sh-lines>"
25188 msgstr ""
25189
25190 # type: =head2
25191 #. type: =head2
25192 #: ../fish/guestfish-actions.pod:737
25193 msgid "config"
25194 msgstr ""
25195
25196 # type: verbatim
25197 #. type: verbatim
25198 #: ../fish/guestfish-actions.pod:739
25199 #, no-wrap
25200 msgid ""
25201 " config qemuparam qemuvalue\n"
25202 "\n"
25203 msgstr ""
25204
25205 # type: =head2
25206 #. type: =head2
25207 #: ../fish/guestfish-actions.pod:750
25208 msgid "copy-size"
25209 msgstr ""
25210
25211 # type: verbatim
25212 #. type: verbatim
25213 #: ../fish/guestfish-actions.pod:752
25214 #, no-wrap
25215 msgid ""
25216 " copy-size src dest size\n"
25217 "\n"
25218 msgstr ""
25219
25220 # type: =head2
25221 #. type: =head2
25222 #: ../fish/guestfish-actions.pod:760
25223 msgid "cp"
25224 msgstr ""
25225
25226 # type: verbatim
25227 #. type: verbatim
25228 #: ../fish/guestfish-actions.pod:762
25229 #, no-wrap
25230 msgid ""
25231 " cp src dest\n"
25232 "\n"
25233 msgstr ""
25234
25235 # type: =head2
25236 #. type: =head2
25237 #: ../fish/guestfish-actions.pod:767
25238 msgid "cp-a"
25239 msgstr ""
25240
25241 # type: verbatim
25242 #. type: verbatim
25243 #: ../fish/guestfish-actions.pod:769
25244 #, no-wrap
25245 msgid ""
25246 " cp-a src dest\n"
25247 "\n"
25248 msgstr ""
25249
25250 # type: =head2
25251 #. type: =head2
25252 #: ../fish/guestfish-actions.pod:774
25253 msgid "dd"
25254 msgstr ""
25255
25256 # type: verbatim
25257 #. type: verbatim
25258 #: ../fish/guestfish-actions.pod:776
25259 #, no-wrap
25260 msgid ""
25261 " dd src dest\n"
25262 "\n"
25263 msgstr ""
25264
25265 # type: textblock
25266 #. type: textblock
25267 #: ../fish/guestfish-actions.pod:783
25268 msgid ""
25269 "If the destination is a device, it must be as large or larger than the "
25270 "source file or device, otherwise the copy will fail.  This command cannot do "
25271 "partial copies (see L</copy-size>)."
25272 msgstr ""
25273
25274 # type: =head2
25275 #. type: =head2
25276 #: ../fish/guestfish-actions.pod:787
25277 msgid "df"
25278 msgstr ""
25279
25280 # type: verbatim
25281 #. type: verbatim
25282 #: ../fish/guestfish-actions.pod:789
25283 #, no-wrap
25284 msgid ""
25285 " df\n"
25286 "\n"
25287 msgstr ""
25288
25289 # type: textblock
25290 #. type: textblock
25291 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
25292 msgid ""
25293 "This command is mostly useful for interactive sessions.  It is I<not> "
25294 "intended that you try to parse the output string.  Use L</statvfs> from "
25295 "programs."
25296 msgstr ""
25297
25298 # type: =head2
25299 #. type: =head2
25300 #: ../fish/guestfish-actions.pod:797
25301 msgid "df-h"
25302 msgstr ""
25303
25304 # type: verbatim
25305 #. type: verbatim
25306 #: ../fish/guestfish-actions.pod:799
25307 #, no-wrap
25308 msgid ""
25309 " df-h\n"
25310 "\n"
25311 msgstr ""
25312
25313 # type: =head2
25314 #. type: =head2
25315 #: ../fish/guestfish-actions.pod:808
25316 msgid "dmesg"
25317 msgstr ""
25318
25319 # type: verbatim
25320 #. type: verbatim
25321 #: ../fish/guestfish-actions.pod:810
25322 #, no-wrap
25323 msgid ""
25324 " dmesg\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: textblock
25329 #. type: textblock
25330 #: ../fish/guestfish-actions.pod:816
25331 msgid ""
25332 "Another way to get the same information is to enable verbose messages with "
25333 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25334 "before running the program."
25335 msgstr ""
25336
25337 # type: =head2
25338 #. type: =head2
25339 #: ../fish/guestfish-actions.pod:821
25340 msgid "download"
25341 msgstr ""
25342
25343 # type: verbatim
25344 #. type: verbatim
25345 #: ../fish/guestfish-actions.pod:823
25346 #, no-wrap
25347 msgid ""
25348 " download remotefilename (filename|-)\n"
25349 "\n"
25350 msgstr ""
25351
25352 # type: textblock
25353 #. type: textblock
25354 #: ../fish/guestfish-actions.pod:830
25355 msgid "See also L</upload>, L</cat>."
25356 msgstr ""
25357
25358 # type: =head2
25359 #. type: =head2
25360 #: ../fish/guestfish-actions.pod:834
25361 msgid "download-offset"
25362 msgstr ""
25363
25364 # type: verbatim
25365 #. type: verbatim
25366 #: ../fish/guestfish-actions.pod:836
25367 #, no-wrap
25368 msgid ""
25369 " download-offset remotefilename (filename|-) offset size\n"
25370 "\n"
25371 msgstr ""
25372
25373 # type: textblock
25374 #. type: textblock
25375 #: ../fish/guestfish-actions.pod:844
25376 msgid ""
25377 "Note that there is no limit on the amount of data that can be downloaded "
25378 "with this call, unlike with L</pread>, and this call always reads the full "
25379 "amount unless an error occurs."
25380 msgstr ""
25381
25382 # type: textblock
25383 #. type: textblock
25384 #: ../fish/guestfish-actions.pod:849
25385 msgid "See also L</download>, L</pread>."
25386 msgstr ""
25387
25388 # type: =head2
25389 #. type: =head2
25390 #: ../fish/guestfish-actions.pod:853
25391 msgid "drop-caches"
25392 msgstr ""
25393
25394 # type: verbatim
25395 #. type: verbatim
25396 #: ../fish/guestfish-actions.pod:855
25397 #, no-wrap
25398 msgid ""
25399 " drop-caches whattodrop\n"
25400 "\n"
25401 msgstr ""
25402
25403 # type: =head2
25404 #. type: =head2
25405 #: ../fish/guestfish-actions.pod:867
25406 msgid "du"
25407 msgstr ""
25408
25409 # type: verbatim
25410 #. type: verbatim
25411 #: ../fish/guestfish-actions.pod:869
25412 #, no-wrap
25413 msgid ""
25414 " du path\n"
25415 "\n"
25416 msgstr ""
25417
25418 # type: =head2
25419 #. type: =head2
25420 #: ../fish/guestfish-actions.pod:881
25421 msgid "e2fsck-f"
25422 msgstr ""
25423
25424 # type: verbatim
25425 #. type: verbatim
25426 #: ../fish/guestfish-actions.pod:883
25427 #, no-wrap
25428 msgid ""
25429 " e2fsck-f device\n"
25430 "\n"
25431 msgstr ""
25432
25433 # type: textblock
25434 #. type: textblock
25435 #: ../fish/guestfish-actions.pod:889
25436 msgid ""
25437 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25438 "should use L</fsck>."
25439 msgstr ""
25440
25441 # type: =head2
25442 #. type: =head2
25443 #: ../fish/guestfish-actions.pod:892
25444 msgid "echo-daemon"
25445 msgstr ""
25446
25447 # type: verbatim
25448 #. type: verbatim
25449 #: ../fish/guestfish-actions.pod:894
25450 #, no-wrap
25451 msgid ""
25452 " echo-daemon 'words ...'\n"
25453 "\n"
25454 msgstr ""
25455
25456 # type: textblock
25457 #. type: textblock
25458 #: ../fish/guestfish-actions.pod:901
25459 msgid "See also L</ping-daemon>."
25460 msgstr ""
25461
25462 # type: =head2
25463 #. type: =head2
25464 #: ../fish/guestfish-actions.pod:903
25465 msgid "egrep"
25466 msgstr ""
25467
25468 # type: verbatim
25469 #. type: verbatim
25470 #: ../fish/guestfish-actions.pod:905
25471 #, no-wrap
25472 msgid ""
25473 " egrep regex path\n"
25474 "\n"
25475 msgstr ""
25476
25477 # type: =head2
25478 #. type: =head2
25479 #: ../fish/guestfish-actions.pod:913
25480 msgid "egrepi"
25481 msgstr ""
25482
25483 # type: verbatim
25484 #. type: verbatim
25485 #: ../fish/guestfish-actions.pod:915
25486 #, no-wrap
25487 msgid ""
25488 " egrepi regex path\n"
25489 "\n"
25490 msgstr ""
25491
25492 # type: =head2
25493 #. type: =head2
25494 #: ../fish/guestfish-actions.pod:923
25495 msgid "equal"
25496 msgstr ""
25497
25498 # type: verbatim
25499 #. type: verbatim
25500 #: ../fish/guestfish-actions.pod:925
25501 #, no-wrap
25502 msgid ""
25503 " equal file1 file2\n"
25504 "\n"
25505 msgstr ""
25506
25507 # type: =head2
25508 #. type: =head2
25509 #: ../fish/guestfish-actions.pod:932
25510 msgid "exists"
25511 msgstr ""
25512
25513 # type: verbatim
25514 #. type: verbatim
25515 #: ../fish/guestfish-actions.pod:934
25516 #, no-wrap
25517 msgid ""
25518 " exists path\n"
25519 "\n"
25520 msgstr ""
25521
25522 # type: textblock
25523 #. type: textblock
25524 #: ../fish/guestfish-actions.pod:939
25525 msgid "See also L</is-file>, L</is-dir>, L</stat>."
25526 msgstr ""
25527
25528 # type: =head2
25529 #. type: =head2
25530 #: ../fish/guestfish-actions.pod:941
25531 msgid "fallocate"
25532 msgstr ""
25533
25534 # type: verbatim
25535 #. type: verbatim
25536 #: ../fish/guestfish-actions.pod:943
25537 #, no-wrap
25538 msgid ""
25539 " fallocate path len\n"
25540 "\n"
25541 msgstr ""
25542
25543 # type: =head2
25544 #. type: =head2
25545 #: ../fish/guestfish-actions.pod:960
25546 msgid "fallocate64"
25547 msgstr ""
25548
25549 # type: verbatim
25550 #. type: verbatim
25551 #: ../fish/guestfish-actions.pod:962
25552 #, no-wrap
25553 msgid ""
25554 " fallocate64 path len\n"
25555 "\n"
25556 msgstr ""
25557
25558 # type: textblock
25559 #. type: textblock
25560 #: ../fish/guestfish-actions.pod:968
25561 msgid ""
25562 "Note that this call allocates disk blocks for the file.  To create a sparse "
25563 "file use L</truncate-size> instead."
25564 msgstr ""
25565
25566 # type: textblock
25567 #. type: textblock
25568 #: ../fish/guestfish-actions.pod:971
25569 msgid ""
25570 "The deprecated call L</fallocate> does the same, but owing to an oversight "
25571 "it only allowed 30 bit lengths to be specified, effectively limiting the "
25572 "maximum size of files created through that call to 1GB."
25573 msgstr ""
25574
25575 # type: =head2
25576 #. type: =head2
25577 #: ../fish/guestfish-actions.pod:980
25578 msgid "fgrep"
25579 msgstr ""
25580
25581 # type: verbatim
25582 #. type: verbatim
25583 #: ../fish/guestfish-actions.pod:982
25584 #, no-wrap
25585 msgid ""
25586 " fgrep pattern path\n"
25587 "\n"
25588 msgstr ""
25589
25590 # type: =head2
25591 #. type: =head2
25592 #: ../fish/guestfish-actions.pod:990
25593 msgid "fgrepi"
25594 msgstr ""
25595
25596 # type: verbatim
25597 #. type: verbatim
25598 #: ../fish/guestfish-actions.pod:992
25599 #, no-wrap
25600 msgid ""
25601 " fgrepi pattern path\n"
25602 "\n"
25603 msgstr ""
25604
25605 # type: =head2
25606 #. type: =head2
25607 #: ../fish/guestfish-actions.pod:1000
25608 msgid "file"
25609 msgstr ""
25610
25611 # type: verbatim
25612 #. type: verbatim
25613 #: ../fish/guestfish-actions.pod:1002
25614 #, no-wrap
25615 msgid ""
25616 " file path\n"
25617 "\n"
25618 msgstr ""
25619
25620 # type: textblock
25621 #. type: textblock
25622 #: ../fish/guestfish-actions.pod:1014
25623 msgid ""
25624 "This command can also be used on C</dev/> devices (and partitions, LV "
25625 "names).  You can for example use this to determine if a device contains a "
25626 "filesystem, although it's usually better to use L</vfs-type>."
25627 msgstr ""
25628
25629 # type: =head2
25630 #. type: =head2
25631 #: ../fish/guestfish-actions.pod:1024
25632 msgid "file-architecture"
25633 msgstr ""
25634
25635 # type: verbatim
25636 #. type: verbatim
25637 #: ../fish/guestfish-actions.pod:1026
25638 #, no-wrap
25639 msgid ""
25640 " file-architecture filename\n"
25641 "\n"
25642 msgstr ""
25643
25644 # type: =head2
25645 #. type: =head2
25646 #: ../fish/guestfish-actions.pod:1129
25647 msgid "filesize"
25648 msgstr ""
25649
25650 # type: verbatim
25651 #. type: verbatim
25652 #: ../fish/guestfish-actions.pod:1131
25653 #, no-wrap
25654 msgid ""
25655 " filesize file\n"
25656 "\n"
25657 msgstr ""
25658
25659 # type: textblock
25660 #. type: textblock
25661 #: ../fish/guestfish-actions.pod:1135
25662 msgid ""
25663 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
25664 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
25665 msgstr ""
25666
25667 # type: =head2
25668 #. type: =head2
25669 #: ../fish/guestfish-actions.pod:1139
25670 msgid "fill"
25671 msgstr ""
25672
25673 # type: verbatim
25674 #. type: verbatim
25675 #: ../fish/guestfish-actions.pod:1141
25676 #, no-wrap
25677 msgid ""
25678 " fill c len path\n"
25679 "\n"
25680 msgstr ""
25681
25682 # type: textblock
25683 #. type: textblock
25684 #: ../fish/guestfish-actions.pod:1147
25685 msgid ""
25686 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25687 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
25688 "L</fill-pattern>."
25689 msgstr ""
25690
25691 # type: =head2
25692 #. type: =head2
25693 #: ../fish/guestfish-actions.pod:1152
25694 msgid "fill-pattern"
25695 msgstr ""
25696
25697 # type: verbatim
25698 #. type: verbatim
25699 #: ../fish/guestfish-actions.pod:1154
25700 #, no-wrap
25701 msgid ""
25702 " fill-pattern pattern len path\n"
25703 "\n"
25704 msgstr ""
25705
25706 # type: textblock
25707 #. type: textblock
25708 #: ../fish/guestfish-actions.pod:1156
25709 msgid ""
25710 "This function is like L</fill> except that it creates a new file of length "
25711 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
25712 "is truncated if necessary to ensure the length of the file is exactly C<len> "
25713 "bytes."
25714 msgstr ""
25715
25716 # type: =head2
25717 #. type: =head2
25718 #: ../fish/guestfish-actions.pod:1161
25719 msgid "find"
25720 msgstr ""
25721
25722 # type: verbatim
25723 #. type: verbatim
25724 #: ../fish/guestfish-actions.pod:1163
25725 #, no-wrap
25726 msgid ""
25727 " find directory\n"
25728 "\n"
25729 msgstr ""
25730
25731 # type: textblock
25732 #. type: textblock
25733 #: ../fish/guestfish-actions.pod:1177
25734 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
25735 msgstr ""
25736
25737 # type: textblock
25738 #. type: textblock
25739 #: ../fish/guestfish-actions.pod:1190
25740 msgid "See also L</find0>."
25741 msgstr ""
25742
25743 # type: =head2
25744 #. type: =head2
25745 #: ../fish/guestfish-actions.pod:1195
25746 msgid "find0"
25747 msgstr ""
25748
25749 # type: verbatim
25750 #. type: verbatim
25751 #: ../fish/guestfish-actions.pod:1197
25752 #, no-wrap
25753 msgid ""
25754 " find0 directory (files|-)\n"
25755 "\n"
25756 msgstr ""
25757
25758 # type: textblock
25759 #. type: textblock
25760 #: ../fish/guestfish-actions.pod:1203
25761 msgid ""
25762 "This command works the same way as L</find> with the following exceptions:"
25763 msgstr ""
25764
25765 # type: =head2
25766 #. type: =head2
25767 #: ../fish/guestfish-actions.pod:1230
25768 msgid "findfs-label"
25769 msgstr ""
25770
25771 # type: verbatim
25772 #. type: verbatim
25773 #: ../fish/guestfish-actions.pod:1232
25774 #, no-wrap
25775 msgid ""
25776 " findfs-label label\n"
25777 "\n"
25778 msgstr ""
25779
25780 # type: textblock
25781 #. type: textblock
25782 #: ../fish/guestfish-actions.pod:1238
25783 msgid "To find the label of a filesystem, use L</vfs-label>."
25784 msgstr ""
25785
25786 # type: =head2
25787 #. type: =head2
25788 #: ../fish/guestfish-actions.pod:1240
25789 msgid "findfs-uuid"
25790 msgstr ""
25791
25792 # type: verbatim
25793 #. type: verbatim
25794 #: ../fish/guestfish-actions.pod:1242
25795 #, no-wrap
25796 msgid ""
25797 " findfs-uuid uuid\n"
25798 "\n"
25799 msgstr ""
25800
25801 # type: textblock
25802 #. type: textblock
25803 #: ../fish/guestfish-actions.pod:1248
25804 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
25805 msgstr ""
25806
25807 # type: =head2
25808 #. type: =head2
25809 #: ../fish/guestfish-actions.pod:1250
25810 msgid "fsck"
25811 msgstr ""
25812
25813 # type: verbatim
25814 #. type: verbatim
25815 #: ../fish/guestfish-actions.pod:1252
25816 #, no-wrap
25817 msgid ""
25818 " fsck fstype device\n"
25819 "\n"
25820 msgstr ""
25821
25822 # type: =head2
25823 #. type: =head2
25824 #: ../fish/guestfish-actions.pod:1282
25825 msgid "get-append"
25826 msgstr ""
25827
25828 # type: verbatim
25829 #. type: verbatim
25830 #: ../fish/guestfish-actions.pod:1284
25831 #, no-wrap
25832 msgid ""
25833 " get-append\n"
25834 "\n"
25835 msgstr ""
25836
25837 #. type: =head2
25838 #: ../fish/guestfish-actions.pod:1291
25839 msgid "get-attach-method"
25840 msgstr ""
25841
25842 #. type: verbatim
25843 #: ../fish/guestfish-actions.pod:1293
25844 #, no-wrap
25845 msgid ""
25846 " get-attach-method\n"
25847 "\n"
25848 msgstr ""
25849
25850 #. type: textblock
25851 #: ../fish/guestfish-actions.pod:1295
25852 msgid "Return the current attach method.  See L</set-attach-method>."
25853 msgstr ""
25854
25855 # type: =head2
25856 #. type: =head2
25857 #: ../fish/guestfish-actions.pod:1297
25858 msgid "get-autosync"
25859 msgstr ""
25860
25861 # type: verbatim
25862 #. type: verbatim
25863 #: ../fish/guestfish-actions.pod:1299
25864 #, no-wrap
25865 msgid ""
25866 " get-autosync\n"
25867 "\n"
25868 msgstr ""
25869
25870 # type: =head2
25871 #. type: =head2
25872 #: ../fish/guestfish-actions.pod:1303
25873 msgid "get-direct"
25874 msgstr ""
25875
25876 # type: verbatim
25877 #. type: verbatim
25878 #: ../fish/guestfish-actions.pod:1305
25879 #, no-wrap
25880 msgid ""
25881 " get-direct\n"
25882 "\n"
25883 msgstr ""
25884
25885 # type: =head2
25886 #. type: =head2
25887 #: ../fish/guestfish-actions.pod:1309
25888 msgid "get-e2label"
25889 msgstr ""
25890
25891 # type: verbatim
25892 #. type: verbatim
25893 #: ../fish/guestfish-actions.pod:1311
25894 #, no-wrap
25895 msgid ""
25896 " get-e2label device\n"
25897 "\n"
25898 msgstr ""
25899
25900 # type: =head2
25901 #. type: =head2
25902 #: ../fish/guestfish-actions.pod:1323
25903 msgid "get-e2uuid"
25904 msgstr ""
25905
25906 # type: verbatim
25907 #. type: verbatim
25908 #: ../fish/guestfish-actions.pod:1325
25909 #, no-wrap
25910 msgid ""
25911 " get-e2uuid device\n"
25912 "\n"
25913 msgstr ""
25914
25915 # type: =head2
25916 #. type: =head2
25917 #: ../fish/guestfish-actions.pod:1337
25918 msgid "get-memsize"
25919 msgstr ""
25920
25921 # type: verbatim
25922 #. type: verbatim
25923 #: ../fish/guestfish-actions.pod:1339
25924 #, no-wrap
25925 msgid ""
25926 " get-memsize\n"
25927 "\n"
25928 msgstr ""
25929
25930 # type: textblock
25931 #. type: textblock
25932 #: ../fish/guestfish-actions.pod:1344
25933 msgid ""
25934 "If L</set-memsize> was not called on this handle, and if "
25935 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25936 "value for memsize."
25937 msgstr ""
25938
25939 # type: =head2
25940 #. type: =head2
25941 #: ../fish/guestfish-actions.pod:1351
25942 msgid "get-network"
25943 msgstr ""
25944
25945 # type: verbatim
25946 #. type: verbatim
25947 #: ../fish/guestfish-actions.pod:1353
25948 #, no-wrap
25949 msgid ""
25950 " get-network\n"
25951 "\n"
25952 msgstr ""
25953
25954 # type: =head2
25955 #. type: =head2
25956 #: ../fish/guestfish-actions.pod:1357
25957 msgid "get-path"
25958 msgstr ""
25959
25960 # type: verbatim
25961 #. type: verbatim
25962 #: ../fish/guestfish-actions.pod:1359
25963 #, no-wrap
25964 msgid ""
25965 " get-path\n"
25966 "\n"
25967 msgstr ""
25968
25969 # type: =head2
25970 #. type: =head2
25971 #: ../fish/guestfish-actions.pod:1366
25972 msgid "get-pid"
25973 msgstr ""
25974
25975 # type: =head2
25976 #. type: =head2
25977 #: ../fish/guestfish-actions.pod:1368
25978 msgid "pid"
25979 msgstr ""
25980
25981 # type: verbatim
25982 #. type: verbatim
25983 #: ../fish/guestfish-actions.pod:1370
25984 #, no-wrap
25985 msgid ""
25986 " get-pid\n"
25987 "\n"
25988 msgstr ""
25989
25990 # type: =head2
25991 #. type: =head2
25992 #: ../fish/guestfish-actions.pod:1377
25993 msgid "get-qemu"
25994 msgstr ""
25995
25996 # type: verbatim
25997 #. type: verbatim
25998 #: ../fish/guestfish-actions.pod:1379
25999 #, no-wrap
26000 msgid ""
26001 " get-qemu\n"
26002 "\n"
26003 msgstr ""
26004
26005 # type: =head2
26006 #. type: =head2
26007 #: ../fish/guestfish-actions.pod:1386
26008 msgid "get-recovery-proc"
26009 msgstr ""
26010
26011 # type: verbatim
26012 #. type: verbatim
26013 #: ../fish/guestfish-actions.pod:1388
26014 #, no-wrap
26015 msgid ""
26016 " get-recovery-proc\n"
26017 "\n"
26018 msgstr ""
26019
26020 # type: =head2
26021 #. type: =head2
26022 #: ../fish/guestfish-actions.pod:1392
26023 msgid "get-selinux"
26024 msgstr ""
26025
26026 # type: verbatim
26027 #. type: verbatim
26028 #: ../fish/guestfish-actions.pod:1394
26029 #, no-wrap
26030 msgid ""
26031 " get-selinux\n"
26032 "\n"
26033 msgstr ""
26034
26035 # type: textblock
26036 #. type: textblock
26037 #: ../fish/guestfish-actions.pod:1396
26038 msgid ""
26039 "This returns the current setting of the selinux flag which is passed to the "
26040 "appliance at boot time.  See L</set-selinux>."
26041 msgstr ""
26042
26043 # type: =head2
26044 #. type: =head2
26045 #: ../fish/guestfish-actions.pod:1402
26046 msgid "get-state"
26047 msgstr ""
26048
26049 # type: verbatim
26050 #. type: verbatim
26051 #: ../fish/guestfish-actions.pod:1404
26052 #, no-wrap
26053 msgid ""
26054 " get-state\n"
26055 "\n"
26056 msgstr ""
26057
26058 # type: =head2
26059 #. type: =head2
26060 #: ../fish/guestfish-actions.pod:1411
26061 msgid "get-trace"
26062 msgstr ""
26063
26064 # type: verbatim
26065 #. type: verbatim
26066 #: ../fish/guestfish-actions.pod:1413
26067 #, no-wrap
26068 msgid ""
26069 " get-trace\n"
26070 "\n"
26071 msgstr ""
26072
26073 # type: =head2
26074 #. type: =head2
26075 #: ../fish/guestfish-actions.pod:1417
26076 msgid "get-umask"
26077 msgstr ""
26078
26079 # type: verbatim
26080 #. type: verbatim
26081 #: ../fish/guestfish-actions.pod:1419
26082 #, no-wrap
26083 msgid ""
26084 " get-umask\n"
26085 "\n"
26086 msgstr ""
26087
26088 # type: textblock
26089 #. type: textblock
26090 #: ../fish/guestfish-actions.pod:1421
26091 msgid ""
26092 "Return the current umask.  By default the umask is C<022> unless it has been "
26093 "set by calling L</umask>."
26094 msgstr ""
26095
26096 # type: =head2
26097 #. type: =head2
26098 #: ../fish/guestfish-actions.pod:1424
26099 msgid "get-verbose"
26100 msgstr ""
26101
26102 # type: verbatim
26103 #. type: verbatim
26104 #: ../fish/guestfish-actions.pod:1426
26105 #, no-wrap
26106 msgid ""
26107 " get-verbose\n"
26108 "\n"
26109 msgstr ""
26110
26111 # type: =head2
26112 #. type: =head2
26113 #: ../fish/guestfish-actions.pod:1430
26114 msgid "getcon"
26115 msgstr ""
26116
26117 # type: verbatim
26118 #. type: verbatim
26119 #: ../fish/guestfish-actions.pod:1432
26120 #, no-wrap
26121 msgid ""
26122 " getcon\n"
26123 "\n"
26124 msgstr ""
26125
26126 # type: textblock
26127 #. type: textblock
26128 #: ../fish/guestfish-actions.pod:1436
26129 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26130 msgstr ""
26131
26132 # type: =head2
26133 #. type: =head2
26134 #: ../fish/guestfish-actions.pod:1439
26135 msgid "getxattr"
26136 msgstr ""
26137
26138 # type: verbatim
26139 #. type: verbatim
26140 #: ../fish/guestfish-actions.pod:1441
26141 #, no-wrap
26142 msgid ""
26143 " getxattr path name\n"
26144 "\n"
26145 msgstr ""
26146
26147 # type: textblock
26148 #. type: textblock
26149 #: ../fish/guestfish-actions.pod:1443
26150 msgid ""
26151 "Get a single extended attribute from file C<path> named C<name>.  This call "
26152 "follows symlinks.  If you want to lookup an extended attribute for the "
26153 "symlink itself, use L</lgetxattr>."
26154 msgstr ""
26155
26156 # type: textblock
26157 #. type: textblock
26158 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2445
26159 msgid ""
26160 "Normally it is better to get all extended attributes from a file in one go "
26161 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26162 "buggy and do not provide a way to list out attributes.  For these "
26163 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26164 "attributes you want in advance and call this function."
26165 msgstr ""
26166
26167 # type: textblock
26168 #. type: textblock
26169 #: ../fish/guestfish-actions.pod:1457
26170 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26171 msgstr ""
26172
26173 # type: =head2
26174 #. type: =head2
26175 #: ../fish/guestfish-actions.pod:1459
26176 msgid "getxattrs"
26177 msgstr ""
26178
26179 # type: verbatim
26180 #. type: verbatim
26181 #: ../fish/guestfish-actions.pod:1461
26182 #, no-wrap
26183 msgid ""
26184 " getxattrs path\n"
26185 "\n"
26186 msgstr ""
26187
26188 # type: textblock
26189 #. type: textblock
26190 #: ../fish/guestfish-actions.pod:1469
26191 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26192 msgstr ""
26193
26194 # type: =head2
26195 #. type: =head2
26196 #: ../fish/guestfish-actions.pod:1471
26197 msgid "glob-expand"
26198 msgstr ""
26199
26200 # type: verbatim
26201 #. type: verbatim
26202 #: ../fish/guestfish-actions.pod:1473
26203 #, no-wrap
26204 msgid ""
26205 " glob-expand pattern\n"
26206 "\n"
26207 msgstr ""
26208
26209 # type: =head2
26210 #. type: =head2
26211 #: ../fish/guestfish-actions.pod:1486
26212 msgid "grep"
26213 msgstr ""
26214
26215 # type: verbatim
26216 #. type: verbatim
26217 #: ../fish/guestfish-actions.pod:1488
26218 #, no-wrap
26219 msgid ""
26220 " grep regex path\n"
26221 "\n"
26222 msgstr ""
26223
26224 # type: =head2
26225 #. type: =head2
26226 #: ../fish/guestfish-actions.pod:1496
26227 msgid "grepi"
26228 msgstr ""
26229
26230 # type: verbatim
26231 #. type: verbatim
26232 #: ../fish/guestfish-actions.pod:1498
26233 #, no-wrap
26234 msgid ""
26235 " grepi regex path\n"
26236 "\n"
26237 msgstr ""
26238
26239 # type: =head2
26240 #. type: =head2
26241 #: ../fish/guestfish-actions.pod:1506
26242 msgid "grub-install"
26243 msgstr ""
26244
26245 # type: verbatim
26246 #. type: verbatim
26247 #: ../fish/guestfish-actions.pod:1508
26248 #, no-wrap
26249 msgid ""
26250 " grub-install root device\n"
26251 "\n"
26252 msgstr ""
26253
26254 # type: =head2
26255 #. type: =head2
26256 #: ../fish/guestfish-actions.pod:1524
26257 msgid "head"
26258 msgstr ""
26259
26260 # type: verbatim
26261 #. type: verbatim
26262 #: ../fish/guestfish-actions.pod:1526
26263 #, no-wrap
26264 msgid ""
26265 " head path\n"
26266 "\n"
26267 msgstr ""
26268
26269 # type: =head2
26270 #. type: =head2
26271 #: ../fish/guestfish-actions.pod:1534
26272 msgid "head-n"
26273 msgstr ""
26274
26275 # type: verbatim
26276 #. type: verbatim
26277 #: ../fish/guestfish-actions.pod:1536
26278 #, no-wrap
26279 msgid ""
26280 " head-n nrlines path\n"
26281 "\n"
26282 msgstr ""
26283
26284 # type: =head2
26285 #. type: =head2
26286 #: ../fish/guestfish-actions.pod:1549
26287 msgid "hexdump"
26288 msgstr ""
26289
26290 # type: verbatim
26291 #. type: verbatim
26292 #: ../fish/guestfish-actions.pod:1551
26293 #, no-wrap
26294 msgid ""
26295 " hexdump path\n"
26296 "\n"
26297 msgstr ""
26298
26299 # type: =head2
26300 #. type: =head2
26301 #: ../fish/guestfish-actions.pod:1559
26302 msgid "initrd-cat"
26303 msgstr ""
26304
26305 # type: verbatim
26306 #. type: verbatim
26307 #: ../fish/guestfish-actions.pod:1561
26308 #, no-wrap
26309 msgid ""
26310 " initrd-cat initrdpath filename\n"
26311 "\n"
26312 msgstr ""
26313
26314 # type: textblock
26315 #. type: textblock
26316 #: ../fish/guestfish-actions.pod:1573
26317 msgid "See also L</initrd-list>."
26318 msgstr ""
26319
26320 # type: =head2
26321 #. type: =head2
26322 #: ../fish/guestfish-actions.pod:1578
26323 msgid "initrd-list"
26324 msgstr ""
26325
26326 # type: verbatim
26327 #. type: verbatim
26328 #: ../fish/guestfish-actions.pod:1580
26329 #, no-wrap
26330 msgid ""
26331 " initrd-list path\n"
26332 "\n"
26333 msgstr ""
26334
26335 # type: =head2
26336 #. type: =head2
26337 #: ../fish/guestfish-actions.pod:1592
26338 msgid "inotify-add-watch"
26339 msgstr ""
26340
26341 # type: verbatim
26342 #. type: verbatim
26343 #: ../fish/guestfish-actions.pod:1594
26344 #, no-wrap
26345 msgid ""
26346 " inotify-add-watch path mask\n"
26347 "\n"
26348 msgstr ""
26349
26350 # type: =head2
26351 #. type: =head2
26352 #: ../fish/guestfish-actions.pod:1606
26353 msgid "inotify-close"
26354 msgstr ""
26355
26356 # type: verbatim
26357 #. type: verbatim
26358 #: ../fish/guestfish-actions.pod:1608
26359 #, no-wrap
26360 msgid ""
26361 " inotify-close\n"
26362 "\n"
26363 msgstr ""
26364
26365 # type: =head2
26366 #. type: =head2
26367 #: ../fish/guestfish-actions.pod:1614
26368 msgid "inotify-files"
26369 msgstr ""
26370
26371 # type: verbatim
26372 #. type: verbatim
26373 #: ../fish/guestfish-actions.pod:1616
26374 #, no-wrap
26375 msgid ""
26376 " inotify-files\n"
26377 "\n"
26378 msgstr ""
26379
26380 # type: textblock
26381 #. type: textblock
26382 #: ../fish/guestfish-actions.pod:1618
26383 msgid ""
26384 "This function is a helpful wrapper around L</inotify-read> which just "
26385 "returns a list of pathnames of objects that were touched.  The returned "
26386 "pathnames are sorted and deduplicated."
26387 msgstr ""
26388
26389 # type: =head2
26390 #. type: =head2
26391 #: ../fish/guestfish-actions.pod:1622
26392 msgid "inotify-init"
26393 msgstr ""
26394
26395 # type: verbatim
26396 #. type: verbatim
26397 #: ../fish/guestfish-actions.pod:1624
26398 #, no-wrap
26399 msgid ""
26400 " inotify-init maxevents\n"
26401 "\n"
26402 msgstr ""
26403
26404 # type: textblock
26405 #. type: textblock
26406 #: ../fish/guestfish-actions.pod:1630
26407 msgid ""
26408 "C<maxevents> is the maximum number of events which will be queued up between "
26409 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26410 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26411 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26412 "but records the fact that it threw them away by setting a flag "
26413 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26414 msgstr ""
26415
26416 # type: textblock
26417 #. type: textblock
26418 #: ../fish/guestfish-actions.pod:1640
26419 msgid ""
26420 "Before any events are generated, you have to add some watches to the "
26421 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26422 "L</inotify-watch-all>."
26423 msgstr ""
26424
26425 # type: textblock
26426 #. type: textblock
26427 #: ../fish/guestfish-actions.pod:1646
26428 msgid ""
26429 "Queued up events should be read periodically by calling L</inotify-read> (or "
26430 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26431 "If you don't read the events out often enough then you risk the internal "
26432 "queue overflowing."
26433 msgstr ""
26434
26435 # type: textblock
26436 #. type: textblock
26437 #: ../fish/guestfish-actions.pod:1653
26438 msgid ""
26439 "The handle should be closed after use by calling L</inotify-close>.  This "
26440 "also removes any watches automatically."
26441 msgstr ""
26442
26443 # type: =head2
26444 #. type: =head2
26445 #: ../fish/guestfish-actions.pod:1662
26446 msgid "inotify-read"
26447 msgstr ""
26448
26449 # type: verbatim
26450 #. type: verbatim
26451 #: ../fish/guestfish-actions.pod:1664
26452 #, no-wrap
26453 msgid ""
26454 " inotify-read\n"
26455 "\n"
26456 msgstr ""
26457
26458 # type: =head2
26459 #. type: =head2
26460 #: ../fish/guestfish-actions.pod:1677
26461 msgid "inotify-rm-watch"
26462 msgstr ""
26463
26464 # type: verbatim
26465 #. type: verbatim
26466 #: ../fish/guestfish-actions.pod:1679
26467 #, no-wrap
26468 msgid ""
26469 " inotify-rm-watch wd\n"
26470 "\n"
26471 msgstr ""
26472
26473 # type: textblock
26474 #. type: textblock
26475 #: ../fish/guestfish-actions.pod:1681
26476 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
26477 msgstr ""
26478
26479 # type: =head2
26480 #. type: =head2
26481 #: ../fish/guestfish-actions.pod:1684
26482 msgid "inspect-get-arch"
26483 msgstr ""
26484
26485 # type: verbatim
26486 #. type: verbatim
26487 #: ../fish/guestfish-actions.pod:1686
26488 #, no-wrap
26489 msgid ""
26490 " inspect-get-arch root\n"
26491 "\n"
26492 msgstr ""
26493
26494 # type: textblock
26495 #. type: textblock
26496 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704
26497 #: ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1818
26498 #: ../fish/guestfish-actions.pod:1836 ../fish/guestfish-actions.pod:1870
26499 #: ../fish/guestfish-actions.pod:1885 ../fish/guestfish-actions.pod:1906
26500 #: ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1954
26501 #: ../fish/guestfish-actions.pod:1976 ../fish/guestfish-actions.pod:2000
26502 #: ../fish/guestfish-actions.pod:2017 ../fish/guestfish-actions.pod:2060
26503 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2111
26504 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2140
26505 #: ../fish/guestfish-actions.pod:2153 ../fish/guestfish-actions.pod:2168
26506 msgid ""
26507 "This function should only be called with a root device string as returned by "
26508 "L</inspect-os>."
26509 msgstr ""
26510
26511 # type: textblock
26512 #. type: textblock
26513 #: ../fish/guestfish-actions.pod:1691
26514 msgid ""
26515 "This returns the architecture of the inspected operating system.  The "
26516 "possible return values are listed under L</file-architecture>."
26517 msgstr ""
26518
26519 # type: =head2
26520 #. type: =head2
26521 #: ../fish/guestfish-actions.pod:1700
26522 msgid "inspect-get-distro"
26523 msgstr ""
26524
26525 # type: verbatim
26526 #. type: verbatim
26527 #: ../fish/guestfish-actions.pod:1702
26528 #, no-wrap
26529 msgid ""
26530 " inspect-get-distro root\n"
26531 "\n"
26532 msgstr ""
26533
26534 #. type: =head2
26535 #: ../fish/guestfish-actions.pod:1778
26536 msgid "inspect-get-drive-mappings"
26537 msgstr ""
26538
26539 #. type: verbatim
26540 #: ../fish/guestfish-actions.pod:1780
26541 #, no-wrap
26542 msgid ""
26543 " inspect-get-drive-mappings root\n"
26544 "\n"
26545 msgstr ""
26546
26547 #. type: textblock
26548 #: ../fish/guestfish-actions.pod:1810
26549 msgid ""
26550 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26551 "get-mountpoints>, L</inspect-get-filesystems>."
26552 msgstr ""
26553
26554 # type: =head2
26555 #. type: =head2
26556 #: ../fish/guestfish-actions.pod:1814
26557 msgid "inspect-get-filesystems"
26558 msgstr ""
26559
26560 # type: verbatim
26561 #. type: verbatim
26562 #: ../fish/guestfish-actions.pod:1816
26563 #, no-wrap
26564 msgid ""
26565 " inspect-get-filesystems root\n"
26566 "\n"
26567 msgstr ""
26568
26569 # type: textblock
26570 #. type: textblock
26571 #: ../fish/guestfish-actions.pod:1829
26572 msgid ""
26573 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26574 "get-mountpoints>."
26575 msgstr ""
26576
26577 #. type: =head2
26578 #: ../fish/guestfish-actions.pod:1832
26579 msgid "inspect-get-format"
26580 msgstr ""
26581
26582 #. type: verbatim
26583 #: ../fish/guestfish-actions.pod:1834
26584 #, no-wrap
26585 msgid ""
26586 " inspect-get-format root\n"
26587 "\n"
26588 msgstr ""
26589
26590 # type: =head2
26591 #. type: =head2
26592 #: ../fish/guestfish-actions.pod:1866
26593 msgid "inspect-get-hostname"
26594 msgstr ""
26595
26596 # type: verbatim
26597 #. type: verbatim
26598 #: ../fish/guestfish-actions.pod:1868
26599 #, no-wrap
26600 msgid ""
26601 " inspect-get-hostname root\n"
26602 "\n"
26603 msgstr ""
26604
26605 # type: =head2
26606 #. type: =head2
26607 #: ../fish/guestfish-actions.pod:1881
26608 msgid "inspect-get-major-version"
26609 msgstr ""
26610
26611 # type: verbatim
26612 #. type: verbatim
26613 #: ../fish/guestfish-actions.pod:1883
26614 #, no-wrap
26615 msgid ""
26616 " inspect-get-major-version root\n"
26617 "\n"
26618 msgstr ""
26619
26620 # type: =head2
26621 #. type: =head2
26622 #: ../fish/guestfish-actions.pod:1902
26623 msgid "inspect-get-minor-version"
26624 msgstr ""
26625
26626 # type: verbatim
26627 #. type: verbatim
26628 #: ../fish/guestfish-actions.pod:1904
26629 #, no-wrap
26630 msgid ""
26631 " inspect-get-minor-version root\n"
26632 "\n"
26633 msgstr ""
26634
26635 # type: textblock
26636 #. type: textblock
26637 #: ../fish/guestfish-actions.pod:1914
26638 msgid ""
26639 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26640 "get-major-version>."
26641 msgstr ""
26642
26643 # type: =head2
26644 #. type: =head2
26645 #: ../fish/guestfish-actions.pod:1917
26646 msgid "inspect-get-mountpoints"
26647 msgstr ""
26648
26649 # type: verbatim
26650 #. type: verbatim
26651 #: ../fish/guestfish-actions.pod:1919
26652 #, no-wrap
26653 msgid ""
26654 " inspect-get-mountpoints root\n"
26655 "\n"
26656 msgstr ""
26657
26658 #. type: textblock
26659 #: ../fish/guestfish-actions.pod:1941
26660 msgid ""
26661 "For operating systems like Windows which still use drive letters, this call "
26662 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26663 "information about the mapping of drive letters to partitions, see L</inspect-"
26664 "get-drive-mappings>."
26665 msgstr ""
26666
26667 # type: textblock
26668 #. type: textblock
26669 #: ../fish/guestfish-actions.pod:1947
26670 msgid ""
26671 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26672 "get-filesystems>."
26673 msgstr ""
26674
26675 # type: =head2
26676 #. type: =head2
26677 #: ../fish/guestfish-actions.pod:1950
26678 msgid "inspect-get-package-format"
26679 msgstr ""
26680
26681 # type: verbatim
26682 #. type: verbatim
26683 #: ../fish/guestfish-actions.pod:1952
26684 #, no-wrap
26685 msgid ""
26686 " inspect-get-package-format root\n"
26687 "\n"
26688 msgstr ""
26689
26690 # type: textblock
26691 #. type: textblock
26692 #: ../fish/guestfish-actions.pod:1957
26693 msgid ""
26694 "This function and L</inspect-get-package-management> return the package "
26695 "format and package management tool used by the inspected operating system.  "
26696 "For example for Fedora these functions would return C<rpm> (package format) "
26697 "and C<yum> (package management)."
26698 msgstr ""
26699
26700 # type: =head2
26701 #. type: =head2
26702 #: ../fish/guestfish-actions.pod:1972
26703 msgid "inspect-get-package-management"
26704 msgstr ""
26705
26706 # type: verbatim
26707 #. type: verbatim
26708 #: ../fish/guestfish-actions.pod:1974
26709 #, no-wrap
26710 msgid ""
26711 " inspect-get-package-management root\n"
26712 "\n"
26713 msgstr ""
26714
26715 # type: textblock
26716 #. type: textblock
26717 #: ../fish/guestfish-actions.pod:1979
26718 msgid ""
26719 "L</inspect-get-package-format> and this function return the package format "
26720 "and package management tool used by the inspected operating system.  For "
26721 "example for Fedora these functions would return C<rpm> (package format) and "
26722 "C<yum> (package management)."
26723 msgstr ""
26724
26725 # type: =head2
26726 #. type: =head2
26727 #: ../fish/guestfish-actions.pod:1996
26728 msgid "inspect-get-product-name"
26729 msgstr ""
26730
26731 # type: verbatim
26732 #. type: verbatim
26733 #: ../fish/guestfish-actions.pod:1998
26734 #, no-wrap
26735 msgid ""
26736 " inspect-get-product-name root\n"
26737 "\n"
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../fish/guestfish-actions.pod:2013
26742 msgid "inspect-get-product-variant"
26743 msgstr ""
26744
26745 #. type: verbatim
26746 #: ../fish/guestfish-actions.pod:2015
26747 #, no-wrap
26748 msgid ""
26749 " inspect-get-product-variant root\n"
26750 "\n"
26751 msgstr ""
26752
26753 #. type: textblock
26754 #: ../fish/guestfish-actions.pod:2039
26755 msgid ""
26756 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26757 "get-product-name>, L</inspect-get-major-version>."
26758 msgstr ""
26759
26760 # type: =head2
26761 #. type: =head2
26762 #: ../fish/guestfish-actions.pod:2043
26763 msgid "inspect-get-roots"
26764 msgstr ""
26765
26766 # type: verbatim
26767 #. type: verbatim
26768 #: ../fish/guestfish-actions.pod:2045
26769 #, no-wrap
26770 msgid ""
26771 " inspect-get-roots\n"
26772 "\n"
26773 msgstr ""
26774
26775 # type: textblock
26776 #. type: textblock
26777 #: ../fish/guestfish-actions.pod:2047
26778 msgid ""
26779 "This function is a convenient way to get the list of root devices, as "
26780 "returned from a previous call to L</inspect-os>, but without redoing the "
26781 "whole inspection process."
26782 msgstr ""
26783
26784 # type: textblock
26785 #. type: textblock
26786 #: ../fish/guestfish-actions.pod:2051
26787 msgid ""
26788 "This returns an empty list if either no root devices were found or the "
26789 "caller has not called L</inspect-os>."
26790 msgstr ""
26791
26792 # type: =head2
26793 #. type: =head2
26794 #: ../fish/guestfish-actions.pod:2056
26795 msgid "inspect-get-type"
26796 msgstr ""
26797
26798 # type: verbatim
26799 #. type: verbatim
26800 #: ../fish/guestfish-actions.pod:2058
26801 #, no-wrap
26802 msgid ""
26803 " inspect-get-type root\n"
26804 "\n"
26805 msgstr ""
26806
26807 #. type: =head2
26808 #: ../fish/guestfish-actions.pod:2091
26809 msgid "inspect-get-windows-current-control-set"
26810 msgstr ""
26811
26812 #. type: verbatim
26813 #: ../fish/guestfish-actions.pod:2093
26814 #, no-wrap
26815 msgid ""
26816 " inspect-get-windows-current-control-set root\n"
26817 "\n"
26818 msgstr ""
26819
26820 # type: =head2
26821 #. type: =head2
26822 #: ../fish/guestfish-actions.pod:2107
26823 msgid "inspect-get-windows-systemroot"
26824 msgstr ""
26825
26826 # type: verbatim
26827 #. type: verbatim
26828 #: ../fish/guestfish-actions.pod:2109
26829 #, no-wrap
26830 msgid ""
26831 " inspect-get-windows-systemroot root\n"
26832 "\n"
26833 msgstr ""
26834
26835 #. type: =head2
26836 #: ../fish/guestfish-actions.pod:2123
26837 msgid "inspect-is-live"
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../fish/guestfish-actions.pod:2125
26842 #, no-wrap
26843 msgid ""
26844 " inspect-is-live root\n"
26845 "\n"
26846 msgstr ""
26847
26848 #. type: textblock
26849 #: ../fish/guestfish-actions.pod:2130
26850 msgid ""
26851 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26852 "then this returns true if a live image was detected on the disk."
26853 msgstr ""
26854
26855 #. type: =head2
26856 #: ../fish/guestfish-actions.pod:2136
26857 msgid "inspect-is-multipart"
26858 msgstr ""
26859
26860 #. type: verbatim
26861 #: ../fish/guestfish-actions.pod:2138
26862 #, no-wrap
26863 msgid ""
26864 " inspect-is-multipart root\n"
26865 "\n"
26866 msgstr ""
26867
26868 #. type: textblock
26869 #: ../fish/guestfish-actions.pod:2143
26870 msgid ""
26871 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26872 "then this returns true if the disk is part of a set."
26873 msgstr ""
26874
26875 #. type: =head2
26876 #: ../fish/guestfish-actions.pod:2149
26877 msgid "inspect-is-netinst"
26878 msgstr ""
26879
26880 #. type: verbatim
26881 #: ../fish/guestfish-actions.pod:2151
26882 #, no-wrap
26883 msgid ""
26884 " inspect-is-netinst root\n"
26885 "\n"
26886 msgstr ""
26887
26888 #. type: textblock
26889 #: ../fish/guestfish-actions.pod:2156
26890 msgid ""
26891 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26892 "then this returns true if the disk is a network installer, ie. not a self-"
26893 "contained install CD but one which is likely to require network access to "
26894 "complete the install."
26895 msgstr ""
26896
26897 # type: =head2
26898 #. type: =head2
26899 #: ../fish/guestfish-actions.pod:2164
26900 msgid "inspect-list-applications"
26901 msgstr ""
26902
26903 # type: verbatim
26904 #. type: verbatim
26905 #: ../fish/guestfish-actions.pod:2166
26906 #, no-wrap
26907 msgid ""
26908 " inspect-list-applications root\n"
26909 "\n"
26910 msgstr ""
26911
26912 # type: textblock
26913 #. type: textblock
26914 #: ../fish/guestfish-actions.pod:2173
26915 msgid ""
26916 "I<Note:> This call works differently from other parts of the inspection "
26917 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
26918 "then mount up the disks, before calling this.  Listing applications is a "
26919 "significantly more difficult operation which requires access to the full "
26920 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
26921 "are just returning data cached in the libguestfs handle, this call actually "
26922 "reads parts of the mounted filesystems during the call."
26923 msgstr ""
26924
26925 # type: =head2
26926 #. type: =head2
26927 #: ../fish/guestfish-actions.pod:2263
26928 msgid "inspect-os"
26929 msgstr ""
26930
26931 # type: verbatim
26932 #. type: verbatim
26933 #: ../fish/guestfish-actions.pod:2265
26934 #, no-wrap
26935 msgid ""
26936 " inspect-os\n"
26937 "\n"
26938 msgstr ""
26939
26940 # type: textblock
26941 #. type: textblock
26942 #: ../fish/guestfish-actions.pod:2280
26943 msgid ""
26944 "You can pass the root string(s) returned to other L</inspect-get-*> "
26945 "functions in order to query further information about each operating system, "
26946 "such as the name and version."
26947 msgstr ""
26948
26949 # type: textblock
26950 #. type: textblock
26951 #: ../fish/guestfish-actions.pod:2285
26952 msgid ""
26953 "This function uses other libguestfs features such as L</mount-ro> and L</"
26954 "umount-all> in order to mount and unmount filesystems and look at the "
26955 "contents.  This should be called with no disks currently mounted.  The "
26956 "function may also use Augeas, so any existing Augeas handle will be closed."
26957 msgstr ""
26958
26959 # type: textblock
26960 #. type: textblock
26961 #: ../fish/guestfish-actions.pod:2297 ../fish/guestfish-actions.pod:2473
26962 #: ../fish/guestfish-actions.pod:2519
26963 msgid "See also L</list-filesystems>."
26964 msgstr ""
26965
26966 # type: =head2
26967 #. type: =head2
26968 #: ../fish/guestfish-actions.pod:2299
26969 msgid "is-blockdev"
26970 msgstr ""
26971
26972 # type: verbatim
26973 #. type: verbatim
26974 #: ../fish/guestfish-actions.pod:2301
26975 #, no-wrap
26976 msgid ""
26977 " is-blockdev path\n"
26978 "\n"
26979 msgstr ""
26980
26981 # type: textblock
26982 #. type: textblock
26983 #: ../fish/guestfish-actions.pod:2306 ../fish/guestfish-actions.pod:2324
26984 #: ../fish/guestfish-actions.pod:2343 ../fish/guestfish-actions.pod:2352
26985 #: ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2396
26986 #: ../fish/guestfish-actions.pod:2405
26987 msgid "See also L</stat>."
26988 msgstr ""
26989
26990 # type: =head2
26991 #. type: =head2
26992 #: ../fish/guestfish-actions.pod:2308
26993 msgid "is-busy"
26994 msgstr ""
26995
26996 # type: verbatim
26997 #. type: verbatim
26998 #: ../fish/guestfish-actions.pod:2310
26999 #, no-wrap
27000 msgid ""
27001 " is-busy\n"
27002 "\n"
27003 msgstr ""
27004
27005 # type: =head2
27006 #. type: =head2
27007 #: ../fish/guestfish-actions.pod:2317
27008 msgid "is-chardev"
27009 msgstr ""
27010
27011 # type: verbatim
27012 #. type: verbatim
27013 #: ../fish/guestfish-actions.pod:2319
27014 #, no-wrap
27015 msgid ""
27016 " is-chardev path\n"
27017 "\n"
27018 msgstr ""
27019
27020 # type: =head2
27021 #. type: =head2
27022 #: ../fish/guestfish-actions.pod:2326
27023 msgid "is-config"
27024 msgstr ""
27025
27026 # type: verbatim
27027 #. type: verbatim
27028 #: ../fish/guestfish-actions.pod:2328
27029 #, no-wrap
27030 msgid ""
27031 " is-config\n"
27032 "\n"
27033 msgstr ""
27034
27035 # type: =head2
27036 #. type: =head2
27037 #: ../fish/guestfish-actions.pod:2335
27038 msgid "is-dir"
27039 msgstr ""
27040
27041 # type: verbatim
27042 #. type: verbatim
27043 #: ../fish/guestfish-actions.pod:2337
27044 #, no-wrap
27045 msgid ""
27046 " is-dir path\n"
27047 "\n"
27048 msgstr ""
27049
27050 # type: =head2
27051 #. type: =head2
27052 #: ../fish/guestfish-actions.pod:2345
27053 msgid "is-fifo"
27054 msgstr ""
27055
27056 # type: verbatim
27057 #. type: verbatim
27058 #: ../fish/guestfish-actions.pod:2347
27059 #, no-wrap
27060 msgid ""
27061 " is-fifo path\n"
27062 "\n"
27063 msgstr ""
27064
27065 # type: =head2
27066 #. type: =head2
27067 #: ../fish/guestfish-actions.pod:2354
27068 msgid "is-file"
27069 msgstr ""
27070
27071 # type: verbatim
27072 #. type: verbatim
27073 #: ../fish/guestfish-actions.pod:2356
27074 #, no-wrap
27075 msgid ""
27076 " is-file path\n"
27077 "\n"
27078 msgstr ""
27079
27080 # type: =head2
27081 #. type: =head2
27082 #: ../fish/guestfish-actions.pod:2364
27083 msgid "is-launching"
27084 msgstr ""
27085
27086 # type: verbatim
27087 #. type: verbatim
27088 #: ../fish/guestfish-actions.pod:2366
27089 #, no-wrap
27090 msgid ""
27091 " is-launching\n"
27092 "\n"
27093 msgstr ""
27094
27095 # type: =head2
27096 #. type: =head2
27097 #: ../fish/guestfish-actions.pod:2373
27098 msgid "is-lv"
27099 msgstr ""
27100
27101 # type: verbatim
27102 #. type: verbatim
27103 #: ../fish/guestfish-actions.pod:2375
27104 #, no-wrap
27105 msgid ""
27106 " is-lv device\n"
27107 "\n"
27108 msgstr ""
27109
27110 # type: =head2
27111 #. type: =head2
27112 #: ../fish/guestfish-actions.pod:2380
27113 msgid "is-ready"
27114 msgstr ""
27115
27116 # type: verbatim
27117 #. type: verbatim
27118 #: ../fish/guestfish-actions.pod:2382
27119 #, no-wrap
27120 msgid ""
27121 " is-ready\n"
27122 "\n"
27123 msgstr ""
27124
27125 # type: =head2
27126 #. type: =head2
27127 #: ../fish/guestfish-actions.pod:2389
27128 msgid "is-socket"
27129 msgstr ""
27130
27131 # type: verbatim
27132 #. type: verbatim
27133 #: ../fish/guestfish-actions.pod:2391
27134 #, no-wrap
27135 msgid ""
27136 " is-socket path\n"
27137 "\n"
27138 msgstr ""
27139
27140 # type: =head2
27141 #. type: =head2
27142 #: ../fish/guestfish-actions.pod:2398
27143 msgid "is-symlink"
27144 msgstr ""
27145
27146 # type: verbatim
27147 #. type: verbatim
27148 #: ../fish/guestfish-actions.pod:2400
27149 #, no-wrap
27150 msgid ""
27151 " is-symlink path\n"
27152 "\n"
27153 msgstr ""
27154
27155 # type: =head2
27156 #. type: =head2
27157 #: ../fish/guestfish-actions.pod:2407
27158 msgid "kill-subprocess"
27159 msgstr ""
27160
27161 # type: verbatim
27162 #. type: verbatim
27163 #: ../fish/guestfish-actions.pod:2409
27164 #, no-wrap
27165 msgid ""
27166 " kill-subprocess\n"
27167 "\n"
27168 msgstr ""
27169
27170 # type: =head2
27171 #. type: =head2
27172 #: ../fish/guestfish-actions.pod:2413
27173 msgid "launch"
27174 msgstr ""
27175
27176 # type: =head2
27177 #. type: =head2
27178 #: ../fish/guestfish-actions.pod:2415
27179 msgid "run"
27180 msgstr ""
27181
27182 # type: verbatim
27183 #. type: verbatim
27184 #: ../fish/guestfish-actions.pod:2417
27185 #, no-wrap
27186 msgid ""
27187 " launch\n"
27188 "\n"
27189 msgstr ""
27190
27191 # type: =head2
27192 #. type: =head2
27193 #: ../fish/guestfish-actions.pod:2425
27194 msgid "lchown"
27195 msgstr ""
27196
27197 # type: verbatim
27198 #. type: verbatim
27199 #: ../fish/guestfish-actions.pod:2427
27200 #, no-wrap
27201 msgid ""
27202 " lchown owner group path\n"
27203 "\n"
27204 msgstr ""
27205
27206 # type: textblock
27207 #. type: textblock
27208 #: ../fish/guestfish-actions.pod:2429
27209 msgid ""
27210 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
27211 "chown> but if C<path> is a symlink then the link itself is changed, not the "
27212 "target."
27213 msgstr ""
27214
27215 # type: =head2
27216 #. type: =head2
27217 #: ../fish/guestfish-actions.pod:2437
27218 msgid "lgetxattr"
27219 msgstr ""
27220
27221 # type: verbatim
27222 #. type: verbatim
27223 #: ../fish/guestfish-actions.pod:2439
27224 #, no-wrap
27225 msgid ""
27226 " lgetxattr path name\n"
27227 "\n"
27228 msgstr ""
27229
27230 # type: textblock
27231 #. type: textblock
27232 #: ../fish/guestfish-actions.pod:2455
27233 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27234 msgstr ""
27235
27236 # type: =head2
27237 #. type: =head2
27238 #: ../fish/guestfish-actions.pod:2457
27239 msgid "lgetxattrs"
27240 msgstr ""
27241
27242 # type: verbatim
27243 #. type: verbatim
27244 #: ../fish/guestfish-actions.pod:2459
27245 #, no-wrap
27246 msgid ""
27247 " lgetxattrs path\n"
27248 "\n"
27249 msgstr ""
27250
27251 # type: textblock
27252 #. type: textblock
27253 #: ../fish/guestfish-actions.pod:2461
27254 msgid ""
27255 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27256 "it returns the extended attributes of the link itself."
27257 msgstr ""
27258
27259 # type: =head2
27260 #. type: =head2
27261 #: ../fish/guestfish-actions.pod:2465
27262 msgid "list-devices"
27263 msgstr ""
27264
27265 # type: verbatim
27266 #. type: verbatim
27267 #: ../fish/guestfish-actions.pod:2467
27268 #, no-wrap
27269 msgid ""
27270 " list-devices\n"
27271 "\n"
27272 msgstr ""
27273
27274 # type: =head2
27275 #. type: =head2
27276 #: ../fish/guestfish-actions.pod:2475
27277 msgid "list-filesystems"
27278 msgstr ""
27279
27280 # type: verbatim
27281 #. type: verbatim
27282 #: ../fish/guestfish-actions.pod:2477
27283 #, no-wrap
27284 msgid ""
27285 " list-filesystems\n"
27286 "\n"
27287 msgstr ""
27288
27289 # type: textblock
27290 #. type: textblock
27291 #: ../fish/guestfish-actions.pod:2496
27292 msgid ""
27293 "This command runs other libguestfs commands, which might include L</mount> "
27294 "and L</umount>, and therefore you should use this soon after launch and only "
27295 "when nothing is mounted."
27296 msgstr ""
27297
27298 # type: textblock
27299 #. type: textblock
27300 #: ../fish/guestfish-actions.pod:2500
27301 msgid ""
27302 "Not all of the filesystems returned will be mountable.  In particular, swap "
27303 "partitions are returned in the list.  Also this command does not check that "
27304 "each filesystem found is valid and mountable, and some filesystems might be "
27305 "mountable but require special options.  Filesystems may not all belong to a "
27306 "single logical operating system (use L</inspect-os> to look for OSes)."
27307 msgstr ""
27308
27309 # type: =head2
27310 #. type: =head2
27311 #: ../fish/guestfish-actions.pod:2508
27312 msgid "list-partitions"
27313 msgstr ""
27314
27315 # type: verbatim
27316 #. type: verbatim
27317 #: ../fish/guestfish-actions.pod:2510
27318 #, no-wrap
27319 msgid ""
27320 " list-partitions\n"
27321 "\n"
27322 msgstr ""
27323
27324 # type: textblock
27325 #. type: textblock
27326 #: ../fish/guestfish-actions.pod:2516
27327 msgid ""
27328 "This does not return logical volumes.  For that you will need to call L</"
27329 "lvs>."
27330 msgstr ""
27331
27332 # type: =head2
27333 #. type: =head2
27334 #: ../fish/guestfish-actions.pod:2521
27335 msgid "ll"
27336 msgstr ""
27337
27338 # type: verbatim
27339 #. type: verbatim
27340 #: ../fish/guestfish-actions.pod:2523
27341 #, no-wrap
27342 msgid ""
27343 " ll directory\n"
27344 "\n"
27345 msgstr ""
27346
27347 # type: =head2
27348 #. type: =head2
27349 #: ../fish/guestfish-actions.pod:2531
27350 msgid "ln"
27351 msgstr ""
27352
27353 # type: verbatim
27354 #. type: verbatim
27355 #: ../fish/guestfish-actions.pod:2533
27356 #, no-wrap
27357 msgid ""
27358 " ln target linkname\n"
27359 "\n"
27360 msgstr ""
27361
27362 # type: =head2
27363 #. type: =head2
27364 #: ../fish/guestfish-actions.pod:2537
27365 msgid "ln-f"
27366 msgstr ""
27367
27368 # type: verbatim
27369 #. type: verbatim
27370 #: ../fish/guestfish-actions.pod:2539
27371 #, no-wrap
27372 msgid ""
27373 " ln-f target linkname\n"
27374 "\n"
27375 msgstr ""
27376
27377 # type: =head2
27378 #. type: =head2
27379 #: ../fish/guestfish-actions.pod:2544
27380 msgid "ln-s"
27381 msgstr ""
27382
27383 # type: verbatim
27384 #. type: verbatim
27385 #: ../fish/guestfish-actions.pod:2546
27386 #, no-wrap
27387 msgid ""
27388 " ln-s target linkname\n"
27389 "\n"
27390 msgstr ""
27391
27392 # type: =head2
27393 #. type: =head2
27394 #: ../fish/guestfish-actions.pod:2550
27395 msgid "ln-sf"
27396 msgstr ""
27397
27398 # type: verbatim
27399 #. type: verbatim
27400 #: ../fish/guestfish-actions.pod:2552
27401 #, no-wrap
27402 msgid ""
27403 " ln-sf target linkname\n"
27404 "\n"
27405 msgstr ""
27406
27407 # type: =head2
27408 #. type: =head2
27409 #: ../fish/guestfish-actions.pod:2557
27410 msgid "lremovexattr"
27411 msgstr ""
27412
27413 # type: verbatim
27414 #. type: verbatim
27415 #: ../fish/guestfish-actions.pod:2559
27416 #, no-wrap
27417 msgid ""
27418 " lremovexattr xattr path\n"
27419 "\n"
27420 msgstr ""
27421
27422 # type: textblock
27423 #. type: textblock
27424 #: ../fish/guestfish-actions.pod:2561
27425 msgid ""
27426 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27427 "it removes an extended attribute of the link itself."
27428 msgstr ""
27429
27430 # type: =head2
27431 #. type: =head2
27432 #: ../fish/guestfish-actions.pod:2565
27433 msgid "ls"
27434 msgstr ""
27435
27436 # type: verbatim
27437 #. type: verbatim
27438 #: ../fish/guestfish-actions.pod:2567
27439 #, no-wrap
27440 msgid ""
27441 " ls directory\n"
27442 "\n"
27443 msgstr ""
27444
27445 # type: textblock
27446 #. type: textblock
27447 #: ../fish/guestfish-actions.pod:2573
27448 msgid ""
27449 "This command is mostly useful for interactive sessions.  Programs should "
27450 "probably use L</readdir> instead."
27451 msgstr ""
27452
27453 # type: =head2
27454 #. type: =head2
27455 #: ../fish/guestfish-actions.pod:2576
27456 msgid "lsetxattr"
27457 msgstr ""
27458
27459 # type: verbatim
27460 #. type: verbatim
27461 #: ../fish/guestfish-actions.pod:2578
27462 #, no-wrap
27463 msgid ""
27464 " lsetxattr xattr val vallen path\n"
27465 "\n"
27466 msgstr ""
27467
27468 # type: textblock
27469 #. type: textblock
27470 #: ../fish/guestfish-actions.pod:2580
27471 msgid ""
27472 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
27473 "sets an extended attribute of the link itself."
27474 msgstr ""
27475
27476 # type: =head2
27477 #. type: =head2
27478 #: ../fish/guestfish-actions.pod:2584
27479 msgid "lstat"
27480 msgstr ""
27481
27482 # type: verbatim
27483 #. type: verbatim
27484 #: ../fish/guestfish-actions.pod:2586
27485 #, no-wrap
27486 msgid ""
27487 " lstat path\n"
27488 "\n"
27489 msgstr ""
27490
27491 # type: textblock
27492 #. type: textblock
27493 #: ../fish/guestfish-actions.pod:2590
27494 msgid ""
27495 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
27496 "the link is stat-ed, not the file it refers to."
27497 msgstr ""
27498
27499 # type: =head2
27500 #. type: =head2
27501 #: ../fish/guestfish-actions.pod:2596
27502 msgid "lstatlist"
27503 msgstr ""
27504
27505 # type: verbatim
27506 #. type: verbatim
27507 #: ../fish/guestfish-actions.pod:2598
27508 #, no-wrap
27509 msgid ""
27510 " lstatlist path 'names ...'\n"
27511 "\n"
27512 msgstr ""
27513
27514 # type: textblock
27515 #. type: textblock
27516 #: ../fish/guestfish-actions.pod:2600
27517 msgid ""
27518 "This call allows you to perform the L</lstat> operation on multiple files, "
27519 "where all files are in the directory C<path>.  C<names> is the list of files "
27520 "from this directory."
27521 msgstr ""
27522
27523 # type: textblock
27524 #. type: textblock
27525 #: ../fish/guestfish-actions.pod:2609
27526 msgid ""
27527 "This call is intended for programs that want to efficiently list a directory "
27528 "contents without making many round-trips.  See also L</lxattrlist> for a "
27529 "similarly efficient call for getting extended attributes.  Very long "
27530 "directory listings might cause the protocol message size to be exceeded, "
27531 "causing this call to fail.  The caller must split up such requests into "
27532 "smaller groups of names."
27533 msgstr ""
27534
27535 # type: =head2
27536 #. type: =head2
27537 #: ../fish/guestfish-actions.pod:2617
27538 msgid "luks-add-key"
27539 msgstr ""
27540
27541 # type: verbatim
27542 #. type: verbatim
27543 #: ../fish/guestfish-actions.pod:2619
27544 #, no-wrap
27545 msgid ""
27546 " luks-add-key device keyslot\n"
27547 "\n"
27548 msgstr ""
27549
27550 # type: textblock
27551 #. type: textblock
27552 #: ../fish/guestfish-actions.pod:2626
27553 msgid ""
27554 "Note that if C<keyslot> already contains a key, then this command will "
27555 "fail.  You have to use L</luks-kill-slot> first to remove that key."
27556 msgstr ""
27557
27558 # type: textblock
27559 #. type: textblock
27560 #: ../fish/guestfish-actions.pod:2630 ../fish/guestfish-actions.pod:2652
27561 #: ../fish/guestfish-actions.pod:2665 ../fish/guestfish-actions.pod:2679
27562 #: ../fish/guestfish-actions.pod:2702 ../fish/guestfish-actions.pod:2712
27563 msgid ""
27564 "This command has one or more key or passphrase parameters.  Guestfish will "
27565 "prompt for these separately."
27566 msgstr ""
27567
27568 # type: =head2
27569 #. type: =head2
27570 #: ../fish/guestfish-actions.pod:2633
27571 msgid "luks-close"
27572 msgstr ""
27573
27574 # type: verbatim
27575 #. type: verbatim
27576 #: ../fish/guestfish-actions.pod:2635
27577 #, no-wrap
27578 msgid ""
27579 " luks-close device\n"
27580 "\n"
27581 msgstr ""
27582
27583 # type: textblock
27584 #. type: textblock
27585 #: ../fish/guestfish-actions.pod:2637
27586 msgid ""
27587 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
27588 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
27589 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
27590 "block device."
27591 msgstr ""
27592
27593 # type: =head2
27594 #. type: =head2
27595 #: ../fish/guestfish-actions.pod:2643
27596 msgid "luks-format"
27597 msgstr ""
27598
27599 # type: verbatim
27600 #. type: verbatim
27601 #: ../fish/guestfish-actions.pod:2645
27602 #, no-wrap
27603 msgid ""
27604 " luks-format device keyslot\n"
27605 "\n"
27606 msgstr ""
27607
27608 # type: =head2
27609 #. type: =head2
27610 #: ../fish/guestfish-actions.pod:2658
27611 msgid "luks-format-cipher"
27612 msgstr ""
27613
27614 # type: verbatim
27615 #. type: verbatim
27616 #: ../fish/guestfish-actions.pod:2660
27617 #, no-wrap
27618 msgid ""
27619 " luks-format-cipher device keyslot cipher\n"
27620 "\n"
27621 msgstr ""
27622
27623 # type: textblock
27624 #. type: textblock
27625 #: ../fish/guestfish-actions.pod:2662
27626 msgid ""
27627 "This command is the same as L</luks-format> but it also allows you to set "
27628 "the C<cipher> used."
27629 msgstr ""
27630
27631 # type: =head2
27632 #. type: =head2
27633 #: ../fish/guestfish-actions.pod:2671
27634 msgid "luks-kill-slot"
27635 msgstr ""
27636
27637 # type: verbatim
27638 #. type: verbatim
27639 #: ../fish/guestfish-actions.pod:2673
27640 #, no-wrap
27641 msgid ""
27642 " luks-kill-slot device keyslot\n"
27643 "\n"
27644 msgstr ""
27645
27646 # type: =head2
27647 #. type: =head2
27648 #: ../fish/guestfish-actions.pod:2682
27649 msgid "luks-open"
27650 msgstr ""
27651
27652 # type: verbatim
27653 #. type: verbatim
27654 #: ../fish/guestfish-actions.pod:2684
27655 #, no-wrap
27656 msgid ""
27657 " luks-open device mapname\n"
27658 "\n"
27659 msgstr ""
27660
27661 # type: textblock
27662 #. type: textblock
27663 #: ../fish/guestfish-actions.pod:2698
27664 msgid ""
27665 "If this block device contains LVM volume groups, then calling L</vgscan> "
27666 "followed by L</vg-activate-all> will make them visible."
27667 msgstr ""
27668
27669 # type: =head2
27670 #. type: =head2
27671 #: ../fish/guestfish-actions.pod:2705
27672 msgid "luks-open-ro"
27673 msgstr ""
27674
27675 # type: verbatim
27676 #. type: verbatim
27677 #: ../fish/guestfish-actions.pod:2707
27678 #, no-wrap
27679 msgid ""
27680 " luks-open-ro device mapname\n"
27681 "\n"
27682 msgstr ""
27683
27684 # type: textblock
27685 #. type: textblock
27686 #: ../fish/guestfish-actions.pod:2709
27687 msgid ""
27688 "This is the same as L</luks-open> except that a read-only mapping is created."
27689 msgstr ""
27690
27691 # type: =head2
27692 #. type: =head2
27693 #: ../fish/guestfish-actions.pod:2715
27694 msgid "lvcreate"
27695 msgstr ""
27696
27697 # type: verbatim
27698 #. type: verbatim
27699 #: ../fish/guestfish-actions.pod:2717
27700 #, no-wrap
27701 msgid ""
27702 " lvcreate logvol volgroup mbytes\n"
27703 "\n"
27704 msgstr ""
27705
27706 # type: =head2
27707 #. type: =head2
27708 #: ../fish/guestfish-actions.pod:2722
27709 msgid "lvm-canonical-lv-name"
27710 msgstr ""
27711
27712 # type: verbatim
27713 #. type: verbatim
27714 #: ../fish/guestfish-actions.pod:2724
27715 #, no-wrap
27716 msgid ""
27717 " lvm-canonical-lv-name lvname\n"
27718 "\n"
27719 msgstr ""
27720
27721 # type: textblock
27722 #. type: textblock
27723 #: ../fish/guestfish-actions.pod:2733
27724 msgid "See also L</is-lv>."
27725 msgstr ""
27726
27727 # type: =head2
27728 #. type: =head2
27729 #: ../fish/guestfish-actions.pod:2735
27730 msgid "lvm-clear-filter"
27731 msgstr ""
27732
27733 # type: verbatim
27734 #. type: verbatim
27735 #: ../fish/guestfish-actions.pod:2737
27736 #, no-wrap
27737 msgid ""
27738 " lvm-clear-filter\n"
27739 "\n"
27740 msgstr ""
27741
27742 # type: textblock
27743 #. type: textblock
27744 #: ../fish/guestfish-actions.pod:2739
27745 msgid ""
27746 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
27747 "block device."
27748 msgstr ""
27749
27750 # type: =head2
27751 #. type: =head2
27752 #: ../fish/guestfish-actions.pod:2745
27753 msgid "lvm-remove-all"
27754 msgstr ""
27755
27756 # type: verbatim
27757 #. type: verbatim
27758 #: ../fish/guestfish-actions.pod:2747
27759 #, no-wrap
27760 msgid ""
27761 " lvm-remove-all\n"
27762 "\n"
27763 msgstr ""
27764
27765 # type: =head2
27766 #. type: =head2
27767 #: ../fish/guestfish-actions.pod:2755
27768 msgid "lvm-set-filter"
27769 msgstr ""
27770
27771 # type: verbatim
27772 #. type: verbatim
27773 #: ../fish/guestfish-actions.pod:2757
27774 #, no-wrap
27775 msgid ""
27776 " lvm-set-filter 'devices ...'\n"
27777 "\n"
27778 msgstr ""
27779
27780 # type: =head2
27781 #. type: =head2
27782 #: ../fish/guestfish-actions.pod:2782
27783 msgid "lvremove"
27784 msgstr ""
27785
27786 # type: verbatim
27787 #. type: verbatim
27788 #: ../fish/guestfish-actions.pod:2784
27789 #, no-wrap
27790 msgid ""
27791 " lvremove device\n"
27792 "\n"
27793 msgstr ""
27794
27795 # type: =head2
27796 #. type: =head2
27797 #: ../fish/guestfish-actions.pod:2792
27798 msgid "lvrename"
27799 msgstr ""
27800
27801 # type: verbatim
27802 #. type: verbatim
27803 #: ../fish/guestfish-actions.pod:2794
27804 #, no-wrap
27805 msgid ""
27806 " lvrename logvol newlogvol\n"
27807 "\n"
27808 msgstr ""
27809
27810 # type: =head2
27811 #. type: =head2
27812 #: ../fish/guestfish-actions.pod:2798
27813 msgid "lvresize"
27814 msgstr ""
27815
27816 # type: verbatim
27817 #. type: verbatim
27818 #: ../fish/guestfish-actions.pod:2800
27819 #, no-wrap
27820 msgid ""
27821 " lvresize device mbytes\n"
27822 "\n"
27823 msgstr ""
27824
27825 # type: =head2
27826 #. type: =head2
27827 #: ../fish/guestfish-actions.pod:2806
27828 msgid "lvresize-free"
27829 msgstr ""
27830
27831 # type: verbatim
27832 #. type: verbatim
27833 #: ../fish/guestfish-actions.pod:2808
27834 #, no-wrap
27835 msgid ""
27836 " lvresize-free lv percent\n"
27837 "\n"
27838 msgstr ""
27839
27840 # type: =head2
27841 #. type: =head2
27842 #: ../fish/guestfish-actions.pod:2816
27843 msgid "lvs"
27844 msgstr ""
27845
27846 # type: verbatim
27847 #. type: verbatim
27848 #: ../fish/guestfish-actions.pod:2818
27849 #, no-wrap
27850 msgid ""
27851 " lvs\n"
27852 "\n"
27853 msgstr ""
27854
27855 # type: textblock
27856 #. type: textblock
27857 #: ../fish/guestfish-actions.pod:2826
27858 msgid "See also L</lvs-full>, L</list-filesystems>."
27859 msgstr ""
27860
27861 # type: =head2
27862 #. type: =head2
27863 #: ../fish/guestfish-actions.pod:2828
27864 msgid "lvs-full"
27865 msgstr ""
27866
27867 # type: verbatim
27868 #. type: verbatim
27869 #: ../fish/guestfish-actions.pod:2830
27870 #, no-wrap
27871 msgid ""
27872 " lvs-full\n"
27873 "\n"
27874 msgstr ""
27875
27876 # type: =head2
27877 #. type: =head2
27878 #: ../fish/guestfish-actions.pod:2835
27879 msgid "lvuuid"
27880 msgstr ""
27881
27882 # type: verbatim
27883 #. type: verbatim
27884 #: ../fish/guestfish-actions.pod:2837
27885 #, no-wrap
27886 msgid ""
27887 " lvuuid device\n"
27888 "\n"
27889 msgstr ""
27890
27891 # type: =head2
27892 #. type: =head2
27893 #: ../fish/guestfish-actions.pod:2841
27894 msgid "lxattrlist"
27895 msgstr ""
27896
27897 # type: verbatim
27898 #. type: verbatim
27899 #: ../fish/guestfish-actions.pod:2843
27900 #, no-wrap
27901 msgid ""
27902 " lxattrlist path 'names ...'\n"
27903 "\n"
27904 msgstr ""
27905
27906 # type: textblock
27907 #. type: textblock
27908 #: ../fish/guestfish-actions.pod:2859
27909 msgid ""
27910 "This call is intended for programs that want to efficiently list a directory "
27911 "contents without making many round-trips.  See also L</lstatlist> for a "
27912 "similarly efficient call for getting standard stats.  Very long directory "
27913 "listings might cause the protocol message size to be exceeded, causing this "
27914 "call to fail.  The caller must split up such requests into smaller groups of "
27915 "names."
27916 msgstr ""
27917
27918 # type: =head2
27919 #. type: =head2
27920 #: ../fish/guestfish-actions.pod:2867
27921 msgid "mkdir"
27922 msgstr ""
27923
27924 # type: verbatim
27925 #. type: verbatim
27926 #: ../fish/guestfish-actions.pod:2869
27927 #, no-wrap
27928 msgid ""
27929 " mkdir path\n"
27930 "\n"
27931 msgstr ""
27932
27933 # type: =head2
27934 #. type: =head2
27935 #: ../fish/guestfish-actions.pod:2873
27936 msgid "mkdir-mode"
27937 msgstr ""
27938
27939 # type: verbatim
27940 #. type: verbatim
27941 #: ../fish/guestfish-actions.pod:2875
27942 #, no-wrap
27943 msgid ""
27944 " mkdir-mode path mode\n"
27945 "\n"
27946 msgstr ""
27947
27948 # type: textblock
27949 #. type: textblock
27950 #: ../fish/guestfish-actions.pod:2884
27951 msgid "See also L</mkdir>, L</umask>"
27952 msgstr ""
27953
27954 # type: =head2
27955 #. type: =head2
27956 #: ../fish/guestfish-actions.pod:2886
27957 msgid "mkdir-p"
27958 msgstr ""
27959
27960 # type: verbatim
27961 #. type: verbatim
27962 #: ../fish/guestfish-actions.pod:2888
27963 #, no-wrap
27964 msgid ""
27965 " mkdir-p path\n"
27966 "\n"
27967 msgstr ""
27968
27969 # type: =head2
27970 #. type: =head2
27971 #: ../fish/guestfish-actions.pod:2893
27972 msgid "mkdtemp"
27973 msgstr ""
27974
27975 # type: verbatim
27976 #. type: verbatim
27977 #: ../fish/guestfish-actions.pod:2895
27978 #, no-wrap
27979 msgid ""
27980 " mkdtemp template\n"
27981 "\n"
27982 msgstr ""
27983
27984 # type: =head2
27985 #. type: =head2
27986 #: ../fish/guestfish-actions.pod:2916
27987 msgid "mke2fs-J"
27988 msgstr ""
27989
27990 # type: verbatim
27991 #. type: verbatim
27992 #: ../fish/guestfish-actions.pod:2918
27993 #, no-wrap
27994 msgid ""
27995 " mke2fs-J fstype blocksize device journal\n"
27996 "\n"
27997 msgstr ""
27998
27999 # type: textblock
28000 #. type: textblock
28001 #: ../fish/guestfish-actions.pod:2926
28002 msgid "See also L</mke2journal>."
28003 msgstr ""
28004
28005 # type: =head2
28006 #. type: =head2
28007 #: ../fish/guestfish-actions.pod:2928
28008 msgid "mke2fs-JL"
28009 msgstr ""
28010
28011 # type: verbatim
28012 #. type: verbatim
28013 #: ../fish/guestfish-actions.pod:2930
28014 #, no-wrap
28015 msgid ""
28016 " mke2fs-JL fstype blocksize device label\n"
28017 "\n"
28018 msgstr ""
28019
28020 # type: textblock
28021 #. type: textblock
28022 #: ../fish/guestfish-actions.pod:2935
28023 msgid "See also L</mke2journal-L>."
28024 msgstr ""
28025
28026 # type: =head2
28027 #. type: =head2
28028 #: ../fish/guestfish-actions.pod:2937
28029 msgid "mke2fs-JU"
28030 msgstr ""
28031
28032 # type: verbatim
28033 #. type: verbatim
28034 #: ../fish/guestfish-actions.pod:2939
28035 #, no-wrap
28036 msgid ""
28037 " mke2fs-JU fstype blocksize device uuid\n"
28038 "\n"
28039 msgstr ""
28040
28041 # type: textblock
28042 #. type: textblock
28043 #: ../fish/guestfish-actions.pod:2944
28044 msgid "See also L</mke2journal-U>."
28045 msgstr ""
28046
28047 # type: =head2
28048 #. type: =head2
28049 #: ../fish/guestfish-actions.pod:2946
28050 msgid "mke2journal"
28051 msgstr ""
28052
28053 # type: verbatim
28054 #. type: verbatim
28055 #: ../fish/guestfish-actions.pod:2948
28056 #, no-wrap
28057 msgid ""
28058 " mke2journal blocksize device\n"
28059 "\n"
28060 msgstr ""
28061
28062 # type: =head2
28063 #. type: =head2
28064 #: ../fish/guestfish-actions.pod:2955
28065 msgid "mke2journal-L"
28066 msgstr ""
28067
28068 # type: verbatim
28069 #. type: verbatim
28070 #: ../fish/guestfish-actions.pod:2957
28071 #, no-wrap
28072 msgid ""
28073 " mke2journal-L blocksize label device\n"
28074 "\n"
28075 msgstr ""
28076
28077 # type: =head2
28078 #. type: =head2
28079 #: ../fish/guestfish-actions.pod:2961
28080 msgid "mke2journal-U"
28081 msgstr ""
28082
28083 # type: verbatim
28084 #. type: verbatim
28085 #: ../fish/guestfish-actions.pod:2963
28086 #, no-wrap
28087 msgid ""
28088 " mke2journal-U blocksize uuid device\n"
28089 "\n"
28090 msgstr ""
28091
28092 # type: =head2
28093 #. type: =head2
28094 #: ../fish/guestfish-actions.pod:2967
28095 msgid "mkfifo"
28096 msgstr ""
28097
28098 # type: verbatim
28099 #. type: verbatim
28100 #: ../fish/guestfish-actions.pod:2969
28101 #, no-wrap
28102 msgid ""
28103 " mkfifo mode path\n"
28104 "\n"
28105 msgstr ""
28106
28107 # type: textblock
28108 #. type: textblock
28109 #: ../fish/guestfish-actions.pod:2971
28110 msgid ""
28111 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28112 "is just a convenient wrapper around L</mknod>."
28113 msgstr ""
28114
28115 # type: =head2
28116 #. type: =head2
28117 #: ../fish/guestfish-actions.pod:2977
28118 msgid "mkfs"
28119 msgstr ""
28120
28121 # type: verbatim
28122 #. type: verbatim
28123 #: ../fish/guestfish-actions.pod:2979
28124 #, no-wrap
28125 msgid ""
28126 " mkfs fstype device\n"
28127 "\n"
28128 msgstr ""
28129
28130 # type: =head2
28131 #. type: =head2
28132 #: ../fish/guestfish-actions.pod:2985
28133 msgid "mkfs-b"
28134 msgstr ""
28135
28136 # type: verbatim
28137 #. type: verbatim
28138 #: ../fish/guestfish-actions.pod:2987
28139 #, no-wrap
28140 msgid ""
28141 " mkfs-b fstype blocksize device\n"
28142 "\n"
28143 msgstr ""
28144
28145 # type: textblock
28146 #. type: textblock
28147 #: ../fish/guestfish-actions.pod:2989
28148 msgid ""
28149 "This call is similar to L</mkfs>, but it allows you to control the block "
28150 "size of the resulting filesystem.  Supported block sizes depend on the "
28151 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28152 msgstr ""
28153
28154 # type: =head2
28155 #. type: =head2
28156 #: ../fish/guestfish-actions.pod:3004
28157 msgid "mkfs-opts"
28158 msgstr ""
28159
28160 #. type: verbatim
28161 #: ../fish/guestfish-actions.pod:3006
28162 #, no-wrap
28163 msgid ""
28164 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
28165 "\n"
28166 msgstr ""
28167
28168 # type: =head2
28169 #. type: =head2
28170 #: ../fish/guestfish-actions.pod:3041
28171 msgid "mkmountpoint"
28172 msgstr ""
28173
28174 # type: verbatim
28175 #. type: verbatim
28176 #: ../fish/guestfish-actions.pod:3043
28177 #, no-wrap
28178 msgid ""
28179 " mkmountpoint exemptpath\n"
28180 "\n"
28181 msgstr ""
28182
28183 # type: textblock
28184 #. type: textblock
28185 #: ../fish/guestfish-actions.pod:3045
28186 msgid ""
28187 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
28188 "to create extra mountpoints before mounting the first filesystem."
28189 msgstr ""
28190
28191 # type: textblock
28192 #. type: textblock
28193 #: ../fish/guestfish-actions.pod:3069
28194 msgid ""
28195 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
28196 "unexpected errors if you try to mix these calls.  It is safest to manually "
28197 "unmount filesystems and remove mountpoints after use."
28198 msgstr ""
28199
28200 # type: textblock
28201 #. type: textblock
28202 #: ../fish/guestfish-actions.pod:3073
28203 msgid ""
28204 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
28205 "for this to work for manual mountpoints, you must ensure that the innermost "
28206 "mountpoints have the longest pathnames, as in the example code above."
28207 msgstr ""
28208
28209 #. type: textblock
28210 #: ../fish/guestfish-actions.pod:3080
28211 msgid ""
28212 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
28213 "L</umount-all> to be called when the handle is closed which can also trigger "
28214 "these issues."
28215 msgstr ""
28216
28217 # type: =head2
28218 #. type: =head2
28219 #: ../fish/guestfish-actions.pod:3084
28220 msgid "mknod"
28221 msgstr ""
28222
28223 # type: verbatim
28224 #. type: verbatim
28225 #: ../fish/guestfish-actions.pod:3086
28226 #, no-wrap
28227 msgid ""
28228 " mknod mode devmajor devminor path\n"
28229 "\n"
28230 msgstr ""
28231
28232 # type: textblock
28233 #. type: textblock
28234 #: ../fish/guestfish-actions.pod:3096
28235 msgid ""
28236 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28237 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28238 "regular file).  These constants are available in the standard Linux header "
28239 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28240 "wrappers around this command which bitwise OR in the appropriate constant "
28241 "for you."
28242 msgstr ""
28243
28244 # type: =head2
28245 #. type: =head2
28246 #: ../fish/guestfish-actions.pod:3106
28247 msgid "mknod-b"
28248 msgstr ""
28249
28250 # type: verbatim
28251 #. type: verbatim
28252 #: ../fish/guestfish-actions.pod:3108
28253 #, no-wrap
28254 msgid ""
28255 " mknod-b mode devmajor devminor path\n"
28256 "\n"
28257 msgstr ""
28258
28259 # type: textblock
28260 #. type: textblock
28261 #: ../fish/guestfish-actions.pod:3110
28262 msgid ""
28263 "This call creates a block device node called C<path> with mode C<mode> and "
28264 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28265 "wrapper around L</mknod>."
28266 msgstr ""
28267
28268 # type: =head2
28269 #. type: =head2
28270 #: ../fish/guestfish-actions.pod:3116
28271 msgid "mknod-c"
28272 msgstr ""
28273
28274 # type: verbatim
28275 #. type: verbatim
28276 #: ../fish/guestfish-actions.pod:3118
28277 #, no-wrap
28278 msgid ""
28279 " mknod-c mode devmajor devminor path\n"
28280 "\n"
28281 msgstr ""
28282
28283 # type: textblock
28284 #. type: textblock
28285 #: ../fish/guestfish-actions.pod:3120
28286 msgid ""
28287 "This call creates a char device node called C<path> with mode C<mode> and "
28288 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28289 "wrapper around L</mknod>."
28290 msgstr ""
28291
28292 # type: =head2
28293 #. type: =head2
28294 #: ../fish/guestfish-actions.pod:3126
28295 msgid "mkswap"
28296 msgstr ""
28297
28298 # type: verbatim
28299 #. type: verbatim
28300 #: ../fish/guestfish-actions.pod:3128
28301 #, no-wrap
28302 msgid ""
28303 " mkswap device\n"
28304 "\n"
28305 msgstr ""
28306
28307 # type: =head2
28308 #. type: =head2
28309 #: ../fish/guestfish-actions.pod:3132
28310 msgid "mkswap-L"
28311 msgstr ""
28312
28313 # type: verbatim
28314 #. type: verbatim
28315 #: ../fish/guestfish-actions.pod:3134
28316 #, no-wrap
28317 msgid ""
28318 " mkswap-L label device\n"
28319 "\n"
28320 msgstr ""
28321
28322 # type: =head2
28323 #. type: =head2
28324 #: ../fish/guestfish-actions.pod:3142
28325 msgid "mkswap-U"
28326 msgstr ""
28327
28328 # type: verbatim
28329 #. type: verbatim
28330 #: ../fish/guestfish-actions.pod:3144
28331 #, no-wrap
28332 msgid ""
28333 " mkswap-U uuid device\n"
28334 "\n"
28335 msgstr ""
28336
28337 # type: =head2
28338 #. type: =head2
28339 #: ../fish/guestfish-actions.pod:3148
28340 msgid "mkswap-file"
28341 msgstr ""
28342
28343 # type: verbatim
28344 #. type: verbatim
28345 #: ../fish/guestfish-actions.pod:3150
28346 #, no-wrap
28347 msgid ""
28348 " mkswap-file path\n"
28349 "\n"
28350 msgstr ""
28351
28352 # type: textblock
28353 #. type: textblock
28354 #: ../fish/guestfish-actions.pod:3154
28355 msgid ""
28356 "This command just writes a swap file signature to an existing file.  To "
28357 "create the file itself, use something like L</fallocate>."
28358 msgstr ""
28359
28360 # type: =head2
28361 #. type: =head2
28362 #: ../fish/guestfish-actions.pod:3157
28363 msgid "modprobe"
28364 msgstr ""
28365
28366 # type: verbatim
28367 #. type: verbatim
28368 #: ../fish/guestfish-actions.pod:3159
28369 #, no-wrap
28370 msgid ""
28371 " modprobe modulename\n"
28372 "\n"
28373 msgstr ""
28374
28375 # type: =head2
28376 #. type: =head2
28377 #: ../fish/guestfish-actions.pod:3166
28378 msgid "mount"
28379 msgstr ""
28380
28381 # type: verbatim
28382 #. type: verbatim
28383 #: ../fish/guestfish-actions.pod:3168
28384 #, no-wrap
28385 msgid ""
28386 " mount device mountpoint\n"
28387 "\n"
28388 msgstr ""
28389
28390 # type: textblock
28391 #. type: textblock
28392 #: ../fish/guestfish-actions.pod:3184
28393 msgid ""
28394 "B<Important note:> When you use this call, the filesystem options C<sync> "
28395 "and C<noatime> are set implicitly.  This was originally done because we "
28396 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28397 "very large negative performance impact and negligible effect on "
28398 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28399 "code that needs performance, and instead use L</mount-options> (use an empty "
28400 "string for the first parameter if you don't want any options)."
28401 msgstr ""
28402
28403 # type: =head2
28404 #. type: =head2
28405 #: ../fish/guestfish-actions.pod:3194
28406 msgid "mount-loop"
28407 msgstr ""
28408
28409 # type: verbatim
28410 #. type: verbatim
28411 #: ../fish/guestfish-actions.pod:3196
28412 #, no-wrap
28413 msgid ""
28414 " mount-loop file mountpoint\n"
28415 "\n"
28416 msgstr ""
28417
28418 # type: =head2
28419 #. type: =head2
28420 #: ../fish/guestfish-actions.pod:3202
28421 msgid "mount-options"
28422 msgstr ""
28423
28424 # type: verbatim
28425 #. type: verbatim
28426 #: ../fish/guestfish-actions.pod:3204
28427 #, no-wrap
28428 msgid ""
28429 " mount-options options device mountpoint\n"
28430 "\n"
28431 msgstr ""
28432
28433 # type: textblock
28434 #. type: textblock
28435 #: ../fish/guestfish-actions.pod:3206
28436 msgid ""
28437 "This is the same as the L</mount> command, but it allows you to set the "
28438 "mount options as for the L<mount(8)> I<-o> flag."
28439 msgstr ""
28440
28441 # type: =head2
28442 #. type: =head2
28443 #: ../fish/guestfish-actions.pod:3214
28444 msgid "mount-ro"
28445 msgstr ""
28446
28447 # type: verbatim
28448 #. type: verbatim
28449 #: ../fish/guestfish-actions.pod:3216
28450 #, no-wrap
28451 msgid ""
28452 " mount-ro device mountpoint\n"
28453 "\n"
28454 msgstr ""
28455
28456 # type: textblock
28457 #. type: textblock
28458 #: ../fish/guestfish-actions.pod:3218
28459 msgid ""
28460 "This is the same as the L</mount> command, but it mounts the filesystem with "
28461 "the read-only (I<-o ro>) flag."
28462 msgstr ""
28463
28464 # type: =head2
28465 #. type: =head2
28466 #: ../fish/guestfish-actions.pod:3221
28467 msgid "mount-vfs"
28468 msgstr ""
28469
28470 # type: verbatim
28471 #. type: verbatim
28472 #: ../fish/guestfish-actions.pod:3223
28473 #, no-wrap
28474 msgid ""
28475 " mount-vfs options vfstype device mountpoint\n"
28476 "\n"
28477 msgstr ""
28478
28479 # type: textblock
28480 #. type: textblock
28481 #: ../fish/guestfish-actions.pod:3225
28482 msgid ""
28483 "This is the same as the L</mount> command, but it allows you to set both the "
28484 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
28485 msgstr ""
28486
28487 # type: =head2
28488 #. type: =head2
28489 #: ../fish/guestfish-actions.pod:3229
28490 msgid "mountpoints"
28491 msgstr ""
28492
28493 # type: verbatim
28494 #. type: verbatim
28495 #: ../fish/guestfish-actions.pod:3231
28496 #, no-wrap
28497 msgid ""
28498 " mountpoints\n"
28499 "\n"
28500 msgstr ""
28501
28502 # type: textblock
28503 #. type: textblock
28504 #: ../fish/guestfish-actions.pod:3233
28505 msgid ""
28506 "This call is similar to L</mounts>.  That call returns a list of devices.  "
28507 "This one returns a hash table (map) of device name to directory where the "
28508 "device is mounted."
28509 msgstr ""
28510
28511 # type: =head2
28512 #. type: =head2
28513 #: ../fish/guestfish-actions.pod:3237
28514 msgid "mounts"
28515 msgstr ""
28516
28517 # type: verbatim
28518 #. type: verbatim
28519 #: ../fish/guestfish-actions.pod:3239
28520 #, no-wrap
28521 msgid ""
28522 " mounts\n"
28523 "\n"
28524 msgstr ""
28525
28526 # type: textblock
28527 #. type: textblock
28528 #: ../fish/guestfish-actions.pod:3246
28529 msgid "See also: L</mountpoints>"
28530 msgstr ""
28531
28532 # type: =head2
28533 #. type: =head2
28534 #: ../fish/guestfish-actions.pod:3248
28535 msgid "mv"
28536 msgstr ""
28537
28538 # type: verbatim
28539 #. type: verbatim
28540 #: ../fish/guestfish-actions.pod:3250
28541 #, no-wrap
28542 msgid ""
28543 " mv src dest\n"
28544 "\n"
28545 msgstr ""
28546
28547 # type: =head2
28548 #. type: =head2
28549 #: ../fish/guestfish-actions.pod:3255
28550 msgid "ntfs-3g-probe"
28551 msgstr ""
28552
28553 # type: verbatim
28554 #. type: verbatim
28555 #: ../fish/guestfish-actions.pod:3257
28556 #, no-wrap
28557 msgid ""
28558 " ntfs-3g-probe true|false device\n"
28559 "\n"
28560 msgstr ""
28561
28562 # type: =head2
28563 #. type: =head2
28564 #: ../fish/guestfish-actions.pod:3271
28565 msgid "ntfsresize"
28566 msgstr ""
28567
28568 # type: verbatim
28569 #. type: verbatim
28570 #: ../fish/guestfish-actions.pod:3273
28571 #, no-wrap
28572 msgid ""
28573 " ntfsresize device\n"
28574 "\n"
28575 msgstr ""
28576
28577 # type: =head2
28578 #. type: =head2
28579 #: ../fish/guestfish-actions.pod:3279
28580 msgid "ntfsresize-size"
28581 msgstr ""
28582
28583 # type: verbatim
28584 #. type: verbatim
28585 #: ../fish/guestfish-actions.pod:3281
28586 #, no-wrap
28587 msgid ""
28588 " ntfsresize-size device size\n"
28589 "\n"
28590 msgstr ""
28591
28592 # type: textblock
28593 #. type: textblock
28594 #: ../fish/guestfish-actions.pod:3283
28595 msgid ""
28596 "This command is the same as L</ntfsresize> except that it allows you to "
28597 "specify the new size (in bytes) explicitly."
28598 msgstr ""
28599
28600 # type: =head2
28601 #. type: =head2
28602 #: ../fish/guestfish-actions.pod:3286
28603 msgid "part-add"
28604 msgstr ""
28605
28606 # type: verbatim
28607 #. type: verbatim
28608 #: ../fish/guestfish-actions.pod:3288
28609 #, no-wrap
28610 msgid ""
28611 " part-add device prlogex startsect endsect\n"
28612 "\n"
28613 msgstr ""
28614
28615 # type: textblock
28616 #. type: textblock
28617 #: ../fish/guestfish-actions.pod:3290
28618 msgid ""
28619 "This command adds a partition to C<device>.  If there is no partition table "
28620 "on the device, call L</part-init> first."
28621 msgstr ""
28622
28623 # type: textblock
28624 #. type: textblock
28625 #: ../fish/guestfish-actions.pod:3302
28626 msgid ""
28627 "Creating a partition which covers the whole disk is not so easy.  Use L</"
28628 "part-disk> to do that."
28629 msgstr ""
28630
28631 # type: =head2
28632 #. type: =head2
28633 #: ../fish/guestfish-actions.pod:3305
28634 msgid "part-del"
28635 msgstr ""
28636
28637 # type: verbatim
28638 #. type: verbatim
28639 #: ../fish/guestfish-actions.pod:3307
28640 #, no-wrap
28641 msgid ""
28642 " part-del device partnum\n"
28643 "\n"
28644 msgstr ""
28645
28646 # type: =head2
28647 #. type: =head2
28648 #: ../fish/guestfish-actions.pod:3315
28649 msgid "part-disk"
28650 msgstr ""
28651
28652 # type: verbatim
28653 #. type: verbatim
28654 #: ../fish/guestfish-actions.pod:3317
28655 #, no-wrap
28656 msgid ""
28657 " part-disk device parttype\n"
28658 "\n"
28659 msgstr ""
28660
28661 # type: textblock
28662 #. type: textblock
28663 #: ../fish/guestfish-actions.pod:3319
28664 msgid ""
28665 "This command is simply a combination of L</part-init> followed by L</part-"
28666 "add> to create a single primary partition covering the whole disk."
28667 msgstr ""
28668
28669 # type: textblock
28670 #. type: textblock
28671 #: ../fish/guestfish-actions.pod:3323
28672 msgid ""
28673 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28674 "possible values are described in L</part-init>."
28675 msgstr ""
28676
28677 # type: =head2
28678 #. type: =head2
28679 #: ../fish/guestfish-actions.pod:3329
28680 msgid "part-get-bootable"
28681 msgstr ""
28682
28683 # type: verbatim
28684 #. type: verbatim
28685 #: ../fish/guestfish-actions.pod:3331
28686 #, no-wrap
28687 msgid ""
28688 " part-get-bootable device partnum\n"
28689 "\n"
28690 msgstr ""
28691
28692 # type: textblock
28693 #. type: textblock
28694 #: ../fish/guestfish-actions.pod:3336
28695 msgid "See also L</part-set-bootable>."
28696 msgstr ""
28697
28698 # type: =head2
28699 #. type: =head2
28700 #: ../fish/guestfish-actions.pod:3338
28701 msgid "part-get-mbr-id"
28702 msgstr ""
28703
28704 # type: verbatim
28705 #. type: verbatim
28706 #: ../fish/guestfish-actions.pod:3340
28707 #, no-wrap
28708 msgid ""
28709 " part-get-mbr-id device partnum\n"
28710 "\n"
28711 msgstr ""
28712
28713 # type: textblock
28714 #. type: textblock
28715 #: ../fish/guestfish-actions.pod:3345 ../fish/guestfish-actions.pod:3483
28716 msgid ""
28717 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28718 "undefined results for other partition table types (see L</part-get-"
28719 "parttype>)."
28720 msgstr ""
28721
28722 # type: =head2
28723 #. type: =head2
28724 #: ../fish/guestfish-actions.pod:3349
28725 msgid "part-get-parttype"
28726 msgstr ""
28727
28728 # type: verbatim
28729 #. type: verbatim
28730 #: ../fish/guestfish-actions.pod:3351
28731 #, no-wrap
28732 msgid ""
28733 " part-get-parttype device\n"
28734 "\n"
28735 msgstr ""
28736
28737 # type: textblock
28738 #. type: textblock
28739 #: ../fish/guestfish-actions.pod:3356
28740 msgid ""
28741 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28742 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28743 "possible, although unusual.  See L</part-init> for a full list."
28744 msgstr ""
28745
28746 # type: =head2
28747 #. type: =head2
28748 #: ../fish/guestfish-actions.pod:3361
28749 msgid "part-init"
28750 msgstr ""
28751
28752 # type: verbatim
28753 #. type: verbatim
28754 #: ../fish/guestfish-actions.pod:3363
28755 #, no-wrap
28756 msgid ""
28757 " part-init device parttype\n"
28758 "\n"
28759 msgstr ""
28760
28761 # type: textblock
28762 #. type: textblock
28763 #: ../fish/guestfish-actions.pod:3369
28764 msgid ""
28765 "Initially there are no partitions.  Following this, you should call L</part-"
28766 "add> for each partition required."
28767 msgstr ""
28768
28769 # type: =head2
28770 #. type: =head2
28771 #: ../fish/guestfish-actions.pod:3432
28772 msgid "part-list"
28773 msgstr ""
28774
28775 # type: verbatim
28776 #. type: verbatim
28777 #: ../fish/guestfish-actions.pod:3434
28778 #, no-wrap
28779 msgid ""
28780 " part-list device\n"
28781 "\n"
28782 msgstr ""
28783
28784 # type: textblock
28785 #. type: textblock
28786 #: ../fish/guestfish-actions.pod:3449
28787 msgid ""
28788 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28789 "the device's sector size, see L</blockdev-getss>."
28790 msgstr ""
28791
28792 # type: =head2
28793 #. type: =head2
28794 #: ../fish/guestfish-actions.pod:3462
28795 msgid "part-set-bootable"
28796 msgstr ""
28797
28798 # type: verbatim
28799 #. type: verbatim
28800 #: ../fish/guestfish-actions.pod:3464
28801 #, no-wrap
28802 msgid ""
28803 " part-set-bootable device partnum true|false\n"
28804 "\n"
28805 msgstr ""
28806
28807 # type: =head2
28808 #. type: =head2
28809 #: ../fish/guestfish-actions.pod:3473
28810 msgid "part-set-mbr-id"
28811 msgstr ""
28812
28813 # type: verbatim
28814 #. type: verbatim
28815 #: ../fish/guestfish-actions.pod:3475
28816 #, no-wrap
28817 msgid ""
28818 " part-set-mbr-id device partnum idbyte\n"
28819 "\n"
28820 msgstr ""
28821
28822 # type: =head2
28823 #. type: =head2
28824 #: ../fish/guestfish-actions.pod:3487
28825 msgid "part-set-name"
28826 msgstr ""
28827
28828 # type: verbatim
28829 #. type: verbatim
28830 #: ../fish/guestfish-actions.pod:3489
28831 #, no-wrap
28832 msgid ""
28833 " part-set-name device partnum name\n"
28834 "\n"
28835 msgstr ""
28836
28837 # type: =head2
28838 #. type: =head2
28839 #: ../fish/guestfish-actions.pod:3497
28840 msgid "part-to-dev"
28841 msgstr ""
28842
28843 # type: verbatim
28844 #. type: verbatim
28845 #: ../fish/guestfish-actions.pod:3499
28846 #, no-wrap
28847 msgid ""
28848 " part-to-dev partition\n"
28849 "\n"
28850 msgstr ""
28851
28852 # type: textblock
28853 #. type: textblock
28854 #: ../fish/guestfish-actions.pod:3505
28855 msgid ""
28856 "The named partition must exist, for example as a string returned from L</"
28857 "list-partitions>."
28858 msgstr ""
28859
28860 # type: =head2
28861 #. type: =head2
28862 #: ../fish/guestfish-actions.pod:3508
28863 msgid "ping-daemon"
28864 msgstr ""
28865
28866 # type: verbatim
28867 #. type: verbatim
28868 #: ../fish/guestfish-actions.pod:3510
28869 #, no-wrap
28870 msgid ""
28871 " ping-daemon\n"
28872 "\n"
28873 msgstr ""
28874
28875 # type: =head2
28876 #. type: =head2
28877 #: ../fish/guestfish-actions.pod:3517
28878 msgid "pread"
28879 msgstr ""
28880
28881 # type: verbatim
28882 #. type: verbatim
28883 #: ../fish/guestfish-actions.pod:3519
28884 #, no-wrap
28885 msgid ""
28886 " pread path count offset\n"
28887 "\n"
28888 msgstr ""
28889
28890 # type: textblock
28891 #. type: textblock
28892 #: ../fish/guestfish-actions.pod:3527
28893 msgid "See also L</pwrite>, L</pread-device>."
28894 msgstr ""
28895
28896 # type: =head2
28897 #. type: =head2
28898 #: ../fish/guestfish-actions.pod:3532
28899 msgid "pread-device"
28900 msgstr ""
28901
28902 # type: verbatim
28903 #. type: verbatim
28904 #: ../fish/guestfish-actions.pod:3534
28905 #, no-wrap
28906 msgid ""
28907 " pread-device device count offset\n"
28908 "\n"
28909 msgstr ""
28910
28911 # type: textblock
28912 #. type: textblock
28913 #: ../fish/guestfish-actions.pod:3542
28914 msgid "See also L</pread>."
28915 msgstr ""
28916
28917 # type: =head2
28918 #. type: =head2
28919 #: ../fish/guestfish-actions.pod:3547
28920 msgid "pvcreate"
28921 msgstr ""
28922
28923 # type: verbatim
28924 #. type: verbatim
28925 #: ../fish/guestfish-actions.pod:3549
28926 #, no-wrap
28927 msgid ""
28928 " pvcreate device\n"
28929 "\n"
28930 msgstr ""
28931
28932 # type: =head2
28933 #. type: =head2
28934 #: ../fish/guestfish-actions.pod:3555
28935 msgid "pvremove"
28936 msgstr ""
28937
28938 # type: verbatim
28939 #. type: verbatim
28940 #: ../fish/guestfish-actions.pod:3557
28941 #, no-wrap
28942 msgid ""
28943 " pvremove device\n"
28944 "\n"
28945 msgstr ""
28946
28947 # type: =head2
28948 #. type: =head2
28949 #: ../fish/guestfish-actions.pod:3566
28950 msgid "pvresize"
28951 msgstr ""
28952
28953 # type: verbatim
28954 #. type: verbatim
28955 #: ../fish/guestfish-actions.pod:3568
28956 #, no-wrap
28957 msgid ""
28958 " pvresize device\n"
28959 "\n"
28960 msgstr ""
28961
28962 # type: =head2
28963 #. type: =head2
28964 #: ../fish/guestfish-actions.pod:3573
28965 msgid "pvresize-size"
28966 msgstr ""
28967
28968 # type: verbatim
28969 #. type: verbatim
28970 #: ../fish/guestfish-actions.pod:3575
28971 #, no-wrap
28972 msgid ""
28973 " pvresize-size device size\n"
28974 "\n"
28975 msgstr ""
28976
28977 # type: textblock
28978 #. type: textblock
28979 #: ../fish/guestfish-actions.pod:3577
28980 msgid ""
28981 "This command is the same as L</pvresize> except that it allows you to "
28982 "specify the new size (in bytes) explicitly."
28983 msgstr ""
28984
28985 # type: =head2
28986 #. type: =head2
28987 #: ../fish/guestfish-actions.pod:3580
28988 msgid "pvs"
28989 msgstr ""
28990
28991 # type: verbatim
28992 #. type: verbatim
28993 #: ../fish/guestfish-actions.pod:3582
28994 #, no-wrap
28995 msgid ""
28996 " pvs\n"
28997 "\n"
28998 msgstr ""
28999
29000 # type: textblock
29001 #. type: textblock
29002 #: ../fish/guestfish-actions.pod:3590
29003 msgid "See also L</pvs-full>."
29004 msgstr ""
29005
29006 # type: =head2
29007 #. type: =head2
29008 #: ../fish/guestfish-actions.pod:3592
29009 msgid "pvs-full"
29010 msgstr ""
29011
29012 # type: verbatim
29013 #. type: verbatim
29014 #: ../fish/guestfish-actions.pod:3594
29015 #, no-wrap
29016 msgid ""
29017 " pvs-full\n"
29018 "\n"
29019 msgstr ""
29020
29021 # type: =head2
29022 #. type: =head2
29023 #: ../fish/guestfish-actions.pod:3599
29024 msgid "pvuuid"
29025 msgstr ""
29026
29027 # type: verbatim
29028 #. type: verbatim
29029 #: ../fish/guestfish-actions.pod:3601
29030 #, no-wrap
29031 msgid ""
29032 " pvuuid device\n"
29033 "\n"
29034 msgstr ""
29035
29036 # type: =head2
29037 #. type: =head2
29038 #: ../fish/guestfish-actions.pod:3605
29039 msgid "pwrite"
29040 msgstr ""
29041
29042 # type: verbatim
29043 #. type: verbatim
29044 #: ../fish/guestfish-actions.pod:3607
29045 #, no-wrap
29046 msgid ""
29047 " pwrite path content offset\n"
29048 "\n"
29049 msgstr ""
29050
29051 # type: textblock
29052 #. type: textblock
29053 #: ../fish/guestfish-actions.pod:3618
29054 msgid "See also L</pread>, L</pwrite-device>."
29055 msgstr ""
29056
29057 # type: =head2
29058 #. type: =head2
29059 #: ../fish/guestfish-actions.pod:3623
29060 msgid "pwrite-device"
29061 msgstr ""
29062
29063 # type: verbatim
29064 #. type: verbatim
29065 #: ../fish/guestfish-actions.pod:3625
29066 #, no-wrap
29067 msgid ""
29068 " pwrite-device device content offset\n"
29069 "\n"
29070 msgstr ""
29071
29072 # type: textblock
29073 #. type: textblock
29074 #: ../fish/guestfish-actions.pod:3635
29075 msgid "See also L</pwrite>."
29076 msgstr ""
29077
29078 # type: =head2
29079 #. type: =head2
29080 #: ../fish/guestfish-actions.pod:3640
29081 msgid "read-file"
29082 msgstr ""
29083
29084 # type: verbatim
29085 #. type: verbatim
29086 #: ../fish/guestfish-actions.pod:3642
29087 #, no-wrap
29088 msgid ""
29089 " read-file path\n"
29090 "\n"
29091 msgstr ""
29092
29093 # type: textblock
29094 #. type: textblock
29095 #: ../fish/guestfish-actions.pod:3647
29096 msgid ""
29097 "Unlike L</cat>, this function can correctly handle files that contain "
29098 "embedded ASCII NUL characters.  However unlike L</download>, this function "
29099 "is limited in the total size of file that can be handled."
29100 msgstr ""
29101
29102 # type: =head2
29103 #. type: =head2
29104 #: ../fish/guestfish-actions.pod:3655
29105 msgid "read-lines"
29106 msgstr ""
29107
29108 # type: verbatim
29109 #. type: verbatim
29110 #: ../fish/guestfish-actions.pod:3657
29111 #, no-wrap
29112 msgid ""
29113 " read-lines path\n"
29114 "\n"
29115 msgstr ""
29116
29117 # type: textblock
29118 #. type: textblock
29119 #: ../fish/guestfish-actions.pod:3664
29120 msgid ""
29121 "Note that this function cannot correctly handle binary files (specifically, "
29122 "files containing C<\\0> character which is treated as end of line).  For "
29123 "those you need to use the L</read-file> function which has a more complex "
29124 "interface."
29125 msgstr ""
29126
29127 # type: =head2
29128 #. type: =head2
29129 #: ../fish/guestfish-actions.pod:3669
29130 msgid "readdir"
29131 msgstr ""
29132
29133 # type: verbatim
29134 #. type: verbatim
29135 #: ../fish/guestfish-actions.pod:3671
29136 #, no-wrap
29137 msgid ""
29138 " readdir dir\n"
29139 "\n"
29140 msgstr ""
29141
29142 # type: textblock
29143 #. type: textblock
29144 #: ../fish/guestfish-actions.pod:3723
29145 msgid ""
29146 "This function is primarily intended for use by programs.  To get a simple "
29147 "list of names, use L</ls>.  To get a printable directory for human "
29148 "consumption, use L</ll>."
29149 msgstr ""
29150
29151 # type: =head2
29152 #. type: =head2
29153 #: ../fish/guestfish-actions.pod:3727
29154 msgid "readlink"
29155 msgstr ""
29156
29157 # type: verbatim
29158 #. type: verbatim
29159 #: ../fish/guestfish-actions.pod:3729
29160 #, no-wrap
29161 msgid ""
29162 " readlink path\n"
29163 "\n"
29164 msgstr ""
29165
29166 # type: =head2
29167 #. type: =head2
29168 #: ../fish/guestfish-actions.pod:3733
29169 msgid "readlinklist"
29170 msgstr ""
29171
29172 # type: verbatim
29173 #. type: verbatim
29174 #: ../fish/guestfish-actions.pod:3735
29175 #, no-wrap
29176 msgid ""
29177 " readlinklist path 'names ...'\n"
29178 "\n"
29179 msgstr ""
29180
29181 # type: =head2
29182 #. type: =head2
29183 #: ../fish/guestfish-actions.pod:3759
29184 msgid "realpath"
29185 msgstr ""
29186
29187 # type: verbatim
29188 #. type: verbatim
29189 #: ../fish/guestfish-actions.pod:3761
29190 #, no-wrap
29191 msgid ""
29192 " realpath path\n"
29193 "\n"
29194 msgstr ""
29195
29196 # type: =head2
29197 #. type: =head2
29198 #: ../fish/guestfish-actions.pod:3766
29199 msgid "removexattr"
29200 msgstr ""
29201
29202 # type: verbatim
29203 #. type: verbatim
29204 #: ../fish/guestfish-actions.pod:3768
29205 #, no-wrap
29206 msgid ""
29207 " removexattr xattr path\n"
29208 "\n"
29209 msgstr ""
29210
29211 # type: textblock
29212 #. type: textblock
29213 #: ../fish/guestfish-actions.pod:3773
29214 msgid "See also: L</lremovexattr>, L<attr(5)>."
29215 msgstr ""
29216
29217 # type: =head2
29218 #. type: =head2
29219 #: ../fish/guestfish-actions.pod:3775
29220 msgid "resize2fs"
29221 msgstr ""
29222
29223 # type: verbatim
29224 #. type: verbatim
29225 #: ../fish/guestfish-actions.pod:3777
29226 #, no-wrap
29227 msgid ""
29228 " resize2fs device\n"
29229 "\n"
29230 msgstr ""
29231
29232 # type: textblock
29233 #. type: textblock
29234 #: ../fish/guestfish-actions.pod:3782
29235 msgid ""
29236 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29237 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29238 "gives an error about this and sometimes not.  In any case, it is always safe "
29239 "to call L</e2fsck-f> before calling this function."
29240 msgstr ""
29241
29242 #. type: =head2
29243 #: ../fish/guestfish-actions.pod:3788
29244 msgid "resize2fs-M"
29245 msgstr ""
29246
29247 #. type: verbatim
29248 #: ../fish/guestfish-actions.pod:3790
29249 #, no-wrap
29250 msgid ""
29251 " resize2fs-M device\n"
29252 "\n"
29253 msgstr ""
29254
29255 #. type: textblock
29256 #: ../fish/guestfish-actions.pod:3792
29257 msgid ""
29258 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29259 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
29260 "command."
29261 msgstr ""
29262
29263 #. type: textblock
29264 #: ../fish/guestfish-actions.pod:3796
29265 msgid ""
29266 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29267 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29268 "multiplied together, give the resulting size of the minimal filesystem in "
29269 "bytes."
29270 msgstr ""
29271
29272 # type: =head2
29273 #. type: =head2
29274 #: ../fish/guestfish-actions.pod:3801
29275 msgid "resize2fs-size"
29276 msgstr ""
29277
29278 # type: verbatim
29279 #. type: verbatim
29280 #: ../fish/guestfish-actions.pod:3803
29281 #, no-wrap
29282 msgid ""
29283 " resize2fs-size device size\n"
29284 "\n"
29285 msgstr ""
29286
29287 # type: textblock
29288 #. type: textblock
29289 #: ../fish/guestfish-actions.pod:3805
29290 msgid ""
29291 "This command is the same as L</resize2fs> except that it allows you to "
29292 "specify the new size (in bytes) explicitly."
29293 msgstr ""
29294
29295 # type: =head2
29296 #. type: =head2
29297 #: ../fish/guestfish-actions.pod:3808
29298 msgid "rm"
29299 msgstr ""
29300
29301 # type: verbatim
29302 #. type: verbatim
29303 #: ../fish/guestfish-actions.pod:3810
29304 #, no-wrap
29305 msgid ""
29306 " rm path\n"
29307 "\n"
29308 msgstr ""
29309
29310 # type: =head2
29311 #. type: =head2
29312 #: ../fish/guestfish-actions.pod:3814
29313 msgid "rm-rf"
29314 msgstr ""
29315
29316 # type: verbatim
29317 #. type: verbatim
29318 #: ../fish/guestfish-actions.pod:3816
29319 #, no-wrap
29320 msgid ""
29321 " rm-rf path\n"
29322 "\n"
29323 msgstr ""
29324
29325 # type: =head2
29326 #. type: =head2
29327 #: ../fish/guestfish-actions.pod:3822
29328 msgid "rmdir"
29329 msgstr ""
29330
29331 # type: verbatim
29332 #. type: verbatim
29333 #: ../fish/guestfish-actions.pod:3824
29334 #, no-wrap
29335 msgid ""
29336 " rmdir path\n"
29337 "\n"
29338 msgstr ""
29339
29340 # type: =head2
29341 #. type: =head2
29342 #: ../fish/guestfish-actions.pod:3828
29343 msgid "rmmountpoint"
29344 msgstr ""
29345
29346 # type: verbatim
29347 #. type: verbatim
29348 #: ../fish/guestfish-actions.pod:3830
29349 #, no-wrap
29350 msgid ""
29351 " rmmountpoint exemptpath\n"
29352 "\n"
29353 msgstr ""
29354
29355 # type: textblock
29356 #. type: textblock
29357 #: ../fish/guestfish-actions.pod:3832
29358 msgid ""
29359 "This calls removes a mountpoint that was previously created with L</"
29360 "mkmountpoint>.  See L</mkmountpoint> for full details."
29361 msgstr ""
29362
29363 # type: =head2
29364 #. type: =head2
29365 #: ../fish/guestfish-actions.pod:3836
29366 msgid "scrub-device"
29367 msgstr ""
29368
29369 # type: verbatim
29370 #. type: verbatim
29371 #: ../fish/guestfish-actions.pod:3838
29372 #, no-wrap
29373 msgid ""
29374 " scrub-device device\n"
29375 "\n"
29376 msgstr ""
29377
29378 # type: =head2
29379 #. type: =head2
29380 #: ../fish/guestfish-actions.pod:3849
29381 msgid "scrub-file"
29382 msgstr ""
29383
29384 # type: verbatim
29385 #. type: verbatim
29386 #: ../fish/guestfish-actions.pod:3851
29387 #, no-wrap
29388 msgid ""
29389 " scrub-file file\n"
29390 "\n"
29391 msgstr ""
29392
29393 # type: =head2
29394 #. type: =head2
29395 #: ../fish/guestfish-actions.pod:3861
29396 msgid "scrub-freespace"
29397 msgstr ""
29398
29399 # type: verbatim
29400 #. type: verbatim
29401 #: ../fish/guestfish-actions.pod:3863
29402 #, no-wrap
29403 msgid ""
29404 " scrub-freespace dir\n"
29405 "\n"
29406 msgstr ""
29407
29408 # type: textblock
29409 #. type: textblock
29410 #: ../fish/guestfish-actions.pod:3865
29411 msgid ""
29412 "This command creates the directory C<dir> and then fills it with files until "
29413 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29414 "deletes them.  The intention is to scrub any free space on the partition "
29415 "containing C<dir>."
29416 msgstr ""
29417
29418 # type: =head2
29419 #. type: =head2
29420 #: ../fish/guestfish-actions.pod:3874
29421 msgid "set-append"
29422 msgstr ""
29423
29424 # type: =head2
29425 #. type: =head2
29426 #: ../fish/guestfish-actions.pod:3876
29427 msgid "append"
29428 msgstr ""
29429
29430 # type: verbatim
29431 #. type: verbatim
29432 #: ../fish/guestfish-actions.pod:3878
29433 #, no-wrap
29434 msgid ""
29435 " set-append append\n"
29436 "\n"
29437 msgstr ""
29438
29439 #. type: =head2
29440 #: ../fish/guestfish-actions.pod:3889
29441 msgid "set-attach-method"
29442 msgstr ""
29443
29444 #. type: =head2
29445 #: ../fish/guestfish-actions.pod:3891
29446 msgid "attach-method"
29447 msgstr ""
29448
29449 #. type: verbatim
29450 #: ../fish/guestfish-actions.pod:3893
29451 #, no-wrap
29452 msgid ""
29453 " set-attach-method attachmethod\n"
29454 "\n"
29455 msgstr ""
29456
29457 # type: =head2
29458 #. type: =head2
29459 #: ../fish/guestfish-actions.pod:3915
29460 msgid "set-autosync"
29461 msgstr ""
29462
29463 # type: =head2
29464 #. type: =head2
29465 #: ../fish/guestfish-actions.pod:3917
29466 msgid "autosync"
29467 msgstr ""
29468
29469 # type: verbatim
29470 #. type: verbatim
29471 #: ../fish/guestfish-actions.pod:3919
29472 #, no-wrap
29473 msgid ""
29474 " set-autosync true|false\n"
29475 "\n"
29476 msgstr ""
29477
29478 # type: =head2
29479 #. type: =head2
29480 #: ../fish/guestfish-actions.pod:3929
29481 msgid "set-direct"
29482 msgstr ""
29483
29484 # type: =head2
29485 #. type: =head2
29486 #: ../fish/guestfish-actions.pod:3931
29487 msgid "direct"
29488 msgstr ""
29489
29490 # type: verbatim
29491 #. type: verbatim
29492 #: ../fish/guestfish-actions.pod:3933
29493 #, no-wrap
29494 msgid ""
29495 " set-direct true|false\n"
29496 "\n"
29497 msgstr ""
29498
29499 # type: textblock
29500 #. type: textblock
29501 #: ../fish/guestfish-actions.pod:3939
29502 msgid ""
29503 "One consequence of this is that log messages aren't caught by the library "
29504 "and handled by L</set-log-message-callback>, but go straight to stdout."
29505 msgstr ""
29506
29507 # type: =head2
29508 #. type: =head2
29509 #: ../fish/guestfish-actions.pod:3948
29510 msgid "set-e2label"
29511 msgstr ""
29512
29513 # type: verbatim
29514 #. type: verbatim
29515 #: ../fish/guestfish-actions.pod:3950
29516 #, no-wrap
29517 msgid ""
29518 " set-e2label device label\n"
29519 "\n"
29520 msgstr ""
29521
29522 # type: textblock
29523 #. type: textblock
29524 #: ../fish/guestfish-actions.pod:3956
29525 msgid ""
29526 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
29527 "label on a filesystem."
29528 msgstr ""
29529
29530 # type: =head2
29531 #. type: =head2
29532 #: ../fish/guestfish-actions.pod:3959
29533 msgid "set-e2uuid"
29534 msgstr ""
29535
29536 # type: verbatim
29537 #. type: verbatim
29538 #: ../fish/guestfish-actions.pod:3961
29539 #, no-wrap
29540 msgid ""
29541 " set-e2uuid device uuid\n"
29542 "\n"
29543 msgstr ""
29544
29545 # type: textblock
29546 #. type: textblock
29547 #: ../fish/guestfish-actions.pod:3968
29548 msgid ""
29549 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
29550 "UUID of a filesystem."
29551 msgstr ""
29552
29553 # type: =head2
29554 #. type: =head2
29555 #: ../fish/guestfish-actions.pod:3971
29556 msgid "set-memsize"
29557 msgstr ""
29558
29559 # type: =head2
29560 #. type: =head2
29561 #: ../fish/guestfish-actions.pod:3973
29562 msgid "memsize"
29563 msgstr ""
29564
29565 # type: verbatim
29566 #. type: verbatim
29567 #: ../fish/guestfish-actions.pod:3975
29568 #, no-wrap
29569 msgid ""
29570 " set-memsize memsize\n"
29571 "\n"
29572 msgstr ""
29573
29574 # type: textblock
29575 #. type: textblock
29576 #: ../fish/guestfish-actions.pod:3977
29577 msgid ""
29578 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29579 "This only has any effect if called before L</launch>."
29580 msgstr ""
29581
29582 # type: =head2
29583 #. type: =head2
29584 #: ../fish/guestfish-actions.pod:3988
29585 msgid "set-network"
29586 msgstr ""
29587
29588 # type: =head2
29589 #. type: =head2
29590 #: ../fish/guestfish-actions.pod:3990
29591 msgid "network"
29592 msgstr ""
29593
29594 # type: verbatim
29595 #. type: verbatim
29596 #: ../fish/guestfish-actions.pod:3992
29597 #, no-wrap
29598 msgid ""
29599 " set-network true|false\n"
29600 "\n"
29601 msgstr ""
29602
29603 # type: textblock
29604 #. type: textblock
29605 #: ../fish/guestfish-actions.pod:4000
29606 msgid ""
29607 "You must call this before calling L</launch>, otherwise it has no effect."
29608 msgstr ""
29609
29610 # type: =head2
29611 #. type: =head2
29612 #: ../fish/guestfish-actions.pod:4003
29613 msgid "set-path"
29614 msgstr ""
29615
29616 # type: =head2
29617 #. type: =head2
29618 #: ../fish/guestfish-actions.pod:4005
29619 msgid "path"
29620 msgstr ""
29621
29622 # type: verbatim
29623 #. type: verbatim
29624 #: ../fish/guestfish-actions.pod:4007
29625 #, no-wrap
29626 msgid ""
29627 " set-path searchpath\n"
29628 "\n"
29629 msgstr ""
29630
29631 # type: =head2
29632 #. type: =head2
29633 #: ../fish/guestfish-actions.pod:4016
29634 msgid "set-qemu"
29635 msgstr ""
29636
29637 # type: =head2
29638 #. type: =head2
29639 #: ../fish/guestfish-actions.pod:4018
29640 msgid "qemu"
29641 msgstr ""
29642
29643 # type: verbatim
29644 #. type: verbatim
29645 #: ../fish/guestfish-actions.pod:4020
29646 #, no-wrap
29647 msgid ""
29648 " set-qemu qemu\n"
29649 "\n"
29650 msgstr ""
29651
29652 # type: =head2
29653 #. type: =head2
29654 #: ../fish/guestfish-actions.pod:4040
29655 msgid "set-recovery-proc"
29656 msgstr ""
29657
29658 # type: =head2
29659 #. type: =head2
29660 #: ../fish/guestfish-actions.pod:4042
29661 msgid "recovery-proc"
29662 msgstr ""
29663
29664 # type: verbatim
29665 #. type: verbatim
29666 #: ../fish/guestfish-actions.pod:4044
29667 #, no-wrap
29668 msgid ""
29669 " set-recovery-proc true|false\n"
29670 "\n"
29671 msgstr ""
29672
29673 # type: textblock
29674 #. type: textblock
29675 #: ../fish/guestfish-actions.pod:4046
29676 msgid ""
29677 "If this is called with the parameter C<false> then L</launch> does not "
29678 "create a recovery process.  The purpose of the recovery process is to stop "
29679 "runaway qemu processes in the case where the main program aborts abruptly."
29680 msgstr ""
29681
29682 # type: textblock
29683 #. type: textblock
29684 #: ../fish/guestfish-actions.pod:4051
29685 msgid ""
29686 "This only has any effect if called before L</launch>, and the default is "
29687 "true."
29688 msgstr ""
29689
29690 # type: =head2
29691 #. type: =head2
29692 #: ../fish/guestfish-actions.pod:4060
29693 msgid "set-selinux"
29694 msgstr ""
29695
29696 # type: =head2
29697 #. type: =head2
29698 #: ../fish/guestfish-actions.pod:4062
29699 msgid "selinux"
29700 msgstr ""
29701
29702 # type: verbatim
29703 #. type: verbatim
29704 #: ../fish/guestfish-actions.pod:4064
29705 #, no-wrap
29706 msgid ""
29707 " set-selinux true|false\n"
29708 "\n"
29709 msgstr ""
29710
29711 # type: =head2
29712 #. type: =head2
29713 #: ../fish/guestfish-actions.pod:4075
29714 msgid "set-trace"
29715 msgstr ""
29716
29717 # type: =head2
29718 #. type: =head2
29719 #: ../fish/guestfish-actions.pod:4077
29720 msgid "trace"
29721 msgstr ""
29722
29723 # type: verbatim
29724 #. type: verbatim
29725 #: ../fish/guestfish-actions.pod:4079
29726 #, no-wrap
29727 msgid ""
29728 " set-trace true|false\n"
29729 "\n"
29730 msgstr ""
29731
29732 #. type: textblock
29733 #: ../fish/guestfish-actions.pod:4091
29734 msgid ""
29735 "Trace messages are normally sent to C<stderr>, unless you register a "
29736 "callback to send them somewhere else (see L</set-event-callback>)."
29737 msgstr ""
29738
29739 # type: =head2
29740 #. type: =head2
29741 #: ../fish/guestfish-actions.pod:4095
29742 msgid "set-verbose"
29743 msgstr ""
29744
29745 # type: =head2
29746 #. type: =head2
29747 #: ../fish/guestfish-actions.pod:4097
29748 msgid "verbose"
29749 msgstr ""
29750
29751 # type: verbatim
29752 #. type: verbatim
29753 #: ../fish/guestfish-actions.pod:4099
29754 #, no-wrap
29755 msgid ""
29756 " set-verbose true|false\n"
29757 "\n"
29758 msgstr ""
29759
29760 #. type: textblock
29761 #: ../fish/guestfish-actions.pod:4106
29762 msgid ""
29763 "Verbose messages are normally sent to C<stderr>, unless you register a "
29764 "callback to send them somewhere else (see L</set-event-callback>)."
29765 msgstr ""
29766
29767 # type: =head2
29768 #. type: =head2
29769 #: ../fish/guestfish-actions.pod:4110
29770 msgid "setcon"
29771 msgstr ""
29772
29773 # type: verbatim
29774 #. type: verbatim
29775 #: ../fish/guestfish-actions.pod:4112
29776 #, no-wrap
29777 msgid ""
29778 " setcon context\n"
29779 "\n"
29780 msgstr ""
29781
29782 # type: =head2
29783 #. type: =head2
29784 #: ../fish/guestfish-actions.pod:4119
29785 msgid "setxattr"
29786 msgstr ""
29787
29788 # type: verbatim
29789 #. type: verbatim
29790 #: ../fish/guestfish-actions.pod:4121
29791 #, no-wrap
29792 msgid ""
29793 " setxattr xattr val vallen path\n"
29794 "\n"
29795 msgstr ""
29796
29797 # type: textblock
29798 #. type: textblock
29799 #: ../fish/guestfish-actions.pod:4127
29800 msgid "See also: L</lsetxattr>, L<attr(5)>."
29801 msgstr ""
29802
29803 # type: =head2
29804 #. type: =head2
29805 #: ../fish/guestfish-actions.pod:4129
29806 msgid "sfdisk"
29807 msgstr ""
29808
29809 # type: verbatim
29810 #. type: verbatim
29811 #: ../fish/guestfish-actions.pod:4131
29812 #, no-wrap
29813 msgid ""
29814 " sfdisk device cyls heads sectors 'lines ...'\n"
29815 "\n"
29816 msgstr ""
29817
29818 # type: textblock
29819 #. type: textblock
29820 #: ../fish/guestfish-actions.pod:4153
29821 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
29822 msgstr ""
29823
29824 # type: =head2
29825 #. type: =head2
29826 #: ../fish/guestfish-actions.pod:4159
29827 msgid "sfdiskM"
29828 msgstr ""
29829
29830 # type: verbatim
29831 #. type: verbatim
29832 #: ../fish/guestfish-actions.pod:4161
29833 #, no-wrap
29834 msgid ""
29835 " sfdiskM device 'lines ...'\n"
29836 "\n"
29837 msgstr ""
29838
29839 # type: textblock
29840 #. type: textblock
29841 #: ../fish/guestfish-actions.pod:4163
29842 msgid ""
29843 "This is a simplified interface to the L</sfdisk> command, where partition "
29844 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
29845 "you don't need to specify the cyls, heads and sectors parameters which were "
29846 "rarely if ever used anyway."
29847 msgstr ""
29848
29849 # type: textblock
29850 #. type: textblock
29851 #: ../fish/guestfish-actions.pod:4169
29852 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
29853 msgstr ""
29854
29855 # type: =head2
29856 #. type: =head2
29857 #: ../fish/guestfish-actions.pod:4175
29858 msgid "sfdisk-N"
29859 msgstr ""
29860
29861 # type: verbatim
29862 #. type: verbatim
29863 #: ../fish/guestfish-actions.pod:4177
29864 #, no-wrap
29865 msgid ""
29866 " sfdisk-N device partnum cyls heads sectors line\n"
29867 "\n"
29868 msgstr ""
29869
29870 # type: textblock
29871 #. type: textblock
29872 #: ../fish/guestfish-actions.pod:4182
29873 msgid ""
29874 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
29875 "cyls/heads/sectors parameters."
29876 msgstr ""
29877
29878 # type: textblock
29879 #. type: textblock
29880 #: ../fish/guestfish-actions.pod:4185
29881 msgid "See also: L</part-add>"
29882 msgstr ""
29883
29884 # type: =head2
29885 #. type: =head2
29886 #: ../fish/guestfish-actions.pod:4190
29887 msgid "sfdisk-disk-geometry"
29888 msgstr ""
29889
29890 # type: verbatim
29891 #. type: verbatim
29892 #: ../fish/guestfish-actions.pod:4192
29893 #, no-wrap
29894 msgid ""
29895 " sfdisk-disk-geometry device\n"
29896 "\n"
29897 msgstr ""
29898
29899 # type: textblock
29900 #. type: textblock
29901 #: ../fish/guestfish-actions.pod:4194
29902 msgid ""
29903 "This displays the disk geometry of C<device> read from the partition table.  "
29904 "Especially in the case where the underlying block device has been resized, "
29905 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
29906 "kernel-geometry>)."
29907 msgstr ""
29908
29909 # type: =head2
29910 #. type: =head2
29911 #: ../fish/guestfish-actions.pod:4202
29912 msgid "sfdisk-kernel-geometry"
29913 msgstr ""
29914
29915 # type: verbatim
29916 #. type: verbatim
29917 #: ../fish/guestfish-actions.pod:4204
29918 #, no-wrap
29919 msgid ""
29920 " sfdisk-kernel-geometry device\n"
29921 "\n"
29922 msgstr ""
29923
29924 # type: =head2
29925 #. type: =head2
29926 #: ../fish/guestfish-actions.pod:4211
29927 msgid "sfdisk-l"
29928 msgstr ""
29929
29930 # type: verbatim
29931 #. type: verbatim
29932 #: ../fish/guestfish-actions.pod:4213
29933 #, no-wrap
29934 msgid ""
29935 " sfdisk-l device\n"
29936 "\n"
29937 msgstr ""
29938
29939 # type: textblock
29940 #. type: textblock
29941 #: ../fish/guestfish-actions.pod:4219
29942 msgid "See also: L</part-list>"
29943 msgstr ""
29944
29945 # type: =head2
29946 #. type: =head2
29947 #: ../fish/guestfish-actions.pod:4221
29948 msgid "sh"
29949 msgstr ""
29950
29951 # type: verbatim
29952 #. type: verbatim
29953 #: ../fish/guestfish-actions.pod:4223
29954 #, no-wrap
29955 msgid ""
29956 " sh command\n"
29957 "\n"
29958 msgstr ""
29959
29960 # type: textblock
29961 #. type: textblock
29962 #: ../fish/guestfish-actions.pod:4228
29963 msgid "This is like L</command>, but passes the command to:"
29964 msgstr ""
29965
29966 # type: textblock
29967 #. type: textblock
29968 #: ../fish/guestfish-actions.pod:4236
29969 msgid "All the provisos about L</command> apply to this call."
29970 msgstr ""
29971
29972 # type: =head2
29973 #. type: =head2
29974 #: ../fish/guestfish-actions.pod:4238
29975 msgid "sh-lines"
29976 msgstr ""
29977
29978 # type: verbatim
29979 #. type: verbatim
29980 #: ../fish/guestfish-actions.pod:4240
29981 #, no-wrap
29982 msgid ""
29983 " sh-lines command\n"
29984 "\n"
29985 msgstr ""
29986
29987 # type: textblock
29988 #. type: textblock
29989 #: ../fish/guestfish-actions.pod:4242
29990 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29991 msgstr ""
29992
29993 # type: textblock
29994 #. type: textblock
29995 #: ../fish/guestfish-actions.pod:4245
29996 msgid "See also: L</command-lines>"
29997 msgstr ""
29998
29999 # type: =head2
30000 #. type: =head2
30001 #: ../fish/guestfish-actions.pod:4247
30002 msgid "sleep"
30003 msgstr ""
30004
30005 # type: verbatim
30006 #. type: verbatim
30007 #: ../fish/guestfish-actions.pod:4249
30008 #, no-wrap
30009 msgid ""
30010 " sleep secs\n"
30011 "\n"
30012 msgstr ""
30013
30014 # type: =head2
30015 #. type: =head2
30016 #: ../fish/guestfish-actions.pod:4253
30017 msgid "stat"
30018 msgstr ""
30019
30020 # type: verbatim
30021 #. type: verbatim
30022 #: ../fish/guestfish-actions.pod:4255
30023 #, no-wrap
30024 msgid ""
30025 " stat path\n"
30026 "\n"
30027 msgstr ""
30028
30029 # type: =head2
30030 #. type: =head2
30031 #: ../fish/guestfish-actions.pod:4261
30032 msgid "statvfs"
30033 msgstr ""
30034
30035 # type: verbatim
30036 #. type: verbatim
30037 #: ../fish/guestfish-actions.pod:4263
30038 #, no-wrap
30039 msgid ""
30040 " statvfs path\n"
30041 "\n"
30042 msgstr ""
30043
30044 # type: =head2
30045 #. type: =head2
30046 #: ../fish/guestfish-actions.pod:4271
30047 msgid "strings"
30048 msgstr ""
30049
30050 # type: verbatim
30051 #. type: verbatim
30052 #: ../fish/guestfish-actions.pod:4273
30053 #, no-wrap
30054 msgid ""
30055 " strings path\n"
30056 "\n"
30057 msgstr ""
30058
30059 # type: =head2
30060 #. type: =head2
30061 #: ../fish/guestfish-actions.pod:4281
30062 msgid "strings-e"
30063 msgstr ""
30064
30065 # type: verbatim
30066 #. type: verbatim
30067 #: ../fish/guestfish-actions.pod:4283
30068 #, no-wrap
30069 msgid ""
30070 " strings-e encoding path\n"
30071 "\n"
30072 msgstr ""
30073
30074 # type: textblock
30075 #. type: textblock
30076 #: ../fish/guestfish-actions.pod:4285
30077 msgid ""
30078 "This is like the L</strings> command, but allows you to specify the encoding "
30079 "of strings that are looked for in the source file C<path>."
30080 msgstr ""
30081
30082 # type: textblock
30083 #. type: textblock
30084 #: ../fish/guestfish-actions.pod:4295
30085 msgid ""
30086 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30087 "ISO-8859-X (this is what L</strings> uses)."
30088 msgstr ""
30089
30090 # type: =head2
30091 #. type: =head2
30092 #: ../fish/guestfish-actions.pod:4327
30093 msgid "swapoff-device"
30094 msgstr ""
30095
30096 # type: verbatim
30097 #. type: verbatim
30098 #: ../fish/guestfish-actions.pod:4329
30099 #, no-wrap
30100 msgid ""
30101 " swapoff-device device\n"
30102 "\n"
30103 msgstr ""
30104
30105 # type: textblock
30106 #. type: textblock
30107 #: ../fish/guestfish-actions.pod:4331
30108 msgid ""
30109 "This command disables the libguestfs appliance swap device or partition "
30110 "named C<device>.  See L</swapon-device>."
30111 msgstr ""
30112
30113 # type: =head2
30114 #. type: =head2
30115 #: ../fish/guestfish-actions.pod:4335
30116 msgid "swapoff-file"
30117 msgstr ""
30118
30119 # type: verbatim
30120 #. type: verbatim
30121 #: ../fish/guestfish-actions.pod:4337
30122 #, no-wrap
30123 msgid ""
30124 " swapoff-file file\n"
30125 "\n"
30126 msgstr ""
30127
30128 # type: =head2
30129 #. type: =head2
30130 #: ../fish/guestfish-actions.pod:4341
30131 msgid "swapoff-label"
30132 msgstr ""
30133
30134 # type: verbatim
30135 #. type: verbatim
30136 #: ../fish/guestfish-actions.pod:4343
30137 #, no-wrap
30138 msgid ""
30139 " swapoff-label label\n"
30140 "\n"
30141 msgstr ""
30142
30143 # type: =head2
30144 #. type: =head2
30145 #: ../fish/guestfish-actions.pod:4348
30146 msgid "swapoff-uuid"
30147 msgstr ""
30148
30149 # type: verbatim
30150 #. type: verbatim
30151 #: ../fish/guestfish-actions.pod:4350
30152 #, no-wrap
30153 msgid ""
30154 " swapoff-uuid uuid\n"
30155 "\n"
30156 msgstr ""
30157
30158 # type: =head2
30159 #. type: =head2
30160 #: ../fish/guestfish-actions.pod:4355
30161 msgid "swapon-device"
30162 msgstr ""
30163
30164 # type: verbatim
30165 #. type: verbatim
30166 #: ../fish/guestfish-actions.pod:4357
30167 #, no-wrap
30168 msgid ""
30169 " swapon-device device\n"
30170 "\n"
30171 msgstr ""
30172
30173 # type: textblock
30174 #. type: textblock
30175 #: ../fish/guestfish-actions.pod:4359
30176 msgid ""
30177 "This command enables the libguestfs appliance to use the swap device or "
30178 "partition named C<device>.  The increased memory is made available for all "
30179 "commands, for example those run using L</command> or L</sh>."
30180 msgstr ""
30181
30182 # type: =head2
30183 #. type: =head2
30184 #: ../fish/guestfish-actions.pod:4371
30185 msgid "swapon-file"
30186 msgstr ""
30187
30188 # type: verbatim
30189 #. type: verbatim
30190 #: ../fish/guestfish-actions.pod:4373
30191 #, no-wrap
30192 msgid ""
30193 " swapon-file file\n"
30194 "\n"
30195 msgstr ""
30196
30197 # type: textblock
30198 #. type: textblock
30199 #: ../fish/guestfish-actions.pod:4375
30200 msgid ""
30201 "This command enables swap to a file.  See L</swapon-device> for other notes."
30202 msgstr ""
30203
30204 # type: =head2
30205 #. type: =head2
30206 #: ../fish/guestfish-actions.pod:4378
30207 msgid "swapon-label"
30208 msgstr ""
30209
30210 # type: verbatim
30211 #. type: verbatim
30212 #: ../fish/guestfish-actions.pod:4380
30213 #, no-wrap
30214 msgid ""
30215 " swapon-label label\n"
30216 "\n"
30217 msgstr ""
30218
30219 # type: textblock
30220 #. type: textblock
30221 #: ../fish/guestfish-actions.pod:4382
30222 msgid ""
30223 "This command enables swap to a labeled swap partition.  See L</swapon-"
30224 "device> for other notes."
30225 msgstr ""
30226
30227 # type: =head2
30228 #. type: =head2
30229 #: ../fish/guestfish-actions.pod:4385
30230 msgid "swapon-uuid"
30231 msgstr ""
30232
30233 # type: verbatim
30234 #. type: verbatim
30235 #: ../fish/guestfish-actions.pod:4387
30236 #, no-wrap
30237 msgid ""
30238 " swapon-uuid uuid\n"
30239 "\n"
30240 msgstr ""
30241
30242 # type: textblock
30243 #. type: textblock
30244 #: ../fish/guestfish-actions.pod:4389
30245 msgid ""
30246 "This command enables swap to a swap partition with the given UUID.  See L</"
30247 "swapon-device> for other notes."
30248 msgstr ""
30249
30250 # type: =head2
30251 #. type: =head2
30252 #: ../fish/guestfish-actions.pod:4392
30253 msgid "sync"
30254 msgstr ""
30255
30256 # type: verbatim
30257 #. type: verbatim
30258 #: ../fish/guestfish-actions.pod:4394
30259 #, no-wrap
30260 msgid ""
30261 " sync\n"
30262 "\n"
30263 msgstr ""
30264
30265 # type: =head2
30266 #. type: =head2
30267 #: ../fish/guestfish-actions.pod:4402
30268 msgid "tail"
30269 msgstr ""
30270
30271 # type: verbatim
30272 #. type: verbatim
30273 #: ../fish/guestfish-actions.pod:4404
30274 #, no-wrap
30275 msgid ""
30276 " tail path\n"
30277 "\n"
30278 msgstr ""
30279
30280 # type: =head2
30281 #. type: =head2
30282 #: ../fish/guestfish-actions.pod:4412
30283 msgid "tail-n"
30284 msgstr ""
30285
30286 # type: verbatim
30287 #. type: verbatim
30288 #: ../fish/guestfish-actions.pod:4414
30289 #, no-wrap
30290 msgid ""
30291 " tail-n nrlines path\n"
30292 "\n"
30293 msgstr ""
30294
30295 # type: =head2
30296 #. type: =head2
30297 #: ../fish/guestfish-actions.pod:4427
30298 msgid "tar-in"
30299 msgstr ""
30300
30301 # type: verbatim
30302 #. type: verbatim
30303 #: ../fish/guestfish-actions.pod:4429
30304 #, no-wrap
30305 msgid ""
30306 " tar-in (tarfile|-) directory\n"
30307 "\n"
30308 msgstr ""
30309
30310 # type: textblock
30311 #. type: textblock
30312 #: ../fish/guestfish-actions.pod:4434
30313 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30314 msgstr ""
30315
30316 # type: =head2
30317 #. type: =head2
30318 #: ../fish/guestfish-actions.pod:4439
30319 msgid "tar-out"
30320 msgstr ""
30321
30322 # type: verbatim
30323 #. type: verbatim
30324 #: ../fish/guestfish-actions.pod:4441
30325 #, no-wrap
30326 msgid ""
30327 " tar-out directory (tarfile|-)\n"
30328 "\n"
30329 msgstr ""
30330
30331 # type: textblock
30332 #. type: textblock
30333 #: ../fish/guestfish-actions.pod:4446
30334 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30335 msgstr ""
30336
30337 # type: =head2
30338 #. type: =head2
30339 #: ../fish/guestfish-actions.pod:4451
30340 msgid "tgz-in"
30341 msgstr ""
30342
30343 # type: verbatim
30344 #. type: verbatim
30345 #: ../fish/guestfish-actions.pod:4453
30346 #, no-wrap
30347 msgid ""
30348 " tgz-in (tarball|-) directory\n"
30349 "\n"
30350 msgstr ""
30351
30352 # type: textblock
30353 #. type: textblock
30354 #: ../fish/guestfish-actions.pod:4458
30355 msgid "To upload an uncompressed tarball, use L</tar-in>."
30356 msgstr ""
30357
30358 # type: =head2
30359 #. type: =head2
30360 #: ../fish/guestfish-actions.pod:4462
30361 msgid "tgz-out"
30362 msgstr ""
30363
30364 # type: verbatim
30365 #. type: verbatim
30366 #: ../fish/guestfish-actions.pod:4464
30367 #, no-wrap
30368 msgid ""
30369 " tgz-out directory (tarball|-)\n"
30370 "\n"
30371 msgstr ""
30372
30373 # type: textblock
30374 #. type: textblock
30375 #: ../fish/guestfish-actions.pod:4469
30376 msgid "To download an uncompressed tarball, use L</tar-out>."
30377 msgstr ""
30378
30379 # type: =head2
30380 #. type: =head2
30381 #: ../fish/guestfish-actions.pod:4473
30382 msgid "touch"
30383 msgstr ""
30384
30385 # type: verbatim
30386 #. type: verbatim
30387 #: ../fish/guestfish-actions.pod:4475
30388 #, no-wrap
30389 msgid ""
30390 " touch path\n"
30391 "\n"
30392 msgstr ""
30393
30394 # type: =head2
30395 #. type: =head2
30396 #: ../fish/guestfish-actions.pod:4484
30397 msgid "truncate"
30398 msgstr ""
30399
30400 # type: verbatim
30401 #. type: verbatim
30402 #: ../fish/guestfish-actions.pod:4486
30403 #, no-wrap
30404 msgid ""
30405 " truncate path\n"
30406 "\n"
30407 msgstr ""
30408
30409 # type: =head2
30410 #. type: =head2
30411 #: ../fish/guestfish-actions.pod:4491
30412 msgid "truncate-size"
30413 msgstr ""
30414
30415 # type: verbatim
30416 #. type: verbatim
30417 #: ../fish/guestfish-actions.pod:4493
30418 #, no-wrap
30419 msgid ""
30420 " truncate-size path size\n"
30421 "\n"
30422 msgstr ""
30423
30424 # type: textblock
30425 #. type: textblock
30426 #: ../fish/guestfish-actions.pod:4498
30427 msgid ""
30428 "If the current file size is less than C<size> then the file is extended to "
30429 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30430 "blocks are not allocated for the file until you write to it).  To create a "
30431 "non-sparse file of zeroes, use L</fallocate64> instead."
30432 msgstr ""
30433
30434 # type: =head2
30435 #. type: =head2
30436 #: ../fish/guestfish-actions.pod:4504
30437 msgid "tune2fs-l"
30438 msgstr ""
30439
30440 # type: verbatim
30441 #. type: verbatim
30442 #: ../fish/guestfish-actions.pod:4506
30443 #, no-wrap
30444 msgid ""
30445 " tune2fs-l device\n"
30446 "\n"
30447 msgstr ""
30448
30449 # type: =head2
30450 #. type: =head2
30451 #: ../fish/guestfish-actions.pod:4516
30452 msgid "txz-in"
30453 msgstr ""
30454
30455 # type: verbatim
30456 #. type: verbatim
30457 #: ../fish/guestfish-actions.pod:4518
30458 #, no-wrap
30459 msgid ""
30460 " txz-in (tarball|-) directory\n"
30461 "\n"
30462 msgstr ""
30463
30464 # type: =head2
30465 #. type: =head2
30466 #: ../fish/guestfish-actions.pod:4525
30467 msgid "txz-out"
30468 msgstr ""
30469
30470 # type: verbatim
30471 #. type: verbatim
30472 #: ../fish/guestfish-actions.pod:4527
30473 #, no-wrap
30474 msgid ""
30475 " txz-out directory (tarball|-)\n"
30476 "\n"
30477 msgstr ""
30478
30479 # type: =head2
30480 #. type: =head2
30481 #: ../fish/guestfish-actions.pod:4534
30482 msgid "umask"
30483 msgstr ""
30484
30485 # type: verbatim
30486 #. type: verbatim
30487 #: ../fish/guestfish-actions.pod:4536
30488 #, no-wrap
30489 msgid ""
30490 " umask mask\n"
30491 "\n"
30492 msgstr ""
30493
30494 # type: textblock
30495 #. type: textblock
30496 #: ../fish/guestfish-actions.pod:4550
30497 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
30498 msgstr ""
30499
30500 # type: =head2
30501 #. type: =head2
30502 #: ../fish/guestfish-actions.pod:4555
30503 msgid "umount"
30504 msgstr ""
30505
30506 # type: =head2
30507 #. type: =head2
30508 #: ../fish/guestfish-actions.pod:4557
30509 msgid "unmount"
30510 msgstr ""
30511
30512 # type: verbatim
30513 #. type: verbatim
30514 #: ../fish/guestfish-actions.pod:4559
30515 #, no-wrap
30516 msgid ""
30517 " umount pathordevice\n"
30518 "\n"
30519 msgstr ""
30520
30521 # type: =head2
30522 #. type: =head2
30523 #: ../fish/guestfish-actions.pod:4565
30524 msgid "umount-all"
30525 msgstr ""
30526
30527 # type: =head2
30528 #. type: =head2
30529 #: ../fish/guestfish-actions.pod:4567
30530 msgid "unmount-all"
30531 msgstr ""
30532
30533 # type: verbatim
30534 #. type: verbatim
30535 #: ../fish/guestfish-actions.pod:4569
30536 #, no-wrap
30537 msgid ""
30538 " umount-all\n"
30539 "\n"
30540 msgstr ""
30541
30542 # type: =head2
30543 #. type: =head2
30544 #: ../fish/guestfish-actions.pod:4575
30545 msgid "upload"
30546 msgstr ""
30547
30548 # type: verbatim
30549 #. type: verbatim
30550 #: ../fish/guestfish-actions.pod:4577
30551 #, no-wrap
30552 msgid ""
30553 " upload (filename|-) remotefilename\n"
30554 "\n"
30555 msgstr ""
30556
30557 # type: textblock
30558 #. type: textblock
30559 #: ../fish/guestfish-actions.pod:4584
30560 msgid "See also L</download>."
30561 msgstr ""
30562
30563 # type: =head2
30564 #. type: =head2
30565 #: ../fish/guestfish-actions.pod:4588
30566 msgid "upload-offset"
30567 msgstr ""
30568
30569 # type: verbatim
30570 #. type: verbatim
30571 #: ../fish/guestfish-actions.pod:4590
30572 #, no-wrap
30573 msgid ""
30574 " upload-offset (filename|-) remotefilename offset\n"
30575 "\n"
30576 msgstr ""
30577
30578 # type: textblock
30579 #. type: textblock
30580 #: ../fish/guestfish-actions.pod:4602
30581 msgid ""
30582 "Note that there is no limit on the amount of data that can be uploaded with "
30583 "this call, unlike with L</pwrite>, and this call always writes the full "
30584 "amount unless an error occurs."
30585 msgstr ""
30586
30587 # type: textblock
30588 #. type: textblock
30589 #: ../fish/guestfish-actions.pod:4607
30590 msgid "See also L</upload>, L</pwrite>."
30591 msgstr ""
30592
30593 # type: =head2
30594 #. type: =head2
30595 #: ../fish/guestfish-actions.pod:4611
30596 msgid "utimens"
30597 msgstr ""
30598
30599 # type: verbatim
30600 #. type: verbatim
30601 #: ../fish/guestfish-actions.pod:4613
30602 #, no-wrap
30603 msgid ""
30604 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
30605 "\n"
30606 msgstr ""
30607
30608 # type: =head2
30609 #. type: =head2
30610 #: ../fish/guestfish-actions.pod:4632
30611 msgid "version"
30612 msgstr ""
30613
30614 # type: verbatim
30615 #. type: verbatim
30616 #: ../fish/guestfish-actions.pod:4634
30617 #, no-wrap
30618 msgid ""
30619 " version\n"
30620 "\n"
30621 msgstr ""
30622
30623 # type: textblock
30624 #. type: textblock
30625 #: ../fish/guestfish-actions.pod:4661
30626 msgid ""
30627 "I<Note:> Don't use this call to test for availability of features.  In "
30628 "enterprise distributions we backport features from later versions into "
30629 "earlier versions, making this an unreliable way to test for features.  Use "
30630 "L</available> instead."
30631 msgstr ""
30632
30633 # type: =head2
30634 #. type: =head2
30635 #: ../fish/guestfish-actions.pod:4667
30636 msgid "vfs-label"
30637 msgstr ""
30638
30639 # type: verbatim
30640 #. type: verbatim
30641 #: ../fish/guestfish-actions.pod:4669
30642 #, no-wrap
30643 msgid ""
30644 " vfs-label device\n"
30645 "\n"
30646 msgstr ""
30647
30648 # type: textblock
30649 #. type: textblock
30650 #: ../fish/guestfish-actions.pod:4676
30651 msgid "To find a filesystem from the label, use L</findfs-label>."
30652 msgstr ""
30653
30654 # type: =head2
30655 #. type: =head2
30656 #: ../fish/guestfish-actions.pod:4678
30657 msgid "vfs-type"
30658 msgstr ""
30659
30660 # type: verbatim
30661 #. type: verbatim
30662 #: ../fish/guestfish-actions.pod:4680
30663 #, no-wrap
30664 msgid ""
30665 " vfs-type device\n"
30666 "\n"
30667 msgstr ""
30668
30669 # type: =head2
30670 #. type: =head2
30671 #: ../fish/guestfish-actions.pod:4690
30672 msgid "vfs-uuid"
30673 msgstr ""
30674
30675 # type: verbatim
30676 #. type: verbatim
30677 #: ../fish/guestfish-actions.pod:4692
30678 #, no-wrap
30679 msgid ""
30680 " vfs-uuid device\n"
30681 "\n"
30682 msgstr ""
30683
30684 # type: textblock
30685 #. type: textblock
30686 #: ../fish/guestfish-actions.pod:4699
30687 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
30688 msgstr ""
30689
30690 # type: =head2
30691 #. type: =head2
30692 #: ../fish/guestfish-actions.pod:4701
30693 msgid "vg-activate"
30694 msgstr ""
30695
30696 # type: verbatim
30697 #. type: verbatim
30698 #: ../fish/guestfish-actions.pod:4703
30699 #, no-wrap
30700 msgid ""
30701 " vg-activate true|false 'volgroups ...'\n"
30702 "\n"
30703 msgstr ""
30704
30705 # type: =head2
30706 #. type: =head2
30707 #: ../fish/guestfish-actions.pod:4716
30708 msgid "vg-activate-all"
30709 msgstr ""
30710
30711 # type: verbatim
30712 #. type: verbatim
30713 #: ../fish/guestfish-actions.pod:4718
30714 #, no-wrap
30715 msgid ""
30716 " vg-activate-all true|false\n"
30717 "\n"
30718 msgstr ""
30719
30720 # type: =head2
30721 #. type: =head2
30722 #: ../fish/guestfish-actions.pod:4728
30723 msgid "vgcreate"
30724 msgstr ""
30725
30726 # type: verbatim
30727 #. type: verbatim
30728 #: ../fish/guestfish-actions.pod:4730
30729 #, no-wrap
30730 msgid ""
30731 " vgcreate volgroup 'physvols ...'\n"
30732 "\n"
30733 msgstr ""
30734
30735 # type: =head2
30736 #. type: =head2
30737 #: ../fish/guestfish-actions.pod:4735
30738 msgid "vglvuuids"
30739 msgstr ""
30740
30741 # type: verbatim
30742 #. type: verbatim
30743 #: ../fish/guestfish-actions.pod:4737
30744 #, no-wrap
30745 msgid ""
30746 " vglvuuids vgname\n"
30747 "\n"
30748 msgstr ""
30749
30750 # type: textblock
30751 #. type: textblock
30752 #: ../fish/guestfish-actions.pod:4742
30753 msgid ""
30754 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
30755 "logical volumes and volume groups."
30756 msgstr ""
30757
30758 # type: textblock
30759 #. type: textblock
30760 #: ../fish/guestfish-actions.pod:4745
30761 msgid "See also L</vgpvuuids>."
30762 msgstr ""
30763
30764 # type: =head2
30765 #. type: =head2
30766 #: ../fish/guestfish-actions.pod:4747
30767 msgid "vgpvuuids"
30768 msgstr ""
30769
30770 # type: verbatim
30771 #. type: verbatim
30772 #: ../fish/guestfish-actions.pod:4749
30773 #, no-wrap
30774 msgid ""
30775 " vgpvuuids vgname\n"
30776 "\n"
30777 msgstr ""
30778
30779 # type: textblock
30780 #. type: textblock
30781 #: ../fish/guestfish-actions.pod:4754
30782 msgid ""
30783 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
30784 "physical volumes and volume groups."
30785 msgstr ""
30786
30787 # type: textblock
30788 #. type: textblock
30789 #: ../fish/guestfish-actions.pod:4757
30790 msgid "See also L</vglvuuids>."
30791 msgstr ""
30792
30793 # type: =head2
30794 #. type: =head2
30795 #: ../fish/guestfish-actions.pod:4759
30796 msgid "vgremove"
30797 msgstr ""
30798
30799 # type: verbatim
30800 #. type: verbatim
30801 #: ../fish/guestfish-actions.pod:4761
30802 #, no-wrap
30803 msgid ""
30804 " vgremove vgname\n"
30805 "\n"
30806 msgstr ""
30807
30808 # type: =head2
30809 #. type: =head2
30810 #: ../fish/guestfish-actions.pod:4768
30811 msgid "vgrename"
30812 msgstr ""
30813
30814 # type: verbatim
30815 #. type: verbatim
30816 #: ../fish/guestfish-actions.pod:4770
30817 #, no-wrap
30818 msgid ""
30819 " vgrename volgroup newvolgroup\n"
30820 "\n"
30821 msgstr ""
30822
30823 # type: =head2
30824 #. type: =head2
30825 #: ../fish/guestfish-actions.pod:4774
30826 msgid "vgs"
30827 msgstr ""
30828
30829 # type: verbatim
30830 #. type: verbatim
30831 #: ../fish/guestfish-actions.pod:4776
30832 #, no-wrap
30833 msgid ""
30834 " vgs\n"
30835 "\n"
30836 msgstr ""
30837
30838 # type: textblock
30839 #. type: textblock
30840 #: ../fish/guestfish-actions.pod:4784
30841 msgid "See also L</vgs-full>."
30842 msgstr ""
30843
30844 # type: =head2
30845 #. type: =head2
30846 #: ../fish/guestfish-actions.pod:4786
30847 msgid "vgs-full"
30848 msgstr ""
30849
30850 # type: verbatim
30851 #. type: verbatim
30852 #: ../fish/guestfish-actions.pod:4788
30853 #, no-wrap
30854 msgid ""
30855 " vgs-full\n"
30856 "\n"
30857 msgstr ""
30858
30859 # type: =head2
30860 #. type: =head2
30861 #: ../fish/guestfish-actions.pod:4793
30862 msgid "vgscan"
30863 msgstr ""
30864
30865 # type: verbatim
30866 #. type: verbatim
30867 #: ../fish/guestfish-actions.pod:4795
30868 #, no-wrap
30869 msgid ""
30870 " vgscan\n"
30871 "\n"
30872 msgstr ""
30873
30874 # type: =head2
30875 #. type: =head2
30876 #: ../fish/guestfish-actions.pod:4800
30877 msgid "vguuid"
30878 msgstr ""
30879
30880 # type: verbatim
30881 #. type: verbatim
30882 #: ../fish/guestfish-actions.pod:4802
30883 #, no-wrap
30884 msgid ""
30885 " vguuid vgname\n"
30886 "\n"
30887 msgstr ""
30888
30889 # type: =head2
30890 #. type: =head2
30891 #: ../fish/guestfish-actions.pod:4806
30892 msgid "wc-c"
30893 msgstr ""
30894
30895 # type: verbatim
30896 #. type: verbatim
30897 #: ../fish/guestfish-actions.pod:4808
30898 #, no-wrap
30899 msgid ""
30900 " wc-c path\n"
30901 "\n"
30902 msgstr ""
30903
30904 # type: =head2
30905 #. type: =head2
30906 #: ../fish/guestfish-actions.pod:4813
30907 msgid "wc-l"
30908 msgstr ""
30909
30910 # type: verbatim
30911 #. type: verbatim
30912 #: ../fish/guestfish-actions.pod:4815
30913 #, no-wrap
30914 msgid ""
30915 " wc-l path\n"
30916 "\n"
30917 msgstr ""
30918
30919 # type: =head2
30920 #. type: =head2
30921 #: ../fish/guestfish-actions.pod:4820
30922 msgid "wc-w"
30923 msgstr ""
30924
30925 # type: verbatim
30926 #. type: verbatim
30927 #: ../fish/guestfish-actions.pod:4822
30928 #, no-wrap
30929 msgid ""
30930 " wc-w path\n"
30931 "\n"
30932 msgstr ""
30933
30934 # type: =head2
30935 #. type: =head2
30936 #: ../fish/guestfish-actions.pod:4827
30937 msgid "write"
30938 msgstr ""
30939
30940 # type: verbatim
30941 #. type: verbatim
30942 #: ../fish/guestfish-actions.pod:4829
30943 #, no-wrap
30944 msgid ""
30945 " write path content\n"
30946 "\n"
30947 msgstr ""
30948
30949 # type: =head2
30950 #. type: =head2
30951 #: ../fish/guestfish-actions.pod:4837
30952 msgid "write-file"
30953 msgstr ""
30954
30955 # type: verbatim
30956 #. type: verbatim
30957 #: ../fish/guestfish-actions.pod:4839
30958 #, no-wrap
30959 msgid ""
30960 " write-file path content size\n"
30961 "\n"
30962 msgstr ""
30963
30964 # type: =head2
30965 #. type: =head2
30966 #: ../fish/guestfish-actions.pod:4862
30967 msgid "zegrep"
30968 msgstr ""
30969
30970 # type: verbatim
30971 #. type: verbatim
30972 #: ../fish/guestfish-actions.pod:4864
30973 #, no-wrap
30974 msgid ""
30975 " zegrep regex path\n"
30976 "\n"
30977 msgstr ""
30978
30979 # type: =head2
30980 #. type: =head2
30981 #: ../fish/guestfish-actions.pod:4872
30982 msgid "zegrepi"
30983 msgstr ""
30984
30985 # type: verbatim
30986 #. type: verbatim
30987 #: ../fish/guestfish-actions.pod:4874
30988 #, no-wrap
30989 msgid ""
30990 " zegrepi regex path\n"
30991 "\n"
30992 msgstr ""
30993
30994 # type: =head2
30995 #. type: =head2
30996 #: ../fish/guestfish-actions.pod:4882
30997 msgid "zero"
30998 msgstr ""
30999
31000 # type: verbatim
31001 #. type: verbatim
31002 #: ../fish/guestfish-actions.pod:4884
31003 #, no-wrap
31004 msgid ""
31005 " zero device\n"
31006 "\n"
31007 msgstr ""
31008
31009 # type: textblock
31010 #. type: textblock
31011 #: ../fish/guestfish-actions.pod:4892
31012 msgid "See also: L</zero-device>, L</scrub-device>."
31013 msgstr ""
31014
31015 # type: =head2
31016 #. type: =head2
31017 #: ../fish/guestfish-actions.pod:4894
31018 msgid "zero-device"
31019 msgstr ""
31020
31021 # type: verbatim
31022 #. type: verbatim
31023 #: ../fish/guestfish-actions.pod:4896
31024 #, no-wrap
31025 msgid ""
31026 " zero-device device\n"
31027 "\n"
31028 msgstr ""
31029
31030 # type: textblock
31031 #. type: textblock
31032 #: ../fish/guestfish-actions.pod:4898
31033 msgid ""
31034 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
31035 "which just zeroes the first few blocks of a device."
31036 msgstr ""
31037
31038 # type: =head2
31039 #. type: =head2
31040 #: ../fish/guestfish-actions.pod:4905
31041 msgid "zerofree"
31042 msgstr ""
31043
31044 # type: verbatim
31045 #. type: verbatim
31046 #: ../fish/guestfish-actions.pod:4907
31047 #, no-wrap
31048 msgid ""
31049 " zerofree device\n"
31050 "\n"
31051 msgstr ""
31052
31053 # type: =head2
31054 #. type: =head2
31055 #: ../fish/guestfish-actions.pod:4920
31056 msgid "zfgrep"
31057 msgstr ""
31058
31059 # type: verbatim
31060 #. type: verbatim
31061 #: ../fish/guestfish-actions.pod:4922
31062 #, no-wrap
31063 msgid ""
31064 " zfgrep pattern path\n"
31065 "\n"
31066 msgstr ""
31067
31068 # type: =head2
31069 #. type: =head2
31070 #: ../fish/guestfish-actions.pod:4930
31071 msgid "zfgrepi"
31072 msgstr ""
31073
31074 # type: verbatim
31075 #. type: verbatim
31076 #: ../fish/guestfish-actions.pod:4932
31077 #, no-wrap
31078 msgid ""
31079 " zfgrepi pattern path\n"
31080 "\n"
31081 msgstr ""
31082
31083 # type: =head2
31084 #. type: =head2
31085 #: ../fish/guestfish-actions.pod:4940
31086 msgid "zfile"
31087 msgstr ""
31088
31089 # type: verbatim
31090 #. type: verbatim
31091 #: ../fish/guestfish-actions.pod:4942
31092 #, no-wrap
31093 msgid ""
31094 " zfile meth path\n"
31095 "\n"
31096 msgstr ""
31097
31098 # type: textblock
31099 #. type: textblock
31100 #: ../fish/guestfish-actions.pod:4949
31101 msgid ""
31102 "Since 1.0.63, use L</file> instead which can now process compressed files."
31103 msgstr ""
31104
31105 # type: =head2
31106 #. type: =head2
31107 #: ../fish/guestfish-actions.pod:4959
31108 msgid "zgrep"
31109 msgstr ""
31110
31111 # type: verbatim
31112 #. type: verbatim
31113 #: ../fish/guestfish-actions.pod:4961
31114 #, no-wrap
31115 msgid ""
31116 " zgrep regex path\n"
31117 "\n"
31118 msgstr ""
31119
31120 # type: =head2
31121 #. type: =head2
31122 #: ../fish/guestfish-actions.pod:4969
31123 msgid "zgrepi"
31124 msgstr ""
31125
31126 # type: verbatim
31127 #. type: verbatim
31128 #: ../fish/guestfish-actions.pod:4971
31129 #, no-wrap
31130 msgid ""
31131 " zgrepi regex path\n"
31132 "\n"
31133 msgstr ""
31134
31135 # type: =head2
31136 #. type: =head2
31137 #: ../fish/guestfish-commands.pod:1
31138 msgid "alloc"
31139 msgstr ""
31140
31141 # type: =head2
31142 #. type: =head2
31143 #: ../fish/guestfish-commands.pod:3
31144 msgid "allocate"
31145 msgstr ""
31146
31147 # type: verbatim
31148 #. type: verbatim
31149 #: ../fish/guestfish-commands.pod:5
31150 #, no-wrap
31151 msgid ""
31152 " alloc filename size\n"
31153 "\n"
31154 msgstr ""
31155
31156 # type: textblock
31157 #. type: textblock
31158 #: ../fish/guestfish-commands.pod:7
31159 msgid ""
31160 "This creates an empty (zeroed) file of the given size, and then adds so it "
31161 "can be further examined."
31162 msgstr ""
31163
31164 # type: textblock
31165 #. type: textblock
31166 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
31167 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
31168 msgstr ""
31169
31170 # type: textblock
31171 #. type: textblock
31172 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
31173 msgid "Size can be specified using standard suffixes, eg. C<1M>."
31174 msgstr ""
31175
31176 # type: textblock
31177 #. type: textblock
31178 #: ../fish/guestfish-commands.pod:14
31179 msgid ""
31180 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
31181 "image, see L</PREPARED DISK IMAGES>."
31182 msgstr ""
31183
31184 # type: =head2
31185 #. type: =head2
31186 #: ../fish/guestfish-commands.pod:17
31187 msgid "copy-in"
31188 msgstr ""
31189
31190 # type: verbatim
31191 #. type: verbatim
31192 #: ../fish/guestfish-commands.pod:19
31193 #, no-wrap
31194 msgid ""
31195 " copy-in local [local ...] /remotedir\n"
31196 "\n"
31197 msgstr ""
31198
31199 # type: textblock
31200 #. type: textblock
31201 #: ../fish/guestfish-commands.pod:21
31202 msgid ""
31203 "C<copy-in> copies local files or directories recursively into the disk "
31204 "image, placing them in the directory called C</remotedir> (which must "
31205 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
31206 "other commands as necessary."
31207 msgstr ""
31208
31209 # type: textblock
31210 #. type: textblock
31211 #: ../fish/guestfish-commands.pod:26
31212 msgid ""
31213 "Multiple local files and directories can be specified, but the last "
31214 "parameter must always be a remote directory.  Wildcards cannot be used."
31215 msgstr ""
31216
31217 # type: =head2
31218 #. type: =head2
31219 #: ../fish/guestfish-commands.pod:30
31220 msgid "copy-out"
31221 msgstr ""
31222
31223 # type: verbatim
31224 #. type: verbatim
31225 #: ../fish/guestfish-commands.pod:32
31226 #, no-wrap
31227 msgid ""
31228 " copy-out remote [remote ...] localdir\n"
31229 "\n"
31230 msgstr ""
31231
31232 # type: textblock
31233 #. type: textblock
31234 #: ../fish/guestfish-commands.pod:34
31235 msgid ""
31236 "C<copy-out> copies remote files or directories recursively out of the disk "
31237 "image, placing them on the host disk in a local directory called C<localdir> "
31238 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31239 "download>, L</tar-out> and other commands as necessary."
31240 msgstr ""
31241
31242 # type: textblock
31243 #. type: textblock
31244 #: ../fish/guestfish-commands.pod:40
31245 msgid ""
31246 "Multiple remote files and directories can be specified, but the last "
31247 "parameter must always be a local directory.  To download to the current "
31248 "directory, use C<.> as in:"
31249 msgstr ""
31250
31251 # type: verbatim
31252 #. type: verbatim
31253 #: ../fish/guestfish-commands.pod:44
31254 #, no-wrap
31255 msgid ""
31256 " copy-out /home .\n"
31257 "\n"
31258 msgstr ""
31259
31260 # type: textblock
31261 #. type: textblock
31262 #: ../fish/guestfish-commands.pod:46
31263 msgid ""
31264 "Wildcards cannot be used in the ordinary command, but you can use them with "
31265 "the help of L</glob> like this:"
31266 msgstr ""
31267
31268 # type: verbatim
31269 #. type: verbatim
31270 #: ../fish/guestfish-commands.pod:49
31271 #, no-wrap
31272 msgid ""
31273 " glob copy-out /home/* .\n"
31274 "\n"
31275 msgstr ""
31276
31277 # type: =head2
31278 #. type: =head2
31279 #: ../fish/guestfish-commands.pod:51
31280 msgid "echo"
31281 msgstr ""
31282
31283 # type: verbatim
31284 #. type: verbatim
31285 #: ../fish/guestfish-commands.pod:53
31286 #, no-wrap
31287 msgid ""
31288 " echo [params ...]\n"
31289 "\n"
31290 msgstr ""
31291
31292 # type: textblock
31293 #. type: textblock
31294 #: ../fish/guestfish-commands.pod:55
31295 msgid "This echos the parameters to the terminal."
31296 msgstr ""
31297
31298 # type: =head2
31299 #. type: =head2
31300 #: ../fish/guestfish-commands.pod:57
31301 msgid "edit"
31302 msgstr ""
31303
31304 # type: =head2
31305 #. type: =head2
31306 #: ../fish/guestfish-commands.pod:59
31307 msgid "vi"
31308 msgstr ""
31309
31310 # type: =head2
31311 #. type: =head2
31312 #: ../fish/guestfish-commands.pod:61
31313 msgid "emacs"
31314 msgstr ""
31315
31316 # type: verbatim
31317 #. type: verbatim
31318 #: ../fish/guestfish-commands.pod:63
31319 #, no-wrap
31320 msgid ""
31321 " edit filename\n"
31322 "\n"
31323 msgstr ""
31324
31325 # type: textblock
31326 #. type: textblock
31327 #: ../fish/guestfish-commands.pod:65
31328 msgid ""
31329 "This is used to edit a file.  It downloads the file, edits it locally using "
31330 "your editor, then uploads the result."
31331 msgstr ""
31332
31333 # type: textblock
31334 #. type: textblock
31335 #: ../fish/guestfish-commands.pod:68
31336 msgid ""
31337 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31338 "or C<emacs> you will get those corresponding editors."
31339 msgstr ""
31340
31341 # type: =head2
31342 #. type: =head2
31343 #: ../fish/guestfish-commands.pod:72
31344 msgid "glob"
31345 msgstr ""
31346
31347 # type: verbatim
31348 #. type: verbatim
31349 #: ../fish/guestfish-commands.pod:74
31350 #, no-wrap
31351 msgid ""
31352 " glob command args...\n"
31353 "\n"
31354 msgstr ""
31355
31356 # type: textblock
31357 #. type: textblock
31358 #: ../fish/guestfish-commands.pod:76
31359 msgid ""
31360 "Expand wildcards in any paths in the args list, and run C<command> "
31361 "repeatedly on each matching path."
31362 msgstr ""
31363
31364 # type: textblock
31365 #. type: textblock
31366 #: ../fish/guestfish-commands.pod:79
31367 msgid "See L</WILDCARDS AND GLOBBING>."
31368 msgstr ""
31369
31370 # type: =head2
31371 #. type: =head2
31372 #: ../fish/guestfish-commands.pod:81
31373 msgid "hexedit"
31374 msgstr ""
31375
31376 # type: verbatim
31377 #. type: verbatim
31378 #: ../fish/guestfish-commands.pod:83
31379 #, no-wrap
31380 msgid ""
31381 " hexedit <filename|device>\n"
31382 " hexedit <filename|device> <max>\n"
31383 " hexedit <filename|device> <start> <max>\n"
31384 "\n"
31385 msgstr ""
31386
31387 # type: textblock
31388 #. type: textblock
31389 #: ../fish/guestfish-commands.pod:87
31390 msgid ""
31391 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
31392 "device."
31393 msgstr ""
31394
31395 # type: textblock
31396 #. type: textblock
31397 #: ../fish/guestfish-commands.pod:90
31398 msgid ""
31399 "This command works by downloading potentially the whole file or device, "
31400 "editing it locally, then uploading it.  If the file or device is large, you "
31401 "have to specify which part you wish to edit by using C<max> and/or C<start> "
31402 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
31403 "usual modifiers allowed such as C<1M> (1 megabyte)."
31404 msgstr ""
31405
31406 # type: textblock
31407 #. type: textblock
31408 #: ../fish/guestfish-commands.pod:97
31409 msgid "For example to edit the first few sectors of a disk you might do:"
31410 msgstr ""
31411
31412 # type: verbatim
31413 #. type: verbatim
31414 #: ../fish/guestfish-commands.pod:100
31415 #, no-wrap
31416 msgid ""
31417 " hexedit /dev/sda 1M\n"
31418 "\n"
31419 msgstr ""
31420
31421 # type: textblock
31422 #. type: textblock
31423 #: ../fish/guestfish-commands.pod:102
31424 msgid ""
31425 "which would allow you to edit anywhere within the first megabyte of the disk."
31426 msgstr ""
31427
31428 # type: textblock
31429 #. type: textblock
31430 #: ../fish/guestfish-commands.pod:105
31431 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
31432 msgstr ""
31433
31434 # type: verbatim
31435 #. type: verbatim
31436 #: ../fish/guestfish-commands.pod:107
31437 #, no-wrap
31438 msgid ""
31439 " hexedit /dev/sda1 0x400 0x400\n"
31440 "\n"
31441 msgstr ""
31442
31443 # type: textblock
31444 #. type: textblock
31445 #: ../fish/guestfish-commands.pod:109
31446 msgid "(assuming the superblock is in the standard location)."
31447 msgstr ""
31448
31449 # type: textblock
31450 #. type: textblock
31451 #: ../fish/guestfish-commands.pod:111
31452 msgid ""
31453 "This command requires the external L<hexedit(1)> program.  You can specify "
31454 "another program to use by setting the C<HEXEDITOR> environment variable."
31455 msgstr ""
31456
31457 # type: textblock
31458 #. type: textblock
31459 #: ../fish/guestfish-commands.pod:115
31460 msgid "See also L</hexdump>."
31461 msgstr ""
31462
31463 # type: =head2
31464 #. type: =head2
31465 #: ../fish/guestfish-commands.pod:117
31466 msgid "lcd"
31467 msgstr ""
31468
31469 # type: verbatim
31470 #. type: verbatim
31471 #: ../fish/guestfish-commands.pod:119
31472 #, no-wrap
31473 msgid ""
31474 " lcd directory\n"
31475 "\n"
31476 msgstr ""
31477
31478 # type: textblock
31479 #. type: textblock
31480 #: ../fish/guestfish-commands.pod:121
31481 msgid ""
31482 "Change the local directory, ie. the current directory of guestfish itself."
31483 msgstr ""
31484
31485 # type: textblock
31486 #. type: textblock
31487 #: ../fish/guestfish-commands.pod:124
31488 msgid "Note that C<!cd> won't do what you might expect."
31489 msgstr ""
31490
31491 # type: =head2
31492 #. type: =head2
31493 #: ../fish/guestfish-commands.pod:126
31494 msgid "man"
31495 msgstr ""
31496
31497 # type: =head2
31498 #. type: =head2
31499 #: ../fish/guestfish-commands.pod:128
31500 msgid "manual"
31501 msgstr ""
31502
31503 # type: verbatim
31504 #. type: verbatim
31505 #: ../fish/guestfish-commands.pod:130
31506 #, no-wrap
31507 msgid ""
31508 "  man\n"
31509 "\n"
31510 msgstr ""
31511
31512 # type: textblock
31513 #. type: textblock
31514 #: ../fish/guestfish-commands.pod:132
31515 msgid "Opens the manual page for guestfish."
31516 msgstr ""
31517
31518 # type: =head2
31519 #. type: =head2
31520 #: ../fish/guestfish-commands.pod:134
31521 msgid "more"
31522 msgstr ""
31523
31524 # type: =head2
31525 #. type: =head2
31526 #: ../fish/guestfish-commands.pod:136
31527 msgid "less"
31528 msgstr ""
31529
31530 # type: verbatim
31531 #. type: verbatim
31532 #: ../fish/guestfish-commands.pod:138
31533 #, no-wrap
31534 msgid ""
31535 " more filename\n"
31536 "\n"
31537 msgstr ""
31538
31539 # type: verbatim
31540 #. type: verbatim
31541 #: ../fish/guestfish-commands.pod:140
31542 #, no-wrap
31543 msgid ""
31544 " less filename\n"
31545 "\n"
31546 msgstr ""
31547
31548 # type: textblock
31549 #. type: textblock
31550 #: ../fish/guestfish-commands.pod:142
31551 msgid "This is used to view a file."
31552 msgstr ""
31553
31554 # type: textblock
31555 #. type: textblock
31556 #: ../fish/guestfish-commands.pod:144
31557 msgid ""
31558 "The default viewer is C<$PAGER>.  However if you use the alternate command "
31559 "C<less> you will get the C<less> command specifically."
31560 msgstr ""
31561
31562 # type: =head2
31563 #. type: =head2
31564 #: ../fish/guestfish-commands.pod:147
31565 msgid "reopen"
31566 msgstr ""
31567
31568 # type: verbatim
31569 #. type: verbatim
31570 #: ../fish/guestfish-commands.pod:149
31571 #, no-wrap
31572 msgid ""
31573 "  reopen\n"
31574 "\n"
31575 msgstr ""
31576
31577 # type: textblock
31578 #. type: textblock
31579 #: ../fish/guestfish-commands.pod:151
31580 msgid ""
31581 "Close and reopen the libguestfs handle.  It is not necessary to use this "
31582 "normally, because the handle is closed properly when guestfish exits.  "
31583 "However this is occasionally useful for testing."
31584 msgstr ""
31585
31586 # type: =head2
31587 #. type: =head2
31588 #: ../fish/guestfish-commands.pod:155
31589 msgid "sparse"
31590 msgstr ""
31591
31592 # type: verbatim
31593 #. type: verbatim
31594 #: ../fish/guestfish-commands.pod:157
31595 #, no-wrap
31596 msgid ""
31597 " sparse filename size\n"
31598 "\n"
31599 msgstr ""
31600
31601 # type: textblock
31602 #. type: textblock
31603 #: ../fish/guestfish-commands.pod:159
31604 msgid ""
31605 "This creates an empty sparse file of the given size, and then adds so it can "
31606 "be further examined."
31607 msgstr ""
31608
31609 # type: textblock
31610 #. type: textblock
31611 #: ../fish/guestfish-commands.pod:162
31612 msgid ""
31613 "In all respects it works the same as the L</alloc> command, except that the "
31614 "image file is allocated sparsely, which means that disk blocks are not "
31615 "assigned to the file until they are needed.  Sparse disk files only use "
31616 "space when written to, but they are slower and there is a danger you could "
31617 "run out of real disk space during a write operation."
31618 msgstr ""
31619
31620 # type: =head2
31621 #. type: =head2
31622 #: ../fish/guestfish-commands.pod:172
31623 msgid "supported"
31624 msgstr ""
31625
31626 # type: verbatim
31627 #. type: verbatim
31628 #: ../fish/guestfish-commands.pod:174
31629 #, no-wrap
31630 msgid ""
31631 " supported\n"
31632 "\n"
31633 msgstr ""
31634
31635 # type: textblock
31636 #. type: textblock
31637 #: ../fish/guestfish-commands.pod:176
31638 msgid ""
31639 "This command returns a list of the optional groups known to the daemon, and "
31640 "indicates which ones are supported by this build of the libguestfs appliance."
31641 msgstr ""
31642
31643 # type: textblock
31644 #. type: textblock
31645 #: ../fish/guestfish-commands.pod:180
31646 msgid "See also L<guestfs(3)/AVAILABILITY>."
31647 msgstr ""
31648
31649 # type: =head2
31650 #. type: =head2
31651 #: ../fish/guestfish-commands.pod:182
31652 msgid "time"
31653 msgstr ""
31654
31655 # type: verbatim
31656 #. type: verbatim
31657 #: ../fish/guestfish-commands.pod:184
31658 #, no-wrap
31659 msgid ""
31660 " time command args...\n"
31661 "\n"
31662 msgstr ""
31663
31664 # type: textblock
31665 #. type: textblock
31666 #: ../fish/guestfish-commands.pod:186
31667 msgid ""
31668 "Run the command as usual, but print the elapsed time afterwards.  This can "
31669 "be useful for benchmarking operations."
31670 msgstr ""
31671
31672 # type: textblock
31673 #. type: textblock
31674 #: ../test-tool/libguestfs-test-tool.pod:5
31675 msgid "libguestfs-test-tool - End user tests for libguestfs"
31676 msgstr ""
31677
31678 # type: verbatim
31679 #. type: verbatim
31680 #: ../test-tool/libguestfs-test-tool.pod:9
31681 #, no-wrap
31682 msgid ""
31683 " libguestfs-test-tool [--options]\n"
31684 "\n"
31685 msgstr ""
31686
31687 # type: textblock
31688 #. type: textblock
31689 #: ../test-tool/libguestfs-test-tool.pod:13
31690 msgid ""
31691 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
31692 "and developers, to allow them to check basic libguestfs functionality is "
31693 "working.  This is needed because libguestfs occasionally breaks for reasons "
31694 "beyond our control: usually because of changes in the underlying qemu or "
31695 "kernel packages, or the host environment."
31696 msgstr ""
31697
31698 # type: textblock
31699 #. type: textblock
31700 #: ../test-tool/libguestfs-test-tool.pod:20
31701 msgid "If you suspect a problem in libguestfs, then just run:"
31702 msgstr ""
31703
31704 # type: verbatim
31705 #. type: verbatim
31706 #: ../test-tool/libguestfs-test-tool.pod:22
31707 #, no-wrap
31708 msgid ""
31709 " libguestfs-test-tool\n"
31710 "\n"
31711 msgstr ""
31712
31713 # type: textblock
31714 #. type: textblock
31715 #: ../test-tool/libguestfs-test-tool.pod:24
31716 msgid "It will print lots of diagnostic messages."
31717 msgstr ""
31718
31719 # type: textblock
31720 #. type: textblock
31721 #: ../test-tool/libguestfs-test-tool.pod:26
31722 msgid "If it runs to completion successfully, you will see this near the end:"
31723 msgstr ""
31724
31725 # type: verbatim
31726 #. type: verbatim
31727 #: ../test-tool/libguestfs-test-tool.pod:28
31728 #, no-wrap
31729 msgid ""
31730 " ===== TEST FINISHED OK =====\n"
31731 "\n"
31732 msgstr ""
31733
31734 # type: textblock
31735 #. type: textblock
31736 #: ../test-tool/libguestfs-test-tool.pod:30
31737 msgid "and the test tool will exit with code 0."
31738 msgstr ""
31739
31740 # type: textblock
31741 #. type: textblock
31742 #: ../test-tool/libguestfs-test-tool.pod:32
31743 msgid ""
31744 "If it fails (and/or exits with non-zero error code), please paste the "
31745 "B<complete, unedited> output of the test tool into a bug report.  More "
31746 "information about reporting bugs can be found on the L<http://libguestfs.org/"
31747 "> website."
31748 msgstr ""
31749
31750 # type: =item
31751 #. type: =item
31752 #: ../test-tool/libguestfs-test-tool.pod:41
31753 msgid "I<--help>"
31754 msgstr ""
31755
31756 # type: textblock
31757 #. type: textblock
31758 #: ../test-tool/libguestfs-test-tool.pod:43
31759 msgid "Display short usage information and exit."
31760 msgstr ""
31761
31762 # type: =item
31763 #. type: =item
31764 #: ../test-tool/libguestfs-test-tool.pod:45
31765 msgid "I<--qemu qemu_binary>"
31766 msgstr ""
31767
31768 # type: textblock
31769 #. type: textblock
31770 #: ../test-tool/libguestfs-test-tool.pod:47
31771 msgid ""
31772 "If you have downloaded another qemu binary, point this option at the full "
31773 "path of the binary to try it."
31774 msgstr ""
31775
31776 # type: =item
31777 #. type: =item
31778 #: ../test-tool/libguestfs-test-tool.pod:50
31779 msgid "I<--qemudir qemu_source_dir>"
31780 msgstr ""
31781
31782 # type: textblock
31783 #. type: textblock
31784 #: ../test-tool/libguestfs-test-tool.pod:52
31785 msgid ""
31786 "If you have compiled qemu from source, point this option at the source "
31787 "directory to try it."
31788 msgstr ""
31789
31790 # type: =item
31791 #. type: =item
31792 #: ../test-tool/libguestfs-test-tool.pod:55
31793 msgid "I<--timeout N>"
31794 msgstr ""
31795
31796 # type: textblock
31797 #. type: textblock
31798 #: ../test-tool/libguestfs-test-tool.pod:57
31799 msgid ""
31800 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
31801 "does not usually need to be adjusted unless your machine is very slow."
31802 msgstr ""
31803
31804 # type: =head1
31805 #. type: =head1
31806 #: ../test-tool/libguestfs-test-tool.pod:63
31807 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
31808 msgstr ""
31809
31810 # type: textblock
31811 #. type: textblock
31812 #: ../test-tool/libguestfs-test-tool.pod:65
31813 msgid ""
31814 "If you have compiled another version of qemu from source and would like to "
31815 "try that, then you can use the I<--qemudir> option to point to the qemu "
31816 "source directory."
31817 msgstr ""
31818
31819 # type: textblock
31820 #. type: textblock
31821 #: ../test-tool/libguestfs-test-tool.pod:69
31822 msgid ""
31823 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
31824 "option to point to the binary."
31825 msgstr ""
31826
31827 # type: textblock
31828 #. type: textblock
31829 #: ../test-tool/libguestfs-test-tool.pod:72
31830 msgid ""
31831 "When using an alternate qemu with libguestfs, usually you would need to "
31832 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
31833 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
31834 "use either of the I<--qemudir> or I<--qemu> options."
31835 msgstr ""
31836
31837 # type: textblock
31838 #. type: textblock
31839 #: ../test-tool/libguestfs-test-tool.pod:79
31840 msgid ""
31841 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
31842 "I<1> if there was an error."
31843 msgstr ""
31844
31845 # type: textblock
31846 #. type: textblock
31847 #: ../test-tool/libguestfs-test-tool.pod:84
31848 msgid ""
31849 "For the full list of environment variables which may affect libguestfs, "
31850 "please see the L<guestfs(3)> manual page."
31851 msgstr ""
31852
31853 # type: textblock
31854 #. type: textblock
31855 #: ../test-tool/libguestfs-test-tool.pod:89
31856 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
31857 msgstr ""
31858
31859 # type: textblock
31860 #. type: textblock
31861 #: ../fuse/guestmount.pod:5
31862 msgid ""
31863 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
31864 msgstr ""
31865
31866 # type: verbatim
31867 #. type: verbatim
31868 #: ../fuse/guestmount.pod:9
31869 #, no-wrap
31870 msgid ""
31871 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
31872 "\n"
31873 msgstr ""
31874
31875 # type: verbatim
31876 #. type: verbatim
31877 #: ../fuse/guestmount.pod:11
31878 #, no-wrap
31879 msgid ""
31880 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
31881 "\n"
31882 msgstr ""
31883
31884 # type: verbatim
31885 #. type: verbatim
31886 #: ../fuse/guestmount.pod:13
31887 #, no-wrap
31888 msgid ""
31889 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
31890 "\n"
31891 msgstr ""
31892
31893 # type: textblock
31894 #. type: textblock
31895 #: ../fuse/guestmount.pod:17
31896 msgid ""
31897 "You must I<not> use C<guestmount> in read-write mode on live virtual "
31898 "machines.  If you do this, you risk disk corruption in the VM."
31899 msgstr ""
31900
31901 # type: textblock
31902 #. type: textblock
31903 #: ../fuse/guestmount.pod:22
31904 msgid ""
31905 "The guestmount program can be used to mount virtual machine filesystems and "
31906 "other disk images on the host.  It uses libguestfs for access to the guest "
31907 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31908 "a mountable device."
31909 msgstr ""
31910
31911 # type: textblock
31912 #. type: textblock
31913 #: ../fuse/guestmount.pod:27
31914 msgid ""
31915 "Along with other options, you have to give at least one device (I<-a> "
31916 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31917 "option) or use the I<-i> inspection option.  How this works is better "
31918 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31919 "below."
31920 msgstr ""
31921
31922 # type: textblock
31923 #. type: textblock
31924 #: ../fuse/guestmount.pod:33
31925 msgid ""
31926 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31927 "by you, and the filesystem will not be visible to any other users unless you "
31928 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31929 "the filesystem, use the C<fusermount -u> command."
31930 msgstr ""
31931
31932 # type: textblock
31933 #. type: textblock
31934 #: ../fuse/guestmount.pod:41
31935 msgid ""
31936 "For a typical Windows guest which has its main filesystem on the first "
31937 "partition:"
31938 msgstr ""
31939
31940 # type: verbatim
31941 #. type: verbatim
31942 #: ../fuse/guestmount.pod:44
31943 #, no-wrap
31944 msgid ""
31945 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31946 "\n"
31947 msgstr ""
31948
31949 # type: textblock
31950 #. type: textblock
31951 #: ../fuse/guestmount.pod:46
31952 msgid ""
31953 "For a typical Linux guest which has a /boot filesystem on the first "
31954 "partition, and the root filesystem on a logical volume:"
31955 msgstr ""
31956
31957 # type: verbatim
31958 #. type: verbatim
31959 #: ../fuse/guestmount.pod:49
31960 #, no-wrap
31961 msgid ""
31962 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31963 "\n"
31964 msgstr ""
31965
31966 # type: textblock
31967 #. type: textblock
31968 #: ../fuse/guestmount.pod:51
31969 msgid "To get libguestfs to detect guest mountpoints for you:"
31970 msgstr ""
31971
31972 # type: verbatim
31973 #. type: verbatim
31974 #: ../fuse/guestmount.pod:53
31975 #, no-wrap
31976 msgid ""
31977 " guestmount -a guest.img -i --ro /mnt\n"
31978 "\n"
31979 msgstr ""
31980
31981 # type: textblock
31982 #. type: textblock
31983 #: ../fuse/guestmount.pod:55
31984 msgid "For a libvirt guest called \"Guest\" you could do:"
31985 msgstr ""
31986
31987 # type: verbatim
31988 #. type: verbatim
31989 #: ../fuse/guestmount.pod:57
31990 #, no-wrap
31991 msgid ""
31992 " guestmount -d Guest -i --ro /mnt\n"
31993 "\n"
31994 msgstr ""
31995
31996 # type: textblock
31997 #. type: textblock
31998 #: ../fuse/guestmount.pod:59
31999 msgid ""
32000 "If you don't know what filesystems are contained in a guest or disk image, "
32001 "use L<virt-filesystems(1)> first:"
32002 msgstr ""
32003
32004 # type: verbatim
32005 #. type: verbatim
32006 #: ../fuse/guestmount.pod:62
32007 #, no-wrap
32008 msgid ""
32009 " virt-filesystems MyGuest\n"
32010 "\n"
32011 msgstr ""
32012
32013 # type: textblock
32014 #. type: textblock
32015 #: ../fuse/guestmount.pod:64
32016 msgid ""
32017 "If you want to trace the libguestfs calls but without excessive debugging "
32018 "information, we recommend:"
32019 msgstr ""
32020
32021 # type: verbatim
32022 #. type: verbatim
32023 #: ../fuse/guestmount.pod:67
32024 #, no-wrap
32025 msgid ""
32026 " guestmount [...] --trace /mnt\n"
32027 "\n"
32028 msgstr ""
32029
32030 # type: textblock
32031 #. type: textblock
32032 #: ../fuse/guestmount.pod:69
32033 msgid "If you want to debug the program, we recommend:"
32034 msgstr ""
32035
32036 # type: verbatim
32037 #. type: verbatim
32038 #: ../fuse/guestmount.pod:71
32039 #, no-wrap
32040 msgid ""
32041 " guestmount [...] --trace --verbose /mnt\n"
32042 "\n"
32043 msgstr ""
32044
32045 # type: =item
32046 #. type: =item
32047 #: ../fuse/guestmount.pod:77
32048 msgid "B<-a image> | B<--add image>"
32049 msgstr ""
32050
32051 # type: textblock
32052 #. type: textblock
32053 #: ../fuse/guestmount.pod:79
32054 msgid "Add a block device or virtual machine image."
32055 msgstr ""
32056
32057 # type: =item
32058 #. type: =item
32059 #: ../fuse/guestmount.pod:84
32060 msgid "B<-c URI> | B<--connect URI>"
32061 msgstr ""
32062
32063 # type: =item
32064 #. type: =item
32065 #: ../fuse/guestmount.pod:90
32066 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
32067 msgstr ""
32068
32069 # type: =item
32070 #. type: =item
32071 #: ../fuse/guestmount.pod:96
32072 msgid "B<--dir-cache-timeout N>"
32073 msgstr ""
32074
32075 # type: textblock
32076 #. type: textblock
32077 #: ../fuse/guestmount.pod:98
32078 msgid ""
32079 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
32080 "seconds.  The readdir cache [actually, there are several semi-independent "
32081 "caches] is populated after a readdir(2) call with the stat and extended "
32082 "attributes of the files in the directory, in anticipation that they will be "
32083 "requested soon after."
32084 msgstr ""
32085
32086 # type: textblock
32087 #. type: textblock
32088 #: ../fuse/guestmount.pod:104
32089 msgid ""
32090 "There is also a different attribute cache implemented by FUSE (see the FUSE "
32091 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
32092 "requests, only cache existing ones."
32093 msgstr ""
32094
32095 # type: =item
32096 #. type: =item
32097 #: ../fuse/guestmount.pod:115
32098 msgid "B<--format=raw|qcow2|..> | B<--format>"
32099 msgstr ""
32100
32101 # type: textblock
32102 #. type: textblock
32103 #: ../fuse/guestmount.pod:122
32104 msgid ""
32105 "If you have untrusted raw-format guest disk images, you should use this "
32106 "option to specify the disk format.  This avoids a possible security problem "
32107 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
32108 "guestfs_add_drive_opts>."
32109 msgstr ""
32110
32111 # type: =item
32112 #. type: =item
32113 #: ../fuse/guestmount.pod:127
32114 msgid "B<--fuse-help>"
32115 msgstr ""
32116
32117 # type: textblock
32118 #. type: textblock
32119 #: ../fuse/guestmount.pod:129
32120 msgid "Display help on special FUSE options (see I<-o> below)."
32121 msgstr ""
32122
32123 # type: textblock
32124 #. type: textblock
32125 #: ../fuse/guestmount.pod:133
32126 msgid "Display brief help and exit."
32127 msgstr ""
32128
32129 # type: =item
32130 #. type: =item
32131 #: ../fuse/guestmount.pod:135
32132 msgid "B<-i> | B<--inspector>"
32133 msgstr ""
32134
32135 # type: textblock
32136 #. type: textblock
32137 #: ../fuse/guestmount.pod:155
32138 msgid ""
32139 "Mount the named partition or logical volume on the given mountpoint B<in the "
32140 "guest> (this has nothing to do with mountpoints in the host)."
32141 msgstr ""
32142
32143 # type: textblock
32144 #. type: textblock
32145 #: ../fuse/guestmount.pod:158
32146 msgid ""
32147 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
32148 "something on C</>."
32149 msgstr ""
32150
32151 # type: =item
32152 #. type: =item
32153 #: ../fuse/guestmount.pod:171
32154 msgid "B<-n> | B<--no-sync>"
32155 msgstr ""
32156
32157 # type: textblock
32158 #. type: textblock
32159 #: ../fuse/guestmount.pod:173
32160 msgid ""
32161 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
32162 "unmounted.  If you specify this option, then we don't attempt to sync the "
32163 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
32164 msgstr ""
32165
32166 # type: =item
32167 #. type: =item
32168 #: ../fuse/guestmount.pod:178
32169 msgid "B<-o option> | B<--option option>"
32170 msgstr ""
32171
32172 # type: textblock
32173 #. type: textblock
32174 #: ../fuse/guestmount.pod:180
32175 msgid "Pass extra options to FUSE."
32176 msgstr ""
32177
32178 # type: textblock
32179 #. type: textblock
32180 #: ../fuse/guestmount.pod:182
32181 msgid ""
32182 "To get a list of all the extra options supported by FUSE, use the command "
32183 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32184 "of them are a good idea."
32185 msgstr ""
32186
32187 # type: verbatim
32188 #. type: verbatim
32189 #: ../fuse/guestmount.pod:186
32190 #, no-wrap
32191 msgid ""
32192 " guestmount --fuse-help\n"
32193 "\n"
32194 msgstr ""
32195
32196 # type: textblock
32197 #. type: textblock
32198 #: ../fuse/guestmount.pod:188
32199 msgid "Some potentially useful FUSE options:"
32200 msgstr ""
32201
32202 # type: =item
32203 #. type: =item
32204 #: ../fuse/guestmount.pod:192
32205 msgid "B<-o allow_other>"
32206 msgstr ""
32207
32208 # type: textblock
32209 #. type: textblock
32210 #: ../fuse/guestmount.pod:194
32211 msgid "Allow other users to see the filesystem."
32212 msgstr ""
32213
32214 # type: =item
32215 #. type: =item
32216 #: ../fuse/guestmount.pod:196
32217 msgid "B<-o attr_timeout=N>"
32218 msgstr ""
32219
32220 # type: textblock
32221 #. type: textblock
32222 #: ../fuse/guestmount.pod:198
32223 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32224 msgstr ""
32225
32226 # type: =item
32227 #. type: =item
32228 #: ../fuse/guestmount.pod:200
32229 msgid "B<-o kernel_cache>"
32230 msgstr ""
32231
32232 # type: textblock
32233 #. type: textblock
32234 #: ../fuse/guestmount.pod:202
32235 msgid ""
32236 "Allow the kernel to cache files (reduces the number of reads that have to go "
32237 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32238 "afford the extra memory usage."
32239 msgstr ""
32240
32241 # type: =item
32242 #. type: =item
32243 #: ../fuse/guestmount.pod:206
32244 msgid "B<-o uid=N> B<-o gid=N>"
32245 msgstr ""
32246
32247 # type: textblock
32248 #. type: textblock
32249 #: ../fuse/guestmount.pod:208
32250 msgid ""
32251 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32252 "the chosen values."
32253 msgstr ""
32254
32255 # type: =item
32256 #. type: =item
32257 #: ../fuse/guestmount.pod:213
32258 msgid "B<-r> | B<--ro>"
32259 msgstr ""
32260
32261 # type: textblock
32262 #. type: textblock
32263 #: ../fuse/guestmount.pod:215
32264 msgid ""
32265 "Add devices and mount everything read-only.  Also disallow writes and make "
32266 "the disk appear read-only to FUSE."
32267 msgstr ""
32268
32269 # type: textblock
32270 #. type: textblock
32271 #: ../fuse/guestmount.pod:218
32272 msgid ""
32273 "This is highly recommended if you are not going to edit the guest disk.  If "
32274 "the guest is running and this option is I<not> supplied, then there is a "
32275 "strong risk of disk corruption in the guest.  We try to prevent this from "
32276 "happening, but it is not always possible."
32277 msgstr ""
32278
32279 # type: textblock
32280 #. type: textblock
32281 #: ../fuse/guestmount.pod:223
32282 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32283 msgstr ""
32284
32285 # type: textblock
32286 #. type: textblock
32287 #: ../fuse/guestmount.pod:227
32288 msgid "Enable SELinux support for the guest."
32289 msgstr ""
32290
32291 # type: =item
32292 #. type: =item
32293 #: ../fuse/guestmount.pod:229
32294 msgid "B<-v> | B<--verbose>"
32295 msgstr ""
32296
32297 # type: textblock
32298 #. type: textblock
32299 #: ../fuse/guestmount.pod:231
32300 msgid "Enable verbose messages from underlying libguestfs."
32301 msgstr ""
32302
32303 # type: =item
32304 #. type: =item
32305 #: ../fuse/guestmount.pod:233
32306 msgid "B<-V> | B<--version>"
32307 msgstr ""
32308
32309 # type: textblock
32310 #. type: textblock
32311 #: ../fuse/guestmount.pod:235
32312 msgid "Display the program version and exit."
32313 msgstr ""
32314
32315 # type: =item
32316 #. type: =item
32317 #: ../fuse/guestmount.pod:237
32318 msgid "B<-w> | B<--rw>"
32319 msgstr ""
32320
32321 #. type: textblock
32322 #: ../fuse/guestmount.pod:242 ../fuse/guestmount.pod:263
32323 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32324 msgstr ""
32325
32326 # type: =item
32327 #. type: =item
32328 #: ../fuse/guestmount.pod:244
32329 msgid "B<-x> | B<--trace>"
32330 msgstr ""
32331
32332 # type: textblock
32333 #. type: textblock
32334 #: ../fuse/guestmount.pod:246
32335 msgid "Trace libguestfs calls and entry into each FUSE function."
32336 msgstr ""
32337
32338 # type: textblock
32339 #. type: textblock
32340 #: ../fuse/guestmount.pod:248
32341 msgid "This also stops the daemon from forking into the background."
32342 msgstr ""
32343
32344 # type: textblock
32345 #. type: textblock
32346 #: ../fuse/guestmount.pod:269
32347 msgid ""
32348 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32349 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
32350 "net/>."
32351 msgstr ""
32352
32353 # type: textblock
32354 #. type: textblock
32355 #: ../fuse/guestmount.pod:284
32356 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
32357 msgstr ""
32358
32359 # type: textblock
32360 #. type: textblock
32361 #: ../tools/virt-edit.pl:34
32362 msgid "virt-edit - Edit a file in a virtual machine"
32363 msgstr ""
32364
32365 # type: verbatim
32366 #. type: verbatim
32367 #: ../tools/virt-edit.pl:38
32368 #, no-wrap
32369 msgid ""
32370 " virt-edit [--options] domname file\n"
32371 "\n"
32372 msgstr ""
32373
32374 # type: verbatim
32375 #. type: verbatim
32376 #: ../tools/virt-edit.pl:40
32377 #, no-wrap
32378 msgid ""
32379 " virt-edit [--options] disk.img [disk.img ...] file\n"
32380 "\n"
32381 msgstr ""
32382
32383 # type: verbatim
32384 #. type: verbatim
32385 #: ../tools/virt-edit.pl:42
32386 #, no-wrap
32387 msgid ""
32388 " virt-edit [domname|disk.img] file -e 'expr'\n"
32389 "\n"
32390 msgstr ""
32391
32392 # type: textblock
32393 #. type: textblock
32394 #: ../tools/virt-edit.pl:46
32395 msgid ""
32396 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
32397 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
32398 "doing this, but doesn't catch all cases."
32399 msgstr ""
32400
32401 # type: textblock
32402 #. type: textblock
32403 #: ../tools/virt-edit.pl:52
32404 msgid ""
32405 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
32406 "the named virtual machine (or disk image)."
32407 msgstr ""
32408
32409 #. type: textblock
32410 #: ../tools/virt-edit.pl:55
32411 msgid "If you want to just view a file, use L<virt-cat(1)>."
32412 msgstr ""
32413
32414 #. type: textblock
32415 #: ../tools/virt-edit.pl:57
32416 msgid ""
32417 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
32418 "USING GUESTFISH> below)."
32419 msgstr ""
32420
32421 #. type: textblock
32422 #: ../tools/virt-edit.pl:60
32423 msgid ""
32424 "C<virt-edit> cannot be used to create a new file, nor to edit multiple "
32425 "files.  L<guestfish(1)> can do that and much more."
32426 msgstr ""
32427
32428 # type: textblock
32429 #. type: textblock
32430 #: ../tools/virt-edit.pl:65
32431 msgid "Edit the named files interactively:"
32432 msgstr ""
32433
32434 # type: verbatim
32435 #. type: verbatim
32436 #: ../tools/virt-edit.pl:67
32437 #, no-wrap
32438 msgid ""
32439 " virt-edit mydomain /boot/grub/grub.conf\n"
32440 "\n"
32441 msgstr ""
32442
32443 # type: verbatim
32444 #. type: verbatim
32445 #: ../tools/virt-edit.pl:69
32446 #, no-wrap
32447 msgid ""
32448 " virt-edit mydomain /etc/passwd\n"
32449 "\n"
32450 msgstr ""
32451
32452 #. type: textblock
32453 #: ../tools/virt-edit.pl:71
32454 msgid "For Windows guests, some Windows paths are understood:"
32455 msgstr ""
32456
32457 #. type: verbatim
32458 #: ../tools/virt-edit.pl:73
32459 #, no-wrap
32460 msgid ""
32461 " virt-edit mywindomain 'c:\\autoexec.bat'\n"
32462 "\n"
32463 msgstr ""
32464
32465 # type: textblock
32466 #. type: textblock
32467 #: ../tools/virt-edit.pl:75
32468 msgid ""
32469 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
32470 "below).  To change the init default level to 5:"
32471 msgstr ""
32472
32473 # type: verbatim
32474 #. type: verbatim
32475 #: ../tools/virt-edit.pl:79
32476 #, no-wrap
32477 msgid ""
32478 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
32479 "\n"
32480 msgstr ""
32481
32482 # type: textblock
32483 #. type: textblock
32484 #: ../tools/virt-edit.pl:91 ../tools/virt-win-reg.pl:106
32485 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
32486 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
32487 msgid "Display brief help."
32488 msgstr ""
32489
32490 # type: textblock
32491 #. type: textblock
32492 #: ../tools/virt-edit.pl:99 ../tools/virt-win-reg.pl:114
32493 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-tar.pl:121
32494 #: ../tools/virt-make-fs.pl:171 ../tools/virt-list-partitions.pl:72
32495 msgid "Display version number and exit."
32496 msgstr ""
32497
32498 # type: =item
32499 #. type: =item
32500 #: ../tools/virt-edit.pl:105
32501 msgid "B<--backup extension> | B<-b extension>"
32502 msgstr ""
32503
32504 # type: textblock
32505 #. type: textblock
32506 #: ../tools/virt-edit.pl:107
32507 msgid ""
32508 "Create a backup of the original file I<in the guest disk image>.  The backup "
32509 "has the original filename with C<extension> added."
32510 msgstr ""
32511
32512 # type: textblock
32513 #. type: textblock
32514 #: ../tools/virt-edit.pl:110
32515 msgid ""
32516 "Usually the first character of C<extension> would be a dot C<.> so you would "
32517 "write:"
32518 msgstr ""
32519
32520 # type: verbatim
32521 #. type: verbatim
32522 #: ../tools/virt-edit.pl:113
32523 #, no-wrap
32524 msgid ""
32525 " virt-edit -b .orig [etc]\n"
32526 "\n"
32527 msgstr ""
32528
32529 # type: textblock
32530 #. type: textblock
32531 #: ../tools/virt-edit.pl:115
32532 msgid "By default, no backup file is made."
32533 msgstr ""
32534
32535 # type: =item
32536 #. type: =item
32537 #: ../tools/virt-edit.pl:121 ../tools/virt-win-reg.pl:128
32538 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
32539 #: ../tools/virt-list-partitions.pl:78
32540 msgid "B<--connect URI> | B<-c URI>"
32541 msgstr ""
32542
32543 # type: textblock
32544 #. type: textblock
32545 #: ../tools/virt-edit.pl:123 ../tools/virt-win-reg.pl:130
32546 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
32547 #: ../tools/virt-list-partitions.pl:80
32548 msgid ""
32549 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
32550 "to the default libvirt hypervisor."
32551 msgstr ""
32552
32553 # type: textblock
32554 #. type: textblock
32555 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:133
32556 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
32557 #: ../tools/virt-list-partitions.pl:83
32558 msgid ""
32559 "If you specify guest block devices directly, then libvirt is not used at all."
32560 msgstr ""
32561
32562 # type: =item
32563 #. type: =item
32564 #: ../tools/virt-edit.pl:133 ../tools/virt-win-reg.pl:140
32565 #: ../tools/virt-list-filesystems.pl:89 ../tools/virt-tar.pl:139
32566 #: ../tools/virt-list-partitions.pl:90
32567 msgid "B<--format> raw"
32568 msgstr ""
32569
32570 # type: textblock
32571 #. type: textblock
32572 #: ../tools/virt-edit.pl:135 ../tools/virt-win-reg.pl:142
32573 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
32574 #: ../tools/virt-list-partitions.pl:92
32575 msgid ""
32576 "Specify the format of disk images given on the command line.  If this is "
32577 "omitted then the format is autodetected from the content of the disk image."
32578 msgstr ""
32579
32580 # type: textblock
32581 #. type: textblock
32582 #: ../tools/virt-edit.pl:139 ../tools/virt-win-reg.pl:146
32583 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
32584 #: ../tools/virt-list-partitions.pl:96
32585 msgid ""
32586 "If disk images are requested from libvirt, then this program asks libvirt "
32587 "for this information.  In this case, the value of the format parameter is "
32588 "ignored."
32589 msgstr ""
32590
32591 # type: textblock
32592 #. type: textblock
32593 #: ../tools/virt-edit.pl:143 ../tools/virt-win-reg.pl:150
32594 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
32595 #: ../tools/virt-list-partitions.pl:100
32596 msgid ""
32597 "If working with untrusted raw-format guest disk images, you should ensure "
32598 "the format is always specified."
32599 msgstr ""
32600
32601 # type: =item
32602 #. type: =item
32603 #: ../tools/virt-edit.pl:150
32604 msgid "B<--expr EXPR> | B<-e EXPR>"
32605 msgstr ""
32606
32607 # type: textblock
32608 #. type: textblock
32609 #: ../tools/virt-edit.pl:152
32610 msgid ""
32611 "Instead of launching the external editor, non-interactively apply the Perl "
32612 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
32613 "EDITING> below."
32614 msgstr ""
32615
32616 # type: textblock
32617 #. type: textblock
32618 #: ../tools/virt-edit.pl:156
32619 msgid ""
32620 "Be careful to properly quote the expression to prevent it from being altered "
32621 "by the shell."
32622 msgstr ""
32623
32624 # type: =head1
32625 #. type: =head1
32626 #: ../tools/virt-edit.pl:280
32627 msgid "NON-INTERACTIVE EDITING"
32628 msgstr ""
32629
32630 # type: textblock
32631 #. type: textblock
32632 #: ../tools/virt-edit.pl:282
32633 msgid ""
32634 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
32635 "administrator can interactively edit the file."
32636 msgstr ""
32637
32638 # type: textblock
32639 #. type: textblock
32640 #: ../tools/virt-edit.pl:285
32641 msgid ""
32642 "There are two ways also to use C<virt-edit> from scripts in order to make "
32643 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
32644 "like this, it's less error-prone to write scripts directly using the "
32645 "libguestfs API and Augeas for configuration file editing.)"
32646 msgstr ""
32647
32648 # type: textblock
32649 #. type: textblock
32650 #: ../tools/virt-edit.pl:291
32651 msgid ""
32652 "The first method is to temporarily set C<$EDITOR> to any script or program "
32653 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
32654 "update C<tmpfile> in place however it likes."
32655 msgstr ""
32656
32657 # type: textblock
32658 #. type: textblock
32659 #: ../tools/virt-edit.pl:295
32660 msgid ""
32661 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
32662 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
32663 "instances of C<foo> with C<bar> in a file:"
32664 msgstr ""
32665
32666 # type: verbatim
32667 #. type: verbatim
32668 #: ../tools/virt-edit.pl:299
32669 #, no-wrap
32670 msgid ""
32671 " virt-edit domname filename -e 's/foo/bar/'\n"
32672 "\n"
32673 msgstr ""
32674
32675 # type: textblock
32676 #. type: textblock
32677 #: ../tools/virt-edit.pl:301
32678 msgid ""
32679 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
32680 "For example to delete root's password you could do:"
32681 msgstr ""
32682
32683 # type: verbatim
32684 #. type: verbatim
32685 #: ../tools/virt-edit.pl:304
32686 #, no-wrap
32687 msgid ""
32688 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
32689 "\n"
32690 msgstr ""
32691
32692 # type: textblock
32693 #. type: textblock
32694 #: ../tools/virt-edit.pl:306
32695 msgid ""
32696 "What really happens is that the snippet is evaluated as a Perl expression "
32697 "for each line of the file.  The line, including the final C<\\n>, is passed "
32698 "in C<$_> and the expression should update C<$_> or leave it unchanged."
32699 msgstr ""
32700
32701 # type: textblock
32702 #. type: textblock
32703 #: ../tools/virt-edit.pl:311
32704 msgid ""
32705 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
32706 "C<apache> user account from the password file you can do:"
32707 msgstr ""
32708
32709 # type: verbatim
32710 #. type: verbatim
32711 #: ../tools/virt-edit.pl:314
32712 #, no-wrap
32713 msgid ""
32714 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
32715 "\n"
32716 msgstr ""
32717
32718 # type: textblock
32719 #. type: textblock
32720 #: ../tools/virt-edit.pl:316
32721 msgid ""
32722 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
32723 "the end of the file is rather difficult this way since there is no concept "
32724 "of \"last line of the file\" - your expression just doesn't get called "
32725 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
32726 "want to do this."
32727 msgstr ""
32728
32729 # type: textblock
32730 #. type: textblock
32731 #: ../tools/virt-edit.pl:322
32732 msgid ""
32733 "The variable C<$lineno> contains the current line number.  As is "
32734 "traditional, the first line in the file is number C<1>."
32735 msgstr ""
32736
32737 # type: textblock
32738 #. type: textblock
32739 #: ../tools/virt-edit.pl:325
32740 msgid ""
32741 "The return value from the expression is ignored, but the expression may call "
32742 "C<die> in order to abort the whole program, leaving the original file "
32743 "untouched."
32744 msgstr ""
32745
32746 # type: textblock
32747 #. type: textblock
32748 #: ../tools/virt-edit.pl:329
32749 msgid ""
32750 "Remember when matching the end of a line that C<$_> may contain the final C<"
32751 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
32752 "newline then neither of these.  Thus to match or substitute some text at the "
32753 "end of a line, use this regular expression:"
32754 msgstr ""
32755
32756 # type: verbatim
32757 #. type: verbatim
32758 #: ../tools/virt-edit.pl:334
32759 #, no-wrap
32760 msgid ""
32761 " /some text(\\r?\\n)?$/\n"
32762 "\n"
32763 msgstr ""
32764
32765 # type: textblock
32766 #. type: textblock
32767 #: ../tools/virt-edit.pl:336
32768 msgid ""
32769 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
32770 "$_> itself (since that would remove all newlines from the file):"
32771 msgstr ""
32772
32773 # type: verbatim
32774 #. type: verbatim
32775 #: ../tools/virt-edit.pl:340
32776 #, no-wrap
32777 msgid ""
32778 " my $m = $_; chomp $m; $m =~ /some text$/\n"
32779 "\n"
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../tools/virt-edit.pl:344
32784 msgid ""
32785 "C<virt-edit> has a limited ability to understand Windows drive letters and "
32786 "paths (eg. C<E:\\foo\\bar.txt>)."
32787 msgstr ""
32788
32789 #. type: textblock
32790 #: ../tools/virt-edit.pl:347
32791 msgid "If and only if the guest is running Windows then:"
32792 msgstr ""
32793
32794 #. type: textblock
32795 #: ../tools/virt-edit.pl:353
32796 msgid ""
32797 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
32798 "to the correct filesystem."
32799 msgstr ""
32800
32801 #. type: textblock
32802 #: ../tools/virt-edit.pl:358
32803 msgid ""
32804 "Any backslash (C<\\>) characters in the path are replaced with forward "
32805 "slashes so that libguestfs can process it."
32806 msgstr ""
32807
32808 #. type: textblock
32809 #: ../tools/virt-edit.pl:363
32810 msgid ""
32811 "The path is resolved case insensitively to locate the file that should be "
32812 "edited."
32813 msgstr ""
32814
32815 #. type: textblock
32816 #: ../tools/virt-edit.pl:368
32817 msgid "There are some known shortcomings:"
32818 msgstr ""
32819
32820 #. type: textblock
32821 #: ../tools/virt-edit.pl:374
32822 msgid "Some NTFS symbolic links may not be followed correctly."
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../tools/virt-edit.pl:378
32827 msgid "NTFS junction points that cross filesystems are not followed."
32828 msgstr ""
32829
32830 #. type: =head1
32831 #: ../tools/virt-edit.pl:435
32832 msgid "USING GUESTFISH"
32833 msgstr ""
32834
32835 #. type: textblock
32836 #: ../tools/virt-edit.pl:437
32837 msgid ""
32838 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
32839 "C<virt-edit> doesn't work."
32840 msgstr ""
32841
32842 #. type: textblock
32843 #: ../tools/virt-edit.pl:440
32844 msgid "Using C<virt-edit> is approximately equivalent to doing:"
32845 msgstr ""
32846
32847 #. type: verbatim
32848 #: ../tools/virt-edit.pl:442
32849 #, no-wrap
32850 msgid ""
32851 " guestfish --rw -i -d domname edit /file\n"
32852 "\n"
32853 msgstr ""
32854
32855 #. type: textblock
32856 #: ../tools/virt-edit.pl:444
32857 msgid ""
32858 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
32859 "path to the file."
32860 msgstr ""
32861
32862 #. type: textblock
32863 #: ../tools/virt-edit.pl:447
32864 msgid ""
32865 "The command above uses libguestfs's guest inspection feature and so does not "
32866 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
32867 "disk images that don't contain guests.  To edit a file on a disk image "
32868 "directly, use:"
32869 msgstr ""
32870
32871 #. type: verbatim
32872 #: ../tools/virt-edit.pl:452
32873 #, no-wrap
32874 msgid ""
32875 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
32876 "\n"
32877 msgstr ""
32878
32879 #. type: textblock
32880 #: ../tools/virt-edit.pl:454
32881 msgid ""
32882 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
32883 "the disk image to edit, and C</file> is the full path to the file."
32884 msgstr ""
32885
32886 #. type: textblock
32887 #: ../tools/virt-edit.pl:458
32888 msgid ""
32889 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
32890 "C<write> or C<upload> instead:"
32891 msgstr ""
32892
32893 #. type: verbatim
32894 #: ../tools/virt-edit.pl:461
32895 #, no-wrap
32896 msgid ""
32897 " guestfish --rw -i -d domname touch /newfile\n"
32898 "\n"
32899 msgstr ""
32900
32901 #. type: verbatim
32902 #: ../tools/virt-edit.pl:463
32903 #, no-wrap
32904 msgid ""
32905 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
32906 "\n"
32907 msgstr ""
32908
32909 #. type: verbatim
32910 #: ../tools/virt-edit.pl:465
32911 #, no-wrap
32912 msgid ""
32913 " guestfish --rw -i -d domname upload localfile /newfile\n"
32914 "\n"
32915 msgstr ""
32916
32917 #. type: textblock
32918 #: ../tools/virt-edit.pl:467
32919 msgid ""
32920 "C<virt-edit> cannot edit multiple files, but guestfish can do it like this:"
32921 msgstr ""
32922
32923 #. type: verbatim
32924 #: ../tools/virt-edit.pl:470
32925 #, no-wrap
32926 msgid ""
32927 " guestfish --rw -i -d domname edit /file1 : edit /file2\n"
32928 "\n"
32929 msgstr ""
32930
32931 # type: =item
32932 #. type: =item
32933 #: ../tools/virt-edit.pl:480
32934 msgid "C<EDITOR>"
32935 msgstr ""
32936
32937 # type: textblock
32938 #. type: textblock
32939 #: ../tools/virt-edit.pl:482
32940 msgid ""
32941 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
32942 "\"emacs -nw\">"
32943 msgstr ""
32944
32945 # type: textblock
32946 #. type: textblock
32947 #: ../tools/virt-edit.pl:485
32948 msgid "If not set, C<vi> is used."
32949 msgstr ""
32950
32951 # type: =head2
32952 #. type: =head1
32953 #: ../tools/virt-edit.pl:489 ../tools/virt-win-reg.pl:559
32954 #: ../tools/virt-list-filesystems.pl:182 ../tools/virt-tar.pl:279
32955 #: ../tools/virt-make-fs.pl:532 ../tools/virt-list-partitions.pl:250
32956 msgid "SHELL QUOTING"
32957 msgstr ""
32958
32959 # type: textblock
32960 #. type: textblock
32961 #: ../tools/virt-edit.pl:491 ../tools/virt-win-reg.pl:567
32962 #: ../tools/virt-list-filesystems.pl:184 ../tools/virt-tar.pl:281
32963 #: ../tools/virt-make-fs.pl:534 ../tools/virt-list-partitions.pl:252
32964 msgid ""
32965 "Libvirt guest names can contain arbitrary characters, some of which have "
32966 "meaning to the shell such as C<#> and space.  You may need to quote or "
32967 "escape these characters on the command line.  See the shell manual page L<sh"
32968 "(1)> for details."
32969 msgstr ""
32970
32971 #. type: textblock
32972 #: ../tools/virt-edit.pl:498
32973 msgid ""
32974 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
32975 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32976 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
32977 msgstr ""
32978
32979 # type: =head1
32980 #. type: =head1
32981 #: ../tools/virt-edit.pl:510 ../tools/virt-win-reg.pl:598
32982 #: ../tools/virt-list-filesystems.pl:202 ../tools/virt-tar.pl:301
32983 #: ../tools/virt-make-fs.pl:564 ../tools/virt-list-partitions.pl:269
32984 msgid "AUTHOR"
32985 msgstr ""
32986
32987 # type: textblock
32988 #. type: textblock
32989 #: ../tools/virt-edit.pl:512 ../tools/virt-win-reg.pl:600
32990 #: ../tools/virt-list-filesystems.pl:204 ../tools/virt-tar.pl:303
32991 #: ../tools/virt-make-fs.pl:566 ../tools/virt-list-partitions.pl:271
32992 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
32993 msgstr ""
32994
32995 #. type: textblock
32996 #: ../tools/virt-edit.pl:516
32997 msgid "Copyright (C) 2009-2011 Red Hat Inc."
32998 msgstr ""
32999
33000 # type: textblock
33001 #. type: textblock
33002 #: ../tools/virt-win-reg.pl:37
33003 msgid ""
33004 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
33005 msgstr ""
33006
33007 # type: verbatim
33008 #. type: verbatim
33009 #: ../tools/virt-win-reg.pl:41
33010 #, no-wrap
33011 msgid ""
33012 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
33013 "\n"
33014 msgstr ""
33015
33016 # type: verbatim
33017 #. type: verbatim
33018 #: ../tools/virt-win-reg.pl:43
33019 #, no-wrap
33020 msgid ""
33021 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
33022 "\n"
33023 msgstr ""
33024
33025 # type: verbatim
33026 #. type: verbatim
33027 #: ../tools/virt-win-reg.pl:45
33028 #, no-wrap
33029 msgid ""
33030 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
33031 "\n"
33032 msgstr ""
33033
33034 # type: verbatim
33035 #. type: verbatim
33036 #: ../tools/virt-win-reg.pl:47
33037 #, no-wrap
33038 msgid ""
33039 " virt-win-reg --merge domname [input.reg ...]\n"
33040 "\n"
33041 msgstr ""
33042
33043 # type: verbatim
33044 #. type: verbatim
33045 #: ../tools/virt-win-reg.pl:49
33046 #, no-wrap
33047 msgid ""
33048 " virt-win-reg [--options] disk.img ... # instead of domname\n"
33049 "\n"
33050 msgstr ""
33051
33052 # type: textblock
33053 #. type: textblock
33054 #: ../tools/virt-win-reg.pl:53
33055 msgid ""
33056 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
33057 "virtual machines.  If you do this, you I<will> get irreversible disk "
33058 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
33059 "but doesn't catch all cases."
33060 msgstr ""
33061
33062 # type: textblock
33063 #. type: textblock
33064 #: ../tools/virt-win-reg.pl:58
33065 msgid ""
33066 "Modifying the Windows Registry is an inherently risky operation.  The format "
33067 "is deliberately obscure and undocumented, and Registry changes can leave the "
33068 "system unbootable.  Therefore when using the C<--merge> option, make sure "
33069 "you have a reliable backup first."
33070 msgstr ""
33071
33072 # type: textblock
33073 #. type: textblock
33074 #: ../tools/virt-win-reg.pl:65
33075 msgid ""
33076 "This program can export and merge Windows Registry entries from a Windows "
33077 "guest."
33078 msgstr ""
33079
33080 # type: textblock
33081 #. type: textblock
33082 #: ../tools/virt-win-reg.pl:68
33083 msgid ""
33084 "The first parameter is the libvirt guest name or the raw disk image of a "
33085 "Windows guest."
33086 msgstr ""
33087
33088 # type: textblock
33089 #. type: textblock
33090 #: ../tools/virt-win-reg.pl:71
33091 msgid ""
33092 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
33093 "exported (recursively).  For example:"
33094 msgstr ""
33095
33096 # type: verbatim
33097 #. type: verbatim
33098 #: ../tools/virt-win-reg.pl:74
33099 #, no-wrap
33100 msgid ""
33101 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
33102 "\n"
33103 msgstr ""
33104
33105 # type: textblock
33106 #. type: textblock
33107 #: ../tools/virt-win-reg.pl:76
33108 msgid ""
33109 "You can also display single values from within registry keys, for example:"
33110 msgstr ""
33111
33112 # type: verbatim
33113 #. type: verbatim
33114 #: ../tools/virt-win-reg.pl:79
33115 #, no-wrap
33116 msgid ""
33117 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
33118 " $ virt-win-reg Windows7 $cvkey ProductName\n"
33119 " Windows 7 Enterprise\n"
33120 "\n"
33121 msgstr ""
33122
33123 # type: textblock
33124 #. type: textblock
33125 #: ../tools/virt-win-reg.pl:83
33126 msgid ""
33127 "With C<--merge>, you can merge a textual regedit file into the Windows "
33128 "Registry:"
33129 msgstr ""
33130
33131 # type: verbatim
33132 #. type: verbatim
33133 #: ../tools/virt-win-reg.pl:86
33134 #, no-wrap
33135 msgid ""
33136 " $ virt-win-reg --merge Windows7 changes.reg\n"
33137 "\n"
33138 msgstr ""
33139
33140 # type: =head2
33141 #. type: =head1
33142 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
33143 msgid "NOTE"
33144 msgstr ""
33145
33146 # type: textblock
33147 #. type: textblock
33148 #: ../tools/virt-win-reg.pl:90
33149 msgid ""
33150 "This program is only meant for simple access to the registry.  If you want "
33151 "to do complicated things with the registry, we suggest you download the "
33152 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
33153 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
33154 "L<hivexregedit(1)>."
33155 msgstr ""
33156
33157 # type: =item
33158 #. type: =item
33159 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
33160 msgid "B<--debug>"
33161 msgstr ""
33162
33163 # type: textblock
33164 #. type: textblock
33165 #: ../tools/virt-win-reg.pl:122
33166 msgid "Enable debugging messages."
33167 msgstr ""
33168
33169 # type: =item
33170 #. type: =item
33171 #: ../tools/virt-win-reg.pl:157
33172 msgid "B<--merge>"
33173 msgstr ""
33174
33175 # type: textblock
33176 #. type: textblock
33177 #: ../tools/virt-win-reg.pl:159
33178 msgid ""
33179 "In merge mode, this merges a textual regedit file into the Windows Registry "
33180 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
33181 "displays or exports Registry entries instead."
33182 msgstr ""
33183
33184 # type: textblock
33185 #. type: textblock
33186 #: ../tools/virt-win-reg.pl:163
33187 msgid ""
33188 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
33189 "result in disk corruption.  However exporting (without this flag)  is always "
33190 "safe."
33191 msgstr ""
33192
33193 # type: =item
33194 #. type: =item
33195 #: ../tools/virt-win-reg.pl:171
33196 msgid "B<--encoding> UTF-16LE|ASCII"
33197 msgstr ""
33198
33199 # type: textblock
33200 #. type: textblock
33201 #: ../tools/virt-win-reg.pl:173
33202 msgid ""
33203 "When merging (only), you may need to specify the encoding for strings to be "
33204 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
33205 "(3)/ENCODING STRINGS>."
33206 msgstr ""
33207
33208 # type: textblock
33209 #. type: textblock
33210 #: ../tools/virt-win-reg.pl:177
33211 msgid ""
33212 "The default is to use UTF-16LE, which should work with recent versions of "
33213 "Windows."
33214 msgstr ""
33215
33216 # type: =head2
33217 #. type: =head1
33218 #: ../tools/virt-win-reg.pl:402
33219 msgid "SUPPORTED SYSTEMS"
33220 msgstr ""
33221
33222 # type: textblock
33223 #. type: textblock
33224 #: ../tools/virt-win-reg.pl:404
33225 msgid ""
33226 "The program currently supports Windows NT-derived guests starting with "
33227 "Windows XP through to at least Windows 7."
33228 msgstr ""
33229
33230 # type: textblock
33231 #. type: textblock
33232 #: ../tools/virt-win-reg.pl:407
33233 msgid ""
33234 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
33235 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
33236 "and C<HKEY_USERS\\.DEFAULT>."
33237 msgstr ""
33238
33239 # type: textblock
33240 #. type: textblock
33241 #: ../tools/virt-win-reg.pl:411
33242 msgid ""
33243 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
33244 "C<HKEY_USERS>."
33245 msgstr ""
33246
33247 # type: textblock
33248 #. type: textblock
33249 #: ../tools/virt-win-reg.pl:414
33250 msgid ""
33251 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
33252 "time."
33253 msgstr ""
33254
33255 # type: =head2
33256 #. type: =head1
33257 #: ../tools/virt-win-reg.pl:417
33258 msgid "ENCODING"
33259 msgstr ""
33260
33261 # type: textblock
33262 #. type: textblock
33263 #: ../tools/virt-win-reg.pl:419
33264 msgid ""
33265 "C<virt-win-reg> expects that regedit files have already been reencoded in "
33266 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
33267 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
33268 "Windows-style line endings, you may need to reencode the whole file before "
33269 "or after processing."
33270 msgstr ""
33271
33272 # type: textblock
33273 #. type: textblock
33274 #: ../tools/virt-win-reg.pl:425
33275 msgid ""
33276 "To reencode a file from Windows format to Linux (before processing it with "
33277 "the C<--merge> option), you would do something like this:"
33278 msgstr ""
33279
33280 # type: verbatim
33281 #. type: verbatim
33282 #: ../tools/virt-win-reg.pl:428
33283 #, no-wrap
33284 msgid ""
33285 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
33286 "\n"
33287 msgstr ""
33288
33289 # type: textblock
33290 #. type: textblock
33291 #: ../tools/virt-win-reg.pl:430
33292 msgid ""
33293 "To go in the opposite direction, after exporting and before sending the file "
33294 "to a Windows user, do something like this:"
33295 msgstr ""
33296
33297 # type: verbatim
33298 #. type: verbatim
33299 #: ../tools/virt-win-reg.pl:433
33300 #, no-wrap
33301 msgid ""
33302 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33303 "\n"
33304 msgstr ""
33305
33306 # type: textblock
33307 #. type: textblock
33308 #: ../tools/virt-win-reg.pl:435
33309 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33310 msgstr ""
33311
33312 # type: textblock
33313 #. type: textblock
33314 #: ../tools/virt-win-reg.pl:437
33315 msgid ""
33316 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33317 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33318 "style (CRLF) line endings, like this:"
33319 msgstr ""
33320
33321 # type: verbatim
33322 #. type: verbatim
33323 #: ../tools/virt-win-reg.pl:441
33324 #, no-wrap
33325 msgid ""
33326 " $ file software.reg\n"
33327 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33328 " with CRLF line terminators\n"
33329 "\n"
33330 msgstr ""
33331
33332 # type: textblock
33333 #. type: textblock
33334 #: ../tools/virt-win-reg.pl:445
33335 msgid "This file would need conversion before you could C<--merge> it."
33336 msgstr ""
33337
33338 # type: =head2
33339 #. type: =head1
33340 #: ../tools/virt-win-reg.pl:447
33341 msgid "CurrentControlSet etc."
33342 msgstr ""
33343
33344 # type: textblock
33345 #. type: textblock
33346 #: ../tools/virt-win-reg.pl:449
33347 msgid ""
33348 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33349 "Registry at the level of the hive file, and therefore you cannot modify "
33350 "these."
33351 msgstr ""
33352
33353 # type: textblock
33354 #. type: textblock
33355 #: ../tools/virt-win-reg.pl:453
33356 msgid ""
33357 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33358 "circumstances it might refer to another control set.  The way to find out is "
33359 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33360 msgstr ""
33361
33362 # type: verbatim
33363 #. type: verbatim
33364 #: ../tools/virt-win-reg.pl:457
33365 #, no-wrap
33366 msgid ""
33367 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33368 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33369 " \"Current\"=dword:00000001\n"
33370 " \"Default\"=dword:00000001\n"
33371 " \"Failed\"=dword:00000000\n"
33372 " \"LastKnownGood\"=dword:00000002\n"
33373 "\n"
33374 msgstr ""
33375
33376 # type: textblock
33377 #. type: textblock
33378 #: ../tools/virt-win-reg.pl:464
33379 msgid "\"Current\" is the one which Windows will choose when it boots."
33380 msgstr ""
33381
33382 # type: textblock
33383 #. type: textblock
33384 #: ../tools/virt-win-reg.pl:466
33385 msgid ""
33386 "Similarly, other C<Current...> keys in the path may need to be replaced."
33387 msgstr ""
33388
33389 # type: =head1
33390 #. type: =head1
33391 #: ../tools/virt-win-reg.pl:469
33392 msgid "WINDOWS TIPS"
33393 msgstr ""
33394
33395 # type: textblock
33396 #. type: textblock
33397 #: ../tools/virt-win-reg.pl:471
33398 msgid ""
33399 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33400 "be shut off, else you will get disk corruption."
33401 msgstr ""
33402
33403 # type: =head2
33404 #. type: =head2
33405 #: ../tools/virt-win-reg.pl:474
33406 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33407 msgstr ""
33408
33409 # type: textblock
33410 #. type: textblock
33411 #: ../tools/virt-win-reg.pl:476
33412 msgid ""
33413 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33414 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33415 "is uploaded into C<C:\\>:"
33416 msgstr ""
33417
33418 # type: verbatim
33419 #. type: verbatim
33420 #: ../tools/virt-win-reg.pl:480
33421 #, no-wrap
33422 msgid ""
33423 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33424 "\n"
33425 msgstr ""
33426
33427 # type: textblock
33428 #. type: textblock
33429 #: ../tools/virt-win-reg.pl:482
33430 msgid "Prepare a regedit file containing the registry change:"
33431 msgstr ""
33432
33433 # type: verbatim
33434 #. type: verbatim
33435 #: ../tools/virt-win-reg.pl:484
33436 #, no-wrap
33437 msgid ""
33438 " cat > test.reg <<'EOF'\n"
33439 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33440 " \"Test\"=\"c:\\\\test.bat\"\n"
33441 " EOF\n"
33442 "\n"
33443 msgstr ""
33444
33445 # type: textblock
33446 #. type: textblock
33447 #: ../tools/virt-win-reg.pl:489
33448 msgid ""
33449 "In this example we use the key C<RunOnce> which means that the script will "
33450 "run precisely once when the first user logs in.  If you want it to run every "
33451 "time a user logs in, replace C<RunOnce> with C<Run>."
33452 msgstr ""
33453
33454 # type: textblock
33455 #. type: textblock
33456 #: ../tools/virt-win-reg.pl:493
33457 msgid "Now update the registry:"
33458 msgstr ""
33459
33460 # type: verbatim
33461 #. type: verbatim
33462 #: ../tools/virt-win-reg.pl:495
33463 #, no-wrap
33464 msgid ""
33465 " virt-win-reg --merge WindowsGuest test.reg\n"
33466 "\n"
33467 msgstr ""
33468
33469 # type: =head2
33470 #. type: =head2
33471 #: ../tools/virt-win-reg.pl:497
33472 msgid "INSTALLING A SERVICE"
33473 msgstr ""
33474
33475 # type: textblock
33476 #. type: textblock
33477 #: ../tools/virt-win-reg.pl:499
33478 msgid ""
33479 "This section assumes you are familiar with Windows services, and you either "
33480 "have a program which handles the Windows Service Control Protocol directly "
33481 "or you want to run any program using a service wrapper like SrvAny or the "
33482 "free RHSrvAny."
33483 msgstr ""
33484
33485 # type: textblock
33486 #. type: textblock
33487 #: ../tools/virt-win-reg.pl:504
33488 msgid ""
33489 "First upload the program and optionally the service wrapper.  In this case "
33490 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33491 msgstr ""
33492
33493 # type: verbatim
33494 #. type: verbatim
33495 #: ../tools/virt-win-reg.pl:508
33496 #, no-wrap
33497 msgid ""
33498 " guestfish -i -d WindowsGuest <<EOF\n"
33499 "   upload rhsrvany.exe /rhsrvany.exe\n"
33500 "   upload test.exe /test.exe\n"
33501 " EOF\n"
33502 "\n"
33503 msgstr ""
33504
33505 # type: textblock
33506 #. type: textblock
33507 #: ../tools/virt-win-reg.pl:513
33508 msgid ""
33509 "Prepare a regedit file containing the registry changes.  In this example, "
33510 "the first registry change is needed for the service itself or the service "
33511 "wrapper (if used).  The second registry change is only needed because I am "
33512 "using the RHSrvAny service wrapper."
33513 msgstr ""
33514
33515 # type: verbatim
33516 #. type: verbatim
33517 #: ../tools/virt-win-reg.pl:518
33518 #, no-wrap
33519 msgid ""
33520 " cat > service.reg <<'EOF'\n"
33521 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33522 " \"Type\"=dword:00000010\n"
33523 " \"Start\"=dword:00000002\n"
33524 " \"ErrorControl\"=dword:00000001\n"
33525 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33526 " \"DisplayName\"=\"RHSrvAny\"\n"
33527 " \"ObjectName\"=\"NetworkService\"\n"
33528 " \n"
33529 msgstr ""
33530
33531 # type: verbatim
33532 #. type: verbatim
33533 #: ../tools/virt-win-reg.pl:527
33534 #, no-wrap
33535 msgid ""
33536 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33537 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33538 " \"PWD\"=\"c:\\\\Temp\"\n"
33539 " EOF\n"
33540 "\n"
33541 msgstr ""
33542
33543 # type: textblock
33544 #. type: textblock
33545 #: ../tools/virt-win-reg.pl:538
33546 msgid ""
33547 "For use of C<ControlSet001> see the section above in this manual page.  You "
33548 "may need to adjust this according to the control set that is in use by the "
33549 "guest."
33550 msgstr ""
33551
33552 # type: textblock
33553 #. type: textblock
33554 #: ../tools/virt-win-reg.pl:544
33555 msgid ""
33556 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33557 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33558 "privileged account."
33559 msgstr ""
33560
33561 # type: textblock
33562 #. type: textblock
33563 #: ../tools/virt-win-reg.pl:550
33564 msgid ""
33565 "For the meaning of the magic numbers, see this Microsoft KB article: "
33566 "L<http://support.microsoft.com/kb/103000>."
33567 msgstr ""
33568
33569 # type: textblock
33570 #. type: textblock
33571 #: ../tools/virt-win-reg.pl:555
33572 msgid "Update the registry:"
33573 msgstr ""
33574
33575 # type: verbatim
33576 #. type: verbatim
33577 #: ../tools/virt-win-reg.pl:557
33578 #, no-wrap
33579 msgid ""
33580 " virt-win-reg --merge WindowsGuest service.reg\n"
33581 "\n"
33582 msgstr ""
33583
33584 # type: textblock
33585 #. type: textblock
33586 #: ../tools/virt-win-reg.pl:561
33587 msgid ""
33588 "Be careful when passing parameters containing C<\\> (backslash) in the "
33589 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33590 "(but not both) to protect them from the shell."
33591 msgstr ""
33592
33593 # type: textblock
33594 #. type: textblock
33595 #: ../tools/virt-win-reg.pl:565
33596 msgid "Paths and value names are case-insensitive."
33597 msgstr ""
33598
33599 # type: textblock
33600 #. type: textblock
33601 #: ../tools/virt-win-reg.pl:574
33602 msgid ""
33603 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33604 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33605 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33606 msgstr ""
33607
33608 # type: textblock
33609 #. type: textblock
33610 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
33611 msgid ""
33612 "When reporting bugs, please enable debugging and capture the I<complete> "
33613 "output:"
33614 msgstr ""
33615
33616 # type: verbatim
33617 #. type: verbatim
33618 #: ../tools/virt-win-reg.pl:592
33619 #, no-wrap
33620 msgid ""
33621 " export LIBGUESTFS_DEBUG=1\n"
33622 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33623 "\n"
33624 msgstr ""
33625
33626 # type: textblock
33627 #. type: textblock
33628 #: ../tools/virt-win-reg.pl:595
33629 msgid ""
33630 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33631 "redhat.com/>"
33632 msgstr ""
33633
33634 # type: textblock
33635 #. type: textblock
33636 #: ../tools/virt-win-reg.pl:604 ../tools/virt-make-fs.pl:570
33637 msgid "Copyright (C) 2010 Red Hat Inc."
33638 msgstr ""
33639
33640 # type: textblock
33641 #. type: textblock
33642 #: ../tools/virt-list-filesystems.pl:32
33643 msgid ""
33644 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33645 msgstr ""
33646
33647 # type: verbatim
33648 #. type: verbatim
33649 #: ../tools/virt-list-filesystems.pl:36
33650 #, no-wrap
33651 msgid ""
33652 " virt-list-filesystems [--options] domname\n"
33653 "\n"
33654 msgstr ""
33655
33656 # type: verbatim
33657 #. type: verbatim
33658 #: ../tools/virt-list-filesystems.pl:38
33659 #, no-wrap
33660 msgid ""
33661 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33662 "\n"
33663 msgstr ""
33664
33665 # type: textblock
33666 #. type: textblock
33667 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33668 msgid ""
33669 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33670 "replacement."
33671 msgstr ""
33672
33673 # type: textblock
33674 #. type: textblock
33675 #: ../tools/virt-list-filesystems.pl:45
33676 msgid ""
33677 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33678 "are contained in a virtual machine or disk image."
33679 msgstr ""
33680
33681 # type: textblock
33682 #. type: textblock
33683 #: ../tools/virt-list-filesystems.pl:49
33684 msgid ""
33685 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33686 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33687 "> tool."
33688 msgstr ""
33689
33690 # type: =item
33691 #. type: =item
33692 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33693 msgid "B<-l> | B<--long>"
33694 msgstr ""
33695
33696 # type: textblock
33697 #. type: textblock
33698 #: ../tools/virt-list-filesystems.pl:108
33699 msgid ""
33700 "With this option, C<virt-list-filesystems> displays the type of each "
33701 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33702 msgstr ""
33703
33704 # type: =item
33705 #. type: =item
33706 #: ../tools/virt-list-filesystems.pl:115
33707 msgid "B<-a> | B<--all>"
33708 msgstr ""
33709
33710 # type: textblock
33711 #. type: textblock
33712 #: ../tools/virt-list-filesystems.pl:117
33713 msgid ""
33714 "Normally we only show mountable filesystems.  If this option is given then "
33715 "swap devices are shown too."
33716 msgstr ""
33717
33718 # type: textblock
33719 #. type: textblock
33720 #: ../tools/virt-list-filesystems.pl:191
33721 msgid ""
33722 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33723 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33724 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33725 msgstr ""
33726
33727 # type: textblock
33728 #. type: textblock
33729 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33730 msgid "Copyright (C) 2009 Red Hat Inc."
33731 msgstr ""
33732
33733 # type: textblock
33734 #. type: textblock
33735 #: ../tools/virt-tar.pl:33
33736 msgid "virt-tar - Extract or upload files to a virtual machine"
33737 msgstr ""
33738
33739 # type: verbatim
33740 #. type: verbatim
33741 #: ../tools/virt-tar.pl:37
33742 #, no-wrap
33743 msgid ""
33744 " virt-tar [--options] -x domname directory tarball\n"
33745 "\n"
33746 msgstr ""
33747
33748 # type: verbatim
33749 #. type: verbatim
33750 #: ../tools/virt-tar.pl:39
33751 #, no-wrap
33752 msgid ""
33753 " virt-tar [--options] -u domname tarball directory\n"
33754 "\n"
33755 msgstr ""
33756
33757 # type: verbatim
33758 #. type: verbatim
33759 #: ../tools/virt-tar.pl:41
33760 #, no-wrap
33761 msgid ""
33762 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33763 "\n"
33764 msgstr ""
33765
33766 # type: verbatim
33767 #. type: verbatim
33768 #: ../tools/virt-tar.pl:43
33769 #, no-wrap
33770 msgid ""
33771 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33772 "\n"
33773 msgstr ""
33774
33775 #. type: textblock
33776 #: ../tools/virt-tar.pl:47
33777 msgid ""
33778 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33779 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33780 msgstr ""
33781
33782 # type: textblock
33783 #. type: textblock
33784 #: ../tools/virt-tar.pl:52
33785 msgid "Download C</home> from the VM into a local tarball:"
33786 msgstr ""
33787
33788 # type: verbatim
33789 #. type: verbatim
33790 #: ../tools/virt-tar.pl:54
33791 #, no-wrap
33792 msgid ""
33793 " virt-tar -x domname /home home.tar\n"
33794 "\n"
33795 msgstr ""
33796
33797 # type: verbatim
33798 #. type: verbatim
33799 #: ../tools/virt-tar.pl:56
33800 #, no-wrap
33801 msgid ""
33802 " virt-tar -zx domname /home home.tar.gz\n"
33803 "\n"
33804 msgstr ""
33805
33806 # type: textblock
33807 #. type: textblock
33808 #: ../tools/virt-tar.pl:58
33809 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33810 msgstr ""
33811
33812 # type: verbatim
33813 #. type: verbatim
33814 #: ../tools/virt-tar.pl:60
33815 #, no-wrap
33816 msgid ""
33817 " virt-tar -u domname uploadstuff.tar /tmp\n"
33818 "\n"
33819 msgstr ""
33820
33821 # type: verbatim
33822 #. type: verbatim
33823 #: ../tools/virt-tar.pl:62
33824 #, no-wrap
33825 msgid ""
33826 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33827 "\n"
33828 msgstr ""
33829
33830 # type: textblock
33831 #. type: textblock
33832 #: ../tools/virt-tar.pl:66
33833 msgid ""
33834 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
33835 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33836 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33837 msgstr ""
33838
33839 # type: textblock
33840 #. type: textblock
33841 #: ../tools/virt-tar.pl:71
33842 msgid ""
33843 "You can use C<-x> (extract) on live virtual machines, but you might get "
33844 "inconsistent results or errors if there is filesystem activity inside the "
33845 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33846 "work, but the only way to guarantee consistent results is if the virtual "
33847 "machine is shut down."
33848 msgstr ""
33849
33850 # type: textblock
33851 #. type: textblock
33852 #: ../tools/virt-tar.pl:79
33853 msgid ""
33854 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33855 "parts of a guest filesystem.  There are many possibilities: making backups, "
33856 "uploading data files, snooping on guest activity, fixing or customizing "
33857 "guests, etc."
33858 msgstr ""
33859
33860 # type: textblock
33861 #. type: textblock
33862 #: ../tools/virt-tar.pl:84
33863 msgid ""
33864 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33865 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33866 "should look at the L<guestfish(1)> tool."
33867 msgstr ""
33868
33869 # type: textblock
33870 #. type: textblock
33871 #: ../tools/virt-tar.pl:88
33872 msgid ""
33873 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
33874 "its contents (recursively) from the virtual machine into a local tarball.  "
33875 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
33876 "virtual machine.  You cannot use these two options together."
33877 msgstr ""
33878
33879 # type: textblock
33880 #. type: textblock
33881 #: ../tools/virt-tar.pl:94
33882 msgid ""
33883 "In addition, you may need to use the C<-z> (gZip) option to enable "
33884 "compression.  When uploading, you have to specify C<-z> if the upload file "
33885 "is compressed because virt-tar won't detect this on its own."
33886 msgstr ""
33887
33888 # type: textblock
33889 #. type: textblock
33890 #: ../tools/virt-tar.pl:98
33891 msgid ""
33892 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33893 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33894 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33895 "the L<libguestfs(3)> API)."
33896 msgstr ""
33897
33898 # type: =item
33899 #. type: =item
33900 #: ../tools/virt-tar.pl:156
33901 msgid "B<-x> | B<--extract> | B<--download>"
33902 msgstr ""
33903
33904 # type: =item
33905 #. type: =item
33906 #: ../tools/virt-tar.pl:158
33907 msgid "B<-u> | B<--upload>"
33908 msgstr ""
33909
33910 # type: textblock
33911 #. type: textblock
33912 #: ../tools/virt-tar.pl:160
33913 msgid ""
33914 "Use C<-x> to extract (download) a directory from a virtual machine to a "
33915 "local tarball."
33916 msgstr ""
33917
33918 # type: textblock
33919 #. type: textblock
33920 #: ../tools/virt-tar.pl:163
33921 msgid ""
33922 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
33923 "Please read the L</WARNING> section above before using this option."
33924 msgstr ""
33925
33926 # type: textblock
33927 #. type: textblock
33928 #: ../tools/virt-tar.pl:167
33929 msgid "You must specify exactly one of these options."
33930 msgstr ""
33931
33932 # type: =item
33933 #. type: =item
33934 #: ../tools/virt-tar.pl:173
33935 msgid "B<-z> | B<--gzip>"
33936 msgstr ""
33937
33938 # type: textblock
33939 #. type: textblock
33940 #: ../tools/virt-tar.pl:175
33941 msgid "Specify that the input or output tarball is gzip-compressed."
33942 msgstr ""
33943
33944 #. type: textblock
33945 #: ../tools/virt-tar.pl:288
33946 msgid ""
33947 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
33948 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
33949 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
33950 "org/>."
33951 msgstr ""
33952
33953 # type: textblock
33954 #. type: textblock
33955 #: ../tools/virt-make-fs.pl:37
33956 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
33957 msgstr ""
33958
33959 # type: verbatim
33960 #. type: verbatim
33961 #: ../tools/virt-make-fs.pl:41
33962 #, no-wrap
33963 msgid ""
33964 " virt-make-fs [--options] input.tar output.img\n"
33965 "\n"
33966 msgstr ""
33967
33968 # type: verbatim
33969 #. type: verbatim
33970 #: ../tools/virt-make-fs.pl:43
33971 #, no-wrap
33972 msgid ""
33973 " virt-make-fs [--options] input.tar.gz output.img\n"
33974 "\n"
33975 msgstr ""
33976
33977 # type: verbatim
33978 #. type: verbatim
33979 #: ../tools/virt-make-fs.pl:45
33980 #, no-wrap
33981 msgid ""
33982 " virt-make-fs [--options] directory output.img\n"
33983 "\n"
33984 msgstr ""
33985
33986 # type: textblock
33987 #. type: textblock
33988 #: ../tools/virt-make-fs.pl:49
33989 msgid ""
33990 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
33991 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
33992 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
33993 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
33994 "you want to attach these filesystems to existing virtual machines (eg. to "
33995 "import large amounts of read-only data to a VM)."
33996 msgstr ""
33997
33998 # type: textblock
33999 #. type: textblock
34000 #: ../tools/virt-make-fs.pl:57
34001 msgid "Basic usage is:"
34002 msgstr ""
34003
34004 # type: verbatim
34005 #. type: verbatim
34006 #: ../tools/virt-make-fs.pl:59
34007 #, no-wrap
34008 msgid ""
34009 " virt-make-fs input output\n"
34010 "\n"
34011 msgstr ""
34012
34013 # type: textblock
34014 #. type: textblock
34015 #: ../tools/virt-make-fs.pl:61
34016 msgid ""
34017 "where C<input> is either a directory containing files that you want to add, "
34018 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34019 "C<output> is a disk image.  The input type is detected automatically.  The "
34020 "output disk image defaults to a raw ext2 image unless you specify extra "
34021 "flags (see L</OPTIONS> below)."
34022 msgstr ""
34023
34024 # type: =head2
34025 #. type: =head2
34026 #: ../tools/virt-make-fs.pl:67
34027 msgid "EXTRA SPACE"
34028 msgstr ""
34029
34030 # type: textblock
34031 #. type: textblock
34032 #: ../tools/virt-make-fs.pl:69
34033 msgid ""
34034 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34035 "the files that it contains, but might have extra space.  Depending on how "
34036 "you are going to use the output, you might think this extra space is wasted "
34037 "and want to minimize it, or you might want to leave space so that more files "
34038 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34039 "but you can use the C<--size> flag to leave space in the filesystem if you "
34040 "want it."
34041 msgstr ""
34042
34043 # type: textblock
34044 #. type: textblock
34045 #: ../tools/virt-make-fs.pl:77
34046 msgid ""
34047 "An alternative way to leave extra space but not make the output image any "
34048 "bigger is to use an alternative disk image format (instead of the default "
34049 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34050 "image format (check your hypervisor supports this before using it).  This "
34051 "allows you to choose a large C<--size> but the extra space won't actually be "
34052 "allocated in the image until you try to store something in it."
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../tools/virt-make-fs.pl:85
34057 msgid ""
34058 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34059 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34060 "to build another image from scratch."
34061 msgstr ""
34062
34063 # type: =head3
34064 #. type: =head3
34065 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34066 #: ../tools/virt-make-fs.pl:142
34067 msgid "EXAMPLE"
34068 msgstr ""
34069
34070 # type: verbatim
34071 #. type: verbatim
34072 #: ../tools/virt-make-fs.pl:91
34073 #, no-wrap
34074 msgid ""
34075 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34076 "\n"
34077 msgstr ""
34078
34079 # type: =head2
34080 #. type: =head2
34081 #: ../tools/virt-make-fs.pl:93
34082 msgid "FILESYSTEM TYPE"
34083 msgstr ""
34084
34085 # type: textblock
34086 #. type: textblock
34087 #: ../tools/virt-make-fs.pl:95
34088 msgid ""
34089 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34090 "libguestfs supports can be used (but I<not> read-only formats like "
34091 "ISO9660).  Here are some of the more common choices:"
34092 msgstr ""
34093
34094 # type: =item
34095 #. type: =item
34096 #: ../tools/virt-make-fs.pl:101
34097 msgid "I<ext3>"
34098 msgstr ""
34099
34100 # type: textblock
34101 #. type: textblock
34102 #: ../tools/virt-make-fs.pl:103
34103 msgid ""
34104 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34105 "you are not going to use the filesystem in a way that requires the journal, "
34106 "then this is just wasted overhead."
34107 msgstr ""
34108
34109 # type: =item
34110 #. type: =item
34111 #: ../tools/virt-make-fs.pl:107
34112 msgid "I<ntfs> or I<vfat>"
34113 msgstr ""
34114
34115 # type: textblock
34116 #. type: textblock
34117 #: ../tools/virt-make-fs.pl:109
34118 msgid "Useful if exporting data to a Windows guest."
34119 msgstr ""
34120
34121 # type: textblock
34122 #. type: textblock
34123 #: ../tools/virt-make-fs.pl:111
34124 msgid ""
34125 "I<Note for vfat>: The tar archive or local directory must only contain files "
34126 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34127 "program running within libguestfs is unable to change the ownership of non-"
34128 "root files, since vfat itself does not support this."
34129 msgstr ""
34130
34131 # type: =item
34132 #. type: =item
34133 #: ../tools/virt-make-fs.pl:116
34134 msgid "I<minix>"
34135 msgstr ""
34136
34137 # type: textblock
34138 #. type: textblock
34139 #: ../tools/virt-make-fs.pl:118
34140 msgid ""
34141 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34142 "total filesystem size."
34143 msgstr ""
34144
34145 # type: verbatim
34146 #. type: verbatim
34147 #: ../tools/virt-make-fs.pl:125
34148 #, no-wrap
34149 msgid ""
34150 " virt-make-fs --type=minix input minixfs.img\n"
34151 "\n"
34152 msgstr ""
34153
34154 # type: =head2
34155 #. type: =head2
34156 #: ../tools/virt-make-fs.pl:127
34157 msgid "TO PARTITION OR NOT TO PARTITION"
34158 msgstr ""
34159
34160 # type: textblock
34161 #. type: textblock
34162 #: ../tools/virt-make-fs.pl:129
34163 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34164 msgstr ""
34165
34166 # type: textblock
34167 #. type: textblock
34168 #: ../tools/virt-make-fs.pl:131
34169 msgid ""
34170 "Adding a partition can make the disk image more compatible with certain "
34171 "virtualized operating systems which don't expect to see a filesystem "
34172 "directly located on a block device (Linux doesn't care and will happily "
34173 "handle both types)."
34174 msgstr ""
34175
34176 # type: textblock
34177 #. type: textblock
34178 #: ../tools/virt-make-fs.pl:136
34179 msgid ""
34180 "On the other hand, if you have a partition table then the output image is no "
34181 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34182 "directly on a partitioned disk image.  (However libguestfs tools such as "
34183 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34184 msgstr ""
34185
34186 # type: textblock
34187 #. type: textblock
34188 #: ../tools/virt-make-fs.pl:144
34189 msgid "Add an MBR partition:"
34190 msgstr ""
34191
34192 # type: verbatim
34193 #. type: verbatim
34194 #: ../tools/virt-make-fs.pl:146
34195 #, no-wrap
34196 msgid ""
34197 " virt-make-fs --partition -- input disk.img\n"
34198 "\n"
34199 msgstr ""
34200
34201 # type: textblock
34202 #. type: textblock
34203 #: ../tools/virt-make-fs.pl:148
34204 msgid ""
34205 "If the output disk image could be terabyte-sized or larger, it's better to "
34206 "use an EFI/GPT-compatible partition table:"
34207 msgstr ""
34208
34209 # type: verbatim
34210 #. type: verbatim
34211 #: ../tools/virt-make-fs.pl:151
34212 #, no-wrap
34213 msgid ""
34214 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34215 "\n"
34216 msgstr ""
34217
34218 # type: textblock
34219 #. type: textblock
34220 #: ../tools/virt-make-fs.pl:179
34221 msgid "Enable debugging information."
34222 msgstr ""
34223
34224 # type: =item
34225 #. type: =item
34226 #: ../tools/virt-make-fs.pl:185
34227 msgid "B<--size=E<lt>NE<gt>>"
34228 msgstr ""
34229
34230 # type: =item
34231 #. type: =item
34232 #: ../tools/virt-make-fs.pl:187
34233 msgid "B<--size=+E<lt>NE<gt>>"
34234 msgstr ""
34235
34236 # type: =item
34237 #. type: =item
34238 #: ../tools/virt-make-fs.pl:189
34239 msgid "B<-s E<lt>NE<gt>>"
34240 msgstr ""
34241
34242 # type: =item
34243 #. type: =item
34244 #: ../tools/virt-make-fs.pl:191
34245 msgid "B<-s +E<lt>NE<gt>>"
34246 msgstr ""
34247
34248 # type: textblock
34249 #. type: textblock
34250 #: ../tools/virt-make-fs.pl:193
34251 msgid ""
34252 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
34253 msgstr ""
34254
34255 # type: textblock
34256 #. type: textblock
34257 #: ../tools/virt-make-fs.pl:196
34258 msgid ""
34259 "If this option is I<not> given, then the output image will be just large "
34260 "enough to contain all the files, with not much wasted space."
34261 msgstr ""
34262
34263 # type: textblock
34264 #. type: textblock
34265 #: ../tools/virt-make-fs.pl:199
34266 msgid ""
34267 "To choose a fixed size output disk, specify an absolute number followed by b/"
34268 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34269 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34270 "files, else you will get an error."
34271 msgstr ""
34272
34273 # type: textblock
34274 #. type: textblock
34275 #: ../tools/virt-make-fs.pl:204
34276 msgid ""
34277 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34278 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34279 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
34280 "the input files, and (approximately) an extra 200 MB free space."
34281 msgstr ""
34282
34283 # type: textblock
34284 #. type: textblock
34285 #: ../tools/virt-make-fs.pl:210
34286 msgid ""
34287 "Note that virt-make-fs estimates free space, and therefore will not produce "
34288 "filesystems containing precisely the free space requested.  (It is much more "
34289 "expensive and time-consuming to produce a filesystem which has precisely the "
34290 "desired free space)."
34291 msgstr ""
34292
34293 # type: =item
34294 #. type: =item
34295 #: ../tools/virt-make-fs.pl:219
34296 msgid "B<--format=E<lt>fmtE<gt>>"
34297 msgstr ""
34298
34299 # type: =item
34300 #. type: =item
34301 #: ../tools/virt-make-fs.pl:221
34302 msgid "B<-F E<lt>fmtE<gt>>"
34303 msgstr ""
34304
34305 # type: textblock
34306 #. type: textblock
34307 #: ../tools/virt-make-fs.pl:223
34308 msgid "Choose the output disk image format."
34309 msgstr ""
34310
34311 # type: textblock
34312 #. type: textblock
34313 #: ../tools/virt-make-fs.pl:225
34314 msgid "The default is C<raw> (raw disk image)."
34315 msgstr ""
34316
34317 # type: textblock
34318 #. type: textblock
34319 #: ../tools/virt-make-fs.pl:227
34320 msgid ""
34321 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34322 "that would really make sense here is C<qcow2>."
34323 msgstr ""
34324
34325 # type: =item
34326 #. type: =item
34327 #: ../tools/virt-make-fs.pl:234
34328 msgid "B<--type=E<lt>fsE<gt>>"
34329 msgstr ""
34330
34331 # type: =item
34332 #. type: =item
34333 #: ../tools/virt-make-fs.pl:236
34334 msgid "B<-t E<lt>fsE<gt>>"
34335 msgstr ""
34336
34337 # type: textblock
34338 #. type: textblock
34339 #: ../tools/virt-make-fs.pl:238
34340 msgid "Choose the output filesystem type."
34341 msgstr ""
34342
34343 # type: textblock
34344 #. type: textblock
34345 #: ../tools/virt-make-fs.pl:240
34346 msgid "The default is C<ext2>."
34347 msgstr ""
34348
34349 # type: textblock
34350 #. type: textblock
34351 #: ../tools/virt-make-fs.pl:242
34352 msgid ""
34353 "Any filesystem which is supported read-write by libguestfs can be used here."
34354 msgstr ""
34355
34356 # type: =item
34357 #. type: =item
34358 #: ../tools/virt-make-fs.pl:249
34359 msgid "B<--partition>"
34360 msgstr ""
34361
34362 # type: =item
34363 #. type: =item
34364 #: ../tools/virt-make-fs.pl:251
34365 msgid "B<--partition=E<lt>parttypeE<gt>>"
34366 msgstr ""
34367
34368 # type: textblock
34369 #. type: textblock
34370 #: ../tools/virt-make-fs.pl:253
34371 msgid ""
34372 "If specified, this flag adds an MBR partition table to the output disk image."
34373 msgstr ""
34374
34375 # type: textblock
34376 #. type: textblock
34377 #: ../tools/virt-make-fs.pl:256
34378 msgid ""
34379 "You can change the partition table type, eg. C<--partition=gpt> for large "
34380 "disks."
34381 msgstr ""
34382
34383 # type: textblock
34384 #. type: textblock
34385 #: ../tools/virt-make-fs.pl:259
34386 msgid ""
34387 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
34388 "might consider the next parameter to be the partition type.  For example:"
34389 msgstr ""
34390
34391 # type: verbatim
34392 #. type: verbatim
34393 #: ../tools/virt-make-fs.pl:263
34394 #, no-wrap
34395 msgid ""
34396 " virt-make-fs --partition input.tar ...\n"
34397 "\n"
34398 msgstr ""
34399
34400 # type: textblock
34401 #. type: textblock
34402 #: ../tools/virt-make-fs.pl:265
34403 msgid ""
34404 "would cause virt-make-fs to think you wanted to use a partition type of "
34405 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
34406 "dash) between options and the input file argument:"
34407 msgstr ""
34408
34409 # type: verbatim
34410 #. type: verbatim
34411 #: ../tools/virt-make-fs.pl:269
34412 #, no-wrap
34413 msgid ""
34414 " virt-make-fs --partition -- input.tar ...\n"
34415 "\n"
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../tools/virt-make-fs.pl:541
34420 msgid ""
34421 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34422 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34423 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34424 msgstr ""
34425
34426 # type: verbatim
34427 #. type: verbatim
34428 #: ../tools/virt-make-fs.pl:558
34429 #, no-wrap
34430 msgid ""
34431 " export LIBGUESTFS_DEBUG=1\n"
34432 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34433 "\n"
34434 msgstr ""
34435
34436 # type: textblock
34437 #. type: textblock
34438 #: ../tools/virt-make-fs.pl:561
34439 msgid ""
34440 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34441 "redhat.com/>"
34442 msgstr ""
34443
34444 # type: textblock
34445 #. type: textblock
34446 #: ../tools/virt-list-partitions.pl:32
34447 msgid ""
34448 "virt-list-partitions - List partitions in a virtual machine or disk image"
34449 msgstr ""
34450
34451 # type: verbatim
34452 #. type: verbatim
34453 #: ../tools/virt-list-partitions.pl:36
34454 #, no-wrap
34455 msgid ""
34456 " virt-list-partitions [--options] domname\n"
34457 "\n"
34458 msgstr ""
34459
34460 # type: verbatim
34461 #. type: verbatim
34462 #: ../tools/virt-list-partitions.pl:38
34463 #, no-wrap
34464 msgid ""
34465 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34466 "\n"
34467 msgstr ""
34468
34469 # type: textblock
34470 #. type: textblock
34471 #: ../tools/virt-list-partitions.pl:45
34472 msgid ""
34473 "C<virt-list-partitions> is a command line tool to list the partitions that "
34474 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34475 "first step to using L<virt-resize(1)>."
34476 msgstr ""
34477
34478 # type: textblock
34479 #. type: textblock
34480 #: ../tools/virt-list-partitions.pl:50
34481 msgid ""
34482 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34483 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34484 "> tool."
34485 msgstr ""
34486
34487 # type: =item
34488 #. type: =item
34489 #: ../tools/virt-list-partitions.pl:107
34490 msgid "B<-h> | B<--human-readable>"
34491 msgstr ""
34492
34493 # type: textblock
34494 #. type: textblock
34495 #: ../tools/virt-list-partitions.pl:109
34496 msgid "Show sizes in human-readable form (eg. \"1G\")."
34497 msgstr ""
34498
34499 # type: textblock
34500 #. type: textblock
34501 #: ../tools/virt-list-partitions.pl:117
34502 msgid ""
34503 "With this option, C<virt-list-partitions> displays the type and size of each "
34504 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34505 msgstr ""
34506
34507 # type: =item
34508 #. type: =item
34509 #: ../tools/virt-list-partitions.pl:124
34510 msgid "B<-t> | B<--total>"
34511 msgstr ""
34512
34513 # type: textblock
34514 #. type: textblock
34515 #: ../tools/virt-list-partitions.pl:126
34516 msgid ""
34517 "Display the total size of each block device (as a separate row or rows)."
34518 msgstr ""
34519
34520 # type: textblock
34521 #. type: textblock
34522 #: ../tools/virt-list-partitions.pl:259
34523 msgid ""
34524 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34525 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34526 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34527 msgstr ""
34528
34529 # type: textblock
34530 #. type: textblock
34531 #: ../tools/virt-list-partitions.pl:275
34532 msgid "Copyright (C) 2009-2010 Red Hat Inc."
34533 msgstr ""