c477acf3a3325dc2f7825e76e984fe37555ac227
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-07-15 17:18+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-win-reg.pl:35 ../tools/virt-list-filesystems.pl:30
24 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
25 #: ../tools/virt-list-partitions.pl:30
26 msgid "NAME"
27 msgstr "名前"
28
29 # type: textblock
30 #. type: textblock
31 #: ../src/guestfs.pod:5
32 msgid "guestfs - Library for accessing and modifying virtual machine images"
33 msgstr ""
34
35 # type: =head1
36 #. type: =head1
37 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
38 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
39 #: ../tools/virt-win-reg.pl:39 ../tools/virt-list-filesystems.pl:34
40 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
41 #: ../tools/virt-list-partitions.pl:34
42 msgid "SYNOPSIS"
43 msgstr ""
44
45 # type: verbatim
46 #. type: verbatim
47 #: ../src/guestfs.pod:9
48 #, no-wrap
49 msgid ""
50 " #include <guestfs.h>\n"
51 " \n"
52 msgstr ""
53
54 # type: verbatim
55 #. type: verbatim
56 #: ../src/guestfs.pod:11
57 #, no-wrap
58 msgid ""
59 " guestfs_h *g = guestfs_create ();\n"
60 " guestfs_add_drive (g, \"guest.img\");\n"
61 " guestfs_launch (g);\n"
62 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
63 " guestfs_touch (g, \"/hello\");\n"
64 " guestfs_umount (g, \"/\");\n"
65 " guestfs_close (g);\n"
66 "\n"
67 msgstr ""
68
69 # type: verbatim
70 #. type: verbatim
71 #: ../src/guestfs.pod:19
72 #, no-wrap
73 msgid ""
74 " cc prog.c -o prog -lguestfs\n"
75 "or:\n"
76 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
77 "\n"
78 msgstr ""
79
80 # type: =head1
81 #. type: =head1
82 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
83 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
84 #: ../tools/virt-win-reg.pl:63 ../tools/virt-list-filesystems.pl:40
85 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
86 #: ../tools/virt-list-partitions.pl:40
87 msgid "DESCRIPTION"
88 msgstr ""
89
90 # type: textblock
91 #. type: textblock
92 #: ../src/guestfs.pod:25
93 msgid ""
94 "Libguestfs is a library for accessing and modifying guest disk images.  "
95 "Amongst the things this is good for: making batch configuration changes to "
96 "guests, getting disk used/free statistics (see also: virt-df), migrating "
97 "between virtualization systems (see also: virt-p2v), performing partial "
98 "backups, performing partial guest clones, cloning guests and changing "
99 "registry/UUID/hostname info, and much else besides."
100 msgstr ""
101
102 # type: textblock
103 #. type: textblock
104 #: ../src/guestfs.pod:33
105 msgid ""
106 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
107 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
108 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
109 "qcow2, vmdk."
110 msgstr ""
111
112 # type: textblock
113 #. type: textblock
114 #: ../src/guestfs.pod:38
115 msgid ""
116 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
117 "what filesystem is in each LV, etc.).  It can also run commands in the "
118 "context of the guest.  Also you can access filesystems over FUSE."
119 msgstr ""
120
121 # type: textblock
122 #. type: textblock
123 #: ../src/guestfs.pod:43
124 msgid ""
125 "Libguestfs is a library that can be linked with C and C++ management "
126 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
127 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
128 "line."
129 msgstr ""
130
131 # type: textblock
132 #. type: textblock
133 #: ../src/guestfs.pod:48
134 msgid ""
135 "You don't need to be root to use libguestfs, although obviously you do need "
136 "enough permissions to access the disk images."
137 msgstr ""
138
139 # type: textblock
140 #. type: textblock
141 #: ../src/guestfs.pod:51
142 msgid ""
143 "Libguestfs is a large API because it can do many things.  For a gentle "
144 "introduction, please read the L</API OVERVIEW> section next."
145 msgstr ""
146
147 # type: textblock
148 #. type: textblock
149 #: ../src/guestfs.pod:54
150 msgid ""
151 "There are also some example programs in the L<guestfs-examples(3)> manual "
152 "page."
153 msgstr ""
154
155 # type: =head1
156 #. type: =head1
157 #: ../src/guestfs.pod:57
158 msgid "API OVERVIEW"
159 msgstr ""
160
161 # type: textblock
162 #. type: textblock
163 #: ../src/guestfs.pod:59
164 msgid ""
165 "This section provides a gentler overview of the libguestfs API.  We also try "
166 "to group API calls together, where that may not be obvious from reading "
167 "about the individual calls in the main section of this manual."
168 msgstr ""
169
170 # type: =head2
171 #. type: =head2
172 #: ../src/guestfs.pod:64
173 msgid "HANDLES"
174 msgstr ""
175
176 # type: textblock
177 #. type: textblock
178 #: ../src/guestfs.pod:66
179 msgid ""
180 "Before you can use libguestfs calls, you have to create a handle.  Then you "
181 "must add at least one disk image to the handle, followed by launching the "
182 "handle, then performing whatever operations you want, and finally closing "
183 "the handle.  By convention we use the single letter C<g> for the name of the "
184 "handle variable, although of course you can use any name you want."
185 msgstr ""
186
187 # type: textblock
188 #. type: textblock
189 #: ../src/guestfs.pod:73
190 msgid "The general structure of all libguestfs-using programs looks like this:"
191 msgstr ""
192
193 # type: verbatim
194 #. type: verbatim
195 #: ../src/guestfs.pod:76
196 #, no-wrap
197 msgid ""
198 " guestfs_h *g = guestfs_create ();\n"
199 " \n"
200 msgstr ""
201
202 # type: verbatim
203 #. type: verbatim
204 #: ../src/guestfs.pod:78
205 #, no-wrap
206 msgid ""
207 " /* Call guestfs_add_drive additional times if there are\n"
208 "  * multiple disk images.\n"
209 "  */\n"
210 " guestfs_add_drive (g, \"guest.img\");\n"
211 " \n"
212 msgstr ""
213
214 # type: verbatim
215 #. type: verbatim
216 #: ../src/guestfs.pod:83
217 #, no-wrap
218 msgid ""
219 " /* Most manipulation calls won't work until you've launched\n"
220 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
221 "  * and _before_ other commands.\n"
222 "  */\n"
223 " guestfs_launch (g);\n"
224 " \n"
225 msgstr ""
226
227 # type: verbatim
228 #. type: verbatim
229 #: ../src/guestfs.pod:89
230 #, no-wrap
231 msgid ""
232 " /* Now you can examine what partitions, LVs etc are available.\n"
233 "  */\n"
234 " char **partitions = guestfs_list_partitions (g);\n"
235 " char **logvols = guestfs_lvs (g);\n"
236 " \n"
237 msgstr ""
238
239 # type: verbatim
240 #. type: verbatim
241 #: ../src/guestfs.pod:94
242 #, no-wrap
243 msgid ""
244 " /* To access a filesystem in the image, you must mount it.\n"
245 "  */\n"
246 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
247 " \n"
248 msgstr ""
249
250 #. type: verbatim
251 #: ../src/guestfs.pod:98
252 #, no-wrap
253 msgid ""
254 " /* Now you can perform filesystem actions on the guest\n"
255 "  * disk image.\n"
256 "  */\n"
257 " guestfs_touch (g, \"/hello\");\n"
258 " \n"
259 msgstr ""
260
261 # type: verbatim
262 #. type: verbatim
263 #: ../src/guestfs.pod:103
264 #, no-wrap
265 msgid ""
266 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
267 "  * it is done automatically when you close the handle.  See\n"
268 "  * discussion of autosync in this page.\n"
269 "  */\n"
270 " guestfs_sync (g);\n"
271 " \n"
272 msgstr ""
273
274 # type: verbatim
275 #. type: verbatim
276 #: ../src/guestfs.pod:109
277 #, no-wrap
278 msgid ""
279 " /* Close the handle 'g'. */\n"
280 " guestfs_close (g);\n"
281 "\n"
282 msgstr ""
283
284 # type: textblock
285 #. type: textblock
286 #: ../src/guestfs.pod:112
287 msgid ""
288 "The code above doesn't include any error checking.  In real code you should "
289 "check return values carefully for errors.  In general all functions that "
290 "return integers return C<-1> on error, and all functions that return "
291 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
292 "how to handle errors, and consult the documentation for each function call "
293 "below to see precisely how they return error indications.  See L<guestfs-"
294 "examples(3)> for fully worked examples."
295 msgstr ""
296
297 # type: =head2
298 #. type: =head2
299 #: ../src/guestfs.pod:121
300 msgid "DISK IMAGES"
301 msgstr ""
302
303 # type: textblock
304 #. type: textblock
305 #: ../src/guestfs.pod:123
306 msgid ""
307 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
308 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
309 "actual block device, or simply an empty file of zeroes that you have created "
310 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
311 "of these."
312 msgstr ""
313
314 # type: textblock
315 #. type: textblock
316 #: ../src/guestfs.pod:129
317 msgid ""
318 "The call you should use in modern code for adding drives is L</"
319 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
320 "specifying that the format is raw, do:"
321 msgstr ""
322
323 # type: verbatim
324 #. type: verbatim
325 #: ../src/guestfs.pod:133
326 #, no-wrap
327 msgid ""
328 " guestfs_add_drive_opts (g, filename,\n"
329 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
330 "                         -1);\n"
331 "\n"
332 msgstr ""
333
334 # type: textblock
335 #. type: textblock
336 #: ../src/guestfs.pod:137
337 msgid "You can add a disk read-only using:"
338 msgstr ""
339
340 # type: verbatim
341 #. type: verbatim
342 #: ../src/guestfs.pod:139
343 #, no-wrap
344 msgid ""
345 " guestfs_add_drive_opts (g, filename,\n"
346 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
347 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
348 "                         -1);\n"
349 "\n"
350 msgstr ""
351
352 # type: textblock
353 #. type: textblock
354 #: ../src/guestfs.pod:144
355 msgid ""
356 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
357 "libguestfs won't modify the file."
358 msgstr ""
359
360 # type: textblock
361 #. type: textblock
362 #: ../src/guestfs.pod:147
363 msgid ""
364 "Be extremely cautious if the disk image is in use, eg. if it is being used "
365 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
366 "corruption, but adding it read-only is safe."
367 msgstr ""
368
369 # type: textblock
370 #. type: textblock
371 #: ../src/guestfs.pod:151
372 msgid ""
373 "You must add at least one disk image, and you may add multiple disk images.  "
374 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
375 "first one you added), C</dev/sdb> (for the second one you added), etc."
376 msgstr ""
377
378 # type: textblock
379 #. type: textblock
380 #: ../src/guestfs.pod:156
381 msgid ""
382 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
383 "can call L</guestfs_list_devices> to get a list of the device names, in the "
384 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
385 msgstr ""
386
387 # type: =head2
388 #. type: =head2
389 #: ../src/guestfs.pod:161
390 msgid "MOUNTING"
391 msgstr ""
392
393 #. type: textblock
394 #: ../src/guestfs.pod:163
395 msgid ""
396 "Before you can read or write files, create directories and so on in a disk "
397 "image that contains filesystems, you have to mount those filesystems using "
398 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
399 "a disk image contains (for example) one partition with a filesystem on that "
400 "partition, then you can mount it directly:"
401 msgstr ""
402
403 #. type: verbatim
404 #: ../src/guestfs.pod:170
405 #, no-wrap
406 msgid ""
407 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
408 "\n"
409 msgstr ""
410
411 #. type: textblock
412 #: ../src/guestfs.pod:172
413 msgid ""
414 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
415 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
416 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
417 "that these are libguestfs virtual devices, and are nothing to do with host "
418 "devices."
419 msgstr ""
420
421 #. type: textblock
422 #: ../src/guestfs.pod:178
423 msgid ""
424 "If you are given a disk image and you don't know what it contains then you "
425 "have to find out.  Libguestfs can do that too: use L</"
426 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
427 "LVs, and either try mounting each to see what is mountable, or else examine "
428 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
429 "filesystems, use L</guestfs_list_filesystems>."
430 msgstr ""
431
432 #. type: textblock
433 #: ../src/guestfs.pod:186
434 msgid ""
435 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
436 "L</INSPECTION> below).  But you might find it easier to look at higher level "
437 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
438 msgstr ""
439
440 #. type: textblock
441 #: ../src/guestfs.pod:191
442 msgid ""
443 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
444 "several other variations of the C<guestfs_mount_*> call."
445 msgstr ""
446
447 # type: =head2
448 #. type: =head2
449 #: ../src/guestfs.pod:194
450 msgid "FILESYSTEM ACCESS AND MODIFICATION"
451 msgstr ""
452
453 # type: textblock
454 #. type: textblock
455 #: ../src/guestfs.pod:196
456 msgid ""
457 "The majority of the libguestfs API consists of fairly low-level calls for "
458 "accessing and modifying the files, directories, symlinks etc on mounted "
459 "filesystems.  There are over a hundred such calls which you can find listed "
460 "in detail below in this man page, and we don't even pretend to cover them "
461 "all in this overview."
462 msgstr ""
463
464 # type: textblock
465 #. type: textblock
466 #: ../src/guestfs.pod:202
467 msgid ""
468 "Specify filenames as full paths, starting with C<\"/\"> and including the "
469 "mount point."
470 msgstr ""
471
472 # type: textblock
473 #. type: textblock
474 #: ../src/guestfs.pod:205
475 msgid ""
476 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
477 "the file called C<\"etc/passwd\"> then you could do:"
478 msgstr ""
479
480 # type: verbatim
481 #. type: verbatim
482 #: ../src/guestfs.pod:208
483 #, no-wrap
484 msgid ""
485 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
486 "\n"
487 msgstr ""
488
489 # type: textblock
490 #. type: textblock
491 #: ../src/guestfs.pod:210
492 msgid ""
493 "This would return C<data> as a newly allocated buffer containing the full "
494 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
495 "or C<NULL> if there was an error."
496 msgstr ""
497
498 # type: textblock
499 #. type: textblock
500 #: ../src/guestfs.pod:214
501 msgid ""
502 "As another example, to create a top-level directory on that filesystem "
503 "called C<\"var\"> you would do:"
504 msgstr ""
505
506 # type: verbatim
507 #. type: verbatim
508 #: ../src/guestfs.pod:217
509 #, no-wrap
510 msgid ""
511 " guestfs_mkdir (g, \"/var\");\n"
512 "\n"
513 msgstr ""
514
515 # type: textblock
516 #. type: textblock
517 #: ../src/guestfs.pod:219
518 msgid "To create a symlink you could do:"
519 msgstr ""
520
521 # type: verbatim
522 #. type: verbatim
523 #: ../src/guestfs.pod:221
524 #, no-wrap
525 msgid ""
526 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
527 "               \"/etc/rc3.d/S30portmap\");\n"
528 "\n"
529 msgstr ""
530
531 # type: textblock
532 #. type: textblock
533 #: ../src/guestfs.pod:224
534 msgid ""
535 "Libguestfs will reject attempts to use relative paths and there is no "
536 "concept of a current working directory."
537 msgstr ""
538
539 # type: textblock
540 #. type: textblock
541 #: ../src/guestfs.pod:227
542 msgid ""
543 "Libguestfs can return errors in many situations: for example if the "
544 "filesystem isn't writable, or if a file or directory that you requested "
545 "doesn't exist.  If you are using the C API (documented here)  you have to "
546 "check for those error conditions after each call.  (Other language bindings "
547 "turn these errors into exceptions)."
548 msgstr ""
549
550 # type: textblock
551 #. type: textblock
552 #: ../src/guestfs.pod:233
553 msgid ""
554 "File writes are affected by the per-handle umask, set by calling L</"
555 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
556 msgstr ""
557
558 # type: =head2
559 #. type: =head2
560 #: ../src/guestfs.pod:236
561 msgid "PARTITIONING"
562 msgstr ""
563
564 # type: textblock
565 #. type: textblock
566 #: ../src/guestfs.pod:238
567 msgid ""
568 "Libguestfs contains API calls to read, create and modify partition tables on "
569 "disk images."
570 msgstr ""
571
572 # type: textblock
573 #. type: textblock
574 #: ../src/guestfs.pod:241
575 msgid ""
576 "In the common case where you want to create a single partition covering the "
577 "whole disk, you should use the L</guestfs_part_disk> call:"
578 msgstr ""
579
580 # type: verbatim
581 #. type: verbatim
582 #: ../src/guestfs.pod:245
583 #, no-wrap
584 msgid ""
585 " const char *parttype = \"mbr\";\n"
586 " if (disk_is_larger_than_2TB)\n"
587 "   parttype = \"gpt\";\n"
588 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
589 "\n"
590 msgstr ""
591
592 # type: textblock
593 #. type: textblock
594 #: ../src/guestfs.pod:250
595 msgid ""
596 "Obviously this effectively wipes anything that was on that disk image before."
597 msgstr ""
598
599 # type: =head2
600 #. type: =head2
601 #: ../src/guestfs.pod:253
602 msgid "LVM2"
603 msgstr ""
604
605 # type: textblock
606 #. type: textblock
607 #: ../src/guestfs.pod:255
608 msgid ""
609 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
610 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
611 "you familiarize yourself with the concepts of physical volumes, volume "
612 "groups and logical volumes."
613 msgstr ""
614
615 # type: textblock
616 #. type: textblock
617 #: ../src/guestfs.pod:260
618 msgid ""
619 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
620 "tldp.org/HOWTO/LVM-HOWTO/>."
621 msgstr ""
622
623 # type: =head2
624 #. type: =head2
625 #: ../src/guestfs.pod:263
626 msgid "DOWNLOADING"
627 msgstr ""
628
629 #. type: textblock
630 #: ../src/guestfs.pod:265
631 msgid ""
632 "Use L</guestfs_cat> to download small, text only files.  This call is "
633 "limited to files which are less than 2 MB and which cannot contain any ASCII "
634 "NUL (C<\\0>) characters.  However the API is very simple to use."
635 msgstr ""
636
637 # type: textblock
638 #. type: textblock
639 #: ../src/guestfs.pod:269
640 msgid ""
641 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
642 "bit data, since it returns a (pointer, size) pair.  However it is still "
643 "limited to \"small\" files, less than 2 MB."
644 msgstr ""
645
646 # type: textblock
647 #. type: textblock
648 #: ../src/guestfs.pod:273
649 msgid ""
650 "L</guestfs_download> can be used to download any file, with no limits on "
651 "content or size (even files larger than 4 GB)."
652 msgstr ""
653
654 # type: textblock
655 #. type: textblock
656 #: ../src/guestfs.pod:276
657 msgid ""
658 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
659 msgstr ""
660
661 # type: =head2
662 #. type: =head2
663 #: ../src/guestfs.pod:279
664 msgid "UPLOADING"
665 msgstr ""
666
667 # type: textblock
668 #. type: textblock
669 #: ../src/guestfs.pod:281
670 msgid ""
671 "It's often the case that you want to write a file or files to the disk image."
672 msgstr ""
673
674 # type: textblock
675 #. type: textblock
676 #: ../src/guestfs.pod:284
677 msgid ""
678 "To write a small file with fixed content, use L</guestfs_write>.  To create "
679 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
680 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
681 "of other functions for creating test files, for example L</guestfs_fill> and "
682 "L</guestfs_fill_pattern>."
683 msgstr ""
684
685 # type: textblock
686 #. type: textblock
687 #: ../src/guestfs.pod:290
688 msgid ""
689 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
690 "file content or size (even files larger than 4 GB)."
691 msgstr ""
692
693 # type: textblock
694 #. type: textblock
695 #: ../src/guestfs.pod:293
696 msgid ""
697 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
698 msgstr ""
699
700 # type: textblock
701 #. type: textblock
702 #: ../src/guestfs.pod:295
703 msgid ""
704 "However the fastest way to upload I<large numbers of arbitrary files> is to "
705 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
706 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
707 "in a predictable way (eg. adding it last after all other drives) then you "
708 "can get the device name from L</guestfs_list_devices> and mount it directly "
709 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
710 "portable between kernel versions, and they don't support labels or UUIDs.  "
711 "If you want to pre-build an image or you need to mount it using a label or "
712 "UUID, use an ISO image instead."
713 msgstr ""
714
715 # type: =head2
716 #. type: =head2
717 #: ../src/guestfs.pod:306
718 msgid "COPYING"
719 msgstr ""
720
721 # type: textblock
722 #. type: textblock
723 #: ../src/guestfs.pod:308
724 msgid ""
725 "There are various different commands for copying between files and devices "
726 "and in and out of the guest filesystem.  These are summarised in the table "
727 "below."
728 msgstr ""
729
730 # type: =item
731 #. type: =item
732 #: ../src/guestfs.pod:314
733 msgid "B<file> to B<file>"
734 msgstr ""
735
736 # type: textblock
737 #. type: textblock
738 #: ../src/guestfs.pod:316
739 msgid ""
740 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
741 "directories recursively."
742 msgstr ""
743
744 # type: =item
745 #. type: =item
746 #: ../src/guestfs.pod:319
747 msgid "B<file or device> to B<file or device>"
748 msgstr ""
749
750 # type: textblock
751 #. type: textblock
752 #: ../src/guestfs.pod:321
753 msgid ""
754 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
755 "devices in the guest."
756 msgstr ""
757
758 # type: textblock
759 #. type: textblock
760 #: ../src/guestfs.pod:324
761 msgid "Example: duplicate the contents of an LV:"
762 msgstr ""
763
764 # type: verbatim
765 #. type: verbatim
766 #: ../src/guestfs.pod:326
767 #, no-wrap
768 msgid ""
769 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
770 "\n"
771 msgstr ""
772
773 # type: textblock
774 #. type: textblock
775 #: ../src/guestfs.pod:328
776 msgid ""
777 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
778 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
779 "guestfs_copy_size>."
780 msgstr ""
781
782 # type: =item
783 #. type: =item
784 #: ../src/guestfs.pod:332
785 msgid "B<file on the host> to B<file or device>"
786 msgstr ""
787
788 # type: textblock
789 #. type: textblock
790 #: ../src/guestfs.pod:334
791 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
792 msgstr ""
793
794 # type: =item
795 #. type: =item
796 #: ../src/guestfs.pod:336
797 msgid "B<file or device> to B<file on the host>"
798 msgstr ""
799
800 # type: textblock
801 #. type: textblock
802 #: ../src/guestfs.pod:338
803 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
804 msgstr ""
805
806 # type: =head2
807 #. type: =head2
808 #: ../src/guestfs.pod:342
809 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
810 msgstr ""
811
812 # type: textblock
813 #. type: textblock
814 #: ../src/guestfs.pod:344
815 msgid ""
816 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
817 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
818 "appears you can only upload and download to files.  However many Un*x-like "
819 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
820 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
821 "and arbitrary file descriptor N."
822 msgstr ""
823
824 # type: textblock
825 #. type: textblock
826 #: ../src/guestfs.pod:352
827 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
828 msgstr ""
829
830 #. type: verbatim
831 #: ../src/guestfs.pod:355
832 #, no-wrap
833 msgid ""
834 " guestfs_download (g, filename, \"/dev/stdout\");\n"
835 "\n"
836 msgstr ""
837
838 #. type: textblock
839 #: ../src/guestfs.pod:357
840 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
841 msgstr ""
842
843 #. type: verbatim
844 #: ../src/guestfs.pod:359
845 #, no-wrap
846 msgid ""
847 " char devfd[64];\n"
848 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
849 " guestfs_tar_out (g, \"/\", devfd);\n"
850 "\n"
851 msgstr ""
852
853 # type: =head2
854 #. type: =head2
855 #: ../src/guestfs.pod:363
856 msgid "LISTING FILES"
857 msgstr ""
858
859 # type: textblock
860 #. type: textblock
861 #: ../src/guestfs.pod:365
862 msgid ""
863 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
864 "L<guestfish(1)>-equivalent command C<ll>)."
865 msgstr ""
866
867 # type: textblock
868 #. type: textblock
869 #: ../src/guestfs.pod:368
870 msgid ""
871 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
872 "programs, as a flat list of strings."
873 msgstr ""
874
875 # type: textblock
876 #. type: textblock
877 #: ../src/guestfs.pod:371
878 msgid ""
879 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
880 "directory, plus additional information about each one.  It is more "
881 "equivalent to using the L<readdir(3)> call on a local filesystem."
882 msgstr ""
883
884 # type: textblock
885 #. type: textblock
886 #: ../src/guestfs.pod:375
887 msgid ""
888 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
889 msgstr ""
890
891 # type: =head2
892 #. type: =head2
893 #: ../src/guestfs.pod:378
894 msgid "RUNNING COMMANDS"
895 msgstr ""
896
897 # type: textblock
898 #. type: textblock
899 #: ../src/guestfs.pod:380
900 msgid ""
901 "Although libguestfs is primarily an API for manipulating files inside guest "
902 "images, we also provide some limited facilities for running commands inside "
903 "guests."
904 msgstr ""
905
906 # type: textblock
907 #. type: textblock
908 #: ../src/guestfs.pod:384
909 msgid "There are many limitations to this:"
910 msgstr ""
911
912 # type: =item
913 #. type: =item
914 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
915 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
916 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
917 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
918 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
919 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
920 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
921 #: ../src/guestfs.pod:1643 ../src/guestfs.pod:1648 ../src/guestfs.pod:1652
922 #: ../src/guestfs.pod:1754 ../src/guestfs.pod:1759 ../src/guestfs.pod:1763
923 #: ../src/guestfs.pod:1773 ../src/guestfs.pod:2047 ../src/guestfs.pod:2052
924 #: ../src/guestfs.pod:2058 ../src/guestfs.pod:2066 ../src/guestfs.pod:2420
925 #: ../src/guestfs.pod:2426 ../src/guestfs.pod:2431 ../src/guestfs.pod:2437
926 #: ../src/guestfs.pod:3011 ../src/guestfs.pod:3015 ../src/guestfs.pod:3019
927 #: ../src/guestfs.pod:3023 ../src/guestfs-actions.pod:15
928 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:583
929 #: ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598
930 #: ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1662
931 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1670
932 #: ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1682
933 #: ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1690
934 #: ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1704
935 #: ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1846
936 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855
937 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1921
938 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1930
939 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2863
940 #: ../src/guestfs-actions.pod:2871 ../src/guestfs-actions.pod:2878
941 #: ../src/guestfs-actions.pod:2885 ../fish/guestfish.pod:445
942 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
943 #: ../fish/guestfish.pod:457 ../fish/guestfish-actions.pod:13
944 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:385
945 #: ../fish/guestfish-actions.pod:393 ../fish/guestfish-actions.pod:400
946 #: ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:1099
947 #: ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107
948 #: ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1119
949 #: ../fish/guestfish-actions.pod:1123 ../fish/guestfish-actions.pod:1127
950 #: ../fish/guestfish-actions.pod:1137 ../fish/guestfish-actions.pod:1141
951 #: ../fish/guestfish-actions.pod:1145 ../fish/guestfish-actions.pod:1235
952 #: ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1244
953 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1291
954 #: ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:1300
955 #: ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1939
956 #: ../fish/guestfish-actions.pod:1947 ../fish/guestfish-actions.pod:1954
957 #: ../fish/guestfish-actions.pod:1961 ../tools/virt-win-reg.pl:195
958 #: ../tools/virt-win-reg.pl:200 ../tools/virt-win-reg.pl:206
959 #: ../tools/virt-win-reg.pl:708 ../tools/virt-win-reg.pl:714
960 #: ../tools/virt-win-reg.pl:720
961 msgid "*"
962 msgstr ""
963
964 # type: textblock
965 #. type: textblock
966 #: ../src/guestfs.pod:390
967 msgid ""
968 "The kernel version that the command runs under will be different from what "
969 "it expects."
970 msgstr ""
971
972 # type: textblock
973 #. type: textblock
974 #: ../src/guestfs.pod:395
975 msgid ""
976 "If the command needs to communicate with daemons, then most likely they "
977 "won't be running."
978 msgstr ""
979
980 # type: textblock
981 #. type: textblock
982 #: ../src/guestfs.pod:400
983 msgid "The command will be running in limited memory."
984 msgstr ""
985
986 # type: textblock
987 #. type: textblock
988 #: ../src/guestfs.pod:404
989 msgid ""
990 "The network may not be available unless you enable it (see L</"
991 "guestfs_set_network>)."
992 msgstr ""
993
994 # type: textblock
995 #. type: textblock
996 #: ../src/guestfs.pod:409
997 msgid "Only supports Linux guests (not Windows, BSD, etc)."
998 msgstr ""
999
1000 # type: textblock
1001 #. type: textblock
1002 #: ../src/guestfs.pod:413
1003 msgid ""
1004 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1005 msgstr ""
1006
1007 # type: textblock
1008 #. type: textblock
1009 #: ../src/guestfs.pod:418
1010 msgid ""
1011 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1012 "See L</SELINUX> in this manpage."
1013 msgstr ""
1014
1015 # type: textblock
1016 #. type: textblock
1017 #: ../src/guestfs.pod:423
1018 msgid ""
1019 "I<Security:> It is not safe to run commands from untrusted, possibly "
1020 "malicious guests.  These commands may attempt to exploit your program by "
1021 "sending unexpected output.  They could also try to exploit the Linux kernel "
1022 "or qemu provided by the libguestfs appliance.  They could use the network "
1023 "provided by the libguestfs appliance to bypass ordinary network partitions "
1024 "and firewalls.  They could use the elevated privileges or different SELinux "
1025 "context of your program to their advantage."
1026 msgstr ""
1027
1028 # type: textblock
1029 #. type: textblock
1030 #: ../src/guestfs.pod:432
1031 msgid ""
1032 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1033 "(a script which runs when the guest next boots normally), and to have this "
1034 "script run the commands you want in the normal context of the running guest, "
1035 "network security and so on.  For information about other security issues, "
1036 "see L</SECURITY>."
1037 msgstr ""
1038
1039 # type: textblock
1040 #. type: textblock
1041 #: ../src/guestfs.pod:440
1042 msgid ""
1043 "The two main API calls to run commands are L</guestfs_command> and L</"
1044 "guestfs_sh> (there are also variations)."
1045 msgstr ""
1046
1047 # type: textblock
1048 #. type: textblock
1049 #: ../src/guestfs.pod:443
1050 msgid ""
1051 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1052 "shell globs, redirections, etc will work."
1053 msgstr ""
1054
1055 # type: =head2
1056 #. type: =head2
1057 #: ../src/guestfs.pod:446
1058 msgid "CONFIGURATION FILES"
1059 msgstr ""
1060
1061 # type: textblock
1062 #. type: textblock
1063 #: ../src/guestfs.pod:448
1064 msgid ""
1065 "To read and write configuration files in Linux guest filesystems, we "
1066 "strongly recommend using Augeas.  For example, Augeas understands how to "
1067 "read and write, say, a Linux shadow password file or X.org configuration "
1068 "file, and so avoids you having to write that code."
1069 msgstr ""
1070
1071 # type: textblock
1072 #. type: textblock
1073 #: ../src/guestfs.pod:453
1074 msgid ""
1075 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1076 "document Augeas itself here because there is excellent documentation on the "
1077 "L<http://augeas.net/> website."
1078 msgstr ""
1079
1080 # type: textblock
1081 #. type: textblock
1082 #: ../src/guestfs.pod:457
1083 msgid ""
1084 "If you don't want to use Augeas (you fool!) then try calling L</"
1085 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1086 "over."
1087 msgstr ""
1088
1089 # type: =head2
1090 #. type: =head2
1091 #: ../src/guestfs.pod:461
1092 msgid "SELINUX"
1093 msgstr ""
1094
1095 # type: textblock
1096 #. type: textblock
1097 #: ../src/guestfs.pod:463
1098 msgid ""
1099 "We support SELinux guests.  To ensure that labeling happens correctly in "
1100 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1101 msgstr ""
1102
1103 # type: =item
1104 #. type: =item
1105 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1395
1106 #: ../src/guestfs.pod:2465
1107 msgid "1."
1108 msgstr ""
1109
1110 # type: textblock
1111 #. type: textblock
1112 #: ../src/guestfs.pod:471
1113 msgid "Before launching, do:"
1114 msgstr ""
1115
1116 # type: verbatim
1117 #. type: verbatim
1118 #: ../src/guestfs.pod:473
1119 #, no-wrap
1120 msgid ""
1121 " guestfs_set_selinux (g, 1);\n"
1122 "\n"
1123 msgstr ""
1124
1125 # type: =item
1126 #. type: =item
1127 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1399
1128 #: ../src/guestfs.pod:2490
1129 msgid "2."
1130 msgstr ""
1131
1132 # type: textblock
1133 #. type: textblock
1134 #: ../src/guestfs.pod:477
1135 msgid ""
1136 "After mounting the guest's filesystem(s), load the policy.  This is best "
1137 "done by running the L<load_policy(8)> command in the guest itself:"
1138 msgstr ""
1139
1140 # type: verbatim
1141 #. type: verbatim
1142 #: ../src/guestfs.pod:481
1143 #, no-wrap
1144 msgid ""
1145 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1146 "\n"
1147 msgstr ""
1148
1149 # type: textblock
1150 #. type: textblock
1151 #: ../src/guestfs.pod:483
1152 msgid ""
1153 "(Older versions of C<load_policy> require you to specify the name of the "
1154 "policy file)."
1155 msgstr ""
1156
1157 # type: =item
1158 #. type: =item
1159 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1405
1160 msgid "3."
1161 msgstr ""
1162
1163 # type: textblock
1164 #. type: textblock
1165 #: ../src/guestfs.pod:488
1166 msgid ""
1167 "Optionally, set the security context for the API.  The correct security "
1168 "context to use can only be known by inspecting the guest.  As an example:"
1169 msgstr ""
1170
1171 # type: verbatim
1172 #. type: verbatim
1173 #: ../src/guestfs.pod:492
1174 #, no-wrap
1175 msgid ""
1176 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1177 "\n"
1178 msgstr ""
1179
1180 # type: textblock
1181 #. type: textblock
1182 #: ../src/guestfs.pod:496
1183 msgid "This will work for running commands and editing existing files."
1184 msgstr ""
1185
1186 # type: textblock
1187 #. type: textblock
1188 #: ../src/guestfs.pod:498
1189 msgid ""
1190 "When new files are created, you may need to label them explicitly, for "
1191 "example by running the external command C<restorecon pathname>."
1192 msgstr ""
1193
1194 # type: =head2
1195 #. type: =head2
1196 #: ../src/guestfs.pod:502
1197 msgid "UMASK"
1198 msgstr ""
1199
1200 # type: textblock
1201 #. type: textblock
1202 #: ../src/guestfs.pod:504
1203 msgid ""
1204 "Certain calls are affected by the current file mode creation mask (the "
1205 "\"umask\").  In particular ones which create files or directories, such as "
1206 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1207 "either the default mode that the file is created with or modifies the mode "
1208 "that you supply."
1209 msgstr ""
1210
1211 # type: textblock
1212 #. type: textblock
1213 #: ../src/guestfs.pod:510
1214 msgid ""
1215 "The default umask is C<022>, so files are created with modes such as C<0644> "
1216 "and directories with C<0755>."
1217 msgstr ""
1218
1219 # type: textblock
1220 #. type: textblock
1221 #: ../src/guestfs.pod:513
1222 msgid ""
1223 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1224 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1225 "guestfs_chmod> after creating each file or directory."
1226 msgstr ""
1227
1228 # type: textblock
1229 #. type: textblock
1230 #: ../src/guestfs.pod:517
1231 msgid "For more information about umask, see L<umask(2)>."
1232 msgstr ""
1233
1234 # type: =head1
1235 #. type: =head1
1236 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:825
1237 msgid "ENCRYPTED DISKS"
1238 msgstr ""
1239
1240 # type: textblock
1241 #. type: textblock
1242 #: ../src/guestfs.pod:521
1243 msgid ""
1244 "Libguestfs allows you to access Linux guests which have been encrypted using "
1245 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1246 "standard.  This includes nearly all whole disk encryption systems used by "
1247 "modern Linux guests."
1248 msgstr ""
1249
1250 # type: textblock
1251 #. type: textblock
1252 #: ../src/guestfs.pod:527
1253 msgid ""
1254 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1255 "returns the string C<crypto_LUKS>)."
1256 msgstr ""
1257
1258 # type: textblock
1259 #. type: textblock
1260 #: ../src/guestfs.pod:530
1261 msgid ""
1262 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1263 "will require the passphrase!"
1264 msgstr ""
1265
1266 # type: textblock
1267 #. type: textblock
1268 #: ../src/guestfs.pod:533
1269 msgid ""
1270 "Opening a LUKS device creates a new device mapper device called C</dev/"
1271 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1272 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1273 "from and encrypted to the underlying block device respectively."
1274 msgstr ""
1275
1276 # type: textblock
1277 #. type: textblock
1278 #: ../src/guestfs.pod:539
1279 msgid ""
1280 "LVM volume groups on the device can be made visible by calling L</"
1281 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1282 "(s) can now be mounted in the usual way."
1283 msgstr ""
1284
1285 # type: textblock
1286 #. type: textblock
1287 #: ../src/guestfs.pod:543
1288 msgid ""
1289 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1290 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1291 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1292 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1293 "underlying encrypted block device)."
1294 msgstr ""
1295
1296 # type: =head2
1297 #. type: =head2
1298 #: ../src/guestfs.pod:550
1299 msgid "INSPECTION"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../src/guestfs.pod:552
1304 msgid ""
1305 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1306 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1307 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1308 "version 1.5.3 the most frequently used part of this library has been "
1309 "rewritten in C and moved into the core code)."
1310 msgstr ""
1311
1312 # type: textblock
1313 #. type: textblock
1314 #: ../src/guestfs.pod:559
1315 msgid ""
1316 "Add all disks belonging to the unknown virtual machine and call L</"
1317 "guestfs_launch> in the usual way."
1318 msgstr ""
1319
1320 # type: textblock
1321 #. type: textblock
1322 #: ../src/guestfs.pod:562
1323 msgid ""
1324 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1325 "and certain heuristics, and returns a list of operating systems that were "
1326 "found.  An empty list means none were found.  A single element is the root "
1327 "filesystem of the operating system.  For dual- or multi-boot guests, "
1328 "multiple roots can be returned, each one corresponding to a separate "
1329 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1330 "world of virtualization, but since this scenario can happen, we have built "
1331 "libguestfs to deal with it.)"
1332 msgstr ""
1333
1334 # type: textblock
1335 #. type: textblock
1336 #: ../src/guestfs.pod:571
1337 msgid ""
1338 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1339 "to get additional details about that operating system.  For example, call L</"
1340 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1341 "Windows and Linux-based operating systems respectively."
1342 msgstr ""
1343
1344 # type: textblock
1345 #. type: textblock
1346 #: ../src/guestfs.pod:577
1347 msgid ""
1348 "Un*x-like and Linux-based operating systems usually consist of several "
1349 "filesystems which are mounted at boot time (for example, a separate boot "
1350 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1351 "filesystems correspond to mount points.  Call "
1352 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1353 "hash table like this example:"
1354 msgstr ""
1355
1356 # type: verbatim
1357 #. type: verbatim
1358 #: ../src/guestfs.pod:584
1359 #, no-wrap
1360 msgid ""
1361 " /boot => /dev/sda1\n"
1362 " /     => /dev/vg_guest/lv_root\n"
1363 " /usr  => /dev/vg_guest/lv_usr\n"
1364 "\n"
1365 msgstr ""
1366
1367 # type: textblock
1368 #. type: textblock
1369 #: ../src/guestfs.pod:588
1370 msgid ""
1371 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1372 "filesystems as suggested."
1373 msgstr ""
1374
1375 # type: textblock
1376 #. type: textblock
1377 #: ../src/guestfs.pod:591
1378 msgid ""
1379 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1380 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1381 msgstr ""
1382
1383 # type: textblock
1384 #. type: textblock
1385 #: ../src/guestfs.pod:595
1386 msgid ""
1387 "Inspection currently only works for some common operating systems.  "
1388 "Contributors are welcome to send patches for other operating systems that we "
1389 "currently cannot detect."
1390 msgstr ""
1391
1392 # type: textblock
1393 #. type: textblock
1394 #: ../src/guestfs.pod:599
1395 msgid ""
1396 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1397 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1398 "encrypted devices."
1399 msgstr ""
1400
1401 # type: textblock
1402 #. type: textblock
1403 #: ../src/guestfs.pod:603
1404 msgid ""
1405 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1406 "inspection and caches the results in the guest handle.  Subsequent calls to "
1407 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1408 "read the disks.  If you change the content of the guest disks, you can redo "
1409 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1410 "guestfs_inspect_list_applications> works a little differently from the other "
1411 "calls and does read the disks.  See documentation for that function for "
1412 "details)."
1413 msgstr ""
1414
1415 #. type: =head3
1416 #: ../src/guestfs.pod:612
1417 msgid "INSPECTING INSTALL DISKS"
1418 msgstr ""
1419
1420 #. type: textblock
1421 #: ../src/guestfs.pod:614
1422 msgid ""
1423 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1424 "CDs and more."
1425 msgstr ""
1426
1427 #. type: textblock
1428 #: ../src/guestfs.pod:617
1429 msgid ""
1430 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1431 "system, which currently can be C<installed> (a regular operating system) or "
1432 "C<installer> (some sort of install disk)."
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../src/guestfs.pod:621
1437 msgid ""
1438 "Further information is available about the operating system that can be "
1439 "installed using the regular inspection APIs like L</"
1440 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../src/guestfs.pod:626
1445 msgid ""
1446 "Some additional information specific to installer disks is also available "
1447 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1448 "guestfs_inspect_is_multipart> calls."
1449 msgstr ""
1450
1451 # type: =head2
1452 #. type: =head2
1453 #: ../src/guestfs.pod:631
1454 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1455 msgstr ""
1456
1457 # type: textblock
1458 #. type: textblock
1459 #: ../src/guestfs.pod:633
1460 msgid ""
1461 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1462 "ntfs-3g.org/> driver."
1463 msgstr ""
1464
1465 # type: =head3
1466 #. type: =head3
1467 #: ../src/guestfs.pod:636
1468 msgid "DRIVE LETTERS AND PATHS"
1469 msgstr ""
1470
1471 # type: textblock
1472 #. type: textblock
1473 #: ../src/guestfs.pod:638
1474 msgid ""
1475 "DOS and Windows still use drive letters, and the filesystems are always "
1476 "treated as case insensitive by Windows itself, and therefore you might find "
1477 "a Windows configuration file referring to a path like C<c:\\windows"
1478 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1479 "might be referred to as C</WINDOWS/System32>."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../src/guestfs.pod:644
1484 msgid ""
1485 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
1486 "L</guestfs_inspect_get_drive_mappings>)"
1487 msgstr ""
1488
1489 #. type: textblock
1490 #: ../src/guestfs.pod:647
1491 msgid ""
1492 "Dealing with separator characters (backslash vs forward slash) is outside "
1493 "the scope of libguestfs, but usually a simple character replacement will "
1494 "work."
1495 msgstr ""
1496
1497 #. type: textblock
1498 #: ../src/guestfs.pod:651
1499 msgid ""
1500 "To resolve the case insensitivity of paths, call L</"
1501 "guestfs_case_sensitive_path>."
1502 msgstr ""
1503
1504 # type: =head3
1505 #. type: =head3
1506 #: ../src/guestfs.pod:654
1507 msgid "ACCESSING THE WINDOWS REGISTRY"
1508 msgstr ""
1509
1510 # type: textblock
1511 #. type: textblock
1512 #: ../src/guestfs.pod:656
1513 msgid ""
1514 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1515 "files, through the library C<hivex> which is part of the libguestfs project "
1516 "although ships as a separate tarball.  You have to locate and download the "
1517 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1518 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1519 "reg(1)> for more help on this issue."
1520 msgstr ""
1521
1522 # type: =head3
1523 #. type: =head3
1524 #: ../src/guestfs.pod:664
1525 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1526 msgstr ""
1527
1528 # type: textblock
1529 #. type: textblock
1530 #: ../src/guestfs.pod:666
1531 msgid ""
1532 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1533 "provide something which looks like a Linux symlink.  The way it tries to do "
1534 "the rewriting is described here:"
1535 msgstr ""
1536
1537 # type: textblock
1538 #. type: textblock
1539 #: ../src/guestfs.pod:670
1540 msgid ""
1541 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1542 "symbolic-links/>"
1543 msgstr ""
1544
1545 # type: textblock
1546 #. type: textblock
1547 #: ../src/guestfs.pod:672
1548 msgid ""
1549 "The essential problem is that ntfs-3g simply does not have enough "
1550 "information to do a correct job.  NTFS links can contain drive letters and "
1551 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1552 "It is almost certainly the case that libguestfs callers should ignore what "
1553 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1554 msgstr ""
1555
1556 # type: textblock
1557 #. type: textblock
1558 #: ../src/guestfs.pod:679
1559 msgid ""
1560 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1561 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1562 "attribute, and read the raw reparse data from that (you can find the format "
1563 "documented in various places around the web)."
1564 msgstr ""
1565
1566 # type: =head3
1567 #. type: =head3
1568 #: ../src/guestfs.pod:684
1569 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1570 msgstr ""
1571
1572 # type: textblock
1573 #. type: textblock
1574 #: ../src/guestfs.pod:686
1575 msgid ""
1576 "There are other useful extended attributes that can be read from ntfs-3g "
1577 "filesystems (using L</guestfs_getxattr>).  See:"
1578 msgstr ""
1579
1580 # type: textblock
1581 #. type: textblock
1582 #: ../src/guestfs.pod:689
1583 msgid ""
1584 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1585 msgstr ""
1586
1587 # type: =head2
1588 #. type: =head2
1589 #: ../src/guestfs.pod:691
1590 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1591 msgstr ""
1592
1593 # type: textblock
1594 #. type: textblock
1595 #: ../src/guestfs.pod:693
1596 msgid ""
1597 "Although we don't want to discourage you from using the C API, we will "
1598 "mention here that the same API is also available in other languages."
1599 msgstr ""
1600
1601 #. type: textblock
1602 #: ../src/guestfs.pod:696
1603 msgid ""
1604 "The API is broadly identical in all supported languages.  This means that "
1605 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1606 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1607 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1608 "each language."
1609 msgstr ""
1610
1611 # type: textblock
1612 #. type: textblock
1613 #: ../src/guestfs.pod:702
1614 msgid ""
1615 "Error messages are automatically transformed into exceptions if the language "
1616 "supports it."
1617 msgstr ""
1618
1619 # type: textblock
1620 #. type: textblock
1621 #: ../src/guestfs.pod:705
1622 msgid ""
1623 "We don't try to \"object orientify\" parts of the API in OO languages, "
1624 "although contributors are welcome to write higher level APIs above what we "
1625 "provide in their favourite languages if they wish."
1626 msgstr ""
1627
1628 # type: =item
1629 #. type: =item
1630 #: ../src/guestfs.pod:711
1631 msgid "B<C++>"
1632 msgstr ""
1633
1634 # type: textblock
1635 #. type: textblock
1636 #: ../src/guestfs.pod:713
1637 msgid ""
1638 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1639 "identical to the C API.  C++ classes and exceptions are not used."
1640 msgstr ""
1641
1642 # type: =item
1643 #. type: =item
1644 #: ../src/guestfs.pod:717
1645 msgid "B<C#>"
1646 msgstr ""
1647
1648 # type: textblock
1649 #. type: textblock
1650 #: ../src/guestfs.pod:719
1651 msgid ""
1652 "The C# bindings are highly experimental.  Please read the warnings at the "
1653 "top of C<csharp/Libguestfs.cs>."
1654 msgstr ""
1655
1656 # type: =item
1657 #. type: =item
1658 #: ../src/guestfs.pod:722
1659 msgid "B<Haskell>"
1660 msgstr ""
1661
1662 # type: textblock
1663 #. type: textblock
1664 #: ../src/guestfs.pod:724
1665 msgid ""
1666 "This is the only language binding that is working but incomplete.  Only "
1667 "calls which return simple integers have been bound in Haskell, and we are "
1668 "looking for help to complete this binding."
1669 msgstr ""
1670
1671 # type: =item
1672 #. type: =item
1673 #: ../src/guestfs.pod:728
1674 msgid "B<Java>"
1675 msgstr ""
1676
1677 # type: textblock
1678 #. type: textblock
1679 #: ../src/guestfs.pod:730
1680 msgid ""
1681 "Full documentation is contained in the Javadoc which is distributed with "
1682 "libguestfs."
1683 msgstr ""
1684
1685 # type: =item
1686 #. type: =item
1687 #: ../src/guestfs.pod:733
1688 msgid "B<OCaml>"
1689 msgstr ""
1690
1691 #. type: textblock
1692 #: ../src/guestfs.pod:735
1693 msgid "See L<guestfs-ocaml(3)>."
1694 msgstr ""
1695
1696 # type: =item
1697 #. type: =item
1698 #: ../src/guestfs.pod:737
1699 msgid "B<Perl>"
1700 msgstr ""
1701
1702 #. type: textblock
1703 #: ../src/guestfs.pod:739
1704 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1705 msgstr ""
1706
1707 # type: =item
1708 #. type: =item
1709 #: ../src/guestfs.pod:741
1710 msgid "B<PHP>"
1711 msgstr ""
1712
1713 # type: textblock
1714 #. type: textblock
1715 #: ../src/guestfs.pod:743
1716 msgid ""
1717 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1718 "the php-libguestfs package for your distribution."
1719 msgstr ""
1720
1721 # type: textblock
1722 #. type: textblock
1723 #: ../src/guestfs.pod:746
1724 msgid "The PHP binding only works correctly on 64 bit machines."
1725 msgstr ""
1726
1727 # type: =item
1728 #. type: =item
1729 #: ../src/guestfs.pod:748
1730 msgid "B<Python>"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../src/guestfs.pod:750
1735 msgid "See L<guestfs-python(3)>."
1736 msgstr ""
1737
1738 # type: =item
1739 #. type: =item
1740 #: ../src/guestfs.pod:752
1741 msgid "B<Ruby>"
1742 msgstr ""
1743
1744 #. type: textblock
1745 #: ../src/guestfs.pod:754
1746 msgid "See L<guestfs-ruby(3)>."
1747 msgstr ""
1748
1749 # type: =item
1750 #. type: =item
1751 #: ../src/guestfs.pod:756
1752 msgid "B<shell scripts>"
1753 msgstr ""
1754
1755 #. type: textblock
1756 #: ../src/guestfs.pod:758
1757 msgid "See L<guestfish(1)>."
1758 msgstr ""
1759
1760 # type: =head2
1761 #. type: =head2
1762 #: ../src/guestfs.pod:762
1763 msgid "LIBGUESTFS GOTCHAS"
1764 msgstr ""
1765
1766 # type: textblock
1767 #. type: textblock
1768 #: ../src/guestfs.pod:764
1769 msgid ""
1770 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1771 "system [...] that works in the way it is documented but is counterintuitive "
1772 "and almost invites mistakes.\""
1773 msgstr ""
1774
1775 # type: textblock
1776 #. type: textblock
1777 #: ../src/guestfs.pod:768
1778 msgid ""
1779 "Since we developed libguestfs and the associated tools, there are several "
1780 "things we would have designed differently, but are now stuck with for "
1781 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1782 "release, you can expect these to change.  Beware of them."
1783 msgstr ""
1784
1785 # type: =item
1786 #. type: =item
1787 #: ../src/guestfs.pod:776
1788 msgid "Autosync / forgetting to sync."
1789 msgstr ""
1790
1791 #. type: textblock
1792 #: ../src/guestfs.pod:778
1793 msgid ""
1794 "I<Update:> Autosync is enabled by default for all API users starting from "
1795 "libguestfs 1.5.24.  This section only applies to older versions."
1796 msgstr ""
1797
1798 # type: textblock
1799 #. type: textblock
1800 #: ../src/guestfs.pod:781
1801 msgid ""
1802 "When modifying a filesystem from C or another language, you B<must> unmount "
1803 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1804 "libguestfs handle.  You can also call:"
1805 msgstr ""
1806
1807 # type: verbatim
1808 #. type: verbatim
1809 #: ../src/guestfs.pod:785
1810 #, no-wrap
1811 msgid ""
1812 " guestfs_set_autosync (g, 1);\n"
1813 "\n"
1814 msgstr ""
1815
1816 # type: textblock
1817 #. type: textblock
1818 #: ../src/guestfs.pod:787
1819 msgid ""
1820 "to have the unmount/sync done automatically for you when the handle 'g' is "
1821 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1822 msgstr ""
1823
1824 # type: textblock
1825 #. type: textblock
1826 #: ../src/guestfs.pod:791
1827 msgid ""
1828 "If you forget to do this, then it is entirely possible that your changes "
1829 "won't be written out, or will be partially written, or (very rarely) that "
1830 "you'll get disk corruption."
1831 msgstr ""
1832
1833 # type: textblock
1834 #. type: textblock
1835 #: ../src/guestfs.pod:795
1836 msgid ""
1837 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1838 "guestfish scripts that forget to sync will work just fine, which can make "
1839 "this very puzzling if you are trying to debug a problem."
1840 msgstr ""
1841
1842 # type: =item
1843 #. type: =item
1844 #: ../src/guestfs.pod:799
1845 msgid "Mount option C<-o sync> should not be the default."
1846 msgstr ""
1847
1848 # type: textblock
1849 #. type: textblock
1850 #: ../src/guestfs.pod:801
1851 msgid ""
1852 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1853 "However C<-o sync> does not add any reliability benefit, but does have a "
1854 "very large performance impact."
1855 msgstr ""
1856
1857 # type: textblock
1858 #. type: textblock
1859 #: ../src/guestfs.pod:805
1860 msgid ""
1861 "The work around is to use L</guestfs_mount_options> and set the mount "
1862 "options that you actually want to use."
1863 msgstr ""
1864
1865 # type: =item
1866 #. type: =item
1867 #: ../src/guestfs.pod:808
1868 msgid "Read-only should be the default."
1869 msgstr ""
1870
1871 # type: textblock
1872 #. type: textblock
1873 #: ../src/guestfs.pod:810
1874 msgid ""
1875 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1876 "specify I<--rw> if you want to make changes to the image."
1877 msgstr ""
1878
1879 # type: textblock
1880 #. type: textblock
1881 #: ../src/guestfs.pod:813
1882 msgid "This would reduce the potential to corrupt live VM images."
1883 msgstr ""
1884
1885 # type: textblock
1886 #. type: textblock
1887 #: ../src/guestfs.pod:815
1888 msgid ""
1889 "Note that many filesystems change the disk when you just mount and unmount, "
1890 "even if you didn't perform any writes.  You need to use L</"
1891 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1892 msgstr ""
1893
1894 # type: =item
1895 #. type: =item
1896 #: ../src/guestfs.pod:819
1897 msgid "guestfish command line is hard to use."
1898 msgstr ""
1899
1900 # type: textblock
1901 #. type: textblock
1902 #: ../src/guestfs.pod:821
1903 msgid ""
1904 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1905 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1906 "exist, so it fails.  In earlier versions of guestfish the error message was "
1907 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1908 "we should have used C<guestfish -c command> to run commands."
1909 msgstr ""
1910
1911 # type: =item
1912 #. type: =item
1913 #: ../src/guestfs.pod:828
1914 msgid "guestfish megabyte modifiers don't work right on all commands"
1915 msgstr ""
1916
1917 # type: textblock
1918 #. type: textblock
1919 #: ../src/guestfs.pod:830
1920 msgid ""
1921 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1922 "other modifiers).  What guestfish actually does is to multiply the number "
1923 "part by the modifier part and pass the result to the C API.  However this "
1924 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1925 "expecting some other unit (eg. megabytes)."
1926 msgstr ""
1927
1928 # type: textblock
1929 #. type: textblock
1930 #: ../src/guestfs.pod:837
1931 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1932 msgstr ""
1933
1934 # type: verbatim
1935 #. type: verbatim
1936 #: ../src/guestfs.pod:839
1937 #, no-wrap
1938 msgid ""
1939 " lvcreate LV VG 100M\n"
1940 "\n"
1941 msgstr ""
1942
1943 # type: textblock
1944 #. type: textblock
1945 #: ../src/guestfs.pod:841
1946 msgid ""
1947 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1948 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1949 "megabytes * megabytes) logical volume.  The error message you get from this "
1950 "is also a little obscure."
1951 msgstr ""
1952
1953 # type: textblock
1954 #. type: textblock
1955 #: ../src/guestfs.pod:846
1956 msgid ""
1957 "This could be fixed in the generator by specially marking parameters and "
1958 "return values which take bytes or other units."
1959 msgstr ""
1960
1961 # type: =item
1962 #. type: =item
1963 #: ../src/guestfs.pod:849
1964 msgid "Ambiguity between devices and paths"
1965 msgstr ""
1966
1967 # type: textblock
1968 #. type: textblock
1969 #: ../src/guestfs.pod:851
1970 msgid ""
1971 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1972 "sdb2>) and a similar pathname.  A file might just happen to be called "
1973 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1974 msgstr ""
1975
1976 # type: textblock
1977 #. type: textblock
1978 #: ../src/guestfs.pod:856
1979 msgid ""
1980 "In the current API we usually resolve this ambiguity by having two separate "
1981 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1982 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1983 "detecting if the path supplied begins with C</dev/>."
1984 msgstr ""
1985
1986 # type: textblock
1987 #. type: textblock
1988 #: ../src/guestfs.pod:862
1989 msgid ""
1990 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1991 "make paths/devices into structured names.  One way to do this would be to "
1992 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1993 "aspect of grub.  Another way would be to use a structured type, equivalent "
1994 "to this OCaml type:"
1995 msgstr ""
1996
1997 # type: verbatim
1998 #. type: verbatim
1999 #: ../src/guestfs.pod:868
2000 #, no-wrap
2001 msgid ""
2002 " type path = Path of string | Device of int | Partition of int * int\n"
2003 "\n"
2004 msgstr ""
2005
2006 # type: textblock
2007 #. type: textblock
2008 #: ../src/guestfs.pod:870
2009 msgid "which would allow you to pass arguments like:"
2010 msgstr ""
2011
2012 # type: verbatim
2013 #. type: verbatim
2014 #: ../src/guestfs.pod:872
2015 #, no-wrap
2016 msgid ""
2017 " Path \"/foo/bar\"\n"
2018 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2019 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2020 " Path \"/dev/sdb2\"    (* not a device *)\n"
2021 "\n"
2022 msgstr ""
2023
2024 # type: textblock
2025 #. type: textblock
2026 #: ../src/guestfs.pod:877
2027 msgid ""
2028 "As you can see there are still problems to resolve even with this "
2029 "representation.  Also consider how it might work in guestfish."
2030 msgstr ""
2031
2032 # type: =head2
2033 #. type: =head2
2034 #: ../src/guestfs.pod:882
2035 msgid "KEYS AND PASSPHRASES"
2036 msgstr ""
2037
2038 # type: textblock
2039 #. type: textblock
2040 #: ../src/guestfs.pod:884
2041 msgid ""
2042 "Certain libguestfs calls take a parameter that contains sensitive key "
2043 "material, passed in as a C string."
2044 msgstr ""
2045
2046 # type: textblock
2047 #. type: textblock
2048 #: ../src/guestfs.pod:887
2049 msgid ""
2050 "In the future we would hope to change the libguestfs implementation so that "
2051 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2052 "swap.  However this is I<not> done at the moment, because of the complexity "
2053 "of such an implementation."
2054 msgstr ""
2055
2056 # type: textblock
2057 #. type: textblock
2058 #: ../src/guestfs.pod:892
2059 msgid ""
2060 "Therefore you should be aware that any key parameter you pass to libguestfs "
2061 "might end up being written out to the swap partition.  If this is a concern, "
2062 "scrub the swap partition or don't use libguestfs on encrypted devices."
2063 msgstr ""
2064
2065 # type: =head1
2066 #. type: =head2
2067 #: ../src/guestfs.pod:897
2068 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2069 msgstr ""
2070
2071 # type: textblock
2072 #. type: textblock
2073 #: ../src/guestfs.pod:899
2074 msgid ""
2075 "All high-level libguestfs actions are synchronous.  If you want to use "
2076 "libguestfs asynchronously then you must create a thread."
2077 msgstr ""
2078
2079 # type: textblock
2080 #. type: textblock
2081 #: ../src/guestfs.pod:902
2082 msgid ""
2083 "Only use the handle from a single thread.  Either use the handle exclusively "
2084 "from one thread, or provide your own mutex so that two threads cannot issue "
2085 "calls on the same handle at the same time."
2086 msgstr ""
2087
2088 # type: textblock
2089 #. type: textblock
2090 #: ../src/guestfs.pod:906
2091 msgid ""
2092 "See the graphical program guestfs-browser for one possible architecture for "
2093 "multithreaded programs using libvirt and libguestfs."
2094 msgstr ""
2095
2096 # type: =head1
2097 #. type: =head2
2098 #: ../src/guestfs.pod:909
2099 msgid "PATH"
2100 msgstr ""
2101
2102 #. type: textblock
2103 #: ../src/guestfs.pod:911
2104 msgid ""
2105 "Libguestfs needs a supermin appliance, which it finds by looking along an "
2106 "internal path."
2107 msgstr ""
2108
2109 # type: textblock
2110 #. type: textblock
2111 #: ../src/guestfs.pod:914
2112 msgid ""
2113 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2114 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2115 msgstr ""
2116
2117 # type: textblock
2118 #. type: textblock
2119 #: ../src/guestfs.pod:917
2120 msgid ""
2121 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2122 "to change the directories that libguestfs will search in.  The value is a "
2123 "colon-separated list of paths.  The current directory is I<not> searched "
2124 "unless the path contains an empty element or C<.>.  For example "
2125 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2126 "then C</usr/lib/guestfs>."
2127 msgstr ""
2128
2129 # type: =head1
2130 #. type: =head2
2131 #: ../src/guestfs.pod:924
2132 msgid "QEMU WRAPPERS"
2133 msgstr ""
2134
2135 # type: textblock
2136 #. type: textblock
2137 #: ../src/guestfs.pod:926
2138 msgid ""
2139 "If you want to compile your own qemu, run qemu from a non-standard location, "
2140 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2141 "around qemu."
2142 msgstr ""
2143
2144 # type: textblock
2145 #. type: textblock
2146 #: ../src/guestfs.pod:930
2147 msgid ""
2148 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2149 "last command in the shell script (so that qemu replaces the shell and "
2150 "becomes the direct child of the libguestfs-using program).  If you don't do "
2151 "this, then the qemu process won't be cleaned up correctly."
2152 msgstr ""
2153
2154 # type: textblock
2155 #. type: textblock
2156 #: ../src/guestfs.pod:935
2157 msgid ""
2158 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2159 "source:"
2160 msgstr ""
2161
2162 # type: verbatim
2163 #. type: verbatim
2164 #: ../src/guestfs.pod:938
2165 #, no-wrap
2166 msgid ""
2167 " #!/bin/sh -\n"
2168 " qemudir=/home/rjones/d/qemu\n"
2169 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2170 "\n"
2171 msgstr ""
2172
2173 # type: textblock
2174 #. type: textblock
2175 #: ../src/guestfs.pod:942
2176 msgid ""
2177 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2178 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2179 "example:"
2180 msgstr ""
2181
2182 # type: verbatim
2183 #. type: verbatim
2184 #: ../src/guestfs.pod:946
2185 #, no-wrap
2186 msgid ""
2187 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2188 "\n"
2189 msgstr ""
2190
2191 # type: textblock
2192 #. type: textblock
2193 #: ../src/guestfs.pod:948
2194 msgid ""
2195 "Note that libguestfs also calls qemu with the -help and -version options in "
2196 "order to determine features."
2197 msgstr ""
2198
2199 #. type: =head2
2200 #: ../src/guestfs.pod:951
2201 msgid "ATTACHING TO RUNNING DAEMONS"
2202 msgstr ""
2203
2204 #. type: textblock
2205 #: ../src/guestfs.pod:953
2206 msgid ""
2207 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2208 "babies.  Use with caution."
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../src/guestfs.pod:956
2213 msgid ""
2214 "I<Note (2):> This section explains how to attach to a running daemon from a "
2215 "low level perspective.  For most users, simply using virt tools such as "
2216 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2217 msgstr ""
2218
2219 #. type: =head3
2220 #: ../src/guestfs.pod:960
2221 msgid "Using guestfs_set_attach_method"
2222 msgstr ""
2223
2224 #. type: textblock
2225 #: ../src/guestfs.pod:962
2226 msgid ""
2227 "By calling L</guestfs_set_attach_method> you can change how the library "
2228 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2229 "ARCHITECTURE> for some background)."
2230 msgstr ""
2231
2232 #. type: textblock
2233 #: ../src/guestfs.pod:966
2234 msgid ""
2235 "The normal attach method is C<appliance>, where a small appliance is created "
2236 "containing the daemon, and then the library connects to this."
2237 msgstr ""
2238
2239 #. type: textblock
2240 #: ../src/guestfs.pod:969
2241 msgid ""
2242 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2243 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2244 "daemon over the Unix domain socket."
2245 msgstr ""
2246
2247 #. type: textblock
2248 #: ../src/guestfs.pod:973
2249 msgid ""
2250 "The normal use for this is to connect to a running virtual machine that "
2251 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2252 "files inside the live virtual machine."
2253 msgstr ""
2254
2255 #. type: =head3
2256 #: ../src/guestfs.pod:977
2257 msgid "Using guestfs_add_domain with live flag"
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../src/guestfs.pod:979
2262 msgid ""
2263 "L</guestfs_add_domain> provides some help for getting the correct attach "
2264 "method.  If you pass the C<live> option to this function, then (if the "
2265 "virtual machine is running) it will examine the libvirt XML looking for a "
2266 "virtio-serial channel to connect to:"
2267 msgstr ""
2268
2269 #. type: verbatim
2270 #: ../src/guestfs.pod:985
2271 #, no-wrap
2272 msgid ""
2273 " <domain>\n"
2274 "   ...\n"
2275 "   <devices>\n"
2276 "     ...\n"
2277 "     <channel type='unix'>\n"
2278 "       <source mode='bind' path='/path/to/socket'/>\n"
2279 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2280 "     </channel>\n"
2281 "     ...\n"
2282 "   </devices>\n"
2283 " </domain>\n"
2284 "\n"
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../src/guestfs.pod:997
2289 msgid ""
2290 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2291 "method to C<unix:/path/to/socket>."
2292 msgstr ""
2293
2294 #. type: textblock
2295 #: ../src/guestfs.pod:1000
2296 msgid ""
2297 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2298 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2299 "to attach to and modify live virtual machines."
2300 msgstr ""
2301
2302 #. type: textblock
2303 #: ../src/guestfs.pod:1004
2304 msgid ""
2305 "The virtual machine needs to have been set up beforehand so that it has the "
2306 "virtio-serial channel and so that guestfsd is running inside it."
2307 msgstr ""
2308
2309 # type: =head2
2310 #. type: =head2
2311 #: ../src/guestfs.pod:1008
2312 msgid "ABI GUARANTEE"
2313 msgstr ""
2314
2315 # type: textblock
2316 #. type: textblock
2317 #: ../src/guestfs.pod:1010
2318 msgid ""
2319 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2320 "actions as outlined in this section.  Although we will deprecate some "
2321 "actions, for example if they get replaced by newer calls, we will keep the "
2322 "old actions forever.  This allows you the developer to program in confidence "
2323 "against the libguestfs API."
2324 msgstr ""
2325
2326 # type: =head1
2327 #. type: =head2
2328 #: ../src/guestfs.pod:1016
2329 msgid "BLOCK DEVICE NAMING"
2330 msgstr ""
2331
2332 # type: textblock
2333 #. type: textblock
2334 #: ../src/guestfs.pod:1018
2335 msgid ""
2336 "In the kernel there is now quite a profusion of schemata for naming block "
2337 "devices (in this context, by I<block device> I mean a physical or virtual "
2338 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2339 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2340 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2341 "for the old IDE driver (particularly for SATA devices) those devices also "
2342 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2343 "paravirtualized drivers.  This has created several different naming systems, "
2344 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2345 msgstr ""
2346
2347 # type: textblock
2348 #. type: textblock
2349 #: ../src/guestfs.pod:1030
2350 msgid ""
2351 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2352 "Linux kernel to access block devices.  We can run a variety of appliances "
2353 "based on a variety of Linux kernels."
2354 msgstr ""
2355
2356 # type: textblock
2357 #. type: textblock
2358 #: ../src/guestfs.pod:1034
2359 msgid ""
2360 "This causes a problem for libguestfs because many API calls use device or "
2361 "partition names.  Working scripts and the recipe (example) scripts that we "
2362 "make available over the internet could fail if the naming scheme changes."
2363 msgstr ""
2364
2365 # type: textblock
2366 #. type: textblock
2367 #: ../src/guestfs.pod:1039
2368 msgid ""
2369 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2370 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2371 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2372 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2373 msgstr ""
2374
2375 # type: textblock
2376 #. type: textblock
2377 #: ../src/guestfs.pod:1045
2378 msgid ""
2379 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2380 "L</guestfs_list_partitions> and similar calls return the true names of the "
2381 "devices and partitions as known to the appliance."
2382 msgstr ""
2383
2384 # type: =head2
2385 #. type: =head3
2386 #: ../src/guestfs.pod:1050
2387 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2388 msgstr ""
2389
2390 # type: textblock
2391 #. type: textblock
2392 #: ../src/guestfs.pod:1052
2393 msgid ""
2394 "Usually this translation is transparent.  However in some (very rare)  cases "
2395 "you may need to know the exact algorithm.  Such cases include where you use "
2396 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2397 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2398 msgstr ""
2399
2400 # type: textblock
2401 #. type: textblock
2402 #: ../src/guestfs.pod:1058
2403 msgid ""
2404 "The algorithm is applied only to I<parameters> which are known to be either "
2405 "device or partition names.  Return values from functions such as L</"
2406 "guestfs_list_devices> are never changed."
2407 msgstr ""
2408
2409 # type: textblock
2410 #. type: textblock
2411 #: ../src/guestfs.pod:1066
2412 msgid "Is the string a parameter which is a device or partition name?"
2413 msgstr ""
2414
2415 # type: textblock
2416 #. type: textblock
2417 #: ../src/guestfs.pod:1070
2418 msgid "Does the string begin with C</dev/sd>?"
2419 msgstr ""
2420
2421 # type: textblock
2422 #. type: textblock
2423 #: ../src/guestfs.pod:1074
2424 msgid ""
2425 "Does the named device exist? If so, we use that device.  However if I<not> "
2426 "then we continue with this algorithm."
2427 msgstr ""
2428
2429 # type: textblock
2430 #. type: textblock
2431 #: ../src/guestfs.pod:1079
2432 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2433 msgstr ""
2434
2435 # type: textblock
2436 #. type: textblock
2437 #: ../src/guestfs.pod:1081
2438 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2439 msgstr ""
2440
2441 # type: textblock
2442 #. type: textblock
2443 #: ../src/guestfs.pod:1083
2444 msgid "If that named device exists, use it.  If not, continue."
2445 msgstr ""
2446
2447 # type: textblock
2448 #. type: textblock
2449 #: ../src/guestfs.pod:1087
2450 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2451 msgstr ""
2452
2453 # type: textblock
2454 #. type: textblock
2455 #: ../src/guestfs.pod:1089
2456 msgid "If that named device exists, use it.  If not, return an error."
2457 msgstr ""
2458
2459 # type: =head3
2460 #. type: =head3
2461 #: ../src/guestfs.pod:1093
2462 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2463 msgstr ""
2464
2465 # type: textblock
2466 #. type: textblock
2467 #: ../src/guestfs.pod:1095
2468 msgid ""
2469 "Although the standard naming scheme and automatic translation is useful for "
2470 "simple programs and guestfish scripts, for larger programs it is best not to "
2471 "rely on this mechanism."
2472 msgstr ""
2473
2474 # type: textblock
2475 #. type: textblock
2476 #: ../src/guestfs.pod:1099
2477 msgid ""
2478 "Where possible for maximum future portability programs using libguestfs "
2479 "should use these future-proof techniques:"
2480 msgstr ""
2481
2482 # type: textblock
2483 #. type: textblock
2484 #: ../src/guestfs.pod:1106
2485 msgid ""
2486 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2487 "device names, and then use those names directly."
2488 msgstr ""
2489
2490 # type: textblock
2491 #. type: textblock
2492 #: ../src/guestfs.pod:1109
2493 msgid ""
2494 "Since those device names exist by definition, they will never be translated."
2495 msgstr ""
2496
2497 # type: textblock
2498 #. type: textblock
2499 #: ../src/guestfs.pod:1114
2500 msgid ""
2501 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2502 "filesystem labels."
2503 msgstr ""
2504
2505 # type: =head1
2506 #. type: =head1
2507 #: ../src/guestfs.pod:1119
2508 msgid "SECURITY"
2509 msgstr ""
2510
2511 # type: textblock
2512 #. type: textblock
2513 #: ../src/guestfs.pod:1121
2514 msgid ""
2515 "This section discusses security implications of using libguestfs, "
2516 "particularly with untrusted or malicious guests or disk images."
2517 msgstr ""
2518
2519 # type: =head2
2520 #. type: =head2
2521 #: ../src/guestfs.pod:1124
2522 msgid "GENERAL SECURITY CONSIDERATIONS"
2523 msgstr ""
2524
2525 # type: textblock
2526 #. type: textblock
2527 #: ../src/guestfs.pod:1126
2528 msgid ""
2529 "Be careful with any files or data that you download from a guest (by "
2530 "\"download\" we mean not just the L</guestfs_download> command but any "
2531 "command that reads files, filenames, directories or anything else from a "
2532 "disk image).  An attacker could manipulate the data to fool your program "
2533 "into doing the wrong thing.  Consider cases such as:"
2534 msgstr ""
2535
2536 # type: textblock
2537 #. type: textblock
2538 #: ../src/guestfs.pod:1136
2539 msgid "the data (file etc) not being present"
2540 msgstr ""
2541
2542 # type: textblock
2543 #. type: textblock
2544 #: ../src/guestfs.pod:1140
2545 msgid "being present but empty"
2546 msgstr ""
2547
2548 # type: textblock
2549 #. type: textblock
2550 #: ../src/guestfs.pod:1144
2551 msgid "being much larger than normal"
2552 msgstr ""
2553
2554 # type: textblock
2555 #. type: textblock
2556 #: ../src/guestfs.pod:1148
2557 msgid "containing arbitrary 8 bit data"
2558 msgstr ""
2559
2560 # type: textblock
2561 #. type: textblock
2562 #: ../src/guestfs.pod:1152
2563 msgid "being in an unexpected character encoding"
2564 msgstr ""
2565
2566 # type: textblock
2567 #. type: textblock
2568 #: ../src/guestfs.pod:1156
2569 msgid "containing homoglyphs."
2570 msgstr ""
2571
2572 # type: =head2
2573 #. type: =head2
2574 #: ../src/guestfs.pod:1160
2575 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2576 msgstr ""
2577
2578 # type: textblock
2579 #. type: textblock
2580 #: ../src/guestfs.pod:1162
2581 msgid ""
2582 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2583 "(VFS) module can sometimes be escalated into exploits by deliberately "
2584 "creating a malicious, malformed filesystem.  These exploits are very severe "
2585 "for two reasons.  Firstly there are very many filesystem drivers in the "
2586 "kernel, and many of them are infrequently used and not much developer "
2587 "attention has been paid to the code.  Linux userspace helps potential "
2588 "crackers by detecting the filesystem type and automatically choosing the "
2589 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2590 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2591 "exploit (worse in some ways), giving immediate and total access to the "
2592 "system right down to the hardware level."
2593 msgstr ""
2594
2595 # type: textblock
2596 #. type: textblock
2597 #: ../src/guestfs.pod:1175
2598 msgid ""
2599 "That explains why you should never mount a filesystem from an untrusted "
2600 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2601 "inside a qemu virtual machine, usually running as a non-root user.  The "
2602 "attacker would need to write a filesystem which first exploited the kernel, "
2603 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2604 "the libguestfs protocol, and finally to be as serious as the host kernel "
2605 "exploit it would need to escalate its privileges to root.  This multi-step "
2606 "escalation, performed by a static piece of data, is thought to be extremely "
2607 "hard to do, although we never say 'never' about security issues."
2608 msgstr ""
2609
2610 # type: textblock
2611 #. type: textblock
2612 #: ../src/guestfs.pod:1186
2613 msgid ""
2614 "In any case callers can reduce the attack surface by forcing the filesystem "
2615 "type when mounting (use L</guestfs_mount_vfs>)."
2616 msgstr ""
2617
2618 # type: =head2
2619 #. type: =head2
2620 #: ../src/guestfs.pod:1189
2621 msgid "PROTOCOL SECURITY"
2622 msgstr ""
2623
2624 # type: textblock
2625 #. type: textblock
2626 #: ../src/guestfs.pod:1191
2627 msgid ""
2628 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2629 "defined upper message size.  However a program that uses libguestfs must "
2630 "also take care - for example you can write a program that downloads a binary "
2631 "from a disk image and executes it locally, and no amount of protocol "
2632 "security will save you from the consequences."
2633 msgstr ""
2634
2635 # type: =head2
2636 #. type: =head2
2637 #: ../src/guestfs.pod:1197
2638 msgid "INSPECTION SECURITY"
2639 msgstr ""
2640
2641 # type: textblock
2642 #. type: textblock
2643 #: ../src/guestfs.pod:1199
2644 msgid ""
2645 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2646 "directly from the guest, and these could contain any 8 bit data.  Callers "
2647 "should be careful to escape these before printing them to a structured file "
2648 "(for example, use HTML escaping if creating a web page)."
2649 msgstr ""
2650
2651 # type: textblock
2652 #. type: textblock
2653 #: ../src/guestfs.pod:1205
2654 msgid ""
2655 "Guest configuration may be altered in unusual ways by the administrator of "
2656 "the virtual machine, and may not reflect reality (particularly for untrusted "
2657 "or actively malicious guests).  For example we parse the hostname from "
2658 "configuration files like C</etc/sysconfig/network> that we find in the "
2659 "guest, but the guest administrator can easily manipulate these files to "
2660 "provide the wrong hostname."
2661 msgstr ""
2662
2663 # type: textblock
2664 #. type: textblock
2665 #: ../src/guestfs.pod:1213
2666 msgid ""
2667 "The inspection API parses guest configuration using two external libraries: "
2668 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2669 "designed to be robust in the face of malicious data, although denial of "
2670 "service attacks are still possible, for example with oversized configuration "
2671 "files."
2672 msgstr ""
2673
2674 # type: =head2
2675 #. type: =head2
2676 #: ../src/guestfs.pod:1219
2677 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2678 msgstr ""
2679
2680 # type: textblock
2681 #. type: textblock
2682 #: ../src/guestfs.pod:1221
2683 msgid ""
2684 "Be very cautious about running commands from the guest.  By running a "
2685 "command in the guest, you are giving CPU time to a binary that you do not "
2686 "control, under the same user account as the library, albeit wrapped in qemu "
2687 "virtualization.  More information and alternatives can be found in the "
2688 "section L</RUNNING COMMANDS>."
2689 msgstr ""
2690
2691 # type: =head2
2692 #. type: =head2
2693 #: ../src/guestfs.pod:1227
2694 msgid "CVE-2010-3851"
2695 msgstr ""
2696
2697 # type: textblock
2698 #. type: textblock
2699 #: ../src/guestfs.pod:1229
2700 msgid "https://bugzilla.redhat.com/642934"
2701 msgstr ""
2702
2703 # type: textblock
2704 #. type: textblock
2705 #: ../src/guestfs.pod:1231
2706 msgid ""
2707 "This security bug concerns the automatic disk format detection that qemu "
2708 "does on disk images."
2709 msgstr ""
2710
2711 # type: textblock
2712 #. type: textblock
2713 #: ../src/guestfs.pod:1234
2714 msgid ""
2715 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2716 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2717 "for one of the known headers, and if none is found then assuming the disk "
2718 "image must be raw."
2719 msgstr ""
2720
2721 # type: textblock
2722 #. type: textblock
2723 #: ../src/guestfs.pod:1239
2724 msgid ""
2725 "This allows a guest which has been given a raw disk image to write some "
2726 "other header.  At next boot (or when the disk image is accessed by "
2727 "libguestfs) qemu would do autodetection and think the disk image format was, "
2728 "say, qcow2 based on the header written by the guest."
2729 msgstr ""
2730
2731 # type: textblock
2732 #. type: textblock
2733 #: ../src/guestfs.pod:1244
2734 msgid ""
2735 "This in itself would not be a problem, but qcow2 offers many features, one "
2736 "of which is to allow a disk image to refer to another image (called the "
2737 "\"backing disk\").  It does this by placing the path to the backing disk "
2738 "into the qcow2 header.  This path is not validated and could point to any "
2739 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2740 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2741 "control of the attacker."
2742 msgstr ""
2743
2744 # type: textblock
2745 #. type: textblock
2746 #: ../src/guestfs.pod:1252
2747 msgid ""
2748 "In libguestfs this is rather hard to exploit except under two circumstances:"
2749 msgstr ""
2750
2751 # type: textblock
2752 #. type: textblock
2753 #: ../src/guestfs.pod:1259
2754 msgid "You have enabled the network or have opened the disk in write mode."
2755 msgstr ""
2756
2757 # type: textblock
2758 #. type: textblock
2759 #: ../src/guestfs.pod:1263
2760 msgid ""
2761 "You are also running untrusted code from the guest (see L</RUNNING "
2762 "COMMANDS>)."
2763 msgstr ""
2764
2765 # type: textblock
2766 #. type: textblock
2767 #: ../src/guestfs.pod:1268
2768 msgid ""
2769 "The way to avoid this is to specify the expected disk format when adding "
2770 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2771 "should always do this if the disk is raw format, and it's a good idea for "
2772 "other cases too."
2773 msgstr ""
2774
2775 # type: textblock
2776 #. type: textblock
2777 #: ../src/guestfs.pod:1273
2778 msgid ""
2779 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2780 "format is fetched from libvirt and passed through."
2781 msgstr ""
2782
2783 # type: textblock
2784 #. type: textblock
2785 #: ../src/guestfs.pod:1276
2786 msgid ""
2787 "For libguestfs tools, use the I<--format> command line parameter as "
2788 "appropriate."
2789 msgstr ""
2790
2791 # type: =head1
2792 #. type: =head1
2793 #: ../src/guestfs.pod:1279
2794 msgid "CONNECTION MANAGEMENT"
2795 msgstr ""
2796
2797 # type: =head2
2798 #. type: =head2
2799 #: ../src/guestfs.pod:1281
2800 msgid "guestfs_h *"
2801 msgstr ""
2802
2803 # type: textblock
2804 #. type: textblock
2805 #: ../src/guestfs.pod:1283
2806 msgid ""
2807 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2808 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2809 "handle and release all resources used."
2810 msgstr ""
2811
2812 #. type: textblock
2813 #: ../src/guestfs.pod:1287
2814 msgid ""
2815 "For information on using multiple handles and threads, see the section L</"
2816 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
2817 msgstr ""
2818
2819 # type: =head2
2820 #. type: =head2
2821 #: ../src/guestfs.pod:1290
2822 msgid "guestfs_create"
2823 msgstr ""
2824
2825 # type: verbatim
2826 #. type: verbatim
2827 #: ../src/guestfs.pod:1292
2828 #, no-wrap
2829 msgid ""
2830 " guestfs_h *guestfs_create (void);\n"
2831 "\n"
2832 msgstr ""
2833
2834 # type: textblock
2835 #. type: textblock
2836 #: ../src/guestfs.pod:1294
2837 msgid "Create a connection handle."
2838 msgstr ""
2839
2840 #. type: textblock
2841 #: ../src/guestfs.pod:1296
2842 msgid ""
2843 "On success this returns a non-NULL pointer to a handle.  On error it returns "
2844 "NULL."
2845 msgstr ""
2846
2847 #. type: textblock
2848 #: ../src/guestfs.pod:1299
2849 msgid ""
2850 "You have to \"configure\" the handle after creating it.  This includes "
2851 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
2852 "handle at least once."
2853 msgstr ""
2854
2855 # type: textblock
2856 #. type: textblock
2857 #: ../src/guestfs.pod:1303
2858 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2859 msgstr ""
2860
2861 #. type: textblock
2862 #: ../src/guestfs.pod:1305
2863 msgid ""
2864 "You may also want to configure error handling for the handle.  See the L</"
2865 "ERROR HANDLING> section below."
2866 msgstr ""
2867
2868 # type: =head2
2869 #. type: =head2
2870 #: ../src/guestfs.pod:1308
2871 msgid "guestfs_close"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #. type: verbatim
2876 #: ../src/guestfs.pod:1310
2877 #, no-wrap
2878 msgid ""
2879 " void guestfs_close (guestfs_h *g);\n"
2880 "\n"
2881 msgstr ""
2882
2883 # type: textblock
2884 #. type: textblock
2885 #: ../src/guestfs.pod:1312
2886 msgid "This closes the connection handle and frees up all resources used."
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../src/guestfs.pod:1314
2891 msgid ""
2892 "If autosync was set on the handle and the handle was launched, then this "
2893 "implicitly calls various functions to unmount filesystems and sync the "
2894 "disk.  See L</guestfs_set_autosync> for more details."
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../src/guestfs.pod:1318
2899 msgid "If a close callback was set on the handle, then it is called."
2900 msgstr ""
2901
2902 # type: =head1
2903 #. type: =head1
2904 #: ../src/guestfs.pod:1320
2905 msgid "ERROR HANDLING"
2906 msgstr ""
2907
2908 # type: textblock
2909 #. type: textblock
2910 #: ../src/guestfs.pod:1322
2911 msgid ""
2912 "API functions can return errors.  For example, almost all functions that "
2913 "return C<int> will return C<-1> to indicate an error."
2914 msgstr ""
2915
2916 # type: textblock
2917 #. type: textblock
2918 #: ../src/guestfs.pod:1325
2919 msgid ""
2920 "Additional information is available for errors: an error message string and "
2921 "optionally an error number (errno) if the thing that failed was a system "
2922 "call."
2923 msgstr ""
2924
2925 # type: textblock
2926 #. type: textblock
2927 #: ../src/guestfs.pod:1329
2928 msgid ""
2929 "You can get at the additional information about the last error on the handle "
2930 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2931 "up an error handler with L</guestfs_set_error_handler>."
2932 msgstr ""
2933
2934 # type: textblock
2935 #. type: textblock
2936 #: ../src/guestfs.pod:1334
2937 msgid ""
2938 "When the handle is created, a default error handler is installed which "
2939 "prints the error message string to C<stderr>.  For small short-running "
2940 "command line programs it is sufficient to do:"
2941 msgstr ""
2942
2943 # type: verbatim
2944 #. type: verbatim
2945 #: ../src/guestfs.pod:1338
2946 #, no-wrap
2947 msgid ""
2948 " if (guestfs_launch (g) == -1)\n"
2949 "   exit (EXIT_FAILURE);\n"
2950 "\n"
2951 msgstr ""
2952
2953 # type: textblock
2954 #. type: textblock
2955 #: ../src/guestfs.pod:1341
2956 msgid ""
2957 "since the default error handler will ensure that an error message has been "
2958 "printed to C<stderr> before the program exits."
2959 msgstr ""
2960
2961 # type: textblock
2962 #. type: textblock
2963 #: ../src/guestfs.pod:1344
2964 msgid ""
2965 "For other programs the caller will almost certainly want to install an "
2966 "alternate error handler or do error handling in-line like this:"
2967 msgstr ""
2968
2969 # type: verbatim
2970 #. type: verbatim
2971 #: ../src/guestfs.pod:1347
2972 #, no-wrap
2973 msgid ""
2974 " g = guestfs_create ();\n"
2975 " \n"
2976 msgstr ""
2977
2978 # type: verbatim
2979 #. type: verbatim
2980 #: ../src/guestfs.pod:1349
2981 #, no-wrap
2982 msgid ""
2983 " /* This disables the default behaviour of printing errors\n"
2984 "    on stderr. */\n"
2985 " guestfs_set_error_handler (g, NULL, NULL);\n"
2986 " \n"
2987 msgstr ""
2988
2989 # type: verbatim
2990 #. type: verbatim
2991 #: ../src/guestfs.pod:1353
2992 #, no-wrap
2993 msgid ""
2994 " if (guestfs_launch (g) == -1) {\n"
2995 "   /* Examine the error message and print it etc. */\n"
2996 "   char *msg = guestfs_last_error (g);\n"
2997 "   int errnum = guestfs_last_errno (g);\n"
2998 "   fprintf (stderr, \"%s\\n\", msg);\n"
2999 "   /* ... */\n"
3000 "  }\n"
3001 "\n"
3002 msgstr ""
3003
3004 # type: textblock
3005 #. type: textblock
3006 #: ../src/guestfs.pod:1361
3007 msgid ""
3008 "Out of memory errors are handled differently.  The default action is to call "
3009 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3010 "guestfs_set_out_of_memory_handler>."
3011 msgstr ""
3012
3013 # type: textblock
3014 #. type: textblock
3015 #: ../src/guestfs.pod:1365
3016 msgid ""
3017 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3018 "because there is no handle if this happens there is no way to get additional "
3019 "error information.  However L</guestfs_create> is supposed to be a "
3020 "lightweight operation which can only fail because of insufficient memory (it "
3021 "returns NULL in this case)."
3022 msgstr ""
3023
3024 # type: =head2
3025 #. type: =head2
3026 #: ../src/guestfs.pod:1371
3027 msgid "guestfs_last_error"
3028 msgstr ""
3029
3030 # type: verbatim
3031 #. type: verbatim
3032 #: ../src/guestfs.pod:1373
3033 #, no-wrap
3034 msgid ""
3035 " const char *guestfs_last_error (guestfs_h *g);\n"
3036 "\n"
3037 msgstr ""
3038
3039 # type: textblock
3040 #. type: textblock
3041 #: ../src/guestfs.pod:1375
3042 msgid ""
3043 "This returns the last error message that happened on C<g>.  If there has not "
3044 "been an error since the handle was created, then this returns C<NULL>."
3045 msgstr ""
3046
3047 # type: textblock
3048 #. type: textblock
3049 #: ../src/guestfs.pod:1379
3050 msgid ""
3051 "The lifetime of the returned string is until the next error occurs, or L</"
3052 "guestfs_close> is called."
3053 msgstr ""
3054
3055 # type: =head2
3056 #. type: =head2
3057 #: ../src/guestfs.pod:1382
3058 msgid "guestfs_last_errno"
3059 msgstr ""
3060
3061 # type: verbatim
3062 #. type: verbatim
3063 #: ../src/guestfs.pod:1384
3064 #, no-wrap
3065 msgid ""
3066 " int guestfs_last_errno (guestfs_h *g);\n"
3067 "\n"
3068 msgstr ""
3069
3070 # type: textblock
3071 #. type: textblock
3072 #: ../src/guestfs.pod:1386
3073 msgid "This returns the last error number (errno) that happened on C<g>."
3074 msgstr ""
3075
3076 # type: textblock
3077 #. type: textblock
3078 #: ../src/guestfs.pod:1388
3079 msgid "If successful, an errno integer not equal to zero is returned."
3080 msgstr ""
3081
3082 # type: textblock
3083 #. type: textblock
3084 #: ../src/guestfs.pod:1390
3085 msgid ""
3086 "If no error, this returns 0.  This call can return 0 in three situations:"
3087 msgstr ""
3088
3089 # type: textblock
3090 #. type: textblock
3091 #: ../src/guestfs.pod:1397
3092 msgid "There has not been any error on the handle."
3093 msgstr ""
3094
3095 # type: textblock
3096 #. type: textblock
3097 #: ../src/guestfs.pod:1401
3098 msgid ""
3099 "There has been an error but the errno was meaningless.  This corresponds to "
3100 "the case where the error did not come from a failed system call, but for "
3101 "some other reason."
3102 msgstr ""
3103
3104 # type: textblock
3105 #. type: textblock
3106 #: ../src/guestfs.pod:1407
3107 msgid ""
3108 "There was an error from a failed system call, but for some reason the errno "
3109 "was not captured and returned.  This usually indicates a bug in libguestfs."
3110 msgstr ""
3111
3112 # type: textblock
3113 #. type: textblock
3114 #: ../src/guestfs.pod:1413
3115 msgid ""
3116 "Libguestfs tries to convert the errno from inside the applicance into a "
3117 "corresponding errno for the caller (not entirely trivial: the appliance "
3118 "might be running a completely different operating system from the library "
3119 "and error numbers are not standardized across Un*xen).  If this could not be "
3120 "done, then the error is translated to C<EINVAL>.  In practice this should "
3121 "only happen in very rare circumstances."
3122 msgstr ""
3123
3124 # type: =head2
3125 #. type: =head2
3126 #: ../src/guestfs.pod:1421
3127 msgid "guestfs_set_error_handler"
3128 msgstr ""
3129
3130 # type: verbatim
3131 #. type: verbatim
3132 #: ../src/guestfs.pod:1423
3133 #, no-wrap
3134 msgid ""
3135 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3136 "                                           void *opaque,\n"
3137 "                                           const char *msg);\n"
3138 " void guestfs_set_error_handler (guestfs_h *g,\n"
3139 "                                 guestfs_error_handler_cb cb,\n"
3140 "                                 void *opaque);\n"
3141 "\n"
3142 msgstr ""
3143
3144 # type: textblock
3145 #. type: textblock
3146 #: ../src/guestfs.pod:1430
3147 msgid ""
3148 "The callback C<cb> will be called if there is an error.  The parameters "
3149 "passed to the callback are an opaque data pointer and the error message "
3150 "string."
3151 msgstr ""
3152
3153 # type: textblock
3154 #. type: textblock
3155 #: ../src/guestfs.pod:1434
3156 msgid ""
3157 "C<errno> is not passed to the callback.  To get that the callback must call "
3158 "L</guestfs_last_errno>."
3159 msgstr ""
3160
3161 # type: textblock
3162 #. type: textblock
3163 #: ../src/guestfs.pod:1437
3164 msgid ""
3165 "Note that the message string C<msg> is freed as soon as the callback "
3166 "function returns, so if you want to stash it somewhere you must make your "
3167 "own copy."
3168 msgstr ""
3169
3170 # type: textblock
3171 #. type: textblock
3172 #: ../src/guestfs.pod:1441
3173 msgid "The default handler prints messages on C<stderr>."
3174 msgstr ""
3175
3176 # type: textblock
3177 #. type: textblock
3178 #: ../src/guestfs.pod:1443
3179 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3180 msgstr ""
3181
3182 # type: =head2
3183 #. type: =head2
3184 #: ../src/guestfs.pod:1445
3185 msgid "guestfs_get_error_handler"
3186 msgstr ""
3187
3188 # type: verbatim
3189 #. type: verbatim
3190 #: ../src/guestfs.pod:1447
3191 #, no-wrap
3192 msgid ""
3193 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3194 "                                                     void **opaque_rtn);\n"
3195 "\n"
3196 msgstr ""
3197
3198 # type: textblock
3199 #. type: textblock
3200 #: ../src/guestfs.pod:1450
3201 msgid "Returns the current error handler callback."
3202 msgstr ""
3203
3204 # type: =head2
3205 #. type: =head2
3206 #: ../src/guestfs.pod:1452
3207 msgid "guestfs_set_out_of_memory_handler"
3208 msgstr ""
3209
3210 # type: verbatim
3211 #. type: verbatim
3212 #: ../src/guestfs.pod:1454
3213 #, no-wrap
3214 msgid ""
3215 " typedef void (*guestfs_abort_cb) (void);\n"
3216 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3217 "                                        guestfs_abort_cb);\n"
3218 "\n"
3219 msgstr ""
3220
3221 # type: textblock
3222 #. type: textblock
3223 #: ../src/guestfs.pod:1458
3224 msgid ""
3225 "The callback C<cb> will be called if there is an out of memory situation.  "
3226 "I<Note this callback must not return>."
3227 msgstr ""
3228
3229 # type: textblock
3230 #. type: textblock
3231 #: ../src/guestfs.pod:1461
3232 msgid "The default is to call L<abort(3)>."
3233 msgstr ""
3234
3235 # type: textblock
3236 #. type: textblock
3237 #: ../src/guestfs.pod:1463
3238 msgid ""
3239 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3240 msgstr ""
3241
3242 # type: =head2
3243 #. type: =head2
3244 #: ../src/guestfs.pod:1466
3245 msgid "guestfs_get_out_of_memory_handler"
3246 msgstr ""
3247
3248 # type: verbatim
3249 #. type: verbatim
3250 #: ../src/guestfs.pod:1468
3251 #, no-wrap
3252 msgid ""
3253 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3254 "\n"
3255 msgstr ""
3256
3257 # type: textblock
3258 #. type: textblock
3259 #: ../src/guestfs.pod:1470
3260 msgid "This returns the current out of memory handler."
3261 msgstr ""
3262
3263 # type: =head1
3264 #. type: =head1
3265 #: ../src/guestfs.pod:1472
3266 msgid "API CALLS"
3267 msgstr ""
3268
3269 # type: textblock
3270 #. type: textblock
3271 #: ../src/guestfs.pod:1474 ../fish/guestfish.pod:1068
3272 msgid "@ACTIONS@"
3273 msgstr ""
3274
3275 # type: =head1
3276 #. type: =head1
3277 #: ../src/guestfs.pod:1476
3278 msgid "STRUCTURES"
3279 msgstr ""
3280
3281 # type: textblock
3282 #. type: textblock
3283 #: ../src/guestfs.pod:1478
3284 msgid "@STRUCTS@"
3285 msgstr ""
3286
3287 # type: =head1
3288 #. type: =head1
3289 #: ../src/guestfs.pod:1480
3290 msgid "AVAILABILITY"
3291 msgstr ""
3292
3293 # type: =head2
3294 #. type: =head2
3295 #: ../src/guestfs.pod:1482
3296 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3297 msgstr ""
3298
3299 # type: textblock
3300 #. type: textblock
3301 #: ../src/guestfs.pod:1484
3302 msgid ""
3303 "Using L</guestfs_available> you can test availability of the following "
3304 "groups of functions.  This test queries the appliance to see if the "
3305 "appliance you are currently using supports the functionality."
3306 msgstr ""
3307
3308 # type: textblock
3309 #. type: textblock
3310 #: ../src/guestfs.pod:1489
3311 msgid "@AVAILABILITY@"
3312 msgstr ""
3313
3314 # type: =head2
3315 #. type: =head2
3316 #: ../src/guestfs.pod:1491
3317 msgid "GUESTFISH supported COMMAND"
3318 msgstr ""
3319
3320 # type: textblock
3321 #. type: textblock
3322 #: ../src/guestfs.pod:1493
3323 msgid ""
3324 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3325 "prints out the available groups and whether they are supported by this build "
3326 "of libguestfs.  Note however that you have to do C<run> first."
3327 msgstr ""
3328
3329 # type: =head2
3330 #. type: =head2
3331 #: ../src/guestfs.pod:1498
3332 msgid "SINGLE CALLS AT COMPILE TIME"
3333 msgstr ""
3334
3335 # type: textblock
3336 #. type: textblock
3337 #: ../src/guestfs.pod:1500
3338 msgid ""
3339 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3340 "function, such as:"
3341 msgstr ""
3342
3343 # type: verbatim
3344 #. type: verbatim
3345 #: ../src/guestfs.pod:1503
3346 #, no-wrap
3347 msgid ""
3348 " #define LIBGUESTFS_HAVE_DD 1\n"
3349 "\n"
3350 msgstr ""
3351
3352 # type: textblock
3353 #. type: textblock
3354 #: ../src/guestfs.pod:1505
3355 msgid "if L</guestfs_dd> is available."
3356 msgstr ""
3357
3358 # type: textblock
3359 #. type: textblock
3360 #: ../src/guestfs.pod:1507
3361 msgid ""
3362 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3363 "function is available at compile time, we recommended using build tools such "
3364 "as autoconf or cmake.  For example in autotools you could use:"
3365 msgstr ""
3366
3367 # type: verbatim
3368 #. type: verbatim
3369 #: ../src/guestfs.pod:1512
3370 #, no-wrap
3371 msgid ""
3372 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3373 " AC_CHECK_FUNCS([guestfs_dd])\n"
3374 "\n"
3375 msgstr ""
3376
3377 # type: textblock
3378 #. type: textblock
3379 #: ../src/guestfs.pod:1515
3380 msgid ""
3381 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3382 "in your program."
3383 msgstr ""
3384
3385 # type: =head2
3386 #. type: =head2
3387 #: ../src/guestfs.pod:1518
3388 msgid "SINGLE CALLS AT RUN TIME"
3389 msgstr ""
3390
3391 # type: textblock
3392 #. type: textblock
3393 #: ../src/guestfs.pod:1520
3394 msgid ""
3395 "Testing at compile time doesn't guarantee that a function really exists in "
3396 "the library.  The reason is that you might be dynamically linked against a "
3397 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3398 "This situation unfortunately results in a segmentation fault, which is a "
3399 "shortcoming of the C dynamic linking system itself."
3400 msgstr ""
3401
3402 # type: textblock
3403 #. type: textblock
3404 #: ../src/guestfs.pod:1527
3405 msgid ""
3406 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3407 "in this example program (note that you still need the compile time check as "
3408 "well):"
3409 msgstr ""
3410
3411 # type: verbatim
3412 #. type: verbatim
3413 #: ../src/guestfs.pod:1531
3414 #, no-wrap
3415 msgid ""
3416 " #include <stdio.h>\n"
3417 " #include <stdlib.h>\n"
3418 " #include <unistd.h>\n"
3419 " #include <dlfcn.h>\n"
3420 " #include <guestfs.h>\n"
3421 " \n"
3422 msgstr ""
3423
3424 # type: verbatim
3425 #. type: verbatim
3426 #: ../src/guestfs.pod:1537
3427 #, no-wrap
3428 msgid ""
3429 " main ()\n"
3430 " {\n"
3431 " #ifdef LIBGUESTFS_HAVE_DD\n"
3432 "   void *dl;\n"
3433 "   int has_function;\n"
3434 " \n"
3435 msgstr ""
3436
3437 # type: verbatim
3438 #. type: verbatim
3439 #: ../src/guestfs.pod:1543
3440 #, no-wrap
3441 msgid ""
3442 "   /* Test if the function guestfs_dd is really available. */\n"
3443 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3444 "   if (!dl) {\n"
3445 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3446 "     exit (EXIT_FAILURE);\n"
3447 "   }\n"
3448 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3449 "   dlclose (dl);\n"
3450 " \n"
3451 msgstr ""
3452
3453 # type: verbatim
3454 #. type: verbatim
3455 #: ../src/guestfs.pod:1552
3456 #, no-wrap
3457 msgid ""
3458 "   if (!has_function)\n"
3459 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3460 "   else {\n"
3461 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3462 "     /* Now it's safe to call\n"
3463 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3464 "     */\n"
3465 "   }\n"
3466 " #else\n"
3467 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3468 " #endif\n"
3469 "  }\n"
3470 "\n"
3471 msgstr ""
3472
3473 # type: textblock
3474 #. type: textblock
3475 #: ../src/guestfs.pod:1565
3476 msgid ""
3477 "You may think the above is an awful lot of hassle, and it is.  There are "
3478 "other ways outside of the C linking system to ensure that this kind of "
3479 "incompatibility never arises, such as using package versioning:"
3480 msgstr ""
3481
3482 # type: verbatim
3483 #. type: verbatim
3484 #: ../src/guestfs.pod:1570
3485 #, no-wrap
3486 msgid ""
3487 " Requires: libguestfs >= 1.0.80\n"
3488 "\n"
3489 msgstr ""
3490
3491 # type: =head1
3492 #. type: =head1
3493 #: ../src/guestfs.pod:1572
3494 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3495 msgstr ""
3496
3497 # type: textblock
3498 #. type: textblock
3499 #: ../src/guestfs.pod:1574
3500 msgid ""
3501 "A recent feature of the API is the introduction of calls which take optional "
3502 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3503 "takes variable arguments (ie. C<...>), as in this example:"
3504 msgstr ""
3505
3506 # type: verbatim
3507 #. type: verbatim
3508 #: ../src/guestfs.pod:1579
3509 #, no-wrap
3510 msgid ""
3511 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3512 "\n"
3513 msgstr ""
3514
3515 # type: textblock
3516 #. type: textblock
3517 #: ../src/guestfs.pod:1581
3518 msgid ""
3519 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3520 "call with no optional arguments specified:"
3521 msgstr ""
3522
3523 # type: verbatim
3524 #. type: verbatim
3525 #: ../src/guestfs.pod:1584
3526 #, no-wrap
3527 msgid ""
3528 " guestfs_add_drive_opts (g, filename, -1);\n"
3529 "\n"
3530 msgstr ""
3531
3532 # type: textblock
3533 #. type: textblock
3534 #: ../src/guestfs.pod:1586
3535 msgid "With a single optional argument:"
3536 msgstr ""
3537
3538 # type: verbatim
3539 #. type: verbatim
3540 #: ../src/guestfs.pod:1588
3541 #, no-wrap
3542 msgid ""
3543 " guestfs_add_drive_opts (g, filename,\n"
3544 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3545 "                         -1);\n"
3546 "\n"
3547 msgstr ""
3548
3549 # type: textblock
3550 #. type: textblock
3551 #: ../src/guestfs.pod:1592
3552 msgid "With two:"
3553 msgstr ""
3554
3555 # type: verbatim
3556 #. type: verbatim
3557 #: ../src/guestfs.pod:1594
3558 #, no-wrap
3559 msgid ""
3560 " guestfs_add_drive_opts (g, filename,\n"
3561 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3562 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3563 "                         -1);\n"
3564 "\n"
3565 msgstr ""
3566
3567 # type: textblock
3568 #. type: textblock
3569 #: ../src/guestfs.pod:1599
3570 msgid ""
3571 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3572 "happen!"
3573 msgstr ""
3574
3575 # type: =head2
3576 #. type: =head2
3577 #: ../src/guestfs.pod:1602
3578 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3579 msgstr ""
3580
3581 # type: textblock
3582 #. type: textblock
3583 #: ../src/guestfs.pod:1604
3584 msgid ""
3585 "The second variant has the same name with the suffix C<_va>, which works the "
3586 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3587 "example function, this is declared:"
3588 msgstr ""
3589
3590 # type: verbatim
3591 #. type: verbatim
3592 #: ../src/guestfs.pod:1608
3593 #, no-wrap
3594 msgid ""
3595 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3596 "                                va_list args);\n"
3597 "\n"
3598 msgstr ""
3599
3600 # type: =head2
3601 #. type: =head2
3602 #: ../src/guestfs.pod:1611
3603 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3604 msgstr ""
3605
3606 # type: textblock
3607 #. type: textblock
3608 #: ../src/guestfs.pod:1613
3609 msgid ""
3610 "The third variant is useful where you need to construct these calls.  You "
3611 "pass in a structure where you fill in the optional fields.  The structure "
3612 "has a bitmask as the first element which you must set to indicate which "
3613 "fields you have filled in.  For our example function the structure and call "
3614 "are declared:"
3615 msgstr ""
3616
3617 # type: verbatim
3618 #. type: verbatim
3619 #: ../src/guestfs.pod:1619
3620 #, no-wrap
3621 msgid ""
3622 " struct guestfs_add_drive_opts_argv {\n"
3623 "   uint64_t bitmask;\n"
3624 "   int readonly;\n"
3625 "   const char *format;\n"
3626 "   /* ... */\n"
3627 " };\n"
3628 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3629 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3630 "\n"
3631 msgstr ""
3632
3633 # type: textblock
3634 #. type: textblock
3635 #: ../src/guestfs.pod:1628
3636 msgid "You could call it like this:"
3637 msgstr ""
3638
3639 # type: verbatim
3640 #. type: verbatim
3641 #: ../src/guestfs.pod:1630
3642 #, no-wrap
3643 msgid ""
3644 " struct guestfs_add_drive_opts_argv optargs = {\n"
3645 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3646 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3647 "   .readonly = 1,\n"
3648 "   .format = \"qcow2\"\n"
3649 " };\n"
3650 " \n"
3651 msgstr ""
3652
3653 # type: verbatim
3654 #. type: verbatim
3655 #: ../src/guestfs.pod:1637
3656 #, no-wrap
3657 msgid ""
3658 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3659 "\n"
3660 msgstr ""
3661
3662 # type: textblock
3663 #. type: textblock
3664 #: ../src/guestfs.pod:1639 ../src/guestfs-actions.pod:11
3665 #: ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:2853
3666 #: ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1287
3667 #: ../fish/guestfish-actions.pod:1929 ../tools/virt-win-reg.pl:704
3668 msgid "Notes:"
3669 msgstr ""
3670
3671 # type: textblock
3672 #. type: textblock
3673 #: ../src/guestfs.pod:1645
3674 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3675 msgstr ""
3676
3677 # type: textblock
3678 #. type: textblock
3679 #: ../src/guestfs.pod:1650
3680 msgid "You do not need to fill in all fields of the structure."
3681 msgstr ""
3682
3683 # type: textblock
3684 #. type: textblock
3685 #: ../src/guestfs.pod:1654
3686 msgid ""
3687 "There must be a one-to-one correspondence between fields of the structure "
3688 "that are filled in, and bits set in the bitmask."
3689 msgstr ""
3690
3691 # type: =head2
3692 #. type: =head2
3693 #: ../src/guestfs.pod:1659
3694 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3695 msgstr ""
3696
3697 # type: textblock
3698 #. type: textblock
3699 #: ../src/guestfs.pod:1661
3700 msgid ""
3701 "In other languages, optional arguments are expressed in the way that is "
3702 "natural for that language.  We refer you to the language-specific "
3703 "documentation for more details on that."
3704 msgstr ""
3705
3706 # type: textblock
3707 #. type: textblock
3708 #: ../src/guestfs.pod:1665
3709 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3710 msgstr ""
3711
3712 # type: =head2
3713 #. type: =head2
3714 #: ../src/guestfs.pod:1667
3715 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3716 msgstr ""
3717
3718 #. type: textblock
3719 #: ../src/guestfs.pod:1669
3720 msgid ""
3721 "B<Note:> This section documents the generic event mechanism introduced in "
3722 "libguestfs 1.10, which you should use in new code if possible.  The old "
3723 "functions C<guestfs_set_log_message_callback>, "
3724 "C<guestfs_set_subprocess_quit_callback>, "
3725 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3726 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3727 "page.  Because of the ABI guarantee, the old functions continue to work."
3728 msgstr ""
3729
3730 #. type: textblock
3731 #: ../src/guestfs.pod:1678
3732 msgid ""
3733 "Handles generate events when certain things happen, such as log messages "
3734 "being generated, progress messages during long-running operations, or the "
3735 "handle being closed.  The API calls described below let you register a "
3736 "callback to be called when events happen.  You can register multiple "
3737 "callbacks (for the same, different or overlapping sets of events), and "
3738 "individually remove callbacks.  If callbacks are not removed, then they "
3739 "remain in force until the handle is closed."
3740 msgstr ""
3741
3742 #. type: textblock
3743 #: ../src/guestfs.pod:1686
3744 msgid ""
3745 "In the current implementation, events are only generated synchronously: that "
3746 "means that events (and hence callbacks) can only happen while you are in the "
3747 "middle of making another libguestfs call.  The callback is called in the "
3748 "same thread."
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../src/guestfs.pod:1691
3753 msgid ""
3754 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3755 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3756 msgstr ""
3757
3758 #. type: =head3
3759 #: ../src/guestfs.pod:1695
3760 msgid "CLASSES OF EVENTS"
3761 msgstr ""
3762
3763 #. type: =item
3764 #: ../src/guestfs.pod:1699
3765 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../src/guestfs.pod:1702
3770 msgid ""
3771 "The callback function will be called while the handle is being closed "
3772 "(synchronously from L</guestfs_close>)."
3773 msgstr ""
3774
3775 # type: textblock
3776 #. type: textblock
3777 #: ../src/guestfs.pod:1705
3778 msgid ""
3779 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3780 "handles that are open when the program exits.  This means that this callback "
3781 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3782 "problems in higher-level languages (eg. if your HLL interpreter has already "
3783 "been cleaned up by the time this is called, and if your callback then jumps "
3784 "into some HLL function)."
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../src/guestfs.pod:1712
3789 msgid ""
3790 "If no callback is registered: the handle is closed without any callback "
3791 "being invoked."
3792 msgstr ""
3793
3794 #. type: =item
3795 #: ../src/guestfs.pod:1715
3796 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3797 msgstr ""
3798
3799 #. type: textblock
3800 #: ../src/guestfs.pod:1718
3801 msgid ""
3802 "The callback function will be called when the child process quits, either "
3803 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3804 "corresponds to a transition from any state to the CONFIG state)."
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1731
3809 msgid "If no callback is registered: the event is ignored."
3810 msgstr ""
3811
3812 #. type: =item
3813 #: ../src/guestfs.pod:1724
3814 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3815 msgstr ""
3816
3817 #. type: textblock
3818 #: ../src/guestfs.pod:1727
3819 msgid ""
3820 "The callback function will be called when the child process becomes ready "
3821 "first time after it has been launched.  (This corresponds to a transition "
3822 "from LAUNCHING to the READY state)."
3823 msgstr ""
3824
3825 #. type: =item
3826 #: ../src/guestfs.pod:1733
3827 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3828 msgstr ""
3829
3830 # type: textblock
3831 #. type: textblock
3832 #: ../src/guestfs.pod:1736
3833 msgid ""
3834 "Some long-running operations can generate progress messages.  If this "
3835 "callback is registered, then it will be called each time a progress message "
3836 "is generated (usually two seconds after the operation started, and three "
3837 "times per second thereafter until it completes, although the frequency may "
3838 "change in future versions)."
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../src/guestfs.pod:1742
3843 msgid ""
3844 "The callback receives in the payload four unsigned 64 bit numbers which are "
3845 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3846 msgstr ""
3847
3848 #. type: textblock
3849 #: ../src/guestfs.pod:1745
3850 msgid ""
3851 "The units of C<total> are not defined, although for some operations C<total> "
3852 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3853 "or megabytes), and C<position> may be the portion which has been transferred."
3854 msgstr ""
3855
3856 # type: textblock
3857 #. type: textblock
3858 #: ../src/guestfs.pod:1750
3859 msgid "The only defined and stable parts of the API are:"
3860 msgstr ""
3861
3862 # type: textblock
3863 #. type: textblock
3864 #: ../src/guestfs.pod:1756
3865 msgid ""
3866 "The callback can display to the user some type of progress bar or indicator "
3867 "which shows the ratio of C<position>:C<total>."
3868 msgstr ""
3869
3870 # type: textblock
3871 #. type: textblock
3872 #: ../src/guestfs.pod:1761
3873 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3874 msgstr ""
3875
3876 #. type: textblock
3877 #: ../src/guestfs.pod:1765
3878 msgid ""
3879 "If any progress notification is sent during a call, then a final progress "
3880 "notification is always sent when C<position> = C<total> (I<unless> the call "
3881 "fails with an error)."
3882 msgstr ""
3883
3884 # type: textblock
3885 #. type: textblock
3886 #: ../src/guestfs.pod:1769
3887 msgid ""
3888 "This is to simplify caller code, so callers can easily set the progress "
3889 "indicator to \"100%\" at the end of the operation, without requiring special "
3890 "code to detect this case."
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../src/guestfs.pod:1775
3895 msgid ""
3896 "For some calls we are unable to estimate the progress of the call, but we "
3897 "can still generate progress messages to indicate activity.  This is known as "
3898 "\"pulse mode\", and is directly supported by certain progress bar "
3899 "implementations (eg. GtkProgressBar)."
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../src/guestfs.pod:1780
3904 msgid ""
3905 "For these calls, zero or more progress messages are generated with "
3906 "C<position = 0> and C<total = 1>, followed by a final message with "
3907 "C<position = total = 1>."
3908 msgstr ""
3909
3910 #. type: textblock
3911 #: ../src/guestfs.pod:1784
3912 msgid ""
3913 "As noted above, if the call fails with an error then the final message may "
3914 "not be generated."
3915 msgstr ""
3916
3917 #. type: textblock
3918 #: ../src/guestfs.pod:1789
3919 msgid ""
3920 "The callback also receives the procedure number (C<proc_nr>) and serial "
3921 "number (C<serial>) of the call.  These are only useful for debugging "
3922 "protocol issues, and the callback can normally ignore them.  The callback "
3923 "may want to print these numbers in error messages or debugging messages."
3924 msgstr ""
3925
3926 #. type: textblock
3927 #: ../src/guestfs.pod:1795
3928 msgid "If no callback is registered: progress messages are discarded."
3929 msgstr ""
3930
3931 #. type: =item
3932 #: ../src/guestfs.pod:1797
3933 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3934 msgstr ""
3935
3936 #. type: textblock
3937 #: ../src/guestfs.pod:1800
3938 msgid ""
3939 "The callback function is called whenever a log message is generated by qemu, "
3940 "the appliance kernel, guestfsd (daemon), or utility programs."
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../src/guestfs.pod:1803
3945 msgid ""
3946 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3947 "guestfs_launch>) then additional debug messages are generated."
3948 msgstr ""
3949
3950 #. type: textblock
3951 #: ../src/guestfs.pod:1806 ../src/guestfs.pod:1820
3952 msgid ""
3953 "If no callback is registered: the messages are discarded unless the verbose "
3954 "flag is set in which case they are sent to stderr.  You can override the "
3955 "printing of verbose messages to stderr by setting up a callback."
3956 msgstr ""
3957
3958 #. type: =item
3959 #: ../src/guestfs.pod:1811
3960 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../src/guestfs.pod:1814
3965 msgid ""
3966 "The callback function is called whenever a log message is generated by the "
3967 "library part of libguestfs."
3968 msgstr ""
3969
3970 #. type: textblock
3971 #: ../src/guestfs.pod:1817
3972 msgid ""
3973 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3974 "messages are generated."
3975 msgstr ""
3976
3977 #. type: =item
3978 #: ../src/guestfs.pod:1825
3979 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../src/guestfs.pod:1828
3984 msgid ""
3985 "The callback function is called whenever a trace message is generated.  This "
3986 "only applies if the trace flag (L</guestfs_set_trace>) is set."
3987 msgstr ""
3988
3989 #. type: textblock
3990 #: ../src/guestfs.pod:1831
3991 msgid ""
3992 "If no callback is registered: the messages are sent to stderr.  You can "
3993 "override the printing of trace messages to stderr by setting up a callback."
3994 msgstr ""
3995
3996 #. type: =head3
3997 #: ../src/guestfs.pod:1837
3998 msgid "guestfs_set_event_callback"
3999 msgstr ""
4000
4001 #. type: verbatim
4002 #: ../src/guestfs.pod:1839
4003 #, no-wrap
4004 msgid ""
4005 " int guestfs_set_event_callback (guestfs_h *g,\n"
4006 "                                 guestfs_event_callback cb,\n"
4007 "                                 uint64_t event_bitmask,\n"
4008 "                                 int flags,\n"
4009 "                                 void *opaque);\n"
4010 "\n"
4011 msgstr ""
4012
4013 #. type: textblock
4014 #: ../src/guestfs.pod:1845
4015 msgid ""
4016 "This function registers a callback (C<cb>) for all event classes in the "
4017 "C<event_bitmask>."
4018 msgstr ""
4019
4020 #. type: textblock
4021 #: ../src/guestfs.pod:1848
4022 msgid ""
4023 "For example, to register for all log message events, you could call this "
4024 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4025 "To register a single callback for all possible classes of events, use "
4026 "C<GUESTFS_EVENT_ALL>."
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../src/guestfs.pod:1854
4031 msgid "C<flags> should always be passed as 0."
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../src/guestfs.pod:1856
4036 msgid ""
4037 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4038 "it for any purpose."
4039 msgstr ""
4040
4041 #. type: textblock
4042 #: ../src/guestfs.pod:1859
4043 msgid ""
4044 "The return value is the event handle (an integer) which you can use to "
4045 "delete the callback (see below)."
4046 msgstr ""
4047
4048 #. type: textblock
4049 #: ../src/guestfs.pod:1862
4050 msgid ""
4051 "If there is an error, this function returns C<-1>, and sets the error in the "
4052 "handle in the usual way (see L</guestfs_last_error> etc.)"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../src/guestfs.pod:1865
4057 msgid ""
4058 "Callbacks remain in effect until they are deleted, or until the handle is "
4059 "closed."
4060 msgstr ""
4061
4062 #. type: textblock
4063 #: ../src/guestfs.pod:1868
4064 msgid ""
4065 "In the case where multiple callbacks are registered for a particular event "
4066 "class, all of the callbacks are called.  The order in which multiple "
4067 "callbacks are called is not defined."
4068 msgstr ""
4069
4070 #. type: =head3
4071 #: ../src/guestfs.pod:1872
4072 msgid "guestfs_delete_event_callback"
4073 msgstr ""
4074
4075 #. type: verbatim
4076 #: ../src/guestfs.pod:1874
4077 #, no-wrap
4078 msgid ""
4079 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4080 "\n"
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../src/guestfs.pod:1876
4085 msgid ""
4086 "Delete a callback that was previously registered.  C<event_handle> should be "
4087 "the integer that was returned by a previous call to "
4088 "C<guestfs_set_event_callback> on the same handle."
4089 msgstr ""
4090
4091 #. type: =head3
4092 #: ../src/guestfs.pod:1880
4093 msgid "guestfs_event_callback"
4094 msgstr ""
4095
4096 #. type: verbatim
4097 #: ../src/guestfs.pod:1882
4098 #, no-wrap
4099 msgid ""
4100 " typedef void (*guestfs_event_callback) (\n"
4101 "                  guestfs_h *g,\n"
4102 "                  void *opaque,\n"
4103 "                  uint64_t event,\n"
4104 "                  int event_handle,\n"
4105 "                  int flags,\n"
4106 "                  const char *buf, size_t buf_len,\n"
4107 "                  const uint64_t *array, size_t array_len);\n"
4108 "\n"
4109 msgstr ""
4110
4111 #. type: textblock
4112 #: ../src/guestfs.pod:1891
4113 msgid ""
4114 "This is the type of the event callback function that you have to provide."
4115 msgstr ""
4116
4117 #. type: textblock
4118 #: ../src/guestfs.pod:1894
4119 msgid ""
4120 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4121 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4122 "handle, and C<flags> which in the current API you should ignore."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../src/guestfs.pod:1898
4127 msgid ""
4128 "The remaining parameters contain the event payload (if any).  Each event may "
4129 "contain a payload, which usually relates to the event class, but for future "
4130 "proofing your code should be written to handle any payload for any event "
4131 "class."
4132 msgstr ""
4133
4134 #. type: textblock
4135 #: ../src/guestfs.pod:1903
4136 msgid ""
4137 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4138 "there is no message buffer).  Note that this message buffer can contain "
4139 "arbitrary 8 bit data, including NUL bytes."
4140 msgstr ""
4141
4142 #. type: textblock
4143 #: ../src/guestfs.pod:1907
4144 msgid ""
4145 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4146 "moment this is only used for progress messages."
4147 msgstr ""
4148
4149 #. type: =head3
4150 #: ../src/guestfs.pod:1910
4151 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4152 msgstr ""
4153
4154 #. type: textblock
4155 #: ../src/guestfs.pod:1912
4156 msgid ""
4157 "One motivation for the generic event API was to allow GUI programs to "
4158 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4159 "unconditionally to C<stderr>."
4160 msgstr ""
4161
4162 #. type: textblock
4163 #: ../src/guestfs.pod:1916
4164 msgid ""
4165 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4166 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4167 "messages are not events; you must capture error messages separately)."
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../src/guestfs.pod:1921
4172 msgid ""
4173 "Programs have to set up a callback to capture the classes of events of "
4174 "interest:"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../src/guestfs.pod:1924
4179 #, no-wrap
4180 msgid ""
4181 " int eh =\n"
4182 "   guestfs_set_event_callback\n"
4183 "     (g, message_callback,\n"
4184 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4185 "      GUESTFS_EVENT_TRACE,\n"
4186 "      0, NULL) == -1)\n"
4187 " if (eh == -1) {\n"
4188 "   // handle error in the usual way\n"
4189 " }\n"
4190 "\n"
4191 msgstr ""
4192
4193 #. type: textblock
4194 #: ../src/guestfs.pod:1934
4195 msgid ""
4196 "The callback can then direct messages to the appropriate place.  In this "
4197 "example, messages are directed to syslog:"
4198 msgstr ""
4199
4200 #. type: verbatim
4201 #: ../src/guestfs.pod:1937
4202 #, no-wrap
4203 msgid ""
4204 " static void\n"
4205 " message_callback (\n"
4206 "         guestfs_h *g,\n"
4207 "         void *opaque,\n"
4208 "         uint64_t event,\n"
4209 "         int event_handle,\n"
4210 "         int flags,\n"
4211 "         const char *buf, size_t buf_len,\n"
4212 "         const uint64_t *array, size_t array_len)\n"
4213 " {\n"
4214 "   const int priority = LOG_USER|LOG_INFO;\n"
4215 "   if (buf_len > 0)\n"
4216 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4217 " }\n"
4218 "\n"
4219 msgstr ""
4220
4221 #. type: =head1
4222 #: ../src/guestfs.pod:1952
4223 msgid "CANCELLING LONG TRANSFERS"
4224 msgstr ""
4225
4226 #. type: textblock
4227 #: ../src/guestfs.pod:1954
4228 msgid ""
4229 "Some operations can be cancelled by the caller while they are in progress.  "
4230 "Currently only operations that involve uploading or downloading data can be "
4231 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
4232 "parameters in the generator)."
4233 msgstr ""
4234
4235 #. type: =head2
4236 #: ../src/guestfs.pod:1959
4237 msgid "guestfs_user_cancel"
4238 msgstr ""
4239
4240 #. type: verbatim
4241 #: ../src/guestfs.pod:1961
4242 #, no-wrap
4243 msgid ""
4244 " void guestfs_user_cancel (guestfs_h *g);\n"
4245 "\n"
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../src/guestfs.pod:1963
4250 msgid ""
4251 "C<guestfs_user_cancel> cancels the current upload or download operation."
4252 msgstr ""
4253
4254 #. type: textblock
4255 #: ../src/guestfs.pod:1966
4256 msgid ""
4257 "Unlike most other libguestfs calls, this function is signal safe and thread "
4258 "safe.  You can call it from a signal handler or from another thread, without "
4259 "needing to do any locking."
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../src/guestfs.pod:1970
4264 msgid ""
4265 "The transfer that was in progress (if there is one) will stop shortly "
4266 "afterwards, and will return an error.  The errno (see L</"
4267 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
4268 "out if the operation was cancelled or failed because of another error."
4269 msgstr ""
4270
4271 #. type: textblock
4272 #: ../src/guestfs.pod:1976
4273 msgid ""
4274 "No cleanup is performed: for example, if a file was being uploaded then "
4275 "after cancellation there may be a partially uploaded file.  It is the "
4276 "caller's responsibility to clean up if necessary."
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../src/guestfs.pod:1980
4281 msgid "There are two common places that you might call C<guestfs_user_cancel>."
4282 msgstr ""
4283
4284 #. type: textblock
4285 #: ../src/guestfs.pod:1982
4286 msgid ""
4287 "In an interactive text-based program, you might call it from a C<SIGINT> "
4288 "signal handler so that pressing C<^C> cancels the current operation.  (You "
4289 "also need to call L</guestfs_set_pgroup> so that child processes don't "
4290 "receive the C<^C> signal)."
4291 msgstr ""
4292
4293 #. type: textblock
4294 #: ../src/guestfs.pod:1987
4295 msgid ""
4296 "In a graphical program, when the main thread is displaying a progress bar "
4297 "with a cancel button, wire up the cancel button to call this function."
4298 msgstr ""
4299
4300 # type: =head1
4301 #. type: =head1
4302 #: ../src/guestfs.pod:1991
4303 msgid "PRIVATE DATA AREA"
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../src/guestfs.pod:1993
4308 msgid ""
4309 "You can attach named pieces of private data to the libguestfs handle, fetch "
4310 "them by name, and walk over them, for the lifetime of the handle.  This is "
4311 "called the private data area and is only available from the C API."
4312 msgstr ""
4313
4314 # type: textblock
4315 #. type: textblock
4316 #: ../src/guestfs.pod:1998
4317 msgid "To attach a named piece of data, use the following call:"
4318 msgstr ""
4319
4320 # type: verbatim
4321 #. type: verbatim
4322 #: ../src/guestfs.pod:2000
4323 #, no-wrap
4324 msgid ""
4325 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4326 "\n"
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../src/guestfs.pod:2002
4331 msgid ""
4332 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4333 "pointer (which can be C<NULL>).  Any previous item with the same key is "
4334 "overwritten."
4335 msgstr ""
4336
4337 #. type: textblock
4338 #: ../src/guestfs.pod:2006
4339 msgid ""
4340 "You can use any C<key> you want, but your key should I<not> start with an "
4341 "underscore character.  Keys beginning with an underscore character are "
4342 "reserved for internal libguestfs purposes (eg. for implementing language "
4343 "bindings).  It is recommended that you prefix the key with some unique "
4344 "string to avoid collisions with other users."
4345 msgstr ""
4346
4347 # type: textblock
4348 #. type: textblock
4349 #: ../src/guestfs.pod:2012
4350 msgid "To retrieve the pointer, use:"
4351 msgstr ""
4352
4353 # type: verbatim
4354 #. type: verbatim
4355 #: ../src/guestfs.pod:2014
4356 #, no-wrap
4357 msgid ""
4358 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4359 "\n"
4360 msgstr ""
4361
4362 # type: textblock
4363 #. type: textblock
4364 #: ../src/guestfs.pod:2016
4365 msgid ""
4366 "This function returns C<NULL> if either no data is found associated with "
4367 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4368 "C<NULL>."
4369 msgstr ""
4370
4371 #. type: textblock
4372 #: ../src/guestfs.pod:2020
4373 msgid ""
4374 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4375 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4376 "all.  In particular, libguestfs does I<not> try to free the data when the "
4377 "handle is closed.  If the data must be freed, then the caller must either "
4378 "free it before calling L</guestfs_close> or must set up a close callback to "
4379 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../src/guestfs.pod:2027
4384 msgid "To walk over all entries, use these two functions:"
4385 msgstr ""
4386
4387 #. type: verbatim
4388 #: ../src/guestfs.pod:2029
4389 #, no-wrap
4390 msgid ""
4391 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4392 "\n"
4393 msgstr ""
4394
4395 #. type: verbatim
4396 #: ../src/guestfs.pod:2031
4397 #, no-wrap
4398 msgid ""
4399 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4400 "\n"
4401 msgstr ""
4402
4403 #. type: textblock
4404 #: ../src/guestfs.pod:2033
4405 msgid ""
4406 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4407 "not have any particular meaning -- keys are not returned in any defined "
4408 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4409 "corresponding data pointer is returned from the function.  C<NULL> is "
4410 "returned if there are no keys stored in the handle."
4411 msgstr ""
4412
4413 #. type: textblock
4414 #: ../src/guestfs.pod:2039
4415 msgid ""
4416 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4417 "value of this function is also C<NULL> is there are no further entries to "
4418 "return."
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../src/guestfs.pod:2043
4423 msgid "Notes about walking over entries:"
4424 msgstr ""
4425
4426 #. type: textblock
4427 #: ../src/guestfs.pod:2049
4428 msgid ""
4429 "You must not call C<guestfs_set_private> while walking over the entries."
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../src/guestfs.pod:2054
4434 msgid ""
4435 "The handle maintains an internal iterator which is reset when you call "
4436 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4437 "call C<guestfs_set_private>."
4438 msgstr ""
4439
4440 #. type: textblock
4441 #: ../src/guestfs.pod:2060
4442 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4443 msgstr ""
4444
4445 #. type: verbatim
4446 #: ../src/guestfs.pod:2062
4447 #, no-wrap
4448 msgid ""
4449 " guestfs_set_private (g, key, NULL);\n"
4450 "\n"
4451 msgstr ""
4452
4453 #. type: textblock
4454 #: ../src/guestfs.pod:2064
4455 msgid "then that C<key> is not returned when walking."
4456 msgstr ""
4457
4458 #. type: textblock
4459 #: ../src/guestfs.pod:2068
4460 msgid ""
4461 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4462 "C<guestfs_next_private> or C<guestfs_set_private>."
4463 msgstr ""
4464
4465 #. type: textblock
4466 #: ../src/guestfs.pod:2074
4467 msgid ""
4468 "The following example code shows how to print all keys and data pointers "
4469 "that are associated with the handle C<g>:"
4470 msgstr ""
4471
4472 #. type: verbatim
4473 #: ../src/guestfs.pod:2077
4474 #, no-wrap
4475 msgid ""
4476 " const char *key;\n"
4477 " void *data = guestfs_first_private (g, &key);\n"
4478 " while (data != NULL)\n"
4479 "   {\n"
4480 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4481 "     data = guestfs_next_private (g, &key);\n"
4482 "   }\n"
4483 "\n"
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../src/guestfs.pod:2085
4488 msgid ""
4489 "More commonly you are only interested in keys that begin with an application-"
4490 "specific prefix C<foo_>.  Modify the loop like so:"
4491 msgstr ""
4492
4493 #. type: verbatim
4494 #: ../src/guestfs.pod:2088
4495 #, no-wrap
4496 msgid ""
4497 " const char *key;\n"
4498 " void *data = guestfs_first_private (g, &key);\n"
4499 " while (data != NULL)\n"
4500 "   {\n"
4501 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4502 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4503 "     data = guestfs_next_private (g, &key);\n"
4504 "   }\n"
4505 "\n"
4506 msgstr ""
4507
4508 #. type: textblock
4509 #: ../src/guestfs.pod:2097
4510 msgid ""
4511 "If you need to modify keys while walking, then you have to jump back to the "
4512 "beginning of the loop.  For example, to delete all keys prefixed with "
4513 "C<foo_>:"
4514 msgstr ""
4515
4516 #. type: verbatim
4517 #: ../src/guestfs.pod:2101
4518 #, no-wrap
4519 msgid ""
4520 "  const char *key;\n"
4521 "  void *data;\n"
4522 " again:\n"
4523 "  data = guestfs_first_private (g, &key);\n"
4524 "  while (data != NULL)\n"
4525 "    {\n"
4526 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4527 "        {\n"
4528 "          guestfs_set_private (g, key, NULL);\n"
4529 "          /* note that 'key' pointer is now invalid, and so is\n"
4530 "             the internal iterator */\n"
4531 "          goto again;\n"
4532 "        }\n"
4533 "      data = guestfs_next_private (g, &key);\n"
4534 "    }\n"
4535 "\n"
4536 msgstr ""
4537
4538 #. type: textblock
4539 #: ../src/guestfs.pod:2117
4540 msgid ""
4541 "Note that the above loop is guaranteed to terminate because the keys are "
4542 "being deleted, but other manipulations of keys within the loop might not "
4543 "terminate unless you also maintain an indication of which keys have been "
4544 "visited."
4545 msgstr ""
4546
4547 # type: =end
4548 #. type: =end
4549 #: ../src/guestfs.pod:2122 ../src/guestfs.pod:2127
4550 msgid "html"
4551 msgstr ""
4552
4553 # type: textblock
4554 #. type: textblock
4555 #: ../src/guestfs.pod:2124
4556 msgid ""
4557 "<!-- old anchor for the next section --> <a name="
4558 "\"state_machine_and_low_level_event_api\"/>"
4559 msgstr ""
4560
4561 # type: =head1
4562 #. type: =head1
4563 #: ../src/guestfs.pod:2129
4564 msgid "ARCHITECTURE"
4565 msgstr ""
4566
4567 # type: textblock
4568 #. type: textblock
4569 #: ../src/guestfs.pod:2131
4570 msgid ""
4571 "Internally, libguestfs is implemented by running an appliance (a special "
4572 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4573 "process of the main program."
4574 msgstr ""
4575
4576 # type: verbatim
4577 #. type: verbatim
4578 #: ../src/guestfs.pod:2135
4579 #, no-wrap
4580 msgid ""
4581 "  ___________________\n"
4582 " /                   \\\n"
4583 " | main program      |\n"
4584 " |                   |\n"
4585 " |                   |           child process / appliance\n"
4586 " |                   |           __________________________\n"
4587 " |                   |          / qemu                     \\\n"
4588 " +-------------------+   RPC    |      +-----------------+ |\n"
4589 " | libguestfs     <--------------------> guestfsd        | |\n"
4590 " |                   |          |      +-----------------+ |\n"
4591 " \\___________________/          |      | Linux kernel    | |\n"
4592 "                                |      +--^--------------+ |\n"
4593 "                                \\_________|________________/\n"
4594 "                                          |\n"
4595 "                                   _______v______\n"
4596 "                                  /              \\\n"
4597 "                                  | Device or    |\n"
4598 "                                  | disk image   |\n"
4599 "                                  \\______________/\n"
4600 "\n"
4601 msgstr ""
4602
4603 # type: textblock
4604 #. type: textblock
4605 #: ../src/guestfs.pod:2155
4606 msgid ""
4607 "The library, linked to the main program, creates the child process and hence "
4608 "the appliance in the L</guestfs_launch> function."
4609 msgstr ""
4610
4611 # type: textblock
4612 #. type: textblock
4613 #: ../src/guestfs.pod:2158
4614 msgid ""
4615 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4616 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4617 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4618 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4619 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4620 "attached to the qemu process which translates device access by the "
4621 "appliance's Linux kernel into accesses to the image."
4622 msgstr ""
4623
4624 # type: textblock
4625 #. type: textblock
4626 #: ../src/guestfs.pod:2167
4627 msgid ""
4628 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4629 "Although the disk image you are attached to might also be used by some "
4630 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4631 "care if both libguestfs's qemu process and your virtual machine are trying "
4632 "to update the disk image at the same time, since these usually results in "
4633 "massive disk corruption)."
4634 msgstr ""
4635
4636 # type: =head1
4637 #. type: =head1
4638 #: ../src/guestfs.pod:2174
4639 msgid "STATE MACHINE"
4640 msgstr ""
4641
4642 # type: textblock
4643 #. type: textblock
4644 #: ../src/guestfs.pod:2176
4645 msgid "libguestfs uses a state machine to model the child process:"
4646 msgstr ""
4647
4648 # type: verbatim
4649 #. type: verbatim
4650 #: ../src/guestfs.pod:2178
4651 #, no-wrap
4652 msgid ""
4653 "                         |\n"
4654 "                    guestfs_create\n"
4655 "                         |\n"
4656 "                         |\n"
4657 "                     ____V_____\n"
4658 "                    /          \\\n"
4659 "                    |  CONFIG  |\n"
4660 "                    \\__________/\n"
4661 "                     ^ ^   ^  \\\n"
4662 "                    /  |    \\  \\ guestfs_launch\n"
4663 "                   /   |    _\\__V______\n"
4664 "                  /    |   /           \\\n"
4665 "                 /     |   | LAUNCHING |\n"
4666 "                /      |   \\___________/\n"
4667 "               /       |       /\n"
4668 "              /        |  guestfs_launch\n"
4669 "             /         |     /\n"
4670 "    ______  /        __|____V\n"
4671 "   /      \\ ------> /        \\\n"
4672 "   | BUSY |         | READY  |\n"
4673 "   \\______/ <------ \\________/\n"
4674 "\n"
4675 msgstr ""
4676
4677 # type: textblock
4678 #. type: textblock
4679 #: ../src/guestfs.pod:2200
4680 msgid ""
4681 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4682 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4683 "(3) alternating between READY and BUSY as commands are issued to, and "
4684 "carried out by, the child process."
4685 msgstr ""
4686
4687 # type: textblock
4688 #. type: textblock
4689 #: ../src/guestfs.pod:2205
4690 msgid ""
4691 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4692 "asynchronously at any time (eg. due to some internal error), and that causes "
4693 "the state to transition back to CONFIG."
4694 msgstr ""
4695
4696 # type: textblock
4697 #. type: textblock
4698 #: ../src/guestfs.pod:2209
4699 msgid ""
4700 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4701 "issued when in the CONFIG state."
4702 msgstr ""
4703
4704 # type: textblock
4705 #. type: textblock
4706 #: ../src/guestfs.pod:2212
4707 msgid ""
4708 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4709 "L</guestfs_launch> blocks until the child process is READY to accept "
4710 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4711 "moves the state from CONFIG to LAUNCHING while it is running."
4712 msgstr ""
4713
4714 # type: textblock
4715 #. type: textblock
4716 #: ../src/guestfs.pod:2218
4717 msgid ""
4718 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4719 "state.  These API calls block waiting for the command to be carried out (ie. "
4720 "the state to transition to BUSY and then back to READY).  There are no non-"
4721 "blocking versions, and no way to issue more than one command per handle at "
4722 "the same time."
4723 msgstr ""
4724
4725 # type: textblock
4726 #. type: textblock
4727 #: ../src/guestfs.pod:2224
4728 msgid ""
4729 "Finally, the child process sends asynchronous messages back to the main "
4730 "program, such as kernel log messages.  You can register a callback to "
4731 "receive these messages."
4732 msgstr ""
4733
4734 # type: =head1
4735 #. type: =head1
4736 #: ../src/guestfs.pod:2228
4737 msgid "INTERNALS"
4738 msgstr ""
4739
4740 # type: =head2
4741 #. type: =head2
4742 #: ../src/guestfs.pod:2230
4743 msgid "COMMUNICATION PROTOCOL"
4744 msgstr ""
4745
4746 # type: textblock
4747 #. type: textblock
4748 #: ../src/guestfs.pod:2232
4749 msgid ""
4750 "Don't rely on using this protocol directly.  This section documents how it "
4751 "currently works, but it may change at any time."
4752 msgstr ""
4753
4754 # type: textblock
4755 #. type: textblock
4756 #: ../src/guestfs.pod:2235
4757 msgid ""
4758 "The protocol used to talk between the library and the daemon running inside "
4759 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4760 "1014, RFC 1832, RFC 4506)."
4761 msgstr ""
4762
4763 # type: textblock
4764 #. type: textblock
4765 #: ../src/guestfs.pod:2239
4766 msgid ""
4767 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4768 "this file is automatically generated)."
4769 msgstr ""
4770
4771 # type: textblock
4772 #. type: textblock
4773 #: ../src/guestfs.pod:2242
4774 msgid ""
4775 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4776 "and C<FileOut> parameters, which are handled with very simple request/reply "
4777 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4778 "parameters, which use the same request and reply messages, but they may also "
4779 "be followed by files sent using a chunked encoding."
4780 msgstr ""
4781
4782 # type: =head3
4783 #. type: =head3
4784 #: ../src/guestfs.pod:2249
4785 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4786 msgstr ""
4787
4788 # type: textblock
4789 #. type: textblock
4790 #: ../src/guestfs.pod:2251
4791 msgid "For ordinary functions, the request message is:"
4792 msgstr ""
4793
4794 # type: verbatim
4795 #. type: verbatim
4796 #: ../src/guestfs.pod:2253
4797 #, no-wrap
4798 msgid ""
4799 " total length (header + arguments,\n"
4800 "      but not including the length word itself)\n"
4801 " struct guestfs_message_header (encoded as XDR)\n"
4802 " struct guestfs_<foo>_args (encoded as XDR)\n"
4803 "\n"
4804 msgstr ""
4805
4806 # type: textblock
4807 #. type: textblock
4808 #: ../src/guestfs.pod:2258
4809 msgid ""
4810 "The total length field allows the daemon to allocate a fixed size buffer "
4811 "into which it slurps the rest of the message.  As a result, the total length "
4812 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4813 "effective size of any request is limited to somewhere under this size."
4814 msgstr ""
4815
4816 # type: textblock
4817 #. type: textblock
4818 #: ../src/guestfs.pod:2264
4819 msgid ""
4820 "Note also that many functions don't take any arguments, in which case the "
4821 "C<guestfs_I<foo>_args> is completely omitted."
4822 msgstr ""
4823
4824 # type: textblock
4825 #. type: textblock
4826 #: ../src/guestfs.pod:2267
4827 msgid ""
4828 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4829 "receiver knows what type of args structure to expect, or none at all."
4830 msgstr ""
4831
4832 # type: textblock
4833 #. type: textblock
4834 #: ../src/guestfs.pod:2271
4835 msgid ""
4836 "For functions that take optional arguments, the optional arguments are "
4837 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4838 "arguments.  A bitmask in the header indicates which optional arguments are "
4839 "meaningful.  The bitmask is also checked to see if it contains bits set "
4840 "which the daemon does not know about (eg. if more optional arguments were "
4841 "added in a later version of the library), and this causes the call to be "
4842 "rejected."
4843 msgstr ""
4844
4845 # type: textblock
4846 #. type: textblock
4847 #: ../src/guestfs.pod:2279
4848 msgid "The reply message for ordinary functions is:"
4849 msgstr ""
4850
4851 # type: verbatim
4852 #. type: verbatim
4853 #: ../src/guestfs.pod:2281
4854 #, no-wrap
4855 msgid ""
4856 " total length (header + ret,\n"
4857 "      but not including the length word itself)\n"
4858 " struct guestfs_message_header (encoded as XDR)\n"
4859 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4860 "\n"
4861 msgstr ""
4862
4863 # type: textblock
4864 #. type: textblock
4865 #: ../src/guestfs.pod:2286
4866 msgid ""
4867 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4868 "functions that return no formal return values."
4869 msgstr ""
4870
4871 # type: textblock
4872 #. type: textblock
4873 #: ../src/guestfs.pod:2289
4874 msgid ""
4875 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4876 msgstr ""
4877
4878 # type: textblock
4879 #. type: textblock
4880 #: ../src/guestfs.pod:2292
4881 msgid ""
4882 "In the case of an error, a flag is set in the header, and the reply message "
4883 "is slightly changed:"
4884 msgstr ""
4885
4886 # type: verbatim
4887 #. type: verbatim
4888 #: ../src/guestfs.pod:2295
4889 #, no-wrap
4890 msgid ""
4891 " total length (header + error,\n"
4892 "      but not including the length word itself)\n"
4893 " struct guestfs_message_header (encoded as XDR)\n"
4894 " struct guestfs_message_error (encoded as XDR)\n"
4895 "\n"
4896 msgstr ""
4897
4898 # type: textblock
4899 #. type: textblock
4900 #: ../src/guestfs.pod:2300
4901 msgid ""
4902 "The C<guestfs_message_error> structure contains the error message as a "
4903 "string."
4904 msgstr ""
4905
4906 # type: =head3
4907 #. type: =head3
4908 #: ../src/guestfs.pod:2303
4909 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4910 msgstr ""
4911
4912 # type: textblock
4913 #. type: textblock
4914 #: ../src/guestfs.pod:2305
4915 msgid ""
4916 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4917 "The normal request message is sent (see above).  However this is followed by "
4918 "a sequence of file chunks."
4919 msgstr ""
4920
4921 # type: verbatim
4922 #. type: verbatim
4923 #: ../src/guestfs.pod:2309
4924 #, no-wrap
4925 msgid ""
4926 " total length (header + arguments,\n"
4927 "      but not including the length word itself,\n"
4928 "      and not including the chunks)\n"
4929 " struct guestfs_message_header (encoded as XDR)\n"
4930 " struct guestfs_<foo>_args (encoded as XDR)\n"
4931 " sequence of chunks for FileIn param #0\n"
4932 " sequence of chunks for FileIn param #1 etc.\n"
4933 "\n"
4934 msgstr ""
4935
4936 # type: textblock
4937 #. type: textblock
4938 #: ../src/guestfs.pod:2317
4939 msgid "The \"sequence of chunks\" is:"
4940 msgstr ""
4941
4942 # type: verbatim
4943 #. type: verbatim
4944 #: ../src/guestfs.pod:2319
4945 #, no-wrap
4946 msgid ""
4947 " length of chunk (not including length word itself)\n"
4948 " struct guestfs_chunk (encoded as XDR)\n"
4949 " length of chunk\n"
4950 " struct guestfs_chunk (encoded as XDR)\n"
4951 "   ...\n"
4952 " length of chunk\n"
4953 " struct guestfs_chunk (with data.data_len == 0)\n"
4954 "\n"
4955 msgstr ""
4956
4957 # type: textblock
4958 #. type: textblock
4959 #: ../src/guestfs.pod:2327
4960 msgid ""
4961 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4962 "is set in the final chunk to indicate either successful completion or early "
4963 "cancellation."
4964 msgstr ""
4965
4966 # type: textblock
4967 #. type: textblock
4968 #: ../src/guestfs.pod:2331
4969 msgid ""
4970 "At time of writing there are no functions that have more than one FileIn "
4971 "parameter.  However this is (theoretically) supported, by sending the "
4972 "sequence of chunks for each FileIn parameter one after another (from left to "
4973 "right)."
4974 msgstr ""
4975
4976 # type: textblock
4977 #. type: textblock
4978 #: ../src/guestfs.pod:2336
4979 msgid ""
4980 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4981 "transfer.  The library does this by sending a chunk with a special flag set "
4982 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4983 "RPC, does I<not> send any reply, and goes back to reading the next request."
4984 msgstr ""
4985
4986 # type: textblock
4987 #. type: textblock
4988 #: ../src/guestfs.pod:2342
4989 msgid ""
4990 "The daemon may also cancel.  It does this by writing a special word "
4991 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4992 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4993 "cancel chunk).  The special word is chosen so that even if cancellation "
4994 "happens right at the end of the transfer (after the library has finished "
4995 "writing and has started listening for the reply), the \"spurious\" cancel "
4996 "flag will not be confused with the reply message."
4997 msgstr ""
4998
4999 # type: textblock
5000 #. type: textblock
5001 #: ../src/guestfs.pod:2351
5002 msgid ""
5003 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
5004 "limit), and also files where the size is not known in advance (eg. from "
5005 "pipes or sockets).  However the chunks are rather small "
5006 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
5007 "to keep much in memory."
5008 msgstr ""
5009
5010 # type: =head3
5011 #. type: =head3
5012 #: ../src/guestfs.pod:2357
5013 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
5014 msgstr ""
5015
5016 # type: textblock
5017 #. type: textblock
5018 #: ../src/guestfs.pod:2359
5019 msgid ""
5020 "The protocol for FileOut parameters is exactly the same as for FileIn "
5021 "parameters, but with the roles of daemon and library reversed."
5022 msgstr ""
5023
5024 # type: verbatim
5025 #. type: verbatim
5026 #: ../src/guestfs.pod:2362
5027 #, no-wrap
5028 msgid ""
5029 " total length (header + ret,\n"
5030 "      but not including the length word itself,\n"
5031 "      and not including the chunks)\n"
5032 " struct guestfs_message_header (encoded as XDR)\n"
5033 " struct guestfs_<foo>_ret (encoded as XDR)\n"
5034 " sequence of chunks for FileOut param #0\n"
5035 " sequence of chunks for FileOut param #1 etc.\n"
5036 "\n"
5037 msgstr ""
5038
5039 # type: =head3
5040 #. type: =head3
5041 #: ../src/guestfs.pod:2370
5042 msgid "INITIAL MESSAGE"
5043 msgstr ""
5044
5045 # type: textblock
5046 #. type: textblock
5047 #: ../src/guestfs.pod:2372
5048 msgid ""
5049 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
5050 "which indicates that the guest and daemon is alive.  This is what L</"
5051 "guestfs_launch> waits for."
5052 msgstr ""
5053
5054 # type: =head3
5055 #. type: =head3
5056 #: ../src/guestfs.pod:2376
5057 msgid "PROGRESS NOTIFICATION MESSAGES"
5058 msgstr ""
5059
5060 # type: textblock
5061 #. type: textblock
5062 #: ../src/guestfs.pod:2378
5063 msgid ""
5064 "The daemon may send progress notification messages at any time.  These are "
5065 "distinguished by the normal length word being replaced by "
5066 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../src/guestfs.pod:2382
5071 msgid ""
5072 "The library turns them into progress callbacks (see L</"
5073 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
5074 "if not."
5075 msgstr ""
5076
5077 # type: textblock
5078 #. type: textblock
5079 #: ../src/guestfs.pod:2386
5080 msgid ""
5081 "The daemon self-limits the frequency of progress messages it sends (see "
5082 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
5083 "messages."
5084 msgstr ""
5085
5086 # type: =head1
5087 #. type: =head1
5088 #: ../src/guestfs.pod:2390
5089 msgid "LIBGUESTFS VERSION NUMBERS"
5090 msgstr ""
5091
5092 # type: textblock
5093 #. type: textblock
5094 #: ../src/guestfs.pod:2392
5095 msgid ""
5096 "Since April 2010, libguestfs has started to make separate development and "
5097 "stable releases, along with corresponding branches in our git repository.  "
5098 "These separate releases can be identified by version number:"
5099 msgstr ""
5100
5101 # type: verbatim
5102 #. type: verbatim
5103 #: ../src/guestfs.pod:2397
5104 #, no-wrap
5105 msgid ""
5106 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5107 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5108 "       |\n"
5109 "       v\n"
5110 " 1  .  3  .  5\n"
5111 " ^           ^\n"
5112 " |           |\n"
5113 " |           `-------- sub-version\n"
5114 " |\n"
5115 " `------ always '1' because we don't change the ABI\n"
5116 "\n"
5117 msgstr ""
5118
5119 # type: textblock
5120 #. type: textblock
5121 #: ../src/guestfs.pod:2408
5122 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5123 msgstr ""
5124
5125 # type: textblock
5126 #. type: textblock
5127 #: ../src/guestfs.pod:2410
5128 msgid ""
5129 "As time passes we cherry pick fixes from the development branch and backport "
5130 "those into the stable branch, the effect being that the stable branch should "
5131 "get more stable and less buggy over time.  So the stable releases are ideal "
5132 "for people who don't need new features but would just like the software to "
5133 "work."
5134 msgstr ""
5135
5136 # type: textblock
5137 #. type: textblock
5138 #: ../src/guestfs.pod:2416
5139 msgid "Our criteria for backporting changes are:"
5140 msgstr ""
5141
5142 # type: textblock
5143 #. type: textblock
5144 #: ../src/guestfs.pod:2422
5145 msgid ""
5146 "Documentation changes which don't affect any code are backported unless the "
5147 "documentation refers to a future feature which is not in stable."
5148 msgstr ""
5149
5150 # type: textblock
5151 #. type: textblock
5152 #: ../src/guestfs.pod:2428
5153 msgid ""
5154 "Bug fixes which are not controversial, fix obvious problems, and have been "
5155 "well tested are backported."
5156 msgstr ""
5157
5158 # type: textblock
5159 #. type: textblock
5160 #: ../src/guestfs.pod:2433
5161 msgid ""
5162 "Simple rearrangements of code which shouldn't affect how it works get "
5163 "backported.  This is so that the code in the two branches doesn't get too "
5164 "far out of step, allowing us to backport future fixes more easily."
5165 msgstr ""
5166
5167 # type: textblock
5168 #. type: textblock
5169 #: ../src/guestfs.pod:2439
5170 msgid ""
5171 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5172 "exceptional case: the new feature is required in order to implement an "
5173 "important bug fix."
5174 msgstr ""
5175
5176 # type: textblock
5177 #. type: textblock
5178 #: ../src/guestfs.pod:2445
5179 msgid ""
5180 "A new stable branch starts when we think the new features in development are "
5181 "substantial and compelling enough over the current stable branch to warrant "
5182 "it.  When that happens we create new stable and development versions 1.N.0 "
5183 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5184 "stable at this point, but by backporting fixes from development, that branch "
5185 "will stabilize over time."
5186 msgstr ""
5187
5188 #. type: =head1
5189 #: ../src/guestfs.pod:2453
5190 msgid "EXTENDING LIBGUESTFS"
5191 msgstr ""
5192
5193 #. type: =head2
5194 #: ../src/guestfs.pod:2455
5195 msgid "ADDING A NEW API ACTION"
5196 msgstr ""
5197
5198 #. type: textblock
5199 #: ../src/guestfs.pod:2457
5200 msgid ""
5201 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5202 "documentation) are generated, and this makes it easy to extend the "
5203 "libguestfs API."
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../src/guestfs.pod:2461
5208 msgid "To add a new API action there are two changes:"
5209 msgstr ""
5210
5211 #. type: textblock
5212 #: ../src/guestfs.pod:2467
5213 msgid ""
5214 "You need to add a description of the call (name, parameters, return type, "
5215 "tests, documentation) to C<generator/generator_actions.ml>."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../src/guestfs.pod:2470
5220 msgid ""
5221 "There are two sorts of API action, depending on whether the call goes "
5222 "through to the daemon in the appliance, or is serviced entirely by the "
5223 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5224 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5225 "an example of the latter, since a trace flag is maintained in the handle and "
5226 "all tracing is done on the library side."
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../src/guestfs.pod:2478
5231 msgid ""
5232 "Most new actions are of the first type, and get added to the "
5233 "C<daemon_functions> list.  Each function has a unique procedure number used "
5234 "in the RPC protocol which is assigned to that action when we publish "
5235 "libguestfs and cannot be reused.  Take the latest procedure number and "
5236 "increment it."
5237 msgstr ""
5238
5239 #. type: textblock
5240 #: ../src/guestfs.pod:2484
5241 msgid ""
5242 "For library-only actions of the second type, add to the "
5243 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5244 "library and do not travel over the RPC mechanism to the daemon, these "
5245 "functions do not need a procedure number, and so the procedure number is set "
5246 "to C<-1>."
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../src/guestfs.pod:2492
5251 msgid "Implement the action (in C):"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../src/guestfs.pod:2494
5256 msgid ""
5257 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5258 "C<daemon/> directory."
5259 msgstr ""
5260
5261 #. type: textblock
5262 #: ../src/guestfs.pod:2497
5263 msgid ""
5264 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5265 "(note: double underscore) in the C<src/> directory."
5266 msgstr ""
5267
5268 #. type: textblock
5269 #: ../src/guestfs.pod:2500
5270 msgid "In either case, use another function as an example of what to do."
5271 msgstr ""
5272
5273 #. type: textblock
5274 #: ../src/guestfs.pod:2504
5275 msgid "After making these changes, use C<make> to compile."
5276 msgstr ""
5277
5278 #. type: textblock
5279 #: ../src/guestfs.pod:2506
5280 msgid ""
5281 "Note that you don't need to implement the RPC, language bindings, manual "
5282 "pages or anything else.  It's all automatically generated from the OCaml "
5283 "description."
5284 msgstr ""
5285
5286 #. type: =head2
5287 #: ../src/guestfs.pod:2510
5288 msgid "ADDING TESTS FOR AN API ACTION"
5289 msgstr ""
5290
5291 #. type: textblock
5292 #: ../src/guestfs.pod:2512
5293 msgid ""
5294 "You can supply zero or as many tests as you want per API call.  The tests "
5295 "can either be added as part of the API description (C<generator/"
5296 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5297 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5298 "slower, so if possible use the first method."
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../src/guestfs.pod:2518
5303 msgid ""
5304 "The following describes the test environment used when you add an API test "
5305 "in C<generator_actions.ml>."
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../src/guestfs.pod:2521
5310 msgid "The test environment has 4 block devices:"
5311 msgstr ""
5312
5313 #. type: =item
5314 #: ../src/guestfs.pod:2525
5315 msgid "C</dev/sda> 500MB"
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../src/guestfs.pod:2527
5320 msgid "General block device for testing."
5321 msgstr ""
5322
5323 #. type: =item
5324 #: ../src/guestfs.pod:2529
5325 msgid "C</dev/sdb> 50MB"
5326 msgstr ""
5327
5328 #. type: textblock
5329 #: ../src/guestfs.pod:2531
5330 msgid ""
5331 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5332 "operations."
5333 msgstr ""
5334
5335 #. type: =item
5336 #: ../src/guestfs.pod:2534
5337 msgid "C</dev/sdc> 10MB"
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../src/guestfs.pod:2536
5342 msgid "Used in a few tests where two block devices are needed."
5343 msgstr ""
5344
5345 #. type: =item
5346 #: ../src/guestfs.pod:2538
5347 msgid "C</dev/sdd>"
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../src/guestfs.pod:2540
5352 msgid "ISO with fixed content (see C<images/test.iso>)."
5353 msgstr ""
5354
5355 #. type: textblock
5356 #: ../src/guestfs.pod:2544
5357 msgid ""
5358 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5359 "appliance and block devices are reused between tests.  So don't try testing "
5360 "L</guestfs_kill_subprocess> :-x"
5361 msgstr ""
5362
5363 #. type: textblock
5364 #: ../src/guestfs.pod:2548
5365 msgid ""
5366 "Each test starts with an initial scenario, selected using one of the "
5367 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5368 "initialize the disks mentioned above in a particular way as documented in "
5369 "C<generator_types.ml>.  You should not assume anything about the previous "
5370 "contents of other disks that are not initialized."
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../src/guestfs.pod:2554
5375 msgid ""
5376 "You can add a prerequisite clause to any individual test.  This is a run-"
5377 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5378 "testing a command which might not work on all variations of libguestfs "
5379 "builds.  A test that has prerequisite of C<Always> means to run "
5380 "unconditionally."
5381 msgstr ""
5382
5383 #. type: textblock
5384 #: ../src/guestfs.pod:2560
5385 msgid ""
5386 "In addition, packagers can skip individual tests by setting environment "
5387 "variables before running C<make check>."
5388 msgstr ""
5389
5390 #. type: verbatim
5391 #: ../src/guestfs.pod:2563
5392 #, no-wrap
5393 msgid ""
5394 " SKIP_TEST_<CMD>_<NUM>=1\n"
5395 "\n"
5396 msgstr ""
5397
5398 #. type: textblock
5399 #: ../src/guestfs.pod:2565
5400 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5401 msgstr ""
5402
5403 #. type: textblock
5404 #: ../src/guestfs.pod:2567
5405 msgid "or:"
5406 msgstr ""
5407
5408 #. type: verbatim
5409 #: ../src/guestfs.pod:2569
5410 #, no-wrap
5411 msgid ""
5412 " SKIP_TEST_<CMD>=1\n"
5413 "\n"
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../src/guestfs.pod:2571
5418 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5419 msgstr ""
5420
5421 #. type: textblock
5422 #: ../src/guestfs.pod:2573
5423 msgid "Packagers can run only certain tests by setting for example:"
5424 msgstr ""
5425
5426 #. type: verbatim
5427 #: ../src/guestfs.pod:2575
5428 #, no-wrap
5429 msgid ""
5430 " TEST_ONLY=\"vfs_type zerofree\"\n"
5431 "\n"
5432 msgstr ""
5433
5434 #. type: textblock
5435 #: ../src/guestfs.pod:2577
5436 msgid ""
5437 "See C<capitests/tests.c> for more details of how these environment variables "
5438 "work."
5439 msgstr ""
5440
5441 #. type: =head2
5442 #: ../src/guestfs.pod:2580
5443 msgid "DEBUGGING NEW API ACTIONS"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../src/guestfs.pod:2582
5448 msgid "Test new actions work before submitting them."
5449 msgstr ""
5450
5451 #. type: textblock
5452 #: ../src/guestfs.pod:2584
5453 msgid "You can use guestfish to try out new commands."
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../src/guestfs.pod:2586
5458 msgid ""
5459 "Debugging the daemon is a problem because it runs inside a minimal "
5460 "environment.  However you can fprintf messages in the daemon to stderr, and "
5461 "they will show up if you use C<guestfish -v>."
5462 msgstr ""
5463
5464 #. type: =head2
5465 #: ../src/guestfs.pod:2590
5466 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5467 msgstr ""
5468
5469 #. type: textblock
5470 #: ../src/guestfs.pod:2592
5471 msgid ""
5472 "Our C source code generally adheres to some basic code-formatting "
5473 "conventions.  The existing code base is not totally consistent on this "
5474 "front, but we do prefer that contributed code be formatted similarly.  In "
5475 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5476 "indentation level, and other than that, follow the K&R style."
5477 msgstr ""
5478
5479 #. type: textblock
5480 #: ../src/guestfs.pod:2598
5481 msgid ""
5482 "If you use Emacs, add the following to one of one of your start-up files (e."
5483 "g., ~/.emacs), to help ensure that you get indentation right:"
5484 msgstr ""
5485
5486 #. type: verbatim
5487 #: ../src/guestfs.pod:2601
5488 #, no-wrap
5489 msgid ""
5490 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5491 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5492 " (add-hook 'find-file-hook\n"
5493 "     '(lambda () (if (and buffer-file-name\n"
5494 "                          (string-match \"/libguestfs\\\\>\"\n"
5495 "                              (buffer-file-name))\n"
5496 "                          (not (string-equal mode-name \"Change Log\"))\n"
5497 "                          (not (string-equal mode-name \"Makefile\")))\n"
5498 "                     (setq indent-tabs-mode nil))))\n"
5499 " \n"
5500 msgstr ""
5501
5502 #. type: verbatim
5503 #: ../src/guestfs.pod:2611
5504 #, no-wrap
5505 msgid ""
5506 " ;;; When editing C sources in libguestfs, use this style.\n"
5507 " (defun libguestfs-c-mode ()\n"
5508 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5509 "   (interactive)\n"
5510 "   (c-set-style \"K&R\")\n"
5511 "   (setq c-indent-level 2)\n"
5512 "   (setq c-basic-offset 2))\n"
5513 " (add-hook 'c-mode-hook\n"
5514 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5515 "                               (buffer-file-name))\n"
5516 "                           (libguestfs-c-mode))))\n"
5517 "\n"
5518 msgstr ""
5519
5520 #. type: textblock
5521 #: ../src/guestfs.pod:2623
5522 msgid "Enable warnings when compiling (and fix any problems this finds):"
5523 msgstr ""
5524
5525 #. type: verbatim
5526 #: ../src/guestfs.pod:2626
5527 #, no-wrap
5528 msgid ""
5529 " ./configure --enable-gcc-warnings\n"
5530 "\n"
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../src/guestfs.pod:2628
5535 msgid "Useful targets are:"
5536 msgstr ""
5537
5538 #. type: verbatim
5539 #: ../src/guestfs.pod:2630
5540 #, no-wrap
5541 msgid ""
5542 " make syntax-check  # checks the syntax of the C code\n"
5543 " make check         # runs the test suite\n"
5544 "\n"
5545 msgstr ""
5546
5547 #. type: =head2
5548 #: ../src/guestfs.pod:2633
5549 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5550 msgstr ""
5551
5552 #. type: textblock
5553 #: ../src/guestfs.pod:2635
5554 msgid ""
5555 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5556 "which are used to do shell quoting."
5557 msgstr ""
5558
5559 #. type: =item
5560 #: ../src/guestfs.pod:2640
5561 msgid "%Q"
5562 msgstr ""
5563
5564 #. type: textblock
5565 #: ../src/guestfs.pod:2642
5566 msgid ""
5567 "Simple shell quoted string.  Any spaces or other shell characters are "
5568 "escaped for you."
5569 msgstr ""
5570
5571 #. type: =item
5572 #: ../src/guestfs.pod:2645
5573 msgid "%R"
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../src/guestfs.pod:2647
5578 msgid ""
5579 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5580 "the sysroot."
5581 msgstr ""
5582
5583 # type: textblock
5584 #. type: textblock
5585 #: ../src/guestfs.pod:2652 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
5586 msgid "For example:"
5587 msgstr ""
5588
5589 #. type: verbatim
5590 #: ../src/guestfs.pod:2654
5591 #, no-wrap
5592 msgid ""
5593 " asprintf (&cmd, \"cat %R\", path);\n"
5594 "\n"
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../src/guestfs.pod:2656
5599 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../src/guestfs.pod:2658
5604 msgid ""
5605 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5606 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5607 "they are not passed via the shell (instead, straight to exec).  You probably "
5608 "want to use the C<sysroot_path()> function however."
5609 msgstr ""
5610
5611 #. type: =head2
5612 #: ../src/guestfs.pod:2664
5613 msgid "SUBMITTING YOUR NEW API ACTIONS"
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../src/guestfs.pod:2666
5618 msgid ""
5619 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5620 "libguestfs> and CC to L<rjones@redhat.com>."
5621 msgstr ""
5622
5623 #. type: =head2
5624 #: ../src/guestfs.pod:2670
5625 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../src/guestfs.pod:2672
5630 msgid "We support i18n (gettext anyhow) in the library."
5631 msgstr ""
5632
5633 #. type: textblock
5634 #: ../src/guestfs.pod:2674
5635 msgid ""
5636 "However many messages come from the daemon, and we don't translate those at "
5637 "the moment.  One reason is that the appliance generally has all locale files "
5638 "removed from it, because they take up a lot of space.  So we'd have to readd "
5639 "some of those, as well as copying our PO files into the appliance."
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../src/guestfs.pod:2680
5644 msgid ""
5645 "Debugging messages are never translated, since they are intended for the "
5646 "programmers."
5647 msgstr ""
5648
5649 #. type: =head2
5650 #: ../src/guestfs.pod:2683
5651 msgid "SOURCE CODE SUBDIRECTORIES"
5652 msgstr ""
5653
5654 #. type: =item
5655 #: ../src/guestfs.pod:2687 ../src/guestfs-actions.pod:6174
5656 #: ../fish/guestfish-actions.pod:4072
5657 msgid "C<appliance>"
5658 msgstr ""
5659
5660 #. type: textblock
5661 #: ../src/guestfs.pod:2689
5662 msgid "The libguestfs appliance, build scripts and so on."
5663 msgstr ""
5664
5665 #. type: =item
5666 #: ../src/guestfs.pod:2691
5667 msgid "C<capitests>"
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../src/guestfs.pod:2693
5672 msgid "Automated tests of the C API."
5673 msgstr ""
5674
5675 #. type: =item
5676 #: ../src/guestfs.pod:2695
5677 msgid "C<cat>"
5678 msgstr ""
5679
5680 #. type: textblock
5681 #: ../src/guestfs.pod:2697
5682 msgid ""
5683 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5684 "documentation."
5685 msgstr ""
5686
5687 #. type: =item
5688 #: ../src/guestfs.pod:2700
5689 msgid "C<caution>"
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../src/guestfs.pod:2702
5694 msgid ""
5695 "Safety and liveness tests of components that libguestfs depends upon (not of "
5696 "libguestfs itself).  Mainly this is for qemu and the kernel."
5697 msgstr ""
5698
5699 #. type: =item
5700 #: ../src/guestfs.pod:2705
5701 msgid "C<contrib>"
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../src/guestfs.pod:2707
5706 msgid "Outside contributions, experimental parts."
5707 msgstr ""
5708
5709 #. type: =item
5710 #: ../src/guestfs.pod:2709
5711 msgid "C<daemon>"
5712 msgstr ""
5713
5714 #. type: textblock
5715 #: ../src/guestfs.pod:2711
5716 msgid ""
5717 "The daemon that runs inside the libguestfs appliance and carries out actions."
5718 msgstr ""
5719
5720 #. type: =item
5721 #: ../src/guestfs.pod:2714
5722 msgid "C<df>"
5723 msgstr ""
5724
5725 #. type: textblock
5726 #: ../src/guestfs.pod:2716
5727 msgid "L<virt-df(1)> command and documentation."
5728 msgstr ""
5729
5730 #. type: =item
5731 #: ../src/guestfs.pod:2718
5732 msgid "C<edit>"
5733 msgstr ""
5734
5735 #. type: textblock
5736 #: ../src/guestfs.pod:2720
5737 msgid "L<virt-edit(1)> command and documentation."
5738 msgstr ""
5739
5740 #. type: =item
5741 #: ../src/guestfs.pod:2722
5742 msgid "C<examples>"
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../src/guestfs.pod:2724
5747 msgid "C API example code."
5748 msgstr ""
5749
5750 #. type: =item
5751 #: ../src/guestfs.pod:2726
5752 msgid "C<fish>"
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../src/guestfs.pod:2728
5757 msgid ""
5758 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5759 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5760 "L<virt-tar-out(1)>."
5761 msgstr ""
5762
5763 #. type: =item
5764 #: ../src/guestfs.pod:2732
5765 msgid "C<fuse>"
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../src/guestfs.pod:2734
5770 msgid ""
5771 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5772 msgstr ""
5773
5774 #. type: =item
5775 #: ../src/guestfs.pod:2736
5776 msgid "C<generator>"
5777 msgstr ""
5778
5779 #. type: textblock
5780 #: ../src/guestfs.pod:2738
5781 msgid ""
5782 "The crucially important generator, used to automatically generate large "
5783 "amounts of boilerplate C code for things like RPC and bindings."
5784 msgstr ""
5785
5786 #. type: =item
5787 #: ../src/guestfs.pod:2741
5788 msgid "C<images>"
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../src/guestfs.pod:2743
5793 msgid "Files used by the test suite."
5794 msgstr ""
5795
5796 #. type: textblock
5797 #: ../src/guestfs.pod:2745
5798 msgid "Some \"phony\" guest images which we test against."
5799 msgstr ""
5800
5801 #. type: =item
5802 #: ../src/guestfs.pod:2747
5803 msgid "C<inspector>"
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../src/guestfs.pod:2749
5808 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5809 msgstr ""
5810
5811 #. type: =item
5812 #: ../src/guestfs.pod:2751
5813 msgid "C<logo>"
5814 msgstr ""
5815
5816 #. type: textblock
5817 #: ../src/guestfs.pod:2753
5818 msgid "Logo used on the website.  The fish is called Arthur by the way."
5819 msgstr ""
5820
5821 #. type: =item
5822 #: ../src/guestfs.pod:2755
5823 msgid "C<m4>"
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../src/guestfs.pod:2757
5828 msgid "M4 macros used by autoconf."
5829 msgstr ""
5830
5831 #. type: =item
5832 #: ../src/guestfs.pod:2759
5833 msgid "C<po>"
5834 msgstr ""
5835
5836 #. type: textblock
5837 #: ../src/guestfs.pod:2761
5838 msgid "Translations of simple gettext strings."
5839 msgstr ""
5840
5841 #. type: =item
5842 #: ../src/guestfs.pod:2763
5843 msgid "C<po-docs>"
5844 msgstr ""
5845
5846 #. type: textblock
5847 #: ../src/guestfs.pod:2765
5848 msgid ""
5849 "The build infrastructure and PO files for translations of manpages and POD "
5850 "files.  Eventually this will be combined with the C<po> directory, but that "
5851 "is rather complicated."
5852 msgstr ""
5853
5854 #. type: =item
5855 #: ../src/guestfs.pod:2769
5856 msgid "C<regressions>"
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../src/guestfs.pod:2771
5861 msgid "Regression tests."
5862 msgstr ""
5863
5864 #. type: =item
5865 #: ../src/guestfs.pod:2773
5866 msgid "C<rescue>"
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../src/guestfs.pod:2775
5871 msgid "L<virt-rescue(1)> command and documentation."
5872 msgstr ""
5873
5874 #. type: =item
5875 #: ../src/guestfs.pod:2777
5876 msgid "C<src>"
5877 msgstr ""
5878
5879 #. type: textblock
5880 #: ../src/guestfs.pod:2779
5881 msgid "Source code to the C library."
5882 msgstr ""
5883
5884 #. type: =item
5885 #: ../src/guestfs.pod:2781
5886 msgid "C<tools>"
5887 msgstr ""
5888
5889 #. type: textblock
5890 #: ../src/guestfs.pod:2783
5891 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5892 msgstr ""
5893
5894 #. type: =item
5895 #: ../src/guestfs.pod:2785
5896 msgid "C<test-tool>"
5897 msgstr ""
5898
5899 #. type: textblock
5900 #: ../src/guestfs.pod:2787
5901 msgid ""
5902 "Test tool for end users to test if their qemu/kernel combination will work "
5903 "with libguestfs."
5904 msgstr ""
5905
5906 #. type: =item
5907 #: ../src/guestfs.pod:2790
5908 msgid "C<csharp>"
5909 msgstr ""
5910
5911 #. type: =item
5912 #: ../src/guestfs.pod:2792
5913 msgid "C<haskell>"
5914 msgstr ""
5915
5916 #. type: =item
5917 #: ../src/guestfs.pod:2794
5918 msgid "C<java>"
5919 msgstr ""
5920
5921 #. type: =item
5922 #: ../src/guestfs.pod:2796
5923 msgid "C<ocaml>"
5924 msgstr ""
5925
5926 #. type: =item
5927 #: ../src/guestfs.pod:2798
5928 msgid "C<php>"
5929 msgstr ""
5930
5931 #. type: =item
5932 #: ../src/guestfs.pod:2800
5933 msgid "C<perl>"
5934 msgstr ""
5935
5936 #. type: =item
5937 #: ../src/guestfs.pod:2802
5938 msgid "C<python>"
5939 msgstr ""
5940
5941 #. type: =item
5942 #: ../src/guestfs.pod:2804
5943 msgid "C<ruby>"
5944 msgstr ""
5945
5946 #. type: textblock
5947 #: ../src/guestfs.pod:2806
5948 msgid "Language bindings."
5949 msgstr ""
5950
5951 #. type: =head1
5952 #: ../src/guestfs.pod:2810
5953 msgid "LIMITS"
5954 msgstr ""
5955
5956 # type: =head2
5957 #. type: =head2
5958 #: ../src/guestfs.pod:2812
5959 msgid "PROTOCOL LIMITS"
5960 msgstr ""
5961
5962 # type: textblock
5963 #. type: textblock
5964 #: ../src/guestfs.pod:2814
5965 msgid ""
5966 "Internally libguestfs uses a message-based protocol to pass API calls and "
5967 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
5968 "plenty more detail about this).  The maximum message size used by the "
5969 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
5970 "aware of this limit.  The API calls which may be affected are individually "
5971 "documented, with a link back to this section of the documentation."
5972 msgstr ""
5973
5974 # type: textblock
5975 #. type: textblock
5976 #: ../src/guestfs.pod:2822
5977 msgid ""
5978 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
5979 "a simple string.  Because this string is at some point internally encoded as "
5980 "a message, the maximum size that it can return is slightly under 4 MB.  If "
5981 "the requested file is larger than this then you will get an error."
5982 msgstr ""
5983
5984 # type: textblock
5985 #. type: textblock
5986 #: ../src/guestfs.pod:2828
5987 msgid ""
5988 "In order to transfer large files into and out of the guest filesystem, you "
5989 "need to use particular calls that support this.  The sections L</UPLOADING> "
5990 "and L</DOWNLOADING> document how to do this."
5991 msgstr ""
5992
5993 # type: textblock
5994 #. type: textblock
5995 #: ../src/guestfs.pod:2832
5996 msgid ""
5997 "You might also consider mounting the disk image using our FUSE filesystem "
5998 "support (L<guestmount(1)>)."
5999 msgstr ""
6000
6001 #. type: =head2
6002 #: ../src/guestfs.pod:2835
6003 msgid "MAXIMUM NUMBER OF DISKS"
6004 msgstr ""
6005
6006 #. type: textblock
6007 #: ../src/guestfs.pod:2837
6008 msgid "When using virtio disks (the default) the current limit is B<25> disks."
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../src/guestfs.pod:2840
6013 msgid ""
6014 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
6015 "slots.  However febootstrap only understands disks with names C</dev/vda> "
6016 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
6017 "purposes."
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../src/guestfs.pod:2845
6022 msgid ""
6023 "We are working to substantially raise this limit in future versions but it "
6024 "requires complex changes to qemu."
6025 msgstr ""
6026
6027 #. type: textblock
6028 #: ../src/guestfs.pod:2848
6029 msgid ""
6030 "In future versions of libguestfs it should also be possible to \"hot plug\" "
6031 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
6032 "requires changes to qemu."
6033 msgstr ""
6034
6035 #. type: =head2
6036 #: ../src/guestfs.pod:2852
6037 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../src/guestfs.pod:2854
6042 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../src/guestfs.pod:2856
6047 msgid ""
6048 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
6049 "vda>, and C</dev/vda1> through C</dev/vda15>)."
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../src/guestfs.pod:2859
6054 msgid ""
6055 "If you attach a disk with more than 15 partitions, the extra partitions are "
6056 "ignored by libguestfs."
6057 msgstr ""
6058
6059 #. type: =head2
6060 #: ../src/guestfs.pod:2862
6061 msgid "MAXIMUM SIZE OF A DISK"
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../src/guestfs.pod:2864
6066 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
6067 msgstr ""
6068
6069 #. type: textblock
6070 #: ../src/guestfs.pod:2866
6071 msgid ""
6072 "We have tested block devices up to 1 exabyte (2**60 or "
6073 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
6074 "filesystem."
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../src/guestfs.pod:2870
6079 msgid ""
6080 "Although libguestfs probably does not impose any limit, the underlying host "
6081 "storage will.  If you store disk images on a host ext4 filesystem, then the "
6082 "maximum size will be limited by the maximum ext4 file size (currently 16 "
6083 "TB).  If you store disk images as host logical volumes then you are limited "
6084 "by the maximum size of an LV."
6085 msgstr ""
6086
6087 #. type: textblock
6088 #: ../src/guestfs.pod:2876
6089 msgid ""
6090 "For the hugest disk image files, we recommend using XFS on the host for "
6091 "storage."
6092 msgstr ""
6093
6094 #. type: =head2
6095 #: ../src/guestfs.pod:2879
6096 msgid "MAXIMUM SIZE OF A PARTITION"
6097 msgstr ""
6098
6099 #. type: textblock
6100 #: ../src/guestfs.pod:2881
6101 msgid ""
6102 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
6103 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
6104 "address a partition located beyond 2 TB on the disk."
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../src/guestfs.pod:2885
6109 msgid ""
6110 "It is recommended that you use GPT partitions on disks which are larger than "
6111 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
6112 "which are theoretically larger than the largest disk we could support."
6113 msgstr ""
6114
6115 #. type: =head2
6116 #: ../src/guestfs.pod:2890
6117 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
6118 msgstr ""
6119
6120 #. type: textblock
6121 #: ../src/guestfs.pod:2892
6122 msgid ""
6123 "This depends on the filesystem type.  libguestfs itself does not impose any "
6124 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
6125 "what these limits are."
6126 msgstr ""
6127
6128 #. type: =head2
6129 #: ../src/guestfs.pod:2896
6130 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
6131 msgstr ""
6132
6133 #. type: textblock
6134 #: ../src/guestfs.pod:2898
6135 msgid ""
6136 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
6137 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
6138 "uploads and downloads."
6139 msgstr ""
6140
6141 #. type: =head2
6142 #: ../src/guestfs.pod:2902
6143 msgid "INSPECTION LIMITS"
6144 msgstr ""
6145
6146 #. type: textblock
6147 #: ../src/guestfs.pod:2904
6148 msgid ""
6149 "The inspection code has several arbitrary limits on things like the size of "
6150 "Windows Registry hive it will read, and the length of product name.  These "
6151 "are intended to stop a malicious guest from consuming arbitrary amounts of "
6152 "memory and disk space on the host, and should not be reached in practice.  "
6153 "See the source code for more information."
6154 msgstr ""
6155
6156 # type: =head1
6157 #. type: =head1
6158 #: ../src/guestfs.pod:2910 ../fish/guestfish.pod:1075
6159 #: ../test-tool/libguestfs-test-tool.pod:82
6160 msgid "ENVIRONMENT VARIABLES"
6161 msgstr ""
6162
6163 # type: =item
6164 #. type: =item
6165 #: ../src/guestfs.pod:2914 ../fish/guestfish.pod:1106
6166 msgid "LIBGUESTFS_APPEND"
6167 msgstr ""
6168
6169 # type: textblock
6170 #. type: textblock
6171 #: ../src/guestfs.pod:2916 ../fish/guestfish.pod:1108
6172 msgid "Pass additional options to the guest kernel."
6173 msgstr ""
6174
6175 # type: =item
6176 #. type: =item
6177 #: ../src/guestfs.pod:2918 ../fish/guestfish.pod:1110
6178 msgid "LIBGUESTFS_DEBUG"
6179 msgstr ""
6180
6181 # type: textblock
6182 #. type: textblock
6183 #: ../src/guestfs.pod:2920
6184 msgid ""
6185 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
6186 "effect as calling C<guestfs_set_verbose (g, 1)>."
6187 msgstr ""
6188
6189 # type: =item
6190 #. type: =item
6191 #: ../src/guestfs.pod:2923 ../fish/guestfish.pod:1115
6192 msgid "LIBGUESTFS_MEMSIZE"
6193 msgstr ""
6194
6195 # type: textblock
6196 #. type: textblock
6197 #: ../src/guestfs.pod:2925 ../fish/guestfish.pod:1117
6198 msgid ""
6199 "Set the memory allocated to the qemu process, in megabytes.  For example:"
6200 msgstr ""
6201
6202 # type: verbatim
6203 #. type: verbatim
6204 #: ../src/guestfs.pod:2928 ../fish/guestfish.pod:1120
6205 #, no-wrap
6206 msgid ""
6207 " LIBGUESTFS_MEMSIZE=700\n"
6208 "\n"
6209 msgstr ""
6210
6211 # type: =item
6212 #. type: =item
6213 #: ../src/guestfs.pod:2930 ../fish/guestfish.pod:1122
6214 msgid "LIBGUESTFS_PATH"
6215 msgstr ""
6216
6217 #. type: textblock
6218 #: ../src/guestfs.pod:2932
6219 msgid ""
6220 "Set the path that libguestfs uses to search for a supermin appliance.  See "
6221 "the discussion of paths in section L</PATH> above."
6222 msgstr ""
6223
6224 # type: =item
6225 #. type: =item
6226 #: ../src/guestfs.pod:2935 ../fish/guestfish.pod:1127
6227 msgid "LIBGUESTFS_QEMU"
6228 msgstr ""
6229
6230 # type: textblock
6231 #. type: textblock
6232 #: ../src/guestfs.pod:2937 ../fish/guestfish.pod:1129
6233 msgid ""
6234 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
6235 "which was found at compile time by the configure script is used."
6236 msgstr ""
6237
6238 # type: textblock
6239 #. type: textblock
6240 #: ../src/guestfs.pod:2941
6241 msgid "See also L</QEMU WRAPPERS> above."
6242 msgstr ""
6243
6244 # type: =item
6245 #. type: =item
6246 #: ../src/guestfs.pod:2943 ../fish/guestfish.pod:1133
6247 msgid "LIBGUESTFS_TRACE"
6248 msgstr ""
6249
6250 # type: textblock
6251 #. type: textblock
6252 #: ../src/guestfs.pod:2945
6253 msgid ""
6254 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
6255 "effect as calling C<guestfs_set_trace (g, 1)>."
6256 msgstr ""
6257
6258 # type: =item
6259 #. type: =item
6260 #: ../src/guestfs.pod:2948 ../fish/guestfish.pod:1142
6261 msgid "TMPDIR"
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../src/guestfs.pod:2950 ../fish/guestfish.pod:1144
6266 msgid ""
6267 "Location of temporary directory, defaults to C</tmp> except for the cached "
6268 "supermin appliance which defaults to C</var/tmp>."
6269 msgstr ""
6270
6271 #. type: textblock
6272 #: ../src/guestfs.pod:2953 ../fish/guestfish.pod:1147
6273 msgid ""
6274 "If libguestfs was compiled to use the supermin appliance then the real "
6275 "appliance is cached in this directory, shared between all handles belonging "
6276 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
6277 "use in case C</var/tmp> is not large enough."
6278 msgstr ""
6279
6280 # type: =head1
6281 #. type: =head1
6282 #: ../src/guestfs.pod:2961 ../fish/guestfish.pod:1214
6283 #: ../test-tool/libguestfs-test-tool.pod:87 ../fuse/guestmount.pod:279
6284 #: ../tools/virt-win-reg.pl:744 ../tools/virt-list-filesystems.pl:189
6285 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
6286 #: ../tools/virt-list-partitions.pl:257
6287 msgid "SEE ALSO"
6288 msgstr ""
6289
6290 #. type: textblock
6291 #: ../src/guestfs.pod:2963
6292 msgid ""
6293 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6294 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6295 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6296 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6297 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6298 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6299 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6300 msgstr ""
6301
6302 # type: textblock
6303 #. type: textblock
6304 #: ../src/guestfs.pod:2990
6305 msgid ""
6306 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6307 "(8)>, L<disktype(1)>."
6308 msgstr ""
6309
6310 # type: =head1
6311 #. type: =head1
6312 #: ../src/guestfs.pod:2997 ../tools/virt-win-reg.pl:759
6313 #: ../tools/virt-make-fs.pl:553
6314 msgid "BUGS"
6315 msgstr ""
6316
6317 # type: textblock
6318 #. type: textblock
6319 #: ../src/guestfs.pod:2999
6320 msgid "To get a list of bugs against libguestfs use this link:"
6321 msgstr ""
6322
6323 # type: textblock
6324 #. type: textblock
6325 #: ../src/guestfs.pod:3001
6326 msgid ""
6327 "L<https://bugzilla.redhat.com/buglist.cgi?"
6328 "component=libguestfs&product=Virtualization+Tools>"
6329 msgstr ""
6330
6331 # type: textblock
6332 #. type: textblock
6333 #: ../src/guestfs.pod:3003
6334 msgid "To report a new bug against libguestfs use this link:"
6335 msgstr ""
6336
6337 # type: textblock
6338 #. type: textblock
6339 #: ../src/guestfs.pod:3005
6340 msgid ""
6341 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6342 "component=libguestfs&product=Virtualization+Tools>"
6343 msgstr ""
6344
6345 # type: textblock
6346 #. type: textblock
6347 #: ../src/guestfs.pod:3007
6348 msgid "When reporting a bug, please check:"
6349 msgstr ""
6350
6351 # type: textblock
6352 #. type: textblock
6353 #: ../src/guestfs.pod:3013
6354 msgid "That the bug hasn't been reported already."
6355 msgstr ""
6356
6357 # type: textblock
6358 #. type: textblock
6359 #: ../src/guestfs.pod:3017
6360 msgid "That you are testing a recent version."
6361 msgstr ""
6362
6363 # type: textblock
6364 #. type: textblock
6365 #: ../src/guestfs.pod:3021
6366 msgid "Describe the bug accurately, and give a way to reproduce it."
6367 msgstr ""
6368
6369 # type: textblock
6370 #. type: textblock
6371 #: ../src/guestfs.pod:3025
6372 msgid ""
6373 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6374 "bug report."
6375 msgstr ""
6376
6377 # type: =head1
6378 #. type: =head1
6379 #: ../src/guestfs.pod:3030 ../fish/guestfish.pod:1238
6380 #: ../test-tool/libguestfs-test-tool.pod:93 ../fuse/guestmount.pod:290
6381 msgid "AUTHORS"
6382 msgstr ""
6383
6384 # type: textblock
6385 #. type: textblock
6386 #: ../src/guestfs.pod:3032 ../fish/guestfish.pod:1240
6387 #: ../test-tool/libguestfs-test-tool.pod:95 ../fuse/guestmount.pod:292
6388 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6389 msgstr ""
6390
6391 # type: =head1
6392 #. type: =head1
6393 #: ../src/guestfs.pod:3034 ../fish/guestfish.pod:1242
6394 #: ../test-tool/libguestfs-test-tool.pod:97 ../fuse/guestmount.pod:294
6395 #: ../tools/virt-win-reg.pl:774 ../tools/virt-list-filesystems.pl:206
6396 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6397 #: ../tools/virt-list-partitions.pl:273
6398 msgid "COPYRIGHT"
6399 msgstr ""
6400
6401 #. type: textblock
6402 #: ../src/guestfs.pod:3036 ../fish/guestfish.pod:1244
6403 #: ../test-tool/libguestfs-test-tool.pod:99
6404 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
6405 msgstr ""
6406
6407 # type: textblock
6408 #. type: textblock
6409 #: ../src/guestfs.pod:3039
6410 msgid ""
6411 "This library is free software; you can redistribute it and/or modify it "
6412 "under the terms of the GNU Lesser General Public License as published by the "
6413 "Free Software Foundation; either version 2 of the License, or (at your "
6414 "option) any later version."
6415 msgstr ""
6416
6417 # type: textblock
6418 #. type: textblock
6419 #: ../src/guestfs.pod:3044
6420 msgid ""
6421 "This library is distributed in the hope that it will be useful, but WITHOUT "
6422 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6423 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6424 "for more details."
6425 msgstr ""
6426
6427 # type: textblock
6428 #. type: textblock
6429 #: ../src/guestfs.pod:3049
6430 msgid ""
6431 "You should have received a copy of the GNU Lesser General Public License "
6432 "along with this library; if not, write to the Free Software Foundation, "
6433 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6434 msgstr ""
6435
6436 # type: =head2
6437 #. type: =head2
6438 #: ../src/guestfs-actions.pod:1
6439 msgid "guestfs_add_cdrom"
6440 msgstr ""
6441
6442 # type: verbatim
6443 #. type: verbatim
6444 #: ../src/guestfs-actions.pod:3
6445 #, no-wrap
6446 msgid ""
6447 " int\n"
6448 " guestfs_add_cdrom (guestfs_h *g,\n"
6449 "                    const char *filename);\n"
6450 "\n"
6451 msgstr ""
6452
6453 # type: textblock
6454 #. type: textblock
6455 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6456 msgid "This function adds a virtual CD-ROM disk image to the guest."
6457 msgstr ""
6458
6459 #. type: textblock
6460 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6461 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6462 msgstr ""
6463
6464 # type: textblock
6465 #. type: textblock
6466 #: ../src/guestfs-actions.pod:17
6467 msgid ""
6468 "This call checks for the existence of C<filename>.  This stops you from "
6469 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6470 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6471 "instead."
6472 msgstr ""
6473
6474 # type: textblock
6475 #. type: textblock
6476 #: ../src/guestfs-actions.pod:24
6477 msgid ""
6478 "If you just want to add an ISO file (often you use this as an efficient way "
6479 "to transfer large files into the guest), then you should probably use "
6480 "C<guestfs_add_drive_ro> instead."
6481 msgstr ""
6482
6483 # type: textblock
6484 #. type: textblock
6485 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140
6486 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
6487 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
6488 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
6489 #: ../src/guestfs-actions.pod:422 ../src/guestfs-actions.pod:442
6490 #: ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501
6491 #: ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547
6492 #: ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647
6493 #: ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676
6494 #: ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793
6495 #: ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821
6496 #: ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041
6497 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079
6498 #: ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181
6499 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214
6500 #: ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304
6501 #: ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360
6502 #: ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1508
6503 #: ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757
6504 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866
6505 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2483
6506 #: ../src/guestfs-actions.pod:2544 ../src/guestfs-actions.pod:2579
6507 #: ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3634
6508 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3848
6509 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:3875
6510 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3904
6511 #: ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:4012
6512 #: ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4049
6513 #: ../src/guestfs-actions.pod:4072 ../src/guestfs-actions.pod:4095
6514 #: ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4149
6515 #: ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4203
6516 #: ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4251
6517 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:4280
6518 #: ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4312
6519 #: ../src/guestfs-actions.pod:4405 ../src/guestfs-actions.pod:4425
6520 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4489
6521 #: ../src/guestfs-actions.pod:4507 ../src/guestfs-actions.pod:4525
6522 #: ../src/guestfs-actions.pod:4541 ../src/guestfs-actions.pod:4555
6523 #: ../src/guestfs-actions.pod:4569 ../src/guestfs-actions.pod:4586
6524 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:4621
6525 #: ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:4764
6526 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:4814
6527 #: ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:4845
6528 #: ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4875
6529 #: ../src/guestfs-actions.pod:4890 ../src/guestfs-actions.pod:4905
6530 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:4973
6531 #: ../src/guestfs-actions.pod:5012 ../src/guestfs-actions.pod:5032
6532 #: ../src/guestfs-actions.pod:5046 ../src/guestfs-actions.pod:5063
6533 #: ../src/guestfs-actions.pod:5112 ../src/guestfs-actions.pod:5158
6534 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5248
6535 #: ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:5300
6536 #: ../src/guestfs-actions.pod:5318 ../src/guestfs-actions.pod:5452
6537 #: ../src/guestfs-actions.pod:5509 ../src/guestfs-actions.pod:5531
6538 #: ../src/guestfs-actions.pod:5549 ../src/guestfs-actions.pod:5581
6539 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5664
6540 #: ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:5691
6541 #: ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:5999
6542 #: ../src/guestfs-actions.pod:6018 ../src/guestfs-actions.pod:6032
6543 #: ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6058
6544 #: ../src/guestfs-actions.pod:6070 ../src/guestfs-actions.pod:6084
6545 #: ../src/guestfs-actions.pod:6100 ../src/guestfs-actions.pod:6121
6546 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6159
6547 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6207
6548 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6248
6549 #: ../src/guestfs-actions.pod:6267 ../src/guestfs-actions.pod:6288
6550 #: ../src/guestfs-actions.pod:6307 ../src/guestfs-actions.pod:6324
6551 #: ../src/guestfs-actions.pod:6343 ../src/guestfs-actions.pod:6369
6552 #: ../src/guestfs-actions.pod:6393 ../src/guestfs-actions.pod:6412
6553 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6455
6554 #: ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6489
6555 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6556
6556 #: ../src/guestfs-actions.pod:6589 ../src/guestfs-actions.pod:6711
6557 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6844
6558 #: ../src/guestfs-actions.pod:6857 ../src/guestfs-actions.pod:6870
6559 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6905
6560 #: ../src/guestfs-actions.pod:6918 ../src/guestfs-actions.pod:6931
6561 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7005
6562 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7038
6563 #: ../src/guestfs-actions.pod:7054 ../src/guestfs-actions.pod:7071
6564 #: ../src/guestfs-actions.pod:7084 ../src/guestfs-actions.pod:7104
6565 #: ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:7154
6566 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7208
6567 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7260
6568 #: ../src/guestfs-actions.pod:7296 ../src/guestfs-actions.pod:7412
6569 #: ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7441
6570 #: ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7509
6571 #: ../src/guestfs-actions.pod:7554 ../src/guestfs-actions.pod:7587
6572 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7670
6573 #: ../src/guestfs-actions.pod:7694 ../src/guestfs-actions.pod:7761
6574 #: ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7809
6575 msgid "This function returns 0 on success or -1 on error."
6576 msgstr ""
6577
6578 # type: textblock
6579 #. type: textblock
6580 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254
6581 #: ../src/guestfs-actions.pod:275 ../fish/guestfish-actions.pod:28
6582 #: ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
6583 msgid ""
6584 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6585 "instead."
6586 msgstr ""
6587
6588 # type: textblock
6589 #. type: textblock
6590 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257
6591 #: ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1513
6592 #: ../src/guestfs-actions.pod:2008 ../src/guestfs-actions.pod:2029
6593 #: ../src/guestfs-actions.pod:4626 ../src/guestfs-actions.pod:4945
6594 #: ../src/guestfs-actions.pod:5163 ../src/guestfs-actions.pod:5253
6595 #: ../src/guestfs-actions.pod:6534 ../src/guestfs-actions.pod:6564
6596 #: ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:6656
6597 #: ../src/guestfs-actions.pod:7592 ../src/guestfs-actions.pod:7702
6598 #: ../src/guestfs-actions.pod:7872 ../fish/guestfish-actions.pod:31
6599 #: ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180
6600 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:1346
6601 #: ../fish/guestfish-actions.pod:1360 ../fish/guestfish-actions.pod:3085
6602 #: ../fish/guestfish-actions.pod:3292 ../fish/guestfish-actions.pod:3406
6603 #: ../fish/guestfish-actions.pod:3454 ../fish/guestfish-actions.pod:4349
6604 #: ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394
6605 #: ../fish/guestfish-actions.pod:4432 ../fish/guestfish-actions.pod:5081
6606 #: ../fish/guestfish-actions.pod:5179
6607 msgid ""
6608 "Deprecated functions will not be removed from the API, but the fact that "
6609 "they are deprecated indicates that there are problems with correct use of "
6610 "these functions."
6611 msgstr ""
6612
6613 # type: textblock
6614 #. type: textblock
6615 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
6616 #: ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980
6617 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2190
6618 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3641
6619 #: ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:6209
6620 #: ../src/guestfs-actions.pod:6326 ../src/guestfs-actions.pod:6457
6621 #: ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7073
6622 #: ../src/guestfs-actions.pod:7596
6623 msgid "(Added in 0.3)"
6624 msgstr ""
6625
6626 # type: =head2
6627 #. type: =head2
6628 #: ../src/guestfs-actions.pod:41
6629 msgid "guestfs_add_domain"
6630 msgstr ""
6631
6632 # type: verbatim
6633 #. type: verbatim
6634 #: ../src/guestfs-actions.pod:43
6635 #, no-wrap
6636 msgid ""
6637 " int\n"
6638 " guestfs_add_domain (guestfs_h *g,\n"
6639 "                     const char *dom,\n"
6640 "                     ...);\n"
6641 "\n"
6642 msgstr ""
6643
6644 # type: textblock
6645 #. type: textblock
6646 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
6647 #: ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2824
6648 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4959
6649 #: ../src/guestfs-actions.pod:5176
6650 msgid ""
6651 "You may supply a list of optional arguments to this call.  Use zero or more "
6652 "of the following pairs of parameters, and terminate the list with C<-1> on "
6653 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6654 msgstr ""
6655
6656 #. type: verbatim
6657 #: ../src/guestfs-actions.pod:53
6658 #, no-wrap
6659 msgid ""
6660 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6661 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6662 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6663 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6664 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
6665 "\n"
6666 msgstr ""
6667
6668 # type: textblock
6669 #. type: textblock
6670 #: ../src/guestfs-actions.pod:59
6671 msgid ""
6672 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6673 "It works by connecting to libvirt, requesting the domain and domain XML from "
6674 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6675 "one."
6676 msgstr ""
6677
6678 # type: textblock
6679 #. type: textblock
6680 #: ../src/guestfs-actions.pod:64 ../fish/guestfish-actions.pod:46
6681 msgid ""
6682 "The number of disks added is returned.  This operation is atomic: if an "
6683 "error is returned, then no disks are added."
6684 msgstr ""
6685
6686 # type: textblock
6687 #. type: textblock
6688 #: ../src/guestfs-actions.pod:67 ../fish/guestfish-actions.pod:49
6689 msgid ""
6690 "This function does some minimal checks to make sure the libvirt domain is "
6691 "not running (unless C<readonly> is true).  In a future version we will try "
6692 "to acquire the libvirt lock on each disk."
6693 msgstr ""
6694
6695 # type: textblock
6696 #. type: textblock
6697 #: ../src/guestfs-actions.pod:71 ../fish/guestfish-actions.pod:53
6698 msgid ""
6699 "Disks must be accessible locally.  This often means that adding disks from a "
6700 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6701 "unless those disks are accessible via the same device path locally too."
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../src/guestfs-actions.pod:76 ../fish/guestfish-actions.pod:58
6706 msgid ""
6707 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6708 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6709 "libvirt URI (or one set through an environment variable, see the libvirt "
6710 "documentation for full details)."
6711 msgstr ""
6712
6713 #. type: textblock
6714 #: ../src/guestfs-actions.pod:82 ../fish/guestfish-actions.pod:64
6715 msgid ""
6716 "The optional C<live> flag controls whether this call will try to connect to "
6717 "a running virtual machine C<guestfsd> process if it sees a suitable "
6718 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6719 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6720 "DAEMONS> for more information."
6721 msgstr ""
6722
6723 #. type: textblock
6724 #: ../src/guestfs-actions.pod:89 ../fish/guestfish-actions.pod:71
6725 msgid ""
6726 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6727 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6728 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6729 "as usual."
6730 msgstr ""
6731
6732 # type: textblock
6733 #. type: textblock
6734 #: ../src/guestfs-actions.pod:94
6735 msgid ""
6736 "The other optional parameters are passed directly through to "
6737 "C<guestfs_add_drive_opts>."
6738 msgstr ""
6739
6740 # type: textblock
6741 #. type: textblock
6742 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
6743 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693
6744 #: ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742
6745 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380
6746 #: ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939
6747 #: ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2099
6748 #: ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:2177
6749 #: ../src/guestfs-actions.pod:2470 ../src/guestfs-actions.pod:2942
6750 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:5135
6751 #: ../src/guestfs-actions.pod:5355 ../src/guestfs-actions.pod:5761
6752 #: ../src/guestfs-actions.pod:5787 ../src/guestfs-actions.pod:7181
6753 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7620
6754 #: ../src/guestfs-actions.pod:7633
6755 msgid "On error this function returns -1."
6756 msgstr ""
6757
6758 # type: textblock
6759 #. type: textblock
6760 #: ../src/guestfs-actions.pod:99
6761 msgid "(Added in 1.7.4)"
6762 msgstr ""
6763
6764 # type: =head2
6765 #. type: =head2
6766 #: ../src/guestfs-actions.pod:101
6767 msgid "guestfs_add_domain_va"
6768 msgstr ""
6769
6770 # type: verbatim
6771 #. type: verbatim
6772 #: ../src/guestfs-actions.pod:103
6773 #, no-wrap
6774 msgid ""
6775 " int\n"
6776 " guestfs_add_domain_va (guestfs_h *g,\n"
6777 "                        const char *dom,\n"
6778 "                        va_list args);\n"
6779 "\n"
6780 msgstr ""
6781
6782 # type: textblock
6783 #. type: textblock
6784 #: ../src/guestfs-actions.pod:108
6785 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6786 msgstr ""
6787
6788 # type: textblock
6789 #. type: textblock
6790 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
6791 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
6792 #: ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882
6793 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:2920
6794 #: ../src/guestfs-actions.pod:4705 ../src/guestfs-actions.pod:4717
6795 #: ../src/guestfs-actions.pod:4987 ../src/guestfs-actions.pod:4999
6796 #: ../src/guestfs-actions.pod:5225 ../src/guestfs-actions.pod:5236
6797 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6798 msgstr ""
6799
6800 # type: =head2
6801 #. type: =head2
6802 #: ../src/guestfs-actions.pod:112
6803 msgid "guestfs_add_domain_argv"
6804 msgstr ""
6805
6806 # type: verbatim
6807 #. type: verbatim
6808 #: ../src/guestfs-actions.pod:114
6809 #, no-wrap
6810 msgid ""
6811 " int\n"
6812 " guestfs_add_domain_argv (guestfs_h *g,\n"
6813 "                          const char *dom,\n"
6814 "                          const struct guestfs_add_domain_argv *optargs);\n"
6815 "\n"
6816 msgstr ""
6817
6818 # type: textblock
6819 #. type: textblock
6820 #: ../src/guestfs-actions.pod:119
6821 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6822 msgstr ""
6823
6824 # type: =head2
6825 #. type: =head2
6826 #: ../src/guestfs-actions.pod:123
6827 msgid "guestfs_add_drive"
6828 msgstr ""
6829
6830 # type: verbatim
6831 #. type: verbatim
6832 #: ../src/guestfs-actions.pod:125
6833 #, no-wrap
6834 msgid ""
6835 " int\n"
6836 " guestfs_add_drive (guestfs_h *g,\n"
6837 "                    const char *filename);\n"
6838 "\n"
6839 msgstr ""
6840
6841 # type: textblock
6842 #. type: textblock
6843 #: ../src/guestfs-actions.pod:129
6844 msgid ""
6845 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6846 "optional parameters, so the disk is added writable, with the format being "
6847 "detected automatically."
6848 msgstr ""
6849
6850 # type: textblock
6851 #. type: textblock
6852 #: ../src/guestfs-actions.pod:133
6853 msgid ""
6854 "Automatic detection of the format opens you up to a potential security hole "
6855 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6856 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6857 "you should think about replacing calls to this function with calls to "
6858 "C<guestfs_add_drive_opts>, and specifying the format."
6859 msgstr ""
6860
6861 # type: =head2
6862 #. type: =head2
6863 #: ../src/guestfs-actions.pod:144
6864 msgid "guestfs_add_drive_opts"
6865 msgstr ""
6866
6867 # type: verbatim
6868 #. type: verbatim
6869 #: ../src/guestfs-actions.pod:146
6870 #, no-wrap
6871 msgid ""
6872 " int\n"
6873 " guestfs_add_drive_opts (guestfs_h *g,\n"
6874 "                         const char *filename,\n"
6875 "                         ...);\n"
6876 "\n"
6877 msgstr ""
6878
6879 # type: verbatim
6880 #. type: verbatim
6881 #: ../src/guestfs-actions.pod:156
6882 #, no-wrap
6883 msgid ""
6884 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6885 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6886 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6887 "\n"
6888 msgstr ""
6889
6890 # type: textblock
6891 #. type: textblock
6892 #: ../src/guestfs-actions.pod:160 ../fish/guestfish-actions.pod:102
6893 msgid ""
6894 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6895 "The first time you call this function, the disk appears as C</dev/sda>, the "
6896 "second time as C</dev/sdb>, and so on."
6897 msgstr ""
6898
6899 # type: textblock
6900 #. type: textblock
6901 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:107
6902 msgid ""
6903 "You don't necessarily need to be root when using libguestfs.  However you "
6904 "obviously do need sufficient permissions to access the filename for whatever "
6905 "operations you want to perform (ie. read access if you just want to read the "
6906 "image or write access if you want to modify the image)."
6907 msgstr ""
6908
6909 # type: textblock
6910 #. type: textblock
6911 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:113
6912 msgid "This call checks that C<filename> exists."
6913 msgstr ""
6914
6915 # type: textblock
6916 #. type: textblock
6917 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4653
6918 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3096
6919 msgid "The optional arguments are:"
6920 msgstr ""
6921
6922 # type: =item
6923 #. type: =item
6924 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:119
6925 msgid "C<readonly>"
6926 msgstr ""
6927
6928 # type: textblock
6929 #. type: textblock
6930 #: ../src/guestfs-actions.pod:179 ../fish/guestfish-actions.pod:121
6931 msgid ""
6932 "If true then the image is treated as read-only.  Writes are still allowed, "
6933 "but they are stored in a temporary snapshot overlay which is discarded at "
6934 "the end.  The disk that you add is not modified."
6935 msgstr ""
6936
6937 # type: =item
6938 #. type: =item
6939 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:125
6940 msgid "C<format>"
6941 msgstr ""
6942
6943 # type: textblock
6944 #. type: textblock
6945 #: ../src/guestfs-actions.pod:185
6946 msgid ""
6947 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6948 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6949 "Possible formats include C<raw> and C<qcow2>."
6950 msgstr ""
6951
6952 # type: textblock
6953 #. type: textblock
6954 #: ../src/guestfs-actions.pod:189 ../fish/guestfish-actions.pod:131
6955 msgid ""
6956 "Automatic detection of the format opens you up to a potential security hole "
6957 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6958 "RHBZ#642934.  Specifying the format closes this security hole."
6959 msgstr ""
6960
6961 # type: =item
6962 #. type: =item
6963 #: ../src/guestfs-actions.pod:194 ../fish/guestfish-actions.pod:136
6964 msgid "C<iface>"
6965 msgstr ""
6966
6967 # type: textblock
6968 #. type: textblock
6969 #: ../src/guestfs-actions.pod:196
6970 msgid ""
6971 "This rarely-used option lets you emulate the behaviour of the deprecated "
6972 "C<guestfs_add_drive_with_if> call (q.v.)"
6973 msgstr ""
6974
6975 # type: textblock
6976 #. type: textblock
6977 #: ../src/guestfs-actions.pod:203
6978 msgid "(Added in 1.5.23)"
6979 msgstr ""
6980
6981 # type: =head2
6982 #. type: =head2
6983 #: ../src/guestfs-actions.pod:205
6984 msgid "guestfs_add_drive_opts_va"
6985 msgstr ""
6986
6987 # type: verbatim
6988 #. type: verbatim
6989 #: ../src/guestfs-actions.pod:207
6990 #, no-wrap
6991 msgid ""
6992 " int\n"
6993 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6994 "                            const char *filename,\n"
6995 "                            va_list args);\n"
6996 "\n"
6997 msgstr ""
6998
6999 # type: textblock
7000 #. type: textblock
7001 #: ../src/guestfs-actions.pod:212
7002 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
7003 msgstr ""
7004
7005 # type: =head2
7006 #. type: =head2
7007 #: ../src/guestfs-actions.pod:216
7008 msgid "guestfs_add_drive_opts_argv"
7009 msgstr ""
7010
7011 # type: verbatim
7012 #. type: verbatim
7013 #: ../src/guestfs-actions.pod:218
7014 #, no-wrap
7015 msgid ""
7016 " int\n"
7017 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
7018 "                              const char *filename,\n"
7019 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
7020 "\n"
7021 msgstr ""
7022
7023 # type: textblock
7024 #. type: textblock
7025 #: ../src/guestfs-actions.pod:223
7026 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
7027 msgstr ""
7028
7029 # type: =head2
7030 #. type: =head2
7031 #: ../src/guestfs-actions.pod:227
7032 msgid "guestfs_add_drive_ro"
7033 msgstr ""
7034
7035 # type: verbatim
7036 #. type: verbatim
7037 #: ../src/guestfs-actions.pod:229
7038 #, no-wrap
7039 msgid ""
7040 " int\n"
7041 " guestfs_add_drive_ro (guestfs_h *g,\n"
7042 "                       const char *filename);\n"
7043 "\n"
7044 msgstr ""
7045
7046 # type: textblock
7047 #. type: textblock
7048 #: ../src/guestfs-actions.pod:233
7049 msgid ""
7050 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
7051 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
7052 "disk is added read-only, with the format being detected automatically."
7053 msgstr ""
7054
7055 # type: textblock
7056 #. type: textblock
7057 #: ../src/guestfs-actions.pod:240
7058 msgid "(Added in 1.0.38)"
7059 msgstr ""
7060
7061 # type: =head2
7062 #. type: =head2
7063 #: ../src/guestfs-actions.pod:242
7064 msgid "guestfs_add_drive_ro_with_if"
7065 msgstr ""
7066
7067 # type: verbatim
7068 #. type: verbatim
7069 #: ../src/guestfs-actions.pod:244
7070 #, no-wrap
7071 msgid ""
7072 " int\n"
7073 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
7074 "                               const char *filename,\n"
7075 "                               const char *iface);\n"
7076 "\n"
7077 msgstr ""
7078
7079 # type: textblock
7080 #. type: textblock
7081 #: ../src/guestfs-actions.pod:249
7082 msgid ""
7083 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
7084 "QEMU interface emulation to use at run time."
7085 msgstr ""
7086
7087 # type: textblock
7088 #. type: textblock
7089 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
7090 #: ../src/guestfs-actions.pod:2429
7091 msgid "(Added in 1.0.84)"
7092 msgstr ""
7093
7094 # type: =head2
7095 #. type: =head2
7096 #: ../src/guestfs-actions.pod:263
7097 msgid "guestfs_add_drive_with_if"
7098 msgstr ""
7099
7100 # type: verbatim
7101 #. type: verbatim
7102 #: ../src/guestfs-actions.pod:265
7103 #, no-wrap
7104 msgid ""
7105 " int\n"
7106 " guestfs_add_drive_with_if (guestfs_h *g,\n"
7107 "                            const char *filename,\n"
7108 "                            const char *iface);\n"
7109 "\n"
7110 msgstr ""
7111
7112 # type: textblock
7113 #. type: textblock
7114 #: ../src/guestfs-actions.pod:270
7115 msgid ""
7116 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
7117 "QEMU interface emulation to use at run time."
7118 msgstr ""
7119
7120 # type: =head2
7121 #. type: =head2
7122 #: ../src/guestfs-actions.pod:284
7123 msgid "guestfs_aug_clear"
7124 msgstr ""
7125
7126 # type: verbatim
7127 #. type: verbatim
7128 #: ../src/guestfs-actions.pod:286
7129 #, no-wrap
7130 msgid ""
7131 " int\n"
7132 " guestfs_aug_clear (guestfs_h *g,\n"
7133 "                    const char *augpath);\n"
7134 "\n"
7135 msgstr ""
7136
7137 # type: textblock
7138 #. type: textblock
7139 #: ../src/guestfs-actions.pod:290 ../fish/guestfish-actions.pod:188
7140 msgid ""
7141 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7142 "L<augtool(1)> C<clear> command."
7143 msgstr ""
7144
7145 # type: textblock
7146 #. type: textblock
7147 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2179
7148 msgid "(Added in 1.3.4)"
7149 msgstr ""
7150
7151 # type: =head2
7152 #. type: =head2
7153 #: ../src/guestfs-actions.pod:297
7154 msgid "guestfs_aug_close"
7155 msgstr ""
7156
7157 # type: verbatim
7158 #. type: verbatim
7159 #: ../src/guestfs-actions.pod:299
7160 #, no-wrap
7161 msgid ""
7162 " int\n"
7163 " guestfs_aug_close (guestfs_h *g);\n"
7164 "\n"
7165 msgstr ""
7166
7167 # type: textblock
7168 #. type: textblock
7169 #: ../src/guestfs-actions.pod:302
7170 msgid ""
7171 "Close the current Augeas handle and free up any resources used by it.  After "
7172 "calling this, you have to call C<guestfs_aug_init> again before you can use "
7173 "any other Augeas functions."
7174 msgstr ""
7175
7176 # type: textblock
7177 #. type: textblock
7178 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
7179 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
7180 #: ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444
7181 #: ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489
7182 #: ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517
7183 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549
7184 #: ../src/guestfs-actions.pod:5838
7185 msgid "(Added in 0.7)"
7186 msgstr ""
7187
7188 # type: =head2
7189 #. type: =head2
7190 #: ../src/guestfs-actions.pod:311
7191 msgid "guestfs_aug_defnode"
7192 msgstr ""
7193
7194 # type: verbatim
7195 #. type: verbatim
7196 #: ../src/guestfs-actions.pod:313
7197 #, no-wrap
7198 msgid ""
7199 " struct guestfs_int_bool *\n"
7200 " guestfs_aug_defnode (guestfs_h *g,\n"
7201 "                      const char *name,\n"
7202 "                      const char *expr,\n"
7203 "                      const char *val);\n"
7204 "\n"
7205 msgstr ""
7206
7207 # type: textblock
7208 #. type: textblock
7209 #: ../src/guestfs-actions.pod:319 ../fish/guestfish-actions.pod:204
7210 msgid ""
7211 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7212 msgstr ""
7213
7214 # type: textblock
7215 #. type: textblock
7216 #: ../src/guestfs-actions.pod:322
7217 msgid ""
7218 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7219 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
7220 "containing that single node."
7221 msgstr ""
7222
7223 # type: textblock
7224 #. type: textblock
7225 #: ../src/guestfs-actions.pod:326 ../fish/guestfish-actions.pod:211
7226 msgid ""
7227 "On success this returns a pair containing the number of nodes in the "
7228 "nodeset, and a boolean flag if a node was created."
7229 msgstr ""
7230
7231 # type: textblock
7232 #. type: textblock
7233 #: ../src/guestfs-actions.pod:330
7234 msgid ""
7235 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
7236 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
7237 msgstr ""
7238
7239 # type: =head2
7240 #. type: =head2
7241 #: ../src/guestfs-actions.pod:336
7242 msgid "guestfs_aug_defvar"
7243 msgstr ""
7244
7245 # type: verbatim
7246 #. type: verbatim
7247 #: ../src/guestfs-actions.pod:338
7248 #, no-wrap
7249 msgid ""
7250 " int\n"
7251 " guestfs_aug_defvar (guestfs_h *g,\n"
7252 "                     const char *name,\n"
7253 "                     const char *expr);\n"
7254 "\n"
7255 msgstr ""
7256
7257 # type: textblock
7258 #. type: textblock
7259 #: ../src/guestfs-actions.pod:343 ../fish/guestfish-actions.pod:219
7260 msgid ""
7261 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7262 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7263 msgstr ""
7264
7265 # type: textblock
7266 #. type: textblock
7267 #: ../src/guestfs-actions.pod:347 ../fish/guestfish-actions.pod:223
7268 msgid ""
7269 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7270 "evaluates to something which is not a nodeset."
7271 msgstr ""
7272
7273 # type: =head2
7274 #. type: =head2
7275 #: ../src/guestfs-actions.pod:354
7276 msgid "guestfs_aug_get"
7277 msgstr ""
7278
7279 # type: verbatim
7280 #. type: verbatim
7281 #: ../src/guestfs-actions.pod:356
7282 #, no-wrap
7283 msgid ""
7284 " char *\n"
7285 " guestfs_aug_get (guestfs_h *g,\n"
7286 "                  const char *augpath);\n"
7287 "\n"
7288 msgstr ""
7289
7290 # type: textblock
7291 #. type: textblock
7292 #: ../src/guestfs-actions.pod:360 ../fish/guestfish-actions.pod:230
7293 msgid ""
7294 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7295 "node, the C<value> is returned."
7296 msgstr ""
7297
7298 # type: textblock
7299 #. type: textblock
7300 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922
7301 #: ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000
7302 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119
7303 #: ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266
7304 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419
7305 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719
7306 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899
7307 #: ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2002
7308 #: ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:2202
7309 #: ../src/guestfs-actions.pod:2394 ../src/guestfs-actions.pod:2598
7310 #: ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792
7311 #: ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:3025
7312 #: ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074
7313 #: ../src/guestfs-actions.pod:3108 ../src/guestfs-actions.pod:3167
7314 #: ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3207
7315 #: ../src/guestfs-actions.pod:3834 ../src/guestfs-actions.pod:4187
7316 #: ../src/guestfs-actions.pod:4357 ../src/guestfs-actions.pod:4467
7317 #: ../src/guestfs-actions.pod:5373 ../src/guestfs-actions.pod:5566
7318 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5914
7319 #: ../src/guestfs-actions.pod:5963 ../src/guestfs-actions.pod:6617
7320 #: ../src/guestfs-actions.pod:6633 ../src/guestfs-actions.pod:6650
7321 #: ../src/guestfs-actions.pod:6681 ../src/guestfs-actions.pod:7355
7322 #: ../src/guestfs-actions.pod:7374 ../src/guestfs-actions.pod:7392
7323 #: ../src/guestfs-actions.pod:7566 ../src/guestfs-actions.pod:7866
7324 msgid ""
7325 "This function returns a string, or NULL on error.  I<The caller must free "
7326 "the returned string after use>."
7327 msgstr ""
7328
7329 # type: =head2
7330 #. type: =head2
7331 #: ../src/guestfs-actions.pod:368
7332 msgid "guestfs_aug_init"
7333 msgstr ""
7334
7335 # type: verbatim
7336 #. type: verbatim
7337 #: ../src/guestfs-actions.pod:370
7338 #, no-wrap
7339 msgid ""
7340 " int\n"
7341 " guestfs_aug_init (guestfs_h *g,\n"
7342 "                   const char *root,\n"
7343 "                   int flags);\n"
7344 "\n"
7345 msgstr ""
7346
7347 # type: textblock
7348 #. type: textblock
7349 #: ../src/guestfs-actions.pod:375 ../fish/guestfish-actions.pod:237
7350 msgid ""
7351 "Create a new Augeas handle for editing configuration files.  If there was "
7352 "any previous Augeas handle associated with this guestfs session, then it is "
7353 "closed."
7354 msgstr ""
7355
7356 # type: textblock
7357 #. type: textblock
7358 #: ../src/guestfs-actions.pod:379
7359 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7360 msgstr ""
7361
7362 # type: textblock
7363 #. type: textblock
7364 #: ../src/guestfs-actions.pod:382 ../fish/guestfish-actions.pod:244
7365 msgid ""
7366 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7367 msgstr ""
7368
7369 # type: textblock
7370 #. type: textblock
7371 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:247
7372 msgid ""
7373 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7374 "logical I<or> of the following integers:"
7375 msgstr ""
7376
7377 # type: =item
7378 #. type: =item
7379 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:253
7380 msgid "C<AUG_SAVE_BACKUP> = 1"
7381 msgstr ""
7382
7383 # type: textblock
7384 #. type: textblock
7385 #: ../src/guestfs-actions.pod:393 ../fish/guestfish-actions.pod:255
7386 msgid "Keep the original file with a C<.augsave> extension."
7387 msgstr ""
7388
7389 # type: =item
7390 #. type: =item
7391 #: ../src/guestfs-actions.pod:395 ../fish/guestfish-actions.pod:257
7392 msgid "C<AUG_SAVE_NEWFILE> = 2"
7393 msgstr ""
7394
7395 # type: textblock
7396 #. type: textblock
7397 #: ../src/guestfs-actions.pod:397 ../fish/guestfish-actions.pod:259
7398 msgid ""
7399 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7400 "original.  Overrides C<AUG_SAVE_BACKUP>."
7401 msgstr ""
7402
7403 # type: =item
7404 #. type: =item
7405 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:262
7406 msgid "C<AUG_TYPE_CHECK> = 4"
7407 msgstr ""
7408
7409 # type: textblock
7410 #. type: textblock
7411 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:264
7412 msgid "Typecheck lenses (can be expensive)."
7413 msgstr ""
7414
7415 # type: =item
7416 #. type: =item
7417 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:266
7418 msgid "C<AUG_NO_STDINC> = 8"
7419 msgstr ""
7420
7421 # type: textblock
7422 #. type: textblock
7423 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:268
7424 msgid "Do not use standard load path for modules."
7425 msgstr ""
7426
7427 # type: =item
7428 #. type: =item
7429 #: ../src/guestfs-actions.pod:408 ../fish/guestfish-actions.pod:270
7430 msgid "C<AUG_SAVE_NOOP> = 16"
7431 msgstr ""
7432
7433 # type: textblock
7434 #. type: textblock
7435 #: ../src/guestfs-actions.pod:410 ../fish/guestfish-actions.pod:272
7436 msgid "Make save a no-op, just record what would have been changed."
7437 msgstr ""
7438
7439 # type: =item
7440 #. type: =item
7441 #: ../src/guestfs-actions.pod:412 ../fish/guestfish-actions.pod:274
7442 msgid "C<AUG_NO_LOAD> = 32"
7443 msgstr ""
7444
7445 # type: textblock
7446 #. type: textblock
7447 #: ../src/guestfs-actions.pod:414
7448 msgid "Do not load the tree in C<guestfs_aug_init>."
7449 msgstr ""
7450
7451 # type: textblock
7452 #. type: textblock
7453 #: ../src/guestfs-actions.pod:418
7454 msgid "To close the handle, you can call C<guestfs_aug_close>."
7455 msgstr ""
7456
7457 # type: textblock
7458 #. type: textblock
7459 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:282
7460 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7461 msgstr ""
7462
7463 # type: =head2
7464 #. type: =head2
7465 #: ../src/guestfs-actions.pod:426
7466 msgid "guestfs_aug_insert"
7467 msgstr ""
7468
7469 # type: verbatim
7470 #. type: verbatim
7471 #: ../src/guestfs-actions.pod:428
7472 #, no-wrap
7473 msgid ""
7474 " int\n"
7475 " guestfs_aug_insert (guestfs_h *g,\n"
7476 "                     const char *augpath,\n"
7477 "                     const char *label,\n"
7478 "                     int before);\n"
7479 "\n"
7480 msgstr ""
7481
7482 # type: textblock
7483 #. type: textblock
7484 #: ../src/guestfs-actions.pod:434 ../fish/guestfish-actions.pod:288
7485 msgid ""
7486 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7487 "or after C<path> (depending on the boolean flag C<before>)."
7488 msgstr ""
7489
7490 # type: textblock
7491 #. type: textblock
7492 #: ../src/guestfs-actions.pod:438 ../fish/guestfish-actions.pod:292
7493 msgid ""
7494 "C<path> must match exactly one existing node in the tree, and C<label> must "
7495 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7496 msgstr ""
7497
7498 # type: =head2
7499 #. type: =head2
7500 #: ../src/guestfs-actions.pod:446
7501 msgid "guestfs_aug_load"
7502 msgstr ""
7503
7504 # type: verbatim
7505 #. type: verbatim
7506 #: ../src/guestfs-actions.pod:448
7507 #, no-wrap
7508 msgid ""
7509 " int\n"
7510 " guestfs_aug_load (guestfs_h *g);\n"
7511 "\n"
7512 msgstr ""
7513
7514 # type: textblock
7515 #. type: textblock
7516 #: ../src/guestfs-actions.pod:451 ../fish/guestfish-actions.pod:300
7517 msgid "Load files into the tree."
7518 msgstr ""
7519
7520 # type: textblock
7521 #. type: textblock
7522 #: ../src/guestfs-actions.pod:453 ../fish/guestfish-actions.pod:302
7523 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7524 msgstr ""
7525
7526 # type: =head2
7527 #. type: =head2
7528 #: ../src/guestfs-actions.pod:460
7529 msgid "guestfs_aug_ls"
7530 msgstr ""
7531
7532 # type: verbatim
7533 #. type: verbatim
7534 #: ../src/guestfs-actions.pod:462
7535 #, no-wrap
7536 msgid ""
7537 " char **\n"
7538 " guestfs_aug_ls (guestfs_h *g,\n"
7539 "                 const char *augpath);\n"
7540 "\n"
7541 msgstr ""
7542
7543 # type: textblock
7544 #. type: textblock
7545 #: ../src/guestfs-actions.pod:466
7546 msgid ""
7547 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7548 "sorting the resulting nodes into alphabetical order."
7549 msgstr ""
7550
7551 # type: textblock
7552 #. type: textblock
7553 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485
7554 #: ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138
7555 #: ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453
7556 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
7557 #: ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2274
7558 #: ../src/guestfs-actions.pod:2290 ../src/guestfs-actions.pod:2309
7559 #: ../src/guestfs-actions.pod:2352 ../src/guestfs-actions.pod:2376
7560 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2496
7561 #: ../src/guestfs-actions.pod:2753 ../src/guestfs-actions.pod:3127
7562 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3717
7563 #: ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3754
7564 #: ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:3921
7565 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:5096
7566 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:5834
7567 #: ../src/guestfs-actions.pod:5948 ../src/guestfs-actions.pod:6697
7568 #: ../src/guestfs-actions.pod:6758 ../src/guestfs-actions.pod:6813
7569 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6983
7570 #: ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7479
7571 #: ../src/guestfs-actions.pod:7526 ../src/guestfs-actions.pod:7718
7572 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7823
7573 #: ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7888
7574 #: ../src/guestfs-actions.pod:7907
7575 msgid ""
7576 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7577 ">), or NULL if there was an error.  I<The caller must free the strings and "
7578 "the array after use>."
7579 msgstr ""
7580
7581 # type: textblock
7582 #. type: textblock
7583 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063
7584 #: ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491
7585 #: ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3512
7586 #: ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4220
7587 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4440
7588 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:5100
7589 #: ../src/guestfs-actions.pod:5649 ../src/guestfs-actions.pod:6046
7590 #: ../src/guestfs-actions.pod:6060 ../src/guestfs-actions.pod:6072
7591 #: ../src/guestfs-actions.pod:6538 ../src/guestfs-actions.pod:7197
7592 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7443
7593 #: ../src/guestfs-actions.pod:7706
7594 msgid "(Added in 0.8)"
7595 msgstr ""
7596
7597 # type: =head2
7598 #. type: =head2
7599 #: ../src/guestfs-actions.pod:475
7600 msgid "guestfs_aug_match"
7601 msgstr ""
7602
7603 # type: verbatim
7604 #. type: verbatim
7605 #: ../src/guestfs-actions.pod:477
7606 #, no-wrap
7607 msgid ""
7608 " char **\n"
7609 " guestfs_aug_match (guestfs_h *g,\n"
7610 "                    const char *augpath);\n"
7611 "\n"
7612 msgstr ""
7613
7614 # type: textblock
7615 #. type: textblock
7616 #: ../src/guestfs-actions.pod:481 ../fish/guestfish-actions.pod:316
7617 msgid ""
7618 "Returns a list of paths which match the path expression C<path>.  The "
7619 "returned paths are sufficiently qualified so that they match exactly one "
7620 "node in the current tree."
7621 msgstr ""
7622
7623 # type: =head2
7624 #. type: =head2
7625 #: ../src/guestfs-actions.pod:491
7626 msgid "guestfs_aug_mv"
7627 msgstr ""
7628
7629 # type: verbatim
7630 #. type: verbatim
7631 #: ../src/guestfs-actions.pod:493
7632 #, no-wrap
7633 msgid ""
7634 " int\n"
7635 " guestfs_aug_mv (guestfs_h *g,\n"
7636 "                 const char *src,\n"
7637 "                 const char *dest);\n"
7638 "\n"
7639 msgstr ""
7640
7641 # type: textblock
7642 #. type: textblock
7643 #: ../src/guestfs-actions.pod:498 ../fish/guestfish-actions.pod:324
7644 msgid ""
7645 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7646 "C<dest> is overwritten if it exists."
7647 msgstr ""
7648
7649 # type: =head2
7650 #. type: =head2
7651 #: ../src/guestfs-actions.pod:505
7652 msgid "guestfs_aug_rm"
7653 msgstr ""
7654
7655 # type: verbatim
7656 #. type: verbatim
7657 #: ../src/guestfs-actions.pod:507
7658 #, no-wrap
7659 msgid ""
7660 " int\n"
7661 " guestfs_aug_rm (guestfs_h *g,\n"
7662 "                 const char *augpath);\n"
7663 "\n"
7664 msgstr ""
7665
7666 # type: textblock
7667 #. type: textblock
7668 #: ../src/guestfs-actions.pod:511 ../fish/guestfish-actions.pod:331
7669 msgid "Remove C<path> and all of its children."
7670 msgstr ""
7671
7672 # type: textblock
7673 #. type: textblock
7674 #: ../src/guestfs-actions.pod:513 ../fish/guestfish-actions.pod:333
7675 msgid "On success this returns the number of entries which were removed."
7676 msgstr ""
7677
7678 # type: =head2
7679 #. type: =head2
7680 #: ../src/guestfs-actions.pod:519
7681 msgid "guestfs_aug_save"
7682 msgstr ""
7683
7684 # type: verbatim
7685 #. type: verbatim
7686 #: ../src/guestfs-actions.pod:521
7687 #, no-wrap
7688 msgid ""
7689 " int\n"
7690 " guestfs_aug_save (guestfs_h *g);\n"
7691 "\n"
7692 msgstr ""
7693
7694 # type: textblock
7695 #. type: textblock
7696 #: ../src/guestfs-actions.pod:524 ../fish/guestfish-actions.pod:339
7697 msgid "This writes all pending changes to disk."
7698 msgstr ""
7699
7700 # type: textblock
7701 #. type: textblock
7702 #: ../src/guestfs-actions.pod:526
7703 msgid ""
7704 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7705 "are saved."
7706 msgstr ""
7707
7708 # type: =head2
7709 #. type: =head2
7710 #: ../src/guestfs-actions.pod:533
7711 msgid "guestfs_aug_set"
7712 msgstr ""
7713
7714 # type: verbatim
7715 #. type: verbatim
7716 #: ../src/guestfs-actions.pod:535
7717 #, no-wrap
7718 msgid ""
7719 " int\n"
7720 " guestfs_aug_set (guestfs_h *g,\n"
7721 "                  const char *augpath,\n"
7722 "                  const char *val);\n"
7723 "\n"
7724 msgstr ""
7725
7726 # type: textblock
7727 #. type: textblock
7728 #: ../src/guestfs-actions.pod:540 ../fish/guestfish-actions.pod:348
7729 msgid "Set the value associated with C<path> to C<val>."
7730 msgstr ""
7731
7732 # type: textblock
7733 #. type: textblock
7734 #: ../src/guestfs-actions.pod:542
7735 msgid ""
7736 "In the Augeas API, it is possible to clear a node by setting the value to "
7737 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7738 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7739 msgstr ""
7740
7741 # type: =head2
7742 #. type: =head2
7743 #: ../src/guestfs-actions.pod:551
7744 msgid "guestfs_available"
7745 msgstr ""
7746
7747 # type: verbatim
7748 #. type: verbatim
7749 #: ../src/guestfs-actions.pod:553
7750 #, no-wrap
7751 msgid ""
7752 " int\n"
7753 " guestfs_available (guestfs_h *g,\n"
7754 "                    char *const *groups);\n"
7755 "\n"
7756 msgstr ""
7757
7758 # type: textblock
7759 #. type: textblock
7760 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:359
7761 msgid ""
7762 "This command is used to check the availability of some groups of "
7763 "functionality in the appliance, which not all builds of the libguestfs "
7764 "appliance will be able to provide."
7765 msgstr ""
7766
7767 # type: textblock
7768 #. type: textblock
7769 #: ../src/guestfs-actions.pod:561
7770 msgid ""
7771 "The libguestfs groups, and the functions that those groups correspond to, "
7772 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7773 "runtime by calling C<guestfs_available_all_groups>."
7774 msgstr ""
7775
7776 # type: textblock
7777 #. type: textblock
7778 #: ../src/guestfs-actions.pod:566 ../fish/guestfish-actions.pod:368
7779 msgid ""
7780 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7781 "\"]> would check for the availability of the Linux inotify functions and "
7782 "Augeas (configuration file editing) functions."
7783 msgstr ""
7784
7785 # type: textblock
7786 #. type: textblock
7787 #: ../src/guestfs-actions.pod:571 ../fish/guestfish-actions.pod:373
7788 msgid "The command returns no error if I<all> requested groups are available."
7789 msgstr ""
7790
7791 # type: textblock
7792 #. type: textblock
7793 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:375
7794 msgid ""
7795 "It fails with an error if one or more of the requested groups is unavailable "
7796 "in the appliance."
7797 msgstr ""
7798
7799 # type: textblock
7800 #. type: textblock
7801 #: ../src/guestfs-actions.pod:576 ../fish/guestfish-actions.pod:378
7802 msgid ""
7803 "If an unknown group name is included in the list of groups then an error is "
7804 "always returned."
7805 msgstr ""
7806
7807 # type: textblock
7808 #. type: textblock
7809 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:381
7810 msgid "I<Notes:>"
7811 msgstr ""
7812
7813 # type: textblock
7814 #. type: textblock
7815 #: ../src/guestfs-actions.pod:585
7816 msgid "You must call C<guestfs_launch> before calling this function."
7817 msgstr ""
7818
7819 # type: textblock
7820 #. type: textblock
7821 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:389
7822 msgid ""
7823 "The reason is because we don't know what groups are supported by the "
7824 "appliance/daemon until it is running and can be queried."
7825 msgstr ""
7826
7827 # type: textblock
7828 #. type: textblock
7829 #: ../src/guestfs-actions.pod:593 ../fish/guestfish-actions.pod:395
7830 msgid ""
7831 "If a group of functions is available, this does not necessarily mean that "
7832 "they will work.  You still have to check for errors when calling individual "
7833 "API functions even if they are available."
7834 msgstr ""
7835
7836 # type: textblock
7837 #. type: textblock
7838 #: ../src/guestfs-actions.pod:600 ../fish/guestfish-actions.pod:402
7839 msgid ""
7840 "It is usually the job of distro packagers to build complete functionality "
7841 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7842 "with all requirements satisfied, will support everything."
7843 msgstr ""
7844
7845 # type: textblock
7846 #. type: textblock
7847 #: ../src/guestfs-actions.pod:607
7848 msgid ""
7849 "This call was added in version C<1.0.80>.  In previous versions of "
7850 "libguestfs all you could do would be to speculatively execute a command to "
7851 "find out if the daemon implemented it.  See also C<guestfs_version>."
7852 msgstr ""
7853
7854 # type: textblock
7855 #. type: textblock
7856 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
7857 msgid "(Added in 1.0.80)"
7858 msgstr ""
7859
7860 # type: =head2
7861 #. type: =head2
7862 #: ../src/guestfs-actions.pod:618
7863 msgid "guestfs_available_all_groups"
7864 msgstr ""
7865
7866 # type: verbatim
7867 #. type: verbatim
7868 #: ../src/guestfs-actions.pod:620
7869 #, no-wrap
7870 msgid ""
7871 " char **\n"
7872 " guestfs_available_all_groups (guestfs_h *g);\n"
7873 "\n"
7874 msgstr ""
7875
7876 # type: textblock
7877 #. type: textblock
7878 #: ../src/guestfs-actions.pod:623
7879 msgid ""
7880 "This command returns a list of all optional groups that this daemon knows "
7881 "about.  Note this returns both supported and unsupported groups.  To find "
7882 "out which ones the daemon can actually support you have to call "
7883 "C<guestfs_available> on each member of the returned list."
7884 msgstr ""
7885
7886 # type: textblock
7887 #. type: textblock
7888 #: ../src/guestfs-actions.pod:629
7889 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7890 msgstr ""
7891
7892 # type: textblock
7893 #. type: textblock
7894 #: ../src/guestfs-actions.pod:635
7895 msgid "(Added in 1.3.15)"
7896 msgstr ""
7897
7898 # type: =head2
7899 #. type: =head2
7900 #: ../src/guestfs-actions.pod:637
7901 msgid "guestfs_base64_in"
7902 msgstr ""
7903
7904 # type: verbatim
7905 #. type: verbatim
7906 #: ../src/guestfs-actions.pod:639
7907 #, no-wrap
7908 msgid ""
7909 " int\n"
7910 " guestfs_base64_in (guestfs_h *g,\n"
7911 "                    const char *base64file,\n"
7912 "                    const char *filename);\n"
7913 "\n"
7914 msgstr ""
7915
7916 # type: textblock
7917 #. type: textblock
7918 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:432
7919 msgid ""
7920 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7921 msgstr ""
7922
7923 # type: textblock
7924 #. type: textblock
7925 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
7926 msgid "(Added in 1.3.5)"
7927 msgstr ""
7928
7929 # type: =head2
7930 #. type: =head2
7931 #: ../src/guestfs-actions.pod:651
7932 msgid "guestfs_base64_out"
7933 msgstr ""
7934
7935 # type: verbatim
7936 #. type: verbatim
7937 #: ../src/guestfs-actions.pod:653
7938 #, no-wrap
7939 msgid ""
7940 " int\n"
7941 " guestfs_base64_out (guestfs_h *g,\n"
7942 "                     const char *filename,\n"
7943 "                     const char *base64file);\n"
7944 "\n"
7945 msgstr ""
7946
7947 # type: textblock
7948 #. type: textblock
7949 #: ../src/guestfs-actions.pod:658 ../fish/guestfish-actions.pod:441
7950 msgid ""
7951 "This command downloads the contents of C<filename>, writing it out to local "
7952 "file C<base64file> encoded as base64."
7953 msgstr ""
7954
7955 # type: =head2
7956 #. type: =head2
7957 #: ../src/guestfs-actions.pod:665
7958 msgid "guestfs_blockdev_flushbufs"
7959 msgstr ""
7960
7961 # type: verbatim
7962 #. type: verbatim
7963 #: ../src/guestfs-actions.pod:667
7964 #, no-wrap
7965 msgid ""
7966 " int\n"
7967 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7968 "                             const char *device);\n"
7969 "\n"
7970 msgstr ""
7971
7972 # type: textblock
7973 #. type: textblock
7974 #: ../src/guestfs-actions.pod:671 ../fish/guestfish-actions.pod:450
7975 msgid ""
7976 "This tells the kernel to flush internal buffers associated with C<device>."
7977 msgstr ""
7978
7979 # type: textblock
7980 #. type: textblock
7981 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691
7982 #: ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722
7983 #: ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759
7984 #: ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791
7985 #: ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
7986 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464
7987 #: ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483
7988 #: ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508
7989 #: ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527
7990 #: ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543
7991 msgid "This uses the L<blockdev(8)> command."
7992 msgstr ""
7993
7994 # type: textblock
7995 #. type: textblock
7996 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695
7997 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726
7998 #: ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763
7999 #: ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795
8000 #: ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
8001 msgid "(Added in 0.9.3)"
8002 msgstr ""
8003
8004 # type: =head2
8005 #. type: =head2
8006 #: ../src/guestfs-actions.pod:680
8007 msgid "guestfs_blockdev_getbsz"
8008 msgstr ""
8009
8010 # type: verbatim
8011 #. type: verbatim
8012 #: ../src/guestfs-actions.pod:682
8013 #, no-wrap
8014 msgid ""
8015 " int\n"
8016 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
8017 "                          const char *device);\n"
8018 "\n"
8019 msgstr ""
8020
8021 # type: textblock
8022 #. type: textblock
8023 #: ../src/guestfs-actions.pod:686 ../fish/guestfish-actions.pod:459
8024 msgid "This returns the block size of a device."
8025 msgstr ""
8026
8027 # type: textblock
8028 #. type: textblock
8029 #: ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
8030 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524
8031 msgid ""
8032 "(Note this is different from both I<size in blocks> and I<filesystem block "
8033 "size>)."
8034 msgstr ""
8035
8036 # type: =head2
8037 #. type: =head2
8038 #: ../src/guestfs-actions.pod:697
8039 msgid "guestfs_blockdev_getro"
8040 msgstr ""
8041
8042 # type: verbatim
8043 #. type: verbatim
8044 #: ../src/guestfs-actions.pod:699
8045 #, no-wrap
8046 msgid ""
8047 " int\n"
8048 " guestfs_blockdev_getro (guestfs_h *g,\n"
8049 "                         const char *device);\n"
8050 "\n"
8051 msgstr ""
8052
8053 # type: textblock
8054 #. type: textblock
8055 #: ../src/guestfs-actions.pod:703 ../fish/guestfish-actions.pod:470
8056 msgid ""
8057 "Returns a boolean indicating if the block device is read-only (true if read-"
8058 "only, false if not)."
8059 msgstr ""
8060
8061 # type: textblock
8062 #. type: textblock
8063 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474
8064 #: ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978
8065 #: ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061
8066 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2125
8067 #: ../src/guestfs-actions.pod:2140 ../src/guestfs-actions.pod:2165
8068 #: ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:3224
8069 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258
8070 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3434
8071 #: ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463
8072 #: ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494
8073 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3524
8074 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3551
8075 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3581
8076 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
8077 #: ../src/guestfs-actions.pod:5337
8078 msgid "This function returns a C truth value on success or -1 on error."
8079 msgstr ""
8080
8081 # type: =head2
8082 #. type: =head2
8083 #: ../src/guestfs-actions.pod:712
8084 msgid "guestfs_blockdev_getsize64"
8085 msgstr ""
8086
8087 # type: verbatim
8088 #. type: verbatim
8089 #: ../src/guestfs-actions.pod:714
8090 #, no-wrap
8091 msgid ""
8092 " int64_t\n"
8093 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
8094 "                             const char *device);\n"
8095 "\n"
8096 msgstr ""
8097
8098 # type: textblock
8099 #. type: textblock
8100 #: ../src/guestfs-actions.pod:718 ../fish/guestfish-actions.pod:479
8101 msgid "This returns the size of the device in bytes."
8102 msgstr ""
8103
8104 # type: textblock
8105 #. type: textblock
8106 #: ../src/guestfs-actions.pod:720
8107 msgid "See also C<guestfs_blockdev_getsz>."
8108 msgstr ""
8109
8110 # type: =head2
8111 #. type: =head2
8112 #: ../src/guestfs-actions.pod:728
8113 msgid "guestfs_blockdev_getss"
8114 msgstr ""
8115
8116 # type: verbatim
8117 #. type: verbatim
8118 #: ../src/guestfs-actions.pod:730
8119 #, no-wrap
8120 msgid ""
8121 " int\n"
8122 " guestfs_blockdev_getss (guestfs_h *g,\n"
8123 "                         const char *device);\n"
8124 "\n"
8125 msgstr ""
8126
8127 # type: textblock
8128 #. type: textblock
8129 #: ../src/guestfs-actions.pod:734 ../fish/guestfish-actions.pod:489
8130 msgid ""
8131 "This returns the size of sectors on a block device.  Usually 512, but can be "
8132 "larger for modern devices."
8133 msgstr ""
8134
8135 # type: textblock
8136 #. type: textblock
8137 #: ../src/guestfs-actions.pod:737
8138 msgid ""
8139 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
8140 "that)."
8141 msgstr ""
8142
8143 # type: =head2
8144 #. type: =head2
8145 #: ../src/guestfs-actions.pod:746
8146 msgid "guestfs_blockdev_getsz"
8147 msgstr ""
8148
8149 # type: verbatim
8150 #. type: verbatim
8151 #: ../src/guestfs-actions.pod:748
8152 #, no-wrap
8153 msgid ""
8154 " int64_t\n"
8155 " guestfs_blockdev_getsz (guestfs_h *g,\n"
8156 "                         const char *device);\n"
8157 "\n"
8158 msgstr ""
8159
8160 # type: textblock
8161 #. type: textblock
8162 #: ../src/guestfs-actions.pod:752 ../fish/guestfish-actions.pod:501
8163 msgid ""
8164 "This returns the size of the device in units of 512-byte sectors (even if "
8165 "the sectorsize isn't 512 bytes ... weird)."
8166 msgstr ""
8167
8168 # type: textblock
8169 #. type: textblock
8170 #: ../src/guestfs-actions.pod:755
8171 msgid ""
8172 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
8173 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
8174 msgstr ""
8175
8176 # type: =head2
8177 #. type: =head2
8178 #: ../src/guestfs-actions.pod:765
8179 msgid "guestfs_blockdev_rereadpt"
8180 msgstr ""
8181
8182 # type: verbatim
8183 #. type: verbatim
8184 #: ../src/guestfs-actions.pod:767
8185 #, no-wrap
8186 msgid ""
8187 " int\n"
8188 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
8189 "                            const char *device);\n"
8190 "\n"
8191 msgstr ""
8192
8193 # type: textblock
8194 #. type: textblock
8195 #: ../src/guestfs-actions.pod:771 ../fish/guestfish-actions.pod:514
8196 msgid "Reread the partition table on C<device>."
8197 msgstr ""
8198
8199 # type: =head2
8200 #. type: =head2
8201 #: ../src/guestfs-actions.pod:779
8202 msgid "guestfs_blockdev_setbsz"
8203 msgstr ""
8204
8205 # type: verbatim
8206 #. type: verbatim
8207 #: ../src/guestfs-actions.pod:781
8208 #, no-wrap
8209 msgid ""
8210 " int\n"
8211 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
8212 "                          const char *device,\n"
8213 "                          int blocksize);\n"
8214 "\n"
8215 msgstr ""
8216
8217 # type: textblock
8218 #. type: textblock
8219 #: ../src/guestfs-actions.pod:786 ../fish/guestfish-actions.pod:522
8220 msgid "This sets the block size of a device."
8221 msgstr ""
8222
8223 # type: =head2
8224 #. type: =head2
8225 #: ../src/guestfs-actions.pod:797
8226 msgid "guestfs_blockdev_setro"
8227 msgstr ""
8228
8229 # type: verbatim
8230 #. type: verbatim
8231 #: ../src/guestfs-actions.pod:799
8232 #, no-wrap
8233 msgid ""
8234 " int\n"
8235 " guestfs_blockdev_setro (guestfs_h *g,\n"
8236 "                         const char *device);\n"
8237 "\n"
8238 msgstr ""
8239
8240 # type: textblock
8241 #. type: textblock
8242 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:533
8243 msgid "Sets the block device named C<device> to read-only."
8244 msgstr ""
8245
8246 # type: =head2
8247 #. type: =head2
8248 #: ../src/guestfs-actions.pod:811
8249 msgid "guestfs_blockdev_setrw"
8250 msgstr ""
8251
8252 # type: verbatim
8253 #. type: verbatim
8254 #: ../src/guestfs-actions.pod:813
8255 #, no-wrap
8256 msgid ""
8257 " int\n"
8258 " guestfs_blockdev_setrw (guestfs_h *g,\n"
8259 "                         const char *device);\n"
8260 "\n"
8261 msgstr ""
8262
8263 # type: textblock
8264 #. type: textblock
8265 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:541
8266 msgid "Sets the block device named C<device> to read-write."
8267 msgstr ""
8268
8269 #. type: =head2
8270 #: ../src/guestfs-actions.pod:825
8271 msgid "guestfs_btrfs_filesystem_resize"
8272 msgstr ""
8273
8274 #. type: verbatim
8275 #: ../src/guestfs-actions.pod:827
8276 #, no-wrap
8277 msgid ""
8278 " int\n"
8279 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
8280 "                                  const char *mountpoint,\n"
8281 "                                  ...);\n"
8282 "\n"
8283 msgstr ""
8284
8285 #. type: verbatim
8286 #: ../src/guestfs-actions.pod:837
8287 #, no-wrap
8288 msgid ""
8289 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
8290 "\n"
8291 msgstr ""
8292
8293 #. type: textblock
8294 #: ../src/guestfs-actions.pod:839 ../fish/guestfish-actions.pod:549
8295 msgid "This command resizes a btrfs filesystem."
8296 msgstr ""
8297
8298 #. type: textblock
8299 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:551
8300 msgid ""
8301 "Note that unlike other resize calls, the filesystem has to be mounted and "
8302 "the parameter is the mountpoint not the device (this is a requirement of "
8303 "btrfs itself)."
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5187
8308 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417
8309 msgid "The optional parameters are:"
8310 msgstr ""
8311
8312 #. type: =item
8313 #: ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5191
8314 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421
8315 msgid "C<size>"
8316 msgstr ""
8317
8318 #. type: textblock
8319 #: ../src/guestfs-actions.pod:851 ../fish/guestfish-actions.pod:561
8320 msgid ""
8321 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
8322 "resized to the maximum size."
8323 msgstr ""
8324
8325 #. type: textblock
8326 #: ../src/guestfs-actions.pod:856 ../fish/guestfish-actions.pod:566
8327 msgid "See also L<btrfs(8)>."
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../src/guestfs-actions.pod:860
8332 msgid "(Added in 1.11.17)"
8333 msgstr ""
8334
8335 #. type: =head2
8336 #: ../src/guestfs-actions.pod:862
8337 msgid "guestfs_btrfs_filesystem_resize_va"
8338 msgstr ""
8339
8340 #. type: verbatim
8341 #: ../src/guestfs-actions.pod:864
8342 #, no-wrap
8343 msgid ""
8344 " int\n"
8345 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
8346 "                                     const char *mountpoint,\n"
8347 "                                     va_list args);\n"
8348 "\n"
8349 msgstr ""
8350
8351 #. type: textblock
8352 #: ../src/guestfs-actions.pod:869
8353 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
8354 msgstr ""
8355
8356 #. type: =head2
8357 #: ../src/guestfs-actions.pod:873
8358 msgid "guestfs_btrfs_filesystem_resize_argv"
8359 msgstr ""
8360
8361 #. type: verbatim
8362 #: ../src/guestfs-actions.pod:875
8363 #, no-wrap
8364 msgid ""
8365 " int\n"
8366 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
8367 "                                       const char *mountpoint,\n"
8368 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
8369 "\n"
8370 msgstr ""
8371
8372 #. type: textblock
8373 #: ../src/guestfs-actions.pod:880
8374 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
8375 msgstr ""
8376
8377 # type: =head2
8378 #. type: =head2
8379 #: ../src/guestfs-actions.pod:884
8380 msgid "guestfs_case_sensitive_path"
8381 msgstr ""
8382
8383 # type: verbatim
8384 #. type: verbatim
8385 #: ../src/guestfs-actions.pod:886
8386 #, no-wrap
8387 msgid ""
8388 " char *\n"
8389 " guestfs_case_sensitive_path (guestfs_h *g,\n"
8390 "                              const char *path);\n"
8391 "\n"
8392 msgstr ""
8393
8394 # type: textblock
8395 #. type: textblock
8396 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:574
8397 msgid ""
8398 "This can be used to resolve case insensitive paths on a filesystem which is "
8399 "case sensitive.  The use case is to resolve paths which you have read from "
8400 "Windows configuration files or the Windows Registry, to the true path."
8401 msgstr ""
8402
8403 # type: textblock
8404 #. type: textblock
8405 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:579
8406 msgid ""
8407 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8408 "(and probably others), which is that although the underlying filesystem is "
8409 "case-insensitive, the driver exports the filesystem to Linux as case-"
8410 "sensitive."
8411 msgstr ""
8412
8413 # type: textblock
8414 #. type: textblock
8415 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:584
8416 msgid ""
8417 "One consequence of this is that special directories such as C<c:\\windows> "
8418 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8419 "precise details of how they were created.  In Windows itself this would not "
8420 "be a problem."
8421 msgstr ""
8422
8423 # type: textblock
8424 #. type: textblock
8425 #: ../src/guestfs-actions.pod:906 ../fish/guestfish-actions.pod:590
8426 msgid ""
8427 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8428 "#posixfilenames1>"
8429 msgstr ""
8430
8431 # type: textblock
8432 #. type: textblock
8433 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:593
8434 msgid ""
8435 "This function resolves the true case of each element in the path and returns "
8436 "the case-sensitive path."
8437 msgstr ""
8438
8439 # type: textblock
8440 #. type: textblock
8441 #: ../src/guestfs-actions.pod:912
8442 msgid ""
8443 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8444 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8445 "how the directories were originally created under Windows)."
8446 msgstr ""
8447
8448 # type: textblock
8449 #. type: textblock
8450 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:601
8451 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8452 msgstr ""
8453
8454 # type: textblock
8455 #. type: textblock
8456 #: ../src/guestfs-actions.pod:920
8457 msgid "See also C<guestfs_realpath>."
8458 msgstr ""
8459
8460 # type: textblock
8461 #. type: textblock
8462 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7377
8463 msgid "(Added in 1.0.75)"
8464 msgstr ""
8465
8466 # type: =head2
8467 #. type: =head2
8468 #: ../src/guestfs-actions.pod:927
8469 msgid "guestfs_cat"
8470 msgstr ""
8471
8472 # type: verbatim
8473 #. type: verbatim
8474 #: ../src/guestfs-actions.pod:929
8475 #, no-wrap
8476 msgid ""
8477 " char *\n"
8478 " guestfs_cat (guestfs_h *g,\n"
8479 "              const char *path);\n"
8480 "\n"
8481 msgstr ""
8482
8483 # type: textblock
8484 #. type: textblock
8485 #: ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5824
8486 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3831
8487 msgid "Return the contents of the file named C<path>."
8488 msgstr ""
8489
8490 # type: textblock
8491 #. type: textblock
8492 #: ../src/guestfs-actions.pod:935
8493 msgid ""
8494 "Note that this function cannot correctly handle binary files (specifically, "
8495 "files containing C<\\0> character which is treated as end of string).  For "
8496 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8497 "functions which have a more complex interface."
8498 msgstr ""
8499
8500 # type: textblock
8501 #. type: textblock
8502 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122
8503 #: ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438
8504 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560
8505 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825
8506 #: ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2313
8507 #: ../src/guestfs-actions.pod:2356 ../src/guestfs-actions.pod:2380
8508 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2426
8509 #: ../src/guestfs-actions.pod:5606 ../src/guestfs-actions.pod:5632
8510 #: ../src/guestfs-actions.pod:5763 ../src/guestfs-actions.pod:5789
8511 #: ../src/guestfs-actions.pod:5813 ../src/guestfs-actions.pod:6762
8512 #: ../src/guestfs-actions.pod:6817 ../src/guestfs-actions.pod:6963
8513 #: ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:7652
8514 #: ../src/guestfs-actions.pod:7672 ../src/guestfs-actions.pod:7696
8515 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7741
8516 #: ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7846
8517 #: ../src/guestfs-actions.pod:7892 ../src/guestfs-actions.pod:7911
8518 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752
8519 #: ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940
8520 #: ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017
8521 #: ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219
8522 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536
8523 #: ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579
8524 #: ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608
8525 #: ../fish/guestfish-actions.pod:3701 ../fish/guestfish-actions.pod:3716
8526 #: ../fish/guestfish-actions.pod:3792 ../fish/guestfish-actions.pod:3809
8527 #: ../fish/guestfish-actions.pod:3824 ../fish/guestfish-actions.pod:4493
8528 #: ../fish/guestfish-actions.pod:4539 ../fish/guestfish-actions.pod:4624
8529 #: ../fish/guestfish-actions.pod:4639 ../fish/guestfish-actions.pod:5045
8530 #: ../fish/guestfish-actions.pod:5057 ../fish/guestfish-actions.pod:5075
8531 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5102
8532 #: ../fish/guestfish-actions.pod:5151 ../fish/guestfish-actions.pod:5161
8533 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
8534 msgid ""
8535 "Because of the message protocol, there is a transfer limit of somewhere "
8536 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8537 msgstr ""
8538
8539 # type: textblock
8540 #. type: textblock
8541 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3738
8542 #: ../src/guestfs-actions.pod:3820 ../src/guestfs-actions.pod:3837
8543 #: ../src/guestfs-actions.pod:3925 ../src/guestfs-actions.pod:4333
8544 #: ../src/guestfs-actions.pod:4347 ../src/guestfs-actions.pod:5712
8545 #: ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:7530
8546 #: ../src/guestfs-actions.pod:7544
8547 msgid "(Added in 0.4)"
8548 msgstr ""
8549
8550 # type: =head2
8551 #. type: =head2
8552 #: ../src/guestfs-actions.pod:948
8553 msgid "guestfs_checksum"
8554 msgstr ""
8555
8556 # type: verbatim
8557 #. type: verbatim
8558 #: ../src/guestfs-actions.pod:950
8559 #, no-wrap
8560 msgid ""
8561 " char *\n"
8562 " guestfs_checksum (guestfs_h *g,\n"
8563 "                   const char *csumtype,\n"
8564 "                   const char *path);\n"
8565 "\n"
8566 msgstr ""
8567
8568 # type: textblock
8569 #. type: textblock
8570 #: ../src/guestfs-actions.pod:955 ../fish/guestfish-actions.pod:624
8571 msgid ""
8572 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8573 msgstr ""
8574
8575 # type: textblock
8576 #. type: textblock
8577 #: ../src/guestfs-actions.pod:958 ../fish/guestfish-actions.pod:627
8578 msgid ""
8579 "The type of checksum to compute is given by the C<csumtype> parameter which "
8580 "must have one of the following values:"
8581 msgstr ""
8582
8583 # type: =item
8584 #. type: =item
8585 #: ../src/guestfs-actions.pod:963 ../fish/guestfish-actions.pod:632
8586 msgid "C<crc>"
8587 msgstr ""
8588
8589 # type: textblock
8590 #. type: textblock
8591 #: ../src/guestfs-actions.pod:965 ../fish/guestfish-actions.pod:634
8592 msgid ""
8593 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8594 "C<cksum> command."
8595 msgstr ""
8596
8597 # type: =item
8598 #. type: =item
8599 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:637
8600 msgid "C<md5>"
8601 msgstr ""
8602
8603 # type: textblock
8604 #. type: textblock
8605 #: ../src/guestfs-actions.pod:970 ../fish/guestfish-actions.pod:639
8606 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8607 msgstr ""
8608
8609 # type: =item
8610 #. type: =item
8611 #: ../src/guestfs-actions.pod:972 ../fish/guestfish-actions.pod:641
8612 msgid "C<sha1>"
8613 msgstr ""
8614
8615 # type: textblock
8616 #. type: textblock
8617 #: ../src/guestfs-actions.pod:974 ../fish/guestfish-actions.pod:643
8618 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8619 msgstr ""
8620
8621 # type: =item
8622 #. type: =item
8623 #: ../src/guestfs-actions.pod:976 ../fish/guestfish-actions.pod:645
8624 msgid "C<sha224>"
8625 msgstr ""
8626
8627 # type: textblock
8628 #. type: textblock
8629 #: ../src/guestfs-actions.pod:978 ../fish/guestfish-actions.pod:647
8630 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8631 msgstr ""
8632
8633 # type: =item
8634 #. type: =item
8635 #: ../src/guestfs-actions.pod:980 ../fish/guestfish-actions.pod:649
8636 msgid "C<sha256>"
8637 msgstr ""
8638
8639 # type: textblock
8640 #. type: textblock
8641 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:651
8642 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8643 msgstr ""
8644
8645 # type: =item
8646 #. type: =item
8647 #: ../src/guestfs-actions.pod:984 ../fish/guestfish-actions.pod:653
8648 msgid "C<sha384>"
8649 msgstr ""
8650
8651 # type: textblock
8652 #. type: textblock
8653 #: ../src/guestfs-actions.pod:986 ../fish/guestfish-actions.pod:655
8654 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8655 msgstr ""
8656
8657 # type: =item
8658 #. type: =item
8659 #: ../src/guestfs-actions.pod:988 ../fish/guestfish-actions.pod:657
8660 msgid "C<sha512>"
8661 msgstr ""
8662
8663 # type: textblock
8664 #. type: textblock
8665 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:659
8666 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8667 msgstr ""
8668
8669 # type: textblock
8670 #. type: textblock
8671 #: ../src/guestfs-actions.pod:994 ../fish/guestfish-actions.pod:663
8672 msgid "The checksum is returned as a printable string."
8673 msgstr ""
8674
8675 # type: textblock
8676 #. type: textblock
8677 #: ../src/guestfs-actions.pod:996
8678 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8679 msgstr ""
8680
8681 # type: textblock
8682 #. type: textblock
8683 #: ../src/guestfs-actions.pod:998
8684 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8685 msgstr ""
8686
8687 # type: textblock
8688 #. type: textblock
8689 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311
8690 #: ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:3436
8691 #: ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3526
8692 #: ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:7233
8693 msgid "(Added in 1.0.2)"
8694 msgstr ""
8695
8696 # type: =head2
8697 #. type: =head2
8698 #: ../src/guestfs-actions.pod:1005
8699 msgid "guestfs_checksum_device"
8700 msgstr ""
8701
8702 # type: verbatim
8703 #. type: verbatim
8704 #: ../src/guestfs-actions.pod:1007
8705 #, no-wrap
8706 msgid ""
8707 " char *\n"
8708 " guestfs_checksum_device (guestfs_h *g,\n"
8709 "                          const char *csumtype,\n"
8710 "                          const char *device);\n"
8711 "\n"
8712 msgstr ""
8713
8714 # type: textblock
8715 #. type: textblock
8716 #: ../src/guestfs-actions.pod:1012
8717 msgid ""
8718 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8719 "device named C<device>.  For the types of checksums supported see the "
8720 "C<guestfs_checksum> command."
8721 msgstr ""
8722
8723 # type: textblock
8724 #. type: textblock
8725 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5167
8726 #: ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5339
8727 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5533
8728 #: ../src/guestfs-actions.pod:7142 ../src/guestfs-actions.pod:7156
8729 #: ../src/guestfs-actions.pod:7556
8730 msgid "(Added in 1.3.2)"
8731 msgstr ""
8732
8733 # type: =head2
8734 #. type: =head2
8735 #: ../src/guestfs-actions.pod:1021
8736 msgid "guestfs_checksums_out"
8737 msgstr ""
8738
8739 # type: verbatim
8740 #. type: verbatim
8741 #: ../src/guestfs-actions.pod:1023
8742 #, no-wrap
8743 msgid ""
8744 " int\n"
8745 " guestfs_checksums_out (guestfs_h *g,\n"
8746 "                        const char *csumtype,\n"
8747 "                        const char *directory,\n"
8748 "                        const char *sumsfile);\n"
8749 "\n"
8750 msgstr ""
8751
8752 # type: textblock
8753 #. type: textblock
8754 #: ../src/guestfs-actions.pod:1029 ../fish/guestfish-actions.pod:681
8755 msgid ""
8756 "This command computes the checksums of all regular files in C<directory> and "
8757 "then emits a list of those checksums to the local output file C<sumsfile>."
8758 msgstr ""
8759
8760 # type: textblock
8761 #. type: textblock
8762 #: ../src/guestfs-actions.pod:1033 ../fish/guestfish-actions.pod:685
8763 msgid ""
8764 "This can be used for verifying the integrity of a virtual machine.  However "
8765 "to be properly secure you should pay attention to the output of the checksum "
8766 "command (it uses the ones from GNU coreutils).  In particular when the "
8767 "filename is not printable, coreutils uses a special backslash syntax.  For "
8768 "more information, see the GNU coreutils info file."
8769 msgstr ""
8770
8771 # type: textblock
8772 #. type: textblock
8773 #: ../src/guestfs-actions.pod:1043
8774 msgid "(Added in 1.3.7)"
8775 msgstr ""
8776
8777 # type: =head2
8778 #. type: =head2
8779 #: ../src/guestfs-actions.pod:1045
8780 msgid "guestfs_chmod"
8781 msgstr ""
8782
8783 # type: verbatim
8784 #. type: verbatim
8785 #: ../src/guestfs-actions.pod:1047
8786 #, no-wrap
8787 msgid ""
8788 " int\n"
8789 " guestfs_chmod (guestfs_h *g,\n"
8790 "                int mode,\n"
8791 "                const char *path);\n"
8792 "\n"
8793 msgstr ""
8794
8795 # type: textblock
8796 #. type: textblock
8797 #: ../src/guestfs-actions.pod:1052 ../fish/guestfish-actions.pod:699
8798 msgid ""
8799 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8800 "supported."
8801 msgstr ""
8802
8803 # type: textblock
8804 #. type: textblock
8805 #: ../src/guestfs-actions.pod:1055 ../fish/guestfish-actions.pod:702
8806 msgid ""
8807 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8808 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8809 "C<700>."
8810 msgstr ""
8811
8812 # type: textblock
8813 #. type: textblock
8814 #: ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:4584
8815 #: ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4812
8816 #: ../src/guestfs-actions.pod:4831 ../fish/guestfish-actions.pod:706
8817 #: ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3199
8818 #: ../fish/guestfish-actions.pod:3209 ../fish/guestfish-actions.pod:3219
8819 msgid "The mode actually set is affected by the umask."
8820 msgstr ""
8821
8822 # type: =head2
8823 #. type: =head2
8824 #: ../src/guestfs-actions.pod:1065
8825 msgid "guestfs_chown"
8826 msgstr ""
8827
8828 # type: verbatim
8829 #. type: verbatim
8830 #: ../src/guestfs-actions.pod:1067
8831 #, no-wrap
8832 msgid ""
8833 " int\n"
8834 " guestfs_chown (guestfs_h *g,\n"
8835 "                int owner,\n"
8836 "                int group,\n"
8837 "                const char *path);\n"
8838 "\n"
8839 msgstr ""
8840
8841 # type: textblock
8842 #. type: textblock
8843 #: ../src/guestfs-actions.pod:1073 ../fish/guestfish-actions.pod:712
8844 msgid "Change the file owner to C<owner> and group to C<group>."
8845 msgstr ""
8846
8847 # type: textblock
8848 #. type: textblock
8849 #: ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3655
8850 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495
8851 msgid ""
8852 "Only numeric uid and gid are supported.  If you want to use names, you will "
8853 "need to locate and parse the password file yourself (Augeas support makes "
8854 "this relatively easy)."
8855 msgstr ""
8856
8857 # type: =head2
8858 #. type: =head2
8859 #: ../src/guestfs-actions.pod:1083
8860 msgid "guestfs_command"
8861 msgstr ""
8862
8863 # type: verbatim
8864 #. type: verbatim
8865 #: ../src/guestfs-actions.pod:1085
8866 #, no-wrap
8867 msgid ""
8868 " char *\n"
8869 " guestfs_command (guestfs_h *g,\n"
8870 "                  char *const *arguments);\n"
8871 "\n"
8872 msgstr ""
8873
8874 # type: textblock
8875 #. type: textblock
8876 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:722
8877 msgid ""
8878 "This call runs a command from the guest filesystem.  The filesystem must be "
8879 "mounted, and must contain a compatible operating system (ie. something "
8880 "Linux, with the same or compatible processor architecture)."
8881 msgstr ""
8882
8883 # type: textblock
8884 #. type: textblock
8885 #: ../src/guestfs-actions.pod:1094
8886 msgid ""
8887 "The single parameter is an argv-style list of arguments.  The first element "
8888 "is the name of the program to run.  Subsequent elements are parameters.  The "
8889 "list must be non-empty (ie. must contain a program name).  Note that the "
8890 "command runs directly, and is I<not> invoked via the shell (see "
8891 "C<guestfs_sh>)."
8892 msgstr ""
8893
8894 # type: textblock
8895 #. type: textblock
8896 #: ../src/guestfs-actions.pod:1101 ../fish/guestfish-actions.pod:734
8897 msgid "The return value is anything printed to I<stdout> by the command."
8898 msgstr ""
8899
8900 # type: textblock
8901 #. type: textblock
8902 #: ../src/guestfs-actions.pod:1104 ../fish/guestfish-actions.pod:737
8903 msgid ""
8904 "If the command returns a non-zero exit status, then this function returns an "
8905 "error message.  The error message string is the content of I<stderr> from "
8906 "the command."
8907 msgstr ""
8908
8909 # type: textblock
8910 #. type: textblock
8911 #: ../src/guestfs-actions.pod:1108 ../fish/guestfish-actions.pod:741
8912 msgid ""
8913 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8914 "bin>.  If you require a program from another location, you should provide "
8915 "the full path in the first parameter."
8916 msgstr ""
8917
8918 # type: textblock
8919 #. type: textblock
8920 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:746
8921 msgid ""
8922 "Shared libraries and data files required by the program must be available on "
8923 "filesystems which are mounted in the correct places.  It is the caller's "
8924 "responsibility to ensure all filesystems that are needed are mounted at the "
8925 "right locations."
8926 msgstr ""
8927
8928 # type: textblock
8929 #. type: textblock
8930 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145
8931 #: ../src/guestfs-actions.pod:1610
8932 msgid "(Added in 0.9.1)"
8933 msgstr ""
8934
8935 # type: =head2
8936 #. type: =head2
8937 #: ../src/guestfs-actions.pod:1127
8938 msgid "guestfs_command_lines"
8939 msgstr ""
8940
8941 # type: verbatim
8942 #. type: verbatim
8943 #: ../src/guestfs-actions.pod:1129
8944 #, no-wrap
8945 msgid ""
8946 " char **\n"
8947 " guestfs_command_lines (guestfs_h *g,\n"
8948 "                        char *const *arguments);\n"
8949 "\n"
8950 msgstr ""
8951
8952 # type: textblock
8953 #. type: textblock
8954 #: ../src/guestfs-actions.pod:1133
8955 msgid ""
8956 "This is the same as C<guestfs_command>, but splits the result into a list of "
8957 "lines."
8958 msgstr ""
8959
8960 # type: textblock
8961 #. type: textblock
8962 #: ../src/guestfs-actions.pod:1136
8963 msgid "See also: C<guestfs_sh_lines>"
8964 msgstr ""
8965
8966 # type: =head2
8967 #. type: =head2
8968 #: ../src/guestfs-actions.pod:1147
8969 msgid "guestfs_config"
8970 msgstr ""
8971
8972 # type: verbatim
8973 #. type: verbatim
8974 #: ../src/guestfs-actions.pod:1149
8975 #, no-wrap
8976 msgid ""
8977 " int\n"
8978 " guestfs_config (guestfs_h *g,\n"
8979 "                 const char *qemuparam,\n"
8980 "                 const char *qemuvalue);\n"
8981 "\n"
8982 msgstr ""
8983
8984 #. type: textblock
8985 #: ../src/guestfs-actions.pod:1154 ../fish/guestfish-actions.pod:771
8986 msgid ""
8987 "This can be used to add arbitrary qemu command line parameters of the form "
8988 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8989 "setting some parameters which would interfere with parameters that we use."
8990 msgstr ""
8991
8992 # type: textblock
8993 #. type: textblock
8994 #: ../src/guestfs-actions.pod:1159 ../fish/guestfish-actions.pod:776
8995 msgid "The first character of C<param> string must be a C<-> (dash)."
8996 msgstr ""
8997
8998 # type: textblock
8999 #. type: textblock
9000 #: ../src/guestfs-actions.pod:1161 ../fish/guestfish-actions.pod:778
9001 msgid "C<value> can be NULL."
9002 msgstr ""
9003
9004 # type: =head2
9005 #. type: =head2
9006 #: ../src/guestfs-actions.pod:1167
9007 msgid "guestfs_copy_size"
9008 msgstr ""
9009
9010 # type: verbatim
9011 #. type: verbatim
9012 #: ../src/guestfs-actions.pod:1169
9013 #, no-wrap
9014 msgid ""
9015 " int\n"
9016 " guestfs_copy_size (guestfs_h *g,\n"
9017 "                    const char *src,\n"
9018 "                    const char *dest,\n"
9019 "                    int64_t size);\n"
9020 "\n"
9021 msgstr ""
9022
9023 # type: textblock
9024 #. type: textblock
9025 #: ../src/guestfs-actions.pod:1175 ../fish/guestfish-actions.pod:784
9026 msgid ""
9027 "This command copies exactly C<size> bytes from one source device or file "
9028 "C<src> to another destination device or file C<dest>."
9029 msgstr ""
9030
9031 # type: textblock
9032 #. type: textblock
9033 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:787
9034 msgid ""
9035 "Note this will fail if the source is too short or if the destination is not "
9036 "large enough."
9037 msgstr ""
9038
9039 #. type: textblock
9040 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306
9041 #: ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382
9042 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781
9043 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:7228
9044 #: ../src/guestfs-actions.pod:7262 ../src/guestfs-actions.pod:7763
9045 #: ../src/guestfs-actions.pod:7782
9046 msgid ""
9047 "This long-running command can generate progress notification messages so "
9048 "that the caller can display a progress bar or indicator.  To receive these "
9049 "messages, the caller must register a progress event callback.  See L<guestfs"
9050 "(3)/GUESTFS_EVENT_PROGRESS>."
9051 msgstr ""
9052
9053 # type: textblock
9054 #. type: textblock
9055 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4360
9056 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7463
9057 #: ../src/guestfs-actions.pod:7483 ../src/guestfs-actions.pod:7569
9058 msgid "(Added in 1.0.87)"
9059 msgstr ""
9060
9061 # type: =head2
9062 #. type: =head2
9063 #: ../src/guestfs-actions.pod:1190
9064 msgid "guestfs_cp"
9065 msgstr ""
9066
9067 # type: verbatim
9068 #. type: verbatim
9069 #: ../src/guestfs-actions.pod:1192
9070 #, no-wrap
9071 msgid ""
9072 " int\n"
9073 " guestfs_cp (guestfs_h *g,\n"
9074 "             const char *src,\n"
9075 "             const char *dest);\n"
9076 "\n"
9077 msgstr ""
9078
9079 # type: textblock
9080 #. type: textblock
9081 #: ../src/guestfs-actions.pod:1197 ../fish/guestfish-actions.pod:794
9082 msgid ""
9083 "This copies a file from C<src> to C<dest> where C<dest> is either a "
9084 "destination filename or destination directory."
9085 msgstr ""
9086
9087 # type: textblock
9088 #. type: textblock
9089 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216
9090 #: ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362
9091 #: ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5114
9092 #: ../src/guestfs-actions.pod:5583
9093 msgid "(Added in 1.0.18)"
9094 msgstr ""
9095
9096 # type: =head2
9097 #. type: =head2
9098 #: ../src/guestfs-actions.pod:1204
9099 msgid "guestfs_cp_a"
9100 msgstr ""
9101
9102 # type: verbatim
9103 #. type: verbatim
9104 #: ../src/guestfs-actions.pod:1206
9105 #, no-wrap
9106 msgid ""
9107 " int\n"
9108 " guestfs_cp_a (guestfs_h *g,\n"
9109 "               const char *src,\n"
9110 "               const char *dest);\n"
9111 "\n"
9112 msgstr ""
9113
9114 # type: textblock
9115 #. type: textblock
9116 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:801
9117 msgid ""
9118 "This copies a file or directory from C<src> to C<dest> recursively using the "
9119 "C<cp -a> command."
9120 msgstr ""
9121
9122 # type: =head2
9123 #. type: =head2
9124 #: ../src/guestfs-actions.pod:1218
9125 msgid "guestfs_dd"
9126 msgstr ""
9127
9128 # type: verbatim
9129 #. type: verbatim
9130 #: ../src/guestfs-actions.pod:1220
9131 #, no-wrap
9132 msgid ""
9133 " int\n"
9134 " guestfs_dd (guestfs_h *g,\n"
9135 "             const char *src,\n"
9136 "             const char *dest);\n"
9137 "\n"
9138 msgstr ""
9139
9140 # type: textblock
9141 #. type: textblock
9142 #: ../src/guestfs-actions.pod:1225 ../fish/guestfish-actions.pod:808
9143 msgid ""
9144 "This command copies from one source device or file C<src> to another "
9145 "destination device or file C<dest>.  Normally you would use this to copy to "
9146 "or from a device or partition, for example to duplicate a filesystem."
9147 msgstr ""
9148
9149 # type: textblock
9150 #. type: textblock
9151 #: ../src/guestfs-actions.pod:1230
9152 msgid ""
9153 "If the destination is a device, it must be as large or larger than the "
9154 "source file or device, otherwise the copy will fail.  This command cannot do "
9155 "partial copies (see C<guestfs_copy_size>)."
9156 msgstr ""
9157
9158 # type: =head2
9159 #. type: =head2
9160 #: ../src/guestfs-actions.pod:1238
9161 msgid "guestfs_df"
9162 msgstr ""
9163
9164 # type: verbatim
9165 #. type: verbatim
9166 #: ../src/guestfs-actions.pod:1240
9167 #, no-wrap
9168 msgid ""
9169 " char *\n"
9170 " guestfs_df (guestfs_h *g);\n"
9171 "\n"
9172 msgstr ""
9173
9174 # type: textblock
9175 #. type: textblock
9176 #: ../src/guestfs-actions.pod:1243 ../fish/guestfish-actions.pod:821
9177 msgid "This command runs the C<df> command to report disk space used."
9178 msgstr ""
9179
9180 # type: textblock
9181 #. type: textblock
9182 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
9183 msgid ""
9184 "This command is mostly useful for interactive sessions.  It is I<not> "
9185 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
9186 "from programs."
9187 msgstr ""
9188
9189 # type: textblock
9190 #. type: textblock
9191 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269
9192 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2359
9193 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2451
9194 #: ../src/guestfs-actions.pod:4470 ../src/guestfs-actions.pod:5014
9195 #: ../src/guestfs-actions.pod:6966 ../src/guestfs-actions.pod:6990
9196 #: ../src/guestfs-actions.pod:7609 ../src/guestfs-actions.pod:7622
9197 #: ../src/guestfs-actions.pod:7635
9198 msgid "(Added in 1.0.54)"
9199 msgstr ""
9200
9201 # type: =head2
9202 #. type: =head2
9203 #: ../src/guestfs-actions.pod:1254
9204 msgid "guestfs_df_h"
9205 msgstr ""
9206
9207 # type: verbatim
9208 #. type: verbatim
9209 #: ../src/guestfs-actions.pod:1256
9210 #, no-wrap
9211 msgid ""
9212 " char *\n"
9213 " guestfs_df_h (guestfs_h *g);\n"
9214 "\n"
9215 msgstr ""
9216
9217 # type: textblock
9218 #. type: textblock
9219 #: ../src/guestfs-actions.pod:1259 ../fish/guestfish-actions.pod:831
9220 msgid ""
9221 "This command runs the C<df -h> command to report disk space used in human-"
9222 "readable format."
9223 msgstr ""
9224
9225 # type: =head2
9226 #. type: =head2
9227 #: ../src/guestfs-actions.pod:1271
9228 msgid "guestfs_dmesg"
9229 msgstr ""
9230
9231 # type: verbatim
9232 #. type: verbatim
9233 #: ../src/guestfs-actions.pod:1273
9234 #, no-wrap
9235 msgid ""
9236 " char *\n"
9237 " guestfs_dmesg (guestfs_h *g);\n"
9238 "\n"
9239 msgstr ""
9240
9241 # type: textblock
9242 #. type: textblock
9243 #: ../src/guestfs-actions.pod:1276 ../fish/guestfish-actions.pod:842
9244 msgid ""
9245 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
9246 "This is sometimes useful for extended debugging of problems."
9247 msgstr ""
9248
9249 # type: textblock
9250 #. type: textblock
9251 #: ../src/guestfs-actions.pod:1280
9252 msgid ""
9253 "Another way to get the same information is to enable verbose messages with "
9254 "C<guestfs_set_verbose> or by setting the environment variable "
9255 "C<LIBGUESTFS_DEBUG=1> before running the program."
9256 msgstr ""
9257
9258 # type: =head2
9259 #. type: =head2
9260 #: ../src/guestfs-actions.pod:1290
9261 msgid "guestfs_download"
9262 msgstr ""
9263
9264 # type: verbatim
9265 #. type: verbatim
9266 #: ../src/guestfs-actions.pod:1292
9267 #, no-wrap
9268 msgid ""
9269 " int\n"
9270 " guestfs_download (guestfs_h *g,\n"
9271 "                   const char *remotefilename,\n"
9272 "                   const char *filename);\n"
9273 "\n"
9274 msgstr ""
9275
9276 # type: textblock
9277 #. type: textblock
9278 #: ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
9279 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868
9280 msgid ""
9281 "Download file C<remotefilename> and save it as C<filename> on the local "
9282 "machine."
9283 msgstr ""
9284
9285 # type: textblock
9286 #. type: textblock
9287 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7222
9288 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4797
9289 msgid "C<filename> can also be a named pipe."
9290 msgstr ""
9291
9292 # type: textblock
9293 #. type: textblock
9294 #: ../src/guestfs-actions.pod:1302
9295 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
9296 msgstr ""
9297
9298 # type: =head2
9299 #. type: =head2
9300 #: ../src/guestfs-actions.pod:1313
9301 msgid "guestfs_download_offset"
9302 msgstr ""
9303
9304 # type: verbatim
9305 #. type: verbatim
9306 #: ../src/guestfs-actions.pod:1315
9307 #, no-wrap
9308 msgid ""
9309 " int\n"
9310 " guestfs_download_offset (guestfs_h *g,\n"
9311 "                          const char *remotefilename,\n"
9312 "                          const char *filename,\n"
9313 "                          int64_t offset,\n"
9314 "                          int64_t size);\n"
9315 "\n"
9316 msgstr ""
9317
9318 # type: textblock
9319 #. type: textblock
9320 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:871
9321 msgid ""
9322 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
9323 "region must be within the file or device)."
9324 msgstr ""
9325
9326 # type: textblock
9327 #. type: textblock
9328 #: ../src/guestfs-actions.pod:1328
9329 msgid ""
9330 "Note that there is no limit on the amount of data that can be downloaded "
9331 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
9332 "full amount unless an error occurs."
9333 msgstr ""
9334
9335 # type: textblock
9336 #. type: textblock
9337 #: ../src/guestfs-actions.pod:1333
9338 msgid "See also C<guestfs_download>, C<guestfs_pread>."
9339 msgstr ""
9340
9341 # type: textblock
9342 #. type: textblock
9343 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7267
9344 msgid "(Added in 1.5.17)"
9345 msgstr ""
9346
9347 # type: =head2
9348 #. type: =head2
9349 #: ../src/guestfs-actions.pod:1344
9350 msgid "guestfs_drop_caches"
9351 msgstr ""
9352
9353 # type: verbatim
9354 #. type: verbatim
9355 #: ../src/guestfs-actions.pod:1346
9356 #, no-wrap
9357 msgid ""
9358 " int\n"
9359 " guestfs_drop_caches (guestfs_h *g,\n"
9360 "                      int whattodrop);\n"
9361 "\n"
9362 msgstr ""
9363
9364 # type: textblock
9365 #. type: textblock
9366 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:887
9367 msgid ""
9368 "This instructs the guest kernel to drop its page cache, and/or dentries and "
9369 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
9370 "to drop, see L<http://linux-mm.org/Drop_Caches>"
9371 msgstr ""
9372
9373 # type: textblock
9374 #. type: textblock
9375 #: ../src/guestfs-actions.pod:1355 ../fish/guestfish-actions.pod:892
9376 msgid "Setting C<whattodrop> to 3 should drop everything."
9377 msgstr ""
9378
9379 # type: textblock
9380 #. type: textblock
9381 #: ../src/guestfs-actions.pod:1357 ../fish/guestfish-actions.pod:894
9382 msgid ""
9383 "This automatically calls L<sync(2)> before the operation, so that the "
9384 "maximum guest memory is freed."
9385 msgstr ""
9386
9387 # type: =head2
9388 #. type: =head2
9389 #: ../src/guestfs-actions.pod:1364
9390 msgid "guestfs_du"
9391 msgstr ""
9392
9393 # type: verbatim
9394 #. type: verbatim
9395 #: ../src/guestfs-actions.pod:1366
9396 #, no-wrap
9397 msgid ""
9398 " int64_t\n"
9399 " guestfs_du (guestfs_h *g,\n"
9400 "             const char *path);\n"
9401 "\n"
9402 msgstr ""
9403
9404 # type: textblock
9405 #. type: textblock
9406 #: ../src/guestfs-actions.pod:1370 ../fish/guestfish-actions.pod:901
9407 msgid ""
9408 "This command runs the C<du -s> command to estimate file space usage for "
9409 "C<path>."
9410 msgstr ""
9411
9412 # type: textblock
9413 #. type: textblock
9414 #: ../src/guestfs-actions.pod:1373 ../fish/guestfish-actions.pod:904
9415 msgid ""
9416 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9417 "estimate includes the contents of the directory and all subdirectories "
9418 "(recursively)."
9419 msgstr ""
9420
9421 # type: textblock
9422 #. type: textblock
9423 #: ../src/guestfs-actions.pod:1377 ../fish/guestfish-actions.pod:908
9424 msgid ""
9425 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9426 msgstr ""
9427
9428 # type: =head2
9429 #. type: =head2
9430 #: ../src/guestfs-actions.pod:1389
9431 msgid "guestfs_e2fsck_f"
9432 msgstr ""
9433
9434 # type: verbatim
9435 #. type: verbatim
9436 #: ../src/guestfs-actions.pod:1391
9437 #, no-wrap
9438 msgid ""
9439 " int\n"
9440 " guestfs_e2fsck_f (guestfs_h *g,\n"
9441 "                   const char *device);\n"
9442 "\n"
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../src/guestfs-actions.pod:1395 ../fish/guestfish-actions.pod:915
9447 msgid ""
9448 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9449 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9450 "clean (I<-f>)."
9451 msgstr ""
9452
9453 # type: textblock
9454 #. type: textblock
9455 #: ../src/guestfs-actions.pod:1399
9456 msgid ""
9457 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9458 "Normally you should use C<guestfs_fsck>."
9459 msgstr ""
9460
9461 # type: textblock
9462 #. type: textblock
9463 #: ../src/guestfs-actions.pod:1404
9464 msgid "(Added in 1.0.29)"
9465 msgstr ""
9466
9467 # type: =head2
9468 #. type: =head2
9469 #: ../src/guestfs-actions.pod:1406
9470 msgid "guestfs_echo_daemon"
9471 msgstr ""
9472
9473 # type: verbatim
9474 #. type: verbatim
9475 #: ../src/guestfs-actions.pod:1408
9476 #, no-wrap
9477 msgid ""
9478 " char *\n"
9479 " guestfs_echo_daemon (guestfs_h *g,\n"
9480 "                      char *const *words);\n"
9481 "\n"
9482 msgstr ""
9483
9484 # type: textblock
9485 #. type: textblock
9486 #: ../src/guestfs-actions.pod:1412 ../fish/guestfish-actions.pod:926
9487 msgid ""
9488 "This command concatenates the list of C<words> passed with single spaces "
9489 "between them and returns the resulting string."
9490 msgstr ""
9491
9492 # type: textblock
9493 #. type: textblock
9494 #: ../src/guestfs-actions.pod:1415 ../fish/guestfish-actions.pod:929
9495 msgid "You can use this command to test the connection through to the daemon."
9496 msgstr ""
9497
9498 # type: textblock
9499 #. type: textblock
9500 #: ../src/guestfs-actions.pod:1417
9501 msgid "See also C<guestfs_ping_daemon>."
9502 msgstr ""
9503
9504 # type: textblock
9505 #. type: textblock
9506 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2167
9507 #: ../src/guestfs-actions.pod:6438
9508 msgid "(Added in 1.0.69)"
9509 msgstr ""
9510
9511 # type: =head2
9512 #. type: =head2
9513 #: ../src/guestfs-actions.pod:1424
9514 msgid "guestfs_egrep"
9515 msgstr ""
9516
9517 # type: verbatim
9518 #. type: verbatim
9519 #: ../src/guestfs-actions.pod:1426
9520 #, no-wrap
9521 msgid ""
9522 " char **\n"
9523 " guestfs_egrep (guestfs_h *g,\n"
9524 "                const char *regex,\n"
9525 "                const char *path);\n"
9526 "\n"
9527 msgstr ""
9528
9529 # type: textblock
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:1431 ../fish/guestfish-actions.pod:937
9532 msgid ""
9533 "This calls the external C<egrep> program and returns the matching lines."
9534 msgstr ""
9535
9536 # type: textblock
9537 #. type: textblock
9538 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460
9539 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563
9540 #: ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2297
9541 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2472
9542 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2500
9543 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2568
9544 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:3850
9545 #: ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877
9546 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:4892
9547 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:5966
9548 #: ../src/guestfs-actions.pod:6834 ../src/guestfs-actions.pod:6846
9549 #: ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6872
9550 #: ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907
9551 #: ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:6933
9552 #: ../src/guestfs-actions.pod:7725 ../src/guestfs-actions.pod:7744
9553 #: ../src/guestfs-actions.pod:7830 ../src/guestfs-actions.pod:7849
9554 #: ../src/guestfs-actions.pod:7895 ../src/guestfs-actions.pod:7914
9555 msgid "(Added in 1.0.66)"
9556 msgstr ""
9557
9558 # type: =head2
9559 #. type: =head2
9560 #: ../src/guestfs-actions.pod:1443
9561 msgid "guestfs_egrepi"
9562 msgstr ""
9563
9564 # type: verbatim
9565 #. type: verbatim
9566 #: ../src/guestfs-actions.pod:1445
9567 #, no-wrap
9568 msgid ""
9569 " char **\n"
9570 " guestfs_egrepi (guestfs_h *g,\n"
9571 "                 const char *regex,\n"
9572 "                 const char *path);\n"
9573 "\n"
9574 msgstr ""
9575
9576 # type: textblock
9577 #. type: textblock
9578 #: ../src/guestfs-actions.pod:1450 ../fish/guestfish-actions.pod:947
9579 msgid ""
9580 "This calls the external C<egrep -i> program and returns the matching lines."
9581 msgstr ""
9582
9583 # type: =head2
9584 #. type: =head2
9585 #: ../src/guestfs-actions.pod:1462
9586 msgid "guestfs_equal"
9587 msgstr ""
9588
9589 # type: verbatim
9590 #. type: verbatim
9591 #: ../src/guestfs-actions.pod:1464
9592 #, no-wrap
9593 msgid ""
9594 " int\n"
9595 " guestfs_equal (guestfs_h *g,\n"
9596 "                const char *file1,\n"
9597 "                const char *file2);\n"
9598 "\n"
9599 msgstr ""
9600
9601 # type: textblock
9602 #. type: textblock
9603 #: ../src/guestfs-actions.pod:1469 ../fish/guestfish-actions.pod:957
9604 msgid ""
9605 "This compares the two files C<file1> and C<file2> and returns true if their "
9606 "content is exactly equal, or false otherwise."
9607 msgstr ""
9608
9609 # type: textblock
9610 #. type: textblock
9611 #: ../src/guestfs-actions.pod:1472 ../fish/guestfish-actions.pod:960
9612 msgid "The external L<cmp(1)> program is used for the comparison."
9613 msgstr ""
9614
9615 # type: =head2
9616 #. type: =head2
9617 #: ../src/guestfs-actions.pod:1478
9618 msgid "guestfs_exists"
9619 msgstr ""
9620
9621 # type: verbatim
9622 #. type: verbatim
9623 #: ../src/guestfs-actions.pod:1480
9624 #, no-wrap
9625 msgid ""
9626 " int\n"
9627 " guestfs_exists (guestfs_h *g,\n"
9628 "                 const char *path);\n"
9629 "\n"
9630 msgstr ""
9631
9632 # type: textblock
9633 #. type: textblock
9634 #: ../src/guestfs-actions.pod:1484 ../fish/guestfish-actions.pod:966
9635 msgid ""
9636 "This returns C<true> if and only if there is a file, directory (or anything) "
9637 "with the given C<path> name."
9638 msgstr ""
9639
9640 # type: textblock
9641 #. type: textblock
9642 #: ../src/guestfs-actions.pod:1487
9643 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9644 msgstr ""
9645
9646 # type: =head2
9647 #. type: =head2
9648 #: ../src/guestfs-actions.pod:1493
9649 msgid "guestfs_fallocate"
9650 msgstr ""
9651
9652 # type: verbatim
9653 #. type: verbatim
9654 #: ../src/guestfs-actions.pod:1495
9655 #, no-wrap
9656 msgid ""
9657 " int\n"
9658 " guestfs_fallocate (guestfs_h *g,\n"
9659 "                    const char *path,\n"
9660 "                    int len);\n"
9661 "\n"
9662 msgstr ""
9663
9664 # type: textblock
9665 #. type: textblock
9666 #: ../src/guestfs-actions.pod:1500 ../src/guestfs-actions.pod:1526
9667 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994
9668 msgid ""
9669 "This command preallocates a file (containing zero bytes) named C<path> of "
9670 "size C<len> bytes.  If the file exists already, it is overwritten."
9671 msgstr ""
9672
9673 # type: textblock
9674 #. type: textblock
9675 #: ../src/guestfs-actions.pod:1504 ../fish/guestfish-actions.pod:979
9676 msgid ""
9677 "Do not confuse this with the guestfish-specific C<alloc> command which "
9678 "allocates a file in the host and attaches it as a device."
9679 msgstr ""
9680
9681 # type: textblock
9682 #. type: textblock
9683 #: ../src/guestfs-actions.pod:1510 ../fish/guestfish-actions.pod:983
9684 msgid ""
9685 "This function is deprecated.  In new code, use the C<fallocate64> call "
9686 "instead."
9687 msgstr ""
9688
9689 # type: =head2
9690 #. type: =head2
9691 #: ../src/guestfs-actions.pod:1519
9692 msgid "guestfs_fallocate64"
9693 msgstr ""
9694
9695 # type: verbatim
9696 #. type: verbatim
9697 #: ../src/guestfs-actions.pod:1521
9698 #, no-wrap
9699 msgid ""
9700 " int\n"
9701 " guestfs_fallocate64 (guestfs_h *g,\n"
9702 "                      const char *path,\n"
9703 "                      int64_t len);\n"
9704 "\n"
9705 msgstr ""
9706
9707 # type: textblock
9708 #. type: textblock
9709 #: ../src/guestfs-actions.pod:1530
9710 msgid ""
9711 "Note that this call allocates disk blocks for the file.  To create a sparse "
9712 "file use C<guestfs_truncate_size> instead."
9713 msgstr ""
9714
9715 # type: textblock
9716 #. type: textblock
9717 #: ../src/guestfs-actions.pod:1533
9718 msgid ""
9719 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9720 "oversight it only allowed 30 bit lengths to be specified, effectively "
9721 "limiting the maximum size of files created through that call to 1GB."
9722 msgstr ""
9723
9724 # type: textblock
9725 #. type: textblock
9726 #: ../src/guestfs-actions.pod:1538 ../fish/guestfish-actions.pod:1006
9727 msgid ""
9728 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9729 "commands which create a file in the host and attach it as a device."
9730 msgstr ""
9731
9732 # type: textblock
9733 #. type: textblock
9734 #: ../src/guestfs-actions.pod:1544
9735 msgid "(Added in 1.3.17)"
9736 msgstr ""
9737
9738 # type: =head2
9739 #. type: =head2
9740 #: ../src/guestfs-actions.pod:1546
9741 msgid "guestfs_fgrep"
9742 msgstr ""
9743
9744 # type: verbatim
9745 #. type: verbatim
9746 #: ../src/guestfs-actions.pod:1548
9747 #, no-wrap
9748 msgid ""
9749 " char **\n"
9750 " guestfs_fgrep (guestfs_h *g,\n"
9751 "                const char *pattern,\n"
9752 "                const char *path);\n"
9753 "\n"
9754 msgstr ""
9755
9756 # type: textblock
9757 #. type: textblock
9758 #: ../src/guestfs-actions.pod:1553 ../fish/guestfish-actions.pod:1014
9759 msgid ""
9760 "This calls the external C<fgrep> program and returns the matching lines."
9761 msgstr ""
9762
9763 # type: =head2
9764 #. type: =head2
9765 #: ../src/guestfs-actions.pod:1565
9766 msgid "guestfs_fgrepi"
9767 msgstr ""
9768
9769 # type: verbatim
9770 #. type: verbatim
9771 #: ../src/guestfs-actions.pod:1567
9772 #, no-wrap
9773 msgid ""
9774 " char **\n"
9775 " guestfs_fgrepi (guestfs_h *g,\n"
9776 "                 const char *pattern,\n"
9777 "                 const char *path);\n"
9778 "\n"
9779 msgstr ""
9780
9781 # type: textblock
9782 #. type: textblock
9783 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1024
9784 msgid ""
9785 "This calls the external C<fgrep -i> program and returns the matching lines."
9786 msgstr ""
9787
9788 # type: =head2
9789 #. type: =head2
9790 #: ../src/guestfs-actions.pod:1584
9791 msgid "guestfs_file"
9792 msgstr ""
9793
9794 # type: verbatim
9795 #. type: verbatim
9796 #: ../src/guestfs-actions.pod:1586
9797 #, no-wrap
9798 msgid ""
9799 " char *\n"
9800 " guestfs_file (guestfs_h *g,\n"
9801 "               const char *path);\n"
9802 "\n"
9803 msgstr ""
9804
9805 # type: textblock
9806 #. type: textblock
9807 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1034
9808 msgid ""
9809 "This call uses the standard L<file(1)> command to determine the type or "
9810 "contents of the file."
9811 msgstr ""
9812
9813 # type: textblock
9814 #. type: textblock
9815 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1037
9816 msgid ""
9817 "This call will also transparently look inside various types of compressed "
9818 "file."
9819 msgstr ""
9820
9821 #. type: textblock
9822 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1040
9823 msgid ""
9824 "The exact command which runs is C<file -zb path>.  Note in particular that "
9825 "the filename is not prepended to the output (the I<-b> option)."
9826 msgstr ""
9827
9828 #. type: textblock
9829 #: ../src/guestfs-actions.pod:1600 ../fish/guestfish-actions.pod:1044
9830 msgid ""
9831 "The output depends on the output of the underlying L<file(1)> command and it "
9832 "can change in future in ways beyond our control.  In other words, the output "
9833 "is not guaranteed by the ABI."
9834 msgstr ""
9835
9836 #. type: textblock
9837 #: ../src/guestfs-actions.pod:1604
9838 msgid ""
9839 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
9840 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
9841 msgstr ""
9842
9843 # type: =head2
9844 #. type: =head2
9845 #: ../src/guestfs-actions.pod:1612
9846 msgid "guestfs_file_architecture"
9847 msgstr ""
9848
9849 # type: verbatim
9850 #. type: verbatim
9851 #: ../src/guestfs-actions.pod:1614
9852 #, no-wrap
9853 msgid ""
9854 " char *\n"
9855 " guestfs_file_architecture (guestfs_h *g,\n"
9856 "                            const char *filename);\n"
9857 "\n"
9858 msgstr ""
9859
9860 # type: textblock
9861 #. type: textblock
9862 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1055
9863 msgid ""
9864 "This detects the architecture of the binary C<filename>, and returns it if "
9865 "known."
9866 msgstr ""
9867
9868 # type: textblock
9869 #. type: textblock
9870 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1058
9871 msgid "Currently defined architectures are:"
9872 msgstr ""
9873
9874 # type: =item
9875 #. type: =item
9876 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1062
9877 msgid "\"i386\""
9878 msgstr ""
9879
9880 # type: textblock
9881 #. type: textblock
9882 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1064
9883 msgid ""
9884 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9885 "irrespective of the precise processor requirements of the binary."
9886 msgstr ""
9887
9888 # type: =item
9889 #. type: =item
9890 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1067
9891 msgid "\"x86_64\""
9892 msgstr ""
9893
9894 # type: textblock
9895 #. type: textblock
9896 #: ../src/guestfs-actions.pod:1632 ../fish/guestfish-actions.pod:1069
9897 msgid "64 bit x86-64."
9898 msgstr ""
9899
9900 # type: =item
9901 #. type: =item
9902 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1071
9903 msgid "\"sparc\""
9904 msgstr ""
9905
9906 # type: textblock
9907 #. type: textblock
9908 #: ../src/guestfs-actions.pod:1636 ../fish/guestfish-actions.pod:1073
9909 msgid "32 bit SPARC."
9910 msgstr ""
9911
9912 # type: =item
9913 #. type: =item
9914 #: ../src/guestfs-actions.pod:1638 ../fish/guestfish-actions.pod:1075
9915 msgid "\"sparc64\""
9916 msgstr ""
9917
9918 # type: textblock
9919 #. type: textblock
9920 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1077
9921 msgid "64 bit SPARC V9 and above."
9922 msgstr ""
9923
9924 # type: =item
9925 #. type: =item
9926 #: ../src/guestfs-actions.pod:1642 ../fish/guestfish-actions.pod:1079
9927 msgid "\"ia64\""
9928 msgstr ""
9929
9930 # type: textblock
9931 #. type: textblock
9932 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1081
9933 msgid "Intel Itanium."
9934 msgstr ""
9935
9936 # type: =item
9937 #. type: =item
9938 #: ../src/guestfs-actions.pod:1646 ../fish/guestfish-actions.pod:1083
9939 msgid "\"ppc\""
9940 msgstr ""
9941
9942 # type: textblock
9943 #. type: textblock
9944 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1085
9945 msgid "32 bit Power PC."
9946 msgstr ""
9947
9948 # type: =item
9949 #. type: =item
9950 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1087
9951 msgid "\"ppc64\""
9952 msgstr ""
9953
9954 # type: textblock
9955 #. type: textblock
9956 #: ../src/guestfs-actions.pod:1652 ../fish/guestfish-actions.pod:1089
9957 msgid "64 bit Power PC."
9958 msgstr ""
9959
9960 # type: textblock
9961 #. type: textblock
9962 #: ../src/guestfs-actions.pod:1656 ../fish/guestfish-actions.pod:1093
9963 msgid "Libguestfs may return other architecture strings in future."
9964 msgstr ""
9965
9966 # type: textblock
9967 #. type: textblock
9968 #: ../src/guestfs-actions.pod:1658 ../fish/guestfish-actions.pod:1095
9969 msgid "The function works on at least the following types of files:"
9970 msgstr ""
9971
9972 # type: textblock
9973 #. type: textblock
9974 #: ../src/guestfs-actions.pod:1664 ../fish/guestfish-actions.pod:1101
9975 msgid "many types of Un*x and Linux binary"
9976 msgstr ""
9977
9978 # type: textblock
9979 #. type: textblock
9980 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1105
9981 msgid "many types of Un*x and Linux shared library"
9982 msgstr ""
9983
9984 # type: textblock
9985 #. type: textblock
9986 #: ../src/guestfs-actions.pod:1672 ../fish/guestfish-actions.pod:1109
9987 msgid "Windows Win32 and Win64 binaries"
9988 msgstr ""
9989
9990 # type: textblock
9991 #. type: textblock
9992 #: ../src/guestfs-actions.pod:1676 ../fish/guestfish-actions.pod:1113
9993 msgid "Windows Win32 and Win64 DLLs"
9994 msgstr ""
9995
9996 # type: textblock
9997 #. type: textblock
9998 #: ../src/guestfs-actions.pod:1678 ../fish/guestfish-actions.pod:1115
9999 msgid "Win32 binaries and DLLs return C<i386>."
10000 msgstr ""
10001
10002 # type: textblock
10003 #. type: textblock
10004 #: ../src/guestfs-actions.pod:1680 ../fish/guestfish-actions.pod:1117
10005 msgid "Win64 binaries and DLLs return C<x86_64>."
10006 msgstr ""
10007
10008 # type: textblock
10009 #. type: textblock
10010 #: ../src/guestfs-actions.pod:1684 ../fish/guestfish-actions.pod:1121
10011 msgid "Linux kernel modules"
10012 msgstr ""
10013
10014 # type: textblock
10015 #. type: textblock
10016 #: ../src/guestfs-actions.pod:1688 ../fish/guestfish-actions.pod:1125
10017 msgid "Linux new-style initrd images"
10018 msgstr ""
10019
10020 # type: textblock
10021 #. type: textblock
10022 #: ../src/guestfs-actions.pod:1692 ../fish/guestfish-actions.pod:1129
10023 msgid "some non-x86 Linux vmlinuz kernels"
10024 msgstr ""
10025
10026 # type: textblock
10027 #. type: textblock
10028 #: ../src/guestfs-actions.pod:1696 ../fish/guestfish-actions.pod:1133
10029 msgid "What it can't do currently:"
10030 msgstr ""
10031
10032 # type: textblock
10033 #. type: textblock
10034 #: ../src/guestfs-actions.pod:1702 ../fish/guestfish-actions.pod:1139
10035 msgid "static libraries (libfoo.a)"
10036 msgstr ""
10037
10038 # type: textblock
10039 #. type: textblock
10040 #: ../src/guestfs-actions.pod:1706 ../fish/guestfish-actions.pod:1143
10041 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
10042 msgstr ""
10043
10044 # type: textblock
10045 #. type: textblock
10046 #: ../src/guestfs-actions.pod:1710 ../fish/guestfish-actions.pod:1147
10047 msgid "x86 Linux vmlinuz kernels"
10048 msgstr ""
10049
10050 # type: textblock
10051 #. type: textblock
10052 #: ../src/guestfs-actions.pod:1712 ../fish/guestfish-actions.pod:1149
10053 msgid ""
10054 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
10055 "compressed code, and are horribly hard to unpack.  If you want to find the "
10056 "architecture of a kernel, use the architecture of the associated initrd or "
10057 "kernel module(s) instead."
10058 msgstr ""
10059
10060 # type: textblock
10061 #. type: textblock
10062 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885
10063 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2601
10064 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2757
10065 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2962
10066 #: ../src/guestfs-actions.pod:3002 ../src/guestfs-actions.pod:3077
10067 #: ../src/guestfs-actions.pod:3170 ../src/guestfs-actions.pod:3407
10068 #: ../src/guestfs-actions.pod:3539
10069 msgid "(Added in 1.5.3)"
10070 msgstr ""
10071
10072 # type: =head2
10073 #. type: =head2
10074 #: ../src/guestfs-actions.pod:1724
10075 msgid "guestfs_filesize"
10076 msgstr ""
10077
10078 # type: verbatim
10079 #. type: verbatim
10080 #: ../src/guestfs-actions.pod:1726
10081 #, no-wrap
10082 msgid ""
10083 " int64_t\n"
10084 " guestfs_filesize (guestfs_h *g,\n"
10085 "                   const char *file);\n"
10086 "\n"
10087 msgstr ""
10088
10089 # type: textblock
10090 #. type: textblock
10091 #: ../src/guestfs-actions.pod:1730 ../fish/guestfish-actions.pod:1160
10092 msgid "This command returns the size of C<file> in bytes."
10093 msgstr ""
10094
10095 # type: textblock
10096 #. type: textblock
10097 #: ../src/guestfs-actions.pod:1732
10098 msgid ""
10099 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
10100 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
10101 "devices, use C<guestfs_blockdev_getsize64>."
10102 msgstr ""
10103
10104 # type: textblock
10105 #. type: textblock
10106 #: ../src/guestfs-actions.pod:1738
10107 msgid "(Added in 1.0.82)"
10108 msgstr ""
10109
10110 # type: =head2
10111 #. type: =head2
10112 #: ../src/guestfs-actions.pod:1740
10113 msgid "guestfs_fill"
10114 msgstr ""
10115
10116 # type: verbatim
10117 #. type: verbatim
10118 #: ../src/guestfs-actions.pod:1742
10119 #, no-wrap
10120 msgid ""
10121 " int\n"
10122 " guestfs_fill (guestfs_h *g,\n"
10123 "               int c,\n"
10124 "               int len,\n"
10125 "               const char *path);\n"
10126 "\n"
10127 msgstr ""
10128
10129 # type: textblock
10130 #. type: textblock
10131 #: ../src/guestfs-actions.pod:1748 ../fish/guestfish-actions.pod:1170
10132 msgid ""
10133 "This command creates a new file called C<path>.  The initial content of the "
10134 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
10135 "[0..255]>."
10136 msgstr ""
10137
10138 # type: textblock
10139 #. type: textblock
10140 #: ../src/guestfs-actions.pod:1752
10141 msgid ""
10142 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
10143 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
10144 "bytes use C<guestfs_fill_pattern>."
10145 msgstr ""
10146
10147 # type: textblock
10148 #. type: textblock
10149 #: ../src/guestfs-actions.pod:1764
10150 msgid "(Added in 1.0.79)"
10151 msgstr ""
10152
10153 # type: =head2
10154 #. type: =head2
10155 #: ../src/guestfs-actions.pod:1766
10156 msgid "guestfs_fill_pattern"
10157 msgstr ""
10158
10159 # type: verbatim
10160 #. type: verbatim
10161 #: ../src/guestfs-actions.pod:1768
10162 #, no-wrap
10163 msgid ""
10164 " int\n"
10165 " guestfs_fill_pattern (guestfs_h *g,\n"
10166 "                       const char *pattern,\n"
10167 "                       int len,\n"
10168 "                       const char *path);\n"
10169 "\n"
10170 msgstr ""
10171
10172 # type: textblock
10173 #. type: textblock
10174 #: ../src/guestfs-actions.pod:1774
10175 msgid ""
10176 "This function is like C<guestfs_fill> except that it creates a new file of "
10177 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
10178 "pattern is truncated if necessary to ensure the length of the file is "
10179 "exactly C<len> bytes."
10180 msgstr ""
10181
10182 # type: textblock
10183 #. type: textblock
10184 #: ../src/guestfs-actions.pod:1786
10185 msgid "(Added in 1.3.12)"
10186 msgstr ""
10187
10188 # type: =head2
10189 #. type: =head2
10190 #: ../src/guestfs-actions.pod:1788
10191 msgid "guestfs_find"
10192 msgstr ""
10193
10194 # type: verbatim
10195 #. type: verbatim
10196 #: ../src/guestfs-actions.pod:1790
10197 #, no-wrap
10198 msgid ""
10199 " char **\n"
10200 " guestfs_find (guestfs_h *g,\n"
10201 "               const char *directory);\n"
10202 "\n"
10203 msgstr ""
10204
10205 # type: textblock
10206 #. type: textblock
10207 #: ../src/guestfs-actions.pod:1794 ../fish/guestfish-actions.pod:1192
10208 msgid ""
10209 "This command lists out all files and directories, recursively, starting at "
10210 "C<directory>.  It is essentially equivalent to running the shell command "
10211 "C<find directory -print> but some post-processing happens on the output, "
10212 "described below."
10213 msgstr ""
10214
10215 # type: textblock
10216 #. type: textblock
10217 #: ../src/guestfs-actions.pod:1799 ../fish/guestfish-actions.pod:1197
10218 msgid ""
10219 "This returns a list of strings I<without any prefix>.  Thus if the directory "
10220 "structure was:"
10221 msgstr ""
10222
10223 # type: verbatim
10224 #. type: verbatim
10225 #: ../src/guestfs-actions.pod:1802 ../fish/guestfish-actions.pod:1200
10226 #, no-wrap
10227 msgid ""
10228 " /tmp/a\n"
10229 " /tmp/b\n"
10230 " /tmp/c/d\n"
10231 "\n"
10232 msgstr ""
10233
10234 # type: textblock
10235 #. type: textblock
10236 #: ../src/guestfs-actions.pod:1806
10237 msgid ""
10238 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
10239 msgstr ""
10240
10241 # type: verbatim
10242 #. type: verbatim
10243 #: ../src/guestfs-actions.pod:1809 ../fish/guestfish-actions.pod:1207
10244 #, no-wrap
10245 msgid ""
10246 " a\n"
10247 " b\n"
10248 " c\n"
10249 " c/d\n"
10250 "\n"
10251 msgstr ""
10252
10253 # type: textblock
10254 #. type: textblock
10255 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1212
10256 msgid "If C<directory> is not a directory, then this command returns an error."
10257 msgstr ""
10258
10259 # type: textblock
10260 #. type: textblock
10261 #: ../src/guestfs-actions.pod:1817 ../fish/guestfish-actions.pod:1215
10262 msgid "The returned list is sorted."
10263 msgstr ""
10264
10265 # type: textblock
10266 #. type: textblock
10267 #: ../src/guestfs-actions.pod:1819
10268 msgid "See also C<guestfs_find0>."
10269 msgstr ""
10270
10271 # type: textblock
10272 #. type: textblock
10273 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4297
10274 #: ../src/guestfs-actions.pod:6001
10275 msgid "(Added in 1.0.27)"
10276 msgstr ""
10277
10278 # type: =head2
10279 #. type: =head2
10280 #: ../src/guestfs-actions.pod:1830
10281 msgid "guestfs_find0"
10282 msgstr ""
10283
10284 # type: verbatim
10285 #. type: verbatim
10286 #: ../src/guestfs-actions.pod:1832
10287 #, no-wrap
10288 msgid ""
10289 " int\n"
10290 " guestfs_find0 (guestfs_h *g,\n"
10291 "                const char *directory,\n"
10292 "                const char *files);\n"
10293 "\n"
10294 msgstr ""
10295
10296 # type: textblock
10297 #. type: textblock
10298 #: ../src/guestfs-actions.pod:1837 ../fish/guestfish-actions.pod:1226
10299 msgid ""
10300 "This command lists out all files and directories, recursively, starting at "
10301 "C<directory>, placing the resulting list in the external file called "
10302 "C<files>."
10303 msgstr ""
10304
10305 # type: textblock
10306 #. type: textblock
10307 #: ../src/guestfs-actions.pod:1841
10308 msgid ""
10309 "This command works the same way as C<guestfs_find> with the following "
10310 "exceptions:"
10311 msgstr ""
10312
10313 # type: textblock
10314 #. type: textblock
10315 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1237
10316 msgid "The resulting list is written to an external file."
10317 msgstr ""
10318
10319 # type: textblock
10320 #. type: textblock
10321 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1241
10322 msgid ""
10323 "Items (filenames) in the result are separated by C<\\0> characters.  See "
10324 "L<find(1)> option I<-print0>."
10325 msgstr ""
10326
10327 # type: textblock
10328 #. type: textblock
10329 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1246
10330 msgid "This command is not limited in the number of names that it can return."
10331 msgstr ""
10332
10333 # type: textblock
10334 #. type: textblock
10335 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1251
10336 msgid "The result list is not sorted."
10337 msgstr ""
10338
10339 # type: textblock
10340 #. type: textblock
10341 #: ../src/guestfs-actions.pod:1868
10342 msgid "(Added in 1.0.74)"
10343 msgstr ""
10344
10345 # type: =head2
10346 #. type: =head2
10347 #: ../src/guestfs-actions.pod:1870
10348 msgid "guestfs_findfs_label"
10349 msgstr ""
10350
10351 # type: verbatim
10352 #. type: verbatim
10353 #: ../src/guestfs-actions.pod:1872
10354 #, no-wrap
10355 msgid ""
10356 " char *\n"
10357 " guestfs_findfs_label (guestfs_h *g,\n"
10358 "                       const char *label);\n"
10359 "\n"
10360 msgstr ""
10361
10362 # type: textblock
10363 #. type: textblock
10364 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1261
10365 msgid ""
10366 "This command searches the filesystems and returns the one which has the "
10367 "given label.  An error is returned if no such filesystem can be found."
10368 msgstr ""
10369
10370 # type: textblock
10371 #. type: textblock
10372 #: ../src/guestfs-actions.pod:1880
10373 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
10374 msgstr ""
10375
10376 # type: =head2
10377 #. type: =head2
10378 #: ../src/guestfs-actions.pod:1887
10379 msgid "guestfs_findfs_uuid"
10380 msgstr ""
10381
10382 # type: verbatim
10383 #. type: verbatim
10384 #: ../src/guestfs-actions.pod:1889
10385 #, no-wrap
10386 msgid ""
10387 " char *\n"
10388 " guestfs_findfs_uuid (guestfs_h *g,\n"
10389 "                      const char *uuid);\n"
10390 "\n"
10391 msgstr ""
10392
10393 # type: textblock
10394 #. type: textblock
10395 #: ../src/guestfs-actions.pod:1893 ../fish/guestfish-actions.pod:1271
10396 msgid ""
10397 "This command searches the filesystems and returns the one which has the "
10398 "given UUID.  An error is returned if no such filesystem can be found."
10399 msgstr ""
10400
10401 # type: textblock
10402 #. type: textblock
10403 #: ../src/guestfs-actions.pod:1897
10404 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10405 msgstr ""
10406
10407 # type: =head2
10408 #. type: =head2
10409 #: ../src/guestfs-actions.pod:1904
10410 msgid "guestfs_fsck"
10411 msgstr ""
10412
10413 # type: verbatim
10414 #. type: verbatim
10415 #: ../src/guestfs-actions.pod:1906
10416 #, no-wrap
10417 msgid ""
10418 " int\n"
10419 " guestfs_fsck (guestfs_h *g,\n"
10420 "               const char *fstype,\n"
10421 "               const char *device);\n"
10422 "\n"
10423 msgstr ""
10424
10425 # type: textblock
10426 #. type: textblock
10427 #: ../src/guestfs-actions.pod:1911 ../fish/guestfish-actions.pod:1281
10428 msgid ""
10429 "This runs the filesystem checker (fsck) on C<device> which should have "
10430 "filesystem type C<fstype>."
10431 msgstr ""
10432
10433 # type: textblock
10434 #. type: textblock
10435 #: ../src/guestfs-actions.pod:1914 ../fish/guestfish-actions.pod:1284
10436 msgid ""
10437 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10438 "codes from C<fsck>."
10439 msgstr ""
10440
10441 # type: textblock
10442 #. type: textblock
10443 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1293
10444 msgid "Multiple status codes can be summed together."
10445 msgstr ""
10446
10447 # type: textblock
10448 #. type: textblock
10449 #: ../src/guestfs-actions.pod:1927 ../fish/guestfish-actions.pod:1297
10450 msgid ""
10451 "A non-zero return code can mean \"success\", for example if errors have been "
10452 "corrected on the filesystem."
10453 msgstr ""
10454
10455 # type: textblock
10456 #. type: textblock
10457 #: ../src/guestfs-actions.pod:1932 ../fish/guestfish-actions.pod:1302
10458 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10459 msgstr ""
10460
10461 # type: textblock
10462 #. type: textblock
10463 #: ../src/guestfs-actions.pod:1937 ../fish/guestfish-actions.pod:1307
10464 msgid ""
10465 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10466 msgstr ""
10467
10468 # type: textblock
10469 #. type: textblock
10470 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7768
10471 msgid "(Added in 1.0.16)"
10472 msgstr ""
10473
10474 # type: =head2
10475 #. type: =head2
10476 #: ../src/guestfs-actions.pod:1943
10477 msgid "guestfs_get_append"
10478 msgstr ""
10479
10480 # type: verbatim
10481 #. type: verbatim
10482 #: ../src/guestfs-actions.pod:1945
10483 #, no-wrap
10484 msgid ""
10485 " const char *\n"
10486 " guestfs_get_append (guestfs_h *g);\n"
10487 "\n"
10488 msgstr ""
10489
10490 # type: textblock
10491 #. type: textblock
10492 #: ../src/guestfs-actions.pod:1948 ../fish/guestfish-actions.pod:1313
10493 msgid ""
10494 "Return the additional kernel options which are added to the guest kernel "
10495 "command line."
10496 msgstr ""
10497
10498 # type: textblock
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1316
10501 msgid "If C<NULL> then no options are added."
10502 msgstr ""
10503
10504 # type: textblock
10505 #. type: textblock
10506 #: ../src/guestfs-actions.pod:1953
10507 msgid ""
10508 "This function returns a string which may be NULL.  There is no way to return "
10509 "an error from this function.  The string is owned by the guest handle and "
10510 "must I<not> be freed."
10511 msgstr ""
10512
10513 # type: textblock
10514 #. type: textblock
10515 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5679
10516 #: ../src/guestfs-actions.pod:6161 ../src/guestfs-actions.pod:6601
10517 #: ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6636
10518 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:7414
10519 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7811
10520 msgid "(Added in 1.0.26)"
10521 msgstr ""
10522
10523 #. type: =head2
10524 #: ../src/guestfs-actions.pod:1959
10525 msgid "guestfs_get_attach_method"
10526 msgstr ""
10527
10528 #. type: verbatim
10529 #: ../src/guestfs-actions.pod:1961
10530 #, no-wrap
10531 msgid ""
10532 " char *\n"
10533 " guestfs_get_attach_method (guestfs_h *g);\n"
10534 "\n"
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../src/guestfs-actions.pod:1964
10539 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10540 msgstr ""
10541
10542 #. type: textblock
10543 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6191
10544 msgid "(Added in 1.9.8)"
10545 msgstr ""
10546
10547 # type: =head2
10548 #. type: =head2
10549 #: ../src/guestfs-actions.pod:1971
10550 msgid "guestfs_get_autosync"
10551 msgstr ""
10552
10553 # type: verbatim
10554 #. type: verbatim
10555 #: ../src/guestfs-actions.pod:1973
10556 #, no-wrap
10557 msgid ""
10558 " int\n"
10559 " guestfs_get_autosync (guestfs_h *g);\n"
10560 "\n"
10561 msgstr ""
10562
10563 # type: textblock
10564 #. type: textblock
10565 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1328
10566 msgid "Get the autosync flag."
10567 msgstr ""
10568
10569 # type: =head2
10570 #. type: =head2
10571 #: ../src/guestfs-actions.pod:1982
10572 msgid "guestfs_get_direct"
10573 msgstr ""
10574
10575 # type: verbatim
10576 #. type: verbatim
10577 #: ../src/guestfs-actions.pod:1984
10578 #, no-wrap
10579 msgid ""
10580 " int\n"
10581 " guestfs_get_direct (guestfs_h *g);\n"
10582 "\n"
10583 msgstr ""
10584
10585 # type: textblock
10586 #. type: textblock
10587 #: ../src/guestfs-actions.pod:1987 ../fish/guestfish-actions.pod:1334
10588 msgid "Return the direct appliance mode flag."
10589 msgstr ""
10590
10591 # type: textblock
10592 #. type: textblock
10593 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6232
10594 msgid "(Added in 1.0.72)"
10595 msgstr ""
10596
10597 # type: =head2
10598 #. type: =head2
10599 #: ../src/guestfs-actions.pod:1993
10600 msgid "guestfs_get_e2label"
10601 msgstr ""
10602
10603 # type: verbatim
10604 #. type: verbatim
10605 #: ../src/guestfs-actions.pod:1995
10606 #, no-wrap
10607 msgid ""
10608 " char *\n"
10609 " guestfs_get_e2label (guestfs_h *g,\n"
10610 "                      const char *device);\n"
10611 "\n"
10612 msgstr ""
10613
10614 # type: textblock
10615 #. type: textblock
10616 #: ../src/guestfs-actions.pod:1999 ../fish/guestfish-actions.pod:1340
10617 msgid ""
10618 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10619 msgstr ""
10620
10621 # type: textblock
10622 #. type: textblock
10623 #: ../src/guestfs-actions.pod:2005 ../fish/guestfish-actions.pod:1343
10624 msgid ""
10625 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10626 msgstr ""
10627
10628 # type: textblock
10629 #. type: textblock
10630 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033
10631 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6269
10632 msgid "(Added in 1.0.15)"
10633 msgstr ""
10634
10635 # type: =head2
10636 #. type: =head2
10637 #: ../src/guestfs-actions.pod:2014
10638 msgid "guestfs_get_e2uuid"
10639 msgstr ""
10640
10641 # type: verbatim
10642 #. type: verbatim
10643 #: ../src/guestfs-actions.pod:2016
10644 #, no-wrap
10645 msgid ""
10646 " char *\n"
10647 " guestfs_get_e2uuid (guestfs_h *g,\n"
10648 "                     const char *device);\n"
10649 "\n"
10650 msgstr ""
10651
10652 # type: textblock
10653 #. type: textblock
10654 #: ../src/guestfs-actions.pod:2020 ../fish/guestfish-actions.pod:1354
10655 msgid ""
10656 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10657 msgstr ""
10658
10659 # type: textblock
10660 #. type: textblock
10661 #: ../src/guestfs-actions.pod:2026 ../fish/guestfish-actions.pod:1357
10662 msgid ""
10663 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10664 msgstr ""
10665
10666 # type: =head2
10667 #. type: =head2
10668 #: ../src/guestfs-actions.pod:2035
10669 msgid "guestfs_get_memsize"
10670 msgstr ""
10671
10672 # type: verbatim
10673 #. type: verbatim
10674 #: ../src/guestfs-actions.pod:2037
10675 #, no-wrap
10676 msgid ""
10677 " int\n"
10678 " guestfs_get_memsize (guestfs_h *g);\n"
10679 "\n"
10680 msgstr ""
10681
10682 # type: textblock
10683 #. type: textblock
10684 #: ../src/guestfs-actions.pod:2040 ../fish/guestfish-actions.pod:1368
10685 msgid ""
10686 "This gets the memory size in megabytes allocated to the qemu subprocess."
10687 msgstr ""
10688
10689 # type: textblock
10690 #. type: textblock
10691 #: ../src/guestfs-actions.pod:2043
10692 msgid ""
10693 "If C<guestfs_set_memsize> was not called on this handle, and if "
10694 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10695 "value for memsize."
10696 msgstr ""
10697
10698 # type: textblock
10699 #. type: textblock
10700 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2137
10701 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6409
10702 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432
10703 #: ../fish/guestfish-actions.pod:4157 ../fish/guestfish-actions.pod:4259
10704 msgid ""
10705 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10706 msgstr ""
10707
10708 # type: textblock
10709 #. type: textblock
10710 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4588
10711 #: ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816
10712 #: ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847
10713 #: ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877
10714 #: ../src/guestfs-actions.pod:5904 ../src/guestfs-actions.pod:6290
10715 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:7183
10716 msgid "(Added in 1.0.55)"
10717 msgstr ""
10718
10719 # type: =head2
10720 #. type: =head2
10721 #: ../src/guestfs-actions.pod:2054
10722 msgid "guestfs_get_network"
10723 msgstr ""
10724
10725 # type: verbatim
10726 #. type: verbatim
10727 #: ../src/guestfs-actions.pod:2056
10728 #, no-wrap
10729 msgid ""
10730 " int\n"
10731 " guestfs_get_network (guestfs_h *g);\n"
10732 "\n"
10733 msgstr ""
10734
10735 # type: textblock
10736 #. type: textblock
10737 #: ../src/guestfs-actions.pod:2059 ../fish/guestfish-actions.pod:1382
10738 msgid "This returns the enable network flag."
10739 msgstr ""
10740
10741 # type: textblock
10742 #. type: textblock
10743 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6309
10744 msgid "(Added in 1.5.4)"
10745 msgstr ""
10746
10747 # type: =head2
10748 #. type: =head2
10749 #: ../src/guestfs-actions.pod:2065
10750 msgid "guestfs_get_path"
10751 msgstr ""
10752
10753 # type: verbatim
10754 #. type: verbatim
10755 #: ../src/guestfs-actions.pod:2067
10756 #, no-wrap
10757 msgid ""
10758 " const char *\n"
10759 " guestfs_get_path (guestfs_h *g);\n"
10760 "\n"
10761 msgstr ""
10762
10763 # type: textblock
10764 #. type: textblock
10765 #: ../src/guestfs-actions.pod:2070 ../fish/guestfish-actions.pod:1388
10766 msgid "Return the current search path."
10767 msgstr ""
10768
10769 # type: textblock
10770 #. type: textblock
10771 #: ../src/guestfs-actions.pod:2072 ../fish/guestfish-actions.pod:1390
10772 msgid ""
10773 "This is always non-NULL.  If it wasn't set already, then this will return "
10774 "the default path."
10775 msgstr ""
10776
10777 # type: textblock
10778 #. type: textblock
10779 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2113
10780 msgid ""
10781 "This function returns a string, or NULL on error.  The string is owned by "
10782 "the guest handle and must I<not> be freed."
10783 msgstr ""
10784
10785 #. type: =head2
10786 #: ../src/guestfs-actions.pod:2080
10787 msgid "guestfs_get_pgroup"
10788 msgstr ""
10789
10790 #. type: verbatim
10791 #: ../src/guestfs-actions.pod:2082
10792 #, no-wrap
10793 msgid ""
10794 " int\n"
10795 " guestfs_get_pgroup (guestfs_h *g);\n"
10796 "\n"
10797 msgstr ""
10798
10799 #. type: textblock
10800 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1397
10801 msgid "This returns the process group flag."
10802 msgstr ""
10803
10804 # type: =head2
10805 #. type: =head2
10806 #: ../src/guestfs-actions.pod:2089
10807 msgid "guestfs_get_pid"
10808 msgstr ""
10809
10810 # type: verbatim
10811 #. type: verbatim
10812 #: ../src/guestfs-actions.pod:2091
10813 #, no-wrap
10814 msgid ""
10815 " int\n"
10816 " guestfs_get_pid (guestfs_h *g);\n"
10817 "\n"
10818 msgstr ""
10819
10820 # type: textblock
10821 #. type: textblock
10822 #: ../src/guestfs-actions.pod:2094 ../fish/guestfish-actions.pod:1405
10823 msgid ""
10824 "Return the process ID of the qemu subprocess.  If there is no qemu "
10825 "subprocess, then this will return an error."
10826 msgstr ""
10827
10828 # type: textblock
10829 #. type: textblock
10830 #: ../src/guestfs-actions.pod:2097 ../fish/guestfish-actions.pod:1408
10831 msgid "This is an internal call used for debugging and testing."
10832 msgstr ""
10833
10834 # type: textblock
10835 #. type: textblock
10836 #: ../src/guestfs-actions.pod:2101
10837 msgid "(Added in 1.0.56)"
10838 msgstr ""
10839
10840 # type: =head2
10841 #. type: =head2
10842 #: ../src/guestfs-actions.pod:2103
10843 msgid "guestfs_get_qemu"
10844 msgstr ""
10845
10846 # type: verbatim
10847 #. type: verbatim
10848 #: ../src/guestfs-actions.pod:2105
10849 #, no-wrap
10850 msgid ""
10851 " const char *\n"
10852 " guestfs_get_qemu (guestfs_h *g);\n"
10853 "\n"
10854 msgstr ""
10855
10856 # type: textblock
10857 #. type: textblock
10858 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1414
10859 msgid "Return the current qemu binary."
10860 msgstr ""
10861
10862 # type: textblock
10863 #. type: textblock
10864 #: ../src/guestfs-actions.pod:2110 ../fish/guestfish-actions.pod:1416
10865 msgid ""
10866 "This is always non-NULL.  If it wasn't set already, then this will return "
10867 "the default qemu binary name."
10868 msgstr ""
10869
10870 # type: textblock
10871 #. type: textblock
10872 #: ../src/guestfs-actions.pod:2116 ../src/guestfs-actions.pod:6371
10873 msgid "(Added in 1.0.6)"
10874 msgstr ""
10875
10876 # type: =head2
10877 #. type: =head2
10878 #: ../src/guestfs-actions.pod:2118
10879 msgid "guestfs_get_recovery_proc"
10880 msgstr ""
10881
10882 # type: verbatim
10883 #. type: verbatim
10884 #: ../src/guestfs-actions.pod:2120
10885 #, no-wrap
10886 msgid ""
10887 " int\n"
10888 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10889 "\n"
10890 msgstr ""
10891
10892 # type: textblock
10893 #. type: textblock
10894 #: ../src/guestfs-actions.pod:2123 ../fish/guestfish-actions.pod:1423
10895 msgid "Return the recovery process enabled flag."
10896 msgstr ""
10897
10898 # type: textblock
10899 #. type: textblock
10900 #: ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:3661
10901 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4395
10902 #: ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:5609
10903 #: ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6395
10904 #: ../src/guestfs-actions.pod:7086 ../src/guestfs-actions.pod:7106
10905 #: ../src/guestfs-actions.pod:7298
10906 msgid "(Added in 1.0.77)"
10907 msgstr ""
10908
10909 # type: =head2
10910 #. type: =head2
10911 #: ../src/guestfs-actions.pod:2129
10912 msgid "guestfs_get_selinux"
10913 msgstr ""
10914
10915 # type: verbatim
10916 #. type: verbatim
10917 #: ../src/guestfs-actions.pod:2131
10918 #, no-wrap
10919 msgid ""
10920 " int\n"
10921 " guestfs_get_selinux (guestfs_h *g);\n"
10922 "\n"
10923 msgstr ""
10924
10925 # type: textblock
10926 #. type: textblock
10927 #: ../src/guestfs-actions.pod:2134
10928 msgid ""
10929 "This returns the current setting of the selinux flag which is passed to the "
10930 "appliance at boot time.  See C<guestfs_set_selinux>."
10931 msgstr ""
10932
10933 # type: textblock
10934 #. type: textblock
10935 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2205
10936 #: ../src/guestfs-actions.pod:6414 ../src/guestfs-actions.pod:6472
10937 msgid "(Added in 1.0.67)"
10938 msgstr ""
10939
10940 # type: =head2
10941 #. type: =head2
10942 #: ../src/guestfs-actions.pod:2144
10943 msgid "guestfs_get_state"
10944 msgstr ""
10945
10946 # type: verbatim
10947 #. type: verbatim
10948 #: ../src/guestfs-actions.pod:2146
10949 #, no-wrap
10950 msgid ""
10951 " int\n"
10952 " guestfs_get_state (guestfs_h *g);\n"
10953 "\n"
10954 msgstr ""
10955
10956 # type: textblock
10957 #. type: textblock
10958 #: ../src/guestfs-actions.pod:2149 ../fish/guestfish-actions.pod:1439
10959 msgid ""
10960 "This returns the current state as an opaque integer.  This is only useful "
10961 "for printing debug and internal error messages."
10962 msgstr ""
10963
10964 # type: textblock
10965 #. type: textblock
10966 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:3432
10967 #: ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3522
10968 #: ../src/guestfs-actions.pod:3549 ../fish/guestfish-actions.pod:1442
10969 #: ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2380
10970 #: ../fish/guestfish-actions.pod:2418 ../fish/guestfish-actions.pod:2434
10971 msgid "For more information on states, see L<guestfs(3)>."
10972 msgstr ""
10973
10974 # type: =head2
10975 #. type: =head2
10976 #: ../src/guestfs-actions.pod:2158
10977 msgid "guestfs_get_trace"
10978 msgstr ""
10979
10980 # type: verbatim
10981 #. type: verbatim
10982 #: ../src/guestfs-actions.pod:2160
10983 #, no-wrap
10984 msgid ""
10985 " int\n"
10986 " guestfs_get_trace (guestfs_h *g);\n"
10987 "\n"
10988 msgstr ""
10989
10990 # type: textblock
10991 #. type: textblock
10992 #: ../src/guestfs-actions.pod:2163 ../fish/guestfish-actions.pod:1448
10993 msgid "Return the command trace flag."
10994 msgstr ""
10995
10996 # type: =head2
10997 #. type: =head2
10998 #: ../src/guestfs-actions.pod:2169
10999 msgid "guestfs_get_umask"
11000 msgstr ""
11001
11002 # type: verbatim
11003 #. type: verbatim
11004 #: ../src/guestfs-actions.pod:2171
11005 #, no-wrap
11006 msgid ""
11007 " int\n"
11008 " guestfs_get_umask (guestfs_h *g);\n"
11009 "\n"
11010 msgstr ""
11011
11012 # type: textblock
11013 #. type: textblock
11014 #: ../src/guestfs-actions.pod:2174
11015 msgid ""
11016 "Return the current umask.  By default the umask is C<022> unless it has been "
11017 "set by calling C<guestfs_umask>."
11018 msgstr ""
11019
11020 # type: =head2
11021 #. type: =head2
11022 #: ../src/guestfs-actions.pod:2181
11023 msgid "guestfs_get_verbose"
11024 msgstr ""
11025
11026 # type: verbatim
11027 #. type: verbatim
11028 #: ../src/guestfs-actions.pod:2183
11029 #, no-wrap
11030 msgid ""
11031 " int\n"
11032 " guestfs_get_verbose (guestfs_h *g);\n"
11033 "\n"
11034 msgstr ""
11035
11036 # type: textblock
11037 #. type: textblock
11038 #: ../src/guestfs-actions.pod:2186 ../fish/guestfish-actions.pod:1461
11039 msgid "This returns the verbose messages flag."
11040 msgstr ""
11041
11042 # type: =head2
11043 #. type: =head2
11044 #: ../src/guestfs-actions.pod:2192
11045 msgid "guestfs_getcon"
11046 msgstr ""
11047
11048 # type: verbatim
11049 #. type: verbatim
11050 #: ../src/guestfs-actions.pod:2194
11051 #, no-wrap
11052 msgid ""
11053 " char *\n"
11054 " guestfs_getcon (guestfs_h *g);\n"
11055 "\n"
11056 msgstr ""
11057
11058 # type: textblock
11059 #. type: textblock
11060 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1467
11061 msgid "This gets the SELinux security context of the daemon."
11062 msgstr ""
11063
11064 # type: textblock
11065 #. type: textblock
11066 #: ../src/guestfs-actions.pod:2199
11067 msgid ""
11068 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
11069 msgstr ""
11070
11071 # type: =head2
11072 #. type: =head2
11073 #: ../src/guestfs-actions.pod:2207
11074 msgid "guestfs_getxattr"
11075 msgstr ""
11076
11077 # type: verbatim
11078 #. type: verbatim
11079 #: ../src/guestfs-actions.pod:2209
11080 #, no-wrap
11081 msgid ""
11082 " char *\n"
11083 " guestfs_getxattr (guestfs_h *g,\n"
11084 "                   const char *path,\n"
11085 "                   const char *name,\n"
11086 "                   size_t *size_r);\n"
11087 "\n"
11088 msgstr ""
11089
11090 # type: textblock
11091 #. type: textblock
11092 #: ../src/guestfs-actions.pod:2215
11093 msgid ""
11094 "Get a single extended attribute from file C<path> named C<name>.  This call "
11095 "follows symlinks.  If you want to lookup an extended attribute for the "
11096 "symlink itself, use C<guestfs_lgetxattr>."
11097 msgstr ""
11098
11099 # type: textblock
11100 #. type: textblock
11101 #: ../src/guestfs-actions.pod:2219 ../src/guestfs-actions.pod:3675
11102 msgid ""
11103 "Normally it is better to get all extended attributes from a file in one go "
11104 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
11105 "implementations are buggy and do not provide a way to list out attributes.  "
11106 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
11107 "extended attributes you want in advance and call this function."
11108 msgstr ""
11109
11110 # type: textblock
11111 #. type: textblock
11112 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
11113 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514
11114 msgid ""
11115 "Extended attribute values are blobs of binary data.  If there is no extended "
11116 "attribute named C<name>, this returns an error."
11117 msgstr ""
11118
11119 # type: textblock
11120 #. type: textblock
11121 #: ../src/guestfs-actions.pod:2229
11122 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
11123 msgstr ""
11124
11125 # type: textblock
11126 #. type: textblock
11127 #: ../src/guestfs-actions.pod:2231 ../src/guestfs-actions.pod:2422
11128 #: ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:3687
11129 #: ../src/guestfs-actions.pod:5602 ../src/guestfs-actions.pod:5628
11130 #: ../src/guestfs-actions.pod:5809
11131 msgid ""
11132 "This function returns a buffer, or NULL on error.  The size of the returned "
11133 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
11134 "after use>."
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../src/guestfs-actions.pod:2235 ../src/guestfs-actions.pod:3691
11139 msgid "(Added in 1.7.24)"
11140 msgstr ""
11141
11142 # type: =head2
11143 #. type: =head2
11144 #: ../src/guestfs-actions.pod:2237
11145 msgid "guestfs_getxattrs"
11146 msgstr ""
11147
11148 # type: verbatim
11149 #. type: verbatim
11150 #: ../src/guestfs-actions.pod:2239
11151 #, no-wrap
11152 msgid ""
11153 " struct guestfs_xattr_list *\n"
11154 " guestfs_getxattrs (guestfs_h *g,\n"
11155 "                    const char *path);\n"
11156 "\n"
11157 msgstr ""
11158
11159 # type: textblock
11160 #. type: textblock
11161 #: ../src/guestfs-actions.pod:2243 ../fish/guestfish-actions.pod:1496
11162 msgid ""
11163 "This call lists the extended attributes of the file or directory C<path>."
11164 msgstr ""
11165
11166 # type: textblock
11167 #. type: textblock
11168 #: ../src/guestfs-actions.pod:2246 ../fish/guestfish-actions.pod:1499
11169 msgid ""
11170 "At the system call level, this is a combination of the L<listxattr(2)> and "
11171 "L<getxattr(2)> calls."
11172 msgstr ""
11173
11174 # type: textblock
11175 #. type: textblock
11176 #: ../src/guestfs-actions.pod:2249
11177 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
11178 msgstr ""
11179
11180 # type: textblock
11181 #. type: textblock
11182 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3703
11183 #: ../src/guestfs-actions.pod:4391
11184 msgid ""
11185 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
11186 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
11187 msgstr ""
11188
11189 # type: textblock
11190 #. type: textblock
11191 #: ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:3707
11192 #: ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3942
11193 #: ../src/guestfs-actions.pod:5982 ../src/guestfs-actions.pod:6491
11194 #: ../src/guestfs-actions.pod:7876
11195 msgid "(Added in 1.0.59)"
11196 msgstr ""
11197
11198 # type: =head2
11199 #. type: =head2
11200 #: ../src/guestfs-actions.pod:2257
11201 msgid "guestfs_glob_expand"
11202 msgstr ""
11203
11204 # type: verbatim
11205 #. type: verbatim
11206 #: ../src/guestfs-actions.pod:2259
11207 #, no-wrap
11208 msgid ""
11209 " char **\n"
11210 " guestfs_glob_expand (guestfs_h *g,\n"
11211 "                      const char *pattern);\n"
11212 "\n"
11213 msgstr ""
11214
11215 # type: textblock
11216 #. type: textblock
11217 #: ../src/guestfs-actions.pod:2263 ../fish/guestfish-actions.pod:1508
11218 msgid ""
11219 "This command searches for all the pathnames matching C<pattern> according to "
11220 "the wildcard expansion rules used by the shell."
11221 msgstr ""
11222
11223 # type: textblock
11224 #. type: textblock
11225 #: ../src/guestfs-actions.pod:2267 ../fish/guestfish-actions.pod:1512
11226 msgid ""
11227 "If no paths match, then this returns an empty list (note: not an error)."
11228 msgstr ""
11229
11230 # type: textblock
11231 #. type: textblock
11232 #: ../src/guestfs-actions.pod:2270 ../fish/guestfish-actions.pod:1515
11233 msgid ""
11234 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
11235 "GLOB_BRACE>.  See that manual page for more details."
11236 msgstr ""
11237
11238 # type: textblock
11239 #. type: textblock
11240 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6684
11241 #: ../src/guestfs-actions.pod:6701
11242 msgid "(Added in 1.0.50)"
11243 msgstr ""
11244
11245 # type: =head2
11246 #. type: =head2
11247 #: ../src/guestfs-actions.pod:2280
11248 msgid "guestfs_grep"
11249 msgstr ""
11250
11251 # type: verbatim
11252 #. type: verbatim
11253 #: ../src/guestfs-actions.pod:2282
11254 #, no-wrap
11255 msgid ""
11256 " char **\n"
11257 " guestfs_grep (guestfs_h *g,\n"
11258 "               const char *regex,\n"
11259 "               const char *path);\n"
11260 "\n"
11261 msgstr ""
11262
11263 # type: textblock
11264 #. type: textblock
11265 #: ../src/guestfs-actions.pod:2287 ../fish/guestfish-actions.pod:1523
11266 msgid "This calls the external C<grep> program and returns the matching lines."
11267 msgstr ""
11268
11269 # type: =head2
11270 #. type: =head2
11271 #: ../src/guestfs-actions.pod:2299
11272 msgid "guestfs_grepi"
11273 msgstr ""
11274
11275 # type: verbatim
11276 #. type: verbatim
11277 #: ../src/guestfs-actions.pod:2301
11278 #, no-wrap
11279 msgid ""
11280 " char **\n"
11281 " guestfs_grepi (guestfs_h *g,\n"
11282 "                const char *regex,\n"
11283 "                const char *path);\n"
11284 "\n"
11285 msgstr ""
11286
11287 # type: textblock
11288 #. type: textblock
11289 #: ../src/guestfs-actions.pod:2306 ../fish/guestfish-actions.pod:1533
11290 msgid ""
11291 "This calls the external C<grep -i> program and returns the matching lines."
11292 msgstr ""
11293
11294 # type: =head2
11295 #. type: =head2
11296 #: ../src/guestfs-actions.pod:2318
11297 msgid "guestfs_grub_install"
11298 msgstr ""
11299
11300 # type: verbatim
11301 #. type: verbatim
11302 #: ../src/guestfs-actions.pod:2320
11303 #, no-wrap
11304 msgid ""
11305 " int\n"
11306 " guestfs_grub_install (guestfs_h *g,\n"
11307 "                       const char *root,\n"
11308 "                       const char *device);\n"
11309 "\n"
11310 msgstr ""
11311
11312 # type: textblock
11313 #. type: textblock
11314 #: ../src/guestfs-actions.pod:2325 ../fish/guestfish-actions.pod:1543
11315 msgid ""
11316 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
11317 "the root directory being C<root>."
11318 msgstr ""
11319
11320 # type: textblock
11321 #. type: textblock
11322 #: ../src/guestfs-actions.pod:2328 ../fish/guestfish-actions.pod:1546
11323 msgid ""
11324 "Note: If grub-install reports the error \"No suitable drive was found in the "
11325 "generated device map.\" it may be that you need to create a C</boot/grub/"
11326 "device.map> file first that contains the mapping between grub device names "
11327 "and Linux device names.  It is usually sufficient to create a file "
11328 "containing:"
11329 msgstr ""
11330
11331 # type: verbatim
11332 #. type: verbatim
11333 #: ../src/guestfs-actions.pod:2335 ../fish/guestfish-actions.pod:1553
11334 #, no-wrap
11335 msgid ""
11336 " (hd0) /dev/vda\n"
11337 "\n"
11338 msgstr ""
11339
11340 # type: textblock
11341 #. type: textblock
11342 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1555
11343 msgid "replacing C</dev/vda> with the name of the installation device."
11344 msgstr ""
11345
11346 # type: textblock
11347 #. type: textblock
11348 #: ../src/guestfs-actions.pod:2341
11349 msgid "(Added in 1.0.17)"
11350 msgstr ""
11351
11352 # type: =head2
11353 #. type: =head2
11354 #: ../src/guestfs-actions.pod:2343
11355 msgid "guestfs_head"
11356 msgstr ""
11357
11358 # type: verbatim
11359 #. type: verbatim
11360 #: ../src/guestfs-actions.pod:2345
11361 #, no-wrap
11362 msgid ""
11363 " char **\n"
11364 " guestfs_head (guestfs_h *g,\n"
11365 "               const char *path);\n"
11366 "\n"
11367 msgstr ""
11368
11369 # type: textblock
11370 #. type: textblock
11371 #: ../src/guestfs-actions.pod:2349 ../fish/guestfish-actions.pod:1561
11372 msgid ""
11373 "This command returns up to the first 10 lines of a file as a list of strings."
11374 msgstr ""
11375
11376 # type: =head2
11377 #. type: =head2
11378 #: ../src/guestfs-actions.pod:2361
11379 msgid "guestfs_head_n"
11380 msgstr ""
11381
11382 # type: verbatim
11383 #. type: verbatim
11384 #: ../src/guestfs-actions.pod:2363
11385 #, no-wrap
11386 msgid ""
11387 " char **\n"
11388 " guestfs_head_n (guestfs_h *g,\n"
11389 "                 int nrlines,\n"
11390 "                 const char *path);\n"
11391 "\n"
11392 msgstr ""
11393
11394 # type: textblock
11395 #. type: textblock
11396 #: ../src/guestfs-actions.pod:2368 ../fish/guestfish-actions.pod:1571
11397 msgid ""
11398 "If the parameter C<nrlines> is a positive number, this returns the first "
11399 "C<nrlines> lines of the file C<path>."
11400 msgstr ""
11401
11402 # type: textblock
11403 #. type: textblock
11404 #: ../src/guestfs-actions.pod:2371 ../fish/guestfish-actions.pod:1574
11405 msgid ""
11406 "If the parameter C<nrlines> is a negative number, this returns lines from "
11407 "the file C<path>, excluding the last C<nrlines> lines."
11408 msgstr ""
11409
11410 # type: textblock
11411 #. type: textblock
11412 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6981
11413 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4637
11414 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
11415 msgstr ""
11416
11417 # type: =head2
11418 #. type: =head2
11419 #: ../src/guestfs-actions.pod:2385
11420 msgid "guestfs_hexdump"
11421 msgstr ""
11422
11423 # type: verbatim
11424 #. type: verbatim
11425 #: ../src/guestfs-actions.pod:2387
11426 #, no-wrap
11427 msgid ""
11428 " char *\n"
11429 " guestfs_hexdump (guestfs_h *g,\n"
11430 "                  const char *path);\n"
11431 "\n"
11432 msgstr ""
11433
11434 # type: textblock
11435 #. type: textblock
11436 #: ../src/guestfs-actions.pod:2391 ../fish/guestfish-actions.pod:1586
11437 msgid ""
11438 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11439 "readable, canonical hex dump of the file."
11440 msgstr ""
11441
11442 # type: textblock
11443 #. type: textblock
11444 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6765
11445 #: ../src/guestfs-actions.pod:6820
11446 msgid "(Added in 1.0.22)"
11447 msgstr ""
11448
11449 # type: =head2
11450 #. type: =head2
11451 #: ../src/guestfs-actions.pod:2402
11452 msgid "guestfs_initrd_cat"
11453 msgstr ""
11454
11455 # type: verbatim
11456 #. type: verbatim
11457 #: ../src/guestfs-actions.pod:2404
11458 #, no-wrap
11459 msgid ""
11460 " char *\n"
11461 " guestfs_initrd_cat (guestfs_h *g,\n"
11462 "                     const char *initrdpath,\n"
11463 "                     const char *filename,\n"
11464 "                     size_t *size_r);\n"
11465 "\n"
11466 msgstr ""
11467
11468 # type: textblock
11469 #. type: textblock
11470 #: ../src/guestfs-actions.pod:2410 ../fish/guestfish-actions.pod:1596
11471 msgid ""
11472 "This command unpacks the file C<filename> from the initrd file called "
11473 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11474 "character."
11475 msgstr ""
11476
11477 # type: textblock
11478 #. type: textblock
11479 #: ../src/guestfs-actions.pod:2414 ../fish/guestfish-actions.pod:1600
11480 msgid ""
11481 "For example, in guestfish you could use the following command to examine the "
11482 "boot script (usually called C</init>)  contained in a Linux initrd or "
11483 "initramfs image:"
11484 msgstr ""
11485
11486 # type: verbatim
11487 #. type: verbatim
11488 #: ../src/guestfs-actions.pod:2418 ../fish/guestfish-actions.pod:1604
11489 #, no-wrap
11490 msgid ""
11491 " initrd-cat /boot/initrd-<version>.img init\n"
11492 "\n"
11493 msgstr ""
11494
11495 # type: textblock
11496 #. type: textblock
11497 #: ../src/guestfs-actions.pod:2420
11498 msgid "See also C<guestfs_initrd_list>."
11499 msgstr ""
11500
11501 # type: =head2
11502 #. type: =head2
11503 #: ../src/guestfs-actions.pod:2431
11504 msgid "guestfs_initrd_list"
11505 msgstr ""
11506
11507 # type: verbatim
11508 #. type: verbatim
11509 #: ../src/guestfs-actions.pod:2433
11510 #, no-wrap
11511 msgid ""
11512 " char **\n"
11513 " guestfs_initrd_list (guestfs_h *g,\n"
11514 "                      const char *path);\n"
11515 "\n"
11516 msgstr ""
11517
11518 # type: textblock
11519 #. type: textblock
11520 #: ../src/guestfs-actions.pod:2437 ../fish/guestfish-actions.pod:1615
11521 msgid "This command lists out files contained in an initrd."
11522 msgstr ""
11523
11524 # type: textblock
11525 #. type: textblock
11526 #: ../src/guestfs-actions.pod:2439 ../fish/guestfish-actions.pod:1617
11527 msgid ""
11528 "The files are listed without any initial C</> character.  The files are "
11529 "listed in the order they appear (not necessarily alphabetical).  Directory "
11530 "names are listed as separate items."
11531 msgstr ""
11532
11533 # type: textblock
11534 #. type: textblock
11535 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1621
11536 msgid ""
11537 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11538 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11539 "files)."
11540 msgstr ""
11541
11542 # type: =head2
11543 #. type: =head2
11544 #: ../src/guestfs-actions.pod:2453
11545 msgid "guestfs_inotify_add_watch"
11546 msgstr ""
11547
11548 # type: verbatim
11549 #. type: verbatim
11550 #: ../src/guestfs-actions.pod:2455
11551 #, no-wrap
11552 msgid ""
11553 " int64_t\n"
11554 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11555 "                            const char *path,\n"
11556 "                            int mask);\n"
11557 "\n"
11558 msgstr ""
11559
11560 # type: textblock
11561 #. type: textblock
11562 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1629
11563 msgid "Watch C<path> for the events listed in C<mask>."
11564 msgstr ""
11565
11566 # type: textblock
11567 #. type: textblock
11568 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1631
11569 msgid ""
11570 "Note that if C<path> is a directory then events within that directory are "
11571 "watched, but this does I<not> happen recursively (in subdirectories)."
11572 msgstr ""
11573
11574 # type: textblock
11575 #. type: textblock
11576 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1635
11577 msgid ""
11578 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11579 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11580 msgstr ""
11581
11582 # type: =head2
11583 #. type: =head2
11584 #: ../src/guestfs-actions.pod:2474
11585 msgid "guestfs_inotify_close"
11586 msgstr ""
11587
11588 # type: verbatim
11589 #. type: verbatim
11590 #: ../src/guestfs-actions.pod:2476
11591 #, no-wrap
11592 msgid ""
11593 " int\n"
11594 " guestfs_inotify_close (guestfs_h *g);\n"
11595 "\n"
11596 msgstr ""
11597
11598 # type: textblock
11599 #. type: textblock
11600 #: ../src/guestfs-actions.pod:2479 ../fish/guestfish-actions.pod:1643
11601 msgid ""
11602 "This closes the inotify handle which was previously opened by inotify_init.  "
11603 "It removes all watches, throws away any pending events, and deallocates all "
11604 "resources."
11605 msgstr ""
11606
11607 # type: =head2
11608 #. type: =head2
11609 #: ../src/guestfs-actions.pod:2487
11610 msgid "guestfs_inotify_files"
11611 msgstr ""
11612
11613 # type: verbatim
11614 #. type: verbatim
11615 #: ../src/guestfs-actions.pod:2489
11616 #, no-wrap
11617 msgid ""
11618 " char **\n"
11619 " guestfs_inotify_files (guestfs_h *g);\n"
11620 "\n"
11621 msgstr ""
11622
11623 # type: textblock
11624 #. type: textblock
11625 #: ../src/guestfs-actions.pod:2492
11626 msgid ""
11627 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11628 "returns a list of pathnames of objects that were touched.  The returned "
11629 "pathnames are sorted and deduplicated."
11630 msgstr ""
11631
11632 # type: =head2
11633 #. type: =head2
11634 #: ../src/guestfs-actions.pod:2502
11635 msgid "guestfs_inotify_init"
11636 msgstr ""
11637
11638 # type: verbatim
11639 #. type: verbatim
11640 #: ../src/guestfs-actions.pod:2504
11641 #, no-wrap
11642 msgid ""
11643 " int\n"
11644 " guestfs_inotify_init (guestfs_h *g,\n"
11645 "                       int maxevents);\n"
11646 "\n"
11647 msgstr ""
11648
11649 # type: textblock
11650 #. type: textblock
11651 #: ../src/guestfs-actions.pod:2508 ../fish/guestfish-actions.pod:1659
11652 msgid ""
11653 "This command creates a new inotify handle.  The inotify subsystem can be "
11654 "used to notify events which happen to objects in the guest filesystem."
11655 msgstr ""
11656
11657 # type: textblock
11658 #. type: textblock
11659 #: ../src/guestfs-actions.pod:2512
11660 msgid ""
11661 "C<maxevents> is the maximum number of events which will be queued up between "
11662 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11663 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11664 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11665 "throws away events, but records the fact that it threw them away by setting "
11666 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11667 "C<guestfs_inotify_read>)."
11668 msgstr ""
11669
11670 # type: textblock
11671 #. type: textblock
11672 #: ../src/guestfs-actions.pod:2522
11673 msgid ""
11674 "Before any events are generated, you have to add some watches to the "
11675 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11676 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11677 msgstr ""
11678
11679 # type: textblock
11680 #. type: textblock
11681 #: ../src/guestfs-actions.pod:2528
11682 msgid ""
11683 "Queued up events should be read periodically by calling "
11684 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11685 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11686 "often enough then you risk the internal queue overflowing."
11687 msgstr ""
11688
11689 # type: textblock
11690 #. type: textblock
11691 #: ../src/guestfs-actions.pod:2535
11692 msgid ""
11693 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11694 "This also removes any watches automatically."
11695 msgstr ""
11696
11697 # type: textblock
11698 #. type: textblock
11699 #: ../src/guestfs-actions.pod:2539 ../fish/guestfish-actions.pod:1690
11700 msgid ""
11701 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11702 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11703 "that there is one global inotify handle per libguestfs instance."
11704 msgstr ""
11705
11706 # type: =head2
11707 #. type: =head2
11708 #: ../src/guestfs-actions.pod:2548
11709 msgid "guestfs_inotify_read"
11710 msgstr ""
11711
11712 # type: verbatim
11713 #. type: verbatim
11714 #: ../src/guestfs-actions.pod:2550
11715 #, no-wrap
11716 msgid ""
11717 " struct guestfs_inotify_event_list *\n"
11718 " guestfs_inotify_read (guestfs_h *g);\n"
11719 "\n"
11720 msgstr ""
11721
11722 # type: textblock
11723 #. type: textblock
11724 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1699
11725 msgid ""
11726 "Return the complete queue of events that have happened since the previous "
11727 "read call."
11728 msgstr ""
11729
11730 # type: textblock
11731 #. type: textblock
11732 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1702
11733 msgid "If no events have happened, this returns an empty list."
11734 msgstr ""
11735
11736 # type: textblock
11737 #. type: textblock
11738 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1704
11739 msgid ""
11740 "I<Note>: In order to make sure that all events have been read, you must call "
11741 "this function repeatedly until it returns an empty list.  The reason is that "
11742 "the call will read events up to the maximum appliance-to-host message size "
11743 "and leave remaining events in the queue."
11744 msgstr ""
11745
11746 # type: textblock
11747 #. type: textblock
11748 #: ../src/guestfs-actions.pod:2564
11749 msgid ""
11750 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11751 "there was an error.  I<The caller must call "
11752 "C<guestfs_free_inotify_event_list> after use>."
11753 msgstr ""
11754
11755 # type: =head2
11756 #. type: =head2
11757 #: ../src/guestfs-actions.pod:2570
11758 msgid "guestfs_inotify_rm_watch"
11759 msgstr ""
11760
11761 # type: verbatim
11762 #. type: verbatim
11763 #: ../src/guestfs-actions.pod:2572
11764 #, no-wrap
11765 msgid ""
11766 " int\n"
11767 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11768 "                           int wd);\n"
11769 "\n"
11770 msgstr ""
11771
11772 # type: textblock
11773 #. type: textblock
11774 #: ../src/guestfs-actions.pod:2576
11775 msgid ""
11776 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11777 msgstr ""
11778
11779 # type: =head2
11780 #. type: =head2
11781 #: ../src/guestfs-actions.pod:2583
11782 msgid "guestfs_inspect_get_arch"
11783 msgstr ""
11784
11785 # type: verbatim
11786 #. type: verbatim
11787 #: ../src/guestfs-actions.pod:2585
11788 #, no-wrap
11789 msgid ""
11790 " char *\n"
11791 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11792 "                           const char *root);\n"
11793 "\n"
11794 msgstr ""
11795
11796 # type: textblock
11797 #. type: textblock
11798 #: ../src/guestfs-actions.pod:2589
11799 msgid ""
11800 "This returns the architecture of the inspected operating system.  The "
11801 "possible return values are listed under C<guestfs_file_architecture>."
11802 msgstr ""
11803
11804 # type: textblock
11805 #. type: textblock
11806 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1725
11807 msgid ""
11808 "If the architecture could not be determined, then the string C<unknown> is "
11809 "returned."
11810 msgstr ""
11811
11812 # type: textblock
11813 #. type: textblock
11814 #: ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2686
11815 #: ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2809
11816 #: ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:3023
11817 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3072
11818 #: ../src/guestfs-actions.pod:3125 ../src/guestfs-actions.pod:3165
11819 #: ../src/guestfs-actions.pod:3185 ../src/guestfs-actions.pod:3205
11820 #: ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3238
11821 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3358
11822 #: ../src/guestfs-actions.pod:3399 ../fish/guestfish-actions.pod:1728
11823 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1890
11824 #: ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1986
11825 #: ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2068
11826 #: ../fish/guestfish-actions.pod:2082 ../fish/guestfish-actions.pod:2122
11827 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2167
11828 #: ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2190
11829 #: ../fish/guestfish-actions.pod:2200 ../fish/guestfish-actions.pod:2212
11830 #: ../fish/guestfish-actions.pod:2308 ../fish/guestfish-actions.pod:2342
11831 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11832 msgstr ""
11833
11834 # type: =head2
11835 #. type: =head2
11836 #: ../src/guestfs-actions.pod:2603
11837 msgid "guestfs_inspect_get_distro"
11838 msgstr ""
11839
11840 # type: verbatim
11841 #. type: verbatim
11842 #: ../src/guestfs-actions.pod:2605
11843 #, no-wrap
11844 msgid ""
11845 " char *\n"
11846 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11847 "                             const char *root);\n"
11848 "\n"
11849 msgstr ""
11850
11851 # type: textblock
11852 #. type: textblock
11853 #: ../src/guestfs-actions.pod:2609 ../fish/guestfish-actions.pod:1734
11854 msgid ""
11855 "This returns the distro (distribution) of the inspected operating system."
11856 msgstr ""
11857
11858 # type: textblock
11859 #. type: textblock
11860 #: ../src/guestfs-actions.pod:2612 ../fish/guestfish-actions.pod:1737
11861 msgid "Currently defined distros are:"
11862 msgstr ""
11863
11864 # type: =item
11865 #. type: =item
11866 #: ../src/guestfs-actions.pod:2616 ../fish/guestfish-actions.pod:1741
11867 msgid "\"archlinux\""
11868 msgstr ""
11869
11870 # type: textblock
11871 #. type: textblock
11872 #: ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1743
11873 msgid "Arch Linux."
11874 msgstr ""
11875
11876 #. type: =item
11877 #: ../src/guestfs-actions.pod:2620 ../fish/guestfish-actions.pod:1745
11878 msgid "\"centos\""
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../src/guestfs-actions.pod:2622 ../fish/guestfish-actions.pod:1747
11883 msgid "CentOS."
11884 msgstr ""
11885
11886 # type: =item
11887 #. type: =item
11888 #: ../src/guestfs-actions.pod:2624 ../fish/guestfish-actions.pod:1749
11889 msgid "\"debian\""
11890 msgstr ""
11891
11892 # type: textblock
11893 #. type: textblock
11894 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1751
11895 msgid "Debian."
11896 msgstr ""
11897
11898 # type: =item
11899 #. type: =item
11900 #: ../src/guestfs-actions.pod:2628 ../fish/guestfish-actions.pod:1753
11901 msgid "\"fedora\""
11902 msgstr ""
11903
11904 # type: textblock
11905 #. type: textblock
11906 #: ../src/guestfs-actions.pod:2630 ../fish/guestfish-actions.pod:1755
11907 msgid "Fedora."
11908 msgstr ""
11909
11910 # type: =item
11911 #. type: =item
11912 #: ../src/guestfs-actions.pod:2632 ../fish/guestfish-actions.pod:1757
11913 msgid "\"gentoo\""
11914 msgstr ""
11915
11916 # type: textblock
11917 #. type: textblock
11918 #: ../src/guestfs-actions.pod:2634 ../fish/guestfish-actions.pod:1759
11919 msgid "Gentoo."
11920 msgstr ""
11921
11922 # type: =item
11923 #. type: =item
11924 #: ../src/guestfs-actions.pod:2636 ../fish/guestfish-actions.pod:1761
11925 msgid "\"linuxmint\""
11926 msgstr ""
11927
11928 # type: textblock
11929 #. type: textblock
11930 #: ../src/guestfs-actions.pod:2638 ../fish/guestfish-actions.pod:1763
11931 msgid "Linux Mint."
11932 msgstr ""
11933
11934 # type: =item
11935 #. type: =item
11936 #: ../src/guestfs-actions.pod:2640 ../fish/guestfish-actions.pod:1765
11937 msgid "\"mandriva\""
11938 msgstr ""
11939
11940 # type: textblock
11941 #. type: textblock
11942 #: ../src/guestfs-actions.pod:2642 ../fish/guestfish-actions.pod:1767
11943 msgid "Mandriva."
11944 msgstr ""
11945
11946 # type: =item
11947 #. type: =item
11948 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1769
11949 msgid "\"meego\""
11950 msgstr ""
11951
11952 # type: textblock
11953 #. type: textblock
11954 #: ../src/guestfs-actions.pod:2646 ../fish/guestfish-actions.pod:1771
11955 msgid "MeeGo."
11956 msgstr ""
11957
11958 # type: =item
11959 #. type: =item
11960 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1773
11961 msgid "\"pardus\""
11962 msgstr ""
11963
11964 # type: textblock
11965 #. type: textblock
11966 #: ../src/guestfs-actions.pod:2650 ../fish/guestfish-actions.pod:1775
11967 msgid "Pardus."
11968 msgstr ""
11969
11970 # type: =item
11971 #. type: =item
11972 #: ../src/guestfs-actions.pod:2652 ../fish/guestfish-actions.pod:1777
11973 msgid "\"redhat-based\""
11974 msgstr ""
11975
11976 # type: textblock
11977 #. type: textblock
11978 #: ../src/guestfs-actions.pod:2654 ../fish/guestfish-actions.pod:1779
11979 msgid "Some Red Hat-derived distro."
11980 msgstr ""
11981
11982 # type: =item
11983 #. type: =item
11984 #: ../src/guestfs-actions.pod:2656 ../fish/guestfish-actions.pod:1781
11985 msgid "\"rhel\""
11986 msgstr ""
11987
11988 #. type: textblock
11989 #: ../src/guestfs-actions.pod:2658 ../fish/guestfish-actions.pod:1783
11990 msgid "Red Hat Enterprise Linux."
11991 msgstr ""
11992
11993 #. type: =item
11994 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1785
11995 msgid "\"scientificlinux\""
11996 msgstr ""
11997
11998 #. type: textblock
11999 #: ../src/guestfs-actions.pod:2662 ../fish/guestfish-actions.pod:1787
12000 msgid "Scientific Linux."
12001 msgstr ""
12002
12003 #. type: =item
12004 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1789
12005 msgid "\"slackware\""
12006 msgstr ""
12007
12008 #. type: textblock
12009 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1791
12010 msgid "Slackware."
12011 msgstr ""
12012
12013 # type: =item
12014 #. type: =item
12015 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1793
12016 msgid "\"ubuntu\""
12017 msgstr ""
12018
12019 # type: textblock
12020 #. type: textblock
12021 #: ../src/guestfs-actions.pod:2670 ../fish/guestfish-actions.pod:1795
12022 msgid "Ubuntu."
12023 msgstr ""
12024
12025 # type: =item
12026 #. type: =item
12027 #: ../src/guestfs-actions.pod:2672 ../src/guestfs-actions.pod:2781
12028 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:1797
12029 #: ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2145
12030 msgid "\"unknown\""
12031 msgstr ""
12032
12033 # type: textblock
12034 #. type: textblock
12035 #: ../src/guestfs-actions.pod:2674 ../fish/guestfish-actions.pod:1799
12036 msgid "The distro could not be determined."
12037 msgstr ""
12038
12039 # type: =item
12040 #. type: =item
12041 #: ../src/guestfs-actions.pod:2676 ../src/guestfs-actions.pod:3148
12042 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137
12043 msgid "\"windows\""
12044 msgstr ""
12045
12046 # type: textblock
12047 #. type: textblock
12048 #: ../src/guestfs-actions.pod:2678 ../fish/guestfish-actions.pod:1803
12049 msgid ""
12050 "Windows does not have distributions.  This string is returned if the OS type "
12051 "is Windows."
12052 msgstr ""
12053
12054 # type: textblock
12055 #. type: textblock
12056 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:2787
12057 #: ../src/guestfs-actions.pod:3162 ../fish/guestfish-actions.pod:1808
12058 #: ../fish/guestfish-actions.pod:1887 ../fish/guestfish-actions.pod:2151
12059 msgid ""
12060 "Future versions of libguestfs may return other strings here.  The caller "
12061 "should be prepared to handle any string."
12062 msgstr ""
12063
12064 #. type: =head2
12065 #: ../src/guestfs-actions.pod:2693
12066 msgid "guestfs_inspect_get_drive_mappings"
12067 msgstr ""
12068
12069 #. type: verbatim
12070 #: ../src/guestfs-actions.pod:2695
12071 #, no-wrap
12072 msgid ""
12073 " char **\n"
12074 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
12075 "                                     const char *root);\n"
12076 "\n"
12077 msgstr ""
12078
12079 #. type: textblock
12080 #: ../src/guestfs-actions.pod:2699 ../fish/guestfish-actions.pod:1817
12081 msgid ""
12082 "This call is useful for Windows which uses a primitive system of assigning "
12083 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
12084 "Windows Registry to find out how disks/partitions are mapped to drive "
12085 "letters, and returns a hash table as in the example below:"
12086 msgstr ""
12087
12088 #. type: verbatim
12089 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1823
12090 #, no-wrap
12091 msgid ""
12092 " C      =>     /dev/vda2\n"
12093 " E      =>     /dev/vdb1\n"
12094 " F      =>     /dev/vdc1\n"
12095 "\n"
12096 msgstr ""
12097
12098 #. type: textblock
12099 #: ../src/guestfs-actions.pod:2709 ../fish/guestfish-actions.pod:1827
12100 msgid ""
12101 "Note that keys are drive letters.  For Windows, the key is case insensitive "
12102 "and just contains the drive letter, without the customary colon separator "
12103 "character."
12104 msgstr ""
12105
12106 #. type: textblock
12107 #: ../src/guestfs-actions.pod:2713 ../fish/guestfish-actions.pod:1831
12108 msgid ""
12109 "In future we may support other operating systems that also used drive "
12110 "letters, but the keys for those might not be case insensitive and might be "
12111 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
12112 "C<h1> etc."
12113 msgstr ""
12114
12115 #. type: textblock
12116 #: ../src/guestfs-actions.pod:2718 ../fish/guestfish-actions.pod:1836
12117 msgid ""
12118 "For Windows guests, currently only hard drive mappings are returned.  "
12119 "Removable disks (eg. DVD-ROMs) are ignored."
12120 msgstr ""
12121
12122 #. type: textblock
12123 #: ../src/guestfs-actions.pod:2721 ../fish/guestfish-actions.pod:1839
12124 msgid ""
12125 "For guests that do not use drive mappings, or if the drive mappings could "
12126 "not be determined, this returns an empty hash table."
12127 msgstr ""
12128
12129 #. type: textblock
12130 #: ../src/guestfs-actions.pod:2724
12131 msgid ""
12132 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12133 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
12134 msgstr ""
12135
12136 # type: textblock
12137 #. type: textblock
12138 #: ../src/guestfs-actions.pod:2728 ../src/guestfs-actions.pod:2996
12139 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:5076
12140 #: ../src/guestfs-actions.pod:7122
12141 msgid ""
12142 "This function returns a NULL-terminated array of strings, or NULL if there "
12143 "was an error.  The array of strings will always have length C<2n+1>, where "
12144 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
12145 "caller must free the strings and the array after use>."
12146 msgstr ""
12147
12148 #. type: textblock
12149 #: ../src/guestfs-actions.pod:2734 ../src/guestfs-actions.pod:3190
12150 msgid "(Added in 1.9.17)"
12151 msgstr ""
12152
12153 # type: =head2
12154 #. type: =head2
12155 #: ../src/guestfs-actions.pod:2736
12156 msgid "guestfs_inspect_get_filesystems"
12157 msgstr ""
12158
12159 # type: verbatim
12160 #. type: verbatim
12161 #: ../src/guestfs-actions.pod:2738
12162 #, no-wrap
12163 msgid ""
12164 " char **\n"
12165 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
12166 "                                  const char *root);\n"
12167 "\n"
12168 msgstr ""
12169
12170 # type: textblock
12171 #. type: textblock
12172 #: ../src/guestfs-actions.pod:2742 ../fish/guestfish-actions.pod:1850
12173 msgid ""
12174 "This returns a list of all the filesystems that we think are associated with "
12175 "this operating system.  This includes the root filesystem, other ordinary "
12176 "filesystems, and non-mounted devices like swap partitions."
12177 msgstr ""
12178
12179 # type: textblock
12180 #. type: textblock
12181 #: ../src/guestfs-actions.pod:2747 ../fish/guestfish-actions.pod:1855
12182 msgid ""
12183 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
12184 "to be shared between operating systems."
12185 msgstr ""
12186
12187 # type: textblock
12188 #. type: textblock
12189 #: ../src/guestfs-actions.pod:2750
12190 msgid ""
12191 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12192 "C<guestfs_inspect_get_mountpoints>."
12193 msgstr ""
12194
12195 #. type: =head2
12196 #: ../src/guestfs-actions.pod:2759
12197 msgid "guestfs_inspect_get_format"
12198 msgstr ""
12199
12200 #. type: verbatim
12201 #: ../src/guestfs-actions.pod:2761
12202 #, no-wrap
12203 msgid ""
12204 " char *\n"
12205 " guestfs_inspect_get_format (guestfs_h *g,\n"
12206 "                             const char *root);\n"
12207 "\n"
12208 msgstr ""
12209
12210 #. type: textblock
12211 #: ../src/guestfs-actions.pod:2765 ../fish/guestfish-actions.pod:1865
12212 msgid ""
12213 "This returns the format of the inspected operating system.  You can use it "
12214 "to detect install images, live CDs and similar."
12215 msgstr ""
12216
12217 #. type: textblock
12218 #: ../src/guestfs-actions.pod:2768 ../fish/guestfish-actions.pod:1868
12219 msgid "Currently defined formats are:"
12220 msgstr ""
12221
12222 #. type: =item
12223 #: ../src/guestfs-actions.pod:2772 ../fish/guestfish-actions.pod:1872
12224 msgid "\"installed\""
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../src/guestfs-actions.pod:2774 ../fish/guestfish-actions.pod:1874
12229 msgid "This is an installed operating system."
12230 msgstr ""
12231
12232 #. type: =item
12233 #: ../src/guestfs-actions.pod:2776 ../fish/guestfish-actions.pod:1876
12234 msgid "\"installer\""
12235 msgstr ""
12236
12237 #. type: textblock
12238 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1878
12239 msgid ""
12240 "The disk image being inspected is not an installed operating system, but a "
12241 "I<bootable> install disk, live CD, or similar."
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../src/guestfs-actions.pod:2783 ../fish/guestfish-actions.pod:1883
12246 msgid "The format of this disk image is not known."
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../src/guestfs-actions.pod:2795 ../src/guestfs-actions.pod:3226
12251 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260
12252 #: ../src/guestfs-actions.pod:6020
12253 msgid "(Added in 1.9.4)"
12254 msgstr ""
12255
12256 # type: =head2
12257 #. type: =head2
12258 #: ../src/guestfs-actions.pod:2797
12259 msgid "guestfs_inspect_get_hostname"
12260 msgstr ""
12261
12262 # type: verbatim
12263 #. type: verbatim
12264 #: ../src/guestfs-actions.pod:2799
12265 #, no-wrap
12266 msgid ""
12267 " char *\n"
12268 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
12269 "                               const char *root);\n"
12270 "\n"
12271 msgstr ""
12272
12273 # type: textblock
12274 #. type: textblock
12275 #: ../src/guestfs-actions.pod:2803 ../fish/guestfish-actions.pod:1896
12276 msgid ""
12277 "This function returns the hostname of the operating system as found by "
12278 "inspection of the guest's configuration files."
12279 msgstr ""
12280
12281 # type: textblock
12282 #. type: textblock
12283 #: ../src/guestfs-actions.pod:2806 ../fish/guestfish-actions.pod:1899
12284 msgid ""
12285 "If the hostname could not be determined, then the string C<unknown> is "
12286 "returned."
12287 msgstr ""
12288
12289 # type: textblock
12290 #. type: textblock
12291 #: ../src/guestfs-actions.pod:2814
12292 msgid "(Added in 1.7.9)"
12293 msgstr ""
12294
12295 #. type: =head2
12296 #: ../src/guestfs-actions.pod:2816
12297 msgid "guestfs_inspect_get_icon"
12298 msgstr ""
12299
12300 #. type: verbatim
12301 #: ../src/guestfs-actions.pod:2818
12302 #, no-wrap
12303 msgid ""
12304 " char *\n"
12305 " guestfs_inspect_get_icon (guestfs_h *g,\n"
12306 "                           const char *root,\n"
12307 "                           size_t *size_r,\n"
12308 "                           ...);\n"
12309 "\n"
12310 msgstr ""
12311
12312 #. type: verbatim
12313 #: ../src/guestfs-actions.pod:2829
12314 #, no-wrap
12315 msgid ""
12316 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
12317 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
12318 "\n"
12319 msgstr ""
12320
12321 #. type: textblock
12322 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1908
12323 msgid ""
12324 "This function returns an icon corresponding to the inspected operating "
12325 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
12326 "to PNG if necessary)."
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../src/guestfs-actions.pod:2836 ../fish/guestfish-actions.pod:1912
12331 msgid ""
12332 "If it was not possible to get an icon this function returns a zero-length "
12333 "(non-NULL) buffer.  I<Callers must check for this case>."
12334 msgstr ""
12335
12336 #. type: textblock
12337 #: ../src/guestfs-actions.pod:2839 ../fish/guestfish-actions.pod:1915
12338 msgid ""
12339 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
12340 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
12341 "this file will be returned.  You can disable favicons by passing the "
12342 "optional C<favicon> boolean as false (default is true)."
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../src/guestfs-actions.pod:2845 ../fish/guestfish-actions.pod:1921
12347 msgid ""
12348 "If finding the favicon fails, then we look in other places in the guest for "
12349 "a suitable icon."
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../src/guestfs-actions.pod:2848 ../fish/guestfish-actions.pod:1924
12354 msgid ""
12355 "If the optional C<highquality> boolean is true then only high quality icons "
12356 "are returned, which means only icons of high resolution with an alpha "
12357 "channel.  The default (false) is to return any icon we can, even if it is of "
12358 "substandard quality."
12359 msgstr ""
12360
12361 #. type: textblock
12362 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1935
12363 msgid ""
12364 "Unlike most other inspection API calls, the guest's disks must be mounted up "
12365 "before you call this, since it needs to read information from the guest "
12366 "filesystem during the call."
12367 msgstr ""
12368
12369 #. type: textblock
12370 #: ../src/guestfs-actions.pod:2865 ../fish/guestfish-actions.pod:1941
12371 msgid ""
12372 "B<Security:> The icon data comes from the untrusted guest, and should be "
12373 "treated with caution.  PNG files have been known to contain exploits.  "
12374 "Ensure that libpng (or other relevant libraries) are fully up to date before "
12375 "trying to process or display the icon."
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../src/guestfs-actions.pod:2873 ../fish/guestfish-actions.pod:1949
12380 msgid ""
12381 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
12382 "tries to return the largest, highest quality icon available.  The "
12383 "application must scale the icon to the required size."
12384 msgstr ""
12385
12386 #. type: textblock
12387 #: ../src/guestfs-actions.pod:2880 ../fish/guestfish-actions.pod:1956
12388 msgid ""
12389 "Extracting icons from Windows guests requires the external C<wrestool> "
12390 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
12391 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
12392 "installed separately."
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:1963
12397 msgid ""
12398 "Operating system icons are usually trademarks.  Seek legal advice before "
12399 "using trademarks in applications."
12400 msgstr ""
12401
12402 #. type: textblock
12403 #: ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:3721
12404 #: ../src/guestfs-actions.pod:4975
12405 msgid "(Added in 1.11.12)"
12406 msgstr ""
12407
12408 #. type: =head2
12409 #: ../src/guestfs-actions.pod:2898
12410 msgid "guestfs_inspect_get_icon_va"
12411 msgstr ""
12412
12413 #. type: verbatim
12414 #: ../src/guestfs-actions.pod:2900
12415 #, no-wrap
12416 msgid ""
12417 " char *\n"
12418 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
12419 "                              const char *root,\n"
12420 "                              size_t *size_r,\n"
12421 "                              va_list args);\n"
12422 "\n"
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../src/guestfs-actions.pod:2906
12427 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
12428 msgstr ""
12429
12430 #. type: =head2
12431 #: ../src/guestfs-actions.pod:2910
12432 msgid "guestfs_inspect_get_icon_argv"
12433 msgstr ""
12434
12435 #. type: verbatim
12436 #: ../src/guestfs-actions.pod:2912
12437 #, no-wrap
12438 msgid ""
12439 " char *\n"
12440 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
12441 "                                const char *root,\n"
12442 "                                size_t *size_r,\n"
12443 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
12444 "\n"
12445 msgstr ""
12446
12447 #. type: textblock
12448 #: ../src/guestfs-actions.pod:2918
12449 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
12450 msgstr ""
12451
12452 # type: =head2
12453 #. type: =head2
12454 #: ../src/guestfs-actions.pod:2922
12455 msgid "guestfs_inspect_get_major_version"
12456 msgstr ""
12457
12458 # type: verbatim
12459 #. type: verbatim
12460 #: ../src/guestfs-actions.pod:2924
12461 #, no-wrap
12462 msgid ""
12463 " int\n"
12464 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
12465 "                                    const char *root);\n"
12466 "\n"
12467 msgstr ""
12468
12469 # type: textblock
12470 #. type: textblock
12471 #: ../src/guestfs-actions.pod:2928 ../fish/guestfish-actions.pod:1974
12472 msgid ""
12473 "This returns the major version number of the inspected operating system."
12474 msgstr ""
12475
12476 # type: textblock
12477 #. type: textblock
12478 #: ../src/guestfs-actions.pod:2931 ../fish/guestfish-actions.pod:1977
12479 msgid ""
12480 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
12481 "popular public names used by the operating system.  Notably the operating "
12482 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
12483 "1).  You can find out the real versions corresponding to releases of Windows "
12484 "by consulting Wikipedia or MSDN."
12485 msgstr ""
12486
12487 # type: textblock
12488 #. type: textblock
12489 #: ../src/guestfs-actions.pod:2938 ../src/guestfs-actions.pod:2955
12490 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995
12491 msgid "If the version could not be determined, then C<0> is returned."
12492 msgstr ""
12493
12494 # type: =head2
12495 #. type: =head2
12496 #: ../src/guestfs-actions.pod:2946
12497 msgid "guestfs_inspect_get_minor_version"
12498 msgstr ""
12499
12500 # type: verbatim
12501 #. type: verbatim
12502 #: ../src/guestfs-actions.pod:2948
12503 #, no-wrap
12504 msgid ""
12505 " int\n"
12506 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
12507 "                                    const char *root);\n"
12508 "\n"
12509 msgstr ""
12510
12511 # type: textblock
12512 #. type: textblock
12513 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:1992
12514 msgid ""
12515 "This returns the minor version number of the inspected operating system."
12516 msgstr ""
12517
12518 # type: textblock
12519 #. type: textblock
12520 #: ../src/guestfs-actions.pod:2957
12521 msgid ""
12522 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12523 "C<guestfs_inspect_get_major_version>."
12524 msgstr ""
12525
12526 # type: =head2
12527 #. type: =head2
12528 #: ../src/guestfs-actions.pod:2964
12529 msgid "guestfs_inspect_get_mountpoints"
12530 msgstr ""
12531
12532 # type: verbatim
12533 #. type: verbatim
12534 #: ../src/guestfs-actions.pod:2966
12535 #, no-wrap
12536 msgid ""
12537 " char **\n"
12538 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
12539 "                                  const char *root);\n"
12540 "\n"
12541 msgstr ""
12542
12543 #. type: textblock
12544 #: ../src/guestfs-actions.pod:2970 ../fish/guestfish-actions.pod:2004
12545 msgid ""
12546 "This returns a hash of where we think the filesystems associated with this "
12547 "operating system should be mounted.  Callers should note that this is at "
12548 "best an educated guess made by reading configuration files such as C</etc/"
12549 "fstab>.  I<In particular note> that this may return filesystems which are "
12550 "non-existent or not mountable and callers should be prepared to handle or "
12551 "ignore failures if they try to mount them."
12552 msgstr ""
12553
12554 # type: textblock
12555 #. type: textblock
12556 #: ../src/guestfs-actions.pod:2979 ../fish/guestfish-actions.pod:2013
12557 msgid ""
12558 "Each element in the returned hashtable has a key which is the path of the "
12559 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
12560 "mounted there (eg. C</dev/sda1>)."
12561 msgstr ""
12562
12563 # type: textblock
12564 #. type: textblock
12565 #: ../src/guestfs-actions.pod:2984 ../fish/guestfish-actions.pod:2018
12566 msgid ""
12567 "Non-mounted devices such as swap devices are I<not> returned in this list."
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../src/guestfs-actions.pod:2987
12572 msgid ""
12573 "For operating systems like Windows which still use drive letters, this call "
12574 "will only return an entry for the first drive \"mounted on\" C</>.  For "
12575 "information about the mapping of drive letters to partitions, see "
12576 "C<guestfs_inspect_get_drive_mappings>."
12577 msgstr ""
12578
12579 # type: textblock
12580 #. type: textblock
12581 #: ../src/guestfs-actions.pod:2993
12582 msgid ""
12583 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12584 "C<guestfs_inspect_get_filesystems>."
12585 msgstr ""
12586
12587 # type: =head2
12588 #. type: =head2
12589 #: ../src/guestfs-actions.pod:3004
12590 msgid "guestfs_inspect_get_package_format"
12591 msgstr ""
12592
12593 # type: verbatim
12594 #. type: verbatim
12595 #: ../src/guestfs-actions.pod:3006
12596 #, no-wrap
12597 msgid ""
12598 " char *\n"
12599 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
12600 "                                     const char *root);\n"
12601 "\n"
12602 msgstr ""
12603
12604 # type: textblock
12605 #. type: textblock
12606 #: ../src/guestfs-actions.pod:3010
12607 msgid ""
12608 "This function and C<guestfs_inspect_get_package_management> return the "
12609 "package format and package management tool used by the inspected operating "
12610 "system.  For example for Fedora these functions would return C<rpm> (package "
12611 "format) and C<yum> (package management)."
12612 msgstr ""
12613
12614 # type: textblock
12615 #. type: textblock
12616 #: ../src/guestfs-actions.pod:3016 ../fish/guestfish-actions.pod:2040
12617 msgid ""
12618 "This returns the string C<unknown> if we could not determine the package "
12619 "format I<or> if the operating system does not have a real packaging system "
12620 "(eg. Windows)."
12621 msgstr ""
12622
12623 # type: textblock
12624 #. type: textblock
12625 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2044
12626 msgid ""
12627 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
12628 "Future versions of libguestfs may return other strings."
12629 msgstr ""
12630
12631 # type: textblock
12632 #. type: textblock
12633 #: ../src/guestfs-actions.pod:3028 ../src/guestfs-actions.pod:3056
12634 msgid "(Added in 1.7.5)"
12635 msgstr ""
12636
12637 # type: =head2
12638 #. type: =head2
12639 #: ../src/guestfs-actions.pod:3030
12640 msgid "guestfs_inspect_get_package_management"
12641 msgstr ""
12642
12643 # type: verbatim
12644 #. type: verbatim
12645 #: ../src/guestfs-actions.pod:3032
12646 #, no-wrap
12647 msgid ""
12648 " char *\n"
12649 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
12650 "                                         const char *root);\n"
12651 "\n"
12652 msgstr ""
12653
12654 # type: textblock
12655 #. type: textblock
12656 #: ../src/guestfs-actions.pod:3036
12657 msgid ""
12658 "C<guestfs_inspect_get_package_format> and this function return the package "
12659 "format and package management tool used by the inspected operating system.  "
12660 "For example for Fedora these functions would return C<rpm> (package format) "
12661 "and C<yum> (package management)."
12662 msgstr ""
12663
12664 # type: textblock
12665 #. type: textblock
12666 #: ../src/guestfs-actions.pod:3042 ../fish/guestfish-actions.pod:2059
12667 msgid ""
12668 "This returns the string C<unknown> if we could not determine the package "
12669 "management tool I<or> if the operating system does not have a real packaging "
12670 "system (eg. Windows)."
12671 msgstr ""
12672
12673 # type: textblock
12674 #. type: textblock
12675 #: ../src/guestfs-actions.pod:3046 ../fish/guestfish-actions.pod:2063
12676 msgid ""
12677 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12678 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12679 "libguestfs may return other strings."
12680 msgstr ""
12681
12682 # type: =head2
12683 #. type: =head2
12684 #: ../src/guestfs-actions.pod:3058
12685 msgid "guestfs_inspect_get_product_name"
12686 msgstr ""
12687
12688 # type: verbatim
12689 #. type: verbatim
12690 #: ../src/guestfs-actions.pod:3060
12691 #, no-wrap
12692 msgid ""
12693 " char *\n"
12694 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12695 "                                   const char *root);\n"
12696 "\n"
12697 msgstr ""
12698
12699 # type: textblock
12700 #. type: textblock
12701 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2074
12702 msgid ""
12703 "This returns the product name of the inspected operating system.  The "
12704 "product name is generally some freeform string which can be displayed to the "
12705 "user, but should not be parsed by programs."
12706 msgstr ""
12707
12708 # type: textblock
12709 #. type: textblock
12710 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2079
12711 msgid ""
12712 "If the product name could not be determined, then the string C<unknown> is "
12713 "returned."
12714 msgstr ""
12715
12716 #. type: =head2
12717 #: ../src/guestfs-actions.pod:3079
12718 msgid "guestfs_inspect_get_product_variant"
12719 msgstr ""
12720
12721 #. type: verbatim
12722 #: ../src/guestfs-actions.pod:3081
12723 #, no-wrap
12724 msgid ""
12725 " char *\n"
12726 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12727 "                                      const char *root);\n"
12728 "\n"
12729 msgstr ""
12730
12731 #. type: textblock
12732 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2088
12733 msgid "This returns the product variant of the inspected operating system."
12734 msgstr ""
12735
12736 #. type: textblock
12737 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2091
12738 msgid ""
12739 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12740 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12741 "is usually a string such as C<Client> or C<Server> (other values are "
12742 "possible).  This can be used to distinguish consumer and enterprise versions "
12743 "of Windows that have the same version number (for example, Windows 7 and "
12744 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12745 "the latter is C<Server>)."
12746 msgstr ""
12747
12748 #. type: textblock
12749 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2100
12750 msgid ""
12751 "For enterprise Linux guests, in future we intend this to return the product "
12752 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12753 "implemented at present."
12754 msgstr ""
12755
12756 #. type: textblock
12757 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2104
12758 msgid ""
12759 "If the product variant could not be determined, then the string C<unknown> "
12760 "is returned."
12761 msgstr ""
12762
12763 #. type: textblock
12764 #: ../src/guestfs-actions.pod:3104
12765 msgid ""
12766 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12767 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12768 msgstr ""
12769
12770 #. type: textblock
12771 #: ../src/guestfs-actions.pod:3111
12772 msgid "(Added in 1.9.13)"
12773 msgstr ""
12774
12775 # type: =head2
12776 #. type: =head2
12777 #: ../src/guestfs-actions.pod:3113
12778 msgid "guestfs_inspect_get_roots"
12779 msgstr ""
12780
12781 # type: verbatim
12782 #. type: verbatim
12783 #: ../src/guestfs-actions.pod:3115
12784 #, no-wrap
12785 msgid ""
12786 " char **\n"
12787 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12788 "\n"
12789 msgstr ""
12790
12791 # type: textblock
12792 #. type: textblock
12793 #: ../src/guestfs-actions.pod:3118
12794 msgid ""
12795 "This function is a convenient way to get the list of root devices, as "
12796 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12797 "the whole inspection process."
12798 msgstr ""
12799
12800 # type: textblock
12801 #. type: textblock
12802 #: ../src/guestfs-actions.pod:3122
12803 msgid ""
12804 "This returns an empty list if either no root devices were found or the "
12805 "caller has not called C<guestfs_inspect_os>."
12806 msgstr ""
12807
12808 # type: textblock
12809 #. type: textblock
12810 #: ../src/guestfs-actions.pod:3131
12811 msgid "(Added in 1.7.3)"
12812 msgstr ""
12813
12814 # type: =head2
12815 #. type: =head2
12816 #: ../src/guestfs-actions.pod:3133
12817 msgid "guestfs_inspect_get_type"
12818 msgstr ""
12819
12820 # type: verbatim
12821 #. type: verbatim
12822 #: ../src/guestfs-actions.pod:3135
12823 #, no-wrap
12824 msgid ""
12825 " char *\n"
12826 " guestfs_inspect_get_type (guestfs_h *g,\n"
12827 "                           const char *root);\n"
12828 "\n"
12829 msgstr ""
12830
12831 # type: textblock
12832 #. type: textblock
12833 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2128
12834 msgid ""
12835 "This returns the type of the inspected operating system.  Currently defined "
12836 "types are:"
12837 msgstr ""
12838
12839 # type: =item
12840 #. type: =item
12841 #: ../src/guestfs-actions.pod:3144 ../fish/guestfish-actions.pod:2133
12842 msgid "\"linux\""
12843 msgstr ""
12844
12845 # type: textblock
12846 #. type: textblock
12847 #: ../src/guestfs-actions.pod:3146 ../fish/guestfish-actions.pod:2135
12848 msgid "Any Linux-based operating system."
12849 msgstr ""
12850
12851 # type: textblock
12852 #. type: textblock
12853 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2139
12854 msgid "Any Microsoft Windows operating system."
12855 msgstr ""
12856
12857 # type: =item
12858 #. type: =item
12859 #: ../src/guestfs-actions.pod:3152 ../fish/guestfish-actions.pod:2141
12860 msgid "\"freebsd\""
12861 msgstr ""
12862
12863 # type: textblock
12864 #. type: textblock
12865 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2143
12866 msgid "FreeBSD."
12867 msgstr ""
12868
12869 # type: textblock
12870 #. type: textblock
12871 #: ../src/guestfs-actions.pod:3158 ../fish/guestfish-actions.pod:2147
12872 msgid "The operating system type could not be determined."
12873 msgstr ""
12874
12875 #. type: =head2
12876 #: ../src/guestfs-actions.pod:3172
12877 msgid "guestfs_inspect_get_windows_current_control_set"
12878 msgstr ""
12879
12880 #. type: verbatim
12881 #: ../src/guestfs-actions.pod:3174
12882 #, no-wrap
12883 msgid ""
12884 " char *\n"
12885 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
12886 "                                                  const char *root);\n"
12887 "\n"
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2160
12892 msgid ""
12893 "This returns the Windows CurrentControlSet of the inspected guest.  The "
12894 "CurrentControlSet is a registry key name such as C<ControlSet001>."
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../src/guestfs-actions.pod:3181 ../fish/guestfish-actions.pod:2163
12899 msgid ""
12900 "This call assumes that the guest is Windows and that the Registry could be "
12901 "examined by inspection.  If this is not the case then an error is returned."
12902 msgstr ""
12903
12904 # type: =head2
12905 #. type: =head2
12906 #: ../src/guestfs-actions.pod:3192
12907 msgid "guestfs_inspect_get_windows_systemroot"
12908 msgstr ""
12909
12910 # type: verbatim
12911 #. type: verbatim
12912 #: ../src/guestfs-actions.pod:3194
12913 #, no-wrap
12914 msgid ""
12915 " char *\n"
12916 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12917 "                                         const char *root);\n"
12918 "\n"
12919 msgstr ""
12920
12921 # type: textblock
12922 #. type: textblock
12923 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2173
12924 msgid ""
12925 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12926 "is a directory path such as C</WINDOWS>."
12927 msgstr ""
12928
12929 # type: textblock
12930 #. type: textblock
12931 #: ../src/guestfs-actions.pod:3201 ../fish/guestfish-actions.pod:2176
12932 msgid ""
12933 "This call assumes that the guest is Windows and that the systemroot could be "
12934 "determined by inspection.  If this is not the case then an error is returned."
12935 msgstr ""
12936
12937 # type: textblock
12938 #. type: textblock
12939 #: ../src/guestfs-actions.pod:3210
12940 msgid "(Added in 1.5.25)"
12941 msgstr ""
12942
12943 #. type: =head2
12944 #: ../src/guestfs-actions.pod:3212
12945 msgid "guestfs_inspect_is_live"
12946 msgstr ""
12947
12948 #. type: verbatim
12949 #: ../src/guestfs-actions.pod:3214
12950 #, no-wrap
12951 msgid ""
12952 " int\n"
12953 " guestfs_inspect_is_live (guestfs_h *g,\n"
12954 "                          const char *root);\n"
12955 "\n"
12956 msgstr ""
12957
12958 #. type: textblock
12959 #: ../src/guestfs-actions.pod:3218
12960 msgid ""
12961 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12962 "disk), then this returns true if a live image was detected on the disk."
12963 msgstr ""
12964
12965 #. type: =head2
12966 #: ../src/guestfs-actions.pod:3228
12967 msgid "guestfs_inspect_is_multipart"
12968 msgstr ""
12969
12970 #. type: verbatim
12971 #: ../src/guestfs-actions.pod:3230
12972 #, no-wrap
12973 msgid ""
12974 " int\n"
12975 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12976 "                               const char *root);\n"
12977 "\n"
12978 msgstr ""
12979
12980 #. type: textblock
12981 #: ../src/guestfs-actions.pod:3234
12982 msgid ""
12983 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12984 "disk), then this returns true if the disk is part of a set."
12985 msgstr ""
12986
12987 #. type: =head2
12988 #: ../src/guestfs-actions.pod:3244
12989 msgid "guestfs_inspect_is_netinst"
12990 msgstr ""
12991
12992 #. type: verbatim
12993 #: ../src/guestfs-actions.pod:3246
12994 #, no-wrap
12995 msgid ""
12996 " int\n"
12997 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12998 "                             const char *root);\n"
12999 "\n"
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../src/guestfs-actions.pod:3250
13004 msgid ""
13005 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
13006 "disk), then this returns true if the disk is a network installer, ie. not a "
13007 "self-contained install CD but one which is likely to require network access "
13008 "to complete the install."
13009 msgstr ""
13010
13011 # type: =head2
13012 #. type: =head2
13013 #: ../src/guestfs-actions.pod:3262
13014 msgid "guestfs_inspect_list_applications"
13015 msgstr ""
13016
13017 # type: verbatim
13018 #. type: verbatim
13019 #: ../src/guestfs-actions.pod:3264
13020 #, no-wrap
13021 msgid ""
13022 " struct guestfs_application_list *\n"
13023 " guestfs_inspect_list_applications (guestfs_h *g,\n"
13024 "                                    const char *root);\n"
13025 "\n"
13026 msgstr ""
13027
13028 # type: textblock
13029 #. type: textblock
13030 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2218
13031 msgid "Return the list of applications installed in the operating system."
13032 msgstr ""
13033
13034 # type: textblock
13035 #. type: textblock
13036 #: ../src/guestfs-actions.pod:3270
13037 msgid ""
13038 "I<Note:> This call works differently from other parts of the inspection "
13039 "API.  You have to call C<guestfs_inspect_os>, then "
13040 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
13041 "this.  Listing applications is a significantly more difficult operation "
13042 "which requires access to the full filesystem.  Also note that unlike the "
13043 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
13044 "the libguestfs handle, this call actually reads parts of the mounted "
13045 "filesystems during the call."
13046 msgstr ""
13047
13048 # type: textblock
13049 #. type: textblock
13050 #: ../src/guestfs-actions.pod:3280 ../fish/guestfish-actions.pod:2230
13051 msgid ""
13052 "This returns an empty list if the inspection code was not able to determine "
13053 "the list of applications."
13054 msgstr ""
13055
13056 # type: textblock
13057 #. type: textblock
13058 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2233
13059 msgid "The application structure contains the following fields:"
13060 msgstr ""
13061
13062 # type: =item
13063 #. type: =item
13064 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2237
13065 msgid "C<app_name>"
13066 msgstr ""
13067
13068 # type: textblock
13069 #. type: textblock
13070 #: ../src/guestfs-actions.pod:3289 ../fish/guestfish-actions.pod:2239
13071 msgid ""
13072 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
13073 "guests, this is the package name."
13074 msgstr ""
13075
13076 # type: =item
13077 #. type: =item
13078 #: ../src/guestfs-actions.pod:3292 ../fish/guestfish-actions.pod:2242
13079 msgid "C<app_display_name>"
13080 msgstr ""
13081
13082 # type: textblock
13083 #. type: textblock
13084 #: ../src/guestfs-actions.pod:3294 ../fish/guestfish-actions.pod:2244
13085 msgid ""
13086 "The display name of the application, sometimes localized to the install "
13087 "language of the guest operating system."
13088 msgstr ""
13089
13090 # type: textblock
13091 #. type: textblock
13092 #: ../src/guestfs-actions.pod:3297 ../fish/guestfish-actions.pod:2247
13093 msgid ""
13094 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
13095 "to display something can use C<app_name> instead."
13096 msgstr ""
13097
13098 # type: =item
13099 #. type: =item
13100 #: ../src/guestfs-actions.pod:3300 ../fish/guestfish-actions.pod:2250
13101 msgid "C<app_epoch>"
13102 msgstr ""
13103
13104 # type: textblock
13105 #. type: textblock
13106 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2252
13107 msgid ""
13108 "For package managers which use epochs, this contains the epoch of the "
13109 "package (an integer).  If unavailable, this is returned as C<0>."
13110 msgstr ""
13111
13112 # type: =item
13113 #. type: =item
13114 #: ../src/guestfs-actions.pod:3305 ../fish/guestfish-actions.pod:2255
13115 msgid "C<app_version>"
13116 msgstr ""
13117
13118 # type: textblock
13119 #. type: textblock
13120 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2257
13121 msgid ""
13122 "The version string of the application or package.  If unavailable this is "
13123 "returned as an empty string C<\"\">."
13124 msgstr ""
13125
13126 # type: =item
13127 #. type: =item
13128 #: ../src/guestfs-actions.pod:3310 ../fish/guestfish-actions.pod:2260
13129 msgid "C<app_release>"
13130 msgstr ""
13131
13132 # type: textblock
13133 #. type: textblock
13134 #: ../src/guestfs-actions.pod:3312 ../fish/guestfish-actions.pod:2262
13135 msgid ""
13136 "The release string of the application or package, for package managers that "
13137 "use this.  If unavailable this is returned as an empty string C<\"\">."
13138 msgstr ""
13139
13140 # type: =item
13141 #. type: =item
13142 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2266
13143 msgid "C<app_install_path>"
13144 msgstr ""
13145
13146 # type: textblock
13147 #. type: textblock
13148 #: ../src/guestfs-actions.pod:3318 ../fish/guestfish-actions.pod:2268
13149 msgid ""
13150 "The installation path of the application (on operating systems such as "
13151 "Windows which use installation paths).  This path is in the format used by "
13152 "the guest operating system, it is not a libguestfs path."
13153 msgstr ""
13154
13155 # type: textblock
13156 #. type: textblock
13157 #: ../src/guestfs-actions.pod:3323 ../fish/guestfish-actions.pod:2273
13158 msgid "If unavailable this is returned as an empty string C<\"\">."
13159 msgstr ""
13160
13161 # type: =item
13162 #. type: =item
13163 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2275
13164 msgid "C<app_trans_path>"
13165 msgstr ""
13166
13167 # type: textblock
13168 #. type: textblock
13169 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2277
13170 msgid ""
13171 "The install path translated into a libguestfs path.  If unavailable this is "
13172 "returned as an empty string C<\"\">."
13173 msgstr ""
13174
13175 # type: =item
13176 #. type: =item
13177 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2280
13178 msgid "C<app_publisher>"
13179 msgstr ""
13180
13181 # type: textblock
13182 #. type: textblock
13183 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:2282
13184 msgid ""
13185 "The name of the publisher of the application, for package managers that use "
13186 "this.  If unavailable this is returned as an empty string C<\"\">."
13187 msgstr ""
13188
13189 # type: =item
13190 #. type: =item
13191 #: ../src/guestfs-actions.pod:3336 ../fish/guestfish-actions.pod:2286
13192 msgid "C<app_url>"
13193 msgstr ""
13194
13195 # type: textblock
13196 #. type: textblock
13197 #: ../src/guestfs-actions.pod:3338 ../fish/guestfish-actions.pod:2288
13198 msgid ""
13199 "The URL (eg. upstream URL) of the application.  If unavailable this is "
13200 "returned as an empty string C<\"\">."
13201 msgstr ""
13202
13203 # type: =item
13204 #. type: =item
13205 #: ../src/guestfs-actions.pod:3341 ../fish/guestfish-actions.pod:2291
13206 msgid "C<app_source_package>"
13207 msgstr ""
13208
13209 # type: textblock
13210 #. type: textblock
13211 #: ../src/guestfs-actions.pod:3343 ../fish/guestfish-actions.pod:2293
13212 msgid ""
13213 "For packaging systems which support this, the name of the source package.  "
13214 "If unavailable this is returned as an empty string C<\"\">."
13215 msgstr ""
13216
13217 # type: =item
13218 #. type: =item
13219 #: ../src/guestfs-actions.pod:3346 ../fish/guestfish-actions.pod:2296
13220 msgid "C<app_summary>"
13221 msgstr ""
13222
13223 # type: textblock
13224 #. type: textblock
13225 #: ../src/guestfs-actions.pod:3348 ../fish/guestfish-actions.pod:2298
13226 msgid ""
13227 "A short (usually one line) description of the application or package.  If "
13228 "unavailable this is returned as an empty string C<\"\">."
13229 msgstr ""
13230
13231 # type: =item
13232 #. type: =item
13233 #: ../src/guestfs-actions.pod:3351 ../fish/guestfish-actions.pod:2301
13234 msgid "C<app_description>"
13235 msgstr ""
13236
13237 # type: textblock
13238 #. type: textblock
13239 #: ../src/guestfs-actions.pod:3353 ../fish/guestfish-actions.pod:2303
13240 msgid ""
13241 "A longer description of the application or package.  If unavailable this is "
13242 "returned as an empty string C<\"\">."
13243 msgstr ""
13244
13245 # type: textblock
13246 #. type: textblock
13247 #: ../src/guestfs-actions.pod:3360
13248 msgid ""
13249 "This function returns a C<struct guestfs_application_list *>, or NULL if "
13250 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
13251 "after use>."
13252 msgstr ""
13253
13254 # type: textblock
13255 #. type: textblock
13256 #: ../src/guestfs-actions.pod:3364
13257 msgid "(Added in 1.7.8)"
13258 msgstr ""
13259
13260 # type: =head2
13261 #. type: =head2
13262 #: ../src/guestfs-actions.pod:3366
13263 msgid "guestfs_inspect_os"
13264 msgstr ""
13265
13266 # type: verbatim
13267 #. type: verbatim
13268 #: ../src/guestfs-actions.pod:3368
13269 #, no-wrap
13270 msgid ""
13271 " char **\n"
13272 " guestfs_inspect_os (guestfs_h *g);\n"
13273 "\n"
13274 msgstr ""
13275
13276 # type: textblock
13277 #. type: textblock
13278 #: ../src/guestfs-actions.pod:3371 ../fish/guestfish-actions.pod:2314
13279 msgid ""
13280 "This function uses other libguestfs functions and certain heuristics to "
13281 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
13282 "for operating systems."
13283 msgstr ""
13284
13285 # type: textblock
13286 #. type: textblock
13287 #: ../src/guestfs-actions.pod:3375 ../fish/guestfish-actions.pod:2318
13288 msgid "The list returned is empty if no operating systems were found."
13289 msgstr ""
13290
13291 # type: textblock
13292 #. type: textblock
13293 #: ../src/guestfs-actions.pod:3377 ../fish/guestfish-actions.pod:2320
13294 msgid ""
13295 "If one operating system was found, then this returns a list with a single "
13296 "element, which is the name of the root filesystem of this operating system.  "
13297 "It is also possible for this function to return a list containing more than "
13298 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
13299 "element being the root filesystem of one of the operating systems."
13300 msgstr ""
13301
13302 # type: textblock
13303 #. type: textblock
13304 #: ../src/guestfs-actions.pod:3384
13305 msgid ""
13306 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
13307 "functions in order to query further information about each operating system, "
13308 "such as the name and version."
13309 msgstr ""
13310
13311 # type: textblock
13312 #. type: textblock
13313 #: ../src/guestfs-actions.pod:3389
13314 msgid ""
13315 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
13316 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
13317 "the contents.  This should be called with no disks currently mounted.  The "
13318 "function may also use Augeas, so any existing Augeas handle will be closed."
13319 msgstr ""
13320
13321 # type: textblock
13322 #. type: textblock
13323 #: ../src/guestfs-actions.pod:3395 ../fish/guestfish-actions.pod:2338
13324 msgid ""
13325 "This function cannot decrypt encrypted disks.  The caller must do that first "
13326 "(supplying the necessary keys) if the disk is encrypted."
13327 msgstr ""
13328
13329 # type: textblock
13330 #. type: textblock
13331 #: ../src/guestfs-actions.pod:3401 ../src/guestfs-actions.pod:3732
13332 #: ../src/guestfs-actions.pod:3814
13333 msgid "See also C<guestfs_list_filesystems>."
13334 msgstr ""
13335
13336 # type: =head2
13337 #. type: =head2
13338 #: ../src/guestfs-actions.pod:3409
13339 msgid "guestfs_is_blockdev"
13340 msgstr ""
13341
13342 # type: verbatim
13343 #. type: verbatim
13344 #: ../src/guestfs-actions.pod:3411
13345 #, no-wrap
13346 msgid ""
13347 " int\n"
13348 " guestfs_is_blockdev (guestfs_h *g,\n"
13349 "                      const char *path);\n"
13350 "\n"
13351 msgstr ""
13352
13353 # type: textblock
13354 #. type: textblock
13355 #: ../src/guestfs-actions.pod:3415 ../fish/guestfish-actions.pod:2350
13356 msgid ""
13357 "This returns C<true> if and only if there is a block device with the given "
13358 "C<path> name."
13359 msgstr ""
13360
13361 # type: textblock
13362 #. type: textblock
13363 #: ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3447
13364 #: ../src/guestfs-actions.pod:3477 ../src/guestfs-actions.pod:3492
13365 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3564
13366 #: ../src/guestfs-actions.pod:3579
13367 msgid "See also C<guestfs_stat>."
13368 msgstr ""
13369
13370 # type: textblock
13371 #. type: textblock
13372 #: ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3451
13373 #: ../src/guestfs-actions.pod:3496 ../src/guestfs-actions.pod:3568
13374 #: ../src/guestfs-actions.pod:3583
13375 msgid "(Added in 1.5.10)"
13376 msgstr ""
13377
13378 # type: =head2
13379 #. type: =head2
13380 #: ../src/guestfs-actions.pod:3424
13381 msgid "guestfs_is_busy"
13382 msgstr ""
13383
13384 # type: verbatim
13385 #. type: verbatim
13386 #: ../src/guestfs-actions.pod:3426
13387 #, no-wrap
13388 msgid ""
13389 " int\n"
13390 " guestfs_is_busy (guestfs_h *g);\n"
13391 "\n"
13392 msgstr ""
13393
13394 # type: textblock
13395 #. type: textblock
13396 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2359
13397 msgid ""
13398 "This returns true iff this handle is busy processing a command (in the "
13399 "C<BUSY> state)."
13400 msgstr ""
13401
13402 # type: =head2
13403 #. type: =head2
13404 #: ../src/guestfs-actions.pod:3438
13405 msgid "guestfs_is_chardev"
13406 msgstr ""
13407
13408 # type: verbatim
13409 #. type: verbatim
13410 #: ../src/guestfs-actions.pod:3440
13411 #, no-wrap
13412 msgid ""
13413 " int\n"
13414 " guestfs_is_chardev (guestfs_h *g,\n"
13415 "                     const char *path);\n"
13416 "\n"
13417 msgstr ""
13418
13419 # type: textblock
13420 #. type: textblock
13421 #: ../src/guestfs-actions.pod:3444 ../fish/guestfish-actions.pod:2368
13422 msgid ""
13423 "This returns C<true> if and only if there is a character device with the "
13424 "given C<path> name."
13425 msgstr ""
13426
13427 # type: =head2
13428 #. type: =head2
13429 #: ../src/guestfs-actions.pod:3453
13430 msgid "guestfs_is_config"
13431 msgstr ""
13432
13433 # type: verbatim
13434 #. type: verbatim
13435 #: ../src/guestfs-actions.pod:3455
13436 #, no-wrap
13437 msgid ""
13438 " int\n"
13439 " guestfs_is_config (guestfs_h *g);\n"
13440 "\n"
13441 msgstr ""
13442
13443 # type: textblock
13444 #. type: textblock
13445 #: ../src/guestfs-actions.pod:3458 ../fish/guestfish-actions.pod:2377
13446 msgid ""
13447 "This returns true iff this handle is being configured (in the C<CONFIG> "
13448 "state)."
13449 msgstr ""
13450
13451 # type: =head2
13452 #. type: =head2
13453 #: ../src/guestfs-actions.pod:3467
13454 msgid "guestfs_is_dir"
13455 msgstr ""
13456
13457 # type: verbatim
13458 #. type: verbatim
13459 #: ../src/guestfs-actions.pod:3469
13460 #, no-wrap
13461 msgid ""
13462 " int\n"
13463 " guestfs_is_dir (guestfs_h *g,\n"
13464 "                 const char *path);\n"
13465 "\n"
13466 msgstr ""
13467
13468 # type: textblock
13469 #. type: textblock
13470 #: ../src/guestfs-actions.pod:3473 ../fish/guestfish-actions.pod:2386
13471 msgid ""
13472 "This returns C<true> if and only if there is a directory with the given "
13473 "C<path> name.  Note that it returns false for other objects like files."
13474 msgstr ""
13475
13476 # type: =head2
13477 #. type: =head2
13478 #: ../src/guestfs-actions.pod:3483
13479 msgid "guestfs_is_fifo"
13480 msgstr ""
13481
13482 # type: verbatim
13483 #. type: verbatim
13484 #: ../src/guestfs-actions.pod:3485
13485 #, no-wrap
13486 msgid ""
13487 " int\n"
13488 " guestfs_is_fifo (guestfs_h *g,\n"
13489 "                  const char *path);\n"
13490 "\n"
13491 msgstr ""
13492
13493 # type: textblock
13494 #. type: textblock
13495 #: ../src/guestfs-actions.pod:3489 ../fish/guestfish-actions.pod:2396
13496 msgid ""
13497 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
13498 "given C<path> name."
13499 msgstr ""
13500
13501 # type: =head2
13502 #. type: =head2
13503 #: ../src/guestfs-actions.pod:3498
13504 msgid "guestfs_is_file"
13505 msgstr ""
13506
13507 # type: verbatim
13508 #. type: verbatim
13509 #: ../src/guestfs-actions.pod:3500
13510 #, no-wrap
13511 msgid ""
13512 " int\n"
13513 " guestfs_is_file (guestfs_h *g,\n"
13514 "                  const char *path);\n"
13515 "\n"
13516 msgstr ""
13517
13518 # type: textblock
13519 #. type: textblock
13520 #: ../src/guestfs-actions.pod:3504 ../fish/guestfish-actions.pod:2405
13521 msgid ""
13522 "This returns C<true> if and only if there is a regular file with the given "
13523 "C<path> name.  Note that it returns false for other objects like directories."
13524 msgstr ""
13525
13526 # type: =head2
13527 #. type: =head2
13528 #: ../src/guestfs-actions.pod:3514
13529 msgid "guestfs_is_launching"
13530 msgstr ""
13531
13532 # type: verbatim
13533 #. type: verbatim
13534 #: ../src/guestfs-actions.pod:3516
13535 #, no-wrap
13536 msgid ""
13537 " int\n"
13538 " guestfs_is_launching (guestfs_h *g);\n"
13539 "\n"
13540 msgstr ""
13541
13542 # type: textblock
13543 #. type: textblock
13544 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2415
13545 msgid ""
13546 "This returns true iff this handle is launching the subprocess (in the "
13547 "C<LAUNCHING> state)."
13548 msgstr ""
13549
13550 # type: =head2
13551 #. type: =head2
13552 #: ../src/guestfs-actions.pod:3528
13553 msgid "guestfs_is_lv"
13554 msgstr ""
13555
13556 # type: verbatim
13557 #. type: verbatim
13558 #: ../src/guestfs-actions.pod:3530
13559 #, no-wrap
13560 msgid ""
13561 " int\n"
13562 " guestfs_is_lv (guestfs_h *g,\n"
13563 "                const char *device);\n"
13564 "\n"
13565 msgstr ""
13566
13567 # type: textblock
13568 #. type: textblock
13569 #: ../src/guestfs-actions.pod:3534 ../fish/guestfish-actions.pod:2424
13570 msgid ""
13571 "This command tests whether C<device> is a logical volume, and returns true "
13572 "iff this is the case."
13573 msgstr ""
13574
13575 # type: =head2
13576 #. type: =head2
13577 #: ../src/guestfs-actions.pod:3541
13578 msgid "guestfs_is_ready"
13579 msgstr ""
13580
13581 # type: verbatim
13582 #. type: verbatim
13583 #: ../src/guestfs-actions.pod:3543
13584 #, no-wrap
13585 msgid ""
13586 " int\n"
13587 " guestfs_is_ready (guestfs_h *g);\n"
13588 "\n"
13589 msgstr ""
13590
13591 # type: textblock
13592 #. type: textblock
13593 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2431
13594 msgid ""
13595 "This returns true iff this handle is ready to accept commands (in the "
13596 "C<READY> state)."
13597 msgstr ""
13598
13599 # type: =head2
13600 #. type: =head2
13601 #: ../src/guestfs-actions.pod:3555
13602 msgid "guestfs_is_socket"
13603 msgstr ""
13604
13605 # type: verbatim
13606 #. type: verbatim
13607 #: ../src/guestfs-actions.pod:3557
13608 #, no-wrap
13609 msgid ""
13610 " int\n"
13611 " guestfs_is_socket (guestfs_h *g,\n"
13612 "                    const char *path);\n"
13613 "\n"
13614 msgstr ""
13615
13616 # type: textblock
13617 #. type: textblock
13618 #: ../src/guestfs-actions.pod:3561 ../fish/guestfish-actions.pod:2440
13619 msgid ""
13620 "This returns C<true> if and only if there is a Unix domain socket with the "
13621 "given C<path> name."
13622 msgstr ""
13623
13624 # type: =head2
13625 #. type: =head2
13626 #: ../src/guestfs-actions.pod:3570
13627 msgid "guestfs_is_symlink"
13628 msgstr ""
13629
13630 # type: verbatim
13631 #. type: verbatim
13632 #: ../src/guestfs-actions.pod:3572
13633 #, no-wrap
13634 msgid ""
13635 " int\n"
13636 " guestfs_is_symlink (guestfs_h *g,\n"
13637 "                     const char *path);\n"
13638 "\n"
13639 msgstr ""
13640
13641 # type: textblock
13642 #. type: textblock
13643 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2449
13644 msgid ""
13645 "This returns C<true> if and only if there is a symbolic link with the given "
13646 "C<path> name."
13647 msgstr ""
13648
13649 #. type: =head2
13650 #: ../src/guestfs-actions.pod:3585
13651 msgid "guestfs_is_zero"
13652 msgstr ""
13653
13654 #. type: verbatim
13655 #: ../src/guestfs-actions.pod:3587
13656 #, no-wrap
13657 msgid ""
13658 " int\n"
13659 " guestfs_is_zero (guestfs_h *g,\n"
13660 "                  const char *path);\n"
13661 "\n"
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../src/guestfs-actions.pod:3591 ../fish/guestfish-actions.pod:2458
13666 msgid ""
13667 "This returns true iff the file exists and the file is empty or it contains "
13668 "all zero bytes."
13669 msgstr ""
13670
13671 #. type: textblock
13672 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610
13673 msgid "(Added in 1.11.8)"
13674 msgstr ""
13675
13676 #. type: =head2
13677 #: ../src/guestfs-actions.pod:3598
13678 msgid "guestfs_is_zero_device"
13679 msgstr ""
13680
13681 #. type: verbatim
13682 #: ../src/guestfs-actions.pod:3600
13683 #, no-wrap
13684 msgid ""
13685 " int\n"
13686 " guestfs_is_zero_device (guestfs_h *g,\n"
13687 "                         const char *device);\n"
13688 "\n"
13689 msgstr ""
13690
13691 #. type: textblock
13692 #: ../src/guestfs-actions.pod:3604 ../fish/guestfish-actions.pod:2465
13693 msgid "This returns true iff the device exists and contains all zero bytes."
13694 msgstr ""
13695
13696 #. type: textblock
13697 #: ../src/guestfs-actions.pod:3606 ../fish/guestfish-actions.pod:2467
13698 msgid "Note that for large devices this can take a long time to run."
13699 msgstr ""
13700
13701 # type: =head2
13702 #. type: =head2
13703 #: ../src/guestfs-actions.pod:3612
13704 msgid "guestfs_kill_subprocess"
13705 msgstr ""
13706
13707 # type: verbatim
13708 #. type: verbatim
13709 #: ../src/guestfs-actions.pod:3614
13710 #, no-wrap
13711 msgid ""
13712 " int\n"
13713 " guestfs_kill_subprocess (guestfs_h *g);\n"
13714 "\n"
13715 msgstr ""
13716
13717 # type: textblock
13718 #. type: textblock
13719 #: ../src/guestfs-actions.pod:3617 ../fish/guestfish-actions.pod:2473
13720 msgid "This kills the qemu subprocess.  You should never need to call this."
13721 msgstr ""
13722
13723 # type: =head2
13724 #. type: =head2
13725 #: ../src/guestfs-actions.pod:3623
13726 msgid "guestfs_launch"
13727 msgstr ""
13728
13729 # type: verbatim
13730 #. type: verbatim
13731 #: ../src/guestfs-actions.pod:3625
13732 #, no-wrap
13733 msgid ""
13734 " int\n"
13735 " guestfs_launch (guestfs_h *g);\n"
13736 "\n"
13737 msgstr ""
13738
13739 # type: textblock
13740 #. type: textblock
13741 #: ../src/guestfs-actions.pod:3628 ../fish/guestfish-actions.pod:2481
13742 msgid ""
13743 "Internally libguestfs is implemented by running a virtual machine using "
13744 "L<qemu(1)>."
13745 msgstr ""
13746
13747 # type: textblock
13748 #. type: textblock
13749 #: ../src/guestfs-actions.pod:3631 ../fish/guestfish-actions.pod:2484
13750 msgid ""
13751 "You should call this after configuring the handle (eg. adding drives) but "
13752 "before performing any actions."
13753 msgstr ""
13754
13755 # type: =head2
13756 #. type: =head2
13757 #: ../src/guestfs-actions.pod:3643
13758 msgid "guestfs_lchown"
13759 msgstr ""
13760
13761 # type: verbatim
13762 #. type: verbatim
13763 #: ../src/guestfs-actions.pod:3645
13764 #, no-wrap
13765 msgid ""
13766 " int\n"
13767 " guestfs_lchown (guestfs_h *g,\n"
13768 "                 int owner,\n"
13769 "                 int group,\n"
13770 "                 const char *path);\n"
13771 "\n"
13772 msgstr ""
13773
13774 # type: textblock
13775 #. type: textblock
13776 #: ../src/guestfs-actions.pod:3651
13777 msgid ""
13778 "Change the file owner to C<owner> and group to C<group>.  This is like "
13779 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13780 "changed, not the target."
13781 msgstr ""
13782
13783 # type: =head2
13784 #. type: =head2
13785 #: ../src/guestfs-actions.pod:3663
13786 msgid "guestfs_lgetxattr"
13787 msgstr ""
13788
13789 # type: verbatim
13790 #. type: verbatim
13791 #: ../src/guestfs-actions.pod:3665
13792 #, no-wrap
13793 msgid ""
13794 " char *\n"
13795 " guestfs_lgetxattr (guestfs_h *g,\n"
13796 "                    const char *path,\n"
13797 "                    const char *name,\n"
13798 "                    size_t *size_r);\n"
13799 "\n"
13800 msgstr ""
13801
13802 # type: textblock
13803 #. type: textblock
13804 #: ../src/guestfs-actions.pod:3671 ../fish/guestfish-actions.pod:2503
13805 msgid ""
13806 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13807 "is a symlink, then this call returns an extended attribute from the symlink."
13808 msgstr ""
13809
13810 # type: textblock
13811 #. type: textblock
13812 #: ../src/guestfs-actions.pod:3685
13813 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13814 msgstr ""
13815
13816 # type: =head2
13817 #. type: =head2
13818 #: ../src/guestfs-actions.pod:3693
13819 msgid "guestfs_lgetxattrs"
13820 msgstr ""
13821
13822 # type: verbatim
13823 #. type: verbatim
13824 #: ../src/guestfs-actions.pod:3695
13825 #, no-wrap
13826 msgid ""
13827 " struct guestfs_xattr_list *\n"
13828 " guestfs_lgetxattrs (guestfs_h *g,\n"
13829 "                     const char *path);\n"
13830 "\n"
13831 msgstr ""
13832
13833 # type: textblock
13834 #. type: textblock
13835 #: ../src/guestfs-actions.pod:3699
13836 msgid ""
13837 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13838 "then it returns the extended attributes of the link itself."
13839 msgstr ""
13840
13841 #. type: =head2
13842 #: ../src/guestfs-actions.pod:3709
13843 msgid "guestfs_list_9p"
13844 msgstr ""
13845
13846 #. type: verbatim
13847 #: ../src/guestfs-actions.pod:3711
13848 #, no-wrap
13849 msgid ""
13850 " char **\n"
13851 " guestfs_list_9p (guestfs_h *g);\n"
13852 "\n"
13853 msgstr ""
13854
13855 #. type: textblock
13856 #: ../src/guestfs-actions.pod:3714 ../fish/guestfish-actions.pod:2531
13857 msgid ""
13858 "List all 9p filesystems attached to the guest.  A list of mount tags is "
13859 "returned."
13860 msgstr ""
13861
13862 # type: =head2
13863 #. type: =head2
13864 #: ../src/guestfs-actions.pod:3723
13865 msgid "guestfs_list_devices"
13866 msgstr ""
13867
13868 # type: verbatim
13869 #. type: verbatim
13870 #: ../src/guestfs-actions.pod:3725
13871 #, no-wrap
13872 msgid ""
13873 " char **\n"
13874 " guestfs_list_devices (guestfs_h *g);\n"
13875 "\n"
13876 msgstr ""
13877
13878 # type: textblock
13879 #. type: textblock
13880 #: ../src/guestfs-actions.pod:3728 ../fish/guestfish-actions.pod:2538
13881 msgid "List all the block devices."
13882 msgstr ""
13883
13884 # type: textblock
13885 #. type: textblock
13886 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2540
13887 msgid "The full block device names are returned, eg. C</dev/sda>."
13888 msgstr ""
13889
13890 #. type: =head2
13891 #: ../src/guestfs-actions.pod:3740
13892 msgid "guestfs_list_dm_devices"
13893 msgstr ""
13894
13895 #. type: verbatim
13896 #: ../src/guestfs-actions.pod:3742
13897 #, no-wrap
13898 msgid ""
13899 " char **\n"
13900 " guestfs_list_dm_devices (guestfs_h *g);\n"
13901 "\n"
13902 msgstr ""
13903
13904 #. type: textblock
13905 #: ../src/guestfs-actions.pod:3745 ../fish/guestfish-actions.pod:2548
13906 msgid "List all device mapper devices."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../src/guestfs-actions.pod:3747
13911 msgid ""
13912 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
13913 "previous call to C<guestfs_luks_open>."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../src/guestfs-actions.pod:3750
13918 msgid ""
13919 "Device mapper devices which correspond to logical volumes are I<not> "
13920 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
13921 "volumes."
13922 msgstr ""
13923
13924 #. type: textblock
13925 #: ../src/guestfs-actions.pod:3758 ../src/guestfs-actions.pod:5214
13926 msgid "(Added in 1.11.15)"
13927 msgstr ""
13928
13929 # type: =head2
13930 #. type: =head2
13931 #: ../src/guestfs-actions.pod:3760
13932 msgid "guestfs_list_filesystems"
13933 msgstr ""
13934
13935 # type: verbatim
13936 #. type: verbatim
13937 #: ../src/guestfs-actions.pod:3762
13938 #, no-wrap
13939 msgid ""
13940 " char **\n"
13941 " guestfs_list_filesystems (guestfs_h *g);\n"
13942 "\n"
13943 msgstr ""
13944
13945 # type: textblock
13946 #. type: textblock
13947 #: ../src/guestfs-actions.pod:3765 ../fish/guestfish-actions.pod:2561
13948 msgid ""
13949 "This inspection command looks for filesystems on partitions, block devices "
13950 "and logical volumes, returning a list of devices containing filesystems and "
13951 "their type."
13952 msgstr ""
13953
13954 # type: textblock
13955 #. type: textblock
13956 #: ../src/guestfs-actions.pod:3769 ../fish/guestfish-actions.pod:2565
13957 msgid ""
13958 "The return value is a hash, where the keys are the devices containing "
13959 "filesystems, and the values are the filesystem types.  For example:"
13960 msgstr ""
13961
13962 # type: verbatim
13963 #. type: verbatim
13964 #: ../src/guestfs-actions.pod:3773 ../fish/guestfish-actions.pod:2569
13965 #, no-wrap
13966 msgid ""
13967 " \"/dev/sda1\" => \"ntfs\"\n"
13968 " \"/dev/sda2\" => \"ext2\"\n"
13969 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13970 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13971 "\n"
13972 msgstr ""
13973
13974 # type: textblock
13975 #. type: textblock
13976 #: ../src/guestfs-actions.pod:3778 ../fish/guestfish-actions.pod:2574
13977 msgid ""
13978 "The value can have the special value \"unknown\", meaning the content of the "
13979 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13980 msgstr ""
13981
13982 # type: textblock
13983 #. type: textblock
13984 #: ../src/guestfs-actions.pod:3782
13985 msgid ""
13986 "This command runs other libguestfs commands, which might include "
13987 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13988 "soon after launch and only when nothing is mounted."
13989 msgstr ""
13990
13991 # type: textblock
13992 #. type: textblock
13993 #: ../src/guestfs-actions.pod:3786
13994 msgid ""
13995 "Not all of the filesystems returned will be mountable.  In particular, swap "
13996 "partitions are returned in the list.  Also this command does not check that "
13997 "each filesystem found is valid and mountable, and some filesystems might be "
13998 "mountable but require special options.  Filesystems may not all belong to a "
13999 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
14000 msgstr ""
14001
14002 # type: textblock
14003 #. type: textblock
14004 #: ../src/guestfs-actions.pod:3800 ../src/guestfs-actions.pod:5569
14005 msgid "(Added in 1.5.15)"
14006 msgstr ""
14007
14008 # type: =head2
14009 #. type: =head2
14010 #: ../src/guestfs-actions.pod:3802
14011 msgid "guestfs_list_partitions"
14012 msgstr ""
14013
14014 # type: verbatim
14015 #. type: verbatim
14016 #: ../src/guestfs-actions.pod:3804
14017 #, no-wrap
14018 msgid ""
14019 " char **\n"
14020 " guestfs_list_partitions (guestfs_h *g);\n"
14021 "\n"
14022 msgstr ""
14023
14024 # type: textblock
14025 #. type: textblock
14026 #: ../src/guestfs-actions.pod:3807 ../fish/guestfish-actions.pod:2594
14027 msgid "List all the partitions detected on all block devices."
14028 msgstr ""
14029
14030 # type: textblock
14031 #. type: textblock
14032 #: ../src/guestfs-actions.pod:3809 ../fish/guestfish-actions.pod:2596
14033 msgid "The full partition device names are returned, eg. C</dev/sda1>"
14034 msgstr ""
14035
14036 # type: textblock
14037 #. type: textblock
14038 #: ../src/guestfs-actions.pod:3811
14039 msgid ""
14040 "This does not return logical volumes.  For that you will need to call "
14041 "C<guestfs_lvs>."
14042 msgstr ""
14043
14044 # type: =head2
14045 #. type: =head2
14046 #: ../src/guestfs-actions.pod:3822
14047 msgid "guestfs_ll"
14048 msgstr ""
14049
14050 # type: verbatim
14051 #. type: verbatim
14052 #: ../src/guestfs-actions.pod:3824
14053 #, no-wrap
14054 msgid ""
14055 " char *\n"
14056 " guestfs_ll (guestfs_h *g,\n"
14057 "             const char *directory);\n"
14058 "\n"
14059 msgstr ""
14060
14061 # type: textblock
14062 #. type: textblock
14063 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2607
14064 msgid ""
14065 "List the files in C<directory> (relative to the root directory, there is no "
14066 "cwd) in the format of 'ls -la'."
14067 msgstr ""
14068
14069 # type: textblock
14070 #. type: textblock
14071 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2610
14072 msgid ""
14073 "This command is mostly useful for interactive sessions.  It is I<not> "
14074 "intended that you try to parse the output string."
14075 msgstr ""
14076
14077 # type: =head2
14078 #. type: =head2
14079 #: ../src/guestfs-actions.pod:3839
14080 msgid "guestfs_ln"
14081 msgstr ""
14082
14083 # type: verbatim
14084 #. type: verbatim
14085 #: ../src/guestfs-actions.pod:3841
14086 #, no-wrap
14087 msgid ""
14088 " int\n"
14089 " guestfs_ln (guestfs_h *g,\n"
14090 "             const char *target,\n"
14091 "             const char *linkname);\n"
14092 "\n"
14093 msgstr ""
14094
14095 # type: textblock
14096 #. type: textblock
14097 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2617
14098 msgid "This command creates a hard link using the C<ln> command."
14099 msgstr ""
14100
14101 # type: =head2
14102 #. type: =head2
14103 #: ../src/guestfs-actions.pod:3852
14104 msgid "guestfs_ln_f"
14105 msgstr ""
14106
14107 # type: verbatim
14108 #. type: verbatim
14109 #: ../src/guestfs-actions.pod:3854
14110 #, no-wrap
14111 msgid ""
14112 " int\n"
14113 " guestfs_ln_f (guestfs_h *g,\n"
14114 "               const char *target,\n"
14115 "               const char *linkname);\n"
14116 "\n"
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../src/guestfs-actions.pod:3859 ../fish/guestfish-actions.pod:2623
14121 msgid ""
14122 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
14123 "option removes the link (C<linkname>) if it exists already."
14124 msgstr ""
14125
14126 # type: =head2
14127 #. type: =head2
14128 #: ../src/guestfs-actions.pod:3866
14129 msgid "guestfs_ln_s"
14130 msgstr ""
14131
14132 # type: verbatim
14133 #. type: verbatim
14134 #: ../src/guestfs-actions.pod:3868
14135 #, no-wrap
14136 msgid ""
14137 " int\n"
14138 " guestfs_ln_s (guestfs_h *g,\n"
14139 "               const char *target,\n"
14140 "               const char *linkname);\n"
14141 "\n"
14142 msgstr ""
14143
14144 # type: textblock
14145 #. type: textblock
14146 #: ../src/guestfs-actions.pod:3873 ../fish/guestfish-actions.pod:2630
14147 msgid "This command creates a symbolic link using the C<ln -s> command."
14148 msgstr ""
14149
14150 # type: =head2
14151 #. type: =head2
14152 #: ../src/guestfs-actions.pod:3879
14153 msgid "guestfs_ln_sf"
14154 msgstr ""
14155
14156 # type: verbatim
14157 #. type: verbatim
14158 #: ../src/guestfs-actions.pod:3881
14159 #, no-wrap
14160 msgid ""
14161 " int\n"
14162 " guestfs_ln_sf (guestfs_h *g,\n"
14163 "                const char *target,\n"
14164 "                const char *linkname);\n"
14165 "\n"
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../src/guestfs-actions.pod:3886 ../fish/guestfish-actions.pod:2636
14170 msgid ""
14171 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
14172 "option removes the link (C<linkname>) if it exists already."
14173 msgstr ""
14174
14175 # type: =head2
14176 #. type: =head2
14177 #: ../src/guestfs-actions.pod:3893
14178 msgid "guestfs_lremovexattr"
14179 msgstr ""
14180
14181 # type: verbatim
14182 #. type: verbatim
14183 #: ../src/guestfs-actions.pod:3895
14184 #, no-wrap
14185 msgid ""
14186 " int\n"
14187 " guestfs_lremovexattr (guestfs_h *g,\n"
14188 "                       const char *xattr,\n"
14189 "                       const char *path);\n"
14190 "\n"
14191 msgstr ""
14192
14193 # type: textblock
14194 #. type: textblock
14195 #: ../src/guestfs-actions.pod:3900
14196 msgid ""
14197 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
14198 "link, then it removes an extended attribute of the link itself."
14199 msgstr ""
14200
14201 # type: =head2
14202 #. type: =head2
14203 #: ../src/guestfs-actions.pod:3908
14204 msgid "guestfs_ls"
14205 msgstr ""
14206
14207 # type: verbatim
14208 #. type: verbatim
14209 #: ../src/guestfs-actions.pod:3910
14210 #, no-wrap
14211 msgid ""
14212 " char **\n"
14213 " guestfs_ls (guestfs_h *g,\n"
14214 "             const char *directory);\n"
14215 "\n"
14216 msgstr ""
14217
14218 # type: textblock
14219 #. type: textblock
14220 #: ../src/guestfs-actions.pod:3914 ../fish/guestfish-actions.pod:2651
14221 msgid ""
14222 "List the files in C<directory> (relative to the root directory, there is no "
14223 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
14224 msgstr ""
14225
14226 # type: textblock
14227 #. type: textblock
14228 #: ../src/guestfs-actions.pod:3918
14229 msgid ""
14230 "This command is mostly useful for interactive sessions.  Programs should "
14231 "probably use C<guestfs_readdir> instead."
14232 msgstr ""
14233
14234 # type: =head2
14235 #. type: =head2
14236 #: ../src/guestfs-actions.pod:3927
14237 msgid "guestfs_lsetxattr"
14238 msgstr ""
14239
14240 # type: verbatim
14241 #. type: verbatim
14242 #: ../src/guestfs-actions.pod:3929
14243 #, no-wrap
14244 msgid ""
14245 " int\n"
14246 " guestfs_lsetxattr (guestfs_h *g,\n"
14247 "                    const char *xattr,\n"
14248 "                    const char *val,\n"
14249 "                    int vallen,\n"
14250 "                    const char *path);\n"
14251 "\n"
14252 msgstr ""
14253
14254 # type: textblock
14255 #. type: textblock
14256 #: ../src/guestfs-actions.pod:3936
14257 msgid ""
14258 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
14259 "then it sets an extended attribute of the link itself."
14260 msgstr ""
14261
14262 # type: =head2
14263 #. type: =head2
14264 #: ../src/guestfs-actions.pod:3944
14265 msgid "guestfs_lstat"
14266 msgstr ""
14267
14268 # type: verbatim
14269 #. type: verbatim
14270 #: ../src/guestfs-actions.pod:3946
14271 #, no-wrap
14272 msgid ""
14273 " struct guestfs_stat *\n"
14274 " guestfs_lstat (guestfs_h *g,\n"
14275 "                const char *path);\n"
14276 "\n"
14277 msgstr ""
14278
14279 # type: textblock
14280 #. type: textblock
14281 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:6721
14282 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4472
14283 msgid "Returns file information for the given C<path>."
14284 msgstr ""
14285
14286 # type: textblock
14287 #. type: textblock
14288 #: ../src/guestfs-actions.pod:3952
14289 msgid ""
14290 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
14291 "link, then the link is stat-ed, not the file it refers to."
14292 msgstr ""
14293
14294 # type: textblock
14295 #. type: textblock
14296 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2676
14297 msgid "This is the same as the C<lstat(2)> system call."
14298 msgstr ""
14299
14300 # type: textblock
14301 #. type: textblock
14302 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:6725
14303 msgid ""
14304 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
14305 "error.  I<The caller must call C<guestfs_free_stat> after use>."
14306 msgstr ""
14307
14308 # type: textblock
14309 #. type: textblock
14310 #: ../src/guestfs-actions.pod:3962 ../src/guestfs-actions.pod:6729
14311 #: ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:7128
14312 msgid "(Added in 0.9.2)"
14313 msgstr ""
14314
14315 # type: =head2
14316 #. type: =head2
14317 #: ../src/guestfs-actions.pod:3964
14318 msgid "guestfs_lstatlist"
14319 msgstr ""
14320
14321 # type: verbatim
14322 #. type: verbatim
14323 #: ../src/guestfs-actions.pod:3966
14324 #, no-wrap
14325 msgid ""
14326 " struct guestfs_stat_list *\n"
14327 " guestfs_lstatlist (guestfs_h *g,\n"
14328 "                    const char *path,\n"
14329 "                    char *const *names);\n"
14330 "\n"
14331 msgstr ""
14332
14333 # type: textblock
14334 #. type: textblock
14335 #: ../src/guestfs-actions.pod:3971
14336 msgid ""
14337 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
14338 "files, where all files are in the directory C<path>.  C<names> is the list "
14339 "of files from this directory."
14340 msgstr ""
14341
14342 # type: textblock
14343 #. type: textblock
14344 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2686
14345 msgid ""
14346 "On return you get a list of stat structs, with a one-to-one correspondence "
14347 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
14348 "then the C<ino> field of that structure is set to C<-1>."
14349 msgstr ""
14350
14351 # type: textblock
14352 #. type: textblock
14353 #: ../src/guestfs-actions.pod:3980
14354 msgid ""
14355 "This call is intended for programs that want to efficiently list a directory "
14356 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
14357 "for a similarly efficient call for getting extended attributes.  Very long "
14358 "directory listings might cause the protocol message size to be exceeded, "
14359 "causing this call to fail.  The caller must split up such requests into "
14360 "smaller groups of names."
14361 msgstr ""
14362
14363 # type: textblock
14364 #. type: textblock
14365 #: ../src/guestfs-actions.pod:3988
14366 msgid ""
14367 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
14368 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
14369 msgstr ""
14370
14371 # type: =head2
14372 #. type: =head2
14373 #: ../src/guestfs-actions.pod:3994
14374 msgid "guestfs_luks_add_key"
14375 msgstr ""
14376
14377 # type: verbatim
14378 #. type: verbatim
14379 #: ../src/guestfs-actions.pod:3996
14380 #, no-wrap
14381 msgid ""
14382 " int\n"
14383 " guestfs_luks_add_key (guestfs_h *g,\n"
14384 "                       const char *device,\n"
14385 "                       const char *key,\n"
14386 "                       const char *newkey,\n"
14387 "                       int keyslot);\n"
14388 "\n"
14389 msgstr ""
14390
14391 # type: textblock
14392 #. type: textblock
14393 #: ../src/guestfs-actions.pod:4003 ../fish/guestfish-actions.pod:2703
14394 msgid ""
14395 "This command adds a new key on LUKS device C<device>.  C<key> is any "
14396 "existing key, and is used to access the device.  C<newkey> is the new key to "
14397 "add.  C<keyslot> is the key slot that will be replaced."
14398 msgstr ""
14399
14400 # type: textblock
14401 #. type: textblock
14402 #: ../src/guestfs-actions.pod:4008
14403 msgid ""
14404 "Note that if C<keyslot> already contains a key, then this command will "
14405 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
14406 msgstr ""
14407
14408 # type: textblock
14409 #. type: textblock
14410 #: ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4054
14411 #: ../src/guestfs-actions.pod:4077 ../src/guestfs-actions.pod:4097
14412 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151
14413 msgid ""
14414 "This function takes a key or passphrase parameter which could contain "
14415 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
14416 "information."
14417 msgstr ""
14418
14419 # type: textblock
14420 #. type: textblock
14421 #: ../src/guestfs-actions.pod:4018 ../src/guestfs-actions.pod:4058
14422 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4101
14423 msgid "(Added in 1.5.2)"
14424 msgstr ""
14425
14426 # type: =head2
14427 #. type: =head2
14428 #: ../src/guestfs-actions.pod:4020
14429 msgid "guestfs_luks_close"
14430 msgstr ""
14431
14432 # type: verbatim
14433 #. type: verbatim
14434 #: ../src/guestfs-actions.pod:4022
14435 #, no-wrap
14436 msgid ""
14437 " int\n"
14438 " guestfs_luks_close (guestfs_h *g,\n"
14439 "                     const char *device);\n"
14440 "\n"
14441 msgstr ""
14442
14443 # type: textblock
14444 #. type: textblock
14445 #: ../src/guestfs-actions.pod:4026
14446 msgid ""
14447 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
14448 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
14449 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
14450 "underlying block device."
14451 msgstr ""
14452
14453 # type: textblock
14454 #. type: textblock
14455 #: ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4136
14456 #: ../src/guestfs-actions.pod:4155 ../src/guestfs-actions.pod:4205
14457 #: ../src/guestfs-actions.pod:4253
14458 msgid "(Added in 1.5.1)"
14459 msgstr ""
14460
14461 # type: =head2
14462 #. type: =head2
14463 #: ../src/guestfs-actions.pod:4036
14464 msgid "guestfs_luks_format"
14465 msgstr ""
14466
14467 # type: verbatim
14468 #. type: verbatim
14469 #: ../src/guestfs-actions.pod:4038
14470 #, no-wrap
14471 msgid ""
14472 " int\n"
14473 " guestfs_luks_format (guestfs_h *g,\n"
14474 "                      const char *device,\n"
14475 "                      const char *key,\n"
14476 "                      int keyslot);\n"
14477 "\n"
14478 msgstr ""
14479
14480 # type: textblock
14481 #. type: textblock
14482 #: ../src/guestfs-actions.pod:4044 ../fish/guestfish-actions.pod:2729
14483 msgid ""
14484 "This command erases existing data on C<device> and formats the device as a "
14485 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
14486 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
14487 msgstr ""
14488
14489 # type: textblock
14490 #. type: textblock
14491 #: ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4074
14492 #: ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:5320
14493 #: ../src/guestfs-actions.pod:6102 ../src/guestfs-actions.pod:6528
14494 #: ../src/guestfs-actions.pod:6558 ../src/guestfs-actions.pod:6591
14495 #: ../src/guestfs-actions.pod:7787 ../fish/guestfish-actions.pod:2737
14496 #: ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2837
14497 #: ../fish/guestfish-actions.pod:3498 ../fish/guestfish-actions.pod:4018
14498 #: ../fish/guestfish-actions.pod:4343 ../fish/guestfish-actions.pod:4366
14499 #: ../fish/guestfish-actions.pod:4388 ../fish/guestfish-actions.pod:5126
14500 msgid ""
14501 "B<This command is dangerous.  Without careful use you can easily destroy all "
14502 "your data>."
14503 msgstr ""
14504
14505 # type: =head2
14506 #. type: =head2
14507 #: ../src/guestfs-actions.pod:4060
14508 msgid "guestfs_luks_format_cipher"
14509 msgstr ""
14510
14511 # type: verbatim
14512 #. type: verbatim
14513 #: ../src/guestfs-actions.pod:4062
14514 #, no-wrap
14515 msgid ""
14516 " int\n"
14517 " guestfs_luks_format_cipher (guestfs_h *g,\n"
14518 "                             const char *device,\n"
14519 "                             const char *key,\n"
14520 "                             int keyslot,\n"
14521 "                             const char *cipher);\n"
14522 "\n"
14523 msgstr ""
14524
14525 # type: textblock
14526 #. type: textblock
14527 #: ../src/guestfs-actions.pod:4069
14528 msgid ""
14529 "This command is the same as C<guestfs_luks_format> but it also allows you to "
14530 "set the C<cipher> used."
14531 msgstr ""
14532
14533 # type: =head2
14534 #. type: =head2
14535 #: ../src/guestfs-actions.pod:4083
14536 msgid "guestfs_luks_kill_slot"
14537 msgstr ""
14538
14539 # type: verbatim
14540 #. type: verbatim
14541 #: ../src/guestfs-actions.pod:4085
14542 #, no-wrap
14543 msgid ""
14544 " int\n"
14545 " guestfs_luks_kill_slot (guestfs_h *g,\n"
14546 "                         const char *device,\n"
14547 "                         const char *key,\n"
14548 "                         int keyslot);\n"
14549 "\n"
14550 msgstr ""
14551
14552 # type: textblock
14553 #. type: textblock
14554 #: ../src/guestfs-actions.pod:4091 ../fish/guestfish-actions.pod:2757
14555 msgid ""
14556 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
14557 "device C<device>.  C<key> must be one of the I<other> keys."
14558 msgstr ""
14559
14560 # type: =head2
14561 #. type: =head2
14562 #: ../src/guestfs-actions.pod:4103
14563 msgid "guestfs_luks_open"
14564 msgstr ""
14565
14566 # type: verbatim
14567 #. type: verbatim
14568 #: ../src/guestfs-actions.pod:4105
14569 #, no-wrap
14570 msgid ""
14571 " int\n"
14572 " guestfs_luks_open (guestfs_h *g,\n"
14573 "                    const char *device,\n"
14574 "                    const char *key,\n"
14575 "                    const char *mapname);\n"
14576 "\n"
14577 msgstr ""
14578
14579 # type: textblock
14580 #. type: textblock
14581 #: ../src/guestfs-actions.pod:4111 ../fish/guestfish-actions.pod:2768
14582 msgid ""
14583 "This command opens a block device which has been encrypted according to the "
14584 "Linux Unified Key Setup (LUKS) standard."
14585 msgstr ""
14586
14587 # type: textblock
14588 #. type: textblock
14589 #: ../src/guestfs-actions.pod:4114 ../fish/guestfish-actions.pod:2771
14590 msgid "C<device> is the encrypted block device or partition."
14591 msgstr ""
14592
14593 # type: textblock
14594 #. type: textblock
14595 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2773
14596 msgid ""
14597 "The caller must supply one of the keys associated with the LUKS block "
14598 "device, in the C<key> parameter."
14599 msgstr ""
14600
14601 # type: textblock
14602 #. type: textblock
14603 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2776
14604 msgid ""
14605 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
14606 "writes to this block device are decrypted from and encrypted to the "
14607 "underlying C<device> respectively."
14608 msgstr ""
14609
14610 # type: textblock
14611 #. type: textblock
14612 #: ../src/guestfs-actions.pod:4123
14613 msgid ""
14614 "If this block device contains LVM volume groups, then calling "
14615 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
14616 "visible."
14617 msgstr ""
14618
14619 #. type: textblock
14620 #: ../src/guestfs-actions.pod:4127
14621 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
14622 msgstr ""
14623
14624 # type: =head2
14625 #. type: =head2
14626 #: ../src/guestfs-actions.pod:4138
14627 msgid "guestfs_luks_open_ro"
14628 msgstr ""
14629
14630 # type: verbatim
14631 #. type: verbatim
14632 #: ../src/guestfs-actions.pod:4140
14633 #, no-wrap
14634 msgid ""
14635 " int\n"
14636 " guestfs_luks_open_ro (guestfs_h *g,\n"
14637 "                       const char *device,\n"
14638 "                       const char *key,\n"
14639 "                       const char *mapname);\n"
14640 "\n"
14641 msgstr ""
14642
14643 # type: textblock
14644 #. type: textblock
14645 #: ../src/guestfs-actions.pod:4146
14646 msgid ""
14647 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
14648 "created."
14649 msgstr ""
14650
14651 # type: =head2
14652 #. type: =head2
14653 #: ../src/guestfs-actions.pod:4157
14654 msgid "guestfs_lvcreate"
14655 msgstr ""
14656
14657 # type: verbatim
14658 #. type: verbatim
14659 #: ../src/guestfs-actions.pod:4159
14660 #, no-wrap
14661 msgid ""
14662 " int\n"
14663 " guestfs_lvcreate (guestfs_h *g,\n"
14664 "                   const char *logvol,\n"
14665 "                   const char *volgroup,\n"
14666 "                   int mbytes);\n"
14667 "\n"
14668 msgstr ""
14669
14670 # type: textblock
14671 #. type: textblock
14672 #: ../src/guestfs-actions.pod:4165 ../fish/guestfish-actions.pod:2804
14673 msgid ""
14674 "This creates an LVM logical volume called C<logvol> on the volume group "
14675 "C<volgroup>, with C<size> megabytes."
14676 msgstr ""
14677
14678 # type: =head2
14679 #. type: =head2
14680 #: ../src/guestfs-actions.pod:4172
14681 msgid "guestfs_lvm_canonical_lv_name"
14682 msgstr ""
14683
14684 # type: verbatim
14685 #. type: verbatim
14686 #: ../src/guestfs-actions.pod:4174
14687 #, no-wrap
14688 msgid ""
14689 " char *\n"
14690 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
14691 "                                const char *lvname);\n"
14692 "\n"
14693 msgstr ""
14694
14695 # type: textblock
14696 #. type: textblock
14697 #: ../src/guestfs-actions.pod:4178 ../fish/guestfish-actions.pod:2811
14698 msgid ""
14699 "This converts alternative naming schemes for LVs that you might find to the "
14700 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
14701 "LV>."
14702 msgstr ""
14703
14704 # type: textblock
14705 #. type: textblock
14706 #: ../src/guestfs-actions.pod:4182 ../fish/guestfish-actions.pod:2815
14707 msgid ""
14708 "This command returns an error if the C<lvname> parameter does not refer to a "
14709 "logical volume."
14710 msgstr ""
14711
14712 # type: textblock
14713 #. type: textblock
14714 #: ../src/guestfs-actions.pod:4185
14715 msgid "See also C<guestfs_is_lv>."
14716 msgstr ""
14717
14718 # type: textblock
14719 #. type: textblock
14720 #: ../src/guestfs-actions.pod:4190
14721 msgid "(Added in 1.5.24)"
14722 msgstr ""
14723
14724 # type: =head2
14725 #. type: =head2
14726 #: ../src/guestfs-actions.pod:4192
14727 msgid "guestfs_lvm_clear_filter"
14728 msgstr ""
14729
14730 # type: verbatim
14731 #. type: verbatim
14732 #: ../src/guestfs-actions.pod:4194
14733 #, no-wrap
14734 msgid ""
14735 " int\n"
14736 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
14737 "\n"
14738 msgstr ""
14739
14740 # type: textblock
14741 #. type: textblock
14742 #: ../src/guestfs-actions.pod:4197
14743 msgid ""
14744 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
14745 "see every block device."
14746 msgstr ""
14747
14748 # type: textblock
14749 #. type: textblock
14750 #: ../src/guestfs-actions.pod:4200 ../src/guestfs-actions.pod:4242
14751 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858
14752 msgid ""
14753 "This command also clears the LVM cache and performs a volume group scan."
14754 msgstr ""
14755
14756 # type: =head2
14757 #. type: =head2
14758 #: ../src/guestfs-actions.pod:4207
14759 msgid "guestfs_lvm_remove_all"
14760 msgstr ""
14761
14762 # type: verbatim
14763 #. type: verbatim
14764 #: ../src/guestfs-actions.pod:4209
14765 #, no-wrap
14766 msgid ""
14767 " int\n"
14768 " guestfs_lvm_remove_all (guestfs_h *g);\n"
14769 "\n"
14770 msgstr ""
14771
14772 # type: textblock
14773 #. type: textblock
14774 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2834
14775 msgid ""
14776 "This command removes all LVM logical volumes, volume groups and physical "
14777 "volumes."
14778 msgstr ""
14779
14780 # type: =head2
14781 #. type: =head2
14782 #: ../src/guestfs-actions.pod:4222
14783 msgid "guestfs_lvm_set_filter"
14784 msgstr ""
14785
14786 # type: verbatim
14787 #. type: verbatim
14788 #: ../src/guestfs-actions.pod:4224
14789 #, no-wrap
14790 msgid ""
14791 " int\n"
14792 " guestfs_lvm_set_filter (guestfs_h *g,\n"
14793 "                         char *const *devices);\n"
14794 "\n"
14795 msgstr ""
14796
14797 # type: textblock
14798 #. type: textblock
14799 #: ../src/guestfs-actions.pod:4228 ../fish/guestfish-actions.pod:2844
14800 msgid ""
14801 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
14802 "block devices in the list C<devices>, and will ignore all other attached "
14803 "block devices."
14804 msgstr ""
14805
14806 # type: textblock
14807 #. type: textblock
14808 #: ../src/guestfs-actions.pod:4232 ../fish/guestfish-actions.pod:2848
14809 msgid ""
14810 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
14811 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
14812 "there are two types of duplication possible: either cloned PVs/VGs which "
14813 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
14814 "same name.  In normal operation you cannot create this situation, but you "
14815 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
14816 "inside the LVM metadata."
14817 msgstr ""
14818
14819 # type: textblock
14820 #. type: textblock
14821 #: ../src/guestfs-actions.pod:4245 ../fish/guestfish-actions.pod:2861
14822 msgid "You can filter whole block devices or individual partitions."
14823 msgstr ""
14824
14825 # type: textblock
14826 #. type: textblock
14827 #: ../src/guestfs-actions.pod:4247 ../fish/guestfish-actions.pod:2863
14828 msgid ""
14829 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14830 "filesystem), even if you are not filtering out that VG."
14831 msgstr ""
14832
14833 # type: =head2
14834 #. type: =head2
14835 #: ../src/guestfs-actions.pod:4255
14836 msgid "guestfs_lvremove"
14837 msgstr ""
14838
14839 # type: verbatim
14840 #. type: verbatim
14841 #: ../src/guestfs-actions.pod:4257
14842 #, no-wrap
14843 msgid ""
14844 " int\n"
14845 " guestfs_lvremove (guestfs_h *g,\n"
14846 "                   const char *device);\n"
14847 "\n"
14848 msgstr ""
14849
14850 # type: textblock
14851 #. type: textblock
14852 #: ../src/guestfs-actions.pod:4261 ../fish/guestfish-actions.pod:2871
14853 msgid ""
14854 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14855 "LV, such as C</dev/VG/LV>."
14856 msgstr ""
14857
14858 # type: textblock
14859 #. type: textblock
14860 #: ../src/guestfs-actions.pod:4264 ../fish/guestfish-actions.pod:2874
14861 msgid ""
14862 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14863 "dev/VG>."
14864 msgstr ""
14865
14866 # type: textblock
14867 #. type: textblock
14868 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:5666
14869 #: ../src/guestfs-actions.pod:7498
14870 msgid "(Added in 1.0.13)"
14871 msgstr ""
14872
14873 # type: =head2
14874 #. type: =head2
14875 #: ../src/guestfs-actions.pod:4271
14876 msgid "guestfs_lvrename"
14877 msgstr ""
14878
14879 # type: verbatim
14880 #. type: verbatim
14881 #: ../src/guestfs-actions.pod:4273
14882 #, no-wrap
14883 msgid ""
14884 " int\n"
14885 " guestfs_lvrename (guestfs_h *g,\n"
14886 "                   const char *logvol,\n"
14887 "                   const char *newlogvol);\n"
14888 "\n"
14889 msgstr ""
14890
14891 # type: textblock
14892 #. type: textblock
14893 #: ../src/guestfs-actions.pod:4278 ../fish/guestfish-actions.pod:2881
14894 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14895 msgstr ""
14896
14897 # type: textblock
14898 #. type: textblock
14899 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:7511
14900 msgid "(Added in 1.0.83)"
14901 msgstr ""
14902
14903 # type: =head2
14904 #. type: =head2
14905 #: ../src/guestfs-actions.pod:4284
14906 msgid "guestfs_lvresize"
14907 msgstr ""
14908
14909 # type: verbatim
14910 #. type: verbatim
14911 #: ../src/guestfs-actions.pod:4286
14912 #, no-wrap
14913 msgid ""
14914 " int\n"
14915 " guestfs_lvresize (guestfs_h *g,\n"
14916 "                   const char *device,\n"
14917 "                   int mbytes);\n"
14918 "\n"
14919 msgstr ""
14920
14921 # type: textblock
14922 #. type: textblock
14923 #: ../src/guestfs-actions.pod:4291 ../fish/guestfish-actions.pod:2887
14924 msgid ""
14925 "This resizes (expands or shrinks) an existing LVM logical volume to "
14926 "C<mbytes>.  When reducing, data in the reduced part is lost."
14927 msgstr ""
14928
14929 # type: =head2
14930 #. type: =head2
14931 #: ../src/guestfs-actions.pod:4299
14932 msgid "guestfs_lvresize_free"
14933 msgstr ""
14934
14935 # type: verbatim
14936 #. type: verbatim
14937 #: ../src/guestfs-actions.pod:4301
14938 #, no-wrap
14939 msgid ""
14940 " int\n"
14941 " guestfs_lvresize_free (guestfs_h *g,\n"
14942 "                        const char *lv,\n"
14943 "                        int percent);\n"
14944 "\n"
14945 msgstr ""
14946
14947 # type: textblock
14948 #. type: textblock
14949 #: ../src/guestfs-actions.pod:4306 ../fish/guestfish-actions.pod:2895
14950 msgid ""
14951 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14952 "remaining free space in the volume group.  Commonly you would call this with "
14953 "pc = 100 which expands the logical volume as much as possible, using all "
14954 "remaining free space in the volume group."
14955 msgstr ""
14956
14957 # type: textblock
14958 #. type: textblock
14959 #: ../src/guestfs-actions.pod:4314
14960 msgid "(Added in 1.3.3)"
14961 msgstr ""
14962
14963 # type: =head2
14964 #. type: =head2
14965 #: ../src/guestfs-actions.pod:4316
14966 msgid "guestfs_lvs"
14967 msgstr ""
14968
14969 # type: verbatim
14970 #. type: verbatim
14971 #: ../src/guestfs-actions.pod:4318
14972 #, no-wrap
14973 msgid ""
14974 " char **\n"
14975 " guestfs_lvs (guestfs_h *g);\n"
14976 "\n"
14977 msgstr ""
14978
14979 # type: textblock
14980 #. type: textblock
14981 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:2905
14982 msgid ""
14983 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14984 "(8)> command."
14985 msgstr ""
14986
14987 # type: textblock
14988 #. type: textblock
14989 #: ../src/guestfs-actions.pod:4324 ../fish/guestfish-actions.pod:2908
14990 msgid ""
14991 "This returns a list of the logical volume device names (eg. C</dev/"
14992 "VolGroup00/LogVol00>)."
14993 msgstr ""
14994
14995 # type: textblock
14996 #. type: textblock
14997 #: ../src/guestfs-actions.pod:4327
14998 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14999 msgstr ""
15000
15001 # type: =head2
15002 #. type: =head2
15003 #: ../src/guestfs-actions.pod:4335
15004 msgid "guestfs_lvs_full"
15005 msgstr ""
15006
15007 # type: verbatim
15008 #. type: verbatim
15009 #: ../src/guestfs-actions.pod:4337
15010 #, no-wrap
15011 msgid ""
15012 " struct guestfs_lvm_lv_list *\n"
15013 " guestfs_lvs_full (guestfs_h *g);\n"
15014 "\n"
15015 msgstr ""
15016
15017 # type: textblock
15018 #. type: textblock
15019 #: ../src/guestfs-actions.pod:4340 ../fish/guestfish-actions.pod:2917
15020 msgid ""
15021 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
15022 "(8)> command.  The \"full\" version includes all fields."
15023 msgstr ""
15024
15025 # type: textblock
15026 #. type: textblock
15027 #: ../src/guestfs-actions.pod:4343
15028 msgid ""
15029 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
15030 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
15031 msgstr ""
15032
15033 # type: =head2
15034 #. type: =head2
15035 #: ../src/guestfs-actions.pod:4349
15036 msgid "guestfs_lvuuid"
15037 msgstr ""
15038
15039 # type: verbatim
15040 #. type: verbatim
15041 #: ../src/guestfs-actions.pod:4351
15042 #, no-wrap
15043 msgid ""
15044 " char *\n"
15045 " guestfs_lvuuid (guestfs_h *g,\n"
15046 "                 const char *device);\n"
15047 "\n"
15048 msgstr ""
15049
15050 # type: textblock
15051 #. type: textblock
15052 #: ../src/guestfs-actions.pod:4355 ../fish/guestfish-actions.pod:2924
15053 msgid "This command returns the UUID of the LVM LV C<device>."
15054 msgstr ""
15055
15056 # type: =head2
15057 #. type: =head2
15058 #: ../src/guestfs-actions.pod:4362
15059 msgid "guestfs_lxattrlist"
15060 msgstr ""
15061
15062 # type: verbatim
15063 #. type: verbatim
15064 #: ../src/guestfs-actions.pod:4364
15065 #, no-wrap
15066 msgid ""
15067 " struct guestfs_xattr_list *\n"
15068 " guestfs_lxattrlist (guestfs_h *g,\n"
15069 "                     const char *path,\n"
15070 "                     char *const *names);\n"
15071 "\n"
15072 msgstr ""
15073
15074 # type: textblock
15075 #. type: textblock
15076 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2930
15077 msgid ""
15078 "This call allows you to get the extended attributes of multiple files, where "
15079 "all files are in the directory C<path>.  C<names> is the list of files from "
15080 "this directory."
15081 msgstr ""
15082
15083 # type: textblock
15084 #. type: textblock
15085 #: ../src/guestfs-actions.pod:4373 ../fish/guestfish-actions.pod:2934
15086 msgid ""
15087 "On return you get a flat list of xattr structs which must be interpreted "
15088 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
15089 "C<attrval> in this struct is zero-length to indicate there was an error "
15090 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
15091 "number (the number of following attributes for this file, which could be C<"
15092 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
15093 "for the first named file.  This repeats for the second and subsequent files."
15094 msgstr ""
15095
15096 # type: textblock
15097 #. type: textblock
15098 #: ../src/guestfs-actions.pod:4383
15099 msgid ""
15100 "This call is intended for programs that want to efficiently list a directory "
15101 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
15102 "a similarly efficient call for getting standard stats.  Very long directory "
15103 "listings might cause the protocol message size to be exceeded, causing this "
15104 "call to fail.  The caller must split up such requests into smaller groups of "
15105 "names."
15106 msgstr ""
15107
15108 # type: =head2
15109 #. type: =head2
15110 #: ../src/guestfs-actions.pod:4397
15111 msgid "guestfs_mkdir"
15112 msgstr ""
15113
15114 # type: verbatim
15115 #. type: verbatim
15116 #: ../src/guestfs-actions.pod:4399
15117 #, no-wrap
15118 msgid ""
15119 " int\n"
15120 " guestfs_mkdir (guestfs_h *g,\n"
15121 "                const char *path);\n"
15122 "\n"
15123 msgstr ""
15124
15125 # type: textblock
15126 #. type: textblock
15127 #: ../src/guestfs-actions.pod:4403 ../fish/guestfish-actions.pod:2956
15128 msgid "Create a directory named C<path>."
15129 msgstr ""
15130
15131 # type: =head2
15132 #. type: =head2
15133 #: ../src/guestfs-actions.pod:4409
15134 msgid "guestfs_mkdir_mode"
15135 msgstr ""
15136
15137 # type: verbatim
15138 #. type: verbatim
15139 #: ../src/guestfs-actions.pod:4411
15140 #, no-wrap
15141 msgid ""
15142 " int\n"
15143 " guestfs_mkdir_mode (guestfs_h *g,\n"
15144 "                     const char *path,\n"
15145 "                     int mode);\n"
15146 "\n"
15147 msgstr ""
15148
15149 # type: textblock
15150 #. type: textblock
15151 #: ../src/guestfs-actions.pod:4416 ../fish/guestfish-actions.pod:2962
15152 msgid ""
15153 "This command creates a directory, setting the initial permissions of the "
15154 "directory to C<mode>."
15155 msgstr ""
15156
15157 # type: textblock
15158 #. type: textblock
15159 #: ../src/guestfs-actions.pod:4419 ../fish/guestfish-actions.pod:2965
15160 msgid ""
15161 "For common Linux filesystems, the actual mode which is set will be C<mode & "
15162 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
15163 "other ways."
15164 msgstr ""
15165
15166 # type: textblock
15167 #. type: textblock
15168 #: ../src/guestfs-actions.pod:4423
15169 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
15170 msgstr ""
15171
15172 # type: =head2
15173 #. type: =head2
15174 #: ../src/guestfs-actions.pod:4429
15175 msgid "guestfs_mkdir_p"
15176 msgstr ""
15177
15178 # type: verbatim
15179 #. type: verbatim
15180 #: ../src/guestfs-actions.pod:4431
15181 #, no-wrap
15182 msgid ""
15183 " int\n"
15184 " guestfs_mkdir_p (guestfs_h *g,\n"
15185 "                  const char *path);\n"
15186 "\n"
15187 msgstr ""
15188
15189 # type: textblock
15190 #. type: textblock
15191 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:2975
15192 msgid ""
15193 "Create a directory named C<path>, creating any parent directories as "
15194 "necessary.  This is like the C<mkdir -p> shell command."
15195 msgstr ""
15196
15197 # type: =head2
15198 #. type: =head2
15199 #: ../src/guestfs-actions.pod:4442
15200 msgid "guestfs_mkdtemp"
15201 msgstr ""
15202
15203 # type: verbatim
15204 #. type: verbatim
15205 #: ../src/guestfs-actions.pod:4444
15206 #, no-wrap
15207 msgid ""
15208 " char *\n"
15209 " guestfs_mkdtemp (guestfs_h *g,\n"
15210 "                  const char *template);\n"
15211 "\n"
15212 msgstr ""
15213
15214 # type: textblock
15215 #. type: textblock
15216 #: ../src/guestfs-actions.pod:4448 ../fish/guestfish-actions.pod:2982
15217 msgid ""
15218 "This command creates a temporary directory.  The C<template> parameter "
15219 "should be a full pathname for the temporary directory name with the final "
15220 "six characters being \"XXXXXX\"."
15221 msgstr ""
15222
15223 # type: textblock
15224 #. type: textblock
15225 #: ../src/guestfs-actions.pod:4453 ../fish/guestfish-actions.pod:2987
15226 msgid ""
15227 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
15228 "being suitable for Windows filesystems."
15229 msgstr ""
15230
15231 # type: textblock
15232 #. type: textblock
15233 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:2990
15234 msgid "The name of the temporary directory that was created is returned."
15235 msgstr ""
15236
15237 # type: textblock
15238 #. type: textblock
15239 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:2993
15240 msgid "The temporary directory is created with mode 0700 and is owned by root."
15241 msgstr ""
15242
15243 # type: textblock
15244 #. type: textblock
15245 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:2996
15246 msgid ""
15247 "The caller is responsible for deleting the temporary directory and its "
15248 "contents after use."
15249 msgstr ""
15250
15251 # type: textblock
15252 #. type: textblock
15253 #: ../src/guestfs-actions.pod:4465 ../fish/guestfish-actions.pod:2999
15254 msgid "See also: L<mkdtemp(3)>"
15255 msgstr ""
15256
15257 # type: =head2
15258 #. type: =head2
15259 #: ../src/guestfs-actions.pod:4472
15260 msgid "guestfs_mke2fs_J"
15261 msgstr ""
15262
15263 # type: verbatim
15264 #. type: verbatim
15265 #: ../src/guestfs-actions.pod:4474
15266 #, no-wrap
15267 msgid ""
15268 " int\n"
15269 " guestfs_mke2fs_J (guestfs_h *g,\n"
15270 "                   const char *fstype,\n"
15271 "                   int blocksize,\n"
15272 "                   const char *device,\n"
15273 "                   const char *journal);\n"
15274 "\n"
15275 msgstr ""
15276
15277 # type: textblock
15278 #. type: textblock
15279 #: ../src/guestfs-actions.pod:4481 ../fish/guestfish-actions.pod:3005
15280 msgid ""
15281 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15282 "C<journal>.  It is equivalent to the command:"
15283 msgstr ""
15284
15285 # type: verbatim
15286 #. type: verbatim
15287 #: ../src/guestfs-actions.pod:4485 ../fish/guestfish-actions.pod:3009
15288 #, no-wrap
15289 msgid ""
15290 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
15291 "\n"
15292 msgstr ""
15293
15294 # type: textblock
15295 #. type: textblock
15296 #: ../src/guestfs-actions.pod:4487
15297 msgid "See also C<guestfs_mke2journal>."
15298 msgstr ""
15299
15300 # type: textblock
15301 #. type: textblock
15302 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4509
15303 #: ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4543
15304 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4571
15305 #: ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4907
15306 msgid "(Added in 1.0.68)"
15307 msgstr ""
15308
15309 # type: =head2
15310 #. type: =head2
15311 #: ../src/guestfs-actions.pod:4493
15312 msgid "guestfs_mke2fs_JL"
15313 msgstr ""
15314
15315 # type: verbatim
15316 #. type: verbatim
15317 #: ../src/guestfs-actions.pod:4495
15318 #, no-wrap
15319 msgid ""
15320 " int\n"
15321 " guestfs_mke2fs_JL (guestfs_h *g,\n"
15322 "                    const char *fstype,\n"
15323 "                    int blocksize,\n"
15324 "                    const char *device,\n"
15325 "                    const char *label);\n"
15326 "\n"
15327 msgstr ""
15328
15329 # type: textblock
15330 #. type: textblock
15331 #: ../src/guestfs-actions.pod:4502 ../fish/guestfish-actions.pod:3017
15332 msgid ""
15333 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15334 "the journal labeled C<label>."
15335 msgstr ""
15336
15337 # type: textblock
15338 #. type: textblock
15339 #: ../src/guestfs-actions.pod:4505
15340 msgid "See also C<guestfs_mke2journal_L>."
15341 msgstr ""
15342
15343 # type: =head2
15344 #. type: =head2
15345 #: ../src/guestfs-actions.pod:4511
15346 msgid "guestfs_mke2fs_JU"
15347 msgstr ""
15348
15349 # type: verbatim
15350 #. type: verbatim
15351 #: ../src/guestfs-actions.pod:4513
15352 #, no-wrap
15353 msgid ""
15354 " int\n"
15355 " guestfs_mke2fs_JU (guestfs_h *g,\n"
15356 "                    const char *fstype,\n"
15357 "                    int blocksize,\n"
15358 "                    const char *device,\n"
15359 "                    const char *uuid);\n"
15360 "\n"
15361 msgstr ""
15362
15363 # type: textblock
15364 #. type: textblock
15365 #: ../src/guestfs-actions.pod:4520 ../fish/guestfish-actions.pod:3026
15366 msgid ""
15367 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
15368 "the journal with UUID C<uuid>."
15369 msgstr ""
15370
15371 # type: textblock
15372 #. type: textblock
15373 #: ../src/guestfs-actions.pod:4523
15374 msgid "See also C<guestfs_mke2journal_U>."
15375 msgstr ""
15376
15377 # type: =head2
15378 #. type: =head2
15379 #: ../src/guestfs-actions.pod:4529
15380 msgid "guestfs_mke2journal"
15381 msgstr ""
15382
15383 # type: verbatim
15384 #. type: verbatim
15385 #: ../src/guestfs-actions.pod:4531
15386 #, no-wrap
15387 msgid ""
15388 " int\n"
15389 " guestfs_mke2journal (guestfs_h *g,\n"
15390 "                      int blocksize,\n"
15391 "                      const char *device);\n"
15392 "\n"
15393 msgstr ""
15394
15395 # type: textblock
15396 #. type: textblock
15397 #: ../src/guestfs-actions.pod:4536 ../fish/guestfish-actions.pod:3035
15398 msgid ""
15399 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
15400 "command:"
15401 msgstr ""
15402
15403 # type: verbatim
15404 #. type: verbatim
15405 #: ../src/guestfs-actions.pod:4539 ../fish/guestfish-actions.pod:3038
15406 #, no-wrap
15407 msgid ""
15408 " mke2fs -O journal_dev -b blocksize device\n"
15409 "\n"
15410 msgstr ""
15411
15412 # type: =head2
15413 #. type: =head2
15414 #: ../src/guestfs-actions.pod:4545
15415 msgid "guestfs_mke2journal_L"
15416 msgstr ""
15417
15418 # type: verbatim
15419 #. type: verbatim
15420 #: ../src/guestfs-actions.pod:4547
15421 #, no-wrap
15422 msgid ""
15423 " int\n"
15424 " guestfs_mke2journal_L (guestfs_h *g,\n"
15425 "                        int blocksize,\n"
15426 "                        const char *label,\n"
15427 "                        const char *device);\n"
15428 "\n"
15429 msgstr ""
15430
15431 # type: textblock
15432 #. type: textblock
15433 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3044
15434 msgid "This creates an ext2 external journal on C<device> with label C<label>."
15435 msgstr ""
15436
15437 # type: =head2
15438 #. type: =head2
15439 #: ../src/guestfs-actions.pod:4559
15440 msgid "guestfs_mke2journal_U"
15441 msgstr ""
15442
15443 # type: verbatim
15444 #. type: verbatim
15445 #: ../src/guestfs-actions.pod:4561
15446 #, no-wrap
15447 msgid ""
15448 " int\n"
15449 " guestfs_mke2journal_U (guestfs_h *g,\n"
15450 "                        int blocksize,\n"
15451 "                        const char *uuid,\n"
15452 "                        const char *device);\n"
15453 "\n"
15454 msgstr ""
15455
15456 # type: textblock
15457 #. type: textblock
15458 #: ../src/guestfs-actions.pod:4567 ../fish/guestfish-actions.pod:3050
15459 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
15460 msgstr ""
15461
15462 # type: =head2
15463 #. type: =head2
15464 #: ../src/guestfs-actions.pod:4573
15465 msgid "guestfs_mkfifo"
15466 msgstr ""
15467
15468 # type: verbatim
15469 #. type: verbatim
15470 #: ../src/guestfs-actions.pod:4575
15471 #, no-wrap
15472 msgid ""
15473 " int\n"
15474 " guestfs_mkfifo (guestfs_h *g,\n"
15475 "                 int mode,\n"
15476 "                 const char *path);\n"
15477 "\n"
15478 msgstr ""
15479
15480 # type: textblock
15481 #. type: textblock
15482 #: ../src/guestfs-actions.pod:4580
15483 msgid ""
15484 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
15485 "is just a convenient wrapper around C<guestfs_mknod>."
15486 msgstr ""
15487
15488 # type: =head2
15489 #. type: =head2
15490 #: ../src/guestfs-actions.pod:4590
15491 msgid "guestfs_mkfs"
15492 msgstr ""
15493
15494 # type: verbatim
15495 #. type: verbatim
15496 #: ../src/guestfs-actions.pod:4592
15497 #, no-wrap
15498 msgid ""
15499 " int\n"
15500 " guestfs_mkfs (guestfs_h *g,\n"
15501 "               const char *fstype,\n"
15502 "               const char *device);\n"
15503 "\n"
15504 msgstr ""
15505
15506 # type: textblock
15507 #. type: textblock
15508 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3066
15509 msgid ""
15510 "This creates a filesystem on C<device> (usually a partition or LVM logical "
15511 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
15512 msgstr ""
15513
15514 # type: =head2
15515 #. type: =head2
15516 #: ../src/guestfs-actions.pod:4605
15517 msgid "guestfs_mkfs_b"
15518 msgstr ""
15519
15520 # type: verbatim
15521 #. type: verbatim
15522 #: ../src/guestfs-actions.pod:4607
15523 #, no-wrap
15524 msgid ""
15525 " int\n"
15526 " guestfs_mkfs_b (guestfs_h *g,\n"
15527 "                 const char *fstype,\n"
15528 "                 int blocksize,\n"
15529 "                 const char *device);\n"
15530 "\n"
15531 msgstr ""
15532
15533 # type: textblock
15534 #. type: textblock
15535 #: ../src/guestfs-actions.pod:4613
15536 msgid ""
15537 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
15538 "block size of the resulting filesystem.  Supported block sizes depend on the "
15539 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
15540 msgstr ""
15541
15542 # type: textblock
15543 #. type: textblock
15544 #: ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4663
15545 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106
15546 msgid ""
15547 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
15548 "cluster size."
15549 msgstr ""
15550
15551 # type: textblock
15552 #. type: textblock
15553 #: ../src/guestfs-actions.pod:4623 ../fish/guestfish-actions.pod:3082
15554 msgid ""
15555 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
15556 msgstr ""
15557
15558 # type: =head2
15559 #. type: =head2
15560 #: ../src/guestfs-actions.pod:4632
15561 msgid "guestfs_mkfs_opts"
15562 msgstr ""
15563
15564 # type: verbatim
15565 #. type: verbatim
15566 #: ../src/guestfs-actions.pod:4634
15567 #, no-wrap
15568 msgid ""
15569 " int\n"
15570 " guestfs_mkfs_opts (guestfs_h *g,\n"
15571 "                    const char *fstype,\n"
15572 "                    const char *device,\n"
15573 "                    ...);\n"
15574 "\n"
15575 msgstr ""
15576
15577 #. type: verbatim
15578 #: ../src/guestfs-actions.pod:4645
15579 #, no-wrap
15580 msgid ""
15581 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
15582 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
15583 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
15584 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
15585 "\n"
15586 msgstr ""
15587
15588 # type: textblock
15589 #. type: textblock
15590 #: ../src/guestfs-actions.pod:4650 ../fish/guestfish-actions.pod:3093
15591 msgid ""
15592 "This function creates a filesystem on C<device>.  The filesystem type is "
15593 "C<fstype>, for example C<ext3>."
15594 msgstr ""
15595
15596 # type: =item
15597 #. type: =item
15598 #: ../src/guestfs-actions.pod:4657 ../fish/guestfish-actions.pod:3100
15599 msgid "C<blocksize>"
15600 msgstr ""
15601
15602 # type: textblock
15603 #. type: textblock
15604 #: ../src/guestfs-actions.pod:4659 ../fish/guestfish-actions.pod:3102
15605 msgid ""
15606 "The filesystem block size.  Supported block sizes depend on the filesystem "
15607 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
15608 "filesystems."
15609 msgstr ""
15610
15611 #. type: textblock
15612 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3109
15613 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
15614 msgstr ""
15615
15616 #. type: =item
15617 #: ../src/guestfs-actions.pod:4668 ../fish/guestfish-actions.pod:3111
15618 msgid "C<features>"
15619 msgstr ""
15620
15621 #. type: textblock
15622 #: ../src/guestfs-actions.pod:4670 ../fish/guestfish-actions.pod:3113
15623 msgid "This passes the I<-O> parameter to the external mkfs program."
15624 msgstr ""
15625
15626 #. type: textblock
15627 #: ../src/guestfs-actions.pod:4672 ../fish/guestfish-actions.pod:3115
15628 msgid ""
15629 "For certain filesystem types, this allows extra filesystem features to be "
15630 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
15631 msgstr ""
15632
15633 #. type: textblock
15634 #: ../src/guestfs-actions.pod:4676 ../fish/guestfish-actions.pod:3119
15635 msgid ""
15636 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
15637 "type."
15638 msgstr ""
15639
15640 #. type: =item
15641 #: ../src/guestfs-actions.pod:4679 ../fish/guestfish-actions.pod:3122
15642 msgid "C<inode>"
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../src/guestfs-actions.pod:4681 ../fish/guestfish-actions.pod:3124
15647 msgid ""
15648 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
15649 "sets the inode size (only for ext2/3/4 filesystems at present)."
15650 msgstr ""
15651
15652 #. type: =item
15653 #: ../src/guestfs-actions.pod:4684 ../fish/guestfish-actions.pod:3127
15654 msgid "C<sectorsize>"
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../src/guestfs-actions.pod:4686 ../fish/guestfish-actions.pod:3129
15659 msgid ""
15660 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
15661 "sets sector size for ufs filesystem."
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../src/guestfs-actions.pod:4693
15666 msgid "(Added in 1.7.19)"
15667 msgstr ""
15668
15669 # type: =head2
15670 #. type: =head2
15671 #: ../src/guestfs-actions.pod:4695
15672 msgid "guestfs_mkfs_opts_va"
15673 msgstr ""
15674
15675 # type: verbatim
15676 #. type: verbatim
15677 #: ../src/guestfs-actions.pod:4697
15678 #, no-wrap
15679 msgid ""
15680 " int\n"
15681 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
15682 "                       const char *fstype,\n"
15683 "                       const char *device,\n"
15684 "                       va_list args);\n"
15685 "\n"
15686 msgstr ""
15687
15688 # type: textblock
15689 #. type: textblock
15690 #: ../src/guestfs-actions.pod:4703
15691 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
15692 msgstr ""
15693
15694 # type: =head2
15695 #. type: =head2
15696 #: ../src/guestfs-actions.pod:4707
15697 msgid "guestfs_mkfs_opts_argv"
15698 msgstr ""
15699
15700 # type: verbatim
15701 #. type: verbatim
15702 #: ../src/guestfs-actions.pod:4709
15703 #, no-wrap
15704 msgid ""
15705 " int\n"
15706 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
15707 "                         const char *fstype,\n"
15708 "                         const char *device,\n"
15709 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
15710 "\n"
15711 msgstr ""
15712
15713 # type: textblock
15714 #. type: textblock
15715 #: ../src/guestfs-actions.pod:4715
15716 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
15717 msgstr ""
15718
15719 # type: =head2
15720 #. type: =head2
15721 #: ../src/guestfs-actions.pod:4719
15722 msgid "guestfs_mkmountpoint"
15723 msgstr ""
15724
15725 # type: verbatim
15726 #. type: verbatim
15727 #: ../src/guestfs-actions.pod:4721
15728 #, no-wrap
15729 msgid ""
15730 " int\n"
15731 " guestfs_mkmountpoint (guestfs_h *g,\n"
15732 "                       const char *exemptpath);\n"
15733 "\n"
15734 msgstr ""
15735
15736 # type: textblock
15737 #. type: textblock
15738 #: ../src/guestfs-actions.pod:4725
15739 msgid ""
15740 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
15741 "that can be used to create extra mountpoints before mounting the first "
15742 "filesystem."
15743 msgstr ""
15744
15745 # type: textblock
15746 #. type: textblock
15747 #: ../src/guestfs-actions.pod:4729 ../fish/guestfish-actions.pod:3144
15748 msgid ""
15749 "These calls are I<only> necessary in some very limited circumstances, mainly "
15750 "the case where you want to mount a mix of unrelated and/or read-only "
15751 "filesystems together."
15752 msgstr ""
15753
15754 # type: textblock
15755 #. type: textblock
15756 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3148
15757 msgid ""
15758 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
15759 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
15760 "inside that.  You can unpack this as follows in guestfish:"
15761 msgstr ""
15762
15763 # type: verbatim
15764 #. type: verbatim
15765 #: ../src/guestfs-actions.pod:4738 ../fish/guestfish-actions.pod:3153
15766 #, no-wrap
15767 msgid ""
15768 " add-ro Fedora-11-i686-Live.iso\n"
15769 " run\n"
15770 " mkmountpoint /cd\n"
15771 " mkmountpoint /sqsh\n"
15772 " mkmountpoint /ext3fs\n"
15773 " mount /dev/sda /cd\n"
15774 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
15775 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
15776 "\n"
15777 msgstr ""
15778
15779 # type: textblock
15780 #. type: textblock
15781 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3162
15782 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
15783 msgstr ""
15784
15785 # type: textblock
15786 #. type: textblock
15787 #: ../src/guestfs-actions.pod:4749
15788 msgid ""
15789 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
15790 "may get unexpected errors if you try to mix these calls.  It is safest to "
15791 "manually unmount filesystems and remove mountpoints after use."
15792 msgstr ""
15793
15794 # type: textblock
15795 #. type: textblock
15796 #: ../src/guestfs-actions.pod:4753
15797 msgid ""
15798 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
15799 "first, so for this to work for manual mountpoints, you must ensure that the "
15800 "innermost mountpoints have the longest pathnames, as in the example code "
15801 "above."
15802 msgstr ""
15803
15804 # type: textblock
15805 #. type: textblock
15806 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3173
15807 msgid ""
15808 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
15809 msgstr ""
15810
15811 #. type: textblock
15812 #: ../src/guestfs-actions.pod:4760
15813 msgid ""
15814 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
15815 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
15816 "can also trigger these issues."
15817 msgstr ""
15818
15819 # type: textblock
15820 #. type: textblock
15821 #: ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:5082
15822 #: ../src/guestfs-actions.pod:6086
15823 msgid "(Added in 1.0.62)"
15824 msgstr ""
15825
15826 # type: =head2
15827 #. type: =head2
15828 #: ../src/guestfs-actions.pod:4768
15829 msgid "guestfs_mknod"
15830 msgstr ""
15831
15832 # type: verbatim
15833 #. type: verbatim
15834 #: ../src/guestfs-actions.pod:4770
15835 #, no-wrap
15836 msgid ""
15837 " int\n"
15838 " guestfs_mknod (guestfs_h *g,\n"
15839 "                int mode,\n"
15840 "                int devmajor,\n"
15841 "                int devminor,\n"
15842 "                const char *path);\n"
15843 "\n"
15844 msgstr ""
15845
15846 # type: textblock
15847 #. type: textblock
15848 #: ../src/guestfs-actions.pod:4777 ../fish/guestfish-actions.pod:3183
15849 msgid ""
15850 "This call creates block or character special devices, or named pipes (FIFOs)."
15851 msgstr ""
15852
15853 # type: textblock
15854 #. type: textblock
15855 #: ../src/guestfs-actions.pod:4780 ../fish/guestfish-actions.pod:3186
15856 msgid ""
15857 "The C<mode> parameter should be the mode, using the standard constants.  "
15858 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15859 "used when creating block and character special devices."
15860 msgstr ""
15861
15862 # type: textblock
15863 #. type: textblock
15864 #: ../src/guestfs-actions.pod:4785
15865 msgid ""
15866 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15867 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15868 "regular file).  These constants are available in the standard Linux header "
15869 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15870 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15871 "the appropriate constant for you."
15872 msgstr ""
15873
15874 # type: =head2
15875 #. type: =head2
15876 #: ../src/guestfs-actions.pod:4799
15877 msgid "guestfs_mknod_b"
15878 msgstr ""
15879
15880 # type: verbatim
15881 #. type: verbatim
15882 #: ../src/guestfs-actions.pod:4801
15883 #, no-wrap
15884 msgid ""
15885 " int\n"
15886 " guestfs_mknod_b (guestfs_h *g,\n"
15887 "                  int mode,\n"
15888 "                  int devmajor,\n"
15889 "                  int devminor,\n"
15890 "                  const char *path);\n"
15891 "\n"
15892 msgstr ""
15893
15894 # type: textblock
15895 #. type: textblock
15896 #: ../src/guestfs-actions.pod:4808
15897 msgid ""
15898 "This call creates a block device node called C<path> with mode C<mode> and "
15899 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15900 "wrapper around C<guestfs_mknod>."
15901 msgstr ""
15902
15903 # type: =head2
15904 #. type: =head2
15905 #: ../src/guestfs-actions.pod:4818
15906 msgid "guestfs_mknod_c"
15907 msgstr ""
15908
15909 # type: verbatim
15910 #. type: verbatim
15911 #: ../src/guestfs-actions.pod:4820
15912 #, no-wrap
15913 msgid ""
15914 " int\n"
15915 " guestfs_mknod_c (guestfs_h *g,\n"
15916 "                  int mode,\n"
15917 "                  int devmajor,\n"
15918 "                  int devminor,\n"
15919 "                  const char *path);\n"
15920 "\n"
15921 msgstr ""
15922
15923 # type: textblock
15924 #. type: textblock
15925 #: ../src/guestfs-actions.pod:4827
15926 msgid ""
15927 "This call creates a char device node called C<path> with mode C<mode> and "
15928 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15929 "wrapper around C<guestfs_mknod>."
15930 msgstr ""
15931
15932 # type: =head2
15933 #. type: =head2
15934 #: ../src/guestfs-actions.pod:4837
15935 msgid "guestfs_mkswap"
15936 msgstr ""
15937
15938 # type: verbatim
15939 #. type: verbatim
15940 #: ../src/guestfs-actions.pod:4839
15941 #, no-wrap
15942 msgid ""
15943 " int\n"
15944 " guestfs_mkswap (guestfs_h *g,\n"
15945 "                 const char *device);\n"
15946 "\n"
15947 msgstr ""
15948
15949 # type: textblock
15950 #. type: textblock
15951 #: ../src/guestfs-actions.pod:4843 ../fish/guestfish-actions.pod:3225
15952 msgid "Create a swap partition on C<device>."
15953 msgstr ""
15954
15955 # type: =head2
15956 #. type: =head2
15957 #: ../src/guestfs-actions.pod:4849
15958 msgid "guestfs_mkswap_L"
15959 msgstr ""
15960
15961 # type: verbatim
15962 #. type: verbatim
15963 #: ../src/guestfs-actions.pod:4851
15964 #, no-wrap
15965 msgid ""
15966 " int\n"
15967 " guestfs_mkswap_L (guestfs_h *g,\n"
15968 "                   const char *label,\n"
15969 "                   const char *device);\n"
15970 "\n"
15971 msgstr ""
15972
15973 # type: textblock
15974 #. type: textblock
15975 #: ../src/guestfs-actions.pod:4856 ../fish/guestfish-actions.pod:3231
15976 msgid "Create a swap partition on C<device> with label C<label>."
15977 msgstr ""
15978
15979 # type: textblock
15980 #. type: textblock
15981 #: ../src/guestfs-actions.pod:4858 ../fish/guestfish-actions.pod:3233
15982 msgid ""
15983 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15984 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15985 "or swap tools."
15986 msgstr ""
15987
15988 # type: =head2
15989 #. type: =head2
15990 #: ../src/guestfs-actions.pod:4866
15991 msgid "guestfs_mkswap_U"
15992 msgstr ""
15993
15994 # type: verbatim
15995 #. type: verbatim
15996 #: ../src/guestfs-actions.pod:4868
15997 #, no-wrap
15998 msgid ""
15999 " int\n"
16000 " guestfs_mkswap_U (guestfs_h *g,\n"
16001 "                   const char *uuid,\n"
16002 "                   const char *device);\n"
16003 "\n"
16004 msgstr ""
16005
16006 # type: textblock
16007 #. type: textblock
16008 #: ../src/guestfs-actions.pod:4873 ../fish/guestfish-actions.pod:3241
16009 msgid "Create a swap partition on C<device> with UUID C<uuid>."
16010 msgstr ""
16011
16012 # type: =head2
16013 #. type: =head2
16014 #: ../src/guestfs-actions.pod:4879
16015 msgid "guestfs_mkswap_file"
16016 msgstr ""
16017
16018 # type: verbatim
16019 #. type: verbatim
16020 #: ../src/guestfs-actions.pod:4881
16021 #, no-wrap
16022 msgid ""
16023 " int\n"
16024 " guestfs_mkswap_file (guestfs_h *g,\n"
16025 "                      const char *path);\n"
16026 "\n"
16027 msgstr ""
16028
16029 # type: textblock
16030 #. type: textblock
16031 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3247
16032 msgid "Create a swap file."
16033 msgstr ""
16034
16035 # type: textblock
16036 #. type: textblock
16037 #: ../src/guestfs-actions.pod:4887
16038 msgid ""
16039 "This command just writes a swap file signature to an existing file.  To "
16040 "create the file itself, use something like C<guestfs_fallocate>."
16041 msgstr ""
16042
16043 # type: =head2
16044 #. type: =head2
16045 #: ../src/guestfs-actions.pod:4894
16046 msgid "guestfs_modprobe"
16047 msgstr ""
16048
16049 # type: verbatim
16050 #. type: verbatim
16051 #: ../src/guestfs-actions.pod:4896
16052 #, no-wrap
16053 msgid ""
16054 " int\n"
16055 " guestfs_modprobe (guestfs_h *g,\n"
16056 "                   const char *modulename);\n"
16057 "\n"
16058 msgstr ""
16059
16060 # type: textblock
16061 #. type: textblock
16062 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3256
16063 msgid "This loads a kernel module in the appliance."
16064 msgstr ""
16065
16066 # type: textblock
16067 #. type: textblock
16068 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3258
16069 msgid ""
16070 "The kernel module must have been whitelisted when libguestfs was built (see "
16071 "C<appliance/kmod.whitelist.in> in the source)."
16072 msgstr ""
16073
16074 # type: =head2
16075 #. type: =head2
16076 #: ../src/guestfs-actions.pod:4909
16077 msgid "guestfs_mount"
16078 msgstr ""
16079
16080 # type: verbatim
16081 #. type: verbatim
16082 #: ../src/guestfs-actions.pod:4911
16083 #, no-wrap
16084 msgid ""
16085 " int\n"
16086 " guestfs_mount (guestfs_h *g,\n"
16087 "                const char *device,\n"
16088 "                const char *mountpoint);\n"
16089 "\n"
16090 msgstr ""
16091
16092 # type: textblock
16093 #. type: textblock
16094 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3265
16095 msgid ""
16096 "Mount a guest disk at a position in the filesystem.  Block devices are named "
16097 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
16098 "those block devices contain partitions, they will have the usual names (eg. "
16099 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
16100 msgstr ""
16101
16102 # type: textblock
16103 #. type: textblock
16104 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3271
16105 msgid ""
16106 "The rules are the same as for L<mount(2)>: A filesystem must first be "
16107 "mounted on C</> before others can be mounted.  Other filesystems can only be "
16108 "mounted on directories which already exist."
16109 msgstr ""
16110
16111 # type: textblock
16112 #. type: textblock
16113 #: ../src/guestfs-actions.pod:4927 ../fish/guestfish-actions.pod:3276
16114 msgid ""
16115 "The mounted filesystem is writable, if we have sufficient permissions on the "
16116 "underlying device."
16117 msgstr ""
16118
16119 # type: textblock
16120 #. type: textblock
16121 #: ../src/guestfs-actions.pod:4930
16122 msgid ""
16123 "B<Important note:> When you use this call, the filesystem options C<sync> "
16124 "and C<noatime> are set implicitly.  This was originally done because we "
16125 "thought it would improve reliability, but it turns out that I<-o sync> has a "
16126 "very large negative performance impact and negligible effect on "
16127 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
16128 "in any code that needs performance, and instead use C<guestfs_mount_options> "
16129 "(use an empty string for the first parameter if you don't want any options)."
16130 msgstr ""
16131
16132 #. type: textblock
16133 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3289
16134 msgid ""
16135 "This function is deprecated.  In new code, use the C<mount_options> call "
16136 "instead."
16137 msgstr ""
16138
16139 #. type: =head2
16140 #: ../src/guestfs-actions.pod:4951
16141 msgid "guestfs_mount_9p"
16142 msgstr ""
16143
16144 #. type: verbatim
16145 #: ../src/guestfs-actions.pod:4953
16146 #, no-wrap
16147 msgid ""
16148 " int\n"
16149 " guestfs_mount_9p (guestfs_h *g,\n"
16150 "                   const char *mounttag,\n"
16151 "                   const char *mountpoint,\n"
16152 "                   ...);\n"
16153 "\n"
16154 msgstr ""
16155
16156 #. type: verbatim
16157 #: ../src/guestfs-actions.pod:4964
16158 #, no-wrap
16159 msgid ""
16160 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
16161 "\n"
16162 msgstr ""
16163
16164 #. type: textblock
16165 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3300
16166 msgid ""
16167 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
16168 "C<mountpoint>."
16169 msgstr ""
16170
16171 #. type: textblock
16172 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3303
16173 msgid ""
16174 "If required, C<trans=virtio> will be automatically added to the options.  "
16175 "Any other options required can be passed in the optional C<options> "
16176 "parameter."
16177 msgstr ""
16178
16179 #. type: =head2
16180 #: ../src/guestfs-actions.pod:4977
16181 msgid "guestfs_mount_9p_va"
16182 msgstr ""
16183
16184 #. type: verbatim
16185 #: ../src/guestfs-actions.pod:4979
16186 #, no-wrap
16187 msgid ""
16188 " int\n"
16189 " guestfs_mount_9p_va (guestfs_h *g,\n"
16190 "                      const char *mounttag,\n"
16191 "                      const char *mountpoint,\n"
16192 "                      va_list args);\n"
16193 "\n"
16194 msgstr ""
16195
16196 #. type: textblock
16197 #: ../src/guestfs-actions.pod:4985
16198 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
16199 msgstr ""
16200
16201 #. type: =head2
16202 #: ../src/guestfs-actions.pod:4989
16203 msgid "guestfs_mount_9p_argv"
16204 msgstr ""
16205
16206 #. type: verbatim
16207 #: ../src/guestfs-actions.pod:4991
16208 #, no-wrap
16209 msgid ""
16210 " int\n"
16211 " guestfs_mount_9p_argv (guestfs_h *g,\n"
16212 "                        const char *mounttag,\n"
16213 "                        const char *mountpoint,\n"
16214 "                        const struct guestfs_mount_9p_argv *optargs);\n"
16215 "\n"
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../src/guestfs-actions.pod:4997
16220 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
16221 msgstr ""
16222
16223 # type: =head2
16224 #. type: =head2
16225 #: ../src/guestfs-actions.pod:5001
16226 msgid "guestfs_mount_loop"
16227 msgstr ""
16228
16229 # type: verbatim
16230 #. type: verbatim
16231 #: ../src/guestfs-actions.pod:5003
16232 #, no-wrap
16233 msgid ""
16234 " int\n"
16235 " guestfs_mount_loop (guestfs_h *g,\n"
16236 "                     const char *file,\n"
16237 "                     const char *mountpoint);\n"
16238 "\n"
16239 msgstr ""
16240
16241 # type: textblock
16242 #. type: textblock
16243 #: ../src/guestfs-actions.pod:5008 ../fish/guestfish-actions.pod:3313
16244 msgid ""
16245 "This command lets you mount C<file> (a filesystem image in a file) on a "
16246 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
16247 "mountpoint>."
16248 msgstr ""
16249
16250 # type: =head2
16251 #. type: =head2
16252 #: ../src/guestfs-actions.pod:5016
16253 msgid "guestfs_mount_options"
16254 msgstr ""
16255
16256 # type: verbatim
16257 #. type: verbatim
16258 #: ../src/guestfs-actions.pod:5018
16259 #, no-wrap
16260 msgid ""
16261 " int\n"
16262 " guestfs_mount_options (guestfs_h *g,\n"
16263 "                        const char *options,\n"
16264 "                        const char *device,\n"
16265 "                        const char *mountpoint);\n"
16266 "\n"
16267 msgstr ""
16268
16269 # type: textblock
16270 #. type: textblock
16271 #: ../src/guestfs-actions.pod:5024
16272 msgid ""
16273 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16274 "the mount options as for the L<mount(8)> I<-o> flag."
16275 msgstr ""
16276
16277 # type: textblock
16278 #. type: textblock
16279 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3325
16280 msgid ""
16281 "If the C<options> parameter is an empty string, then no options are passed "
16282 "(all options default to whatever the filesystem uses)."
16283 msgstr ""
16284
16285 # type: textblock
16286 #. type: textblock
16287 #: ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048
16288 #: ../src/guestfs-actions.pod:5065
16289 msgid "(Added in 1.0.10)"
16290 msgstr ""
16291
16292 # type: =head2
16293 #. type: =head2
16294 #: ../src/guestfs-actions.pod:5036
16295 msgid "guestfs_mount_ro"
16296 msgstr ""
16297
16298 # type: verbatim
16299 #. type: verbatim
16300 #: ../src/guestfs-actions.pod:5038
16301 #, no-wrap
16302 msgid ""
16303 " int\n"
16304 " guestfs_mount_ro (guestfs_h *g,\n"
16305 "                   const char *device,\n"
16306 "                   const char *mountpoint);\n"
16307 "\n"
16308 msgstr ""
16309
16310 # type: textblock
16311 #. type: textblock
16312 #: ../src/guestfs-actions.pod:5043
16313 msgid ""
16314 "This is the same as the C<guestfs_mount> command, but it mounts the "
16315 "filesystem with the read-only (I<-o ro>) flag."
16316 msgstr ""
16317
16318 # type: =head2
16319 #. type: =head2
16320 #: ../src/guestfs-actions.pod:5050
16321 msgid "guestfs_mount_vfs"
16322 msgstr ""
16323
16324 # type: verbatim
16325 #. type: verbatim
16326 #: ../src/guestfs-actions.pod:5052
16327 #, no-wrap
16328 msgid ""
16329 " int\n"
16330 " guestfs_mount_vfs (guestfs_h *g,\n"
16331 "                    const char *options,\n"
16332 "                    const char *vfstype,\n"
16333 "                    const char *device,\n"
16334 "                    const char *mountpoint);\n"
16335 "\n"
16336 msgstr ""
16337
16338 # type: textblock
16339 #. type: textblock
16340 #: ../src/guestfs-actions.pod:5059
16341 msgid ""
16342 "This is the same as the C<guestfs_mount> command, but it allows you to set "
16343 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
16344 "t> flags."
16345 msgstr ""
16346
16347 # type: =head2
16348 #. type: =head2
16349 #: ../src/guestfs-actions.pod:5067
16350 msgid "guestfs_mountpoints"
16351 msgstr ""
16352
16353 # type: verbatim
16354 #. type: verbatim
16355 #: ../src/guestfs-actions.pod:5069
16356 #, no-wrap
16357 msgid ""
16358 " char **\n"
16359 " guestfs_mountpoints (guestfs_h *g);\n"
16360 "\n"
16361 msgstr ""
16362
16363 # type: textblock
16364 #. type: textblock
16365 #: ../src/guestfs-actions.pod:5072
16366 msgid ""
16367 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
16368 "devices.  This one returns a hash table (map) of device name to directory "
16369 "where the device is mounted."
16370 msgstr ""
16371
16372 # type: =head2
16373 #. type: =head2
16374 #: ../src/guestfs-actions.pod:5084
16375 msgid "guestfs_mounts"
16376 msgstr ""
16377
16378 # type: verbatim
16379 #. type: verbatim
16380 #: ../src/guestfs-actions.pod:5086
16381 #, no-wrap
16382 msgid ""
16383 " char **\n"
16384 " guestfs_mounts (guestfs_h *g);\n"
16385 "\n"
16386 msgstr ""
16387
16388 # type: textblock
16389 #. type: textblock
16390 #: ../src/guestfs-actions.pod:5089 ../fish/guestfish-actions.pod:3356
16391 msgid ""
16392 "This returns the list of currently mounted filesystems.  It returns the list "
16393 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
16394 msgstr ""
16395
16396 # type: textblock
16397 #. type: textblock
16398 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3359
16399 msgid "Some internal mounts are not shown."
16400 msgstr ""
16401
16402 # type: textblock
16403 #. type: textblock
16404 #: ../src/guestfs-actions.pod:5094
16405 msgid "See also: C<guestfs_mountpoints>"
16406 msgstr ""
16407
16408 # type: =head2
16409 #. type: =head2
16410 #: ../src/guestfs-actions.pod:5102
16411 msgid "guestfs_mv"
16412 msgstr ""
16413
16414 # type: verbatim
16415 #. type: verbatim
16416 #: ../src/guestfs-actions.pod:5104
16417 #, no-wrap
16418 msgid ""
16419 " int\n"
16420 " guestfs_mv (guestfs_h *g,\n"
16421 "             const char *src,\n"
16422 "             const char *dest);\n"
16423 "\n"
16424 msgstr ""
16425
16426 # type: textblock
16427 #. type: textblock
16428 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3367
16429 msgid ""
16430 "This moves a file from C<src> to C<dest> where C<dest> is either a "
16431 "destination filename or destination directory."
16432 msgstr ""
16433
16434 # type: =head2
16435 #. type: =head2
16436 #: ../src/guestfs-actions.pod:5116
16437 msgid "guestfs_ntfs_3g_probe"
16438 msgstr ""
16439
16440 # type: verbatim
16441 #. type: verbatim
16442 #: ../src/guestfs-actions.pod:5118
16443 #, no-wrap
16444 msgid ""
16445 " int\n"
16446 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
16447 "                        int rw,\n"
16448 "                        const char *device);\n"
16449 "\n"
16450 msgstr ""
16451
16452 # type: textblock
16453 #. type: textblock
16454 #: ../src/guestfs-actions.pod:5123 ../fish/guestfish-actions.pod:3374
16455 msgid ""
16456 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
16457 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
16458 "write, and some cannot be mounted at all)."
16459 msgstr ""
16460
16461 # type: textblock
16462 #. type: textblock
16463 #: ../src/guestfs-actions.pod:5127 ../fish/guestfish-actions.pod:3378
16464 msgid ""
16465 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
16466 "can be mounted read-write.  Set it to false if you want to test if the "
16467 "volume can be mounted read-only."
16468 msgstr ""
16469
16470 # type: textblock
16471 #. type: textblock
16472 #: ../src/guestfs-actions.pod:5131 ../fish/guestfish-actions.pod:3382
16473 msgid ""
16474 "The return value is an integer which C<0> if the operation would succeed, or "
16475 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
16476 msgstr ""
16477
16478 # type: textblock
16479 #. type: textblock
16480 #: ../src/guestfs-actions.pod:5137
16481 msgid "(Added in 1.0.43)"
16482 msgstr ""
16483
16484 # type: =head2
16485 #. type: =head2
16486 #: ../src/guestfs-actions.pod:5139
16487 msgid "guestfs_ntfsresize"
16488 msgstr ""
16489
16490 # type: verbatim
16491 #. type: verbatim
16492 #: ../src/guestfs-actions.pod:5141
16493 #, no-wrap
16494 msgid ""
16495 " int\n"
16496 " guestfs_ntfsresize (guestfs_h *g,\n"
16497 "                     const char *device);\n"
16498 "\n"
16499 msgstr ""
16500
16501 #. type: textblock
16502 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5184
16503 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414
16504 msgid ""
16505 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
16506 "size of the underlying device."
16507 msgstr ""
16508
16509 #. type: textblock
16510 #: ../src/guestfs-actions.pod:5148 ../fish/guestfish-actions.pod:3393
16511 msgid ""
16512 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
16513 "consistency check (for safety).  You have to boot into Windows to perform "
16514 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
16515 "resize filesystems which have been marked in this way.  So in effect it is "
16516 "not possible to call ntfsresize multiple times on a single filesystem "
16517 "without booting into Windows between each resize."
16518 msgstr ""
16519
16520 #. type: textblock
16521 #: ../src/guestfs-actions.pod:5156 ../src/guestfs-actions.pod:5210
16522 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440
16523 msgid "See also L<ntfsresize(8)>."
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5250
16528 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
16529 msgid ""
16530 "This function is deprecated.  In new code, use the C<ntfsresize_opts> call "
16531 "instead."
16532 msgstr ""
16533
16534 #. type: =head2
16535 #: ../src/guestfs-actions.pod:5169
16536 msgid "guestfs_ntfsresize_opts"
16537 msgstr ""
16538
16539 #. type: verbatim
16540 #: ../src/guestfs-actions.pod:5171
16541 #, no-wrap
16542 msgid ""
16543 " int\n"
16544 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
16545 "                          const char *device,\n"
16546 "                          ...);\n"
16547 "\n"
16548 msgstr ""
16549
16550 #. type: verbatim
16551 #: ../src/guestfs-actions.pod:5181
16552 #, no-wrap
16553 msgid ""
16554 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
16555 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
16556 "\n"
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../src/guestfs-actions.pod:5193 ../fish/guestfish-actions.pod:3423
16561 msgid ""
16562 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
16563 "resized to fit the container (eg. partition)."
16564 msgstr ""
16565
16566 #. type: =item
16567 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3426
16568 msgid "C<force>"
16569 msgstr ""
16570
16571 #. type: textblock
16572 #: ../src/guestfs-actions.pod:5198 ../fish/guestfish-actions.pod:3428
16573 msgid ""
16574 "If this option is true, then force the resize of the filesystem even if the "
16575 "filesystem is marked as requiring a consistency check."
16576 msgstr ""
16577
16578 #. type: textblock
16579 #: ../src/guestfs-actions.pod:5201
16580 msgid ""
16581 "After the resize operation, the filesystem is always marked as requiring a "
16582 "consistency check (for safety).  You have to boot into Windows to perform "
16583 "this check and clear this condition.  If you I<don't> set the C<force> "
16584 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
16585 "times on a single filesystem without booting into Windows between each "
16586 "resize."
16587 msgstr ""
16588
16589 #. type: =head2
16590 #: ../src/guestfs-actions.pod:5216
16591 msgid "guestfs_ntfsresize_opts_va"
16592 msgstr ""
16593
16594 #. type: verbatim
16595 #: ../src/guestfs-actions.pod:5218
16596 #, no-wrap
16597 msgid ""
16598 " int\n"
16599 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
16600 "                             const char *device,\n"
16601 "                             va_list args);\n"
16602 "\n"
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../src/guestfs-actions.pod:5223
16607 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
16608 msgstr ""
16609
16610 #. type: =head2
16611 #: ../src/guestfs-actions.pod:5227
16612 msgid "guestfs_ntfsresize_opts_argv"
16613 msgstr ""
16614
16615 #. type: verbatim
16616 #: ../src/guestfs-actions.pod:5229
16617 #, no-wrap
16618 msgid ""
16619 " int\n"
16620 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
16621 "                               const char *device,\n"
16622 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
16623 "\n"
16624 msgstr ""
16625
16626 #. type: textblock
16627 #: ../src/guestfs-actions.pod:5234
16628 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
16629 msgstr ""
16630
16631 # type: =head2
16632 #. type: =head2
16633 #: ../src/guestfs-actions.pod:5238
16634 msgid "guestfs_ntfsresize_size"
16635 msgstr ""
16636
16637 # type: verbatim
16638 #. type: verbatim
16639 #: ../src/guestfs-actions.pod:5240
16640 #, no-wrap
16641 msgid ""
16642 " int\n"
16643 " guestfs_ntfsresize_size (guestfs_h *g,\n"
16644 "                          const char *device,\n"
16645 "                          int64_t size);\n"
16646 "\n"
16647 msgstr ""
16648
16649 # type: textblock
16650 #. type: textblock
16651 #: ../src/guestfs-actions.pod:5245
16652 msgid ""
16653 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
16654 "to specify the new size (in bytes) explicitly."
16655 msgstr ""
16656
16657 # type: textblock
16658 #. type: textblock
16659 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5693
16660 #: ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:6034
16661 #: ../src/guestfs-actions.pod:7655
16662 msgid "(Added in 1.3.14)"
16663 msgstr ""
16664
16665 # type: =head2
16666 #. type: =head2
16667 #: ../src/guestfs-actions.pod:5259
16668 msgid "guestfs_part_add"
16669 msgstr ""
16670
16671 # type: verbatim
16672 #. type: verbatim
16673 #: ../src/guestfs-actions.pod:5261
16674 #, no-wrap
16675 msgid ""
16676 " int\n"
16677 " guestfs_part_add (guestfs_h *g,\n"
16678 "                   const char *device,\n"
16679 "                   const char *prlogex,\n"
16680 "                   int64_t startsect,\n"
16681 "                   int64_t endsect);\n"
16682 "\n"
16683 msgstr ""
16684
16685 # type: textblock
16686 #. type: textblock
16687 #: ../src/guestfs-actions.pod:5268
16688 msgid ""
16689 "This command adds a partition to C<device>.  If there is no partition table "
16690 "on the device, call C<guestfs_part_init> first."
16691 msgstr ""
16692
16693 # type: textblock
16694 #. type: textblock
16695 #: ../src/guestfs-actions.pod:5271 ../fish/guestfish-actions.pod:3465
16696 msgid ""
16697 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
16698 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
16699 "C<logical>) and C<e> (or C<extended>) partition types."
16700 msgstr ""
16701
16702 # type: textblock
16703 #. type: textblock
16704 #: ../src/guestfs-actions.pod:5276 ../fish/guestfish-actions.pod:3470
16705 msgid ""
16706 "C<startsect> and C<endsect> are the start and end of the partition in "
16707 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
16708 "from the end of the disk (C<-1> is the last sector)."
16709 msgstr ""
16710
16711 # type: textblock
16712 #. type: textblock
16713 #: ../src/guestfs-actions.pod:5280
16714 msgid ""
16715 "Creating a partition which covers the whole disk is not so easy.  Use "
16716 "C<guestfs_part_disk> to do that."
16717 msgstr ""
16718
16719 # type: textblock
16720 #. type: textblock
16721 #: ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5323
16722 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5454
16723 #: ../src/guestfs-actions.pod:5492 ../src/guestfs-actions.pod:5511
16724 #: ../src/guestfs-actions.pod:5551
16725 msgid "(Added in 1.0.78)"
16726 msgstr ""
16727
16728 # type: =head2
16729 #. type: =head2
16730 #: ../src/guestfs-actions.pod:5287
16731 msgid "guestfs_part_del"
16732 msgstr ""
16733
16734 # type: verbatim
16735 #. type: verbatim
16736 #: ../src/guestfs-actions.pod:5289
16737 #, no-wrap
16738 msgid ""
16739 " int\n"
16740 " guestfs_part_del (guestfs_h *g,\n"
16741 "                   const char *device,\n"
16742 "                   int partnum);\n"
16743 "\n"
16744 msgstr ""
16745
16746 # type: textblock
16747 #. type: textblock
16748 #: ../src/guestfs-actions.pod:5294 ../fish/guestfish-actions.pod:3481
16749 msgid "This command deletes the partition numbered C<partnum> on C<device>."
16750 msgstr ""
16751
16752 # type: textblock
16753 #. type: textblock
16754 #: ../src/guestfs-actions.pod:5296 ../fish/guestfish-actions.pod:3483
16755 msgid ""
16756 "Note that in the case of MBR partitioning, deleting an extended partition "
16757 "also deletes any logical partitions it contains."
16758 msgstr ""
16759
16760 # type: =head2
16761 #. type: =head2
16762 #: ../src/guestfs-actions.pod:5304
16763 msgid "guestfs_part_disk"
16764 msgstr ""
16765
16766 # type: verbatim
16767 #. type: verbatim
16768 #: ../src/guestfs-actions.pod:5306
16769 #, no-wrap
16770 msgid ""
16771 " int\n"
16772 " guestfs_part_disk (guestfs_h *g,\n"
16773 "                    const char *device,\n"
16774 "                    const char *parttype);\n"
16775 "\n"
16776 msgstr ""
16777
16778 # type: textblock
16779 #. type: textblock
16780 #: ../src/guestfs-actions.pod:5311
16781 msgid ""
16782 "This command is simply a combination of C<guestfs_part_init> followed by "
16783 "C<guestfs_part_add> to create a single primary partition covering the whole "
16784 "disk."
16785 msgstr ""
16786
16787 # type: textblock
16788 #. type: textblock
16789 #: ../src/guestfs-actions.pod:5315
16790 msgid ""
16791 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
16792 "possible values are described in C<guestfs_part_init>."
16793 msgstr ""
16794
16795 # type: =head2
16796 #. type: =head2
16797 #: ../src/guestfs-actions.pod:5325
16798 msgid "guestfs_part_get_bootable"
16799 msgstr ""
16800
16801 # type: verbatim
16802 #. type: verbatim
16803 #: ../src/guestfs-actions.pod:5327
16804 #, no-wrap
16805 msgid ""
16806 " int\n"
16807 " guestfs_part_get_bootable (guestfs_h *g,\n"
16808 "                            const char *device,\n"
16809 "                            int partnum);\n"
16810 "\n"
16811 msgstr ""
16812
16813 # type: textblock
16814 #. type: textblock
16815 #: ../src/guestfs-actions.pod:5332 ../fish/guestfish-actions.pod:3505
16816 msgid ""
16817 "This command returns true if the partition C<partnum> on C<device> has the "
16818 "bootable flag set."
16819 msgstr ""
16820
16821 # type: textblock
16822 #. type: textblock
16823 #: ../src/guestfs-actions.pod:5335
16824 msgid "See also C<guestfs_part_set_bootable>."
16825 msgstr ""
16826
16827 # type: =head2
16828 #. type: =head2
16829 #: ../src/guestfs-actions.pod:5341
16830 msgid "guestfs_part_get_mbr_id"
16831 msgstr ""
16832
16833 # type: verbatim
16834 #. type: verbatim
16835 #: ../src/guestfs-actions.pod:5343
16836 #, no-wrap
16837 msgid ""
16838 " int\n"
16839 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
16840 "                          const char *device,\n"
16841 "                          int partnum);\n"
16842 "\n"
16843 msgstr ""
16844
16845 # type: textblock
16846 #. type: textblock
16847 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3514
16848 msgid ""
16849 "Returns the MBR type byte (also known as the ID byte) from the numbered "
16850 "partition C<partnum>."
16851 msgstr ""
16852
16853 # type: textblock
16854 #. type: textblock
16855 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5527
16856 msgid ""
16857 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
16858 "undefined results for other partition table types (see "
16859 "C<guestfs_part_get_parttype>)."
16860 msgstr ""
16861
16862 # type: =head2
16863 #. type: =head2
16864 #: ../src/guestfs-actions.pod:5359
16865 msgid "guestfs_part_get_parttype"
16866 msgstr ""
16867
16868 # type: verbatim
16869 #. type: verbatim
16870 #: ../src/guestfs-actions.pod:5361
16871 #, no-wrap
16872 msgid ""
16873 " char *\n"
16874 " guestfs_part_get_parttype (guestfs_h *g,\n"
16875 "                            const char *device);\n"
16876 "\n"
16877 msgstr ""
16878
16879 # type: textblock
16880 #. type: textblock
16881 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3525
16882 msgid ""
16883 "This command examines the partition table on C<device> and returns the "
16884 "partition table type (format) being used."
16885 msgstr ""
16886
16887 # type: textblock
16888 #. type: textblock
16889 #: ../src/guestfs-actions.pod:5368
16890 msgid ""
16891 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
16892 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
16893 "possible, although unusual.  See C<guestfs_part_init> for a full list."
16894 msgstr ""
16895
16896 # type: =head2
16897 #. type: =head2
16898 #: ../src/guestfs-actions.pod:5378
16899 msgid "guestfs_part_init"
16900 msgstr ""
16901
16902 # type: verbatim
16903 #. type: verbatim
16904 #: ../src/guestfs-actions.pod:5380
16905 #, no-wrap
16906 msgid ""
16907 " int\n"
16908 " guestfs_part_init (guestfs_h *g,\n"
16909 "                    const char *device,\n"
16910 "                    const char *parttype);\n"
16911 "\n"
16912 msgstr ""
16913
16914 # type: textblock
16915 #. type: textblock
16916 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3537
16917 msgid ""
16918 "This creates an empty partition table on C<device> of one of the partition "
16919 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
16920 "(for large disks)."
16921 msgstr ""
16922
16923 # type: textblock
16924 #. type: textblock
16925 #: ../src/guestfs-actions.pod:5389
16926 msgid ""
16927 "Initially there are no partitions.  Following this, you should call "
16928 "C<guestfs_part_add> for each partition required."
16929 msgstr ""
16930
16931 # type: textblock
16932 #. type: textblock
16933 #: ../src/guestfs-actions.pod:5392 ../fish/guestfish-actions.pod:3544
16934 msgid "Possible values for C<parttype> are:"
16935 msgstr ""
16936
16937 # type: =item
16938 #. type: =item
16939 #: ../src/guestfs-actions.pod:5396 ../fish/guestfish-actions.pod:3548
16940 msgid "B<efi> | B<gpt>"
16941 msgstr ""
16942
16943 # type: textblock
16944 #. type: textblock
16945 #: ../src/guestfs-actions.pod:5398 ../fish/guestfish-actions.pod:3550
16946 msgid "Intel EFI / GPT partition table."
16947 msgstr ""
16948
16949 # type: textblock
16950 #. type: textblock
16951 #: ../src/guestfs-actions.pod:5400 ../fish/guestfish-actions.pod:3552
16952 msgid ""
16953 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
16954 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
16955 "the C<mbr> format."
16956 msgstr ""
16957
16958 # type: =item
16959 #. type: =item
16960 #: ../src/guestfs-actions.pod:5404 ../fish/guestfish-actions.pod:3556
16961 msgid "B<mbr> | B<msdos>"
16962 msgstr ""
16963
16964 # type: textblock
16965 #. type: textblock
16966 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:3558
16967 msgid ""
16968 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
16969 "Windows.  This partition type will B<only> work for device sizes up to 2 "
16970 "TB.  For large disks we recommend using C<gpt>."
16971 msgstr ""
16972
16973 # type: textblock
16974 #. type: textblock
16975 #: ../src/guestfs-actions.pod:5413 ../fish/guestfish-actions.pod:3565
16976 msgid ""
16977 "Other partition table types that may work but are not supported include:"
16978 msgstr ""
16979
16980 # type: =item
16981 #. type: =item
16982 #: ../src/guestfs-actions.pod:5418 ../fish/guestfish-actions.pod:3570
16983 msgid "B<aix>"
16984 msgstr ""
16985
16986 # type: textblock
16987 #. type: textblock
16988 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3572
16989 msgid "AIX disk labels."
16990 msgstr ""
16991
16992 # type: =item
16993 #. type: =item
16994 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3574
16995 msgid "B<amiga> | B<rdb>"
16996 msgstr ""
16997
16998 # type: textblock
16999 #. type: textblock
17000 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3576
17001 msgid "Amiga \"Rigid Disk Block\" format."
17002 msgstr ""
17003
17004 # type: =item
17005 #. type: =item
17006 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3578
17007 msgid "B<bsd>"
17008 msgstr ""
17009
17010 # type: textblock
17011 #. type: textblock
17012 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3580
17013 msgid "BSD disk labels."
17014 msgstr ""
17015
17016 # type: =item
17017 #. type: =item
17018 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3582
17019 msgid "B<dasd>"
17020 msgstr ""
17021
17022 # type: textblock
17023 #. type: textblock
17024 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3584
17025 msgid "DASD, used on IBM mainframes."
17026 msgstr ""
17027
17028 # type: =item
17029 #. type: =item
17030 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3586
17031 msgid "B<dvh>"
17032 msgstr ""
17033
17034 # type: textblock
17035 #. type: textblock
17036 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3588
17037 msgid "MIPS/SGI volumes."
17038 msgstr ""
17039
17040 # type: =item
17041 #. type: =item
17042 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3590
17043 msgid "B<mac>"
17044 msgstr ""
17045
17046 # type: textblock
17047 #. type: textblock
17048 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3592
17049 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
17050 msgstr ""
17051
17052 # type: =item
17053 #. type: =item
17054 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3594
17055 msgid "B<pc98>"
17056 msgstr ""
17057
17058 # type: textblock
17059 #. type: textblock
17060 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3596
17061 msgid "NEC PC-98 format, common in Japan apparently."
17062 msgstr ""
17063
17064 # type: =item
17065 #. type: =item
17066 #: ../src/guestfs-actions.pod:5446 ../fish/guestfish-actions.pod:3598
17067 msgid "B<sun>"
17068 msgstr ""
17069
17070 # type: textblock
17071 #. type: textblock
17072 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3600
17073 msgid "Sun disk labels."
17074 msgstr ""
17075
17076 # type: =head2
17077 #. type: =head2
17078 #: ../src/guestfs-actions.pod:5456
17079 msgid "guestfs_part_list"
17080 msgstr ""
17081
17082 # type: verbatim
17083 #. type: verbatim
17084 #: ../src/guestfs-actions.pod:5458
17085 #, no-wrap
17086 msgid ""
17087 " struct guestfs_partition_list *\n"
17088 " guestfs_part_list (guestfs_h *g,\n"
17089 "                    const char *device);\n"
17090 "\n"
17091 msgstr ""
17092
17093 # type: textblock
17094 #. type: textblock
17095 #: ../src/guestfs-actions.pod:5462 ../fish/guestfish-actions.pod:3608
17096 msgid ""
17097 "This command parses the partition table on C<device> and returns the list of "
17098 "partitions found."
17099 msgstr ""
17100
17101 # type: textblock
17102 #. type: textblock
17103 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:3611
17104 msgid "The fields in the returned structure are:"
17105 msgstr ""
17106
17107 # type: =item
17108 #. type: =item
17109 #: ../src/guestfs-actions.pod:5469 ../fish/guestfish-actions.pod:3615
17110 msgid "B<part_num>"
17111 msgstr ""
17112
17113 # type: textblock
17114 #. type: textblock
17115 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3617
17116 msgid "Partition number, counting from 1."
17117 msgstr ""
17118
17119 # type: =item
17120 #. type: =item
17121 #: ../src/guestfs-actions.pod:5473 ../fish/guestfish-actions.pod:3619
17122 msgid "B<part_start>"
17123 msgstr ""
17124
17125 # type: textblock
17126 #. type: textblock
17127 #: ../src/guestfs-actions.pod:5475
17128 msgid ""
17129 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
17130 "the device's sector size, see C<guestfs_blockdev_getss>."
17131 msgstr ""
17132
17133 # type: =item
17134 #. type: =item
17135 #: ../src/guestfs-actions.pod:5478 ../fish/guestfish-actions.pod:3624
17136 msgid "B<part_end>"
17137 msgstr ""
17138
17139 # type: textblock
17140 #. type: textblock
17141 #: ../src/guestfs-actions.pod:5480 ../fish/guestfish-actions.pod:3626
17142 msgid "End of the partition in bytes."
17143 msgstr ""
17144
17145 # type: =item
17146 #. type: =item
17147 #: ../src/guestfs-actions.pod:5482 ../fish/guestfish-actions.pod:3628
17148 msgid "B<part_size>"
17149 msgstr ""
17150
17151 # type: textblock
17152 #. type: textblock
17153 #: ../src/guestfs-actions.pod:5484 ../fish/guestfish-actions.pod:3630
17154 msgid "Size of the partition in bytes."
17155 msgstr ""
17156
17157 # type: textblock
17158 #. type: textblock
17159 #: ../src/guestfs-actions.pod:5488
17160 msgid ""
17161 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
17162 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
17163 "use>."
17164 msgstr ""
17165
17166 # type: =head2
17167 #. type: =head2
17168 #: ../src/guestfs-actions.pod:5494
17169 msgid "guestfs_part_set_bootable"
17170 msgstr ""
17171
17172 # type: verbatim
17173 #. type: verbatim
17174 #: ../src/guestfs-actions.pod:5496
17175 #, no-wrap
17176 msgid ""
17177 " int\n"
17178 " guestfs_part_set_bootable (guestfs_h *g,\n"
17179 "                            const char *device,\n"
17180 "                            int partnum,\n"
17181 "                            int bootable);\n"
17182 "\n"
17183 msgstr ""
17184
17185 # type: textblock
17186 #. type: textblock
17187 #: ../src/guestfs-actions.pod:5502 ../fish/guestfish-actions.pod:3638
17188 msgid ""
17189 "This sets the bootable flag on partition numbered C<partnum> on device "
17190 "C<device>.  Note that partitions are numbered from 1."
17191 msgstr ""
17192
17193 # type: textblock
17194 #. type: textblock
17195 #: ../src/guestfs-actions.pod:5505 ../fish/guestfish-actions.pod:3641
17196 msgid ""
17197 "The bootable flag is used by some operating systems (notably Windows) to "
17198 "determine which partition to boot from.  It is by no means universally "
17199 "recognized."
17200 msgstr ""
17201
17202 # type: =head2
17203 #. type: =head2
17204 #: ../src/guestfs-actions.pod:5513
17205 msgid "guestfs_part_set_mbr_id"
17206 msgstr ""
17207
17208 # type: verbatim
17209 #. type: verbatim
17210 #: ../src/guestfs-actions.pod:5515
17211 #, no-wrap
17212 msgid ""
17213 " int\n"
17214 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
17215 "                          const char *device,\n"
17216 "                          int partnum,\n"
17217 "                          int idbyte);\n"
17218 "\n"
17219 msgstr ""
17220
17221 # type: textblock
17222 #. type: textblock
17223 #: ../src/guestfs-actions.pod:5521 ../fish/guestfish-actions.pod:3649
17224 msgid ""
17225 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
17226 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
17227 "documentation are in fact hexadecimal numbers, but usually documented "
17228 "without any leading \"0x\" which might be confusing."
17229 msgstr ""
17230
17231 # type: =head2
17232 #. type: =head2
17233 #: ../src/guestfs-actions.pod:5535
17234 msgid "guestfs_part_set_name"
17235 msgstr ""
17236
17237 # type: verbatim
17238 #. type: verbatim
17239 #: ../src/guestfs-actions.pod:5537
17240 #, no-wrap
17241 msgid ""
17242 " int\n"
17243 " guestfs_part_set_name (guestfs_h *g,\n"
17244 "                        const char *device,\n"
17245 "                        int partnum,\n"
17246 "                        const char *name);\n"
17247 "\n"
17248 msgstr ""
17249
17250 # type: textblock
17251 #. type: textblock
17252 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3663
17253 msgid ""
17254 "This sets the partition name on partition numbered C<partnum> on device "
17255 "C<device>.  Note that partitions are numbered from 1."
17256 msgstr ""
17257
17258 # type: textblock
17259 #. type: textblock
17260 #: ../src/guestfs-actions.pod:5546 ../fish/guestfish-actions.pod:3666
17261 msgid ""
17262 "The partition name can only be set on certain types of partition table.  "
17263 "This works on C<gpt> but not on C<mbr> partitions."
17264 msgstr ""
17265
17266 # type: =head2
17267 #. type: =head2
17268 #: ../src/guestfs-actions.pod:5553
17269 msgid "guestfs_part_to_dev"
17270 msgstr ""
17271
17272 # type: verbatim
17273 #. type: verbatim
17274 #: ../src/guestfs-actions.pod:5555
17275 #, no-wrap
17276 msgid ""
17277 " char *\n"
17278 " guestfs_part_to_dev (guestfs_h *g,\n"
17279 "                      const char *partition);\n"
17280 "\n"
17281 msgstr ""
17282
17283 # type: textblock
17284 #. type: textblock
17285 #: ../src/guestfs-actions.pod:5559 ../fish/guestfish-actions.pod:3673
17286 msgid ""
17287 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
17288 "partition number, returning the device name (eg. \"/dev/sdb\")."
17289 msgstr ""
17290
17291 # type: textblock
17292 #. type: textblock
17293 #: ../src/guestfs-actions.pod:5563
17294 msgid ""
17295 "The named partition must exist, for example as a string returned from "
17296 "C<guestfs_list_partitions>."
17297 msgstr ""
17298
17299 # type: =head2
17300 #. type: =head2
17301 #: ../src/guestfs-actions.pod:5571
17302 msgid "guestfs_ping_daemon"
17303 msgstr ""
17304
17305 # type: verbatim
17306 #. type: verbatim
17307 #: ../src/guestfs-actions.pod:5573
17308 #, no-wrap
17309 msgid ""
17310 " int\n"
17311 " guestfs_ping_daemon (guestfs_h *g);\n"
17312 "\n"
17313 msgstr ""
17314
17315 # type: textblock
17316 #. type: textblock
17317 #: ../src/guestfs-actions.pod:5576 ../fish/guestfish-actions.pod:3684
17318 msgid ""
17319 "This is a test probe into the guestfs daemon running inside the qemu "
17320 "subprocess.  Calling this function checks that the daemon responds to the "
17321 "ping message, without affecting the daemon or attached block device(s) in "
17322 "any other way."
17323 msgstr ""
17324
17325 # type: =head2
17326 #. type: =head2
17327 #: ../src/guestfs-actions.pod:5585
17328 msgid "guestfs_pread"
17329 msgstr ""
17330
17331 # type: verbatim
17332 #. type: verbatim
17333 #: ../src/guestfs-actions.pod:5587
17334 #, no-wrap
17335 msgid ""
17336 " char *\n"
17337 " guestfs_pread (guestfs_h *g,\n"
17338 "                const char *path,\n"
17339 "                int count,\n"
17340 "                int64_t offset,\n"
17341 "                size_t *size_r);\n"
17342 "\n"
17343 msgstr ""
17344
17345 # type: textblock
17346 #. type: textblock
17347 #: ../src/guestfs-actions.pod:5594 ../fish/guestfish-actions.pod:3693
17348 msgid ""
17349 "This command lets you read part of a file.  It reads C<count> bytes of the "
17350 "file, starting at C<offset>, from file C<path>."
17351 msgstr ""
17352
17353 # type: textblock
17354 #. type: textblock
17355 #: ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:5623
17356 #: ../fish/guestfish-actions.pod:3696 ../fish/guestfish-actions.pod:3711
17357 msgid ""
17358 "This may read fewer bytes than requested.  For further details see the "
17359 "L<pread(2)> system call."
17360 msgstr ""
17361
17362 # type: textblock
17363 #. type: textblock
17364 #: ../src/guestfs-actions.pod:5600
17365 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
17366 msgstr ""
17367
17368 # type: =head2
17369 #. type: =head2
17370 #: ../src/guestfs-actions.pod:5611
17371 msgid "guestfs_pread_device"
17372 msgstr ""
17373
17374 # type: verbatim
17375 #. type: verbatim
17376 #: ../src/guestfs-actions.pod:5613
17377 #, no-wrap
17378 msgid ""
17379 " char *\n"
17380 " guestfs_pread_device (guestfs_h *g,\n"
17381 "                       const char *device,\n"
17382 "                       int count,\n"
17383 "                       int64_t offset,\n"
17384 "                       size_t *size_r);\n"
17385 "\n"
17386 msgstr ""
17387
17388 # type: textblock
17389 #. type: textblock
17390 #: ../src/guestfs-actions.pod:5620 ../fish/guestfish-actions.pod:3708
17391 msgid ""
17392 "This command lets you read part of a file.  It reads C<count> bytes of "
17393 "C<device>, starting at C<offset>."
17394 msgstr ""
17395
17396 # type: textblock
17397 #. type: textblock
17398 #: ../src/guestfs-actions.pod:5626
17399 msgid "See also C<guestfs_pread>."
17400 msgstr ""
17401
17402 # type: textblock
17403 #. type: textblock
17404 #: ../src/guestfs-actions.pod:5635
17405 msgid "(Added in 1.5.21)"
17406 msgstr ""
17407
17408 # type: =head2
17409 #. type: =head2
17410 #: ../src/guestfs-actions.pod:5637
17411 msgid "guestfs_pvcreate"
17412 msgstr ""
17413
17414 # type: verbatim
17415 #. type: verbatim
17416 #: ../src/guestfs-actions.pod:5639
17417 #, no-wrap
17418 msgid ""
17419 " int\n"
17420 " guestfs_pvcreate (guestfs_h *g,\n"
17421 "                   const char *device);\n"
17422 "\n"
17423 msgstr ""
17424
17425 # type: textblock
17426 #. type: textblock
17427 #: ../src/guestfs-actions.pod:5643 ../fish/guestfish-actions.pod:3723
17428 msgid ""
17429 "This creates an LVM physical volume on the named C<device>, where C<device> "
17430 "should usually be a partition name such as C</dev/sda1>."
17431 msgstr ""
17432
17433 # type: =head2
17434 #. type: =head2
17435 #: ../src/guestfs-actions.pod:5651
17436 msgid "guestfs_pvremove"
17437 msgstr ""
17438
17439 # type: verbatim
17440 #. type: verbatim
17441 #: ../src/guestfs-actions.pod:5653
17442 #, no-wrap
17443 msgid ""
17444 " int\n"
17445 " guestfs_pvremove (guestfs_h *g,\n"
17446 "                   const char *device);\n"
17447 "\n"
17448 msgstr ""
17449
17450 # type: textblock
17451 #. type: textblock
17452 #: ../src/guestfs-actions.pod:5657 ../fish/guestfish-actions.pod:3731
17453 msgid ""
17454 "This wipes a physical volume C<device> so that LVM will no longer recognise "
17455 "it."
17456 msgstr ""
17457
17458 # type: textblock
17459 #. type: textblock
17460 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3734
17461 msgid ""
17462 "The implementation uses the C<pvremove> command which refuses to wipe "
17463 "physical volumes that contain any volume groups, so you have to remove those "
17464 "first."
17465 msgstr ""
17466
17467 # type: =head2
17468 #. type: =head2
17469 #: ../src/guestfs-actions.pod:5668
17470 msgid "guestfs_pvresize"
17471 msgstr ""
17472
17473 # type: verbatim
17474 #. type: verbatim
17475 #: ../src/guestfs-actions.pod:5670
17476 #, no-wrap
17477 msgid ""
17478 " int\n"
17479 " guestfs_pvresize (guestfs_h *g,\n"
17480 "                   const char *device);\n"
17481 "\n"
17482 msgstr ""
17483
17484 # type: textblock
17485 #. type: textblock
17486 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3742
17487 msgid ""
17488 "This resizes (expands or shrinks) an existing LVM physical volume to match "
17489 "the new size of the underlying device."
17490 msgstr ""
17491
17492 # type: =head2
17493 #. type: =head2
17494 #: ../src/guestfs-actions.pod:5681
17495 msgid "guestfs_pvresize_size"
17496 msgstr ""
17497
17498 # type: verbatim
17499 #. type: verbatim
17500 #: ../src/guestfs-actions.pod:5683
17501 #, no-wrap
17502 msgid ""
17503 " int\n"
17504 " guestfs_pvresize_size (guestfs_h *g,\n"
17505 "                        const char *device,\n"
17506 "                        int64_t size);\n"
17507 "\n"
17508 msgstr ""
17509
17510 # type: textblock
17511 #. type: textblock
17512 #: ../src/guestfs-actions.pod:5688
17513 msgid ""
17514 "This command is the same as C<guestfs_pvresize> except that it allows you to "
17515 "specify the new size (in bytes) explicitly."
17516 msgstr ""
17517
17518 # type: =head2
17519 #. type: =head2
17520 #: ../src/guestfs-actions.pod:5695
17521 msgid "guestfs_pvs"
17522 msgstr ""
17523
17524 # type: verbatim
17525 #. type: verbatim
17526 #: ../src/guestfs-actions.pod:5697
17527 #, no-wrap
17528 msgid ""
17529 " char **\n"
17530 " guestfs_pvs (guestfs_h *g);\n"
17531 "\n"
17532 msgstr ""
17533
17534 # type: textblock
17535 #. type: textblock
17536 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3756
17537 msgid ""
17538 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17539 "(8)> command."
17540 msgstr ""
17541
17542 # type: textblock
17543 #. type: textblock
17544 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3759
17545 msgid ""
17546 "This returns a list of just the device names that contain PVs (eg. C</dev/"
17547 "sda2>)."
17548 msgstr ""
17549
17550 # type: textblock
17551 #. type: textblock
17552 #: ../src/guestfs-actions.pod:5706
17553 msgid "See also C<guestfs_pvs_full>."
17554 msgstr ""
17555
17556 # type: =head2
17557 #. type: =head2
17558 #: ../src/guestfs-actions.pod:5714
17559 msgid "guestfs_pvs_full"
17560 msgstr ""
17561
17562 # type: verbatim
17563 #. type: verbatim
17564 #: ../src/guestfs-actions.pod:5716
17565 #, no-wrap
17566 msgid ""
17567 " struct guestfs_lvm_pv_list *\n"
17568 " guestfs_pvs_full (guestfs_h *g);\n"
17569 "\n"
17570 msgstr ""
17571
17572 # type: textblock
17573 #. type: textblock
17574 #: ../src/guestfs-actions.pod:5719 ../fish/guestfish-actions.pod:3768
17575 msgid ""
17576 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
17577 "(8)> command.  The \"full\" version includes all fields."
17578 msgstr ""
17579
17580 # type: textblock
17581 #. type: textblock
17582 #: ../src/guestfs-actions.pod:5722
17583 msgid ""
17584 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
17585 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
17586 msgstr ""
17587
17588 # type: =head2
17589 #. type: =head2
17590 #: ../src/guestfs-actions.pod:5728
17591 msgid "guestfs_pvuuid"
17592 msgstr ""
17593
17594 # type: verbatim
17595 #. type: verbatim
17596 #: ../src/guestfs-actions.pod:5730
17597 #, no-wrap
17598 msgid ""
17599 " char *\n"
17600 " guestfs_pvuuid (guestfs_h *g,\n"
17601 "                 const char *device);\n"
17602 "\n"
17603 msgstr ""
17604
17605 # type: textblock
17606 #. type: textblock
17607 #: ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:3775
17608 msgid "This command returns the UUID of the LVM PV C<device>."
17609 msgstr ""
17610
17611 # type: =head2
17612 #. type: =head2
17613 #: ../src/guestfs-actions.pod:5741
17614 msgid "guestfs_pwrite"
17615 msgstr ""
17616
17617 # type: verbatim
17618 #. type: verbatim
17619 #: ../src/guestfs-actions.pod:5743
17620 #, no-wrap
17621 msgid ""
17622 " int\n"
17623 " guestfs_pwrite (guestfs_h *g,\n"
17624 "                 const char *path,\n"
17625 "                 const char *content,\n"
17626 "                 size_t content_size,\n"
17627 "                 int64_t offset);\n"
17628 "\n"
17629 msgstr ""
17630
17631 # type: textblock
17632 #. type: textblock
17633 #: ../src/guestfs-actions.pod:5750 ../fish/guestfish-actions.pod:3781
17634 msgid ""
17635 "This command writes to part of a file.  It writes the data buffer C<content> "
17636 "to the file C<path> starting at offset C<offset>."
17637 msgstr ""
17638
17639 # type: textblock
17640 #. type: textblock
17641 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3784
17642 msgid ""
17643 "This command implements the L<pwrite(2)> system call, and like that system "
17644 "call it may not write the full data requested.  The return value is the "
17645 "number of bytes that were actually written to the file.  This could even be "
17646 "0, although short writes are unlikely for regular files in ordinary "
17647 "circumstances."
17648 msgstr ""
17649
17650 # type: textblock
17651 #. type: textblock
17652 #: ../src/guestfs-actions.pod:5759
17653 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
17654 msgstr ""
17655
17656 # type: =head2
17657 #. type: =head2
17658 #: ../src/guestfs-actions.pod:5768
17659 msgid "guestfs_pwrite_device"
17660 msgstr ""
17661
17662 # type: verbatim
17663 #. type: verbatim
17664 #: ../src/guestfs-actions.pod:5770
17665 #, no-wrap
17666 msgid ""
17667 " int\n"
17668 " guestfs_pwrite_device (guestfs_h *g,\n"
17669 "                        const char *device,\n"
17670 "                        const char *content,\n"
17671 "                        size_t content_size,\n"
17672 "                        int64_t offset);\n"
17673 "\n"
17674 msgstr ""
17675
17676 # type: textblock
17677 #. type: textblock
17678 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3799
17679 msgid ""
17680 "This command writes to part of a device.  It writes the data buffer "
17681 "C<content> to C<device> starting at offset C<offset>."
17682 msgstr ""
17683
17684 # type: textblock
17685 #. type: textblock
17686 #: ../src/guestfs-actions.pod:5780 ../fish/guestfish-actions.pod:3802
17687 msgid ""
17688 "This command implements the L<pwrite(2)> system call, and like that system "
17689 "call it may not write the full data requested (although short writes to disk "
17690 "devices and partitions are probably impossible with standard Linux kernels)."
17691 msgstr ""
17692
17693 # type: textblock
17694 #. type: textblock
17695 #: ../src/guestfs-actions.pod:5785
17696 msgid "See also C<guestfs_pwrite>."
17697 msgstr ""
17698
17699 # type: textblock
17700 #. type: textblock
17701 #: ../src/guestfs-actions.pod:5792
17702 msgid "(Added in 1.5.20)"
17703 msgstr ""
17704
17705 # type: =head2
17706 #. type: =head2
17707 #: ../src/guestfs-actions.pod:5794
17708 msgid "guestfs_read_file"
17709 msgstr ""
17710
17711 # type: verbatim
17712 #. type: verbatim
17713 #: ../src/guestfs-actions.pod:5796
17714 #, no-wrap
17715 msgid ""
17716 " char *\n"
17717 " guestfs_read_file (guestfs_h *g,\n"
17718 "                    const char *path,\n"
17719 "                    size_t *size_r);\n"
17720 "\n"
17721 msgstr ""
17722
17723 # type: textblock
17724 #. type: textblock
17725 #: ../src/guestfs-actions.pod:5801 ../fish/guestfish-actions.pod:3816
17726 msgid "This calls returns the contents of the file C<path> as a buffer."
17727 msgstr ""
17728
17729 # type: textblock
17730 #. type: textblock
17731 #: ../src/guestfs-actions.pod:5804
17732 msgid ""
17733 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
17734 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
17735 "function is limited in the total size of file that can be handled."
17736 msgstr ""
17737
17738 # type: textblock
17739 #. type: textblock
17740 #: ../src/guestfs-actions.pod:5816
17741 msgid "(Added in 1.0.63)"
17742 msgstr ""
17743
17744 # type: =head2
17745 #. type: =head2
17746 #: ../src/guestfs-actions.pod:5818
17747 msgid "guestfs_read_lines"
17748 msgstr ""
17749
17750 # type: verbatim
17751 #. type: verbatim
17752 #: ../src/guestfs-actions.pod:5820
17753 #, no-wrap
17754 msgid ""
17755 " char **\n"
17756 " guestfs_read_lines (guestfs_h *g,\n"
17757 "                     const char *path);\n"
17758 "\n"
17759 msgstr ""
17760
17761 # type: textblock
17762 #. type: textblock
17763 #: ../src/guestfs-actions.pod:5826 ../fish/guestfish-actions.pod:3833
17764 msgid ""
17765 "The file contents are returned as a list of lines.  Trailing C<LF> and "
17766 "C<CRLF> character sequences are I<not> returned."
17767 msgstr ""
17768
17769 # type: textblock
17770 #. type: textblock
17771 #: ../src/guestfs-actions.pod:5829
17772 msgid ""
17773 "Note that this function cannot correctly handle binary files (specifically, "
17774 "files containing C<\\0> character which is treated as end of line).  For "
17775 "those you need to use the C<guestfs_read_file> function which has a more "
17776 "complex interface."
17777 msgstr ""
17778
17779 # type: =head2
17780 #. type: =head2
17781 #: ../src/guestfs-actions.pod:5840
17782 msgid "guestfs_readdir"
17783 msgstr ""
17784
17785 # type: verbatim
17786 #. type: verbatim
17787 #: ../src/guestfs-actions.pod:5842
17788 #, no-wrap
17789 msgid ""
17790 " struct guestfs_dirent_list *\n"
17791 " guestfs_readdir (guestfs_h *g,\n"
17792 "                  const char *dir);\n"
17793 "\n"
17794 msgstr ""
17795
17796 # type: textblock
17797 #. type: textblock
17798 #: ../src/guestfs-actions.pod:5846 ../fish/guestfish-actions.pod:3845
17799 msgid "This returns the list of directory entries in directory C<dir>."
17800 msgstr ""
17801
17802 # type: textblock
17803 #. type: textblock
17804 #: ../src/guestfs-actions.pod:5848 ../fish/guestfish-actions.pod:3847
17805 msgid ""
17806 "All entries in the directory are returned, including C<.> and C<..>.  The "
17807 "entries are I<not> sorted, but returned in the same order as the underlying "
17808 "filesystem."
17809 msgstr ""
17810
17811 # type: textblock
17812 #. type: textblock
17813 #: ../src/guestfs-actions.pod:5852 ../fish/guestfish-actions.pod:3851
17814 msgid ""
17815 "Also this call returns basic file type information about each file.  The "
17816 "C<ftyp> field will contain one of the following characters:"
17817 msgstr ""
17818
17819 # type: =item
17820 #. type: =item
17821 #: ../src/guestfs-actions.pod:5857 ../fish/guestfish-actions.pod:3856
17822 msgid "'b'"
17823 msgstr ""
17824
17825 # type: textblock
17826 #. type: textblock
17827 #: ../src/guestfs-actions.pod:5859 ../fish/guestfish-actions.pod:3858
17828 msgid "Block special"
17829 msgstr ""
17830
17831 # type: =item
17832 #. type: =item
17833 #: ../src/guestfs-actions.pod:5861 ../fish/guestfish-actions.pod:3860
17834 msgid "'c'"
17835 msgstr ""
17836
17837 # type: textblock
17838 #. type: textblock
17839 #: ../src/guestfs-actions.pod:5863 ../fish/guestfish-actions.pod:3862
17840 msgid "Char special"
17841 msgstr ""
17842
17843 # type: =item
17844 #. type: =item
17845 #: ../src/guestfs-actions.pod:5865 ../fish/guestfish-actions.pod:3864
17846 msgid "'d'"
17847 msgstr ""
17848
17849 # type: textblock
17850 #. type: textblock
17851 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3866
17852 msgid "Directory"
17853 msgstr ""
17854
17855 # type: =item
17856 #. type: =item
17857 #: ../src/guestfs-actions.pod:5869 ../fish/guestfish-actions.pod:3868
17858 msgid "'f'"
17859 msgstr ""
17860
17861 # type: textblock
17862 #. type: textblock
17863 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3870
17864 msgid "FIFO (named pipe)"
17865 msgstr ""
17866
17867 # type: =item
17868 #. type: =item
17869 #: ../src/guestfs-actions.pod:5873 ../fish/guestfish-actions.pod:3872
17870 msgid "'l'"
17871 msgstr ""
17872
17873 # type: textblock
17874 #. type: textblock
17875 #: ../src/guestfs-actions.pod:5875 ../fish/guestfish-actions.pod:3874
17876 msgid "Symbolic link"
17877 msgstr ""
17878
17879 # type: =item
17880 #. type: =item
17881 #: ../src/guestfs-actions.pod:5877 ../fish/guestfish-actions.pod:3876
17882 msgid "'r'"
17883 msgstr ""
17884
17885 # type: textblock
17886 #. type: textblock
17887 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3878
17888 msgid "Regular file"
17889 msgstr ""
17890
17891 # type: =item
17892 #. type: =item
17893 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3880
17894 msgid "'s'"
17895 msgstr ""
17896
17897 # type: textblock
17898 #. type: textblock
17899 #: ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:3882
17900 msgid "Socket"
17901 msgstr ""
17902
17903 # type: =item
17904 #. type: =item
17905 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3884
17906 msgid "'u'"
17907 msgstr ""
17908
17909 # type: textblock
17910 #. type: textblock
17911 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3886
17912 msgid "Unknown file type"
17913 msgstr ""
17914
17915 # type: =item
17916 #. type: =item
17917 #: ../src/guestfs-actions.pod:5889 ../fish/guestfish-actions.pod:3888
17918 msgid "'?'"
17919 msgstr ""
17920
17921 # type: textblock
17922 #. type: textblock
17923 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3890
17924 msgid ""
17925 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
17926 msgstr ""
17927
17928 # type: textblock
17929 #. type: textblock
17930 #: ../src/guestfs-actions.pod:5896
17931 msgid ""
17932 "This function is primarily intended for use by programs.  To get a simple "
17933 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
17934 "consumption, use C<guestfs_ll>."
17935 msgstr ""
17936
17937 # type: textblock
17938 #. type: textblock
17939 #: ../src/guestfs-actions.pod:5900
17940 msgid ""
17941 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
17942 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
17943 msgstr ""
17944
17945 # type: =head2
17946 #. type: =head2
17947 #: ../src/guestfs-actions.pod:5906
17948 msgid "guestfs_readlink"
17949 msgstr ""
17950
17951 # type: verbatim
17952 #. type: verbatim
17953 #: ../src/guestfs-actions.pod:5908
17954 #, no-wrap
17955 msgid ""
17956 " char *\n"
17957 " guestfs_readlink (guestfs_h *g,\n"
17958 "                   const char *path);\n"
17959 "\n"
17960 msgstr ""
17961
17962 # type: textblock
17963 #. type: textblock
17964 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3903
17965 msgid "This command reads the target of a symbolic link."
17966 msgstr ""
17967
17968 # type: =head2
17969 #. type: =head2
17970 #: ../src/guestfs-actions.pod:5919
17971 msgid "guestfs_readlinklist"
17972 msgstr ""
17973
17974 # type: verbatim
17975 #. type: verbatim
17976 #: ../src/guestfs-actions.pod:5921
17977 #, no-wrap
17978 msgid ""
17979 " char **\n"
17980 " guestfs_readlinklist (guestfs_h *g,\n"
17981 "                       const char *path,\n"
17982 "                       char *const *names);\n"
17983 "\n"
17984 msgstr ""
17985
17986 # type: textblock
17987 #. type: textblock
17988 #: ../src/guestfs-actions.pod:5926 ../fish/guestfish-actions.pod:3909
17989 msgid ""
17990 "This call allows you to do a C<readlink> operation on multiple files, where "
17991 "all files are in the directory C<path>.  C<names> is the list of files from "
17992 "this directory."
17993 msgstr ""
17994
17995 # type: textblock
17996 #. type: textblock
17997 #: ../src/guestfs-actions.pod:5930 ../fish/guestfish-actions.pod:3913
17998 msgid ""
17999 "On return you get a list of strings, with a one-to-one correspondence to the "
18000 "C<names> list.  Each string is the value of the symbolic link."
18001 msgstr ""
18002
18003 # type: textblock
18004 #. type: textblock
18005 #: ../src/guestfs-actions.pod:5934 ../fish/guestfish-actions.pod:3917
18006 msgid ""
18007 "If the C<readlink(2)> operation fails on any name, then the corresponding "
18008 "result string is the empty string C<\"\">.  However the whole operation is "
18009 "completed even if there were C<readlink(2)> errors, and so you can call this "
18010 "function with names where you don't know if they are symbolic links already "
18011 "(albeit slightly less efficient)."
18012 msgstr ""
18013
18014 # type: textblock
18015 #. type: textblock
18016 #: ../src/guestfs-actions.pod:5941 ../fish/guestfish-actions.pod:3924
18017 msgid ""
18018 "This call is intended for programs that want to efficiently list a directory "
18019 "contents without making many round-trips.  Very long directory listings "
18020 "might cause the protocol message size to be exceeded, causing this call to "
18021 "fail.  The caller must split up such requests into smaller groups of names."
18022 msgstr ""
18023
18024 # type: =head2
18025 #. type: =head2
18026 #: ../src/guestfs-actions.pod:5954
18027 msgid "guestfs_realpath"
18028 msgstr ""
18029
18030 # type: verbatim
18031 #. type: verbatim
18032 #: ../src/guestfs-actions.pod:5956
18033 #, no-wrap
18034 msgid ""
18035 " char *\n"
18036 " guestfs_realpath (guestfs_h *g,\n"
18037 "                   const char *path);\n"
18038 "\n"
18039 msgstr ""
18040
18041 # type: textblock
18042 #. type: textblock
18043 #: ../src/guestfs-actions.pod:5960 ../fish/guestfish-actions.pod:3935
18044 msgid ""
18045 "Return the canonicalized absolute pathname of C<path>.  The returned path "
18046 "has no C<.>, C<..> or symbolic link path elements."
18047 msgstr ""
18048
18049 # type: =head2
18050 #. type: =head2
18051 #: ../src/guestfs-actions.pod:5968
18052 msgid "guestfs_removexattr"
18053 msgstr ""
18054
18055 # type: verbatim
18056 #. type: verbatim
18057 #: ../src/guestfs-actions.pod:5970
18058 #, no-wrap
18059 msgid ""
18060 " int\n"
18061 " guestfs_removexattr (guestfs_h *g,\n"
18062 "                      const char *xattr,\n"
18063 "                      const char *path);\n"
18064 "\n"
18065 msgstr ""
18066
18067 # type: textblock
18068 #. type: textblock
18069 #: ../src/guestfs-actions.pod:5975 ../fish/guestfish-actions.pod:3942
18070 msgid ""
18071 "This call removes the extended attribute named C<xattr> of the file C<path>."
18072 msgstr ""
18073
18074 # type: textblock
18075 #. type: textblock
18076 #: ../src/guestfs-actions.pod:5978
18077 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
18078 msgstr ""
18079
18080 # type: =head2
18081 #. type: =head2
18082 #: ../src/guestfs-actions.pod:5984
18083 msgid "guestfs_resize2fs"
18084 msgstr ""
18085
18086 # type: verbatim
18087 #. type: verbatim
18088 #: ../src/guestfs-actions.pod:5986
18089 #, no-wrap
18090 msgid ""
18091 " int\n"
18092 " guestfs_resize2fs (guestfs_h *g,\n"
18093 "                    const char *device);\n"
18094 "\n"
18095 msgstr ""
18096
18097 # type: textblock
18098 #. type: textblock
18099 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:3951
18100 msgid ""
18101 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
18102 "underlying device."
18103 msgstr ""
18104
18105 # type: textblock
18106 #. type: textblock
18107 #: ../src/guestfs-actions.pod:5993
18108 msgid ""
18109 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
18110 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
18111 "sometimes gives an error about this and sometimes not.  In any case, it is "
18112 "always safe to call C<guestfs_e2fsck_f> before calling this function."
18113 msgstr ""
18114
18115 #. type: =head2
18116 #: ../src/guestfs-actions.pod:6003
18117 msgid "guestfs_resize2fs_M"
18118 msgstr ""
18119
18120 #. type: verbatim
18121 #: ../src/guestfs-actions.pod:6005
18122 #, no-wrap
18123 msgid ""
18124 " int\n"
18125 " guestfs_resize2fs_M (guestfs_h *g,\n"
18126 "                      const char *device);\n"
18127 "\n"
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../src/guestfs-actions.pod:6009
18132 msgid ""
18133 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
18134 "resized to its minimum size.  This works like the I<-M> option to the "
18135 "C<resize2fs> command."
18136 msgstr ""
18137
18138 #. type: textblock
18139 #: ../src/guestfs-actions.pod:6013
18140 msgid ""
18141 "To get the resulting size of the filesystem you should call "
18142 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
18143 "These two numbers, multiplied together, give the resulting size of the "
18144 "minimal filesystem in bytes."
18145 msgstr ""
18146
18147 # type: =head2
18148 #. type: =head2
18149 #: ../src/guestfs-actions.pod:6022
18150 msgid "guestfs_resize2fs_size"
18151 msgstr ""
18152
18153 # type: verbatim
18154 #. type: verbatim
18155 #: ../src/guestfs-actions.pod:6024
18156 #, no-wrap
18157 msgid ""
18158 " int\n"
18159 " guestfs_resize2fs_size (guestfs_h *g,\n"
18160 "                         const char *device,\n"
18161 "                         int64_t size);\n"
18162 "\n"
18163 msgstr ""
18164
18165 # type: textblock
18166 #. type: textblock
18167 #: ../src/guestfs-actions.pod:6029
18168 msgid ""
18169 "This command is the same as C<guestfs_resize2fs> except that it allows you "
18170 "to specify the new size (in bytes) explicitly."
18171 msgstr ""
18172
18173 # type: =head2
18174 #. type: =head2
18175 #: ../src/guestfs-actions.pod:6036
18176 msgid "guestfs_rm"
18177 msgstr ""
18178
18179 # type: verbatim
18180 #. type: verbatim
18181 #: ../src/guestfs-actions.pod:6038
18182 #, no-wrap
18183 msgid ""
18184 " int\n"
18185 " guestfs_rm (guestfs_h *g,\n"
18186 "             const char *path);\n"
18187 "\n"
18188 msgstr ""
18189
18190 # type: textblock
18191 #. type: textblock
18192 #: ../src/guestfs-actions.pod:6042 ../fish/guestfish-actions.pod:3984
18193 msgid "Remove the single file C<path>."
18194 msgstr ""
18195
18196 # type: =head2
18197 #. type: =head2
18198 #: ../src/guestfs-actions.pod:6048
18199 msgid "guestfs_rm_rf"
18200 msgstr ""
18201
18202 # type: verbatim
18203 #. type: verbatim
18204 #: ../src/guestfs-actions.pod:6050
18205 #, no-wrap
18206 msgid ""
18207 " int\n"
18208 " guestfs_rm_rf (guestfs_h *g,\n"
18209 "                const char *path);\n"
18210 "\n"
18211 msgstr ""
18212
18213 # type: textblock
18214 #. type: textblock
18215 #: ../src/guestfs-actions.pod:6054 ../fish/guestfish-actions.pod:3990
18216 msgid ""
18217 "Remove the file or directory C<path>, recursively removing the contents if "
18218 "its a directory.  This is like the C<rm -rf> shell command."
18219 msgstr ""
18220
18221 # type: =head2
18222 #. type: =head2
18223 #: ../src/guestfs-actions.pod:6062
18224 msgid "guestfs_rmdir"
18225 msgstr ""
18226
18227 # type: verbatim
18228 #. type: verbatim
18229 #: ../src/guestfs-actions.pod:6064
18230 #, no-wrap
18231 msgid ""
18232 " int\n"
18233 " guestfs_rmdir (guestfs_h *g,\n"
18234 "                const char *path);\n"
18235 "\n"
18236 msgstr ""
18237
18238 # type: textblock
18239 #. type: textblock
18240 #: ../src/guestfs-actions.pod:6068 ../fish/guestfish-actions.pod:3998
18241 msgid "Remove the single directory C<path>."
18242 msgstr ""
18243
18244 # type: =head2
18245 #. type: =head2
18246 #: ../src/guestfs-actions.pod:6074
18247 msgid "guestfs_rmmountpoint"
18248 msgstr ""
18249
18250 # type: verbatim
18251 #. type: verbatim
18252 #: ../src/guestfs-actions.pod:6076
18253 #, no-wrap
18254 msgid ""
18255 " int\n"
18256 " guestfs_rmmountpoint (guestfs_h *g,\n"
18257 "                       const char *exemptpath);\n"
18258 "\n"
18259 msgstr ""
18260
18261 # type: textblock
18262 #. type: textblock
18263 #: ../src/guestfs-actions.pod:6080
18264 msgid ""
18265 "This calls removes a mountpoint that was previously created with "
18266 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
18267 msgstr ""
18268
18269 # type: =head2
18270 #. type: =head2
18271 #: ../src/guestfs-actions.pod:6088
18272 msgid "guestfs_scrub_device"
18273 msgstr ""
18274
18275 # type: verbatim
18276 #. type: verbatim
18277 #: ../src/guestfs-actions.pod:6090
18278 #, no-wrap
18279 msgid ""
18280 " int\n"
18281 " guestfs_scrub_device (guestfs_h *g,\n"
18282 "                       const char *device);\n"
18283 "\n"
18284 msgstr ""
18285
18286 # type: textblock
18287 #. type: textblock
18288 #: ../src/guestfs-actions.pod:6094 ../fish/guestfish-actions.pod:4012
18289 msgid ""
18290 "This command writes patterns over C<device> to make data retrieval more "
18291 "difficult."
18292 msgstr ""
18293
18294 # type: textblock
18295 #. type: textblock
18296 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6118
18297 #: ../src/guestfs-actions.pod:6137 ../fish/guestfish-actions.pod:4015
18298 #: ../fish/guestfish-actions.pod:4030 ../fish/guestfish-actions.pod:4043
18299 msgid ""
18300 "It is an interface to the L<scrub(1)> program.  See that manual page for "
18301 "more details."
18302 msgstr ""
18303
18304 # type: textblock
18305 #. type: textblock
18306 #: ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6123
18307 #: ../src/guestfs-actions.pod:6142
18308 msgid "(Added in 1.0.52)"
18309 msgstr ""
18310
18311 # type: =head2
18312 #. type: =head2
18313 #: ../src/guestfs-actions.pod:6107
18314 msgid "guestfs_scrub_file"
18315 msgstr ""
18316
18317 # type: verbatim
18318 #. type: verbatim
18319 #: ../src/guestfs-actions.pod:6109
18320 #, no-wrap
18321 msgid ""
18322 " int\n"
18323 " guestfs_scrub_file (guestfs_h *g,\n"
18324 "                     const char *file);\n"
18325 "\n"
18326 msgstr ""
18327
18328 # type: textblock
18329 #. type: textblock
18330 #: ../src/guestfs-actions.pod:6113 ../fish/guestfish-actions.pod:4025
18331 msgid ""
18332 "This command writes patterns over a file to make data retrieval more "
18333 "difficult."
18334 msgstr ""
18335
18336 # type: textblock
18337 #. type: textblock
18338 #: ../src/guestfs-actions.pod:6116 ../fish/guestfish-actions.pod:4028
18339 msgid "The file is I<removed> after scrubbing."
18340 msgstr ""
18341
18342 # type: =head2
18343 #. type: =head2
18344 #: ../src/guestfs-actions.pod:6125
18345 msgid "guestfs_scrub_freespace"
18346 msgstr ""
18347
18348 # type: verbatim
18349 #. type: verbatim
18350 #: ../src/guestfs-actions.pod:6127
18351 #, no-wrap
18352 msgid ""
18353 " int\n"
18354 " guestfs_scrub_freespace (guestfs_h *g,\n"
18355 "                          const char *dir);\n"
18356 "\n"
18357 msgstr ""
18358
18359 # type: textblock
18360 #. type: textblock
18361 #: ../src/guestfs-actions.pod:6131
18362 msgid ""
18363 "This command creates the directory C<dir> and then fills it with files until "
18364 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
18365 "and deletes them.  The intention is to scrub any free space on the partition "
18366 "containing C<dir>."
18367 msgstr ""
18368
18369 # type: =head2
18370 #. type: =head2
18371 #: ../src/guestfs-actions.pod:6144
18372 msgid "guestfs_set_append"
18373 msgstr ""
18374
18375 # type: verbatim
18376 #. type: verbatim
18377 #: ../src/guestfs-actions.pod:6146
18378 #, no-wrap
18379 msgid ""
18380 " int\n"
18381 " guestfs_set_append (guestfs_h *g,\n"
18382 "                     const char *append);\n"
18383 "\n"
18384 msgstr ""
18385
18386 # type: textblock
18387 #. type: textblock
18388 #: ../src/guestfs-actions.pod:6150 ../fish/guestfish-actions.pod:4052
18389 msgid ""
18390 "This function is used to add additional options to the guest kernel command "
18391 "line."
18392 msgstr ""
18393
18394 # type: textblock
18395 #. type: textblock
18396 #: ../src/guestfs-actions.pod:6153 ../fish/guestfish-actions.pod:4055
18397 msgid ""
18398 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
18399 "environment variable."
18400 msgstr ""
18401
18402 # type: textblock
18403 #. type: textblock
18404 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4058
18405 msgid ""
18406 "Setting C<append> to C<NULL> means I<no> additional options are passed "
18407 "(libguestfs always adds a few of its own)."
18408 msgstr ""
18409
18410 #. type: =head2
18411 #: ../src/guestfs-actions.pod:6163
18412 msgid "guestfs_set_attach_method"
18413 msgstr ""
18414
18415 #. type: verbatim
18416 #: ../src/guestfs-actions.pod:6165
18417 #, no-wrap
18418 msgid ""
18419 " int\n"
18420 " guestfs_set_attach_method (guestfs_h *g,\n"
18421 "                            const char *attachmethod);\n"
18422 "\n"
18423 msgstr ""
18424
18425 #. type: textblock
18426 #: ../src/guestfs-actions.pod:6169 ../fish/guestfish-actions.pod:4067
18427 msgid ""
18428 "Set the method that libguestfs uses to connect to the back end guestfsd "
18429 "daemon.  Possible methods are:"
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../src/guestfs-actions.pod:6176 ../fish/guestfish-actions.pod:4074
18434 msgid ""
18435 "Launch an appliance and connect to it.  This is the ordinary method and the "
18436 "default."
18437 msgstr ""
18438
18439 #. type: =item
18440 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4077
18441 msgid "C<unix:I<path>>"
18442 msgstr ""
18443
18444 #. type: textblock
18445 #: ../src/guestfs-actions.pod:6181 ../fish/guestfish-actions.pod:4079
18446 msgid "Connect to the Unix domain socket I<path>."
18447 msgstr ""
18448
18449 #. type: textblock
18450 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4081
18451 msgid ""
18452 "This method lets you connect to an existing daemon or (using virtio-serial) "
18453 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
18454 "RUNNING DAEMONS>."
18455 msgstr ""
18456
18457 # type: =head2
18458 #. type: =head2
18459 #: ../src/guestfs-actions.pod:6193
18460 msgid "guestfs_set_autosync"
18461 msgstr ""
18462
18463 # type: verbatim
18464 #. type: verbatim
18465 #: ../src/guestfs-actions.pod:6195
18466 #, no-wrap
18467 msgid ""
18468 " int\n"
18469 " guestfs_set_autosync (guestfs_h *g,\n"
18470 "                       int autosync);\n"
18471 "\n"
18472 msgstr ""
18473
18474 #. type: textblock
18475 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4093
18476 msgid ""
18477 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
18478 "effort attempt to make filesystems consistent and synchronized when the "
18479 "handle is closed (also if the program exits without closing handles)."
18480 msgstr ""
18481
18482 # type: textblock
18483 #. type: textblock
18484 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4098
18485 msgid ""
18486 "This is enabled by default (since libguestfs 1.5.24, previously it was "
18487 "disabled by default)."
18488 msgstr ""
18489
18490 # type: =head2
18491 #. type: =head2
18492 #: ../src/guestfs-actions.pod:6211
18493 msgid "guestfs_set_direct"
18494 msgstr ""
18495
18496 # type: verbatim
18497 #. type: verbatim
18498 #: ../src/guestfs-actions.pod:6213
18499 #, no-wrap
18500 msgid ""
18501 " int\n"
18502 " guestfs_set_direct (guestfs_h *g,\n"
18503 "                     int direct);\n"
18504 "\n"
18505 msgstr ""
18506
18507 # type: textblock
18508 #. type: textblock
18509 #: ../src/guestfs-actions.pod:6217 ../fish/guestfish-actions.pod:4107
18510 msgid ""
18511 "If the direct appliance mode flag is enabled, then stdin and stdout are "
18512 "passed directly through to the appliance once it is launched."
18513 msgstr ""
18514
18515 # type: textblock
18516 #. type: textblock
18517 #: ../src/guestfs-actions.pod:6221
18518 msgid ""
18519 "One consequence of this is that log messages aren't caught by the library "
18520 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
18521 "stdout."
18522 msgstr ""
18523
18524 # type: textblock
18525 #. type: textblock
18526 #: ../src/guestfs-actions.pod:6225 ../fish/guestfish-actions.pod:4115
18527 msgid "You probably don't want to use this unless you know what you are doing."
18528 msgstr ""
18529
18530 # type: textblock
18531 #. type: textblock
18532 #: ../src/guestfs-actions.pod:6228 ../fish/guestfish-actions.pod:4118
18533 msgid "The default is disabled."
18534 msgstr ""
18535
18536 # type: =head2
18537 #. type: =head2
18538 #: ../src/guestfs-actions.pod:6234
18539 msgid "guestfs_set_e2label"
18540 msgstr ""
18541
18542 # type: verbatim
18543 #. type: verbatim
18544 #: ../src/guestfs-actions.pod:6236
18545 #, no-wrap
18546 msgid ""
18547 " int\n"
18548 " guestfs_set_e2label (guestfs_h *g,\n"
18549 "                      const char *device,\n"
18550 "                      const char *label);\n"
18551 "\n"
18552 msgstr ""
18553
18554 # type: textblock
18555 #. type: textblock
18556 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4124
18557 msgid ""
18558 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
18559 "C<label>.  Filesystem labels are limited to 16 characters."
18560 msgstr ""
18561
18562 # type: textblock
18563 #. type: textblock
18564 #: ../src/guestfs-actions.pod:6245
18565 msgid ""
18566 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
18567 "the existing label on a filesystem."
18568 msgstr ""
18569
18570 # type: =head2
18571 #. type: =head2
18572 #: ../src/guestfs-actions.pod:6252
18573 msgid "guestfs_set_e2uuid"
18574 msgstr ""
18575
18576 # type: verbatim
18577 #. type: verbatim
18578 #: ../src/guestfs-actions.pod:6254
18579 #, no-wrap
18580 msgid ""
18581 " int\n"
18582 " guestfs_set_e2uuid (guestfs_h *g,\n"
18583 "                     const char *device,\n"
18584 "                     const char *uuid);\n"
18585 "\n"
18586 msgstr ""
18587
18588 # type: textblock
18589 #. type: textblock
18590 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4135
18591 msgid ""
18592 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
18593 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
18594 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
18595 msgstr ""
18596
18597 # type: textblock
18598 #. type: textblock
18599 #: ../src/guestfs-actions.pod:6264
18600 msgid ""
18601 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
18602 "the existing UUID of a filesystem."
18603 msgstr ""
18604
18605 # type: =head2
18606 #. type: =head2
18607 #: ../src/guestfs-actions.pod:6271
18608 msgid "guestfs_set_memsize"
18609 msgstr ""
18610
18611 # type: verbatim
18612 #. type: verbatim
18613 #: ../src/guestfs-actions.pod:6273
18614 #, no-wrap
18615 msgid ""
18616 " int\n"
18617 " guestfs_set_memsize (guestfs_h *g,\n"
18618 "                      int memsize);\n"
18619 "\n"
18620 msgstr ""
18621
18622 # type: textblock
18623 #. type: textblock
18624 #: ../src/guestfs-actions.pod:6277
18625 msgid ""
18626 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
18627 "This only has any effect if called before C<guestfs_launch>."
18628 msgstr ""
18629
18630 # type: textblock
18631 #. type: textblock
18632 #: ../src/guestfs-actions.pod:6281 ../fish/guestfish-actions.pod:4153
18633 msgid ""
18634 "You can also change this by setting the environment variable "
18635 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
18636 msgstr ""
18637
18638 # type: =head2
18639 #. type: =head2
18640 #: ../src/guestfs-actions.pod:6292
18641 msgid "guestfs_set_network"
18642 msgstr ""
18643
18644 # type: verbatim
18645 #. type: verbatim
18646 #: ../src/guestfs-actions.pod:6294
18647 #, no-wrap
18648 msgid ""
18649 " int\n"
18650 " guestfs_set_network (guestfs_h *g,\n"
18651 "                      int network);\n"
18652 "\n"
18653 msgstr ""
18654
18655 # type: textblock
18656 #. type: textblock
18657 #: ../src/guestfs-actions.pod:6298 ../fish/guestfish-actions.pod:4166
18658 msgid ""
18659 "If C<network> is true, then the network is enabled in the libguestfs "
18660 "appliance.  The default is false."
18661 msgstr ""
18662
18663 # type: textblock
18664 #. type: textblock
18665 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4169
18666 msgid ""
18667 "This affects whether commands are able to access the network (see L<guestfs"
18668 "(3)/RUNNING COMMANDS>)."
18669 msgstr ""
18670
18671 # type: textblock
18672 #. type: textblock
18673 #: ../src/guestfs-actions.pod:6304
18674 msgid ""
18675 "You must call this before calling C<guestfs_launch>, otherwise it has no "
18676 "effect."
18677 msgstr ""
18678
18679 # type: =head2
18680 #. type: =head2
18681 #: ../src/guestfs-actions.pod:6311
18682 msgid "guestfs_set_path"
18683 msgstr ""
18684
18685 # type: verbatim
18686 #. type: verbatim
18687 #: ../src/guestfs-actions.pod:6313
18688 #, no-wrap
18689 msgid ""
18690 " int\n"
18691 " guestfs_set_path (guestfs_h *g,\n"
18692 "                   const char *searchpath);\n"
18693 "\n"
18694 msgstr ""
18695
18696 # type: textblock
18697 #. type: textblock
18698 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4181
18699 msgid "Set the path that libguestfs searches for kernel and initrd.img."
18700 msgstr ""
18701
18702 # type: textblock
18703 #. type: textblock
18704 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4183
18705 msgid ""
18706 "The default is C<$libdir/guestfs> unless overridden by setting "
18707 "C<LIBGUESTFS_PATH> environment variable."
18708 msgstr ""
18709
18710 # type: textblock
18711 #. type: textblock
18712 #: ../src/guestfs-actions.pod:6322 ../fish/guestfish-actions.pod:4186
18713 msgid "Setting C<path> to C<NULL> restores the default path."
18714 msgstr ""
18715
18716 #. type: =head2
18717 #: ../src/guestfs-actions.pod:6328
18718 msgid "guestfs_set_pgroup"
18719 msgstr ""
18720
18721 #. type: verbatim
18722 #: ../src/guestfs-actions.pod:6330
18723 #, no-wrap
18724 msgid ""
18725 " int\n"
18726 " guestfs_set_pgroup (guestfs_h *g,\n"
18727 "                     int pgroup);\n"
18728 "\n"
18729 msgstr ""
18730
18731 #. type: textblock
18732 #: ../src/guestfs-actions.pod:6334 ../fish/guestfish-actions.pod:4194
18733 msgid ""
18734 "If C<pgroup> is true, child processes are placed into their own process "
18735 "group."
18736 msgstr ""
18737
18738 #. type: textblock
18739 #: ../src/guestfs-actions.pod:6337 ../fish/guestfish-actions.pod:4197
18740 msgid ""
18741 "The practical upshot of this is that signals like C<SIGINT> (from users "
18742 "pressing C<^C>) won't be received by the child process."
18743 msgstr ""
18744
18745 #. type: textblock
18746 #: ../src/guestfs-actions.pod:6340 ../fish/guestfish-actions.pod:4200
18747 msgid ""
18748 "The default for this flag is false, because usually you want C<^C> to kill "
18749 "the subprocess."
18750 msgstr ""
18751
18752 # type: =head2
18753 #. type: =head2
18754 #: ../src/guestfs-actions.pod:6345
18755 msgid "guestfs_set_qemu"
18756 msgstr ""
18757
18758 # type: verbatim
18759 #. type: verbatim
18760 #: ../src/guestfs-actions.pod:6347
18761 #, no-wrap
18762 msgid ""
18763 " int\n"
18764 " guestfs_set_qemu (guestfs_h *g,\n"
18765 "                   const char *qemu);\n"
18766 "\n"
18767 msgstr ""
18768
18769 # type: textblock
18770 #. type: textblock
18771 #: ../src/guestfs-actions.pod:6351 ../fish/guestfish-actions.pod:4209
18772 msgid "Set the qemu binary that we will use."
18773 msgstr ""
18774
18775 # type: textblock
18776 #. type: textblock
18777 #: ../src/guestfs-actions.pod:6353 ../fish/guestfish-actions.pod:4211
18778 msgid ""
18779 "The default is chosen when the library was compiled by the configure script."
18780 msgstr ""
18781
18782 # type: textblock
18783 #. type: textblock
18784 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4214
18785 msgid ""
18786 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
18787 "variable."
18788 msgstr ""
18789
18790 # type: textblock
18791 #. type: textblock
18792 #: ../src/guestfs-actions.pod:6359 ../fish/guestfish-actions.pod:4217
18793 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
18794 msgstr ""
18795
18796 # type: textblock
18797 #. type: textblock
18798 #: ../src/guestfs-actions.pod:6361 ../fish/guestfish-actions.pod:4219
18799 msgid ""
18800 "Note that you should call this function as early as possible after creating "
18801 "the handle.  This is because some pre-launch operations depend on testing "
18802 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
18803 "don't retest features, and so you might see inconsistent results.  Using the "
18804 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
18805 "the qemu binary at the same time as the handle is created."
18806 msgstr ""
18807
18808 # type: =head2
18809 #. type: =head2
18810 #: ../src/guestfs-actions.pod:6373
18811 msgid "guestfs_set_recovery_proc"
18812 msgstr ""
18813
18814 # type: verbatim
18815 #. type: verbatim
18816 #: ../src/guestfs-actions.pod:6375
18817 #, no-wrap
18818 msgid ""
18819 " int\n"
18820 " guestfs_set_recovery_proc (guestfs_h *g,\n"
18821 "                            int recoveryproc);\n"
18822 "\n"
18823 msgstr ""
18824
18825 # type: textblock
18826 #. type: textblock
18827 #: ../src/guestfs-actions.pod:6379
18828 msgid ""
18829 "If this is called with the parameter C<false> then C<guestfs_launch> does "
18830 "not create a recovery process.  The purpose of the recovery process is to "
18831 "stop runaway qemu processes in the case where the main program aborts "
18832 "abruptly."
18833 msgstr ""
18834
18835 # type: textblock
18836 #. type: textblock
18837 #: ../src/guestfs-actions.pod:6384
18838 msgid ""
18839 "This only has any effect if called before C<guestfs_launch>, and the default "
18840 "is true."
18841 msgstr ""
18842
18843 # type: textblock
18844 #. type: textblock
18845 #: ../src/guestfs-actions.pod:6387 ../fish/guestfish-actions.pod:4241
18846 msgid ""
18847 "About the only time when you would want to disable this is if the main "
18848 "process will fork itself into the background (\"daemonize\" itself).  In "
18849 "this case the recovery process thinks that the main program has disappeared "
18850 "and so kills qemu, which is not very helpful."
18851 msgstr ""
18852
18853 # type: =head2
18854 #. type: =head2
18855 #: ../src/guestfs-actions.pod:6397
18856 msgid "guestfs_set_selinux"
18857 msgstr ""
18858
18859 # type: verbatim
18860 #. type: verbatim
18861 #: ../src/guestfs-actions.pod:6399
18862 #, no-wrap
18863 msgid ""
18864 " int\n"
18865 " guestfs_set_selinux (guestfs_h *g,\n"
18866 "                      int selinux);\n"
18867 "\n"
18868 msgstr ""
18869
18870 # type: textblock
18871 #. type: textblock
18872 #: ../src/guestfs-actions.pod:6403 ../fish/guestfish-actions.pod:4253
18873 msgid ""
18874 "This sets the selinux flag that is passed to the appliance at boot time.  "
18875 "The default is C<selinux=0> (disabled)."
18876 msgstr ""
18877
18878 # type: textblock
18879 #. type: textblock
18880 #: ../src/guestfs-actions.pod:6406 ../fish/guestfish-actions.pod:4256
18881 msgid ""
18882 "Note that if SELinux is enabled, it is always in Permissive mode "
18883 "(C<enforcing=0>)."
18884 msgstr ""
18885
18886 # type: =head2
18887 #. type: =head2
18888 #: ../src/guestfs-actions.pod:6416
18889 msgid "guestfs_set_trace"
18890 msgstr ""
18891
18892 # type: verbatim
18893 #. type: verbatim
18894 #: ../src/guestfs-actions.pod:6418
18895 #, no-wrap
18896 msgid ""
18897 " int\n"
18898 " guestfs_set_trace (guestfs_h *g,\n"
18899 "                    int trace);\n"
18900 "\n"
18901 msgstr ""
18902
18903 #. type: textblock
18904 #: ../src/guestfs-actions.pod:6422 ../fish/guestfish-actions.pod:4268
18905 msgid ""
18906 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
18907 "return values are traced."
18908 msgstr ""
18909
18910 # type: textblock
18911 #. type: textblock
18912 #: ../src/guestfs-actions.pod:6425 ../fish/guestfish-actions.pod:4271
18913 msgid ""
18914 "If you want to trace C API calls into libguestfs (and other libraries) then "
18915 "possibly a better way is to use the external ltrace(1) command."
18916 msgstr ""
18917
18918 # type: textblock
18919 #. type: textblock
18920 #: ../src/guestfs-actions.pod:6429 ../fish/guestfish-actions.pod:4275
18921 msgid ""
18922 "Command traces are disabled unless the environment variable "
18923 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
18924 msgstr ""
18925
18926 #. type: textblock
18927 #: ../src/guestfs-actions.pod:6432
18928 msgid ""
18929 "Trace messages are normally sent to C<stderr>, unless you register a "
18930 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18931 msgstr ""
18932
18933 # type: =head2
18934 #. type: =head2
18935 #: ../src/guestfs-actions.pod:6440
18936 msgid "guestfs_set_verbose"
18937 msgstr ""
18938
18939 # type: verbatim
18940 #. type: verbatim
18941 #: ../src/guestfs-actions.pod:6442
18942 #, no-wrap
18943 msgid ""
18944 " int\n"
18945 " guestfs_set_verbose (guestfs_h *g,\n"
18946 "                      int verbose);\n"
18947 "\n"
18948 msgstr ""
18949
18950 #. type: textblock
18951 #: ../src/guestfs-actions.pod:6446 ../fish/guestfish-actions.pod:4288
18952 msgid "If C<verbose> is true, this turns on verbose messages."
18953 msgstr ""
18954
18955 # type: textblock
18956 #. type: textblock
18957 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4290
18958 msgid ""
18959 "Verbose messages are disabled unless the environment variable "
18960 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
18961 msgstr ""
18962
18963 #. type: textblock
18964 #: ../src/guestfs-actions.pod:6451
18965 msgid ""
18966 "Verbose messages are normally sent to C<stderr>, unless you register a "
18967 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
18968 msgstr ""
18969
18970 # type: =head2
18971 #. type: =head2
18972 #: ../src/guestfs-actions.pod:6459
18973 msgid "guestfs_setcon"
18974 msgstr ""
18975
18976 # type: verbatim
18977 #. type: verbatim
18978 #: ../src/guestfs-actions.pod:6461
18979 #, no-wrap
18980 msgid ""
18981 " int\n"
18982 " guestfs_setcon (guestfs_h *g,\n"
18983 "                 const char *context);\n"
18984 "\n"
18985 msgstr ""
18986
18987 # type: textblock
18988 #. type: textblock
18989 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4301
18990 msgid ""
18991 "This sets the SELinux security context of the daemon to the string "
18992 "C<context>."
18993 msgstr ""
18994
18995 # type: textblock
18996 #. type: textblock
18997 #: ../src/guestfs-actions.pod:6468 ../fish/guestfish-actions.pod:4304
18998 msgid "See the documentation about SELINUX in L<guestfs(3)>."
18999 msgstr ""
19000
19001 # type: =head2
19002 #. type: =head2
19003 #: ../src/guestfs-actions.pod:6474
19004 msgid "guestfs_setxattr"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #. type: verbatim
19009 #: ../src/guestfs-actions.pod:6476
19010 #, no-wrap
19011 msgid ""
19012 " int\n"
19013 " guestfs_setxattr (guestfs_h *g,\n"
19014 "                   const char *xattr,\n"
19015 "                   const char *val,\n"
19016 "                   int vallen,\n"
19017 "                   const char *path);\n"
19018 "\n"
19019 msgstr ""
19020
19021 # type: textblock
19022 #. type: textblock
19023 #: ../src/guestfs-actions.pod:6483 ../fish/guestfish-actions.pod:4310
19024 msgid ""
19025 "This call sets the extended attribute named C<xattr> of the file C<path> to "
19026 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
19027 msgstr ""
19028
19029 # type: textblock
19030 #. type: textblock
19031 #: ../src/guestfs-actions.pod:6487
19032 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
19033 msgstr ""
19034
19035 # type: =head2
19036 #. type: =head2
19037 #: ../src/guestfs-actions.pod:6493
19038 msgid "guestfs_sfdisk"
19039 msgstr ""
19040
19041 # type: verbatim
19042 #. type: verbatim
19043 #: ../src/guestfs-actions.pod:6495
19044 #, no-wrap
19045 msgid ""
19046 " int\n"
19047 " guestfs_sfdisk (guestfs_h *g,\n"
19048 "                 const char *device,\n"
19049 "                 int cyls,\n"
19050 "                 int heads,\n"
19051 "                 int sectors,\n"
19052 "                 char *const *lines);\n"
19053 "\n"
19054 msgstr ""
19055
19056 # type: textblock
19057 #. type: textblock
19058 #: ../src/guestfs-actions.pod:6503 ../fish/guestfish-actions.pod:4320
19059 msgid ""
19060 "This is a direct interface to the L<sfdisk(8)> program for creating "
19061 "partitions on block devices."
19062 msgstr ""
19063
19064 # type: textblock
19065 #. type: textblock
19066 #: ../src/guestfs-actions.pod:6506 ../fish/guestfish-actions.pod:4323
19067 msgid "C<device> should be a block device, for example C</dev/sda>."
19068 msgstr ""
19069
19070 # type: textblock
19071 #. type: textblock
19072 #: ../src/guestfs-actions.pod:6508 ../fish/guestfish-actions.pod:4325
19073 msgid ""
19074 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
19075 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
19076 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
19077 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
19078 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
19079 "the kernel) cannot work out the right geometry and you will need to tell it."
19080 msgstr ""
19081
19082 # type: textblock
19083 #. type: textblock
19084 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4333
19085 msgid ""
19086 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
19087 "refer to the L<sfdisk(8)> manpage."
19088 msgstr ""
19089
19090 # type: textblock
19091 #. type: textblock
19092 #: ../src/guestfs-actions.pod:6519 ../fish/guestfish-actions.pod:4336
19093 msgid ""
19094 "To create a single partition occupying the whole disk, you would pass "
19095 "C<lines> as a single element list, when the single element being the string "
19096 "C<,> (comma)."
19097 msgstr ""
19098
19099 # type: textblock
19100 #. type: textblock
19101 #: ../src/guestfs-actions.pod:6523
19102 msgid ""
19103 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
19104 msgstr ""
19105
19106 #. type: textblock
19107 #: ../src/guestfs-actions.pod:6531 ../src/guestfs-actions.pod:6561
19108 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4346
19109 #: ../fish/guestfish-actions.pod:4369 ../fish/guestfish-actions.pod:4391
19110 msgid ""
19111 "This function is deprecated.  In new code, use the C<part_add> call instead."
19112 msgstr ""
19113
19114 # type: =head2
19115 #. type: =head2
19116 #: ../src/guestfs-actions.pod:6540
19117 msgid "guestfs_sfdiskM"
19118 msgstr ""
19119
19120 # type: verbatim
19121 #. type: verbatim
19122 #: ../src/guestfs-actions.pod:6542
19123 #, no-wrap
19124 msgid ""
19125 " int\n"
19126 " guestfs_sfdiskM (guestfs_h *g,\n"
19127 "                  const char *device,\n"
19128 "                  char *const *lines);\n"
19129 "\n"
19130 msgstr ""
19131
19132 # type: textblock
19133 #. type: textblock
19134 #: ../src/guestfs-actions.pod:6547
19135 msgid ""
19136 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
19137 "partition sizes are specified in megabytes only (rounded to the nearest "
19138 "cylinder) and you don't need to specify the cyls, heads and sectors "
19139 "parameters which were rarely if ever used anyway."
19140 msgstr ""
19141
19142 # type: textblock
19143 #. type: textblock
19144 #: ../src/guestfs-actions.pod:6553
19145 msgid ""
19146 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
19147 "C<guestfs_part_disk>"
19148 msgstr ""
19149
19150 # type: =head2
19151 #. type: =head2
19152 #: ../src/guestfs-actions.pod:6570
19153 msgid "guestfs_sfdisk_N"
19154 msgstr ""
19155
19156 # type: verbatim
19157 #. type: verbatim
19158 #: ../src/guestfs-actions.pod:6572
19159 #, no-wrap
19160 msgid ""
19161 " int\n"
19162 " guestfs_sfdisk_N (guestfs_h *g,\n"
19163 "                   const char *device,\n"
19164 "                   int partnum,\n"
19165 "                   int cyls,\n"
19166 "                   int heads,\n"
19167 "                   int sectors,\n"
19168 "                   const char *line);\n"
19169 "\n"
19170 msgstr ""
19171
19172 # type: textblock
19173 #. type: textblock
19174 #: ../src/guestfs-actions.pod:6581 ../fish/guestfish-actions.pod:4380
19175 msgid ""
19176 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
19177 "(note: C<n> counts from 1)."
19178 msgstr ""
19179
19180 # type: textblock
19181 #. type: textblock
19182 #: ../src/guestfs-actions.pod:6584
19183 msgid ""
19184 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
19185 "for the cyls/heads/sectors parameters."
19186 msgstr ""
19187
19188 # type: textblock
19189 #. type: textblock
19190 #: ../src/guestfs-actions.pod:6587
19191 msgid "See also: C<guestfs_part_add>"
19192 msgstr ""
19193
19194 # type: =head2
19195 #. type: =head2
19196 #: ../src/guestfs-actions.pod:6603
19197 msgid "guestfs_sfdisk_disk_geometry"
19198 msgstr ""
19199
19200 # type: verbatim
19201 #. type: verbatim
19202 #: ../src/guestfs-actions.pod:6605
19203 #, no-wrap
19204 msgid ""
19205 " char *\n"
19206 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
19207 "                               const char *device);\n"
19208 "\n"
19209 msgstr ""
19210
19211 # type: textblock
19212 #. type: textblock
19213 #: ../src/guestfs-actions.pod:6609
19214 msgid ""
19215 "This displays the disk geometry of C<device> read from the partition table.  "
19216 "Especially in the case where the underlying block device has been resized, "
19217 "this can be different from the kernel's idea of the geometry (see "
19218 "C<guestfs_sfdisk_kernel_geometry>)."
19219 msgstr ""
19220
19221 # type: textblock
19222 #. type: textblock
19223 #: ../src/guestfs-actions.pod:6614 ../src/guestfs-actions.pod:6630
19224 #: ../fish/guestfish-actions.pod:4407 ../fish/guestfish-actions.pod:4416
19225 msgid "The result is in human-readable format, and not designed to be parsed."
19226 msgstr ""
19227
19228 # type: =head2
19229 #. type: =head2
19230 #: ../src/guestfs-actions.pod:6622
19231 msgid "guestfs_sfdisk_kernel_geometry"
19232 msgstr ""
19233
19234 # type: verbatim
19235 #. type: verbatim
19236 #: ../src/guestfs-actions.pod:6624
19237 #, no-wrap
19238 msgid ""
19239 " char *\n"
19240 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
19241 "                                 const char *device);\n"
19242 "\n"
19243 msgstr ""
19244
19245 # type: textblock
19246 #. type: textblock
19247 #: ../src/guestfs-actions.pod:6628 ../fish/guestfish-actions.pod:4414
19248 msgid "This displays the kernel's idea of the geometry of C<device>."
19249 msgstr ""
19250
19251 # type: =head2
19252 #. type: =head2
19253 #: ../src/guestfs-actions.pod:6638
19254 msgid "guestfs_sfdisk_l"
19255 msgstr ""
19256
19257 # type: verbatim
19258 #. type: verbatim
19259 #: ../src/guestfs-actions.pod:6640
19260 #, no-wrap
19261 msgid ""
19262 " char *\n"
19263 " guestfs_sfdisk_l (guestfs_h *g,\n"
19264 "                   const char *device);\n"
19265 "\n"
19266 msgstr ""
19267
19268 # type: textblock
19269 #. type: textblock
19270 #: ../src/guestfs-actions.pod:6644 ../fish/guestfish-actions.pod:4423
19271 msgid ""
19272 "This displays the partition table on C<device>, in the human-readable output "
19273 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
19274 msgstr ""
19275
19276 # type: textblock
19277 #. type: textblock
19278 #: ../src/guestfs-actions.pod:6648
19279 msgid "See also: C<guestfs_part_list>"
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../src/guestfs-actions.pod:6653 ../fish/guestfish-actions.pod:4429
19284 msgid ""
19285 "This function is deprecated.  In new code, use the C<part_list> call instead."
19286 msgstr ""
19287
19288 # type: =head2
19289 #. type: =head2
19290 #: ../src/guestfs-actions.pod:6662
19291 msgid "guestfs_sh"
19292 msgstr ""
19293
19294 # type: verbatim
19295 #. type: verbatim
19296 #: ../src/guestfs-actions.pod:6664
19297 #, no-wrap
19298 msgid ""
19299 " char *\n"
19300 " guestfs_sh (guestfs_h *g,\n"
19301 "             const char *command);\n"
19302 "\n"
19303 msgstr ""
19304
19305 # type: textblock
19306 #. type: textblock
19307 #: ../src/guestfs-actions.pod:6668 ../fish/guestfish-actions.pod:4440
19308 msgid ""
19309 "This call runs a command from the guest filesystem via the guest's C</bin/"
19310 "sh>."
19311 msgstr ""
19312
19313 # type: textblock
19314 #. type: textblock
19315 #: ../src/guestfs-actions.pod:6671
19316 msgid "This is like C<guestfs_command>, but passes the command to:"
19317 msgstr ""
19318
19319 # type: verbatim
19320 #. type: verbatim
19321 #: ../src/guestfs-actions.pod:6673 ../fish/guestfish-actions.pod:4445
19322 #, no-wrap
19323 msgid ""
19324 " /bin/sh -c \"command\"\n"
19325 "\n"
19326 msgstr ""
19327
19328 # type: textblock
19329 #. type: textblock
19330 #: ../src/guestfs-actions.pod:6675 ../fish/guestfish-actions.pod:4447
19331 msgid ""
19332 "Depending on the guest's shell, this usually results in wildcards being "
19333 "expanded, shell expressions being interpolated and so on."
19334 msgstr ""
19335
19336 # type: textblock
19337 #. type: textblock
19338 #: ../src/guestfs-actions.pod:6679
19339 msgid "All the provisos about C<guestfs_command> apply to this call."
19340 msgstr ""
19341
19342 # type: =head2
19343 #. type: =head2
19344 #: ../src/guestfs-actions.pod:6686
19345 msgid "guestfs_sh_lines"
19346 msgstr ""
19347
19348 # type: verbatim
19349 #. type: verbatim
19350 #: ../src/guestfs-actions.pod:6688
19351 #, no-wrap
19352 msgid ""
19353 " char **\n"
19354 " guestfs_sh_lines (guestfs_h *g,\n"
19355 "                   const char *command);\n"
19356 "\n"
19357 msgstr ""
19358
19359 # type: textblock
19360 #. type: textblock
19361 #: ../src/guestfs-actions.pod:6692
19362 msgid ""
19363 "This is the same as C<guestfs_sh>, but splits the result into a list of "
19364 "lines."
19365 msgstr ""
19366
19367 # type: textblock
19368 #. type: textblock
19369 #: ../src/guestfs-actions.pod:6695
19370 msgid "See also: C<guestfs_command_lines>"
19371 msgstr ""
19372
19373 # type: =head2
19374 #. type: =head2
19375 #: ../src/guestfs-actions.pod:6703
19376 msgid "guestfs_sleep"
19377 msgstr ""
19378
19379 # type: verbatim
19380 #. type: verbatim
19381 #: ../src/guestfs-actions.pod:6705
19382 #, no-wrap
19383 msgid ""
19384 " int\n"
19385 " guestfs_sleep (guestfs_h *g,\n"
19386 "                int secs);\n"
19387 "\n"
19388 msgstr ""
19389
19390 # type: textblock
19391 #. type: textblock
19392 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4466
19393 msgid "Sleep for C<secs> seconds."
19394 msgstr ""
19395
19396 # type: textblock
19397 #. type: textblock
19398 #: ../src/guestfs-actions.pod:6713
19399 msgid "(Added in 1.0.41)"
19400 msgstr ""
19401
19402 # type: =head2
19403 #. type: =head2
19404 #: ../src/guestfs-actions.pod:6715 ../src/guestfs-structs.pod:109
19405 msgid "guestfs_stat"
19406 msgstr ""
19407
19408 # type: verbatim
19409 #. type: verbatim
19410 #: ../src/guestfs-actions.pod:6717
19411 #, no-wrap
19412 msgid ""
19413 " struct guestfs_stat *\n"
19414 " guestfs_stat (guestfs_h *g,\n"
19415 "               const char *path);\n"
19416 "\n"
19417 msgstr ""
19418
19419 # type: textblock
19420 #. type: textblock
19421 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4474
19422 msgid "This is the same as the C<stat(2)> system call."
19423 msgstr ""
19424
19425 # type: =head2
19426 #. type: =head2
19427 #: ../src/guestfs-actions.pod:6731 ../src/guestfs-structs.pod:135
19428 msgid "guestfs_statvfs"
19429 msgstr ""
19430
19431 # type: verbatim
19432 #. type: verbatim
19433 #: ../src/guestfs-actions.pod:6733
19434 #, no-wrap
19435 msgid ""
19436 " struct guestfs_statvfs *\n"
19437 " guestfs_statvfs (guestfs_h *g,\n"
19438 "                  const char *path);\n"
19439 "\n"
19440 msgstr ""
19441
19442 # type: textblock
19443 #. type: textblock
19444 #: ../src/guestfs-actions.pod:6737 ../fish/guestfish-actions.pod:4480
19445 msgid ""
19446 "Returns file system statistics for any mounted file system.  C<path> should "
19447 "be a file or directory in the mounted file system (typically it is the mount "
19448 "point itself, but it doesn't need to be)."
19449 msgstr ""
19450
19451 # type: textblock
19452 #. type: textblock
19453 #: ../src/guestfs-actions.pod:6741 ../fish/guestfish-actions.pod:4484
19454 msgid "This is the same as the C<statvfs(2)> system call."
19455 msgstr ""
19456
19457 # type: textblock
19458 #. type: textblock
19459 #: ../src/guestfs-actions.pod:6743
19460 msgid ""
19461 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
19462 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
19463 msgstr ""
19464
19465 # type: =head2
19466 #. type: =head2
19467 #: ../src/guestfs-actions.pod:6749
19468 msgid "guestfs_strings"
19469 msgstr ""
19470
19471 # type: verbatim
19472 #. type: verbatim
19473 #: ../src/guestfs-actions.pod:6751
19474 #, no-wrap
19475 msgid ""
19476 " char **\n"
19477 " guestfs_strings (guestfs_h *g,\n"
19478 "                  const char *path);\n"
19479 "\n"
19480 msgstr ""
19481
19482 # type: textblock
19483 #. type: textblock
19484 #: ../src/guestfs-actions.pod:6755 ../fish/guestfish-actions.pod:4490
19485 msgid ""
19486 "This runs the L<strings(1)> command on a file and returns the list of "
19487 "printable strings found."
19488 msgstr ""
19489
19490 # type: =head2
19491 #. type: =head2
19492 #: ../src/guestfs-actions.pod:6767
19493 msgid "guestfs_strings_e"
19494 msgstr ""
19495
19496 # type: verbatim
19497 #. type: verbatim
19498 #: ../src/guestfs-actions.pod:6769
19499 #, no-wrap
19500 msgid ""
19501 " char **\n"
19502 " guestfs_strings_e (guestfs_h *g,\n"
19503 "                    const char *encoding,\n"
19504 "                    const char *path);\n"
19505 "\n"
19506 msgstr ""
19507
19508 # type: textblock
19509 #. type: textblock
19510 #: ../src/guestfs-actions.pod:6774
19511 msgid ""
19512 "This is like the C<guestfs_strings> command, but allows you to specify the "
19513 "encoding of strings that are looked for in the source file C<path>."
19514 msgstr ""
19515
19516 # type: textblock
19517 #. type: textblock
19518 #: ../src/guestfs-actions.pod:6778 ../fish/guestfish-actions.pod:4504
19519 msgid "Allowed encodings are:"
19520 msgstr ""
19521
19522 # type: =item
19523 #. type: =item
19524 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4508
19525 msgid "s"
19526 msgstr ""
19527
19528 # type: textblock
19529 #. type: textblock
19530 #: ../src/guestfs-actions.pod:6784
19531 msgid ""
19532 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
19533 "ISO-8859-X (this is what C<guestfs_strings> uses)."
19534 msgstr ""
19535
19536 # type: =item
19537 #. type: =item
19538 #: ../src/guestfs-actions.pod:6787 ../fish/guestfish-actions.pod:4513
19539 msgid "S"
19540 msgstr ""
19541
19542 # type: textblock
19543 #. type: textblock
19544 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4515
19545 msgid "Single 8-bit-byte characters."
19546 msgstr ""
19547
19548 # type: =item
19549 #. type: =item
19550 #: ../src/guestfs-actions.pod:6791 ../fish/guestfish-actions.pod:4517
19551 msgid "b"
19552 msgstr ""
19553
19554 # type: textblock
19555 #. type: textblock
19556 #: ../src/guestfs-actions.pod:6793 ../fish/guestfish-actions.pod:4519
19557 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
19558 msgstr ""
19559
19560 # type: =item
19561 #. type: =item
19562 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4522
19563 msgid "l (lower case letter L)"
19564 msgstr ""
19565
19566 # type: textblock
19567 #. type: textblock
19568 #: ../src/guestfs-actions.pod:6798 ../fish/guestfish-actions.pod:4524
19569 msgid ""
19570 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
19571 "examining binaries in Windows guests."
19572 msgstr ""
19573
19574 # type: =item
19575 #. type: =item
19576 #: ../src/guestfs-actions.pod:6801 ../fish/guestfish-actions.pod:4527
19577 msgid "B"
19578 msgstr ""
19579
19580 # type: textblock
19581 #. type: textblock
19582 #: ../src/guestfs-actions.pod:6803 ../fish/guestfish-actions.pod:4529
19583 msgid "32-bit big endian such as UCS-4BE."
19584 msgstr ""
19585
19586 # type: =item
19587 #. type: =item
19588 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4531
19589 msgid "L"
19590 msgstr ""
19591
19592 # type: textblock
19593 #. type: textblock
19594 #: ../src/guestfs-actions.pod:6807 ../fish/guestfish-actions.pod:4533
19595 msgid "32-bit little endian such as UCS-4LE."
19596 msgstr ""
19597
19598 # type: textblock
19599 #. type: textblock
19600 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4537
19601 msgid "The returned strings are transcoded to UTF-8."
19602 msgstr ""
19603
19604 # type: =head2
19605 #. type: =head2
19606 #: ../src/guestfs-actions.pod:6822
19607 msgid "guestfs_swapoff_device"
19608 msgstr ""
19609
19610 # type: verbatim
19611 #. type: verbatim
19612 #: ../src/guestfs-actions.pod:6824
19613 #, no-wrap
19614 msgid ""
19615 " int\n"
19616 " guestfs_swapoff_device (guestfs_h *g,\n"
19617 "                         const char *device);\n"
19618 "\n"
19619 msgstr ""
19620
19621 # type: textblock
19622 #. type: textblock
19623 #: ../src/guestfs-actions.pod:6828
19624 msgid ""
19625 "This command disables the libguestfs appliance swap device or partition "
19626 "named C<device>.  See C<guestfs_swapon_device>."
19627 msgstr ""
19628
19629 # type: =head2
19630 #. type: =head2
19631 #: ../src/guestfs-actions.pod:6836
19632 msgid "guestfs_swapoff_file"
19633 msgstr ""
19634
19635 # type: verbatim
19636 #. type: verbatim
19637 #: ../src/guestfs-actions.pod:6838
19638 #, no-wrap
19639 msgid ""
19640 " int\n"
19641 " guestfs_swapoff_file (guestfs_h *g,\n"
19642 "                       const char *file);\n"
19643 "\n"
19644 msgstr ""
19645
19646 # type: textblock
19647 #. type: textblock
19648 #: ../src/guestfs-actions.pod:6842 ../fish/guestfish-actions.pod:4554
19649 msgid "This command disables the libguestfs appliance swap on file."
19650 msgstr ""
19651
19652 # type: =head2
19653 #. type: =head2
19654 #: ../src/guestfs-actions.pod:6848
19655 msgid "guestfs_swapoff_label"
19656 msgstr ""
19657
19658 # type: verbatim
19659 #. type: verbatim
19660 #: ../src/guestfs-actions.pod:6850
19661 #, no-wrap
19662 msgid ""
19663 " int\n"
19664 " guestfs_swapoff_label (guestfs_h *g,\n"
19665 "                        const char *label);\n"
19666 "\n"
19667 msgstr ""
19668
19669 # type: textblock
19670 #. type: textblock
19671 #: ../src/guestfs-actions.pod:6854 ../fish/guestfish-actions.pod:4560
19672 msgid ""
19673 "This command disables the libguestfs appliance swap on labeled swap "
19674 "partition."
19675 msgstr ""
19676
19677 # type: =head2
19678 #. type: =head2
19679 #: ../src/guestfs-actions.pod:6861
19680 msgid "guestfs_swapoff_uuid"
19681 msgstr ""
19682
19683 # type: verbatim
19684 #. type: verbatim
19685 #: ../src/guestfs-actions.pod:6863
19686 #, no-wrap
19687 msgid ""
19688 " int\n"
19689 " guestfs_swapoff_uuid (guestfs_h *g,\n"
19690 "                       const char *uuid);\n"
19691 "\n"
19692 msgstr ""
19693
19694 # type: textblock
19695 #. type: textblock
19696 #: ../src/guestfs-actions.pod:6867 ../fish/guestfish-actions.pod:4567
19697 msgid ""
19698 "This command disables the libguestfs appliance swap partition with the given "
19699 "UUID."
19700 msgstr ""
19701
19702 # type: =head2
19703 #. type: =head2
19704 #: ../src/guestfs-actions.pod:6874
19705 msgid "guestfs_swapon_device"
19706 msgstr ""
19707
19708 # type: verbatim
19709 #. type: verbatim
19710 #: ../src/guestfs-actions.pod:6876
19711 #, no-wrap
19712 msgid ""
19713 " int\n"
19714 " guestfs_swapon_device (guestfs_h *g,\n"
19715 "                        const char *device);\n"
19716 "\n"
19717 msgstr ""
19718
19719 # type: textblock
19720 #. type: textblock
19721 #: ../src/guestfs-actions.pod:6880
19722 msgid ""
19723 "This command enables the libguestfs appliance to use the swap device or "
19724 "partition named C<device>.  The increased memory is made available for all "
19725 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
19726 msgstr ""
19727
19728 # type: textblock
19729 #. type: textblock
19730 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4579
19731 msgid ""
19732 "Note that you should not swap to existing guest swap partitions unless you "
19733 "know what you are doing.  They may contain hibernation information, or other "
19734 "information that the guest doesn't want you to trash.  You also risk leaking "
19735 "information about the host to the guest this way.  Instead, attach a new "
19736 "host device to the guest and swap on that."
19737 msgstr ""
19738
19739 # type: =head2
19740 #. type: =head2
19741 #: ../src/guestfs-actions.pod:6896
19742 msgid "guestfs_swapon_file"
19743 msgstr ""
19744
19745 # type: verbatim
19746 #. type: verbatim
19747 #: ../src/guestfs-actions.pod:6898
19748 #, no-wrap
19749 msgid ""
19750 " int\n"
19751 " guestfs_swapon_file (guestfs_h *g,\n"
19752 "                      const char *file);\n"
19753 "\n"
19754 msgstr ""
19755
19756 # type: textblock
19757 #. type: textblock
19758 #: ../src/guestfs-actions.pod:6902
19759 msgid ""
19760 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
19761 "notes."
19762 msgstr ""
19763
19764 # type: =head2
19765 #. type: =head2
19766 #: ../src/guestfs-actions.pod:6909
19767 msgid "guestfs_swapon_label"
19768 msgstr ""
19769
19770 # type: verbatim
19771 #. type: verbatim
19772 #: ../src/guestfs-actions.pod:6911
19773 #, no-wrap
19774 msgid ""
19775 " int\n"
19776 " guestfs_swapon_label (guestfs_h *g,\n"
19777 "                       const char *label);\n"
19778 "\n"
19779 msgstr ""
19780
19781 # type: textblock
19782 #. type: textblock
19783 #: ../src/guestfs-actions.pod:6915
19784 msgid ""
19785 "This command enables swap to a labeled swap partition.  See "
19786 "C<guestfs_swapon_device> for other notes."
19787 msgstr ""
19788
19789 # type: =head2
19790 #. type: =head2
19791 #: ../src/guestfs-actions.pod:6922
19792 msgid "guestfs_swapon_uuid"
19793 msgstr ""
19794
19795 # type: verbatim
19796 #. type: verbatim
19797 #: ../src/guestfs-actions.pod:6924
19798 #, no-wrap
19799 msgid ""
19800 " int\n"
19801 " guestfs_swapon_uuid (guestfs_h *g,\n"
19802 "                      const char *uuid);\n"
19803 "\n"
19804 msgstr ""
19805
19806 # type: textblock
19807 #. type: textblock
19808 #: ../src/guestfs-actions.pod:6928
19809 msgid ""
19810 "This command enables swap to a swap partition with the given UUID.  See "
19811 "C<guestfs_swapon_device> for other notes."
19812 msgstr ""
19813
19814 # type: =head2
19815 #. type: =head2
19816 #: ../src/guestfs-actions.pod:6935
19817 msgid "guestfs_sync"
19818 msgstr ""
19819
19820 # type: verbatim
19821 #. type: verbatim
19822 #: ../src/guestfs-actions.pod:6937
19823 #, no-wrap
19824 msgid ""
19825 " int\n"
19826 " guestfs_sync (guestfs_h *g);\n"
19827 "\n"
19828 msgstr ""
19829
19830 # type: textblock
19831 #. type: textblock
19832 #: ../src/guestfs-actions.pod:6940 ../fish/guestfish-actions.pod:4611
19833 msgid ""
19834 "This syncs the disk, so that any writes are flushed through to the "
19835 "underlying disk image."
19836 msgstr ""
19837
19838 # type: textblock
19839 #. type: textblock
19840 #: ../src/guestfs-actions.pod:6943 ../fish/guestfish-actions.pod:4614
19841 msgid ""
19842 "You should always call this if you have modified a disk image, before "
19843 "closing the handle."
19844 msgstr ""
19845
19846 # type: =head2
19847 #. type: =head2
19848 #: ../src/guestfs-actions.pod:6950
19849 msgid "guestfs_tail"
19850 msgstr ""
19851
19852 # type: verbatim
19853 #. type: verbatim
19854 #: ../src/guestfs-actions.pod:6952
19855 #, no-wrap
19856 msgid ""
19857 " char **\n"
19858 " guestfs_tail (guestfs_h *g,\n"
19859 "               const char *path);\n"
19860 "\n"
19861 msgstr ""
19862
19863 # type: textblock
19864 #. type: textblock
19865 #: ../src/guestfs-actions.pod:6956 ../fish/guestfish-actions.pod:4621
19866 msgid ""
19867 "This command returns up to the last 10 lines of a file as a list of strings."
19868 msgstr ""
19869
19870 # type: =head2
19871 #. type: =head2
19872 #: ../src/guestfs-actions.pod:6968
19873 msgid "guestfs_tail_n"
19874 msgstr ""
19875
19876 # type: verbatim
19877 #. type: verbatim
19878 #: ../src/guestfs-actions.pod:6970
19879 #, no-wrap
19880 msgid ""
19881 " char **\n"
19882 " guestfs_tail_n (guestfs_h *g,\n"
19883 "                 int nrlines,\n"
19884 "                 const char *path);\n"
19885 "\n"
19886 msgstr ""
19887
19888 # type: textblock
19889 #. type: textblock
19890 #: ../src/guestfs-actions.pod:6975 ../fish/guestfish-actions.pod:4631
19891 msgid ""
19892 "If the parameter C<nrlines> is a positive number, this returns the last "
19893 "C<nrlines> lines of the file C<path>."
19894 msgstr ""
19895
19896 # type: textblock
19897 #. type: textblock
19898 #: ../src/guestfs-actions.pod:6978 ../fish/guestfish-actions.pod:4634
19899 msgid ""
19900 "If the parameter C<nrlines> is a negative number, this returns lines from "
19901 "the file C<path>, starting with the C<-nrlines>th line."
19902 msgstr ""
19903
19904 # type: =head2
19905 #. type: =head2
19906 #: ../src/guestfs-actions.pod:6992
19907 msgid "guestfs_tar_in"
19908 msgstr ""
19909
19910 # type: verbatim
19911 #. type: verbatim
19912 #: ../src/guestfs-actions.pod:6994
19913 #, no-wrap
19914 msgid ""
19915 " int\n"
19916 " guestfs_tar_in (guestfs_h *g,\n"
19917 "                 const char *tarfile,\n"
19918 "                 const char *directory);\n"
19919 "\n"
19920 msgstr ""
19921
19922 # type: textblock
19923 #. type: textblock
19924 #: ../src/guestfs-actions.pod:6999 ../fish/guestfish-actions.pod:4646
19925 msgid ""
19926 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
19927 "tar file) into C<directory>."
19928 msgstr ""
19929
19930 # type: textblock
19931 #. type: textblock
19932 #: ../src/guestfs-actions.pod:7002
19933 msgid ""
19934 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
19935 msgstr ""
19936
19937 # type: textblock
19938 #. type: textblock
19939 #: ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7024
19940 #: ../src/guestfs-actions.pod:7040 ../src/guestfs-actions.pod:7056
19941 msgid "(Added in 1.0.3)"
19942 msgstr ""
19943
19944 # type: =head2
19945 #. type: =head2
19946 #: ../src/guestfs-actions.pod:7009
19947 msgid "guestfs_tar_out"
19948 msgstr ""
19949
19950 # type: verbatim
19951 #. type: verbatim
19952 #: ../src/guestfs-actions.pod:7011
19953 #, no-wrap
19954 msgid ""
19955 " int\n"
19956 " guestfs_tar_out (guestfs_h *g,\n"
19957 "                  const char *directory,\n"
19958 "                  const char *tarfile);\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: textblock
19963 #. type: textblock
19964 #: ../src/guestfs-actions.pod:7016 ../fish/guestfish-actions.pod:4658
19965 msgid ""
19966 "This command packs the contents of C<directory> and downloads it to local "
19967 "file C<tarfile>."
19968 msgstr ""
19969
19970 # type: textblock
19971 #. type: textblock
19972 #: ../src/guestfs-actions.pod:7019
19973 msgid ""
19974 "To download a compressed tarball, use C<guestfs_tgz_out> or "
19975 "C<guestfs_txz_out>."
19976 msgstr ""
19977
19978 # type: =head2
19979 #. type: =head2
19980 #: ../src/guestfs-actions.pod:7026
19981 msgid "guestfs_tgz_in"
19982 msgstr ""
19983
19984 # type: verbatim
19985 #. type: verbatim
19986 #: ../src/guestfs-actions.pod:7028
19987 #, no-wrap
19988 msgid ""
19989 " int\n"
19990 " guestfs_tgz_in (guestfs_h *g,\n"
19991 "                 const char *tarball,\n"
19992 "                 const char *directory);\n"
19993 "\n"
19994 msgstr ""
19995
19996 # type: textblock
19997 #. type: textblock
19998 #: ../src/guestfs-actions.pod:7033 ../fish/guestfish-actions.pod:4670
19999 msgid ""
20000 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
20001 "tar file) into C<directory>."
20002 msgstr ""
20003
20004 # type: textblock
20005 #. type: textblock
20006 #: ../src/guestfs-actions.pod:7036
20007 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
20008 msgstr ""
20009
20010 # type: =head2
20011 #. type: =head2
20012 #: ../src/guestfs-actions.pod:7042
20013 msgid "guestfs_tgz_out"
20014 msgstr ""
20015
20016 # type: verbatim
20017 #. type: verbatim
20018 #: ../src/guestfs-actions.pod:7044
20019 #, no-wrap
20020 msgid ""
20021 " int\n"
20022 " guestfs_tgz_out (guestfs_h *g,\n"
20023 "                  const char *directory,\n"
20024 "                  const char *tarball);\n"
20025 "\n"
20026 msgstr ""
20027
20028 # type: textblock
20029 #. type: textblock
20030 #: ../src/guestfs-actions.pod:7049 ../fish/guestfish-actions.pod:4681
20031 msgid ""
20032 "This command packs the contents of C<directory> and downloads it to local "
20033 "file C<tarball>."
20034 msgstr ""
20035
20036 # type: textblock
20037 #. type: textblock
20038 #: ../src/guestfs-actions.pod:7052
20039 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
20040 msgstr ""
20041
20042 # type: =head2
20043 #. type: =head2
20044 #: ../src/guestfs-actions.pod:7058
20045 msgid "guestfs_touch"
20046 msgstr ""
20047
20048 # type: verbatim
20049 #. type: verbatim
20050 #: ../src/guestfs-actions.pod:7060
20051 #, no-wrap
20052 msgid ""
20053 " int\n"
20054 " guestfs_touch (guestfs_h *g,\n"
20055 "                const char *path);\n"
20056 "\n"
20057 msgstr ""
20058
20059 # type: textblock
20060 #. type: textblock
20061 #: ../src/guestfs-actions.pod:7064 ../fish/guestfish-actions.pod:4692
20062 msgid ""
20063 "Touch acts like the L<touch(1)> command.  It can be used to update the "
20064 "timestamps on a file, or, if the file does not exist, to create a new zero-"
20065 "length file."
20066 msgstr ""
20067
20068 # type: textblock
20069 #. type: textblock
20070 #: ../src/guestfs-actions.pod:7068 ../fish/guestfish-actions.pod:4696
20071 msgid ""
20072 "This command only works on regular files, and will fail on other file types "
20073 "such as directories, symbolic links, block special etc."
20074 msgstr ""
20075
20076 # type: =head2
20077 #. type: =head2
20078 #: ../src/guestfs-actions.pod:7075
20079 msgid "guestfs_truncate"
20080 msgstr ""
20081
20082 # type: verbatim
20083 #. type: verbatim
20084 #: ../src/guestfs-actions.pod:7077
20085 #, no-wrap
20086 msgid ""
20087 " int\n"
20088 " guestfs_truncate (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:7081 ../fish/guestfish-actions.pod:4703
20096 msgid ""
20097 "This command truncates C<path> to a zero-length file.  The file must exist "
20098 "already."
20099 msgstr ""
20100
20101 # type: =head2
20102 #. type: =head2
20103 #: ../src/guestfs-actions.pod:7088
20104 msgid "guestfs_truncate_size"
20105 msgstr ""
20106
20107 # type: verbatim
20108 #. type: verbatim
20109 #: ../src/guestfs-actions.pod:7090
20110 #, no-wrap
20111 msgid ""
20112 " int\n"
20113 " guestfs_truncate_size (guestfs_h *g,\n"
20114 "                        const char *path,\n"
20115 "                        int64_t size);\n"
20116 "\n"
20117 msgstr ""
20118
20119 # type: textblock
20120 #. type: textblock
20121 #: ../src/guestfs-actions.pod:7095 ../fish/guestfish-actions.pod:4710
20122 msgid ""
20123 "This command truncates C<path> to size C<size> bytes.  The file must exist "
20124 "already."
20125 msgstr ""
20126
20127 # type: textblock
20128 #. type: textblock
20129 #: ../src/guestfs-actions.pod:7098
20130 msgid ""
20131 "If the current file size is less than C<size> then the file is extended to "
20132 "the required size with zero bytes.  This creates a sparse file (ie. disk "
20133 "blocks are not allocated for the file until you write to it).  To create a "
20134 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
20135 msgstr ""
20136
20137 # type: =head2
20138 #. type: =head2
20139 #: ../src/guestfs-actions.pod:7108
20140 msgid "guestfs_tune2fs_l"
20141 msgstr ""
20142
20143 # type: verbatim
20144 #. type: verbatim
20145 #: ../src/guestfs-actions.pod:7110
20146 #, no-wrap
20147 msgid ""
20148 " char **\n"
20149 " guestfs_tune2fs_l (guestfs_h *g,\n"
20150 "                    const char *device);\n"
20151 "\n"
20152 msgstr ""
20153
20154 # type: textblock
20155 #. type: textblock
20156 #: ../src/guestfs-actions.pod:7114 ../fish/guestfish-actions.pod:4723
20157 msgid ""
20158 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
20159 "C<device>."
20160 msgstr ""
20161
20162 # type: textblock
20163 #. type: textblock
20164 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:4726
20165 msgid ""
20166 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
20167 "for more details.  The list of fields returned isn't clearly defined, and "
20168 "depends on both the version of C<tune2fs> that libguestfs was built against, "
20169 "and the filesystem itself."
20170 msgstr ""
20171
20172 # type: =head2
20173 #. type: =head2
20174 #: ../src/guestfs-actions.pod:7130
20175 msgid "guestfs_txz_in"
20176 msgstr ""
20177
20178 # type: verbatim
20179 #. type: verbatim
20180 #: ../src/guestfs-actions.pod:7132
20181 #, no-wrap
20182 msgid ""
20183 " int\n"
20184 " guestfs_txz_in (guestfs_h *g,\n"
20185 "                 const char *tarball,\n"
20186 "                 const char *directory);\n"
20187 "\n"
20188 msgstr ""
20189
20190 # type: textblock
20191 #. type: textblock
20192 #: ../src/guestfs-actions.pod:7137 ../fish/guestfish-actions.pod:4735
20193 msgid ""
20194 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
20195 "tar file) into C<directory>."
20196 msgstr ""
20197
20198 # type: =head2
20199 #. type: =head2
20200 #: ../src/guestfs-actions.pod:7144
20201 msgid "guestfs_txz_out"
20202 msgstr ""
20203
20204 # type: verbatim
20205 #. type: verbatim
20206 #: ../src/guestfs-actions.pod:7146
20207 #, no-wrap
20208 msgid ""
20209 " int\n"
20210 " guestfs_txz_out (guestfs_h *g,\n"
20211 "                  const char *directory,\n"
20212 "                  const char *tarball);\n"
20213 "\n"
20214 msgstr ""
20215
20216 # type: textblock
20217 #. type: textblock
20218 #: ../src/guestfs-actions.pod:7151 ../fish/guestfish-actions.pod:4744
20219 msgid ""
20220 "This command packs the contents of C<directory> and downloads it to local "
20221 "file C<tarball> (as an xz compressed tar archive)."
20222 msgstr ""
20223
20224 # type: =head2
20225 #. type: =head2
20226 #: ../src/guestfs-actions.pod:7158
20227 msgid "guestfs_umask"
20228 msgstr ""
20229
20230 # type: verbatim
20231 #. type: verbatim
20232 #: ../src/guestfs-actions.pod:7160
20233 #, no-wrap
20234 msgid ""
20235 " int\n"
20236 " guestfs_umask (guestfs_h *g,\n"
20237 "                int mask);\n"
20238 "\n"
20239 msgstr ""
20240
20241 # type: textblock
20242 #. type: textblock
20243 #: ../src/guestfs-actions.pod:7164 ../fish/guestfish-actions.pod:4753
20244 msgid ""
20245 "This function sets the mask used for creating new files and device nodes to "
20246 "C<mask & 0777>."
20247 msgstr ""
20248
20249 # type: textblock
20250 #. type: textblock
20251 #: ../src/guestfs-actions.pod:7167 ../fish/guestfish-actions.pod:4756
20252 msgid ""
20253 "Typical umask values would be C<022> which creates new files with "
20254 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
20255 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
20256 msgstr ""
20257
20258 # type: textblock
20259 #. type: textblock
20260 #: ../src/guestfs-actions.pod:7172 ../fish/guestfish-actions.pod:4761
20261 msgid ""
20262 "The default umask is C<022>.  This is important because it means that "
20263 "directories and device nodes will be created with C<0644> or C<0755> mode "
20264 "even if you specify C<0777>."
20265 msgstr ""
20266
20267 # type: textblock
20268 #. type: textblock
20269 #: ../src/guestfs-actions.pod:7176
20270 msgid ""
20271 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
20272 "C<guestfs_mkdir>."
20273 msgstr ""
20274
20275 # type: textblock
20276 #. type: textblock
20277 #: ../src/guestfs-actions.pod:7179 ../fish/guestfish-actions.pod:4768
20278 msgid "This call returns the previous umask."
20279 msgstr ""
20280
20281 # type: =head2
20282 #. type: =head2
20283 #: ../src/guestfs-actions.pod:7185
20284 msgid "guestfs_umount"
20285 msgstr ""
20286
20287 # type: verbatim
20288 #. type: verbatim
20289 #: ../src/guestfs-actions.pod:7187
20290 #, no-wrap
20291 msgid ""
20292 " int\n"
20293 " guestfs_umount (guestfs_h *g,\n"
20294 "                 const char *pathordevice);\n"
20295 "\n"
20296 msgstr ""
20297
20298 # type: textblock
20299 #. type: textblock
20300 #: ../src/guestfs-actions.pod:7191 ../fish/guestfish-actions.pod:4776
20301 msgid ""
20302 "This unmounts the given filesystem.  The filesystem may be specified either "
20303 "by its mountpoint (path) or the device which contains the filesystem."
20304 msgstr ""
20305
20306 # type: =head2
20307 #. type: =head2
20308 #: ../src/guestfs-actions.pod:7199
20309 msgid "guestfs_umount_all"
20310 msgstr ""
20311
20312 # type: verbatim
20313 #. type: verbatim
20314 #: ../src/guestfs-actions.pod:7201
20315 #, no-wrap
20316 msgid ""
20317 " int\n"
20318 " guestfs_umount_all (guestfs_h *g);\n"
20319 "\n"
20320 msgstr ""
20321
20322 # type: textblock
20323 #. type: textblock
20324 #: ../src/guestfs-actions.pod:7204 ../fish/guestfish-actions.pod:4786
20325 msgid "This unmounts all mounted filesystems."
20326 msgstr ""
20327
20328 # type: textblock
20329 #. type: textblock
20330 #: ../src/guestfs-actions.pod:7206 ../fish/guestfish-actions.pod:4788
20331 msgid "Some internal mounts are not unmounted by this call."
20332 msgstr ""
20333
20334 # type: =head2
20335 #. type: =head2
20336 #: ../src/guestfs-actions.pod:7212
20337 msgid "guestfs_upload"
20338 msgstr ""
20339
20340 # type: verbatim
20341 #. type: verbatim
20342 #: ../src/guestfs-actions.pod:7214
20343 #, no-wrap
20344 msgid ""
20345 " int\n"
20346 " guestfs_upload (guestfs_h *g,\n"
20347 "                 const char *filename,\n"
20348 "                 const char *remotefilename);\n"
20349 "\n"
20350 msgstr ""
20351
20352 # type: textblock
20353 #. type: textblock
20354 #: ../src/guestfs-actions.pod:7219 ../src/guestfs-actions.pod:7243
20355 #: ../fish/guestfish-actions.pod:4794 ../fish/guestfish-actions.pod:4807
20356 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
20357 msgstr ""
20358
20359 # type: textblock
20360 #. type: textblock
20361 #: ../src/guestfs-actions.pod:7224
20362 msgid "See also C<guestfs_download>."
20363 msgstr ""
20364
20365 # type: =head2
20366 #. type: =head2
20367 #: ../src/guestfs-actions.pod:7235
20368 msgid "guestfs_upload_offset"
20369 msgstr ""
20370
20371 # type: verbatim
20372 #. type: verbatim
20373 #: ../src/guestfs-actions.pod:7237
20374 #, no-wrap
20375 msgid ""
20376 " int\n"
20377 " guestfs_upload_offset (guestfs_h *g,\n"
20378 "                        const char *filename,\n"
20379 "                        const char *remotefilename,\n"
20380 "                        int64_t offset);\n"
20381 "\n"
20382 msgstr ""
20383
20384 # type: textblock
20385 #. type: textblock
20386 #: ../src/guestfs-actions.pod:7246 ../fish/guestfish-actions.pod:4810
20387 msgid ""
20388 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
20389 "The intention is to overwrite parts of existing files or devices, although "
20390 "if a non-existant file is specified then it is created with a \"hole\" "
20391 "before C<offset>.  The size of the data written is implicit in the size of "
20392 "the source C<filename>."
20393 msgstr ""
20394
20395 # type: textblock
20396 #. type: textblock
20397 #: ../src/guestfs-actions.pod:7253
20398 msgid ""
20399 "Note that there is no limit on the amount of data that can be uploaded with "
20400 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
20401 "full amount unless an error occurs."
20402 msgstr ""
20403
20404 # type: textblock
20405 #. type: textblock
20406 #: ../src/guestfs-actions.pod:7258
20407 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
20408 msgstr ""
20409
20410 # type: =head2
20411 #. type: =head2
20412 #: ../src/guestfs-actions.pod:7269
20413 msgid "guestfs_utimens"
20414 msgstr ""
20415
20416 # type: verbatim
20417 #. type: verbatim
20418 #: ../src/guestfs-actions.pod:7271
20419 #, no-wrap
20420 msgid ""
20421 " int\n"
20422 " guestfs_utimens (guestfs_h *g,\n"
20423 "                  const char *path,\n"
20424 "                  int64_t atsecs,\n"
20425 "                  int64_t atnsecs,\n"
20426 "                  int64_t mtsecs,\n"
20427 "                  int64_t mtnsecs);\n"
20428 "\n"
20429 msgstr ""
20430
20431 # type: textblock
20432 #. type: textblock
20433 #: ../src/guestfs-actions.pod:7279 ../fish/guestfish-actions.pod:4830
20434 msgid "This command sets the timestamps of a file with nanosecond precision."
20435 msgstr ""
20436
20437 # type: textblock
20438 #. type: textblock
20439 #: ../src/guestfs-actions.pod:7282 ../fish/guestfish-actions.pod:4833
20440 msgid ""
20441 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
20442 "from the epoch."
20443 msgstr ""
20444
20445 # type: textblock
20446 #. type: textblock
20447 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4836
20448 msgid ""
20449 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
20450 "nanoseconds from the epoch."
20451 msgstr ""
20452
20453 # type: textblock
20454 #. type: textblock
20455 #: ../src/guestfs-actions.pod:7288 ../fish/guestfish-actions.pod:4839
20456 msgid ""
20457 "If the C<*nsecs> field contains the special value C<-1> then the "
20458 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
20459 "ignored in this case)."
20460 msgstr ""
20461
20462 # type: textblock
20463 #. type: textblock
20464 #: ../src/guestfs-actions.pod:7292 ../fish/guestfish-actions.pod:4843
20465 msgid ""
20466 "If the C<*nsecs> field contains the special value C<-2> then the "
20467 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
20468 "in this case)."
20469 msgstr ""
20470
20471 # type: =head2
20472 #. type: =head2
20473 #: ../src/guestfs-actions.pod:7300 ../src/guestfs-structs.pod:175
20474 msgid "guestfs_version"
20475 msgstr ""
20476
20477 # type: verbatim
20478 #. type: verbatim
20479 #: ../src/guestfs-actions.pod:7302
20480 #, no-wrap
20481 msgid ""
20482 " struct guestfs_version *\n"
20483 " guestfs_version (guestfs_h *g);\n"
20484 "\n"
20485 msgstr ""
20486
20487 # type: textblock
20488 #. type: textblock
20489 #: ../src/guestfs-actions.pod:7305 ../fish/guestfish-actions.pod:4851
20490 msgid ""
20491 "Return the libguestfs version number that the program is linked against."
20492 msgstr ""
20493
20494 # type: textblock
20495 #. type: textblock
20496 #: ../src/guestfs-actions.pod:7308 ../fish/guestfish-actions.pod:4854
20497 msgid ""
20498 "Note that because of dynamic linking this is not necessarily the version of "
20499 "libguestfs that you compiled against.  You can compile the program, and then "
20500 "at runtime dynamically link against a completely different C<libguestfs.so> "
20501 "library."
20502 msgstr ""
20503
20504 # type: textblock
20505 #. type: textblock
20506 #: ../src/guestfs-actions.pod:7313 ../fish/guestfish-actions.pod:4859
20507 msgid ""
20508 "This call was added in version C<1.0.58>.  In previous versions of "
20509 "libguestfs there was no way to get the version number.  From C code you can "
20510 "use dynamic linker functions to find out if this symbol exists (if it "
20511 "doesn't, then it's an earlier version)."
20512 msgstr ""
20513
20514 # type: textblock
20515 #. type: textblock
20516 #: ../src/guestfs-actions.pod:7319 ../fish/guestfish-actions.pod:4865
20517 msgid ""
20518 "The call returns a structure with four elements.  The first three (C<major>, "
20519 "C<minor> and C<release>) are numbers and correspond to the usual version "
20520 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
20521 "but may be used for distro-specific information."
20522 msgstr ""
20523
20524 # type: textblock
20525 #. type: textblock
20526 #: ../src/guestfs-actions.pod:7325 ../fish/guestfish-actions.pod:4871
20527 msgid ""
20528 "To construct the original version string: C<$major.$minor.$release$extra>"
20529 msgstr ""
20530
20531 # type: textblock
20532 #. type: textblock
20533 #: ../src/guestfs-actions.pod:7328 ../fish/guestfish-actions.pod:4874
20534 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
20535 msgstr ""
20536
20537 # type: textblock
20538 #. type: textblock
20539 #: ../src/guestfs-actions.pod:7330
20540 msgid ""
20541 "I<Note:> Don't use this call to test for availability of features.  In "
20542 "enterprise distributions we backport features from later versions into "
20543 "earlier versions, making this an unreliable way to test for features.  Use "
20544 "C<guestfs_available> instead."
20545 msgstr ""
20546
20547 # type: textblock
20548 #. type: textblock
20549 #: ../src/guestfs-actions.pod:7336
20550 msgid ""
20551 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
20552 "error.  I<The caller must call C<guestfs_free_version> after use>."
20553 msgstr ""
20554
20555 # type: textblock
20556 #. type: textblock
20557 #: ../src/guestfs-actions.pod:7340
20558 msgid "(Added in 1.0.58)"
20559 msgstr ""
20560
20561 # type: =head2
20562 #. type: =head2
20563 #: ../src/guestfs-actions.pod:7342
20564 msgid "guestfs_vfs_label"
20565 msgstr ""
20566
20567 # type: verbatim
20568 #. type: verbatim
20569 #: ../src/guestfs-actions.pod:7344
20570 #, no-wrap
20571 msgid ""
20572 " char *\n"
20573 " guestfs_vfs_label (guestfs_h *g,\n"
20574 "                    const char *device);\n"
20575 "\n"
20576 msgstr ""
20577
20578 # type: textblock
20579 #. type: textblock
20580 #: ../src/guestfs-actions.pod:7348 ../fish/guestfish-actions.pod:4886
20581 msgid "This returns the filesystem label of the filesystem on C<device>."
20582 msgstr ""
20583
20584 # type: textblock
20585 #. type: textblock
20586 #: ../src/guestfs-actions.pod:7351 ../fish/guestfish-actions.pod:4889
20587 msgid "If the filesystem is unlabeled, this returns the empty string."
20588 msgstr ""
20589
20590 # type: textblock
20591 #. type: textblock
20592 #: ../src/guestfs-actions.pod:7353
20593 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
20594 msgstr ""
20595
20596 # type: textblock
20597 #. type: textblock
20598 #: ../src/guestfs-actions.pod:7358 ../src/guestfs-actions.pod:7395
20599 msgid "(Added in 1.3.18)"
20600 msgstr ""
20601
20602 # type: =head2
20603 #. type: =head2
20604 #: ../src/guestfs-actions.pod:7360
20605 msgid "guestfs_vfs_type"
20606 msgstr ""
20607
20608 # type: verbatim
20609 #. type: verbatim
20610 #: ../src/guestfs-actions.pod:7362
20611 #, no-wrap
20612 msgid ""
20613 " char *\n"
20614 " guestfs_vfs_type (guestfs_h *g,\n"
20615 "                   const char *device);\n"
20616 "\n"
20617 msgstr ""
20618
20619 # type: textblock
20620 #. type: textblock
20621 #: ../src/guestfs-actions.pod:7366 ../fish/guestfish-actions.pod:4897
20622 msgid ""
20623 "This command gets the filesystem type corresponding to the filesystem on "
20624 "C<device>."
20625 msgstr ""
20626
20627 # type: textblock
20628 #. type: textblock
20629 #: ../src/guestfs-actions.pod:7369 ../fish/guestfish-actions.pod:4900
20630 msgid ""
20631 "For most filesystems, the result is the name of the Linux VFS module which "
20632 "would be used to mount this filesystem if you mounted it without specifying "
20633 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
20634 msgstr ""
20635
20636 # type: =head2
20637 #. type: =head2
20638 #: ../src/guestfs-actions.pod:7379
20639 msgid "guestfs_vfs_uuid"
20640 msgstr ""
20641
20642 # type: verbatim
20643 #. type: verbatim
20644 #: ../src/guestfs-actions.pod:7381
20645 #, no-wrap
20646 msgid ""
20647 " char *\n"
20648 " guestfs_vfs_uuid (guestfs_h *g,\n"
20649 "                   const char *device);\n"
20650 "\n"
20651 msgstr ""
20652
20653 # type: textblock
20654 #. type: textblock
20655 #: ../src/guestfs-actions.pod:7385 ../fish/guestfish-actions.pod:4909
20656 msgid "This returns the filesystem UUID of the filesystem on C<device>."
20657 msgstr ""
20658
20659 # type: textblock
20660 #. type: textblock
20661 #: ../src/guestfs-actions.pod:7388 ../fish/guestfish-actions.pod:4912
20662 msgid "If the filesystem does not have a UUID, this returns the empty string."
20663 msgstr ""
20664
20665 # type: textblock
20666 #. type: textblock
20667 #: ../src/guestfs-actions.pod:7390
20668 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
20669 msgstr ""
20670
20671 # type: =head2
20672 #. type: =head2
20673 #: ../src/guestfs-actions.pod:7397
20674 msgid "guestfs_vg_activate"
20675 msgstr ""
20676
20677 # type: verbatim
20678 #. type: verbatim
20679 #: ../src/guestfs-actions.pod:7399
20680 #, no-wrap
20681 msgid ""
20682 " int\n"
20683 " guestfs_vg_activate (guestfs_h *g,\n"
20684 "                      int activate,\n"
20685 "                      char *const *volgroups);\n"
20686 "\n"
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../src/guestfs-actions.pod:7404 ../fish/guestfish-actions.pod:4920
20691 msgid ""
20692 "This command activates or (if C<activate> is false) deactivates all logical "
20693 "volumes in the listed volume groups C<volgroups>."
20694 msgstr ""
20695
20696 # type: textblock
20697 #. type: textblock
20698 #: ../src/guestfs-actions.pod:7407 ../fish/guestfish-actions.pod:4923
20699 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
20700 msgstr ""
20701
20702 # type: textblock
20703 #. type: textblock
20704 #: ../src/guestfs-actions.pod:7409 ../fish/guestfish-actions.pod:4925
20705 msgid ""
20706 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
20707 "activated or deactivated."
20708 msgstr ""
20709
20710 # type: =head2
20711 #. type: =head2
20712 #: ../src/guestfs-actions.pod:7416
20713 msgid "guestfs_vg_activate_all"
20714 msgstr ""
20715
20716 # type: verbatim
20717 #. type: verbatim
20718 #: ../src/guestfs-actions.pod:7418
20719 #, no-wrap
20720 msgid ""
20721 " int\n"
20722 " guestfs_vg_activate_all (guestfs_h *g,\n"
20723 "                          int activate);\n"
20724 "\n"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../src/guestfs-actions.pod:7422 ../fish/guestfish-actions.pod:4932
20729 msgid ""
20730 "This command activates or (if C<activate> is false) deactivates all logical "
20731 "volumes in all volume groups."
20732 msgstr ""
20733
20734 # type: textblock
20735 #. type: textblock
20736 #: ../src/guestfs-actions.pod:7425 ../fish/guestfish-actions.pod:4935
20737 msgid "This command is the same as running C<vgchange -a y|n>"
20738 msgstr ""
20739
20740 # type: =head2
20741 #. type: =head2
20742 #: ../src/guestfs-actions.pod:7431
20743 msgid "guestfs_vgcreate"
20744 msgstr ""
20745
20746 # type: verbatim
20747 #. type: verbatim
20748 #: ../src/guestfs-actions.pod:7433
20749 #, no-wrap
20750 msgid ""
20751 " int\n"
20752 " guestfs_vgcreate (guestfs_h *g,\n"
20753 "                   const char *volgroup,\n"
20754 "                   char *const *physvols);\n"
20755 "\n"
20756 msgstr ""
20757
20758 # type: textblock
20759 #. type: textblock
20760 #: ../src/guestfs-actions.pod:7438 ../fish/guestfish-actions.pod:4941
20761 msgid ""
20762 "This creates an LVM volume group called C<volgroup> from the non-empty list "
20763 "of physical volumes C<physvols>."
20764 msgstr ""
20765
20766 # type: =head2
20767 #. type: =head2
20768 #: ../src/guestfs-actions.pod:7445
20769 msgid "guestfs_vglvuuids"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #. type: verbatim
20774 #: ../src/guestfs-actions.pod:7447
20775 #, no-wrap
20776 msgid ""
20777 " char **\n"
20778 " guestfs_vglvuuids (guestfs_h *g,\n"
20779 "                    const char *vgname);\n"
20780 "\n"
20781 msgstr ""
20782
20783 # type: textblock
20784 #. type: textblock
20785 #: ../src/guestfs-actions.pod:7451 ../fish/guestfish-actions.pod:4948
20786 msgid ""
20787 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
20788 "volumes created in this volume group."
20789 msgstr ""
20790
20791 # type: textblock
20792 #. type: textblock
20793 #: ../src/guestfs-actions.pod:7454
20794 msgid ""
20795 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
20796 "associate logical volumes and volume groups."
20797 msgstr ""
20798
20799 # type: textblock
20800 #. type: textblock
20801 #: ../src/guestfs-actions.pod:7457
20802 msgid "See also C<guestfs_vgpvuuids>."
20803 msgstr ""
20804
20805 # type: =head2
20806 #. type: =head2
20807 #: ../src/guestfs-actions.pod:7465
20808 msgid "guestfs_vgpvuuids"
20809 msgstr ""
20810
20811 # type: verbatim
20812 #. type: verbatim
20813 #: ../src/guestfs-actions.pod:7467
20814 #, no-wrap
20815 msgid ""
20816 " char **\n"
20817 " guestfs_vgpvuuids (guestfs_h *g,\n"
20818 "                    const char *vgname);\n"
20819 "\n"
20820 msgstr ""
20821
20822 # type: textblock
20823 #. type: textblock
20824 #: ../src/guestfs-actions.pod:7471 ../fish/guestfish-actions.pod:4960
20825 msgid ""
20826 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
20827 "volumes that this volume group resides on."
20828 msgstr ""
20829
20830 # type: textblock
20831 #. type: textblock
20832 #: ../src/guestfs-actions.pod:7474
20833 msgid ""
20834 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
20835 "associate physical volumes and volume groups."
20836 msgstr ""
20837
20838 # type: textblock
20839 #. type: textblock
20840 #: ../src/guestfs-actions.pod:7477
20841 msgid "See also C<guestfs_vglvuuids>."
20842 msgstr ""
20843
20844 # type: =head2
20845 #. type: =head2
20846 #: ../src/guestfs-actions.pod:7485
20847 msgid "guestfs_vgremove"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #. type: verbatim
20852 #: ../src/guestfs-actions.pod:7487
20853 #, no-wrap
20854 msgid ""
20855 " int\n"
20856 " guestfs_vgremove (guestfs_h *g,\n"
20857 "                   const char *vgname);\n"
20858 "\n"
20859 msgstr ""
20860
20861 # type: textblock
20862 #. type: textblock
20863 #: ../src/guestfs-actions.pod:7491 ../fish/guestfish-actions.pod:4972
20864 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
20865 msgstr ""
20866
20867 # type: textblock
20868 #. type: textblock
20869 #: ../src/guestfs-actions.pod:7493 ../fish/guestfish-actions.pod:4974
20870 msgid ""
20871 "This also forcibly removes all logical volumes in the volume group (if any)."
20872 msgstr ""
20873
20874 # type: =head2
20875 #. type: =head2
20876 #: ../src/guestfs-actions.pod:7500
20877 msgid "guestfs_vgrename"
20878 msgstr ""
20879
20880 # type: verbatim
20881 #. type: verbatim
20882 #: ../src/guestfs-actions.pod:7502
20883 #, no-wrap
20884 msgid ""
20885 " int\n"
20886 " guestfs_vgrename (guestfs_h *g,\n"
20887 "                   const char *volgroup,\n"
20888 "                   const char *newvolgroup);\n"
20889 "\n"
20890 msgstr ""
20891
20892 # type: textblock
20893 #. type: textblock
20894 #: ../src/guestfs-actions.pod:7507 ../fish/guestfish-actions.pod:4981
20895 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
20896 msgstr ""
20897
20898 # type: =head2
20899 #. type: =head2
20900 #: ../src/guestfs-actions.pod:7513
20901 msgid "guestfs_vgs"
20902 msgstr ""
20903
20904 # type: verbatim
20905 #. type: verbatim
20906 #: ../src/guestfs-actions.pod:7515
20907 #, no-wrap
20908 msgid ""
20909 " char **\n"
20910 " guestfs_vgs (guestfs_h *g);\n"
20911 "\n"
20912 msgstr ""
20913
20914 # type: textblock
20915 #. type: textblock
20916 #: ../src/guestfs-actions.pod:7518 ../fish/guestfish-actions.pod:4987
20917 msgid ""
20918 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20919 "> command."
20920 msgstr ""
20921
20922 # type: textblock
20923 #. type: textblock
20924 #: ../src/guestfs-actions.pod:7521 ../fish/guestfish-actions.pod:4990
20925 msgid ""
20926 "This returns a list of just the volume group names that were detected (eg. "
20927 "C<VolGroup00>)."
20928 msgstr ""
20929
20930 # type: textblock
20931 #. type: textblock
20932 #: ../src/guestfs-actions.pod:7524
20933 msgid "See also C<guestfs_vgs_full>."
20934 msgstr ""
20935
20936 # type: =head2
20937 #. type: =head2
20938 #: ../src/guestfs-actions.pod:7532
20939 msgid "guestfs_vgs_full"
20940 msgstr ""
20941
20942 # type: verbatim
20943 #. type: verbatim
20944 #: ../src/guestfs-actions.pod:7534
20945 #, no-wrap
20946 msgid ""
20947 " struct guestfs_lvm_vg_list *\n"
20948 " guestfs_vgs_full (guestfs_h *g);\n"
20949 "\n"
20950 msgstr ""
20951
20952 # type: textblock
20953 #. type: textblock
20954 #: ../src/guestfs-actions.pod:7537 ../fish/guestfish-actions.pod:4999
20955 msgid ""
20956 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
20957 "> command.  The \"full\" version includes all fields."
20958 msgstr ""
20959
20960 # type: textblock
20961 #. type: textblock
20962 #: ../src/guestfs-actions.pod:7540
20963 msgid ""
20964 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
20965 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
20966 msgstr ""
20967
20968 # type: =head2
20969 #. type: =head2
20970 #: ../src/guestfs-actions.pod:7546
20971 msgid "guestfs_vgscan"
20972 msgstr ""
20973
20974 # type: verbatim
20975 #. type: verbatim
20976 #: ../src/guestfs-actions.pod:7548
20977 #, no-wrap
20978 msgid ""
20979 " int\n"
20980 " guestfs_vgscan (guestfs_h *g);\n"
20981 "\n"
20982 msgstr ""
20983
20984 # type: textblock
20985 #. type: textblock
20986 #: ../src/guestfs-actions.pod:7551 ../fish/guestfish-actions.pod:5006
20987 msgid ""
20988 "This rescans all block devices and rebuilds the list of LVM physical "
20989 "volumes, volume groups and logical volumes."
20990 msgstr ""
20991
20992 # type: =head2
20993 #. type: =head2
20994 #: ../src/guestfs-actions.pod:7558
20995 msgid "guestfs_vguuid"
20996 msgstr ""
20997
20998 # type: verbatim
20999 #. type: verbatim
21000 #: ../src/guestfs-actions.pod:7560
21001 #, no-wrap
21002 msgid ""
21003 " char *\n"
21004 " guestfs_vguuid (guestfs_h *g,\n"
21005 "                 const char *vgname);\n"
21006 "\n"
21007 msgstr ""
21008
21009 # type: textblock
21010 #. type: textblock
21011 #: ../src/guestfs-actions.pod:7564 ../fish/guestfish-actions.pod:5013
21012 msgid "This command returns the UUID of the LVM VG named C<vgname>."
21013 msgstr ""
21014
21015 # type: =head2
21016 #. type: =head2
21017 #: ../src/guestfs-actions.pod:7571
21018 msgid "guestfs_wait_ready"
21019 msgstr ""
21020
21021 # type: verbatim
21022 #. type: verbatim
21023 #: ../src/guestfs-actions.pod:7573
21024 #, no-wrap
21025 msgid ""
21026 " int\n"
21027 " guestfs_wait_ready (guestfs_h *g);\n"
21028 "\n"
21029 msgstr ""
21030
21031 # type: textblock
21032 #. type: textblock
21033 #: ../src/guestfs-actions.pod:7576
21034 msgid "This function is a no op."
21035 msgstr ""
21036
21037 # type: textblock
21038 #. type: textblock
21039 #: ../src/guestfs-actions.pod:7578
21040 msgid ""
21041 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
21042 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
21043 "is no longer necessary because C<guestfs_launch> now does the waiting."
21044 msgstr ""
21045
21046 # type: textblock
21047 #. type: textblock
21048 #: ../src/guestfs-actions.pod:7583
21049 msgid ""
21050 "If you see any calls to this function in code then you can just remove them, "
21051 "unless you want to retain compatibility with older versions of the API."
21052 msgstr ""
21053
21054 #. type: textblock
21055 #: ../src/guestfs-actions.pod:7589
21056 msgid ""
21057 "This function is deprecated.  In new code, use the C<launch> call instead."
21058 msgstr ""
21059
21060 # type: =head2
21061 #. type: =head2
21062 #: ../src/guestfs-actions.pod:7598
21063 msgid "guestfs_wc_c"
21064 msgstr ""
21065
21066 # type: verbatim
21067 #. type: verbatim
21068 #: ../src/guestfs-actions.pod:7600
21069 #, no-wrap
21070 msgid ""
21071 " int\n"
21072 " guestfs_wc_c (guestfs_h *g,\n"
21073 "               const char *path);\n"
21074 "\n"
21075 msgstr ""
21076
21077 # type: textblock
21078 #. type: textblock
21079 #: ../src/guestfs-actions.pod:7604 ../fish/guestfish-actions.pod:5019
21080 msgid ""
21081 "This command counts the characters in a file, using the C<wc -c> external "
21082 "command."
21083 msgstr ""
21084
21085 # type: =head2
21086 #. type: =head2
21087 #: ../src/guestfs-actions.pod:7611
21088 msgid "guestfs_wc_l"
21089 msgstr ""
21090
21091 # type: verbatim
21092 #. type: verbatim
21093 #: ../src/guestfs-actions.pod:7613
21094 #, no-wrap
21095 msgid ""
21096 " int\n"
21097 " guestfs_wc_l (guestfs_h *g,\n"
21098 "               const char *path);\n"
21099 "\n"
21100 msgstr ""
21101
21102 # type: textblock
21103 #. type: textblock
21104 #: ../src/guestfs-actions.pod:7617 ../fish/guestfish-actions.pod:5026
21105 msgid ""
21106 "This command counts the lines in a file, using the C<wc -l> external command."
21107 msgstr ""
21108
21109 # type: =head2
21110 #. type: =head2
21111 #: ../src/guestfs-actions.pod:7624
21112 msgid "guestfs_wc_w"
21113 msgstr ""
21114
21115 # type: verbatim
21116 #. type: verbatim
21117 #: ../src/guestfs-actions.pod:7626
21118 #, no-wrap
21119 msgid ""
21120 " int\n"
21121 " guestfs_wc_w (guestfs_h *g,\n"
21122 "               const char *path);\n"
21123 "\n"
21124 msgstr ""
21125
21126 # type: textblock
21127 #. type: textblock
21128 #: ../src/guestfs-actions.pod:7630 ../fish/guestfish-actions.pod:5033
21129 msgid ""
21130 "This command counts the words in a file, using the C<wc -w> external command."
21131 msgstr ""
21132
21133 # type: =head2
21134 #. type: =head2
21135 #: ../src/guestfs-actions.pod:7637
21136 msgid "guestfs_write"
21137 msgstr ""
21138
21139 # type: verbatim
21140 #. type: verbatim
21141 #: ../src/guestfs-actions.pod:7639
21142 #, no-wrap
21143 msgid ""
21144 " int\n"
21145 " guestfs_write (guestfs_h *g,\n"
21146 "                const char *path,\n"
21147 "                const char *content,\n"
21148 "                size_t content_size);\n"
21149 "\n"
21150 msgstr ""
21151
21152 # type: textblock
21153 #. type: textblock
21154 #: ../src/guestfs-actions.pod:7645 ../fish/guestfish-actions.pod:5040
21155 msgid ""
21156 "This call creates a file called C<path>.  The content of the file is the "
21157 "string C<content> (which can contain any 8 bit data)."
21158 msgstr ""
21159
21160 #. type: textblock
21161 #: ../src/guestfs-actions.pod:7648
21162 msgid "See also C<guestfs_write_append>."
21163 msgstr ""
21164
21165 #. type: =head2
21166 #: ../src/guestfs-actions.pod:7657
21167 msgid "guestfs_write_append"
21168 msgstr ""
21169
21170 #. type: verbatim
21171 #: ../src/guestfs-actions.pod:7659
21172 #, no-wrap
21173 msgid ""
21174 " int\n"
21175 " guestfs_write_append (guestfs_h *g,\n"
21176 "                       const char *path,\n"
21177 "                       const char *content,\n"
21178 "                       size_t content_size);\n"
21179 "\n"
21180 msgstr ""
21181
21182 #. type: textblock
21183 #: ../src/guestfs-actions.pod:7665 ../fish/guestfish-actions.pod:5052
21184 msgid ""
21185 "This call appends C<content> to the end of file C<path>.  If C<path> does "
21186 "not exist, then a new file is created."
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../src/guestfs-actions.pod:7668
21191 msgid "See also C<guestfs_write>."
21192 msgstr ""
21193
21194 # type: =head2
21195 #. type: =head2
21196 #: ../src/guestfs-actions.pod:7675
21197 msgid "guestfs_write_file"
21198 msgstr ""
21199
21200 # type: verbatim
21201 #. type: verbatim
21202 #: ../src/guestfs-actions.pod:7677
21203 #, no-wrap
21204 msgid ""
21205 " int\n"
21206 " guestfs_write_file (guestfs_h *g,\n"
21207 "                     const char *path,\n"
21208 "                     const char *content,\n"
21209 "                     int size);\n"
21210 "\n"
21211 msgstr ""
21212
21213 # type: textblock
21214 #. type: textblock
21215 #: ../src/guestfs-actions.pod:7683 ../fish/guestfish-actions.pod:5064
21216 msgid ""
21217 "This call creates a file called C<path>.  The contents of the file is the "
21218 "string C<content> (which can contain any 8 bit data), with length C<size>."
21219 msgstr ""
21220
21221 # type: textblock
21222 #. type: textblock
21223 #: ../src/guestfs-actions.pod:7687 ../fish/guestfish-actions.pod:5068
21224 msgid ""
21225 "As a special case, if C<size> is C<0> then the length is calculated using "
21226 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
21227 msgstr ""
21228
21229 # type: textblock
21230 #. type: textblock
21231 #: ../src/guestfs-actions.pod:7691 ../fish/guestfish-actions.pod:5072
21232 msgid ""
21233 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
21234 "I<not> work, even if the length is specified."
21235 msgstr ""
21236
21237 # type: textblock
21238 #. type: textblock
21239 #: ../src/guestfs-actions.pod:7699 ../fish/guestfish-actions.pod:5078
21240 msgid ""
21241 "This function is deprecated.  In new code, use the C<write> call instead."
21242 msgstr ""
21243
21244 # type: =head2
21245 #. type: =head2
21246 #: ../src/guestfs-actions.pod:7708
21247 msgid "guestfs_zegrep"
21248 msgstr ""
21249
21250 # type: verbatim
21251 #. type: verbatim
21252 #: ../src/guestfs-actions.pod:7710
21253 #, no-wrap
21254 msgid ""
21255 " char **\n"
21256 " guestfs_zegrep (guestfs_h *g,\n"
21257 "                 const char *regex,\n"
21258 "                 const char *path);\n"
21259 "\n"
21260 msgstr ""
21261
21262 # type: textblock
21263 #. type: textblock
21264 #: ../src/guestfs-actions.pod:7715 ../fish/guestfish-actions.pod:5089
21265 msgid ""
21266 "This calls the external C<zegrep> program and returns the matching lines."
21267 msgstr ""
21268
21269 # type: =head2
21270 #. type: =head2
21271 #: ../src/guestfs-actions.pod:7727
21272 msgid "guestfs_zegrepi"
21273 msgstr ""
21274
21275 # type: verbatim
21276 #. type: verbatim
21277 #: ../src/guestfs-actions.pod:7729
21278 #, no-wrap
21279 msgid ""
21280 " char **\n"
21281 " guestfs_zegrepi (guestfs_h *g,\n"
21282 "                  const char *regex,\n"
21283 "                  const char *path);\n"
21284 "\n"
21285 msgstr ""
21286
21287 # type: textblock
21288 #. type: textblock
21289 #: ../src/guestfs-actions.pod:7734 ../fish/guestfish-actions.pod:5099
21290 msgid ""
21291 "This calls the external C<zegrep -i> program and returns the matching lines."
21292 msgstr ""
21293
21294 # type: =head2
21295 #. type: =head2
21296 #: ../src/guestfs-actions.pod:7746
21297 msgid "guestfs_zero"
21298 msgstr ""
21299
21300 # type: verbatim
21301 #. type: verbatim
21302 #: ../src/guestfs-actions.pod:7748
21303 #, no-wrap
21304 msgid ""
21305 " int\n"
21306 " guestfs_zero (guestfs_h *g,\n"
21307 "               const char *device);\n"
21308 "\n"
21309 msgstr ""
21310
21311 # type: textblock
21312 #. type: textblock
21313 #: ../src/guestfs-actions.pod:7752 ../fish/guestfish-actions.pod:5109
21314 msgid "This command writes zeroes over the first few blocks of C<device>."
21315 msgstr ""
21316
21317 # type: textblock
21318 #. type: textblock
21319 #: ../src/guestfs-actions.pod:7754 ../fish/guestfish-actions.pod:5111
21320 msgid ""
21321 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
21322 "securely wipe the device).  It should be sufficient to remove any partition "
21323 "tables, filesystem superblocks and so on."
21324 msgstr ""
21325
21326 #. type: textblock
21327 #: ../src/guestfs-actions.pod:7758
21328 msgid ""
21329 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
21330 "C<guestfs_is_zero_device>"
21331 msgstr ""
21332
21333 # type: =head2
21334 #. type: =head2
21335 #: ../src/guestfs-actions.pod:7770
21336 msgid "guestfs_zero_device"
21337 msgstr ""
21338
21339 # type: verbatim
21340 #. type: verbatim
21341 #: ../src/guestfs-actions.pod:7772
21342 #, no-wrap
21343 msgid ""
21344 " int\n"
21345 " guestfs_zero_device (guestfs_h *g,\n"
21346 "                      const char *device);\n"
21347 "\n"
21348 msgstr ""
21349
21350 # type: textblock
21351 #. type: textblock
21352 #: ../src/guestfs-actions.pod:7776
21353 msgid ""
21354 "This command writes zeroes over the entire C<device>.  Compare with "
21355 "C<guestfs_zero> which just zeroes the first few blocks of a device."
21356 msgstr ""
21357
21358 # type: textblock
21359 #. type: textblock
21360 #: ../src/guestfs-actions.pod:7790
21361 msgid "(Added in 1.3.1)"
21362 msgstr ""
21363
21364 # type: =head2
21365 #. type: =head2
21366 #: ../src/guestfs-actions.pod:7792
21367 msgid "guestfs_zerofree"
21368 msgstr ""
21369
21370 # type: verbatim
21371 #. type: verbatim
21372 #: ../src/guestfs-actions.pod:7794
21373 #, no-wrap
21374 msgid ""
21375 " int\n"
21376 " guestfs_zerofree (guestfs_h *g,\n"
21377 "                   const char *device);\n"
21378 "\n"
21379 msgstr ""
21380
21381 # type: textblock
21382 #. type: textblock
21383 #: ../src/guestfs-actions.pod:7798 ../fish/guestfish-actions.pod:5133
21384 msgid ""
21385 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
21386 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
21387 "possible to compress the filesystem more effectively."
21388 msgstr ""
21389
21390 # type: textblock
21391 #. type: textblock
21392 #: ../src/guestfs-actions.pod:7803 ../fish/guestfish-actions.pod:5138
21393 msgid "You should B<not> run this program if the filesystem is mounted."
21394 msgstr ""
21395
21396 # type: textblock
21397 #. type: textblock
21398 #: ../src/guestfs-actions.pod:7806 ../fish/guestfish-actions.pod:5141
21399 msgid ""
21400 "It is possible that using this program can damage the filesystem or data on "
21401 "the filesystem."
21402 msgstr ""
21403
21404 # type: =head2
21405 #. type: =head2
21406 #: ../src/guestfs-actions.pod:7813
21407 msgid "guestfs_zfgrep"
21408 msgstr ""
21409
21410 # type: verbatim
21411 #. type: verbatim
21412 #: ../src/guestfs-actions.pod:7815
21413 #, no-wrap
21414 msgid ""
21415 " char **\n"
21416 " guestfs_zfgrep (guestfs_h *g,\n"
21417 "                 const char *pattern,\n"
21418 "                 const char *path);\n"
21419 "\n"
21420 msgstr ""
21421
21422 # type: textblock
21423 #. type: textblock
21424 #: ../src/guestfs-actions.pod:7820 ../fish/guestfish-actions.pod:5148
21425 msgid ""
21426 "This calls the external C<zfgrep> program and returns the matching lines."
21427 msgstr ""
21428
21429 # type: =head2
21430 #. type: =head2
21431 #: ../src/guestfs-actions.pod:7832
21432 msgid "guestfs_zfgrepi"
21433 msgstr ""
21434
21435 # type: verbatim
21436 #. type: verbatim
21437 #: ../src/guestfs-actions.pod:7834
21438 #, no-wrap
21439 msgid ""
21440 " char **\n"
21441 " guestfs_zfgrepi (guestfs_h *g,\n"
21442 "                  const char *pattern,\n"
21443 "                  const char *path);\n"
21444 "\n"
21445 msgstr ""
21446
21447 # type: textblock
21448 #. type: textblock
21449 #: ../src/guestfs-actions.pod:7839 ../fish/guestfish-actions.pod:5158
21450 msgid ""
21451 "This calls the external C<zfgrep -i> program and returns the matching lines."
21452 msgstr ""
21453
21454 # type: =head2
21455 #. type: =head2
21456 #: ../src/guestfs-actions.pod:7851
21457 msgid "guestfs_zfile"
21458 msgstr ""
21459
21460 # type: verbatim
21461 #. type: verbatim
21462 #: ../src/guestfs-actions.pod:7853
21463 #, no-wrap
21464 msgid ""
21465 " char *\n"
21466 " guestfs_zfile (guestfs_h *g,\n"
21467 "                const char *meth,\n"
21468 "                const char *path);\n"
21469 "\n"
21470 msgstr ""
21471
21472 # type: textblock
21473 #. type: textblock
21474 #: ../src/guestfs-actions.pod:7858 ../fish/guestfish-actions.pod:5168
21475 msgid ""
21476 "This command runs C<file> after first decompressing C<path> using C<method>."
21477 msgstr ""
21478
21479 # type: textblock
21480 #. type: textblock
21481 #: ../src/guestfs-actions.pod:7861 ../fish/guestfish-actions.pod:5171
21482 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
21483 msgstr ""
21484
21485 # type: textblock
21486 #. type: textblock
21487 #: ../src/guestfs-actions.pod:7863
21488 msgid ""
21489 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
21490 "files."
21491 msgstr ""
21492
21493 # type: textblock
21494 #. type: textblock
21495 #: ../src/guestfs-actions.pod:7869 ../fish/guestfish-actions.pod:5176
21496 msgid ""
21497 "This function is deprecated.  In new code, use the C<file> call instead."
21498 msgstr ""
21499
21500 # type: =head2
21501 #. type: =head2
21502 #: ../src/guestfs-actions.pod:7878
21503 msgid "guestfs_zgrep"
21504 msgstr ""
21505
21506 # type: verbatim
21507 #. type: verbatim
21508 #: ../src/guestfs-actions.pod:7880
21509 #, no-wrap
21510 msgid ""
21511 " char **\n"
21512 " guestfs_zgrep (guestfs_h *g,\n"
21513 "                const char *regex,\n"
21514 "                const char *path);\n"
21515 "\n"
21516 msgstr ""
21517
21518 # type: textblock
21519 #. type: textblock
21520 #: ../src/guestfs-actions.pod:7885 ../fish/guestfish-actions.pod:5187
21521 msgid ""
21522 "This calls the external C<zgrep> program and returns the matching lines."
21523 msgstr ""
21524
21525 # type: =head2
21526 #. type: =head2
21527 #: ../src/guestfs-actions.pod:7897
21528 msgid "guestfs_zgrepi"
21529 msgstr ""
21530
21531 # type: verbatim
21532 #. type: verbatim
21533 #: ../src/guestfs-actions.pod:7899
21534 #, no-wrap
21535 msgid ""
21536 " char **\n"
21537 " guestfs_zgrepi (guestfs_h *g,\n"
21538 "                 const char *regex,\n"
21539 "                 const char *path);\n"
21540 "\n"
21541 msgstr ""
21542
21543 # type: textblock
21544 #. type: textblock
21545 #: ../src/guestfs-actions.pod:7904 ../fish/guestfish-actions.pod:5197
21546 msgid ""
21547 "This calls the external C<zgrep -i> program and returns the matching lines."
21548 msgstr ""
21549
21550 # type: =item
21551 #. type: =item
21552 #: ../src/guestfs-availability.pod:3
21553 msgid "B<augeas>"
21554 msgstr ""
21555
21556 # type: textblock
21557 #. type: textblock
21558 #: ../src/guestfs-availability.pod:5
21559 msgid ""
21560 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
21561 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
21562 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
21563 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
21564 "L</guestfs_aug_save> L</guestfs_aug_set>"
21565 msgstr ""
21566
21567 #. type: =item
21568 #: ../src/guestfs-availability.pod:21
21569 msgid "B<btrfs>"
21570 msgstr ""
21571
21572 #. type: textblock
21573 #: ../src/guestfs-availability.pod:23
21574 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
21575 msgstr ""
21576
21577 # type: =item
21578 #. type: =item
21579 #: ../src/guestfs-availability.pod:26
21580 msgid "B<inotify>"
21581 msgstr ""
21582
21583 # type: textblock
21584 #. type: textblock
21585 #: ../src/guestfs-availability.pod:28
21586 msgid ""
21587 "The following functions: L</guestfs_inotify_add_watch> L</"
21588 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
21589 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
21590 msgstr ""
21591
21592 # type: =item
21593 #. type: =item
21594 #: ../src/guestfs-availability.pod:36
21595 msgid "B<linuxfsuuid>"
21596 msgstr ""
21597
21598 # type: textblock
21599 #. type: textblock
21600 #: ../src/guestfs-availability.pod:38
21601 msgid ""
21602 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
21603 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
21604 msgstr ""
21605
21606 # type: =item
21607 #. type: =item
21608 #: ../src/guestfs-availability.pod:45
21609 msgid "B<linuxmodules>"
21610 msgstr ""
21611
21612 # type: textblock
21613 #. type: textblock
21614 #: ../src/guestfs-availability.pod:47
21615 msgid "The following functions: L</guestfs_modprobe>"
21616 msgstr ""
21617
21618 # type: =item
21619 #. type: =item
21620 #: ../src/guestfs-availability.pod:50
21621 msgid "B<linuxxattrs>"
21622 msgstr ""
21623
21624 # type: textblock
21625 #. type: textblock
21626 #: ../src/guestfs-availability.pod:52
21627 msgid ""
21628 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
21629 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
21630 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
21631 "guestfs_setxattr>"
21632 msgstr ""
21633
21634 # type: =item
21635 #. type: =item
21636 #: ../src/guestfs-availability.pod:63
21637 msgid "B<luks>"
21638 msgstr ""
21639
21640 # type: textblock
21641 #. type: textblock
21642 #: ../src/guestfs-availability.pod:65
21643 msgid ""
21644 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
21645 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
21646 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
21647 msgstr ""
21648
21649 # type: =item
21650 #. type: =item
21651 #: ../src/guestfs-availability.pod:74
21652 msgid "B<lvm2>"
21653 msgstr ""
21654
21655 # type: textblock
21656 #. type: textblock
21657 #: ../src/guestfs-availability.pod:76
21658 msgid ""
21659 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
21660 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
21661 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
21662 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
21663 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
21664 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
21665 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
21666 msgstr ""
21667
21668 # type: =item
21669 #. type: =item
21670 #: ../src/guestfs-availability.pod:99
21671 msgid "B<mknod>"
21672 msgstr ""
21673
21674 # type: textblock
21675 #. type: textblock
21676 #: ../src/guestfs-availability.pod:101
21677 msgid ""
21678 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
21679 "guestfs_mknod_b> L</guestfs_mknod_c>"
21680 msgstr ""
21681
21682 # type: =item
21683 #. type: =item
21684 #: ../src/guestfs-availability.pod:107
21685 msgid "B<ntfs3g>"
21686 msgstr ""
21687
21688 # type: textblock
21689 #. type: textblock
21690 #: ../src/guestfs-availability.pod:109
21691 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
21692 msgstr ""
21693
21694 # type: =item
21695 #. type: =item
21696 #: ../src/guestfs-availability.pod:112
21697 msgid "B<ntfsprogs>"
21698 msgstr ""
21699
21700 #. type: textblock
21701 #: ../src/guestfs-availability.pod:114
21702 msgid ""
21703 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
21704 "L</guestfs_ntfsresize_size>"
21705 msgstr ""
21706
21707 # type: =item
21708 #. type: =item
21709 #: ../src/guestfs-availability.pod:119
21710 msgid "B<realpath>"
21711 msgstr ""
21712
21713 # type: textblock
21714 #. type: textblock
21715 #: ../src/guestfs-availability.pod:121
21716 msgid "The following functions: L</guestfs_realpath>"
21717 msgstr ""
21718
21719 # type: =item
21720 #. type: =item
21721 #: ../src/guestfs-availability.pod:124
21722 msgid "B<scrub>"
21723 msgstr ""
21724
21725 # type: textblock
21726 #. type: textblock
21727 #: ../src/guestfs-availability.pod:126
21728 msgid ""
21729 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
21730 "guestfs_scrub_freespace>"
21731 msgstr ""
21732
21733 # type: =item
21734 #. type: =item
21735 #: ../src/guestfs-availability.pod:131
21736 msgid "B<selinux>"
21737 msgstr ""
21738
21739 # type: textblock
21740 #. type: textblock
21741 #: ../src/guestfs-availability.pod:133
21742 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
21743 msgstr ""
21744
21745 # type: =item
21746 #. type: =item
21747 #: ../src/guestfs-availability.pod:137
21748 msgid "B<xz>"
21749 msgstr ""
21750
21751 # type: textblock
21752 #. type: textblock
21753 #: ../src/guestfs-availability.pod:139
21754 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
21755 msgstr ""
21756
21757 # type: =item
21758 #. type: =item
21759 #: ../src/guestfs-availability.pod:143
21760 msgid "B<zerofree>"
21761 msgstr ""
21762
21763 # type: textblock
21764 #. type: textblock
21765 #: ../src/guestfs-availability.pod:145
21766 msgid "The following functions: L</guestfs_zerofree>"
21767 msgstr ""
21768
21769 # type: =head2
21770 #. type: =head2
21771 #: ../src/guestfs-structs.pod:1
21772 msgid "guestfs_int_bool"
21773 msgstr ""
21774
21775 # type: verbatim
21776 #. type: verbatim
21777 #: ../src/guestfs-structs.pod:3
21778 #, no-wrap
21779 msgid ""
21780 " struct guestfs_int_bool {\n"
21781 "   int32_t i;\n"
21782 "   int32_t b;\n"
21783 " };\n"
21784 " \n"
21785 msgstr ""
21786
21787 # type: verbatim
21788 #. type: verbatim
21789 #: ../src/guestfs-structs.pod:8
21790 #, no-wrap
21791 msgid ""
21792 " struct guestfs_int_bool_list {\n"
21793 "   uint32_t len; /* Number of elements in list. */\n"
21794 "   struct guestfs_int_bool *val; /* Elements. */\n"
21795 " };\n"
21796 " \n"
21797 msgstr ""
21798
21799 # type: verbatim
21800 #. type: verbatim
21801 #: ../src/guestfs-structs.pod:13
21802 #, no-wrap
21803 msgid ""
21804 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
21805 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
21806 "\n"
21807 msgstr ""
21808
21809 # type: =head2
21810 #. type: =head2
21811 #: ../src/guestfs-structs.pod:16
21812 msgid "guestfs_lvm_pv"
21813 msgstr ""
21814
21815 # type: verbatim
21816 #. type: verbatim
21817 #: ../src/guestfs-structs.pod:18
21818 #, no-wrap
21819 msgid ""
21820 " struct guestfs_lvm_pv {\n"
21821 "   char *pv_name;\n"
21822 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21823 "   char pv_uuid[32];\n"
21824 "   char *pv_fmt;\n"
21825 "   uint64_t pv_size;\n"
21826 "   uint64_t dev_size;\n"
21827 "   uint64_t pv_free;\n"
21828 "   uint64_t pv_used;\n"
21829 "   char *pv_attr;\n"
21830 "   int64_t pv_pe_count;\n"
21831 "   int64_t pv_pe_alloc_count;\n"
21832 "   char *pv_tags;\n"
21833 "   uint64_t pe_start;\n"
21834 "   int64_t pv_mda_count;\n"
21835 "   uint64_t pv_mda_free;\n"
21836 " };\n"
21837 " \n"
21838 msgstr ""
21839
21840 # type: verbatim
21841 #. type: verbatim
21842 #: ../src/guestfs-structs.pod:36
21843 #, no-wrap
21844 msgid ""
21845 " struct guestfs_lvm_pv_list {\n"
21846 "   uint32_t len; /* Number of elements in list. */\n"
21847 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
21848 " };\n"
21849 " \n"
21850 msgstr ""
21851
21852 # type: verbatim
21853 #. type: verbatim
21854 #: ../src/guestfs-structs.pod:41
21855 #, no-wrap
21856 msgid ""
21857 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
21858 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
21859 "\n"
21860 msgstr ""
21861
21862 # type: =head2
21863 #. type: =head2
21864 #: ../src/guestfs-structs.pod:44
21865 msgid "guestfs_lvm_vg"
21866 msgstr ""
21867
21868 # type: verbatim
21869 #. type: verbatim
21870 #: ../src/guestfs-structs.pod:46
21871 #, no-wrap
21872 msgid ""
21873 " struct guestfs_lvm_vg {\n"
21874 "   char *vg_name;\n"
21875 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21876 "   char vg_uuid[32];\n"
21877 "   char *vg_fmt;\n"
21878 "   char *vg_attr;\n"
21879 "   uint64_t vg_size;\n"
21880 "   uint64_t vg_free;\n"
21881 "   char *vg_sysid;\n"
21882 "   uint64_t vg_extent_size;\n"
21883 "   int64_t vg_extent_count;\n"
21884 "   int64_t vg_free_count;\n"
21885 "   int64_t max_lv;\n"
21886 "   int64_t max_pv;\n"
21887 "   int64_t pv_count;\n"
21888 "   int64_t lv_count;\n"
21889 "   int64_t snap_count;\n"
21890 "   int64_t vg_seqno;\n"
21891 "   char *vg_tags;\n"
21892 "   int64_t vg_mda_count;\n"
21893 "   uint64_t vg_mda_free;\n"
21894 " };\n"
21895 " \n"
21896 msgstr ""
21897
21898 # type: verbatim
21899 #. type: verbatim
21900 #: ../src/guestfs-structs.pod:69
21901 #, no-wrap
21902 msgid ""
21903 " struct guestfs_lvm_vg_list {\n"
21904 "   uint32_t len; /* Number of elements in list. */\n"
21905 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
21906 " };\n"
21907 " \n"
21908 msgstr ""
21909
21910 # type: verbatim
21911 #. type: verbatim
21912 #: ../src/guestfs-structs.pod:74
21913 #, no-wrap
21914 msgid ""
21915 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
21916 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
21917 "\n"
21918 msgstr ""
21919
21920 # type: =head2
21921 #. type: =head2
21922 #: ../src/guestfs-structs.pod:77
21923 msgid "guestfs_lvm_lv"
21924 msgstr ""
21925
21926 # type: verbatim
21927 #. type: verbatim
21928 #: ../src/guestfs-structs.pod:79
21929 #, no-wrap
21930 msgid ""
21931 " struct guestfs_lvm_lv {\n"
21932 "   char *lv_name;\n"
21933 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
21934 "   char lv_uuid[32];\n"
21935 "   char *lv_attr;\n"
21936 "   int64_t lv_major;\n"
21937 "   int64_t lv_minor;\n"
21938 "   int64_t lv_kernel_major;\n"
21939 "   int64_t lv_kernel_minor;\n"
21940 "   uint64_t lv_size;\n"
21941 "   int64_t seg_count;\n"
21942 "   char *origin;\n"
21943 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21944 "   float snap_percent;\n"
21945 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
21946 "   float copy_percent;\n"
21947 "   char *move_pv;\n"
21948 "   char *lv_tags;\n"
21949 "   char *mirror_log;\n"
21950 "   char *modules;\n"
21951 " };\n"
21952 " \n"
21953 msgstr ""
21954
21955 # type: verbatim
21956 #. type: verbatim
21957 #: ../src/guestfs-structs.pod:101
21958 #, no-wrap
21959 msgid ""
21960 " struct guestfs_lvm_lv_list {\n"
21961 "   uint32_t len; /* Number of elements in list. */\n"
21962 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
21963 " };\n"
21964 " \n"
21965 msgstr ""
21966
21967 # type: verbatim
21968 #. type: verbatim
21969 #: ../src/guestfs-structs.pod:106
21970 #, no-wrap
21971 msgid ""
21972 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
21973 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
21974 "\n"
21975 msgstr ""
21976
21977 # type: verbatim
21978 #. type: verbatim
21979 #: ../src/guestfs-structs.pod:111
21980 #, no-wrap
21981 msgid ""
21982 " struct guestfs_stat {\n"
21983 "   int64_t dev;\n"
21984 "   int64_t ino;\n"
21985 "   int64_t mode;\n"
21986 "   int64_t nlink;\n"
21987 "   int64_t uid;\n"
21988 "   int64_t gid;\n"
21989 "   int64_t rdev;\n"
21990 "   int64_t size;\n"
21991 "   int64_t blksize;\n"
21992 "   int64_t blocks;\n"
21993 "   int64_t atime;\n"
21994 "   int64_t mtime;\n"
21995 "   int64_t ctime;\n"
21996 " };\n"
21997 " \n"
21998 msgstr ""
21999
22000 # type: verbatim
22001 #. type: verbatim
22002 #: ../src/guestfs-structs.pod:127
22003 #, no-wrap
22004 msgid ""
22005 " struct guestfs_stat_list {\n"
22006 "   uint32_t len; /* Number of elements in list. */\n"
22007 "   struct guestfs_stat *val; /* Elements. */\n"
22008 " };\n"
22009 " \n"
22010 msgstr ""
22011
22012 # type: verbatim
22013 #. type: verbatim
22014 #: ../src/guestfs-structs.pod:132
22015 #, no-wrap
22016 msgid ""
22017 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
22018 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
22019 "\n"
22020 msgstr ""
22021
22022 # type: verbatim
22023 #. type: verbatim
22024 #: ../src/guestfs-structs.pod:137
22025 #, no-wrap
22026 msgid ""
22027 " struct guestfs_statvfs {\n"
22028 "   int64_t bsize;\n"
22029 "   int64_t frsize;\n"
22030 "   int64_t blocks;\n"
22031 "   int64_t bfree;\n"
22032 "   int64_t bavail;\n"
22033 "   int64_t files;\n"
22034 "   int64_t ffree;\n"
22035 "   int64_t favail;\n"
22036 "   int64_t fsid;\n"
22037 "   int64_t flag;\n"
22038 "   int64_t namemax;\n"
22039 " };\n"
22040 " \n"
22041 msgstr ""
22042
22043 # type: verbatim
22044 #. type: verbatim
22045 #: ../src/guestfs-structs.pod:151
22046 #, no-wrap
22047 msgid ""
22048 " struct guestfs_statvfs_list {\n"
22049 "   uint32_t len; /* Number of elements in list. */\n"
22050 "   struct guestfs_statvfs *val; /* Elements. */\n"
22051 " };\n"
22052 " \n"
22053 msgstr ""
22054
22055 # type: verbatim
22056 #. type: verbatim
22057 #: ../src/guestfs-structs.pod:156
22058 #, no-wrap
22059 msgid ""
22060 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
22061 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
22062 "\n"
22063 msgstr ""
22064
22065 # type: =head2
22066 #. type: =head2
22067 #: ../src/guestfs-structs.pod:159
22068 msgid "guestfs_dirent"
22069 msgstr ""
22070
22071 # type: verbatim
22072 #. type: verbatim
22073 #: ../src/guestfs-structs.pod:161
22074 #, no-wrap
22075 msgid ""
22076 " struct guestfs_dirent {\n"
22077 "   int64_t ino;\n"
22078 "   char ftyp;\n"
22079 "   char *name;\n"
22080 " };\n"
22081 " \n"
22082 msgstr ""
22083
22084 # type: verbatim
22085 #. type: verbatim
22086 #: ../src/guestfs-structs.pod:167
22087 #, no-wrap
22088 msgid ""
22089 " struct guestfs_dirent_list {\n"
22090 "   uint32_t len; /* Number of elements in list. */\n"
22091 "   struct guestfs_dirent *val; /* Elements. */\n"
22092 " };\n"
22093 " \n"
22094 msgstr ""
22095
22096 # type: verbatim
22097 #. type: verbatim
22098 #: ../src/guestfs-structs.pod:172
22099 #, no-wrap
22100 msgid ""
22101 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
22102 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
22103 "\n"
22104 msgstr ""
22105
22106 # type: verbatim
22107 #. type: verbatim
22108 #: ../src/guestfs-structs.pod:177
22109 #, no-wrap
22110 msgid ""
22111 " struct guestfs_version {\n"
22112 "   int64_t major;\n"
22113 "   int64_t minor;\n"
22114 "   int64_t release;\n"
22115 "   char *extra;\n"
22116 " };\n"
22117 " \n"
22118 msgstr ""
22119
22120 # type: verbatim
22121 #. type: verbatim
22122 #: ../src/guestfs-structs.pod:184
22123 #, no-wrap
22124 msgid ""
22125 " struct guestfs_version_list {\n"
22126 "   uint32_t len; /* Number of elements in list. */\n"
22127 "   struct guestfs_version *val; /* Elements. */\n"
22128 " };\n"
22129 " \n"
22130 msgstr ""
22131
22132 # type: verbatim
22133 #. type: verbatim
22134 #: ../src/guestfs-structs.pod:189
22135 #, no-wrap
22136 msgid ""
22137 " void guestfs_free_version (struct guestfs_free_version *);\n"
22138 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
22139 "\n"
22140 msgstr ""
22141
22142 # type: =head2
22143 #. type: =head2
22144 #: ../src/guestfs-structs.pod:192
22145 msgid "guestfs_xattr"
22146 msgstr ""
22147
22148 # type: verbatim
22149 #. type: verbatim
22150 #: ../src/guestfs-structs.pod:194
22151 #, no-wrap
22152 msgid ""
22153 " struct guestfs_xattr {\n"
22154 "   char *attrname;\n"
22155 "   /* The next two fields describe a byte array. */\n"
22156 "   uint32_t attrval_len;\n"
22157 "   char *attrval;\n"
22158 " };\n"
22159 " \n"
22160 msgstr ""
22161
22162 # type: verbatim
22163 #. type: verbatim
22164 #: ../src/guestfs-structs.pod:201
22165 #, no-wrap
22166 msgid ""
22167 " struct guestfs_xattr_list {\n"
22168 "   uint32_t len; /* Number of elements in list. */\n"
22169 "   struct guestfs_xattr *val; /* Elements. */\n"
22170 " };\n"
22171 " \n"
22172 msgstr ""
22173
22174 # type: verbatim
22175 #. type: verbatim
22176 #: ../src/guestfs-structs.pod:206
22177 #, no-wrap
22178 msgid ""
22179 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
22180 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
22181 "\n"
22182 msgstr ""
22183
22184 # type: =head2
22185 #. type: =head2
22186 #: ../src/guestfs-structs.pod:209
22187 msgid "guestfs_inotify_event"
22188 msgstr ""
22189
22190 # type: verbatim
22191 #. type: verbatim
22192 #: ../src/guestfs-structs.pod:211
22193 #, no-wrap
22194 msgid ""
22195 " struct guestfs_inotify_event {\n"
22196 "   int64_t in_wd;\n"
22197 "   uint32_t in_mask;\n"
22198 "   uint32_t in_cookie;\n"
22199 "   char *in_name;\n"
22200 " };\n"
22201 " \n"
22202 msgstr ""
22203
22204 # type: verbatim
22205 #. type: verbatim
22206 #: ../src/guestfs-structs.pod:218
22207 #, no-wrap
22208 msgid ""
22209 " struct guestfs_inotify_event_list {\n"
22210 "   uint32_t len; /* Number of elements in list. */\n"
22211 "   struct guestfs_inotify_event *val; /* Elements. */\n"
22212 " };\n"
22213 " \n"
22214 msgstr ""
22215
22216 # type: verbatim
22217 #. type: verbatim
22218 #: ../src/guestfs-structs.pod:223
22219 #, no-wrap
22220 msgid ""
22221 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
22222 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
22223 "\n"
22224 msgstr ""
22225
22226 # type: =head2
22227 #. type: =head2
22228 #: ../src/guestfs-structs.pod:226
22229 msgid "guestfs_partition"
22230 msgstr ""
22231
22232 # type: verbatim
22233 #. type: verbatim
22234 #: ../src/guestfs-structs.pod:228
22235 #, no-wrap
22236 msgid ""
22237 " struct guestfs_partition {\n"
22238 "   int32_t part_num;\n"
22239 "   uint64_t part_start;\n"
22240 "   uint64_t part_end;\n"
22241 "   uint64_t part_size;\n"
22242 " };\n"
22243 " \n"
22244 msgstr ""
22245
22246 # type: verbatim
22247 #. type: verbatim
22248 #: ../src/guestfs-structs.pod:235
22249 #, no-wrap
22250 msgid ""
22251 " struct guestfs_partition_list {\n"
22252 "   uint32_t len; /* Number of elements in list. */\n"
22253 "   struct guestfs_partition *val; /* Elements. */\n"
22254 " };\n"
22255 " \n"
22256 msgstr ""
22257
22258 # type: verbatim
22259 #. type: verbatim
22260 #: ../src/guestfs-structs.pod:240
22261 #, no-wrap
22262 msgid ""
22263 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
22264 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
22265 "\n"
22266 msgstr ""
22267
22268 # type: =head2
22269 #. type: =head2
22270 #: ../src/guestfs-structs.pod:243
22271 msgid "guestfs_application"
22272 msgstr ""
22273
22274 # type: verbatim
22275 #. type: verbatim
22276 #: ../src/guestfs-structs.pod:245
22277 #, no-wrap
22278 msgid ""
22279 " struct guestfs_application {\n"
22280 "   char *app_name;\n"
22281 "   char *app_display_name;\n"
22282 "   int32_t app_epoch;\n"
22283 "   char *app_version;\n"
22284 "   char *app_release;\n"
22285 "   char *app_install_path;\n"
22286 "   char *app_trans_path;\n"
22287 "   char *app_publisher;\n"
22288 "   char *app_url;\n"
22289 "   char *app_source_package;\n"
22290 "   char *app_summary;\n"
22291 "   char *app_description;\n"
22292 " };\n"
22293 " \n"
22294 msgstr ""
22295
22296 # type: verbatim
22297 #. type: verbatim
22298 #: ../src/guestfs-structs.pod:260
22299 #, no-wrap
22300 msgid ""
22301 " struct guestfs_application_list {\n"
22302 "   uint32_t len; /* Number of elements in list. */\n"
22303 "   struct guestfs_application *val; /* Elements. */\n"
22304 " };\n"
22305 " \n"
22306 msgstr ""
22307
22308 # type: verbatim
22309 #. type: verbatim
22310 #: ../src/guestfs-structs.pod:265
22311 #, no-wrap
22312 msgid ""
22313 " void guestfs_free_application (struct guestfs_free_application *);\n"
22314 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
22315 "\n"
22316 msgstr ""
22317
22318 # type: textblock
22319 #. type: textblock
22320 #: ../fish/guestfish.pod:5
22321 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
22322 msgstr ""
22323
22324 # type: verbatim
22325 #. type: verbatim
22326 #: ../fish/guestfish.pod:9
22327 #, no-wrap
22328 msgid ""
22329 " guestfish [--options] [commands]\n"
22330 "\n"
22331 msgstr ""
22332
22333 # type: verbatim
22334 #. type: verbatim
22335 #: ../fish/guestfish.pod:11
22336 #, no-wrap
22337 msgid ""
22338 " guestfish\n"
22339 "\n"
22340 msgstr ""
22341
22342 # type: verbatim
22343 #. type: verbatim
22344 #: ../fish/guestfish.pod:13
22345 #, no-wrap
22346 msgid ""
22347 " guestfish [--ro|--rw] -a disk.img\n"
22348 "\n"
22349 msgstr ""
22350
22351 # type: verbatim
22352 #. type: verbatim
22353 #: ../fish/guestfish.pod:15
22354 #, no-wrap
22355 msgid ""
22356 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
22357 "\n"
22358 msgstr ""
22359
22360 # type: verbatim
22361 #. type: verbatim
22362 #: ../fish/guestfish.pod:17
22363 #, no-wrap
22364 msgid ""
22365 " guestfish -d libvirt-domain\n"
22366 "\n"
22367 msgstr ""
22368
22369 # type: verbatim
22370 #. type: verbatim
22371 #: ../fish/guestfish.pod:19
22372 #, no-wrap
22373 msgid ""
22374 " guestfish [--ro|--rw] -a disk.img -i\n"
22375 "\n"
22376 msgstr ""
22377
22378 # type: verbatim
22379 #. type: verbatim
22380 #: ../fish/guestfish.pod:21
22381 #, no-wrap
22382 msgid ""
22383 " guestfish -d libvirt-domain -i\n"
22384 "\n"
22385 msgstr ""
22386
22387 # type: =head1
22388 #. type: =head1
22389 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15
22390 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
22391 msgid "WARNING"
22392 msgstr ""
22393
22394 # type: textblock
22395 #. type: textblock
22396 #: ../fish/guestfish.pod:25
22397 msgid ""
22398 "Using guestfish in read/write mode on live virtual machines can be "
22399 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
22400 "option to use guestfish safely if the disk image or virtual machine might be "
22401 "live."
22402 msgstr ""
22403
22404 # type: textblock
22405 #. type: textblock
22406 #: ../fish/guestfish.pod:32
22407 msgid ""
22408 "Guestfish is a shell and command-line tool for examining and modifying "
22409 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
22410 "functionality of the guestfs API, see L<guestfs(3)>."
22411 msgstr ""
22412
22413 # type: textblock
22414 #. type: textblock
22415 #: ../fish/guestfish.pod:36
22416 msgid ""
22417 "Guestfish gives you structured access to the libguestfs API, from shell "
22418 "scripts or the command line or interactively.  If you want to rescue a "
22419 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
22420 "command."
22421 msgstr ""
22422
22423 # type: =head1
22424 #. type: =head1
22425 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:1007
22426 #: ../fuse/guestmount.pod:39 ../tools/virt-tar.pl:50
22427 msgid "EXAMPLES"
22428 msgstr ""
22429
22430 # type: =head2
22431 #. type: =head2
22432 #: ../fish/guestfish.pod:43
22433 msgid "As an interactive shell"
22434 msgstr ""
22435
22436 # type: verbatim
22437 #. type: verbatim
22438 #: ../fish/guestfish.pod:45
22439 #, no-wrap
22440 msgid ""
22441 " $ guestfish\n"
22442 " \n"
22443 msgstr ""
22444
22445 # type: verbatim
22446 #. type: verbatim
22447 #: ../fish/guestfish.pod:47
22448 #, no-wrap
22449 msgid ""
22450 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
22451 " editing virtual machine filesystems.\n"
22452 " \n"
22453 msgstr ""
22454
22455 # type: verbatim
22456 #. type: verbatim
22457 #: ../fish/guestfish.pod:50
22458 #, no-wrap
22459 msgid ""
22460 " Type: 'help' for a list of commands\n"
22461 "       'man' to read the manual\n"
22462 "       'quit' to quit the shell\n"
22463 " \n"
22464 msgstr ""
22465
22466 # type: verbatim
22467 #. type: verbatim
22468 #: ../fish/guestfish.pod:54
22469 #, no-wrap
22470 msgid ""
22471 " ><fs> add-ro disk.img\n"
22472 " ><fs> run\n"
22473 " ><fs> list-filesystems\n"
22474 " /dev/sda1: ext4\n"
22475 " /dev/vg_guest/lv_root: ext4\n"
22476 " /dev/vg_guest/lv_swap: swap\n"
22477 " ><fs> mount /dev/vg_guest/lv_root /\n"
22478 " ><fs> cat /etc/fstab\n"
22479 " # /etc/fstab\n"
22480 " # Created by anaconda\n"
22481 " [...]\n"
22482 " ><fs> exit\n"
22483 "\n"
22484 msgstr ""
22485
22486 # type: =head2
22487 #. type: =head2
22488 #: ../fish/guestfish.pod:67
22489 msgid "From shell scripts"
22490 msgstr ""
22491
22492 # type: textblock
22493 #. type: textblock
22494 #: ../fish/guestfish.pod:69
22495 msgid "Create a new C</etc/motd> file in a guest or disk image:"
22496 msgstr ""
22497
22498 # type: verbatim
22499 #. type: verbatim
22500 #: ../fish/guestfish.pod:71
22501 #, no-wrap
22502 msgid ""
22503 " guestfish <<_EOF_\n"
22504 " add disk.img\n"
22505 " run\n"
22506 " mount /dev/vg_guest/lv_root /\n"
22507 " write /etc/motd \"Welcome, new users\"\n"
22508 " _EOF_\n"
22509 "\n"
22510 msgstr ""
22511
22512 # type: textblock
22513 #. type: textblock
22514 #: ../fish/guestfish.pod:78
22515 msgid "List the LVM logical volumes in a disk image:"
22516 msgstr ""
22517
22518 # type: verbatim
22519 #. type: verbatim
22520 #: ../fish/guestfish.pod:80
22521 #, no-wrap
22522 msgid ""
22523 " guestfish -a disk.img --ro <<_EOF_\n"
22524 " run\n"
22525 " lvs\n"
22526 " _EOF_\n"
22527 "\n"
22528 msgstr ""
22529
22530 # type: textblock
22531 #. type: textblock
22532 #: ../fish/guestfish.pod:85
22533 msgid "List all the filesystems in a disk image:"
22534 msgstr ""
22535
22536 # type: verbatim
22537 #. type: verbatim
22538 #: ../fish/guestfish.pod:87
22539 #, no-wrap
22540 msgid ""
22541 " guestfish -a disk.img --ro <<_EOF_\n"
22542 " run\n"
22543 " list-filesystems\n"
22544 " _EOF_\n"
22545 "\n"
22546 msgstr ""
22547
22548 # type: =head2
22549 #. type: =head2
22550 #: ../fish/guestfish.pod:92
22551 msgid "On one command line"
22552 msgstr ""
22553
22554 # type: textblock
22555 #. type: textblock
22556 #: ../fish/guestfish.pod:94
22557 msgid "Update C</etc/resolv.conf> in a guest:"
22558 msgstr ""
22559
22560 # type: verbatim
22561 #. type: verbatim
22562 #: ../fish/guestfish.pod:96
22563 #, no-wrap
22564 msgid ""
22565 " guestfish \\\n"
22566 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
22567 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
22568 "\n"
22569 msgstr ""
22570
22571 # type: textblock
22572 #. type: textblock
22573 #: ../fish/guestfish.pod:100
22574 msgid "Edit C</boot/grub/grub.conf> interactively:"
22575 msgstr ""
22576
22577 # type: verbatim
22578 #. type: verbatim
22579 #: ../fish/guestfish.pod:102
22580 #, no-wrap
22581 msgid ""
22582 " guestfish --rw --add disk.img \\\n"
22583 "   --mount /dev/vg_guest/lv_root \\\n"
22584 "   --mount /dev/sda1:/boot \\\n"
22585 "   edit /boot/grub/grub.conf\n"
22586 "\n"
22587 msgstr ""
22588
22589 # type: =head2
22590 #. type: =head2
22591 #: ../fish/guestfish.pod:107
22592 msgid "Mount disks automatically"
22593 msgstr ""
22594
22595 # type: textblock
22596 #. type: textblock
22597 #: ../fish/guestfish.pod:109
22598 msgid ""
22599 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
22600 msgstr ""
22601
22602 # type: verbatim
22603 #. type: verbatim
22604 #: ../fish/guestfish.pod:112
22605 #, no-wrap
22606 msgid ""
22607 " guestfish --ro -a disk.img -i cat /etc/group\n"
22608 "\n"
22609 msgstr ""
22610
22611 # type: verbatim
22612 #. type: verbatim
22613 #: ../fish/guestfish.pod:114
22614 #, no-wrap
22615 msgid ""
22616 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
22617 "\n"
22618 msgstr ""
22619
22620 # type: textblock
22621 #. type: textblock
22622 #: ../fish/guestfish.pod:116
22623 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
22624 msgstr ""
22625
22626 # type: verbatim
22627 #. type: verbatim
22628 #: ../fish/guestfish.pod:118
22629 #, no-wrap
22630 msgid ""
22631 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
22632 "\n"
22633 msgstr ""
22634
22635 # type: =head2
22636 #. type: =head2
22637 #: ../fish/guestfish.pod:120
22638 msgid "As a script interpreter"
22639 msgstr ""
22640
22641 # type: textblock
22642 #. type: textblock
22643 #: ../fish/guestfish.pod:122
22644 msgid "Create a 100MB disk containing an ext2-formatted partition:"
22645 msgstr ""
22646
22647 # type: verbatim
22648 #. type: verbatim
22649 #: ../fish/guestfish.pod:124
22650 #, no-wrap
22651 msgid ""
22652 " #!/usr/bin/guestfish -f\n"
22653 " sparse test1.img 100M\n"
22654 " run\n"
22655 " part-disk /dev/sda mbr\n"
22656 " mkfs ext2 /dev/sda1\n"
22657 "\n"
22658 msgstr ""
22659
22660 # type: =head2
22661 #. type: =head2
22662 #: ../fish/guestfish.pod:130
22663 msgid "Start with a prepared disk"
22664 msgstr ""
22665
22666 # type: textblock
22667 #. type: textblock
22668 #: ../fish/guestfish.pod:132
22669 msgid ""
22670 "An alternate way to create a 100MB disk called C<test1.img> containing a "
22671 "single ext2-formatted partition:"
22672 msgstr ""
22673
22674 # type: verbatim
22675 #. type: verbatim
22676 #: ../fish/guestfish.pod:135
22677 #, no-wrap
22678 msgid ""
22679 " guestfish -N fs\n"
22680 "\n"
22681 msgstr ""
22682
22683 # type: textblock
22684 #. type: textblock
22685 #: ../fish/guestfish.pod:137
22686 msgid "To list what is available do:"
22687 msgstr ""
22688
22689 # type: verbatim
22690 #. type: verbatim
22691 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
22692 #, no-wrap
22693 msgid ""
22694 " guestfish -N help | less\n"
22695 "\n"
22696 msgstr ""
22697
22698 # type: =head2
22699 #. type: =head2
22700 #: ../fish/guestfish.pod:141
22701 msgid "Remote control"
22702 msgstr ""
22703
22704 # type: verbatim
22705 #. type: verbatim
22706 #: ../fish/guestfish.pod:143
22707 #, no-wrap
22708 msgid ""
22709 " eval \"`guestfish --listen`\"\n"
22710 " guestfish --remote add-ro disk.img\n"
22711 " guestfish --remote run\n"
22712 " guestfish --remote lvs\n"
22713 "\n"
22714 msgstr ""
22715
22716 # type: =head1
22717 #. type: =head1
22718 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
22719 #: ../fuse/guestmount.pod:83 ../tools/virt-win-reg.pl:96
22720 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
22721 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
22722 msgid "OPTIONS"
22723 msgstr ""
22724
22725 # type: =item
22726 #. type: =item
22727 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:143
22728 #: ../tools/virt-win-reg.pl:104 ../tools/virt-list-filesystems.pl:61
22729 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
22730 #: ../tools/virt-list-partitions.pl:62
22731 msgid "B<--help>"
22732 msgstr ""
22733
22734 # type: textblock
22735 #. type: textblock
22736 #: ../fish/guestfish.pod:154
22737 msgid "Displays general help on options."
22738 msgstr ""
22739
22740 # type: =item
22741 #. type: =item
22742 #: ../fish/guestfish.pod:156
22743 msgid "B<-h>"
22744 msgstr ""
22745
22746 # type: =item
22747 #. type: =item
22748 #: ../fish/guestfish.pod:158
22749 msgid "B<--cmd-help>"
22750 msgstr ""
22751
22752 # type: textblock
22753 #. type: textblock
22754 #: ../fish/guestfish.pod:160
22755 msgid "Lists all available guestfish commands."
22756 msgstr ""
22757
22758 # type: =item
22759 #. type: =item
22760 #: ../fish/guestfish.pod:162
22761 msgid "B<-h cmd>"
22762 msgstr ""
22763
22764 # type: =item
22765 #. type: =item
22766 #: ../fish/guestfish.pod:164
22767 msgid "B<--cmd-help cmd>"
22768 msgstr ""
22769
22770 # type: textblock
22771 #. type: textblock
22772 #: ../fish/guestfish.pod:166
22773 msgid "Displays detailed help on a single command C<cmd>."
22774 msgstr ""
22775
22776 # type: =item
22777 #. type: =item
22778 #: ../fish/guestfish.pod:168
22779 msgid "B<-a image>"
22780 msgstr ""
22781
22782 # type: =item
22783 #. type: =item
22784 #: ../fish/guestfish.pod:170
22785 msgid "B<--add image>"
22786 msgstr ""
22787
22788 # type: textblock
22789 #. type: textblock
22790 #: ../fish/guestfish.pod:172
22791 msgid "Add a block device or virtual machine image to the shell."
22792 msgstr ""
22793
22794 # type: textblock
22795 #. type: textblock
22796 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:91
22797 msgid ""
22798 "The format of the disk image is auto-detected.  To override this and force a "
22799 "particular format use the I<--format=..> option."
22800 msgstr ""
22801
22802 #. type: textblock
22803 #: ../fish/guestfish.pod:177
22804 msgid ""
22805 "Using this flag is mostly equivalent to using the C<add> command, with "
22806 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
22807 "the I<--format=...> flag was given."
22808 msgstr ""
22809
22810 # type: =item
22811 #. type: =item
22812 #: ../fish/guestfish.pod:181
22813 msgid "B<-c URI>"
22814 msgstr ""
22815
22816 # type: =item
22817 #. type: =item
22818 #: ../fish/guestfish.pod:183
22819 msgid "B<--connect URI>"
22820 msgstr ""
22821
22822 # type: textblock
22823 #. type: textblock
22824 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:96
22825 msgid ""
22826 "When used in conjunction with the I<-d> option, this specifies the libvirt "
22827 "URI to use.  The default is to use the default libvirt connection."
22828 msgstr ""
22829
22830 # type: =item
22831 #. type: =item
22832 #: ../fish/guestfish.pod:189
22833 msgid "B<--csh>"
22834 msgstr ""
22835
22836 # type: textblock
22837 #. type: textblock
22838 #: ../fish/guestfish.pod:191
22839 msgid ""
22840 "If using the I<--listen> option and a csh-like shell, use this option.  See "
22841 "section L</REMOTE CONTROL AND CSH> below."
22842 msgstr ""
22843
22844 # type: =item
22845 #. type: =item
22846 #: ../fish/guestfish.pod:194
22847 msgid "B<-d libvirt-domain>"
22848 msgstr ""
22849
22850 # type: =item
22851 #. type: =item
22852 #: ../fish/guestfish.pod:196
22853 msgid "B<--domain libvirt-domain>"
22854 msgstr ""
22855
22856 # type: textblock
22857 #. type: textblock
22858 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:102
22859 msgid ""
22860 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
22861 "used, then any libvirt domain can be used.  However in write mode, only "
22862 "libvirt domains which are shut down can be named here."
22863 msgstr ""
22864
22865 #. type: textblock
22866 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:106
22867 msgid "Domain UUIDs can be used instead of names."
22868 msgstr ""
22869
22870 # type: textblock
22871 #. type: textblock
22872 #: ../fish/guestfish.pod:204
22873 msgid ""
22874 "Using this flag is mostly equivalent to using the C<add-domain> command, "
22875 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
22876 "if the I<--format:...> flag was given."
22877 msgstr ""
22878
22879 # type: =item
22880 #. type: =item
22881 #: ../fish/guestfish.pod:208
22882 msgid "B<-D>"
22883 msgstr ""
22884
22885 # type: =item
22886 #. type: =item
22887 #: ../fish/guestfish.pod:210
22888 msgid "B<--no-dest-paths>"
22889 msgstr ""
22890
22891 # type: textblock
22892 #. type: textblock
22893 #: ../fish/guestfish.pod:212
22894 msgid ""
22895 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
22896 "to hit the tab key to complete paths on the guest filesystem, but this "
22897 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
22898 "allow this feature to be disabled."
22899 msgstr ""
22900
22901 # type: =item
22902 #. type: =item
22903 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:120
22904 msgid "B<--echo-keys>"
22905 msgstr ""
22906
22907 # type: textblock
22908 #. type: textblock
22909 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:122
22910 msgid ""
22911 "When prompting for keys and passphrases, guestfish normally turns echoing "
22912 "off so you cannot see what you are typing.  If you are not worried about "
22913 "Tempest attacks and there is no one else in the room you can specify this "
22914 "flag to see what you are typing."
22915 msgstr ""
22916
22917 # type: =item
22918 #. type: =item
22919 #: ../fish/guestfish.pod:224
22920 msgid "B<-f file>"
22921 msgstr ""
22922
22923 # type: =item
22924 #. type: =item
22925 #: ../fish/guestfish.pod:226
22926 msgid "B<--file file>"
22927 msgstr ""
22928
22929 # type: textblock
22930 #. type: textblock
22931 #: ../fish/guestfish.pod:228
22932 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
22933 msgstr ""
22934
22935 # type: verbatim
22936 #. type: verbatim
22937 #: ../fish/guestfish.pod:231
22938 #, no-wrap
22939 msgid ""
22940 " #!/usr/bin/guestfish -f\n"
22941 "\n"
22942 msgstr ""
22943
22944 # type: =item
22945 #. type: =item
22946 #: ../fish/guestfish.pod:233
22947 msgid "B<--format=raw|qcow2|..>"
22948 msgstr ""
22949
22950 # type: =item
22951 #. type: =item
22952 #: ../fish/guestfish.pod:235
22953 msgid "B<--format>"
22954 msgstr ""
22955
22956 # type: textblock
22957 #. type: textblock
22958 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:129
22959 msgid ""
22960 "The default for the I<-a> option is to auto-detect the format of the disk "
22961 "image.  Using this forces the disk format for I<-a> options which follow on "
22962 "the command line.  Using I<--format> with no argument switches back to auto-"
22963 "detection for subsequent I<-a> options."
22964 msgstr ""
22965
22966 # type: verbatim
22967 #. type: verbatim
22968 #: ../fish/guestfish.pod:244
22969 #, no-wrap
22970 msgid ""
22971 " guestfish --format=raw -a disk.img\n"
22972 "\n"
22973 msgstr ""
22974
22975 # type: textblock
22976 #. type: textblock
22977 #: ../fish/guestfish.pod:246
22978 msgid "forces raw format (no auto-detection) for C<disk.img>."
22979 msgstr ""
22980
22981 # type: verbatim
22982 #. type: verbatim
22983 #: ../fish/guestfish.pod:248
22984 #, no-wrap
22985 msgid ""
22986 " guestfish --format=raw -a disk.img --format -a another.img\n"
22987 "\n"
22988 msgstr ""
22989
22990 # type: textblock
22991 #. type: textblock
22992 #: ../fish/guestfish.pod:250
22993 msgid ""
22994 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
22995 "detection for C<another.img>."
22996 msgstr ""
22997
22998 # type: textblock
22999 #. type: textblock
23000 #: ../fish/guestfish.pod:253
23001 msgid ""
23002 "If you have untrusted raw-format guest disk images, you should use this "
23003 "option to specify the disk format.  This avoids a possible security problem "
23004 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
23005 msgstr ""
23006
23007 # type: =item
23008 #. type: =item
23009 #: ../fish/guestfish.pod:258
23010 msgid "B<-i>"
23011 msgstr ""
23012
23013 # type: =item
23014 #. type: =item
23015 #: ../fish/guestfish.pod:260
23016 msgid "B<--inspector>"
23017 msgstr ""
23018
23019 # type: textblock
23020 #. type: textblock
23021 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:149
23022 msgid ""
23023 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
23024 "system and mount filesystems as they would be mounted on the real virtual "
23025 "machine."
23026 msgstr ""
23027
23028 # type: textblock
23029 #. type: textblock
23030 #: ../fish/guestfish.pod:266
23031 msgid "Typical usage is either:"
23032 msgstr ""
23033
23034 # type: verbatim
23035 #. type: verbatim
23036 #: ../fish/guestfish.pod:268
23037 #, no-wrap
23038 msgid ""
23039 " guestfish -d myguest -i\n"
23040 "\n"
23041 msgstr ""
23042
23043 # type: textblock
23044 #. type: textblock
23045 #: ../fish/guestfish.pod:270
23046 msgid "(for an inactive libvirt domain called I<myguest>), or:"
23047 msgstr ""
23048
23049 # type: verbatim
23050 #. type: verbatim
23051 #: ../fish/guestfish.pod:272
23052 #, no-wrap
23053 msgid ""
23054 " guestfish --ro -d myguest -i\n"
23055 "\n"
23056 msgstr ""
23057
23058 # type: textblock
23059 #. type: textblock
23060 #: ../fish/guestfish.pod:274
23061 msgid "(for active domains, readonly), or specify the block device directly:"
23062 msgstr ""
23063
23064 # type: verbatim
23065 #. type: verbatim
23066 #: ../fish/guestfish.pod:276
23067 #, no-wrap
23068 msgid ""
23069 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
23070 "\n"
23071 msgstr ""
23072
23073 # type: textblock
23074 #. type: textblock
23075 #: ../fish/guestfish.pod:278
23076 msgid ""
23077 "Note that the command line syntax changed slightly over older versions of "
23078 "guestfish.  You can still use the old syntax:"
23079 msgstr ""
23080
23081 # type: verbatim
23082 #. type: verbatim
23083 #: ../fish/guestfish.pod:281
23084 #, no-wrap
23085 msgid ""
23086 " guestfish [--ro] -i disk.img\n"
23087 "\n"
23088 msgstr ""
23089
23090 # type: verbatim
23091 #. type: verbatim
23092 #: ../fish/guestfish.pod:283
23093 #, no-wrap
23094 msgid ""
23095 " guestfish [--ro] -i libvirt-domain\n"
23096 "\n"
23097 msgstr ""
23098
23099 # type: textblock
23100 #. type: textblock
23101 #: ../fish/guestfish.pod:285
23102 msgid ""
23103 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
23104 "then using other commands to mount the filesystems that were found."
23105 msgstr ""
23106
23107 # type: =item
23108 #. type: =item
23109 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:153
23110 msgid "B<--keys-from-stdin>"
23111 msgstr ""
23112
23113 # type: textblock
23114 #. type: textblock
23115 #: ../fish/guestfish.pod:291 ../fuse/guestmount.pod:155
23116 msgid ""
23117 "Read key or passphrase parameters from stdin.  The default is to try to read "
23118 "passphrases from the user by opening C</dev/tty>."
23119 msgstr ""
23120
23121 # type: =item
23122 #. type: =item
23123 #: ../fish/guestfish.pod:294
23124 msgid "B<--listen>"
23125 msgstr ""
23126
23127 # type: textblock
23128 #. type: textblock
23129 #: ../fish/guestfish.pod:296
23130 msgid ""
23131 "Fork into the background and listen for remote commands.  See section L</"
23132 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
23133 msgstr ""
23134
23135 #. type: =item
23136 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:158
23137 msgid "B<--live>"
23138 msgstr ""
23139
23140 #. type: textblock
23141 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:160
23142 msgid ""
23143 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
23144 "ATTACHING TO RUNNING DAEMONS>)."
23145 msgstr ""
23146
23147 #. type: =item
23148 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:163
23149 msgid "B<-m dev[:mountpoint[:options]]>"
23150 msgstr ""
23151
23152 #. type: =item
23153 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:165
23154 msgid "B<--mount dev[:mountpoint[:options]]>"
23155 msgstr ""
23156
23157 # type: textblock
23158 #. type: textblock
23159 #: ../fish/guestfish.pod:308
23160 msgid "Mount the named partition or logical volume on the given mountpoint."
23161 msgstr ""
23162
23163 # type: textblock
23164 #. type: textblock
23165 #: ../fish/guestfish.pod:310
23166 msgid "If the mountpoint is omitted, it defaults to C</>."
23167 msgstr ""
23168
23169 # type: textblock
23170 #. type: textblock
23171 #: ../fish/guestfish.pod:312
23172 msgid "You have to mount something on C</> before most commands will work."
23173 msgstr ""
23174
23175 # type: textblock
23176 #. type: textblock
23177 #: ../fish/guestfish.pod:314
23178 msgid ""
23179 "If any I<-m> or I<--mount> options are given, the guest is automatically "
23180 "launched."
23181 msgstr ""
23182
23183 # type: textblock
23184 #. type: textblock
23185 #: ../fish/guestfish.pod:317
23186 msgid ""
23187 "If you don't know what filesystems a disk image contains, you can either run "
23188 "guestfish without this option, then list the partitions, filesystems and LVs "
23189 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
23190 "commands), or you can use the L<virt-filesystems(1)> program."
23191 msgstr ""
23192
23193 #. type: textblock
23194 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:173
23195 msgid ""
23196 "The third (and rarely used) part of the mount parameter is the list of mount "
23197 "options used to mount the underlying filesystem.  If this is not given, then "
23198 "the mount options are either the empty string or C<ro> (the latter if the "
23199 "I<--ro> flag is used).  By specifying the mount options, you override this "
23200 "default choice.  Probably the only time you would use this is to enable ACLs "
23201 "and/or extended attributes if the filesystem can support them:"
23202 msgstr ""
23203
23204 #. type: verbatim
23205 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:181
23206 #, no-wrap
23207 msgid ""
23208 " -m /dev/sda1:/:acl,user_xattr\n"
23209 "\n"
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../fish/guestfish.pod:333
23214 msgid "Using this flag is equivalent to using the C<mount-options> command."
23215 msgstr ""
23216
23217 # type: =item
23218 #. type: =item
23219 #: ../fish/guestfish.pod:335
23220 msgid "B<-n>"
23221 msgstr ""
23222
23223 # type: =item
23224 #. type: =item
23225 #: ../fish/guestfish.pod:337
23226 msgid "B<--no-sync>"
23227 msgstr ""
23228
23229 # type: textblock
23230 #. type: textblock
23231 #: ../fish/guestfish.pod:339
23232 msgid ""
23233 "Disable autosync.  This is enabled by default.  See the discussion of "
23234 "autosync in the L<guestfs(3)> manpage."
23235 msgstr ""
23236
23237 # type: =item
23238 #. type: =item
23239 #: ../fish/guestfish.pod:342
23240 msgid "B<-N type>"
23241 msgstr ""
23242
23243 # type: =item
23244 #. type: =item
23245 #: ../fish/guestfish.pod:344
23246 msgid "B<--new type>"
23247 msgstr ""
23248
23249 # type: =item
23250 #. type: =item
23251 #: ../fish/guestfish.pod:346
23252 msgid "B<-N help>"
23253 msgstr ""
23254
23255 # type: textblock
23256 #. type: textblock
23257 #: ../fish/guestfish.pod:348
23258 msgid ""
23259 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
23260 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
23261 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
23262 "IMAGES> below."
23263 msgstr ""
23264
23265 # type: =item
23266 #. type: =item
23267 #: ../fish/guestfish.pod:353
23268 msgid "B<--progress-bars>"
23269 msgstr ""
23270
23271 # type: textblock
23272 #. type: textblock
23273 #: ../fish/guestfish.pod:355
23274 msgid "Enable progress bars, even when guestfish is used non-interactively."
23275 msgstr ""
23276
23277 # type: textblock
23278 #. type: textblock
23279 #: ../fish/guestfish.pod:357
23280 msgid ""
23281 "Progress bars are enabled by default when guestfish is used as an "
23282 "interactive shell."
23283 msgstr ""
23284
23285 # type: =item
23286 #. type: =item
23287 #: ../fish/guestfish.pod:360
23288 msgid "B<--no-progress-bars>"
23289 msgstr ""
23290
23291 # type: textblock
23292 #. type: textblock
23293 #: ../fish/guestfish.pod:362
23294 msgid "Disable progress bars."
23295 msgstr ""
23296
23297 # type: =item
23298 #. type: =item
23299 #: ../fish/guestfish.pod:364
23300 msgid "B<--remote[=pid]>"
23301 msgstr ""
23302
23303 # type: textblock
23304 #. type: textblock
23305 #: ../fish/guestfish.pod:366
23306 msgid ""
23307 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
23308 "CONTROL GUESTFISH OVER A SOCKET> below."
23309 msgstr ""
23310
23311 # type: =item
23312 #. type: =item
23313 #: ../fish/guestfish.pod:369
23314 msgid "B<-r>"
23315 msgstr ""
23316
23317 # type: =item
23318 #. type: =item
23319 #: ../fish/guestfish.pod:371
23320 msgid "B<--ro>"
23321 msgstr ""
23322
23323 # type: textblock
23324 #. type: textblock
23325 #: ../fish/guestfish.pod:373
23326 msgid ""
23327 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
23328 "mounts are done read-only."
23329 msgstr ""
23330
23331 # type: textblock
23332 #. type: textblock
23333 #: ../fish/guestfish.pod:376
23334 msgid ""
23335 "The option must always be used if the disk image or virtual machine might be "
23336 "running, and is generally recommended in cases where you don't need write "
23337 "access to the disk."
23338 msgstr ""
23339
23340 # type: textblock
23341 #. type: textblock
23342 #: ../fish/guestfish.pod:380
23343 msgid ""
23344 "Note that prepared disk images created with I<-N> are not affected by this "
23345 "option.  Also commands like C<add> are not affected - you have to specify "
23346 "the C<readonly:true> option explicitly if you need it."
23347 msgstr ""
23348
23349 # type: textblock
23350 #. type: textblock
23351 #: ../fish/guestfish.pod:384
23352 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
23353 msgstr ""
23354
23355 # type: =item
23356 #. type: =item
23357 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:237
23358 msgid "B<--selinux>"
23359 msgstr ""
23360
23361 # type: textblock
23362 #. type: textblock
23363 #: ../fish/guestfish.pod:388
23364 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
23365 msgstr ""
23366
23367 # type: =item
23368 #. type: =item
23369 #: ../fish/guestfish.pod:390
23370 msgid "B<-v>"
23371 msgstr ""
23372
23373 # type: =item
23374 #. type: =item
23375 #: ../fish/guestfish.pod:392
23376 msgid "B<--verbose>"
23377 msgstr ""
23378
23379 # type: textblock
23380 #. type: textblock
23381 #: ../fish/guestfish.pod:394
23382 msgid ""
23383 "Enable very verbose messages.  This is particularly useful if you find a bug."
23384 msgstr ""
23385
23386 # type: =item
23387 #. type: =item
23388 #: ../fish/guestfish.pod:397
23389 msgid "B<-V>"
23390 msgstr ""
23391
23392 # type: =item
23393 #. type: =item
23394 #: ../fish/guestfish.pod:399 ../tools/virt-win-reg.pl:112
23395 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
23396 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
23397 msgid "B<--version>"
23398 msgstr ""
23399
23400 # type: textblock
23401 #. type: textblock
23402 #: ../fish/guestfish.pod:401
23403 msgid "Display the guestfish / libguestfs version number and exit."
23404 msgstr ""
23405
23406 # type: =item
23407 #. type: =item
23408 #: ../fish/guestfish.pod:403
23409 msgid "B<-w>"
23410 msgstr ""
23411
23412 # type: =item
23413 #. type: =item
23414 #: ../fish/guestfish.pod:405
23415 msgid "B<--rw>"
23416 msgstr ""
23417
23418 #. type: textblock
23419 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:251
23420 msgid ""
23421 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
23422 "mounts are done read-write."
23423 msgstr ""
23424
23425 #. type: textblock
23426 #: ../fish/guestfish.pod:410
23427 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
23428 msgstr ""
23429
23430 # type: =item
23431 #. type: =item
23432 #: ../fish/guestfish.pod:412
23433 msgid "B<-x>"
23434 msgstr ""
23435
23436 # type: textblock
23437 #. type: textblock
23438 #: ../fish/guestfish.pod:414
23439 msgid "Echo each command before executing it."
23440 msgstr ""
23441
23442 # type: =head1
23443 #. type: =head1
23444 #: ../fish/guestfish.pod:418
23445 msgid "COMMANDS ON COMMAND LINE"
23446 msgstr ""
23447
23448 # type: textblock
23449 #. type: textblock
23450 #: ../fish/guestfish.pod:420
23451 msgid ""
23452 "Any additional (non-option) arguments are treated as commands to execute."
23453 msgstr ""
23454
23455 # type: textblock
23456 #. type: textblock
23457 #: ../fish/guestfish.pod:423
23458 msgid ""
23459 "Commands to execute should be separated by a colon (C<:>), where the colon "
23460 "is a separate parameter.  Thus:"
23461 msgstr ""
23462
23463 # type: verbatim
23464 #. type: verbatim
23465 #: ../fish/guestfish.pod:426
23466 #, no-wrap
23467 msgid ""
23468 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
23469 "\n"
23470 msgstr ""
23471
23472 # type: textblock
23473 #. type: textblock
23474 #: ../fish/guestfish.pod:428
23475 msgid ""
23476 "If there are no additional arguments, then we enter a shell, either an "
23477 "interactive shell with a prompt (if the input is a terminal) or a non-"
23478 "interactive shell."
23479 msgstr ""
23480
23481 # type: textblock
23482 #. type: textblock
23483 #: ../fish/guestfish.pod:432
23484 msgid ""
23485 "In either command line mode or non-interactive shell, the first command that "
23486 "gives an error causes the whole shell to exit.  In interactive mode (with a "
23487 "prompt) if a command fails, you can continue to enter commands."
23488 msgstr ""
23489
23490 # type: =head1
23491 #. type: =head1
23492 #: ../fish/guestfish.pod:437
23493 msgid "USING launch (OR run)"
23494 msgstr ""
23495
23496 # type: textblock
23497 #. type: textblock
23498 #: ../fish/guestfish.pod:439
23499 msgid ""
23500 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
23501 "then launch it, then mount any disks you need, and finally issue actions/"
23502 "commands.  So the general order of the day is:"
23503 msgstr ""
23504
23505 # type: textblock
23506 #. type: textblock
23507 #: ../fish/guestfish.pod:447
23508 msgid "add or -a/--add"
23509 msgstr ""
23510
23511 # type: textblock
23512 #. type: textblock
23513 #: ../fish/guestfish.pod:451
23514 msgid "launch (aka run)"
23515 msgstr ""
23516
23517 # type: textblock
23518 #. type: textblock
23519 #: ../fish/guestfish.pod:455
23520 msgid "mount or -m/--mount"
23521 msgstr ""
23522
23523 # type: textblock
23524 #. type: textblock
23525 #: ../fish/guestfish.pod:459
23526 msgid "any other commands"
23527 msgstr ""
23528
23529 # type: textblock
23530 #. type: textblock
23531 #: ../fish/guestfish.pod:463
23532 msgid ""
23533 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
23534 "guest before mounting or performing any other commands."
23535 msgstr ""
23536
23537 # type: textblock
23538 #. type: textblock
23539 #: ../fish/guestfish.pod:466
23540 msgid ""
23541 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
23542 "I<--new> options were given then C<run> is done automatically, simply "
23543 "because guestfish can't perform the action you asked for without doing this."
23544 msgstr ""
23545
23546 # type: =head1
23547 #. type: =head1
23548 #: ../fish/guestfish.pod:471
23549 msgid "OPENING DISKS FOR READ AND WRITE"
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../fish/guestfish.pod:473
23554 msgid ""
23555 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
23556 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
23557 "I<-i> and I<-m> open disk images read-only or for writing."
23558 msgstr ""
23559
23560 #. type: textblock
23561 #: ../fish/guestfish.pod:478
23562 msgid ""
23563 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
23564 "opening disk images supplied on the command line for write.  To open a disk "
23565 "image read-only you have to do I<-a image --ro>."
23566 msgstr ""
23567
23568 # type: textblock
23569 #. type: textblock
23570 #: ../fish/guestfish.pod:482
23571 msgid ""
23572 "This matters: If you accidentally open a live VM disk image writable then "
23573 "you will cause irreversible disk corruption."
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../fish/guestfish.pod:485
23578 msgid ""
23579 "By libguestfs 1.12 we intend to change the default the other way.  Disk "
23580 "images will be opened read-only.  You will have to either specify "
23581 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
23582 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
23583 "access for disk images specified by those other command line options."
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../fish/guestfish.pod:492
23588 msgid ""
23589 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
23590 "which does nothing (it is already the default).  However it is highly "
23591 "recommended that you use this option to indicate that you need write access, "
23592 "and prepare your scripts for the day when this option will be required for "
23593 "write access."
23594 msgstr ""
23595
23596 # type: textblock
23597 #. type: textblock
23598 #: ../fish/guestfish.pod:498
23599 msgid ""
23600 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
23601 "other libguestfs program apart from guestfish and guestmount."
23602 msgstr ""
23603
23604 # type: =head1
23605 #. type: =head1
23606 #: ../fish/guestfish.pod:501
23607 msgid "QUOTING"
23608 msgstr ""
23609
23610 # type: textblock
23611 #. type: textblock
23612 #: ../fish/guestfish.pod:503
23613 msgid ""
23614 "You can quote ordinary parameters using either single or double quotes.  For "
23615 "example:"
23616 msgstr ""
23617
23618 # type: verbatim
23619 #. type: verbatim
23620 #: ../fish/guestfish.pod:506
23621 #, no-wrap
23622 msgid ""
23623 " add \"file with a space.img\"\n"
23624 "\n"
23625 msgstr ""
23626
23627 # type: verbatim
23628 #. type: verbatim
23629 #: ../fish/guestfish.pod:508
23630 #, no-wrap
23631 msgid ""
23632 " rm '/file name'\n"
23633 "\n"
23634 msgstr ""
23635
23636 # type: verbatim
23637 #. type: verbatim
23638 #: ../fish/guestfish.pod:510
23639 #, no-wrap
23640 msgid ""
23641 " rm '/\"'\n"
23642 "\n"
23643 msgstr ""
23644
23645 # type: textblock
23646 #. type: textblock
23647 #: ../fish/guestfish.pod:512
23648 msgid ""
23649 "A few commands require a list of strings to be passed.  For these, use a "
23650 "whitespace-separated list, enclosed in quotes.  Strings containing "
23651 "whitespace to be passed through must be enclosed in single quotes.  A "
23652 "literal single quote must be escaped with a backslash."
23653 msgstr ""
23654
23655 # type: verbatim
23656 #. type: verbatim
23657 #: ../fish/guestfish.pod:517
23658 #, no-wrap
23659 msgid ""
23660 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
23661 " command \"/bin/echo 'foo      bar'\"\n"
23662 " command \"/bin/echo \\'foo\\'\"\n"
23663 "\n"
23664 msgstr ""
23665
23666 #. type: =head2
23667 #: ../fish/guestfish.pod:521
23668 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
23669 msgstr ""
23670
23671 #. type: textblock
23672 #: ../fish/guestfish.pod:523
23673 msgid ""
23674 "In double-quoted arguments (only) use backslash to insert special characters:"
23675 msgstr ""
23676
23677 #. type: =item
23678 #: ../fish/guestfish.pod:528
23679 msgid "C<\\a>"
23680 msgstr ""
23681
23682 #. type: textblock
23683 #: ../fish/guestfish.pod:530
23684 msgid "Alert (bell) character."
23685 msgstr ""
23686
23687 #. type: =item
23688 #: ../fish/guestfish.pod:532
23689 msgid "C<\\b>"
23690 msgstr ""
23691
23692 #. type: textblock
23693 #: ../fish/guestfish.pod:534
23694 msgid "Backspace character."
23695 msgstr ""
23696
23697 #. type: =item
23698 #: ../fish/guestfish.pod:536
23699 msgid "C<\\f>"
23700 msgstr ""
23701
23702 #. type: textblock
23703 #: ../fish/guestfish.pod:538
23704 msgid "Form feed character."
23705 msgstr ""
23706
23707 #. type: =item
23708 #: ../fish/guestfish.pod:540
23709 msgid "C<\\n>"
23710 msgstr ""
23711
23712 #. type: textblock
23713 #: ../fish/guestfish.pod:542
23714 msgid "Newline character."
23715 msgstr ""
23716
23717 #. type: =item
23718 #: ../fish/guestfish.pod:544
23719 msgid "C<\\r>"
23720 msgstr ""
23721
23722 #. type: textblock
23723 #: ../fish/guestfish.pod:546
23724 msgid "Carriage return character."
23725 msgstr ""
23726
23727 #. type: =item
23728 #: ../fish/guestfish.pod:548
23729 msgid "C<\\t>"
23730 msgstr ""
23731
23732 #. type: textblock
23733 #: ../fish/guestfish.pod:550
23734 msgid "Horizontal tab character."
23735 msgstr ""
23736
23737 #. type: =item
23738 #: ../fish/guestfish.pod:552
23739 msgid "C<\\v>"
23740 msgstr ""
23741
23742 #. type: textblock
23743 #: ../fish/guestfish.pod:554
23744 msgid "Vertical tab character."
23745 msgstr ""
23746
23747 #. type: =item
23748 #: ../fish/guestfish.pod:556
23749 msgid "C<\\\">"
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../fish/guestfish.pod:558
23754 msgid "A literal double quote character."
23755 msgstr ""
23756
23757 #. type: =item
23758 #: ../fish/guestfish.pod:560
23759 msgid "C<\\ooo>"
23760 msgstr ""
23761
23762 #. type: textblock
23763 #: ../fish/guestfish.pod:562
23764 msgid ""
23765 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
23766 "(unlike C)."
23767 msgstr ""
23768
23769 #. type: =item
23770 #: ../fish/guestfish.pod:565
23771 msgid "C<\\xhh>"
23772 msgstr ""
23773
23774 #. type: textblock
23775 #: ../fish/guestfish.pod:567
23776 msgid ""
23777 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
23778 msgstr ""
23779
23780 #. type: textblock
23781 #: ../fish/guestfish.pod:570
23782 msgid ""
23783 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
23784 "strings."
23785 msgstr ""
23786
23787 #. type: =item
23788 #: ../fish/guestfish.pod:573
23789 msgid "C<\\\\>"
23790 msgstr ""
23791
23792 #. type: textblock
23793 #: ../fish/guestfish.pod:575
23794 msgid "A literal backslash character."
23795 msgstr ""
23796
23797 # type: =head1
23798 #. type: =head1
23799 #: ../fish/guestfish.pod:579
23800 msgid "OPTIONAL ARGUMENTS"
23801 msgstr ""
23802
23803 # type: textblock
23804 #. type: textblock
23805 #: ../fish/guestfish.pod:581
23806 msgid ""
23807 "Some commands take optional arguments.  These arguments appear in this "
23808 "documentation as C<[argname:..]>.  You can use them as in these examples:"
23809 msgstr ""
23810
23811 # type: verbatim
23812 #. type: verbatim
23813 #: ../fish/guestfish.pod:585
23814 #, no-wrap
23815 msgid ""
23816 " add-drive-opts filename\n"
23817 "\n"
23818 msgstr ""
23819
23820 # type: verbatim
23821 #. type: verbatim
23822 #: ../fish/guestfish.pod:587
23823 #, no-wrap
23824 msgid ""
23825 " add-drive-opts filename readonly:true\n"
23826 "\n"
23827 msgstr ""
23828
23829 # type: verbatim
23830 #. type: verbatim
23831 #: ../fish/guestfish.pod:589
23832 #, no-wrap
23833 msgid ""
23834 " add-drive-opts filename format:qcow2 readonly:false\n"
23835 "\n"
23836 msgstr ""
23837
23838 # type: textblock
23839 #. type: textblock
23840 #: ../fish/guestfish.pod:591
23841 msgid ""
23842 "Each optional argument can appear at most once.  All optional arguments must "
23843 "appear after the required ones."
23844 msgstr ""
23845
23846 # type: =head1
23847 #. type: =head1
23848 #: ../fish/guestfish.pod:594
23849 msgid "NUMBERS"
23850 msgstr ""
23851
23852 # type: textblock
23853 #. type: textblock
23854 #: ../fish/guestfish.pod:596
23855 msgid ""
23856 "This section applies to all commands which can take integers as parameters."
23857 msgstr ""
23858
23859 # type: =head2
23860 #. type: =head2
23861 #: ../fish/guestfish.pod:599
23862 msgid "SIZE SUFFIX"
23863 msgstr ""
23864
23865 # type: textblock
23866 #. type: textblock
23867 #: ../fish/guestfish.pod:601
23868 msgid ""
23869 "When the command takes a parameter measured in bytes, you can use one of the "
23870 "following suffixes to specify kilobytes, megabytes and larger sizes:"
23871 msgstr ""
23872
23873 # type: =item
23874 #. type: =item
23875 #: ../fish/guestfish.pod:607
23876 msgid "B<k> or B<K> or B<KiB>"
23877 msgstr ""
23878
23879 # type: textblock
23880 #. type: textblock
23881 #: ../fish/guestfish.pod:609
23882 msgid "The size in kilobytes (multiplied by 1024)."
23883 msgstr ""
23884
23885 # type: =item
23886 #. type: =item
23887 #: ../fish/guestfish.pod:611
23888 msgid "B<KB>"
23889 msgstr ""
23890
23891 # type: textblock
23892 #. type: textblock
23893 #: ../fish/guestfish.pod:613
23894 msgid "The size in SI 1000 byte units."
23895 msgstr ""
23896
23897 # type: =item
23898 #. type: =item
23899 #: ../fish/guestfish.pod:615
23900 msgid "B<M> or B<MiB>"
23901 msgstr ""
23902
23903 # type: textblock
23904 #. type: textblock
23905 #: ../fish/guestfish.pod:617
23906 msgid "The size in megabytes (multiplied by 1048576)."
23907 msgstr ""
23908
23909 # type: =item
23910 #. type: =item
23911 #: ../fish/guestfish.pod:619
23912 msgid "B<MB>"
23913 msgstr ""
23914
23915 # type: textblock
23916 #. type: textblock
23917 #: ../fish/guestfish.pod:621
23918 msgid "The size in SI 1000000 byte units."
23919 msgstr ""
23920
23921 # type: =item
23922 #. type: =item
23923 #: ../fish/guestfish.pod:623
23924 msgid "B<G> or B<GiB>"
23925 msgstr ""
23926
23927 # type: textblock
23928 #. type: textblock
23929 #: ../fish/guestfish.pod:625
23930 msgid "The size in gigabytes (multiplied by 2**30)."
23931 msgstr ""
23932
23933 # type: =item
23934 #. type: =item
23935 #: ../fish/guestfish.pod:627
23936 msgid "B<GB>"
23937 msgstr ""
23938
23939 # type: textblock
23940 #. type: textblock
23941 #: ../fish/guestfish.pod:629
23942 msgid "The size in SI 10**9 byte units."
23943 msgstr ""
23944
23945 # type: =item
23946 #. type: =item
23947 #: ../fish/guestfish.pod:631
23948 msgid "B<T> or B<TiB>"
23949 msgstr ""
23950
23951 # type: textblock
23952 #. type: textblock
23953 #: ../fish/guestfish.pod:633
23954 msgid "The size in terabytes (multiplied by 2**40)."
23955 msgstr ""
23956
23957 # type: =item
23958 #. type: =item
23959 #: ../fish/guestfish.pod:635
23960 msgid "B<TB>"
23961 msgstr ""
23962
23963 # type: textblock
23964 #. type: textblock
23965 #: ../fish/guestfish.pod:637
23966 msgid "The size in SI 10**12 byte units."
23967 msgstr ""
23968
23969 # type: =item
23970 #. type: =item
23971 #: ../fish/guestfish.pod:639
23972 msgid "B<P> or B<PiB>"
23973 msgstr ""
23974
23975 # type: textblock
23976 #. type: textblock
23977 #: ../fish/guestfish.pod:641
23978 msgid "The size in petabytes (multiplied by 2**50)."
23979 msgstr ""
23980
23981 # type: =item
23982 #. type: =item
23983 #: ../fish/guestfish.pod:643
23984 msgid "B<PB>"
23985 msgstr ""
23986
23987 # type: textblock
23988 #. type: textblock
23989 #: ../fish/guestfish.pod:645
23990 msgid "The size in SI 10**15 byte units."
23991 msgstr ""
23992
23993 # type: =item
23994 #. type: =item
23995 #: ../fish/guestfish.pod:647
23996 msgid "B<E> or B<EiB>"
23997 msgstr ""
23998
23999 # type: textblock
24000 #. type: textblock
24001 #: ../fish/guestfish.pod:649
24002 msgid "The size in exabytes (multiplied by 2**60)."
24003 msgstr ""
24004
24005 # type: =item
24006 #. type: =item
24007 #: ../fish/guestfish.pod:651
24008 msgid "B<EB>"
24009 msgstr ""
24010
24011 # type: textblock
24012 #. type: textblock
24013 #: ../fish/guestfish.pod:653
24014 msgid "The size in SI 10**18 byte units."
24015 msgstr ""
24016
24017 # type: =item
24018 #. type: =item
24019 #: ../fish/guestfish.pod:655
24020 msgid "B<Z> or B<ZiB>"
24021 msgstr ""
24022
24023 # type: textblock
24024 #. type: textblock
24025 #: ../fish/guestfish.pod:657
24026 msgid "The size in zettabytes (multiplied by 2**70)."
24027 msgstr ""
24028
24029 # type: =item
24030 #. type: =item
24031 #: ../fish/guestfish.pod:659
24032 msgid "B<ZB>"
24033 msgstr ""
24034
24035 # type: textblock
24036 #. type: textblock
24037 #: ../fish/guestfish.pod:661
24038 msgid "The size in SI 10**21 byte units."
24039 msgstr ""
24040
24041 # type: =item
24042 #. type: =item
24043 #: ../fish/guestfish.pod:663
24044 msgid "B<Y> or B<YiB>"
24045 msgstr ""
24046
24047 # type: textblock
24048 #. type: textblock
24049 #: ../fish/guestfish.pod:665
24050 msgid "The size in yottabytes (multiplied by 2**80)."
24051 msgstr ""
24052
24053 # type: =item
24054 #. type: =item
24055 #: ../fish/guestfish.pod:667
24056 msgid "B<YB>"
24057 msgstr ""
24058
24059 # type: textblock
24060 #. type: textblock
24061 #: ../fish/guestfish.pod:669
24062 msgid "The size in SI 10**24 byte units."
24063 msgstr ""
24064
24065 # type: verbatim
24066 #. type: verbatim
24067 #: ../fish/guestfish.pod:675
24068 #, no-wrap
24069 msgid ""
24070 " truncate-size /file 1G\n"
24071 "\n"
24072 msgstr ""
24073
24074 # type: textblock
24075 #. type: textblock
24076 #: ../fish/guestfish.pod:677
24077 msgid "would truncate the file to 1 gigabyte."
24078 msgstr ""
24079
24080 # type: textblock
24081 #. type: textblock
24082 #: ../fish/guestfish.pod:679
24083 msgid ""
24084 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
24085 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
24086 "suffix will probably not do what you expect."
24087 msgstr ""
24088
24089 # type: =head2
24090 #. type: =head2
24091 #: ../fish/guestfish.pod:683
24092 msgid "OCTAL AND HEXADECIMAL NUMBERS"
24093 msgstr ""
24094
24095 # type: textblock
24096 #. type: textblock
24097 #: ../fish/guestfish.pod:685
24098 msgid ""
24099 "For specifying the radix (base) use the C convention: C<0> to prefix an "
24100 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
24101 msgstr ""
24102
24103 # type: verbatim
24104 #. type: verbatim
24105 #: ../fish/guestfish.pod:688
24106 #, no-wrap
24107 msgid ""
24108 " 1234      decimal number 1234\n"
24109 " 02322     octal number, equivalent to decimal 1234\n"
24110 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
24111 "\n"
24112 msgstr ""
24113
24114 # type: textblock
24115 #. type: textblock
24116 #: ../fish/guestfish.pod:692
24117 msgid ""
24118 "When using the C<chmod> command, you almost always want to specify an octal "
24119 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
24120 "L<chmod(1)> program):"
24121 msgstr ""
24122
24123 # type: verbatim
24124 #. type: verbatim
24125 #: ../fish/guestfish.pod:696
24126 #, no-wrap
24127 msgid ""
24128 " chmod 0777 /public  # OK\n"
24129 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
24130 "\n"
24131 msgstr ""
24132
24133 # type: textblock
24134 #. type: textblock
24135 #: ../fish/guestfish.pod:699
24136 msgid ""
24137 "Commands that return numbers usually print them in decimal, but some "
24138 "commands print numbers in other radices (eg. C<umask> prints the mode in "
24139 "octal, preceeded by C<0>)."
24140 msgstr ""
24141
24142 # type: =head1
24143 #. type: =head1
24144 #: ../fish/guestfish.pod:703
24145 msgid "WILDCARDS AND GLOBBING"
24146 msgstr ""
24147
24148 # type: textblock
24149 #. type: textblock
24150 #: ../fish/guestfish.pod:705
24151 msgid ""
24152 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
24153 "(globbing) by default.  So for example the following will not do what you "
24154 "expect:"
24155 msgstr ""
24156
24157 # type: verbatim
24158 #. type: verbatim
24159 #: ../fish/guestfish.pod:709
24160 #, no-wrap
24161 msgid ""
24162 " rm-rf /home/*\n"
24163 "\n"
24164 msgstr ""
24165
24166 # type: textblock
24167 #. type: textblock
24168 #: ../fish/guestfish.pod:711
24169 msgid ""
24170 "Assuming you don't have a directory called literally C</home/*> then the "
24171 "above command will return an error."
24172 msgstr ""
24173
24174 # type: textblock
24175 #. type: textblock
24176 #: ../fish/guestfish.pod:714
24177 msgid "To perform wildcard expansion, use the C<glob> command."
24178 msgstr ""
24179
24180 # type: verbatim
24181 #. type: verbatim
24182 #: ../fish/guestfish.pod:716
24183 #, no-wrap
24184 msgid ""
24185 " glob rm-rf /home/*\n"
24186 "\n"
24187 msgstr ""
24188
24189 # type: textblock
24190 #. type: textblock
24191 #: ../fish/guestfish.pod:718
24192 msgid ""
24193 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
24194 "many times), equivalent to:"
24195 msgstr ""
24196
24197 # type: verbatim
24198 #. type: verbatim
24199 #: ../fish/guestfish.pod:721
24200 #, no-wrap
24201 msgid ""
24202 " rm-rf /home/jim\n"
24203 " rm-rf /home/joe\n"
24204 " rm-rf /home/mary\n"
24205 "\n"
24206 msgstr ""
24207
24208 # type: textblock
24209 #. type: textblock
24210 #: ../fish/guestfish.pod:725
24211 msgid "C<glob> only works on simple guest paths and not on device names."
24212 msgstr ""
24213
24214 # type: textblock
24215 #. type: textblock
24216 #: ../fish/guestfish.pod:727
24217 msgid ""
24218 "If you have several parameters, each containing a wildcard, then glob will "
24219 "perform a Cartesian product."
24220 msgstr ""
24221
24222 # type: =head1
24223 #. type: =head1
24224 #: ../fish/guestfish.pod:730
24225 msgid "COMMENTS"
24226 msgstr ""
24227
24228 # type: textblock
24229 #. type: textblock
24230 #: ../fish/guestfish.pod:732
24231 msgid ""
24232 "Any line which starts with a I<#> character is treated as a comment and "
24233 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
24234 "a command.  For example:"
24235 msgstr ""
24236
24237 # type: verbatim
24238 #. type: verbatim
24239 #: ../fish/guestfish.pod:736
24240 #, no-wrap
24241 msgid ""
24242 " # this is a comment\n"
24243 "         # this is a comment\n"
24244 " foo # NOT a comment\n"
24245 "\n"
24246 msgstr ""
24247
24248 # type: textblock
24249 #. type: textblock
24250 #: ../fish/guestfish.pod:740
24251 msgid "Blank lines are also ignored."
24252 msgstr ""
24253
24254 # type: =head1
24255 #. type: =head1
24256 #: ../fish/guestfish.pod:742
24257 msgid "RUNNING COMMANDS LOCALLY"
24258 msgstr ""
24259
24260 # type: textblock
24261 #. type: textblock
24262 #: ../fish/guestfish.pod:744
24263 msgid ""
24264 "Any line which starts with a I<!> character is treated as a command sent to "
24265 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
24266 msgstr ""
24267
24268 # type: verbatim
24269 #. type: verbatim
24270 #: ../fish/guestfish.pod:748
24271 #, no-wrap
24272 msgid ""
24273 " !mkdir local\n"
24274 " tgz-out /remote local/remote-data.tar.gz\n"
24275 "\n"
24276 msgstr ""
24277
24278 # type: textblock
24279 #. type: textblock
24280 #: ../fish/guestfish.pod:751
24281 msgid ""
24282 "will create a directory C<local> on the host, and then export the contents "
24283 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
24284 "(See C<tgz-out>)."
24285 msgstr ""
24286
24287 # type: textblock
24288 #. type: textblock
24289 #: ../fish/guestfish.pod:755
24290 msgid ""
24291 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
24292 "effect, due to the way that subprocesses work in Unix."
24293 msgstr ""
24294
24295 #. type: =head2
24296 #: ../fish/guestfish.pod:758
24297 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
24298 msgstr ""
24299
24300 #. type: textblock
24301 #: ../fish/guestfish.pod:760
24302 msgid ""
24303 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
24304 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
24305 "and executed as guestfish commands."
24306 msgstr ""
24307
24308 #. type: textblock
24309 #: ../fish/guestfish.pod:764
24310 msgid ""
24311 "Thus you can use shell script to construct arbitrary guestfish commands "
24312 "which are then parsed by guestfish."
24313 msgstr ""
24314
24315 #. type: textblock
24316 #: ../fish/guestfish.pod:767
24317 msgid ""
24318 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
24319 "through C</foo.100>) using guestfish commands alone.  However this is simple "
24320 "if we use a shell script to create the guestfish commands for us:"
24321 msgstr ""
24322
24323 #. type: verbatim
24324 #: ../fish/guestfish.pod:772
24325 #, no-wrap
24326 msgid ""
24327 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
24328 "\n"
24329 msgstr ""
24330
24331 #. type: textblock
24332 #: ../fish/guestfish.pod:774
24333 msgid "or with names like C</foo.001>:"
24334 msgstr ""
24335
24336 #. type: verbatim
24337 #: ../fish/guestfish.pod:776
24338 #, no-wrap
24339 msgid ""
24340 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
24341 "\n"
24342 msgstr ""
24343
24344 #. type: textblock
24345 #: ../fish/guestfish.pod:778
24346 msgid ""
24347 "When using guestfish interactively it can be helpful to just run the shell "
24348 "script first (ie. remove the initial C<E<lt>> character so it is just an "
24349 "ordinary I<!> local command), see what guestfish commands it would run, and "
24350 "when you are happy with those prepend the C<E<lt>> character to run the "
24351 "guestfish commands for real."
24352 msgstr ""
24353
24354 # type: =head1
24355 #. type: =head1
24356 #: ../fish/guestfish.pod:784
24357 msgid "PIPES"
24358 msgstr ""
24359
24360 # type: textblock
24361 #. type: textblock
24362 #: ../fish/guestfish.pod:786
24363 msgid ""
24364 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
24365 "command (a guestfish command) to the second command (any host command).  For "
24366 "example:"
24367 msgstr ""
24368
24369 # type: verbatim
24370 #. type: verbatim
24371 #: ../fish/guestfish.pod:790
24372 #, no-wrap
24373 msgid ""
24374 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
24375 "\n"
24376 msgstr ""
24377
24378 # type: textblock
24379 #. type: textblock
24380 #: ../fish/guestfish.pod:792
24381 msgid ""
24382 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
24383 "program).  The above command would list all accounts in the guest filesystem "
24384 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
24385 msgstr ""
24386
24387 # type: verbatim
24388 #. type: verbatim
24389 #: ../fish/guestfish.pod:797
24390 #, no-wrap
24391 msgid ""
24392 " hexdump /bin/ls | head\n"
24393 " list-devices | tail -1\n"
24394 " tgz-out / - | tar ztf -\n"
24395 "\n"
24396 msgstr ""
24397
24398 # type: textblock
24399 #. type: textblock
24400 #: ../fish/guestfish.pod:801
24401 msgid ""
24402 "The space before the pipe symbol is required, any space after the pipe "
24403 "symbol is optional.  Everything after the pipe symbol is just passed "
24404 "straight to the host shell, so it can contain redirections, globs and "
24405 "anything else that makes sense on the host side."
24406 msgstr ""
24407
24408 # type: textblock
24409 #. type: textblock
24410 #: ../fish/guestfish.pod:806
24411 msgid ""
24412 "To use a literal argument which begins with a pipe symbol, you have to quote "
24413 "it, eg:"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #. type: verbatim
24418 #: ../fish/guestfish.pod:809
24419 #, no-wrap
24420 msgid ""
24421 " echo \"|\"\n"
24422 "\n"
24423 msgstr ""
24424
24425 # type: =head1
24426 #. type: =head1
24427 #: ../fish/guestfish.pod:811
24428 msgid "HOME DIRECTORIES"
24429 msgstr ""
24430
24431 # type: textblock
24432 #. type: textblock
24433 #: ../fish/guestfish.pod:813
24434 msgid ""
24435 "If a parameter starts with the character C<~> then the tilde may be expanded "
24436 "as a home directory path (either C<~> for the current user's home directory, "
24437 "or C<~user> for another user)."
24438 msgstr ""
24439
24440 # type: textblock
24441 #. type: textblock
24442 #: ../fish/guestfish.pod:817
24443 msgid ""
24444 "Note that home directory expansion happens for users known I<on the host>, "
24445 "not in the guest filesystem."
24446 msgstr ""
24447
24448 # type: textblock
24449 #. type: textblock
24450 #: ../fish/guestfish.pod:820
24451 msgid ""
24452 "To use a literal argument which begins with a tilde, you have to quote it, "
24453 "eg:"
24454 msgstr ""
24455
24456 # type: verbatim
24457 #. type: verbatim
24458 #: ../fish/guestfish.pod:823
24459 #, no-wrap
24460 msgid ""
24461 " echo \"~\"\n"
24462 "\n"
24463 msgstr ""
24464
24465 # type: textblock
24466 #. type: textblock
24467 #: ../fish/guestfish.pod:827
24468 msgid ""
24469 "Libguestfs has some support for Linux guests encrypted according to the "
24470 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
24471 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
24472 "LUKS is supported."
24473 msgstr ""
24474
24475 # type: textblock
24476 #. type: textblock
24477 #: ../fish/guestfish.pod:832
24478 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
24479 msgstr ""
24480
24481 # type: verbatim
24482 #. type: verbatim
24483 #: ../fish/guestfish.pod:834
24484 #, no-wrap
24485 msgid ""
24486 " ><fs> vfs-type /dev/sda2\n"
24487 " crypto_LUKS\n"
24488 "\n"
24489 msgstr ""
24490
24491 # type: textblock
24492 #. type: textblock
24493 #: ../fish/guestfish.pod:837
24494 msgid ""
24495 "Then open those devices using L</luks-open>.  This creates a device-mapper "
24496 "device called C</dev/mapper/luksdev>."
24497 msgstr ""
24498
24499 # type: verbatim
24500 #. type: verbatim
24501 #: ../fish/guestfish.pod:840
24502 #, no-wrap
24503 msgid ""
24504 " ><fs> luks-open /dev/sda2 luksdev\n"
24505 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
24506 "\n"
24507 msgstr ""
24508
24509 # type: textblock
24510 #. type: textblock
24511 #: ../fish/guestfish.pod:843
24512 msgid ""
24513 "Finally you have to tell LVM to scan for volume groups on the newly created "
24514 "mapper device:"
24515 msgstr ""
24516
24517 # type: verbatim
24518 #. type: verbatim
24519 #: ../fish/guestfish.pod:846
24520 #, no-wrap
24521 msgid ""
24522 " vgscan\n"
24523 " vg-activate-all true\n"
24524 "\n"
24525 msgstr ""
24526
24527 # type: textblock
24528 #. type: textblock
24529 #: ../fish/guestfish.pod:849
24530 msgid "The logical volume(s) can now be mounted in the usual way."
24531 msgstr ""
24532
24533 # type: textblock
24534 #. type: textblock
24535 #: ../fish/guestfish.pod:851
24536 msgid ""
24537 "Before closing a LUKS device you must unmount any logical volumes on it and "
24538 "deactivate the volume groups by calling C<vg-activate false VG> on each "
24539 "one.  Then you can close the mapper device:"
24540 msgstr ""
24541
24542 # type: verbatim
24543 #. type: verbatim
24544 #: ../fish/guestfish.pod:855
24545 #, no-wrap
24546 msgid ""
24547 " vg-activate false /dev/VG\n"
24548 " luks-close /dev/mapper/luksdev\n"
24549 "\n"
24550 msgstr ""
24551
24552 # type: =head1
24553 #. type: =head1
24554 #: ../fish/guestfish.pod:858
24555 msgid "WINDOWS PATHS"
24556 msgstr ""
24557
24558 #. type: textblock
24559 #: ../fish/guestfish.pod:860
24560 msgid ""
24561 "If a path is prefixed with C<win:> then you can use Windows-style drive "
24562 "letters and paths (with some limitations).  The following commands are "
24563 "equivalent:"
24564 msgstr ""
24565
24566 # type: verbatim
24567 #. type: verbatim
24568 #: ../fish/guestfish.pod:864
24569 #, no-wrap
24570 msgid ""
24571 " file /WINDOWS/system32/config/system.LOG\n"
24572 "\n"
24573 msgstr ""
24574
24575 # type: verbatim
24576 #. type: verbatim
24577 #: ../fish/guestfish.pod:866
24578 #, no-wrap
24579 msgid ""
24580 " file win:\\windows\\system32\\config\\system.log\n"
24581 "\n"
24582 msgstr ""
24583
24584 #. type: verbatim
24585 #: ../fish/guestfish.pod:868
24586 #, no-wrap
24587 msgid ""
24588 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
24589 "\n"
24590 msgstr ""
24591
24592 #. type: textblock
24593 #: ../fish/guestfish.pod:870
24594 msgid ""
24595 "The parameter is rewritten \"behind the scenes\" by looking up the position "
24596 "where the drive is mounted, prepending that to the path, changing all "
24597 "backslash characters to forward slash, then resolving the result using L</"
24598 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
24599 "the parameter might be rewritten like this:"
24600 msgstr ""
24601
24602 #. type: verbatim
24603 #: ../fish/guestfish.pod:876
24604 #, no-wrap
24605 msgid ""
24606 " win:e:\\foo\\bar => /e/FOO/bar\n"
24607 "\n"
24608 msgstr ""
24609
24610 #. type: textblock
24611 #: ../fish/guestfish.pod:878
24612 msgid "This only works in argument positions that expect a path."
24613 msgstr ""
24614
24615 # type: =head1
24616 #. type: =head1
24617 #: ../fish/guestfish.pod:880
24618 msgid "UPLOADING AND DOWNLOADING FILES"
24619 msgstr ""
24620
24621 # type: textblock
24622 #. type: textblock
24623 #: ../fish/guestfish.pod:882
24624 msgid ""
24625 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
24626 "others which upload from or download to a local file, you can use the "
24627 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
24628 msgstr ""
24629
24630 # type: verbatim
24631 #. type: verbatim
24632 #: ../fish/guestfish.pod:886
24633 #, no-wrap
24634 msgid ""
24635 " upload - /foo\n"
24636 "\n"
24637 msgstr ""
24638
24639 # type: textblock
24640 #. type: textblock
24641 #: ../fish/guestfish.pod:888
24642 msgid ""
24643 "reads stdin and creates from that a file C</foo> in the disk image, and:"
24644 msgstr ""
24645
24646 # type: verbatim
24647 #. type: verbatim
24648 #: ../fish/guestfish.pod:891
24649 #, no-wrap
24650 msgid ""
24651 " tar-out /etc - | tar tf -\n"
24652 "\n"
24653 msgstr ""
24654
24655 # type: textblock
24656 #. type: textblock
24657 #: ../fish/guestfish.pod:893
24658 msgid ""
24659 "writes the tarball to stdout and then pipes that into the external \"tar\" "
24660 "command (see L</PIPES>)."
24661 msgstr ""
24662
24663 # type: textblock
24664 #. type: textblock
24665 #: ../fish/guestfish.pod:896
24666 msgid ""
24667 "When using C<-> to read from stdin, the input is read up to the end of "
24668 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
24669 "some arbitrary end marker:"
24670 msgstr ""
24671
24672 # type: verbatim
24673 #. type: verbatim
24674 #: ../fish/guestfish.pod:900
24675 #, no-wrap
24676 msgid ""
24677 " upload -<<END /foo\n"
24678 " input line 1\n"
24679 " input line 2\n"
24680 " input line 3\n"
24681 " END\n"
24682 "\n"
24683 msgstr ""
24684
24685 # type: textblock
24686 #. type: textblock
24687 #: ../fish/guestfish.pod:906
24688 msgid ""
24689 "Any string of characters can be used instead of C<END>.  The end marker must "
24690 "appear on a line of its own, without any preceeding or following characters "
24691 "(not even spaces)."
24692 msgstr ""
24693
24694 # type: textblock
24695 #. type: textblock
24696 #: ../fish/guestfish.pod:910
24697 msgid ""
24698 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
24699 "upload local files (so-called \"FileIn\" parameters in the generator)."
24700 msgstr ""
24701
24702 # type: =head1
24703 #. type: =head1
24704 #: ../fish/guestfish.pod:913
24705 msgid "EXIT ON ERROR BEHAVIOUR"
24706 msgstr ""
24707
24708 # type: textblock
24709 #. type: textblock
24710 #: ../fish/guestfish.pod:915
24711 msgid ""
24712 "By default, guestfish will ignore any errors when in interactive mode (ie. "
24713 "taking commands from a human over a tty), and will exit on the first error "
24714 "in non-interactive mode (scripts, commands given on the command line)."
24715 msgstr ""
24716
24717 # type: textblock
24718 #. type: textblock
24719 #: ../fish/guestfish.pod:920
24720 msgid ""
24721 "If you prefix a command with a I<-> character, then that command will not "
24722 "cause guestfish to exit, even if that (one) command returns an error."
24723 msgstr ""
24724
24725 # type: =head1
24726 #. type: =head1
24727 #: ../fish/guestfish.pod:924
24728 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
24729 msgstr ""
24730
24731 # type: textblock
24732 #. type: textblock
24733 #: ../fish/guestfish.pod:926
24734 msgid ""
24735 "Guestfish can be remote-controlled over a socket.  This is useful "
24736 "particularly in shell scripts where you want to make several different "
24737 "changes to a filesystem, but you don't want the overhead of starting up a "
24738 "guestfish process each time."
24739 msgstr ""
24740
24741 # type: textblock
24742 #. type: textblock
24743 #: ../fish/guestfish.pod:931
24744 msgid "Start a guestfish server process using:"
24745 msgstr ""
24746
24747 # type: verbatim
24748 #. type: verbatim
24749 #: ../fish/guestfish.pod:933
24750 #, no-wrap
24751 msgid ""
24752 " eval \"`guestfish --listen`\"\n"
24753 "\n"
24754 msgstr ""
24755
24756 # type: textblock
24757 #. type: textblock
24758 #: ../fish/guestfish.pod:935
24759 msgid "and then send it commands by doing:"
24760 msgstr ""
24761
24762 # type: verbatim
24763 #. type: verbatim
24764 #: ../fish/guestfish.pod:937
24765 #, no-wrap
24766 msgid ""
24767 " guestfish --remote cmd [...]\n"
24768 "\n"
24769 msgstr ""
24770
24771 # type: textblock
24772 #. type: textblock
24773 #: ../fish/guestfish.pod:939
24774 msgid "To cause the server to exit, send it the exit command:"
24775 msgstr ""
24776
24777 # type: verbatim
24778 #. type: verbatim
24779 #: ../fish/guestfish.pod:941
24780 #, no-wrap
24781 msgid ""
24782 " guestfish --remote exit\n"
24783 "\n"
24784 msgstr ""
24785
24786 # type: textblock
24787 #. type: textblock
24788 #: ../fish/guestfish.pod:943
24789 msgid ""
24790 "Note that the server will normally exit if there is an error in a command.  "
24791 "You can change this in the usual way.  See section L</EXIT ON ERROR "
24792 "BEHAVIOUR>."
24793 msgstr ""
24794
24795 # type: =head2
24796 #. type: =head2
24797 #: ../fish/guestfish.pod:947
24798 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
24799 msgstr ""
24800
24801 # type: textblock
24802 #. type: textblock
24803 #: ../fish/guestfish.pod:949
24804 msgid ""
24805 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
24806 "is how the I<--remote> option knows where to send the commands.  You can "
24807 "have several guestfish listener processes running using:"
24808 msgstr ""
24809
24810 # type: verbatim
24811 #. type: verbatim
24812 #: ../fish/guestfish.pod:953
24813 #, no-wrap
24814 msgid ""
24815 " eval \"`guestfish --listen`\"\n"
24816 " pid1=$GUESTFISH_PID\n"
24817 " eval \"`guestfish --listen`\"\n"
24818 " pid2=$GUESTFISH_PID\n"
24819 " ...\n"
24820 " guestfish --remote=$pid1 cmd\n"
24821 " guestfish --remote=$pid2 cmd\n"
24822 "\n"
24823 msgstr ""
24824
24825 # type: =head2
24826 #. type: =head2
24827 #: ../fish/guestfish.pod:961
24828 msgid "REMOTE CONTROL AND CSH"
24829 msgstr ""
24830
24831 # type: textblock
24832 #. type: textblock
24833 #: ../fish/guestfish.pod:963
24834 msgid ""
24835 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
24836 "option:"
24837 msgstr ""
24838
24839 # type: verbatim
24840 #. type: verbatim
24841 #: ../fish/guestfish.pod:966
24842 #, no-wrap
24843 msgid ""
24844 " eval \"`guestfish --listen --csh`\"\n"
24845 "\n"
24846 msgstr ""
24847
24848 # type: =head2
24849 #. type: =head2
24850 #: ../fish/guestfish.pod:968
24851 msgid "REMOTE CONTROL DETAILS"
24852 msgstr ""
24853
24854 # type: textblock
24855 #. type: textblock
24856 #: ../fish/guestfish.pod:970
24857 msgid ""
24858 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
24859 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
24860 "and C<$PID> is the process ID of the server."
24861 msgstr ""
24862
24863 # type: textblock
24864 #. type: textblock
24865 #: ../fish/guestfish.pod:974
24866 msgid "Guestfish client and server versions must match exactly."
24867 msgstr ""
24868
24869 # type: =head1
24870 #. type: =head1
24871 #: ../fish/guestfish.pod:976
24872 msgid "PREPARED DISK IMAGES"
24873 msgstr ""
24874
24875 # type: textblock
24876 #. type: textblock
24877 #: ../fish/guestfish.pod:978
24878 msgid ""
24879 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
24880 "preformatted disk images that guestfish can make for you to save typing.  "
24881 "This is particularly useful for testing purposes.  This option is used "
24882 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
24883 "can be mixed with I<-a>)."
24884 msgstr ""
24885
24886 # type: textblock
24887 #. type: textblock
24888 #: ../fish/guestfish.pod:984
24889 msgid ""
24890 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
24891 "the second and so on.  Existing files in the current directory are "
24892 "I<overwritten>."
24893 msgstr ""
24894
24895 # type: textblock
24896 #. type: textblock
24897 #: ../fish/guestfish.pod:988
24898 msgid ""
24899 "The type briefly describes how the disk should be sized, partitioned, how "
24900 "filesystem(s) should be created, and how content should be added.  "
24901 "Optionally the type can be followed by extra parameters, separated by C<:> "
24902 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
24903 "allocated disk, containing a single partition, with the partition formatted "
24904 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
24905 "disk instead."
24906 msgstr ""
24907
24908 # type: textblock
24909 #. type: textblock
24910 #: ../fish/guestfish.pod:996
24911 msgid "To list the available types and any extra parameters they take, run:"
24912 msgstr ""
24913
24914 # type: textblock
24915 #. type: textblock
24916 #: ../fish/guestfish.pod:1000
24917 msgid ""
24918 "Note that the prepared filesystem is not mounted.  You would usually have to "
24919 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
24920 msgstr ""
24921
24922 # type: textblock
24923 #. type: textblock
24924 #: ../fish/guestfish.pod:1004
24925 msgid ""
24926 "If any I<-N> or I<--new> options are given, the guest is automatically "
24927 "launched."
24928 msgstr ""
24929
24930 # type: textblock
24931 #. type: textblock
24932 #: ../fish/guestfish.pod:1009
24933 msgid "Create a 100MB disk with an ext4-formatted partition:"
24934 msgstr ""
24935
24936 # type: verbatim
24937 #. type: verbatim
24938 #: ../fish/guestfish.pod:1011
24939 #, no-wrap
24940 msgid ""
24941 " guestfish -N fs:ext4\n"
24942 "\n"
24943 msgstr ""
24944
24945 # type: textblock
24946 #. type: textblock
24947 #: ../fish/guestfish.pod:1013
24948 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
24949 msgstr ""
24950
24951 # type: verbatim
24952 #. type: verbatim
24953 #: ../fish/guestfish.pod:1015
24954 #, no-wrap
24955 msgid ""
24956 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
24957 "\n"
24958 msgstr ""
24959
24960 # type: textblock
24961 #. type: textblock
24962 #: ../fish/guestfish.pod:1017
24963 msgid "Create a blank 200MB disk:"
24964 msgstr ""
24965
24966 # type: verbatim
24967 #. type: verbatim
24968 #: ../fish/guestfish.pod:1019
24969 #, no-wrap
24970 msgid ""
24971 " guestfish -N disk:200M\n"
24972 "\n"
24973 msgstr ""
24974
24975 # type: =head1
24976 #. type: =head1
24977 #: ../fish/guestfish.pod:1021
24978 msgid "PROGRESS BARS"
24979 msgstr ""
24980
24981 # type: textblock
24982 #. type: textblock
24983 #: ../fish/guestfish.pod:1023
24984 msgid ""
24985 "Some (not all) long-running commands send progress notification messages as "
24986 "they are running.  Guestfish turns these messages into progress bars."
24987 msgstr ""
24988
24989 # type: textblock
24990 #. type: textblock
24991 #: ../fish/guestfish.pod:1027
24992 msgid ""
24993 "When a command that supports progress bars takes longer than two seconds to "
24994 "run, and if progress bars are enabled, then you will see one appearing below "
24995 "the command:"
24996 msgstr ""
24997
24998 # type: verbatim
24999 #. type: verbatim
25000 #: ../fish/guestfish.pod:1031
25001 #, no-wrap
25002 msgid ""
25003 " ><fs> copy-size /large-file /another-file 2048M\n"
25004 " / 10% [#####-----------------------------------------] 00:30\n"
25005 "\n"
25006 msgstr ""
25007
25008 # type: textblock
25009 #. type: textblock
25010 #: ../fish/guestfish.pod:1034
25011 msgid ""
25012 "The spinner on the left hand side moves round once for every progress "
25013 "notification received from the backend.  This is a (reasonably) golden "
25014 "assurance that the command is \"doing something\" even if the progress bar "
25015 "is not moving, because the command is able to send the progress "
25016 "notifications.  When the bar reaches 100% and the command finishes, the "
25017 "spinner disappears."
25018 msgstr ""
25019
25020 # type: textblock
25021 #. type: textblock
25022 #: ../fish/guestfish.pod:1041
25023 msgid ""
25024 "Progress bars are enabled by default when guestfish is used interactively.  "
25025 "You can enable them even for non-interactive modes using I<--progress-bars>, "
25026 "and you can disable them completely using I<--no-progress-bars>."
25027 msgstr ""
25028
25029 # type: =head1
25030 #. type: =head1
25031 #: ../fish/guestfish.pod:1046
25032 msgid "GUESTFISH COMMANDS"
25033 msgstr ""
25034
25035 # type: textblock
25036 #. type: textblock
25037 #: ../fish/guestfish.pod:1048
25038 msgid ""
25039 "The commands in this section are guestfish convenience commands, in other "
25040 "words, they are not part of the L<guestfs(3)> API."
25041 msgstr ""
25042
25043 # type: =head2
25044 #. type: =head2
25045 #: ../fish/guestfish.pod:1051
25046 msgid "help"
25047 msgstr ""
25048
25049 # type: verbatim
25050 #. type: verbatim
25051 #: ../fish/guestfish.pod:1053
25052 #, no-wrap
25053 msgid ""
25054 " help\n"
25055 " help cmd\n"
25056 "\n"
25057 msgstr ""
25058
25059 # type: textblock
25060 #. type: textblock
25061 #: ../fish/guestfish.pod:1056
25062 msgid "Without any parameter, this provides general help."
25063 msgstr ""
25064
25065 # type: textblock
25066 #. type: textblock
25067 #: ../fish/guestfish.pod:1058
25068 msgid "With a C<cmd> parameter, this displays detailed help for that command."
25069 msgstr ""
25070
25071 # type: =head2
25072 #. type: =head2
25073 #: ../fish/guestfish.pod:1060
25074 msgid "quit | exit"
25075 msgstr ""
25076
25077 # type: textblock
25078 #. type: textblock
25079 #: ../fish/guestfish.pod:1062
25080 msgid "This exits guestfish.  You can also use C<^D> key."
25081 msgstr ""
25082
25083 # type: textblock
25084 #. type: textblock
25085 #: ../fish/guestfish.pod:1064
25086 msgid "@FISH_COMMANDS@"
25087 msgstr ""
25088
25089 # type: =head1
25090 #. type: =head1
25091 #: ../fish/guestfish.pod:1066
25092 msgid "COMMANDS"
25093 msgstr ""
25094
25095 # type: =head1
25096 #. type: =head1
25097 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
25098 msgid "EXIT CODE"
25099 msgstr ""
25100
25101 # type: textblock
25102 #. type: textblock
25103 #: ../fish/guestfish.pod:1072
25104 msgid ""
25105 "guestfish returns 0 if the commands completed without error, or 1 if there "
25106 "was an error."
25107 msgstr ""
25108
25109 # type: =item
25110 #. type: =item
25111 #: ../fish/guestfish.pod:1079
25112 msgid "EDITOR"
25113 msgstr ""
25114
25115 # type: textblock
25116 #. type: textblock
25117 #: ../fish/guestfish.pod:1081
25118 msgid ""
25119 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
25120 "C<vi>."
25121 msgstr ""
25122
25123 #. type: =item
25124 #: ../fish/guestfish.pod:1084
25125 msgid "GUESTFISH_DISPLAY_IMAGE"
25126 msgstr ""
25127
25128 #. type: textblock
25129 #: ../fish/guestfish.pod:1086
25130 msgid ""
25131 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
25132 "If not set, it uses L<display(1)>."
25133 msgstr ""
25134
25135 # type: =item
25136 #. type: =item
25137 #: ../fish/guestfish.pod:1089
25138 msgid "GUESTFISH_PID"
25139 msgstr ""
25140
25141 # type: textblock
25142 #. type: textblock
25143 #: ../fish/guestfish.pod:1091
25144 msgid ""
25145 "Used with the I<--remote> option to specify the remote guestfish process to "
25146 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
25147 msgstr ""
25148
25149 # type: =item
25150 #. type: =item
25151 #: ../fish/guestfish.pod:1095
25152 msgid "HEXEDITOR"
25153 msgstr ""
25154
25155 # type: textblock
25156 #. type: textblock
25157 #: ../fish/guestfish.pod:1097
25158 msgid ""
25159 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
25160 "not specified, the external L<hexedit(1)> program is used."
25161 msgstr ""
25162
25163 # type: =item
25164 #. type: =item
25165 #: ../fish/guestfish.pod:1101
25166 msgid "HOME"
25167 msgstr ""
25168
25169 # type: textblock
25170 #. type: textblock
25171 #: ../fish/guestfish.pod:1103
25172 msgid ""
25173 "If compiled with GNU readline support, various files in the home directory "
25174 "can be used.  See L</FILES>."
25175 msgstr ""
25176
25177 # type: textblock
25178 #. type: textblock
25179 #: ../fish/guestfish.pod:1112
25180 msgid ""
25181 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
25182 "effect as using the B<-v> option."
25183 msgstr ""
25184
25185 # type: textblock
25186 #. type: textblock
25187 #: ../fish/guestfish.pod:1124
25188 msgid ""
25189 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
25190 "the discussion of paths in L<guestfs(3)>."
25191 msgstr ""
25192
25193 # type: textblock
25194 #. type: textblock
25195 #: ../fish/guestfish.pod:1135
25196 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
25197 msgstr ""
25198
25199 # type: =item
25200 #. type: =item
25201 #: ../fish/guestfish.pod:1137
25202 msgid "PAGER"
25203 msgstr ""
25204
25205 # type: textblock
25206 #. type: textblock
25207 #: ../fish/guestfish.pod:1139
25208 msgid ""
25209 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
25210 "C<more>."
25211 msgstr ""
25212
25213 # type: =head1
25214 #. type: =head1
25215 #: ../fish/guestfish.pod:1155 ../fuse/guestmount.pod:264
25216 msgid "FILES"
25217 msgstr ""
25218
25219 #. type: =item
25220 #: ../fish/guestfish.pod:1159 ../fuse/guestmount.pod:268
25221 msgid "$HOME/.libguestfs-tools.rc"
25222 msgstr ""
25223
25224 #. type: =item
25225 #: ../fish/guestfish.pod:1161 ../fuse/guestmount.pod:270
25226 msgid "/etc/libguestfs-tools.conf"
25227 msgstr ""
25228
25229 #. type: textblock
25230 #: ../fish/guestfish.pod:1163 ../fuse/guestmount.pod:272
25231 msgid ""
25232 "This configuration file controls the default read-only or read-write mode "
25233 "(I<--ro> or I<--rw>)."
25234 msgstr ""
25235
25236 #. type: textblock
25237 #: ../fish/guestfish.pod:1166
25238 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
25239 msgstr ""
25240
25241 # type: =item
25242 #. type: =item
25243 #: ../fish/guestfish.pod:1168
25244 msgid "$HOME/.guestfish"
25245 msgstr ""
25246
25247 # type: textblock
25248 #. type: textblock
25249 #: ../fish/guestfish.pod:1170
25250 msgid ""
25251 "If compiled with GNU readline support, then the command history is saved in "
25252 "this file."
25253 msgstr ""
25254
25255 # type: =item
25256 #. type: =item
25257 #: ../fish/guestfish.pod:1173
25258 msgid "$HOME/.inputrc"
25259 msgstr ""
25260
25261 # type: =item
25262 #. type: =item
25263 #: ../fish/guestfish.pod:1175
25264 msgid "/etc/inputrc"
25265 msgstr ""
25266
25267 # type: textblock
25268 #. type: textblock
25269 #: ../fish/guestfish.pod:1177
25270 msgid ""
25271 "If compiled with GNU readline support, then these files can be used to "
25272 "configure readline.  For further information, please see L<readline(3)/"
25273 "INITIALIZATION FILE>."
25274 msgstr ""
25275
25276 # type: textblock
25277 #. type: textblock
25278 #: ../fish/guestfish.pod:1181
25279 msgid "To write rules which only apply to guestfish, use:"
25280 msgstr ""
25281
25282 # type: verbatim
25283 #. type: verbatim
25284 #: ../fish/guestfish.pod:1183
25285 #, no-wrap
25286 msgid ""
25287 " $if guestfish\n"
25288 " ...\n"
25289 " $endif\n"
25290 "\n"
25291 msgstr ""
25292
25293 # type: textblock
25294 #. type: textblock
25295 #: ../fish/guestfish.pod:1187
25296 msgid ""
25297 "Variables that you can set in inputrc that change the behaviour of guestfish "
25298 "in useful ways include:"
25299 msgstr ""
25300
25301 # type: =item
25302 #. type: =item
25303 #: ../fish/guestfish.pod:1192
25304 msgid "completion-ignore-case (default: on)"
25305 msgstr ""
25306
25307 # type: textblock
25308 #. type: textblock
25309 #: ../fish/guestfish.pod:1194
25310 msgid ""
25311 "By default, guestfish will ignore case when tab-completing paths on the "
25312 "disk.  Use:"
25313 msgstr ""
25314
25315 # type: verbatim
25316 #. type: verbatim
25317 #: ../fish/guestfish.pod:1197
25318 #, no-wrap
25319 msgid ""
25320 " set completion-ignore-case off\n"
25321 "\n"
25322 msgstr ""
25323
25324 # type: textblock
25325 #. type: textblock
25326 #: ../fish/guestfish.pod:1199
25327 msgid "to make guestfish case sensitive."
25328 msgstr ""
25329
25330 # type: =item
25331 #. type: =item
25332 #: ../fish/guestfish.pod:1203
25333 msgid "test1.img"
25334 msgstr ""
25335
25336 # type: =item
25337 #. type: =item
25338 #: ../fish/guestfish.pod:1205
25339 msgid "test2.img (etc)"
25340 msgstr ""
25341
25342 #. type: textblock
25343 #: ../fish/guestfish.pod:1207
25344 msgid ""
25345 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
25346 "will be created in the file C<test1.img> in the current directory.  The "
25347 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
25348 "the same name will be overwritten."
25349 msgstr ""
25350
25351 #. type: textblock
25352 #: ../fish/guestfish.pod:1216
25353 msgid ""
25354 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
25355 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
25356 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
25357 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
25358 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
25359 ">, L<display(1)>, L<hexedit(1)>."
25360 msgstr ""
25361
25362 # type: textblock
25363 #. type: textblock
25364 #: ../fish/guestfish.pod:1247 ../test-tool/libguestfs-test-tool.pod:102
25365 #: ../fuse/guestmount.pod:299 ../tools/virt-win-reg.pl:778
25366 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
25367 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
25368 msgid ""
25369 "This program is free software; you can redistribute it and/or modify it "
25370 "under the terms of the GNU General Public License as published by the Free "
25371 "Software Foundation; either version 2 of the License, or (at your option) "
25372 "any later version."
25373 msgstr ""
25374
25375 # type: textblock
25376 #. type: textblock
25377 #: ../fish/guestfish.pod:1252 ../test-tool/libguestfs-test-tool.pod:107
25378 #: ../fuse/guestmount.pod:304 ../tools/virt-win-reg.pl:783
25379 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
25380 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
25381 msgid ""
25382 "This program is distributed in the hope that it will be useful, but WITHOUT "
25383 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
25384 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
25385 "more details."
25386 msgstr ""
25387
25388 # type: textblock
25389 #. type: textblock
25390 #: ../fish/guestfish.pod:1257 ../test-tool/libguestfs-test-tool.pod:112
25391 #: ../fuse/guestmount.pod:309 ../tools/virt-win-reg.pl:788
25392 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
25393 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
25394 msgid ""
25395 "You should have received a copy of the GNU General Public License along with "
25396 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
25397 "Ave, Cambridge, MA 02139, USA."
25398 msgstr ""
25399
25400 # type: =head2
25401 #. type: =head2
25402 #: ../fish/guestfish-actions.pod:1
25403 msgid "add-cdrom"
25404 msgstr ""
25405
25406 # type: verbatim
25407 #. type: verbatim
25408 #: ../fish/guestfish-actions.pod:3
25409 #, no-wrap
25410 msgid ""
25411 " add-cdrom filename\n"
25412 "\n"
25413 msgstr ""
25414
25415 # type: textblock
25416 #. type: textblock
25417 #: ../fish/guestfish-actions.pod:15
25418 msgid ""
25419 "This call checks for the existence of C<filename>.  This stops you from "
25420 "specifying other types of drive which are supported by qemu such as C<nbd:> "
25421 "and C<http:> URLs.  To specify those, use the general L</config> call "
25422 "instead."
25423 msgstr ""
25424
25425 # type: textblock
25426 #. type: textblock
25427 #: ../fish/guestfish-actions.pod:22
25428 msgid ""
25429 "If you just want to add an ISO file (often you use this as an efficient way "
25430 "to transfer large files into the guest), then you should probably use L</add-"
25431 "drive-ro> instead."
25432 msgstr ""
25433
25434 # type: =head2
25435 #. type: =head2
25436 #: ../fish/guestfish-actions.pod:35
25437 msgid "add-domain"
25438 msgstr ""
25439
25440 # type: =head2
25441 #. type: =head2
25442 #: ../fish/guestfish-actions.pod:37
25443 msgid "domain"
25444 msgstr ""
25445
25446 #. type: verbatim
25447 #: ../fish/guestfish-actions.pod:39
25448 #, no-wrap
25449 msgid ""
25450 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
25451 "\n"
25452 msgstr ""
25453
25454 # type: textblock
25455 #. type: textblock
25456 #: ../fish/guestfish-actions.pod:41
25457 msgid ""
25458 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25459 "It works by connecting to libvirt, requesting the domain and domain XML from "
25460 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
25461 msgstr ""
25462
25463 # type: textblock
25464 #. type: textblock
25465 #: ../fish/guestfish-actions.pod:76
25466 msgid ""
25467 "The other optional parameters are passed directly through to L</add-drive-"
25468 "opts>."
25469 msgstr ""
25470
25471 # type: textblock
25472 #. type: textblock
25473 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
25474 #: ../fish/guestfish-actions.pod:568 ../fish/guestfish-actions.pod:1968
25475 #: ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307
25476 #: ../fish/guestfish-actions.pod:3442
25477 msgid ""
25478 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
25479 msgstr ""
25480
25481 # type: =head2
25482 #. type: =head2
25483 #: ../fish/guestfish-actions.pod:81
25484 msgid "add-drive"
25485 msgstr ""
25486
25487 # type: verbatim
25488 #. type: verbatim
25489 #: ../fish/guestfish-actions.pod:83
25490 #, no-wrap
25491 msgid ""
25492 " add-drive filename\n"
25493 "\n"
25494 msgstr ""
25495
25496 # type: textblock
25497 #. type: textblock
25498 #: ../fish/guestfish-actions.pod:85
25499 msgid ""
25500 "This function is the equivalent of calling L</add-drive-opts> with no "
25501 "optional parameters, so the disk is added writable, with the format being "
25502 "detected automatically."
25503 msgstr ""
25504
25505 # type: textblock
25506 #. type: textblock
25507 #: ../fish/guestfish-actions.pod:89
25508 msgid ""
25509 "Automatic detection of the format opens you up to a potential security hole "
25510 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25511 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25512 "you should think about replacing calls to this function with calls to L</add-"
25513 "drive-opts>, and specifying the format."
25514 msgstr ""
25515
25516 # type: =head2
25517 #. type: =head2
25518 #: ../fish/guestfish-actions.pod:96
25519 msgid "add-drive-opts"
25520 msgstr ""
25521
25522 # type: =head2
25523 #. type: =head2
25524 #: ../fish/guestfish-actions.pod:98
25525 msgid "add"
25526 msgstr ""
25527
25528 # type: verbatim
25529 #. type: verbatim
25530 #: ../fish/guestfish-actions.pod:100
25531 #, no-wrap
25532 msgid ""
25533 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
25534 "\n"
25535 msgstr ""
25536
25537 # type: textblock
25538 #. type: textblock
25539 #: ../fish/guestfish-actions.pod:127
25540 msgid ""
25541 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
25542 "add-drive-ro>) then the format is automatically detected.  Possible formats "
25543 "include C<raw> and C<qcow2>."
25544 msgstr ""
25545
25546 # type: textblock
25547 #. type: textblock
25548 #: ../fish/guestfish-actions.pod:138
25549 msgid ""
25550 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
25551 "add-drive-with-if> call (q.v.)"
25552 msgstr ""
25553
25554 # type: =head2
25555 #. type: =head2
25556 #: ../fish/guestfish-actions.pod:145
25557 msgid "add-drive-ro"
25558 msgstr ""
25559
25560 # type: =head2
25561 #. type: =head2
25562 #: ../fish/guestfish-actions.pod:147
25563 msgid "add-ro"
25564 msgstr ""
25565
25566 # type: verbatim
25567 #. type: verbatim
25568 #: ../fish/guestfish-actions.pod:149
25569 #, no-wrap
25570 msgid ""
25571 " add-drive-ro filename\n"
25572 "\n"
25573 msgstr ""
25574
25575 # type: textblock
25576 #. type: textblock
25577 #: ../fish/guestfish-actions.pod:151
25578 msgid ""
25579 "This function is the equivalent of calling L</add-drive-opts> with the "
25580 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
25581 "is added read-only, with the format being detected automatically."
25582 msgstr ""
25583
25584 # type: =head2
25585 #. type: =head2
25586 #: ../fish/guestfish-actions.pod:156
25587 msgid "add-drive-ro-with-if"
25588 msgstr ""
25589
25590 # type: verbatim
25591 #. type: verbatim
25592 #: ../fish/guestfish-actions.pod:158
25593 #, no-wrap
25594 msgid ""
25595 " add-drive-ro-with-if filename iface\n"
25596 "\n"
25597 msgstr ""
25598
25599 # type: textblock
25600 #. type: textblock
25601 #: ../fish/guestfish-actions.pod:160
25602 msgid ""
25603 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
25604 "interface emulation to use at run time."
25605 msgstr ""
25606
25607 # type: =head2
25608 #. type: =head2
25609 #: ../fish/guestfish-actions.pod:170
25610 msgid "add-drive-with-if"
25611 msgstr ""
25612
25613 # type: verbatim
25614 #. type: verbatim
25615 #: ../fish/guestfish-actions.pod:172
25616 #, no-wrap
25617 msgid ""
25618 " add-drive-with-if filename iface\n"
25619 "\n"
25620 msgstr ""
25621
25622 # type: textblock
25623 #. type: textblock
25624 #: ../fish/guestfish-actions.pod:174
25625 msgid ""
25626 "This is the same as L</add-drive> but it allows you to specify the QEMU "
25627 "interface emulation to use at run time."
25628 msgstr ""
25629
25630 # type: =head2
25631 #. type: =head2
25632 #: ../fish/guestfish-actions.pod:184
25633 msgid "aug-clear"
25634 msgstr ""
25635
25636 # type: verbatim
25637 #. type: verbatim
25638 #: ../fish/guestfish-actions.pod:186
25639 #, no-wrap
25640 msgid ""
25641 " aug-clear augpath\n"
25642 "\n"
25643 msgstr ""
25644
25645 # type: =head2
25646 #. type: =head2
25647 #: ../fish/guestfish-actions.pod:191
25648 msgid "aug-close"
25649 msgstr ""
25650
25651 # type: verbatim
25652 #. type: verbatim
25653 #: ../fish/guestfish-actions.pod:193
25654 #, no-wrap
25655 msgid ""
25656 " aug-close\n"
25657 "\n"
25658 msgstr ""
25659
25660 # type: textblock
25661 #. type: textblock
25662 #: ../fish/guestfish-actions.pod:195
25663 msgid ""
25664 "Close the current Augeas handle and free up any resources used by it.  After "
25665 "calling this, you have to call L</aug-init> again before you can use any "
25666 "other Augeas functions."
25667 msgstr ""
25668
25669 # type: =head2
25670 #. type: =head2
25671 #: ../fish/guestfish-actions.pod:200
25672 msgid "aug-defnode"
25673 msgstr ""
25674
25675 # type: verbatim
25676 #. type: verbatim
25677 #: ../fish/guestfish-actions.pod:202
25678 #, no-wrap
25679 msgid ""
25680 " aug-defnode name expr val\n"
25681 "\n"
25682 msgstr ""
25683
25684 # type: textblock
25685 #. type: textblock
25686 #: ../fish/guestfish-actions.pod:207
25687 msgid ""
25688 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25689 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
25690 "containing that single node."
25691 msgstr ""
25692
25693 # type: =head2
25694 #. type: =head2
25695 #: ../fish/guestfish-actions.pod:215
25696 msgid "aug-defvar"
25697 msgstr ""
25698
25699 # type: verbatim
25700 #. type: verbatim
25701 #: ../fish/guestfish-actions.pod:217
25702 #, no-wrap
25703 msgid ""
25704 " aug-defvar name expr\n"
25705 "\n"
25706 msgstr ""
25707
25708 # type: =head2
25709 #. type: =head2
25710 #: ../fish/guestfish-actions.pod:226
25711 msgid "aug-get"
25712 msgstr ""
25713
25714 # type: verbatim
25715 #. type: verbatim
25716 #: ../fish/guestfish-actions.pod:228
25717 #, no-wrap
25718 msgid ""
25719 " aug-get augpath\n"
25720 "\n"
25721 msgstr ""
25722
25723 # type: =head2
25724 #. type: =head2
25725 #: ../fish/guestfish-actions.pod:233
25726 msgid "aug-init"
25727 msgstr ""
25728
25729 # type: verbatim
25730 #. type: verbatim
25731 #: ../fish/guestfish-actions.pod:235
25732 #, no-wrap
25733 msgid ""
25734 " aug-init root flags\n"
25735 "\n"
25736 msgstr ""
25737
25738 # type: textblock
25739 #. type: textblock
25740 #: ../fish/guestfish-actions.pod:241
25741 msgid "You must call this before using any other L</aug-*> commands."
25742 msgstr ""
25743
25744 # type: textblock
25745 #. type: textblock
25746 #: ../fish/guestfish-actions.pod:276
25747 msgid "Do not load the tree in L</aug-init>."
25748 msgstr ""
25749
25750 # type: textblock
25751 #. type: textblock
25752 #: ../fish/guestfish-actions.pod:280
25753 msgid "To close the handle, you can call L</aug-close>."
25754 msgstr ""
25755
25756 # type: =head2
25757 #. type: =head2
25758 #: ../fish/guestfish-actions.pod:284
25759 msgid "aug-insert"
25760 msgstr ""
25761
25762 # type: verbatim
25763 #. type: verbatim
25764 #: ../fish/guestfish-actions.pod:286
25765 #, no-wrap
25766 msgid ""
25767 " aug-insert augpath label true|false\n"
25768 "\n"
25769 msgstr ""
25770
25771 # type: =head2
25772 #. type: =head2
25773 #: ../fish/guestfish-actions.pod:296
25774 msgid "aug-load"
25775 msgstr ""
25776
25777 # type: verbatim
25778 #. type: verbatim
25779 #: ../fish/guestfish-actions.pod:298
25780 #, no-wrap
25781 msgid ""
25782 " aug-load\n"
25783 "\n"
25784 msgstr ""
25785
25786 # type: =head2
25787 #. type: =head2
25788 #: ../fish/guestfish-actions.pod:305
25789 msgid "aug-ls"
25790 msgstr ""
25791
25792 # type: verbatim
25793 #. type: verbatim
25794 #: ../fish/guestfish-actions.pod:307
25795 #, no-wrap
25796 msgid ""
25797 " aug-ls augpath\n"
25798 "\n"
25799 msgstr ""
25800
25801 # type: textblock
25802 #. type: textblock
25803 #: ../fish/guestfish-actions.pod:309
25804 msgid ""
25805 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
25806 "resulting nodes into alphabetical order."
25807 msgstr ""
25808
25809 # type: =head2
25810 #. type: =head2
25811 #: ../fish/guestfish-actions.pod:312
25812 msgid "aug-match"
25813 msgstr ""
25814
25815 # type: verbatim
25816 #. type: verbatim
25817 #: ../fish/guestfish-actions.pod:314
25818 #, no-wrap
25819 msgid ""
25820 " aug-match augpath\n"
25821 "\n"
25822 msgstr ""
25823
25824 # type: =head2
25825 #. type: =head2
25826 #: ../fish/guestfish-actions.pod:320
25827 msgid "aug-mv"
25828 msgstr ""
25829
25830 # type: verbatim
25831 #. type: verbatim
25832 #: ../fish/guestfish-actions.pod:322
25833 #, no-wrap
25834 msgid ""
25835 " aug-mv src dest\n"
25836 "\n"
25837 msgstr ""
25838
25839 # type: =head2
25840 #. type: =head2
25841 #: ../fish/guestfish-actions.pod:327
25842 msgid "aug-rm"
25843 msgstr ""
25844
25845 # type: verbatim
25846 #. type: verbatim
25847 #: ../fish/guestfish-actions.pod:329
25848 #, no-wrap
25849 msgid ""
25850 " aug-rm augpath\n"
25851 "\n"
25852 msgstr ""
25853
25854 # type: =head2
25855 #. type: =head2
25856 #: ../fish/guestfish-actions.pod:335
25857 msgid "aug-save"
25858 msgstr ""
25859
25860 # type: verbatim
25861 #. type: verbatim
25862 #: ../fish/guestfish-actions.pod:337
25863 #, no-wrap
25864 msgid ""
25865 " aug-save\n"
25866 "\n"
25867 msgstr ""
25868
25869 # type: textblock
25870 #. type: textblock
25871 #: ../fish/guestfish-actions.pod:341
25872 msgid ""
25873 "The flags which were passed to L</aug-init> affect exactly how files are "
25874 "saved."
25875 msgstr ""
25876
25877 # type: =head2
25878 #. type: =head2
25879 #: ../fish/guestfish-actions.pod:344
25880 msgid "aug-set"
25881 msgstr ""
25882
25883 # type: verbatim
25884 #. type: verbatim
25885 #: ../fish/guestfish-actions.pod:346
25886 #, no-wrap
25887 msgid ""
25888 " aug-set augpath val\n"
25889 "\n"
25890 msgstr ""
25891
25892 # type: textblock
25893 #. type: textblock
25894 #: ../fish/guestfish-actions.pod:350
25895 msgid ""
25896 "In the Augeas API, it is possible to clear a node by setting the value to "
25897 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25898 "this call.  Instead you must use the L</aug-clear> call."
25899 msgstr ""
25900
25901 # type: =head2
25902 #. type: =head2
25903 #: ../fish/guestfish-actions.pod:355
25904 msgid "available"
25905 msgstr ""
25906
25907 # type: verbatim
25908 #. type: verbatim
25909 #: ../fish/guestfish-actions.pod:357
25910 #, no-wrap
25911 msgid ""
25912 " available 'groups ...'\n"
25913 "\n"
25914 msgstr ""
25915
25916 # type: textblock
25917 #. type: textblock
25918 #: ../fish/guestfish-actions.pod:363
25919 msgid ""
25920 "The libguestfs groups, and the functions that those groups correspond to, "
25921 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25922 "runtime by calling L</available-all-groups>."
25923 msgstr ""
25924
25925 # type: textblock
25926 #. type: textblock
25927 #: ../fish/guestfish-actions.pod:387
25928 msgid "You must call L</launch> before calling this function."
25929 msgstr ""
25930
25931 # type: textblock
25932 #. type: textblock
25933 #: ../fish/guestfish-actions.pod:409
25934 msgid ""
25935 "This call was added in version C<1.0.80>.  In previous versions of "
25936 "libguestfs all you could do would be to speculatively execute a command to "
25937 "find out if the daemon implemented it.  See also L</version>."
25938 msgstr ""
25939
25940 # type: =head2
25941 #. type: =head2
25942 #: ../fish/guestfish-actions.pod:416
25943 msgid "available-all-groups"
25944 msgstr ""
25945
25946 # type: verbatim
25947 #. type: verbatim
25948 #: ../fish/guestfish-actions.pod:418
25949 #, no-wrap
25950 msgid ""
25951 " available-all-groups\n"
25952 "\n"
25953 msgstr ""
25954
25955 # type: textblock
25956 #. type: textblock
25957 #: ../fish/guestfish-actions.pod:420
25958 msgid ""
25959 "This command returns a list of all optional groups that this daemon knows "
25960 "about.  Note this returns both supported and unsupported groups.  To find "
25961 "out which ones the daemon can actually support you have to call L</"
25962 "available> on each member of the returned list."
25963 msgstr ""
25964
25965 # type: textblock
25966 #. type: textblock
25967 #: ../fish/guestfish-actions.pod:426
25968 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
25969 msgstr ""
25970
25971 # type: =head2
25972 #. type: =head2
25973 #: ../fish/guestfish-actions.pod:428
25974 msgid "base64-in"
25975 msgstr ""
25976
25977 # type: verbatim
25978 #. type: verbatim
25979 #: ../fish/guestfish-actions.pod:430
25980 #, no-wrap
25981 msgid ""
25982 " base64-in (base64file|-) filename\n"
25983 "\n"
25984 msgstr ""
25985
25986 # type: textblock
25987 #. type: textblock
25988 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444
25989 #: ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862
25990 #: ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255
25991 #: ../fish/guestfish-actions.pod:4652 ../fish/guestfish-actions.pod:4664
25992 #: ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4686
25993 #: ../fish/guestfish-actions.pod:4738 ../fish/guestfish-actions.pod:4747
25994 #: ../fish/guestfish-actions.pod:4801 ../fish/guestfish-actions.pod:4824
25995 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
25996 msgstr ""
25997
25998 # type: =head2
25999 #. type: =head2
26000 #: ../fish/guestfish-actions.pod:437
26001 msgid "base64-out"
26002 msgstr ""
26003
26004 # type: verbatim
26005 #. type: verbatim
26006 #: ../fish/guestfish-actions.pod:439
26007 #, no-wrap
26008 msgid ""
26009 " base64-out filename (base64file|-)\n"
26010 "\n"
26011 msgstr ""
26012
26013 # type: =head2
26014 #. type: =head2
26015 #: ../fish/guestfish-actions.pod:446
26016 msgid "blockdev-flushbufs"
26017 msgstr ""
26018
26019 # type: verbatim
26020 #. type: verbatim
26021 #: ../fish/guestfish-actions.pod:448
26022 #, no-wrap
26023 msgid ""
26024 " blockdev-flushbufs device\n"
26025 "\n"
26026 msgstr ""
26027
26028 # type: =head2
26029 #. type: =head2
26030 #: ../fish/guestfish-actions.pod:455
26031 msgid "blockdev-getbsz"
26032 msgstr ""
26033
26034 # type: verbatim
26035 #. type: verbatim
26036 #: ../fish/guestfish-actions.pod:457
26037 #, no-wrap
26038 msgid ""
26039 " blockdev-getbsz device\n"
26040 "\n"
26041 msgstr ""
26042
26043 # type: =head2
26044 #. type: =head2
26045 #: ../fish/guestfish-actions.pod:466
26046 msgid "blockdev-getro"
26047 msgstr ""
26048
26049 # type: verbatim
26050 #. type: verbatim
26051 #: ../fish/guestfish-actions.pod:468
26052 #, no-wrap
26053 msgid ""
26054 " blockdev-getro device\n"
26055 "\n"
26056 msgstr ""
26057
26058 # type: =head2
26059 #. type: =head2
26060 #: ../fish/guestfish-actions.pod:475
26061 msgid "blockdev-getsize64"
26062 msgstr ""
26063
26064 # type: verbatim
26065 #. type: verbatim
26066 #: ../fish/guestfish-actions.pod:477
26067 #, no-wrap
26068 msgid ""
26069 " blockdev-getsize64 device\n"
26070 "\n"
26071 msgstr ""
26072
26073 # type: textblock
26074 #. type: textblock
26075 #: ../fish/guestfish-actions.pod:481
26076 msgid "See also L</blockdev-getsz>."
26077 msgstr ""
26078
26079 # type: =head2
26080 #. type: =head2
26081 #: ../fish/guestfish-actions.pod:485
26082 msgid "blockdev-getss"
26083 msgstr ""
26084
26085 # type: verbatim
26086 #. type: verbatim
26087 #: ../fish/guestfish-actions.pod:487
26088 #, no-wrap
26089 msgid ""
26090 " blockdev-getss device\n"
26091 "\n"
26092 msgstr ""
26093
26094 # type: textblock
26095 #. type: textblock
26096 #: ../fish/guestfish-actions.pod:492
26097 msgid ""
26098 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
26099 msgstr ""
26100
26101 # type: =head2
26102 #. type: =head2
26103 #: ../fish/guestfish-actions.pod:497
26104 msgid "blockdev-getsz"
26105 msgstr ""
26106
26107 # type: verbatim
26108 #. type: verbatim
26109 #: ../fish/guestfish-actions.pod:499
26110 #, no-wrap
26111 msgid ""
26112 " blockdev-getsz device\n"
26113 "\n"
26114 msgstr ""
26115
26116 # type: textblock
26117 #. type: textblock
26118 #: ../fish/guestfish-actions.pod:504
26119 msgid ""
26120 "See also L</blockdev-getss> for the real sector size of the device, and L</"
26121 "blockdev-getsize64> for the more useful I<size in bytes>."
26122 msgstr ""
26123
26124 # type: =head2
26125 #. type: =head2
26126 #: ../fish/guestfish-actions.pod:510
26127 msgid "blockdev-rereadpt"
26128 msgstr ""
26129
26130 # type: verbatim
26131 #. type: verbatim
26132 #: ../fish/guestfish-actions.pod:512
26133 #, no-wrap
26134 msgid ""
26135 " blockdev-rereadpt device\n"
26136 "\n"
26137 msgstr ""
26138
26139 # type: =head2
26140 #. type: =head2
26141 #: ../fish/guestfish-actions.pod:518
26142 msgid "blockdev-setbsz"
26143 msgstr ""
26144
26145 # type: verbatim
26146 #. type: verbatim
26147 #: ../fish/guestfish-actions.pod:520
26148 #, no-wrap
26149 msgid ""
26150 " blockdev-setbsz device blocksize\n"
26151 "\n"
26152 msgstr ""
26153
26154 # type: =head2
26155 #. type: =head2
26156 #: ../fish/guestfish-actions.pod:529
26157 msgid "blockdev-setro"
26158 msgstr ""
26159
26160 # type: verbatim
26161 #. type: verbatim
26162 #: ../fish/guestfish-actions.pod:531
26163 #, no-wrap
26164 msgid ""
26165 " blockdev-setro device\n"
26166 "\n"
26167 msgstr ""
26168
26169 # type: =head2
26170 #. type: =head2
26171 #: ../fish/guestfish-actions.pod:537
26172 msgid "blockdev-setrw"
26173 msgstr ""
26174
26175 # type: verbatim
26176 #. type: verbatim
26177 #: ../fish/guestfish-actions.pod:539
26178 #, no-wrap
26179 msgid ""
26180 " blockdev-setrw device\n"
26181 "\n"
26182 msgstr ""
26183
26184 #. type: =head2
26185 #: ../fish/guestfish-actions.pod:545
26186 msgid "btrfs-filesystem-resize"
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../fish/guestfish-actions.pod:547
26191 #, no-wrap
26192 msgid ""
26193 " btrfs-filesystem-resize mountpoint [size:..]\n"
26194 "\n"
26195 msgstr ""
26196
26197 # type: =head2
26198 #. type: =head2
26199 #: ../fish/guestfish-actions.pod:570
26200 msgid "case-sensitive-path"
26201 msgstr ""
26202
26203 # type: verbatim
26204 #. type: verbatim
26205 #: ../fish/guestfish-actions.pod:572
26206 #, no-wrap
26207 msgid ""
26208 " case-sensitive-path path\n"
26209 "\n"
26210 msgstr ""
26211
26212 # type: textblock
26213 #. type: textblock
26214 #: ../fish/guestfish-actions.pod:596
26215 msgid ""
26216 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
26217 "WINDOWS/system32\"> (the exact return value would depend on details of how "
26218 "the directories were originally created under Windows)."
26219 msgstr ""
26220
26221 # type: textblock
26222 #. type: textblock
26223 #: ../fish/guestfish-actions.pod:604
26224 msgid "See also L</realpath>."
26225 msgstr ""
26226
26227 # type: =head2
26228 #. type: =head2
26229 #: ../fish/guestfish-actions.pod:606
26230 msgid "cat"
26231 msgstr ""
26232
26233 # type: verbatim
26234 #. type: verbatim
26235 #: ../fish/guestfish-actions.pod:608
26236 #, no-wrap
26237 msgid ""
26238 " cat path\n"
26239 "\n"
26240 msgstr ""
26241
26242 # type: textblock
26243 #. type: textblock
26244 #: ../fish/guestfish-actions.pod:612
26245 msgid ""
26246 "Note that this function cannot correctly handle binary files (specifically, "
26247 "files containing C<\\0> character which is treated as end of string).  For "
26248 "those you need to use the L</read-file> or L</download> functions which have "
26249 "a more complex interface."
26250 msgstr ""
26251
26252 # type: =head2
26253 #. type: =head2
26254 #: ../fish/guestfish-actions.pod:620
26255 msgid "checksum"
26256 msgstr ""
26257
26258 # type: verbatim
26259 #. type: verbatim
26260 #: ../fish/guestfish-actions.pod:622
26261 #, no-wrap
26262 msgid ""
26263 " checksum csumtype path\n"
26264 "\n"
26265 msgstr ""
26266
26267 # type: textblock
26268 #. type: textblock
26269 #: ../fish/guestfish-actions.pod:665
26270 msgid "To get the checksum for a device, use L</checksum-device>."
26271 msgstr ""
26272
26273 # type: textblock
26274 #. type: textblock
26275 #: ../fish/guestfish-actions.pod:667
26276 msgid "To get the checksums for many files, use L</checksums-out>."
26277 msgstr ""
26278
26279 # type: =head2
26280 #. type: =head2
26281 #: ../fish/guestfish-actions.pod:669
26282 msgid "checksum-device"
26283 msgstr ""
26284
26285 # type: verbatim
26286 #. type: verbatim
26287 #: ../fish/guestfish-actions.pod:671
26288 #, no-wrap
26289 msgid ""
26290 " checksum-device csumtype device\n"
26291 "\n"
26292 msgstr ""
26293
26294 # type: textblock
26295 #. type: textblock
26296 #: ../fish/guestfish-actions.pod:673
26297 msgid ""
26298 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26299 "device named C<device>.  For the types of checksums supported see the L</"
26300 "checksum> command."
26301 msgstr ""
26302
26303 # type: =head2
26304 #. type: =head2
26305 #: ../fish/guestfish-actions.pod:677
26306 msgid "checksums-out"
26307 msgstr ""
26308
26309 # type: verbatim
26310 #. type: verbatim
26311 #: ../fish/guestfish-actions.pod:679
26312 #, no-wrap
26313 msgid ""
26314 " checksums-out csumtype directory (sumsfile|-)\n"
26315 "\n"
26316 msgstr ""
26317
26318 # type: =head2
26319 #. type: =head2
26320 #: ../fish/guestfish-actions.pod:695
26321 msgid "chmod"
26322 msgstr ""
26323
26324 # type: verbatim
26325 #. type: verbatim
26326 #: ../fish/guestfish-actions.pod:697
26327 #, no-wrap
26328 msgid ""
26329 " chmod mode path\n"
26330 "\n"
26331 msgstr ""
26332
26333 # type: =head2
26334 #. type: =head2
26335 #: ../fish/guestfish-actions.pod:708
26336 msgid "chown"
26337 msgstr ""
26338
26339 # type: verbatim
26340 #. type: verbatim
26341 #: ../fish/guestfish-actions.pod:710
26342 #, no-wrap
26343 msgid ""
26344 " chown owner group path\n"
26345 "\n"
26346 msgstr ""
26347
26348 # type: =head2
26349 #. type: =head2
26350 #: ../fish/guestfish-actions.pod:718
26351 msgid "command"
26352 msgstr ""
26353
26354 # type: verbatim
26355 #. type: verbatim
26356 #: ../fish/guestfish-actions.pod:720
26357 #, no-wrap
26358 msgid ""
26359 " command 'arguments ...'\n"
26360 "\n"
26361 msgstr ""
26362
26363 # type: textblock
26364 #. type: textblock
26365 #: ../fish/guestfish-actions.pod:727
26366 msgid ""
26367 "The single parameter is an argv-style list of arguments.  The first element "
26368 "is the name of the program to run.  Subsequent elements are parameters.  The "
26369 "list must be non-empty (ie. must contain a program name).  Note that the "
26370 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
26371 msgstr ""
26372
26373 # type: =head2
26374 #. type: =head2
26375 #: ../fish/guestfish-actions.pod:755
26376 msgid "command-lines"
26377 msgstr ""
26378
26379 # type: verbatim
26380 #. type: verbatim
26381 #: ../fish/guestfish-actions.pod:757
26382 #, no-wrap
26383 msgid ""
26384 " command-lines 'arguments ...'\n"
26385 "\n"
26386 msgstr ""
26387
26388 # type: textblock
26389 #. type: textblock
26390 #: ../fish/guestfish-actions.pod:759
26391 msgid ""
26392 "This is the same as L</command>, but splits the result into a list of lines."
26393 msgstr ""
26394
26395 # type: textblock
26396 #. type: textblock
26397 #: ../fish/guestfish-actions.pod:762
26398 msgid "See also: L</sh-lines>"
26399 msgstr ""
26400
26401 # type: =head2
26402 #. type: =head2
26403 #: ../fish/guestfish-actions.pod:767
26404 msgid "config"
26405 msgstr ""
26406
26407 # type: verbatim
26408 #. type: verbatim
26409 #: ../fish/guestfish-actions.pod:769
26410 #, no-wrap
26411 msgid ""
26412 " config qemuparam qemuvalue\n"
26413 "\n"
26414 msgstr ""
26415
26416 # type: =head2
26417 #. type: =head2
26418 #: ../fish/guestfish-actions.pod:780
26419 msgid "copy-size"
26420 msgstr ""
26421
26422 # type: verbatim
26423 #. type: verbatim
26424 #: ../fish/guestfish-actions.pod:782
26425 #, no-wrap
26426 msgid ""
26427 " copy-size src dest size\n"
26428 "\n"
26429 msgstr ""
26430
26431 # type: =head2
26432 #. type: =head2
26433 #: ../fish/guestfish-actions.pod:790
26434 msgid "cp"
26435 msgstr ""
26436
26437 # type: verbatim
26438 #. type: verbatim
26439 #: ../fish/guestfish-actions.pod:792
26440 #, no-wrap
26441 msgid ""
26442 " cp src dest\n"
26443 "\n"
26444 msgstr ""
26445
26446 # type: =head2
26447 #. type: =head2
26448 #: ../fish/guestfish-actions.pod:797
26449 msgid "cp-a"
26450 msgstr ""
26451
26452 # type: verbatim
26453 #. type: verbatim
26454 #: ../fish/guestfish-actions.pod:799
26455 #, no-wrap
26456 msgid ""
26457 " cp-a src dest\n"
26458 "\n"
26459 msgstr ""
26460
26461 # type: =head2
26462 #. type: =head2
26463 #: ../fish/guestfish-actions.pod:804
26464 msgid "dd"
26465 msgstr ""
26466
26467 # type: verbatim
26468 #. type: verbatim
26469 #: ../fish/guestfish-actions.pod:806
26470 #, no-wrap
26471 msgid ""
26472 " dd src dest\n"
26473 "\n"
26474 msgstr ""
26475
26476 # type: textblock
26477 #. type: textblock
26478 #: ../fish/guestfish-actions.pod:813
26479 msgid ""
26480 "If the destination is a device, it must be as large or larger than the "
26481 "source file or device, otherwise the copy will fail.  This command cannot do "
26482 "partial copies (see L</copy-size>)."
26483 msgstr ""
26484
26485 # type: =head2
26486 #. type: =head2
26487 #: ../fish/guestfish-actions.pod:817
26488 msgid "df"
26489 msgstr ""
26490
26491 # type: verbatim
26492 #. type: verbatim
26493 #: ../fish/guestfish-actions.pod:819
26494 #, no-wrap
26495 msgid ""
26496 " df\n"
26497 "\n"
26498 msgstr ""
26499
26500 # type: textblock
26501 #. type: textblock
26502 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
26503 msgid ""
26504 "This command is mostly useful for interactive sessions.  It is I<not> "
26505 "intended that you try to parse the output string.  Use L</statvfs> from "
26506 "programs."
26507 msgstr ""
26508
26509 # type: =head2
26510 #. type: =head2
26511 #: ../fish/guestfish-actions.pod:827
26512 msgid "df-h"
26513 msgstr ""
26514
26515 # type: verbatim
26516 #. type: verbatim
26517 #: ../fish/guestfish-actions.pod:829
26518 #, no-wrap
26519 msgid ""
26520 " df-h\n"
26521 "\n"
26522 msgstr ""
26523
26524 # type: =head2
26525 #. type: =head2
26526 #: ../fish/guestfish-actions.pod:838
26527 msgid "dmesg"
26528 msgstr ""
26529
26530 # type: verbatim
26531 #. type: verbatim
26532 #: ../fish/guestfish-actions.pod:840
26533 #, no-wrap
26534 msgid ""
26535 " dmesg\n"
26536 "\n"
26537 msgstr ""
26538
26539 # type: textblock
26540 #. type: textblock
26541 #: ../fish/guestfish-actions.pod:846
26542 msgid ""
26543 "Another way to get the same information is to enable verbose messages with "
26544 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
26545 "before running the program."
26546 msgstr ""
26547
26548 # type: =head2
26549 #. type: =head2
26550 #: ../fish/guestfish-actions.pod:851
26551 msgid "download"
26552 msgstr ""
26553
26554 # type: verbatim
26555 #. type: verbatim
26556 #: ../fish/guestfish-actions.pod:853
26557 #, no-wrap
26558 msgid ""
26559 " download remotefilename (filename|-)\n"
26560 "\n"
26561 msgstr ""
26562
26563 # type: textblock
26564 #. type: textblock
26565 #: ../fish/guestfish-actions.pod:860
26566 msgid "See also L</upload>, L</cat>."
26567 msgstr ""
26568
26569 # type: =head2
26570 #. type: =head2
26571 #: ../fish/guestfish-actions.pod:864
26572 msgid "download-offset"
26573 msgstr ""
26574
26575 # type: verbatim
26576 #. type: verbatim
26577 #: ../fish/guestfish-actions.pod:866
26578 #, no-wrap
26579 msgid ""
26580 " download-offset remotefilename (filename|-) offset size\n"
26581 "\n"
26582 msgstr ""
26583
26584 # type: textblock
26585 #. type: textblock
26586 #: ../fish/guestfish-actions.pod:874
26587 msgid ""
26588 "Note that there is no limit on the amount of data that can be downloaded "
26589 "with this call, unlike with L</pread>, and this call always reads the full "
26590 "amount unless an error occurs."
26591 msgstr ""
26592
26593 # type: textblock
26594 #. type: textblock
26595 #: ../fish/guestfish-actions.pod:879
26596 msgid "See also L</download>, L</pread>."
26597 msgstr ""
26598
26599 # type: =head2
26600 #. type: =head2
26601 #: ../fish/guestfish-actions.pod:883
26602 msgid "drop-caches"
26603 msgstr ""
26604
26605 # type: verbatim
26606 #. type: verbatim
26607 #: ../fish/guestfish-actions.pod:885
26608 #, no-wrap
26609 msgid ""
26610 " drop-caches whattodrop\n"
26611 "\n"
26612 msgstr ""
26613
26614 # type: =head2
26615 #. type: =head2
26616 #: ../fish/guestfish-actions.pod:897
26617 msgid "du"
26618 msgstr ""
26619
26620 # type: verbatim
26621 #. type: verbatim
26622 #: ../fish/guestfish-actions.pod:899
26623 #, no-wrap
26624 msgid ""
26625 " du path\n"
26626 "\n"
26627 msgstr ""
26628
26629 # type: =head2
26630 #. type: =head2
26631 #: ../fish/guestfish-actions.pod:911
26632 msgid "e2fsck-f"
26633 msgstr ""
26634
26635 # type: verbatim
26636 #. type: verbatim
26637 #: ../fish/guestfish-actions.pod:913
26638 #, no-wrap
26639 msgid ""
26640 " e2fsck-f device\n"
26641 "\n"
26642 msgstr ""
26643
26644 # type: textblock
26645 #. type: textblock
26646 #: ../fish/guestfish-actions.pod:919
26647 msgid ""
26648 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
26649 "should use L</fsck>."
26650 msgstr ""
26651
26652 # type: =head2
26653 #. type: =head2
26654 #: ../fish/guestfish-actions.pod:922
26655 msgid "echo-daemon"
26656 msgstr ""
26657
26658 # type: verbatim
26659 #. type: verbatim
26660 #: ../fish/guestfish-actions.pod:924
26661 #, no-wrap
26662 msgid ""
26663 " echo-daemon 'words ...'\n"
26664 "\n"
26665 msgstr ""
26666
26667 # type: textblock
26668 #. type: textblock
26669 #: ../fish/guestfish-actions.pod:931
26670 msgid "See also L</ping-daemon>."
26671 msgstr ""
26672
26673 # type: =head2
26674 #. type: =head2
26675 #: ../fish/guestfish-actions.pod:933
26676 msgid "egrep"
26677 msgstr ""
26678
26679 # type: verbatim
26680 #. type: verbatim
26681 #: ../fish/guestfish-actions.pod:935
26682 #, no-wrap
26683 msgid ""
26684 " egrep regex path\n"
26685 "\n"
26686 msgstr ""
26687
26688 # type: =head2
26689 #. type: =head2
26690 #: ../fish/guestfish-actions.pod:943
26691 msgid "egrepi"
26692 msgstr ""
26693
26694 # type: verbatim
26695 #. type: verbatim
26696 #: ../fish/guestfish-actions.pod:945
26697 #, no-wrap
26698 msgid ""
26699 " egrepi regex path\n"
26700 "\n"
26701 msgstr ""
26702
26703 # type: =head2
26704 #. type: =head2
26705 #: ../fish/guestfish-actions.pod:953
26706 msgid "equal"
26707 msgstr ""
26708
26709 # type: verbatim
26710 #. type: verbatim
26711 #: ../fish/guestfish-actions.pod:955
26712 #, no-wrap
26713 msgid ""
26714 " equal file1 file2\n"
26715 "\n"
26716 msgstr ""
26717
26718 # type: =head2
26719 #. type: =head2
26720 #: ../fish/guestfish-actions.pod:962
26721 msgid "exists"
26722 msgstr ""
26723
26724 # type: verbatim
26725 #. type: verbatim
26726 #: ../fish/guestfish-actions.pod:964
26727 #, no-wrap
26728 msgid ""
26729 " exists path\n"
26730 "\n"
26731 msgstr ""
26732
26733 # type: textblock
26734 #. type: textblock
26735 #: ../fish/guestfish-actions.pod:969
26736 msgid "See also L</is-file>, L</is-dir>, L</stat>."
26737 msgstr ""
26738
26739 # type: =head2
26740 #. type: =head2
26741 #: ../fish/guestfish-actions.pod:971
26742 msgid "fallocate"
26743 msgstr ""
26744
26745 # type: verbatim
26746 #. type: verbatim
26747 #: ../fish/guestfish-actions.pod:973
26748 #, no-wrap
26749 msgid ""
26750 " fallocate path len\n"
26751 "\n"
26752 msgstr ""
26753
26754 # type: =head2
26755 #. type: =head2
26756 #: ../fish/guestfish-actions.pod:990
26757 msgid "fallocate64"
26758 msgstr ""
26759
26760 # type: verbatim
26761 #. type: verbatim
26762 #: ../fish/guestfish-actions.pod:992
26763 #, no-wrap
26764 msgid ""
26765 " fallocate64 path len\n"
26766 "\n"
26767 msgstr ""
26768
26769 # type: textblock
26770 #. type: textblock
26771 #: ../fish/guestfish-actions.pod:998
26772 msgid ""
26773 "Note that this call allocates disk blocks for the file.  To create a sparse "
26774 "file use L</truncate-size> instead."
26775 msgstr ""
26776
26777 # type: textblock
26778 #. type: textblock
26779 #: ../fish/guestfish-actions.pod:1001
26780 msgid ""
26781 "The deprecated call L</fallocate> does the same, but owing to an oversight "
26782 "it only allowed 30 bit lengths to be specified, effectively limiting the "
26783 "maximum size of files created through that call to 1GB."
26784 msgstr ""
26785
26786 # type: =head2
26787 #. type: =head2
26788 #: ../fish/guestfish-actions.pod:1010
26789 msgid "fgrep"
26790 msgstr ""
26791
26792 # type: verbatim
26793 #. type: verbatim
26794 #: ../fish/guestfish-actions.pod:1012
26795 #, no-wrap
26796 msgid ""
26797 " fgrep pattern path\n"
26798 "\n"
26799 msgstr ""
26800
26801 # type: =head2
26802 #. type: =head2
26803 #: ../fish/guestfish-actions.pod:1020
26804 msgid "fgrepi"
26805 msgstr ""
26806
26807 # type: verbatim
26808 #. type: verbatim
26809 #: ../fish/guestfish-actions.pod:1022
26810 #, no-wrap
26811 msgid ""
26812 " fgrepi pattern path\n"
26813 "\n"
26814 msgstr ""
26815
26816 # type: =head2
26817 #. type: =head2
26818 #: ../fish/guestfish-actions.pod:1030
26819 msgid "file"
26820 msgstr ""
26821
26822 # type: verbatim
26823 #. type: verbatim
26824 #: ../fish/guestfish-actions.pod:1032
26825 #, no-wrap
26826 msgid ""
26827 " file path\n"
26828 "\n"
26829 msgstr ""
26830
26831 #. type: textblock
26832 #: ../fish/guestfish-actions.pod:1048
26833 msgid ""
26834 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
26835 "(etc), L</is-zero>."
26836 msgstr ""
26837
26838 # type: =head2
26839 #. type: =head2
26840 #: ../fish/guestfish-actions.pod:1051
26841 msgid "file-architecture"
26842 msgstr ""
26843
26844 # type: verbatim
26845 #. type: verbatim
26846 #: ../fish/guestfish-actions.pod:1053
26847 #, no-wrap
26848 msgid ""
26849 " file-architecture filename\n"
26850 "\n"
26851 msgstr ""
26852
26853 # type: =head2
26854 #. type: =head2
26855 #: ../fish/guestfish-actions.pod:1156
26856 msgid "filesize"
26857 msgstr ""
26858
26859 # type: verbatim
26860 #. type: verbatim
26861 #: ../fish/guestfish-actions.pod:1158
26862 #, no-wrap
26863 msgid ""
26864 " filesize file\n"
26865 "\n"
26866 msgstr ""
26867
26868 # type: textblock
26869 #. type: textblock
26870 #: ../fish/guestfish-actions.pod:1162
26871 msgid ""
26872 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
26873 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
26874 msgstr ""
26875
26876 # type: =head2
26877 #. type: =head2
26878 #: ../fish/guestfish-actions.pod:1166
26879 msgid "fill"
26880 msgstr ""
26881
26882 # type: verbatim
26883 #. type: verbatim
26884 #: ../fish/guestfish-actions.pod:1168
26885 #, no-wrap
26886 msgid ""
26887 " fill c len path\n"
26888 "\n"
26889 msgstr ""
26890
26891 # type: textblock
26892 #. type: textblock
26893 #: ../fish/guestfish-actions.pod:1174
26894 msgid ""
26895 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26896 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
26897 "L</fill-pattern>."
26898 msgstr ""
26899
26900 # type: =head2
26901 #. type: =head2
26902 #: ../fish/guestfish-actions.pod:1179
26903 msgid "fill-pattern"
26904 msgstr ""
26905
26906 # type: verbatim
26907 #. type: verbatim
26908 #: ../fish/guestfish-actions.pod:1181
26909 #, no-wrap
26910 msgid ""
26911 " fill-pattern pattern len path\n"
26912 "\n"
26913 msgstr ""
26914
26915 # type: textblock
26916 #. type: textblock
26917 #: ../fish/guestfish-actions.pod:1183
26918 msgid ""
26919 "This function is like L</fill> except that it creates a new file of length "
26920 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
26921 "is truncated if necessary to ensure the length of the file is exactly C<len> "
26922 "bytes."
26923 msgstr ""
26924
26925 # type: =head2
26926 #. type: =head2
26927 #: ../fish/guestfish-actions.pod:1188
26928 msgid "find"
26929 msgstr ""
26930
26931 # type: verbatim
26932 #. type: verbatim
26933 #: ../fish/guestfish-actions.pod:1190
26934 #, no-wrap
26935 msgid ""
26936 " find directory\n"
26937 "\n"
26938 msgstr ""
26939
26940 # type: textblock
26941 #. type: textblock
26942 #: ../fish/guestfish-actions.pod:1204
26943 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
26944 msgstr ""
26945
26946 # type: textblock
26947 #. type: textblock
26948 #: ../fish/guestfish-actions.pod:1217
26949 msgid "See also L</find0>."
26950 msgstr ""
26951
26952 # type: =head2
26953 #. type: =head2
26954 #: ../fish/guestfish-actions.pod:1222
26955 msgid "find0"
26956 msgstr ""
26957
26958 # type: verbatim
26959 #. type: verbatim
26960 #: ../fish/guestfish-actions.pod:1224
26961 #, no-wrap
26962 msgid ""
26963 " find0 directory (files|-)\n"
26964 "\n"
26965 msgstr ""
26966
26967 # type: textblock
26968 #. type: textblock
26969 #: ../fish/guestfish-actions.pod:1230
26970 msgid ""
26971 "This command works the same way as L</find> with the following exceptions:"
26972 msgstr ""
26973
26974 # type: =head2
26975 #. type: =head2
26976 #: ../fish/guestfish-actions.pod:1257
26977 msgid "findfs-label"
26978 msgstr ""
26979
26980 # type: verbatim
26981 #. type: verbatim
26982 #: ../fish/guestfish-actions.pod:1259
26983 #, no-wrap
26984 msgid ""
26985 " findfs-label label\n"
26986 "\n"
26987 msgstr ""
26988
26989 # type: textblock
26990 #. type: textblock
26991 #: ../fish/guestfish-actions.pod:1265
26992 msgid "To find the label of a filesystem, use L</vfs-label>."
26993 msgstr ""
26994
26995 # type: =head2
26996 #. type: =head2
26997 #: ../fish/guestfish-actions.pod:1267
26998 msgid "findfs-uuid"
26999 msgstr ""
27000
27001 # type: verbatim
27002 #. type: verbatim
27003 #: ../fish/guestfish-actions.pod:1269
27004 #, no-wrap
27005 msgid ""
27006 " findfs-uuid uuid\n"
27007 "\n"
27008 msgstr ""
27009
27010 # type: textblock
27011 #. type: textblock
27012 #: ../fish/guestfish-actions.pod:1275
27013 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
27014 msgstr ""
27015
27016 # type: =head2
27017 #. type: =head2
27018 #: ../fish/guestfish-actions.pod:1277
27019 msgid "fsck"
27020 msgstr ""
27021
27022 # type: verbatim
27023 #. type: verbatim
27024 #: ../fish/guestfish-actions.pod:1279
27025 #, no-wrap
27026 msgid ""
27027 " fsck fstype device\n"
27028 "\n"
27029 msgstr ""
27030
27031 # type: =head2
27032 #. type: =head2
27033 #: ../fish/guestfish-actions.pod:1309
27034 msgid "get-append"
27035 msgstr ""
27036
27037 # type: verbatim
27038 #. type: verbatim
27039 #: ../fish/guestfish-actions.pod:1311
27040 #, no-wrap
27041 msgid ""
27042 " get-append\n"
27043 "\n"
27044 msgstr ""
27045
27046 #. type: =head2
27047 #: ../fish/guestfish-actions.pod:1318
27048 msgid "get-attach-method"
27049 msgstr ""
27050
27051 #. type: verbatim
27052 #: ../fish/guestfish-actions.pod:1320
27053 #, no-wrap
27054 msgid ""
27055 " get-attach-method\n"
27056 "\n"
27057 msgstr ""
27058
27059 #. type: textblock
27060 #: ../fish/guestfish-actions.pod:1322
27061 msgid "Return the current attach method.  See L</set-attach-method>."
27062 msgstr ""
27063
27064 # type: =head2
27065 #. type: =head2
27066 #: ../fish/guestfish-actions.pod:1324
27067 msgid "get-autosync"
27068 msgstr ""
27069
27070 # type: verbatim
27071 #. type: verbatim
27072 #: ../fish/guestfish-actions.pod:1326
27073 #, no-wrap
27074 msgid ""
27075 " get-autosync\n"
27076 "\n"
27077 msgstr ""
27078
27079 # type: =head2
27080 #. type: =head2
27081 #: ../fish/guestfish-actions.pod:1330
27082 msgid "get-direct"
27083 msgstr ""
27084
27085 # type: verbatim
27086 #. type: verbatim
27087 #: ../fish/guestfish-actions.pod:1332
27088 #, no-wrap
27089 msgid ""
27090 " get-direct\n"
27091 "\n"
27092 msgstr ""
27093
27094 # type: =head2
27095 #. type: =head2
27096 #: ../fish/guestfish-actions.pod:1336
27097 msgid "get-e2label"
27098 msgstr ""
27099
27100 # type: verbatim
27101 #. type: verbatim
27102 #: ../fish/guestfish-actions.pod:1338
27103 #, no-wrap
27104 msgid ""
27105 " get-e2label device\n"
27106 "\n"
27107 msgstr ""
27108
27109 # type: =head2
27110 #. type: =head2
27111 #: ../fish/guestfish-actions.pod:1350
27112 msgid "get-e2uuid"
27113 msgstr ""
27114
27115 # type: verbatim
27116 #. type: verbatim
27117 #: ../fish/guestfish-actions.pod:1352
27118 #, no-wrap
27119 msgid ""
27120 " get-e2uuid device\n"
27121 "\n"
27122 msgstr ""
27123
27124 # type: =head2
27125 #. type: =head2
27126 #: ../fish/guestfish-actions.pod:1364
27127 msgid "get-memsize"
27128 msgstr ""
27129
27130 # type: verbatim
27131 #. type: verbatim
27132 #: ../fish/guestfish-actions.pod:1366
27133 #, no-wrap
27134 msgid ""
27135 " get-memsize\n"
27136 "\n"
27137 msgstr ""
27138
27139 # type: textblock
27140 #. type: textblock
27141 #: ../fish/guestfish-actions.pod:1371
27142 msgid ""
27143 "If L</set-memsize> was not called on this handle, and if "
27144 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27145 "value for memsize."
27146 msgstr ""
27147
27148 # type: =head2
27149 #. type: =head2
27150 #: ../fish/guestfish-actions.pod:1378
27151 msgid "get-network"
27152 msgstr ""
27153
27154 # type: verbatim
27155 #. type: verbatim
27156 #: ../fish/guestfish-actions.pod:1380
27157 #, no-wrap
27158 msgid ""
27159 " get-network\n"
27160 "\n"
27161 msgstr ""
27162
27163 # type: =head2
27164 #. type: =head2
27165 #: ../fish/guestfish-actions.pod:1384
27166 msgid "get-path"
27167 msgstr ""
27168
27169 # type: verbatim
27170 #. type: verbatim
27171 #: ../fish/guestfish-actions.pod:1386
27172 #, no-wrap
27173 msgid ""
27174 " get-path\n"
27175 "\n"
27176 msgstr ""
27177
27178 #. type: =head2
27179 #: ../fish/guestfish-actions.pod:1393
27180 msgid "get-pgroup"
27181 msgstr ""
27182
27183 #. type: verbatim
27184 #: ../fish/guestfish-actions.pod:1395
27185 #, no-wrap
27186 msgid ""
27187 " get-pgroup\n"
27188 "\n"
27189 msgstr ""
27190
27191 # type: =head2
27192 #. type: =head2
27193 #: ../fish/guestfish-actions.pod:1399
27194 msgid "get-pid"
27195 msgstr ""
27196
27197 # type: =head2
27198 #. type: =head2
27199 #: ../fish/guestfish-actions.pod:1401
27200 msgid "pid"
27201 msgstr ""
27202
27203 # type: verbatim
27204 #. type: verbatim
27205 #: ../fish/guestfish-actions.pod:1403
27206 #, no-wrap
27207 msgid ""
27208 " get-pid\n"
27209 "\n"
27210 msgstr ""
27211
27212 # type: =head2
27213 #. type: =head2
27214 #: ../fish/guestfish-actions.pod:1410
27215 msgid "get-qemu"
27216 msgstr ""
27217
27218 # type: verbatim
27219 #. type: verbatim
27220 #: ../fish/guestfish-actions.pod:1412
27221 #, no-wrap
27222 msgid ""
27223 " get-qemu\n"
27224 "\n"
27225 msgstr ""
27226
27227 # type: =head2
27228 #. type: =head2
27229 #: ../fish/guestfish-actions.pod:1419
27230 msgid "get-recovery-proc"
27231 msgstr ""
27232
27233 # type: verbatim
27234 #. type: verbatim
27235 #: ../fish/guestfish-actions.pod:1421
27236 #, no-wrap
27237 msgid ""
27238 " get-recovery-proc\n"
27239 "\n"
27240 msgstr ""
27241
27242 # type: =head2
27243 #. type: =head2
27244 #: ../fish/guestfish-actions.pod:1425
27245 msgid "get-selinux"
27246 msgstr ""
27247
27248 # type: verbatim
27249 #. type: verbatim
27250 #: ../fish/guestfish-actions.pod:1427
27251 #, no-wrap
27252 msgid ""
27253 " get-selinux\n"
27254 "\n"
27255 msgstr ""
27256
27257 # type: textblock
27258 #. type: textblock
27259 #: ../fish/guestfish-actions.pod:1429
27260 msgid ""
27261 "This returns the current setting of the selinux flag which is passed to the "
27262 "appliance at boot time.  See L</set-selinux>."
27263 msgstr ""
27264
27265 # type: =head2
27266 #. type: =head2
27267 #: ../fish/guestfish-actions.pod:1435
27268 msgid "get-state"
27269 msgstr ""
27270
27271 # type: verbatim
27272 #. type: verbatim
27273 #: ../fish/guestfish-actions.pod:1437
27274 #, no-wrap
27275 msgid ""
27276 " get-state\n"
27277 "\n"
27278 msgstr ""
27279
27280 # type: =head2
27281 #. type: =head2
27282 #: ../fish/guestfish-actions.pod:1444
27283 msgid "get-trace"
27284 msgstr ""
27285
27286 # type: verbatim
27287 #. type: verbatim
27288 #: ../fish/guestfish-actions.pod:1446
27289 #, no-wrap
27290 msgid ""
27291 " get-trace\n"
27292 "\n"
27293 msgstr ""
27294
27295 # type: =head2
27296 #. type: =head2
27297 #: ../fish/guestfish-actions.pod:1450
27298 msgid "get-umask"
27299 msgstr ""
27300
27301 # type: verbatim
27302 #. type: verbatim
27303 #: ../fish/guestfish-actions.pod:1452
27304 #, no-wrap
27305 msgid ""
27306 " get-umask\n"
27307 "\n"
27308 msgstr ""
27309
27310 # type: textblock
27311 #. type: textblock
27312 #: ../fish/guestfish-actions.pod:1454
27313 msgid ""
27314 "Return the current umask.  By default the umask is C<022> unless it has been "
27315 "set by calling L</umask>."
27316 msgstr ""
27317
27318 # type: =head2
27319 #. type: =head2
27320 #: ../fish/guestfish-actions.pod:1457
27321 msgid "get-verbose"
27322 msgstr ""
27323
27324 # type: verbatim
27325 #. type: verbatim
27326 #: ../fish/guestfish-actions.pod:1459
27327 #, no-wrap
27328 msgid ""
27329 " get-verbose\n"
27330 "\n"
27331 msgstr ""
27332
27333 # type: =head2
27334 #. type: =head2
27335 #: ../fish/guestfish-actions.pod:1463
27336 msgid "getcon"
27337 msgstr ""
27338
27339 # type: verbatim
27340 #. type: verbatim
27341 #: ../fish/guestfish-actions.pod:1465
27342 #, no-wrap
27343 msgid ""
27344 " getcon\n"
27345 "\n"
27346 msgstr ""
27347
27348 # type: textblock
27349 #. type: textblock
27350 #: ../fish/guestfish-actions.pod:1469
27351 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
27352 msgstr ""
27353
27354 # type: =head2
27355 #. type: =head2
27356 #: ../fish/guestfish-actions.pod:1472
27357 msgid "getxattr"
27358 msgstr ""
27359
27360 # type: verbatim
27361 #. type: verbatim
27362 #: ../fish/guestfish-actions.pod:1474
27363 #, no-wrap
27364 msgid ""
27365 " getxattr path name\n"
27366 "\n"
27367 msgstr ""
27368
27369 # type: textblock
27370 #. type: textblock
27371 #: ../fish/guestfish-actions.pod:1476
27372 msgid ""
27373 "Get a single extended attribute from file C<path> named C<name>.  This call "
27374 "follows symlinks.  If you want to lookup an extended attribute for the "
27375 "symlink itself, use L</lgetxattr>."
27376 msgstr ""
27377
27378 # type: textblock
27379 #. type: textblock
27380 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
27381 msgid ""
27382 "Normally it is better to get all extended attributes from a file in one go "
27383 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
27384 "buggy and do not provide a way to list out attributes.  For these "
27385 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
27386 "attributes you want in advance and call this function."
27387 msgstr ""
27388
27389 # type: textblock
27390 #. type: textblock
27391 #: ../fish/guestfish-actions.pod:1490
27392 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
27393 msgstr ""
27394
27395 # type: =head2
27396 #. type: =head2
27397 #: ../fish/guestfish-actions.pod:1492
27398 msgid "getxattrs"
27399 msgstr ""
27400
27401 # type: verbatim
27402 #. type: verbatim
27403 #: ../fish/guestfish-actions.pod:1494
27404 #, no-wrap
27405 msgid ""
27406 " getxattrs path\n"
27407 "\n"
27408 msgstr ""
27409
27410 # type: textblock
27411 #. type: textblock
27412 #: ../fish/guestfish-actions.pod:1502
27413 msgid "See also: L</lgetxattrs>, L<attr(5)>."
27414 msgstr ""
27415
27416 # type: =head2
27417 #. type: =head2
27418 #: ../fish/guestfish-actions.pod:1504
27419 msgid "glob-expand"
27420 msgstr ""
27421
27422 # type: verbatim
27423 #. type: verbatim
27424 #: ../fish/guestfish-actions.pod:1506
27425 #, no-wrap
27426 msgid ""
27427 " glob-expand pattern\n"
27428 "\n"
27429 msgstr ""
27430
27431 # type: =head2
27432 #. type: =head2
27433 #: ../fish/guestfish-actions.pod:1519
27434 msgid "grep"
27435 msgstr ""
27436
27437 # type: verbatim
27438 #. type: verbatim
27439 #: ../fish/guestfish-actions.pod:1521
27440 #, no-wrap
27441 msgid ""
27442 " grep regex path\n"
27443 "\n"
27444 msgstr ""
27445
27446 # type: =head2
27447 #. type: =head2
27448 #: ../fish/guestfish-actions.pod:1529
27449 msgid "grepi"
27450 msgstr ""
27451
27452 # type: verbatim
27453 #. type: verbatim
27454 #: ../fish/guestfish-actions.pod:1531
27455 #, no-wrap
27456 msgid ""
27457 " grepi regex path\n"
27458 "\n"
27459 msgstr ""
27460
27461 # type: =head2
27462 #. type: =head2
27463 #: ../fish/guestfish-actions.pod:1539
27464 msgid "grub-install"
27465 msgstr ""
27466
27467 # type: verbatim
27468 #. type: verbatim
27469 #: ../fish/guestfish-actions.pod:1541
27470 #, no-wrap
27471 msgid ""
27472 " grub-install root device\n"
27473 "\n"
27474 msgstr ""
27475
27476 # type: =head2
27477 #. type: =head2
27478 #: ../fish/guestfish-actions.pod:1557
27479 msgid "head"
27480 msgstr ""
27481
27482 # type: verbatim
27483 #. type: verbatim
27484 #: ../fish/guestfish-actions.pod:1559
27485 #, no-wrap
27486 msgid ""
27487 " head path\n"
27488 "\n"
27489 msgstr ""
27490
27491 # type: =head2
27492 #. type: =head2
27493 #: ../fish/guestfish-actions.pod:1567
27494 msgid "head-n"
27495 msgstr ""
27496
27497 # type: verbatim
27498 #. type: verbatim
27499 #: ../fish/guestfish-actions.pod:1569
27500 #, no-wrap
27501 msgid ""
27502 " head-n nrlines path\n"
27503 "\n"
27504 msgstr ""
27505
27506 # type: =head2
27507 #. type: =head2
27508 #: ../fish/guestfish-actions.pod:1582
27509 msgid "hexdump"
27510 msgstr ""
27511
27512 # type: verbatim
27513 #. type: verbatim
27514 #: ../fish/guestfish-actions.pod:1584
27515 #, no-wrap
27516 msgid ""
27517 " hexdump path\n"
27518 "\n"
27519 msgstr ""
27520
27521 # type: =head2
27522 #. type: =head2
27523 #: ../fish/guestfish-actions.pod:1592
27524 msgid "initrd-cat"
27525 msgstr ""
27526
27527 # type: verbatim
27528 #. type: verbatim
27529 #: ../fish/guestfish-actions.pod:1594
27530 #, no-wrap
27531 msgid ""
27532 " initrd-cat initrdpath filename\n"
27533 "\n"
27534 msgstr ""
27535
27536 # type: textblock
27537 #. type: textblock
27538 #: ../fish/guestfish-actions.pod:1606
27539 msgid "See also L</initrd-list>."
27540 msgstr ""
27541
27542 # type: =head2
27543 #. type: =head2
27544 #: ../fish/guestfish-actions.pod:1611
27545 msgid "initrd-list"
27546 msgstr ""
27547
27548 # type: verbatim
27549 #. type: verbatim
27550 #: ../fish/guestfish-actions.pod:1613
27551 #, no-wrap
27552 msgid ""
27553 " initrd-list path\n"
27554 "\n"
27555 msgstr ""
27556
27557 # type: =head2
27558 #. type: =head2
27559 #: ../fish/guestfish-actions.pod:1625
27560 msgid "inotify-add-watch"
27561 msgstr ""
27562
27563 # type: verbatim
27564 #. type: verbatim
27565 #: ../fish/guestfish-actions.pod:1627
27566 #, no-wrap
27567 msgid ""
27568 " inotify-add-watch path mask\n"
27569 "\n"
27570 msgstr ""
27571
27572 # type: =head2
27573 #. type: =head2
27574 #: ../fish/guestfish-actions.pod:1639
27575 msgid "inotify-close"
27576 msgstr ""
27577
27578 # type: verbatim
27579 #. type: verbatim
27580 #: ../fish/guestfish-actions.pod:1641
27581 #, no-wrap
27582 msgid ""
27583 " inotify-close\n"
27584 "\n"
27585 msgstr ""
27586
27587 # type: =head2
27588 #. type: =head2
27589 #: ../fish/guestfish-actions.pod:1647
27590 msgid "inotify-files"
27591 msgstr ""
27592
27593 # type: verbatim
27594 #. type: verbatim
27595 #: ../fish/guestfish-actions.pod:1649
27596 #, no-wrap
27597 msgid ""
27598 " inotify-files\n"
27599 "\n"
27600 msgstr ""
27601
27602 # type: textblock
27603 #. type: textblock
27604 #: ../fish/guestfish-actions.pod:1651
27605 msgid ""
27606 "This function is a helpful wrapper around L</inotify-read> which just "
27607 "returns a list of pathnames of objects that were touched.  The returned "
27608 "pathnames are sorted and deduplicated."
27609 msgstr ""
27610
27611 # type: =head2
27612 #. type: =head2
27613 #: ../fish/guestfish-actions.pod:1655
27614 msgid "inotify-init"
27615 msgstr ""
27616
27617 # type: verbatim
27618 #. type: verbatim
27619 #: ../fish/guestfish-actions.pod:1657
27620 #, no-wrap
27621 msgid ""
27622 " inotify-init maxevents\n"
27623 "\n"
27624 msgstr ""
27625
27626 # type: textblock
27627 #. type: textblock
27628 #: ../fish/guestfish-actions.pod:1663
27629 msgid ""
27630 "C<maxevents> is the maximum number of events which will be queued up between "
27631 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
27632 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
27633 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
27634 "but records the fact that it threw them away by setting a flag "
27635 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
27636 msgstr ""
27637
27638 # type: textblock
27639 #. type: textblock
27640 #: ../fish/guestfish-actions.pod:1673
27641 msgid ""
27642 "Before any events are generated, you have to add some watches to the "
27643 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
27644 "L</inotify-watch-all>."
27645 msgstr ""
27646
27647 # type: textblock
27648 #. type: textblock
27649 #: ../fish/guestfish-actions.pod:1679
27650 msgid ""
27651 "Queued up events should be read periodically by calling L</inotify-read> (or "
27652 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
27653 "If you don't read the events out often enough then you risk the internal "
27654 "queue overflowing."
27655 msgstr ""
27656
27657 # type: textblock
27658 #. type: textblock
27659 #: ../fish/guestfish-actions.pod:1686
27660 msgid ""
27661 "The handle should be closed after use by calling L</inotify-close>.  This "
27662 "also removes any watches automatically."
27663 msgstr ""
27664
27665 # type: =head2
27666 #. type: =head2
27667 #: ../fish/guestfish-actions.pod:1695
27668 msgid "inotify-read"
27669 msgstr ""
27670
27671 # type: verbatim
27672 #. type: verbatim
27673 #: ../fish/guestfish-actions.pod:1697
27674 #, no-wrap
27675 msgid ""
27676 " inotify-read\n"
27677 "\n"
27678 msgstr ""
27679
27680 # type: =head2
27681 #. type: =head2
27682 #: ../fish/guestfish-actions.pod:1710
27683 msgid "inotify-rm-watch"
27684 msgstr ""
27685
27686 # type: verbatim
27687 #. type: verbatim
27688 #: ../fish/guestfish-actions.pod:1712
27689 #, no-wrap
27690 msgid ""
27691 " inotify-rm-watch wd\n"
27692 "\n"
27693 msgstr ""
27694
27695 # type: textblock
27696 #. type: textblock
27697 #: ../fish/guestfish-actions.pod:1714
27698 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
27699 msgstr ""
27700
27701 # type: =head2
27702 #. type: =head2
27703 #: ../fish/guestfish-actions.pod:1717
27704 msgid "inspect-get-arch"
27705 msgstr ""
27706
27707 # type: verbatim
27708 #. type: verbatim
27709 #: ../fish/guestfish-actions.pod:1719
27710 #, no-wrap
27711 msgid ""
27712 " inspect-get-arch root\n"
27713 "\n"
27714 msgstr ""
27715
27716 # type: textblock
27717 #. type: textblock
27718 #: ../fish/guestfish-actions.pod:1721
27719 msgid ""
27720 "This returns the architecture of the inspected operating system.  The "
27721 "possible return values are listed under L</file-architecture>."
27722 msgstr ""
27723
27724 # type: =head2
27725 #. type: =head2
27726 #: ../fish/guestfish-actions.pod:1730
27727 msgid "inspect-get-distro"
27728 msgstr ""
27729
27730 # type: verbatim
27731 #. type: verbatim
27732 #: ../fish/guestfish-actions.pod:1732
27733 #, no-wrap
27734 msgid ""
27735 " inspect-get-distro root\n"
27736 "\n"
27737 msgstr ""
27738
27739 #. type: =head2
27740 #: ../fish/guestfish-actions.pod:1813
27741 msgid "inspect-get-drive-mappings"
27742 msgstr ""
27743
27744 #. type: verbatim
27745 #: ../fish/guestfish-actions.pod:1815
27746 #, no-wrap
27747 msgid ""
27748 " inspect-get-drive-mappings root\n"
27749 "\n"
27750 msgstr ""
27751
27752 #. type: textblock
27753 #: ../fish/guestfish-actions.pod:1842
27754 msgid ""
27755 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27756 "get-mountpoints>, L</inspect-get-filesystems>."
27757 msgstr ""
27758
27759 # type: =head2
27760 #. type: =head2
27761 #: ../fish/guestfish-actions.pod:1846
27762 msgid "inspect-get-filesystems"
27763 msgstr ""
27764
27765 # type: verbatim
27766 #. type: verbatim
27767 #: ../fish/guestfish-actions.pod:1848
27768 #, no-wrap
27769 msgid ""
27770 " inspect-get-filesystems root\n"
27771 "\n"
27772 msgstr ""
27773
27774 # type: textblock
27775 #. type: textblock
27776 #: ../fish/guestfish-actions.pod:1858
27777 msgid ""
27778 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27779 "get-mountpoints>."
27780 msgstr ""
27781
27782 #. type: =head2
27783 #: ../fish/guestfish-actions.pod:1861
27784 msgid "inspect-get-format"
27785 msgstr ""
27786
27787 #. type: verbatim
27788 #: ../fish/guestfish-actions.pod:1863
27789 #, no-wrap
27790 msgid ""
27791 " inspect-get-format root\n"
27792 "\n"
27793 msgstr ""
27794
27795 # type: =head2
27796 #. type: =head2
27797 #: ../fish/guestfish-actions.pod:1892
27798 msgid "inspect-get-hostname"
27799 msgstr ""
27800
27801 # type: verbatim
27802 #. type: verbatim
27803 #: ../fish/guestfish-actions.pod:1894
27804 #, no-wrap
27805 msgid ""
27806 " inspect-get-hostname root\n"
27807 "\n"
27808 msgstr ""
27809
27810 #. type: =head2
27811 #: ../fish/guestfish-actions.pod:1904
27812 msgid "inspect-get-icon"
27813 msgstr ""
27814
27815 #. type: verbatim
27816 #: ../fish/guestfish-actions.pod:1906
27817 #, no-wrap
27818 msgid ""
27819 " inspect-get-icon root [favicon:..] [highquality:..]\n"
27820 "\n"
27821 msgstr ""
27822
27823 # type: =head2
27824 #. type: =head2
27825 #: ../fish/guestfish-actions.pod:1970
27826 msgid "inspect-get-major-version"
27827 msgstr ""
27828
27829 # type: verbatim
27830 #. type: verbatim
27831 #: ../fish/guestfish-actions.pod:1972
27832 #, no-wrap
27833 msgid ""
27834 " inspect-get-major-version root\n"
27835 "\n"
27836 msgstr ""
27837
27838 # type: =head2
27839 #. type: =head2
27840 #: ../fish/guestfish-actions.pod:1988
27841 msgid "inspect-get-minor-version"
27842 msgstr ""
27843
27844 # type: verbatim
27845 #. type: verbatim
27846 #: ../fish/guestfish-actions.pod:1990
27847 #, no-wrap
27848 msgid ""
27849 " inspect-get-minor-version root\n"
27850 "\n"
27851 msgstr ""
27852
27853 # type: textblock
27854 #. type: textblock
27855 #: ../fish/guestfish-actions.pod:1997
27856 msgid ""
27857 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27858 "get-major-version>."
27859 msgstr ""
27860
27861 # type: =head2
27862 #. type: =head2
27863 #: ../fish/guestfish-actions.pod:2000
27864 msgid "inspect-get-mountpoints"
27865 msgstr ""
27866
27867 # type: verbatim
27868 #. type: verbatim
27869 #: ../fish/guestfish-actions.pod:2002
27870 #, no-wrap
27871 msgid ""
27872 " inspect-get-mountpoints root\n"
27873 "\n"
27874 msgstr ""
27875
27876 #. type: textblock
27877 #: ../fish/guestfish-actions.pod:2021
27878 msgid ""
27879 "For operating systems like Windows which still use drive letters, this call "
27880 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27881 "information about the mapping of drive letters to partitions, see L</inspect-"
27882 "get-drive-mappings>."
27883 msgstr ""
27884
27885 # type: textblock
27886 #. type: textblock
27887 #: ../fish/guestfish-actions.pod:2027
27888 msgid ""
27889 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27890 "get-filesystems>."
27891 msgstr ""
27892
27893 # type: =head2
27894 #. type: =head2
27895 #: ../fish/guestfish-actions.pod:2030
27896 msgid "inspect-get-package-format"
27897 msgstr ""
27898
27899 # type: verbatim
27900 #. type: verbatim
27901 #: ../fish/guestfish-actions.pod:2032
27902 #, no-wrap
27903 msgid ""
27904 " inspect-get-package-format root\n"
27905 "\n"
27906 msgstr ""
27907
27908 # type: textblock
27909 #. type: textblock
27910 #: ../fish/guestfish-actions.pod:2034
27911 msgid ""
27912 "This function and L</inspect-get-package-management> return the package "
27913 "format and package management tool used by the inspected operating system.  "
27914 "For example for Fedora these functions would return C<rpm> (package format) "
27915 "and C<yum> (package management)."
27916 msgstr ""
27917
27918 # type: =head2
27919 #. type: =head2
27920 #: ../fish/guestfish-actions.pod:2049
27921 msgid "inspect-get-package-management"
27922 msgstr ""
27923
27924 # type: verbatim
27925 #. type: verbatim
27926 #: ../fish/guestfish-actions.pod:2051
27927 #, no-wrap
27928 msgid ""
27929 " inspect-get-package-management root\n"
27930 "\n"
27931 msgstr ""
27932
27933 # type: textblock
27934 #. type: textblock
27935 #: ../fish/guestfish-actions.pod:2053
27936 msgid ""
27937 "L</inspect-get-package-format> and this function return the package format "
27938 "and package management tool used by the inspected operating system.  For "
27939 "example for Fedora these functions would return C<rpm> (package format) and "
27940 "C<yum> (package management)."
27941 msgstr ""
27942
27943 # type: =head2
27944 #. type: =head2
27945 #: ../fish/guestfish-actions.pod:2070
27946 msgid "inspect-get-product-name"
27947 msgstr ""
27948
27949 # type: verbatim
27950 #. type: verbatim
27951 #: ../fish/guestfish-actions.pod:2072
27952 #, no-wrap
27953 msgid ""
27954 " inspect-get-product-name root\n"
27955 "\n"
27956 msgstr ""
27957
27958 #. type: =head2
27959 #: ../fish/guestfish-actions.pod:2084
27960 msgid "inspect-get-product-variant"
27961 msgstr ""
27962
27963 #. type: verbatim
27964 #: ../fish/guestfish-actions.pod:2086
27965 #, no-wrap
27966 msgid ""
27967 " inspect-get-product-variant root\n"
27968 "\n"
27969 msgstr ""
27970
27971 #. type: textblock
27972 #: ../fish/guestfish-actions.pod:2107
27973 msgid ""
27974 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
27975 "get-product-name>, L</inspect-get-major-version>."
27976 msgstr ""
27977
27978 # type: =head2
27979 #. type: =head2
27980 #: ../fish/guestfish-actions.pod:2111
27981 msgid "inspect-get-roots"
27982 msgstr ""
27983
27984 # type: verbatim
27985 #. type: verbatim
27986 #: ../fish/guestfish-actions.pod:2113
27987 #, no-wrap
27988 msgid ""
27989 " inspect-get-roots\n"
27990 "\n"
27991 msgstr ""
27992
27993 # type: textblock
27994 #. type: textblock
27995 #: ../fish/guestfish-actions.pod:2115
27996 msgid ""
27997 "This function is a convenient way to get the list of root devices, as "
27998 "returned from a previous call to L</inspect-os>, but without redoing the "
27999 "whole inspection process."
28000 msgstr ""
28001
28002 # type: textblock
28003 #. type: textblock
28004 #: ../fish/guestfish-actions.pod:2119
28005 msgid ""
28006 "This returns an empty list if either no root devices were found or the "
28007 "caller has not called L</inspect-os>."
28008 msgstr ""
28009
28010 # type: =head2
28011 #. type: =head2
28012 #: ../fish/guestfish-actions.pod:2124
28013 msgid "inspect-get-type"
28014 msgstr ""
28015
28016 # type: verbatim
28017 #. type: verbatim
28018 #: ../fish/guestfish-actions.pod:2126
28019 #, no-wrap
28020 msgid ""
28021 " inspect-get-type root\n"
28022 "\n"
28023 msgstr ""
28024
28025 #. type: =head2
28026 #: ../fish/guestfish-actions.pod:2156
28027 msgid "inspect-get-windows-current-control-set"
28028 msgstr ""
28029
28030 #. type: verbatim
28031 #: ../fish/guestfish-actions.pod:2158
28032 #, no-wrap
28033 msgid ""
28034 " inspect-get-windows-current-control-set root\n"
28035 "\n"
28036 msgstr ""
28037
28038 # type: =head2
28039 #. type: =head2
28040 #: ../fish/guestfish-actions.pod:2169
28041 msgid "inspect-get-windows-systemroot"
28042 msgstr ""
28043
28044 # type: verbatim
28045 #. type: verbatim
28046 #: ../fish/guestfish-actions.pod:2171
28047 #, no-wrap
28048 msgid ""
28049 " inspect-get-windows-systemroot root\n"
28050 "\n"
28051 msgstr ""
28052
28053 #. type: =head2
28054 #: ../fish/guestfish-actions.pod:2182
28055 msgid "inspect-is-live"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../fish/guestfish-actions.pod:2184
28060 #, no-wrap
28061 msgid ""
28062 " inspect-is-live root\n"
28063 "\n"
28064 msgstr ""
28065
28066 #. type: textblock
28067 #: ../fish/guestfish-actions.pod:2186
28068 msgid ""
28069 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
28070 "then this returns true if a live image was detected on the disk."
28071 msgstr ""
28072
28073 #. type: =head2
28074 #: ../fish/guestfish-actions.pod:2192
28075 msgid "inspect-is-multipart"
28076 msgstr ""
28077
28078 #. type: verbatim
28079 #: ../fish/guestfish-actions.pod:2194
28080 #, no-wrap
28081 msgid ""
28082 " inspect-is-multipart root\n"
28083 "\n"
28084 msgstr ""
28085
28086 #. type: textblock
28087 #: ../fish/guestfish-actions.pod:2196
28088 msgid ""
28089 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
28090 "then this returns true if the disk is part of a set."
28091 msgstr ""
28092
28093 #. type: =head2
28094 #: ../fish/guestfish-actions.pod:2202
28095 msgid "inspect-is-netinst"
28096 msgstr ""
28097
28098 #. type: verbatim
28099 #: ../fish/guestfish-actions.pod:2204
28100 #, no-wrap
28101 msgid ""
28102 " inspect-is-netinst root\n"
28103 "\n"
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../fish/guestfish-actions.pod:2206
28108 msgid ""
28109 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
28110 "then this returns true if the disk is a network installer, ie. not a self-"
28111 "contained install CD but one which is likely to require network access to "
28112 "complete the install."
28113 msgstr ""
28114
28115 # type: =head2
28116 #. type: =head2
28117 #: ../fish/guestfish-actions.pod:2214
28118 msgid "inspect-list-applications"
28119 msgstr ""
28120
28121 # type: verbatim
28122 #. type: verbatim
28123 #: ../fish/guestfish-actions.pod:2216
28124 #, no-wrap
28125 msgid ""
28126 " inspect-list-applications root\n"
28127 "\n"
28128 msgstr ""
28129
28130 # type: textblock
28131 #. type: textblock
28132 #: ../fish/guestfish-actions.pod:2220
28133 msgid ""
28134 "I<Note:> This call works differently from other parts of the inspection "
28135 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
28136 "then mount up the disks, before calling this.  Listing applications is a "
28137 "significantly more difficult operation which requires access to the full "
28138 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
28139 "are just returning data cached in the libguestfs handle, this call actually "
28140 "reads parts of the mounted filesystems during the call."
28141 msgstr ""
28142
28143 # type: =head2
28144 #. type: =head2
28145 #: ../fish/guestfish-actions.pod:2310
28146 msgid "inspect-os"
28147 msgstr ""
28148
28149 # type: verbatim
28150 #. type: verbatim
28151 #: ../fish/guestfish-actions.pod:2312
28152 #, no-wrap
28153 msgid ""
28154 " inspect-os\n"
28155 "\n"
28156 msgstr ""
28157
28158 # type: textblock
28159 #. type: textblock
28160 #: ../fish/guestfish-actions.pod:2327
28161 msgid ""
28162 "You can pass the root string(s) returned to other L</inspect-get-*> "
28163 "functions in order to query further information about each operating system, "
28164 "such as the name and version."
28165 msgstr ""
28166
28167 # type: textblock
28168 #. type: textblock
28169 #: ../fish/guestfish-actions.pod:2332
28170 msgid ""
28171 "This function uses other libguestfs features such as L</mount-ro> and L</"
28172 "umount-all> in order to mount and unmount filesystems and look at the "
28173 "contents.  This should be called with no disks currently mounted.  The "
28174 "function may also use Augeas, so any existing Augeas handle will be closed."
28175 msgstr ""
28176
28177 # type: textblock
28178 #. type: textblock
28179 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542
28180 #: ../fish/guestfish-actions.pod:2601
28181 msgid "See also L</list-filesystems>."
28182 msgstr ""
28183
28184 # type: =head2
28185 #. type: =head2
28186 #: ../fish/guestfish-actions.pod:2346
28187 msgid "is-blockdev"
28188 msgstr ""
28189
28190 # type: verbatim
28191 #. type: verbatim
28192 #: ../fish/guestfish-actions.pod:2348
28193 #, no-wrap
28194 msgid ""
28195 " is-blockdev path\n"
28196 "\n"
28197 msgstr ""
28198
28199 # type: textblock
28200 #. type: textblock
28201 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371
28202 #: ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399
28203 #: ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443
28204 #: ../fish/guestfish-actions.pod:2452
28205 msgid "See also L</stat>."
28206 msgstr ""
28207
28208 # type: =head2
28209 #. type: =head2
28210 #: ../fish/guestfish-actions.pod:2355
28211 msgid "is-busy"
28212 msgstr ""
28213
28214 # type: verbatim
28215 #. type: verbatim
28216 #: ../fish/guestfish-actions.pod:2357
28217 #, no-wrap
28218 msgid ""
28219 " is-busy\n"
28220 "\n"
28221 msgstr ""
28222
28223 # type: =head2
28224 #. type: =head2
28225 #: ../fish/guestfish-actions.pod:2364
28226 msgid "is-chardev"
28227 msgstr ""
28228
28229 # type: verbatim
28230 #. type: verbatim
28231 #: ../fish/guestfish-actions.pod:2366
28232 #, no-wrap
28233 msgid ""
28234 " is-chardev path\n"
28235 "\n"
28236 msgstr ""
28237
28238 # type: =head2
28239 #. type: =head2
28240 #: ../fish/guestfish-actions.pod:2373
28241 msgid "is-config"
28242 msgstr ""
28243
28244 # type: verbatim
28245 #. type: verbatim
28246 #: ../fish/guestfish-actions.pod:2375
28247 #, no-wrap
28248 msgid ""
28249 " is-config\n"
28250 "\n"
28251 msgstr ""
28252
28253 # type: =head2
28254 #. type: =head2
28255 #: ../fish/guestfish-actions.pod:2382
28256 msgid "is-dir"
28257 msgstr ""
28258
28259 # type: verbatim
28260 #. type: verbatim
28261 #: ../fish/guestfish-actions.pod:2384
28262 #, no-wrap
28263 msgid ""
28264 " is-dir path\n"
28265 "\n"
28266 msgstr ""
28267
28268 # type: =head2
28269 #. type: =head2
28270 #: ../fish/guestfish-actions.pod:2392
28271 msgid "is-fifo"
28272 msgstr ""
28273
28274 # type: verbatim
28275 #. type: verbatim
28276 #: ../fish/guestfish-actions.pod:2394
28277 #, no-wrap
28278 msgid ""
28279 " is-fifo path\n"
28280 "\n"
28281 msgstr ""
28282
28283 # type: =head2
28284 #. type: =head2
28285 #: ../fish/guestfish-actions.pod:2401
28286 msgid "is-file"
28287 msgstr ""
28288
28289 # type: verbatim
28290 #. type: verbatim
28291 #: ../fish/guestfish-actions.pod:2403
28292 #, no-wrap
28293 msgid ""
28294 " is-file path\n"
28295 "\n"
28296 msgstr ""
28297
28298 # type: =head2
28299 #. type: =head2
28300 #: ../fish/guestfish-actions.pod:2411
28301 msgid "is-launching"
28302 msgstr ""
28303
28304 # type: verbatim
28305 #. type: verbatim
28306 #: ../fish/guestfish-actions.pod:2413
28307 #, no-wrap
28308 msgid ""
28309 " is-launching\n"
28310 "\n"
28311 msgstr ""
28312
28313 # type: =head2
28314 #. type: =head2
28315 #: ../fish/guestfish-actions.pod:2420
28316 msgid "is-lv"
28317 msgstr ""
28318
28319 # type: verbatim
28320 #. type: verbatim
28321 #: ../fish/guestfish-actions.pod:2422
28322 #, no-wrap
28323 msgid ""
28324 " is-lv device\n"
28325 "\n"
28326 msgstr ""
28327
28328 # type: =head2
28329 #. type: =head2
28330 #: ../fish/guestfish-actions.pod:2427
28331 msgid "is-ready"
28332 msgstr ""
28333
28334 # type: verbatim
28335 #. type: verbatim
28336 #: ../fish/guestfish-actions.pod:2429
28337 #, no-wrap
28338 msgid ""
28339 " is-ready\n"
28340 "\n"
28341 msgstr ""
28342
28343 # type: =head2
28344 #. type: =head2
28345 #: ../fish/guestfish-actions.pod:2436
28346 msgid "is-socket"
28347 msgstr ""
28348
28349 # type: verbatim
28350 #. type: verbatim
28351 #: ../fish/guestfish-actions.pod:2438
28352 #, no-wrap
28353 msgid ""
28354 " is-socket path\n"
28355 "\n"
28356 msgstr ""
28357
28358 # type: =head2
28359 #. type: =head2
28360 #: ../fish/guestfish-actions.pod:2445
28361 msgid "is-symlink"
28362 msgstr ""
28363
28364 # type: verbatim
28365 #. type: verbatim
28366 #: ../fish/guestfish-actions.pod:2447
28367 #, no-wrap
28368 msgid ""
28369 " is-symlink path\n"
28370 "\n"
28371 msgstr ""
28372
28373 #. type: =head2
28374 #: ../fish/guestfish-actions.pod:2454
28375 msgid "is-zero"
28376 msgstr ""
28377
28378 #. type: verbatim
28379 #: ../fish/guestfish-actions.pod:2456
28380 #, no-wrap
28381 msgid ""
28382 " is-zero path\n"
28383 "\n"
28384 msgstr ""
28385
28386 #. type: =head2
28387 #: ../fish/guestfish-actions.pod:2461
28388 msgid "is-zero-device"
28389 msgstr ""
28390
28391 #. type: verbatim
28392 #: ../fish/guestfish-actions.pod:2463
28393 #, no-wrap
28394 msgid ""
28395 " is-zero-device device\n"
28396 "\n"
28397 msgstr ""
28398
28399 # type: =head2
28400 #. type: =head2
28401 #: ../fish/guestfish-actions.pod:2469
28402 msgid "kill-subprocess"
28403 msgstr ""
28404
28405 # type: verbatim
28406 #. type: verbatim
28407 #: ../fish/guestfish-actions.pod:2471
28408 #, no-wrap
28409 msgid ""
28410 " kill-subprocess\n"
28411 "\n"
28412 msgstr ""
28413
28414 # type: =head2
28415 #. type: =head2
28416 #: ../fish/guestfish-actions.pod:2475
28417 msgid "launch"
28418 msgstr ""
28419
28420 # type: =head2
28421 #. type: =head2
28422 #: ../fish/guestfish-actions.pod:2477
28423 msgid "run"
28424 msgstr ""
28425
28426 # type: verbatim
28427 #. type: verbatim
28428 #: ../fish/guestfish-actions.pod:2479
28429 #, no-wrap
28430 msgid ""
28431 " launch\n"
28432 "\n"
28433 msgstr ""
28434
28435 # type: =head2
28436 #. type: =head2
28437 #: ../fish/guestfish-actions.pod:2487
28438 msgid "lchown"
28439 msgstr ""
28440
28441 # type: verbatim
28442 #. type: verbatim
28443 #: ../fish/guestfish-actions.pod:2489
28444 #, no-wrap
28445 msgid ""
28446 " lchown owner group path\n"
28447 "\n"
28448 msgstr ""
28449
28450 # type: textblock
28451 #. type: textblock
28452 #: ../fish/guestfish-actions.pod:2491
28453 msgid ""
28454 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
28455 "chown> but if C<path> is a symlink then the link itself is changed, not the "
28456 "target."
28457 msgstr ""
28458
28459 # type: =head2
28460 #. type: =head2
28461 #: ../fish/guestfish-actions.pod:2499
28462 msgid "lgetxattr"
28463 msgstr ""
28464
28465 # type: verbatim
28466 #. type: verbatim
28467 #: ../fish/guestfish-actions.pod:2501
28468 #, no-wrap
28469 msgid ""
28470 " lgetxattr path name\n"
28471 "\n"
28472 msgstr ""
28473
28474 # type: textblock
28475 #. type: textblock
28476 #: ../fish/guestfish-actions.pod:2517
28477 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
28478 msgstr ""
28479
28480 # type: =head2
28481 #. type: =head2
28482 #: ../fish/guestfish-actions.pod:2519
28483 msgid "lgetxattrs"
28484 msgstr ""
28485
28486 # type: verbatim
28487 #. type: verbatim
28488 #: ../fish/guestfish-actions.pod:2521
28489 #, no-wrap
28490 msgid ""
28491 " lgetxattrs path\n"
28492 "\n"
28493 msgstr ""
28494
28495 # type: textblock
28496 #. type: textblock
28497 #: ../fish/guestfish-actions.pod:2523
28498 msgid ""
28499 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
28500 "it returns the extended attributes of the link itself."
28501 msgstr ""
28502
28503 #. type: =head2
28504 #: ../fish/guestfish-actions.pod:2527
28505 msgid "list-9p"
28506 msgstr ""
28507
28508 #. type: verbatim
28509 #: ../fish/guestfish-actions.pod:2529
28510 #, no-wrap
28511 msgid ""
28512 " list-9p\n"
28513 "\n"
28514 msgstr ""
28515
28516 # type: =head2
28517 #. type: =head2
28518 #: ../fish/guestfish-actions.pod:2534
28519 msgid "list-devices"
28520 msgstr ""
28521
28522 # type: verbatim
28523 #. type: verbatim
28524 #: ../fish/guestfish-actions.pod:2536
28525 #, no-wrap
28526 msgid ""
28527 " list-devices\n"
28528 "\n"
28529 msgstr ""
28530
28531 #. type: =head2
28532 #: ../fish/guestfish-actions.pod:2544
28533 msgid "list-dm-devices"
28534 msgstr ""
28535
28536 #. type: verbatim
28537 #: ../fish/guestfish-actions.pod:2546
28538 #, no-wrap
28539 msgid ""
28540 " list-dm-devices\n"
28541 "\n"
28542 msgstr ""
28543
28544 #. type: textblock
28545 #: ../fish/guestfish-actions.pod:2550
28546 msgid ""
28547 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28548 "previous call to L</luks-open>."
28549 msgstr ""
28550
28551 #. type: textblock
28552 #: ../fish/guestfish-actions.pod:2553
28553 msgid ""
28554 "Device mapper devices which correspond to logical volumes are I<not> "
28555 "returned in this list.  Call L</lvs> if you want to list logical volumes."
28556 msgstr ""
28557
28558 # type: =head2
28559 #. type: =head2
28560 #: ../fish/guestfish-actions.pod:2557
28561 msgid "list-filesystems"
28562 msgstr ""
28563
28564 # type: verbatim
28565 #. type: verbatim
28566 #: ../fish/guestfish-actions.pod:2559
28567 #, no-wrap
28568 msgid ""
28569 " list-filesystems\n"
28570 "\n"
28571 msgstr ""
28572
28573 # type: textblock
28574 #. type: textblock
28575 #: ../fish/guestfish-actions.pod:2578
28576 msgid ""
28577 "This command runs other libguestfs commands, which might include L</mount> "
28578 "and L</umount>, and therefore you should use this soon after launch and only "
28579 "when nothing is mounted."
28580 msgstr ""
28581
28582 # type: textblock
28583 #. type: textblock
28584 #: ../fish/guestfish-actions.pod:2582
28585 msgid ""
28586 "Not all of the filesystems returned will be mountable.  In particular, swap "
28587 "partitions are returned in the list.  Also this command does not check that "
28588 "each filesystem found is valid and mountable, and some filesystems might be "
28589 "mountable but require special options.  Filesystems may not all belong to a "
28590 "single logical operating system (use L</inspect-os> to look for OSes)."
28591 msgstr ""
28592
28593 # type: =head2
28594 #. type: =head2
28595 #: ../fish/guestfish-actions.pod:2590
28596 msgid "list-partitions"
28597 msgstr ""
28598
28599 # type: verbatim
28600 #. type: verbatim
28601 #: ../fish/guestfish-actions.pod:2592
28602 #, no-wrap
28603 msgid ""
28604 " list-partitions\n"
28605 "\n"
28606 msgstr ""
28607
28608 # type: textblock
28609 #. type: textblock
28610 #: ../fish/guestfish-actions.pod:2598
28611 msgid ""
28612 "This does not return logical volumes.  For that you will need to call L</"
28613 "lvs>."
28614 msgstr ""
28615
28616 # type: =head2
28617 #. type: =head2
28618 #: ../fish/guestfish-actions.pod:2603
28619 msgid "ll"
28620 msgstr ""
28621
28622 # type: verbatim
28623 #. type: verbatim
28624 #: ../fish/guestfish-actions.pod:2605
28625 #, no-wrap
28626 msgid ""
28627 " ll directory\n"
28628 "\n"
28629 msgstr ""
28630
28631 # type: =head2
28632 #. type: =head2
28633 #: ../fish/guestfish-actions.pod:2613
28634 msgid "ln"
28635 msgstr ""
28636
28637 # type: verbatim
28638 #. type: verbatim
28639 #: ../fish/guestfish-actions.pod:2615
28640 #, no-wrap
28641 msgid ""
28642 " ln target linkname\n"
28643 "\n"
28644 msgstr ""
28645
28646 # type: =head2
28647 #. type: =head2
28648 #: ../fish/guestfish-actions.pod:2619
28649 msgid "ln-f"
28650 msgstr ""
28651
28652 # type: verbatim
28653 #. type: verbatim
28654 #: ../fish/guestfish-actions.pod:2621
28655 #, no-wrap
28656 msgid ""
28657 " ln-f target linkname\n"
28658 "\n"
28659 msgstr ""
28660
28661 # type: =head2
28662 #. type: =head2
28663 #: ../fish/guestfish-actions.pod:2626
28664 msgid "ln-s"
28665 msgstr ""
28666
28667 # type: verbatim
28668 #. type: verbatim
28669 #: ../fish/guestfish-actions.pod:2628
28670 #, no-wrap
28671 msgid ""
28672 " ln-s target linkname\n"
28673 "\n"
28674 msgstr ""
28675
28676 # type: =head2
28677 #. type: =head2
28678 #: ../fish/guestfish-actions.pod:2632
28679 msgid "ln-sf"
28680 msgstr ""
28681
28682 # type: verbatim
28683 #. type: verbatim
28684 #: ../fish/guestfish-actions.pod:2634
28685 #, no-wrap
28686 msgid ""
28687 " ln-sf target linkname\n"
28688 "\n"
28689 msgstr ""
28690
28691 # type: =head2
28692 #. type: =head2
28693 #: ../fish/guestfish-actions.pod:2639
28694 msgid "lremovexattr"
28695 msgstr ""
28696
28697 # type: verbatim
28698 #. type: verbatim
28699 #: ../fish/guestfish-actions.pod:2641
28700 #, no-wrap
28701 msgid ""
28702 " lremovexattr xattr path\n"
28703 "\n"
28704 msgstr ""
28705
28706 # type: textblock
28707 #. type: textblock
28708 #: ../fish/guestfish-actions.pod:2643
28709 msgid ""
28710 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
28711 "it removes an extended attribute of the link itself."
28712 msgstr ""
28713
28714 # type: =head2
28715 #. type: =head2
28716 #: ../fish/guestfish-actions.pod:2647
28717 msgid "ls"
28718 msgstr ""
28719
28720 # type: verbatim
28721 #. type: verbatim
28722 #: ../fish/guestfish-actions.pod:2649
28723 #, no-wrap
28724 msgid ""
28725 " ls directory\n"
28726 "\n"
28727 msgstr ""
28728
28729 # type: textblock
28730 #. type: textblock
28731 #: ../fish/guestfish-actions.pod:2655
28732 msgid ""
28733 "This command is mostly useful for interactive sessions.  Programs should "
28734 "probably use L</readdir> instead."
28735 msgstr ""
28736
28737 # type: =head2
28738 #. type: =head2
28739 #: ../fish/guestfish-actions.pod:2658
28740 msgid "lsetxattr"
28741 msgstr ""
28742
28743 # type: verbatim
28744 #. type: verbatim
28745 #: ../fish/guestfish-actions.pod:2660
28746 #, no-wrap
28747 msgid ""
28748 " lsetxattr xattr val vallen path\n"
28749 "\n"
28750 msgstr ""
28751
28752 # type: textblock
28753 #. type: textblock
28754 #: ../fish/guestfish-actions.pod:2662
28755 msgid ""
28756 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
28757 "sets an extended attribute of the link itself."
28758 msgstr ""
28759
28760 # type: =head2
28761 #. type: =head2
28762 #: ../fish/guestfish-actions.pod:2666
28763 msgid "lstat"
28764 msgstr ""
28765
28766 # type: verbatim
28767 #. type: verbatim
28768 #: ../fish/guestfish-actions.pod:2668
28769 #, no-wrap
28770 msgid ""
28771 " lstat path\n"
28772 "\n"
28773 msgstr ""
28774
28775 # type: textblock
28776 #. type: textblock
28777 #: ../fish/guestfish-actions.pod:2672
28778 msgid ""
28779 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
28780 "the link is stat-ed, not the file it refers to."
28781 msgstr ""
28782
28783 # type: =head2
28784 #. type: =head2
28785 #: ../fish/guestfish-actions.pod:2678
28786 msgid "lstatlist"
28787 msgstr ""
28788
28789 # type: verbatim
28790 #. type: verbatim
28791 #: ../fish/guestfish-actions.pod:2680
28792 #, no-wrap
28793 msgid ""
28794 " lstatlist path 'names ...'\n"
28795 "\n"
28796 msgstr ""
28797
28798 # type: textblock
28799 #. type: textblock
28800 #: ../fish/guestfish-actions.pod:2682
28801 msgid ""
28802 "This call allows you to perform the L</lstat> operation on multiple files, "
28803 "where all files are in the directory C<path>.  C<names> is the list of files "
28804 "from this directory."
28805 msgstr ""
28806
28807 # type: textblock
28808 #. type: textblock
28809 #: ../fish/guestfish-actions.pod:2691
28810 msgid ""
28811 "This call is intended for programs that want to efficiently list a directory "
28812 "contents without making many round-trips.  See also L</lxattrlist> for a "
28813 "similarly efficient call for getting extended attributes.  Very long "
28814 "directory listings might cause the protocol message size to be exceeded, "
28815 "causing this call to fail.  The caller must split up such requests into "
28816 "smaller groups of names."
28817 msgstr ""
28818
28819 # type: =head2
28820 #. type: =head2
28821 #: ../fish/guestfish-actions.pod:2699
28822 msgid "luks-add-key"
28823 msgstr ""
28824
28825 # type: verbatim
28826 #. type: verbatim
28827 #: ../fish/guestfish-actions.pod:2701
28828 #, no-wrap
28829 msgid ""
28830 " luks-add-key device keyslot\n"
28831 "\n"
28832 msgstr ""
28833
28834 # type: textblock
28835 #. type: textblock
28836 #: ../fish/guestfish-actions.pod:2708
28837 msgid ""
28838 "Note that if C<keyslot> already contains a key, then this command will "
28839 "fail.  You have to use L</luks-kill-slot> first to remove that key."
28840 msgstr ""
28841
28842 # type: textblock
28843 #. type: textblock
28844 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734
28845 #: ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761
28846 #: ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
28847 msgid ""
28848 "This command has one or more key or passphrase parameters.  Guestfish will "
28849 "prompt for these separately."
28850 msgstr ""
28851
28852 # type: =head2
28853 #. type: =head2
28854 #: ../fish/guestfish-actions.pod:2715
28855 msgid "luks-close"
28856 msgstr ""
28857
28858 # type: verbatim
28859 #. type: verbatim
28860 #: ../fish/guestfish-actions.pod:2717
28861 #, no-wrap
28862 msgid ""
28863 " luks-close device\n"
28864 "\n"
28865 msgstr ""
28866
28867 # type: textblock
28868 #. type: textblock
28869 #: ../fish/guestfish-actions.pod:2719
28870 msgid ""
28871 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
28872 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
28873 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
28874 "block device."
28875 msgstr ""
28876
28877 # type: =head2
28878 #. type: =head2
28879 #: ../fish/guestfish-actions.pod:2725
28880 msgid "luks-format"
28881 msgstr ""
28882
28883 # type: verbatim
28884 #. type: verbatim
28885 #: ../fish/guestfish-actions.pod:2727
28886 #, no-wrap
28887 msgid ""
28888 " luks-format device keyslot\n"
28889 "\n"
28890 msgstr ""
28891
28892 # type: =head2
28893 #. type: =head2
28894 #: ../fish/guestfish-actions.pod:2740
28895 msgid "luks-format-cipher"
28896 msgstr ""
28897
28898 # type: verbatim
28899 #. type: verbatim
28900 #: ../fish/guestfish-actions.pod:2742
28901 #, no-wrap
28902 msgid ""
28903 " luks-format-cipher device keyslot cipher\n"
28904 "\n"
28905 msgstr ""
28906
28907 # type: textblock
28908 #. type: textblock
28909 #: ../fish/guestfish-actions.pod:2744
28910 msgid ""
28911 "This command is the same as L</luks-format> but it also allows you to set "
28912 "the C<cipher> used."
28913 msgstr ""
28914
28915 # type: =head2
28916 #. type: =head2
28917 #: ../fish/guestfish-actions.pod:2753
28918 msgid "luks-kill-slot"
28919 msgstr ""
28920
28921 # type: verbatim
28922 #. type: verbatim
28923 #: ../fish/guestfish-actions.pod:2755
28924 #, no-wrap
28925 msgid ""
28926 " luks-kill-slot device keyslot\n"
28927 "\n"
28928 msgstr ""
28929
28930 # type: =head2
28931 #. type: =head2
28932 #: ../fish/guestfish-actions.pod:2764
28933 msgid "luks-open"
28934 msgstr ""
28935
28936 # type: verbatim
28937 #. type: verbatim
28938 #: ../fish/guestfish-actions.pod:2766
28939 #, no-wrap
28940 msgid ""
28941 " luks-open device mapname\n"
28942 "\n"
28943 msgstr ""
28944
28945 # type: textblock
28946 #. type: textblock
28947 #: ../fish/guestfish-actions.pod:2780
28948 msgid ""
28949 "If this block device contains LVM volume groups, then calling L</vgscan> "
28950 "followed by L</vg-activate-all> will make them visible."
28951 msgstr ""
28952
28953 #. type: textblock
28954 #: ../fish/guestfish-actions.pod:2784
28955 msgid "Use L</list-dm-devices> to list all device mapper devices."
28956 msgstr ""
28957
28958 # type: =head2
28959 #. type: =head2
28960 #: ../fish/guestfish-actions.pod:2790
28961 msgid "luks-open-ro"
28962 msgstr ""
28963
28964 # type: verbatim
28965 #. type: verbatim
28966 #: ../fish/guestfish-actions.pod:2792
28967 #, no-wrap
28968 msgid ""
28969 " luks-open-ro device mapname\n"
28970 "\n"
28971 msgstr ""
28972
28973 # type: textblock
28974 #. type: textblock
28975 #: ../fish/guestfish-actions.pod:2794
28976 msgid ""
28977 "This is the same as L</luks-open> except that a read-only mapping is created."
28978 msgstr ""
28979
28980 # type: =head2
28981 #. type: =head2
28982 #: ../fish/guestfish-actions.pod:2800
28983 msgid "lvcreate"
28984 msgstr ""
28985
28986 # type: verbatim
28987 #. type: verbatim
28988 #: ../fish/guestfish-actions.pod:2802
28989 #, no-wrap
28990 msgid ""
28991 " lvcreate logvol volgroup mbytes\n"
28992 "\n"
28993 msgstr ""
28994
28995 # type: =head2
28996 #. type: =head2
28997 #: ../fish/guestfish-actions.pod:2807
28998 msgid "lvm-canonical-lv-name"
28999 msgstr ""
29000
29001 # type: verbatim
29002 #. type: verbatim
29003 #: ../fish/guestfish-actions.pod:2809
29004 #, no-wrap
29005 msgid ""
29006 " lvm-canonical-lv-name lvname\n"
29007 "\n"
29008 msgstr ""
29009
29010 # type: textblock
29011 #. type: textblock
29012 #: ../fish/guestfish-actions.pod:2818
29013 msgid "See also L</is-lv>."
29014 msgstr ""
29015
29016 # type: =head2
29017 #. type: =head2
29018 #: ../fish/guestfish-actions.pod:2820
29019 msgid "lvm-clear-filter"
29020 msgstr ""
29021
29022 # type: verbatim
29023 #. type: verbatim
29024 #: ../fish/guestfish-actions.pod:2822
29025 #, no-wrap
29026 msgid ""
29027 " lvm-clear-filter\n"
29028 "\n"
29029 msgstr ""
29030
29031 # type: textblock
29032 #. type: textblock
29033 #: ../fish/guestfish-actions.pod:2824
29034 msgid ""
29035 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
29036 "block device."
29037 msgstr ""
29038
29039 # type: =head2
29040 #. type: =head2
29041 #: ../fish/guestfish-actions.pod:2830
29042 msgid "lvm-remove-all"
29043 msgstr ""
29044
29045 # type: verbatim
29046 #. type: verbatim
29047 #: ../fish/guestfish-actions.pod:2832
29048 #, no-wrap
29049 msgid ""
29050 " lvm-remove-all\n"
29051 "\n"
29052 msgstr ""
29053
29054 # type: =head2
29055 #. type: =head2
29056 #: ../fish/guestfish-actions.pod:2840
29057 msgid "lvm-set-filter"
29058 msgstr ""
29059
29060 # type: verbatim
29061 #. type: verbatim
29062 #: ../fish/guestfish-actions.pod:2842
29063 #, no-wrap
29064 msgid ""
29065 " lvm-set-filter 'devices ...'\n"
29066 "\n"
29067 msgstr ""
29068
29069 # type: =head2
29070 #. type: =head2
29071 #: ../fish/guestfish-actions.pod:2867
29072 msgid "lvremove"
29073 msgstr ""
29074
29075 # type: verbatim
29076 #. type: verbatim
29077 #: ../fish/guestfish-actions.pod:2869
29078 #, no-wrap
29079 msgid ""
29080 " lvremove device\n"
29081 "\n"
29082 msgstr ""
29083
29084 # type: =head2
29085 #. type: =head2
29086 #: ../fish/guestfish-actions.pod:2877
29087 msgid "lvrename"
29088 msgstr ""
29089
29090 # type: verbatim
29091 #. type: verbatim
29092 #: ../fish/guestfish-actions.pod:2879
29093 #, no-wrap
29094 msgid ""
29095 " lvrename logvol newlogvol\n"
29096 "\n"
29097 msgstr ""
29098
29099 # type: =head2
29100 #. type: =head2
29101 #: ../fish/guestfish-actions.pod:2883
29102 msgid "lvresize"
29103 msgstr ""
29104
29105 # type: verbatim
29106 #. type: verbatim
29107 #: ../fish/guestfish-actions.pod:2885
29108 #, no-wrap
29109 msgid ""
29110 " lvresize device mbytes\n"
29111 "\n"
29112 msgstr ""
29113
29114 # type: =head2
29115 #. type: =head2
29116 #: ../fish/guestfish-actions.pod:2891
29117 msgid "lvresize-free"
29118 msgstr ""
29119
29120 # type: verbatim
29121 #. type: verbatim
29122 #: ../fish/guestfish-actions.pod:2893
29123 #, no-wrap
29124 msgid ""
29125 " lvresize-free lv percent\n"
29126 "\n"
29127 msgstr ""
29128
29129 # type: =head2
29130 #. type: =head2
29131 #: ../fish/guestfish-actions.pod:2901
29132 msgid "lvs"
29133 msgstr ""
29134
29135 # type: verbatim
29136 #. type: verbatim
29137 #: ../fish/guestfish-actions.pod:2903
29138 #, no-wrap
29139 msgid ""
29140 " lvs\n"
29141 "\n"
29142 msgstr ""
29143
29144 # type: textblock
29145 #. type: textblock
29146 #: ../fish/guestfish-actions.pod:2911
29147 msgid "See also L</lvs-full>, L</list-filesystems>."
29148 msgstr ""
29149
29150 # type: =head2
29151 #. type: =head2
29152 #: ../fish/guestfish-actions.pod:2913
29153 msgid "lvs-full"
29154 msgstr ""
29155
29156 # type: verbatim
29157 #. type: verbatim
29158 #: ../fish/guestfish-actions.pod:2915
29159 #, no-wrap
29160 msgid ""
29161 " lvs-full\n"
29162 "\n"
29163 msgstr ""
29164
29165 # type: =head2
29166 #. type: =head2
29167 #: ../fish/guestfish-actions.pod:2920
29168 msgid "lvuuid"
29169 msgstr ""
29170
29171 # type: verbatim
29172 #. type: verbatim
29173 #: ../fish/guestfish-actions.pod:2922
29174 #, no-wrap
29175 msgid ""
29176 " lvuuid device\n"
29177 "\n"
29178 msgstr ""
29179
29180 # type: =head2
29181 #. type: =head2
29182 #: ../fish/guestfish-actions.pod:2926
29183 msgid "lxattrlist"
29184 msgstr ""
29185
29186 # type: verbatim
29187 #. type: verbatim
29188 #: ../fish/guestfish-actions.pod:2928
29189 #, no-wrap
29190 msgid ""
29191 " lxattrlist path 'names ...'\n"
29192 "\n"
29193 msgstr ""
29194
29195 # type: textblock
29196 #. type: textblock
29197 #: ../fish/guestfish-actions.pod:2944
29198 msgid ""
29199 "This call is intended for programs that want to efficiently list a directory "
29200 "contents without making many round-trips.  See also L</lstatlist> for a "
29201 "similarly efficient call for getting standard stats.  Very long directory "
29202 "listings might cause the protocol message size to be exceeded, causing this "
29203 "call to fail.  The caller must split up such requests into smaller groups of "
29204 "names."
29205 msgstr ""
29206
29207 # type: =head2
29208 #. type: =head2
29209 #: ../fish/guestfish-actions.pod:2952
29210 msgid "mkdir"
29211 msgstr ""
29212
29213 # type: verbatim
29214 #. type: verbatim
29215 #: ../fish/guestfish-actions.pod:2954
29216 #, no-wrap
29217 msgid ""
29218 " mkdir path\n"
29219 "\n"
29220 msgstr ""
29221
29222 # type: =head2
29223 #. type: =head2
29224 #: ../fish/guestfish-actions.pod:2958
29225 msgid "mkdir-mode"
29226 msgstr ""
29227
29228 # type: verbatim
29229 #. type: verbatim
29230 #: ../fish/guestfish-actions.pod:2960
29231 #, no-wrap
29232 msgid ""
29233 " mkdir-mode path mode\n"
29234 "\n"
29235 msgstr ""
29236
29237 # type: textblock
29238 #. type: textblock
29239 #: ../fish/guestfish-actions.pod:2969
29240 msgid "See also L</mkdir>, L</umask>"
29241 msgstr ""
29242
29243 # type: =head2
29244 #. type: =head2
29245 #: ../fish/guestfish-actions.pod:2971
29246 msgid "mkdir-p"
29247 msgstr ""
29248
29249 # type: verbatim
29250 #. type: verbatim
29251 #: ../fish/guestfish-actions.pod:2973
29252 #, no-wrap
29253 msgid ""
29254 " mkdir-p path\n"
29255 "\n"
29256 msgstr ""
29257
29258 # type: =head2
29259 #. type: =head2
29260 #: ../fish/guestfish-actions.pod:2978
29261 msgid "mkdtemp"
29262 msgstr ""
29263
29264 # type: verbatim
29265 #. type: verbatim
29266 #: ../fish/guestfish-actions.pod:2980
29267 #, no-wrap
29268 msgid ""
29269 " mkdtemp template\n"
29270 "\n"
29271 msgstr ""
29272
29273 # type: =head2
29274 #. type: =head2
29275 #: ../fish/guestfish-actions.pod:3001
29276 msgid "mke2fs-J"
29277 msgstr ""
29278
29279 # type: verbatim
29280 #. type: verbatim
29281 #: ../fish/guestfish-actions.pod:3003
29282 #, no-wrap
29283 msgid ""
29284 " mke2fs-J fstype blocksize device journal\n"
29285 "\n"
29286 msgstr ""
29287
29288 # type: textblock
29289 #. type: textblock
29290 #: ../fish/guestfish-actions.pod:3011
29291 msgid "See also L</mke2journal>."
29292 msgstr ""
29293
29294 # type: =head2
29295 #. type: =head2
29296 #: ../fish/guestfish-actions.pod:3013
29297 msgid "mke2fs-JL"
29298 msgstr ""
29299
29300 # type: verbatim
29301 #. type: verbatim
29302 #: ../fish/guestfish-actions.pod:3015
29303 #, no-wrap
29304 msgid ""
29305 " mke2fs-JL fstype blocksize device label\n"
29306 "\n"
29307 msgstr ""
29308
29309 # type: textblock
29310 #. type: textblock
29311 #: ../fish/guestfish-actions.pod:3020
29312 msgid "See also L</mke2journal-L>."
29313 msgstr ""
29314
29315 # type: =head2
29316 #. type: =head2
29317 #: ../fish/guestfish-actions.pod:3022
29318 msgid "mke2fs-JU"
29319 msgstr ""
29320
29321 # type: verbatim
29322 #. type: verbatim
29323 #: ../fish/guestfish-actions.pod:3024
29324 #, no-wrap
29325 msgid ""
29326 " mke2fs-JU fstype blocksize device uuid\n"
29327 "\n"
29328 msgstr ""
29329
29330 # type: textblock
29331 #. type: textblock
29332 #: ../fish/guestfish-actions.pod:3029
29333 msgid "See also L</mke2journal-U>."
29334 msgstr ""
29335
29336 # type: =head2
29337 #. type: =head2
29338 #: ../fish/guestfish-actions.pod:3031
29339 msgid "mke2journal"
29340 msgstr ""
29341
29342 # type: verbatim
29343 #. type: verbatim
29344 #: ../fish/guestfish-actions.pod:3033
29345 #, no-wrap
29346 msgid ""
29347 " mke2journal blocksize device\n"
29348 "\n"
29349 msgstr ""
29350
29351 # type: =head2
29352 #. type: =head2
29353 #: ../fish/guestfish-actions.pod:3040
29354 msgid "mke2journal-L"
29355 msgstr ""
29356
29357 # type: verbatim
29358 #. type: verbatim
29359 #: ../fish/guestfish-actions.pod:3042
29360 #, no-wrap
29361 msgid ""
29362 " mke2journal-L blocksize label device\n"
29363 "\n"
29364 msgstr ""
29365
29366 # type: =head2
29367 #. type: =head2
29368 #: ../fish/guestfish-actions.pod:3046
29369 msgid "mke2journal-U"
29370 msgstr ""
29371
29372 # type: verbatim
29373 #. type: verbatim
29374 #: ../fish/guestfish-actions.pod:3048
29375 #, no-wrap
29376 msgid ""
29377 " mke2journal-U blocksize uuid device\n"
29378 "\n"
29379 msgstr ""
29380
29381 # type: =head2
29382 #. type: =head2
29383 #: ../fish/guestfish-actions.pod:3052
29384 msgid "mkfifo"
29385 msgstr ""
29386
29387 # type: verbatim
29388 #. type: verbatim
29389 #: ../fish/guestfish-actions.pod:3054
29390 #, no-wrap
29391 msgid ""
29392 " mkfifo mode path\n"
29393 "\n"
29394 msgstr ""
29395
29396 # type: textblock
29397 #. type: textblock
29398 #: ../fish/guestfish-actions.pod:3056
29399 msgid ""
29400 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29401 "is just a convenient wrapper around L</mknod>."
29402 msgstr ""
29403
29404 # type: =head2
29405 #. type: =head2
29406 #: ../fish/guestfish-actions.pod:3062
29407 msgid "mkfs"
29408 msgstr ""
29409
29410 # type: verbatim
29411 #. type: verbatim
29412 #: ../fish/guestfish-actions.pod:3064
29413 #, no-wrap
29414 msgid ""
29415 " mkfs fstype device\n"
29416 "\n"
29417 msgstr ""
29418
29419 # type: =head2
29420 #. type: =head2
29421 #: ../fish/guestfish-actions.pod:3070
29422 msgid "mkfs-b"
29423 msgstr ""
29424
29425 # type: verbatim
29426 #. type: verbatim
29427 #: ../fish/guestfish-actions.pod:3072
29428 #, no-wrap
29429 msgid ""
29430 " mkfs-b fstype blocksize device\n"
29431 "\n"
29432 msgstr ""
29433
29434 # type: textblock
29435 #. type: textblock
29436 #: ../fish/guestfish-actions.pod:3074
29437 msgid ""
29438 "This call is similar to L</mkfs>, but it allows you to control the block "
29439 "size of the resulting filesystem.  Supported block sizes depend on the "
29440 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29441 msgstr ""
29442
29443 # type: =head2
29444 #. type: =head2
29445 #: ../fish/guestfish-actions.pod:3089
29446 msgid "mkfs-opts"
29447 msgstr ""
29448
29449 #. type: verbatim
29450 #: ../fish/guestfish-actions.pod:3091
29451 #, no-wrap
29452 msgid ""
29453 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
29454 "\n"
29455 msgstr ""
29456
29457 # type: =head2
29458 #. type: =head2
29459 #: ../fish/guestfish-actions.pod:3136
29460 msgid "mkmountpoint"
29461 msgstr ""
29462
29463 # type: verbatim
29464 #. type: verbatim
29465 #: ../fish/guestfish-actions.pod:3138
29466 #, no-wrap
29467 msgid ""
29468 " mkmountpoint exemptpath\n"
29469 "\n"
29470 msgstr ""
29471
29472 # type: textblock
29473 #. type: textblock
29474 #: ../fish/guestfish-actions.pod:3140
29475 msgid ""
29476 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
29477 "to create extra mountpoints before mounting the first filesystem."
29478 msgstr ""
29479
29480 # type: textblock
29481 #. type: textblock
29482 #: ../fish/guestfish-actions.pod:3164
29483 msgid ""
29484 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
29485 "unexpected errors if you try to mix these calls.  It is safest to manually "
29486 "unmount filesystems and remove mountpoints after use."
29487 msgstr ""
29488
29489 # type: textblock
29490 #. type: textblock
29491 #: ../fish/guestfish-actions.pod:3168
29492 msgid ""
29493 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
29494 "for this to work for manual mountpoints, you must ensure that the innermost "
29495 "mountpoints have the longest pathnames, as in the example code above."
29496 msgstr ""
29497
29498 #. type: textblock
29499 #: ../fish/guestfish-actions.pod:3175
29500 msgid ""
29501 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
29502 "L</umount-all> to be called when the handle is closed which can also trigger "
29503 "these issues."
29504 msgstr ""
29505
29506 # type: =head2
29507 #. type: =head2
29508 #: ../fish/guestfish-actions.pod:3179
29509 msgid "mknod"
29510 msgstr ""
29511
29512 # type: verbatim
29513 #. type: verbatim
29514 #: ../fish/guestfish-actions.pod:3181
29515 #, no-wrap
29516 msgid ""
29517 " mknod mode devmajor devminor path\n"
29518 "\n"
29519 msgstr ""
29520
29521 # type: textblock
29522 #. type: textblock
29523 #: ../fish/guestfish-actions.pod:3191
29524 msgid ""
29525 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29526 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29527 "regular file).  These constants are available in the standard Linux header "
29528 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
29529 "wrappers around this command which bitwise OR in the appropriate constant "
29530 "for you."
29531 msgstr ""
29532
29533 # type: =head2
29534 #. type: =head2
29535 #: ../fish/guestfish-actions.pod:3201
29536 msgid "mknod-b"
29537 msgstr ""
29538
29539 # type: verbatim
29540 #. type: verbatim
29541 #: ../fish/guestfish-actions.pod:3203
29542 #, no-wrap
29543 msgid ""
29544 " mknod-b mode devmajor devminor path\n"
29545 "\n"
29546 msgstr ""
29547
29548 # type: textblock
29549 #. type: textblock
29550 #: ../fish/guestfish-actions.pod:3205
29551 msgid ""
29552 "This call creates a block device node called C<path> with mode C<mode> and "
29553 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29554 "wrapper around L</mknod>."
29555 msgstr ""
29556
29557 # type: =head2
29558 #. type: =head2
29559 #: ../fish/guestfish-actions.pod:3211
29560 msgid "mknod-c"
29561 msgstr ""
29562
29563 # type: verbatim
29564 #. type: verbatim
29565 #: ../fish/guestfish-actions.pod:3213
29566 #, no-wrap
29567 msgid ""
29568 " mknod-c mode devmajor devminor path\n"
29569 "\n"
29570 msgstr ""
29571
29572 # type: textblock
29573 #. type: textblock
29574 #: ../fish/guestfish-actions.pod:3215
29575 msgid ""
29576 "This call creates a char device node called C<path> with mode C<mode> and "
29577 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29578 "wrapper around L</mknod>."
29579 msgstr ""
29580
29581 # type: =head2
29582 #. type: =head2
29583 #: ../fish/guestfish-actions.pod:3221
29584 msgid "mkswap"
29585 msgstr ""
29586
29587 # type: verbatim
29588 #. type: verbatim
29589 #: ../fish/guestfish-actions.pod:3223
29590 #, no-wrap
29591 msgid ""
29592 " mkswap device\n"
29593 "\n"
29594 msgstr ""
29595
29596 # type: =head2
29597 #. type: =head2
29598 #: ../fish/guestfish-actions.pod:3227
29599 msgid "mkswap-L"
29600 msgstr ""
29601
29602 # type: verbatim
29603 #. type: verbatim
29604 #: ../fish/guestfish-actions.pod:3229
29605 #, no-wrap
29606 msgid ""
29607 " mkswap-L label device\n"
29608 "\n"
29609 msgstr ""
29610
29611 # type: =head2
29612 #. type: =head2
29613 #: ../fish/guestfish-actions.pod:3237
29614 msgid "mkswap-U"
29615 msgstr ""
29616
29617 # type: verbatim
29618 #. type: verbatim
29619 #: ../fish/guestfish-actions.pod:3239
29620 #, no-wrap
29621 msgid ""
29622 " mkswap-U uuid device\n"
29623 "\n"
29624 msgstr ""
29625
29626 # type: =head2
29627 #. type: =head2
29628 #: ../fish/guestfish-actions.pod:3243
29629 msgid "mkswap-file"
29630 msgstr ""
29631
29632 # type: verbatim
29633 #. type: verbatim
29634 #: ../fish/guestfish-actions.pod:3245
29635 #, no-wrap
29636 msgid ""
29637 " mkswap-file path\n"
29638 "\n"
29639 msgstr ""
29640
29641 # type: textblock
29642 #. type: textblock
29643 #: ../fish/guestfish-actions.pod:3249
29644 msgid ""
29645 "This command just writes a swap file signature to an existing file.  To "
29646 "create the file itself, use something like L</fallocate>."
29647 msgstr ""
29648
29649 # type: =head2
29650 #. type: =head2
29651 #: ../fish/guestfish-actions.pod:3252
29652 msgid "modprobe"
29653 msgstr ""
29654
29655 # type: verbatim
29656 #. type: verbatim
29657 #: ../fish/guestfish-actions.pod:3254
29658 #, no-wrap
29659 msgid ""
29660 " modprobe modulename\n"
29661 "\n"
29662 msgstr ""
29663
29664 # type: =head2
29665 #. type: =head2
29666 #: ../fish/guestfish-actions.pod:3261
29667 msgid "mount"
29668 msgstr ""
29669
29670 # type: verbatim
29671 #. type: verbatim
29672 #: ../fish/guestfish-actions.pod:3263
29673 #, no-wrap
29674 msgid ""
29675 " mount device mountpoint\n"
29676 "\n"
29677 msgstr ""
29678
29679 # type: textblock
29680 #. type: textblock
29681 #: ../fish/guestfish-actions.pod:3279
29682 msgid ""
29683 "B<Important note:> When you use this call, the filesystem options C<sync> "
29684 "and C<noatime> are set implicitly.  This was originally done because we "
29685 "thought it would improve reliability, but it turns out that I<-o sync> has a "
29686 "very large negative performance impact and negligible effect on "
29687 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
29688 "code that needs performance, and instead use L</mount-options> (use an empty "
29689 "string for the first parameter if you don't want any options)."
29690 msgstr ""
29691
29692 #. type: =head2
29693 #: ../fish/guestfish-actions.pod:3296
29694 msgid "mount-9p"
29695 msgstr ""
29696
29697 #. type: verbatim
29698 #: ../fish/guestfish-actions.pod:3298
29699 #, no-wrap
29700 msgid ""
29701 " mount-9p mounttag mountpoint [options:..]\n"
29702 "\n"
29703 msgstr ""
29704
29705 # type: =head2
29706 #. type: =head2
29707 #: ../fish/guestfish-actions.pod:3309
29708 msgid "mount-loop"
29709 msgstr ""
29710
29711 # type: verbatim
29712 #. type: verbatim
29713 #: ../fish/guestfish-actions.pod:3311
29714 #, no-wrap
29715 msgid ""
29716 " mount-loop file mountpoint\n"
29717 "\n"
29718 msgstr ""
29719
29720 # type: =head2
29721 #. type: =head2
29722 #: ../fish/guestfish-actions.pod:3317
29723 msgid "mount-options"
29724 msgstr ""
29725
29726 # type: verbatim
29727 #. type: verbatim
29728 #: ../fish/guestfish-actions.pod:3319
29729 #, no-wrap
29730 msgid ""
29731 " mount-options options device mountpoint\n"
29732 "\n"
29733 msgstr ""
29734
29735 # type: textblock
29736 #. type: textblock
29737 #: ../fish/guestfish-actions.pod:3321
29738 msgid ""
29739 "This is the same as the L</mount> command, but it allows you to set the "
29740 "mount options as for the L<mount(8)> I<-o> flag."
29741 msgstr ""
29742
29743 # type: =head2
29744 #. type: =head2
29745 #: ../fish/guestfish-actions.pod:3329
29746 msgid "mount-ro"
29747 msgstr ""
29748
29749 # type: verbatim
29750 #. type: verbatim
29751 #: ../fish/guestfish-actions.pod:3331
29752 #, no-wrap
29753 msgid ""
29754 " mount-ro device mountpoint\n"
29755 "\n"
29756 msgstr ""
29757
29758 # type: textblock
29759 #. type: textblock
29760 #: ../fish/guestfish-actions.pod:3333
29761 msgid ""
29762 "This is the same as the L</mount> command, but it mounts the filesystem with "
29763 "the read-only (I<-o ro>) flag."
29764 msgstr ""
29765
29766 # type: =head2
29767 #. type: =head2
29768 #: ../fish/guestfish-actions.pod:3336
29769 msgid "mount-vfs"
29770 msgstr ""
29771
29772 # type: verbatim
29773 #. type: verbatim
29774 #: ../fish/guestfish-actions.pod:3338
29775 #, no-wrap
29776 msgid ""
29777 " mount-vfs options vfstype device mountpoint\n"
29778 "\n"
29779 msgstr ""
29780
29781 # type: textblock
29782 #. type: textblock
29783 #: ../fish/guestfish-actions.pod:3340
29784 msgid ""
29785 "This is the same as the L</mount> command, but it allows you to set both the "
29786 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
29787 msgstr ""
29788
29789 # type: =head2
29790 #. type: =head2
29791 #: ../fish/guestfish-actions.pod:3344
29792 msgid "mountpoints"
29793 msgstr ""
29794
29795 # type: verbatim
29796 #. type: verbatim
29797 #: ../fish/guestfish-actions.pod:3346
29798 #, no-wrap
29799 msgid ""
29800 " mountpoints\n"
29801 "\n"
29802 msgstr ""
29803
29804 # type: textblock
29805 #. type: textblock
29806 #: ../fish/guestfish-actions.pod:3348
29807 msgid ""
29808 "This call is similar to L</mounts>.  That call returns a list of devices.  "
29809 "This one returns a hash table (map) of device name to directory where the "
29810 "device is mounted."
29811 msgstr ""
29812
29813 # type: =head2
29814 #. type: =head2
29815 #: ../fish/guestfish-actions.pod:3352
29816 msgid "mounts"
29817 msgstr ""
29818
29819 # type: verbatim
29820 #. type: verbatim
29821 #: ../fish/guestfish-actions.pod:3354
29822 #, no-wrap
29823 msgid ""
29824 " mounts\n"
29825 "\n"
29826 msgstr ""
29827
29828 # type: textblock
29829 #. type: textblock
29830 #: ../fish/guestfish-actions.pod:3361
29831 msgid "See also: L</mountpoints>"
29832 msgstr ""
29833
29834 # type: =head2
29835 #. type: =head2
29836 #: ../fish/guestfish-actions.pod:3363
29837 msgid "mv"
29838 msgstr ""
29839
29840 # type: verbatim
29841 #. type: verbatim
29842 #: ../fish/guestfish-actions.pod:3365
29843 #, no-wrap
29844 msgid ""
29845 " mv src dest\n"
29846 "\n"
29847 msgstr ""
29848
29849 # type: =head2
29850 #. type: =head2
29851 #: ../fish/guestfish-actions.pod:3370
29852 msgid "ntfs-3g-probe"
29853 msgstr ""
29854
29855 # type: verbatim
29856 #. type: verbatim
29857 #: ../fish/guestfish-actions.pod:3372
29858 #, no-wrap
29859 msgid ""
29860 " ntfs-3g-probe true|false device\n"
29861 "\n"
29862 msgstr ""
29863
29864 # type: =head2
29865 #. type: =head2
29866 #: ../fish/guestfish-actions.pod:3386
29867 msgid "ntfsresize"
29868 msgstr ""
29869
29870 # type: verbatim
29871 #. type: verbatim
29872 #: ../fish/guestfish-actions.pod:3388
29873 #, no-wrap
29874 msgid ""
29875 " ntfsresize device\n"
29876 "\n"
29877 msgstr ""
29878
29879 #. type: =head2
29880 #: ../fish/guestfish-actions.pod:3410
29881 msgid "ntfsresize-opts"
29882 msgstr ""
29883
29884 #. type: verbatim
29885 #: ../fish/guestfish-actions.pod:3412
29886 #, no-wrap
29887 msgid ""
29888 " ntfsresize-opts device [size:..] [force:..]\n"
29889 "\n"
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../fish/guestfish-actions.pod:3431
29894 msgid ""
29895 "After the resize operation, the filesystem is always marked as requiring a "
29896 "consistency check (for safety).  You have to boot into Windows to perform "
29897 "this check and clear this condition.  If you I<don't> set the C<force> "
29898 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
29899 "a single filesystem without booting into Windows between each resize."
29900 msgstr ""
29901
29902 # type: =head2
29903 #. type: =head2
29904 #: ../fish/guestfish-actions.pod:3444
29905 msgid "ntfsresize-size"
29906 msgstr ""
29907
29908 # type: verbatim
29909 #. type: verbatim
29910 #: ../fish/guestfish-actions.pod:3446
29911 #, no-wrap
29912 msgid ""
29913 " ntfsresize-size device size\n"
29914 "\n"
29915 msgstr ""
29916
29917 # type: textblock
29918 #. type: textblock
29919 #: ../fish/guestfish-actions.pod:3448
29920 msgid ""
29921 "This command is the same as L</ntfsresize> except that it allows you to "
29922 "specify the new size (in bytes) explicitly."
29923 msgstr ""
29924
29925 # type: =head2
29926 #. type: =head2
29927 #: ../fish/guestfish-actions.pod:3458
29928 msgid "part-add"
29929 msgstr ""
29930
29931 # type: verbatim
29932 #. type: verbatim
29933 #: ../fish/guestfish-actions.pod:3460
29934 #, no-wrap
29935 msgid ""
29936 " part-add device prlogex startsect endsect\n"
29937 "\n"
29938 msgstr ""
29939
29940 # type: textblock
29941 #. type: textblock
29942 #: ../fish/guestfish-actions.pod:3462
29943 msgid ""
29944 "This command adds a partition to C<device>.  If there is no partition table "
29945 "on the device, call L</part-init> first."
29946 msgstr ""
29947
29948 # type: textblock
29949 #. type: textblock
29950 #: ../fish/guestfish-actions.pod:3474
29951 msgid ""
29952 "Creating a partition which covers the whole disk is not so easy.  Use L</"
29953 "part-disk> to do that."
29954 msgstr ""
29955
29956 # type: =head2
29957 #. type: =head2
29958 #: ../fish/guestfish-actions.pod:3477
29959 msgid "part-del"
29960 msgstr ""
29961
29962 # type: verbatim
29963 #. type: verbatim
29964 #: ../fish/guestfish-actions.pod:3479
29965 #, no-wrap
29966 msgid ""
29967 " part-del device partnum\n"
29968 "\n"
29969 msgstr ""
29970
29971 # type: =head2
29972 #. type: =head2
29973 #: ../fish/guestfish-actions.pod:3487
29974 msgid "part-disk"
29975 msgstr ""
29976
29977 # type: verbatim
29978 #. type: verbatim
29979 #: ../fish/guestfish-actions.pod:3489
29980 #, no-wrap
29981 msgid ""
29982 " part-disk device parttype\n"
29983 "\n"
29984 msgstr ""
29985
29986 # type: textblock
29987 #. type: textblock
29988 #: ../fish/guestfish-actions.pod:3491
29989 msgid ""
29990 "This command is simply a combination of L</part-init> followed by L</part-"
29991 "add> to create a single primary partition covering the whole disk."
29992 msgstr ""
29993
29994 # type: textblock
29995 #. type: textblock
29996 #: ../fish/guestfish-actions.pod:3495
29997 msgid ""
29998 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29999 "possible values are described in L</part-init>."
30000 msgstr ""
30001
30002 # type: =head2
30003 #. type: =head2
30004 #: ../fish/guestfish-actions.pod:3501
30005 msgid "part-get-bootable"
30006 msgstr ""
30007
30008 # type: verbatim
30009 #. type: verbatim
30010 #: ../fish/guestfish-actions.pod:3503
30011 #, no-wrap
30012 msgid ""
30013 " part-get-bootable device partnum\n"
30014 "\n"
30015 msgstr ""
30016
30017 # type: textblock
30018 #. type: textblock
30019 #: ../fish/guestfish-actions.pod:3508
30020 msgid "See also L</part-set-bootable>."
30021 msgstr ""
30022
30023 # type: =head2
30024 #. type: =head2
30025 #: ../fish/guestfish-actions.pod:3510
30026 msgid "part-get-mbr-id"
30027 msgstr ""
30028
30029 # type: verbatim
30030 #. type: verbatim
30031 #: ../fish/guestfish-actions.pod:3512
30032 #, no-wrap
30033 msgid ""
30034 " part-get-mbr-id device partnum\n"
30035 "\n"
30036 msgstr ""
30037
30038 # type: textblock
30039 #. type: textblock
30040 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3655
30041 msgid ""
30042 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30043 "undefined results for other partition table types (see L</part-get-"
30044 "parttype>)."
30045 msgstr ""
30046
30047 # type: =head2
30048 #. type: =head2
30049 #: ../fish/guestfish-actions.pod:3521
30050 msgid "part-get-parttype"
30051 msgstr ""
30052
30053 # type: verbatim
30054 #. type: verbatim
30055 #: ../fish/guestfish-actions.pod:3523
30056 #, no-wrap
30057 msgid ""
30058 " part-get-parttype device\n"
30059 "\n"
30060 msgstr ""
30061
30062 # type: textblock
30063 #. type: textblock
30064 #: ../fish/guestfish-actions.pod:3528
30065 msgid ""
30066 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30067 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30068 "possible, although unusual.  See L</part-init> for a full list."
30069 msgstr ""
30070
30071 # type: =head2
30072 #. type: =head2
30073 #: ../fish/guestfish-actions.pod:3533
30074 msgid "part-init"
30075 msgstr ""
30076
30077 # type: verbatim
30078 #. type: verbatim
30079 #: ../fish/guestfish-actions.pod:3535
30080 #, no-wrap
30081 msgid ""
30082 " part-init device parttype\n"
30083 "\n"
30084 msgstr ""
30085
30086 # type: textblock
30087 #. type: textblock
30088 #: ../fish/guestfish-actions.pod:3541
30089 msgid ""
30090 "Initially there are no partitions.  Following this, you should call L</part-"
30091 "add> for each partition required."
30092 msgstr ""
30093
30094 # type: =head2
30095 #. type: =head2
30096 #: ../fish/guestfish-actions.pod:3604
30097 msgid "part-list"
30098 msgstr ""
30099
30100 # type: verbatim
30101 #. type: verbatim
30102 #: ../fish/guestfish-actions.pod:3606
30103 #, no-wrap
30104 msgid ""
30105 " part-list device\n"
30106 "\n"
30107 msgstr ""
30108
30109 # type: textblock
30110 #. type: textblock
30111 #: ../fish/guestfish-actions.pod:3621
30112 msgid ""
30113 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30114 "the device's sector size, see L</blockdev-getss>."
30115 msgstr ""
30116
30117 # type: =head2
30118 #. type: =head2
30119 #: ../fish/guestfish-actions.pod:3634
30120 msgid "part-set-bootable"
30121 msgstr ""
30122
30123 # type: verbatim
30124 #. type: verbatim
30125 #: ../fish/guestfish-actions.pod:3636
30126 #, no-wrap
30127 msgid ""
30128 " part-set-bootable device partnum true|false\n"
30129 "\n"
30130 msgstr ""
30131
30132 # type: =head2
30133 #. type: =head2
30134 #: ../fish/guestfish-actions.pod:3645
30135 msgid "part-set-mbr-id"
30136 msgstr ""
30137
30138 # type: verbatim
30139 #. type: verbatim
30140 #: ../fish/guestfish-actions.pod:3647
30141 #, no-wrap
30142 msgid ""
30143 " part-set-mbr-id device partnum idbyte\n"
30144 "\n"
30145 msgstr ""
30146
30147 # type: =head2
30148 #. type: =head2
30149 #: ../fish/guestfish-actions.pod:3659
30150 msgid "part-set-name"
30151 msgstr ""
30152
30153 # type: verbatim
30154 #. type: verbatim
30155 #: ../fish/guestfish-actions.pod:3661
30156 #, no-wrap
30157 msgid ""
30158 " part-set-name device partnum name\n"
30159 "\n"
30160 msgstr ""
30161
30162 # type: =head2
30163 #. type: =head2
30164 #: ../fish/guestfish-actions.pod:3669
30165 msgid "part-to-dev"
30166 msgstr ""
30167
30168 # type: verbatim
30169 #. type: verbatim
30170 #: ../fish/guestfish-actions.pod:3671
30171 #, no-wrap
30172 msgid ""
30173 " part-to-dev partition\n"
30174 "\n"
30175 msgstr ""
30176
30177 # type: textblock
30178 #. type: textblock
30179 #: ../fish/guestfish-actions.pod:3677
30180 msgid ""
30181 "The named partition must exist, for example as a string returned from L</"
30182 "list-partitions>."
30183 msgstr ""
30184
30185 # type: =head2
30186 #. type: =head2
30187 #: ../fish/guestfish-actions.pod:3680
30188 msgid "ping-daemon"
30189 msgstr ""
30190
30191 # type: verbatim
30192 #. type: verbatim
30193 #: ../fish/guestfish-actions.pod:3682
30194 #, no-wrap
30195 msgid ""
30196 " ping-daemon\n"
30197 "\n"
30198 msgstr ""
30199
30200 # type: =head2
30201 #. type: =head2
30202 #: ../fish/guestfish-actions.pod:3689
30203 msgid "pread"
30204 msgstr ""
30205
30206 # type: verbatim
30207 #. type: verbatim
30208 #: ../fish/guestfish-actions.pod:3691
30209 #, no-wrap
30210 msgid ""
30211 " pread path count offset\n"
30212 "\n"
30213 msgstr ""
30214
30215 # type: textblock
30216 #. type: textblock
30217 #: ../fish/guestfish-actions.pod:3699
30218 msgid "See also L</pwrite>, L</pread-device>."
30219 msgstr ""
30220
30221 # type: =head2
30222 #. type: =head2
30223 #: ../fish/guestfish-actions.pod:3704
30224 msgid "pread-device"
30225 msgstr ""
30226
30227 # type: verbatim
30228 #. type: verbatim
30229 #: ../fish/guestfish-actions.pod:3706
30230 #, no-wrap
30231 msgid ""
30232 " pread-device device count offset\n"
30233 "\n"
30234 msgstr ""
30235
30236 # type: textblock
30237 #. type: textblock
30238 #: ../fish/guestfish-actions.pod:3714
30239 msgid "See also L</pread>."
30240 msgstr ""
30241
30242 # type: =head2
30243 #. type: =head2
30244 #: ../fish/guestfish-actions.pod:3719
30245 msgid "pvcreate"
30246 msgstr ""
30247
30248 # type: verbatim
30249 #. type: verbatim
30250 #: ../fish/guestfish-actions.pod:3721
30251 #, no-wrap
30252 msgid ""
30253 " pvcreate device\n"
30254 "\n"
30255 msgstr ""
30256
30257 # type: =head2
30258 #. type: =head2
30259 #: ../fish/guestfish-actions.pod:3727
30260 msgid "pvremove"
30261 msgstr ""
30262
30263 # type: verbatim
30264 #. type: verbatim
30265 #: ../fish/guestfish-actions.pod:3729
30266 #, no-wrap
30267 msgid ""
30268 " pvremove device\n"
30269 "\n"
30270 msgstr ""
30271
30272 # type: =head2
30273 #. type: =head2
30274 #: ../fish/guestfish-actions.pod:3738
30275 msgid "pvresize"
30276 msgstr ""
30277
30278 # type: verbatim
30279 #. type: verbatim
30280 #: ../fish/guestfish-actions.pod:3740
30281 #, no-wrap
30282 msgid ""
30283 " pvresize device\n"
30284 "\n"
30285 msgstr ""
30286
30287 # type: =head2
30288 #. type: =head2
30289 #: ../fish/guestfish-actions.pod:3745
30290 msgid "pvresize-size"
30291 msgstr ""
30292
30293 # type: verbatim
30294 #. type: verbatim
30295 #: ../fish/guestfish-actions.pod:3747
30296 #, no-wrap
30297 msgid ""
30298 " pvresize-size device size\n"
30299 "\n"
30300 msgstr ""
30301
30302 # type: textblock
30303 #. type: textblock
30304 #: ../fish/guestfish-actions.pod:3749
30305 msgid ""
30306 "This command is the same as L</pvresize> except that it allows you to "
30307 "specify the new size (in bytes) explicitly."
30308 msgstr ""
30309
30310 # type: =head2
30311 #. type: =head2
30312 #: ../fish/guestfish-actions.pod:3752
30313 msgid "pvs"
30314 msgstr ""
30315
30316 # type: verbatim
30317 #. type: verbatim
30318 #: ../fish/guestfish-actions.pod:3754
30319 #, no-wrap
30320 msgid ""
30321 " pvs\n"
30322 "\n"
30323 msgstr ""
30324
30325 # type: textblock
30326 #. type: textblock
30327 #: ../fish/guestfish-actions.pod:3762
30328 msgid "See also L</pvs-full>."
30329 msgstr ""
30330
30331 # type: =head2
30332 #. type: =head2
30333 #: ../fish/guestfish-actions.pod:3764
30334 msgid "pvs-full"
30335 msgstr ""
30336
30337 # type: verbatim
30338 #. type: verbatim
30339 #: ../fish/guestfish-actions.pod:3766
30340 #, no-wrap
30341 msgid ""
30342 " pvs-full\n"
30343 "\n"
30344 msgstr ""
30345
30346 # type: =head2
30347 #. type: =head2
30348 #: ../fish/guestfish-actions.pod:3771
30349 msgid "pvuuid"
30350 msgstr ""
30351
30352 # type: verbatim
30353 #. type: verbatim
30354 #: ../fish/guestfish-actions.pod:3773
30355 #, no-wrap
30356 msgid ""
30357 " pvuuid device\n"
30358 "\n"
30359 msgstr ""
30360
30361 # type: =head2
30362 #. type: =head2
30363 #: ../fish/guestfish-actions.pod:3777
30364 msgid "pwrite"
30365 msgstr ""
30366
30367 # type: verbatim
30368 #. type: verbatim
30369 #: ../fish/guestfish-actions.pod:3779
30370 #, no-wrap
30371 msgid ""
30372 " pwrite path content offset\n"
30373 "\n"
30374 msgstr ""
30375
30376 # type: textblock
30377 #. type: textblock
30378 #: ../fish/guestfish-actions.pod:3790
30379 msgid "See also L</pread>, L</pwrite-device>."
30380 msgstr ""
30381
30382 # type: =head2
30383 #. type: =head2
30384 #: ../fish/guestfish-actions.pod:3795
30385 msgid "pwrite-device"
30386 msgstr ""
30387
30388 # type: verbatim
30389 #. type: verbatim
30390 #: ../fish/guestfish-actions.pod:3797
30391 #, no-wrap
30392 msgid ""
30393 " pwrite-device device content offset\n"
30394 "\n"
30395 msgstr ""
30396
30397 # type: textblock
30398 #. type: textblock
30399 #: ../fish/guestfish-actions.pod:3807
30400 msgid "See also L</pwrite>."
30401 msgstr ""
30402
30403 # type: =head2
30404 #. type: =head2
30405 #: ../fish/guestfish-actions.pod:3812
30406 msgid "read-file"
30407 msgstr ""
30408
30409 # type: verbatim
30410 #. type: verbatim
30411 #: ../fish/guestfish-actions.pod:3814
30412 #, no-wrap
30413 msgid ""
30414 " read-file path\n"
30415 "\n"
30416 msgstr ""
30417
30418 # type: textblock
30419 #. type: textblock
30420 #: ../fish/guestfish-actions.pod:3819
30421 msgid ""
30422 "Unlike L</cat>, this function can correctly handle files that contain "
30423 "embedded ASCII NUL characters.  However unlike L</download>, this function "
30424 "is limited in the total size of file that can be handled."
30425 msgstr ""
30426
30427 # type: =head2
30428 #. type: =head2
30429 #: ../fish/guestfish-actions.pod:3827
30430 msgid "read-lines"
30431 msgstr ""
30432
30433 # type: verbatim
30434 #. type: verbatim
30435 #: ../fish/guestfish-actions.pod:3829
30436 #, no-wrap
30437 msgid ""
30438 " read-lines path\n"
30439 "\n"
30440 msgstr ""
30441
30442 # type: textblock
30443 #. type: textblock
30444 #: ../fish/guestfish-actions.pod:3836
30445 msgid ""
30446 "Note that this function cannot correctly handle binary files (specifically, "
30447 "files containing C<\\0> character which is treated as end of line).  For "
30448 "those you need to use the L</read-file> function which has a more complex "
30449 "interface."
30450 msgstr ""
30451
30452 # type: =head2
30453 #. type: =head2
30454 #: ../fish/guestfish-actions.pod:3841
30455 msgid "readdir"
30456 msgstr ""
30457
30458 # type: verbatim
30459 #. type: verbatim
30460 #: ../fish/guestfish-actions.pod:3843
30461 #, no-wrap
30462 msgid ""
30463 " readdir dir\n"
30464 "\n"
30465 msgstr ""
30466
30467 # type: textblock
30468 #. type: textblock
30469 #: ../fish/guestfish-actions.pod:3895
30470 msgid ""
30471 "This function is primarily intended for use by programs.  To get a simple "
30472 "list of names, use L</ls>.  To get a printable directory for human "
30473 "consumption, use L</ll>."
30474 msgstr ""
30475
30476 # type: =head2
30477 #. type: =head2
30478 #: ../fish/guestfish-actions.pod:3899
30479 msgid "readlink"
30480 msgstr ""
30481
30482 # type: verbatim
30483 #. type: verbatim
30484 #: ../fish/guestfish-actions.pod:3901
30485 #, no-wrap
30486 msgid ""
30487 " readlink path\n"
30488 "\n"
30489 msgstr ""
30490
30491 # type: =head2
30492 #. type: =head2
30493 #: ../fish/guestfish-actions.pod:3905
30494 msgid "readlinklist"
30495 msgstr ""
30496
30497 # type: verbatim
30498 #. type: verbatim
30499 #: ../fish/guestfish-actions.pod:3907
30500 #, no-wrap
30501 msgid ""
30502 " readlinklist path 'names ...'\n"
30503 "\n"
30504 msgstr ""
30505
30506 # type: =head2
30507 #. type: =head2
30508 #: ../fish/guestfish-actions.pod:3931
30509 msgid "realpath"
30510 msgstr ""
30511
30512 # type: verbatim
30513 #. type: verbatim
30514 #: ../fish/guestfish-actions.pod:3933
30515 #, no-wrap
30516 msgid ""
30517 " realpath path\n"
30518 "\n"
30519 msgstr ""
30520
30521 # type: =head2
30522 #. type: =head2
30523 #: ../fish/guestfish-actions.pod:3938
30524 msgid "removexattr"
30525 msgstr ""
30526
30527 # type: verbatim
30528 #. type: verbatim
30529 #: ../fish/guestfish-actions.pod:3940
30530 #, no-wrap
30531 msgid ""
30532 " removexattr xattr path\n"
30533 "\n"
30534 msgstr ""
30535
30536 # type: textblock
30537 #. type: textblock
30538 #: ../fish/guestfish-actions.pod:3945
30539 msgid "See also: L</lremovexattr>, L<attr(5)>."
30540 msgstr ""
30541
30542 # type: =head2
30543 #. type: =head2
30544 #: ../fish/guestfish-actions.pod:3947
30545 msgid "resize2fs"
30546 msgstr ""
30547
30548 # type: verbatim
30549 #. type: verbatim
30550 #: ../fish/guestfish-actions.pod:3949
30551 #, no-wrap
30552 msgid ""
30553 " resize2fs device\n"
30554 "\n"
30555 msgstr ""
30556
30557 # type: textblock
30558 #. type: textblock
30559 #: ../fish/guestfish-actions.pod:3954
30560 msgid ""
30561 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
30562 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
30563 "gives an error about this and sometimes not.  In any case, it is always safe "
30564 "to call L</e2fsck-f> before calling this function."
30565 msgstr ""
30566
30567 #. type: =head2
30568 #: ../fish/guestfish-actions.pod:3960
30569 msgid "resize2fs-M"
30570 msgstr ""
30571
30572 #. type: verbatim
30573 #: ../fish/guestfish-actions.pod:3962
30574 #, no-wrap
30575 msgid ""
30576 " resize2fs-M device\n"
30577 "\n"
30578 msgstr ""
30579
30580 #. type: textblock
30581 #: ../fish/guestfish-actions.pod:3964
30582 msgid ""
30583 "This command is the same as L</resize2fs>, but the filesystem is resized to "
30584 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
30585 "command."
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../fish/guestfish-actions.pod:3968
30590 msgid ""
30591 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
30592 "and read the C<Block size> and C<Block count> values.  These two numbers, "
30593 "multiplied together, give the resulting size of the minimal filesystem in "
30594 "bytes."
30595 msgstr ""
30596
30597 # type: =head2
30598 #. type: =head2
30599 #: ../fish/guestfish-actions.pod:3973
30600 msgid "resize2fs-size"
30601 msgstr ""
30602
30603 # type: verbatim
30604 #. type: verbatim
30605 #: ../fish/guestfish-actions.pod:3975
30606 #, no-wrap
30607 msgid ""
30608 " resize2fs-size device size\n"
30609 "\n"
30610 msgstr ""
30611
30612 # type: textblock
30613 #. type: textblock
30614 #: ../fish/guestfish-actions.pod:3977
30615 msgid ""
30616 "This command is the same as L</resize2fs> except that it allows you to "
30617 "specify the new size (in bytes) explicitly."
30618 msgstr ""
30619
30620 # type: =head2
30621 #. type: =head2
30622 #: ../fish/guestfish-actions.pod:3980
30623 msgid "rm"
30624 msgstr ""
30625
30626 # type: verbatim
30627 #. type: verbatim
30628 #: ../fish/guestfish-actions.pod:3982
30629 #, no-wrap
30630 msgid ""
30631 " rm path\n"
30632 "\n"
30633 msgstr ""
30634
30635 # type: =head2
30636 #. type: =head2
30637 #: ../fish/guestfish-actions.pod:3986
30638 msgid "rm-rf"
30639 msgstr ""
30640
30641 # type: verbatim
30642 #. type: verbatim
30643 #: ../fish/guestfish-actions.pod:3988
30644 #, no-wrap
30645 msgid ""
30646 " rm-rf path\n"
30647 "\n"
30648 msgstr ""
30649
30650 # type: =head2
30651 #. type: =head2
30652 #: ../fish/guestfish-actions.pod:3994
30653 msgid "rmdir"
30654 msgstr ""
30655
30656 # type: verbatim
30657 #. type: verbatim
30658 #: ../fish/guestfish-actions.pod:3996
30659 #, no-wrap
30660 msgid ""
30661 " rmdir path\n"
30662 "\n"
30663 msgstr ""
30664
30665 # type: =head2
30666 #. type: =head2
30667 #: ../fish/guestfish-actions.pod:4000
30668 msgid "rmmountpoint"
30669 msgstr ""
30670
30671 # type: verbatim
30672 #. type: verbatim
30673 #: ../fish/guestfish-actions.pod:4002
30674 #, no-wrap
30675 msgid ""
30676 " rmmountpoint exemptpath\n"
30677 "\n"
30678 msgstr ""
30679
30680 # type: textblock
30681 #. type: textblock
30682 #: ../fish/guestfish-actions.pod:4004
30683 msgid ""
30684 "This calls removes a mountpoint that was previously created with L</"
30685 "mkmountpoint>.  See L</mkmountpoint> for full details."
30686 msgstr ""
30687
30688 # type: =head2
30689 #. type: =head2
30690 #: ../fish/guestfish-actions.pod:4008
30691 msgid "scrub-device"
30692 msgstr ""
30693
30694 # type: verbatim
30695 #. type: verbatim
30696 #: ../fish/guestfish-actions.pod:4010
30697 #, no-wrap
30698 msgid ""
30699 " scrub-device device\n"
30700 "\n"
30701 msgstr ""
30702
30703 # type: =head2
30704 #. type: =head2
30705 #: ../fish/guestfish-actions.pod:4021
30706 msgid "scrub-file"
30707 msgstr ""
30708
30709 # type: verbatim
30710 #. type: verbatim
30711 #: ../fish/guestfish-actions.pod:4023
30712 #, no-wrap
30713 msgid ""
30714 " scrub-file file\n"
30715 "\n"
30716 msgstr ""
30717
30718 # type: =head2
30719 #. type: =head2
30720 #: ../fish/guestfish-actions.pod:4033
30721 msgid "scrub-freespace"
30722 msgstr ""
30723
30724 # type: verbatim
30725 #. type: verbatim
30726 #: ../fish/guestfish-actions.pod:4035
30727 #, no-wrap
30728 msgid ""
30729 " scrub-freespace dir\n"
30730 "\n"
30731 msgstr ""
30732
30733 # type: textblock
30734 #. type: textblock
30735 #: ../fish/guestfish-actions.pod:4037
30736 msgid ""
30737 "This command creates the directory C<dir> and then fills it with files until "
30738 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
30739 "deletes them.  The intention is to scrub any free space on the partition "
30740 "containing C<dir>."
30741 msgstr ""
30742
30743 # type: =head2
30744 #. type: =head2
30745 #: ../fish/guestfish-actions.pod:4046
30746 msgid "set-append"
30747 msgstr ""
30748
30749 # type: =head2
30750 #. type: =head2
30751 #: ../fish/guestfish-actions.pod:4048
30752 msgid "append"
30753 msgstr ""
30754
30755 # type: verbatim
30756 #. type: verbatim
30757 #: ../fish/guestfish-actions.pod:4050
30758 #, no-wrap
30759 msgid ""
30760 " set-append append\n"
30761 "\n"
30762 msgstr ""
30763
30764 #. type: =head2
30765 #: ../fish/guestfish-actions.pod:4061
30766 msgid "set-attach-method"
30767 msgstr ""
30768
30769 #. type: =head2
30770 #: ../fish/guestfish-actions.pod:4063
30771 msgid "attach-method"
30772 msgstr ""
30773
30774 #. type: verbatim
30775 #: ../fish/guestfish-actions.pod:4065
30776 #, no-wrap
30777 msgid ""
30778 " set-attach-method attachmethod\n"
30779 "\n"
30780 msgstr ""
30781
30782 # type: =head2
30783 #. type: =head2
30784 #: ../fish/guestfish-actions.pod:4087
30785 msgid "set-autosync"
30786 msgstr ""
30787
30788 # type: =head2
30789 #. type: =head2
30790 #: ../fish/guestfish-actions.pod:4089
30791 msgid "autosync"
30792 msgstr ""
30793
30794 # type: verbatim
30795 #. type: verbatim
30796 #: ../fish/guestfish-actions.pod:4091
30797 #, no-wrap
30798 msgid ""
30799 " set-autosync true|false\n"
30800 "\n"
30801 msgstr ""
30802
30803 # type: =head2
30804 #. type: =head2
30805 #: ../fish/guestfish-actions.pod:4101
30806 msgid "set-direct"
30807 msgstr ""
30808
30809 # type: =head2
30810 #. type: =head2
30811 #: ../fish/guestfish-actions.pod:4103
30812 msgid "direct"
30813 msgstr ""
30814
30815 # type: verbatim
30816 #. type: verbatim
30817 #: ../fish/guestfish-actions.pod:4105
30818 #, no-wrap
30819 msgid ""
30820 " set-direct true|false\n"
30821 "\n"
30822 msgstr ""
30823
30824 # type: textblock
30825 #. type: textblock
30826 #: ../fish/guestfish-actions.pod:4111
30827 msgid ""
30828 "One consequence of this is that log messages aren't caught by the library "
30829 "and handled by L</set-log-message-callback>, but go straight to stdout."
30830 msgstr ""
30831
30832 # type: =head2
30833 #. type: =head2
30834 #: ../fish/guestfish-actions.pod:4120
30835 msgid "set-e2label"
30836 msgstr ""
30837
30838 # type: verbatim
30839 #. type: verbatim
30840 #: ../fish/guestfish-actions.pod:4122
30841 #, no-wrap
30842 msgid ""
30843 " set-e2label device label\n"
30844 "\n"
30845 msgstr ""
30846
30847 # type: textblock
30848 #. type: textblock
30849 #: ../fish/guestfish-actions.pod:4128
30850 msgid ""
30851 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
30852 "label on a filesystem."
30853 msgstr ""
30854
30855 # type: =head2
30856 #. type: =head2
30857 #: ../fish/guestfish-actions.pod:4131
30858 msgid "set-e2uuid"
30859 msgstr ""
30860
30861 # type: verbatim
30862 #. type: verbatim
30863 #: ../fish/guestfish-actions.pod:4133
30864 #, no-wrap
30865 msgid ""
30866 " set-e2uuid device uuid\n"
30867 "\n"
30868 msgstr ""
30869
30870 # type: textblock
30871 #. type: textblock
30872 #: ../fish/guestfish-actions.pod:4140
30873 msgid ""
30874 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
30875 "UUID of a filesystem."
30876 msgstr ""
30877
30878 # type: =head2
30879 #. type: =head2
30880 #: ../fish/guestfish-actions.pod:4143
30881 msgid "set-memsize"
30882 msgstr ""
30883
30884 # type: =head2
30885 #. type: =head2
30886 #: ../fish/guestfish-actions.pod:4145
30887 msgid "memsize"
30888 msgstr ""
30889
30890 # type: verbatim
30891 #. type: verbatim
30892 #: ../fish/guestfish-actions.pod:4147
30893 #, no-wrap
30894 msgid ""
30895 " set-memsize memsize\n"
30896 "\n"
30897 msgstr ""
30898
30899 # type: textblock
30900 #. type: textblock
30901 #: ../fish/guestfish-actions.pod:4149
30902 msgid ""
30903 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30904 "This only has any effect if called before L</launch>."
30905 msgstr ""
30906
30907 # type: =head2
30908 #. type: =head2
30909 #: ../fish/guestfish-actions.pod:4160
30910 msgid "set-network"
30911 msgstr ""
30912
30913 # type: =head2
30914 #. type: =head2
30915 #: ../fish/guestfish-actions.pod:4162
30916 msgid "network"
30917 msgstr ""
30918
30919 # type: verbatim
30920 #. type: verbatim
30921 #: ../fish/guestfish-actions.pod:4164
30922 #, no-wrap
30923 msgid ""
30924 " set-network true|false\n"
30925 "\n"
30926 msgstr ""
30927
30928 # type: textblock
30929 #. type: textblock
30930 #: ../fish/guestfish-actions.pod:4172
30931 msgid ""
30932 "You must call this before calling L</launch>, otherwise it has no effect."
30933 msgstr ""
30934
30935 # type: =head2
30936 #. type: =head2
30937 #: ../fish/guestfish-actions.pod:4175
30938 msgid "set-path"
30939 msgstr ""
30940
30941 # type: =head2
30942 #. type: =head2
30943 #: ../fish/guestfish-actions.pod:4177
30944 msgid "path"
30945 msgstr ""
30946
30947 # type: verbatim
30948 #. type: verbatim
30949 #: ../fish/guestfish-actions.pod:4179
30950 #, no-wrap
30951 msgid ""
30952 " set-path searchpath\n"
30953 "\n"
30954 msgstr ""
30955
30956 #. type: =head2
30957 #: ../fish/guestfish-actions.pod:4188
30958 msgid "set-pgroup"
30959 msgstr ""
30960
30961 #. type: =head2
30962 #: ../fish/guestfish-actions.pod:4190
30963 msgid "pgroup"
30964 msgstr ""
30965
30966 #. type: verbatim
30967 #: ../fish/guestfish-actions.pod:4192
30968 #, no-wrap
30969 msgid ""
30970 " set-pgroup true|false\n"
30971 "\n"
30972 msgstr ""
30973
30974 # type: =head2
30975 #. type: =head2
30976 #: ../fish/guestfish-actions.pod:4203
30977 msgid "set-qemu"
30978 msgstr ""
30979
30980 # type: =head2
30981 #. type: =head2
30982 #: ../fish/guestfish-actions.pod:4205
30983 msgid "qemu"
30984 msgstr ""
30985
30986 # type: verbatim
30987 #. type: verbatim
30988 #: ../fish/guestfish-actions.pod:4207
30989 #, no-wrap
30990 msgid ""
30991 " set-qemu qemu\n"
30992 "\n"
30993 msgstr ""
30994
30995 # type: =head2
30996 #. type: =head2
30997 #: ../fish/guestfish-actions.pod:4227
30998 msgid "set-recovery-proc"
30999 msgstr ""
31000
31001 # type: =head2
31002 #. type: =head2
31003 #: ../fish/guestfish-actions.pod:4229
31004 msgid "recovery-proc"
31005 msgstr ""
31006
31007 # type: verbatim
31008 #. type: verbatim
31009 #: ../fish/guestfish-actions.pod:4231
31010 #, no-wrap
31011 msgid ""
31012 " set-recovery-proc true|false\n"
31013 "\n"
31014 msgstr ""
31015
31016 # type: textblock
31017 #. type: textblock
31018 #: ../fish/guestfish-actions.pod:4233
31019 msgid ""
31020 "If this is called with the parameter C<false> then L</launch> does not "
31021 "create a recovery process.  The purpose of the recovery process is to stop "
31022 "runaway qemu processes in the case where the main program aborts abruptly."
31023 msgstr ""
31024
31025 # type: textblock
31026 #. type: textblock
31027 #: ../fish/guestfish-actions.pod:4238
31028 msgid ""
31029 "This only has any effect if called before L</launch>, and the default is "
31030 "true."
31031 msgstr ""
31032
31033 # type: =head2
31034 #. type: =head2
31035 #: ../fish/guestfish-actions.pod:4247
31036 msgid "set-selinux"
31037 msgstr ""
31038
31039 # type: =head2
31040 #. type: =head2
31041 #: ../fish/guestfish-actions.pod:4249
31042 msgid "selinux"
31043 msgstr ""
31044
31045 # type: verbatim
31046 #. type: verbatim
31047 #: ../fish/guestfish-actions.pod:4251
31048 #, no-wrap
31049 msgid ""
31050 " set-selinux true|false\n"
31051 "\n"
31052 msgstr ""
31053
31054 # type: =head2
31055 #. type: =head2
31056 #: ../fish/guestfish-actions.pod:4262
31057 msgid "set-trace"
31058 msgstr ""
31059
31060 # type: =head2
31061 #. type: =head2
31062 #: ../fish/guestfish-actions.pod:4264
31063 msgid "trace"
31064 msgstr ""
31065
31066 # type: verbatim
31067 #. type: verbatim
31068 #: ../fish/guestfish-actions.pod:4266
31069 #, no-wrap
31070 msgid ""
31071 " set-trace true|false\n"
31072 "\n"
31073 msgstr ""
31074
31075 #. type: textblock
31076 #: ../fish/guestfish-actions.pod:4278
31077 msgid ""
31078 "Trace messages are normally sent to C<stderr>, unless you register a "
31079 "callback to send them somewhere else (see L</set-event-callback>)."
31080 msgstr ""
31081
31082 # type: =head2
31083 #. type: =head2
31084 #: ../fish/guestfish-actions.pod:4282
31085 msgid "set-verbose"
31086 msgstr ""
31087
31088 # type: =head2
31089 #. type: =head2
31090 #: ../fish/guestfish-actions.pod:4284
31091 msgid "verbose"
31092 msgstr ""
31093
31094 # type: verbatim
31095 #. type: verbatim
31096 #: ../fish/guestfish-actions.pod:4286
31097 #, no-wrap
31098 msgid ""
31099 " set-verbose true|false\n"
31100 "\n"
31101 msgstr ""
31102
31103 #. type: textblock
31104 #: ../fish/guestfish-actions.pod:4293
31105 msgid ""
31106 "Verbose messages are normally sent to C<stderr>, unless you register a "
31107 "callback to send them somewhere else (see L</set-event-callback>)."
31108 msgstr ""
31109
31110 # type: =head2
31111 #. type: =head2
31112 #: ../fish/guestfish-actions.pod:4297
31113 msgid "setcon"
31114 msgstr ""
31115
31116 # type: verbatim
31117 #. type: verbatim
31118 #: ../fish/guestfish-actions.pod:4299
31119 #, no-wrap
31120 msgid ""
31121 " setcon context\n"
31122 "\n"
31123 msgstr ""
31124
31125 # type: =head2
31126 #. type: =head2
31127 #: ../fish/guestfish-actions.pod:4306
31128 msgid "setxattr"
31129 msgstr ""
31130
31131 # type: verbatim
31132 #. type: verbatim
31133 #: ../fish/guestfish-actions.pod:4308
31134 #, no-wrap
31135 msgid ""
31136 " setxattr xattr val vallen path\n"
31137 "\n"
31138 msgstr ""
31139
31140 # type: textblock
31141 #. type: textblock
31142 #: ../fish/guestfish-actions.pod:4314
31143 msgid "See also: L</lsetxattr>, L<attr(5)>."
31144 msgstr ""
31145
31146 # type: =head2
31147 #. type: =head2
31148 #: ../fish/guestfish-actions.pod:4316
31149 msgid "sfdisk"
31150 msgstr ""
31151
31152 # type: verbatim
31153 #. type: verbatim
31154 #: ../fish/guestfish-actions.pod:4318
31155 #, no-wrap
31156 msgid ""
31157 " sfdisk device cyls heads sectors 'lines ...'\n"
31158 "\n"
31159 msgstr ""
31160
31161 # type: textblock
31162 #. type: textblock
31163 #: ../fish/guestfish-actions.pod:4340
31164 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
31165 msgstr ""
31166
31167 # type: =head2
31168 #. type: =head2
31169 #: ../fish/guestfish-actions.pod:4353
31170 msgid "sfdiskM"
31171 msgstr ""
31172
31173 # type: verbatim
31174 #. type: verbatim
31175 #: ../fish/guestfish-actions.pod:4355
31176 #, no-wrap
31177 msgid ""
31178 " sfdiskM device 'lines ...'\n"
31179 "\n"
31180 msgstr ""
31181
31182 # type: textblock
31183 #. type: textblock
31184 #: ../fish/guestfish-actions.pod:4357
31185 msgid ""
31186 "This is a simplified interface to the L</sfdisk> command, where partition "
31187 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
31188 "you don't need to specify the cyls, heads and sectors parameters which were "
31189 "rarely if ever used anyway."
31190 msgstr ""
31191
31192 # type: textblock
31193 #. type: textblock
31194 #: ../fish/guestfish-actions.pod:4363
31195 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
31196 msgstr ""
31197
31198 # type: =head2
31199 #. type: =head2
31200 #: ../fish/guestfish-actions.pod:4376
31201 msgid "sfdisk-N"
31202 msgstr ""
31203
31204 # type: verbatim
31205 #. type: verbatim
31206 #: ../fish/guestfish-actions.pod:4378
31207 #, no-wrap
31208 msgid ""
31209 " sfdisk-N device partnum cyls heads sectors line\n"
31210 "\n"
31211 msgstr ""
31212
31213 # type: textblock
31214 #. type: textblock
31215 #: ../fish/guestfish-actions.pod:4383
31216 msgid ""
31217 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
31218 "cyls/heads/sectors parameters."
31219 msgstr ""
31220
31221 # type: textblock
31222 #. type: textblock
31223 #: ../fish/guestfish-actions.pod:4386
31224 msgid "See also: L</part-add>"
31225 msgstr ""
31226
31227 # type: =head2
31228 #. type: =head2
31229 #: ../fish/guestfish-actions.pod:4398
31230 msgid "sfdisk-disk-geometry"
31231 msgstr ""
31232
31233 # type: verbatim
31234 #. type: verbatim
31235 #: ../fish/guestfish-actions.pod:4400
31236 #, no-wrap
31237 msgid ""
31238 " sfdisk-disk-geometry device\n"
31239 "\n"
31240 msgstr ""
31241
31242 # type: textblock
31243 #. type: textblock
31244 #: ../fish/guestfish-actions.pod:4402
31245 msgid ""
31246 "This displays the disk geometry of C<device> read from the partition table.  "
31247 "Especially in the case where the underlying block device has been resized, "
31248 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
31249 "kernel-geometry>)."
31250 msgstr ""
31251
31252 # type: =head2
31253 #. type: =head2
31254 #: ../fish/guestfish-actions.pod:4410
31255 msgid "sfdisk-kernel-geometry"
31256 msgstr ""
31257
31258 # type: verbatim
31259 #. type: verbatim
31260 #: ../fish/guestfish-actions.pod:4412
31261 #, no-wrap
31262 msgid ""
31263 " sfdisk-kernel-geometry device\n"
31264 "\n"
31265 msgstr ""
31266
31267 # type: =head2
31268 #. type: =head2
31269 #: ../fish/guestfish-actions.pod:4419
31270 msgid "sfdisk-l"
31271 msgstr ""
31272
31273 # type: verbatim
31274 #. type: verbatim
31275 #: ../fish/guestfish-actions.pod:4421
31276 #, no-wrap
31277 msgid ""
31278 " sfdisk-l device\n"
31279 "\n"
31280 msgstr ""
31281
31282 # type: textblock
31283 #. type: textblock
31284 #: ../fish/guestfish-actions.pod:4427
31285 msgid "See also: L</part-list>"
31286 msgstr ""
31287
31288 # type: =head2
31289 #. type: =head2
31290 #: ../fish/guestfish-actions.pod:4436
31291 msgid "sh"
31292 msgstr ""
31293
31294 # type: verbatim
31295 #. type: verbatim
31296 #: ../fish/guestfish-actions.pod:4438
31297 #, no-wrap
31298 msgid ""
31299 " sh command\n"
31300 "\n"
31301 msgstr ""
31302
31303 # type: textblock
31304 #. type: textblock
31305 #: ../fish/guestfish-actions.pod:4443
31306 msgid "This is like L</command>, but passes the command to:"
31307 msgstr ""
31308
31309 # type: textblock
31310 #. type: textblock
31311 #: ../fish/guestfish-actions.pod:4451
31312 msgid "All the provisos about L</command> apply to this call."
31313 msgstr ""
31314
31315 # type: =head2
31316 #. type: =head2
31317 #: ../fish/guestfish-actions.pod:4453
31318 msgid "sh-lines"
31319 msgstr ""
31320
31321 # type: verbatim
31322 #. type: verbatim
31323 #: ../fish/guestfish-actions.pod:4455
31324 #, no-wrap
31325 msgid ""
31326 " sh-lines command\n"
31327 "\n"
31328 msgstr ""
31329
31330 # type: textblock
31331 #. type: textblock
31332 #: ../fish/guestfish-actions.pod:4457
31333 msgid "This is the same as L</sh>, but splits the result into a list of lines."
31334 msgstr ""
31335
31336 # type: textblock
31337 #. type: textblock
31338 #: ../fish/guestfish-actions.pod:4460
31339 msgid "See also: L</command-lines>"
31340 msgstr ""
31341
31342 # type: =head2
31343 #. type: =head2
31344 #: ../fish/guestfish-actions.pod:4462
31345 msgid "sleep"
31346 msgstr ""
31347
31348 # type: verbatim
31349 #. type: verbatim
31350 #: ../fish/guestfish-actions.pod:4464
31351 #, no-wrap
31352 msgid ""
31353 " sleep secs\n"
31354 "\n"
31355 msgstr ""
31356
31357 # type: =head2
31358 #. type: =head2
31359 #: ../fish/guestfish-actions.pod:4468
31360 msgid "stat"
31361 msgstr ""
31362
31363 # type: verbatim
31364 #. type: verbatim
31365 #: ../fish/guestfish-actions.pod:4470
31366 #, no-wrap
31367 msgid ""
31368 " stat path\n"
31369 "\n"
31370 msgstr ""
31371
31372 # type: =head2
31373 #. type: =head2
31374 #: ../fish/guestfish-actions.pod:4476
31375 msgid "statvfs"
31376 msgstr ""
31377
31378 # type: verbatim
31379 #. type: verbatim
31380 #: ../fish/guestfish-actions.pod:4478
31381 #, no-wrap
31382 msgid ""
31383 " statvfs path\n"
31384 "\n"
31385 msgstr ""
31386
31387 # type: =head2
31388 #. type: =head2
31389 #: ../fish/guestfish-actions.pod:4486
31390 msgid "strings"
31391 msgstr ""
31392
31393 # type: verbatim
31394 #. type: verbatim
31395 #: ../fish/guestfish-actions.pod:4488
31396 #, no-wrap
31397 msgid ""
31398 " strings path\n"
31399 "\n"
31400 msgstr ""
31401
31402 # type: =head2
31403 #. type: =head2
31404 #: ../fish/guestfish-actions.pod:4496
31405 msgid "strings-e"
31406 msgstr ""
31407
31408 # type: verbatim
31409 #. type: verbatim
31410 #: ../fish/guestfish-actions.pod:4498
31411 #, no-wrap
31412 msgid ""
31413 " strings-e encoding path\n"
31414 "\n"
31415 msgstr ""
31416
31417 # type: textblock
31418 #. type: textblock
31419 #: ../fish/guestfish-actions.pod:4500
31420 msgid ""
31421 "This is like the L</strings> command, but allows you to specify the encoding "
31422 "of strings that are looked for in the source file C<path>."
31423 msgstr ""
31424
31425 # type: textblock
31426 #. type: textblock
31427 #: ../fish/guestfish-actions.pod:4510
31428 msgid ""
31429 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31430 "ISO-8859-X (this is what L</strings> uses)."
31431 msgstr ""
31432
31433 # type: =head2
31434 #. type: =head2
31435 #: ../fish/guestfish-actions.pod:4542
31436 msgid "swapoff-device"
31437 msgstr ""
31438
31439 # type: verbatim
31440 #. type: verbatim
31441 #: ../fish/guestfish-actions.pod:4544
31442 #, no-wrap
31443 msgid ""
31444 " swapoff-device device\n"
31445 "\n"
31446 msgstr ""
31447
31448 # type: textblock
31449 #. type: textblock
31450 #: ../fish/guestfish-actions.pod:4546
31451 msgid ""
31452 "This command disables the libguestfs appliance swap device or partition "
31453 "named C<device>.  See L</swapon-device>."
31454 msgstr ""
31455
31456 # type: =head2
31457 #. type: =head2
31458 #: ../fish/guestfish-actions.pod:4550
31459 msgid "swapoff-file"
31460 msgstr ""
31461
31462 # type: verbatim
31463 #. type: verbatim
31464 #: ../fish/guestfish-actions.pod:4552
31465 #, no-wrap
31466 msgid ""
31467 " swapoff-file file\n"
31468 "\n"
31469 msgstr ""
31470
31471 # type: =head2
31472 #. type: =head2
31473 #: ../fish/guestfish-actions.pod:4556
31474 msgid "swapoff-label"
31475 msgstr ""
31476
31477 # type: verbatim
31478 #. type: verbatim
31479 #: ../fish/guestfish-actions.pod:4558
31480 #, no-wrap
31481 msgid ""
31482 " swapoff-label label\n"
31483 "\n"
31484 msgstr ""
31485
31486 # type: =head2
31487 #. type: =head2
31488 #: ../fish/guestfish-actions.pod:4563
31489 msgid "swapoff-uuid"
31490 msgstr ""
31491
31492 # type: verbatim
31493 #. type: verbatim
31494 #: ../fish/guestfish-actions.pod:4565
31495 #, no-wrap
31496 msgid ""
31497 " swapoff-uuid uuid\n"
31498 "\n"
31499 msgstr ""
31500
31501 # type: =head2
31502 #. type: =head2
31503 #: ../fish/guestfish-actions.pod:4570
31504 msgid "swapon-device"
31505 msgstr ""
31506
31507 # type: verbatim
31508 #. type: verbatim
31509 #: ../fish/guestfish-actions.pod:4572
31510 #, no-wrap
31511 msgid ""
31512 " swapon-device device\n"
31513 "\n"
31514 msgstr ""
31515
31516 # type: textblock
31517 #. type: textblock
31518 #: ../fish/guestfish-actions.pod:4574
31519 msgid ""
31520 "This command enables the libguestfs appliance to use the swap device or "
31521 "partition named C<device>.  The increased memory is made available for all "
31522 "commands, for example those run using L</command> or L</sh>."
31523 msgstr ""
31524
31525 # type: =head2
31526 #. type: =head2
31527 #: ../fish/guestfish-actions.pod:4586
31528 msgid "swapon-file"
31529 msgstr ""
31530
31531 # type: verbatim
31532 #. type: verbatim
31533 #: ../fish/guestfish-actions.pod:4588
31534 #, no-wrap
31535 msgid ""
31536 " swapon-file file\n"
31537 "\n"
31538 msgstr ""
31539
31540 # type: textblock
31541 #. type: textblock
31542 #: ../fish/guestfish-actions.pod:4590
31543 msgid ""
31544 "This command enables swap to a file.  See L</swapon-device> for other notes."
31545 msgstr ""
31546
31547 # type: =head2
31548 #. type: =head2
31549 #: ../fish/guestfish-actions.pod:4593
31550 msgid "swapon-label"
31551 msgstr ""
31552
31553 # type: verbatim
31554 #. type: verbatim
31555 #: ../fish/guestfish-actions.pod:4595
31556 #, no-wrap
31557 msgid ""
31558 " swapon-label label\n"
31559 "\n"
31560 msgstr ""
31561
31562 # type: textblock
31563 #. type: textblock
31564 #: ../fish/guestfish-actions.pod:4597
31565 msgid ""
31566 "This command enables swap to a labeled swap partition.  See L</swapon-"
31567 "device> for other notes."
31568 msgstr ""
31569
31570 # type: =head2
31571 #. type: =head2
31572 #: ../fish/guestfish-actions.pod:4600
31573 msgid "swapon-uuid"
31574 msgstr ""
31575
31576 # type: verbatim
31577 #. type: verbatim
31578 #: ../fish/guestfish-actions.pod:4602
31579 #, no-wrap
31580 msgid ""
31581 " swapon-uuid uuid\n"
31582 "\n"
31583 msgstr ""
31584
31585 # type: textblock
31586 #. type: textblock
31587 #: ../fish/guestfish-actions.pod:4604
31588 msgid ""
31589 "This command enables swap to a swap partition with the given UUID.  See L</"
31590 "swapon-device> for other notes."
31591 msgstr ""
31592
31593 # type: =head2
31594 #. type: =head2
31595 #: ../fish/guestfish-actions.pod:4607
31596 msgid "sync"
31597 msgstr ""
31598
31599 # type: verbatim
31600 #. type: verbatim
31601 #: ../fish/guestfish-actions.pod:4609
31602 #, no-wrap
31603 msgid ""
31604 " sync\n"
31605 "\n"
31606 msgstr ""
31607
31608 # type: =head2
31609 #. type: =head2
31610 #: ../fish/guestfish-actions.pod:4617
31611 msgid "tail"
31612 msgstr ""
31613
31614 # type: verbatim
31615 #. type: verbatim
31616 #: ../fish/guestfish-actions.pod:4619
31617 #, no-wrap
31618 msgid ""
31619 " tail path\n"
31620 "\n"
31621 msgstr ""
31622
31623 # type: =head2
31624 #. type: =head2
31625 #: ../fish/guestfish-actions.pod:4627
31626 msgid "tail-n"
31627 msgstr ""
31628
31629 # type: verbatim
31630 #. type: verbatim
31631 #: ../fish/guestfish-actions.pod:4629
31632 #, no-wrap
31633 msgid ""
31634 " tail-n nrlines path\n"
31635 "\n"
31636 msgstr ""
31637
31638 # type: =head2
31639 #. type: =head2
31640 #: ../fish/guestfish-actions.pod:4642
31641 msgid "tar-in"
31642 msgstr ""
31643
31644 # type: verbatim
31645 #. type: verbatim
31646 #: ../fish/guestfish-actions.pod:4644
31647 #, no-wrap
31648 msgid ""
31649 " tar-in (tarfile|-) directory\n"
31650 "\n"
31651 msgstr ""
31652
31653 # type: textblock
31654 #. type: textblock
31655 #: ../fish/guestfish-actions.pod:4649
31656 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
31657 msgstr ""
31658
31659 # type: =head2
31660 #. type: =head2
31661 #: ../fish/guestfish-actions.pod:4654
31662 msgid "tar-out"
31663 msgstr ""
31664
31665 # type: verbatim
31666 #. type: verbatim
31667 #: ../fish/guestfish-actions.pod:4656
31668 #, no-wrap
31669 msgid ""
31670 " tar-out directory (tarfile|-)\n"
31671 "\n"
31672 msgstr ""
31673
31674 # type: textblock
31675 #. type: textblock
31676 #: ../fish/guestfish-actions.pod:4661
31677 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
31678 msgstr ""
31679
31680 # type: =head2
31681 #. type: =head2
31682 #: ../fish/guestfish-actions.pod:4666
31683 msgid "tgz-in"
31684 msgstr ""
31685
31686 # type: verbatim
31687 #. type: verbatim
31688 #: ../fish/guestfish-actions.pod:4668
31689 #, no-wrap
31690 msgid ""
31691 " tgz-in (tarball|-) directory\n"
31692 "\n"
31693 msgstr ""
31694
31695 # type: textblock
31696 #. type: textblock
31697 #: ../fish/guestfish-actions.pod:4673
31698 msgid "To upload an uncompressed tarball, use L</tar-in>."
31699 msgstr ""
31700
31701 # type: =head2
31702 #. type: =head2
31703 #: ../fish/guestfish-actions.pod:4677
31704 msgid "tgz-out"
31705 msgstr ""
31706
31707 # type: verbatim
31708 #. type: verbatim
31709 #: ../fish/guestfish-actions.pod:4679
31710 #, no-wrap
31711 msgid ""
31712 " tgz-out directory (tarball|-)\n"
31713 "\n"
31714 msgstr ""
31715
31716 # type: textblock
31717 #. type: textblock
31718 #: ../fish/guestfish-actions.pod:4684
31719 msgid "To download an uncompressed tarball, use L</tar-out>."
31720 msgstr ""
31721
31722 # type: =head2
31723 #. type: =head2
31724 #: ../fish/guestfish-actions.pod:4688
31725 msgid "touch"
31726 msgstr ""
31727
31728 # type: verbatim
31729 #. type: verbatim
31730 #: ../fish/guestfish-actions.pod:4690
31731 #, no-wrap
31732 msgid ""
31733 " touch path\n"
31734 "\n"
31735 msgstr ""
31736
31737 # type: =head2
31738 #. type: =head2
31739 #: ../fish/guestfish-actions.pod:4699
31740 msgid "truncate"
31741 msgstr ""
31742
31743 # type: verbatim
31744 #. type: verbatim
31745 #: ../fish/guestfish-actions.pod:4701
31746 #, no-wrap
31747 msgid ""
31748 " truncate path\n"
31749 "\n"
31750 msgstr ""
31751
31752 # type: =head2
31753 #. type: =head2
31754 #: ../fish/guestfish-actions.pod:4706
31755 msgid "truncate-size"
31756 msgstr ""
31757
31758 # type: verbatim
31759 #. type: verbatim
31760 #: ../fish/guestfish-actions.pod:4708
31761 #, no-wrap
31762 msgid ""
31763 " truncate-size path size\n"
31764 "\n"
31765 msgstr ""
31766
31767 # type: textblock
31768 #. type: textblock
31769 #: ../fish/guestfish-actions.pod:4713
31770 msgid ""
31771 "If the current file size is less than C<size> then the file is extended to "
31772 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31773 "blocks are not allocated for the file until you write to it).  To create a "
31774 "non-sparse file of zeroes, use L</fallocate64> instead."
31775 msgstr ""
31776
31777 # type: =head2
31778 #. type: =head2
31779 #: ../fish/guestfish-actions.pod:4719
31780 msgid "tune2fs-l"
31781 msgstr ""
31782
31783 # type: verbatim
31784 #. type: verbatim
31785 #: ../fish/guestfish-actions.pod:4721
31786 #, no-wrap
31787 msgid ""
31788 " tune2fs-l device\n"
31789 "\n"
31790 msgstr ""
31791
31792 # type: =head2
31793 #. type: =head2
31794 #: ../fish/guestfish-actions.pod:4731
31795 msgid "txz-in"
31796 msgstr ""
31797
31798 # type: verbatim
31799 #. type: verbatim
31800 #: ../fish/guestfish-actions.pod:4733
31801 #, no-wrap
31802 msgid ""
31803 " txz-in (tarball|-) directory\n"
31804 "\n"
31805 msgstr ""
31806
31807 # type: =head2
31808 #. type: =head2
31809 #: ../fish/guestfish-actions.pod:4740
31810 msgid "txz-out"
31811 msgstr ""
31812
31813 # type: verbatim
31814 #. type: verbatim
31815 #: ../fish/guestfish-actions.pod:4742
31816 #, no-wrap
31817 msgid ""
31818 " txz-out directory (tarball|-)\n"
31819 "\n"
31820 msgstr ""
31821
31822 # type: =head2
31823 #. type: =head2
31824 #: ../fish/guestfish-actions.pod:4749
31825 msgid "umask"
31826 msgstr ""
31827
31828 # type: verbatim
31829 #. type: verbatim
31830 #: ../fish/guestfish-actions.pod:4751
31831 #, no-wrap
31832 msgid ""
31833 " umask mask\n"
31834 "\n"
31835 msgstr ""
31836
31837 # type: textblock
31838 #. type: textblock
31839 #: ../fish/guestfish-actions.pod:4765
31840 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
31841 msgstr ""
31842
31843 # type: =head2
31844 #. type: =head2
31845 #: ../fish/guestfish-actions.pod:4770
31846 msgid "umount"
31847 msgstr ""
31848
31849 # type: =head2
31850 #. type: =head2
31851 #: ../fish/guestfish-actions.pod:4772
31852 msgid "unmount"
31853 msgstr ""
31854
31855 # type: verbatim
31856 #. type: verbatim
31857 #: ../fish/guestfish-actions.pod:4774
31858 #, no-wrap
31859 msgid ""
31860 " umount pathordevice\n"
31861 "\n"
31862 msgstr ""
31863
31864 # type: =head2
31865 #. type: =head2
31866 #: ../fish/guestfish-actions.pod:4780
31867 msgid "umount-all"
31868 msgstr ""
31869
31870 # type: =head2
31871 #. type: =head2
31872 #: ../fish/guestfish-actions.pod:4782
31873 msgid "unmount-all"
31874 msgstr ""
31875
31876 # type: verbatim
31877 #. type: verbatim
31878 #: ../fish/guestfish-actions.pod:4784
31879 #, no-wrap
31880 msgid ""
31881 " umount-all\n"
31882 "\n"
31883 msgstr ""
31884
31885 # type: =head2
31886 #. type: =head2
31887 #: ../fish/guestfish-actions.pod:4790
31888 msgid "upload"
31889 msgstr ""
31890
31891 # type: verbatim
31892 #. type: verbatim
31893 #: ../fish/guestfish-actions.pod:4792
31894 #, no-wrap
31895 msgid ""
31896 " upload (filename|-) remotefilename\n"
31897 "\n"
31898 msgstr ""
31899
31900 # type: textblock
31901 #. type: textblock
31902 #: ../fish/guestfish-actions.pod:4799
31903 msgid "See also L</download>."
31904 msgstr ""
31905
31906 # type: =head2
31907 #. type: =head2
31908 #: ../fish/guestfish-actions.pod:4803
31909 msgid "upload-offset"
31910 msgstr ""
31911
31912 # type: verbatim
31913 #. type: verbatim
31914 #: ../fish/guestfish-actions.pod:4805
31915 #, no-wrap
31916 msgid ""
31917 " upload-offset (filename|-) remotefilename offset\n"
31918 "\n"
31919 msgstr ""
31920
31921 # type: textblock
31922 #. type: textblock
31923 #: ../fish/guestfish-actions.pod:4817
31924 msgid ""
31925 "Note that there is no limit on the amount of data that can be uploaded with "
31926 "this call, unlike with L</pwrite>, and this call always writes the full "
31927 "amount unless an error occurs."
31928 msgstr ""
31929
31930 # type: textblock
31931 #. type: textblock
31932 #: ../fish/guestfish-actions.pod:4822
31933 msgid "See also L</upload>, L</pwrite>."
31934 msgstr ""
31935
31936 # type: =head2
31937 #. type: =head2
31938 #: ../fish/guestfish-actions.pod:4826
31939 msgid "utimens"
31940 msgstr ""
31941
31942 # type: verbatim
31943 #. type: verbatim
31944 #: ../fish/guestfish-actions.pod:4828
31945 #, no-wrap
31946 msgid ""
31947 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
31948 "\n"
31949 msgstr ""
31950
31951 # type: =head2
31952 #. type: =head2
31953 #: ../fish/guestfish-actions.pod:4847
31954 msgid "version"
31955 msgstr ""
31956
31957 # type: verbatim
31958 #. type: verbatim
31959 #: ../fish/guestfish-actions.pod:4849
31960 #, no-wrap
31961 msgid ""
31962 " version\n"
31963 "\n"
31964 msgstr ""
31965
31966 # type: textblock
31967 #. type: textblock
31968 #: ../fish/guestfish-actions.pod:4876
31969 msgid ""
31970 "I<Note:> Don't use this call to test for availability of features.  In "
31971 "enterprise distributions we backport features from later versions into "
31972 "earlier versions, making this an unreliable way to test for features.  Use "
31973 "L</available> instead."
31974 msgstr ""
31975
31976 # type: =head2
31977 #. type: =head2
31978 #: ../fish/guestfish-actions.pod:4882
31979 msgid "vfs-label"
31980 msgstr ""
31981
31982 # type: verbatim
31983 #. type: verbatim
31984 #: ../fish/guestfish-actions.pod:4884
31985 #, no-wrap
31986 msgid ""
31987 " vfs-label device\n"
31988 "\n"
31989 msgstr ""
31990
31991 # type: textblock
31992 #. type: textblock
31993 #: ../fish/guestfish-actions.pod:4891
31994 msgid "To find a filesystem from the label, use L</findfs-label>."
31995 msgstr ""
31996
31997 # type: =head2
31998 #. type: =head2
31999 #: ../fish/guestfish-actions.pod:4893
32000 msgid "vfs-type"
32001 msgstr ""
32002
32003 # type: verbatim
32004 #. type: verbatim
32005 #: ../fish/guestfish-actions.pod:4895
32006 #, no-wrap
32007 msgid ""
32008 " vfs-type device\n"
32009 "\n"
32010 msgstr ""
32011
32012 # type: =head2
32013 #. type: =head2
32014 #: ../fish/guestfish-actions.pod:4905
32015 msgid "vfs-uuid"
32016 msgstr ""
32017
32018 # type: verbatim
32019 #. type: verbatim
32020 #: ../fish/guestfish-actions.pod:4907
32021 #, no-wrap
32022 msgid ""
32023 " vfs-uuid device\n"
32024 "\n"
32025 msgstr ""
32026
32027 # type: textblock
32028 #. type: textblock
32029 #: ../fish/guestfish-actions.pod:4914
32030 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
32031 msgstr ""
32032
32033 # type: =head2
32034 #. type: =head2
32035 #: ../fish/guestfish-actions.pod:4916
32036 msgid "vg-activate"
32037 msgstr ""
32038
32039 # type: verbatim
32040 #. type: verbatim
32041 #: ../fish/guestfish-actions.pod:4918
32042 #, no-wrap
32043 msgid ""
32044 " vg-activate true|false 'volgroups ...'\n"
32045 "\n"
32046 msgstr ""
32047
32048 # type: =head2
32049 #. type: =head2
32050 #: ../fish/guestfish-actions.pod:4928
32051 msgid "vg-activate-all"
32052 msgstr ""
32053
32054 # type: verbatim
32055 #. type: verbatim
32056 #: ../fish/guestfish-actions.pod:4930
32057 #, no-wrap
32058 msgid ""
32059 " vg-activate-all true|false\n"
32060 "\n"
32061 msgstr ""
32062
32063 # type: =head2
32064 #. type: =head2
32065 #: ../fish/guestfish-actions.pod:4937
32066 msgid "vgcreate"
32067 msgstr ""
32068
32069 # type: verbatim
32070 #. type: verbatim
32071 #: ../fish/guestfish-actions.pod:4939
32072 #, no-wrap
32073 msgid ""
32074 " vgcreate volgroup 'physvols ...'\n"
32075 "\n"
32076 msgstr ""
32077
32078 # type: =head2
32079 #. type: =head2
32080 #: ../fish/guestfish-actions.pod:4944
32081 msgid "vglvuuids"
32082 msgstr ""
32083
32084 # type: verbatim
32085 #. type: verbatim
32086 #: ../fish/guestfish-actions.pod:4946
32087 #, no-wrap
32088 msgid ""
32089 " vglvuuids vgname\n"
32090 "\n"
32091 msgstr ""
32092
32093 # type: textblock
32094 #. type: textblock
32095 #: ../fish/guestfish-actions.pod:4951
32096 msgid ""
32097 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
32098 "logical volumes and volume groups."
32099 msgstr ""
32100
32101 # type: textblock
32102 #. type: textblock
32103 #: ../fish/guestfish-actions.pod:4954
32104 msgid "See also L</vgpvuuids>."
32105 msgstr ""
32106
32107 # type: =head2
32108 #. type: =head2
32109 #: ../fish/guestfish-actions.pod:4956
32110 msgid "vgpvuuids"
32111 msgstr ""
32112
32113 # type: verbatim
32114 #. type: verbatim
32115 #: ../fish/guestfish-actions.pod:4958
32116 #, no-wrap
32117 msgid ""
32118 " vgpvuuids vgname\n"
32119 "\n"
32120 msgstr ""
32121
32122 # type: textblock
32123 #. type: textblock
32124 #: ../fish/guestfish-actions.pod:4963
32125 msgid ""
32126 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
32127 "physical volumes and volume groups."
32128 msgstr ""
32129
32130 # type: textblock
32131 #. type: textblock
32132 #: ../fish/guestfish-actions.pod:4966
32133 msgid "See also L</vglvuuids>."
32134 msgstr ""
32135
32136 # type: =head2
32137 #. type: =head2
32138 #: ../fish/guestfish-actions.pod:4968
32139 msgid "vgremove"
32140 msgstr ""
32141
32142 # type: verbatim
32143 #. type: verbatim
32144 #: ../fish/guestfish-actions.pod:4970
32145 #, no-wrap
32146 msgid ""
32147 " vgremove vgname\n"
32148 "\n"
32149 msgstr ""
32150
32151 # type: =head2
32152 #. type: =head2
32153 #: ../fish/guestfish-actions.pod:4977
32154 msgid "vgrename"
32155 msgstr ""
32156
32157 # type: verbatim
32158 #. type: verbatim
32159 #: ../fish/guestfish-actions.pod:4979
32160 #, no-wrap
32161 msgid ""
32162 " vgrename volgroup newvolgroup\n"
32163 "\n"
32164 msgstr ""
32165
32166 # type: =head2
32167 #. type: =head2
32168 #: ../fish/guestfish-actions.pod:4983
32169 msgid "vgs"
32170 msgstr ""
32171
32172 # type: verbatim
32173 #. type: verbatim
32174 #: ../fish/guestfish-actions.pod:4985
32175 #, no-wrap
32176 msgid ""
32177 " vgs\n"
32178 "\n"
32179 msgstr ""
32180
32181 # type: textblock
32182 #. type: textblock
32183 #: ../fish/guestfish-actions.pod:4993
32184 msgid "See also L</vgs-full>."
32185 msgstr ""
32186
32187 # type: =head2
32188 #. type: =head2
32189 #: ../fish/guestfish-actions.pod:4995
32190 msgid "vgs-full"
32191 msgstr ""
32192
32193 # type: verbatim
32194 #. type: verbatim
32195 #: ../fish/guestfish-actions.pod:4997
32196 #, no-wrap
32197 msgid ""
32198 " vgs-full\n"
32199 "\n"
32200 msgstr ""
32201
32202 # type: =head2
32203 #. type: =head2
32204 #: ../fish/guestfish-actions.pod:5002
32205 msgid "vgscan"
32206 msgstr ""
32207
32208 # type: verbatim
32209 #. type: verbatim
32210 #: ../fish/guestfish-actions.pod:5004
32211 #, no-wrap
32212 msgid ""
32213 " vgscan\n"
32214 "\n"
32215 msgstr ""
32216
32217 # type: =head2
32218 #. type: =head2
32219 #: ../fish/guestfish-actions.pod:5009
32220 msgid "vguuid"
32221 msgstr ""
32222
32223 # type: verbatim
32224 #. type: verbatim
32225 #: ../fish/guestfish-actions.pod:5011
32226 #, no-wrap
32227 msgid ""
32228 " vguuid vgname\n"
32229 "\n"
32230 msgstr ""
32231
32232 # type: =head2
32233 #. type: =head2
32234 #: ../fish/guestfish-actions.pod:5015
32235 msgid "wc-c"
32236 msgstr ""
32237
32238 # type: verbatim
32239 #. type: verbatim
32240 #: ../fish/guestfish-actions.pod:5017
32241 #, no-wrap
32242 msgid ""
32243 " wc-c path\n"
32244 "\n"
32245 msgstr ""
32246
32247 # type: =head2
32248 #. type: =head2
32249 #: ../fish/guestfish-actions.pod:5022
32250 msgid "wc-l"
32251 msgstr ""
32252
32253 # type: verbatim
32254 #. type: verbatim
32255 #: ../fish/guestfish-actions.pod:5024
32256 #, no-wrap
32257 msgid ""
32258 " wc-l path\n"
32259 "\n"
32260 msgstr ""
32261
32262 # type: =head2
32263 #. type: =head2
32264 #: ../fish/guestfish-actions.pod:5029
32265 msgid "wc-w"
32266 msgstr ""
32267
32268 # type: verbatim
32269 #. type: verbatim
32270 #: ../fish/guestfish-actions.pod:5031
32271 #, no-wrap
32272 msgid ""
32273 " wc-w path\n"
32274 "\n"
32275 msgstr ""
32276
32277 # type: =head2
32278 #. type: =head2
32279 #: ../fish/guestfish-actions.pod:5036
32280 msgid "write"
32281 msgstr ""
32282
32283 # type: verbatim
32284 #. type: verbatim
32285 #: ../fish/guestfish-actions.pod:5038
32286 #, no-wrap
32287 msgid ""
32288 " write path content\n"
32289 "\n"
32290 msgstr ""
32291
32292 #. type: textblock
32293 #: ../fish/guestfish-actions.pod:5043
32294 msgid "See also L</write-append>."
32295 msgstr ""
32296
32297 #. type: =head2
32298 #: ../fish/guestfish-actions.pod:5048
32299 msgid "write-append"
32300 msgstr ""
32301
32302 #. type: verbatim
32303 #: ../fish/guestfish-actions.pod:5050
32304 #, no-wrap
32305 msgid ""
32306 " write-append path content\n"
32307 "\n"
32308 msgstr ""
32309
32310 #. type: textblock
32311 #: ../fish/guestfish-actions.pod:5055
32312 msgid "See also L</write>."
32313 msgstr ""
32314
32315 # type: =head2
32316 #. type: =head2
32317 #: ../fish/guestfish-actions.pod:5060
32318 msgid "write-file"
32319 msgstr ""
32320
32321 # type: verbatim
32322 #. type: verbatim
32323 #: ../fish/guestfish-actions.pod:5062
32324 #, no-wrap
32325 msgid ""
32326 " write-file path content size\n"
32327 "\n"
32328 msgstr ""
32329
32330 # type: =head2
32331 #. type: =head2
32332 #: ../fish/guestfish-actions.pod:5085
32333 msgid "zegrep"
32334 msgstr ""
32335
32336 # type: verbatim
32337 #. type: verbatim
32338 #: ../fish/guestfish-actions.pod:5087
32339 #, no-wrap
32340 msgid ""
32341 " zegrep regex path\n"
32342 "\n"
32343 msgstr ""
32344
32345 # type: =head2
32346 #. type: =head2
32347 #: ../fish/guestfish-actions.pod:5095
32348 msgid "zegrepi"
32349 msgstr ""
32350
32351 # type: verbatim
32352 #. type: verbatim
32353 #: ../fish/guestfish-actions.pod:5097
32354 #, no-wrap
32355 msgid ""
32356 " zegrepi regex path\n"
32357 "\n"
32358 msgstr ""
32359
32360 # type: =head2
32361 #. type: =head2
32362 #: ../fish/guestfish-actions.pod:5105
32363 msgid "zero"
32364 msgstr ""
32365
32366 # type: verbatim
32367 #. type: verbatim
32368 #: ../fish/guestfish-actions.pod:5107
32369 #, no-wrap
32370 msgid ""
32371 " zero device\n"
32372 "\n"
32373 msgstr ""
32374
32375 #. type: textblock
32376 #: ../fish/guestfish-actions.pod:5115
32377 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
32378 msgstr ""
32379
32380 # type: =head2
32381 #. type: =head2
32382 #: ../fish/guestfish-actions.pod:5118
32383 msgid "zero-device"
32384 msgstr ""
32385
32386 # type: verbatim
32387 #. type: verbatim
32388 #: ../fish/guestfish-actions.pod:5120
32389 #, no-wrap
32390 msgid ""
32391 " zero-device device\n"
32392 "\n"
32393 msgstr ""
32394
32395 # type: textblock
32396 #. type: textblock
32397 #: ../fish/guestfish-actions.pod:5122
32398 msgid ""
32399 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
32400 "which just zeroes the first few blocks of a device."
32401 msgstr ""
32402
32403 # type: =head2
32404 #. type: =head2
32405 #: ../fish/guestfish-actions.pod:5129
32406 msgid "zerofree"
32407 msgstr ""
32408
32409 # type: verbatim
32410 #. type: verbatim
32411 #: ../fish/guestfish-actions.pod:5131
32412 #, no-wrap
32413 msgid ""
32414 " zerofree device\n"
32415 "\n"
32416 msgstr ""
32417
32418 # type: =head2
32419 #. type: =head2
32420 #: ../fish/guestfish-actions.pod:5144
32421 msgid "zfgrep"
32422 msgstr ""
32423
32424 # type: verbatim
32425 #. type: verbatim
32426 #: ../fish/guestfish-actions.pod:5146
32427 #, no-wrap
32428 msgid ""
32429 " zfgrep pattern path\n"
32430 "\n"
32431 msgstr ""
32432
32433 # type: =head2
32434 #. type: =head2
32435 #: ../fish/guestfish-actions.pod:5154
32436 msgid "zfgrepi"
32437 msgstr ""
32438
32439 # type: verbatim
32440 #. type: verbatim
32441 #: ../fish/guestfish-actions.pod:5156
32442 #, no-wrap
32443 msgid ""
32444 " zfgrepi pattern path\n"
32445 "\n"
32446 msgstr ""
32447
32448 # type: =head2
32449 #. type: =head2
32450 #: ../fish/guestfish-actions.pod:5164
32451 msgid "zfile"
32452 msgstr ""
32453
32454 # type: verbatim
32455 #. type: verbatim
32456 #: ../fish/guestfish-actions.pod:5166
32457 #, no-wrap
32458 msgid ""
32459 " zfile meth path\n"
32460 "\n"
32461 msgstr ""
32462
32463 # type: textblock
32464 #. type: textblock
32465 #: ../fish/guestfish-actions.pod:5173
32466 msgid ""
32467 "Since 1.0.63, use L</file> instead which can now process compressed files."
32468 msgstr ""
32469
32470 # type: =head2
32471 #. type: =head2
32472 #: ../fish/guestfish-actions.pod:5183
32473 msgid "zgrep"
32474 msgstr ""
32475
32476 # type: verbatim
32477 #. type: verbatim
32478 #: ../fish/guestfish-actions.pod:5185
32479 #, no-wrap
32480 msgid ""
32481 " zgrep regex path\n"
32482 "\n"
32483 msgstr ""
32484
32485 # type: =head2
32486 #. type: =head2
32487 #: ../fish/guestfish-actions.pod:5193
32488 msgid "zgrepi"
32489 msgstr ""
32490
32491 # type: verbatim
32492 #. type: verbatim
32493 #: ../fish/guestfish-actions.pod:5195
32494 #, no-wrap
32495 msgid ""
32496 " zgrepi regex path\n"
32497 "\n"
32498 msgstr ""
32499
32500 # type: =head2
32501 #. type: =head2
32502 #: ../fish/guestfish-commands.pod:1
32503 msgid "alloc"
32504 msgstr ""
32505
32506 # type: =head2
32507 #. type: =head2
32508 #: ../fish/guestfish-commands.pod:3
32509 msgid "allocate"
32510 msgstr ""
32511
32512 # type: verbatim
32513 #. type: verbatim
32514 #: ../fish/guestfish-commands.pod:5
32515 #, no-wrap
32516 msgid ""
32517 " alloc filename size\n"
32518 "\n"
32519 msgstr ""
32520
32521 # type: textblock
32522 #. type: textblock
32523 #: ../fish/guestfish-commands.pod:7
32524 msgid ""
32525 "This creates an empty (zeroed) file of the given size, and then adds so it "
32526 "can be further examined."
32527 msgstr ""
32528
32529 # type: textblock
32530 #. type: textblock
32531 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
32532 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
32533 msgstr ""
32534
32535 # type: textblock
32536 #. type: textblock
32537 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
32538 msgid "Size can be specified using standard suffixes, eg. C<1M>."
32539 msgstr ""
32540
32541 # type: textblock
32542 #. type: textblock
32543 #: ../fish/guestfish-commands.pod:14
32544 msgid ""
32545 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
32546 "image, see L</PREPARED DISK IMAGES>."
32547 msgstr ""
32548
32549 # type: =head2
32550 #. type: =head2
32551 #: ../fish/guestfish-commands.pod:17
32552 msgid "copy-in"
32553 msgstr ""
32554
32555 # type: verbatim
32556 #. type: verbatim
32557 #: ../fish/guestfish-commands.pod:19
32558 #, no-wrap
32559 msgid ""
32560 " copy-in local [local ...] /remotedir\n"
32561 "\n"
32562 msgstr ""
32563
32564 # type: textblock
32565 #. type: textblock
32566 #: ../fish/guestfish-commands.pod:21
32567 msgid ""
32568 "C<copy-in> copies local files or directories recursively into the disk "
32569 "image, placing them in the directory called C</remotedir> (which must "
32570 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
32571 "other commands as necessary."
32572 msgstr ""
32573
32574 # type: textblock
32575 #. type: textblock
32576 #: ../fish/guestfish-commands.pod:26
32577 msgid ""
32578 "Multiple local files and directories can be specified, but the last "
32579 "parameter must always be a remote directory.  Wildcards cannot be used."
32580 msgstr ""
32581
32582 # type: =head2
32583 #. type: =head2
32584 #: ../fish/guestfish-commands.pod:30
32585 msgid "copy-out"
32586 msgstr ""
32587
32588 # type: verbatim
32589 #. type: verbatim
32590 #: ../fish/guestfish-commands.pod:32
32591 #, no-wrap
32592 msgid ""
32593 " copy-out remote [remote ...] localdir\n"
32594 "\n"
32595 msgstr ""
32596
32597 # type: textblock
32598 #. type: textblock
32599 #: ../fish/guestfish-commands.pod:34
32600 msgid ""
32601 "C<copy-out> copies remote files or directories recursively out of the disk "
32602 "image, placing them on the host disk in a local directory called C<localdir> "
32603 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
32604 "download>, L</tar-out> and other commands as necessary."
32605 msgstr ""
32606
32607 # type: textblock
32608 #. type: textblock
32609 #: ../fish/guestfish-commands.pod:40
32610 msgid ""
32611 "Multiple remote files and directories can be specified, but the last "
32612 "parameter must always be a local directory.  To download to the current "
32613 "directory, use C<.> as in:"
32614 msgstr ""
32615
32616 # type: verbatim
32617 #. type: verbatim
32618 #: ../fish/guestfish-commands.pod:44
32619 #, no-wrap
32620 msgid ""
32621 " copy-out /home .\n"
32622 "\n"
32623 msgstr ""
32624
32625 # type: textblock
32626 #. type: textblock
32627 #: ../fish/guestfish-commands.pod:46
32628 msgid ""
32629 "Wildcards cannot be used in the ordinary command, but you can use them with "
32630 "the help of L</glob> like this:"
32631 msgstr ""
32632
32633 # type: verbatim
32634 #. type: verbatim
32635 #: ../fish/guestfish-commands.pod:49
32636 #, no-wrap
32637 msgid ""
32638 " glob copy-out /home/* .\n"
32639 "\n"
32640 msgstr ""
32641
32642 #. type: =head2
32643 #: ../fish/guestfish-commands.pod:51
32644 msgid "display"
32645 msgstr ""
32646
32647 #. type: verbatim
32648 #: ../fish/guestfish-commands.pod:53
32649 #, no-wrap
32650 msgid ""
32651 " display filename\n"
32652 "\n"
32653 msgstr ""
32654
32655 #. type: textblock
32656 #: ../fish/guestfish-commands.pod:55
32657 msgid ""
32658 "Use C<display> (a graphical display program) to display an image file.  It "
32659 "downloads the file, and runs C<display> on it."
32660 msgstr ""
32661
32662 #. type: textblock
32663 #: ../fish/guestfish-commands.pod:58
32664 msgid ""
32665 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
32666 "environment variable.  For example to use the GNOME display program:"
32667 msgstr ""
32668
32669 #. type: verbatim
32670 #: ../fish/guestfish-commands.pod:61
32671 #, no-wrap
32672 msgid ""
32673 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
32674 "\n"
32675 msgstr ""
32676
32677 #. type: textblock
32678 #: ../fish/guestfish-commands.pod:63
32679 msgid "See also L<display(1)>."
32680 msgstr ""
32681
32682 # type: =head2
32683 #. type: =head2
32684 #: ../fish/guestfish-commands.pod:65
32685 msgid "echo"
32686 msgstr ""
32687
32688 # type: verbatim
32689 #. type: verbatim
32690 #: ../fish/guestfish-commands.pod:67
32691 #, no-wrap
32692 msgid ""
32693 " echo [params ...]\n"
32694 "\n"
32695 msgstr ""
32696
32697 # type: textblock
32698 #. type: textblock
32699 #: ../fish/guestfish-commands.pod:69
32700 msgid "This echos the parameters to the terminal."
32701 msgstr ""
32702
32703 # type: =head2
32704 #. type: =head2
32705 #: ../fish/guestfish-commands.pod:71
32706 msgid "edit"
32707 msgstr ""
32708
32709 # type: =head2
32710 #. type: =head2
32711 #: ../fish/guestfish-commands.pod:73
32712 msgid "vi"
32713 msgstr ""
32714
32715 # type: =head2
32716 #. type: =head2
32717 #: ../fish/guestfish-commands.pod:75
32718 msgid "emacs"
32719 msgstr ""
32720
32721 # type: verbatim
32722 #. type: verbatim
32723 #: ../fish/guestfish-commands.pod:77
32724 #, no-wrap
32725 msgid ""
32726 " edit filename\n"
32727 "\n"
32728 msgstr ""
32729
32730 # type: textblock
32731 #. type: textblock
32732 #: ../fish/guestfish-commands.pod:79
32733 msgid ""
32734 "This is used to edit a file.  It downloads the file, edits it locally using "
32735 "your editor, then uploads the result."
32736 msgstr ""
32737
32738 # type: textblock
32739 #. type: textblock
32740 #: ../fish/guestfish-commands.pod:82
32741 msgid ""
32742 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
32743 "or C<emacs> you will get those corresponding editors."
32744 msgstr ""
32745
32746 # type: =head2
32747 #. type: =head2
32748 #: ../fish/guestfish-commands.pod:86
32749 msgid "glob"
32750 msgstr ""
32751
32752 # type: verbatim
32753 #. type: verbatim
32754 #: ../fish/guestfish-commands.pod:88
32755 #, no-wrap
32756 msgid ""
32757 " glob command args...\n"
32758 "\n"
32759 msgstr ""
32760
32761 # type: textblock
32762 #. type: textblock
32763 #: ../fish/guestfish-commands.pod:90
32764 msgid ""
32765 "Expand wildcards in any paths in the args list, and run C<command> "
32766 "repeatedly on each matching path."
32767 msgstr ""
32768
32769 # type: textblock
32770 #. type: textblock
32771 #: ../fish/guestfish-commands.pod:93
32772 msgid "See L</WILDCARDS AND GLOBBING>."
32773 msgstr ""
32774
32775 # type: =head2
32776 #. type: =head2
32777 #: ../fish/guestfish-commands.pod:95
32778 msgid "hexedit"
32779 msgstr ""
32780
32781 # type: verbatim
32782 #. type: verbatim
32783 #: ../fish/guestfish-commands.pod:97
32784 #, no-wrap
32785 msgid ""
32786 " hexedit <filename|device>\n"
32787 " hexedit <filename|device> <max>\n"
32788 " hexedit <filename|device> <start> <max>\n"
32789 "\n"
32790 msgstr ""
32791
32792 # type: textblock
32793 #. type: textblock
32794 #: ../fish/guestfish-commands.pod:101
32795 msgid ""
32796 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
32797 "device."
32798 msgstr ""
32799
32800 # type: textblock
32801 #. type: textblock
32802 #: ../fish/guestfish-commands.pod:104
32803 msgid ""
32804 "This command works by downloading potentially the whole file or device, "
32805 "editing it locally, then uploading it.  If the file or device is large, you "
32806 "have to specify which part you wish to edit by using C<max> and/or C<start> "
32807 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
32808 "usual modifiers allowed such as C<1M> (1 megabyte)."
32809 msgstr ""
32810
32811 # type: textblock
32812 #. type: textblock
32813 #: ../fish/guestfish-commands.pod:111
32814 msgid "For example to edit the first few sectors of a disk you might do:"
32815 msgstr ""
32816
32817 # type: verbatim
32818 #. type: verbatim
32819 #: ../fish/guestfish-commands.pod:114
32820 #, no-wrap
32821 msgid ""
32822 " hexedit /dev/sda 1M\n"
32823 "\n"
32824 msgstr ""
32825
32826 # type: textblock
32827 #. type: textblock
32828 #: ../fish/guestfish-commands.pod:116
32829 msgid ""
32830 "which would allow you to edit anywhere within the first megabyte of the disk."
32831 msgstr ""
32832
32833 # type: textblock
32834 #. type: textblock
32835 #: ../fish/guestfish-commands.pod:119
32836 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
32837 msgstr ""
32838
32839 # type: verbatim
32840 #. type: verbatim
32841 #: ../fish/guestfish-commands.pod:121
32842 #, no-wrap
32843 msgid ""
32844 " hexedit /dev/sda1 0x400 0x400\n"
32845 "\n"
32846 msgstr ""
32847
32848 # type: textblock
32849 #. type: textblock
32850 #: ../fish/guestfish-commands.pod:123
32851 msgid "(assuming the superblock is in the standard location)."
32852 msgstr ""
32853
32854 # type: textblock
32855 #. type: textblock
32856 #: ../fish/guestfish-commands.pod:125
32857 msgid ""
32858 "This command requires the external L<hexedit(1)> program.  You can specify "
32859 "another program to use by setting the C<HEXEDITOR> environment variable."
32860 msgstr ""
32861
32862 # type: textblock
32863 #. type: textblock
32864 #: ../fish/guestfish-commands.pod:129
32865 msgid "See also L</hexdump>."
32866 msgstr ""
32867
32868 # type: =head2
32869 #. type: =head2
32870 #: ../fish/guestfish-commands.pod:131
32871 msgid "lcd"
32872 msgstr ""
32873
32874 # type: verbatim
32875 #. type: verbatim
32876 #: ../fish/guestfish-commands.pod:133
32877 #, no-wrap
32878 msgid ""
32879 " lcd directory\n"
32880 "\n"
32881 msgstr ""
32882
32883 # type: textblock
32884 #. type: textblock
32885 #: ../fish/guestfish-commands.pod:135
32886 msgid ""
32887 "Change the local directory, ie. the current directory of guestfish itself."
32888 msgstr ""
32889
32890 # type: textblock
32891 #. type: textblock
32892 #: ../fish/guestfish-commands.pod:138
32893 msgid "Note that C<!cd> won't do what you might expect."
32894 msgstr ""
32895
32896 # type: =head2
32897 #. type: =head2
32898 #: ../fish/guestfish-commands.pod:140
32899 msgid "man"
32900 msgstr ""
32901
32902 # type: =head2
32903 #. type: =head2
32904 #: ../fish/guestfish-commands.pod:142
32905 msgid "manual"
32906 msgstr ""
32907
32908 # type: verbatim
32909 #. type: verbatim
32910 #: ../fish/guestfish-commands.pod:144
32911 #, no-wrap
32912 msgid ""
32913 "  man\n"
32914 "\n"
32915 msgstr ""
32916
32917 # type: textblock
32918 #. type: textblock
32919 #: ../fish/guestfish-commands.pod:146
32920 msgid "Opens the manual page for guestfish."
32921 msgstr ""
32922
32923 # type: =head2
32924 #. type: =head2
32925 #: ../fish/guestfish-commands.pod:148
32926 msgid "more"
32927 msgstr ""
32928
32929 # type: =head2
32930 #. type: =head2
32931 #: ../fish/guestfish-commands.pod:150
32932 msgid "less"
32933 msgstr ""
32934
32935 # type: verbatim
32936 #. type: verbatim
32937 #: ../fish/guestfish-commands.pod:152
32938 #, no-wrap
32939 msgid ""
32940 " more filename\n"
32941 "\n"
32942 msgstr ""
32943
32944 # type: verbatim
32945 #. type: verbatim
32946 #: ../fish/guestfish-commands.pod:154
32947 #, no-wrap
32948 msgid ""
32949 " less filename\n"
32950 "\n"
32951 msgstr ""
32952
32953 # type: textblock
32954 #. type: textblock
32955 #: ../fish/guestfish-commands.pod:156
32956 msgid "This is used to view a file."
32957 msgstr ""
32958
32959 # type: textblock
32960 #. type: textblock
32961 #: ../fish/guestfish-commands.pod:158
32962 msgid ""
32963 "The default viewer is C<$PAGER>.  However if you use the alternate command "
32964 "C<less> you will get the C<less> command specifically."
32965 msgstr ""
32966
32967 # type: =head2
32968 #. type: =head2
32969 #: ../fish/guestfish-commands.pod:161
32970 msgid "reopen"
32971 msgstr ""
32972
32973 # type: verbatim
32974 #. type: verbatim
32975 #: ../fish/guestfish-commands.pod:163
32976 #, no-wrap
32977 msgid ""
32978 "  reopen\n"
32979 "\n"
32980 msgstr ""
32981
32982 # type: textblock
32983 #. type: textblock
32984 #: ../fish/guestfish-commands.pod:165
32985 msgid ""
32986 "Close and reopen the libguestfs handle.  It is not necessary to use this "
32987 "normally, because the handle is closed properly when guestfish exits.  "
32988 "However this is occasionally useful for testing."
32989 msgstr ""
32990
32991 # type: =head2
32992 #. type: =head2
32993 #: ../fish/guestfish-commands.pod:169
32994 msgid "sparse"
32995 msgstr ""
32996
32997 # type: verbatim
32998 #. type: verbatim
32999 #: ../fish/guestfish-commands.pod:171
33000 #, no-wrap
33001 msgid ""
33002 " sparse filename size\n"
33003 "\n"
33004 msgstr ""
33005
33006 # type: textblock
33007 #. type: textblock
33008 #: ../fish/guestfish-commands.pod:173
33009 msgid ""
33010 "This creates an empty sparse file of the given size, and then adds so it can "
33011 "be further examined."
33012 msgstr ""
33013
33014 # type: textblock
33015 #. type: textblock
33016 #: ../fish/guestfish-commands.pod:176
33017 msgid ""
33018 "In all respects it works the same as the L</alloc> command, except that the "
33019 "image file is allocated sparsely, which means that disk blocks are not "
33020 "assigned to the file until they are needed.  Sparse disk files only use "
33021 "space when written to, but they are slower and there is a danger you could "
33022 "run out of real disk space during a write operation."
33023 msgstr ""
33024
33025 # type: =head2
33026 #. type: =head2
33027 #: ../fish/guestfish-commands.pod:186
33028 msgid "supported"
33029 msgstr ""
33030
33031 # type: verbatim
33032 #. type: verbatim
33033 #: ../fish/guestfish-commands.pod:188
33034 #, no-wrap
33035 msgid ""
33036 " supported\n"
33037 "\n"
33038 msgstr ""
33039
33040 # type: textblock
33041 #. type: textblock
33042 #: ../fish/guestfish-commands.pod:190
33043 msgid ""
33044 "This command returns a list of the optional groups known to the daemon, and "
33045 "indicates which ones are supported by this build of the libguestfs appliance."
33046 msgstr ""
33047
33048 # type: textblock
33049 #. type: textblock
33050 #: ../fish/guestfish-commands.pod:194
33051 msgid "See also L<guestfs(3)/AVAILABILITY>."
33052 msgstr ""
33053
33054 # type: =head2
33055 #. type: =head2
33056 #: ../fish/guestfish-commands.pod:196
33057 msgid "time"
33058 msgstr ""
33059
33060 # type: verbatim
33061 #. type: verbatim
33062 #: ../fish/guestfish-commands.pod:198
33063 #, no-wrap
33064 msgid ""
33065 " time command args...\n"
33066 "\n"
33067 msgstr ""
33068
33069 # type: textblock
33070 #. type: textblock
33071 #: ../fish/guestfish-commands.pod:200
33072 msgid ""
33073 "Run the command as usual, but print the elapsed time afterwards.  This can "
33074 "be useful for benchmarking operations."
33075 msgstr ""
33076
33077 # type: textblock
33078 #. type: textblock
33079 #: ../test-tool/libguestfs-test-tool.pod:5
33080 msgid "libguestfs-test-tool - End user tests for libguestfs"
33081 msgstr ""
33082
33083 # type: verbatim
33084 #. type: verbatim
33085 #: ../test-tool/libguestfs-test-tool.pod:9
33086 #, no-wrap
33087 msgid ""
33088 " libguestfs-test-tool [--options]\n"
33089 "\n"
33090 msgstr ""
33091
33092 # type: textblock
33093 #. type: textblock
33094 #: ../test-tool/libguestfs-test-tool.pod:13
33095 msgid ""
33096 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
33097 "and developers, to allow them to check basic libguestfs functionality is "
33098 "working.  This is needed because libguestfs occasionally breaks for reasons "
33099 "beyond our control: usually because of changes in the underlying qemu or "
33100 "kernel packages, or the host environment."
33101 msgstr ""
33102
33103 # type: textblock
33104 #. type: textblock
33105 #: ../test-tool/libguestfs-test-tool.pod:20
33106 msgid "If you suspect a problem in libguestfs, then just run:"
33107 msgstr ""
33108
33109 # type: verbatim
33110 #. type: verbatim
33111 #: ../test-tool/libguestfs-test-tool.pod:22
33112 #, no-wrap
33113 msgid ""
33114 " libguestfs-test-tool\n"
33115 "\n"
33116 msgstr ""
33117
33118 # type: textblock
33119 #. type: textblock
33120 #: ../test-tool/libguestfs-test-tool.pod:24
33121 msgid "It will print lots of diagnostic messages."
33122 msgstr ""
33123
33124 # type: textblock
33125 #. type: textblock
33126 #: ../test-tool/libguestfs-test-tool.pod:26
33127 msgid "If it runs to completion successfully, you will see this near the end:"
33128 msgstr ""
33129
33130 # type: verbatim
33131 #. type: verbatim
33132 #: ../test-tool/libguestfs-test-tool.pod:28
33133 #, no-wrap
33134 msgid ""
33135 " ===== TEST FINISHED OK =====\n"
33136 "\n"
33137 msgstr ""
33138
33139 # type: textblock
33140 #. type: textblock
33141 #: ../test-tool/libguestfs-test-tool.pod:30
33142 msgid "and the test tool will exit with code 0."
33143 msgstr ""
33144
33145 # type: textblock
33146 #. type: textblock
33147 #: ../test-tool/libguestfs-test-tool.pod:32
33148 msgid ""
33149 "If it fails (and/or exits with non-zero error code), please paste the "
33150 "B<complete, unedited> output of the test tool into a bug report.  More "
33151 "information about reporting bugs can be found on the L<http://libguestfs.org/"
33152 "> website."
33153 msgstr ""
33154
33155 # type: =item
33156 #. type: =item
33157 #: ../test-tool/libguestfs-test-tool.pod:41
33158 msgid "I<--help>"
33159 msgstr ""
33160
33161 # type: textblock
33162 #. type: textblock
33163 #: ../test-tool/libguestfs-test-tool.pod:43
33164 msgid "Display short usage information and exit."
33165 msgstr ""
33166
33167 # type: =item
33168 #. type: =item
33169 #: ../test-tool/libguestfs-test-tool.pod:45
33170 msgid "I<--qemu qemu_binary>"
33171 msgstr ""
33172
33173 # type: textblock
33174 #. type: textblock
33175 #: ../test-tool/libguestfs-test-tool.pod:47
33176 msgid ""
33177 "If you have downloaded another qemu binary, point this option at the full "
33178 "path of the binary to try it."
33179 msgstr ""
33180
33181 # type: =item
33182 #. type: =item
33183 #: ../test-tool/libguestfs-test-tool.pod:50
33184 msgid "I<--qemudir qemu_source_dir>"
33185 msgstr ""
33186
33187 # type: textblock
33188 #. type: textblock
33189 #: ../test-tool/libguestfs-test-tool.pod:52
33190 msgid ""
33191 "If you have compiled qemu from source, point this option at the source "
33192 "directory to try it."
33193 msgstr ""
33194
33195 # type: =item
33196 #. type: =item
33197 #: ../test-tool/libguestfs-test-tool.pod:55
33198 msgid "I<--timeout N>"
33199 msgstr ""
33200
33201 # type: textblock
33202 #. type: textblock
33203 #: ../test-tool/libguestfs-test-tool.pod:57
33204 msgid ""
33205 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
33206 "does not usually need to be adjusted unless your machine is very slow."
33207 msgstr ""
33208
33209 # type: =head1
33210 #. type: =head1
33211 #: ../test-tool/libguestfs-test-tool.pod:63
33212 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
33213 msgstr ""
33214
33215 # type: textblock
33216 #. type: textblock
33217 #: ../test-tool/libguestfs-test-tool.pod:65
33218 msgid ""
33219 "If you have compiled another version of qemu from source and would like to "
33220 "try that, then you can use the I<--qemudir> option to point to the qemu "
33221 "source directory."
33222 msgstr ""
33223
33224 # type: textblock
33225 #. type: textblock
33226 #: ../test-tool/libguestfs-test-tool.pod:69
33227 msgid ""
33228 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
33229 "option to point to the binary."
33230 msgstr ""
33231
33232 # type: textblock
33233 #. type: textblock
33234 #: ../test-tool/libguestfs-test-tool.pod:72
33235 msgid ""
33236 "When using an alternate qemu with libguestfs, usually you would need to "
33237 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
33238 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
33239 "use either of the I<--qemudir> or I<--qemu> options."
33240 msgstr ""
33241
33242 # type: textblock
33243 #. type: textblock
33244 #: ../test-tool/libguestfs-test-tool.pod:79
33245 msgid ""
33246 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
33247 "I<1> if there was an error."
33248 msgstr ""
33249
33250 # type: textblock
33251 #. type: textblock
33252 #: ../test-tool/libguestfs-test-tool.pod:84
33253 msgid ""
33254 "For the full list of environment variables which may affect libguestfs, "
33255 "please see the L<guestfs(3)> manual page."
33256 msgstr ""
33257
33258 # type: textblock
33259 #. type: textblock
33260 #: ../test-tool/libguestfs-test-tool.pod:89
33261 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
33262 msgstr ""
33263
33264 # type: textblock
33265 #. type: textblock
33266 #: ../fuse/guestmount.pod:5
33267 msgid ""
33268 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
33269 msgstr ""
33270
33271 # type: verbatim
33272 #. type: verbatim
33273 #: ../fuse/guestmount.pod:9
33274 #, no-wrap
33275 msgid ""
33276 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
33277 "\n"
33278 msgstr ""
33279
33280 # type: verbatim
33281 #. type: verbatim
33282 #: ../fuse/guestmount.pod:11
33283 #, no-wrap
33284 msgid ""
33285 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
33286 "\n"
33287 msgstr ""
33288
33289 # type: verbatim
33290 #. type: verbatim
33291 #: ../fuse/guestmount.pod:13
33292 #, no-wrap
33293 msgid ""
33294 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
33295 "\n"
33296 msgstr ""
33297
33298 # type: textblock
33299 #. type: textblock
33300 #: ../fuse/guestmount.pod:17
33301 msgid ""
33302 "You must I<not> use C<guestmount> in read-write mode on live virtual "
33303 "machines.  If you do this, you risk disk corruption in the VM."
33304 msgstr ""
33305
33306 # type: textblock
33307 #. type: textblock
33308 #: ../fuse/guestmount.pod:22
33309 msgid ""
33310 "The guestmount program can be used to mount virtual machine filesystems and "
33311 "other disk images on the host.  It uses libguestfs for access to the guest "
33312 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
33313 "a mountable device."
33314 msgstr ""
33315
33316 # type: textblock
33317 #. type: textblock
33318 #: ../fuse/guestmount.pod:27
33319 msgid ""
33320 "Along with other options, you have to give at least one device (I<-a> "
33321 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
33322 "option) or use the I<-i> inspection option.  How this works is better "
33323 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
33324 "below."
33325 msgstr ""
33326
33327 # type: textblock
33328 #. type: textblock
33329 #: ../fuse/guestmount.pod:33
33330 msgid ""
33331 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
33332 "by you, and the filesystem will not be visible to any other users unless you "
33333 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
33334 "the filesystem, use the C<fusermount -u> command."
33335 msgstr ""
33336
33337 # type: textblock
33338 #. type: textblock
33339 #: ../fuse/guestmount.pod:41
33340 msgid ""
33341 "For a typical Windows guest which has its main filesystem on the first "
33342 "partition:"
33343 msgstr ""
33344
33345 # type: verbatim
33346 #. type: verbatim
33347 #: ../fuse/guestmount.pod:44
33348 #, no-wrap
33349 msgid ""
33350 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
33351 "\n"
33352 msgstr ""
33353
33354 # type: textblock
33355 #. type: textblock
33356 #: ../fuse/guestmount.pod:46
33357 msgid ""
33358 "For a typical Linux guest which has a /boot filesystem on the first "
33359 "partition, and the root filesystem on a logical volume:"
33360 msgstr ""
33361
33362 # type: verbatim
33363 #. type: verbatim
33364 #: ../fuse/guestmount.pod:49
33365 #, no-wrap
33366 msgid ""
33367 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
33368 "\n"
33369 msgstr ""
33370
33371 # type: textblock
33372 #. type: textblock
33373 #: ../fuse/guestmount.pod:51
33374 msgid "To get libguestfs to detect guest mountpoints for you:"
33375 msgstr ""
33376
33377 # type: verbatim
33378 #. type: verbatim
33379 #: ../fuse/guestmount.pod:53
33380 #, no-wrap
33381 msgid ""
33382 " guestmount -a guest.img -i --ro /mnt\n"
33383 "\n"
33384 msgstr ""
33385
33386 # type: textblock
33387 #. type: textblock
33388 #: ../fuse/guestmount.pod:55
33389 msgid "For a libvirt guest called \"Guest\" you could do:"
33390 msgstr ""
33391
33392 # type: verbatim
33393 #. type: verbatim
33394 #: ../fuse/guestmount.pod:57
33395 #, no-wrap
33396 msgid ""
33397 " guestmount -d Guest -i --ro /mnt\n"
33398 "\n"
33399 msgstr ""
33400
33401 # type: textblock
33402 #. type: textblock
33403 #: ../fuse/guestmount.pod:59
33404 msgid ""
33405 "If you don't know what filesystems are contained in a guest or disk image, "
33406 "use L<virt-filesystems(1)> first:"
33407 msgstr ""
33408
33409 # type: verbatim
33410 #. type: verbatim
33411 #: ../fuse/guestmount.pod:62
33412 #, no-wrap
33413 msgid ""
33414 " virt-filesystems MyGuest\n"
33415 "\n"
33416 msgstr ""
33417
33418 # type: textblock
33419 #. type: textblock
33420 #: ../fuse/guestmount.pod:64
33421 msgid ""
33422 "If you want to trace the libguestfs calls but without excessive debugging "
33423 "information, we recommend:"
33424 msgstr ""
33425
33426 # type: verbatim
33427 #. type: verbatim
33428 #: ../fuse/guestmount.pod:67
33429 #, no-wrap
33430 msgid ""
33431 " guestmount [...] --trace /mnt\n"
33432 "\n"
33433 msgstr ""
33434
33435 # type: textblock
33436 #. type: textblock
33437 #: ../fuse/guestmount.pod:69
33438 msgid "If you want to debug the program, we recommend:"
33439 msgstr ""
33440
33441 # type: verbatim
33442 #. type: verbatim
33443 #: ../fuse/guestmount.pod:71
33444 #, no-wrap
33445 msgid ""
33446 " guestmount [...] --trace --verbose /mnt\n"
33447 "\n"
33448 msgstr ""
33449
33450 #. type: =head1
33451 #: ../fuse/guestmount.pod:73
33452 msgid "NOTES"
33453 msgstr ""
33454
33455 #. type: =head2
33456 #: ../fuse/guestmount.pod:75
33457 msgid "Other users cannot see the filesystem by default"
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../fuse/guestmount.pod:77
33462 msgid ""
33463 "If you mount a filesystem as one user (eg. root), then other users will not "
33464 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
33465 "option when mounting:"
33466 msgstr ""
33467
33468 #. type: verbatim
33469 #: ../fuse/guestmount.pod:81
33470 #, no-wrap
33471 msgid ""
33472 " sudo guestmount [...] -o allow_other /mnt\n"
33473 "\n"
33474 msgstr ""
33475
33476 # type: =item
33477 #. type: =item
33478 #: ../fuse/guestmount.pod:87
33479 msgid "B<-a image> | B<--add image>"
33480 msgstr ""
33481
33482 # type: textblock
33483 #. type: textblock
33484 #: ../fuse/guestmount.pod:89
33485 msgid "Add a block device or virtual machine image."
33486 msgstr ""
33487
33488 # type: =item
33489 #. type: =item
33490 #: ../fuse/guestmount.pod:94
33491 msgid "B<-c URI> | B<--connect URI>"
33492 msgstr ""
33493
33494 # type: =item
33495 #. type: =item
33496 #: ../fuse/guestmount.pod:100
33497 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
33498 msgstr ""
33499
33500 # type: =item
33501 #. type: =item
33502 #: ../fuse/guestmount.pod:108
33503 msgid "B<--dir-cache-timeout N>"
33504 msgstr ""
33505
33506 # type: textblock
33507 #. type: textblock
33508 #: ../fuse/guestmount.pod:110
33509 msgid ""
33510 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
33511 "seconds.  The readdir cache [actually, there are several semi-independent "
33512 "caches] is populated after a readdir(2) call with the stat and extended "
33513 "attributes of the files in the directory, in anticipation that they will be "
33514 "requested soon after."
33515 msgstr ""
33516
33517 # type: textblock
33518 #. type: textblock
33519 #: ../fuse/guestmount.pod:116
33520 msgid ""
33521 "There is also a different attribute cache implemented by FUSE (see the FUSE "
33522 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
33523 "requests, only cache existing ones."
33524 msgstr ""
33525
33526 # type: =item
33527 #. type: =item
33528 #: ../fuse/guestmount.pod:127
33529 msgid "B<--format=raw|qcow2|..> | B<--format>"
33530 msgstr ""
33531
33532 # type: textblock
33533 #. type: textblock
33534 #: ../fuse/guestmount.pod:134
33535 msgid ""
33536 "If you have untrusted raw-format guest disk images, you should use this "
33537 "option to specify the disk format.  This avoids a possible security problem "
33538 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
33539 "guestfs_add_drive_opts>."
33540 msgstr ""
33541
33542 # type: =item
33543 #. type: =item
33544 #: ../fuse/guestmount.pod:139
33545 msgid "B<--fuse-help>"
33546 msgstr ""
33547
33548 # type: textblock
33549 #. type: textblock
33550 #: ../fuse/guestmount.pod:141
33551 msgid "Display help on special FUSE options (see I<-o> below)."
33552 msgstr ""
33553
33554 # type: textblock
33555 #. type: textblock
33556 #: ../fuse/guestmount.pod:145
33557 msgid "Display brief help and exit."
33558 msgstr ""
33559
33560 # type: =item
33561 #. type: =item
33562 #: ../fuse/guestmount.pod:147
33563 msgid "B<-i> | B<--inspector>"
33564 msgstr ""
33565
33566 # type: textblock
33567 #. type: textblock
33568 #: ../fuse/guestmount.pod:167
33569 msgid ""
33570 "Mount the named partition or logical volume on the given mountpoint B<in the "
33571 "guest> (this has nothing to do with mountpoints in the host)."
33572 msgstr ""
33573
33574 # type: textblock
33575 #. type: textblock
33576 #: ../fuse/guestmount.pod:170
33577 msgid ""
33578 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
33579 "something on C</>."
33580 msgstr ""
33581
33582 # type: =item
33583 #. type: =item
33584 #: ../fuse/guestmount.pod:183
33585 msgid "B<-n> | B<--no-sync>"
33586 msgstr ""
33587
33588 # type: textblock
33589 #. type: textblock
33590 #: ../fuse/guestmount.pod:185
33591 msgid ""
33592 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
33593 "unmounted.  If you specify this option, then we don't attempt to sync the "
33594 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
33595 msgstr ""
33596
33597 # type: =item
33598 #. type: =item
33599 #: ../fuse/guestmount.pod:190
33600 msgid "B<-o option> | B<--option option>"
33601 msgstr ""
33602
33603 # type: textblock
33604 #. type: textblock
33605 #: ../fuse/guestmount.pod:192
33606 msgid "Pass extra options to FUSE."
33607 msgstr ""
33608
33609 # type: textblock
33610 #. type: textblock
33611 #: ../fuse/guestmount.pod:194
33612 msgid ""
33613 "To get a list of all the extra options supported by FUSE, use the command "
33614 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
33615 "of them are a good idea."
33616 msgstr ""
33617
33618 # type: verbatim
33619 #. type: verbatim
33620 #: ../fuse/guestmount.pod:198
33621 #, no-wrap
33622 msgid ""
33623 " guestmount --fuse-help\n"
33624 "\n"
33625 msgstr ""
33626
33627 # type: textblock
33628 #. type: textblock
33629 #: ../fuse/guestmount.pod:200
33630 msgid "Some potentially useful FUSE options:"
33631 msgstr ""
33632
33633 # type: =item
33634 #. type: =item
33635 #: ../fuse/guestmount.pod:204
33636 msgid "B<-o allow_other>"
33637 msgstr ""
33638
33639 # type: textblock
33640 #. type: textblock
33641 #: ../fuse/guestmount.pod:206
33642 msgid "Allow other users to see the filesystem."
33643 msgstr ""
33644
33645 # type: =item
33646 #. type: =item
33647 #: ../fuse/guestmount.pod:208
33648 msgid "B<-o attr_timeout=N>"
33649 msgstr ""
33650
33651 # type: textblock
33652 #. type: textblock
33653 #: ../fuse/guestmount.pod:210
33654 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
33655 msgstr ""
33656
33657 # type: =item
33658 #. type: =item
33659 #: ../fuse/guestmount.pod:212
33660 msgid "B<-o kernel_cache>"
33661 msgstr ""
33662
33663 # type: textblock
33664 #. type: textblock
33665 #: ../fuse/guestmount.pod:214
33666 msgid ""
33667 "Allow the kernel to cache files (reduces the number of reads that have to go "
33668 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
33669 "afford the extra memory usage."
33670 msgstr ""
33671
33672 # type: =item
33673 #. type: =item
33674 #: ../fuse/guestmount.pod:218
33675 msgid "B<-o uid=N> B<-o gid=N>"
33676 msgstr ""
33677
33678 # type: textblock
33679 #. type: textblock
33680 #: ../fuse/guestmount.pod:220
33681 msgid ""
33682 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
33683 "the chosen values."
33684 msgstr ""
33685
33686 # type: =item
33687 #. type: =item
33688 #: ../fuse/guestmount.pod:225
33689 msgid "B<-r> | B<--ro>"
33690 msgstr ""
33691
33692 # type: textblock
33693 #. type: textblock
33694 #: ../fuse/guestmount.pod:227
33695 msgid ""
33696 "Add devices and mount everything read-only.  Also disallow writes and make "
33697 "the disk appear read-only to FUSE."
33698 msgstr ""
33699
33700 # type: textblock
33701 #. type: textblock
33702 #: ../fuse/guestmount.pod:230
33703 msgid ""
33704 "This is highly recommended if you are not going to edit the guest disk.  If "
33705 "the guest is running and this option is I<not> supplied, then there is a "
33706 "strong risk of disk corruption in the guest.  We try to prevent this from "
33707 "happening, but it is not always possible."
33708 msgstr ""
33709
33710 # type: textblock
33711 #. type: textblock
33712 #: ../fuse/guestmount.pod:235
33713 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33714 msgstr ""
33715
33716 # type: textblock
33717 #. type: textblock
33718 #: ../fuse/guestmount.pod:239
33719 msgid "Enable SELinux support for the guest."
33720 msgstr ""
33721
33722 # type: =item
33723 #. type: =item
33724 #: ../fuse/guestmount.pod:241
33725 msgid "B<-v> | B<--verbose>"
33726 msgstr ""
33727
33728 # type: textblock
33729 #. type: textblock
33730 #: ../fuse/guestmount.pod:243
33731 msgid "Enable verbose messages from underlying libguestfs."
33732 msgstr ""
33733
33734 # type: =item
33735 #. type: =item
33736 #: ../fuse/guestmount.pod:245
33737 msgid "B<-V> | B<--version>"
33738 msgstr ""
33739
33740 # type: textblock
33741 #. type: textblock
33742 #: ../fuse/guestmount.pod:247
33743 msgid "Display the program version and exit."
33744 msgstr ""
33745
33746 # type: =item
33747 #. type: =item
33748 #: ../fuse/guestmount.pod:249
33749 msgid "B<-w> | B<--rw>"
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../fuse/guestmount.pod:254 ../fuse/guestmount.pod:275
33754 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
33755 msgstr ""
33756
33757 # type: =item
33758 #. type: =item
33759 #: ../fuse/guestmount.pod:256
33760 msgid "B<-x> | B<--trace>"
33761 msgstr ""
33762
33763 # type: textblock
33764 #. type: textblock
33765 #: ../fuse/guestmount.pod:258
33766 msgid "Trace libguestfs calls and entry into each FUSE function."
33767 msgstr ""
33768
33769 # type: textblock
33770 #. type: textblock
33771 #: ../fuse/guestmount.pod:260
33772 msgid "This also stops the daemon from forking into the background."
33773 msgstr ""
33774
33775 # type: textblock
33776 #. type: textblock
33777 #: ../fuse/guestmount.pod:281
33778 msgid ""
33779 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
33780 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
33781 "net/>."
33782 msgstr ""
33783
33784 # type: textblock
33785 #. type: textblock
33786 #: ../fuse/guestmount.pod:296
33787 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
33788 msgstr ""
33789
33790 # type: textblock
33791 #. type: textblock
33792 #: ../tools/virt-win-reg.pl:37
33793 msgid ""
33794 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
33795 msgstr ""
33796
33797 # type: verbatim
33798 #. type: verbatim
33799 #: ../tools/virt-win-reg.pl:41
33800 #, no-wrap
33801 msgid ""
33802 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
33803 "\n"
33804 msgstr ""
33805
33806 # type: verbatim
33807 #. type: verbatim
33808 #: ../tools/virt-win-reg.pl:43
33809 #, no-wrap
33810 msgid ""
33811 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
33812 "\n"
33813 msgstr ""
33814
33815 # type: verbatim
33816 #. type: verbatim
33817 #: ../tools/virt-win-reg.pl:45
33818 #, no-wrap
33819 msgid ""
33820 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
33821 "\n"
33822 msgstr ""
33823
33824 # type: verbatim
33825 #. type: verbatim
33826 #: ../tools/virt-win-reg.pl:47
33827 #, no-wrap
33828 msgid ""
33829 " virt-win-reg --merge domname [input.reg ...]\n"
33830 "\n"
33831 msgstr ""
33832
33833 # type: verbatim
33834 #. type: verbatim
33835 #: ../tools/virt-win-reg.pl:49
33836 #, no-wrap
33837 msgid ""
33838 " virt-win-reg [--options] disk.img ... # instead of domname\n"
33839 "\n"
33840 msgstr ""
33841
33842 #. type: textblock
33843 #: ../tools/virt-win-reg.pl:53
33844 msgid ""
33845 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
33846 "virtual machines.  If you do this, you I<will> get irreversible disk "
33847 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
33848 "but doesn't catch all cases."
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../tools/virt-win-reg.pl:58
33853 msgid ""
33854 "Modifying the Windows Registry is an inherently risky operation.  The format "
33855 "is deliberately obscure and undocumented, and Registry changes can leave the "
33856 "system unbootable.  Therefore when using the I<--merge> option, make sure "
33857 "you have a reliable backup first."
33858 msgstr ""
33859
33860 # type: textblock
33861 #. type: textblock
33862 #: ../tools/virt-win-reg.pl:65
33863 msgid ""
33864 "This program can export and merge Windows Registry entries from a Windows "
33865 "guest."
33866 msgstr ""
33867
33868 # type: textblock
33869 #. type: textblock
33870 #: ../tools/virt-win-reg.pl:68
33871 msgid ""
33872 "The first parameter is the libvirt guest name or the raw disk image of a "
33873 "Windows guest."
33874 msgstr ""
33875
33876 #. type: textblock
33877 #: ../tools/virt-win-reg.pl:71
33878 msgid ""
33879 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
33880 "exported (recursively).  For example:"
33881 msgstr ""
33882
33883 # type: verbatim
33884 #. type: verbatim
33885 #: ../tools/virt-win-reg.pl:74
33886 #, no-wrap
33887 msgid ""
33888 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
33889 "\n"
33890 msgstr ""
33891
33892 # type: textblock
33893 #. type: textblock
33894 #: ../tools/virt-win-reg.pl:76
33895 msgid ""
33896 "You can also display single values from within registry keys, for example:"
33897 msgstr ""
33898
33899 # type: verbatim
33900 #. type: verbatim
33901 #: ../tools/virt-win-reg.pl:79
33902 #, no-wrap
33903 msgid ""
33904 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
33905 " $ virt-win-reg Windows7 $cvkey ProductName\n"
33906 " Windows 7 Enterprise\n"
33907 "\n"
33908 msgstr ""
33909
33910 #. type: textblock
33911 #: ../tools/virt-win-reg.pl:83
33912 msgid ""
33913 "With I<--merge>, you can merge a textual regedit file into the Windows "
33914 "Registry:"
33915 msgstr ""
33916
33917 # type: verbatim
33918 #. type: verbatim
33919 #: ../tools/virt-win-reg.pl:86
33920 #, no-wrap
33921 msgid ""
33922 " $ virt-win-reg --merge Windows7 changes.reg\n"
33923 "\n"
33924 msgstr ""
33925
33926 # type: =head2
33927 #. type: =head1
33928 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
33929 msgid "NOTE"
33930 msgstr ""
33931
33932 # type: textblock
33933 #. type: textblock
33934 #: ../tools/virt-win-reg.pl:90
33935 msgid ""
33936 "This program is only meant for simple access to the registry.  If you want "
33937 "to do complicated things with the registry, we suggest you download the "
33938 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
33939 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
33940 "L<hivexregedit(1)>."
33941 msgstr ""
33942
33943 # type: textblock
33944 #. type: textblock
33945 #: ../tools/virt-win-reg.pl:106 ../tools/virt-list-filesystems.pl:63
33946 #: ../tools/virt-tar.pl:113 ../tools/virt-make-fs.pl:163
33947 #: ../tools/virt-list-partitions.pl:64
33948 msgid "Display brief help."
33949 msgstr ""
33950
33951 # type: textblock
33952 #. type: textblock
33953 #: ../tools/virt-win-reg.pl:114 ../tools/virt-list-filesystems.pl:71
33954 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
33955 #: ../tools/virt-list-partitions.pl:72
33956 msgid "Display version number and exit."
33957 msgstr ""
33958
33959 # type: =item
33960 #. type: =item
33961 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
33962 msgid "B<--debug>"
33963 msgstr ""
33964
33965 # type: textblock
33966 #. type: textblock
33967 #: ../tools/virt-win-reg.pl:122
33968 msgid "Enable debugging messages."
33969 msgstr ""
33970
33971 # type: =item
33972 #. type: =item
33973 #: ../tools/virt-win-reg.pl:128 ../tools/virt-list-filesystems.pl:77
33974 #: ../tools/virt-tar.pl:127 ../tools/virt-list-partitions.pl:78
33975 msgid "B<--connect URI> | B<-c URI>"
33976 msgstr ""
33977
33978 # type: textblock
33979 #. type: textblock
33980 #: ../tools/virt-win-reg.pl:130 ../tools/virt-list-filesystems.pl:79
33981 #: ../tools/virt-tar.pl:129 ../tools/virt-list-partitions.pl:80
33982 msgid ""
33983 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
33984 "to the default libvirt hypervisor."
33985 msgstr ""
33986
33987 # type: textblock
33988 #. type: textblock
33989 #: ../tools/virt-win-reg.pl:133 ../tools/virt-list-filesystems.pl:82
33990 #: ../tools/virt-tar.pl:132 ../tools/virt-list-partitions.pl:83
33991 msgid ""
33992 "If you specify guest block devices directly, then libvirt is not used at all."
33993 msgstr ""
33994
33995 # type: =item
33996 #. type: =item
33997 #: ../tools/virt-win-reg.pl:140 ../tools/virt-list-filesystems.pl:89
33998 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
33999 msgid "B<--format> raw"
34000 msgstr ""
34001
34002 # type: textblock
34003 #. type: textblock
34004 #: ../tools/virt-win-reg.pl:142 ../tools/virt-list-filesystems.pl:91
34005 #: ../tools/virt-tar.pl:141 ../tools/virt-list-partitions.pl:92
34006 msgid ""
34007 "Specify the format of disk images given on the command line.  If this is "
34008 "omitted then the format is autodetected from the content of the disk image."
34009 msgstr ""
34010
34011 # type: textblock
34012 #. type: textblock
34013 #: ../tools/virt-win-reg.pl:146 ../tools/virt-list-filesystems.pl:95
34014 #: ../tools/virt-tar.pl:145 ../tools/virt-list-partitions.pl:96
34015 msgid ""
34016 "If disk images are requested from libvirt, then this program asks libvirt "
34017 "for this information.  In this case, the value of the format parameter is "
34018 "ignored."
34019 msgstr ""
34020
34021 # type: textblock
34022 #. type: textblock
34023 #: ../tools/virt-win-reg.pl:150 ../tools/virt-list-filesystems.pl:99
34024 #: ../tools/virt-tar.pl:149 ../tools/virt-list-partitions.pl:100
34025 msgid ""
34026 "If working with untrusted raw-format guest disk images, you should ensure "
34027 "the format is always specified."
34028 msgstr ""
34029
34030 # type: =item
34031 #. type: =item
34032 #: ../tools/virt-win-reg.pl:157
34033 msgid "B<--merge>"
34034 msgstr ""
34035
34036 # type: textblock
34037 #. type: textblock
34038 #: ../tools/virt-win-reg.pl:159
34039 msgid ""
34040 "In merge mode, this merges a textual regedit file into the Windows Registry "
34041 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
34042 "displays or exports Registry entries instead."
34043 msgstr ""
34044
34045 #. type: textblock
34046 #: ../tools/virt-win-reg.pl:163
34047 msgid ""
34048 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
34049 "result in disk corruption.  However exporting (without this flag)  is always "
34050 "safe."
34051 msgstr ""
34052
34053 # type: =item
34054 #. type: =item
34055 #: ../tools/virt-win-reg.pl:171
34056 msgid "B<--encoding> UTF-16LE|ASCII"
34057 msgstr ""
34058
34059 # type: textblock
34060 #. type: textblock
34061 #: ../tools/virt-win-reg.pl:173
34062 msgid ""
34063 "When merging (only), you may need to specify the encoding for strings to be "
34064 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
34065 "(3)/ENCODING STRINGS>."
34066 msgstr ""
34067
34068 # type: textblock
34069 #. type: textblock
34070 #: ../tools/virt-win-reg.pl:177
34071 msgid ""
34072 "The default is to use UTF-16LE, which should work with recent versions of "
34073 "Windows."
34074 msgstr ""
34075
34076 #. type: =item
34077 #: ../tools/virt-win-reg.pl:184
34078 msgid "B<--unsafe-printable-strings>"
34079 msgstr ""
34080
34081 #. type: textblock
34082 #: ../tools/virt-win-reg.pl:186
34083 msgid ""
34084 "When exporting (only), assume strings are UTF-16LE and print them as strings "
34085 "instead of hex sequences.  Remove the final zero codepoint from strings if "
34086 "present."
34087 msgstr ""
34088
34089 #. type: textblock
34090 #: ../tools/virt-win-reg.pl:190
34091 msgid ""
34092 "This is unsafe and does not preserve the fidelity of strings in the original "
34093 "Registry for various reasons:"
34094 msgstr ""
34095
34096 #. type: textblock
34097 #: ../tools/virt-win-reg.pl:197
34098 msgid ""
34099 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
34100 "other encodings will be corrupted by this transformation."
34101 msgstr ""
34102
34103 #. type: textblock
34104 #: ../tools/virt-win-reg.pl:202
34105 msgid ""
34106 "Assumes that everything which has type 1 or 2 is really a string and that "
34107 "everything else is not a string, but the type field in real Registries is "
34108 "not reliable."
34109 msgstr ""
34110
34111 #. type: textblock
34112 #: ../tools/virt-win-reg.pl:208
34113 msgid ""
34114 "Loses information about whether a zero codepoint followed the string in the "
34115 "Registry or not."
34116 msgstr ""
34117
34118 #. type: textblock
34119 #: ../tools/virt-win-reg.pl:213
34120 msgid ""
34121 "This all happens because the Registry itself contains no information about "
34122 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
34123 msgstr ""
34124
34125 #. type: textblock
34126 #: ../tools/virt-win-reg.pl:217
34127 msgid ""
34128 "You should only use this option for quick hacking and debugging of the "
34129 "Registry contents, and I<never> use it if the output is going to be passed "
34130 "into another program or stored in another Registry."
34131 msgstr ""
34132
34133 # type: =head2
34134 #. type: =head1
34135 #: ../tools/virt-win-reg.pl:554
34136 msgid "SUPPORTED SYSTEMS"
34137 msgstr ""
34138
34139 # type: textblock
34140 #. type: textblock
34141 #: ../tools/virt-win-reg.pl:556
34142 msgid ""
34143 "The program currently supports Windows NT-derived guests starting with "
34144 "Windows XP through to at least Windows 7."
34145 msgstr ""
34146
34147 #. type: textblock
34148 #: ../tools/virt-win-reg.pl:559
34149 msgid "The following Registry keys are supported:"
34150 msgstr ""
34151
34152 #. type: =item
34153 #: ../tools/virt-win-reg.pl:563
34154 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
34155 msgstr ""
34156
34157 #. type: =item
34158 #: ../tools/virt-win-reg.pl:565
34159 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
34160 msgstr ""
34161
34162 #. type: =item
34163 #: ../tools/virt-win-reg.pl:567
34164 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
34165 msgstr ""
34166
34167 #. type: =item
34168 #: ../tools/virt-win-reg.pl:569
34169 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
34170 msgstr ""
34171
34172 #. type: =item
34173 #: ../tools/virt-win-reg.pl:571
34174 msgid "C<HKEY_USERS\\.DEFAULT>"
34175 msgstr ""
34176
34177 #. type: =item
34178 #: ../tools/virt-win-reg.pl:573
34179 msgid "C<HKEY_USERS\\I<SID>>"
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../tools/virt-win-reg.pl:575
34184 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
34185 msgstr ""
34186
34187 #. type: =item
34188 #: ../tools/virt-win-reg.pl:577
34189 msgid "C<HKEY_USERS\\I<username>>"
34190 msgstr ""
34191
34192 #. type: textblock
34193 #: ../tools/virt-win-reg.pl:579
34194 msgid ""
34195 "where I<username> is a local user name (this is a libguestfs extension)."
34196 msgstr ""
34197
34198 # type: textblock
34199 #. type: textblock
34200 #: ../tools/virt-win-reg.pl:583
34201 msgid ""
34202 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
34203 "C<HKEY_USERS>."
34204 msgstr ""
34205
34206 #. type: textblock
34207 #: ../tools/virt-win-reg.pl:586
34208 msgid ""
34209 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
34210 "supported (there is no \"current user\")."
34211 msgstr ""
34212
34213 # type: =head2
34214 #. type: =head1
34215 #: ../tools/virt-win-reg.pl:589
34216 msgid "ENCODING"
34217 msgstr ""
34218
34219 # type: textblock
34220 #. type: textblock
34221 #: ../tools/virt-win-reg.pl:591
34222 msgid ""
34223 "C<virt-win-reg> expects that regedit files have already been reencoded in "
34224 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
34225 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
34226 "Windows-style line endings, you may need to reencode the whole file before "
34227 "or after processing."
34228 msgstr ""
34229
34230 #. type: textblock
34231 #: ../tools/virt-win-reg.pl:597
34232 msgid ""
34233 "To reencode a file from Windows format to Linux (before processing it with "
34234 "the I<--merge> option), you would do something like this:"
34235 msgstr ""
34236
34237 # type: verbatim
34238 #. type: verbatim
34239 #: ../tools/virt-win-reg.pl:600
34240 #, no-wrap
34241 msgid ""
34242 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
34243 "\n"
34244 msgstr ""
34245
34246 # type: textblock
34247 #. type: textblock
34248 #: ../tools/virt-win-reg.pl:602
34249 msgid ""
34250 "To go in the opposite direction, after exporting and before sending the file "
34251 "to a Windows user, do something like this:"
34252 msgstr ""
34253
34254 # type: verbatim
34255 #. type: verbatim
34256 #: ../tools/virt-win-reg.pl:605
34257 #, no-wrap
34258 msgid ""
34259 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
34260 "\n"
34261 msgstr ""
34262
34263 # type: textblock
34264 #. type: textblock
34265 #: ../tools/virt-win-reg.pl:607
34266 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
34267 msgstr ""
34268
34269 # type: textblock
34270 #. type: textblock
34271 #: ../tools/virt-win-reg.pl:609
34272 msgid ""
34273 "If you are unsure about the current encoding, use the L<file(1)> command.  "
34274 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
34275 "style (CRLF) line endings, like this:"
34276 msgstr ""
34277
34278 # type: verbatim
34279 #. type: verbatim
34280 #: ../tools/virt-win-reg.pl:613
34281 #, no-wrap
34282 msgid ""
34283 " $ file software.reg\n"
34284 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
34285 " with CRLF line terminators\n"
34286 "\n"
34287 msgstr ""
34288
34289 #. type: textblock
34290 #: ../tools/virt-win-reg.pl:617
34291 msgid "This file would need conversion before you could I<--merge> it."
34292 msgstr ""
34293
34294 # type: =head2
34295 #. type: =head1
34296 #: ../tools/virt-win-reg.pl:619
34297 msgid "CurrentControlSet etc."
34298 msgstr ""
34299
34300 # type: textblock
34301 #. type: textblock
34302 #: ../tools/virt-win-reg.pl:621
34303 msgid ""
34304 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
34305 "Registry at the level of the hive file, and therefore you cannot modify "
34306 "these."
34307 msgstr ""
34308
34309 # type: textblock
34310 #. type: textblock
34311 #: ../tools/virt-win-reg.pl:625
34312 msgid ""
34313 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
34314 "circumstances it might refer to another control set.  The way to find out is "
34315 "to look at the C<HKLM\\SYSTEM\\Select> key:"
34316 msgstr ""
34317
34318 # type: verbatim
34319 #. type: verbatim
34320 #: ../tools/virt-win-reg.pl:629
34321 #, no-wrap
34322 msgid ""
34323 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
34324 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
34325 " \"Current\"=dword:00000001\n"
34326 " \"Default\"=dword:00000001\n"
34327 " \"Failed\"=dword:00000000\n"
34328 " \"LastKnownGood\"=dword:00000002\n"
34329 "\n"
34330 msgstr ""
34331
34332 # type: textblock
34333 #. type: textblock
34334 #: ../tools/virt-win-reg.pl:636
34335 msgid "\"Current\" is the one which Windows will choose when it boots."
34336 msgstr ""
34337
34338 # type: textblock
34339 #. type: textblock
34340 #: ../tools/virt-win-reg.pl:638
34341 msgid ""
34342 "Similarly, other C<Current...> keys in the path may need to be replaced."
34343 msgstr ""
34344
34345 # type: =head1
34346 #. type: =head1
34347 #: ../tools/virt-win-reg.pl:641
34348 msgid "WINDOWS TIPS"
34349 msgstr ""
34350
34351 # type: textblock
34352 #. type: textblock
34353 #: ../tools/virt-win-reg.pl:643
34354 msgid ""
34355 "Note that some of these tips modify the guest disk image.  The guest I<must> "
34356 "be shut off, else you will get disk corruption."
34357 msgstr ""
34358
34359 # type: =head2
34360 #. type: =head2
34361 #: ../tools/virt-win-reg.pl:646
34362 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
34363 msgstr ""
34364
34365 # type: textblock
34366 #. type: textblock
34367 #: ../tools/virt-win-reg.pl:648
34368 msgid ""
34369 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
34370 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
34371 "is uploaded into C<C:\\>:"
34372 msgstr ""
34373
34374 # type: verbatim
34375 #. type: verbatim
34376 #: ../tools/virt-win-reg.pl:652
34377 #, no-wrap
34378 msgid ""
34379 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
34380 "\n"
34381 msgstr ""
34382
34383 # type: textblock
34384 #. type: textblock
34385 #: ../tools/virt-win-reg.pl:654
34386 msgid "Prepare a regedit file containing the registry change:"
34387 msgstr ""
34388
34389 # type: verbatim
34390 #. type: verbatim
34391 #: ../tools/virt-win-reg.pl:656
34392 #, no-wrap
34393 msgid ""
34394 " cat > test.reg <<'EOF'\n"
34395 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
34396 " \"Test\"=\"c:\\\\test.bat\"\n"
34397 " EOF\n"
34398 "\n"
34399 msgstr ""
34400
34401 # type: textblock
34402 #. type: textblock
34403 #: ../tools/virt-win-reg.pl:661
34404 msgid ""
34405 "In this example we use the key C<RunOnce> which means that the script will "
34406 "run precisely once when the first user logs in.  If you want it to run every "
34407 "time a user logs in, replace C<RunOnce> with C<Run>."
34408 msgstr ""
34409
34410 # type: textblock
34411 #. type: textblock
34412 #: ../tools/virt-win-reg.pl:665
34413 msgid "Now update the registry:"
34414 msgstr ""
34415
34416 # type: verbatim
34417 #. type: verbatim
34418 #: ../tools/virt-win-reg.pl:667
34419 #, no-wrap
34420 msgid ""
34421 " virt-win-reg --merge WindowsGuest test.reg\n"
34422 "\n"
34423 msgstr ""
34424
34425 # type: =head2
34426 #. type: =head2
34427 #: ../tools/virt-win-reg.pl:669
34428 msgid "INSTALLING A SERVICE"
34429 msgstr ""
34430
34431 # type: textblock
34432 #. type: textblock
34433 #: ../tools/virt-win-reg.pl:671
34434 msgid ""
34435 "This section assumes you are familiar with Windows services, and you either "
34436 "have a program which handles the Windows Service Control Protocol directly "
34437 "or you want to run any program using a service wrapper like SrvAny or the "
34438 "free RHSrvAny."
34439 msgstr ""
34440
34441 # type: textblock
34442 #. type: textblock
34443 #: ../tools/virt-win-reg.pl:676
34444 msgid ""
34445 "First upload the program and optionally the service wrapper.  In this case "
34446 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
34447 msgstr ""
34448
34449 # type: verbatim
34450 #. type: verbatim
34451 #: ../tools/virt-win-reg.pl:680
34452 #, no-wrap
34453 msgid ""
34454 " guestfish -i -d WindowsGuest <<EOF\n"
34455 "   upload rhsrvany.exe /rhsrvany.exe\n"
34456 "   upload test.exe /test.exe\n"
34457 " EOF\n"
34458 "\n"
34459 msgstr ""
34460
34461 # type: textblock
34462 #. type: textblock
34463 #: ../tools/virt-win-reg.pl:685
34464 msgid ""
34465 "Prepare a regedit file containing the registry changes.  In this example, "
34466 "the first registry change is needed for the service itself or the service "
34467 "wrapper (if used).  The second registry change is only needed because I am "
34468 "using the RHSrvAny service wrapper."
34469 msgstr ""
34470
34471 # type: verbatim
34472 #. type: verbatim
34473 #: ../tools/virt-win-reg.pl:690
34474 #, no-wrap
34475 msgid ""
34476 " cat > service.reg <<'EOF'\n"
34477 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
34478 " \"Type\"=dword:00000010\n"
34479 " \"Start\"=dword:00000002\n"
34480 " \"ErrorControl\"=dword:00000001\n"
34481 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
34482 " \"DisplayName\"=\"RHSrvAny\"\n"
34483 " \"ObjectName\"=\"NetworkService\"\n"
34484 " \n"
34485 msgstr ""
34486
34487 # type: verbatim
34488 #. type: verbatim
34489 #: ../tools/virt-win-reg.pl:699
34490 #, no-wrap
34491 msgid ""
34492 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
34493 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
34494 " \"PWD\"=\"c:\\\\Temp\"\n"
34495 " EOF\n"
34496 "\n"
34497 msgstr ""
34498
34499 # type: textblock
34500 #. type: textblock
34501 #: ../tools/virt-win-reg.pl:710
34502 msgid ""
34503 "For use of C<ControlSet001> see the section above in this manual page.  You "
34504 "may need to adjust this according to the control set that is in use by the "
34505 "guest."
34506 msgstr ""
34507
34508 # type: textblock
34509 #. type: textblock
34510 #: ../tools/virt-win-reg.pl:716
34511 msgid ""
34512 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
34513 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
34514 "privileged account."
34515 msgstr ""
34516
34517 # type: textblock
34518 #. type: textblock
34519 #: ../tools/virt-win-reg.pl:722
34520 msgid ""
34521 "For the meaning of the magic numbers, see this Microsoft KB article: "
34522 "L<http://support.microsoft.com/kb/103000>."
34523 msgstr ""
34524
34525 # type: textblock
34526 #. type: textblock
34527 #: ../tools/virt-win-reg.pl:727
34528 msgid "Update the registry:"
34529 msgstr ""
34530
34531 # type: verbatim
34532 #. type: verbatim
34533 #: ../tools/virt-win-reg.pl:729
34534 #, no-wrap
34535 msgid ""
34536 " virt-win-reg --merge WindowsGuest service.reg\n"
34537 "\n"
34538 msgstr ""
34539
34540 # type: =head2
34541 #. type: =head1
34542 #: ../tools/virt-win-reg.pl:731 ../tools/virt-list-filesystems.pl:182
34543 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
34544 #: ../tools/virt-list-partitions.pl:250
34545 msgid "SHELL QUOTING"
34546 msgstr ""
34547
34548 # type: textblock
34549 #. type: textblock
34550 #: ../tools/virt-win-reg.pl:733
34551 msgid ""
34552 "Be careful when passing parameters containing C<\\> (backslash) in the "
34553 "shell.  Usually you will have to use 'single quotes' or double backslashes "
34554 "(but not both) to protect them from the shell."
34555 msgstr ""
34556
34557 # type: textblock
34558 #. type: textblock
34559 #: ../tools/virt-win-reg.pl:737
34560 msgid "Paths and value names are case-insensitive."
34561 msgstr ""
34562
34563 # type: textblock
34564 #. type: textblock
34565 #: ../tools/virt-win-reg.pl:739 ../tools/virt-list-filesystems.pl:184
34566 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
34567 #: ../tools/virt-list-partitions.pl:252
34568 msgid ""
34569 "Libvirt guest names can contain arbitrary characters, some of which have "
34570 "meaning to the shell such as C<#> and space.  You may need to quote or "
34571 "escape these characters on the command line.  See the shell manual page L<sh"
34572 "(1)> for details."
34573 msgstr ""
34574
34575 # type: textblock
34576 #. type: textblock
34577 #: ../tools/virt-win-reg.pl:746
34578 msgid ""
34579 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
34580 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
34581 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34582 msgstr ""
34583
34584 # type: textblock
34585 #. type: textblock
34586 #: ../tools/virt-win-reg.pl:761 ../tools/virt-make-fs.pl:555
34587 msgid ""
34588 "When reporting bugs, please enable debugging and capture the I<complete> "
34589 "output:"
34590 msgstr ""
34591
34592 # type: verbatim
34593 #. type: verbatim
34594 #: ../tools/virt-win-reg.pl:764
34595 #, no-wrap
34596 msgid ""
34597 " export LIBGUESTFS_DEBUG=1\n"
34598 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
34599 "\n"
34600 msgstr ""
34601
34602 # type: textblock
34603 #. type: textblock
34604 #: ../tools/virt-win-reg.pl:767
34605 msgid ""
34606 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
34607 "redhat.com/>"
34608 msgstr ""
34609
34610 # type: =head1
34611 #. type: =head1
34612 #: ../tools/virt-win-reg.pl:770 ../tools/virt-list-filesystems.pl:202
34613 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
34614 #: ../tools/virt-list-partitions.pl:269
34615 msgid "AUTHOR"
34616 msgstr ""
34617
34618 # type: textblock
34619 #. type: textblock
34620 #: ../tools/virt-win-reg.pl:772 ../tools/virt-list-filesystems.pl:204
34621 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
34622 #: ../tools/virt-list-partitions.pl:271
34623 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
34624 msgstr ""
34625
34626 # type: textblock
34627 #. type: textblock
34628 #: ../tools/virt-win-reg.pl:776 ../tools/virt-make-fs.pl:570
34629 msgid "Copyright (C) 2010 Red Hat Inc."
34630 msgstr ""
34631
34632 # type: textblock
34633 #. type: textblock
34634 #: ../tools/virt-list-filesystems.pl:32
34635 msgid ""
34636 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
34637 msgstr ""
34638
34639 # type: verbatim
34640 #. type: verbatim
34641 #: ../tools/virt-list-filesystems.pl:36
34642 #, no-wrap
34643 msgid ""
34644 " virt-list-filesystems [--options] domname\n"
34645 "\n"
34646 msgstr ""
34647
34648 # type: verbatim
34649 #. type: verbatim
34650 #: ../tools/virt-list-filesystems.pl:38
34651 #, no-wrap
34652 msgid ""
34653 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
34654 "\n"
34655 msgstr ""
34656
34657 # type: textblock
34658 #. type: textblock
34659 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
34660 msgid ""
34661 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
34662 "replacement."
34663 msgstr ""
34664
34665 # type: textblock
34666 #. type: textblock
34667 #: ../tools/virt-list-filesystems.pl:45
34668 msgid ""
34669 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
34670 "are contained in a virtual machine or disk image."
34671 msgstr ""
34672
34673 # type: textblock
34674 #. type: textblock
34675 #: ../tools/virt-list-filesystems.pl:49
34676 msgid ""
34677 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
34678 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34679 "> tool."
34680 msgstr ""
34681
34682 # type: =item
34683 #. type: =item
34684 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
34685 msgid "B<-l> | B<--long>"
34686 msgstr ""
34687
34688 # type: textblock
34689 #. type: textblock
34690 #: ../tools/virt-list-filesystems.pl:108
34691 msgid ""
34692 "With this option, C<virt-list-filesystems> displays the type of each "
34693 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
34694 msgstr ""
34695
34696 # type: =item
34697 #. type: =item
34698 #: ../tools/virt-list-filesystems.pl:115
34699 msgid "B<-a> | B<--all>"
34700 msgstr ""
34701
34702 # type: textblock
34703 #. type: textblock
34704 #: ../tools/virt-list-filesystems.pl:117
34705 msgid ""
34706 "Normally we only show mountable filesystems.  If this option is given then "
34707 "swap devices are shown too."
34708 msgstr ""
34709
34710 # type: textblock
34711 #. type: textblock
34712 #: ../tools/virt-list-filesystems.pl:191
34713 msgid ""
34714 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34715 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34716 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34717 msgstr ""
34718
34719 # type: textblock
34720 #. type: textblock
34721 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34722 msgid "Copyright (C) 2009 Red Hat Inc."
34723 msgstr ""
34724
34725 # type: textblock
34726 #. type: textblock
34727 #: ../tools/virt-tar.pl:33
34728 msgid "virt-tar - Extract or upload files to a virtual machine"
34729 msgstr ""
34730
34731 # type: verbatim
34732 #. type: verbatim
34733 #: ../tools/virt-tar.pl:37
34734 #, no-wrap
34735 msgid ""
34736 " virt-tar [--options] -x domname directory tarball\n"
34737 "\n"
34738 msgstr ""
34739
34740 # type: verbatim
34741 #. type: verbatim
34742 #: ../tools/virt-tar.pl:39
34743 #, no-wrap
34744 msgid ""
34745 " virt-tar [--options] -u domname tarball directory\n"
34746 "\n"
34747 msgstr ""
34748
34749 # type: verbatim
34750 #. type: verbatim
34751 #: ../tools/virt-tar.pl:41
34752 #, no-wrap
34753 msgid ""
34754 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34755 "\n"
34756 msgstr ""
34757
34758 # type: verbatim
34759 #. type: verbatim
34760 #: ../tools/virt-tar.pl:43
34761 #, no-wrap
34762 msgid ""
34763 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34764 "\n"
34765 msgstr ""
34766
34767 #. type: textblock
34768 #: ../tools/virt-tar.pl:47
34769 msgid ""
34770 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34771 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34772 msgstr ""
34773
34774 # type: textblock
34775 #. type: textblock
34776 #: ../tools/virt-tar.pl:52
34777 msgid "Download C</home> from the VM into a local tarball:"
34778 msgstr ""
34779
34780 # type: verbatim
34781 #. type: verbatim
34782 #: ../tools/virt-tar.pl:54
34783 #, no-wrap
34784 msgid ""
34785 " virt-tar -x domname /home home.tar\n"
34786 "\n"
34787 msgstr ""
34788
34789 # type: verbatim
34790 #. type: verbatim
34791 #: ../tools/virt-tar.pl:56
34792 #, no-wrap
34793 msgid ""
34794 " virt-tar -zx domname /home home.tar.gz\n"
34795 "\n"
34796 msgstr ""
34797
34798 # type: textblock
34799 #. type: textblock
34800 #: ../tools/virt-tar.pl:58
34801 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34802 msgstr ""
34803
34804 # type: verbatim
34805 #. type: verbatim
34806 #: ../tools/virt-tar.pl:60
34807 #, no-wrap
34808 msgid ""
34809 " virt-tar -u domname uploadstuff.tar /tmp\n"
34810 "\n"
34811 msgstr ""
34812
34813 # type: verbatim
34814 #. type: verbatim
34815 #: ../tools/virt-tar.pl:62
34816 #, no-wrap
34817 msgid ""
34818 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34819 "\n"
34820 msgstr ""
34821
34822 #. type: textblock
34823 #: ../tools/virt-tar.pl:66
34824 msgid ""
34825 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
34826 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34827 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34828 msgstr ""
34829
34830 #. type: textblock
34831 #: ../tools/virt-tar.pl:71
34832 msgid ""
34833 "You can use I<-x> (extract) on live virtual machines, but you might get "
34834 "inconsistent results or errors if there is filesystem activity inside the "
34835 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34836 "work, but the only way to guarantee consistent results is if the virtual "
34837 "machine is shut down."
34838 msgstr ""
34839
34840 # type: textblock
34841 #. type: textblock
34842 #: ../tools/virt-tar.pl:79
34843 msgid ""
34844 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34845 "parts of a guest filesystem.  There are many possibilities: making backups, "
34846 "uploading data files, snooping on guest activity, fixing or customizing "
34847 "guests, etc."
34848 msgstr ""
34849
34850 # type: textblock
34851 #. type: textblock
34852 #: ../tools/virt-tar.pl:84
34853 msgid ""
34854 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34855 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34856 "should look at the L<guestfish(1)> tool."
34857 msgstr ""
34858
34859 #. type: textblock
34860 #: ../tools/virt-tar.pl:88
34861 msgid ""
34862 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
34863 "its contents (recursively) from the virtual machine into a local tarball.  "
34864 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
34865 "virtual machine.  You cannot use these two options together."
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../tools/virt-tar.pl:94
34870 msgid ""
34871 "In addition, you may need to use the I<-z> (gZip) option to enable "
34872 "compression.  When uploading, you have to specify I<-z> if the upload file "
34873 "is compressed because virt-tar won't detect this on its own."
34874 msgstr ""
34875
34876 # type: textblock
34877 #. type: textblock
34878 #: ../tools/virt-tar.pl:98
34879 msgid ""
34880 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34881 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34882 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34883 "the L<libguestfs(3)> API)."
34884 msgstr ""
34885
34886 # type: =item
34887 #. type: =item
34888 #: ../tools/virt-tar.pl:156
34889 msgid "B<-x> | B<--extract> | B<--download>"
34890 msgstr ""
34891
34892 # type: =item
34893 #. type: =item
34894 #: ../tools/virt-tar.pl:158
34895 msgid "B<-u> | B<--upload>"
34896 msgstr ""
34897
34898 #. type: textblock
34899 #: ../tools/virt-tar.pl:160
34900 msgid ""
34901 "Use I<-x> to extract (download) a directory from a virtual machine to a "
34902 "local tarball."
34903 msgstr ""
34904
34905 #. type: textblock
34906 #: ../tools/virt-tar.pl:163
34907 msgid ""
34908 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
34909 "Please read the L</WARNING> section above before using this option."
34910 msgstr ""
34911
34912 # type: textblock
34913 #. type: textblock
34914 #: ../tools/virt-tar.pl:167
34915 msgid "You must specify exactly one of these options."
34916 msgstr ""
34917
34918 # type: =item
34919 #. type: =item
34920 #: ../tools/virt-tar.pl:173
34921 msgid "B<-z> | B<--gzip>"
34922 msgstr ""
34923
34924 # type: textblock
34925 #. type: textblock
34926 #: ../tools/virt-tar.pl:175
34927 msgid "Specify that the input or output tarball is gzip-compressed."
34928 msgstr ""
34929
34930 #. type: textblock
34931 #: ../tools/virt-tar.pl:288
34932 msgid ""
34933 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34934 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34935 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34936 "org/>."
34937 msgstr ""
34938
34939 # type: textblock
34940 #. type: textblock
34941 #: ../tools/virt-make-fs.pl:37
34942 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34943 msgstr ""
34944
34945 # type: verbatim
34946 #. type: verbatim
34947 #: ../tools/virt-make-fs.pl:41
34948 #, no-wrap
34949 msgid ""
34950 " virt-make-fs [--options] input.tar output.img\n"
34951 "\n"
34952 msgstr ""
34953
34954 # type: verbatim
34955 #. type: verbatim
34956 #: ../tools/virt-make-fs.pl:43
34957 #, no-wrap
34958 msgid ""
34959 " virt-make-fs [--options] input.tar.gz output.img\n"
34960 "\n"
34961 msgstr ""
34962
34963 # type: verbatim
34964 #. type: verbatim
34965 #: ../tools/virt-make-fs.pl:45
34966 #, no-wrap
34967 msgid ""
34968 " virt-make-fs [--options] directory output.img\n"
34969 "\n"
34970 msgstr ""
34971
34972 # type: textblock
34973 #. type: textblock
34974 #: ../tools/virt-make-fs.pl:49
34975 msgid ""
34976 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34977 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34978 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34979 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34980 "you want to attach these filesystems to existing virtual machines (eg. to "
34981 "import large amounts of read-only data to a VM)."
34982 msgstr ""
34983
34984 # type: textblock
34985 #. type: textblock
34986 #: ../tools/virt-make-fs.pl:57
34987 msgid "Basic usage is:"
34988 msgstr ""
34989
34990 # type: verbatim
34991 #. type: verbatim
34992 #: ../tools/virt-make-fs.pl:59
34993 #, no-wrap
34994 msgid ""
34995 " virt-make-fs input output\n"
34996 "\n"
34997 msgstr ""
34998
34999 # type: textblock
35000 #. type: textblock
35001 #: ../tools/virt-make-fs.pl:61
35002 msgid ""
35003 "where C<input> is either a directory containing files that you want to add, "
35004 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
35005 "C<output> is a disk image.  The input type is detected automatically.  The "
35006 "output disk image defaults to a raw ext2 image unless you specify extra "
35007 "flags (see L</OPTIONS> below)."
35008 msgstr ""
35009
35010 # type: =head2
35011 #. type: =head2
35012 #: ../tools/virt-make-fs.pl:67
35013 msgid "EXTRA SPACE"
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../tools/virt-make-fs.pl:69
35018 msgid ""
35019 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
35020 "the files that it contains, but might have extra space.  Depending on how "
35021 "you are going to use the output, you might think this extra space is wasted "
35022 "and want to minimize it, or you might want to leave space so that more files "
35023 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
35024 "but you can use the I<--size> flag to leave space in the filesystem if you "
35025 "want it."
35026 msgstr ""
35027
35028 #. type: textblock
35029 #: ../tools/virt-make-fs.pl:77
35030 msgid ""
35031 "An alternative way to leave extra space but not make the output image any "
35032 "bigger is to use an alternative disk image format (instead of the default "
35033 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
35034 "image format (check your hypervisor supports this before using it).  This "
35035 "allows you to choose a large I<--size> but the extra space won't actually be "
35036 "allocated in the image until you try to store something in it."
35037 msgstr ""
35038
35039 #. type: textblock
35040 #: ../tools/virt-make-fs.pl:85
35041 msgid ""
35042 "Don't forget that you can also use local commands including L<resize2fs(8)> "
35043 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
35044 "to build another image from scratch."
35045 msgstr ""
35046
35047 # type: =head3
35048 #. type: =head3
35049 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
35050 #: ../tools/virt-make-fs.pl:142
35051 msgid "EXAMPLE"
35052 msgstr ""
35053
35054 # type: verbatim
35055 #. type: verbatim
35056 #: ../tools/virt-make-fs.pl:91
35057 #, no-wrap
35058 msgid ""
35059 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
35060 "\n"
35061 msgstr ""
35062
35063 # type: =head2
35064 #. type: =head2
35065 #: ../tools/virt-make-fs.pl:93
35066 msgid "FILESYSTEM TYPE"
35067 msgstr ""
35068
35069 # type: textblock
35070 #. type: textblock
35071 #: ../tools/virt-make-fs.pl:95
35072 msgid ""
35073 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
35074 "libguestfs supports can be used (but I<not> read-only formats like "
35075 "ISO9660).  Here are some of the more common choices:"
35076 msgstr ""
35077
35078 # type: =item
35079 #. type: =item
35080 #: ../tools/virt-make-fs.pl:101
35081 msgid "I<ext3>"
35082 msgstr ""
35083
35084 # type: textblock
35085 #. type: textblock
35086 #: ../tools/virt-make-fs.pl:103
35087 msgid ""
35088 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
35089 "you are not going to use the filesystem in a way that requires the journal, "
35090 "then this is just wasted overhead."
35091 msgstr ""
35092
35093 # type: =item
35094 #. type: =item
35095 #: ../tools/virt-make-fs.pl:107
35096 msgid "I<ntfs> or I<vfat>"
35097 msgstr ""
35098
35099 # type: textblock
35100 #. type: textblock
35101 #: ../tools/virt-make-fs.pl:109
35102 msgid "Useful if exporting data to a Windows guest."
35103 msgstr ""
35104
35105 # type: textblock
35106 #. type: textblock
35107 #: ../tools/virt-make-fs.pl:111
35108 msgid ""
35109 "I<Note for vfat>: The tar archive or local directory must only contain files "
35110 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
35111 "program running within libguestfs is unable to change the ownership of non-"
35112 "root files, since vfat itself does not support this."
35113 msgstr ""
35114
35115 # type: =item
35116 #. type: =item
35117 #: ../tools/virt-make-fs.pl:116
35118 msgid "I<minix>"
35119 msgstr ""
35120
35121 # type: textblock
35122 #. type: textblock
35123 #: ../tools/virt-make-fs.pl:118
35124 msgid ""
35125 "Lower overhead than C<ext2>, but certain limitations on filename length and "
35126 "total filesystem size."
35127 msgstr ""
35128
35129 # type: verbatim
35130 #. type: verbatim
35131 #: ../tools/virt-make-fs.pl:125
35132 #, no-wrap
35133 msgid ""
35134 " virt-make-fs --type=minix input minixfs.img\n"
35135 "\n"
35136 msgstr ""
35137
35138 # type: =head2
35139 #. type: =head2
35140 #: ../tools/virt-make-fs.pl:127
35141 msgid "TO PARTITION OR NOT TO PARTITION"
35142 msgstr ""
35143
35144 # type: textblock
35145 #. type: textblock
35146 #: ../tools/virt-make-fs.pl:129
35147 msgid "Optionally virt-make-fs can add a partition table to the output disk."
35148 msgstr ""
35149
35150 # type: textblock
35151 #. type: textblock
35152 #: ../tools/virt-make-fs.pl:131
35153 msgid ""
35154 "Adding a partition can make the disk image more compatible with certain "
35155 "virtualized operating systems which don't expect to see a filesystem "
35156 "directly located on a block device (Linux doesn't care and will happily "
35157 "handle both types)."
35158 msgstr ""
35159
35160 # type: textblock
35161 #. type: textblock
35162 #: ../tools/virt-make-fs.pl:136
35163 msgid ""
35164 "On the other hand, if you have a partition table then the output image is no "
35165 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
35166 "directly on a partitioned disk image.  (However libguestfs tools such as "
35167 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
35168 msgstr ""
35169
35170 # type: textblock
35171 #. type: textblock
35172 #: ../tools/virt-make-fs.pl:144
35173 msgid "Add an MBR partition:"
35174 msgstr ""
35175
35176 # type: verbatim
35177 #. type: verbatim
35178 #: ../tools/virt-make-fs.pl:146
35179 #, no-wrap
35180 msgid ""
35181 " virt-make-fs --partition -- input disk.img\n"
35182 "\n"
35183 msgstr ""
35184
35185 # type: textblock
35186 #. type: textblock
35187 #: ../tools/virt-make-fs.pl:148
35188 msgid ""
35189 "If the output disk image could be terabyte-sized or larger, it's better to "
35190 "use an EFI/GPT-compatible partition table:"
35191 msgstr ""
35192
35193 # type: verbatim
35194 #. type: verbatim
35195 #: ../tools/virt-make-fs.pl:151
35196 #, no-wrap
35197 msgid ""
35198 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
35199 "\n"
35200 msgstr ""
35201
35202 # type: textblock
35203 #. type: textblock
35204 #: ../tools/virt-make-fs.pl:179
35205 msgid "Enable debugging information."
35206 msgstr ""
35207
35208 # type: =item
35209 #. type: =item
35210 #: ../tools/virt-make-fs.pl:185
35211 msgid "B<--size=E<lt>NE<gt>>"
35212 msgstr ""
35213
35214 # type: =item
35215 #. type: =item
35216 #: ../tools/virt-make-fs.pl:187
35217 msgid "B<--size=+E<lt>NE<gt>>"
35218 msgstr ""
35219
35220 # type: =item
35221 #. type: =item
35222 #: ../tools/virt-make-fs.pl:189
35223 msgid "B<-s E<lt>NE<gt>>"
35224 msgstr ""
35225
35226 # type: =item
35227 #. type: =item
35228 #: ../tools/virt-make-fs.pl:191
35229 msgid "B<-s +E<lt>NE<gt>>"
35230 msgstr ""
35231
35232 #. type: textblock
35233 #: ../tools/virt-make-fs.pl:193
35234 msgid ""
35235 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
35236 msgstr ""
35237
35238 # type: textblock
35239 #. type: textblock
35240 #: ../tools/virt-make-fs.pl:196
35241 msgid ""
35242 "If this option is I<not> given, then the output image will be just large "
35243 "enough to contain all the files, with not much wasted space."
35244 msgstr ""
35245
35246 # type: textblock
35247 #. type: textblock
35248 #: ../tools/virt-make-fs.pl:199
35249 msgid ""
35250 "To choose a fixed size output disk, specify an absolute number followed by b/"
35251 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35252 "Petabytes or Exabytes.  This must be large enough to contain all the input "
35253 "files, else you will get an error."
35254 msgstr ""
35255
35256 #. type: textblock
35257 #: ../tools/virt-make-fs.pl:204
35258 msgid ""
35259 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
35260 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35261 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
35262 "the input files, and (approximately) an extra 200 MB free space."
35263 msgstr ""
35264
35265 # type: textblock
35266 #. type: textblock
35267 #: ../tools/virt-make-fs.pl:210
35268 msgid ""
35269 "Note that virt-make-fs estimates free space, and therefore will not produce "
35270 "filesystems containing precisely the free space requested.  (It is much more "
35271 "expensive and time-consuming to produce a filesystem which has precisely the "
35272 "desired free space)."
35273 msgstr ""
35274
35275 # type: =item
35276 #. type: =item
35277 #: ../tools/virt-make-fs.pl:219
35278 msgid "B<--format=E<lt>fmtE<gt>>"
35279 msgstr ""
35280
35281 # type: =item
35282 #. type: =item
35283 #: ../tools/virt-make-fs.pl:221
35284 msgid "B<-F E<lt>fmtE<gt>>"
35285 msgstr ""
35286
35287 # type: textblock
35288 #. type: textblock
35289 #: ../tools/virt-make-fs.pl:223
35290 msgid "Choose the output disk image format."
35291 msgstr ""
35292
35293 # type: textblock
35294 #. type: textblock
35295 #: ../tools/virt-make-fs.pl:225
35296 msgid "The default is C<raw> (raw disk image)."
35297 msgstr ""
35298
35299 # type: textblock
35300 #. type: textblock
35301 #: ../tools/virt-make-fs.pl:227
35302 msgid ""
35303 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
35304 "that would really make sense here is C<qcow2>."
35305 msgstr ""
35306
35307 # type: =item
35308 #. type: =item
35309 #: ../tools/virt-make-fs.pl:234
35310 msgid "B<--type=E<lt>fsE<gt>>"
35311 msgstr ""
35312
35313 # type: =item
35314 #. type: =item
35315 #: ../tools/virt-make-fs.pl:236
35316 msgid "B<-t E<lt>fsE<gt>>"
35317 msgstr ""
35318
35319 # type: textblock
35320 #. type: textblock
35321 #: ../tools/virt-make-fs.pl:238
35322 msgid "Choose the output filesystem type."
35323 msgstr ""
35324
35325 # type: textblock
35326 #. type: textblock
35327 #: ../tools/virt-make-fs.pl:240
35328 msgid "The default is C<ext2>."
35329 msgstr ""
35330
35331 # type: textblock
35332 #. type: textblock
35333 #: ../tools/virt-make-fs.pl:242
35334 msgid ""
35335 "Any filesystem which is supported read-write by libguestfs can be used here."
35336 msgstr ""
35337
35338 # type: =item
35339 #. type: =item
35340 #: ../tools/virt-make-fs.pl:249
35341 msgid "B<--partition>"
35342 msgstr ""
35343
35344 # type: =item
35345 #. type: =item
35346 #: ../tools/virt-make-fs.pl:251
35347 msgid "B<--partition=E<lt>parttypeE<gt>>"
35348 msgstr ""
35349
35350 # type: textblock
35351 #. type: textblock
35352 #: ../tools/virt-make-fs.pl:253
35353 msgid ""
35354 "If specified, this flag adds an MBR partition table to the output disk image."
35355 msgstr ""
35356
35357 #. type: textblock
35358 #: ../tools/virt-make-fs.pl:256
35359 msgid ""
35360 "You can change the partition table type, eg. I<--partition=gpt> for large "
35361 "disks."
35362 msgstr ""
35363
35364 #. type: textblock
35365 #: ../tools/virt-make-fs.pl:259
35366 msgid ""
35367 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
35368 "might consider the next parameter to be the partition type.  For example:"
35369 msgstr ""
35370
35371 # type: verbatim
35372 #. type: verbatim
35373 #: ../tools/virt-make-fs.pl:263
35374 #, no-wrap
35375 msgid ""
35376 " virt-make-fs --partition input.tar ...\n"
35377 "\n"
35378 msgstr ""
35379
35380 #. type: textblock
35381 #: ../tools/virt-make-fs.pl:265
35382 msgid ""
35383 "would cause virt-make-fs to think you wanted to use a partition type of "
35384 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
35385 "dash) between options and the input file argument:"
35386 msgstr ""
35387
35388 # type: verbatim
35389 #. type: verbatim
35390 #: ../tools/virt-make-fs.pl:269
35391 #, no-wrap
35392 msgid ""
35393 " virt-make-fs --partition -- input.tar ...\n"
35394 "\n"
35395 msgstr ""
35396
35397 #. type: textblock
35398 #: ../tools/virt-make-fs.pl:541
35399 msgid ""
35400 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
35401 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
35402 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
35403 msgstr ""
35404
35405 # type: verbatim
35406 #. type: verbatim
35407 #: ../tools/virt-make-fs.pl:558
35408 #, no-wrap
35409 msgid ""
35410 " export LIBGUESTFS_DEBUG=1\n"
35411 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
35412 "\n"
35413 msgstr ""
35414
35415 # type: textblock
35416 #. type: textblock
35417 #: ../tools/virt-make-fs.pl:561
35418 msgid ""
35419 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
35420 "redhat.com/>"
35421 msgstr ""
35422
35423 # type: textblock
35424 #. type: textblock
35425 #: ../tools/virt-list-partitions.pl:32
35426 msgid ""
35427 "virt-list-partitions - List partitions in a virtual machine or disk image"
35428 msgstr ""
35429
35430 # type: verbatim
35431 #. type: verbatim
35432 #: ../tools/virt-list-partitions.pl:36
35433 #, no-wrap
35434 msgid ""
35435 " virt-list-partitions [--options] domname\n"
35436 "\n"
35437 msgstr ""
35438
35439 # type: verbatim
35440 #. type: verbatim
35441 #: ../tools/virt-list-partitions.pl:38
35442 #, no-wrap
35443 msgid ""
35444 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35445 "\n"
35446 msgstr ""
35447
35448 # type: textblock
35449 #. type: textblock
35450 #: ../tools/virt-list-partitions.pl:45
35451 msgid ""
35452 "C<virt-list-partitions> is a command line tool to list the partitions that "
35453 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35454 "first step to using L<virt-resize(1)>."
35455 msgstr ""
35456
35457 # type: textblock
35458 #. type: textblock
35459 #: ../tools/virt-list-partitions.pl:50
35460 msgid ""
35461 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35462 "functionality.  For more complex cases you should look at the L<guestfish(1)"
35463 "> tool."
35464 msgstr ""
35465
35466 # type: =item
35467 #. type: =item
35468 #: ../tools/virt-list-partitions.pl:107
35469 msgid "B<-h> | B<--human-readable>"
35470 msgstr ""
35471
35472 # type: textblock
35473 #. type: textblock
35474 #: ../tools/virt-list-partitions.pl:109
35475 msgid "Show sizes in human-readable form (eg. \"1G\")."
35476 msgstr ""
35477
35478 # type: textblock
35479 #. type: textblock
35480 #: ../tools/virt-list-partitions.pl:117
35481 msgid ""
35482 "With this option, C<virt-list-partitions> displays the type and size of each "
35483 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35484 msgstr ""
35485
35486 # type: =item
35487 #. type: =item
35488 #: ../tools/virt-list-partitions.pl:124
35489 msgid "B<-t> | B<--total>"
35490 msgstr ""
35491
35492 # type: textblock
35493 #. type: textblock
35494 #: ../tools/virt-list-partitions.pl:126
35495 msgid ""
35496 "Display the total size of each block device (as a separate row or rows)."
35497 msgstr ""
35498
35499 # type: textblock
35500 #. type: textblock
35501 #: ../tools/virt-list-partitions.pl:259
35502 msgid ""
35503 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
35504 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
35505 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35506 msgstr ""
35507
35508 # type: textblock
35509 #. type: textblock
35510 #: ../tools/virt-list-partitions.pl:275
35511 msgid "Copyright (C) 2009-2010 Red Hat Inc."
35512 msgstr ""