e90efc4d1ee5e00e6ff712ab87aabe704cc1349b
[libguestfs.git] / po-docs / ja.po
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4 #
5 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-04-01 09:14+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
24 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
25 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
26 #: ../tools/virt-list-partitions.pl:30
27 msgid "NAME"
28 msgstr "名前"
29
30 # type: textblock
31 #. type: textblock
32 #: ../src/guestfs.pod:5
33 msgid "guestfs - Library for accessing and modifying virtual machine images"
34 msgstr ""
35
36 # type: =head1
37 #. type: =head1
38 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
39 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
40 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
41 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
42 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
43 #: ../tools/virt-list-partitions.pl:34
44 msgid "SYNOPSIS"
45 msgstr ""
46
47 # type: verbatim
48 #. type: verbatim
49 #: ../src/guestfs.pod:9
50 #, no-wrap
51 msgid ""
52 " #include <guestfs.h>\n"
53 " \n"
54 msgstr ""
55
56 # type: verbatim
57 #. type: verbatim
58 #: ../src/guestfs.pod:11
59 #, no-wrap
60 msgid ""
61 " guestfs_h *g = guestfs_create ();\n"
62 " guestfs_add_drive (g, \"guest.img\");\n"
63 " guestfs_launch (g);\n"
64 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
65 " guestfs_touch (g, \"/hello\");\n"
66 " guestfs_umount (g, \"/\");\n"
67 " guestfs_close (g);\n"
68 "\n"
69 msgstr ""
70
71 # type: verbatim
72 #. type: verbatim
73 #: ../src/guestfs.pod:19
74 #, no-wrap
75 msgid ""
76 " cc prog.c -o prog -lguestfs\n"
77 "or:\n"
78 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
79 "\n"
80 msgstr ""
81
82 # type: =head1
83 #. type: =head1
84 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
85 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
86 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
87 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
88 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
89 #: ../tools/virt-list-partitions.pl:40
90 msgid "DESCRIPTION"
91 msgstr ""
92
93 # type: textblock
94 #. type: textblock
95 #: ../src/guestfs.pod:25
96 msgid ""
97 "Libguestfs is a library for accessing and modifying guest disk images.  "
98 "Amongst the things this is good for: making batch configuration changes to "
99 "guests, getting disk used/free statistics (see also: virt-df), migrating "
100 "between virtualization systems (see also: virt-p2v), performing partial "
101 "backups, performing partial guest clones, cloning guests and changing "
102 "registry/UUID/hostname info, and much else besides."
103 msgstr ""
104
105 # type: textblock
106 #. type: textblock
107 #: ../src/guestfs.pod:33
108 msgid ""
109 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
110 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
111 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
112 "qcow2, vmdk."
113 msgstr ""
114
115 # type: textblock
116 #. type: textblock
117 #: ../src/guestfs.pod:38
118 msgid ""
119 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
120 "what filesystem is in each LV, etc.).  It can also run commands in the "
121 "context of the guest.  Also you can access filesystems over FUSE."
122 msgstr ""
123
124 # type: textblock
125 #. type: textblock
126 #: ../src/guestfs.pod:43
127 msgid ""
128 "Libguestfs is a library that can be linked with C and C++ management "
129 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
130 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
131 "line."
132 msgstr ""
133
134 # type: textblock
135 #. type: textblock
136 #: ../src/guestfs.pod:48
137 msgid ""
138 "You don't need to be root to use libguestfs, although obviously you do need "
139 "enough permissions to access the disk images."
140 msgstr ""
141
142 # type: textblock
143 #. type: textblock
144 #: ../src/guestfs.pod:51
145 msgid ""
146 "Libguestfs is a large API because it can do many things.  For a gentle "
147 "introduction, please read the L</API OVERVIEW> section next."
148 msgstr ""
149
150 # type: textblock
151 #. type: textblock
152 #: ../src/guestfs.pod:54
153 msgid ""
154 "There are also some example programs in the L<guestfs-examples(3)> manual "
155 "page."
156 msgstr ""
157
158 # type: =head1
159 #. type: =head1
160 #: ../src/guestfs.pod:57
161 msgid "API OVERVIEW"
162 msgstr ""
163
164 # type: textblock
165 #. type: textblock
166 #: ../src/guestfs.pod:59
167 msgid ""
168 "This section provides a gentler overview of the libguestfs API.  We also try "
169 "to group API calls together, where that may not be obvious from reading "
170 "about the individual calls in the main section of this manual."
171 msgstr ""
172
173 # type: =head2
174 #. type: =head2
175 #: ../src/guestfs.pod:64
176 msgid "HANDLES"
177 msgstr ""
178
179 # type: textblock
180 #. type: textblock
181 #: ../src/guestfs.pod:66
182 msgid ""
183 "Before you can use libguestfs calls, you have to create a handle.  Then you "
184 "must add at least one disk image to the handle, followed by launching the "
185 "handle, then performing whatever operations you want, and finally closing "
186 "the handle.  By convention we use the single letter C<g> for the name of the "
187 "handle variable, although of course you can use any name you want."
188 msgstr ""
189
190 # type: textblock
191 #. type: textblock
192 #: ../src/guestfs.pod:73
193 msgid "The general structure of all libguestfs-using programs looks like this:"
194 msgstr ""
195
196 # type: verbatim
197 #. type: verbatim
198 #: ../src/guestfs.pod:76
199 #, no-wrap
200 msgid ""
201 " guestfs_h *g = guestfs_create ();\n"
202 " \n"
203 msgstr ""
204
205 # type: verbatim
206 #. type: verbatim
207 #: ../src/guestfs.pod:78
208 #, no-wrap
209 msgid ""
210 " /* Call guestfs_add_drive additional times if there are\n"
211 "  * multiple disk images.\n"
212 "  */\n"
213 " guestfs_add_drive (g, \"guest.img\");\n"
214 " \n"
215 msgstr ""
216
217 # type: verbatim
218 #. type: verbatim
219 #: ../src/guestfs.pod:83
220 #, no-wrap
221 msgid ""
222 " /* Most manipulation calls won't work until you've launched\n"
223 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
224 "  * and _before_ other commands.\n"
225 "  */\n"
226 " guestfs_launch (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #. type: verbatim
232 #: ../src/guestfs.pod:89
233 #, no-wrap
234 msgid ""
235 " /* Now you can examine what partitions, LVs etc are available.\n"
236 "  */\n"
237 " char **partitions = guestfs_list_partitions (g);\n"
238 " char **logvols = guestfs_lvs (g);\n"
239 " \n"
240 msgstr ""
241
242 # type: verbatim
243 #. type: verbatim
244 #: ../src/guestfs.pod:94
245 #, no-wrap
246 msgid ""
247 " /* To access a filesystem in the image, you must mount it.\n"
248 "  */\n"
249 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
250 " \n"
251 msgstr ""
252
253 #. type: verbatim
254 #: ../src/guestfs.pod:98
255 #, no-wrap
256 msgid ""
257 " /* Now you can perform filesystem actions on the guest\n"
258 "  * disk image.\n"
259 "  */\n"
260 " guestfs_touch (g, \"/hello\");\n"
261 " \n"
262 msgstr ""
263
264 # type: verbatim
265 #. type: verbatim
266 #: ../src/guestfs.pod:103
267 #, no-wrap
268 msgid ""
269 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
270 "  * it is done automatically when you close the handle.  See\n"
271 "  * discussion of autosync in this page.\n"
272 "  */\n"
273 " guestfs_sync (g);\n"
274 " \n"
275 msgstr ""
276
277 # type: verbatim
278 #. type: verbatim
279 #: ../src/guestfs.pod:109
280 #, no-wrap
281 msgid ""
282 " /* Close the handle 'g'. */\n"
283 " guestfs_close (g);\n"
284 "\n"
285 msgstr ""
286
287 # type: textblock
288 #. type: textblock
289 #: ../src/guestfs.pod:112
290 msgid ""
291 "The code above doesn't include any error checking.  In real code you should "
292 "check return values carefully for errors.  In general all functions that "
293 "return integers return C<-1> on error, and all functions that return "
294 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
295 "how to handle errors, and consult the documentation for each function call "
296 "below to see precisely how they return error indications.  See L<guestfs-"
297 "examples(3)> for fully worked examples."
298 msgstr ""
299
300 # type: =head2
301 #. type: =head2
302 #: ../src/guestfs.pod:121
303 msgid "DISK IMAGES"
304 msgstr ""
305
306 # type: textblock
307 #. type: textblock
308 #: ../src/guestfs.pod:123
309 msgid ""
310 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
311 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
312 "actual block device, or simply an empty file of zeroes that you have created "
313 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
314 "of these."
315 msgstr ""
316
317 # type: textblock
318 #. type: textblock
319 #: ../src/guestfs.pod:129
320 msgid ""
321 "The call you should use in modern code for adding drives is L</"
322 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
323 "specifying that the format is raw, do:"
324 msgstr ""
325
326 # type: verbatim
327 #. type: verbatim
328 #: ../src/guestfs.pod:133
329 #, no-wrap
330 msgid ""
331 " guestfs_add_drive_opts (g, filename,\n"
332 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
333 "                         -1);\n"
334 "\n"
335 msgstr ""
336
337 # type: textblock
338 #. type: textblock
339 #: ../src/guestfs.pod:137
340 msgid "You can add a disk read-only using:"
341 msgstr ""
342
343 # type: verbatim
344 #. type: verbatim
345 #: ../src/guestfs.pod:139
346 #, no-wrap
347 msgid ""
348 " guestfs_add_drive_opts (g, filename,\n"
349 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
350 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
351 "                         -1);\n"
352 "\n"
353 msgstr ""
354
355 # type: textblock
356 #. type: textblock
357 #: ../src/guestfs.pod:144
358 msgid ""
359 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
360 "libguestfs won't modify the file."
361 msgstr ""
362
363 # type: textblock
364 #. type: textblock
365 #: ../src/guestfs.pod:147
366 msgid ""
367 "Be extremely cautious if the disk image is in use, eg. if it is being used "
368 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
369 "corruption, but adding it read-only is safe."
370 msgstr ""
371
372 # type: textblock
373 #. type: textblock
374 #: ../src/guestfs.pod:151
375 msgid ""
376 "You must add at least one disk image, and you may add multiple disk images.  "
377 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
378 "first one you added), C</dev/sdb> (for the second one you added), etc."
379 msgstr ""
380
381 # type: textblock
382 #. type: textblock
383 #: ../src/guestfs.pod:156
384 msgid ""
385 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
386 "can call L</guestfs_list_devices> to get a list of the device names, in the "
387 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
388 msgstr ""
389
390 # type: =head2
391 #. type: =head2
392 #: ../src/guestfs.pod:161
393 msgid "MOUNTING"
394 msgstr ""
395
396 #. type: textblock
397 #: ../src/guestfs.pod:163
398 msgid ""
399 "Before you can read or write files, create directories and so on in a disk "
400 "image that contains filesystems, you have to mount those filesystems using "
401 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
402 "a disk image contains (for example) one partition with a filesystem on that "
403 "partition, then you can mount it directly:"
404 msgstr ""
405
406 #. type: verbatim
407 #: ../src/guestfs.pod:170
408 #, no-wrap
409 msgid ""
410 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
411 "\n"
412 msgstr ""
413
414 #. type: textblock
415 #: ../src/guestfs.pod:172
416 msgid ""
417 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
418 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
419 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
420 "that these are libguestfs virtual devices, and are nothing to do with host "
421 "devices."
422 msgstr ""
423
424 #. type: textblock
425 #: ../src/guestfs.pod:178
426 msgid ""
427 "If you are given a disk image and you don't know what it contains then you "
428 "have to find out.  Libguestfs can do that too: use L</"
429 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
430 "LVs, and either try mounting each to see what is mountable, or else examine "
431 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
432 "filesystems, use L</guestfs_list_filesystems>."
433 msgstr ""
434
435 #. type: textblock
436 #: ../src/guestfs.pod:186
437 msgid ""
438 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
439 "L</INSPECTION> below).  But you might find it easier to look at higher level "
440 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
441 msgstr ""
442
443 #. type: textblock
444 #: ../src/guestfs.pod:191
445 msgid ""
446 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
447 "several other variations of the C<guestfs_mount_*> call."
448 msgstr ""
449
450 # type: =head2
451 #. type: =head2
452 #: ../src/guestfs.pod:194
453 msgid "FILESYSTEM ACCESS AND MODIFICATION"
454 msgstr ""
455
456 # type: textblock
457 #. type: textblock
458 #: ../src/guestfs.pod:196
459 msgid ""
460 "The majority of the libguestfs API consists of fairly low-level calls for "
461 "accessing and modifying the files, directories, symlinks etc on mounted "
462 "filesystems.  There are over a hundred such calls which you can find listed "
463 "in detail below in this man page, and we don't even pretend to cover them "
464 "all in this overview."
465 msgstr ""
466
467 # type: textblock
468 #. type: textblock
469 #: ../src/guestfs.pod:202
470 msgid ""
471 "Specify filenames as full paths, starting with C<\"/\"> and including the "
472 "mount point."
473 msgstr ""
474
475 # type: textblock
476 #. type: textblock
477 #: ../src/guestfs.pod:205
478 msgid ""
479 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
480 "the file called C<\"etc/passwd\"> then you could do:"
481 msgstr ""
482
483 # type: verbatim
484 #. type: verbatim
485 #: ../src/guestfs.pod:208
486 #, no-wrap
487 msgid ""
488 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
489 "\n"
490 msgstr ""
491
492 # type: textblock
493 #. type: textblock
494 #: ../src/guestfs.pod:210
495 msgid ""
496 "This would return C<data> as a newly allocated buffer containing the full "
497 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
498 "or C<NULL> if there was an error."
499 msgstr ""
500
501 # type: textblock
502 #. type: textblock
503 #: ../src/guestfs.pod:214
504 msgid ""
505 "As another example, to create a top-level directory on that filesystem "
506 "called C<\"var\"> you would do:"
507 msgstr ""
508
509 # type: verbatim
510 #. type: verbatim
511 #: ../src/guestfs.pod:217
512 #, no-wrap
513 msgid ""
514 " guestfs_mkdir (g, \"/var\");\n"
515 "\n"
516 msgstr ""
517
518 # type: textblock
519 #. type: textblock
520 #: ../src/guestfs.pod:219
521 msgid "To create a symlink you could do:"
522 msgstr ""
523
524 # type: verbatim
525 #. type: verbatim
526 #: ../src/guestfs.pod:221
527 #, no-wrap
528 msgid ""
529 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
530 "               \"/etc/rc3.d/S30portmap\");\n"
531 "\n"
532 msgstr ""
533
534 # type: textblock
535 #. type: textblock
536 #: ../src/guestfs.pod:224
537 msgid ""
538 "Libguestfs will reject attempts to use relative paths and there is no "
539 "concept of a current working directory."
540 msgstr ""
541
542 # type: textblock
543 #. type: textblock
544 #: ../src/guestfs.pod:227
545 msgid ""
546 "Libguestfs can return errors in many situations: for example if the "
547 "filesystem isn't writable, or if a file or directory that you requested "
548 "doesn't exist.  If you are using the C API (documented here)  you have to "
549 "check for those error conditions after each call.  (Other language bindings "
550 "turn these errors into exceptions)."
551 msgstr ""
552
553 # type: textblock
554 #. type: textblock
555 #: ../src/guestfs.pod:233
556 msgid ""
557 "File writes are affected by the per-handle umask, set by calling L</"
558 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
559 msgstr ""
560
561 # type: =head2
562 #. type: =head2
563 #: ../src/guestfs.pod:236
564 msgid "PARTITIONING"
565 msgstr ""
566
567 # type: textblock
568 #. type: textblock
569 #: ../src/guestfs.pod:238
570 msgid ""
571 "Libguestfs contains API calls to read, create and modify partition tables on "
572 "disk images."
573 msgstr ""
574
575 # type: textblock
576 #. type: textblock
577 #: ../src/guestfs.pod:241
578 msgid ""
579 "In the common case where you want to create a single partition covering the "
580 "whole disk, you should use the L</guestfs_part_disk> call:"
581 msgstr ""
582
583 # type: verbatim
584 #. type: verbatim
585 #: ../src/guestfs.pod:245
586 #, no-wrap
587 msgid ""
588 " const char *parttype = \"mbr\";\n"
589 " if (disk_is_larger_than_2TB)\n"
590 "   parttype = \"gpt\";\n"
591 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
592 "\n"
593 msgstr ""
594
595 # type: textblock
596 #. type: textblock
597 #: ../src/guestfs.pod:250
598 msgid ""
599 "Obviously this effectively wipes anything that was on that disk image before."
600 msgstr ""
601
602 # type: =head2
603 #. type: =head2
604 #: ../src/guestfs.pod:253
605 msgid "LVM2"
606 msgstr ""
607
608 # type: textblock
609 #. type: textblock
610 #: ../src/guestfs.pod:255
611 msgid ""
612 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
613 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
614 "you familiarize yourself with the concepts of physical volumes, volume "
615 "groups and logical volumes."
616 msgstr ""
617
618 # type: textblock
619 #. type: textblock
620 #: ../src/guestfs.pod:260
621 msgid ""
622 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
623 "tldp.org/HOWTO/LVM-HOWTO/>."
624 msgstr ""
625
626 # type: =head2
627 #. type: =head2
628 #: ../src/guestfs.pod:263
629 msgid "DOWNLOADING"
630 msgstr ""
631
632 #. type: textblock
633 #: ../src/guestfs.pod:265
634 msgid ""
635 "Use L</guestfs_cat> to download small, text only files.  This call is "
636 "limited to files which are less than 2 MB and which cannot contain any ASCII "
637 "NUL (C<\\0>) characters.  However the API is very simple to use."
638 msgstr ""
639
640 # type: textblock
641 #. type: textblock
642 #: ../src/guestfs.pod:269
643 msgid ""
644 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
645 "bit data, since it returns a (pointer, size) pair.  However it is still "
646 "limited to \"small\" files, less than 2 MB."
647 msgstr ""
648
649 # type: textblock
650 #. type: textblock
651 #: ../src/guestfs.pod:273
652 msgid ""
653 "L</guestfs_download> can be used to download any file, with no limits on "
654 "content or size (even files larger than 4 GB)."
655 msgstr ""
656
657 # type: textblock
658 #. type: textblock
659 #: ../src/guestfs.pod:276
660 msgid ""
661 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
662 msgstr ""
663
664 # type: =head2
665 #. type: =head2
666 #: ../src/guestfs.pod:279
667 msgid "UPLOADING"
668 msgstr ""
669
670 # type: textblock
671 #. type: textblock
672 #: ../src/guestfs.pod:281
673 msgid ""
674 "It's often the case that you want to write a file or files to the disk image."
675 msgstr ""
676
677 # type: textblock
678 #. type: textblock
679 #: ../src/guestfs.pod:284
680 msgid ""
681 "To write a small file with fixed content, use L</guestfs_write>.  To create "
682 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
683 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
684 "of other functions for creating test files, for example L</guestfs_fill> and "
685 "L</guestfs_fill_pattern>."
686 msgstr ""
687
688 # type: textblock
689 #. type: textblock
690 #: ../src/guestfs.pod:290
691 msgid ""
692 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
693 "file content or size (even files larger than 4 GB)."
694 msgstr ""
695
696 # type: textblock
697 #. type: textblock
698 #: ../src/guestfs.pod:293
699 msgid ""
700 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
701 msgstr ""
702
703 # type: textblock
704 #. type: textblock
705 #: ../src/guestfs.pod:295
706 msgid ""
707 "However the fastest way to upload I<large numbers of arbitrary files> is to "
708 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
709 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
710 "in a predictable way (eg. adding it last after all other drives) then you "
711 "can get the device name from L</guestfs_list_devices> and mount it directly "
712 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
713 "portable between kernel versions, and they don't support labels or UUIDs.  "
714 "If you want to pre-build an image or you need to mount it using a label or "
715 "UUID, use an ISO image instead."
716 msgstr ""
717
718 # type: =head2
719 #. type: =head2
720 #: ../src/guestfs.pod:306
721 msgid "COPYING"
722 msgstr ""
723
724 # type: textblock
725 #. type: textblock
726 #: ../src/guestfs.pod:308
727 msgid ""
728 "There are various different commands for copying between files and devices "
729 "and in and out of the guest filesystem.  These are summarised in the table "
730 "below."
731 msgstr ""
732
733 # type: =item
734 #. type: =item
735 #: ../src/guestfs.pod:314
736 msgid "B<file> to B<file>"
737 msgstr ""
738
739 # type: textblock
740 #. type: textblock
741 #: ../src/guestfs.pod:316
742 msgid ""
743 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
744 "directories recursively."
745 msgstr ""
746
747 # type: =item
748 #. type: =item
749 #: ../src/guestfs.pod:319
750 msgid "B<file or device> to B<file or device>"
751 msgstr ""
752
753 # type: textblock
754 #. type: textblock
755 #: ../src/guestfs.pod:321
756 msgid ""
757 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
758 "devices in the guest."
759 msgstr ""
760
761 # type: textblock
762 #. type: textblock
763 #: ../src/guestfs.pod:324
764 msgid "Example: duplicate the contents of an LV:"
765 msgstr ""
766
767 # type: verbatim
768 #. type: verbatim
769 #: ../src/guestfs.pod:326
770 #, no-wrap
771 msgid ""
772 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
773 "\n"
774 msgstr ""
775
776 # type: textblock
777 #. type: textblock
778 #: ../src/guestfs.pod:328
779 msgid ""
780 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
781 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
782 "guestfs_copy_size>."
783 msgstr ""
784
785 # type: =item
786 #. type: =item
787 #: ../src/guestfs.pod:332
788 msgid "B<file on the host> to B<file or device>"
789 msgstr ""
790
791 # type: textblock
792 #. type: textblock
793 #: ../src/guestfs.pod:334
794 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
795 msgstr ""
796
797 # type: =item
798 #. type: =item
799 #: ../src/guestfs.pod:336
800 msgid "B<file or device> to B<file on the host>"
801 msgstr ""
802
803 # type: textblock
804 #. type: textblock
805 #: ../src/guestfs.pod:338
806 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
807 msgstr ""
808
809 # type: =head2
810 #. type: =head2
811 #: ../src/guestfs.pod:342
812 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
813 msgstr ""
814
815 # type: textblock
816 #. type: textblock
817 #: ../src/guestfs.pod:344
818 msgid ""
819 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
820 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
821 "appears you can only upload and download to files.  However many Un*x-like "
822 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
823 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
824 "and arbitrary file descriptor N."
825 msgstr ""
826
827 # type: textblock
828 #. type: textblock
829 #: ../src/guestfs.pod:352
830 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
831 msgstr ""
832
833 #. type: verbatim
834 #: ../src/guestfs.pod:355
835 #, no-wrap
836 msgid ""
837 " guestfs_download (g, filename, \"/dev/stdout\");\n"
838 "\n"
839 msgstr ""
840
841 # type: textblock
842 #. type: textblock
843 #: ../src/guestfs.pod:357
844 msgid "and you can write tar output to a pipe C<fd> by doing:"
845 msgstr ""
846
847 #. type: verbatim
848 #: ../src/guestfs.pod:359
849 #, no-wrap
850 msgid ""
851 " char devfd[64];\n"
852 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
853 " guestfs_tar_out (g, \"/\", devfd);\n"
854 "\n"
855 msgstr ""
856
857 # type: =head2
858 #. type: =head2
859 #: ../src/guestfs.pod:363
860 msgid "LISTING FILES"
861 msgstr ""
862
863 # type: textblock
864 #. type: textblock
865 #: ../src/guestfs.pod:365
866 msgid ""
867 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
868 "L<guestfish(1)>-equivalent command C<ll>)."
869 msgstr ""
870
871 # type: textblock
872 #. type: textblock
873 #: ../src/guestfs.pod:368
874 msgid ""
875 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
876 "programs, as a flat list of strings."
877 msgstr ""
878
879 # type: textblock
880 #. type: textblock
881 #: ../src/guestfs.pod:371
882 msgid ""
883 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
884 "directory, plus additional information about each one.  It is more "
885 "equivalent to using the L<readdir(3)> call on a local filesystem."
886 msgstr ""
887
888 # type: textblock
889 #. type: textblock
890 #: ../src/guestfs.pod:375
891 msgid ""
892 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
893 msgstr ""
894
895 # type: =head2
896 #. type: =head2
897 #: ../src/guestfs.pod:378
898 msgid "RUNNING COMMANDS"
899 msgstr ""
900
901 # type: textblock
902 #. type: textblock
903 #: ../src/guestfs.pod:380
904 msgid ""
905 "Although libguestfs is primarily an API for manipulating files inside guest "
906 "images, we also provide some limited facilities for running commands inside "
907 "guests."
908 msgstr ""
909
910 # type: textblock
911 #. type: textblock
912 #: ../src/guestfs.pod:384
913 msgid "There are many limitations to this:"
914 msgstr ""
915
916 # type: =item
917 #. type: =item
918 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
919 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
920 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1088
921 #: ../src/guestfs.pod:1092 ../src/guestfs.pod:1096 ../src/guestfs.pod:1101
922 #: ../src/guestfs.pod:1109 ../src/guestfs.pod:1128 ../src/guestfs.pod:1136
923 #: ../src/guestfs.pod:1158 ../src/guestfs.pod:1162 ../src/guestfs.pod:1166
924 #: ../src/guestfs.pod:1170 ../src/guestfs.pod:1174 ../src/guestfs.pod:1178
925 #: ../src/guestfs.pod:1660 ../src/guestfs.pod:1665 ../src/guestfs.pod:1669
926 #: ../src/guestfs.pod:1770 ../src/guestfs.pod:1775 ../src/guestfs.pod:1779
927 #: ../src/guestfs.pod:2008 ../src/guestfs.pod:2013 ../src/guestfs.pod:2019
928 #: ../src/guestfs.pod:2027 ../src/guestfs.pod:2381 ../src/guestfs.pod:2387
929 #: ../src/guestfs.pod:2392 ../src/guestfs.pod:2398 ../src/guestfs.pod:2863
930 #: ../src/guestfs.pod:2867 ../src/guestfs.pod:2871 ../src/guestfs.pod:2875
931 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
932 #: ../src/guestfs-actions.pod:577 ../src/guestfs-actions.pod:585
933 #: ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:599
934 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
935 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1607
936 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1619
937 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1633
938 #: ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1641
939 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1783
940 #: ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1793
941 #: ../src/guestfs-actions.pod:1854 ../src/guestfs-actions.pod:1858
942 #: ../src/guestfs-actions.pod:1863 ../fish/guestfish.pod:443
943 #: ../fish/guestfish.pod:447 ../fish/guestfish.pod:451
944 #: ../fish/guestfish.pod:455 ../fish/guestfish-actions.pod:13
945 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:380
946 #: ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:395
947 #: ../fish/guestfish-actions.pod:402 ../fish/guestfish-actions.pod:1072
948 #: ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080
949 #: ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1092
950 #: ../fish/guestfish-actions.pod:1096 ../fish/guestfish-actions.pod:1100
951 #: ../fish/guestfish-actions.pod:1110 ../fish/guestfish-actions.pod:1114
952 #: ../fish/guestfish-actions.pod:1118 ../fish/guestfish-actions.pod:1208
953 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217
954 #: ../fish/guestfish-actions.pod:1222 ../fish/guestfish-actions.pod:1264
955 #: ../fish/guestfish-actions.pod:1268 ../fish/guestfish-actions.pod:1273
956 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
957 #: ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345
958 #: ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
959 msgid "*"
960 msgstr ""
961
962 # type: textblock
963 #. type: textblock
964 #: ../src/guestfs.pod:390
965 msgid ""
966 "The kernel version that the command runs under will be different from what "
967 "it expects."
968 msgstr ""
969
970 # type: textblock
971 #. type: textblock
972 #: ../src/guestfs.pod:395
973 msgid ""
974 "If the command needs to communicate with daemons, then most likely they "
975 "won't be running."
976 msgstr ""
977
978 # type: textblock
979 #. type: textblock
980 #: ../src/guestfs.pod:400
981 msgid "The command will be running in limited memory."
982 msgstr ""
983
984 # type: textblock
985 #. type: textblock
986 #: ../src/guestfs.pod:404
987 msgid ""
988 "The network may not be available unless you enable it (see L</"
989 "guestfs_set_network>)."
990 msgstr ""
991
992 # type: textblock
993 #. type: textblock
994 #: ../src/guestfs.pod:409
995 msgid "Only supports Linux guests (not Windows, BSD, etc)."
996 msgstr ""
997
998 # type: textblock
999 #. type: textblock
1000 #: ../src/guestfs.pod:413
1001 msgid ""
1002 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1003 msgstr ""
1004
1005 # type: textblock
1006 #. type: textblock
1007 #: ../src/guestfs.pod:418
1008 msgid ""
1009 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1010 "See L</SELINUX> in this manpage."
1011 msgstr ""
1012
1013 # type: textblock
1014 #. type: textblock
1015 #: ../src/guestfs.pod:423
1016 msgid ""
1017 "I<Security:> It is not safe to run commands from untrusted, possibly "
1018 "malicious guests.  These commands may attempt to exploit your program by "
1019 "sending unexpected output.  They could also try to exploit the Linux kernel "
1020 "or qemu provided by the libguestfs appliance.  They could use the network "
1021 "provided by the libguestfs appliance to bypass ordinary network partitions "
1022 "and firewalls.  They could use the elevated privileges or different SELinux "
1023 "context of your program to their advantage."
1024 msgstr ""
1025
1026 # type: textblock
1027 #. type: textblock
1028 #: ../src/guestfs.pod:432
1029 msgid ""
1030 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1031 "(a script which runs when the guest next boots normally), and to have this "
1032 "script run the commands you want in the normal context of the running guest, "
1033 "network security and so on.  For information about other security issues, "
1034 "see L</SECURITY>."
1035 msgstr ""
1036
1037 # type: textblock
1038 #. type: textblock
1039 #: ../src/guestfs.pod:440
1040 msgid ""
1041 "The two main API calls to run commands are L</guestfs_command> and L</"
1042 "guestfs_sh> (there are also variations)."
1043 msgstr ""
1044
1045 # type: textblock
1046 #. type: textblock
1047 #: ../src/guestfs.pod:443
1048 msgid ""
1049 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1050 "shell globs, redirections, etc will work."
1051 msgstr ""
1052
1053 # type: =head2
1054 #. type: =head2
1055 #: ../src/guestfs.pod:446
1056 msgid "CONFIGURATION FILES"
1057 msgstr ""
1058
1059 # type: textblock
1060 #. type: textblock
1061 #: ../src/guestfs.pod:448
1062 msgid ""
1063 "To read and write configuration files in Linux guest filesystems, we "
1064 "strongly recommend using Augeas.  For example, Augeas understands how to "
1065 "read and write, say, a Linux shadow password file or X.org configuration "
1066 "file, and so avoids you having to write that code."
1067 msgstr ""
1068
1069 # type: textblock
1070 #. type: textblock
1071 #: ../src/guestfs.pod:453
1072 msgid ""
1073 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1074 "document Augeas itself here because there is excellent documentation on the "
1075 "L<http://augeas.net/> website."
1076 msgstr ""
1077
1078 # type: textblock
1079 #. type: textblock
1080 #: ../src/guestfs.pod:457
1081 msgid ""
1082 "If you don't want to use Augeas (you fool!) then try calling L</"
1083 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1084 "over."
1085 msgstr ""
1086
1087 # type: =head2
1088 #. type: =head2
1089 #: ../src/guestfs.pod:461
1090 msgid "SELINUX"
1091 msgstr ""
1092
1093 # type: textblock
1094 #. type: textblock
1095 #: ../src/guestfs.pod:463
1096 msgid ""
1097 "We support SELinux guests.  To ensure that labeling happens correctly in "
1098 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1099 msgstr ""
1100
1101 # type: =item
1102 #. type: =item
1103 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1281 ../src/guestfs.pod:1412
1104 #: ../src/guestfs.pod:2426
1105 msgid "1."
1106 msgstr ""
1107
1108 # type: textblock
1109 #. type: textblock
1110 #: ../src/guestfs.pod:471
1111 msgid "Before launching, do:"
1112 msgstr ""
1113
1114 # type: verbatim
1115 #. type: verbatim
1116 #: ../src/guestfs.pod:473
1117 #, no-wrap
1118 msgid ""
1119 " guestfs_set_selinux (g, 1);\n"
1120 "\n"
1121 msgstr ""
1122
1123 # type: =item
1124 #. type: =item
1125 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1285 ../src/guestfs.pod:1416
1126 #: ../src/guestfs.pod:2451
1127 msgid "2."
1128 msgstr ""
1129
1130 # type: textblock
1131 #. type: textblock
1132 #: ../src/guestfs.pod:477
1133 msgid ""
1134 "After mounting the guest's filesystem(s), load the policy.  This is best "
1135 "done by running the L<load_policy(8)> command in the guest itself:"
1136 msgstr ""
1137
1138 # type: verbatim
1139 #. type: verbatim
1140 #: ../src/guestfs.pod:481
1141 #, no-wrap
1142 msgid ""
1143 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1144 "\n"
1145 msgstr ""
1146
1147 # type: textblock
1148 #. type: textblock
1149 #: ../src/guestfs.pod:483
1150 msgid ""
1151 "(Older versions of C<load_policy> require you to specify the name of the "
1152 "policy file)."
1153 msgstr ""
1154
1155 # type: =item
1156 #. type: =item
1157 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1422
1158 msgid "3."
1159 msgstr ""
1160
1161 # type: textblock
1162 #. type: textblock
1163 #: ../src/guestfs.pod:488
1164 msgid ""
1165 "Optionally, set the security context for the API.  The correct security "
1166 "context to use can only be known by inspecting the guest.  As an example:"
1167 msgstr ""
1168
1169 # type: verbatim
1170 #. type: verbatim
1171 #: ../src/guestfs.pod:492
1172 #, no-wrap
1173 msgid ""
1174 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1175 "\n"
1176 msgstr ""
1177
1178 # type: textblock
1179 #. type: textblock
1180 #: ../src/guestfs.pod:496
1181 msgid "This will work for running commands and editing existing files."
1182 msgstr ""
1183
1184 # type: textblock
1185 #. type: textblock
1186 #: ../src/guestfs.pod:498
1187 msgid ""
1188 "When new files are created, you may need to label them explicitly, for "
1189 "example by running the external command C<restorecon pathname>."
1190 msgstr ""
1191
1192 # type: =head2
1193 #. type: =head2
1194 #: ../src/guestfs.pod:502
1195 msgid "UMASK"
1196 msgstr ""
1197
1198 # type: textblock
1199 #. type: textblock
1200 #: ../src/guestfs.pod:504
1201 msgid ""
1202 "Certain calls are affected by the current file mode creation mask (the "
1203 "\"umask\").  In particular ones which create files or directories, such as "
1204 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1205 "either the default mode that the file is created with or modifies the mode "
1206 "that you supply."
1207 msgstr ""
1208
1209 # type: textblock
1210 #. type: textblock
1211 #: ../src/guestfs.pod:510
1212 msgid ""
1213 "The default umask is C<022>, so files are created with modes such as C<0644> "
1214 "and directories with C<0755>."
1215 msgstr ""
1216
1217 # type: textblock
1218 #. type: textblock
1219 #: ../src/guestfs.pod:513
1220 msgid ""
1221 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1222 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1223 "guestfs_chmod> after creating each file or directory."
1224 msgstr ""
1225
1226 # type: textblock
1227 #. type: textblock
1228 #: ../src/guestfs.pod:517
1229 msgid "For more information about umask, see L<umask(2)>."
1230 msgstr ""
1231
1232 # type: =head1
1233 #. type: =head1
1234 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:765
1235 msgid "ENCRYPTED DISKS"
1236 msgstr ""
1237
1238 # type: textblock
1239 #. type: textblock
1240 #: ../src/guestfs.pod:521
1241 msgid ""
1242 "Libguestfs allows you to access Linux guests which have been encrypted using "
1243 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1244 "standard.  This includes nearly all whole disk encryption systems used by "
1245 "modern Linux guests."
1246 msgstr ""
1247
1248 # type: textblock
1249 #. type: textblock
1250 #: ../src/guestfs.pod:527
1251 msgid ""
1252 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1253 "returns the string C<crypto_LUKS>)."
1254 msgstr ""
1255
1256 # type: textblock
1257 #. type: textblock
1258 #: ../src/guestfs.pod:530
1259 msgid ""
1260 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1261 "will require the passphrase!"
1262 msgstr ""
1263
1264 # type: textblock
1265 #. type: textblock
1266 #: ../src/guestfs.pod:533
1267 msgid ""
1268 "Opening a LUKS device creates a new device mapper device called C</dev/"
1269 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1270 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1271 "from and encrypted to the underlying block device respectively."
1272 msgstr ""
1273
1274 # type: textblock
1275 #. type: textblock
1276 #: ../src/guestfs.pod:539
1277 msgid ""
1278 "LVM volume groups on the device can be made visible by calling L</"
1279 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1280 "(s) can now be mounted in the usual way."
1281 msgstr ""
1282
1283 # type: textblock
1284 #. type: textblock
1285 #: ../src/guestfs.pod:543
1286 msgid ""
1287 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1288 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1289 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1290 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1291 "underlying encrypted block device)."
1292 msgstr ""
1293
1294 # type: =head2
1295 #. type: =head2
1296 #: ../src/guestfs.pod:550
1297 msgid "INSPECTION"
1298 msgstr ""
1299
1300 #. type: textblock
1301 #: ../src/guestfs.pod:552
1302 msgid ""
1303 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1304 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1305 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1306 "version 1.5.3 the most frequently used part of this library has been "
1307 "rewritten in C and moved into the core code)."
1308 msgstr ""
1309
1310 # type: textblock
1311 #. type: textblock
1312 #: ../src/guestfs.pod:559
1313 msgid ""
1314 "Add all disks belonging to the unknown virtual machine and call L</"
1315 "guestfs_launch> in the usual way."
1316 msgstr ""
1317
1318 # type: textblock
1319 #. type: textblock
1320 #: ../src/guestfs.pod:562
1321 msgid ""
1322 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1323 "and certain heuristics, and returns a list of operating systems that were "
1324 "found.  An empty list means none were found.  A single element is the root "
1325 "filesystem of the operating system.  For dual- or multi-boot guests, "
1326 "multiple roots can be returned, each one corresponding to a separate "
1327 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1328 "world of virtualization, but since this scenario can happen, we have built "
1329 "libguestfs to deal with it.)"
1330 msgstr ""
1331
1332 # type: textblock
1333 #. type: textblock
1334 #: ../src/guestfs.pod:571
1335 msgid ""
1336 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1337 "to get additional details about that operating system.  For example, call L</"
1338 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1339 "Windows and Linux-based operating systems respectively."
1340 msgstr ""
1341
1342 # type: textblock
1343 #. type: textblock
1344 #: ../src/guestfs.pod:577
1345 msgid ""
1346 "Un*x-like and Linux-based operating systems usually consist of several "
1347 "filesystems which are mounted at boot time (for example, a separate boot "
1348 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1349 "filesystems correspond to mount points.  Call "
1350 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1351 "hash table like this example:"
1352 msgstr ""
1353
1354 # type: verbatim
1355 #. type: verbatim
1356 #: ../src/guestfs.pod:584
1357 #, no-wrap
1358 msgid ""
1359 " /boot => /dev/sda1\n"
1360 " /     => /dev/vg_guest/lv_root\n"
1361 " /usr  => /dev/vg_guest/lv_usr\n"
1362 "\n"
1363 msgstr ""
1364
1365 # type: textblock
1366 #. type: textblock
1367 #: ../src/guestfs.pod:588
1368 msgid ""
1369 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1370 "filesystems as suggested."
1371 msgstr ""
1372
1373 # type: textblock
1374 #. type: textblock
1375 #: ../src/guestfs.pod:591
1376 msgid ""
1377 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1378 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1379 msgstr ""
1380
1381 # type: textblock
1382 #. type: textblock
1383 #: ../src/guestfs.pod:595
1384 msgid ""
1385 "Inspection currently only works for some common operating systems.  "
1386 "Contributors are welcome to send patches for other operating systems that we "
1387 "currently cannot detect."
1388 msgstr ""
1389
1390 # type: textblock
1391 #. type: textblock
1392 #: ../src/guestfs.pod:599
1393 msgid ""
1394 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1395 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1396 "encrypted devices."
1397 msgstr ""
1398
1399 # type: textblock
1400 #. type: textblock
1401 #: ../src/guestfs.pod:603
1402 msgid ""
1403 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1404 "inspection and caches the results in the guest handle.  Subsequent calls to "
1405 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1406 "read the disks.  If you change the content of the guest disks, you can redo "
1407 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1408 "guestfs_inspect_list_applications> works a little differently from the other "
1409 "calls and does read the disks.  See documentation for that function for "
1410 "details)."
1411 msgstr ""
1412
1413 #. type: =head3
1414 #: ../src/guestfs.pod:612
1415 msgid "INSPECTING INSTALL DISKS"
1416 msgstr ""
1417
1418 #. type: textblock
1419 #: ../src/guestfs.pod:614
1420 msgid ""
1421 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1422 "CDs and more."
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../src/guestfs.pod:617
1427 msgid ""
1428 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1429 "system, which currently can be C<installed> (a regular operating system) or "
1430 "C<installer> (some sort of install disk)."
1431 msgstr ""
1432
1433 #. type: textblock
1434 #: ../src/guestfs.pod:621
1435 msgid ""
1436 "Further information is available about the operating system that can be "
1437 "installed using the regular inspection APIs like L</"
1438 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../src/guestfs.pod:626
1443 msgid ""
1444 "Some additional information specific to installer disks is also available "
1445 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1446 "guestfs_inspect_is_multipart> calls."
1447 msgstr ""
1448
1449 # type: =head2
1450 #. type: =head2
1451 #: ../src/guestfs.pod:631
1452 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1453 msgstr ""
1454
1455 # type: textblock
1456 #. type: textblock
1457 #: ../src/guestfs.pod:633
1458 msgid ""
1459 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1460 "ntfs-3g.org/> driver."
1461 msgstr ""
1462
1463 # type: =head3
1464 #. type: =head3
1465 #: ../src/guestfs.pod:636
1466 msgid "DRIVE LETTERS AND PATHS"
1467 msgstr ""
1468
1469 # type: textblock
1470 #. type: textblock
1471 #: ../src/guestfs.pod:638
1472 msgid ""
1473 "DOS and Windows still use drive letters, and the filesystems are always "
1474 "treated as case insensitive by Windows itself, and therefore you might find "
1475 "a Windows configuration file referring to a path like C<c:\\windows"
1476 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1477 "might be referred to as C</WINDOWS/System32>."
1478 msgstr ""
1479
1480 # type: textblock
1481 #. type: textblock
1482 #: ../src/guestfs.pod:644
1483 msgid ""
1484 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1485 "libguestfs to read the appropriate Windows Registry and configuration files, "
1486 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1487 "inspector(1)>)."
1488 msgstr ""
1489
1490 # type: textblock
1491 #. type: textblock
1492 #: ../src/guestfs.pod:649
1493 msgid ""
1494 "Replacing backslash characters with forward slash characters is also outside "
1495 "the scope of libguestfs, but something that you can easily do."
1496 msgstr ""
1497
1498 # type: textblock
1499 #. type: textblock
1500 #: ../src/guestfs.pod:652
1501 msgid ""
1502 "Where we can help is in resolving the case insensitivity of paths.  For "
1503 "this, call L</guestfs_case_sensitive_path>."
1504 msgstr ""
1505
1506 # type: =head3
1507 #. type: =head3
1508 #: ../src/guestfs.pod:655
1509 msgid "ACCESSING THE WINDOWS REGISTRY"
1510 msgstr ""
1511
1512 # type: textblock
1513 #. type: textblock
1514 #: ../src/guestfs.pod:657
1515 msgid ""
1516 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1517 "files, through the library C<hivex> which is part of the libguestfs project "
1518 "although ships as a separate tarball.  You have to locate and download the "
1519 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1520 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1521 "reg(1)> for more help on this issue."
1522 msgstr ""
1523
1524 # type: =head3
1525 #. type: =head3
1526 #: ../src/guestfs.pod:665
1527 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1528 msgstr ""
1529
1530 # type: textblock
1531 #. type: textblock
1532 #: ../src/guestfs.pod:667
1533 msgid ""
1534 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1535 "provide something which looks like a Linux symlink.  The way it tries to do "
1536 "the rewriting is described here:"
1537 msgstr ""
1538
1539 # type: textblock
1540 #. type: textblock
1541 #: ../src/guestfs.pod:671
1542 msgid ""
1543 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1544 "symbolic-links/>"
1545 msgstr ""
1546
1547 # type: textblock
1548 #. type: textblock
1549 #: ../src/guestfs.pod:673
1550 msgid ""
1551 "The essential problem is that ntfs-3g simply does not have enough "
1552 "information to do a correct job.  NTFS links can contain drive letters and "
1553 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1554 "It is almost certainly the case that libguestfs callers should ignore what "
1555 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1556 msgstr ""
1557
1558 # type: textblock
1559 #. type: textblock
1560 #: ../src/guestfs.pod:680
1561 msgid ""
1562 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1563 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1564 "attribute, and read the raw reparse data from that (you can find the format "
1565 "documented in various places around the web)."
1566 msgstr ""
1567
1568 # type: =head3
1569 #. type: =head3
1570 #: ../src/guestfs.pod:685
1571 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1572 msgstr ""
1573
1574 # type: textblock
1575 #. type: textblock
1576 #: ../src/guestfs.pod:687
1577 msgid ""
1578 "There are other useful extended attributes that can be read from ntfs-3g "
1579 "filesystems (using L</guestfs_getxattr>).  See:"
1580 msgstr ""
1581
1582 # type: textblock
1583 #. type: textblock
1584 #: ../src/guestfs.pod:690
1585 msgid ""
1586 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1587 msgstr ""
1588
1589 # type: =head2
1590 #. type: =head2
1591 #: ../src/guestfs.pod:692
1592 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1593 msgstr ""
1594
1595 # type: textblock
1596 #. type: textblock
1597 #: ../src/guestfs.pod:694
1598 msgid ""
1599 "Although we don't want to discourage you from using the C API, we will "
1600 "mention here that the same API is also available in other languages."
1601 msgstr ""
1602
1603 #. type: textblock
1604 #: ../src/guestfs.pod:697
1605 msgid ""
1606 "The API is broadly identical in all supported languages.  This means that "
1607 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1608 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1609 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1610 "each language."
1611 msgstr ""
1612
1613 # type: textblock
1614 #. type: textblock
1615 #: ../src/guestfs.pod:703
1616 msgid ""
1617 "Error messages are automatically transformed into exceptions if the language "
1618 "supports it."
1619 msgstr ""
1620
1621 # type: textblock
1622 #. type: textblock
1623 #: ../src/guestfs.pod:706
1624 msgid ""
1625 "We don't try to \"object orientify\" parts of the API in OO languages, "
1626 "although contributors are welcome to write higher level APIs above what we "
1627 "provide in their favourite languages if they wish."
1628 msgstr ""
1629
1630 # type: =item
1631 #. type: =item
1632 #: ../src/guestfs.pod:712
1633 msgid "B<C++>"
1634 msgstr ""
1635
1636 # type: textblock
1637 #. type: textblock
1638 #: ../src/guestfs.pod:714
1639 msgid ""
1640 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1641 "identical to the C API.  C++ classes and exceptions are not used."
1642 msgstr ""
1643
1644 # type: =item
1645 #. type: =item
1646 #: ../src/guestfs.pod:718
1647 msgid "B<C#>"
1648 msgstr ""
1649
1650 # type: textblock
1651 #. type: textblock
1652 #: ../src/guestfs.pod:720
1653 msgid ""
1654 "The C# bindings are highly experimental.  Please read the warnings at the "
1655 "top of C<csharp/Libguestfs.cs>."
1656 msgstr ""
1657
1658 # type: =item
1659 #. type: =item
1660 #: ../src/guestfs.pod:723
1661 msgid "B<Haskell>"
1662 msgstr ""
1663
1664 # type: textblock
1665 #. type: textblock
1666 #: ../src/guestfs.pod:725
1667 msgid ""
1668 "This is the only language binding that is working but incomplete.  Only "
1669 "calls which return simple integers have been bound in Haskell, and we are "
1670 "looking for help to complete this binding."
1671 msgstr ""
1672
1673 # type: =item
1674 #. type: =item
1675 #: ../src/guestfs.pod:729
1676 msgid "B<Java>"
1677 msgstr ""
1678
1679 # type: textblock
1680 #. type: textblock
1681 #: ../src/guestfs.pod:731
1682 msgid ""
1683 "Full documentation is contained in the Javadoc which is distributed with "
1684 "libguestfs."
1685 msgstr ""
1686
1687 # type: =item
1688 #. type: =item
1689 #: ../src/guestfs.pod:734
1690 msgid "B<OCaml>"
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../src/guestfs.pod:736
1695 msgid "See L<guestfs-ocaml(3)>."
1696 msgstr ""
1697
1698 # type: =item
1699 #. type: =item
1700 #: ../src/guestfs.pod:738
1701 msgid "B<Perl>"
1702 msgstr ""
1703
1704 #. type: textblock
1705 #: ../src/guestfs.pod:740
1706 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1707 msgstr ""
1708
1709 # type: =item
1710 #. type: =item
1711 #: ../src/guestfs.pod:742
1712 msgid "B<PHP>"
1713 msgstr ""
1714
1715 # type: textblock
1716 #. type: textblock
1717 #: ../src/guestfs.pod:744
1718 msgid ""
1719 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1720 "the php-libguestfs package for your distribution."
1721 msgstr ""
1722
1723 # type: textblock
1724 #. type: textblock
1725 #: ../src/guestfs.pod:747
1726 msgid "The PHP binding only works correctly on 64 bit machines."
1727 msgstr ""
1728
1729 # type: =item
1730 #. type: =item
1731 #: ../src/guestfs.pod:749
1732 msgid "B<Python>"
1733 msgstr ""
1734
1735 #. type: textblock
1736 #: ../src/guestfs.pod:751
1737 msgid "See L<guestfs-python(3)>."
1738 msgstr ""
1739
1740 # type: =item
1741 #. type: =item
1742 #: ../src/guestfs.pod:753
1743 msgid "B<Ruby>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../src/guestfs.pod:755
1748 msgid "See L<guestfs-ruby(3)>."
1749 msgstr ""
1750
1751 # type: =item
1752 #. type: =item
1753 #: ../src/guestfs.pod:757
1754 msgid "B<shell scripts>"
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../src/guestfs.pod:759
1759 msgid "See L<guestfish(1)>."
1760 msgstr ""
1761
1762 # type: =head2
1763 #. type: =head2
1764 #: ../src/guestfs.pod:763
1765 msgid "LIBGUESTFS GOTCHAS"
1766 msgstr ""
1767
1768 # type: textblock
1769 #. type: textblock
1770 #: ../src/guestfs.pod:765
1771 msgid ""
1772 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1773 "system [...] that works in the way it is documented but is counterintuitive "
1774 "and almost invites mistakes.\""
1775 msgstr ""
1776
1777 # type: textblock
1778 #. type: textblock
1779 #: ../src/guestfs.pod:769
1780 msgid ""
1781 "Since we developed libguestfs and the associated tools, there are several "
1782 "things we would have designed differently, but are now stuck with for "
1783 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1784 "release, you can expect these to change.  Beware of them."
1785 msgstr ""
1786
1787 # type: =item
1788 #. type: =item
1789 #: ../src/guestfs.pod:777
1790 msgid "Autosync / forgetting to sync."
1791 msgstr ""
1792
1793 # type: textblock
1794 #. type: textblock
1795 #: ../src/guestfs.pod:779
1796 msgid ""
1797 "When modifying a filesystem from C or another language, you B<must> unmount "
1798 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1799 "libguestfs handle.  You can also call:"
1800 msgstr ""
1801
1802 # type: verbatim
1803 #. type: verbatim
1804 #: ../src/guestfs.pod:783
1805 #, no-wrap
1806 msgid ""
1807 " guestfs_set_autosync (g, 1);\n"
1808 "\n"
1809 msgstr ""
1810
1811 # type: textblock
1812 #. type: textblock
1813 #: ../src/guestfs.pod:785
1814 msgid ""
1815 "to have the unmount/sync done automatically for you when the handle 'g' is "
1816 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1817 msgstr ""
1818
1819 # type: textblock
1820 #. type: textblock
1821 #: ../src/guestfs.pod:789
1822 msgid ""
1823 "If you forget to do this, then it is entirely possible that your changes "
1824 "won't be written out, or will be partially written, or (very rarely) that "
1825 "you'll get disk corruption."
1826 msgstr ""
1827
1828 # type: textblock
1829 #. type: textblock
1830 #: ../src/guestfs.pod:793
1831 msgid ""
1832 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1833 "guestfish scripts that forget to sync will work just fine, which can make "
1834 "this very puzzling if you are trying to debug a problem."
1835 msgstr ""
1836
1837 # type: textblock
1838 #. type: textblock
1839 #: ../src/guestfs.pod:797
1840 msgid ""
1841 "Update: Autosync is enabled by default for all API users starting from "
1842 "libguestfs 1.5.24."
1843 msgstr ""
1844
1845 # type: =item
1846 #. type: =item
1847 #: ../src/guestfs.pod:800
1848 msgid "Mount option C<-o sync> should not be the default."
1849 msgstr ""
1850
1851 # type: textblock
1852 #. type: textblock
1853 #: ../src/guestfs.pod:802
1854 msgid ""
1855 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1856 "However C<-o sync> does not add any reliability benefit, but does have a "
1857 "very large performance impact."
1858 msgstr ""
1859
1860 # type: textblock
1861 #. type: textblock
1862 #: ../src/guestfs.pod:806
1863 msgid ""
1864 "The work around is to use L</guestfs_mount_options> and set the mount "
1865 "options that you actually want to use."
1866 msgstr ""
1867
1868 # type: =item
1869 #. type: =item
1870 #: ../src/guestfs.pod:809
1871 msgid "Read-only should be the default."
1872 msgstr ""
1873
1874 # type: textblock
1875 #. type: textblock
1876 #: ../src/guestfs.pod:811
1877 msgid ""
1878 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1879 "specify I<--rw> if you want to make changes to the image."
1880 msgstr ""
1881
1882 # type: textblock
1883 #. type: textblock
1884 #: ../src/guestfs.pod:814
1885 msgid "This would reduce the potential to corrupt live VM images."
1886 msgstr ""
1887
1888 # type: textblock
1889 #. type: textblock
1890 #: ../src/guestfs.pod:816
1891 msgid ""
1892 "Note that many filesystems change the disk when you just mount and unmount, "
1893 "even if you didn't perform any writes.  You need to use L</"
1894 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1895 msgstr ""
1896
1897 # type: =item
1898 #. type: =item
1899 #: ../src/guestfs.pod:820
1900 msgid "guestfish command line is hard to use."
1901 msgstr ""
1902
1903 # type: textblock
1904 #. type: textblock
1905 #: ../src/guestfs.pod:822
1906 msgid ""
1907 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1908 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1909 "exist, so it fails.  In earlier versions of guestfish the error message was "
1910 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1911 "we should have used C<guestfish -c command> to run commands."
1912 msgstr ""
1913
1914 # type: =item
1915 #. type: =item
1916 #: ../src/guestfs.pod:829
1917 msgid "guestfish megabyte modifiers don't work right on all commands"
1918 msgstr ""
1919
1920 # type: textblock
1921 #. type: textblock
1922 #: ../src/guestfs.pod:831
1923 msgid ""
1924 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1925 "other modifiers).  What guestfish actually does is to multiply the number "
1926 "part by the modifier part and pass the result to the C API.  However this "
1927 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1928 "expecting some other unit (eg. megabytes)."
1929 msgstr ""
1930
1931 # type: textblock
1932 #. type: textblock
1933 #: ../src/guestfs.pod:838
1934 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1935 msgstr ""
1936
1937 # type: verbatim
1938 #. type: verbatim
1939 #: ../src/guestfs.pod:840
1940 #, no-wrap
1941 msgid ""
1942 " lvcreate LV VG 100M\n"
1943 "\n"
1944 msgstr ""
1945
1946 # type: textblock
1947 #. type: textblock
1948 #: ../src/guestfs.pod:842
1949 msgid ""
1950 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1951 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1952 "megabytes * megabytes) logical volume.  The error message you get from this "
1953 "is also a little obscure."
1954 msgstr ""
1955
1956 # type: textblock
1957 #. type: textblock
1958 #: ../src/guestfs.pod:847
1959 msgid ""
1960 "This could be fixed in the generator by specially marking parameters and "
1961 "return values which take bytes or other units."
1962 msgstr ""
1963
1964 # type: =item
1965 #. type: =item
1966 #: ../src/guestfs.pod:850
1967 msgid "Ambiguity between devices and paths"
1968 msgstr ""
1969
1970 # type: textblock
1971 #. type: textblock
1972 #: ../src/guestfs.pod:852
1973 msgid ""
1974 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1975 "sdb2>) and a similar pathname.  A file might just happen to be called "
1976 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1977 msgstr ""
1978
1979 # type: textblock
1980 #. type: textblock
1981 #: ../src/guestfs.pod:857
1982 msgid ""
1983 "In the current API we usually resolve this ambiguity by having two separate "
1984 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1985 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1986 "detecting if the path supplied begins with C</dev/>."
1987 msgstr ""
1988
1989 # type: textblock
1990 #. type: textblock
1991 #: ../src/guestfs.pod:863
1992 msgid ""
1993 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1994 "make paths/devices into structured names.  One way to do this would be to "
1995 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1996 "aspect of grub.  Another way would be to use a structured type, equivalent "
1997 "to this OCaml type:"
1998 msgstr ""
1999
2000 # type: verbatim
2001 #. type: verbatim
2002 #: ../src/guestfs.pod:869
2003 #, no-wrap
2004 msgid ""
2005 " type path = Path of string | Device of int | Partition of int * int\n"
2006 "\n"
2007 msgstr ""
2008
2009 # type: textblock
2010 #. type: textblock
2011 #: ../src/guestfs.pod:871
2012 msgid "which would allow you to pass arguments like:"
2013 msgstr ""
2014
2015 # type: verbatim
2016 #. type: verbatim
2017 #: ../src/guestfs.pod:873
2018 #, no-wrap
2019 msgid ""
2020 " Path \"/foo/bar\"\n"
2021 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2022 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2023 " Path \"/dev/sdb2\"    (* not a device *)\n"
2024 "\n"
2025 msgstr ""
2026
2027 # type: textblock
2028 #. type: textblock
2029 #: ../src/guestfs.pod:878
2030 msgid ""
2031 "As you can see there are still problems to resolve even with this "
2032 "representation.  Also consider how it might work in guestfish."
2033 msgstr ""
2034
2035 # type: =head2
2036 #. type: =head2
2037 #: ../src/guestfs.pod:883
2038 msgid "PROTOCOL LIMITS"
2039 msgstr ""
2040
2041 # type: textblock
2042 #. type: textblock
2043 #: ../src/guestfs.pod:885
2044 msgid ""
2045 "Internally libguestfs uses a message-based protocol to pass API calls and "
2046 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
2047 "plenty more detail about this).  The maximum message size used by the "
2048 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
2049 "aware of this limit.  The API calls which may be affected are individually "
2050 "documented, with a link back to this section of the documentation."
2051 msgstr ""
2052
2053 # type: textblock
2054 #. type: textblock
2055 #: ../src/guestfs.pod:893
2056 msgid ""
2057 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
2058 "a simple string.  Because this string is at some point internally encoded as "
2059 "a message, the maximum size that it can return is slightly under 4 MB.  If "
2060 "the requested file is larger than this then you will get an error."
2061 msgstr ""
2062
2063 # type: textblock
2064 #. type: textblock
2065 #: ../src/guestfs.pod:899
2066 msgid ""
2067 "In order to transfer large files into and out of the guest filesystem, you "
2068 "need to use particular calls that support this.  The sections L</UPLOADING> "
2069 "and L</DOWNLOADING> document how to do this."
2070 msgstr ""
2071
2072 # type: textblock
2073 #. type: textblock
2074 #: ../src/guestfs.pod:903
2075 msgid ""
2076 "You might also consider mounting the disk image using our FUSE filesystem "
2077 "support (L<guestmount(1)>)."
2078 msgstr ""
2079
2080 # type: =head2
2081 #. type: =head2
2082 #: ../src/guestfs.pod:906
2083 msgid "KEYS AND PASSPHRASES"
2084 msgstr ""
2085
2086 # type: textblock
2087 #. type: textblock
2088 #: ../src/guestfs.pod:908
2089 msgid ""
2090 "Certain libguestfs calls take a parameter that contains sensitive key "
2091 "material, passed in as a C string."
2092 msgstr ""
2093
2094 # type: textblock
2095 #. type: textblock
2096 #: ../src/guestfs.pod:911
2097 msgid ""
2098 "In the future we would hope to change the libguestfs implementation so that "
2099 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2100 "swap.  However this is I<not> done at the moment, because of the complexity "
2101 "of such an implementation."
2102 msgstr ""
2103
2104 # type: textblock
2105 #. type: textblock
2106 #: ../src/guestfs.pod:916
2107 msgid ""
2108 "Therefore you should be aware that any key parameter you pass to libguestfs "
2109 "might end up being written out to the swap partition.  If this is a concern, "
2110 "scrub the swap partition or don't use libguestfs on encrypted devices."
2111 msgstr ""
2112
2113 # type: =head1
2114 #. type: =head2
2115 #: ../src/guestfs.pod:921
2116 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2117 msgstr ""
2118
2119 # type: textblock
2120 #. type: textblock
2121 #: ../src/guestfs.pod:923
2122 msgid ""
2123 "All high-level libguestfs actions are synchronous.  If you want to use "
2124 "libguestfs asynchronously then you must create a thread."
2125 msgstr ""
2126
2127 # type: textblock
2128 #. type: textblock
2129 #: ../src/guestfs.pod:926
2130 msgid ""
2131 "Only use the handle from a single thread.  Either use the handle exclusively "
2132 "from one thread, or provide your own mutex so that two threads cannot issue "
2133 "calls on the same handle at the same time."
2134 msgstr ""
2135
2136 # type: textblock
2137 #. type: textblock
2138 #: ../src/guestfs.pod:930
2139 msgid ""
2140 "See the graphical program guestfs-browser for one possible architecture for "
2141 "multithreaded programs using libvirt and libguestfs."
2142 msgstr ""
2143
2144 # type: =head1
2145 #. type: =head2
2146 #: ../src/guestfs.pod:933
2147 msgid "PATH"
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../src/guestfs.pod:935
2152 msgid ""
2153 "Libguestfs needs a supermin appliance, which it finds by looking along an "
2154 "internal path."
2155 msgstr ""
2156
2157 # type: textblock
2158 #. type: textblock
2159 #: ../src/guestfs.pod:938
2160 msgid ""
2161 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2162 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2163 msgstr ""
2164
2165 # type: textblock
2166 #. type: textblock
2167 #: ../src/guestfs.pod:941
2168 msgid ""
2169 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2170 "to change the directories that libguestfs will search in.  The value is a "
2171 "colon-separated list of paths.  The current directory is I<not> searched "
2172 "unless the path contains an empty element or C<.>.  For example "
2173 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2174 "then C</usr/lib/guestfs>."
2175 msgstr ""
2176
2177 # type: =head1
2178 #. type: =head2
2179 #: ../src/guestfs.pod:948
2180 msgid "QEMU WRAPPERS"
2181 msgstr ""
2182
2183 # type: textblock
2184 #. type: textblock
2185 #: ../src/guestfs.pod:950
2186 msgid ""
2187 "If you want to compile your own qemu, run qemu from a non-standard location, "
2188 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2189 "around qemu."
2190 msgstr ""
2191
2192 # type: textblock
2193 #. type: textblock
2194 #: ../src/guestfs.pod:954
2195 msgid ""
2196 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2197 "last command in the shell script (so that qemu replaces the shell and "
2198 "becomes the direct child of the libguestfs-using program).  If you don't do "
2199 "this, then the qemu process won't be cleaned up correctly."
2200 msgstr ""
2201
2202 # type: textblock
2203 #. type: textblock
2204 #: ../src/guestfs.pod:959
2205 msgid ""
2206 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2207 "source:"
2208 msgstr ""
2209
2210 # type: verbatim
2211 #. type: verbatim
2212 #: ../src/guestfs.pod:962
2213 #, no-wrap
2214 msgid ""
2215 " #!/bin/sh -\n"
2216 " qemudir=/home/rjones/d/qemu\n"
2217 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2218 "\n"
2219 msgstr ""
2220
2221 # type: textblock
2222 #. type: textblock
2223 #: ../src/guestfs.pod:966
2224 msgid ""
2225 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2226 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2227 "example:"
2228 msgstr ""
2229
2230 # type: verbatim
2231 #. type: verbatim
2232 #: ../src/guestfs.pod:970
2233 #, no-wrap
2234 msgid ""
2235 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2236 "\n"
2237 msgstr ""
2238
2239 # type: textblock
2240 #. type: textblock
2241 #: ../src/guestfs.pod:972
2242 msgid ""
2243 "Note that libguestfs also calls qemu with the -help and -version options in "
2244 "order to determine features."
2245 msgstr ""
2246
2247 #. type: =head2
2248 #: ../src/guestfs.pod:975
2249 msgid "ATTACHING TO RUNNING DAEMONS"
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../src/guestfs.pod:977
2254 msgid ""
2255 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2256 "babies.  Use with caution."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../src/guestfs.pod:980
2261 msgid ""
2262 "I<Note (2):> This section explains how to attach to a running daemon from a "
2263 "low level perspective.  For most users, simply using virt tools such as "
2264 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2265 msgstr ""
2266
2267 #. type: =head3
2268 #: ../src/guestfs.pod:984
2269 msgid "Using guestfs_set_attach_method"
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../src/guestfs.pod:986
2274 msgid ""
2275 "By calling L</guestfs_set_attach_method> you can change how the library "
2276 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2277 "ARCHITECTURE> for some background)."
2278 msgstr ""
2279
2280 #. type: textblock
2281 #: ../src/guestfs.pod:990
2282 msgid ""
2283 "The normal attach method is C<appliance>, where a small appliance is created "
2284 "containing the daemon, and then the library connects to this."
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../src/guestfs.pod:993
2289 msgid ""
2290 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2291 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2292 "daemon over the Unix domain socket."
2293 msgstr ""
2294
2295 #. type: textblock
2296 #: ../src/guestfs.pod:997
2297 msgid ""
2298 "The normal use for this is to connect to a running virtual machine that "
2299 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2300 "files inside the live virtual machine."
2301 msgstr ""
2302
2303 #. type: =head3
2304 #: ../src/guestfs.pod:1001
2305 msgid "Using guestfs_add_domain with live flag"
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../src/guestfs.pod:1003
2310 msgid ""
2311 "L</guestfs_add_domain> provides some help for getting the correct attach "
2312 "method.  If you pass the C<live> option to this function, then (if the "
2313 "virtual machine is running) it will examine the libvirt XML looking for a "
2314 "virtio-serial channel to connect to:"
2315 msgstr ""
2316
2317 #. type: verbatim
2318 #: ../src/guestfs.pod:1009
2319 #, no-wrap
2320 msgid ""
2321 " <domain>\n"
2322 "   ...\n"
2323 "   <devices>\n"
2324 "     ...\n"
2325 "     <channel type='unix'>\n"
2326 "       <source mode='bind' path='/path/to/socket'/>\n"
2327 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2328 "     </channel>\n"
2329 "     ...\n"
2330 "   </devices>\n"
2331 " </domain>\n"
2332 "\n"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../src/guestfs.pod:1021
2337 msgid ""
2338 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2339 "method to C<unix:/path/to/socket>."
2340 msgstr ""
2341
2342 #. type: textblock
2343 #: ../src/guestfs.pod:1024
2344 msgid ""
2345 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2346 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2347 "to attach to and modify live virtual machines."
2348 msgstr ""
2349
2350 #. type: textblock
2351 #: ../src/guestfs.pod:1028
2352 msgid ""
2353 "The virtual machine needs to have been set up beforehand so that it has the "
2354 "virtio-serial channel and so that guestfsd is running inside it."
2355 msgstr ""
2356
2357 # type: =head2
2358 #. type: =head2
2359 #: ../src/guestfs.pod:1032
2360 msgid "ABI GUARANTEE"
2361 msgstr ""
2362
2363 # type: textblock
2364 #. type: textblock
2365 #: ../src/guestfs.pod:1034
2366 msgid ""
2367 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2368 "actions as outlined in this section.  Although we will deprecate some "
2369 "actions, for example if they get replaced by newer calls, we will keep the "
2370 "old actions forever.  This allows you the developer to program in confidence "
2371 "against the libguestfs API."
2372 msgstr ""
2373
2374 # type: =head1
2375 #. type: =head2
2376 #: ../src/guestfs.pod:1040
2377 msgid "BLOCK DEVICE NAMING"
2378 msgstr ""
2379
2380 # type: textblock
2381 #. type: textblock
2382 #: ../src/guestfs.pod:1042
2383 msgid ""
2384 "In the kernel there is now quite a profusion of schemata for naming block "
2385 "devices (in this context, by I<block device> I mean a physical or virtual "
2386 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2387 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2388 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2389 "for the old IDE driver (particularly for SATA devices) those devices also "
2390 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2391 "paravirtualized drivers.  This has created several different naming systems, "
2392 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2393 msgstr ""
2394
2395 # type: textblock
2396 #. type: textblock
2397 #: ../src/guestfs.pod:1054
2398 msgid ""
2399 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2400 "Linux kernel to access block devices.  We can run a variety of appliances "
2401 "based on a variety of Linux kernels."
2402 msgstr ""
2403
2404 # type: textblock
2405 #. type: textblock
2406 #: ../src/guestfs.pod:1058
2407 msgid ""
2408 "This causes a problem for libguestfs because many API calls use device or "
2409 "partition names.  Working scripts and the recipe (example) scripts that we "
2410 "make available over the internet could fail if the naming scheme changes."
2411 msgstr ""
2412
2413 # type: textblock
2414 #. type: textblock
2415 #: ../src/guestfs.pod:1063
2416 msgid ""
2417 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2418 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2419 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2420 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2421 msgstr ""
2422
2423 # type: textblock
2424 #. type: textblock
2425 #: ../src/guestfs.pod:1069
2426 msgid ""
2427 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2428 "L</guestfs_list_partitions> and similar calls return the true names of the "
2429 "devices and partitions as known to the appliance."
2430 msgstr ""
2431
2432 # type: =head2
2433 #. type: =head3
2434 #: ../src/guestfs.pod:1074
2435 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2436 msgstr ""
2437
2438 # type: textblock
2439 #. type: textblock
2440 #: ../src/guestfs.pod:1076
2441 msgid ""
2442 "Usually this translation is transparent.  However in some (very rare)  cases "
2443 "you may need to know the exact algorithm.  Such cases include where you use "
2444 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2445 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2446 msgstr ""
2447
2448 # type: textblock
2449 #. type: textblock
2450 #: ../src/guestfs.pod:1082
2451 msgid ""
2452 "The algorithm is applied only to I<parameters> which are known to be either "
2453 "device or partition names.  Return values from functions such as L</"
2454 "guestfs_list_devices> are never changed."
2455 msgstr ""
2456
2457 # type: textblock
2458 #. type: textblock
2459 #: ../src/guestfs.pod:1090
2460 msgid "Is the string a parameter which is a device or partition name?"
2461 msgstr ""
2462
2463 # type: textblock
2464 #. type: textblock
2465 #: ../src/guestfs.pod:1094
2466 msgid "Does the string begin with C</dev/sd>?"
2467 msgstr ""
2468
2469 # type: textblock
2470 #. type: textblock
2471 #: ../src/guestfs.pod:1098
2472 msgid ""
2473 "Does the named device exist? If so, we use that device.  However if I<not> "
2474 "then we continue with this algorithm."
2475 msgstr ""
2476
2477 # type: textblock
2478 #. type: textblock
2479 #: ../src/guestfs.pod:1103
2480 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2481 msgstr ""
2482
2483 # type: textblock
2484 #. type: textblock
2485 #: ../src/guestfs.pod:1105
2486 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2487 msgstr ""
2488
2489 # type: textblock
2490 #. type: textblock
2491 #: ../src/guestfs.pod:1107
2492 msgid "If that named device exists, use it.  If not, continue."
2493 msgstr ""
2494
2495 # type: textblock
2496 #. type: textblock
2497 #: ../src/guestfs.pod:1111
2498 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2499 msgstr ""
2500
2501 # type: textblock
2502 #. type: textblock
2503 #: ../src/guestfs.pod:1113
2504 msgid "If that named device exists, use it.  If not, return an error."
2505 msgstr ""
2506
2507 # type: =head3
2508 #. type: =head3
2509 #: ../src/guestfs.pod:1117
2510 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2511 msgstr ""
2512
2513 # type: textblock
2514 #. type: textblock
2515 #: ../src/guestfs.pod:1119
2516 msgid ""
2517 "Although the standard naming scheme and automatic translation is useful for "
2518 "simple programs and guestfish scripts, for larger programs it is best not to "
2519 "rely on this mechanism."
2520 msgstr ""
2521
2522 # type: textblock
2523 #. type: textblock
2524 #: ../src/guestfs.pod:1123
2525 msgid ""
2526 "Where possible for maximum future portability programs using libguestfs "
2527 "should use these future-proof techniques:"
2528 msgstr ""
2529
2530 # type: textblock
2531 #. type: textblock
2532 #: ../src/guestfs.pod:1130
2533 msgid ""
2534 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2535 "device names, and then use those names directly."
2536 msgstr ""
2537
2538 # type: textblock
2539 #. type: textblock
2540 #: ../src/guestfs.pod:1133
2541 msgid ""
2542 "Since those device names exist by definition, they will never be translated."
2543 msgstr ""
2544
2545 # type: textblock
2546 #. type: textblock
2547 #: ../src/guestfs.pod:1138
2548 msgid ""
2549 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2550 "filesystem labels."
2551 msgstr ""
2552
2553 # type: =head1
2554 #. type: =head1
2555 #: ../src/guestfs.pod:1143
2556 msgid "SECURITY"
2557 msgstr ""
2558
2559 # type: textblock
2560 #. type: textblock
2561 #: ../src/guestfs.pod:1145
2562 msgid ""
2563 "This section discusses security implications of using libguestfs, "
2564 "particularly with untrusted or malicious guests or disk images."
2565 msgstr ""
2566
2567 # type: =head2
2568 #. type: =head2
2569 #: ../src/guestfs.pod:1148
2570 msgid "GENERAL SECURITY CONSIDERATIONS"
2571 msgstr ""
2572
2573 # type: textblock
2574 #. type: textblock
2575 #: ../src/guestfs.pod:1150
2576 msgid ""
2577 "Be careful with any files or data that you download from a guest (by "
2578 "\"download\" we mean not just the L</guestfs_download> command but any "
2579 "command that reads files, filenames, directories or anything else from a "
2580 "disk image).  An attacker could manipulate the data to fool your program "
2581 "into doing the wrong thing.  Consider cases such as:"
2582 msgstr ""
2583
2584 # type: textblock
2585 #. type: textblock
2586 #: ../src/guestfs.pod:1160
2587 msgid "the data (file etc) not being present"
2588 msgstr ""
2589
2590 # type: textblock
2591 #. type: textblock
2592 #: ../src/guestfs.pod:1164
2593 msgid "being present but empty"
2594 msgstr ""
2595
2596 # type: textblock
2597 #. type: textblock
2598 #: ../src/guestfs.pod:1168
2599 msgid "being much larger than normal"
2600 msgstr ""
2601
2602 # type: textblock
2603 #. type: textblock
2604 #: ../src/guestfs.pod:1172
2605 msgid "containing arbitrary 8 bit data"
2606 msgstr ""
2607
2608 # type: textblock
2609 #. type: textblock
2610 #: ../src/guestfs.pod:1176
2611 msgid "being in an unexpected character encoding"
2612 msgstr ""
2613
2614 # type: textblock
2615 #. type: textblock
2616 #: ../src/guestfs.pod:1180
2617 msgid "containing homoglyphs."
2618 msgstr ""
2619
2620 # type: =head2
2621 #. type: =head2
2622 #: ../src/guestfs.pod:1184
2623 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2624 msgstr ""
2625
2626 # type: textblock
2627 #. type: textblock
2628 #: ../src/guestfs.pod:1186
2629 msgid ""
2630 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2631 "(VFS) module can sometimes be escalated into exploits by deliberately "
2632 "creating a malicious, malformed filesystem.  These exploits are very severe "
2633 "for two reasons.  Firstly there are very many filesystem drivers in the "
2634 "kernel, and many of them are infrequently used and not much developer "
2635 "attention has been paid to the code.  Linux userspace helps potential "
2636 "crackers by detecting the filesystem type and automatically choosing the "
2637 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2638 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2639 "exploit (worse in some ways), giving immediate and total access to the "
2640 "system right down to the hardware level."
2641 msgstr ""
2642
2643 # type: textblock
2644 #. type: textblock
2645 #: ../src/guestfs.pod:1199
2646 msgid ""
2647 "That explains why you should never mount a filesystem from an untrusted "
2648 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2649 "inside a qemu virtual machine, usually running as a non-root user.  The "
2650 "attacker would need to write a filesystem which first exploited the kernel, "
2651 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2652 "the libguestfs protocol, and finally to be as serious as the host kernel "
2653 "exploit it would need to escalate its privileges to root.  This multi-step "
2654 "escalation, performed by a static piece of data, is thought to be extremely "
2655 "hard to do, although we never say 'never' about security issues."
2656 msgstr ""
2657
2658 # type: textblock
2659 #. type: textblock
2660 #: ../src/guestfs.pod:1210
2661 msgid ""
2662 "In any case callers can reduce the attack surface by forcing the filesystem "
2663 "type when mounting (use L</guestfs_mount_vfs>)."
2664 msgstr ""
2665
2666 # type: =head2
2667 #. type: =head2
2668 #: ../src/guestfs.pod:1213
2669 msgid "PROTOCOL SECURITY"
2670 msgstr ""
2671
2672 # type: textblock
2673 #. type: textblock
2674 #: ../src/guestfs.pod:1215
2675 msgid ""
2676 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2677 "defined upper message size.  However a program that uses libguestfs must "
2678 "also take care - for example you can write a program that downloads a binary "
2679 "from a disk image and executes it locally, and no amount of protocol "
2680 "security will save you from the consequences."
2681 msgstr ""
2682
2683 # type: =head2
2684 #. type: =head2
2685 #: ../src/guestfs.pod:1221
2686 msgid "INSPECTION SECURITY"
2687 msgstr ""
2688
2689 # type: textblock
2690 #. type: textblock
2691 #: ../src/guestfs.pod:1223
2692 msgid ""
2693 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2694 "directly from the guest, and these could contain any 8 bit data.  Callers "
2695 "should be careful to escape these before printing them to a structured file "
2696 "(for example, use HTML escaping if creating a web page)."
2697 msgstr ""
2698
2699 # type: textblock
2700 #. type: textblock
2701 #: ../src/guestfs.pod:1229
2702 msgid ""
2703 "Guest configuration may be altered in unusual ways by the administrator of "
2704 "the virtual machine, and may not reflect reality (particularly for untrusted "
2705 "or actively malicious guests).  For example we parse the hostname from "
2706 "configuration files like C</etc/sysconfig/network> that we find in the "
2707 "guest, but the guest administrator can easily manipulate these files to "
2708 "provide the wrong hostname."
2709 msgstr ""
2710
2711 # type: textblock
2712 #. type: textblock
2713 #: ../src/guestfs.pod:1237
2714 msgid ""
2715 "The inspection API parses guest configuration using two external libraries: "
2716 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2717 "designed to be robust in the face of malicious data, although denial of "
2718 "service attacks are still possible, for example with oversized configuration "
2719 "files."
2720 msgstr ""
2721
2722 # type: =head2
2723 #. type: =head2
2724 #: ../src/guestfs.pod:1243
2725 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2726 msgstr ""
2727
2728 # type: textblock
2729 #. type: textblock
2730 #: ../src/guestfs.pod:1245
2731 msgid ""
2732 "Be very cautious about running commands from the guest.  By running a "
2733 "command in the guest, you are giving CPU time to a binary that you do not "
2734 "control, under the same user account as the library, albeit wrapped in qemu "
2735 "virtualization.  More information and alternatives can be found in the "
2736 "section L</RUNNING COMMANDS>."
2737 msgstr ""
2738
2739 # type: =head2
2740 #. type: =head2
2741 #: ../src/guestfs.pod:1251
2742 msgid "CVE-2010-3851"
2743 msgstr ""
2744
2745 # type: textblock
2746 #. type: textblock
2747 #: ../src/guestfs.pod:1253
2748 msgid "https://bugzilla.redhat.com/642934"
2749 msgstr ""
2750
2751 # type: textblock
2752 #. type: textblock
2753 #: ../src/guestfs.pod:1255
2754 msgid ""
2755 "This security bug concerns the automatic disk format detection that qemu "
2756 "does on disk images."
2757 msgstr ""
2758
2759 # type: textblock
2760 #. type: textblock
2761 #: ../src/guestfs.pod:1258
2762 msgid ""
2763 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2764 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2765 "for one of the known headers, and if none is found then assuming the disk "
2766 "image must be raw."
2767 msgstr ""
2768
2769 # type: textblock
2770 #. type: textblock
2771 #: ../src/guestfs.pod:1263
2772 msgid ""
2773 "This allows a guest which has been given a raw disk image to write some "
2774 "other header.  At next boot (or when the disk image is accessed by "
2775 "libguestfs) qemu would do autodetection and think the disk image format was, "
2776 "say, qcow2 based on the header written by the guest."
2777 msgstr ""
2778
2779 # type: textblock
2780 #. type: textblock
2781 #: ../src/guestfs.pod:1268
2782 msgid ""
2783 "This in itself would not be a problem, but qcow2 offers many features, one "
2784 "of which is to allow a disk image to refer to another image (called the "
2785 "\"backing disk\").  It does this by placing the path to the backing disk "
2786 "into the qcow2 header.  This path is not validated and could point to any "
2787 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2788 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2789 "control of the attacker."
2790 msgstr ""
2791
2792 # type: textblock
2793 #. type: textblock
2794 #: ../src/guestfs.pod:1276
2795 msgid ""
2796 "In libguestfs this is rather hard to exploit except under two circumstances:"
2797 msgstr ""
2798
2799 # type: textblock
2800 #. type: textblock
2801 #: ../src/guestfs.pod:1283
2802 msgid "You have enabled the network or have opened the disk in write mode."
2803 msgstr ""
2804
2805 # type: textblock
2806 #. type: textblock
2807 #: ../src/guestfs.pod:1287
2808 msgid ""
2809 "You are also running untrusted code from the guest (see L</RUNNING "
2810 "COMMANDS>)."
2811 msgstr ""
2812
2813 # type: textblock
2814 #. type: textblock
2815 #: ../src/guestfs.pod:1292
2816 msgid ""
2817 "The way to avoid this is to specify the expected disk format when adding "
2818 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2819 "should always do this if the disk is raw format, and it's a good idea for "
2820 "other cases too."
2821 msgstr ""
2822
2823 # type: textblock
2824 #. type: textblock
2825 #: ../src/guestfs.pod:1297
2826 msgid ""
2827 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2828 "format is fetched from libvirt and passed through."
2829 msgstr ""
2830
2831 # type: textblock
2832 #. type: textblock
2833 #: ../src/guestfs.pod:1300
2834 msgid ""
2835 "For libguestfs tools, use the I<--format> command line parameter as "
2836 "appropriate."
2837 msgstr ""
2838
2839 # type: =head1
2840 #. type: =head1
2841 #: ../src/guestfs.pod:1303
2842 msgid "CONNECTION MANAGEMENT"
2843 msgstr ""
2844
2845 # type: =head2
2846 #. type: =head2
2847 #: ../src/guestfs.pod:1305
2848 msgid "guestfs_h *"
2849 msgstr ""
2850
2851 # type: textblock
2852 #. type: textblock
2853 #: ../src/guestfs.pod:1307
2854 msgid ""
2855 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2856 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2857 "handle and release all resources used."
2858 msgstr ""
2859
2860 # type: textblock
2861 #. type: textblock
2862 #: ../src/guestfs.pod:1311
2863 msgid ""
2864 "For information on using multiple handles and threads, see the section L</"
2865 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2866 msgstr ""
2867
2868 # type: =head2
2869 #. type: =head2
2870 #: ../src/guestfs.pod:1314
2871 msgid "guestfs_create"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #. type: verbatim
2876 #: ../src/guestfs.pod:1316
2877 #, no-wrap
2878 msgid ""
2879 " guestfs_h *guestfs_create (void);\n"
2880 "\n"
2881 msgstr ""
2882
2883 # type: textblock
2884 #. type: textblock
2885 #: ../src/guestfs.pod:1318
2886 msgid "Create a connection handle."
2887 msgstr ""
2888
2889 # type: textblock
2890 #. type: textblock
2891 #: ../src/guestfs.pod:1320
2892 msgid ""
2893 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2894 "on the handle at least once."
2895 msgstr ""
2896
2897 # type: textblock
2898 #. type: textblock
2899 #: ../src/guestfs.pod:1323
2900 msgid ""
2901 "This function returns a non-NULL pointer to a handle on success or NULL on "
2902 "error."
2903 msgstr ""
2904
2905 # type: textblock
2906 #. type: textblock
2907 #: ../src/guestfs.pod:1326
2908 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2909 msgstr ""
2910
2911 # type: textblock
2912 #. type: textblock
2913 #: ../src/guestfs.pod:1328
2914 msgid ""
2915 "You may also want to configure error handling for the handle.  See L</ERROR "
2916 "HANDLING> section below."
2917 msgstr ""
2918
2919 # type: =head2
2920 #. type: =head2
2921 #: ../src/guestfs.pod:1331
2922 msgid "guestfs_close"
2923 msgstr ""
2924
2925 # type: verbatim
2926 #. type: verbatim
2927 #: ../src/guestfs.pod:1333
2928 #, no-wrap
2929 msgid ""
2930 " void guestfs_close (guestfs_h *g);\n"
2931 "\n"
2932 msgstr ""
2933
2934 # type: textblock
2935 #. type: textblock
2936 #: ../src/guestfs.pod:1335
2937 msgid "This closes the connection handle and frees up all resources used."
2938 msgstr ""
2939
2940 # type: =head1
2941 #. type: =head1
2942 #: ../src/guestfs.pod:1337
2943 msgid "ERROR HANDLING"
2944 msgstr ""
2945
2946 # type: textblock
2947 #. type: textblock
2948 #: ../src/guestfs.pod:1339
2949 msgid ""
2950 "API functions can return errors.  For example, almost all functions that "
2951 "return C<int> will return C<-1> to indicate an error."
2952 msgstr ""
2953
2954 # type: textblock
2955 #. type: textblock
2956 #: ../src/guestfs.pod:1342
2957 msgid ""
2958 "Additional information is available for errors: an error message string and "
2959 "optionally an error number (errno) if the thing that failed was a system "
2960 "call."
2961 msgstr ""
2962
2963 # type: textblock
2964 #. type: textblock
2965 #: ../src/guestfs.pod:1346
2966 msgid ""
2967 "You can get at the additional information about the last error on the handle "
2968 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2969 "up an error handler with L</guestfs_set_error_handler>."
2970 msgstr ""
2971
2972 # type: textblock
2973 #. type: textblock
2974 #: ../src/guestfs.pod:1351
2975 msgid ""
2976 "When the handle is created, a default error handler is installed which "
2977 "prints the error message string to C<stderr>.  For small short-running "
2978 "command line programs it is sufficient to do:"
2979 msgstr ""
2980
2981 # type: verbatim
2982 #. type: verbatim
2983 #: ../src/guestfs.pod:1355
2984 #, no-wrap
2985 msgid ""
2986 " if (guestfs_launch (g) == -1)\n"
2987 "   exit (EXIT_FAILURE);\n"
2988 "\n"
2989 msgstr ""
2990
2991 # type: textblock
2992 #. type: textblock
2993 #: ../src/guestfs.pod:1358
2994 msgid ""
2995 "since the default error handler will ensure that an error message has been "
2996 "printed to C<stderr> before the program exits."
2997 msgstr ""
2998
2999 # type: textblock
3000 #. type: textblock
3001 #: ../src/guestfs.pod:1361
3002 msgid ""
3003 "For other programs the caller will almost certainly want to install an "
3004 "alternate error handler or do error handling in-line like this:"
3005 msgstr ""
3006
3007 # type: verbatim
3008 #. type: verbatim
3009 #: ../src/guestfs.pod:1364
3010 #, no-wrap
3011 msgid ""
3012 " g = guestfs_create ();\n"
3013 " \n"
3014 msgstr ""
3015
3016 # type: verbatim
3017 #. type: verbatim
3018 #: ../src/guestfs.pod:1366
3019 #, no-wrap
3020 msgid ""
3021 " /* This disables the default behaviour of printing errors\n"
3022 "    on stderr. */\n"
3023 " guestfs_set_error_handler (g, NULL, NULL);\n"
3024 " \n"
3025 msgstr ""
3026
3027 # type: verbatim
3028 #. type: verbatim
3029 #: ../src/guestfs.pod:1370
3030 #, no-wrap
3031 msgid ""
3032 " if (guestfs_launch (g) == -1) {\n"
3033 "   /* Examine the error message and print it etc. */\n"
3034 "   char *msg = guestfs_last_error (g);\n"
3035 "   int errnum = guestfs_last_errno (g);\n"
3036 "   fprintf (stderr, \"%s\\n\", msg);\n"
3037 "   /* ... */\n"
3038 "  }\n"
3039 "\n"
3040 msgstr ""
3041
3042 # type: textblock
3043 #. type: textblock
3044 #: ../src/guestfs.pod:1378
3045 msgid ""
3046 "Out of memory errors are handled differently.  The default action is to call "
3047 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3048 "guestfs_set_out_of_memory_handler>."
3049 msgstr ""
3050
3051 # type: textblock
3052 #. type: textblock
3053 #: ../src/guestfs.pod:1382
3054 msgid ""
3055 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3056 "because there is no handle if this happens there is no way to get additional "
3057 "error information.  However L</guestfs_create> is supposed to be a "
3058 "lightweight operation which can only fail because of insufficient memory (it "
3059 "returns NULL in this case)."
3060 msgstr ""
3061
3062 # type: =head2
3063 #. type: =head2
3064 #: ../src/guestfs.pod:1388
3065 msgid "guestfs_last_error"
3066 msgstr ""
3067
3068 # type: verbatim
3069 #. type: verbatim
3070 #: ../src/guestfs.pod:1390
3071 #, no-wrap
3072 msgid ""
3073 " const char *guestfs_last_error (guestfs_h *g);\n"
3074 "\n"
3075 msgstr ""
3076
3077 # type: textblock
3078 #. type: textblock
3079 #: ../src/guestfs.pod:1392
3080 msgid ""
3081 "This returns the last error message that happened on C<g>.  If there has not "
3082 "been an error since the handle was created, then this returns C<NULL>."
3083 msgstr ""
3084
3085 # type: textblock
3086 #. type: textblock
3087 #: ../src/guestfs.pod:1396
3088 msgid ""
3089 "The lifetime of the returned string is until the next error occurs, or L</"
3090 "guestfs_close> is called."
3091 msgstr ""
3092
3093 # type: =head2
3094 #. type: =head2
3095 #: ../src/guestfs.pod:1399
3096 msgid "guestfs_last_errno"
3097 msgstr ""
3098
3099 # type: verbatim
3100 #. type: verbatim
3101 #: ../src/guestfs.pod:1401
3102 #, no-wrap
3103 msgid ""
3104 " int guestfs_last_errno (guestfs_h *g);\n"
3105 "\n"
3106 msgstr ""
3107
3108 # type: textblock
3109 #. type: textblock
3110 #: ../src/guestfs.pod:1403
3111 msgid "This returns the last error number (errno) that happened on C<g>."
3112 msgstr ""
3113
3114 # type: textblock
3115 #. type: textblock
3116 #: ../src/guestfs.pod:1405
3117 msgid "If successful, an errno integer not equal to zero is returned."
3118 msgstr ""
3119
3120 # type: textblock
3121 #. type: textblock
3122 #: ../src/guestfs.pod:1407
3123 msgid ""
3124 "If no error, this returns 0.  This call can return 0 in three situations:"
3125 msgstr ""
3126
3127 # type: textblock
3128 #. type: textblock
3129 #: ../src/guestfs.pod:1414
3130 msgid "There has not been any error on the handle."
3131 msgstr ""
3132
3133 # type: textblock
3134 #. type: textblock
3135 #: ../src/guestfs.pod:1418
3136 msgid ""
3137 "There has been an error but the errno was meaningless.  This corresponds to "
3138 "the case where the error did not come from a failed system call, but for "
3139 "some other reason."
3140 msgstr ""
3141
3142 # type: textblock
3143 #. type: textblock
3144 #: ../src/guestfs.pod:1424
3145 msgid ""
3146 "There was an error from a failed system call, but for some reason the errno "
3147 "was not captured and returned.  This usually indicates a bug in libguestfs."
3148 msgstr ""
3149
3150 # type: textblock
3151 #. type: textblock
3152 #: ../src/guestfs.pod:1430
3153 msgid ""
3154 "Libguestfs tries to convert the errno from inside the applicance into a "
3155 "corresponding errno for the caller (not entirely trivial: the appliance "
3156 "might be running a completely different operating system from the library "
3157 "and error numbers are not standardized across Un*xen).  If this could not be "
3158 "done, then the error is translated to C<EINVAL>.  In practice this should "
3159 "only happen in very rare circumstances."
3160 msgstr ""
3161
3162 # type: =head2
3163 #. type: =head2
3164 #: ../src/guestfs.pod:1438
3165 msgid "guestfs_set_error_handler"
3166 msgstr ""
3167
3168 # type: verbatim
3169 #. type: verbatim
3170 #: ../src/guestfs.pod:1440
3171 #, no-wrap
3172 msgid ""
3173 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3174 "                                           void *opaque,\n"
3175 "                                           const char *msg);\n"
3176 " void guestfs_set_error_handler (guestfs_h *g,\n"
3177 "                                 guestfs_error_handler_cb cb,\n"
3178 "                                 void *opaque);\n"
3179 "\n"
3180 msgstr ""
3181
3182 # type: textblock
3183 #. type: textblock
3184 #: ../src/guestfs.pod:1447
3185 msgid ""
3186 "The callback C<cb> will be called if there is an error.  The parameters "
3187 "passed to the callback are an opaque data pointer and the error message "
3188 "string."
3189 msgstr ""
3190
3191 # type: textblock
3192 #. type: textblock
3193 #: ../src/guestfs.pod:1451
3194 msgid ""
3195 "C<errno> is not passed to the callback.  To get that the callback must call "
3196 "L</guestfs_last_errno>."
3197 msgstr ""
3198
3199 # type: textblock
3200 #. type: textblock
3201 #: ../src/guestfs.pod:1454
3202 msgid ""
3203 "Note that the message string C<msg> is freed as soon as the callback "
3204 "function returns, so if you want to stash it somewhere you must make your "
3205 "own copy."
3206 msgstr ""
3207
3208 # type: textblock
3209 #. type: textblock
3210 #: ../src/guestfs.pod:1458
3211 msgid "The default handler prints messages on C<stderr>."
3212 msgstr ""
3213
3214 # type: textblock
3215 #. type: textblock
3216 #: ../src/guestfs.pod:1460
3217 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3218 msgstr ""
3219
3220 # type: =head2
3221 #. type: =head2
3222 #: ../src/guestfs.pod:1462
3223 msgid "guestfs_get_error_handler"
3224 msgstr ""
3225
3226 # type: verbatim
3227 #. type: verbatim
3228 #: ../src/guestfs.pod:1464
3229 #, no-wrap
3230 msgid ""
3231 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3232 "                                                     void **opaque_rtn);\n"
3233 "\n"
3234 msgstr ""
3235
3236 # type: textblock
3237 #. type: textblock
3238 #: ../src/guestfs.pod:1467
3239 msgid "Returns the current error handler callback."
3240 msgstr ""
3241
3242 # type: =head2
3243 #. type: =head2
3244 #: ../src/guestfs.pod:1469
3245 msgid "guestfs_set_out_of_memory_handler"
3246 msgstr ""
3247
3248 # type: verbatim
3249 #. type: verbatim
3250 #: ../src/guestfs.pod:1471
3251 #, no-wrap
3252 msgid ""
3253 " typedef void (*guestfs_abort_cb) (void);\n"
3254 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3255 "                                        guestfs_abort_cb);\n"
3256 "\n"
3257 msgstr ""
3258
3259 # type: textblock
3260 #. type: textblock
3261 #: ../src/guestfs.pod:1475
3262 msgid ""
3263 "The callback C<cb> will be called if there is an out of memory situation.  "
3264 "I<Note this callback must not return>."
3265 msgstr ""
3266
3267 # type: textblock
3268 #. type: textblock
3269 #: ../src/guestfs.pod:1478
3270 msgid "The default is to call L<abort(3)>."
3271 msgstr ""
3272
3273 # type: textblock
3274 #. type: textblock
3275 #: ../src/guestfs.pod:1480
3276 msgid ""
3277 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3278 msgstr ""
3279
3280 # type: =head2
3281 #. type: =head2
3282 #: ../src/guestfs.pod:1483
3283 msgid "guestfs_get_out_of_memory_handler"
3284 msgstr ""
3285
3286 # type: verbatim
3287 #. type: verbatim
3288 #: ../src/guestfs.pod:1485
3289 #, no-wrap
3290 msgid ""
3291 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3292 "\n"
3293 msgstr ""
3294
3295 # type: textblock
3296 #. type: textblock
3297 #: ../src/guestfs.pod:1487
3298 msgid "This returns the current out of memory handler."
3299 msgstr ""
3300
3301 # type: =head1
3302 #. type: =head1
3303 #: ../src/guestfs.pod:1489
3304 msgid "API CALLS"
3305 msgstr ""
3306
3307 # type: textblock
3308 #. type: textblock
3309 #: ../src/guestfs.pod:1491 ../fish/guestfish.pod:1003
3310 msgid "@ACTIONS@"
3311 msgstr ""
3312
3313 # type: =head1
3314 #. type: =head1
3315 #: ../src/guestfs.pod:1493
3316 msgid "STRUCTURES"
3317 msgstr ""
3318
3319 # type: textblock
3320 #. type: textblock
3321 #: ../src/guestfs.pod:1495
3322 msgid "@STRUCTS@"
3323 msgstr ""
3324
3325 # type: =head1
3326 #. type: =head1
3327 #: ../src/guestfs.pod:1497
3328 msgid "AVAILABILITY"
3329 msgstr ""
3330
3331 # type: =head2
3332 #. type: =head2
3333 #: ../src/guestfs.pod:1499
3334 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3335 msgstr ""
3336
3337 # type: textblock
3338 #. type: textblock
3339 #: ../src/guestfs.pod:1501
3340 msgid ""
3341 "Using L</guestfs_available> you can test availability of the following "
3342 "groups of functions.  This test queries the appliance to see if the "
3343 "appliance you are currently using supports the functionality."
3344 msgstr ""
3345
3346 # type: textblock
3347 #. type: textblock
3348 #: ../src/guestfs.pod:1506
3349 msgid "@AVAILABILITY@"
3350 msgstr ""
3351
3352 # type: =head2
3353 #. type: =head2
3354 #: ../src/guestfs.pod:1508
3355 msgid "GUESTFISH supported COMMAND"
3356 msgstr ""
3357
3358 # type: textblock
3359 #. type: textblock
3360 #: ../src/guestfs.pod:1510
3361 msgid ""
3362 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3363 "prints out the available groups and whether they are supported by this build "
3364 "of libguestfs.  Note however that you have to do C<run> first."
3365 msgstr ""
3366
3367 # type: =head2
3368 #. type: =head2
3369 #: ../src/guestfs.pod:1515
3370 msgid "SINGLE CALLS AT COMPILE TIME"
3371 msgstr ""
3372
3373 # type: textblock
3374 #. type: textblock
3375 #: ../src/guestfs.pod:1517
3376 msgid ""
3377 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3378 "function, such as:"
3379 msgstr ""
3380
3381 # type: verbatim
3382 #. type: verbatim
3383 #: ../src/guestfs.pod:1520
3384 #, no-wrap
3385 msgid ""
3386 " #define LIBGUESTFS_HAVE_DD 1\n"
3387 "\n"
3388 msgstr ""
3389
3390 # type: textblock
3391 #. type: textblock
3392 #: ../src/guestfs.pod:1522
3393 msgid "if L</guestfs_dd> is available."
3394 msgstr ""
3395
3396 # type: textblock
3397 #. type: textblock
3398 #: ../src/guestfs.pod:1524
3399 msgid ""
3400 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3401 "function is available at compile time, we recommended using build tools such "
3402 "as autoconf or cmake.  For example in autotools you could use:"
3403 msgstr ""
3404
3405 # type: verbatim
3406 #. type: verbatim
3407 #: ../src/guestfs.pod:1529
3408 #, no-wrap
3409 msgid ""
3410 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3411 " AC_CHECK_FUNCS([guestfs_dd])\n"
3412 "\n"
3413 msgstr ""
3414
3415 # type: textblock
3416 #. type: textblock
3417 #: ../src/guestfs.pod:1532
3418 msgid ""
3419 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3420 "in your program."
3421 msgstr ""
3422
3423 # type: =head2
3424 #. type: =head2
3425 #: ../src/guestfs.pod:1535
3426 msgid "SINGLE CALLS AT RUN TIME"
3427 msgstr ""
3428
3429 # type: textblock
3430 #. type: textblock
3431 #: ../src/guestfs.pod:1537
3432 msgid ""
3433 "Testing at compile time doesn't guarantee that a function really exists in "
3434 "the library.  The reason is that you might be dynamically linked against a "
3435 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3436 "This situation unfortunately results in a segmentation fault, which is a "
3437 "shortcoming of the C dynamic linking system itself."
3438 msgstr ""
3439
3440 # type: textblock
3441 #. type: textblock
3442 #: ../src/guestfs.pod:1544
3443 msgid ""
3444 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3445 "in this example program (note that you still need the compile time check as "
3446 "well):"
3447 msgstr ""
3448
3449 # type: verbatim
3450 #. type: verbatim
3451 #: ../src/guestfs.pod:1548
3452 #, no-wrap
3453 msgid ""
3454 " #include <stdio.h>\n"
3455 " #include <stdlib.h>\n"
3456 " #include <unistd.h>\n"
3457 " #include <dlfcn.h>\n"
3458 " #include <guestfs.h>\n"
3459 " \n"
3460 msgstr ""
3461
3462 # type: verbatim
3463 #. type: verbatim
3464 #: ../src/guestfs.pod:1554
3465 #, no-wrap
3466 msgid ""
3467 " main ()\n"
3468 " {\n"
3469 " #ifdef LIBGUESTFS_HAVE_DD\n"
3470 "   void *dl;\n"
3471 "   int has_function;\n"
3472 " \n"
3473 msgstr ""
3474
3475 # type: verbatim
3476 #. type: verbatim
3477 #: ../src/guestfs.pod:1560
3478 #, no-wrap
3479 msgid ""
3480 "   /* Test if the function guestfs_dd is really available. */\n"
3481 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3482 "   if (!dl) {\n"
3483 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3484 "     exit (EXIT_FAILURE);\n"
3485 "   }\n"
3486 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3487 "   dlclose (dl);\n"
3488 " \n"
3489 msgstr ""
3490
3491 # type: verbatim
3492 #. type: verbatim
3493 #: ../src/guestfs.pod:1569
3494 #, no-wrap
3495 msgid ""
3496 "   if (!has_function)\n"
3497 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3498 "   else {\n"
3499 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3500 "     /* Now it's safe to call\n"
3501 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3502 "     */\n"
3503 "   }\n"
3504 " #else\n"
3505 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3506 " #endif\n"
3507 "  }\n"
3508 "\n"
3509 msgstr ""
3510
3511 # type: textblock
3512 #. type: textblock
3513 #: ../src/guestfs.pod:1582
3514 msgid ""
3515 "You may think the above is an awful lot of hassle, and it is.  There are "
3516 "other ways outside of the C linking system to ensure that this kind of "
3517 "incompatibility never arises, such as using package versioning:"
3518 msgstr ""
3519
3520 # type: verbatim
3521 #. type: verbatim
3522 #: ../src/guestfs.pod:1587
3523 #, no-wrap
3524 msgid ""
3525 " Requires: libguestfs >= 1.0.80\n"
3526 "\n"
3527 msgstr ""
3528
3529 # type: =head1
3530 #. type: =head1
3531 #: ../src/guestfs.pod:1589
3532 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3533 msgstr ""
3534
3535 # type: textblock
3536 #. type: textblock
3537 #: ../src/guestfs.pod:1591
3538 msgid ""
3539 "A recent feature of the API is the introduction of calls which take optional "
3540 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3541 "takes variable arguments (ie. C<...>), as in this example:"
3542 msgstr ""
3543
3544 # type: verbatim
3545 #. type: verbatim
3546 #: ../src/guestfs.pod:1596
3547 #, no-wrap
3548 msgid ""
3549 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3550 "\n"
3551 msgstr ""
3552
3553 # type: textblock
3554 #. type: textblock
3555 #: ../src/guestfs.pod:1598
3556 msgid ""
3557 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3558 "call with no optional arguments specified:"
3559 msgstr ""
3560
3561 # type: verbatim
3562 #. type: verbatim
3563 #: ../src/guestfs.pod:1601
3564 #, no-wrap
3565 msgid ""
3566 " guestfs_add_drive_opts (g, filename, -1);\n"
3567 "\n"
3568 msgstr ""
3569
3570 # type: textblock
3571 #. type: textblock
3572 #: ../src/guestfs.pod:1603
3573 msgid "With a single optional argument:"
3574 msgstr ""
3575
3576 # type: verbatim
3577 #. type: verbatim
3578 #: ../src/guestfs.pod:1605
3579 #, no-wrap
3580 msgid ""
3581 " guestfs_add_drive_opts (g, filename,\n"
3582 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3583 "                         -1);\n"
3584 "\n"
3585 msgstr ""
3586
3587 # type: textblock
3588 #. type: textblock
3589 #: ../src/guestfs.pod:1609
3590 msgid "With two:"
3591 msgstr ""
3592
3593 # type: verbatim
3594 #. type: verbatim
3595 #: ../src/guestfs.pod:1611
3596 #, no-wrap
3597 msgid ""
3598 " guestfs_add_drive_opts (g, filename,\n"
3599 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3600 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3601 "                         -1);\n"
3602 "\n"
3603 msgstr ""
3604
3605 # type: textblock
3606 #. type: textblock
3607 #: ../src/guestfs.pod:1616
3608 msgid ""
3609 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3610 "happen!"
3611 msgstr ""
3612
3613 # type: =head2
3614 #. type: =head2
3615 #: ../src/guestfs.pod:1619
3616 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3617 msgstr ""
3618
3619 # type: textblock
3620 #. type: textblock
3621 #: ../src/guestfs.pod:1621
3622 msgid ""
3623 "The second variant has the same name with the suffix C<_va>, which works the "
3624 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3625 "example function, this is declared:"
3626 msgstr ""
3627
3628 # type: verbatim
3629 #. type: verbatim
3630 #: ../src/guestfs.pod:1625
3631 #, no-wrap
3632 msgid ""
3633 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3634 "                                va_list args);\n"
3635 "\n"
3636 msgstr ""
3637
3638 # type: =head2
3639 #. type: =head2
3640 #: ../src/guestfs.pod:1628
3641 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3642 msgstr ""
3643
3644 # type: textblock
3645 #. type: textblock
3646 #: ../src/guestfs.pod:1630
3647 msgid ""
3648 "The third variant is useful where you need to construct these calls.  You "
3649 "pass in a structure where you fill in the optional fields.  The structure "
3650 "has a bitmask as the first element which you must set to indicate which "
3651 "fields you have filled in.  For our example function the structure and call "
3652 "are declared:"
3653 msgstr ""
3654
3655 # type: verbatim
3656 #. type: verbatim
3657 #: ../src/guestfs.pod:1636
3658 #, no-wrap
3659 msgid ""
3660 " struct guestfs_add_drive_opts_argv {\n"
3661 "   uint64_t bitmask;\n"
3662 "   int readonly;\n"
3663 "   const char *format;\n"
3664 "   /* ... */\n"
3665 " };\n"
3666 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3667 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3668 "\n"
3669 msgstr ""
3670
3671 # type: textblock
3672 #. type: textblock
3673 #: ../src/guestfs.pod:1645
3674 msgid "You could call it like this:"
3675 msgstr ""
3676
3677 # type: verbatim
3678 #. type: verbatim
3679 #: ../src/guestfs.pod:1647
3680 #, no-wrap
3681 msgid ""
3682 " struct guestfs_add_drive_opts_argv optargs = {\n"
3683 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3684 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3685 "   .readonly = 1,\n"
3686 "   .format = \"qcow2\"\n"
3687 " };\n"
3688 " \n"
3689 msgstr ""
3690
3691 # type: verbatim
3692 #. type: verbatim
3693 #: ../src/guestfs.pod:1654
3694 #, no-wrap
3695 msgid ""
3696 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3697 "\n"
3698 msgstr ""
3699
3700 # type: textblock
3701 #. type: textblock
3702 #: ../src/guestfs.pod:1656 ../src/guestfs-actions.pod:11
3703 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:9
3704 #: ../fish/guestfish-actions.pod:1260 ../tools/virt-win-reg.pl:532
3705 msgid "Notes:"
3706 msgstr ""
3707
3708 # type: textblock
3709 #. type: textblock
3710 #: ../src/guestfs.pod:1662
3711 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3712 msgstr ""
3713
3714 # type: textblock
3715 #. type: textblock
3716 #: ../src/guestfs.pod:1667
3717 msgid "You do not need to fill in all fields of the structure."
3718 msgstr ""
3719
3720 # type: textblock
3721 #. type: textblock
3722 #: ../src/guestfs.pod:1671
3723 msgid ""
3724 "There must be a one-to-one correspondence between fields of the structure "
3725 "that are filled in, and bits set in the bitmask."
3726 msgstr ""
3727
3728 # type: =head2
3729 #. type: =head2
3730 #: ../src/guestfs.pod:1676
3731 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3732 msgstr ""
3733
3734 # type: textblock
3735 #. type: textblock
3736 #: ../src/guestfs.pod:1678
3737 msgid ""
3738 "In other languages, optional arguments are expressed in the way that is "
3739 "natural for that language.  We refer you to the language-specific "
3740 "documentation for more details on that."
3741 msgstr ""
3742
3743 # type: textblock
3744 #. type: textblock
3745 #: ../src/guestfs.pod:1682
3746 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3747 msgstr ""
3748
3749 # type: =head2
3750 #. type: =head2
3751 #: ../src/guestfs.pod:1684
3752 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3753 msgstr ""
3754
3755 #. type: textblock
3756 #: ../src/guestfs.pod:1686
3757 msgid ""
3758 "B<Note:> This section documents the generic event mechanism introduced in "
3759 "libguestfs 1.10, which you should use in new code if possible.  The old "
3760 "functions C<guestfs_set_log_message_callback>, "
3761 "C<guestfs_set_subprocess_quit_callback>, "
3762 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3763 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3764 "page."
3765 msgstr ""
3766
3767 #. type: textblock
3768 #: ../src/guestfs.pod:1694
3769 msgid ""
3770 "Handles generate events when certain things happen, such as log messages "
3771 "being generated, progress messages during long-running operations, or the "
3772 "handle being closed.  The API calls described below let you register a "
3773 "callback to be called when events happen.  You can register multiple "
3774 "callbacks (for the same, different or overlapping sets of events), and "
3775 "individually remove callbacks.  If callbacks are not removed, then they "
3776 "remain in force until the handle is closed."
3777 msgstr ""
3778
3779 #. type: textblock
3780 #: ../src/guestfs.pod:1702
3781 msgid ""
3782 "In the current implementation, events are only generated synchronously: that "
3783 "means that events (and hence callbacks) can only happen while you are in the "
3784 "middle of making another libguestfs call.  The callback is called in the "
3785 "same thread."
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../src/guestfs.pod:1707
3790 msgid ""
3791 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3792 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3793 msgstr ""
3794
3795 #. type: =head3
3796 #: ../src/guestfs.pod:1711
3797 msgid "CLASSES OF EVENTS"
3798 msgstr ""
3799
3800 #. type: =item
3801 #: ../src/guestfs.pod:1715
3802 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../src/guestfs.pod:1718
3807 msgid ""
3808 "The callback function will be called while the handle is being closed "
3809 "(synchronously from L</guestfs_close>)."
3810 msgstr ""
3811
3812 # type: textblock
3813 #. type: textblock
3814 #: ../src/guestfs.pod:1721
3815 msgid ""
3816 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3817 "handles that are open when the program exits.  This means that this callback "
3818 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3819 "problems in higher-level languages (eg. if your HLL interpreter has already "
3820 "been cleaned up by the time this is called, and if your callback then jumps "
3821 "into some HLL function)."
3822 msgstr ""
3823
3824 #. type: textblock
3825 #: ../src/guestfs.pod:1728
3826 msgid ""
3827 "If no callback is registered: the handle is closed without any callback "
3828 "being invoked."
3829 msgstr ""
3830
3831 #. type: =item
3832 #: ../src/guestfs.pod:1731
3833 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3834 msgstr ""
3835
3836 #. type: textblock
3837 #: ../src/guestfs.pod:1734
3838 msgid ""
3839 "The callback function will be called when the child process quits, either "
3840 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3841 "corresponds to a transition from any state to the CONFIG state)."
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../src/guestfs.pod:1738 ../src/guestfs.pod:1747
3846 msgid "If no callback is registered: the event is ignored."
3847 msgstr ""
3848
3849 #. type: =item
3850 #: ../src/guestfs.pod:1740
3851 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3852 msgstr ""
3853
3854 #. type: textblock
3855 #: ../src/guestfs.pod:1743
3856 msgid ""
3857 "The callback function will be called when the child process becomes ready "
3858 "first time after it has been launched.  (This corresponds to a transition "
3859 "from LAUNCHING to the READY state)."
3860 msgstr ""
3861
3862 #. type: =item
3863 #: ../src/guestfs.pod:1749
3864 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3865 msgstr ""
3866
3867 # type: textblock
3868 #. type: textblock
3869 #: ../src/guestfs.pod:1752
3870 msgid ""
3871 "Some long-running operations can generate progress messages.  If this "
3872 "callback is registered, then it will be called each time a progress message "
3873 "is generated (usually two seconds after the operation started, and three "
3874 "times per second thereafter until it completes, although the frequency may "
3875 "change in future versions)."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../src/guestfs.pod:1758
3880 msgid ""
3881 "The callback receives in the payload four unsigned 64 bit numbers which are "
3882 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../src/guestfs.pod:1761
3887 msgid ""
3888 "The units of C<total> are not defined, although for some operations C<total> "
3889 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3890 "or megabytes), and C<position> may be the portion which has been transferred."
3891 msgstr ""
3892
3893 # type: textblock
3894 #. type: textblock
3895 #: ../src/guestfs.pod:1766
3896 msgid "The only defined and stable parts of the API are:"
3897 msgstr ""
3898
3899 # type: textblock
3900 #. type: textblock
3901 #: ../src/guestfs.pod:1772
3902 msgid ""
3903 "The callback can display to the user some type of progress bar or indicator "
3904 "which shows the ratio of C<position>:C<total>."
3905 msgstr ""
3906
3907 # type: textblock
3908 #. type: textblock
3909 #: ../src/guestfs.pod:1777
3910 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3911 msgstr ""
3912
3913 # type: textblock
3914 #. type: textblock
3915 #: ../src/guestfs.pod:1781
3916 msgid ""
3917 "If any progress notification is sent during a call, then a final progress "
3918 "notification is always sent when C<position> = C<total>."
3919 msgstr ""
3920
3921 # type: textblock
3922 #. type: textblock
3923 #: ../src/guestfs.pod:1784
3924 msgid ""
3925 "This is to simplify caller code, so callers can easily set the progress "
3926 "indicator to \"100%\" at the end of the operation, without requiring special "
3927 "code to detect this case."
3928 msgstr ""
3929
3930 #. type: textblock
3931 #: ../src/guestfs.pod:1790
3932 msgid ""
3933 "The callback also receives the procedure number (C<proc_nr>) and serial "
3934 "number (C<serial>) of the call.  These are only useful for debugging "
3935 "protocol issues, and the callback can normally ignore them.  The callback "
3936 "may want to print these numbers in error messages or debugging messages."
3937 msgstr ""
3938
3939 #. type: textblock
3940 #: ../src/guestfs.pod:1796
3941 msgid "If no callback is registered: progress messages are discarded."
3942 msgstr ""
3943
3944 #. type: =item
3945 #: ../src/guestfs.pod:1798
3946 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../src/guestfs.pod:1801
3951 msgid ""
3952 "The callback function is called whenever a log message is generated by qemu, "
3953 "the appliance kernel, guestfsd (daemon), or utility programs."
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../src/guestfs.pod:1804
3958 msgid ""
3959 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3960 "guestfs_launch>) then additional debug messages are generated."
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
3965 msgid ""
3966 "If no callback is registered: the messages are discarded unless the verbose "
3967 "flag is set in which case they are sent to stderr.  You can override the "
3968 "printing of verbose messages to stderr by setting up a callback."
3969 msgstr ""
3970
3971 #. type: =item
3972 #: ../src/guestfs.pod:1812
3973 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3974 msgstr ""
3975
3976 #. type: textblock
3977 #: ../src/guestfs.pod:1815
3978 msgid ""
3979 "The callback function is called whenever a log message is generated by the "
3980 "library part of libguestfs."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../src/guestfs.pod:1818
3985 msgid ""
3986 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3987 "messages are generated."
3988 msgstr ""
3989
3990 #. type: =item
3991 #: ../src/guestfs.pod:1826
3992 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../src/guestfs.pod:1829
3997 msgid ""
3998 "The callback function is called whenever a trace message is generated.  This "
3999 "only applies if the trace flag (L</guestfs_set_trace>) is set."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../src/guestfs.pod:1832
4004 msgid ""
4005 "If no callback is registered: the messages are sent to stderr.  You can "
4006 "override the printing of trace messages to stderr by setting up a callback."
4007 msgstr ""
4008
4009 #. type: =head3
4010 #: ../src/guestfs.pod:1838
4011 msgid "guestfs_set_event_callback"
4012 msgstr ""
4013
4014 #. type: verbatim
4015 #: ../src/guestfs.pod:1840
4016 #, no-wrap
4017 msgid ""
4018 " int guestfs_set_event_callback (guestfs_h *g,\n"
4019 "                                 guestfs_event_callback cb,\n"
4020 "                                 uint64_t event_bitmask,\n"
4021 "                                 int flags,\n"
4022 "                                 void *opaque);\n"
4023 "\n"
4024 msgstr ""
4025
4026 #. type: textblock
4027 #: ../src/guestfs.pod:1846
4028 msgid ""
4029 "This function registers a callback (C<cb>) for all event classes in the "
4030 "C<event_bitmask>."
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../src/guestfs.pod:1849
4035 msgid ""
4036 "For example, to register for all log message events, you could call this "
4037 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4038 "To register a single callback for all possible classes of events, use "
4039 "C<GUESTFS_EVENT_ALL>."
4040 msgstr ""
4041
4042 #. type: textblock
4043 #: ../src/guestfs.pod:1855
4044 msgid "C<flags> should always be passed as 0."
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../src/guestfs.pod:1857
4049 msgid ""
4050 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4051 "it for any purpose."
4052 msgstr ""
4053
4054 #. type: textblock
4055 #: ../src/guestfs.pod:1860
4056 msgid ""
4057 "The return value is the event handle (an integer) which you can use to "
4058 "delete the callback (see below)."
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../src/guestfs.pod:1863
4063 msgid ""
4064 "If there is an error, this function returns C<-1>, and sets the error in the "
4065 "handle in the usual way (see L</guestfs_last_error> etc.)"
4066 msgstr ""
4067
4068 #. type: textblock
4069 #: ../src/guestfs.pod:1866
4070 msgid ""
4071 "Callbacks remain in effect until they are deleted, or until the handle is "
4072 "closed."
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../src/guestfs.pod:1869
4077 msgid ""
4078 "In the case where multiple callbacks are registered for a particular event "
4079 "class, all of the callbacks are called.  The order in which multiple "
4080 "callbacks are called is not defined."
4081 msgstr ""
4082
4083 #. type: =head3
4084 #: ../src/guestfs.pod:1873
4085 msgid "guestfs_delete_event_callback"
4086 msgstr ""
4087
4088 #. type: verbatim
4089 #: ../src/guestfs.pod:1875
4090 #, no-wrap
4091 msgid ""
4092 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4093 "\n"
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../src/guestfs.pod:1877
4098 msgid ""
4099 "Delete a callback that was previously registered.  C<event_handle> should be "
4100 "the integer that was returned by a previous call to "
4101 "C<guestfs_set_event_callback> on the same handle."
4102 msgstr ""
4103
4104 #. type: =head3
4105 #: ../src/guestfs.pod:1881
4106 msgid "guestfs_event_callback"
4107 msgstr ""
4108
4109 #. type: verbatim
4110 #: ../src/guestfs.pod:1883
4111 #, no-wrap
4112 msgid ""
4113 " typedef void (*guestfs_event_callback) (\n"
4114 "                  guestfs_h *g,\n"
4115 "                  void *opaque,\n"
4116 "                  uint64_t event,\n"
4117 "                  int event_handle,\n"
4118 "                  int flags,\n"
4119 "                  const char *buf, size_t buf_len,\n"
4120 "                  const uint64_t *array, size_t array_len);\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../src/guestfs.pod:1892
4126 msgid ""
4127 "This is the type of the event callback function that you have to provide."
4128 msgstr ""
4129
4130 #. type: textblock
4131 #: ../src/guestfs.pod:1895
4132 msgid ""
4133 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4134 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4135 "handle, and C<flags> which in the current API you should ignore."
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../src/guestfs.pod:1899
4140 msgid ""
4141 "The remaining parameters contain the event payload (if any).  Each event may "
4142 "contain a payload, which usually relates to the event class, but for future "
4143 "proofing your code should be written to handle any payload for any event "
4144 "class."
4145 msgstr ""
4146
4147 #. type: textblock
4148 #: ../src/guestfs.pod:1904
4149 msgid ""
4150 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4151 "there is no message buffer).  Note that this message buffer can contain "
4152 "arbitrary 8 bit data, including NUL bytes."
4153 msgstr ""
4154
4155 #. type: textblock
4156 #: ../src/guestfs.pod:1908
4157 msgid ""
4158 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4159 "moment this is only used for progress messages."
4160 msgstr ""
4161
4162 #. type: =head3
4163 #: ../src/guestfs.pod:1911
4164 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4165 msgstr ""
4166
4167 #. type: textblock
4168 #: ../src/guestfs.pod:1913
4169 msgid ""
4170 "One motivation for the generic event API was to allow GUI programs to "
4171 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4172 "unconditionally to C<stderr>."
4173 msgstr ""
4174
4175 #. type: textblock
4176 #: ../src/guestfs.pod:1917
4177 msgid ""
4178 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4179 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4180 "messages are not events; you must capture error messages separately)."
4181 msgstr ""
4182
4183 #. type: textblock
4184 #: ../src/guestfs.pod:1922
4185 msgid ""
4186 "Programs have to set up a callback to capture the classes of events of "
4187 "interest:"
4188 msgstr ""
4189
4190 #. type: verbatim
4191 #: ../src/guestfs.pod:1925
4192 #, no-wrap
4193 msgid ""
4194 " int eh =\n"
4195 "   guestfs_set_event_callback\n"
4196 "     (g, message_callback,\n"
4197 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4198 "      GUESTFS_EVENT_TRACE,\n"
4199 "      0, NULL) == -1)\n"
4200 " if (eh == -1) {\n"
4201 "   // handle error in the usual way\n"
4202 " }\n"
4203 "\n"
4204 msgstr ""
4205
4206 #. type: textblock
4207 #: ../src/guestfs.pod:1935
4208 msgid ""
4209 "The callback can then direct messages to the appropriate place.  In this "
4210 "example, messages are directed to syslog:"
4211 msgstr ""
4212
4213 #. type: verbatim
4214 #: ../src/guestfs.pod:1938
4215 #, no-wrap
4216 msgid ""
4217 " static void\n"
4218 " message_callback (\n"
4219 "         guestfs_h *g,\n"
4220 "         void *opaque,\n"
4221 "         uint64_t event,\n"
4222 "         int event_handle,\n"
4223 "         int flags,\n"
4224 "         const char *buf, size_t buf_len,\n"
4225 "         const uint64_t *array, size_t array_len)\n"
4226 " {\n"
4227 "   const int priority = LOG_USER|LOG_INFO;\n"
4228 "   if (buf_len > 0)\n"
4229 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4230 " }\n"
4231 "\n"
4232 msgstr ""
4233
4234 # type: =head1
4235 #. type: =head1
4236 #: ../src/guestfs.pod:1953
4237 msgid "PRIVATE DATA AREA"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../src/guestfs.pod:1955
4242 msgid ""
4243 "You can attach named pieces of private data to the libguestfs handle, fetch "
4244 "them by name, and walk over them, for the lifetime of the handle.  This is "
4245 "called the private data area and is only available from the C API."
4246 msgstr ""
4247
4248 # type: textblock
4249 #. type: textblock
4250 #: ../src/guestfs.pod:1960
4251 msgid "To attach a named piece of data, use the following call:"
4252 msgstr ""
4253
4254 # type: verbatim
4255 #. type: verbatim
4256 #: ../src/guestfs.pod:1962
4257 #, no-wrap
4258 msgid ""
4259 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4260 "\n"
4261 msgstr ""
4262
4263 # type: textblock
4264 #. type: textblock
4265 #: ../src/guestfs.pod:1964
4266 msgid ""
4267 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4268 "pointer (which can be C<NULL>).  Any previous item with the same name is "
4269 "overwritten."
4270 msgstr ""
4271
4272 # type: textblock
4273 #. type: textblock
4274 #: ../src/guestfs.pod:1968
4275 msgid ""
4276 "You can use any C<key> you want, but names beginning with an underscore "
4277 "character are reserved for internal libguestfs purposes (for implementing "
4278 "language bindings).  It is recommended to prefix the name with some unique "
4279 "string to avoid collisions with other users."
4280 msgstr ""
4281
4282 # type: textblock
4283 #. type: textblock
4284 #: ../src/guestfs.pod:1973
4285 msgid "To retrieve the pointer, use:"
4286 msgstr ""
4287
4288 # type: verbatim
4289 #. type: verbatim
4290 #: ../src/guestfs.pod:1975
4291 #, no-wrap
4292 msgid ""
4293 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4294 "\n"
4295 msgstr ""
4296
4297 # type: textblock
4298 #. type: textblock
4299 #: ../src/guestfs.pod:1977
4300 msgid ""
4301 "This function returns C<NULL> if either no data is found associated with "
4302 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4303 "C<NULL>."
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../src/guestfs.pod:1981
4308 msgid ""
4309 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4310 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4311 "all.  In particular, libguestfs does I<not> try to free the data when the "
4312 "handle is closed.  If the data must be freed, then the caller must either "
4313 "free it before calling L</guestfs_close> or must set up a close callback to "
4314 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../src/guestfs.pod:1988
4319 msgid "To walk over all entries, use these two functions:"
4320 msgstr ""
4321
4322 #. type: verbatim
4323 #: ../src/guestfs.pod:1990
4324 #, no-wrap
4325 msgid ""
4326 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4327 "\n"
4328 msgstr ""
4329
4330 #. type: verbatim
4331 #: ../src/guestfs.pod:1992
4332 #, no-wrap
4333 msgid ""
4334 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4335 "\n"
4336 msgstr ""
4337
4338 #. type: textblock
4339 #: ../src/guestfs.pod:1994
4340 msgid ""
4341 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4342 "not have any particular meaning -- keys are not returned in any defined "
4343 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4344 "corresponding data pointer is returned from the function.  C<NULL> is "
4345 "returned if there are no keys stored in the handle."
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../src/guestfs.pod:2000
4350 msgid ""
4351 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4352 "value of this function is also C<NULL> is there are no further entries to "
4353 "return."
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../src/guestfs.pod:2004
4358 msgid "Notes about walking over entries:"
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../src/guestfs.pod:2010
4363 msgid ""
4364 "You must not call C<guestfs_set_private> while walking over the entries."
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../src/guestfs.pod:2015
4369 msgid ""
4370 "The handle maintains an internal iterator which is reset when you call "
4371 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4372 "call C<guestfs_set_private>."
4373 msgstr ""
4374
4375 #. type: textblock
4376 #: ../src/guestfs.pod:2021
4377 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4378 msgstr ""
4379
4380 #. type: verbatim
4381 #: ../src/guestfs.pod:2023
4382 #, no-wrap
4383 msgid ""
4384 " guestfs_set_private (g, key, NULL);\n"
4385 "\n"
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../src/guestfs.pod:2025
4390 msgid "then that C<key> is not returned when walking."
4391 msgstr ""
4392
4393 #. type: textblock
4394 #: ../src/guestfs.pod:2029
4395 msgid ""
4396 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4397 "C<guestfs_next_private> or C<guestfs_set_private>."
4398 msgstr ""
4399
4400 #. type: textblock
4401 #: ../src/guestfs.pod:2035
4402 msgid ""
4403 "The following example code shows how to print all keys and data pointers "
4404 "that are associated with the handle C<g>:"
4405 msgstr ""
4406
4407 #. type: verbatim
4408 #: ../src/guestfs.pod:2038
4409 #, no-wrap
4410 msgid ""
4411 " const char *key;\n"
4412 " void *data = guestfs_first_private (g, &key);\n"
4413 " while (data != NULL)\n"
4414 "   {\n"
4415 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4416 "     data = guestfs_next_private (g, &key);\n"
4417 "   }\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../src/guestfs.pod:2046
4423 msgid ""
4424 "More commonly you are only interested in keys that begin with an application-"
4425 "specific prefix C<foo_>.  Modify the loop like so:"
4426 msgstr ""
4427
4428 #. type: verbatim
4429 #: ../src/guestfs.pod:2049
4430 #, no-wrap
4431 msgid ""
4432 " const char *key;\n"
4433 " void *data = guestfs_first_private (g, &key);\n"
4434 " while (data != NULL)\n"
4435 "   {\n"
4436 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4437 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4438 "     data = guestfs_next_private (g, &key);\n"
4439 "   }\n"
4440 "\n"
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../src/guestfs.pod:2058
4445 msgid ""
4446 "If you need to modify keys while walking, then you have to jump back to the "
4447 "beginning of the loop.  For example, to delete all keys prefixed with "
4448 "C<foo_>:"
4449 msgstr ""
4450
4451 #. type: verbatim
4452 #: ../src/guestfs.pod:2062
4453 #, no-wrap
4454 msgid ""
4455 "  const char *key;\n"
4456 "  void *data;\n"
4457 " again:\n"
4458 "  data = guestfs_first_private (g, &key);\n"
4459 "  while (data != NULL)\n"
4460 "    {\n"
4461 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4462 "        {\n"
4463 "          guestfs_set_private (g, key, NULL);\n"
4464 "          /* note that 'key' pointer is now invalid, and so is\n"
4465 "             the internal iterator */\n"
4466 "          goto again;\n"
4467 "        }\n"
4468 "      data = guestfs_next_private (g, &key);\n"
4469 "    }\n"
4470 "\n"
4471 msgstr ""
4472
4473 #. type: textblock
4474 #: ../src/guestfs.pod:2078
4475 msgid ""
4476 "Note that the above loop is guaranteed to terminate because the keys are "
4477 "being deleted, but other manipulations of keys within the loop might not "
4478 "terminate unless you also maintain an indication of which keys have been "
4479 "visited."
4480 msgstr ""
4481
4482 # type: =end
4483 #. type: =end
4484 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4485 msgid "html"
4486 msgstr ""
4487
4488 # type: textblock
4489 #. type: textblock
4490 #: ../src/guestfs.pod:2085
4491 msgid ""
4492 "<!-- old anchor for the next section --> <a name="
4493 "\"state_machine_and_low_level_event_api\"/>"
4494 msgstr ""
4495
4496 # type: =head1
4497 #. type: =head1
4498 #: ../src/guestfs.pod:2090
4499 msgid "ARCHITECTURE"
4500 msgstr ""
4501
4502 # type: textblock
4503 #. type: textblock
4504 #: ../src/guestfs.pod:2092
4505 msgid ""
4506 "Internally, libguestfs is implemented by running an appliance (a special "
4507 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4508 "process of the main program."
4509 msgstr ""
4510
4511 # type: verbatim
4512 #. type: verbatim
4513 #: ../src/guestfs.pod:2096
4514 #, no-wrap
4515 msgid ""
4516 "  ___________________\n"
4517 " /                   \\\n"
4518 " | main program      |\n"
4519 " |                   |\n"
4520 " |                   |           child process / appliance\n"
4521 " |                   |           __________________________\n"
4522 " |                   |          / qemu                     \\\n"
4523 " +-------------------+   RPC    |      +-----------------+ |\n"
4524 " | libguestfs     <--------------------> guestfsd        | |\n"
4525 " |                   |          |      +-----------------+ |\n"
4526 " \\___________________/          |      | Linux kernel    | |\n"
4527 "                                |      +--^--------------+ |\n"
4528 "                                \\_________|________________/\n"
4529 "                                          |\n"
4530 "                                   _______v______\n"
4531 "                                  /              \\\n"
4532 "                                  | Device or    |\n"
4533 "                                  | disk image   |\n"
4534 "                                  \\______________/\n"
4535 "\n"
4536 msgstr ""
4537
4538 # type: textblock
4539 #. type: textblock
4540 #: ../src/guestfs.pod:2116
4541 msgid ""
4542 "The library, linked to the main program, creates the child process and hence "
4543 "the appliance in the L</guestfs_launch> function."
4544 msgstr ""
4545
4546 # type: textblock
4547 #. type: textblock
4548 #: ../src/guestfs.pod:2119
4549 msgid ""
4550 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4551 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4552 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4553 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4554 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4555 "attached to the qemu process which translates device access by the "
4556 "appliance's Linux kernel into accesses to the image."
4557 msgstr ""
4558
4559 # type: textblock
4560 #. type: textblock
4561 #: ../src/guestfs.pod:2128
4562 msgid ""
4563 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4564 "Although the disk image you are attached to might also be used by some "
4565 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4566 "care if both libguestfs's qemu process and your virtual machine are trying "
4567 "to update the disk image at the same time, since these usually results in "
4568 "massive disk corruption)."
4569 msgstr ""
4570
4571 # type: =head1
4572 #. type: =head1
4573 #: ../src/guestfs.pod:2135
4574 msgid "STATE MACHINE"
4575 msgstr ""
4576
4577 # type: textblock
4578 #. type: textblock
4579 #: ../src/guestfs.pod:2137
4580 msgid "libguestfs uses a state machine to model the child process:"
4581 msgstr ""
4582
4583 # type: verbatim
4584 #. type: verbatim
4585 #: ../src/guestfs.pod:2139
4586 #, no-wrap
4587 msgid ""
4588 "                         |\n"
4589 "                    guestfs_create\n"
4590 "                         |\n"
4591 "                         |\n"
4592 "                     ____V_____\n"
4593 "                    /          \\\n"
4594 "                    |  CONFIG  |\n"
4595 "                    \\__________/\n"
4596 "                     ^ ^   ^  \\\n"
4597 "                    /  |    \\  \\ guestfs_launch\n"
4598 "                   /   |    _\\__V______\n"
4599 "                  /    |   /           \\\n"
4600 "                 /     |   | LAUNCHING |\n"
4601 "                /      |   \\___________/\n"
4602 "               /       |       /\n"
4603 "              /        |  guestfs_launch\n"
4604 "             /         |     /\n"
4605 "    ______  /        __|____V\n"
4606 "   /      \\ ------> /        \\\n"
4607 "   | BUSY |         | READY  |\n"
4608 "   \\______/ <------ \\________/\n"
4609 "\n"
4610 msgstr ""
4611
4612 # type: textblock
4613 #. type: textblock
4614 #: ../src/guestfs.pod:2161
4615 msgid ""
4616 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4617 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4618 "(3) alternating between READY and BUSY as commands are issued to, and "
4619 "carried out by, the child process."
4620 msgstr ""
4621
4622 # type: textblock
4623 #. type: textblock
4624 #: ../src/guestfs.pod:2166
4625 msgid ""
4626 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4627 "asynchronously at any time (eg. due to some internal error), and that causes "
4628 "the state to transition back to CONFIG."
4629 msgstr ""
4630
4631 # type: textblock
4632 #. type: textblock
4633 #: ../src/guestfs.pod:2170
4634 msgid ""
4635 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4636 "issued when in the CONFIG state."
4637 msgstr ""
4638
4639 # type: textblock
4640 #. type: textblock
4641 #: ../src/guestfs.pod:2173
4642 msgid ""
4643 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4644 "L</guestfs_launch> blocks until the child process is READY to accept "
4645 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4646 "moves the state from CONFIG to LAUNCHING while it is running."
4647 msgstr ""
4648
4649 # type: textblock
4650 #. type: textblock
4651 #: ../src/guestfs.pod:2179
4652 msgid ""
4653 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4654 "state.  These API calls block waiting for the command to be carried out (ie. "
4655 "the state to transition to BUSY and then back to READY).  There are no non-"
4656 "blocking versions, and no way to issue more than one command per handle at "
4657 "the same time."
4658 msgstr ""
4659
4660 # type: textblock
4661 #. type: textblock
4662 #: ../src/guestfs.pod:2185
4663 msgid ""
4664 "Finally, the child process sends asynchronous messages back to the main "
4665 "program, such as kernel log messages.  You can register a callback to "
4666 "receive these messages."
4667 msgstr ""
4668
4669 # type: =head1
4670 #. type: =head1
4671 #: ../src/guestfs.pod:2189
4672 msgid "INTERNALS"
4673 msgstr ""
4674
4675 # type: =head2
4676 #. type: =head2
4677 #: ../src/guestfs.pod:2191
4678 msgid "COMMUNICATION PROTOCOL"
4679 msgstr ""
4680
4681 # type: textblock
4682 #. type: textblock
4683 #: ../src/guestfs.pod:2193
4684 msgid ""
4685 "Don't rely on using this protocol directly.  This section documents how it "
4686 "currently works, but it may change at any time."
4687 msgstr ""
4688
4689 # type: textblock
4690 #. type: textblock
4691 #: ../src/guestfs.pod:2196
4692 msgid ""
4693 "The protocol used to talk between the library and the daemon running inside "
4694 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4695 "1014, RFC 1832, RFC 4506)."
4696 msgstr ""
4697
4698 # type: textblock
4699 #. type: textblock
4700 #: ../src/guestfs.pod:2200
4701 msgid ""
4702 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4703 "this file is automatically generated)."
4704 msgstr ""
4705
4706 # type: textblock
4707 #. type: textblock
4708 #: ../src/guestfs.pod:2203
4709 msgid ""
4710 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4711 "and C<FileOut> parameters, which are handled with very simple request/reply "
4712 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4713 "parameters, which use the same request and reply messages, but they may also "
4714 "be followed by files sent using a chunked encoding."
4715 msgstr ""
4716
4717 # type: =head3
4718 #. type: =head3
4719 #: ../src/guestfs.pod:2210
4720 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4721 msgstr ""
4722
4723 # type: textblock
4724 #. type: textblock
4725 #: ../src/guestfs.pod:2212
4726 msgid "For ordinary functions, the request message is:"
4727 msgstr ""
4728
4729 # type: verbatim
4730 #. type: verbatim
4731 #: ../src/guestfs.pod:2214
4732 #, no-wrap
4733 msgid ""
4734 " total length (header + arguments,\n"
4735 "      but not including the length word itself)\n"
4736 " struct guestfs_message_header (encoded as XDR)\n"
4737 " struct guestfs_<foo>_args (encoded as XDR)\n"
4738 "\n"
4739 msgstr ""
4740
4741 # type: textblock
4742 #. type: textblock
4743 #: ../src/guestfs.pod:2219
4744 msgid ""
4745 "The total length field allows the daemon to allocate a fixed size buffer "
4746 "into which it slurps the rest of the message.  As a result, the total length "
4747 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4748 "effective size of any request is limited to somewhere under this size."
4749 msgstr ""
4750
4751 # type: textblock
4752 #. type: textblock
4753 #: ../src/guestfs.pod:2225
4754 msgid ""
4755 "Note also that many functions don't take any arguments, in which case the "
4756 "C<guestfs_I<foo>_args> is completely omitted."
4757 msgstr ""
4758
4759 # type: textblock
4760 #. type: textblock
4761 #: ../src/guestfs.pod:2228
4762 msgid ""
4763 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4764 "receiver knows what type of args structure to expect, or none at all."
4765 msgstr ""
4766
4767 # type: textblock
4768 #. type: textblock
4769 #: ../src/guestfs.pod:2232
4770 msgid ""
4771 "For functions that take optional arguments, the optional arguments are "
4772 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4773 "arguments.  A bitmask in the header indicates which optional arguments are "
4774 "meaningful.  The bitmask is also checked to see if it contains bits set "
4775 "which the daemon does not know about (eg. if more optional arguments were "
4776 "added in a later version of the library), and this causes the call to be "
4777 "rejected."
4778 msgstr ""
4779
4780 # type: textblock
4781 #. type: textblock
4782 #: ../src/guestfs.pod:2240
4783 msgid "The reply message for ordinary functions is:"
4784 msgstr ""
4785
4786 # type: verbatim
4787 #. type: verbatim
4788 #: ../src/guestfs.pod:2242
4789 #, no-wrap
4790 msgid ""
4791 " total length (header + ret,\n"
4792 "      but not including the length word itself)\n"
4793 " struct guestfs_message_header (encoded as XDR)\n"
4794 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4795 "\n"
4796 msgstr ""
4797
4798 # type: textblock
4799 #. type: textblock
4800 #: ../src/guestfs.pod:2247
4801 msgid ""
4802 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4803 "functions that return no formal return values."
4804 msgstr ""
4805
4806 # type: textblock
4807 #. type: textblock
4808 #: ../src/guestfs.pod:2250
4809 msgid ""
4810 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4811 msgstr ""
4812
4813 # type: textblock
4814 #. type: textblock
4815 #: ../src/guestfs.pod:2253
4816 msgid ""
4817 "In the case of an error, a flag is set in the header, and the reply message "
4818 "is slightly changed:"
4819 msgstr ""
4820
4821 # type: verbatim
4822 #. type: verbatim
4823 #: ../src/guestfs.pod:2256
4824 #, no-wrap
4825 msgid ""
4826 " total length (header + error,\n"
4827 "      but not including the length word itself)\n"
4828 " struct guestfs_message_header (encoded as XDR)\n"
4829 " struct guestfs_message_error (encoded as XDR)\n"
4830 "\n"
4831 msgstr ""
4832
4833 # type: textblock
4834 #. type: textblock
4835 #: ../src/guestfs.pod:2261
4836 msgid ""
4837 "The C<guestfs_message_error> structure contains the error message as a "
4838 "string."
4839 msgstr ""
4840
4841 # type: =head3
4842 #. type: =head3
4843 #: ../src/guestfs.pod:2264
4844 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4845 msgstr ""
4846
4847 # type: textblock
4848 #. type: textblock
4849 #: ../src/guestfs.pod:2266
4850 msgid ""
4851 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4852 "The normal request message is sent (see above).  However this is followed by "
4853 "a sequence of file chunks."
4854 msgstr ""
4855
4856 # type: verbatim
4857 #. type: verbatim
4858 #: ../src/guestfs.pod:2270
4859 #, no-wrap
4860 msgid ""
4861 " total length (header + arguments,\n"
4862 "      but not including the length word itself,\n"
4863 "      and not including the chunks)\n"
4864 " struct guestfs_message_header (encoded as XDR)\n"
4865 " struct guestfs_<foo>_args (encoded as XDR)\n"
4866 " sequence of chunks for FileIn param #0\n"
4867 " sequence of chunks for FileIn param #1 etc.\n"
4868 "\n"
4869 msgstr ""
4870
4871 # type: textblock
4872 #. type: textblock
4873 #: ../src/guestfs.pod:2278
4874 msgid "The \"sequence of chunks\" is:"
4875 msgstr ""
4876
4877 # type: verbatim
4878 #. type: verbatim
4879 #: ../src/guestfs.pod:2280
4880 #, no-wrap
4881 msgid ""
4882 " length of chunk (not including length word itself)\n"
4883 " struct guestfs_chunk (encoded as XDR)\n"
4884 " length of chunk\n"
4885 " struct guestfs_chunk (encoded as XDR)\n"
4886 "   ...\n"
4887 " length of chunk\n"
4888 " struct guestfs_chunk (with data.data_len == 0)\n"
4889 "\n"
4890 msgstr ""
4891
4892 # type: textblock
4893 #. type: textblock
4894 #: ../src/guestfs.pod:2288
4895 msgid ""
4896 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4897 "is set in the final chunk to indicate either successful completion or early "
4898 "cancellation."
4899 msgstr ""
4900
4901 # type: textblock
4902 #. type: textblock
4903 #: ../src/guestfs.pod:2292
4904 msgid ""
4905 "At time of writing there are no functions that have more than one FileIn "
4906 "parameter.  However this is (theoretically) supported, by sending the "
4907 "sequence of chunks for each FileIn parameter one after another (from left to "
4908 "right)."
4909 msgstr ""
4910
4911 # type: textblock
4912 #. type: textblock
4913 #: ../src/guestfs.pod:2297
4914 msgid ""
4915 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4916 "transfer.  The library does this by sending a chunk with a special flag set "
4917 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4918 "RPC, does I<not> send any reply, and goes back to reading the next request."
4919 msgstr ""
4920
4921 # type: textblock
4922 #. type: textblock
4923 #: ../src/guestfs.pod:2303
4924 msgid ""
4925 "The daemon may also cancel.  It does this by writing a special word "
4926 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4927 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4928 "cancel chunk).  The special word is chosen so that even if cancellation "
4929 "happens right at the end of the transfer (after the library has finished "
4930 "writing and has started listening for the reply), the \"spurious\" cancel "
4931 "flag will not be confused with the reply message."
4932 msgstr ""
4933
4934 # type: textblock
4935 #. type: textblock
4936 #: ../src/guestfs.pod:2312
4937 msgid ""
4938 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4939 "limit), and also files where the size is not known in advance (eg. from "
4940 "pipes or sockets).  However the chunks are rather small "
4941 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4942 "to keep much in memory."
4943 msgstr ""
4944
4945 # type: =head3
4946 #. type: =head3
4947 #: ../src/guestfs.pod:2318
4948 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4949 msgstr ""
4950
4951 # type: textblock
4952 #. type: textblock
4953 #: ../src/guestfs.pod:2320
4954 msgid ""
4955 "The protocol for FileOut parameters is exactly the same as for FileIn "
4956 "parameters, but with the roles of daemon and library reversed."
4957 msgstr ""
4958
4959 # type: verbatim
4960 #. type: verbatim
4961 #: ../src/guestfs.pod:2323
4962 #, no-wrap
4963 msgid ""
4964 " total length (header + ret,\n"
4965 "      but not including the length word itself,\n"
4966 "      and not including the chunks)\n"
4967 " struct guestfs_message_header (encoded as XDR)\n"
4968 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4969 " sequence of chunks for FileOut param #0\n"
4970 " sequence of chunks for FileOut param #1 etc.\n"
4971 "\n"
4972 msgstr ""
4973
4974 # type: =head3
4975 #. type: =head3
4976 #: ../src/guestfs.pod:2331
4977 msgid "INITIAL MESSAGE"
4978 msgstr ""
4979
4980 # type: textblock
4981 #. type: textblock
4982 #: ../src/guestfs.pod:2333
4983 msgid ""
4984 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4985 "which indicates that the guest and daemon is alive.  This is what L</"
4986 "guestfs_launch> waits for."
4987 msgstr ""
4988
4989 # type: =head3
4990 #. type: =head3
4991 #: ../src/guestfs.pod:2337
4992 msgid "PROGRESS NOTIFICATION MESSAGES"
4993 msgstr ""
4994
4995 # type: textblock
4996 #. type: textblock
4997 #: ../src/guestfs.pod:2339
4998 msgid ""
4999 "The daemon may send progress notification messages at any time.  These are "
5000 "distinguished by the normal length word being replaced by "
5001 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
5002 msgstr ""
5003
5004 #. type: textblock
5005 #: ../src/guestfs.pod:2343
5006 msgid ""
5007 "The library turns them into progress callbacks (see L</"
5008 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
5009 "if not."
5010 msgstr ""
5011
5012 # type: textblock
5013 #. type: textblock
5014 #: ../src/guestfs.pod:2347
5015 msgid ""
5016 "The daemon self-limits the frequency of progress messages it sends (see "
5017 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
5018 "messages."
5019 msgstr ""
5020
5021 # type: =head1
5022 #. type: =head1
5023 #: ../src/guestfs.pod:2351
5024 msgid "LIBGUESTFS VERSION NUMBERS"
5025 msgstr ""
5026
5027 # type: textblock
5028 #. type: textblock
5029 #: ../src/guestfs.pod:2353
5030 msgid ""
5031 "Since April 2010, libguestfs has started to make separate development and "
5032 "stable releases, along with corresponding branches in our git repository.  "
5033 "These separate releases can be identified by version number:"
5034 msgstr ""
5035
5036 # type: verbatim
5037 #. type: verbatim
5038 #: ../src/guestfs.pod:2358
5039 #, no-wrap
5040 msgid ""
5041 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5042 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5043 "       |\n"
5044 "       v\n"
5045 " 1  .  3  .  5\n"
5046 " ^           ^\n"
5047 " |           |\n"
5048 " |           `-------- sub-version\n"
5049 " |\n"
5050 " `------ always '1' because we don't change the ABI\n"
5051 "\n"
5052 msgstr ""
5053
5054 # type: textblock
5055 #. type: textblock
5056 #: ../src/guestfs.pod:2369
5057 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5058 msgstr ""
5059
5060 # type: textblock
5061 #. type: textblock
5062 #: ../src/guestfs.pod:2371
5063 msgid ""
5064 "As time passes we cherry pick fixes from the development branch and backport "
5065 "those into the stable branch, the effect being that the stable branch should "
5066 "get more stable and less buggy over time.  So the stable releases are ideal "
5067 "for people who don't need new features but would just like the software to "
5068 "work."
5069 msgstr ""
5070
5071 # type: textblock
5072 #. type: textblock
5073 #: ../src/guestfs.pod:2377
5074 msgid "Our criteria for backporting changes are:"
5075 msgstr ""
5076
5077 # type: textblock
5078 #. type: textblock
5079 #: ../src/guestfs.pod:2383
5080 msgid ""
5081 "Documentation changes which don't affect any code are backported unless the "
5082 "documentation refers to a future feature which is not in stable."
5083 msgstr ""
5084
5085 # type: textblock
5086 #. type: textblock
5087 #: ../src/guestfs.pod:2389
5088 msgid ""
5089 "Bug fixes which are not controversial, fix obvious problems, and have been "
5090 "well tested are backported."
5091 msgstr ""
5092
5093 # type: textblock
5094 #. type: textblock
5095 #: ../src/guestfs.pod:2394
5096 msgid ""
5097 "Simple rearrangements of code which shouldn't affect how it works get "
5098 "backported.  This is so that the code in the two branches doesn't get too "
5099 "far out of step, allowing us to backport future fixes more easily."
5100 msgstr ""
5101
5102 # type: textblock
5103 #. type: textblock
5104 #: ../src/guestfs.pod:2400
5105 msgid ""
5106 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5107 "exceptional case: the new feature is required in order to implement an "
5108 "important bug fix."
5109 msgstr ""
5110
5111 # type: textblock
5112 #. type: textblock
5113 #: ../src/guestfs.pod:2406
5114 msgid ""
5115 "A new stable branch starts when we think the new features in development are "
5116 "substantial and compelling enough over the current stable branch to warrant "
5117 "it.  When that happens we create new stable and development versions 1.N.0 "
5118 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5119 "stable at this point, but by backporting fixes from development, that branch "
5120 "will stabilize over time."
5121 msgstr ""
5122
5123 #. type: =head1
5124 #: ../src/guestfs.pod:2414
5125 msgid "EXTENDING LIBGUESTFS"
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../src/guestfs.pod:2416
5130 msgid "ADDING A NEW API ACTION"
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../src/guestfs.pod:2418
5135 msgid ""
5136 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5137 "documentation) are generated, and this makes it easy to extend the "
5138 "libguestfs API."
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../src/guestfs.pod:2422
5143 msgid "To add a new API action there are two changes:"
5144 msgstr ""
5145
5146 #. type: textblock
5147 #: ../src/guestfs.pod:2428
5148 msgid ""
5149 "You need to add a description of the call (name, parameters, return type, "
5150 "tests, documentation) to C<generator/generator_actions.ml>."
5151 msgstr ""
5152
5153 #. type: textblock
5154 #: ../src/guestfs.pod:2431
5155 msgid ""
5156 "There are two sorts of API action, depending on whether the call goes "
5157 "through to the daemon in the appliance, or is serviced entirely by the "
5158 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5159 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5160 "an example of the latter, since a trace flag is maintained in the handle and "
5161 "all tracing is done on the library side."
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../src/guestfs.pod:2439
5166 msgid ""
5167 "Most new actions are of the first type, and get added to the "
5168 "C<daemon_functions> list.  Each function has a unique procedure number used "
5169 "in the RPC protocol which is assigned to that action when we publish "
5170 "libguestfs and cannot be reused.  Take the latest procedure number and "
5171 "increment it."
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../src/guestfs.pod:2445
5176 msgid ""
5177 "For library-only actions of the second type, add to the "
5178 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5179 "library and do not travel over the RPC mechanism to the daemon, these "
5180 "functions do not need a procedure number, and so the procedure number is set "
5181 "to C<-1>."
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../src/guestfs.pod:2453
5186 msgid "Implement the action (in C):"
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../src/guestfs.pod:2455
5191 msgid ""
5192 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5193 "C<daemon/> directory."
5194 msgstr ""
5195
5196 #. type: textblock
5197 #: ../src/guestfs.pod:2458
5198 msgid ""
5199 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5200 "(note: double underscore) in the C<src/> directory."
5201 msgstr ""
5202
5203 #. type: textblock
5204 #: ../src/guestfs.pod:2461
5205 msgid "In either case, use another function as an example of what to do."
5206 msgstr ""
5207
5208 #. type: textblock
5209 #: ../src/guestfs.pod:2465
5210 msgid "After making these changes, use C<make> to compile."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../src/guestfs.pod:2467
5215 msgid ""
5216 "Note that you don't need to implement the RPC, language bindings, manual "
5217 "pages or anything else.  It's all automatically generated from the OCaml "
5218 "description."
5219 msgstr ""
5220
5221 #. type: =head2
5222 #: ../src/guestfs.pod:2471
5223 msgid "ADDING TESTS FOR AN API ACTION"
5224 msgstr ""
5225
5226 #. type: textblock
5227 #: ../src/guestfs.pod:2473
5228 msgid ""
5229 "You can supply zero or as many tests as you want per API call.  The tests "
5230 "can either be added as part of the API description (C<generator/"
5231 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5232 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5233 "slower, so if possible use the first method."
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../src/guestfs.pod:2479
5238 msgid ""
5239 "The following describes the test environment used when you add an API test "
5240 "in C<generator_actions.ml>."
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../src/guestfs.pod:2482
5245 msgid "The test environment has 4 block devices:"
5246 msgstr ""
5247
5248 #. type: =item
5249 #: ../src/guestfs.pod:2486
5250 msgid "C</dev/sda> 500MB"
5251 msgstr ""
5252
5253 #. type: textblock
5254 #: ../src/guestfs.pod:2488
5255 msgid "General block device for testing."
5256 msgstr ""
5257
5258 #. type: =item
5259 #: ../src/guestfs.pod:2490
5260 msgid "C</dev/sdb> 50MB"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../src/guestfs.pod:2492
5265 msgid ""
5266 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5267 "operations."
5268 msgstr ""
5269
5270 #. type: =item
5271 #: ../src/guestfs.pod:2495
5272 msgid "C</dev/sdc> 10MB"
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../src/guestfs.pod:2497
5277 msgid "Used in a few tests where two block devices are needed."
5278 msgstr ""
5279
5280 #. type: =item
5281 #: ../src/guestfs.pod:2499
5282 msgid "C</dev/sdd>"
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../src/guestfs.pod:2501
5287 msgid "ISO with fixed content (see C<images/test.iso>)."
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../src/guestfs.pod:2505
5292 msgid ""
5293 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5294 "appliance and block devices are reused between tests.  So don't try testing "
5295 "L</guestfs_kill_subprocess> :-x"
5296 msgstr ""
5297
5298 #. type: textblock
5299 #: ../src/guestfs.pod:2509
5300 msgid ""
5301 "Each test starts with an initial scenario, selected using one of the "
5302 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5303 "initialize the disks mentioned above in a particular way as documented in "
5304 "C<generator_types.ml>.  You should not assume anything about the previous "
5305 "contents of other disks that are not initialized."
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../src/guestfs.pod:2515
5310 msgid ""
5311 "You can add a prerequisite clause to any individual test.  This is a run-"
5312 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5313 "testing a command which might not work on all variations of libguestfs "
5314 "builds.  A test that has prerequisite of C<Always> means to run "
5315 "unconditionally."
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../src/guestfs.pod:2521
5320 msgid ""
5321 "In addition, packagers can skip individual tests by setting environment "
5322 "variables before running C<make check>."
5323 msgstr ""
5324
5325 #. type: verbatim
5326 #: ../src/guestfs.pod:2524
5327 #, no-wrap
5328 msgid ""
5329 " SKIP_TEST_<CMD>_<NUM>=1\n"
5330 "\n"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../src/guestfs.pod:2526
5335 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../src/guestfs.pod:2528
5340 msgid "or:"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../src/guestfs.pod:2530
5345 #, no-wrap
5346 msgid ""
5347 " SKIP_TEST_<CMD>=1\n"
5348 "\n"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../src/guestfs.pod:2532
5353 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../src/guestfs.pod:2534
5358 msgid "Packagers can run only certain tests by setting for example:"
5359 msgstr ""
5360
5361 #. type: verbatim
5362 #: ../src/guestfs.pod:2536
5363 #, no-wrap
5364 msgid ""
5365 " TEST_ONLY=\"vfs_type zerofree\"\n"
5366 "\n"
5367 msgstr ""
5368
5369 #. type: textblock
5370 #: ../src/guestfs.pod:2538
5371 msgid ""
5372 "See C<capitests/tests.c> for more details of how these environment variables "
5373 "work."
5374 msgstr ""
5375
5376 #. type: =head2
5377 #: ../src/guestfs.pod:2541
5378 msgid "DEBUGGING NEW API ACTIONS"
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../src/guestfs.pod:2543
5383 msgid "Test new actions work before submitting them."
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../src/guestfs.pod:2545
5388 msgid "You can use guestfish to try out new commands."
5389 msgstr ""
5390
5391 #. type: textblock
5392 #: ../src/guestfs.pod:2547
5393 msgid ""
5394 "Debugging the daemon is a problem because it runs inside a minimal "
5395 "environment.  However you can fprintf messages in the daemon to stderr, and "
5396 "they will show up if you use C<guestfish -v>."
5397 msgstr ""
5398
5399 #. type: =head2
5400 #: ../src/guestfs.pod:2551
5401 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5402 msgstr ""
5403
5404 #. type: textblock
5405 #: ../src/guestfs.pod:2553
5406 msgid ""
5407 "Our C source code generally adheres to some basic code-formatting "
5408 "conventions.  The existing code base is not totally consistent on this "
5409 "front, but we do prefer that contributed code be formatted similarly.  In "
5410 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5411 "indentation level, and other than that, follow the K&R style."
5412 msgstr ""
5413
5414 #. type: textblock
5415 #: ../src/guestfs.pod:2559
5416 msgid ""
5417 "If you use Emacs, add the following to one of one of your start-up files (e."
5418 "g., ~/.emacs), to help ensure that you get indentation right:"
5419 msgstr ""
5420
5421 #. type: verbatim
5422 #: ../src/guestfs.pod:2562
5423 #, no-wrap
5424 msgid ""
5425 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5426 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5427 " (add-hook 'find-file-hook\n"
5428 "     '(lambda () (if (and buffer-file-name\n"
5429 "                          (string-match \"/libguestfs\\\\>\"\n"
5430 "                              (buffer-file-name))\n"
5431 "                          (not (string-equal mode-name \"Change Log\"))\n"
5432 "                          (not (string-equal mode-name \"Makefile\")))\n"
5433 "                     (setq indent-tabs-mode nil))))\n"
5434 " \n"
5435 msgstr ""
5436
5437 #. type: verbatim
5438 #: ../src/guestfs.pod:2572
5439 #, no-wrap
5440 msgid ""
5441 " ;;; When editing C sources in libguestfs, use this style.\n"
5442 " (defun libguestfs-c-mode ()\n"
5443 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5444 "   (interactive)\n"
5445 "   (c-set-style \"K&R\")\n"
5446 "   (setq c-indent-level 2)\n"
5447 "   (setq c-basic-offset 2))\n"
5448 " (add-hook 'c-mode-hook\n"
5449 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5450 "                               (buffer-file-name))\n"
5451 "                           (libguestfs-c-mode))))\n"
5452 "\n"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../src/guestfs.pod:2584
5457 msgid "Enable warnings when compiling (and fix any problems this finds):"
5458 msgstr ""
5459
5460 #. type: verbatim
5461 #: ../src/guestfs.pod:2587
5462 #, no-wrap
5463 msgid ""
5464 " ./configure --enable-gcc-warnings\n"
5465 "\n"
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../src/guestfs.pod:2589
5470 msgid "Useful targets are:"
5471 msgstr ""
5472
5473 #. type: verbatim
5474 #: ../src/guestfs.pod:2591
5475 #, no-wrap
5476 msgid ""
5477 " make syntax-check  # checks the syntax of the C code\n"
5478 " make check         # runs the test suite\n"
5479 "\n"
5480 msgstr ""
5481
5482 #. type: =head2
5483 #: ../src/guestfs.pod:2594
5484 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../src/guestfs.pod:2596
5489 msgid ""
5490 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5491 "which are used to do shell quoting."
5492 msgstr ""
5493
5494 #. type: =item
5495 #: ../src/guestfs.pod:2601
5496 msgid "%Q"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../src/guestfs.pod:2603
5501 msgid ""
5502 "Simple shell quoted string.  Any spaces or other shell characters are "
5503 "escaped for you."
5504 msgstr ""
5505
5506 #. type: =item
5507 #: ../src/guestfs.pod:2606
5508 msgid "%R"
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../src/guestfs.pod:2608
5513 msgid ""
5514 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5515 "the sysroot."
5516 msgstr ""
5517
5518 # type: textblock
5519 #. type: textblock
5520 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:240 ../fish/guestfish.pod:613
5521 msgid "For example:"
5522 msgstr ""
5523
5524 #. type: verbatim
5525 #: ../src/guestfs.pod:2615
5526 #, no-wrap
5527 msgid ""
5528 " asprintf (&cmd, \"cat %R\", path);\n"
5529 "\n"
5530 msgstr ""
5531
5532 #. type: textblock
5533 #: ../src/guestfs.pod:2617
5534 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../src/guestfs.pod:2619
5539 msgid ""
5540 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5541 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5542 "they are not passed via the shell (instead, straight to exec).  You probably "
5543 "want to use the C<sysroot_path()> function however."
5544 msgstr ""
5545
5546 #. type: =head2
5547 #: ../src/guestfs.pod:2625
5548 msgid "SUBMITTING YOUR NEW API ACTIONS"
5549 msgstr ""
5550
5551 #. type: textblock
5552 #: ../src/guestfs.pod:2627
5553 msgid ""
5554 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5555 "libguestfs> and CC to L<rjones@redhat.com>."
5556 msgstr ""
5557
5558 #. type: =head2
5559 #: ../src/guestfs.pod:2631
5560 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../src/guestfs.pod:2633
5565 msgid "We support i18n (gettext anyhow) in the library."
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../src/guestfs.pod:2635
5570 msgid ""
5571 "However many messages come from the daemon, and we don't translate those at "
5572 "the moment.  One reason is that the appliance generally has all locale files "
5573 "removed from it, because they take up a lot of space.  So we'd have to readd "
5574 "some of those, as well as copying our PO files into the appliance."
5575 msgstr ""
5576
5577 #. type: textblock
5578 #: ../src/guestfs.pod:2641
5579 msgid ""
5580 "Debugging messages are never translated, since they are intended for the "
5581 "programmers."
5582 msgstr ""
5583
5584 #. type: =head2
5585 #: ../src/guestfs.pod:2644
5586 msgid "SOURCE CODE SUBDIRECTORIES"
5587 msgstr ""
5588
5589 #. type: =item
5590 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5725
5591 #: ../fish/guestfish-actions.pod:3842
5592 msgid "C<appliance>"
5593 msgstr ""
5594
5595 #. type: textblock
5596 #: ../src/guestfs.pod:2650
5597 msgid "The libguestfs appliance, build scripts and so on."
5598 msgstr ""
5599
5600 #. type: =item
5601 #: ../src/guestfs.pod:2652
5602 msgid "C<capitests>"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../src/guestfs.pod:2654
5607 msgid "Automated tests of the C API."
5608 msgstr ""
5609
5610 #. type: =item
5611 #: ../src/guestfs.pod:2656
5612 msgid "C<cat>"
5613 msgstr ""
5614
5615 #. type: textblock
5616 #: ../src/guestfs.pod:2658
5617 msgid ""
5618 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5619 "documentation."
5620 msgstr ""
5621
5622 #. type: =item
5623 #: ../src/guestfs.pod:2661
5624 msgid "C<contrib>"
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../src/guestfs.pod:2663
5629 msgid "Outside contributions, experimental parts."
5630 msgstr ""
5631
5632 #. type: =item
5633 #: ../src/guestfs.pod:2665
5634 msgid "C<daemon>"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../src/guestfs.pod:2667
5639 msgid ""
5640 "The daemon that runs inside the libguestfs appliance and carries out actions."
5641 msgstr ""
5642
5643 #. type: =item
5644 #: ../src/guestfs.pod:2670
5645 msgid "C<df>"
5646 msgstr ""
5647
5648 #. type: textblock
5649 #: ../src/guestfs.pod:2672
5650 msgid "L<virt-df(1)> command and documentation."
5651 msgstr ""
5652
5653 #. type: =item
5654 #: ../src/guestfs.pod:2674
5655 msgid "C<examples>"
5656 msgstr ""
5657
5658 #. type: textblock
5659 #: ../src/guestfs.pod:2676
5660 msgid "C API example code."
5661 msgstr ""
5662
5663 #. type: =item
5664 #: ../src/guestfs.pod:2678
5665 msgid "C<fish>"
5666 msgstr ""
5667
5668 #. type: textblock
5669 #: ../src/guestfs.pod:2680
5670 msgid ""
5671 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5672 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5673 "L<virt-tar-out(1)>."
5674 msgstr ""
5675
5676 #. type: =item
5677 #: ../src/guestfs.pod:2684
5678 msgid "C<fuse>"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../src/guestfs.pod:2686
5683 msgid ""
5684 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5685 msgstr ""
5686
5687 #. type: =item
5688 #: ../src/guestfs.pod:2688
5689 msgid "C<generator>"
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../src/guestfs.pod:2690
5694 msgid ""
5695 "The crucially important generator, used to automatically generate large "
5696 "amounts of boilerplate C code for things like RPC and bindings."
5697 msgstr ""
5698
5699 #. type: =item
5700 #: ../src/guestfs.pod:2693
5701 msgid "C<images>"
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../src/guestfs.pod:2695
5706 msgid "Files used by the test suite."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../src/guestfs.pod:2697
5711 msgid "Some \"phony\" guest images which we test against."
5712 msgstr ""
5713
5714 #. type: =item
5715 #: ../src/guestfs.pod:2699
5716 msgid "C<inspector>"
5717 msgstr ""
5718
5719 #. type: textblock
5720 #: ../src/guestfs.pod:2701
5721 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5722 msgstr ""
5723
5724 #. type: =item
5725 #: ../src/guestfs.pod:2703
5726 msgid "C<logo>"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../src/guestfs.pod:2705
5731 msgid "Logo used on the website.  The fish is called Arthur by the way."
5732 msgstr ""
5733
5734 #. type: =item
5735 #: ../src/guestfs.pod:2707
5736 msgid "C<m4>"
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../src/guestfs.pod:2709
5741 msgid "M4 macros used by autoconf."
5742 msgstr ""
5743
5744 #. type: =item
5745 #: ../src/guestfs.pod:2711
5746 msgid "C<po>"
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../src/guestfs.pod:2713
5751 msgid "Translations of simple gettext strings."
5752 msgstr ""
5753
5754 #. type: =item
5755 #: ../src/guestfs.pod:2715
5756 msgid "C<po-docs>"
5757 msgstr ""
5758
5759 #. type: textblock
5760 #: ../src/guestfs.pod:2717
5761 msgid ""
5762 "The build infrastructure and PO files for translations of manpages and POD "
5763 "files.  Eventually this will be combined with the C<po> directory, but that "
5764 "is rather complicated."
5765 msgstr ""
5766
5767 #. type: =item
5768 #: ../src/guestfs.pod:2721
5769 msgid "C<regressions>"
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../src/guestfs.pod:2723
5774 msgid "Regression tests."
5775 msgstr ""
5776
5777 #. type: =item
5778 #: ../src/guestfs.pod:2725
5779 msgid "C<rescue>"
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../src/guestfs.pod:2727
5784 msgid "L<virt-rescue(1)> command and documentation."
5785 msgstr ""
5786
5787 #. type: =item
5788 #: ../src/guestfs.pod:2729
5789 msgid "C<src>"
5790 msgstr ""
5791
5792 #. type: textblock
5793 #: ../src/guestfs.pod:2731
5794 msgid "Source code to the C library."
5795 msgstr ""
5796
5797 #. type: =item
5798 #: ../src/guestfs.pod:2733
5799 msgid "C<tools>"
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../src/guestfs.pod:2735
5804 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5805 msgstr ""
5806
5807 #. type: =item
5808 #: ../src/guestfs.pod:2737
5809 msgid "C<test-tool>"
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../src/guestfs.pod:2739
5814 msgid ""
5815 "Test tool for end users to test if their qemu/kernel combination will work "
5816 "with libguestfs."
5817 msgstr ""
5818
5819 #. type: =item
5820 #: ../src/guestfs.pod:2742
5821 msgid "C<csharp>"
5822 msgstr ""
5823
5824 #. type: =item
5825 #: ../src/guestfs.pod:2744
5826 msgid "C<haskell>"
5827 msgstr ""
5828
5829 #. type: =item
5830 #: ../src/guestfs.pod:2746
5831 msgid "C<java>"
5832 msgstr ""
5833
5834 #. type: =item
5835 #: ../src/guestfs.pod:2748
5836 msgid "C<ocaml>"
5837 msgstr ""
5838
5839 #. type: =item
5840 #: ../src/guestfs.pod:2750
5841 msgid "C<php>"
5842 msgstr ""
5843
5844 #. type: =item
5845 #: ../src/guestfs.pod:2752
5846 msgid "C<perl>"
5847 msgstr ""
5848
5849 #. type: =item
5850 #: ../src/guestfs.pod:2754
5851 msgid "C<python>"
5852 msgstr ""
5853
5854 #. type: =item
5855 #: ../src/guestfs.pod:2756
5856 msgid "C<ruby>"
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../src/guestfs.pod:2758
5861 msgid "Language bindings."
5862 msgstr ""
5863
5864 # type: =head1
5865 #. type: =head1
5866 #: ../src/guestfs.pod:2762 ../fish/guestfish.pod:1010
5867 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5868 msgid "ENVIRONMENT VARIABLES"
5869 msgstr ""
5870
5871 # type: =item
5872 #. type: =item
5873 #: ../src/guestfs.pod:2766 ../fish/guestfish.pod:1036
5874 msgid "LIBGUESTFS_APPEND"
5875 msgstr ""
5876
5877 # type: textblock
5878 #. type: textblock
5879 #: ../src/guestfs.pod:2768 ../fish/guestfish.pod:1038
5880 msgid "Pass additional options to the guest kernel."
5881 msgstr ""
5882
5883 # type: =item
5884 #. type: =item
5885 #: ../src/guestfs.pod:2770 ../fish/guestfish.pod:1040
5886 msgid "LIBGUESTFS_DEBUG"
5887 msgstr ""
5888
5889 # type: textblock
5890 #. type: textblock
5891 #: ../src/guestfs.pod:2772
5892 msgid ""
5893 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5894 "effect as calling C<guestfs_set_verbose (g, 1)>."
5895 msgstr ""
5896
5897 # type: =item
5898 #. type: =item
5899 #: ../src/guestfs.pod:2775 ../fish/guestfish.pod:1045
5900 msgid "LIBGUESTFS_MEMSIZE"
5901 msgstr ""
5902
5903 # type: textblock
5904 #. type: textblock
5905 #: ../src/guestfs.pod:2777 ../fish/guestfish.pod:1047
5906 msgid ""
5907 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5908 msgstr ""
5909
5910 # type: verbatim
5911 #. type: verbatim
5912 #: ../src/guestfs.pod:2780 ../fish/guestfish.pod:1050
5913 #, no-wrap
5914 msgid ""
5915 " LIBGUESTFS_MEMSIZE=700\n"
5916 "\n"
5917 msgstr ""
5918
5919 # type: =item
5920 #. type: =item
5921 #: ../src/guestfs.pod:2782 ../fish/guestfish.pod:1052
5922 msgid "LIBGUESTFS_PATH"
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../src/guestfs.pod:2784
5927 msgid ""
5928 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5929 "the discussion of paths in section L</PATH> above."
5930 msgstr ""
5931
5932 # type: =item
5933 #. type: =item
5934 #: ../src/guestfs.pod:2787 ../fish/guestfish.pod:1057
5935 msgid "LIBGUESTFS_QEMU"
5936 msgstr ""
5937
5938 # type: textblock
5939 #. type: textblock
5940 #: ../src/guestfs.pod:2789 ../fish/guestfish.pod:1059
5941 msgid ""
5942 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5943 "which was found at compile time by the configure script is used."
5944 msgstr ""
5945
5946 # type: textblock
5947 #. type: textblock
5948 #: ../src/guestfs.pod:2793
5949 msgid "See also L</QEMU WRAPPERS> above."
5950 msgstr ""
5951
5952 # type: =item
5953 #. type: =item
5954 #: ../src/guestfs.pod:2795 ../fish/guestfish.pod:1063
5955 msgid "LIBGUESTFS_TRACE"
5956 msgstr ""
5957
5958 # type: textblock
5959 #. type: textblock
5960 #: ../src/guestfs.pod:2797
5961 msgid ""
5962 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5963 "effect as calling C<guestfs_set_trace (g, 1)>."
5964 msgstr ""
5965
5966 # type: =item
5967 #. type: =item
5968 #: ../src/guestfs.pod:2800 ../fish/guestfish.pod:1072
5969 msgid "TMPDIR"
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../src/guestfs.pod:2802 ../fish/guestfish.pod:1074
5974 msgid ""
5975 "Location of temporary directory, defaults to C</tmp> except for the cached "
5976 "supermin appliance which defaults to C</var/tmp>."
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../src/guestfs.pod:2805 ../fish/guestfish.pod:1077
5981 msgid ""
5982 "If libguestfs was compiled to use the supermin appliance then the real "
5983 "appliance is cached in this directory, shared between all handles belonging "
5984 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5985 "use in case C</var/tmp> is not large enough."
5986 msgstr ""
5987
5988 # type: =head1
5989 #. type: =head1
5990 #: ../src/guestfs.pod:2813 ../fish/guestfish.pod:1144
5991 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:267
5992 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
5993 #: ../tools/virt-resize.pl:1489 ../tools/virt-list-filesystems.pl:189
5994 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
5995 #: ../tools/virt-list-partitions.pl:257
5996 msgid "SEE ALSO"
5997 msgstr ""
5998
5999 #. type: textblock
6000 #: ../src/guestfs.pod:2815
6001 msgid ""
6002 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6003 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6004 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6005 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6006 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6007 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6008 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6009 msgstr ""
6010
6011 # type: textblock
6012 #. type: textblock
6013 #: ../src/guestfs.pod:2842
6014 msgid ""
6015 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6016 "(8)>, L<disktype(1)>."
6017 msgstr ""
6018
6019 # type: =head1
6020 #. type: =head1
6021 #: ../src/guestfs.pod:2849 ../tools/virt-win-reg.pl:587
6022 #: ../tools/virt-make-fs.pl:553
6023 msgid "BUGS"
6024 msgstr ""
6025
6026 # type: textblock
6027 #. type: textblock
6028 #: ../src/guestfs.pod:2851
6029 msgid "To get a list of bugs against libguestfs use this link:"
6030 msgstr ""
6031
6032 # type: textblock
6033 #. type: textblock
6034 #: ../src/guestfs.pod:2853
6035 msgid ""
6036 "L<https://bugzilla.redhat.com/buglist.cgi?"
6037 "component=libguestfs&product=Virtualization+Tools>"
6038 msgstr ""
6039
6040 # type: textblock
6041 #. type: textblock
6042 #: ../src/guestfs.pod:2855
6043 msgid "To report a new bug against libguestfs use this link:"
6044 msgstr ""
6045
6046 # type: textblock
6047 #. type: textblock
6048 #: ../src/guestfs.pod:2857
6049 msgid ""
6050 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6051 "component=libguestfs&product=Virtualization+Tools>"
6052 msgstr ""
6053
6054 # type: textblock
6055 #. type: textblock
6056 #: ../src/guestfs.pod:2859
6057 msgid "When reporting a bug, please check:"
6058 msgstr ""
6059
6060 # type: textblock
6061 #. type: textblock
6062 #: ../src/guestfs.pod:2865
6063 msgid "That the bug hasn't been reported already."
6064 msgstr ""
6065
6066 # type: textblock
6067 #. type: textblock
6068 #: ../src/guestfs.pod:2869
6069 msgid "That you are testing a recent version."
6070 msgstr ""
6071
6072 # type: textblock
6073 #. type: textblock
6074 #: ../src/guestfs.pod:2873
6075 msgid "Describe the bug accurately, and give a way to reproduce it."
6076 msgstr ""
6077
6078 # type: textblock
6079 #. type: textblock
6080 #: ../src/guestfs.pod:2877
6081 msgid ""
6082 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6083 "bug report."
6084 msgstr ""
6085
6086 # type: =head1
6087 #. type: =head1
6088 #: ../src/guestfs.pod:2882 ../fish/guestfish.pod:1167
6089 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:278
6090 msgid "AUTHORS"
6091 msgstr ""
6092
6093 # type: textblock
6094 #. type: textblock
6095 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1169
6096 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:280
6097 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6098 msgstr ""
6099
6100 # type: =head1
6101 #. type: =head1
6102 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1171
6103 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:282
6104 #: ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602
6105 #: ../tools/virt-resize.pl:1514 ../tools/virt-list-filesystems.pl:206
6106 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6107 #: ../tools/virt-list-partitions.pl:273
6108 msgid "COPYRIGHT"
6109 msgstr ""
6110
6111 # type: textblock
6112 #. type: textblock
6113 #: ../src/guestfs.pod:2888 ../fuse/guestmount.pod:284
6114 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
6115 msgstr ""
6116
6117 # type: textblock
6118 #. type: textblock
6119 #: ../src/guestfs.pod:2891
6120 msgid ""
6121 "This library is free software; you can redistribute it and/or modify it "
6122 "under the terms of the GNU Lesser General Public License as published by the "
6123 "Free Software Foundation; either version 2 of the License, or (at your "
6124 "option) any later version."
6125 msgstr ""
6126
6127 # type: textblock
6128 #. type: textblock
6129 #: ../src/guestfs.pod:2896
6130 msgid ""
6131 "This library is distributed in the hope that it will be useful, but WITHOUT "
6132 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6133 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6134 "for more details."
6135 msgstr ""
6136
6137 # type: textblock
6138 #. type: textblock
6139 #: ../src/guestfs.pod:2901
6140 msgid ""
6141 "You should have received a copy of the GNU Lesser General Public License "
6142 "along with this library; if not, write to the Free Software Foundation, "
6143 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6144 msgstr ""
6145
6146 # type: =head2
6147 #. type: =head2
6148 #: ../src/guestfs-actions.pod:1
6149 msgid "guestfs_add_cdrom"
6150 msgstr ""
6151
6152 # type: verbatim
6153 #. type: verbatim
6154 #: ../src/guestfs-actions.pod:3
6155 #, no-wrap
6156 msgid ""
6157 " int\n"
6158 " guestfs_add_cdrom (guestfs_h *g,\n"
6159 "                    const char *filename);\n"
6160 "\n"
6161 msgstr ""
6162
6163 # type: textblock
6164 #. type: textblock
6165 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6166 msgid "This function adds a virtual CD-ROM disk image to the guest."
6167 msgstr ""
6168
6169 # type: textblock
6170 #. type: textblock
6171 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6172 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
6173 msgstr ""
6174
6175 # type: textblock
6176 #. type: textblock
6177 #: ../src/guestfs-actions.pod:17
6178 msgid ""
6179 "This call checks for the existence of C<filename>.  This stops you from "
6180 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6181 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6182 "instead."
6183 msgstr ""
6184
6185 # type: textblock
6186 #. type: textblock
6187 #: ../src/guestfs-actions.pod:24
6188 msgid ""
6189 "If you just want to add an ISO file (often you use this as an efficient way "
6190 "to transfer large files into the guest), then you should probably use "
6191 "C<guestfs_add_drive_ro> instead."
6192 msgstr ""
6193
6194 # type: textblock
6195 #. type: textblock
6196 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:134
6197 #: ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:232
6198 #: ../src/guestfs-actions.pod:246 ../src/guestfs-actions.pod:267
6199 #: ../src/guestfs-actions.pod:287 ../src/guestfs-actions.pod:301
6200 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:436
6201 #: ../src/guestfs-actions.pod:450 ../src/guestfs-actions.pod:495
6202 #: ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:541
6203 #: ../src/guestfs-actions.pod:608 ../src/guestfs-actions.pod:641
6204 #: ../src/guestfs-actions.pod:655 ../src/guestfs-actions.pod:670
6205 #: ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:787
6206 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:815
6207 #: ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:996
6208 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1098
6209 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:1135
6210 #: ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1169
6211 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1270
6212 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1332
6213 #: ../src/guestfs-actions.pod:1438 ../src/guestfs-actions.pod:1472
6214 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1712
6215 #: ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:2261
6216 #: ../src/guestfs-actions.pod:2405 ../src/guestfs-actions.pod:2466
6217 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:3375
6218 #: ../src/guestfs-actions.pod:3390 ../src/guestfs-actions.pod:3410
6219 #: ../src/guestfs-actions.pod:3565 ../src/guestfs-actions.pod:3579
6220 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3606
6221 #: ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3657
6222 #: ../src/guestfs-actions.pod:3729 ../src/guestfs-actions.pod:3749
6223 #: ../src/guestfs-actions.pod:3766 ../src/guestfs-actions.pod:3789
6224 #: ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3844
6225 #: ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:3882
6226 #: ../src/guestfs-actions.pod:3917 ../src/guestfs-actions.pod:3929
6227 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:3981
6228 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4009
6229 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4119
6230 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4152
6231 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4221
6232 #: ../src/guestfs-actions.pod:4239 ../src/guestfs-actions.pod:4255
6233 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4283
6234 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4315
6235 #: ../src/guestfs-actions.pod:4335 ../src/guestfs-actions.pod:4393
6236 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4497
6237 #: ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4535
6238 #: ../src/guestfs-actions.pod:4547 ../src/guestfs-actions.pod:4564
6239 #: ../src/guestfs-actions.pod:4577 ../src/guestfs-actions.pod:4592
6240 #: ../src/guestfs-actions.pod:4607 ../src/guestfs-actions.pod:4642
6241 #: ../src/guestfs-actions.pod:4657 ../src/guestfs-actions.pod:4677
6242 #: ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:4708
6243 #: ../src/guestfs-actions.pod:4757 ../src/guestfs-actions.pod:4794
6244 #: ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:4836
6245 #: ../src/guestfs-actions.pod:4853 ../src/guestfs-actions.pod:4871
6246 #: ../src/guestfs-actions.pod:5005 ../src/guestfs-actions.pod:5062
6247 #: ../src/guestfs-actions.pod:5084 ../src/guestfs-actions.pod:5102
6248 #: ../src/guestfs-actions.pod:5134 ../src/guestfs-actions.pod:5200
6249 #: ../src/guestfs-actions.pod:5217 ../src/guestfs-actions.pod:5230
6250 #: ../src/guestfs-actions.pod:5244 ../src/guestfs-actions.pod:5533
6251 #: ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5571
6252 #: ../src/guestfs-actions.pod:5583 ../src/guestfs-actions.pod:5595
6253 #: ../src/guestfs-actions.pod:5609 ../src/guestfs-actions.pod:5621
6254 #: ../src/guestfs-actions.pod:5635 ../src/guestfs-actions.pod:5651
6255 #: ../src/guestfs-actions.pod:5672 ../src/guestfs-actions.pod:5691
6256 #: ../src/guestfs-actions.pod:5710 ../src/guestfs-actions.pod:5740
6257 #: ../src/guestfs-actions.pod:5756 ../src/guestfs-actions.pod:5779
6258 #: ../src/guestfs-actions.pod:5797 ../src/guestfs-actions.pod:5816
6259 #: ../src/guestfs-actions.pod:5837 ../src/guestfs-actions.pod:5856
6260 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:5901
6261 #: ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5944
6262 #: ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:5987
6263 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6021
6264 #: ../src/guestfs-actions.pod:6058 ../src/guestfs-actions.pod:6081
6265 #: ../src/guestfs-actions.pod:6107 ../src/guestfs-actions.pod:6215
6266 #: ../src/guestfs-actions.pod:6336 ../src/guestfs-actions.pod:6348
6267 #: ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6374
6268 #: ../src/guestfs-actions.pod:6396 ../src/guestfs-actions.pod:6409
6269 #: ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6435
6270 #: ../src/guestfs-actions.pod:6450 ../src/guestfs-actions.pod:6509
6271 #: ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6542
6272 #: ../src/guestfs-actions.pod:6558 ../src/guestfs-actions.pod:6575
6273 #: ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6608
6274 #: ../src/guestfs-actions.pod:6644 ../src/guestfs-actions.pod:6658
6275 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6712
6276 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-actions.pod:6764
6277 #: ../src/guestfs-actions.pod:6800 ../src/guestfs-actions.pod:6919
6278 #: ../src/guestfs-actions.pod:6937 ../src/guestfs-actions.pod:6951
6279 #: ../src/guestfs-actions.pod:7006 ../src/guestfs-actions.pod:7019
6280 #: ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7097
6281 #: ../src/guestfs-actions.pod:7151 ../src/guestfs-actions.pod:7177
6282 #: ../src/guestfs-actions.pod:7243 ../src/guestfs-actions.pod:7262
6283 #: ../src/guestfs-actions.pod:7291
6284 msgid "This function returns 0 on success or -1 on error."
6285 msgstr ""
6286
6287 # type: textblock
6288 #. type: textblock
6289 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:248
6290 #: ../src/guestfs-actions.pod:269 ../fish/guestfish-actions.pod:28
6291 #: ../fish/guestfish-actions.pod:158 ../fish/guestfish-actions.pod:172
6292 msgid ""
6293 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6294 "instead."
6295 msgstr ""
6296
6297 # type: textblock
6298 #. type: textblock
6299 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:251
6300 #: ../src/guestfs-actions.pod:272 ../src/guestfs-actions.pod:1443
6301 #: ../src/guestfs-actions.pod:1939 ../src/guestfs-actions.pod:1960
6302 #: ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:7185
6303 #: ../src/guestfs-actions.pod:7354 ../fish/guestfish-actions.pod:31
6304 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:175
6305 #: ../fish/guestfish-actions.pod:956 ../fish/guestfish-actions.pod:1319
6306 #: ../fish/guestfish-actions.pod:1333 ../fish/guestfish-actions.pod:2942
6307 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4897
6308 msgid ""
6309 "Deprecated functions will not be removed from the API, but the fact that "
6310 "they are deprecated indicates that there are problems with correct use of "
6311 "these functions."
6312 msgstr ""
6313
6314 # type: textblock
6315 #. type: textblock
6316 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:136
6317 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1911
6318 #: ../src/guestfs-actions.pod:2009 ../src/guestfs-actions.pod:2112
6319 #: ../src/guestfs-actions.pod:3377 ../src/guestfs-actions.pod:3392
6320 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5758
6321 #: ../src/guestfs-actions.pod:5875 ../src/guestfs-actions.pod:5989
6322 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6577
6323 #: ../src/guestfs-actions.pod:7099
6324 msgid "(Added in 0.3)"
6325 msgstr ""
6326
6327 # type: =head2
6328 #. type: =head2
6329 #: ../src/guestfs-actions.pod:41
6330 msgid "guestfs_add_domain"
6331 msgstr ""
6332
6333 # type: verbatim
6334 #. type: verbatim
6335 #: ../src/guestfs-actions.pod:43
6336 #, no-wrap
6337 msgid ""
6338 " int\n"
6339 " guestfs_add_domain (guestfs_h *g,\n"
6340 "                     const char *dom,\n"
6341 "                     ...);\n"
6342 "\n"
6343 msgstr ""
6344
6345 # type: textblock
6346 #. type: textblock
6347 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145
6348 #: ../src/guestfs-actions.pod:4354
6349 msgid ""
6350 "You may supply a list of optional arguments to this call.  Use zero or more "
6351 "of the following pairs of parameters, and terminate the list with C<-1> on "
6352 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6353 msgstr ""
6354
6355 #. type: verbatim
6356 #: ../src/guestfs-actions.pod:53
6357 #, no-wrap
6358 msgid ""
6359 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6360 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6361 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6362 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6363 "\n"
6364 msgstr ""
6365
6366 # type: textblock
6367 #. type: textblock
6368 #: ../src/guestfs-actions.pod:58
6369 msgid ""
6370 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6371 "It works by connecting to libvirt, requesting the domain and domain XML from "
6372 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6373 "one."
6374 msgstr ""
6375
6376 # type: textblock
6377 #. type: textblock
6378 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
6379 msgid ""
6380 "The number of disks added is returned.  This operation is atomic: if an "
6381 "error is returned, then no disks are added."
6382 msgstr ""
6383
6384 # type: textblock
6385 #. type: textblock
6386 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
6387 msgid ""
6388 "This function does some minimal checks to make sure the libvirt domain is "
6389 "not running (unless C<readonly> is true).  In a future version we will try "
6390 "to acquire the libvirt lock on each disk."
6391 msgstr ""
6392
6393 # type: textblock
6394 #. type: textblock
6395 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
6396 msgid ""
6397 "Disks must be accessible locally.  This often means that adding disks from a "
6398 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6399 "unless those disks are accessible via the same device path locally too."
6400 msgstr ""
6401
6402 #. type: textblock
6403 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
6404 msgid ""
6405 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6406 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6407 "libvirt URI (or one set through an environment variable, see the libvirt "
6408 "documentation for full details)."
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
6413 msgid ""
6414 "The optional C<live> flag controls whether this call will try to connect to "
6415 "a running virtual machine C<guestfsd> process if it sees a suitable "
6416 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6417 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6418 "DAEMONS> for more information."
6419 msgstr ""
6420
6421 # type: textblock
6422 #. type: textblock
6423 #: ../src/guestfs-actions.pod:88
6424 msgid ""
6425 "The other optional parameters are passed directly through to "
6426 "C<guestfs_add_drive_opts>."
6427 msgstr ""
6428
6429 # type: textblock
6430 #. type: textblock
6431 #: ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:344
6432 #: ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:687
6433 #: ../src/guestfs-actions.pod:718 ../src/guestfs-actions.pod:736
6434 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:1315
6435 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1872
6436 #: ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021
6437 #: ../src/guestfs-actions.pod:2076 ../src/guestfs-actions.pod:2099
6438 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2723
6439 #: ../src/guestfs-actions.pod:2744 ../src/guestfs-actions.pod:4780
6440 #: ../src/guestfs-actions.pod:4908 ../src/guestfs-actions.pod:5314
6441 #: ../src/guestfs-actions.pod:5340 ../src/guestfs-actions.pod:6685
6442 #: ../src/guestfs-actions.pod:7110 ../src/guestfs-actions.pod:7123
6443 #: ../src/guestfs-actions.pod:7136
6444 msgid "On error this function returns -1."
6445 msgstr ""
6446
6447 # type: textblock
6448 #. type: textblock
6449 #: ../src/guestfs-actions.pod:93
6450 msgid "(Added in 1.7.4)"
6451 msgstr ""
6452
6453 # type: =head2
6454 #. type: =head2
6455 #: ../src/guestfs-actions.pod:95
6456 msgid "guestfs_add_domain_va"
6457 msgstr ""
6458
6459 # type: verbatim
6460 #. type: verbatim
6461 #: ../src/guestfs-actions.pod:97
6462 #, no-wrap
6463 msgid ""
6464 " int\n"
6465 " guestfs_add_domain_va (guestfs_h *g,\n"
6466 "                        const char *dom,\n"
6467 "                        va_list args);\n"
6468 "\n"
6469 msgstr ""
6470
6471 # type: textblock
6472 #. type: textblock
6473 #: ../src/guestfs-actions.pod:102
6474 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6475 msgstr ""
6476
6477 # type: textblock
6478 #. type: textblock
6479 #: ../src/guestfs-actions.pod:104 ../src/guestfs-actions.pod:115
6480 #: ../src/guestfs-actions.pod:208 ../src/guestfs-actions.pod:219
6481 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4419
6482 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6483 msgstr ""
6484
6485 # type: =head2
6486 #. type: =head2
6487 #: ../src/guestfs-actions.pod:106
6488 msgid "guestfs_add_domain_argv"
6489 msgstr ""
6490
6491 # type: verbatim
6492 #. type: verbatim
6493 #: ../src/guestfs-actions.pod:108
6494 #, no-wrap
6495 msgid ""
6496 " int\n"
6497 " guestfs_add_domain_argv (guestfs_h *g,\n"
6498 "                          const char *dom,\n"
6499 "                          const struct guestfs_add_domain_argv *optargs);\n"
6500 "\n"
6501 msgstr ""
6502
6503 # type: textblock
6504 #. type: textblock
6505 #: ../src/guestfs-actions.pod:113
6506 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6507 msgstr ""
6508
6509 # type: =head2
6510 #. type: =head2
6511 #: ../src/guestfs-actions.pod:117
6512 msgid "guestfs_add_drive"
6513 msgstr ""
6514
6515 # type: verbatim
6516 #. type: verbatim
6517 #: ../src/guestfs-actions.pod:119
6518 #, no-wrap
6519 msgid ""
6520 " int\n"
6521 " guestfs_add_drive (guestfs_h *g,\n"
6522 "                    const char *filename);\n"
6523 "\n"
6524 msgstr ""
6525
6526 # type: textblock
6527 #. type: textblock
6528 #: ../src/guestfs-actions.pod:123
6529 msgid ""
6530 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6531 "optional parameters, so the disk is added writable, with the format being "
6532 "detected automatically."
6533 msgstr ""
6534
6535 # type: textblock
6536 #. type: textblock
6537 #: ../src/guestfs-actions.pod:127
6538 msgid ""
6539 "Automatic detection of the format opens you up to a potential security hole "
6540 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6541 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6542 "you should think about replacing calls to this function with calls to "
6543 "C<guestfs_add_drive_opts>, and specifying the format."
6544 msgstr ""
6545
6546 # type: =head2
6547 #. type: =head2
6548 #: ../src/guestfs-actions.pod:138
6549 msgid "guestfs_add_drive_opts"
6550 msgstr ""
6551
6552 # type: verbatim
6553 #. type: verbatim
6554 #: ../src/guestfs-actions.pod:140
6555 #, no-wrap
6556 msgid ""
6557 " int\n"
6558 " guestfs_add_drive_opts (guestfs_h *g,\n"
6559 "                         const char *filename,\n"
6560 "                         ...);\n"
6561 "\n"
6562 msgstr ""
6563
6564 # type: verbatim
6565 #. type: verbatim
6566 #: ../src/guestfs-actions.pod:150
6567 #, no-wrap
6568 msgid ""
6569 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6570 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6571 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6572 "\n"
6573 msgstr ""
6574
6575 # type: textblock
6576 #. type: textblock
6577 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
6578 msgid ""
6579 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6580 "The first time you call this function, the disk appears as C</dev/sda>, the "
6581 "second time as C</dev/sdb>, and so on."
6582 msgstr ""
6583
6584 # type: textblock
6585 #. type: textblock
6586 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
6587 msgid ""
6588 "You don't necessarily need to be root when using libguestfs.  However you "
6589 "obviously do need sufficient permissions to access the filename for whatever "
6590 "operations you want to perform (ie. read access if you just want to read the "
6591 "image or write access if you want to modify the image)."
6592 msgstr ""
6593
6594 # type: textblock
6595 #. type: textblock
6596 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
6597 msgid "This call checks that C<filename> exists."
6598 msgstr ""
6599
6600 # type: textblock
6601 #. type: textblock
6602 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4365
6603 #: ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:2953
6604 msgid "The optional arguments are:"
6605 msgstr ""
6606
6607 # type: =item
6608 #. type: =item
6609 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
6610 msgid "C<readonly>"
6611 msgstr ""
6612
6613 # type: textblock
6614 #. type: textblock
6615 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
6616 msgid ""
6617 "If true then the image is treated as read-only.  Writes are still allowed, "
6618 "but they are stored in a temporary snapshot overlay which is discarded at "
6619 "the end.  The disk that you add is not modified."
6620 msgstr ""
6621
6622 # type: =item
6623 #. type: =item
6624 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
6625 msgid "C<format>"
6626 msgstr ""
6627
6628 # type: textblock
6629 #. type: textblock
6630 #: ../src/guestfs-actions.pod:179
6631 msgid ""
6632 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6633 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6634 "Possible formats include C<raw> and C<qcow2>."
6635 msgstr ""
6636
6637 # type: textblock
6638 #. type: textblock
6639 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
6640 msgid ""
6641 "Automatic detection of the format opens you up to a potential security hole "
6642 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6643 "RHBZ#642934.  Specifying the format closes this security hole."
6644 msgstr ""
6645
6646 # type: =item
6647 #. type: =item
6648 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
6649 msgid "C<iface>"
6650 msgstr ""
6651
6652 # type: textblock
6653 #. type: textblock
6654 #: ../src/guestfs-actions.pod:190
6655 msgid ""
6656 "This rarely-used option lets you emulate the behaviour of the deprecated "
6657 "C<guestfs_add_drive_with_if> call (q.v.)"
6658 msgstr ""
6659
6660 # type: textblock
6661 #. type: textblock
6662 #: ../src/guestfs-actions.pod:197
6663 msgid "(Added in 1.5.23)"
6664 msgstr ""
6665
6666 # type: =head2
6667 #. type: =head2
6668 #: ../src/guestfs-actions.pod:199
6669 msgid "guestfs_add_drive_opts_va"
6670 msgstr ""
6671
6672 # type: verbatim
6673 #. type: verbatim
6674 #: ../src/guestfs-actions.pod:201
6675 #, no-wrap
6676 msgid ""
6677 " int\n"
6678 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6679 "                            const char *filename,\n"
6680 "                            va_list args);\n"
6681 "\n"
6682 msgstr ""
6683
6684 # type: textblock
6685 #. type: textblock
6686 #: ../src/guestfs-actions.pod:206
6687 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6688 msgstr ""
6689
6690 # type: =head2
6691 #. type: =head2
6692 #: ../src/guestfs-actions.pod:210
6693 msgid "guestfs_add_drive_opts_argv"
6694 msgstr ""
6695
6696 # type: verbatim
6697 #. type: verbatim
6698 #: ../src/guestfs-actions.pod:212
6699 #, no-wrap
6700 msgid ""
6701 " int\n"
6702 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6703 "                              const char *filename,\n"
6704 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6705 "\n"
6706 msgstr ""
6707
6708 # type: textblock
6709 #. type: textblock
6710 #: ../src/guestfs-actions.pod:217
6711 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6712 msgstr ""
6713
6714 # type: =head2
6715 #. type: =head2
6716 #: ../src/guestfs-actions.pod:221
6717 msgid "guestfs_add_drive_ro"
6718 msgstr ""
6719
6720 # type: verbatim
6721 #. type: verbatim
6722 #: ../src/guestfs-actions.pod:223
6723 #, no-wrap
6724 msgid ""
6725 " int\n"
6726 " guestfs_add_drive_ro (guestfs_h *g,\n"
6727 "                       const char *filename);\n"
6728 "\n"
6729 msgstr ""
6730
6731 # type: textblock
6732 #. type: textblock
6733 #: ../src/guestfs-actions.pod:227
6734 msgid ""
6735 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6736 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6737 "disk is added read-only, with the format being detected automatically."
6738 msgstr ""
6739
6740 # type: textblock
6741 #. type: textblock
6742 #: ../src/guestfs-actions.pod:234
6743 msgid "(Added in 1.0.38)"
6744 msgstr ""
6745
6746 # type: =head2
6747 #. type: =head2
6748 #: ../src/guestfs-actions.pod:236
6749 msgid "guestfs_add_drive_ro_with_if"
6750 msgstr ""
6751
6752 # type: verbatim
6753 #. type: verbatim
6754 #: ../src/guestfs-actions.pod:238
6755 #, no-wrap
6756 msgid ""
6757 " int\n"
6758 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6759 "                               const char *filename,\n"
6760 "                               const char *iface);\n"
6761 "\n"
6762 msgstr ""
6763
6764 # type: textblock
6765 #. type: textblock
6766 #: ../src/guestfs-actions.pod:243
6767 msgid ""
6768 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6769 "QEMU interface emulation to use at run time."
6770 msgstr ""
6771
6772 # type: textblock
6773 #. type: textblock
6774 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
6775 #: ../src/guestfs-actions.pod:2351
6776 msgid "(Added in 1.0.84)"
6777 msgstr ""
6778
6779 # type: =head2
6780 #. type: =head2
6781 #: ../src/guestfs-actions.pod:257
6782 msgid "guestfs_add_drive_with_if"
6783 msgstr ""
6784
6785 # type: verbatim
6786 #. type: verbatim
6787 #: ../src/guestfs-actions.pod:259
6788 #, no-wrap
6789 msgid ""
6790 " int\n"
6791 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6792 "                            const char *filename,\n"
6793 "                            const char *iface);\n"
6794 "\n"
6795 msgstr ""
6796
6797 # type: textblock
6798 #. type: textblock
6799 #: ../src/guestfs-actions.pod:264
6800 msgid ""
6801 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6802 "QEMU interface emulation to use at run time."
6803 msgstr ""
6804
6805 # type: =head2
6806 #. type: =head2
6807 #: ../src/guestfs-actions.pod:278
6808 msgid "guestfs_aug_clear"
6809 msgstr ""
6810
6811 # type: verbatim
6812 #. type: verbatim
6813 #: ../src/guestfs-actions.pod:280
6814 #, no-wrap
6815 msgid ""
6816 " int\n"
6817 " guestfs_aug_clear (guestfs_h *g,\n"
6818 "                    const char *augpath);\n"
6819 "\n"
6820 msgstr ""
6821
6822 # type: textblock
6823 #. type: textblock
6824 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6825 msgid ""
6826 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6827 "L<augtool(1)> C<clear> command."
6828 msgstr ""
6829
6830 # type: textblock
6831 #. type: textblock
6832 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2101
6833 msgid "(Added in 1.3.4)"
6834 msgstr ""
6835
6836 # type: =head2
6837 #. type: =head2
6838 #: ../src/guestfs-actions.pod:291
6839 msgid "guestfs_aug_close"
6840 msgstr ""
6841
6842 # type: verbatim
6843 #. type: verbatim
6844 #: ../src/guestfs-actions.pod:293
6845 #, no-wrap
6846 msgid ""
6847 " int\n"
6848 " guestfs_aug_close (guestfs_h *g);\n"
6849 "\n"
6850 msgstr ""
6851
6852 # type: textblock
6853 #. type: textblock
6854 #: ../src/guestfs-actions.pod:296
6855 msgid ""
6856 "Close the current Augeas handle and free up any resources used by it.  After "
6857 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6858 "any other Augeas functions."
6859 msgstr ""
6860
6861 # type: textblock
6862 #. type: textblock
6863 #: ../src/guestfs-actions.pod:303 ../src/guestfs-actions.pod:328
6864 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
6865 #: ../src/guestfs-actions.pod:418 ../src/guestfs-actions.pod:438
6866 #: ../src/guestfs-actions.pod:452 ../src/guestfs-actions.pod:483
6867 #: ../src/guestfs-actions.pod:497 ../src/guestfs-actions.pod:511
6868 #: ../src/guestfs-actions.pod:525 ../src/guestfs-actions.pod:543
6869 #: ../src/guestfs-actions.pod:5391
6870 msgid "(Added in 0.7)"
6871 msgstr ""
6872
6873 # type: =head2
6874 #. type: =head2
6875 #: ../src/guestfs-actions.pod:305
6876 msgid "guestfs_aug_defnode"
6877 msgstr ""
6878
6879 # type: verbatim
6880 #. type: verbatim
6881 #: ../src/guestfs-actions.pod:307
6882 #, no-wrap
6883 msgid ""
6884 " struct guestfs_int_bool *\n"
6885 " guestfs_aug_defnode (guestfs_h *g,\n"
6886 "                      const char *name,\n"
6887 "                      const char *expr,\n"
6888 "                      const char *val);\n"
6889 "\n"
6890 msgstr ""
6891
6892 # type: textblock
6893 #. type: textblock
6894 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6895 msgid ""
6896 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6897 msgstr ""
6898
6899 # type: textblock
6900 #. type: textblock
6901 #: ../src/guestfs-actions.pod:316
6902 msgid ""
6903 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6904 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6905 "containing that single node."
6906 msgstr ""
6907
6908 # type: textblock
6909 #. type: textblock
6910 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6911 msgid ""
6912 "On success this returns a pair containing the number of nodes in the "
6913 "nodeset, and a boolean flag if a node was created."
6914 msgstr ""
6915
6916 # type: textblock
6917 #. type: textblock
6918 #: ../src/guestfs-actions.pod:324
6919 msgid ""
6920 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6921 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6922 msgstr ""
6923
6924 # type: =head2
6925 #. type: =head2
6926 #: ../src/guestfs-actions.pod:330
6927 msgid "guestfs_aug_defvar"
6928 msgstr ""
6929
6930 # type: verbatim
6931 #. type: verbatim
6932 #: ../src/guestfs-actions.pod:332
6933 #, no-wrap
6934 msgid ""
6935 " int\n"
6936 " guestfs_aug_defvar (guestfs_h *g,\n"
6937 "                     const char *name,\n"
6938 "                     const char *expr);\n"
6939 "\n"
6940 msgstr ""
6941
6942 # type: textblock
6943 #. type: textblock
6944 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6945 msgid ""
6946 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6947 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6948 msgstr ""
6949
6950 # type: textblock
6951 #. type: textblock
6952 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6953 msgid ""
6954 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6955 "evaluates to something which is not a nodeset."
6956 msgstr ""
6957
6958 # type: =head2
6959 #. type: =head2
6960 #: ../src/guestfs-actions.pod:348
6961 msgid "guestfs_aug_get"
6962 msgstr ""
6963
6964 # type: verbatim
6965 #. type: verbatim
6966 #: ../src/guestfs-actions.pod:350
6967 #, no-wrap
6968 msgid ""
6969 " char *\n"
6970 " guestfs_aug_get (guestfs_h *g,\n"
6971 "                  const char *augpath);\n"
6972 "\n"
6973 msgstr ""
6974
6975 # type: textblock
6976 #. type: textblock
6977 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
6978 msgid ""
6979 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6980 "node, the C<value> is returned."
6981 msgstr ""
6982
6983 # type: textblock
6984 #. type: textblock
6985 #: ../src/guestfs-actions.pod:357 ../src/guestfs-actions.pod:857
6986 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:935
6987 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1054
6988 #: ../src/guestfs-actions.pod:1184 ../src/guestfs-actions.pod:1201
6989 #: ../src/guestfs-actions.pod:1220 ../src/guestfs-actions.pod:1349
6990 #: ../src/guestfs-actions.pod:1540 ../src/guestfs-actions.pod:1652
6991 #: ../src/guestfs-actions.pod:1815 ../src/guestfs-actions.pod:1832
6992 #: ../src/guestfs-actions.pod:1899 ../src/guestfs-actions.pod:1933
6993 #: ../src/guestfs-actions.pod:1954 ../src/guestfs-actions.pod:2124
6994 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2523
6995 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2675
6996 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2809
6997 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2864
6998 #: ../src/guestfs-actions.pod:2901 ../src/guestfs-actions.pod:2961
6999 #: ../src/guestfs-actions.pod:2984 ../src/guestfs-actions.pod:3551
7000 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:4071
7001 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4926
7002 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5289
7003 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5516
7004 #: ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6144
7005 #: ../src/guestfs-actions.pod:6161 ../src/guestfs-actions.pod:6185
7006 #: ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6878
7007 #: ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:7076
7008 #: ../src/guestfs-actions.pod:7348
7009 msgid ""
7010 "This function returns a string, or NULL on error.  I<The caller must free "
7011 "the returned string after use>."
7012 msgstr ""
7013
7014 # type: =head2
7015 #. type: =head2
7016 #: ../src/guestfs-actions.pod:362
7017 msgid "guestfs_aug_init"
7018 msgstr ""
7019
7020 # type: verbatim
7021 #. type: verbatim
7022 #: ../src/guestfs-actions.pod:364
7023 #, no-wrap
7024 msgid ""
7025 " int\n"
7026 " guestfs_aug_init (guestfs_h *g,\n"
7027 "                   const char *root,\n"
7028 "                   int flags);\n"
7029 "\n"
7030 msgstr ""
7031
7032 # type: textblock
7033 #. type: textblock
7034 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
7035 msgid ""
7036 "Create a new Augeas handle for editing configuration files.  If there was "
7037 "any previous Augeas handle associated with this guestfs session, then it is "
7038 "closed."
7039 msgstr ""
7040
7041 # type: textblock
7042 #. type: textblock
7043 #: ../src/guestfs-actions.pod:373
7044 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7045 msgstr ""
7046
7047 # type: textblock
7048 #. type: textblock
7049 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
7050 msgid ""
7051 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7052 msgstr ""
7053
7054 # type: textblock
7055 #. type: textblock
7056 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
7057 msgid ""
7058 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7059 "logical I<or> of the following integers:"
7060 msgstr ""
7061
7062 # type: =item
7063 #. type: =item
7064 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
7065 msgid "C<AUG_SAVE_BACKUP> = 1"
7066 msgstr ""
7067
7068 # type: textblock
7069 #. type: textblock
7070 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
7071 msgid "Keep the original file with a C<.augsave> extension."
7072 msgstr ""
7073
7074 # type: =item
7075 #. type: =item
7076 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
7077 msgid "C<AUG_SAVE_NEWFILE> = 2"
7078 msgstr ""
7079
7080 # type: textblock
7081 #. type: textblock
7082 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
7083 msgid ""
7084 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7085 "original.  Overrides C<AUG_SAVE_BACKUP>."
7086 msgstr ""
7087
7088 # type: =item
7089 #. type: =item
7090 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
7091 msgid "C<AUG_TYPE_CHECK> = 4"
7092 msgstr ""
7093
7094 # type: textblock
7095 #. type: textblock
7096 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
7097 msgid "Typecheck lenses (can be expensive)."
7098 msgstr ""
7099
7100 # type: =item
7101 #. type: =item
7102 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
7103 msgid "C<AUG_NO_STDINC> = 8"
7104 msgstr ""
7105
7106 # type: textblock
7107 #. type: textblock
7108 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
7109 msgid "Do not use standard load path for modules."
7110 msgstr ""
7111
7112 # type: =item
7113 #. type: =item
7114 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
7115 msgid "C<AUG_SAVE_NOOP> = 16"
7116 msgstr ""
7117
7118 # type: textblock
7119 #. type: textblock
7120 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
7121 msgid "Make save a no-op, just record what would have been changed."
7122 msgstr ""
7123
7124 # type: =item
7125 #. type: =item
7126 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
7127 msgid "C<AUG_NO_LOAD> = 32"
7128 msgstr ""
7129
7130 # type: textblock
7131 #. type: textblock
7132 #: ../src/guestfs-actions.pod:408
7133 msgid "Do not load the tree in C<guestfs_aug_init>."
7134 msgstr ""
7135
7136 # type: textblock
7137 #. type: textblock
7138 #: ../src/guestfs-actions.pod:412
7139 msgid "To close the handle, you can call C<guestfs_aug_close>."
7140 msgstr ""
7141
7142 # type: textblock
7143 #. type: textblock
7144 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
7145 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7146 msgstr ""
7147
7148 # type: =head2
7149 #. type: =head2
7150 #: ../src/guestfs-actions.pod:420
7151 msgid "guestfs_aug_insert"
7152 msgstr ""
7153
7154 # type: verbatim
7155 #. type: verbatim
7156 #: ../src/guestfs-actions.pod:422
7157 #, no-wrap
7158 msgid ""
7159 " int\n"
7160 " guestfs_aug_insert (guestfs_h *g,\n"
7161 "                     const char *augpath,\n"
7162 "                     const char *label,\n"
7163 "                     int before);\n"
7164 "\n"
7165 msgstr ""
7166
7167 # type: textblock
7168 #. type: textblock
7169 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
7170 msgid ""
7171 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7172 "or after C<path> (depending on the boolean flag C<before>)."
7173 msgstr ""
7174
7175 # type: textblock
7176 #. type: textblock
7177 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
7178 msgid ""
7179 "C<path> must match exactly one existing node in the tree, and C<label> must "
7180 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7181 msgstr ""
7182
7183 # type: =head2
7184 #. type: =head2
7185 #: ../src/guestfs-actions.pod:440
7186 msgid "guestfs_aug_load"
7187 msgstr ""
7188
7189 # type: verbatim
7190 #. type: verbatim
7191 #: ../src/guestfs-actions.pod:442
7192 #, no-wrap
7193 msgid ""
7194 " int\n"
7195 " guestfs_aug_load (guestfs_h *g);\n"
7196 "\n"
7197 msgstr ""
7198
7199 # type: textblock
7200 #. type: textblock
7201 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
7202 msgid "Load files into the tree."
7203 msgstr ""
7204
7205 # type: textblock
7206 #. type: textblock
7207 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
7208 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7209 msgstr ""
7210
7211 # type: =head2
7212 #. type: =head2
7213 #: ../src/guestfs-actions.pod:454
7214 msgid "guestfs_aug_ls"
7215 msgstr ""
7216
7217 # type: verbatim
7218 #. type: verbatim
7219 #: ../src/guestfs-actions.pod:456
7220 #, no-wrap
7221 msgid ""
7222 " char **\n"
7223 " guestfs_aug_ls (guestfs_h *g,\n"
7224 "                 const char *augpath);\n"
7225 "\n"
7226 msgstr ""
7227
7228 # type: textblock
7229 #. type: textblock
7230 #: ../src/guestfs-actions.pod:460
7231 msgid ""
7232 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7233 "sorting the resulting nodes into alphabetical order."
7234 msgstr ""
7235
7236 # type: textblock
7237 #. type: textblock
7238 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:479
7239 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:1073
7240 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1383
7241 #: ../src/guestfs-actions.pod:1486 ../src/guestfs-actions.pod:1505
7242 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:2196
7243 #: ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:2231
7244 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:2298
7245 #: ../src/guestfs-actions.pod:2369 ../src/guestfs-actions.pod:2418
7246 #: ../src/guestfs-actions.pod:2633 ../src/guestfs-actions.pod:2918
7247 #: ../src/guestfs-actions.pod:3186 ../src/guestfs-actions.pod:3471
7248 #: ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:3638
7249 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4741
7250 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5387
7251 #: ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:6201
7252 #: ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:6317
7253 #: ../src/guestfs-actions.pod:6463 ../src/guestfs-actions.pod:6487
7254 #: ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6989
7255 #: ../src/guestfs-actions.pod:7036 ../src/guestfs-actions.pod:7201
7256 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7305
7257 #: ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7370
7258 #: ../src/guestfs-actions.pod:7389
7259 msgid ""
7260 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7261 ">), or NULL if there was an error.  I<The caller must free the strings and "
7262 "the array after use>."
7263 msgstr ""
7264
7265 # type: textblock
7266 #. type: textblock
7267 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:998
7268 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1421
7269 #: ../src/guestfs-actions.pod:3264 ../src/guestfs-actions.pod:3295
7270 #: ../src/guestfs-actions.pod:3884 ../src/guestfs-actions.pod:3934
7271 #: ../src/guestfs-actions.pod:4121 ../src/guestfs-actions.pod:4154
7272 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4745
7273 #: ../src/guestfs-actions.pod:5202 ../src/guestfs-actions.pod:5597
7274 #: ../src/guestfs-actions.pod:5611 ../src/guestfs-actions.pod:5623
7275 #: ../src/guestfs-actions.pod:6063 ../src/guestfs-actions.pod:6701
7276 #: ../src/guestfs-actions.pod:6714 ../src/guestfs-actions.pod:6953
7277 #: ../src/guestfs-actions.pod:7189
7278 msgid "(Added in 0.8)"
7279 msgstr ""
7280
7281 # type: =head2
7282 #. type: =head2
7283 #: ../src/guestfs-actions.pod:469
7284 msgid "guestfs_aug_match"
7285 msgstr ""
7286
7287 # type: verbatim
7288 #. type: verbatim
7289 #: ../src/guestfs-actions.pod:471
7290 #, no-wrap
7291 msgid ""
7292 " char **\n"
7293 " guestfs_aug_match (guestfs_h *g,\n"
7294 "                    const char *augpath);\n"
7295 "\n"
7296 msgstr ""
7297
7298 # type: textblock
7299 #. type: textblock
7300 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
7301 msgid ""
7302 "Returns a list of paths which match the path expression C<path>.  The "
7303 "returned paths are sufficiently qualified so that they match exactly one "
7304 "node in the current tree."
7305 msgstr ""
7306
7307 # type: =head2
7308 #. type: =head2
7309 #: ../src/guestfs-actions.pod:485
7310 msgid "guestfs_aug_mv"
7311 msgstr ""
7312
7313 # type: verbatim
7314 #. type: verbatim
7315 #: ../src/guestfs-actions.pod:487
7316 #, no-wrap
7317 msgid ""
7318 " int\n"
7319 " guestfs_aug_mv (guestfs_h *g,\n"
7320 "                 const char *src,\n"
7321 "                 const char *dest);\n"
7322 "\n"
7323 msgstr ""
7324
7325 # type: textblock
7326 #. type: textblock
7327 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
7328 msgid ""
7329 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7330 "C<dest> is overwritten if it exists."
7331 msgstr ""
7332
7333 # type: =head2
7334 #. type: =head2
7335 #: ../src/guestfs-actions.pod:499
7336 msgid "guestfs_aug_rm"
7337 msgstr ""
7338
7339 # type: verbatim
7340 #. type: verbatim
7341 #: ../src/guestfs-actions.pod:501
7342 #, no-wrap
7343 msgid ""
7344 " int\n"
7345 " guestfs_aug_rm (guestfs_h *g,\n"
7346 "                 const char *augpath);\n"
7347 "\n"
7348 msgstr ""
7349
7350 # type: textblock
7351 #. type: textblock
7352 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
7353 msgid "Remove C<path> and all of its children."
7354 msgstr ""
7355
7356 # type: textblock
7357 #. type: textblock
7358 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
7359 msgid "On success this returns the number of entries which were removed."
7360 msgstr ""
7361
7362 # type: =head2
7363 #. type: =head2
7364 #: ../src/guestfs-actions.pod:513
7365 msgid "guestfs_aug_save"
7366 msgstr ""
7367
7368 # type: verbatim
7369 #. type: verbatim
7370 #: ../src/guestfs-actions.pod:515
7371 #, no-wrap
7372 msgid ""
7373 " int\n"
7374 " guestfs_aug_save (guestfs_h *g);\n"
7375 "\n"
7376 msgstr ""
7377
7378 # type: textblock
7379 #. type: textblock
7380 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
7381 msgid "This writes all pending changes to disk."
7382 msgstr ""
7383
7384 # type: textblock
7385 #. type: textblock
7386 #: ../src/guestfs-actions.pod:520
7387 msgid ""
7388 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7389 "are saved."
7390 msgstr ""
7391
7392 # type: =head2
7393 #. type: =head2
7394 #: ../src/guestfs-actions.pod:527
7395 msgid "guestfs_aug_set"
7396 msgstr ""
7397
7398 # type: verbatim
7399 #. type: verbatim
7400 #: ../src/guestfs-actions.pod:529
7401 #, no-wrap
7402 msgid ""
7403 " int\n"
7404 " guestfs_aug_set (guestfs_h *g,\n"
7405 "                  const char *augpath,\n"
7406 "                  const char *val);\n"
7407 "\n"
7408 msgstr ""
7409
7410 # type: textblock
7411 #. type: textblock
7412 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
7413 msgid "Set the value associated with C<path> to C<val>."
7414 msgstr ""
7415
7416 # type: textblock
7417 #. type: textblock
7418 #: ../src/guestfs-actions.pod:536
7419 msgid ""
7420 "In the Augeas API, it is possible to clear a node by setting the value to "
7421 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7422 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7423 msgstr ""
7424
7425 # type: =head2
7426 #. type: =head2
7427 #: ../src/guestfs-actions.pod:545
7428 msgid "guestfs_available"
7429 msgstr ""
7430
7431 # type: verbatim
7432 #. type: verbatim
7433 #: ../src/guestfs-actions.pod:547
7434 #, no-wrap
7435 msgid ""
7436 " int\n"
7437 " guestfs_available (guestfs_h *g,\n"
7438 "                    char *const *groups);\n"
7439 "\n"
7440 msgstr ""
7441
7442 # type: textblock
7443 #. type: textblock
7444 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
7445 msgid ""
7446 "This command is used to check the availability of some groups of "
7447 "functionality in the appliance, which not all builds of the libguestfs "
7448 "appliance will be able to provide."
7449 msgstr ""
7450
7451 # type: textblock
7452 #. type: textblock
7453 #: ../src/guestfs-actions.pod:555
7454 msgid ""
7455 "The libguestfs groups, and the functions that those groups correspond to, "
7456 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7457 "runtime by calling C<guestfs_available_all_groups>."
7458 msgstr ""
7459
7460 # type: textblock
7461 #. type: textblock
7462 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
7463 msgid ""
7464 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7465 "\"]> would check for the availability of the Linux inotify functions and "
7466 "Augeas (configuration file editing) functions."
7467 msgstr ""
7468
7469 # type: textblock
7470 #. type: textblock
7471 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
7472 msgid "The command returns no error if I<all> requested groups are available."
7473 msgstr ""
7474
7475 # type: textblock
7476 #. type: textblock
7477 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
7478 msgid ""
7479 "It fails with an error if one or more of the requested groups is unavailable "
7480 "in the appliance."
7481 msgstr ""
7482
7483 # type: textblock
7484 #. type: textblock
7485 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
7486 msgid ""
7487 "If an unknown group name is included in the list of groups then an error is "
7488 "always returned."
7489 msgstr ""
7490
7491 # type: textblock
7492 #. type: textblock
7493 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
7494 msgid "I<Notes:>"
7495 msgstr ""
7496
7497 # type: textblock
7498 #. type: textblock
7499 #: ../src/guestfs-actions.pod:579
7500 msgid "You must call C<guestfs_launch> before calling this function."
7501 msgstr ""
7502
7503 # type: textblock
7504 #. type: textblock
7505 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
7506 msgid ""
7507 "The reason is because we don't know what groups are supported by the "
7508 "appliance/daemon until it is running and can be queried."
7509 msgstr ""
7510
7511 # type: textblock
7512 #. type: textblock
7513 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
7514 msgid ""
7515 "If a group of functions is available, this does not necessarily mean that "
7516 "they will work.  You still have to check for errors when calling individual "
7517 "API functions even if they are available."
7518 msgstr ""
7519
7520 # type: textblock
7521 #. type: textblock
7522 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
7523 msgid ""
7524 "It is usually the job of distro packagers to build complete functionality "
7525 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7526 "with all requirements satisfied, will support everything."
7527 msgstr ""
7528
7529 # type: textblock
7530 #. type: textblock
7531 #: ../src/guestfs-actions.pod:601
7532 msgid ""
7533 "This call was added in version C<1.0.80>.  In previous versions of "
7534 "libguestfs all you could do would be to speculatively execute a command to "
7535 "find out if the daemon implemented it.  See also C<guestfs_version>."
7536 msgstr ""
7537
7538 # type: textblock
7539 #. type: textblock
7540 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
7541 msgid "(Added in 1.0.80)"
7542 msgstr ""
7543
7544 # type: =head2
7545 #. type: =head2
7546 #: ../src/guestfs-actions.pod:612
7547 msgid "guestfs_available_all_groups"
7548 msgstr ""
7549
7550 # type: verbatim
7551 #. type: verbatim
7552 #: ../src/guestfs-actions.pod:614
7553 #, no-wrap
7554 msgid ""
7555 " char **\n"
7556 " guestfs_available_all_groups (guestfs_h *g);\n"
7557 "\n"
7558 msgstr ""
7559
7560 # type: textblock
7561 #. type: textblock
7562 #: ../src/guestfs-actions.pod:617
7563 msgid ""
7564 "This command returns a list of all optional groups that this daemon knows "
7565 "about.  Note this returns both supported and unsupported groups.  To find "
7566 "out which ones the daemon can actually support you have to call "
7567 "C<guestfs_available> on each member of the returned list."
7568 msgstr ""
7569
7570 # type: textblock
7571 #. type: textblock
7572 #: ../src/guestfs-actions.pod:623
7573 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7574 msgstr ""
7575
7576 # type: textblock
7577 #. type: textblock
7578 #: ../src/guestfs-actions.pod:629
7579 msgid "(Added in 1.3.15)"
7580 msgstr ""
7581
7582 # type: =head2
7583 #. type: =head2
7584 #: ../src/guestfs-actions.pod:631
7585 msgid "guestfs_base64_in"
7586 msgstr ""
7587
7588 # type: verbatim
7589 #. type: verbatim
7590 #: ../src/guestfs-actions.pod:633
7591 #, no-wrap
7592 msgid ""
7593 " int\n"
7594 " guestfs_base64_in (guestfs_h *g,\n"
7595 "                    const char *base64file,\n"
7596 "                    const char *filename);\n"
7597 "\n"
7598 msgstr ""
7599
7600 # type: textblock
7601 #. type: textblock
7602 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
7603 msgid ""
7604 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7605 msgstr ""
7606
7607 # type: textblock
7608 #. type: textblock
7609 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
7610 msgid "(Added in 1.3.5)"
7611 msgstr ""
7612
7613 # type: =head2
7614 #. type: =head2
7615 #: ../src/guestfs-actions.pod:645
7616 msgid "guestfs_base64_out"
7617 msgstr ""
7618
7619 # type: verbatim
7620 #. type: verbatim
7621 #: ../src/guestfs-actions.pod:647
7622 #, no-wrap
7623 msgid ""
7624 " int\n"
7625 " guestfs_base64_out (guestfs_h *g,\n"
7626 "                     const char *filename,\n"
7627 "                     const char *base64file);\n"
7628 "\n"
7629 msgstr ""
7630
7631 # type: textblock
7632 #. type: textblock
7633 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
7634 msgid ""
7635 "This command downloads the contents of C<filename>, writing it out to local "
7636 "file C<base64file> encoded as base64."
7637 msgstr ""
7638
7639 # type: =head2
7640 #. type: =head2
7641 #: ../src/guestfs-actions.pod:659
7642 msgid "guestfs_blockdev_flushbufs"
7643 msgstr ""
7644
7645 # type: verbatim
7646 #. type: verbatim
7647 #: ../src/guestfs-actions.pod:661
7648 #, no-wrap
7649 msgid ""
7650 " int\n"
7651 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7652 "                             const char *device);\n"
7653 "\n"
7654 msgstr ""
7655
7656 # type: textblock
7657 #. type: textblock
7658 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
7659 msgid ""
7660 "This tells the kernel to flush internal buffers associated with C<device>."
7661 msgstr ""
7662
7663 # type: textblock
7664 #. type: textblock
7665 #: ../src/guestfs-actions.pod:668 ../src/guestfs-actions.pod:685
7666 #: ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:716
7667 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:753
7668 #: ../src/guestfs-actions.pod:767 ../src/guestfs-actions.pod:785
7669 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:813
7670 #: ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:459
7671 #: ../fish/guestfish-actions.pod:468 ../fish/guestfish-actions.pod:478
7672 #: ../fish/guestfish-actions.pod:490 ../fish/guestfish-actions.pod:503
7673 #: ../fish/guestfish-actions.pod:511 ../fish/guestfish-actions.pod:522
7674 #: ../fish/guestfish-actions.pod:530 ../fish/guestfish-actions.pod:538
7675 msgid "This uses the L<blockdev(8)> command."
7676 msgstr ""
7677
7678 # type: textblock
7679 #. type: textblock
7680 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:689
7681 #: ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:720
7682 #: ../src/guestfs-actions.pod:738 ../src/guestfs-actions.pod:757
7683 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:789
7684 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:817
7685 msgid "(Added in 0.9.3)"
7686 msgstr ""
7687
7688 # type: =head2
7689 #. type: =head2
7690 #: ../src/guestfs-actions.pod:674
7691 msgid "guestfs_blockdev_getbsz"
7692 msgstr ""
7693
7694 # type: verbatim
7695 #. type: verbatim
7696 #: ../src/guestfs-actions.pod:676
7697 #, no-wrap
7698 msgid ""
7699 " int\n"
7700 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7701 "                          const char *device);\n"
7702 "\n"
7703 msgstr ""
7704
7705 # type: textblock
7706 #. type: textblock
7707 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
7708 msgid "This returns the block size of a device."
7709 msgstr ""
7710
7711 # type: textblock
7712 #. type: textblock
7713 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782
7714 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
7715 msgid ""
7716 "(Note this is different from both I<size in blocks> and I<filesystem block "
7717 "size>)."
7718 msgstr ""
7719
7720 # type: =head2
7721 #. type: =head2
7722 #: ../src/guestfs-actions.pod:691
7723 msgid "guestfs_blockdev_getro"
7724 msgstr ""
7725
7726 # type: verbatim
7727 #. type: verbatim
7728 #: ../src/guestfs-actions.pod:693
7729 #, no-wrap
7730 msgid ""
7731 " int\n"
7732 " guestfs_blockdev_getro (guestfs_h *g,\n"
7733 "                         const char *device);\n"
7734 "\n"
7735 msgstr ""
7736
7737 # type: textblock
7738 #. type: textblock
7739 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
7740 msgid ""
7741 "Returns a boolean indicating if the block device is read-only (true if read-"
7742 "only, false if not)."
7743 msgstr ""
7744
7745 # type: textblock
7746 #. type: textblock
7747 #: ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:1404
7748 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1909
7749 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:1992
7750 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2062
7751 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2110
7752 #: ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3021
7753 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3203
7754 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3232
7755 #: ../src/guestfs-actions.pod:3246 ../src/guestfs-actions.pod:3262
7756 #: ../src/guestfs-actions.pod:3277 ../src/guestfs-actions.pod:3293
7757 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:3320
7758 #: ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3349
7759 #: ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:4890
7760 msgid "This function returns a C truth value on success or -1 on error."
7761 msgstr ""
7762
7763 # type: =head2
7764 #. type: =head2
7765 #: ../src/guestfs-actions.pod:706
7766 msgid "guestfs_blockdev_getsize64"
7767 msgstr ""
7768
7769 # type: verbatim
7770 #. type: verbatim
7771 #: ../src/guestfs-actions.pod:708
7772 #, no-wrap
7773 msgid ""
7774 " int64_t\n"
7775 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7776 "                             const char *device);\n"
7777 "\n"
7778 msgstr ""
7779
7780 # type: textblock
7781 #. type: textblock
7782 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
7783 msgid "This returns the size of the device in bytes."
7784 msgstr ""
7785
7786 # type: textblock
7787 #. type: textblock
7788 #: ../src/guestfs-actions.pod:714
7789 msgid "See also C<guestfs_blockdev_getsz>."
7790 msgstr ""
7791
7792 # type: =head2
7793 #. type: =head2
7794 #: ../src/guestfs-actions.pod:722
7795 msgid "guestfs_blockdev_getss"
7796 msgstr ""
7797
7798 # type: verbatim
7799 #. type: verbatim
7800 #: ../src/guestfs-actions.pod:724
7801 #, no-wrap
7802 msgid ""
7803 " int\n"
7804 " guestfs_blockdev_getss (guestfs_h *g,\n"
7805 "                         const char *device);\n"
7806 "\n"
7807 msgstr ""
7808
7809 # type: textblock
7810 #. type: textblock
7811 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
7812 msgid ""
7813 "This returns the size of sectors on a block device.  Usually 512, but can be "
7814 "larger for modern devices."
7815 msgstr ""
7816
7817 # type: textblock
7818 #. type: textblock
7819 #: ../src/guestfs-actions.pod:731
7820 msgid ""
7821 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7822 "that)."
7823 msgstr ""
7824
7825 # type: =head2
7826 #. type: =head2
7827 #: ../src/guestfs-actions.pod:740
7828 msgid "guestfs_blockdev_getsz"
7829 msgstr ""
7830
7831 # type: verbatim
7832 #. type: verbatim
7833 #: ../src/guestfs-actions.pod:742
7834 #, no-wrap
7835 msgid ""
7836 " int64_t\n"
7837 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7838 "                         const char *device);\n"
7839 "\n"
7840 msgstr ""
7841
7842 # type: textblock
7843 #. type: textblock
7844 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
7845 msgid ""
7846 "This returns the size of the device in units of 512-byte sectors (even if "
7847 "the sectorsize isn't 512 bytes ... weird)."
7848 msgstr ""
7849
7850 # type: textblock
7851 #. type: textblock
7852 #: ../src/guestfs-actions.pod:749
7853 msgid ""
7854 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7855 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7856 msgstr ""
7857
7858 # type: =head2
7859 #. type: =head2
7860 #: ../src/guestfs-actions.pod:759
7861 msgid "guestfs_blockdev_rereadpt"
7862 msgstr ""
7863
7864 # type: verbatim
7865 #. type: verbatim
7866 #: ../src/guestfs-actions.pod:761
7867 #, no-wrap
7868 msgid ""
7869 " int\n"
7870 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7871 "                            const char *device);\n"
7872 "\n"
7873 msgstr ""
7874
7875 # type: textblock
7876 #. type: textblock
7877 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
7878 msgid "Reread the partition table on C<device>."
7879 msgstr ""
7880
7881 # type: =head2
7882 #. type: =head2
7883 #: ../src/guestfs-actions.pod:773
7884 msgid "guestfs_blockdev_setbsz"
7885 msgstr ""
7886
7887 # type: verbatim
7888 #. type: verbatim
7889 #: ../src/guestfs-actions.pod:775
7890 #, no-wrap
7891 msgid ""
7892 " int\n"
7893 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7894 "                          const char *device,\n"
7895 "                          int blocksize);\n"
7896 "\n"
7897 msgstr ""
7898
7899 # type: textblock
7900 #. type: textblock
7901 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
7902 msgid "This sets the block size of a device."
7903 msgstr ""
7904
7905 # type: =head2
7906 #. type: =head2
7907 #: ../src/guestfs-actions.pod:791
7908 msgid "guestfs_blockdev_setro"
7909 msgstr ""
7910
7911 # type: verbatim
7912 #. type: verbatim
7913 #: ../src/guestfs-actions.pod:793
7914 #, no-wrap
7915 msgid ""
7916 " int\n"
7917 " guestfs_blockdev_setro (guestfs_h *g,\n"
7918 "                         const char *device);\n"
7919 "\n"
7920 msgstr ""
7921
7922 # type: textblock
7923 #. type: textblock
7924 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
7925 msgid "Sets the block device named C<device> to read-only."
7926 msgstr ""
7927
7928 # type: =head2
7929 #. type: =head2
7930 #: ../src/guestfs-actions.pod:805
7931 msgid "guestfs_blockdev_setrw"
7932 msgstr ""
7933
7934 # type: verbatim
7935 #. type: verbatim
7936 #: ../src/guestfs-actions.pod:807
7937 #, no-wrap
7938 msgid ""
7939 " int\n"
7940 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7941 "                         const char *device);\n"
7942 "\n"
7943 msgstr ""
7944
7945 # type: textblock
7946 #. type: textblock
7947 #: ../src/guestfs-actions.pod:811 ../fish/guestfish-actions.pod:536
7948 msgid "Sets the block device named C<device> to read-write."
7949 msgstr ""
7950
7951 # type: =head2
7952 #. type: =head2
7953 #: ../src/guestfs-actions.pod:819
7954 msgid "guestfs_case_sensitive_path"
7955 msgstr ""
7956
7957 # type: verbatim
7958 #. type: verbatim
7959 #: ../src/guestfs-actions.pod:821
7960 #, no-wrap
7961 msgid ""
7962 " char *\n"
7963 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7964 "                              const char *path);\n"
7965 "\n"
7966 msgstr ""
7967
7968 # type: textblock
7969 #. type: textblock
7970 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
7971 msgid ""
7972 "This can be used to resolve case insensitive paths on a filesystem which is "
7973 "case sensitive.  The use case is to resolve paths which you have read from "
7974 "Windows configuration files or the Windows Registry, to the true path."
7975 msgstr ""
7976
7977 # type: textblock
7978 #. type: textblock
7979 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
7980 msgid ""
7981 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7982 "(and probably others), which is that although the underlying filesystem is "
7983 "case-insensitive, the driver exports the filesystem to Linux as case-"
7984 "sensitive."
7985 msgstr ""
7986
7987 # type: textblock
7988 #. type: textblock
7989 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
7990 msgid ""
7991 "One consequence of this is that special directories such as C<c:\\windows> "
7992 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7993 "precise details of how they were created.  In Windows itself this would not "
7994 "be a problem."
7995 msgstr ""
7996
7997 # type: textblock
7998 #. type: textblock
7999 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
8000 msgid ""
8001 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8002 "#posixfilenames1>"
8003 msgstr ""
8004
8005 # type: textblock
8006 #. type: textblock
8007 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
8008 msgid ""
8009 "This function resolves the true case of each element in the path and returns "
8010 "the case-sensitive path."
8011 msgstr ""
8012
8013 # type: textblock
8014 #. type: textblock
8015 #: ../src/guestfs-actions.pod:847
8016 msgid ""
8017 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8018 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8019 "how the directories were originally created under Windows)."
8020 msgstr ""
8021
8022 # type: textblock
8023 #. type: textblock
8024 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
8025 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8026 msgstr ""
8027
8028 # type: textblock
8029 #. type: textblock
8030 #: ../src/guestfs-actions.pod:855
8031 msgid "See also C<guestfs_realpath>."
8032 msgstr ""
8033
8034 # type: textblock
8035 #. type: textblock
8036 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6881
8037 msgid "(Added in 1.0.75)"
8038 msgstr ""
8039
8040 # type: =head2
8041 #. type: =head2
8042 #: ../src/guestfs-actions.pod:862
8043 msgid "guestfs_cat"
8044 msgstr ""
8045
8046 # type: verbatim
8047 #. type: verbatim
8048 #: ../src/guestfs-actions.pod:864
8049 #, no-wrap
8050 msgid ""
8051 " char *\n"
8052 " guestfs_cat (guestfs_h *g,\n"
8053 "              const char *path);\n"
8054 "\n"
8055 msgstr ""
8056
8057 # type: textblock
8058 #. type: textblock
8059 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5377
8060 #: ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3601
8061 msgid "Return the contents of the file named C<path>."
8062 msgstr ""
8063
8064 # type: textblock
8065 #. type: textblock
8066 #: ../src/guestfs-actions.pod:870
8067 msgid ""
8068 "Note that this function cannot correctly handle binary files (specifically, "
8069 "files containing C<\\0> character which is treated as end of string).  For "
8070 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8071 "functions which have a more complex interface."
8072 msgstr ""
8073
8074 # type: textblock
8075 #. type: textblock
8076 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:1057
8077 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:1368
8078 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:1490
8079 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:1758
8080 #: ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2235
8081 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:2302
8082 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:2348
8083 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5185
8084 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5342
8085 #: ../src/guestfs-actions.pod:5366 ../src/guestfs-actions.pod:6266
8086 #: ../src/guestfs-actions.pod:6321 ../src/guestfs-actions.pod:6467
8087 #: ../src/guestfs-actions.pod:6491 ../src/guestfs-actions.pod:7153
8088 #: ../src/guestfs-actions.pod:7179 ../src/guestfs-actions.pod:7205
8089 #: ../src/guestfs-actions.pod:7224 ../src/guestfs-actions.pod:7309
8090 #: ../src/guestfs-actions.pod:7328 ../src/guestfs-actions.pod:7374
8091 #: ../src/guestfs-actions.pod:7393 ../fish/guestfish-actions.pod:587
8092 #: ../fish/guestfish-actions.pod:722 ../fish/guestfish-actions.pod:734
8093 #: ../fish/guestfish-actions.pod:910 ../fish/guestfish-actions.pod:920
8094 #: ../fish/guestfish-actions.pod:987 ../fish/guestfish-actions.pod:997
8095 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1493
8096 #: ../fish/guestfish-actions.pod:1503 ../fish/guestfish-actions.pod:1531
8097 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:1556
8098 #: ../fish/guestfish-actions.pod:1575 ../fish/guestfish-actions.pod:3471
8099 #: ../fish/guestfish-actions.pod:3486 ../fish/guestfish-actions.pod:3562
8100 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3594
8101 #: ../fish/guestfish-actions.pod:4220 ../fish/guestfish-actions.pod:4266
8102 #: ../fish/guestfish-actions.pod:4351 ../fish/guestfish-actions.pod:4366
8103 #: ../fish/guestfish-actions.pod:4776 ../fish/guestfish-actions.pod:4794
8104 #: ../fish/guestfish-actions.pod:4811 ../fish/guestfish-actions.pod:4821
8105 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:4879
8106 #: ../fish/guestfish-actions.pod:4908 ../fish/guestfish-actions.pod:4918
8107 msgid ""
8108 "Because of the message protocol, there is a transfer limit of somewhere "
8109 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8110 msgstr ""
8111
8112 # type: textblock
8113 #. type: textblock
8114 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:3475
8115 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3554
8116 #: ../src/guestfs-actions.pod:3642 ../src/guestfs-actions.pod:4047
8117 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:5265
8118 #: ../src/guestfs-actions.pod:5279 ../src/guestfs-actions.pod:7040
8119 #: ../src/guestfs-actions.pod:7054
8120 msgid "(Added in 0.4)"
8121 msgstr ""
8122
8123 # type: =head2
8124 #. type: =head2
8125 #: ../src/guestfs-actions.pod:883
8126 msgid "guestfs_checksum"
8127 msgstr ""
8128
8129 # type: verbatim
8130 #. type: verbatim
8131 #: ../src/guestfs-actions.pod:885
8132 #, no-wrap
8133 msgid ""
8134 " char *\n"
8135 " guestfs_checksum (guestfs_h *g,\n"
8136 "                   const char *csumtype,\n"
8137 "                   const char *path);\n"
8138 "\n"
8139 msgstr ""
8140
8141 # type: textblock
8142 #. type: textblock
8143 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
8144 msgid ""
8145 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8146 msgstr ""
8147
8148 # type: textblock
8149 #. type: textblock
8150 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
8151 msgid ""
8152 "The type of checksum to compute is given by the C<csumtype> parameter which "
8153 "must have one of the following values:"
8154 msgstr ""
8155
8156 # type: =item
8157 #. type: =item
8158 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
8159 msgid "C<crc>"
8160 msgstr ""
8161
8162 # type: textblock
8163 #. type: textblock
8164 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
8165 msgid ""
8166 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8167 "C<cksum> command."
8168 msgstr ""
8169
8170 # type: =item
8171 #. type: =item
8172 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
8173 msgid "C<md5>"
8174 msgstr ""
8175
8176 # type: textblock
8177 #. type: textblock
8178 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
8179 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8180 msgstr ""
8181
8182 # type: =item
8183 #. type: =item
8184 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
8185 msgid "C<sha1>"
8186 msgstr ""
8187
8188 # type: textblock
8189 #. type: textblock
8190 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
8191 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8192 msgstr ""
8193
8194 # type: =item
8195 #. type: =item
8196 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
8197 msgid "C<sha224>"
8198 msgstr ""
8199
8200 # type: textblock
8201 #. type: textblock
8202 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
8203 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8204 msgstr ""
8205
8206 # type: =item
8207 #. type: =item
8208 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
8209 msgid "C<sha256>"
8210 msgstr ""
8211
8212 # type: textblock
8213 #. type: textblock
8214 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
8215 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8216 msgstr ""
8217
8218 # type: =item
8219 #. type: =item
8220 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
8221 msgid "C<sha384>"
8222 msgstr ""
8223
8224 # type: textblock
8225 #. type: textblock
8226 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
8227 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8228 msgstr ""
8229
8230 # type: =item
8231 #. type: =item
8232 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
8233 msgid "C<sha512>"
8234 msgstr ""
8235
8236 # type: textblock
8237 #. type: textblock
8238 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
8239 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8240 msgstr ""
8241
8242 # type: textblock
8243 #. type: textblock
8244 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
8245 msgid "The checksum is returned as a printable string."
8246 msgstr ""
8247
8248 # type: textblock
8249 #. type: textblock
8250 #: ../src/guestfs-actions.pod:931
8251 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8252 msgstr ""
8253
8254 # type: textblock
8255 #. type: textblock
8256 #: ../src/guestfs-actions.pod:933
8257 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8258 msgstr ""
8259
8260 # type: textblock
8261 #. type: textblock
8262 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1246
8263 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:3219
8264 #: ../src/guestfs-actions.pod:3248 ../src/guestfs-actions.pod:3309
8265 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:6737
8266 msgid "(Added in 1.0.2)"
8267 msgstr ""
8268
8269 # type: =head2
8270 #. type: =head2
8271 #: ../src/guestfs-actions.pod:940
8272 msgid "guestfs_checksum_device"
8273 msgstr ""
8274
8275 # type: verbatim
8276 #. type: verbatim
8277 #: ../src/guestfs-actions.pod:942
8278 #, no-wrap
8279 msgid ""
8280 " char *\n"
8281 " guestfs_checksum_device (guestfs_h *g,\n"
8282 "                          const char *csumtype,\n"
8283 "                          const char *device);\n"
8284 "\n"
8285 msgstr ""
8286
8287 # type: textblock
8288 #. type: textblock
8289 #: ../src/guestfs-actions.pod:947
8290 msgid ""
8291 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8292 "device named C<device>.  For the types of checksums supported see the "
8293 "C<guestfs_checksum> command."
8294 msgstr ""
8295
8296 # type: textblock
8297 #. type: textblock
8298 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:4796
8299 #: ../src/guestfs-actions.pod:4855 ../src/guestfs-actions.pod:4892
8300 #: ../src/guestfs-actions.pod:4910 ../src/guestfs-actions.pod:5086
8301 #: ../src/guestfs-actions.pod:6646 ../src/guestfs-actions.pod:6660
8302 #: ../src/guestfs-actions.pod:7066
8303 msgid "(Added in 1.3.2)"
8304 msgstr ""
8305
8306 # type: =head2
8307 #. type: =head2
8308 #: ../src/guestfs-actions.pod:956
8309 msgid "guestfs_checksums_out"
8310 msgstr ""
8311
8312 # type: verbatim
8313 #. type: verbatim
8314 #: ../src/guestfs-actions.pod:958
8315 #, no-wrap
8316 msgid ""
8317 " int\n"
8318 " guestfs_checksums_out (guestfs_h *g,\n"
8319 "                        const char *csumtype,\n"
8320 "                        const char *directory,\n"
8321 "                        const char *sumsfile);\n"
8322 "\n"
8323 msgstr ""
8324
8325 # type: textblock
8326 #. type: textblock
8327 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
8328 msgid ""
8329 "This command computes the checksums of all regular files in C<directory> and "
8330 "then emits a list of those checksums to the local output file C<sumsfile>."
8331 msgstr ""
8332
8333 # type: textblock
8334 #. type: textblock
8335 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
8336 msgid ""
8337 "This can be used for verifying the integrity of a virtual machine.  However "
8338 "to be properly secure you should pay attention to the output of the checksum "
8339 "command (it uses the ones from GNU coreutils).  In particular when the "
8340 "filename is not printable, coreutils uses a special backslash syntax.  For "
8341 "more information, see the GNU coreutils info file."
8342 msgstr ""
8343
8344 # type: textblock
8345 #. type: textblock
8346 #: ../src/guestfs-actions.pod:978
8347 msgid "(Added in 1.3.7)"
8348 msgstr ""
8349
8350 # type: =head2
8351 #. type: =head2
8352 #: ../src/guestfs-actions.pod:980
8353 msgid "guestfs_chmod"
8354 msgstr ""
8355
8356 # type: verbatim
8357 #. type: verbatim
8358 #: ../src/guestfs-actions.pod:982
8359 #, no-wrap
8360 msgid ""
8361 " int\n"
8362 " guestfs_chmod (guestfs_h *g,\n"
8363 "                int mode,\n"
8364 "                const char *path);\n"
8365 "\n"
8366 msgstr ""
8367
8368 # type: textblock
8369 #. type: textblock
8370 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
8371 msgid ""
8372 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8373 "supported."
8374 msgstr ""
8375
8376 # type: textblock
8377 #. type: textblock
8378 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
8379 msgid ""
8380 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8381 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8382 "C<700>."
8383 msgstr ""
8384
8385 # type: textblock
8386 #. type: textblock
8387 #: ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:4298
8388 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4514
8389 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:676
8390 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:3046
8391 #: ../fish/guestfish-actions.pod:3056 ../fish/guestfish-actions.pod:3066
8392 msgid "The mode actually set is affected by the umask."
8393 msgstr ""
8394
8395 # type: =head2
8396 #. type: =head2
8397 #: ../src/guestfs-actions.pod:1000
8398 msgid "guestfs_chown"
8399 msgstr ""
8400
8401 # type: verbatim
8402 #. type: verbatim
8403 #: ../src/guestfs-actions.pod:1002
8404 #, no-wrap
8405 msgid ""
8406 " int\n"
8407 " guestfs_chown (guestfs_h *g,\n"
8408 "                int owner,\n"
8409 "                int group,\n"
8410 "                const char *path);\n"
8411 "\n"
8412 msgstr ""
8413
8414 # type: textblock
8415 #. type: textblock
8416 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
8417 msgid "Change the file owner to C<owner> and group to C<group>."
8418 msgstr ""
8419
8420 # type: textblock
8421 #. type: textblock
8422 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3406
8423 #: ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2375
8424 msgid ""
8425 "Only numeric uid and gid are supported.  If you want to use names, you will "
8426 "need to locate and parse the password file yourself (Augeas support makes "
8427 "this relatively easy)."
8428 msgstr ""
8429
8430 # type: =head2
8431 #. type: =head2
8432 #: ../src/guestfs-actions.pod:1018
8433 msgid "guestfs_command"
8434 msgstr ""
8435
8436 # type: verbatim
8437 #. type: verbatim
8438 #: ../src/guestfs-actions.pod:1020
8439 #, no-wrap
8440 msgid ""
8441 " char *\n"
8442 " guestfs_command (guestfs_h *g,\n"
8443 "                  char *const *arguments);\n"
8444 "\n"
8445 msgstr ""
8446
8447 # type: textblock
8448 #. type: textblock
8449 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
8450 msgid ""
8451 "This call runs a command from the guest filesystem.  The filesystem must be "
8452 "mounted, and must contain a compatible operating system (ie. something "
8453 "Linux, with the same or compatible processor architecture)."
8454 msgstr ""
8455
8456 # type: textblock
8457 #. type: textblock
8458 #: ../src/guestfs-actions.pod:1029
8459 msgid ""
8460 "The single parameter is an argv-style list of arguments.  The first element "
8461 "is the name of the program to run.  Subsequent elements are parameters.  The "
8462 "list must be non-empty (ie. must contain a program name).  Note that the "
8463 "command runs directly, and is I<not> invoked via the shell (see "
8464 "C<guestfs_sh>)."
8465 msgstr ""
8466
8467 # type: textblock
8468 #. type: textblock
8469 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
8470 msgid "The return value is anything printed to I<stdout> by the command."
8471 msgstr ""
8472
8473 # type: textblock
8474 #. type: textblock
8475 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
8476 msgid ""
8477 "If the command returns a non-zero exit status, then this function returns an "
8478 "error message.  The error message string is the content of I<stderr> from "
8479 "the command."
8480 msgstr ""
8481
8482 # type: textblock
8483 #. type: textblock
8484 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
8485 msgid ""
8486 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8487 "bin>.  If you require a program from another location, you should provide "
8488 "the full path in the first parameter."
8489 msgstr ""
8490
8491 # type: textblock
8492 #. type: textblock
8493 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
8494 msgid ""
8495 "Shared libraries and data files required by the program must be available on "
8496 "filesystems which are mounted in the correct places.  It is the caller's "
8497 "responsibility to ensure all filesystems that are needed are mounted at the "
8498 "right locations."
8499 msgstr ""
8500
8501 # type: textblock
8502 #. type: textblock
8503 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080
8504 #: ../src/guestfs-actions.pod:1543
8505 msgid "(Added in 0.9.1)"
8506 msgstr ""
8507
8508 # type: =head2
8509 #. type: =head2
8510 #: ../src/guestfs-actions.pod:1062
8511 msgid "guestfs_command_lines"
8512 msgstr ""
8513
8514 # type: verbatim
8515 #. type: verbatim
8516 #: ../src/guestfs-actions.pod:1064
8517 #, no-wrap
8518 msgid ""
8519 " char **\n"
8520 " guestfs_command_lines (guestfs_h *g,\n"
8521 "                        char *const *arguments);\n"
8522 "\n"
8523 msgstr ""
8524
8525 # type: textblock
8526 #. type: textblock
8527 #: ../src/guestfs-actions.pod:1068
8528 msgid ""
8529 "This is the same as C<guestfs_command>, but splits the result into a list of "
8530 "lines."
8531 msgstr ""
8532
8533 # type: textblock
8534 #. type: textblock
8535 #: ../src/guestfs-actions.pod:1071
8536 msgid "See also: C<guestfs_sh_lines>"
8537 msgstr ""
8538
8539 # type: =head2
8540 #. type: =head2
8541 #: ../src/guestfs-actions.pod:1082
8542 msgid "guestfs_config"
8543 msgstr ""
8544
8545 # type: verbatim
8546 #. type: verbatim
8547 #: ../src/guestfs-actions.pod:1084
8548 #, no-wrap
8549 msgid ""
8550 " int\n"
8551 " guestfs_config (guestfs_h *g,\n"
8552 "                 const char *qemuparam,\n"
8553 "                 const char *qemuvalue);\n"
8554 "\n"
8555 msgstr ""
8556
8557 # type: textblock
8558 #. type: textblock
8559 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
8560 msgid ""
8561 "This can be used to add arbitrary qemu command line parameters of the form "
8562 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8563 "setting some parameters which would interfere with parameters that we use."
8564 msgstr ""
8565
8566 # type: textblock
8567 #. type: textblock
8568 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
8569 msgid "The first character of C<param> string must be a C<-> (dash)."
8570 msgstr ""
8571
8572 # type: textblock
8573 #. type: textblock
8574 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
8575 msgid "C<value> can be NULL."
8576 msgstr ""
8577
8578 # type: =head2
8579 #. type: =head2
8580 #: ../src/guestfs-actions.pod:1102
8581 msgid "guestfs_copy_size"
8582 msgstr ""
8583
8584 # type: verbatim
8585 #. type: verbatim
8586 #: ../src/guestfs-actions.pod:1104
8587 #, no-wrap
8588 msgid ""
8589 " int\n"
8590 " guestfs_copy_size (guestfs_h *g,\n"
8591 "                    const char *src,\n"
8592 "                    const char *dest,\n"
8593 "                    int64_t size);\n"
8594 "\n"
8595 msgstr ""
8596
8597 # type: textblock
8598 #. type: textblock
8599 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
8600 msgid ""
8601 "This command copies exactly C<size> bytes from one source device or file "
8602 "C<src> to another destination device or file C<dest>."
8603 msgstr ""
8604
8605 # type: textblock
8606 #. type: textblock
8607 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
8608 msgid ""
8609 "Note this will fail if the source is too short or if the destination is not "
8610 "large enough."
8611 msgstr ""
8612
8613 # type: textblock
8614 #. type: textblock
8615 #: ../src/guestfs-actions.pod:1118 ../src/guestfs-actions.pod:1241
8616 #: ../src/guestfs-actions.pod:1272 ../src/guestfs-actions.pod:1692
8617 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:6732
8618 #: ../src/guestfs-actions.pod:6766 ../src/guestfs-actions.pod:7245
8619 #: ../src/guestfs-actions.pod:7264
8620 msgid ""
8621 "This long-running command can generate progress notification messages so "
8622 "that the caller can display a progress bar or indicator.  To receive these "
8623 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
8624 "guestfs_set_progress_callback>."
8625 msgstr ""
8626
8627 # type: textblock
8628 #. type: textblock
8629 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:4074
8630 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:6973
8631 #: ../src/guestfs-actions.pod:6993 ../src/guestfs-actions.pod:7079
8632 msgid "(Added in 1.0.87)"
8633 msgstr ""
8634
8635 # type: =head2
8636 #. type: =head2
8637 #: ../src/guestfs-actions.pod:1125
8638 msgid "guestfs_cp"
8639 msgstr ""
8640
8641 # type: verbatim
8642 #. type: verbatim
8643 #: ../src/guestfs-actions.pod:1127
8644 #, no-wrap
8645 msgid ""
8646 " int\n"
8647 " guestfs_cp (guestfs_h *g,\n"
8648 "             const char *src,\n"
8649 "             const char *dest);\n"
8650 "\n"
8651 msgstr ""
8652
8653 # type: textblock
8654 #. type: textblock
8655 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
8656 msgid ""
8657 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8658 "destination filename or destination directory."
8659 msgstr ""
8660
8661 # type: textblock
8662 #. type: textblock
8663 #: ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1151
8664 #: ../src/guestfs-actions.pod:1223 ../src/guestfs-actions.pod:1297
8665 #: ../src/guestfs-actions.pod:1406 ../src/guestfs-actions.pod:4759
8666 #: ../src/guestfs-actions.pod:5136
8667 msgid "(Added in 1.0.18)"
8668 msgstr ""
8669
8670 # type: =head2
8671 #. type: =head2
8672 #: ../src/guestfs-actions.pod:1139
8673 msgid "guestfs_cp_a"
8674 msgstr ""
8675
8676 # type: verbatim
8677 #. type: verbatim
8678 #: ../src/guestfs-actions.pod:1141
8679 #, no-wrap
8680 msgid ""
8681 " int\n"
8682 " guestfs_cp_a (guestfs_h *g,\n"
8683 "               const char *src,\n"
8684 "               const char *dest);\n"
8685 "\n"
8686 msgstr ""
8687
8688 # type: textblock
8689 #. type: textblock
8690 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
8691 msgid ""
8692 "This copies a file or directory from C<src> to C<dest> recursively using the "
8693 "C<cp -a> command."
8694 msgstr ""
8695
8696 # type: =head2
8697 #. type: =head2
8698 #: ../src/guestfs-actions.pod:1153
8699 msgid "guestfs_dd"
8700 msgstr ""
8701
8702 # type: verbatim
8703 #. type: verbatim
8704 #: ../src/guestfs-actions.pod:1155
8705 #, no-wrap
8706 msgid ""
8707 " int\n"
8708 " guestfs_dd (guestfs_h *g,\n"
8709 "             const char *src,\n"
8710 "             const char *dest);\n"
8711 "\n"
8712 msgstr ""
8713
8714 # type: textblock
8715 #. type: textblock
8716 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
8717 msgid ""
8718 "This command copies from one source device or file C<src> to another "
8719 "destination device or file C<dest>.  Normally you would use this to copy to "
8720 "or from a device or partition, for example to duplicate a filesystem."
8721 msgstr ""
8722
8723 # type: textblock
8724 #. type: textblock
8725 #: ../src/guestfs-actions.pod:1165
8726 msgid ""
8727 "If the destination is a device, it must be as large or larger than the "
8728 "source file or device, otherwise the copy will fail.  This command cannot do "
8729 "partial copies (see C<guestfs_copy_size>)."
8730 msgstr ""
8731
8732 # type: =head2
8733 #. type: =head2
8734 #: ../src/guestfs-actions.pod:1173
8735 msgid "guestfs_df"
8736 msgstr ""
8737
8738 # type: verbatim
8739 #. type: verbatim
8740 #: ../src/guestfs-actions.pod:1175
8741 #, no-wrap
8742 msgid ""
8743 " char *\n"
8744 " guestfs_df (guestfs_h *g);\n"
8745 "\n"
8746 msgstr ""
8747
8748 # type: textblock
8749 #. type: textblock
8750 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
8751 msgid "This command runs the C<df> command to report disk space used."
8752 msgstr ""
8753
8754 # type: textblock
8755 #. type: textblock
8756 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
8757 msgid ""
8758 "This command is mostly useful for interactive sessions.  It is I<not> "
8759 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8760 "from programs."
8761 msgstr ""
8762
8763 # type: textblock
8764 #. type: textblock
8765 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1204
8766 #: ../src/guestfs-actions.pod:1317 ../src/guestfs-actions.pod:2281
8767 #: ../src/guestfs-actions.pod:2305 ../src/guestfs-actions.pod:2373
8768 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4659
8769 #: ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6494
8770 #: ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7125
8771 #: ../src/guestfs-actions.pod:7138
8772 msgid "(Added in 1.0.54)"
8773 msgstr ""
8774
8775 # type: =head2
8776 #. type: =head2
8777 #: ../src/guestfs-actions.pod:1189
8778 msgid "guestfs_df_h"
8779 msgstr ""
8780
8781 # type: verbatim
8782 #. type: verbatim
8783 #: ../src/guestfs-actions.pod:1191
8784 #, no-wrap
8785 msgid ""
8786 " char *\n"
8787 " guestfs_df_h (guestfs_h *g);\n"
8788 "\n"
8789 msgstr ""
8790
8791 # type: textblock
8792 #. type: textblock
8793 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
8794 msgid ""
8795 "This command runs the C<df -h> command to report disk space used in human-"
8796 "readable format."
8797 msgstr ""
8798
8799 # type: =head2
8800 #. type: =head2
8801 #: ../src/guestfs-actions.pod:1206
8802 msgid "guestfs_dmesg"
8803 msgstr ""
8804
8805 # type: verbatim
8806 #. type: verbatim
8807 #: ../src/guestfs-actions.pod:1208
8808 #, no-wrap
8809 msgid ""
8810 " char *\n"
8811 " guestfs_dmesg (guestfs_h *g);\n"
8812 "\n"
8813 msgstr ""
8814
8815 # type: textblock
8816 #. type: textblock
8817 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
8818 msgid ""
8819 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8820 "This is sometimes useful for extended debugging of problems."
8821 msgstr ""
8822
8823 # type: textblock
8824 #. type: textblock
8825 #: ../src/guestfs-actions.pod:1215
8826 msgid ""
8827 "Another way to get the same information is to enable verbose messages with "
8828 "C<guestfs_set_verbose> or by setting the environment variable "
8829 "C<LIBGUESTFS_DEBUG=1> before running the program."
8830 msgstr ""
8831
8832 # type: =head2
8833 #. type: =head2
8834 #: ../src/guestfs-actions.pod:1225
8835 msgid "guestfs_download"
8836 msgstr ""
8837
8838 # type: verbatim
8839 #. type: verbatim
8840 #: ../src/guestfs-actions.pod:1227
8841 #, no-wrap
8842 msgid ""
8843 " int\n"
8844 " guestfs_download (guestfs_h *g,\n"
8845 "                   const char *remotefilename,\n"
8846 "                   const char *filename);\n"
8847 "\n"
8848 msgstr ""
8849
8850 # type: textblock
8851 #. type: textblock
8852 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257
8853 #: ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
8854 msgid ""
8855 "Download file C<remotefilename> and save it as C<filename> on the local "
8856 "machine."
8857 msgstr ""
8858
8859 # type: textblock
8860 #. type: textblock
8861 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6726
8862 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4524
8863 msgid "C<filename> can also be a named pipe."
8864 msgstr ""
8865
8866 # type: textblock
8867 #. type: textblock
8868 #: ../src/guestfs-actions.pod:1237
8869 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8870 msgstr ""
8871
8872 # type: =head2
8873 #. type: =head2
8874 #: ../src/guestfs-actions.pod:1248
8875 msgid "guestfs_download_offset"
8876 msgstr ""
8877
8878 # type: verbatim
8879 #. type: verbatim
8880 #: ../src/guestfs-actions.pod:1250
8881 #, no-wrap
8882 msgid ""
8883 " int\n"
8884 " guestfs_download_offset (guestfs_h *g,\n"
8885 "                          const char *remotefilename,\n"
8886 "                          const char *filename,\n"
8887 "                          int64_t offset,\n"
8888 "                          int64_t size);\n"
8889 "\n"
8890 msgstr ""
8891
8892 # type: textblock
8893 #. type: textblock
8894 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
8895 msgid ""
8896 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8897 "region must be within the file or device)."
8898 msgstr ""
8899
8900 # type: textblock
8901 #. type: textblock
8902 #: ../src/guestfs-actions.pod:1263
8903 msgid ""
8904 "Note that there is no limit on the amount of data that can be downloaded "
8905 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8906 "full amount unless an error occurs."
8907 msgstr ""
8908
8909 # type: textblock
8910 #. type: textblock
8911 #: ../src/guestfs-actions.pod:1268
8912 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8913 msgstr ""
8914
8915 # type: textblock
8916 #. type: textblock
8917 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6771
8918 msgid "(Added in 1.5.17)"
8919 msgstr ""
8920
8921 # type: =head2
8922 #. type: =head2
8923 #: ../src/guestfs-actions.pod:1279
8924 msgid "guestfs_drop_caches"
8925 msgstr ""
8926
8927 # type: verbatim
8928 #. type: verbatim
8929 #: ../src/guestfs-actions.pod:1281
8930 #, no-wrap
8931 msgid ""
8932 " int\n"
8933 " guestfs_drop_caches (guestfs_h *g,\n"
8934 "                      int whattodrop);\n"
8935 "\n"
8936 msgstr ""
8937
8938 # type: textblock
8939 #. type: textblock
8940 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
8941 msgid ""
8942 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8943 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8944 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8945 msgstr ""
8946
8947 # type: textblock
8948 #. type: textblock
8949 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
8950 msgid "Setting C<whattodrop> to 3 should drop everything."
8951 msgstr ""
8952
8953 # type: textblock
8954 #. type: textblock
8955 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
8956 msgid ""
8957 "This automatically calls L<sync(2)> before the operation, so that the "
8958 "maximum guest memory is freed."
8959 msgstr ""
8960
8961 # type: =head2
8962 #. type: =head2
8963 #: ../src/guestfs-actions.pod:1299
8964 msgid "guestfs_du"
8965 msgstr ""
8966
8967 # type: verbatim
8968 #. type: verbatim
8969 #: ../src/guestfs-actions.pod:1301
8970 #, no-wrap
8971 msgid ""
8972 " int64_t\n"
8973 " guestfs_du (guestfs_h *g,\n"
8974 "             const char *path);\n"
8975 "\n"
8976 msgstr ""
8977
8978 # type: textblock
8979 #. type: textblock
8980 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
8981 msgid ""
8982 "This command runs the C<du -s> command to estimate file space usage for "
8983 "C<path>."
8984 msgstr ""
8985
8986 # type: textblock
8987 #. type: textblock
8988 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
8989 msgid ""
8990 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8991 "estimate includes the contents of the directory and all subdirectories "
8992 "(recursively)."
8993 msgstr ""
8994
8995 # type: textblock
8996 #. type: textblock
8997 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
8998 msgid ""
8999 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9000 msgstr ""
9001
9002 # type: =head2
9003 #. type: =head2
9004 #: ../src/guestfs-actions.pod:1319
9005 msgid "guestfs_e2fsck_f"
9006 msgstr ""
9007
9008 # type: verbatim
9009 #. type: verbatim
9010 #: ../src/guestfs-actions.pod:1321
9011 #, no-wrap
9012 msgid ""
9013 " int\n"
9014 " guestfs_e2fsck_f (guestfs_h *g,\n"
9015 "                   const char *device);\n"
9016 "\n"
9017 msgstr ""
9018
9019 # type: textblock
9020 #. type: textblock
9021 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:885
9022 msgid ""
9023 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9024 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
9025 "clean (C<-f>)."
9026 msgstr ""
9027
9028 # type: textblock
9029 #. type: textblock
9030 #: ../src/guestfs-actions.pod:1329
9031 msgid ""
9032 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9033 "Normally you should use C<guestfs_fsck>."
9034 msgstr ""
9035
9036 # type: textblock
9037 #. type: textblock
9038 #: ../src/guestfs-actions.pod:1334
9039 msgid "(Added in 1.0.29)"
9040 msgstr ""
9041
9042 # type: =head2
9043 #. type: =head2
9044 #: ../src/guestfs-actions.pod:1336
9045 msgid "guestfs_echo_daemon"
9046 msgstr ""
9047
9048 # type: verbatim
9049 #. type: verbatim
9050 #: ../src/guestfs-actions.pod:1338
9051 #, no-wrap
9052 msgid ""
9053 " char *\n"
9054 " guestfs_echo_daemon (guestfs_h *g,\n"
9055 "                      char *const *words);\n"
9056 "\n"
9057 msgstr ""
9058
9059 # type: textblock
9060 #. type: textblock
9061 #: ../src/guestfs-actions.pod:1342 ../fish/guestfish-actions.pod:896
9062 msgid ""
9063 "This command concatenates the list of C<words> passed with single spaces "
9064 "between them and returns the resulting string."
9065 msgstr ""
9066
9067 # type: textblock
9068 #. type: textblock
9069 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:899
9070 msgid "You can use this command to test the connection through to the daemon."
9071 msgstr ""
9072
9073 # type: textblock
9074 #. type: textblock
9075 #: ../src/guestfs-actions.pod:1347
9076 msgid "See also C<guestfs_ping_daemon>."
9077 msgstr ""
9078
9079 # type: textblock
9080 #. type: textblock
9081 #: ../src/guestfs-actions.pod:1352 ../src/guestfs-actions.pod:2089
9082 #: ../src/guestfs-actions.pod:5970
9083 msgid "(Added in 1.0.69)"
9084 msgstr ""
9085
9086 # type: =head2
9087 #. type: =head2
9088 #: ../src/guestfs-actions.pod:1354
9089 msgid "guestfs_egrep"
9090 msgstr ""
9091
9092 # type: verbatim
9093 #. type: verbatim
9094 #: ../src/guestfs-actions.pod:1356
9095 #, no-wrap
9096 msgid ""
9097 " char **\n"
9098 " guestfs_egrep (guestfs_h *g,\n"
9099 "                const char *regex,\n"
9100 "                const char *path);\n"
9101 "\n"
9102 msgstr ""
9103
9104 # type: textblock
9105 #. type: textblock
9106 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:907
9107 msgid ""
9108 "This calls the external C<egrep> program and returns the matching lines."
9109 msgstr ""
9110
9111 # type: textblock
9112 #. type: textblock
9113 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1390
9114 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1493
9115 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:2219
9116 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2394
9117 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2422
9118 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2490
9119 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:3567
9120 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3594
9121 #: ../src/guestfs-actions.pod:3608 ../src/guestfs-actions.pod:4594
9122 #: ../src/guestfs-actions.pod:5470 ../src/guestfs-actions.pod:5519
9123 #: ../src/guestfs-actions.pod:6338 ../src/guestfs-actions.pod:6350
9124 #: ../src/guestfs-actions.pod:6363 ../src/guestfs-actions.pod:6376
9125 #: ../src/guestfs-actions.pod:6398 ../src/guestfs-actions.pod:6411
9126 #: ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6437
9127 #: ../src/guestfs-actions.pod:7208 ../src/guestfs-actions.pod:7227
9128 #: ../src/guestfs-actions.pod:7312 ../src/guestfs-actions.pod:7331
9129 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7396
9130 msgid "(Added in 1.0.66)"
9131 msgstr ""
9132
9133 # type: =head2
9134 #. type: =head2
9135 #: ../src/guestfs-actions.pod:1373
9136 msgid "guestfs_egrepi"
9137 msgstr ""
9138
9139 # type: verbatim
9140 #. type: verbatim
9141 #: ../src/guestfs-actions.pod:1375
9142 #, no-wrap
9143 msgid ""
9144 " char **\n"
9145 " guestfs_egrepi (guestfs_h *g,\n"
9146 "                 const char *regex,\n"
9147 "                 const char *path);\n"
9148 "\n"
9149 msgstr ""
9150
9151 # type: textblock
9152 #. type: textblock
9153 #: ../src/guestfs-actions.pod:1380 ../fish/guestfish-actions.pod:917
9154 msgid ""
9155 "This calls the external C<egrep -i> program and returns the matching lines."
9156 msgstr ""
9157
9158 # type: =head2
9159 #. type: =head2
9160 #: ../src/guestfs-actions.pod:1392
9161 msgid "guestfs_equal"
9162 msgstr ""
9163
9164 # type: verbatim
9165 #. type: verbatim
9166 #: ../src/guestfs-actions.pod:1394
9167 #, no-wrap
9168 msgid ""
9169 " int\n"
9170 " guestfs_equal (guestfs_h *g,\n"
9171 "                const char *file1,\n"
9172 "                const char *file2);\n"
9173 "\n"
9174 msgstr ""
9175
9176 # type: textblock
9177 #. type: textblock
9178 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:927
9179 msgid ""
9180 "This compares the two files C<file1> and C<file2> and returns true if their "
9181 "content is exactly equal, or false otherwise."
9182 msgstr ""
9183
9184 # type: textblock
9185 #. type: textblock
9186 #: ../src/guestfs-actions.pod:1402 ../fish/guestfish-actions.pod:930
9187 msgid "The external L<cmp(1)> program is used for the comparison."
9188 msgstr ""
9189
9190 # type: =head2
9191 #. type: =head2
9192 #: ../src/guestfs-actions.pod:1408
9193 msgid "guestfs_exists"
9194 msgstr ""
9195
9196 # type: verbatim
9197 #. type: verbatim
9198 #: ../src/guestfs-actions.pod:1410
9199 #, no-wrap
9200 msgid ""
9201 " int\n"
9202 " guestfs_exists (guestfs_h *g,\n"
9203 "                 const char *path);\n"
9204 "\n"
9205 msgstr ""
9206
9207 # type: textblock
9208 #. type: textblock
9209 #: ../src/guestfs-actions.pod:1414 ../fish/guestfish-actions.pod:936
9210 msgid ""
9211 "This returns C<true> if and only if there is a file, directory (or anything) "
9212 "with the given C<path> name."
9213 msgstr ""
9214
9215 # type: textblock
9216 #. type: textblock
9217 #: ../src/guestfs-actions.pod:1417
9218 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9219 msgstr ""
9220
9221 # type: =head2
9222 #. type: =head2
9223 #: ../src/guestfs-actions.pod:1423
9224 msgid "guestfs_fallocate"
9225 msgstr ""
9226
9227 # type: verbatim
9228 #. type: verbatim
9229 #: ../src/guestfs-actions.pod:1425
9230 #, no-wrap
9231 msgid ""
9232 " int\n"
9233 " guestfs_fallocate (guestfs_h *g,\n"
9234 "                    const char *path,\n"
9235 "                    int len);\n"
9236 "\n"
9237 msgstr ""
9238
9239 # type: textblock
9240 #. type: textblock
9241 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1456
9242 #: ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
9243 msgid ""
9244 "This command preallocates a file (containing zero bytes) named C<path> of "
9245 "size C<len> bytes.  If the file exists already, it is overwritten."
9246 msgstr ""
9247
9248 # type: textblock
9249 #. type: textblock
9250 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:949
9251 msgid ""
9252 "Do not confuse this with the guestfish-specific C<alloc> command which "
9253 "allocates a file in the host and attaches it as a device."
9254 msgstr ""
9255
9256 # type: textblock
9257 #. type: textblock
9258 #: ../src/guestfs-actions.pod:1440 ../fish/guestfish-actions.pod:953
9259 msgid ""
9260 "This function is deprecated.  In new code, use the C<fallocate64> call "
9261 "instead."
9262 msgstr ""
9263
9264 # type: =head2
9265 #. type: =head2
9266 #: ../src/guestfs-actions.pod:1449
9267 msgid "guestfs_fallocate64"
9268 msgstr ""
9269
9270 # type: verbatim
9271 #. type: verbatim
9272 #: ../src/guestfs-actions.pod:1451
9273 #, no-wrap
9274 msgid ""
9275 " int\n"
9276 " guestfs_fallocate64 (guestfs_h *g,\n"
9277 "                      const char *path,\n"
9278 "                      int64_t len);\n"
9279 "\n"
9280 msgstr ""
9281
9282 # type: textblock
9283 #. type: textblock
9284 #: ../src/guestfs-actions.pod:1460
9285 msgid ""
9286 "Note that this call allocates disk blocks for the file.  To create a sparse "
9287 "file use C<guestfs_truncate_size> instead."
9288 msgstr ""
9289
9290 # type: textblock
9291 #. type: textblock
9292 #: ../src/guestfs-actions.pod:1463
9293 msgid ""
9294 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9295 "oversight it only allowed 30 bit lengths to be specified, effectively "
9296 "limiting the maximum size of files created through that call to 1GB."
9297 msgstr ""
9298
9299 # type: textblock
9300 #. type: textblock
9301 #: ../src/guestfs-actions.pod:1468 ../fish/guestfish-actions.pod:976
9302 msgid ""
9303 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9304 "commands which create a file in the host and attach it as a device."
9305 msgstr ""
9306
9307 # type: textblock
9308 #. type: textblock
9309 #: ../src/guestfs-actions.pod:1474
9310 msgid "(Added in 1.3.17)"
9311 msgstr ""
9312
9313 # type: =head2
9314 #. type: =head2
9315 #: ../src/guestfs-actions.pod:1476
9316 msgid "guestfs_fgrep"
9317 msgstr ""
9318
9319 # type: verbatim
9320 #. type: verbatim
9321 #: ../src/guestfs-actions.pod:1478
9322 #, no-wrap
9323 msgid ""
9324 " char **\n"
9325 " guestfs_fgrep (guestfs_h *g,\n"
9326 "                const char *pattern,\n"
9327 "                const char *path);\n"
9328 "\n"
9329 msgstr ""
9330
9331 # type: textblock
9332 #. type: textblock
9333 #: ../src/guestfs-actions.pod:1483 ../fish/guestfish-actions.pod:984
9334 msgid ""
9335 "This calls the external C<fgrep> program and returns the matching lines."
9336 msgstr ""
9337
9338 # type: =head2
9339 #. type: =head2
9340 #: ../src/guestfs-actions.pod:1495
9341 msgid "guestfs_fgrepi"
9342 msgstr ""
9343
9344 # type: verbatim
9345 #. type: verbatim
9346 #: ../src/guestfs-actions.pod:1497
9347 #, no-wrap
9348 msgid ""
9349 " char **\n"
9350 " guestfs_fgrepi (guestfs_h *g,\n"
9351 "                 const char *pattern,\n"
9352 "                 const char *path);\n"
9353 "\n"
9354 msgstr ""
9355
9356 # type: textblock
9357 #. type: textblock
9358 #: ../src/guestfs-actions.pod:1502 ../fish/guestfish-actions.pod:994
9359 msgid ""
9360 "This calls the external C<fgrep -i> program and returns the matching lines."
9361 msgstr ""
9362
9363 # type: =head2
9364 #. type: =head2
9365 #: ../src/guestfs-actions.pod:1514
9366 msgid "guestfs_file"
9367 msgstr ""
9368
9369 # type: verbatim
9370 #. type: verbatim
9371 #: ../src/guestfs-actions.pod:1516
9372 #, no-wrap
9373 msgid ""
9374 " char *\n"
9375 " guestfs_file (guestfs_h *g,\n"
9376 "               const char *path);\n"
9377 "\n"
9378 msgstr ""
9379
9380 # type: textblock
9381 #. type: textblock
9382 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1004
9383 msgid ""
9384 "This call uses the standard L<file(1)> command to determine the type or "
9385 "contents of the file."
9386 msgstr ""
9387
9388 # type: textblock
9389 #. type: textblock
9390 #: ../src/guestfs-actions.pod:1523 ../fish/guestfish-actions.pod:1007
9391 msgid ""
9392 "This call will also transparently look inside various types of compressed "
9393 "file."
9394 msgstr ""
9395
9396 # type: textblock
9397 #. type: textblock
9398 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1010
9399 msgid ""
9400 "The exact command which runs is C<file -zb path>.  Note in particular that "
9401 "the filename is not prepended to the output (the C<-b> option)."
9402 msgstr ""
9403
9404 # type: textblock
9405 #. type: textblock
9406 #: ../src/guestfs-actions.pod:1530
9407 msgid ""
9408 "This command can also be used on C</dev/> devices (and partitions, LV "
9409 "names).  You can for example use this to determine if a device contains a "
9410 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
9411 msgstr ""
9412
9413 # type: textblock
9414 #. type: textblock
9415 #: ../src/guestfs-actions.pod:1535 ../fish/guestfish-actions.pod:1019
9416 msgid ""
9417 "If the C<path> does not begin with C</dev/> then this command only works for "
9418 "the content of regular files.  For other file types (directory, symbolic "
9419 "link etc) it will just return the string C<directory> etc."
9420 msgstr ""
9421
9422 # type: =head2
9423 #. type: =head2
9424 #: ../src/guestfs-actions.pod:1545
9425 msgid "guestfs_file_architecture"
9426 msgstr ""
9427
9428 # type: verbatim
9429 #. type: verbatim
9430 #: ../src/guestfs-actions.pod:1547
9431 #, no-wrap
9432 msgid ""
9433 " char *\n"
9434 " guestfs_file_architecture (guestfs_h *g,\n"
9435 "                            const char *filename);\n"
9436 "\n"
9437 msgstr ""
9438
9439 # type: textblock
9440 #. type: textblock
9441 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1028
9442 msgid ""
9443 "This detects the architecture of the binary C<filename>, and returns it if "
9444 "known."
9445 msgstr ""
9446
9447 # type: textblock
9448 #. type: textblock
9449 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1031
9450 msgid "Currently defined architectures are:"
9451 msgstr ""
9452
9453 # type: =item
9454 #. type: =item
9455 #: ../src/guestfs-actions.pod:1558 ../fish/guestfish-actions.pod:1035
9456 msgid "\"i386\""
9457 msgstr ""
9458
9459 # type: textblock
9460 #. type: textblock
9461 #: ../src/guestfs-actions.pod:1560 ../fish/guestfish-actions.pod:1037
9462 msgid ""
9463 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9464 "irrespective of the precise processor requirements of the binary."
9465 msgstr ""
9466
9467 # type: =item
9468 #. type: =item
9469 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1040
9470 msgid "\"x86_64\""
9471 msgstr ""
9472
9473 # type: textblock
9474 #. type: textblock
9475 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1042
9476 msgid "64 bit x86-64."
9477 msgstr ""
9478
9479 # type: =item
9480 #. type: =item
9481 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1044
9482 msgid "\"sparc\""
9483 msgstr ""
9484
9485 # type: textblock
9486 #. type: textblock
9487 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1046
9488 msgid "32 bit SPARC."
9489 msgstr ""
9490
9491 # type: =item
9492 #. type: =item
9493 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1048
9494 msgid "\"sparc64\""
9495 msgstr ""
9496
9497 # type: textblock
9498 #. type: textblock
9499 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1050
9500 msgid "64 bit SPARC V9 and above."
9501 msgstr ""
9502
9503 # type: =item
9504 #. type: =item
9505 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1052
9506 msgid "\"ia64\""
9507 msgstr ""
9508
9509 # type: textblock
9510 #. type: textblock
9511 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1054
9512 msgid "Intel Itanium."
9513 msgstr ""
9514
9515 # type: =item
9516 #. type: =item
9517 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1056
9518 msgid "\"ppc\""
9519 msgstr ""
9520
9521 # type: textblock
9522 #. type: textblock
9523 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1058
9524 msgid "32 bit Power PC."
9525 msgstr ""
9526
9527 # type: =item
9528 #. type: =item
9529 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1060
9530 msgid "\"ppc64\""
9531 msgstr ""
9532
9533 # type: textblock
9534 #. type: textblock
9535 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1062
9536 msgid "64 bit Power PC."
9537 msgstr ""
9538
9539 # type: textblock
9540 #. type: textblock
9541 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1066
9542 msgid "Libguestfs may return other architecture strings in future."
9543 msgstr ""
9544
9545 # type: textblock
9546 #. type: textblock
9547 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1068
9548 msgid "The function works on at least the following types of files:"
9549 msgstr ""
9550
9551 # type: textblock
9552 #. type: textblock
9553 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1074
9554 msgid "many types of Un*x and Linux binary"
9555 msgstr ""
9556
9557 # type: textblock
9558 #. type: textblock
9559 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1078
9560 msgid "many types of Un*x and Linux shared library"
9561 msgstr ""
9562
9563 # type: textblock
9564 #. type: textblock
9565 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1082
9566 msgid "Windows Win32 and Win64 binaries"
9567 msgstr ""
9568
9569 # type: textblock
9570 #. type: textblock
9571 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1086
9572 msgid "Windows Win32 and Win64 DLLs"
9573 msgstr ""
9574
9575 # type: textblock
9576 #. type: textblock
9577 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1088
9578 msgid "Win32 binaries and DLLs return C<i386>."
9579 msgstr ""
9580
9581 # type: textblock
9582 #. type: textblock
9583 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1090
9584 msgid "Win64 binaries and DLLs return C<x86_64>."
9585 msgstr ""
9586
9587 # type: textblock
9588 #. type: textblock
9589 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1094
9590 msgid "Linux kernel modules"
9591 msgstr ""
9592
9593 # type: textblock
9594 #. type: textblock
9595 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1098
9596 msgid "Linux new-style initrd images"
9597 msgstr ""
9598
9599 # type: textblock
9600 #. type: textblock
9601 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1102
9602 msgid "some non-x86 Linux vmlinuz kernels"
9603 msgstr ""
9604
9605 # type: textblock
9606 #. type: textblock
9607 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1106
9608 msgid "What it can't do currently:"
9609 msgstr ""
9610
9611 # type: textblock
9612 #. type: textblock
9613 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1112
9614 msgid "static libraries (libfoo.a)"
9615 msgstr ""
9616
9617 # type: textblock
9618 #. type: textblock
9619 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1116
9620 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9621 msgstr ""
9622
9623 # type: textblock
9624 #. type: textblock
9625 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1120
9626 msgid "x86 Linux vmlinuz kernels"
9627 msgstr ""
9628
9629 # type: textblock
9630 #. type: textblock
9631 #: ../src/guestfs-actions.pod:1645 ../fish/guestfish-actions.pod:1122
9632 msgid ""
9633 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9634 "compressed code, and are horribly hard to unpack.  If you want to find the "
9635 "architecture of a kernel, use the architecture of the associated initrd or "
9636 "kernel module(s) instead."
9637 msgstr ""
9638
9639 # type: textblock
9640 #. type: textblock
9641 #: ../src/guestfs-actions.pod:1655 ../src/guestfs-actions.pod:1818
9642 #: ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:2526
9643 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2637
9644 #: ../src/guestfs-actions.pod:2725 ../src/guestfs-actions.pod:2746
9645 #: ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2867
9646 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3190
9647 #: ../src/guestfs-actions.pod:3322
9648 msgid "(Added in 1.5.3)"
9649 msgstr ""
9650
9651 # type: =head2
9652 #. type: =head2
9653 #: ../src/guestfs-actions.pod:1657
9654 msgid "guestfs_filesize"
9655 msgstr ""
9656
9657 # type: verbatim
9658 #. type: verbatim
9659 #: ../src/guestfs-actions.pod:1659
9660 #, no-wrap
9661 msgid ""
9662 " int64_t\n"
9663 " guestfs_filesize (guestfs_h *g,\n"
9664 "                   const char *file);\n"
9665 "\n"
9666 msgstr ""
9667
9668 # type: textblock
9669 #. type: textblock
9670 #: ../src/guestfs-actions.pod:1663 ../fish/guestfish-actions.pod:1133
9671 msgid "This command returns the size of C<file> in bytes."
9672 msgstr ""
9673
9674 # type: textblock
9675 #. type: textblock
9676 #: ../src/guestfs-actions.pod:1665
9677 msgid ""
9678 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9679 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9680 "devices, use C<guestfs_blockdev_getsize64>."
9681 msgstr ""
9682
9683 # type: textblock
9684 #. type: textblock
9685 #: ../src/guestfs-actions.pod:1671
9686 msgid "(Added in 1.0.82)"
9687 msgstr ""
9688
9689 # type: =head2
9690 #. type: =head2
9691 #: ../src/guestfs-actions.pod:1673
9692 msgid "guestfs_fill"
9693 msgstr ""
9694
9695 # type: verbatim
9696 #. type: verbatim
9697 #: ../src/guestfs-actions.pod:1675
9698 #, no-wrap
9699 msgid ""
9700 " int\n"
9701 " guestfs_fill (guestfs_h *g,\n"
9702 "               int c,\n"
9703 "               int len,\n"
9704 "               const char *path);\n"
9705 "\n"
9706 msgstr ""
9707
9708 # type: textblock
9709 #. type: textblock
9710 #: ../src/guestfs-actions.pod:1681 ../fish/guestfish-actions.pod:1143
9711 msgid ""
9712 "This command creates a new file called C<path>.  The initial content of the "
9713 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9714 "[0..255]>."
9715 msgstr ""
9716
9717 # type: textblock
9718 #. type: textblock
9719 #: ../src/guestfs-actions.pod:1685
9720 msgid ""
9721 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9722 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9723 "bytes use C<guestfs_fill_pattern>."
9724 msgstr ""
9725
9726 # type: textblock
9727 #. type: textblock
9728 #: ../src/guestfs-actions.pod:1697
9729 msgid "(Added in 1.0.79)"
9730 msgstr ""
9731
9732 # type: =head2
9733 #. type: =head2
9734 #: ../src/guestfs-actions.pod:1699
9735 msgid "guestfs_fill_pattern"
9736 msgstr ""
9737
9738 # type: verbatim
9739 #. type: verbatim
9740 #: ../src/guestfs-actions.pod:1701
9741 #, no-wrap
9742 msgid ""
9743 " int\n"
9744 " guestfs_fill_pattern (guestfs_h *g,\n"
9745 "                       const char *pattern,\n"
9746 "                       int len,\n"
9747 "                       const char *path);\n"
9748 "\n"
9749 msgstr ""
9750
9751 # type: textblock
9752 #. type: textblock
9753 #: ../src/guestfs-actions.pod:1707
9754 msgid ""
9755 "This function is like C<guestfs_fill> except that it creates a new file of "
9756 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9757 "pattern is truncated if necessary to ensure the length of the file is "
9758 "exactly C<len> bytes."
9759 msgstr ""
9760
9761 # type: textblock
9762 #. type: textblock
9763 #: ../src/guestfs-actions.pod:1719
9764 msgid "(Added in 1.3.12)"
9765 msgstr ""
9766
9767 # type: =head2
9768 #. type: =head2
9769 #: ../src/guestfs-actions.pod:1721
9770 msgid "guestfs_find"
9771 msgstr ""
9772
9773 # type: verbatim
9774 #. type: verbatim
9775 #: ../src/guestfs-actions.pod:1723
9776 #, no-wrap
9777 msgid ""
9778 " char **\n"
9779 " guestfs_find (guestfs_h *g,\n"
9780 "               const char *directory);\n"
9781 "\n"
9782 msgstr ""
9783
9784 # type: textblock
9785 #. type: textblock
9786 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1165
9787 msgid ""
9788 "This command lists out all files and directories, recursively, starting at "
9789 "C<directory>.  It is essentially equivalent to running the shell command "
9790 "C<find directory -print> but some post-processing happens on the output, "
9791 "described below."
9792 msgstr ""
9793
9794 # type: textblock
9795 #. type: textblock
9796 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1170
9797 msgid ""
9798 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9799 "structure was:"
9800 msgstr ""
9801
9802 # type: verbatim
9803 #. type: verbatim
9804 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1173
9805 #, no-wrap
9806 msgid ""
9807 " /tmp/a\n"
9808 " /tmp/b\n"
9809 " /tmp/c/d\n"
9810 "\n"
9811 msgstr ""
9812
9813 # type: textblock
9814 #. type: textblock
9815 #: ../src/guestfs-actions.pod:1739
9816 msgid ""
9817 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9818 msgstr ""
9819
9820 # type: verbatim
9821 #. type: verbatim
9822 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1180
9823 #, no-wrap
9824 msgid ""
9825 " a\n"
9826 " b\n"
9827 " c\n"
9828 " c/d\n"
9829 "\n"
9830 msgstr ""
9831
9832 # type: textblock
9833 #. type: textblock
9834 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1185
9835 msgid "If C<directory> is not a directory, then this command returns an error."
9836 msgstr ""
9837
9838 # type: textblock
9839 #. type: textblock
9840 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1188
9841 msgid "The returned list is sorted."
9842 msgstr ""
9843
9844 # type: textblock
9845 #. type: textblock
9846 #: ../src/guestfs-actions.pod:1752
9847 msgid "See also C<guestfs_find0>."
9848 msgstr ""
9849
9850 # type: textblock
9851 #. type: textblock
9852 #: ../src/guestfs-actions.pod:1761 ../src/guestfs-actions.pod:4011
9853 #: ../src/guestfs-actions.pod:5554
9854 msgid "(Added in 1.0.27)"
9855 msgstr ""
9856
9857 # type: =head2
9858 #. type: =head2
9859 #: ../src/guestfs-actions.pod:1763
9860 msgid "guestfs_find0"
9861 msgstr ""
9862
9863 # type: verbatim
9864 #. type: verbatim
9865 #: ../src/guestfs-actions.pod:1765
9866 #, no-wrap
9867 msgid ""
9868 " int\n"
9869 " guestfs_find0 (guestfs_h *g,\n"
9870 "                const char *directory,\n"
9871 "                const char *files);\n"
9872 "\n"
9873 msgstr ""
9874
9875 # type: textblock
9876 #. type: textblock
9877 #: ../src/guestfs-actions.pod:1770 ../fish/guestfish-actions.pod:1199
9878 msgid ""
9879 "This command lists out all files and directories, recursively, starting at "
9880 "C<directory>, placing the resulting list in the external file called "
9881 "C<files>."
9882 msgstr ""
9883
9884 # type: textblock
9885 #. type: textblock
9886 #: ../src/guestfs-actions.pod:1774
9887 msgid ""
9888 "This command works the same way as C<guestfs_find> with the following "
9889 "exceptions:"
9890 msgstr ""
9891
9892 # type: textblock
9893 #. type: textblock
9894 #: ../src/guestfs-actions.pod:1781 ../fish/guestfish-actions.pod:1210
9895 msgid "The resulting list is written to an external file."
9896 msgstr ""
9897
9898 # type: textblock
9899 #. type: textblock
9900 #: ../src/guestfs-actions.pod:1785 ../fish/guestfish-actions.pod:1214
9901 msgid ""
9902 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9903 "L<find(1)> option I<-print0>."
9904 msgstr ""
9905
9906 # type: textblock
9907 #. type: textblock
9908 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1219
9909 msgid "This command is not limited in the number of names that it can return."
9910 msgstr ""
9911
9912 # type: textblock
9913 #. type: textblock
9914 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1224
9915 msgid "The result list is not sorted."
9916 msgstr ""
9917
9918 # type: textblock
9919 #. type: textblock
9920 #: ../src/guestfs-actions.pod:1801
9921 msgid "(Added in 1.0.74)"
9922 msgstr ""
9923
9924 # type: =head2
9925 #. type: =head2
9926 #: ../src/guestfs-actions.pod:1803
9927 msgid "guestfs_findfs_label"
9928 msgstr ""
9929
9930 # type: verbatim
9931 #. type: verbatim
9932 #: ../src/guestfs-actions.pod:1805
9933 #, no-wrap
9934 msgid ""
9935 " char *\n"
9936 " guestfs_findfs_label (guestfs_h *g,\n"
9937 "                       const char *label);\n"
9938 "\n"
9939 msgstr ""
9940
9941 # type: textblock
9942 #. type: textblock
9943 #: ../src/guestfs-actions.pod:1809 ../fish/guestfish-actions.pod:1234
9944 msgid ""
9945 "This command searches the filesystems and returns the one which has the "
9946 "given label.  An error is returned if no such filesystem can be found."
9947 msgstr ""
9948
9949 # type: textblock
9950 #. type: textblock
9951 #: ../src/guestfs-actions.pod:1813
9952 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9953 msgstr ""
9954
9955 # type: =head2
9956 #. type: =head2
9957 #: ../src/guestfs-actions.pod:1820
9958 msgid "guestfs_findfs_uuid"
9959 msgstr ""
9960
9961 # type: verbatim
9962 #. type: verbatim
9963 #: ../src/guestfs-actions.pod:1822
9964 #, no-wrap
9965 msgid ""
9966 " char *\n"
9967 " guestfs_findfs_uuid (guestfs_h *g,\n"
9968 "                      const char *uuid);\n"
9969 "\n"
9970 msgstr ""
9971
9972 # type: textblock
9973 #. type: textblock
9974 #: ../src/guestfs-actions.pod:1826 ../fish/guestfish-actions.pod:1244
9975 msgid ""
9976 "This command searches the filesystems and returns the one which has the "
9977 "given UUID.  An error is returned if no such filesystem can be found."
9978 msgstr ""
9979
9980 # type: textblock
9981 #. type: textblock
9982 #: ../src/guestfs-actions.pod:1830
9983 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9984 msgstr ""
9985
9986 # type: =head2
9987 #. type: =head2
9988 #: ../src/guestfs-actions.pod:1837
9989 msgid "guestfs_fsck"
9990 msgstr ""
9991
9992 # type: verbatim
9993 #. type: verbatim
9994 #: ../src/guestfs-actions.pod:1839
9995 #, no-wrap
9996 msgid ""
9997 " int\n"
9998 " guestfs_fsck (guestfs_h *g,\n"
9999 "               const char *fstype,\n"
10000 "               const char *device);\n"
10001 "\n"
10002 msgstr ""
10003
10004 # type: textblock
10005 #. type: textblock
10006 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:1254
10007 msgid ""
10008 "This runs the filesystem checker (fsck) on C<device> which should have "
10009 "filesystem type C<fstype>."
10010 msgstr ""
10011
10012 # type: textblock
10013 #. type: textblock
10014 #: ../src/guestfs-actions.pod:1847 ../fish/guestfish-actions.pod:1257
10015 msgid ""
10016 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10017 "codes from C<fsck>."
10018 msgstr ""
10019
10020 # type: textblock
10021 #. type: textblock
10022 #: ../src/guestfs-actions.pod:1856 ../fish/guestfish-actions.pod:1266
10023 msgid "Multiple status codes can be summed together."
10024 msgstr ""
10025
10026 # type: textblock
10027 #. type: textblock
10028 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1270
10029 msgid ""
10030 "A non-zero return code can mean \"success\", for example if errors have been "
10031 "corrected on the filesystem."
10032 msgstr ""
10033
10034 # type: textblock
10035 #. type: textblock
10036 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1275
10037 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10038 msgstr ""
10039
10040 # type: textblock
10041 #. type: textblock
10042 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1280
10043 msgid ""
10044 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10045 msgstr ""
10046
10047 # type: textblock
10048 #. type: textblock
10049 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:7250
10050 msgid "(Added in 1.0.16)"
10051 msgstr ""
10052
10053 # type: =head2
10054 #. type: =head2
10055 #: ../src/guestfs-actions.pod:1876
10056 msgid "guestfs_get_append"
10057 msgstr ""
10058
10059 # type: verbatim
10060 #. type: verbatim
10061 #: ../src/guestfs-actions.pod:1878
10062 #, no-wrap
10063 msgid ""
10064 " const char *\n"
10065 " guestfs_get_append (guestfs_h *g);\n"
10066 "\n"
10067 msgstr ""
10068
10069 # type: textblock
10070 #. type: textblock
10071 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1286
10072 msgid ""
10073 "Return the additional kernel options which are added to the guest kernel "
10074 "command line."
10075 msgstr ""
10076
10077 # type: textblock
10078 #. type: textblock
10079 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1289
10080 msgid "If C<NULL> then no options are added."
10081 msgstr ""
10082
10083 # type: textblock
10084 #. type: textblock
10085 #: ../src/guestfs-actions.pod:1886
10086 msgid ""
10087 "This function returns a string which may be NULL.  There is no way to return "
10088 "an error from this function.  The string is owned by the guest handle and "
10089 "must I<not> be freed."
10090 msgstr ""
10091
10092 # type: textblock
10093 #. type: textblock
10094 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:5232
10095 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6112
10096 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6147
10097 #: ../src/guestfs-actions.pod:6164 ../src/guestfs-actions.pod:6921
10098 #: ../src/guestfs-actions.pod:6939 ../src/guestfs-actions.pod:7293
10099 msgid "(Added in 1.0.26)"
10100 msgstr ""
10101
10102 #. type: =head2
10103 #: ../src/guestfs-actions.pod:1892
10104 msgid "guestfs_get_attach_method"
10105 msgstr ""
10106
10107 #. type: verbatim
10108 #: ../src/guestfs-actions.pod:1894
10109 #, no-wrap
10110 msgid ""
10111 " char *\n"
10112 " guestfs_get_attach_method (guestfs_h *g);\n"
10113 "\n"
10114 msgstr ""
10115
10116 #. type: textblock
10117 #: ../src/guestfs-actions.pod:1897
10118 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10119 msgstr ""
10120
10121 # type: =head2
10122 #. type: =head2
10123 #: ../src/guestfs-actions.pod:1902
10124 msgid "guestfs_get_autosync"
10125 msgstr ""
10126
10127 # type: verbatim
10128 #. type: verbatim
10129 #: ../src/guestfs-actions.pod:1904
10130 #, no-wrap
10131 msgid ""
10132 " int\n"
10133 " guestfs_get_autosync (guestfs_h *g);\n"
10134 "\n"
10135 msgstr ""
10136
10137 # type: textblock
10138 #. type: textblock
10139 #: ../src/guestfs-actions.pod:1907 ../fish/guestfish-actions.pod:1301
10140 msgid "Get the autosync flag."
10141 msgstr ""
10142
10143 # type: =head2
10144 #. type: =head2
10145 #: ../src/guestfs-actions.pod:1913
10146 msgid "guestfs_get_direct"
10147 msgstr ""
10148
10149 # type: verbatim
10150 #. type: verbatim
10151 #: ../src/guestfs-actions.pod:1915
10152 #, no-wrap
10153 msgid ""
10154 " int\n"
10155 " guestfs_get_direct (guestfs_h *g);\n"
10156 "\n"
10157 msgstr ""
10158
10159 # type: textblock
10160 #. type: textblock
10161 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1307
10162 msgid "Return the direct appliance mode flag."
10163 msgstr ""
10164
10165 # type: textblock
10166 #. type: textblock
10167 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:5781
10168 msgid "(Added in 1.0.72)"
10169 msgstr ""
10170
10171 # type: =head2
10172 #. type: =head2
10173 #: ../src/guestfs-actions.pod:1924
10174 msgid "guestfs_get_e2label"
10175 msgstr ""
10176
10177 # type: verbatim
10178 #. type: verbatim
10179 #: ../src/guestfs-actions.pod:1926
10180 #, no-wrap
10181 msgid ""
10182 " char *\n"
10183 " guestfs_get_e2label (guestfs_h *g,\n"
10184 "                      const char *device);\n"
10185 "\n"
10186 msgstr ""
10187
10188 # type: textblock
10189 #. type: textblock
10190 #: ../src/guestfs-actions.pod:1930 ../fish/guestfish-actions.pod:1313
10191 msgid ""
10192 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10193 msgstr ""
10194
10195 # type: textblock
10196 #. type: textblock
10197 #: ../src/guestfs-actions.pod:1936 ../fish/guestfish-actions.pod:1316
10198 msgid ""
10199 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10200 msgstr ""
10201
10202 # type: textblock
10203 #. type: textblock
10204 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:1964
10205 #: ../src/guestfs-actions.pod:5799 ../src/guestfs-actions.pod:5818
10206 msgid "(Added in 1.0.15)"
10207 msgstr ""
10208
10209 # type: =head2
10210 #. type: =head2
10211 #: ../src/guestfs-actions.pod:1945
10212 msgid "guestfs_get_e2uuid"
10213 msgstr ""
10214
10215 # type: verbatim
10216 #. type: verbatim
10217 #: ../src/guestfs-actions.pod:1947
10218 #, no-wrap
10219 msgid ""
10220 " char *\n"
10221 " guestfs_get_e2uuid (guestfs_h *g,\n"
10222 "                     const char *device);\n"
10223 "\n"
10224 msgstr ""
10225
10226 # type: textblock
10227 #. type: textblock
10228 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1327
10229 msgid ""
10230 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10231 msgstr ""
10232
10233 # type: textblock
10234 #. type: textblock
10235 #: ../src/guestfs-actions.pod:1957 ../fish/guestfish-actions.pod:1330
10236 msgid ""
10237 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10238 msgstr ""
10239
10240 # type: =head2
10241 #. type: =head2
10242 #: ../src/guestfs-actions.pod:1966
10243 msgid "guestfs_get_memsize"
10244 msgstr ""
10245
10246 # type: verbatim
10247 #. type: verbatim
10248 #: ../src/guestfs-actions.pod:1968
10249 #, no-wrap
10250 msgid ""
10251 " int\n"
10252 " guestfs_get_memsize (guestfs_h *g);\n"
10253 "\n"
10254 msgstr ""
10255
10256 # type: textblock
10257 #. type: textblock
10258 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1341
10259 msgid ""
10260 "This gets the memory size in megabytes allocated to the qemu subprocess."
10261 msgstr ""
10262
10263 # type: textblock
10264 #. type: textblock
10265 #: ../src/guestfs-actions.pod:1974
10266 msgid ""
10267 "If C<guestfs_set_memsize> was not called on this handle, and if "
10268 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10269 "value for memsize."
10270 msgstr ""
10271
10272 # type: textblock
10273 #. type: textblock
10274 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:2059
10275 #: ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5941
10276 #: ../fish/guestfish-actions.pod:1348 ../fish/guestfish-actions.pod:1399
10277 #: ../fish/guestfish-actions.pod:3927 ../fish/guestfish-actions.pod:4014
10278 msgid ""
10279 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10280 msgstr ""
10281
10282 # type: textblock
10283 #. type: textblock
10284 #: ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:4302
10285 #: ../src/guestfs-actions.pod:4499 ../src/guestfs-actions.pod:4518
10286 #: ../src/guestfs-actions.pod:4537 ../src/guestfs-actions.pod:4549
10287 #: ../src/guestfs-actions.pod:4566 ../src/guestfs-actions.pod:4579
10288 #: ../src/guestfs-actions.pod:5457 ../src/guestfs-actions.pod:5839
10289 #: ../src/guestfs-actions.pod:6086 ../src/guestfs-actions.pod:6687
10290 msgid "(Added in 1.0.55)"
10291 msgstr ""
10292
10293 # type: =head2
10294 #. type: =head2
10295 #: ../src/guestfs-actions.pod:1985
10296 msgid "guestfs_get_network"
10297 msgstr ""
10298
10299 # type: verbatim
10300 #. type: verbatim
10301 #: ../src/guestfs-actions.pod:1987
10302 #, no-wrap
10303 msgid ""
10304 " int\n"
10305 " guestfs_get_network (guestfs_h *g);\n"
10306 "\n"
10307 msgstr ""
10308
10309 # type: textblock
10310 #. type: textblock
10311 #: ../src/guestfs-actions.pod:1990 ../fish/guestfish-actions.pod:1355
10312 msgid "This returns the enable network flag."
10313 msgstr ""
10314
10315 # type: textblock
10316 #. type: textblock
10317 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:5858
10318 msgid "(Added in 1.5.4)"
10319 msgstr ""
10320
10321 # type: =head2
10322 #. type: =head2
10323 #: ../src/guestfs-actions.pod:1996
10324 msgid "guestfs_get_path"
10325 msgstr ""
10326
10327 # type: verbatim
10328 #. type: verbatim
10329 #: ../src/guestfs-actions.pod:1998
10330 #, no-wrap
10331 msgid ""
10332 " const char *\n"
10333 " guestfs_get_path (guestfs_h *g);\n"
10334 "\n"
10335 msgstr ""
10336
10337 # type: textblock
10338 #. type: textblock
10339 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1361
10340 msgid "Return the current search path."
10341 msgstr ""
10342
10343 # type: textblock
10344 #. type: textblock
10345 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1363
10346 msgid ""
10347 "This is always non-NULL.  If it wasn't set already, then this will return "
10348 "the default path."
10349 msgstr ""
10350
10351 # type: textblock
10352 #. type: textblock
10353 #: ../src/guestfs-actions.pod:2006 ../src/guestfs-actions.pod:2035
10354 msgid ""
10355 "This function returns a string, or NULL on error.  The string is owned by "
10356 "the guest handle and must I<not> be freed."
10357 msgstr ""
10358
10359 # type: =head2
10360 #. type: =head2
10361 #: ../src/guestfs-actions.pod:2011
10362 msgid "guestfs_get_pid"
10363 msgstr ""
10364
10365 # type: verbatim
10366 #. type: verbatim
10367 #: ../src/guestfs-actions.pod:2013
10368 #, no-wrap
10369 msgid ""
10370 " int\n"
10371 " guestfs_get_pid (guestfs_h *g);\n"
10372 "\n"
10373 msgstr ""
10374
10375 # type: textblock
10376 #. type: textblock
10377 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
10378 msgid ""
10379 "Return the process ID of the qemu subprocess.  If there is no qemu "
10380 "subprocess, then this will return an error."
10381 msgstr ""
10382
10383 # type: textblock
10384 #. type: textblock
10385 #: ../src/guestfs-actions.pod:2019 ../fish/guestfish-actions.pod:1375
10386 msgid "This is an internal call used for debugging and testing."
10387 msgstr ""
10388
10389 # type: textblock
10390 #. type: textblock
10391 #: ../src/guestfs-actions.pod:2023
10392 msgid "(Added in 1.0.56)"
10393 msgstr ""
10394
10395 # type: =head2
10396 #. type: =head2
10397 #: ../src/guestfs-actions.pod:2025
10398 msgid "guestfs_get_qemu"
10399 msgstr ""
10400
10401 # type: verbatim
10402 #. type: verbatim
10403 #: ../src/guestfs-actions.pod:2027
10404 #, no-wrap
10405 msgid ""
10406 " const char *\n"
10407 " guestfs_get_qemu (guestfs_h *g);\n"
10408 "\n"
10409 msgstr ""
10410
10411 # type: textblock
10412 #. type: textblock
10413 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1381
10414 msgid "Return the current qemu binary."
10415 msgstr ""
10416
10417 # type: textblock
10418 #. type: textblock
10419 #: ../src/guestfs-actions.pod:2032 ../fish/guestfish-actions.pod:1383
10420 msgid ""
10421 "This is always non-NULL.  If it wasn't set already, then this will return "
10422 "the default qemu binary name."
10423 msgstr ""
10424
10425 # type: textblock
10426 #. type: textblock
10427 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:5903
10428 msgid "(Added in 1.0.6)"
10429 msgstr ""
10430
10431 # type: =head2
10432 #. type: =head2
10433 #: ../src/guestfs-actions.pod:2040
10434 msgid "guestfs_get_recovery_proc"
10435 msgstr ""
10436
10437 # type: verbatim
10438 #. type: verbatim
10439 #: ../src/guestfs-actions.pod:2042
10440 #, no-wrap
10441 msgid ""
10442 " int\n"
10443 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10444 "\n"
10445 msgstr ""
10446
10447 # type: textblock
10448 #. type: textblock
10449 #: ../src/guestfs-actions.pod:2045 ../fish/guestfish-actions.pod:1390
10450 msgid "Return the recovery process enabled flag."
10451 msgstr ""
10452
10453 # type: textblock
10454 #. type: textblock
10455 #: ../src/guestfs-actions.pod:2049 ../src/guestfs-actions.pod:3412
10456 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:4109
10457 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:5162
10458 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5927
10459 #: ../src/guestfs-actions.pod:6590 ../src/guestfs-actions.pod:6610
10460 #: ../src/guestfs-actions.pod:6802
10461 msgid "(Added in 1.0.77)"
10462 msgstr ""
10463
10464 # type: =head2
10465 #. type: =head2
10466 #: ../src/guestfs-actions.pod:2051
10467 msgid "guestfs_get_selinux"
10468 msgstr ""
10469
10470 # type: verbatim
10471 #. type: verbatim
10472 #: ../src/guestfs-actions.pod:2053
10473 #, no-wrap
10474 msgid ""
10475 " int\n"
10476 " guestfs_get_selinux (guestfs_h *g);\n"
10477 "\n"
10478 msgstr ""
10479
10480 # type: textblock
10481 #. type: textblock
10482 #: ../src/guestfs-actions.pod:2056
10483 msgid ""
10484 "This returns the current setting of the selinux flag which is passed to the "
10485 "appliance at boot time.  See C<guestfs_set_selinux>."
10486 msgstr ""
10487
10488 # type: textblock
10489 #. type: textblock
10490 #: ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:2127
10491 #: ../src/guestfs-actions.pod:5946 ../src/guestfs-actions.pod:6004
10492 msgid "(Added in 1.0.67)"
10493 msgstr ""
10494
10495 # type: =head2
10496 #. type: =head2
10497 #: ../src/guestfs-actions.pod:2066
10498 msgid "guestfs_get_state"
10499 msgstr ""
10500
10501 # type: verbatim
10502 #. type: verbatim
10503 #: ../src/guestfs-actions.pod:2068
10504 #, no-wrap
10505 msgid ""
10506 " int\n"
10507 " guestfs_get_state (guestfs_h *g);\n"
10508 "\n"
10509 msgstr ""
10510
10511 # type: textblock
10512 #. type: textblock
10513 #: ../src/guestfs-actions.pod:2071 ../fish/guestfish-actions.pod:1406
10514 msgid ""
10515 "This returns the current state as an opaque integer.  This is only useful "
10516 "for printing debug and internal error messages."
10517 msgstr ""
10518
10519 # type: textblock
10520 #. type: textblock
10521 #: ../src/guestfs-actions.pod:2074 ../src/guestfs-actions.pod:3215
10522 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3305
10523 #: ../src/guestfs-actions.pod:3332 ../fish/guestfish-actions.pod:1409
10524 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2275
10525 #: ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2329
10526 msgid "For more information on states, see L<guestfs(3)>."
10527 msgstr ""
10528
10529 # type: =head2
10530 #. type: =head2
10531 #: ../src/guestfs-actions.pod:2080
10532 msgid "guestfs_get_trace"
10533 msgstr ""
10534
10535 # type: verbatim
10536 #. type: verbatim
10537 #: ../src/guestfs-actions.pod:2082
10538 #, no-wrap
10539 msgid ""
10540 " int\n"
10541 " guestfs_get_trace (guestfs_h *g);\n"
10542 "\n"
10543 msgstr ""
10544
10545 # type: textblock
10546 #. type: textblock
10547 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1415
10548 msgid "Return the command trace flag."
10549 msgstr ""
10550
10551 # type: =head2
10552 #. type: =head2
10553 #: ../src/guestfs-actions.pod:2091
10554 msgid "guestfs_get_umask"
10555 msgstr ""
10556
10557 # type: verbatim
10558 #. type: verbatim
10559 #: ../src/guestfs-actions.pod:2093
10560 #, no-wrap
10561 msgid ""
10562 " int\n"
10563 " guestfs_get_umask (guestfs_h *g);\n"
10564 "\n"
10565 msgstr ""
10566
10567 # type: textblock
10568 #. type: textblock
10569 #: ../src/guestfs-actions.pod:2096
10570 msgid ""
10571 "Return the current umask.  By default the umask is C<022> unless it has been "
10572 "set by calling C<guestfs_umask>."
10573 msgstr ""
10574
10575 # type: =head2
10576 #. type: =head2
10577 #: ../src/guestfs-actions.pod:2103
10578 msgid "guestfs_get_verbose"
10579 msgstr ""
10580
10581 # type: verbatim
10582 #. type: verbatim
10583 #: ../src/guestfs-actions.pod:2105
10584 #, no-wrap
10585 msgid ""
10586 " int\n"
10587 " guestfs_get_verbose (guestfs_h *g);\n"
10588 "\n"
10589 msgstr ""
10590
10591 # type: textblock
10592 #. type: textblock
10593 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1428
10594 msgid "This returns the verbose messages flag."
10595 msgstr ""
10596
10597 # type: =head2
10598 #. type: =head2
10599 #: ../src/guestfs-actions.pod:2114
10600 msgid "guestfs_getcon"
10601 msgstr ""
10602
10603 # type: verbatim
10604 #. type: verbatim
10605 #: ../src/guestfs-actions.pod:2116
10606 #, no-wrap
10607 msgid ""
10608 " char *\n"
10609 " guestfs_getcon (guestfs_h *g);\n"
10610 "\n"
10611 msgstr ""
10612
10613 # type: textblock
10614 #. type: textblock
10615 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1434
10616 msgid "This gets the SELinux security context of the daemon."
10617 msgstr ""
10618
10619 # type: textblock
10620 #. type: textblock
10621 #: ../src/guestfs-actions.pod:2121
10622 msgid ""
10623 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10624 msgstr ""
10625
10626 # type: =head2
10627 #. type: =head2
10628 #: ../src/guestfs-actions.pod:2129
10629 msgid "guestfs_getxattr"
10630 msgstr ""
10631
10632 # type: verbatim
10633 #. type: verbatim
10634 #: ../src/guestfs-actions.pod:2131
10635 #, no-wrap
10636 msgid ""
10637 " char *\n"
10638 " guestfs_getxattr (guestfs_h *g,\n"
10639 "                   const char *path,\n"
10640 "                   const char *name,\n"
10641 "                   size_t *size_r);\n"
10642 "\n"
10643 msgstr ""
10644
10645 # type: textblock
10646 #. type: textblock
10647 #: ../src/guestfs-actions.pod:2137
10648 msgid ""
10649 "Get a single extended attribute from file C<path> named C<name>.  This call "
10650 "follows symlinks.  If you want to lookup an extended attribute for the "
10651 "symlink itself, use C<guestfs_lgetxattr>."
10652 msgstr ""
10653
10654 # type: textblock
10655 #. type: textblock
10656 #: ../src/guestfs-actions.pod:2141 ../src/guestfs-actions.pod:3426
10657 msgid ""
10658 "Normally it is better to get all extended attributes from a file in one go "
10659 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10660 "implementations are buggy and do not provide a way to list out attributes.  "
10661 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10662 "extended attributes you want in advance and call this function."
10663 msgstr ""
10664
10665 # type: textblock
10666 #. type: textblock
10667 #: ../src/guestfs-actions.pod:2148 ../src/guestfs-actions.pod:3433
10668 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2394
10669 msgid ""
10670 "Extended attribute values are blobs of binary data.  If there is no extended "
10671 "attribute named C<name>, this returns an error."
10672 msgstr ""
10673
10674 # type: textblock
10675 #. type: textblock
10676 #: ../src/guestfs-actions.pod:2151
10677 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10678 msgstr ""
10679
10680 # type: textblock
10681 #. type: textblock
10682 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2344
10683 #: ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:5155
10684 #: ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5362
10685 msgid ""
10686 "This function returns a buffer, or NULL on error.  The size of the returned "
10687 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10688 "after use>."
10689 msgstr ""
10690
10691 #. type: textblock
10692 #: ../src/guestfs-actions.pod:2157 ../src/guestfs-actions.pod:3442
10693 msgid "(Added in 1.7.24)"
10694 msgstr ""
10695
10696 # type: =head2
10697 #. type: =head2
10698 #: ../src/guestfs-actions.pod:2159
10699 msgid "guestfs_getxattrs"
10700 msgstr ""
10701
10702 # type: verbatim
10703 #. type: verbatim
10704 #: ../src/guestfs-actions.pod:2161
10705 #, no-wrap
10706 msgid ""
10707 " struct guestfs_xattr_list *\n"
10708 " guestfs_getxattrs (guestfs_h *g,\n"
10709 "                    const char *path);\n"
10710 "\n"
10711 msgstr ""
10712
10713 # type: textblock
10714 #. type: textblock
10715 #: ../src/guestfs-actions.pod:2165 ../fish/guestfish-actions.pod:1463
10716 msgid ""
10717 "This call lists the extended attributes of the file or directory C<path>."
10718 msgstr ""
10719
10720 # type: textblock
10721 #. type: textblock
10722 #: ../src/guestfs-actions.pod:2168 ../fish/guestfish-actions.pod:1466
10723 msgid ""
10724 "At the system call level, this is a combination of the L<listxattr(2)> and "
10725 "L<getxattr(2)> calls."
10726 msgstr ""
10727
10728 # type: textblock
10729 #. type: textblock
10730 #: ../src/guestfs-actions.pod:2171
10731 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10732 msgstr ""
10733
10734 # type: textblock
10735 #. type: textblock
10736 #: ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:3454
10737 #: ../src/guestfs-actions.pod:4105
10738 msgid ""
10739 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10740 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10741 msgstr ""
10742
10743 # type: textblock
10744 #. type: textblock
10745 #: ../src/guestfs-actions.pod:2177 ../src/guestfs-actions.pod:3458
10746 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3659
10747 #: ../src/guestfs-actions.pod:5535 ../src/guestfs-actions.pod:6023
10748 #: ../src/guestfs-actions.pod:7358
10749 msgid "(Added in 1.0.59)"
10750 msgstr ""
10751
10752 # type: =head2
10753 #. type: =head2
10754 #: ../src/guestfs-actions.pod:2179
10755 msgid "guestfs_glob_expand"
10756 msgstr ""
10757
10758 # type: verbatim
10759 #. type: verbatim
10760 #: ../src/guestfs-actions.pod:2181
10761 #, no-wrap
10762 msgid ""
10763 " char **\n"
10764 " guestfs_glob_expand (guestfs_h *g,\n"
10765 "                      const char *pattern);\n"
10766 "\n"
10767 msgstr ""
10768
10769 # type: textblock
10770 #. type: textblock
10771 #: ../src/guestfs-actions.pod:2185 ../fish/guestfish-actions.pod:1475
10772 msgid ""
10773 "This command searches for all the pathnames matching C<pattern> according to "
10774 "the wildcard expansion rules used by the shell."
10775 msgstr ""
10776
10777 # type: textblock
10778 #. type: textblock
10779 #: ../src/guestfs-actions.pod:2189 ../fish/guestfish-actions.pod:1479
10780 msgid ""
10781 "If no paths match, then this returns an empty list (note: not an error)."
10782 msgstr ""
10783
10784 # type: textblock
10785 #. type: textblock
10786 #: ../src/guestfs-actions.pod:2192 ../fish/guestfish-actions.pod:1482
10787 msgid ""
10788 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10789 "GLOB_BRACE>.  See that manual page for more details."
10790 msgstr ""
10791
10792 # type: textblock
10793 #. type: textblock
10794 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:6188
10795 #: ../src/guestfs-actions.pod:6205
10796 msgid "(Added in 1.0.50)"
10797 msgstr ""
10798
10799 # type: =head2
10800 #. type: =head2
10801 #: ../src/guestfs-actions.pod:2202
10802 msgid "guestfs_grep"
10803 msgstr ""
10804
10805 # type: verbatim
10806 #. type: verbatim
10807 #: ../src/guestfs-actions.pod:2204
10808 #, no-wrap
10809 msgid ""
10810 " char **\n"
10811 " guestfs_grep (guestfs_h *g,\n"
10812 "               const char *regex,\n"
10813 "               const char *path);\n"
10814 "\n"
10815 msgstr ""
10816
10817 # type: textblock
10818 #. type: textblock
10819 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1490
10820 msgid "This calls the external C<grep> program and returns the matching lines."
10821 msgstr ""
10822
10823 # type: =head2
10824 #. type: =head2
10825 #: ../src/guestfs-actions.pod:2221
10826 msgid "guestfs_grepi"
10827 msgstr ""
10828
10829 # type: verbatim
10830 #. type: verbatim
10831 #: ../src/guestfs-actions.pod:2223
10832 #, no-wrap
10833 msgid ""
10834 " char **\n"
10835 " guestfs_grepi (guestfs_h *g,\n"
10836 "                const char *regex,\n"
10837 "                const char *path);\n"
10838 "\n"
10839 msgstr ""
10840
10841 # type: textblock
10842 #. type: textblock
10843 #: ../src/guestfs-actions.pod:2228 ../fish/guestfish-actions.pod:1500
10844 msgid ""
10845 "This calls the external C<grep -i> program and returns the matching lines."
10846 msgstr ""
10847
10848 # type: =head2
10849 #. type: =head2
10850 #: ../src/guestfs-actions.pod:2240
10851 msgid "guestfs_grub_install"
10852 msgstr ""
10853
10854 # type: verbatim
10855 #. type: verbatim
10856 #: ../src/guestfs-actions.pod:2242
10857 #, no-wrap
10858 msgid ""
10859 " int\n"
10860 " guestfs_grub_install (guestfs_h *g,\n"
10861 "                       const char *root,\n"
10862 "                       const char *device);\n"
10863 "\n"
10864 msgstr ""
10865
10866 # type: textblock
10867 #. type: textblock
10868 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
10869 msgid ""
10870 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10871 "the root directory being C<root>."
10872 msgstr ""
10873
10874 # type: textblock
10875 #. type: textblock
10876 #: ../src/guestfs-actions.pod:2250 ../fish/guestfish-actions.pod:1513
10877 msgid ""
10878 "Note: If grub-install reports the error \"No suitable drive was found in the "
10879 "generated device map.\" it may be that you need to create a C</boot/grub/"
10880 "device.map> file first that contains the mapping between grub device names "
10881 "and Linux device names.  It is usually sufficient to create a file "
10882 "containing:"
10883 msgstr ""
10884
10885 # type: verbatim
10886 #. type: verbatim
10887 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1520
10888 #, no-wrap
10889 msgid ""
10890 " (hd0) /dev/vda\n"
10891 "\n"
10892 msgstr ""
10893
10894 # type: textblock
10895 #. type: textblock
10896 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1522
10897 msgid "replacing C</dev/vda> with the name of the installation device."
10898 msgstr ""
10899
10900 # type: textblock
10901 #. type: textblock
10902 #: ../src/guestfs-actions.pod:2263
10903 msgid "(Added in 1.0.17)"
10904 msgstr ""
10905
10906 # type: =head2
10907 #. type: =head2
10908 #: ../src/guestfs-actions.pod:2265
10909 msgid "guestfs_head"
10910 msgstr ""
10911
10912 # type: verbatim
10913 #. type: verbatim
10914 #: ../src/guestfs-actions.pod:2267
10915 #, no-wrap
10916 msgid ""
10917 " char **\n"
10918 " guestfs_head (guestfs_h *g,\n"
10919 "               const char *path);\n"
10920 "\n"
10921 msgstr ""
10922
10923 # type: textblock
10924 #. type: textblock
10925 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1528
10926 msgid ""
10927 "This command returns up to the first 10 lines of a file as a list of strings."
10928 msgstr ""
10929
10930 # type: =head2
10931 #. type: =head2
10932 #: ../src/guestfs-actions.pod:2283
10933 msgid "guestfs_head_n"
10934 msgstr ""
10935
10936 # type: verbatim
10937 #. type: verbatim
10938 #: ../src/guestfs-actions.pod:2285
10939 #, no-wrap
10940 msgid ""
10941 " char **\n"
10942 " guestfs_head_n (guestfs_h *g,\n"
10943 "                 int nrlines,\n"
10944 "                 const char *path);\n"
10945 "\n"
10946 msgstr ""
10947
10948 # type: textblock
10949 #. type: textblock
10950 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1538
10951 msgid ""
10952 "If the parameter C<nrlines> is a positive number, this returns the first "
10953 "C<nrlines> lines of the file C<path>."
10954 msgstr ""
10955
10956 # type: textblock
10957 #. type: textblock
10958 #: ../src/guestfs-actions.pod:2293 ../fish/guestfish-actions.pod:1541
10959 msgid ""
10960 "If the parameter C<nrlines> is a negative number, this returns lines from "
10961 "the file C<path>, excluding the last C<nrlines> lines."
10962 msgstr ""
10963
10964 # type: textblock
10965 #. type: textblock
10966 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:6485
10967 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4364
10968 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10969 msgstr ""
10970
10971 # type: =head2
10972 #. type: =head2
10973 #: ../src/guestfs-actions.pod:2307
10974 msgid "guestfs_hexdump"
10975 msgstr ""
10976
10977 # type: verbatim
10978 #. type: verbatim
10979 #: ../src/guestfs-actions.pod:2309
10980 #, no-wrap
10981 msgid ""
10982 " char *\n"
10983 " guestfs_hexdump (guestfs_h *g,\n"
10984 "                  const char *path);\n"
10985 "\n"
10986 msgstr ""
10987
10988 # type: textblock
10989 #. type: textblock
10990 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
10991 msgid ""
10992 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10993 "readable, canonical hex dump of the file."
10994 msgstr ""
10995
10996 # type: textblock
10997 #. type: textblock
10998 #: ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:6269
10999 #: ../src/guestfs-actions.pod:6324
11000 msgid "(Added in 1.0.22)"
11001 msgstr ""
11002
11003 # type: =head2
11004 #. type: =head2
11005 #: ../src/guestfs-actions.pod:2324
11006 msgid "guestfs_initrd_cat"
11007 msgstr ""
11008
11009 # type: verbatim
11010 #. type: verbatim
11011 #: ../src/guestfs-actions.pod:2326
11012 #, no-wrap
11013 msgid ""
11014 " char *\n"
11015 " guestfs_initrd_cat (guestfs_h *g,\n"
11016 "                     const char *initrdpath,\n"
11017 "                     const char *filename,\n"
11018 "                     size_t *size_r);\n"
11019 "\n"
11020 msgstr ""
11021
11022 # type: textblock
11023 #. type: textblock
11024 #: ../src/guestfs-actions.pod:2332 ../fish/guestfish-actions.pod:1563
11025 msgid ""
11026 "This command unpacks the file C<filename> from the initrd file called "
11027 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11028 "character."
11029 msgstr ""
11030
11031 # type: textblock
11032 #. type: textblock
11033 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
11034 msgid ""
11035 "For example, in guestfish you could use the following command to examine the "
11036 "boot script (usually called C</init>)  contained in a Linux initrd or "
11037 "initramfs image:"
11038 msgstr ""
11039
11040 # type: verbatim
11041 #. type: verbatim
11042 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
11043 #, no-wrap
11044 msgid ""
11045 " initrd-cat /boot/initrd-<version>.img init\n"
11046 "\n"
11047 msgstr ""
11048
11049 # type: textblock
11050 #. type: textblock
11051 #: ../src/guestfs-actions.pod:2342
11052 msgid "See also C<guestfs_initrd_list>."
11053 msgstr ""
11054
11055 # type: =head2
11056 #. type: =head2
11057 #: ../src/guestfs-actions.pod:2353
11058 msgid "guestfs_initrd_list"
11059 msgstr ""
11060
11061 # type: verbatim
11062 #. type: verbatim
11063 #: ../src/guestfs-actions.pod:2355
11064 #, no-wrap
11065 msgid ""
11066 " char **\n"
11067 " guestfs_initrd_list (guestfs_h *g,\n"
11068 "                      const char *path);\n"
11069 "\n"
11070 msgstr ""
11071
11072 # type: textblock
11073 #. type: textblock
11074 #: ../src/guestfs-actions.pod:2359 ../fish/guestfish-actions.pod:1582
11075 msgid "This command lists out files contained in an initrd."
11076 msgstr ""
11077
11078 # type: textblock
11079 #. type: textblock
11080 #: ../src/guestfs-actions.pod:2361 ../fish/guestfish-actions.pod:1584
11081 msgid ""
11082 "The files are listed without any initial C</> character.  The files are "
11083 "listed in the order they appear (not necessarily alphabetical).  Directory "
11084 "names are listed as separate items."
11085 msgstr ""
11086
11087 # type: textblock
11088 #. type: textblock
11089 #: ../src/guestfs-actions.pod:2365 ../fish/guestfish-actions.pod:1588
11090 msgid ""
11091 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11092 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11093 "files)."
11094 msgstr ""
11095
11096 # type: =head2
11097 #. type: =head2
11098 #: ../src/guestfs-actions.pod:2375
11099 msgid "guestfs_inotify_add_watch"
11100 msgstr ""
11101
11102 # type: verbatim
11103 #. type: verbatim
11104 #: ../src/guestfs-actions.pod:2377
11105 #, no-wrap
11106 msgid ""
11107 " int64_t\n"
11108 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11109 "                            const char *path,\n"
11110 "                            int mask);\n"
11111 "\n"
11112 msgstr ""
11113
11114 # type: textblock
11115 #. type: textblock
11116 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1596
11117 msgid "Watch C<path> for the events listed in C<mask>."
11118 msgstr ""
11119
11120 # type: textblock
11121 #. type: textblock
11122 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1598
11123 msgid ""
11124 "Note that if C<path> is a directory then events within that directory are "
11125 "watched, but this does I<not> happen recursively (in subdirectories)."
11126 msgstr ""
11127
11128 # type: textblock
11129 #. type: textblock
11130 #: ../src/guestfs-actions.pod:2388 ../fish/guestfish-actions.pod:1602
11131 msgid ""
11132 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11133 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11134 msgstr ""
11135
11136 # type: =head2
11137 #. type: =head2
11138 #: ../src/guestfs-actions.pod:2396
11139 msgid "guestfs_inotify_close"
11140 msgstr ""
11141
11142 # type: verbatim
11143 #. type: verbatim
11144 #: ../src/guestfs-actions.pod:2398
11145 #, no-wrap
11146 msgid ""
11147 " int\n"
11148 " guestfs_inotify_close (guestfs_h *g);\n"
11149 "\n"
11150 msgstr ""
11151
11152 # type: textblock
11153 #. type: textblock
11154 #: ../src/guestfs-actions.pod:2401 ../fish/guestfish-actions.pod:1610
11155 msgid ""
11156 "This closes the inotify handle which was previously opened by inotify_init.  "
11157 "It removes all watches, throws away any pending events, and deallocates all "
11158 "resources."
11159 msgstr ""
11160
11161 # type: =head2
11162 #. type: =head2
11163 #: ../src/guestfs-actions.pod:2409
11164 msgid "guestfs_inotify_files"
11165 msgstr ""
11166
11167 # type: verbatim
11168 #. type: verbatim
11169 #: ../src/guestfs-actions.pod:2411
11170 #, no-wrap
11171 msgid ""
11172 " char **\n"
11173 " guestfs_inotify_files (guestfs_h *g);\n"
11174 "\n"
11175 msgstr ""
11176
11177 # type: textblock
11178 #. type: textblock
11179 #: ../src/guestfs-actions.pod:2414
11180 msgid ""
11181 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11182 "returns a list of pathnames of objects that were touched.  The returned "
11183 "pathnames are sorted and deduplicated."
11184 msgstr ""
11185
11186 # type: =head2
11187 #. type: =head2
11188 #: ../src/guestfs-actions.pod:2424
11189 msgid "guestfs_inotify_init"
11190 msgstr ""
11191
11192 # type: verbatim
11193 #. type: verbatim
11194 #: ../src/guestfs-actions.pod:2426
11195 #, no-wrap
11196 msgid ""
11197 " int\n"
11198 " guestfs_inotify_init (guestfs_h *g,\n"
11199 "                       int maxevents);\n"
11200 "\n"
11201 msgstr ""
11202
11203 # type: textblock
11204 #. type: textblock
11205 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1626
11206 msgid ""
11207 "This command creates a new inotify handle.  The inotify subsystem can be "
11208 "used to notify events which happen to objects in the guest filesystem."
11209 msgstr ""
11210
11211 # type: textblock
11212 #. type: textblock
11213 #: ../src/guestfs-actions.pod:2434
11214 msgid ""
11215 "C<maxevents> is the maximum number of events which will be queued up between "
11216 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11217 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11218 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11219 "throws away events, but records the fact that it threw them away by setting "
11220 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11221 "C<guestfs_inotify_read>)."
11222 msgstr ""
11223
11224 # type: textblock
11225 #. type: textblock
11226 #: ../src/guestfs-actions.pod:2444
11227 msgid ""
11228 "Before any events are generated, you have to add some watches to the "
11229 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11230 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11231 msgstr ""
11232
11233 # type: textblock
11234 #. type: textblock
11235 #: ../src/guestfs-actions.pod:2450
11236 msgid ""
11237 "Queued up events should be read periodically by calling "
11238 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11239 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11240 "often enough then you risk the internal queue overflowing."
11241 msgstr ""
11242
11243 # type: textblock
11244 #. type: textblock
11245 #: ../src/guestfs-actions.pod:2457
11246 msgid ""
11247 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11248 "This also removes any watches automatically."
11249 msgstr ""
11250
11251 # type: textblock
11252 #. type: textblock
11253 #: ../src/guestfs-actions.pod:2461 ../fish/guestfish-actions.pod:1657
11254 msgid ""
11255 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11256 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11257 "that there is one global inotify handle per libguestfs instance."
11258 msgstr ""
11259
11260 # type: =head2
11261 #. type: =head2
11262 #: ../src/guestfs-actions.pod:2470
11263 msgid "guestfs_inotify_read"
11264 msgstr ""
11265
11266 # type: verbatim
11267 #. type: verbatim
11268 #: ../src/guestfs-actions.pod:2472
11269 #, no-wrap
11270 msgid ""
11271 " struct guestfs_inotify_event_list *\n"
11272 " guestfs_inotify_read (guestfs_h *g);\n"
11273 "\n"
11274 msgstr ""
11275
11276 # type: textblock
11277 #. type: textblock
11278 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1666
11279 msgid ""
11280 "Return the complete queue of events that have happened since the previous "
11281 "read call."
11282 msgstr ""
11283
11284 # type: textblock
11285 #. type: textblock
11286 #: ../src/guestfs-actions.pod:2478 ../fish/guestfish-actions.pod:1669
11287 msgid "If no events have happened, this returns an empty list."
11288 msgstr ""
11289
11290 # type: textblock
11291 #. type: textblock
11292 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1671
11293 msgid ""
11294 "I<Note>: In order to make sure that all events have been read, you must call "
11295 "this function repeatedly until it returns an empty list.  The reason is that "
11296 "the call will read events up to the maximum appliance-to-host message size "
11297 "and leave remaining events in the queue."
11298 msgstr ""
11299
11300 # type: textblock
11301 #. type: textblock
11302 #: ../src/guestfs-actions.pod:2486
11303 msgid ""
11304 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11305 "there was an error.  I<The caller must call "
11306 "C<guestfs_free_inotify_event_list> after use>."
11307 msgstr ""
11308
11309 # type: =head2
11310 #. type: =head2
11311 #: ../src/guestfs-actions.pod:2492
11312 msgid "guestfs_inotify_rm_watch"
11313 msgstr ""
11314
11315 # type: verbatim
11316 #. type: verbatim
11317 #: ../src/guestfs-actions.pod:2494
11318 #, no-wrap
11319 msgid ""
11320 " int\n"
11321 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11322 "                           int wd);\n"
11323 "\n"
11324 msgstr ""
11325
11326 # type: textblock
11327 #. type: textblock
11328 #: ../src/guestfs-actions.pod:2498
11329 msgid ""
11330 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11331 msgstr ""
11332
11333 # type: =head2
11334 #. type: =head2
11335 #: ../src/guestfs-actions.pod:2505
11336 msgid "guestfs_inspect_get_arch"
11337 msgstr ""
11338
11339 # type: verbatim
11340 #. type: verbatim
11341 #: ../src/guestfs-actions.pod:2507
11342 #, no-wrap
11343 msgid ""
11344 " char *\n"
11345 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11346 "                           const char *root);\n"
11347 "\n"
11348 msgstr ""
11349
11350 # type: textblock
11351 #. type: textblock
11352 #: ../src/guestfs-actions.pod:2511 ../src/guestfs-actions.pod:2534
11353 #: ../src/guestfs-actions.pod:2619 ../src/guestfs-actions.pod:2645
11354 #: ../src/guestfs-actions.pod:2684 ../src/guestfs-actions.pod:2706
11355 #: ../src/guestfs-actions.pod:2733 ../src/guestfs-actions.pod:2754
11356 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2820
11357 #: ../src/guestfs-actions.pod:2851 ../src/guestfs-actions.pod:2875
11358 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:2972
11359 #: ../src/guestfs-actions.pod:2995 ../src/guestfs-actions.pod:3012
11360 #: ../src/guestfs-actions.pod:3029 ../src/guestfs-actions.pod:3048
11361 msgid ""
11362 "This function should only be called with a root device string as returned by "
11363 "C<guestfs_inspect_os>."
11364 msgstr ""
11365
11366 # type: textblock
11367 #. type: textblock
11368 #: ../src/guestfs-actions.pod:2514
11369 msgid ""
11370 "This returns the architecture of the inspected operating system.  The "
11371 "possible return values are listed under C<guestfs_file_architecture>."
11372 msgstr ""
11373
11374 # type: textblock
11375 #. type: textblock
11376 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1695
11377 msgid ""
11378 "If the architecture could not be determined, then the string C<unknown> is "
11379 "returned."
11380 msgstr ""
11381
11382 # type: textblock
11383 #. type: textblock
11384 #: ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2606
11385 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:2693
11386 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2807
11387 #: ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2862
11388 #: ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:2959
11389 #: ../src/guestfs-actions.pod:2982 ../src/guestfs-actions.pod:3002
11390 #: ../src/guestfs-actions.pod:3019 ../src/guestfs-actions.pod:3038
11391 #: ../src/guestfs-actions.pod:3141 ../src/guestfs-actions.pod:3182
11392 #: ../fish/guestfish-actions.pod:1698 ../fish/guestfish-actions.pod:1776
11393 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:1843
11394 #: ../fish/guestfish-actions.pod:1864 ../fish/guestfish-actions.pod:1928
11395 #: ../fish/guestfish-actions.pod:1952 ../fish/guestfish-actions.pod:1969
11396 #: ../fish/guestfish-actions.pod:2012 ../fish/guestfish-actions.pod:2047
11397 #: ../fish/guestfish-actions.pod:2063 ../fish/guestfish-actions.pod:2076
11398 #: ../fish/guestfish-actions.pod:2089 ../fish/guestfish-actions.pod:2104
11399 #: ../fish/guestfish-actions.pod:2203 ../fish/guestfish-actions.pod:2237
11400 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11401 msgstr ""
11402
11403 # type: =head2
11404 #. type: =head2
11405 #: ../src/guestfs-actions.pod:2528
11406 msgid "guestfs_inspect_get_distro"
11407 msgstr ""
11408
11409 # type: verbatim
11410 #. type: verbatim
11411 #: ../src/guestfs-actions.pod:2530
11412 #, no-wrap
11413 msgid ""
11414 " char *\n"
11415 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11416 "                             const char *root);\n"
11417 "\n"
11418 msgstr ""
11419
11420 # type: textblock
11421 #. type: textblock
11422 #: ../src/guestfs-actions.pod:2537 ../fish/guestfish-actions.pod:1707
11423 msgid ""
11424 "This returns the distro (distribution) of the inspected operating system."
11425 msgstr ""
11426
11427 # type: textblock
11428 #. type: textblock
11429 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1710
11430 msgid "Currently defined distros are:"
11431 msgstr ""
11432
11433 # type: =item
11434 #. type: =item
11435 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1714
11436 msgid "\"archlinux\""
11437 msgstr ""
11438
11439 # type: textblock
11440 #. type: textblock
11441 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1716
11442 msgid "Arch Linux."
11443 msgstr ""
11444
11445 # type: =item
11446 #. type: =item
11447 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1718
11448 msgid "\"debian\""
11449 msgstr ""
11450
11451 # type: textblock
11452 #. type: textblock
11453 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1720
11454 msgid "Debian."
11455 msgstr ""
11456
11457 # type: =item
11458 #. type: =item
11459 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1722
11460 msgid "\"fedora\""
11461 msgstr ""
11462
11463 # type: textblock
11464 #. type: textblock
11465 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1724
11466 msgid "Fedora."
11467 msgstr ""
11468
11469 # type: =item
11470 #. type: =item
11471 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1726
11472 msgid "\"gentoo\""
11473 msgstr ""
11474
11475 # type: textblock
11476 #. type: textblock
11477 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1728
11478 msgid "Gentoo."
11479 msgstr ""
11480
11481 # type: =item
11482 #. type: =item
11483 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1730
11484 msgid "\"linuxmint\""
11485 msgstr ""
11486
11487 # type: textblock
11488 #. type: textblock
11489 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1732
11490 msgid "Linux Mint."
11491 msgstr ""
11492
11493 # type: =item
11494 #. type: =item
11495 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1734
11496 msgid "\"mandriva\""
11497 msgstr ""
11498
11499 # type: textblock
11500 #. type: textblock
11501 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1736
11502 msgid "Mandriva."
11503 msgstr ""
11504
11505 # type: =item
11506 #. type: =item
11507 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1738
11508 msgid "\"meego\""
11509 msgstr ""
11510
11511 # type: textblock
11512 #. type: textblock
11513 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1740
11514 msgid "MeeGo."
11515 msgstr ""
11516
11517 # type: =item
11518 #. type: =item
11519 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1742
11520 msgid "\"pardus\""
11521 msgstr ""
11522
11523 # type: textblock
11524 #. type: textblock
11525 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1744
11526 msgid "Pardus."
11527 msgstr ""
11528
11529 # type: =item
11530 #. type: =item
11531 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1746
11532 msgid "\"redhat-based\""
11533 msgstr ""
11534
11535 # type: textblock
11536 #. type: textblock
11537 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1748
11538 msgid "Some Red Hat-derived distro."
11539 msgstr ""
11540
11541 # type: =item
11542 #. type: =item
11543 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1750
11544 msgid "\"rhel\""
11545 msgstr ""
11546
11547 # type: textblock
11548 #. type: textblock
11549 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1752
11550 msgid "Red Hat Enterprise Linux and some derivatives."
11551 msgstr ""
11552
11553 #. type: =item
11554 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1754
11555 msgid "\"slackware\""
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1756
11560 msgid "Slackware."
11561 msgstr ""
11562
11563 # type: =item
11564 #. type: =item
11565 #: ../src/guestfs-actions.pod:2588 ../fish/guestfish-actions.pod:1758
11566 msgid "\"ubuntu\""
11567 msgstr ""
11568
11569 # type: textblock
11570 #. type: textblock
11571 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1760
11572 msgid "Ubuntu."
11573 msgstr ""
11574
11575 # type: =item
11576 #. type: =item
11577 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2664
11578 #: ../src/guestfs-actions.pod:2950 ../fish/guestfish-actions.pod:1762
11579 #: ../fish/guestfish-actions.pod:1819 ../fish/guestfish-actions.pod:2038
11580 msgid "\"unknown\""
11581 msgstr ""
11582
11583 # type: textblock
11584 #. type: textblock
11585 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1764
11586 msgid "The distro could not be determined."
11587 msgstr ""
11588
11589 # type: =item
11590 #. type: =item
11591 #: ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:2942
11592 #: ../fish/guestfish-actions.pod:1766 ../fish/guestfish-actions.pod:2030
11593 msgid "\"windows\""
11594 msgstr ""
11595
11596 # type: textblock
11597 #. type: textblock
11598 #: ../src/guestfs-actions.pod:2598 ../fish/guestfish-actions.pod:1768
11599 msgid ""
11600 "Windows does not have distributions.  This string is returned if the OS type "
11601 "is Windows."
11602 msgstr ""
11603
11604 # type: textblock
11605 #. type: textblock
11606 #: ../src/guestfs-actions.pod:2603 ../src/guestfs-actions.pod:2670
11607 #: ../src/guestfs-actions.pod:2956 ../fish/guestfish-actions.pod:1773
11608 #: ../fish/guestfish-actions.pod:1825 ../fish/guestfish-actions.pod:2044
11609 msgid ""
11610 "Future versions of libguestfs may return other strings here.  The caller "
11611 "should be prepared to handle any string."
11612 msgstr ""
11613
11614 # type: =head2
11615 #. type: =head2
11616 #: ../src/guestfs-actions.pod:2613
11617 msgid "guestfs_inspect_get_filesystems"
11618 msgstr ""
11619
11620 # type: verbatim
11621 #. type: verbatim
11622 #: ../src/guestfs-actions.pod:2615
11623 #, no-wrap
11624 msgid ""
11625 " char **\n"
11626 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11627 "                                  const char *root);\n"
11628 "\n"
11629 msgstr ""
11630
11631 # type: textblock
11632 #. type: textblock
11633 #: ../src/guestfs-actions.pod:2622 ../fish/guestfish-actions.pod:1785
11634 msgid ""
11635 "This returns a list of all the filesystems that we think are associated with "
11636 "this operating system.  This includes the root filesystem, other ordinary "
11637 "filesystems, and non-mounted devices like swap partitions."
11638 msgstr ""
11639
11640 # type: textblock
11641 #. type: textblock
11642 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:1790
11643 msgid ""
11644 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11645 "to be shared between operating systems."
11646 msgstr ""
11647
11648 # type: textblock
11649 #. type: textblock
11650 #: ../src/guestfs-actions.pod:2630
11651 msgid ""
11652 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11653 "C<guestfs_inspect_get_mountpoints>."
11654 msgstr ""
11655
11656 #. type: =head2
11657 #: ../src/guestfs-actions.pod:2639
11658 msgid "guestfs_inspect_get_format"
11659 msgstr ""
11660
11661 #. type: verbatim
11662 #: ../src/guestfs-actions.pod:2641
11663 #, no-wrap
11664 msgid ""
11665 " char *\n"
11666 " guestfs_inspect_get_format (guestfs_h *g,\n"
11667 "                             const char *root);\n"
11668 "\n"
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../src/guestfs-actions.pod:2648 ../fish/guestfish-actions.pod:1803
11673 msgid ""
11674 "This returns the format of the inspected operating system.  You can use it "
11675 "to detect install images, live CDs and similar."
11676 msgstr ""
11677
11678 #. type: textblock
11679 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
11680 msgid "Currently defined formats are:"
11681 msgstr ""
11682
11683 #. type: =item
11684 #: ../src/guestfs-actions.pod:2655 ../fish/guestfish-actions.pod:1810
11685 msgid "\"installed\""
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../src/guestfs-actions.pod:2657 ../fish/guestfish-actions.pod:1812
11690 msgid "This is an installed operating system."
11691 msgstr ""
11692
11693 #. type: =item
11694 #: ../src/guestfs-actions.pod:2659 ../fish/guestfish-actions.pod:1814
11695 msgid "\"installer\""
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../src/guestfs-actions.pod:2661 ../fish/guestfish-actions.pod:1816
11700 msgid ""
11701 "The disk image being inspected is not an installed operating system, but a "
11702 "I<bootable> install disk, live CD, or similar."
11703 msgstr ""
11704
11705 #. type: textblock
11706 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1821
11707 msgid "The format of this disk image is not known."
11708 msgstr ""
11709
11710 # type: =head2
11711 #. type: =head2
11712 #: ../src/guestfs-actions.pod:2678
11713 msgid "guestfs_inspect_get_hostname"
11714 msgstr ""
11715
11716 # type: verbatim
11717 #. type: verbatim
11718 #: ../src/guestfs-actions.pod:2680
11719 #, no-wrap
11720 msgid ""
11721 " char *\n"
11722 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11723 "                               const char *root);\n"
11724 "\n"
11725 msgstr ""
11726
11727 # type: textblock
11728 #. type: textblock
11729 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:1837
11730 msgid ""
11731 "This function returns the hostname of the operating system as found by "
11732 "inspection of the guest's configuration files."
11733 msgstr ""
11734
11735 # type: textblock
11736 #. type: textblock
11737 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:1840
11738 msgid ""
11739 "If the hostname could not be determined, then the string C<unknown> is "
11740 "returned."
11741 msgstr ""
11742
11743 # type: textblock
11744 #. type: textblock
11745 #: ../src/guestfs-actions.pod:2698
11746 msgid "(Added in 1.7.9)"
11747 msgstr ""
11748
11749 # type: =head2
11750 #. type: =head2
11751 #: ../src/guestfs-actions.pod:2700
11752 msgid "guestfs_inspect_get_major_version"
11753 msgstr ""
11754
11755 # type: verbatim
11756 #. type: verbatim
11757 #: ../src/guestfs-actions.pod:2702
11758 #, no-wrap
11759 msgid ""
11760 " int\n"
11761 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11762 "                                    const char *root);\n"
11763 "\n"
11764 msgstr ""
11765
11766 # type: textblock
11767 #. type: textblock
11768 #: ../src/guestfs-actions.pod:2709 ../fish/guestfish-actions.pod:1852
11769 msgid ""
11770 "This returns the major version number of the inspected operating system."
11771 msgstr ""
11772
11773 # type: textblock
11774 #. type: textblock
11775 #: ../src/guestfs-actions.pod:2712 ../fish/guestfish-actions.pod:1855
11776 msgid ""
11777 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11778 "popular public names used by the operating system.  Notably the operating "
11779 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11780 "1).  You can find out the real versions corresponding to releases of Windows "
11781 "by consulting Wikipedia or MSDN."
11782 msgstr ""
11783
11784 # type: textblock
11785 #. type: textblock
11786 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2739
11787 #: ../fish/guestfish-actions.pod:1862 ../fish/guestfish-actions.pod:1876
11788 msgid "If the version could not be determined, then C<0> is returned."
11789 msgstr ""
11790
11791 # type: =head2
11792 #. type: =head2
11793 #: ../src/guestfs-actions.pod:2727
11794 msgid "guestfs_inspect_get_minor_version"
11795 msgstr ""
11796
11797 # type: verbatim
11798 #. type: verbatim
11799 #: ../src/guestfs-actions.pod:2729
11800 #, no-wrap
11801 msgid ""
11802 " int\n"
11803 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11804 "                                    const char *root);\n"
11805 "\n"
11806 msgstr ""
11807
11808 # type: textblock
11809 #. type: textblock
11810 #: ../src/guestfs-actions.pod:2736 ../fish/guestfish-actions.pod:1873
11811 msgid ""
11812 "This returns the minor version number of the inspected operating system."
11813 msgstr ""
11814
11815 # type: textblock
11816 #. type: textblock
11817 #: ../src/guestfs-actions.pod:2741
11818 msgid ""
11819 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11820 "C<guestfs_inspect_get_major_version>."
11821 msgstr ""
11822
11823 # type: =head2
11824 #. type: =head2
11825 #: ../src/guestfs-actions.pod:2748
11826 msgid "guestfs_inspect_get_mountpoints"
11827 msgstr ""
11828
11829 # type: verbatim
11830 #. type: verbatim
11831 #: ../src/guestfs-actions.pod:2750
11832 #, no-wrap
11833 msgid ""
11834 " char **\n"
11835 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11836 "                                  const char *root);\n"
11837 "\n"
11838 msgstr ""
11839
11840 #. type: textblock
11841 #: ../src/guestfs-actions.pod:2757 ../fish/guestfish-actions.pod:1888
11842 msgid ""
11843 "This returns a hash of where we think the filesystems associated with this "
11844 "operating system should be mounted.  Callers should note that this is at "
11845 "best an educated guess made by reading configuration files such as C</etc/"
11846 "fstab>.  I<In particular note> that this may return filesystems which are "
11847 "non-existent or not mountable and callers should be prepared to handle or "
11848 "ignore failures if they try to mount them."
11849 msgstr ""
11850
11851 # type: textblock
11852 #. type: textblock
11853 #: ../src/guestfs-actions.pod:2766 ../fish/guestfish-actions.pod:1897
11854 msgid ""
11855 "Each element in the returned hashtable has a key which is the path of the "
11856 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11857 "mounted there (eg. C</dev/sda1>)."
11858 msgstr ""
11859
11860 # type: textblock
11861 #. type: textblock
11862 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:1902
11863 msgid ""
11864 "Non-mounted devices such as swap devices are I<not> returned in this list."
11865 msgstr ""
11866
11867 # type: textblock
11868 #. type: textblock
11869 #: ../src/guestfs-actions.pod:2774
11870 msgid ""
11871 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11872 "C<guestfs_inspect_get_filesystems>."
11873 msgstr ""
11874
11875 # type: textblock
11876 #. type: textblock
11877 #: ../src/guestfs-actions.pod:2777 ../src/guestfs-actions.pod:3511
11878 #: ../src/guestfs-actions.pod:4721 ../src/guestfs-actions.pod:6626
11879 msgid ""
11880 "This function returns a NULL-terminated array of strings, or NULL if there "
11881 "was an error.  The array of strings will always have length C<2n+1>, where "
11882 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11883 "caller must free the strings and the array after use>."
11884 msgstr ""
11885
11886 # type: =head2
11887 #. type: =head2
11888 #: ../src/guestfs-actions.pod:2785
11889 msgid "guestfs_inspect_get_package_format"
11890 msgstr ""
11891
11892 # type: verbatim
11893 #. type: verbatim
11894 #: ../src/guestfs-actions.pod:2787
11895 #, no-wrap
11896 msgid ""
11897 " char *\n"
11898 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11899 "                                     const char *root);\n"
11900 "\n"
11901 msgstr ""
11902
11903 # type: textblock
11904 #. type: textblock
11905 #: ../src/guestfs-actions.pod:2794
11906 msgid ""
11907 "This function and C<guestfs_inspect_get_package_management> return the "
11908 "package format and package management tool used by the inspected operating "
11909 "system.  For example for Fedora these functions would return C<rpm> (package "
11910 "format) and C<yum> (package management)."
11911 msgstr ""
11912
11913 # type: textblock
11914 #. type: textblock
11915 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1921
11916 msgid ""
11917 "This returns the string C<unknown> if we could not determine the package "
11918 "format I<or> if the operating system does not have a real packaging system "
11919 "(eg. Windows)."
11920 msgstr ""
11921
11922 # type: textblock
11923 #. type: textblock
11924 #: ../src/guestfs-actions.pod:2804 ../fish/guestfish-actions.pod:1925
11925 msgid ""
11926 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11927 "Future versions of libguestfs may return other strings."
11928 msgstr ""
11929
11930 # type: textblock
11931 #. type: textblock
11932 #: ../src/guestfs-actions.pod:2812 ../src/guestfs-actions.pod:2843
11933 msgid "(Added in 1.7.5)"
11934 msgstr ""
11935
11936 # type: =head2
11937 #. type: =head2
11938 #: ../src/guestfs-actions.pod:2814
11939 msgid "guestfs_inspect_get_package_management"
11940 msgstr ""
11941
11942 # type: verbatim
11943 #. type: verbatim
11944 #: ../src/guestfs-actions.pod:2816
11945 #, no-wrap
11946 msgid ""
11947 " char *\n"
11948 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11949 "                                         const char *root);\n"
11950 "\n"
11951 msgstr ""
11952
11953 # type: textblock
11954 #. type: textblock
11955 #: ../src/guestfs-actions.pod:2823
11956 msgid ""
11957 "C<guestfs_inspect_get_package_format> and this function return the package "
11958 "format and package management tool used by the inspected operating system.  "
11959 "For example for Fedora these functions would return C<rpm> (package format) "
11960 "and C<yum> (package management)."
11961 msgstr ""
11962
11963 # type: textblock
11964 #. type: textblock
11965 #: ../src/guestfs-actions.pod:2829 ../fish/guestfish-actions.pod:1943
11966 msgid ""
11967 "This returns the string C<unknown> if we could not determine the package "
11968 "management tool I<or> if the operating system does not have a real packaging "
11969 "system (eg. Windows)."
11970 msgstr ""
11971
11972 # type: textblock
11973 #. type: textblock
11974 #: ../src/guestfs-actions.pod:2833 ../fish/guestfish-actions.pod:1947
11975 msgid ""
11976 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11977 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11978 "libguestfs may return other strings."
11979 msgstr ""
11980
11981 # type: =head2
11982 #. type: =head2
11983 #: ../src/guestfs-actions.pod:2845
11984 msgid "guestfs_inspect_get_product_name"
11985 msgstr ""
11986
11987 # type: verbatim
11988 #. type: verbatim
11989 #: ../src/guestfs-actions.pod:2847
11990 #, no-wrap
11991 msgid ""
11992 " char *\n"
11993 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11994 "                                   const char *root);\n"
11995 "\n"
11996 msgstr ""
11997
11998 # type: textblock
11999 #. type: textblock
12000 #: ../src/guestfs-actions.pod:2854 ../fish/guestfish-actions.pod:1961
12001 msgid ""
12002 "This returns the product name of the inspected operating system.  The "
12003 "product name is generally some freeform string which can be displayed to the "
12004 "user, but should not be parsed by programs."
12005 msgstr ""
12006
12007 # type: textblock
12008 #. type: textblock
12009 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1966
12010 msgid ""
12011 "If the product name could not be determined, then the string C<unknown> is "
12012 "returned."
12013 msgstr ""
12014
12015 #. type: =head2
12016 #: ../src/guestfs-actions.pod:2869
12017 msgid "guestfs_inspect_get_product_variant"
12018 msgstr ""
12019
12020 #. type: verbatim
12021 #: ../src/guestfs-actions.pod:2871
12022 #, no-wrap
12023 msgid ""
12024 " char *\n"
12025 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12026 "                                      const char *root);\n"
12027 "\n"
12028 msgstr ""
12029
12030 #. type: textblock
12031 #: ../src/guestfs-actions.pod:2878 ../fish/guestfish-actions.pod:1978
12032 msgid "This returns the product variant of the inspected operating system."
12033 msgstr ""
12034
12035 #. type: textblock
12036 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1981
12037 msgid ""
12038 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12039 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12040 "is usually a string such as C<Client> or C<Server> (other values are "
12041 "possible).  This can be used to distinguish consumer and enterprise versions "
12042 "of Windows that have the same version number (for example, Windows 7 and "
12043 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12044 "the latter is C<Server>)."
12045 msgstr ""
12046
12047 #. type: textblock
12048 #: ../src/guestfs-actions.pod:2890 ../fish/guestfish-actions.pod:1990
12049 msgid ""
12050 "For enterprise Linux guests, in future we intend this to return the product "
12051 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12052 "implemented at present."
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../src/guestfs-actions.pod:2894 ../fish/guestfish-actions.pod:1994
12057 msgid ""
12058 "If the product variant could not be determined, then the string C<unknown> "
12059 "is returned."
12060 msgstr ""
12061
12062 #. type: textblock
12063 #: ../src/guestfs-actions.pod:2897
12064 msgid ""
12065 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12066 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12067 msgstr ""
12068
12069 # type: =head2
12070 #. type: =head2
12071 #: ../src/guestfs-actions.pod:2904
12072 msgid "guestfs_inspect_get_roots"
12073 msgstr ""
12074
12075 # type: verbatim
12076 #. type: verbatim
12077 #: ../src/guestfs-actions.pod:2906
12078 #, no-wrap
12079 msgid ""
12080 " char **\n"
12081 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12082 "\n"
12083 msgstr ""
12084
12085 # type: textblock
12086 #. type: textblock
12087 #: ../src/guestfs-actions.pod:2909
12088 msgid ""
12089 "This function is a convenient way to get the list of root devices, as "
12090 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12091 "the whole inspection process."
12092 msgstr ""
12093
12094 # type: textblock
12095 #. type: textblock
12096 #: ../src/guestfs-actions.pod:2913
12097 msgid ""
12098 "This returns an empty list if either no root devices were found or the "
12099 "caller has not called C<guestfs_inspect_os>."
12100 msgstr ""
12101
12102 # type: textblock
12103 #. type: textblock
12104 #: ../src/guestfs-actions.pod:2922
12105 msgid "(Added in 1.7.3)"
12106 msgstr ""
12107
12108 # type: =head2
12109 #. type: =head2
12110 #: ../src/guestfs-actions.pod:2924
12111 msgid "guestfs_inspect_get_type"
12112 msgstr ""
12113
12114 # type: verbatim
12115 #. type: verbatim
12116 #: ../src/guestfs-actions.pod:2926
12117 #, no-wrap
12118 msgid ""
12119 " char *\n"
12120 " guestfs_inspect_get_type (guestfs_h *g,\n"
12121 "                           const char *root);\n"
12122 "\n"
12123 msgstr ""
12124
12125 # type: textblock
12126 #. type: textblock
12127 #: ../src/guestfs-actions.pod:2933 ../fish/guestfish-actions.pod:2021
12128 msgid ""
12129 "This returns the type of the inspected operating system.  Currently defined "
12130 "types are:"
12131 msgstr ""
12132
12133 # type: =item
12134 #. type: =item
12135 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2026
12136 msgid "\"linux\""
12137 msgstr ""
12138
12139 # type: textblock
12140 #. type: textblock
12141 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2028
12142 msgid "Any Linux-based operating system."
12143 msgstr ""
12144
12145 # type: textblock
12146 #. type: textblock
12147 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2032
12148 msgid "Any Microsoft Windows operating system."
12149 msgstr ""
12150
12151 # type: =item
12152 #. type: =item
12153 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:2034
12154 msgid "\"freebsd\""
12155 msgstr ""
12156
12157 # type: textblock
12158 #. type: textblock
12159 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2036
12160 msgid "FreeBSD."
12161 msgstr ""
12162
12163 # type: textblock
12164 #. type: textblock
12165 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:2040
12166 msgid "The operating system type could not be determined."
12167 msgstr ""
12168
12169 # type: =head2
12170 #. type: =head2
12171 #: ../src/guestfs-actions.pod:2966
12172 msgid "guestfs_inspect_get_windows_systemroot"
12173 msgstr ""
12174
12175 # type: verbatim
12176 #. type: verbatim
12177 #: ../src/guestfs-actions.pod:2968
12178 #, no-wrap
12179 msgid ""
12180 " char *\n"
12181 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12182 "                                         const char *root);\n"
12183 "\n"
12184 msgstr ""
12185
12186 # type: textblock
12187 #. type: textblock
12188 #: ../src/guestfs-actions.pod:2975 ../fish/guestfish-actions.pod:2056
12189 msgid ""
12190 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12191 "is a directory path such as C</WINDOWS>."
12192 msgstr ""
12193
12194 # type: textblock
12195 #. type: textblock
12196 #: ../src/guestfs-actions.pod:2978 ../fish/guestfish-actions.pod:2059
12197 msgid ""
12198 "This call assumes that the guest is Windows and that the systemroot could be "
12199 "determined by inspection.  If this is not the case then an error is returned."
12200 msgstr ""
12201
12202 # type: textblock
12203 #. type: textblock
12204 #: ../src/guestfs-actions.pod:2987
12205 msgid "(Added in 1.5.25)"
12206 msgstr ""
12207
12208 #. type: =head2
12209 #: ../src/guestfs-actions.pod:2989
12210 msgid "guestfs_inspect_is_live"
12211 msgstr ""
12212
12213 #. type: verbatim
12214 #: ../src/guestfs-actions.pod:2991
12215 #, no-wrap
12216 msgid ""
12217 " int\n"
12218 " guestfs_inspect_is_live (guestfs_h *g,\n"
12219 "                          const char *root);\n"
12220 "\n"
12221 msgstr ""
12222
12223 #. type: textblock
12224 #: ../src/guestfs-actions.pod:2998
12225 msgid ""
12226 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12227 "disk), then this returns true if a live image was detected on the disk."
12228 msgstr ""
12229
12230 #. type: =head2
12231 #: ../src/guestfs-actions.pod:3006
12232 msgid "guestfs_inspect_is_multipart"
12233 msgstr ""
12234
12235 #. type: verbatim
12236 #: ../src/guestfs-actions.pod:3008
12237 #, no-wrap
12238 msgid ""
12239 " int\n"
12240 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12241 "                               const char *root);\n"
12242 "\n"
12243 msgstr ""
12244
12245 #. type: textblock
12246 #: ../src/guestfs-actions.pod:3015
12247 msgid ""
12248 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12249 "disk), then this returns true if the disk is part of a set."
12250 msgstr ""
12251
12252 #. type: =head2
12253 #: ../src/guestfs-actions.pod:3023
12254 msgid "guestfs_inspect_is_netinst"
12255 msgstr ""
12256
12257 #. type: verbatim
12258 #: ../src/guestfs-actions.pod:3025
12259 #, no-wrap
12260 msgid ""
12261 " int\n"
12262 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12263 "                             const char *root);\n"
12264 "\n"
12265 msgstr ""
12266
12267 #. type: textblock
12268 #: ../src/guestfs-actions.pod:3032
12269 msgid ""
12270 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12271 "disk), then this returns true if the disk is a network installer, ie. not a "
12272 "self-contained install CD but one which is likely to require network access "
12273 "to complete the install."
12274 msgstr ""
12275
12276 # type: =head2
12277 #. type: =head2
12278 #: ../src/guestfs-actions.pod:3042
12279 msgid "guestfs_inspect_list_applications"
12280 msgstr ""
12281
12282 # type: verbatim
12283 #. type: verbatim
12284 #: ../src/guestfs-actions.pod:3044
12285 #, no-wrap
12286 msgid ""
12287 " struct guestfs_application_list *\n"
12288 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12289 "                                    const char *root);\n"
12290 "\n"
12291 msgstr ""
12292
12293 # type: textblock
12294 #. type: textblock
12295 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2113
12296 msgid "Return the list of applications installed in the operating system."
12297 msgstr ""
12298
12299 # type: textblock
12300 #. type: textblock
12301 #: ../src/guestfs-actions.pod:3053
12302 msgid ""
12303 "I<Note:> This call works differently from other parts of the inspection "
12304 "API.  You have to call C<guestfs_inspect_os>, then "
12305 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12306 "this.  Listing applications is a significantly more difficult operation "
12307 "which requires access to the full filesystem.  Also note that unlike the "
12308 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12309 "the libguestfs handle, this call actually reads parts of the mounted "
12310 "filesystems during the call."
12311 msgstr ""
12312
12313 # type: textblock
12314 #. type: textblock
12315 #: ../src/guestfs-actions.pod:3063 ../fish/guestfish-actions.pod:2125
12316 msgid ""
12317 "This returns an empty list if the inspection code was not able to determine "
12318 "the list of applications."
12319 msgstr ""
12320
12321 # type: textblock
12322 #. type: textblock
12323 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2128
12324 msgid "The application structure contains the following fields:"
12325 msgstr ""
12326
12327 # type: =item
12328 #. type: =item
12329 #: ../src/guestfs-actions.pod:3070 ../fish/guestfish-actions.pod:2132
12330 msgid "C<app_name>"
12331 msgstr ""
12332
12333 # type: textblock
12334 #. type: textblock
12335 #: ../src/guestfs-actions.pod:3072 ../fish/guestfish-actions.pod:2134
12336 msgid ""
12337 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12338 "guests, this is the package name."
12339 msgstr ""
12340
12341 # type: =item
12342 #. type: =item
12343 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2137
12344 msgid "C<app_display_name>"
12345 msgstr ""
12346
12347 # type: textblock
12348 #. type: textblock
12349 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2139
12350 msgid ""
12351 "The display name of the application, sometimes localized to the install "
12352 "language of the guest operating system."
12353 msgstr ""
12354
12355 # type: textblock
12356 #. type: textblock
12357 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2142
12358 msgid ""
12359 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12360 "to display something can use C<app_name> instead."
12361 msgstr ""
12362
12363 # type: =item
12364 #. type: =item
12365 #: ../src/guestfs-actions.pod:3083 ../fish/guestfish-actions.pod:2145
12366 msgid "C<app_epoch>"
12367 msgstr ""
12368
12369 # type: textblock
12370 #. type: textblock
12371 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2147
12372 msgid ""
12373 "For package managers which use epochs, this contains the epoch of the "
12374 "package (an integer).  If unavailable, this is returned as C<0>."
12375 msgstr ""
12376
12377 # type: =item
12378 #. type: =item
12379 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2150
12380 msgid "C<app_version>"
12381 msgstr ""
12382
12383 # type: textblock
12384 #. type: textblock
12385 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2152
12386 msgid ""
12387 "The version string of the application or package.  If unavailable this is "
12388 "returned as an empty string C<\"\">."
12389 msgstr ""
12390
12391 # type: =item
12392 #. type: =item
12393 #: ../src/guestfs-actions.pod:3093 ../fish/guestfish-actions.pod:2155
12394 msgid "C<app_release>"
12395 msgstr ""
12396
12397 # type: textblock
12398 #. type: textblock
12399 #: ../src/guestfs-actions.pod:3095 ../fish/guestfish-actions.pod:2157
12400 msgid ""
12401 "The release string of the application or package, for package managers that "
12402 "use this.  If unavailable this is returned as an empty string C<\"\">."
12403 msgstr ""
12404
12405 # type: =item
12406 #. type: =item
12407 #: ../src/guestfs-actions.pod:3099 ../fish/guestfish-actions.pod:2161
12408 msgid "C<app_install_path>"
12409 msgstr ""
12410
12411 # type: textblock
12412 #. type: textblock
12413 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2163
12414 msgid ""
12415 "The installation path of the application (on operating systems such as "
12416 "Windows which use installation paths).  This path is in the format used by "
12417 "the guest operating system, it is not a libguestfs path."
12418 msgstr ""
12419
12420 # type: textblock
12421 #. type: textblock
12422 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2168
12423 msgid "If unavailable this is returned as an empty string C<\"\">."
12424 msgstr ""
12425
12426 # type: =item
12427 #. type: =item
12428 #: ../src/guestfs-actions.pod:3108 ../fish/guestfish-actions.pod:2170
12429 msgid "C<app_trans_path>"
12430 msgstr ""
12431
12432 # type: textblock
12433 #. type: textblock
12434 #: ../src/guestfs-actions.pod:3110 ../fish/guestfish-actions.pod:2172
12435 msgid ""
12436 "The install path translated into a libguestfs path.  If unavailable this is "
12437 "returned as an empty string C<\"\">."
12438 msgstr ""
12439
12440 # type: =item
12441 #. type: =item
12442 #: ../src/guestfs-actions.pod:3113 ../fish/guestfish-actions.pod:2175
12443 msgid "C<app_publisher>"
12444 msgstr ""
12445
12446 # type: textblock
12447 #. type: textblock
12448 #: ../src/guestfs-actions.pod:3115 ../fish/guestfish-actions.pod:2177
12449 msgid ""
12450 "The name of the publisher of the application, for package managers that use "
12451 "this.  If unavailable this is returned as an empty string C<\"\">."
12452 msgstr ""
12453
12454 # type: =item
12455 #. type: =item
12456 #: ../src/guestfs-actions.pod:3119 ../fish/guestfish-actions.pod:2181
12457 msgid "C<app_url>"
12458 msgstr ""
12459
12460 # type: textblock
12461 #. type: textblock
12462 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2183
12463 msgid ""
12464 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12465 "returned as an empty string C<\"\">."
12466 msgstr ""
12467
12468 # type: =item
12469 #. type: =item
12470 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2186
12471 msgid "C<app_source_package>"
12472 msgstr ""
12473
12474 # type: textblock
12475 #. type: textblock
12476 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2188
12477 msgid ""
12478 "For packaging systems which support this, the name of the source package.  "
12479 "If unavailable this is returned as an empty string C<\"\">."
12480 msgstr ""
12481
12482 # type: =item
12483 #. type: =item
12484 #: ../src/guestfs-actions.pod:3129 ../fish/guestfish-actions.pod:2191
12485 msgid "C<app_summary>"
12486 msgstr ""
12487
12488 # type: textblock
12489 #. type: textblock
12490 #: ../src/guestfs-actions.pod:3131 ../fish/guestfish-actions.pod:2193
12491 msgid ""
12492 "A short (usually one line) description of the application or package.  If "
12493 "unavailable this is returned as an empty string C<\"\">."
12494 msgstr ""
12495
12496 # type: =item
12497 #. type: =item
12498 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2196
12499 msgid "C<app_description>"
12500 msgstr ""
12501
12502 # type: textblock
12503 #. type: textblock
12504 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2198
12505 msgid ""
12506 "A longer description of the application or package.  If unavailable this is "
12507 "returned as an empty string C<\"\">."
12508 msgstr ""
12509
12510 # type: textblock
12511 #. type: textblock
12512 #: ../src/guestfs-actions.pod:3143
12513 msgid ""
12514 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12515 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
12516 "after use>."
12517 msgstr ""
12518
12519 # type: textblock
12520 #. type: textblock
12521 #: ../src/guestfs-actions.pod:3147
12522 msgid "(Added in 1.7.8)"
12523 msgstr ""
12524
12525 # type: =head2
12526 #. type: =head2
12527 #: ../src/guestfs-actions.pod:3149
12528 msgid "guestfs_inspect_os"
12529 msgstr ""
12530
12531 # type: verbatim
12532 #. type: verbatim
12533 #: ../src/guestfs-actions.pod:3151
12534 #, no-wrap
12535 msgid ""
12536 " char **\n"
12537 " guestfs_inspect_os (guestfs_h *g);\n"
12538 "\n"
12539 msgstr ""
12540
12541 # type: textblock
12542 #. type: textblock
12543 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2209
12544 msgid ""
12545 "This function uses other libguestfs functions and certain heuristics to "
12546 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12547 "for operating systems."
12548 msgstr ""
12549
12550 # type: textblock
12551 #. type: textblock
12552 #: ../src/guestfs-actions.pod:3158 ../fish/guestfish-actions.pod:2213
12553 msgid "The list returned is empty if no operating systems were found."
12554 msgstr ""
12555
12556 # type: textblock
12557 #. type: textblock
12558 #: ../src/guestfs-actions.pod:3160 ../fish/guestfish-actions.pod:2215
12559 msgid ""
12560 "If one operating system was found, then this returns a list with a single "
12561 "element, which is the name of the root filesystem of this operating system.  "
12562 "It is also possible for this function to return a list containing more than "
12563 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12564 "element being the root filesystem of one of the operating systems."
12565 msgstr ""
12566
12567 # type: textblock
12568 #. type: textblock
12569 #: ../src/guestfs-actions.pod:3167
12570 msgid ""
12571 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
12572 "functions in order to query further information about each operating system, "
12573 "such as the name and version."
12574 msgstr ""
12575
12576 # type: textblock
12577 #. type: textblock
12578 #: ../src/guestfs-actions.pod:3172
12579 msgid ""
12580 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
12581 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
12582 "the contents.  This should be called with no disks currently mounted.  The "
12583 "function may also use Augeas, so any existing Augeas handle will be closed."
12584 msgstr ""
12585
12586 # type: textblock
12587 #. type: textblock
12588 #: ../src/guestfs-actions.pod:3178 ../fish/guestfish-actions.pod:2233
12589 msgid ""
12590 "This function cannot decrypt encrypted disks.  The caller must do that first "
12591 "(supplying the necessary keys) if the disk is encrypted."
12592 msgstr ""
12593
12594 # type: textblock
12595 #. type: textblock
12596 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3469
12597 #: ../src/guestfs-actions.pod:3531
12598 msgid "See also C<guestfs_list_filesystems>."
12599 msgstr ""
12600
12601 # type: =head2
12602 #. type: =head2
12603 #: ../src/guestfs-actions.pod:3192
12604 msgid "guestfs_is_blockdev"
12605 msgstr ""
12606
12607 # type: verbatim
12608 #. type: verbatim
12609 #: ../src/guestfs-actions.pod:3194
12610 #, no-wrap
12611 msgid ""
12612 " int\n"
12613 " guestfs_is_blockdev (guestfs_h *g,\n"
12614 "                      const char *path);\n"
12615 "\n"
12616 msgstr ""
12617
12618 # type: textblock
12619 #. type: textblock
12620 #: ../src/guestfs-actions.pod:3198 ../fish/guestfish-actions.pod:2245
12621 msgid ""
12622 "This returns C<true> if and only if there is a block device with the given "
12623 "C<path> name."
12624 msgstr ""
12625
12626 # type: textblock
12627 #. type: textblock
12628 #: ../src/guestfs-actions.pod:3201 ../src/guestfs-actions.pod:3230
12629 #: ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3275
12630 #: ../src/guestfs-actions.pod:3291 ../src/guestfs-actions.pod:3347
12631 #: ../src/guestfs-actions.pod:3362
12632 msgid "See also C<guestfs_stat>."
12633 msgstr ""
12634
12635 # type: textblock
12636 #. type: textblock
12637 #: ../src/guestfs-actions.pod:3205 ../src/guestfs-actions.pod:3234
12638 #: ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:3351
12639 #: ../src/guestfs-actions.pod:3366
12640 msgid "(Added in 1.5.10)"
12641 msgstr ""
12642
12643 # type: =head2
12644 #. type: =head2
12645 #: ../src/guestfs-actions.pod:3207
12646 msgid "guestfs_is_busy"
12647 msgstr ""
12648
12649 # type: verbatim
12650 #. type: verbatim
12651 #: ../src/guestfs-actions.pod:3209
12652 #, no-wrap
12653 msgid ""
12654 " int\n"
12655 " guestfs_is_busy (guestfs_h *g);\n"
12656 "\n"
12657 msgstr ""
12658
12659 # type: textblock
12660 #. type: textblock
12661 #: ../src/guestfs-actions.pod:3212 ../fish/guestfish-actions.pod:2254
12662 msgid ""
12663 "This returns true iff this handle is busy processing a command (in the "
12664 "C<BUSY> state)."
12665 msgstr ""
12666
12667 # type: =head2
12668 #. type: =head2
12669 #: ../src/guestfs-actions.pod:3221
12670 msgid "guestfs_is_chardev"
12671 msgstr ""
12672
12673 # type: verbatim
12674 #. type: verbatim
12675 #: ../src/guestfs-actions.pod:3223
12676 #, no-wrap
12677 msgid ""
12678 " int\n"
12679 " guestfs_is_chardev (guestfs_h *g,\n"
12680 "                     const char *path);\n"
12681 "\n"
12682 msgstr ""
12683
12684 # type: textblock
12685 #. type: textblock
12686 #: ../src/guestfs-actions.pod:3227 ../fish/guestfish-actions.pod:2263
12687 msgid ""
12688 "This returns C<true> if and only if there is a character device with the "
12689 "given C<path> name."
12690 msgstr ""
12691
12692 # type: =head2
12693 #. type: =head2
12694 #: ../src/guestfs-actions.pod:3236
12695 msgid "guestfs_is_config"
12696 msgstr ""
12697
12698 # type: verbatim
12699 #. type: verbatim
12700 #: ../src/guestfs-actions.pod:3238
12701 #, no-wrap
12702 msgid ""
12703 " int\n"
12704 " guestfs_is_config (guestfs_h *g);\n"
12705 "\n"
12706 msgstr ""
12707
12708 # type: textblock
12709 #. type: textblock
12710 #: ../src/guestfs-actions.pod:3241 ../fish/guestfish-actions.pod:2272
12711 msgid ""
12712 "This returns true iff this handle is being configured (in the C<CONFIG> "
12713 "state)."
12714 msgstr ""
12715
12716 # type: =head2
12717 #. type: =head2
12718 #: ../src/guestfs-actions.pod:3250
12719 msgid "guestfs_is_dir"
12720 msgstr ""
12721
12722 # type: verbatim
12723 #. type: verbatim
12724 #: ../src/guestfs-actions.pod:3252
12725 #, no-wrap
12726 msgid ""
12727 " int\n"
12728 " guestfs_is_dir (guestfs_h *g,\n"
12729 "                 const char *path);\n"
12730 "\n"
12731 msgstr ""
12732
12733 # type: textblock
12734 #. type: textblock
12735 #: ../src/guestfs-actions.pod:3256 ../fish/guestfish-actions.pod:2281
12736 msgid ""
12737 "This returns C<true> if and only if there is a directory with the given "
12738 "C<path> name.  Note that it returns false for other objects like files."
12739 msgstr ""
12740
12741 # type: =head2
12742 #. type: =head2
12743 #: ../src/guestfs-actions.pod:3266
12744 msgid "guestfs_is_fifo"
12745 msgstr ""
12746
12747 # type: verbatim
12748 #. type: verbatim
12749 #: ../src/guestfs-actions.pod:3268
12750 #, no-wrap
12751 msgid ""
12752 " int\n"
12753 " guestfs_is_fifo (guestfs_h *g,\n"
12754 "                  const char *path);\n"
12755 "\n"
12756 msgstr ""
12757
12758 # type: textblock
12759 #. type: textblock
12760 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2291
12761 msgid ""
12762 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12763 "given C<path> name."
12764 msgstr ""
12765
12766 # type: =head2
12767 #. type: =head2
12768 #: ../src/guestfs-actions.pod:3281
12769 msgid "guestfs_is_file"
12770 msgstr ""
12771
12772 # type: verbatim
12773 #. type: verbatim
12774 #: ../src/guestfs-actions.pod:3283
12775 #, no-wrap
12776 msgid ""
12777 " int\n"
12778 " guestfs_is_file (guestfs_h *g,\n"
12779 "                  const char *path);\n"
12780 "\n"
12781 msgstr ""
12782
12783 # type: textblock
12784 #. type: textblock
12785 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2300
12786 msgid ""
12787 "This returns C<true> if and only if there is a regular file with the given "
12788 "C<path> name.  Note that it returns false for other objects like directories."
12789 msgstr ""
12790
12791 # type: =head2
12792 #. type: =head2
12793 #: ../src/guestfs-actions.pod:3297
12794 msgid "guestfs_is_launching"
12795 msgstr ""
12796
12797 # type: verbatim
12798 #. type: verbatim
12799 #: ../src/guestfs-actions.pod:3299
12800 #, no-wrap
12801 msgid ""
12802 " int\n"
12803 " guestfs_is_launching (guestfs_h *g);\n"
12804 "\n"
12805 msgstr ""
12806
12807 # type: textblock
12808 #. type: textblock
12809 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2310
12810 msgid ""
12811 "This returns true iff this handle is launching the subprocess (in the "
12812 "C<LAUNCHING> state)."
12813 msgstr ""
12814
12815 # type: =head2
12816 #. type: =head2
12817 #: ../src/guestfs-actions.pod:3311
12818 msgid "guestfs_is_lv"
12819 msgstr ""
12820
12821 # type: verbatim
12822 #. type: verbatim
12823 #: ../src/guestfs-actions.pod:3313
12824 #, no-wrap
12825 msgid ""
12826 " int\n"
12827 " guestfs_is_lv (guestfs_h *g,\n"
12828 "                const char *device);\n"
12829 "\n"
12830 msgstr ""
12831
12832 # type: textblock
12833 #. type: textblock
12834 #: ../src/guestfs-actions.pod:3317 ../fish/guestfish-actions.pod:2319
12835 msgid ""
12836 "This command tests whether C<device> is a logical volume, and returns true "
12837 "iff this is the case."
12838 msgstr ""
12839
12840 # type: =head2
12841 #. type: =head2
12842 #: ../src/guestfs-actions.pod:3324
12843 msgid "guestfs_is_ready"
12844 msgstr ""
12845
12846 # type: verbatim
12847 #. type: verbatim
12848 #: ../src/guestfs-actions.pod:3326
12849 #, no-wrap
12850 msgid ""
12851 " int\n"
12852 " guestfs_is_ready (guestfs_h *g);\n"
12853 "\n"
12854 msgstr ""
12855
12856 # type: textblock
12857 #. type: textblock
12858 #: ../src/guestfs-actions.pod:3329 ../fish/guestfish-actions.pod:2326
12859 msgid ""
12860 "This returns true iff this handle is ready to accept commands (in the "
12861 "C<READY> state)."
12862 msgstr ""
12863
12864 # type: =head2
12865 #. type: =head2
12866 #: ../src/guestfs-actions.pod:3338
12867 msgid "guestfs_is_socket"
12868 msgstr ""
12869
12870 # type: verbatim
12871 #. type: verbatim
12872 #: ../src/guestfs-actions.pod:3340
12873 #, no-wrap
12874 msgid ""
12875 " int\n"
12876 " guestfs_is_socket (guestfs_h *g,\n"
12877 "                    const char *path);\n"
12878 "\n"
12879 msgstr ""
12880
12881 # type: textblock
12882 #. type: textblock
12883 #: ../src/guestfs-actions.pod:3344 ../fish/guestfish-actions.pod:2335
12884 msgid ""
12885 "This returns C<true> if and only if there is a Unix domain socket with the "
12886 "given C<path> name."
12887 msgstr ""
12888
12889 # type: =head2
12890 #. type: =head2
12891 #: ../src/guestfs-actions.pod:3353
12892 msgid "guestfs_is_symlink"
12893 msgstr ""
12894
12895 # type: verbatim
12896 #. type: verbatim
12897 #: ../src/guestfs-actions.pod:3355
12898 #, no-wrap
12899 msgid ""
12900 " int\n"
12901 " guestfs_is_symlink (guestfs_h *g,\n"
12902 "                     const char *path);\n"
12903 "\n"
12904 msgstr ""
12905
12906 # type: textblock
12907 #. type: textblock
12908 #: ../src/guestfs-actions.pod:3359 ../fish/guestfish-actions.pod:2344
12909 msgid ""
12910 "This returns C<true> if and only if there is a symbolic link with the given "
12911 "C<path> name."
12912 msgstr ""
12913
12914 # type: =head2
12915 #. type: =head2
12916 #: ../src/guestfs-actions.pod:3368
12917 msgid "guestfs_kill_subprocess"
12918 msgstr ""
12919
12920 # type: verbatim
12921 #. type: verbatim
12922 #: ../src/guestfs-actions.pod:3370
12923 #, no-wrap
12924 msgid ""
12925 " int\n"
12926 " guestfs_kill_subprocess (guestfs_h *g);\n"
12927 "\n"
12928 msgstr ""
12929
12930 # type: textblock
12931 #. type: textblock
12932 #: ../src/guestfs-actions.pod:3373 ../fish/guestfish-actions.pod:2353
12933 msgid "This kills the qemu subprocess.  You should never need to call this."
12934 msgstr ""
12935
12936 # type: =head2
12937 #. type: =head2
12938 #: ../src/guestfs-actions.pod:3379
12939 msgid "guestfs_launch"
12940 msgstr ""
12941
12942 # type: verbatim
12943 #. type: verbatim
12944 #: ../src/guestfs-actions.pod:3381
12945 #, no-wrap
12946 msgid ""
12947 " int\n"
12948 " guestfs_launch (guestfs_h *g);\n"
12949 "\n"
12950 msgstr ""
12951
12952 # type: textblock
12953 #. type: textblock
12954 #: ../src/guestfs-actions.pod:3384 ../fish/guestfish-actions.pod:2361
12955 msgid ""
12956 "Internally libguestfs is implemented by running a virtual machine using "
12957 "L<qemu(1)>."
12958 msgstr ""
12959
12960 # type: textblock
12961 #. type: textblock
12962 #: ../src/guestfs-actions.pod:3387 ../fish/guestfish-actions.pod:2364
12963 msgid ""
12964 "You should call this after configuring the handle (eg. adding drives) but "
12965 "before performing any actions."
12966 msgstr ""
12967
12968 # type: =head2
12969 #. type: =head2
12970 #: ../src/guestfs-actions.pod:3394
12971 msgid "guestfs_lchown"
12972 msgstr ""
12973
12974 # type: verbatim
12975 #. type: verbatim
12976 #: ../src/guestfs-actions.pod:3396
12977 #, no-wrap
12978 msgid ""
12979 " int\n"
12980 " guestfs_lchown (guestfs_h *g,\n"
12981 "                 int owner,\n"
12982 "                 int group,\n"
12983 "                 const char *path);\n"
12984 "\n"
12985 msgstr ""
12986
12987 # type: textblock
12988 #. type: textblock
12989 #: ../src/guestfs-actions.pod:3402
12990 msgid ""
12991 "Change the file owner to C<owner> and group to C<group>.  This is like "
12992 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12993 "changed, not the target."
12994 msgstr ""
12995
12996 # type: =head2
12997 #. type: =head2
12998 #: ../src/guestfs-actions.pod:3414
12999 msgid "guestfs_lgetxattr"
13000 msgstr ""
13001
13002 # type: verbatim
13003 #. type: verbatim
13004 #: ../src/guestfs-actions.pod:3416
13005 #, no-wrap
13006 msgid ""
13007 " char *\n"
13008 " guestfs_lgetxattr (guestfs_h *g,\n"
13009 "                    const char *path,\n"
13010 "                    const char *name,\n"
13011 "                    size_t *size_r);\n"
13012 "\n"
13013 msgstr ""
13014
13015 # type: textblock
13016 #. type: textblock
13017 #: ../src/guestfs-actions.pod:3422 ../fish/guestfish-actions.pod:2383
13018 msgid ""
13019 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13020 "is a symlink, then this call returns an extended attribute from the symlink."
13021 msgstr ""
13022
13023 # type: textblock
13024 #. type: textblock
13025 #: ../src/guestfs-actions.pod:3436
13026 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13027 msgstr ""
13028
13029 # type: =head2
13030 #. type: =head2
13031 #: ../src/guestfs-actions.pod:3444
13032 msgid "guestfs_lgetxattrs"
13033 msgstr ""
13034
13035 # type: verbatim
13036 #. type: verbatim
13037 #: ../src/guestfs-actions.pod:3446
13038 #, no-wrap
13039 msgid ""
13040 " struct guestfs_xattr_list *\n"
13041 " guestfs_lgetxattrs (guestfs_h *g,\n"
13042 "                     const char *path);\n"
13043 "\n"
13044 msgstr ""
13045
13046 # type: textblock
13047 #. type: textblock
13048 #: ../src/guestfs-actions.pod:3450
13049 msgid ""
13050 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13051 "then it returns the extended attributes of the link itself."
13052 msgstr ""
13053
13054 # type: =head2
13055 #. type: =head2
13056 #: ../src/guestfs-actions.pod:3460
13057 msgid "guestfs_list_devices"
13058 msgstr ""
13059
13060 # type: verbatim
13061 #. type: verbatim
13062 #: ../src/guestfs-actions.pod:3462
13063 #, no-wrap
13064 msgid ""
13065 " char **\n"
13066 " guestfs_list_devices (guestfs_h *g);\n"
13067 "\n"
13068 msgstr ""
13069
13070 # type: textblock
13071 #. type: textblock
13072 #: ../src/guestfs-actions.pod:3465 ../fish/guestfish-actions.pod:2411
13073 msgid "List all the block devices."
13074 msgstr ""
13075
13076 # type: textblock
13077 #. type: textblock
13078 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2413
13079 msgid "The full block device names are returned, eg. C</dev/sda>."
13080 msgstr ""
13081
13082 # type: =head2
13083 #. type: =head2
13084 #: ../src/guestfs-actions.pod:3477
13085 msgid "guestfs_list_filesystems"
13086 msgstr ""
13087
13088 # type: verbatim
13089 #. type: verbatim
13090 #: ../src/guestfs-actions.pod:3479
13091 #, no-wrap
13092 msgid ""
13093 " char **\n"
13094 " guestfs_list_filesystems (guestfs_h *g);\n"
13095 "\n"
13096 msgstr ""
13097
13098 # type: textblock
13099 #. type: textblock
13100 #: ../src/guestfs-actions.pod:3482 ../fish/guestfish-actions.pod:2421
13101 msgid ""
13102 "This inspection command looks for filesystems on partitions, block devices "
13103 "and logical volumes, returning a list of devices containing filesystems and "
13104 "their type."
13105 msgstr ""
13106
13107 # type: textblock
13108 #. type: textblock
13109 #: ../src/guestfs-actions.pod:3486 ../fish/guestfish-actions.pod:2425
13110 msgid ""
13111 "The return value is a hash, where the keys are the devices containing "
13112 "filesystems, and the values are the filesystem types.  For example:"
13113 msgstr ""
13114
13115 # type: verbatim
13116 #. type: verbatim
13117 #: ../src/guestfs-actions.pod:3490 ../fish/guestfish-actions.pod:2429
13118 #, no-wrap
13119 msgid ""
13120 " \"/dev/sda1\" => \"ntfs\"\n"
13121 " \"/dev/sda2\" => \"ext2\"\n"
13122 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13123 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13124 "\n"
13125 msgstr ""
13126
13127 # type: textblock
13128 #. type: textblock
13129 #: ../src/guestfs-actions.pod:3495 ../fish/guestfish-actions.pod:2434
13130 msgid ""
13131 "The value can have the special value \"unknown\", meaning the content of the "
13132 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13133 msgstr ""
13134
13135 # type: textblock
13136 #. type: textblock
13137 #: ../src/guestfs-actions.pod:3499
13138 msgid ""
13139 "This command runs other libguestfs commands, which might include "
13140 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13141 "soon after launch and only when nothing is mounted."
13142 msgstr ""
13143
13144 # type: textblock
13145 #. type: textblock
13146 #: ../src/guestfs-actions.pod:3503
13147 msgid ""
13148 "Not all of the filesystems returned will be mountable.  In particular, swap "
13149 "partitions are returned in the list.  Also this command does not check that "
13150 "each filesystem found is valid and mountable, and some filesystems might be "
13151 "mountable but require special options.  Filesystems may not all belong to a "
13152 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13153 msgstr ""
13154
13155 # type: textblock
13156 #. type: textblock
13157 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:5122
13158 msgid "(Added in 1.5.15)"
13159 msgstr ""
13160
13161 # type: =head2
13162 #. type: =head2
13163 #: ../src/guestfs-actions.pod:3519
13164 msgid "guestfs_list_partitions"
13165 msgstr ""
13166
13167 # type: verbatim
13168 #. type: verbatim
13169 #: ../src/guestfs-actions.pod:3521
13170 #, no-wrap
13171 msgid ""
13172 " char **\n"
13173 " guestfs_list_partitions (guestfs_h *g);\n"
13174 "\n"
13175 msgstr ""
13176
13177 # type: textblock
13178 #. type: textblock
13179 #: ../src/guestfs-actions.pod:3524 ../fish/guestfish-actions.pod:2454
13180 msgid "List all the partitions detected on all block devices."
13181 msgstr ""
13182
13183 # type: textblock
13184 #. type: textblock
13185 #: ../src/guestfs-actions.pod:3526 ../fish/guestfish-actions.pod:2456
13186 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13187 msgstr ""
13188
13189 # type: textblock
13190 #. type: textblock
13191 #: ../src/guestfs-actions.pod:3528
13192 msgid ""
13193 "This does not return logical volumes.  For that you will need to call "
13194 "C<guestfs_lvs>."
13195 msgstr ""
13196
13197 # type: =head2
13198 #. type: =head2
13199 #: ../src/guestfs-actions.pod:3539
13200 msgid "guestfs_ll"
13201 msgstr ""
13202
13203 # type: verbatim
13204 #. type: verbatim
13205 #: ../src/guestfs-actions.pod:3541
13206 #, no-wrap
13207 msgid ""
13208 " char *\n"
13209 " guestfs_ll (guestfs_h *g,\n"
13210 "             const char *directory);\n"
13211 "\n"
13212 msgstr ""
13213
13214 # type: textblock
13215 #. type: textblock
13216 #: ../src/guestfs-actions.pod:3545 ../fish/guestfish-actions.pod:2467
13217 msgid ""
13218 "List the files in C<directory> (relative to the root directory, there is no "
13219 "cwd) in the format of 'ls -la'."
13220 msgstr ""
13221
13222 # type: textblock
13223 #. type: textblock
13224 #: ../src/guestfs-actions.pod:3548 ../fish/guestfish-actions.pod:2470
13225 msgid ""
13226 "This command is mostly useful for interactive sessions.  It is I<not> "
13227 "intended that you try to parse the output string."
13228 msgstr ""
13229
13230 # type: =head2
13231 #. type: =head2
13232 #: ../src/guestfs-actions.pod:3556
13233 msgid "guestfs_ln"
13234 msgstr ""
13235
13236 # type: verbatim
13237 #. type: verbatim
13238 #: ../src/guestfs-actions.pod:3558
13239 #, no-wrap
13240 msgid ""
13241 " int\n"
13242 " guestfs_ln (guestfs_h *g,\n"
13243 "             const char *target,\n"
13244 "             const char *linkname);\n"
13245 "\n"
13246 msgstr ""
13247
13248 # type: textblock
13249 #. type: textblock
13250 #: ../src/guestfs-actions.pod:3563 ../fish/guestfish-actions.pod:2477
13251 msgid "This command creates a hard link using the C<ln> command."
13252 msgstr ""
13253
13254 # type: =head2
13255 #. type: =head2
13256 #: ../src/guestfs-actions.pod:3569
13257 msgid "guestfs_ln_f"
13258 msgstr ""
13259
13260 # type: verbatim
13261 #. type: verbatim
13262 #: ../src/guestfs-actions.pod:3571
13263 #, no-wrap
13264 msgid ""
13265 " int\n"
13266 " guestfs_ln_f (guestfs_h *g,\n"
13267 "               const char *target,\n"
13268 "               const char *linkname);\n"
13269 "\n"
13270 msgstr ""
13271
13272 # type: textblock
13273 #. type: textblock
13274 #: ../src/guestfs-actions.pod:3576 ../fish/guestfish-actions.pod:2483
13275 msgid ""
13276 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
13277 "option removes the link (C<linkname>) if it exists already."
13278 msgstr ""
13279
13280 # type: =head2
13281 #. type: =head2
13282 #: ../src/guestfs-actions.pod:3583
13283 msgid "guestfs_ln_s"
13284 msgstr ""
13285
13286 # type: verbatim
13287 #. type: verbatim
13288 #: ../src/guestfs-actions.pod:3585
13289 #, no-wrap
13290 msgid ""
13291 " int\n"
13292 " guestfs_ln_s (guestfs_h *g,\n"
13293 "               const char *target,\n"
13294 "               const char *linkname);\n"
13295 "\n"
13296 msgstr ""
13297
13298 # type: textblock
13299 #. type: textblock
13300 #: ../src/guestfs-actions.pod:3590 ../fish/guestfish-actions.pod:2490
13301 msgid "This command creates a symbolic link using the C<ln -s> command."
13302 msgstr ""
13303
13304 # type: =head2
13305 #. type: =head2
13306 #: ../src/guestfs-actions.pod:3596
13307 msgid "guestfs_ln_sf"
13308 msgstr ""
13309
13310 # type: verbatim
13311 #. type: verbatim
13312 #: ../src/guestfs-actions.pod:3598
13313 #, no-wrap
13314 msgid ""
13315 " int\n"
13316 " guestfs_ln_sf (guestfs_h *g,\n"
13317 "                const char *target,\n"
13318 "                const char *linkname);\n"
13319 "\n"
13320 msgstr ""
13321
13322 # type: textblock
13323 #. type: textblock
13324 #: ../src/guestfs-actions.pod:3603 ../fish/guestfish-actions.pod:2496
13325 msgid ""
13326 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
13327 "option removes the link (C<linkname>) if it exists already."
13328 msgstr ""
13329
13330 # type: =head2
13331 #. type: =head2
13332 #: ../src/guestfs-actions.pod:3610
13333 msgid "guestfs_lremovexattr"
13334 msgstr ""
13335
13336 # type: verbatim
13337 #. type: verbatim
13338 #: ../src/guestfs-actions.pod:3612
13339 #, no-wrap
13340 msgid ""
13341 " int\n"
13342 " guestfs_lremovexattr (guestfs_h *g,\n"
13343 "                       const char *xattr,\n"
13344 "                       const char *path);\n"
13345 "\n"
13346 msgstr ""
13347
13348 # type: textblock
13349 #. type: textblock
13350 #: ../src/guestfs-actions.pod:3617
13351 msgid ""
13352 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13353 "link, then it removes an extended attribute of the link itself."
13354 msgstr ""
13355
13356 # type: =head2
13357 #. type: =head2
13358 #: ../src/guestfs-actions.pod:3625
13359 msgid "guestfs_ls"
13360 msgstr ""
13361
13362 # type: verbatim
13363 #. type: verbatim
13364 #: ../src/guestfs-actions.pod:3627
13365 #, no-wrap
13366 msgid ""
13367 " char **\n"
13368 " guestfs_ls (guestfs_h *g,\n"
13369 "             const char *directory);\n"
13370 "\n"
13371 msgstr ""
13372
13373 # type: textblock
13374 #. type: textblock
13375 #: ../src/guestfs-actions.pod:3631 ../fish/guestfish-actions.pod:2511
13376 msgid ""
13377 "List the files in C<directory> (relative to the root directory, there is no "
13378 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13379 msgstr ""
13380
13381 # type: textblock
13382 #. type: textblock
13383 #: ../src/guestfs-actions.pod:3635
13384 msgid ""
13385 "This command is mostly useful for interactive sessions.  Programs should "
13386 "probably use C<guestfs_readdir> instead."
13387 msgstr ""
13388
13389 # type: =head2
13390 #. type: =head2
13391 #: ../src/guestfs-actions.pod:3644
13392 msgid "guestfs_lsetxattr"
13393 msgstr ""
13394
13395 # type: verbatim
13396 #. type: verbatim
13397 #: ../src/guestfs-actions.pod:3646
13398 #, no-wrap
13399 msgid ""
13400 " int\n"
13401 " guestfs_lsetxattr (guestfs_h *g,\n"
13402 "                    const char *xattr,\n"
13403 "                    const char *val,\n"
13404 "                    int vallen,\n"
13405 "                    const char *path);\n"
13406 "\n"
13407 msgstr ""
13408
13409 # type: textblock
13410 #. type: textblock
13411 #: ../src/guestfs-actions.pod:3653
13412 msgid ""
13413 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13414 "then it sets an extended attribute of the link itself."
13415 msgstr ""
13416
13417 # type: =head2
13418 #. type: =head2
13419 #: ../src/guestfs-actions.pod:3661
13420 msgid "guestfs_lstat"
13421 msgstr ""
13422
13423 # type: verbatim
13424 #. type: verbatim
13425 #: ../src/guestfs-actions.pod:3663
13426 #, no-wrap
13427 msgid ""
13428 " struct guestfs_stat *\n"
13429 " guestfs_lstat (guestfs_h *g,\n"
13430 "                const char *path);\n"
13431 "\n"
13432 msgstr ""
13433
13434 # type: textblock
13435 #. type: textblock
13436 #: ../src/guestfs-actions.pod:3667 ../src/guestfs-actions.pod:6225
13437 #: ../fish/guestfish-actions.pod:2530 ../fish/guestfish-actions.pod:4199
13438 msgid "Returns file information for the given C<path>."
13439 msgstr ""
13440
13441 # type: textblock
13442 #. type: textblock
13443 #: ../src/guestfs-actions.pod:3669
13444 msgid ""
13445 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13446 "link, then the link is stat-ed, not the file it refers to."
13447 msgstr ""
13448
13449 # type: textblock
13450 #. type: textblock
13451 #: ../src/guestfs-actions.pod:3673 ../fish/guestfish-actions.pod:2536
13452 msgid "This is the same as the C<lstat(2)> system call."
13453 msgstr ""
13454
13455 # type: textblock
13456 #. type: textblock
13457 #: ../src/guestfs-actions.pod:3675 ../src/guestfs-actions.pod:6229
13458 msgid ""
13459 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
13460 "error.  I<The caller must call C<guestfs_free_stat> after use>."
13461 msgstr ""
13462
13463 # type: textblock
13464 #. type: textblock
13465 #: ../src/guestfs-actions.pod:3679 ../src/guestfs-actions.pod:6233
13466 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6632
13467 msgid "(Added in 0.9.2)"
13468 msgstr ""
13469
13470 # type: =head2
13471 #. type: =head2
13472 #: ../src/guestfs-actions.pod:3681
13473 msgid "guestfs_lstatlist"
13474 msgstr ""
13475
13476 # type: verbatim
13477 #. type: verbatim
13478 #: ../src/guestfs-actions.pod:3683
13479 #, no-wrap
13480 msgid ""
13481 " struct guestfs_stat_list *\n"
13482 " guestfs_lstatlist (guestfs_h *g,\n"
13483 "                    const char *path,\n"
13484 "                    char *const *names);\n"
13485 "\n"
13486 msgstr ""
13487
13488 # type: textblock
13489 #. type: textblock
13490 #: ../src/guestfs-actions.pod:3688
13491 msgid ""
13492 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
13493 "files, where all files are in the directory C<path>.  C<names> is the list "
13494 "of files from this directory."
13495 msgstr ""
13496
13497 # type: textblock
13498 #. type: textblock
13499 #: ../src/guestfs-actions.pod:3692 ../fish/guestfish-actions.pod:2546
13500 msgid ""
13501 "On return you get a list of stat structs, with a one-to-one correspondence "
13502 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13503 "then the C<ino> field of that structure is set to C<-1>."
13504 msgstr ""
13505
13506 # type: textblock
13507 #. type: textblock
13508 #: ../src/guestfs-actions.pod:3697
13509 msgid ""
13510 "This call is intended for programs that want to efficiently list a directory "
13511 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
13512 "for a similarly efficient call for getting extended attributes.  Very long "
13513 "directory listings might cause the protocol message size to be exceeded, "
13514 "causing this call to fail.  The caller must split up such requests into "
13515 "smaller groups of names."
13516 msgstr ""
13517
13518 # type: textblock
13519 #. type: textblock
13520 #: ../src/guestfs-actions.pod:3705
13521 msgid ""
13522 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
13523 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
13524 msgstr ""
13525
13526 # type: =head2
13527 #. type: =head2
13528 #: ../src/guestfs-actions.pod:3711
13529 msgid "guestfs_luks_add_key"
13530 msgstr ""
13531
13532 # type: verbatim
13533 #. type: verbatim
13534 #: ../src/guestfs-actions.pod:3713
13535 #, no-wrap
13536 msgid ""
13537 " int\n"
13538 " guestfs_luks_add_key (guestfs_h *g,\n"
13539 "                       const char *device,\n"
13540 "                       const char *key,\n"
13541 "                       const char *newkey,\n"
13542 "                       int keyslot);\n"
13543 "\n"
13544 msgstr ""
13545
13546 # type: textblock
13547 #. type: textblock
13548 #: ../src/guestfs-actions.pod:3720 ../fish/guestfish-actions.pod:2563
13549 msgid ""
13550 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13551 "existing key, and is used to access the device.  C<newkey> is the new key to "
13552 "add.  C<keyslot> is the key slot that will be replaced."
13553 msgstr ""
13554
13555 # type: textblock
13556 #. type: textblock
13557 #: ../src/guestfs-actions.pod:3725
13558 msgid ""
13559 "Note that if C<keyslot> already contains a key, then this command will "
13560 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
13561 msgstr ""
13562
13563 # type: textblock
13564 #. type: textblock
13565 #: ../src/guestfs-actions.pod:3731 ../src/guestfs-actions.pod:3771
13566 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:3814
13567 #: ../src/guestfs-actions.pod:3846 ../src/guestfs-actions.pod:3865
13568 msgid ""
13569 "This function takes a key or passphrase parameter which could contain "
13570 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
13571 "information."
13572 msgstr ""
13573
13574 # type: textblock
13575 #. type: textblock
13576 #: ../src/guestfs-actions.pod:3735 ../src/guestfs-actions.pod:3775
13577 #: ../src/guestfs-actions.pod:3798 ../src/guestfs-actions.pod:3818
13578 msgid "(Added in 1.5.2)"
13579 msgstr ""
13580
13581 # type: =head2
13582 #. type: =head2
13583 #: ../src/guestfs-actions.pod:3737
13584 msgid "guestfs_luks_close"
13585 msgstr ""
13586
13587 # type: verbatim
13588 #. type: verbatim
13589 #: ../src/guestfs-actions.pod:3739
13590 #, no-wrap
13591 msgid ""
13592 " int\n"
13593 " guestfs_luks_close (guestfs_h *g,\n"
13594 "                     const char *device);\n"
13595 "\n"
13596 msgstr ""
13597
13598 # type: textblock
13599 #. type: textblock
13600 #: ../src/guestfs-actions.pod:3743
13601 msgid ""
13602 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13603 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13604 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13605 "underlying block device."
13606 msgstr ""
13607
13608 # type: textblock
13609 #. type: textblock
13610 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3850
13611 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3919
13612 #: ../src/guestfs-actions.pod:3967
13613 msgid "(Added in 1.5.1)"
13614 msgstr ""
13615
13616 # type: =head2
13617 #. type: =head2
13618 #: ../src/guestfs-actions.pod:3753
13619 msgid "guestfs_luks_format"
13620 msgstr ""
13621
13622 # type: verbatim
13623 #. type: verbatim
13624 #: ../src/guestfs-actions.pod:3755
13625 #, no-wrap
13626 msgid ""
13627 " int\n"
13628 " guestfs_luks_format (guestfs_h *g,\n"
13629 "                      const char *device,\n"
13630 "                      const char *key,\n"
13631 "                      int keyslot);\n"
13632 "\n"
13633 msgstr ""
13634
13635 # type: textblock
13636 #. type: textblock
13637 #: ../src/guestfs-actions.pod:3761 ../fish/guestfish-actions.pod:2589
13638 msgid ""
13639 "This command erases existing data on C<device> and formats the device as a "
13640 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13641 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13642 msgstr ""
13643
13644 # type: textblock
13645 #. type: textblock
13646 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3791
13647 #: ../src/guestfs-actions.pod:3931 ../src/guestfs-actions.pod:4873
13648 #: ../src/guestfs-actions.pod:5653 ../src/guestfs-actions.pod:6060
13649 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6109
13650 #: ../src/guestfs-actions.pod:7269 ../fish/guestfish-actions.pod:2597
13651 #: ../fish/guestfish-actions.pod:2610 ../fish/guestfish-actions.pod:2694
13652 #: ../fish/guestfish-actions.pod:3268 ../fish/guestfish-actions.pod:3788
13653 #: ../fish/guestfish-actions.pod:4098 ../fish/guestfish-actions.pod:4114
13654 #: ../fish/guestfish-actions.pod:4129 ../fish/guestfish-actions.pod:4844
13655 msgid ""
13656 "B<This command is dangerous.  Without careful use you can easily destroy all "
13657 "your data>."
13658 msgstr ""
13659
13660 # type: =head2
13661 #. type: =head2
13662 #: ../src/guestfs-actions.pod:3777
13663 msgid "guestfs_luks_format_cipher"
13664 msgstr ""
13665
13666 # type: verbatim
13667 #. type: verbatim
13668 #: ../src/guestfs-actions.pod:3779
13669 #, no-wrap
13670 msgid ""
13671 " int\n"
13672 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13673 "                             const char *device,\n"
13674 "                             const char *key,\n"
13675 "                             int keyslot,\n"
13676 "                             const char *cipher);\n"
13677 "\n"
13678 msgstr ""
13679
13680 # type: textblock
13681 #. type: textblock
13682 #: ../src/guestfs-actions.pod:3786
13683 msgid ""
13684 "This command is the same as C<guestfs_luks_format> but it also allows you to "
13685 "set the C<cipher> used."
13686 msgstr ""
13687
13688 # type: =head2
13689 #. type: =head2
13690 #: ../src/guestfs-actions.pod:3800
13691 msgid "guestfs_luks_kill_slot"
13692 msgstr ""
13693
13694 # type: verbatim
13695 #. type: verbatim
13696 #: ../src/guestfs-actions.pod:3802
13697 #, no-wrap
13698 msgid ""
13699 " int\n"
13700 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13701 "                         const char *device,\n"
13702 "                         const char *key,\n"
13703 "                         int keyslot);\n"
13704 "\n"
13705 msgstr ""
13706
13707 # type: textblock
13708 #. type: textblock
13709 #: ../src/guestfs-actions.pod:3808 ../fish/guestfish-actions.pod:2617
13710 msgid ""
13711 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13712 "device C<device>.  C<key> must be one of the I<other> keys."
13713 msgstr ""
13714
13715 # type: =head2
13716 #. type: =head2
13717 #: ../src/guestfs-actions.pod:3820
13718 msgid "guestfs_luks_open"
13719 msgstr ""
13720
13721 # type: verbatim
13722 #. type: verbatim
13723 #: ../src/guestfs-actions.pod:3822
13724 #, no-wrap
13725 msgid ""
13726 " int\n"
13727 " guestfs_luks_open (guestfs_h *g,\n"
13728 "                    const char *device,\n"
13729 "                    const char *key,\n"
13730 "                    const char *mapname);\n"
13731 "\n"
13732 msgstr ""
13733
13734 # type: textblock
13735 #. type: textblock
13736 #: ../src/guestfs-actions.pod:3828 ../fish/guestfish-actions.pod:2628
13737 msgid ""
13738 "This command opens a block device which has been encrypted according to the "
13739 "Linux Unified Key Setup (LUKS) standard."
13740 msgstr ""
13741
13742 # type: textblock
13743 #. type: textblock
13744 #: ../src/guestfs-actions.pod:3831 ../fish/guestfish-actions.pod:2631
13745 msgid "C<device> is the encrypted block device or partition."
13746 msgstr ""
13747
13748 # type: textblock
13749 #. type: textblock
13750 #: ../src/guestfs-actions.pod:3833 ../fish/guestfish-actions.pod:2633
13751 msgid ""
13752 "The caller must supply one of the keys associated with the LUKS block "
13753 "device, in the C<key> parameter."
13754 msgstr ""
13755
13756 # type: textblock
13757 #. type: textblock
13758 #: ../src/guestfs-actions.pod:3836 ../fish/guestfish-actions.pod:2636
13759 msgid ""
13760 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13761 "writes to this block device are decrypted from and encrypted to the "
13762 "underlying C<device> respectively."
13763 msgstr ""
13764
13765 # type: textblock
13766 #. type: textblock
13767 #: ../src/guestfs-actions.pod:3840
13768 msgid ""
13769 "If this block device contains LVM volume groups, then calling "
13770 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13771 "visible."
13772 msgstr ""
13773
13774 # type: =head2
13775 #. type: =head2
13776 #: ../src/guestfs-actions.pod:3852
13777 msgid "guestfs_luks_open_ro"
13778 msgstr ""
13779
13780 # type: verbatim
13781 #. type: verbatim
13782 #: ../src/guestfs-actions.pod:3854
13783 #, no-wrap
13784 msgid ""
13785 " int\n"
13786 " guestfs_luks_open_ro (guestfs_h *g,\n"
13787 "                       const char *device,\n"
13788 "                       const char *key,\n"
13789 "                       const char *mapname);\n"
13790 "\n"
13791 msgstr ""
13792
13793 # type: textblock
13794 #. type: textblock
13795 #: ../src/guestfs-actions.pod:3860
13796 msgid ""
13797 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13798 "created."
13799 msgstr ""
13800
13801 # type: =head2
13802 #. type: =head2
13803 #: ../src/guestfs-actions.pod:3871
13804 msgid "guestfs_lvcreate"
13805 msgstr ""
13806
13807 # type: verbatim
13808 #. type: verbatim
13809 #: ../src/guestfs-actions.pod:3873
13810 #, no-wrap
13811 msgid ""
13812 " int\n"
13813 " guestfs_lvcreate (guestfs_h *g,\n"
13814 "                   const char *logvol,\n"
13815 "                   const char *volgroup,\n"
13816 "                   int mbytes);\n"
13817 "\n"
13818 msgstr ""
13819
13820 # type: textblock
13821 #. type: textblock
13822 #: ../src/guestfs-actions.pod:3879 ../fish/guestfish-actions.pod:2661
13823 msgid ""
13824 "This creates an LVM logical volume called C<logvol> on the volume group "
13825 "C<volgroup>, with C<size> megabytes."
13826 msgstr ""
13827
13828 # type: =head2
13829 #. type: =head2
13830 #: ../src/guestfs-actions.pod:3886
13831 msgid "guestfs_lvm_canonical_lv_name"
13832 msgstr ""
13833
13834 # type: verbatim
13835 #. type: verbatim
13836 #: ../src/guestfs-actions.pod:3888
13837 #, no-wrap
13838 msgid ""
13839 " char *\n"
13840 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13841 "                                const char *lvname);\n"
13842 "\n"
13843 msgstr ""
13844
13845 # type: textblock
13846 #. type: textblock
13847 #: ../src/guestfs-actions.pod:3892 ../fish/guestfish-actions.pod:2668
13848 msgid ""
13849 "This converts alternative naming schemes for LVs that you might find to the "
13850 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13851 "LV>."
13852 msgstr ""
13853
13854 # type: textblock
13855 #. type: textblock
13856 #: ../src/guestfs-actions.pod:3896 ../fish/guestfish-actions.pod:2672
13857 msgid ""
13858 "This command returns an error if the C<lvname> parameter does not refer to a "
13859 "logical volume."
13860 msgstr ""
13861
13862 # type: textblock
13863 #. type: textblock
13864 #: ../src/guestfs-actions.pod:3899
13865 msgid "See also C<guestfs_is_lv>."
13866 msgstr ""
13867
13868 # type: textblock
13869 #. type: textblock
13870 #: ../src/guestfs-actions.pod:3904
13871 msgid "(Added in 1.5.24)"
13872 msgstr ""
13873
13874 # type: =head2
13875 #. type: =head2
13876 #: ../src/guestfs-actions.pod:3906
13877 msgid "guestfs_lvm_clear_filter"
13878 msgstr ""
13879
13880 # type: verbatim
13881 #. type: verbatim
13882 #: ../src/guestfs-actions.pod:3908
13883 #, no-wrap
13884 msgid ""
13885 " int\n"
13886 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13887 "\n"
13888 msgstr ""
13889
13890 # type: textblock
13891 #. type: textblock
13892 #: ../src/guestfs-actions.pod:3911
13893 msgid ""
13894 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13895 "see every block device."
13896 msgstr ""
13897
13898 # type: textblock
13899 #. type: textblock
13900 #: ../src/guestfs-actions.pod:3914 ../src/guestfs-actions.pod:3956
13901 #: ../fish/guestfish-actions.pod:2684 ../fish/guestfish-actions.pod:2715
13902 msgid ""
13903 "This command also clears the LVM cache and performs a volume group scan."
13904 msgstr ""
13905
13906 # type: =head2
13907 #. type: =head2
13908 #: ../src/guestfs-actions.pod:3921
13909 msgid "guestfs_lvm_remove_all"
13910 msgstr ""
13911
13912 # type: verbatim
13913 #. type: verbatim
13914 #: ../src/guestfs-actions.pod:3923
13915 #, no-wrap
13916 msgid ""
13917 " int\n"
13918 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13919 "\n"
13920 msgstr ""
13921
13922 # type: textblock
13923 #. type: textblock
13924 #: ../src/guestfs-actions.pod:3926 ../fish/guestfish-actions.pod:2691
13925 msgid ""
13926 "This command removes all LVM logical volumes, volume groups and physical "
13927 "volumes."
13928 msgstr ""
13929
13930 # type: =head2
13931 #. type: =head2
13932 #: ../src/guestfs-actions.pod:3936
13933 msgid "guestfs_lvm_set_filter"
13934 msgstr ""
13935
13936 # type: verbatim
13937 #. type: verbatim
13938 #: ../src/guestfs-actions.pod:3938
13939 #, no-wrap
13940 msgid ""
13941 " int\n"
13942 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13943 "                         char *const *devices);\n"
13944 "\n"
13945 msgstr ""
13946
13947 # type: textblock
13948 #. type: textblock
13949 #: ../src/guestfs-actions.pod:3942 ../fish/guestfish-actions.pod:2701
13950 msgid ""
13951 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13952 "block devices in the list C<devices>, and will ignore all other attached "
13953 "block devices."
13954 msgstr ""
13955
13956 # type: textblock
13957 #. type: textblock
13958 #: ../src/guestfs-actions.pod:3946 ../fish/guestfish-actions.pod:2705
13959 msgid ""
13960 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13961 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13962 "there are two types of duplication possible: either cloned PVs/VGs which "
13963 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13964 "same name.  In normal operation you cannot create this situation, but you "
13965 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13966 "inside the LVM metadata."
13967 msgstr ""
13968
13969 # type: textblock
13970 #. type: textblock
13971 #: ../src/guestfs-actions.pod:3959 ../fish/guestfish-actions.pod:2718
13972 msgid "You can filter whole block devices or individual partitions."
13973 msgstr ""
13974
13975 # type: textblock
13976 #. type: textblock
13977 #: ../src/guestfs-actions.pod:3961 ../fish/guestfish-actions.pod:2720
13978 msgid ""
13979 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13980 "filesystem), even if you are not filtering out that VG."
13981 msgstr ""
13982
13983 # type: =head2
13984 #. type: =head2
13985 #: ../src/guestfs-actions.pod:3969
13986 msgid "guestfs_lvremove"
13987 msgstr ""
13988
13989 # type: verbatim
13990 #. type: verbatim
13991 #: ../src/guestfs-actions.pod:3971
13992 #, no-wrap
13993 msgid ""
13994 " int\n"
13995 " guestfs_lvremove (guestfs_h *g,\n"
13996 "                   const char *device);\n"
13997 "\n"
13998 msgstr ""
13999
14000 # type: textblock
14001 #. type: textblock
14002 #: ../src/guestfs-actions.pod:3975 ../fish/guestfish-actions.pod:2728
14003 msgid ""
14004 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14005 "LV, such as C</dev/VG/LV>."
14006 msgstr ""
14007
14008 # type: textblock
14009 #. type: textblock
14010 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2731
14011 msgid ""
14012 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14013 "dev/VG>."
14014 msgstr ""
14015
14016 # type: textblock
14017 #. type: textblock
14018 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:5219
14019 #: ../src/guestfs-actions.pod:7008
14020 msgid "(Added in 1.0.13)"
14021 msgstr ""
14022
14023 # type: =head2
14024 #. type: =head2
14025 #: ../src/guestfs-actions.pod:3985
14026 msgid "guestfs_lvrename"
14027 msgstr ""
14028
14029 # type: verbatim
14030 #. type: verbatim
14031 #: ../src/guestfs-actions.pod:3987
14032 #, no-wrap
14033 msgid ""
14034 " int\n"
14035 " guestfs_lvrename (guestfs_h *g,\n"
14036 "                   const char *logvol,\n"
14037 "                   const char *newlogvol);\n"
14038 "\n"
14039 msgstr ""
14040
14041 # type: textblock
14042 #. type: textblock
14043 #: ../src/guestfs-actions.pod:3992 ../fish/guestfish-actions.pod:2738
14044 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14045 msgstr ""
14046
14047 # type: textblock
14048 #. type: textblock
14049 #: ../src/guestfs-actions.pod:3996 ../src/guestfs-actions.pod:7021
14050 msgid "(Added in 1.0.83)"
14051 msgstr ""
14052
14053 # type: =head2
14054 #. type: =head2
14055 #: ../src/guestfs-actions.pod:3998
14056 msgid "guestfs_lvresize"
14057 msgstr ""
14058
14059 # type: verbatim
14060 #. type: verbatim
14061 #: ../src/guestfs-actions.pod:4000
14062 #, no-wrap
14063 msgid ""
14064 " int\n"
14065 " guestfs_lvresize (guestfs_h *g,\n"
14066 "                   const char *device,\n"
14067 "                   int mbytes);\n"
14068 "\n"
14069 msgstr ""
14070
14071 # type: textblock
14072 #. type: textblock
14073 #: ../src/guestfs-actions.pod:4005 ../fish/guestfish-actions.pod:2744
14074 msgid ""
14075 "This resizes (expands or shrinks) an existing LVM logical volume to "
14076 "C<mbytes>.  When reducing, data in the reduced part is lost."
14077 msgstr ""
14078
14079 # type: =head2
14080 #. type: =head2
14081 #: ../src/guestfs-actions.pod:4013
14082 msgid "guestfs_lvresize_free"
14083 msgstr ""
14084
14085 # type: verbatim
14086 #. type: verbatim
14087 #: ../src/guestfs-actions.pod:4015
14088 #, no-wrap
14089 msgid ""
14090 " int\n"
14091 " guestfs_lvresize_free (guestfs_h *g,\n"
14092 "                        const char *lv,\n"
14093 "                        int percent);\n"
14094 "\n"
14095 msgstr ""
14096
14097 # type: textblock
14098 #. type: textblock
14099 #: ../src/guestfs-actions.pod:4020 ../fish/guestfish-actions.pod:2752
14100 msgid ""
14101 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14102 "remaining free space in the volume group.  Commonly you would call this with "
14103 "pc = 100 which expands the logical volume as much as possible, using all "
14104 "remaining free space in the volume group."
14105 msgstr ""
14106
14107 # type: textblock
14108 #. type: textblock
14109 #: ../src/guestfs-actions.pod:4028
14110 msgid "(Added in 1.3.3)"
14111 msgstr ""
14112
14113 # type: =head2
14114 #. type: =head2
14115 #: ../src/guestfs-actions.pod:4030
14116 msgid "guestfs_lvs"
14117 msgstr ""
14118
14119 # type: verbatim
14120 #. type: verbatim
14121 #: ../src/guestfs-actions.pod:4032
14122 #, no-wrap
14123 msgid ""
14124 " char **\n"
14125 " guestfs_lvs (guestfs_h *g);\n"
14126 "\n"
14127 msgstr ""
14128
14129 # type: textblock
14130 #. type: textblock
14131 #: ../src/guestfs-actions.pod:4035 ../fish/guestfish-actions.pod:2762
14132 msgid ""
14133 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14134 "(8)> command."
14135 msgstr ""
14136
14137 # type: textblock
14138 #. type: textblock
14139 #: ../src/guestfs-actions.pod:4038 ../fish/guestfish-actions.pod:2765
14140 msgid ""
14141 "This returns a list of the logical volume device names (eg. C</dev/"
14142 "VolGroup00/LogVol00>)."
14143 msgstr ""
14144
14145 # type: textblock
14146 #. type: textblock
14147 #: ../src/guestfs-actions.pod:4041
14148 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14149 msgstr ""
14150
14151 # type: =head2
14152 #. type: =head2
14153 #: ../src/guestfs-actions.pod:4049
14154 msgid "guestfs_lvs_full"
14155 msgstr ""
14156
14157 # type: verbatim
14158 #. type: verbatim
14159 #: ../src/guestfs-actions.pod:4051
14160 #, no-wrap
14161 msgid ""
14162 " struct guestfs_lvm_lv_list *\n"
14163 " guestfs_lvs_full (guestfs_h *g);\n"
14164 "\n"
14165 msgstr ""
14166
14167 # type: textblock
14168 #. type: textblock
14169 #: ../src/guestfs-actions.pod:4054 ../fish/guestfish-actions.pod:2774
14170 msgid ""
14171 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14172 "(8)> command.  The \"full\" version includes all fields."
14173 msgstr ""
14174
14175 # type: textblock
14176 #. type: textblock
14177 #: ../src/guestfs-actions.pod:4057
14178 msgid ""
14179 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14180 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14181 msgstr ""
14182
14183 # type: =head2
14184 #. type: =head2
14185 #: ../src/guestfs-actions.pod:4063
14186 msgid "guestfs_lvuuid"
14187 msgstr ""
14188
14189 # type: verbatim
14190 #. type: verbatim
14191 #: ../src/guestfs-actions.pod:4065
14192 #, no-wrap
14193 msgid ""
14194 " char *\n"
14195 " guestfs_lvuuid (guestfs_h *g,\n"
14196 "                 const char *device);\n"
14197 "\n"
14198 msgstr ""
14199
14200 # type: textblock
14201 #. type: textblock
14202 #: ../src/guestfs-actions.pod:4069 ../fish/guestfish-actions.pod:2781
14203 msgid "This command returns the UUID of the LVM LV C<device>."
14204 msgstr ""
14205
14206 # type: =head2
14207 #. type: =head2
14208 #: ../src/guestfs-actions.pod:4076
14209 msgid "guestfs_lxattrlist"
14210 msgstr ""
14211
14212 # type: verbatim
14213 #. type: verbatim
14214 #: ../src/guestfs-actions.pod:4078
14215 #, no-wrap
14216 msgid ""
14217 " struct guestfs_xattr_list *\n"
14218 " guestfs_lxattrlist (guestfs_h *g,\n"
14219 "                     const char *path,\n"
14220 "                     char *const *names);\n"
14221 "\n"
14222 msgstr ""
14223
14224 # type: textblock
14225 #. type: textblock
14226 #: ../src/guestfs-actions.pod:4083 ../fish/guestfish-actions.pod:2787
14227 msgid ""
14228 "This call allows you to get the extended attributes of multiple files, where "
14229 "all files are in the directory C<path>.  C<names> is the list of files from "
14230 "this directory."
14231 msgstr ""
14232
14233 # type: textblock
14234 #. type: textblock
14235 #: ../src/guestfs-actions.pod:4087 ../fish/guestfish-actions.pod:2791
14236 msgid ""
14237 "On return you get a flat list of xattr structs which must be interpreted "
14238 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14239 "C<attrval> in this struct is zero-length to indicate there was an error "
14240 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14241 "number (the number of following attributes for this file, which could be C<"
14242 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14243 "for the first named file.  This repeats for the second and subsequent files."
14244 msgstr ""
14245
14246 # type: textblock
14247 #. type: textblock
14248 #: ../src/guestfs-actions.pod:4097
14249 msgid ""
14250 "This call is intended for programs that want to efficiently list a directory "
14251 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14252 "a similarly efficient call for getting standard stats.  Very long directory "
14253 "listings might cause the protocol message size to be exceeded, causing this "
14254 "call to fail.  The caller must split up such requests into smaller groups of "
14255 "names."
14256 msgstr ""
14257
14258 # type: =head2
14259 #. type: =head2
14260 #: ../src/guestfs-actions.pod:4111
14261 msgid "guestfs_mkdir"
14262 msgstr ""
14263
14264 # type: verbatim
14265 #. type: verbatim
14266 #: ../src/guestfs-actions.pod:4113
14267 #, no-wrap
14268 msgid ""
14269 " int\n"
14270 " guestfs_mkdir (guestfs_h *g,\n"
14271 "                const char *path);\n"
14272 "\n"
14273 msgstr ""
14274
14275 # type: textblock
14276 #. type: textblock
14277 #: ../src/guestfs-actions.pod:4117 ../fish/guestfish-actions.pod:2813
14278 msgid "Create a directory named C<path>."
14279 msgstr ""
14280
14281 # type: =head2
14282 #. type: =head2
14283 #: ../src/guestfs-actions.pod:4123
14284 msgid "guestfs_mkdir_mode"
14285 msgstr ""
14286
14287 # type: verbatim
14288 #. type: verbatim
14289 #: ../src/guestfs-actions.pod:4125
14290 #, no-wrap
14291 msgid ""
14292 " int\n"
14293 " guestfs_mkdir_mode (guestfs_h *g,\n"
14294 "                     const char *path,\n"
14295 "                     int mode);\n"
14296 "\n"
14297 msgstr ""
14298
14299 # type: textblock
14300 #. type: textblock
14301 #: ../src/guestfs-actions.pod:4130 ../fish/guestfish-actions.pod:2819
14302 msgid ""
14303 "This command creates a directory, setting the initial permissions of the "
14304 "directory to C<mode>."
14305 msgstr ""
14306
14307 # type: textblock
14308 #. type: textblock
14309 #: ../src/guestfs-actions.pod:4133 ../fish/guestfish-actions.pod:2822
14310 msgid ""
14311 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14312 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14313 "other ways."
14314 msgstr ""
14315
14316 # type: textblock
14317 #. type: textblock
14318 #: ../src/guestfs-actions.pod:4137
14319 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14320 msgstr ""
14321
14322 # type: =head2
14323 #. type: =head2
14324 #: ../src/guestfs-actions.pod:4143
14325 msgid "guestfs_mkdir_p"
14326 msgstr ""
14327
14328 # type: verbatim
14329 #. type: verbatim
14330 #: ../src/guestfs-actions.pod:4145
14331 #, no-wrap
14332 msgid ""
14333 " int\n"
14334 " guestfs_mkdir_p (guestfs_h *g,\n"
14335 "                  const char *path);\n"
14336 "\n"
14337 msgstr ""
14338
14339 # type: textblock
14340 #. type: textblock
14341 #: ../src/guestfs-actions.pod:4149 ../fish/guestfish-actions.pod:2832
14342 msgid ""
14343 "Create a directory named C<path>, creating any parent directories as "
14344 "necessary.  This is like the C<mkdir -p> shell command."
14345 msgstr ""
14346
14347 # type: =head2
14348 #. type: =head2
14349 #: ../src/guestfs-actions.pod:4156
14350 msgid "guestfs_mkdtemp"
14351 msgstr ""
14352
14353 # type: verbatim
14354 #. type: verbatim
14355 #: ../src/guestfs-actions.pod:4158
14356 #, no-wrap
14357 msgid ""
14358 " char *\n"
14359 " guestfs_mkdtemp (guestfs_h *g,\n"
14360 "                  const char *template);\n"
14361 "\n"
14362 msgstr ""
14363
14364 # type: textblock
14365 #. type: textblock
14366 #: ../src/guestfs-actions.pod:4162 ../fish/guestfish-actions.pod:2839
14367 msgid ""
14368 "This command creates a temporary directory.  The C<template> parameter "
14369 "should be a full pathname for the temporary directory name with the final "
14370 "six characters being \"XXXXXX\"."
14371 msgstr ""
14372
14373 # type: textblock
14374 #. type: textblock
14375 #: ../src/guestfs-actions.pod:4167 ../fish/guestfish-actions.pod:2844
14376 msgid ""
14377 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14378 "being suitable for Windows filesystems."
14379 msgstr ""
14380
14381 # type: textblock
14382 #. type: textblock
14383 #: ../src/guestfs-actions.pod:4170 ../fish/guestfish-actions.pod:2847
14384 msgid "The name of the temporary directory that was created is returned."
14385 msgstr ""
14386
14387 # type: textblock
14388 #. type: textblock
14389 #: ../src/guestfs-actions.pod:4173 ../fish/guestfish-actions.pod:2850
14390 msgid "The temporary directory is created with mode 0700 and is owned by root."
14391 msgstr ""
14392
14393 # type: textblock
14394 #. type: textblock
14395 #: ../src/guestfs-actions.pod:4176 ../fish/guestfish-actions.pod:2853
14396 msgid ""
14397 "The caller is responsible for deleting the temporary directory and its "
14398 "contents after use."
14399 msgstr ""
14400
14401 # type: textblock
14402 #. type: textblock
14403 #: ../src/guestfs-actions.pod:4179 ../fish/guestfish-actions.pod:2856
14404 msgid "See also: L<mkdtemp(3)>"
14405 msgstr ""
14406
14407 # type: =head2
14408 #. type: =head2
14409 #: ../src/guestfs-actions.pod:4186
14410 msgid "guestfs_mke2fs_J"
14411 msgstr ""
14412
14413 # type: verbatim
14414 #. type: verbatim
14415 #: ../src/guestfs-actions.pod:4188
14416 #, no-wrap
14417 msgid ""
14418 " int\n"
14419 " guestfs_mke2fs_J (guestfs_h *g,\n"
14420 "                   const char *fstype,\n"
14421 "                   int blocksize,\n"
14422 "                   const char *device,\n"
14423 "                   const char *journal);\n"
14424 "\n"
14425 msgstr ""
14426
14427 # type: textblock
14428 #. type: textblock
14429 #: ../src/guestfs-actions.pod:4195 ../fish/guestfish-actions.pod:2862
14430 msgid ""
14431 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14432 "C<journal>.  It is equivalent to the command:"
14433 msgstr ""
14434
14435 # type: verbatim
14436 #. type: verbatim
14437 #: ../src/guestfs-actions.pod:4199 ../fish/guestfish-actions.pod:2866
14438 #, no-wrap
14439 msgid ""
14440 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14441 "\n"
14442 msgstr ""
14443
14444 # type: textblock
14445 #. type: textblock
14446 #: ../src/guestfs-actions.pod:4201
14447 msgid "See also C<guestfs_mke2journal>."
14448 msgstr ""
14449
14450 # type: textblock
14451 #. type: textblock
14452 #: ../src/guestfs-actions.pod:4205 ../src/guestfs-actions.pod:4223
14453 #: ../src/guestfs-actions.pod:4241 ../src/guestfs-actions.pod:4257
14454 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:4285
14455 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4609
14456 msgid "(Added in 1.0.68)"
14457 msgstr ""
14458
14459 # type: =head2
14460 #. type: =head2
14461 #: ../src/guestfs-actions.pod:4207
14462 msgid "guestfs_mke2fs_JL"
14463 msgstr ""
14464
14465 # type: verbatim
14466 #. type: verbatim
14467 #: ../src/guestfs-actions.pod:4209
14468 #, no-wrap
14469 msgid ""
14470 " int\n"
14471 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14472 "                    const char *fstype,\n"
14473 "                    int blocksize,\n"
14474 "                    const char *device,\n"
14475 "                    const char *label);\n"
14476 "\n"
14477 msgstr ""
14478
14479 # type: textblock
14480 #. type: textblock
14481 #: ../src/guestfs-actions.pod:4216 ../fish/guestfish-actions.pod:2874
14482 msgid ""
14483 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14484 "the journal labeled C<label>."
14485 msgstr ""
14486
14487 # type: textblock
14488 #. type: textblock
14489 #: ../src/guestfs-actions.pod:4219
14490 msgid "See also C<guestfs_mke2journal_L>."
14491 msgstr ""
14492
14493 # type: =head2
14494 #. type: =head2
14495 #: ../src/guestfs-actions.pod:4225
14496 msgid "guestfs_mke2fs_JU"
14497 msgstr ""
14498
14499 # type: verbatim
14500 #. type: verbatim
14501 #: ../src/guestfs-actions.pod:4227
14502 #, no-wrap
14503 msgid ""
14504 " int\n"
14505 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14506 "                    const char *fstype,\n"
14507 "                    int blocksize,\n"
14508 "                    const char *device,\n"
14509 "                    const char *uuid);\n"
14510 "\n"
14511 msgstr ""
14512
14513 # type: textblock
14514 #. type: textblock
14515 #: ../src/guestfs-actions.pod:4234 ../fish/guestfish-actions.pod:2883
14516 msgid ""
14517 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14518 "the journal with UUID C<uuid>."
14519 msgstr ""
14520
14521 # type: textblock
14522 #. type: textblock
14523 #: ../src/guestfs-actions.pod:4237
14524 msgid "See also C<guestfs_mke2journal_U>."
14525 msgstr ""
14526
14527 # type: =head2
14528 #. type: =head2
14529 #: ../src/guestfs-actions.pod:4243
14530 msgid "guestfs_mke2journal"
14531 msgstr ""
14532
14533 # type: verbatim
14534 #. type: verbatim
14535 #: ../src/guestfs-actions.pod:4245
14536 #, no-wrap
14537 msgid ""
14538 " int\n"
14539 " guestfs_mke2journal (guestfs_h *g,\n"
14540 "                      int blocksize,\n"
14541 "                      const char *device);\n"
14542 "\n"
14543 msgstr ""
14544
14545 # type: textblock
14546 #. type: textblock
14547 #: ../src/guestfs-actions.pod:4250 ../fish/guestfish-actions.pod:2892
14548 msgid ""
14549 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14550 "command:"
14551 msgstr ""
14552
14553 # type: verbatim
14554 #. type: verbatim
14555 #: ../src/guestfs-actions.pod:4253 ../fish/guestfish-actions.pod:2895
14556 #, no-wrap
14557 msgid ""
14558 " mke2fs -O journal_dev -b blocksize device\n"
14559 "\n"
14560 msgstr ""
14561
14562 # type: =head2
14563 #. type: =head2
14564 #: ../src/guestfs-actions.pod:4259
14565 msgid "guestfs_mke2journal_L"
14566 msgstr ""
14567
14568 # type: verbatim
14569 #. type: verbatim
14570 #: ../src/guestfs-actions.pod:4261
14571 #, no-wrap
14572 msgid ""
14573 " int\n"
14574 " guestfs_mke2journal_L (guestfs_h *g,\n"
14575 "                        int blocksize,\n"
14576 "                        const char *label,\n"
14577 "                        const char *device);\n"
14578 "\n"
14579 msgstr ""
14580
14581 # type: textblock
14582 #. type: textblock
14583 #: ../src/guestfs-actions.pod:4267 ../fish/guestfish-actions.pod:2901
14584 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14585 msgstr ""
14586
14587 # type: =head2
14588 #. type: =head2
14589 #: ../src/guestfs-actions.pod:4273
14590 msgid "guestfs_mke2journal_U"
14591 msgstr ""
14592
14593 # type: verbatim
14594 #. type: verbatim
14595 #: ../src/guestfs-actions.pod:4275
14596 #, no-wrap
14597 msgid ""
14598 " int\n"
14599 " guestfs_mke2journal_U (guestfs_h *g,\n"
14600 "                        int blocksize,\n"
14601 "                        const char *uuid,\n"
14602 "                        const char *device);\n"
14603 "\n"
14604 msgstr ""
14605
14606 # type: textblock
14607 #. type: textblock
14608 #: ../src/guestfs-actions.pod:4281 ../fish/guestfish-actions.pod:2907
14609 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14610 msgstr ""
14611
14612 # type: =head2
14613 #. type: =head2
14614 #: ../src/guestfs-actions.pod:4287
14615 msgid "guestfs_mkfifo"
14616 msgstr ""
14617
14618 # type: verbatim
14619 #. type: verbatim
14620 #: ../src/guestfs-actions.pod:4289
14621 #, no-wrap
14622 msgid ""
14623 " int\n"
14624 " guestfs_mkfifo (guestfs_h *g,\n"
14625 "                 int mode,\n"
14626 "                 const char *path);\n"
14627 "\n"
14628 msgstr ""
14629
14630 # type: textblock
14631 #. type: textblock
14632 #: ../src/guestfs-actions.pod:4294
14633 msgid ""
14634 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14635 "is just a convenient wrapper around C<guestfs_mknod>."
14636 msgstr ""
14637
14638 # type: =head2
14639 #. type: =head2
14640 #: ../src/guestfs-actions.pod:4304
14641 msgid "guestfs_mkfs"
14642 msgstr ""
14643
14644 # type: verbatim
14645 #. type: verbatim
14646 #: ../src/guestfs-actions.pod:4306
14647 #, no-wrap
14648 msgid ""
14649 " int\n"
14650 " guestfs_mkfs (guestfs_h *g,\n"
14651 "               const char *fstype,\n"
14652 "               const char *device);\n"
14653 "\n"
14654 msgstr ""
14655
14656 # type: textblock
14657 #. type: textblock
14658 #: ../src/guestfs-actions.pod:4311 ../fish/guestfish-actions.pod:2923
14659 msgid ""
14660 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14661 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14662 msgstr ""
14663
14664 # type: =head2
14665 #. type: =head2
14666 #: ../src/guestfs-actions.pod:4319
14667 msgid "guestfs_mkfs_b"
14668 msgstr ""
14669
14670 # type: verbatim
14671 #. type: verbatim
14672 #: ../src/guestfs-actions.pod:4321
14673 #, no-wrap
14674 msgid ""
14675 " int\n"
14676 " guestfs_mkfs_b (guestfs_h *g,\n"
14677 "                 const char *fstype,\n"
14678 "                 int blocksize,\n"
14679 "                 const char *device);\n"
14680 "\n"
14681 msgstr ""
14682
14683 # type: textblock
14684 #. type: textblock
14685 #: ../src/guestfs-actions.pod:4327
14686 msgid ""
14687 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14688 "block size of the resulting filesystem.  Supported block sizes depend on the "
14689 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14690 msgstr ""
14691
14692 # type: textblock
14693 #. type: textblock
14694 #: ../src/guestfs-actions.pod:4332 ../src/guestfs-actions.pod:4375
14695 #: ../fish/guestfish-actions.pod:2936 ../fish/guestfish-actions.pod:2963
14696 msgid ""
14697 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14698 "cluster size."
14699 msgstr ""
14700
14701 # type: textblock
14702 #. type: textblock
14703 #: ../src/guestfs-actions.pod:4337 ../fish/guestfish-actions.pod:2939
14704 msgid ""
14705 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
14706 msgstr ""
14707
14708 # type: =head2
14709 #. type: =head2
14710 #: ../src/guestfs-actions.pod:4346
14711 msgid "guestfs_mkfs_opts"
14712 msgstr ""
14713
14714 # type: verbatim
14715 #. type: verbatim
14716 #: ../src/guestfs-actions.pod:4348
14717 #, no-wrap
14718 msgid ""
14719 " int\n"
14720 " guestfs_mkfs_opts (guestfs_h *g,\n"
14721 "                    const char *fstype,\n"
14722 "                    const char *device,\n"
14723 "                    ...);\n"
14724 "\n"
14725 msgstr ""
14726
14727 #. type: verbatim
14728 #: ../src/guestfs-actions.pod:4359
14729 #, no-wrap
14730 msgid ""
14731 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14732 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
14733 "\n"
14734 msgstr ""
14735
14736 # type: textblock
14737 #. type: textblock
14738 #: ../src/guestfs-actions.pod:4362 ../fish/guestfish-actions.pod:2950
14739 msgid ""
14740 "This function creates a filesystem on C<device>.  The filesystem type is "
14741 "C<fstype>, for example C<ext3>."
14742 msgstr ""
14743
14744 # type: =item
14745 #. type: =item
14746 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2957
14747 msgid "C<blocksize>"
14748 msgstr ""
14749
14750 # type: textblock
14751 #. type: textblock
14752 #: ../src/guestfs-actions.pod:4371 ../fish/guestfish-actions.pod:2959
14753 msgid ""
14754 "The filesystem block size.  Supported block sizes depend on the filesystem "
14755 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14756 "filesystems."
14757 msgstr ""
14758
14759 #. type: textblock
14760 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:2966
14761 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14762 msgstr ""
14763
14764 #. type: =item
14765 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2968
14766 msgid "C<features>"
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../src/guestfs-actions.pod:4382 ../fish/guestfish-actions.pod:2970
14771 msgid "This passes the C<-O> parameter to the external mkfs program."
14772 msgstr ""
14773
14774 #. type: textblock
14775 #: ../src/guestfs-actions.pod:4384 ../fish/guestfish-actions.pod:2972
14776 msgid ""
14777 "For certain filesystem types, this allows extra filesystem features to be "
14778 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14779 msgstr ""
14780
14781 #. type: textblock
14782 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:2976
14783 msgid ""
14784 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14785 "type."
14786 msgstr ""
14787
14788 #. type: textblock
14789 #: ../src/guestfs-actions.pod:4395
14790 msgid "(Added in 1.7.19)"
14791 msgstr ""
14792
14793 # type: =head2
14794 #. type: =head2
14795 #: ../src/guestfs-actions.pod:4397
14796 msgid "guestfs_mkfs_opts_va"
14797 msgstr ""
14798
14799 # type: verbatim
14800 #. type: verbatim
14801 #: ../src/guestfs-actions.pod:4399
14802 #, no-wrap
14803 msgid ""
14804 " int\n"
14805 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14806 "                       const char *fstype,\n"
14807 "                       const char *device,\n"
14808 "                       va_list args);\n"
14809 "\n"
14810 msgstr ""
14811
14812 # type: textblock
14813 #. type: textblock
14814 #: ../src/guestfs-actions.pod:4405
14815 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14816 msgstr ""
14817
14818 # type: =head2
14819 #. type: =head2
14820 #: ../src/guestfs-actions.pod:4409
14821 msgid "guestfs_mkfs_opts_argv"
14822 msgstr ""
14823
14824 # type: verbatim
14825 #. type: verbatim
14826 #: ../src/guestfs-actions.pod:4411
14827 #, no-wrap
14828 msgid ""
14829 " int\n"
14830 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14831 "                         const char *fstype,\n"
14832 "                         const char *device,\n"
14833 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14834 "\n"
14835 msgstr ""
14836
14837 # type: textblock
14838 #. type: textblock
14839 #: ../src/guestfs-actions.pod:4417
14840 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14841 msgstr ""
14842
14843 # type: =head2
14844 #. type: =head2
14845 #: ../src/guestfs-actions.pod:4421
14846 msgid "guestfs_mkmountpoint"
14847 msgstr ""
14848
14849 # type: verbatim
14850 #. type: verbatim
14851 #: ../src/guestfs-actions.pod:4423
14852 #, no-wrap
14853 msgid ""
14854 " int\n"
14855 " guestfs_mkmountpoint (guestfs_h *g,\n"
14856 "                       const char *exemptpath);\n"
14857 "\n"
14858 msgstr ""
14859
14860 # type: textblock
14861 #. type: textblock
14862 #: ../src/guestfs-actions.pod:4427
14863 msgid ""
14864 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14865 "that can be used to create extra mountpoints before mounting the first "
14866 "filesystem."
14867 msgstr ""
14868
14869 # type: textblock
14870 #. type: textblock
14871 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:2991
14872 msgid ""
14873 "These calls are I<only> necessary in some very limited circumstances, mainly "
14874 "the case where you want to mount a mix of unrelated and/or read-only "
14875 "filesystems together."
14876 msgstr ""
14877
14878 # type: textblock
14879 #. type: textblock
14880 #: ../src/guestfs-actions.pod:4435 ../fish/guestfish-actions.pod:2995
14881 msgid ""
14882 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14883 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14884 "inside that.  You can unpack this as follows in guestfish:"
14885 msgstr ""
14886
14887 # type: verbatim
14888 #. type: verbatim
14889 #: ../src/guestfs-actions.pod:4440 ../fish/guestfish-actions.pod:3000
14890 #, no-wrap
14891 msgid ""
14892 " add-ro Fedora-11-i686-Live.iso\n"
14893 " run\n"
14894 " mkmountpoint /cd\n"
14895 " mkmountpoint /sqsh\n"
14896 " mkmountpoint /ext3fs\n"
14897 " mount /dev/sda /cd\n"
14898 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14899 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14900 "\n"
14901 msgstr ""
14902
14903 # type: textblock
14904 #. type: textblock
14905 #: ../src/guestfs-actions.pod:4449 ../fish/guestfish-actions.pod:3009
14906 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14907 msgstr ""
14908
14909 # type: textblock
14910 #. type: textblock
14911 #: ../src/guestfs-actions.pod:4451
14912 msgid ""
14913 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14914 "may get unexpected errors if you try to mix these calls.  It is safest to "
14915 "manually unmount filesystems and remove mountpoints after use."
14916 msgstr ""
14917
14918 # type: textblock
14919 #. type: textblock
14920 #: ../src/guestfs-actions.pod:4455
14921 msgid ""
14922 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14923 "first, so for this to work for manual mountpoints, you must ensure that the "
14924 "innermost mountpoints have the longest pathnames, as in the example code "
14925 "above."
14926 msgstr ""
14927
14928 # type: textblock
14929 #. type: textblock
14930 #: ../src/guestfs-actions.pod:4460 ../fish/guestfish-actions.pod:3020
14931 msgid ""
14932 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14933 msgstr ""
14934
14935 #. type: textblock
14936 #: ../src/guestfs-actions.pod:4462
14937 msgid ""
14938 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14939 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
14940 "can also trigger these issues."
14941 msgstr ""
14942
14943 # type: textblock
14944 #. type: textblock
14945 #: ../src/guestfs-actions.pod:4468 ../src/guestfs-actions.pod:4727
14946 #: ../src/guestfs-actions.pod:5637
14947 msgid "(Added in 1.0.62)"
14948 msgstr ""
14949
14950 # type: =head2
14951 #. type: =head2
14952 #: ../src/guestfs-actions.pod:4470
14953 msgid "guestfs_mknod"
14954 msgstr ""
14955
14956 # type: verbatim
14957 #. type: verbatim
14958 #: ../src/guestfs-actions.pod:4472
14959 #, no-wrap
14960 msgid ""
14961 " int\n"
14962 " guestfs_mknod (guestfs_h *g,\n"
14963 "                int mode,\n"
14964 "                int devmajor,\n"
14965 "                int devminor,\n"
14966 "                const char *path);\n"
14967 "\n"
14968 msgstr ""
14969
14970 # type: textblock
14971 #. type: textblock
14972 #: ../src/guestfs-actions.pod:4479 ../fish/guestfish-actions.pod:3030
14973 msgid ""
14974 "This call creates block or character special devices, or named pipes (FIFOs)."
14975 msgstr ""
14976
14977 # type: textblock
14978 #. type: textblock
14979 #: ../src/guestfs-actions.pod:4482 ../fish/guestfish-actions.pod:3033
14980 msgid ""
14981 "The C<mode> parameter should be the mode, using the standard constants.  "
14982 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14983 "used when creating block and character special devices."
14984 msgstr ""
14985
14986 # type: textblock
14987 #. type: textblock
14988 #: ../src/guestfs-actions.pod:4487
14989 msgid ""
14990 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14991 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14992 "regular file).  These constants are available in the standard Linux header "
14993 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14994 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14995 "the appropriate constant for you."
14996 msgstr ""
14997
14998 # type: =head2
14999 #. type: =head2
15000 #: ../src/guestfs-actions.pod:4501
15001 msgid "guestfs_mknod_b"
15002 msgstr ""
15003
15004 # type: verbatim
15005 #. type: verbatim
15006 #: ../src/guestfs-actions.pod:4503
15007 #, no-wrap
15008 msgid ""
15009 " int\n"
15010 " guestfs_mknod_b (guestfs_h *g,\n"
15011 "                  int mode,\n"
15012 "                  int devmajor,\n"
15013 "                  int devminor,\n"
15014 "                  const char *path);\n"
15015 "\n"
15016 msgstr ""
15017
15018 # type: textblock
15019 #. type: textblock
15020 #: ../src/guestfs-actions.pod:4510
15021 msgid ""
15022 "This call creates a block device node called C<path> with mode C<mode> and "
15023 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15024 "wrapper around C<guestfs_mknod>."
15025 msgstr ""
15026
15027 # type: =head2
15028 #. type: =head2
15029 #: ../src/guestfs-actions.pod:4520
15030 msgid "guestfs_mknod_c"
15031 msgstr ""
15032
15033 # type: verbatim
15034 #. type: verbatim
15035 #: ../src/guestfs-actions.pod:4522
15036 #, no-wrap
15037 msgid ""
15038 " int\n"
15039 " guestfs_mknod_c (guestfs_h *g,\n"
15040 "                  int mode,\n"
15041 "                  int devmajor,\n"
15042 "                  int devminor,\n"
15043 "                  const char *path);\n"
15044 "\n"
15045 msgstr ""
15046
15047 # type: textblock
15048 #. type: textblock
15049 #: ../src/guestfs-actions.pod:4529
15050 msgid ""
15051 "This call creates a char device node called C<path> with mode C<mode> and "
15052 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15053 "wrapper around C<guestfs_mknod>."
15054 msgstr ""
15055
15056 # type: =head2
15057 #. type: =head2
15058 #: ../src/guestfs-actions.pod:4539
15059 msgid "guestfs_mkswap"
15060 msgstr ""
15061
15062 # type: verbatim
15063 #. type: verbatim
15064 #: ../src/guestfs-actions.pod:4541
15065 #, no-wrap
15066 msgid ""
15067 " int\n"
15068 " guestfs_mkswap (guestfs_h *g,\n"
15069 "                 const char *device);\n"
15070 "\n"
15071 msgstr ""
15072
15073 # type: textblock
15074 #. type: textblock
15075 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3072
15076 msgid "Create a swap partition on C<device>."
15077 msgstr ""
15078
15079 # type: =head2
15080 #. type: =head2
15081 #: ../src/guestfs-actions.pod:4551
15082 msgid "guestfs_mkswap_L"
15083 msgstr ""
15084
15085 # type: verbatim
15086 #. type: verbatim
15087 #: ../src/guestfs-actions.pod:4553
15088 #, no-wrap
15089 msgid ""
15090 " int\n"
15091 " guestfs_mkswap_L (guestfs_h *g,\n"
15092 "                   const char *label,\n"
15093 "                   const char *device);\n"
15094 "\n"
15095 msgstr ""
15096
15097 # type: textblock
15098 #. type: textblock
15099 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3078
15100 msgid "Create a swap partition on C<device> with label C<label>."
15101 msgstr ""
15102
15103 # type: textblock
15104 #. type: textblock
15105 #: ../src/guestfs-actions.pod:4560 ../fish/guestfish-actions.pod:3080
15106 msgid ""
15107 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15108 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15109 "or swap tools."
15110 msgstr ""
15111
15112 # type: =head2
15113 #. type: =head2
15114 #: ../src/guestfs-actions.pod:4568
15115 msgid "guestfs_mkswap_U"
15116 msgstr ""
15117
15118 # type: verbatim
15119 #. type: verbatim
15120 #: ../src/guestfs-actions.pod:4570
15121 #, no-wrap
15122 msgid ""
15123 " int\n"
15124 " guestfs_mkswap_U (guestfs_h *g,\n"
15125 "                   const char *uuid,\n"
15126 "                   const char *device);\n"
15127 "\n"
15128 msgstr ""
15129
15130 # type: textblock
15131 #. type: textblock
15132 #: ../src/guestfs-actions.pod:4575 ../fish/guestfish-actions.pod:3088
15133 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15134 msgstr ""
15135
15136 # type: =head2
15137 #. type: =head2
15138 #: ../src/guestfs-actions.pod:4581
15139 msgid "guestfs_mkswap_file"
15140 msgstr ""
15141
15142 # type: verbatim
15143 #. type: verbatim
15144 #: ../src/guestfs-actions.pod:4583
15145 #, no-wrap
15146 msgid ""
15147 " int\n"
15148 " guestfs_mkswap_file (guestfs_h *g,\n"
15149 "                      const char *path);\n"
15150 "\n"
15151 msgstr ""
15152
15153 # type: textblock
15154 #. type: textblock
15155 #: ../src/guestfs-actions.pod:4587 ../fish/guestfish-actions.pod:3094
15156 msgid "Create a swap file."
15157 msgstr ""
15158
15159 # type: textblock
15160 #. type: textblock
15161 #: ../src/guestfs-actions.pod:4589
15162 msgid ""
15163 "This command just writes a swap file signature to an existing file.  To "
15164 "create the file itself, use something like C<guestfs_fallocate>."
15165 msgstr ""
15166
15167 # type: =head2
15168 #. type: =head2
15169 #: ../src/guestfs-actions.pod:4596
15170 msgid "guestfs_modprobe"
15171 msgstr ""
15172
15173 # type: verbatim
15174 #. type: verbatim
15175 #: ../src/guestfs-actions.pod:4598
15176 #, no-wrap
15177 msgid ""
15178 " int\n"
15179 " guestfs_modprobe (guestfs_h *g,\n"
15180 "                   const char *modulename);\n"
15181 "\n"
15182 msgstr ""
15183
15184 # type: textblock
15185 #. type: textblock
15186 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3103
15187 msgid "This loads a kernel module in the appliance."
15188 msgstr ""
15189
15190 # type: textblock
15191 #. type: textblock
15192 #: ../src/guestfs-actions.pod:4604 ../fish/guestfish-actions.pod:3105
15193 msgid ""
15194 "The kernel module must have been whitelisted when libguestfs was built (see "
15195 "C<appliance/kmod.whitelist.in> in the source)."
15196 msgstr ""
15197
15198 # type: =head2
15199 #. type: =head2
15200 #: ../src/guestfs-actions.pod:4611
15201 msgid "guestfs_mount"
15202 msgstr ""
15203
15204 # type: verbatim
15205 #. type: verbatim
15206 #: ../src/guestfs-actions.pod:4613
15207 #, no-wrap
15208 msgid ""
15209 " int\n"
15210 " guestfs_mount (guestfs_h *g,\n"
15211 "                const char *device,\n"
15212 "                const char *mountpoint);\n"
15213 "\n"
15214 msgstr ""
15215
15216 # type: textblock
15217 #. type: textblock
15218 #: ../src/guestfs-actions.pod:4618 ../fish/guestfish-actions.pod:3112
15219 msgid ""
15220 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15221 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15222 "those block devices contain partitions, they will have the usual names (eg. "
15223 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15224 msgstr ""
15225
15226 # type: textblock
15227 #. type: textblock
15228 #: ../src/guestfs-actions.pod:4624 ../fish/guestfish-actions.pod:3118
15229 msgid ""
15230 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15231 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15232 "mounted on directories which already exist."
15233 msgstr ""
15234
15235 # type: textblock
15236 #. type: textblock
15237 #: ../src/guestfs-actions.pod:4629 ../fish/guestfish-actions.pod:3123
15238 msgid ""
15239 "The mounted filesystem is writable, if we have sufficient permissions on the "
15240 "underlying device."
15241 msgstr ""
15242
15243 # type: textblock
15244 #. type: textblock
15245 #: ../src/guestfs-actions.pod:4632
15246 msgid ""
15247 "B<Important note:> When you use this call, the filesystem options C<sync> "
15248 "and C<noatime> are set implicitly.  This was originally done because we "
15249 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15250 "very large negative performance impact and negligible effect on "
15251 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15252 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15253 "(use an empty string for the first parameter if you don't want any options)."
15254 msgstr ""
15255
15256 # type: =head2
15257 #. type: =head2
15258 #: ../src/guestfs-actions.pod:4646
15259 msgid "guestfs_mount_loop"
15260 msgstr ""
15261
15262 # type: verbatim
15263 #. type: verbatim
15264 #: ../src/guestfs-actions.pod:4648
15265 #, no-wrap
15266 msgid ""
15267 " int\n"
15268 " guestfs_mount_loop (guestfs_h *g,\n"
15269 "                     const char *file,\n"
15270 "                     const char *mountpoint);\n"
15271 "\n"
15272 msgstr ""
15273
15274 # type: textblock
15275 #. type: textblock
15276 #: ../src/guestfs-actions.pod:4653 ../fish/guestfish-actions.pod:3140
15277 msgid ""
15278 "This command lets you mount C<file> (a filesystem image in a file) on a "
15279 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15280 "mountpoint>."
15281 msgstr ""
15282
15283 # type: =head2
15284 #. type: =head2
15285 #: ../src/guestfs-actions.pod:4661
15286 msgid "guestfs_mount_options"
15287 msgstr ""
15288
15289 # type: verbatim
15290 #. type: verbatim
15291 #: ../src/guestfs-actions.pod:4663
15292 #, no-wrap
15293 msgid ""
15294 " int\n"
15295 " guestfs_mount_options (guestfs_h *g,\n"
15296 "                        const char *options,\n"
15297 "                        const char *device,\n"
15298 "                        const char *mountpoint);\n"
15299 "\n"
15300 msgstr ""
15301
15302 # type: textblock
15303 #. type: textblock
15304 #: ../src/guestfs-actions.pod:4669
15305 msgid ""
15306 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15307 "the mount options as for the L<mount(8)> I<-o> flag."
15308 msgstr ""
15309
15310 # type: textblock
15311 #. type: textblock
15312 #: ../src/guestfs-actions.pod:4673 ../fish/guestfish-actions.pod:3152
15313 msgid ""
15314 "If the C<options> parameter is an empty string, then no options are passed "
15315 "(all options default to whatever the filesystem uses)."
15316 msgstr ""
15317
15318 # type: textblock
15319 #. type: textblock
15320 #: ../src/guestfs-actions.pod:4679 ../src/guestfs-actions.pod:4693
15321 #: ../src/guestfs-actions.pod:4710
15322 msgid "(Added in 1.0.10)"
15323 msgstr ""
15324
15325 # type: =head2
15326 #. type: =head2
15327 #: ../src/guestfs-actions.pod:4681
15328 msgid "guestfs_mount_ro"
15329 msgstr ""
15330
15331 # type: verbatim
15332 #. type: verbatim
15333 #: ../src/guestfs-actions.pod:4683
15334 #, no-wrap
15335 msgid ""
15336 " int\n"
15337 " guestfs_mount_ro (guestfs_h *g,\n"
15338 "                   const char *device,\n"
15339 "                   const char *mountpoint);\n"
15340 "\n"
15341 msgstr ""
15342
15343 # type: textblock
15344 #. type: textblock
15345 #: ../src/guestfs-actions.pod:4688
15346 msgid ""
15347 "This is the same as the C<guestfs_mount> command, but it mounts the "
15348 "filesystem with the read-only (I<-o ro>) flag."
15349 msgstr ""
15350
15351 # type: =head2
15352 #. type: =head2
15353 #: ../src/guestfs-actions.pod:4695
15354 msgid "guestfs_mount_vfs"
15355 msgstr ""
15356
15357 # type: verbatim
15358 #. type: verbatim
15359 #: ../src/guestfs-actions.pod:4697
15360 #, no-wrap
15361 msgid ""
15362 " int\n"
15363 " guestfs_mount_vfs (guestfs_h *g,\n"
15364 "                    const char *options,\n"
15365 "                    const char *vfstype,\n"
15366 "                    const char *device,\n"
15367 "                    const char *mountpoint);\n"
15368 "\n"
15369 msgstr ""
15370
15371 # type: textblock
15372 #. type: textblock
15373 #: ../src/guestfs-actions.pod:4704
15374 msgid ""
15375 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15376 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
15377 "t> flags."
15378 msgstr ""
15379
15380 # type: =head2
15381 #. type: =head2
15382 #: ../src/guestfs-actions.pod:4712
15383 msgid "guestfs_mountpoints"
15384 msgstr ""
15385
15386 # type: verbatim
15387 #. type: verbatim
15388 #: ../src/guestfs-actions.pod:4714
15389 #, no-wrap
15390 msgid ""
15391 " char **\n"
15392 " guestfs_mountpoints (guestfs_h *g);\n"
15393 "\n"
15394 msgstr ""
15395
15396 # type: textblock
15397 #. type: textblock
15398 #: ../src/guestfs-actions.pod:4717
15399 msgid ""
15400 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
15401 "devices.  This one returns a hash table (map) of device name to directory "
15402 "where the device is mounted."
15403 msgstr ""
15404
15405 # type: =head2
15406 #. type: =head2
15407 #: ../src/guestfs-actions.pod:4729
15408 msgid "guestfs_mounts"
15409 msgstr ""
15410
15411 # type: verbatim
15412 #. type: verbatim
15413 #: ../src/guestfs-actions.pod:4731
15414 #, no-wrap
15415 msgid ""
15416 " char **\n"
15417 " guestfs_mounts (guestfs_h *g);\n"
15418 "\n"
15419 msgstr ""
15420
15421 # type: textblock
15422 #. type: textblock
15423 #: ../src/guestfs-actions.pod:4734 ../fish/guestfish-actions.pod:3183
15424 msgid ""
15425 "This returns the list of currently mounted filesystems.  It returns the list "
15426 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15427 msgstr ""
15428
15429 # type: textblock
15430 #. type: textblock
15431 #: ../src/guestfs-actions.pod:4737 ../fish/guestfish-actions.pod:3186
15432 msgid "Some internal mounts are not shown."
15433 msgstr ""
15434
15435 # type: textblock
15436 #. type: textblock
15437 #: ../src/guestfs-actions.pod:4739
15438 msgid "See also: C<guestfs_mountpoints>"
15439 msgstr ""
15440
15441 # type: =head2
15442 #. type: =head2
15443 #: ../src/guestfs-actions.pod:4747
15444 msgid "guestfs_mv"
15445 msgstr ""
15446
15447 # type: verbatim
15448 #. type: verbatim
15449 #: ../src/guestfs-actions.pod:4749
15450 #, no-wrap
15451 msgid ""
15452 " int\n"
15453 " guestfs_mv (guestfs_h *g,\n"
15454 "             const char *src,\n"
15455 "             const char *dest);\n"
15456 "\n"
15457 msgstr ""
15458
15459 # type: textblock
15460 #. type: textblock
15461 #: ../src/guestfs-actions.pod:4754 ../fish/guestfish-actions.pod:3194
15462 msgid ""
15463 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15464 "destination filename or destination directory."
15465 msgstr ""
15466
15467 # type: =head2
15468 #. type: =head2
15469 #: ../src/guestfs-actions.pod:4761
15470 msgid "guestfs_ntfs_3g_probe"
15471 msgstr ""
15472
15473 # type: verbatim
15474 #. type: verbatim
15475 #: ../src/guestfs-actions.pod:4763
15476 #, no-wrap
15477 msgid ""
15478 " int\n"
15479 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15480 "                        int rw,\n"
15481 "                        const char *device);\n"
15482 "\n"
15483 msgstr ""
15484
15485 # type: textblock
15486 #. type: textblock
15487 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3201
15488 msgid ""
15489 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
15490 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
15491 "write, and some cannot be mounted at all)."
15492 msgstr ""
15493
15494 # type: textblock
15495 #. type: textblock
15496 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3205
15497 msgid ""
15498 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15499 "can be mounted read-write.  Set it to false if you want to test if the "
15500 "volume can be mounted read-only."
15501 msgstr ""
15502
15503 # type: textblock
15504 #. type: textblock
15505 #: ../src/guestfs-actions.pod:4776 ../fish/guestfish-actions.pod:3209
15506 msgid ""
15507 "The return value is an integer which C<0> if the operation would succeed, or "
15508 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15509 msgstr ""
15510
15511 # type: textblock
15512 #. type: textblock
15513 #: ../src/guestfs-actions.pod:4782
15514 msgid "(Added in 1.0.43)"
15515 msgstr ""
15516
15517 # type: =head2
15518 #. type: =head2
15519 #: ../src/guestfs-actions.pod:4784
15520 msgid "guestfs_ntfsresize"
15521 msgstr ""
15522
15523 # type: verbatim
15524 #. type: verbatim
15525 #: ../src/guestfs-actions.pod:4786
15526 #, no-wrap
15527 msgid ""
15528 " int\n"
15529 " guestfs_ntfsresize (guestfs_h *g,\n"
15530 "                     const char *device);\n"
15531 "\n"
15532 msgstr ""
15533
15534 # type: textblock
15535 #. type: textblock
15536 #: ../src/guestfs-actions.pod:4790 ../fish/guestfish-actions.pod:3217
15537 msgid ""
15538 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15539 "size of the underlying device.  See also L<ntfsresize(8)>."
15540 msgstr ""
15541
15542 # type: =head2
15543 #. type: =head2
15544 #: ../src/guestfs-actions.pod:4798
15545 msgid "guestfs_ntfsresize_size"
15546 msgstr ""
15547
15548 # type: verbatim
15549 #. type: verbatim
15550 #: ../src/guestfs-actions.pod:4800
15551 #, no-wrap
15552 msgid ""
15553 " int\n"
15554 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15555 "                          const char *device,\n"
15556 "                          int64_t size);\n"
15557 "\n"
15558 msgstr ""
15559
15560 # type: textblock
15561 #. type: textblock
15562 #: ../src/guestfs-actions.pod:4805
15563 msgid ""
15564 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15565 "to specify the new size (in bytes) explicitly."
15566 msgstr ""
15567
15568 # type: textblock
15569 #. type: textblock
15570 #: ../src/guestfs-actions.pod:4810 ../src/guestfs-actions.pod:5246
15571 #: ../src/guestfs-actions.pod:5319 ../src/guestfs-actions.pod:5585
15572 #: ../src/guestfs-actions.pod:7156
15573 msgid "(Added in 1.3.14)"
15574 msgstr ""
15575
15576 # type: =head2
15577 #. type: =head2
15578 #: ../src/guestfs-actions.pod:4812
15579 msgid "guestfs_part_add"
15580 msgstr ""
15581
15582 # type: verbatim
15583 #. type: verbatim
15584 #: ../src/guestfs-actions.pod:4814
15585 #, no-wrap
15586 msgid ""
15587 " int\n"
15588 " guestfs_part_add (guestfs_h *g,\n"
15589 "                   const char *device,\n"
15590 "                   const char *prlogex,\n"
15591 "                   int64_t startsect,\n"
15592 "                   int64_t endsect);\n"
15593 "\n"
15594 msgstr ""
15595
15596 # type: textblock
15597 #. type: textblock
15598 #: ../src/guestfs-actions.pod:4821
15599 msgid ""
15600 "This command adds a partition to C<device>.  If there is no partition table "
15601 "on the device, call C<guestfs_part_init> first."
15602 msgstr ""
15603
15604 # type: textblock
15605 #. type: textblock
15606 #: ../src/guestfs-actions.pod:4824 ../fish/guestfish-actions.pod:3235
15607 msgid ""
15608 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15609 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15610 "C<logical>) and C<e> (or C<extended>) partition types."
15611 msgstr ""
15612
15613 # type: textblock
15614 #. type: textblock
15615 #: ../src/guestfs-actions.pod:4829 ../fish/guestfish-actions.pod:3240
15616 msgid ""
15617 "C<startsect> and C<endsect> are the start and end of the partition in "
15618 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15619 "from the end of the disk (C<-1> is the last sector)."
15620 msgstr ""
15621
15622 # type: textblock
15623 #. type: textblock
15624 #: ../src/guestfs-actions.pod:4833
15625 msgid ""
15626 "Creating a partition which covers the whole disk is not so easy.  Use "
15627 "C<guestfs_part_disk> to do that."
15628 msgstr ""
15629
15630 # type: textblock
15631 #. type: textblock
15632 #: ../src/guestfs-actions.pod:4838 ../src/guestfs-actions.pod:4876
15633 #: ../src/guestfs-actions.pod:4929 ../src/guestfs-actions.pod:5007
15634 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5064
15635 #: ../src/guestfs-actions.pod:5104
15636 msgid "(Added in 1.0.78)"
15637 msgstr ""
15638
15639 # type: =head2
15640 #. type: =head2
15641 #: ../src/guestfs-actions.pod:4840
15642 msgid "guestfs_part_del"
15643 msgstr ""
15644
15645 # type: verbatim
15646 #. type: verbatim
15647 #: ../src/guestfs-actions.pod:4842
15648 #, no-wrap
15649 msgid ""
15650 " int\n"
15651 " guestfs_part_del (guestfs_h *g,\n"
15652 "                   const char *device,\n"
15653 "                   int partnum);\n"
15654 "\n"
15655 msgstr ""
15656
15657 # type: textblock
15658 #. type: textblock
15659 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3251
15660 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15661 msgstr ""
15662
15663 # type: textblock
15664 #. type: textblock
15665 #: ../src/guestfs-actions.pod:4849 ../fish/guestfish-actions.pod:3253
15666 msgid ""
15667 "Note that in the case of MBR partitioning, deleting an extended partition "
15668 "also deletes any logical partitions it contains."
15669 msgstr ""
15670
15671 # type: =head2
15672 #. type: =head2
15673 #: ../src/guestfs-actions.pod:4857
15674 msgid "guestfs_part_disk"
15675 msgstr ""
15676
15677 # type: verbatim
15678 #. type: verbatim
15679 #: ../src/guestfs-actions.pod:4859
15680 #, no-wrap
15681 msgid ""
15682 " int\n"
15683 " guestfs_part_disk (guestfs_h *g,\n"
15684 "                    const char *device,\n"
15685 "                    const char *parttype);\n"
15686 "\n"
15687 msgstr ""
15688
15689 # type: textblock
15690 #. type: textblock
15691 #: ../src/guestfs-actions.pod:4864
15692 msgid ""
15693 "This command is simply a combination of C<guestfs_part_init> followed by "
15694 "C<guestfs_part_add> to create a single primary partition covering the whole "
15695 "disk."
15696 msgstr ""
15697
15698 # type: textblock
15699 #. type: textblock
15700 #: ../src/guestfs-actions.pod:4868
15701 msgid ""
15702 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15703 "possible values are described in C<guestfs_part_init>."
15704 msgstr ""
15705
15706 # type: =head2
15707 #. type: =head2
15708 #: ../src/guestfs-actions.pod:4878
15709 msgid "guestfs_part_get_bootable"
15710 msgstr ""
15711
15712 # type: verbatim
15713 #. type: verbatim
15714 #: ../src/guestfs-actions.pod:4880
15715 #, no-wrap
15716 msgid ""
15717 " int\n"
15718 " guestfs_part_get_bootable (guestfs_h *g,\n"
15719 "                            const char *device,\n"
15720 "                            int partnum);\n"
15721 "\n"
15722 msgstr ""
15723
15724 # type: textblock
15725 #. type: textblock
15726 #: ../src/guestfs-actions.pod:4885 ../fish/guestfish-actions.pod:3275
15727 msgid ""
15728 "This command returns true if the partition C<partnum> on C<device> has the "
15729 "bootable flag set."
15730 msgstr ""
15731
15732 # type: textblock
15733 #. type: textblock
15734 #: ../src/guestfs-actions.pod:4888
15735 msgid "See also C<guestfs_part_set_bootable>."
15736 msgstr ""
15737
15738 # type: =head2
15739 #. type: =head2
15740 #: ../src/guestfs-actions.pod:4894
15741 msgid "guestfs_part_get_mbr_id"
15742 msgstr ""
15743
15744 # type: verbatim
15745 #. type: verbatim
15746 #: ../src/guestfs-actions.pod:4896
15747 #, no-wrap
15748 msgid ""
15749 " int\n"
15750 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15751 "                          const char *device,\n"
15752 "                          int partnum);\n"
15753 "\n"
15754 msgstr ""
15755
15756 # type: textblock
15757 #. type: textblock
15758 #: ../src/guestfs-actions.pod:4901 ../fish/guestfish-actions.pod:3284
15759 msgid ""
15760 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15761 "partition C<partnum>."
15762 msgstr ""
15763
15764 # type: textblock
15765 #. type: textblock
15766 #: ../src/guestfs-actions.pod:4904 ../src/guestfs-actions.pod:5080
15767 msgid ""
15768 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15769 "undefined results for other partition table types (see "
15770 "C<guestfs_part_get_parttype>)."
15771 msgstr ""
15772
15773 # type: =head2
15774 #. type: =head2
15775 #: ../src/guestfs-actions.pod:4912
15776 msgid "guestfs_part_get_parttype"
15777 msgstr ""
15778
15779 # type: verbatim
15780 #. type: verbatim
15781 #: ../src/guestfs-actions.pod:4914
15782 #, no-wrap
15783 msgid ""
15784 " char *\n"
15785 " guestfs_part_get_parttype (guestfs_h *g,\n"
15786 "                            const char *device);\n"
15787 "\n"
15788 msgstr ""
15789
15790 # type: textblock
15791 #. type: textblock
15792 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3295
15793 msgid ""
15794 "This command examines the partition table on C<device> and returns the "
15795 "partition table type (format) being used."
15796 msgstr ""
15797
15798 # type: textblock
15799 #. type: textblock
15800 #: ../src/guestfs-actions.pod:4921
15801 msgid ""
15802 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15803 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15804 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15805 msgstr ""
15806
15807 # type: =head2
15808 #. type: =head2
15809 #: ../src/guestfs-actions.pod:4931
15810 msgid "guestfs_part_init"
15811 msgstr ""
15812
15813 # type: verbatim
15814 #. type: verbatim
15815 #: ../src/guestfs-actions.pod:4933
15816 #, no-wrap
15817 msgid ""
15818 " int\n"
15819 " guestfs_part_init (guestfs_h *g,\n"
15820 "                    const char *device,\n"
15821 "                    const char *parttype);\n"
15822 "\n"
15823 msgstr ""
15824
15825 # type: textblock
15826 #. type: textblock
15827 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3307
15828 msgid ""
15829 "This creates an empty partition table on C<device> of one of the partition "
15830 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15831 "(for large disks)."
15832 msgstr ""
15833
15834 # type: textblock
15835 #. type: textblock
15836 #: ../src/guestfs-actions.pod:4942
15837 msgid ""
15838 "Initially there are no partitions.  Following this, you should call "
15839 "C<guestfs_part_add> for each partition required."
15840 msgstr ""
15841
15842 # type: textblock
15843 #. type: textblock
15844 #: ../src/guestfs-actions.pod:4945 ../fish/guestfish-actions.pod:3314
15845 msgid "Possible values for C<parttype> are:"
15846 msgstr ""
15847
15848 # type: =item
15849 #. type: =item
15850 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3318
15851 msgid "B<efi> | B<gpt>"
15852 msgstr ""
15853
15854 # type: textblock
15855 #. type: textblock
15856 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3320
15857 msgid "Intel EFI / GPT partition table."
15858 msgstr ""
15859
15860 # type: textblock
15861 #. type: textblock
15862 #: ../src/guestfs-actions.pod:4953 ../fish/guestfish-actions.pod:3322
15863 msgid ""
15864 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15865 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15866 "the C<mbr> format."
15867 msgstr ""
15868
15869 # type: =item
15870 #. type: =item
15871 #: ../src/guestfs-actions.pod:4957 ../fish/guestfish-actions.pod:3326
15872 msgid "B<mbr> | B<msdos>"
15873 msgstr ""
15874
15875 # type: textblock
15876 #. type: textblock
15877 #: ../src/guestfs-actions.pod:4959 ../fish/guestfish-actions.pod:3328
15878 msgid ""
15879 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15880 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15881 "TB.  For large disks we recommend using C<gpt>."
15882 msgstr ""
15883
15884 # type: textblock
15885 #. type: textblock
15886 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3335
15887 msgid ""
15888 "Other partition table types that may work but are not supported include:"
15889 msgstr ""
15890
15891 # type: =item
15892 #. type: =item
15893 #: ../src/guestfs-actions.pod:4971 ../fish/guestfish-actions.pod:3340
15894 msgid "B<aix>"
15895 msgstr ""
15896
15897 # type: textblock
15898 #. type: textblock
15899 #: ../src/guestfs-actions.pod:4973 ../fish/guestfish-actions.pod:3342
15900 msgid "AIX disk labels."
15901 msgstr ""
15902
15903 # type: =item
15904 #. type: =item
15905 #: ../src/guestfs-actions.pod:4975 ../fish/guestfish-actions.pod:3344
15906 msgid "B<amiga> | B<rdb>"
15907 msgstr ""
15908
15909 # type: textblock
15910 #. type: textblock
15911 #: ../src/guestfs-actions.pod:4977 ../fish/guestfish-actions.pod:3346
15912 msgid "Amiga \"Rigid Disk Block\" format."
15913 msgstr ""
15914
15915 # type: =item
15916 #. type: =item
15917 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3348
15918 msgid "B<bsd>"
15919 msgstr ""
15920
15921 # type: textblock
15922 #. type: textblock
15923 #: ../src/guestfs-actions.pod:4981 ../fish/guestfish-actions.pod:3350
15924 msgid "BSD disk labels."
15925 msgstr ""
15926
15927 # type: =item
15928 #. type: =item
15929 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3352
15930 msgid "B<dasd>"
15931 msgstr ""
15932
15933 # type: textblock
15934 #. type: textblock
15935 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3354
15936 msgid "DASD, used on IBM mainframes."
15937 msgstr ""
15938
15939 # type: =item
15940 #. type: =item
15941 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3356
15942 msgid "B<dvh>"
15943 msgstr ""
15944
15945 # type: textblock
15946 #. type: textblock
15947 #: ../src/guestfs-actions.pod:4989 ../fish/guestfish-actions.pod:3358
15948 msgid "MIPS/SGI volumes."
15949 msgstr ""
15950
15951 # type: =item
15952 #. type: =item
15953 #: ../src/guestfs-actions.pod:4991 ../fish/guestfish-actions.pod:3360
15954 msgid "B<mac>"
15955 msgstr ""
15956
15957 # type: textblock
15958 #. type: textblock
15959 #: ../src/guestfs-actions.pod:4993 ../fish/guestfish-actions.pod:3362
15960 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15961 msgstr ""
15962
15963 # type: =item
15964 #. type: =item
15965 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3364
15966 msgid "B<pc98>"
15967 msgstr ""
15968
15969 # type: textblock
15970 #. type: textblock
15971 #: ../src/guestfs-actions.pod:4997 ../fish/guestfish-actions.pod:3366
15972 msgid "NEC PC-98 format, common in Japan apparently."
15973 msgstr ""
15974
15975 # type: =item
15976 #. type: =item
15977 #: ../src/guestfs-actions.pod:4999 ../fish/guestfish-actions.pod:3368
15978 msgid "B<sun>"
15979 msgstr ""
15980
15981 # type: textblock
15982 #. type: textblock
15983 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3370
15984 msgid "Sun disk labels."
15985 msgstr ""
15986
15987 # type: =head2
15988 #. type: =head2
15989 #: ../src/guestfs-actions.pod:5009
15990 msgid "guestfs_part_list"
15991 msgstr ""
15992
15993 # type: verbatim
15994 #. type: verbatim
15995 #: ../src/guestfs-actions.pod:5011
15996 #, no-wrap
15997 msgid ""
15998 " struct guestfs_partition_list *\n"
15999 " guestfs_part_list (guestfs_h *g,\n"
16000 "                    const char *device);\n"
16001 "\n"
16002 msgstr ""
16003
16004 # type: textblock
16005 #. type: textblock
16006 #: ../src/guestfs-actions.pod:5015 ../fish/guestfish-actions.pod:3378
16007 msgid ""
16008 "This command parses the partition table on C<device> and returns the list of "
16009 "partitions found."
16010 msgstr ""
16011
16012 # type: textblock
16013 #. type: textblock
16014 #: ../src/guestfs-actions.pod:5018 ../fish/guestfish-actions.pod:3381
16015 msgid "The fields in the returned structure are:"
16016 msgstr ""
16017
16018 # type: =item
16019 #. type: =item
16020 #: ../src/guestfs-actions.pod:5022 ../fish/guestfish-actions.pod:3385
16021 msgid "B<part_num>"
16022 msgstr ""
16023
16024 # type: textblock
16025 #. type: textblock
16026 #: ../src/guestfs-actions.pod:5024 ../fish/guestfish-actions.pod:3387
16027 msgid "Partition number, counting from 1."
16028 msgstr ""
16029
16030 # type: =item
16031 #. type: =item
16032 #: ../src/guestfs-actions.pod:5026 ../fish/guestfish-actions.pod:3389
16033 msgid "B<part_start>"
16034 msgstr ""
16035
16036 # type: textblock
16037 #. type: textblock
16038 #: ../src/guestfs-actions.pod:5028
16039 msgid ""
16040 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16041 "the device's sector size, see C<guestfs_blockdev_getss>."
16042 msgstr ""
16043
16044 # type: =item
16045 #. type: =item
16046 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3394
16047 msgid "B<part_end>"
16048 msgstr ""
16049
16050 # type: textblock
16051 #. type: textblock
16052 #: ../src/guestfs-actions.pod:5033 ../fish/guestfish-actions.pod:3396
16053 msgid "End of the partition in bytes."
16054 msgstr ""
16055
16056 # type: =item
16057 #. type: =item
16058 #: ../src/guestfs-actions.pod:5035 ../fish/guestfish-actions.pod:3398
16059 msgid "B<part_size>"
16060 msgstr ""
16061
16062 # type: textblock
16063 #. type: textblock
16064 #: ../src/guestfs-actions.pod:5037 ../fish/guestfish-actions.pod:3400
16065 msgid "Size of the partition in bytes."
16066 msgstr ""
16067
16068 # type: textblock
16069 #. type: textblock
16070 #: ../src/guestfs-actions.pod:5041
16071 msgid ""
16072 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16073 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16074 "use>."
16075 msgstr ""
16076
16077 # type: =head2
16078 #. type: =head2
16079 #: ../src/guestfs-actions.pod:5047
16080 msgid "guestfs_part_set_bootable"
16081 msgstr ""
16082
16083 # type: verbatim
16084 #. type: verbatim
16085 #: ../src/guestfs-actions.pod:5049
16086 #, no-wrap
16087 msgid ""
16088 " int\n"
16089 " guestfs_part_set_bootable (guestfs_h *g,\n"
16090 "                            const char *device,\n"
16091 "                            int partnum,\n"
16092 "                            int bootable);\n"
16093 "\n"
16094 msgstr ""
16095
16096 # type: textblock
16097 #. type: textblock
16098 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3408
16099 msgid ""
16100 "This sets the bootable flag on partition numbered C<partnum> on device "
16101 "C<device>.  Note that partitions are numbered from 1."
16102 msgstr ""
16103
16104 # type: textblock
16105 #. type: textblock
16106 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3411
16107 msgid ""
16108 "The bootable flag is used by some operating systems (notably Windows) to "
16109 "determine which partition to boot from.  It is by no means universally "
16110 "recognized."
16111 msgstr ""
16112
16113 # type: =head2
16114 #. type: =head2
16115 #: ../src/guestfs-actions.pod:5066
16116 msgid "guestfs_part_set_mbr_id"
16117 msgstr ""
16118
16119 # type: verbatim
16120 #. type: verbatim
16121 #: ../src/guestfs-actions.pod:5068
16122 #, no-wrap
16123 msgid ""
16124 " int\n"
16125 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16126 "                          const char *device,\n"
16127 "                          int partnum,\n"
16128 "                          int idbyte);\n"
16129 "\n"
16130 msgstr ""
16131
16132 # type: textblock
16133 #. type: textblock
16134 #: ../src/guestfs-actions.pod:5074 ../fish/guestfish-actions.pod:3419
16135 msgid ""
16136 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16137 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16138 "documentation are in fact hexadecimal numbers, but usually documented "
16139 "without any leading \"0x\" which might be confusing."
16140 msgstr ""
16141
16142 # type: =head2
16143 #. type: =head2
16144 #: ../src/guestfs-actions.pod:5088
16145 msgid "guestfs_part_set_name"
16146 msgstr ""
16147
16148 # type: verbatim
16149 #. type: verbatim
16150 #: ../src/guestfs-actions.pod:5090
16151 #, no-wrap
16152 msgid ""
16153 " int\n"
16154 " guestfs_part_set_name (guestfs_h *g,\n"
16155 "                        const char *device,\n"
16156 "                        int partnum,\n"
16157 "                        const char *name);\n"
16158 "\n"
16159 msgstr ""
16160
16161 # type: textblock
16162 #. type: textblock
16163 #: ../src/guestfs-actions.pod:5096 ../fish/guestfish-actions.pod:3433
16164 msgid ""
16165 "This sets the partition name on partition numbered C<partnum> on device "
16166 "C<device>.  Note that partitions are numbered from 1."
16167 msgstr ""
16168
16169 # type: textblock
16170 #. type: textblock
16171 #: ../src/guestfs-actions.pod:5099 ../fish/guestfish-actions.pod:3436
16172 msgid ""
16173 "The partition name can only be set on certain types of partition table.  "
16174 "This works on C<gpt> but not on C<mbr> partitions."
16175 msgstr ""
16176
16177 # type: =head2
16178 #. type: =head2
16179 #: ../src/guestfs-actions.pod:5106
16180 msgid "guestfs_part_to_dev"
16181 msgstr ""
16182
16183 # type: verbatim
16184 #. type: verbatim
16185 #: ../src/guestfs-actions.pod:5108
16186 #, no-wrap
16187 msgid ""
16188 " char *\n"
16189 " guestfs_part_to_dev (guestfs_h *g,\n"
16190 "                      const char *partition);\n"
16191 "\n"
16192 msgstr ""
16193
16194 # type: textblock
16195 #. type: textblock
16196 #: ../src/guestfs-actions.pod:5112 ../fish/guestfish-actions.pod:3443
16197 msgid ""
16198 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16199 "partition number, returning the device name (eg. \"/dev/sdb\")."
16200 msgstr ""
16201
16202 # type: textblock
16203 #. type: textblock
16204 #: ../src/guestfs-actions.pod:5116
16205 msgid ""
16206 "The named partition must exist, for example as a string returned from "
16207 "C<guestfs_list_partitions>."
16208 msgstr ""
16209
16210 # type: =head2
16211 #. type: =head2
16212 #: ../src/guestfs-actions.pod:5124
16213 msgid "guestfs_ping_daemon"
16214 msgstr ""
16215
16216 # type: verbatim
16217 #. type: verbatim
16218 #: ../src/guestfs-actions.pod:5126
16219 #, no-wrap
16220 msgid ""
16221 " int\n"
16222 " guestfs_ping_daemon (guestfs_h *g);\n"
16223 "\n"
16224 msgstr ""
16225
16226 # type: textblock
16227 #. type: textblock
16228 #: ../src/guestfs-actions.pod:5129 ../fish/guestfish-actions.pod:3454
16229 msgid ""
16230 "This is a test probe into the guestfs daemon running inside the qemu "
16231 "subprocess.  Calling this function checks that the daemon responds to the "
16232 "ping message, without affecting the daemon or attached block device(s) in "
16233 "any other way."
16234 msgstr ""
16235
16236 # type: =head2
16237 #. type: =head2
16238 #: ../src/guestfs-actions.pod:5138
16239 msgid "guestfs_pread"
16240 msgstr ""
16241
16242 # type: verbatim
16243 #. type: verbatim
16244 #: ../src/guestfs-actions.pod:5140
16245 #, no-wrap
16246 msgid ""
16247 " char *\n"
16248 " guestfs_pread (guestfs_h *g,\n"
16249 "                const char *path,\n"
16250 "                int count,\n"
16251 "                int64_t offset,\n"
16252 "                size_t *size_r);\n"
16253 "\n"
16254 msgstr ""
16255
16256 # type: textblock
16257 #. type: textblock
16258 #: ../src/guestfs-actions.pod:5147 ../fish/guestfish-actions.pod:3463
16259 msgid ""
16260 "This command lets you read part of a file.  It reads C<count> bytes of the "
16261 "file, starting at C<offset>, from file C<path>."
16262 msgstr ""
16263
16264 # type: textblock
16265 #. type: textblock
16266 #: ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5176
16267 #: ../fish/guestfish-actions.pod:3466 ../fish/guestfish-actions.pod:3481
16268 msgid ""
16269 "This may read fewer bytes than requested.  For further details see the "
16270 "L<pread(2)> system call."
16271 msgstr ""
16272
16273 # type: textblock
16274 #. type: textblock
16275 #: ../src/guestfs-actions.pod:5153
16276 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16277 msgstr ""
16278
16279 # type: =head2
16280 #. type: =head2
16281 #: ../src/guestfs-actions.pod:5164
16282 msgid "guestfs_pread_device"
16283 msgstr ""
16284
16285 # type: verbatim
16286 #. type: verbatim
16287 #: ../src/guestfs-actions.pod:5166
16288 #, no-wrap
16289 msgid ""
16290 " char *\n"
16291 " guestfs_pread_device (guestfs_h *g,\n"
16292 "                       const char *device,\n"
16293 "                       int count,\n"
16294 "                       int64_t offset,\n"
16295 "                       size_t *size_r);\n"
16296 "\n"
16297 msgstr ""
16298
16299 # type: textblock
16300 #. type: textblock
16301 #: ../src/guestfs-actions.pod:5173 ../fish/guestfish-actions.pod:3478
16302 msgid ""
16303 "This command lets you read part of a file.  It reads C<count> bytes of "
16304 "C<device>, starting at C<offset>."
16305 msgstr ""
16306
16307 # type: textblock
16308 #. type: textblock
16309 #: ../src/guestfs-actions.pod:5179
16310 msgid "See also C<guestfs_pread>."
16311 msgstr ""
16312
16313 # type: textblock
16314 #. type: textblock
16315 #: ../src/guestfs-actions.pod:5188
16316 msgid "(Added in 1.5.21)"
16317 msgstr ""
16318
16319 # type: =head2
16320 #. type: =head2
16321 #: ../src/guestfs-actions.pod:5190
16322 msgid "guestfs_pvcreate"
16323 msgstr ""
16324
16325 # type: verbatim
16326 #. type: verbatim
16327 #: ../src/guestfs-actions.pod:5192
16328 #, no-wrap
16329 msgid ""
16330 " int\n"
16331 " guestfs_pvcreate (guestfs_h *g,\n"
16332 "                   const char *device);\n"
16333 "\n"
16334 msgstr ""
16335
16336 # type: textblock
16337 #. type: textblock
16338 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3493
16339 msgid ""
16340 "This creates an LVM physical volume on the named C<device>, where C<device> "
16341 "should usually be a partition name such as C</dev/sda1>."
16342 msgstr ""
16343
16344 # type: =head2
16345 #. type: =head2
16346 #: ../src/guestfs-actions.pod:5204
16347 msgid "guestfs_pvremove"
16348 msgstr ""
16349
16350 # type: verbatim
16351 #. type: verbatim
16352 #: ../src/guestfs-actions.pod:5206
16353 #, no-wrap
16354 msgid ""
16355 " int\n"
16356 " guestfs_pvremove (guestfs_h *g,\n"
16357 "                   const char *device);\n"
16358 "\n"
16359 msgstr ""
16360
16361 # type: textblock
16362 #. type: textblock
16363 #: ../src/guestfs-actions.pod:5210 ../fish/guestfish-actions.pod:3501
16364 msgid ""
16365 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16366 "it."
16367 msgstr ""
16368
16369 # type: textblock
16370 #. type: textblock
16371 #: ../src/guestfs-actions.pod:5213 ../fish/guestfish-actions.pod:3504
16372 msgid ""
16373 "The implementation uses the C<pvremove> command which refuses to wipe "
16374 "physical volumes that contain any volume groups, so you have to remove those "
16375 "first."
16376 msgstr ""
16377
16378 # type: =head2
16379 #. type: =head2
16380 #: ../src/guestfs-actions.pod:5221
16381 msgid "guestfs_pvresize"
16382 msgstr ""
16383
16384 # type: verbatim
16385 #. type: verbatim
16386 #: ../src/guestfs-actions.pod:5223
16387 #, no-wrap
16388 msgid ""
16389 " int\n"
16390 " guestfs_pvresize (guestfs_h *g,\n"
16391 "                   const char *device);\n"
16392 "\n"
16393 msgstr ""
16394
16395 # type: textblock
16396 #. type: textblock
16397 #: ../src/guestfs-actions.pod:5227 ../fish/guestfish-actions.pod:3512
16398 msgid ""
16399 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16400 "the new size of the underlying device."
16401 msgstr ""
16402
16403 # type: =head2
16404 #. type: =head2
16405 #: ../src/guestfs-actions.pod:5234
16406 msgid "guestfs_pvresize_size"
16407 msgstr ""
16408
16409 # type: verbatim
16410 #. type: verbatim
16411 #: ../src/guestfs-actions.pod:5236
16412 #, no-wrap
16413 msgid ""
16414 " int\n"
16415 " guestfs_pvresize_size (guestfs_h *g,\n"
16416 "                        const char *device,\n"
16417 "                        int64_t size);\n"
16418 "\n"
16419 msgstr ""
16420
16421 # type: textblock
16422 #. type: textblock
16423 #: ../src/guestfs-actions.pod:5241
16424 msgid ""
16425 "This command is the same as C<guestfs_pvresize> except that it allows you to "
16426 "specify the new size (in bytes) explicitly."
16427 msgstr ""
16428
16429 # type: =head2
16430 #. type: =head2
16431 #: ../src/guestfs-actions.pod:5248
16432 msgid "guestfs_pvs"
16433 msgstr ""
16434
16435 # type: verbatim
16436 #. type: verbatim
16437 #: ../src/guestfs-actions.pod:5250
16438 #, no-wrap
16439 msgid ""
16440 " char **\n"
16441 " guestfs_pvs (guestfs_h *g);\n"
16442 "\n"
16443 msgstr ""
16444
16445 # type: textblock
16446 #. type: textblock
16447 #: ../src/guestfs-actions.pod:5253 ../fish/guestfish-actions.pod:3526
16448 msgid ""
16449 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16450 "(8)> command."
16451 msgstr ""
16452
16453 # type: textblock
16454 #. type: textblock
16455 #: ../src/guestfs-actions.pod:5256 ../fish/guestfish-actions.pod:3529
16456 msgid ""
16457 "This returns a list of just the device names that contain PVs (eg. C</dev/"
16458 "sda2>)."
16459 msgstr ""
16460
16461 # type: textblock
16462 #. type: textblock
16463 #: ../src/guestfs-actions.pod:5259
16464 msgid "See also C<guestfs_pvs_full>."
16465 msgstr ""
16466
16467 # type: =head2
16468 #. type: =head2
16469 #: ../src/guestfs-actions.pod:5267
16470 msgid "guestfs_pvs_full"
16471 msgstr ""
16472
16473 # type: verbatim
16474 #. type: verbatim
16475 #: ../src/guestfs-actions.pod:5269
16476 #, no-wrap
16477 msgid ""
16478 " struct guestfs_lvm_pv_list *\n"
16479 " guestfs_pvs_full (guestfs_h *g);\n"
16480 "\n"
16481 msgstr ""
16482
16483 # type: textblock
16484 #. type: textblock
16485 #: ../src/guestfs-actions.pod:5272 ../fish/guestfish-actions.pod:3538
16486 msgid ""
16487 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16488 "(8)> command.  The \"full\" version includes all fields."
16489 msgstr ""
16490
16491 # type: textblock
16492 #. type: textblock
16493 #: ../src/guestfs-actions.pod:5275
16494 msgid ""
16495 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
16496 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
16497 msgstr ""
16498
16499 # type: =head2
16500 #. type: =head2
16501 #: ../src/guestfs-actions.pod:5281
16502 msgid "guestfs_pvuuid"
16503 msgstr ""
16504
16505 # type: verbatim
16506 #. type: verbatim
16507 #: ../src/guestfs-actions.pod:5283
16508 #, no-wrap
16509 msgid ""
16510 " char *\n"
16511 " guestfs_pvuuid (guestfs_h *g,\n"
16512 "                 const char *device);\n"
16513 "\n"
16514 msgstr ""
16515
16516 # type: textblock
16517 #. type: textblock
16518 #: ../src/guestfs-actions.pod:5287 ../fish/guestfish-actions.pod:3545
16519 msgid "This command returns the UUID of the LVM PV C<device>."
16520 msgstr ""
16521
16522 # type: =head2
16523 #. type: =head2
16524 #: ../src/guestfs-actions.pod:5294
16525 msgid "guestfs_pwrite"
16526 msgstr ""
16527
16528 # type: verbatim
16529 #. type: verbatim
16530 #: ../src/guestfs-actions.pod:5296
16531 #, no-wrap
16532 msgid ""
16533 " int\n"
16534 " guestfs_pwrite (guestfs_h *g,\n"
16535 "                 const char *path,\n"
16536 "                 const char *content,\n"
16537 "                 size_t content_size,\n"
16538 "                 int64_t offset);\n"
16539 "\n"
16540 msgstr ""
16541
16542 # type: textblock
16543 #. type: textblock
16544 #: ../src/guestfs-actions.pod:5303 ../fish/guestfish-actions.pod:3551
16545 msgid ""
16546 "This command writes to part of a file.  It writes the data buffer C<content> "
16547 "to the file C<path> starting at offset C<offset>."
16548 msgstr ""
16549
16550 # type: textblock
16551 #. type: textblock
16552 #: ../src/guestfs-actions.pod:5306 ../fish/guestfish-actions.pod:3554
16553 msgid ""
16554 "This command implements the L<pwrite(2)> system call, and like that system "
16555 "call it may not write the full data requested.  The return value is the "
16556 "number of bytes that were actually written to the file.  This could even be "
16557 "0, although short writes are unlikely for regular files in ordinary "
16558 "circumstances."
16559 msgstr ""
16560
16561 # type: textblock
16562 #. type: textblock
16563 #: ../src/guestfs-actions.pod:5312
16564 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16565 msgstr ""
16566
16567 # type: =head2
16568 #. type: =head2
16569 #: ../src/guestfs-actions.pod:5321
16570 msgid "guestfs_pwrite_device"
16571 msgstr ""
16572
16573 # type: verbatim
16574 #. type: verbatim
16575 #: ../src/guestfs-actions.pod:5323
16576 #, no-wrap
16577 msgid ""
16578 " int\n"
16579 " guestfs_pwrite_device (guestfs_h *g,\n"
16580 "                        const char *device,\n"
16581 "                        const char *content,\n"
16582 "                        size_t content_size,\n"
16583 "                        int64_t offset);\n"
16584 "\n"
16585 msgstr ""
16586
16587 # type: textblock
16588 #. type: textblock
16589 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:3569
16590 msgid ""
16591 "This command writes to part of a device.  It writes the data buffer "
16592 "C<content> to C<device> starting at offset C<offset>."
16593 msgstr ""
16594
16595 # type: textblock
16596 #. type: textblock
16597 #: ../src/guestfs-actions.pod:5333 ../fish/guestfish-actions.pod:3572
16598 msgid ""
16599 "This command implements the L<pwrite(2)> system call, and like that system "
16600 "call it may not write the full data requested (although short writes to disk "
16601 "devices and partitions are probably impossible with standard Linux kernels)."
16602 msgstr ""
16603
16604 # type: textblock
16605 #. type: textblock
16606 #: ../src/guestfs-actions.pod:5338
16607 msgid "See also C<guestfs_pwrite>."
16608 msgstr ""
16609
16610 # type: textblock
16611 #. type: textblock
16612 #: ../src/guestfs-actions.pod:5345
16613 msgid "(Added in 1.5.20)"
16614 msgstr ""
16615
16616 # type: =head2
16617 #. type: =head2
16618 #: ../src/guestfs-actions.pod:5347
16619 msgid "guestfs_read_file"
16620 msgstr ""
16621
16622 # type: verbatim
16623 #. type: verbatim
16624 #: ../src/guestfs-actions.pod:5349
16625 #, no-wrap
16626 msgid ""
16627 " char *\n"
16628 " guestfs_read_file (guestfs_h *g,\n"
16629 "                    const char *path,\n"
16630 "                    size_t *size_r);\n"
16631 "\n"
16632 msgstr ""
16633
16634 # type: textblock
16635 #. type: textblock
16636 #: ../src/guestfs-actions.pod:5354 ../fish/guestfish-actions.pod:3586
16637 msgid "This calls returns the contents of the file C<path> as a buffer."
16638 msgstr ""
16639
16640 # type: textblock
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:5357
16643 msgid ""
16644 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16645 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16646 "function is limited in the total size of file that can be handled."
16647 msgstr ""
16648
16649 # type: textblock
16650 #. type: textblock
16651 #: ../src/guestfs-actions.pod:5369
16652 msgid "(Added in 1.0.63)"
16653 msgstr ""
16654
16655 # type: =head2
16656 #. type: =head2
16657 #: ../src/guestfs-actions.pod:5371
16658 msgid "guestfs_read_lines"
16659 msgstr ""
16660
16661 # type: verbatim
16662 #. type: verbatim
16663 #: ../src/guestfs-actions.pod:5373
16664 #, no-wrap
16665 msgid ""
16666 " char **\n"
16667 " guestfs_read_lines (guestfs_h *g,\n"
16668 "                     const char *path);\n"
16669 "\n"
16670 msgstr ""
16671
16672 # type: textblock
16673 #. type: textblock
16674 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3603
16675 msgid ""
16676 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16677 "C<CRLF> character sequences are I<not> returned."
16678 msgstr ""
16679
16680 # type: textblock
16681 #. type: textblock
16682 #: ../src/guestfs-actions.pod:5382
16683 msgid ""
16684 "Note that this function cannot correctly handle binary files (specifically, "
16685 "files containing C<\\0> character which is treated as end of line).  For "
16686 "those you need to use the C<guestfs_read_file> function which has a more "
16687 "complex interface."
16688 msgstr ""
16689
16690 # type: =head2
16691 #. type: =head2
16692 #: ../src/guestfs-actions.pod:5393
16693 msgid "guestfs_readdir"
16694 msgstr ""
16695
16696 # type: verbatim
16697 #. type: verbatim
16698 #: ../src/guestfs-actions.pod:5395
16699 #, no-wrap
16700 msgid ""
16701 " struct guestfs_dirent_list *\n"
16702 " guestfs_readdir (guestfs_h *g,\n"
16703 "                  const char *dir);\n"
16704 "\n"
16705 msgstr ""
16706
16707 # type: textblock
16708 #. type: textblock
16709 #: ../src/guestfs-actions.pod:5399 ../fish/guestfish-actions.pod:3615
16710 msgid "This returns the list of directory entries in directory C<dir>."
16711 msgstr ""
16712
16713 # type: textblock
16714 #. type: textblock
16715 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3617
16716 msgid ""
16717 "All entries in the directory are returned, including C<.> and C<..>.  The "
16718 "entries are I<not> sorted, but returned in the same order as the underlying "
16719 "filesystem."
16720 msgstr ""
16721
16722 # type: textblock
16723 #. type: textblock
16724 #: ../src/guestfs-actions.pod:5405 ../fish/guestfish-actions.pod:3621
16725 msgid ""
16726 "Also this call returns basic file type information about each file.  The "
16727 "C<ftyp> field will contain one of the following characters:"
16728 msgstr ""
16729
16730 # type: =item
16731 #. type: =item
16732 #: ../src/guestfs-actions.pod:5410 ../fish/guestfish-actions.pod:3626
16733 msgid "'b'"
16734 msgstr ""
16735
16736 # type: textblock
16737 #. type: textblock
16738 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3628
16739 msgid "Block special"
16740 msgstr ""
16741
16742 # type: =item
16743 #. type: =item
16744 #: ../src/guestfs-actions.pod:5414 ../fish/guestfish-actions.pod:3630
16745 msgid "'c'"
16746 msgstr ""
16747
16748 # type: textblock
16749 #. type: textblock
16750 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3632
16751 msgid "Char special"
16752 msgstr ""
16753
16754 # type: =item
16755 #. type: =item
16756 #: ../src/guestfs-actions.pod:5418 ../fish/guestfish-actions.pod:3634
16757 msgid "'d'"
16758 msgstr ""
16759
16760 # type: textblock
16761 #. type: textblock
16762 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3636
16763 msgid "Directory"
16764 msgstr ""
16765
16766 # type: =item
16767 #. type: =item
16768 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3638
16769 msgid "'f'"
16770 msgstr ""
16771
16772 # type: textblock
16773 #. type: textblock
16774 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3640
16775 msgid "FIFO (named pipe)"
16776 msgstr ""
16777
16778 # type: =item
16779 #. type: =item
16780 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3642
16781 msgid "'l'"
16782 msgstr ""
16783
16784 # type: textblock
16785 #. type: textblock
16786 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3644
16787 msgid "Symbolic link"
16788 msgstr ""
16789
16790 # type: =item
16791 #. type: =item
16792 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3646
16793 msgid "'r'"
16794 msgstr ""
16795
16796 # type: textblock
16797 #. type: textblock
16798 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3648
16799 msgid "Regular file"
16800 msgstr ""
16801
16802 # type: =item
16803 #. type: =item
16804 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3650
16805 msgid "'s'"
16806 msgstr ""
16807
16808 # type: textblock
16809 #. type: textblock
16810 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3652
16811 msgid "Socket"
16812 msgstr ""
16813
16814 # type: =item
16815 #. type: =item
16816 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3654
16817 msgid "'u'"
16818 msgstr ""
16819
16820 # type: textblock
16821 #. type: textblock
16822 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3656
16823 msgid "Unknown file type"
16824 msgstr ""
16825
16826 # type: =item
16827 #. type: =item
16828 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3658
16829 msgid "'?'"
16830 msgstr ""
16831
16832 # type: textblock
16833 #. type: textblock
16834 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3660
16835 msgid ""
16836 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16837 msgstr ""
16838
16839 # type: textblock
16840 #. type: textblock
16841 #: ../src/guestfs-actions.pod:5449
16842 msgid ""
16843 "This function is primarily intended for use by programs.  To get a simple "
16844 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16845 "consumption, use C<guestfs_ll>."
16846 msgstr ""
16847
16848 # type: textblock
16849 #. type: textblock
16850 #: ../src/guestfs-actions.pod:5453
16851 msgid ""
16852 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16853 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16854 msgstr ""
16855
16856 # type: =head2
16857 #. type: =head2
16858 #: ../src/guestfs-actions.pod:5459
16859 msgid "guestfs_readlink"
16860 msgstr ""
16861
16862 # type: verbatim
16863 #. type: verbatim
16864 #: ../src/guestfs-actions.pod:5461
16865 #, no-wrap
16866 msgid ""
16867 " char *\n"
16868 " guestfs_readlink (guestfs_h *g,\n"
16869 "                   const char *path);\n"
16870 "\n"
16871 msgstr ""
16872
16873 # type: textblock
16874 #. type: textblock
16875 #: ../src/guestfs-actions.pod:5465 ../fish/guestfish-actions.pod:3673
16876 msgid "This command reads the target of a symbolic link."
16877 msgstr ""
16878
16879 # type: =head2
16880 #. type: =head2
16881 #: ../src/guestfs-actions.pod:5472
16882 msgid "guestfs_readlinklist"
16883 msgstr ""
16884
16885 # type: verbatim
16886 #. type: verbatim
16887 #: ../src/guestfs-actions.pod:5474
16888 #, no-wrap
16889 msgid ""
16890 " char **\n"
16891 " guestfs_readlinklist (guestfs_h *g,\n"
16892 "                       const char *path,\n"
16893 "                       char *const *names);\n"
16894 "\n"
16895 msgstr ""
16896
16897 # type: textblock
16898 #. type: textblock
16899 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3679
16900 msgid ""
16901 "This call allows you to do a C<readlink> operation on multiple files, where "
16902 "all files are in the directory C<path>.  C<names> is the list of files from "
16903 "this directory."
16904 msgstr ""
16905
16906 # type: textblock
16907 #. type: textblock
16908 #: ../src/guestfs-actions.pod:5483 ../fish/guestfish-actions.pod:3683
16909 msgid ""
16910 "On return you get a list of strings, with a one-to-one correspondence to the "
16911 "C<names> list.  Each string is the value of the symbolic link."
16912 msgstr ""
16913
16914 # type: textblock
16915 #. type: textblock
16916 #: ../src/guestfs-actions.pod:5487 ../fish/guestfish-actions.pod:3687
16917 msgid ""
16918 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16919 "result string is the empty string C<\"\">.  However the whole operation is "
16920 "completed even if there were C<readlink(2)> errors, and so you can call this "
16921 "function with names where you don't know if they are symbolic links already "
16922 "(albeit slightly less efficient)."
16923 msgstr ""
16924
16925 # type: textblock
16926 #. type: textblock
16927 #: ../src/guestfs-actions.pod:5494 ../fish/guestfish-actions.pod:3694
16928 msgid ""
16929 "This call is intended for programs that want to efficiently list a directory "
16930 "contents without making many round-trips.  Very long directory listings "
16931 "might cause the protocol message size to be exceeded, causing this call to "
16932 "fail.  The caller must split up such requests into smaller groups of names."
16933 msgstr ""
16934
16935 # type: =head2
16936 #. type: =head2
16937 #: ../src/guestfs-actions.pod:5507
16938 msgid "guestfs_realpath"
16939 msgstr ""
16940
16941 # type: verbatim
16942 #. type: verbatim
16943 #: ../src/guestfs-actions.pod:5509
16944 #, no-wrap
16945 msgid ""
16946 " char *\n"
16947 " guestfs_realpath (guestfs_h *g,\n"
16948 "                   const char *path);\n"
16949 "\n"
16950 msgstr ""
16951
16952 # type: textblock
16953 #. type: textblock
16954 #: ../src/guestfs-actions.pod:5513 ../fish/guestfish-actions.pod:3705
16955 msgid ""
16956 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16957 "has no C<.>, C<..> or symbolic link path elements."
16958 msgstr ""
16959
16960 # type: =head2
16961 #. type: =head2
16962 #: ../src/guestfs-actions.pod:5521
16963 msgid "guestfs_removexattr"
16964 msgstr ""
16965
16966 # type: verbatim
16967 #. type: verbatim
16968 #: ../src/guestfs-actions.pod:5523
16969 #, no-wrap
16970 msgid ""
16971 " int\n"
16972 " guestfs_removexattr (guestfs_h *g,\n"
16973 "                      const char *xattr,\n"
16974 "                      const char *path);\n"
16975 "\n"
16976 msgstr ""
16977
16978 # type: textblock
16979 #. type: textblock
16980 #: ../src/guestfs-actions.pod:5528 ../fish/guestfish-actions.pod:3712
16981 msgid ""
16982 "This call removes the extended attribute named C<xattr> of the file C<path>."
16983 msgstr ""
16984
16985 # type: textblock
16986 #. type: textblock
16987 #: ../src/guestfs-actions.pod:5531
16988 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16989 msgstr ""
16990
16991 # type: =head2
16992 #. type: =head2
16993 #: ../src/guestfs-actions.pod:5537
16994 msgid "guestfs_resize2fs"
16995 msgstr ""
16996
16997 # type: verbatim
16998 #. type: verbatim
16999 #: ../src/guestfs-actions.pod:5539
17000 #, no-wrap
17001 msgid ""
17002 " int\n"
17003 " guestfs_resize2fs (guestfs_h *g,\n"
17004 "                    const char *device);\n"
17005 "\n"
17006 msgstr ""
17007
17008 # type: textblock
17009 #. type: textblock
17010 #: ../src/guestfs-actions.pod:5543 ../fish/guestfish-actions.pod:3721
17011 msgid ""
17012 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17013 "underlying device."
17014 msgstr ""
17015
17016 # type: textblock
17017 #. type: textblock
17018 #: ../src/guestfs-actions.pod:5546
17019 msgid ""
17020 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17021 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17022 "sometimes gives an error about this and sometimes not.  In any case, it is "
17023 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17024 msgstr ""
17025
17026 #. type: =head2
17027 #: ../src/guestfs-actions.pod:5556
17028 msgid "guestfs_resize2fs_M"
17029 msgstr ""
17030
17031 #. type: verbatim
17032 #: ../src/guestfs-actions.pod:5558
17033 #, no-wrap
17034 msgid ""
17035 " int\n"
17036 " guestfs_resize2fs_M (guestfs_h *g,\n"
17037 "                      const char *device);\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../src/guestfs-actions.pod:5562
17043 msgid ""
17044 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17045 "resized to its minimum size.  This works like the C<-M> option to the "
17046 "C<resize2fs> command."
17047 msgstr ""
17048
17049 #. type: textblock
17050 #: ../src/guestfs-actions.pod:5566
17051 msgid ""
17052 "To get the resulting size of the filesystem you should call "
17053 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17054 "These two numbers, multiplied together, give the resulting size of the "
17055 "minimal filesystem in bytes."
17056 msgstr ""
17057
17058 # type: =head2
17059 #. type: =head2
17060 #: ../src/guestfs-actions.pod:5573
17061 msgid "guestfs_resize2fs_size"
17062 msgstr ""
17063
17064 # type: verbatim
17065 #. type: verbatim
17066 #: ../src/guestfs-actions.pod:5575
17067 #, no-wrap
17068 msgid ""
17069 " int\n"
17070 " guestfs_resize2fs_size (guestfs_h *g,\n"
17071 "                         const char *device,\n"
17072 "                         int64_t size);\n"
17073 "\n"
17074 msgstr ""
17075
17076 # type: textblock
17077 #. type: textblock
17078 #: ../src/guestfs-actions.pod:5580
17079 msgid ""
17080 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17081 "to specify the new size (in bytes) explicitly."
17082 msgstr ""
17083
17084 # type: =head2
17085 #. type: =head2
17086 #: ../src/guestfs-actions.pod:5587
17087 msgid "guestfs_rm"
17088 msgstr ""
17089
17090 # type: verbatim
17091 #. type: verbatim
17092 #: ../src/guestfs-actions.pod:5589
17093 #, no-wrap
17094 msgid ""
17095 " int\n"
17096 " guestfs_rm (guestfs_h *g,\n"
17097 "             const char *path);\n"
17098 "\n"
17099 msgstr ""
17100
17101 # type: textblock
17102 #. type: textblock
17103 #: ../src/guestfs-actions.pod:5593 ../fish/guestfish-actions.pod:3754
17104 msgid "Remove the single file C<path>."
17105 msgstr ""
17106
17107 # type: =head2
17108 #. type: =head2
17109 #: ../src/guestfs-actions.pod:5599
17110 msgid "guestfs_rm_rf"
17111 msgstr ""
17112
17113 # type: verbatim
17114 #. type: verbatim
17115 #: ../src/guestfs-actions.pod:5601
17116 #, no-wrap
17117 msgid ""
17118 " int\n"
17119 " guestfs_rm_rf (guestfs_h *g,\n"
17120 "                const char *path);\n"
17121 "\n"
17122 msgstr ""
17123
17124 # type: textblock
17125 #. type: textblock
17126 #: ../src/guestfs-actions.pod:5605 ../fish/guestfish-actions.pod:3760
17127 msgid ""
17128 "Remove the file or directory C<path>, recursively removing the contents if "
17129 "its a directory.  This is like the C<rm -rf> shell command."
17130 msgstr ""
17131
17132 # type: =head2
17133 #. type: =head2
17134 #: ../src/guestfs-actions.pod:5613
17135 msgid "guestfs_rmdir"
17136 msgstr ""
17137
17138 # type: verbatim
17139 #. type: verbatim
17140 #: ../src/guestfs-actions.pod:5615
17141 #, no-wrap
17142 msgid ""
17143 " int\n"
17144 " guestfs_rmdir (guestfs_h *g,\n"
17145 "                const char *path);\n"
17146 "\n"
17147 msgstr ""
17148
17149 # type: textblock
17150 #. type: textblock
17151 #: ../src/guestfs-actions.pod:5619 ../fish/guestfish-actions.pod:3768
17152 msgid "Remove the single directory C<path>."
17153 msgstr ""
17154
17155 # type: =head2
17156 #. type: =head2
17157 #: ../src/guestfs-actions.pod:5625
17158 msgid "guestfs_rmmountpoint"
17159 msgstr ""
17160
17161 # type: verbatim
17162 #. type: verbatim
17163 #: ../src/guestfs-actions.pod:5627
17164 #, no-wrap
17165 msgid ""
17166 " int\n"
17167 " guestfs_rmmountpoint (guestfs_h *g,\n"
17168 "                       const char *exemptpath);\n"
17169 "\n"
17170 msgstr ""
17171
17172 # type: textblock
17173 #. type: textblock
17174 #: ../src/guestfs-actions.pod:5631
17175 msgid ""
17176 "This calls removes a mountpoint that was previously created with "
17177 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17178 msgstr ""
17179
17180 # type: =head2
17181 #. type: =head2
17182 #: ../src/guestfs-actions.pod:5639
17183 msgid "guestfs_scrub_device"
17184 msgstr ""
17185
17186 # type: verbatim
17187 #. type: verbatim
17188 #: ../src/guestfs-actions.pod:5641
17189 #, no-wrap
17190 msgid ""
17191 " int\n"
17192 " guestfs_scrub_device (guestfs_h *g,\n"
17193 "                       const char *device);\n"
17194 "\n"
17195 msgstr ""
17196
17197 # type: textblock
17198 #. type: textblock
17199 #: ../src/guestfs-actions.pod:5645 ../fish/guestfish-actions.pod:3782
17200 msgid ""
17201 "This command writes patterns over C<device> to make data retrieval more "
17202 "difficult."
17203 msgstr ""
17204
17205 # type: textblock
17206 #. type: textblock
17207 #: ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5669
17208 #: ../src/guestfs-actions.pod:5688 ../fish/guestfish-actions.pod:3785
17209 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3813
17210 msgid ""
17211 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17212 "more details."
17213 msgstr ""
17214
17215 # type: textblock
17216 #. type: textblock
17217 #: ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5674
17218 #: ../src/guestfs-actions.pod:5693
17219 msgid "(Added in 1.0.52)"
17220 msgstr ""
17221
17222 # type: =head2
17223 #. type: =head2
17224 #: ../src/guestfs-actions.pod:5658
17225 msgid "guestfs_scrub_file"
17226 msgstr ""
17227
17228 # type: verbatim
17229 #. type: verbatim
17230 #: ../src/guestfs-actions.pod:5660
17231 #, no-wrap
17232 msgid ""
17233 " int\n"
17234 " guestfs_scrub_file (guestfs_h *g,\n"
17235 "                     const char *file);\n"
17236 "\n"
17237 msgstr ""
17238
17239 # type: textblock
17240 #. type: textblock
17241 #: ../src/guestfs-actions.pod:5664 ../fish/guestfish-actions.pod:3795
17242 msgid ""
17243 "This command writes patterns over a file to make data retrieval more "
17244 "difficult."
17245 msgstr ""
17246
17247 # type: textblock
17248 #. type: textblock
17249 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3798
17250 msgid "The file is I<removed> after scrubbing."
17251 msgstr ""
17252
17253 # type: =head2
17254 #. type: =head2
17255 #: ../src/guestfs-actions.pod:5676
17256 msgid "guestfs_scrub_freespace"
17257 msgstr ""
17258
17259 # type: verbatim
17260 #. type: verbatim
17261 #: ../src/guestfs-actions.pod:5678
17262 #, no-wrap
17263 msgid ""
17264 " int\n"
17265 " guestfs_scrub_freespace (guestfs_h *g,\n"
17266 "                          const char *dir);\n"
17267 "\n"
17268 msgstr ""
17269
17270 # type: textblock
17271 #. type: textblock
17272 #: ../src/guestfs-actions.pod:5682
17273 msgid ""
17274 "This command creates the directory C<dir> and then fills it with files until "
17275 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17276 "and deletes them.  The intention is to scrub any free space on the partition "
17277 "containing C<dir>."
17278 msgstr ""
17279
17280 # type: =head2
17281 #. type: =head2
17282 #: ../src/guestfs-actions.pod:5695
17283 msgid "guestfs_set_append"
17284 msgstr ""
17285
17286 # type: verbatim
17287 #. type: verbatim
17288 #: ../src/guestfs-actions.pod:5697
17289 #, no-wrap
17290 msgid ""
17291 " int\n"
17292 " guestfs_set_append (guestfs_h *g,\n"
17293 "                     const char *append);\n"
17294 "\n"
17295 msgstr ""
17296
17297 # type: textblock
17298 #. type: textblock
17299 #: ../src/guestfs-actions.pod:5701 ../fish/guestfish-actions.pod:3822
17300 msgid ""
17301 "This function is used to add additional options to the guest kernel command "
17302 "line."
17303 msgstr ""
17304
17305 # type: textblock
17306 #. type: textblock
17307 #: ../src/guestfs-actions.pod:5704 ../fish/guestfish-actions.pod:3825
17308 msgid ""
17309 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17310 "environment variable."
17311 msgstr ""
17312
17313 # type: textblock
17314 #. type: textblock
17315 #: ../src/guestfs-actions.pod:5707 ../fish/guestfish-actions.pod:3828
17316 msgid ""
17317 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17318 "(libguestfs always adds a few of its own)."
17319 msgstr ""
17320
17321 #. type: =head2
17322 #: ../src/guestfs-actions.pod:5714
17323 msgid "guestfs_set_attach_method"
17324 msgstr ""
17325
17326 #. type: verbatim
17327 #: ../src/guestfs-actions.pod:5716
17328 #, no-wrap
17329 msgid ""
17330 " int\n"
17331 " guestfs_set_attach_method (guestfs_h *g,\n"
17332 "                            const char *attachmethod);\n"
17333 "\n"
17334 msgstr ""
17335
17336 #. type: textblock
17337 #: ../src/guestfs-actions.pod:5720 ../fish/guestfish-actions.pod:3837
17338 msgid ""
17339 "Set the method that libguestfs uses to connect to the back end guestfsd "
17340 "daemon.  Possible methods are:"
17341 msgstr ""
17342
17343 #. type: textblock
17344 #: ../src/guestfs-actions.pod:5727 ../fish/guestfish-actions.pod:3844
17345 msgid ""
17346 "Launch an appliance and connect to it.  This is the ordinary method and the "
17347 "default."
17348 msgstr ""
17349
17350 #. type: =item
17351 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3847
17352 msgid "C<unix:I<path>>"
17353 msgstr ""
17354
17355 #. type: textblock
17356 #: ../src/guestfs-actions.pod:5732 ../fish/guestfish-actions.pod:3849
17357 msgid "Connect to the Unix domain socket I<path>."
17358 msgstr ""
17359
17360 #. type: textblock
17361 #: ../src/guestfs-actions.pod:5734 ../fish/guestfish-actions.pod:3851
17362 msgid ""
17363 "This method lets you connect to an existing daemon or (using virtio-serial) "
17364 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
17365 "RUNNING DAEMONS>."
17366 msgstr ""
17367
17368 # type: =head2
17369 #. type: =head2
17370 #: ../src/guestfs-actions.pod:5742
17371 msgid "guestfs_set_autosync"
17372 msgstr ""
17373
17374 # type: verbatim
17375 #. type: verbatim
17376 #: ../src/guestfs-actions.pod:5744
17377 #, no-wrap
17378 msgid ""
17379 " int\n"
17380 " guestfs_set_autosync (guestfs_h *g,\n"
17381 "                       int autosync);\n"
17382 "\n"
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3863
17387 msgid ""
17388 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
17389 "effort attempt to make filesystems consistent and synchronized when the "
17390 "handle is closed (also if the program exits without closing handles)."
17391 msgstr ""
17392
17393 # type: textblock
17394 #. type: textblock
17395 #: ../src/guestfs-actions.pod:5753 ../fish/guestfish-actions.pod:3868
17396 msgid ""
17397 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17398 "disabled by default)."
17399 msgstr ""
17400
17401 # type: =head2
17402 #. type: =head2
17403 #: ../src/guestfs-actions.pod:5760
17404 msgid "guestfs_set_direct"
17405 msgstr ""
17406
17407 # type: verbatim
17408 #. type: verbatim
17409 #: ../src/guestfs-actions.pod:5762
17410 #, no-wrap
17411 msgid ""
17412 " int\n"
17413 " guestfs_set_direct (guestfs_h *g,\n"
17414 "                     int direct);\n"
17415 "\n"
17416 msgstr ""
17417
17418 # type: textblock
17419 #. type: textblock
17420 #: ../src/guestfs-actions.pod:5766 ../fish/guestfish-actions.pod:3877
17421 msgid ""
17422 "If the direct appliance mode flag is enabled, then stdin and stdout are "
17423 "passed directly through to the appliance once it is launched."
17424 msgstr ""
17425
17426 # type: textblock
17427 #. type: textblock
17428 #: ../src/guestfs-actions.pod:5770
17429 msgid ""
17430 "One consequence of this is that log messages aren't caught by the library "
17431 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
17432 "stdout."
17433 msgstr ""
17434
17435 # type: textblock
17436 #. type: textblock
17437 #: ../src/guestfs-actions.pod:5774 ../fish/guestfish-actions.pod:3885
17438 msgid "You probably don't want to use this unless you know what you are doing."
17439 msgstr ""
17440
17441 # type: textblock
17442 #. type: textblock
17443 #: ../src/guestfs-actions.pod:5777 ../fish/guestfish-actions.pod:3888
17444 msgid "The default is disabled."
17445 msgstr ""
17446
17447 # type: =head2
17448 #. type: =head2
17449 #: ../src/guestfs-actions.pod:5783
17450 msgid "guestfs_set_e2label"
17451 msgstr ""
17452
17453 # type: verbatim
17454 #. type: verbatim
17455 #: ../src/guestfs-actions.pod:5785
17456 #, no-wrap
17457 msgid ""
17458 " int\n"
17459 " guestfs_set_e2label (guestfs_h *g,\n"
17460 "                      const char *device,\n"
17461 "                      const char *label);\n"
17462 "\n"
17463 msgstr ""
17464
17465 # type: textblock
17466 #. type: textblock
17467 #: ../src/guestfs-actions.pod:5790 ../fish/guestfish-actions.pod:3894
17468 msgid ""
17469 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
17470 "C<label>.  Filesystem labels are limited to 16 characters."
17471 msgstr ""
17472
17473 # type: textblock
17474 #. type: textblock
17475 #: ../src/guestfs-actions.pod:5794
17476 msgid ""
17477 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17478 "the existing label on a filesystem."
17479 msgstr ""
17480
17481 # type: =head2
17482 #. type: =head2
17483 #: ../src/guestfs-actions.pod:5801
17484 msgid "guestfs_set_e2uuid"
17485 msgstr ""
17486
17487 # type: verbatim
17488 #. type: verbatim
17489 #: ../src/guestfs-actions.pod:5803
17490 #, no-wrap
17491 msgid ""
17492 " int\n"
17493 " guestfs_set_e2uuid (guestfs_h *g,\n"
17494 "                     const char *device,\n"
17495 "                     const char *uuid);\n"
17496 "\n"
17497 msgstr ""
17498
17499 # type: textblock
17500 #. type: textblock
17501 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:3905
17502 msgid ""
17503 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
17504 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
17505 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
17506 msgstr ""
17507
17508 # type: textblock
17509 #. type: textblock
17510 #: ../src/guestfs-actions.pod:5813
17511 msgid ""
17512 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17513 "the existing UUID of a filesystem."
17514 msgstr ""
17515
17516 # type: =head2
17517 #. type: =head2
17518 #: ../src/guestfs-actions.pod:5820
17519 msgid "guestfs_set_memsize"
17520 msgstr ""
17521
17522 # type: verbatim
17523 #. type: verbatim
17524 #: ../src/guestfs-actions.pod:5822
17525 #, no-wrap
17526 msgid ""
17527 " int\n"
17528 " guestfs_set_memsize (guestfs_h *g,\n"
17529 "                      int memsize);\n"
17530 "\n"
17531 msgstr ""
17532
17533 # type: textblock
17534 #. type: textblock
17535 #: ../src/guestfs-actions.pod:5826
17536 msgid ""
17537 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
17538 "This only has any effect if called before C<guestfs_launch>."
17539 msgstr ""
17540
17541 # type: textblock
17542 #. type: textblock
17543 #: ../src/guestfs-actions.pod:5830 ../fish/guestfish-actions.pod:3923
17544 msgid ""
17545 "You can also change this by setting the environment variable "
17546 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17547 msgstr ""
17548
17549 # type: =head2
17550 #. type: =head2
17551 #: ../src/guestfs-actions.pod:5841
17552 msgid "guestfs_set_network"
17553 msgstr ""
17554
17555 # type: verbatim
17556 #. type: verbatim
17557 #: ../src/guestfs-actions.pod:5843
17558 #, no-wrap
17559 msgid ""
17560 " int\n"
17561 " guestfs_set_network (guestfs_h *g,\n"
17562 "                      int network);\n"
17563 "\n"
17564 msgstr ""
17565
17566 # type: textblock
17567 #. type: textblock
17568 #: ../src/guestfs-actions.pod:5847 ../fish/guestfish-actions.pod:3936
17569 msgid ""
17570 "If C<network> is true, then the network is enabled in the libguestfs "
17571 "appliance.  The default is false."
17572 msgstr ""
17573
17574 # type: textblock
17575 #. type: textblock
17576 #: ../src/guestfs-actions.pod:5850 ../fish/guestfish-actions.pod:3939
17577 msgid ""
17578 "This affects whether commands are able to access the network (see L<guestfs"
17579 "(3)/RUNNING COMMANDS>)."
17580 msgstr ""
17581
17582 # type: textblock
17583 #. type: textblock
17584 #: ../src/guestfs-actions.pod:5853
17585 msgid ""
17586 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17587 "effect."
17588 msgstr ""
17589
17590 # type: =head2
17591 #. type: =head2
17592 #: ../src/guestfs-actions.pod:5860
17593 msgid "guestfs_set_path"
17594 msgstr ""
17595
17596 # type: verbatim
17597 #. type: verbatim
17598 #: ../src/guestfs-actions.pod:5862
17599 #, no-wrap
17600 msgid ""
17601 " int\n"
17602 " guestfs_set_path (guestfs_h *g,\n"
17603 "                   const char *searchpath);\n"
17604 "\n"
17605 msgstr ""
17606
17607 # type: textblock
17608 #. type: textblock
17609 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3951
17610 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17611 msgstr ""
17612
17613 # type: textblock
17614 #. type: textblock
17615 #: ../src/guestfs-actions.pod:5868 ../fish/guestfish-actions.pod:3953
17616 msgid ""
17617 "The default is C<$libdir/guestfs> unless overridden by setting "
17618 "C<LIBGUESTFS_PATH> environment variable."
17619 msgstr ""
17620
17621 # type: textblock
17622 #. type: textblock
17623 #: ../src/guestfs-actions.pod:5871 ../fish/guestfish-actions.pod:3956
17624 msgid "Setting C<path> to C<NULL> restores the default path."
17625 msgstr ""
17626
17627 # type: =head2
17628 #. type: =head2
17629 #: ../src/guestfs-actions.pod:5877
17630 msgid "guestfs_set_qemu"
17631 msgstr ""
17632
17633 # type: verbatim
17634 #. type: verbatim
17635 #: ../src/guestfs-actions.pod:5879
17636 #, no-wrap
17637 msgid ""
17638 " int\n"
17639 " guestfs_set_qemu (guestfs_h *g,\n"
17640 "                   const char *qemu);\n"
17641 "\n"
17642 msgstr ""
17643
17644 # type: textblock
17645 #. type: textblock
17646 #: ../src/guestfs-actions.pod:5883 ../fish/guestfish-actions.pod:3964
17647 msgid "Set the qemu binary that we will use."
17648 msgstr ""
17649
17650 # type: textblock
17651 #. type: textblock
17652 #: ../src/guestfs-actions.pod:5885 ../fish/guestfish-actions.pod:3966
17653 msgid ""
17654 "The default is chosen when the library was compiled by the configure script."
17655 msgstr ""
17656
17657 # type: textblock
17658 #. type: textblock
17659 #: ../src/guestfs-actions.pod:5888 ../fish/guestfish-actions.pod:3969
17660 msgid ""
17661 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17662 "variable."
17663 msgstr ""
17664
17665 # type: textblock
17666 #. type: textblock
17667 #: ../src/guestfs-actions.pod:5891 ../fish/guestfish-actions.pod:3972
17668 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17669 msgstr ""
17670
17671 # type: textblock
17672 #. type: textblock
17673 #: ../src/guestfs-actions.pod:5893 ../fish/guestfish-actions.pod:3974
17674 msgid ""
17675 "Note that you should call this function as early as possible after creating "
17676 "the handle.  This is because some pre-launch operations depend on testing "
17677 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17678 "don't retest features, and so you might see inconsistent results.  Using the "
17679 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17680 "the qemu binary at the same time as the handle is created."
17681 msgstr ""
17682
17683 # type: =head2
17684 #. type: =head2
17685 #: ../src/guestfs-actions.pod:5905
17686 msgid "guestfs_set_recovery_proc"
17687 msgstr ""
17688
17689 # type: verbatim
17690 #. type: verbatim
17691 #: ../src/guestfs-actions.pod:5907
17692 #, no-wrap
17693 msgid ""
17694 " int\n"
17695 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17696 "                            int recoveryproc);\n"
17697 "\n"
17698 msgstr ""
17699
17700 # type: textblock
17701 #. type: textblock
17702 #: ../src/guestfs-actions.pod:5911
17703 msgid ""
17704 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17705 "not create a recovery process.  The purpose of the recovery process is to "
17706 "stop runaway qemu processes in the case where the main program aborts "
17707 "abruptly."
17708 msgstr ""
17709
17710 # type: textblock
17711 #. type: textblock
17712 #: ../src/guestfs-actions.pod:5916
17713 msgid ""
17714 "This only has any effect if called before C<guestfs_launch>, and the default "
17715 "is true."
17716 msgstr ""
17717
17718 # type: textblock
17719 #. type: textblock
17720 #: ../src/guestfs-actions.pod:5919 ../fish/guestfish-actions.pod:3996
17721 msgid ""
17722 "About the only time when you would want to disable this is if the main "
17723 "process will fork itself into the background (\"daemonize\" itself).  In "
17724 "this case the recovery process thinks that the main program has disappeared "
17725 "and so kills qemu, which is not very helpful."
17726 msgstr ""
17727
17728 # type: =head2
17729 #. type: =head2
17730 #: ../src/guestfs-actions.pod:5929
17731 msgid "guestfs_set_selinux"
17732 msgstr ""
17733
17734 # type: verbatim
17735 #. type: verbatim
17736 #: ../src/guestfs-actions.pod:5931
17737 #, no-wrap
17738 msgid ""
17739 " int\n"
17740 " guestfs_set_selinux (guestfs_h *g,\n"
17741 "                      int selinux);\n"
17742 "\n"
17743 msgstr ""
17744
17745 # type: textblock
17746 #. type: textblock
17747 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:4008
17748 msgid ""
17749 "This sets the selinux flag that is passed to the appliance at boot time.  "
17750 "The default is C<selinux=0> (disabled)."
17751 msgstr ""
17752
17753 # type: textblock
17754 #. type: textblock
17755 #: ../src/guestfs-actions.pod:5938 ../fish/guestfish-actions.pod:4011
17756 msgid ""
17757 "Note that if SELinux is enabled, it is always in Permissive mode "
17758 "(C<enforcing=0>)."
17759 msgstr ""
17760
17761 # type: =head2
17762 #. type: =head2
17763 #: ../src/guestfs-actions.pod:5948
17764 msgid "guestfs_set_trace"
17765 msgstr ""
17766
17767 # type: verbatim
17768 #. type: verbatim
17769 #: ../src/guestfs-actions.pod:5950
17770 #, no-wrap
17771 msgid ""
17772 " int\n"
17773 " guestfs_set_trace (guestfs_h *g,\n"
17774 "                    int trace);\n"
17775 "\n"
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../src/guestfs-actions.pod:5954 ../fish/guestfish-actions.pod:4023
17780 msgid ""
17781 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17782 "return values are traced."
17783 msgstr ""
17784
17785 # type: textblock
17786 #. type: textblock
17787 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4026
17788 msgid ""
17789 "If you want to trace C API calls into libguestfs (and other libraries) then "
17790 "possibly a better way is to use the external ltrace(1) command."
17791 msgstr ""
17792
17793 # type: textblock
17794 #. type: textblock
17795 #: ../src/guestfs-actions.pod:5961 ../fish/guestfish-actions.pod:4030
17796 msgid ""
17797 "Command traces are disabled unless the environment variable "
17798 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../src/guestfs-actions.pod:5964
17803 msgid ""
17804 "Trace messages are normally sent to C<stderr>, unless you register a "
17805 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17806 msgstr ""
17807
17808 # type: =head2
17809 #. type: =head2
17810 #: ../src/guestfs-actions.pod:5972
17811 msgid "guestfs_set_verbose"
17812 msgstr ""
17813
17814 # type: verbatim
17815 #. type: verbatim
17816 #: ../src/guestfs-actions.pod:5974
17817 #, no-wrap
17818 msgid ""
17819 " int\n"
17820 " guestfs_set_verbose (guestfs_h *g,\n"
17821 "                      int verbose);\n"
17822 "\n"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../src/guestfs-actions.pod:5978 ../fish/guestfish-actions.pod:4043
17827 msgid "If C<verbose> is true, this turns on verbose messages."
17828 msgstr ""
17829
17830 # type: textblock
17831 #. type: textblock
17832 #: ../src/guestfs-actions.pod:5980 ../fish/guestfish-actions.pod:4045
17833 msgid ""
17834 "Verbose messages are disabled unless the environment variable "
17835 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../src/guestfs-actions.pod:5983
17840 msgid ""
17841 "Verbose messages are normally sent to C<stderr>, unless you register a "
17842 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17843 msgstr ""
17844
17845 # type: =head2
17846 #. type: =head2
17847 #: ../src/guestfs-actions.pod:5991
17848 msgid "guestfs_setcon"
17849 msgstr ""
17850
17851 # type: verbatim
17852 #. type: verbatim
17853 #: ../src/guestfs-actions.pod:5993
17854 #, no-wrap
17855 msgid ""
17856 " int\n"
17857 " guestfs_setcon (guestfs_h *g,\n"
17858 "                 const char *context);\n"
17859 "\n"
17860 msgstr ""
17861
17862 # type: textblock
17863 #. type: textblock
17864 #: ../src/guestfs-actions.pod:5997 ../fish/guestfish-actions.pod:4056
17865 msgid ""
17866 "This sets the SELinux security context of the daemon to the string "
17867 "C<context>."
17868 msgstr ""
17869
17870 # type: textblock
17871 #. type: textblock
17872 #: ../src/guestfs-actions.pod:6000 ../fish/guestfish-actions.pod:4059
17873 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17874 msgstr ""
17875
17876 # type: =head2
17877 #. type: =head2
17878 #: ../src/guestfs-actions.pod:6006
17879 msgid "guestfs_setxattr"
17880 msgstr ""
17881
17882 # type: verbatim
17883 #. type: verbatim
17884 #: ../src/guestfs-actions.pod:6008
17885 #, no-wrap
17886 msgid ""
17887 " int\n"
17888 " guestfs_setxattr (guestfs_h *g,\n"
17889 "                   const char *xattr,\n"
17890 "                   const char *val,\n"
17891 "                   int vallen,\n"
17892 "                   const char *path);\n"
17893 "\n"
17894 msgstr ""
17895
17896 # type: textblock
17897 #. type: textblock
17898 #: ../src/guestfs-actions.pod:6015 ../fish/guestfish-actions.pod:4065
17899 msgid ""
17900 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17901 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17902 msgstr ""
17903
17904 # type: textblock
17905 #. type: textblock
17906 #: ../src/guestfs-actions.pod:6019
17907 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17908 msgstr ""
17909
17910 # type: =head2
17911 #. type: =head2
17912 #: ../src/guestfs-actions.pod:6025
17913 msgid "guestfs_sfdisk"
17914 msgstr ""
17915
17916 # type: verbatim
17917 #. type: verbatim
17918 #: ../src/guestfs-actions.pod:6027
17919 #, no-wrap
17920 msgid ""
17921 " int\n"
17922 " guestfs_sfdisk (guestfs_h *g,\n"
17923 "                 const char *device,\n"
17924 "                 int cyls,\n"
17925 "                 int heads,\n"
17926 "                 int sectors,\n"
17927 "                 char *const *lines);\n"
17928 "\n"
17929 msgstr ""
17930
17931 # type: textblock
17932 #. type: textblock
17933 #: ../src/guestfs-actions.pod:6035 ../fish/guestfish-actions.pod:4075
17934 msgid ""
17935 "This is a direct interface to the L<sfdisk(8)> program for creating "
17936 "partitions on block devices."
17937 msgstr ""
17938
17939 # type: textblock
17940 #. type: textblock
17941 #: ../src/guestfs-actions.pod:6038 ../fish/guestfish-actions.pod:4078
17942 msgid "C<device> should be a block device, for example C</dev/sda>."
17943 msgstr ""
17944
17945 # type: textblock
17946 #. type: textblock
17947 #: ../src/guestfs-actions.pod:6040 ../fish/guestfish-actions.pod:4080
17948 msgid ""
17949 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17950 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17951 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17952 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17953 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17954 "the kernel) cannot work out the right geometry and you will need to tell it."
17955 msgstr ""
17956
17957 # type: textblock
17958 #. type: textblock
17959 #: ../src/guestfs-actions.pod:6048 ../fish/guestfish-actions.pod:4088
17960 msgid ""
17961 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17962 "refer to the L<sfdisk(8)> manpage."
17963 msgstr ""
17964
17965 # type: textblock
17966 #. type: textblock
17967 #: ../src/guestfs-actions.pod:6051 ../fish/guestfish-actions.pod:4091
17968 msgid ""
17969 "To create a single partition occupying the whole disk, you would pass "
17970 "C<lines> as a single element list, when the single element being the string "
17971 "C<,> (comma)."
17972 msgstr ""
17973
17974 # type: textblock
17975 #. type: textblock
17976 #: ../src/guestfs-actions.pod:6055
17977 msgid ""
17978 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17979 msgstr ""
17980
17981 # type: =head2
17982 #. type: =head2
17983 #: ../src/guestfs-actions.pod:6065
17984 msgid "guestfs_sfdiskM"
17985 msgstr ""
17986
17987 # type: verbatim
17988 #. type: verbatim
17989 #: ../src/guestfs-actions.pod:6067
17990 #, no-wrap
17991 msgid ""
17992 " int\n"
17993 " guestfs_sfdiskM (guestfs_h *g,\n"
17994 "                  const char *device,\n"
17995 "                  char *const *lines);\n"
17996 "\n"
17997 msgstr ""
17998
17999 # type: textblock
18000 #. type: textblock
18001 #: ../src/guestfs-actions.pod:6072
18002 msgid ""
18003 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18004 "partition sizes are specified in megabytes only (rounded to the nearest "
18005 "cylinder) and you don't need to specify the cyls, heads and sectors "
18006 "parameters which were rarely if ever used anyway."
18007 msgstr ""
18008
18009 # type: textblock
18010 #. type: textblock
18011 #: ../src/guestfs-actions.pod:6078
18012 msgid ""
18013 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18014 "C<guestfs_part_disk>"
18015 msgstr ""
18016
18017 # type: =head2
18018 #. type: =head2
18019 #: ../src/guestfs-actions.pod:6088
18020 msgid "guestfs_sfdisk_N"
18021 msgstr ""
18022
18023 # type: verbatim
18024 #. type: verbatim
18025 #: ../src/guestfs-actions.pod:6090
18026 #, no-wrap
18027 msgid ""
18028 " int\n"
18029 " guestfs_sfdisk_N (guestfs_h *g,\n"
18030 "                   const char *device,\n"
18031 "                   int partnum,\n"
18032 "                   int cyls,\n"
18033 "                   int heads,\n"
18034 "                   int sectors,\n"
18035 "                   const char *line);\n"
18036 "\n"
18037 msgstr ""
18038
18039 # type: textblock
18040 #. type: textblock
18041 #: ../src/guestfs-actions.pod:6099 ../fish/guestfish-actions.pod:4121
18042 msgid ""
18043 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18044 "(note: C<n> counts from 1)."
18045 msgstr ""
18046
18047 # type: textblock
18048 #. type: textblock
18049 #: ../src/guestfs-actions.pod:6102
18050 msgid ""
18051 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18052 "for the cyls/heads/sectors parameters."
18053 msgstr ""
18054
18055 # type: textblock
18056 #. type: textblock
18057 #: ../src/guestfs-actions.pod:6105
18058 msgid "See also: C<guestfs_part_add>"
18059 msgstr ""
18060
18061 # type: =head2
18062 #. type: =head2
18063 #: ../src/guestfs-actions.pod:6114
18064 msgid "guestfs_sfdisk_disk_geometry"
18065 msgstr ""
18066
18067 # type: verbatim
18068 #. type: verbatim
18069 #: ../src/guestfs-actions.pod:6116
18070 #, no-wrap
18071 msgid ""
18072 " char *\n"
18073 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18074 "                               const char *device);\n"
18075 "\n"
18076 msgstr ""
18077
18078 # type: textblock
18079 #. type: textblock
18080 #: ../src/guestfs-actions.pod:6120
18081 msgid ""
18082 "This displays the disk geometry of C<device> read from the partition table.  "
18083 "Especially in the case where the underlying block device has been resized, "
18084 "this can be different from the kernel's idea of the geometry (see "
18085 "C<guestfs_sfdisk_kernel_geometry>)."
18086 msgstr ""
18087
18088 # type: textblock
18089 #. type: textblock
18090 #: ../src/guestfs-actions.pod:6125 ../src/guestfs-actions.pod:6141
18091 #: ../fish/guestfish-actions.pod:4141 ../fish/guestfish-actions.pod:4150
18092 msgid "The result is in human-readable format, and not designed to be parsed."
18093 msgstr ""
18094
18095 # type: =head2
18096 #. type: =head2
18097 #: ../src/guestfs-actions.pod:6133
18098 msgid "guestfs_sfdisk_kernel_geometry"
18099 msgstr ""
18100
18101 # type: verbatim
18102 #. type: verbatim
18103 #: ../src/guestfs-actions.pod:6135
18104 #, no-wrap
18105 msgid ""
18106 " char *\n"
18107 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18108 "                                 const char *device);\n"
18109 "\n"
18110 msgstr ""
18111
18112 # type: textblock
18113 #. type: textblock
18114 #: ../src/guestfs-actions.pod:6139 ../fish/guestfish-actions.pod:4148
18115 msgid "This displays the kernel's idea of the geometry of C<device>."
18116 msgstr ""
18117
18118 # type: =head2
18119 #. type: =head2
18120 #: ../src/guestfs-actions.pod:6149
18121 msgid "guestfs_sfdisk_l"
18122 msgstr ""
18123
18124 # type: verbatim
18125 #. type: verbatim
18126 #: ../src/guestfs-actions.pod:6151
18127 #, no-wrap
18128 msgid ""
18129 " char *\n"
18130 " guestfs_sfdisk_l (guestfs_h *g,\n"
18131 "                   const char *device);\n"
18132 "\n"
18133 msgstr ""
18134
18135 # type: textblock
18136 #. type: textblock
18137 #: ../src/guestfs-actions.pod:6155 ../fish/guestfish-actions.pod:4157
18138 msgid ""
18139 "This displays the partition table on C<device>, in the human-readable output "
18140 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18141 msgstr ""
18142
18143 # type: textblock
18144 #. type: textblock
18145 #: ../src/guestfs-actions.pod:6159
18146 msgid "See also: C<guestfs_part_list>"
18147 msgstr ""
18148
18149 # type: =head2
18150 #. type: =head2
18151 #: ../src/guestfs-actions.pod:6166
18152 msgid "guestfs_sh"
18153 msgstr ""
18154
18155 # type: verbatim
18156 #. type: verbatim
18157 #: ../src/guestfs-actions.pod:6168
18158 #, no-wrap
18159 msgid ""
18160 " char *\n"
18161 " guestfs_sh (guestfs_h *g,\n"
18162 "             const char *command);\n"
18163 "\n"
18164 msgstr ""
18165
18166 # type: textblock
18167 #. type: textblock
18168 #: ../src/guestfs-actions.pod:6172 ../fish/guestfish-actions.pod:4167
18169 msgid ""
18170 "This call runs a command from the guest filesystem via the guest's C</bin/"
18171 "sh>."
18172 msgstr ""
18173
18174 # type: textblock
18175 #. type: textblock
18176 #: ../src/guestfs-actions.pod:6175
18177 msgid "This is like C<guestfs_command>, but passes the command to:"
18178 msgstr ""
18179
18180 # type: verbatim
18181 #. type: verbatim
18182 #: ../src/guestfs-actions.pod:6177 ../fish/guestfish-actions.pod:4172
18183 #, no-wrap
18184 msgid ""
18185 " /bin/sh -c \"command\"\n"
18186 "\n"
18187 msgstr ""
18188
18189 # type: textblock
18190 #. type: textblock
18191 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4174
18192 msgid ""
18193 "Depending on the guest's shell, this usually results in wildcards being "
18194 "expanded, shell expressions being interpolated and so on."
18195 msgstr ""
18196
18197 # type: textblock
18198 #. type: textblock
18199 #: ../src/guestfs-actions.pod:6183
18200 msgid "All the provisos about C<guestfs_command> apply to this call."
18201 msgstr ""
18202
18203 # type: =head2
18204 #. type: =head2
18205 #: ../src/guestfs-actions.pod:6190
18206 msgid "guestfs_sh_lines"
18207 msgstr ""
18208
18209 # type: verbatim
18210 #. type: verbatim
18211 #: ../src/guestfs-actions.pod:6192
18212 #, no-wrap
18213 msgid ""
18214 " char **\n"
18215 " guestfs_sh_lines (guestfs_h *g,\n"
18216 "                   const char *command);\n"
18217 "\n"
18218 msgstr ""
18219
18220 # type: textblock
18221 #. type: textblock
18222 #: ../src/guestfs-actions.pod:6196
18223 msgid ""
18224 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18225 "lines."
18226 msgstr ""
18227
18228 # type: textblock
18229 #. type: textblock
18230 #: ../src/guestfs-actions.pod:6199
18231 msgid "See also: C<guestfs_command_lines>"
18232 msgstr ""
18233
18234 # type: =head2
18235 #. type: =head2
18236 #: ../src/guestfs-actions.pod:6207
18237 msgid "guestfs_sleep"
18238 msgstr ""
18239
18240 # type: verbatim
18241 #. type: verbatim
18242 #: ../src/guestfs-actions.pod:6209
18243 #, no-wrap
18244 msgid ""
18245 " int\n"
18246 " guestfs_sleep (guestfs_h *g,\n"
18247 "                int secs);\n"
18248 "\n"
18249 msgstr ""
18250
18251 # type: textblock
18252 #. type: textblock
18253 #: ../src/guestfs-actions.pod:6213 ../fish/guestfish-actions.pod:4193
18254 msgid "Sleep for C<secs> seconds."
18255 msgstr ""
18256
18257 # type: textblock
18258 #. type: textblock
18259 #: ../src/guestfs-actions.pod:6217
18260 msgid "(Added in 1.0.41)"
18261 msgstr ""
18262
18263 # type: =head2
18264 #. type: =head2
18265 #: ../src/guestfs-actions.pod:6219 ../src/guestfs-structs.pod:109
18266 msgid "guestfs_stat"
18267 msgstr ""
18268
18269 # type: verbatim
18270 #. type: verbatim
18271 #: ../src/guestfs-actions.pod:6221
18272 #, no-wrap
18273 msgid ""
18274 " struct guestfs_stat *\n"
18275 " guestfs_stat (guestfs_h *g,\n"
18276 "               const char *path);\n"
18277 "\n"
18278 msgstr ""
18279
18280 # type: textblock
18281 #. type: textblock
18282 #: ../src/guestfs-actions.pod:6227 ../fish/guestfish-actions.pod:4201
18283 msgid "This is the same as the C<stat(2)> system call."
18284 msgstr ""
18285
18286 # type: =head2
18287 #. type: =head2
18288 #: ../src/guestfs-actions.pod:6235 ../src/guestfs-structs.pod:135
18289 msgid "guestfs_statvfs"
18290 msgstr ""
18291
18292 # type: verbatim
18293 #. type: verbatim
18294 #: ../src/guestfs-actions.pod:6237
18295 #, no-wrap
18296 msgid ""
18297 " struct guestfs_statvfs *\n"
18298 " guestfs_statvfs (guestfs_h *g,\n"
18299 "                  const char *path);\n"
18300 "\n"
18301 msgstr ""
18302
18303 # type: textblock
18304 #. type: textblock
18305 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4207
18306 msgid ""
18307 "Returns file system statistics for any mounted file system.  C<path> should "
18308 "be a file or directory in the mounted file system (typically it is the mount "
18309 "point itself, but it doesn't need to be)."
18310 msgstr ""
18311
18312 # type: textblock
18313 #. type: textblock
18314 #: ../src/guestfs-actions.pod:6245 ../fish/guestfish-actions.pod:4211
18315 msgid "This is the same as the C<statvfs(2)> system call."
18316 msgstr ""
18317
18318 # type: textblock
18319 #. type: textblock
18320 #: ../src/guestfs-actions.pod:6247
18321 msgid ""
18322 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
18323 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18324 msgstr ""
18325
18326 # type: =head2
18327 #. type: =head2
18328 #: ../src/guestfs-actions.pod:6253
18329 msgid "guestfs_strings"
18330 msgstr ""
18331
18332 # type: verbatim
18333 #. type: verbatim
18334 #: ../src/guestfs-actions.pod:6255
18335 #, no-wrap
18336 msgid ""
18337 " char **\n"
18338 " guestfs_strings (guestfs_h *g,\n"
18339 "                  const char *path);\n"
18340 "\n"
18341 msgstr ""
18342
18343 # type: textblock
18344 #. type: textblock
18345 #: ../src/guestfs-actions.pod:6259 ../fish/guestfish-actions.pod:4217
18346 msgid ""
18347 "This runs the L<strings(1)> command on a file and returns the list of "
18348 "printable strings found."
18349 msgstr ""
18350
18351 # type: =head2
18352 #. type: =head2
18353 #: ../src/guestfs-actions.pod:6271
18354 msgid "guestfs_strings_e"
18355 msgstr ""
18356
18357 # type: verbatim
18358 #. type: verbatim
18359 #: ../src/guestfs-actions.pod:6273
18360 #, no-wrap
18361 msgid ""
18362 " char **\n"
18363 " guestfs_strings_e (guestfs_h *g,\n"
18364 "                    const char *encoding,\n"
18365 "                    const char *path);\n"
18366 "\n"
18367 msgstr ""
18368
18369 # type: textblock
18370 #. type: textblock
18371 #: ../src/guestfs-actions.pod:6278
18372 msgid ""
18373 "This is like the C<guestfs_strings> command, but allows you to specify the "
18374 "encoding of strings that are looked for in the source file C<path>."
18375 msgstr ""
18376
18377 # type: textblock
18378 #. type: textblock
18379 #: ../src/guestfs-actions.pod:6282 ../fish/guestfish-actions.pod:4231
18380 msgid "Allowed encodings are:"
18381 msgstr ""
18382
18383 # type: =item
18384 #. type: =item
18385 #: ../src/guestfs-actions.pod:6286 ../fish/guestfish-actions.pod:4235
18386 msgid "s"
18387 msgstr ""
18388
18389 # type: textblock
18390 #. type: textblock
18391 #: ../src/guestfs-actions.pod:6288
18392 msgid ""
18393 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
18394 "ISO-8859-X (this is what C<guestfs_strings> uses)."
18395 msgstr ""
18396
18397 # type: =item
18398 #. type: =item
18399 #: ../src/guestfs-actions.pod:6291 ../fish/guestfish-actions.pod:4240
18400 msgid "S"
18401 msgstr ""
18402
18403 # type: textblock
18404 #. type: textblock
18405 #: ../src/guestfs-actions.pod:6293 ../fish/guestfish-actions.pod:4242
18406 msgid "Single 8-bit-byte characters."
18407 msgstr ""
18408
18409 # type: =item
18410 #. type: =item
18411 #: ../src/guestfs-actions.pod:6295 ../fish/guestfish-actions.pod:4244
18412 msgid "b"
18413 msgstr ""
18414
18415 # type: textblock
18416 #. type: textblock
18417 #: ../src/guestfs-actions.pod:6297 ../fish/guestfish-actions.pod:4246
18418 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18419 msgstr ""
18420
18421 # type: =item
18422 #. type: =item
18423 #: ../src/guestfs-actions.pod:6300 ../fish/guestfish-actions.pod:4249
18424 msgid "l (lower case letter L)"
18425 msgstr ""
18426
18427 # type: textblock
18428 #. type: textblock
18429 #: ../src/guestfs-actions.pod:6302 ../fish/guestfish-actions.pod:4251
18430 msgid ""
18431 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
18432 "examining binaries in Windows guests."
18433 msgstr ""
18434
18435 # type: =item
18436 #. type: =item
18437 #: ../src/guestfs-actions.pod:6305 ../fish/guestfish-actions.pod:4254
18438 msgid "B"
18439 msgstr ""
18440
18441 # type: textblock
18442 #. type: textblock
18443 #: ../src/guestfs-actions.pod:6307 ../fish/guestfish-actions.pod:4256
18444 msgid "32-bit big endian such as UCS-4BE."
18445 msgstr ""
18446
18447 # type: =item
18448 #. type: =item
18449 #: ../src/guestfs-actions.pod:6309 ../fish/guestfish-actions.pod:4258
18450 msgid "L"
18451 msgstr ""
18452
18453 # type: textblock
18454 #. type: textblock
18455 #: ../src/guestfs-actions.pod:6311 ../fish/guestfish-actions.pod:4260
18456 msgid "32-bit little endian such as UCS-4LE."
18457 msgstr ""
18458
18459 # type: textblock
18460 #. type: textblock
18461 #: ../src/guestfs-actions.pod:6315 ../fish/guestfish-actions.pod:4264
18462 msgid "The returned strings are transcoded to UTF-8."
18463 msgstr ""
18464
18465 # type: =head2
18466 #. type: =head2
18467 #: ../src/guestfs-actions.pod:6326
18468 msgid "guestfs_swapoff_device"
18469 msgstr ""
18470
18471 # type: verbatim
18472 #. type: verbatim
18473 #: ../src/guestfs-actions.pod:6328
18474 #, no-wrap
18475 msgid ""
18476 " int\n"
18477 " guestfs_swapoff_device (guestfs_h *g,\n"
18478 "                         const char *device);\n"
18479 "\n"
18480 msgstr ""
18481
18482 # type: textblock
18483 #. type: textblock
18484 #: ../src/guestfs-actions.pod:6332
18485 msgid ""
18486 "This command disables the libguestfs appliance swap device or partition "
18487 "named C<device>.  See C<guestfs_swapon_device>."
18488 msgstr ""
18489
18490 # type: =head2
18491 #. type: =head2
18492 #: ../src/guestfs-actions.pod:6340
18493 msgid "guestfs_swapoff_file"
18494 msgstr ""
18495
18496 # type: verbatim
18497 #. type: verbatim
18498 #: ../src/guestfs-actions.pod:6342
18499 #, no-wrap
18500 msgid ""
18501 " int\n"
18502 " guestfs_swapoff_file (guestfs_h *g,\n"
18503 "                       const char *file);\n"
18504 "\n"
18505 msgstr ""
18506
18507 # type: textblock
18508 #. type: textblock
18509 #: ../src/guestfs-actions.pod:6346 ../fish/guestfish-actions.pod:4281
18510 msgid "This command disables the libguestfs appliance swap on file."
18511 msgstr ""
18512
18513 # type: =head2
18514 #. type: =head2
18515 #: ../src/guestfs-actions.pod:6352
18516 msgid "guestfs_swapoff_label"
18517 msgstr ""
18518
18519 # type: verbatim
18520 #. type: verbatim
18521 #: ../src/guestfs-actions.pod:6354
18522 #, no-wrap
18523 msgid ""
18524 " int\n"
18525 " guestfs_swapoff_label (guestfs_h *g,\n"
18526 "                        const char *label);\n"
18527 "\n"
18528 msgstr ""
18529
18530 # type: textblock
18531 #. type: textblock
18532 #: ../src/guestfs-actions.pod:6358 ../fish/guestfish-actions.pod:4287
18533 msgid ""
18534 "This command disables the libguestfs appliance swap on labeled swap "
18535 "partition."
18536 msgstr ""
18537
18538 # type: =head2
18539 #. type: =head2
18540 #: ../src/guestfs-actions.pod:6365
18541 msgid "guestfs_swapoff_uuid"
18542 msgstr ""
18543
18544 # type: verbatim
18545 #. type: verbatim
18546 #: ../src/guestfs-actions.pod:6367
18547 #, no-wrap
18548 msgid ""
18549 " int\n"
18550 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18551 "                       const char *uuid);\n"
18552 "\n"
18553 msgstr ""
18554
18555 # type: textblock
18556 #. type: textblock
18557 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4294
18558 msgid ""
18559 "This command disables the libguestfs appliance swap partition with the given "
18560 "UUID."
18561 msgstr ""
18562
18563 # type: =head2
18564 #. type: =head2
18565 #: ../src/guestfs-actions.pod:6378
18566 msgid "guestfs_swapon_device"
18567 msgstr ""
18568
18569 # type: verbatim
18570 #. type: verbatim
18571 #: ../src/guestfs-actions.pod:6380
18572 #, no-wrap
18573 msgid ""
18574 " int\n"
18575 " guestfs_swapon_device (guestfs_h *g,\n"
18576 "                        const char *device);\n"
18577 "\n"
18578 msgstr ""
18579
18580 # type: textblock
18581 #. type: textblock
18582 #: ../src/guestfs-actions.pod:6384
18583 msgid ""
18584 "This command enables the libguestfs appliance to use the swap device or "
18585 "partition named C<device>.  The increased memory is made available for all "
18586 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
18587 msgstr ""
18588
18589 # type: textblock
18590 #. type: textblock
18591 #: ../src/guestfs-actions.pod:6389 ../fish/guestfish-actions.pod:4306
18592 msgid ""
18593 "Note that you should not swap to existing guest swap partitions unless you "
18594 "know what you are doing.  They may contain hibernation information, or other "
18595 "information that the guest doesn't want you to trash.  You also risk leaking "
18596 "information about the host to the guest this way.  Instead, attach a new "
18597 "host device to the guest and swap on that."
18598 msgstr ""
18599
18600 # type: =head2
18601 #. type: =head2
18602 #: ../src/guestfs-actions.pod:6400
18603 msgid "guestfs_swapon_file"
18604 msgstr ""
18605
18606 # type: verbatim
18607 #. type: verbatim
18608 #: ../src/guestfs-actions.pod:6402
18609 #, no-wrap
18610 msgid ""
18611 " int\n"
18612 " guestfs_swapon_file (guestfs_h *g,\n"
18613 "                      const char *file);\n"
18614 "\n"
18615 msgstr ""
18616
18617 # type: textblock
18618 #. type: textblock
18619 #: ../src/guestfs-actions.pod:6406
18620 msgid ""
18621 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
18622 "notes."
18623 msgstr ""
18624
18625 # type: =head2
18626 #. type: =head2
18627 #: ../src/guestfs-actions.pod:6413
18628 msgid "guestfs_swapon_label"
18629 msgstr ""
18630
18631 # type: verbatim
18632 #. type: verbatim
18633 #: ../src/guestfs-actions.pod:6415
18634 #, no-wrap
18635 msgid ""
18636 " int\n"
18637 " guestfs_swapon_label (guestfs_h *g,\n"
18638 "                       const char *label);\n"
18639 "\n"
18640 msgstr ""
18641
18642 # type: textblock
18643 #. type: textblock
18644 #: ../src/guestfs-actions.pod:6419
18645 msgid ""
18646 "This command enables swap to a labeled swap partition.  See "
18647 "C<guestfs_swapon_device> for other notes."
18648 msgstr ""
18649
18650 # type: =head2
18651 #. type: =head2
18652 #: ../src/guestfs-actions.pod:6426
18653 msgid "guestfs_swapon_uuid"
18654 msgstr ""
18655
18656 # type: verbatim
18657 #. type: verbatim
18658 #: ../src/guestfs-actions.pod:6428
18659 #, no-wrap
18660 msgid ""
18661 " int\n"
18662 " guestfs_swapon_uuid (guestfs_h *g,\n"
18663 "                      const char *uuid);\n"
18664 "\n"
18665 msgstr ""
18666
18667 # type: textblock
18668 #. type: textblock
18669 #: ../src/guestfs-actions.pod:6432
18670 msgid ""
18671 "This command enables swap to a swap partition with the given UUID.  See "
18672 "C<guestfs_swapon_device> for other notes."
18673 msgstr ""
18674
18675 # type: =head2
18676 #. type: =head2
18677 #: ../src/guestfs-actions.pod:6439
18678 msgid "guestfs_sync"
18679 msgstr ""
18680
18681 # type: verbatim
18682 #. type: verbatim
18683 #: ../src/guestfs-actions.pod:6441
18684 #, no-wrap
18685 msgid ""
18686 " int\n"
18687 " guestfs_sync (guestfs_h *g);\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: textblock
18692 #. type: textblock
18693 #: ../src/guestfs-actions.pod:6444 ../fish/guestfish-actions.pod:4338
18694 msgid ""
18695 "This syncs the disk, so that any writes are flushed through to the "
18696 "underlying disk image."
18697 msgstr ""
18698
18699 # type: textblock
18700 #. type: textblock
18701 #: ../src/guestfs-actions.pod:6447 ../fish/guestfish-actions.pod:4341
18702 msgid ""
18703 "You should always call this if you have modified a disk image, before "
18704 "closing the handle."
18705 msgstr ""
18706
18707 # type: =head2
18708 #. type: =head2
18709 #: ../src/guestfs-actions.pod:6454
18710 msgid "guestfs_tail"
18711 msgstr ""
18712
18713 # type: verbatim
18714 #. type: verbatim
18715 #: ../src/guestfs-actions.pod:6456
18716 #, no-wrap
18717 msgid ""
18718 " char **\n"
18719 " guestfs_tail (guestfs_h *g,\n"
18720 "               const char *path);\n"
18721 "\n"
18722 msgstr ""
18723
18724 # type: textblock
18725 #. type: textblock
18726 #: ../src/guestfs-actions.pod:6460 ../fish/guestfish-actions.pod:4348
18727 msgid ""
18728 "This command returns up to the last 10 lines of a file as a list of strings."
18729 msgstr ""
18730
18731 # type: =head2
18732 #. type: =head2
18733 #: ../src/guestfs-actions.pod:6472
18734 msgid "guestfs_tail_n"
18735 msgstr ""
18736
18737 # type: verbatim
18738 #. type: verbatim
18739 #: ../src/guestfs-actions.pod:6474
18740 #, no-wrap
18741 msgid ""
18742 " char **\n"
18743 " guestfs_tail_n (guestfs_h *g,\n"
18744 "                 int nrlines,\n"
18745 "                 const char *path);\n"
18746 "\n"
18747 msgstr ""
18748
18749 # type: textblock
18750 #. type: textblock
18751 #: ../src/guestfs-actions.pod:6479 ../fish/guestfish-actions.pod:4358
18752 msgid ""
18753 "If the parameter C<nrlines> is a positive number, this returns the last "
18754 "C<nrlines> lines of the file C<path>."
18755 msgstr ""
18756
18757 # type: textblock
18758 #. type: textblock
18759 #: ../src/guestfs-actions.pod:6482 ../fish/guestfish-actions.pod:4361
18760 msgid ""
18761 "If the parameter C<nrlines> is a negative number, this returns lines from "
18762 "the file C<path>, starting with the C<-nrlines>th line."
18763 msgstr ""
18764
18765 # type: =head2
18766 #. type: =head2
18767 #: ../src/guestfs-actions.pod:6496
18768 msgid "guestfs_tar_in"
18769 msgstr ""
18770
18771 # type: verbatim
18772 #. type: verbatim
18773 #: ../src/guestfs-actions.pod:6498
18774 #, no-wrap
18775 msgid ""
18776 " int\n"
18777 " guestfs_tar_in (guestfs_h *g,\n"
18778 "                 const char *tarfile,\n"
18779 "                 const char *directory);\n"
18780 "\n"
18781 msgstr ""
18782
18783 # type: textblock
18784 #. type: textblock
18785 #: ../src/guestfs-actions.pod:6503 ../fish/guestfish-actions.pod:4373
18786 msgid ""
18787 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18788 "tar file) into C<directory>."
18789 msgstr ""
18790
18791 # type: textblock
18792 #. type: textblock
18793 #: ../src/guestfs-actions.pod:6506
18794 msgid ""
18795 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18796 msgstr ""
18797
18798 # type: textblock
18799 #. type: textblock
18800 #: ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6528
18801 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6560
18802 msgid "(Added in 1.0.3)"
18803 msgstr ""
18804
18805 # type: =head2
18806 #. type: =head2
18807 #: ../src/guestfs-actions.pod:6513
18808 msgid "guestfs_tar_out"
18809 msgstr ""
18810
18811 # type: verbatim
18812 #. type: verbatim
18813 #: ../src/guestfs-actions.pod:6515
18814 #, no-wrap
18815 msgid ""
18816 " int\n"
18817 " guestfs_tar_out (guestfs_h *g,\n"
18818 "                  const char *directory,\n"
18819 "                  const char *tarfile);\n"
18820 "\n"
18821 msgstr ""
18822
18823 # type: textblock
18824 #. type: textblock
18825 #: ../src/guestfs-actions.pod:6520 ../fish/guestfish-actions.pod:4385
18826 msgid ""
18827 "This command packs the contents of C<directory> and downloads it to local "
18828 "file C<tarfile>."
18829 msgstr ""
18830
18831 # type: textblock
18832 #. type: textblock
18833 #: ../src/guestfs-actions.pod:6523
18834 msgid ""
18835 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18836 "C<guestfs_txz_out>."
18837 msgstr ""
18838
18839 # type: =head2
18840 #. type: =head2
18841 #: ../src/guestfs-actions.pod:6530
18842 msgid "guestfs_tgz_in"
18843 msgstr ""
18844
18845 # type: verbatim
18846 #. type: verbatim
18847 #: ../src/guestfs-actions.pod:6532
18848 #, no-wrap
18849 msgid ""
18850 " int\n"
18851 " guestfs_tgz_in (guestfs_h *g,\n"
18852 "                 const char *tarball,\n"
18853 "                 const char *directory);\n"
18854 "\n"
18855 msgstr ""
18856
18857 # type: textblock
18858 #. type: textblock
18859 #: ../src/guestfs-actions.pod:6537 ../fish/guestfish-actions.pod:4397
18860 msgid ""
18861 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18862 "tar file) into C<directory>."
18863 msgstr ""
18864
18865 # type: textblock
18866 #. type: textblock
18867 #: ../src/guestfs-actions.pod:6540
18868 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18869 msgstr ""
18870
18871 # type: =head2
18872 #. type: =head2
18873 #: ../src/guestfs-actions.pod:6546
18874 msgid "guestfs_tgz_out"
18875 msgstr ""
18876
18877 # type: verbatim
18878 #. type: verbatim
18879 #: ../src/guestfs-actions.pod:6548
18880 #, no-wrap
18881 msgid ""
18882 " int\n"
18883 " guestfs_tgz_out (guestfs_h *g,\n"
18884 "                  const char *directory,\n"
18885 "                  const char *tarball);\n"
18886 "\n"
18887 msgstr ""
18888
18889 # type: textblock
18890 #. type: textblock
18891 #: ../src/guestfs-actions.pod:6553 ../fish/guestfish-actions.pod:4408
18892 msgid ""
18893 "This command packs the contents of C<directory> and downloads it to local "
18894 "file C<tarball>."
18895 msgstr ""
18896
18897 # type: textblock
18898 #. type: textblock
18899 #: ../src/guestfs-actions.pod:6556
18900 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18901 msgstr ""
18902
18903 # type: =head2
18904 #. type: =head2
18905 #: ../src/guestfs-actions.pod:6562
18906 msgid "guestfs_touch"
18907 msgstr ""
18908
18909 # type: verbatim
18910 #. type: verbatim
18911 #: ../src/guestfs-actions.pod:6564
18912 #, no-wrap
18913 msgid ""
18914 " int\n"
18915 " guestfs_touch (guestfs_h *g,\n"
18916 "                const char *path);\n"
18917 "\n"
18918 msgstr ""
18919
18920 # type: textblock
18921 #. type: textblock
18922 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4419
18923 msgid ""
18924 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18925 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18926 "length file."
18927 msgstr ""
18928
18929 # type: textblock
18930 #. type: textblock
18931 #: ../src/guestfs-actions.pod:6572 ../fish/guestfish-actions.pod:4423
18932 msgid ""
18933 "This command only works on regular files, and will fail on other file types "
18934 "such as directories, symbolic links, block special etc."
18935 msgstr ""
18936
18937 # type: =head2
18938 #. type: =head2
18939 #: ../src/guestfs-actions.pod:6579
18940 msgid "guestfs_truncate"
18941 msgstr ""
18942
18943 # type: verbatim
18944 #. type: verbatim
18945 #: ../src/guestfs-actions.pod:6581
18946 #, no-wrap
18947 msgid ""
18948 " int\n"
18949 " guestfs_truncate (guestfs_h *g,\n"
18950 "                   const char *path);\n"
18951 "\n"
18952 msgstr ""
18953
18954 # type: textblock
18955 #. type: textblock
18956 #: ../src/guestfs-actions.pod:6585 ../fish/guestfish-actions.pod:4430
18957 msgid ""
18958 "This command truncates C<path> to a zero-length file.  The file must exist "
18959 "already."
18960 msgstr ""
18961
18962 # type: =head2
18963 #. type: =head2
18964 #: ../src/guestfs-actions.pod:6592
18965 msgid "guestfs_truncate_size"
18966 msgstr ""
18967
18968 # type: verbatim
18969 #. type: verbatim
18970 #: ../src/guestfs-actions.pod:6594
18971 #, no-wrap
18972 msgid ""
18973 " int\n"
18974 " guestfs_truncate_size (guestfs_h *g,\n"
18975 "                        const char *path,\n"
18976 "                        int64_t size);\n"
18977 "\n"
18978 msgstr ""
18979
18980 # type: textblock
18981 #. type: textblock
18982 #: ../src/guestfs-actions.pod:6599 ../fish/guestfish-actions.pod:4437
18983 msgid ""
18984 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18985 "already."
18986 msgstr ""
18987
18988 # type: textblock
18989 #. type: textblock
18990 #: ../src/guestfs-actions.pod:6602
18991 msgid ""
18992 "If the current file size is less than C<size> then the file is extended to "
18993 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18994 "blocks are not allocated for the file until you write to it).  To create a "
18995 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18996 msgstr ""
18997
18998 # type: =head2
18999 #. type: =head2
19000 #: ../src/guestfs-actions.pod:6612
19001 msgid "guestfs_tune2fs_l"
19002 msgstr ""
19003
19004 # type: verbatim
19005 #. type: verbatim
19006 #: ../src/guestfs-actions.pod:6614
19007 #, no-wrap
19008 msgid ""
19009 " char **\n"
19010 " guestfs_tune2fs_l (guestfs_h *g,\n"
19011 "                    const char *device);\n"
19012 "\n"
19013 msgstr ""
19014
19015 # type: textblock
19016 #. type: textblock
19017 #: ../src/guestfs-actions.pod:6618 ../fish/guestfish-actions.pod:4450
19018 msgid ""
19019 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19020 "C<device>."
19021 msgstr ""
19022
19023 # type: textblock
19024 #. type: textblock
19025 #: ../src/guestfs-actions.pod:6621 ../fish/guestfish-actions.pod:4453
19026 msgid ""
19027 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19028 "for more details.  The list of fields returned isn't clearly defined, and "
19029 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19030 "and the filesystem itself."
19031 msgstr ""
19032
19033 # type: =head2
19034 #. type: =head2
19035 #: ../src/guestfs-actions.pod:6634
19036 msgid "guestfs_txz_in"
19037 msgstr ""
19038
19039 # type: verbatim
19040 #. type: verbatim
19041 #: ../src/guestfs-actions.pod:6636
19042 #, no-wrap
19043 msgid ""
19044 " int\n"
19045 " guestfs_txz_in (guestfs_h *g,\n"
19046 "                 const char *tarball,\n"
19047 "                 const char *directory);\n"
19048 "\n"
19049 msgstr ""
19050
19051 # type: textblock
19052 #. type: textblock
19053 #: ../src/guestfs-actions.pod:6641 ../fish/guestfish-actions.pod:4462
19054 msgid ""
19055 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19056 "tar file) into C<directory>."
19057 msgstr ""
19058
19059 # type: =head2
19060 #. type: =head2
19061 #: ../src/guestfs-actions.pod:6648
19062 msgid "guestfs_txz_out"
19063 msgstr ""
19064
19065 # type: verbatim
19066 #. type: verbatim
19067 #: ../src/guestfs-actions.pod:6650
19068 #, no-wrap
19069 msgid ""
19070 " int\n"
19071 " guestfs_txz_out (guestfs_h *g,\n"
19072 "                  const char *directory,\n"
19073 "                  const char *tarball);\n"
19074 "\n"
19075 msgstr ""
19076
19077 # type: textblock
19078 #. type: textblock
19079 #: ../src/guestfs-actions.pod:6655 ../fish/guestfish-actions.pod:4471
19080 msgid ""
19081 "This command packs the contents of C<directory> and downloads it to local "
19082 "file C<tarball> (as an xz compressed tar archive)."
19083 msgstr ""
19084
19085 # type: =head2
19086 #. type: =head2
19087 #: ../src/guestfs-actions.pod:6662
19088 msgid "guestfs_umask"
19089 msgstr ""
19090
19091 # type: verbatim
19092 #. type: verbatim
19093 #: ../src/guestfs-actions.pod:6664
19094 #, no-wrap
19095 msgid ""
19096 " int\n"
19097 " guestfs_umask (guestfs_h *g,\n"
19098 "                int mask);\n"
19099 "\n"
19100 msgstr ""
19101
19102 # type: textblock
19103 #. type: textblock
19104 #: ../src/guestfs-actions.pod:6668 ../fish/guestfish-actions.pod:4480
19105 msgid ""
19106 "This function sets the mask used for creating new files and device nodes to "
19107 "C<mask & 0777>."
19108 msgstr ""
19109
19110 # type: textblock
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:6671 ../fish/guestfish-actions.pod:4483
19113 msgid ""
19114 "Typical umask values would be C<022> which creates new files with "
19115 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19116 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19117 msgstr ""
19118
19119 # type: textblock
19120 #. type: textblock
19121 #: ../src/guestfs-actions.pod:6676 ../fish/guestfish-actions.pod:4488
19122 msgid ""
19123 "The default umask is C<022>.  This is important because it means that "
19124 "directories and device nodes will be created with C<0644> or C<0755> mode "
19125 "even if you specify C<0777>."
19126 msgstr ""
19127
19128 # type: textblock
19129 #. type: textblock
19130 #: ../src/guestfs-actions.pod:6680
19131 msgid ""
19132 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19133 "C<guestfs_mkdir>."
19134 msgstr ""
19135
19136 # type: textblock
19137 #. type: textblock
19138 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4495
19139 msgid "This call returns the previous umask."
19140 msgstr ""
19141
19142 # type: =head2
19143 #. type: =head2
19144 #: ../src/guestfs-actions.pod:6689
19145 msgid "guestfs_umount"
19146 msgstr ""
19147
19148 # type: verbatim
19149 #. type: verbatim
19150 #: ../src/guestfs-actions.pod:6691
19151 #, no-wrap
19152 msgid ""
19153 " int\n"
19154 " guestfs_umount (guestfs_h *g,\n"
19155 "                 const char *pathordevice);\n"
19156 "\n"
19157 msgstr ""
19158
19159 # type: textblock
19160 #. type: textblock
19161 #: ../src/guestfs-actions.pod:6695 ../fish/guestfish-actions.pod:4503
19162 msgid ""
19163 "This unmounts the given filesystem.  The filesystem may be specified either "
19164 "by its mountpoint (path) or the device which contains the filesystem."
19165 msgstr ""
19166
19167 # type: =head2
19168 #. type: =head2
19169 #: ../src/guestfs-actions.pod:6703
19170 msgid "guestfs_umount_all"
19171 msgstr ""
19172
19173 # type: verbatim
19174 #. type: verbatim
19175 #: ../src/guestfs-actions.pod:6705
19176 #, no-wrap
19177 msgid ""
19178 " int\n"
19179 " guestfs_umount_all (guestfs_h *g);\n"
19180 "\n"
19181 msgstr ""
19182
19183 # type: textblock
19184 #. type: textblock
19185 #: ../src/guestfs-actions.pod:6708 ../fish/guestfish-actions.pod:4513
19186 msgid "This unmounts all mounted filesystems."
19187 msgstr ""
19188
19189 # type: textblock
19190 #. type: textblock
19191 #: ../src/guestfs-actions.pod:6710 ../fish/guestfish-actions.pod:4515
19192 msgid "Some internal mounts are not unmounted by this call."
19193 msgstr ""
19194
19195 # type: =head2
19196 #. type: =head2
19197 #: ../src/guestfs-actions.pod:6716
19198 msgid "guestfs_upload"
19199 msgstr ""
19200
19201 # type: verbatim
19202 #. type: verbatim
19203 #: ../src/guestfs-actions.pod:6718
19204 #, no-wrap
19205 msgid ""
19206 " int\n"
19207 " guestfs_upload (guestfs_h *g,\n"
19208 "                 const char *filename,\n"
19209 "                 const char *remotefilename);\n"
19210 "\n"
19211 msgstr ""
19212
19213 # type: textblock
19214 #. type: textblock
19215 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6747
19216 #: ../fish/guestfish-actions.pod:4521 ../fish/guestfish-actions.pod:4534
19217 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19218 msgstr ""
19219
19220 # type: textblock
19221 #. type: textblock
19222 #: ../src/guestfs-actions.pod:6728
19223 msgid "See also C<guestfs_download>."
19224 msgstr ""
19225
19226 # type: =head2
19227 #. type: =head2
19228 #: ../src/guestfs-actions.pod:6739
19229 msgid "guestfs_upload_offset"
19230 msgstr ""
19231
19232 # type: verbatim
19233 #. type: verbatim
19234 #: ../src/guestfs-actions.pod:6741
19235 #, no-wrap
19236 msgid ""
19237 " int\n"
19238 " guestfs_upload_offset (guestfs_h *g,\n"
19239 "                        const char *filename,\n"
19240 "                        const char *remotefilename,\n"
19241 "                        int64_t offset);\n"
19242 "\n"
19243 msgstr ""
19244
19245 # type: textblock
19246 #. type: textblock
19247 #: ../src/guestfs-actions.pod:6750 ../fish/guestfish-actions.pod:4537
19248 msgid ""
19249 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19250 "The intention is to overwrite parts of existing files or devices, although "
19251 "if a non-existant file is specified then it is created with a \"hole\" "
19252 "before C<offset>.  The size of the data written is implicit in the size of "
19253 "the source C<filename>."
19254 msgstr ""
19255
19256 # type: textblock
19257 #. type: textblock
19258 #: ../src/guestfs-actions.pod:6757
19259 msgid ""
19260 "Note that there is no limit on the amount of data that can be uploaded with "
19261 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19262 "full amount unless an error occurs."
19263 msgstr ""
19264
19265 # type: textblock
19266 #. type: textblock
19267 #: ../src/guestfs-actions.pod:6762
19268 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19269 msgstr ""
19270
19271 # type: =head2
19272 #. type: =head2
19273 #: ../src/guestfs-actions.pod:6773
19274 msgid "guestfs_utimens"
19275 msgstr ""
19276
19277 # type: verbatim
19278 #. type: verbatim
19279 #: ../src/guestfs-actions.pod:6775
19280 #, no-wrap
19281 msgid ""
19282 " int\n"
19283 " guestfs_utimens (guestfs_h *g,\n"
19284 "                  const char *path,\n"
19285 "                  int64_t atsecs,\n"
19286 "                  int64_t atnsecs,\n"
19287 "                  int64_t mtsecs,\n"
19288 "                  int64_t mtnsecs);\n"
19289 "\n"
19290 msgstr ""
19291
19292 # type: textblock
19293 #. type: textblock
19294 #: ../src/guestfs-actions.pod:6783 ../fish/guestfish-actions.pod:4557
19295 msgid "This command sets the timestamps of a file with nanosecond precision."
19296 msgstr ""
19297
19298 # type: textblock
19299 #. type: textblock
19300 #: ../src/guestfs-actions.pod:6786 ../fish/guestfish-actions.pod:4560
19301 msgid ""
19302 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
19303 "from the epoch."
19304 msgstr ""
19305
19306 # type: textblock
19307 #. type: textblock
19308 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4563
19309 msgid ""
19310 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
19311 "nanoseconds from the epoch."
19312 msgstr ""
19313
19314 # type: textblock
19315 #. type: textblock
19316 #: ../src/guestfs-actions.pod:6792 ../fish/guestfish-actions.pod:4566
19317 msgid ""
19318 "If the C<*nsecs> field contains the special value C<-1> then the "
19319 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
19320 "ignored in this case)."
19321 msgstr ""
19322
19323 # type: textblock
19324 #. type: textblock
19325 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4570
19326 msgid ""
19327 "If the C<*nsecs> field contains the special value C<-2> then the "
19328 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
19329 "in this case)."
19330 msgstr ""
19331
19332 # type: =head2
19333 #. type: =head2
19334 #: ../src/guestfs-actions.pod:6804 ../src/guestfs-structs.pod:175
19335 msgid "guestfs_version"
19336 msgstr ""
19337
19338 # type: verbatim
19339 #. type: verbatim
19340 #: ../src/guestfs-actions.pod:6806
19341 #, no-wrap
19342 msgid ""
19343 " struct guestfs_version *\n"
19344 " guestfs_version (guestfs_h *g);\n"
19345 "\n"
19346 msgstr ""
19347
19348 # type: textblock
19349 #. type: textblock
19350 #: ../src/guestfs-actions.pod:6809 ../fish/guestfish-actions.pod:4578
19351 msgid ""
19352 "Return the libguestfs version number that the program is linked against."
19353 msgstr ""
19354
19355 # type: textblock
19356 #. type: textblock
19357 #: ../src/guestfs-actions.pod:6812 ../fish/guestfish-actions.pod:4581
19358 msgid ""
19359 "Note that because of dynamic linking this is not necessarily the version of "
19360 "libguestfs that you compiled against.  You can compile the program, and then "
19361 "at runtime dynamically link against a completely different C<libguestfs.so> "
19362 "library."
19363 msgstr ""
19364
19365 # type: textblock
19366 #. type: textblock
19367 #: ../src/guestfs-actions.pod:6817 ../fish/guestfish-actions.pod:4586
19368 msgid ""
19369 "This call was added in version C<1.0.58>.  In previous versions of "
19370 "libguestfs there was no way to get the version number.  From C code you can "
19371 "use dynamic linker functions to find out if this symbol exists (if it "
19372 "doesn't, then it's an earlier version)."
19373 msgstr ""
19374
19375 # type: textblock
19376 #. type: textblock
19377 #: ../src/guestfs-actions.pod:6823 ../fish/guestfish-actions.pod:4592
19378 msgid ""
19379 "The call returns a structure with four elements.  The first three (C<major>, "
19380 "C<minor> and C<release>) are numbers and correspond to the usual version "
19381 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
19382 "but may be used for distro-specific information."
19383 msgstr ""
19384
19385 # type: textblock
19386 #. type: textblock
19387 #: ../src/guestfs-actions.pod:6829 ../fish/guestfish-actions.pod:4598
19388 msgid ""
19389 "To construct the original version string: C<$major.$minor.$release$extra>"
19390 msgstr ""
19391
19392 # type: textblock
19393 #. type: textblock
19394 #: ../src/guestfs-actions.pod:6832 ../fish/guestfish-actions.pod:4601
19395 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
19396 msgstr ""
19397
19398 # type: textblock
19399 #. type: textblock
19400 #: ../src/guestfs-actions.pod:6834
19401 msgid ""
19402 "I<Note:> Don't use this call to test for availability of features.  In "
19403 "enterprise distributions we backport features from later versions into "
19404 "earlier versions, making this an unreliable way to test for features.  Use "
19405 "C<guestfs_available> instead."
19406 msgstr ""
19407
19408 # type: textblock
19409 #. type: textblock
19410 #: ../src/guestfs-actions.pod:6840
19411 msgid ""
19412 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
19413 "error.  I<The caller must call C<guestfs_free_version> after use>."
19414 msgstr ""
19415
19416 # type: textblock
19417 #. type: textblock
19418 #: ../src/guestfs-actions.pod:6844
19419 msgid "(Added in 1.0.58)"
19420 msgstr ""
19421
19422 # type: =head2
19423 #. type: =head2
19424 #: ../src/guestfs-actions.pod:6846
19425 msgid "guestfs_vfs_label"
19426 msgstr ""
19427
19428 # type: verbatim
19429 #. type: verbatim
19430 #: ../src/guestfs-actions.pod:6848
19431 #, no-wrap
19432 msgid ""
19433 " char *\n"
19434 " guestfs_vfs_label (guestfs_h *g,\n"
19435 "                    const char *device);\n"
19436 "\n"
19437 msgstr ""
19438
19439 # type: textblock
19440 #. type: textblock
19441 #: ../src/guestfs-actions.pod:6852 ../fish/guestfish-actions.pod:4613
19442 msgid "This returns the filesystem label of the filesystem on C<device>."
19443 msgstr ""
19444
19445 # type: textblock
19446 #. type: textblock
19447 #: ../src/guestfs-actions.pod:6855 ../fish/guestfish-actions.pod:4616
19448 msgid "If the filesystem is unlabeled, this returns the empty string."
19449 msgstr ""
19450
19451 # type: textblock
19452 #. type: textblock
19453 #: ../src/guestfs-actions.pod:6857
19454 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19455 msgstr ""
19456
19457 # type: textblock
19458 #. type: textblock
19459 #: ../src/guestfs-actions.pod:6862 ../src/guestfs-actions.pod:6899
19460 msgid "(Added in 1.3.18)"
19461 msgstr ""
19462
19463 # type: =head2
19464 #. type: =head2
19465 #: ../src/guestfs-actions.pod:6864
19466 msgid "guestfs_vfs_type"
19467 msgstr ""
19468
19469 # type: verbatim
19470 #. type: verbatim
19471 #: ../src/guestfs-actions.pod:6866
19472 #, no-wrap
19473 msgid ""
19474 " char *\n"
19475 " guestfs_vfs_type (guestfs_h *g,\n"
19476 "                   const char *device);\n"
19477 "\n"
19478 msgstr ""
19479
19480 # type: textblock
19481 #. type: textblock
19482 #: ../src/guestfs-actions.pod:6870 ../fish/guestfish-actions.pod:4624
19483 msgid ""
19484 "This command gets the filesystem type corresponding to the filesystem on "
19485 "C<device>."
19486 msgstr ""
19487
19488 # type: textblock
19489 #. type: textblock
19490 #: ../src/guestfs-actions.pod:6873 ../fish/guestfish-actions.pod:4627
19491 msgid ""
19492 "For most filesystems, the result is the name of the Linux VFS module which "
19493 "would be used to mount this filesystem if you mounted it without specifying "
19494 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
19495 msgstr ""
19496
19497 # type: =head2
19498 #. type: =head2
19499 #: ../src/guestfs-actions.pod:6883
19500 msgid "guestfs_vfs_uuid"
19501 msgstr ""
19502
19503 # type: verbatim
19504 #. type: verbatim
19505 #: ../src/guestfs-actions.pod:6885
19506 #, no-wrap
19507 msgid ""
19508 " char *\n"
19509 " guestfs_vfs_uuid (guestfs_h *g,\n"
19510 "                   const char *device);\n"
19511 "\n"
19512 msgstr ""
19513
19514 # type: textblock
19515 #. type: textblock
19516 #: ../src/guestfs-actions.pod:6889 ../fish/guestfish-actions.pod:4636
19517 msgid "This returns the filesystem UUID of the filesystem on C<device>."
19518 msgstr ""
19519
19520 # type: textblock
19521 #. type: textblock
19522 #: ../src/guestfs-actions.pod:6892 ../fish/guestfish-actions.pod:4639
19523 msgid "If the filesystem does not have a UUID, this returns the empty string."
19524 msgstr ""
19525
19526 # type: textblock
19527 #. type: textblock
19528 #: ../src/guestfs-actions.pod:6894
19529 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19530 msgstr ""
19531
19532 # type: =head2
19533 #. type: =head2
19534 #: ../src/guestfs-actions.pod:6901
19535 msgid "guestfs_vg_activate"
19536 msgstr ""
19537
19538 # type: verbatim
19539 #. type: verbatim
19540 #: ../src/guestfs-actions.pod:6903
19541 #, no-wrap
19542 msgid ""
19543 " int\n"
19544 " guestfs_vg_activate (guestfs_h *g,\n"
19545 "                      int activate,\n"
19546 "                      char *const *volgroups);\n"
19547 "\n"
19548 msgstr ""
19549
19550 # type: textblock
19551 #. type: textblock
19552 #: ../src/guestfs-actions.pod:6908 ../fish/guestfish-actions.pod:4647
19553 msgid ""
19554 "This command activates or (if C<activate> is false) deactivates all logical "
19555 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
19556 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
19557 "deactivated, then those devices disappear."
19558 msgstr ""
19559
19560 # type: textblock
19561 #. type: textblock
19562 #: ../src/guestfs-actions.pod:6914 ../fish/guestfish-actions.pod:4653
19563 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
19564 msgstr ""
19565
19566 # type: textblock
19567 #. type: textblock
19568 #: ../src/guestfs-actions.pod:6916 ../fish/guestfish-actions.pod:4655
19569 msgid ""
19570 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19571 "activated or deactivated."
19572 msgstr ""
19573
19574 # type: =head2
19575 #. type: =head2
19576 #: ../src/guestfs-actions.pod:6923
19577 msgid "guestfs_vg_activate_all"
19578 msgstr ""
19579
19580 # type: verbatim
19581 #. type: verbatim
19582 #: ../src/guestfs-actions.pod:6925
19583 #, no-wrap
19584 msgid ""
19585 " int\n"
19586 " guestfs_vg_activate_all (guestfs_h *g,\n"
19587 "                          int activate);\n"
19588 "\n"
19589 msgstr ""
19590
19591 # type: textblock
19592 #. type: textblock
19593 #: ../src/guestfs-actions.pod:6929 ../fish/guestfish-actions.pod:4662
19594 msgid ""
19595 "This command activates or (if C<activate> is false) deactivates all logical "
19596 "volumes in all volume groups.  If activated, then they are made known to the "
19597 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
19598 "those devices disappear."
19599 msgstr ""
19600
19601 # type: textblock
19602 #. type: textblock
19603 #: ../src/guestfs-actions.pod:6935 ../fish/guestfish-actions.pod:4668
19604 msgid "This command is the same as running C<vgchange -a y|n>"
19605 msgstr ""
19606
19607 # type: =head2
19608 #. type: =head2
19609 #: ../src/guestfs-actions.pod:6941
19610 msgid "guestfs_vgcreate"
19611 msgstr ""
19612
19613 # type: verbatim
19614 #. type: verbatim
19615 #: ../src/guestfs-actions.pod:6943
19616 #, no-wrap
19617 msgid ""
19618 " int\n"
19619 " guestfs_vgcreate (guestfs_h *g,\n"
19620 "                   const char *volgroup,\n"
19621 "                   char *const *physvols);\n"
19622 "\n"
19623 msgstr ""
19624
19625 # type: textblock
19626 #. type: textblock
19627 #: ../src/guestfs-actions.pod:6948 ../fish/guestfish-actions.pod:4674
19628 msgid ""
19629 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19630 "of physical volumes C<physvols>."
19631 msgstr ""
19632
19633 # type: =head2
19634 #. type: =head2
19635 #: ../src/guestfs-actions.pod:6955
19636 msgid "guestfs_vglvuuids"
19637 msgstr ""
19638
19639 # type: verbatim
19640 #. type: verbatim
19641 #: ../src/guestfs-actions.pod:6957
19642 #, no-wrap
19643 msgid ""
19644 " char **\n"
19645 " guestfs_vglvuuids (guestfs_h *g,\n"
19646 "                    const char *vgname);\n"
19647 "\n"
19648 msgstr ""
19649
19650 # type: textblock
19651 #. type: textblock
19652 #: ../src/guestfs-actions.pod:6961 ../fish/guestfish-actions.pod:4681
19653 msgid ""
19654 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19655 "volumes created in this volume group."
19656 msgstr ""
19657
19658 # type: textblock
19659 #. type: textblock
19660 #: ../src/guestfs-actions.pod:6964
19661 msgid ""
19662 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19663 "associate logical volumes and volume groups."
19664 msgstr ""
19665
19666 # type: textblock
19667 #. type: textblock
19668 #: ../src/guestfs-actions.pod:6967
19669 msgid "See also C<guestfs_vgpvuuids>."
19670 msgstr ""
19671
19672 # type: =head2
19673 #. type: =head2
19674 #: ../src/guestfs-actions.pod:6975
19675 msgid "guestfs_vgpvuuids"
19676 msgstr ""
19677
19678 # type: verbatim
19679 #. type: verbatim
19680 #: ../src/guestfs-actions.pod:6977
19681 #, no-wrap
19682 msgid ""
19683 " char **\n"
19684 " guestfs_vgpvuuids (guestfs_h *g,\n"
19685 "                    const char *vgname);\n"
19686 "\n"
19687 msgstr ""
19688
19689 # type: textblock
19690 #. type: textblock
19691 #: ../src/guestfs-actions.pod:6981 ../fish/guestfish-actions.pod:4693
19692 msgid ""
19693 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19694 "volumes that this volume group resides on."
19695 msgstr ""
19696
19697 # type: textblock
19698 #. type: textblock
19699 #: ../src/guestfs-actions.pod:6984
19700 msgid ""
19701 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19702 "associate physical volumes and volume groups."
19703 msgstr ""
19704
19705 # type: textblock
19706 #. type: textblock
19707 #: ../src/guestfs-actions.pod:6987
19708 msgid "See also C<guestfs_vglvuuids>."
19709 msgstr ""
19710
19711 # type: =head2
19712 #. type: =head2
19713 #: ../src/guestfs-actions.pod:6995
19714 msgid "guestfs_vgremove"
19715 msgstr ""
19716
19717 # type: verbatim
19718 #. type: verbatim
19719 #: ../src/guestfs-actions.pod:6997
19720 #, no-wrap
19721 msgid ""
19722 " int\n"
19723 " guestfs_vgremove (guestfs_h *g,\n"
19724 "                   const char *vgname);\n"
19725 "\n"
19726 msgstr ""
19727
19728 # type: textblock
19729 #. type: textblock
19730 #: ../src/guestfs-actions.pod:7001 ../fish/guestfish-actions.pod:4705
19731 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19732 msgstr ""
19733
19734 # type: textblock
19735 #. type: textblock
19736 #: ../src/guestfs-actions.pod:7003 ../fish/guestfish-actions.pod:4707
19737 msgid ""
19738 "This also forcibly removes all logical volumes in the volume group (if any)."
19739 msgstr ""
19740
19741 # type: =head2
19742 #. type: =head2
19743 #: ../src/guestfs-actions.pod:7010
19744 msgid "guestfs_vgrename"
19745 msgstr ""
19746
19747 # type: verbatim
19748 #. type: verbatim
19749 #: ../src/guestfs-actions.pod:7012
19750 #, no-wrap
19751 msgid ""
19752 " int\n"
19753 " guestfs_vgrename (guestfs_h *g,\n"
19754 "                   const char *volgroup,\n"
19755 "                   const char *newvolgroup);\n"
19756 "\n"
19757 msgstr ""
19758
19759 # type: textblock
19760 #. type: textblock
19761 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4714
19762 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19763 msgstr ""
19764
19765 # type: =head2
19766 #. type: =head2
19767 #: ../src/guestfs-actions.pod:7023
19768 msgid "guestfs_vgs"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #. type: verbatim
19773 #: ../src/guestfs-actions.pod:7025
19774 #, no-wrap
19775 msgid ""
19776 " char **\n"
19777 " guestfs_vgs (guestfs_h *g);\n"
19778 "\n"
19779 msgstr ""
19780
19781 # type: textblock
19782 #. type: textblock
19783 #: ../src/guestfs-actions.pod:7028 ../fish/guestfish-actions.pod:4720
19784 msgid ""
19785 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19786 "> command."
19787 msgstr ""
19788
19789 # type: textblock
19790 #. type: textblock
19791 #: ../src/guestfs-actions.pod:7031 ../fish/guestfish-actions.pod:4723
19792 msgid ""
19793 "This returns a list of just the volume group names that were detected (eg. "
19794 "C<VolGroup00>)."
19795 msgstr ""
19796
19797 # type: textblock
19798 #. type: textblock
19799 #: ../src/guestfs-actions.pod:7034
19800 msgid "See also C<guestfs_vgs_full>."
19801 msgstr ""
19802
19803 # type: =head2
19804 #. type: =head2
19805 #: ../src/guestfs-actions.pod:7042
19806 msgid "guestfs_vgs_full"
19807 msgstr ""
19808
19809 # type: verbatim
19810 #. type: verbatim
19811 #: ../src/guestfs-actions.pod:7044
19812 #, no-wrap
19813 msgid ""
19814 " struct guestfs_lvm_vg_list *\n"
19815 " guestfs_vgs_full (guestfs_h *g);\n"
19816 "\n"
19817 msgstr ""
19818
19819 # type: textblock
19820 #. type: textblock
19821 #: ../src/guestfs-actions.pod:7047 ../fish/guestfish-actions.pod:4732
19822 msgid ""
19823 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19824 "> command.  The \"full\" version includes all fields."
19825 msgstr ""
19826
19827 # type: textblock
19828 #. type: textblock
19829 #: ../src/guestfs-actions.pod:7050
19830 msgid ""
19831 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19832 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19833 msgstr ""
19834
19835 # type: =head2
19836 #. type: =head2
19837 #: ../src/guestfs-actions.pod:7056
19838 msgid "guestfs_vgscan"
19839 msgstr ""
19840
19841 # type: verbatim
19842 #. type: verbatim
19843 #: ../src/guestfs-actions.pod:7058
19844 #, no-wrap
19845 msgid ""
19846 " int\n"
19847 " guestfs_vgscan (guestfs_h *g);\n"
19848 "\n"
19849 msgstr ""
19850
19851 # type: textblock
19852 #. type: textblock
19853 #: ../src/guestfs-actions.pod:7061 ../fish/guestfish-actions.pod:4739
19854 msgid ""
19855 "This rescans all block devices and rebuilds the list of LVM physical "
19856 "volumes, volume groups and logical volumes."
19857 msgstr ""
19858
19859 # type: =head2
19860 #. type: =head2
19861 #: ../src/guestfs-actions.pod:7068
19862 msgid "guestfs_vguuid"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #. type: verbatim
19867 #: ../src/guestfs-actions.pod:7070
19868 #, no-wrap
19869 msgid ""
19870 " char *\n"
19871 " guestfs_vguuid (guestfs_h *g,\n"
19872 "                 const char *vgname);\n"
19873 "\n"
19874 msgstr ""
19875
19876 # type: textblock
19877 #. type: textblock
19878 #: ../src/guestfs-actions.pod:7074 ../fish/guestfish-actions.pod:4746
19879 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19880 msgstr ""
19881
19882 # type: =head2
19883 #. type: =head2
19884 #: ../src/guestfs-actions.pod:7081
19885 msgid "guestfs_wait_ready"
19886 msgstr ""
19887
19888 # type: verbatim
19889 #. type: verbatim
19890 #: ../src/guestfs-actions.pod:7083
19891 #, no-wrap
19892 msgid ""
19893 " int\n"
19894 " guestfs_wait_ready (guestfs_h *g);\n"
19895 "\n"
19896 msgstr ""
19897
19898 # type: textblock
19899 #. type: textblock
19900 #: ../src/guestfs-actions.pod:7086
19901 msgid "This function is a no op."
19902 msgstr ""
19903
19904 # type: textblock
19905 #. type: textblock
19906 #: ../src/guestfs-actions.pod:7088
19907 msgid ""
19908 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19909 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19910 "is no longer necessary because C<guestfs_launch> now does the waiting."
19911 msgstr ""
19912
19913 # type: textblock
19914 #. type: textblock
19915 #: ../src/guestfs-actions.pod:7093
19916 msgid ""
19917 "If you see any calls to this function in code then you can just remove them, "
19918 "unless you want to retain compatibility with older versions of the API."
19919 msgstr ""
19920
19921 # type: =head2
19922 #. type: =head2
19923 #: ../src/guestfs-actions.pod:7101
19924 msgid "guestfs_wc_c"
19925 msgstr ""
19926
19927 # type: verbatim
19928 #. type: verbatim
19929 #: ../src/guestfs-actions.pod:7103
19930 #, no-wrap
19931 msgid ""
19932 " int\n"
19933 " guestfs_wc_c (guestfs_h *g,\n"
19934 "               const char *path);\n"
19935 "\n"
19936 msgstr ""
19937
19938 # type: textblock
19939 #. type: textblock
19940 #: ../src/guestfs-actions.pod:7107 ../fish/guestfish-actions.pod:4752
19941 msgid ""
19942 "This command counts the characters in a file, using the C<wc -c> external "
19943 "command."
19944 msgstr ""
19945
19946 # type: =head2
19947 #. type: =head2
19948 #: ../src/guestfs-actions.pod:7114
19949 msgid "guestfs_wc_l"
19950 msgstr ""
19951
19952 # type: verbatim
19953 #. type: verbatim
19954 #: ../src/guestfs-actions.pod:7116
19955 #, no-wrap
19956 msgid ""
19957 " int\n"
19958 " guestfs_wc_l (guestfs_h *g,\n"
19959 "               const char *path);\n"
19960 "\n"
19961 msgstr ""
19962
19963 # type: textblock
19964 #. type: textblock
19965 #: ../src/guestfs-actions.pod:7120 ../fish/guestfish-actions.pod:4759
19966 msgid ""
19967 "This command counts the lines in a file, using the C<wc -l> external command."
19968 msgstr ""
19969
19970 # type: =head2
19971 #. type: =head2
19972 #: ../src/guestfs-actions.pod:7127
19973 msgid "guestfs_wc_w"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #. type: verbatim
19978 #: ../src/guestfs-actions.pod:7129
19979 #, no-wrap
19980 msgid ""
19981 " int\n"
19982 " guestfs_wc_w (guestfs_h *g,\n"
19983 "               const char *path);\n"
19984 "\n"
19985 msgstr ""
19986
19987 # type: textblock
19988 #. type: textblock
19989 #: ../src/guestfs-actions.pod:7133 ../fish/guestfish-actions.pod:4766
19990 msgid ""
19991 "This command counts the words in a file, using the C<wc -w> external command."
19992 msgstr ""
19993
19994 # type: =head2
19995 #. type: =head2
19996 #: ../src/guestfs-actions.pod:7140
19997 msgid "guestfs_write"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #. type: verbatim
20002 #: ../src/guestfs-actions.pod:7142
20003 #, no-wrap
20004 msgid ""
20005 " int\n"
20006 " guestfs_write (guestfs_h *g,\n"
20007 "                const char *path,\n"
20008 "                const char *content,\n"
20009 "                size_t content_size);\n"
20010 "\n"
20011 msgstr ""
20012
20013 # type: textblock
20014 #. type: textblock
20015 #: ../src/guestfs-actions.pod:7148 ../fish/guestfish-actions.pod:4773
20016 msgid ""
20017 "This call creates a file called C<path>.  The content of the file is the "
20018 "string C<content> (which can contain any 8 bit data)."
20019 msgstr ""
20020
20021 # type: =head2
20022 #. type: =head2
20023 #: ../src/guestfs-actions.pod:7158
20024 msgid "guestfs_write_file"
20025 msgstr ""
20026
20027 # type: verbatim
20028 #. type: verbatim
20029 #: ../src/guestfs-actions.pod:7160
20030 #, no-wrap
20031 msgid ""
20032 " int\n"
20033 " guestfs_write_file (guestfs_h *g,\n"
20034 "                     const char *path,\n"
20035 "                     const char *content,\n"
20036 "                     int size);\n"
20037 "\n"
20038 msgstr ""
20039
20040 # type: textblock
20041 #. type: textblock
20042 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4783
20043 msgid ""
20044 "This call creates a file called C<path>.  The contents of the file is the "
20045 "string C<content> (which can contain any 8 bit data), with length C<size>."
20046 msgstr ""
20047
20048 # type: textblock
20049 #. type: textblock
20050 #: ../src/guestfs-actions.pod:7170 ../fish/guestfish-actions.pod:4787
20051 msgid ""
20052 "As a special case, if C<size> is C<0> then the length is calculated using "
20053 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20054 msgstr ""
20055
20056 # type: textblock
20057 #. type: textblock
20058 #: ../src/guestfs-actions.pod:7174 ../fish/guestfish-actions.pod:4791
20059 msgid ""
20060 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20061 "I<not> work, even if the length is specified."
20062 msgstr ""
20063
20064 # type: textblock
20065 #. type: textblock
20066 #: ../src/guestfs-actions.pod:7182 ../fish/guestfish-actions.pod:4797
20067 msgid ""
20068 "This function is deprecated.  In new code, use the C<write> call instead."
20069 msgstr ""
20070
20071 # type: =head2
20072 #. type: =head2
20073 #: ../src/guestfs-actions.pod:7191
20074 msgid "guestfs_zegrep"
20075 msgstr ""
20076
20077 # type: verbatim
20078 #. type: verbatim
20079 #: ../src/guestfs-actions.pod:7193
20080 #, no-wrap
20081 msgid ""
20082 " char **\n"
20083 " guestfs_zegrep (guestfs_h *g,\n"
20084 "                 const char *regex,\n"
20085 "                 const char *path);\n"
20086 "\n"
20087 msgstr ""
20088
20089 # type: textblock
20090 #. type: textblock
20091 #: ../src/guestfs-actions.pod:7198 ../fish/guestfish-actions.pod:4808
20092 msgid ""
20093 "This calls the external C<zegrep> program and returns the matching lines."
20094 msgstr ""
20095
20096 # type: =head2
20097 #. type: =head2
20098 #: ../src/guestfs-actions.pod:7210
20099 msgid "guestfs_zegrepi"
20100 msgstr ""
20101
20102 # type: verbatim
20103 #. type: verbatim
20104 #: ../src/guestfs-actions.pod:7212
20105 #, no-wrap
20106 msgid ""
20107 " char **\n"
20108 " guestfs_zegrepi (guestfs_h *g,\n"
20109 "                  const char *regex,\n"
20110 "                  const char *path);\n"
20111 "\n"
20112 msgstr ""
20113
20114 # type: textblock
20115 #. type: textblock
20116 #: ../src/guestfs-actions.pod:7217 ../fish/guestfish-actions.pod:4818
20117 msgid ""
20118 "This calls the external C<zegrep -i> program and returns the matching lines."
20119 msgstr ""
20120
20121 # type: =head2
20122 #. type: =head2
20123 #: ../src/guestfs-actions.pod:7229
20124 msgid "guestfs_zero"
20125 msgstr ""
20126
20127 # type: verbatim
20128 #. type: verbatim
20129 #: ../src/guestfs-actions.pod:7231
20130 #, no-wrap
20131 msgid ""
20132 " int\n"
20133 " guestfs_zero (guestfs_h *g,\n"
20134 "               const char *device);\n"
20135 "\n"
20136 msgstr ""
20137
20138 # type: textblock
20139 #. type: textblock
20140 #: ../src/guestfs-actions.pod:7235 ../fish/guestfish-actions.pod:4828
20141 msgid "This command writes zeroes over the first few blocks of C<device>."
20142 msgstr ""
20143
20144 # type: textblock
20145 #. type: textblock
20146 #: ../src/guestfs-actions.pod:7237 ../fish/guestfish-actions.pod:4830
20147 msgid ""
20148 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20149 "securely wipe the device).  It should be sufficient to remove any partition "
20150 "tables, filesystem superblocks and so on."
20151 msgstr ""
20152
20153 # type: textblock
20154 #. type: textblock
20155 #: ../src/guestfs-actions.pod:7241
20156 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
20157 msgstr ""
20158
20159 # type: =head2
20160 #. type: =head2
20161 #: ../src/guestfs-actions.pod:7252
20162 msgid "guestfs_zero_device"
20163 msgstr ""
20164
20165 # type: verbatim
20166 #. type: verbatim
20167 #: ../src/guestfs-actions.pod:7254
20168 #, no-wrap
20169 msgid ""
20170 " int\n"
20171 " guestfs_zero_device (guestfs_h *g,\n"
20172 "                      const char *device);\n"
20173 "\n"
20174 msgstr ""
20175
20176 # type: textblock
20177 #. type: textblock
20178 #: ../src/guestfs-actions.pod:7258
20179 msgid ""
20180 "This command writes zeroes over the entire C<device>.  Compare with "
20181 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20182 msgstr ""
20183
20184 # type: textblock
20185 #. type: textblock
20186 #: ../src/guestfs-actions.pod:7272
20187 msgid "(Added in 1.3.1)"
20188 msgstr ""
20189
20190 # type: =head2
20191 #. type: =head2
20192 #: ../src/guestfs-actions.pod:7274
20193 msgid "guestfs_zerofree"
20194 msgstr ""
20195
20196 # type: verbatim
20197 #. type: verbatim
20198 #: ../src/guestfs-actions.pod:7276
20199 #, no-wrap
20200 msgid ""
20201 " int\n"
20202 " guestfs_zerofree (guestfs_h *g,\n"
20203 "                   const char *device);\n"
20204 "\n"
20205 msgstr ""
20206
20207 # type: textblock
20208 #. type: textblock
20209 #: ../src/guestfs-actions.pod:7280 ../fish/guestfish-actions.pod:4851
20210 msgid ""
20211 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20212 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20213 "possible to compress the filesystem more effectively."
20214 msgstr ""
20215
20216 # type: textblock
20217 #. type: textblock
20218 #: ../src/guestfs-actions.pod:7285 ../fish/guestfish-actions.pod:4856
20219 msgid "You should B<not> run this program if the filesystem is mounted."
20220 msgstr ""
20221
20222 # type: textblock
20223 #. type: textblock
20224 #: ../src/guestfs-actions.pod:7288 ../fish/guestfish-actions.pod:4859
20225 msgid ""
20226 "It is possible that using this program can damage the filesystem or data on "
20227 "the filesystem."
20228 msgstr ""
20229
20230 # type: =head2
20231 #. type: =head2
20232 #: ../src/guestfs-actions.pod:7295
20233 msgid "guestfs_zfgrep"
20234 msgstr ""
20235
20236 # type: verbatim
20237 #. type: verbatim
20238 #: ../src/guestfs-actions.pod:7297
20239 #, no-wrap
20240 msgid ""
20241 " char **\n"
20242 " guestfs_zfgrep (guestfs_h *g,\n"
20243 "                 const char *pattern,\n"
20244 "                 const char *path);\n"
20245 "\n"
20246 msgstr ""
20247
20248 # type: textblock
20249 #. type: textblock
20250 #: ../src/guestfs-actions.pod:7302 ../fish/guestfish-actions.pod:4866
20251 msgid ""
20252 "This calls the external C<zfgrep> program and returns the matching lines."
20253 msgstr ""
20254
20255 # type: =head2
20256 #. type: =head2
20257 #: ../src/guestfs-actions.pod:7314
20258 msgid "guestfs_zfgrepi"
20259 msgstr ""
20260
20261 # type: verbatim
20262 #. type: verbatim
20263 #: ../src/guestfs-actions.pod:7316
20264 #, no-wrap
20265 msgid ""
20266 " char **\n"
20267 " guestfs_zfgrepi (guestfs_h *g,\n"
20268 "                  const char *pattern,\n"
20269 "                  const char *path);\n"
20270 "\n"
20271 msgstr ""
20272
20273 # type: textblock
20274 #. type: textblock
20275 #: ../src/guestfs-actions.pod:7321 ../fish/guestfish-actions.pod:4876
20276 msgid ""
20277 "This calls the external C<zfgrep -i> program and returns the matching lines."
20278 msgstr ""
20279
20280 # type: =head2
20281 #. type: =head2
20282 #: ../src/guestfs-actions.pod:7333
20283 msgid "guestfs_zfile"
20284 msgstr ""
20285
20286 # type: verbatim
20287 #. type: verbatim
20288 #: ../src/guestfs-actions.pod:7335
20289 #, no-wrap
20290 msgid ""
20291 " char *\n"
20292 " guestfs_zfile (guestfs_h *g,\n"
20293 "                const char *meth,\n"
20294 "                const char *path);\n"
20295 "\n"
20296 msgstr ""
20297
20298 # type: textblock
20299 #. type: textblock
20300 #: ../src/guestfs-actions.pod:7340 ../fish/guestfish-actions.pod:4886
20301 msgid ""
20302 "This command runs C<file> after first decompressing C<path> using C<method>."
20303 msgstr ""
20304
20305 # type: textblock
20306 #. type: textblock
20307 #: ../src/guestfs-actions.pod:7343 ../fish/guestfish-actions.pod:4889
20308 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
20309 msgstr ""
20310
20311 # type: textblock
20312 #. type: textblock
20313 #: ../src/guestfs-actions.pod:7345
20314 msgid ""
20315 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
20316 "files."
20317 msgstr ""
20318
20319 # type: textblock
20320 #. type: textblock
20321 #: ../src/guestfs-actions.pod:7351 ../fish/guestfish-actions.pod:4894
20322 msgid ""
20323 "This function is deprecated.  In new code, use the C<file> call instead."
20324 msgstr ""
20325
20326 # type: =head2
20327 #. type: =head2
20328 #: ../src/guestfs-actions.pod:7360
20329 msgid "guestfs_zgrep"
20330 msgstr ""
20331
20332 # type: verbatim
20333 #. type: verbatim
20334 #: ../src/guestfs-actions.pod:7362
20335 #, no-wrap
20336 msgid ""
20337 " char **\n"
20338 " guestfs_zgrep (guestfs_h *g,\n"
20339 "                const char *regex,\n"
20340 "                const char *path);\n"
20341 "\n"
20342 msgstr ""
20343
20344 # type: textblock
20345 #. type: textblock
20346 #: ../src/guestfs-actions.pod:7367 ../fish/guestfish-actions.pod:4905
20347 msgid ""
20348 "This calls the external C<zgrep> program and returns the matching lines."
20349 msgstr ""
20350
20351 # type: =head2
20352 #. type: =head2
20353 #: ../src/guestfs-actions.pod:7379
20354 msgid "guestfs_zgrepi"
20355 msgstr ""
20356
20357 # type: verbatim
20358 #. type: verbatim
20359 #: ../src/guestfs-actions.pod:7381
20360 #, no-wrap
20361 msgid ""
20362 " char **\n"
20363 " guestfs_zgrepi (guestfs_h *g,\n"
20364 "                 const char *regex,\n"
20365 "                 const char *path);\n"
20366 "\n"
20367 msgstr ""
20368
20369 # type: textblock
20370 #. type: textblock
20371 #: ../src/guestfs-actions.pod:7386 ../fish/guestfish-actions.pod:4915
20372 msgid ""
20373 "This calls the external C<zgrep -i> program and returns the matching lines."
20374 msgstr ""
20375
20376 # type: =item
20377 #. type: =item
20378 #: ../src/guestfs-availability.pod:3
20379 msgid "B<augeas>"
20380 msgstr ""
20381
20382 # type: textblock
20383 #. type: textblock
20384 #: ../src/guestfs-availability.pod:5
20385 msgid ""
20386 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
20387 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
20388 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
20389 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
20390 "L</guestfs_aug_save> L</guestfs_aug_set>"
20391 msgstr ""
20392
20393 # type: =item
20394 #. type: =item
20395 #: ../src/guestfs-availability.pod:21
20396 msgid "B<inotify>"
20397 msgstr ""
20398
20399 # type: textblock
20400 #. type: textblock
20401 #: ../src/guestfs-availability.pod:23
20402 msgid ""
20403 "The following functions: L</guestfs_inotify_add_watch> L</"
20404 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
20405 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
20406 msgstr ""
20407
20408 # type: =item
20409 #. type: =item
20410 #: ../src/guestfs-availability.pod:31
20411 msgid "B<linuxfsuuid>"
20412 msgstr ""
20413
20414 # type: textblock
20415 #. type: textblock
20416 #: ../src/guestfs-availability.pod:33
20417 msgid ""
20418 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
20419 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
20420 msgstr ""
20421
20422 # type: =item
20423 #. type: =item
20424 #: ../src/guestfs-availability.pod:40
20425 msgid "B<linuxmodules>"
20426 msgstr ""
20427
20428 # type: textblock
20429 #. type: textblock
20430 #: ../src/guestfs-availability.pod:42
20431 msgid "The following functions: L</guestfs_modprobe>"
20432 msgstr ""
20433
20434 # type: =item
20435 #. type: =item
20436 #: ../src/guestfs-availability.pod:45
20437 msgid "B<linuxxattrs>"
20438 msgstr ""
20439
20440 # type: textblock
20441 #. type: textblock
20442 #: ../src/guestfs-availability.pod:47
20443 msgid ""
20444 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
20445 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
20446 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
20447 "guestfs_setxattr>"
20448 msgstr ""
20449
20450 # type: =item
20451 #. type: =item
20452 #: ../src/guestfs-availability.pod:58
20453 msgid "B<luks>"
20454 msgstr ""
20455
20456 # type: textblock
20457 #. type: textblock
20458 #: ../src/guestfs-availability.pod:60
20459 msgid ""
20460 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
20461 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
20462 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
20463 msgstr ""
20464
20465 # type: =item
20466 #. type: =item
20467 #: ../src/guestfs-availability.pod:69
20468 msgid "B<lvm2>"
20469 msgstr ""
20470
20471 # type: textblock
20472 #. type: textblock
20473 #: ../src/guestfs-availability.pod:71
20474 msgid ""
20475 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
20476 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
20477 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
20478 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
20479 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
20480 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
20481 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
20482 msgstr ""
20483
20484 # type: =item
20485 #. type: =item
20486 #: ../src/guestfs-availability.pod:94
20487 msgid "B<mknod>"
20488 msgstr ""
20489
20490 # type: textblock
20491 #. type: textblock
20492 #: ../src/guestfs-availability.pod:96
20493 msgid ""
20494 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
20495 "guestfs_mknod_b> L</guestfs_mknod_c>"
20496 msgstr ""
20497
20498 # type: =item
20499 #. type: =item
20500 #: ../src/guestfs-availability.pod:102
20501 msgid "B<ntfs3g>"
20502 msgstr ""
20503
20504 # type: textblock
20505 #. type: textblock
20506 #: ../src/guestfs-availability.pod:104
20507 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20508 msgstr ""
20509
20510 # type: =item
20511 #. type: =item
20512 #: ../src/guestfs-availability.pod:107
20513 msgid "B<ntfsprogs>"
20514 msgstr ""
20515
20516 # type: textblock
20517 #. type: textblock
20518 #: ../src/guestfs-availability.pod:109
20519 msgid ""
20520 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
20521 msgstr ""
20522
20523 # type: =item
20524 #. type: =item
20525 #: ../src/guestfs-availability.pod:113
20526 msgid "B<realpath>"
20527 msgstr ""
20528
20529 # type: textblock
20530 #. type: textblock
20531 #: ../src/guestfs-availability.pod:115
20532 msgid "The following functions: L</guestfs_realpath>"
20533 msgstr ""
20534
20535 # type: =item
20536 #. type: =item
20537 #: ../src/guestfs-availability.pod:118
20538 msgid "B<scrub>"
20539 msgstr ""
20540
20541 # type: textblock
20542 #. type: textblock
20543 #: ../src/guestfs-availability.pod:120
20544 msgid ""
20545 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
20546 "guestfs_scrub_freespace>"
20547 msgstr ""
20548
20549 # type: =item
20550 #. type: =item
20551 #: ../src/guestfs-availability.pod:125
20552 msgid "B<selinux>"
20553 msgstr ""
20554
20555 # type: textblock
20556 #. type: textblock
20557 #: ../src/guestfs-availability.pod:127
20558 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20559 msgstr ""
20560
20561 # type: =item
20562 #. type: =item
20563 #: ../src/guestfs-availability.pod:131
20564 msgid "B<xz>"
20565 msgstr ""
20566
20567 # type: textblock
20568 #. type: textblock
20569 #: ../src/guestfs-availability.pod:133
20570 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20571 msgstr ""
20572
20573 # type: =item
20574 #. type: =item
20575 #: ../src/guestfs-availability.pod:137
20576 msgid "B<zerofree>"
20577 msgstr ""
20578
20579 # type: textblock
20580 #. type: textblock
20581 #: ../src/guestfs-availability.pod:139
20582 msgid "The following functions: L</guestfs_zerofree>"
20583 msgstr ""
20584
20585 # type: =head2
20586 #. type: =head2
20587 #: ../src/guestfs-structs.pod:1
20588 msgid "guestfs_int_bool"
20589 msgstr ""
20590
20591 # type: verbatim
20592 #. type: verbatim
20593 #: ../src/guestfs-structs.pod:3
20594 #, no-wrap
20595 msgid ""
20596 " struct guestfs_int_bool {\n"
20597 "   int32_t i;\n"
20598 "   int32_t b;\n"
20599 " };\n"
20600 " \n"
20601 msgstr ""
20602
20603 # type: verbatim
20604 #. type: verbatim
20605 #: ../src/guestfs-structs.pod:8
20606 #, no-wrap
20607 msgid ""
20608 " struct guestfs_int_bool_list {\n"
20609 "   uint32_t len; /* Number of elements in list. */\n"
20610 "   struct guestfs_int_bool *val; /* Elements. */\n"
20611 " };\n"
20612 " \n"
20613 msgstr ""
20614
20615 # type: verbatim
20616 #. type: verbatim
20617 #: ../src/guestfs-structs.pod:13
20618 #, no-wrap
20619 msgid ""
20620 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
20621 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
20622 "\n"
20623 msgstr ""
20624
20625 # type: =head2
20626 #. type: =head2
20627 #: ../src/guestfs-structs.pod:16
20628 msgid "guestfs_lvm_pv"
20629 msgstr ""
20630
20631 # type: verbatim
20632 #. type: verbatim
20633 #: ../src/guestfs-structs.pod:18
20634 #, no-wrap
20635 msgid ""
20636 " struct guestfs_lvm_pv {\n"
20637 "   char *pv_name;\n"
20638 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20639 "   char pv_uuid[32];\n"
20640 "   char *pv_fmt;\n"
20641 "   uint64_t pv_size;\n"
20642 "   uint64_t dev_size;\n"
20643 "   uint64_t pv_free;\n"
20644 "   uint64_t pv_used;\n"
20645 "   char *pv_attr;\n"
20646 "   int64_t pv_pe_count;\n"
20647 "   int64_t pv_pe_alloc_count;\n"
20648 "   char *pv_tags;\n"
20649 "   uint64_t pe_start;\n"
20650 "   int64_t pv_mda_count;\n"
20651 "   uint64_t pv_mda_free;\n"
20652 " };\n"
20653 " \n"
20654 msgstr ""
20655
20656 # type: verbatim
20657 #. type: verbatim
20658 #: ../src/guestfs-structs.pod:36
20659 #, no-wrap
20660 msgid ""
20661 " struct guestfs_lvm_pv_list {\n"
20662 "   uint32_t len; /* Number of elements in list. */\n"
20663 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20664 " };\n"
20665 " \n"
20666 msgstr ""
20667
20668 # type: verbatim
20669 #. type: verbatim
20670 #: ../src/guestfs-structs.pod:41
20671 #, no-wrap
20672 msgid ""
20673 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20674 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20675 "\n"
20676 msgstr ""
20677
20678 # type: =head2
20679 #. type: =head2
20680 #: ../src/guestfs-structs.pod:44
20681 msgid "guestfs_lvm_vg"
20682 msgstr ""
20683
20684 # type: verbatim
20685 #. type: verbatim
20686 #: ../src/guestfs-structs.pod:46
20687 #, no-wrap
20688 msgid ""
20689 " struct guestfs_lvm_vg {\n"
20690 "   char *vg_name;\n"
20691 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20692 "   char vg_uuid[32];\n"
20693 "   char *vg_fmt;\n"
20694 "   char *vg_attr;\n"
20695 "   uint64_t vg_size;\n"
20696 "   uint64_t vg_free;\n"
20697 "   char *vg_sysid;\n"
20698 "   uint64_t vg_extent_size;\n"
20699 "   int64_t vg_extent_count;\n"
20700 "   int64_t vg_free_count;\n"
20701 "   int64_t max_lv;\n"
20702 "   int64_t max_pv;\n"
20703 "   int64_t pv_count;\n"
20704 "   int64_t lv_count;\n"
20705 "   int64_t snap_count;\n"
20706 "   int64_t vg_seqno;\n"
20707 "   char *vg_tags;\n"
20708 "   int64_t vg_mda_count;\n"
20709 "   uint64_t vg_mda_free;\n"
20710 " };\n"
20711 " \n"
20712 msgstr ""
20713
20714 # type: verbatim
20715 #. type: verbatim
20716 #: ../src/guestfs-structs.pod:69
20717 #, no-wrap
20718 msgid ""
20719 " struct guestfs_lvm_vg_list {\n"
20720 "   uint32_t len; /* Number of elements in list. */\n"
20721 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20722 " };\n"
20723 " \n"
20724 msgstr ""
20725
20726 # type: verbatim
20727 #. type: verbatim
20728 #: ../src/guestfs-structs.pod:74
20729 #, no-wrap
20730 msgid ""
20731 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20732 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20733 "\n"
20734 msgstr ""
20735
20736 # type: =head2
20737 #. type: =head2
20738 #: ../src/guestfs-structs.pod:77
20739 msgid "guestfs_lvm_lv"
20740 msgstr ""
20741
20742 # type: verbatim
20743 #. type: verbatim
20744 #: ../src/guestfs-structs.pod:79
20745 #, no-wrap
20746 msgid ""
20747 " struct guestfs_lvm_lv {\n"
20748 "   char *lv_name;\n"
20749 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20750 "   char lv_uuid[32];\n"
20751 "   char *lv_attr;\n"
20752 "   int64_t lv_major;\n"
20753 "   int64_t lv_minor;\n"
20754 "   int64_t lv_kernel_major;\n"
20755 "   int64_t lv_kernel_minor;\n"
20756 "   uint64_t lv_size;\n"
20757 "   int64_t seg_count;\n"
20758 "   char *origin;\n"
20759 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20760 "   float snap_percent;\n"
20761 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20762 "   float copy_percent;\n"
20763 "   char *move_pv;\n"
20764 "   char *lv_tags;\n"
20765 "   char *mirror_log;\n"
20766 "   char *modules;\n"
20767 " };\n"
20768 " \n"
20769 msgstr ""
20770
20771 # type: verbatim
20772 #. type: verbatim
20773 #: ../src/guestfs-structs.pod:101
20774 #, no-wrap
20775 msgid ""
20776 " struct guestfs_lvm_lv_list {\n"
20777 "   uint32_t len; /* Number of elements in list. */\n"
20778 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20779 " };\n"
20780 " \n"
20781 msgstr ""
20782
20783 # type: verbatim
20784 #. type: verbatim
20785 #: ../src/guestfs-structs.pod:106
20786 #, no-wrap
20787 msgid ""
20788 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20789 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20790 "\n"
20791 msgstr ""
20792
20793 # type: verbatim
20794 #. type: verbatim
20795 #: ../src/guestfs-structs.pod:111
20796 #, no-wrap
20797 msgid ""
20798 " struct guestfs_stat {\n"
20799 "   int64_t dev;\n"
20800 "   int64_t ino;\n"
20801 "   int64_t mode;\n"
20802 "   int64_t nlink;\n"
20803 "   int64_t uid;\n"
20804 "   int64_t gid;\n"
20805 "   int64_t rdev;\n"
20806 "   int64_t size;\n"
20807 "   int64_t blksize;\n"
20808 "   int64_t blocks;\n"
20809 "   int64_t atime;\n"
20810 "   int64_t mtime;\n"
20811 "   int64_t ctime;\n"
20812 " };\n"
20813 " \n"
20814 msgstr ""
20815
20816 # type: verbatim
20817 #. type: verbatim
20818 #: ../src/guestfs-structs.pod:127
20819 #, no-wrap
20820 msgid ""
20821 " struct guestfs_stat_list {\n"
20822 "   uint32_t len; /* Number of elements in list. */\n"
20823 "   struct guestfs_stat *val; /* Elements. */\n"
20824 " };\n"
20825 " \n"
20826 msgstr ""
20827
20828 # type: verbatim
20829 #. type: verbatim
20830 #: ../src/guestfs-structs.pod:132
20831 #, no-wrap
20832 msgid ""
20833 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20834 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20835 "\n"
20836 msgstr ""
20837
20838 # type: verbatim
20839 #. type: verbatim
20840 #: ../src/guestfs-structs.pod:137
20841 #, no-wrap
20842 msgid ""
20843 " struct guestfs_statvfs {\n"
20844 "   int64_t bsize;\n"
20845 "   int64_t frsize;\n"
20846 "   int64_t blocks;\n"
20847 "   int64_t bfree;\n"
20848 "   int64_t bavail;\n"
20849 "   int64_t files;\n"
20850 "   int64_t ffree;\n"
20851 "   int64_t favail;\n"
20852 "   int64_t fsid;\n"
20853 "   int64_t flag;\n"
20854 "   int64_t namemax;\n"
20855 " };\n"
20856 " \n"
20857 msgstr ""
20858
20859 # type: verbatim
20860 #. type: verbatim
20861 #: ../src/guestfs-structs.pod:151
20862 #, no-wrap
20863 msgid ""
20864 " struct guestfs_statvfs_list {\n"
20865 "   uint32_t len; /* Number of elements in list. */\n"
20866 "   struct guestfs_statvfs *val; /* Elements. */\n"
20867 " };\n"
20868 " \n"
20869 msgstr ""
20870
20871 # type: verbatim
20872 #. type: verbatim
20873 #: ../src/guestfs-structs.pod:156
20874 #, no-wrap
20875 msgid ""
20876 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20877 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20878 "\n"
20879 msgstr ""
20880
20881 # type: =head2
20882 #. type: =head2
20883 #: ../src/guestfs-structs.pod:159
20884 msgid "guestfs_dirent"
20885 msgstr ""
20886
20887 # type: verbatim
20888 #. type: verbatim
20889 #: ../src/guestfs-structs.pod:161
20890 #, no-wrap
20891 msgid ""
20892 " struct guestfs_dirent {\n"
20893 "   int64_t ino;\n"
20894 "   char ftyp;\n"
20895 "   char *name;\n"
20896 " };\n"
20897 " \n"
20898 msgstr ""
20899
20900 # type: verbatim
20901 #. type: verbatim
20902 #: ../src/guestfs-structs.pod:167
20903 #, no-wrap
20904 msgid ""
20905 " struct guestfs_dirent_list {\n"
20906 "   uint32_t len; /* Number of elements in list. */\n"
20907 "   struct guestfs_dirent *val; /* Elements. */\n"
20908 " };\n"
20909 " \n"
20910 msgstr ""
20911
20912 # type: verbatim
20913 #. type: verbatim
20914 #: ../src/guestfs-structs.pod:172
20915 #, no-wrap
20916 msgid ""
20917 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20918 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20919 "\n"
20920 msgstr ""
20921
20922 # type: verbatim
20923 #. type: verbatim
20924 #: ../src/guestfs-structs.pod:177
20925 #, no-wrap
20926 msgid ""
20927 " struct guestfs_version {\n"
20928 "   int64_t major;\n"
20929 "   int64_t minor;\n"
20930 "   int64_t release;\n"
20931 "   char *extra;\n"
20932 " };\n"
20933 " \n"
20934 msgstr ""
20935
20936 # type: verbatim
20937 #. type: verbatim
20938 #: ../src/guestfs-structs.pod:184
20939 #, no-wrap
20940 msgid ""
20941 " struct guestfs_version_list {\n"
20942 "   uint32_t len; /* Number of elements in list. */\n"
20943 "   struct guestfs_version *val; /* Elements. */\n"
20944 " };\n"
20945 " \n"
20946 msgstr ""
20947
20948 # type: verbatim
20949 #. type: verbatim
20950 #: ../src/guestfs-structs.pod:189
20951 #, no-wrap
20952 msgid ""
20953 " void guestfs_free_version (struct guestfs_free_version *);\n"
20954 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20955 "\n"
20956 msgstr ""
20957
20958 # type: =head2
20959 #. type: =head2
20960 #: ../src/guestfs-structs.pod:192
20961 msgid "guestfs_xattr"
20962 msgstr ""
20963
20964 # type: verbatim
20965 #. type: verbatim
20966 #: ../src/guestfs-structs.pod:194
20967 #, no-wrap
20968 msgid ""
20969 " struct guestfs_xattr {\n"
20970 "   char *attrname;\n"
20971 "   /* The next two fields describe a byte array. */\n"
20972 "   uint32_t attrval_len;\n"
20973 "   char *attrval;\n"
20974 " };\n"
20975 " \n"
20976 msgstr ""
20977
20978 # type: verbatim
20979 #. type: verbatim
20980 #: ../src/guestfs-structs.pod:201
20981 #, no-wrap
20982 msgid ""
20983 " struct guestfs_xattr_list {\n"
20984 "   uint32_t len; /* Number of elements in list. */\n"
20985 "   struct guestfs_xattr *val; /* Elements. */\n"
20986 " };\n"
20987 " \n"
20988 msgstr ""
20989
20990 # type: verbatim
20991 #. type: verbatim
20992 #: ../src/guestfs-structs.pod:206
20993 #, no-wrap
20994 msgid ""
20995 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20996 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20997 "\n"
20998 msgstr ""
20999
21000 # type: =head2
21001 #. type: =head2
21002 #: ../src/guestfs-structs.pod:209
21003 msgid "guestfs_inotify_event"
21004 msgstr ""
21005
21006 # type: verbatim
21007 #. type: verbatim
21008 #: ../src/guestfs-structs.pod:211
21009 #, no-wrap
21010 msgid ""
21011 " struct guestfs_inotify_event {\n"
21012 "   int64_t in_wd;\n"
21013 "   uint32_t in_mask;\n"
21014 "   uint32_t in_cookie;\n"
21015 "   char *in_name;\n"
21016 " };\n"
21017 " \n"
21018 msgstr ""
21019
21020 # type: verbatim
21021 #. type: verbatim
21022 #: ../src/guestfs-structs.pod:218
21023 #, no-wrap
21024 msgid ""
21025 " struct guestfs_inotify_event_list {\n"
21026 "   uint32_t len; /* Number of elements in list. */\n"
21027 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21028 " };\n"
21029 " \n"
21030 msgstr ""
21031
21032 # type: verbatim
21033 #. type: verbatim
21034 #: ../src/guestfs-structs.pod:223
21035 #, no-wrap
21036 msgid ""
21037 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21038 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21039 "\n"
21040 msgstr ""
21041
21042 # type: =head2
21043 #. type: =head2
21044 #: ../src/guestfs-structs.pod:226
21045 msgid "guestfs_partition"
21046 msgstr ""
21047
21048 # type: verbatim
21049 #. type: verbatim
21050 #: ../src/guestfs-structs.pod:228
21051 #, no-wrap
21052 msgid ""
21053 " struct guestfs_partition {\n"
21054 "   int32_t part_num;\n"
21055 "   uint64_t part_start;\n"
21056 "   uint64_t part_end;\n"
21057 "   uint64_t part_size;\n"
21058 " };\n"
21059 " \n"
21060 msgstr ""
21061
21062 # type: verbatim
21063 #. type: verbatim
21064 #: ../src/guestfs-structs.pod:235
21065 #, no-wrap
21066 msgid ""
21067 " struct guestfs_partition_list {\n"
21068 "   uint32_t len; /* Number of elements in list. */\n"
21069 "   struct guestfs_partition *val; /* Elements. */\n"
21070 " };\n"
21071 " \n"
21072 msgstr ""
21073
21074 # type: verbatim
21075 #. type: verbatim
21076 #: ../src/guestfs-structs.pod:240
21077 #, no-wrap
21078 msgid ""
21079 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21080 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21081 "\n"
21082 msgstr ""
21083
21084 # type: =head2
21085 #. type: =head2
21086 #: ../src/guestfs-structs.pod:243
21087 msgid "guestfs_application"
21088 msgstr ""
21089
21090 # type: verbatim
21091 #. type: verbatim
21092 #: ../src/guestfs-structs.pod:245
21093 #, no-wrap
21094 msgid ""
21095 " struct guestfs_application {\n"
21096 "   char *app_name;\n"
21097 "   char *app_display_name;\n"
21098 "   int32_t app_epoch;\n"
21099 "   char *app_version;\n"
21100 "   char *app_release;\n"
21101 "   char *app_install_path;\n"
21102 "   char *app_trans_path;\n"
21103 "   char *app_publisher;\n"
21104 "   char *app_url;\n"
21105 "   char *app_source_package;\n"
21106 "   char *app_summary;\n"
21107 "   char *app_description;\n"
21108 " };\n"
21109 " \n"
21110 msgstr ""
21111
21112 # type: verbatim
21113 #. type: verbatim
21114 #: ../src/guestfs-structs.pod:260
21115 #, no-wrap
21116 msgid ""
21117 " struct guestfs_application_list {\n"
21118 "   uint32_t len; /* Number of elements in list. */\n"
21119 "   struct guestfs_application *val; /* Elements. */\n"
21120 " };\n"
21121 " \n"
21122 msgstr ""
21123
21124 # type: verbatim
21125 #. type: verbatim
21126 #: ../src/guestfs-structs.pod:265
21127 #, no-wrap
21128 msgid ""
21129 " void guestfs_free_application (struct guestfs_free_application *);\n"
21130 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21131 "\n"
21132 msgstr ""
21133
21134 # type: textblock
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:5
21137 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21138 msgstr ""
21139
21140 # type: verbatim
21141 #. type: verbatim
21142 #: ../fish/guestfish.pod:9
21143 #, no-wrap
21144 msgid ""
21145 " guestfish [--options] [commands]\n"
21146 "\n"
21147 msgstr ""
21148
21149 # type: verbatim
21150 #. type: verbatim
21151 #: ../fish/guestfish.pod:11
21152 #, no-wrap
21153 msgid ""
21154 " guestfish\n"
21155 "\n"
21156 msgstr ""
21157
21158 # type: verbatim
21159 #. type: verbatim
21160 #: ../fish/guestfish.pod:13
21161 #, no-wrap
21162 msgid ""
21163 " guestfish [--ro|--rw] -a disk.img\n"
21164 "\n"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #. type: verbatim
21169 #: ../fish/guestfish.pod:15
21170 #, no-wrap
21171 msgid ""
21172 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: verbatim
21177 #. type: verbatim
21178 #: ../fish/guestfish.pod:17
21179 #, no-wrap
21180 msgid ""
21181 " guestfish -d libvirt-domain\n"
21182 "\n"
21183 msgstr ""
21184
21185 # type: verbatim
21186 #. type: verbatim
21187 #: ../fish/guestfish.pod:19
21188 #, no-wrap
21189 msgid ""
21190 " guestfish [--ro|--rw] -a disk.img -i\n"
21191 "\n"
21192 msgstr ""
21193
21194 # type: verbatim
21195 #. type: verbatim
21196 #: ../fish/guestfish.pod:21
21197 #, no-wrap
21198 msgid ""
21199 " guestfish -d libvirt-domain -i\n"
21200 "\n"
21201 msgstr ""
21202
21203 # type: =head1
21204 #. type: =head1
21205 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
21206 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21207 msgid "WARNING"
21208 msgstr ""
21209
21210 # type: textblock
21211 #. type: textblock
21212 #: ../fish/guestfish.pod:25
21213 msgid ""
21214 "Using guestfish in read/write mode on live virtual machines can be "
21215 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21216 "option to use guestfish safely if the disk image or virtual machine might be "
21217 "live."
21218 msgstr ""
21219
21220 # type: textblock
21221 #. type: textblock
21222 #: ../fish/guestfish.pod:32
21223 msgid ""
21224 "Guestfish is a shell and command-line tool for examining and modifying "
21225 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21226 "functionality of the guestfs API, see L<guestfs(3)>."
21227 msgstr ""
21228
21229 # type: textblock
21230 #. type: textblock
21231 #: ../fish/guestfish.pod:36
21232 msgid ""
21233 "Guestfish gives you structured access to the libguestfs API, from shell "
21234 "scripts or the command line or interactively.  If you want to rescue a "
21235 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21236 "command."
21237 msgstr ""
21238
21239 # type: =head1
21240 #. type: =head1
21241 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:942
21242 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
21243 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
21244 msgid "EXAMPLES"
21245 msgstr ""
21246
21247 # type: =head2
21248 #. type: =head2
21249 #: ../fish/guestfish.pod:43
21250 msgid "As an interactive shell"
21251 msgstr ""
21252
21253 # type: verbatim
21254 #. type: verbatim
21255 #: ../fish/guestfish.pod:45
21256 #, no-wrap
21257 msgid ""
21258 " $ guestfish\n"
21259 " \n"
21260 msgstr ""
21261
21262 # type: verbatim
21263 #. type: verbatim
21264 #: ../fish/guestfish.pod:47
21265 #, no-wrap
21266 msgid ""
21267 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21268 " editing virtual machine filesystems.\n"
21269 " \n"
21270 msgstr ""
21271
21272 # type: verbatim
21273 #. type: verbatim
21274 #: ../fish/guestfish.pod:50
21275 #, no-wrap
21276 msgid ""
21277 " Type: 'help' for a list of commands\n"
21278 "       'man' to read the manual\n"
21279 "       'quit' to quit the shell\n"
21280 " \n"
21281 msgstr ""
21282
21283 # type: verbatim
21284 #. type: verbatim
21285 #: ../fish/guestfish.pod:54
21286 #, no-wrap
21287 msgid ""
21288 " ><fs> add-ro disk.img\n"
21289 " ><fs> run\n"
21290 " ><fs> list-filesystems\n"
21291 " /dev/sda1: ext4\n"
21292 " /dev/vg_guest/lv_root: ext4\n"
21293 " /dev/vg_guest/lv_swap: swap\n"
21294 " ><fs> mount /dev/vg_guest/lv_root /\n"
21295 " ><fs> cat /etc/fstab\n"
21296 " # /etc/fstab\n"
21297 " # Created by anaconda\n"
21298 " [...]\n"
21299 " ><fs> exit\n"
21300 "\n"
21301 msgstr ""
21302
21303 # type: =head2
21304 #. type: =head2
21305 #: ../fish/guestfish.pod:67
21306 msgid "From shell scripts"
21307 msgstr ""
21308
21309 # type: textblock
21310 #. type: textblock
21311 #: ../fish/guestfish.pod:69
21312 msgid "Create a new C</etc/motd> file in a guest or disk image:"
21313 msgstr ""
21314
21315 # type: verbatim
21316 #. type: verbatim
21317 #: ../fish/guestfish.pod:71
21318 #, no-wrap
21319 msgid ""
21320 " guestfish <<_EOF_\n"
21321 " add disk.img\n"
21322 " run\n"
21323 " mount /dev/vg_guest/lv_root /\n"
21324 " write /etc/motd \"Welcome, new users\"\n"
21325 " _EOF_\n"
21326 "\n"
21327 msgstr ""
21328
21329 # type: textblock
21330 #. type: textblock
21331 #: ../fish/guestfish.pod:78
21332 msgid "List the LVM logical volumes in a disk image:"
21333 msgstr ""
21334
21335 # type: verbatim
21336 #. type: verbatim
21337 #: ../fish/guestfish.pod:80
21338 #, no-wrap
21339 msgid ""
21340 " guestfish -a disk.img --ro <<_EOF_\n"
21341 " run\n"
21342 " lvs\n"
21343 " _EOF_\n"
21344 "\n"
21345 msgstr ""
21346
21347 # type: textblock
21348 #. type: textblock
21349 #: ../fish/guestfish.pod:85
21350 msgid "List all the filesystems in a disk image:"
21351 msgstr ""
21352
21353 # type: verbatim
21354 #. type: verbatim
21355 #: ../fish/guestfish.pod:87
21356 #, no-wrap
21357 msgid ""
21358 " guestfish -a disk.img --ro <<_EOF_\n"
21359 " run\n"
21360 " list-filesystems\n"
21361 " _EOF_\n"
21362 "\n"
21363 msgstr ""
21364
21365 # type: =head2
21366 #. type: =head2
21367 #: ../fish/guestfish.pod:92
21368 msgid "On one command line"
21369 msgstr ""
21370
21371 # type: textblock
21372 #. type: textblock
21373 #: ../fish/guestfish.pod:94
21374 msgid "Update C</etc/resolv.conf> in a guest:"
21375 msgstr ""
21376
21377 # type: verbatim
21378 #. type: verbatim
21379 #: ../fish/guestfish.pod:96
21380 #, no-wrap
21381 msgid ""
21382 " guestfish \\\n"
21383 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
21384 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
21385 "\n"
21386 msgstr ""
21387
21388 # type: textblock
21389 #. type: textblock
21390 #: ../fish/guestfish.pod:100
21391 msgid "Edit C</boot/grub/grub.conf> interactively:"
21392 msgstr ""
21393
21394 # type: verbatim
21395 #. type: verbatim
21396 #: ../fish/guestfish.pod:102
21397 #, no-wrap
21398 msgid ""
21399 " guestfish --rw --add disk.img \\\n"
21400 "   --mount /dev/vg_guest/lv_root \\\n"
21401 "   --mount /dev/sda1:/boot \\\n"
21402 "   edit /boot/grub/grub.conf\n"
21403 "\n"
21404 msgstr ""
21405
21406 # type: =head2
21407 #. type: =head2
21408 #: ../fish/guestfish.pod:107
21409 msgid "Mount disks automatically"
21410 msgstr ""
21411
21412 # type: textblock
21413 #. type: textblock
21414 #: ../fish/guestfish.pod:109
21415 msgid ""
21416 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
21417 msgstr ""
21418
21419 # type: verbatim
21420 #. type: verbatim
21421 #: ../fish/guestfish.pod:112
21422 #, no-wrap
21423 msgid ""
21424 " guestfish --ro -a disk.img -i cat /etc/group\n"
21425 "\n"
21426 msgstr ""
21427
21428 # type: verbatim
21429 #. type: verbatim
21430 #: ../fish/guestfish.pod:114
21431 #, no-wrap
21432 msgid ""
21433 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
21434 "\n"
21435 msgstr ""
21436
21437 # type: textblock
21438 #. type: textblock
21439 #: ../fish/guestfish.pod:116
21440 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
21441 msgstr ""
21442
21443 # type: verbatim
21444 #. type: verbatim
21445 #: ../fish/guestfish.pod:118
21446 #, no-wrap
21447 msgid ""
21448 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
21449 "\n"
21450 msgstr ""
21451
21452 # type: =head2
21453 #. type: =head2
21454 #: ../fish/guestfish.pod:120
21455 msgid "As a script interpreter"
21456 msgstr ""
21457
21458 # type: textblock
21459 #. type: textblock
21460 #: ../fish/guestfish.pod:122
21461 msgid "Create a 100MB disk containing an ext2-formatted partition:"
21462 msgstr ""
21463
21464 # type: verbatim
21465 #. type: verbatim
21466 #: ../fish/guestfish.pod:124
21467 #, no-wrap
21468 msgid ""
21469 " #!/usr/bin/guestfish -f\n"
21470 " sparse test1.img 100M\n"
21471 " run\n"
21472 " part-disk /dev/sda mbr\n"
21473 " mkfs ext2 /dev/sda1\n"
21474 "\n"
21475 msgstr ""
21476
21477 # type: =head2
21478 #. type: =head2
21479 #: ../fish/guestfish.pod:130
21480 msgid "Start with a prepared disk"
21481 msgstr ""
21482
21483 # type: textblock
21484 #. type: textblock
21485 #: ../fish/guestfish.pod:132
21486 msgid ""
21487 "An alternate way to create a 100MB disk called C<test1.img> containing a "
21488 "single ext2-formatted partition:"
21489 msgstr ""
21490
21491 # type: verbatim
21492 #. type: verbatim
21493 #: ../fish/guestfish.pod:135
21494 #, no-wrap
21495 msgid ""
21496 " guestfish -N fs\n"
21497 "\n"
21498 msgstr ""
21499
21500 # type: textblock
21501 #. type: textblock
21502 #: ../fish/guestfish.pod:137
21503 msgid "To list what is available do:"
21504 msgstr ""
21505
21506 # type: verbatim
21507 #. type: verbatim
21508 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:933
21509 #, no-wrap
21510 msgid ""
21511 " guestfish -N help | less\n"
21512 "\n"
21513 msgstr ""
21514
21515 # type: =head2
21516 #. type: =head2
21517 #: ../fish/guestfish.pod:141
21518 msgid "Remote control"
21519 msgstr ""
21520
21521 # type: verbatim
21522 #. type: verbatim
21523 #: ../fish/guestfish.pod:143
21524 #, no-wrap
21525 msgid ""
21526 " eval \"`guestfish --listen`\"\n"
21527 " guestfish --remote add-ro disk.img\n"
21528 " guestfish --remote run\n"
21529 " guestfish --remote lvs\n"
21530 "\n"
21531 msgstr ""
21532
21533 # type: =head1
21534 #. type: =head1
21535 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
21536 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
21537 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
21538 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
21539 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
21540 msgid "OPTIONS"
21541 msgstr ""
21542
21543 # type: =item
21544 #. type: =item
21545 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
21546 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
21547 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
21548 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
21549 #: ../tools/virt-list-partitions.pl:62
21550 msgid "B<--help>"
21551 msgstr ""
21552
21553 # type: textblock
21554 #. type: textblock
21555 #: ../fish/guestfish.pod:154
21556 msgid "Displays general help on options."
21557 msgstr ""
21558
21559 # type: =item
21560 #. type: =item
21561 #: ../fish/guestfish.pod:156
21562 msgid "B<-h>"
21563 msgstr ""
21564
21565 # type: =item
21566 #. type: =item
21567 #: ../fish/guestfish.pod:158
21568 msgid "B<--cmd-help>"
21569 msgstr ""
21570
21571 # type: textblock
21572 #. type: textblock
21573 #: ../fish/guestfish.pod:160
21574 msgid "Lists all available guestfish commands."
21575 msgstr ""
21576
21577 # type: =item
21578 #. type: =item
21579 #: ../fish/guestfish.pod:162
21580 msgid "B<-h cmd>"
21581 msgstr ""
21582
21583 # type: =item
21584 #. type: =item
21585 #: ../fish/guestfish.pod:164
21586 msgid "B<--cmd-help cmd>"
21587 msgstr ""
21588
21589 # type: textblock
21590 #. type: textblock
21591 #: ../fish/guestfish.pod:166
21592 msgid "Displays detailed help on a single command C<cmd>."
21593 msgstr ""
21594
21595 # type: =item
21596 #. type: =item
21597 #: ../fish/guestfish.pod:168
21598 msgid "B<-a image>"
21599 msgstr ""
21600
21601 # type: =item
21602 #. type: =item
21603 #: ../fish/guestfish.pod:170
21604 msgid "B<--add image>"
21605 msgstr ""
21606
21607 # type: textblock
21608 #. type: textblock
21609 #: ../fish/guestfish.pod:172
21610 msgid "Add a block device or virtual machine image to the shell."
21611 msgstr ""
21612
21613 # type: textblock
21614 #. type: textblock
21615 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
21616 msgid ""
21617 "The format of the disk image is auto-detected.  To override this and force a "
21618 "particular format use the I<--format=..> option."
21619 msgstr ""
21620
21621 # type: textblock
21622 #. type: textblock
21623 #: ../fish/guestfish.pod:177
21624 msgid ""
21625 "Using this flag is mostly equivalent to using the C<add> command, with "
21626 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21627 "the I<--format:...> flag was given."
21628 msgstr ""
21629
21630 # type: =item
21631 #. type: =item
21632 #: ../fish/guestfish.pod:181
21633 msgid "B<-c URI>"
21634 msgstr ""
21635
21636 # type: =item
21637 #. type: =item
21638 #: ../fish/guestfish.pod:183
21639 msgid "B<--connect URI>"
21640 msgstr ""
21641
21642 # type: textblock
21643 #. type: textblock
21644 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21645 msgid ""
21646 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21647 "URI to use.  The default is to use the default libvirt connection."
21648 msgstr ""
21649
21650 # type: =item
21651 #. type: =item
21652 #: ../fish/guestfish.pod:189
21653 msgid "B<--csh>"
21654 msgstr ""
21655
21656 # type: textblock
21657 #. type: textblock
21658 #: ../fish/guestfish.pod:191
21659 msgid ""
21660 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21661 "section L</REMOTE CONTROL AND CSH> below."
21662 msgstr ""
21663
21664 # type: =item
21665 #. type: =item
21666 #: ../fish/guestfish.pod:194
21667 msgid "B<-d libvirt-domain>"
21668 msgstr ""
21669
21670 # type: =item
21671 #. type: =item
21672 #: ../fish/guestfish.pod:196
21673 msgid "B<--domain libvirt-domain>"
21674 msgstr ""
21675
21676 # type: textblock
21677 #. type: textblock
21678 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21679 msgid ""
21680 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21681 "used, then any libvirt domain can be used.  However in write mode, only "
21682 "libvirt domains which are shut down can be named here."
21683 msgstr ""
21684
21685 # type: textblock
21686 #. type: textblock
21687 #: ../fish/guestfish.pod:202
21688 msgid ""
21689 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21690 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21691 "if the I<--format:...> flag was given."
21692 msgstr ""
21693
21694 # type: =item
21695 #. type: =item
21696 #: ../fish/guestfish.pod:206
21697 msgid "B<-D>"
21698 msgstr ""
21699
21700 # type: =item
21701 #. type: =item
21702 #: ../fish/guestfish.pod:208
21703 msgid "B<--no-dest-paths>"
21704 msgstr ""
21705
21706 # type: textblock
21707 #. type: textblock
21708 #: ../fish/guestfish.pod:210
21709 msgid ""
21710 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21711 "to hit the tab key to complete paths on the guest filesystem, but this "
21712 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21713 "allow this feature to be disabled."
21714 msgstr ""
21715
21716 # type: =item
21717 #. type: =item
21718 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21719 msgid "B<--echo-keys>"
21720 msgstr ""
21721
21722 # type: textblock
21723 #. type: textblock
21724 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21725 msgid ""
21726 "When prompting for keys and passphrases, guestfish normally turns echoing "
21727 "off so you cannot see what you are typing.  If you are not worried about "
21728 "Tempest attacks and there is no one else in the room you can specify this "
21729 "flag to see what you are typing."
21730 msgstr ""
21731
21732 # type: =item
21733 #. type: =item
21734 #: ../fish/guestfish.pod:222
21735 msgid "B<-f file>"
21736 msgstr ""
21737
21738 # type: =item
21739 #. type: =item
21740 #: ../fish/guestfish.pod:224
21741 msgid "B<--file file>"
21742 msgstr ""
21743
21744 # type: textblock
21745 #. type: textblock
21746 #: ../fish/guestfish.pod:226
21747 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21748 msgstr ""
21749
21750 # type: verbatim
21751 #. type: verbatim
21752 #: ../fish/guestfish.pod:229
21753 #, no-wrap
21754 msgid ""
21755 " #!/usr/bin/guestfish -f\n"
21756 "\n"
21757 msgstr ""
21758
21759 # type: =item
21760 #. type: =item
21761 #: ../fish/guestfish.pod:231
21762 msgid "B<--format=raw|qcow2|..>"
21763 msgstr ""
21764
21765 # type: =item
21766 #. type: =item
21767 #: ../fish/guestfish.pod:233
21768 msgid "B<--format>"
21769 msgstr ""
21770
21771 # type: textblock
21772 #. type: textblock
21773 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21774 msgid ""
21775 "The default for the I<-a> option is to auto-detect the format of the disk "
21776 "image.  Using this forces the disk format for I<-a> options which follow on "
21777 "the command line.  Using I<--format> with no argument switches back to auto-"
21778 "detection for subsequent I<-a> options."
21779 msgstr ""
21780
21781 # type: verbatim
21782 #. type: verbatim
21783 #: ../fish/guestfish.pod:242
21784 #, no-wrap
21785 msgid ""
21786 " guestfish --format=raw -a disk.img\n"
21787 "\n"
21788 msgstr ""
21789
21790 # type: textblock
21791 #. type: textblock
21792 #: ../fish/guestfish.pod:244
21793 msgid "forces raw format (no auto-detection) for C<disk.img>."
21794 msgstr ""
21795
21796 # type: verbatim
21797 #. type: verbatim
21798 #: ../fish/guestfish.pod:246
21799 #, no-wrap
21800 msgid ""
21801 " guestfish --format=raw -a disk.img --format -a another.img\n"
21802 "\n"
21803 msgstr ""
21804
21805 # type: textblock
21806 #. type: textblock
21807 #: ../fish/guestfish.pod:248
21808 msgid ""
21809 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21810 "detection for C<another.img>."
21811 msgstr ""
21812
21813 # type: textblock
21814 #. type: textblock
21815 #: ../fish/guestfish.pod:251
21816 msgid ""
21817 "If you have untrusted raw-format guest disk images, you should use this "
21818 "option to specify the disk format.  This avoids a possible security problem "
21819 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21820 msgstr ""
21821
21822 # type: =item
21823 #. type: =item
21824 #: ../fish/guestfish.pod:256
21825 msgid "B<-i>"
21826 msgstr ""
21827
21828 # type: =item
21829 #. type: =item
21830 #: ../fish/guestfish.pod:258
21831 msgid "B<--inspector>"
21832 msgstr ""
21833
21834 # type: textblock
21835 #. type: textblock
21836 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21837 msgid ""
21838 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21839 "system and mount filesystems as they would be mounted on the real virtual "
21840 "machine."
21841 msgstr ""
21842
21843 # type: textblock
21844 #. type: textblock
21845 #: ../fish/guestfish.pod:264
21846 msgid "Typical usage is either:"
21847 msgstr ""
21848
21849 # type: verbatim
21850 #. type: verbatim
21851 #: ../fish/guestfish.pod:266
21852 #, no-wrap
21853 msgid ""
21854 " guestfish -d myguest -i\n"
21855 "\n"
21856 msgstr ""
21857
21858 # type: textblock
21859 #. type: textblock
21860 #: ../fish/guestfish.pod:268
21861 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21862 msgstr ""
21863
21864 # type: verbatim
21865 #. type: verbatim
21866 #: ../fish/guestfish.pod:270
21867 #, no-wrap
21868 msgid ""
21869 " guestfish --ro -d myguest -i\n"
21870 "\n"
21871 msgstr ""
21872
21873 # type: textblock
21874 #. type: textblock
21875 #: ../fish/guestfish.pod:272
21876 msgid "(for active domains, readonly), or specify the block device directly:"
21877 msgstr ""
21878
21879 # type: verbatim
21880 #. type: verbatim
21881 #: ../fish/guestfish.pod:274
21882 #, no-wrap
21883 msgid ""
21884 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21885 "\n"
21886 msgstr ""
21887
21888 # type: textblock
21889 #. type: textblock
21890 #: ../fish/guestfish.pod:276
21891 msgid ""
21892 "Note that the command line syntax changed slightly over older versions of "
21893 "guestfish.  You can still use the old syntax:"
21894 msgstr ""
21895
21896 # type: verbatim
21897 #. type: verbatim
21898 #: ../fish/guestfish.pod:279
21899 #, no-wrap
21900 msgid ""
21901 " guestfish [--ro] -i disk.img\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: verbatim
21906 #. type: verbatim
21907 #: ../fish/guestfish.pod:281
21908 #, no-wrap
21909 msgid ""
21910 " guestfish [--ro] -i libvirt-domain\n"
21911 "\n"
21912 msgstr ""
21913
21914 # type: textblock
21915 #. type: textblock
21916 #: ../fish/guestfish.pod:283
21917 msgid ""
21918 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21919 "then using other commands to mount the filesystems that were found."
21920 msgstr ""
21921
21922 # type: =item
21923 #. type: =item
21924 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21925 msgid "B<--keys-from-stdin>"
21926 msgstr ""
21927
21928 # type: textblock
21929 #. type: textblock
21930 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21931 msgid ""
21932 "Read key or passphrase parameters from stdin.  The default is to try to read "
21933 "passphrases from the user by opening C</dev/tty>."
21934 msgstr ""
21935
21936 # type: =item
21937 #. type: =item
21938 #: ../fish/guestfish.pod:292
21939 msgid "B<--listen>"
21940 msgstr ""
21941
21942 # type: textblock
21943 #. type: textblock
21944 #: ../fish/guestfish.pod:294
21945 msgid ""
21946 "Fork into the background and listen for remote commands.  See section L</"
21947 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21948 msgstr ""
21949
21950 #. type: =item
21951 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
21952 msgid "B<--live>"
21953 msgstr ""
21954
21955 #. type: textblock
21956 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
21957 msgid ""
21958 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
21959 "ATTACHING TO RUNNING DAEMONS>)."
21960 msgstr ""
21961
21962 #. type: =item
21963 #: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:151
21964 msgid "B<-m dev[:mountpoint[:options]]>"
21965 msgstr ""
21966
21967 #. type: =item
21968 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
21969 msgid "B<--mount dev[:mountpoint[:options]]>"
21970 msgstr ""
21971
21972 # type: textblock
21973 #. type: textblock
21974 #: ../fish/guestfish.pod:306
21975 msgid "Mount the named partition or logical volume on the given mountpoint."
21976 msgstr ""
21977
21978 # type: textblock
21979 #. type: textblock
21980 #: ../fish/guestfish.pod:308
21981 msgid "If the mountpoint is omitted, it defaults to C</>."
21982 msgstr ""
21983
21984 # type: textblock
21985 #. type: textblock
21986 #: ../fish/guestfish.pod:310
21987 msgid "You have to mount something on C</> before most commands will work."
21988 msgstr ""
21989
21990 # type: textblock
21991 #. type: textblock
21992 #: ../fish/guestfish.pod:312
21993 msgid ""
21994 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21995 "launched."
21996 msgstr ""
21997
21998 # type: textblock
21999 #. type: textblock
22000 #: ../fish/guestfish.pod:315
22001 msgid ""
22002 "If you don't know what filesystems a disk image contains, you can either run "
22003 "guestfish without this option, then list the partitions, filesystems and LVs "
22004 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22005 "commands), or you can use the L<virt-filesystems(1)> program."
22006 msgstr ""
22007
22008 #. type: textblock
22009 #: ../fish/guestfish.pod:321 ../fuse/guestmount.pod:161
22010 msgid ""
22011 "The third (and rarely used) part of the mount parameter is the list of mount "
22012 "options used to mount the underlying filesystem.  If this is not given, then "
22013 "the mount options are either the empty string or C<ro> (the latter if the "
22014 "I<--ro> flag is used).  By specifying the mount options, you override this "
22015 "default choice.  Probably the only time you would use this is to enable ACLs "
22016 "and/or extended attributes if the filesystem can support them:"
22017 msgstr ""
22018
22019 #. type: verbatim
22020 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:169
22021 #, no-wrap
22022 msgid ""
22023 " -m /dev/sda1:/:acl,user_xattr\n"
22024 "\n"
22025 msgstr ""
22026
22027 #. type: textblock
22028 #: ../fish/guestfish.pod:331
22029 msgid "Using this flag is equivalent to using the C<mount-options> command."
22030 msgstr ""
22031
22032 # type: =item
22033 #. type: =item
22034 #: ../fish/guestfish.pod:333
22035 msgid "B<-n>"
22036 msgstr ""
22037
22038 # type: =item
22039 #. type: =item
22040 #: ../fish/guestfish.pod:335
22041 msgid "B<--no-sync>"
22042 msgstr ""
22043
22044 # type: textblock
22045 #. type: textblock
22046 #: ../fish/guestfish.pod:337
22047 msgid ""
22048 "Disable autosync.  This is enabled by default.  See the discussion of "
22049 "autosync in the L<guestfs(3)> manpage."
22050 msgstr ""
22051
22052 # type: =item
22053 #. type: =item
22054 #: ../fish/guestfish.pod:340
22055 msgid "B<-N type>"
22056 msgstr ""
22057
22058 # type: =item
22059 #. type: =item
22060 #: ../fish/guestfish.pod:342
22061 msgid "B<--new type>"
22062 msgstr ""
22063
22064 # type: =item
22065 #. type: =item
22066 #: ../fish/guestfish.pod:344
22067 msgid "B<-N help>"
22068 msgstr ""
22069
22070 # type: textblock
22071 #. type: textblock
22072 #: ../fish/guestfish.pod:346
22073 msgid ""
22074 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22075 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22076 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22077 "IMAGES> below."
22078 msgstr ""
22079
22080 # type: =item
22081 #. type: =item
22082 #: ../fish/guestfish.pod:351
22083 msgid "B<--progress-bars>"
22084 msgstr ""
22085
22086 # type: textblock
22087 #. type: textblock
22088 #: ../fish/guestfish.pod:353
22089 msgid "Enable progress bars, even when guestfish is used non-interactively."
22090 msgstr ""
22091
22092 # type: textblock
22093 #. type: textblock
22094 #: ../fish/guestfish.pod:355
22095 msgid ""
22096 "Progress bars are enabled by default when guestfish is used as an "
22097 "interactive shell."
22098 msgstr ""
22099
22100 # type: =item
22101 #. type: =item
22102 #: ../fish/guestfish.pod:358
22103 msgid "B<--no-progress-bars>"
22104 msgstr ""
22105
22106 # type: textblock
22107 #. type: textblock
22108 #: ../fish/guestfish.pod:360
22109 msgid "Disable progress bars."
22110 msgstr ""
22111
22112 # type: =item
22113 #. type: =item
22114 #: ../fish/guestfish.pod:362
22115 msgid "B<--remote[=pid]>"
22116 msgstr ""
22117
22118 # type: textblock
22119 #. type: textblock
22120 #: ../fish/guestfish.pod:364
22121 msgid ""
22122 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22123 "CONTROL GUESTFISH OVER A SOCKET> below."
22124 msgstr ""
22125
22126 # type: =item
22127 #. type: =item
22128 #: ../fish/guestfish.pod:367
22129 msgid "B<-r>"
22130 msgstr ""
22131
22132 # type: =item
22133 #. type: =item
22134 #: ../fish/guestfish.pod:369
22135 msgid "B<--ro>"
22136 msgstr ""
22137
22138 # type: textblock
22139 #. type: textblock
22140 #: ../fish/guestfish.pod:371
22141 msgid ""
22142 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22143 "mounts are done read-only."
22144 msgstr ""
22145
22146 # type: textblock
22147 #. type: textblock
22148 #: ../fish/guestfish.pod:374
22149 msgid ""
22150 "The option must always be used if the disk image or virtual machine might be "
22151 "running, and is generally recommended in cases where you don't need write "
22152 "access to the disk."
22153 msgstr ""
22154
22155 # type: textblock
22156 #. type: textblock
22157 #: ../fish/guestfish.pod:378
22158 msgid ""
22159 "Note that prepared disk images created with I<-N> are not affected by this "
22160 "option.  Also commands like C<add> are not affected - you have to specify "
22161 "the C<readonly:true> option explicitly if you need it."
22162 msgstr ""
22163
22164 # type: textblock
22165 #. type: textblock
22166 #: ../fish/guestfish.pod:382
22167 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22168 msgstr ""
22169
22170 # type: =item
22171 #. type: =item
22172 #: ../fish/guestfish.pod:384 ../fuse/guestmount.pod:225
22173 msgid "B<--selinux>"
22174 msgstr ""
22175
22176 # type: textblock
22177 #. type: textblock
22178 #: ../fish/guestfish.pod:386
22179 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22180 msgstr ""
22181
22182 # type: =item
22183 #. type: =item
22184 #: ../fish/guestfish.pod:388
22185 msgid "B<-v>"
22186 msgstr ""
22187
22188 # type: =item
22189 #. type: =item
22190 #: ../fish/guestfish.pod:390
22191 msgid "B<--verbose>"
22192 msgstr ""
22193
22194 # type: textblock
22195 #. type: textblock
22196 #: ../fish/guestfish.pod:392
22197 msgid ""
22198 "Enable very verbose messages.  This is particularly useful if you find a bug."
22199 msgstr ""
22200
22201 # type: =item
22202 #. type: =item
22203 #: ../fish/guestfish.pod:395
22204 msgid "B<-V>"
22205 msgstr ""
22206
22207 # type: =item
22208 #. type: =item
22209 #: ../fish/guestfish.pod:397 ../tools/virt-edit.pl:88
22210 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
22211 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
22212 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
22213 msgid "B<--version>"
22214 msgstr ""
22215
22216 # type: textblock
22217 #. type: textblock
22218 #: ../fish/guestfish.pod:399
22219 msgid "Display the guestfish / libguestfs version number and exit."
22220 msgstr ""
22221
22222 # type: =item
22223 #. type: =item
22224 #: ../fish/guestfish.pod:401
22225 msgid "B<-w>"
22226 msgstr ""
22227
22228 # type: =item
22229 #. type: =item
22230 #: ../fish/guestfish.pod:403
22231 msgid "B<--rw>"
22232 msgstr ""
22233
22234 #. type: textblock
22235 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:239
22236 msgid ""
22237 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22238 "mounts are done read-write."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../fish/guestfish.pod:408
22243 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
22244 msgstr ""
22245
22246 # type: =item
22247 #. type: =item
22248 #: ../fish/guestfish.pod:410
22249 msgid "B<-x>"
22250 msgstr ""
22251
22252 # type: textblock
22253 #. type: textblock
22254 #: ../fish/guestfish.pod:412
22255 msgid "Echo each command before executing it."
22256 msgstr ""
22257
22258 # type: =head1
22259 #. type: =head1
22260 #: ../fish/guestfish.pod:416
22261 msgid "COMMANDS ON COMMAND LINE"
22262 msgstr ""
22263
22264 # type: textblock
22265 #. type: textblock
22266 #: ../fish/guestfish.pod:418
22267 msgid ""
22268 "Any additional (non-option) arguments are treated as commands to execute."
22269 msgstr ""
22270
22271 # type: textblock
22272 #. type: textblock
22273 #: ../fish/guestfish.pod:421
22274 msgid ""
22275 "Commands to execute should be separated by a colon (C<:>), where the colon "
22276 "is a separate parameter.  Thus:"
22277 msgstr ""
22278
22279 # type: verbatim
22280 #. type: verbatim
22281 #: ../fish/guestfish.pod:424
22282 #, no-wrap
22283 msgid ""
22284 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22285 "\n"
22286 msgstr ""
22287
22288 # type: textblock
22289 #. type: textblock
22290 #: ../fish/guestfish.pod:426
22291 msgid ""
22292 "If there are no additional arguments, then we enter a shell, either an "
22293 "interactive shell with a prompt (if the input is a terminal) or a non-"
22294 "interactive shell."
22295 msgstr ""
22296
22297 # type: textblock
22298 #. type: textblock
22299 #: ../fish/guestfish.pod:430
22300 msgid ""
22301 "In either command line mode or non-interactive shell, the first command that "
22302 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22303 "prompt) if a command fails, you can continue to enter commands."
22304 msgstr ""
22305
22306 # type: =head1
22307 #. type: =head1
22308 #: ../fish/guestfish.pod:435
22309 msgid "USING launch (OR run)"
22310 msgstr ""
22311
22312 # type: textblock
22313 #. type: textblock
22314 #: ../fish/guestfish.pod:437
22315 msgid ""
22316 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22317 "then launch it, then mount any disks you need, and finally issue actions/"
22318 "commands.  So the general order of the day is:"
22319 msgstr ""
22320
22321 # type: textblock
22322 #. type: textblock
22323 #: ../fish/guestfish.pod:445
22324 msgid "add or -a/--add"
22325 msgstr ""
22326
22327 # type: textblock
22328 #. type: textblock
22329 #: ../fish/guestfish.pod:449
22330 msgid "launch (aka run)"
22331 msgstr ""
22332
22333 # type: textblock
22334 #. type: textblock
22335 #: ../fish/guestfish.pod:453
22336 msgid "mount or -m/--mount"
22337 msgstr ""
22338
22339 # type: textblock
22340 #. type: textblock
22341 #: ../fish/guestfish.pod:457
22342 msgid "any other commands"
22343 msgstr ""
22344
22345 # type: textblock
22346 #. type: textblock
22347 #: ../fish/guestfish.pod:461
22348 msgid ""
22349 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
22350 "guest before mounting or performing any other commands."
22351 msgstr ""
22352
22353 # type: textblock
22354 #. type: textblock
22355 #: ../fish/guestfish.pod:464
22356 msgid ""
22357 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
22358 "I<--new> options were given then C<run> is done automatically, simply "
22359 "because guestfish can't perform the action you asked for without doing this."
22360 msgstr ""
22361
22362 # type: =head1
22363 #. type: =head1
22364 #: ../fish/guestfish.pod:469
22365 msgid "OPENING DISKS FOR READ AND WRITE"
22366 msgstr ""
22367
22368 #. type: textblock
22369 #: ../fish/guestfish.pod:471
22370 msgid ""
22371 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
22372 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
22373 "I<-i> and I<-m> open disk images read-only or for writing."
22374 msgstr ""
22375
22376 #. type: textblock
22377 #: ../fish/guestfish.pod:476
22378 msgid ""
22379 "In libguestfs E<le> 1.8, guestfish, guestmount and virt-rescue defaulted to "
22380 "opening disk images supplied on the command line for write.  To open a disk "
22381 "image read-only you have to do I<-a image --ro>."
22382 msgstr ""
22383
22384 # type: textblock
22385 #. type: textblock
22386 #: ../fish/guestfish.pod:480
22387 msgid ""
22388 "This matters: If you accidentally open a live VM disk image writable then "
22389 "you will cause irreversible disk corruption."
22390 msgstr ""
22391
22392 #. type: textblock
22393 #: ../fish/guestfish.pod:483
22394 msgid ""
22395 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
22396 "images will be opened read-only.  You will have to either specify "
22397 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
22398 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
22399 "access for disk images specified by those other command line options."
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../fish/guestfish.pod:490
22404 msgid ""
22405 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
22406 "which does nothing (it is already the default).  However it is highly "
22407 "recommended that you use this option to indicate that you need write access, "
22408 "and prepare your scripts for the day when this option will be required for "
22409 "write access."
22410 msgstr ""
22411
22412 # type: textblock
22413 #. type: textblock
22414 #: ../fish/guestfish.pod:496
22415 msgid ""
22416 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
22417 "other libguestfs program apart from guestfish and guestmount."
22418 msgstr ""
22419
22420 # type: =head1
22421 #. type: =head1
22422 #: ../fish/guestfish.pod:499
22423 msgid "QUOTING"
22424 msgstr ""
22425
22426 # type: textblock
22427 #. type: textblock
22428 #: ../fish/guestfish.pod:501
22429 msgid ""
22430 "You can quote ordinary parameters using either single or double quotes.  For "
22431 "example:"
22432 msgstr ""
22433
22434 # type: verbatim
22435 #. type: verbatim
22436 #: ../fish/guestfish.pod:504
22437 #, no-wrap
22438 msgid ""
22439 " add \"file with a space.img\"\n"
22440 "\n"
22441 msgstr ""
22442
22443 # type: verbatim
22444 #. type: verbatim
22445 #: ../fish/guestfish.pod:506
22446 #, no-wrap
22447 msgid ""
22448 " rm '/file name'\n"
22449 "\n"
22450 msgstr ""
22451
22452 # type: verbatim
22453 #. type: verbatim
22454 #: ../fish/guestfish.pod:508
22455 #, no-wrap
22456 msgid ""
22457 " rm '/\"'\n"
22458 "\n"
22459 msgstr ""
22460
22461 # type: textblock
22462 #. type: textblock
22463 #: ../fish/guestfish.pod:510
22464 msgid ""
22465 "A few commands require a list of strings to be passed.  For these, use a "
22466 "whitespace-separated list, enclosed in quotes.  Strings containing "
22467 "whitespace to be passed through must be enclosed in single quotes.  A "
22468 "literal single quote must be escaped with a backslash."
22469 msgstr ""
22470
22471 # type: verbatim
22472 #. type: verbatim
22473 #: ../fish/guestfish.pod:515
22474 #, no-wrap
22475 msgid ""
22476 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
22477 " command \"/bin/echo 'foo      bar'\"\n"
22478 " command \"/bin/echo \\'foo\\'\"\n"
22479 "\n"
22480 msgstr ""
22481
22482 # type: =head1
22483 #. type: =head1
22484 #: ../fish/guestfish.pod:519
22485 msgid "OPTIONAL ARGUMENTS"
22486 msgstr ""
22487
22488 # type: textblock
22489 #. type: textblock
22490 #: ../fish/guestfish.pod:521
22491 msgid ""
22492 "Some commands take optional arguments.  These arguments appear in this "
22493 "documentation as C<[argname:..]>.  You can use them as in these examples:"
22494 msgstr ""
22495
22496 # type: verbatim
22497 #. type: verbatim
22498 #: ../fish/guestfish.pod:525
22499 #, no-wrap
22500 msgid ""
22501 " add-drive-opts filename\n"
22502 "\n"
22503 msgstr ""
22504
22505 # type: verbatim
22506 #. type: verbatim
22507 #: ../fish/guestfish.pod:527
22508 #, no-wrap
22509 msgid ""
22510 " add-drive-opts filename readonly:true\n"
22511 "\n"
22512 msgstr ""
22513
22514 # type: verbatim
22515 #. type: verbatim
22516 #: ../fish/guestfish.pod:529
22517 #, no-wrap
22518 msgid ""
22519 " add-drive-opts filename format:qcow2 readonly:false\n"
22520 "\n"
22521 msgstr ""
22522
22523 # type: textblock
22524 #. type: textblock
22525 #: ../fish/guestfish.pod:531
22526 msgid ""
22527 "Each optional argument can appear at most once.  All optional arguments must "
22528 "appear after the required ones."
22529 msgstr ""
22530
22531 # type: =head1
22532 #. type: =head1
22533 #: ../fish/guestfish.pod:534
22534 msgid "NUMBERS"
22535 msgstr ""
22536
22537 # type: textblock
22538 #. type: textblock
22539 #: ../fish/guestfish.pod:536
22540 msgid ""
22541 "This section applies to all commands which can take integers as parameters."
22542 msgstr ""
22543
22544 # type: =head2
22545 #. type: =head2
22546 #: ../fish/guestfish.pod:539
22547 msgid "SIZE SUFFIX"
22548 msgstr ""
22549
22550 # type: textblock
22551 #. type: textblock
22552 #: ../fish/guestfish.pod:541
22553 msgid ""
22554 "When the command takes a parameter measured in bytes, you can use one of the "
22555 "following suffixes to specify kilobytes, megabytes and larger sizes:"
22556 msgstr ""
22557
22558 # type: =item
22559 #. type: =item
22560 #: ../fish/guestfish.pod:547
22561 msgid "B<k> or B<K> or B<KiB>"
22562 msgstr ""
22563
22564 # type: textblock
22565 #. type: textblock
22566 #: ../fish/guestfish.pod:549
22567 msgid "The size in kilobytes (multiplied by 1024)."
22568 msgstr ""
22569
22570 # type: =item
22571 #. type: =item
22572 #: ../fish/guestfish.pod:551
22573 msgid "B<KB>"
22574 msgstr ""
22575
22576 # type: textblock
22577 #. type: textblock
22578 #: ../fish/guestfish.pod:553
22579 msgid "The size in SI 1000 byte units."
22580 msgstr ""
22581
22582 # type: =item
22583 #. type: =item
22584 #: ../fish/guestfish.pod:555
22585 msgid "B<M> or B<MiB>"
22586 msgstr ""
22587
22588 # type: textblock
22589 #. type: textblock
22590 #: ../fish/guestfish.pod:557
22591 msgid "The size in megabytes (multiplied by 1048576)."
22592 msgstr ""
22593
22594 # type: =item
22595 #. type: =item
22596 #: ../fish/guestfish.pod:559
22597 msgid "B<MB>"
22598 msgstr ""
22599
22600 # type: textblock
22601 #. type: textblock
22602 #: ../fish/guestfish.pod:561
22603 msgid "The size in SI 1000000 byte units."
22604 msgstr ""
22605
22606 # type: =item
22607 #. type: =item
22608 #: ../fish/guestfish.pod:563
22609 msgid "B<G> or B<GiB>"
22610 msgstr ""
22611
22612 # type: textblock
22613 #. type: textblock
22614 #: ../fish/guestfish.pod:565
22615 msgid "The size in gigabytes (multiplied by 2**30)."
22616 msgstr ""
22617
22618 # type: =item
22619 #. type: =item
22620 #: ../fish/guestfish.pod:567
22621 msgid "B<GB>"
22622 msgstr ""
22623
22624 # type: textblock
22625 #. type: textblock
22626 #: ../fish/guestfish.pod:569
22627 msgid "The size in SI 10**9 byte units."
22628 msgstr ""
22629
22630 # type: =item
22631 #. type: =item
22632 #: ../fish/guestfish.pod:571
22633 msgid "B<T> or B<TiB>"
22634 msgstr ""
22635
22636 # type: textblock
22637 #. type: textblock
22638 #: ../fish/guestfish.pod:573
22639 msgid "The size in terabytes (multiplied by 2**40)."
22640 msgstr ""
22641
22642 # type: =item
22643 #. type: =item
22644 #: ../fish/guestfish.pod:575
22645 msgid "B<TB>"
22646 msgstr ""
22647
22648 # type: textblock
22649 #. type: textblock
22650 #: ../fish/guestfish.pod:577
22651 msgid "The size in SI 10**12 byte units."
22652 msgstr ""
22653
22654 # type: =item
22655 #. type: =item
22656 #: ../fish/guestfish.pod:579
22657 msgid "B<P> or B<PiB>"
22658 msgstr ""
22659
22660 # type: textblock
22661 #. type: textblock
22662 #: ../fish/guestfish.pod:581
22663 msgid "The size in petabytes (multiplied by 2**50)."
22664 msgstr ""
22665
22666 # type: =item
22667 #. type: =item
22668 #: ../fish/guestfish.pod:583
22669 msgid "B<PB>"
22670 msgstr ""
22671
22672 # type: textblock
22673 #. type: textblock
22674 #: ../fish/guestfish.pod:585
22675 msgid "The size in SI 10**15 byte units."
22676 msgstr ""
22677
22678 # type: =item
22679 #. type: =item
22680 #: ../fish/guestfish.pod:587
22681 msgid "B<E> or B<EiB>"
22682 msgstr ""
22683
22684 # type: textblock
22685 #. type: textblock
22686 #: ../fish/guestfish.pod:589
22687 msgid "The size in exabytes (multiplied by 2**60)."
22688 msgstr ""
22689
22690 # type: =item
22691 #. type: =item
22692 #: ../fish/guestfish.pod:591
22693 msgid "B<EB>"
22694 msgstr ""
22695
22696 # type: textblock
22697 #. type: textblock
22698 #: ../fish/guestfish.pod:593
22699 msgid "The size in SI 10**18 byte units."
22700 msgstr ""
22701
22702 # type: =item
22703 #. type: =item
22704 #: ../fish/guestfish.pod:595
22705 msgid "B<Z> or B<ZiB>"
22706 msgstr ""
22707
22708 # type: textblock
22709 #. type: textblock
22710 #: ../fish/guestfish.pod:597
22711 msgid "The size in zettabytes (multiplied by 2**70)."
22712 msgstr ""
22713
22714 # type: =item
22715 #. type: =item
22716 #: ../fish/guestfish.pod:599
22717 msgid "B<ZB>"
22718 msgstr ""
22719
22720 # type: textblock
22721 #. type: textblock
22722 #: ../fish/guestfish.pod:601
22723 msgid "The size in SI 10**21 byte units."
22724 msgstr ""
22725
22726 # type: =item
22727 #. type: =item
22728 #: ../fish/guestfish.pod:603
22729 msgid "B<Y> or B<YiB>"
22730 msgstr ""
22731
22732 # type: textblock
22733 #. type: textblock
22734 #: ../fish/guestfish.pod:605
22735 msgid "The size in yottabytes (multiplied by 2**80)."
22736 msgstr ""
22737
22738 # type: =item
22739 #. type: =item
22740 #: ../fish/guestfish.pod:607
22741 msgid "B<YB>"
22742 msgstr ""
22743
22744 # type: textblock
22745 #. type: textblock
22746 #: ../fish/guestfish.pod:609
22747 msgid "The size in SI 10**24 byte units."
22748 msgstr ""
22749
22750 # type: verbatim
22751 #. type: verbatim
22752 #: ../fish/guestfish.pod:615
22753 #, no-wrap
22754 msgid ""
22755 " truncate-size /file 1G\n"
22756 "\n"
22757 msgstr ""
22758
22759 # type: textblock
22760 #. type: textblock
22761 #: ../fish/guestfish.pod:617
22762 msgid "would truncate the file to 1 gigabyte."
22763 msgstr ""
22764
22765 # type: textblock
22766 #. type: textblock
22767 #: ../fish/guestfish.pod:619
22768 msgid ""
22769 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22770 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22771 "suffix will probably not do what you expect."
22772 msgstr ""
22773
22774 # type: =head2
22775 #. type: =head2
22776 #: ../fish/guestfish.pod:623
22777 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22778 msgstr ""
22779
22780 # type: textblock
22781 #. type: textblock
22782 #: ../fish/guestfish.pod:625
22783 msgid ""
22784 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22785 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22786 msgstr ""
22787
22788 # type: verbatim
22789 #. type: verbatim
22790 #: ../fish/guestfish.pod:628
22791 #, no-wrap
22792 msgid ""
22793 " 1234      decimal number 1234\n"
22794 " 02322     octal number, equivalent to decimal 1234\n"
22795 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22796 "\n"
22797 msgstr ""
22798
22799 # type: textblock
22800 #. type: textblock
22801 #: ../fish/guestfish.pod:632
22802 msgid ""
22803 "When using the C<chmod> command, you almost always want to specify an octal "
22804 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22805 "L<chmod(1)> program):"
22806 msgstr ""
22807
22808 # type: verbatim
22809 #. type: verbatim
22810 #: ../fish/guestfish.pod:636
22811 #, no-wrap
22812 msgid ""
22813 " chmod 0777 /public  # OK\n"
22814 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22815 "\n"
22816 msgstr ""
22817
22818 # type: textblock
22819 #. type: textblock
22820 #: ../fish/guestfish.pod:639
22821 msgid ""
22822 "Commands that return numbers usually print them in decimal, but some "
22823 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22824 "octal, preceeded by C<0>)."
22825 msgstr ""
22826
22827 # type: =head1
22828 #. type: =head1
22829 #: ../fish/guestfish.pod:643
22830 msgid "WILDCARDS AND GLOBBING"
22831 msgstr ""
22832
22833 # type: textblock
22834 #. type: textblock
22835 #: ../fish/guestfish.pod:645
22836 msgid ""
22837 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22838 "(globbing) by default.  So for example the following will not do what you "
22839 "expect:"
22840 msgstr ""
22841
22842 # type: verbatim
22843 #. type: verbatim
22844 #: ../fish/guestfish.pod:649
22845 #, no-wrap
22846 msgid ""
22847 " rm-rf /home/*\n"
22848 "\n"
22849 msgstr ""
22850
22851 # type: textblock
22852 #. type: textblock
22853 #: ../fish/guestfish.pod:651
22854 msgid ""
22855 "Assuming you don't have a directory called literally C</home/*> then the "
22856 "above command will return an error."
22857 msgstr ""
22858
22859 # type: textblock
22860 #. type: textblock
22861 #: ../fish/guestfish.pod:654
22862 msgid "To perform wildcard expansion, use the C<glob> command."
22863 msgstr ""
22864
22865 # type: verbatim
22866 #. type: verbatim
22867 #: ../fish/guestfish.pod:656
22868 #, no-wrap
22869 msgid ""
22870 " glob rm-rf /home/*\n"
22871 "\n"
22872 msgstr ""
22873
22874 # type: textblock
22875 #. type: textblock
22876 #: ../fish/guestfish.pod:658
22877 msgid ""
22878 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
22879 "many times), equivalent to:"
22880 msgstr ""
22881
22882 # type: verbatim
22883 #. type: verbatim
22884 #: ../fish/guestfish.pod:661
22885 #, no-wrap
22886 msgid ""
22887 " rm-rf /home/jim\n"
22888 " rm-rf /home/joe\n"
22889 " rm-rf /home/mary\n"
22890 "\n"
22891 msgstr ""
22892
22893 # type: textblock
22894 #. type: textblock
22895 #: ../fish/guestfish.pod:665
22896 msgid "C<glob> only works on simple guest paths and not on device names."
22897 msgstr ""
22898
22899 # type: textblock
22900 #. type: textblock
22901 #: ../fish/guestfish.pod:667
22902 msgid ""
22903 "If you have several parameters, each containing a wildcard, then glob will "
22904 "perform a Cartesian product."
22905 msgstr ""
22906
22907 # type: =head1
22908 #. type: =head1
22909 #: ../fish/guestfish.pod:670
22910 msgid "COMMENTS"
22911 msgstr ""
22912
22913 # type: textblock
22914 #. type: textblock
22915 #: ../fish/guestfish.pod:672
22916 msgid ""
22917 "Any line which starts with a I<#> character is treated as a comment and "
22918 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22919 "a command.  For example:"
22920 msgstr ""
22921
22922 # type: verbatim
22923 #. type: verbatim
22924 #: ../fish/guestfish.pod:676
22925 #, no-wrap
22926 msgid ""
22927 " # this is a comment\n"
22928 "         # this is a comment\n"
22929 " foo # NOT a comment\n"
22930 "\n"
22931 msgstr ""
22932
22933 # type: textblock
22934 #. type: textblock
22935 #: ../fish/guestfish.pod:680
22936 msgid "Blank lines are also ignored."
22937 msgstr ""
22938
22939 # type: =head1
22940 #. type: =head1
22941 #: ../fish/guestfish.pod:682
22942 msgid "RUNNING COMMANDS LOCALLY"
22943 msgstr ""
22944
22945 # type: textblock
22946 #. type: textblock
22947 #: ../fish/guestfish.pod:684
22948 msgid ""
22949 "Any line which starts with a I<!> character is treated as a command sent to "
22950 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22951 msgstr ""
22952
22953 # type: verbatim
22954 #. type: verbatim
22955 #: ../fish/guestfish.pod:688
22956 #, no-wrap
22957 msgid ""
22958 " !mkdir local\n"
22959 " tgz-out /remote local/remote-data.tar.gz\n"
22960 "\n"
22961 msgstr ""
22962
22963 # type: textblock
22964 #. type: textblock
22965 #: ../fish/guestfish.pod:691
22966 msgid ""
22967 "will create a directory C<local> on the host, and then export the contents "
22968 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22969 "(See C<tgz-out>)."
22970 msgstr ""
22971
22972 # type: textblock
22973 #. type: textblock
22974 #: ../fish/guestfish.pod:695
22975 msgid ""
22976 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22977 "effect, due to the way that subprocesses work in Unix."
22978 msgstr ""
22979
22980 #. type: =head2
22981 #: ../fish/guestfish.pod:698
22982 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
22983 msgstr ""
22984
22985 #. type: textblock
22986 #: ../fish/guestfish.pod:700
22987 msgid ""
22988 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
22989 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
22990 "and executed as guestfish commands."
22991 msgstr ""
22992
22993 #. type: textblock
22994 #: ../fish/guestfish.pod:704
22995 msgid ""
22996 "Thus you can use shell script to construct arbitrary guestfish commands "
22997 "which are then parsed by guestfish."
22998 msgstr ""
22999
23000 #. type: textblock
23001 #: ../fish/guestfish.pod:707
23002 msgid ""
23003 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23004 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23005 "if we use a shell script to create the guestfish commands for us:"
23006 msgstr ""
23007
23008 #. type: verbatim
23009 #: ../fish/guestfish.pod:712
23010 #, no-wrap
23011 msgid ""
23012 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23013 "\n"
23014 msgstr ""
23015
23016 #. type: textblock
23017 #: ../fish/guestfish.pod:714
23018 msgid "or with names like C</foo.001>:"
23019 msgstr ""
23020
23021 #. type: verbatim
23022 #: ../fish/guestfish.pod:716
23023 #, no-wrap
23024 msgid ""
23025 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23026 "\n"
23027 msgstr ""
23028
23029 #. type: textblock
23030 #: ../fish/guestfish.pod:718
23031 msgid ""
23032 "When using guestfish interactively it can be helpful to just run the shell "
23033 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23034 "ordinary I<!> local command), see what guestfish commands it would run, and "
23035 "when you are happy with those prepend the C<E<lt>> character to run the "
23036 "guestfish commands for real."
23037 msgstr ""
23038
23039 # type: =head1
23040 #. type: =head1
23041 #: ../fish/guestfish.pod:724
23042 msgid "PIPES"
23043 msgstr ""
23044
23045 # type: textblock
23046 #. type: textblock
23047 #: ../fish/guestfish.pod:726
23048 msgid ""
23049 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23050 "command (a guestfish command) to the second command (any host command).  For "
23051 "example:"
23052 msgstr ""
23053
23054 # type: verbatim
23055 #. type: verbatim
23056 #: ../fish/guestfish.pod:730
23057 #, no-wrap
23058 msgid ""
23059 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23060 "\n"
23061 msgstr ""
23062
23063 # type: textblock
23064 #. type: textblock
23065 #: ../fish/guestfish.pod:732
23066 msgid ""
23067 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23068 "program).  The above command would list all accounts in the guest filesystem "
23069 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23070 msgstr ""
23071
23072 # type: verbatim
23073 #. type: verbatim
23074 #: ../fish/guestfish.pod:737
23075 #, no-wrap
23076 msgid ""
23077 " hexdump /bin/ls | head\n"
23078 " list-devices | tail -1\n"
23079 " tgz-out / - | tar ztf -\n"
23080 "\n"
23081 msgstr ""
23082
23083 # type: textblock
23084 #. type: textblock
23085 #: ../fish/guestfish.pod:741
23086 msgid ""
23087 "The space before the pipe symbol is required, any space after the pipe "
23088 "symbol is optional.  Everything after the pipe symbol is just passed "
23089 "straight to the host shell, so it can contain redirections, globs and "
23090 "anything else that makes sense on the host side."
23091 msgstr ""
23092
23093 # type: textblock
23094 #. type: textblock
23095 #: ../fish/guestfish.pod:746
23096 msgid ""
23097 "To use a literal argument which begins with a pipe symbol, you have to quote "
23098 "it, eg:"
23099 msgstr ""
23100
23101 # type: verbatim
23102 #. type: verbatim
23103 #: ../fish/guestfish.pod:749
23104 #, no-wrap
23105 msgid ""
23106 " echo \"|\"\n"
23107 "\n"
23108 msgstr ""
23109
23110 # type: =head1
23111 #. type: =head1
23112 #: ../fish/guestfish.pod:751
23113 msgid "HOME DIRECTORIES"
23114 msgstr ""
23115
23116 # type: textblock
23117 #. type: textblock
23118 #: ../fish/guestfish.pod:753
23119 msgid ""
23120 "If a parameter starts with the character C<~> then the tilde may be expanded "
23121 "as a home directory path (either C<~> for the current user's home directory, "
23122 "or C<~user> for another user)."
23123 msgstr ""
23124
23125 # type: textblock
23126 #. type: textblock
23127 #: ../fish/guestfish.pod:757
23128 msgid ""
23129 "Note that home directory expansion happens for users known I<on the host>, "
23130 "not in the guest filesystem."
23131 msgstr ""
23132
23133 # type: textblock
23134 #. type: textblock
23135 #: ../fish/guestfish.pod:760
23136 msgid ""
23137 "To use a literal argument which begins with a tilde, you have to quote it, "
23138 "eg:"
23139 msgstr ""
23140
23141 # type: verbatim
23142 #. type: verbatim
23143 #: ../fish/guestfish.pod:763
23144 #, no-wrap
23145 msgid ""
23146 " echo \"~\"\n"
23147 "\n"
23148 msgstr ""
23149
23150 # type: textblock
23151 #. type: textblock
23152 #: ../fish/guestfish.pod:767
23153 msgid ""
23154 "Libguestfs has some support for Linux guests encrypted according to the "
23155 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23156 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23157 "LUKS is supported."
23158 msgstr ""
23159
23160 # type: textblock
23161 #. type: textblock
23162 #: ../fish/guestfish.pod:772
23163 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23164 msgstr ""
23165
23166 # type: verbatim
23167 #. type: verbatim
23168 #: ../fish/guestfish.pod:774
23169 #, no-wrap
23170 msgid ""
23171 " ><fs> vfs-type /dev/sda2\n"
23172 " crypto_LUKS\n"
23173 "\n"
23174 msgstr ""
23175
23176 # type: textblock
23177 #. type: textblock
23178 #: ../fish/guestfish.pod:777
23179 msgid ""
23180 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23181 "device called C</dev/mapper/luksdev>."
23182 msgstr ""
23183
23184 # type: verbatim
23185 #. type: verbatim
23186 #: ../fish/guestfish.pod:780
23187 #, no-wrap
23188 msgid ""
23189 " ><fs> luks-open /dev/sda2 luksdev\n"
23190 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23191 "\n"
23192 msgstr ""
23193
23194 # type: textblock
23195 #. type: textblock
23196 #: ../fish/guestfish.pod:783
23197 msgid ""
23198 "Finally you have to tell LVM to scan for volume groups on the newly created "
23199 "mapper device:"
23200 msgstr ""
23201
23202 # type: verbatim
23203 #. type: verbatim
23204 #: ../fish/guestfish.pod:786
23205 #, no-wrap
23206 msgid ""
23207 " vgscan\n"
23208 " vg-activate-all true\n"
23209 "\n"
23210 msgstr ""
23211
23212 # type: textblock
23213 #. type: textblock
23214 #: ../fish/guestfish.pod:789
23215 msgid "The logical volume(s) can now be mounted in the usual way."
23216 msgstr ""
23217
23218 # type: textblock
23219 #. type: textblock
23220 #: ../fish/guestfish.pod:791
23221 msgid ""
23222 "Before closing a LUKS device you must unmount any logical volumes on it and "
23223 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23224 "one.  Then you can close the mapper device:"
23225 msgstr ""
23226
23227 # type: verbatim
23228 #. type: verbatim
23229 #: ../fish/guestfish.pod:795
23230 #, no-wrap
23231 msgid ""
23232 " vg-activate false /dev/VG\n"
23233 " luks-close /dev/mapper/luksdev\n"
23234 "\n"
23235 msgstr ""
23236
23237 # type: =head1
23238 #. type: =head1
23239 #: ../fish/guestfish.pod:798
23240 msgid "WINDOWS PATHS"
23241 msgstr ""
23242
23243 # type: textblock
23244 #. type: textblock
23245 #: ../fish/guestfish.pod:800
23246 msgid ""
23247 "If a path is prefixed with C<win:> then you can use Windows-style paths "
23248 "(with some limitations).  The following commands are equivalent:"
23249 msgstr ""
23250
23251 # type: verbatim
23252 #. type: verbatim
23253 #: ../fish/guestfish.pod:803
23254 #, no-wrap
23255 msgid ""
23256 " file /WINDOWS/system32/config/system.LOG\n"
23257 "\n"
23258 msgstr ""
23259
23260 # type: verbatim
23261 #. type: verbatim
23262 #: ../fish/guestfish.pod:805
23263 #, no-wrap
23264 msgid ""
23265 " file win:/windows/system32/config/system.log\n"
23266 "\n"
23267 msgstr ""
23268
23269 # type: verbatim
23270 #. type: verbatim
23271 #: ../fish/guestfish.pod:807
23272 #, no-wrap
23273 msgid ""
23274 " file win:\\windows\\system32\\config\\system.log\n"
23275 "\n"
23276 msgstr ""
23277
23278 # type: verbatim
23279 #. type: verbatim
23280 #: ../fish/guestfish.pod:809
23281 #, no-wrap
23282 msgid ""
23283 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
23284 "\n"
23285 msgstr ""
23286
23287 # type: textblock
23288 #. type: textblock
23289 #: ../fish/guestfish.pod:811
23290 msgid ""
23291 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
23292 "handles case insensitivity like Windows would.  This only works in argument "
23293 "positions that expect a path."
23294 msgstr ""
23295
23296 # type: =head1
23297 #. type: =head1
23298 #: ../fish/guestfish.pod:815
23299 msgid "UPLOADING AND DOWNLOADING FILES"
23300 msgstr ""
23301
23302 # type: textblock
23303 #. type: textblock
23304 #: ../fish/guestfish.pod:817
23305 msgid ""
23306 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23307 "others which upload from or download to a local file, you can use the "
23308 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23309 msgstr ""
23310
23311 # type: verbatim
23312 #. type: verbatim
23313 #: ../fish/guestfish.pod:821
23314 #, no-wrap
23315 msgid ""
23316 " upload - /foo\n"
23317 "\n"
23318 msgstr ""
23319
23320 # type: textblock
23321 #. type: textblock
23322 #: ../fish/guestfish.pod:823
23323 msgid ""
23324 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23325 msgstr ""
23326
23327 # type: verbatim
23328 #. type: verbatim
23329 #: ../fish/guestfish.pod:826
23330 #, no-wrap
23331 msgid ""
23332 " tar-out /etc - | tar tf -\n"
23333 "\n"
23334 msgstr ""
23335
23336 # type: textblock
23337 #. type: textblock
23338 #: ../fish/guestfish.pod:828
23339 msgid ""
23340 "writes the tarball to stdout and then pipes that into the external \"tar\" "
23341 "command (see L</PIPES>)."
23342 msgstr ""
23343
23344 # type: textblock
23345 #. type: textblock
23346 #: ../fish/guestfish.pod:831
23347 msgid ""
23348 "When using C<-> to read from stdin, the input is read up to the end of "
23349 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
23350 "some arbitrary end marker:"
23351 msgstr ""
23352
23353 # type: verbatim
23354 #. type: verbatim
23355 #: ../fish/guestfish.pod:835
23356 #, no-wrap
23357 msgid ""
23358 " upload -<<END /foo\n"
23359 " input line 1\n"
23360 " input line 2\n"
23361 " input line 3\n"
23362 " END\n"
23363 "\n"
23364 msgstr ""
23365
23366 # type: textblock
23367 #. type: textblock
23368 #: ../fish/guestfish.pod:841
23369 msgid ""
23370 "Any string of characters can be used instead of C<END>.  The end marker must "
23371 "appear on a line of its own, without any preceeding or following characters "
23372 "(not even spaces)."
23373 msgstr ""
23374
23375 # type: textblock
23376 #. type: textblock
23377 #: ../fish/guestfish.pod:845
23378 msgid ""
23379 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
23380 "upload local files (so-called \"FileIn\" parameters in the generator)."
23381 msgstr ""
23382
23383 # type: =head1
23384 #. type: =head1
23385 #: ../fish/guestfish.pod:848
23386 msgid "EXIT ON ERROR BEHAVIOUR"
23387 msgstr ""
23388
23389 # type: textblock
23390 #. type: textblock
23391 #: ../fish/guestfish.pod:850
23392 msgid ""
23393 "By default, guestfish will ignore any errors when in interactive mode (ie. "
23394 "taking commands from a human over a tty), and will exit on the first error "
23395 "in non-interactive mode (scripts, commands given on the command line)."
23396 msgstr ""
23397
23398 # type: textblock
23399 #. type: textblock
23400 #: ../fish/guestfish.pod:855
23401 msgid ""
23402 "If you prefix a command with a I<-> character, then that command will not "
23403 "cause guestfish to exit, even if that (one) command returns an error."
23404 msgstr ""
23405
23406 # type: =head1
23407 #. type: =head1
23408 #: ../fish/guestfish.pod:859
23409 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
23410 msgstr ""
23411
23412 # type: textblock
23413 #. type: textblock
23414 #: ../fish/guestfish.pod:861
23415 msgid ""
23416 "Guestfish can be remote-controlled over a socket.  This is useful "
23417 "particularly in shell scripts where you want to make several different "
23418 "changes to a filesystem, but you don't want the overhead of starting up a "
23419 "guestfish process each time."
23420 msgstr ""
23421
23422 # type: textblock
23423 #. type: textblock
23424 #: ../fish/guestfish.pod:866
23425 msgid "Start a guestfish server process using:"
23426 msgstr ""
23427
23428 # type: verbatim
23429 #. type: verbatim
23430 #: ../fish/guestfish.pod:868
23431 #, no-wrap
23432 msgid ""
23433 " eval \"`guestfish --listen`\"\n"
23434 "\n"
23435 msgstr ""
23436
23437 # type: textblock
23438 #. type: textblock
23439 #: ../fish/guestfish.pod:870
23440 msgid "and then send it commands by doing:"
23441 msgstr ""
23442
23443 # type: verbatim
23444 #. type: verbatim
23445 #: ../fish/guestfish.pod:872
23446 #, no-wrap
23447 msgid ""
23448 " guestfish --remote cmd [...]\n"
23449 "\n"
23450 msgstr ""
23451
23452 # type: textblock
23453 #. type: textblock
23454 #: ../fish/guestfish.pod:874
23455 msgid "To cause the server to exit, send it the exit command:"
23456 msgstr ""
23457
23458 # type: verbatim
23459 #. type: verbatim
23460 #: ../fish/guestfish.pod:876
23461 #, no-wrap
23462 msgid ""
23463 " guestfish --remote exit\n"
23464 "\n"
23465 msgstr ""
23466
23467 # type: textblock
23468 #. type: textblock
23469 #: ../fish/guestfish.pod:878
23470 msgid ""
23471 "Note that the server will normally exit if there is an error in a command.  "
23472 "You can change this in the usual way.  See section L</EXIT ON ERROR "
23473 "BEHAVIOUR>."
23474 msgstr ""
23475
23476 # type: =head2
23477 #. type: =head2
23478 #: ../fish/guestfish.pod:882
23479 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
23480 msgstr ""
23481
23482 # type: textblock
23483 #. type: textblock
23484 #: ../fish/guestfish.pod:884
23485 msgid ""
23486 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
23487 "is how the I<--remote> option knows where to send the commands.  You can "
23488 "have several guestfish listener processes running using:"
23489 msgstr ""
23490
23491 # type: verbatim
23492 #. type: verbatim
23493 #: ../fish/guestfish.pod:888
23494 #, no-wrap
23495 msgid ""
23496 " eval \"`guestfish --listen`\"\n"
23497 " pid1=$GUESTFISH_PID\n"
23498 " eval \"`guestfish --listen`\"\n"
23499 " pid2=$GUESTFISH_PID\n"
23500 " ...\n"
23501 " guestfish --remote=$pid1 cmd\n"
23502 " guestfish --remote=$pid2 cmd\n"
23503 "\n"
23504 msgstr ""
23505
23506 # type: =head2
23507 #. type: =head2
23508 #: ../fish/guestfish.pod:896
23509 msgid "REMOTE CONTROL AND CSH"
23510 msgstr ""
23511
23512 # type: textblock
23513 #. type: textblock
23514 #: ../fish/guestfish.pod:898
23515 msgid ""
23516 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
23517 "option:"
23518 msgstr ""
23519
23520 # type: verbatim
23521 #. type: verbatim
23522 #: ../fish/guestfish.pod:901
23523 #, no-wrap
23524 msgid ""
23525 " eval \"`guestfish --listen --csh`\"\n"
23526 "\n"
23527 msgstr ""
23528
23529 # type: =head2
23530 #. type: =head2
23531 #: ../fish/guestfish.pod:903
23532 msgid "REMOTE CONTROL DETAILS"
23533 msgstr ""
23534
23535 # type: textblock
23536 #. type: textblock
23537 #: ../fish/guestfish.pod:905
23538 msgid ""
23539 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
23540 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
23541 "and C<$PID> is the process ID of the server."
23542 msgstr ""
23543
23544 # type: textblock
23545 #. type: textblock
23546 #: ../fish/guestfish.pod:909
23547 msgid "Guestfish client and server versions must match exactly."
23548 msgstr ""
23549
23550 # type: =head1
23551 #. type: =head1
23552 #: ../fish/guestfish.pod:911
23553 msgid "PREPARED DISK IMAGES"
23554 msgstr ""
23555
23556 # type: textblock
23557 #. type: textblock
23558 #: ../fish/guestfish.pod:913
23559 msgid ""
23560 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
23561 "preformatted disk images that guestfish can make for you to save typing.  "
23562 "This is particularly useful for testing purposes.  This option is used "
23563 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
23564 "can be mixed with I<-a>)."
23565 msgstr ""
23566
23567 # type: textblock
23568 #. type: textblock
23569 #: ../fish/guestfish.pod:919
23570 msgid ""
23571 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
23572 "the second and so on.  Existing files in the current directory are "
23573 "I<overwritten>."
23574 msgstr ""
23575
23576 # type: textblock
23577 #. type: textblock
23578 #: ../fish/guestfish.pod:923
23579 msgid ""
23580 "The type briefly describes how the disk should be sized, partitioned, how "
23581 "filesystem(s) should be created, and how content should be added.  "
23582 "Optionally the type can be followed by extra parameters, separated by C<:> "
23583 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
23584 "allocated disk, containing a single partition, with the partition formatted "
23585 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
23586 "disk instead."
23587 msgstr ""
23588
23589 # type: textblock
23590 #. type: textblock
23591 #: ../fish/guestfish.pod:931
23592 msgid "To list the available types and any extra parameters they take, run:"
23593 msgstr ""
23594
23595 # type: textblock
23596 #. type: textblock
23597 #: ../fish/guestfish.pod:935
23598 msgid ""
23599 "Note that the prepared filesystem is not mounted.  You would usually have to "
23600 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
23601 msgstr ""
23602
23603 # type: textblock
23604 #. type: textblock
23605 #: ../fish/guestfish.pod:939
23606 msgid ""
23607 "If any I<-N> or I<--new> options are given, the guest is automatically "
23608 "launched."
23609 msgstr ""
23610
23611 # type: textblock
23612 #. type: textblock
23613 #: ../fish/guestfish.pod:944
23614 msgid "Create a 100MB disk with an ext4-formatted partition:"
23615 msgstr ""
23616
23617 # type: verbatim
23618 #. type: verbatim
23619 #: ../fish/guestfish.pod:946
23620 #, no-wrap
23621 msgid ""
23622 " guestfish -N fs:ext4\n"
23623 "\n"
23624 msgstr ""
23625
23626 # type: textblock
23627 #. type: textblock
23628 #: ../fish/guestfish.pod:948
23629 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
23630 msgstr ""
23631
23632 # type: verbatim
23633 #. type: verbatim
23634 #: ../fish/guestfish.pod:950
23635 #, no-wrap
23636 msgid ""
23637 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
23638 "\n"
23639 msgstr ""
23640
23641 # type: textblock
23642 #. type: textblock
23643 #: ../fish/guestfish.pod:952
23644 msgid "Create a blank 200MB disk:"
23645 msgstr ""
23646
23647 # type: verbatim
23648 #. type: verbatim
23649 #: ../fish/guestfish.pod:954
23650 #, no-wrap
23651 msgid ""
23652 " guestfish -N disk:200M\n"
23653 "\n"
23654 msgstr ""
23655
23656 # type: =head1
23657 #. type: =head1
23658 #: ../fish/guestfish.pod:956
23659 msgid "PROGRESS BARS"
23660 msgstr ""
23661
23662 # type: textblock
23663 #. type: textblock
23664 #: ../fish/guestfish.pod:958
23665 msgid ""
23666 "Some (not all) long-running commands send progress notification messages as "
23667 "they are running.  Guestfish turns these messages into progress bars."
23668 msgstr ""
23669
23670 # type: textblock
23671 #. type: textblock
23672 #: ../fish/guestfish.pod:962
23673 msgid ""
23674 "When a command that supports progress bars takes longer than two seconds to "
23675 "run, and if progress bars are enabled, then you will see one appearing below "
23676 "the command:"
23677 msgstr ""
23678
23679 # type: verbatim
23680 #. type: verbatim
23681 #: ../fish/guestfish.pod:966
23682 #, no-wrap
23683 msgid ""
23684 " ><fs> copy-size /large-file /another-file 2048M\n"
23685 " / 10% [#####-----------------------------------------] 00:30\n"
23686 "\n"
23687 msgstr ""
23688
23689 # type: textblock
23690 #. type: textblock
23691 #: ../fish/guestfish.pod:969
23692 msgid ""
23693 "The spinner on the left hand side moves round once for every progress "
23694 "notification received from the backend.  This is a (reasonably) golden "
23695 "assurance that the command is \"doing something\" even if the progress bar "
23696 "is not moving, because the command is able to send the progress "
23697 "notifications.  When the bar reaches 100% and the command finishes, the "
23698 "spinner disappears."
23699 msgstr ""
23700
23701 # type: textblock
23702 #. type: textblock
23703 #: ../fish/guestfish.pod:976
23704 msgid ""
23705 "Progress bars are enabled by default when guestfish is used interactively.  "
23706 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23707 "and you can disable them completely using I<--no-progress-bars>."
23708 msgstr ""
23709
23710 # type: =head1
23711 #. type: =head1
23712 #: ../fish/guestfish.pod:981
23713 msgid "GUESTFISH COMMANDS"
23714 msgstr ""
23715
23716 # type: textblock
23717 #. type: textblock
23718 #: ../fish/guestfish.pod:983
23719 msgid ""
23720 "The commands in this section are guestfish convenience commands, in other "
23721 "words, they are not part of the L<guestfs(3)> API."
23722 msgstr ""
23723
23724 # type: =head2
23725 #. type: =head2
23726 #: ../fish/guestfish.pod:986
23727 msgid "help"
23728 msgstr ""
23729
23730 # type: verbatim
23731 #. type: verbatim
23732 #: ../fish/guestfish.pod:988
23733 #, no-wrap
23734 msgid ""
23735 " help\n"
23736 " help cmd\n"
23737 "\n"
23738 msgstr ""
23739
23740 # type: textblock
23741 #. type: textblock
23742 #: ../fish/guestfish.pod:991
23743 msgid "Without any parameter, this provides general help."
23744 msgstr ""
23745
23746 # type: textblock
23747 #. type: textblock
23748 #: ../fish/guestfish.pod:993
23749 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23750 msgstr ""
23751
23752 # type: =head2
23753 #. type: =head2
23754 #: ../fish/guestfish.pod:995
23755 msgid "quit | exit"
23756 msgstr ""
23757
23758 # type: textblock
23759 #. type: textblock
23760 #: ../fish/guestfish.pod:997
23761 msgid "This exits guestfish.  You can also use C<^D> key."
23762 msgstr ""
23763
23764 # type: textblock
23765 #. type: textblock
23766 #: ../fish/guestfish.pod:999
23767 msgid "@FISH_COMMANDS@"
23768 msgstr ""
23769
23770 # type: =head1
23771 #. type: =head1
23772 #: ../fish/guestfish.pod:1001
23773 msgid "COMMANDS"
23774 msgstr ""
23775
23776 # type: =head1
23777 #. type: =head1
23778 #: ../fish/guestfish.pod:1005 ../test-tool/libguestfs-test-tool.pod:83
23779 msgid "EXIT CODE"
23780 msgstr ""
23781
23782 # type: textblock
23783 #. type: textblock
23784 #: ../fish/guestfish.pod:1007
23785 msgid ""
23786 "guestfish returns 0 if the commands completed without error, or 1 if there "
23787 "was an error."
23788 msgstr ""
23789
23790 # type: =item
23791 #. type: =item
23792 #: ../fish/guestfish.pod:1014
23793 msgid "EDITOR"
23794 msgstr ""
23795
23796 # type: textblock
23797 #. type: textblock
23798 #: ../fish/guestfish.pod:1016
23799 msgid ""
23800 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23801 "C<vi>."
23802 msgstr ""
23803
23804 # type: =item
23805 #. type: =item
23806 #: ../fish/guestfish.pod:1019
23807 msgid "GUESTFISH_PID"
23808 msgstr ""
23809
23810 # type: textblock
23811 #. type: textblock
23812 #: ../fish/guestfish.pod:1021
23813 msgid ""
23814 "Used with the I<--remote> option to specify the remote guestfish process to "
23815 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23816 msgstr ""
23817
23818 # type: =item
23819 #. type: =item
23820 #: ../fish/guestfish.pod:1025
23821 msgid "HEXEDITOR"
23822 msgstr ""
23823
23824 # type: textblock
23825 #. type: textblock
23826 #: ../fish/guestfish.pod:1027
23827 msgid ""
23828 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23829 "not specified, the external L<hexedit(1)> program is used."
23830 msgstr ""
23831
23832 # type: =item
23833 #. type: =item
23834 #: ../fish/guestfish.pod:1031
23835 msgid "HOME"
23836 msgstr ""
23837
23838 # type: textblock
23839 #. type: textblock
23840 #: ../fish/guestfish.pod:1033
23841 msgid ""
23842 "If compiled with GNU readline support, various files in the home directory "
23843 "can be used.  See L</FILES>."
23844 msgstr ""
23845
23846 # type: textblock
23847 #. type: textblock
23848 #: ../fish/guestfish.pod:1042
23849 msgid ""
23850 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23851 "effect as using the B<-v> option."
23852 msgstr ""
23853
23854 # type: textblock
23855 #. type: textblock
23856 #: ../fish/guestfish.pod:1054
23857 msgid ""
23858 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23859 "the discussion of paths in L<guestfs(3)>."
23860 msgstr ""
23861
23862 # type: textblock
23863 #. type: textblock
23864 #: ../fish/guestfish.pod:1065
23865 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23866 msgstr ""
23867
23868 # type: =item
23869 #. type: =item
23870 #: ../fish/guestfish.pod:1067
23871 msgid "PAGER"
23872 msgstr ""
23873
23874 # type: textblock
23875 #. type: textblock
23876 #: ../fish/guestfish.pod:1069
23877 msgid ""
23878 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23879 "C<more>."
23880 msgstr ""
23881
23882 # type: =head1
23883 #. type: =head1
23884 #: ../fish/guestfish.pod:1085 ../test-tool/libguestfs-test-tool.pod:88
23885 #: ../fuse/guestmount.pod:252
23886 msgid "FILES"
23887 msgstr ""
23888
23889 #. type: =item
23890 #: ../fish/guestfish.pod:1089 ../fuse/guestmount.pod:256
23891 msgid "$HOME/.libguestfs-tools.rc"
23892 msgstr ""
23893
23894 #. type: =item
23895 #: ../fish/guestfish.pod:1091 ../fuse/guestmount.pod:258
23896 msgid "/etc/libguestfs-tools.conf"
23897 msgstr ""
23898
23899 #. type: textblock
23900 #: ../fish/guestfish.pod:1093 ../fuse/guestmount.pod:260
23901 msgid ""
23902 "This configuration file controls the default read-only or read-write mode "
23903 "(I<--ro> or I<--rw>)."
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../fish/guestfish.pod:1096
23908 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
23909 msgstr ""
23910
23911 # type: =item
23912 #. type: =item
23913 #: ../fish/guestfish.pod:1098
23914 msgid "$HOME/.guestfish"
23915 msgstr ""
23916
23917 # type: textblock
23918 #. type: textblock
23919 #: ../fish/guestfish.pod:1100
23920 msgid ""
23921 "If compiled with GNU readline support, then the command history is saved in "
23922 "this file."
23923 msgstr ""
23924
23925 # type: =item
23926 #. type: =item
23927 #: ../fish/guestfish.pod:1103
23928 msgid "$HOME/.inputrc"
23929 msgstr ""
23930
23931 # type: =item
23932 #. type: =item
23933 #: ../fish/guestfish.pod:1105
23934 msgid "/etc/inputrc"
23935 msgstr ""
23936
23937 # type: textblock
23938 #. type: textblock
23939 #: ../fish/guestfish.pod:1107
23940 msgid ""
23941 "If compiled with GNU readline support, then these files can be used to "
23942 "configure readline.  For further information, please see L<readline(3)/"
23943 "INITIALIZATION FILE>."
23944 msgstr ""
23945
23946 # type: textblock
23947 #. type: textblock
23948 #: ../fish/guestfish.pod:1111
23949 msgid "To write rules which only apply to guestfish, use:"
23950 msgstr ""
23951
23952 # type: verbatim
23953 #. type: verbatim
23954 #: ../fish/guestfish.pod:1113
23955 #, no-wrap
23956 msgid ""
23957 " $if guestfish\n"
23958 " ...\n"
23959 " $endif\n"
23960 "\n"
23961 msgstr ""
23962
23963 # type: textblock
23964 #. type: textblock
23965 #: ../fish/guestfish.pod:1117
23966 msgid ""
23967 "Variables that you can set in inputrc that change the behaviour of guestfish "
23968 "in useful ways include:"
23969 msgstr ""
23970
23971 # type: =item
23972 #. type: =item
23973 #: ../fish/guestfish.pod:1122
23974 msgid "completion-ignore-case (default: on)"
23975 msgstr ""
23976
23977 # type: textblock
23978 #. type: textblock
23979 #: ../fish/guestfish.pod:1124
23980 msgid ""
23981 "By default, guestfish will ignore case when tab-completing paths on the "
23982 "disk.  Use:"
23983 msgstr ""
23984
23985 # type: verbatim
23986 #. type: verbatim
23987 #: ../fish/guestfish.pod:1127
23988 #, no-wrap
23989 msgid ""
23990 " set completion-ignore-case off\n"
23991 "\n"
23992 msgstr ""
23993
23994 # type: textblock
23995 #. type: textblock
23996 #: ../fish/guestfish.pod:1129
23997 msgid "to make guestfish case sensitive."
23998 msgstr ""
23999
24000 # type: =item
24001 #. type: =item
24002 #: ../fish/guestfish.pod:1133
24003 msgid "test1.img"
24004 msgstr ""
24005
24006 # type: =item
24007 #. type: =item
24008 #: ../fish/guestfish.pod:1135
24009 msgid "test2.img (etc)"
24010 msgstr ""
24011
24012 # type: textblock
24013 #. type: textblock
24014 #: ../fish/guestfish.pod:1137
24015 msgid ""
24016 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
24017 "will be created in the file C<test1.img> in the current directory.  The "
24018 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
24019 "the same name will be overwritten."
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../fish/guestfish.pod:1146
24024 msgid ""
24025 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24026 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24027 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24028 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24029 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24030 ">, L<hexedit(1)>."
24031 msgstr ""
24032
24033 #. type: textblock
24034 #: ../fish/guestfish.pod:1173
24035 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
24036 msgstr ""
24037
24038 # type: textblock
24039 #. type: textblock
24040 #: ../fish/guestfish.pod:1176 ../test-tool/libguestfs-test-tool.pod:124
24041 #: ../fuse/guestmount.pod:287 ../tools/virt-edit.pl:372
24042 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1518
24043 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
24044 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
24045 msgid ""
24046 "This program is free software; you can redistribute it and/or modify it "
24047 "under the terms of the GNU General Public License as published by the Free "
24048 "Software Foundation; either version 2 of the License, or (at your option) "
24049 "any later version."
24050 msgstr ""
24051
24052 # type: textblock
24053 #. type: textblock
24054 #: ../fish/guestfish.pod:1181 ../test-tool/libguestfs-test-tool.pod:129
24055 #: ../fuse/guestmount.pod:292 ../tools/virt-edit.pl:377
24056 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1523
24057 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
24058 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
24059 msgid ""
24060 "This program is distributed in the hope that it will be useful, but WITHOUT "
24061 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24062 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24063 "more details."
24064 msgstr ""
24065
24066 # type: textblock
24067 #. type: textblock
24068 #: ../fish/guestfish.pod:1186 ../test-tool/libguestfs-test-tool.pod:134
24069 #: ../fuse/guestmount.pod:297 ../tools/virt-edit.pl:382
24070 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1528
24071 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
24072 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
24073 msgid ""
24074 "You should have received a copy of the GNU General Public License along with "
24075 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24076 "Ave, Cambridge, MA 02139, USA."
24077 msgstr ""
24078
24079 # type: =head2
24080 #. type: =head2
24081 #: ../fish/guestfish-actions.pod:1
24082 msgid "add-cdrom"
24083 msgstr ""
24084
24085 # type: verbatim
24086 #. type: verbatim
24087 #: ../fish/guestfish-actions.pod:3
24088 #, no-wrap
24089 msgid ""
24090 " add-cdrom filename\n"
24091 "\n"
24092 msgstr ""
24093
24094 # type: textblock
24095 #. type: textblock
24096 #: ../fish/guestfish-actions.pod:15
24097 msgid ""
24098 "This call checks for the existence of C<filename>.  This stops you from "
24099 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24100 "and C<http:> URLs.  To specify those, use the general L</config> call "
24101 "instead."
24102 msgstr ""
24103
24104 # type: textblock
24105 #. type: textblock
24106 #: ../fish/guestfish-actions.pod:22
24107 msgid ""
24108 "If you just want to add an ISO file (often you use this as an efficient way "
24109 "to transfer large files into the guest), then you should probably use L</add-"
24110 "drive-ro> instead."
24111 msgstr ""
24112
24113 # type: =head2
24114 #. type: =head2
24115 #: ../fish/guestfish-actions.pod:35
24116 msgid "add-domain"
24117 msgstr ""
24118
24119 # type: =head2
24120 #. type: =head2
24121 #: ../fish/guestfish-actions.pod:37
24122 msgid "domain"
24123 msgstr ""
24124
24125 #. type: verbatim
24126 #: ../fish/guestfish-actions.pod:39
24127 #, no-wrap
24128 msgid ""
24129 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
24130 "\n"
24131 msgstr ""
24132
24133 # type: textblock
24134 #. type: textblock
24135 #: ../fish/guestfish-actions.pod:41
24136 msgid ""
24137 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24138 "It works by connecting to libvirt, requesting the domain and domain XML from "
24139 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24140 msgstr ""
24141
24142 # type: textblock
24143 #. type: textblock
24144 #: ../fish/guestfish-actions.pod:71
24145 msgid ""
24146 "The other optional parameters are passed directly through to L</add-drive-"
24147 "opts>."
24148 msgstr ""
24149
24150 # type: textblock
24151 #. type: textblock
24152 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138
24153 #: ../fish/guestfish-actions.pod:2981
24154 msgid ""
24155 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24156 msgstr ""
24157
24158 # type: =head2
24159 #. type: =head2
24160 #: ../fish/guestfish-actions.pod:76
24161 msgid "add-drive"
24162 msgstr ""
24163
24164 # type: verbatim
24165 #. type: verbatim
24166 #: ../fish/guestfish-actions.pod:78
24167 #, no-wrap
24168 msgid ""
24169 " add-drive filename\n"
24170 "\n"
24171 msgstr ""
24172
24173 # type: textblock
24174 #. type: textblock
24175 #: ../fish/guestfish-actions.pod:80
24176 msgid ""
24177 "This function is the equivalent of calling L</add-drive-opts> with no "
24178 "optional parameters, so the disk is added writable, with the format being "
24179 "detected automatically."
24180 msgstr ""
24181
24182 # type: textblock
24183 #. type: textblock
24184 #: ../fish/guestfish-actions.pod:84
24185 msgid ""
24186 "Automatic detection of the format opens you up to a potential security hole "
24187 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24188 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24189 "you should think about replacing calls to this function with calls to L</add-"
24190 "drive-opts>, and specifying the format."
24191 msgstr ""
24192
24193 # type: =head2
24194 #. type: =head2
24195 #: ../fish/guestfish-actions.pod:91
24196 msgid "add-drive-opts"
24197 msgstr ""
24198
24199 # type: =head2
24200 #. type: =head2
24201 #: ../fish/guestfish-actions.pod:93
24202 msgid "add"
24203 msgstr ""
24204
24205 # type: verbatim
24206 #. type: verbatim
24207 #: ../fish/guestfish-actions.pod:95
24208 #, no-wrap
24209 msgid ""
24210 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24211 "\n"
24212 msgstr ""
24213
24214 # type: textblock
24215 #. type: textblock
24216 #: ../fish/guestfish-actions.pod:122
24217 msgid ""
24218 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24219 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24220 "include C<raw> and C<qcow2>."
24221 msgstr ""
24222
24223 # type: textblock
24224 #. type: textblock
24225 #: ../fish/guestfish-actions.pod:133
24226 msgid ""
24227 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24228 "add-drive-with-if> call (q.v.)"
24229 msgstr ""
24230
24231 # type: =head2
24232 #. type: =head2
24233 #: ../fish/guestfish-actions.pod:140
24234 msgid "add-drive-ro"
24235 msgstr ""
24236
24237 # type: =head2
24238 #. type: =head2
24239 #: ../fish/guestfish-actions.pod:142
24240 msgid "add-ro"
24241 msgstr ""
24242
24243 # type: verbatim
24244 #. type: verbatim
24245 #: ../fish/guestfish-actions.pod:144
24246 #, no-wrap
24247 msgid ""
24248 " add-drive-ro filename\n"
24249 "\n"
24250 msgstr ""
24251
24252 # type: textblock
24253 #. type: textblock
24254 #: ../fish/guestfish-actions.pod:146
24255 msgid ""
24256 "This function is the equivalent of calling L</add-drive-opts> with the "
24257 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24258 "is added read-only, with the format being detected automatically."
24259 msgstr ""
24260
24261 # type: =head2
24262 #. type: =head2
24263 #: ../fish/guestfish-actions.pod:151
24264 msgid "add-drive-ro-with-if"
24265 msgstr ""
24266
24267 # type: verbatim
24268 #. type: verbatim
24269 #: ../fish/guestfish-actions.pod:153
24270 #, no-wrap
24271 msgid ""
24272 " add-drive-ro-with-if filename iface\n"
24273 "\n"
24274 msgstr ""
24275
24276 # type: textblock
24277 #. type: textblock
24278 #: ../fish/guestfish-actions.pod:155
24279 msgid ""
24280 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24281 "interface emulation to use at run time."
24282 msgstr ""
24283
24284 # type: =head2
24285 #. type: =head2
24286 #: ../fish/guestfish-actions.pod:165
24287 msgid "add-drive-with-if"
24288 msgstr ""
24289
24290 # type: verbatim
24291 #. type: verbatim
24292 #: ../fish/guestfish-actions.pod:167
24293 #, no-wrap
24294 msgid ""
24295 " add-drive-with-if filename iface\n"
24296 "\n"
24297 msgstr ""
24298
24299 # type: textblock
24300 #. type: textblock
24301 #: ../fish/guestfish-actions.pod:169
24302 msgid ""
24303 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24304 "interface emulation to use at run time."
24305 msgstr ""
24306
24307 # type: =head2
24308 #. type: =head2
24309 #: ../fish/guestfish-actions.pod:179
24310 msgid "aug-clear"
24311 msgstr ""
24312
24313 # type: verbatim
24314 #. type: verbatim
24315 #: ../fish/guestfish-actions.pod:181
24316 #, no-wrap
24317 msgid ""
24318 " aug-clear augpath\n"
24319 "\n"
24320 msgstr ""
24321
24322 # type: =head2
24323 #. type: =head2
24324 #: ../fish/guestfish-actions.pod:186
24325 msgid "aug-close"
24326 msgstr ""
24327
24328 # type: verbatim
24329 #. type: verbatim
24330 #: ../fish/guestfish-actions.pod:188
24331 #, no-wrap
24332 msgid ""
24333 " aug-close\n"
24334 "\n"
24335 msgstr ""
24336
24337 # type: textblock
24338 #. type: textblock
24339 #: ../fish/guestfish-actions.pod:190
24340 msgid ""
24341 "Close the current Augeas handle and free up any resources used by it.  After "
24342 "calling this, you have to call L</aug-init> again before you can use any "
24343 "other Augeas functions."
24344 msgstr ""
24345
24346 # type: =head2
24347 #. type: =head2
24348 #: ../fish/guestfish-actions.pod:195
24349 msgid "aug-defnode"
24350 msgstr ""
24351
24352 # type: verbatim
24353 #. type: verbatim
24354 #: ../fish/guestfish-actions.pod:197
24355 #, no-wrap
24356 msgid ""
24357 " aug-defnode name expr val\n"
24358 "\n"
24359 msgstr ""
24360
24361 # type: textblock
24362 #. type: textblock
24363 #: ../fish/guestfish-actions.pod:202
24364 msgid ""
24365 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24366 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
24367 "containing that single node."
24368 msgstr ""
24369
24370 # type: =head2
24371 #. type: =head2
24372 #: ../fish/guestfish-actions.pod:210
24373 msgid "aug-defvar"
24374 msgstr ""
24375
24376 # type: verbatim
24377 #. type: verbatim
24378 #: ../fish/guestfish-actions.pod:212
24379 #, no-wrap
24380 msgid ""
24381 " aug-defvar name expr\n"
24382 "\n"
24383 msgstr ""
24384
24385 # type: =head2
24386 #. type: =head2
24387 #: ../fish/guestfish-actions.pod:221
24388 msgid "aug-get"
24389 msgstr ""
24390
24391 # type: verbatim
24392 #. type: verbatim
24393 #: ../fish/guestfish-actions.pod:223
24394 #, no-wrap
24395 msgid ""
24396 " aug-get augpath\n"
24397 "\n"
24398 msgstr ""
24399
24400 # type: =head2
24401 #. type: =head2
24402 #: ../fish/guestfish-actions.pod:228
24403 msgid "aug-init"
24404 msgstr ""
24405
24406 # type: verbatim
24407 #. type: verbatim
24408 #: ../fish/guestfish-actions.pod:230
24409 #, no-wrap
24410 msgid ""
24411 " aug-init root flags\n"
24412 "\n"
24413 msgstr ""
24414
24415 # type: textblock
24416 #. type: textblock
24417 #: ../fish/guestfish-actions.pod:236
24418 msgid "You must call this before using any other L</aug-*> commands."
24419 msgstr ""
24420
24421 # type: textblock
24422 #. type: textblock
24423 #: ../fish/guestfish-actions.pod:271
24424 msgid "Do not load the tree in L</aug-init>."
24425 msgstr ""
24426
24427 # type: textblock
24428 #. type: textblock
24429 #: ../fish/guestfish-actions.pod:275
24430 msgid "To close the handle, you can call L</aug-close>."
24431 msgstr ""
24432
24433 # type: =head2
24434 #. type: =head2
24435 #: ../fish/guestfish-actions.pod:279
24436 msgid "aug-insert"
24437 msgstr ""
24438
24439 # type: verbatim
24440 #. type: verbatim
24441 #: ../fish/guestfish-actions.pod:281
24442 #, no-wrap
24443 msgid ""
24444 " aug-insert augpath label true|false\n"
24445 "\n"
24446 msgstr ""
24447
24448 # type: =head2
24449 #. type: =head2
24450 #: ../fish/guestfish-actions.pod:291
24451 msgid "aug-load"
24452 msgstr ""
24453
24454 # type: verbatim
24455 #. type: verbatim
24456 #: ../fish/guestfish-actions.pod:293
24457 #, no-wrap
24458 msgid ""
24459 " aug-load\n"
24460 "\n"
24461 msgstr ""
24462
24463 # type: =head2
24464 #. type: =head2
24465 #: ../fish/guestfish-actions.pod:300
24466 msgid "aug-ls"
24467 msgstr ""
24468
24469 # type: verbatim
24470 #. type: verbatim
24471 #: ../fish/guestfish-actions.pod:302
24472 #, no-wrap
24473 msgid ""
24474 " aug-ls augpath\n"
24475 "\n"
24476 msgstr ""
24477
24478 # type: textblock
24479 #. type: textblock
24480 #: ../fish/guestfish-actions.pod:304
24481 msgid ""
24482 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
24483 "resulting nodes into alphabetical order."
24484 msgstr ""
24485
24486 # type: =head2
24487 #. type: =head2
24488 #: ../fish/guestfish-actions.pod:307
24489 msgid "aug-match"
24490 msgstr ""
24491
24492 # type: verbatim
24493 #. type: verbatim
24494 #: ../fish/guestfish-actions.pod:309
24495 #, no-wrap
24496 msgid ""
24497 " aug-match augpath\n"
24498 "\n"
24499 msgstr ""
24500
24501 # type: =head2
24502 #. type: =head2
24503 #: ../fish/guestfish-actions.pod:315
24504 msgid "aug-mv"
24505 msgstr ""
24506
24507 # type: verbatim
24508 #. type: verbatim
24509 #: ../fish/guestfish-actions.pod:317
24510 #, no-wrap
24511 msgid ""
24512 " aug-mv src dest\n"
24513 "\n"
24514 msgstr ""
24515
24516 # type: =head2
24517 #. type: =head2
24518 #: ../fish/guestfish-actions.pod:322
24519 msgid "aug-rm"
24520 msgstr ""
24521
24522 # type: verbatim
24523 #. type: verbatim
24524 #: ../fish/guestfish-actions.pod:324
24525 #, no-wrap
24526 msgid ""
24527 " aug-rm augpath\n"
24528 "\n"
24529 msgstr ""
24530
24531 # type: =head2
24532 #. type: =head2
24533 #: ../fish/guestfish-actions.pod:330
24534 msgid "aug-save"
24535 msgstr ""
24536
24537 # type: verbatim
24538 #. type: verbatim
24539 #: ../fish/guestfish-actions.pod:332
24540 #, no-wrap
24541 msgid ""
24542 " aug-save\n"
24543 "\n"
24544 msgstr ""
24545
24546 # type: textblock
24547 #. type: textblock
24548 #: ../fish/guestfish-actions.pod:336
24549 msgid ""
24550 "The flags which were passed to L</aug-init> affect exactly how files are "
24551 "saved."
24552 msgstr ""
24553
24554 # type: =head2
24555 #. type: =head2
24556 #: ../fish/guestfish-actions.pod:339
24557 msgid "aug-set"
24558 msgstr ""
24559
24560 # type: verbatim
24561 #. type: verbatim
24562 #: ../fish/guestfish-actions.pod:341
24563 #, no-wrap
24564 msgid ""
24565 " aug-set augpath val\n"
24566 "\n"
24567 msgstr ""
24568
24569 # type: textblock
24570 #. type: textblock
24571 #: ../fish/guestfish-actions.pod:345
24572 msgid ""
24573 "In the Augeas API, it is possible to clear a node by setting the value to "
24574 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24575 "this call.  Instead you must use the L</aug-clear> call."
24576 msgstr ""
24577
24578 # type: =head2
24579 #. type: =head2
24580 #: ../fish/guestfish-actions.pod:350
24581 msgid "available"
24582 msgstr ""
24583
24584 # type: verbatim
24585 #. type: verbatim
24586 #: ../fish/guestfish-actions.pod:352
24587 #, no-wrap
24588 msgid ""
24589 " available 'groups ...'\n"
24590 "\n"
24591 msgstr ""
24592
24593 # type: textblock
24594 #. type: textblock
24595 #: ../fish/guestfish-actions.pod:358
24596 msgid ""
24597 "The libguestfs groups, and the functions that those groups correspond to, "
24598 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24599 "runtime by calling L</available-all-groups>."
24600 msgstr ""
24601
24602 # type: textblock
24603 #. type: textblock
24604 #: ../fish/guestfish-actions.pod:382
24605 msgid "You must call L</launch> before calling this function."
24606 msgstr ""
24607
24608 # type: textblock
24609 #. type: textblock
24610 #: ../fish/guestfish-actions.pod:404
24611 msgid ""
24612 "This call was added in version C<1.0.80>.  In previous versions of "
24613 "libguestfs all you could do would be to speculatively execute a command to "
24614 "find out if the daemon implemented it.  See also L</version>."
24615 msgstr ""
24616
24617 # type: =head2
24618 #. type: =head2
24619 #: ../fish/guestfish-actions.pod:411
24620 msgid "available-all-groups"
24621 msgstr ""
24622
24623 # type: verbatim
24624 #. type: verbatim
24625 #: ../fish/guestfish-actions.pod:413
24626 #, no-wrap
24627 msgid ""
24628 " available-all-groups\n"
24629 "\n"
24630 msgstr ""
24631
24632 # type: textblock
24633 #. type: textblock
24634 #: ../fish/guestfish-actions.pod:415
24635 msgid ""
24636 "This command returns a list of all optional groups that this daemon knows "
24637 "about.  Note this returns both supported and unsupported groups.  To find "
24638 "out which ones the daemon can actually support you have to call L</"
24639 "available> on each member of the returned list."
24640 msgstr ""
24641
24642 # type: textblock
24643 #. type: textblock
24644 #: ../fish/guestfish-actions.pod:421
24645 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
24646 msgstr ""
24647
24648 # type: =head2
24649 #. type: =head2
24650 #: ../fish/guestfish-actions.pod:423
24651 msgid "base64-in"
24652 msgstr ""
24653
24654 # type: verbatim
24655 #. type: verbatim
24656 #: ../fish/guestfish-actions.pod:425
24657 #, no-wrap
24658 msgid ""
24659 " base64-in (base64file|-) filename\n"
24660 "\n"
24661 msgstr ""
24662
24663 # type: textblock
24664 #. type: textblock
24665 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439
24666 #: ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832
24667 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228
24668 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4391
24669 #: ../fish/guestfish-actions.pod:4402 ../fish/guestfish-actions.pod:4413
24670 #: ../fish/guestfish-actions.pod:4465 ../fish/guestfish-actions.pod:4474
24671 #: ../fish/guestfish-actions.pod:4528 ../fish/guestfish-actions.pod:4551
24672 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
24673 msgstr ""
24674
24675 # type: =head2
24676 #. type: =head2
24677 #: ../fish/guestfish-actions.pod:432
24678 msgid "base64-out"
24679 msgstr ""
24680
24681 # type: verbatim
24682 #. type: verbatim
24683 #: ../fish/guestfish-actions.pod:434
24684 #, no-wrap
24685 msgid ""
24686 " base64-out filename (base64file|-)\n"
24687 "\n"
24688 msgstr ""
24689
24690 # type: =head2
24691 #. type: =head2
24692 #: ../fish/guestfish-actions.pod:441
24693 msgid "blockdev-flushbufs"
24694 msgstr ""
24695
24696 # type: verbatim
24697 #. type: verbatim
24698 #: ../fish/guestfish-actions.pod:443
24699 #, no-wrap
24700 msgid ""
24701 " blockdev-flushbufs device\n"
24702 "\n"
24703 msgstr ""
24704
24705 # type: =head2
24706 #. type: =head2
24707 #: ../fish/guestfish-actions.pod:450
24708 msgid "blockdev-getbsz"
24709 msgstr ""
24710
24711 # type: verbatim
24712 #. type: verbatim
24713 #: ../fish/guestfish-actions.pod:452
24714 #, no-wrap
24715 msgid ""
24716 " blockdev-getbsz device\n"
24717 "\n"
24718 msgstr ""
24719
24720 # type: =head2
24721 #. type: =head2
24722 #: ../fish/guestfish-actions.pod:461
24723 msgid "blockdev-getro"
24724 msgstr ""
24725
24726 # type: verbatim
24727 #. type: verbatim
24728 #: ../fish/guestfish-actions.pod:463
24729 #, no-wrap
24730 msgid ""
24731 " blockdev-getro device\n"
24732 "\n"
24733 msgstr ""
24734
24735 # type: =head2
24736 #. type: =head2
24737 #: ../fish/guestfish-actions.pod:470
24738 msgid "blockdev-getsize64"
24739 msgstr ""
24740
24741 # type: verbatim
24742 #. type: verbatim
24743 #: ../fish/guestfish-actions.pod:472
24744 #, no-wrap
24745 msgid ""
24746 " blockdev-getsize64 device\n"
24747 "\n"
24748 msgstr ""
24749
24750 # type: textblock
24751 #. type: textblock
24752 #: ../fish/guestfish-actions.pod:476
24753 msgid "See also L</blockdev-getsz>."
24754 msgstr ""
24755
24756 # type: =head2
24757 #. type: =head2
24758 #: ../fish/guestfish-actions.pod:480
24759 msgid "blockdev-getss"
24760 msgstr ""
24761
24762 # type: verbatim
24763 #. type: verbatim
24764 #: ../fish/guestfish-actions.pod:482
24765 #, no-wrap
24766 msgid ""
24767 " blockdev-getss device\n"
24768 "\n"
24769 msgstr ""
24770
24771 # type: textblock
24772 #. type: textblock
24773 #: ../fish/guestfish-actions.pod:487
24774 msgid ""
24775 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24776 msgstr ""
24777
24778 # type: =head2
24779 #. type: =head2
24780 #: ../fish/guestfish-actions.pod:492
24781 msgid "blockdev-getsz"
24782 msgstr ""
24783
24784 # type: verbatim
24785 #. type: verbatim
24786 #: ../fish/guestfish-actions.pod:494
24787 #, no-wrap
24788 msgid ""
24789 " blockdev-getsz device\n"
24790 "\n"
24791 msgstr ""
24792
24793 # type: textblock
24794 #. type: textblock
24795 #: ../fish/guestfish-actions.pod:499
24796 msgid ""
24797 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24798 "blockdev-getsize64> for the more useful I<size in bytes>."
24799 msgstr ""
24800
24801 # type: =head2
24802 #. type: =head2
24803 #: ../fish/guestfish-actions.pod:505
24804 msgid "blockdev-rereadpt"
24805 msgstr ""
24806
24807 # type: verbatim
24808 #. type: verbatim
24809 #: ../fish/guestfish-actions.pod:507
24810 #, no-wrap
24811 msgid ""
24812 " blockdev-rereadpt device\n"
24813 "\n"
24814 msgstr ""
24815
24816 # type: =head2
24817 #. type: =head2
24818 #: ../fish/guestfish-actions.pod:513
24819 msgid "blockdev-setbsz"
24820 msgstr ""
24821
24822 # type: verbatim
24823 #. type: verbatim
24824 #: ../fish/guestfish-actions.pod:515
24825 #, no-wrap
24826 msgid ""
24827 " blockdev-setbsz device blocksize\n"
24828 "\n"
24829 msgstr ""
24830
24831 # type: =head2
24832 #. type: =head2
24833 #: ../fish/guestfish-actions.pod:524
24834 msgid "blockdev-setro"
24835 msgstr ""
24836
24837 # type: verbatim
24838 #. type: verbatim
24839 #: ../fish/guestfish-actions.pod:526
24840 #, no-wrap
24841 msgid ""
24842 " blockdev-setro device\n"
24843 "\n"
24844 msgstr ""
24845
24846 # type: =head2
24847 #. type: =head2
24848 #: ../fish/guestfish-actions.pod:532
24849 msgid "blockdev-setrw"
24850 msgstr ""
24851
24852 # type: verbatim
24853 #. type: verbatim
24854 #: ../fish/guestfish-actions.pod:534
24855 #, no-wrap
24856 msgid ""
24857 " blockdev-setrw device\n"
24858 "\n"
24859 msgstr ""
24860
24861 # type: =head2
24862 #. type: =head2
24863 #: ../fish/guestfish-actions.pod:540
24864 msgid "case-sensitive-path"
24865 msgstr ""
24866
24867 # type: verbatim
24868 #. type: verbatim
24869 #: ../fish/guestfish-actions.pod:542
24870 #, no-wrap
24871 msgid ""
24872 " case-sensitive-path path\n"
24873 "\n"
24874 msgstr ""
24875
24876 # type: textblock
24877 #. type: textblock
24878 #: ../fish/guestfish-actions.pod:566
24879 msgid ""
24880 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
24881 "WINDOWS/system32\"> (the exact return value would depend on details of how "
24882 "the directories were originally created under Windows)."
24883 msgstr ""
24884
24885 # type: textblock
24886 #. type: textblock
24887 #: ../fish/guestfish-actions.pod:574
24888 msgid "See also L</realpath>."
24889 msgstr ""
24890
24891 # type: =head2
24892 #. type: =head2
24893 #: ../fish/guestfish-actions.pod:576
24894 msgid "cat"
24895 msgstr ""
24896
24897 # type: verbatim
24898 #. type: verbatim
24899 #: ../fish/guestfish-actions.pod:578
24900 #, no-wrap
24901 msgid ""
24902 " cat path\n"
24903 "\n"
24904 msgstr ""
24905
24906 # type: textblock
24907 #. type: textblock
24908 #: ../fish/guestfish-actions.pod:582
24909 msgid ""
24910 "Note that this function cannot correctly handle binary files (specifically, "
24911 "files containing C<\\0> character which is treated as end of string).  For "
24912 "those you need to use the L</read-file> or L</download> functions which have "
24913 "a more complex interface."
24914 msgstr ""
24915
24916 # type: =head2
24917 #. type: =head2
24918 #: ../fish/guestfish-actions.pod:590
24919 msgid "checksum"
24920 msgstr ""
24921
24922 # type: verbatim
24923 #. type: verbatim
24924 #: ../fish/guestfish-actions.pod:592
24925 #, no-wrap
24926 msgid ""
24927 " checksum csumtype path\n"
24928 "\n"
24929 msgstr ""
24930
24931 # type: textblock
24932 #. type: textblock
24933 #: ../fish/guestfish-actions.pod:635
24934 msgid "To get the checksum for a device, use L</checksum-device>."
24935 msgstr ""
24936
24937 # type: textblock
24938 #. type: textblock
24939 #: ../fish/guestfish-actions.pod:637
24940 msgid "To get the checksums for many files, use L</checksums-out>."
24941 msgstr ""
24942
24943 # type: =head2
24944 #. type: =head2
24945 #: ../fish/guestfish-actions.pod:639
24946 msgid "checksum-device"
24947 msgstr ""
24948
24949 # type: verbatim
24950 #. type: verbatim
24951 #: ../fish/guestfish-actions.pod:641
24952 #, no-wrap
24953 msgid ""
24954 " checksum-device csumtype device\n"
24955 "\n"
24956 msgstr ""
24957
24958 # type: textblock
24959 #. type: textblock
24960 #: ../fish/guestfish-actions.pod:643
24961 msgid ""
24962 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24963 "device named C<device>.  For the types of checksums supported see the L</"
24964 "checksum> command."
24965 msgstr ""
24966
24967 # type: =head2
24968 #. type: =head2
24969 #: ../fish/guestfish-actions.pod:647
24970 msgid "checksums-out"
24971 msgstr ""
24972
24973 # type: verbatim
24974 #. type: verbatim
24975 #: ../fish/guestfish-actions.pod:649
24976 #, no-wrap
24977 msgid ""
24978 " checksums-out csumtype directory (sumsfile|-)\n"
24979 "\n"
24980 msgstr ""
24981
24982 # type: =head2
24983 #. type: =head2
24984 #: ../fish/guestfish-actions.pod:665
24985 msgid "chmod"
24986 msgstr ""
24987
24988 # type: verbatim
24989 #. type: verbatim
24990 #: ../fish/guestfish-actions.pod:667
24991 #, no-wrap
24992 msgid ""
24993 " chmod mode path\n"
24994 "\n"
24995 msgstr ""
24996
24997 # type: =head2
24998 #. type: =head2
24999 #: ../fish/guestfish-actions.pod:678
25000 msgid "chown"
25001 msgstr ""
25002
25003 # type: verbatim
25004 #. type: verbatim
25005 #: ../fish/guestfish-actions.pod:680
25006 #, no-wrap
25007 msgid ""
25008 " chown owner group path\n"
25009 "\n"
25010 msgstr ""
25011
25012 # type: =head2
25013 #. type: =head2
25014 #: ../fish/guestfish-actions.pod:688
25015 msgid "command"
25016 msgstr ""
25017
25018 # type: verbatim
25019 #. type: verbatim
25020 #: ../fish/guestfish-actions.pod:690
25021 #, no-wrap
25022 msgid ""
25023 " command 'arguments ...'\n"
25024 "\n"
25025 msgstr ""
25026
25027 # type: textblock
25028 #. type: textblock
25029 #: ../fish/guestfish-actions.pod:697
25030 msgid ""
25031 "The single parameter is an argv-style list of arguments.  The first element "
25032 "is the name of the program to run.  Subsequent elements are parameters.  The "
25033 "list must be non-empty (ie. must contain a program name).  Note that the "
25034 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25035 msgstr ""
25036
25037 # type: =head2
25038 #. type: =head2
25039 #: ../fish/guestfish-actions.pod:725
25040 msgid "command-lines"
25041 msgstr ""
25042
25043 # type: verbatim
25044 #. type: verbatim
25045 #: ../fish/guestfish-actions.pod:727
25046 #, no-wrap
25047 msgid ""
25048 " command-lines 'arguments ...'\n"
25049 "\n"
25050 msgstr ""
25051
25052 # type: textblock
25053 #. type: textblock
25054 #: ../fish/guestfish-actions.pod:729
25055 msgid ""
25056 "This is the same as L</command>, but splits the result into a list of lines."
25057 msgstr ""
25058
25059 # type: textblock
25060 #. type: textblock
25061 #: ../fish/guestfish-actions.pod:732
25062 msgid "See also: L</sh-lines>"
25063 msgstr ""
25064
25065 # type: =head2
25066 #. type: =head2
25067 #: ../fish/guestfish-actions.pod:737
25068 msgid "config"
25069 msgstr ""
25070
25071 # type: verbatim
25072 #. type: verbatim
25073 #: ../fish/guestfish-actions.pod:739
25074 #, no-wrap
25075 msgid ""
25076 " config qemuparam qemuvalue\n"
25077 "\n"
25078 msgstr ""
25079
25080 # type: =head2
25081 #. type: =head2
25082 #: ../fish/guestfish-actions.pod:750
25083 msgid "copy-size"
25084 msgstr ""
25085
25086 # type: verbatim
25087 #. type: verbatim
25088 #: ../fish/guestfish-actions.pod:752
25089 #, no-wrap
25090 msgid ""
25091 " copy-size src dest size\n"
25092 "\n"
25093 msgstr ""
25094
25095 # type: =head2
25096 #. type: =head2
25097 #: ../fish/guestfish-actions.pod:760
25098 msgid "cp"
25099 msgstr ""
25100
25101 # type: verbatim
25102 #. type: verbatim
25103 #: ../fish/guestfish-actions.pod:762
25104 #, no-wrap
25105 msgid ""
25106 " cp src dest\n"
25107 "\n"
25108 msgstr ""
25109
25110 # type: =head2
25111 #. type: =head2
25112 #: ../fish/guestfish-actions.pod:767
25113 msgid "cp-a"
25114 msgstr ""
25115
25116 # type: verbatim
25117 #. type: verbatim
25118 #: ../fish/guestfish-actions.pod:769
25119 #, no-wrap
25120 msgid ""
25121 " cp-a src dest\n"
25122 "\n"
25123 msgstr ""
25124
25125 # type: =head2
25126 #. type: =head2
25127 #: ../fish/guestfish-actions.pod:774
25128 msgid "dd"
25129 msgstr ""
25130
25131 # type: verbatim
25132 #. type: verbatim
25133 #: ../fish/guestfish-actions.pod:776
25134 #, no-wrap
25135 msgid ""
25136 " dd src dest\n"
25137 "\n"
25138 msgstr ""
25139
25140 # type: textblock
25141 #. type: textblock
25142 #: ../fish/guestfish-actions.pod:783
25143 msgid ""
25144 "If the destination is a device, it must be as large or larger than the "
25145 "source file or device, otherwise the copy will fail.  This command cannot do "
25146 "partial copies (see L</copy-size>)."
25147 msgstr ""
25148
25149 # type: =head2
25150 #. type: =head2
25151 #: ../fish/guestfish-actions.pod:787
25152 msgid "df"
25153 msgstr ""
25154
25155 # type: verbatim
25156 #. type: verbatim
25157 #: ../fish/guestfish-actions.pod:789
25158 #, no-wrap
25159 msgid ""
25160 " df\n"
25161 "\n"
25162 msgstr ""
25163
25164 # type: textblock
25165 #. type: textblock
25166 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
25167 msgid ""
25168 "This command is mostly useful for interactive sessions.  It is I<not> "
25169 "intended that you try to parse the output string.  Use L</statvfs> from "
25170 "programs."
25171 msgstr ""
25172
25173 # type: =head2
25174 #. type: =head2
25175 #: ../fish/guestfish-actions.pod:797
25176 msgid "df-h"
25177 msgstr ""
25178
25179 # type: verbatim
25180 #. type: verbatim
25181 #: ../fish/guestfish-actions.pod:799
25182 #, no-wrap
25183 msgid ""
25184 " df-h\n"
25185 "\n"
25186 msgstr ""
25187
25188 # type: =head2
25189 #. type: =head2
25190 #: ../fish/guestfish-actions.pod:808
25191 msgid "dmesg"
25192 msgstr ""
25193
25194 # type: verbatim
25195 #. type: verbatim
25196 #: ../fish/guestfish-actions.pod:810
25197 #, no-wrap
25198 msgid ""
25199 " dmesg\n"
25200 "\n"
25201 msgstr ""
25202
25203 # type: textblock
25204 #. type: textblock
25205 #: ../fish/guestfish-actions.pod:816
25206 msgid ""
25207 "Another way to get the same information is to enable verbose messages with "
25208 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25209 "before running the program."
25210 msgstr ""
25211
25212 # type: =head2
25213 #. type: =head2
25214 #: ../fish/guestfish-actions.pod:821
25215 msgid "download"
25216 msgstr ""
25217
25218 # type: verbatim
25219 #. type: verbatim
25220 #: ../fish/guestfish-actions.pod:823
25221 #, no-wrap
25222 msgid ""
25223 " download remotefilename (filename|-)\n"
25224 "\n"
25225 msgstr ""
25226
25227 # type: textblock
25228 #. type: textblock
25229 #: ../fish/guestfish-actions.pod:830
25230 msgid "See also L</upload>, L</cat>."
25231 msgstr ""
25232
25233 # type: =head2
25234 #. type: =head2
25235 #: ../fish/guestfish-actions.pod:834
25236 msgid "download-offset"
25237 msgstr ""
25238
25239 # type: verbatim
25240 #. type: verbatim
25241 #: ../fish/guestfish-actions.pod:836
25242 #, no-wrap
25243 msgid ""
25244 " download-offset remotefilename (filename|-) offset size\n"
25245 "\n"
25246 msgstr ""
25247
25248 # type: textblock
25249 #. type: textblock
25250 #: ../fish/guestfish-actions.pod:844
25251 msgid ""
25252 "Note that there is no limit on the amount of data that can be downloaded "
25253 "with this call, unlike with L</pread>, and this call always reads the full "
25254 "amount unless an error occurs."
25255 msgstr ""
25256
25257 # type: textblock
25258 #. type: textblock
25259 #: ../fish/guestfish-actions.pod:849
25260 msgid "See also L</download>, L</pread>."
25261 msgstr ""
25262
25263 # type: =head2
25264 #. type: =head2
25265 #: ../fish/guestfish-actions.pod:853
25266 msgid "drop-caches"
25267 msgstr ""
25268
25269 # type: verbatim
25270 #. type: verbatim
25271 #: ../fish/guestfish-actions.pod:855
25272 #, no-wrap
25273 msgid ""
25274 " drop-caches whattodrop\n"
25275 "\n"
25276 msgstr ""
25277
25278 # type: =head2
25279 #. type: =head2
25280 #: ../fish/guestfish-actions.pod:867
25281 msgid "du"
25282 msgstr ""
25283
25284 # type: verbatim
25285 #. type: verbatim
25286 #: ../fish/guestfish-actions.pod:869
25287 #, no-wrap
25288 msgid ""
25289 " du path\n"
25290 "\n"
25291 msgstr ""
25292
25293 # type: =head2
25294 #. type: =head2
25295 #: ../fish/guestfish-actions.pod:881
25296 msgid "e2fsck-f"
25297 msgstr ""
25298
25299 # type: verbatim
25300 #. type: verbatim
25301 #: ../fish/guestfish-actions.pod:883
25302 #, no-wrap
25303 msgid ""
25304 " e2fsck-f device\n"
25305 "\n"
25306 msgstr ""
25307
25308 # type: textblock
25309 #. type: textblock
25310 #: ../fish/guestfish-actions.pod:889
25311 msgid ""
25312 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25313 "should use L</fsck>."
25314 msgstr ""
25315
25316 # type: =head2
25317 #. type: =head2
25318 #: ../fish/guestfish-actions.pod:892
25319 msgid "echo-daemon"
25320 msgstr ""
25321
25322 # type: verbatim
25323 #. type: verbatim
25324 #: ../fish/guestfish-actions.pod:894
25325 #, no-wrap
25326 msgid ""
25327 " echo-daemon 'words ...'\n"
25328 "\n"
25329 msgstr ""
25330
25331 # type: textblock
25332 #. type: textblock
25333 #: ../fish/guestfish-actions.pod:901
25334 msgid "See also L</ping-daemon>."
25335 msgstr ""
25336
25337 # type: =head2
25338 #. type: =head2
25339 #: ../fish/guestfish-actions.pod:903
25340 msgid "egrep"
25341 msgstr ""
25342
25343 # type: verbatim
25344 #. type: verbatim
25345 #: ../fish/guestfish-actions.pod:905
25346 #, no-wrap
25347 msgid ""
25348 " egrep regex path\n"
25349 "\n"
25350 msgstr ""
25351
25352 # type: =head2
25353 #. type: =head2
25354 #: ../fish/guestfish-actions.pod:913
25355 msgid "egrepi"
25356 msgstr ""
25357
25358 # type: verbatim
25359 #. type: verbatim
25360 #: ../fish/guestfish-actions.pod:915
25361 #, no-wrap
25362 msgid ""
25363 " egrepi regex path\n"
25364 "\n"
25365 msgstr ""
25366
25367 # type: =head2
25368 #. type: =head2
25369 #: ../fish/guestfish-actions.pod:923
25370 msgid "equal"
25371 msgstr ""
25372
25373 # type: verbatim
25374 #. type: verbatim
25375 #: ../fish/guestfish-actions.pod:925
25376 #, no-wrap
25377 msgid ""
25378 " equal file1 file2\n"
25379 "\n"
25380 msgstr ""
25381
25382 # type: =head2
25383 #. type: =head2
25384 #: ../fish/guestfish-actions.pod:932
25385 msgid "exists"
25386 msgstr ""
25387
25388 # type: verbatim
25389 #. type: verbatim
25390 #: ../fish/guestfish-actions.pod:934
25391 #, no-wrap
25392 msgid ""
25393 " exists path\n"
25394 "\n"
25395 msgstr ""
25396
25397 # type: textblock
25398 #. type: textblock
25399 #: ../fish/guestfish-actions.pod:939
25400 msgid "See also L</is-file>, L</is-dir>, L</stat>."
25401 msgstr ""
25402
25403 # type: =head2
25404 #. type: =head2
25405 #: ../fish/guestfish-actions.pod:941
25406 msgid "fallocate"
25407 msgstr ""
25408
25409 # type: verbatim
25410 #. type: verbatim
25411 #: ../fish/guestfish-actions.pod:943
25412 #, no-wrap
25413 msgid ""
25414 " fallocate path len\n"
25415 "\n"
25416 msgstr ""
25417
25418 # type: =head2
25419 #. type: =head2
25420 #: ../fish/guestfish-actions.pod:960
25421 msgid "fallocate64"
25422 msgstr ""
25423
25424 # type: verbatim
25425 #. type: verbatim
25426 #: ../fish/guestfish-actions.pod:962
25427 #, no-wrap
25428 msgid ""
25429 " fallocate64 path len\n"
25430 "\n"
25431 msgstr ""
25432
25433 # type: textblock
25434 #. type: textblock
25435 #: ../fish/guestfish-actions.pod:968
25436 msgid ""
25437 "Note that this call allocates disk blocks for the file.  To create a sparse "
25438 "file use L</truncate-size> instead."
25439 msgstr ""
25440
25441 # type: textblock
25442 #. type: textblock
25443 #: ../fish/guestfish-actions.pod:971
25444 msgid ""
25445 "The deprecated call L</fallocate> does the same, but owing to an oversight "
25446 "it only allowed 30 bit lengths to be specified, effectively limiting the "
25447 "maximum size of files created through that call to 1GB."
25448 msgstr ""
25449
25450 # type: =head2
25451 #. type: =head2
25452 #: ../fish/guestfish-actions.pod:980
25453 msgid "fgrep"
25454 msgstr ""
25455
25456 # type: verbatim
25457 #. type: verbatim
25458 #: ../fish/guestfish-actions.pod:982
25459 #, no-wrap
25460 msgid ""
25461 " fgrep pattern path\n"
25462 "\n"
25463 msgstr ""
25464
25465 # type: =head2
25466 #. type: =head2
25467 #: ../fish/guestfish-actions.pod:990
25468 msgid "fgrepi"
25469 msgstr ""
25470
25471 # type: verbatim
25472 #. type: verbatim
25473 #: ../fish/guestfish-actions.pod:992
25474 #, no-wrap
25475 msgid ""
25476 " fgrepi pattern path\n"
25477 "\n"
25478 msgstr ""
25479
25480 # type: =head2
25481 #. type: =head2
25482 #: ../fish/guestfish-actions.pod:1000
25483 msgid "file"
25484 msgstr ""
25485
25486 # type: verbatim
25487 #. type: verbatim
25488 #: ../fish/guestfish-actions.pod:1002
25489 #, no-wrap
25490 msgid ""
25491 " file path\n"
25492 "\n"
25493 msgstr ""
25494
25495 # type: textblock
25496 #. type: textblock
25497 #: ../fish/guestfish-actions.pod:1014
25498 msgid ""
25499 "This command can also be used on C</dev/> devices (and partitions, LV "
25500 "names).  You can for example use this to determine if a device contains a "
25501 "filesystem, although it's usually better to use L</vfs-type>."
25502 msgstr ""
25503
25504 # type: =head2
25505 #. type: =head2
25506 #: ../fish/guestfish-actions.pod:1024
25507 msgid "file-architecture"
25508 msgstr ""
25509
25510 # type: verbatim
25511 #. type: verbatim
25512 #: ../fish/guestfish-actions.pod:1026
25513 #, no-wrap
25514 msgid ""
25515 " file-architecture filename\n"
25516 "\n"
25517 msgstr ""
25518
25519 # type: =head2
25520 #. type: =head2
25521 #: ../fish/guestfish-actions.pod:1129
25522 msgid "filesize"
25523 msgstr ""
25524
25525 # type: verbatim
25526 #. type: verbatim
25527 #: ../fish/guestfish-actions.pod:1131
25528 #, no-wrap
25529 msgid ""
25530 " filesize file\n"
25531 "\n"
25532 msgstr ""
25533
25534 # type: textblock
25535 #. type: textblock
25536 #: ../fish/guestfish-actions.pod:1135
25537 msgid ""
25538 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
25539 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
25540 msgstr ""
25541
25542 # type: =head2
25543 #. type: =head2
25544 #: ../fish/guestfish-actions.pod:1139
25545 msgid "fill"
25546 msgstr ""
25547
25548 # type: verbatim
25549 #. type: verbatim
25550 #: ../fish/guestfish-actions.pod:1141
25551 #, no-wrap
25552 msgid ""
25553 " fill c len path\n"
25554 "\n"
25555 msgstr ""
25556
25557 # type: textblock
25558 #. type: textblock
25559 #: ../fish/guestfish-actions.pod:1147
25560 msgid ""
25561 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25562 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
25563 "L</fill-pattern>."
25564 msgstr ""
25565
25566 # type: =head2
25567 #. type: =head2
25568 #: ../fish/guestfish-actions.pod:1152
25569 msgid "fill-pattern"
25570 msgstr ""
25571
25572 # type: verbatim
25573 #. type: verbatim
25574 #: ../fish/guestfish-actions.pod:1154
25575 #, no-wrap
25576 msgid ""
25577 " fill-pattern pattern len path\n"
25578 "\n"
25579 msgstr ""
25580
25581 # type: textblock
25582 #. type: textblock
25583 #: ../fish/guestfish-actions.pod:1156
25584 msgid ""
25585 "This function is like L</fill> except that it creates a new file of length "
25586 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
25587 "is truncated if necessary to ensure the length of the file is exactly C<len> "
25588 "bytes."
25589 msgstr ""
25590
25591 # type: =head2
25592 #. type: =head2
25593 #: ../fish/guestfish-actions.pod:1161
25594 msgid "find"
25595 msgstr ""
25596
25597 # type: verbatim
25598 #. type: verbatim
25599 #: ../fish/guestfish-actions.pod:1163
25600 #, no-wrap
25601 msgid ""
25602 " find directory\n"
25603 "\n"
25604 msgstr ""
25605
25606 # type: textblock
25607 #. type: textblock
25608 #: ../fish/guestfish-actions.pod:1177
25609 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
25610 msgstr ""
25611
25612 # type: textblock
25613 #. type: textblock
25614 #: ../fish/guestfish-actions.pod:1190
25615 msgid "See also L</find0>."
25616 msgstr ""
25617
25618 # type: =head2
25619 #. type: =head2
25620 #: ../fish/guestfish-actions.pod:1195
25621 msgid "find0"
25622 msgstr ""
25623
25624 # type: verbatim
25625 #. type: verbatim
25626 #: ../fish/guestfish-actions.pod:1197
25627 #, no-wrap
25628 msgid ""
25629 " find0 directory (files|-)\n"
25630 "\n"
25631 msgstr ""
25632
25633 # type: textblock
25634 #. type: textblock
25635 #: ../fish/guestfish-actions.pod:1203
25636 msgid ""
25637 "This command works the same way as L</find> with the following exceptions:"
25638 msgstr ""
25639
25640 # type: =head2
25641 #. type: =head2
25642 #: ../fish/guestfish-actions.pod:1230
25643 msgid "findfs-label"
25644 msgstr ""
25645
25646 # type: verbatim
25647 #. type: verbatim
25648 #: ../fish/guestfish-actions.pod:1232
25649 #, no-wrap
25650 msgid ""
25651 " findfs-label label\n"
25652 "\n"
25653 msgstr ""
25654
25655 # type: textblock
25656 #. type: textblock
25657 #: ../fish/guestfish-actions.pod:1238
25658 msgid "To find the label of a filesystem, use L</vfs-label>."
25659 msgstr ""
25660
25661 # type: =head2
25662 #. type: =head2
25663 #: ../fish/guestfish-actions.pod:1240
25664 msgid "findfs-uuid"
25665 msgstr ""
25666
25667 # type: verbatim
25668 #. type: verbatim
25669 #: ../fish/guestfish-actions.pod:1242
25670 #, no-wrap
25671 msgid ""
25672 " findfs-uuid uuid\n"
25673 "\n"
25674 msgstr ""
25675
25676 # type: textblock
25677 #. type: textblock
25678 #: ../fish/guestfish-actions.pod:1248
25679 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
25680 msgstr ""
25681
25682 # type: =head2
25683 #. type: =head2
25684 #: ../fish/guestfish-actions.pod:1250
25685 msgid "fsck"
25686 msgstr ""
25687
25688 # type: verbatim
25689 #. type: verbatim
25690 #: ../fish/guestfish-actions.pod:1252
25691 #, no-wrap
25692 msgid ""
25693 " fsck fstype device\n"
25694 "\n"
25695 msgstr ""
25696
25697 # type: =head2
25698 #. type: =head2
25699 #: ../fish/guestfish-actions.pod:1282
25700 msgid "get-append"
25701 msgstr ""
25702
25703 # type: verbatim
25704 #. type: verbatim
25705 #: ../fish/guestfish-actions.pod:1284
25706 #, no-wrap
25707 msgid ""
25708 " get-append\n"
25709 "\n"
25710 msgstr ""
25711
25712 #. type: =head2
25713 #: ../fish/guestfish-actions.pod:1291
25714 msgid "get-attach-method"
25715 msgstr ""
25716
25717 #. type: verbatim
25718 #: ../fish/guestfish-actions.pod:1293
25719 #, no-wrap
25720 msgid ""
25721 " get-attach-method\n"
25722 "\n"
25723 msgstr ""
25724
25725 #. type: textblock
25726 #: ../fish/guestfish-actions.pod:1295
25727 msgid "Return the current attach method.  See L</set-attach-method>."
25728 msgstr ""
25729
25730 # type: =head2
25731 #. type: =head2
25732 #: ../fish/guestfish-actions.pod:1297
25733 msgid "get-autosync"
25734 msgstr ""
25735
25736 # type: verbatim
25737 #. type: verbatim
25738 #: ../fish/guestfish-actions.pod:1299
25739 #, no-wrap
25740 msgid ""
25741 " get-autosync\n"
25742 "\n"
25743 msgstr ""
25744
25745 # type: =head2
25746 #. type: =head2
25747 #: ../fish/guestfish-actions.pod:1303
25748 msgid "get-direct"
25749 msgstr ""
25750
25751 # type: verbatim
25752 #. type: verbatim
25753 #: ../fish/guestfish-actions.pod:1305
25754 #, no-wrap
25755 msgid ""
25756 " get-direct\n"
25757 "\n"
25758 msgstr ""
25759
25760 # type: =head2
25761 #. type: =head2
25762 #: ../fish/guestfish-actions.pod:1309
25763 msgid "get-e2label"
25764 msgstr ""
25765
25766 # type: verbatim
25767 #. type: verbatim
25768 #: ../fish/guestfish-actions.pod:1311
25769 #, no-wrap
25770 msgid ""
25771 " get-e2label device\n"
25772 "\n"
25773 msgstr ""
25774
25775 # type: =head2
25776 #. type: =head2
25777 #: ../fish/guestfish-actions.pod:1323
25778 msgid "get-e2uuid"
25779 msgstr ""
25780
25781 # type: verbatim
25782 #. type: verbatim
25783 #: ../fish/guestfish-actions.pod:1325
25784 #, no-wrap
25785 msgid ""
25786 " get-e2uuid device\n"
25787 "\n"
25788 msgstr ""
25789
25790 # type: =head2
25791 #. type: =head2
25792 #: ../fish/guestfish-actions.pod:1337
25793 msgid "get-memsize"
25794 msgstr ""
25795
25796 # type: verbatim
25797 #. type: verbatim
25798 #: ../fish/guestfish-actions.pod:1339
25799 #, no-wrap
25800 msgid ""
25801 " get-memsize\n"
25802 "\n"
25803 msgstr ""
25804
25805 # type: textblock
25806 #. type: textblock
25807 #: ../fish/guestfish-actions.pod:1344
25808 msgid ""
25809 "If L</set-memsize> was not called on this handle, and if "
25810 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25811 "value for memsize."
25812 msgstr ""
25813
25814 # type: =head2
25815 #. type: =head2
25816 #: ../fish/guestfish-actions.pod:1351
25817 msgid "get-network"
25818 msgstr ""
25819
25820 # type: verbatim
25821 #. type: verbatim
25822 #: ../fish/guestfish-actions.pod:1353
25823 #, no-wrap
25824 msgid ""
25825 " get-network\n"
25826 "\n"
25827 msgstr ""
25828
25829 # type: =head2
25830 #. type: =head2
25831 #: ../fish/guestfish-actions.pod:1357
25832 msgid "get-path"
25833 msgstr ""
25834
25835 # type: verbatim
25836 #. type: verbatim
25837 #: ../fish/guestfish-actions.pod:1359
25838 #, no-wrap
25839 msgid ""
25840 " get-path\n"
25841 "\n"
25842 msgstr ""
25843
25844 # type: =head2
25845 #. type: =head2
25846 #: ../fish/guestfish-actions.pod:1366
25847 msgid "get-pid"
25848 msgstr ""
25849
25850 # type: =head2
25851 #. type: =head2
25852 #: ../fish/guestfish-actions.pod:1368
25853 msgid "pid"
25854 msgstr ""
25855
25856 # type: verbatim
25857 #. type: verbatim
25858 #: ../fish/guestfish-actions.pod:1370
25859 #, no-wrap
25860 msgid ""
25861 " get-pid\n"
25862 "\n"
25863 msgstr ""
25864
25865 # type: =head2
25866 #. type: =head2
25867 #: ../fish/guestfish-actions.pod:1377
25868 msgid "get-qemu"
25869 msgstr ""
25870
25871 # type: verbatim
25872 #. type: verbatim
25873 #: ../fish/guestfish-actions.pod:1379
25874 #, no-wrap
25875 msgid ""
25876 " get-qemu\n"
25877 "\n"
25878 msgstr ""
25879
25880 # type: =head2
25881 #. type: =head2
25882 #: ../fish/guestfish-actions.pod:1386
25883 msgid "get-recovery-proc"
25884 msgstr ""
25885
25886 # type: verbatim
25887 #. type: verbatim
25888 #: ../fish/guestfish-actions.pod:1388
25889 #, no-wrap
25890 msgid ""
25891 " get-recovery-proc\n"
25892 "\n"
25893 msgstr ""
25894
25895 # type: =head2
25896 #. type: =head2
25897 #: ../fish/guestfish-actions.pod:1392
25898 msgid "get-selinux"
25899 msgstr ""
25900
25901 # type: verbatim
25902 #. type: verbatim
25903 #: ../fish/guestfish-actions.pod:1394
25904 #, no-wrap
25905 msgid ""
25906 " get-selinux\n"
25907 "\n"
25908 msgstr ""
25909
25910 # type: textblock
25911 #. type: textblock
25912 #: ../fish/guestfish-actions.pod:1396
25913 msgid ""
25914 "This returns the current setting of the selinux flag which is passed to the "
25915 "appliance at boot time.  See L</set-selinux>."
25916 msgstr ""
25917
25918 # type: =head2
25919 #. type: =head2
25920 #: ../fish/guestfish-actions.pod:1402
25921 msgid "get-state"
25922 msgstr ""
25923
25924 # type: verbatim
25925 #. type: verbatim
25926 #: ../fish/guestfish-actions.pod:1404
25927 #, no-wrap
25928 msgid ""
25929 " get-state\n"
25930 "\n"
25931 msgstr ""
25932
25933 # type: =head2
25934 #. type: =head2
25935 #: ../fish/guestfish-actions.pod:1411
25936 msgid "get-trace"
25937 msgstr ""
25938
25939 # type: verbatim
25940 #. type: verbatim
25941 #: ../fish/guestfish-actions.pod:1413
25942 #, no-wrap
25943 msgid ""
25944 " get-trace\n"
25945 "\n"
25946 msgstr ""
25947
25948 # type: =head2
25949 #. type: =head2
25950 #: ../fish/guestfish-actions.pod:1417
25951 msgid "get-umask"
25952 msgstr ""
25953
25954 # type: verbatim
25955 #. type: verbatim
25956 #: ../fish/guestfish-actions.pod:1419
25957 #, no-wrap
25958 msgid ""
25959 " get-umask\n"
25960 "\n"
25961 msgstr ""
25962
25963 # type: textblock
25964 #. type: textblock
25965 #: ../fish/guestfish-actions.pod:1421
25966 msgid ""
25967 "Return the current umask.  By default the umask is C<022> unless it has been "
25968 "set by calling L</umask>."
25969 msgstr ""
25970
25971 # type: =head2
25972 #. type: =head2
25973 #: ../fish/guestfish-actions.pod:1424
25974 msgid "get-verbose"
25975 msgstr ""
25976
25977 # type: verbatim
25978 #. type: verbatim
25979 #: ../fish/guestfish-actions.pod:1426
25980 #, no-wrap
25981 msgid ""
25982 " get-verbose\n"
25983 "\n"
25984 msgstr ""
25985
25986 # type: =head2
25987 #. type: =head2
25988 #: ../fish/guestfish-actions.pod:1430
25989 msgid "getcon"
25990 msgstr ""
25991
25992 # type: verbatim
25993 #. type: verbatim
25994 #: ../fish/guestfish-actions.pod:1432
25995 #, no-wrap
25996 msgid ""
25997 " getcon\n"
25998 "\n"
25999 msgstr ""
26000
26001 # type: textblock
26002 #. type: textblock
26003 #: ../fish/guestfish-actions.pod:1436
26004 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26005 msgstr ""
26006
26007 # type: =head2
26008 #. type: =head2
26009 #: ../fish/guestfish-actions.pod:1439
26010 msgid "getxattr"
26011 msgstr ""
26012
26013 # type: verbatim
26014 #. type: verbatim
26015 #: ../fish/guestfish-actions.pod:1441
26016 #, no-wrap
26017 msgid ""
26018 " getxattr path name\n"
26019 "\n"
26020 msgstr ""
26021
26022 # type: textblock
26023 #. type: textblock
26024 #: ../fish/guestfish-actions.pod:1443
26025 msgid ""
26026 "Get a single extended attribute from file C<path> named C<name>.  This call "
26027 "follows symlinks.  If you want to lookup an extended attribute for the "
26028 "symlink itself, use L</lgetxattr>."
26029 msgstr ""
26030
26031 # type: textblock
26032 #. type: textblock
26033 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2387
26034 msgid ""
26035 "Normally it is better to get all extended attributes from a file in one go "
26036 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26037 "buggy and do not provide a way to list out attributes.  For these "
26038 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26039 "attributes you want in advance and call this function."
26040 msgstr ""
26041
26042 # type: textblock
26043 #. type: textblock
26044 #: ../fish/guestfish-actions.pod:1457
26045 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26046 msgstr ""
26047
26048 # type: =head2
26049 #. type: =head2
26050 #: ../fish/guestfish-actions.pod:1459
26051 msgid "getxattrs"
26052 msgstr ""
26053
26054 # type: verbatim
26055 #. type: verbatim
26056 #: ../fish/guestfish-actions.pod:1461
26057 #, no-wrap
26058 msgid ""
26059 " getxattrs path\n"
26060 "\n"
26061 msgstr ""
26062
26063 # type: textblock
26064 #. type: textblock
26065 #: ../fish/guestfish-actions.pod:1469
26066 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26067 msgstr ""
26068
26069 # type: =head2
26070 #. type: =head2
26071 #: ../fish/guestfish-actions.pod:1471
26072 msgid "glob-expand"
26073 msgstr ""
26074
26075 # type: verbatim
26076 #. type: verbatim
26077 #: ../fish/guestfish-actions.pod:1473
26078 #, no-wrap
26079 msgid ""
26080 " glob-expand pattern\n"
26081 "\n"
26082 msgstr ""
26083
26084 # type: =head2
26085 #. type: =head2
26086 #: ../fish/guestfish-actions.pod:1486
26087 msgid "grep"
26088 msgstr ""
26089
26090 # type: verbatim
26091 #. type: verbatim
26092 #: ../fish/guestfish-actions.pod:1488
26093 #, no-wrap
26094 msgid ""
26095 " grep regex path\n"
26096 "\n"
26097 msgstr ""
26098
26099 # type: =head2
26100 #. type: =head2
26101 #: ../fish/guestfish-actions.pod:1496
26102 msgid "grepi"
26103 msgstr ""
26104
26105 # type: verbatim
26106 #. type: verbatim
26107 #: ../fish/guestfish-actions.pod:1498
26108 #, no-wrap
26109 msgid ""
26110 " grepi regex path\n"
26111 "\n"
26112 msgstr ""
26113
26114 # type: =head2
26115 #. type: =head2
26116 #: ../fish/guestfish-actions.pod:1506
26117 msgid "grub-install"
26118 msgstr ""
26119
26120 # type: verbatim
26121 #. type: verbatim
26122 #: ../fish/guestfish-actions.pod:1508
26123 #, no-wrap
26124 msgid ""
26125 " grub-install root device\n"
26126 "\n"
26127 msgstr ""
26128
26129 # type: =head2
26130 #. type: =head2
26131 #: ../fish/guestfish-actions.pod:1524
26132 msgid "head"
26133 msgstr ""
26134
26135 # type: verbatim
26136 #. type: verbatim
26137 #: ../fish/guestfish-actions.pod:1526
26138 #, no-wrap
26139 msgid ""
26140 " head path\n"
26141 "\n"
26142 msgstr ""
26143
26144 # type: =head2
26145 #. type: =head2
26146 #: ../fish/guestfish-actions.pod:1534
26147 msgid "head-n"
26148 msgstr ""
26149
26150 # type: verbatim
26151 #. type: verbatim
26152 #: ../fish/guestfish-actions.pod:1536
26153 #, no-wrap
26154 msgid ""
26155 " head-n nrlines path\n"
26156 "\n"
26157 msgstr ""
26158
26159 # type: =head2
26160 #. type: =head2
26161 #: ../fish/guestfish-actions.pod:1549
26162 msgid "hexdump"
26163 msgstr ""
26164
26165 # type: verbatim
26166 #. type: verbatim
26167 #: ../fish/guestfish-actions.pod:1551
26168 #, no-wrap
26169 msgid ""
26170 " hexdump path\n"
26171 "\n"
26172 msgstr ""
26173
26174 # type: =head2
26175 #. type: =head2
26176 #: ../fish/guestfish-actions.pod:1559
26177 msgid "initrd-cat"
26178 msgstr ""
26179
26180 # type: verbatim
26181 #. type: verbatim
26182 #: ../fish/guestfish-actions.pod:1561
26183 #, no-wrap
26184 msgid ""
26185 " initrd-cat initrdpath filename\n"
26186 "\n"
26187 msgstr ""
26188
26189 # type: textblock
26190 #. type: textblock
26191 #: ../fish/guestfish-actions.pod:1573
26192 msgid "See also L</initrd-list>."
26193 msgstr ""
26194
26195 # type: =head2
26196 #. type: =head2
26197 #: ../fish/guestfish-actions.pod:1578
26198 msgid "initrd-list"
26199 msgstr ""
26200
26201 # type: verbatim
26202 #. type: verbatim
26203 #: ../fish/guestfish-actions.pod:1580
26204 #, no-wrap
26205 msgid ""
26206 " initrd-list path\n"
26207 "\n"
26208 msgstr ""
26209
26210 # type: =head2
26211 #. type: =head2
26212 #: ../fish/guestfish-actions.pod:1592
26213 msgid "inotify-add-watch"
26214 msgstr ""
26215
26216 # type: verbatim
26217 #. type: verbatim
26218 #: ../fish/guestfish-actions.pod:1594
26219 #, no-wrap
26220 msgid ""
26221 " inotify-add-watch path mask\n"
26222 "\n"
26223 msgstr ""
26224
26225 # type: =head2
26226 #. type: =head2
26227 #: ../fish/guestfish-actions.pod:1606
26228 msgid "inotify-close"
26229 msgstr ""
26230
26231 # type: verbatim
26232 #. type: verbatim
26233 #: ../fish/guestfish-actions.pod:1608
26234 #, no-wrap
26235 msgid ""
26236 " inotify-close\n"
26237 "\n"
26238 msgstr ""
26239
26240 # type: =head2
26241 #. type: =head2
26242 #: ../fish/guestfish-actions.pod:1614
26243 msgid "inotify-files"
26244 msgstr ""
26245
26246 # type: verbatim
26247 #. type: verbatim
26248 #: ../fish/guestfish-actions.pod:1616
26249 #, no-wrap
26250 msgid ""
26251 " inotify-files\n"
26252 "\n"
26253 msgstr ""
26254
26255 # type: textblock
26256 #. type: textblock
26257 #: ../fish/guestfish-actions.pod:1618
26258 msgid ""
26259 "This function is a helpful wrapper around L</inotify-read> which just "
26260 "returns a list of pathnames of objects that were touched.  The returned "
26261 "pathnames are sorted and deduplicated."
26262 msgstr ""
26263
26264 # type: =head2
26265 #. type: =head2
26266 #: ../fish/guestfish-actions.pod:1622
26267 msgid "inotify-init"
26268 msgstr ""
26269
26270 # type: verbatim
26271 #. type: verbatim
26272 #: ../fish/guestfish-actions.pod:1624
26273 #, no-wrap
26274 msgid ""
26275 " inotify-init maxevents\n"
26276 "\n"
26277 msgstr ""
26278
26279 # type: textblock
26280 #. type: textblock
26281 #: ../fish/guestfish-actions.pod:1630
26282 msgid ""
26283 "C<maxevents> is the maximum number of events which will be queued up between "
26284 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26285 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26286 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26287 "but records the fact that it threw them away by setting a flag "
26288 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26289 msgstr ""
26290
26291 # type: textblock
26292 #. type: textblock
26293 #: ../fish/guestfish-actions.pod:1640
26294 msgid ""
26295 "Before any events are generated, you have to add some watches to the "
26296 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26297 "L</inotify-watch-all>."
26298 msgstr ""
26299
26300 # type: textblock
26301 #. type: textblock
26302 #: ../fish/guestfish-actions.pod:1646
26303 msgid ""
26304 "Queued up events should be read periodically by calling L</inotify-read> (or "
26305 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26306 "If you don't read the events out often enough then you risk the internal "
26307 "queue overflowing."
26308 msgstr ""
26309
26310 # type: textblock
26311 #. type: textblock
26312 #: ../fish/guestfish-actions.pod:1653
26313 msgid ""
26314 "The handle should be closed after use by calling L</inotify-close>.  This "
26315 "also removes any watches automatically."
26316 msgstr ""
26317
26318 # type: =head2
26319 #. type: =head2
26320 #: ../fish/guestfish-actions.pod:1662
26321 msgid "inotify-read"
26322 msgstr ""
26323
26324 # type: verbatim
26325 #. type: verbatim
26326 #: ../fish/guestfish-actions.pod:1664
26327 #, no-wrap
26328 msgid ""
26329 " inotify-read\n"
26330 "\n"
26331 msgstr ""
26332
26333 # type: =head2
26334 #. type: =head2
26335 #: ../fish/guestfish-actions.pod:1677
26336 msgid "inotify-rm-watch"
26337 msgstr ""
26338
26339 # type: verbatim
26340 #. type: verbatim
26341 #: ../fish/guestfish-actions.pod:1679
26342 #, no-wrap
26343 msgid ""
26344 " inotify-rm-watch wd\n"
26345 "\n"
26346 msgstr ""
26347
26348 # type: textblock
26349 #. type: textblock
26350 #: ../fish/guestfish-actions.pod:1681
26351 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
26352 msgstr ""
26353
26354 # type: =head2
26355 #. type: =head2
26356 #: ../fish/guestfish-actions.pod:1684
26357 msgid "inspect-get-arch"
26358 msgstr ""
26359
26360 # type: verbatim
26361 #. type: verbatim
26362 #: ../fish/guestfish-actions.pod:1686
26363 #, no-wrap
26364 msgid ""
26365 " inspect-get-arch root\n"
26366 "\n"
26367 msgstr ""
26368
26369 # type: textblock
26370 #. type: textblock
26371 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704
26372 #: ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1800
26373 #: ../fish/guestfish-actions.pod:1834 ../fish/guestfish-actions.pod:1849
26374 #: ../fish/guestfish-actions.pod:1870 ../fish/guestfish-actions.pod:1885
26375 #: ../fish/guestfish-actions.pod:1912 ../fish/guestfish-actions.pod:1934
26376 #: ../fish/guestfish-actions.pod:1958 ../fish/guestfish-actions.pod:1975
26377 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2053
26378 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2082
26379 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2110
26380 msgid ""
26381 "This function should only be called with a root device string as returned by "
26382 "L</inspect-os>."
26383 msgstr ""
26384
26385 # type: textblock
26386 #. type: textblock
26387 #: ../fish/guestfish-actions.pod:1691
26388 msgid ""
26389 "This returns the architecture of the inspected operating system.  The "
26390 "possible return values are listed under L</file-architecture>."
26391 msgstr ""
26392
26393 # type: =head2
26394 #. type: =head2
26395 #: ../fish/guestfish-actions.pod:1700
26396 msgid "inspect-get-distro"
26397 msgstr ""
26398
26399 # type: verbatim
26400 #. type: verbatim
26401 #: ../fish/guestfish-actions.pod:1702
26402 #, no-wrap
26403 msgid ""
26404 " inspect-get-distro root\n"
26405 "\n"
26406 msgstr ""
26407
26408 # type: =head2
26409 #. type: =head2
26410 #: ../fish/guestfish-actions.pod:1778
26411 msgid "inspect-get-filesystems"
26412 msgstr ""
26413
26414 # type: verbatim
26415 #. type: verbatim
26416 #: ../fish/guestfish-actions.pod:1780
26417 #, no-wrap
26418 msgid ""
26419 " inspect-get-filesystems root\n"
26420 "\n"
26421 msgstr ""
26422
26423 # type: textblock
26424 #. type: textblock
26425 #: ../fish/guestfish-actions.pod:1793
26426 msgid ""
26427 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26428 "get-mountpoints>."
26429 msgstr ""
26430
26431 #. type: =head2
26432 #: ../fish/guestfish-actions.pod:1796
26433 msgid "inspect-get-format"
26434 msgstr ""
26435
26436 #. type: verbatim
26437 #: ../fish/guestfish-actions.pod:1798
26438 #, no-wrap
26439 msgid ""
26440 " inspect-get-format root\n"
26441 "\n"
26442 msgstr ""
26443
26444 # type: =head2
26445 #. type: =head2
26446 #: ../fish/guestfish-actions.pod:1830
26447 msgid "inspect-get-hostname"
26448 msgstr ""
26449
26450 # type: verbatim
26451 #. type: verbatim
26452 #: ../fish/guestfish-actions.pod:1832
26453 #, no-wrap
26454 msgid ""
26455 " inspect-get-hostname root\n"
26456 "\n"
26457 msgstr ""
26458
26459 # type: =head2
26460 #. type: =head2
26461 #: ../fish/guestfish-actions.pod:1845
26462 msgid "inspect-get-major-version"
26463 msgstr ""
26464
26465 # type: verbatim
26466 #. type: verbatim
26467 #: ../fish/guestfish-actions.pod:1847
26468 #, no-wrap
26469 msgid ""
26470 " inspect-get-major-version root\n"
26471 "\n"
26472 msgstr ""
26473
26474 # type: =head2
26475 #. type: =head2
26476 #: ../fish/guestfish-actions.pod:1866
26477 msgid "inspect-get-minor-version"
26478 msgstr ""
26479
26480 # type: verbatim
26481 #. type: verbatim
26482 #: ../fish/guestfish-actions.pod:1868
26483 #, no-wrap
26484 msgid ""
26485 " inspect-get-minor-version root\n"
26486 "\n"
26487 msgstr ""
26488
26489 # type: textblock
26490 #. type: textblock
26491 #: ../fish/guestfish-actions.pod:1878
26492 msgid ""
26493 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26494 "get-major-version>."
26495 msgstr ""
26496
26497 # type: =head2
26498 #. type: =head2
26499 #: ../fish/guestfish-actions.pod:1881
26500 msgid "inspect-get-mountpoints"
26501 msgstr ""
26502
26503 # type: verbatim
26504 #. type: verbatim
26505 #: ../fish/guestfish-actions.pod:1883
26506 #, no-wrap
26507 msgid ""
26508 " inspect-get-mountpoints root\n"
26509 "\n"
26510 msgstr ""
26511
26512 # type: textblock
26513 #. type: textblock
26514 #: ../fish/guestfish-actions.pod:1905
26515 msgid ""
26516 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26517 "get-filesystems>."
26518 msgstr ""
26519
26520 # type: =head2
26521 #. type: =head2
26522 #: ../fish/guestfish-actions.pod:1908
26523 msgid "inspect-get-package-format"
26524 msgstr ""
26525
26526 # type: verbatim
26527 #. type: verbatim
26528 #: ../fish/guestfish-actions.pod:1910
26529 #, no-wrap
26530 msgid ""
26531 " inspect-get-package-format root\n"
26532 "\n"
26533 msgstr ""
26534
26535 # type: textblock
26536 #. type: textblock
26537 #: ../fish/guestfish-actions.pod:1915
26538 msgid ""
26539 "This function and L</inspect-get-package-management> return the package "
26540 "format and package management tool used by the inspected operating system.  "
26541 "For example for Fedora these functions would return C<rpm> (package format) "
26542 "and C<yum> (package management)."
26543 msgstr ""
26544
26545 # type: =head2
26546 #. type: =head2
26547 #: ../fish/guestfish-actions.pod:1930
26548 msgid "inspect-get-package-management"
26549 msgstr ""
26550
26551 # type: verbatim
26552 #. type: verbatim
26553 #: ../fish/guestfish-actions.pod:1932
26554 #, no-wrap
26555 msgid ""
26556 " inspect-get-package-management root\n"
26557 "\n"
26558 msgstr ""
26559
26560 # type: textblock
26561 #. type: textblock
26562 #: ../fish/guestfish-actions.pod:1937
26563 msgid ""
26564 "L</inspect-get-package-format> and this function return the package format "
26565 "and package management tool used by the inspected operating system.  For "
26566 "example for Fedora these functions would return C<rpm> (package format) and "
26567 "C<yum> (package management)."
26568 msgstr ""
26569
26570 # type: =head2
26571 #. type: =head2
26572 #: ../fish/guestfish-actions.pod:1954
26573 msgid "inspect-get-product-name"
26574 msgstr ""
26575
26576 # type: verbatim
26577 #. type: verbatim
26578 #: ../fish/guestfish-actions.pod:1956
26579 #, no-wrap
26580 msgid ""
26581 " inspect-get-product-name root\n"
26582 "\n"
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../fish/guestfish-actions.pod:1971
26587 msgid "inspect-get-product-variant"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../fish/guestfish-actions.pod:1973
26592 #, no-wrap
26593 msgid ""
26594 " inspect-get-product-variant root\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: textblock
26599 #: ../fish/guestfish-actions.pod:1997
26600 msgid ""
26601 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26602 "get-product-name>, L</inspect-get-major-version>."
26603 msgstr ""
26604
26605 # type: =head2
26606 #. type: =head2
26607 #: ../fish/guestfish-actions.pod:2001
26608 msgid "inspect-get-roots"
26609 msgstr ""
26610
26611 # type: verbatim
26612 #. type: verbatim
26613 #: ../fish/guestfish-actions.pod:2003
26614 #, no-wrap
26615 msgid ""
26616 " inspect-get-roots\n"
26617 "\n"
26618 msgstr ""
26619
26620 # type: textblock
26621 #. type: textblock
26622 #: ../fish/guestfish-actions.pod:2005
26623 msgid ""
26624 "This function is a convenient way to get the list of root devices, as "
26625 "returned from a previous call to L</inspect-os>, but without redoing the "
26626 "whole inspection process."
26627 msgstr ""
26628
26629 # type: textblock
26630 #. type: textblock
26631 #: ../fish/guestfish-actions.pod:2009
26632 msgid ""
26633 "This returns an empty list if either no root devices were found or the "
26634 "caller has not called L</inspect-os>."
26635 msgstr ""
26636
26637 # type: =head2
26638 #. type: =head2
26639 #: ../fish/guestfish-actions.pod:2014
26640 msgid "inspect-get-type"
26641 msgstr ""
26642
26643 # type: verbatim
26644 #. type: verbatim
26645 #: ../fish/guestfish-actions.pod:2016
26646 #, no-wrap
26647 msgid ""
26648 " inspect-get-type root\n"
26649 "\n"
26650 msgstr ""
26651
26652 # type: =head2
26653 #. type: =head2
26654 #: ../fish/guestfish-actions.pod:2049
26655 msgid "inspect-get-windows-systemroot"
26656 msgstr ""
26657
26658 # type: verbatim
26659 #. type: verbatim
26660 #: ../fish/guestfish-actions.pod:2051
26661 #, no-wrap
26662 msgid ""
26663 " inspect-get-windows-systemroot root\n"
26664 "\n"
26665 msgstr ""
26666
26667 #. type: =head2
26668 #: ../fish/guestfish-actions.pod:2065
26669 msgid "inspect-is-live"
26670 msgstr ""
26671
26672 #. type: verbatim
26673 #: ../fish/guestfish-actions.pod:2067
26674 #, no-wrap
26675 msgid ""
26676 " inspect-is-live root\n"
26677 "\n"
26678 msgstr ""
26679
26680 #. type: textblock
26681 #: ../fish/guestfish-actions.pod:2072
26682 msgid ""
26683 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26684 "then this returns true if a live image was detected on the disk."
26685 msgstr ""
26686
26687 #. type: =head2
26688 #: ../fish/guestfish-actions.pod:2078
26689 msgid "inspect-is-multipart"
26690 msgstr ""
26691
26692 #. type: verbatim
26693 #: ../fish/guestfish-actions.pod:2080
26694 #, no-wrap
26695 msgid ""
26696 " inspect-is-multipart root\n"
26697 "\n"
26698 msgstr ""
26699
26700 #. type: textblock
26701 #: ../fish/guestfish-actions.pod:2085
26702 msgid ""
26703 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26704 "then this returns true if the disk is part of a set."
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../fish/guestfish-actions.pod:2091
26709 msgid "inspect-is-netinst"
26710 msgstr ""
26711
26712 #. type: verbatim
26713 #: ../fish/guestfish-actions.pod:2093
26714 #, no-wrap
26715 msgid ""
26716 " inspect-is-netinst root\n"
26717 "\n"
26718 msgstr ""
26719
26720 #. type: textblock
26721 #: ../fish/guestfish-actions.pod:2098
26722 msgid ""
26723 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26724 "then this returns true if the disk is a network installer, ie. not a self-"
26725 "contained install CD but one which is likely to require network access to "
26726 "complete the install."
26727 msgstr ""
26728
26729 # type: =head2
26730 #. type: =head2
26731 #: ../fish/guestfish-actions.pod:2106
26732 msgid "inspect-list-applications"
26733 msgstr ""
26734
26735 # type: verbatim
26736 #. type: verbatim
26737 #: ../fish/guestfish-actions.pod:2108
26738 #, no-wrap
26739 msgid ""
26740 " inspect-list-applications root\n"
26741 "\n"
26742 msgstr ""
26743
26744 # type: textblock
26745 #. type: textblock
26746 #: ../fish/guestfish-actions.pod:2115
26747 msgid ""
26748 "I<Note:> This call works differently from other parts of the inspection "
26749 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
26750 "then mount up the disks, before calling this.  Listing applications is a "
26751 "significantly more difficult operation which requires access to the full "
26752 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
26753 "are just returning data cached in the libguestfs handle, this call actually "
26754 "reads parts of the mounted filesystems during the call."
26755 msgstr ""
26756
26757 # type: =head2
26758 #. type: =head2
26759 #: ../fish/guestfish-actions.pod:2205
26760 msgid "inspect-os"
26761 msgstr ""
26762
26763 # type: verbatim
26764 #. type: verbatim
26765 #: ../fish/guestfish-actions.pod:2207
26766 #, no-wrap
26767 msgid ""
26768 " inspect-os\n"
26769 "\n"
26770 msgstr ""
26771
26772 # type: textblock
26773 #. type: textblock
26774 #: ../fish/guestfish-actions.pod:2222
26775 msgid ""
26776 "You can pass the root string(s) returned to other L</inspect-get-*> "
26777 "functions in order to query further information about each operating system, "
26778 "such as the name and version."
26779 msgstr ""
26780
26781 # type: textblock
26782 #. type: textblock
26783 #: ../fish/guestfish-actions.pod:2227
26784 msgid ""
26785 "This function uses other libguestfs features such as L</mount-ro> and L</"
26786 "umount-all> in order to mount and unmount filesystems and look at the "
26787 "contents.  This should be called with no disks currently mounted.  The "
26788 "function may also use Augeas, so any existing Augeas handle will be closed."
26789 msgstr ""
26790
26791 # type: textblock
26792 #. type: textblock
26793 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2415
26794 #: ../fish/guestfish-actions.pod:2461
26795 msgid "See also L</list-filesystems>."
26796 msgstr ""
26797
26798 # type: =head2
26799 #. type: =head2
26800 #: ../fish/guestfish-actions.pod:2241
26801 msgid "is-blockdev"
26802 msgstr ""
26803
26804 # type: verbatim
26805 #. type: verbatim
26806 #: ../fish/guestfish-actions.pod:2243
26807 #, no-wrap
26808 msgid ""
26809 " is-blockdev path\n"
26810 "\n"
26811 msgstr ""
26812
26813 # type: textblock
26814 #. type: textblock
26815 #: ../fish/guestfish-actions.pod:2248 ../fish/guestfish-actions.pod:2266
26816 #: ../fish/guestfish-actions.pod:2285 ../fish/guestfish-actions.pod:2294
26817 #: ../fish/guestfish-actions.pod:2304 ../fish/guestfish-actions.pod:2338
26818 #: ../fish/guestfish-actions.pod:2347
26819 msgid "See also L</stat>."
26820 msgstr ""
26821
26822 # type: =head2
26823 #. type: =head2
26824 #: ../fish/guestfish-actions.pod:2250
26825 msgid "is-busy"
26826 msgstr ""
26827
26828 # type: verbatim
26829 #. type: verbatim
26830 #: ../fish/guestfish-actions.pod:2252
26831 #, no-wrap
26832 msgid ""
26833 " is-busy\n"
26834 "\n"
26835 msgstr ""
26836
26837 # type: =head2
26838 #. type: =head2
26839 #: ../fish/guestfish-actions.pod:2259
26840 msgid "is-chardev"
26841 msgstr ""
26842
26843 # type: verbatim
26844 #. type: verbatim
26845 #: ../fish/guestfish-actions.pod:2261
26846 #, no-wrap
26847 msgid ""
26848 " is-chardev path\n"
26849 "\n"
26850 msgstr ""
26851
26852 # type: =head2
26853 #. type: =head2
26854 #: ../fish/guestfish-actions.pod:2268
26855 msgid "is-config"
26856 msgstr ""
26857
26858 # type: verbatim
26859 #. type: verbatim
26860 #: ../fish/guestfish-actions.pod:2270
26861 #, no-wrap
26862 msgid ""
26863 " is-config\n"
26864 "\n"
26865 msgstr ""
26866
26867 # type: =head2
26868 #. type: =head2
26869 #: ../fish/guestfish-actions.pod:2277
26870 msgid "is-dir"
26871 msgstr ""
26872
26873 # type: verbatim
26874 #. type: verbatim
26875 #: ../fish/guestfish-actions.pod:2279
26876 #, no-wrap
26877 msgid ""
26878 " is-dir path\n"
26879 "\n"
26880 msgstr ""
26881
26882 # type: =head2
26883 #. type: =head2
26884 #: ../fish/guestfish-actions.pod:2287
26885 msgid "is-fifo"
26886 msgstr ""
26887
26888 # type: verbatim
26889 #. type: verbatim
26890 #: ../fish/guestfish-actions.pod:2289
26891 #, no-wrap
26892 msgid ""
26893 " is-fifo path\n"
26894 "\n"
26895 msgstr ""
26896
26897 # type: =head2
26898 #. type: =head2
26899 #: ../fish/guestfish-actions.pod:2296
26900 msgid "is-file"
26901 msgstr ""
26902
26903 # type: verbatim
26904 #. type: verbatim
26905 #: ../fish/guestfish-actions.pod:2298
26906 #, no-wrap
26907 msgid ""
26908 " is-file path\n"
26909 "\n"
26910 msgstr ""
26911
26912 # type: =head2
26913 #. type: =head2
26914 #: ../fish/guestfish-actions.pod:2306
26915 msgid "is-launching"
26916 msgstr ""
26917
26918 # type: verbatim
26919 #. type: verbatim
26920 #: ../fish/guestfish-actions.pod:2308
26921 #, no-wrap
26922 msgid ""
26923 " is-launching\n"
26924 "\n"
26925 msgstr ""
26926
26927 # type: =head2
26928 #. type: =head2
26929 #: ../fish/guestfish-actions.pod:2315
26930 msgid "is-lv"
26931 msgstr ""
26932
26933 # type: verbatim
26934 #. type: verbatim
26935 #: ../fish/guestfish-actions.pod:2317
26936 #, no-wrap
26937 msgid ""
26938 " is-lv device\n"
26939 "\n"
26940 msgstr ""
26941
26942 # type: =head2
26943 #. type: =head2
26944 #: ../fish/guestfish-actions.pod:2322
26945 msgid "is-ready"
26946 msgstr ""
26947
26948 # type: verbatim
26949 #. type: verbatim
26950 #: ../fish/guestfish-actions.pod:2324
26951 #, no-wrap
26952 msgid ""
26953 " is-ready\n"
26954 "\n"
26955 msgstr ""
26956
26957 # type: =head2
26958 #. type: =head2
26959 #: ../fish/guestfish-actions.pod:2331
26960 msgid "is-socket"
26961 msgstr ""
26962
26963 # type: verbatim
26964 #. type: verbatim
26965 #: ../fish/guestfish-actions.pod:2333
26966 #, no-wrap
26967 msgid ""
26968 " is-socket path\n"
26969 "\n"
26970 msgstr ""
26971
26972 # type: =head2
26973 #. type: =head2
26974 #: ../fish/guestfish-actions.pod:2340
26975 msgid "is-symlink"
26976 msgstr ""
26977
26978 # type: verbatim
26979 #. type: verbatim
26980 #: ../fish/guestfish-actions.pod:2342
26981 #, no-wrap
26982 msgid ""
26983 " is-symlink path\n"
26984 "\n"
26985 msgstr ""
26986
26987 # type: =head2
26988 #. type: =head2
26989 #: ../fish/guestfish-actions.pod:2349
26990 msgid "kill-subprocess"
26991 msgstr ""
26992
26993 # type: verbatim
26994 #. type: verbatim
26995 #: ../fish/guestfish-actions.pod:2351
26996 #, no-wrap
26997 msgid ""
26998 " kill-subprocess\n"
26999 "\n"
27000 msgstr ""
27001
27002 # type: =head2
27003 #. type: =head2
27004 #: ../fish/guestfish-actions.pod:2355
27005 msgid "launch"
27006 msgstr ""
27007
27008 # type: =head2
27009 #. type: =head2
27010 #: ../fish/guestfish-actions.pod:2357
27011 msgid "run"
27012 msgstr ""
27013
27014 # type: verbatim
27015 #. type: verbatim
27016 #: ../fish/guestfish-actions.pod:2359
27017 #, no-wrap
27018 msgid ""
27019 " launch\n"
27020 "\n"
27021 msgstr ""
27022
27023 # type: =head2
27024 #. type: =head2
27025 #: ../fish/guestfish-actions.pod:2367
27026 msgid "lchown"
27027 msgstr ""
27028
27029 # type: verbatim
27030 #. type: verbatim
27031 #: ../fish/guestfish-actions.pod:2369
27032 #, no-wrap
27033 msgid ""
27034 " lchown owner group path\n"
27035 "\n"
27036 msgstr ""
27037
27038 # type: textblock
27039 #. type: textblock
27040 #: ../fish/guestfish-actions.pod:2371
27041 msgid ""
27042 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
27043 "chown> but if C<path> is a symlink then the link itself is changed, not the "
27044 "target."
27045 msgstr ""
27046
27047 # type: =head2
27048 #. type: =head2
27049 #: ../fish/guestfish-actions.pod:2379
27050 msgid "lgetxattr"
27051 msgstr ""
27052
27053 # type: verbatim
27054 #. type: verbatim
27055 #: ../fish/guestfish-actions.pod:2381
27056 #, no-wrap
27057 msgid ""
27058 " lgetxattr path name\n"
27059 "\n"
27060 msgstr ""
27061
27062 # type: textblock
27063 #. type: textblock
27064 #: ../fish/guestfish-actions.pod:2397
27065 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27066 msgstr ""
27067
27068 # type: =head2
27069 #. type: =head2
27070 #: ../fish/guestfish-actions.pod:2399
27071 msgid "lgetxattrs"
27072 msgstr ""
27073
27074 # type: verbatim
27075 #. type: verbatim
27076 #: ../fish/guestfish-actions.pod:2401
27077 #, no-wrap
27078 msgid ""
27079 " lgetxattrs path\n"
27080 "\n"
27081 msgstr ""
27082
27083 # type: textblock
27084 #. type: textblock
27085 #: ../fish/guestfish-actions.pod:2403
27086 msgid ""
27087 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27088 "it returns the extended attributes of the link itself."
27089 msgstr ""
27090
27091 # type: =head2
27092 #. type: =head2
27093 #: ../fish/guestfish-actions.pod:2407
27094 msgid "list-devices"
27095 msgstr ""
27096
27097 # type: verbatim
27098 #. type: verbatim
27099 #: ../fish/guestfish-actions.pod:2409
27100 #, no-wrap
27101 msgid ""
27102 " list-devices\n"
27103 "\n"
27104 msgstr ""
27105
27106 # type: =head2
27107 #. type: =head2
27108 #: ../fish/guestfish-actions.pod:2417
27109 msgid "list-filesystems"
27110 msgstr ""
27111
27112 # type: verbatim
27113 #. type: verbatim
27114 #: ../fish/guestfish-actions.pod:2419
27115 #, no-wrap
27116 msgid ""
27117 " list-filesystems\n"
27118 "\n"
27119 msgstr ""
27120
27121 # type: textblock
27122 #. type: textblock
27123 #: ../fish/guestfish-actions.pod:2438
27124 msgid ""
27125 "This command runs other libguestfs commands, which might include L</mount> "
27126 "and L</umount>, and therefore you should use this soon after launch and only "
27127 "when nothing is mounted."
27128 msgstr ""
27129
27130 # type: textblock
27131 #. type: textblock
27132 #: ../fish/guestfish-actions.pod:2442
27133 msgid ""
27134 "Not all of the filesystems returned will be mountable.  In particular, swap "
27135 "partitions are returned in the list.  Also this command does not check that "
27136 "each filesystem found is valid and mountable, and some filesystems might be "
27137 "mountable but require special options.  Filesystems may not all belong to a "
27138 "single logical operating system (use L</inspect-os> to look for OSes)."
27139 msgstr ""
27140
27141 # type: =head2
27142 #. type: =head2
27143 #: ../fish/guestfish-actions.pod:2450
27144 msgid "list-partitions"
27145 msgstr ""
27146
27147 # type: verbatim
27148 #. type: verbatim
27149 #: ../fish/guestfish-actions.pod:2452
27150 #, no-wrap
27151 msgid ""
27152 " list-partitions\n"
27153 "\n"
27154 msgstr ""
27155
27156 # type: textblock
27157 #. type: textblock
27158 #: ../fish/guestfish-actions.pod:2458
27159 msgid ""
27160 "This does not return logical volumes.  For that you will need to call L</"
27161 "lvs>."
27162 msgstr ""
27163
27164 # type: =head2
27165 #. type: =head2
27166 #: ../fish/guestfish-actions.pod:2463
27167 msgid "ll"
27168 msgstr ""
27169
27170 # type: verbatim
27171 #. type: verbatim
27172 #: ../fish/guestfish-actions.pod:2465
27173 #, no-wrap
27174 msgid ""
27175 " ll directory\n"
27176 "\n"
27177 msgstr ""
27178
27179 # type: =head2
27180 #. type: =head2
27181 #: ../fish/guestfish-actions.pod:2473
27182 msgid "ln"
27183 msgstr ""
27184
27185 # type: verbatim
27186 #. type: verbatim
27187 #: ../fish/guestfish-actions.pod:2475
27188 #, no-wrap
27189 msgid ""
27190 " ln target linkname\n"
27191 "\n"
27192 msgstr ""
27193
27194 # type: =head2
27195 #. type: =head2
27196 #: ../fish/guestfish-actions.pod:2479
27197 msgid "ln-f"
27198 msgstr ""
27199
27200 # type: verbatim
27201 #. type: verbatim
27202 #: ../fish/guestfish-actions.pod:2481
27203 #, no-wrap
27204 msgid ""
27205 " ln-f target linkname\n"
27206 "\n"
27207 msgstr ""
27208
27209 # type: =head2
27210 #. type: =head2
27211 #: ../fish/guestfish-actions.pod:2486
27212 msgid "ln-s"
27213 msgstr ""
27214
27215 # type: verbatim
27216 #. type: verbatim
27217 #: ../fish/guestfish-actions.pod:2488
27218 #, no-wrap
27219 msgid ""
27220 " ln-s target linkname\n"
27221 "\n"
27222 msgstr ""
27223
27224 # type: =head2
27225 #. type: =head2
27226 #: ../fish/guestfish-actions.pod:2492
27227 msgid "ln-sf"
27228 msgstr ""
27229
27230 # type: verbatim
27231 #. type: verbatim
27232 #: ../fish/guestfish-actions.pod:2494
27233 #, no-wrap
27234 msgid ""
27235 " ln-sf target linkname\n"
27236 "\n"
27237 msgstr ""
27238
27239 # type: =head2
27240 #. type: =head2
27241 #: ../fish/guestfish-actions.pod:2499
27242 msgid "lremovexattr"
27243 msgstr ""
27244
27245 # type: verbatim
27246 #. type: verbatim
27247 #: ../fish/guestfish-actions.pod:2501
27248 #, no-wrap
27249 msgid ""
27250 " lremovexattr xattr path\n"
27251 "\n"
27252 msgstr ""
27253
27254 # type: textblock
27255 #. type: textblock
27256 #: ../fish/guestfish-actions.pod:2503
27257 msgid ""
27258 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27259 "it removes an extended attribute of the link itself."
27260 msgstr ""
27261
27262 # type: =head2
27263 #. type: =head2
27264 #: ../fish/guestfish-actions.pod:2507
27265 msgid "ls"
27266 msgstr ""
27267
27268 # type: verbatim
27269 #. type: verbatim
27270 #: ../fish/guestfish-actions.pod:2509
27271 #, no-wrap
27272 msgid ""
27273 " ls directory\n"
27274 "\n"
27275 msgstr ""
27276
27277 # type: textblock
27278 #. type: textblock
27279 #: ../fish/guestfish-actions.pod:2515
27280 msgid ""
27281 "This command is mostly useful for interactive sessions.  Programs should "
27282 "probably use L</readdir> instead."
27283 msgstr ""
27284
27285 # type: =head2
27286 #. type: =head2
27287 #: ../fish/guestfish-actions.pod:2518
27288 msgid "lsetxattr"
27289 msgstr ""
27290
27291 # type: verbatim
27292 #. type: verbatim
27293 #: ../fish/guestfish-actions.pod:2520
27294 #, no-wrap
27295 msgid ""
27296 " lsetxattr xattr val vallen path\n"
27297 "\n"
27298 msgstr ""
27299
27300 # type: textblock
27301 #. type: textblock
27302 #: ../fish/guestfish-actions.pod:2522
27303 msgid ""
27304 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
27305 "sets an extended attribute of the link itself."
27306 msgstr ""
27307
27308 # type: =head2
27309 #. type: =head2
27310 #: ../fish/guestfish-actions.pod:2526
27311 msgid "lstat"
27312 msgstr ""
27313
27314 # type: verbatim
27315 #. type: verbatim
27316 #: ../fish/guestfish-actions.pod:2528
27317 #, no-wrap
27318 msgid ""
27319 " lstat path\n"
27320 "\n"
27321 msgstr ""
27322
27323 # type: textblock
27324 #. type: textblock
27325 #: ../fish/guestfish-actions.pod:2532
27326 msgid ""
27327 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
27328 "the link is stat-ed, not the file it refers to."
27329 msgstr ""
27330
27331 # type: =head2
27332 #. type: =head2
27333 #: ../fish/guestfish-actions.pod:2538
27334 msgid "lstatlist"
27335 msgstr ""
27336
27337 # type: verbatim
27338 #. type: verbatim
27339 #: ../fish/guestfish-actions.pod:2540
27340 #, no-wrap
27341 msgid ""
27342 " lstatlist path 'names ...'\n"
27343 "\n"
27344 msgstr ""
27345
27346 # type: textblock
27347 #. type: textblock
27348 #: ../fish/guestfish-actions.pod:2542
27349 msgid ""
27350 "This call allows you to perform the L</lstat> operation on multiple files, "
27351 "where all files are in the directory C<path>.  C<names> is the list of files "
27352 "from this directory."
27353 msgstr ""
27354
27355 # type: textblock
27356 #. type: textblock
27357 #: ../fish/guestfish-actions.pod:2551
27358 msgid ""
27359 "This call is intended for programs that want to efficiently list a directory "
27360 "contents without making many round-trips.  See also L</lxattrlist> for a "
27361 "similarly efficient call for getting extended attributes.  Very long "
27362 "directory listings might cause the protocol message size to be exceeded, "
27363 "causing this call to fail.  The caller must split up such requests into "
27364 "smaller groups of names."
27365 msgstr ""
27366
27367 # type: =head2
27368 #. type: =head2
27369 #: ../fish/guestfish-actions.pod:2559
27370 msgid "luks-add-key"
27371 msgstr ""
27372
27373 # type: verbatim
27374 #. type: verbatim
27375 #: ../fish/guestfish-actions.pod:2561
27376 #, no-wrap
27377 msgid ""
27378 " luks-add-key device keyslot\n"
27379 "\n"
27380 msgstr ""
27381
27382 # type: textblock
27383 #. type: textblock
27384 #: ../fish/guestfish-actions.pod:2568
27385 msgid ""
27386 "Note that if C<keyslot> already contains a key, then this command will "
27387 "fail.  You have to use L</luks-kill-slot> first to remove that key."
27388 msgstr ""
27389
27390 # type: textblock
27391 #. type: textblock
27392 #: ../fish/guestfish-actions.pod:2572 ../fish/guestfish-actions.pod:2594
27393 #: ../fish/guestfish-actions.pod:2607 ../fish/guestfish-actions.pod:2621
27394 #: ../fish/guestfish-actions.pod:2644 ../fish/guestfish-actions.pod:2654
27395 msgid ""
27396 "This command has one or more key or passphrase parameters.  Guestfish will "
27397 "prompt for these separately."
27398 msgstr ""
27399
27400 # type: =head2
27401 #. type: =head2
27402 #: ../fish/guestfish-actions.pod:2575
27403 msgid "luks-close"
27404 msgstr ""
27405
27406 # type: verbatim
27407 #. type: verbatim
27408 #: ../fish/guestfish-actions.pod:2577
27409 #, no-wrap
27410 msgid ""
27411 " luks-close device\n"
27412 "\n"
27413 msgstr ""
27414
27415 # type: textblock
27416 #. type: textblock
27417 #: ../fish/guestfish-actions.pod:2579
27418 msgid ""
27419 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
27420 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
27421 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
27422 "block device."
27423 msgstr ""
27424
27425 # type: =head2
27426 #. type: =head2
27427 #: ../fish/guestfish-actions.pod:2585
27428 msgid "luks-format"
27429 msgstr ""
27430
27431 # type: verbatim
27432 #. type: verbatim
27433 #: ../fish/guestfish-actions.pod:2587
27434 #, no-wrap
27435 msgid ""
27436 " luks-format device keyslot\n"
27437 "\n"
27438 msgstr ""
27439
27440 # type: =head2
27441 #. type: =head2
27442 #: ../fish/guestfish-actions.pod:2600
27443 msgid "luks-format-cipher"
27444 msgstr ""
27445
27446 # type: verbatim
27447 #. type: verbatim
27448 #: ../fish/guestfish-actions.pod:2602
27449 #, no-wrap
27450 msgid ""
27451 " luks-format-cipher device keyslot cipher\n"
27452 "\n"
27453 msgstr ""
27454
27455 # type: textblock
27456 #. type: textblock
27457 #: ../fish/guestfish-actions.pod:2604
27458 msgid ""
27459 "This command is the same as L</luks-format> but it also allows you to set "
27460 "the C<cipher> used."
27461 msgstr ""
27462
27463 # type: =head2
27464 #. type: =head2
27465 #: ../fish/guestfish-actions.pod:2613
27466 msgid "luks-kill-slot"
27467 msgstr ""
27468
27469 # type: verbatim
27470 #. type: verbatim
27471 #: ../fish/guestfish-actions.pod:2615
27472 #, no-wrap
27473 msgid ""
27474 " luks-kill-slot device keyslot\n"
27475 "\n"
27476 msgstr ""
27477
27478 # type: =head2
27479 #. type: =head2
27480 #: ../fish/guestfish-actions.pod:2624
27481 msgid "luks-open"
27482 msgstr ""
27483
27484 # type: verbatim
27485 #. type: verbatim
27486 #: ../fish/guestfish-actions.pod:2626
27487 #, no-wrap
27488 msgid ""
27489 " luks-open device mapname\n"
27490 "\n"
27491 msgstr ""
27492
27493 # type: textblock
27494 #. type: textblock
27495 #: ../fish/guestfish-actions.pod:2640
27496 msgid ""
27497 "If this block device contains LVM volume groups, then calling L</vgscan> "
27498 "followed by L</vg-activate-all> will make them visible."
27499 msgstr ""
27500
27501 # type: =head2
27502 #. type: =head2
27503 #: ../fish/guestfish-actions.pod:2647
27504 msgid "luks-open-ro"
27505 msgstr ""
27506
27507 # type: verbatim
27508 #. type: verbatim
27509 #: ../fish/guestfish-actions.pod:2649
27510 #, no-wrap
27511 msgid ""
27512 " luks-open-ro device mapname\n"
27513 "\n"
27514 msgstr ""
27515
27516 # type: textblock
27517 #. type: textblock
27518 #: ../fish/guestfish-actions.pod:2651
27519 msgid ""
27520 "This is the same as L</luks-open> except that a read-only mapping is created."
27521 msgstr ""
27522
27523 # type: =head2
27524 #. type: =head2
27525 #: ../fish/guestfish-actions.pod:2657
27526 msgid "lvcreate"
27527 msgstr ""
27528
27529 # type: verbatim
27530 #. type: verbatim
27531 #: ../fish/guestfish-actions.pod:2659
27532 #, no-wrap
27533 msgid ""
27534 " lvcreate logvol volgroup mbytes\n"
27535 "\n"
27536 msgstr ""
27537
27538 # type: =head2
27539 #. type: =head2
27540 #: ../fish/guestfish-actions.pod:2664
27541 msgid "lvm-canonical-lv-name"
27542 msgstr ""
27543
27544 # type: verbatim
27545 #. type: verbatim
27546 #: ../fish/guestfish-actions.pod:2666
27547 #, no-wrap
27548 msgid ""
27549 " lvm-canonical-lv-name lvname\n"
27550 "\n"
27551 msgstr ""
27552
27553 # type: textblock
27554 #. type: textblock
27555 #: ../fish/guestfish-actions.pod:2675
27556 msgid "See also L</is-lv>."
27557 msgstr ""
27558
27559 # type: =head2
27560 #. type: =head2
27561 #: ../fish/guestfish-actions.pod:2677
27562 msgid "lvm-clear-filter"
27563 msgstr ""
27564
27565 # type: verbatim
27566 #. type: verbatim
27567 #: ../fish/guestfish-actions.pod:2679
27568 #, no-wrap
27569 msgid ""
27570 " lvm-clear-filter\n"
27571 "\n"
27572 msgstr ""
27573
27574 # type: textblock
27575 #. type: textblock
27576 #: ../fish/guestfish-actions.pod:2681
27577 msgid ""
27578 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
27579 "block device."
27580 msgstr ""
27581
27582 # type: =head2
27583 #. type: =head2
27584 #: ../fish/guestfish-actions.pod:2687
27585 msgid "lvm-remove-all"
27586 msgstr ""
27587
27588 # type: verbatim
27589 #. type: verbatim
27590 #: ../fish/guestfish-actions.pod:2689
27591 #, no-wrap
27592 msgid ""
27593 " lvm-remove-all\n"
27594 "\n"
27595 msgstr ""
27596
27597 # type: =head2
27598 #. type: =head2
27599 #: ../fish/guestfish-actions.pod:2697
27600 msgid "lvm-set-filter"
27601 msgstr ""
27602
27603 # type: verbatim
27604 #. type: verbatim
27605 #: ../fish/guestfish-actions.pod:2699
27606 #, no-wrap
27607 msgid ""
27608 " lvm-set-filter 'devices ...'\n"
27609 "\n"
27610 msgstr ""
27611
27612 # type: =head2
27613 #. type: =head2
27614 #: ../fish/guestfish-actions.pod:2724
27615 msgid "lvremove"
27616 msgstr ""
27617
27618 # type: verbatim
27619 #. type: verbatim
27620 #: ../fish/guestfish-actions.pod:2726
27621 #, no-wrap
27622 msgid ""
27623 " lvremove device\n"
27624 "\n"
27625 msgstr ""
27626
27627 # type: =head2
27628 #. type: =head2
27629 #: ../fish/guestfish-actions.pod:2734
27630 msgid "lvrename"
27631 msgstr ""
27632
27633 # type: verbatim
27634 #. type: verbatim
27635 #: ../fish/guestfish-actions.pod:2736
27636 #, no-wrap
27637 msgid ""
27638 " lvrename logvol newlogvol\n"
27639 "\n"
27640 msgstr ""
27641
27642 # type: =head2
27643 #. type: =head2
27644 #: ../fish/guestfish-actions.pod:2740
27645 msgid "lvresize"
27646 msgstr ""
27647
27648 # type: verbatim
27649 #. type: verbatim
27650 #: ../fish/guestfish-actions.pod:2742
27651 #, no-wrap
27652 msgid ""
27653 " lvresize device mbytes\n"
27654 "\n"
27655 msgstr ""
27656
27657 # type: =head2
27658 #. type: =head2
27659 #: ../fish/guestfish-actions.pod:2748
27660 msgid "lvresize-free"
27661 msgstr ""
27662
27663 # type: verbatim
27664 #. type: verbatim
27665 #: ../fish/guestfish-actions.pod:2750
27666 #, no-wrap
27667 msgid ""
27668 " lvresize-free lv percent\n"
27669 "\n"
27670 msgstr ""
27671
27672 # type: =head2
27673 #. type: =head2
27674 #: ../fish/guestfish-actions.pod:2758
27675 msgid "lvs"
27676 msgstr ""
27677
27678 # type: verbatim
27679 #. type: verbatim
27680 #: ../fish/guestfish-actions.pod:2760
27681 #, no-wrap
27682 msgid ""
27683 " lvs\n"
27684 "\n"
27685 msgstr ""
27686
27687 # type: textblock
27688 #. type: textblock
27689 #: ../fish/guestfish-actions.pod:2768
27690 msgid "See also L</lvs-full>, L</list-filesystems>."
27691 msgstr ""
27692
27693 # type: =head2
27694 #. type: =head2
27695 #: ../fish/guestfish-actions.pod:2770
27696 msgid "lvs-full"
27697 msgstr ""
27698
27699 # type: verbatim
27700 #. type: verbatim
27701 #: ../fish/guestfish-actions.pod:2772
27702 #, no-wrap
27703 msgid ""
27704 " lvs-full\n"
27705 "\n"
27706 msgstr ""
27707
27708 # type: =head2
27709 #. type: =head2
27710 #: ../fish/guestfish-actions.pod:2777
27711 msgid "lvuuid"
27712 msgstr ""
27713
27714 # type: verbatim
27715 #. type: verbatim
27716 #: ../fish/guestfish-actions.pod:2779
27717 #, no-wrap
27718 msgid ""
27719 " lvuuid device\n"
27720 "\n"
27721 msgstr ""
27722
27723 # type: =head2
27724 #. type: =head2
27725 #: ../fish/guestfish-actions.pod:2783
27726 msgid "lxattrlist"
27727 msgstr ""
27728
27729 # type: verbatim
27730 #. type: verbatim
27731 #: ../fish/guestfish-actions.pod:2785
27732 #, no-wrap
27733 msgid ""
27734 " lxattrlist path 'names ...'\n"
27735 "\n"
27736 msgstr ""
27737
27738 # type: textblock
27739 #. type: textblock
27740 #: ../fish/guestfish-actions.pod:2801
27741 msgid ""
27742 "This call is intended for programs that want to efficiently list a directory "
27743 "contents without making many round-trips.  See also L</lstatlist> for a "
27744 "similarly efficient call for getting standard stats.  Very long directory "
27745 "listings might cause the protocol message size to be exceeded, causing this "
27746 "call to fail.  The caller must split up such requests into smaller groups of "
27747 "names."
27748 msgstr ""
27749
27750 # type: =head2
27751 #. type: =head2
27752 #: ../fish/guestfish-actions.pod:2809
27753 msgid "mkdir"
27754 msgstr ""
27755
27756 # type: verbatim
27757 #. type: verbatim
27758 #: ../fish/guestfish-actions.pod:2811
27759 #, no-wrap
27760 msgid ""
27761 " mkdir path\n"
27762 "\n"
27763 msgstr ""
27764
27765 # type: =head2
27766 #. type: =head2
27767 #: ../fish/guestfish-actions.pod:2815
27768 msgid "mkdir-mode"
27769 msgstr ""
27770
27771 # type: verbatim
27772 #. type: verbatim
27773 #: ../fish/guestfish-actions.pod:2817
27774 #, no-wrap
27775 msgid ""
27776 " mkdir-mode path mode\n"
27777 "\n"
27778 msgstr ""
27779
27780 # type: textblock
27781 #. type: textblock
27782 #: ../fish/guestfish-actions.pod:2826
27783 msgid "See also L</mkdir>, L</umask>"
27784 msgstr ""
27785
27786 # type: =head2
27787 #. type: =head2
27788 #: ../fish/guestfish-actions.pod:2828
27789 msgid "mkdir-p"
27790 msgstr ""
27791
27792 # type: verbatim
27793 #. type: verbatim
27794 #: ../fish/guestfish-actions.pod:2830
27795 #, no-wrap
27796 msgid ""
27797 " mkdir-p path\n"
27798 "\n"
27799 msgstr ""
27800
27801 # type: =head2
27802 #. type: =head2
27803 #: ../fish/guestfish-actions.pod:2835
27804 msgid "mkdtemp"
27805 msgstr ""
27806
27807 # type: verbatim
27808 #. type: verbatim
27809 #: ../fish/guestfish-actions.pod:2837
27810 #, no-wrap
27811 msgid ""
27812 " mkdtemp template\n"
27813 "\n"
27814 msgstr ""
27815
27816 # type: =head2
27817 #. type: =head2
27818 #: ../fish/guestfish-actions.pod:2858
27819 msgid "mke2fs-J"
27820 msgstr ""
27821
27822 # type: verbatim
27823 #. type: verbatim
27824 #: ../fish/guestfish-actions.pod:2860
27825 #, no-wrap
27826 msgid ""
27827 " mke2fs-J fstype blocksize device journal\n"
27828 "\n"
27829 msgstr ""
27830
27831 # type: textblock
27832 #. type: textblock
27833 #: ../fish/guestfish-actions.pod:2868
27834 msgid "See also L</mke2journal>."
27835 msgstr ""
27836
27837 # type: =head2
27838 #. type: =head2
27839 #: ../fish/guestfish-actions.pod:2870
27840 msgid "mke2fs-JL"
27841 msgstr ""
27842
27843 # type: verbatim
27844 #. type: verbatim
27845 #: ../fish/guestfish-actions.pod:2872
27846 #, no-wrap
27847 msgid ""
27848 " mke2fs-JL fstype blocksize device label\n"
27849 "\n"
27850 msgstr ""
27851
27852 # type: textblock
27853 #. type: textblock
27854 #: ../fish/guestfish-actions.pod:2877
27855 msgid "See also L</mke2journal-L>."
27856 msgstr ""
27857
27858 # type: =head2
27859 #. type: =head2
27860 #: ../fish/guestfish-actions.pod:2879
27861 msgid "mke2fs-JU"
27862 msgstr ""
27863
27864 # type: verbatim
27865 #. type: verbatim
27866 #: ../fish/guestfish-actions.pod:2881
27867 #, no-wrap
27868 msgid ""
27869 " mke2fs-JU fstype blocksize device uuid\n"
27870 "\n"
27871 msgstr ""
27872
27873 # type: textblock
27874 #. type: textblock
27875 #: ../fish/guestfish-actions.pod:2886
27876 msgid "See also L</mke2journal-U>."
27877 msgstr ""
27878
27879 # type: =head2
27880 #. type: =head2
27881 #: ../fish/guestfish-actions.pod:2888
27882 msgid "mke2journal"
27883 msgstr ""
27884
27885 # type: verbatim
27886 #. type: verbatim
27887 #: ../fish/guestfish-actions.pod:2890
27888 #, no-wrap
27889 msgid ""
27890 " mke2journal blocksize device\n"
27891 "\n"
27892 msgstr ""
27893
27894 # type: =head2
27895 #. type: =head2
27896 #: ../fish/guestfish-actions.pod:2897
27897 msgid "mke2journal-L"
27898 msgstr ""
27899
27900 # type: verbatim
27901 #. type: verbatim
27902 #: ../fish/guestfish-actions.pod:2899
27903 #, no-wrap
27904 msgid ""
27905 " mke2journal-L blocksize label device\n"
27906 "\n"
27907 msgstr ""
27908
27909 # type: =head2
27910 #. type: =head2
27911 #: ../fish/guestfish-actions.pod:2903
27912 msgid "mke2journal-U"
27913 msgstr ""
27914
27915 # type: verbatim
27916 #. type: verbatim
27917 #: ../fish/guestfish-actions.pod:2905
27918 #, no-wrap
27919 msgid ""
27920 " mke2journal-U blocksize uuid device\n"
27921 "\n"
27922 msgstr ""
27923
27924 # type: =head2
27925 #. type: =head2
27926 #: ../fish/guestfish-actions.pod:2909
27927 msgid "mkfifo"
27928 msgstr ""
27929
27930 # type: verbatim
27931 #. type: verbatim
27932 #: ../fish/guestfish-actions.pod:2911
27933 #, no-wrap
27934 msgid ""
27935 " mkfifo mode path\n"
27936 "\n"
27937 msgstr ""
27938
27939 # type: textblock
27940 #. type: textblock
27941 #: ../fish/guestfish-actions.pod:2913
27942 msgid ""
27943 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27944 "is just a convenient wrapper around L</mknod>."
27945 msgstr ""
27946
27947 # type: =head2
27948 #. type: =head2
27949 #: ../fish/guestfish-actions.pod:2919
27950 msgid "mkfs"
27951 msgstr ""
27952
27953 # type: verbatim
27954 #. type: verbatim
27955 #: ../fish/guestfish-actions.pod:2921
27956 #, no-wrap
27957 msgid ""
27958 " mkfs fstype device\n"
27959 "\n"
27960 msgstr ""
27961
27962 # type: =head2
27963 #. type: =head2
27964 #: ../fish/guestfish-actions.pod:2927
27965 msgid "mkfs-b"
27966 msgstr ""
27967
27968 # type: verbatim
27969 #. type: verbatim
27970 #: ../fish/guestfish-actions.pod:2929
27971 #, no-wrap
27972 msgid ""
27973 " mkfs-b fstype blocksize device\n"
27974 "\n"
27975 msgstr ""
27976
27977 # type: textblock
27978 #. type: textblock
27979 #: ../fish/guestfish-actions.pod:2931
27980 msgid ""
27981 "This call is similar to L</mkfs>, but it allows you to control the block "
27982 "size of the resulting filesystem.  Supported block sizes depend on the "
27983 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27984 msgstr ""
27985
27986 # type: =head2
27987 #. type: =head2
27988 #: ../fish/guestfish-actions.pod:2946
27989 msgid "mkfs-opts"
27990 msgstr ""
27991
27992 #. type: verbatim
27993 #: ../fish/guestfish-actions.pod:2948
27994 #, no-wrap
27995 msgid ""
27996 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
27997 "\n"
27998 msgstr ""
27999
28000 # type: =head2
28001 #. type: =head2
28002 #: ../fish/guestfish-actions.pod:2983
28003 msgid "mkmountpoint"
28004 msgstr ""
28005
28006 # type: verbatim
28007 #. type: verbatim
28008 #: ../fish/guestfish-actions.pod:2985
28009 #, no-wrap
28010 msgid ""
28011 " mkmountpoint exemptpath\n"
28012 "\n"
28013 msgstr ""
28014
28015 # type: textblock
28016 #. type: textblock
28017 #: ../fish/guestfish-actions.pod:2987
28018 msgid ""
28019 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
28020 "to create extra mountpoints before mounting the first filesystem."
28021 msgstr ""
28022
28023 # type: textblock
28024 #. type: textblock
28025 #: ../fish/guestfish-actions.pod:3011
28026 msgid ""
28027 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
28028 "unexpected errors if you try to mix these calls.  It is safest to manually "
28029 "unmount filesystems and remove mountpoints after use."
28030 msgstr ""
28031
28032 # type: textblock
28033 #. type: textblock
28034 #: ../fish/guestfish-actions.pod:3015
28035 msgid ""
28036 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
28037 "for this to work for manual mountpoints, you must ensure that the innermost "
28038 "mountpoints have the longest pathnames, as in the example code above."
28039 msgstr ""
28040
28041 #. type: textblock
28042 #: ../fish/guestfish-actions.pod:3022
28043 msgid ""
28044 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
28045 "L</umount-all> to be called when the handle is closed which can also trigger "
28046 "these issues."
28047 msgstr ""
28048
28049 # type: =head2
28050 #. type: =head2
28051 #: ../fish/guestfish-actions.pod:3026
28052 msgid "mknod"
28053 msgstr ""
28054
28055 # type: verbatim
28056 #. type: verbatim
28057 #: ../fish/guestfish-actions.pod:3028
28058 #, no-wrap
28059 msgid ""
28060 " mknod mode devmajor devminor path\n"
28061 "\n"
28062 msgstr ""
28063
28064 # type: textblock
28065 #. type: textblock
28066 #: ../fish/guestfish-actions.pod:3038
28067 msgid ""
28068 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28069 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28070 "regular file).  These constants are available in the standard Linux header "
28071 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28072 "wrappers around this command which bitwise OR in the appropriate constant "
28073 "for you."
28074 msgstr ""
28075
28076 # type: =head2
28077 #. type: =head2
28078 #: ../fish/guestfish-actions.pod:3048
28079 msgid "mknod-b"
28080 msgstr ""
28081
28082 # type: verbatim
28083 #. type: verbatim
28084 #: ../fish/guestfish-actions.pod:3050
28085 #, no-wrap
28086 msgid ""
28087 " mknod-b mode devmajor devminor path\n"
28088 "\n"
28089 msgstr ""
28090
28091 # type: textblock
28092 #. type: textblock
28093 #: ../fish/guestfish-actions.pod:3052
28094 msgid ""
28095 "This call creates a block device node called C<path> with mode C<mode> and "
28096 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28097 "wrapper around L</mknod>."
28098 msgstr ""
28099
28100 # type: =head2
28101 #. type: =head2
28102 #: ../fish/guestfish-actions.pod:3058
28103 msgid "mknod-c"
28104 msgstr ""
28105
28106 # type: verbatim
28107 #. type: verbatim
28108 #: ../fish/guestfish-actions.pod:3060
28109 #, no-wrap
28110 msgid ""
28111 " mknod-c mode devmajor devminor path\n"
28112 "\n"
28113 msgstr ""
28114
28115 # type: textblock
28116 #. type: textblock
28117 #: ../fish/guestfish-actions.pod:3062
28118 msgid ""
28119 "This call creates a char device node called C<path> with mode C<mode> and "
28120 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28121 "wrapper around L</mknod>."
28122 msgstr ""
28123
28124 # type: =head2
28125 #. type: =head2
28126 #: ../fish/guestfish-actions.pod:3068
28127 msgid "mkswap"
28128 msgstr ""
28129
28130 # type: verbatim
28131 #. type: verbatim
28132 #: ../fish/guestfish-actions.pod:3070
28133 #, no-wrap
28134 msgid ""
28135 " mkswap device\n"
28136 "\n"
28137 msgstr ""
28138
28139 # type: =head2
28140 #. type: =head2
28141 #: ../fish/guestfish-actions.pod:3074
28142 msgid "mkswap-L"
28143 msgstr ""
28144
28145 # type: verbatim
28146 #. type: verbatim
28147 #: ../fish/guestfish-actions.pod:3076
28148 #, no-wrap
28149 msgid ""
28150 " mkswap-L label device\n"
28151 "\n"
28152 msgstr ""
28153
28154 # type: =head2
28155 #. type: =head2
28156 #: ../fish/guestfish-actions.pod:3084
28157 msgid "mkswap-U"
28158 msgstr ""
28159
28160 # type: verbatim
28161 #. type: verbatim
28162 #: ../fish/guestfish-actions.pod:3086
28163 #, no-wrap
28164 msgid ""
28165 " mkswap-U uuid device\n"
28166 "\n"
28167 msgstr ""
28168
28169 # type: =head2
28170 #. type: =head2
28171 #: ../fish/guestfish-actions.pod:3090
28172 msgid "mkswap-file"
28173 msgstr ""
28174
28175 # type: verbatim
28176 #. type: verbatim
28177 #: ../fish/guestfish-actions.pod:3092
28178 #, no-wrap
28179 msgid ""
28180 " mkswap-file path\n"
28181 "\n"
28182 msgstr ""
28183
28184 # type: textblock
28185 #. type: textblock
28186 #: ../fish/guestfish-actions.pod:3096
28187 msgid ""
28188 "This command just writes a swap file signature to an existing file.  To "
28189 "create the file itself, use something like L</fallocate>."
28190 msgstr ""
28191
28192 # type: =head2
28193 #. type: =head2
28194 #: ../fish/guestfish-actions.pod:3099
28195 msgid "modprobe"
28196 msgstr ""
28197
28198 # type: verbatim
28199 #. type: verbatim
28200 #: ../fish/guestfish-actions.pod:3101
28201 #, no-wrap
28202 msgid ""
28203 " modprobe modulename\n"
28204 "\n"
28205 msgstr ""
28206
28207 # type: =head2
28208 #. type: =head2
28209 #: ../fish/guestfish-actions.pod:3108
28210 msgid "mount"
28211 msgstr ""
28212
28213 # type: verbatim
28214 #. type: verbatim
28215 #: ../fish/guestfish-actions.pod:3110
28216 #, no-wrap
28217 msgid ""
28218 " mount device mountpoint\n"
28219 "\n"
28220 msgstr ""
28221
28222 # type: textblock
28223 #. type: textblock
28224 #: ../fish/guestfish-actions.pod:3126
28225 msgid ""
28226 "B<Important note:> When you use this call, the filesystem options C<sync> "
28227 "and C<noatime> are set implicitly.  This was originally done because we "
28228 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28229 "very large negative performance impact and negligible effect on "
28230 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28231 "code that needs performance, and instead use L</mount-options> (use an empty "
28232 "string for the first parameter if you don't want any options)."
28233 msgstr ""
28234
28235 # type: =head2
28236 #. type: =head2
28237 #: ../fish/guestfish-actions.pod:3136
28238 msgid "mount-loop"
28239 msgstr ""
28240
28241 # type: verbatim
28242 #. type: verbatim
28243 #: ../fish/guestfish-actions.pod:3138
28244 #, no-wrap
28245 msgid ""
28246 " mount-loop file mountpoint\n"
28247 "\n"
28248 msgstr ""
28249
28250 # type: =head2
28251 #. type: =head2
28252 #: ../fish/guestfish-actions.pod:3144
28253 msgid "mount-options"
28254 msgstr ""
28255
28256 # type: verbatim
28257 #. type: verbatim
28258 #: ../fish/guestfish-actions.pod:3146
28259 #, no-wrap
28260 msgid ""
28261 " mount-options options device mountpoint\n"
28262 "\n"
28263 msgstr ""
28264
28265 # type: textblock
28266 #. type: textblock
28267 #: ../fish/guestfish-actions.pod:3148
28268 msgid ""
28269 "This is the same as the L</mount> command, but it allows you to set the "
28270 "mount options as for the L<mount(8)> I<-o> flag."
28271 msgstr ""
28272
28273 # type: =head2
28274 #. type: =head2
28275 #: ../fish/guestfish-actions.pod:3156
28276 msgid "mount-ro"
28277 msgstr ""
28278
28279 # type: verbatim
28280 #. type: verbatim
28281 #: ../fish/guestfish-actions.pod:3158
28282 #, no-wrap
28283 msgid ""
28284 " mount-ro device mountpoint\n"
28285 "\n"
28286 msgstr ""
28287
28288 # type: textblock
28289 #. type: textblock
28290 #: ../fish/guestfish-actions.pod:3160
28291 msgid ""
28292 "This is the same as the L</mount> command, but it mounts the filesystem with "
28293 "the read-only (I<-o ro>) flag."
28294 msgstr ""
28295
28296 # type: =head2
28297 #. type: =head2
28298 #: ../fish/guestfish-actions.pod:3163
28299 msgid "mount-vfs"
28300 msgstr ""
28301
28302 # type: verbatim
28303 #. type: verbatim
28304 #: ../fish/guestfish-actions.pod:3165
28305 #, no-wrap
28306 msgid ""
28307 " mount-vfs options vfstype device mountpoint\n"
28308 "\n"
28309 msgstr ""
28310
28311 # type: textblock
28312 #. type: textblock
28313 #: ../fish/guestfish-actions.pod:3167
28314 msgid ""
28315 "This is the same as the L</mount> command, but it allows you to set both the "
28316 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
28317 msgstr ""
28318
28319 # type: =head2
28320 #. type: =head2
28321 #: ../fish/guestfish-actions.pod:3171
28322 msgid "mountpoints"
28323 msgstr ""
28324
28325 # type: verbatim
28326 #. type: verbatim
28327 #: ../fish/guestfish-actions.pod:3173
28328 #, no-wrap
28329 msgid ""
28330 " mountpoints\n"
28331 "\n"
28332 msgstr ""
28333
28334 # type: textblock
28335 #. type: textblock
28336 #: ../fish/guestfish-actions.pod:3175
28337 msgid ""
28338 "This call is similar to L</mounts>.  That call returns a list of devices.  "
28339 "This one returns a hash table (map) of device name to directory where the "
28340 "device is mounted."
28341 msgstr ""
28342
28343 # type: =head2
28344 #. type: =head2
28345 #: ../fish/guestfish-actions.pod:3179
28346 msgid "mounts"
28347 msgstr ""
28348
28349 # type: verbatim
28350 #. type: verbatim
28351 #: ../fish/guestfish-actions.pod:3181
28352 #, no-wrap
28353 msgid ""
28354 " mounts\n"
28355 "\n"
28356 msgstr ""
28357
28358 # type: textblock
28359 #. type: textblock
28360 #: ../fish/guestfish-actions.pod:3188
28361 msgid "See also: L</mountpoints>"
28362 msgstr ""
28363
28364 # type: =head2
28365 #. type: =head2
28366 #: ../fish/guestfish-actions.pod:3190
28367 msgid "mv"
28368 msgstr ""
28369
28370 # type: verbatim
28371 #. type: verbatim
28372 #: ../fish/guestfish-actions.pod:3192
28373 #, no-wrap
28374 msgid ""
28375 " mv src dest\n"
28376 "\n"
28377 msgstr ""
28378
28379 # type: =head2
28380 #. type: =head2
28381 #: ../fish/guestfish-actions.pod:3197
28382 msgid "ntfs-3g-probe"
28383 msgstr ""
28384
28385 # type: verbatim
28386 #. type: verbatim
28387 #: ../fish/guestfish-actions.pod:3199
28388 #, no-wrap
28389 msgid ""
28390 " ntfs-3g-probe true|false device\n"
28391 "\n"
28392 msgstr ""
28393
28394 # type: =head2
28395 #. type: =head2
28396 #: ../fish/guestfish-actions.pod:3213
28397 msgid "ntfsresize"
28398 msgstr ""
28399
28400 # type: verbatim
28401 #. type: verbatim
28402 #: ../fish/guestfish-actions.pod:3215
28403 #, no-wrap
28404 msgid ""
28405 " ntfsresize device\n"
28406 "\n"
28407 msgstr ""
28408
28409 # type: =head2
28410 #. type: =head2
28411 #: ../fish/guestfish-actions.pod:3221
28412 msgid "ntfsresize-size"
28413 msgstr ""
28414
28415 # type: verbatim
28416 #. type: verbatim
28417 #: ../fish/guestfish-actions.pod:3223
28418 #, no-wrap
28419 msgid ""
28420 " ntfsresize-size device size\n"
28421 "\n"
28422 msgstr ""
28423
28424 # type: textblock
28425 #. type: textblock
28426 #: ../fish/guestfish-actions.pod:3225
28427 msgid ""
28428 "This command is the same as L</ntfsresize> except that it allows you to "
28429 "specify the new size (in bytes) explicitly."
28430 msgstr ""
28431
28432 # type: =head2
28433 #. type: =head2
28434 #: ../fish/guestfish-actions.pod:3228
28435 msgid "part-add"
28436 msgstr ""
28437
28438 # type: verbatim
28439 #. type: verbatim
28440 #: ../fish/guestfish-actions.pod:3230
28441 #, no-wrap
28442 msgid ""
28443 " part-add device prlogex startsect endsect\n"
28444 "\n"
28445 msgstr ""
28446
28447 # type: textblock
28448 #. type: textblock
28449 #: ../fish/guestfish-actions.pod:3232
28450 msgid ""
28451 "This command adds a partition to C<device>.  If there is no partition table "
28452 "on the device, call L</part-init> first."
28453 msgstr ""
28454
28455 # type: textblock
28456 #. type: textblock
28457 #: ../fish/guestfish-actions.pod:3244
28458 msgid ""
28459 "Creating a partition which covers the whole disk is not so easy.  Use L</"
28460 "part-disk> to do that."
28461 msgstr ""
28462
28463 # type: =head2
28464 #. type: =head2
28465 #: ../fish/guestfish-actions.pod:3247
28466 msgid "part-del"
28467 msgstr ""
28468
28469 # type: verbatim
28470 #. type: verbatim
28471 #: ../fish/guestfish-actions.pod:3249
28472 #, no-wrap
28473 msgid ""
28474 " part-del device partnum\n"
28475 "\n"
28476 msgstr ""
28477
28478 # type: =head2
28479 #. type: =head2
28480 #: ../fish/guestfish-actions.pod:3257
28481 msgid "part-disk"
28482 msgstr ""
28483
28484 # type: verbatim
28485 #. type: verbatim
28486 #: ../fish/guestfish-actions.pod:3259
28487 #, no-wrap
28488 msgid ""
28489 " part-disk device parttype\n"
28490 "\n"
28491 msgstr ""
28492
28493 # type: textblock
28494 #. type: textblock
28495 #: ../fish/guestfish-actions.pod:3261
28496 msgid ""
28497 "This command is simply a combination of L</part-init> followed by L</part-"
28498 "add> to create a single primary partition covering the whole disk."
28499 msgstr ""
28500
28501 # type: textblock
28502 #. type: textblock
28503 #: ../fish/guestfish-actions.pod:3265
28504 msgid ""
28505 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28506 "possible values are described in L</part-init>."
28507 msgstr ""
28508
28509 # type: =head2
28510 #. type: =head2
28511 #: ../fish/guestfish-actions.pod:3271
28512 msgid "part-get-bootable"
28513 msgstr ""
28514
28515 # type: verbatim
28516 #. type: verbatim
28517 #: ../fish/guestfish-actions.pod:3273
28518 #, no-wrap
28519 msgid ""
28520 " part-get-bootable device partnum\n"
28521 "\n"
28522 msgstr ""
28523
28524 # type: textblock
28525 #. type: textblock
28526 #: ../fish/guestfish-actions.pod:3278
28527 msgid "See also L</part-set-bootable>."
28528 msgstr ""
28529
28530 # type: =head2
28531 #. type: =head2
28532 #: ../fish/guestfish-actions.pod:3280
28533 msgid "part-get-mbr-id"
28534 msgstr ""
28535
28536 # type: verbatim
28537 #. type: verbatim
28538 #: ../fish/guestfish-actions.pod:3282
28539 #, no-wrap
28540 msgid ""
28541 " part-get-mbr-id device partnum\n"
28542 "\n"
28543 msgstr ""
28544
28545 # type: textblock
28546 #. type: textblock
28547 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3425
28548 msgid ""
28549 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28550 "undefined results for other partition table types (see L</part-get-"
28551 "parttype>)."
28552 msgstr ""
28553
28554 # type: =head2
28555 #. type: =head2
28556 #: ../fish/guestfish-actions.pod:3291
28557 msgid "part-get-parttype"
28558 msgstr ""
28559
28560 # type: verbatim
28561 #. type: verbatim
28562 #: ../fish/guestfish-actions.pod:3293
28563 #, no-wrap
28564 msgid ""
28565 " part-get-parttype device\n"
28566 "\n"
28567 msgstr ""
28568
28569 # type: textblock
28570 #. type: textblock
28571 #: ../fish/guestfish-actions.pod:3298
28572 msgid ""
28573 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28574 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28575 "possible, although unusual.  See L</part-init> for a full list."
28576 msgstr ""
28577
28578 # type: =head2
28579 #. type: =head2
28580 #: ../fish/guestfish-actions.pod:3303
28581 msgid "part-init"
28582 msgstr ""
28583
28584 # type: verbatim
28585 #. type: verbatim
28586 #: ../fish/guestfish-actions.pod:3305
28587 #, no-wrap
28588 msgid ""
28589 " part-init device parttype\n"
28590 "\n"
28591 msgstr ""
28592
28593 # type: textblock
28594 #. type: textblock
28595 #: ../fish/guestfish-actions.pod:3311
28596 msgid ""
28597 "Initially there are no partitions.  Following this, you should call L</part-"
28598 "add> for each partition required."
28599 msgstr ""
28600
28601 # type: =head2
28602 #. type: =head2
28603 #: ../fish/guestfish-actions.pod:3374
28604 msgid "part-list"
28605 msgstr ""
28606
28607 # type: verbatim
28608 #. type: verbatim
28609 #: ../fish/guestfish-actions.pod:3376
28610 #, no-wrap
28611 msgid ""
28612 " part-list device\n"
28613 "\n"
28614 msgstr ""
28615
28616 # type: textblock
28617 #. type: textblock
28618 #: ../fish/guestfish-actions.pod:3391
28619 msgid ""
28620 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28621 "the device's sector size, see L</blockdev-getss>."
28622 msgstr ""
28623
28624 # type: =head2
28625 #. type: =head2
28626 #: ../fish/guestfish-actions.pod:3404
28627 msgid "part-set-bootable"
28628 msgstr ""
28629
28630 # type: verbatim
28631 #. type: verbatim
28632 #: ../fish/guestfish-actions.pod:3406
28633 #, no-wrap
28634 msgid ""
28635 " part-set-bootable device partnum true|false\n"
28636 "\n"
28637 msgstr ""
28638
28639 # type: =head2
28640 #. type: =head2
28641 #: ../fish/guestfish-actions.pod:3415
28642 msgid "part-set-mbr-id"
28643 msgstr ""
28644
28645 # type: verbatim
28646 #. type: verbatim
28647 #: ../fish/guestfish-actions.pod:3417
28648 #, no-wrap
28649 msgid ""
28650 " part-set-mbr-id device partnum idbyte\n"
28651 "\n"
28652 msgstr ""
28653
28654 # type: =head2
28655 #. type: =head2
28656 #: ../fish/guestfish-actions.pod:3429
28657 msgid "part-set-name"
28658 msgstr ""
28659
28660 # type: verbatim
28661 #. type: verbatim
28662 #: ../fish/guestfish-actions.pod:3431
28663 #, no-wrap
28664 msgid ""
28665 " part-set-name device partnum name\n"
28666 "\n"
28667 msgstr ""
28668
28669 # type: =head2
28670 #. type: =head2
28671 #: ../fish/guestfish-actions.pod:3439
28672 msgid "part-to-dev"
28673 msgstr ""
28674
28675 # type: verbatim
28676 #. type: verbatim
28677 #: ../fish/guestfish-actions.pod:3441
28678 #, no-wrap
28679 msgid ""
28680 " part-to-dev partition\n"
28681 "\n"
28682 msgstr ""
28683
28684 # type: textblock
28685 #. type: textblock
28686 #: ../fish/guestfish-actions.pod:3447
28687 msgid ""
28688 "The named partition must exist, for example as a string returned from L</"
28689 "list-partitions>."
28690 msgstr ""
28691
28692 # type: =head2
28693 #. type: =head2
28694 #: ../fish/guestfish-actions.pod:3450
28695 msgid "ping-daemon"
28696 msgstr ""
28697
28698 # type: verbatim
28699 #. type: verbatim
28700 #: ../fish/guestfish-actions.pod:3452
28701 #, no-wrap
28702 msgid ""
28703 " ping-daemon\n"
28704 "\n"
28705 msgstr ""
28706
28707 # type: =head2
28708 #. type: =head2
28709 #: ../fish/guestfish-actions.pod:3459
28710 msgid "pread"
28711 msgstr ""
28712
28713 # type: verbatim
28714 #. type: verbatim
28715 #: ../fish/guestfish-actions.pod:3461
28716 #, no-wrap
28717 msgid ""
28718 " pread path count offset\n"
28719 "\n"
28720 msgstr ""
28721
28722 # type: textblock
28723 #. type: textblock
28724 #: ../fish/guestfish-actions.pod:3469
28725 msgid "See also L</pwrite>, L</pread-device>."
28726 msgstr ""
28727
28728 # type: =head2
28729 #. type: =head2
28730 #: ../fish/guestfish-actions.pod:3474
28731 msgid "pread-device"
28732 msgstr ""
28733
28734 # type: verbatim
28735 #. type: verbatim
28736 #: ../fish/guestfish-actions.pod:3476
28737 #, no-wrap
28738 msgid ""
28739 " pread-device device count offset\n"
28740 "\n"
28741 msgstr ""
28742
28743 # type: textblock
28744 #. type: textblock
28745 #: ../fish/guestfish-actions.pod:3484
28746 msgid "See also L</pread>."
28747 msgstr ""
28748
28749 # type: =head2
28750 #. type: =head2
28751 #: ../fish/guestfish-actions.pod:3489
28752 msgid "pvcreate"
28753 msgstr ""
28754
28755 # type: verbatim
28756 #. type: verbatim
28757 #: ../fish/guestfish-actions.pod:3491
28758 #, no-wrap
28759 msgid ""
28760 " pvcreate device\n"
28761 "\n"
28762 msgstr ""
28763
28764 # type: =head2
28765 #. type: =head2
28766 #: ../fish/guestfish-actions.pod:3497
28767 msgid "pvremove"
28768 msgstr ""
28769
28770 # type: verbatim
28771 #. type: verbatim
28772 #: ../fish/guestfish-actions.pod:3499
28773 #, no-wrap
28774 msgid ""
28775 " pvremove device\n"
28776 "\n"
28777 msgstr ""
28778
28779 # type: =head2
28780 #. type: =head2
28781 #: ../fish/guestfish-actions.pod:3508
28782 msgid "pvresize"
28783 msgstr ""
28784
28785 # type: verbatim
28786 #. type: verbatim
28787 #: ../fish/guestfish-actions.pod:3510
28788 #, no-wrap
28789 msgid ""
28790 " pvresize device\n"
28791 "\n"
28792 msgstr ""
28793
28794 # type: =head2
28795 #. type: =head2
28796 #: ../fish/guestfish-actions.pod:3515
28797 msgid "pvresize-size"
28798 msgstr ""
28799
28800 # type: verbatim
28801 #. type: verbatim
28802 #: ../fish/guestfish-actions.pod:3517
28803 #, no-wrap
28804 msgid ""
28805 " pvresize-size device size\n"
28806 "\n"
28807 msgstr ""
28808
28809 # type: textblock
28810 #. type: textblock
28811 #: ../fish/guestfish-actions.pod:3519
28812 msgid ""
28813 "This command is the same as L</pvresize> except that it allows you to "
28814 "specify the new size (in bytes) explicitly."
28815 msgstr ""
28816
28817 # type: =head2
28818 #. type: =head2
28819 #: ../fish/guestfish-actions.pod:3522
28820 msgid "pvs"
28821 msgstr ""
28822
28823 # type: verbatim
28824 #. type: verbatim
28825 #: ../fish/guestfish-actions.pod:3524
28826 #, no-wrap
28827 msgid ""
28828 " pvs\n"
28829 "\n"
28830 msgstr ""
28831
28832 # type: textblock
28833 #. type: textblock
28834 #: ../fish/guestfish-actions.pod:3532
28835 msgid "See also L</pvs-full>."
28836 msgstr ""
28837
28838 # type: =head2
28839 #. type: =head2
28840 #: ../fish/guestfish-actions.pod:3534
28841 msgid "pvs-full"
28842 msgstr ""
28843
28844 # type: verbatim
28845 #. type: verbatim
28846 #: ../fish/guestfish-actions.pod:3536
28847 #, no-wrap
28848 msgid ""
28849 " pvs-full\n"
28850 "\n"
28851 msgstr ""
28852
28853 # type: =head2
28854 #. type: =head2
28855 #: ../fish/guestfish-actions.pod:3541
28856 msgid "pvuuid"
28857 msgstr ""
28858
28859 # type: verbatim
28860 #. type: verbatim
28861 #: ../fish/guestfish-actions.pod:3543
28862 #, no-wrap
28863 msgid ""
28864 " pvuuid device\n"
28865 "\n"
28866 msgstr ""
28867
28868 # type: =head2
28869 #. type: =head2
28870 #: ../fish/guestfish-actions.pod:3547
28871 msgid "pwrite"
28872 msgstr ""
28873
28874 # type: verbatim
28875 #. type: verbatim
28876 #: ../fish/guestfish-actions.pod:3549
28877 #, no-wrap
28878 msgid ""
28879 " pwrite path content offset\n"
28880 "\n"
28881 msgstr ""
28882
28883 # type: textblock
28884 #. type: textblock
28885 #: ../fish/guestfish-actions.pod:3560
28886 msgid "See also L</pread>, L</pwrite-device>."
28887 msgstr ""
28888
28889 # type: =head2
28890 #. type: =head2
28891 #: ../fish/guestfish-actions.pod:3565
28892 msgid "pwrite-device"
28893 msgstr ""
28894
28895 # type: verbatim
28896 #. type: verbatim
28897 #: ../fish/guestfish-actions.pod:3567
28898 #, no-wrap
28899 msgid ""
28900 " pwrite-device device content offset\n"
28901 "\n"
28902 msgstr ""
28903
28904 # type: textblock
28905 #. type: textblock
28906 #: ../fish/guestfish-actions.pod:3577
28907 msgid "See also L</pwrite>."
28908 msgstr ""
28909
28910 # type: =head2
28911 #. type: =head2
28912 #: ../fish/guestfish-actions.pod:3582
28913 msgid "read-file"
28914 msgstr ""
28915
28916 # type: verbatim
28917 #. type: verbatim
28918 #: ../fish/guestfish-actions.pod:3584
28919 #, no-wrap
28920 msgid ""
28921 " read-file path\n"
28922 "\n"
28923 msgstr ""
28924
28925 # type: textblock
28926 #. type: textblock
28927 #: ../fish/guestfish-actions.pod:3589
28928 msgid ""
28929 "Unlike L</cat>, this function can correctly handle files that contain "
28930 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28931 "is limited in the total size of file that can be handled."
28932 msgstr ""
28933
28934 # type: =head2
28935 #. type: =head2
28936 #: ../fish/guestfish-actions.pod:3597
28937 msgid "read-lines"
28938 msgstr ""
28939
28940 # type: verbatim
28941 #. type: verbatim
28942 #: ../fish/guestfish-actions.pod:3599
28943 #, no-wrap
28944 msgid ""
28945 " read-lines path\n"
28946 "\n"
28947 msgstr ""
28948
28949 # type: textblock
28950 #. type: textblock
28951 #: ../fish/guestfish-actions.pod:3606
28952 msgid ""
28953 "Note that this function cannot correctly handle binary files (specifically, "
28954 "files containing C<\\0> character which is treated as end of line).  For "
28955 "those you need to use the L</read-file> function which has a more complex "
28956 "interface."
28957 msgstr ""
28958
28959 # type: =head2
28960 #. type: =head2
28961 #: ../fish/guestfish-actions.pod:3611
28962 msgid "readdir"
28963 msgstr ""
28964
28965 # type: verbatim
28966 #. type: verbatim
28967 #: ../fish/guestfish-actions.pod:3613
28968 #, no-wrap
28969 msgid ""
28970 " readdir dir\n"
28971 "\n"
28972 msgstr ""
28973
28974 # type: textblock
28975 #. type: textblock
28976 #: ../fish/guestfish-actions.pod:3665
28977 msgid ""
28978 "This function is primarily intended for use by programs.  To get a simple "
28979 "list of names, use L</ls>.  To get a printable directory for human "
28980 "consumption, use L</ll>."
28981 msgstr ""
28982
28983 # type: =head2
28984 #. type: =head2
28985 #: ../fish/guestfish-actions.pod:3669
28986 msgid "readlink"
28987 msgstr ""
28988
28989 # type: verbatim
28990 #. type: verbatim
28991 #: ../fish/guestfish-actions.pod:3671
28992 #, no-wrap
28993 msgid ""
28994 " readlink path\n"
28995 "\n"
28996 msgstr ""
28997
28998 # type: =head2
28999 #. type: =head2
29000 #: ../fish/guestfish-actions.pod:3675
29001 msgid "readlinklist"
29002 msgstr ""
29003
29004 # type: verbatim
29005 #. type: verbatim
29006 #: ../fish/guestfish-actions.pod:3677
29007 #, no-wrap
29008 msgid ""
29009 " readlinklist path 'names ...'\n"
29010 "\n"
29011 msgstr ""
29012
29013 # type: =head2
29014 #. type: =head2
29015 #: ../fish/guestfish-actions.pod:3701
29016 msgid "realpath"
29017 msgstr ""
29018
29019 # type: verbatim
29020 #. type: verbatim
29021 #: ../fish/guestfish-actions.pod:3703
29022 #, no-wrap
29023 msgid ""
29024 " realpath path\n"
29025 "\n"
29026 msgstr ""
29027
29028 # type: =head2
29029 #. type: =head2
29030 #: ../fish/guestfish-actions.pod:3708
29031 msgid "removexattr"
29032 msgstr ""
29033
29034 # type: verbatim
29035 #. type: verbatim
29036 #: ../fish/guestfish-actions.pod:3710
29037 #, no-wrap
29038 msgid ""
29039 " removexattr xattr path\n"
29040 "\n"
29041 msgstr ""
29042
29043 # type: textblock
29044 #. type: textblock
29045 #: ../fish/guestfish-actions.pod:3715
29046 msgid "See also: L</lremovexattr>, L<attr(5)>."
29047 msgstr ""
29048
29049 # type: =head2
29050 #. type: =head2
29051 #: ../fish/guestfish-actions.pod:3717
29052 msgid "resize2fs"
29053 msgstr ""
29054
29055 # type: verbatim
29056 #. type: verbatim
29057 #: ../fish/guestfish-actions.pod:3719
29058 #, no-wrap
29059 msgid ""
29060 " resize2fs device\n"
29061 "\n"
29062 msgstr ""
29063
29064 # type: textblock
29065 #. type: textblock
29066 #: ../fish/guestfish-actions.pod:3724
29067 msgid ""
29068 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29069 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29070 "gives an error about this and sometimes not.  In any case, it is always safe "
29071 "to call L</e2fsck-f> before calling this function."
29072 msgstr ""
29073
29074 #. type: =head2
29075 #: ../fish/guestfish-actions.pod:3730
29076 msgid "resize2fs-M"
29077 msgstr ""
29078
29079 #. type: verbatim
29080 #: ../fish/guestfish-actions.pod:3732
29081 #, no-wrap
29082 msgid ""
29083 " resize2fs-M device\n"
29084 "\n"
29085 msgstr ""
29086
29087 #. type: textblock
29088 #: ../fish/guestfish-actions.pod:3734
29089 msgid ""
29090 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29091 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
29092 "command."
29093 msgstr ""
29094
29095 #. type: textblock
29096 #: ../fish/guestfish-actions.pod:3738
29097 msgid ""
29098 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29099 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29100 "multiplied together, give the resulting size of the minimal filesystem in "
29101 "bytes."
29102 msgstr ""
29103
29104 # type: =head2
29105 #. type: =head2
29106 #: ../fish/guestfish-actions.pod:3743
29107 msgid "resize2fs-size"
29108 msgstr ""
29109
29110 # type: verbatim
29111 #. type: verbatim
29112 #: ../fish/guestfish-actions.pod:3745
29113 #, no-wrap
29114 msgid ""
29115 " resize2fs-size device size\n"
29116 "\n"
29117 msgstr ""
29118
29119 # type: textblock
29120 #. type: textblock
29121 #: ../fish/guestfish-actions.pod:3747
29122 msgid ""
29123 "This command is the same as L</resize2fs> except that it allows you to "
29124 "specify the new size (in bytes) explicitly."
29125 msgstr ""
29126
29127 # type: =head2
29128 #. type: =head2
29129 #: ../fish/guestfish-actions.pod:3750
29130 msgid "rm"
29131 msgstr ""
29132
29133 # type: verbatim
29134 #. type: verbatim
29135 #: ../fish/guestfish-actions.pod:3752
29136 #, no-wrap
29137 msgid ""
29138 " rm path\n"
29139 "\n"
29140 msgstr ""
29141
29142 # type: =head2
29143 #. type: =head2
29144 #: ../fish/guestfish-actions.pod:3756
29145 msgid "rm-rf"
29146 msgstr ""
29147
29148 # type: verbatim
29149 #. type: verbatim
29150 #: ../fish/guestfish-actions.pod:3758
29151 #, no-wrap
29152 msgid ""
29153 " rm-rf path\n"
29154 "\n"
29155 msgstr ""
29156
29157 # type: =head2
29158 #. type: =head2
29159 #: ../fish/guestfish-actions.pod:3764
29160 msgid "rmdir"
29161 msgstr ""
29162
29163 # type: verbatim
29164 #. type: verbatim
29165 #: ../fish/guestfish-actions.pod:3766
29166 #, no-wrap
29167 msgid ""
29168 " rmdir path\n"
29169 "\n"
29170 msgstr ""
29171
29172 # type: =head2
29173 #. type: =head2
29174 #: ../fish/guestfish-actions.pod:3770
29175 msgid "rmmountpoint"
29176 msgstr ""
29177
29178 # type: verbatim
29179 #. type: verbatim
29180 #: ../fish/guestfish-actions.pod:3772
29181 #, no-wrap
29182 msgid ""
29183 " rmmountpoint exemptpath\n"
29184 "\n"
29185 msgstr ""
29186
29187 # type: textblock
29188 #. type: textblock
29189 #: ../fish/guestfish-actions.pod:3774
29190 msgid ""
29191 "This calls removes a mountpoint that was previously created with L</"
29192 "mkmountpoint>.  See L</mkmountpoint> for full details."
29193 msgstr ""
29194
29195 # type: =head2
29196 #. type: =head2
29197 #: ../fish/guestfish-actions.pod:3778
29198 msgid "scrub-device"
29199 msgstr ""
29200
29201 # type: verbatim
29202 #. type: verbatim
29203 #: ../fish/guestfish-actions.pod:3780
29204 #, no-wrap
29205 msgid ""
29206 " scrub-device device\n"
29207 "\n"
29208 msgstr ""
29209
29210 # type: =head2
29211 #. type: =head2
29212 #: ../fish/guestfish-actions.pod:3791
29213 msgid "scrub-file"
29214 msgstr ""
29215
29216 # type: verbatim
29217 #. type: verbatim
29218 #: ../fish/guestfish-actions.pod:3793
29219 #, no-wrap
29220 msgid ""
29221 " scrub-file file\n"
29222 "\n"
29223 msgstr ""
29224
29225 # type: =head2
29226 #. type: =head2
29227 #: ../fish/guestfish-actions.pod:3803
29228 msgid "scrub-freespace"
29229 msgstr ""
29230
29231 # type: verbatim
29232 #. type: verbatim
29233 #: ../fish/guestfish-actions.pod:3805
29234 #, no-wrap
29235 msgid ""
29236 " scrub-freespace dir\n"
29237 "\n"
29238 msgstr ""
29239
29240 # type: textblock
29241 #. type: textblock
29242 #: ../fish/guestfish-actions.pod:3807
29243 msgid ""
29244 "This command creates the directory C<dir> and then fills it with files until "
29245 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29246 "deletes them.  The intention is to scrub any free space on the partition "
29247 "containing C<dir>."
29248 msgstr ""
29249
29250 # type: =head2
29251 #. type: =head2
29252 #: ../fish/guestfish-actions.pod:3816
29253 msgid "set-append"
29254 msgstr ""
29255
29256 # type: =head2
29257 #. type: =head2
29258 #: ../fish/guestfish-actions.pod:3818
29259 msgid "append"
29260 msgstr ""
29261
29262 # type: verbatim
29263 #. type: verbatim
29264 #: ../fish/guestfish-actions.pod:3820
29265 #, no-wrap
29266 msgid ""
29267 " set-append append\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: =head2
29272 #: ../fish/guestfish-actions.pod:3831
29273 msgid "set-attach-method"
29274 msgstr ""
29275
29276 #. type: =head2
29277 #: ../fish/guestfish-actions.pod:3833
29278 msgid "attach-method"
29279 msgstr ""
29280
29281 #. type: verbatim
29282 #: ../fish/guestfish-actions.pod:3835
29283 #, no-wrap
29284 msgid ""
29285 " set-attach-method attachmethod\n"
29286 "\n"
29287 msgstr ""
29288
29289 # type: =head2
29290 #. type: =head2
29291 #: ../fish/guestfish-actions.pod:3857
29292 msgid "set-autosync"
29293 msgstr ""
29294
29295 # type: =head2
29296 #. type: =head2
29297 #: ../fish/guestfish-actions.pod:3859
29298 msgid "autosync"
29299 msgstr ""
29300
29301 # type: verbatim
29302 #. type: verbatim
29303 #: ../fish/guestfish-actions.pod:3861
29304 #, no-wrap
29305 msgid ""
29306 " set-autosync true|false\n"
29307 "\n"
29308 msgstr ""
29309
29310 # type: =head2
29311 #. type: =head2
29312 #: ../fish/guestfish-actions.pod:3871
29313 msgid "set-direct"
29314 msgstr ""
29315
29316 # type: =head2
29317 #. type: =head2
29318 #: ../fish/guestfish-actions.pod:3873
29319 msgid "direct"
29320 msgstr ""
29321
29322 # type: verbatim
29323 #. type: verbatim
29324 #: ../fish/guestfish-actions.pod:3875
29325 #, no-wrap
29326 msgid ""
29327 " set-direct true|false\n"
29328 "\n"
29329 msgstr ""
29330
29331 # type: textblock
29332 #. type: textblock
29333 #: ../fish/guestfish-actions.pod:3881
29334 msgid ""
29335 "One consequence of this is that log messages aren't caught by the library "
29336 "and handled by L</set-log-message-callback>, but go straight to stdout."
29337 msgstr ""
29338
29339 # type: =head2
29340 #. type: =head2
29341 #: ../fish/guestfish-actions.pod:3890
29342 msgid "set-e2label"
29343 msgstr ""
29344
29345 # type: verbatim
29346 #. type: verbatim
29347 #: ../fish/guestfish-actions.pod:3892
29348 #, no-wrap
29349 msgid ""
29350 " set-e2label device label\n"
29351 "\n"
29352 msgstr ""
29353
29354 # type: textblock
29355 #. type: textblock
29356 #: ../fish/guestfish-actions.pod:3898
29357 msgid ""
29358 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
29359 "label on a filesystem."
29360 msgstr ""
29361
29362 # type: =head2
29363 #. type: =head2
29364 #: ../fish/guestfish-actions.pod:3901
29365 msgid "set-e2uuid"
29366 msgstr ""
29367
29368 # type: verbatim
29369 #. type: verbatim
29370 #: ../fish/guestfish-actions.pod:3903
29371 #, no-wrap
29372 msgid ""
29373 " set-e2uuid device uuid\n"
29374 "\n"
29375 msgstr ""
29376
29377 # type: textblock
29378 #. type: textblock
29379 #: ../fish/guestfish-actions.pod:3910
29380 msgid ""
29381 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
29382 "UUID of a filesystem."
29383 msgstr ""
29384
29385 # type: =head2
29386 #. type: =head2
29387 #: ../fish/guestfish-actions.pod:3913
29388 msgid "set-memsize"
29389 msgstr ""
29390
29391 # type: =head2
29392 #. type: =head2
29393 #: ../fish/guestfish-actions.pod:3915
29394 msgid "memsize"
29395 msgstr ""
29396
29397 # type: verbatim
29398 #. type: verbatim
29399 #: ../fish/guestfish-actions.pod:3917
29400 #, no-wrap
29401 msgid ""
29402 " set-memsize memsize\n"
29403 "\n"
29404 msgstr ""
29405
29406 # type: textblock
29407 #. type: textblock
29408 #: ../fish/guestfish-actions.pod:3919
29409 msgid ""
29410 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29411 "This only has any effect if called before L</launch>."
29412 msgstr ""
29413
29414 # type: =head2
29415 #. type: =head2
29416 #: ../fish/guestfish-actions.pod:3930
29417 msgid "set-network"
29418 msgstr ""
29419
29420 # type: =head2
29421 #. type: =head2
29422 #: ../fish/guestfish-actions.pod:3932
29423 msgid "network"
29424 msgstr ""
29425
29426 # type: verbatim
29427 #. type: verbatim
29428 #: ../fish/guestfish-actions.pod:3934
29429 #, no-wrap
29430 msgid ""
29431 " set-network true|false\n"
29432 "\n"
29433 msgstr ""
29434
29435 # type: textblock
29436 #. type: textblock
29437 #: ../fish/guestfish-actions.pod:3942
29438 msgid ""
29439 "You must call this before calling L</launch>, otherwise it has no effect."
29440 msgstr ""
29441
29442 # type: =head2
29443 #. type: =head2
29444 #: ../fish/guestfish-actions.pod:3945
29445 msgid "set-path"
29446 msgstr ""
29447
29448 # type: =head2
29449 #. type: =head2
29450 #: ../fish/guestfish-actions.pod:3947
29451 msgid "path"
29452 msgstr ""
29453
29454 # type: verbatim
29455 #. type: verbatim
29456 #: ../fish/guestfish-actions.pod:3949
29457 #, no-wrap
29458 msgid ""
29459 " set-path searchpath\n"
29460 "\n"
29461 msgstr ""
29462
29463 # type: =head2
29464 #. type: =head2
29465 #: ../fish/guestfish-actions.pod:3958
29466 msgid "set-qemu"
29467 msgstr ""
29468
29469 # type: =head2
29470 #. type: =head2
29471 #: ../fish/guestfish-actions.pod:3960
29472 msgid "qemu"
29473 msgstr ""
29474
29475 # type: verbatim
29476 #. type: verbatim
29477 #: ../fish/guestfish-actions.pod:3962
29478 #, no-wrap
29479 msgid ""
29480 " set-qemu qemu\n"
29481 "\n"
29482 msgstr ""
29483
29484 # type: =head2
29485 #. type: =head2
29486 #: ../fish/guestfish-actions.pod:3982
29487 msgid "set-recovery-proc"
29488 msgstr ""
29489
29490 # type: =head2
29491 #. type: =head2
29492 #: ../fish/guestfish-actions.pod:3984
29493 msgid "recovery-proc"
29494 msgstr ""
29495
29496 # type: verbatim
29497 #. type: verbatim
29498 #: ../fish/guestfish-actions.pod:3986
29499 #, no-wrap
29500 msgid ""
29501 " set-recovery-proc true|false\n"
29502 "\n"
29503 msgstr ""
29504
29505 # type: textblock
29506 #. type: textblock
29507 #: ../fish/guestfish-actions.pod:3988
29508 msgid ""
29509 "If this is called with the parameter C<false> then L</launch> does not "
29510 "create a recovery process.  The purpose of the recovery process is to stop "
29511 "runaway qemu processes in the case where the main program aborts abruptly."
29512 msgstr ""
29513
29514 # type: textblock
29515 #. type: textblock
29516 #: ../fish/guestfish-actions.pod:3993
29517 msgid ""
29518 "This only has any effect if called before L</launch>, and the default is "
29519 "true."
29520 msgstr ""
29521
29522 # type: =head2
29523 #. type: =head2
29524 #: ../fish/guestfish-actions.pod:4002
29525 msgid "set-selinux"
29526 msgstr ""
29527
29528 # type: =head2
29529 #. type: =head2
29530 #: ../fish/guestfish-actions.pod:4004
29531 msgid "selinux"
29532 msgstr ""
29533
29534 # type: verbatim
29535 #. type: verbatim
29536 #: ../fish/guestfish-actions.pod:4006
29537 #, no-wrap
29538 msgid ""
29539 " set-selinux true|false\n"
29540 "\n"
29541 msgstr ""
29542
29543 # type: =head2
29544 #. type: =head2
29545 #: ../fish/guestfish-actions.pod:4017
29546 msgid "set-trace"
29547 msgstr ""
29548
29549 # type: =head2
29550 #. type: =head2
29551 #: ../fish/guestfish-actions.pod:4019
29552 msgid "trace"
29553 msgstr ""
29554
29555 # type: verbatim
29556 #. type: verbatim
29557 #: ../fish/guestfish-actions.pod:4021
29558 #, no-wrap
29559 msgid ""
29560 " set-trace true|false\n"
29561 "\n"
29562 msgstr ""
29563
29564 #. type: textblock
29565 #: ../fish/guestfish-actions.pod:4033
29566 msgid ""
29567 "Trace messages are normally sent to C<stderr>, unless you register a "
29568 "callback to send them somewhere else (see L</set-event-callback>)."
29569 msgstr ""
29570
29571 # type: =head2
29572 #. type: =head2
29573 #: ../fish/guestfish-actions.pod:4037
29574 msgid "set-verbose"
29575 msgstr ""
29576
29577 # type: =head2
29578 #. type: =head2
29579 #: ../fish/guestfish-actions.pod:4039
29580 msgid "verbose"
29581 msgstr ""
29582
29583 # type: verbatim
29584 #. type: verbatim
29585 #: ../fish/guestfish-actions.pod:4041
29586 #, no-wrap
29587 msgid ""
29588 " set-verbose true|false\n"
29589 "\n"
29590 msgstr ""
29591
29592 #. type: textblock
29593 #: ../fish/guestfish-actions.pod:4048
29594 msgid ""
29595 "Verbose messages are normally sent to C<stderr>, unless you register a "
29596 "callback to send them somewhere else (see L</set-event-callback>)."
29597 msgstr ""
29598
29599 # type: =head2
29600 #. type: =head2
29601 #: ../fish/guestfish-actions.pod:4052
29602 msgid "setcon"
29603 msgstr ""
29604
29605 # type: verbatim
29606 #. type: verbatim
29607 #: ../fish/guestfish-actions.pod:4054
29608 #, no-wrap
29609 msgid ""
29610 " setcon context\n"
29611 "\n"
29612 msgstr ""
29613
29614 # type: =head2
29615 #. type: =head2
29616 #: ../fish/guestfish-actions.pod:4061
29617 msgid "setxattr"
29618 msgstr ""
29619
29620 # type: verbatim
29621 #. type: verbatim
29622 #: ../fish/guestfish-actions.pod:4063
29623 #, no-wrap
29624 msgid ""
29625 " setxattr xattr val vallen path\n"
29626 "\n"
29627 msgstr ""
29628
29629 # type: textblock
29630 #. type: textblock
29631 #: ../fish/guestfish-actions.pod:4069
29632 msgid "See also: L</lsetxattr>, L<attr(5)>."
29633 msgstr ""
29634
29635 # type: =head2
29636 #. type: =head2
29637 #: ../fish/guestfish-actions.pod:4071
29638 msgid "sfdisk"
29639 msgstr ""
29640
29641 # type: verbatim
29642 #. type: verbatim
29643 #: ../fish/guestfish-actions.pod:4073
29644 #, no-wrap
29645 msgid ""
29646 " sfdisk device cyls heads sectors 'lines ...'\n"
29647 "\n"
29648 msgstr ""
29649
29650 # type: textblock
29651 #. type: textblock
29652 #: ../fish/guestfish-actions.pod:4095
29653 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
29654 msgstr ""
29655
29656 # type: =head2
29657 #. type: =head2
29658 #: ../fish/guestfish-actions.pod:4101
29659 msgid "sfdiskM"
29660 msgstr ""
29661
29662 # type: verbatim
29663 #. type: verbatim
29664 #: ../fish/guestfish-actions.pod:4103
29665 #, no-wrap
29666 msgid ""
29667 " sfdiskM device 'lines ...'\n"
29668 "\n"
29669 msgstr ""
29670
29671 # type: textblock
29672 #. type: textblock
29673 #: ../fish/guestfish-actions.pod:4105
29674 msgid ""
29675 "This is a simplified interface to the L</sfdisk> command, where partition "
29676 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
29677 "you don't need to specify the cyls, heads and sectors parameters which were "
29678 "rarely if ever used anyway."
29679 msgstr ""
29680
29681 # type: textblock
29682 #. type: textblock
29683 #: ../fish/guestfish-actions.pod:4111
29684 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
29685 msgstr ""
29686
29687 # type: =head2
29688 #. type: =head2
29689 #: ../fish/guestfish-actions.pod:4117
29690 msgid "sfdisk-N"
29691 msgstr ""
29692
29693 # type: verbatim
29694 #. type: verbatim
29695 #: ../fish/guestfish-actions.pod:4119
29696 #, no-wrap
29697 msgid ""
29698 " sfdisk-N device partnum cyls heads sectors line\n"
29699 "\n"
29700 msgstr ""
29701
29702 # type: textblock
29703 #. type: textblock
29704 #: ../fish/guestfish-actions.pod:4124
29705 msgid ""
29706 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
29707 "cyls/heads/sectors parameters."
29708 msgstr ""
29709
29710 # type: textblock
29711 #. type: textblock
29712 #: ../fish/guestfish-actions.pod:4127
29713 msgid "See also: L</part-add>"
29714 msgstr ""
29715
29716 # type: =head2
29717 #. type: =head2
29718 #: ../fish/guestfish-actions.pod:4132
29719 msgid "sfdisk-disk-geometry"
29720 msgstr ""
29721
29722 # type: verbatim
29723 #. type: verbatim
29724 #: ../fish/guestfish-actions.pod:4134
29725 #, no-wrap
29726 msgid ""
29727 " sfdisk-disk-geometry device\n"
29728 "\n"
29729 msgstr ""
29730
29731 # type: textblock
29732 #. type: textblock
29733 #: ../fish/guestfish-actions.pod:4136
29734 msgid ""
29735 "This displays the disk geometry of C<device> read from the partition table.  "
29736 "Especially in the case where the underlying block device has been resized, "
29737 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
29738 "kernel-geometry>)."
29739 msgstr ""
29740
29741 # type: =head2
29742 #. type: =head2
29743 #: ../fish/guestfish-actions.pod:4144
29744 msgid "sfdisk-kernel-geometry"
29745 msgstr ""
29746
29747 # type: verbatim
29748 #. type: verbatim
29749 #: ../fish/guestfish-actions.pod:4146
29750 #, no-wrap
29751 msgid ""
29752 " sfdisk-kernel-geometry device\n"
29753 "\n"
29754 msgstr ""
29755
29756 # type: =head2
29757 #. type: =head2
29758 #: ../fish/guestfish-actions.pod:4153
29759 msgid "sfdisk-l"
29760 msgstr ""
29761
29762 # type: verbatim
29763 #. type: verbatim
29764 #: ../fish/guestfish-actions.pod:4155
29765 #, no-wrap
29766 msgid ""
29767 " sfdisk-l device\n"
29768 "\n"
29769 msgstr ""
29770
29771 # type: textblock
29772 #. type: textblock
29773 #: ../fish/guestfish-actions.pod:4161
29774 msgid "See also: L</part-list>"
29775 msgstr ""
29776
29777 # type: =head2
29778 #. type: =head2
29779 #: ../fish/guestfish-actions.pod:4163
29780 msgid "sh"
29781 msgstr ""
29782
29783 # type: verbatim
29784 #. type: verbatim
29785 #: ../fish/guestfish-actions.pod:4165
29786 #, no-wrap
29787 msgid ""
29788 " sh command\n"
29789 "\n"
29790 msgstr ""
29791
29792 # type: textblock
29793 #. type: textblock
29794 #: ../fish/guestfish-actions.pod:4170
29795 msgid "This is like L</command>, but passes the command to:"
29796 msgstr ""
29797
29798 # type: textblock
29799 #. type: textblock
29800 #: ../fish/guestfish-actions.pod:4178
29801 msgid "All the provisos about L</command> apply to this call."
29802 msgstr ""
29803
29804 # type: =head2
29805 #. type: =head2
29806 #: ../fish/guestfish-actions.pod:4180
29807 msgid "sh-lines"
29808 msgstr ""
29809
29810 # type: verbatim
29811 #. type: verbatim
29812 #: ../fish/guestfish-actions.pod:4182
29813 #, no-wrap
29814 msgid ""
29815 " sh-lines command\n"
29816 "\n"
29817 msgstr ""
29818
29819 # type: textblock
29820 #. type: textblock
29821 #: ../fish/guestfish-actions.pod:4184
29822 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29823 msgstr ""
29824
29825 # type: textblock
29826 #. type: textblock
29827 #: ../fish/guestfish-actions.pod:4187
29828 msgid "See also: L</command-lines>"
29829 msgstr ""
29830
29831 # type: =head2
29832 #. type: =head2
29833 #: ../fish/guestfish-actions.pod:4189
29834 msgid "sleep"
29835 msgstr ""
29836
29837 # type: verbatim
29838 #. type: verbatim
29839 #: ../fish/guestfish-actions.pod:4191
29840 #, no-wrap
29841 msgid ""
29842 " sleep secs\n"
29843 "\n"
29844 msgstr ""
29845
29846 # type: =head2
29847 #. type: =head2
29848 #: ../fish/guestfish-actions.pod:4195
29849 msgid "stat"
29850 msgstr ""
29851
29852 # type: verbatim
29853 #. type: verbatim
29854 #: ../fish/guestfish-actions.pod:4197
29855 #, no-wrap
29856 msgid ""
29857 " stat path\n"
29858 "\n"
29859 msgstr ""
29860
29861 # type: =head2
29862 #. type: =head2
29863 #: ../fish/guestfish-actions.pod:4203
29864 msgid "statvfs"
29865 msgstr ""
29866
29867 # type: verbatim
29868 #. type: verbatim
29869 #: ../fish/guestfish-actions.pod:4205
29870 #, no-wrap
29871 msgid ""
29872 " statvfs path\n"
29873 "\n"
29874 msgstr ""
29875
29876 # type: =head2
29877 #. type: =head2
29878 #: ../fish/guestfish-actions.pod:4213
29879 msgid "strings"
29880 msgstr ""
29881
29882 # type: verbatim
29883 #. type: verbatim
29884 #: ../fish/guestfish-actions.pod:4215
29885 #, no-wrap
29886 msgid ""
29887 " strings path\n"
29888 "\n"
29889 msgstr ""
29890
29891 # type: =head2
29892 #. type: =head2
29893 #: ../fish/guestfish-actions.pod:4223
29894 msgid "strings-e"
29895 msgstr ""
29896
29897 # type: verbatim
29898 #. type: verbatim
29899 #: ../fish/guestfish-actions.pod:4225
29900 #, no-wrap
29901 msgid ""
29902 " strings-e encoding path\n"
29903 "\n"
29904 msgstr ""
29905
29906 # type: textblock
29907 #. type: textblock
29908 #: ../fish/guestfish-actions.pod:4227
29909 msgid ""
29910 "This is like the L</strings> command, but allows you to specify the encoding "
29911 "of strings that are looked for in the source file C<path>."
29912 msgstr ""
29913
29914 # type: textblock
29915 #. type: textblock
29916 #: ../fish/guestfish-actions.pod:4237
29917 msgid ""
29918 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29919 "ISO-8859-X (this is what L</strings> uses)."
29920 msgstr ""
29921
29922 # type: =head2
29923 #. type: =head2
29924 #: ../fish/guestfish-actions.pod:4269
29925 msgid "swapoff-device"
29926 msgstr ""
29927
29928 # type: verbatim
29929 #. type: verbatim
29930 #: ../fish/guestfish-actions.pod:4271
29931 #, no-wrap
29932 msgid ""
29933 " swapoff-device device\n"
29934 "\n"
29935 msgstr ""
29936
29937 # type: textblock
29938 #. type: textblock
29939 #: ../fish/guestfish-actions.pod:4273
29940 msgid ""
29941 "This command disables the libguestfs appliance swap device or partition "
29942 "named C<device>.  See L</swapon-device>."
29943 msgstr ""
29944
29945 # type: =head2
29946 #. type: =head2
29947 #: ../fish/guestfish-actions.pod:4277
29948 msgid "swapoff-file"
29949 msgstr ""
29950
29951 # type: verbatim
29952 #. type: verbatim
29953 #: ../fish/guestfish-actions.pod:4279
29954 #, no-wrap
29955 msgid ""
29956 " swapoff-file file\n"
29957 "\n"
29958 msgstr ""
29959
29960 # type: =head2
29961 #. type: =head2
29962 #: ../fish/guestfish-actions.pod:4283
29963 msgid "swapoff-label"
29964 msgstr ""
29965
29966 # type: verbatim
29967 #. type: verbatim
29968 #: ../fish/guestfish-actions.pod:4285
29969 #, no-wrap
29970 msgid ""
29971 " swapoff-label label\n"
29972 "\n"
29973 msgstr ""
29974
29975 # type: =head2
29976 #. type: =head2
29977 #: ../fish/guestfish-actions.pod:4290
29978 msgid "swapoff-uuid"
29979 msgstr ""
29980
29981 # type: verbatim
29982 #. type: verbatim
29983 #: ../fish/guestfish-actions.pod:4292
29984 #, no-wrap
29985 msgid ""
29986 " swapoff-uuid uuid\n"
29987 "\n"
29988 msgstr ""
29989
29990 # type: =head2
29991 #. type: =head2
29992 #: ../fish/guestfish-actions.pod:4297
29993 msgid "swapon-device"
29994 msgstr ""
29995
29996 # type: verbatim
29997 #. type: verbatim
29998 #: ../fish/guestfish-actions.pod:4299
29999 #, no-wrap
30000 msgid ""
30001 " swapon-device device\n"
30002 "\n"
30003 msgstr ""
30004
30005 # type: textblock
30006 #. type: textblock
30007 #: ../fish/guestfish-actions.pod:4301
30008 msgid ""
30009 "This command enables the libguestfs appliance to use the swap device or "
30010 "partition named C<device>.  The increased memory is made available for all "
30011 "commands, for example those run using L</command> or L</sh>."
30012 msgstr ""
30013
30014 # type: =head2
30015 #. type: =head2
30016 #: ../fish/guestfish-actions.pod:4313
30017 msgid "swapon-file"
30018 msgstr ""
30019
30020 # type: verbatim
30021 #. type: verbatim
30022 #: ../fish/guestfish-actions.pod:4315
30023 #, no-wrap
30024 msgid ""
30025 " swapon-file file\n"
30026 "\n"
30027 msgstr ""
30028
30029 # type: textblock
30030 #. type: textblock
30031 #: ../fish/guestfish-actions.pod:4317
30032 msgid ""
30033 "This command enables swap to a file.  See L</swapon-device> for other notes."
30034 msgstr ""
30035
30036 # type: =head2
30037 #. type: =head2
30038 #: ../fish/guestfish-actions.pod:4320
30039 msgid "swapon-label"
30040 msgstr ""
30041
30042 # type: verbatim
30043 #. type: verbatim
30044 #: ../fish/guestfish-actions.pod:4322
30045 #, no-wrap
30046 msgid ""
30047 " swapon-label label\n"
30048 "\n"
30049 msgstr ""
30050
30051 # type: textblock
30052 #. type: textblock
30053 #: ../fish/guestfish-actions.pod:4324
30054 msgid ""
30055 "This command enables swap to a labeled swap partition.  See L</swapon-"
30056 "device> for other notes."
30057 msgstr ""
30058
30059 # type: =head2
30060 #. type: =head2
30061 #: ../fish/guestfish-actions.pod:4327
30062 msgid "swapon-uuid"
30063 msgstr ""
30064
30065 # type: verbatim
30066 #. type: verbatim
30067 #: ../fish/guestfish-actions.pod:4329
30068 #, no-wrap
30069 msgid ""
30070 " swapon-uuid uuid\n"
30071 "\n"
30072 msgstr ""
30073
30074 # type: textblock
30075 #. type: textblock
30076 #: ../fish/guestfish-actions.pod:4331
30077 msgid ""
30078 "This command enables swap to a swap partition with the given UUID.  See L</"
30079 "swapon-device> for other notes."
30080 msgstr ""
30081
30082 # type: =head2
30083 #. type: =head2
30084 #: ../fish/guestfish-actions.pod:4334
30085 msgid "sync"
30086 msgstr ""
30087
30088 # type: verbatim
30089 #. type: verbatim
30090 #: ../fish/guestfish-actions.pod:4336
30091 #, no-wrap
30092 msgid ""
30093 " sync\n"
30094 "\n"
30095 msgstr ""
30096
30097 # type: =head2
30098 #. type: =head2
30099 #: ../fish/guestfish-actions.pod:4344
30100 msgid "tail"
30101 msgstr ""
30102
30103 # type: verbatim
30104 #. type: verbatim
30105 #: ../fish/guestfish-actions.pod:4346
30106 #, no-wrap
30107 msgid ""
30108 " tail path\n"
30109 "\n"
30110 msgstr ""
30111
30112 # type: =head2
30113 #. type: =head2
30114 #: ../fish/guestfish-actions.pod:4354
30115 msgid "tail-n"
30116 msgstr ""
30117
30118 # type: verbatim
30119 #. type: verbatim
30120 #: ../fish/guestfish-actions.pod:4356
30121 #, no-wrap
30122 msgid ""
30123 " tail-n nrlines path\n"
30124 "\n"
30125 msgstr ""
30126
30127 # type: =head2
30128 #. type: =head2
30129 #: ../fish/guestfish-actions.pod:4369
30130 msgid "tar-in"
30131 msgstr ""
30132
30133 # type: verbatim
30134 #. type: verbatim
30135 #: ../fish/guestfish-actions.pod:4371
30136 #, no-wrap
30137 msgid ""
30138 " tar-in (tarfile|-) directory\n"
30139 "\n"
30140 msgstr ""
30141
30142 # type: textblock
30143 #. type: textblock
30144 #: ../fish/guestfish-actions.pod:4376
30145 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30146 msgstr ""
30147
30148 # type: =head2
30149 #. type: =head2
30150 #: ../fish/guestfish-actions.pod:4381
30151 msgid "tar-out"
30152 msgstr ""
30153
30154 # type: verbatim
30155 #. type: verbatim
30156 #: ../fish/guestfish-actions.pod:4383
30157 #, no-wrap
30158 msgid ""
30159 " tar-out directory (tarfile|-)\n"
30160 "\n"
30161 msgstr ""
30162
30163 # type: textblock
30164 #. type: textblock
30165 #: ../fish/guestfish-actions.pod:4388
30166 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30167 msgstr ""
30168
30169 # type: =head2
30170 #. type: =head2
30171 #: ../fish/guestfish-actions.pod:4393
30172 msgid "tgz-in"
30173 msgstr ""
30174
30175 # type: verbatim
30176 #. type: verbatim
30177 #: ../fish/guestfish-actions.pod:4395
30178 #, no-wrap
30179 msgid ""
30180 " tgz-in (tarball|-) directory\n"
30181 "\n"
30182 msgstr ""
30183
30184 # type: textblock
30185 #. type: textblock
30186 #: ../fish/guestfish-actions.pod:4400
30187 msgid "To upload an uncompressed tarball, use L</tar-in>."
30188 msgstr ""
30189
30190 # type: =head2
30191 #. type: =head2
30192 #: ../fish/guestfish-actions.pod:4404
30193 msgid "tgz-out"
30194 msgstr ""
30195
30196 # type: verbatim
30197 #. type: verbatim
30198 #: ../fish/guestfish-actions.pod:4406
30199 #, no-wrap
30200 msgid ""
30201 " tgz-out directory (tarball|-)\n"
30202 "\n"
30203 msgstr ""
30204
30205 # type: textblock
30206 #. type: textblock
30207 #: ../fish/guestfish-actions.pod:4411
30208 msgid "To download an uncompressed tarball, use L</tar-out>."
30209 msgstr ""
30210
30211 # type: =head2
30212 #. type: =head2
30213 #: ../fish/guestfish-actions.pod:4415
30214 msgid "touch"
30215 msgstr ""
30216
30217 # type: verbatim
30218 #. type: verbatim
30219 #: ../fish/guestfish-actions.pod:4417
30220 #, no-wrap
30221 msgid ""
30222 " touch path\n"
30223 "\n"
30224 msgstr ""
30225
30226 # type: =head2
30227 #. type: =head2
30228 #: ../fish/guestfish-actions.pod:4426
30229 msgid "truncate"
30230 msgstr ""
30231
30232 # type: verbatim
30233 #. type: verbatim
30234 #: ../fish/guestfish-actions.pod:4428
30235 #, no-wrap
30236 msgid ""
30237 " truncate path\n"
30238 "\n"
30239 msgstr ""
30240
30241 # type: =head2
30242 #. type: =head2
30243 #: ../fish/guestfish-actions.pod:4433
30244 msgid "truncate-size"
30245 msgstr ""
30246
30247 # type: verbatim
30248 #. type: verbatim
30249 #: ../fish/guestfish-actions.pod:4435
30250 #, no-wrap
30251 msgid ""
30252 " truncate-size path size\n"
30253 "\n"
30254 msgstr ""
30255
30256 # type: textblock
30257 #. type: textblock
30258 #: ../fish/guestfish-actions.pod:4440
30259 msgid ""
30260 "If the current file size is less than C<size> then the file is extended to "
30261 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30262 "blocks are not allocated for the file until you write to it).  To create a "
30263 "non-sparse file of zeroes, use L</fallocate64> instead."
30264 msgstr ""
30265
30266 # type: =head2
30267 #. type: =head2
30268 #: ../fish/guestfish-actions.pod:4446
30269 msgid "tune2fs-l"
30270 msgstr ""
30271
30272 # type: verbatim
30273 #. type: verbatim
30274 #: ../fish/guestfish-actions.pod:4448
30275 #, no-wrap
30276 msgid ""
30277 " tune2fs-l device\n"
30278 "\n"
30279 msgstr ""
30280
30281 # type: =head2
30282 #. type: =head2
30283 #: ../fish/guestfish-actions.pod:4458
30284 msgid "txz-in"
30285 msgstr ""
30286
30287 # type: verbatim
30288 #. type: verbatim
30289 #: ../fish/guestfish-actions.pod:4460
30290 #, no-wrap
30291 msgid ""
30292 " txz-in (tarball|-) directory\n"
30293 "\n"
30294 msgstr ""
30295
30296 # type: =head2
30297 #. type: =head2
30298 #: ../fish/guestfish-actions.pod:4467
30299 msgid "txz-out"
30300 msgstr ""
30301
30302 # type: verbatim
30303 #. type: verbatim
30304 #: ../fish/guestfish-actions.pod:4469
30305 #, no-wrap
30306 msgid ""
30307 " txz-out directory (tarball|-)\n"
30308 "\n"
30309 msgstr ""
30310
30311 # type: =head2
30312 #. type: =head2
30313 #: ../fish/guestfish-actions.pod:4476
30314 msgid "umask"
30315 msgstr ""
30316
30317 # type: verbatim
30318 #. type: verbatim
30319 #: ../fish/guestfish-actions.pod:4478
30320 #, no-wrap
30321 msgid ""
30322 " umask mask\n"
30323 "\n"
30324 msgstr ""
30325
30326 # type: textblock
30327 #. type: textblock
30328 #: ../fish/guestfish-actions.pod:4492
30329 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
30330 msgstr ""
30331
30332 # type: =head2
30333 #. type: =head2
30334 #: ../fish/guestfish-actions.pod:4497
30335 msgid "umount"
30336 msgstr ""
30337
30338 # type: =head2
30339 #. type: =head2
30340 #: ../fish/guestfish-actions.pod:4499
30341 msgid "unmount"
30342 msgstr ""
30343
30344 # type: verbatim
30345 #. type: verbatim
30346 #: ../fish/guestfish-actions.pod:4501
30347 #, no-wrap
30348 msgid ""
30349 " umount pathordevice\n"
30350 "\n"
30351 msgstr ""
30352
30353 # type: =head2
30354 #. type: =head2
30355 #: ../fish/guestfish-actions.pod:4507
30356 msgid "umount-all"
30357 msgstr ""
30358
30359 # type: =head2
30360 #. type: =head2
30361 #: ../fish/guestfish-actions.pod:4509
30362 msgid "unmount-all"
30363 msgstr ""
30364
30365 # type: verbatim
30366 #. type: verbatim
30367 #: ../fish/guestfish-actions.pod:4511
30368 #, no-wrap
30369 msgid ""
30370 " umount-all\n"
30371 "\n"
30372 msgstr ""
30373
30374 # type: =head2
30375 #. type: =head2
30376 #: ../fish/guestfish-actions.pod:4517
30377 msgid "upload"
30378 msgstr ""
30379
30380 # type: verbatim
30381 #. type: verbatim
30382 #: ../fish/guestfish-actions.pod:4519
30383 #, no-wrap
30384 msgid ""
30385 " upload (filename|-) remotefilename\n"
30386 "\n"
30387 msgstr ""
30388
30389 # type: textblock
30390 #. type: textblock
30391 #: ../fish/guestfish-actions.pod:4526
30392 msgid "See also L</download>."
30393 msgstr ""
30394
30395 # type: =head2
30396 #. type: =head2
30397 #: ../fish/guestfish-actions.pod:4530
30398 msgid "upload-offset"
30399 msgstr ""
30400
30401 # type: verbatim
30402 #. type: verbatim
30403 #: ../fish/guestfish-actions.pod:4532
30404 #, no-wrap
30405 msgid ""
30406 " upload-offset (filename|-) remotefilename offset\n"
30407 "\n"
30408 msgstr ""
30409
30410 # type: textblock
30411 #. type: textblock
30412 #: ../fish/guestfish-actions.pod:4544
30413 msgid ""
30414 "Note that there is no limit on the amount of data that can be uploaded with "
30415 "this call, unlike with L</pwrite>, and this call always writes the full "
30416 "amount unless an error occurs."
30417 msgstr ""
30418
30419 # type: textblock
30420 #. type: textblock
30421 #: ../fish/guestfish-actions.pod:4549
30422 msgid "See also L</upload>, L</pwrite>."
30423 msgstr ""
30424
30425 # type: =head2
30426 #. type: =head2
30427 #: ../fish/guestfish-actions.pod:4553
30428 msgid "utimens"
30429 msgstr ""
30430
30431 # type: verbatim
30432 #. type: verbatim
30433 #: ../fish/guestfish-actions.pod:4555
30434 #, no-wrap
30435 msgid ""
30436 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
30437 "\n"
30438 msgstr ""
30439
30440 # type: =head2
30441 #. type: =head2
30442 #: ../fish/guestfish-actions.pod:4574
30443 msgid "version"
30444 msgstr ""
30445
30446 # type: verbatim
30447 #. type: verbatim
30448 #: ../fish/guestfish-actions.pod:4576
30449 #, no-wrap
30450 msgid ""
30451 " version\n"
30452 "\n"
30453 msgstr ""
30454
30455 # type: textblock
30456 #. type: textblock
30457 #: ../fish/guestfish-actions.pod:4603
30458 msgid ""
30459 "I<Note:> Don't use this call to test for availability of features.  In "
30460 "enterprise distributions we backport features from later versions into "
30461 "earlier versions, making this an unreliable way to test for features.  Use "
30462 "L</available> instead."
30463 msgstr ""
30464
30465 # type: =head2
30466 #. type: =head2
30467 #: ../fish/guestfish-actions.pod:4609
30468 msgid "vfs-label"
30469 msgstr ""
30470
30471 # type: verbatim
30472 #. type: verbatim
30473 #: ../fish/guestfish-actions.pod:4611
30474 #, no-wrap
30475 msgid ""
30476 " vfs-label device\n"
30477 "\n"
30478 msgstr ""
30479
30480 # type: textblock
30481 #. type: textblock
30482 #: ../fish/guestfish-actions.pod:4618
30483 msgid "To find a filesystem from the label, use L</findfs-label>."
30484 msgstr ""
30485
30486 # type: =head2
30487 #. type: =head2
30488 #: ../fish/guestfish-actions.pod:4620
30489 msgid "vfs-type"
30490 msgstr ""
30491
30492 # type: verbatim
30493 #. type: verbatim
30494 #: ../fish/guestfish-actions.pod:4622
30495 #, no-wrap
30496 msgid ""
30497 " vfs-type device\n"
30498 "\n"
30499 msgstr ""
30500
30501 # type: =head2
30502 #. type: =head2
30503 #: ../fish/guestfish-actions.pod:4632
30504 msgid "vfs-uuid"
30505 msgstr ""
30506
30507 # type: verbatim
30508 #. type: verbatim
30509 #: ../fish/guestfish-actions.pod:4634
30510 #, no-wrap
30511 msgid ""
30512 " vfs-uuid device\n"
30513 "\n"
30514 msgstr ""
30515
30516 # type: textblock
30517 #. type: textblock
30518 #: ../fish/guestfish-actions.pod:4641
30519 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
30520 msgstr ""
30521
30522 # type: =head2
30523 #. type: =head2
30524 #: ../fish/guestfish-actions.pod:4643
30525 msgid "vg-activate"
30526 msgstr ""
30527
30528 # type: verbatim
30529 #. type: verbatim
30530 #: ../fish/guestfish-actions.pod:4645
30531 #, no-wrap
30532 msgid ""
30533 " vg-activate true|false 'volgroups ...'\n"
30534 "\n"
30535 msgstr ""
30536
30537 # type: =head2
30538 #. type: =head2
30539 #: ../fish/guestfish-actions.pod:4658
30540 msgid "vg-activate-all"
30541 msgstr ""
30542
30543 # type: verbatim
30544 #. type: verbatim
30545 #: ../fish/guestfish-actions.pod:4660
30546 #, no-wrap
30547 msgid ""
30548 " vg-activate-all true|false\n"
30549 "\n"
30550 msgstr ""
30551
30552 # type: =head2
30553 #. type: =head2
30554 #: ../fish/guestfish-actions.pod:4670
30555 msgid "vgcreate"
30556 msgstr ""
30557
30558 # type: verbatim
30559 #. type: verbatim
30560 #: ../fish/guestfish-actions.pod:4672
30561 #, no-wrap
30562 msgid ""
30563 " vgcreate volgroup 'physvols ...'\n"
30564 "\n"
30565 msgstr ""
30566
30567 # type: =head2
30568 #. type: =head2
30569 #: ../fish/guestfish-actions.pod:4677
30570 msgid "vglvuuids"
30571 msgstr ""
30572
30573 # type: verbatim
30574 #. type: verbatim
30575 #: ../fish/guestfish-actions.pod:4679
30576 #, no-wrap
30577 msgid ""
30578 " vglvuuids vgname\n"
30579 "\n"
30580 msgstr ""
30581
30582 # type: textblock
30583 #. type: textblock
30584 #: ../fish/guestfish-actions.pod:4684
30585 msgid ""
30586 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
30587 "logical volumes and volume groups."
30588 msgstr ""
30589
30590 # type: textblock
30591 #. type: textblock
30592 #: ../fish/guestfish-actions.pod:4687
30593 msgid "See also L</vgpvuuids>."
30594 msgstr ""
30595
30596 # type: =head2
30597 #. type: =head2
30598 #: ../fish/guestfish-actions.pod:4689
30599 msgid "vgpvuuids"
30600 msgstr ""
30601
30602 # type: verbatim
30603 #. type: verbatim
30604 #: ../fish/guestfish-actions.pod:4691
30605 #, no-wrap
30606 msgid ""
30607 " vgpvuuids vgname\n"
30608 "\n"
30609 msgstr ""
30610
30611 # type: textblock
30612 #. type: textblock
30613 #: ../fish/guestfish-actions.pod:4696
30614 msgid ""
30615 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
30616 "physical volumes and volume groups."
30617 msgstr ""
30618
30619 # type: textblock
30620 #. type: textblock
30621 #: ../fish/guestfish-actions.pod:4699
30622 msgid "See also L</vglvuuids>."
30623 msgstr ""
30624
30625 # type: =head2
30626 #. type: =head2
30627 #: ../fish/guestfish-actions.pod:4701
30628 msgid "vgremove"
30629 msgstr ""
30630
30631 # type: verbatim
30632 #. type: verbatim
30633 #: ../fish/guestfish-actions.pod:4703
30634 #, no-wrap
30635 msgid ""
30636 " vgremove vgname\n"
30637 "\n"
30638 msgstr ""
30639
30640 # type: =head2
30641 #. type: =head2
30642 #: ../fish/guestfish-actions.pod:4710
30643 msgid "vgrename"
30644 msgstr ""
30645
30646 # type: verbatim
30647 #. type: verbatim
30648 #: ../fish/guestfish-actions.pod:4712
30649 #, no-wrap
30650 msgid ""
30651 " vgrename volgroup newvolgroup\n"
30652 "\n"
30653 msgstr ""
30654
30655 # type: =head2
30656 #. type: =head2
30657 #: ../fish/guestfish-actions.pod:4716
30658 msgid "vgs"
30659 msgstr ""
30660
30661 # type: verbatim
30662 #. type: verbatim
30663 #: ../fish/guestfish-actions.pod:4718
30664 #, no-wrap
30665 msgid ""
30666 " vgs\n"
30667 "\n"
30668 msgstr ""
30669
30670 # type: textblock
30671 #. type: textblock
30672 #: ../fish/guestfish-actions.pod:4726
30673 msgid "See also L</vgs-full>."
30674 msgstr ""
30675
30676 # type: =head2
30677 #. type: =head2
30678 #: ../fish/guestfish-actions.pod:4728
30679 msgid "vgs-full"
30680 msgstr ""
30681
30682 # type: verbatim
30683 #. type: verbatim
30684 #: ../fish/guestfish-actions.pod:4730
30685 #, no-wrap
30686 msgid ""
30687 " vgs-full\n"
30688 "\n"
30689 msgstr ""
30690
30691 # type: =head2
30692 #. type: =head2
30693 #: ../fish/guestfish-actions.pod:4735
30694 msgid "vgscan"
30695 msgstr ""
30696
30697 # type: verbatim
30698 #. type: verbatim
30699 #: ../fish/guestfish-actions.pod:4737
30700 #, no-wrap
30701 msgid ""
30702 " vgscan\n"
30703 "\n"
30704 msgstr ""
30705
30706 # type: =head2
30707 #. type: =head2
30708 #: ../fish/guestfish-actions.pod:4742
30709 msgid "vguuid"
30710 msgstr ""
30711
30712 # type: verbatim
30713 #. type: verbatim
30714 #: ../fish/guestfish-actions.pod:4744
30715 #, no-wrap
30716 msgid ""
30717 " vguuid vgname\n"
30718 "\n"
30719 msgstr ""
30720
30721 # type: =head2
30722 #. type: =head2
30723 #: ../fish/guestfish-actions.pod:4748
30724 msgid "wc-c"
30725 msgstr ""
30726
30727 # type: verbatim
30728 #. type: verbatim
30729 #: ../fish/guestfish-actions.pod:4750
30730 #, no-wrap
30731 msgid ""
30732 " wc-c path\n"
30733 "\n"
30734 msgstr ""
30735
30736 # type: =head2
30737 #. type: =head2
30738 #: ../fish/guestfish-actions.pod:4755
30739 msgid "wc-l"
30740 msgstr ""
30741
30742 # type: verbatim
30743 #. type: verbatim
30744 #: ../fish/guestfish-actions.pod:4757
30745 #, no-wrap
30746 msgid ""
30747 " wc-l path\n"
30748 "\n"
30749 msgstr ""
30750
30751 # type: =head2
30752 #. type: =head2
30753 #: ../fish/guestfish-actions.pod:4762
30754 msgid "wc-w"
30755 msgstr ""
30756
30757 # type: verbatim
30758 #. type: verbatim
30759 #: ../fish/guestfish-actions.pod:4764
30760 #, no-wrap
30761 msgid ""
30762 " wc-w path\n"
30763 "\n"
30764 msgstr ""
30765
30766 # type: =head2
30767 #. type: =head2
30768 #: ../fish/guestfish-actions.pod:4769
30769 msgid "write"
30770 msgstr ""
30771
30772 # type: verbatim
30773 #. type: verbatim
30774 #: ../fish/guestfish-actions.pod:4771
30775 #, no-wrap
30776 msgid ""
30777 " write path content\n"
30778 "\n"
30779 msgstr ""
30780
30781 # type: =head2
30782 #. type: =head2
30783 #: ../fish/guestfish-actions.pod:4779
30784 msgid "write-file"
30785 msgstr ""
30786
30787 # type: verbatim
30788 #. type: verbatim
30789 #: ../fish/guestfish-actions.pod:4781
30790 #, no-wrap
30791 msgid ""
30792 " write-file path content size\n"
30793 "\n"
30794 msgstr ""
30795
30796 # type: =head2
30797 #. type: =head2
30798 #: ../fish/guestfish-actions.pod:4804
30799 msgid "zegrep"
30800 msgstr ""
30801
30802 # type: verbatim
30803 #. type: verbatim
30804 #: ../fish/guestfish-actions.pod:4806
30805 #, no-wrap
30806 msgid ""
30807 " zegrep regex path\n"
30808 "\n"
30809 msgstr ""
30810
30811 # type: =head2
30812 #. type: =head2
30813 #: ../fish/guestfish-actions.pod:4814
30814 msgid "zegrepi"
30815 msgstr ""
30816
30817 # type: verbatim
30818 #. type: verbatim
30819 #: ../fish/guestfish-actions.pod:4816
30820 #, no-wrap
30821 msgid ""
30822 " zegrepi regex path\n"
30823 "\n"
30824 msgstr ""
30825
30826 # type: =head2
30827 #. type: =head2
30828 #: ../fish/guestfish-actions.pod:4824
30829 msgid "zero"
30830 msgstr ""
30831
30832 # type: verbatim
30833 #. type: verbatim
30834 #: ../fish/guestfish-actions.pod:4826
30835 #, no-wrap
30836 msgid ""
30837 " zero device\n"
30838 "\n"
30839 msgstr ""
30840
30841 # type: textblock
30842 #. type: textblock
30843 #: ../fish/guestfish-actions.pod:4834
30844 msgid "See also: L</zero-device>, L</scrub-device>."
30845 msgstr ""
30846
30847 # type: =head2
30848 #. type: =head2
30849 #: ../fish/guestfish-actions.pod:4836
30850 msgid "zero-device"
30851 msgstr ""
30852
30853 # type: verbatim
30854 #. type: verbatim
30855 #: ../fish/guestfish-actions.pod:4838
30856 #, no-wrap
30857 msgid ""
30858 " zero-device device\n"
30859 "\n"
30860 msgstr ""
30861
30862 # type: textblock
30863 #. type: textblock
30864 #: ../fish/guestfish-actions.pod:4840
30865 msgid ""
30866 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
30867 "which just zeroes the first few blocks of a device."
30868 msgstr ""
30869
30870 # type: =head2
30871 #. type: =head2
30872 #: ../fish/guestfish-actions.pod:4847
30873 msgid "zerofree"
30874 msgstr ""
30875
30876 # type: verbatim
30877 #. type: verbatim
30878 #: ../fish/guestfish-actions.pod:4849
30879 #, no-wrap
30880 msgid ""
30881 " zerofree device\n"
30882 "\n"
30883 msgstr ""
30884
30885 # type: =head2
30886 #. type: =head2
30887 #: ../fish/guestfish-actions.pod:4862
30888 msgid "zfgrep"
30889 msgstr ""
30890
30891 # type: verbatim
30892 #. type: verbatim
30893 #: ../fish/guestfish-actions.pod:4864
30894 #, no-wrap
30895 msgid ""
30896 " zfgrep pattern path\n"
30897 "\n"
30898 msgstr ""
30899
30900 # type: =head2
30901 #. type: =head2
30902 #: ../fish/guestfish-actions.pod:4872
30903 msgid "zfgrepi"
30904 msgstr ""
30905
30906 # type: verbatim
30907 #. type: verbatim
30908 #: ../fish/guestfish-actions.pod:4874
30909 #, no-wrap
30910 msgid ""
30911 " zfgrepi pattern path\n"
30912 "\n"
30913 msgstr ""
30914
30915 # type: =head2
30916 #. type: =head2
30917 #: ../fish/guestfish-actions.pod:4882
30918 msgid "zfile"
30919 msgstr ""
30920
30921 # type: verbatim
30922 #. type: verbatim
30923 #: ../fish/guestfish-actions.pod:4884
30924 #, no-wrap
30925 msgid ""
30926 " zfile meth path\n"
30927 "\n"
30928 msgstr ""
30929
30930 # type: textblock
30931 #. type: textblock
30932 #: ../fish/guestfish-actions.pod:4891
30933 msgid ""
30934 "Since 1.0.63, use L</file> instead which can now process compressed files."
30935 msgstr ""
30936
30937 # type: =head2
30938 #. type: =head2
30939 #: ../fish/guestfish-actions.pod:4901
30940 msgid "zgrep"
30941 msgstr ""
30942
30943 # type: verbatim
30944 #. type: verbatim
30945 #: ../fish/guestfish-actions.pod:4903
30946 #, no-wrap
30947 msgid ""
30948 " zgrep regex path\n"
30949 "\n"
30950 msgstr ""
30951
30952 # type: =head2
30953 #. type: =head2
30954 #: ../fish/guestfish-actions.pod:4911
30955 msgid "zgrepi"
30956 msgstr ""
30957
30958 # type: verbatim
30959 #. type: verbatim
30960 #: ../fish/guestfish-actions.pod:4913
30961 #, no-wrap
30962 msgid ""
30963 " zgrepi regex path\n"
30964 "\n"
30965 msgstr ""
30966
30967 # type: =head2
30968 #. type: =head2
30969 #: ../fish/guestfish-commands.pod:1
30970 msgid "alloc"
30971 msgstr ""
30972
30973 # type: =head2
30974 #. type: =head2
30975 #: ../fish/guestfish-commands.pod:3
30976 msgid "allocate"
30977 msgstr ""
30978
30979 # type: verbatim
30980 #. type: verbatim
30981 #: ../fish/guestfish-commands.pod:5
30982 #, no-wrap
30983 msgid ""
30984 " alloc filename size\n"
30985 "\n"
30986 msgstr ""
30987
30988 # type: textblock
30989 #. type: textblock
30990 #: ../fish/guestfish-commands.pod:7
30991 msgid ""
30992 "This creates an empty (zeroed) file of the given size, and then adds so it "
30993 "can be further examined."
30994 msgstr ""
30995
30996 # type: textblock
30997 #. type: textblock
30998 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
30999 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
31000 msgstr ""
31001
31002 # type: textblock
31003 #. type: textblock
31004 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
31005 msgid "Size can be specified using standard suffixes, eg. C<1M>."
31006 msgstr ""
31007
31008 # type: textblock
31009 #. type: textblock
31010 #: ../fish/guestfish-commands.pod:14
31011 msgid ""
31012 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
31013 "image, see L</PREPARED DISK IMAGES>."
31014 msgstr ""
31015
31016 # type: =head2
31017 #. type: =head2
31018 #: ../fish/guestfish-commands.pod:17
31019 msgid "copy-in"
31020 msgstr ""
31021
31022 # type: verbatim
31023 #. type: verbatim
31024 #: ../fish/guestfish-commands.pod:19
31025 #, no-wrap
31026 msgid ""
31027 " copy-in local [local ...] /remotedir\n"
31028 "\n"
31029 msgstr ""
31030
31031 # type: textblock
31032 #. type: textblock
31033 #: ../fish/guestfish-commands.pod:21
31034 msgid ""
31035 "C<copy-in> copies local files or directories recursively into the disk "
31036 "image, placing them in the directory called C</remotedir> (which must "
31037 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
31038 "other commands as necessary."
31039 msgstr ""
31040
31041 # type: textblock
31042 #. type: textblock
31043 #: ../fish/guestfish-commands.pod:26
31044 msgid ""
31045 "Multiple local files and directories can be specified, but the last "
31046 "parameter must always be a remote directory.  Wildcards cannot be used."
31047 msgstr ""
31048
31049 # type: =head2
31050 #. type: =head2
31051 #: ../fish/guestfish-commands.pod:30
31052 msgid "copy-out"
31053 msgstr ""
31054
31055 # type: verbatim
31056 #. type: verbatim
31057 #: ../fish/guestfish-commands.pod:32
31058 #, no-wrap
31059 msgid ""
31060 " copy-out remote [remote ...] localdir\n"
31061 "\n"
31062 msgstr ""
31063
31064 # type: textblock
31065 #. type: textblock
31066 #: ../fish/guestfish-commands.pod:34
31067 msgid ""
31068 "C<copy-out> copies remote files or directories recursively out of the disk "
31069 "image, placing them on the host disk in a local directory called C<localdir> "
31070 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31071 "download>, L</tar-out> and other commands as necessary."
31072 msgstr ""
31073
31074 # type: textblock
31075 #. type: textblock
31076 #: ../fish/guestfish-commands.pod:40
31077 msgid ""
31078 "Multiple remote files and directories can be specified, but the last "
31079 "parameter must always be a local directory.  To download to the current "
31080 "directory, use C<.> as in:"
31081 msgstr ""
31082
31083 # type: verbatim
31084 #. type: verbatim
31085 #: ../fish/guestfish-commands.pod:44
31086 #, no-wrap
31087 msgid ""
31088 " copy-out /home .\n"
31089 "\n"
31090 msgstr ""
31091
31092 # type: textblock
31093 #. type: textblock
31094 #: ../fish/guestfish-commands.pod:46
31095 msgid ""
31096 "Wildcards cannot be used in the ordinary command, but you can use them with "
31097 "the help of L</glob> like this:"
31098 msgstr ""
31099
31100 # type: verbatim
31101 #. type: verbatim
31102 #: ../fish/guestfish-commands.pod:49
31103 #, no-wrap
31104 msgid ""
31105 " glob copy-out /home/* .\n"
31106 "\n"
31107 msgstr ""
31108
31109 # type: =head2
31110 #. type: =head2
31111 #: ../fish/guestfish-commands.pod:51
31112 msgid "echo"
31113 msgstr ""
31114
31115 # type: verbatim
31116 #. type: verbatim
31117 #: ../fish/guestfish-commands.pod:53
31118 #, no-wrap
31119 msgid ""
31120 " echo [params ...]\n"
31121 "\n"
31122 msgstr ""
31123
31124 # type: textblock
31125 #. type: textblock
31126 #: ../fish/guestfish-commands.pod:55
31127 msgid "This echos the parameters to the terminal."
31128 msgstr ""
31129
31130 # type: =head2
31131 #. type: =head2
31132 #: ../fish/guestfish-commands.pod:57
31133 msgid "edit"
31134 msgstr ""
31135
31136 # type: =head2
31137 #. type: =head2
31138 #: ../fish/guestfish-commands.pod:59
31139 msgid "vi"
31140 msgstr ""
31141
31142 # type: =head2
31143 #. type: =head2
31144 #: ../fish/guestfish-commands.pod:61
31145 msgid "emacs"
31146 msgstr ""
31147
31148 # type: verbatim
31149 #. type: verbatim
31150 #: ../fish/guestfish-commands.pod:63
31151 #, no-wrap
31152 msgid ""
31153 " edit filename\n"
31154 "\n"
31155 msgstr ""
31156
31157 # type: textblock
31158 #. type: textblock
31159 #: ../fish/guestfish-commands.pod:65
31160 msgid ""
31161 "This is used to edit a file.  It downloads the file, edits it locally using "
31162 "your editor, then uploads the result."
31163 msgstr ""
31164
31165 # type: textblock
31166 #. type: textblock
31167 #: ../fish/guestfish-commands.pod:68
31168 msgid ""
31169 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31170 "or C<emacs> you will get those corresponding editors."
31171 msgstr ""
31172
31173 # type: =head2
31174 #. type: =head2
31175 #: ../fish/guestfish-commands.pod:72
31176 msgid "glob"
31177 msgstr ""
31178
31179 # type: verbatim
31180 #. type: verbatim
31181 #: ../fish/guestfish-commands.pod:74
31182 #, no-wrap
31183 msgid ""
31184 " glob command args...\n"
31185 "\n"
31186 msgstr ""
31187
31188 # type: textblock
31189 #. type: textblock
31190 #: ../fish/guestfish-commands.pod:76
31191 msgid ""
31192 "Expand wildcards in any paths in the args list, and run C<command> "
31193 "repeatedly on each matching path."
31194 msgstr ""
31195
31196 # type: textblock
31197 #. type: textblock
31198 #: ../fish/guestfish-commands.pod:79
31199 msgid "See L</WILDCARDS AND GLOBBING>."
31200 msgstr ""
31201
31202 # type: =head2
31203 #. type: =head2
31204 #: ../fish/guestfish-commands.pod:81
31205 msgid "hexedit"
31206 msgstr ""
31207
31208 # type: verbatim
31209 #. type: verbatim
31210 #: ../fish/guestfish-commands.pod:83
31211 #, no-wrap
31212 msgid ""
31213 " hexedit <filename|device>\n"
31214 " hexedit <filename|device> <max>\n"
31215 " hexedit <filename|device> <start> <max>\n"
31216 "\n"
31217 msgstr ""
31218
31219 # type: textblock
31220 #. type: textblock
31221 #: ../fish/guestfish-commands.pod:87
31222 msgid ""
31223 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
31224 "device."
31225 msgstr ""
31226
31227 # type: textblock
31228 #. type: textblock
31229 #: ../fish/guestfish-commands.pod:90
31230 msgid ""
31231 "This command works by downloading potentially the whole file or device, "
31232 "editing it locally, then uploading it.  If the file or device is large, you "
31233 "have to specify which part you wish to edit by using C<max> and/or C<start> "
31234 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
31235 "usual modifiers allowed such as C<1M> (1 megabyte)."
31236 msgstr ""
31237
31238 # type: textblock
31239 #. type: textblock
31240 #: ../fish/guestfish-commands.pod:97
31241 msgid "For example to edit the first few sectors of a disk you might do:"
31242 msgstr ""
31243
31244 # type: verbatim
31245 #. type: verbatim
31246 #: ../fish/guestfish-commands.pod:100
31247 #, no-wrap
31248 msgid ""
31249 " hexedit /dev/sda 1M\n"
31250 "\n"
31251 msgstr ""
31252
31253 # type: textblock
31254 #. type: textblock
31255 #: ../fish/guestfish-commands.pod:102
31256 msgid ""
31257 "which would allow you to edit anywhere within the first megabyte of the disk."
31258 msgstr ""
31259
31260 # type: textblock
31261 #. type: textblock
31262 #: ../fish/guestfish-commands.pod:105
31263 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
31264 msgstr ""
31265
31266 # type: verbatim
31267 #. type: verbatim
31268 #: ../fish/guestfish-commands.pod:107
31269 #, no-wrap
31270 msgid ""
31271 " hexedit /dev/sda1 0x400 0x400\n"
31272 "\n"
31273 msgstr ""
31274
31275 # type: textblock
31276 #. type: textblock
31277 #: ../fish/guestfish-commands.pod:109
31278 msgid "(assuming the superblock is in the standard location)."
31279 msgstr ""
31280
31281 # type: textblock
31282 #. type: textblock
31283 #: ../fish/guestfish-commands.pod:111
31284 msgid ""
31285 "This command requires the external L<hexedit(1)> program.  You can specify "
31286 "another program to use by setting the C<HEXEDITOR> environment variable."
31287 msgstr ""
31288
31289 # type: textblock
31290 #. type: textblock
31291 #: ../fish/guestfish-commands.pod:115
31292 msgid "See also L</hexdump>."
31293 msgstr ""
31294
31295 # type: =head2
31296 #. type: =head2
31297 #: ../fish/guestfish-commands.pod:117
31298 msgid "lcd"
31299 msgstr ""
31300
31301 # type: verbatim
31302 #. type: verbatim
31303 #: ../fish/guestfish-commands.pod:119
31304 #, no-wrap
31305 msgid ""
31306 " lcd directory\n"
31307 "\n"
31308 msgstr ""
31309
31310 # type: textblock
31311 #. type: textblock
31312 #: ../fish/guestfish-commands.pod:121
31313 msgid ""
31314 "Change the local directory, ie. the current directory of guestfish itself."
31315 msgstr ""
31316
31317 # type: textblock
31318 #. type: textblock
31319 #: ../fish/guestfish-commands.pod:124
31320 msgid "Note that C<!cd> won't do what you might expect."
31321 msgstr ""
31322
31323 # type: =head2
31324 #. type: =head2
31325 #: ../fish/guestfish-commands.pod:126
31326 msgid "man"
31327 msgstr ""
31328
31329 # type: =head2
31330 #. type: =head2
31331 #: ../fish/guestfish-commands.pod:128
31332 msgid "manual"
31333 msgstr ""
31334
31335 # type: verbatim
31336 #. type: verbatim
31337 #: ../fish/guestfish-commands.pod:130
31338 #, no-wrap
31339 msgid ""
31340 "  man\n"
31341 "\n"
31342 msgstr ""
31343
31344 # type: textblock
31345 #. type: textblock
31346 #: ../fish/guestfish-commands.pod:132
31347 msgid "Opens the manual page for guestfish."
31348 msgstr ""
31349
31350 # type: =head2
31351 #. type: =head2
31352 #: ../fish/guestfish-commands.pod:134
31353 msgid "more"
31354 msgstr ""
31355
31356 # type: =head2
31357 #. type: =head2
31358 #: ../fish/guestfish-commands.pod:136
31359 msgid "less"
31360 msgstr ""
31361
31362 # type: verbatim
31363 #. type: verbatim
31364 #: ../fish/guestfish-commands.pod:138
31365 #, no-wrap
31366 msgid ""
31367 " more filename\n"
31368 "\n"
31369 msgstr ""
31370
31371 # type: verbatim
31372 #. type: verbatim
31373 #: ../fish/guestfish-commands.pod:140
31374 #, no-wrap
31375 msgid ""
31376 " less filename\n"
31377 "\n"
31378 msgstr ""
31379
31380 # type: textblock
31381 #. type: textblock
31382 #: ../fish/guestfish-commands.pod:142
31383 msgid "This is used to view a file."
31384 msgstr ""
31385
31386 # type: textblock
31387 #. type: textblock
31388 #: ../fish/guestfish-commands.pod:144
31389 msgid ""
31390 "The default viewer is C<$PAGER>.  However if you use the alternate command "
31391 "C<less> you will get the C<less> command specifically."
31392 msgstr ""
31393
31394 # type: =head2
31395 #. type: =head2
31396 #: ../fish/guestfish-commands.pod:147
31397 msgid "reopen"
31398 msgstr ""
31399
31400 # type: verbatim
31401 #. type: verbatim
31402 #: ../fish/guestfish-commands.pod:149
31403 #, no-wrap
31404 msgid ""
31405 "  reopen\n"
31406 "\n"
31407 msgstr ""
31408
31409 # type: textblock
31410 #. type: textblock
31411 #: ../fish/guestfish-commands.pod:151
31412 msgid ""
31413 "Close and reopen the libguestfs handle.  It is not necessary to use this "
31414 "normally, because the handle is closed properly when guestfish exits.  "
31415 "However this is occasionally useful for testing."
31416 msgstr ""
31417
31418 # type: =head2
31419 #. type: =head2
31420 #: ../fish/guestfish-commands.pod:155
31421 msgid "sparse"
31422 msgstr ""
31423
31424 # type: verbatim
31425 #. type: verbatim
31426 #: ../fish/guestfish-commands.pod:157
31427 #, no-wrap
31428 msgid ""
31429 " sparse filename size\n"
31430 "\n"
31431 msgstr ""
31432
31433 # type: textblock
31434 #. type: textblock
31435 #: ../fish/guestfish-commands.pod:159
31436 msgid ""
31437 "This creates an empty sparse file of the given size, and then adds so it can "
31438 "be further examined."
31439 msgstr ""
31440
31441 # type: textblock
31442 #. type: textblock
31443 #: ../fish/guestfish-commands.pod:162
31444 msgid ""
31445 "In all respects it works the same as the L</alloc> command, except that the "
31446 "image file is allocated sparsely, which means that disk blocks are not "
31447 "assigned to the file until they are needed.  Sparse disk files only use "
31448 "space when written to, but they are slower and there is a danger you could "
31449 "run out of real disk space during a write operation."
31450 msgstr ""
31451
31452 # type: =head2
31453 #. type: =head2
31454 #: ../fish/guestfish-commands.pod:172
31455 msgid "supported"
31456 msgstr ""
31457
31458 # type: verbatim
31459 #. type: verbatim
31460 #: ../fish/guestfish-commands.pod:174
31461 #, no-wrap
31462 msgid ""
31463 " supported\n"
31464 "\n"
31465 msgstr ""
31466
31467 # type: textblock
31468 #. type: textblock
31469 #: ../fish/guestfish-commands.pod:176
31470 msgid ""
31471 "This command returns a list of the optional groups known to the daemon, and "
31472 "indicates which ones are supported by this build of the libguestfs appliance."
31473 msgstr ""
31474
31475 # type: textblock
31476 #. type: textblock
31477 #: ../fish/guestfish-commands.pod:180
31478 msgid "See also L<guestfs(3)/AVAILABILITY>."
31479 msgstr ""
31480
31481 # type: =head2
31482 #. type: =head2
31483 #: ../fish/guestfish-commands.pod:182
31484 msgid "time"
31485 msgstr ""
31486
31487 # type: verbatim
31488 #. type: verbatim
31489 #: ../fish/guestfish-commands.pod:184
31490 #, no-wrap
31491 msgid ""
31492 " time command args...\n"
31493 "\n"
31494 msgstr ""
31495
31496 # type: textblock
31497 #. type: textblock
31498 #: ../fish/guestfish-commands.pod:186
31499 msgid ""
31500 "Run the command as usual, but print the elapsed time afterwards.  This can "
31501 "be useful for benchmarking operations."
31502 msgstr ""
31503
31504 # type: textblock
31505 #. type: textblock
31506 #: ../test-tool/libguestfs-test-tool.pod:5
31507 msgid "libguestfs-test-tool - End user tests for libguestfs"
31508 msgstr ""
31509
31510 # type: verbatim
31511 #. type: verbatim
31512 #: ../test-tool/libguestfs-test-tool.pod:9
31513 #, no-wrap
31514 msgid ""
31515 " libguestfs-test-tool [--options]\n"
31516 "\n"
31517 msgstr ""
31518
31519 # type: textblock
31520 #. type: textblock
31521 #: ../test-tool/libguestfs-test-tool.pod:13
31522 msgid ""
31523 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
31524 "and developers, to allow them to check basic libguestfs functionality is "
31525 "working.  This is needed because libguestfs occasionally breaks for reasons "
31526 "beyond our control: usually because of changes in the underlying qemu or "
31527 "kernel packages, or the host environment."
31528 msgstr ""
31529
31530 # type: textblock
31531 #. type: textblock
31532 #: ../test-tool/libguestfs-test-tool.pod:20
31533 msgid "If you suspect a problem in libguestfs, then just run:"
31534 msgstr ""
31535
31536 # type: verbatim
31537 #. type: verbatim
31538 #: ../test-tool/libguestfs-test-tool.pod:22
31539 #, no-wrap
31540 msgid ""
31541 " libguestfs-test-tool\n"
31542 "\n"
31543 msgstr ""
31544
31545 # type: textblock
31546 #. type: textblock
31547 #: ../test-tool/libguestfs-test-tool.pod:24
31548 msgid "It will print lots of diagnostic messages."
31549 msgstr ""
31550
31551 # type: textblock
31552 #. type: textblock
31553 #: ../test-tool/libguestfs-test-tool.pod:26
31554 msgid "If it runs to completion successfully, you will see this near the end:"
31555 msgstr ""
31556
31557 # type: verbatim
31558 #. type: verbatim
31559 #: ../test-tool/libguestfs-test-tool.pod:28
31560 #, no-wrap
31561 msgid ""
31562 " ===== TEST FINISHED OK =====\n"
31563 "\n"
31564 msgstr ""
31565
31566 # type: textblock
31567 #. type: textblock
31568 #: ../test-tool/libguestfs-test-tool.pod:30
31569 msgid "and the test tool will exit with code 0."
31570 msgstr ""
31571
31572 # type: textblock
31573 #. type: textblock
31574 #: ../test-tool/libguestfs-test-tool.pod:32
31575 msgid ""
31576 "If it fails (and/or exits with non-zero error code), please paste the "
31577 "B<complete, unedited> output of the test tool into a bug report.  More "
31578 "information about reporting bugs can be found on the L<http://libguestfs.org/"
31579 "> website."
31580 msgstr ""
31581
31582 # type: =item
31583 #. type: =item
31584 #: ../test-tool/libguestfs-test-tool.pod:41
31585 msgid "I<--help>"
31586 msgstr ""
31587
31588 # type: textblock
31589 #. type: textblock
31590 #: ../test-tool/libguestfs-test-tool.pod:43
31591 msgid "Display short usage information and exit."
31592 msgstr ""
31593
31594 # type: =item
31595 #. type: =item
31596 #: ../test-tool/libguestfs-test-tool.pod:45
31597 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
31598 msgstr ""
31599
31600 # type: textblock
31601 #. type: textblock
31602 #: ../test-tool/libguestfs-test-tool.pod:47
31603 msgid ""
31604 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
31605 "normally look in the C<$libexec> directory that was configured when the tool "
31606 "was built."
31607 msgstr ""
31608
31609 # type: =item
31610 #. type: =item
31611 #: ../test-tool/libguestfs-test-tool.pod:51
31612 msgid "I<--qemu qemu_binary>"
31613 msgstr ""
31614
31615 # type: textblock
31616 #. type: textblock
31617 #: ../test-tool/libguestfs-test-tool.pod:53
31618 msgid ""
31619 "If you have downloaded another qemu binary, point this option at the full "
31620 "path of the binary to try it."
31621 msgstr ""
31622
31623 # type: =item
31624 #. type: =item
31625 #: ../test-tool/libguestfs-test-tool.pod:56
31626 msgid "I<--qemudir qemu_source_dir>"
31627 msgstr ""
31628
31629 # type: textblock
31630 #. type: textblock
31631 #: ../test-tool/libguestfs-test-tool.pod:58
31632 msgid ""
31633 "If you have compiled qemu from source, point this option at the source "
31634 "directory to try it."
31635 msgstr ""
31636
31637 # type: =item
31638 #. type: =item
31639 #: ../test-tool/libguestfs-test-tool.pod:61
31640 msgid "I<--timeout N>"
31641 msgstr ""
31642
31643 # type: textblock
31644 #. type: textblock
31645 #: ../test-tool/libguestfs-test-tool.pod:63
31646 msgid ""
31647 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
31648 "does not usually need to be adjusted unless your machine is very slow."
31649 msgstr ""
31650
31651 # type: =head1
31652 #. type: =head1
31653 #: ../test-tool/libguestfs-test-tool.pod:69
31654 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
31655 msgstr ""
31656
31657 # type: textblock
31658 #. type: textblock
31659 #: ../test-tool/libguestfs-test-tool.pod:71
31660 msgid ""
31661 "If you have compiled another version of qemu from source and would like to "
31662 "try that, then you can use the I<--qemudir> option to point to the qemu "
31663 "source directory."
31664 msgstr ""
31665
31666 # type: textblock
31667 #. type: textblock
31668 #: ../test-tool/libguestfs-test-tool.pod:75
31669 msgid ""
31670 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
31671 "option to point to the binary."
31672 msgstr ""
31673
31674 # type: textblock
31675 #. type: textblock
31676 #: ../test-tool/libguestfs-test-tool.pod:78
31677 msgid ""
31678 "When using an alternate qemu with libguestfs, usually you would need to "
31679 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
31680 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
31681 "use either of the I<--qemudir> or I<--qemu> options."
31682 msgstr ""
31683
31684 # type: textblock
31685 #. type: textblock
31686 #: ../test-tool/libguestfs-test-tool.pod:85
31687 msgid ""
31688 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
31689 "I<1> if there was an error."
31690 msgstr ""
31691
31692 # type: =item
31693 #. type: =item
31694 #: ../test-tool/libguestfs-test-tool.pod:92
31695 msgid "/usr/libexec/libguestfs-test-tool-helper"
31696 msgstr ""
31697
31698 # type: textblock
31699 #. type: textblock
31700 #: ../test-tool/libguestfs-test-tool.pod:94
31701 msgid ""
31702 "This helper program is run inside the appliance and provides additional "
31703 "tests."
31704 msgstr ""
31705
31706 # type: =item
31707 #. type: =item
31708 #: ../test-tool/libguestfs-test-tool.pod:97
31709 msgid "/usr/bin/mkisofs"
31710 msgstr ""
31711
31712 # type: textblock
31713 #. type: textblock
31714 #: ../test-tool/libguestfs-test-tool.pod:99
31715 msgid ""
31716 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
31717 "which is used as part of the tests."
31718 msgstr ""
31719
31720 # type: textblock
31721 #. type: textblock
31722 #: ../test-tool/libguestfs-test-tool.pod:106
31723 msgid ""
31724 "For the full list of environment variables which may affect libguestfs, "
31725 "please see the L<guestfs(3)> manual page."
31726 msgstr ""
31727
31728 # type: textblock
31729 #. type: textblock
31730 #: ../test-tool/libguestfs-test-tool.pod:111
31731 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
31732 msgstr ""
31733
31734 # type: textblock
31735 #. type: textblock
31736 #: ../test-tool/libguestfs-test-tool.pod:121
31737 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
31738 msgstr ""
31739
31740 # type: textblock
31741 #. type: textblock
31742 #: ../fuse/guestmount.pod:5
31743 msgid ""
31744 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
31745 msgstr ""
31746
31747 # type: verbatim
31748 #. type: verbatim
31749 #: ../fuse/guestmount.pod:9
31750 #, no-wrap
31751 msgid ""
31752 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
31753 "\n"
31754 msgstr ""
31755
31756 # type: verbatim
31757 #. type: verbatim
31758 #: ../fuse/guestmount.pod:11
31759 #, no-wrap
31760 msgid ""
31761 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
31762 "\n"
31763 msgstr ""
31764
31765 # type: verbatim
31766 #. type: verbatim
31767 #: ../fuse/guestmount.pod:13
31768 #, no-wrap
31769 msgid ""
31770 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
31771 "\n"
31772 msgstr ""
31773
31774 # type: textblock
31775 #. type: textblock
31776 #: ../fuse/guestmount.pod:17
31777 msgid ""
31778 "You must I<not> use C<guestmount> in read-write mode on live virtual "
31779 "machines.  If you do this, you risk disk corruption in the VM."
31780 msgstr ""
31781
31782 # type: textblock
31783 #. type: textblock
31784 #: ../fuse/guestmount.pod:22
31785 msgid ""
31786 "The guestmount program can be used to mount virtual machine filesystems and "
31787 "other disk images on the host.  It uses libguestfs for access to the guest "
31788 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31789 "a mountable device."
31790 msgstr ""
31791
31792 # type: textblock
31793 #. type: textblock
31794 #: ../fuse/guestmount.pod:27
31795 msgid ""
31796 "Along with other options, you have to give at least one device (I<-a> "
31797 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31798 "option) or use the I<-i> inspection option.  How this works is better "
31799 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31800 "below."
31801 msgstr ""
31802
31803 # type: textblock
31804 #. type: textblock
31805 #: ../fuse/guestmount.pod:33
31806 msgid ""
31807 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31808 "by you, and the filesystem will not be visible to any other users unless you "
31809 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31810 "the filesystem, use the C<fusermount -u> command."
31811 msgstr ""
31812
31813 # type: textblock
31814 #. type: textblock
31815 #: ../fuse/guestmount.pod:41
31816 msgid ""
31817 "For a typical Windows guest which has its main filesystem on the first "
31818 "partition:"
31819 msgstr ""
31820
31821 # type: verbatim
31822 #. type: verbatim
31823 #: ../fuse/guestmount.pod:44
31824 #, no-wrap
31825 msgid ""
31826 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31827 "\n"
31828 msgstr ""
31829
31830 # type: textblock
31831 #. type: textblock
31832 #: ../fuse/guestmount.pod:46
31833 msgid ""
31834 "For a typical Linux guest which has a /boot filesystem on the first "
31835 "partition, and the root filesystem on a logical volume:"
31836 msgstr ""
31837
31838 # type: verbatim
31839 #. type: verbatim
31840 #: ../fuse/guestmount.pod:49
31841 #, no-wrap
31842 msgid ""
31843 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31844 "\n"
31845 msgstr ""
31846
31847 # type: textblock
31848 #. type: textblock
31849 #: ../fuse/guestmount.pod:51
31850 msgid "To get libguestfs to detect guest mountpoints for you:"
31851 msgstr ""
31852
31853 # type: verbatim
31854 #. type: verbatim
31855 #: ../fuse/guestmount.pod:53
31856 #, no-wrap
31857 msgid ""
31858 " guestmount -a guest.img -i --ro /mnt\n"
31859 "\n"
31860 msgstr ""
31861
31862 # type: textblock
31863 #. type: textblock
31864 #: ../fuse/guestmount.pod:55
31865 msgid "For a libvirt guest called \"Guest\" you could do:"
31866 msgstr ""
31867
31868 # type: verbatim
31869 #. type: verbatim
31870 #: ../fuse/guestmount.pod:57
31871 #, no-wrap
31872 msgid ""
31873 " guestmount -d Guest -i --ro /mnt\n"
31874 "\n"
31875 msgstr ""
31876
31877 # type: textblock
31878 #. type: textblock
31879 #: ../fuse/guestmount.pod:59
31880 msgid ""
31881 "If you don't know what filesystems are contained in a guest or disk image, "
31882 "use L<virt-filesystems(1)> first:"
31883 msgstr ""
31884
31885 # type: verbatim
31886 #. type: verbatim
31887 #: ../fuse/guestmount.pod:62
31888 #, no-wrap
31889 msgid ""
31890 " virt-filesystems MyGuest\n"
31891 "\n"
31892 msgstr ""
31893
31894 # type: textblock
31895 #. type: textblock
31896 #: ../fuse/guestmount.pod:64
31897 msgid ""
31898 "If you want to trace the libguestfs calls but without excessive debugging "
31899 "information, we recommend:"
31900 msgstr ""
31901
31902 # type: verbatim
31903 #. type: verbatim
31904 #: ../fuse/guestmount.pod:67
31905 #, no-wrap
31906 msgid ""
31907 " guestmount [...] --trace /mnt\n"
31908 "\n"
31909 msgstr ""
31910
31911 # type: textblock
31912 #. type: textblock
31913 #: ../fuse/guestmount.pod:69
31914 msgid "If you want to debug the program, we recommend:"
31915 msgstr ""
31916
31917 # type: verbatim
31918 #. type: verbatim
31919 #: ../fuse/guestmount.pod:71
31920 #, no-wrap
31921 msgid ""
31922 " guestmount [...] --trace --verbose /mnt\n"
31923 "\n"
31924 msgstr ""
31925
31926 # type: =item
31927 #. type: =item
31928 #: ../fuse/guestmount.pod:77
31929 msgid "B<-a image> | B<--add image>"
31930 msgstr ""
31931
31932 # type: textblock
31933 #. type: textblock
31934 #: ../fuse/guestmount.pod:79
31935 msgid "Add a block device or virtual machine image."
31936 msgstr ""
31937
31938 # type: =item
31939 #. type: =item
31940 #: ../fuse/guestmount.pod:84
31941 msgid "B<-c URI> | B<--connect URI>"
31942 msgstr ""
31943
31944 # type: =item
31945 #. type: =item
31946 #: ../fuse/guestmount.pod:90
31947 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
31948 msgstr ""
31949
31950 # type: =item
31951 #. type: =item
31952 #: ../fuse/guestmount.pod:96
31953 msgid "B<--dir-cache-timeout N>"
31954 msgstr ""
31955
31956 # type: textblock
31957 #. type: textblock
31958 #: ../fuse/guestmount.pod:98
31959 msgid ""
31960 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
31961 "seconds.  The readdir cache [actually, there are several semi-independent "
31962 "caches] is populated after a readdir(2) call with the stat and extended "
31963 "attributes of the files in the directory, in anticipation that they will be "
31964 "requested soon after."
31965 msgstr ""
31966
31967 # type: textblock
31968 #. type: textblock
31969 #: ../fuse/guestmount.pod:104
31970 msgid ""
31971 "There is also a different attribute cache implemented by FUSE (see the FUSE "
31972 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
31973 "requests, only cache existing ones."
31974 msgstr ""
31975
31976 # type: =item
31977 #. type: =item
31978 #: ../fuse/guestmount.pod:115
31979 msgid "B<--format=raw|qcow2|..> | B<--format>"
31980 msgstr ""
31981
31982 # type: textblock
31983 #. type: textblock
31984 #: ../fuse/guestmount.pod:122
31985 msgid ""
31986 "If you have untrusted raw-format guest disk images, you should use this "
31987 "option to specify the disk format.  This avoids a possible security problem "
31988 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
31989 "guestfs_add_drive_opts>."
31990 msgstr ""
31991
31992 # type: =item
31993 #. type: =item
31994 #: ../fuse/guestmount.pod:127
31995 msgid "B<--fuse-help>"
31996 msgstr ""
31997
31998 # type: textblock
31999 #. type: textblock
32000 #: ../fuse/guestmount.pod:129
32001 msgid "Display help on special FUSE options (see I<-o> below)."
32002 msgstr ""
32003
32004 # type: textblock
32005 #. type: textblock
32006 #: ../fuse/guestmount.pod:133
32007 msgid "Display brief help and exit."
32008 msgstr ""
32009
32010 # type: =item
32011 #. type: =item
32012 #: ../fuse/guestmount.pod:135
32013 msgid "B<-i> | B<--inspector>"
32014 msgstr ""
32015
32016 # type: textblock
32017 #. type: textblock
32018 #: ../fuse/guestmount.pod:155
32019 msgid ""
32020 "Mount the named partition or logical volume on the given mountpoint B<in the "
32021 "guest> (this has nothing to do with mountpoints in the host)."
32022 msgstr ""
32023
32024 # type: textblock
32025 #. type: textblock
32026 #: ../fuse/guestmount.pod:158
32027 msgid ""
32028 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
32029 "something on C</>."
32030 msgstr ""
32031
32032 # type: =item
32033 #. type: =item
32034 #: ../fuse/guestmount.pod:171
32035 msgid "B<-n> | B<--no-sync>"
32036 msgstr ""
32037
32038 # type: textblock
32039 #. type: textblock
32040 #: ../fuse/guestmount.pod:173
32041 msgid ""
32042 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
32043 "unmounted.  If you specify this option, then we don't attempt to sync the "
32044 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
32045 msgstr ""
32046
32047 # type: =item
32048 #. type: =item
32049 #: ../fuse/guestmount.pod:178
32050 msgid "B<-o option> | B<--option option>"
32051 msgstr ""
32052
32053 # type: textblock
32054 #. type: textblock
32055 #: ../fuse/guestmount.pod:180
32056 msgid "Pass extra options to FUSE."
32057 msgstr ""
32058
32059 # type: textblock
32060 #. type: textblock
32061 #: ../fuse/guestmount.pod:182
32062 msgid ""
32063 "To get a list of all the extra options supported by FUSE, use the command "
32064 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32065 "of them are a good idea."
32066 msgstr ""
32067
32068 # type: verbatim
32069 #. type: verbatim
32070 #: ../fuse/guestmount.pod:186
32071 #, no-wrap
32072 msgid ""
32073 " guestmount --fuse-help\n"
32074 "\n"
32075 msgstr ""
32076
32077 # type: textblock
32078 #. type: textblock
32079 #: ../fuse/guestmount.pod:188
32080 msgid "Some potentially useful FUSE options:"
32081 msgstr ""
32082
32083 # type: =item
32084 #. type: =item
32085 #: ../fuse/guestmount.pod:192
32086 msgid "B<-o allow_other>"
32087 msgstr ""
32088
32089 # type: textblock
32090 #. type: textblock
32091 #: ../fuse/guestmount.pod:194
32092 msgid "Allow other users to see the filesystem."
32093 msgstr ""
32094
32095 # type: =item
32096 #. type: =item
32097 #: ../fuse/guestmount.pod:196
32098 msgid "B<-o attr_timeout=N>"
32099 msgstr ""
32100
32101 # type: textblock
32102 #. type: textblock
32103 #: ../fuse/guestmount.pod:198
32104 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32105 msgstr ""
32106
32107 # type: =item
32108 #. type: =item
32109 #: ../fuse/guestmount.pod:200
32110 msgid "B<-o kernel_cache>"
32111 msgstr ""
32112
32113 # type: textblock
32114 #. type: textblock
32115 #: ../fuse/guestmount.pod:202
32116 msgid ""
32117 "Allow the kernel to cache files (reduces the number of reads that have to go "
32118 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32119 "afford the extra memory usage."
32120 msgstr ""
32121
32122 # type: =item
32123 #. type: =item
32124 #: ../fuse/guestmount.pod:206
32125 msgid "B<-o uid=N> B<-o gid=N>"
32126 msgstr ""
32127
32128 # type: textblock
32129 #. type: textblock
32130 #: ../fuse/guestmount.pod:208
32131 msgid ""
32132 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32133 "the chosen values."
32134 msgstr ""
32135
32136 # type: =item
32137 #. type: =item
32138 #: ../fuse/guestmount.pod:213
32139 msgid "B<-r> | B<--ro>"
32140 msgstr ""
32141
32142 # type: textblock
32143 #. type: textblock
32144 #: ../fuse/guestmount.pod:215
32145 msgid ""
32146 "Add devices and mount everything read-only.  Also disallow writes and make "
32147 "the disk appear read-only to FUSE."
32148 msgstr ""
32149
32150 # type: textblock
32151 #. type: textblock
32152 #: ../fuse/guestmount.pod:218
32153 msgid ""
32154 "This is highly recommended if you are not going to edit the guest disk.  If "
32155 "the guest is running and this option is I<not> supplied, then there is a "
32156 "strong risk of disk corruption in the guest.  We try to prevent this from "
32157 "happening, but it is not always possible."
32158 msgstr ""
32159
32160 # type: textblock
32161 #. type: textblock
32162 #: ../fuse/guestmount.pod:223
32163 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32164 msgstr ""
32165
32166 # type: textblock
32167 #. type: textblock
32168 #: ../fuse/guestmount.pod:227
32169 msgid "Enable SELinux support for the guest."
32170 msgstr ""
32171
32172 # type: =item
32173 #. type: =item
32174 #: ../fuse/guestmount.pod:229
32175 msgid "B<-v> | B<--verbose>"
32176 msgstr ""
32177
32178 # type: textblock
32179 #. type: textblock
32180 #: ../fuse/guestmount.pod:231
32181 msgid "Enable verbose messages from underlying libguestfs."
32182 msgstr ""
32183
32184 # type: =item
32185 #. type: =item
32186 #: ../fuse/guestmount.pod:233
32187 msgid "B<-V> | B<--version>"
32188 msgstr ""
32189
32190 # type: textblock
32191 #. type: textblock
32192 #: ../fuse/guestmount.pod:235
32193 msgid "Display the program version and exit."
32194 msgstr ""
32195
32196 # type: =item
32197 #. type: =item
32198 #: ../fuse/guestmount.pod:237
32199 msgid "B<-w> | B<--rw>"
32200 msgstr ""
32201
32202 #. type: textblock
32203 #: ../fuse/guestmount.pod:242 ../fuse/guestmount.pod:263
32204 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32205 msgstr ""
32206
32207 # type: =item
32208 #. type: =item
32209 #: ../fuse/guestmount.pod:244
32210 msgid "B<-x> | B<--trace>"
32211 msgstr ""
32212
32213 # type: textblock
32214 #. type: textblock
32215 #: ../fuse/guestmount.pod:246
32216 msgid "Trace libguestfs calls and entry into each FUSE function."
32217 msgstr ""
32218
32219 # type: textblock
32220 #. type: textblock
32221 #: ../fuse/guestmount.pod:248
32222 msgid "This also stops the daemon from forking into the background."
32223 msgstr ""
32224
32225 # type: textblock
32226 #. type: textblock
32227 #: ../fuse/guestmount.pod:269
32228 msgid ""
32229 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32230 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
32231 "net/>."
32232 msgstr ""
32233
32234 # type: textblock
32235 #. type: textblock
32236 #: ../tools/virt-edit.pl:34
32237 msgid "virt-edit - Edit a file in a virtual machine"
32238 msgstr ""
32239
32240 # type: verbatim
32241 #. type: verbatim
32242 #: ../tools/virt-edit.pl:38
32243 #, no-wrap
32244 msgid ""
32245 " virt-edit [--options] domname file\n"
32246 "\n"
32247 msgstr ""
32248
32249 # type: verbatim
32250 #. type: verbatim
32251 #: ../tools/virt-edit.pl:40
32252 #, no-wrap
32253 msgid ""
32254 " virt-edit [--options] disk.img [disk.img ...] file\n"
32255 "\n"
32256 msgstr ""
32257
32258 # type: verbatim
32259 #. type: verbatim
32260 #: ../tools/virt-edit.pl:42
32261 #, no-wrap
32262 msgid ""
32263 " virt-edit [domname|disk.img] file -e 'expr'\n"
32264 "\n"
32265 msgstr ""
32266
32267 # type: textblock
32268 #. type: textblock
32269 #: ../tools/virt-edit.pl:46
32270 msgid ""
32271 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
32272 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
32273 "doing this, but doesn't catch all cases."
32274 msgstr ""
32275
32276 # type: textblock
32277 #. type: textblock
32278 #: ../tools/virt-edit.pl:52
32279 msgid ""
32280 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
32281 "the named virtual machine (or disk image)."
32282 msgstr ""
32283
32284 # type: textblock
32285 #. type: textblock
32286 #: ../tools/virt-edit.pl:55
32287 msgid ""
32288 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
32289 "you should look at the L<guestfish(1)> tool."
32290 msgstr ""
32291
32292 # type: textblock
32293 #. type: textblock
32294 #: ../tools/virt-edit.pl:60
32295 msgid "Edit the named files interactively:"
32296 msgstr ""
32297
32298 # type: verbatim
32299 #. type: verbatim
32300 #: ../tools/virt-edit.pl:62
32301 #, no-wrap
32302 msgid ""
32303 " virt-edit mydomain /boot/grub/grub.conf\n"
32304 "\n"
32305 msgstr ""
32306
32307 # type: verbatim
32308 #. type: verbatim
32309 #: ../tools/virt-edit.pl:64
32310 #, no-wrap
32311 msgid ""
32312 " virt-edit mydomain /etc/passwd\n"
32313 "\n"
32314 msgstr ""
32315
32316 # type: textblock
32317 #. type: textblock
32318 #: ../tools/virt-edit.pl:66
32319 msgid ""
32320 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
32321 "below).  To change the init default level to 5:"
32322 msgstr ""
32323
32324 # type: verbatim
32325 #. type: verbatim
32326 #: ../tools/virt-edit.pl:70
32327 #, no-wrap
32328 msgid ""
32329 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
32330 "\n"
32331 msgstr ""
32332
32333 # type: textblock
32334 #. type: textblock
32335 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
32336 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
32337 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
32338 msgid "Display brief help."
32339 msgstr ""
32340
32341 # type: textblock
32342 #. type: textblock
32343 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
32344 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
32345 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
32346 #: ../tools/virt-list-partitions.pl:72
32347 msgid "Display version number and exit."
32348 msgstr ""
32349
32350 # type: =item
32351 #. type: =item
32352 #: ../tools/virt-edit.pl:96
32353 msgid "B<--backup extension> | B<-b extension>"
32354 msgstr ""
32355
32356 # type: textblock
32357 #. type: textblock
32358 #: ../tools/virt-edit.pl:98
32359 msgid ""
32360 "Create a backup of the original file I<in the guest disk image>.  The backup "
32361 "has the original filename with C<extension> added."
32362 msgstr ""
32363
32364 # type: textblock
32365 #. type: textblock
32366 #: ../tools/virt-edit.pl:101
32367 msgid ""
32368 "Usually the first character of C<extension> would be a dot C<.> so you would "
32369 "write:"
32370 msgstr ""
32371
32372 # type: verbatim
32373 #. type: verbatim
32374 #: ../tools/virt-edit.pl:104
32375 #, no-wrap
32376 msgid ""
32377 " virt-edit -b .orig [etc]\n"
32378 "\n"
32379 msgstr ""
32380
32381 # type: textblock
32382 #. type: textblock
32383 #: ../tools/virt-edit.pl:106
32384 msgid "By default, no backup file is made."
32385 msgstr ""
32386
32387 # type: =item
32388 #. type: =item
32389 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
32390 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
32391 #: ../tools/virt-list-partitions.pl:78
32392 msgid "B<--connect URI> | B<-c URI>"
32393 msgstr ""
32394
32395 # type: textblock
32396 #. type: textblock
32397 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
32398 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
32399 #: ../tools/virt-list-partitions.pl:80
32400 msgid ""
32401 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
32402 "to the default libvirt hypervisor."
32403 msgstr ""
32404
32405 # type: textblock
32406 #. type: textblock
32407 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
32408 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
32409 #: ../tools/virt-list-partitions.pl:83
32410 msgid ""
32411 "If you specify guest block devices directly, then libvirt is not used at all."
32412 msgstr ""
32413
32414 # type: =item
32415 #. type: =item
32416 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
32417 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
32418 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
32419 msgid "B<--format> raw"
32420 msgstr ""
32421
32422 # type: textblock
32423 #. type: textblock
32424 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
32425 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
32426 #: ../tools/virt-list-partitions.pl:92
32427 msgid ""
32428 "Specify the format of disk images given on the command line.  If this is "
32429 "omitted then the format is autodetected from the content of the disk image."
32430 msgstr ""
32431
32432 # type: textblock
32433 #. type: textblock
32434 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
32435 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
32436 #: ../tools/virt-list-partitions.pl:96
32437 msgid ""
32438 "If disk images are requested from libvirt, then this program asks libvirt "
32439 "for this information.  In this case, the value of the format parameter is "
32440 "ignored."
32441 msgstr ""
32442
32443 # type: textblock
32444 #. type: textblock
32445 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
32446 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
32447 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
32448 #: ../tools/virt-list-partitions.pl:100
32449 msgid ""
32450 "If working with untrusted raw-format guest disk images, you should ensure "
32451 "the format is always specified."
32452 msgstr ""
32453
32454 # type: =item
32455 #. type: =item
32456 #: ../tools/virt-edit.pl:141
32457 msgid "B<--expr EXPR> | B<-e EXPR>"
32458 msgstr ""
32459
32460 # type: textblock
32461 #. type: textblock
32462 #: ../tools/virt-edit.pl:143
32463 msgid ""
32464 "Instead of launching the external editor, non-interactively apply the Perl "
32465 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
32466 "EDITING> below."
32467 msgstr ""
32468
32469 # type: textblock
32470 #. type: textblock
32471 #: ../tools/virt-edit.pl:147
32472 msgid ""
32473 "Be careful to properly quote the expression to prevent it from being altered "
32474 "by the shell."
32475 msgstr ""
32476
32477 # type: =head1
32478 #. type: =head1
32479 #: ../tools/virt-edit.pl:268
32480 msgid "NON-INTERACTIVE EDITING"
32481 msgstr ""
32482
32483 # type: textblock
32484 #. type: textblock
32485 #: ../tools/virt-edit.pl:270
32486 msgid ""
32487 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
32488 "administrator can interactively edit the file."
32489 msgstr ""
32490
32491 # type: textblock
32492 #. type: textblock
32493 #: ../tools/virt-edit.pl:273
32494 msgid ""
32495 "There are two ways also to use C<virt-edit> from scripts in order to make "
32496 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
32497 "like this, it's less error-prone to write scripts directly using the "
32498 "libguestfs API and Augeas for configuration file editing.)"
32499 msgstr ""
32500
32501 # type: textblock
32502 #. type: textblock
32503 #: ../tools/virt-edit.pl:279
32504 msgid ""
32505 "The first method is to temporarily set C<$EDITOR> to any script or program "
32506 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
32507 "update C<tmpfile> in place however it likes."
32508 msgstr ""
32509
32510 # type: textblock
32511 #. type: textblock
32512 #: ../tools/virt-edit.pl:283
32513 msgid ""
32514 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
32515 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
32516 "instances of C<foo> with C<bar> in a file:"
32517 msgstr ""
32518
32519 # type: verbatim
32520 #. type: verbatim
32521 #: ../tools/virt-edit.pl:287
32522 #, no-wrap
32523 msgid ""
32524 " virt-edit domname filename -e 's/foo/bar/'\n"
32525 "\n"
32526 msgstr ""
32527
32528 # type: textblock
32529 #. type: textblock
32530 #: ../tools/virt-edit.pl:289
32531 msgid ""
32532 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
32533 "For example to delete root's password you could do:"
32534 msgstr ""
32535
32536 # type: verbatim
32537 #. type: verbatim
32538 #: ../tools/virt-edit.pl:292
32539 #, no-wrap
32540 msgid ""
32541 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
32542 "\n"
32543 msgstr ""
32544
32545 # type: textblock
32546 #. type: textblock
32547 #: ../tools/virt-edit.pl:294
32548 msgid ""
32549 "What really happens is that the snippet is evaluated as a Perl expression "
32550 "for each line of the file.  The line, including the final C<\\n>, is passed "
32551 "in C<$_> and the expression should update C<$_> or leave it unchanged."
32552 msgstr ""
32553
32554 # type: textblock
32555 #. type: textblock
32556 #: ../tools/virt-edit.pl:299
32557 msgid ""
32558 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
32559 "C<apache> user account from the password file you can do:"
32560 msgstr ""
32561
32562 # type: verbatim
32563 #. type: verbatim
32564 #: ../tools/virt-edit.pl:302
32565 #, no-wrap
32566 msgid ""
32567 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
32568 "\n"
32569 msgstr ""
32570
32571 # type: textblock
32572 #. type: textblock
32573 #: ../tools/virt-edit.pl:304
32574 msgid ""
32575 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
32576 "the end of the file is rather difficult this way since there is no concept "
32577 "of \"last line of the file\" - your expression just doesn't get called "
32578 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
32579 "want to do this."
32580 msgstr ""
32581
32582 # type: textblock
32583 #. type: textblock
32584 #: ../tools/virt-edit.pl:310
32585 msgid ""
32586 "The variable C<$lineno> contains the current line number.  As is "
32587 "traditional, the first line in the file is number C<1>."
32588 msgstr ""
32589
32590 # type: textblock
32591 #. type: textblock
32592 #: ../tools/virt-edit.pl:313
32593 msgid ""
32594 "The return value from the expression is ignored, but the expression may call "
32595 "C<die> in order to abort the whole program, leaving the original file "
32596 "untouched."
32597 msgstr ""
32598
32599 # type: textblock
32600 #. type: textblock
32601 #: ../tools/virt-edit.pl:317
32602 msgid ""
32603 "Remember when matching the end of a line that C<$_> may contain the final C<"
32604 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
32605 "newline then neither of these.  Thus to match or substitute some text at the "
32606 "end of a line, use this regular expression:"
32607 msgstr ""
32608
32609 # type: verbatim
32610 #. type: verbatim
32611 #: ../tools/virt-edit.pl:322
32612 #, no-wrap
32613 msgid ""
32614 " /some text(\\r?\\n)?$/\n"
32615 "\n"
32616 msgstr ""
32617
32618 # type: textblock
32619 #. type: textblock
32620 #: ../tools/virt-edit.pl:324
32621 msgid ""
32622 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
32623 "$_> itself (since that would remove all newlines from the file):"
32624 msgstr ""
32625
32626 # type: verbatim
32627 #. type: verbatim
32628 #: ../tools/virt-edit.pl:328
32629 #, no-wrap
32630 msgid ""
32631 " my $m = $_; chomp $m; $m =~ /some text$/\n"
32632 "\n"
32633 msgstr ""
32634
32635 # type: =item
32636 #. type: =item
32637 #: ../tools/virt-edit.pl:334
32638 msgid "C<EDITOR>"
32639 msgstr ""
32640
32641 # type: textblock
32642 #. type: textblock
32643 #: ../tools/virt-edit.pl:336
32644 msgid ""
32645 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
32646 "\"emacs -nw\">"
32647 msgstr ""
32648
32649 # type: textblock
32650 #. type: textblock
32651 #: ../tools/virt-edit.pl:339
32652 msgid "If not set, C<vi> is used."
32653 msgstr ""
32654
32655 # type: =head2
32656 #. type: =head1
32657 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
32658 #: ../tools/virt-resize.pl:1482 ../tools/virt-list-filesystems.pl:182
32659 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
32660 #: ../tools/virt-list-partitions.pl:250
32661 msgid "SHELL QUOTING"
32662 msgstr ""
32663
32664 # type: textblock
32665 #. type: textblock
32666 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
32667 #: ../tools/virt-resize.pl:1484 ../tools/virt-list-filesystems.pl:184
32668 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
32669 #: ../tools/virt-list-partitions.pl:252
32670 msgid ""
32671 "Libvirt guest names can contain arbitrary characters, some of which have "
32672 "meaning to the shell such as C<#> and space.  You may need to quote or "
32673 "escape these characters on the command line.  See the shell manual page L<sh"
32674 "(1)> for details."
32675 msgstr ""
32676
32677 #. type: textblock
32678 #: ../tools/virt-edit.pl:352
32679 msgid ""
32680 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
32681 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32682 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
32683 msgstr ""
32684
32685 # type: =head1
32686 #. type: =head1
32687 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
32688 #: ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:202
32689 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
32690 #: ../tools/virt-list-partitions.pl:269
32691 msgid "AUTHOR"
32692 msgstr ""
32693
32694 # type: textblock
32695 #. type: textblock
32696 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
32697 #: ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:204
32698 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
32699 #: ../tools/virt-list-partitions.pl:271
32700 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
32701 msgstr ""
32702
32703 # type: textblock
32704 #. type: textblock
32705 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
32706 msgid "Copyright (C) 2009-2010 Red Hat Inc."
32707 msgstr ""
32708
32709 # type: textblock
32710 #. type: textblock
32711 #: ../tools/virt-win-reg.pl:37
32712 msgid ""
32713 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
32714 msgstr ""
32715
32716 # type: verbatim
32717 #. type: verbatim
32718 #: ../tools/virt-win-reg.pl:41
32719 #, no-wrap
32720 msgid ""
32721 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
32722 "\n"
32723 msgstr ""
32724
32725 # type: verbatim
32726 #. type: verbatim
32727 #: ../tools/virt-win-reg.pl:43
32728 #, no-wrap
32729 msgid ""
32730 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
32731 "\n"
32732 msgstr ""
32733
32734 # type: verbatim
32735 #. type: verbatim
32736 #: ../tools/virt-win-reg.pl:45
32737 #, no-wrap
32738 msgid ""
32739 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
32740 "\n"
32741 msgstr ""
32742
32743 # type: verbatim
32744 #. type: verbatim
32745 #: ../tools/virt-win-reg.pl:47
32746 #, no-wrap
32747 msgid ""
32748 " virt-win-reg --merge domname [input.reg ...]\n"
32749 "\n"
32750 msgstr ""
32751
32752 # type: verbatim
32753 #. type: verbatim
32754 #: ../tools/virt-win-reg.pl:49
32755 #, no-wrap
32756 msgid ""
32757 " virt-win-reg [--options] disk.img ... # instead of domname\n"
32758 "\n"
32759 msgstr ""
32760
32761 # type: textblock
32762 #. type: textblock
32763 #: ../tools/virt-win-reg.pl:53
32764 msgid ""
32765 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
32766 "virtual machines.  If you do this, you I<will> get irreversible disk "
32767 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
32768 "but doesn't catch all cases."
32769 msgstr ""
32770
32771 # type: textblock
32772 #. type: textblock
32773 #: ../tools/virt-win-reg.pl:58
32774 msgid ""
32775 "Modifying the Windows Registry is an inherently risky operation.  The format "
32776 "is deliberately obscure and undocumented, and Registry changes can leave the "
32777 "system unbootable.  Therefore when using the C<--merge> option, make sure "
32778 "you have a reliable backup first."
32779 msgstr ""
32780
32781 # type: textblock
32782 #. type: textblock
32783 #: ../tools/virt-win-reg.pl:65
32784 msgid ""
32785 "This program can export and merge Windows Registry entries from a Windows "
32786 "guest."
32787 msgstr ""
32788
32789 # type: textblock
32790 #. type: textblock
32791 #: ../tools/virt-win-reg.pl:68
32792 msgid ""
32793 "The first parameter is the libvirt guest name or the raw disk image of a "
32794 "Windows guest."
32795 msgstr ""
32796
32797 # type: textblock
32798 #. type: textblock
32799 #: ../tools/virt-win-reg.pl:71
32800 msgid ""
32801 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
32802 "exported (recursively).  For example:"
32803 msgstr ""
32804
32805 # type: verbatim
32806 #. type: verbatim
32807 #: ../tools/virt-win-reg.pl:74
32808 #, no-wrap
32809 msgid ""
32810 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
32811 "\n"
32812 msgstr ""
32813
32814 # type: textblock
32815 #. type: textblock
32816 #: ../tools/virt-win-reg.pl:76
32817 msgid ""
32818 "You can also display single values from within registry keys, for example:"
32819 msgstr ""
32820
32821 # type: verbatim
32822 #. type: verbatim
32823 #: ../tools/virt-win-reg.pl:79
32824 #, no-wrap
32825 msgid ""
32826 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
32827 " $ virt-win-reg Windows7 $cvkey ProductName\n"
32828 " Windows 7 Enterprise\n"
32829 "\n"
32830 msgstr ""
32831
32832 # type: textblock
32833 #. type: textblock
32834 #: ../tools/virt-win-reg.pl:83
32835 msgid ""
32836 "With C<--merge>, you can merge a textual regedit file into the Windows "
32837 "Registry:"
32838 msgstr ""
32839
32840 # type: verbatim
32841 #. type: verbatim
32842 #: ../tools/virt-win-reg.pl:86
32843 #, no-wrap
32844 msgid ""
32845 " $ virt-win-reg --merge Windows7 changes.reg\n"
32846 "\n"
32847 msgstr ""
32848
32849 # type: =head2
32850 #. type: =head1
32851 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32852 msgid "NOTE"
32853 msgstr ""
32854
32855 # type: textblock
32856 #. type: textblock
32857 #: ../tools/virt-win-reg.pl:90
32858 msgid ""
32859 "This program is only meant for simple access to the registry.  If you want "
32860 "to do complicated things with the registry, we suggest you download the "
32861 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32862 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32863 "L<hivexregedit(1)>."
32864 msgstr ""
32865
32866 # type: =item
32867 #. type: =item
32868 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32869 msgid "B<--debug>"
32870 msgstr ""
32871
32872 # type: textblock
32873 #. type: textblock
32874 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
32875 msgid "Enable debugging messages."
32876 msgstr ""
32877
32878 # type: =item
32879 #. type: =item
32880 #: ../tools/virt-win-reg.pl:157
32881 msgid "B<--merge>"
32882 msgstr ""
32883
32884 # type: textblock
32885 #. type: textblock
32886 #: ../tools/virt-win-reg.pl:159
32887 msgid ""
32888 "In merge mode, this merges a textual regedit file into the Windows Registry "
32889 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32890 "displays or exports Registry entries instead."
32891 msgstr ""
32892
32893 # type: textblock
32894 #. type: textblock
32895 #: ../tools/virt-win-reg.pl:163
32896 msgid ""
32897 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
32898 "result in disk corruption.  However exporting (without this flag)  is always "
32899 "safe."
32900 msgstr ""
32901
32902 # type: =item
32903 #. type: =item
32904 #: ../tools/virt-win-reg.pl:171
32905 msgid "B<--encoding> UTF-16LE|ASCII"
32906 msgstr ""
32907
32908 # type: textblock
32909 #. type: textblock
32910 #: ../tools/virt-win-reg.pl:173
32911 msgid ""
32912 "When merging (only), you may need to specify the encoding for strings to be "
32913 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32914 "(3)/ENCODING STRINGS>."
32915 msgstr ""
32916
32917 # type: textblock
32918 #. type: textblock
32919 #: ../tools/virt-win-reg.pl:177
32920 msgid ""
32921 "The default is to use UTF-16LE, which should work with recent versions of "
32922 "Windows."
32923 msgstr ""
32924
32925 # type: =head2
32926 #. type: =head1
32927 #: ../tools/virt-win-reg.pl:402
32928 msgid "SUPPORTED SYSTEMS"
32929 msgstr ""
32930
32931 # type: textblock
32932 #. type: textblock
32933 #: ../tools/virt-win-reg.pl:404
32934 msgid ""
32935 "The program currently supports Windows NT-derived guests starting with "
32936 "Windows XP through to at least Windows 7."
32937 msgstr ""
32938
32939 # type: textblock
32940 #. type: textblock
32941 #: ../tools/virt-win-reg.pl:407
32942 msgid ""
32943 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32944 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32945 "and C<HKEY_USERS\\.DEFAULT>."
32946 msgstr ""
32947
32948 # type: textblock
32949 #. type: textblock
32950 #: ../tools/virt-win-reg.pl:411
32951 msgid ""
32952 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32953 "C<HKEY_USERS>."
32954 msgstr ""
32955
32956 # type: textblock
32957 #. type: textblock
32958 #: ../tools/virt-win-reg.pl:414
32959 msgid ""
32960 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32961 "time."
32962 msgstr ""
32963
32964 # type: =head2
32965 #. type: =head1
32966 #: ../tools/virt-win-reg.pl:417
32967 msgid "ENCODING"
32968 msgstr ""
32969
32970 # type: textblock
32971 #. type: textblock
32972 #: ../tools/virt-win-reg.pl:419
32973 msgid ""
32974 "C<virt-win-reg> expects that regedit files have already been reencoded in "
32975 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
32976 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
32977 "Windows-style line endings, you may need to reencode the whole file before "
32978 "or after processing."
32979 msgstr ""
32980
32981 # type: textblock
32982 #. type: textblock
32983 #: ../tools/virt-win-reg.pl:425
32984 msgid ""
32985 "To reencode a file from Windows format to Linux (before processing it with "
32986 "the C<--merge> option), you would do something like this:"
32987 msgstr ""
32988
32989 # type: verbatim
32990 #. type: verbatim
32991 #: ../tools/virt-win-reg.pl:428
32992 #, no-wrap
32993 msgid ""
32994 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
32995 "\n"
32996 msgstr ""
32997
32998 # type: textblock
32999 #. type: textblock
33000 #: ../tools/virt-win-reg.pl:430
33001 msgid ""
33002 "To go in the opposite direction, after exporting and before sending the file "
33003 "to a Windows user, do something like this:"
33004 msgstr ""
33005
33006 # type: verbatim
33007 #. type: verbatim
33008 #: ../tools/virt-win-reg.pl:433
33009 #, no-wrap
33010 msgid ""
33011 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33012 "\n"
33013 msgstr ""
33014
33015 # type: textblock
33016 #. type: textblock
33017 #: ../tools/virt-win-reg.pl:435
33018 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33019 msgstr ""
33020
33021 # type: textblock
33022 #. type: textblock
33023 #: ../tools/virt-win-reg.pl:437
33024 msgid ""
33025 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33026 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33027 "style (CRLF) line endings, like this:"
33028 msgstr ""
33029
33030 # type: verbatim
33031 #. type: verbatim
33032 #: ../tools/virt-win-reg.pl:441
33033 #, no-wrap
33034 msgid ""
33035 " $ file software.reg\n"
33036 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33037 " with CRLF line terminators\n"
33038 "\n"
33039 msgstr ""
33040
33041 # type: textblock
33042 #. type: textblock
33043 #: ../tools/virt-win-reg.pl:445
33044 msgid "This file would need conversion before you could C<--merge> it."
33045 msgstr ""
33046
33047 # type: =head2
33048 #. type: =head1
33049 #: ../tools/virt-win-reg.pl:447
33050 msgid "CurrentControlSet etc."
33051 msgstr ""
33052
33053 # type: textblock
33054 #. type: textblock
33055 #: ../tools/virt-win-reg.pl:449
33056 msgid ""
33057 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33058 "Registry at the level of the hive file, and therefore you cannot modify "
33059 "these."
33060 msgstr ""
33061
33062 # type: textblock
33063 #. type: textblock
33064 #: ../tools/virt-win-reg.pl:453
33065 msgid ""
33066 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33067 "circumstances it might refer to another control set.  The way to find out is "
33068 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33069 msgstr ""
33070
33071 # type: verbatim
33072 #. type: verbatim
33073 #: ../tools/virt-win-reg.pl:457
33074 #, no-wrap
33075 msgid ""
33076 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33077 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33078 " \"Current\"=dword:00000001\n"
33079 " \"Default\"=dword:00000001\n"
33080 " \"Failed\"=dword:00000000\n"
33081 " \"LastKnownGood\"=dword:00000002\n"
33082 "\n"
33083 msgstr ""
33084
33085 # type: textblock
33086 #. type: textblock
33087 #: ../tools/virt-win-reg.pl:464
33088 msgid "\"Current\" is the one which Windows will choose when it boots."
33089 msgstr ""
33090
33091 # type: textblock
33092 #. type: textblock
33093 #: ../tools/virt-win-reg.pl:466
33094 msgid ""
33095 "Similarly, other C<Current...> keys in the path may need to be replaced."
33096 msgstr ""
33097
33098 # type: =head1
33099 #. type: =head1
33100 #: ../tools/virt-win-reg.pl:469
33101 msgid "WINDOWS TIPS"
33102 msgstr ""
33103
33104 # type: textblock
33105 #. type: textblock
33106 #: ../tools/virt-win-reg.pl:471
33107 msgid ""
33108 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33109 "be shut off, else you will get disk corruption."
33110 msgstr ""
33111
33112 # type: =head2
33113 #. type: =head2
33114 #: ../tools/virt-win-reg.pl:474
33115 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33116 msgstr ""
33117
33118 # type: textblock
33119 #. type: textblock
33120 #: ../tools/virt-win-reg.pl:476
33121 msgid ""
33122 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33123 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33124 "is uploaded into C<C:\\>:"
33125 msgstr ""
33126
33127 # type: verbatim
33128 #. type: verbatim
33129 #: ../tools/virt-win-reg.pl:480
33130 #, no-wrap
33131 msgid ""
33132 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33133 "\n"
33134 msgstr ""
33135
33136 # type: textblock
33137 #. type: textblock
33138 #: ../tools/virt-win-reg.pl:482
33139 msgid "Prepare a regedit file containing the registry change:"
33140 msgstr ""
33141
33142 # type: verbatim
33143 #. type: verbatim
33144 #: ../tools/virt-win-reg.pl:484
33145 #, no-wrap
33146 msgid ""
33147 " cat > test.reg <<'EOF'\n"
33148 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33149 " \"Test\"=\"c:\\\\test.bat\"\n"
33150 " EOF\n"
33151 "\n"
33152 msgstr ""
33153
33154 # type: textblock
33155 #. type: textblock
33156 #: ../tools/virt-win-reg.pl:489
33157 msgid ""
33158 "In this example we use the key C<RunOnce> which means that the script will "
33159 "run precisely once when the first user logs in.  If you want it to run every "
33160 "time a user logs in, replace C<RunOnce> with C<Run>."
33161 msgstr ""
33162
33163 # type: textblock
33164 #. type: textblock
33165 #: ../tools/virt-win-reg.pl:493
33166 msgid "Now update the registry:"
33167 msgstr ""
33168
33169 # type: verbatim
33170 #. type: verbatim
33171 #: ../tools/virt-win-reg.pl:495
33172 #, no-wrap
33173 msgid ""
33174 " virt-win-reg --merge WindowsGuest test.reg\n"
33175 "\n"
33176 msgstr ""
33177
33178 # type: =head2
33179 #. type: =head2
33180 #: ../tools/virt-win-reg.pl:497
33181 msgid "INSTALLING A SERVICE"
33182 msgstr ""
33183
33184 # type: textblock
33185 #. type: textblock
33186 #: ../tools/virt-win-reg.pl:499
33187 msgid ""
33188 "This section assumes you are familiar with Windows services, and you either "
33189 "have a program which handles the Windows Service Control Protocol directly "
33190 "or you want to run any program using a service wrapper like SrvAny or the "
33191 "free RHSrvAny."
33192 msgstr ""
33193
33194 # type: textblock
33195 #. type: textblock
33196 #: ../tools/virt-win-reg.pl:504
33197 msgid ""
33198 "First upload the program and optionally the service wrapper.  In this case "
33199 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33200 msgstr ""
33201
33202 # type: verbatim
33203 #. type: verbatim
33204 #: ../tools/virt-win-reg.pl:508
33205 #, no-wrap
33206 msgid ""
33207 " guestfish -i -d WindowsGuest <<EOF\n"
33208 "   upload rhsrvany.exe /rhsrvany.exe\n"
33209 "   upload test.exe /test.exe\n"
33210 " EOF\n"
33211 "\n"
33212 msgstr ""
33213
33214 # type: textblock
33215 #. type: textblock
33216 #: ../tools/virt-win-reg.pl:513
33217 msgid ""
33218 "Prepare a regedit file containing the registry changes.  In this example, "
33219 "the first registry change is needed for the service itself or the service "
33220 "wrapper (if used).  The second registry change is only needed because I am "
33221 "using the RHSrvAny service wrapper."
33222 msgstr ""
33223
33224 # type: verbatim
33225 #. type: verbatim
33226 #: ../tools/virt-win-reg.pl:518
33227 #, no-wrap
33228 msgid ""
33229 " cat > service.reg <<'EOF'\n"
33230 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33231 " \"Type\"=dword:00000010\n"
33232 " \"Start\"=dword:00000002\n"
33233 " \"ErrorControl\"=dword:00000001\n"
33234 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33235 " \"DisplayName\"=\"RHSrvAny\"\n"
33236 " \"ObjectName\"=\"NetworkService\"\n"
33237 " \n"
33238 msgstr ""
33239
33240 # type: verbatim
33241 #. type: verbatim
33242 #: ../tools/virt-win-reg.pl:527
33243 #, no-wrap
33244 msgid ""
33245 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33246 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33247 " \"PWD\"=\"c:\\\\Temp\"\n"
33248 " EOF\n"
33249 "\n"
33250 msgstr ""
33251
33252 # type: textblock
33253 #. type: textblock
33254 #: ../tools/virt-win-reg.pl:538
33255 msgid ""
33256 "For use of C<ControlSet001> see the section above in this manual page.  You "
33257 "may need to adjust this according to the control set that is in use by the "
33258 "guest."
33259 msgstr ""
33260
33261 # type: textblock
33262 #. type: textblock
33263 #: ../tools/virt-win-reg.pl:544
33264 msgid ""
33265 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33266 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33267 "privileged account."
33268 msgstr ""
33269
33270 # type: textblock
33271 #. type: textblock
33272 #: ../tools/virt-win-reg.pl:550
33273 msgid ""
33274 "For the meaning of the magic numbers, see this Microsoft KB article: "
33275 "L<http://support.microsoft.com/kb/103000>."
33276 msgstr ""
33277
33278 # type: textblock
33279 #. type: textblock
33280 #: ../tools/virt-win-reg.pl:555
33281 msgid "Update the registry:"
33282 msgstr ""
33283
33284 # type: verbatim
33285 #. type: verbatim
33286 #: ../tools/virt-win-reg.pl:557
33287 #, no-wrap
33288 msgid ""
33289 " virt-win-reg --merge WindowsGuest service.reg\n"
33290 "\n"
33291 msgstr ""
33292
33293 # type: textblock
33294 #. type: textblock
33295 #: ../tools/virt-win-reg.pl:561
33296 msgid ""
33297 "Be careful when passing parameters containing C<\\> (backslash) in the "
33298 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33299 "(but not both) to protect them from the shell."
33300 msgstr ""
33301
33302 # type: textblock
33303 #. type: textblock
33304 #: ../tools/virt-win-reg.pl:565
33305 msgid "Paths and value names are case-insensitive."
33306 msgstr ""
33307
33308 # type: textblock
33309 #. type: textblock
33310 #: ../tools/virt-win-reg.pl:574
33311 msgid ""
33312 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33313 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33314 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33315 msgstr ""
33316
33317 # type: textblock
33318 #. type: textblock
33319 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
33320 msgid ""
33321 "When reporting bugs, please enable debugging and capture the I<complete> "
33322 "output:"
33323 msgstr ""
33324
33325 # type: verbatim
33326 #. type: verbatim
33327 #: ../tools/virt-win-reg.pl:592
33328 #, no-wrap
33329 msgid ""
33330 " export LIBGUESTFS_DEBUG=1\n"
33331 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33332 "\n"
33333 msgstr ""
33334
33335 # type: textblock
33336 #. type: textblock
33337 #: ../tools/virt-win-reg.pl:595
33338 msgid ""
33339 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33340 "redhat.com/>"
33341 msgstr ""
33342
33343 # type: textblock
33344 #. type: textblock
33345 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1516
33346 #: ../tools/virt-make-fs.pl:570
33347 msgid "Copyright (C) 2010 Red Hat Inc."
33348 msgstr ""
33349
33350 # type: textblock
33351 #. type: textblock
33352 #: ../tools/virt-resize.pl:42
33353 msgid "virt-resize - Resize a virtual machine disk"
33354 msgstr ""
33355
33356 # type: verbatim
33357 #. type: verbatim
33358 #: ../tools/virt-resize.pl:46
33359 #, no-wrap
33360 msgid ""
33361 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
33362 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
33363 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
33364 "\n"
33365 msgstr ""
33366
33367 # type: textblock
33368 #. type: textblock
33369 #: ../tools/virt-resize.pl:52
33370 msgid ""
33371 "Virt-resize is a tool which can resize a virtual machine disk, making it "
33372 "larger or smaller overall, and resizing or deleting any partitions contained "
33373 "within."
33374 msgstr ""
33375
33376 # type: textblock
33377 #. type: textblock
33378 #: ../tools/virt-resize.pl:56
33379 msgid ""
33380 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
33381 "not> be used on live virtual machines - for consistent results, shut the "
33382 "virtual machine down before resizing it."
33383 msgstr ""
33384
33385 # type: textblock
33386 #. type: textblock
33387 #: ../tools/virt-resize.pl:60
33388 msgid ""
33389 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
33390 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
33391 msgstr ""
33392
33393 # type: textblock
33394 #. type: textblock
33395 #: ../tools/virt-resize.pl:66
33396 msgid ""
33397 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
33398 "fill the extra 5GB of space."
33399 msgstr ""
33400
33401 #. type: verbatim
33402 #: ../tools/virt-resize.pl:69
33403 #, no-wrap
33404 msgid ""
33405 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
33406 " virt-filesystems --long -h --all -a olddisk\n"
33407 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
33408 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
33409 "\n"
33410 msgstr ""
33411
33412 # type: textblock
33413 #. type: textblock
33414 #: ../tools/virt-resize.pl:74
33415 msgid ""
33416 "As above, but make the /boot partition 200MB bigger, while giving the "
33417 "remaining space to /dev/sda2:"
33418 msgstr ""
33419
33420 # type: verbatim
33421 #. type: verbatim
33422 #: ../tools/virt-resize.pl:77
33423 #, no-wrap
33424 msgid ""
33425 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
33426 "\n"
33427 msgstr ""
33428
33429 # type: textblock
33430 #. type: textblock
33431 #: ../tools/virt-resize.pl:79
33432 msgid "As above, but the output format will be uncompressed qcow2:"
33433 msgstr ""
33434
33435 # type: verbatim
33436 #. type: verbatim
33437 #: ../tools/virt-resize.pl:81
33438 #, no-wrap
33439 msgid ""
33440 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
33441 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
33442 "\n"
33443 msgstr ""
33444
33445 # type: =head1
33446 #. type: =head1
33447 #: ../tools/virt-resize.pl:84
33448 msgid "DETAILED USAGE"
33449 msgstr ""
33450
33451 # type: =head2
33452 #. type: =head2
33453 #: ../tools/virt-resize.pl:86
33454 msgid "EXPANDING A VIRTUAL MACHINE DISK"
33455 msgstr ""
33456
33457 # type: =item
33458 #. type: =item
33459 #: ../tools/virt-resize.pl:90
33460 msgid "1. Shut down the virtual machine"
33461 msgstr ""
33462
33463 # type: =item
33464 #. type: =item
33465 #: ../tools/virt-resize.pl:92
33466 msgid "2. Locate input disk image"
33467 msgstr ""
33468
33469 # type: textblock
33470 #. type: textblock
33471 #: ../tools/virt-resize.pl:94
33472 msgid ""
33473 "Locate the input disk image (ie. the file or device on the host containing "
33474 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
33475 "dumpxml> like this to find the disk image name:"
33476 msgstr ""
33477
33478 # type: verbatim
33479 #. type: verbatim
33480 #: ../tools/virt-resize.pl:98
33481 #, no-wrap
33482 msgid ""
33483 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
33484 " Found 1 nodes:\n"
33485 " -- NODE --\n"
33486 " <source dev=\"/dev/vg/lv_guest\" />\n"
33487 "\n"
33488 msgstr ""
33489
33490 # type: =item
33491 #. type: =item
33492 #: ../tools/virt-resize.pl:103
33493 msgid "3. Look at current sizing"
33494 msgstr ""
33495
33496 # type: textblock
33497 #. type: textblock
33498 #: ../tools/virt-resize.pl:105
33499 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
33500 msgstr ""
33501
33502 # type: verbatim
33503 #. type: verbatim
33504 #: ../tools/virt-resize.pl:108
33505 #, no-wrap
33506 msgid ""
33507 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
33508 " Name       Type       Size  Parent\n"
33509 " /dev/sda1  partition  101M  /dev/sda\n"
33510 " /dev/sda2  partition  7.9G  /dev/sda\n"
33511 " /dev/sda   device     8.0G  -\n"
33512 "\n"
33513 msgstr ""
33514
33515 # type: textblock
33516 #. type: textblock
33517 #: ../tools/virt-resize.pl:114
33518 msgid ""
33519 "(This example is a virtual machine with an 8 GB disk which we would like to "
33520 "expand up to 10 GB)."
33521 msgstr ""
33522
33523 # type: =item
33524 #. type: =item
33525 #: ../tools/virt-resize.pl:117
33526 msgid "4. Create output disk"
33527 msgstr ""
33528
33529 # type: textblock
33530 #. type: textblock
33531 #: ../tools/virt-resize.pl:119
33532 msgid ""
33533 "Virt-resize cannot do in-place disk modifications.  You have to have space "
33534 "to store the resized output disk."
33535 msgstr ""
33536
33537 # type: textblock
33538 #. type: textblock
33539 #: ../tools/virt-resize.pl:122
33540 msgid ""
33541 "To store the resized disk image in a file, create a file of a suitable size:"
33542 msgstr ""
33543
33544 # type: verbatim
33545 #. type: verbatim
33546 #: ../tools/virt-resize.pl:125
33547 #, no-wrap
33548 msgid ""
33549 " # rm -f outdisk\n"
33550 " # truncate -s 10G outdisk\n"
33551 "\n"
33552 msgstr ""
33553
33554 # type: textblock
33555 #. type: textblock
33556 #: ../tools/virt-resize.pl:128
33557 msgid "Or use L<lvcreate(1)> to create a logical volume:"
33558 msgstr ""
33559
33560 # type: verbatim
33561 #. type: verbatim
33562 #: ../tools/virt-resize.pl:130
33563 #, no-wrap
33564 msgid ""
33565 " # lvcreate -L 10G -n lv_name vg_name\n"
33566 "\n"
33567 msgstr ""
33568
33569 # type: textblock
33570 #. type: textblock
33571 #: ../tools/virt-resize.pl:132
33572 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
33573 msgstr ""
33574
33575 # type: verbatim
33576 #. type: verbatim
33577 #: ../tools/virt-resize.pl:134
33578 #, no-wrap
33579 msgid ""
33580 " # virsh pool-list\n"
33581 " # virsh vol-create-as poolname newvol 10G\n"
33582 "\n"
33583 msgstr ""
33584
33585 # type: =item
33586 #. type: =item
33587 #: ../tools/virt-resize.pl:137
33588 msgid "5. Resize"
33589 msgstr ""
33590
33591 # type: textblock
33592 #. type: textblock
33593 #: ../tools/virt-resize.pl:139
33594 msgid ""
33595 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
33596 "file) and the output disk.  The output disk is the one created in the "
33597 "previous step."
33598 msgstr ""
33599
33600 # type: verbatim
33601 #. type: verbatim
33602 #: ../tools/virt-resize.pl:143
33603 #, no-wrap
33604 msgid ""
33605 " # virt-resize indisk outdisk\n"
33606 "\n"
33607 msgstr ""
33608
33609 # type: textblock
33610 #. type: textblock
33611 #: ../tools/virt-resize.pl:145
33612 msgid ""
33613 "This command just copies disk image C<indisk> to disk image C<outdisk> "
33614 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
33615 "larger, then an extra, empty partition is created at the end of the disk "
33616 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
33617 "error."
33618 msgstr ""
33619
33620 # type: textblock
33621 #. type: textblock
33622 #: ../tools/virt-resize.pl:151
33623 msgid ""
33624 "More realistically you'd want to expand existing partitions in the disk "
33625 "image by passing extra options (for the full list see the L</OPTIONS> "
33626 "section below)."
33627 msgstr ""
33628
33629 # type: textblock
33630 #. type: textblock
33631 #: ../tools/virt-resize.pl:155
33632 msgid ""
33633 "L</--expand> is the most useful option.  It expands the named partition "
33634 "within the disk to fill any extra space:"
33635 msgstr ""
33636
33637 # type: verbatim
33638 #. type: verbatim
33639 #: ../tools/virt-resize.pl:158
33640 #, no-wrap
33641 msgid ""
33642 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
33643 "\n"
33644 msgstr ""
33645
33646 # type: textblock
33647 #. type: textblock
33648 #: ../tools/virt-resize.pl:160
33649 msgid ""
33650 "(In this case, an extra partition is I<not> created at the end of the disk, "
33651 "because there will be no unused space)."
33652 msgstr ""
33653
33654 # type: textblock
33655 #. type: textblock
33656 #: ../tools/virt-resize.pl:163
33657 msgid ""
33658 "L</--resize> is the other commonly used option.  The following would "
33659 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
33660 "rest of the available space:"
33661 msgstr ""
33662
33663 # type: verbatim
33664 #. type: verbatim
33665 #: ../tools/virt-resize.pl:167
33666 #, no-wrap
33667 msgid ""
33668 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
33669 "     indisk outdisk\n"
33670 "\n"
33671 msgstr ""
33672
33673 # type: textblock
33674 #. type: textblock
33675 #: ../tools/virt-resize.pl:170
33676 msgid ""
33677 "If the expanded partition in the image contains a filesystem or LVM PV, then "
33678 "if virt-resize knows how, it will resize the contents, the equivalent of "
33679 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
33680 ">.  However virt-resize does not know how to resize some filesystems, so you "
33681 "would have to online resize them after booting the guest."
33682 msgstr ""
33683
33684 # type: textblock
33685 #. type: textblock
33686 #: ../tools/virt-resize.pl:177
33687 msgid "Other options are covered below."
33688 msgstr ""
33689
33690 # type: =item
33691 #. type: =item
33692 #: ../tools/virt-resize.pl:179
33693 msgid "6. Test"
33694 msgstr ""
33695
33696 # type: textblock
33697 #. type: textblock
33698 #: ../tools/virt-resize.pl:181
33699 msgid "Thoroughly test the new disk image I<before> discarding the old one."
33700 msgstr ""
33701
33702 # type: textblock
33703 #. type: textblock
33704 #: ../tools/virt-resize.pl:183
33705 msgid "If you are using libvirt, edit the XML to point at the new disk:"
33706 msgstr ""
33707
33708 # type: verbatim
33709 #. type: verbatim
33710 #: ../tools/virt-resize.pl:185
33711 #, no-wrap
33712 msgid ""
33713 " # virsh edit guestname\n"
33714 "\n"
33715 msgstr ""
33716
33717 # type: textblock
33718 #. type: textblock
33719 #: ../tools/virt-resize.pl:187
33720 msgid ""
33721 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
33722 "html#elementsDisks>"
33723 msgstr ""
33724
33725 # type: textblock
33726 #. type: textblock
33727 #: ../tools/virt-resize.pl:190
33728 msgid "Then start up the domain with the new, resized disk:"
33729 msgstr ""
33730
33731 # type: verbatim
33732 #. type: verbatim
33733 #: ../tools/virt-resize.pl:192
33734 #, no-wrap
33735 msgid ""
33736 " # virsh start guestname\n"
33737 "\n"
33738 msgstr ""
33739
33740 # type: textblock
33741 #. type: textblock
33742 #: ../tools/virt-resize.pl:194
33743 msgid ""
33744 "and check that it still works.  See also the L</NOTES> section below for "
33745 "additional information."
33746 msgstr ""
33747
33748 # type: =item
33749 #. type: =item
33750 #: ../tools/virt-resize.pl:197
33751 msgid "7. Resize LVs etc inside the guest"
33752 msgstr ""
33753
33754 # type: textblock
33755 #. type: textblock
33756 #: ../tools/virt-resize.pl:199
33757 msgid "(This can also be done offline using L<guestfish(1)>)"
33758 msgstr ""
33759
33760 # type: textblock
33761 #. type: textblock
33762 #: ../tools/virt-resize.pl:201
33763 msgid ""
33764 "Once the guest has booted you should see the new space available, at least "
33765 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
33766 "may need to resize LVs inside PVs, and also resize filesystem types that "
33767 "virt-resize does not know how to expand."
33768 msgstr ""
33769
33770 # type: =head2
33771 #. type: =head2
33772 #: ../tools/virt-resize.pl:208
33773 msgid "SHRINKING A VIRTUAL MACHINE DISK"
33774 msgstr ""
33775
33776 # type: textblock
33777 #. type: textblock
33778 #: ../tools/virt-resize.pl:210
33779 msgid ""
33780 "Shrinking is somewhat more complex than expanding, and only an overview is "
33781 "given here."
33782 msgstr ""
33783
33784 # type: textblock
33785 #. type: textblock
33786 #: ../tools/virt-resize.pl:213
33787 msgid ""
33788 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
33789 "filesystems).  The user has to shrink content before passing the disk image "
33790 "to virt-resize, and virt-resize will check that the content has been shrunk "
33791 "properly."
33792 msgstr ""
33793
33794 # type: textblock
33795 #. type: textblock
33796 #: ../tools/virt-resize.pl:218
33797 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
33798 msgstr ""
33799
33800 # type: textblock
33801 #. type: textblock
33802 #: ../tools/virt-resize.pl:220
33803 msgid ""
33804 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
33805 "steps 3 and 4 above to allocate a new disk image."
33806 msgstr ""
33807
33808 # type: textblock
33809 #. type: textblock
33810 #: ../tools/virt-resize.pl:223
33811 msgid ""
33812 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
33813 msgstr ""
33814
33815 # type: =head2
33816 #. type: =head2
33817 #: ../tools/virt-resize.pl:226
33818 msgid "IGNORING OR DELETING PARTITIONS"
33819 msgstr ""
33820
33821 # type: textblock
33822 #. type: textblock
33823 #: ../tools/virt-resize.pl:228
33824 msgid ""
33825 "virt-resize also gives a convenient way to ignore or delete partitions when "
33826 "copying from the input disk to the output disk.  Ignoring a partition speeds "
33827 "up the copy where you don't care about the existing contents of a "
33828 "partition.  Deleting a partition removes it completely, but note that it "
33829 "also renumbers any partitions after the one which is deleted, which can "
33830 "leave some guests unbootable."
33831 msgstr ""
33832
33833 # type: =head2
33834 #. type: =head2
33835 #: ../tools/virt-resize.pl:235
33836 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
33837 msgstr ""
33838
33839 # type: textblock
33840 #. type: textblock
33841 #: ../tools/virt-resize.pl:237
33842 msgid ""
33843 "If the input disk is in qcow2 format, then you may prefer that the output is "
33844 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
33845 "the fly.  The output format is simply determined by the format of the empty "
33846 "output container that you provide.  Thus to create qcow2 output, use:"
33847 msgstr ""
33848
33849 # type: verbatim
33850 #. type: verbatim
33851 #: ../tools/virt-resize.pl:243
33852 #, no-wrap
33853 msgid ""
33854 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
33855 "\n"
33856 msgstr ""
33857
33858 # type: textblock
33859 #. type: textblock
33860 #: ../tools/virt-resize.pl:245
33861 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
33862 msgstr ""
33863
33864 # type: textblock
33865 #. type: textblock
33866 #: ../tools/virt-resize.pl:247
33867 msgid "Similarly, to get non-sparse raw output use:"
33868 msgstr ""
33869
33870 # type: verbatim
33871 #. type: verbatim
33872 #: ../tools/virt-resize.pl:249
33873 #, no-wrap
33874 msgid ""
33875 " fallocate -l size outdisk\n"
33876 "\n"
33877 msgstr ""
33878
33879 # type: textblock
33880 #. type: textblock
33881 #: ../tools/virt-resize.pl:251
33882 msgid ""
33883 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
33884 "dev/zero of=outdisk bs=1M count=..>)"
33885 msgstr ""
33886
33887 # type: textblock
33888 #. type: textblock
33889 #: ../tools/virt-resize.pl:264
33890 msgid "Display help."
33891 msgstr ""
33892
33893 # type: =item
33894 #. type: =item
33895 #: ../tools/virt-resize.pl:278
33896 msgid "B<--resize part=size>"
33897 msgstr ""
33898
33899 # type: textblock
33900 #. type: textblock
33901 #: ../tools/virt-resize.pl:280
33902 msgid ""
33903 "Resize the named partition (expanding or shrinking it) so that it has the "
33904 "given size."
33905 msgstr ""
33906
33907 # type: textblock
33908 #. type: textblock
33909 #: ../tools/virt-resize.pl:283
33910 msgid ""
33911 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
33912 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
33913 "Exabytes; or as a percentage of the current size; or as a relative number or "
33914 "percentage.  For example:"
33915 msgstr ""
33916
33917 # type: verbatim
33918 #. type: verbatim
33919 #: ../tools/virt-resize.pl:288
33920 #, no-wrap
33921 msgid ""
33922 " --resize /dev/sda2=10G\n"
33923 "\n"
33924 msgstr ""
33925
33926 # type: verbatim
33927 #. type: verbatim
33928 #: ../tools/virt-resize.pl:290
33929 #, no-wrap
33930 msgid ""
33931 " --resize /dev/sda4=90%\n"
33932 "\n"
33933 msgstr ""
33934
33935 # type: verbatim
33936 #. type: verbatim
33937 #: ../tools/virt-resize.pl:292
33938 #, no-wrap
33939 msgid ""
33940 " --resize /dev/sda2=+1G\n"
33941 "\n"
33942 msgstr ""
33943
33944 # type: verbatim
33945 #. type: verbatim
33946 #: ../tools/virt-resize.pl:294
33947 #, no-wrap
33948 msgid ""
33949 " --resize /dev/sda2=-200M\n"
33950 "\n"
33951 msgstr ""
33952
33953 # type: verbatim
33954 #. type: verbatim
33955 #: ../tools/virt-resize.pl:296
33956 #, no-wrap
33957 msgid ""
33958 " --resize /dev/sda1=+128K\n"
33959 "\n"
33960 msgstr ""
33961
33962 # type: verbatim
33963 #. type: verbatim
33964 #: ../tools/virt-resize.pl:298
33965 #, no-wrap
33966 msgid ""
33967 " --resize /dev/sda1=+10%\n"
33968 "\n"
33969 msgstr ""
33970
33971 # type: verbatim
33972 #. type: verbatim
33973 #: ../tools/virt-resize.pl:300
33974 #, no-wrap
33975 msgid ""
33976 " --resize /dev/sda1=-10%\n"
33977 "\n"
33978 msgstr ""
33979
33980 # type: textblock
33981 #. type: textblock
33982 #: ../tools/virt-resize.pl:302
33983 msgid ""
33984 "You can increase the size of any partition.  Virt-resize will expand the "
33985 "direct content of the partition if it knows how (see C<--expand> below)."
33986 msgstr ""
33987
33988 # type: textblock
33989 #. type: textblock
33990 #: ../tools/virt-resize.pl:306
33991 msgid ""
33992 "You can only I<decrease> the size of partitions that contain filesystems or "
33993 "PVs which have already been shrunk.  Virt-resize will check this has been "
33994 "done before proceeding, or else will print an error (see also C<--resize-"
33995 "force>)."
33996 msgstr ""
33997
33998 # type: textblock
33999 #. type: textblock
34000 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
34001 #: ../tools/virt-resize.pl:420
34002 msgid "You can give this option multiple times."
34003 msgstr ""
34004
34005 # type: =item
34006 #. type: =item
34007 #: ../tools/virt-resize.pl:317
34008 msgid "B<--resize-force part=size>"
34009 msgstr ""
34010
34011 # type: textblock
34012 #. type: textblock
34013 #: ../tools/virt-resize.pl:319
34014 msgid ""
34015 "This is the same as C<--resize> except that it will let you decrease the "
34016 "size of any partition.  Generally this means you will lose any data which "
34017 "was at the end of the partition you shrink, but you may not care about that "
34018 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
34019 "as a swap partition)."
34020 msgstr ""
34021
34022 # type: textblock
34023 #. type: textblock
34024 #: ../tools/virt-resize.pl:325
34025 msgid "See also the C<--ignore> option."
34026 msgstr ""
34027
34028 # type: =item
34029 #. type: =item
34030 #: ../tools/virt-resize.pl:331
34031 msgid "B<--expand part>"
34032 msgstr ""
34033
34034 # type: textblock
34035 #. type: textblock
34036 #: ../tools/virt-resize.pl:333
34037 msgid ""
34038 "Expand the named partition so it uses up all extra space (space left over "
34039 "after any other resize changes that you request have been done)."
34040 msgstr ""
34041
34042 # type: textblock
34043 #. type: textblock
34044 #: ../tools/virt-resize.pl:336
34045 msgid ""
34046 "If virt-resize knows how, it will expand the direct content of the "
34047 "partition.  For example, if the partition is an LVM PV, it will expand the "
34048 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
34049 "content it doesn't know about alone."
34050 msgstr ""
34051
34052 # type: textblock
34053 #. type: textblock
34054 #: ../tools/virt-resize.pl:341
34055 msgid "Currently virt-resize can resize:"
34056 msgstr ""
34057
34058 # type: textblock
34059 #. type: textblock
34060 #: ../tools/virt-resize.pl:347
34061 msgid ""
34062 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
34063 "partition."
34064 msgstr ""
34065
34066 # type: textblock
34067 #. type: textblock
34068 #: ../tools/virt-resize.pl:352
34069 msgid ""
34070 "NTFS filesystems contained directly in a partition, if libguestfs was "
34071 "compiled with support for NTFS."
34072 msgstr ""
34073
34074 # type: textblock
34075 #. type: textblock
34076 #: ../tools/virt-resize.pl:355
34077 msgid ""
34078 "The filesystem must have been shut down consistently last time it was used.  "
34079 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
34080 "consistency check, so at the first boot after resizing Windows will check "
34081 "the disk."
34082 msgstr ""
34083
34084 # type: textblock
34085 #. type: textblock
34086 #: ../tools/virt-resize.pl:362
34087 msgid ""
34088 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
34089 "inside the PV, but see the C<--LV-expand> option.  The user could also "
34090 "resize LVs as desired after boot."
34091 msgstr ""
34092
34093 # type: textblock
34094 #. type: textblock
34095 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
34096 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
34097 msgstr ""
34098
34099 # type: =item
34100 #. type: =item
34101 #: ../tools/virt-resize.pl:374
34102 msgid "B<--shrink part>"
34103 msgstr ""
34104
34105 # type: textblock
34106 #. type: textblock
34107 #: ../tools/virt-resize.pl:376
34108 msgid ""
34109 "Shrink the named partition until the overall disk image fits in the "
34110 "destination.  The named partition B<must> contain a filesystem or PV which "
34111 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
34112 "online tools).  Virt-resize will check this and give an error if it has not "
34113 "been done."
34114 msgstr ""
34115
34116 # type: textblock
34117 #. type: textblock
34118 #: ../tools/virt-resize.pl:382
34119 msgid ""
34120 "The amount by which the overall disk must be shrunk (after carrying out all "
34121 "other operations requested by the user) is called the \"deficit\".  For "
34122 "example, a straight copy (assume no other operations)  from a 5GB disk image "
34123 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
34124 "would give an error unless the user specified a partition to shrink and that "
34125 "partition had more than a gigabyte of free space."
34126 msgstr ""
34127
34128 # type: =item
34129 #. type: =item
34130 #: ../tools/virt-resize.pl:396
34131 msgid "B<--ignore part>"
34132 msgstr ""
34133
34134 # type: textblock
34135 #. type: textblock
34136 #: ../tools/virt-resize.pl:398
34137 msgid ""
34138 "Ignore the named partition.  Effectively this means the partition is "
34139 "allocated on the destination disk, but the content is not copied across from "
34140 "the source disk.  The content of the partition will be blank (all zero "
34141 "bytes)."
34142 msgstr ""
34143
34144 # type: =item
34145 #. type: =item
34146 #: ../tools/virt-resize.pl:409
34147 msgid "B<--delete part>"
34148 msgstr ""
34149
34150 # type: textblock
34151 #. type: textblock
34152 #: ../tools/virt-resize.pl:411
34153 msgid ""
34154 "Delete the named partition.  It would be more accurate to describe this as "
34155 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
34156 "the original disk image is left intact."
34157 msgstr ""
34158
34159 # type: textblock
34160 #. type: textblock
34161 #: ../tools/virt-resize.pl:415
34162 msgid ""
34163 "Note that when you delete a partition, then anything contained in the "
34164 "partition is also deleted.  Furthermore, this causes any partitions that "
34165 "come after to be I<renumbered>, which can easily make your guest unbootable."
34166 msgstr ""
34167
34168 # type: =item
34169 #. type: =item
34170 #: ../tools/virt-resize.pl:426
34171 msgid "B<--LV-expand logvol>"
34172 msgstr ""
34173
34174 # type: textblock
34175 #. type: textblock
34176 #: ../tools/virt-resize.pl:428
34177 msgid ""
34178 "This takes the logical volume and, as a final step, expands it to fill all "
34179 "the space available in its volume group.  A typical usage, assuming a Linux "
34180 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
34181 "lv_root> would be:"
34182 msgstr ""
34183
34184 # type: verbatim
34185 #. type: verbatim
34186 #: ../tools/virt-resize.pl:433
34187 #, no-wrap
34188 msgid ""
34189 " virt-resize indisk outdisk \\\n"
34190 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
34191 "\n"
34192 msgstr ""
34193
34194 # type: textblock
34195 #. type: textblock
34196 #: ../tools/virt-resize.pl:436
34197 msgid ""
34198 "This would first expand the partition (and PV), and then expand the root "
34199 "device to fill the extra space in the PV."
34200 msgstr ""
34201
34202 # type: textblock
34203 #. type: textblock
34204 #: ../tools/virt-resize.pl:439
34205 msgid ""
34206 "The contents of the LV are also resized if virt-resize knows how to do "
34207 "that.  You can stop virt-resize from trying to expand the content by using "
34208 "the option C<--no-expand-content>."
34209 msgstr ""
34210
34211 # type: textblock
34212 #. type: textblock
34213 #: ../tools/virt-resize.pl:443
34214 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
34215 msgstr ""
34216
34217 # type: textblock
34218 #. type: textblock
34219 #: ../tools/virt-resize.pl:446
34220 msgid ""
34221 "You can give this option multiple times, I<but> it doesn't make sense to do "
34222 "this unless the logical volumes you specify are all in different volume "
34223 "groups."
34224 msgstr ""
34225
34226 # type: =item
34227 #. type: =item
34228 #: ../tools/virt-resize.pl:454
34229 msgid "B<--no-copy-boot-loader>"
34230 msgstr ""
34231
34232 # type: textblock
34233 #. type: textblock
34234 #: ../tools/virt-resize.pl:456
34235 msgid ""
34236 "By default, virt-resize copies over some sectors at the start of the disk "
34237 "(up to the beginning of the first partition).  Commonly these sectors "
34238 "contain the Master Boot Record (MBR) and the boot loader, and are required "
34239 "in order for the guest to boot correctly."
34240 msgstr ""
34241
34242 # type: textblock
34243 #. type: textblock
34244 #: ../tools/virt-resize.pl:461
34245 msgid ""
34246 "If you specify this flag, then this initial copy is not done.  You may need "
34247 "to reinstall the boot loader in this case."
34248 msgstr ""
34249
34250 # type: =item
34251 #. type: =item
34252 #: ../tools/virt-resize.pl:469
34253 msgid "B<--no-extra-partition>"
34254 msgstr ""
34255
34256 # type: textblock
34257 #. type: textblock
34258 #: ../tools/virt-resize.pl:471
34259 msgid ""
34260 "By default, virt-resize creates an extra partition if there is any extra, "
34261 "unused space after all resizing has happened.  Use this option to prevent "
34262 "the extra partition from being created.  If you do this then the extra space "
34263 "will be inaccessible until you run fdisk, parted, or some other partitioning "
34264 "tool in the guest."
34265 msgstr ""
34266
34267 # type: textblock
34268 #. type: textblock
34269 #: ../tools/virt-resize.pl:477
34270 msgid ""
34271 "Note that if the surplus space is smaller than 10 MB, no extra partition "
34272 "will be created."
34273 msgstr ""
34274
34275 # type: =item
34276 #. type: =item
34277 #: ../tools/virt-resize.pl:484
34278 msgid "B<--no-expand-content>"
34279 msgstr ""
34280
34281 # type: textblock
34282 #. type: textblock
34283 #: ../tools/virt-resize.pl:486
34284 msgid ""
34285 "By default, virt-resize will try to expand the direct contents of "
34286 "partitions, if it knows how (see C<--expand> option above)."
34287 msgstr ""
34288
34289 # type: textblock
34290 #. type: textblock
34291 #: ../tools/virt-resize.pl:489
34292 msgid ""
34293 "If you give the C<--no-expand-content> option then virt-resize will not "
34294 "attempt this."
34295 msgstr ""
34296
34297 # type: =item
34298 #. type: =item
34299 #: ../tools/virt-resize.pl:496
34300 msgid "B<-d> | B<--debug>"
34301 msgstr ""
34302
34303 # type: =item
34304 #. type: =item
34305 #: ../tools/virt-resize.pl:504
34306 msgid "B<-n> | B<--dryrun>"
34307 msgstr ""
34308
34309 # type: textblock
34310 #. type: textblock
34311 #: ../tools/virt-resize.pl:506
34312 msgid "Print a summary of what would be done, but don't do anything."
34313 msgstr ""
34314
34315 # type: =item
34316 #. type: =item
34317 #: ../tools/virt-resize.pl:512
34318 msgid "B<-q> | B<--quiet>"
34319 msgstr ""
34320
34321 # type: textblock
34322 #. type: textblock
34323 #: ../tools/virt-resize.pl:514
34324 msgid "Don't print the summary."
34325 msgstr ""
34326
34327 # type: textblock
34328 #. type: textblock
34329 #: ../tools/virt-resize.pl:522
34330 msgid ""
34331 "Specify the format of the input disk image.  If this flag is not given then "
34332 "it is auto-detected from the image itself."
34333 msgstr ""
34334
34335 # type: textblock
34336 #. type: textblock
34337 #: ../tools/virt-resize.pl:528
34338 msgid ""
34339 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
34340 "AND NON-SPARSE RAW FORMATS>."
34341 msgstr ""
34342
34343 # type: =item
34344 #. type: =item
34345 #: ../tools/virt-resize.pl:535
34346 msgid "B<--output-format> raw"
34347 msgstr ""
34348
34349 # type: textblock
34350 #. type: textblock
34351 #: ../tools/virt-resize.pl:537
34352 msgid ""
34353 "Specify the format of the output disk image.  If this flag is not given then "
34354 "it is auto-detected from the image itself."
34355 msgstr ""
34356
34357 # type: textblock
34358 #. type: textblock
34359 #: ../tools/virt-resize.pl:543
34360 msgid ""
34361 "Note that you still need to create the output disk with the right format.  "
34362 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
34363 msgstr ""
34364
34365 # type: =head1
34366 #. type: =head1
34367 #: ../tools/virt-resize.pl:1425
34368 msgid "NOTES"
34369 msgstr ""
34370
34371 # type: =head2
34372 #. type: =head2
34373 #: ../tools/virt-resize.pl:1427
34374 msgid "\"Partition 1 does not end on cylinder boundary.\""
34375 msgstr ""
34376
34377 # type: textblock
34378 #. type: textblock
34379 #: ../tools/virt-resize.pl:1429
34380 msgid ""
34381 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
34382 "means the partitions will not be aligned to the ancient CHS geometry.  "
34383 "However CHS geometry is meaningless for disks manufactured since the early "
34384 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
34385 "cylinders is not required by any modern operating system."
34386 msgstr ""
34387
34388 # type: =head2
34389 #. type: =head2
34390 #: ../tools/virt-resize.pl:1436
34391 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
34392 msgstr ""
34393
34394 # type: textblock
34395 #. type: textblock
34396 #: ../tools/virt-resize.pl:1438
34397 msgid ""
34398 "In Windows Vista and later versions, Microsoft switched to using a separate "
34399 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
34400 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
34401 "the boot partition.  Doing so seems to break the guest completely.  However "
34402 "expanding the second partition (ie. C: drive) should work."
34403 msgstr ""
34404
34405 # type: textblock
34406 #. type: textblock
34407 #: ../tools/virt-resize.pl:1445
34408 msgid ""
34409 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
34410 "NTFS partitions have been expanded.  This is just a safety check and (unless "
34411 "it find errors) is nothing to worry about."
34412 msgstr ""
34413
34414 # type: =head2
34415 #. type: =head2
34416 #: ../tools/virt-resize.pl:1449
34417 msgid "GUEST BOOT STUCK AT \"GRUB\""
34418 msgstr ""
34419
34420 # type: textblock
34421 #. type: textblock
34422 #: ../tools/virt-resize.pl:1451
34423 msgid ""
34424 "If a Linux guest does not boot after resizing, and the boot is stuck after "
34425 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
34426 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
34427 "although we think is to do with partition alignment."
34428 msgstr ""
34429
34430 # type: verbatim
34431 #. type: verbatim
34432 #: ../tools/virt-resize.pl:1456
34433 #, no-wrap
34434 msgid ""
34435 " guestfish -i -a newdisk\n"
34436 " ><fs> cat /boot/grub/device.map\n"
34437 " # check the contents of this file are sensible or\n"
34438 " # edit the file if necessary\n"
34439 " ><fs> grub-install / /dev/vda\n"
34440 " ><fs> exit\n"
34441 "\n"
34442 msgstr ""
34443
34444 # type: textblock
34445 #. type: textblock
34446 #: ../tools/virt-resize.pl:1463
34447 msgid ""
34448 "For more flexible guest reconfiguration, including if you need to specify "
34449 "other parameters to grub-install, use L<virt-rescue(1)>."
34450 msgstr ""
34451
34452 # type: =head1
34453 #. type: =head1
34454 #: ../tools/virt-resize.pl:1466
34455 msgid "ALTERNATIVE TOOLS"
34456 msgstr ""
34457
34458 # type: textblock
34459 #. type: textblock
34460 #: ../tools/virt-resize.pl:1468
34461 msgid ""
34462 "There are several proprietary tools for resizing partitions.  We won't "
34463 "mention any here."
34464 msgstr ""
34465
34466 # type: textblock
34467 #. type: textblock
34468 #: ../tools/virt-resize.pl:1471
34469 msgid ""
34470 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
34471 "operations on disk images.  They can resize and move partitions, but I don't "
34472 "think they can do anything with the contents, and they certainly don't "
34473 "understand LVM."
34474 msgstr ""
34475
34476 # type: textblock
34477 #. type: textblock
34478 #: ../tools/virt-resize.pl:1476
34479 msgid ""
34480 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
34481 "but at a much lower level.  You will probably end up hand-calculating sector "
34482 "offsets, which is something that virt-resize was designed to avoid.  If you "
34483 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
34484 "C<--debug> flag."
34485 msgstr ""
34486
34487 # type: textblock
34488 #. type: textblock
34489 #: ../tools/virt-resize.pl:1491
34490 msgid ""
34491 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
34492 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
34493 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
34494 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
34495 "libguestfs.org/>."
34496 msgstr ""
34497
34498 # type: textblock
34499 #. type: textblock
34500 #: ../tools/virt-list-filesystems.pl:32
34501 msgid ""
34502 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
34503 msgstr ""
34504
34505 # type: verbatim
34506 #. type: verbatim
34507 #: ../tools/virt-list-filesystems.pl:36
34508 #, no-wrap
34509 msgid ""
34510 " virt-list-filesystems [--options] domname\n"
34511 "\n"
34512 msgstr ""
34513
34514 # type: verbatim
34515 #. type: verbatim
34516 #: ../tools/virt-list-filesystems.pl:38
34517 #, no-wrap
34518 msgid ""
34519 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
34520 "\n"
34521 msgstr ""
34522
34523 # type: textblock
34524 #. type: textblock
34525 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
34526 msgid ""
34527 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
34528 "replacement."
34529 msgstr ""
34530
34531 # type: textblock
34532 #. type: textblock
34533 #: ../tools/virt-list-filesystems.pl:45
34534 msgid ""
34535 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
34536 "are contained in a virtual machine or disk image."
34537 msgstr ""
34538
34539 # type: textblock
34540 #. type: textblock
34541 #: ../tools/virt-list-filesystems.pl:49
34542 msgid ""
34543 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
34544 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34545 "> tool."
34546 msgstr ""
34547
34548 # type: =item
34549 #. type: =item
34550 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
34551 msgid "B<-l> | B<--long>"
34552 msgstr ""
34553
34554 # type: textblock
34555 #. type: textblock
34556 #: ../tools/virt-list-filesystems.pl:108
34557 msgid ""
34558 "With this option, C<virt-list-filesystems> displays the type of each "
34559 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
34560 msgstr ""
34561
34562 # type: =item
34563 #. type: =item
34564 #: ../tools/virt-list-filesystems.pl:115
34565 msgid "B<-a> | B<--all>"
34566 msgstr ""
34567
34568 # type: textblock
34569 #. type: textblock
34570 #: ../tools/virt-list-filesystems.pl:117
34571 msgid ""
34572 "Normally we only show mountable filesystems.  If this option is given then "
34573 "swap devices are shown too."
34574 msgstr ""
34575
34576 # type: textblock
34577 #. type: textblock
34578 #: ../tools/virt-list-filesystems.pl:191
34579 msgid ""
34580 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34581 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34582 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34583 msgstr ""
34584
34585 # type: textblock
34586 #. type: textblock
34587 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34588 msgid "Copyright (C) 2009 Red Hat Inc."
34589 msgstr ""
34590
34591 # type: textblock
34592 #. type: textblock
34593 #: ../tools/virt-tar.pl:33
34594 msgid "virt-tar - Extract or upload files to a virtual machine"
34595 msgstr ""
34596
34597 # type: verbatim
34598 #. type: verbatim
34599 #: ../tools/virt-tar.pl:37
34600 #, no-wrap
34601 msgid ""
34602 " virt-tar [--options] -x domname directory tarball\n"
34603 "\n"
34604 msgstr ""
34605
34606 # type: verbatim
34607 #. type: verbatim
34608 #: ../tools/virt-tar.pl:39
34609 #, no-wrap
34610 msgid ""
34611 " virt-tar [--options] -u domname tarball directory\n"
34612 "\n"
34613 msgstr ""
34614
34615 # type: verbatim
34616 #. type: verbatim
34617 #: ../tools/virt-tar.pl:41
34618 #, no-wrap
34619 msgid ""
34620 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34621 "\n"
34622 msgstr ""
34623
34624 # type: verbatim
34625 #. type: verbatim
34626 #: ../tools/virt-tar.pl:43
34627 #, no-wrap
34628 msgid ""
34629 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34630 "\n"
34631 msgstr ""
34632
34633 #. type: textblock
34634 #: ../tools/virt-tar.pl:47
34635 msgid ""
34636 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34637 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34638 msgstr ""
34639
34640 # type: textblock
34641 #. type: textblock
34642 #: ../tools/virt-tar.pl:52
34643 msgid "Download C</home> from the VM into a local tarball:"
34644 msgstr ""
34645
34646 # type: verbatim
34647 #. type: verbatim
34648 #: ../tools/virt-tar.pl:54
34649 #, no-wrap
34650 msgid ""
34651 " virt-tar -x domname /home home.tar\n"
34652 "\n"
34653 msgstr ""
34654
34655 # type: verbatim
34656 #. type: verbatim
34657 #: ../tools/virt-tar.pl:56
34658 #, no-wrap
34659 msgid ""
34660 " virt-tar -zx domname /home home.tar.gz\n"
34661 "\n"
34662 msgstr ""
34663
34664 # type: textblock
34665 #. type: textblock
34666 #: ../tools/virt-tar.pl:58
34667 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34668 msgstr ""
34669
34670 # type: verbatim
34671 #. type: verbatim
34672 #: ../tools/virt-tar.pl:60
34673 #, no-wrap
34674 msgid ""
34675 " virt-tar -u domname uploadstuff.tar /tmp\n"
34676 "\n"
34677 msgstr ""
34678
34679 # type: verbatim
34680 #. type: verbatim
34681 #: ../tools/virt-tar.pl:62
34682 #, no-wrap
34683 msgid ""
34684 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34685 "\n"
34686 msgstr ""
34687
34688 # type: textblock
34689 #. type: textblock
34690 #: ../tools/virt-tar.pl:66
34691 msgid ""
34692 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
34693 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34694 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34695 msgstr ""
34696
34697 # type: textblock
34698 #. type: textblock
34699 #: ../tools/virt-tar.pl:71
34700 msgid ""
34701 "You can use C<-x> (extract) on live virtual machines, but you might get "
34702 "inconsistent results or errors if there is filesystem activity inside the "
34703 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34704 "work, but the only way to guarantee consistent results is if the virtual "
34705 "machine is shut down."
34706 msgstr ""
34707
34708 # type: textblock
34709 #. type: textblock
34710 #: ../tools/virt-tar.pl:79
34711 msgid ""
34712 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34713 "parts of a guest filesystem.  There are many possibilities: making backups, "
34714 "uploading data files, snooping on guest activity, fixing or customizing "
34715 "guests, etc."
34716 msgstr ""
34717
34718 # type: textblock
34719 #. type: textblock
34720 #: ../tools/virt-tar.pl:84
34721 msgid ""
34722 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34723 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34724 "should look at the L<guestfish(1)> tool."
34725 msgstr ""
34726
34727 # type: textblock
34728 #. type: textblock
34729 #: ../tools/virt-tar.pl:88
34730 msgid ""
34731 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
34732 "its contents (recursively) from the virtual machine into a local tarball.  "
34733 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
34734 "virtual machine.  You cannot use these two options together."
34735 msgstr ""
34736
34737 # type: textblock
34738 #. type: textblock
34739 #: ../tools/virt-tar.pl:94
34740 msgid ""
34741 "In addition, you may need to use the C<-z> (gZip) option to enable "
34742 "compression.  When uploading, you have to specify C<-z> if the upload file "
34743 "is compressed because virt-tar won't detect this on its own."
34744 msgstr ""
34745
34746 # type: textblock
34747 #. type: textblock
34748 #: ../tools/virt-tar.pl:98
34749 msgid ""
34750 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34751 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34752 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34753 "the L<libguestfs(3)> API)."
34754 msgstr ""
34755
34756 # type: =item
34757 #. type: =item
34758 #: ../tools/virt-tar.pl:156
34759 msgid "B<-x> | B<--extract> | B<--download>"
34760 msgstr ""
34761
34762 # type: =item
34763 #. type: =item
34764 #: ../tools/virt-tar.pl:158
34765 msgid "B<-u> | B<--upload>"
34766 msgstr ""
34767
34768 # type: textblock
34769 #. type: textblock
34770 #: ../tools/virt-tar.pl:160
34771 msgid ""
34772 "Use C<-x> to extract (download) a directory from a virtual machine to a "
34773 "local tarball."
34774 msgstr ""
34775
34776 # type: textblock
34777 #. type: textblock
34778 #: ../tools/virt-tar.pl:163
34779 msgid ""
34780 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
34781 "Please read the L</WARNING> section above before using this option."
34782 msgstr ""
34783
34784 # type: textblock
34785 #. type: textblock
34786 #: ../tools/virt-tar.pl:167
34787 msgid "You must specify exactly one of these options."
34788 msgstr ""
34789
34790 # type: =item
34791 #. type: =item
34792 #: ../tools/virt-tar.pl:173
34793 msgid "B<-z> | B<--gzip>"
34794 msgstr ""
34795
34796 # type: textblock
34797 #. type: textblock
34798 #: ../tools/virt-tar.pl:175
34799 msgid "Specify that the input or output tarball is gzip-compressed."
34800 msgstr ""
34801
34802 #. type: textblock
34803 #: ../tools/virt-tar.pl:288
34804 msgid ""
34805 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34806 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34807 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34808 "org/>."
34809 msgstr ""
34810
34811 # type: textblock
34812 #. type: textblock
34813 #: ../tools/virt-make-fs.pl:37
34814 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34815 msgstr ""
34816
34817 # type: verbatim
34818 #. type: verbatim
34819 #: ../tools/virt-make-fs.pl:41
34820 #, no-wrap
34821 msgid ""
34822 " virt-make-fs [--options] input.tar output.img\n"
34823 "\n"
34824 msgstr ""
34825
34826 # type: verbatim
34827 #. type: verbatim
34828 #: ../tools/virt-make-fs.pl:43
34829 #, no-wrap
34830 msgid ""
34831 " virt-make-fs [--options] input.tar.gz output.img\n"
34832 "\n"
34833 msgstr ""
34834
34835 # type: verbatim
34836 #. type: verbatim
34837 #: ../tools/virt-make-fs.pl:45
34838 #, no-wrap
34839 msgid ""
34840 " virt-make-fs [--options] directory output.img\n"
34841 "\n"
34842 msgstr ""
34843
34844 # type: textblock
34845 #. type: textblock
34846 #: ../tools/virt-make-fs.pl:49
34847 msgid ""
34848 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34849 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34850 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34851 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34852 "you want to attach these filesystems to existing virtual machines (eg. to "
34853 "import large amounts of read-only data to a VM)."
34854 msgstr ""
34855
34856 # type: textblock
34857 #. type: textblock
34858 #: ../tools/virt-make-fs.pl:57
34859 msgid "Basic usage is:"
34860 msgstr ""
34861
34862 # type: verbatim
34863 #. type: verbatim
34864 #: ../tools/virt-make-fs.pl:59
34865 #, no-wrap
34866 msgid ""
34867 " virt-make-fs input output\n"
34868 "\n"
34869 msgstr ""
34870
34871 # type: textblock
34872 #. type: textblock
34873 #: ../tools/virt-make-fs.pl:61
34874 msgid ""
34875 "where C<input> is either a directory containing files that you want to add, "
34876 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34877 "C<output> is a disk image.  The input type is detected automatically.  The "
34878 "output disk image defaults to a raw ext2 image unless you specify extra "
34879 "flags (see L</OPTIONS> below)."
34880 msgstr ""
34881
34882 # type: =head2
34883 #. type: =head2
34884 #: ../tools/virt-make-fs.pl:67
34885 msgid "EXTRA SPACE"
34886 msgstr ""
34887
34888 # type: textblock
34889 #. type: textblock
34890 #: ../tools/virt-make-fs.pl:69
34891 msgid ""
34892 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34893 "the files that it contains, but might have extra space.  Depending on how "
34894 "you are going to use the output, you might think this extra space is wasted "
34895 "and want to minimize it, or you might want to leave space so that more files "
34896 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34897 "but you can use the C<--size> flag to leave space in the filesystem if you "
34898 "want it."
34899 msgstr ""
34900
34901 # type: textblock
34902 #. type: textblock
34903 #: ../tools/virt-make-fs.pl:77
34904 msgid ""
34905 "An alternative way to leave extra space but not make the output image any "
34906 "bigger is to use an alternative disk image format (instead of the default "
34907 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34908 "image format (check your hypervisor supports this before using it).  This "
34909 "allows you to choose a large C<--size> but the extra space won't actually be "
34910 "allocated in the image until you try to store something in it."
34911 msgstr ""
34912
34913 #. type: textblock
34914 #: ../tools/virt-make-fs.pl:85
34915 msgid ""
34916 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34917 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34918 "to build another image from scratch."
34919 msgstr ""
34920
34921 # type: =head3
34922 #. type: =head3
34923 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34924 #: ../tools/virt-make-fs.pl:142
34925 msgid "EXAMPLE"
34926 msgstr ""
34927
34928 # type: verbatim
34929 #. type: verbatim
34930 #: ../tools/virt-make-fs.pl:91
34931 #, no-wrap
34932 msgid ""
34933 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34934 "\n"
34935 msgstr ""
34936
34937 # type: =head2
34938 #. type: =head2
34939 #: ../tools/virt-make-fs.pl:93
34940 msgid "FILESYSTEM TYPE"
34941 msgstr ""
34942
34943 # type: textblock
34944 #. type: textblock
34945 #: ../tools/virt-make-fs.pl:95
34946 msgid ""
34947 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34948 "libguestfs supports can be used (but I<not> read-only formats like "
34949 "ISO9660).  Here are some of the more common choices:"
34950 msgstr ""
34951
34952 # type: =item
34953 #. type: =item
34954 #: ../tools/virt-make-fs.pl:101
34955 msgid "I<ext3>"
34956 msgstr ""
34957
34958 # type: textblock
34959 #. type: textblock
34960 #: ../tools/virt-make-fs.pl:103
34961 msgid ""
34962 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34963 "you are not going to use the filesystem in a way that requires the journal, "
34964 "then this is just wasted overhead."
34965 msgstr ""
34966
34967 # type: =item
34968 #. type: =item
34969 #: ../tools/virt-make-fs.pl:107
34970 msgid "I<ntfs> or I<vfat>"
34971 msgstr ""
34972
34973 # type: textblock
34974 #. type: textblock
34975 #: ../tools/virt-make-fs.pl:109
34976 msgid "Useful if exporting data to a Windows guest."
34977 msgstr ""
34978
34979 # type: textblock
34980 #. type: textblock
34981 #: ../tools/virt-make-fs.pl:111
34982 msgid ""
34983 "I<Note for vfat>: The tar archive or local directory must only contain files "
34984 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34985 "program running within libguestfs is unable to change the ownership of non-"
34986 "root files, since vfat itself does not support this."
34987 msgstr ""
34988
34989 # type: =item
34990 #. type: =item
34991 #: ../tools/virt-make-fs.pl:116
34992 msgid "I<minix>"
34993 msgstr ""
34994
34995 # type: textblock
34996 #. type: textblock
34997 #: ../tools/virt-make-fs.pl:118
34998 msgid ""
34999 "Lower overhead than C<ext2>, but certain limitations on filename length and "
35000 "total filesystem size."
35001 msgstr ""
35002
35003 # type: verbatim
35004 #. type: verbatim
35005 #: ../tools/virt-make-fs.pl:125
35006 #, no-wrap
35007 msgid ""
35008 " virt-make-fs --type=minix input minixfs.img\n"
35009 "\n"
35010 msgstr ""
35011
35012 # type: =head2
35013 #. type: =head2
35014 #: ../tools/virt-make-fs.pl:127
35015 msgid "TO PARTITION OR NOT TO PARTITION"
35016 msgstr ""
35017
35018 # type: textblock
35019 #. type: textblock
35020 #: ../tools/virt-make-fs.pl:129
35021 msgid "Optionally virt-make-fs can add a partition table to the output disk."
35022 msgstr ""
35023
35024 # type: textblock
35025 #. type: textblock
35026 #: ../tools/virt-make-fs.pl:131
35027 msgid ""
35028 "Adding a partition can make the disk image more compatible with certain "
35029 "virtualized operating systems which don't expect to see a filesystem "
35030 "directly located on a block device (Linux doesn't care and will happily "
35031 "handle both types)."
35032 msgstr ""
35033
35034 # type: textblock
35035 #. type: textblock
35036 #: ../tools/virt-make-fs.pl:136
35037 msgid ""
35038 "On the other hand, if you have a partition table then the output image is no "
35039 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
35040 "directly on a partitioned disk image.  (However libguestfs tools such as "
35041 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
35042 msgstr ""
35043
35044 # type: textblock
35045 #. type: textblock
35046 #: ../tools/virt-make-fs.pl:144
35047 msgid "Add an MBR partition:"
35048 msgstr ""
35049
35050 # type: verbatim
35051 #. type: verbatim
35052 #: ../tools/virt-make-fs.pl:146
35053 #, no-wrap
35054 msgid ""
35055 " virt-make-fs --partition -- input disk.img\n"
35056 "\n"
35057 msgstr ""
35058
35059 # type: textblock
35060 #. type: textblock
35061 #: ../tools/virt-make-fs.pl:148
35062 msgid ""
35063 "If the output disk image could be terabyte-sized or larger, it's better to "
35064 "use an EFI/GPT-compatible partition table:"
35065 msgstr ""
35066
35067 # type: verbatim
35068 #. type: verbatim
35069 #: ../tools/virt-make-fs.pl:151
35070 #, no-wrap
35071 msgid ""
35072 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
35073 "\n"
35074 msgstr ""
35075
35076 # type: textblock
35077 #. type: textblock
35078 #: ../tools/virt-make-fs.pl:179
35079 msgid "Enable debugging information."
35080 msgstr ""
35081
35082 # type: =item
35083 #. type: =item
35084 #: ../tools/virt-make-fs.pl:185
35085 msgid "B<--size=E<lt>NE<gt>>"
35086 msgstr ""
35087
35088 # type: =item
35089 #. type: =item
35090 #: ../tools/virt-make-fs.pl:187
35091 msgid "B<--size=+E<lt>NE<gt>>"
35092 msgstr ""
35093
35094 # type: =item
35095 #. type: =item
35096 #: ../tools/virt-make-fs.pl:189
35097 msgid "B<-s E<lt>NE<gt>>"
35098 msgstr ""
35099
35100 # type: =item
35101 #. type: =item
35102 #: ../tools/virt-make-fs.pl:191
35103 msgid "B<-s +E<lt>NE<gt>>"
35104 msgstr ""
35105
35106 # type: textblock
35107 #. type: textblock
35108 #: ../tools/virt-make-fs.pl:193
35109 msgid ""
35110 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
35111 msgstr ""
35112
35113 # type: textblock
35114 #. type: textblock
35115 #: ../tools/virt-make-fs.pl:196
35116 msgid ""
35117 "If this option is I<not> given, then the output image will be just large "
35118 "enough to contain all the files, with not much wasted space."
35119 msgstr ""
35120
35121 # type: textblock
35122 #. type: textblock
35123 #: ../tools/virt-make-fs.pl:199
35124 msgid ""
35125 "To choose a fixed size output disk, specify an absolute number followed by b/"
35126 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35127 "Petabytes or Exabytes.  This must be large enough to contain all the input "
35128 "files, else you will get an error."
35129 msgstr ""
35130
35131 # type: textblock
35132 #. type: textblock
35133 #: ../tools/virt-make-fs.pl:204
35134 msgid ""
35135 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
35136 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35137 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
35138 "the input files, and (approximately) an extra 200 MB free space."
35139 msgstr ""
35140
35141 # type: textblock
35142 #. type: textblock
35143 #: ../tools/virt-make-fs.pl:210
35144 msgid ""
35145 "Note that virt-make-fs estimates free space, and therefore will not produce "
35146 "filesystems containing precisely the free space requested.  (It is much more "
35147 "expensive and time-consuming to produce a filesystem which has precisely the "
35148 "desired free space)."
35149 msgstr ""
35150
35151 # type: =item
35152 #. type: =item
35153 #: ../tools/virt-make-fs.pl:219
35154 msgid "B<--format=E<lt>fmtE<gt>>"
35155 msgstr ""
35156
35157 # type: =item
35158 #. type: =item
35159 #: ../tools/virt-make-fs.pl:221
35160 msgid "B<-F E<lt>fmtE<gt>>"
35161 msgstr ""
35162
35163 # type: textblock
35164 #. type: textblock
35165 #: ../tools/virt-make-fs.pl:223
35166 msgid "Choose the output disk image format."
35167 msgstr ""
35168
35169 # type: textblock
35170 #. type: textblock
35171 #: ../tools/virt-make-fs.pl:225
35172 msgid "The default is C<raw> (raw disk image)."
35173 msgstr ""
35174
35175 # type: textblock
35176 #. type: textblock
35177 #: ../tools/virt-make-fs.pl:227
35178 msgid ""
35179 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
35180 "that would really make sense here is C<qcow2>."
35181 msgstr ""
35182
35183 # type: =item
35184 #. type: =item
35185 #: ../tools/virt-make-fs.pl:234
35186 msgid "B<--type=E<lt>fsE<gt>>"
35187 msgstr ""
35188
35189 # type: =item
35190 #. type: =item
35191 #: ../tools/virt-make-fs.pl:236
35192 msgid "B<-t E<lt>fsE<gt>>"
35193 msgstr ""
35194
35195 # type: textblock
35196 #. type: textblock
35197 #: ../tools/virt-make-fs.pl:238
35198 msgid "Choose the output filesystem type."
35199 msgstr ""
35200
35201 # type: textblock
35202 #. type: textblock
35203 #: ../tools/virt-make-fs.pl:240
35204 msgid "The default is C<ext2>."
35205 msgstr ""
35206
35207 # type: textblock
35208 #. type: textblock
35209 #: ../tools/virt-make-fs.pl:242
35210 msgid ""
35211 "Any filesystem which is supported read-write by libguestfs can be used here."
35212 msgstr ""
35213
35214 # type: =item
35215 #. type: =item
35216 #: ../tools/virt-make-fs.pl:249
35217 msgid "B<--partition>"
35218 msgstr ""
35219
35220 # type: =item
35221 #. type: =item
35222 #: ../tools/virt-make-fs.pl:251
35223 msgid "B<--partition=E<lt>parttypeE<gt>>"
35224 msgstr ""
35225
35226 # type: textblock
35227 #. type: textblock
35228 #: ../tools/virt-make-fs.pl:253
35229 msgid ""
35230 "If specified, this flag adds an MBR partition table to the output disk image."
35231 msgstr ""
35232
35233 # type: textblock
35234 #. type: textblock
35235 #: ../tools/virt-make-fs.pl:256
35236 msgid ""
35237 "You can change the partition table type, eg. C<--partition=gpt> for large "
35238 "disks."
35239 msgstr ""
35240
35241 # type: textblock
35242 #. type: textblock
35243 #: ../tools/virt-make-fs.pl:259
35244 msgid ""
35245 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
35246 "might consider the next parameter to be the partition type.  For example:"
35247 msgstr ""
35248
35249 # type: verbatim
35250 #. type: verbatim
35251 #: ../tools/virt-make-fs.pl:263
35252 #, no-wrap
35253 msgid ""
35254 " virt-make-fs --partition input.tar ...\n"
35255 "\n"
35256 msgstr ""
35257
35258 # type: textblock
35259 #. type: textblock
35260 #: ../tools/virt-make-fs.pl:265
35261 msgid ""
35262 "would cause virt-make-fs to think you wanted to use a partition type of "
35263 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
35264 "dash) between options and the input file argument:"
35265 msgstr ""
35266
35267 # type: verbatim
35268 #. type: verbatim
35269 #: ../tools/virt-make-fs.pl:269
35270 #, no-wrap
35271 msgid ""
35272 " virt-make-fs --partition -- input.tar ...\n"
35273 "\n"
35274 msgstr ""
35275
35276 #. type: textblock
35277 #: ../tools/virt-make-fs.pl:541
35278 msgid ""
35279 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
35280 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
35281 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
35282 msgstr ""
35283
35284 # type: verbatim
35285 #. type: verbatim
35286 #: ../tools/virt-make-fs.pl:558
35287 #, no-wrap
35288 msgid ""
35289 " export LIBGUESTFS_DEBUG=1\n"
35290 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
35291 "\n"
35292 msgstr ""
35293
35294 # type: textblock
35295 #. type: textblock
35296 #: ../tools/virt-make-fs.pl:561
35297 msgid ""
35298 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
35299 "redhat.com/>"
35300 msgstr ""
35301
35302 # type: textblock
35303 #. type: textblock
35304 #: ../tools/virt-list-partitions.pl:32
35305 msgid ""
35306 "virt-list-partitions - List partitions in a virtual machine or disk image"
35307 msgstr ""
35308
35309 # type: verbatim
35310 #. type: verbatim
35311 #: ../tools/virt-list-partitions.pl:36
35312 #, no-wrap
35313 msgid ""
35314 " virt-list-partitions [--options] domname\n"
35315 "\n"
35316 msgstr ""
35317
35318 # type: verbatim
35319 #. type: verbatim
35320 #: ../tools/virt-list-partitions.pl:38
35321 #, no-wrap
35322 msgid ""
35323 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35324 "\n"
35325 msgstr ""
35326
35327 # type: textblock
35328 #. type: textblock
35329 #: ../tools/virt-list-partitions.pl:45
35330 msgid ""
35331 "C<virt-list-partitions> is a command line tool to list the partitions that "
35332 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35333 "first step to using L<virt-resize(1)>."
35334 msgstr ""
35335
35336 # type: textblock
35337 #. type: textblock
35338 #: ../tools/virt-list-partitions.pl:50
35339 msgid ""
35340 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35341 "functionality.  For more complex cases you should look at the L<guestfish(1)"
35342 "> tool."
35343 msgstr ""
35344
35345 # type: =item
35346 #. type: =item
35347 #: ../tools/virt-list-partitions.pl:107
35348 msgid "B<-h> | B<--human-readable>"
35349 msgstr ""
35350
35351 # type: textblock
35352 #. type: textblock
35353 #: ../tools/virt-list-partitions.pl:109
35354 msgid "Show sizes in human-readable form (eg. \"1G\")."
35355 msgstr ""
35356
35357 # type: textblock
35358 #. type: textblock
35359 #: ../tools/virt-list-partitions.pl:117
35360 msgid ""
35361 "With this option, C<virt-list-partitions> displays the type and size of each "
35362 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35363 msgstr ""
35364
35365 # type: =item
35366 #. type: =item
35367 #: ../tools/virt-list-partitions.pl:124
35368 msgid "B<-t> | B<--total>"
35369 msgstr ""
35370
35371 # type: textblock
35372 #. type: textblock
35373 #: ../tools/virt-list-partitions.pl:126
35374 msgid ""
35375 "Display the total size of each block device (as a separate row or rows)."
35376 msgstr ""
35377
35378 # type: textblock
35379 #. type: textblock
35380 #: ../tools/virt-list-partitions.pl:259
35381 msgid ""
35382 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
35383 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
35384 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35385 msgstr ""