Version 1.9.16.
[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 20:21+0200\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-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:1789 ../src/guestfs.pod:2023 ../src/guestfs.pod:2028
928 #: ../src/guestfs.pod:2034 ../src/guestfs.pod:2042 ../src/guestfs.pod:2396
929 #: ../src/guestfs.pod:2402 ../src/guestfs.pod:2407 ../src/guestfs.pod:2413
930 #: ../src/guestfs.pod:2878 ../src/guestfs.pod:2882 ../src/guestfs.pod:2886
931 #: ../src/guestfs.pod:2890 ../src/guestfs-actions.pod:15
932 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:577
933 #: ../src/guestfs-actions.pod:585 ../src/guestfs-actions.pod:592
934 #: ../src/guestfs-actions.pod:599 ../src/guestfs-actions.pod:1600
935 #: ../src/guestfs-actions.pod:1604 ../src/guestfs-actions.pod:1608
936 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1620
937 #: ../src/guestfs-actions.pod:1624 ../src/guestfs-actions.pod:1628
938 #: ../src/guestfs-actions.pod:1638 ../src/guestfs-actions.pod:1642
939 #: ../src/guestfs-actions.pod:1646 ../src/guestfs-actions.pod:1784
940 #: ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1793
941 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1859
942 #: ../src/guestfs-actions.pod:1863 ../src/guestfs-actions.pod:1868
943 #: ../fish/guestfish.pod:443 ../fish/guestfish.pod:447
944 #: ../fish/guestfish.pod:451 ../fish/guestfish.pod:455
945 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
946 #: ../fish/guestfish-actions.pod:380 ../fish/guestfish-actions.pod:388
947 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:402
948 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1076
949 #: ../fish/guestfish-actions.pod:1080 ../fish/guestfish-actions.pod:1084
950 #: ../fish/guestfish-actions.pod:1092 ../fish/guestfish-actions.pod:1096
951 #: ../fish/guestfish-actions.pod:1100 ../fish/guestfish-actions.pod:1110
952 #: ../fish/guestfish-actions.pod:1114 ../fish/guestfish-actions.pod:1118
953 #: ../fish/guestfish-actions.pod:1208 ../fish/guestfish-actions.pod:1212
954 #: ../fish/guestfish-actions.pod:1217 ../fish/guestfish-actions.pod:1222
955 #: ../fish/guestfish-actions.pod:1264 ../fish/guestfish-actions.pod:1268
956 #: ../fish/guestfish-actions.pod:1273 ../tools/virt-win-reg.pl:536
957 #: ../tools/virt-win-reg.pl:542 ../tools/virt-win-reg.pl:548
958 #: ../tools/virt-resize.pl:345 ../tools/virt-resize.pl:350
959 #: ../tools/virt-resize.pl:360
960 msgid "*"
961 msgstr ""
962
963 # type: textblock
964 #. type: textblock
965 #: ../src/guestfs.pod:390
966 msgid ""
967 "The kernel version that the command runs under will be different from what "
968 "it expects."
969 msgstr ""
970
971 # type: textblock
972 #. type: textblock
973 #: ../src/guestfs.pod:395
974 msgid ""
975 "If the command needs to communicate with daemons, then most likely they "
976 "won't be running."
977 msgstr ""
978
979 # type: textblock
980 #. type: textblock
981 #: ../src/guestfs.pod:400
982 msgid "The command will be running in limited memory."
983 msgstr ""
984
985 # type: textblock
986 #. type: textblock
987 #: ../src/guestfs.pod:404
988 msgid ""
989 "The network may not be available unless you enable it (see L</"
990 "guestfs_set_network>)."
991 msgstr ""
992
993 # type: textblock
994 #. type: textblock
995 #: ../src/guestfs.pod:409
996 msgid "Only supports Linux guests (not Windows, BSD, etc)."
997 msgstr ""
998
999 # type: textblock
1000 #. type: textblock
1001 #: ../src/guestfs.pod:413
1002 msgid ""
1003 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1004 msgstr ""
1005
1006 # type: textblock
1007 #. type: textblock
1008 #: ../src/guestfs.pod:418
1009 msgid ""
1010 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1011 "See L</SELINUX> in this manpage."
1012 msgstr ""
1013
1014 # type: textblock
1015 #. type: textblock
1016 #: ../src/guestfs.pod:423
1017 msgid ""
1018 "I<Security:> It is not safe to run commands from untrusted, possibly "
1019 "malicious guests.  These commands may attempt to exploit your program by "
1020 "sending unexpected output.  They could also try to exploit the Linux kernel "
1021 "or qemu provided by the libguestfs appliance.  They could use the network "
1022 "provided by the libguestfs appliance to bypass ordinary network partitions "
1023 "and firewalls.  They could use the elevated privileges or different SELinux "
1024 "context of your program to their advantage."
1025 msgstr ""
1026
1027 # type: textblock
1028 #. type: textblock
1029 #: ../src/guestfs.pod:432
1030 msgid ""
1031 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1032 "(a script which runs when the guest next boots normally), and to have this "
1033 "script run the commands you want in the normal context of the running guest, "
1034 "network security and so on.  For information about other security issues, "
1035 "see L</SECURITY>."
1036 msgstr ""
1037
1038 # type: textblock
1039 #. type: textblock
1040 #: ../src/guestfs.pod:440
1041 msgid ""
1042 "The two main API calls to run commands are L</guestfs_command> and L</"
1043 "guestfs_sh> (there are also variations)."
1044 msgstr ""
1045
1046 # type: textblock
1047 #. type: textblock
1048 #: ../src/guestfs.pod:443
1049 msgid ""
1050 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1051 "shell globs, redirections, etc will work."
1052 msgstr ""
1053
1054 # type: =head2
1055 #. type: =head2
1056 #: ../src/guestfs.pod:446
1057 msgid "CONFIGURATION FILES"
1058 msgstr ""
1059
1060 # type: textblock
1061 #. type: textblock
1062 #: ../src/guestfs.pod:448
1063 msgid ""
1064 "To read and write configuration files in Linux guest filesystems, we "
1065 "strongly recommend using Augeas.  For example, Augeas understands how to "
1066 "read and write, say, a Linux shadow password file or X.org configuration "
1067 "file, and so avoids you having to write that code."
1068 msgstr ""
1069
1070 # type: textblock
1071 #. type: textblock
1072 #: ../src/guestfs.pod:453
1073 msgid ""
1074 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1075 "document Augeas itself here because there is excellent documentation on the "
1076 "L<http://augeas.net/> website."
1077 msgstr ""
1078
1079 # type: textblock
1080 #. type: textblock
1081 #: ../src/guestfs.pod:457
1082 msgid ""
1083 "If you don't want to use Augeas (you fool!) then try calling L</"
1084 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1085 "over."
1086 msgstr ""
1087
1088 # type: =head2
1089 #. type: =head2
1090 #: ../src/guestfs.pod:461
1091 msgid "SELINUX"
1092 msgstr ""
1093
1094 # type: textblock
1095 #. type: textblock
1096 #: ../src/guestfs.pod:463
1097 msgid ""
1098 "We support SELinux guests.  To ensure that labeling happens correctly in "
1099 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1100 msgstr ""
1101
1102 # type: =item
1103 #. type: =item
1104 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1281 ../src/guestfs.pod:1412
1105 #: ../src/guestfs.pod:2441
1106 msgid "1."
1107 msgstr ""
1108
1109 # type: textblock
1110 #. type: textblock
1111 #: ../src/guestfs.pod:471
1112 msgid "Before launching, do:"
1113 msgstr ""
1114
1115 # type: verbatim
1116 #. type: verbatim
1117 #: ../src/guestfs.pod:473
1118 #, no-wrap
1119 msgid ""
1120 " guestfs_set_selinux (g, 1);\n"
1121 "\n"
1122 msgstr ""
1123
1124 # type: =item
1125 #. type: =item
1126 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1285 ../src/guestfs.pod:1416
1127 #: ../src/guestfs.pod:2466
1128 msgid "2."
1129 msgstr ""
1130
1131 # type: textblock
1132 #. type: textblock
1133 #: ../src/guestfs.pod:477
1134 msgid ""
1135 "After mounting the guest's filesystem(s), load the policy.  This is best "
1136 "done by running the L<load_policy(8)> command in the guest itself:"
1137 msgstr ""
1138
1139 # type: verbatim
1140 #. type: verbatim
1141 #: ../src/guestfs.pod:481
1142 #, no-wrap
1143 msgid ""
1144 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1145 "\n"
1146 msgstr ""
1147
1148 # type: textblock
1149 #. type: textblock
1150 #: ../src/guestfs.pod:483
1151 msgid ""
1152 "(Older versions of C<load_policy> require you to specify the name of the "
1153 "policy file)."
1154 msgstr ""
1155
1156 # type: =item
1157 #. type: =item
1158 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1422
1159 msgid "3."
1160 msgstr ""
1161
1162 # type: textblock
1163 #. type: textblock
1164 #: ../src/guestfs.pod:488
1165 msgid ""
1166 "Optionally, set the security context for the API.  The correct security "
1167 "context to use can only be known by inspecting the guest.  As an example:"
1168 msgstr ""
1169
1170 # type: verbatim
1171 #. type: verbatim
1172 #: ../src/guestfs.pod:492
1173 #, no-wrap
1174 msgid ""
1175 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1176 "\n"
1177 msgstr ""
1178
1179 # type: textblock
1180 #. type: textblock
1181 #: ../src/guestfs.pod:496
1182 msgid "This will work for running commands and editing existing files."
1183 msgstr ""
1184
1185 # type: textblock
1186 #. type: textblock
1187 #: ../src/guestfs.pod:498
1188 msgid ""
1189 "When new files are created, you may need to label them explicitly, for "
1190 "example by running the external command C<restorecon pathname>."
1191 msgstr ""
1192
1193 # type: =head2
1194 #. type: =head2
1195 #: ../src/guestfs.pod:502
1196 msgid "UMASK"
1197 msgstr ""
1198
1199 # type: textblock
1200 #. type: textblock
1201 #: ../src/guestfs.pod:504
1202 msgid ""
1203 "Certain calls are affected by the current file mode creation mask (the "
1204 "\"umask\").  In particular ones which create files or directories, such as "
1205 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1206 "either the default mode that the file is created with or modifies the mode "
1207 "that you supply."
1208 msgstr ""
1209
1210 # type: textblock
1211 #. type: textblock
1212 #: ../src/guestfs.pod:510
1213 msgid ""
1214 "The default umask is C<022>, so files are created with modes such as C<0644> "
1215 "and directories with C<0755>."
1216 msgstr ""
1217
1218 # type: textblock
1219 #. type: textblock
1220 #: ../src/guestfs.pod:513
1221 msgid ""
1222 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1223 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1224 "guestfs_chmod> after creating each file or directory."
1225 msgstr ""
1226
1227 # type: textblock
1228 #. type: textblock
1229 #: ../src/guestfs.pod:517
1230 msgid "For more information about umask, see L<umask(2)>."
1231 msgstr ""
1232
1233 # type: =head1
1234 #. type: =head1
1235 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:765
1236 msgid "ENCRYPTED DISKS"
1237 msgstr ""
1238
1239 # type: textblock
1240 #. type: textblock
1241 #: ../src/guestfs.pod:521
1242 msgid ""
1243 "Libguestfs allows you to access Linux guests which have been encrypted using "
1244 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1245 "standard.  This includes nearly all whole disk encryption systems used by "
1246 "modern Linux guests."
1247 msgstr ""
1248
1249 # type: textblock
1250 #. type: textblock
1251 #: ../src/guestfs.pod:527
1252 msgid ""
1253 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1254 "returns the string C<crypto_LUKS>)."
1255 msgstr ""
1256
1257 # type: textblock
1258 #. type: textblock
1259 #: ../src/guestfs.pod:530
1260 msgid ""
1261 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1262 "will require the passphrase!"
1263 msgstr ""
1264
1265 # type: textblock
1266 #. type: textblock
1267 #: ../src/guestfs.pod:533
1268 msgid ""
1269 "Opening a LUKS device creates a new device mapper device called C</dev/"
1270 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1271 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1272 "from and encrypted to the underlying block device respectively."
1273 msgstr ""
1274
1275 # type: textblock
1276 #. type: textblock
1277 #: ../src/guestfs.pod:539
1278 msgid ""
1279 "LVM volume groups on the device can be made visible by calling L</"
1280 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1281 "(s) can now be mounted in the usual way."
1282 msgstr ""
1283
1284 # type: textblock
1285 #. type: textblock
1286 #: ../src/guestfs.pod:543
1287 msgid ""
1288 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1289 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1290 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1291 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1292 "underlying encrypted block device)."
1293 msgstr ""
1294
1295 # type: =head2
1296 #. type: =head2
1297 #: ../src/guestfs.pod:550
1298 msgid "INSPECTION"
1299 msgstr ""
1300
1301 #. type: textblock
1302 #: ../src/guestfs.pod:552
1303 msgid ""
1304 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1305 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1306 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1307 "version 1.5.3 the most frequently used part of this library has been "
1308 "rewritten in C and moved into the core code)."
1309 msgstr ""
1310
1311 # type: textblock
1312 #. type: textblock
1313 #: ../src/guestfs.pod:559
1314 msgid ""
1315 "Add all disks belonging to the unknown virtual machine and call L</"
1316 "guestfs_launch> in the usual way."
1317 msgstr ""
1318
1319 # type: textblock
1320 #. type: textblock
1321 #: ../src/guestfs.pod:562
1322 msgid ""
1323 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1324 "and certain heuristics, and returns a list of operating systems that were "
1325 "found.  An empty list means none were found.  A single element is the root "
1326 "filesystem of the operating system.  For dual- or multi-boot guests, "
1327 "multiple roots can be returned, each one corresponding to a separate "
1328 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1329 "world of virtualization, but since this scenario can happen, we have built "
1330 "libguestfs to deal with it.)"
1331 msgstr ""
1332
1333 # type: textblock
1334 #. type: textblock
1335 #: ../src/guestfs.pod:571
1336 msgid ""
1337 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1338 "to get additional details about that operating system.  For example, call L</"
1339 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1340 "Windows and Linux-based operating systems respectively."
1341 msgstr ""
1342
1343 # type: textblock
1344 #. type: textblock
1345 #: ../src/guestfs.pod:577
1346 msgid ""
1347 "Un*x-like and Linux-based operating systems usually consist of several "
1348 "filesystems which are mounted at boot time (for example, a separate boot "
1349 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1350 "filesystems correspond to mount points.  Call "
1351 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1352 "hash table like this example:"
1353 msgstr ""
1354
1355 # type: verbatim
1356 #. type: verbatim
1357 #: ../src/guestfs.pod:584
1358 #, no-wrap
1359 msgid ""
1360 " /boot => /dev/sda1\n"
1361 " /     => /dev/vg_guest/lv_root\n"
1362 " /usr  => /dev/vg_guest/lv_usr\n"
1363 "\n"
1364 msgstr ""
1365
1366 # type: textblock
1367 #. type: textblock
1368 #: ../src/guestfs.pod:588
1369 msgid ""
1370 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1371 "filesystems as suggested."
1372 msgstr ""
1373
1374 # type: textblock
1375 #. type: textblock
1376 #: ../src/guestfs.pod:591
1377 msgid ""
1378 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1379 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1380 msgstr ""
1381
1382 # type: textblock
1383 #. type: textblock
1384 #: ../src/guestfs.pod:595
1385 msgid ""
1386 "Inspection currently only works for some common operating systems.  "
1387 "Contributors are welcome to send patches for other operating systems that we "
1388 "currently cannot detect."
1389 msgstr ""
1390
1391 # type: textblock
1392 #. type: textblock
1393 #: ../src/guestfs.pod:599
1394 msgid ""
1395 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1396 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1397 "encrypted devices."
1398 msgstr ""
1399
1400 # type: textblock
1401 #. type: textblock
1402 #: ../src/guestfs.pod:603
1403 msgid ""
1404 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1405 "inspection and caches the results in the guest handle.  Subsequent calls to "
1406 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1407 "read the disks.  If you change the content of the guest disks, you can redo "
1408 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1409 "guestfs_inspect_list_applications> works a little differently from the other "
1410 "calls and does read the disks.  See documentation for that function for "
1411 "details)."
1412 msgstr ""
1413
1414 #. type: =head3
1415 #: ../src/guestfs.pod:612
1416 msgid "INSPECTING INSTALL DISKS"
1417 msgstr ""
1418
1419 #. type: textblock
1420 #: ../src/guestfs.pod:614
1421 msgid ""
1422 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1423 "CDs and more."
1424 msgstr ""
1425
1426 #. type: textblock
1427 #: ../src/guestfs.pod:617
1428 msgid ""
1429 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1430 "system, which currently can be C<installed> (a regular operating system) or "
1431 "C<installer> (some sort of install disk)."
1432 msgstr ""
1433
1434 #. type: textblock
1435 #: ../src/guestfs.pod:621
1436 msgid ""
1437 "Further information is available about the operating system that can be "
1438 "installed using the regular inspection APIs like L</"
1439 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1440 msgstr ""
1441
1442 #. type: textblock
1443 #: ../src/guestfs.pod:626
1444 msgid ""
1445 "Some additional information specific to installer disks is also available "
1446 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1447 "guestfs_inspect_is_multipart> calls."
1448 msgstr ""
1449
1450 # type: =head2
1451 #. type: =head2
1452 #: ../src/guestfs.pod:631
1453 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1454 msgstr ""
1455
1456 # type: textblock
1457 #. type: textblock
1458 #: ../src/guestfs.pod:633
1459 msgid ""
1460 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1461 "ntfs-3g.org/> driver."
1462 msgstr ""
1463
1464 # type: =head3
1465 #. type: =head3
1466 #: ../src/guestfs.pod:636
1467 msgid "DRIVE LETTERS AND PATHS"
1468 msgstr ""
1469
1470 # type: textblock
1471 #. type: textblock
1472 #: ../src/guestfs.pod:638
1473 msgid ""
1474 "DOS and Windows still use drive letters, and the filesystems are always "
1475 "treated as case insensitive by Windows itself, and therefore you might find "
1476 "a Windows configuration file referring to a path like C<c:\\windows"
1477 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1478 "might be referred to as C</WINDOWS/System32>."
1479 msgstr ""
1480
1481 # type: textblock
1482 #. type: textblock
1483 #: ../src/guestfs.pod:644
1484 msgid ""
1485 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1486 "libguestfs to read the appropriate Windows Registry and configuration files, "
1487 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1488 "inspector(1)>)."
1489 msgstr ""
1490
1491 # type: textblock
1492 #. type: textblock
1493 #: ../src/guestfs.pod:649
1494 msgid ""
1495 "Replacing backslash characters with forward slash characters is also outside "
1496 "the scope of libguestfs, but something that you can easily do."
1497 msgstr ""
1498
1499 # type: textblock
1500 #. type: textblock
1501 #: ../src/guestfs.pod:652
1502 msgid ""
1503 "Where we can help is in resolving the case insensitivity of paths.  For "
1504 "this, call L</guestfs_case_sensitive_path>."
1505 msgstr ""
1506
1507 # type: =head3
1508 #. type: =head3
1509 #: ../src/guestfs.pod:655
1510 msgid "ACCESSING THE WINDOWS REGISTRY"
1511 msgstr ""
1512
1513 # type: textblock
1514 #. type: textblock
1515 #: ../src/guestfs.pod:657
1516 msgid ""
1517 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1518 "files, through the library C<hivex> which is part of the libguestfs project "
1519 "although ships as a separate tarball.  You have to locate and download the "
1520 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1521 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1522 "reg(1)> for more help on this issue."
1523 msgstr ""
1524
1525 # type: =head3
1526 #. type: =head3
1527 #: ../src/guestfs.pod:665
1528 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1529 msgstr ""
1530
1531 # type: textblock
1532 #. type: textblock
1533 #: ../src/guestfs.pod:667
1534 msgid ""
1535 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1536 "provide something which looks like a Linux symlink.  The way it tries to do "
1537 "the rewriting is described here:"
1538 msgstr ""
1539
1540 # type: textblock
1541 #. type: textblock
1542 #: ../src/guestfs.pod:671
1543 msgid ""
1544 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1545 "symbolic-links/>"
1546 msgstr ""
1547
1548 # type: textblock
1549 #. type: textblock
1550 #: ../src/guestfs.pod:673
1551 msgid ""
1552 "The essential problem is that ntfs-3g simply does not have enough "
1553 "information to do a correct job.  NTFS links can contain drive letters and "
1554 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1555 "It is almost certainly the case that libguestfs callers should ignore what "
1556 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1557 msgstr ""
1558
1559 # type: textblock
1560 #. type: textblock
1561 #: ../src/guestfs.pod:680
1562 msgid ""
1563 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1564 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1565 "attribute, and read the raw reparse data from that (you can find the format "
1566 "documented in various places around the web)."
1567 msgstr ""
1568
1569 # type: =head3
1570 #. type: =head3
1571 #: ../src/guestfs.pod:685
1572 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1573 msgstr ""
1574
1575 # type: textblock
1576 #. type: textblock
1577 #: ../src/guestfs.pod:687
1578 msgid ""
1579 "There are other useful extended attributes that can be read from ntfs-3g "
1580 "filesystems (using L</guestfs_getxattr>).  See:"
1581 msgstr ""
1582
1583 # type: textblock
1584 #. type: textblock
1585 #: ../src/guestfs.pod:690
1586 msgid ""
1587 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1588 msgstr ""
1589
1590 # type: =head2
1591 #. type: =head2
1592 #: ../src/guestfs.pod:692
1593 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1594 msgstr ""
1595
1596 # type: textblock
1597 #. type: textblock
1598 #: ../src/guestfs.pod:694
1599 msgid ""
1600 "Although we don't want to discourage you from using the C API, we will "
1601 "mention here that the same API is also available in other languages."
1602 msgstr ""
1603
1604 #. type: textblock
1605 #: ../src/guestfs.pod:697
1606 msgid ""
1607 "The API is broadly identical in all supported languages.  This means that "
1608 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1609 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1610 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1611 "each language."
1612 msgstr ""
1613
1614 # type: textblock
1615 #. type: textblock
1616 #: ../src/guestfs.pod:703
1617 msgid ""
1618 "Error messages are automatically transformed into exceptions if the language "
1619 "supports it."
1620 msgstr ""
1621
1622 # type: textblock
1623 #. type: textblock
1624 #: ../src/guestfs.pod:706
1625 msgid ""
1626 "We don't try to \"object orientify\" parts of the API in OO languages, "
1627 "although contributors are welcome to write higher level APIs above what we "
1628 "provide in their favourite languages if they wish."
1629 msgstr ""
1630
1631 # type: =item
1632 #. type: =item
1633 #: ../src/guestfs.pod:712
1634 msgid "B<C++>"
1635 msgstr ""
1636
1637 # type: textblock
1638 #. type: textblock
1639 #: ../src/guestfs.pod:714
1640 msgid ""
1641 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1642 "identical to the C API.  C++ classes and exceptions are not used."
1643 msgstr ""
1644
1645 # type: =item
1646 #. type: =item
1647 #: ../src/guestfs.pod:718
1648 msgid "B<C#>"
1649 msgstr ""
1650
1651 # type: textblock
1652 #. type: textblock
1653 #: ../src/guestfs.pod:720
1654 msgid ""
1655 "The C# bindings are highly experimental.  Please read the warnings at the "
1656 "top of C<csharp/Libguestfs.cs>."
1657 msgstr ""
1658
1659 # type: =item
1660 #. type: =item
1661 #: ../src/guestfs.pod:723
1662 msgid "B<Haskell>"
1663 msgstr ""
1664
1665 # type: textblock
1666 #. type: textblock
1667 #: ../src/guestfs.pod:725
1668 msgid ""
1669 "This is the only language binding that is working but incomplete.  Only "
1670 "calls which return simple integers have been bound in Haskell, and we are "
1671 "looking for help to complete this binding."
1672 msgstr ""
1673
1674 # type: =item
1675 #. type: =item
1676 #: ../src/guestfs.pod:729
1677 msgid "B<Java>"
1678 msgstr ""
1679
1680 # type: textblock
1681 #. type: textblock
1682 #: ../src/guestfs.pod:731
1683 msgid ""
1684 "Full documentation is contained in the Javadoc which is distributed with "
1685 "libguestfs."
1686 msgstr ""
1687
1688 # type: =item
1689 #. type: =item
1690 #: ../src/guestfs.pod:734
1691 msgid "B<OCaml>"
1692 msgstr ""
1693
1694 #. type: textblock
1695 #: ../src/guestfs.pod:736
1696 msgid "See L<guestfs-ocaml(3)>."
1697 msgstr ""
1698
1699 # type: =item
1700 #. type: =item
1701 #: ../src/guestfs.pod:738
1702 msgid "B<Perl>"
1703 msgstr ""
1704
1705 #. type: textblock
1706 #: ../src/guestfs.pod:740
1707 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1708 msgstr ""
1709
1710 # type: =item
1711 #. type: =item
1712 #: ../src/guestfs.pod:742
1713 msgid "B<PHP>"
1714 msgstr ""
1715
1716 # type: textblock
1717 #. type: textblock
1718 #: ../src/guestfs.pod:744
1719 msgid ""
1720 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1721 "the php-libguestfs package for your distribution."
1722 msgstr ""
1723
1724 # type: textblock
1725 #. type: textblock
1726 #: ../src/guestfs.pod:747
1727 msgid "The PHP binding only works correctly on 64 bit machines."
1728 msgstr ""
1729
1730 # type: =item
1731 #. type: =item
1732 #: ../src/guestfs.pod:749
1733 msgid "B<Python>"
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../src/guestfs.pod:751
1738 msgid "See L<guestfs-python(3)>."
1739 msgstr ""
1740
1741 # type: =item
1742 #. type: =item
1743 #: ../src/guestfs.pod:753
1744 msgid "B<Ruby>"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../src/guestfs.pod:755
1749 msgid "See L<guestfs-ruby(3)>."
1750 msgstr ""
1751
1752 # type: =item
1753 #. type: =item
1754 #: ../src/guestfs.pod:757
1755 msgid "B<shell scripts>"
1756 msgstr ""
1757
1758 #. type: textblock
1759 #: ../src/guestfs.pod:759
1760 msgid "See L<guestfish(1)>."
1761 msgstr ""
1762
1763 # type: =head2
1764 #. type: =head2
1765 #: ../src/guestfs.pod:763
1766 msgid "LIBGUESTFS GOTCHAS"
1767 msgstr ""
1768
1769 # type: textblock
1770 #. type: textblock
1771 #: ../src/guestfs.pod:765
1772 msgid ""
1773 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1774 "system [...] that works in the way it is documented but is counterintuitive "
1775 "and almost invites mistakes.\""
1776 msgstr ""
1777
1778 # type: textblock
1779 #. type: textblock
1780 #: ../src/guestfs.pod:769
1781 msgid ""
1782 "Since we developed libguestfs and the associated tools, there are several "
1783 "things we would have designed differently, but are now stuck with for "
1784 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1785 "release, you can expect these to change.  Beware of them."
1786 msgstr ""
1787
1788 # type: =item
1789 #. type: =item
1790 #: ../src/guestfs.pod:777
1791 msgid "Autosync / forgetting to sync."
1792 msgstr ""
1793
1794 # type: textblock
1795 #. type: textblock
1796 #: ../src/guestfs.pod:779
1797 msgid ""
1798 "When modifying a filesystem from C or another language, you B<must> unmount "
1799 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1800 "libguestfs handle.  You can also call:"
1801 msgstr ""
1802
1803 # type: verbatim
1804 #. type: verbatim
1805 #: ../src/guestfs.pod:783
1806 #, no-wrap
1807 msgid ""
1808 " guestfs_set_autosync (g, 1);\n"
1809 "\n"
1810 msgstr ""
1811
1812 # type: textblock
1813 #. type: textblock
1814 #: ../src/guestfs.pod:785
1815 msgid ""
1816 "to have the unmount/sync done automatically for you when the handle 'g' is "
1817 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1818 msgstr ""
1819
1820 # type: textblock
1821 #. type: textblock
1822 #: ../src/guestfs.pod:789
1823 msgid ""
1824 "If you forget to do this, then it is entirely possible that your changes "
1825 "won't be written out, or will be partially written, or (very rarely) that "
1826 "you'll get disk corruption."
1827 msgstr ""
1828
1829 # type: textblock
1830 #. type: textblock
1831 #: ../src/guestfs.pod:793
1832 msgid ""
1833 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1834 "guestfish scripts that forget to sync will work just fine, which can make "
1835 "this very puzzling if you are trying to debug a problem."
1836 msgstr ""
1837
1838 # type: textblock
1839 #. type: textblock
1840 #: ../src/guestfs.pod:797
1841 msgid ""
1842 "Update: Autosync is enabled by default for all API users starting from "
1843 "libguestfs 1.5.24."
1844 msgstr ""
1845
1846 # type: =item
1847 #. type: =item
1848 #: ../src/guestfs.pod:800
1849 msgid "Mount option C<-o sync> should not be the default."
1850 msgstr ""
1851
1852 # type: textblock
1853 #. type: textblock
1854 #: ../src/guestfs.pod:802
1855 msgid ""
1856 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1857 "However C<-o sync> does not add any reliability benefit, but does have a "
1858 "very large performance impact."
1859 msgstr ""
1860
1861 # type: textblock
1862 #. type: textblock
1863 #: ../src/guestfs.pod:806
1864 msgid ""
1865 "The work around is to use L</guestfs_mount_options> and set the mount "
1866 "options that you actually want to use."
1867 msgstr ""
1868
1869 # type: =item
1870 #. type: =item
1871 #: ../src/guestfs.pod:809
1872 msgid "Read-only should be the default."
1873 msgstr ""
1874
1875 # type: textblock
1876 #. type: textblock
1877 #: ../src/guestfs.pod:811
1878 msgid ""
1879 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1880 "specify I<--rw> if you want to make changes to the image."
1881 msgstr ""
1882
1883 # type: textblock
1884 #. type: textblock
1885 #: ../src/guestfs.pod:814
1886 msgid "This would reduce the potential to corrupt live VM images."
1887 msgstr ""
1888
1889 # type: textblock
1890 #. type: textblock
1891 #: ../src/guestfs.pod:816
1892 msgid ""
1893 "Note that many filesystems change the disk when you just mount and unmount, "
1894 "even if you didn't perform any writes.  You need to use L</"
1895 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1896 msgstr ""
1897
1898 # type: =item
1899 #. type: =item
1900 #: ../src/guestfs.pod:820
1901 msgid "guestfish command line is hard to use."
1902 msgstr ""
1903
1904 # type: textblock
1905 #. type: textblock
1906 #: ../src/guestfs.pod:822
1907 msgid ""
1908 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1909 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1910 "exist, so it fails.  In earlier versions of guestfish the error message was "
1911 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1912 "we should have used C<guestfish -c command> to run commands."
1913 msgstr ""
1914
1915 # type: =item
1916 #. type: =item
1917 #: ../src/guestfs.pod:829
1918 msgid "guestfish megabyte modifiers don't work right on all commands"
1919 msgstr ""
1920
1921 # type: textblock
1922 #. type: textblock
1923 #: ../src/guestfs.pod:831
1924 msgid ""
1925 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1926 "other modifiers).  What guestfish actually does is to multiply the number "
1927 "part by the modifier part and pass the result to the C API.  However this "
1928 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1929 "expecting some other unit (eg. megabytes)."
1930 msgstr ""
1931
1932 # type: textblock
1933 #. type: textblock
1934 #: ../src/guestfs.pod:838
1935 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1936 msgstr ""
1937
1938 # type: verbatim
1939 #. type: verbatim
1940 #: ../src/guestfs.pod:840
1941 #, no-wrap
1942 msgid ""
1943 " lvcreate LV VG 100M\n"
1944 "\n"
1945 msgstr ""
1946
1947 # type: textblock
1948 #. type: textblock
1949 #: ../src/guestfs.pod:842
1950 msgid ""
1951 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1952 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1953 "megabytes * megabytes) logical volume.  The error message you get from this "
1954 "is also a little obscure."
1955 msgstr ""
1956
1957 # type: textblock
1958 #. type: textblock
1959 #: ../src/guestfs.pod:847
1960 msgid ""
1961 "This could be fixed in the generator by specially marking parameters and "
1962 "return values which take bytes or other units."
1963 msgstr ""
1964
1965 # type: =item
1966 #. type: =item
1967 #: ../src/guestfs.pod:850
1968 msgid "Ambiguity between devices and paths"
1969 msgstr ""
1970
1971 # type: textblock
1972 #. type: textblock
1973 #: ../src/guestfs.pod:852
1974 msgid ""
1975 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1976 "sdb2>) and a similar pathname.  A file might just happen to be called "
1977 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1978 msgstr ""
1979
1980 # type: textblock
1981 #. type: textblock
1982 #: ../src/guestfs.pod:857
1983 msgid ""
1984 "In the current API we usually resolve this ambiguity by having two separate "
1985 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1986 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1987 "detecting if the path supplied begins with C</dev/>."
1988 msgstr ""
1989
1990 # type: textblock
1991 #. type: textblock
1992 #: ../src/guestfs.pod:863
1993 msgid ""
1994 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1995 "make paths/devices into structured names.  One way to do this would be to "
1996 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1997 "aspect of grub.  Another way would be to use a structured type, equivalent "
1998 "to this OCaml type:"
1999 msgstr ""
2000
2001 # type: verbatim
2002 #. type: verbatim
2003 #: ../src/guestfs.pod:869
2004 #, no-wrap
2005 msgid ""
2006 " type path = Path of string | Device of int | Partition of int * int\n"
2007 "\n"
2008 msgstr ""
2009
2010 # type: textblock
2011 #. type: textblock
2012 #: ../src/guestfs.pod:871
2013 msgid "which would allow you to pass arguments like:"
2014 msgstr ""
2015
2016 # type: verbatim
2017 #. type: verbatim
2018 #: ../src/guestfs.pod:873
2019 #, no-wrap
2020 msgid ""
2021 " Path \"/foo/bar\"\n"
2022 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2023 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2024 " Path \"/dev/sdb2\"    (* not a device *)\n"
2025 "\n"
2026 msgstr ""
2027
2028 # type: textblock
2029 #. type: textblock
2030 #: ../src/guestfs.pod:878
2031 msgid ""
2032 "As you can see there are still problems to resolve even with this "
2033 "representation.  Also consider how it might work in guestfish."
2034 msgstr ""
2035
2036 # type: =head2
2037 #. type: =head2
2038 #: ../src/guestfs.pod:883
2039 msgid "PROTOCOL LIMITS"
2040 msgstr ""
2041
2042 # type: textblock
2043 #. type: textblock
2044 #: ../src/guestfs.pod:885
2045 msgid ""
2046 "Internally libguestfs uses a message-based protocol to pass API calls and "
2047 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
2048 "plenty more detail about this).  The maximum message size used by the "
2049 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
2050 "aware of this limit.  The API calls which may be affected are individually "
2051 "documented, with a link back to this section of the documentation."
2052 msgstr ""
2053
2054 # type: textblock
2055 #. type: textblock
2056 #: ../src/guestfs.pod:893
2057 msgid ""
2058 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
2059 "a simple string.  Because this string is at some point internally encoded as "
2060 "a message, the maximum size that it can return is slightly under 4 MB.  If "
2061 "the requested file is larger than this then you will get an error."
2062 msgstr ""
2063
2064 # type: textblock
2065 #. type: textblock
2066 #: ../src/guestfs.pod:899
2067 msgid ""
2068 "In order to transfer large files into and out of the guest filesystem, you "
2069 "need to use particular calls that support this.  The sections L</UPLOADING> "
2070 "and L</DOWNLOADING> document how to do this."
2071 msgstr ""
2072
2073 # type: textblock
2074 #. type: textblock
2075 #: ../src/guestfs.pod:903
2076 msgid ""
2077 "You might also consider mounting the disk image using our FUSE filesystem "
2078 "support (L<guestmount(1)>)."
2079 msgstr ""
2080
2081 # type: =head2
2082 #. type: =head2
2083 #: ../src/guestfs.pod:906
2084 msgid "KEYS AND PASSPHRASES"
2085 msgstr ""
2086
2087 # type: textblock
2088 #. type: textblock
2089 #: ../src/guestfs.pod:908
2090 msgid ""
2091 "Certain libguestfs calls take a parameter that contains sensitive key "
2092 "material, passed in as a C string."
2093 msgstr ""
2094
2095 # type: textblock
2096 #. type: textblock
2097 #: ../src/guestfs.pod:911
2098 msgid ""
2099 "In the future we would hope to change the libguestfs implementation so that "
2100 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2101 "swap.  However this is I<not> done at the moment, because of the complexity "
2102 "of such an implementation."
2103 msgstr ""
2104
2105 # type: textblock
2106 #. type: textblock
2107 #: ../src/guestfs.pod:916
2108 msgid ""
2109 "Therefore you should be aware that any key parameter you pass to libguestfs "
2110 "might end up being written out to the swap partition.  If this is a concern, "
2111 "scrub the swap partition or don't use libguestfs on encrypted devices."
2112 msgstr ""
2113
2114 # type: =head1
2115 #. type: =head2
2116 #: ../src/guestfs.pod:921
2117 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2118 msgstr ""
2119
2120 # type: textblock
2121 #. type: textblock
2122 #: ../src/guestfs.pod:923
2123 msgid ""
2124 "All high-level libguestfs actions are synchronous.  If you want to use "
2125 "libguestfs asynchronously then you must create a thread."
2126 msgstr ""
2127
2128 # type: textblock
2129 #. type: textblock
2130 #: ../src/guestfs.pod:926
2131 msgid ""
2132 "Only use the handle from a single thread.  Either use the handle exclusively "
2133 "from one thread, or provide your own mutex so that two threads cannot issue "
2134 "calls on the same handle at the same time."
2135 msgstr ""
2136
2137 # type: textblock
2138 #. type: textblock
2139 #: ../src/guestfs.pod:930
2140 msgid ""
2141 "See the graphical program guestfs-browser for one possible architecture for "
2142 "multithreaded programs using libvirt and libguestfs."
2143 msgstr ""
2144
2145 # type: =head1
2146 #. type: =head2
2147 #: ../src/guestfs.pod:933
2148 msgid "PATH"
2149 msgstr ""
2150
2151 #. type: textblock
2152 #: ../src/guestfs.pod:935
2153 msgid ""
2154 "Libguestfs needs a supermin appliance, which it finds by looking along an "
2155 "internal path."
2156 msgstr ""
2157
2158 # type: textblock
2159 #. type: textblock
2160 #: ../src/guestfs.pod:938
2161 msgid ""
2162 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2163 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2164 msgstr ""
2165
2166 # type: textblock
2167 #. type: textblock
2168 #: ../src/guestfs.pod:941
2169 msgid ""
2170 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2171 "to change the directories that libguestfs will search in.  The value is a "
2172 "colon-separated list of paths.  The current directory is I<not> searched "
2173 "unless the path contains an empty element or C<.>.  For example "
2174 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2175 "then C</usr/lib/guestfs>."
2176 msgstr ""
2177
2178 # type: =head1
2179 #. type: =head2
2180 #: ../src/guestfs.pod:948
2181 msgid "QEMU WRAPPERS"
2182 msgstr ""
2183
2184 # type: textblock
2185 #. type: textblock
2186 #: ../src/guestfs.pod:950
2187 msgid ""
2188 "If you want to compile your own qemu, run qemu from a non-standard location, "
2189 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2190 "around qemu."
2191 msgstr ""
2192
2193 # type: textblock
2194 #. type: textblock
2195 #: ../src/guestfs.pod:954
2196 msgid ""
2197 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2198 "last command in the shell script (so that qemu replaces the shell and "
2199 "becomes the direct child of the libguestfs-using program).  If you don't do "
2200 "this, then the qemu process won't be cleaned up correctly."
2201 msgstr ""
2202
2203 # type: textblock
2204 #. type: textblock
2205 #: ../src/guestfs.pod:959
2206 msgid ""
2207 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2208 "source:"
2209 msgstr ""
2210
2211 # type: verbatim
2212 #. type: verbatim
2213 #: ../src/guestfs.pod:962
2214 #, no-wrap
2215 msgid ""
2216 " #!/bin/sh -\n"
2217 " qemudir=/home/rjones/d/qemu\n"
2218 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2219 "\n"
2220 msgstr ""
2221
2222 # type: textblock
2223 #. type: textblock
2224 #: ../src/guestfs.pod:966
2225 msgid ""
2226 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2227 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2228 "example:"
2229 msgstr ""
2230
2231 # type: verbatim
2232 #. type: verbatim
2233 #: ../src/guestfs.pod:970
2234 #, no-wrap
2235 msgid ""
2236 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2237 "\n"
2238 msgstr ""
2239
2240 # type: textblock
2241 #. type: textblock
2242 #: ../src/guestfs.pod:972
2243 msgid ""
2244 "Note that libguestfs also calls qemu with the -help and -version options in "
2245 "order to determine features."
2246 msgstr ""
2247
2248 #. type: =head2
2249 #: ../src/guestfs.pod:975
2250 msgid "ATTACHING TO RUNNING DAEMONS"
2251 msgstr ""
2252
2253 #. type: textblock
2254 #: ../src/guestfs.pod:977
2255 msgid ""
2256 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2257 "babies.  Use with caution."
2258 msgstr ""
2259
2260 #. type: textblock
2261 #: ../src/guestfs.pod:980
2262 msgid ""
2263 "I<Note (2):> This section explains how to attach to a running daemon from a "
2264 "low level perspective.  For most users, simply using virt tools such as "
2265 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2266 msgstr ""
2267
2268 #. type: =head3
2269 #: ../src/guestfs.pod:984
2270 msgid "Using guestfs_set_attach_method"
2271 msgstr ""
2272
2273 #. type: textblock
2274 #: ../src/guestfs.pod:986
2275 msgid ""
2276 "By calling L</guestfs_set_attach_method> you can change how the library "
2277 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2278 "ARCHITECTURE> for some background)."
2279 msgstr ""
2280
2281 #. type: textblock
2282 #: ../src/guestfs.pod:990
2283 msgid ""
2284 "The normal attach method is C<appliance>, where a small appliance is created "
2285 "containing the daemon, and then the library connects to this."
2286 msgstr ""
2287
2288 #. type: textblock
2289 #: ../src/guestfs.pod:993
2290 msgid ""
2291 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2292 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2293 "daemon over the Unix domain socket."
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../src/guestfs.pod:997
2298 msgid ""
2299 "The normal use for this is to connect to a running virtual machine that "
2300 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2301 "files inside the live virtual machine."
2302 msgstr ""
2303
2304 #. type: =head3
2305 #: ../src/guestfs.pod:1001
2306 msgid "Using guestfs_add_domain with live flag"
2307 msgstr ""
2308
2309 #. type: textblock
2310 #: ../src/guestfs.pod:1003
2311 msgid ""
2312 "L</guestfs_add_domain> provides some help for getting the correct attach "
2313 "method.  If you pass the C<live> option to this function, then (if the "
2314 "virtual machine is running) it will examine the libvirt XML looking for a "
2315 "virtio-serial channel to connect to:"
2316 msgstr ""
2317
2318 #. type: verbatim
2319 #: ../src/guestfs.pod:1009
2320 #, no-wrap
2321 msgid ""
2322 " <domain>\n"
2323 "   ...\n"
2324 "   <devices>\n"
2325 "     ...\n"
2326 "     <channel type='unix'>\n"
2327 "       <source mode='bind' path='/path/to/socket'/>\n"
2328 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2329 "     </channel>\n"
2330 "     ...\n"
2331 "   </devices>\n"
2332 " </domain>\n"
2333 "\n"
2334 msgstr ""
2335
2336 #. type: textblock
2337 #: ../src/guestfs.pod:1021
2338 msgid ""
2339 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2340 "method to C<unix:/path/to/socket>."
2341 msgstr ""
2342
2343 #. type: textblock
2344 #: ../src/guestfs.pod:1024
2345 msgid ""
2346 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2347 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2348 "to attach to and modify live virtual machines."
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../src/guestfs.pod:1028
2353 msgid ""
2354 "The virtual machine needs to have been set up beforehand so that it has the "
2355 "virtio-serial channel and so that guestfsd is running inside it."
2356 msgstr ""
2357
2358 # type: =head2
2359 #. type: =head2
2360 #: ../src/guestfs.pod:1032
2361 msgid "ABI GUARANTEE"
2362 msgstr ""
2363
2364 # type: textblock
2365 #. type: textblock
2366 #: ../src/guestfs.pod:1034
2367 msgid ""
2368 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2369 "actions as outlined in this section.  Although we will deprecate some "
2370 "actions, for example if they get replaced by newer calls, we will keep the "
2371 "old actions forever.  This allows you the developer to program in confidence "
2372 "against the libguestfs API."
2373 msgstr ""
2374
2375 # type: =head1
2376 #. type: =head2
2377 #: ../src/guestfs.pod:1040
2378 msgid "BLOCK DEVICE NAMING"
2379 msgstr ""
2380
2381 # type: textblock
2382 #. type: textblock
2383 #: ../src/guestfs.pod:1042
2384 msgid ""
2385 "In the kernel there is now quite a profusion of schemata for naming block "
2386 "devices (in this context, by I<block device> I mean a physical or virtual "
2387 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2388 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2389 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2390 "for the old IDE driver (particularly for SATA devices) those devices also "
2391 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2392 "paravirtualized drivers.  This has created several different naming systems, "
2393 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2394 msgstr ""
2395
2396 # type: textblock
2397 #. type: textblock
2398 #: ../src/guestfs.pod:1054
2399 msgid ""
2400 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2401 "Linux kernel to access block devices.  We can run a variety of appliances "
2402 "based on a variety of Linux kernels."
2403 msgstr ""
2404
2405 # type: textblock
2406 #. type: textblock
2407 #: ../src/guestfs.pod:1058
2408 msgid ""
2409 "This causes a problem for libguestfs because many API calls use device or "
2410 "partition names.  Working scripts and the recipe (example) scripts that we "
2411 "make available over the internet could fail if the naming scheme changes."
2412 msgstr ""
2413
2414 # type: textblock
2415 #. type: textblock
2416 #: ../src/guestfs.pod:1063
2417 msgid ""
2418 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2419 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2420 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2421 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2422 msgstr ""
2423
2424 # type: textblock
2425 #. type: textblock
2426 #: ../src/guestfs.pod:1069
2427 msgid ""
2428 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2429 "L</guestfs_list_partitions> and similar calls return the true names of the "
2430 "devices and partitions as known to the appliance."
2431 msgstr ""
2432
2433 # type: =head2
2434 #. type: =head3
2435 #: ../src/guestfs.pod:1074
2436 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2437 msgstr ""
2438
2439 # type: textblock
2440 #. type: textblock
2441 #: ../src/guestfs.pod:1076
2442 msgid ""
2443 "Usually this translation is transparent.  However in some (very rare)  cases "
2444 "you may need to know the exact algorithm.  Such cases include where you use "
2445 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2446 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2447 msgstr ""
2448
2449 # type: textblock
2450 #. type: textblock
2451 #: ../src/guestfs.pod:1082
2452 msgid ""
2453 "The algorithm is applied only to I<parameters> which are known to be either "
2454 "device or partition names.  Return values from functions such as L</"
2455 "guestfs_list_devices> are never changed."
2456 msgstr ""
2457
2458 # type: textblock
2459 #. type: textblock
2460 #: ../src/guestfs.pod:1090
2461 msgid "Is the string a parameter which is a device or partition name?"
2462 msgstr ""
2463
2464 # type: textblock
2465 #. type: textblock
2466 #: ../src/guestfs.pod:1094
2467 msgid "Does the string begin with C</dev/sd>?"
2468 msgstr ""
2469
2470 # type: textblock
2471 #. type: textblock
2472 #: ../src/guestfs.pod:1098
2473 msgid ""
2474 "Does the named device exist? If so, we use that device.  However if I<not> "
2475 "then we continue with this algorithm."
2476 msgstr ""
2477
2478 # type: textblock
2479 #. type: textblock
2480 #: ../src/guestfs.pod:1103
2481 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2482 msgstr ""
2483
2484 # type: textblock
2485 #. type: textblock
2486 #: ../src/guestfs.pod:1105
2487 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2488 msgstr ""
2489
2490 # type: textblock
2491 #. type: textblock
2492 #: ../src/guestfs.pod:1107
2493 msgid "If that named device exists, use it.  If not, continue."
2494 msgstr ""
2495
2496 # type: textblock
2497 #. type: textblock
2498 #: ../src/guestfs.pod:1111
2499 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2500 msgstr ""
2501
2502 # type: textblock
2503 #. type: textblock
2504 #: ../src/guestfs.pod:1113
2505 msgid "If that named device exists, use it.  If not, return an error."
2506 msgstr ""
2507
2508 # type: =head3
2509 #. type: =head3
2510 #: ../src/guestfs.pod:1117
2511 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2512 msgstr ""
2513
2514 # type: textblock
2515 #. type: textblock
2516 #: ../src/guestfs.pod:1119
2517 msgid ""
2518 "Although the standard naming scheme and automatic translation is useful for "
2519 "simple programs and guestfish scripts, for larger programs it is best not to "
2520 "rely on this mechanism."
2521 msgstr ""
2522
2523 # type: textblock
2524 #. type: textblock
2525 #: ../src/guestfs.pod:1123
2526 msgid ""
2527 "Where possible for maximum future portability programs using libguestfs "
2528 "should use these future-proof techniques:"
2529 msgstr ""
2530
2531 # type: textblock
2532 #. type: textblock
2533 #: ../src/guestfs.pod:1130
2534 msgid ""
2535 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2536 "device names, and then use those names directly."
2537 msgstr ""
2538
2539 # type: textblock
2540 #. type: textblock
2541 #: ../src/guestfs.pod:1133
2542 msgid ""
2543 "Since those device names exist by definition, they will never be translated."
2544 msgstr ""
2545
2546 # type: textblock
2547 #. type: textblock
2548 #: ../src/guestfs.pod:1138
2549 msgid ""
2550 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2551 "filesystem labels."
2552 msgstr ""
2553
2554 # type: =head1
2555 #. type: =head1
2556 #: ../src/guestfs.pod:1143
2557 msgid "SECURITY"
2558 msgstr ""
2559
2560 # type: textblock
2561 #. type: textblock
2562 #: ../src/guestfs.pod:1145
2563 msgid ""
2564 "This section discusses security implications of using libguestfs, "
2565 "particularly with untrusted or malicious guests or disk images."
2566 msgstr ""
2567
2568 # type: =head2
2569 #. type: =head2
2570 #: ../src/guestfs.pod:1148
2571 msgid "GENERAL SECURITY CONSIDERATIONS"
2572 msgstr ""
2573
2574 # type: textblock
2575 #. type: textblock
2576 #: ../src/guestfs.pod:1150
2577 msgid ""
2578 "Be careful with any files or data that you download from a guest (by "
2579 "\"download\" we mean not just the L</guestfs_download> command but any "
2580 "command that reads files, filenames, directories or anything else from a "
2581 "disk image).  An attacker could manipulate the data to fool your program "
2582 "into doing the wrong thing.  Consider cases such as:"
2583 msgstr ""
2584
2585 # type: textblock
2586 #. type: textblock
2587 #: ../src/guestfs.pod:1160
2588 msgid "the data (file etc) not being present"
2589 msgstr ""
2590
2591 # type: textblock
2592 #. type: textblock
2593 #: ../src/guestfs.pod:1164
2594 msgid "being present but empty"
2595 msgstr ""
2596
2597 # type: textblock
2598 #. type: textblock
2599 #: ../src/guestfs.pod:1168
2600 msgid "being much larger than normal"
2601 msgstr ""
2602
2603 # type: textblock
2604 #. type: textblock
2605 #: ../src/guestfs.pod:1172
2606 msgid "containing arbitrary 8 bit data"
2607 msgstr ""
2608
2609 # type: textblock
2610 #. type: textblock
2611 #: ../src/guestfs.pod:1176
2612 msgid "being in an unexpected character encoding"
2613 msgstr ""
2614
2615 # type: textblock
2616 #. type: textblock
2617 #: ../src/guestfs.pod:1180
2618 msgid "containing homoglyphs."
2619 msgstr ""
2620
2621 # type: =head2
2622 #. type: =head2
2623 #: ../src/guestfs.pod:1184
2624 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2625 msgstr ""
2626
2627 # type: textblock
2628 #. type: textblock
2629 #: ../src/guestfs.pod:1186
2630 msgid ""
2631 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2632 "(VFS) module can sometimes be escalated into exploits by deliberately "
2633 "creating a malicious, malformed filesystem.  These exploits are very severe "
2634 "for two reasons.  Firstly there are very many filesystem drivers in the "
2635 "kernel, and many of them are infrequently used and not much developer "
2636 "attention has been paid to the code.  Linux userspace helps potential "
2637 "crackers by detecting the filesystem type and automatically choosing the "
2638 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2639 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2640 "exploit (worse in some ways), giving immediate and total access to the "
2641 "system right down to the hardware level."
2642 msgstr ""
2643
2644 # type: textblock
2645 #. type: textblock
2646 #: ../src/guestfs.pod:1199
2647 msgid ""
2648 "That explains why you should never mount a filesystem from an untrusted "
2649 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2650 "inside a qemu virtual machine, usually running as a non-root user.  The "
2651 "attacker would need to write a filesystem which first exploited the kernel, "
2652 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2653 "the libguestfs protocol, and finally to be as serious as the host kernel "
2654 "exploit it would need to escalate its privileges to root.  This multi-step "
2655 "escalation, performed by a static piece of data, is thought to be extremely "
2656 "hard to do, although we never say 'never' about security issues."
2657 msgstr ""
2658
2659 # type: textblock
2660 #. type: textblock
2661 #: ../src/guestfs.pod:1210
2662 msgid ""
2663 "In any case callers can reduce the attack surface by forcing the filesystem "
2664 "type when mounting (use L</guestfs_mount_vfs>)."
2665 msgstr ""
2666
2667 # type: =head2
2668 #. type: =head2
2669 #: ../src/guestfs.pod:1213
2670 msgid "PROTOCOL SECURITY"
2671 msgstr ""
2672
2673 # type: textblock
2674 #. type: textblock
2675 #: ../src/guestfs.pod:1215
2676 msgid ""
2677 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2678 "defined upper message size.  However a program that uses libguestfs must "
2679 "also take care - for example you can write a program that downloads a binary "
2680 "from a disk image and executes it locally, and no amount of protocol "
2681 "security will save you from the consequences."
2682 msgstr ""
2683
2684 # type: =head2
2685 #. type: =head2
2686 #: ../src/guestfs.pod:1221
2687 msgid "INSPECTION SECURITY"
2688 msgstr ""
2689
2690 # type: textblock
2691 #. type: textblock
2692 #: ../src/guestfs.pod:1223
2693 msgid ""
2694 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2695 "directly from the guest, and these could contain any 8 bit data.  Callers "
2696 "should be careful to escape these before printing them to a structured file "
2697 "(for example, use HTML escaping if creating a web page)."
2698 msgstr ""
2699
2700 # type: textblock
2701 #. type: textblock
2702 #: ../src/guestfs.pod:1229
2703 msgid ""
2704 "Guest configuration may be altered in unusual ways by the administrator of "
2705 "the virtual machine, and may not reflect reality (particularly for untrusted "
2706 "or actively malicious guests).  For example we parse the hostname from "
2707 "configuration files like C</etc/sysconfig/network> that we find in the "
2708 "guest, but the guest administrator can easily manipulate these files to "
2709 "provide the wrong hostname."
2710 msgstr ""
2711
2712 # type: textblock
2713 #. type: textblock
2714 #: ../src/guestfs.pod:1237
2715 msgid ""
2716 "The inspection API parses guest configuration using two external libraries: "
2717 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2718 "designed to be robust in the face of malicious data, although denial of "
2719 "service attacks are still possible, for example with oversized configuration "
2720 "files."
2721 msgstr ""
2722
2723 # type: =head2
2724 #. type: =head2
2725 #: ../src/guestfs.pod:1243
2726 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2727 msgstr ""
2728
2729 # type: textblock
2730 #. type: textblock
2731 #: ../src/guestfs.pod:1245
2732 msgid ""
2733 "Be very cautious about running commands from the guest.  By running a "
2734 "command in the guest, you are giving CPU time to a binary that you do not "
2735 "control, under the same user account as the library, albeit wrapped in qemu "
2736 "virtualization.  More information and alternatives can be found in the "
2737 "section L</RUNNING COMMANDS>."
2738 msgstr ""
2739
2740 # type: =head2
2741 #. type: =head2
2742 #: ../src/guestfs.pod:1251
2743 msgid "CVE-2010-3851"
2744 msgstr ""
2745
2746 # type: textblock
2747 #. type: textblock
2748 #: ../src/guestfs.pod:1253
2749 msgid "https://bugzilla.redhat.com/642934"
2750 msgstr ""
2751
2752 # type: textblock
2753 #. type: textblock
2754 #: ../src/guestfs.pod:1255
2755 msgid ""
2756 "This security bug concerns the automatic disk format detection that qemu "
2757 "does on disk images."
2758 msgstr ""
2759
2760 # type: textblock
2761 #. type: textblock
2762 #: ../src/guestfs.pod:1258
2763 msgid ""
2764 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2765 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2766 "for one of the known headers, and if none is found then assuming the disk "
2767 "image must be raw."
2768 msgstr ""
2769
2770 # type: textblock
2771 #. type: textblock
2772 #: ../src/guestfs.pod:1263
2773 msgid ""
2774 "This allows a guest which has been given a raw disk image to write some "
2775 "other header.  At next boot (or when the disk image is accessed by "
2776 "libguestfs) qemu would do autodetection and think the disk image format was, "
2777 "say, qcow2 based on the header written by the guest."
2778 msgstr ""
2779
2780 # type: textblock
2781 #. type: textblock
2782 #: ../src/guestfs.pod:1268
2783 msgid ""
2784 "This in itself would not be a problem, but qcow2 offers many features, one "
2785 "of which is to allow a disk image to refer to another image (called the "
2786 "\"backing disk\").  It does this by placing the path to the backing disk "
2787 "into the qcow2 header.  This path is not validated and could point to any "
2788 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2789 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2790 "control of the attacker."
2791 msgstr ""
2792
2793 # type: textblock
2794 #. type: textblock
2795 #: ../src/guestfs.pod:1276
2796 msgid ""
2797 "In libguestfs this is rather hard to exploit except under two circumstances:"
2798 msgstr ""
2799
2800 # type: textblock
2801 #. type: textblock
2802 #: ../src/guestfs.pod:1283
2803 msgid "You have enabled the network or have opened the disk in write mode."
2804 msgstr ""
2805
2806 # type: textblock
2807 #. type: textblock
2808 #: ../src/guestfs.pod:1287
2809 msgid ""
2810 "You are also running untrusted code from the guest (see L</RUNNING "
2811 "COMMANDS>)."
2812 msgstr ""
2813
2814 # type: textblock
2815 #. type: textblock
2816 #: ../src/guestfs.pod:1292
2817 msgid ""
2818 "The way to avoid this is to specify the expected disk format when adding "
2819 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2820 "should always do this if the disk is raw format, and it's a good idea for "
2821 "other cases too."
2822 msgstr ""
2823
2824 # type: textblock
2825 #. type: textblock
2826 #: ../src/guestfs.pod:1297
2827 msgid ""
2828 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2829 "format is fetched from libvirt and passed through."
2830 msgstr ""
2831
2832 # type: textblock
2833 #. type: textblock
2834 #: ../src/guestfs.pod:1300
2835 msgid ""
2836 "For libguestfs tools, use the I<--format> command line parameter as "
2837 "appropriate."
2838 msgstr ""
2839
2840 # type: =head1
2841 #. type: =head1
2842 #: ../src/guestfs.pod:1303
2843 msgid "CONNECTION MANAGEMENT"
2844 msgstr ""
2845
2846 # type: =head2
2847 #. type: =head2
2848 #: ../src/guestfs.pod:1305
2849 msgid "guestfs_h *"
2850 msgstr ""
2851
2852 # type: textblock
2853 #. type: textblock
2854 #: ../src/guestfs.pod:1307
2855 msgid ""
2856 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2857 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2858 "handle and release all resources used."
2859 msgstr ""
2860
2861 # type: textblock
2862 #. type: textblock
2863 #: ../src/guestfs.pod:1311
2864 msgid ""
2865 "For information on using multiple handles and threads, see the section L</"
2866 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2867 msgstr ""
2868
2869 # type: =head2
2870 #. type: =head2
2871 #: ../src/guestfs.pod:1314
2872 msgid "guestfs_create"
2873 msgstr ""
2874
2875 # type: verbatim
2876 #. type: verbatim
2877 #: ../src/guestfs.pod:1316
2878 #, no-wrap
2879 msgid ""
2880 " guestfs_h *guestfs_create (void);\n"
2881 "\n"
2882 msgstr ""
2883
2884 # type: textblock
2885 #. type: textblock
2886 #: ../src/guestfs.pod:1318
2887 msgid "Create a connection handle."
2888 msgstr ""
2889
2890 # type: textblock
2891 #. type: textblock
2892 #: ../src/guestfs.pod:1320
2893 msgid ""
2894 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2895 "on the handle at least once."
2896 msgstr ""
2897
2898 # type: textblock
2899 #. type: textblock
2900 #: ../src/guestfs.pod:1323
2901 msgid ""
2902 "This function returns a non-NULL pointer to a handle on success or NULL on "
2903 "error."
2904 msgstr ""
2905
2906 # type: textblock
2907 #. type: textblock
2908 #: ../src/guestfs.pod:1326
2909 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2910 msgstr ""
2911
2912 # type: textblock
2913 #. type: textblock
2914 #: ../src/guestfs.pod:1328
2915 msgid ""
2916 "You may also want to configure error handling for the handle.  See L</ERROR "
2917 "HANDLING> section below."
2918 msgstr ""
2919
2920 # type: =head2
2921 #. type: =head2
2922 #: ../src/guestfs.pod:1331
2923 msgid "guestfs_close"
2924 msgstr ""
2925
2926 # type: verbatim
2927 #. type: verbatim
2928 #: ../src/guestfs.pod:1333
2929 #, no-wrap
2930 msgid ""
2931 " void guestfs_close (guestfs_h *g);\n"
2932 "\n"
2933 msgstr ""
2934
2935 # type: textblock
2936 #. type: textblock
2937 #: ../src/guestfs.pod:1335
2938 msgid "This closes the connection handle and frees up all resources used."
2939 msgstr ""
2940
2941 # type: =head1
2942 #. type: =head1
2943 #: ../src/guestfs.pod:1337
2944 msgid "ERROR HANDLING"
2945 msgstr ""
2946
2947 # type: textblock
2948 #. type: textblock
2949 #: ../src/guestfs.pod:1339
2950 msgid ""
2951 "API functions can return errors.  For example, almost all functions that "
2952 "return C<int> will return C<-1> to indicate an error."
2953 msgstr ""
2954
2955 # type: textblock
2956 #. type: textblock
2957 #: ../src/guestfs.pod:1342
2958 msgid ""
2959 "Additional information is available for errors: an error message string and "
2960 "optionally an error number (errno) if the thing that failed was a system "
2961 "call."
2962 msgstr ""
2963
2964 # type: textblock
2965 #. type: textblock
2966 #: ../src/guestfs.pod:1346
2967 msgid ""
2968 "You can get at the additional information about the last error on the handle "
2969 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2970 "up an error handler with L</guestfs_set_error_handler>."
2971 msgstr ""
2972
2973 # type: textblock
2974 #. type: textblock
2975 #: ../src/guestfs.pod:1351
2976 msgid ""
2977 "When the handle is created, a default error handler is installed which "
2978 "prints the error message string to C<stderr>.  For small short-running "
2979 "command line programs it is sufficient to do:"
2980 msgstr ""
2981
2982 # type: verbatim
2983 #. type: verbatim
2984 #: ../src/guestfs.pod:1355
2985 #, no-wrap
2986 msgid ""
2987 " if (guestfs_launch (g) == -1)\n"
2988 "   exit (EXIT_FAILURE);\n"
2989 "\n"
2990 msgstr ""
2991
2992 # type: textblock
2993 #. type: textblock
2994 #: ../src/guestfs.pod:1358
2995 msgid ""
2996 "since the default error handler will ensure that an error message has been "
2997 "printed to C<stderr> before the program exits."
2998 msgstr ""
2999
3000 # type: textblock
3001 #. type: textblock
3002 #: ../src/guestfs.pod:1361
3003 msgid ""
3004 "For other programs the caller will almost certainly want to install an "
3005 "alternate error handler or do error handling in-line like this:"
3006 msgstr ""
3007
3008 # type: verbatim
3009 #. type: verbatim
3010 #: ../src/guestfs.pod:1364
3011 #, no-wrap
3012 msgid ""
3013 " g = guestfs_create ();\n"
3014 " \n"
3015 msgstr ""
3016
3017 # type: verbatim
3018 #. type: verbatim
3019 #: ../src/guestfs.pod:1366
3020 #, no-wrap
3021 msgid ""
3022 " /* This disables the default behaviour of printing errors\n"
3023 "    on stderr. */\n"
3024 " guestfs_set_error_handler (g, NULL, NULL);\n"
3025 " \n"
3026 msgstr ""
3027
3028 # type: verbatim
3029 #. type: verbatim
3030 #: ../src/guestfs.pod:1370
3031 #, no-wrap
3032 msgid ""
3033 " if (guestfs_launch (g) == -1) {\n"
3034 "   /* Examine the error message and print it etc. */\n"
3035 "   char *msg = guestfs_last_error (g);\n"
3036 "   int errnum = guestfs_last_errno (g);\n"
3037 "   fprintf (stderr, \"%s\\n\", msg);\n"
3038 "   /* ... */\n"
3039 "  }\n"
3040 "\n"
3041 msgstr ""
3042
3043 # type: textblock
3044 #. type: textblock
3045 #: ../src/guestfs.pod:1378
3046 msgid ""
3047 "Out of memory errors are handled differently.  The default action is to call "
3048 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3049 "guestfs_set_out_of_memory_handler>."
3050 msgstr ""
3051
3052 # type: textblock
3053 #. type: textblock
3054 #: ../src/guestfs.pod:1382
3055 msgid ""
3056 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3057 "because there is no handle if this happens there is no way to get additional "
3058 "error information.  However L</guestfs_create> is supposed to be a "
3059 "lightweight operation which can only fail because of insufficient memory (it "
3060 "returns NULL in this case)."
3061 msgstr ""
3062
3063 # type: =head2
3064 #. type: =head2
3065 #: ../src/guestfs.pod:1388
3066 msgid "guestfs_last_error"
3067 msgstr ""
3068
3069 # type: verbatim
3070 #. type: verbatim
3071 #: ../src/guestfs.pod:1390
3072 #, no-wrap
3073 msgid ""
3074 " const char *guestfs_last_error (guestfs_h *g);\n"
3075 "\n"
3076 msgstr ""
3077
3078 # type: textblock
3079 #. type: textblock
3080 #: ../src/guestfs.pod:1392
3081 msgid ""
3082 "This returns the last error message that happened on C<g>.  If there has not "
3083 "been an error since the handle was created, then this returns C<NULL>."
3084 msgstr ""
3085
3086 # type: textblock
3087 #. type: textblock
3088 #: ../src/guestfs.pod:1396
3089 msgid ""
3090 "The lifetime of the returned string is until the next error occurs, or L</"
3091 "guestfs_close> is called."
3092 msgstr ""
3093
3094 # type: =head2
3095 #. type: =head2
3096 #: ../src/guestfs.pod:1399
3097 msgid "guestfs_last_errno"
3098 msgstr ""
3099
3100 # type: verbatim
3101 #. type: verbatim
3102 #: ../src/guestfs.pod:1401
3103 #, no-wrap
3104 msgid ""
3105 " int guestfs_last_errno (guestfs_h *g);\n"
3106 "\n"
3107 msgstr ""
3108
3109 # type: textblock
3110 #. type: textblock
3111 #: ../src/guestfs.pod:1403
3112 msgid "This returns the last error number (errno) that happened on C<g>."
3113 msgstr ""
3114
3115 # type: textblock
3116 #. type: textblock
3117 #: ../src/guestfs.pod:1405
3118 msgid "If successful, an errno integer not equal to zero is returned."
3119 msgstr ""
3120
3121 # type: textblock
3122 #. type: textblock
3123 #: ../src/guestfs.pod:1407
3124 msgid ""
3125 "If no error, this returns 0.  This call can return 0 in three situations:"
3126 msgstr ""
3127
3128 # type: textblock
3129 #. type: textblock
3130 #: ../src/guestfs.pod:1414
3131 msgid "There has not been any error on the handle."
3132 msgstr ""
3133
3134 # type: textblock
3135 #. type: textblock
3136 #: ../src/guestfs.pod:1418
3137 msgid ""
3138 "There has been an error but the errno was meaningless.  This corresponds to "
3139 "the case where the error did not come from a failed system call, but for "
3140 "some other reason."
3141 msgstr ""
3142
3143 # type: textblock
3144 #. type: textblock
3145 #: ../src/guestfs.pod:1424
3146 msgid ""
3147 "There was an error from a failed system call, but for some reason the errno "
3148 "was not captured and returned.  This usually indicates a bug in libguestfs."
3149 msgstr ""
3150
3151 # type: textblock
3152 #. type: textblock
3153 #: ../src/guestfs.pod:1430
3154 msgid ""
3155 "Libguestfs tries to convert the errno from inside the applicance into a "
3156 "corresponding errno for the caller (not entirely trivial: the appliance "
3157 "might be running a completely different operating system from the library "
3158 "and error numbers are not standardized across Un*xen).  If this could not be "
3159 "done, then the error is translated to C<EINVAL>.  In practice this should "
3160 "only happen in very rare circumstances."
3161 msgstr ""
3162
3163 # type: =head2
3164 #. type: =head2
3165 #: ../src/guestfs.pod:1438
3166 msgid "guestfs_set_error_handler"
3167 msgstr ""
3168
3169 # type: verbatim
3170 #. type: verbatim
3171 #: ../src/guestfs.pod:1440
3172 #, no-wrap
3173 msgid ""
3174 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3175 "                                           void *opaque,\n"
3176 "                                           const char *msg);\n"
3177 " void guestfs_set_error_handler (guestfs_h *g,\n"
3178 "                                 guestfs_error_handler_cb cb,\n"
3179 "                                 void *opaque);\n"
3180 "\n"
3181 msgstr ""
3182
3183 # type: textblock
3184 #. type: textblock
3185 #: ../src/guestfs.pod:1447
3186 msgid ""
3187 "The callback C<cb> will be called if there is an error.  The parameters "
3188 "passed to the callback are an opaque data pointer and the error message "
3189 "string."
3190 msgstr ""
3191
3192 # type: textblock
3193 #. type: textblock
3194 #: ../src/guestfs.pod:1451
3195 msgid ""
3196 "C<errno> is not passed to the callback.  To get that the callback must call "
3197 "L</guestfs_last_errno>."
3198 msgstr ""
3199
3200 # type: textblock
3201 #. type: textblock
3202 #: ../src/guestfs.pod:1454
3203 msgid ""
3204 "Note that the message string C<msg> is freed as soon as the callback "
3205 "function returns, so if you want to stash it somewhere you must make your "
3206 "own copy."
3207 msgstr ""
3208
3209 # type: textblock
3210 #. type: textblock
3211 #: ../src/guestfs.pod:1458
3212 msgid "The default handler prints messages on C<stderr>."
3213 msgstr ""
3214
3215 # type: textblock
3216 #. type: textblock
3217 #: ../src/guestfs.pod:1460
3218 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3219 msgstr ""
3220
3221 # type: =head2
3222 #. type: =head2
3223 #: ../src/guestfs.pod:1462
3224 msgid "guestfs_get_error_handler"
3225 msgstr ""
3226
3227 # type: verbatim
3228 #. type: verbatim
3229 #: ../src/guestfs.pod:1464
3230 #, no-wrap
3231 msgid ""
3232 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3233 "                                                     void **opaque_rtn);\n"
3234 "\n"
3235 msgstr ""
3236
3237 # type: textblock
3238 #. type: textblock
3239 #: ../src/guestfs.pod:1467
3240 msgid "Returns the current error handler callback."
3241 msgstr ""
3242
3243 # type: =head2
3244 #. type: =head2
3245 #: ../src/guestfs.pod:1469
3246 msgid "guestfs_set_out_of_memory_handler"
3247 msgstr ""
3248
3249 # type: verbatim
3250 #. type: verbatim
3251 #: ../src/guestfs.pod:1471
3252 #, no-wrap
3253 msgid ""
3254 " typedef void (*guestfs_abort_cb) (void);\n"
3255 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3256 "                                        guestfs_abort_cb);\n"
3257 "\n"
3258 msgstr ""
3259
3260 # type: textblock
3261 #. type: textblock
3262 #: ../src/guestfs.pod:1475
3263 msgid ""
3264 "The callback C<cb> will be called if there is an out of memory situation.  "
3265 "I<Note this callback must not return>."
3266 msgstr ""
3267
3268 # type: textblock
3269 #. type: textblock
3270 #: ../src/guestfs.pod:1478
3271 msgid "The default is to call L<abort(3)>."
3272 msgstr ""
3273
3274 # type: textblock
3275 #. type: textblock
3276 #: ../src/guestfs.pod:1480
3277 msgid ""
3278 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3279 msgstr ""
3280
3281 # type: =head2
3282 #. type: =head2
3283 #: ../src/guestfs.pod:1483
3284 msgid "guestfs_get_out_of_memory_handler"
3285 msgstr ""
3286
3287 # type: verbatim
3288 #. type: verbatim
3289 #: ../src/guestfs.pod:1485
3290 #, no-wrap
3291 msgid ""
3292 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3293 "\n"
3294 msgstr ""
3295
3296 # type: textblock
3297 #. type: textblock
3298 #: ../src/guestfs.pod:1487
3299 msgid "This returns the current out of memory handler."
3300 msgstr ""
3301
3302 # type: =head1
3303 #. type: =head1
3304 #: ../src/guestfs.pod:1489
3305 msgid "API CALLS"
3306 msgstr ""
3307
3308 # type: textblock
3309 #. type: textblock
3310 #: ../src/guestfs.pod:1491 ../fish/guestfish.pod:1003
3311 msgid "@ACTIONS@"
3312 msgstr ""
3313
3314 # type: =head1
3315 #. type: =head1
3316 #: ../src/guestfs.pod:1493
3317 msgid "STRUCTURES"
3318 msgstr ""
3319
3320 # type: textblock
3321 #. type: textblock
3322 #: ../src/guestfs.pod:1495
3323 msgid "@STRUCTS@"
3324 msgstr ""
3325
3326 # type: =head1
3327 #. type: =head1
3328 #: ../src/guestfs.pod:1497
3329 msgid "AVAILABILITY"
3330 msgstr ""
3331
3332 # type: =head2
3333 #. type: =head2
3334 #: ../src/guestfs.pod:1499
3335 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3336 msgstr ""
3337
3338 # type: textblock
3339 #. type: textblock
3340 #: ../src/guestfs.pod:1501
3341 msgid ""
3342 "Using L</guestfs_available> you can test availability of the following "
3343 "groups of functions.  This test queries the appliance to see if the "
3344 "appliance you are currently using supports the functionality."
3345 msgstr ""
3346
3347 # type: textblock
3348 #. type: textblock
3349 #: ../src/guestfs.pod:1506
3350 msgid "@AVAILABILITY@"
3351 msgstr ""
3352
3353 # type: =head2
3354 #. type: =head2
3355 #: ../src/guestfs.pod:1508
3356 msgid "GUESTFISH supported COMMAND"
3357 msgstr ""
3358
3359 # type: textblock
3360 #. type: textblock
3361 #: ../src/guestfs.pod:1510
3362 msgid ""
3363 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3364 "prints out the available groups and whether they are supported by this build "
3365 "of libguestfs.  Note however that you have to do C<run> first."
3366 msgstr ""
3367
3368 # type: =head2
3369 #. type: =head2
3370 #: ../src/guestfs.pod:1515
3371 msgid "SINGLE CALLS AT COMPILE TIME"
3372 msgstr ""
3373
3374 # type: textblock
3375 #. type: textblock
3376 #: ../src/guestfs.pod:1517
3377 msgid ""
3378 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3379 "function, such as:"
3380 msgstr ""
3381
3382 # type: verbatim
3383 #. type: verbatim
3384 #: ../src/guestfs.pod:1520
3385 #, no-wrap
3386 msgid ""
3387 " #define LIBGUESTFS_HAVE_DD 1\n"
3388 "\n"
3389 msgstr ""
3390
3391 # type: textblock
3392 #. type: textblock
3393 #: ../src/guestfs.pod:1522
3394 msgid "if L</guestfs_dd> is available."
3395 msgstr ""
3396
3397 # type: textblock
3398 #. type: textblock
3399 #: ../src/guestfs.pod:1524
3400 msgid ""
3401 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3402 "function is available at compile time, we recommended using build tools such "
3403 "as autoconf or cmake.  For example in autotools you could use:"
3404 msgstr ""
3405
3406 # type: verbatim
3407 #. type: verbatim
3408 #: ../src/guestfs.pod:1529
3409 #, no-wrap
3410 msgid ""
3411 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3412 " AC_CHECK_FUNCS([guestfs_dd])\n"
3413 "\n"
3414 msgstr ""
3415
3416 # type: textblock
3417 #. type: textblock
3418 #: ../src/guestfs.pod:1532
3419 msgid ""
3420 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3421 "in your program."
3422 msgstr ""
3423
3424 # type: =head2
3425 #. type: =head2
3426 #: ../src/guestfs.pod:1535
3427 msgid "SINGLE CALLS AT RUN TIME"
3428 msgstr ""
3429
3430 # type: textblock
3431 #. type: textblock
3432 #: ../src/guestfs.pod:1537
3433 msgid ""
3434 "Testing at compile time doesn't guarantee that a function really exists in "
3435 "the library.  The reason is that you might be dynamically linked against a "
3436 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3437 "This situation unfortunately results in a segmentation fault, which is a "
3438 "shortcoming of the C dynamic linking system itself."
3439 msgstr ""
3440
3441 # type: textblock
3442 #. type: textblock
3443 #: ../src/guestfs.pod:1544
3444 msgid ""
3445 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3446 "in this example program (note that you still need the compile time check as "
3447 "well):"
3448 msgstr ""
3449
3450 # type: verbatim
3451 #. type: verbatim
3452 #: ../src/guestfs.pod:1548
3453 #, no-wrap
3454 msgid ""
3455 " #include <stdio.h>\n"
3456 " #include <stdlib.h>\n"
3457 " #include <unistd.h>\n"
3458 " #include <dlfcn.h>\n"
3459 " #include <guestfs.h>\n"
3460 " \n"
3461 msgstr ""
3462
3463 # type: verbatim
3464 #. type: verbatim
3465 #: ../src/guestfs.pod:1554
3466 #, no-wrap
3467 msgid ""
3468 " main ()\n"
3469 " {\n"
3470 " #ifdef LIBGUESTFS_HAVE_DD\n"
3471 "   void *dl;\n"
3472 "   int has_function;\n"
3473 " \n"
3474 msgstr ""
3475
3476 # type: verbatim
3477 #. type: verbatim
3478 #: ../src/guestfs.pod:1560
3479 #, no-wrap
3480 msgid ""
3481 "   /* Test if the function guestfs_dd is really available. */\n"
3482 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3483 "   if (!dl) {\n"
3484 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3485 "     exit (EXIT_FAILURE);\n"
3486 "   }\n"
3487 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3488 "   dlclose (dl);\n"
3489 " \n"
3490 msgstr ""
3491
3492 # type: verbatim
3493 #. type: verbatim
3494 #: ../src/guestfs.pod:1569
3495 #, no-wrap
3496 msgid ""
3497 "   if (!has_function)\n"
3498 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3499 "   else {\n"
3500 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3501 "     /* Now it's safe to call\n"
3502 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3503 "     */\n"
3504 "   }\n"
3505 " #else\n"
3506 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3507 " #endif\n"
3508 "  }\n"
3509 "\n"
3510 msgstr ""
3511
3512 # type: textblock
3513 #. type: textblock
3514 #: ../src/guestfs.pod:1582
3515 msgid ""
3516 "You may think the above is an awful lot of hassle, and it is.  There are "
3517 "other ways outside of the C linking system to ensure that this kind of "
3518 "incompatibility never arises, such as using package versioning:"
3519 msgstr ""
3520
3521 # type: verbatim
3522 #. type: verbatim
3523 #: ../src/guestfs.pod:1587
3524 #, no-wrap
3525 msgid ""
3526 " Requires: libguestfs >= 1.0.80\n"
3527 "\n"
3528 msgstr ""
3529
3530 # type: =head1
3531 #. type: =head1
3532 #: ../src/guestfs.pod:1589
3533 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3534 msgstr ""
3535
3536 # type: textblock
3537 #. type: textblock
3538 #: ../src/guestfs.pod:1591
3539 msgid ""
3540 "A recent feature of the API is the introduction of calls which take optional "
3541 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3542 "takes variable arguments (ie. C<...>), as in this example:"
3543 msgstr ""
3544
3545 # type: verbatim
3546 #. type: verbatim
3547 #: ../src/guestfs.pod:1596
3548 #, no-wrap
3549 msgid ""
3550 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3551 "\n"
3552 msgstr ""
3553
3554 # type: textblock
3555 #. type: textblock
3556 #: ../src/guestfs.pod:1598
3557 msgid ""
3558 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3559 "call with no optional arguments specified:"
3560 msgstr ""
3561
3562 # type: verbatim
3563 #. type: verbatim
3564 #: ../src/guestfs.pod:1601
3565 #, no-wrap
3566 msgid ""
3567 " guestfs_add_drive_opts (g, filename, -1);\n"
3568 "\n"
3569 msgstr ""
3570
3571 # type: textblock
3572 #. type: textblock
3573 #: ../src/guestfs.pod:1603
3574 msgid "With a single optional argument:"
3575 msgstr ""
3576
3577 # type: verbatim
3578 #. type: verbatim
3579 #: ../src/guestfs.pod:1605
3580 #, no-wrap
3581 msgid ""
3582 " guestfs_add_drive_opts (g, filename,\n"
3583 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3584 "                         -1);\n"
3585 "\n"
3586 msgstr ""
3587
3588 # type: textblock
3589 #. type: textblock
3590 #: ../src/guestfs.pod:1609
3591 msgid "With two:"
3592 msgstr ""
3593
3594 # type: verbatim
3595 #. type: verbatim
3596 #: ../src/guestfs.pod:1611
3597 #, no-wrap
3598 msgid ""
3599 " guestfs_add_drive_opts (g, filename,\n"
3600 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3601 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3602 "                         -1);\n"
3603 "\n"
3604 msgstr ""
3605
3606 # type: textblock
3607 #. type: textblock
3608 #: ../src/guestfs.pod:1616
3609 msgid ""
3610 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3611 "happen!"
3612 msgstr ""
3613
3614 # type: =head2
3615 #. type: =head2
3616 #: ../src/guestfs.pod:1619
3617 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3618 msgstr ""
3619
3620 # type: textblock
3621 #. type: textblock
3622 #: ../src/guestfs.pod:1621
3623 msgid ""
3624 "The second variant has the same name with the suffix C<_va>, which works the "
3625 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3626 "example function, this is declared:"
3627 msgstr ""
3628
3629 # type: verbatim
3630 #. type: verbatim
3631 #: ../src/guestfs.pod:1625
3632 #, no-wrap
3633 msgid ""
3634 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3635 "                                va_list args);\n"
3636 "\n"
3637 msgstr ""
3638
3639 # type: =head2
3640 #. type: =head2
3641 #: ../src/guestfs.pod:1628
3642 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3643 msgstr ""
3644
3645 # type: textblock
3646 #. type: textblock
3647 #: ../src/guestfs.pod:1630
3648 msgid ""
3649 "The third variant is useful where you need to construct these calls.  You "
3650 "pass in a structure where you fill in the optional fields.  The structure "
3651 "has a bitmask as the first element which you must set to indicate which "
3652 "fields you have filled in.  For our example function the structure and call "
3653 "are declared:"
3654 msgstr ""
3655
3656 # type: verbatim
3657 #. type: verbatim
3658 #: ../src/guestfs.pod:1636
3659 #, no-wrap
3660 msgid ""
3661 " struct guestfs_add_drive_opts_argv {\n"
3662 "   uint64_t bitmask;\n"
3663 "   int readonly;\n"
3664 "   const char *format;\n"
3665 "   /* ... */\n"
3666 " };\n"
3667 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3668 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3669 "\n"
3670 msgstr ""
3671
3672 # type: textblock
3673 #. type: textblock
3674 #: ../src/guestfs.pod:1645
3675 msgid "You could call it like this:"
3676 msgstr ""
3677
3678 # type: verbatim
3679 #. type: verbatim
3680 #: ../src/guestfs.pod:1647
3681 #, no-wrap
3682 msgid ""
3683 " struct guestfs_add_drive_opts_argv optargs = {\n"
3684 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3685 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3686 "   .readonly = 1,\n"
3687 "   .format = \"qcow2\"\n"
3688 " };\n"
3689 " \n"
3690 msgstr ""
3691
3692 # type: verbatim
3693 #. type: verbatim
3694 #: ../src/guestfs.pod:1654
3695 #, no-wrap
3696 msgid ""
3697 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3698 "\n"
3699 msgstr ""
3700
3701 # type: textblock
3702 #. type: textblock
3703 #: ../src/guestfs.pod:1656 ../src/guestfs-actions.pod:11
3704 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish-actions.pod:9
3705 #: ../fish/guestfish-actions.pod:1260 ../tools/virt-win-reg.pl:532
3706 msgid "Notes:"
3707 msgstr ""
3708
3709 # type: textblock
3710 #. type: textblock
3711 #: ../src/guestfs.pod:1662
3712 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3713 msgstr ""
3714
3715 # type: textblock
3716 #. type: textblock
3717 #: ../src/guestfs.pod:1667
3718 msgid "You do not need to fill in all fields of the structure."
3719 msgstr ""
3720
3721 # type: textblock
3722 #. type: textblock
3723 #: ../src/guestfs.pod:1671
3724 msgid ""
3725 "There must be a one-to-one correspondence between fields of the structure "
3726 "that are filled in, and bits set in the bitmask."
3727 msgstr ""
3728
3729 # type: =head2
3730 #. type: =head2
3731 #: ../src/guestfs.pod:1676
3732 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3733 msgstr ""
3734
3735 # type: textblock
3736 #. type: textblock
3737 #: ../src/guestfs.pod:1678
3738 msgid ""
3739 "In other languages, optional arguments are expressed in the way that is "
3740 "natural for that language.  We refer you to the language-specific "
3741 "documentation for more details on that."
3742 msgstr ""
3743
3744 # type: textblock
3745 #. type: textblock
3746 #: ../src/guestfs.pod:1682
3747 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3748 msgstr ""
3749
3750 # type: =head2
3751 #. type: =head2
3752 #: ../src/guestfs.pod:1684
3753 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../src/guestfs.pod:1686
3758 msgid ""
3759 "B<Note:> This section documents the generic event mechanism introduced in "
3760 "libguestfs 1.10, which you should use in new code if possible.  The old "
3761 "functions C<guestfs_set_log_message_callback>, "
3762 "C<guestfs_set_subprocess_quit_callback>, "
3763 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3764 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3765 "page."
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../src/guestfs.pod:1694
3770 msgid ""
3771 "Handles generate events when certain things happen, such as log messages "
3772 "being generated, progress messages during long-running operations, or the "
3773 "handle being closed.  The API calls described below let you register a "
3774 "callback to be called when events happen.  You can register multiple "
3775 "callbacks (for the same, different or overlapping sets of events), and "
3776 "individually remove callbacks.  If callbacks are not removed, then they "
3777 "remain in force until the handle is closed."
3778 msgstr ""
3779
3780 #. type: textblock
3781 #: ../src/guestfs.pod:1702
3782 msgid ""
3783 "In the current implementation, events are only generated synchronously: that "
3784 "means that events (and hence callbacks) can only happen while you are in the "
3785 "middle of making another libguestfs call.  The callback is called in the "
3786 "same thread."
3787 msgstr ""
3788
3789 #. type: textblock
3790 #: ../src/guestfs.pod:1707
3791 msgid ""
3792 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3793 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3794 msgstr ""
3795
3796 #. type: =head3
3797 #: ../src/guestfs.pod:1711
3798 msgid "CLASSES OF EVENTS"
3799 msgstr ""
3800
3801 #. type: =item
3802 #: ../src/guestfs.pod:1715
3803 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3804 msgstr ""
3805
3806 #. type: textblock
3807 #: ../src/guestfs.pod:1718
3808 msgid ""
3809 "The callback function will be called while the handle is being closed "
3810 "(synchronously from L</guestfs_close>)."
3811 msgstr ""
3812
3813 # type: textblock
3814 #. type: textblock
3815 #: ../src/guestfs.pod:1721
3816 msgid ""
3817 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3818 "handles that are open when the program exits.  This means that this callback "
3819 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3820 "problems in higher-level languages (eg. if your HLL interpreter has already "
3821 "been cleaned up by the time this is called, and if your callback then jumps "
3822 "into some HLL function)."
3823 msgstr ""
3824
3825 #. type: textblock
3826 #: ../src/guestfs.pod:1728
3827 msgid ""
3828 "If no callback is registered: the handle is closed without any callback "
3829 "being invoked."
3830 msgstr ""
3831
3832 #. type: =item
3833 #: ../src/guestfs.pod:1731
3834 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3835 msgstr ""
3836
3837 #. type: textblock
3838 #: ../src/guestfs.pod:1734
3839 msgid ""
3840 "The callback function will be called when the child process quits, either "
3841 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3842 "corresponds to a transition from any state to the CONFIG state)."
3843 msgstr ""
3844
3845 #. type: textblock
3846 #: ../src/guestfs.pod:1738 ../src/guestfs.pod:1747
3847 msgid "If no callback is registered: the event is ignored."
3848 msgstr ""
3849
3850 #. type: =item
3851 #: ../src/guestfs.pod:1740
3852 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../src/guestfs.pod:1743
3857 msgid ""
3858 "The callback function will be called when the child process becomes ready "
3859 "first time after it has been launched.  (This corresponds to a transition "
3860 "from LAUNCHING to the READY state)."
3861 msgstr ""
3862
3863 #. type: =item
3864 #: ../src/guestfs.pod:1749
3865 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3866 msgstr ""
3867
3868 # type: textblock
3869 #. type: textblock
3870 #: ../src/guestfs.pod:1752
3871 msgid ""
3872 "Some long-running operations can generate progress messages.  If this "
3873 "callback is registered, then it will be called each time a progress message "
3874 "is generated (usually two seconds after the operation started, and three "
3875 "times per second thereafter until it completes, although the frequency may "
3876 "change in future versions)."
3877 msgstr ""
3878
3879 #. type: textblock
3880 #: ../src/guestfs.pod:1758
3881 msgid ""
3882 "The callback receives in the payload four unsigned 64 bit numbers which are "
3883 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3884 msgstr ""
3885
3886 #. type: textblock
3887 #: ../src/guestfs.pod:1761
3888 msgid ""
3889 "The units of C<total> are not defined, although for some operations C<total> "
3890 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3891 "or megabytes), and C<position> may be the portion which has been transferred."
3892 msgstr ""
3893
3894 # type: textblock
3895 #. type: textblock
3896 #: ../src/guestfs.pod:1766
3897 msgid "The only defined and stable parts of the API are:"
3898 msgstr ""
3899
3900 # type: textblock
3901 #. type: textblock
3902 #: ../src/guestfs.pod:1772
3903 msgid ""
3904 "The callback can display to the user some type of progress bar or indicator "
3905 "which shows the ratio of C<position>:C<total>."
3906 msgstr ""
3907
3908 # type: textblock
3909 #. type: textblock
3910 #: ../src/guestfs.pod:1777
3911 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3912 msgstr ""
3913
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> (I<unless> the call "
3919 "fails with an error)."
3920 msgstr ""
3921
3922 # type: textblock
3923 #. type: textblock
3924 #: ../src/guestfs.pod:1785
3925 msgid ""
3926 "This is to simplify caller code, so callers can easily set the progress "
3927 "indicator to \"100%\" at the end of the operation, without requiring special "
3928 "code to detect this case."
3929 msgstr ""
3930
3931 #. type: textblock
3932 #: ../src/guestfs.pod:1791
3933 msgid ""
3934 "For some calls we are unable to estimate the progress of the call, but we "
3935 "can still generate progress messages to indicate activity.  This is known as "
3936 "\"pulse mode\", and is directly supported by certain progress bar "
3937 "implementations (eg. GtkProgressBar)."
3938 msgstr ""
3939
3940 #. type: textblock
3941 #: ../src/guestfs.pod:1796
3942 msgid ""
3943 "For these calls, zero or more progress messages are generated with "
3944 "C<position = 0> and C<total = 1>, followed by a final message with "
3945 "C<position = total = 1>."
3946 msgstr ""
3947
3948 #. type: textblock
3949 #: ../src/guestfs.pod:1800
3950 msgid ""
3951 "As noted above, if the call fails with an error then the final message may "
3952 "not be generated."
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../src/guestfs.pod:1805
3957 msgid ""
3958 "The callback also receives the procedure number (C<proc_nr>) and serial "
3959 "number (C<serial>) of the call.  These are only useful for debugging "
3960 "protocol issues, and the callback can normally ignore them.  The callback "
3961 "may want to print these numbers in error messages or debugging messages."
3962 msgstr ""
3963
3964 #. type: textblock
3965 #: ../src/guestfs.pod:1811
3966 msgid "If no callback is registered: progress messages are discarded."
3967 msgstr ""
3968
3969 #. type: =item
3970 #: ../src/guestfs.pod:1813
3971 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3972 msgstr ""
3973
3974 #. type: textblock
3975 #: ../src/guestfs.pod:1816
3976 msgid ""
3977 "The callback function is called whenever a log message is generated by qemu, "
3978 "the appliance kernel, guestfsd (daemon), or utility programs."
3979 msgstr ""
3980
3981 #. type: textblock
3982 #: ../src/guestfs.pod:1819
3983 msgid ""
3984 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3985 "guestfs_launch>) then additional debug messages are generated."
3986 msgstr ""
3987
3988 #. type: textblock
3989 #: ../src/guestfs.pod:1822 ../src/guestfs.pod:1836
3990 msgid ""
3991 "If no callback is registered: the messages are discarded unless the verbose "
3992 "flag is set in which case they are sent to stderr.  You can override the "
3993 "printing of verbose messages to stderr by setting up a callback."
3994 msgstr ""
3995
3996 #. type: =item
3997 #: ../src/guestfs.pod:1827
3998 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3999 msgstr ""
4000
4001 #. type: textblock
4002 #: ../src/guestfs.pod:1830
4003 msgid ""
4004 "The callback function is called whenever a log message is generated by the "
4005 "library part of libguestfs."
4006 msgstr ""
4007
4008 #. type: textblock
4009 #: ../src/guestfs.pod:1833
4010 msgid ""
4011 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
4012 "messages are generated."
4013 msgstr ""
4014
4015 #. type: =item
4016 #: ../src/guestfs.pod:1841
4017 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
4018 msgstr ""
4019
4020 #. type: textblock
4021 #: ../src/guestfs.pod:1844
4022 msgid ""
4023 "The callback function is called whenever a trace message is generated.  This "
4024 "only applies if the trace flag (L</guestfs_set_trace>) is set."
4025 msgstr ""
4026
4027 #. type: textblock
4028 #: ../src/guestfs.pod:1847
4029 msgid ""
4030 "If no callback is registered: the messages are sent to stderr.  You can "
4031 "override the printing of trace messages to stderr by setting up a callback."
4032 msgstr ""
4033
4034 #. type: =head3
4035 #: ../src/guestfs.pod:1853
4036 msgid "guestfs_set_event_callback"
4037 msgstr ""
4038
4039 #. type: verbatim
4040 #: ../src/guestfs.pod:1855
4041 #, no-wrap
4042 msgid ""
4043 " int guestfs_set_event_callback (guestfs_h *g,\n"
4044 "                                 guestfs_event_callback cb,\n"
4045 "                                 uint64_t event_bitmask,\n"
4046 "                                 int flags,\n"
4047 "                                 void *opaque);\n"
4048 "\n"
4049 msgstr ""
4050
4051 #. type: textblock
4052 #: ../src/guestfs.pod:1861
4053 msgid ""
4054 "This function registers a callback (C<cb>) for all event classes in the "
4055 "C<event_bitmask>."
4056 msgstr ""
4057
4058 #. type: textblock
4059 #: ../src/guestfs.pod:1864
4060 msgid ""
4061 "For example, to register for all log message events, you could call this "
4062 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4063 "To register a single callback for all possible classes of events, use "
4064 "C<GUESTFS_EVENT_ALL>."
4065 msgstr ""
4066
4067 #. type: textblock
4068 #: ../src/guestfs.pod:1870
4069 msgid "C<flags> should always be passed as 0."
4070 msgstr ""
4071
4072 #. type: textblock
4073 #: ../src/guestfs.pod:1872
4074 msgid ""
4075 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4076 "it for any purpose."
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../src/guestfs.pod:1875
4081 msgid ""
4082 "The return value is the event handle (an integer) which you can use to "
4083 "delete the callback (see below)."
4084 msgstr ""
4085
4086 #. type: textblock
4087 #: ../src/guestfs.pod:1878
4088 msgid ""
4089 "If there is an error, this function returns C<-1>, and sets the error in the "
4090 "handle in the usual way (see L</guestfs_last_error> etc.)"
4091 msgstr ""
4092
4093 #. type: textblock
4094 #: ../src/guestfs.pod:1881
4095 msgid ""
4096 "Callbacks remain in effect until they are deleted, or until the handle is "
4097 "closed."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../src/guestfs.pod:1884
4102 msgid ""
4103 "In the case where multiple callbacks are registered for a particular event "
4104 "class, all of the callbacks are called.  The order in which multiple "
4105 "callbacks are called is not defined."
4106 msgstr ""
4107
4108 #. type: =head3
4109 #: ../src/guestfs.pod:1888
4110 msgid "guestfs_delete_event_callback"
4111 msgstr ""
4112
4113 #. type: verbatim
4114 #: ../src/guestfs.pod:1890
4115 #, no-wrap
4116 msgid ""
4117 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4118 "\n"
4119 msgstr ""
4120
4121 #. type: textblock
4122 #: ../src/guestfs.pod:1892
4123 msgid ""
4124 "Delete a callback that was previously registered.  C<event_handle> should be "
4125 "the integer that was returned by a previous call to "
4126 "C<guestfs_set_event_callback> on the same handle."
4127 msgstr ""
4128
4129 #. type: =head3
4130 #: ../src/guestfs.pod:1896
4131 msgid "guestfs_event_callback"
4132 msgstr ""
4133
4134 #. type: verbatim
4135 #: ../src/guestfs.pod:1898
4136 #, no-wrap
4137 msgid ""
4138 " typedef void (*guestfs_event_callback) (\n"
4139 "                  guestfs_h *g,\n"
4140 "                  void *opaque,\n"
4141 "                  uint64_t event,\n"
4142 "                  int event_handle,\n"
4143 "                  int flags,\n"
4144 "                  const char *buf, size_t buf_len,\n"
4145 "                  const uint64_t *array, size_t array_len);\n"
4146 "\n"
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../src/guestfs.pod:1907
4151 msgid ""
4152 "This is the type of the event callback function that you have to provide."
4153 msgstr ""
4154
4155 #. type: textblock
4156 #: ../src/guestfs.pod:1910
4157 msgid ""
4158 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4159 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4160 "handle, and C<flags> which in the current API you should ignore."
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../src/guestfs.pod:1914
4165 msgid ""
4166 "The remaining parameters contain the event payload (if any).  Each event may "
4167 "contain a payload, which usually relates to the event class, but for future "
4168 "proofing your code should be written to handle any payload for any event "
4169 "class."
4170 msgstr ""
4171
4172 #. type: textblock
4173 #: ../src/guestfs.pod:1919
4174 msgid ""
4175 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4176 "there is no message buffer).  Note that this message buffer can contain "
4177 "arbitrary 8 bit data, including NUL bytes."
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../src/guestfs.pod:1923
4182 msgid ""
4183 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4184 "moment this is only used for progress messages."
4185 msgstr ""
4186
4187 #. type: =head3
4188 #: ../src/guestfs.pod:1926
4189 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4190 msgstr ""
4191
4192 #. type: textblock
4193 #: ../src/guestfs.pod:1928
4194 msgid ""
4195 "One motivation for the generic event API was to allow GUI programs to "
4196 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4197 "unconditionally to C<stderr>."
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../src/guestfs.pod:1932
4202 msgid ""
4203 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4204 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4205 "messages are not events; you must capture error messages separately)."
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../src/guestfs.pod:1937
4210 msgid ""
4211 "Programs have to set up a callback to capture the classes of events of "
4212 "interest:"
4213 msgstr ""
4214
4215 #. type: verbatim
4216 #: ../src/guestfs.pod:1940
4217 #, no-wrap
4218 msgid ""
4219 " int eh =\n"
4220 "   guestfs_set_event_callback\n"
4221 "     (g, message_callback,\n"
4222 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4223 "      GUESTFS_EVENT_TRACE,\n"
4224 "      0, NULL) == -1)\n"
4225 " if (eh == -1) {\n"
4226 "   // handle error in the usual way\n"
4227 " }\n"
4228 "\n"
4229 msgstr ""
4230
4231 #. type: textblock
4232 #: ../src/guestfs.pod:1950
4233 msgid ""
4234 "The callback can then direct messages to the appropriate place.  In this "
4235 "example, messages are directed to syslog:"
4236 msgstr ""
4237
4238 #. type: verbatim
4239 #: ../src/guestfs.pod:1953
4240 #, no-wrap
4241 msgid ""
4242 " static void\n"
4243 " message_callback (\n"
4244 "         guestfs_h *g,\n"
4245 "         void *opaque,\n"
4246 "         uint64_t event,\n"
4247 "         int event_handle,\n"
4248 "         int flags,\n"
4249 "         const char *buf, size_t buf_len,\n"
4250 "         const uint64_t *array, size_t array_len)\n"
4251 " {\n"
4252 "   const int priority = LOG_USER|LOG_INFO;\n"
4253 "   if (buf_len > 0)\n"
4254 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4255 " }\n"
4256 "\n"
4257 msgstr ""
4258
4259 # type: =head1
4260 #. type: =head1
4261 #: ../src/guestfs.pod:1968
4262 msgid "PRIVATE DATA AREA"
4263 msgstr ""
4264
4265 #. type: textblock
4266 #: ../src/guestfs.pod:1970
4267 msgid ""
4268 "You can attach named pieces of private data to the libguestfs handle, fetch "
4269 "them by name, and walk over them, for the lifetime of the handle.  This is "
4270 "called the private data area and is only available from the C API."
4271 msgstr ""
4272
4273 # type: textblock
4274 #. type: textblock
4275 #: ../src/guestfs.pod:1975
4276 msgid "To attach a named piece of data, use the following call:"
4277 msgstr ""
4278
4279 # type: verbatim
4280 #. type: verbatim
4281 #: ../src/guestfs.pod:1977
4282 #, no-wrap
4283 msgid ""
4284 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4285 "\n"
4286 msgstr ""
4287
4288 # type: textblock
4289 #. type: textblock
4290 #: ../src/guestfs.pod:1979
4291 msgid ""
4292 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4293 "pointer (which can be C<NULL>).  Any previous item with the same name is "
4294 "overwritten."
4295 msgstr ""
4296
4297 # type: textblock
4298 #. type: textblock
4299 #: ../src/guestfs.pod:1983
4300 msgid ""
4301 "You can use any C<key> you want, but names beginning with an underscore "
4302 "character are reserved for internal libguestfs purposes (for implementing "
4303 "language bindings).  It is recommended to prefix the name with some unique "
4304 "string to avoid collisions with other users."
4305 msgstr ""
4306
4307 # type: textblock
4308 #. type: textblock
4309 #: ../src/guestfs.pod:1988
4310 msgid "To retrieve the pointer, use:"
4311 msgstr ""
4312
4313 # type: verbatim
4314 #. type: verbatim
4315 #: ../src/guestfs.pod:1990
4316 #, no-wrap
4317 msgid ""
4318 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4319 "\n"
4320 msgstr ""
4321
4322 # type: textblock
4323 #. type: textblock
4324 #: ../src/guestfs.pod:1992
4325 msgid ""
4326 "This function returns C<NULL> if either no data is found associated with "
4327 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4328 "C<NULL>."
4329 msgstr ""
4330
4331 #. type: textblock
4332 #: ../src/guestfs.pod:1996
4333 msgid ""
4334 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4335 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4336 "all.  In particular, libguestfs does I<not> try to free the data when the "
4337 "handle is closed.  If the data must be freed, then the caller must either "
4338 "free it before calling L</guestfs_close> or must set up a close callback to "
4339 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../src/guestfs.pod:2003
4344 msgid "To walk over all entries, use these two functions:"
4345 msgstr ""
4346
4347 #. type: verbatim
4348 #: ../src/guestfs.pod:2005
4349 #, no-wrap
4350 msgid ""
4351 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4352 "\n"
4353 msgstr ""
4354
4355 #. type: verbatim
4356 #: ../src/guestfs.pod:2007
4357 #, no-wrap
4358 msgid ""
4359 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4360 "\n"
4361 msgstr ""
4362
4363 #. type: textblock
4364 #: ../src/guestfs.pod:2009
4365 msgid ""
4366 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4367 "not have any particular meaning -- keys are not returned in any defined "
4368 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4369 "corresponding data pointer is returned from the function.  C<NULL> is "
4370 "returned if there are no keys stored in the handle."
4371 msgstr ""
4372
4373 #. type: textblock
4374 #: ../src/guestfs.pod:2015
4375 msgid ""
4376 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4377 "value of this function is also C<NULL> is there are no further entries to "
4378 "return."
4379 msgstr ""
4380
4381 #. type: textblock
4382 #: ../src/guestfs.pod:2019
4383 msgid "Notes about walking over entries:"
4384 msgstr ""
4385
4386 #. type: textblock
4387 #: ../src/guestfs.pod:2025
4388 msgid ""
4389 "You must not call C<guestfs_set_private> while walking over the entries."
4390 msgstr ""
4391
4392 #. type: textblock
4393 #: ../src/guestfs.pod:2030
4394 msgid ""
4395 "The handle maintains an internal iterator which is reset when you call "
4396 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4397 "call C<guestfs_set_private>."
4398 msgstr ""
4399
4400 #. type: textblock
4401 #: ../src/guestfs.pod:2036
4402 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4403 msgstr ""
4404
4405 #. type: verbatim
4406 #: ../src/guestfs.pod:2038
4407 #, no-wrap
4408 msgid ""
4409 " guestfs_set_private (g, key, NULL);\n"
4410 "\n"
4411 msgstr ""
4412
4413 #. type: textblock
4414 #: ../src/guestfs.pod:2040
4415 msgid "then that C<key> is not returned when walking."
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../src/guestfs.pod:2044
4420 msgid ""
4421 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4422 "C<guestfs_next_private> or C<guestfs_set_private>."
4423 msgstr ""
4424
4425 #. type: textblock
4426 #: ../src/guestfs.pod:2050
4427 msgid ""
4428 "The following example code shows how to print all keys and data pointers "
4429 "that are associated with the handle C<g>:"
4430 msgstr ""
4431
4432 #. type: verbatim
4433 #: ../src/guestfs.pod:2053
4434 #, no-wrap
4435 msgid ""
4436 " const char *key;\n"
4437 " void *data = guestfs_first_private (g, &key);\n"
4438 " while (data != NULL)\n"
4439 "   {\n"
4440 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4441 "     data = guestfs_next_private (g, &key);\n"
4442 "   }\n"
4443 "\n"
4444 msgstr ""
4445
4446 #. type: textblock
4447 #: ../src/guestfs.pod:2061
4448 msgid ""
4449 "More commonly you are only interested in keys that begin with an application-"
4450 "specific prefix C<foo_>.  Modify the loop like so:"
4451 msgstr ""
4452
4453 #. type: verbatim
4454 #: ../src/guestfs.pod:2064
4455 #, no-wrap
4456 msgid ""
4457 " const char *key;\n"
4458 " void *data = guestfs_first_private (g, &key);\n"
4459 " while (data != NULL)\n"
4460 "   {\n"
4461 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4462 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4463 "     data = guestfs_next_private (g, &key);\n"
4464 "   }\n"
4465 "\n"
4466 msgstr ""
4467
4468 #. type: textblock
4469 #: ../src/guestfs.pod:2073
4470 msgid ""
4471 "If you need to modify keys while walking, then you have to jump back to the "
4472 "beginning of the loop.  For example, to delete all keys prefixed with "
4473 "C<foo_>:"
4474 msgstr ""
4475
4476 #. type: verbatim
4477 #: ../src/guestfs.pod:2077
4478 #, no-wrap
4479 msgid ""
4480 "  const char *key;\n"
4481 "  void *data;\n"
4482 " again:\n"
4483 "  data = guestfs_first_private (g, &key);\n"
4484 "  while (data != NULL)\n"
4485 "    {\n"
4486 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4487 "        {\n"
4488 "          guestfs_set_private (g, key, NULL);\n"
4489 "          /* note that 'key' pointer is now invalid, and so is\n"
4490 "             the internal iterator */\n"
4491 "          goto again;\n"
4492 "        }\n"
4493 "      data = guestfs_next_private (g, &key);\n"
4494 "    }\n"
4495 "\n"
4496 msgstr ""
4497
4498 #. type: textblock
4499 #: ../src/guestfs.pod:2093
4500 msgid ""
4501 "Note that the above loop is guaranteed to terminate because the keys are "
4502 "being deleted, but other manipulations of keys within the loop might not "
4503 "terminate unless you also maintain an indication of which keys have been "
4504 "visited."
4505 msgstr ""
4506
4507 # type: =end
4508 #. type: =end
4509 #: ../src/guestfs.pod:2098 ../src/guestfs.pod:2103
4510 msgid "html"
4511 msgstr ""
4512
4513 # type: textblock
4514 #. type: textblock
4515 #: ../src/guestfs.pod:2100
4516 msgid ""
4517 "<!-- old anchor for the next section --> <a name="
4518 "\"state_machine_and_low_level_event_api\"/>"
4519 msgstr ""
4520
4521 # type: =head1
4522 #. type: =head1
4523 #: ../src/guestfs.pod:2105
4524 msgid "ARCHITECTURE"
4525 msgstr ""
4526
4527 # type: textblock
4528 #. type: textblock
4529 #: ../src/guestfs.pod:2107
4530 msgid ""
4531 "Internally, libguestfs is implemented by running an appliance (a special "
4532 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4533 "process of the main program."
4534 msgstr ""
4535
4536 # type: verbatim
4537 #. type: verbatim
4538 #: ../src/guestfs.pod:2111
4539 #, no-wrap
4540 msgid ""
4541 "  ___________________\n"
4542 " /                   \\\n"
4543 " | main program      |\n"
4544 " |                   |\n"
4545 " |                   |           child process / appliance\n"
4546 " |                   |           __________________________\n"
4547 " |                   |          / qemu                     \\\n"
4548 " +-------------------+   RPC    |      +-----------------+ |\n"
4549 " | libguestfs     <--------------------> guestfsd        | |\n"
4550 " |                   |          |      +-----------------+ |\n"
4551 " \\___________________/          |      | Linux kernel    | |\n"
4552 "                                |      +--^--------------+ |\n"
4553 "                                \\_________|________________/\n"
4554 "                                          |\n"
4555 "                                   _______v______\n"
4556 "                                  /              \\\n"
4557 "                                  | Device or    |\n"
4558 "                                  | disk image   |\n"
4559 "                                  \\______________/\n"
4560 "\n"
4561 msgstr ""
4562
4563 # type: textblock
4564 #. type: textblock
4565 #: ../src/guestfs.pod:2131
4566 msgid ""
4567 "The library, linked to the main program, creates the child process and hence "
4568 "the appliance in the L</guestfs_launch> function."
4569 msgstr ""
4570
4571 # type: textblock
4572 #. type: textblock
4573 #: ../src/guestfs.pod:2134
4574 msgid ""
4575 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4576 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4577 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4578 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4579 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4580 "attached to the qemu process which translates device access by the "
4581 "appliance's Linux kernel into accesses to the image."
4582 msgstr ""
4583
4584 # type: textblock
4585 #. type: textblock
4586 #: ../src/guestfs.pod:2143
4587 msgid ""
4588 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4589 "Although the disk image you are attached to might also be used by some "
4590 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4591 "care if both libguestfs's qemu process and your virtual machine are trying "
4592 "to update the disk image at the same time, since these usually results in "
4593 "massive disk corruption)."
4594 msgstr ""
4595
4596 # type: =head1
4597 #. type: =head1
4598 #: ../src/guestfs.pod:2150
4599 msgid "STATE MACHINE"
4600 msgstr ""
4601
4602 # type: textblock
4603 #. type: textblock
4604 #: ../src/guestfs.pod:2152
4605 msgid "libguestfs uses a state machine to model the child process:"
4606 msgstr ""
4607
4608 # type: verbatim
4609 #. type: verbatim
4610 #: ../src/guestfs.pod:2154
4611 #, no-wrap
4612 msgid ""
4613 "                         |\n"
4614 "                    guestfs_create\n"
4615 "                         |\n"
4616 "                         |\n"
4617 "                     ____V_____\n"
4618 "                    /          \\\n"
4619 "                    |  CONFIG  |\n"
4620 "                    \\__________/\n"
4621 "                     ^ ^   ^  \\\n"
4622 "                    /  |    \\  \\ guestfs_launch\n"
4623 "                   /   |    _\\__V______\n"
4624 "                  /    |   /           \\\n"
4625 "                 /     |   | LAUNCHING |\n"
4626 "                /      |   \\___________/\n"
4627 "               /       |       /\n"
4628 "              /        |  guestfs_launch\n"
4629 "             /         |     /\n"
4630 "    ______  /        __|____V\n"
4631 "   /      \\ ------> /        \\\n"
4632 "   | BUSY |         | READY  |\n"
4633 "   \\______/ <------ \\________/\n"
4634 "\n"
4635 msgstr ""
4636
4637 # type: textblock
4638 #. type: textblock
4639 #: ../src/guestfs.pod:2176
4640 msgid ""
4641 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4642 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4643 "(3) alternating between READY and BUSY as commands are issued to, and "
4644 "carried out by, the child process."
4645 msgstr ""
4646
4647 # type: textblock
4648 #. type: textblock
4649 #: ../src/guestfs.pod:2181
4650 msgid ""
4651 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4652 "asynchronously at any time (eg. due to some internal error), and that causes "
4653 "the state to transition back to CONFIG."
4654 msgstr ""
4655
4656 # type: textblock
4657 #. type: textblock
4658 #: ../src/guestfs.pod:2185
4659 msgid ""
4660 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4661 "issued when in the CONFIG state."
4662 msgstr ""
4663
4664 # type: textblock
4665 #. type: textblock
4666 #: ../src/guestfs.pod:2188
4667 msgid ""
4668 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4669 "L</guestfs_launch> blocks until the child process is READY to accept "
4670 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4671 "moves the state from CONFIG to LAUNCHING while it is running."
4672 msgstr ""
4673
4674 # type: textblock
4675 #. type: textblock
4676 #: ../src/guestfs.pod:2194
4677 msgid ""
4678 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4679 "state.  These API calls block waiting for the command to be carried out (ie. "
4680 "the state to transition to BUSY and then back to READY).  There are no non-"
4681 "blocking versions, and no way to issue more than one command per handle at "
4682 "the same time."
4683 msgstr ""
4684
4685 # type: textblock
4686 #. type: textblock
4687 #: ../src/guestfs.pod:2200
4688 msgid ""
4689 "Finally, the child process sends asynchronous messages back to the main "
4690 "program, such as kernel log messages.  You can register a callback to "
4691 "receive these messages."
4692 msgstr ""
4693
4694 # type: =head1
4695 #. type: =head1
4696 #: ../src/guestfs.pod:2204
4697 msgid "INTERNALS"
4698 msgstr ""
4699
4700 # type: =head2
4701 #. type: =head2
4702 #: ../src/guestfs.pod:2206
4703 msgid "COMMUNICATION PROTOCOL"
4704 msgstr ""
4705
4706 # type: textblock
4707 #. type: textblock
4708 #: ../src/guestfs.pod:2208
4709 msgid ""
4710 "Don't rely on using this protocol directly.  This section documents how it "
4711 "currently works, but it may change at any time."
4712 msgstr ""
4713
4714 # type: textblock
4715 #. type: textblock
4716 #: ../src/guestfs.pod:2211
4717 msgid ""
4718 "The protocol used to talk between the library and the daemon running inside "
4719 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4720 "1014, RFC 1832, RFC 4506)."
4721 msgstr ""
4722
4723 # type: textblock
4724 #. type: textblock
4725 #: ../src/guestfs.pod:2215
4726 msgid ""
4727 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4728 "this file is automatically generated)."
4729 msgstr ""
4730
4731 # type: textblock
4732 #. type: textblock
4733 #: ../src/guestfs.pod:2218
4734 msgid ""
4735 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4736 "and C<FileOut> parameters, which are handled with very simple request/reply "
4737 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4738 "parameters, which use the same request and reply messages, but they may also "
4739 "be followed by files sent using a chunked encoding."
4740 msgstr ""
4741
4742 # type: =head3
4743 #. type: =head3
4744 #: ../src/guestfs.pod:2225
4745 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4746 msgstr ""
4747
4748 # type: textblock
4749 #. type: textblock
4750 #: ../src/guestfs.pod:2227
4751 msgid "For ordinary functions, the request message is:"
4752 msgstr ""
4753
4754 # type: verbatim
4755 #. type: verbatim
4756 #: ../src/guestfs.pod:2229
4757 #, no-wrap
4758 msgid ""
4759 " total length (header + arguments,\n"
4760 "      but not including the length word itself)\n"
4761 " struct guestfs_message_header (encoded as XDR)\n"
4762 " struct guestfs_<foo>_args (encoded as XDR)\n"
4763 "\n"
4764 msgstr ""
4765
4766 # type: textblock
4767 #. type: textblock
4768 #: ../src/guestfs.pod:2234
4769 msgid ""
4770 "The total length field allows the daemon to allocate a fixed size buffer "
4771 "into which it slurps the rest of the message.  As a result, the total length "
4772 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4773 "effective size of any request is limited to somewhere under this size."
4774 msgstr ""
4775
4776 # type: textblock
4777 #. type: textblock
4778 #: ../src/guestfs.pod:2240
4779 msgid ""
4780 "Note also that many functions don't take any arguments, in which case the "
4781 "C<guestfs_I<foo>_args> is completely omitted."
4782 msgstr ""
4783
4784 # type: textblock
4785 #. type: textblock
4786 #: ../src/guestfs.pod:2243
4787 msgid ""
4788 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4789 "receiver knows what type of args structure to expect, or none at all."
4790 msgstr ""
4791
4792 # type: textblock
4793 #. type: textblock
4794 #: ../src/guestfs.pod:2247
4795 msgid ""
4796 "For functions that take optional arguments, the optional arguments are "
4797 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4798 "arguments.  A bitmask in the header indicates which optional arguments are "
4799 "meaningful.  The bitmask is also checked to see if it contains bits set "
4800 "which the daemon does not know about (eg. if more optional arguments were "
4801 "added in a later version of the library), and this causes the call to be "
4802 "rejected."
4803 msgstr ""
4804
4805 # type: textblock
4806 #. type: textblock
4807 #: ../src/guestfs.pod:2255
4808 msgid "The reply message for ordinary functions is:"
4809 msgstr ""
4810
4811 # type: verbatim
4812 #. type: verbatim
4813 #: ../src/guestfs.pod:2257
4814 #, no-wrap
4815 msgid ""
4816 " total length (header + ret,\n"
4817 "      but not including the length word itself)\n"
4818 " struct guestfs_message_header (encoded as XDR)\n"
4819 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4820 "\n"
4821 msgstr ""
4822
4823 # type: textblock
4824 #. type: textblock
4825 #: ../src/guestfs.pod:2262
4826 msgid ""
4827 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4828 "functions that return no formal return values."
4829 msgstr ""
4830
4831 # type: textblock
4832 #. type: textblock
4833 #: ../src/guestfs.pod:2265
4834 msgid ""
4835 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4836 msgstr ""
4837
4838 # type: textblock
4839 #. type: textblock
4840 #: ../src/guestfs.pod:2268
4841 msgid ""
4842 "In the case of an error, a flag is set in the header, and the reply message "
4843 "is slightly changed:"
4844 msgstr ""
4845
4846 # type: verbatim
4847 #. type: verbatim
4848 #: ../src/guestfs.pod:2271
4849 #, no-wrap
4850 msgid ""
4851 " total length (header + error,\n"
4852 "      but not including the length word itself)\n"
4853 " struct guestfs_message_header (encoded as XDR)\n"
4854 " struct guestfs_message_error (encoded as XDR)\n"
4855 "\n"
4856 msgstr ""
4857
4858 # type: textblock
4859 #. type: textblock
4860 #: ../src/guestfs.pod:2276
4861 msgid ""
4862 "The C<guestfs_message_error> structure contains the error message as a "
4863 "string."
4864 msgstr ""
4865
4866 # type: =head3
4867 #. type: =head3
4868 #: ../src/guestfs.pod:2279
4869 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4870 msgstr ""
4871
4872 # type: textblock
4873 #. type: textblock
4874 #: ../src/guestfs.pod:2281
4875 msgid ""
4876 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4877 "The normal request message is sent (see above).  However this is followed by "
4878 "a sequence of file chunks."
4879 msgstr ""
4880
4881 # type: verbatim
4882 #. type: verbatim
4883 #: ../src/guestfs.pod:2285
4884 #, no-wrap
4885 msgid ""
4886 " total length (header + arguments,\n"
4887 "      but not including the length word itself,\n"
4888 "      and not including the chunks)\n"
4889 " struct guestfs_message_header (encoded as XDR)\n"
4890 " struct guestfs_<foo>_args (encoded as XDR)\n"
4891 " sequence of chunks for FileIn param #0\n"
4892 " sequence of chunks for FileIn param #1 etc.\n"
4893 "\n"
4894 msgstr ""
4895
4896 # type: textblock
4897 #. type: textblock
4898 #: ../src/guestfs.pod:2293
4899 msgid "The \"sequence of chunks\" is:"
4900 msgstr ""
4901
4902 # type: verbatim
4903 #. type: verbatim
4904 #: ../src/guestfs.pod:2295
4905 #, no-wrap
4906 msgid ""
4907 " length of chunk (not including length word itself)\n"
4908 " struct guestfs_chunk (encoded as XDR)\n"
4909 " length of chunk\n"
4910 " struct guestfs_chunk (encoded as XDR)\n"
4911 "   ...\n"
4912 " length of chunk\n"
4913 " struct guestfs_chunk (with data.data_len == 0)\n"
4914 "\n"
4915 msgstr ""
4916
4917 # type: textblock
4918 #. type: textblock
4919 #: ../src/guestfs.pod:2303
4920 msgid ""
4921 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4922 "is set in the final chunk to indicate either successful completion or early "
4923 "cancellation."
4924 msgstr ""
4925
4926 # type: textblock
4927 #. type: textblock
4928 #: ../src/guestfs.pod:2307
4929 msgid ""
4930 "At time of writing there are no functions that have more than one FileIn "
4931 "parameter.  However this is (theoretically) supported, by sending the "
4932 "sequence of chunks for each FileIn parameter one after another (from left to "
4933 "right)."
4934 msgstr ""
4935
4936 # type: textblock
4937 #. type: textblock
4938 #: ../src/guestfs.pod:2312
4939 msgid ""
4940 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4941 "transfer.  The library does this by sending a chunk with a special flag set "
4942 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4943 "RPC, does I<not> send any reply, and goes back to reading the next request."
4944 msgstr ""
4945
4946 # type: textblock
4947 #. type: textblock
4948 #: ../src/guestfs.pod:2318
4949 msgid ""
4950 "The daemon may also cancel.  It does this by writing a special word "
4951 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4952 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4953 "cancel chunk).  The special word is chosen so that even if cancellation "
4954 "happens right at the end of the transfer (after the library has finished "
4955 "writing and has started listening for the reply), the \"spurious\" cancel "
4956 "flag will not be confused with the reply message."
4957 msgstr ""
4958
4959 # type: textblock
4960 #. type: textblock
4961 #: ../src/guestfs.pod:2327
4962 msgid ""
4963 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4964 "limit), and also files where the size is not known in advance (eg. from "
4965 "pipes or sockets).  However the chunks are rather small "
4966 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4967 "to keep much in memory."
4968 msgstr ""
4969
4970 # type: =head3
4971 #. type: =head3
4972 #: ../src/guestfs.pod:2333
4973 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4974 msgstr ""
4975
4976 # type: textblock
4977 #. type: textblock
4978 #: ../src/guestfs.pod:2335
4979 msgid ""
4980 "The protocol for FileOut parameters is exactly the same as for FileIn "
4981 "parameters, but with the roles of daemon and library reversed."
4982 msgstr ""
4983
4984 # type: verbatim
4985 #. type: verbatim
4986 #: ../src/guestfs.pod:2338
4987 #, no-wrap
4988 msgid ""
4989 " total length (header + ret,\n"
4990 "      but not including the length word itself,\n"
4991 "      and not including the chunks)\n"
4992 " struct guestfs_message_header (encoded as XDR)\n"
4993 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4994 " sequence of chunks for FileOut param #0\n"
4995 " sequence of chunks for FileOut param #1 etc.\n"
4996 "\n"
4997 msgstr ""
4998
4999 # type: =head3
5000 #. type: =head3
5001 #: ../src/guestfs.pod:2346
5002 msgid "INITIAL MESSAGE"
5003 msgstr ""
5004
5005 # type: textblock
5006 #. type: textblock
5007 #: ../src/guestfs.pod:2348
5008 msgid ""
5009 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
5010 "which indicates that the guest and daemon is alive.  This is what L</"
5011 "guestfs_launch> waits for."
5012 msgstr ""
5013
5014 # type: =head3
5015 #. type: =head3
5016 #: ../src/guestfs.pod:2352
5017 msgid "PROGRESS NOTIFICATION MESSAGES"
5018 msgstr ""
5019
5020 # type: textblock
5021 #. type: textblock
5022 #: ../src/guestfs.pod:2354
5023 msgid ""
5024 "The daemon may send progress notification messages at any time.  These are "
5025 "distinguished by the normal length word being replaced by "
5026 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
5027 msgstr ""
5028
5029 #. type: textblock
5030 #: ../src/guestfs.pod:2358
5031 msgid ""
5032 "The library turns them into progress callbacks (see L</"
5033 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
5034 "if not."
5035 msgstr ""
5036
5037 # type: textblock
5038 #. type: textblock
5039 #: ../src/guestfs.pod:2362
5040 msgid ""
5041 "The daemon self-limits the frequency of progress messages it sends (see "
5042 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
5043 "messages."
5044 msgstr ""
5045
5046 # type: =head1
5047 #. type: =head1
5048 #: ../src/guestfs.pod:2366
5049 msgid "LIBGUESTFS VERSION NUMBERS"
5050 msgstr ""
5051
5052 # type: textblock
5053 #. type: textblock
5054 #: ../src/guestfs.pod:2368
5055 msgid ""
5056 "Since April 2010, libguestfs has started to make separate development and "
5057 "stable releases, along with corresponding branches in our git repository.  "
5058 "These separate releases can be identified by version number:"
5059 msgstr ""
5060
5061 # type: verbatim
5062 #. type: verbatim
5063 #: ../src/guestfs.pod:2373
5064 #, no-wrap
5065 msgid ""
5066 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5067 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5068 "       |\n"
5069 "       v\n"
5070 " 1  .  3  .  5\n"
5071 " ^           ^\n"
5072 " |           |\n"
5073 " |           `-------- sub-version\n"
5074 " |\n"
5075 " `------ always '1' because we don't change the ABI\n"
5076 "\n"
5077 msgstr ""
5078
5079 # type: textblock
5080 #. type: textblock
5081 #: ../src/guestfs.pod:2384
5082 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5083 msgstr ""
5084
5085 # type: textblock
5086 #. type: textblock
5087 #: ../src/guestfs.pod:2386
5088 msgid ""
5089 "As time passes we cherry pick fixes from the development branch and backport "
5090 "those into the stable branch, the effect being that the stable branch should "
5091 "get more stable and less buggy over time.  So the stable releases are ideal "
5092 "for people who don't need new features but would just like the software to "
5093 "work."
5094 msgstr ""
5095
5096 # type: textblock
5097 #. type: textblock
5098 #: ../src/guestfs.pod:2392
5099 msgid "Our criteria for backporting changes are:"
5100 msgstr ""
5101
5102 # type: textblock
5103 #. type: textblock
5104 #: ../src/guestfs.pod:2398
5105 msgid ""
5106 "Documentation changes which don't affect any code are backported unless the "
5107 "documentation refers to a future feature which is not in stable."
5108 msgstr ""
5109
5110 # type: textblock
5111 #. type: textblock
5112 #: ../src/guestfs.pod:2404
5113 msgid ""
5114 "Bug fixes which are not controversial, fix obvious problems, and have been "
5115 "well tested are backported."
5116 msgstr ""
5117
5118 # type: textblock
5119 #. type: textblock
5120 #: ../src/guestfs.pod:2409
5121 msgid ""
5122 "Simple rearrangements of code which shouldn't affect how it works get "
5123 "backported.  This is so that the code in the two branches doesn't get too "
5124 "far out of step, allowing us to backport future fixes more easily."
5125 msgstr ""
5126
5127 # type: textblock
5128 #. type: textblock
5129 #: ../src/guestfs.pod:2415
5130 msgid ""
5131 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5132 "exceptional case: the new feature is required in order to implement an "
5133 "important bug fix."
5134 msgstr ""
5135
5136 # type: textblock
5137 #. type: textblock
5138 #: ../src/guestfs.pod:2421
5139 msgid ""
5140 "A new stable branch starts when we think the new features in development are "
5141 "substantial and compelling enough over the current stable branch to warrant "
5142 "it.  When that happens we create new stable and development versions 1.N.0 "
5143 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5144 "stable at this point, but by backporting fixes from development, that branch "
5145 "will stabilize over time."
5146 msgstr ""
5147
5148 #. type: =head1
5149 #: ../src/guestfs.pod:2429
5150 msgid "EXTENDING LIBGUESTFS"
5151 msgstr ""
5152
5153 #. type: =head2
5154 #: ../src/guestfs.pod:2431
5155 msgid "ADDING A NEW API ACTION"
5156 msgstr ""
5157
5158 #. type: textblock
5159 #: ../src/guestfs.pod:2433
5160 msgid ""
5161 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5162 "documentation) are generated, and this makes it easy to extend the "
5163 "libguestfs API."
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../src/guestfs.pod:2437
5168 msgid "To add a new API action there are two changes:"
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../src/guestfs.pod:2443
5173 msgid ""
5174 "You need to add a description of the call (name, parameters, return type, "
5175 "tests, documentation) to C<generator/generator_actions.ml>."
5176 msgstr ""
5177
5178 #. type: textblock
5179 #: ../src/guestfs.pod:2446
5180 msgid ""
5181 "There are two sorts of API action, depending on whether the call goes "
5182 "through to the daemon in the appliance, or is serviced entirely by the "
5183 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5184 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5185 "an example of the latter, since a trace flag is maintained in the handle and "
5186 "all tracing is done on the library side."
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../src/guestfs.pod:2454
5191 msgid ""
5192 "Most new actions are of the first type, and get added to the "
5193 "C<daemon_functions> list.  Each function has a unique procedure number used "
5194 "in the RPC protocol which is assigned to that action when we publish "
5195 "libguestfs and cannot be reused.  Take the latest procedure number and "
5196 "increment it."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../src/guestfs.pod:2460
5201 msgid ""
5202 "For library-only actions of the second type, add to the "
5203 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5204 "library and do not travel over the RPC mechanism to the daemon, these "
5205 "functions do not need a procedure number, and so the procedure number is set "
5206 "to C<-1>."
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../src/guestfs.pod:2468
5211 msgid "Implement the action (in C):"
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../src/guestfs.pod:2470
5216 msgid ""
5217 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5218 "C<daemon/> directory."
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../src/guestfs.pod:2473
5223 msgid ""
5224 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5225 "(note: double underscore) in the C<src/> directory."
5226 msgstr ""
5227
5228 #. type: textblock
5229 #: ../src/guestfs.pod:2476
5230 msgid "In either case, use another function as an example of what to do."
5231 msgstr ""
5232
5233 #. type: textblock
5234 #: ../src/guestfs.pod:2480
5235 msgid "After making these changes, use C<make> to compile."
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../src/guestfs.pod:2482
5240 msgid ""
5241 "Note that you don't need to implement the RPC, language bindings, manual "
5242 "pages or anything else.  It's all automatically generated from the OCaml "
5243 "description."
5244 msgstr ""
5245
5246 #. type: =head2
5247 #: ../src/guestfs.pod:2486
5248 msgid "ADDING TESTS FOR AN API ACTION"
5249 msgstr ""
5250
5251 #. type: textblock
5252 #: ../src/guestfs.pod:2488
5253 msgid ""
5254 "You can supply zero or as many tests as you want per API call.  The tests "
5255 "can either be added as part of the API description (C<generator/"
5256 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5257 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5258 "slower, so if possible use the first method."
5259 msgstr ""
5260
5261 #. type: textblock
5262 #: ../src/guestfs.pod:2494
5263 msgid ""
5264 "The following describes the test environment used when you add an API test "
5265 "in C<generator_actions.ml>."
5266 msgstr ""
5267
5268 #. type: textblock
5269 #: ../src/guestfs.pod:2497
5270 msgid "The test environment has 4 block devices:"
5271 msgstr ""
5272
5273 #. type: =item
5274 #: ../src/guestfs.pod:2501
5275 msgid "C</dev/sda> 500MB"
5276 msgstr ""
5277
5278 #. type: textblock
5279 #: ../src/guestfs.pod:2503
5280 msgid "General block device for testing."
5281 msgstr ""
5282
5283 #. type: =item
5284 #: ../src/guestfs.pod:2505
5285 msgid "C</dev/sdb> 50MB"
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../src/guestfs.pod:2507
5290 msgid ""
5291 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5292 "operations."
5293 msgstr ""
5294
5295 #. type: =item
5296 #: ../src/guestfs.pod:2510
5297 msgid "C</dev/sdc> 10MB"
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../src/guestfs.pod:2512
5302 msgid "Used in a few tests where two block devices are needed."
5303 msgstr ""
5304
5305 #. type: =item
5306 #: ../src/guestfs.pod:2514
5307 msgid "C</dev/sdd>"
5308 msgstr ""
5309
5310 #. type: textblock
5311 #: ../src/guestfs.pod:2516
5312 msgid "ISO with fixed content (see C<images/test.iso>)."
5313 msgstr ""
5314
5315 #. type: textblock
5316 #: ../src/guestfs.pod:2520
5317 msgid ""
5318 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5319 "appliance and block devices are reused between tests.  So don't try testing "
5320 "L</guestfs_kill_subprocess> :-x"
5321 msgstr ""
5322
5323 #. type: textblock
5324 #: ../src/guestfs.pod:2524
5325 msgid ""
5326 "Each test starts with an initial scenario, selected using one of the "
5327 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5328 "initialize the disks mentioned above in a particular way as documented in "
5329 "C<generator_types.ml>.  You should not assume anything about the previous "
5330 "contents of other disks that are not initialized."
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../src/guestfs.pod:2530
5335 msgid ""
5336 "You can add a prerequisite clause to any individual test.  This is a run-"
5337 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5338 "testing a command which might not work on all variations of libguestfs "
5339 "builds.  A test that has prerequisite of C<Always> means to run "
5340 "unconditionally."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../src/guestfs.pod:2536
5345 msgid ""
5346 "In addition, packagers can skip individual tests by setting environment "
5347 "variables before running C<make check>."
5348 msgstr ""
5349
5350 #. type: verbatim
5351 #: ../src/guestfs.pod:2539
5352 #, no-wrap
5353 msgid ""
5354 " SKIP_TEST_<CMD>_<NUM>=1\n"
5355 "\n"
5356 msgstr ""
5357
5358 #. type: textblock
5359 #: ../src/guestfs.pod:2541
5360 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5361 msgstr ""
5362
5363 #. type: textblock
5364 #: ../src/guestfs.pod:2543
5365 msgid "or:"
5366 msgstr ""
5367
5368 #. type: verbatim
5369 #: ../src/guestfs.pod:2545
5370 #, no-wrap
5371 msgid ""
5372 " SKIP_TEST_<CMD>=1\n"
5373 "\n"
5374 msgstr ""
5375
5376 #. type: textblock
5377 #: ../src/guestfs.pod:2547
5378 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../src/guestfs.pod:2549
5383 msgid "Packagers can run only certain tests by setting for example:"
5384 msgstr ""
5385
5386 #. type: verbatim
5387 #: ../src/guestfs.pod:2551
5388 #, no-wrap
5389 msgid ""
5390 " TEST_ONLY=\"vfs_type zerofree\"\n"
5391 "\n"
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../src/guestfs.pod:2553
5396 msgid ""
5397 "See C<capitests/tests.c> for more details of how these environment variables "
5398 "work."
5399 msgstr ""
5400
5401 #. type: =head2
5402 #: ../src/guestfs.pod:2556
5403 msgid "DEBUGGING NEW API ACTIONS"
5404 msgstr ""
5405
5406 #. type: textblock
5407 #: ../src/guestfs.pod:2558
5408 msgid "Test new actions work before submitting them."
5409 msgstr ""
5410
5411 #. type: textblock
5412 #: ../src/guestfs.pod:2560
5413 msgid "You can use guestfish to try out new commands."
5414 msgstr ""
5415
5416 #. type: textblock
5417 #: ../src/guestfs.pod:2562
5418 msgid ""
5419 "Debugging the daemon is a problem because it runs inside a minimal "
5420 "environment.  However you can fprintf messages in the daemon to stderr, and "
5421 "they will show up if you use C<guestfish -v>."
5422 msgstr ""
5423
5424 #. type: =head2
5425 #: ../src/guestfs.pod:2566
5426 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5427 msgstr ""
5428
5429 #. type: textblock
5430 #: ../src/guestfs.pod:2568
5431 msgid ""
5432 "Our C source code generally adheres to some basic code-formatting "
5433 "conventions.  The existing code base is not totally consistent on this "
5434 "front, but we do prefer that contributed code be formatted similarly.  In "
5435 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5436 "indentation level, and other than that, follow the K&R style."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../src/guestfs.pod:2574
5441 msgid ""
5442 "If you use Emacs, add the following to one of one of your start-up files (e."
5443 "g., ~/.emacs), to help ensure that you get indentation right:"
5444 msgstr ""
5445
5446 #. type: verbatim
5447 #: ../src/guestfs.pod:2577
5448 #, no-wrap
5449 msgid ""
5450 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5451 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5452 " (add-hook 'find-file-hook\n"
5453 "     '(lambda () (if (and buffer-file-name\n"
5454 "                          (string-match \"/libguestfs\\\\>\"\n"
5455 "                              (buffer-file-name))\n"
5456 "                          (not (string-equal mode-name \"Change Log\"))\n"
5457 "                          (not (string-equal mode-name \"Makefile\")))\n"
5458 "                     (setq indent-tabs-mode nil))))\n"
5459 " \n"
5460 msgstr ""
5461
5462 #. type: verbatim
5463 #: ../src/guestfs.pod:2587
5464 #, no-wrap
5465 msgid ""
5466 " ;;; When editing C sources in libguestfs, use this style.\n"
5467 " (defun libguestfs-c-mode ()\n"
5468 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5469 "   (interactive)\n"
5470 "   (c-set-style \"K&R\")\n"
5471 "   (setq c-indent-level 2)\n"
5472 "   (setq c-basic-offset 2))\n"
5473 " (add-hook 'c-mode-hook\n"
5474 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5475 "                               (buffer-file-name))\n"
5476 "                           (libguestfs-c-mode))))\n"
5477 "\n"
5478 msgstr ""
5479
5480 #. type: textblock
5481 #: ../src/guestfs.pod:2599
5482 msgid "Enable warnings when compiling (and fix any problems this finds):"
5483 msgstr ""
5484
5485 #. type: verbatim
5486 #: ../src/guestfs.pod:2602
5487 #, no-wrap
5488 msgid ""
5489 " ./configure --enable-gcc-warnings\n"
5490 "\n"
5491 msgstr ""
5492
5493 #. type: textblock
5494 #: ../src/guestfs.pod:2604
5495 msgid "Useful targets are:"
5496 msgstr ""
5497
5498 #. type: verbatim
5499 #: ../src/guestfs.pod:2606
5500 #, no-wrap
5501 msgid ""
5502 " make syntax-check  # checks the syntax of the C code\n"
5503 " make check         # runs the test suite\n"
5504 "\n"
5505 msgstr ""
5506
5507 #. type: =head2
5508 #: ../src/guestfs.pod:2609
5509 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../src/guestfs.pod:2611
5514 msgid ""
5515 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5516 "which are used to do shell quoting."
5517 msgstr ""
5518
5519 #. type: =item
5520 #: ../src/guestfs.pod:2616
5521 msgid "%Q"
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../src/guestfs.pod:2618
5526 msgid ""
5527 "Simple shell quoted string.  Any spaces or other shell characters are "
5528 "escaped for you."
5529 msgstr ""
5530
5531 #. type: =item
5532 #: ../src/guestfs.pod:2621
5533 msgid "%R"
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../src/guestfs.pod:2623
5538 msgid ""
5539 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5540 "the sysroot."
5541 msgstr ""
5542
5543 # type: textblock
5544 #. type: textblock
5545 #: ../src/guestfs.pod:2628 ../fish/guestfish.pod:240 ../fish/guestfish.pod:613
5546 msgid "For example:"
5547 msgstr ""
5548
5549 #. type: verbatim
5550 #: ../src/guestfs.pod:2630
5551 #, no-wrap
5552 msgid ""
5553 " asprintf (&cmd, \"cat %R\", path);\n"
5554 "\n"
5555 msgstr ""
5556
5557 #. type: textblock
5558 #: ../src/guestfs.pod:2632
5559 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../src/guestfs.pod:2634
5564 msgid ""
5565 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5566 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5567 "they are not passed via the shell (instead, straight to exec).  You probably "
5568 "want to use the C<sysroot_path()> function however."
5569 msgstr ""
5570
5571 #. type: =head2
5572 #: ../src/guestfs.pod:2640
5573 msgid "SUBMITTING YOUR NEW API ACTIONS"
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../src/guestfs.pod:2642
5578 msgid ""
5579 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5580 "libguestfs> and CC to L<rjones@redhat.com>."
5581 msgstr ""
5582
5583 #. type: =head2
5584 #: ../src/guestfs.pod:2646
5585 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5586 msgstr ""
5587
5588 #. type: textblock
5589 #: ../src/guestfs.pod:2648
5590 msgid "We support i18n (gettext anyhow) in the library."
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../src/guestfs.pod:2650
5595 msgid ""
5596 "However many messages come from the daemon, and we don't translate those at "
5597 "the moment.  One reason is that the appliance generally has all locale files "
5598 "removed from it, because they take up a lot of space.  So we'd have to readd "
5599 "some of those, as well as copying our PO files into the appliance."
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../src/guestfs.pod:2656
5604 msgid ""
5605 "Debugging messages are never translated, since they are intended for the "
5606 "programmers."
5607 msgstr ""
5608
5609 #. type: =head2
5610 #: ../src/guestfs.pod:2659
5611 msgid "SOURCE CODE SUBDIRECTORIES"
5612 msgstr ""
5613
5614 #. type: =item
5615 #: ../src/guestfs.pod:2663 ../src/guestfs-actions.pod:5735
5616 #: ../fish/guestfish-actions.pod:3842
5617 msgid "C<appliance>"
5618 msgstr ""
5619
5620 #. type: textblock
5621 #: ../src/guestfs.pod:2665
5622 msgid "The libguestfs appliance, build scripts and so on."
5623 msgstr ""
5624
5625 #. type: =item
5626 #: ../src/guestfs.pod:2667
5627 msgid "C<capitests>"
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../src/guestfs.pod:2669
5632 msgid "Automated tests of the C API."
5633 msgstr ""
5634
5635 #. type: =item
5636 #: ../src/guestfs.pod:2671
5637 msgid "C<cat>"
5638 msgstr ""
5639
5640 #. type: textblock
5641 #: ../src/guestfs.pod:2673
5642 msgid ""
5643 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5644 "documentation."
5645 msgstr ""
5646
5647 #. type: =item
5648 #: ../src/guestfs.pod:2676
5649 msgid "C<contrib>"
5650 msgstr ""
5651
5652 #. type: textblock
5653 #: ../src/guestfs.pod:2678
5654 msgid "Outside contributions, experimental parts."
5655 msgstr ""
5656
5657 #. type: =item
5658 #: ../src/guestfs.pod:2680
5659 msgid "C<daemon>"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../src/guestfs.pod:2682
5664 msgid ""
5665 "The daemon that runs inside the libguestfs appliance and carries out actions."
5666 msgstr ""
5667
5668 #. type: =item
5669 #: ../src/guestfs.pod:2685
5670 msgid "C<df>"
5671 msgstr ""
5672
5673 #. type: textblock
5674 #: ../src/guestfs.pod:2687
5675 msgid "L<virt-df(1)> command and documentation."
5676 msgstr ""
5677
5678 #. type: =item
5679 #: ../src/guestfs.pod:2689
5680 msgid "C<examples>"
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../src/guestfs.pod:2691
5685 msgid "C API example code."
5686 msgstr ""
5687
5688 #. type: =item
5689 #: ../src/guestfs.pod:2693
5690 msgid "C<fish>"
5691 msgstr ""
5692
5693 #. type: textblock
5694 #: ../src/guestfs.pod:2695
5695 msgid ""
5696 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5697 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5698 "L<virt-tar-out(1)>."
5699 msgstr ""
5700
5701 #. type: =item
5702 #: ../src/guestfs.pod:2699
5703 msgid "C<fuse>"
5704 msgstr ""
5705
5706 #. type: textblock
5707 #: ../src/guestfs.pod:2701
5708 msgid ""
5709 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5710 msgstr ""
5711
5712 #. type: =item
5713 #: ../src/guestfs.pod:2703
5714 msgid "C<generator>"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../src/guestfs.pod:2705
5719 msgid ""
5720 "The crucially important generator, used to automatically generate large "
5721 "amounts of boilerplate C code for things like RPC and bindings."
5722 msgstr ""
5723
5724 #. type: =item
5725 #: ../src/guestfs.pod:2708
5726 msgid "C<images>"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../src/guestfs.pod:2710
5731 msgid "Files used by the test suite."
5732 msgstr ""
5733
5734 #. type: textblock
5735 #: ../src/guestfs.pod:2712
5736 msgid "Some \"phony\" guest images which we test against."
5737 msgstr ""
5738
5739 #. type: =item
5740 #: ../src/guestfs.pod:2714
5741 msgid "C<inspector>"
5742 msgstr ""
5743
5744 #. type: textblock
5745 #: ../src/guestfs.pod:2716
5746 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5747 msgstr ""
5748
5749 #. type: =item
5750 #: ../src/guestfs.pod:2718
5751 msgid "C<logo>"
5752 msgstr ""
5753
5754 #. type: textblock
5755 #: ../src/guestfs.pod:2720
5756 msgid "Logo used on the website.  The fish is called Arthur by the way."
5757 msgstr ""
5758
5759 #. type: =item
5760 #: ../src/guestfs.pod:2722
5761 msgid "C<m4>"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../src/guestfs.pod:2724
5766 msgid "M4 macros used by autoconf."
5767 msgstr ""
5768
5769 #. type: =item
5770 #: ../src/guestfs.pod:2726
5771 msgid "C<po>"
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../src/guestfs.pod:2728
5776 msgid "Translations of simple gettext strings."
5777 msgstr ""
5778
5779 #. type: =item
5780 #: ../src/guestfs.pod:2730
5781 msgid "C<po-docs>"
5782 msgstr ""
5783
5784 #. type: textblock
5785 #: ../src/guestfs.pod:2732
5786 msgid ""
5787 "The build infrastructure and PO files for translations of manpages and POD "
5788 "files.  Eventually this will be combined with the C<po> directory, but that "
5789 "is rather complicated."
5790 msgstr ""
5791
5792 #. type: =item
5793 #: ../src/guestfs.pod:2736
5794 msgid "C<regressions>"
5795 msgstr ""
5796
5797 #. type: textblock
5798 #: ../src/guestfs.pod:2738
5799 msgid "Regression tests."
5800 msgstr ""
5801
5802 #. type: =item
5803 #: ../src/guestfs.pod:2740
5804 msgid "C<rescue>"
5805 msgstr ""
5806
5807 #. type: textblock
5808 #: ../src/guestfs.pod:2742
5809 msgid "L<virt-rescue(1)> command and documentation."
5810 msgstr ""
5811
5812 #. type: =item
5813 #: ../src/guestfs.pod:2744
5814 msgid "C<src>"
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../src/guestfs.pod:2746
5819 msgid "Source code to the C library."
5820 msgstr ""
5821
5822 #. type: =item
5823 #: ../src/guestfs.pod:2748
5824 msgid "C<tools>"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../src/guestfs.pod:2750
5829 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5830 msgstr ""
5831
5832 #. type: =item
5833 #: ../src/guestfs.pod:2752
5834 msgid "C<test-tool>"
5835 msgstr ""
5836
5837 #. type: textblock
5838 #: ../src/guestfs.pod:2754
5839 msgid ""
5840 "Test tool for end users to test if their qemu/kernel combination will work "
5841 "with libguestfs."
5842 msgstr ""
5843
5844 #. type: =item
5845 #: ../src/guestfs.pod:2757
5846 msgid "C<csharp>"
5847 msgstr ""
5848
5849 #. type: =item
5850 #: ../src/guestfs.pod:2759
5851 msgid "C<haskell>"
5852 msgstr ""
5853
5854 #. type: =item
5855 #: ../src/guestfs.pod:2761
5856 msgid "C<java>"
5857 msgstr ""
5858
5859 #. type: =item
5860 #: ../src/guestfs.pod:2763
5861 msgid "C<ocaml>"
5862 msgstr ""
5863
5864 #. type: =item
5865 #: ../src/guestfs.pod:2765
5866 msgid "C<php>"
5867 msgstr ""
5868
5869 #. type: =item
5870 #: ../src/guestfs.pod:2767
5871 msgid "C<perl>"
5872 msgstr ""
5873
5874 #. type: =item
5875 #: ../src/guestfs.pod:2769
5876 msgid "C<python>"
5877 msgstr ""
5878
5879 #. type: =item
5880 #: ../src/guestfs.pod:2771
5881 msgid "C<ruby>"
5882 msgstr ""
5883
5884 #. type: textblock
5885 #: ../src/guestfs.pod:2773
5886 msgid "Language bindings."
5887 msgstr ""
5888
5889 # type: =head1
5890 #. type: =head1
5891 #: ../src/guestfs.pod:2777 ../fish/guestfish.pod:1010
5892 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5893 msgid "ENVIRONMENT VARIABLES"
5894 msgstr ""
5895
5896 # type: =item
5897 #. type: =item
5898 #: ../src/guestfs.pod:2781 ../fish/guestfish.pod:1036
5899 msgid "LIBGUESTFS_APPEND"
5900 msgstr ""
5901
5902 # type: textblock
5903 #. type: textblock
5904 #: ../src/guestfs.pod:2783 ../fish/guestfish.pod:1038
5905 msgid "Pass additional options to the guest kernel."
5906 msgstr ""
5907
5908 # type: =item
5909 #. type: =item
5910 #: ../src/guestfs.pod:2785 ../fish/guestfish.pod:1040
5911 msgid "LIBGUESTFS_DEBUG"
5912 msgstr ""
5913
5914 # type: textblock
5915 #. type: textblock
5916 #: ../src/guestfs.pod:2787
5917 msgid ""
5918 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5919 "effect as calling C<guestfs_set_verbose (g, 1)>."
5920 msgstr ""
5921
5922 # type: =item
5923 #. type: =item
5924 #: ../src/guestfs.pod:2790 ../fish/guestfish.pod:1045
5925 msgid "LIBGUESTFS_MEMSIZE"
5926 msgstr ""
5927
5928 # type: textblock
5929 #. type: textblock
5930 #: ../src/guestfs.pod:2792 ../fish/guestfish.pod:1047
5931 msgid ""
5932 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5933 msgstr ""
5934
5935 # type: verbatim
5936 #. type: verbatim
5937 #: ../src/guestfs.pod:2795 ../fish/guestfish.pod:1050
5938 #, no-wrap
5939 msgid ""
5940 " LIBGUESTFS_MEMSIZE=700\n"
5941 "\n"
5942 msgstr ""
5943
5944 # type: =item
5945 #. type: =item
5946 #: ../src/guestfs.pod:2797 ../fish/guestfish.pod:1052
5947 msgid "LIBGUESTFS_PATH"
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../src/guestfs.pod:2799
5952 msgid ""
5953 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5954 "the discussion of paths in section L</PATH> above."
5955 msgstr ""
5956
5957 # type: =item
5958 #. type: =item
5959 #: ../src/guestfs.pod:2802 ../fish/guestfish.pod:1057
5960 msgid "LIBGUESTFS_QEMU"
5961 msgstr ""
5962
5963 # type: textblock
5964 #. type: textblock
5965 #: ../src/guestfs.pod:2804 ../fish/guestfish.pod:1059
5966 msgid ""
5967 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5968 "which was found at compile time by the configure script is used."
5969 msgstr ""
5970
5971 # type: textblock
5972 #. type: textblock
5973 #: ../src/guestfs.pod:2808
5974 msgid "See also L</QEMU WRAPPERS> above."
5975 msgstr ""
5976
5977 # type: =item
5978 #. type: =item
5979 #: ../src/guestfs.pod:2810 ../fish/guestfish.pod:1063
5980 msgid "LIBGUESTFS_TRACE"
5981 msgstr ""
5982
5983 # type: textblock
5984 #. type: textblock
5985 #: ../src/guestfs.pod:2812
5986 msgid ""
5987 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5988 "effect as calling C<guestfs_set_trace (g, 1)>."
5989 msgstr ""
5990
5991 # type: =item
5992 #. type: =item
5993 #: ../src/guestfs.pod:2815 ../fish/guestfish.pod:1072
5994 msgid "TMPDIR"
5995 msgstr ""
5996
5997 #. type: textblock
5998 #: ../src/guestfs.pod:2817 ../fish/guestfish.pod:1074
5999 msgid ""
6000 "Location of temporary directory, defaults to C</tmp> except for the cached "
6001 "supermin appliance which defaults to C</var/tmp>."
6002 msgstr ""
6003
6004 #. type: textblock
6005 #: ../src/guestfs.pod:2820 ../fish/guestfish.pod:1077
6006 msgid ""
6007 "If libguestfs was compiled to use the supermin appliance then the real "
6008 "appliance is cached in this directory, shared between all handles belonging "
6009 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
6010 "use in case C</var/tmp> is not large enough."
6011 msgstr ""
6012
6013 # type: =head1
6014 #. type: =head1
6015 #: ../src/guestfs.pod:2828 ../fish/guestfish.pod:1144
6016 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:267
6017 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
6018 #: ../tools/virt-resize.pl:1489 ../tools/virt-list-filesystems.pl:189
6019 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
6020 #: ../tools/virt-list-partitions.pl:257
6021 msgid "SEE ALSO"
6022 msgstr ""
6023
6024 #. type: textblock
6025 #: ../src/guestfs.pod:2830
6026 msgid ""
6027 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6028 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6029 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6030 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6031 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6032 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6033 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6034 msgstr ""
6035
6036 # type: textblock
6037 #. type: textblock
6038 #: ../src/guestfs.pod:2857
6039 msgid ""
6040 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6041 "(8)>, L<disktype(1)>."
6042 msgstr ""
6043
6044 # type: =head1
6045 #. type: =head1
6046 #: ../src/guestfs.pod:2864 ../tools/virt-win-reg.pl:587
6047 #: ../tools/virt-make-fs.pl:553
6048 msgid "BUGS"
6049 msgstr ""
6050
6051 # type: textblock
6052 #. type: textblock
6053 #: ../src/guestfs.pod:2866
6054 msgid "To get a list of bugs against libguestfs use this link:"
6055 msgstr ""
6056
6057 # type: textblock
6058 #. type: textblock
6059 #: ../src/guestfs.pod:2868
6060 msgid ""
6061 "L<https://bugzilla.redhat.com/buglist.cgi?"
6062 "component=libguestfs&product=Virtualization+Tools>"
6063 msgstr ""
6064
6065 # type: textblock
6066 #. type: textblock
6067 #: ../src/guestfs.pod:2870
6068 msgid "To report a new bug against libguestfs use this link:"
6069 msgstr ""
6070
6071 # type: textblock
6072 #. type: textblock
6073 #: ../src/guestfs.pod:2872
6074 msgid ""
6075 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6076 "component=libguestfs&product=Virtualization+Tools>"
6077 msgstr ""
6078
6079 # type: textblock
6080 #. type: textblock
6081 #: ../src/guestfs.pod:2874
6082 msgid "When reporting a bug, please check:"
6083 msgstr ""
6084
6085 # type: textblock
6086 #. type: textblock
6087 #: ../src/guestfs.pod:2880
6088 msgid "That the bug hasn't been reported already."
6089 msgstr ""
6090
6091 # type: textblock
6092 #. type: textblock
6093 #: ../src/guestfs.pod:2884
6094 msgid "That you are testing a recent version."
6095 msgstr ""
6096
6097 # type: textblock
6098 #. type: textblock
6099 #: ../src/guestfs.pod:2888
6100 msgid "Describe the bug accurately, and give a way to reproduce it."
6101 msgstr ""
6102
6103 # type: textblock
6104 #. type: textblock
6105 #: ../src/guestfs.pod:2892
6106 msgid ""
6107 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6108 "bug report."
6109 msgstr ""
6110
6111 # type: =head1
6112 #. type: =head1
6113 #: ../src/guestfs.pod:2897 ../fish/guestfish.pod:1167
6114 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:278
6115 msgid "AUTHORS"
6116 msgstr ""
6117
6118 # type: textblock
6119 #. type: textblock
6120 #: ../src/guestfs.pod:2899 ../fish/guestfish.pod:1169
6121 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:280
6122 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6123 msgstr ""
6124
6125 # type: =head1
6126 #. type: =head1
6127 #: ../src/guestfs.pod:2901 ../fish/guestfish.pod:1171
6128 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:282
6129 #: ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602
6130 #: ../tools/virt-resize.pl:1514 ../tools/virt-list-filesystems.pl:206
6131 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6132 #: ../tools/virt-list-partitions.pl:273
6133 msgid "COPYRIGHT"
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../src/guestfs.pod:2903 ../fish/guestfish.pod:1173
6138 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
6139 msgstr ""
6140
6141 # type: textblock
6142 #. type: textblock
6143 #: ../src/guestfs.pod:2906
6144 msgid ""
6145 "This library is free software; you can redistribute it and/or modify it "
6146 "under the terms of the GNU Lesser General Public License as published by the "
6147 "Free Software Foundation; either version 2 of the License, or (at your "
6148 "option) any later version."
6149 msgstr ""
6150
6151 # type: textblock
6152 #. type: textblock
6153 #: ../src/guestfs.pod:2911
6154 msgid ""
6155 "This library is distributed in the hope that it will be useful, but WITHOUT "
6156 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6157 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6158 "for more details."
6159 msgstr ""
6160
6161 # type: textblock
6162 #. type: textblock
6163 #: ../src/guestfs.pod:2916
6164 msgid ""
6165 "You should have received a copy of the GNU Lesser General Public License "
6166 "along with this library; if not, write to the Free Software Foundation, "
6167 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6168 msgstr ""
6169
6170 # type: =head2
6171 #. type: =head2
6172 #: ../src/guestfs-actions.pod:1
6173 msgid "guestfs_add_cdrom"
6174 msgstr ""
6175
6176 # type: verbatim
6177 #. type: verbatim
6178 #: ../src/guestfs-actions.pod:3
6179 #, no-wrap
6180 msgid ""
6181 " int\n"
6182 " guestfs_add_cdrom (guestfs_h *g,\n"
6183 "                    const char *filename);\n"
6184 "\n"
6185 msgstr ""
6186
6187 # type: textblock
6188 #. type: textblock
6189 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6190 msgid "This function adds a virtual CD-ROM disk image to the guest."
6191 msgstr ""
6192
6193 # type: textblock
6194 #. type: textblock
6195 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6196 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
6197 msgstr ""
6198
6199 # type: textblock
6200 #. type: textblock
6201 #: ../src/guestfs-actions.pod:17
6202 msgid ""
6203 "This call checks for the existence of C<filename>.  This stops you from "
6204 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6205 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6206 "instead."
6207 msgstr ""
6208
6209 # type: textblock
6210 #. type: textblock
6211 #: ../src/guestfs-actions.pod:24
6212 msgid ""
6213 "If you just want to add an ISO file (often you use this as an efficient way "
6214 "to transfer large files into the guest), then you should probably use "
6215 "C<guestfs_add_drive_ro> instead."
6216 msgstr ""
6217
6218 # type: textblock
6219 #. type: textblock
6220 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:134
6221 #: ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:232
6222 #: ../src/guestfs-actions.pod:246 ../src/guestfs-actions.pod:267
6223 #: ../src/guestfs-actions.pod:287 ../src/guestfs-actions.pod:301
6224 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:436
6225 #: ../src/guestfs-actions.pod:450 ../src/guestfs-actions.pod:495
6226 #: ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:541
6227 #: ../src/guestfs-actions.pod:608 ../src/guestfs-actions.pod:641
6228 #: ../src/guestfs-actions.pod:655 ../src/guestfs-actions.pod:670
6229 #: ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:787
6230 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:815
6231 #: ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:996
6232 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1098
6233 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:1135
6234 #: ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1169
6235 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1270
6236 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1337
6237 #: ../src/guestfs-actions.pod:1443 ../src/guestfs-actions.pod:1477
6238 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1717
6239 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2266
6240 #: ../src/guestfs-actions.pod:2410 ../src/guestfs-actions.pod:2471
6241 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:3380
6242 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3420
6243 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
6244 #: ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:3616
6245 #: ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3667
6246 #: ../src/guestfs-actions.pod:3739 ../src/guestfs-actions.pod:3759
6247 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3799
6248 #: ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3854
6249 #: ../src/guestfs-actions.pod:3873 ../src/guestfs-actions.pod:3892
6250 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:3939
6251 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3991
6252 #: ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:4019
6253 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4129
6254 #: ../src/guestfs-actions.pod:4149 ../src/guestfs-actions.pod:4162
6255 #: ../src/guestfs-actions.pod:4213 ../src/guestfs-actions.pod:4231
6256 #: ../src/guestfs-actions.pod:4249 ../src/guestfs-actions.pod:4265
6257 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4293
6258 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4325
6259 #: ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4403
6260 #: ../src/guestfs-actions.pod:4476 ../src/guestfs-actions.pod:4507
6261 #: ../src/guestfs-actions.pod:4526 ../src/guestfs-actions.pod:4545
6262 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4574
6263 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4602
6264 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4652
6265 #: ../src/guestfs-actions.pod:4667 ../src/guestfs-actions.pod:4687
6266 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4718
6267 #: ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4804
6268 #: ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4846
6269 #: ../src/guestfs-actions.pod:4863 ../src/guestfs-actions.pod:4881
6270 #: ../src/guestfs-actions.pod:5015 ../src/guestfs-actions.pod:5072
6271 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:5112
6272 #: ../src/guestfs-actions.pod:5144 ../src/guestfs-actions.pod:5210
6273 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5240
6274 #: ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5543
6275 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5581
6276 #: ../src/guestfs-actions.pod:5593 ../src/guestfs-actions.pod:5605
6277 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5631
6278 #: ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5661
6279 #: ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5701
6280 #: ../src/guestfs-actions.pod:5720 ../src/guestfs-actions.pod:5750
6281 #: ../src/guestfs-actions.pod:5766 ../src/guestfs-actions.pod:5789
6282 #: ../src/guestfs-actions.pod:5807 ../src/guestfs-actions.pod:5826
6283 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5866
6284 #: ../src/guestfs-actions.pod:5883 ../src/guestfs-actions.pod:5911
6285 #: ../src/guestfs-actions.pod:5935 ../src/guestfs-actions.pod:5954
6286 #: ../src/guestfs-actions.pod:5978 ../src/guestfs-actions.pod:5997
6287 #: ../src/guestfs-actions.pod:6012 ../src/guestfs-actions.pod:6031
6288 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6091
6289 #: ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6225
6290 #: ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6358
6291 #: ../src/guestfs-actions.pod:6371 ../src/guestfs-actions.pod:6384
6292 #: ../src/guestfs-actions.pod:6406 ../src/guestfs-actions.pod:6419
6293 #: ../src/guestfs-actions.pod:6432 ../src/guestfs-actions.pod:6445
6294 #: ../src/guestfs-actions.pod:6460 ../src/guestfs-actions.pod:6519
6295 #: ../src/guestfs-actions.pod:6536 ../src/guestfs-actions.pod:6552
6296 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6585
6297 #: ../src/guestfs-actions.pod:6598 ../src/guestfs-actions.pod:6618
6298 #: ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6668
6299 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:6722
6300 #: ../src/guestfs-actions.pod:6740 ../src/guestfs-actions.pod:6774
6301 #: ../src/guestfs-actions.pod:6810 ../src/guestfs-actions.pod:6929
6302 #: ../src/guestfs-actions.pod:6947 ../src/guestfs-actions.pod:6961
6303 #: ../src/guestfs-actions.pod:7016 ../src/guestfs-actions.pod:7029
6304 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7107
6305 #: ../src/guestfs-actions.pod:7161 ../src/guestfs-actions.pod:7187
6306 #: ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7272
6307 #: ../src/guestfs-actions.pod:7301
6308 msgid "This function returns 0 on success or -1 on error."
6309 msgstr ""
6310
6311 # type: textblock
6312 #. type: textblock
6313 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:248
6314 #: ../src/guestfs-actions.pod:269 ../fish/guestfish-actions.pod:28
6315 #: ../fish/guestfish-actions.pod:158 ../fish/guestfish-actions.pod:172
6316 msgid ""
6317 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6318 "instead."
6319 msgstr ""
6320
6321 # type: textblock
6322 #. type: textblock
6323 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:251
6324 #: ../src/guestfs-actions.pod:272 ../src/guestfs-actions.pod:1448
6325 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:1965
6326 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:7195
6327 #: ../src/guestfs-actions.pod:7364 ../fish/guestfish-actions.pod:31
6328 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:175
6329 #: ../fish/guestfish-actions.pod:956 ../fish/guestfish-actions.pod:1319
6330 #: ../fish/guestfish-actions.pod:1333 ../fish/guestfish-actions.pod:2942
6331 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4897
6332 msgid ""
6333 "Deprecated functions will not be removed from the API, but the fact that "
6334 "they are deprecated indicates that there are problems with correct use of "
6335 "these functions."
6336 msgstr ""
6337
6338 # type: textblock
6339 #. type: textblock
6340 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:136
6341 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1916
6342 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2117
6343 #: ../src/guestfs-actions.pod:3382 ../src/guestfs-actions.pod:3402
6344 #: ../src/guestfs-actions.pod:4654 ../src/guestfs-actions.pod:5768
6345 #: ../src/guestfs-actions.pod:5885 ../src/guestfs-actions.pod:5999
6346 #: ../src/guestfs-actions.pod:6462 ../src/guestfs-actions.pod:6587
6347 #: ../src/guestfs-actions.pod:7109
6348 msgid "(Added in 0.3)"
6349 msgstr ""
6350
6351 # type: =head2
6352 #. type: =head2
6353 #: ../src/guestfs-actions.pod:41
6354 msgid "guestfs_add_domain"
6355 msgstr ""
6356
6357 # type: verbatim
6358 #. type: verbatim
6359 #: ../src/guestfs-actions.pod:43
6360 #, no-wrap
6361 msgid ""
6362 " int\n"
6363 " guestfs_add_domain (guestfs_h *g,\n"
6364 "                     const char *dom,\n"
6365 "                     ...);\n"
6366 "\n"
6367 msgstr ""
6368
6369 # type: textblock
6370 #. type: textblock
6371 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145
6372 #: ../src/guestfs-actions.pod:4364
6373 msgid ""
6374 "You may supply a list of optional arguments to this call.  Use zero or more "
6375 "of the following pairs of parameters, and terminate the list with C<-1> on "
6376 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6377 msgstr ""
6378
6379 #. type: verbatim
6380 #: ../src/guestfs-actions.pod:53
6381 #, no-wrap
6382 msgid ""
6383 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6384 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6385 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6386 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6387 "\n"
6388 msgstr ""
6389
6390 # type: textblock
6391 #. type: textblock
6392 #: ../src/guestfs-actions.pod:58
6393 msgid ""
6394 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6395 "It works by connecting to libvirt, requesting the domain and domain XML from "
6396 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6397 "one."
6398 msgstr ""
6399
6400 # type: textblock
6401 #. type: textblock
6402 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
6403 msgid ""
6404 "The number of disks added is returned.  This operation is atomic: if an "
6405 "error is returned, then no disks are added."
6406 msgstr ""
6407
6408 # type: textblock
6409 #. type: textblock
6410 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
6411 msgid ""
6412 "This function does some minimal checks to make sure the libvirt domain is "
6413 "not running (unless C<readonly> is true).  In a future version we will try "
6414 "to acquire the libvirt lock on each disk."
6415 msgstr ""
6416
6417 # type: textblock
6418 #. type: textblock
6419 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
6420 msgid ""
6421 "Disks must be accessible locally.  This often means that adding disks from a "
6422 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6423 "unless those disks are accessible via the same device path locally too."
6424 msgstr ""
6425
6426 #. type: textblock
6427 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
6428 msgid ""
6429 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6430 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6431 "libvirt URI (or one set through an environment variable, see the libvirt "
6432 "documentation for full details)."
6433 msgstr ""
6434
6435 #. type: textblock
6436 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
6437 msgid ""
6438 "The optional C<live> flag controls whether this call will try to connect to "
6439 "a running virtual machine C<guestfsd> process if it sees a suitable "
6440 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6441 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6442 "DAEMONS> for more information."
6443 msgstr ""
6444
6445 # type: textblock
6446 #. type: textblock
6447 #: ../src/guestfs-actions.pod:88
6448 msgid ""
6449 "The other optional parameters are passed directly through to "
6450 "C<guestfs_add_drive_opts>."
6451 msgstr ""
6452
6453 # type: textblock
6454 #. type: textblock
6455 #: ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:344
6456 #: ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:687
6457 #: ../src/guestfs-actions.pod:718 ../src/guestfs-actions.pod:736
6458 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:1315
6459 #: ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1877
6460 #: ../src/guestfs-actions.pod:1986 ../src/guestfs-actions.pod:2026
6461 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:2104
6462 #: ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2728
6463 #: ../src/guestfs-actions.pod:2749 ../src/guestfs-actions.pod:4790
6464 #: ../src/guestfs-actions.pod:4918 ../src/guestfs-actions.pod:5324
6465 #: ../src/guestfs-actions.pod:5350 ../src/guestfs-actions.pod:6695
6466 #: ../src/guestfs-actions.pod:7120 ../src/guestfs-actions.pod:7133
6467 #: ../src/guestfs-actions.pod:7146
6468 msgid "On error this function returns -1."
6469 msgstr ""
6470
6471 # type: textblock
6472 #. type: textblock
6473 #: ../src/guestfs-actions.pod:93
6474 msgid "(Added in 1.7.4)"
6475 msgstr ""
6476
6477 # type: =head2
6478 #. type: =head2
6479 #: ../src/guestfs-actions.pod:95
6480 msgid "guestfs_add_domain_va"
6481 msgstr ""
6482
6483 # type: verbatim
6484 #. type: verbatim
6485 #: ../src/guestfs-actions.pod:97
6486 #, no-wrap
6487 msgid ""
6488 " int\n"
6489 " guestfs_add_domain_va (guestfs_h *g,\n"
6490 "                        const char *dom,\n"
6491 "                        va_list args);\n"
6492 "\n"
6493 msgstr ""
6494
6495 # type: textblock
6496 #. type: textblock
6497 #: ../src/guestfs-actions.pod:102
6498 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6499 msgstr ""
6500
6501 # type: textblock
6502 #. type: textblock
6503 #: ../src/guestfs-actions.pod:104 ../src/guestfs-actions.pod:115
6504 #: ../src/guestfs-actions.pod:208 ../src/guestfs-actions.pod:219
6505 #: ../src/guestfs-actions.pod:4417 ../src/guestfs-actions.pod:4429
6506 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6507 msgstr ""
6508
6509 # type: =head2
6510 #. type: =head2
6511 #: ../src/guestfs-actions.pod:106
6512 msgid "guestfs_add_domain_argv"
6513 msgstr ""
6514
6515 # type: verbatim
6516 #. type: verbatim
6517 #: ../src/guestfs-actions.pod:108
6518 #, no-wrap
6519 msgid ""
6520 " int\n"
6521 " guestfs_add_domain_argv (guestfs_h *g,\n"
6522 "                          const char *dom,\n"
6523 "                          const struct guestfs_add_domain_argv *optargs);\n"
6524 "\n"
6525 msgstr ""
6526
6527 # type: textblock
6528 #. type: textblock
6529 #: ../src/guestfs-actions.pod:113
6530 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6531 msgstr ""
6532
6533 # type: =head2
6534 #. type: =head2
6535 #: ../src/guestfs-actions.pod:117
6536 msgid "guestfs_add_drive"
6537 msgstr ""
6538
6539 # type: verbatim
6540 #. type: verbatim
6541 #: ../src/guestfs-actions.pod:119
6542 #, no-wrap
6543 msgid ""
6544 " int\n"
6545 " guestfs_add_drive (guestfs_h *g,\n"
6546 "                    const char *filename);\n"
6547 "\n"
6548 msgstr ""
6549
6550 # type: textblock
6551 #. type: textblock
6552 #: ../src/guestfs-actions.pod:123
6553 msgid ""
6554 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6555 "optional parameters, so the disk is added writable, with the format being "
6556 "detected automatically."
6557 msgstr ""
6558
6559 # type: textblock
6560 #. type: textblock
6561 #: ../src/guestfs-actions.pod:127
6562 msgid ""
6563 "Automatic detection of the format opens you up to a potential security hole "
6564 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6565 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6566 "you should think about replacing calls to this function with calls to "
6567 "C<guestfs_add_drive_opts>, and specifying the format."
6568 msgstr ""
6569
6570 # type: =head2
6571 #. type: =head2
6572 #: ../src/guestfs-actions.pod:138
6573 msgid "guestfs_add_drive_opts"
6574 msgstr ""
6575
6576 # type: verbatim
6577 #. type: verbatim
6578 #: ../src/guestfs-actions.pod:140
6579 #, no-wrap
6580 msgid ""
6581 " int\n"
6582 " guestfs_add_drive_opts (guestfs_h *g,\n"
6583 "                         const char *filename,\n"
6584 "                         ...);\n"
6585 "\n"
6586 msgstr ""
6587
6588 # type: verbatim
6589 #. type: verbatim
6590 #: ../src/guestfs-actions.pod:150
6591 #, no-wrap
6592 msgid ""
6593 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6594 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6595 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6596 "\n"
6597 msgstr ""
6598
6599 # type: textblock
6600 #. type: textblock
6601 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
6602 msgid ""
6603 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6604 "The first time you call this function, the disk appears as C</dev/sda>, the "
6605 "second time as C</dev/sdb>, and so on."
6606 msgstr ""
6607
6608 # type: textblock
6609 #. type: textblock
6610 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
6611 msgid ""
6612 "You don't necessarily need to be root when using libguestfs.  However you "
6613 "obviously do need sufficient permissions to access the filename for whatever "
6614 "operations you want to perform (ie. read access if you just want to read the "
6615 "image or write access if you want to modify the image)."
6616 msgstr ""
6617
6618 # type: textblock
6619 #. type: textblock
6620 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
6621 msgid "This call checks that C<filename> exists."
6622 msgstr ""
6623
6624 # type: textblock
6625 #. type: textblock
6626 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4375
6627 #: ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:2953
6628 msgid "The optional arguments are:"
6629 msgstr ""
6630
6631 # type: =item
6632 #. type: =item
6633 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
6634 msgid "C<readonly>"
6635 msgstr ""
6636
6637 # type: textblock
6638 #. type: textblock
6639 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
6640 msgid ""
6641 "If true then the image is treated as read-only.  Writes are still allowed, "
6642 "but they are stored in a temporary snapshot overlay which is discarded at "
6643 "the end.  The disk that you add is not modified."
6644 msgstr ""
6645
6646 # type: =item
6647 #. type: =item
6648 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
6649 msgid "C<format>"
6650 msgstr ""
6651
6652 # type: textblock
6653 #. type: textblock
6654 #: ../src/guestfs-actions.pod:179
6655 msgid ""
6656 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6657 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6658 "Possible formats include C<raw> and C<qcow2>."
6659 msgstr ""
6660
6661 # type: textblock
6662 #. type: textblock
6663 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
6664 msgid ""
6665 "Automatic detection of the format opens you up to a potential security hole "
6666 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6667 "RHBZ#642934.  Specifying the format closes this security hole."
6668 msgstr ""
6669
6670 # type: =item
6671 #. type: =item
6672 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
6673 msgid "C<iface>"
6674 msgstr ""
6675
6676 # type: textblock
6677 #. type: textblock
6678 #: ../src/guestfs-actions.pod:190
6679 msgid ""
6680 "This rarely-used option lets you emulate the behaviour of the deprecated "
6681 "C<guestfs_add_drive_with_if> call (q.v.)"
6682 msgstr ""
6683
6684 # type: textblock
6685 #. type: textblock
6686 #: ../src/guestfs-actions.pod:197
6687 msgid "(Added in 1.5.23)"
6688 msgstr ""
6689
6690 # type: =head2
6691 #. type: =head2
6692 #: ../src/guestfs-actions.pod:199
6693 msgid "guestfs_add_drive_opts_va"
6694 msgstr ""
6695
6696 # type: verbatim
6697 #. type: verbatim
6698 #: ../src/guestfs-actions.pod:201
6699 #, no-wrap
6700 msgid ""
6701 " int\n"
6702 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6703 "                            const char *filename,\n"
6704 "                            va_list args);\n"
6705 "\n"
6706 msgstr ""
6707
6708 # type: textblock
6709 #. type: textblock
6710 #: ../src/guestfs-actions.pod:206
6711 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6712 msgstr ""
6713
6714 # type: =head2
6715 #. type: =head2
6716 #: ../src/guestfs-actions.pod:210
6717 msgid "guestfs_add_drive_opts_argv"
6718 msgstr ""
6719
6720 # type: verbatim
6721 #. type: verbatim
6722 #: ../src/guestfs-actions.pod:212
6723 #, no-wrap
6724 msgid ""
6725 " int\n"
6726 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6727 "                              const char *filename,\n"
6728 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6729 "\n"
6730 msgstr ""
6731
6732 # type: textblock
6733 #. type: textblock
6734 #: ../src/guestfs-actions.pod:217
6735 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6736 msgstr ""
6737
6738 # type: =head2
6739 #. type: =head2
6740 #: ../src/guestfs-actions.pod:221
6741 msgid "guestfs_add_drive_ro"
6742 msgstr ""
6743
6744 # type: verbatim
6745 #. type: verbatim
6746 #: ../src/guestfs-actions.pod:223
6747 #, no-wrap
6748 msgid ""
6749 " int\n"
6750 " guestfs_add_drive_ro (guestfs_h *g,\n"
6751 "                       const char *filename);\n"
6752 "\n"
6753 msgstr ""
6754
6755 # type: textblock
6756 #. type: textblock
6757 #: ../src/guestfs-actions.pod:227
6758 msgid ""
6759 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6760 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6761 "disk is added read-only, with the format being detected automatically."
6762 msgstr ""
6763
6764 # type: textblock
6765 #. type: textblock
6766 #: ../src/guestfs-actions.pod:234
6767 msgid "(Added in 1.0.38)"
6768 msgstr ""
6769
6770 # type: =head2
6771 #. type: =head2
6772 #: ../src/guestfs-actions.pod:236
6773 msgid "guestfs_add_drive_ro_with_if"
6774 msgstr ""
6775
6776 # type: verbatim
6777 #. type: verbatim
6778 #: ../src/guestfs-actions.pod:238
6779 #, no-wrap
6780 msgid ""
6781 " int\n"
6782 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6783 "                               const char *filename,\n"
6784 "                               const char *iface);\n"
6785 "\n"
6786 msgstr ""
6787
6788 # type: textblock
6789 #. type: textblock
6790 #: ../src/guestfs-actions.pod:243
6791 msgid ""
6792 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6793 "QEMU interface emulation to use at run time."
6794 msgstr ""
6795
6796 # type: textblock
6797 #. type: textblock
6798 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
6799 #: ../src/guestfs-actions.pod:2356
6800 msgid "(Added in 1.0.84)"
6801 msgstr ""
6802
6803 # type: =head2
6804 #. type: =head2
6805 #: ../src/guestfs-actions.pod:257
6806 msgid "guestfs_add_drive_with_if"
6807 msgstr ""
6808
6809 # type: verbatim
6810 #. type: verbatim
6811 #: ../src/guestfs-actions.pod:259
6812 #, no-wrap
6813 msgid ""
6814 " int\n"
6815 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6816 "                            const char *filename,\n"
6817 "                            const char *iface);\n"
6818 "\n"
6819 msgstr ""
6820
6821 # type: textblock
6822 #. type: textblock
6823 #: ../src/guestfs-actions.pod:264
6824 msgid ""
6825 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6826 "QEMU interface emulation to use at run time."
6827 msgstr ""
6828
6829 # type: =head2
6830 #. type: =head2
6831 #: ../src/guestfs-actions.pod:278
6832 msgid "guestfs_aug_clear"
6833 msgstr ""
6834
6835 # type: verbatim
6836 #. type: verbatim
6837 #: ../src/guestfs-actions.pod:280
6838 #, no-wrap
6839 msgid ""
6840 " int\n"
6841 " guestfs_aug_clear (guestfs_h *g,\n"
6842 "                    const char *augpath);\n"
6843 "\n"
6844 msgstr ""
6845
6846 # type: textblock
6847 #. type: textblock
6848 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6849 msgid ""
6850 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6851 "L<augtool(1)> C<clear> command."
6852 msgstr ""
6853
6854 # type: textblock
6855 #. type: textblock
6856 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2106
6857 msgid "(Added in 1.3.4)"
6858 msgstr ""
6859
6860 # type: =head2
6861 #. type: =head2
6862 #: ../src/guestfs-actions.pod:291
6863 msgid "guestfs_aug_close"
6864 msgstr ""
6865
6866 # type: verbatim
6867 #. type: verbatim
6868 #: ../src/guestfs-actions.pod:293
6869 #, no-wrap
6870 msgid ""
6871 " int\n"
6872 " guestfs_aug_close (guestfs_h *g);\n"
6873 "\n"
6874 msgstr ""
6875
6876 # type: textblock
6877 #. type: textblock
6878 #: ../src/guestfs-actions.pod:296
6879 msgid ""
6880 "Close the current Augeas handle and free up any resources used by it.  After "
6881 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6882 "any other Augeas functions."
6883 msgstr ""
6884
6885 # type: textblock
6886 #. type: textblock
6887 #: ../src/guestfs-actions.pod:303 ../src/guestfs-actions.pod:328
6888 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
6889 #: ../src/guestfs-actions.pod:418 ../src/guestfs-actions.pod:438
6890 #: ../src/guestfs-actions.pod:452 ../src/guestfs-actions.pod:483
6891 #: ../src/guestfs-actions.pod:497 ../src/guestfs-actions.pod:511
6892 #: ../src/guestfs-actions.pod:525 ../src/guestfs-actions.pod:543
6893 #: ../src/guestfs-actions.pod:5401
6894 msgid "(Added in 0.7)"
6895 msgstr ""
6896
6897 # type: =head2
6898 #. type: =head2
6899 #: ../src/guestfs-actions.pod:305
6900 msgid "guestfs_aug_defnode"
6901 msgstr ""
6902
6903 # type: verbatim
6904 #. type: verbatim
6905 #: ../src/guestfs-actions.pod:307
6906 #, no-wrap
6907 msgid ""
6908 " struct guestfs_int_bool *\n"
6909 " guestfs_aug_defnode (guestfs_h *g,\n"
6910 "                      const char *name,\n"
6911 "                      const char *expr,\n"
6912 "                      const char *val);\n"
6913 "\n"
6914 msgstr ""
6915
6916 # type: textblock
6917 #. type: textblock
6918 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6919 msgid ""
6920 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6921 msgstr ""
6922
6923 # type: textblock
6924 #. type: textblock
6925 #: ../src/guestfs-actions.pod:316
6926 msgid ""
6927 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6928 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6929 "containing that single node."
6930 msgstr ""
6931
6932 # type: textblock
6933 #. type: textblock
6934 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6935 msgid ""
6936 "On success this returns a pair containing the number of nodes in the "
6937 "nodeset, and a boolean flag if a node was created."
6938 msgstr ""
6939
6940 # type: textblock
6941 #. type: textblock
6942 #: ../src/guestfs-actions.pod:324
6943 msgid ""
6944 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6945 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6946 msgstr ""
6947
6948 # type: =head2
6949 #. type: =head2
6950 #: ../src/guestfs-actions.pod:330
6951 msgid "guestfs_aug_defvar"
6952 msgstr ""
6953
6954 # type: verbatim
6955 #. type: verbatim
6956 #: ../src/guestfs-actions.pod:332
6957 #, no-wrap
6958 msgid ""
6959 " int\n"
6960 " guestfs_aug_defvar (guestfs_h *g,\n"
6961 "                     const char *name,\n"
6962 "                     const char *expr);\n"
6963 "\n"
6964 msgstr ""
6965
6966 # type: textblock
6967 #. type: textblock
6968 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6969 msgid ""
6970 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6971 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6972 msgstr ""
6973
6974 # type: textblock
6975 #. type: textblock
6976 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6977 msgid ""
6978 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6979 "evaluates to something which is not a nodeset."
6980 msgstr ""
6981
6982 # type: =head2
6983 #. type: =head2
6984 #: ../src/guestfs-actions.pod:348
6985 msgid "guestfs_aug_get"
6986 msgstr ""
6987
6988 # type: verbatim
6989 #. type: verbatim
6990 #: ../src/guestfs-actions.pod:350
6991 #, no-wrap
6992 msgid ""
6993 " char *\n"
6994 " guestfs_aug_get (guestfs_h *g,\n"
6995 "                  const char *augpath);\n"
6996 "\n"
6997 msgstr ""
6998
6999 # type: textblock
7000 #. type: textblock
7001 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
7002 msgid ""
7003 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7004 "node, the C<value> is returned."
7005 msgstr ""
7006
7007 # type: textblock
7008 #. type: textblock
7009 #: ../src/guestfs-actions.pod:357 ../src/guestfs-actions.pod:857
7010 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:935
7011 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1054
7012 #: ../src/guestfs-actions.pod:1184 ../src/guestfs-actions.pod:1201
7013 #: ../src/guestfs-actions.pod:1220 ../src/guestfs-actions.pod:1354
7014 #: ../src/guestfs-actions.pod:1545 ../src/guestfs-actions.pod:1657
7015 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1837
7016 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1938
7017 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2129
7018 #: ../src/guestfs-actions.pod:2321 ../src/guestfs-actions.pod:2528
7019 #: ../src/guestfs-actions.pod:2613 ../src/guestfs-actions.pod:2680
7020 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:2814
7021 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:2869
7022 #: ../src/guestfs-actions.pod:2906 ../src/guestfs-actions.pod:2966
7023 #: ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:3561
7024 #: ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:4081
7025 #: ../src/guestfs-actions.pod:4191 ../src/guestfs-actions.pod:4936
7026 #: ../src/guestfs-actions.pod:5129 ../src/guestfs-actions.pod:5299
7027 #: ../src/guestfs-actions.pod:5477 ../src/guestfs-actions.pod:5526
7028 #: ../src/guestfs-actions.pod:6138 ../src/guestfs-actions.pod:6154
7029 #: ../src/guestfs-actions.pod:6171 ../src/guestfs-actions.pod:6195
7030 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6888
7031 #: ../src/guestfs-actions.pod:6906 ../src/guestfs-actions.pod:7086
7032 #: ../src/guestfs-actions.pod:7358
7033 msgid ""
7034 "This function returns a string, or NULL on error.  I<The caller must free "
7035 "the returned string after use>."
7036 msgstr ""
7037
7038 # type: =head2
7039 #. type: =head2
7040 #: ../src/guestfs-actions.pod:362
7041 msgid "guestfs_aug_init"
7042 msgstr ""
7043
7044 # type: verbatim
7045 #. type: verbatim
7046 #: ../src/guestfs-actions.pod:364
7047 #, no-wrap
7048 msgid ""
7049 " int\n"
7050 " guestfs_aug_init (guestfs_h *g,\n"
7051 "                   const char *root,\n"
7052 "                   int flags);\n"
7053 "\n"
7054 msgstr ""
7055
7056 # type: textblock
7057 #. type: textblock
7058 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
7059 msgid ""
7060 "Create a new Augeas handle for editing configuration files.  If there was "
7061 "any previous Augeas handle associated with this guestfs session, then it is "
7062 "closed."
7063 msgstr ""
7064
7065 # type: textblock
7066 #. type: textblock
7067 #: ../src/guestfs-actions.pod:373
7068 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7069 msgstr ""
7070
7071 # type: textblock
7072 #. type: textblock
7073 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
7074 msgid ""
7075 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7076 msgstr ""
7077
7078 # type: textblock
7079 #. type: textblock
7080 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
7081 msgid ""
7082 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7083 "logical I<or> of the following integers:"
7084 msgstr ""
7085
7086 # type: =item
7087 #. type: =item
7088 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
7089 msgid "C<AUG_SAVE_BACKUP> = 1"
7090 msgstr ""
7091
7092 # type: textblock
7093 #. type: textblock
7094 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
7095 msgid "Keep the original file with a C<.augsave> extension."
7096 msgstr ""
7097
7098 # type: =item
7099 #. type: =item
7100 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
7101 msgid "C<AUG_SAVE_NEWFILE> = 2"
7102 msgstr ""
7103
7104 # type: textblock
7105 #. type: textblock
7106 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
7107 msgid ""
7108 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7109 "original.  Overrides C<AUG_SAVE_BACKUP>."
7110 msgstr ""
7111
7112 # type: =item
7113 #. type: =item
7114 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
7115 msgid "C<AUG_TYPE_CHECK> = 4"
7116 msgstr ""
7117
7118 # type: textblock
7119 #. type: textblock
7120 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
7121 msgid "Typecheck lenses (can be expensive)."
7122 msgstr ""
7123
7124 # type: =item
7125 #. type: =item
7126 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
7127 msgid "C<AUG_NO_STDINC> = 8"
7128 msgstr ""
7129
7130 # type: textblock
7131 #. type: textblock
7132 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
7133 msgid "Do not use standard load path for modules."
7134 msgstr ""
7135
7136 # type: =item
7137 #. type: =item
7138 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
7139 msgid "C<AUG_SAVE_NOOP> = 16"
7140 msgstr ""
7141
7142 # type: textblock
7143 #. type: textblock
7144 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
7145 msgid "Make save a no-op, just record what would have been changed."
7146 msgstr ""
7147
7148 # type: =item
7149 #. type: =item
7150 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
7151 msgid "C<AUG_NO_LOAD> = 32"
7152 msgstr ""
7153
7154 # type: textblock
7155 #. type: textblock
7156 #: ../src/guestfs-actions.pod:408
7157 msgid "Do not load the tree in C<guestfs_aug_init>."
7158 msgstr ""
7159
7160 # type: textblock
7161 #. type: textblock
7162 #: ../src/guestfs-actions.pod:412
7163 msgid "To close the handle, you can call C<guestfs_aug_close>."
7164 msgstr ""
7165
7166 # type: textblock
7167 #. type: textblock
7168 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
7169 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7170 msgstr ""
7171
7172 # type: =head2
7173 #. type: =head2
7174 #: ../src/guestfs-actions.pod:420
7175 msgid "guestfs_aug_insert"
7176 msgstr ""
7177
7178 # type: verbatim
7179 #. type: verbatim
7180 #: ../src/guestfs-actions.pod:422
7181 #, no-wrap
7182 msgid ""
7183 " int\n"
7184 " guestfs_aug_insert (guestfs_h *g,\n"
7185 "                     const char *augpath,\n"
7186 "                     const char *label,\n"
7187 "                     int before);\n"
7188 "\n"
7189 msgstr ""
7190
7191 # type: textblock
7192 #. type: textblock
7193 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
7194 msgid ""
7195 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7196 "or after C<path> (depending on the boolean flag C<before>)."
7197 msgstr ""
7198
7199 # type: textblock
7200 #. type: textblock
7201 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
7202 msgid ""
7203 "C<path> must match exactly one existing node in the tree, and C<label> must "
7204 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7205 msgstr ""
7206
7207 # type: =head2
7208 #. type: =head2
7209 #: ../src/guestfs-actions.pod:440
7210 msgid "guestfs_aug_load"
7211 msgstr ""
7212
7213 # type: verbatim
7214 #. type: verbatim
7215 #: ../src/guestfs-actions.pod:442
7216 #, no-wrap
7217 msgid ""
7218 " int\n"
7219 " guestfs_aug_load (guestfs_h *g);\n"
7220 "\n"
7221 msgstr ""
7222
7223 # type: textblock
7224 #. type: textblock
7225 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
7226 msgid "Load files into the tree."
7227 msgstr ""
7228
7229 # type: textblock
7230 #. type: textblock
7231 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
7232 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7233 msgstr ""
7234
7235 # type: =head2
7236 #. type: =head2
7237 #: ../src/guestfs-actions.pod:454
7238 msgid "guestfs_aug_ls"
7239 msgstr ""
7240
7241 # type: verbatim
7242 #. type: verbatim
7243 #: ../src/guestfs-actions.pod:456
7244 #, no-wrap
7245 msgid ""
7246 " char **\n"
7247 " guestfs_aug_ls (guestfs_h *g,\n"
7248 "                 const char *augpath);\n"
7249 "\n"
7250 msgstr ""
7251
7252 # type: textblock
7253 #. type: textblock
7254 #: ../src/guestfs-actions.pod:460
7255 msgid ""
7256 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7257 "sorting the resulting nodes into alphabetical order."
7258 msgstr ""
7259
7260 # type: textblock
7261 #. type: textblock
7262 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:479
7263 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:1073
7264 #: ../src/guestfs-actions.pod:1369 ../src/guestfs-actions.pod:1388
7265 #: ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1510
7266 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:2201
7267 #: ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2236
7268 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:2303
7269 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2423
7270 #: ../src/guestfs-actions.pod:2638 ../src/guestfs-actions.pod:2923
7271 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3481
7272 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3648
7273 #: ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4751
7274 #: ../src/guestfs-actions.pod:5271 ../src/guestfs-actions.pod:5397
7275 #: ../src/guestfs-actions.pod:5511 ../src/guestfs-actions.pod:6211
7276 #: ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6327
7277 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6497
7278 #: ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:6999
7279 #: ../src/guestfs-actions.pod:7046 ../src/guestfs-actions.pod:7211
7280 #: ../src/guestfs-actions.pod:7230 ../src/guestfs-actions.pod:7315
7281 #: ../src/guestfs-actions.pod:7334 ../src/guestfs-actions.pod:7380
7282 #: ../src/guestfs-actions.pod:7399
7283 msgid ""
7284 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7285 ">), or NULL if there was an error.  I<The caller must free the strings and "
7286 "the array after use>."
7287 msgstr ""
7288
7289 # type: textblock
7290 #. type: textblock
7291 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:998
7292 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1426
7293 #: ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3300
7294 #: ../src/guestfs-actions.pod:3894 ../src/guestfs-actions.pod:3944
7295 #: ../src/guestfs-actions.pod:4131 ../src/guestfs-actions.pod:4164
7296 #: ../src/guestfs-actions.pod:4327 ../src/guestfs-actions.pod:4755
7297 #: ../src/guestfs-actions.pod:5212 ../src/guestfs-actions.pod:5607
7298 #: ../src/guestfs-actions.pod:5621 ../src/guestfs-actions.pod:5633
7299 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6711
7300 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6963
7301 #: ../src/guestfs-actions.pod:7199
7302 msgid "(Added in 0.8)"
7303 msgstr ""
7304
7305 # type: =head2
7306 #. type: =head2
7307 #: ../src/guestfs-actions.pod:469
7308 msgid "guestfs_aug_match"
7309 msgstr ""
7310
7311 # type: verbatim
7312 #. type: verbatim
7313 #: ../src/guestfs-actions.pod:471
7314 #, no-wrap
7315 msgid ""
7316 " char **\n"
7317 " guestfs_aug_match (guestfs_h *g,\n"
7318 "                    const char *augpath);\n"
7319 "\n"
7320 msgstr ""
7321
7322 # type: textblock
7323 #. type: textblock
7324 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
7325 msgid ""
7326 "Returns a list of paths which match the path expression C<path>.  The "
7327 "returned paths are sufficiently qualified so that they match exactly one "
7328 "node in the current tree."
7329 msgstr ""
7330
7331 # type: =head2
7332 #. type: =head2
7333 #: ../src/guestfs-actions.pod:485
7334 msgid "guestfs_aug_mv"
7335 msgstr ""
7336
7337 # type: verbatim
7338 #. type: verbatim
7339 #: ../src/guestfs-actions.pod:487
7340 #, no-wrap
7341 msgid ""
7342 " int\n"
7343 " guestfs_aug_mv (guestfs_h *g,\n"
7344 "                 const char *src,\n"
7345 "                 const char *dest);\n"
7346 "\n"
7347 msgstr ""
7348
7349 # type: textblock
7350 #. type: textblock
7351 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
7352 msgid ""
7353 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7354 "C<dest> is overwritten if it exists."
7355 msgstr ""
7356
7357 # type: =head2
7358 #. type: =head2
7359 #: ../src/guestfs-actions.pod:499
7360 msgid "guestfs_aug_rm"
7361 msgstr ""
7362
7363 # type: verbatim
7364 #. type: verbatim
7365 #: ../src/guestfs-actions.pod:501
7366 #, no-wrap
7367 msgid ""
7368 " int\n"
7369 " guestfs_aug_rm (guestfs_h *g,\n"
7370 "                 const char *augpath);\n"
7371 "\n"
7372 msgstr ""
7373
7374 # type: textblock
7375 #. type: textblock
7376 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
7377 msgid "Remove C<path> and all of its children."
7378 msgstr ""
7379
7380 # type: textblock
7381 #. type: textblock
7382 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
7383 msgid "On success this returns the number of entries which were removed."
7384 msgstr ""
7385
7386 # type: =head2
7387 #. type: =head2
7388 #: ../src/guestfs-actions.pod:513
7389 msgid "guestfs_aug_save"
7390 msgstr ""
7391
7392 # type: verbatim
7393 #. type: verbatim
7394 #: ../src/guestfs-actions.pod:515
7395 #, no-wrap
7396 msgid ""
7397 " int\n"
7398 " guestfs_aug_save (guestfs_h *g);\n"
7399 "\n"
7400 msgstr ""
7401
7402 # type: textblock
7403 #. type: textblock
7404 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
7405 msgid "This writes all pending changes to disk."
7406 msgstr ""
7407
7408 # type: textblock
7409 #. type: textblock
7410 #: ../src/guestfs-actions.pod:520
7411 msgid ""
7412 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7413 "are saved."
7414 msgstr ""
7415
7416 # type: =head2
7417 #. type: =head2
7418 #: ../src/guestfs-actions.pod:527
7419 msgid "guestfs_aug_set"
7420 msgstr ""
7421
7422 # type: verbatim
7423 #. type: verbatim
7424 #: ../src/guestfs-actions.pod:529
7425 #, no-wrap
7426 msgid ""
7427 " int\n"
7428 " guestfs_aug_set (guestfs_h *g,\n"
7429 "                  const char *augpath,\n"
7430 "                  const char *val);\n"
7431 "\n"
7432 msgstr ""
7433
7434 # type: textblock
7435 #. type: textblock
7436 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
7437 msgid "Set the value associated with C<path> to C<val>."
7438 msgstr ""
7439
7440 # type: textblock
7441 #. type: textblock
7442 #: ../src/guestfs-actions.pod:536
7443 msgid ""
7444 "In the Augeas API, it is possible to clear a node by setting the value to "
7445 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7446 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7447 msgstr ""
7448
7449 # type: =head2
7450 #. type: =head2
7451 #: ../src/guestfs-actions.pod:545
7452 msgid "guestfs_available"
7453 msgstr ""
7454
7455 # type: verbatim
7456 #. type: verbatim
7457 #: ../src/guestfs-actions.pod:547
7458 #, no-wrap
7459 msgid ""
7460 " int\n"
7461 " guestfs_available (guestfs_h *g,\n"
7462 "                    char *const *groups);\n"
7463 "\n"
7464 msgstr ""
7465
7466 # type: textblock
7467 #. type: textblock
7468 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
7469 msgid ""
7470 "This command is used to check the availability of some groups of "
7471 "functionality in the appliance, which not all builds of the libguestfs "
7472 "appliance will be able to provide."
7473 msgstr ""
7474
7475 # type: textblock
7476 #. type: textblock
7477 #: ../src/guestfs-actions.pod:555
7478 msgid ""
7479 "The libguestfs groups, and the functions that those groups correspond to, "
7480 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7481 "runtime by calling C<guestfs_available_all_groups>."
7482 msgstr ""
7483
7484 # type: textblock
7485 #. type: textblock
7486 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
7487 msgid ""
7488 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7489 "\"]> would check for the availability of the Linux inotify functions and "
7490 "Augeas (configuration file editing) functions."
7491 msgstr ""
7492
7493 # type: textblock
7494 #. type: textblock
7495 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
7496 msgid "The command returns no error if I<all> requested groups are available."
7497 msgstr ""
7498
7499 # type: textblock
7500 #. type: textblock
7501 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
7502 msgid ""
7503 "It fails with an error if one or more of the requested groups is unavailable "
7504 "in the appliance."
7505 msgstr ""
7506
7507 # type: textblock
7508 #. type: textblock
7509 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
7510 msgid ""
7511 "If an unknown group name is included in the list of groups then an error is "
7512 "always returned."
7513 msgstr ""
7514
7515 # type: textblock
7516 #. type: textblock
7517 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
7518 msgid "I<Notes:>"
7519 msgstr ""
7520
7521 # type: textblock
7522 #. type: textblock
7523 #: ../src/guestfs-actions.pod:579
7524 msgid "You must call C<guestfs_launch> before calling this function."
7525 msgstr ""
7526
7527 # type: textblock
7528 #. type: textblock
7529 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
7530 msgid ""
7531 "The reason is because we don't know what groups are supported by the "
7532 "appliance/daemon until it is running and can be queried."
7533 msgstr ""
7534
7535 # type: textblock
7536 #. type: textblock
7537 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
7538 msgid ""
7539 "If a group of functions is available, this does not necessarily mean that "
7540 "they will work.  You still have to check for errors when calling individual "
7541 "API functions even if they are available."
7542 msgstr ""
7543
7544 # type: textblock
7545 #. type: textblock
7546 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
7547 msgid ""
7548 "It is usually the job of distro packagers to build complete functionality "
7549 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7550 "with all requirements satisfied, will support everything."
7551 msgstr ""
7552
7553 # type: textblock
7554 #. type: textblock
7555 #: ../src/guestfs-actions.pod:601
7556 msgid ""
7557 "This call was added in version C<1.0.80>.  In previous versions of "
7558 "libguestfs all you could do would be to speculatively execute a command to "
7559 "find out if the daemon implemented it.  See also C<guestfs_version>."
7560 msgstr ""
7561
7562 # type: textblock
7563 #. type: textblock
7564 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
7565 msgid "(Added in 1.0.80)"
7566 msgstr ""
7567
7568 # type: =head2
7569 #. type: =head2
7570 #: ../src/guestfs-actions.pod:612
7571 msgid "guestfs_available_all_groups"
7572 msgstr ""
7573
7574 # type: verbatim
7575 #. type: verbatim
7576 #: ../src/guestfs-actions.pod:614
7577 #, no-wrap
7578 msgid ""
7579 " char **\n"
7580 " guestfs_available_all_groups (guestfs_h *g);\n"
7581 "\n"
7582 msgstr ""
7583
7584 # type: textblock
7585 #. type: textblock
7586 #: ../src/guestfs-actions.pod:617
7587 msgid ""
7588 "This command returns a list of all optional groups that this daemon knows "
7589 "about.  Note this returns both supported and unsupported groups.  To find "
7590 "out which ones the daemon can actually support you have to call "
7591 "C<guestfs_available> on each member of the returned list."
7592 msgstr ""
7593
7594 # type: textblock
7595 #. type: textblock
7596 #: ../src/guestfs-actions.pod:623
7597 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7598 msgstr ""
7599
7600 # type: textblock
7601 #. type: textblock
7602 #: ../src/guestfs-actions.pod:629
7603 msgid "(Added in 1.3.15)"
7604 msgstr ""
7605
7606 # type: =head2
7607 #. type: =head2
7608 #: ../src/guestfs-actions.pod:631
7609 msgid "guestfs_base64_in"
7610 msgstr ""
7611
7612 # type: verbatim
7613 #. type: verbatim
7614 #: ../src/guestfs-actions.pod:633
7615 #, no-wrap
7616 msgid ""
7617 " int\n"
7618 " guestfs_base64_in (guestfs_h *g,\n"
7619 "                    const char *base64file,\n"
7620 "                    const char *filename);\n"
7621 "\n"
7622 msgstr ""
7623
7624 # type: textblock
7625 #. type: textblock
7626 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
7627 msgid ""
7628 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7629 msgstr ""
7630
7631 # type: textblock
7632 #. type: textblock
7633 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
7634 msgid "(Added in 1.3.5)"
7635 msgstr ""
7636
7637 # type: =head2
7638 #. type: =head2
7639 #: ../src/guestfs-actions.pod:645
7640 msgid "guestfs_base64_out"
7641 msgstr ""
7642
7643 # type: verbatim
7644 #. type: verbatim
7645 #: ../src/guestfs-actions.pod:647
7646 #, no-wrap
7647 msgid ""
7648 " int\n"
7649 " guestfs_base64_out (guestfs_h *g,\n"
7650 "                     const char *filename,\n"
7651 "                     const char *base64file);\n"
7652 "\n"
7653 msgstr ""
7654
7655 # type: textblock
7656 #. type: textblock
7657 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
7658 msgid ""
7659 "This command downloads the contents of C<filename>, writing it out to local "
7660 "file C<base64file> encoded as base64."
7661 msgstr ""
7662
7663 # type: =head2
7664 #. type: =head2
7665 #: ../src/guestfs-actions.pod:659
7666 msgid "guestfs_blockdev_flushbufs"
7667 msgstr ""
7668
7669 # type: verbatim
7670 #. type: verbatim
7671 #: ../src/guestfs-actions.pod:661
7672 #, no-wrap
7673 msgid ""
7674 " int\n"
7675 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7676 "                             const char *device);\n"
7677 "\n"
7678 msgstr ""
7679
7680 # type: textblock
7681 #. type: textblock
7682 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
7683 msgid ""
7684 "This tells the kernel to flush internal buffers associated with C<device>."
7685 msgstr ""
7686
7687 # type: textblock
7688 #. type: textblock
7689 #: ../src/guestfs-actions.pod:668 ../src/guestfs-actions.pod:685
7690 #: ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:716
7691 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:753
7692 #: ../src/guestfs-actions.pod:767 ../src/guestfs-actions.pod:785
7693 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:813
7694 #: ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:459
7695 #: ../fish/guestfish-actions.pod:468 ../fish/guestfish-actions.pod:478
7696 #: ../fish/guestfish-actions.pod:490 ../fish/guestfish-actions.pod:503
7697 #: ../fish/guestfish-actions.pod:511 ../fish/guestfish-actions.pod:522
7698 #: ../fish/guestfish-actions.pod:530 ../fish/guestfish-actions.pod:538
7699 msgid "This uses the L<blockdev(8)> command."
7700 msgstr ""
7701
7702 # type: textblock
7703 #. type: textblock
7704 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:689
7705 #: ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:720
7706 #: ../src/guestfs-actions.pod:738 ../src/guestfs-actions.pod:757
7707 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:789
7708 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:817
7709 msgid "(Added in 0.9.3)"
7710 msgstr ""
7711
7712 # type: =head2
7713 #. type: =head2
7714 #: ../src/guestfs-actions.pod:674
7715 msgid "guestfs_blockdev_getbsz"
7716 msgstr ""
7717
7718 # type: verbatim
7719 #. type: verbatim
7720 #: ../src/guestfs-actions.pod:676
7721 #, no-wrap
7722 msgid ""
7723 " int\n"
7724 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7725 "                          const char *device);\n"
7726 "\n"
7727 msgstr ""
7728
7729 # type: textblock
7730 #. type: textblock
7731 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
7732 msgid "This returns the block size of a device."
7733 msgstr ""
7734
7735 # type: textblock
7736 #. type: textblock
7737 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782
7738 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
7739 msgid ""
7740 "(Note this is different from both I<size in blocks> and I<filesystem block "
7741 "size>)."
7742 msgstr ""
7743
7744 # type: =head2
7745 #. type: =head2
7746 #: ../src/guestfs-actions.pod:691
7747 msgid "guestfs_blockdev_getro"
7748 msgstr ""
7749
7750 # type: verbatim
7751 #. type: verbatim
7752 #: ../src/guestfs-actions.pod:693
7753 #, no-wrap
7754 msgid ""
7755 " int\n"
7756 " guestfs_blockdev_getro (guestfs_h *g,\n"
7757 "                         const char *device);\n"
7758 "\n"
7759 msgstr ""
7760
7761 # type: textblock
7762 #. type: textblock
7763 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
7764 msgid ""
7765 "Returns a boolean indicating if the block device is read-only (true if read-"
7766 "only, false if not)."
7767 msgstr ""
7768
7769 # type: textblock
7770 #. type: textblock
7771 #: ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:1409
7772 #: ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1914
7773 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1997
7774 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2067
7775 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2115
7776 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3026
7777 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3208
7778 #: ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3237
7779 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3267
7780 #: ../src/guestfs-actions.pod:3282 ../src/guestfs-actions.pod:3298
7781 #: ../src/guestfs-actions.pod:3312 ../src/guestfs-actions.pod:3325
7782 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3354
7783 #: ../src/guestfs-actions.pod:3369 ../src/guestfs-actions.pod:4900
7784 msgid "This function returns a C truth value on success or -1 on error."
7785 msgstr ""
7786
7787 # type: =head2
7788 #. type: =head2
7789 #: ../src/guestfs-actions.pod:706
7790 msgid "guestfs_blockdev_getsize64"
7791 msgstr ""
7792
7793 # type: verbatim
7794 #. type: verbatim
7795 #: ../src/guestfs-actions.pod:708
7796 #, no-wrap
7797 msgid ""
7798 " int64_t\n"
7799 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7800 "                             const char *device);\n"
7801 "\n"
7802 msgstr ""
7803
7804 # type: textblock
7805 #. type: textblock
7806 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
7807 msgid "This returns the size of the device in bytes."
7808 msgstr ""
7809
7810 # type: textblock
7811 #. type: textblock
7812 #: ../src/guestfs-actions.pod:714
7813 msgid "See also C<guestfs_blockdev_getsz>."
7814 msgstr ""
7815
7816 # type: =head2
7817 #. type: =head2
7818 #: ../src/guestfs-actions.pod:722
7819 msgid "guestfs_blockdev_getss"
7820 msgstr ""
7821
7822 # type: verbatim
7823 #. type: verbatim
7824 #: ../src/guestfs-actions.pod:724
7825 #, no-wrap
7826 msgid ""
7827 " int\n"
7828 " guestfs_blockdev_getss (guestfs_h *g,\n"
7829 "                         const char *device);\n"
7830 "\n"
7831 msgstr ""
7832
7833 # type: textblock
7834 #. type: textblock
7835 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
7836 msgid ""
7837 "This returns the size of sectors on a block device.  Usually 512, but can be "
7838 "larger for modern devices."
7839 msgstr ""
7840
7841 # type: textblock
7842 #. type: textblock
7843 #: ../src/guestfs-actions.pod:731
7844 msgid ""
7845 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7846 "that)."
7847 msgstr ""
7848
7849 # type: =head2
7850 #. type: =head2
7851 #: ../src/guestfs-actions.pod:740
7852 msgid "guestfs_blockdev_getsz"
7853 msgstr ""
7854
7855 # type: verbatim
7856 #. type: verbatim
7857 #: ../src/guestfs-actions.pod:742
7858 #, no-wrap
7859 msgid ""
7860 " int64_t\n"
7861 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7862 "                         const char *device);\n"
7863 "\n"
7864 msgstr ""
7865
7866 # type: textblock
7867 #. type: textblock
7868 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
7869 msgid ""
7870 "This returns the size of the device in units of 512-byte sectors (even if "
7871 "the sectorsize isn't 512 bytes ... weird)."
7872 msgstr ""
7873
7874 # type: textblock
7875 #. type: textblock
7876 #: ../src/guestfs-actions.pod:749
7877 msgid ""
7878 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7879 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7880 msgstr ""
7881
7882 # type: =head2
7883 #. type: =head2
7884 #: ../src/guestfs-actions.pod:759
7885 msgid "guestfs_blockdev_rereadpt"
7886 msgstr ""
7887
7888 # type: verbatim
7889 #. type: verbatim
7890 #: ../src/guestfs-actions.pod:761
7891 #, no-wrap
7892 msgid ""
7893 " int\n"
7894 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7895 "                            const char *device);\n"
7896 "\n"
7897 msgstr ""
7898
7899 # type: textblock
7900 #. type: textblock
7901 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
7902 msgid "Reread the partition table on C<device>."
7903 msgstr ""
7904
7905 # type: =head2
7906 #. type: =head2
7907 #: ../src/guestfs-actions.pod:773
7908 msgid "guestfs_blockdev_setbsz"
7909 msgstr ""
7910
7911 # type: verbatim
7912 #. type: verbatim
7913 #: ../src/guestfs-actions.pod:775
7914 #, no-wrap
7915 msgid ""
7916 " int\n"
7917 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7918 "                          const char *device,\n"
7919 "                          int blocksize);\n"
7920 "\n"
7921 msgstr ""
7922
7923 # type: textblock
7924 #. type: textblock
7925 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
7926 msgid "This sets the block size of a device."
7927 msgstr ""
7928
7929 # type: =head2
7930 #. type: =head2
7931 #: ../src/guestfs-actions.pod:791
7932 msgid "guestfs_blockdev_setro"
7933 msgstr ""
7934
7935 # type: verbatim
7936 #. type: verbatim
7937 #: ../src/guestfs-actions.pod:793
7938 #, no-wrap
7939 msgid ""
7940 " int\n"
7941 " guestfs_blockdev_setro (guestfs_h *g,\n"
7942 "                         const char *device);\n"
7943 "\n"
7944 msgstr ""
7945
7946 # type: textblock
7947 #. type: textblock
7948 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
7949 msgid "Sets the block device named C<device> to read-only."
7950 msgstr ""
7951
7952 # type: =head2
7953 #. type: =head2
7954 #: ../src/guestfs-actions.pod:805
7955 msgid "guestfs_blockdev_setrw"
7956 msgstr ""
7957
7958 # type: verbatim
7959 #. type: verbatim
7960 #: ../src/guestfs-actions.pod:807
7961 #, no-wrap
7962 msgid ""
7963 " int\n"
7964 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7965 "                         const char *device);\n"
7966 "\n"
7967 msgstr ""
7968
7969 # type: textblock
7970 #. type: textblock
7971 #: ../src/guestfs-actions.pod:811 ../fish/guestfish-actions.pod:536
7972 msgid "Sets the block device named C<device> to read-write."
7973 msgstr ""
7974
7975 # type: =head2
7976 #. type: =head2
7977 #: ../src/guestfs-actions.pod:819
7978 msgid "guestfs_case_sensitive_path"
7979 msgstr ""
7980
7981 # type: verbatim
7982 #. type: verbatim
7983 #: ../src/guestfs-actions.pod:821
7984 #, no-wrap
7985 msgid ""
7986 " char *\n"
7987 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7988 "                              const char *path);\n"
7989 "\n"
7990 msgstr ""
7991
7992 # type: textblock
7993 #. type: textblock
7994 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
7995 msgid ""
7996 "This can be used to resolve case insensitive paths on a filesystem which is "
7997 "case sensitive.  The use case is to resolve paths which you have read from "
7998 "Windows configuration files or the Windows Registry, to the true path."
7999 msgstr ""
8000
8001 # type: textblock
8002 #. type: textblock
8003 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
8004 msgid ""
8005 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8006 "(and probably others), which is that although the underlying filesystem is "
8007 "case-insensitive, the driver exports the filesystem to Linux as case-"
8008 "sensitive."
8009 msgstr ""
8010
8011 # type: textblock
8012 #. type: textblock
8013 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
8014 msgid ""
8015 "One consequence of this is that special directories such as C<c:\\windows> "
8016 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8017 "precise details of how they were created.  In Windows itself this would not "
8018 "be a problem."
8019 msgstr ""
8020
8021 # type: textblock
8022 #. type: textblock
8023 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
8024 msgid ""
8025 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8026 "#posixfilenames1>"
8027 msgstr ""
8028
8029 # type: textblock
8030 #. type: textblock
8031 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
8032 msgid ""
8033 "This function resolves the true case of each element in the path and returns "
8034 "the case-sensitive path."
8035 msgstr ""
8036
8037 # type: textblock
8038 #. type: textblock
8039 #: ../src/guestfs-actions.pod:847
8040 msgid ""
8041 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8042 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8043 "how the directories were originally created under Windows)."
8044 msgstr ""
8045
8046 # type: textblock
8047 #. type: textblock
8048 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
8049 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8050 msgstr ""
8051
8052 # type: textblock
8053 #. type: textblock
8054 #: ../src/guestfs-actions.pod:855
8055 msgid "See also C<guestfs_realpath>."
8056 msgstr ""
8057
8058 # type: textblock
8059 #. type: textblock
8060 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6891
8061 msgid "(Added in 1.0.75)"
8062 msgstr ""
8063
8064 # type: =head2
8065 #. type: =head2
8066 #: ../src/guestfs-actions.pod:862
8067 msgid "guestfs_cat"
8068 msgstr ""
8069
8070 # type: verbatim
8071 #. type: verbatim
8072 #: ../src/guestfs-actions.pod:864
8073 #, no-wrap
8074 msgid ""
8075 " char *\n"
8076 " guestfs_cat (guestfs_h *g,\n"
8077 "              const char *path);\n"
8078 "\n"
8079 msgstr ""
8080
8081 # type: textblock
8082 #. type: textblock
8083 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5387
8084 #: ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3601
8085 msgid "Return the contents of the file named C<path>."
8086 msgstr ""
8087
8088 # type: textblock
8089 #. type: textblock
8090 #: ../src/guestfs-actions.pod:870
8091 msgid ""
8092 "Note that this function cannot correctly handle binary files (specifically, "
8093 "files containing C<\\0> character which is treated as end of string).  For "
8094 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8095 "functions which have a more complex interface."
8096 msgstr ""
8097
8098 # type: textblock
8099 #. type: textblock
8100 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:1057
8101 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:1373
8102 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:1495
8103 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1763
8104 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:2240
8105 #: ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2307
8106 #: ../src/guestfs-actions.pod:2324 ../src/guestfs-actions.pod:2353
8107 #: ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:5195
8108 #: ../src/guestfs-actions.pod:5326 ../src/guestfs-actions.pod:5352
8109 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:6276
8110 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6477
8111 #: ../src/guestfs-actions.pod:6501 ../src/guestfs-actions.pod:7163
8112 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7215
8113 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7319
8114 #: ../src/guestfs-actions.pod:7338 ../src/guestfs-actions.pod:7384
8115 #: ../src/guestfs-actions.pod:7403 ../fish/guestfish-actions.pod:587
8116 #: ../fish/guestfish-actions.pod:722 ../fish/guestfish-actions.pod:734
8117 #: ../fish/guestfish-actions.pod:910 ../fish/guestfish-actions.pod:920
8118 #: ../fish/guestfish-actions.pod:987 ../fish/guestfish-actions.pod:997
8119 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1493
8120 #: ../fish/guestfish-actions.pod:1503 ../fish/guestfish-actions.pod:1531
8121 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:1556
8122 #: ../fish/guestfish-actions.pod:1575 ../fish/guestfish-actions.pod:3471
8123 #: ../fish/guestfish-actions.pod:3486 ../fish/guestfish-actions.pod:3562
8124 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3594
8125 #: ../fish/guestfish-actions.pod:4220 ../fish/guestfish-actions.pod:4266
8126 #: ../fish/guestfish-actions.pod:4351 ../fish/guestfish-actions.pod:4366
8127 #: ../fish/guestfish-actions.pod:4776 ../fish/guestfish-actions.pod:4794
8128 #: ../fish/guestfish-actions.pod:4811 ../fish/guestfish-actions.pod:4821
8129 #: ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:4879
8130 #: ../fish/guestfish-actions.pod:4908 ../fish/guestfish-actions.pod:4918
8131 msgid ""
8132 "Because of the message protocol, there is a transfer limit of somewhere "
8133 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8134 msgstr ""
8135
8136 # type: textblock
8137 #. type: textblock
8138 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:3485
8139 #: ../src/guestfs-actions.pod:3547 ../src/guestfs-actions.pod:3564
8140 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:4057
8141 #: ../src/guestfs-actions.pod:4071 ../src/guestfs-actions.pod:5275
8142 #: ../src/guestfs-actions.pod:5289 ../src/guestfs-actions.pod:7050
8143 #: ../src/guestfs-actions.pod:7064
8144 msgid "(Added in 0.4)"
8145 msgstr ""
8146
8147 # type: =head2
8148 #. type: =head2
8149 #: ../src/guestfs-actions.pod:883
8150 msgid "guestfs_checksum"
8151 msgstr ""
8152
8153 # type: verbatim
8154 #. type: verbatim
8155 #: ../src/guestfs-actions.pod:885
8156 #, no-wrap
8157 msgid ""
8158 " char *\n"
8159 " guestfs_checksum (guestfs_h *g,\n"
8160 "                   const char *csumtype,\n"
8161 "                   const char *path);\n"
8162 "\n"
8163 msgstr ""
8164
8165 # type: textblock
8166 #. type: textblock
8167 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
8168 msgid ""
8169 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8170 msgstr ""
8171
8172 # type: textblock
8173 #. type: textblock
8174 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
8175 msgid ""
8176 "The type of checksum to compute is given by the C<csumtype> parameter which "
8177 "must have one of the following values:"
8178 msgstr ""
8179
8180 # type: =item
8181 #. type: =item
8182 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
8183 msgid "C<crc>"
8184 msgstr ""
8185
8186 # type: textblock
8187 #. type: textblock
8188 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
8189 msgid ""
8190 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8191 "C<cksum> command."
8192 msgstr ""
8193
8194 # type: =item
8195 #. type: =item
8196 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
8197 msgid "C<md5>"
8198 msgstr ""
8199
8200 # type: textblock
8201 #. type: textblock
8202 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
8203 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8204 msgstr ""
8205
8206 # type: =item
8207 #. type: =item
8208 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
8209 msgid "C<sha1>"
8210 msgstr ""
8211
8212 # type: textblock
8213 #. type: textblock
8214 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
8215 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8216 msgstr ""
8217
8218 # type: =item
8219 #. type: =item
8220 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
8221 msgid "C<sha224>"
8222 msgstr ""
8223
8224 # type: textblock
8225 #. type: textblock
8226 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
8227 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8228 msgstr ""
8229
8230 # type: =item
8231 #. type: =item
8232 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
8233 msgid "C<sha256>"
8234 msgstr ""
8235
8236 # type: textblock
8237 #. type: textblock
8238 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
8239 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8240 msgstr ""
8241
8242 # type: =item
8243 #. type: =item
8244 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
8245 msgid "C<sha384>"
8246 msgstr ""
8247
8248 # type: textblock
8249 #. type: textblock
8250 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
8251 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8252 msgstr ""
8253
8254 # type: =item
8255 #. type: =item
8256 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
8257 msgid "C<sha512>"
8258 msgstr ""
8259
8260 # type: textblock
8261 #. type: textblock
8262 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
8263 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8264 msgstr ""
8265
8266 # type: textblock
8267 #. type: textblock
8268 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
8269 msgid "The checksum is returned as a printable string."
8270 msgstr ""
8271
8272 # type: textblock
8273 #. type: textblock
8274 #: ../src/guestfs-actions.pod:931
8275 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8276 msgstr ""
8277
8278 # type: textblock
8279 #. type: textblock
8280 #: ../src/guestfs-actions.pod:933
8281 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8282 msgstr ""
8283
8284 # type: textblock
8285 #. type: textblock
8286 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1246
8287 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:3224
8288 #: ../src/guestfs-actions.pod:3253 ../src/guestfs-actions.pod:3314
8289 #: ../src/guestfs-actions.pod:3341 ../src/guestfs-actions.pod:6747
8290 msgid "(Added in 1.0.2)"
8291 msgstr ""
8292
8293 # type: =head2
8294 #. type: =head2
8295 #: ../src/guestfs-actions.pod:940
8296 msgid "guestfs_checksum_device"
8297 msgstr ""
8298
8299 # type: verbatim
8300 #. type: verbatim
8301 #: ../src/guestfs-actions.pod:942
8302 #, no-wrap
8303 msgid ""
8304 " char *\n"
8305 " guestfs_checksum_device (guestfs_h *g,\n"
8306 "                          const char *csumtype,\n"
8307 "                          const char *device);\n"
8308 "\n"
8309 msgstr ""
8310
8311 # type: textblock
8312 #. type: textblock
8313 #: ../src/guestfs-actions.pod:947
8314 msgid ""
8315 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8316 "device named C<device>.  For the types of checksums supported see the "
8317 "C<guestfs_checksum> command."
8318 msgstr ""
8319
8320 # type: textblock
8321 #. type: textblock
8322 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:4806
8323 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4902
8324 #: ../src/guestfs-actions.pod:4920 ../src/guestfs-actions.pod:5096
8325 #: ../src/guestfs-actions.pod:6656 ../src/guestfs-actions.pod:6670
8326 #: ../src/guestfs-actions.pod:7076
8327 msgid "(Added in 1.3.2)"
8328 msgstr ""
8329
8330 # type: =head2
8331 #. type: =head2
8332 #: ../src/guestfs-actions.pod:956
8333 msgid "guestfs_checksums_out"
8334 msgstr ""
8335
8336 # type: verbatim
8337 #. type: verbatim
8338 #: ../src/guestfs-actions.pod:958
8339 #, no-wrap
8340 msgid ""
8341 " int\n"
8342 " guestfs_checksums_out (guestfs_h *g,\n"
8343 "                        const char *csumtype,\n"
8344 "                        const char *directory,\n"
8345 "                        const char *sumsfile);\n"
8346 "\n"
8347 msgstr ""
8348
8349 # type: textblock
8350 #. type: textblock
8351 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
8352 msgid ""
8353 "This command computes the checksums of all regular files in C<directory> and "
8354 "then emits a list of those checksums to the local output file C<sumsfile>."
8355 msgstr ""
8356
8357 # type: textblock
8358 #. type: textblock
8359 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
8360 msgid ""
8361 "This can be used for verifying the integrity of a virtual machine.  However "
8362 "to be properly secure you should pay attention to the output of the checksum "
8363 "command (it uses the ones from GNU coreutils).  In particular when the "
8364 "filename is not printable, coreutils uses a special backslash syntax.  For "
8365 "more information, see the GNU coreutils info file."
8366 msgstr ""
8367
8368 # type: textblock
8369 #. type: textblock
8370 #: ../src/guestfs-actions.pod:978
8371 msgid "(Added in 1.3.7)"
8372 msgstr ""
8373
8374 # type: =head2
8375 #. type: =head2
8376 #: ../src/guestfs-actions.pod:980
8377 msgid "guestfs_chmod"
8378 msgstr ""
8379
8380 # type: verbatim
8381 #. type: verbatim
8382 #: ../src/guestfs-actions.pod:982
8383 #, no-wrap
8384 msgid ""
8385 " int\n"
8386 " guestfs_chmod (guestfs_h *g,\n"
8387 "                int mode,\n"
8388 "                const char *path);\n"
8389 "\n"
8390 msgstr ""
8391
8392 # type: textblock
8393 #. type: textblock
8394 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
8395 msgid ""
8396 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8397 "supported."
8398 msgstr ""
8399
8400 # type: textblock
8401 #. type: textblock
8402 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
8403 msgid ""
8404 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8405 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8406 "C<700>."
8407 msgstr ""
8408
8409 # type: textblock
8410 #. type: textblock
8411 #: ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:4308
8412 #: ../src/guestfs-actions.pod:4505 ../src/guestfs-actions.pod:4524
8413 #: ../src/guestfs-actions.pod:4543 ../fish/guestfish-actions.pod:676
8414 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:3046
8415 #: ../fish/guestfish-actions.pod:3056 ../fish/guestfish-actions.pod:3066
8416 msgid "The mode actually set is affected by the umask."
8417 msgstr ""
8418
8419 # type: =head2
8420 #. type: =head2
8421 #: ../src/guestfs-actions.pod:1000
8422 msgid "guestfs_chown"
8423 msgstr ""
8424
8425 # type: verbatim
8426 #. type: verbatim
8427 #: ../src/guestfs-actions.pod:1002
8428 #, no-wrap
8429 msgid ""
8430 " int\n"
8431 " guestfs_chown (guestfs_h *g,\n"
8432 "                int owner,\n"
8433 "                int group,\n"
8434 "                const char *path);\n"
8435 "\n"
8436 msgstr ""
8437
8438 # type: textblock
8439 #. type: textblock
8440 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
8441 msgid "Change the file owner to C<owner> and group to C<group>."
8442 msgstr ""
8443
8444 # type: textblock
8445 #. type: textblock
8446 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3416
8447 #: ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2375
8448 msgid ""
8449 "Only numeric uid and gid are supported.  If you want to use names, you will "
8450 "need to locate and parse the password file yourself (Augeas support makes "
8451 "this relatively easy)."
8452 msgstr ""
8453
8454 # type: =head2
8455 #. type: =head2
8456 #: ../src/guestfs-actions.pod:1018
8457 msgid "guestfs_command"
8458 msgstr ""
8459
8460 # type: verbatim
8461 #. type: verbatim
8462 #: ../src/guestfs-actions.pod:1020
8463 #, no-wrap
8464 msgid ""
8465 " char *\n"
8466 " guestfs_command (guestfs_h *g,\n"
8467 "                  char *const *arguments);\n"
8468 "\n"
8469 msgstr ""
8470
8471 # type: textblock
8472 #. type: textblock
8473 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
8474 msgid ""
8475 "This call runs a command from the guest filesystem.  The filesystem must be "
8476 "mounted, and must contain a compatible operating system (ie. something "
8477 "Linux, with the same or compatible processor architecture)."
8478 msgstr ""
8479
8480 # type: textblock
8481 #. type: textblock
8482 #: ../src/guestfs-actions.pod:1029
8483 msgid ""
8484 "The single parameter is an argv-style list of arguments.  The first element "
8485 "is the name of the program to run.  Subsequent elements are parameters.  The "
8486 "list must be non-empty (ie. must contain a program name).  Note that the "
8487 "command runs directly, and is I<not> invoked via the shell (see "
8488 "C<guestfs_sh>)."
8489 msgstr ""
8490
8491 # type: textblock
8492 #. type: textblock
8493 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
8494 msgid "The return value is anything printed to I<stdout> by the command."
8495 msgstr ""
8496
8497 # type: textblock
8498 #. type: textblock
8499 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
8500 msgid ""
8501 "If the command returns a non-zero exit status, then this function returns an "
8502 "error message.  The error message string is the content of I<stderr> from "
8503 "the command."
8504 msgstr ""
8505
8506 # type: textblock
8507 #. type: textblock
8508 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
8509 msgid ""
8510 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8511 "bin>.  If you require a program from another location, you should provide "
8512 "the full path in the first parameter."
8513 msgstr ""
8514
8515 # type: textblock
8516 #. type: textblock
8517 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
8518 msgid ""
8519 "Shared libraries and data files required by the program must be available on "
8520 "filesystems which are mounted in the correct places.  It is the caller's "
8521 "responsibility to ensure all filesystems that are needed are mounted at the "
8522 "right locations."
8523 msgstr ""
8524
8525 # type: textblock
8526 #. type: textblock
8527 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080
8528 #: ../src/guestfs-actions.pod:1548
8529 msgid "(Added in 0.9.1)"
8530 msgstr ""
8531
8532 # type: =head2
8533 #. type: =head2
8534 #: ../src/guestfs-actions.pod:1062
8535 msgid "guestfs_command_lines"
8536 msgstr ""
8537
8538 # type: verbatim
8539 #. type: verbatim
8540 #: ../src/guestfs-actions.pod:1064
8541 #, no-wrap
8542 msgid ""
8543 " char **\n"
8544 " guestfs_command_lines (guestfs_h *g,\n"
8545 "                        char *const *arguments);\n"
8546 "\n"
8547 msgstr ""
8548
8549 # type: textblock
8550 #. type: textblock
8551 #: ../src/guestfs-actions.pod:1068
8552 msgid ""
8553 "This is the same as C<guestfs_command>, but splits the result into a list of "
8554 "lines."
8555 msgstr ""
8556
8557 # type: textblock
8558 #. type: textblock
8559 #: ../src/guestfs-actions.pod:1071
8560 msgid "See also: C<guestfs_sh_lines>"
8561 msgstr ""
8562
8563 # type: =head2
8564 #. type: =head2
8565 #: ../src/guestfs-actions.pod:1082
8566 msgid "guestfs_config"
8567 msgstr ""
8568
8569 # type: verbatim
8570 #. type: verbatim
8571 #: ../src/guestfs-actions.pod:1084
8572 #, no-wrap
8573 msgid ""
8574 " int\n"
8575 " guestfs_config (guestfs_h *g,\n"
8576 "                 const char *qemuparam,\n"
8577 "                 const char *qemuvalue);\n"
8578 "\n"
8579 msgstr ""
8580
8581 # type: textblock
8582 #. type: textblock
8583 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
8584 msgid ""
8585 "This can be used to add arbitrary qemu command line parameters of the form "
8586 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8587 "setting some parameters which would interfere with parameters that we use."
8588 msgstr ""
8589
8590 # type: textblock
8591 #. type: textblock
8592 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
8593 msgid "The first character of C<param> string must be a C<-> (dash)."
8594 msgstr ""
8595
8596 # type: textblock
8597 #. type: textblock
8598 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
8599 msgid "C<value> can be NULL."
8600 msgstr ""
8601
8602 # type: =head2
8603 #. type: =head2
8604 #: ../src/guestfs-actions.pod:1102
8605 msgid "guestfs_copy_size"
8606 msgstr ""
8607
8608 # type: verbatim
8609 #. type: verbatim
8610 #: ../src/guestfs-actions.pod:1104
8611 #, no-wrap
8612 msgid ""
8613 " int\n"
8614 " guestfs_copy_size (guestfs_h *g,\n"
8615 "                    const char *src,\n"
8616 "                    const char *dest,\n"
8617 "                    int64_t size);\n"
8618 "\n"
8619 msgstr ""
8620
8621 # type: textblock
8622 #. type: textblock
8623 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
8624 msgid ""
8625 "This command copies exactly C<size> bytes from one source device or file "
8626 "C<src> to another destination device or file C<dest>."
8627 msgstr ""
8628
8629 # type: textblock
8630 #. type: textblock
8631 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
8632 msgid ""
8633 "Note this will fail if the source is too short or if the destination is not "
8634 "large enough."
8635 msgstr ""
8636
8637 #. type: textblock
8638 #: ../src/guestfs-actions.pod:1118 ../src/guestfs-actions.pod:1241
8639 #: ../src/guestfs-actions.pod:1272 ../src/guestfs-actions.pod:1317
8640 #: ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1719
8641 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:6742
8642 #: ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:7255
8643 #: ../src/guestfs-actions.pod:7274
8644 msgid ""
8645 "This long-running command can generate progress notification messages so "
8646 "that the caller can display a progress bar or indicator.  To receive these "
8647 "messages, the caller must register a progress event callback.  See L<guestfs"
8648 "(3)/GUESTFS_EVENT_PROGRESS>."
8649 msgstr ""
8650
8651 # type: textblock
8652 #. type: textblock
8653 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:4084
8654 #: ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:6983
8655 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7089
8656 msgid "(Added in 1.0.87)"
8657 msgstr ""
8658
8659 # type: =head2
8660 #. type: =head2
8661 #: ../src/guestfs-actions.pod:1125
8662 msgid "guestfs_cp"
8663 msgstr ""
8664
8665 # type: verbatim
8666 #. type: verbatim
8667 #: ../src/guestfs-actions.pod:1127
8668 #, no-wrap
8669 msgid ""
8670 " int\n"
8671 " guestfs_cp (guestfs_h *g,\n"
8672 "             const char *src,\n"
8673 "             const char *dest);\n"
8674 "\n"
8675 msgstr ""
8676
8677 # type: textblock
8678 #. type: textblock
8679 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
8680 msgid ""
8681 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8682 "destination filename or destination directory."
8683 msgstr ""
8684
8685 # type: textblock
8686 #. type: textblock
8687 #: ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1151
8688 #: ../src/guestfs-actions.pod:1223 ../src/guestfs-actions.pod:1297
8689 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:4769
8690 #: ../src/guestfs-actions.pod:5146
8691 msgid "(Added in 1.0.18)"
8692 msgstr ""
8693
8694 # type: =head2
8695 #. type: =head2
8696 #: ../src/guestfs-actions.pod:1139
8697 msgid "guestfs_cp_a"
8698 msgstr ""
8699
8700 # type: verbatim
8701 #. type: verbatim
8702 #: ../src/guestfs-actions.pod:1141
8703 #, no-wrap
8704 msgid ""
8705 " int\n"
8706 " guestfs_cp_a (guestfs_h *g,\n"
8707 "               const char *src,\n"
8708 "               const char *dest);\n"
8709 "\n"
8710 msgstr ""
8711
8712 # type: textblock
8713 #. type: textblock
8714 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
8715 msgid ""
8716 "This copies a file or directory from C<src> to C<dest> recursively using the "
8717 "C<cp -a> command."
8718 msgstr ""
8719
8720 # type: =head2
8721 #. type: =head2
8722 #: ../src/guestfs-actions.pod:1153
8723 msgid "guestfs_dd"
8724 msgstr ""
8725
8726 # type: verbatim
8727 #. type: verbatim
8728 #: ../src/guestfs-actions.pod:1155
8729 #, no-wrap
8730 msgid ""
8731 " int\n"
8732 " guestfs_dd (guestfs_h *g,\n"
8733 "             const char *src,\n"
8734 "             const char *dest);\n"
8735 "\n"
8736 msgstr ""
8737
8738 # type: textblock
8739 #. type: textblock
8740 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
8741 msgid ""
8742 "This command copies from one source device or file C<src> to another "
8743 "destination device or file C<dest>.  Normally you would use this to copy to "
8744 "or from a device or partition, for example to duplicate a filesystem."
8745 msgstr ""
8746
8747 # type: textblock
8748 #. type: textblock
8749 #: ../src/guestfs-actions.pod:1165
8750 msgid ""
8751 "If the destination is a device, it must be as large or larger than the "
8752 "source file or device, otherwise the copy will fail.  This command cannot do "
8753 "partial copies (see C<guestfs_copy_size>)."
8754 msgstr ""
8755
8756 # type: =head2
8757 #. type: =head2
8758 #: ../src/guestfs-actions.pod:1173
8759 msgid "guestfs_df"
8760 msgstr ""
8761
8762 # type: verbatim
8763 #. type: verbatim
8764 #: ../src/guestfs-actions.pod:1175
8765 #, no-wrap
8766 msgid ""
8767 " char *\n"
8768 " guestfs_df (guestfs_h *g);\n"
8769 "\n"
8770 msgstr ""
8771
8772 # type: textblock
8773 #. type: textblock
8774 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
8775 msgid "This command runs the C<df> command to report disk space used."
8776 msgstr ""
8777
8778 # type: textblock
8779 #. type: textblock
8780 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
8781 msgid ""
8782 "This command is mostly useful for interactive sessions.  It is I<not> "
8783 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8784 "from programs."
8785 msgstr ""
8786
8787 # type: textblock
8788 #. type: textblock
8789 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1204
8790 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:2286
8791 #: ../src/guestfs-actions.pod:2310 ../src/guestfs-actions.pod:2378
8792 #: ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4669
8793 #: ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6504
8794 #: ../src/guestfs-actions.pod:7122 ../src/guestfs-actions.pod:7135
8795 #: ../src/guestfs-actions.pod:7148
8796 msgid "(Added in 1.0.54)"
8797 msgstr ""
8798
8799 # type: =head2
8800 #. type: =head2
8801 #: ../src/guestfs-actions.pod:1189
8802 msgid "guestfs_df_h"
8803 msgstr ""
8804
8805 # type: verbatim
8806 #. type: verbatim
8807 #: ../src/guestfs-actions.pod:1191
8808 #, no-wrap
8809 msgid ""
8810 " char *\n"
8811 " guestfs_df_h (guestfs_h *g);\n"
8812 "\n"
8813 msgstr ""
8814
8815 # type: textblock
8816 #. type: textblock
8817 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
8818 msgid ""
8819 "This command runs the C<df -h> command to report disk space used in human-"
8820 "readable format."
8821 msgstr ""
8822
8823 # type: =head2
8824 #. type: =head2
8825 #: ../src/guestfs-actions.pod:1206
8826 msgid "guestfs_dmesg"
8827 msgstr ""
8828
8829 # type: verbatim
8830 #. type: verbatim
8831 #: ../src/guestfs-actions.pod:1208
8832 #, no-wrap
8833 msgid ""
8834 " char *\n"
8835 " guestfs_dmesg (guestfs_h *g);\n"
8836 "\n"
8837 msgstr ""
8838
8839 # type: textblock
8840 #. type: textblock
8841 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
8842 msgid ""
8843 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8844 "This is sometimes useful for extended debugging of problems."
8845 msgstr ""
8846
8847 # type: textblock
8848 #. type: textblock
8849 #: ../src/guestfs-actions.pod:1215
8850 msgid ""
8851 "Another way to get the same information is to enable verbose messages with "
8852 "C<guestfs_set_verbose> or by setting the environment variable "
8853 "C<LIBGUESTFS_DEBUG=1> before running the program."
8854 msgstr ""
8855
8856 # type: =head2
8857 #. type: =head2
8858 #: ../src/guestfs-actions.pod:1225
8859 msgid "guestfs_download"
8860 msgstr ""
8861
8862 # type: verbatim
8863 #. type: verbatim
8864 #: ../src/guestfs-actions.pod:1227
8865 #, no-wrap
8866 msgid ""
8867 " int\n"
8868 " guestfs_download (guestfs_h *g,\n"
8869 "                   const char *remotefilename,\n"
8870 "                   const char *filename);\n"
8871 "\n"
8872 msgstr ""
8873
8874 # type: textblock
8875 #. type: textblock
8876 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257
8877 #: ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
8878 msgid ""
8879 "Download file C<remotefilename> and save it as C<filename> on the local "
8880 "machine."
8881 msgstr ""
8882
8883 # type: textblock
8884 #. type: textblock
8885 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6736
8886 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4524
8887 msgid "C<filename> can also be a named pipe."
8888 msgstr ""
8889
8890 # type: textblock
8891 #. type: textblock
8892 #: ../src/guestfs-actions.pod:1237
8893 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8894 msgstr ""
8895
8896 # type: =head2
8897 #. type: =head2
8898 #: ../src/guestfs-actions.pod:1248
8899 msgid "guestfs_download_offset"
8900 msgstr ""
8901
8902 # type: verbatim
8903 #. type: verbatim
8904 #: ../src/guestfs-actions.pod:1250
8905 #, no-wrap
8906 msgid ""
8907 " int\n"
8908 " guestfs_download_offset (guestfs_h *g,\n"
8909 "                          const char *remotefilename,\n"
8910 "                          const char *filename,\n"
8911 "                          int64_t offset,\n"
8912 "                          int64_t size);\n"
8913 "\n"
8914 msgstr ""
8915
8916 # type: textblock
8917 #. type: textblock
8918 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
8919 msgid ""
8920 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8921 "region must be within the file or device)."
8922 msgstr ""
8923
8924 # type: textblock
8925 #. type: textblock
8926 #: ../src/guestfs-actions.pod:1263
8927 msgid ""
8928 "Note that there is no limit on the amount of data that can be downloaded "
8929 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8930 "full amount unless an error occurs."
8931 msgstr ""
8932
8933 # type: textblock
8934 #. type: textblock
8935 #: ../src/guestfs-actions.pod:1268
8936 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8937 msgstr ""
8938
8939 # type: textblock
8940 #. type: textblock
8941 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6781
8942 msgid "(Added in 1.5.17)"
8943 msgstr ""
8944
8945 # type: =head2
8946 #. type: =head2
8947 #: ../src/guestfs-actions.pod:1279
8948 msgid "guestfs_drop_caches"
8949 msgstr ""
8950
8951 # type: verbatim
8952 #. type: verbatim
8953 #: ../src/guestfs-actions.pod:1281
8954 #, no-wrap
8955 msgid ""
8956 " int\n"
8957 " guestfs_drop_caches (guestfs_h *g,\n"
8958 "                      int whattodrop);\n"
8959 "\n"
8960 msgstr ""
8961
8962 # type: textblock
8963 #. type: textblock
8964 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
8965 msgid ""
8966 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8967 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8968 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8969 msgstr ""
8970
8971 # type: textblock
8972 #. type: textblock
8973 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
8974 msgid "Setting C<whattodrop> to 3 should drop everything."
8975 msgstr ""
8976
8977 # type: textblock
8978 #. type: textblock
8979 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
8980 msgid ""
8981 "This automatically calls L<sync(2)> before the operation, so that the "
8982 "maximum guest memory is freed."
8983 msgstr ""
8984
8985 # type: =head2
8986 #. type: =head2
8987 #: ../src/guestfs-actions.pod:1299
8988 msgid "guestfs_du"
8989 msgstr ""
8990
8991 # type: verbatim
8992 #. type: verbatim
8993 #: ../src/guestfs-actions.pod:1301
8994 #, no-wrap
8995 msgid ""
8996 " int64_t\n"
8997 " guestfs_du (guestfs_h *g,\n"
8998 "             const char *path);\n"
8999 "\n"
9000 msgstr ""
9001
9002 # type: textblock
9003 #. type: textblock
9004 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
9005 msgid ""
9006 "This command runs the C<du -s> command to estimate file space usage for "
9007 "C<path>."
9008 msgstr ""
9009
9010 # type: textblock
9011 #. type: textblock
9012 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
9013 msgid ""
9014 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9015 "estimate includes the contents of the directory and all subdirectories "
9016 "(recursively)."
9017 msgstr ""
9018
9019 # type: textblock
9020 #. type: textblock
9021 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
9022 msgid ""
9023 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9024 msgstr ""
9025
9026 # type: =head2
9027 #. type: =head2
9028 #: ../src/guestfs-actions.pod:1324
9029 msgid "guestfs_e2fsck_f"
9030 msgstr ""
9031
9032 # type: verbatim
9033 #. type: verbatim
9034 #: ../src/guestfs-actions.pod:1326
9035 #, no-wrap
9036 msgid ""
9037 " int\n"
9038 " guestfs_e2fsck_f (guestfs_h *g,\n"
9039 "                   const char *device);\n"
9040 "\n"
9041 msgstr ""
9042
9043 # type: textblock
9044 #. type: textblock
9045 #: ../src/guestfs-actions.pod:1330 ../fish/guestfish-actions.pod:885
9046 msgid ""
9047 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9048 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
9049 "clean (C<-f>)."
9050 msgstr ""
9051
9052 # type: textblock
9053 #. type: textblock
9054 #: ../src/guestfs-actions.pod:1334
9055 msgid ""
9056 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9057 "Normally you should use C<guestfs_fsck>."
9058 msgstr ""
9059
9060 # type: textblock
9061 #. type: textblock
9062 #: ../src/guestfs-actions.pod:1339
9063 msgid "(Added in 1.0.29)"
9064 msgstr ""
9065
9066 # type: =head2
9067 #. type: =head2
9068 #: ../src/guestfs-actions.pod:1341
9069 msgid "guestfs_echo_daemon"
9070 msgstr ""
9071
9072 # type: verbatim
9073 #. type: verbatim
9074 #: ../src/guestfs-actions.pod:1343
9075 #, no-wrap
9076 msgid ""
9077 " char *\n"
9078 " guestfs_echo_daemon (guestfs_h *g,\n"
9079 "                      char *const *words);\n"
9080 "\n"
9081 msgstr ""
9082
9083 # type: textblock
9084 #. type: textblock
9085 #: ../src/guestfs-actions.pod:1347 ../fish/guestfish-actions.pod:896
9086 msgid ""
9087 "This command concatenates the list of C<words> passed with single spaces "
9088 "between them and returns the resulting string."
9089 msgstr ""
9090
9091 # type: textblock
9092 #. type: textblock
9093 #: ../src/guestfs-actions.pod:1350 ../fish/guestfish-actions.pod:899
9094 msgid "You can use this command to test the connection through to the daemon."
9095 msgstr ""
9096
9097 # type: textblock
9098 #. type: textblock
9099 #: ../src/guestfs-actions.pod:1352
9100 msgid "See also C<guestfs_ping_daemon>."
9101 msgstr ""
9102
9103 # type: textblock
9104 #. type: textblock
9105 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:2094
9106 #: ../src/guestfs-actions.pod:5980
9107 msgid "(Added in 1.0.69)"
9108 msgstr ""
9109
9110 # type: =head2
9111 #. type: =head2
9112 #: ../src/guestfs-actions.pod:1359
9113 msgid "guestfs_egrep"
9114 msgstr ""
9115
9116 # type: verbatim
9117 #. type: verbatim
9118 #: ../src/guestfs-actions.pod:1361
9119 #, no-wrap
9120 msgid ""
9121 " char **\n"
9122 " guestfs_egrep (guestfs_h *g,\n"
9123 "                const char *regex,\n"
9124 "                const char *path);\n"
9125 "\n"
9126 msgstr ""
9127
9128 # type: textblock
9129 #. type: textblock
9130 #: ../src/guestfs-actions.pod:1366 ../fish/guestfish-actions.pod:907
9131 msgid ""
9132 "This calls the external C<egrep> program and returns the matching lines."
9133 msgstr ""
9134
9135 # type: textblock
9136 #. type: textblock
9137 #: ../src/guestfs-actions.pod:1376 ../src/guestfs-actions.pod:1395
9138 #: ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1498
9139 #: ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:2224
9140 #: ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2399
9141 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2427
9142 #: ../src/guestfs-actions.pod:2473 ../src/guestfs-actions.pod:2495
9143 #: ../src/guestfs-actions.pod:2508 ../src/guestfs-actions.pod:3577
9144 #: ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:3604
9145 #: ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:4604
9146 #: ../src/guestfs-actions.pod:5480 ../src/guestfs-actions.pod:5529
9147 #: ../src/guestfs-actions.pod:6348 ../src/guestfs-actions.pod:6360
9148 #: ../src/guestfs-actions.pod:6373 ../src/guestfs-actions.pod:6386
9149 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6421
9150 #: ../src/guestfs-actions.pod:6434 ../src/guestfs-actions.pod:6447
9151 #: ../src/guestfs-actions.pod:7218 ../src/guestfs-actions.pod:7237
9152 #: ../src/guestfs-actions.pod:7322 ../src/guestfs-actions.pod:7341
9153 #: ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7406
9154 msgid "(Added in 1.0.66)"
9155 msgstr ""
9156
9157 # type: =head2
9158 #. type: =head2
9159 #: ../src/guestfs-actions.pod:1378
9160 msgid "guestfs_egrepi"
9161 msgstr ""
9162
9163 # type: verbatim
9164 #. type: verbatim
9165 #: ../src/guestfs-actions.pod:1380
9166 #, no-wrap
9167 msgid ""
9168 " char **\n"
9169 " guestfs_egrepi (guestfs_h *g,\n"
9170 "                 const char *regex,\n"
9171 "                 const char *path);\n"
9172 "\n"
9173 msgstr ""
9174
9175 # type: textblock
9176 #. type: textblock
9177 #: ../src/guestfs-actions.pod:1385 ../fish/guestfish-actions.pod:917
9178 msgid ""
9179 "This calls the external C<egrep -i> program and returns the matching lines."
9180 msgstr ""
9181
9182 # type: =head2
9183 #. type: =head2
9184 #: ../src/guestfs-actions.pod:1397
9185 msgid "guestfs_equal"
9186 msgstr ""
9187
9188 # type: verbatim
9189 #. type: verbatim
9190 #: ../src/guestfs-actions.pod:1399
9191 #, no-wrap
9192 msgid ""
9193 " int\n"
9194 " guestfs_equal (guestfs_h *g,\n"
9195 "                const char *file1,\n"
9196 "                const char *file2);\n"
9197 "\n"
9198 msgstr ""
9199
9200 # type: textblock
9201 #. type: textblock
9202 #: ../src/guestfs-actions.pod:1404 ../fish/guestfish-actions.pod:927
9203 msgid ""
9204 "This compares the two files C<file1> and C<file2> and returns true if their "
9205 "content is exactly equal, or false otherwise."
9206 msgstr ""
9207
9208 # type: textblock
9209 #. type: textblock
9210 #: ../src/guestfs-actions.pod:1407 ../fish/guestfish-actions.pod:930
9211 msgid "The external L<cmp(1)> program is used for the comparison."
9212 msgstr ""
9213
9214 # type: =head2
9215 #. type: =head2
9216 #: ../src/guestfs-actions.pod:1413
9217 msgid "guestfs_exists"
9218 msgstr ""
9219
9220 # type: verbatim
9221 #. type: verbatim
9222 #: ../src/guestfs-actions.pod:1415
9223 #, no-wrap
9224 msgid ""
9225 " int\n"
9226 " guestfs_exists (guestfs_h *g,\n"
9227 "                 const char *path);\n"
9228 "\n"
9229 msgstr ""
9230
9231 # type: textblock
9232 #. type: textblock
9233 #: ../src/guestfs-actions.pod:1419 ../fish/guestfish-actions.pod:936
9234 msgid ""
9235 "This returns C<true> if and only if there is a file, directory (or anything) "
9236 "with the given C<path> name."
9237 msgstr ""
9238
9239 # type: textblock
9240 #. type: textblock
9241 #: ../src/guestfs-actions.pod:1422
9242 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9243 msgstr ""
9244
9245 # type: =head2
9246 #. type: =head2
9247 #: ../src/guestfs-actions.pod:1428
9248 msgid "guestfs_fallocate"
9249 msgstr ""
9250
9251 # type: verbatim
9252 #. type: verbatim
9253 #: ../src/guestfs-actions.pod:1430
9254 #, no-wrap
9255 msgid ""
9256 " int\n"
9257 " guestfs_fallocate (guestfs_h *g,\n"
9258 "                    const char *path,\n"
9259 "                    int len);\n"
9260 "\n"
9261 msgstr ""
9262
9263 # type: textblock
9264 #. type: textblock
9265 #: ../src/guestfs-actions.pod:1435 ../src/guestfs-actions.pod:1461
9266 #: ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
9267 msgid ""
9268 "This command preallocates a file (containing zero bytes) named C<path> of "
9269 "size C<len> bytes.  If the file exists already, it is overwritten."
9270 msgstr ""
9271
9272 # type: textblock
9273 #. type: textblock
9274 #: ../src/guestfs-actions.pod:1439 ../fish/guestfish-actions.pod:949
9275 msgid ""
9276 "Do not confuse this with the guestfish-specific C<alloc> command which "
9277 "allocates a file in the host and attaches it as a device."
9278 msgstr ""
9279
9280 # type: textblock
9281 #. type: textblock
9282 #: ../src/guestfs-actions.pod:1445 ../fish/guestfish-actions.pod:953
9283 msgid ""
9284 "This function is deprecated.  In new code, use the C<fallocate64> call "
9285 "instead."
9286 msgstr ""
9287
9288 # type: =head2
9289 #. type: =head2
9290 #: ../src/guestfs-actions.pod:1454
9291 msgid "guestfs_fallocate64"
9292 msgstr ""
9293
9294 # type: verbatim
9295 #. type: verbatim
9296 #: ../src/guestfs-actions.pod:1456
9297 #, no-wrap
9298 msgid ""
9299 " int\n"
9300 " guestfs_fallocate64 (guestfs_h *g,\n"
9301 "                      const char *path,\n"
9302 "                      int64_t len);\n"
9303 "\n"
9304 msgstr ""
9305
9306 # type: textblock
9307 #. type: textblock
9308 #: ../src/guestfs-actions.pod:1465
9309 msgid ""
9310 "Note that this call allocates disk blocks for the file.  To create a sparse "
9311 "file use C<guestfs_truncate_size> instead."
9312 msgstr ""
9313
9314 # type: textblock
9315 #. type: textblock
9316 #: ../src/guestfs-actions.pod:1468
9317 msgid ""
9318 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9319 "oversight it only allowed 30 bit lengths to be specified, effectively "
9320 "limiting the maximum size of files created through that call to 1GB."
9321 msgstr ""
9322
9323 # type: textblock
9324 #. type: textblock
9325 #: ../src/guestfs-actions.pod:1473 ../fish/guestfish-actions.pod:976
9326 msgid ""
9327 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9328 "commands which create a file in the host and attach it as a device."
9329 msgstr ""
9330
9331 # type: textblock
9332 #. type: textblock
9333 #: ../src/guestfs-actions.pod:1479
9334 msgid "(Added in 1.3.17)"
9335 msgstr ""
9336
9337 # type: =head2
9338 #. type: =head2
9339 #: ../src/guestfs-actions.pod:1481
9340 msgid "guestfs_fgrep"
9341 msgstr ""
9342
9343 # type: verbatim
9344 #. type: verbatim
9345 #: ../src/guestfs-actions.pod:1483
9346 #, no-wrap
9347 msgid ""
9348 " char **\n"
9349 " guestfs_fgrep (guestfs_h *g,\n"
9350 "                const char *pattern,\n"
9351 "                const char *path);\n"
9352 "\n"
9353 msgstr ""
9354
9355 # type: textblock
9356 #. type: textblock
9357 #: ../src/guestfs-actions.pod:1488 ../fish/guestfish-actions.pod:984
9358 msgid ""
9359 "This calls the external C<fgrep> program and returns the matching lines."
9360 msgstr ""
9361
9362 # type: =head2
9363 #. type: =head2
9364 #: ../src/guestfs-actions.pod:1500
9365 msgid "guestfs_fgrepi"
9366 msgstr ""
9367
9368 # type: verbatim
9369 #. type: verbatim
9370 #: ../src/guestfs-actions.pod:1502
9371 #, no-wrap
9372 msgid ""
9373 " char **\n"
9374 " guestfs_fgrepi (guestfs_h *g,\n"
9375 "                 const char *pattern,\n"
9376 "                 const char *path);\n"
9377 "\n"
9378 msgstr ""
9379
9380 # type: textblock
9381 #. type: textblock
9382 #: ../src/guestfs-actions.pod:1507 ../fish/guestfish-actions.pod:994
9383 msgid ""
9384 "This calls the external C<fgrep -i> program and returns the matching lines."
9385 msgstr ""
9386
9387 # type: =head2
9388 #. type: =head2
9389 #: ../src/guestfs-actions.pod:1519
9390 msgid "guestfs_file"
9391 msgstr ""
9392
9393 # type: verbatim
9394 #. type: verbatim
9395 #: ../src/guestfs-actions.pod:1521
9396 #, no-wrap
9397 msgid ""
9398 " char *\n"
9399 " guestfs_file (guestfs_h *g,\n"
9400 "               const char *path);\n"
9401 "\n"
9402 msgstr ""
9403
9404 # type: textblock
9405 #. type: textblock
9406 #: ../src/guestfs-actions.pod:1525 ../fish/guestfish-actions.pod:1004
9407 msgid ""
9408 "This call uses the standard L<file(1)> command to determine the type or "
9409 "contents of the file."
9410 msgstr ""
9411
9412 # type: textblock
9413 #. type: textblock
9414 #: ../src/guestfs-actions.pod:1528 ../fish/guestfish-actions.pod:1007
9415 msgid ""
9416 "This call will also transparently look inside various types of compressed "
9417 "file."
9418 msgstr ""
9419
9420 # type: textblock
9421 #. type: textblock
9422 #: ../src/guestfs-actions.pod:1531 ../fish/guestfish-actions.pod:1010
9423 msgid ""
9424 "The exact command which runs is C<file -zb path>.  Note in particular that "
9425 "the filename is not prepended to the output (the C<-b> option)."
9426 msgstr ""
9427
9428 # type: textblock
9429 #. type: textblock
9430 #: ../src/guestfs-actions.pod:1535
9431 msgid ""
9432 "This command can also be used on C</dev/> devices (and partitions, LV "
9433 "names).  You can for example use this to determine if a device contains a "
9434 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
9435 msgstr ""
9436
9437 # type: textblock
9438 #. type: textblock
9439 #: ../src/guestfs-actions.pod:1540 ../fish/guestfish-actions.pod:1019
9440 msgid ""
9441 "If the C<path> does not begin with C</dev/> then this command only works for "
9442 "the content of regular files.  For other file types (directory, symbolic "
9443 "link etc) it will just return the string C<directory> etc."
9444 msgstr ""
9445
9446 # type: =head2
9447 #. type: =head2
9448 #: ../src/guestfs-actions.pod:1550
9449 msgid "guestfs_file_architecture"
9450 msgstr ""
9451
9452 # type: verbatim
9453 #. type: verbatim
9454 #: ../src/guestfs-actions.pod:1552
9455 #, no-wrap
9456 msgid ""
9457 " char *\n"
9458 " guestfs_file_architecture (guestfs_h *g,\n"
9459 "                            const char *filename);\n"
9460 "\n"
9461 msgstr ""
9462
9463 # type: textblock
9464 #. type: textblock
9465 #: ../src/guestfs-actions.pod:1556 ../fish/guestfish-actions.pod:1028
9466 msgid ""
9467 "This detects the architecture of the binary C<filename>, and returns it if "
9468 "known."
9469 msgstr ""
9470
9471 # type: textblock
9472 #. type: textblock
9473 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1031
9474 msgid "Currently defined architectures are:"
9475 msgstr ""
9476
9477 # type: =item
9478 #. type: =item
9479 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1035
9480 msgid "\"i386\""
9481 msgstr ""
9482
9483 # type: textblock
9484 #. type: textblock
9485 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1037
9486 msgid ""
9487 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9488 "irrespective of the precise processor requirements of the binary."
9489 msgstr ""
9490
9491 # type: =item
9492 #. type: =item
9493 #: ../src/guestfs-actions.pod:1568 ../fish/guestfish-actions.pod:1040
9494 msgid "\"x86_64\""
9495 msgstr ""
9496
9497 # type: textblock
9498 #. type: textblock
9499 #: ../src/guestfs-actions.pod:1570 ../fish/guestfish-actions.pod:1042
9500 msgid "64 bit x86-64."
9501 msgstr ""
9502
9503 # type: =item
9504 #. type: =item
9505 #: ../src/guestfs-actions.pod:1572 ../fish/guestfish-actions.pod:1044
9506 msgid "\"sparc\""
9507 msgstr ""
9508
9509 # type: textblock
9510 #. type: textblock
9511 #: ../src/guestfs-actions.pod:1574 ../fish/guestfish-actions.pod:1046
9512 msgid "32 bit SPARC."
9513 msgstr ""
9514
9515 # type: =item
9516 #. type: =item
9517 #: ../src/guestfs-actions.pod:1576 ../fish/guestfish-actions.pod:1048
9518 msgid "\"sparc64\""
9519 msgstr ""
9520
9521 # type: textblock
9522 #. type: textblock
9523 #: ../src/guestfs-actions.pod:1578 ../fish/guestfish-actions.pod:1050
9524 msgid "64 bit SPARC V9 and above."
9525 msgstr ""
9526
9527 # type: =item
9528 #. type: =item
9529 #: ../src/guestfs-actions.pod:1580 ../fish/guestfish-actions.pod:1052
9530 msgid "\"ia64\""
9531 msgstr ""
9532
9533 # type: textblock
9534 #. type: textblock
9535 #: ../src/guestfs-actions.pod:1582 ../fish/guestfish-actions.pod:1054
9536 msgid "Intel Itanium."
9537 msgstr ""
9538
9539 # type: =item
9540 #. type: =item
9541 #: ../src/guestfs-actions.pod:1584 ../fish/guestfish-actions.pod:1056
9542 msgid "\"ppc\""
9543 msgstr ""
9544
9545 # type: textblock
9546 #. type: textblock
9547 #: ../src/guestfs-actions.pod:1586 ../fish/guestfish-actions.pod:1058
9548 msgid "32 bit Power PC."
9549 msgstr ""
9550
9551 # type: =item
9552 #. type: =item
9553 #: ../src/guestfs-actions.pod:1588 ../fish/guestfish-actions.pod:1060
9554 msgid "\"ppc64\""
9555 msgstr ""
9556
9557 # type: textblock
9558 #. type: textblock
9559 #: ../src/guestfs-actions.pod:1590 ../fish/guestfish-actions.pod:1062
9560 msgid "64 bit Power PC."
9561 msgstr ""
9562
9563 # type: textblock
9564 #. type: textblock
9565 #: ../src/guestfs-actions.pod:1594 ../fish/guestfish-actions.pod:1066
9566 msgid "Libguestfs may return other architecture strings in future."
9567 msgstr ""
9568
9569 # type: textblock
9570 #. type: textblock
9571 #: ../src/guestfs-actions.pod:1596 ../fish/guestfish-actions.pod:1068
9572 msgid "The function works on at least the following types of files:"
9573 msgstr ""
9574
9575 # type: textblock
9576 #. type: textblock
9577 #: ../src/guestfs-actions.pod:1602 ../fish/guestfish-actions.pod:1074
9578 msgid "many types of Un*x and Linux binary"
9579 msgstr ""
9580
9581 # type: textblock
9582 #. type: textblock
9583 #: ../src/guestfs-actions.pod:1606 ../fish/guestfish-actions.pod:1078
9584 msgid "many types of Un*x and Linux shared library"
9585 msgstr ""
9586
9587 # type: textblock
9588 #. type: textblock
9589 #: ../src/guestfs-actions.pod:1610 ../fish/guestfish-actions.pod:1082
9590 msgid "Windows Win32 and Win64 binaries"
9591 msgstr ""
9592
9593 # type: textblock
9594 #. type: textblock
9595 #: ../src/guestfs-actions.pod:1614 ../fish/guestfish-actions.pod:1086
9596 msgid "Windows Win32 and Win64 DLLs"
9597 msgstr ""
9598
9599 # type: textblock
9600 #. type: textblock
9601 #: ../src/guestfs-actions.pod:1616 ../fish/guestfish-actions.pod:1088
9602 msgid "Win32 binaries and DLLs return C<i386>."
9603 msgstr ""
9604
9605 # type: textblock
9606 #. type: textblock
9607 #: ../src/guestfs-actions.pod:1618 ../fish/guestfish-actions.pod:1090
9608 msgid "Win64 binaries and DLLs return C<x86_64>."
9609 msgstr ""
9610
9611 # type: textblock
9612 #. type: textblock
9613 #: ../src/guestfs-actions.pod:1622 ../fish/guestfish-actions.pod:1094
9614 msgid "Linux kernel modules"
9615 msgstr ""
9616
9617 # type: textblock
9618 #. type: textblock
9619 #: ../src/guestfs-actions.pod:1626 ../fish/guestfish-actions.pod:1098
9620 msgid "Linux new-style initrd images"
9621 msgstr ""
9622
9623 # type: textblock
9624 #. type: textblock
9625 #: ../src/guestfs-actions.pod:1630 ../fish/guestfish-actions.pod:1102
9626 msgid "some non-x86 Linux vmlinuz kernels"
9627 msgstr ""
9628
9629 # type: textblock
9630 #. type: textblock
9631 #: ../src/guestfs-actions.pod:1634 ../fish/guestfish-actions.pod:1106
9632 msgid "What it can't do currently:"
9633 msgstr ""
9634
9635 # type: textblock
9636 #. type: textblock
9637 #: ../src/guestfs-actions.pod:1640 ../fish/guestfish-actions.pod:1112
9638 msgid "static libraries (libfoo.a)"
9639 msgstr ""
9640
9641 # type: textblock
9642 #. type: textblock
9643 #: ../src/guestfs-actions.pod:1644 ../fish/guestfish-actions.pod:1116
9644 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9645 msgstr ""
9646
9647 # type: textblock
9648 #. type: textblock
9649 #: ../src/guestfs-actions.pod:1648 ../fish/guestfish-actions.pod:1120
9650 msgid "x86 Linux vmlinuz kernels"
9651 msgstr ""
9652
9653 # type: textblock
9654 #. type: textblock
9655 #: ../src/guestfs-actions.pod:1650 ../fish/guestfish-actions.pod:1122
9656 msgid ""
9657 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9658 "compressed code, and are horribly hard to unpack.  If you want to find the "
9659 "architecture of a kernel, use the architecture of the associated initrd or "
9660 "kernel module(s) instead."
9661 msgstr ""
9662
9663 # type: textblock
9664 #. type: textblock
9665 #: ../src/guestfs-actions.pod:1660 ../src/guestfs-actions.pod:1823
9666 #: ../src/guestfs-actions.pod:1840 ../src/guestfs-actions.pod:2531
9667 #: ../src/guestfs-actions.pod:2616 ../src/guestfs-actions.pod:2642
9668 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2751
9669 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:2872
9670 #: ../src/guestfs-actions.pod:2969 ../src/guestfs-actions.pod:3195
9671 #: ../src/guestfs-actions.pod:3327
9672 msgid "(Added in 1.5.3)"
9673 msgstr ""
9674
9675 # type: =head2
9676 #. type: =head2
9677 #: ../src/guestfs-actions.pod:1662
9678 msgid "guestfs_filesize"
9679 msgstr ""
9680
9681 # type: verbatim
9682 #. type: verbatim
9683 #: ../src/guestfs-actions.pod:1664
9684 #, no-wrap
9685 msgid ""
9686 " int64_t\n"
9687 " guestfs_filesize (guestfs_h *g,\n"
9688 "                   const char *file);\n"
9689 "\n"
9690 msgstr ""
9691
9692 # type: textblock
9693 #. type: textblock
9694 #: ../src/guestfs-actions.pod:1668 ../fish/guestfish-actions.pod:1133
9695 msgid "This command returns the size of C<file> in bytes."
9696 msgstr ""
9697
9698 # type: textblock
9699 #. type: textblock
9700 #: ../src/guestfs-actions.pod:1670
9701 msgid ""
9702 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9703 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9704 "devices, use C<guestfs_blockdev_getsize64>."
9705 msgstr ""
9706
9707 # type: textblock
9708 #. type: textblock
9709 #: ../src/guestfs-actions.pod:1676
9710 msgid "(Added in 1.0.82)"
9711 msgstr ""
9712
9713 # type: =head2
9714 #. type: =head2
9715 #: ../src/guestfs-actions.pod:1678
9716 msgid "guestfs_fill"
9717 msgstr ""
9718
9719 # type: verbatim
9720 #. type: verbatim
9721 #: ../src/guestfs-actions.pod:1680
9722 #, no-wrap
9723 msgid ""
9724 " int\n"
9725 " guestfs_fill (guestfs_h *g,\n"
9726 "               int c,\n"
9727 "               int len,\n"
9728 "               const char *path);\n"
9729 "\n"
9730 msgstr ""
9731
9732 # type: textblock
9733 #. type: textblock
9734 #: ../src/guestfs-actions.pod:1686 ../fish/guestfish-actions.pod:1143
9735 msgid ""
9736 "This command creates a new file called C<path>.  The initial content of the "
9737 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9738 "[0..255]>."
9739 msgstr ""
9740
9741 # type: textblock
9742 #. type: textblock
9743 #: ../src/guestfs-actions.pod:1690
9744 msgid ""
9745 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9746 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9747 "bytes use C<guestfs_fill_pattern>."
9748 msgstr ""
9749
9750 # type: textblock
9751 #. type: textblock
9752 #: ../src/guestfs-actions.pod:1702
9753 msgid "(Added in 1.0.79)"
9754 msgstr ""
9755
9756 # type: =head2
9757 #. type: =head2
9758 #: ../src/guestfs-actions.pod:1704
9759 msgid "guestfs_fill_pattern"
9760 msgstr ""
9761
9762 # type: verbatim
9763 #. type: verbatim
9764 #: ../src/guestfs-actions.pod:1706
9765 #, no-wrap
9766 msgid ""
9767 " int\n"
9768 " guestfs_fill_pattern (guestfs_h *g,\n"
9769 "                       const char *pattern,\n"
9770 "                       int len,\n"
9771 "                       const char *path);\n"
9772 "\n"
9773 msgstr ""
9774
9775 # type: textblock
9776 #. type: textblock
9777 #: ../src/guestfs-actions.pod:1712
9778 msgid ""
9779 "This function is like C<guestfs_fill> except that it creates a new file of "
9780 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9781 "pattern is truncated if necessary to ensure the length of the file is "
9782 "exactly C<len> bytes."
9783 msgstr ""
9784
9785 # type: textblock
9786 #. type: textblock
9787 #: ../src/guestfs-actions.pod:1724
9788 msgid "(Added in 1.3.12)"
9789 msgstr ""
9790
9791 # type: =head2
9792 #. type: =head2
9793 #: ../src/guestfs-actions.pod:1726
9794 msgid "guestfs_find"
9795 msgstr ""
9796
9797 # type: verbatim
9798 #. type: verbatim
9799 #: ../src/guestfs-actions.pod:1728
9800 #, no-wrap
9801 msgid ""
9802 " char **\n"
9803 " guestfs_find (guestfs_h *g,\n"
9804 "               const char *directory);\n"
9805 "\n"
9806 msgstr ""
9807
9808 # type: textblock
9809 #. type: textblock
9810 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1165
9811 msgid ""
9812 "This command lists out all files and directories, recursively, starting at "
9813 "C<directory>.  It is essentially equivalent to running the shell command "
9814 "C<find directory -print> but some post-processing happens on the output, "
9815 "described below."
9816 msgstr ""
9817
9818 # type: textblock
9819 #. type: textblock
9820 #: ../src/guestfs-actions.pod:1737 ../fish/guestfish-actions.pod:1170
9821 msgid ""
9822 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9823 "structure was:"
9824 msgstr ""
9825
9826 # type: verbatim
9827 #. type: verbatim
9828 #: ../src/guestfs-actions.pod:1740 ../fish/guestfish-actions.pod:1173
9829 #, no-wrap
9830 msgid ""
9831 " /tmp/a\n"
9832 " /tmp/b\n"
9833 " /tmp/c/d\n"
9834 "\n"
9835 msgstr ""
9836
9837 # type: textblock
9838 #. type: textblock
9839 #: ../src/guestfs-actions.pod:1744
9840 msgid ""
9841 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9842 msgstr ""
9843
9844 # type: verbatim
9845 #. type: verbatim
9846 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1180
9847 #, no-wrap
9848 msgid ""
9849 " a\n"
9850 " b\n"
9851 " c\n"
9852 " c/d\n"
9853 "\n"
9854 msgstr ""
9855
9856 # type: textblock
9857 #. type: textblock
9858 #: ../src/guestfs-actions.pod:1752 ../fish/guestfish-actions.pod:1185
9859 msgid "If C<directory> is not a directory, then this command returns an error."
9860 msgstr ""
9861
9862 # type: textblock
9863 #. type: textblock
9864 #: ../src/guestfs-actions.pod:1755 ../fish/guestfish-actions.pod:1188
9865 msgid "The returned list is sorted."
9866 msgstr ""
9867
9868 # type: textblock
9869 #. type: textblock
9870 #: ../src/guestfs-actions.pod:1757
9871 msgid "See also C<guestfs_find0>."
9872 msgstr ""
9873
9874 # type: textblock
9875 #. type: textblock
9876 #: ../src/guestfs-actions.pod:1766 ../src/guestfs-actions.pod:4021
9877 #: ../src/guestfs-actions.pod:5564
9878 msgid "(Added in 1.0.27)"
9879 msgstr ""
9880
9881 # type: =head2
9882 #. type: =head2
9883 #: ../src/guestfs-actions.pod:1768
9884 msgid "guestfs_find0"
9885 msgstr ""
9886
9887 # type: verbatim
9888 #. type: verbatim
9889 #: ../src/guestfs-actions.pod:1770
9890 #, no-wrap
9891 msgid ""
9892 " int\n"
9893 " guestfs_find0 (guestfs_h *g,\n"
9894 "                const char *directory,\n"
9895 "                const char *files);\n"
9896 "\n"
9897 msgstr ""
9898
9899 # type: textblock
9900 #. type: textblock
9901 #: ../src/guestfs-actions.pod:1775 ../fish/guestfish-actions.pod:1199
9902 msgid ""
9903 "This command lists out all files and directories, recursively, starting at "
9904 "C<directory>, placing the resulting list in the external file called "
9905 "C<files>."
9906 msgstr ""
9907
9908 # type: textblock
9909 #. type: textblock
9910 #: ../src/guestfs-actions.pod:1779
9911 msgid ""
9912 "This command works the same way as C<guestfs_find> with the following "
9913 "exceptions:"
9914 msgstr ""
9915
9916 # type: textblock
9917 #. type: textblock
9918 #: ../src/guestfs-actions.pod:1786 ../fish/guestfish-actions.pod:1210
9919 msgid "The resulting list is written to an external file."
9920 msgstr ""
9921
9922 # type: textblock
9923 #. type: textblock
9924 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1214
9925 msgid ""
9926 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9927 "L<find(1)> option I<-print0>."
9928 msgstr ""
9929
9930 # type: textblock
9931 #. type: textblock
9932 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1219
9933 msgid "This command is not limited in the number of names that it can return."
9934 msgstr ""
9935
9936 # type: textblock
9937 #. type: textblock
9938 #: ../src/guestfs-actions.pod:1800 ../fish/guestfish-actions.pod:1224
9939 msgid "The result list is not sorted."
9940 msgstr ""
9941
9942 # type: textblock
9943 #. type: textblock
9944 #: ../src/guestfs-actions.pod:1806
9945 msgid "(Added in 1.0.74)"
9946 msgstr ""
9947
9948 # type: =head2
9949 #. type: =head2
9950 #: ../src/guestfs-actions.pod:1808
9951 msgid "guestfs_findfs_label"
9952 msgstr ""
9953
9954 # type: verbatim
9955 #. type: verbatim
9956 #: ../src/guestfs-actions.pod:1810
9957 #, no-wrap
9958 msgid ""
9959 " char *\n"
9960 " guestfs_findfs_label (guestfs_h *g,\n"
9961 "                       const char *label);\n"
9962 "\n"
9963 msgstr ""
9964
9965 # type: textblock
9966 #. type: textblock
9967 #: ../src/guestfs-actions.pod:1814 ../fish/guestfish-actions.pod:1234
9968 msgid ""
9969 "This command searches the filesystems and returns the one which has the "
9970 "given label.  An error is returned if no such filesystem can be found."
9971 msgstr ""
9972
9973 # type: textblock
9974 #. type: textblock
9975 #: ../src/guestfs-actions.pod:1818
9976 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9977 msgstr ""
9978
9979 # type: =head2
9980 #. type: =head2
9981 #: ../src/guestfs-actions.pod:1825
9982 msgid "guestfs_findfs_uuid"
9983 msgstr ""
9984
9985 # type: verbatim
9986 #. type: verbatim
9987 #: ../src/guestfs-actions.pod:1827
9988 #, no-wrap
9989 msgid ""
9990 " char *\n"
9991 " guestfs_findfs_uuid (guestfs_h *g,\n"
9992 "                      const char *uuid);\n"
9993 "\n"
9994 msgstr ""
9995
9996 # type: textblock
9997 #. type: textblock
9998 #: ../src/guestfs-actions.pod:1831 ../fish/guestfish-actions.pod:1244
9999 msgid ""
10000 "This command searches the filesystems and returns the one which has the "
10001 "given UUID.  An error is returned if no such filesystem can be found."
10002 msgstr ""
10003
10004 # type: textblock
10005 #. type: textblock
10006 #: ../src/guestfs-actions.pod:1835
10007 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
10008 msgstr ""
10009
10010 # type: =head2
10011 #. type: =head2
10012 #: ../src/guestfs-actions.pod:1842
10013 msgid "guestfs_fsck"
10014 msgstr ""
10015
10016 # type: verbatim
10017 #. type: verbatim
10018 #: ../src/guestfs-actions.pod:1844
10019 #, no-wrap
10020 msgid ""
10021 " int\n"
10022 " guestfs_fsck (guestfs_h *g,\n"
10023 "               const char *fstype,\n"
10024 "               const char *device);\n"
10025 "\n"
10026 msgstr ""
10027
10028 # type: textblock
10029 #. type: textblock
10030 #: ../src/guestfs-actions.pod:1849 ../fish/guestfish-actions.pod:1254
10031 msgid ""
10032 "This runs the filesystem checker (fsck) on C<device> which should have "
10033 "filesystem type C<fstype>."
10034 msgstr ""
10035
10036 # type: textblock
10037 #. type: textblock
10038 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1257
10039 msgid ""
10040 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10041 "codes from C<fsck>."
10042 msgstr ""
10043
10044 # type: textblock
10045 #. type: textblock
10046 #: ../src/guestfs-actions.pod:1861 ../fish/guestfish-actions.pod:1266
10047 msgid "Multiple status codes can be summed together."
10048 msgstr ""
10049
10050 # type: textblock
10051 #. type: textblock
10052 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1270
10053 msgid ""
10054 "A non-zero return code can mean \"success\", for example if errors have been "
10055 "corrected on the filesystem."
10056 msgstr ""
10057
10058 # type: textblock
10059 #. type: textblock
10060 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1275
10061 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10062 msgstr ""
10063
10064 # type: textblock
10065 #. type: textblock
10066 #: ../src/guestfs-actions.pod:1875 ../fish/guestfish-actions.pod:1280
10067 msgid ""
10068 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10069 msgstr ""
10070
10071 # type: textblock
10072 #. type: textblock
10073 #: ../src/guestfs-actions.pod:1879 ../src/guestfs-actions.pod:7260
10074 msgid "(Added in 1.0.16)"
10075 msgstr ""
10076
10077 # type: =head2
10078 #. type: =head2
10079 #: ../src/guestfs-actions.pod:1881
10080 msgid "guestfs_get_append"
10081 msgstr ""
10082
10083 # type: verbatim
10084 #. type: verbatim
10085 #: ../src/guestfs-actions.pod:1883
10086 #, no-wrap
10087 msgid ""
10088 " const char *\n"
10089 " guestfs_get_append (guestfs_h *g);\n"
10090 "\n"
10091 msgstr ""
10092
10093 # type: textblock
10094 #. type: textblock
10095 #: ../src/guestfs-actions.pod:1886 ../fish/guestfish-actions.pod:1286
10096 msgid ""
10097 "Return the additional kernel options which are added to the guest kernel "
10098 "command line."
10099 msgstr ""
10100
10101 # type: textblock
10102 #. type: textblock
10103 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1289
10104 msgid "If C<NULL> then no options are added."
10105 msgstr ""
10106
10107 # type: textblock
10108 #. type: textblock
10109 #: ../src/guestfs-actions.pod:1891
10110 msgid ""
10111 "This function returns a string which may be NULL.  There is no way to return "
10112 "an error from this function.  The string is owned by the guest handle and "
10113 "must I<not> be freed."
10114 msgstr ""
10115
10116 # type: textblock
10117 #. type: textblock
10118 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:5242
10119 #: ../src/guestfs-actions.pod:5722 ../src/guestfs-actions.pod:6122
10120 #: ../src/guestfs-actions.pod:6141 ../src/guestfs-actions.pod:6157
10121 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6931
10122 #: ../src/guestfs-actions.pod:6949 ../src/guestfs-actions.pod:7303
10123 msgid "(Added in 1.0.26)"
10124 msgstr ""
10125
10126 #. type: =head2
10127 #: ../src/guestfs-actions.pod:1897
10128 msgid "guestfs_get_attach_method"
10129 msgstr ""
10130
10131 #. type: verbatim
10132 #: ../src/guestfs-actions.pod:1899
10133 #, no-wrap
10134 msgid ""
10135 " char *\n"
10136 " guestfs_get_attach_method (guestfs_h *g);\n"
10137 "\n"
10138 msgstr ""
10139
10140 #. type: textblock
10141 #: ../src/guestfs-actions.pod:1902
10142 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10143 msgstr ""
10144
10145 # type: =head2
10146 #. type: =head2
10147 #: ../src/guestfs-actions.pod:1907
10148 msgid "guestfs_get_autosync"
10149 msgstr ""
10150
10151 # type: verbatim
10152 #. type: verbatim
10153 #: ../src/guestfs-actions.pod:1909
10154 #, no-wrap
10155 msgid ""
10156 " int\n"
10157 " guestfs_get_autosync (guestfs_h *g);\n"
10158 "\n"
10159 msgstr ""
10160
10161 # type: textblock
10162 #. type: textblock
10163 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1301
10164 msgid "Get the autosync flag."
10165 msgstr ""
10166
10167 # type: =head2
10168 #. type: =head2
10169 #: ../src/guestfs-actions.pod:1918
10170 msgid "guestfs_get_direct"
10171 msgstr ""
10172
10173 # type: verbatim
10174 #. type: verbatim
10175 #: ../src/guestfs-actions.pod:1920
10176 #, no-wrap
10177 msgid ""
10178 " int\n"
10179 " guestfs_get_direct (guestfs_h *g);\n"
10180 "\n"
10181 msgstr ""
10182
10183 # type: textblock
10184 #. type: textblock
10185 #: ../src/guestfs-actions.pod:1923 ../fish/guestfish-actions.pod:1307
10186 msgid "Return the direct appliance mode flag."
10187 msgstr ""
10188
10189 # type: textblock
10190 #. type: textblock
10191 #: ../src/guestfs-actions.pod:1927 ../src/guestfs-actions.pod:5791
10192 msgid "(Added in 1.0.72)"
10193 msgstr ""
10194
10195 # type: =head2
10196 #. type: =head2
10197 #: ../src/guestfs-actions.pod:1929
10198 msgid "guestfs_get_e2label"
10199 msgstr ""
10200
10201 # type: verbatim
10202 #. type: verbatim
10203 #: ../src/guestfs-actions.pod:1931
10204 #, no-wrap
10205 msgid ""
10206 " char *\n"
10207 " guestfs_get_e2label (guestfs_h *g,\n"
10208 "                      const char *device);\n"
10209 "\n"
10210 msgstr ""
10211
10212 # type: textblock
10213 #. type: textblock
10214 #: ../src/guestfs-actions.pod:1935 ../fish/guestfish-actions.pod:1313
10215 msgid ""
10216 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10217 msgstr ""
10218
10219 # type: textblock
10220 #. type: textblock
10221 #: ../src/guestfs-actions.pod:1941 ../fish/guestfish-actions.pod:1316
10222 msgid ""
10223 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10224 msgstr ""
10225
10226 # type: textblock
10227 #. type: textblock
10228 #: ../src/guestfs-actions.pod:1948 ../src/guestfs-actions.pod:1969
10229 #: ../src/guestfs-actions.pod:5809 ../src/guestfs-actions.pod:5828
10230 msgid "(Added in 1.0.15)"
10231 msgstr ""
10232
10233 # type: =head2
10234 #. type: =head2
10235 #: ../src/guestfs-actions.pod:1950
10236 msgid "guestfs_get_e2uuid"
10237 msgstr ""
10238
10239 # type: verbatim
10240 #. type: verbatim
10241 #: ../src/guestfs-actions.pod:1952
10242 #, no-wrap
10243 msgid ""
10244 " char *\n"
10245 " guestfs_get_e2uuid (guestfs_h *g,\n"
10246 "                     const char *device);\n"
10247 "\n"
10248 msgstr ""
10249
10250 # type: textblock
10251 #. type: textblock
10252 #: ../src/guestfs-actions.pod:1956 ../fish/guestfish-actions.pod:1327
10253 msgid ""
10254 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10255 msgstr ""
10256
10257 # type: textblock
10258 #. type: textblock
10259 #: ../src/guestfs-actions.pod:1962 ../fish/guestfish-actions.pod:1330
10260 msgid ""
10261 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10262 msgstr ""
10263
10264 # type: =head2
10265 #. type: =head2
10266 #: ../src/guestfs-actions.pod:1971
10267 msgid "guestfs_get_memsize"
10268 msgstr ""
10269
10270 # type: verbatim
10271 #. type: verbatim
10272 #: ../src/guestfs-actions.pod:1973
10273 #, no-wrap
10274 msgid ""
10275 " int\n"
10276 " guestfs_get_memsize (guestfs_h *g);\n"
10277 "\n"
10278 msgstr ""
10279
10280 # type: textblock
10281 #. type: textblock
10282 #: ../src/guestfs-actions.pod:1976 ../fish/guestfish-actions.pod:1341
10283 msgid ""
10284 "This gets the memory size in megabytes allocated to the qemu subprocess."
10285 msgstr ""
10286
10287 # type: textblock
10288 #. type: textblock
10289 #: ../src/guestfs-actions.pod:1979
10290 msgid ""
10291 "If C<guestfs_set_memsize> was not called on this handle, and if "
10292 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10293 "value for memsize."
10294 msgstr ""
10295
10296 # type: textblock
10297 #. type: textblock
10298 #: ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:2064
10299 #: ../src/guestfs-actions.pod:5844 ../src/guestfs-actions.pod:5951
10300 #: ../fish/guestfish-actions.pod:1348 ../fish/guestfish-actions.pod:1399
10301 #: ../fish/guestfish-actions.pod:3927 ../fish/guestfish-actions.pod:4014
10302 msgid ""
10303 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10304 msgstr ""
10305
10306 # type: textblock
10307 #. type: textblock
10308 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:4312
10309 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4528
10310 #: ../src/guestfs-actions.pod:4547 ../src/guestfs-actions.pod:4559
10311 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4589
10312 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5849
10313 #: ../src/guestfs-actions.pod:6096 ../src/guestfs-actions.pod:6697
10314 msgid "(Added in 1.0.55)"
10315 msgstr ""
10316
10317 # type: =head2
10318 #. type: =head2
10319 #: ../src/guestfs-actions.pod:1990
10320 msgid "guestfs_get_network"
10321 msgstr ""
10322
10323 # type: verbatim
10324 #. type: verbatim
10325 #: ../src/guestfs-actions.pod:1992
10326 #, no-wrap
10327 msgid ""
10328 " int\n"
10329 " guestfs_get_network (guestfs_h *g);\n"
10330 "\n"
10331 msgstr ""
10332
10333 # type: textblock
10334 #. type: textblock
10335 #: ../src/guestfs-actions.pod:1995 ../fish/guestfish-actions.pod:1355
10336 msgid "This returns the enable network flag."
10337 msgstr ""
10338
10339 # type: textblock
10340 #. type: textblock
10341 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:5868
10342 msgid "(Added in 1.5.4)"
10343 msgstr ""
10344
10345 # type: =head2
10346 #. type: =head2
10347 #: ../src/guestfs-actions.pod:2001
10348 msgid "guestfs_get_path"
10349 msgstr ""
10350
10351 # type: verbatim
10352 #. type: verbatim
10353 #: ../src/guestfs-actions.pod:2003
10354 #, no-wrap
10355 msgid ""
10356 " const char *\n"
10357 " guestfs_get_path (guestfs_h *g);\n"
10358 "\n"
10359 msgstr ""
10360
10361 # type: textblock
10362 #. type: textblock
10363 #: ../src/guestfs-actions.pod:2006 ../fish/guestfish-actions.pod:1361
10364 msgid "Return the current search path."
10365 msgstr ""
10366
10367 # type: textblock
10368 #. type: textblock
10369 #: ../src/guestfs-actions.pod:2008 ../fish/guestfish-actions.pod:1363
10370 msgid ""
10371 "This is always non-NULL.  If it wasn't set already, then this will return "
10372 "the default path."
10373 msgstr ""
10374
10375 # type: textblock
10376 #. type: textblock
10377 #: ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2040
10378 msgid ""
10379 "This function returns a string, or NULL on error.  The string is owned by "
10380 "the guest handle and must I<not> be freed."
10381 msgstr ""
10382
10383 # type: =head2
10384 #. type: =head2
10385 #: ../src/guestfs-actions.pod:2016
10386 msgid "guestfs_get_pid"
10387 msgstr ""
10388
10389 # type: verbatim
10390 #. type: verbatim
10391 #: ../src/guestfs-actions.pod:2018
10392 #, no-wrap
10393 msgid ""
10394 " int\n"
10395 " guestfs_get_pid (guestfs_h *g);\n"
10396 "\n"
10397 msgstr ""
10398
10399 # type: textblock
10400 #. type: textblock
10401 #: ../src/guestfs-actions.pod:2021 ../fish/guestfish-actions.pod:1372
10402 msgid ""
10403 "Return the process ID of the qemu subprocess.  If there is no qemu "
10404 "subprocess, then this will return an error."
10405 msgstr ""
10406
10407 # type: textblock
10408 #. type: textblock
10409 #: ../src/guestfs-actions.pod:2024 ../fish/guestfish-actions.pod:1375
10410 msgid "This is an internal call used for debugging and testing."
10411 msgstr ""
10412
10413 # type: textblock
10414 #. type: textblock
10415 #: ../src/guestfs-actions.pod:2028
10416 msgid "(Added in 1.0.56)"
10417 msgstr ""
10418
10419 # type: =head2
10420 #. type: =head2
10421 #: ../src/guestfs-actions.pod:2030
10422 msgid "guestfs_get_qemu"
10423 msgstr ""
10424
10425 # type: verbatim
10426 #. type: verbatim
10427 #: ../src/guestfs-actions.pod:2032
10428 #, no-wrap
10429 msgid ""
10430 " const char *\n"
10431 " guestfs_get_qemu (guestfs_h *g);\n"
10432 "\n"
10433 msgstr ""
10434
10435 # type: textblock
10436 #. type: textblock
10437 #: ../src/guestfs-actions.pod:2035 ../fish/guestfish-actions.pod:1381
10438 msgid "Return the current qemu binary."
10439 msgstr ""
10440
10441 # type: textblock
10442 #. type: textblock
10443 #: ../src/guestfs-actions.pod:2037 ../fish/guestfish-actions.pod:1383
10444 msgid ""
10445 "This is always non-NULL.  If it wasn't set already, then this will return "
10446 "the default qemu binary name."
10447 msgstr ""
10448
10449 # type: textblock
10450 #. type: textblock
10451 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:5913
10452 msgid "(Added in 1.0.6)"
10453 msgstr ""
10454
10455 # type: =head2
10456 #. type: =head2
10457 #: ../src/guestfs-actions.pod:2045
10458 msgid "guestfs_get_recovery_proc"
10459 msgstr ""
10460
10461 # type: verbatim
10462 #. type: verbatim
10463 #: ../src/guestfs-actions.pod:2047
10464 #, no-wrap
10465 msgid ""
10466 " int\n"
10467 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10468 "\n"
10469 msgstr ""
10470
10471 # type: textblock
10472 #. type: textblock
10473 #: ../src/guestfs-actions.pod:2050 ../fish/guestfish-actions.pod:1390
10474 msgid "Return the recovery process enabled flag."
10475 msgstr ""
10476
10477 # type: textblock
10478 #. type: textblock
10479 #: ../src/guestfs-actions.pod:2054 ../src/guestfs-actions.pod:3422
10480 #: ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:4119
10481 #: ../src/guestfs-actions.pod:4151 ../src/guestfs-actions.pod:5172
10482 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5937
10483 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6620
10484 #: ../src/guestfs-actions.pod:6812
10485 msgid "(Added in 1.0.77)"
10486 msgstr ""
10487
10488 # type: =head2
10489 #. type: =head2
10490 #: ../src/guestfs-actions.pod:2056
10491 msgid "guestfs_get_selinux"
10492 msgstr ""
10493
10494 # type: verbatim
10495 #. type: verbatim
10496 #: ../src/guestfs-actions.pod:2058
10497 #, no-wrap
10498 msgid ""
10499 " int\n"
10500 " guestfs_get_selinux (guestfs_h *g);\n"
10501 "\n"
10502 msgstr ""
10503
10504 # type: textblock
10505 #. type: textblock
10506 #: ../src/guestfs-actions.pod:2061
10507 msgid ""
10508 "This returns the current setting of the selinux flag which is passed to the "
10509 "appliance at boot time.  See C<guestfs_set_selinux>."
10510 msgstr ""
10511
10512 # type: textblock
10513 #. type: textblock
10514 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2132
10515 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6014
10516 msgid "(Added in 1.0.67)"
10517 msgstr ""
10518
10519 # type: =head2
10520 #. type: =head2
10521 #: ../src/guestfs-actions.pod:2071
10522 msgid "guestfs_get_state"
10523 msgstr ""
10524
10525 # type: verbatim
10526 #. type: verbatim
10527 #: ../src/guestfs-actions.pod:2073
10528 #, no-wrap
10529 msgid ""
10530 " int\n"
10531 " guestfs_get_state (guestfs_h *g);\n"
10532 "\n"
10533 msgstr ""
10534
10535 # type: textblock
10536 #. type: textblock
10537 #: ../src/guestfs-actions.pod:2076 ../fish/guestfish-actions.pod:1406
10538 msgid ""
10539 "This returns the current state as an opaque integer.  This is only useful "
10540 "for printing debug and internal error messages."
10541 msgstr ""
10542
10543 # type: textblock
10544 #. type: textblock
10545 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:3220
10546 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3310
10547 #: ../src/guestfs-actions.pod:3337 ../fish/guestfish-actions.pod:1409
10548 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2275
10549 #: ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2329
10550 msgid "For more information on states, see L<guestfs(3)>."
10551 msgstr ""
10552
10553 # type: =head2
10554 #. type: =head2
10555 #: ../src/guestfs-actions.pod:2085
10556 msgid "guestfs_get_trace"
10557 msgstr ""
10558
10559 # type: verbatim
10560 #. type: verbatim
10561 #: ../src/guestfs-actions.pod:2087
10562 #, no-wrap
10563 msgid ""
10564 " int\n"
10565 " guestfs_get_trace (guestfs_h *g);\n"
10566 "\n"
10567 msgstr ""
10568
10569 # type: textblock
10570 #. type: textblock
10571 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
10572 msgid "Return the command trace flag."
10573 msgstr ""
10574
10575 # type: =head2
10576 #. type: =head2
10577 #: ../src/guestfs-actions.pod:2096
10578 msgid "guestfs_get_umask"
10579 msgstr ""
10580
10581 # type: verbatim
10582 #. type: verbatim
10583 #: ../src/guestfs-actions.pod:2098
10584 #, no-wrap
10585 msgid ""
10586 " int\n"
10587 " guestfs_get_umask (guestfs_h *g);\n"
10588 "\n"
10589 msgstr ""
10590
10591 # type: textblock
10592 #. type: textblock
10593 #: ../src/guestfs-actions.pod:2101
10594 msgid ""
10595 "Return the current umask.  By default the umask is C<022> unless it has been "
10596 "set by calling C<guestfs_umask>."
10597 msgstr ""
10598
10599 # type: =head2
10600 #. type: =head2
10601 #: ../src/guestfs-actions.pod:2108
10602 msgid "guestfs_get_verbose"
10603 msgstr ""
10604
10605 # type: verbatim
10606 #. type: verbatim
10607 #: ../src/guestfs-actions.pod:2110
10608 #, no-wrap
10609 msgid ""
10610 " int\n"
10611 " guestfs_get_verbose (guestfs_h *g);\n"
10612 "\n"
10613 msgstr ""
10614
10615 # type: textblock
10616 #. type: textblock
10617 #: ../src/guestfs-actions.pod:2113 ../fish/guestfish-actions.pod:1428
10618 msgid "This returns the verbose messages flag."
10619 msgstr ""
10620
10621 # type: =head2
10622 #. type: =head2
10623 #: ../src/guestfs-actions.pod:2119
10624 msgid "guestfs_getcon"
10625 msgstr ""
10626
10627 # type: verbatim
10628 #. type: verbatim
10629 #: ../src/guestfs-actions.pod:2121
10630 #, no-wrap
10631 msgid ""
10632 " char *\n"
10633 " guestfs_getcon (guestfs_h *g);\n"
10634 "\n"
10635 msgstr ""
10636
10637 # type: textblock
10638 #. type: textblock
10639 #: ../src/guestfs-actions.pod:2124 ../fish/guestfish-actions.pod:1434
10640 msgid "This gets the SELinux security context of the daemon."
10641 msgstr ""
10642
10643 # type: textblock
10644 #. type: textblock
10645 #: ../src/guestfs-actions.pod:2126
10646 msgid ""
10647 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10648 msgstr ""
10649
10650 # type: =head2
10651 #. type: =head2
10652 #: ../src/guestfs-actions.pod:2134
10653 msgid "guestfs_getxattr"
10654 msgstr ""
10655
10656 # type: verbatim
10657 #. type: verbatim
10658 #: ../src/guestfs-actions.pod:2136
10659 #, no-wrap
10660 msgid ""
10661 " char *\n"
10662 " guestfs_getxattr (guestfs_h *g,\n"
10663 "                   const char *path,\n"
10664 "                   const char *name,\n"
10665 "                   size_t *size_r);\n"
10666 "\n"
10667 msgstr ""
10668
10669 # type: textblock
10670 #. type: textblock
10671 #: ../src/guestfs-actions.pod:2142
10672 msgid ""
10673 "Get a single extended attribute from file C<path> named C<name>.  This call "
10674 "follows symlinks.  If you want to lookup an extended attribute for the "
10675 "symlink itself, use C<guestfs_lgetxattr>."
10676 msgstr ""
10677
10678 # type: textblock
10679 #. type: textblock
10680 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:3436
10681 msgid ""
10682 "Normally it is better to get all extended attributes from a file in one go "
10683 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10684 "implementations are buggy and do not provide a way to list out attributes.  "
10685 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10686 "extended attributes you want in advance and call this function."
10687 msgstr ""
10688
10689 # type: textblock
10690 #. type: textblock
10691 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:3443
10692 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2394
10693 msgid ""
10694 "Extended attribute values are blobs of binary data.  If there is no extended "
10695 "attribute named C<name>, this returns an error."
10696 msgstr ""
10697
10698 # type: textblock
10699 #. type: textblock
10700 #: ../src/guestfs-actions.pod:2156
10701 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10702 msgstr ""
10703
10704 # type: textblock
10705 #. type: textblock
10706 #: ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:2349
10707 #: ../src/guestfs-actions.pod:3448 ../src/guestfs-actions.pod:5165
10708 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5372
10709 msgid ""
10710 "This function returns a buffer, or NULL on error.  The size of the returned "
10711 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10712 "after use>."
10713 msgstr ""
10714
10715 #. type: textblock
10716 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:3452
10717 msgid "(Added in 1.7.24)"
10718 msgstr ""
10719
10720 # type: =head2
10721 #. type: =head2
10722 #: ../src/guestfs-actions.pod:2164
10723 msgid "guestfs_getxattrs"
10724 msgstr ""
10725
10726 # type: verbatim
10727 #. type: verbatim
10728 #: ../src/guestfs-actions.pod:2166
10729 #, no-wrap
10730 msgid ""
10731 " struct guestfs_xattr_list *\n"
10732 " guestfs_getxattrs (guestfs_h *g,\n"
10733 "                    const char *path);\n"
10734 "\n"
10735 msgstr ""
10736
10737 # type: textblock
10738 #. type: textblock
10739 #: ../src/guestfs-actions.pod:2170 ../fish/guestfish-actions.pod:1463
10740 msgid ""
10741 "This call lists the extended attributes of the file or directory C<path>."
10742 msgstr ""
10743
10744 # type: textblock
10745 #. type: textblock
10746 #: ../src/guestfs-actions.pod:2173 ../fish/guestfish-actions.pod:1466
10747 msgid ""
10748 "At the system call level, this is a combination of the L<listxattr(2)> and "
10749 "L<getxattr(2)> calls."
10750 msgstr ""
10751
10752 # type: textblock
10753 #. type: textblock
10754 #: ../src/guestfs-actions.pod:2176
10755 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10756 msgstr ""
10757
10758 # type: textblock
10759 #. type: textblock
10760 #: ../src/guestfs-actions.pod:2178 ../src/guestfs-actions.pod:3464
10761 #: ../src/guestfs-actions.pod:4115
10762 msgid ""
10763 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10764 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10765 msgstr ""
10766
10767 # type: textblock
10768 #. type: textblock
10769 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:3468
10770 #: ../src/guestfs-actions.pod:3633 ../src/guestfs-actions.pod:3669
10771 #: ../src/guestfs-actions.pod:5545 ../src/guestfs-actions.pod:6033
10772 #: ../src/guestfs-actions.pod:7368
10773 msgid "(Added in 1.0.59)"
10774 msgstr ""
10775
10776 # type: =head2
10777 #. type: =head2
10778 #: ../src/guestfs-actions.pod:2184
10779 msgid "guestfs_glob_expand"
10780 msgstr ""
10781
10782 # type: verbatim
10783 #. type: verbatim
10784 #: ../src/guestfs-actions.pod:2186
10785 #, no-wrap
10786 msgid ""
10787 " char **\n"
10788 " guestfs_glob_expand (guestfs_h *g,\n"
10789 "                      const char *pattern);\n"
10790 "\n"
10791 msgstr ""
10792
10793 # type: textblock
10794 #. type: textblock
10795 #: ../src/guestfs-actions.pod:2190 ../fish/guestfish-actions.pod:1475
10796 msgid ""
10797 "This command searches for all the pathnames matching C<pattern> according to "
10798 "the wildcard expansion rules used by the shell."
10799 msgstr ""
10800
10801 # type: textblock
10802 #. type: textblock
10803 #: ../src/guestfs-actions.pod:2194 ../fish/guestfish-actions.pod:1479
10804 msgid ""
10805 "If no paths match, then this returns an empty list (note: not an error)."
10806 msgstr ""
10807
10808 # type: textblock
10809 #. type: textblock
10810 #: ../src/guestfs-actions.pod:2197 ../fish/guestfish-actions.pod:1482
10811 msgid ""
10812 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10813 "GLOB_BRACE>.  See that manual page for more details."
10814 msgstr ""
10815
10816 # type: textblock
10817 #. type: textblock
10818 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6198
10819 #: ../src/guestfs-actions.pod:6215
10820 msgid "(Added in 1.0.50)"
10821 msgstr ""
10822
10823 # type: =head2
10824 #. type: =head2
10825 #: ../src/guestfs-actions.pod:2207
10826 msgid "guestfs_grep"
10827 msgstr ""
10828
10829 # type: verbatim
10830 #. type: verbatim
10831 #: ../src/guestfs-actions.pod:2209
10832 #, no-wrap
10833 msgid ""
10834 " char **\n"
10835 " guestfs_grep (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:2214 ../fish/guestfish-actions.pod:1490
10844 msgid "This calls the external C<grep> program and returns the matching lines."
10845 msgstr ""
10846
10847 # type: =head2
10848 #. type: =head2
10849 #: ../src/guestfs-actions.pod:2226
10850 msgid "guestfs_grepi"
10851 msgstr ""
10852
10853 # type: verbatim
10854 #. type: verbatim
10855 #: ../src/guestfs-actions.pod:2228
10856 #, no-wrap
10857 msgid ""
10858 " char **\n"
10859 " guestfs_grepi (guestfs_h *g,\n"
10860 "                const char *regex,\n"
10861 "                const char *path);\n"
10862 "\n"
10863 msgstr ""
10864
10865 # type: textblock
10866 #. type: textblock
10867 #: ../src/guestfs-actions.pod:2233 ../fish/guestfish-actions.pod:1500
10868 msgid ""
10869 "This calls the external C<grep -i> program and returns the matching lines."
10870 msgstr ""
10871
10872 # type: =head2
10873 #. type: =head2
10874 #: ../src/guestfs-actions.pod:2245
10875 msgid "guestfs_grub_install"
10876 msgstr ""
10877
10878 # type: verbatim
10879 #. type: verbatim
10880 #: ../src/guestfs-actions.pod:2247
10881 #, no-wrap
10882 msgid ""
10883 " int\n"
10884 " guestfs_grub_install (guestfs_h *g,\n"
10885 "                       const char *root,\n"
10886 "                       const char *device);\n"
10887 "\n"
10888 msgstr ""
10889
10890 # type: textblock
10891 #. type: textblock
10892 #: ../src/guestfs-actions.pod:2252 ../fish/guestfish-actions.pod:1510
10893 msgid ""
10894 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10895 "the root directory being C<root>."
10896 msgstr ""
10897
10898 # type: textblock
10899 #. type: textblock
10900 #: ../src/guestfs-actions.pod:2255 ../fish/guestfish-actions.pod:1513
10901 msgid ""
10902 "Note: If grub-install reports the error \"No suitable drive was found in the "
10903 "generated device map.\" it may be that you need to create a C</boot/grub/"
10904 "device.map> file first that contains the mapping between grub device names "
10905 "and Linux device names.  It is usually sufficient to create a file "
10906 "containing:"
10907 msgstr ""
10908
10909 # type: verbatim
10910 #. type: verbatim
10911 #: ../src/guestfs-actions.pod:2262 ../fish/guestfish-actions.pod:1520
10912 #, no-wrap
10913 msgid ""
10914 " (hd0) /dev/vda\n"
10915 "\n"
10916 msgstr ""
10917
10918 # type: textblock
10919 #. type: textblock
10920 #: ../src/guestfs-actions.pod:2264 ../fish/guestfish-actions.pod:1522
10921 msgid "replacing C</dev/vda> with the name of the installation device."
10922 msgstr ""
10923
10924 # type: textblock
10925 #. type: textblock
10926 #: ../src/guestfs-actions.pod:2268
10927 msgid "(Added in 1.0.17)"
10928 msgstr ""
10929
10930 # type: =head2
10931 #. type: =head2
10932 #: ../src/guestfs-actions.pod:2270
10933 msgid "guestfs_head"
10934 msgstr ""
10935
10936 # type: verbatim
10937 #. type: verbatim
10938 #: ../src/guestfs-actions.pod:2272
10939 #, no-wrap
10940 msgid ""
10941 " char **\n"
10942 " guestfs_head (guestfs_h *g,\n"
10943 "               const char *path);\n"
10944 "\n"
10945 msgstr ""
10946
10947 # type: textblock
10948 #. type: textblock
10949 #: ../src/guestfs-actions.pod:2276 ../fish/guestfish-actions.pod:1528
10950 msgid ""
10951 "This command returns up to the first 10 lines of a file as a list of strings."
10952 msgstr ""
10953
10954 # type: =head2
10955 #. type: =head2
10956 #: ../src/guestfs-actions.pod:2288
10957 msgid "guestfs_head_n"
10958 msgstr ""
10959
10960 # type: verbatim
10961 #. type: verbatim
10962 #: ../src/guestfs-actions.pod:2290
10963 #, no-wrap
10964 msgid ""
10965 " char **\n"
10966 " guestfs_head_n (guestfs_h *g,\n"
10967 "                 int nrlines,\n"
10968 "                 const char *path);\n"
10969 "\n"
10970 msgstr ""
10971
10972 # type: textblock
10973 #. type: textblock
10974 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1538
10975 msgid ""
10976 "If the parameter C<nrlines> is a positive number, this returns the first "
10977 "C<nrlines> lines of the file C<path>."
10978 msgstr ""
10979
10980 # type: textblock
10981 #. type: textblock
10982 #: ../src/guestfs-actions.pod:2298 ../fish/guestfish-actions.pod:1541
10983 msgid ""
10984 "If the parameter C<nrlines> is a negative number, this returns lines from "
10985 "the file C<path>, excluding the last C<nrlines> lines."
10986 msgstr ""
10987
10988 # type: textblock
10989 #. type: textblock
10990 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:6495
10991 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4364
10992 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10993 msgstr ""
10994
10995 # type: =head2
10996 #. type: =head2
10997 #: ../src/guestfs-actions.pod:2312
10998 msgid "guestfs_hexdump"
10999 msgstr ""
11000
11001 # type: verbatim
11002 #. type: verbatim
11003 #: ../src/guestfs-actions.pod:2314
11004 #, no-wrap
11005 msgid ""
11006 " char *\n"
11007 " guestfs_hexdump (guestfs_h *g,\n"
11008 "                  const char *path);\n"
11009 "\n"
11010 msgstr ""
11011
11012 # type: textblock
11013 #. type: textblock
11014 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1553
11015 msgid ""
11016 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
11017 "readable, canonical hex dump of the file."
11018 msgstr ""
11019
11020 # type: textblock
11021 #. type: textblock
11022 #: ../src/guestfs-actions.pod:2327 ../src/guestfs-actions.pod:6279
11023 #: ../src/guestfs-actions.pod:6334
11024 msgid "(Added in 1.0.22)"
11025 msgstr ""
11026
11027 # type: =head2
11028 #. type: =head2
11029 #: ../src/guestfs-actions.pod:2329
11030 msgid "guestfs_initrd_cat"
11031 msgstr ""
11032
11033 # type: verbatim
11034 #. type: verbatim
11035 #: ../src/guestfs-actions.pod:2331
11036 #, no-wrap
11037 msgid ""
11038 " char *\n"
11039 " guestfs_initrd_cat (guestfs_h *g,\n"
11040 "                     const char *initrdpath,\n"
11041 "                     const char *filename,\n"
11042 "                     size_t *size_r);\n"
11043 "\n"
11044 msgstr ""
11045
11046 # type: textblock
11047 #. type: textblock
11048 #: ../src/guestfs-actions.pod:2337 ../fish/guestfish-actions.pod:1563
11049 msgid ""
11050 "This command unpacks the file C<filename> from the initrd file called "
11051 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11052 "character."
11053 msgstr ""
11054
11055 # type: textblock
11056 #. type: textblock
11057 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1567
11058 msgid ""
11059 "For example, in guestfish you could use the following command to examine the "
11060 "boot script (usually called C</init>)  contained in a Linux initrd or "
11061 "initramfs image:"
11062 msgstr ""
11063
11064 # type: verbatim
11065 #. type: verbatim
11066 #: ../src/guestfs-actions.pod:2345 ../fish/guestfish-actions.pod:1571
11067 #, no-wrap
11068 msgid ""
11069 " initrd-cat /boot/initrd-<version>.img init\n"
11070 "\n"
11071 msgstr ""
11072
11073 # type: textblock
11074 #. type: textblock
11075 #: ../src/guestfs-actions.pod:2347
11076 msgid "See also C<guestfs_initrd_list>."
11077 msgstr ""
11078
11079 # type: =head2
11080 #. type: =head2
11081 #: ../src/guestfs-actions.pod:2358
11082 msgid "guestfs_initrd_list"
11083 msgstr ""
11084
11085 # type: verbatim
11086 #. type: verbatim
11087 #: ../src/guestfs-actions.pod:2360
11088 #, no-wrap
11089 msgid ""
11090 " char **\n"
11091 " guestfs_initrd_list (guestfs_h *g,\n"
11092 "                      const char *path);\n"
11093 "\n"
11094 msgstr ""
11095
11096 # type: textblock
11097 #. type: textblock
11098 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1582
11099 msgid "This command lists out files contained in an initrd."
11100 msgstr ""
11101
11102 # type: textblock
11103 #. type: textblock
11104 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1584
11105 msgid ""
11106 "The files are listed without any initial C</> character.  The files are "
11107 "listed in the order they appear (not necessarily alphabetical).  Directory "
11108 "names are listed as separate items."
11109 msgstr ""
11110
11111 # type: textblock
11112 #. type: textblock
11113 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1588
11114 msgid ""
11115 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11116 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11117 "files)."
11118 msgstr ""
11119
11120 # type: =head2
11121 #. type: =head2
11122 #: ../src/guestfs-actions.pod:2380
11123 msgid "guestfs_inotify_add_watch"
11124 msgstr ""
11125
11126 # type: verbatim
11127 #. type: verbatim
11128 #: ../src/guestfs-actions.pod:2382
11129 #, no-wrap
11130 msgid ""
11131 " int64_t\n"
11132 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11133 "                            const char *path,\n"
11134 "                            int mask);\n"
11135 "\n"
11136 msgstr ""
11137
11138 # type: textblock
11139 #. type: textblock
11140 #: ../src/guestfs-actions.pod:2387 ../fish/guestfish-actions.pod:1596
11141 msgid "Watch C<path> for the events listed in C<mask>."
11142 msgstr ""
11143
11144 # type: textblock
11145 #. type: textblock
11146 #: ../src/guestfs-actions.pod:2389 ../fish/guestfish-actions.pod:1598
11147 msgid ""
11148 "Note that if C<path> is a directory then events within that directory are "
11149 "watched, but this does I<not> happen recursively (in subdirectories)."
11150 msgstr ""
11151
11152 # type: textblock
11153 #. type: textblock
11154 #: ../src/guestfs-actions.pod:2393 ../fish/guestfish-actions.pod:1602
11155 msgid ""
11156 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11157 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11158 msgstr ""
11159
11160 # type: =head2
11161 #. type: =head2
11162 #: ../src/guestfs-actions.pod:2401
11163 msgid "guestfs_inotify_close"
11164 msgstr ""
11165
11166 # type: verbatim
11167 #. type: verbatim
11168 #: ../src/guestfs-actions.pod:2403
11169 #, no-wrap
11170 msgid ""
11171 " int\n"
11172 " guestfs_inotify_close (guestfs_h *g);\n"
11173 "\n"
11174 msgstr ""
11175
11176 # type: textblock
11177 #. type: textblock
11178 #: ../src/guestfs-actions.pod:2406 ../fish/guestfish-actions.pod:1610
11179 msgid ""
11180 "This closes the inotify handle which was previously opened by inotify_init.  "
11181 "It removes all watches, throws away any pending events, and deallocates all "
11182 "resources."
11183 msgstr ""
11184
11185 # type: =head2
11186 #. type: =head2
11187 #: ../src/guestfs-actions.pod:2414
11188 msgid "guestfs_inotify_files"
11189 msgstr ""
11190
11191 # type: verbatim
11192 #. type: verbatim
11193 #: ../src/guestfs-actions.pod:2416
11194 #, no-wrap
11195 msgid ""
11196 " char **\n"
11197 " guestfs_inotify_files (guestfs_h *g);\n"
11198 "\n"
11199 msgstr ""
11200
11201 # type: textblock
11202 #. type: textblock
11203 #: ../src/guestfs-actions.pod:2419
11204 msgid ""
11205 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11206 "returns a list of pathnames of objects that were touched.  The returned "
11207 "pathnames are sorted and deduplicated."
11208 msgstr ""
11209
11210 # type: =head2
11211 #. type: =head2
11212 #: ../src/guestfs-actions.pod:2429
11213 msgid "guestfs_inotify_init"
11214 msgstr ""
11215
11216 # type: verbatim
11217 #. type: verbatim
11218 #: ../src/guestfs-actions.pod:2431
11219 #, no-wrap
11220 msgid ""
11221 " int\n"
11222 " guestfs_inotify_init (guestfs_h *g,\n"
11223 "                       int maxevents);\n"
11224 "\n"
11225 msgstr ""
11226
11227 # type: textblock
11228 #. type: textblock
11229 #: ../src/guestfs-actions.pod:2435 ../fish/guestfish-actions.pod:1626
11230 msgid ""
11231 "This command creates a new inotify handle.  The inotify subsystem can be "
11232 "used to notify events which happen to objects in the guest filesystem."
11233 msgstr ""
11234
11235 # type: textblock
11236 #. type: textblock
11237 #: ../src/guestfs-actions.pod:2439
11238 msgid ""
11239 "C<maxevents> is the maximum number of events which will be queued up between "
11240 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11241 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11242 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11243 "throws away events, but records the fact that it threw them away by setting "
11244 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11245 "C<guestfs_inotify_read>)."
11246 msgstr ""
11247
11248 # type: textblock
11249 #. type: textblock
11250 #: ../src/guestfs-actions.pod:2449
11251 msgid ""
11252 "Before any events are generated, you have to add some watches to the "
11253 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11254 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11255 msgstr ""
11256
11257 # type: textblock
11258 #. type: textblock
11259 #: ../src/guestfs-actions.pod:2455
11260 msgid ""
11261 "Queued up events should be read periodically by calling "
11262 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11263 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11264 "often enough then you risk the internal queue overflowing."
11265 msgstr ""
11266
11267 # type: textblock
11268 #. type: textblock
11269 #: ../src/guestfs-actions.pod:2462
11270 msgid ""
11271 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11272 "This also removes any watches automatically."
11273 msgstr ""
11274
11275 # type: textblock
11276 #. type: textblock
11277 #: ../src/guestfs-actions.pod:2466 ../fish/guestfish-actions.pod:1657
11278 msgid ""
11279 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11280 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11281 "that there is one global inotify handle per libguestfs instance."
11282 msgstr ""
11283
11284 # type: =head2
11285 #. type: =head2
11286 #: ../src/guestfs-actions.pod:2475
11287 msgid "guestfs_inotify_read"
11288 msgstr ""
11289
11290 # type: verbatim
11291 #. type: verbatim
11292 #: ../src/guestfs-actions.pod:2477
11293 #, no-wrap
11294 msgid ""
11295 " struct guestfs_inotify_event_list *\n"
11296 " guestfs_inotify_read (guestfs_h *g);\n"
11297 "\n"
11298 msgstr ""
11299
11300 # type: textblock
11301 #. type: textblock
11302 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1666
11303 msgid ""
11304 "Return the complete queue of events that have happened since the previous "
11305 "read call."
11306 msgstr ""
11307
11308 # type: textblock
11309 #. type: textblock
11310 #: ../src/guestfs-actions.pod:2483 ../fish/guestfish-actions.pod:1669
11311 msgid "If no events have happened, this returns an empty list."
11312 msgstr ""
11313
11314 # type: textblock
11315 #. type: textblock
11316 #: ../src/guestfs-actions.pod:2485 ../fish/guestfish-actions.pod:1671
11317 msgid ""
11318 "I<Note>: In order to make sure that all events have been read, you must call "
11319 "this function repeatedly until it returns an empty list.  The reason is that "
11320 "the call will read events up to the maximum appliance-to-host message size "
11321 "and leave remaining events in the queue."
11322 msgstr ""
11323
11324 # type: textblock
11325 #. type: textblock
11326 #: ../src/guestfs-actions.pod:2491
11327 msgid ""
11328 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11329 "there was an error.  I<The caller must call "
11330 "C<guestfs_free_inotify_event_list> after use>."
11331 msgstr ""
11332
11333 # type: =head2
11334 #. type: =head2
11335 #: ../src/guestfs-actions.pod:2497
11336 msgid "guestfs_inotify_rm_watch"
11337 msgstr ""
11338
11339 # type: verbatim
11340 #. type: verbatim
11341 #: ../src/guestfs-actions.pod:2499
11342 #, no-wrap
11343 msgid ""
11344 " int\n"
11345 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11346 "                           int wd);\n"
11347 "\n"
11348 msgstr ""
11349
11350 # type: textblock
11351 #. type: textblock
11352 #: ../src/guestfs-actions.pod:2503
11353 msgid ""
11354 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11355 msgstr ""
11356
11357 # type: =head2
11358 #. type: =head2
11359 #: ../src/guestfs-actions.pod:2510
11360 msgid "guestfs_inspect_get_arch"
11361 msgstr ""
11362
11363 # type: verbatim
11364 #. type: verbatim
11365 #: ../src/guestfs-actions.pod:2512
11366 #, no-wrap
11367 msgid ""
11368 " char *\n"
11369 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11370 "                           const char *root);\n"
11371 "\n"
11372 msgstr ""
11373
11374 # type: textblock
11375 #. type: textblock
11376 #: ../src/guestfs-actions.pod:2516 ../src/guestfs-actions.pod:2539
11377 #: ../src/guestfs-actions.pod:2624 ../src/guestfs-actions.pod:2650
11378 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2711
11379 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2759
11380 #: ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:2825
11381 #: ../src/guestfs-actions.pod:2856 ../src/guestfs-actions.pod:2880
11382 #: ../src/guestfs-actions.pod:2935 ../src/guestfs-actions.pod:2977
11383 #: ../src/guestfs-actions.pod:3000 ../src/guestfs-actions.pod:3017
11384 #: ../src/guestfs-actions.pod:3034 ../src/guestfs-actions.pod:3053
11385 msgid ""
11386 "This function should only be called with a root device string as returned by "
11387 "C<guestfs_inspect_os>."
11388 msgstr ""
11389
11390 # type: textblock
11391 #. type: textblock
11392 #: ../src/guestfs-actions.pod:2519
11393 msgid ""
11394 "This returns the architecture of the inspected operating system.  The "
11395 "possible return values are listed under C<guestfs_file_architecture>."
11396 msgstr ""
11397
11398 # type: textblock
11399 #. type: textblock
11400 #: ../src/guestfs-actions.pod:2523 ../fish/guestfish-actions.pod:1695
11401 msgid ""
11402 "If the architecture could not be determined, then the string C<unknown> is "
11403 "returned."
11404 msgstr ""
11405
11406 # type: textblock
11407 #. type: textblock
11408 #: ../src/guestfs-actions.pod:2526 ../src/guestfs-actions.pod:2611
11409 #: ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:2698
11410 #: ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:2812
11411 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2867
11412 #: ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:2964
11413 #: ../src/guestfs-actions.pod:2987 ../src/guestfs-actions.pod:3007
11414 #: ../src/guestfs-actions.pod:3024 ../src/guestfs-actions.pod:3043
11415 #: ../src/guestfs-actions.pod:3146 ../src/guestfs-actions.pod:3187
11416 #: ../fish/guestfish-actions.pod:1698 ../fish/guestfish-actions.pod:1776
11417 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:1843
11418 #: ../fish/guestfish-actions.pod:1864 ../fish/guestfish-actions.pod:1928
11419 #: ../fish/guestfish-actions.pod:1952 ../fish/guestfish-actions.pod:1969
11420 #: ../fish/guestfish-actions.pod:2012 ../fish/guestfish-actions.pod:2047
11421 #: ../fish/guestfish-actions.pod:2063 ../fish/guestfish-actions.pod:2076
11422 #: ../fish/guestfish-actions.pod:2089 ../fish/guestfish-actions.pod:2104
11423 #: ../fish/guestfish-actions.pod:2203 ../fish/guestfish-actions.pod:2237
11424 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11425 msgstr ""
11426
11427 # type: =head2
11428 #. type: =head2
11429 #: ../src/guestfs-actions.pod:2533
11430 msgid "guestfs_inspect_get_distro"
11431 msgstr ""
11432
11433 # type: verbatim
11434 #. type: verbatim
11435 #: ../src/guestfs-actions.pod:2535
11436 #, no-wrap
11437 msgid ""
11438 " char *\n"
11439 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11440 "                             const char *root);\n"
11441 "\n"
11442 msgstr ""
11443
11444 # type: textblock
11445 #. type: textblock
11446 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1707
11447 msgid ""
11448 "This returns the distro (distribution) of the inspected operating system."
11449 msgstr ""
11450
11451 # type: textblock
11452 #. type: textblock
11453 #: ../src/guestfs-actions.pod:2545 ../fish/guestfish-actions.pod:1710
11454 msgid "Currently defined distros are:"
11455 msgstr ""
11456
11457 # type: =item
11458 #. type: =item
11459 #: ../src/guestfs-actions.pod:2549 ../fish/guestfish-actions.pod:1714
11460 msgid "\"archlinux\""
11461 msgstr ""
11462
11463 # type: textblock
11464 #. type: textblock
11465 #: ../src/guestfs-actions.pod:2551 ../fish/guestfish-actions.pod:1716
11466 msgid "Arch Linux."
11467 msgstr ""
11468
11469 # type: =item
11470 #. type: =item
11471 #: ../src/guestfs-actions.pod:2553 ../fish/guestfish-actions.pod:1718
11472 msgid "\"debian\""
11473 msgstr ""
11474
11475 # type: textblock
11476 #. type: textblock
11477 #: ../src/guestfs-actions.pod:2555 ../fish/guestfish-actions.pod:1720
11478 msgid "Debian."
11479 msgstr ""
11480
11481 # type: =item
11482 #. type: =item
11483 #: ../src/guestfs-actions.pod:2557 ../fish/guestfish-actions.pod:1722
11484 msgid "\"fedora\""
11485 msgstr ""
11486
11487 # type: textblock
11488 #. type: textblock
11489 #: ../src/guestfs-actions.pod:2559 ../fish/guestfish-actions.pod:1724
11490 msgid "Fedora."
11491 msgstr ""
11492
11493 # type: =item
11494 #. type: =item
11495 #: ../src/guestfs-actions.pod:2561 ../fish/guestfish-actions.pod:1726
11496 msgid "\"gentoo\""
11497 msgstr ""
11498
11499 # type: textblock
11500 #. type: textblock
11501 #: ../src/guestfs-actions.pod:2563 ../fish/guestfish-actions.pod:1728
11502 msgid "Gentoo."
11503 msgstr ""
11504
11505 # type: =item
11506 #. type: =item
11507 #: ../src/guestfs-actions.pod:2565 ../fish/guestfish-actions.pod:1730
11508 msgid "\"linuxmint\""
11509 msgstr ""
11510
11511 # type: textblock
11512 #. type: textblock
11513 #: ../src/guestfs-actions.pod:2567 ../fish/guestfish-actions.pod:1732
11514 msgid "Linux Mint."
11515 msgstr ""
11516
11517 # type: =item
11518 #. type: =item
11519 #: ../src/guestfs-actions.pod:2569 ../fish/guestfish-actions.pod:1734
11520 msgid "\"mandriva\""
11521 msgstr ""
11522
11523 # type: textblock
11524 #. type: textblock
11525 #: ../src/guestfs-actions.pod:2571 ../fish/guestfish-actions.pod:1736
11526 msgid "Mandriva."
11527 msgstr ""
11528
11529 # type: =item
11530 #. type: =item
11531 #: ../src/guestfs-actions.pod:2573 ../fish/guestfish-actions.pod:1738
11532 msgid "\"meego\""
11533 msgstr ""
11534
11535 # type: textblock
11536 #. type: textblock
11537 #: ../src/guestfs-actions.pod:2575 ../fish/guestfish-actions.pod:1740
11538 msgid "MeeGo."
11539 msgstr ""
11540
11541 # type: =item
11542 #. type: =item
11543 #: ../src/guestfs-actions.pod:2577 ../fish/guestfish-actions.pod:1742
11544 msgid "\"pardus\""
11545 msgstr ""
11546
11547 # type: textblock
11548 #. type: textblock
11549 #: ../src/guestfs-actions.pod:2579 ../fish/guestfish-actions.pod:1744
11550 msgid "Pardus."
11551 msgstr ""
11552
11553 # type: =item
11554 #. type: =item
11555 #: ../src/guestfs-actions.pod:2581 ../fish/guestfish-actions.pod:1746
11556 msgid "\"redhat-based\""
11557 msgstr ""
11558
11559 # type: textblock
11560 #. type: textblock
11561 #: ../src/guestfs-actions.pod:2583 ../fish/guestfish-actions.pod:1748
11562 msgid "Some Red Hat-derived distro."
11563 msgstr ""
11564
11565 # type: =item
11566 #. type: =item
11567 #: ../src/guestfs-actions.pod:2585 ../fish/guestfish-actions.pod:1750
11568 msgid "\"rhel\""
11569 msgstr ""
11570
11571 # type: textblock
11572 #. type: textblock
11573 #: ../src/guestfs-actions.pod:2587 ../fish/guestfish-actions.pod:1752
11574 msgid "Red Hat Enterprise Linux and some derivatives."
11575 msgstr ""
11576
11577 #. type: =item
11578 #: ../src/guestfs-actions.pod:2589 ../fish/guestfish-actions.pod:1754
11579 msgid "\"slackware\""
11580 msgstr ""
11581
11582 #. type: textblock
11583 #: ../src/guestfs-actions.pod:2591 ../fish/guestfish-actions.pod:1756
11584 msgid "Slackware."
11585 msgstr ""
11586
11587 # type: =item
11588 #. type: =item
11589 #: ../src/guestfs-actions.pod:2593 ../fish/guestfish-actions.pod:1758
11590 msgid "\"ubuntu\""
11591 msgstr ""
11592
11593 # type: textblock
11594 #. type: textblock
11595 #: ../src/guestfs-actions.pod:2595 ../fish/guestfish-actions.pod:1760
11596 msgid "Ubuntu."
11597 msgstr ""
11598
11599 # type: =item
11600 #. type: =item
11601 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2669
11602 #: ../src/guestfs-actions.pod:2955 ../fish/guestfish-actions.pod:1762
11603 #: ../fish/guestfish-actions.pod:1819 ../fish/guestfish-actions.pod:2038
11604 msgid "\"unknown\""
11605 msgstr ""
11606
11607 # type: textblock
11608 #. type: textblock
11609 #: ../src/guestfs-actions.pod:2599 ../fish/guestfish-actions.pod:1764
11610 msgid "The distro could not be determined."
11611 msgstr ""
11612
11613 # type: =item
11614 #. type: =item
11615 #: ../src/guestfs-actions.pod:2601 ../src/guestfs-actions.pod:2947
11616 #: ../fish/guestfish-actions.pod:1766 ../fish/guestfish-actions.pod:2030
11617 msgid "\"windows\""
11618 msgstr ""
11619
11620 # type: textblock
11621 #. type: textblock
11622 #: ../src/guestfs-actions.pod:2603 ../fish/guestfish-actions.pod:1768
11623 msgid ""
11624 "Windows does not have distributions.  This string is returned if the OS type "
11625 "is Windows."
11626 msgstr ""
11627
11628 # type: textblock
11629 #. type: textblock
11630 #: ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2675
11631 #: ../src/guestfs-actions.pod:2961 ../fish/guestfish-actions.pod:1773
11632 #: ../fish/guestfish-actions.pod:1825 ../fish/guestfish-actions.pod:2044
11633 msgid ""
11634 "Future versions of libguestfs may return other strings here.  The caller "
11635 "should be prepared to handle any string."
11636 msgstr ""
11637
11638 # type: =head2
11639 #. type: =head2
11640 #: ../src/guestfs-actions.pod:2618
11641 msgid "guestfs_inspect_get_filesystems"
11642 msgstr ""
11643
11644 # type: verbatim
11645 #. type: verbatim
11646 #: ../src/guestfs-actions.pod:2620
11647 #, no-wrap
11648 msgid ""
11649 " char **\n"
11650 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11651 "                                  const char *root);\n"
11652 "\n"
11653 msgstr ""
11654
11655 # type: textblock
11656 #. type: textblock
11657 #: ../src/guestfs-actions.pod:2627 ../fish/guestfish-actions.pod:1785
11658 msgid ""
11659 "This returns a list of all the filesystems that we think are associated with "
11660 "this operating system.  This includes the root filesystem, other ordinary "
11661 "filesystems, and non-mounted devices like swap partitions."
11662 msgstr ""
11663
11664 # type: textblock
11665 #. type: textblock
11666 #: ../src/guestfs-actions.pod:2632 ../fish/guestfish-actions.pod:1790
11667 msgid ""
11668 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11669 "to be shared between operating systems."
11670 msgstr ""
11671
11672 # type: textblock
11673 #. type: textblock
11674 #: ../src/guestfs-actions.pod:2635
11675 msgid ""
11676 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11677 "C<guestfs_inspect_get_mountpoints>."
11678 msgstr ""
11679
11680 #. type: =head2
11681 #: ../src/guestfs-actions.pod:2644
11682 msgid "guestfs_inspect_get_format"
11683 msgstr ""
11684
11685 #. type: verbatim
11686 #: ../src/guestfs-actions.pod:2646
11687 #, no-wrap
11688 msgid ""
11689 " char *\n"
11690 " guestfs_inspect_get_format (guestfs_h *g,\n"
11691 "                             const char *root);\n"
11692 "\n"
11693 msgstr ""
11694
11695 #. type: textblock
11696 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1803
11697 msgid ""
11698 "This returns the format of the inspected operating system.  You can use it "
11699 "to detect install images, live CDs and similar."
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../src/guestfs-actions.pod:2656 ../fish/guestfish-actions.pod:1806
11704 msgid "Currently defined formats are:"
11705 msgstr ""
11706
11707 #. type: =item
11708 #: ../src/guestfs-actions.pod:2660 ../fish/guestfish-actions.pod:1810
11709 msgid "\"installed\""
11710 msgstr ""
11711
11712 #. type: textblock
11713 #: ../src/guestfs-actions.pod:2662 ../fish/guestfish-actions.pod:1812
11714 msgid "This is an installed operating system."
11715 msgstr ""
11716
11717 #. type: =item
11718 #: ../src/guestfs-actions.pod:2664 ../fish/guestfish-actions.pod:1814
11719 msgid "\"installer\""
11720 msgstr ""
11721
11722 #. type: textblock
11723 #: ../src/guestfs-actions.pod:2666 ../fish/guestfish-actions.pod:1816
11724 msgid ""
11725 "The disk image being inspected is not an installed operating system, but a "
11726 "I<bootable> install disk, live CD, or similar."
11727 msgstr ""
11728
11729 #. type: textblock
11730 #: ../src/guestfs-actions.pod:2671 ../fish/guestfish-actions.pod:1821
11731 msgid "The format of this disk image is not known."
11732 msgstr ""
11733
11734 # type: =head2
11735 #. type: =head2
11736 #: ../src/guestfs-actions.pod:2683
11737 msgid "guestfs_inspect_get_hostname"
11738 msgstr ""
11739
11740 # type: verbatim
11741 #. type: verbatim
11742 #: ../src/guestfs-actions.pod:2685
11743 #, no-wrap
11744 msgid ""
11745 " char *\n"
11746 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11747 "                               const char *root);\n"
11748 "\n"
11749 msgstr ""
11750
11751 # type: textblock
11752 #. type: textblock
11753 #: ../src/guestfs-actions.pod:2692 ../fish/guestfish-actions.pod:1837
11754 msgid ""
11755 "This function returns the hostname of the operating system as found by "
11756 "inspection of the guest's configuration files."
11757 msgstr ""
11758
11759 # type: textblock
11760 #. type: textblock
11761 #: ../src/guestfs-actions.pod:2695 ../fish/guestfish-actions.pod:1840
11762 msgid ""
11763 "If the hostname could not be determined, then the string C<unknown> is "
11764 "returned."
11765 msgstr ""
11766
11767 # type: textblock
11768 #. type: textblock
11769 #: ../src/guestfs-actions.pod:2703
11770 msgid "(Added in 1.7.9)"
11771 msgstr ""
11772
11773 # type: =head2
11774 #. type: =head2
11775 #: ../src/guestfs-actions.pod:2705
11776 msgid "guestfs_inspect_get_major_version"
11777 msgstr ""
11778
11779 # type: verbatim
11780 #. type: verbatim
11781 #: ../src/guestfs-actions.pod:2707
11782 #, no-wrap
11783 msgid ""
11784 " int\n"
11785 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11786 "                                    const char *root);\n"
11787 "\n"
11788 msgstr ""
11789
11790 # type: textblock
11791 #. type: textblock
11792 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1852
11793 msgid ""
11794 "This returns the major version number of the inspected operating system."
11795 msgstr ""
11796
11797 # type: textblock
11798 #. type: textblock
11799 #: ../src/guestfs-actions.pod:2717 ../fish/guestfish-actions.pod:1855
11800 msgid ""
11801 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11802 "popular public names used by the operating system.  Notably the operating "
11803 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11804 "1).  You can find out the real versions corresponding to releases of Windows "
11805 "by consulting Wikipedia or MSDN."
11806 msgstr ""
11807
11808 # type: textblock
11809 #. type: textblock
11810 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2744
11811 #: ../fish/guestfish-actions.pod:1862 ../fish/guestfish-actions.pod:1876
11812 msgid "If the version could not be determined, then C<0> is returned."
11813 msgstr ""
11814
11815 # type: =head2
11816 #. type: =head2
11817 #: ../src/guestfs-actions.pod:2732
11818 msgid "guestfs_inspect_get_minor_version"
11819 msgstr ""
11820
11821 # type: verbatim
11822 #. type: verbatim
11823 #: ../src/guestfs-actions.pod:2734
11824 #, no-wrap
11825 msgid ""
11826 " int\n"
11827 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11828 "                                    const char *root);\n"
11829 "\n"
11830 msgstr ""
11831
11832 # type: textblock
11833 #. type: textblock
11834 #: ../src/guestfs-actions.pod:2741 ../fish/guestfish-actions.pod:1873
11835 msgid ""
11836 "This returns the minor version number of the inspected operating system."
11837 msgstr ""
11838
11839 # type: textblock
11840 #. type: textblock
11841 #: ../src/guestfs-actions.pod:2746
11842 msgid ""
11843 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11844 "C<guestfs_inspect_get_major_version>."
11845 msgstr ""
11846
11847 # type: =head2
11848 #. type: =head2
11849 #: ../src/guestfs-actions.pod:2753
11850 msgid "guestfs_inspect_get_mountpoints"
11851 msgstr ""
11852
11853 # type: verbatim
11854 #. type: verbatim
11855 #: ../src/guestfs-actions.pod:2755
11856 #, no-wrap
11857 msgid ""
11858 " char **\n"
11859 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11860 "                                  const char *root);\n"
11861 "\n"
11862 msgstr ""
11863
11864 #. type: textblock
11865 #: ../src/guestfs-actions.pod:2762 ../fish/guestfish-actions.pod:1888
11866 msgid ""
11867 "This returns a hash of where we think the filesystems associated with this "
11868 "operating system should be mounted.  Callers should note that this is at "
11869 "best an educated guess made by reading configuration files such as C</etc/"
11870 "fstab>.  I<In particular note> that this may return filesystems which are "
11871 "non-existent or not mountable and callers should be prepared to handle or "
11872 "ignore failures if they try to mount them."
11873 msgstr ""
11874
11875 # type: textblock
11876 #. type: textblock
11877 #: ../src/guestfs-actions.pod:2771 ../fish/guestfish-actions.pod:1897
11878 msgid ""
11879 "Each element in the returned hashtable has a key which is the path of the "
11880 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11881 "mounted there (eg. C</dev/sda1>)."
11882 msgstr ""
11883
11884 # type: textblock
11885 #. type: textblock
11886 #: ../src/guestfs-actions.pod:2776 ../fish/guestfish-actions.pod:1902
11887 msgid ""
11888 "Non-mounted devices such as swap devices are I<not> returned in this list."
11889 msgstr ""
11890
11891 # type: textblock
11892 #. type: textblock
11893 #: ../src/guestfs-actions.pod:2779
11894 msgid ""
11895 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11896 "C<guestfs_inspect_get_filesystems>."
11897 msgstr ""
11898
11899 # type: textblock
11900 #. type: textblock
11901 #: ../src/guestfs-actions.pod:2782 ../src/guestfs-actions.pod:3521
11902 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:6636
11903 msgid ""
11904 "This function returns a NULL-terminated array of strings, or NULL if there "
11905 "was an error.  The array of strings will always have length C<2n+1>, where "
11906 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11907 "caller must free the strings and the array after use>."
11908 msgstr ""
11909
11910 # type: =head2
11911 #. type: =head2
11912 #: ../src/guestfs-actions.pod:2790
11913 msgid "guestfs_inspect_get_package_format"
11914 msgstr ""
11915
11916 # type: verbatim
11917 #. type: verbatim
11918 #: ../src/guestfs-actions.pod:2792
11919 #, no-wrap
11920 msgid ""
11921 " char *\n"
11922 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11923 "                                     const char *root);\n"
11924 "\n"
11925 msgstr ""
11926
11927 # type: textblock
11928 #. type: textblock
11929 #: ../src/guestfs-actions.pod:2799
11930 msgid ""
11931 "This function and C<guestfs_inspect_get_package_management> return the "
11932 "package format and package management tool used by the inspected operating "
11933 "system.  For example for Fedora these functions would return C<rpm> (package "
11934 "format) and C<yum> (package management)."
11935 msgstr ""
11936
11937 # type: textblock
11938 #. type: textblock
11939 #: ../src/guestfs-actions.pod:2805 ../fish/guestfish-actions.pod:1921
11940 msgid ""
11941 "This returns the string C<unknown> if we could not determine the package "
11942 "format I<or> if the operating system does not have a real packaging system "
11943 "(eg. Windows)."
11944 msgstr ""
11945
11946 # type: textblock
11947 #. type: textblock
11948 #: ../src/guestfs-actions.pod:2809 ../fish/guestfish-actions.pod:1925
11949 msgid ""
11950 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11951 "Future versions of libguestfs may return other strings."
11952 msgstr ""
11953
11954 # type: textblock
11955 #. type: textblock
11956 #: ../src/guestfs-actions.pod:2817 ../src/guestfs-actions.pod:2848
11957 msgid "(Added in 1.7.5)"
11958 msgstr ""
11959
11960 # type: =head2
11961 #. type: =head2
11962 #: ../src/guestfs-actions.pod:2819
11963 msgid "guestfs_inspect_get_package_management"
11964 msgstr ""
11965
11966 # type: verbatim
11967 #. type: verbatim
11968 #: ../src/guestfs-actions.pod:2821
11969 #, no-wrap
11970 msgid ""
11971 " char *\n"
11972 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11973 "                                         const char *root);\n"
11974 "\n"
11975 msgstr ""
11976
11977 # type: textblock
11978 #. type: textblock
11979 #: ../src/guestfs-actions.pod:2828
11980 msgid ""
11981 "C<guestfs_inspect_get_package_format> and this function return the package "
11982 "format and package management tool used by the inspected operating system.  "
11983 "For example for Fedora these functions would return C<rpm> (package format) "
11984 "and C<yum> (package management)."
11985 msgstr ""
11986
11987 # type: textblock
11988 #. type: textblock
11989 #: ../src/guestfs-actions.pod:2834 ../fish/guestfish-actions.pod:1943
11990 msgid ""
11991 "This returns the string C<unknown> if we could not determine the package "
11992 "management tool I<or> if the operating system does not have a real packaging "
11993 "system (eg. Windows)."
11994 msgstr ""
11995
11996 # type: textblock
11997 #. type: textblock
11998 #: ../src/guestfs-actions.pod:2838 ../fish/guestfish-actions.pod:1947
11999 msgid ""
12000 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
12001 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
12002 "libguestfs may return other strings."
12003 msgstr ""
12004
12005 # type: =head2
12006 #. type: =head2
12007 #: ../src/guestfs-actions.pod:2850
12008 msgid "guestfs_inspect_get_product_name"
12009 msgstr ""
12010
12011 # type: verbatim
12012 #. type: verbatim
12013 #: ../src/guestfs-actions.pod:2852
12014 #, no-wrap
12015 msgid ""
12016 " char *\n"
12017 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
12018 "                                   const char *root);\n"
12019 "\n"
12020 msgstr ""
12021
12022 # type: textblock
12023 #. type: textblock
12024 #: ../src/guestfs-actions.pod:2859 ../fish/guestfish-actions.pod:1961
12025 msgid ""
12026 "This returns the product name of the inspected operating system.  The "
12027 "product name is generally some freeform string which can be displayed to the "
12028 "user, but should not be parsed by programs."
12029 msgstr ""
12030
12031 # type: textblock
12032 #. type: textblock
12033 #: ../src/guestfs-actions.pod:2864 ../fish/guestfish-actions.pod:1966
12034 msgid ""
12035 "If the product name could not be determined, then the string C<unknown> is "
12036 "returned."
12037 msgstr ""
12038
12039 #. type: =head2
12040 #: ../src/guestfs-actions.pod:2874
12041 msgid "guestfs_inspect_get_product_variant"
12042 msgstr ""
12043
12044 #. type: verbatim
12045 #: ../src/guestfs-actions.pod:2876
12046 #, no-wrap
12047 msgid ""
12048 " char *\n"
12049 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12050 "                                      const char *root);\n"
12051 "\n"
12052 msgstr ""
12053
12054 #. type: textblock
12055 #: ../src/guestfs-actions.pod:2883 ../fish/guestfish-actions.pod:1978
12056 msgid "This returns the product variant of the inspected operating system."
12057 msgstr ""
12058
12059 #. type: textblock
12060 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1981
12061 msgid ""
12062 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12063 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12064 "is usually a string such as C<Client> or C<Server> (other values are "
12065 "possible).  This can be used to distinguish consumer and enterprise versions "
12066 "of Windows that have the same version number (for example, Windows 7 and "
12067 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12068 "the latter is C<Server>)."
12069 msgstr ""
12070
12071 #. type: textblock
12072 #: ../src/guestfs-actions.pod:2895 ../fish/guestfish-actions.pod:1990
12073 msgid ""
12074 "For enterprise Linux guests, in future we intend this to return the product "
12075 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12076 "implemented at present."
12077 msgstr ""
12078
12079 #. type: textblock
12080 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1994
12081 msgid ""
12082 "If the product variant could not be determined, then the string C<unknown> "
12083 "is returned."
12084 msgstr ""
12085
12086 #. type: textblock
12087 #: ../src/guestfs-actions.pod:2902
12088 msgid ""
12089 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12090 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12091 msgstr ""
12092
12093 # type: =head2
12094 #. type: =head2
12095 #: ../src/guestfs-actions.pod:2909
12096 msgid "guestfs_inspect_get_roots"
12097 msgstr ""
12098
12099 # type: verbatim
12100 #. type: verbatim
12101 #: ../src/guestfs-actions.pod:2911
12102 #, no-wrap
12103 msgid ""
12104 " char **\n"
12105 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12106 "\n"
12107 msgstr ""
12108
12109 # type: textblock
12110 #. type: textblock
12111 #: ../src/guestfs-actions.pod:2914
12112 msgid ""
12113 "This function is a convenient way to get the list of root devices, as "
12114 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12115 "the whole inspection process."
12116 msgstr ""
12117
12118 # type: textblock
12119 #. type: textblock
12120 #: ../src/guestfs-actions.pod:2918
12121 msgid ""
12122 "This returns an empty list if either no root devices were found or the "
12123 "caller has not called C<guestfs_inspect_os>."
12124 msgstr ""
12125
12126 # type: textblock
12127 #. type: textblock
12128 #: ../src/guestfs-actions.pod:2927
12129 msgid "(Added in 1.7.3)"
12130 msgstr ""
12131
12132 # type: =head2
12133 #. type: =head2
12134 #: ../src/guestfs-actions.pod:2929
12135 msgid "guestfs_inspect_get_type"
12136 msgstr ""
12137
12138 # type: verbatim
12139 #. type: verbatim
12140 #: ../src/guestfs-actions.pod:2931
12141 #, no-wrap
12142 msgid ""
12143 " char *\n"
12144 " guestfs_inspect_get_type (guestfs_h *g,\n"
12145 "                           const char *root);\n"
12146 "\n"
12147 msgstr ""
12148
12149 # type: textblock
12150 #. type: textblock
12151 #: ../src/guestfs-actions.pod:2938 ../fish/guestfish-actions.pod:2021
12152 msgid ""
12153 "This returns the type of the inspected operating system.  Currently defined "
12154 "types are:"
12155 msgstr ""
12156
12157 # type: =item
12158 #. type: =item
12159 #: ../src/guestfs-actions.pod:2943 ../fish/guestfish-actions.pod:2026
12160 msgid "\"linux\""
12161 msgstr ""
12162
12163 # type: textblock
12164 #. type: textblock
12165 #: ../src/guestfs-actions.pod:2945 ../fish/guestfish-actions.pod:2028
12166 msgid "Any Linux-based operating system."
12167 msgstr ""
12168
12169 # type: textblock
12170 #. type: textblock
12171 #: ../src/guestfs-actions.pod:2949 ../fish/guestfish-actions.pod:2032
12172 msgid "Any Microsoft Windows operating system."
12173 msgstr ""
12174
12175 # type: =item
12176 #. type: =item
12177 #: ../src/guestfs-actions.pod:2951 ../fish/guestfish-actions.pod:2034
12178 msgid "\"freebsd\""
12179 msgstr ""
12180
12181 # type: textblock
12182 #. type: textblock
12183 #: ../src/guestfs-actions.pod:2953 ../fish/guestfish-actions.pod:2036
12184 msgid "FreeBSD."
12185 msgstr ""
12186
12187 # type: textblock
12188 #. type: textblock
12189 #: ../src/guestfs-actions.pod:2957 ../fish/guestfish-actions.pod:2040
12190 msgid "The operating system type could not be determined."
12191 msgstr ""
12192
12193 # type: =head2
12194 #. type: =head2
12195 #: ../src/guestfs-actions.pod:2971
12196 msgid "guestfs_inspect_get_windows_systemroot"
12197 msgstr ""
12198
12199 # type: verbatim
12200 #. type: verbatim
12201 #: ../src/guestfs-actions.pod:2973
12202 #, no-wrap
12203 msgid ""
12204 " char *\n"
12205 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12206 "                                         const char *root);\n"
12207 "\n"
12208 msgstr ""
12209
12210 # type: textblock
12211 #. type: textblock
12212 #: ../src/guestfs-actions.pod:2980 ../fish/guestfish-actions.pod:2056
12213 msgid ""
12214 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12215 "is a directory path such as C</WINDOWS>."
12216 msgstr ""
12217
12218 # type: textblock
12219 #. type: textblock
12220 #: ../src/guestfs-actions.pod:2983 ../fish/guestfish-actions.pod:2059
12221 msgid ""
12222 "This call assumes that the guest is Windows and that the systemroot could be "
12223 "determined by inspection.  If this is not the case then an error is returned."
12224 msgstr ""
12225
12226 # type: textblock
12227 #. type: textblock
12228 #: ../src/guestfs-actions.pod:2992
12229 msgid "(Added in 1.5.25)"
12230 msgstr ""
12231
12232 #. type: =head2
12233 #: ../src/guestfs-actions.pod:2994
12234 msgid "guestfs_inspect_is_live"
12235 msgstr ""
12236
12237 #. type: verbatim
12238 #: ../src/guestfs-actions.pod:2996
12239 #, no-wrap
12240 msgid ""
12241 " int\n"
12242 " guestfs_inspect_is_live (guestfs_h *g,\n"
12243 "                          const char *root);\n"
12244 "\n"
12245 msgstr ""
12246
12247 #. type: textblock
12248 #: ../src/guestfs-actions.pod:3003
12249 msgid ""
12250 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12251 "disk), then this returns true if a live image was detected on the disk."
12252 msgstr ""
12253
12254 #. type: =head2
12255 #: ../src/guestfs-actions.pod:3011
12256 msgid "guestfs_inspect_is_multipart"
12257 msgstr ""
12258
12259 #. type: verbatim
12260 #: ../src/guestfs-actions.pod:3013
12261 #, no-wrap
12262 msgid ""
12263 " int\n"
12264 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12265 "                               const char *root);\n"
12266 "\n"
12267 msgstr ""
12268
12269 #. type: textblock
12270 #: ../src/guestfs-actions.pod:3020
12271 msgid ""
12272 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12273 "disk), then this returns true if the disk is part of a set."
12274 msgstr ""
12275
12276 #. type: =head2
12277 #: ../src/guestfs-actions.pod:3028
12278 msgid "guestfs_inspect_is_netinst"
12279 msgstr ""
12280
12281 #. type: verbatim
12282 #: ../src/guestfs-actions.pod:3030
12283 #, no-wrap
12284 msgid ""
12285 " int\n"
12286 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12287 "                             const char *root);\n"
12288 "\n"
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../src/guestfs-actions.pod:3037
12293 msgid ""
12294 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12295 "disk), then this returns true if the disk is a network installer, ie. not a "
12296 "self-contained install CD but one which is likely to require network access "
12297 "to complete the install."
12298 msgstr ""
12299
12300 # type: =head2
12301 #. type: =head2
12302 #: ../src/guestfs-actions.pod:3047
12303 msgid "guestfs_inspect_list_applications"
12304 msgstr ""
12305
12306 # type: verbatim
12307 #. type: verbatim
12308 #: ../src/guestfs-actions.pod:3049
12309 #, no-wrap
12310 msgid ""
12311 " struct guestfs_application_list *\n"
12312 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12313 "                                    const char *root);\n"
12314 "\n"
12315 msgstr ""
12316
12317 # type: textblock
12318 #. type: textblock
12319 #: ../src/guestfs-actions.pod:3056 ../fish/guestfish-actions.pod:2113
12320 msgid "Return the list of applications installed in the operating system."
12321 msgstr ""
12322
12323 # type: textblock
12324 #. type: textblock
12325 #: ../src/guestfs-actions.pod:3058
12326 msgid ""
12327 "I<Note:> This call works differently from other parts of the inspection "
12328 "API.  You have to call C<guestfs_inspect_os>, then "
12329 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12330 "this.  Listing applications is a significantly more difficult operation "
12331 "which requires access to the full filesystem.  Also note that unlike the "
12332 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12333 "the libguestfs handle, this call actually reads parts of the mounted "
12334 "filesystems during the call."
12335 msgstr ""
12336
12337 # type: textblock
12338 #. type: textblock
12339 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2125
12340 msgid ""
12341 "This returns an empty list if the inspection code was not able to determine "
12342 "the list of applications."
12343 msgstr ""
12344
12345 # type: textblock
12346 #. type: textblock
12347 #: ../src/guestfs-actions.pod:3071 ../fish/guestfish-actions.pod:2128
12348 msgid "The application structure contains the following fields:"
12349 msgstr ""
12350
12351 # type: =item
12352 #. type: =item
12353 #: ../src/guestfs-actions.pod:3075 ../fish/guestfish-actions.pod:2132
12354 msgid "C<app_name>"
12355 msgstr ""
12356
12357 # type: textblock
12358 #. type: textblock
12359 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2134
12360 msgid ""
12361 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12362 "guests, this is the package name."
12363 msgstr ""
12364
12365 # type: =item
12366 #. type: =item
12367 #: ../src/guestfs-actions.pod:3080 ../fish/guestfish-actions.pod:2137
12368 msgid "C<app_display_name>"
12369 msgstr ""
12370
12371 # type: textblock
12372 #. type: textblock
12373 #: ../src/guestfs-actions.pod:3082 ../fish/guestfish-actions.pod:2139
12374 msgid ""
12375 "The display name of the application, sometimes localized to the install "
12376 "language of the guest operating system."
12377 msgstr ""
12378
12379 # type: textblock
12380 #. type: textblock
12381 #: ../src/guestfs-actions.pod:3085 ../fish/guestfish-actions.pod:2142
12382 msgid ""
12383 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12384 "to display something can use C<app_name> instead."
12385 msgstr ""
12386
12387 # type: =item
12388 #. type: =item
12389 #: ../src/guestfs-actions.pod:3088 ../fish/guestfish-actions.pod:2145
12390 msgid "C<app_epoch>"
12391 msgstr ""
12392
12393 # type: textblock
12394 #. type: textblock
12395 #: ../src/guestfs-actions.pod:3090 ../fish/guestfish-actions.pod:2147
12396 msgid ""
12397 "For package managers which use epochs, this contains the epoch of the "
12398 "package (an integer).  If unavailable, this is returned as C<0>."
12399 msgstr ""
12400
12401 # type: =item
12402 #. type: =item
12403 #: ../src/guestfs-actions.pod:3093 ../fish/guestfish-actions.pod:2150
12404 msgid "C<app_version>"
12405 msgstr ""
12406
12407 # type: textblock
12408 #. type: textblock
12409 #: ../src/guestfs-actions.pod:3095 ../fish/guestfish-actions.pod:2152
12410 msgid ""
12411 "The version string of the application or package.  If unavailable this is "
12412 "returned as an empty string C<\"\">."
12413 msgstr ""
12414
12415 # type: =item
12416 #. type: =item
12417 #: ../src/guestfs-actions.pod:3098 ../fish/guestfish-actions.pod:2155
12418 msgid "C<app_release>"
12419 msgstr ""
12420
12421 # type: textblock
12422 #. type: textblock
12423 #: ../src/guestfs-actions.pod:3100 ../fish/guestfish-actions.pod:2157
12424 msgid ""
12425 "The release string of the application or package, for package managers that "
12426 "use this.  If unavailable this is returned as an empty string C<\"\">."
12427 msgstr ""
12428
12429 # type: =item
12430 #. type: =item
12431 #: ../src/guestfs-actions.pod:3104 ../fish/guestfish-actions.pod:2161
12432 msgid "C<app_install_path>"
12433 msgstr ""
12434
12435 # type: textblock
12436 #. type: textblock
12437 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2163
12438 msgid ""
12439 "The installation path of the application (on operating systems such as "
12440 "Windows which use installation paths).  This path is in the format used by "
12441 "the guest operating system, it is not a libguestfs path."
12442 msgstr ""
12443
12444 # type: textblock
12445 #. type: textblock
12446 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2168
12447 msgid "If unavailable this is returned as an empty string C<\"\">."
12448 msgstr ""
12449
12450 # type: =item
12451 #. type: =item
12452 #: ../src/guestfs-actions.pod:3113 ../fish/guestfish-actions.pod:2170
12453 msgid "C<app_trans_path>"
12454 msgstr ""
12455
12456 # type: textblock
12457 #. type: textblock
12458 #: ../src/guestfs-actions.pod:3115 ../fish/guestfish-actions.pod:2172
12459 msgid ""
12460 "The install path translated into a libguestfs path.  If unavailable this is "
12461 "returned as an empty string C<\"\">."
12462 msgstr ""
12463
12464 # type: =item
12465 #. type: =item
12466 #: ../src/guestfs-actions.pod:3118 ../fish/guestfish-actions.pod:2175
12467 msgid "C<app_publisher>"
12468 msgstr ""
12469
12470 # type: textblock
12471 #. type: textblock
12472 #: ../src/guestfs-actions.pod:3120 ../fish/guestfish-actions.pod:2177
12473 msgid ""
12474 "The name of the publisher of the application, for package managers that use "
12475 "this.  If unavailable this is returned as an empty string C<\"\">."
12476 msgstr ""
12477
12478 # type: =item
12479 #. type: =item
12480 #: ../src/guestfs-actions.pod:3124 ../fish/guestfish-actions.pod:2181
12481 msgid "C<app_url>"
12482 msgstr ""
12483
12484 # type: textblock
12485 #. type: textblock
12486 #: ../src/guestfs-actions.pod:3126 ../fish/guestfish-actions.pod:2183
12487 msgid ""
12488 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12489 "returned as an empty string C<\"\">."
12490 msgstr ""
12491
12492 # type: =item
12493 #. type: =item
12494 #: ../src/guestfs-actions.pod:3129 ../fish/guestfish-actions.pod:2186
12495 msgid "C<app_source_package>"
12496 msgstr ""
12497
12498 # type: textblock
12499 #. type: textblock
12500 #: ../src/guestfs-actions.pod:3131 ../fish/guestfish-actions.pod:2188
12501 msgid ""
12502 "For packaging systems which support this, the name of the source package.  "
12503 "If unavailable this is returned as an empty string C<\"\">."
12504 msgstr ""
12505
12506 # type: =item
12507 #. type: =item
12508 #: ../src/guestfs-actions.pod:3134 ../fish/guestfish-actions.pod:2191
12509 msgid "C<app_summary>"
12510 msgstr ""
12511
12512 # type: textblock
12513 #. type: textblock
12514 #: ../src/guestfs-actions.pod:3136 ../fish/guestfish-actions.pod:2193
12515 msgid ""
12516 "A short (usually one line) description of the application or package.  If "
12517 "unavailable this is returned as an empty string C<\"\">."
12518 msgstr ""
12519
12520 # type: =item
12521 #. type: =item
12522 #: ../src/guestfs-actions.pod:3139 ../fish/guestfish-actions.pod:2196
12523 msgid "C<app_description>"
12524 msgstr ""
12525
12526 # type: textblock
12527 #. type: textblock
12528 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2198
12529 msgid ""
12530 "A longer description of the application or package.  If unavailable this is "
12531 "returned as an empty string C<\"\">."
12532 msgstr ""
12533
12534 # type: textblock
12535 #. type: textblock
12536 #: ../src/guestfs-actions.pod:3148
12537 msgid ""
12538 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12539 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
12540 "after use>."
12541 msgstr ""
12542
12543 # type: textblock
12544 #. type: textblock
12545 #: ../src/guestfs-actions.pod:3152
12546 msgid "(Added in 1.7.8)"
12547 msgstr ""
12548
12549 # type: =head2
12550 #. type: =head2
12551 #: ../src/guestfs-actions.pod:3154
12552 msgid "guestfs_inspect_os"
12553 msgstr ""
12554
12555 # type: verbatim
12556 #. type: verbatim
12557 #: ../src/guestfs-actions.pod:3156
12558 #, no-wrap
12559 msgid ""
12560 " char **\n"
12561 " guestfs_inspect_os (guestfs_h *g);\n"
12562 "\n"
12563 msgstr ""
12564
12565 # type: textblock
12566 #. type: textblock
12567 #: ../src/guestfs-actions.pod:3159 ../fish/guestfish-actions.pod:2209
12568 msgid ""
12569 "This function uses other libguestfs functions and certain heuristics to "
12570 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12571 "for operating systems."
12572 msgstr ""
12573
12574 # type: textblock
12575 #. type: textblock
12576 #: ../src/guestfs-actions.pod:3163 ../fish/guestfish-actions.pod:2213
12577 msgid "The list returned is empty if no operating systems were found."
12578 msgstr ""
12579
12580 # type: textblock
12581 #. type: textblock
12582 #: ../src/guestfs-actions.pod:3165 ../fish/guestfish-actions.pod:2215
12583 msgid ""
12584 "If one operating system was found, then this returns a list with a single "
12585 "element, which is the name of the root filesystem of this operating system.  "
12586 "It is also possible for this function to return a list containing more than "
12587 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12588 "element being the root filesystem of one of the operating systems."
12589 msgstr ""
12590
12591 # type: textblock
12592 #. type: textblock
12593 #: ../src/guestfs-actions.pod:3172
12594 msgid ""
12595 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
12596 "functions in order to query further information about each operating system, "
12597 "such as the name and version."
12598 msgstr ""
12599
12600 # type: textblock
12601 #. type: textblock
12602 #: ../src/guestfs-actions.pod:3177
12603 msgid ""
12604 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
12605 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
12606 "the contents.  This should be called with no disks currently mounted.  The "
12607 "function may also use Augeas, so any existing Augeas handle will be closed."
12608 msgstr ""
12609
12610 # type: textblock
12611 #. type: textblock
12612 #: ../src/guestfs-actions.pod:3183 ../fish/guestfish-actions.pod:2233
12613 msgid ""
12614 "This function cannot decrypt encrypted disks.  The caller must do that first "
12615 "(supplying the necessary keys) if the disk is encrypted."
12616 msgstr ""
12617
12618 # type: textblock
12619 #. type: textblock
12620 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3479
12621 #: ../src/guestfs-actions.pod:3541
12622 msgid "See also C<guestfs_list_filesystems>."
12623 msgstr ""
12624
12625 # type: =head2
12626 #. type: =head2
12627 #: ../src/guestfs-actions.pod:3197
12628 msgid "guestfs_is_blockdev"
12629 msgstr ""
12630
12631 # type: verbatim
12632 #. type: verbatim
12633 #: ../src/guestfs-actions.pod:3199
12634 #, no-wrap
12635 msgid ""
12636 " int\n"
12637 " guestfs_is_blockdev (guestfs_h *g,\n"
12638 "                      const char *path);\n"
12639 "\n"
12640 msgstr ""
12641
12642 # type: textblock
12643 #. type: textblock
12644 #: ../src/guestfs-actions.pod:3203 ../fish/guestfish-actions.pod:2245
12645 msgid ""
12646 "This returns C<true> if and only if there is a block device with the given "
12647 "C<path> name."
12648 msgstr ""
12649
12650 # type: textblock
12651 #. type: textblock
12652 #: ../src/guestfs-actions.pod:3206 ../src/guestfs-actions.pod:3235
12653 #: ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3280
12654 #: ../src/guestfs-actions.pod:3296 ../src/guestfs-actions.pod:3352
12655 #: ../src/guestfs-actions.pod:3367
12656 msgid "See also C<guestfs_stat>."
12657 msgstr ""
12658
12659 # type: textblock
12660 #. type: textblock
12661 #: ../src/guestfs-actions.pod:3210 ../src/guestfs-actions.pod:3239
12662 #: ../src/guestfs-actions.pod:3284 ../src/guestfs-actions.pod:3356
12663 #: ../src/guestfs-actions.pod:3371
12664 msgid "(Added in 1.5.10)"
12665 msgstr ""
12666
12667 # type: =head2
12668 #. type: =head2
12669 #: ../src/guestfs-actions.pod:3212
12670 msgid "guestfs_is_busy"
12671 msgstr ""
12672
12673 # type: verbatim
12674 #. type: verbatim
12675 #: ../src/guestfs-actions.pod:3214
12676 #, no-wrap
12677 msgid ""
12678 " int\n"
12679 " guestfs_is_busy (guestfs_h *g);\n"
12680 "\n"
12681 msgstr ""
12682
12683 # type: textblock
12684 #. type: textblock
12685 #: ../src/guestfs-actions.pod:3217 ../fish/guestfish-actions.pod:2254
12686 msgid ""
12687 "This returns true iff this handle is busy processing a command (in the "
12688 "C<BUSY> state)."
12689 msgstr ""
12690
12691 # type: =head2
12692 #. type: =head2
12693 #: ../src/guestfs-actions.pod:3226
12694 msgid "guestfs_is_chardev"
12695 msgstr ""
12696
12697 # type: verbatim
12698 #. type: verbatim
12699 #: ../src/guestfs-actions.pod:3228
12700 #, no-wrap
12701 msgid ""
12702 " int\n"
12703 " guestfs_is_chardev (guestfs_h *g,\n"
12704 "                     const char *path);\n"
12705 "\n"
12706 msgstr ""
12707
12708 # type: textblock
12709 #. type: textblock
12710 #: ../src/guestfs-actions.pod:3232 ../fish/guestfish-actions.pod:2263
12711 msgid ""
12712 "This returns C<true> if and only if there is a character device with the "
12713 "given C<path> name."
12714 msgstr ""
12715
12716 # type: =head2
12717 #. type: =head2
12718 #: ../src/guestfs-actions.pod:3241
12719 msgid "guestfs_is_config"
12720 msgstr ""
12721
12722 # type: verbatim
12723 #. type: verbatim
12724 #: ../src/guestfs-actions.pod:3243
12725 #, no-wrap
12726 msgid ""
12727 " int\n"
12728 " guestfs_is_config (guestfs_h *g);\n"
12729 "\n"
12730 msgstr ""
12731
12732 # type: textblock
12733 #. type: textblock
12734 #: ../src/guestfs-actions.pod:3246 ../fish/guestfish-actions.pod:2272
12735 msgid ""
12736 "This returns true iff this handle is being configured (in the C<CONFIG> "
12737 "state)."
12738 msgstr ""
12739
12740 # type: =head2
12741 #. type: =head2
12742 #: ../src/guestfs-actions.pod:3255
12743 msgid "guestfs_is_dir"
12744 msgstr ""
12745
12746 # type: verbatim
12747 #. type: verbatim
12748 #: ../src/guestfs-actions.pod:3257
12749 #, no-wrap
12750 msgid ""
12751 " int\n"
12752 " guestfs_is_dir (guestfs_h *g,\n"
12753 "                 const char *path);\n"
12754 "\n"
12755 msgstr ""
12756
12757 # type: textblock
12758 #. type: textblock
12759 #: ../src/guestfs-actions.pod:3261 ../fish/guestfish-actions.pod:2281
12760 msgid ""
12761 "This returns C<true> if and only if there is a directory with the given "
12762 "C<path> name.  Note that it returns false for other objects like files."
12763 msgstr ""
12764
12765 # type: =head2
12766 #. type: =head2
12767 #: ../src/guestfs-actions.pod:3271
12768 msgid "guestfs_is_fifo"
12769 msgstr ""
12770
12771 # type: verbatim
12772 #. type: verbatim
12773 #: ../src/guestfs-actions.pod:3273
12774 #, no-wrap
12775 msgid ""
12776 " int\n"
12777 " guestfs_is_fifo (guestfs_h *g,\n"
12778 "                  const char *path);\n"
12779 "\n"
12780 msgstr ""
12781
12782 # type: textblock
12783 #. type: textblock
12784 #: ../src/guestfs-actions.pod:3277 ../fish/guestfish-actions.pod:2291
12785 msgid ""
12786 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12787 "given C<path> name."
12788 msgstr ""
12789
12790 # type: =head2
12791 #. type: =head2
12792 #: ../src/guestfs-actions.pod:3286
12793 msgid "guestfs_is_file"
12794 msgstr ""
12795
12796 # type: verbatim
12797 #. type: verbatim
12798 #: ../src/guestfs-actions.pod:3288
12799 #, no-wrap
12800 msgid ""
12801 " int\n"
12802 " guestfs_is_file (guestfs_h *g,\n"
12803 "                  const char *path);\n"
12804 "\n"
12805 msgstr ""
12806
12807 # type: textblock
12808 #. type: textblock
12809 #: ../src/guestfs-actions.pod:3292 ../fish/guestfish-actions.pod:2300
12810 msgid ""
12811 "This returns C<true> if and only if there is a regular file with the given "
12812 "C<path> name.  Note that it returns false for other objects like directories."
12813 msgstr ""
12814
12815 # type: =head2
12816 #. type: =head2
12817 #: ../src/guestfs-actions.pod:3302
12818 msgid "guestfs_is_launching"
12819 msgstr ""
12820
12821 # type: verbatim
12822 #. type: verbatim
12823 #: ../src/guestfs-actions.pod:3304
12824 #, no-wrap
12825 msgid ""
12826 " int\n"
12827 " guestfs_is_launching (guestfs_h *g);\n"
12828 "\n"
12829 msgstr ""
12830
12831 # type: textblock
12832 #. type: textblock
12833 #: ../src/guestfs-actions.pod:3307 ../fish/guestfish-actions.pod:2310
12834 msgid ""
12835 "This returns true iff this handle is launching the subprocess (in the "
12836 "C<LAUNCHING> state)."
12837 msgstr ""
12838
12839 # type: =head2
12840 #. type: =head2
12841 #: ../src/guestfs-actions.pod:3316
12842 msgid "guestfs_is_lv"
12843 msgstr ""
12844
12845 # type: verbatim
12846 #. type: verbatim
12847 #: ../src/guestfs-actions.pod:3318
12848 #, no-wrap
12849 msgid ""
12850 " int\n"
12851 " guestfs_is_lv (guestfs_h *g,\n"
12852 "                const char *device);\n"
12853 "\n"
12854 msgstr ""
12855
12856 # type: textblock
12857 #. type: textblock
12858 #: ../src/guestfs-actions.pod:3322 ../fish/guestfish-actions.pod:2319
12859 msgid ""
12860 "This command tests whether C<device> is a logical volume, and returns true "
12861 "iff this is the case."
12862 msgstr ""
12863
12864 # type: =head2
12865 #. type: =head2
12866 #: ../src/guestfs-actions.pod:3329
12867 msgid "guestfs_is_ready"
12868 msgstr ""
12869
12870 # type: verbatim
12871 #. type: verbatim
12872 #: ../src/guestfs-actions.pod:3331
12873 #, no-wrap
12874 msgid ""
12875 " int\n"
12876 " guestfs_is_ready (guestfs_h *g);\n"
12877 "\n"
12878 msgstr ""
12879
12880 # type: textblock
12881 #. type: textblock
12882 #: ../src/guestfs-actions.pod:3334 ../fish/guestfish-actions.pod:2326
12883 msgid ""
12884 "This returns true iff this handle is ready to accept commands (in the "
12885 "C<READY> state)."
12886 msgstr ""
12887
12888 # type: =head2
12889 #. type: =head2
12890 #: ../src/guestfs-actions.pod:3343
12891 msgid "guestfs_is_socket"
12892 msgstr ""
12893
12894 # type: verbatim
12895 #. type: verbatim
12896 #: ../src/guestfs-actions.pod:3345
12897 #, no-wrap
12898 msgid ""
12899 " int\n"
12900 " guestfs_is_socket (guestfs_h *g,\n"
12901 "                    const char *path);\n"
12902 "\n"
12903 msgstr ""
12904
12905 # type: textblock
12906 #. type: textblock
12907 #: ../src/guestfs-actions.pod:3349 ../fish/guestfish-actions.pod:2335
12908 msgid ""
12909 "This returns C<true> if and only if there is a Unix domain socket with the "
12910 "given C<path> name."
12911 msgstr ""
12912
12913 # type: =head2
12914 #. type: =head2
12915 #: ../src/guestfs-actions.pod:3358
12916 msgid "guestfs_is_symlink"
12917 msgstr ""
12918
12919 # type: verbatim
12920 #. type: verbatim
12921 #: ../src/guestfs-actions.pod:3360
12922 #, no-wrap
12923 msgid ""
12924 " int\n"
12925 " guestfs_is_symlink (guestfs_h *g,\n"
12926 "                     const char *path);\n"
12927 "\n"
12928 msgstr ""
12929
12930 # type: textblock
12931 #. type: textblock
12932 #: ../src/guestfs-actions.pod:3364 ../fish/guestfish-actions.pod:2344
12933 msgid ""
12934 "This returns C<true> if and only if there is a symbolic link with the given "
12935 "C<path> name."
12936 msgstr ""
12937
12938 # type: =head2
12939 #. type: =head2
12940 #: ../src/guestfs-actions.pod:3373
12941 msgid "guestfs_kill_subprocess"
12942 msgstr ""
12943
12944 # type: verbatim
12945 #. type: verbatim
12946 #: ../src/guestfs-actions.pod:3375
12947 #, no-wrap
12948 msgid ""
12949 " int\n"
12950 " guestfs_kill_subprocess (guestfs_h *g);\n"
12951 "\n"
12952 msgstr ""
12953
12954 # type: textblock
12955 #. type: textblock
12956 #: ../src/guestfs-actions.pod:3378 ../fish/guestfish-actions.pod:2353
12957 msgid "This kills the qemu subprocess.  You should never need to call this."
12958 msgstr ""
12959
12960 # type: =head2
12961 #. type: =head2
12962 #: ../src/guestfs-actions.pod:3384
12963 msgid "guestfs_launch"
12964 msgstr ""
12965
12966 # type: verbatim
12967 #. type: verbatim
12968 #: ../src/guestfs-actions.pod:3386
12969 #, no-wrap
12970 msgid ""
12971 " int\n"
12972 " guestfs_launch (guestfs_h *g);\n"
12973 "\n"
12974 msgstr ""
12975
12976 # type: textblock
12977 #. type: textblock
12978 #: ../src/guestfs-actions.pod:3389 ../fish/guestfish-actions.pod:2361
12979 msgid ""
12980 "Internally libguestfs is implemented by running a virtual machine using "
12981 "L<qemu(1)>."
12982 msgstr ""
12983
12984 # type: textblock
12985 #. type: textblock
12986 #: ../src/guestfs-actions.pod:3392 ../fish/guestfish-actions.pod:2364
12987 msgid ""
12988 "You should call this after configuring the handle (eg. adding drives) but "
12989 "before performing any actions."
12990 msgstr ""
12991
12992 # type: =head2
12993 #. type: =head2
12994 #: ../src/guestfs-actions.pod:3404
12995 msgid "guestfs_lchown"
12996 msgstr ""
12997
12998 # type: verbatim
12999 #. type: verbatim
13000 #: ../src/guestfs-actions.pod:3406
13001 #, no-wrap
13002 msgid ""
13003 " int\n"
13004 " guestfs_lchown (guestfs_h *g,\n"
13005 "                 int owner,\n"
13006 "                 int group,\n"
13007 "                 const char *path);\n"
13008 "\n"
13009 msgstr ""
13010
13011 # type: textblock
13012 #. type: textblock
13013 #: ../src/guestfs-actions.pod:3412
13014 msgid ""
13015 "Change the file owner to C<owner> and group to C<group>.  This is like "
13016 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
13017 "changed, not the target."
13018 msgstr ""
13019
13020 # type: =head2
13021 #. type: =head2
13022 #: ../src/guestfs-actions.pod:3424
13023 msgid "guestfs_lgetxattr"
13024 msgstr ""
13025
13026 # type: verbatim
13027 #. type: verbatim
13028 #: ../src/guestfs-actions.pod:3426
13029 #, no-wrap
13030 msgid ""
13031 " char *\n"
13032 " guestfs_lgetxattr (guestfs_h *g,\n"
13033 "                    const char *path,\n"
13034 "                    const char *name,\n"
13035 "                    size_t *size_r);\n"
13036 "\n"
13037 msgstr ""
13038
13039 # type: textblock
13040 #. type: textblock
13041 #: ../src/guestfs-actions.pod:3432 ../fish/guestfish-actions.pod:2383
13042 msgid ""
13043 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13044 "is a symlink, then this call returns an extended attribute from the symlink."
13045 msgstr ""
13046
13047 # type: textblock
13048 #. type: textblock
13049 #: ../src/guestfs-actions.pod:3446
13050 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13051 msgstr ""
13052
13053 # type: =head2
13054 #. type: =head2
13055 #: ../src/guestfs-actions.pod:3454
13056 msgid "guestfs_lgetxattrs"
13057 msgstr ""
13058
13059 # type: verbatim
13060 #. type: verbatim
13061 #: ../src/guestfs-actions.pod:3456
13062 #, no-wrap
13063 msgid ""
13064 " struct guestfs_xattr_list *\n"
13065 " guestfs_lgetxattrs (guestfs_h *g,\n"
13066 "                     const char *path);\n"
13067 "\n"
13068 msgstr ""
13069
13070 # type: textblock
13071 #. type: textblock
13072 #: ../src/guestfs-actions.pod:3460
13073 msgid ""
13074 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13075 "then it returns the extended attributes of the link itself."
13076 msgstr ""
13077
13078 # type: =head2
13079 #. type: =head2
13080 #: ../src/guestfs-actions.pod:3470
13081 msgid "guestfs_list_devices"
13082 msgstr ""
13083
13084 # type: verbatim
13085 #. type: verbatim
13086 #: ../src/guestfs-actions.pod:3472
13087 #, no-wrap
13088 msgid ""
13089 " char **\n"
13090 " guestfs_list_devices (guestfs_h *g);\n"
13091 "\n"
13092 msgstr ""
13093
13094 # type: textblock
13095 #. type: textblock
13096 #: ../src/guestfs-actions.pod:3475 ../fish/guestfish-actions.pod:2411
13097 msgid "List all the block devices."
13098 msgstr ""
13099
13100 # type: textblock
13101 #. type: textblock
13102 #: ../src/guestfs-actions.pod:3477 ../fish/guestfish-actions.pod:2413
13103 msgid "The full block device names are returned, eg. C</dev/sda>."
13104 msgstr ""
13105
13106 # type: =head2
13107 #. type: =head2
13108 #: ../src/guestfs-actions.pod:3487
13109 msgid "guestfs_list_filesystems"
13110 msgstr ""
13111
13112 # type: verbatim
13113 #. type: verbatim
13114 #: ../src/guestfs-actions.pod:3489
13115 #, no-wrap
13116 msgid ""
13117 " char **\n"
13118 " guestfs_list_filesystems (guestfs_h *g);\n"
13119 "\n"
13120 msgstr ""
13121
13122 # type: textblock
13123 #. type: textblock
13124 #: ../src/guestfs-actions.pod:3492 ../fish/guestfish-actions.pod:2421
13125 msgid ""
13126 "This inspection command looks for filesystems on partitions, block devices "
13127 "and logical volumes, returning a list of devices containing filesystems and "
13128 "their type."
13129 msgstr ""
13130
13131 # type: textblock
13132 #. type: textblock
13133 #: ../src/guestfs-actions.pod:3496 ../fish/guestfish-actions.pod:2425
13134 msgid ""
13135 "The return value is a hash, where the keys are the devices containing "
13136 "filesystems, and the values are the filesystem types.  For example:"
13137 msgstr ""
13138
13139 # type: verbatim
13140 #. type: verbatim
13141 #: ../src/guestfs-actions.pod:3500 ../fish/guestfish-actions.pod:2429
13142 #, no-wrap
13143 msgid ""
13144 " \"/dev/sda1\" => \"ntfs\"\n"
13145 " \"/dev/sda2\" => \"ext2\"\n"
13146 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13147 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13148 "\n"
13149 msgstr ""
13150
13151 # type: textblock
13152 #. type: textblock
13153 #: ../src/guestfs-actions.pod:3505 ../fish/guestfish-actions.pod:2434
13154 msgid ""
13155 "The value can have the special value \"unknown\", meaning the content of the "
13156 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13157 msgstr ""
13158
13159 # type: textblock
13160 #. type: textblock
13161 #: ../src/guestfs-actions.pod:3509
13162 msgid ""
13163 "This command runs other libguestfs commands, which might include "
13164 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13165 "soon after launch and only when nothing is mounted."
13166 msgstr ""
13167
13168 # type: textblock
13169 #. type: textblock
13170 #: ../src/guestfs-actions.pod:3513
13171 msgid ""
13172 "Not all of the filesystems returned will be mountable.  In particular, swap "
13173 "partitions are returned in the list.  Also this command does not check that "
13174 "each filesystem found is valid and mountable, and some filesystems might be "
13175 "mountable but require special options.  Filesystems may not all belong to a "
13176 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13177 msgstr ""
13178
13179 # type: textblock
13180 #. type: textblock
13181 #: ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:5132
13182 msgid "(Added in 1.5.15)"
13183 msgstr ""
13184
13185 # type: =head2
13186 #. type: =head2
13187 #: ../src/guestfs-actions.pod:3529
13188 msgid "guestfs_list_partitions"
13189 msgstr ""
13190
13191 # type: verbatim
13192 #. type: verbatim
13193 #: ../src/guestfs-actions.pod:3531
13194 #, no-wrap
13195 msgid ""
13196 " char **\n"
13197 " guestfs_list_partitions (guestfs_h *g);\n"
13198 "\n"
13199 msgstr ""
13200
13201 # type: textblock
13202 #. type: textblock
13203 #: ../src/guestfs-actions.pod:3534 ../fish/guestfish-actions.pod:2454
13204 msgid "List all the partitions detected on all block devices."
13205 msgstr ""
13206
13207 # type: textblock
13208 #. type: textblock
13209 #: ../src/guestfs-actions.pod:3536 ../fish/guestfish-actions.pod:2456
13210 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13211 msgstr ""
13212
13213 # type: textblock
13214 #. type: textblock
13215 #: ../src/guestfs-actions.pod:3538
13216 msgid ""
13217 "This does not return logical volumes.  For that you will need to call "
13218 "C<guestfs_lvs>."
13219 msgstr ""
13220
13221 # type: =head2
13222 #. type: =head2
13223 #: ../src/guestfs-actions.pod:3549
13224 msgid "guestfs_ll"
13225 msgstr ""
13226
13227 # type: verbatim
13228 #. type: verbatim
13229 #: ../src/guestfs-actions.pod:3551
13230 #, no-wrap
13231 msgid ""
13232 " char *\n"
13233 " guestfs_ll (guestfs_h *g,\n"
13234 "             const char *directory);\n"
13235 "\n"
13236 msgstr ""
13237
13238 # type: textblock
13239 #. type: textblock
13240 #: ../src/guestfs-actions.pod:3555 ../fish/guestfish-actions.pod:2467
13241 msgid ""
13242 "List the files in C<directory> (relative to the root directory, there is no "
13243 "cwd) in the format of 'ls -la'."
13244 msgstr ""
13245
13246 # type: textblock
13247 #. type: textblock
13248 #: ../src/guestfs-actions.pod:3558 ../fish/guestfish-actions.pod:2470
13249 msgid ""
13250 "This command is mostly useful for interactive sessions.  It is I<not> "
13251 "intended that you try to parse the output string."
13252 msgstr ""
13253
13254 # type: =head2
13255 #. type: =head2
13256 #: ../src/guestfs-actions.pod:3566
13257 msgid "guestfs_ln"
13258 msgstr ""
13259
13260 # type: verbatim
13261 #. type: verbatim
13262 #: ../src/guestfs-actions.pod:3568
13263 #, no-wrap
13264 msgid ""
13265 " int\n"
13266 " guestfs_ln (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:3573 ../fish/guestfish-actions.pod:2477
13275 msgid "This command creates a hard link using the C<ln> command."
13276 msgstr ""
13277
13278 # type: =head2
13279 #. type: =head2
13280 #: ../src/guestfs-actions.pod:3579
13281 msgid "guestfs_ln_f"
13282 msgstr ""
13283
13284 # type: verbatim
13285 #. type: verbatim
13286 #: ../src/guestfs-actions.pod:3581
13287 #, no-wrap
13288 msgid ""
13289 " int\n"
13290 " guestfs_ln_f (guestfs_h *g,\n"
13291 "               const char *target,\n"
13292 "               const char *linkname);\n"
13293 "\n"
13294 msgstr ""
13295
13296 # type: textblock
13297 #. type: textblock
13298 #: ../src/guestfs-actions.pod:3586 ../fish/guestfish-actions.pod:2483
13299 msgid ""
13300 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
13301 "option removes the link (C<linkname>) if it exists already."
13302 msgstr ""
13303
13304 # type: =head2
13305 #. type: =head2
13306 #: ../src/guestfs-actions.pod:3593
13307 msgid "guestfs_ln_s"
13308 msgstr ""
13309
13310 # type: verbatim
13311 #. type: verbatim
13312 #: ../src/guestfs-actions.pod:3595
13313 #, no-wrap
13314 msgid ""
13315 " int\n"
13316 " guestfs_ln_s (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:3600 ../fish/guestfish-actions.pod:2490
13325 msgid "This command creates a symbolic link using the C<ln -s> command."
13326 msgstr ""
13327
13328 # type: =head2
13329 #. type: =head2
13330 #: ../src/guestfs-actions.pod:3606
13331 msgid "guestfs_ln_sf"
13332 msgstr ""
13333
13334 # type: verbatim
13335 #. type: verbatim
13336 #: ../src/guestfs-actions.pod:3608
13337 #, no-wrap
13338 msgid ""
13339 " int\n"
13340 " guestfs_ln_sf (guestfs_h *g,\n"
13341 "                const char *target,\n"
13342 "                const char *linkname);\n"
13343 "\n"
13344 msgstr ""
13345
13346 # type: textblock
13347 #. type: textblock
13348 #: ../src/guestfs-actions.pod:3613 ../fish/guestfish-actions.pod:2496
13349 msgid ""
13350 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
13351 "option removes the link (C<linkname>) if it exists already."
13352 msgstr ""
13353
13354 # type: =head2
13355 #. type: =head2
13356 #: ../src/guestfs-actions.pod:3620
13357 msgid "guestfs_lremovexattr"
13358 msgstr ""
13359
13360 # type: verbatim
13361 #. type: verbatim
13362 #: ../src/guestfs-actions.pod:3622
13363 #, no-wrap
13364 msgid ""
13365 " int\n"
13366 " guestfs_lremovexattr (guestfs_h *g,\n"
13367 "                       const char *xattr,\n"
13368 "                       const char *path);\n"
13369 "\n"
13370 msgstr ""
13371
13372 # type: textblock
13373 #. type: textblock
13374 #: ../src/guestfs-actions.pod:3627
13375 msgid ""
13376 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13377 "link, then it removes an extended attribute of the link itself."
13378 msgstr ""
13379
13380 # type: =head2
13381 #. type: =head2
13382 #: ../src/guestfs-actions.pod:3635
13383 msgid "guestfs_ls"
13384 msgstr ""
13385
13386 # type: verbatim
13387 #. type: verbatim
13388 #: ../src/guestfs-actions.pod:3637
13389 #, no-wrap
13390 msgid ""
13391 " char **\n"
13392 " guestfs_ls (guestfs_h *g,\n"
13393 "             const char *directory);\n"
13394 "\n"
13395 msgstr ""
13396
13397 # type: textblock
13398 #. type: textblock
13399 #: ../src/guestfs-actions.pod:3641 ../fish/guestfish-actions.pod:2511
13400 msgid ""
13401 "List the files in C<directory> (relative to the root directory, there is no "
13402 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13403 msgstr ""
13404
13405 # type: textblock
13406 #. type: textblock
13407 #: ../src/guestfs-actions.pod:3645
13408 msgid ""
13409 "This command is mostly useful for interactive sessions.  Programs should "
13410 "probably use C<guestfs_readdir> instead."
13411 msgstr ""
13412
13413 # type: =head2
13414 #. type: =head2
13415 #: ../src/guestfs-actions.pod:3654
13416 msgid "guestfs_lsetxattr"
13417 msgstr ""
13418
13419 # type: verbatim
13420 #. type: verbatim
13421 #: ../src/guestfs-actions.pod:3656
13422 #, no-wrap
13423 msgid ""
13424 " int\n"
13425 " guestfs_lsetxattr (guestfs_h *g,\n"
13426 "                    const char *xattr,\n"
13427 "                    const char *val,\n"
13428 "                    int vallen,\n"
13429 "                    const char *path);\n"
13430 "\n"
13431 msgstr ""
13432
13433 # type: textblock
13434 #. type: textblock
13435 #: ../src/guestfs-actions.pod:3663
13436 msgid ""
13437 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13438 "then it sets an extended attribute of the link itself."
13439 msgstr ""
13440
13441 # type: =head2
13442 #. type: =head2
13443 #: ../src/guestfs-actions.pod:3671
13444 msgid "guestfs_lstat"
13445 msgstr ""
13446
13447 # type: verbatim
13448 #. type: verbatim
13449 #: ../src/guestfs-actions.pod:3673
13450 #, no-wrap
13451 msgid ""
13452 " struct guestfs_stat *\n"
13453 " guestfs_lstat (guestfs_h *g,\n"
13454 "                const char *path);\n"
13455 "\n"
13456 msgstr ""
13457
13458 # type: textblock
13459 #. type: textblock
13460 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:6235
13461 #: ../fish/guestfish-actions.pod:2530 ../fish/guestfish-actions.pod:4199
13462 msgid "Returns file information for the given C<path>."
13463 msgstr ""
13464
13465 # type: textblock
13466 #. type: textblock
13467 #: ../src/guestfs-actions.pod:3679
13468 msgid ""
13469 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13470 "link, then the link is stat-ed, not the file it refers to."
13471 msgstr ""
13472
13473 # type: textblock
13474 #. type: textblock
13475 #: ../src/guestfs-actions.pod:3683 ../fish/guestfish-actions.pod:2536
13476 msgid "This is the same as the C<lstat(2)> system call."
13477 msgstr ""
13478
13479 # type: textblock
13480 #. type: textblock
13481 #: ../src/guestfs-actions.pod:3685 ../src/guestfs-actions.pod:6239
13482 msgid ""
13483 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
13484 "error.  I<The caller must call C<guestfs_free_stat> after use>."
13485 msgstr ""
13486
13487 # type: textblock
13488 #. type: textblock
13489 #: ../src/guestfs-actions.pod:3689 ../src/guestfs-actions.pod:6243
13490 #: ../src/guestfs-actions.pod:6261 ../src/guestfs-actions.pod:6642
13491 msgid "(Added in 0.9.2)"
13492 msgstr ""
13493
13494 # type: =head2
13495 #. type: =head2
13496 #: ../src/guestfs-actions.pod:3691
13497 msgid "guestfs_lstatlist"
13498 msgstr ""
13499
13500 # type: verbatim
13501 #. type: verbatim
13502 #: ../src/guestfs-actions.pod:3693
13503 #, no-wrap
13504 msgid ""
13505 " struct guestfs_stat_list *\n"
13506 " guestfs_lstatlist (guestfs_h *g,\n"
13507 "                    const char *path,\n"
13508 "                    char *const *names);\n"
13509 "\n"
13510 msgstr ""
13511
13512 # type: textblock
13513 #. type: textblock
13514 #: ../src/guestfs-actions.pod:3698
13515 msgid ""
13516 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
13517 "files, where all files are in the directory C<path>.  C<names> is the list "
13518 "of files from this directory."
13519 msgstr ""
13520
13521 # type: textblock
13522 #. type: textblock
13523 #: ../src/guestfs-actions.pod:3702 ../fish/guestfish-actions.pod:2546
13524 msgid ""
13525 "On return you get a list of stat structs, with a one-to-one correspondence "
13526 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13527 "then the C<ino> field of that structure is set to C<-1>."
13528 msgstr ""
13529
13530 # type: textblock
13531 #. type: textblock
13532 #: ../src/guestfs-actions.pod:3707
13533 msgid ""
13534 "This call is intended for programs that want to efficiently list a directory "
13535 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
13536 "for a similarly efficient call for getting extended attributes.  Very long "
13537 "directory listings might cause the protocol message size to be exceeded, "
13538 "causing this call to fail.  The caller must split up such requests into "
13539 "smaller groups of names."
13540 msgstr ""
13541
13542 # type: textblock
13543 #. type: textblock
13544 #: ../src/guestfs-actions.pod:3715
13545 msgid ""
13546 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
13547 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
13548 msgstr ""
13549
13550 # type: =head2
13551 #. type: =head2
13552 #: ../src/guestfs-actions.pod:3721
13553 msgid "guestfs_luks_add_key"
13554 msgstr ""
13555
13556 # type: verbatim
13557 #. type: verbatim
13558 #: ../src/guestfs-actions.pod:3723
13559 #, no-wrap
13560 msgid ""
13561 " int\n"
13562 " guestfs_luks_add_key (guestfs_h *g,\n"
13563 "                       const char *device,\n"
13564 "                       const char *key,\n"
13565 "                       const char *newkey,\n"
13566 "                       int keyslot);\n"
13567 "\n"
13568 msgstr ""
13569
13570 # type: textblock
13571 #. type: textblock
13572 #: ../src/guestfs-actions.pod:3730 ../fish/guestfish-actions.pod:2563
13573 msgid ""
13574 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13575 "existing key, and is used to access the device.  C<newkey> is the new key to "
13576 "add.  C<keyslot> is the key slot that will be replaced."
13577 msgstr ""
13578
13579 # type: textblock
13580 #. type: textblock
13581 #: ../src/guestfs-actions.pod:3735
13582 msgid ""
13583 "Note that if C<keyslot> already contains a key, then this command will "
13584 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
13585 msgstr ""
13586
13587 # type: textblock
13588 #. type: textblock
13589 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3781
13590 #: ../src/guestfs-actions.pod:3804 ../src/guestfs-actions.pod:3824
13591 #: ../src/guestfs-actions.pod:3856 ../src/guestfs-actions.pod:3875
13592 msgid ""
13593 "This function takes a key or passphrase parameter which could contain "
13594 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
13595 "information."
13596 msgstr ""
13597
13598 # type: textblock
13599 #. type: textblock
13600 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3785
13601 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3828
13602 msgid "(Added in 1.5.2)"
13603 msgstr ""
13604
13605 # type: =head2
13606 #. type: =head2
13607 #: ../src/guestfs-actions.pod:3747
13608 msgid "guestfs_luks_close"
13609 msgstr ""
13610
13611 # type: verbatim
13612 #. type: verbatim
13613 #: ../src/guestfs-actions.pod:3749
13614 #, no-wrap
13615 msgid ""
13616 " int\n"
13617 " guestfs_luks_close (guestfs_h *g,\n"
13618 "                     const char *device);\n"
13619 "\n"
13620 msgstr ""
13621
13622 # type: textblock
13623 #. type: textblock
13624 #: ../src/guestfs-actions.pod:3753
13625 msgid ""
13626 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13627 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13628 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13629 "underlying block device."
13630 msgstr ""
13631
13632 # type: textblock
13633 #. type: textblock
13634 #: ../src/guestfs-actions.pod:3761 ../src/guestfs-actions.pod:3860
13635 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3929
13636 #: ../src/guestfs-actions.pod:3977
13637 msgid "(Added in 1.5.1)"
13638 msgstr ""
13639
13640 # type: =head2
13641 #. type: =head2
13642 #: ../src/guestfs-actions.pod:3763
13643 msgid "guestfs_luks_format"
13644 msgstr ""
13645
13646 # type: verbatim
13647 #. type: verbatim
13648 #: ../src/guestfs-actions.pod:3765
13649 #, no-wrap
13650 msgid ""
13651 " int\n"
13652 " guestfs_luks_format (guestfs_h *g,\n"
13653 "                      const char *device,\n"
13654 "                      const char *key,\n"
13655 "                      int keyslot);\n"
13656 "\n"
13657 msgstr ""
13658
13659 # type: textblock
13660 #. type: textblock
13661 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2589
13662 msgid ""
13663 "This command erases existing data on C<device> and formats the device as a "
13664 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13665 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13666 msgstr ""
13667
13668 # type: textblock
13669 #. type: textblock
13670 #: ../src/guestfs-actions.pod:3778 ../src/guestfs-actions.pod:3801
13671 #: ../src/guestfs-actions.pod:3941 ../src/guestfs-actions.pod:4883
13672 #: ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:6070
13673 #: ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6119
13674 #: ../src/guestfs-actions.pod:7279 ../fish/guestfish-actions.pod:2597
13675 #: ../fish/guestfish-actions.pod:2610 ../fish/guestfish-actions.pod:2694
13676 #: ../fish/guestfish-actions.pod:3268 ../fish/guestfish-actions.pod:3788
13677 #: ../fish/guestfish-actions.pod:4098 ../fish/guestfish-actions.pod:4114
13678 #: ../fish/guestfish-actions.pod:4129 ../fish/guestfish-actions.pod:4844
13679 msgid ""
13680 "B<This command is dangerous.  Without careful use you can easily destroy all "
13681 "your data>."
13682 msgstr ""
13683
13684 # type: =head2
13685 #. type: =head2
13686 #: ../src/guestfs-actions.pod:3787
13687 msgid "guestfs_luks_format_cipher"
13688 msgstr ""
13689
13690 # type: verbatim
13691 #. type: verbatim
13692 #: ../src/guestfs-actions.pod:3789
13693 #, no-wrap
13694 msgid ""
13695 " int\n"
13696 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13697 "                             const char *device,\n"
13698 "                             const char *key,\n"
13699 "                             int keyslot,\n"
13700 "                             const char *cipher);\n"
13701 "\n"
13702 msgstr ""
13703
13704 # type: textblock
13705 #. type: textblock
13706 #: ../src/guestfs-actions.pod:3796
13707 msgid ""
13708 "This command is the same as C<guestfs_luks_format> but it also allows you to "
13709 "set the C<cipher> used."
13710 msgstr ""
13711
13712 # type: =head2
13713 #. type: =head2
13714 #: ../src/guestfs-actions.pod:3810
13715 msgid "guestfs_luks_kill_slot"
13716 msgstr ""
13717
13718 # type: verbatim
13719 #. type: verbatim
13720 #: ../src/guestfs-actions.pod:3812
13721 #, no-wrap
13722 msgid ""
13723 " int\n"
13724 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13725 "                         const char *device,\n"
13726 "                         const char *key,\n"
13727 "                         int keyslot);\n"
13728 "\n"
13729 msgstr ""
13730
13731 # type: textblock
13732 #. type: textblock
13733 #: ../src/guestfs-actions.pod:3818 ../fish/guestfish-actions.pod:2617
13734 msgid ""
13735 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13736 "device C<device>.  C<key> must be one of the I<other> keys."
13737 msgstr ""
13738
13739 # type: =head2
13740 #. type: =head2
13741 #: ../src/guestfs-actions.pod:3830
13742 msgid "guestfs_luks_open"
13743 msgstr ""
13744
13745 # type: verbatim
13746 #. type: verbatim
13747 #: ../src/guestfs-actions.pod:3832
13748 #, no-wrap
13749 msgid ""
13750 " int\n"
13751 " guestfs_luks_open (guestfs_h *g,\n"
13752 "                    const char *device,\n"
13753 "                    const char *key,\n"
13754 "                    const char *mapname);\n"
13755 "\n"
13756 msgstr ""
13757
13758 # type: textblock
13759 #. type: textblock
13760 #: ../src/guestfs-actions.pod:3838 ../fish/guestfish-actions.pod:2628
13761 msgid ""
13762 "This command opens a block device which has been encrypted according to the "
13763 "Linux Unified Key Setup (LUKS) standard."
13764 msgstr ""
13765
13766 # type: textblock
13767 #. type: textblock
13768 #: ../src/guestfs-actions.pod:3841 ../fish/guestfish-actions.pod:2631
13769 msgid "C<device> is the encrypted block device or partition."
13770 msgstr ""
13771
13772 # type: textblock
13773 #. type: textblock
13774 #: ../src/guestfs-actions.pod:3843 ../fish/guestfish-actions.pod:2633
13775 msgid ""
13776 "The caller must supply one of the keys associated with the LUKS block "
13777 "device, in the C<key> parameter."
13778 msgstr ""
13779
13780 # type: textblock
13781 #. type: textblock
13782 #: ../src/guestfs-actions.pod:3846 ../fish/guestfish-actions.pod:2636
13783 msgid ""
13784 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13785 "writes to this block device are decrypted from and encrypted to the "
13786 "underlying C<device> respectively."
13787 msgstr ""
13788
13789 # type: textblock
13790 #. type: textblock
13791 #: ../src/guestfs-actions.pod:3850
13792 msgid ""
13793 "If this block device contains LVM volume groups, then calling "
13794 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13795 "visible."
13796 msgstr ""
13797
13798 # type: =head2
13799 #. type: =head2
13800 #: ../src/guestfs-actions.pod:3862
13801 msgid "guestfs_luks_open_ro"
13802 msgstr ""
13803
13804 # type: verbatim
13805 #. type: verbatim
13806 #: ../src/guestfs-actions.pod:3864
13807 #, no-wrap
13808 msgid ""
13809 " int\n"
13810 " guestfs_luks_open_ro (guestfs_h *g,\n"
13811 "                       const char *device,\n"
13812 "                       const char *key,\n"
13813 "                       const char *mapname);\n"
13814 "\n"
13815 msgstr ""
13816
13817 # type: textblock
13818 #. type: textblock
13819 #: ../src/guestfs-actions.pod:3870
13820 msgid ""
13821 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13822 "created."
13823 msgstr ""
13824
13825 # type: =head2
13826 #. type: =head2
13827 #: ../src/guestfs-actions.pod:3881
13828 msgid "guestfs_lvcreate"
13829 msgstr ""
13830
13831 # type: verbatim
13832 #. type: verbatim
13833 #: ../src/guestfs-actions.pod:3883
13834 #, no-wrap
13835 msgid ""
13836 " int\n"
13837 " guestfs_lvcreate (guestfs_h *g,\n"
13838 "                   const char *logvol,\n"
13839 "                   const char *volgroup,\n"
13840 "                   int mbytes);\n"
13841 "\n"
13842 msgstr ""
13843
13844 # type: textblock
13845 #. type: textblock
13846 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2661
13847 msgid ""
13848 "This creates an LVM logical volume called C<logvol> on the volume group "
13849 "C<volgroup>, with C<size> megabytes."
13850 msgstr ""
13851
13852 # type: =head2
13853 #. type: =head2
13854 #: ../src/guestfs-actions.pod:3896
13855 msgid "guestfs_lvm_canonical_lv_name"
13856 msgstr ""
13857
13858 # type: verbatim
13859 #. type: verbatim
13860 #: ../src/guestfs-actions.pod:3898
13861 #, no-wrap
13862 msgid ""
13863 " char *\n"
13864 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13865 "                                const char *lvname);\n"
13866 "\n"
13867 msgstr ""
13868
13869 # type: textblock
13870 #. type: textblock
13871 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2668
13872 msgid ""
13873 "This converts alternative naming schemes for LVs that you might find to the "
13874 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13875 "LV>."
13876 msgstr ""
13877
13878 # type: textblock
13879 #. type: textblock
13880 #: ../src/guestfs-actions.pod:3906 ../fish/guestfish-actions.pod:2672
13881 msgid ""
13882 "This command returns an error if the C<lvname> parameter does not refer to a "
13883 "logical volume."
13884 msgstr ""
13885
13886 # type: textblock
13887 #. type: textblock
13888 #: ../src/guestfs-actions.pod:3909
13889 msgid "See also C<guestfs_is_lv>."
13890 msgstr ""
13891
13892 # type: textblock
13893 #. type: textblock
13894 #: ../src/guestfs-actions.pod:3914
13895 msgid "(Added in 1.5.24)"
13896 msgstr ""
13897
13898 # type: =head2
13899 #. type: =head2
13900 #: ../src/guestfs-actions.pod:3916
13901 msgid "guestfs_lvm_clear_filter"
13902 msgstr ""
13903
13904 # type: verbatim
13905 #. type: verbatim
13906 #: ../src/guestfs-actions.pod:3918
13907 #, no-wrap
13908 msgid ""
13909 " int\n"
13910 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13911 "\n"
13912 msgstr ""
13913
13914 # type: textblock
13915 #. type: textblock
13916 #: ../src/guestfs-actions.pod:3921
13917 msgid ""
13918 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13919 "see every block device."
13920 msgstr ""
13921
13922 # type: textblock
13923 #. type: textblock
13924 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3966
13925 #: ../fish/guestfish-actions.pod:2684 ../fish/guestfish-actions.pod:2715
13926 msgid ""
13927 "This command also clears the LVM cache and performs a volume group scan."
13928 msgstr ""
13929
13930 # type: =head2
13931 #. type: =head2
13932 #: ../src/guestfs-actions.pod:3931
13933 msgid "guestfs_lvm_remove_all"
13934 msgstr ""
13935
13936 # type: verbatim
13937 #. type: verbatim
13938 #: ../src/guestfs-actions.pod:3933
13939 #, no-wrap
13940 msgid ""
13941 " int\n"
13942 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13943 "\n"
13944 msgstr ""
13945
13946 # type: textblock
13947 #. type: textblock
13948 #: ../src/guestfs-actions.pod:3936 ../fish/guestfish-actions.pod:2691
13949 msgid ""
13950 "This command removes all LVM logical volumes, volume groups and physical "
13951 "volumes."
13952 msgstr ""
13953
13954 # type: =head2
13955 #. type: =head2
13956 #: ../src/guestfs-actions.pod:3946
13957 msgid "guestfs_lvm_set_filter"
13958 msgstr ""
13959
13960 # type: verbatim
13961 #. type: verbatim
13962 #: ../src/guestfs-actions.pod:3948
13963 #, no-wrap
13964 msgid ""
13965 " int\n"
13966 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13967 "                         char *const *devices);\n"
13968 "\n"
13969 msgstr ""
13970
13971 # type: textblock
13972 #. type: textblock
13973 #: ../src/guestfs-actions.pod:3952 ../fish/guestfish-actions.pod:2701
13974 msgid ""
13975 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13976 "block devices in the list C<devices>, and will ignore all other attached "
13977 "block devices."
13978 msgstr ""
13979
13980 # type: textblock
13981 #. type: textblock
13982 #: ../src/guestfs-actions.pod:3956 ../fish/guestfish-actions.pod:2705
13983 msgid ""
13984 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13985 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13986 "there are two types of duplication possible: either cloned PVs/VGs which "
13987 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13988 "same name.  In normal operation you cannot create this situation, but you "
13989 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13990 "inside the LVM metadata."
13991 msgstr ""
13992
13993 # type: textblock
13994 #. type: textblock
13995 #: ../src/guestfs-actions.pod:3969 ../fish/guestfish-actions.pod:2718
13996 msgid "You can filter whole block devices or individual partitions."
13997 msgstr ""
13998
13999 # type: textblock
14000 #. type: textblock
14001 #: ../src/guestfs-actions.pod:3971 ../fish/guestfish-actions.pod:2720
14002 msgid ""
14003 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
14004 "filesystem), even if you are not filtering out that VG."
14005 msgstr ""
14006
14007 # type: =head2
14008 #. type: =head2
14009 #: ../src/guestfs-actions.pod:3979
14010 msgid "guestfs_lvremove"
14011 msgstr ""
14012
14013 # type: verbatim
14014 #. type: verbatim
14015 #: ../src/guestfs-actions.pod:3981
14016 #, no-wrap
14017 msgid ""
14018 " int\n"
14019 " guestfs_lvremove (guestfs_h *g,\n"
14020 "                   const char *device);\n"
14021 "\n"
14022 msgstr ""
14023
14024 # type: textblock
14025 #. type: textblock
14026 #: ../src/guestfs-actions.pod:3985 ../fish/guestfish-actions.pod:2728
14027 msgid ""
14028 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
14029 "LV, such as C</dev/VG/LV>."
14030 msgstr ""
14031
14032 # type: textblock
14033 #. type: textblock
14034 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2731
14035 msgid ""
14036 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14037 "dev/VG>."
14038 msgstr ""
14039
14040 # type: textblock
14041 #. type: textblock
14042 #: ../src/guestfs-actions.pod:3993 ../src/guestfs-actions.pod:5229
14043 #: ../src/guestfs-actions.pod:7018
14044 msgid "(Added in 1.0.13)"
14045 msgstr ""
14046
14047 # type: =head2
14048 #. type: =head2
14049 #: ../src/guestfs-actions.pod:3995
14050 msgid "guestfs_lvrename"
14051 msgstr ""
14052
14053 # type: verbatim
14054 #. type: verbatim
14055 #: ../src/guestfs-actions.pod:3997
14056 #, no-wrap
14057 msgid ""
14058 " int\n"
14059 " guestfs_lvrename (guestfs_h *g,\n"
14060 "                   const char *logvol,\n"
14061 "                   const char *newlogvol);\n"
14062 "\n"
14063 msgstr ""
14064
14065 # type: textblock
14066 #. type: textblock
14067 #: ../src/guestfs-actions.pod:4002 ../fish/guestfish-actions.pod:2738
14068 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14069 msgstr ""
14070
14071 # type: textblock
14072 #. type: textblock
14073 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:7031
14074 msgid "(Added in 1.0.83)"
14075 msgstr ""
14076
14077 # type: =head2
14078 #. type: =head2
14079 #: ../src/guestfs-actions.pod:4008
14080 msgid "guestfs_lvresize"
14081 msgstr ""
14082
14083 # type: verbatim
14084 #. type: verbatim
14085 #: ../src/guestfs-actions.pod:4010
14086 #, no-wrap
14087 msgid ""
14088 " int\n"
14089 " guestfs_lvresize (guestfs_h *g,\n"
14090 "                   const char *device,\n"
14091 "                   int mbytes);\n"
14092 "\n"
14093 msgstr ""
14094
14095 # type: textblock
14096 #. type: textblock
14097 #: ../src/guestfs-actions.pod:4015 ../fish/guestfish-actions.pod:2744
14098 msgid ""
14099 "This resizes (expands or shrinks) an existing LVM logical volume to "
14100 "C<mbytes>.  When reducing, data in the reduced part is lost."
14101 msgstr ""
14102
14103 # type: =head2
14104 #. type: =head2
14105 #: ../src/guestfs-actions.pod:4023
14106 msgid "guestfs_lvresize_free"
14107 msgstr ""
14108
14109 # type: verbatim
14110 #. type: verbatim
14111 #: ../src/guestfs-actions.pod:4025
14112 #, no-wrap
14113 msgid ""
14114 " int\n"
14115 " guestfs_lvresize_free (guestfs_h *g,\n"
14116 "                        const char *lv,\n"
14117 "                        int percent);\n"
14118 "\n"
14119 msgstr ""
14120
14121 # type: textblock
14122 #. type: textblock
14123 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2752
14124 msgid ""
14125 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14126 "remaining free space in the volume group.  Commonly you would call this with "
14127 "pc = 100 which expands the logical volume as much as possible, using all "
14128 "remaining free space in the volume group."
14129 msgstr ""
14130
14131 # type: textblock
14132 #. type: textblock
14133 #: ../src/guestfs-actions.pod:4038
14134 msgid "(Added in 1.3.3)"
14135 msgstr ""
14136
14137 # type: =head2
14138 #. type: =head2
14139 #: ../src/guestfs-actions.pod:4040
14140 msgid "guestfs_lvs"
14141 msgstr ""
14142
14143 # type: verbatim
14144 #. type: verbatim
14145 #: ../src/guestfs-actions.pod:4042
14146 #, no-wrap
14147 msgid ""
14148 " char **\n"
14149 " guestfs_lvs (guestfs_h *g);\n"
14150 "\n"
14151 msgstr ""
14152
14153 # type: textblock
14154 #. type: textblock
14155 #: ../src/guestfs-actions.pod:4045 ../fish/guestfish-actions.pod:2762
14156 msgid ""
14157 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14158 "(8)> command."
14159 msgstr ""
14160
14161 # type: textblock
14162 #. type: textblock
14163 #: ../src/guestfs-actions.pod:4048 ../fish/guestfish-actions.pod:2765
14164 msgid ""
14165 "This returns a list of the logical volume device names (eg. C</dev/"
14166 "VolGroup00/LogVol00>)."
14167 msgstr ""
14168
14169 # type: textblock
14170 #. type: textblock
14171 #: ../src/guestfs-actions.pod:4051
14172 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14173 msgstr ""
14174
14175 # type: =head2
14176 #. type: =head2
14177 #: ../src/guestfs-actions.pod:4059
14178 msgid "guestfs_lvs_full"
14179 msgstr ""
14180
14181 # type: verbatim
14182 #. type: verbatim
14183 #: ../src/guestfs-actions.pod:4061
14184 #, no-wrap
14185 msgid ""
14186 " struct guestfs_lvm_lv_list *\n"
14187 " guestfs_lvs_full (guestfs_h *g);\n"
14188 "\n"
14189 msgstr ""
14190
14191 # type: textblock
14192 #. type: textblock
14193 #: ../src/guestfs-actions.pod:4064 ../fish/guestfish-actions.pod:2774
14194 msgid ""
14195 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14196 "(8)> command.  The \"full\" version includes all fields."
14197 msgstr ""
14198
14199 # type: textblock
14200 #. type: textblock
14201 #: ../src/guestfs-actions.pod:4067
14202 msgid ""
14203 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14204 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14205 msgstr ""
14206
14207 # type: =head2
14208 #. type: =head2
14209 #: ../src/guestfs-actions.pod:4073
14210 msgid "guestfs_lvuuid"
14211 msgstr ""
14212
14213 # type: verbatim
14214 #. type: verbatim
14215 #: ../src/guestfs-actions.pod:4075
14216 #, no-wrap
14217 msgid ""
14218 " char *\n"
14219 " guestfs_lvuuid (guestfs_h *g,\n"
14220 "                 const char *device);\n"
14221 "\n"
14222 msgstr ""
14223
14224 # type: textblock
14225 #. type: textblock
14226 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2781
14227 msgid "This command returns the UUID of the LVM LV C<device>."
14228 msgstr ""
14229
14230 # type: =head2
14231 #. type: =head2
14232 #: ../src/guestfs-actions.pod:4086
14233 msgid "guestfs_lxattrlist"
14234 msgstr ""
14235
14236 # type: verbatim
14237 #. type: verbatim
14238 #: ../src/guestfs-actions.pod:4088
14239 #, no-wrap
14240 msgid ""
14241 " struct guestfs_xattr_list *\n"
14242 " guestfs_lxattrlist (guestfs_h *g,\n"
14243 "                     const char *path,\n"
14244 "                     char *const *names);\n"
14245 "\n"
14246 msgstr ""
14247
14248 # type: textblock
14249 #. type: textblock
14250 #: ../src/guestfs-actions.pod:4093 ../fish/guestfish-actions.pod:2787
14251 msgid ""
14252 "This call allows you to get the extended attributes of multiple files, where "
14253 "all files are in the directory C<path>.  C<names> is the list of files from "
14254 "this directory."
14255 msgstr ""
14256
14257 # type: textblock
14258 #. type: textblock
14259 #: ../src/guestfs-actions.pod:4097 ../fish/guestfish-actions.pod:2791
14260 msgid ""
14261 "On return you get a flat list of xattr structs which must be interpreted "
14262 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14263 "C<attrval> in this struct is zero-length to indicate there was an error "
14264 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14265 "number (the number of following attributes for this file, which could be C<"
14266 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14267 "for the first named file.  This repeats for the second and subsequent files."
14268 msgstr ""
14269
14270 # type: textblock
14271 #. type: textblock
14272 #: ../src/guestfs-actions.pod:4107
14273 msgid ""
14274 "This call is intended for programs that want to efficiently list a directory "
14275 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14276 "a similarly efficient call for getting standard stats.  Very long directory "
14277 "listings might cause the protocol message size to be exceeded, causing this "
14278 "call to fail.  The caller must split up such requests into smaller groups of "
14279 "names."
14280 msgstr ""
14281
14282 # type: =head2
14283 #. type: =head2
14284 #: ../src/guestfs-actions.pod:4121
14285 msgid "guestfs_mkdir"
14286 msgstr ""
14287
14288 # type: verbatim
14289 #. type: verbatim
14290 #: ../src/guestfs-actions.pod:4123
14291 #, no-wrap
14292 msgid ""
14293 " int\n"
14294 " guestfs_mkdir (guestfs_h *g,\n"
14295 "                const char *path);\n"
14296 "\n"
14297 msgstr ""
14298
14299 # type: textblock
14300 #. type: textblock
14301 #: ../src/guestfs-actions.pod:4127 ../fish/guestfish-actions.pod:2813
14302 msgid "Create a directory named C<path>."
14303 msgstr ""
14304
14305 # type: =head2
14306 #. type: =head2
14307 #: ../src/guestfs-actions.pod:4133
14308 msgid "guestfs_mkdir_mode"
14309 msgstr ""
14310
14311 # type: verbatim
14312 #. type: verbatim
14313 #: ../src/guestfs-actions.pod:4135
14314 #, no-wrap
14315 msgid ""
14316 " int\n"
14317 " guestfs_mkdir_mode (guestfs_h *g,\n"
14318 "                     const char *path,\n"
14319 "                     int mode);\n"
14320 "\n"
14321 msgstr ""
14322
14323 # type: textblock
14324 #. type: textblock
14325 #: ../src/guestfs-actions.pod:4140 ../fish/guestfish-actions.pod:2819
14326 msgid ""
14327 "This command creates a directory, setting the initial permissions of the "
14328 "directory to C<mode>."
14329 msgstr ""
14330
14331 # type: textblock
14332 #. type: textblock
14333 #: ../src/guestfs-actions.pod:4143 ../fish/guestfish-actions.pod:2822
14334 msgid ""
14335 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14336 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14337 "other ways."
14338 msgstr ""
14339
14340 # type: textblock
14341 #. type: textblock
14342 #: ../src/guestfs-actions.pod:4147
14343 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14344 msgstr ""
14345
14346 # type: =head2
14347 #. type: =head2
14348 #: ../src/guestfs-actions.pod:4153
14349 msgid "guestfs_mkdir_p"
14350 msgstr ""
14351
14352 # type: verbatim
14353 #. type: verbatim
14354 #: ../src/guestfs-actions.pod:4155
14355 #, no-wrap
14356 msgid ""
14357 " int\n"
14358 " guestfs_mkdir_p (guestfs_h *g,\n"
14359 "                  const char *path);\n"
14360 "\n"
14361 msgstr ""
14362
14363 # type: textblock
14364 #. type: textblock
14365 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2832
14366 msgid ""
14367 "Create a directory named C<path>, creating any parent directories as "
14368 "necessary.  This is like the C<mkdir -p> shell command."
14369 msgstr ""
14370
14371 # type: =head2
14372 #. type: =head2
14373 #: ../src/guestfs-actions.pod:4166
14374 msgid "guestfs_mkdtemp"
14375 msgstr ""
14376
14377 # type: verbatim
14378 #. type: verbatim
14379 #: ../src/guestfs-actions.pod:4168
14380 #, no-wrap
14381 msgid ""
14382 " char *\n"
14383 " guestfs_mkdtemp (guestfs_h *g,\n"
14384 "                  const char *template);\n"
14385 "\n"
14386 msgstr ""
14387
14388 # type: textblock
14389 #. type: textblock
14390 #: ../src/guestfs-actions.pod:4172 ../fish/guestfish-actions.pod:2839
14391 msgid ""
14392 "This command creates a temporary directory.  The C<template> parameter "
14393 "should be a full pathname for the temporary directory name with the final "
14394 "six characters being \"XXXXXX\"."
14395 msgstr ""
14396
14397 # type: textblock
14398 #. type: textblock
14399 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2844
14400 msgid ""
14401 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14402 "being suitable for Windows filesystems."
14403 msgstr ""
14404
14405 # type: textblock
14406 #. type: textblock
14407 #: ../src/guestfs-actions.pod:4180 ../fish/guestfish-actions.pod:2847
14408 msgid "The name of the temporary directory that was created is returned."
14409 msgstr ""
14410
14411 # type: textblock
14412 #. type: textblock
14413 #: ../src/guestfs-actions.pod:4183 ../fish/guestfish-actions.pod:2850
14414 msgid "The temporary directory is created with mode 0700 and is owned by root."
14415 msgstr ""
14416
14417 # type: textblock
14418 #. type: textblock
14419 #: ../src/guestfs-actions.pod:4186 ../fish/guestfish-actions.pod:2853
14420 msgid ""
14421 "The caller is responsible for deleting the temporary directory and its "
14422 "contents after use."
14423 msgstr ""
14424
14425 # type: textblock
14426 #. type: textblock
14427 #: ../src/guestfs-actions.pod:4189 ../fish/guestfish-actions.pod:2856
14428 msgid "See also: L<mkdtemp(3)>"
14429 msgstr ""
14430
14431 # type: =head2
14432 #. type: =head2
14433 #: ../src/guestfs-actions.pod:4196
14434 msgid "guestfs_mke2fs_J"
14435 msgstr ""
14436
14437 # type: verbatim
14438 #. type: verbatim
14439 #: ../src/guestfs-actions.pod:4198
14440 #, no-wrap
14441 msgid ""
14442 " int\n"
14443 " guestfs_mke2fs_J (guestfs_h *g,\n"
14444 "                   const char *fstype,\n"
14445 "                   int blocksize,\n"
14446 "                   const char *device,\n"
14447 "                   const char *journal);\n"
14448 "\n"
14449 msgstr ""
14450
14451 # type: textblock
14452 #. type: textblock
14453 #: ../src/guestfs-actions.pod:4205 ../fish/guestfish-actions.pod:2862
14454 msgid ""
14455 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14456 "C<journal>.  It is equivalent to the command:"
14457 msgstr ""
14458
14459 # type: verbatim
14460 #. type: verbatim
14461 #: ../src/guestfs-actions.pod:4209 ../fish/guestfish-actions.pod:2866
14462 #, no-wrap
14463 msgid ""
14464 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14465 "\n"
14466 msgstr ""
14467
14468 # type: textblock
14469 #. type: textblock
14470 #: ../src/guestfs-actions.pod:4211
14471 msgid "See also C<guestfs_mke2journal>."
14472 msgstr ""
14473
14474 # type: textblock
14475 #. type: textblock
14476 #: ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4233
14477 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4267
14478 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4295
14479 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4619
14480 msgid "(Added in 1.0.68)"
14481 msgstr ""
14482
14483 # type: =head2
14484 #. type: =head2
14485 #: ../src/guestfs-actions.pod:4217
14486 msgid "guestfs_mke2fs_JL"
14487 msgstr ""
14488
14489 # type: verbatim
14490 #. type: verbatim
14491 #: ../src/guestfs-actions.pod:4219
14492 #, no-wrap
14493 msgid ""
14494 " int\n"
14495 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14496 "                    const char *fstype,\n"
14497 "                    int blocksize,\n"
14498 "                    const char *device,\n"
14499 "                    const char *label);\n"
14500 "\n"
14501 msgstr ""
14502
14503 # type: textblock
14504 #. type: textblock
14505 #: ../src/guestfs-actions.pod:4226 ../fish/guestfish-actions.pod:2874
14506 msgid ""
14507 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14508 "the journal labeled C<label>."
14509 msgstr ""
14510
14511 # type: textblock
14512 #. type: textblock
14513 #: ../src/guestfs-actions.pod:4229
14514 msgid "See also C<guestfs_mke2journal_L>."
14515 msgstr ""
14516
14517 # type: =head2
14518 #. type: =head2
14519 #: ../src/guestfs-actions.pod:4235
14520 msgid "guestfs_mke2fs_JU"
14521 msgstr ""
14522
14523 # type: verbatim
14524 #. type: verbatim
14525 #: ../src/guestfs-actions.pod:4237
14526 #, no-wrap
14527 msgid ""
14528 " int\n"
14529 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14530 "                    const char *fstype,\n"
14531 "                    int blocksize,\n"
14532 "                    const char *device,\n"
14533 "                    const char *uuid);\n"
14534 "\n"
14535 msgstr ""
14536
14537 # type: textblock
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:4244 ../fish/guestfish-actions.pod:2883
14540 msgid ""
14541 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14542 "the journal with UUID C<uuid>."
14543 msgstr ""
14544
14545 # type: textblock
14546 #. type: textblock
14547 #: ../src/guestfs-actions.pod:4247
14548 msgid "See also C<guestfs_mke2journal_U>."
14549 msgstr ""
14550
14551 # type: =head2
14552 #. type: =head2
14553 #: ../src/guestfs-actions.pod:4253
14554 msgid "guestfs_mke2journal"
14555 msgstr ""
14556
14557 # type: verbatim
14558 #. type: verbatim
14559 #: ../src/guestfs-actions.pod:4255
14560 #, no-wrap
14561 msgid ""
14562 " int\n"
14563 " guestfs_mke2journal (guestfs_h *g,\n"
14564 "                      int blocksize,\n"
14565 "                      const char *device);\n"
14566 "\n"
14567 msgstr ""
14568
14569 # type: textblock
14570 #. type: textblock
14571 #: ../src/guestfs-actions.pod:4260 ../fish/guestfish-actions.pod:2892
14572 msgid ""
14573 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14574 "command:"
14575 msgstr ""
14576
14577 # type: verbatim
14578 #. type: verbatim
14579 #: ../src/guestfs-actions.pod:4263 ../fish/guestfish-actions.pod:2895
14580 #, no-wrap
14581 msgid ""
14582 " mke2fs -O journal_dev -b blocksize device\n"
14583 "\n"
14584 msgstr ""
14585
14586 # type: =head2
14587 #. type: =head2
14588 #: ../src/guestfs-actions.pod:4269
14589 msgid "guestfs_mke2journal_L"
14590 msgstr ""
14591
14592 # type: verbatim
14593 #. type: verbatim
14594 #: ../src/guestfs-actions.pod:4271
14595 #, no-wrap
14596 msgid ""
14597 " int\n"
14598 " guestfs_mke2journal_L (guestfs_h *g,\n"
14599 "                        int blocksize,\n"
14600 "                        const char *label,\n"
14601 "                        const char *device);\n"
14602 "\n"
14603 msgstr ""
14604
14605 # type: textblock
14606 #. type: textblock
14607 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:2901
14608 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14609 msgstr ""
14610
14611 # type: =head2
14612 #. type: =head2
14613 #: ../src/guestfs-actions.pod:4283
14614 msgid "guestfs_mke2journal_U"
14615 msgstr ""
14616
14617 # type: verbatim
14618 #. type: verbatim
14619 #: ../src/guestfs-actions.pod:4285
14620 #, no-wrap
14621 msgid ""
14622 " int\n"
14623 " guestfs_mke2journal_U (guestfs_h *g,\n"
14624 "                        int blocksize,\n"
14625 "                        const char *uuid,\n"
14626 "                        const char *device);\n"
14627 "\n"
14628 msgstr ""
14629
14630 # type: textblock
14631 #. type: textblock
14632 #: ../src/guestfs-actions.pod:4291 ../fish/guestfish-actions.pod:2907
14633 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14634 msgstr ""
14635
14636 # type: =head2
14637 #. type: =head2
14638 #: ../src/guestfs-actions.pod:4297
14639 msgid "guestfs_mkfifo"
14640 msgstr ""
14641
14642 # type: verbatim
14643 #. type: verbatim
14644 #: ../src/guestfs-actions.pod:4299
14645 #, no-wrap
14646 msgid ""
14647 " int\n"
14648 " guestfs_mkfifo (guestfs_h *g,\n"
14649 "                 int mode,\n"
14650 "                 const char *path);\n"
14651 "\n"
14652 msgstr ""
14653
14654 # type: textblock
14655 #. type: textblock
14656 #: ../src/guestfs-actions.pod:4304
14657 msgid ""
14658 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14659 "is just a convenient wrapper around C<guestfs_mknod>."
14660 msgstr ""
14661
14662 # type: =head2
14663 #. type: =head2
14664 #: ../src/guestfs-actions.pod:4314
14665 msgid "guestfs_mkfs"
14666 msgstr ""
14667
14668 # type: verbatim
14669 #. type: verbatim
14670 #: ../src/guestfs-actions.pod:4316
14671 #, no-wrap
14672 msgid ""
14673 " int\n"
14674 " guestfs_mkfs (guestfs_h *g,\n"
14675 "               const char *fstype,\n"
14676 "               const char *device);\n"
14677 "\n"
14678 msgstr ""
14679
14680 # type: textblock
14681 #. type: textblock
14682 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:2923
14683 msgid ""
14684 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14685 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14686 msgstr ""
14687
14688 # type: =head2
14689 #. type: =head2
14690 #: ../src/guestfs-actions.pod:4329
14691 msgid "guestfs_mkfs_b"
14692 msgstr ""
14693
14694 # type: verbatim
14695 #. type: verbatim
14696 #: ../src/guestfs-actions.pod:4331
14697 #, no-wrap
14698 msgid ""
14699 " int\n"
14700 " guestfs_mkfs_b (guestfs_h *g,\n"
14701 "                 const char *fstype,\n"
14702 "                 int blocksize,\n"
14703 "                 const char *device);\n"
14704 "\n"
14705 msgstr ""
14706
14707 # type: textblock
14708 #. type: textblock
14709 #: ../src/guestfs-actions.pod:4337
14710 msgid ""
14711 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14712 "block size of the resulting filesystem.  Supported block sizes depend on the "
14713 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14714 msgstr ""
14715
14716 # type: textblock
14717 #. type: textblock
14718 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4385
14719 #: ../fish/guestfish-actions.pod:2936 ../fish/guestfish-actions.pod:2963
14720 msgid ""
14721 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14722 "cluster size."
14723 msgstr ""
14724
14725 # type: textblock
14726 #. type: textblock
14727 #: ../src/guestfs-actions.pod:4347 ../fish/guestfish-actions.pod:2939
14728 msgid ""
14729 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
14730 msgstr ""
14731
14732 # type: =head2
14733 #. type: =head2
14734 #: ../src/guestfs-actions.pod:4356
14735 msgid "guestfs_mkfs_opts"
14736 msgstr ""
14737
14738 # type: verbatim
14739 #. type: verbatim
14740 #: ../src/guestfs-actions.pod:4358
14741 #, no-wrap
14742 msgid ""
14743 " int\n"
14744 " guestfs_mkfs_opts (guestfs_h *g,\n"
14745 "                    const char *fstype,\n"
14746 "                    const char *device,\n"
14747 "                    ...);\n"
14748 "\n"
14749 msgstr ""
14750
14751 #. type: verbatim
14752 #: ../src/guestfs-actions.pod:4369
14753 #, no-wrap
14754 msgid ""
14755 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14756 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
14757 "\n"
14758 msgstr ""
14759
14760 # type: textblock
14761 #. type: textblock
14762 #: ../src/guestfs-actions.pod:4372 ../fish/guestfish-actions.pod:2950
14763 msgid ""
14764 "This function creates a filesystem on C<device>.  The filesystem type is "
14765 "C<fstype>, for example C<ext3>."
14766 msgstr ""
14767
14768 # type: =item
14769 #. type: =item
14770 #: ../src/guestfs-actions.pod:4379 ../fish/guestfish-actions.pod:2957
14771 msgid "C<blocksize>"
14772 msgstr ""
14773
14774 # type: textblock
14775 #. type: textblock
14776 #: ../src/guestfs-actions.pod:4381 ../fish/guestfish-actions.pod:2959
14777 msgid ""
14778 "The filesystem block size.  Supported block sizes depend on the filesystem "
14779 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14780 "filesystems."
14781 msgstr ""
14782
14783 #. type: textblock
14784 #: ../src/guestfs-actions.pod:4388 ../fish/guestfish-actions.pod:2966
14785 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14786 msgstr ""
14787
14788 #. type: =item
14789 #: ../src/guestfs-actions.pod:4390 ../fish/guestfish-actions.pod:2968
14790 msgid "C<features>"
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../src/guestfs-actions.pod:4392 ../fish/guestfish-actions.pod:2970
14795 msgid "This passes the C<-O> parameter to the external mkfs program."
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../src/guestfs-actions.pod:4394 ../fish/guestfish-actions.pod:2972
14800 msgid ""
14801 "For certain filesystem types, this allows extra filesystem features to be "
14802 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14803 msgstr ""
14804
14805 #. type: textblock
14806 #: ../src/guestfs-actions.pod:4398 ../fish/guestfish-actions.pod:2976
14807 msgid ""
14808 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14809 "type."
14810 msgstr ""
14811
14812 #. type: textblock
14813 #: ../src/guestfs-actions.pod:4405
14814 msgid "(Added in 1.7.19)"
14815 msgstr ""
14816
14817 # type: =head2
14818 #. type: =head2
14819 #: ../src/guestfs-actions.pod:4407
14820 msgid "guestfs_mkfs_opts_va"
14821 msgstr ""
14822
14823 # type: verbatim
14824 #. type: verbatim
14825 #: ../src/guestfs-actions.pod:4409
14826 #, no-wrap
14827 msgid ""
14828 " int\n"
14829 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14830 "                       const char *fstype,\n"
14831 "                       const char *device,\n"
14832 "                       va_list args);\n"
14833 "\n"
14834 msgstr ""
14835
14836 # type: textblock
14837 #. type: textblock
14838 #: ../src/guestfs-actions.pod:4415
14839 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14840 msgstr ""
14841
14842 # type: =head2
14843 #. type: =head2
14844 #: ../src/guestfs-actions.pod:4419
14845 msgid "guestfs_mkfs_opts_argv"
14846 msgstr ""
14847
14848 # type: verbatim
14849 #. type: verbatim
14850 #: ../src/guestfs-actions.pod:4421
14851 #, no-wrap
14852 msgid ""
14853 " int\n"
14854 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14855 "                         const char *fstype,\n"
14856 "                         const char *device,\n"
14857 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14858 "\n"
14859 msgstr ""
14860
14861 # type: textblock
14862 #. type: textblock
14863 #: ../src/guestfs-actions.pod:4427
14864 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14865 msgstr ""
14866
14867 # type: =head2
14868 #. type: =head2
14869 #: ../src/guestfs-actions.pod:4431
14870 msgid "guestfs_mkmountpoint"
14871 msgstr ""
14872
14873 # type: verbatim
14874 #. type: verbatim
14875 #: ../src/guestfs-actions.pod:4433
14876 #, no-wrap
14877 msgid ""
14878 " int\n"
14879 " guestfs_mkmountpoint (guestfs_h *g,\n"
14880 "                       const char *exemptpath);\n"
14881 "\n"
14882 msgstr ""
14883
14884 # type: textblock
14885 #. type: textblock
14886 #: ../src/guestfs-actions.pod:4437
14887 msgid ""
14888 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14889 "that can be used to create extra mountpoints before mounting the first "
14890 "filesystem."
14891 msgstr ""
14892
14893 # type: textblock
14894 #. type: textblock
14895 #: ../src/guestfs-actions.pod:4441 ../fish/guestfish-actions.pod:2991
14896 msgid ""
14897 "These calls are I<only> necessary in some very limited circumstances, mainly "
14898 "the case where you want to mount a mix of unrelated and/or read-only "
14899 "filesystems together."
14900 msgstr ""
14901
14902 # type: textblock
14903 #. type: textblock
14904 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:2995
14905 msgid ""
14906 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14907 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14908 "inside that.  You can unpack this as follows in guestfish:"
14909 msgstr ""
14910
14911 # type: verbatim
14912 #. type: verbatim
14913 #: ../src/guestfs-actions.pod:4450 ../fish/guestfish-actions.pod:3000
14914 #, no-wrap
14915 msgid ""
14916 " add-ro Fedora-11-i686-Live.iso\n"
14917 " run\n"
14918 " mkmountpoint /cd\n"
14919 " mkmountpoint /sqsh\n"
14920 " mkmountpoint /ext3fs\n"
14921 " mount /dev/sda /cd\n"
14922 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14923 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14924 "\n"
14925 msgstr ""
14926
14927 # type: textblock
14928 #. type: textblock
14929 #: ../src/guestfs-actions.pod:4459 ../fish/guestfish-actions.pod:3009
14930 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14931 msgstr ""
14932
14933 # type: textblock
14934 #. type: textblock
14935 #: ../src/guestfs-actions.pod:4461
14936 msgid ""
14937 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14938 "may get unexpected errors if you try to mix these calls.  It is safest to "
14939 "manually unmount filesystems and remove mountpoints after use."
14940 msgstr ""
14941
14942 # type: textblock
14943 #. type: textblock
14944 #: ../src/guestfs-actions.pod:4465
14945 msgid ""
14946 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14947 "first, so for this to work for manual mountpoints, you must ensure that the "
14948 "innermost mountpoints have the longest pathnames, as in the example code "
14949 "above."
14950 msgstr ""
14951
14952 # type: textblock
14953 #. type: textblock
14954 #: ../src/guestfs-actions.pod:4470 ../fish/guestfish-actions.pod:3020
14955 msgid ""
14956 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14957 msgstr ""
14958
14959 #. type: textblock
14960 #: ../src/guestfs-actions.pod:4472
14961 msgid ""
14962 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14963 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
14964 "can also trigger these issues."
14965 msgstr ""
14966
14967 # type: textblock
14968 #. type: textblock
14969 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4737
14970 #: ../src/guestfs-actions.pod:5647
14971 msgid "(Added in 1.0.62)"
14972 msgstr ""
14973
14974 # type: =head2
14975 #. type: =head2
14976 #: ../src/guestfs-actions.pod:4480
14977 msgid "guestfs_mknod"
14978 msgstr ""
14979
14980 # type: verbatim
14981 #. type: verbatim
14982 #: ../src/guestfs-actions.pod:4482
14983 #, no-wrap
14984 msgid ""
14985 " int\n"
14986 " guestfs_mknod (guestfs_h *g,\n"
14987 "                int mode,\n"
14988 "                int devmajor,\n"
14989 "                int devminor,\n"
14990 "                const char *path);\n"
14991 "\n"
14992 msgstr ""
14993
14994 # type: textblock
14995 #. type: textblock
14996 #: ../src/guestfs-actions.pod:4489 ../fish/guestfish-actions.pod:3030
14997 msgid ""
14998 "This call creates block or character special devices, or named pipes (FIFOs)."
14999 msgstr ""
15000
15001 # type: textblock
15002 #. type: textblock
15003 #: ../src/guestfs-actions.pod:4492 ../fish/guestfish-actions.pod:3033
15004 msgid ""
15005 "The C<mode> parameter should be the mode, using the standard constants.  "
15006 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
15007 "used when creating block and character special devices."
15008 msgstr ""
15009
15010 # type: textblock
15011 #. type: textblock
15012 #: ../src/guestfs-actions.pod:4497
15013 msgid ""
15014 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
15015 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
15016 "regular file).  These constants are available in the standard Linux header "
15017 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
15018 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
15019 "the appropriate constant for you."
15020 msgstr ""
15021
15022 # type: =head2
15023 #. type: =head2
15024 #: ../src/guestfs-actions.pod:4511
15025 msgid "guestfs_mknod_b"
15026 msgstr ""
15027
15028 # type: verbatim
15029 #. type: verbatim
15030 #: ../src/guestfs-actions.pod:4513
15031 #, no-wrap
15032 msgid ""
15033 " int\n"
15034 " guestfs_mknod_b (guestfs_h *g,\n"
15035 "                  int mode,\n"
15036 "                  int devmajor,\n"
15037 "                  int devminor,\n"
15038 "                  const char *path);\n"
15039 "\n"
15040 msgstr ""
15041
15042 # type: textblock
15043 #. type: textblock
15044 #: ../src/guestfs-actions.pod:4520
15045 msgid ""
15046 "This call creates a block device node called C<path> with mode C<mode> and "
15047 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15048 "wrapper around C<guestfs_mknod>."
15049 msgstr ""
15050
15051 # type: =head2
15052 #. type: =head2
15053 #: ../src/guestfs-actions.pod:4530
15054 msgid "guestfs_mknod_c"
15055 msgstr ""
15056
15057 # type: verbatim
15058 #. type: verbatim
15059 #: ../src/guestfs-actions.pod:4532
15060 #, no-wrap
15061 msgid ""
15062 " int\n"
15063 " guestfs_mknod_c (guestfs_h *g,\n"
15064 "                  int mode,\n"
15065 "                  int devmajor,\n"
15066 "                  int devminor,\n"
15067 "                  const char *path);\n"
15068 "\n"
15069 msgstr ""
15070
15071 # type: textblock
15072 #. type: textblock
15073 #: ../src/guestfs-actions.pod:4539
15074 msgid ""
15075 "This call creates a char device node called C<path> with mode C<mode> and "
15076 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15077 "wrapper around C<guestfs_mknod>."
15078 msgstr ""
15079
15080 # type: =head2
15081 #. type: =head2
15082 #: ../src/guestfs-actions.pod:4549
15083 msgid "guestfs_mkswap"
15084 msgstr ""
15085
15086 # type: verbatim
15087 #. type: verbatim
15088 #: ../src/guestfs-actions.pod:4551
15089 #, no-wrap
15090 msgid ""
15091 " int\n"
15092 " guestfs_mkswap (guestfs_h *g,\n"
15093 "                 const char *device);\n"
15094 "\n"
15095 msgstr ""
15096
15097 # type: textblock
15098 #. type: textblock
15099 #: ../src/guestfs-actions.pod:4555 ../fish/guestfish-actions.pod:3072
15100 msgid "Create a swap partition on C<device>."
15101 msgstr ""
15102
15103 # type: =head2
15104 #. type: =head2
15105 #: ../src/guestfs-actions.pod:4561
15106 msgid "guestfs_mkswap_L"
15107 msgstr ""
15108
15109 # type: verbatim
15110 #. type: verbatim
15111 #: ../src/guestfs-actions.pod:4563
15112 #, no-wrap
15113 msgid ""
15114 " int\n"
15115 " guestfs_mkswap_L (guestfs_h *g,\n"
15116 "                   const char *label,\n"
15117 "                   const char *device);\n"
15118 "\n"
15119 msgstr ""
15120
15121 # type: textblock
15122 #. type: textblock
15123 #: ../src/guestfs-actions.pod:4568 ../fish/guestfish-actions.pod:3078
15124 msgid "Create a swap partition on C<device> with label C<label>."
15125 msgstr ""
15126
15127 # type: textblock
15128 #. type: textblock
15129 #: ../src/guestfs-actions.pod:4570 ../fish/guestfish-actions.pod:3080
15130 msgid ""
15131 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15132 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15133 "or swap tools."
15134 msgstr ""
15135
15136 # type: =head2
15137 #. type: =head2
15138 #: ../src/guestfs-actions.pod:4578
15139 msgid "guestfs_mkswap_U"
15140 msgstr ""
15141
15142 # type: verbatim
15143 #. type: verbatim
15144 #: ../src/guestfs-actions.pod:4580
15145 #, no-wrap
15146 msgid ""
15147 " int\n"
15148 " guestfs_mkswap_U (guestfs_h *g,\n"
15149 "                   const char *uuid,\n"
15150 "                   const char *device);\n"
15151 "\n"
15152 msgstr ""
15153
15154 # type: textblock
15155 #. type: textblock
15156 #: ../src/guestfs-actions.pod:4585 ../fish/guestfish-actions.pod:3088
15157 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15158 msgstr ""
15159
15160 # type: =head2
15161 #. type: =head2
15162 #: ../src/guestfs-actions.pod:4591
15163 msgid "guestfs_mkswap_file"
15164 msgstr ""
15165
15166 # type: verbatim
15167 #. type: verbatim
15168 #: ../src/guestfs-actions.pod:4593
15169 #, no-wrap
15170 msgid ""
15171 " int\n"
15172 " guestfs_mkswap_file (guestfs_h *g,\n"
15173 "                      const char *path);\n"
15174 "\n"
15175 msgstr ""
15176
15177 # type: textblock
15178 #. type: textblock
15179 #: ../src/guestfs-actions.pod:4597 ../fish/guestfish-actions.pod:3094
15180 msgid "Create a swap file."
15181 msgstr ""
15182
15183 # type: textblock
15184 #. type: textblock
15185 #: ../src/guestfs-actions.pod:4599
15186 msgid ""
15187 "This command just writes a swap file signature to an existing file.  To "
15188 "create the file itself, use something like C<guestfs_fallocate>."
15189 msgstr ""
15190
15191 # type: =head2
15192 #. type: =head2
15193 #: ../src/guestfs-actions.pod:4606
15194 msgid "guestfs_modprobe"
15195 msgstr ""
15196
15197 # type: verbatim
15198 #. type: verbatim
15199 #: ../src/guestfs-actions.pod:4608
15200 #, no-wrap
15201 msgid ""
15202 " int\n"
15203 " guestfs_modprobe (guestfs_h *g,\n"
15204 "                   const char *modulename);\n"
15205 "\n"
15206 msgstr ""
15207
15208 # type: textblock
15209 #. type: textblock
15210 #: ../src/guestfs-actions.pod:4612 ../fish/guestfish-actions.pod:3103
15211 msgid "This loads a kernel module in the appliance."
15212 msgstr ""
15213
15214 # type: textblock
15215 #. type: textblock
15216 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3105
15217 msgid ""
15218 "The kernel module must have been whitelisted when libguestfs was built (see "
15219 "C<appliance/kmod.whitelist.in> in the source)."
15220 msgstr ""
15221
15222 # type: =head2
15223 #. type: =head2
15224 #: ../src/guestfs-actions.pod:4621
15225 msgid "guestfs_mount"
15226 msgstr ""
15227
15228 # type: verbatim
15229 #. type: verbatim
15230 #: ../src/guestfs-actions.pod:4623
15231 #, no-wrap
15232 msgid ""
15233 " int\n"
15234 " guestfs_mount (guestfs_h *g,\n"
15235 "                const char *device,\n"
15236 "                const char *mountpoint);\n"
15237 "\n"
15238 msgstr ""
15239
15240 # type: textblock
15241 #. type: textblock
15242 #: ../src/guestfs-actions.pod:4628 ../fish/guestfish-actions.pod:3112
15243 msgid ""
15244 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15245 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15246 "those block devices contain partitions, they will have the usual names (eg. "
15247 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15248 msgstr ""
15249
15250 # type: textblock
15251 #. type: textblock
15252 #: ../src/guestfs-actions.pod:4634 ../fish/guestfish-actions.pod:3118
15253 msgid ""
15254 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15255 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15256 "mounted on directories which already exist."
15257 msgstr ""
15258
15259 # type: textblock
15260 #. type: textblock
15261 #: ../src/guestfs-actions.pod:4639 ../fish/guestfish-actions.pod:3123
15262 msgid ""
15263 "The mounted filesystem is writable, if we have sufficient permissions on the "
15264 "underlying device."
15265 msgstr ""
15266
15267 # type: textblock
15268 #. type: textblock
15269 #: ../src/guestfs-actions.pod:4642
15270 msgid ""
15271 "B<Important note:> When you use this call, the filesystem options C<sync> "
15272 "and C<noatime> are set implicitly.  This was originally done because we "
15273 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15274 "very large negative performance impact and negligible effect on "
15275 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15276 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15277 "(use an empty string for the first parameter if you don't want any options)."
15278 msgstr ""
15279
15280 # type: =head2
15281 #. type: =head2
15282 #: ../src/guestfs-actions.pod:4656
15283 msgid "guestfs_mount_loop"
15284 msgstr ""
15285
15286 # type: verbatim
15287 #. type: verbatim
15288 #: ../src/guestfs-actions.pod:4658
15289 #, no-wrap
15290 msgid ""
15291 " int\n"
15292 " guestfs_mount_loop (guestfs_h *g,\n"
15293 "                     const char *file,\n"
15294 "                     const char *mountpoint);\n"
15295 "\n"
15296 msgstr ""
15297
15298 # type: textblock
15299 #. type: textblock
15300 #: ../src/guestfs-actions.pod:4663 ../fish/guestfish-actions.pod:3140
15301 msgid ""
15302 "This command lets you mount C<file> (a filesystem image in a file) on a "
15303 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15304 "mountpoint>."
15305 msgstr ""
15306
15307 # type: =head2
15308 #. type: =head2
15309 #: ../src/guestfs-actions.pod:4671
15310 msgid "guestfs_mount_options"
15311 msgstr ""
15312
15313 # type: verbatim
15314 #. type: verbatim
15315 #: ../src/guestfs-actions.pod:4673
15316 #, no-wrap
15317 msgid ""
15318 " int\n"
15319 " guestfs_mount_options (guestfs_h *g,\n"
15320 "                        const char *options,\n"
15321 "                        const char *device,\n"
15322 "                        const char *mountpoint);\n"
15323 "\n"
15324 msgstr ""
15325
15326 # type: textblock
15327 #. type: textblock
15328 #: ../src/guestfs-actions.pod:4679
15329 msgid ""
15330 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15331 "the mount options as for the L<mount(8)> I<-o> flag."
15332 msgstr ""
15333
15334 # type: textblock
15335 #. type: textblock
15336 #: ../src/guestfs-actions.pod:4683 ../fish/guestfish-actions.pod:3152
15337 msgid ""
15338 "If the C<options> parameter is an empty string, then no options are passed "
15339 "(all options default to whatever the filesystem uses)."
15340 msgstr ""
15341
15342 # type: textblock
15343 #. type: textblock
15344 #: ../src/guestfs-actions.pod:4689 ../src/guestfs-actions.pod:4703
15345 #: ../src/guestfs-actions.pod:4720
15346 msgid "(Added in 1.0.10)"
15347 msgstr ""
15348
15349 # type: =head2
15350 #. type: =head2
15351 #: ../src/guestfs-actions.pod:4691
15352 msgid "guestfs_mount_ro"
15353 msgstr ""
15354
15355 # type: verbatim
15356 #. type: verbatim
15357 #: ../src/guestfs-actions.pod:4693
15358 #, no-wrap
15359 msgid ""
15360 " int\n"
15361 " guestfs_mount_ro (guestfs_h *g,\n"
15362 "                   const char *device,\n"
15363 "                   const char *mountpoint);\n"
15364 "\n"
15365 msgstr ""
15366
15367 # type: textblock
15368 #. type: textblock
15369 #: ../src/guestfs-actions.pod:4698
15370 msgid ""
15371 "This is the same as the C<guestfs_mount> command, but it mounts the "
15372 "filesystem with the read-only (I<-o ro>) flag."
15373 msgstr ""
15374
15375 # type: =head2
15376 #. type: =head2
15377 #: ../src/guestfs-actions.pod:4705
15378 msgid "guestfs_mount_vfs"
15379 msgstr ""
15380
15381 # type: verbatim
15382 #. type: verbatim
15383 #: ../src/guestfs-actions.pod:4707
15384 #, no-wrap
15385 msgid ""
15386 " int\n"
15387 " guestfs_mount_vfs (guestfs_h *g,\n"
15388 "                    const char *options,\n"
15389 "                    const char *vfstype,\n"
15390 "                    const char *device,\n"
15391 "                    const char *mountpoint);\n"
15392 "\n"
15393 msgstr ""
15394
15395 # type: textblock
15396 #. type: textblock
15397 #: ../src/guestfs-actions.pod:4714
15398 msgid ""
15399 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15400 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
15401 "t> flags."
15402 msgstr ""
15403
15404 # type: =head2
15405 #. type: =head2
15406 #: ../src/guestfs-actions.pod:4722
15407 msgid "guestfs_mountpoints"
15408 msgstr ""
15409
15410 # type: verbatim
15411 #. type: verbatim
15412 #: ../src/guestfs-actions.pod:4724
15413 #, no-wrap
15414 msgid ""
15415 " char **\n"
15416 " guestfs_mountpoints (guestfs_h *g);\n"
15417 "\n"
15418 msgstr ""
15419
15420 # type: textblock
15421 #. type: textblock
15422 #: ../src/guestfs-actions.pod:4727
15423 msgid ""
15424 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
15425 "devices.  This one returns a hash table (map) of device name to directory "
15426 "where the device is mounted."
15427 msgstr ""
15428
15429 # type: =head2
15430 #. type: =head2
15431 #: ../src/guestfs-actions.pod:4739
15432 msgid "guestfs_mounts"
15433 msgstr ""
15434
15435 # type: verbatim
15436 #. type: verbatim
15437 #: ../src/guestfs-actions.pod:4741
15438 #, no-wrap
15439 msgid ""
15440 " char **\n"
15441 " guestfs_mounts (guestfs_h *g);\n"
15442 "\n"
15443 msgstr ""
15444
15445 # type: textblock
15446 #. type: textblock
15447 #: ../src/guestfs-actions.pod:4744 ../fish/guestfish-actions.pod:3183
15448 msgid ""
15449 "This returns the list of currently mounted filesystems.  It returns the list "
15450 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15451 msgstr ""
15452
15453 # type: textblock
15454 #. type: textblock
15455 #: ../src/guestfs-actions.pod:4747 ../fish/guestfish-actions.pod:3186
15456 msgid "Some internal mounts are not shown."
15457 msgstr ""
15458
15459 # type: textblock
15460 #. type: textblock
15461 #: ../src/guestfs-actions.pod:4749
15462 msgid "See also: C<guestfs_mountpoints>"
15463 msgstr ""
15464
15465 # type: =head2
15466 #. type: =head2
15467 #: ../src/guestfs-actions.pod:4757
15468 msgid "guestfs_mv"
15469 msgstr ""
15470
15471 # type: verbatim
15472 #. type: verbatim
15473 #: ../src/guestfs-actions.pod:4759
15474 #, no-wrap
15475 msgid ""
15476 " int\n"
15477 " guestfs_mv (guestfs_h *g,\n"
15478 "             const char *src,\n"
15479 "             const char *dest);\n"
15480 "\n"
15481 msgstr ""
15482
15483 # type: textblock
15484 #. type: textblock
15485 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3194
15486 msgid ""
15487 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15488 "destination filename or destination directory."
15489 msgstr ""
15490
15491 # type: =head2
15492 #. type: =head2
15493 #: ../src/guestfs-actions.pod:4771
15494 msgid "guestfs_ntfs_3g_probe"
15495 msgstr ""
15496
15497 # type: verbatim
15498 #. type: verbatim
15499 #: ../src/guestfs-actions.pod:4773
15500 #, no-wrap
15501 msgid ""
15502 " int\n"
15503 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15504 "                        int rw,\n"
15505 "                        const char *device);\n"
15506 "\n"
15507 msgstr ""
15508
15509 # type: textblock
15510 #. type: textblock
15511 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3201
15512 msgid ""
15513 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
15514 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
15515 "write, and some cannot be mounted at all)."
15516 msgstr ""
15517
15518 # type: textblock
15519 #. type: textblock
15520 #: ../src/guestfs-actions.pod:4782 ../fish/guestfish-actions.pod:3205
15521 msgid ""
15522 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15523 "can be mounted read-write.  Set it to false if you want to test if the "
15524 "volume can be mounted read-only."
15525 msgstr ""
15526
15527 # type: textblock
15528 #. type: textblock
15529 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3209
15530 msgid ""
15531 "The return value is an integer which C<0> if the operation would succeed, or "
15532 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15533 msgstr ""
15534
15535 # type: textblock
15536 #. type: textblock
15537 #: ../src/guestfs-actions.pod:4792
15538 msgid "(Added in 1.0.43)"
15539 msgstr ""
15540
15541 # type: =head2
15542 #. type: =head2
15543 #: ../src/guestfs-actions.pod:4794
15544 msgid "guestfs_ntfsresize"
15545 msgstr ""
15546
15547 # type: verbatim
15548 #. type: verbatim
15549 #: ../src/guestfs-actions.pod:4796
15550 #, no-wrap
15551 msgid ""
15552 " int\n"
15553 " guestfs_ntfsresize (guestfs_h *g,\n"
15554 "                     const char *device);\n"
15555 "\n"
15556 msgstr ""
15557
15558 # type: textblock
15559 #. type: textblock
15560 #: ../src/guestfs-actions.pod:4800 ../fish/guestfish-actions.pod:3217
15561 msgid ""
15562 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15563 "size of the underlying device.  See also L<ntfsresize(8)>."
15564 msgstr ""
15565
15566 # type: =head2
15567 #. type: =head2
15568 #: ../src/guestfs-actions.pod:4808
15569 msgid "guestfs_ntfsresize_size"
15570 msgstr ""
15571
15572 # type: verbatim
15573 #. type: verbatim
15574 #: ../src/guestfs-actions.pod:4810
15575 #, no-wrap
15576 msgid ""
15577 " int\n"
15578 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15579 "                          const char *device,\n"
15580 "                          int64_t size);\n"
15581 "\n"
15582 msgstr ""
15583
15584 # type: textblock
15585 #. type: textblock
15586 #: ../src/guestfs-actions.pod:4815
15587 msgid ""
15588 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15589 "to specify the new size (in bytes) explicitly."
15590 msgstr ""
15591
15592 # type: textblock
15593 #. type: textblock
15594 #: ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:5256
15595 #: ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5595
15596 #: ../src/guestfs-actions.pod:7166
15597 msgid "(Added in 1.3.14)"
15598 msgstr ""
15599
15600 # type: =head2
15601 #. type: =head2
15602 #: ../src/guestfs-actions.pod:4822
15603 msgid "guestfs_part_add"
15604 msgstr ""
15605
15606 # type: verbatim
15607 #. type: verbatim
15608 #: ../src/guestfs-actions.pod:4824
15609 #, no-wrap
15610 msgid ""
15611 " int\n"
15612 " guestfs_part_add (guestfs_h *g,\n"
15613 "                   const char *device,\n"
15614 "                   const char *prlogex,\n"
15615 "                   int64_t startsect,\n"
15616 "                   int64_t endsect);\n"
15617 "\n"
15618 msgstr ""
15619
15620 # type: textblock
15621 #. type: textblock
15622 #: ../src/guestfs-actions.pod:4831
15623 msgid ""
15624 "This command adds a partition to C<device>.  If there is no partition table "
15625 "on the device, call C<guestfs_part_init> first."
15626 msgstr ""
15627
15628 # type: textblock
15629 #. type: textblock
15630 #: ../src/guestfs-actions.pod:4834 ../fish/guestfish-actions.pod:3235
15631 msgid ""
15632 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15633 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15634 "C<logical>) and C<e> (or C<extended>) partition types."
15635 msgstr ""
15636
15637 # type: textblock
15638 #. type: textblock
15639 #: ../src/guestfs-actions.pod:4839 ../fish/guestfish-actions.pod:3240
15640 msgid ""
15641 "C<startsect> and C<endsect> are the start and end of the partition in "
15642 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15643 "from the end of the disk (C<-1> is the last sector)."
15644 msgstr ""
15645
15646 # type: textblock
15647 #. type: textblock
15648 #: ../src/guestfs-actions.pod:4843
15649 msgid ""
15650 "Creating a partition which covers the whole disk is not so easy.  Use "
15651 "C<guestfs_part_disk> to do that."
15652 msgstr ""
15653
15654 # type: textblock
15655 #. type: textblock
15656 #: ../src/guestfs-actions.pod:4848 ../src/guestfs-actions.pod:4886
15657 #: ../src/guestfs-actions.pod:4939 ../src/guestfs-actions.pod:5017
15658 #: ../src/guestfs-actions.pod:5055 ../src/guestfs-actions.pod:5074
15659 #: ../src/guestfs-actions.pod:5114
15660 msgid "(Added in 1.0.78)"
15661 msgstr ""
15662
15663 # type: =head2
15664 #. type: =head2
15665 #: ../src/guestfs-actions.pod:4850
15666 msgid "guestfs_part_del"
15667 msgstr ""
15668
15669 # type: verbatim
15670 #. type: verbatim
15671 #: ../src/guestfs-actions.pod:4852
15672 #, no-wrap
15673 msgid ""
15674 " int\n"
15675 " guestfs_part_del (guestfs_h *g,\n"
15676 "                   const char *device,\n"
15677 "                   int partnum);\n"
15678 "\n"
15679 msgstr ""
15680
15681 # type: textblock
15682 #. type: textblock
15683 #: ../src/guestfs-actions.pod:4857 ../fish/guestfish-actions.pod:3251
15684 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15685 msgstr ""
15686
15687 # type: textblock
15688 #. type: textblock
15689 #: ../src/guestfs-actions.pod:4859 ../fish/guestfish-actions.pod:3253
15690 msgid ""
15691 "Note that in the case of MBR partitioning, deleting an extended partition "
15692 "also deletes any logical partitions it contains."
15693 msgstr ""
15694
15695 # type: =head2
15696 #. type: =head2
15697 #: ../src/guestfs-actions.pod:4867
15698 msgid "guestfs_part_disk"
15699 msgstr ""
15700
15701 # type: verbatim
15702 #. type: verbatim
15703 #: ../src/guestfs-actions.pod:4869
15704 #, no-wrap
15705 msgid ""
15706 " int\n"
15707 " guestfs_part_disk (guestfs_h *g,\n"
15708 "                    const char *device,\n"
15709 "                    const char *parttype);\n"
15710 "\n"
15711 msgstr ""
15712
15713 # type: textblock
15714 #. type: textblock
15715 #: ../src/guestfs-actions.pod:4874
15716 msgid ""
15717 "This command is simply a combination of C<guestfs_part_init> followed by "
15718 "C<guestfs_part_add> to create a single primary partition covering the whole "
15719 "disk."
15720 msgstr ""
15721
15722 # type: textblock
15723 #. type: textblock
15724 #: ../src/guestfs-actions.pod:4878
15725 msgid ""
15726 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15727 "possible values are described in C<guestfs_part_init>."
15728 msgstr ""
15729
15730 # type: =head2
15731 #. type: =head2
15732 #: ../src/guestfs-actions.pod:4888
15733 msgid "guestfs_part_get_bootable"
15734 msgstr ""
15735
15736 # type: verbatim
15737 #. type: verbatim
15738 #: ../src/guestfs-actions.pod:4890
15739 #, no-wrap
15740 msgid ""
15741 " int\n"
15742 " guestfs_part_get_bootable (guestfs_h *g,\n"
15743 "                            const char *device,\n"
15744 "                            int partnum);\n"
15745 "\n"
15746 msgstr ""
15747
15748 # type: textblock
15749 #. type: textblock
15750 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3275
15751 msgid ""
15752 "This command returns true if the partition C<partnum> on C<device> has the "
15753 "bootable flag set."
15754 msgstr ""
15755
15756 # type: textblock
15757 #. type: textblock
15758 #: ../src/guestfs-actions.pod:4898
15759 msgid "See also C<guestfs_part_set_bootable>."
15760 msgstr ""
15761
15762 # type: =head2
15763 #. type: =head2
15764 #: ../src/guestfs-actions.pod:4904
15765 msgid "guestfs_part_get_mbr_id"
15766 msgstr ""
15767
15768 # type: verbatim
15769 #. type: verbatim
15770 #: ../src/guestfs-actions.pod:4906
15771 #, no-wrap
15772 msgid ""
15773 " int\n"
15774 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15775 "                          const char *device,\n"
15776 "                          int partnum);\n"
15777 "\n"
15778 msgstr ""
15779
15780 # type: textblock
15781 #. type: textblock
15782 #: ../src/guestfs-actions.pod:4911 ../fish/guestfish-actions.pod:3284
15783 msgid ""
15784 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15785 "partition C<partnum>."
15786 msgstr ""
15787
15788 # type: textblock
15789 #. type: textblock
15790 #: ../src/guestfs-actions.pod:4914 ../src/guestfs-actions.pod:5090
15791 msgid ""
15792 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15793 "undefined results for other partition table types (see "
15794 "C<guestfs_part_get_parttype>)."
15795 msgstr ""
15796
15797 # type: =head2
15798 #. type: =head2
15799 #: ../src/guestfs-actions.pod:4922
15800 msgid "guestfs_part_get_parttype"
15801 msgstr ""
15802
15803 # type: verbatim
15804 #. type: verbatim
15805 #: ../src/guestfs-actions.pod:4924
15806 #, no-wrap
15807 msgid ""
15808 " char *\n"
15809 " guestfs_part_get_parttype (guestfs_h *g,\n"
15810 "                            const char *device);\n"
15811 "\n"
15812 msgstr ""
15813
15814 # type: textblock
15815 #. type: textblock
15816 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3295
15817 msgid ""
15818 "This command examines the partition table on C<device> and returns the "
15819 "partition table type (format) being used."
15820 msgstr ""
15821
15822 # type: textblock
15823 #. type: textblock
15824 #: ../src/guestfs-actions.pod:4931
15825 msgid ""
15826 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15827 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15828 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15829 msgstr ""
15830
15831 # type: =head2
15832 #. type: =head2
15833 #: ../src/guestfs-actions.pod:4941
15834 msgid "guestfs_part_init"
15835 msgstr ""
15836
15837 # type: verbatim
15838 #. type: verbatim
15839 #: ../src/guestfs-actions.pod:4943
15840 #, no-wrap
15841 msgid ""
15842 " int\n"
15843 " guestfs_part_init (guestfs_h *g,\n"
15844 "                    const char *device,\n"
15845 "                    const char *parttype);\n"
15846 "\n"
15847 msgstr ""
15848
15849 # type: textblock
15850 #. type: textblock
15851 #: ../src/guestfs-actions.pod:4948 ../fish/guestfish-actions.pod:3307
15852 msgid ""
15853 "This creates an empty partition table on C<device> of one of the partition "
15854 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15855 "(for large disks)."
15856 msgstr ""
15857
15858 # type: textblock
15859 #. type: textblock
15860 #: ../src/guestfs-actions.pod:4952
15861 msgid ""
15862 "Initially there are no partitions.  Following this, you should call "
15863 "C<guestfs_part_add> for each partition required."
15864 msgstr ""
15865
15866 # type: textblock
15867 #. type: textblock
15868 #: ../src/guestfs-actions.pod:4955 ../fish/guestfish-actions.pod:3314
15869 msgid "Possible values for C<parttype> are:"
15870 msgstr ""
15871
15872 # type: =item
15873 #. type: =item
15874 #: ../src/guestfs-actions.pod:4959 ../fish/guestfish-actions.pod:3318
15875 msgid "B<efi> | B<gpt>"
15876 msgstr ""
15877
15878 # type: textblock
15879 #. type: textblock
15880 #: ../src/guestfs-actions.pod:4961 ../fish/guestfish-actions.pod:3320
15881 msgid "Intel EFI / GPT partition table."
15882 msgstr ""
15883
15884 # type: textblock
15885 #. type: textblock
15886 #: ../src/guestfs-actions.pod:4963 ../fish/guestfish-actions.pod:3322
15887 msgid ""
15888 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15889 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15890 "the C<mbr> format."
15891 msgstr ""
15892
15893 # type: =item
15894 #. type: =item
15895 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3326
15896 msgid "B<mbr> | B<msdos>"
15897 msgstr ""
15898
15899 # type: textblock
15900 #. type: textblock
15901 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3328
15902 msgid ""
15903 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15904 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15905 "TB.  For large disks we recommend using C<gpt>."
15906 msgstr ""
15907
15908 # type: textblock
15909 #. type: textblock
15910 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3335
15911 msgid ""
15912 "Other partition table types that may work but are not supported include:"
15913 msgstr ""
15914
15915 # type: =item
15916 #. type: =item
15917 #: ../src/guestfs-actions.pod:4981 ../fish/guestfish-actions.pod:3340
15918 msgid "B<aix>"
15919 msgstr ""
15920
15921 # type: textblock
15922 #. type: textblock
15923 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3342
15924 msgid "AIX disk labels."
15925 msgstr ""
15926
15927 # type: =item
15928 #. type: =item
15929 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3344
15930 msgid "B<amiga> | B<rdb>"
15931 msgstr ""
15932
15933 # type: textblock
15934 #. type: textblock
15935 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3346
15936 msgid "Amiga \"Rigid Disk Block\" format."
15937 msgstr ""
15938
15939 # type: =item
15940 #. type: =item
15941 #: ../src/guestfs-actions.pod:4989 ../fish/guestfish-actions.pod:3348
15942 msgid "B<bsd>"
15943 msgstr ""
15944
15945 # type: textblock
15946 #. type: textblock
15947 #: ../src/guestfs-actions.pod:4991 ../fish/guestfish-actions.pod:3350
15948 msgid "BSD disk labels."
15949 msgstr ""
15950
15951 # type: =item
15952 #. type: =item
15953 #: ../src/guestfs-actions.pod:4993 ../fish/guestfish-actions.pod:3352
15954 msgid "B<dasd>"
15955 msgstr ""
15956
15957 # type: textblock
15958 #. type: textblock
15959 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3354
15960 msgid "DASD, used on IBM mainframes."
15961 msgstr ""
15962
15963 # type: =item
15964 #. type: =item
15965 #: ../src/guestfs-actions.pod:4997 ../fish/guestfish-actions.pod:3356
15966 msgid "B<dvh>"
15967 msgstr ""
15968
15969 # type: textblock
15970 #. type: textblock
15971 #: ../src/guestfs-actions.pod:4999 ../fish/guestfish-actions.pod:3358
15972 msgid "MIPS/SGI volumes."
15973 msgstr ""
15974
15975 # type: =item
15976 #. type: =item
15977 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3360
15978 msgid "B<mac>"
15979 msgstr ""
15980
15981 # type: textblock
15982 #. type: textblock
15983 #: ../src/guestfs-actions.pod:5003 ../fish/guestfish-actions.pod:3362
15984 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15985 msgstr ""
15986
15987 # type: =item
15988 #. type: =item
15989 #: ../src/guestfs-actions.pod:5005 ../fish/guestfish-actions.pod:3364
15990 msgid "B<pc98>"
15991 msgstr ""
15992
15993 # type: textblock
15994 #. type: textblock
15995 #: ../src/guestfs-actions.pod:5007 ../fish/guestfish-actions.pod:3366
15996 msgid "NEC PC-98 format, common in Japan apparently."
15997 msgstr ""
15998
15999 # type: =item
16000 #. type: =item
16001 #: ../src/guestfs-actions.pod:5009 ../fish/guestfish-actions.pod:3368
16002 msgid "B<sun>"
16003 msgstr ""
16004
16005 # type: textblock
16006 #. type: textblock
16007 #: ../src/guestfs-actions.pod:5011 ../fish/guestfish-actions.pod:3370
16008 msgid "Sun disk labels."
16009 msgstr ""
16010
16011 # type: =head2
16012 #. type: =head2
16013 #: ../src/guestfs-actions.pod:5019
16014 msgid "guestfs_part_list"
16015 msgstr ""
16016
16017 # type: verbatim
16018 #. type: verbatim
16019 #: ../src/guestfs-actions.pod:5021
16020 #, no-wrap
16021 msgid ""
16022 " struct guestfs_partition_list *\n"
16023 " guestfs_part_list (guestfs_h *g,\n"
16024 "                    const char *device);\n"
16025 "\n"
16026 msgstr ""
16027
16028 # type: textblock
16029 #. type: textblock
16030 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3378
16031 msgid ""
16032 "This command parses the partition table on C<device> and returns the list of "
16033 "partitions found."
16034 msgstr ""
16035
16036 # type: textblock
16037 #. type: textblock
16038 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3381
16039 msgid "The fields in the returned structure are:"
16040 msgstr ""
16041
16042 # type: =item
16043 #. type: =item
16044 #: ../src/guestfs-actions.pod:5032 ../fish/guestfish-actions.pod:3385
16045 msgid "B<part_num>"
16046 msgstr ""
16047
16048 # type: textblock
16049 #. type: textblock
16050 #: ../src/guestfs-actions.pod:5034 ../fish/guestfish-actions.pod:3387
16051 msgid "Partition number, counting from 1."
16052 msgstr ""
16053
16054 # type: =item
16055 #. type: =item
16056 #: ../src/guestfs-actions.pod:5036 ../fish/guestfish-actions.pod:3389
16057 msgid "B<part_start>"
16058 msgstr ""
16059
16060 # type: textblock
16061 #. type: textblock
16062 #: ../src/guestfs-actions.pod:5038
16063 msgid ""
16064 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16065 "the device's sector size, see C<guestfs_blockdev_getss>."
16066 msgstr ""
16067
16068 # type: =item
16069 #. type: =item
16070 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3394
16071 msgid "B<part_end>"
16072 msgstr ""
16073
16074 # type: textblock
16075 #. type: textblock
16076 #: ../src/guestfs-actions.pod:5043 ../fish/guestfish-actions.pod:3396
16077 msgid "End of the partition in bytes."
16078 msgstr ""
16079
16080 # type: =item
16081 #. type: =item
16082 #: ../src/guestfs-actions.pod:5045 ../fish/guestfish-actions.pod:3398
16083 msgid "B<part_size>"
16084 msgstr ""
16085
16086 # type: textblock
16087 #. type: textblock
16088 #: ../src/guestfs-actions.pod:5047 ../fish/guestfish-actions.pod:3400
16089 msgid "Size of the partition in bytes."
16090 msgstr ""
16091
16092 # type: textblock
16093 #. type: textblock
16094 #: ../src/guestfs-actions.pod:5051
16095 msgid ""
16096 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16097 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16098 "use>."
16099 msgstr ""
16100
16101 # type: =head2
16102 #. type: =head2
16103 #: ../src/guestfs-actions.pod:5057
16104 msgid "guestfs_part_set_bootable"
16105 msgstr ""
16106
16107 # type: verbatim
16108 #. type: verbatim
16109 #: ../src/guestfs-actions.pod:5059
16110 #, no-wrap
16111 msgid ""
16112 " int\n"
16113 " guestfs_part_set_bootable (guestfs_h *g,\n"
16114 "                            const char *device,\n"
16115 "                            int partnum,\n"
16116 "                            int bootable);\n"
16117 "\n"
16118 msgstr ""
16119
16120 # type: textblock
16121 #. type: textblock
16122 #: ../src/guestfs-actions.pod:5065 ../fish/guestfish-actions.pod:3408
16123 msgid ""
16124 "This sets the bootable flag on partition numbered C<partnum> on device "
16125 "C<device>.  Note that partitions are numbered from 1."
16126 msgstr ""
16127
16128 # type: textblock
16129 #. type: textblock
16130 #: ../src/guestfs-actions.pod:5068 ../fish/guestfish-actions.pod:3411
16131 msgid ""
16132 "The bootable flag is used by some operating systems (notably Windows) to "
16133 "determine which partition to boot from.  It is by no means universally "
16134 "recognized."
16135 msgstr ""
16136
16137 # type: =head2
16138 #. type: =head2
16139 #: ../src/guestfs-actions.pod:5076
16140 msgid "guestfs_part_set_mbr_id"
16141 msgstr ""
16142
16143 # type: verbatim
16144 #. type: verbatim
16145 #: ../src/guestfs-actions.pod:5078
16146 #, no-wrap
16147 msgid ""
16148 " int\n"
16149 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16150 "                          const char *device,\n"
16151 "                          int partnum,\n"
16152 "                          int idbyte);\n"
16153 "\n"
16154 msgstr ""
16155
16156 # type: textblock
16157 #. type: textblock
16158 #: ../src/guestfs-actions.pod:5084 ../fish/guestfish-actions.pod:3419
16159 msgid ""
16160 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16161 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16162 "documentation are in fact hexadecimal numbers, but usually documented "
16163 "without any leading \"0x\" which might be confusing."
16164 msgstr ""
16165
16166 # type: =head2
16167 #. type: =head2
16168 #: ../src/guestfs-actions.pod:5098
16169 msgid "guestfs_part_set_name"
16170 msgstr ""
16171
16172 # type: verbatim
16173 #. type: verbatim
16174 #: ../src/guestfs-actions.pod:5100
16175 #, no-wrap
16176 msgid ""
16177 " int\n"
16178 " guestfs_part_set_name (guestfs_h *g,\n"
16179 "                        const char *device,\n"
16180 "                        int partnum,\n"
16181 "                        const char *name);\n"
16182 "\n"
16183 msgstr ""
16184
16185 # type: textblock
16186 #. type: textblock
16187 #: ../src/guestfs-actions.pod:5106 ../fish/guestfish-actions.pod:3433
16188 msgid ""
16189 "This sets the partition name on partition numbered C<partnum> on device "
16190 "C<device>.  Note that partitions are numbered from 1."
16191 msgstr ""
16192
16193 # type: textblock
16194 #. type: textblock
16195 #: ../src/guestfs-actions.pod:5109 ../fish/guestfish-actions.pod:3436
16196 msgid ""
16197 "The partition name can only be set on certain types of partition table.  "
16198 "This works on C<gpt> but not on C<mbr> partitions."
16199 msgstr ""
16200
16201 # type: =head2
16202 #. type: =head2
16203 #: ../src/guestfs-actions.pod:5116
16204 msgid "guestfs_part_to_dev"
16205 msgstr ""
16206
16207 # type: verbatim
16208 #. type: verbatim
16209 #: ../src/guestfs-actions.pod:5118
16210 #, no-wrap
16211 msgid ""
16212 " char *\n"
16213 " guestfs_part_to_dev (guestfs_h *g,\n"
16214 "                      const char *partition);\n"
16215 "\n"
16216 msgstr ""
16217
16218 # type: textblock
16219 #. type: textblock
16220 #: ../src/guestfs-actions.pod:5122 ../fish/guestfish-actions.pod:3443
16221 msgid ""
16222 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16223 "partition number, returning the device name (eg. \"/dev/sdb\")."
16224 msgstr ""
16225
16226 # type: textblock
16227 #. type: textblock
16228 #: ../src/guestfs-actions.pod:5126
16229 msgid ""
16230 "The named partition must exist, for example as a string returned from "
16231 "C<guestfs_list_partitions>."
16232 msgstr ""
16233
16234 # type: =head2
16235 #. type: =head2
16236 #: ../src/guestfs-actions.pod:5134
16237 msgid "guestfs_ping_daemon"
16238 msgstr ""
16239
16240 # type: verbatim
16241 #. type: verbatim
16242 #: ../src/guestfs-actions.pod:5136
16243 #, no-wrap
16244 msgid ""
16245 " int\n"
16246 " guestfs_ping_daemon (guestfs_h *g);\n"
16247 "\n"
16248 msgstr ""
16249
16250 # type: textblock
16251 #. type: textblock
16252 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3454
16253 msgid ""
16254 "This is a test probe into the guestfs daemon running inside the qemu "
16255 "subprocess.  Calling this function checks that the daemon responds to the "
16256 "ping message, without affecting the daemon or attached block device(s) in "
16257 "any other way."
16258 msgstr ""
16259
16260 # type: =head2
16261 #. type: =head2
16262 #: ../src/guestfs-actions.pod:5148
16263 msgid "guestfs_pread"
16264 msgstr ""
16265
16266 # type: verbatim
16267 #. type: verbatim
16268 #: ../src/guestfs-actions.pod:5150
16269 #, no-wrap
16270 msgid ""
16271 " char *\n"
16272 " guestfs_pread (guestfs_h *g,\n"
16273 "                const char *path,\n"
16274 "                int count,\n"
16275 "                int64_t offset,\n"
16276 "                size_t *size_r);\n"
16277 "\n"
16278 msgstr ""
16279
16280 # type: textblock
16281 #. type: textblock
16282 #: ../src/guestfs-actions.pod:5157 ../fish/guestfish-actions.pod:3463
16283 msgid ""
16284 "This command lets you read part of a file.  It reads C<count> bytes of the "
16285 "file, starting at C<offset>, from file C<path>."
16286 msgstr ""
16287
16288 # type: textblock
16289 #. type: textblock
16290 #: ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5186
16291 #: ../fish/guestfish-actions.pod:3466 ../fish/guestfish-actions.pod:3481
16292 msgid ""
16293 "This may read fewer bytes than requested.  For further details see the "
16294 "L<pread(2)> system call."
16295 msgstr ""
16296
16297 # type: textblock
16298 #. type: textblock
16299 #: ../src/guestfs-actions.pod:5163
16300 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16301 msgstr ""
16302
16303 # type: =head2
16304 #. type: =head2
16305 #: ../src/guestfs-actions.pod:5174
16306 msgid "guestfs_pread_device"
16307 msgstr ""
16308
16309 # type: verbatim
16310 #. type: verbatim
16311 #: ../src/guestfs-actions.pod:5176
16312 #, no-wrap
16313 msgid ""
16314 " char *\n"
16315 " guestfs_pread_device (guestfs_h *g,\n"
16316 "                       const char *device,\n"
16317 "                       int count,\n"
16318 "                       int64_t offset,\n"
16319 "                       size_t *size_r);\n"
16320 "\n"
16321 msgstr ""
16322
16323 # type: textblock
16324 #. type: textblock
16325 #: ../src/guestfs-actions.pod:5183 ../fish/guestfish-actions.pod:3478
16326 msgid ""
16327 "This command lets you read part of a file.  It reads C<count> bytes of "
16328 "C<device>, starting at C<offset>."
16329 msgstr ""
16330
16331 # type: textblock
16332 #. type: textblock
16333 #: ../src/guestfs-actions.pod:5189
16334 msgid "See also C<guestfs_pread>."
16335 msgstr ""
16336
16337 # type: textblock
16338 #. type: textblock
16339 #: ../src/guestfs-actions.pod:5198
16340 msgid "(Added in 1.5.21)"
16341 msgstr ""
16342
16343 # type: =head2
16344 #. type: =head2
16345 #: ../src/guestfs-actions.pod:5200
16346 msgid "guestfs_pvcreate"
16347 msgstr ""
16348
16349 # type: verbatim
16350 #. type: verbatim
16351 #: ../src/guestfs-actions.pod:5202
16352 #, no-wrap
16353 msgid ""
16354 " int\n"
16355 " guestfs_pvcreate (guestfs_h *g,\n"
16356 "                   const char *device);\n"
16357 "\n"
16358 msgstr ""
16359
16360 # type: textblock
16361 #. type: textblock
16362 #: ../src/guestfs-actions.pod:5206 ../fish/guestfish-actions.pod:3493
16363 msgid ""
16364 "This creates an LVM physical volume on the named C<device>, where C<device> "
16365 "should usually be a partition name such as C</dev/sda1>."
16366 msgstr ""
16367
16368 # type: =head2
16369 #. type: =head2
16370 #: ../src/guestfs-actions.pod:5214
16371 msgid "guestfs_pvremove"
16372 msgstr ""
16373
16374 # type: verbatim
16375 #. type: verbatim
16376 #: ../src/guestfs-actions.pod:5216
16377 #, no-wrap
16378 msgid ""
16379 " int\n"
16380 " guestfs_pvremove (guestfs_h *g,\n"
16381 "                   const char *device);\n"
16382 "\n"
16383 msgstr ""
16384
16385 # type: textblock
16386 #. type: textblock
16387 #: ../src/guestfs-actions.pod:5220 ../fish/guestfish-actions.pod:3501
16388 msgid ""
16389 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16390 "it."
16391 msgstr ""
16392
16393 # type: textblock
16394 #. type: textblock
16395 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3504
16396 msgid ""
16397 "The implementation uses the C<pvremove> command which refuses to wipe "
16398 "physical volumes that contain any volume groups, so you have to remove those "
16399 "first."
16400 msgstr ""
16401
16402 # type: =head2
16403 #. type: =head2
16404 #: ../src/guestfs-actions.pod:5231
16405 msgid "guestfs_pvresize"
16406 msgstr ""
16407
16408 # type: verbatim
16409 #. type: verbatim
16410 #: ../src/guestfs-actions.pod:5233
16411 #, no-wrap
16412 msgid ""
16413 " int\n"
16414 " guestfs_pvresize (guestfs_h *g,\n"
16415 "                   const char *device);\n"
16416 "\n"
16417 msgstr ""
16418
16419 # type: textblock
16420 #. type: textblock
16421 #: ../src/guestfs-actions.pod:5237 ../fish/guestfish-actions.pod:3512
16422 msgid ""
16423 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16424 "the new size of the underlying device."
16425 msgstr ""
16426
16427 # type: =head2
16428 #. type: =head2
16429 #: ../src/guestfs-actions.pod:5244
16430 msgid "guestfs_pvresize_size"
16431 msgstr ""
16432
16433 # type: verbatim
16434 #. type: verbatim
16435 #: ../src/guestfs-actions.pod:5246
16436 #, no-wrap
16437 msgid ""
16438 " int\n"
16439 " guestfs_pvresize_size (guestfs_h *g,\n"
16440 "                        const char *device,\n"
16441 "                        int64_t size);\n"
16442 "\n"
16443 msgstr ""
16444
16445 # type: textblock
16446 #. type: textblock
16447 #: ../src/guestfs-actions.pod:5251
16448 msgid ""
16449 "This command is the same as C<guestfs_pvresize> except that it allows you to "
16450 "specify the new size (in bytes) explicitly."
16451 msgstr ""
16452
16453 # type: =head2
16454 #. type: =head2
16455 #: ../src/guestfs-actions.pod:5258
16456 msgid "guestfs_pvs"
16457 msgstr ""
16458
16459 # type: verbatim
16460 #. type: verbatim
16461 #: ../src/guestfs-actions.pod:5260
16462 #, no-wrap
16463 msgid ""
16464 " char **\n"
16465 " guestfs_pvs (guestfs_h *g);\n"
16466 "\n"
16467 msgstr ""
16468
16469 # type: textblock
16470 #. type: textblock
16471 #: ../src/guestfs-actions.pod:5263 ../fish/guestfish-actions.pod:3526
16472 msgid ""
16473 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16474 "(8)> command."
16475 msgstr ""
16476
16477 # type: textblock
16478 #. type: textblock
16479 #: ../src/guestfs-actions.pod:5266 ../fish/guestfish-actions.pod:3529
16480 msgid ""
16481 "This returns a list of just the device names that contain PVs (eg. C</dev/"
16482 "sda2>)."
16483 msgstr ""
16484
16485 # type: textblock
16486 #. type: textblock
16487 #: ../src/guestfs-actions.pod:5269
16488 msgid "See also C<guestfs_pvs_full>."
16489 msgstr ""
16490
16491 # type: =head2
16492 #. type: =head2
16493 #: ../src/guestfs-actions.pod:5277
16494 msgid "guestfs_pvs_full"
16495 msgstr ""
16496
16497 # type: verbatim
16498 #. type: verbatim
16499 #: ../src/guestfs-actions.pod:5279
16500 #, no-wrap
16501 msgid ""
16502 " struct guestfs_lvm_pv_list *\n"
16503 " guestfs_pvs_full (guestfs_h *g);\n"
16504 "\n"
16505 msgstr ""
16506
16507 # type: textblock
16508 #. type: textblock
16509 #: ../src/guestfs-actions.pod:5282 ../fish/guestfish-actions.pod:3538
16510 msgid ""
16511 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16512 "(8)> command.  The \"full\" version includes all fields."
16513 msgstr ""
16514
16515 # type: textblock
16516 #. type: textblock
16517 #: ../src/guestfs-actions.pod:5285
16518 msgid ""
16519 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
16520 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
16521 msgstr ""
16522
16523 # type: =head2
16524 #. type: =head2
16525 #: ../src/guestfs-actions.pod:5291
16526 msgid "guestfs_pvuuid"
16527 msgstr ""
16528
16529 # type: verbatim
16530 #. type: verbatim
16531 #: ../src/guestfs-actions.pod:5293
16532 #, no-wrap
16533 msgid ""
16534 " char *\n"
16535 " guestfs_pvuuid (guestfs_h *g,\n"
16536 "                 const char *device);\n"
16537 "\n"
16538 msgstr ""
16539
16540 # type: textblock
16541 #. type: textblock
16542 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3545
16543 msgid "This command returns the UUID of the LVM PV C<device>."
16544 msgstr ""
16545
16546 # type: =head2
16547 #. type: =head2
16548 #: ../src/guestfs-actions.pod:5304
16549 msgid "guestfs_pwrite"
16550 msgstr ""
16551
16552 # type: verbatim
16553 #. type: verbatim
16554 #: ../src/guestfs-actions.pod:5306
16555 #, no-wrap
16556 msgid ""
16557 " int\n"
16558 " guestfs_pwrite (guestfs_h *g,\n"
16559 "                 const char *path,\n"
16560 "                 const char *content,\n"
16561 "                 size_t content_size,\n"
16562 "                 int64_t offset);\n"
16563 "\n"
16564 msgstr ""
16565
16566 # type: textblock
16567 #. type: textblock
16568 #: ../src/guestfs-actions.pod:5313 ../fish/guestfish-actions.pod:3551
16569 msgid ""
16570 "This command writes to part of a file.  It writes the data buffer C<content> "
16571 "to the file C<path> starting at offset C<offset>."
16572 msgstr ""
16573
16574 # type: textblock
16575 #. type: textblock
16576 #: ../src/guestfs-actions.pod:5316 ../fish/guestfish-actions.pod:3554
16577 msgid ""
16578 "This command implements the L<pwrite(2)> system call, and like that system "
16579 "call it may not write the full data requested.  The return value is the "
16580 "number of bytes that were actually written to the file.  This could even be "
16581 "0, although short writes are unlikely for regular files in ordinary "
16582 "circumstances."
16583 msgstr ""
16584
16585 # type: textblock
16586 #. type: textblock
16587 #: ../src/guestfs-actions.pod:5322
16588 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16589 msgstr ""
16590
16591 # type: =head2
16592 #. type: =head2
16593 #: ../src/guestfs-actions.pod:5331
16594 msgid "guestfs_pwrite_device"
16595 msgstr ""
16596
16597 # type: verbatim
16598 #. type: verbatim
16599 #: ../src/guestfs-actions.pod:5333
16600 #, no-wrap
16601 msgid ""
16602 " int\n"
16603 " guestfs_pwrite_device (guestfs_h *g,\n"
16604 "                        const char *device,\n"
16605 "                        const char *content,\n"
16606 "                        size_t content_size,\n"
16607 "                        int64_t offset);\n"
16608 "\n"
16609 msgstr ""
16610
16611 # type: textblock
16612 #. type: textblock
16613 #: ../src/guestfs-actions.pod:5340 ../fish/guestfish-actions.pod:3569
16614 msgid ""
16615 "This command writes to part of a device.  It writes the data buffer "
16616 "C<content> to C<device> starting at offset C<offset>."
16617 msgstr ""
16618
16619 # type: textblock
16620 #. type: textblock
16621 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:3572
16622 msgid ""
16623 "This command implements the L<pwrite(2)> system call, and like that system "
16624 "call it may not write the full data requested (although short writes to disk "
16625 "devices and partitions are probably impossible with standard Linux kernels)."
16626 msgstr ""
16627
16628 # type: textblock
16629 #. type: textblock
16630 #: ../src/guestfs-actions.pod:5348
16631 msgid "See also C<guestfs_pwrite>."
16632 msgstr ""
16633
16634 # type: textblock
16635 #. type: textblock
16636 #: ../src/guestfs-actions.pod:5355
16637 msgid "(Added in 1.5.20)"
16638 msgstr ""
16639
16640 # type: =head2
16641 #. type: =head2
16642 #: ../src/guestfs-actions.pod:5357
16643 msgid "guestfs_read_file"
16644 msgstr ""
16645
16646 # type: verbatim
16647 #. type: verbatim
16648 #: ../src/guestfs-actions.pod:5359
16649 #, no-wrap
16650 msgid ""
16651 " char *\n"
16652 " guestfs_read_file (guestfs_h *g,\n"
16653 "                    const char *path,\n"
16654 "                    size_t *size_r);\n"
16655 "\n"
16656 msgstr ""
16657
16658 # type: textblock
16659 #. type: textblock
16660 #: ../src/guestfs-actions.pod:5364 ../fish/guestfish-actions.pod:3586
16661 msgid "This calls returns the contents of the file C<path> as a buffer."
16662 msgstr ""
16663
16664 # type: textblock
16665 #. type: textblock
16666 #: ../src/guestfs-actions.pod:5367
16667 msgid ""
16668 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16669 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16670 "function is limited in the total size of file that can be handled."
16671 msgstr ""
16672
16673 # type: textblock
16674 #. type: textblock
16675 #: ../src/guestfs-actions.pod:5379
16676 msgid "(Added in 1.0.63)"
16677 msgstr ""
16678
16679 # type: =head2
16680 #. type: =head2
16681 #: ../src/guestfs-actions.pod:5381
16682 msgid "guestfs_read_lines"
16683 msgstr ""
16684
16685 # type: verbatim
16686 #. type: verbatim
16687 #: ../src/guestfs-actions.pod:5383
16688 #, no-wrap
16689 msgid ""
16690 " char **\n"
16691 " guestfs_read_lines (guestfs_h *g,\n"
16692 "                     const char *path);\n"
16693 "\n"
16694 msgstr ""
16695
16696 # type: textblock
16697 #. type: textblock
16698 #: ../src/guestfs-actions.pod:5389 ../fish/guestfish-actions.pod:3603
16699 msgid ""
16700 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16701 "C<CRLF> character sequences are I<not> returned."
16702 msgstr ""
16703
16704 # type: textblock
16705 #. type: textblock
16706 #: ../src/guestfs-actions.pod:5392
16707 msgid ""
16708 "Note that this function cannot correctly handle binary files (specifically, "
16709 "files containing C<\\0> character which is treated as end of line).  For "
16710 "those you need to use the C<guestfs_read_file> function which has a more "
16711 "complex interface."
16712 msgstr ""
16713
16714 # type: =head2
16715 #. type: =head2
16716 #: ../src/guestfs-actions.pod:5403
16717 msgid "guestfs_readdir"
16718 msgstr ""
16719
16720 # type: verbatim
16721 #. type: verbatim
16722 #: ../src/guestfs-actions.pod:5405
16723 #, no-wrap
16724 msgid ""
16725 " struct guestfs_dirent_list *\n"
16726 " guestfs_readdir (guestfs_h *g,\n"
16727 "                  const char *dir);\n"
16728 "\n"
16729 msgstr ""
16730
16731 # type: textblock
16732 #. type: textblock
16733 #: ../src/guestfs-actions.pod:5409 ../fish/guestfish-actions.pod:3615
16734 msgid "This returns the list of directory entries in directory C<dir>."
16735 msgstr ""
16736
16737 # type: textblock
16738 #. type: textblock
16739 #: ../src/guestfs-actions.pod:5411 ../fish/guestfish-actions.pod:3617
16740 msgid ""
16741 "All entries in the directory are returned, including C<.> and C<..>.  The "
16742 "entries are I<not> sorted, but returned in the same order as the underlying "
16743 "filesystem."
16744 msgstr ""
16745
16746 # type: textblock
16747 #. type: textblock
16748 #: ../src/guestfs-actions.pod:5415 ../fish/guestfish-actions.pod:3621
16749 msgid ""
16750 "Also this call returns basic file type information about each file.  The "
16751 "C<ftyp> field will contain one of the following characters:"
16752 msgstr ""
16753
16754 # type: =item
16755 #. type: =item
16756 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3626
16757 msgid "'b'"
16758 msgstr ""
16759
16760 # type: textblock
16761 #. type: textblock
16762 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3628
16763 msgid "Block special"
16764 msgstr ""
16765
16766 # type: =item
16767 #. type: =item
16768 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3630
16769 msgid "'c'"
16770 msgstr ""
16771
16772 # type: textblock
16773 #. type: textblock
16774 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3632
16775 msgid "Char special"
16776 msgstr ""
16777
16778 # type: =item
16779 #. type: =item
16780 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3634
16781 msgid "'d'"
16782 msgstr ""
16783
16784 # type: textblock
16785 #. type: textblock
16786 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3636
16787 msgid "Directory"
16788 msgstr ""
16789
16790 # type: =item
16791 #. type: =item
16792 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3638
16793 msgid "'f'"
16794 msgstr ""
16795
16796 # type: textblock
16797 #. type: textblock
16798 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3640
16799 msgid "FIFO (named pipe)"
16800 msgstr ""
16801
16802 # type: =item
16803 #. type: =item
16804 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3642
16805 msgid "'l'"
16806 msgstr ""
16807
16808 # type: textblock
16809 #. type: textblock
16810 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3644
16811 msgid "Symbolic link"
16812 msgstr ""
16813
16814 # type: =item
16815 #. type: =item
16816 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3646
16817 msgid "'r'"
16818 msgstr ""
16819
16820 # type: textblock
16821 #. type: textblock
16822 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3648
16823 msgid "Regular file"
16824 msgstr ""
16825
16826 # type: =item
16827 #. type: =item
16828 #: ../src/guestfs-actions.pod:5444 ../fish/guestfish-actions.pod:3650
16829 msgid "'s'"
16830 msgstr ""
16831
16832 # type: textblock
16833 #. type: textblock
16834 #: ../src/guestfs-actions.pod:5446 ../fish/guestfish-actions.pod:3652
16835 msgid "Socket"
16836 msgstr ""
16837
16838 # type: =item
16839 #. type: =item
16840 #: ../src/guestfs-actions.pod:5448 ../fish/guestfish-actions.pod:3654
16841 msgid "'u'"
16842 msgstr ""
16843
16844 # type: textblock
16845 #. type: textblock
16846 #: ../src/guestfs-actions.pod:5450 ../fish/guestfish-actions.pod:3656
16847 msgid "Unknown file type"
16848 msgstr ""
16849
16850 # type: =item
16851 #. type: =item
16852 #: ../src/guestfs-actions.pod:5452 ../fish/guestfish-actions.pod:3658
16853 msgid "'?'"
16854 msgstr ""
16855
16856 # type: textblock
16857 #. type: textblock
16858 #: ../src/guestfs-actions.pod:5454 ../fish/guestfish-actions.pod:3660
16859 msgid ""
16860 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16861 msgstr ""
16862
16863 # type: textblock
16864 #. type: textblock
16865 #: ../src/guestfs-actions.pod:5459
16866 msgid ""
16867 "This function is primarily intended for use by programs.  To get a simple "
16868 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16869 "consumption, use C<guestfs_ll>."
16870 msgstr ""
16871
16872 # type: textblock
16873 #. type: textblock
16874 #: ../src/guestfs-actions.pod:5463
16875 msgid ""
16876 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16877 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16878 msgstr ""
16879
16880 # type: =head2
16881 #. type: =head2
16882 #: ../src/guestfs-actions.pod:5469
16883 msgid "guestfs_readlink"
16884 msgstr ""
16885
16886 # type: verbatim
16887 #. type: verbatim
16888 #: ../src/guestfs-actions.pod:5471
16889 #, no-wrap
16890 msgid ""
16891 " char *\n"
16892 " guestfs_readlink (guestfs_h *g,\n"
16893 "                   const char *path);\n"
16894 "\n"
16895 msgstr ""
16896
16897 # type: textblock
16898 #. type: textblock
16899 #: ../src/guestfs-actions.pod:5475 ../fish/guestfish-actions.pod:3673
16900 msgid "This command reads the target of a symbolic link."
16901 msgstr ""
16902
16903 # type: =head2
16904 #. type: =head2
16905 #: ../src/guestfs-actions.pod:5482
16906 msgid "guestfs_readlinklist"
16907 msgstr ""
16908
16909 # type: verbatim
16910 #. type: verbatim
16911 #: ../src/guestfs-actions.pod:5484
16912 #, no-wrap
16913 msgid ""
16914 " char **\n"
16915 " guestfs_readlinklist (guestfs_h *g,\n"
16916 "                       const char *path,\n"
16917 "                       char *const *names);\n"
16918 "\n"
16919 msgstr ""
16920
16921 # type: textblock
16922 #. type: textblock
16923 #: ../src/guestfs-actions.pod:5489 ../fish/guestfish-actions.pod:3679
16924 msgid ""
16925 "This call allows you to do a C<readlink> operation on multiple files, where "
16926 "all files are in the directory C<path>.  C<names> is the list of files from "
16927 "this directory."
16928 msgstr ""
16929
16930 # type: textblock
16931 #. type: textblock
16932 #: ../src/guestfs-actions.pod:5493 ../fish/guestfish-actions.pod:3683
16933 msgid ""
16934 "On return you get a list of strings, with a one-to-one correspondence to the "
16935 "C<names> list.  Each string is the value of the symbolic link."
16936 msgstr ""
16937
16938 # type: textblock
16939 #. type: textblock
16940 #: ../src/guestfs-actions.pod:5497 ../fish/guestfish-actions.pod:3687
16941 msgid ""
16942 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16943 "result string is the empty string C<\"\">.  However the whole operation is "
16944 "completed even if there were C<readlink(2)> errors, and so you can call this "
16945 "function with names where you don't know if they are symbolic links already "
16946 "(albeit slightly less efficient)."
16947 msgstr ""
16948
16949 # type: textblock
16950 #. type: textblock
16951 #: ../src/guestfs-actions.pod:5504 ../fish/guestfish-actions.pod:3694
16952 msgid ""
16953 "This call is intended for programs that want to efficiently list a directory "
16954 "contents without making many round-trips.  Very long directory listings "
16955 "might cause the protocol message size to be exceeded, causing this call to "
16956 "fail.  The caller must split up such requests into smaller groups of names."
16957 msgstr ""
16958
16959 # type: =head2
16960 #. type: =head2
16961 #: ../src/guestfs-actions.pod:5517
16962 msgid "guestfs_realpath"
16963 msgstr ""
16964
16965 # type: verbatim
16966 #. type: verbatim
16967 #: ../src/guestfs-actions.pod:5519
16968 #, no-wrap
16969 msgid ""
16970 " char *\n"
16971 " guestfs_realpath (guestfs_h *g,\n"
16972 "                   const char *path);\n"
16973 "\n"
16974 msgstr ""
16975
16976 # type: textblock
16977 #. type: textblock
16978 #: ../src/guestfs-actions.pod:5523 ../fish/guestfish-actions.pod:3705
16979 msgid ""
16980 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16981 "has no C<.>, C<..> or symbolic link path elements."
16982 msgstr ""
16983
16984 # type: =head2
16985 #. type: =head2
16986 #: ../src/guestfs-actions.pod:5531
16987 msgid "guestfs_removexattr"
16988 msgstr ""
16989
16990 # type: verbatim
16991 #. type: verbatim
16992 #: ../src/guestfs-actions.pod:5533
16993 #, no-wrap
16994 msgid ""
16995 " int\n"
16996 " guestfs_removexattr (guestfs_h *g,\n"
16997 "                      const char *xattr,\n"
16998 "                      const char *path);\n"
16999 "\n"
17000 msgstr ""
17001
17002 # type: textblock
17003 #. type: textblock
17004 #: ../src/guestfs-actions.pod:5538 ../fish/guestfish-actions.pod:3712
17005 msgid ""
17006 "This call removes the extended attribute named C<xattr> of the file C<path>."
17007 msgstr ""
17008
17009 # type: textblock
17010 #. type: textblock
17011 #: ../src/guestfs-actions.pod:5541
17012 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
17013 msgstr ""
17014
17015 # type: =head2
17016 #. type: =head2
17017 #: ../src/guestfs-actions.pod:5547
17018 msgid "guestfs_resize2fs"
17019 msgstr ""
17020
17021 # type: verbatim
17022 #. type: verbatim
17023 #: ../src/guestfs-actions.pod:5549
17024 #, no-wrap
17025 msgid ""
17026 " int\n"
17027 " guestfs_resize2fs (guestfs_h *g,\n"
17028 "                    const char *device);\n"
17029 "\n"
17030 msgstr ""
17031
17032 # type: textblock
17033 #. type: textblock
17034 #: ../src/guestfs-actions.pod:5553 ../fish/guestfish-actions.pod:3721
17035 msgid ""
17036 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17037 "underlying device."
17038 msgstr ""
17039
17040 # type: textblock
17041 #. type: textblock
17042 #: ../src/guestfs-actions.pod:5556
17043 msgid ""
17044 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17045 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17046 "sometimes gives an error about this and sometimes not.  In any case, it is "
17047 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17048 msgstr ""
17049
17050 #. type: =head2
17051 #: ../src/guestfs-actions.pod:5566
17052 msgid "guestfs_resize2fs_M"
17053 msgstr ""
17054
17055 #. type: verbatim
17056 #: ../src/guestfs-actions.pod:5568
17057 #, no-wrap
17058 msgid ""
17059 " int\n"
17060 " guestfs_resize2fs_M (guestfs_h *g,\n"
17061 "                      const char *device);\n"
17062 "\n"
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../src/guestfs-actions.pod:5572
17067 msgid ""
17068 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17069 "resized to its minimum size.  This works like the C<-M> option to the "
17070 "C<resize2fs> command."
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../src/guestfs-actions.pod:5576
17075 msgid ""
17076 "To get the resulting size of the filesystem you should call "
17077 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17078 "These two numbers, multiplied together, give the resulting size of the "
17079 "minimal filesystem in bytes."
17080 msgstr ""
17081
17082 # type: =head2
17083 #. type: =head2
17084 #: ../src/guestfs-actions.pod:5583
17085 msgid "guestfs_resize2fs_size"
17086 msgstr ""
17087
17088 # type: verbatim
17089 #. type: verbatim
17090 #: ../src/guestfs-actions.pod:5585
17091 #, no-wrap
17092 msgid ""
17093 " int\n"
17094 " guestfs_resize2fs_size (guestfs_h *g,\n"
17095 "                         const char *device,\n"
17096 "                         int64_t size);\n"
17097 "\n"
17098 msgstr ""
17099
17100 # type: textblock
17101 #. type: textblock
17102 #: ../src/guestfs-actions.pod:5590
17103 msgid ""
17104 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17105 "to specify the new size (in bytes) explicitly."
17106 msgstr ""
17107
17108 # type: =head2
17109 #. type: =head2
17110 #: ../src/guestfs-actions.pod:5597
17111 msgid "guestfs_rm"
17112 msgstr ""
17113
17114 # type: verbatim
17115 #. type: verbatim
17116 #: ../src/guestfs-actions.pod:5599
17117 #, no-wrap
17118 msgid ""
17119 " int\n"
17120 " guestfs_rm (guestfs_h *g,\n"
17121 "             const char *path);\n"
17122 "\n"
17123 msgstr ""
17124
17125 # type: textblock
17126 #. type: textblock
17127 #: ../src/guestfs-actions.pod:5603 ../fish/guestfish-actions.pod:3754
17128 msgid "Remove the single file C<path>."
17129 msgstr ""
17130
17131 # type: =head2
17132 #. type: =head2
17133 #: ../src/guestfs-actions.pod:5609
17134 msgid "guestfs_rm_rf"
17135 msgstr ""
17136
17137 # type: verbatim
17138 #. type: verbatim
17139 #: ../src/guestfs-actions.pod:5611
17140 #, no-wrap
17141 msgid ""
17142 " int\n"
17143 " guestfs_rm_rf (guestfs_h *g,\n"
17144 "                const char *path);\n"
17145 "\n"
17146 msgstr ""
17147
17148 # type: textblock
17149 #. type: textblock
17150 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3760
17151 msgid ""
17152 "Remove the file or directory C<path>, recursively removing the contents if "
17153 "its a directory.  This is like the C<rm -rf> shell command."
17154 msgstr ""
17155
17156 # type: =head2
17157 #. type: =head2
17158 #: ../src/guestfs-actions.pod:5623
17159 msgid "guestfs_rmdir"
17160 msgstr ""
17161
17162 # type: verbatim
17163 #. type: verbatim
17164 #: ../src/guestfs-actions.pod:5625
17165 #, no-wrap
17166 msgid ""
17167 " int\n"
17168 " guestfs_rmdir (guestfs_h *g,\n"
17169 "                const char *path);\n"
17170 "\n"
17171 msgstr ""
17172
17173 # type: textblock
17174 #. type: textblock
17175 #: ../src/guestfs-actions.pod:5629 ../fish/guestfish-actions.pod:3768
17176 msgid "Remove the single directory C<path>."
17177 msgstr ""
17178
17179 # type: =head2
17180 #. type: =head2
17181 #: ../src/guestfs-actions.pod:5635
17182 msgid "guestfs_rmmountpoint"
17183 msgstr ""
17184
17185 # type: verbatim
17186 #. type: verbatim
17187 #: ../src/guestfs-actions.pod:5637
17188 #, no-wrap
17189 msgid ""
17190 " int\n"
17191 " guestfs_rmmountpoint (guestfs_h *g,\n"
17192 "                       const char *exemptpath);\n"
17193 "\n"
17194 msgstr ""
17195
17196 # type: textblock
17197 #. type: textblock
17198 #: ../src/guestfs-actions.pod:5641
17199 msgid ""
17200 "This calls removes a mountpoint that was previously created with "
17201 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17202 msgstr ""
17203
17204 # type: =head2
17205 #. type: =head2
17206 #: ../src/guestfs-actions.pod:5649
17207 msgid "guestfs_scrub_device"
17208 msgstr ""
17209
17210 # type: verbatim
17211 #. type: verbatim
17212 #: ../src/guestfs-actions.pod:5651
17213 #, no-wrap
17214 msgid ""
17215 " int\n"
17216 " guestfs_scrub_device (guestfs_h *g,\n"
17217 "                       const char *device);\n"
17218 "\n"
17219 msgstr ""
17220
17221 # type: textblock
17222 #. type: textblock
17223 #: ../src/guestfs-actions.pod:5655 ../fish/guestfish-actions.pod:3782
17224 msgid ""
17225 "This command writes patterns over C<device> to make data retrieval more "
17226 "difficult."
17227 msgstr ""
17228
17229 # type: textblock
17230 #. type: textblock
17231 #: ../src/guestfs-actions.pod:5658 ../src/guestfs-actions.pod:5679
17232 #: ../src/guestfs-actions.pod:5698 ../fish/guestfish-actions.pod:3785
17233 #: ../fish/guestfish-actions.pod:3800 ../fish/guestfish-actions.pod:3813
17234 msgid ""
17235 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17236 "more details."
17237 msgstr ""
17238
17239 # type: textblock
17240 #. type: textblock
17241 #: ../src/guestfs-actions.pod:5666 ../src/guestfs-actions.pod:5684
17242 #: ../src/guestfs-actions.pod:5703
17243 msgid "(Added in 1.0.52)"
17244 msgstr ""
17245
17246 # type: =head2
17247 #. type: =head2
17248 #: ../src/guestfs-actions.pod:5668
17249 msgid "guestfs_scrub_file"
17250 msgstr ""
17251
17252 # type: verbatim
17253 #. type: verbatim
17254 #: ../src/guestfs-actions.pod:5670
17255 #, no-wrap
17256 msgid ""
17257 " int\n"
17258 " guestfs_scrub_file (guestfs_h *g,\n"
17259 "                     const char *file);\n"
17260 "\n"
17261 msgstr ""
17262
17263 # type: textblock
17264 #. type: textblock
17265 #: ../src/guestfs-actions.pod:5674 ../fish/guestfish-actions.pod:3795
17266 msgid ""
17267 "This command writes patterns over a file to make data retrieval more "
17268 "difficult."
17269 msgstr ""
17270
17271 # type: textblock
17272 #. type: textblock
17273 #: ../src/guestfs-actions.pod:5677 ../fish/guestfish-actions.pod:3798
17274 msgid "The file is I<removed> after scrubbing."
17275 msgstr ""
17276
17277 # type: =head2
17278 #. type: =head2
17279 #: ../src/guestfs-actions.pod:5686
17280 msgid "guestfs_scrub_freespace"
17281 msgstr ""
17282
17283 # type: verbatim
17284 #. type: verbatim
17285 #: ../src/guestfs-actions.pod:5688
17286 #, no-wrap
17287 msgid ""
17288 " int\n"
17289 " guestfs_scrub_freespace (guestfs_h *g,\n"
17290 "                          const char *dir);\n"
17291 "\n"
17292 msgstr ""
17293
17294 # type: textblock
17295 #. type: textblock
17296 #: ../src/guestfs-actions.pod:5692
17297 msgid ""
17298 "This command creates the directory C<dir> and then fills it with files until "
17299 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17300 "and deletes them.  The intention is to scrub any free space on the partition "
17301 "containing C<dir>."
17302 msgstr ""
17303
17304 # type: =head2
17305 #. type: =head2
17306 #: ../src/guestfs-actions.pod:5705
17307 msgid "guestfs_set_append"
17308 msgstr ""
17309
17310 # type: verbatim
17311 #. type: verbatim
17312 #: ../src/guestfs-actions.pod:5707
17313 #, no-wrap
17314 msgid ""
17315 " int\n"
17316 " guestfs_set_append (guestfs_h *g,\n"
17317 "                     const char *append);\n"
17318 "\n"
17319 msgstr ""
17320
17321 # type: textblock
17322 #. type: textblock
17323 #: ../src/guestfs-actions.pod:5711 ../fish/guestfish-actions.pod:3822
17324 msgid ""
17325 "This function is used to add additional options to the guest kernel command "
17326 "line."
17327 msgstr ""
17328
17329 # type: textblock
17330 #. type: textblock
17331 #: ../src/guestfs-actions.pod:5714 ../fish/guestfish-actions.pod:3825
17332 msgid ""
17333 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17334 "environment variable."
17335 msgstr ""
17336
17337 # type: textblock
17338 #. type: textblock
17339 #: ../src/guestfs-actions.pod:5717 ../fish/guestfish-actions.pod:3828
17340 msgid ""
17341 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17342 "(libguestfs always adds a few of its own)."
17343 msgstr ""
17344
17345 #. type: =head2
17346 #: ../src/guestfs-actions.pod:5724
17347 msgid "guestfs_set_attach_method"
17348 msgstr ""
17349
17350 #. type: verbatim
17351 #: ../src/guestfs-actions.pod:5726
17352 #, no-wrap
17353 msgid ""
17354 " int\n"
17355 " guestfs_set_attach_method (guestfs_h *g,\n"
17356 "                            const char *attachmethod);\n"
17357 "\n"
17358 msgstr ""
17359
17360 #. type: textblock
17361 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3837
17362 msgid ""
17363 "Set the method that libguestfs uses to connect to the back end guestfsd "
17364 "daemon.  Possible methods are:"
17365 msgstr ""
17366
17367 #. type: textblock
17368 #: ../src/guestfs-actions.pod:5737 ../fish/guestfish-actions.pod:3844
17369 msgid ""
17370 "Launch an appliance and connect to it.  This is the ordinary method and the "
17371 "default."
17372 msgstr ""
17373
17374 #. type: =item
17375 #: ../src/guestfs-actions.pod:5740 ../fish/guestfish-actions.pod:3847
17376 msgid "C<unix:I<path>>"
17377 msgstr ""
17378
17379 #. type: textblock
17380 #: ../src/guestfs-actions.pod:5742 ../fish/guestfish-actions.pod:3849
17381 msgid "Connect to the Unix domain socket I<path>."
17382 msgstr ""
17383
17384 #. type: textblock
17385 #: ../src/guestfs-actions.pod:5744 ../fish/guestfish-actions.pod:3851
17386 msgid ""
17387 "This method lets you connect to an existing daemon or (using virtio-serial) "
17388 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
17389 "RUNNING DAEMONS>."
17390 msgstr ""
17391
17392 # type: =head2
17393 #. type: =head2
17394 #: ../src/guestfs-actions.pod:5752
17395 msgid "guestfs_set_autosync"
17396 msgstr ""
17397
17398 # type: verbatim
17399 #. type: verbatim
17400 #: ../src/guestfs-actions.pod:5754
17401 #, no-wrap
17402 msgid ""
17403 " int\n"
17404 " guestfs_set_autosync (guestfs_h *g,\n"
17405 "                       int autosync);\n"
17406 "\n"
17407 msgstr ""
17408
17409 #. type: textblock
17410 #: ../src/guestfs-actions.pod:5758 ../fish/guestfish-actions.pod:3863
17411 msgid ""
17412 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
17413 "effort attempt to make filesystems consistent and synchronized when the "
17414 "handle is closed (also if the program exits without closing handles)."
17415 msgstr ""
17416
17417 # type: textblock
17418 #. type: textblock
17419 #: ../src/guestfs-actions.pod:5763 ../fish/guestfish-actions.pod:3868
17420 msgid ""
17421 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17422 "disabled by default)."
17423 msgstr ""
17424
17425 # type: =head2
17426 #. type: =head2
17427 #: ../src/guestfs-actions.pod:5770
17428 msgid "guestfs_set_direct"
17429 msgstr ""
17430
17431 # type: verbatim
17432 #. type: verbatim
17433 #: ../src/guestfs-actions.pod:5772
17434 #, no-wrap
17435 msgid ""
17436 " int\n"
17437 " guestfs_set_direct (guestfs_h *g,\n"
17438 "                     int direct);\n"
17439 "\n"
17440 msgstr ""
17441
17442 # type: textblock
17443 #. type: textblock
17444 #: ../src/guestfs-actions.pod:5776 ../fish/guestfish-actions.pod:3877
17445 msgid ""
17446 "If the direct appliance mode flag is enabled, then stdin and stdout are "
17447 "passed directly through to the appliance once it is launched."
17448 msgstr ""
17449
17450 # type: textblock
17451 #. type: textblock
17452 #: ../src/guestfs-actions.pod:5780
17453 msgid ""
17454 "One consequence of this is that log messages aren't caught by the library "
17455 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
17456 "stdout."
17457 msgstr ""
17458
17459 # type: textblock
17460 #. type: textblock
17461 #: ../src/guestfs-actions.pod:5784 ../fish/guestfish-actions.pod:3885
17462 msgid "You probably don't want to use this unless you know what you are doing."
17463 msgstr ""
17464
17465 # type: textblock
17466 #. type: textblock
17467 #: ../src/guestfs-actions.pod:5787 ../fish/guestfish-actions.pod:3888
17468 msgid "The default is disabled."
17469 msgstr ""
17470
17471 # type: =head2
17472 #. type: =head2
17473 #: ../src/guestfs-actions.pod:5793
17474 msgid "guestfs_set_e2label"
17475 msgstr ""
17476
17477 # type: verbatim
17478 #. type: verbatim
17479 #: ../src/guestfs-actions.pod:5795
17480 #, no-wrap
17481 msgid ""
17482 " int\n"
17483 " guestfs_set_e2label (guestfs_h *g,\n"
17484 "                      const char *device,\n"
17485 "                      const char *label);\n"
17486 "\n"
17487 msgstr ""
17488
17489 # type: textblock
17490 #. type: textblock
17491 #: ../src/guestfs-actions.pod:5800 ../fish/guestfish-actions.pod:3894
17492 msgid ""
17493 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
17494 "C<label>.  Filesystem labels are limited to 16 characters."
17495 msgstr ""
17496
17497 # type: textblock
17498 #. type: textblock
17499 #: ../src/guestfs-actions.pod:5804
17500 msgid ""
17501 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17502 "the existing label on a filesystem."
17503 msgstr ""
17504
17505 # type: =head2
17506 #. type: =head2
17507 #: ../src/guestfs-actions.pod:5811
17508 msgid "guestfs_set_e2uuid"
17509 msgstr ""
17510
17511 # type: verbatim
17512 #. type: verbatim
17513 #: ../src/guestfs-actions.pod:5813
17514 #, no-wrap
17515 msgid ""
17516 " int\n"
17517 " guestfs_set_e2uuid (guestfs_h *g,\n"
17518 "                     const char *device,\n"
17519 "                     const char *uuid);\n"
17520 "\n"
17521 msgstr ""
17522
17523 # type: textblock
17524 #. type: textblock
17525 #: ../src/guestfs-actions.pod:5818 ../fish/guestfish-actions.pod:3905
17526 msgid ""
17527 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
17528 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
17529 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
17530 msgstr ""
17531
17532 # type: textblock
17533 #. type: textblock
17534 #: ../src/guestfs-actions.pod:5823
17535 msgid ""
17536 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17537 "the existing UUID of a filesystem."
17538 msgstr ""
17539
17540 # type: =head2
17541 #. type: =head2
17542 #: ../src/guestfs-actions.pod:5830
17543 msgid "guestfs_set_memsize"
17544 msgstr ""
17545
17546 # type: verbatim
17547 #. type: verbatim
17548 #: ../src/guestfs-actions.pod:5832
17549 #, no-wrap
17550 msgid ""
17551 " int\n"
17552 " guestfs_set_memsize (guestfs_h *g,\n"
17553 "                      int memsize);\n"
17554 "\n"
17555 msgstr ""
17556
17557 # type: textblock
17558 #. type: textblock
17559 #: ../src/guestfs-actions.pod:5836
17560 msgid ""
17561 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
17562 "This only has any effect if called before C<guestfs_launch>."
17563 msgstr ""
17564
17565 # type: textblock
17566 #. type: textblock
17567 #: ../src/guestfs-actions.pod:5840 ../fish/guestfish-actions.pod:3923
17568 msgid ""
17569 "You can also change this by setting the environment variable "
17570 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17571 msgstr ""
17572
17573 # type: =head2
17574 #. type: =head2
17575 #: ../src/guestfs-actions.pod:5851
17576 msgid "guestfs_set_network"
17577 msgstr ""
17578
17579 # type: verbatim
17580 #. type: verbatim
17581 #: ../src/guestfs-actions.pod:5853
17582 #, no-wrap
17583 msgid ""
17584 " int\n"
17585 " guestfs_set_network (guestfs_h *g,\n"
17586 "                      int network);\n"
17587 "\n"
17588 msgstr ""
17589
17590 # type: textblock
17591 #. type: textblock
17592 #: ../src/guestfs-actions.pod:5857 ../fish/guestfish-actions.pod:3936
17593 msgid ""
17594 "If C<network> is true, then the network is enabled in the libguestfs "
17595 "appliance.  The default is false."
17596 msgstr ""
17597
17598 # type: textblock
17599 #. type: textblock
17600 #: ../src/guestfs-actions.pod:5860 ../fish/guestfish-actions.pod:3939
17601 msgid ""
17602 "This affects whether commands are able to access the network (see L<guestfs"
17603 "(3)/RUNNING COMMANDS>)."
17604 msgstr ""
17605
17606 # type: textblock
17607 #. type: textblock
17608 #: ../src/guestfs-actions.pod:5863
17609 msgid ""
17610 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17611 "effect."
17612 msgstr ""
17613
17614 # type: =head2
17615 #. type: =head2
17616 #: ../src/guestfs-actions.pod:5870
17617 msgid "guestfs_set_path"
17618 msgstr ""
17619
17620 # type: verbatim
17621 #. type: verbatim
17622 #: ../src/guestfs-actions.pod:5872
17623 #, no-wrap
17624 msgid ""
17625 " int\n"
17626 " guestfs_set_path (guestfs_h *g,\n"
17627 "                   const char *searchpath);\n"
17628 "\n"
17629 msgstr ""
17630
17631 # type: textblock
17632 #. type: textblock
17633 #: ../src/guestfs-actions.pod:5876 ../fish/guestfish-actions.pod:3951
17634 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17635 msgstr ""
17636
17637 # type: textblock
17638 #. type: textblock
17639 #: ../src/guestfs-actions.pod:5878 ../fish/guestfish-actions.pod:3953
17640 msgid ""
17641 "The default is C<$libdir/guestfs> unless overridden by setting "
17642 "C<LIBGUESTFS_PATH> environment variable."
17643 msgstr ""
17644
17645 # type: textblock
17646 #. type: textblock
17647 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3956
17648 msgid "Setting C<path> to C<NULL> restores the default path."
17649 msgstr ""
17650
17651 # type: =head2
17652 #. type: =head2
17653 #: ../src/guestfs-actions.pod:5887
17654 msgid "guestfs_set_qemu"
17655 msgstr ""
17656
17657 # type: verbatim
17658 #. type: verbatim
17659 #: ../src/guestfs-actions.pod:5889
17660 #, no-wrap
17661 msgid ""
17662 " int\n"
17663 " guestfs_set_qemu (guestfs_h *g,\n"
17664 "                   const char *qemu);\n"
17665 "\n"
17666 msgstr ""
17667
17668 # type: textblock
17669 #. type: textblock
17670 #: ../src/guestfs-actions.pod:5893 ../fish/guestfish-actions.pod:3964
17671 msgid "Set the qemu binary that we will use."
17672 msgstr ""
17673
17674 # type: textblock
17675 #. type: textblock
17676 #: ../src/guestfs-actions.pod:5895 ../fish/guestfish-actions.pod:3966
17677 msgid ""
17678 "The default is chosen when the library was compiled by the configure script."
17679 msgstr ""
17680
17681 # type: textblock
17682 #. type: textblock
17683 #: ../src/guestfs-actions.pod:5898 ../fish/guestfish-actions.pod:3969
17684 msgid ""
17685 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17686 "variable."
17687 msgstr ""
17688
17689 # type: textblock
17690 #. type: textblock
17691 #: ../src/guestfs-actions.pod:5901 ../fish/guestfish-actions.pod:3972
17692 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17693 msgstr ""
17694
17695 # type: textblock
17696 #. type: textblock
17697 #: ../src/guestfs-actions.pod:5903 ../fish/guestfish-actions.pod:3974
17698 msgid ""
17699 "Note that you should call this function as early as possible after creating "
17700 "the handle.  This is because some pre-launch operations depend on testing "
17701 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17702 "don't retest features, and so you might see inconsistent results.  Using the "
17703 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17704 "the qemu binary at the same time as the handle is created."
17705 msgstr ""
17706
17707 # type: =head2
17708 #. type: =head2
17709 #: ../src/guestfs-actions.pod:5915
17710 msgid "guestfs_set_recovery_proc"
17711 msgstr ""
17712
17713 # type: verbatim
17714 #. type: verbatim
17715 #: ../src/guestfs-actions.pod:5917
17716 #, no-wrap
17717 msgid ""
17718 " int\n"
17719 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17720 "                            int recoveryproc);\n"
17721 "\n"
17722 msgstr ""
17723
17724 # type: textblock
17725 #. type: textblock
17726 #: ../src/guestfs-actions.pod:5921
17727 msgid ""
17728 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17729 "not create a recovery process.  The purpose of the recovery process is to "
17730 "stop runaway qemu processes in the case where the main program aborts "
17731 "abruptly."
17732 msgstr ""
17733
17734 # type: textblock
17735 #. type: textblock
17736 #: ../src/guestfs-actions.pod:5926
17737 msgid ""
17738 "This only has any effect if called before C<guestfs_launch>, and the default "
17739 "is true."
17740 msgstr ""
17741
17742 # type: textblock
17743 #. type: textblock
17744 #: ../src/guestfs-actions.pod:5929 ../fish/guestfish-actions.pod:3996
17745 msgid ""
17746 "About the only time when you would want to disable this is if the main "
17747 "process will fork itself into the background (\"daemonize\" itself).  In "
17748 "this case the recovery process thinks that the main program has disappeared "
17749 "and so kills qemu, which is not very helpful."
17750 msgstr ""
17751
17752 # type: =head2
17753 #. type: =head2
17754 #: ../src/guestfs-actions.pod:5939
17755 msgid "guestfs_set_selinux"
17756 msgstr ""
17757
17758 # type: verbatim
17759 #. type: verbatim
17760 #: ../src/guestfs-actions.pod:5941
17761 #, no-wrap
17762 msgid ""
17763 " int\n"
17764 " guestfs_set_selinux (guestfs_h *g,\n"
17765 "                      int selinux);\n"
17766 "\n"
17767 msgstr ""
17768
17769 # type: textblock
17770 #. type: textblock
17771 #: ../src/guestfs-actions.pod:5945 ../fish/guestfish-actions.pod:4008
17772 msgid ""
17773 "This sets the selinux flag that is passed to the appliance at boot time.  "
17774 "The default is C<selinux=0> (disabled)."
17775 msgstr ""
17776
17777 # type: textblock
17778 #. type: textblock
17779 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4011
17780 msgid ""
17781 "Note that if SELinux is enabled, it is always in Permissive mode "
17782 "(C<enforcing=0>)."
17783 msgstr ""
17784
17785 # type: =head2
17786 #. type: =head2
17787 #: ../src/guestfs-actions.pod:5958
17788 msgid "guestfs_set_trace"
17789 msgstr ""
17790
17791 # type: verbatim
17792 #. type: verbatim
17793 #: ../src/guestfs-actions.pod:5960
17794 #, no-wrap
17795 msgid ""
17796 " int\n"
17797 " guestfs_set_trace (guestfs_h *g,\n"
17798 "                    int trace);\n"
17799 "\n"
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../src/guestfs-actions.pod:5964 ../fish/guestfish-actions.pod:4023
17804 msgid ""
17805 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17806 "return values are traced."
17807 msgstr ""
17808
17809 # type: textblock
17810 #. type: textblock
17811 #: ../src/guestfs-actions.pod:5967 ../fish/guestfish-actions.pod:4026
17812 msgid ""
17813 "If you want to trace C API calls into libguestfs (and other libraries) then "
17814 "possibly a better way is to use the external ltrace(1) command."
17815 msgstr ""
17816
17817 # type: textblock
17818 #. type: textblock
17819 #: ../src/guestfs-actions.pod:5971 ../fish/guestfish-actions.pod:4030
17820 msgid ""
17821 "Command traces are disabled unless the environment variable "
17822 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../src/guestfs-actions.pod:5974
17827 msgid ""
17828 "Trace messages are normally sent to C<stderr>, unless you register a "
17829 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17830 msgstr ""
17831
17832 # type: =head2
17833 #. type: =head2
17834 #: ../src/guestfs-actions.pod:5982
17835 msgid "guestfs_set_verbose"
17836 msgstr ""
17837
17838 # type: verbatim
17839 #. type: verbatim
17840 #: ../src/guestfs-actions.pod:5984
17841 #, no-wrap
17842 msgid ""
17843 " int\n"
17844 " guestfs_set_verbose (guestfs_h *g,\n"
17845 "                      int verbose);\n"
17846 "\n"
17847 msgstr ""
17848
17849 #. type: textblock
17850 #: ../src/guestfs-actions.pod:5988 ../fish/guestfish-actions.pod:4043
17851 msgid "If C<verbose> is true, this turns on verbose messages."
17852 msgstr ""
17853
17854 # type: textblock
17855 #. type: textblock
17856 #: ../src/guestfs-actions.pod:5990 ../fish/guestfish-actions.pod:4045
17857 msgid ""
17858 "Verbose messages are disabled unless the environment variable "
17859 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17860 msgstr ""
17861
17862 #. type: textblock
17863 #: ../src/guestfs-actions.pod:5993
17864 msgid ""
17865 "Verbose messages are normally sent to C<stderr>, unless you register a "
17866 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17867 msgstr ""
17868
17869 # type: =head2
17870 #. type: =head2
17871 #: ../src/guestfs-actions.pod:6001
17872 msgid "guestfs_setcon"
17873 msgstr ""
17874
17875 # type: verbatim
17876 #. type: verbatim
17877 #: ../src/guestfs-actions.pod:6003
17878 #, no-wrap
17879 msgid ""
17880 " int\n"
17881 " guestfs_setcon (guestfs_h *g,\n"
17882 "                 const char *context);\n"
17883 "\n"
17884 msgstr ""
17885
17886 # type: textblock
17887 #. type: textblock
17888 #: ../src/guestfs-actions.pod:6007 ../fish/guestfish-actions.pod:4056
17889 msgid ""
17890 "This sets the SELinux security context of the daemon to the string "
17891 "C<context>."
17892 msgstr ""
17893
17894 # type: textblock
17895 #. type: textblock
17896 #: ../src/guestfs-actions.pod:6010 ../fish/guestfish-actions.pod:4059
17897 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17898 msgstr ""
17899
17900 # type: =head2
17901 #. type: =head2
17902 #: ../src/guestfs-actions.pod:6016
17903 msgid "guestfs_setxattr"
17904 msgstr ""
17905
17906 # type: verbatim
17907 #. type: verbatim
17908 #: ../src/guestfs-actions.pod:6018
17909 #, no-wrap
17910 msgid ""
17911 " int\n"
17912 " guestfs_setxattr (guestfs_h *g,\n"
17913 "                   const char *xattr,\n"
17914 "                   const char *val,\n"
17915 "                   int vallen,\n"
17916 "                   const char *path);\n"
17917 "\n"
17918 msgstr ""
17919
17920 # type: textblock
17921 #. type: textblock
17922 #: ../src/guestfs-actions.pod:6025 ../fish/guestfish-actions.pod:4065
17923 msgid ""
17924 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17925 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17926 msgstr ""
17927
17928 # type: textblock
17929 #. type: textblock
17930 #: ../src/guestfs-actions.pod:6029
17931 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17932 msgstr ""
17933
17934 # type: =head2
17935 #. type: =head2
17936 #: ../src/guestfs-actions.pod:6035
17937 msgid "guestfs_sfdisk"
17938 msgstr ""
17939
17940 # type: verbatim
17941 #. type: verbatim
17942 #: ../src/guestfs-actions.pod:6037
17943 #, no-wrap
17944 msgid ""
17945 " int\n"
17946 " guestfs_sfdisk (guestfs_h *g,\n"
17947 "                 const char *device,\n"
17948 "                 int cyls,\n"
17949 "                 int heads,\n"
17950 "                 int sectors,\n"
17951 "                 char *const *lines);\n"
17952 "\n"
17953 msgstr ""
17954
17955 # type: textblock
17956 #. type: textblock
17957 #: ../src/guestfs-actions.pod:6045 ../fish/guestfish-actions.pod:4075
17958 msgid ""
17959 "This is a direct interface to the L<sfdisk(8)> program for creating "
17960 "partitions on block devices."
17961 msgstr ""
17962
17963 # type: textblock
17964 #. type: textblock
17965 #: ../src/guestfs-actions.pod:6048 ../fish/guestfish-actions.pod:4078
17966 msgid "C<device> should be a block device, for example C</dev/sda>."
17967 msgstr ""
17968
17969 # type: textblock
17970 #. type: textblock
17971 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4080
17972 msgid ""
17973 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17974 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17975 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17976 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17977 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17978 "the kernel) cannot work out the right geometry and you will need to tell it."
17979 msgstr ""
17980
17981 # type: textblock
17982 #. type: textblock
17983 #: ../src/guestfs-actions.pod:6058 ../fish/guestfish-actions.pod:4088
17984 msgid ""
17985 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17986 "refer to the L<sfdisk(8)> manpage."
17987 msgstr ""
17988
17989 # type: textblock
17990 #. type: textblock
17991 #: ../src/guestfs-actions.pod:6061 ../fish/guestfish-actions.pod:4091
17992 msgid ""
17993 "To create a single partition occupying the whole disk, you would pass "
17994 "C<lines> as a single element list, when the single element being the string "
17995 "C<,> (comma)."
17996 msgstr ""
17997
17998 # type: textblock
17999 #. type: textblock
18000 #: ../src/guestfs-actions.pod:6065
18001 msgid ""
18002 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
18003 msgstr ""
18004
18005 # type: =head2
18006 #. type: =head2
18007 #: ../src/guestfs-actions.pod:6075
18008 msgid "guestfs_sfdiskM"
18009 msgstr ""
18010
18011 # type: verbatim
18012 #. type: verbatim
18013 #: ../src/guestfs-actions.pod:6077
18014 #, no-wrap
18015 msgid ""
18016 " int\n"
18017 " guestfs_sfdiskM (guestfs_h *g,\n"
18018 "                  const char *device,\n"
18019 "                  char *const *lines);\n"
18020 "\n"
18021 msgstr ""
18022
18023 # type: textblock
18024 #. type: textblock
18025 #: ../src/guestfs-actions.pod:6082
18026 msgid ""
18027 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
18028 "partition sizes are specified in megabytes only (rounded to the nearest "
18029 "cylinder) and you don't need to specify the cyls, heads and sectors "
18030 "parameters which were rarely if ever used anyway."
18031 msgstr ""
18032
18033 # type: textblock
18034 #. type: textblock
18035 #: ../src/guestfs-actions.pod:6088
18036 msgid ""
18037 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18038 "C<guestfs_part_disk>"
18039 msgstr ""
18040
18041 # type: =head2
18042 #. type: =head2
18043 #: ../src/guestfs-actions.pod:6098
18044 msgid "guestfs_sfdisk_N"
18045 msgstr ""
18046
18047 # type: verbatim
18048 #. type: verbatim
18049 #: ../src/guestfs-actions.pod:6100
18050 #, no-wrap
18051 msgid ""
18052 " int\n"
18053 " guestfs_sfdisk_N (guestfs_h *g,\n"
18054 "                   const char *device,\n"
18055 "                   int partnum,\n"
18056 "                   int cyls,\n"
18057 "                   int heads,\n"
18058 "                   int sectors,\n"
18059 "                   const char *line);\n"
18060 "\n"
18061 msgstr ""
18062
18063 # type: textblock
18064 #. type: textblock
18065 #: ../src/guestfs-actions.pod:6109 ../fish/guestfish-actions.pod:4121
18066 msgid ""
18067 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18068 "(note: C<n> counts from 1)."
18069 msgstr ""
18070
18071 # type: textblock
18072 #. type: textblock
18073 #: ../src/guestfs-actions.pod:6112
18074 msgid ""
18075 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18076 "for the cyls/heads/sectors parameters."
18077 msgstr ""
18078
18079 # type: textblock
18080 #. type: textblock
18081 #: ../src/guestfs-actions.pod:6115
18082 msgid "See also: C<guestfs_part_add>"
18083 msgstr ""
18084
18085 # type: =head2
18086 #. type: =head2
18087 #: ../src/guestfs-actions.pod:6124
18088 msgid "guestfs_sfdisk_disk_geometry"
18089 msgstr ""
18090
18091 # type: verbatim
18092 #. type: verbatim
18093 #: ../src/guestfs-actions.pod:6126
18094 #, no-wrap
18095 msgid ""
18096 " char *\n"
18097 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18098 "                               const char *device);\n"
18099 "\n"
18100 msgstr ""
18101
18102 # type: textblock
18103 #. type: textblock
18104 #: ../src/guestfs-actions.pod:6130
18105 msgid ""
18106 "This displays the disk geometry of C<device> read from the partition table.  "
18107 "Especially in the case where the underlying block device has been resized, "
18108 "this can be different from the kernel's idea of the geometry (see "
18109 "C<guestfs_sfdisk_kernel_geometry>)."
18110 msgstr ""
18111
18112 # type: textblock
18113 #. type: textblock
18114 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6151
18115 #: ../fish/guestfish-actions.pod:4141 ../fish/guestfish-actions.pod:4150
18116 msgid "The result is in human-readable format, and not designed to be parsed."
18117 msgstr ""
18118
18119 # type: =head2
18120 #. type: =head2
18121 #: ../src/guestfs-actions.pod:6143
18122 msgid "guestfs_sfdisk_kernel_geometry"
18123 msgstr ""
18124
18125 # type: verbatim
18126 #. type: verbatim
18127 #: ../src/guestfs-actions.pod:6145
18128 #, no-wrap
18129 msgid ""
18130 " char *\n"
18131 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18132 "                                 const char *device);\n"
18133 "\n"
18134 msgstr ""
18135
18136 # type: textblock
18137 #. type: textblock
18138 #: ../src/guestfs-actions.pod:6149 ../fish/guestfish-actions.pod:4148
18139 msgid "This displays the kernel's idea of the geometry of C<device>."
18140 msgstr ""
18141
18142 # type: =head2
18143 #. type: =head2
18144 #: ../src/guestfs-actions.pod:6159
18145 msgid "guestfs_sfdisk_l"
18146 msgstr ""
18147
18148 # type: verbatim
18149 #. type: verbatim
18150 #: ../src/guestfs-actions.pod:6161
18151 #, no-wrap
18152 msgid ""
18153 " char *\n"
18154 " guestfs_sfdisk_l (guestfs_h *g,\n"
18155 "                   const char *device);\n"
18156 "\n"
18157 msgstr ""
18158
18159 # type: textblock
18160 #. type: textblock
18161 #: ../src/guestfs-actions.pod:6165 ../fish/guestfish-actions.pod:4157
18162 msgid ""
18163 "This displays the partition table on C<device>, in the human-readable output "
18164 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18165 msgstr ""
18166
18167 # type: textblock
18168 #. type: textblock
18169 #: ../src/guestfs-actions.pod:6169
18170 msgid "See also: C<guestfs_part_list>"
18171 msgstr ""
18172
18173 # type: =head2
18174 #. type: =head2
18175 #: ../src/guestfs-actions.pod:6176
18176 msgid "guestfs_sh"
18177 msgstr ""
18178
18179 # type: verbatim
18180 #. type: verbatim
18181 #: ../src/guestfs-actions.pod:6178
18182 #, no-wrap
18183 msgid ""
18184 " char *\n"
18185 " guestfs_sh (guestfs_h *g,\n"
18186 "             const char *command);\n"
18187 "\n"
18188 msgstr ""
18189
18190 # type: textblock
18191 #. type: textblock
18192 #: ../src/guestfs-actions.pod:6182 ../fish/guestfish-actions.pod:4167
18193 msgid ""
18194 "This call runs a command from the guest filesystem via the guest's C</bin/"
18195 "sh>."
18196 msgstr ""
18197
18198 # type: textblock
18199 #. type: textblock
18200 #: ../src/guestfs-actions.pod:6185
18201 msgid "This is like C<guestfs_command>, but passes the command to:"
18202 msgstr ""
18203
18204 # type: verbatim
18205 #. type: verbatim
18206 #: ../src/guestfs-actions.pod:6187 ../fish/guestfish-actions.pod:4172
18207 #, no-wrap
18208 msgid ""
18209 " /bin/sh -c \"command\"\n"
18210 "\n"
18211 msgstr ""
18212
18213 # type: textblock
18214 #. type: textblock
18215 #: ../src/guestfs-actions.pod:6189 ../fish/guestfish-actions.pod:4174
18216 msgid ""
18217 "Depending on the guest's shell, this usually results in wildcards being "
18218 "expanded, shell expressions being interpolated and so on."
18219 msgstr ""
18220
18221 # type: textblock
18222 #. type: textblock
18223 #: ../src/guestfs-actions.pod:6193
18224 msgid "All the provisos about C<guestfs_command> apply to this call."
18225 msgstr ""
18226
18227 # type: =head2
18228 #. type: =head2
18229 #: ../src/guestfs-actions.pod:6200
18230 msgid "guestfs_sh_lines"
18231 msgstr ""
18232
18233 # type: verbatim
18234 #. type: verbatim
18235 #: ../src/guestfs-actions.pod:6202
18236 #, no-wrap
18237 msgid ""
18238 " char **\n"
18239 " guestfs_sh_lines (guestfs_h *g,\n"
18240 "                   const char *command);\n"
18241 "\n"
18242 msgstr ""
18243
18244 # type: textblock
18245 #. type: textblock
18246 #: ../src/guestfs-actions.pod:6206
18247 msgid ""
18248 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18249 "lines."
18250 msgstr ""
18251
18252 # type: textblock
18253 #. type: textblock
18254 #: ../src/guestfs-actions.pod:6209
18255 msgid "See also: C<guestfs_command_lines>"
18256 msgstr ""
18257
18258 # type: =head2
18259 #. type: =head2
18260 #: ../src/guestfs-actions.pod:6217
18261 msgid "guestfs_sleep"
18262 msgstr ""
18263
18264 # type: verbatim
18265 #. type: verbatim
18266 #: ../src/guestfs-actions.pod:6219
18267 #, no-wrap
18268 msgid ""
18269 " int\n"
18270 " guestfs_sleep (guestfs_h *g,\n"
18271 "                int secs);\n"
18272 "\n"
18273 msgstr ""
18274
18275 # type: textblock
18276 #. type: textblock
18277 #: ../src/guestfs-actions.pod:6223 ../fish/guestfish-actions.pod:4193
18278 msgid "Sleep for C<secs> seconds."
18279 msgstr ""
18280
18281 # type: textblock
18282 #. type: textblock
18283 #: ../src/guestfs-actions.pod:6227
18284 msgid "(Added in 1.0.41)"
18285 msgstr ""
18286
18287 # type: =head2
18288 #. type: =head2
18289 #: ../src/guestfs-actions.pod:6229 ../src/guestfs-structs.pod:109
18290 msgid "guestfs_stat"
18291 msgstr ""
18292
18293 # type: verbatim
18294 #. type: verbatim
18295 #: ../src/guestfs-actions.pod:6231
18296 #, no-wrap
18297 msgid ""
18298 " struct guestfs_stat *\n"
18299 " guestfs_stat (guestfs_h *g,\n"
18300 "               const char *path);\n"
18301 "\n"
18302 msgstr ""
18303
18304 # type: textblock
18305 #. type: textblock
18306 #: ../src/guestfs-actions.pod:6237 ../fish/guestfish-actions.pod:4201
18307 msgid "This is the same as the C<stat(2)> system call."
18308 msgstr ""
18309
18310 # type: =head2
18311 #. type: =head2
18312 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-structs.pod:135
18313 msgid "guestfs_statvfs"
18314 msgstr ""
18315
18316 # type: verbatim
18317 #. type: verbatim
18318 #: ../src/guestfs-actions.pod:6247
18319 #, no-wrap
18320 msgid ""
18321 " struct guestfs_statvfs *\n"
18322 " guestfs_statvfs (guestfs_h *g,\n"
18323 "                  const char *path);\n"
18324 "\n"
18325 msgstr ""
18326
18327 # type: textblock
18328 #. type: textblock
18329 #: ../src/guestfs-actions.pod:6251 ../fish/guestfish-actions.pod:4207
18330 msgid ""
18331 "Returns file system statistics for any mounted file system.  C<path> should "
18332 "be a file or directory in the mounted file system (typically it is the mount "
18333 "point itself, but it doesn't need to be)."
18334 msgstr ""
18335
18336 # type: textblock
18337 #. type: textblock
18338 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4211
18339 msgid "This is the same as the C<statvfs(2)> system call."
18340 msgstr ""
18341
18342 # type: textblock
18343 #. type: textblock
18344 #: ../src/guestfs-actions.pod:6257
18345 msgid ""
18346 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
18347 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18348 msgstr ""
18349
18350 # type: =head2
18351 #. type: =head2
18352 #: ../src/guestfs-actions.pod:6263
18353 msgid "guestfs_strings"
18354 msgstr ""
18355
18356 # type: verbatim
18357 #. type: verbatim
18358 #: ../src/guestfs-actions.pod:6265
18359 #, no-wrap
18360 msgid ""
18361 " char **\n"
18362 " guestfs_strings (guestfs_h *g,\n"
18363 "                  const char *path);\n"
18364 "\n"
18365 msgstr ""
18366
18367 # type: textblock
18368 #. type: textblock
18369 #: ../src/guestfs-actions.pod:6269 ../fish/guestfish-actions.pod:4217
18370 msgid ""
18371 "This runs the L<strings(1)> command on a file and returns the list of "
18372 "printable strings found."
18373 msgstr ""
18374
18375 # type: =head2
18376 #. type: =head2
18377 #: ../src/guestfs-actions.pod:6281
18378 msgid "guestfs_strings_e"
18379 msgstr ""
18380
18381 # type: verbatim
18382 #. type: verbatim
18383 #: ../src/guestfs-actions.pod:6283
18384 #, no-wrap
18385 msgid ""
18386 " char **\n"
18387 " guestfs_strings_e (guestfs_h *g,\n"
18388 "                    const char *encoding,\n"
18389 "                    const char *path);\n"
18390 "\n"
18391 msgstr ""
18392
18393 # type: textblock
18394 #. type: textblock
18395 #: ../src/guestfs-actions.pod:6288
18396 msgid ""
18397 "This is like the C<guestfs_strings> command, but allows you to specify the "
18398 "encoding of strings that are looked for in the source file C<path>."
18399 msgstr ""
18400
18401 # type: textblock
18402 #. type: textblock
18403 #: ../src/guestfs-actions.pod:6292 ../fish/guestfish-actions.pod:4231
18404 msgid "Allowed encodings are:"
18405 msgstr ""
18406
18407 # type: =item
18408 #. type: =item
18409 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4235
18410 msgid "s"
18411 msgstr ""
18412
18413 # type: textblock
18414 #. type: textblock
18415 #: ../src/guestfs-actions.pod:6298
18416 msgid ""
18417 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
18418 "ISO-8859-X (this is what C<guestfs_strings> uses)."
18419 msgstr ""
18420
18421 # type: =item
18422 #. type: =item
18423 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4240
18424 msgid "S"
18425 msgstr ""
18426
18427 # type: textblock
18428 #. type: textblock
18429 #: ../src/guestfs-actions.pod:6303 ../fish/guestfish-actions.pod:4242
18430 msgid "Single 8-bit-byte characters."
18431 msgstr ""
18432
18433 # type: =item
18434 #. type: =item
18435 #: ../src/guestfs-actions.pod:6305 ../fish/guestfish-actions.pod:4244
18436 msgid "b"
18437 msgstr ""
18438
18439 # type: textblock
18440 #. type: textblock
18441 #: ../src/guestfs-actions.pod:6307 ../fish/guestfish-actions.pod:4246
18442 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18443 msgstr ""
18444
18445 # type: =item
18446 #. type: =item
18447 #: ../src/guestfs-actions.pod:6310 ../fish/guestfish-actions.pod:4249
18448 msgid "l (lower case letter L)"
18449 msgstr ""
18450
18451 # type: textblock
18452 #. type: textblock
18453 #: ../src/guestfs-actions.pod:6312 ../fish/guestfish-actions.pod:4251
18454 msgid ""
18455 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
18456 "examining binaries in Windows guests."
18457 msgstr ""
18458
18459 # type: =item
18460 #. type: =item
18461 #: ../src/guestfs-actions.pod:6315 ../fish/guestfish-actions.pod:4254
18462 msgid "B"
18463 msgstr ""
18464
18465 # type: textblock
18466 #. type: textblock
18467 #: ../src/guestfs-actions.pod:6317 ../fish/guestfish-actions.pod:4256
18468 msgid "32-bit big endian such as UCS-4BE."
18469 msgstr ""
18470
18471 # type: =item
18472 #. type: =item
18473 #: ../src/guestfs-actions.pod:6319 ../fish/guestfish-actions.pod:4258
18474 msgid "L"
18475 msgstr ""
18476
18477 # type: textblock
18478 #. type: textblock
18479 #: ../src/guestfs-actions.pod:6321 ../fish/guestfish-actions.pod:4260
18480 msgid "32-bit little endian such as UCS-4LE."
18481 msgstr ""
18482
18483 # type: textblock
18484 #. type: textblock
18485 #: ../src/guestfs-actions.pod:6325 ../fish/guestfish-actions.pod:4264
18486 msgid "The returned strings are transcoded to UTF-8."
18487 msgstr ""
18488
18489 # type: =head2
18490 #. type: =head2
18491 #: ../src/guestfs-actions.pod:6336
18492 msgid "guestfs_swapoff_device"
18493 msgstr ""
18494
18495 # type: verbatim
18496 #. type: verbatim
18497 #: ../src/guestfs-actions.pod:6338
18498 #, no-wrap
18499 msgid ""
18500 " int\n"
18501 " guestfs_swapoff_device (guestfs_h *g,\n"
18502 "                         const char *device);\n"
18503 "\n"
18504 msgstr ""
18505
18506 # type: textblock
18507 #. type: textblock
18508 #: ../src/guestfs-actions.pod:6342
18509 msgid ""
18510 "This command disables the libguestfs appliance swap device or partition "
18511 "named C<device>.  See C<guestfs_swapon_device>."
18512 msgstr ""
18513
18514 # type: =head2
18515 #. type: =head2
18516 #: ../src/guestfs-actions.pod:6350
18517 msgid "guestfs_swapoff_file"
18518 msgstr ""
18519
18520 # type: verbatim
18521 #. type: verbatim
18522 #: ../src/guestfs-actions.pod:6352
18523 #, no-wrap
18524 msgid ""
18525 " int\n"
18526 " guestfs_swapoff_file (guestfs_h *g,\n"
18527 "                       const char *file);\n"
18528 "\n"
18529 msgstr ""
18530
18531 # type: textblock
18532 #. type: textblock
18533 #: ../src/guestfs-actions.pod:6356 ../fish/guestfish-actions.pod:4281
18534 msgid "This command disables the libguestfs appliance swap on file."
18535 msgstr ""
18536
18537 # type: =head2
18538 #. type: =head2
18539 #: ../src/guestfs-actions.pod:6362
18540 msgid "guestfs_swapoff_label"
18541 msgstr ""
18542
18543 # type: verbatim
18544 #. type: verbatim
18545 #: ../src/guestfs-actions.pod:6364
18546 #, no-wrap
18547 msgid ""
18548 " int\n"
18549 " guestfs_swapoff_label (guestfs_h *g,\n"
18550 "                        const char *label);\n"
18551 "\n"
18552 msgstr ""
18553
18554 # type: textblock
18555 #. type: textblock
18556 #: ../src/guestfs-actions.pod:6368 ../fish/guestfish-actions.pod:4287
18557 msgid ""
18558 "This command disables the libguestfs appliance swap on labeled swap "
18559 "partition."
18560 msgstr ""
18561
18562 # type: =head2
18563 #. type: =head2
18564 #: ../src/guestfs-actions.pod:6375
18565 msgid "guestfs_swapoff_uuid"
18566 msgstr ""
18567
18568 # type: verbatim
18569 #. type: verbatim
18570 #: ../src/guestfs-actions.pod:6377
18571 #, no-wrap
18572 msgid ""
18573 " int\n"
18574 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18575 "                       const char *uuid);\n"
18576 "\n"
18577 msgstr ""
18578
18579 # type: textblock
18580 #. type: textblock
18581 #: ../src/guestfs-actions.pod:6381 ../fish/guestfish-actions.pod:4294
18582 msgid ""
18583 "This command disables the libguestfs appliance swap partition with the given "
18584 "UUID."
18585 msgstr ""
18586
18587 # type: =head2
18588 #. type: =head2
18589 #: ../src/guestfs-actions.pod:6388
18590 msgid "guestfs_swapon_device"
18591 msgstr ""
18592
18593 # type: verbatim
18594 #. type: verbatim
18595 #: ../src/guestfs-actions.pod:6390
18596 #, no-wrap
18597 msgid ""
18598 " int\n"
18599 " guestfs_swapon_device (guestfs_h *g,\n"
18600 "                        const char *device);\n"
18601 "\n"
18602 msgstr ""
18603
18604 # type: textblock
18605 #. type: textblock
18606 #: ../src/guestfs-actions.pod:6394
18607 msgid ""
18608 "This command enables the libguestfs appliance to use the swap device or "
18609 "partition named C<device>.  The increased memory is made available for all "
18610 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
18611 msgstr ""
18612
18613 # type: textblock
18614 #. type: textblock
18615 #: ../src/guestfs-actions.pod:6399 ../fish/guestfish-actions.pod:4306
18616 msgid ""
18617 "Note that you should not swap to existing guest swap partitions unless you "
18618 "know what you are doing.  They may contain hibernation information, or other "
18619 "information that the guest doesn't want you to trash.  You also risk leaking "
18620 "information about the host to the guest this way.  Instead, attach a new "
18621 "host device to the guest and swap on that."
18622 msgstr ""
18623
18624 # type: =head2
18625 #. type: =head2
18626 #: ../src/guestfs-actions.pod:6410
18627 msgid "guestfs_swapon_file"
18628 msgstr ""
18629
18630 # type: verbatim
18631 #. type: verbatim
18632 #: ../src/guestfs-actions.pod:6412
18633 #, no-wrap
18634 msgid ""
18635 " int\n"
18636 " guestfs_swapon_file (guestfs_h *g,\n"
18637 "                      const char *file);\n"
18638 "\n"
18639 msgstr ""
18640
18641 # type: textblock
18642 #. type: textblock
18643 #: ../src/guestfs-actions.pod:6416
18644 msgid ""
18645 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
18646 "notes."
18647 msgstr ""
18648
18649 # type: =head2
18650 #. type: =head2
18651 #: ../src/guestfs-actions.pod:6423
18652 msgid "guestfs_swapon_label"
18653 msgstr ""
18654
18655 # type: verbatim
18656 #. type: verbatim
18657 #: ../src/guestfs-actions.pod:6425
18658 #, no-wrap
18659 msgid ""
18660 " int\n"
18661 " guestfs_swapon_label (guestfs_h *g,\n"
18662 "                       const char *label);\n"
18663 "\n"
18664 msgstr ""
18665
18666 # type: textblock
18667 #. type: textblock
18668 #: ../src/guestfs-actions.pod:6429
18669 msgid ""
18670 "This command enables swap to a labeled swap partition.  See "
18671 "C<guestfs_swapon_device> for other notes."
18672 msgstr ""
18673
18674 # type: =head2
18675 #. type: =head2
18676 #: ../src/guestfs-actions.pod:6436
18677 msgid "guestfs_swapon_uuid"
18678 msgstr ""
18679
18680 # type: verbatim
18681 #. type: verbatim
18682 #: ../src/guestfs-actions.pod:6438
18683 #, no-wrap
18684 msgid ""
18685 " int\n"
18686 " guestfs_swapon_uuid (guestfs_h *g,\n"
18687 "                      const char *uuid);\n"
18688 "\n"
18689 msgstr ""
18690
18691 # type: textblock
18692 #. type: textblock
18693 #: ../src/guestfs-actions.pod:6442
18694 msgid ""
18695 "This command enables swap to a swap partition with the given UUID.  See "
18696 "C<guestfs_swapon_device> for other notes."
18697 msgstr ""
18698
18699 # type: =head2
18700 #. type: =head2
18701 #: ../src/guestfs-actions.pod:6449
18702 msgid "guestfs_sync"
18703 msgstr ""
18704
18705 # type: verbatim
18706 #. type: verbatim
18707 #: ../src/guestfs-actions.pod:6451
18708 #, no-wrap
18709 msgid ""
18710 " int\n"
18711 " guestfs_sync (guestfs_h *g);\n"
18712 "\n"
18713 msgstr ""
18714
18715 # type: textblock
18716 #. type: textblock
18717 #: ../src/guestfs-actions.pod:6454 ../fish/guestfish-actions.pod:4338
18718 msgid ""
18719 "This syncs the disk, so that any writes are flushed through to the "
18720 "underlying disk image."
18721 msgstr ""
18722
18723 # type: textblock
18724 #. type: textblock
18725 #: ../src/guestfs-actions.pod:6457 ../fish/guestfish-actions.pod:4341
18726 msgid ""
18727 "You should always call this if you have modified a disk image, before "
18728 "closing the handle."
18729 msgstr ""
18730
18731 # type: =head2
18732 #. type: =head2
18733 #: ../src/guestfs-actions.pod:6464
18734 msgid "guestfs_tail"
18735 msgstr ""
18736
18737 # type: verbatim
18738 #. type: verbatim
18739 #: ../src/guestfs-actions.pod:6466
18740 #, no-wrap
18741 msgid ""
18742 " char **\n"
18743 " guestfs_tail (guestfs_h *g,\n"
18744 "               const char *path);\n"
18745 "\n"
18746 msgstr ""
18747
18748 # type: textblock
18749 #. type: textblock
18750 #: ../src/guestfs-actions.pod:6470 ../fish/guestfish-actions.pod:4348
18751 msgid ""
18752 "This command returns up to the last 10 lines of a file as a list of strings."
18753 msgstr ""
18754
18755 # type: =head2
18756 #. type: =head2
18757 #: ../src/guestfs-actions.pod:6482
18758 msgid "guestfs_tail_n"
18759 msgstr ""
18760
18761 # type: verbatim
18762 #. type: verbatim
18763 #: ../src/guestfs-actions.pod:6484
18764 #, no-wrap
18765 msgid ""
18766 " char **\n"
18767 " guestfs_tail_n (guestfs_h *g,\n"
18768 "                 int nrlines,\n"
18769 "                 const char *path);\n"
18770 "\n"
18771 msgstr ""
18772
18773 # type: textblock
18774 #. type: textblock
18775 #: ../src/guestfs-actions.pod:6489 ../fish/guestfish-actions.pod:4358
18776 msgid ""
18777 "If the parameter C<nrlines> is a positive number, this returns the last "
18778 "C<nrlines> lines of the file C<path>."
18779 msgstr ""
18780
18781 # type: textblock
18782 #. type: textblock
18783 #: ../src/guestfs-actions.pod:6492 ../fish/guestfish-actions.pod:4361
18784 msgid ""
18785 "If the parameter C<nrlines> is a negative number, this returns lines from "
18786 "the file C<path>, starting with the C<-nrlines>th line."
18787 msgstr ""
18788
18789 # type: =head2
18790 #. type: =head2
18791 #: ../src/guestfs-actions.pod:6506
18792 msgid "guestfs_tar_in"
18793 msgstr ""
18794
18795 # type: verbatim
18796 #. type: verbatim
18797 #: ../src/guestfs-actions.pod:6508
18798 #, no-wrap
18799 msgid ""
18800 " int\n"
18801 " guestfs_tar_in (guestfs_h *g,\n"
18802 "                 const char *tarfile,\n"
18803 "                 const char *directory);\n"
18804 "\n"
18805 msgstr ""
18806
18807 # type: textblock
18808 #. type: textblock
18809 #: ../src/guestfs-actions.pod:6513 ../fish/guestfish-actions.pod:4373
18810 msgid ""
18811 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18812 "tar file) into C<directory>."
18813 msgstr ""
18814
18815 # type: textblock
18816 #. type: textblock
18817 #: ../src/guestfs-actions.pod:6516
18818 msgid ""
18819 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18820 msgstr ""
18821
18822 # type: textblock
18823 #. type: textblock
18824 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6538
18825 #: ../src/guestfs-actions.pod:6554 ../src/guestfs-actions.pod:6570
18826 msgid "(Added in 1.0.3)"
18827 msgstr ""
18828
18829 # type: =head2
18830 #. type: =head2
18831 #: ../src/guestfs-actions.pod:6523
18832 msgid "guestfs_tar_out"
18833 msgstr ""
18834
18835 # type: verbatim
18836 #. type: verbatim
18837 #: ../src/guestfs-actions.pod:6525
18838 #, no-wrap
18839 msgid ""
18840 " int\n"
18841 " guestfs_tar_out (guestfs_h *g,\n"
18842 "                  const char *directory,\n"
18843 "                  const char *tarfile);\n"
18844 "\n"
18845 msgstr ""
18846
18847 # type: textblock
18848 #. type: textblock
18849 #: ../src/guestfs-actions.pod:6530 ../fish/guestfish-actions.pod:4385
18850 msgid ""
18851 "This command packs the contents of C<directory> and downloads it to local "
18852 "file C<tarfile>."
18853 msgstr ""
18854
18855 # type: textblock
18856 #. type: textblock
18857 #: ../src/guestfs-actions.pod:6533
18858 msgid ""
18859 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18860 "C<guestfs_txz_out>."
18861 msgstr ""
18862
18863 # type: =head2
18864 #. type: =head2
18865 #: ../src/guestfs-actions.pod:6540
18866 msgid "guestfs_tgz_in"
18867 msgstr ""
18868
18869 # type: verbatim
18870 #. type: verbatim
18871 #: ../src/guestfs-actions.pod:6542
18872 #, no-wrap
18873 msgid ""
18874 " int\n"
18875 " guestfs_tgz_in (guestfs_h *g,\n"
18876 "                 const char *tarball,\n"
18877 "                 const char *directory);\n"
18878 "\n"
18879 msgstr ""
18880
18881 # type: textblock
18882 #. type: textblock
18883 #: ../src/guestfs-actions.pod:6547 ../fish/guestfish-actions.pod:4397
18884 msgid ""
18885 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18886 "tar file) into C<directory>."
18887 msgstr ""
18888
18889 # type: textblock
18890 #. type: textblock
18891 #: ../src/guestfs-actions.pod:6550
18892 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18893 msgstr ""
18894
18895 # type: =head2
18896 #. type: =head2
18897 #: ../src/guestfs-actions.pod:6556
18898 msgid "guestfs_tgz_out"
18899 msgstr ""
18900
18901 # type: verbatim
18902 #. type: verbatim
18903 #: ../src/guestfs-actions.pod:6558
18904 #, no-wrap
18905 msgid ""
18906 " int\n"
18907 " guestfs_tgz_out (guestfs_h *g,\n"
18908 "                  const char *directory,\n"
18909 "                  const char *tarball);\n"
18910 "\n"
18911 msgstr ""
18912
18913 # type: textblock
18914 #. type: textblock
18915 #: ../src/guestfs-actions.pod:6563 ../fish/guestfish-actions.pod:4408
18916 msgid ""
18917 "This command packs the contents of C<directory> and downloads it to local "
18918 "file C<tarball>."
18919 msgstr ""
18920
18921 # type: textblock
18922 #. type: textblock
18923 #: ../src/guestfs-actions.pod:6566
18924 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18925 msgstr ""
18926
18927 # type: =head2
18928 #. type: =head2
18929 #: ../src/guestfs-actions.pod:6572
18930 msgid "guestfs_touch"
18931 msgstr ""
18932
18933 # type: verbatim
18934 #. type: verbatim
18935 #: ../src/guestfs-actions.pod:6574
18936 #, no-wrap
18937 msgid ""
18938 " int\n"
18939 " guestfs_touch (guestfs_h *g,\n"
18940 "                const char *path);\n"
18941 "\n"
18942 msgstr ""
18943
18944 # type: textblock
18945 #. type: textblock
18946 #: ../src/guestfs-actions.pod:6578 ../fish/guestfish-actions.pod:4419
18947 msgid ""
18948 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18949 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18950 "length file."
18951 msgstr ""
18952
18953 # type: textblock
18954 #. type: textblock
18955 #: ../src/guestfs-actions.pod:6582 ../fish/guestfish-actions.pod:4423
18956 msgid ""
18957 "This command only works on regular files, and will fail on other file types "
18958 "such as directories, symbolic links, block special etc."
18959 msgstr ""
18960
18961 # type: =head2
18962 #. type: =head2
18963 #: ../src/guestfs-actions.pod:6589
18964 msgid "guestfs_truncate"
18965 msgstr ""
18966
18967 # type: verbatim
18968 #. type: verbatim
18969 #: ../src/guestfs-actions.pod:6591
18970 #, no-wrap
18971 msgid ""
18972 " int\n"
18973 " guestfs_truncate (guestfs_h *g,\n"
18974 "                   const char *path);\n"
18975 "\n"
18976 msgstr ""
18977
18978 # type: textblock
18979 #. type: textblock
18980 #: ../src/guestfs-actions.pod:6595 ../fish/guestfish-actions.pod:4430
18981 msgid ""
18982 "This command truncates C<path> to a zero-length file.  The file must exist "
18983 "already."
18984 msgstr ""
18985
18986 # type: =head2
18987 #. type: =head2
18988 #: ../src/guestfs-actions.pod:6602
18989 msgid "guestfs_truncate_size"
18990 msgstr ""
18991
18992 # type: verbatim
18993 #. type: verbatim
18994 #: ../src/guestfs-actions.pod:6604
18995 #, no-wrap
18996 msgid ""
18997 " int\n"
18998 " guestfs_truncate_size (guestfs_h *g,\n"
18999 "                        const char *path,\n"
19000 "                        int64_t size);\n"
19001 "\n"
19002 msgstr ""
19003
19004 # type: textblock
19005 #. type: textblock
19006 #: ../src/guestfs-actions.pod:6609 ../fish/guestfish-actions.pod:4437
19007 msgid ""
19008 "This command truncates C<path> to size C<size> bytes.  The file must exist "
19009 "already."
19010 msgstr ""
19011
19012 # type: textblock
19013 #. type: textblock
19014 #: ../src/guestfs-actions.pod:6612
19015 msgid ""
19016 "If the current file size is less than C<size> then the file is extended to "
19017 "the required size with zero bytes.  This creates a sparse file (ie. disk "
19018 "blocks are not allocated for the file until you write to it).  To create a "
19019 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
19020 msgstr ""
19021
19022 # type: =head2
19023 #. type: =head2
19024 #: ../src/guestfs-actions.pod:6622
19025 msgid "guestfs_tune2fs_l"
19026 msgstr ""
19027
19028 # type: verbatim
19029 #. type: verbatim
19030 #: ../src/guestfs-actions.pod:6624
19031 #, no-wrap
19032 msgid ""
19033 " char **\n"
19034 " guestfs_tune2fs_l (guestfs_h *g,\n"
19035 "                    const char *device);\n"
19036 "\n"
19037 msgstr ""
19038
19039 # type: textblock
19040 #. type: textblock
19041 #: ../src/guestfs-actions.pod:6628 ../fish/guestfish-actions.pod:4450
19042 msgid ""
19043 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19044 "C<device>."
19045 msgstr ""
19046
19047 # type: textblock
19048 #. type: textblock
19049 #: ../src/guestfs-actions.pod:6631 ../fish/guestfish-actions.pod:4453
19050 msgid ""
19051 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19052 "for more details.  The list of fields returned isn't clearly defined, and "
19053 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19054 "and the filesystem itself."
19055 msgstr ""
19056
19057 # type: =head2
19058 #. type: =head2
19059 #: ../src/guestfs-actions.pod:6644
19060 msgid "guestfs_txz_in"
19061 msgstr ""
19062
19063 # type: verbatim
19064 #. type: verbatim
19065 #: ../src/guestfs-actions.pod:6646
19066 #, no-wrap
19067 msgid ""
19068 " int\n"
19069 " guestfs_txz_in (guestfs_h *g,\n"
19070 "                 const char *tarball,\n"
19071 "                 const char *directory);\n"
19072 "\n"
19073 msgstr ""
19074
19075 # type: textblock
19076 #. type: textblock
19077 #: ../src/guestfs-actions.pod:6651 ../fish/guestfish-actions.pod:4462
19078 msgid ""
19079 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19080 "tar file) into C<directory>."
19081 msgstr ""
19082
19083 # type: =head2
19084 #. type: =head2
19085 #: ../src/guestfs-actions.pod:6658
19086 msgid "guestfs_txz_out"
19087 msgstr ""
19088
19089 # type: verbatim
19090 #. type: verbatim
19091 #: ../src/guestfs-actions.pod:6660
19092 #, no-wrap
19093 msgid ""
19094 " int\n"
19095 " guestfs_txz_out (guestfs_h *g,\n"
19096 "                  const char *directory,\n"
19097 "                  const char *tarball);\n"
19098 "\n"
19099 msgstr ""
19100
19101 # type: textblock
19102 #. type: textblock
19103 #: ../src/guestfs-actions.pod:6665 ../fish/guestfish-actions.pod:4471
19104 msgid ""
19105 "This command packs the contents of C<directory> and downloads it to local "
19106 "file C<tarball> (as an xz compressed tar archive)."
19107 msgstr ""
19108
19109 # type: =head2
19110 #. type: =head2
19111 #: ../src/guestfs-actions.pod:6672
19112 msgid "guestfs_umask"
19113 msgstr ""
19114
19115 # type: verbatim
19116 #. type: verbatim
19117 #: ../src/guestfs-actions.pod:6674
19118 #, no-wrap
19119 msgid ""
19120 " int\n"
19121 " guestfs_umask (guestfs_h *g,\n"
19122 "                int mask);\n"
19123 "\n"
19124 msgstr ""
19125
19126 # type: textblock
19127 #. type: textblock
19128 #: ../src/guestfs-actions.pod:6678 ../fish/guestfish-actions.pod:4480
19129 msgid ""
19130 "This function sets the mask used for creating new files and device nodes to "
19131 "C<mask & 0777>."
19132 msgstr ""
19133
19134 # type: textblock
19135 #. type: textblock
19136 #: ../src/guestfs-actions.pod:6681 ../fish/guestfish-actions.pod:4483
19137 msgid ""
19138 "Typical umask values would be C<022> which creates new files with "
19139 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19140 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19141 msgstr ""
19142
19143 # type: textblock
19144 #. type: textblock
19145 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4488
19146 msgid ""
19147 "The default umask is C<022>.  This is important because it means that "
19148 "directories and device nodes will be created with C<0644> or C<0755> mode "
19149 "even if you specify C<0777>."
19150 msgstr ""
19151
19152 # type: textblock
19153 #. type: textblock
19154 #: ../src/guestfs-actions.pod:6690
19155 msgid ""
19156 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19157 "C<guestfs_mkdir>."
19158 msgstr ""
19159
19160 # type: textblock
19161 #. type: textblock
19162 #: ../src/guestfs-actions.pod:6693 ../fish/guestfish-actions.pod:4495
19163 msgid "This call returns the previous umask."
19164 msgstr ""
19165
19166 # type: =head2
19167 #. type: =head2
19168 #: ../src/guestfs-actions.pod:6699
19169 msgid "guestfs_umount"
19170 msgstr ""
19171
19172 # type: verbatim
19173 #. type: verbatim
19174 #: ../src/guestfs-actions.pod:6701
19175 #, no-wrap
19176 msgid ""
19177 " int\n"
19178 " guestfs_umount (guestfs_h *g,\n"
19179 "                 const char *pathordevice);\n"
19180 "\n"
19181 msgstr ""
19182
19183 # type: textblock
19184 #. type: textblock
19185 #: ../src/guestfs-actions.pod:6705 ../fish/guestfish-actions.pod:4503
19186 msgid ""
19187 "This unmounts the given filesystem.  The filesystem may be specified either "
19188 "by its mountpoint (path) or the device which contains the filesystem."
19189 msgstr ""
19190
19191 # type: =head2
19192 #. type: =head2
19193 #: ../src/guestfs-actions.pod:6713
19194 msgid "guestfs_umount_all"
19195 msgstr ""
19196
19197 # type: verbatim
19198 #. type: verbatim
19199 #: ../src/guestfs-actions.pod:6715
19200 #, no-wrap
19201 msgid ""
19202 " int\n"
19203 " guestfs_umount_all (guestfs_h *g);\n"
19204 "\n"
19205 msgstr ""
19206
19207 # type: textblock
19208 #. type: textblock
19209 #: ../src/guestfs-actions.pod:6718 ../fish/guestfish-actions.pod:4513
19210 msgid "This unmounts all mounted filesystems."
19211 msgstr ""
19212
19213 # type: textblock
19214 #. type: textblock
19215 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4515
19216 msgid "Some internal mounts are not unmounted by this call."
19217 msgstr ""
19218
19219 # type: =head2
19220 #. type: =head2
19221 #: ../src/guestfs-actions.pod:6726
19222 msgid "guestfs_upload"
19223 msgstr ""
19224
19225 # type: verbatim
19226 #. type: verbatim
19227 #: ../src/guestfs-actions.pod:6728
19228 #, no-wrap
19229 msgid ""
19230 " int\n"
19231 " guestfs_upload (guestfs_h *g,\n"
19232 "                 const char *filename,\n"
19233 "                 const char *remotefilename);\n"
19234 "\n"
19235 msgstr ""
19236
19237 # type: textblock
19238 #. type: textblock
19239 #: ../src/guestfs-actions.pod:6733 ../src/guestfs-actions.pod:6757
19240 #: ../fish/guestfish-actions.pod:4521 ../fish/guestfish-actions.pod:4534
19241 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19242 msgstr ""
19243
19244 # type: textblock
19245 #. type: textblock
19246 #: ../src/guestfs-actions.pod:6738
19247 msgid "See also C<guestfs_download>."
19248 msgstr ""
19249
19250 # type: =head2
19251 #. type: =head2
19252 #: ../src/guestfs-actions.pod:6749
19253 msgid "guestfs_upload_offset"
19254 msgstr ""
19255
19256 # type: verbatim
19257 #. type: verbatim
19258 #: ../src/guestfs-actions.pod:6751
19259 #, no-wrap
19260 msgid ""
19261 " int\n"
19262 " guestfs_upload_offset (guestfs_h *g,\n"
19263 "                        const char *filename,\n"
19264 "                        const char *remotefilename,\n"
19265 "                        int64_t offset);\n"
19266 "\n"
19267 msgstr ""
19268
19269 # type: textblock
19270 #. type: textblock
19271 #: ../src/guestfs-actions.pod:6760 ../fish/guestfish-actions.pod:4537
19272 msgid ""
19273 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19274 "The intention is to overwrite parts of existing files or devices, although "
19275 "if a non-existant file is specified then it is created with a \"hole\" "
19276 "before C<offset>.  The size of the data written is implicit in the size of "
19277 "the source C<filename>."
19278 msgstr ""
19279
19280 # type: textblock
19281 #. type: textblock
19282 #: ../src/guestfs-actions.pod:6767
19283 msgid ""
19284 "Note that there is no limit on the amount of data that can be uploaded with "
19285 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19286 "full amount unless an error occurs."
19287 msgstr ""
19288
19289 # type: textblock
19290 #. type: textblock
19291 #: ../src/guestfs-actions.pod:6772
19292 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19293 msgstr ""
19294
19295 # type: =head2
19296 #. type: =head2
19297 #: ../src/guestfs-actions.pod:6783
19298 msgid "guestfs_utimens"
19299 msgstr ""
19300
19301 # type: verbatim
19302 #. type: verbatim
19303 #: ../src/guestfs-actions.pod:6785
19304 #, no-wrap
19305 msgid ""
19306 " int\n"
19307 " guestfs_utimens (guestfs_h *g,\n"
19308 "                  const char *path,\n"
19309 "                  int64_t atsecs,\n"
19310 "                  int64_t atnsecs,\n"
19311 "                  int64_t mtsecs,\n"
19312 "                  int64_t mtnsecs);\n"
19313 "\n"
19314 msgstr ""
19315
19316 # type: textblock
19317 #. type: textblock
19318 #: ../src/guestfs-actions.pod:6793 ../fish/guestfish-actions.pod:4557
19319 msgid "This command sets the timestamps of a file with nanosecond precision."
19320 msgstr ""
19321
19322 # type: textblock
19323 #. type: textblock
19324 #: ../src/guestfs-actions.pod:6796 ../fish/guestfish-actions.pod:4560
19325 msgid ""
19326 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
19327 "from the epoch."
19328 msgstr ""
19329
19330 # type: textblock
19331 #. type: textblock
19332 #: ../src/guestfs-actions.pod:6799 ../fish/guestfish-actions.pod:4563
19333 msgid ""
19334 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
19335 "nanoseconds from the epoch."
19336 msgstr ""
19337
19338 # type: textblock
19339 #. type: textblock
19340 #: ../src/guestfs-actions.pod:6802 ../fish/guestfish-actions.pod:4566
19341 msgid ""
19342 "If the C<*nsecs> field contains the special value C<-1> then the "
19343 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
19344 "ignored in this case)."
19345 msgstr ""
19346
19347 # type: textblock
19348 #. type: textblock
19349 #: ../src/guestfs-actions.pod:6806 ../fish/guestfish-actions.pod:4570
19350 msgid ""
19351 "If the C<*nsecs> field contains the special value C<-2> then the "
19352 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
19353 "in this case)."
19354 msgstr ""
19355
19356 # type: =head2
19357 #. type: =head2
19358 #: ../src/guestfs-actions.pod:6814 ../src/guestfs-structs.pod:175
19359 msgid "guestfs_version"
19360 msgstr ""
19361
19362 # type: verbatim
19363 #. type: verbatim
19364 #: ../src/guestfs-actions.pod:6816
19365 #, no-wrap
19366 msgid ""
19367 " struct guestfs_version *\n"
19368 " guestfs_version (guestfs_h *g);\n"
19369 "\n"
19370 msgstr ""
19371
19372 # type: textblock
19373 #. type: textblock
19374 #: ../src/guestfs-actions.pod:6819 ../fish/guestfish-actions.pod:4578
19375 msgid ""
19376 "Return the libguestfs version number that the program is linked against."
19377 msgstr ""
19378
19379 # type: textblock
19380 #. type: textblock
19381 #: ../src/guestfs-actions.pod:6822 ../fish/guestfish-actions.pod:4581
19382 msgid ""
19383 "Note that because of dynamic linking this is not necessarily the version of "
19384 "libguestfs that you compiled against.  You can compile the program, and then "
19385 "at runtime dynamically link against a completely different C<libguestfs.so> "
19386 "library."
19387 msgstr ""
19388
19389 # type: textblock
19390 #. type: textblock
19391 #: ../src/guestfs-actions.pod:6827 ../fish/guestfish-actions.pod:4586
19392 msgid ""
19393 "This call was added in version C<1.0.58>.  In previous versions of "
19394 "libguestfs there was no way to get the version number.  From C code you can "
19395 "use dynamic linker functions to find out if this symbol exists (if it "
19396 "doesn't, then it's an earlier version)."
19397 msgstr ""
19398
19399 # type: textblock
19400 #. type: textblock
19401 #: ../src/guestfs-actions.pod:6833 ../fish/guestfish-actions.pod:4592
19402 msgid ""
19403 "The call returns a structure with four elements.  The first three (C<major>, "
19404 "C<minor> and C<release>) are numbers and correspond to the usual version "
19405 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
19406 "but may be used for distro-specific information."
19407 msgstr ""
19408
19409 # type: textblock
19410 #. type: textblock
19411 #: ../src/guestfs-actions.pod:6839 ../fish/guestfish-actions.pod:4598
19412 msgid ""
19413 "To construct the original version string: C<$major.$minor.$release$extra>"
19414 msgstr ""
19415
19416 # type: textblock
19417 #. type: textblock
19418 #: ../src/guestfs-actions.pod:6842 ../fish/guestfish-actions.pod:4601
19419 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
19420 msgstr ""
19421
19422 # type: textblock
19423 #. type: textblock
19424 #: ../src/guestfs-actions.pod:6844
19425 msgid ""
19426 "I<Note:> Don't use this call to test for availability of features.  In "
19427 "enterprise distributions we backport features from later versions into "
19428 "earlier versions, making this an unreliable way to test for features.  Use "
19429 "C<guestfs_available> instead."
19430 msgstr ""
19431
19432 # type: textblock
19433 #. type: textblock
19434 #: ../src/guestfs-actions.pod:6850
19435 msgid ""
19436 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
19437 "error.  I<The caller must call C<guestfs_free_version> after use>."
19438 msgstr ""
19439
19440 # type: textblock
19441 #. type: textblock
19442 #: ../src/guestfs-actions.pod:6854
19443 msgid "(Added in 1.0.58)"
19444 msgstr ""
19445
19446 # type: =head2
19447 #. type: =head2
19448 #: ../src/guestfs-actions.pod:6856
19449 msgid "guestfs_vfs_label"
19450 msgstr ""
19451
19452 # type: verbatim
19453 #. type: verbatim
19454 #: ../src/guestfs-actions.pod:6858
19455 #, no-wrap
19456 msgid ""
19457 " char *\n"
19458 " guestfs_vfs_label (guestfs_h *g,\n"
19459 "                    const char *device);\n"
19460 "\n"
19461 msgstr ""
19462
19463 # type: textblock
19464 #. type: textblock
19465 #: ../src/guestfs-actions.pod:6862 ../fish/guestfish-actions.pod:4613
19466 msgid "This returns the filesystem label of the filesystem on C<device>."
19467 msgstr ""
19468
19469 # type: textblock
19470 #. type: textblock
19471 #: ../src/guestfs-actions.pod:6865 ../fish/guestfish-actions.pod:4616
19472 msgid "If the filesystem is unlabeled, this returns the empty string."
19473 msgstr ""
19474
19475 # type: textblock
19476 #. type: textblock
19477 #: ../src/guestfs-actions.pod:6867
19478 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19479 msgstr ""
19480
19481 # type: textblock
19482 #. type: textblock
19483 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6909
19484 msgid "(Added in 1.3.18)"
19485 msgstr ""
19486
19487 # type: =head2
19488 #. type: =head2
19489 #: ../src/guestfs-actions.pod:6874
19490 msgid "guestfs_vfs_type"
19491 msgstr ""
19492
19493 # type: verbatim
19494 #. type: verbatim
19495 #: ../src/guestfs-actions.pod:6876
19496 #, no-wrap
19497 msgid ""
19498 " char *\n"
19499 " guestfs_vfs_type (guestfs_h *g,\n"
19500 "                   const char *device);\n"
19501 "\n"
19502 msgstr ""
19503
19504 # type: textblock
19505 #. type: textblock
19506 #: ../src/guestfs-actions.pod:6880 ../fish/guestfish-actions.pod:4624
19507 msgid ""
19508 "This command gets the filesystem type corresponding to the filesystem on "
19509 "C<device>."
19510 msgstr ""
19511
19512 # type: textblock
19513 #. type: textblock
19514 #: ../src/guestfs-actions.pod:6883 ../fish/guestfish-actions.pod:4627
19515 msgid ""
19516 "For most filesystems, the result is the name of the Linux VFS module which "
19517 "would be used to mount this filesystem if you mounted it without specifying "
19518 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
19519 msgstr ""
19520
19521 # type: =head2
19522 #. type: =head2
19523 #: ../src/guestfs-actions.pod:6893
19524 msgid "guestfs_vfs_uuid"
19525 msgstr ""
19526
19527 # type: verbatim
19528 #. type: verbatim
19529 #: ../src/guestfs-actions.pod:6895
19530 #, no-wrap
19531 msgid ""
19532 " char *\n"
19533 " guestfs_vfs_uuid (guestfs_h *g,\n"
19534 "                   const char *device);\n"
19535 "\n"
19536 msgstr ""
19537
19538 # type: textblock
19539 #. type: textblock
19540 #: ../src/guestfs-actions.pod:6899 ../fish/guestfish-actions.pod:4636
19541 msgid "This returns the filesystem UUID of the filesystem on C<device>."
19542 msgstr ""
19543
19544 # type: textblock
19545 #. type: textblock
19546 #: ../src/guestfs-actions.pod:6902 ../fish/guestfish-actions.pod:4639
19547 msgid "If the filesystem does not have a UUID, this returns the empty string."
19548 msgstr ""
19549
19550 # type: textblock
19551 #. type: textblock
19552 #: ../src/guestfs-actions.pod:6904
19553 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19554 msgstr ""
19555
19556 # type: =head2
19557 #. type: =head2
19558 #: ../src/guestfs-actions.pod:6911
19559 msgid "guestfs_vg_activate"
19560 msgstr ""
19561
19562 # type: verbatim
19563 #. type: verbatim
19564 #: ../src/guestfs-actions.pod:6913
19565 #, no-wrap
19566 msgid ""
19567 " int\n"
19568 " guestfs_vg_activate (guestfs_h *g,\n"
19569 "                      int activate,\n"
19570 "                      char *const *volgroups);\n"
19571 "\n"
19572 msgstr ""
19573
19574 # type: textblock
19575 #. type: textblock
19576 #: ../src/guestfs-actions.pod:6918 ../fish/guestfish-actions.pod:4647
19577 msgid ""
19578 "This command activates or (if C<activate> is false) deactivates all logical "
19579 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
19580 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
19581 "deactivated, then those devices disappear."
19582 msgstr ""
19583
19584 # type: textblock
19585 #. type: textblock
19586 #: ../src/guestfs-actions.pod:6924 ../fish/guestfish-actions.pod:4653
19587 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
19588 msgstr ""
19589
19590 # type: textblock
19591 #. type: textblock
19592 #: ../src/guestfs-actions.pod:6926 ../fish/guestfish-actions.pod:4655
19593 msgid ""
19594 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19595 "activated or deactivated."
19596 msgstr ""
19597
19598 # type: =head2
19599 #. type: =head2
19600 #: ../src/guestfs-actions.pod:6933
19601 msgid "guestfs_vg_activate_all"
19602 msgstr ""
19603
19604 # type: verbatim
19605 #. type: verbatim
19606 #: ../src/guestfs-actions.pod:6935
19607 #, no-wrap
19608 msgid ""
19609 " int\n"
19610 " guestfs_vg_activate_all (guestfs_h *g,\n"
19611 "                          int activate);\n"
19612 "\n"
19613 msgstr ""
19614
19615 # type: textblock
19616 #. type: textblock
19617 #: ../src/guestfs-actions.pod:6939 ../fish/guestfish-actions.pod:4662
19618 msgid ""
19619 "This command activates or (if C<activate> is false) deactivates all logical "
19620 "volumes in all volume groups.  If activated, then they are made known to the "
19621 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
19622 "those devices disappear."
19623 msgstr ""
19624
19625 # type: textblock
19626 #. type: textblock
19627 #: ../src/guestfs-actions.pod:6945 ../fish/guestfish-actions.pod:4668
19628 msgid "This command is the same as running C<vgchange -a y|n>"
19629 msgstr ""
19630
19631 # type: =head2
19632 #. type: =head2
19633 #: ../src/guestfs-actions.pod:6951
19634 msgid "guestfs_vgcreate"
19635 msgstr ""
19636
19637 # type: verbatim
19638 #. type: verbatim
19639 #: ../src/guestfs-actions.pod:6953
19640 #, no-wrap
19641 msgid ""
19642 " int\n"
19643 " guestfs_vgcreate (guestfs_h *g,\n"
19644 "                   const char *volgroup,\n"
19645 "                   char *const *physvols);\n"
19646 "\n"
19647 msgstr ""
19648
19649 # type: textblock
19650 #. type: textblock
19651 #: ../src/guestfs-actions.pod:6958 ../fish/guestfish-actions.pod:4674
19652 msgid ""
19653 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19654 "of physical volumes C<physvols>."
19655 msgstr ""
19656
19657 # type: =head2
19658 #. type: =head2
19659 #: ../src/guestfs-actions.pod:6965
19660 msgid "guestfs_vglvuuids"
19661 msgstr ""
19662
19663 # type: verbatim
19664 #. type: verbatim
19665 #: ../src/guestfs-actions.pod:6967
19666 #, no-wrap
19667 msgid ""
19668 " char **\n"
19669 " guestfs_vglvuuids (guestfs_h *g,\n"
19670 "                    const char *vgname);\n"
19671 "\n"
19672 msgstr ""
19673
19674 # type: textblock
19675 #. type: textblock
19676 #: ../src/guestfs-actions.pod:6971 ../fish/guestfish-actions.pod:4681
19677 msgid ""
19678 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19679 "volumes created in this volume group."
19680 msgstr ""
19681
19682 # type: textblock
19683 #. type: textblock
19684 #: ../src/guestfs-actions.pod:6974
19685 msgid ""
19686 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19687 "associate logical volumes and volume groups."
19688 msgstr ""
19689
19690 # type: textblock
19691 #. type: textblock
19692 #: ../src/guestfs-actions.pod:6977
19693 msgid "See also C<guestfs_vgpvuuids>."
19694 msgstr ""
19695
19696 # type: =head2
19697 #. type: =head2
19698 #: ../src/guestfs-actions.pod:6985
19699 msgid "guestfs_vgpvuuids"
19700 msgstr ""
19701
19702 # type: verbatim
19703 #. type: verbatim
19704 #: ../src/guestfs-actions.pod:6987
19705 #, no-wrap
19706 msgid ""
19707 " char **\n"
19708 " guestfs_vgpvuuids (guestfs_h *g,\n"
19709 "                    const char *vgname);\n"
19710 "\n"
19711 msgstr ""
19712
19713 # type: textblock
19714 #. type: textblock
19715 #: ../src/guestfs-actions.pod:6991 ../fish/guestfish-actions.pod:4693
19716 msgid ""
19717 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19718 "volumes that this volume group resides on."
19719 msgstr ""
19720
19721 # type: textblock
19722 #. type: textblock
19723 #: ../src/guestfs-actions.pod:6994
19724 msgid ""
19725 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19726 "associate physical volumes and volume groups."
19727 msgstr ""
19728
19729 # type: textblock
19730 #. type: textblock
19731 #: ../src/guestfs-actions.pod:6997
19732 msgid "See also C<guestfs_vglvuuids>."
19733 msgstr ""
19734
19735 # type: =head2
19736 #. type: =head2
19737 #: ../src/guestfs-actions.pod:7005
19738 msgid "guestfs_vgremove"
19739 msgstr ""
19740
19741 # type: verbatim
19742 #. type: verbatim
19743 #: ../src/guestfs-actions.pod:7007
19744 #, no-wrap
19745 msgid ""
19746 " int\n"
19747 " guestfs_vgremove (guestfs_h *g,\n"
19748 "                   const char *vgname);\n"
19749 "\n"
19750 msgstr ""
19751
19752 # type: textblock
19753 #. type: textblock
19754 #: ../src/guestfs-actions.pod:7011 ../fish/guestfish-actions.pod:4705
19755 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19756 msgstr ""
19757
19758 # type: textblock
19759 #. type: textblock
19760 #: ../src/guestfs-actions.pod:7013 ../fish/guestfish-actions.pod:4707
19761 msgid ""
19762 "This also forcibly removes all logical volumes in the volume group (if any)."
19763 msgstr ""
19764
19765 # type: =head2
19766 #. type: =head2
19767 #: ../src/guestfs-actions.pod:7020
19768 msgid "guestfs_vgrename"
19769 msgstr ""
19770
19771 # type: verbatim
19772 #. type: verbatim
19773 #: ../src/guestfs-actions.pod:7022
19774 #, no-wrap
19775 msgid ""
19776 " int\n"
19777 " guestfs_vgrename (guestfs_h *g,\n"
19778 "                   const char *volgroup,\n"
19779 "                   const char *newvolgroup);\n"
19780 "\n"
19781 msgstr ""
19782
19783 # type: textblock
19784 #. type: textblock
19785 #: ../src/guestfs-actions.pod:7027 ../fish/guestfish-actions.pod:4714
19786 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19787 msgstr ""
19788
19789 # type: =head2
19790 #. type: =head2
19791 #: ../src/guestfs-actions.pod:7033
19792 msgid "guestfs_vgs"
19793 msgstr ""
19794
19795 # type: verbatim
19796 #. type: verbatim
19797 #: ../src/guestfs-actions.pod:7035
19798 #, no-wrap
19799 msgid ""
19800 " char **\n"
19801 " guestfs_vgs (guestfs_h *g);\n"
19802 "\n"
19803 msgstr ""
19804
19805 # type: textblock
19806 #. type: textblock
19807 #: ../src/guestfs-actions.pod:7038 ../fish/guestfish-actions.pod:4720
19808 msgid ""
19809 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19810 "> command."
19811 msgstr ""
19812
19813 # type: textblock
19814 #. type: textblock
19815 #: ../src/guestfs-actions.pod:7041 ../fish/guestfish-actions.pod:4723
19816 msgid ""
19817 "This returns a list of just the volume group names that were detected (eg. "
19818 "C<VolGroup00>)."
19819 msgstr ""
19820
19821 # type: textblock
19822 #. type: textblock
19823 #: ../src/guestfs-actions.pod:7044
19824 msgid "See also C<guestfs_vgs_full>."
19825 msgstr ""
19826
19827 # type: =head2
19828 #. type: =head2
19829 #: ../src/guestfs-actions.pod:7052
19830 msgid "guestfs_vgs_full"
19831 msgstr ""
19832
19833 # type: verbatim
19834 #. type: verbatim
19835 #: ../src/guestfs-actions.pod:7054
19836 #, no-wrap
19837 msgid ""
19838 " struct guestfs_lvm_vg_list *\n"
19839 " guestfs_vgs_full (guestfs_h *g);\n"
19840 "\n"
19841 msgstr ""
19842
19843 # type: textblock
19844 #. type: textblock
19845 #: ../src/guestfs-actions.pod:7057 ../fish/guestfish-actions.pod:4732
19846 msgid ""
19847 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19848 "> command.  The \"full\" version includes all fields."
19849 msgstr ""
19850
19851 # type: textblock
19852 #. type: textblock
19853 #: ../src/guestfs-actions.pod:7060
19854 msgid ""
19855 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19856 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19857 msgstr ""
19858
19859 # type: =head2
19860 #. type: =head2
19861 #: ../src/guestfs-actions.pod:7066
19862 msgid "guestfs_vgscan"
19863 msgstr ""
19864
19865 # type: verbatim
19866 #. type: verbatim
19867 #: ../src/guestfs-actions.pod:7068
19868 #, no-wrap
19869 msgid ""
19870 " int\n"
19871 " guestfs_vgscan (guestfs_h *g);\n"
19872 "\n"
19873 msgstr ""
19874
19875 # type: textblock
19876 #. type: textblock
19877 #: ../src/guestfs-actions.pod:7071 ../fish/guestfish-actions.pod:4739
19878 msgid ""
19879 "This rescans all block devices and rebuilds the list of LVM physical "
19880 "volumes, volume groups and logical volumes."
19881 msgstr ""
19882
19883 # type: =head2
19884 #. type: =head2
19885 #: ../src/guestfs-actions.pod:7078
19886 msgid "guestfs_vguuid"
19887 msgstr ""
19888
19889 # type: verbatim
19890 #. type: verbatim
19891 #: ../src/guestfs-actions.pod:7080
19892 #, no-wrap
19893 msgid ""
19894 " char *\n"
19895 " guestfs_vguuid (guestfs_h *g,\n"
19896 "                 const char *vgname);\n"
19897 "\n"
19898 msgstr ""
19899
19900 # type: textblock
19901 #. type: textblock
19902 #: ../src/guestfs-actions.pod:7084 ../fish/guestfish-actions.pod:4746
19903 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19904 msgstr ""
19905
19906 # type: =head2
19907 #. type: =head2
19908 #: ../src/guestfs-actions.pod:7091
19909 msgid "guestfs_wait_ready"
19910 msgstr ""
19911
19912 # type: verbatim
19913 #. type: verbatim
19914 #: ../src/guestfs-actions.pod:7093
19915 #, no-wrap
19916 msgid ""
19917 " int\n"
19918 " guestfs_wait_ready (guestfs_h *g);\n"
19919 "\n"
19920 msgstr ""
19921
19922 # type: textblock
19923 #. type: textblock
19924 #: ../src/guestfs-actions.pod:7096
19925 msgid "This function is a no op."
19926 msgstr ""
19927
19928 # type: textblock
19929 #. type: textblock
19930 #: ../src/guestfs-actions.pod:7098
19931 msgid ""
19932 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19933 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19934 "is no longer necessary because C<guestfs_launch> now does the waiting."
19935 msgstr ""
19936
19937 # type: textblock
19938 #. type: textblock
19939 #: ../src/guestfs-actions.pod:7103
19940 msgid ""
19941 "If you see any calls to this function in code then you can just remove them, "
19942 "unless you want to retain compatibility with older versions of the API."
19943 msgstr ""
19944
19945 # type: =head2
19946 #. type: =head2
19947 #: ../src/guestfs-actions.pod:7111
19948 msgid "guestfs_wc_c"
19949 msgstr ""
19950
19951 # type: verbatim
19952 #. type: verbatim
19953 #: ../src/guestfs-actions.pod:7113
19954 #, no-wrap
19955 msgid ""
19956 " int\n"
19957 " guestfs_wc_c (guestfs_h *g,\n"
19958 "               const char *path);\n"
19959 "\n"
19960 msgstr ""
19961
19962 # type: textblock
19963 #. type: textblock
19964 #: ../src/guestfs-actions.pod:7117 ../fish/guestfish-actions.pod:4752
19965 msgid ""
19966 "This command counts the characters in a file, using the C<wc -c> external "
19967 "command."
19968 msgstr ""
19969
19970 # type: =head2
19971 #. type: =head2
19972 #: ../src/guestfs-actions.pod:7124
19973 msgid "guestfs_wc_l"
19974 msgstr ""
19975
19976 # type: verbatim
19977 #. type: verbatim
19978 #: ../src/guestfs-actions.pod:7126
19979 #, no-wrap
19980 msgid ""
19981 " int\n"
19982 " guestfs_wc_l (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:7130 ../fish/guestfish-actions.pod:4759
19990 msgid ""
19991 "This command counts the lines in a file, using the C<wc -l> external command."
19992 msgstr ""
19993
19994 # type: =head2
19995 #. type: =head2
19996 #: ../src/guestfs-actions.pod:7137
19997 msgid "guestfs_wc_w"
19998 msgstr ""
19999
20000 # type: verbatim
20001 #. type: verbatim
20002 #: ../src/guestfs-actions.pod:7139
20003 #, no-wrap
20004 msgid ""
20005 " int\n"
20006 " guestfs_wc_w (guestfs_h *g,\n"
20007 "               const char *path);\n"
20008 "\n"
20009 msgstr ""
20010
20011 # type: textblock
20012 #. type: textblock
20013 #: ../src/guestfs-actions.pod:7143 ../fish/guestfish-actions.pod:4766
20014 msgid ""
20015 "This command counts the words in a file, using the C<wc -w> external command."
20016 msgstr ""
20017
20018 # type: =head2
20019 #. type: =head2
20020 #: ../src/guestfs-actions.pod:7150
20021 msgid "guestfs_write"
20022 msgstr ""
20023
20024 # type: verbatim
20025 #. type: verbatim
20026 #: ../src/guestfs-actions.pod:7152
20027 #, no-wrap
20028 msgid ""
20029 " int\n"
20030 " guestfs_write (guestfs_h *g,\n"
20031 "                const char *path,\n"
20032 "                const char *content,\n"
20033 "                size_t content_size);\n"
20034 "\n"
20035 msgstr ""
20036
20037 # type: textblock
20038 #. type: textblock
20039 #: ../src/guestfs-actions.pod:7158 ../fish/guestfish-actions.pod:4773
20040 msgid ""
20041 "This call creates a file called C<path>.  The content of the file is the "
20042 "string C<content> (which can contain any 8 bit data)."
20043 msgstr ""
20044
20045 # type: =head2
20046 #. type: =head2
20047 #: ../src/guestfs-actions.pod:7168
20048 msgid "guestfs_write_file"
20049 msgstr ""
20050
20051 # type: verbatim
20052 #. type: verbatim
20053 #: ../src/guestfs-actions.pod:7170
20054 #, no-wrap
20055 msgid ""
20056 " int\n"
20057 " guestfs_write_file (guestfs_h *g,\n"
20058 "                     const char *path,\n"
20059 "                     const char *content,\n"
20060 "                     int size);\n"
20061 "\n"
20062 msgstr ""
20063
20064 # type: textblock
20065 #. type: textblock
20066 #: ../src/guestfs-actions.pod:7176 ../fish/guestfish-actions.pod:4783
20067 msgid ""
20068 "This call creates a file called C<path>.  The contents of the file is the "
20069 "string C<content> (which can contain any 8 bit data), with length C<size>."
20070 msgstr ""
20071
20072 # type: textblock
20073 #. type: textblock
20074 #: ../src/guestfs-actions.pod:7180 ../fish/guestfish-actions.pod:4787
20075 msgid ""
20076 "As a special case, if C<size> is C<0> then the length is calculated using "
20077 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20078 msgstr ""
20079
20080 # type: textblock
20081 #. type: textblock
20082 #: ../src/guestfs-actions.pod:7184 ../fish/guestfish-actions.pod:4791
20083 msgid ""
20084 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20085 "I<not> work, even if the length is specified."
20086 msgstr ""
20087
20088 # type: textblock
20089 #. type: textblock
20090 #: ../src/guestfs-actions.pod:7192 ../fish/guestfish-actions.pod:4797
20091 msgid ""
20092 "This function is deprecated.  In new code, use the C<write> call instead."
20093 msgstr ""
20094
20095 # type: =head2
20096 #. type: =head2
20097 #: ../src/guestfs-actions.pod:7201
20098 msgid "guestfs_zegrep"
20099 msgstr ""
20100
20101 # type: verbatim
20102 #. type: verbatim
20103 #: ../src/guestfs-actions.pod:7203
20104 #, no-wrap
20105 msgid ""
20106 " char **\n"
20107 " guestfs_zegrep (guestfs_h *g,\n"
20108 "                 const char *regex,\n"
20109 "                 const char *path);\n"
20110 "\n"
20111 msgstr ""
20112
20113 # type: textblock
20114 #. type: textblock
20115 #: ../src/guestfs-actions.pod:7208 ../fish/guestfish-actions.pod:4808
20116 msgid ""
20117 "This calls the external C<zegrep> program and returns the matching lines."
20118 msgstr ""
20119
20120 # type: =head2
20121 #. type: =head2
20122 #: ../src/guestfs-actions.pod:7220
20123 msgid "guestfs_zegrepi"
20124 msgstr ""
20125
20126 # type: verbatim
20127 #. type: verbatim
20128 #: ../src/guestfs-actions.pod:7222
20129 #, no-wrap
20130 msgid ""
20131 " char **\n"
20132 " guestfs_zegrepi (guestfs_h *g,\n"
20133 "                  const char *regex,\n"
20134 "                  const char *path);\n"
20135 "\n"
20136 msgstr ""
20137
20138 # type: textblock
20139 #. type: textblock
20140 #: ../src/guestfs-actions.pod:7227 ../fish/guestfish-actions.pod:4818
20141 msgid ""
20142 "This calls the external C<zegrep -i> program and returns the matching lines."
20143 msgstr ""
20144
20145 # type: =head2
20146 #. type: =head2
20147 #: ../src/guestfs-actions.pod:7239
20148 msgid "guestfs_zero"
20149 msgstr ""
20150
20151 # type: verbatim
20152 #. type: verbatim
20153 #: ../src/guestfs-actions.pod:7241
20154 #, no-wrap
20155 msgid ""
20156 " int\n"
20157 " guestfs_zero (guestfs_h *g,\n"
20158 "               const char *device);\n"
20159 "\n"
20160 msgstr ""
20161
20162 # type: textblock
20163 #. type: textblock
20164 #: ../src/guestfs-actions.pod:7245 ../fish/guestfish-actions.pod:4828
20165 msgid "This command writes zeroes over the first few blocks of C<device>."
20166 msgstr ""
20167
20168 # type: textblock
20169 #. type: textblock
20170 #: ../src/guestfs-actions.pod:7247 ../fish/guestfish-actions.pod:4830
20171 msgid ""
20172 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20173 "securely wipe the device).  It should be sufficient to remove any partition "
20174 "tables, filesystem superblocks and so on."
20175 msgstr ""
20176
20177 # type: textblock
20178 #. type: textblock
20179 #: ../src/guestfs-actions.pod:7251
20180 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
20181 msgstr ""
20182
20183 # type: =head2
20184 #. type: =head2
20185 #: ../src/guestfs-actions.pod:7262
20186 msgid "guestfs_zero_device"
20187 msgstr ""
20188
20189 # type: verbatim
20190 #. type: verbatim
20191 #: ../src/guestfs-actions.pod:7264
20192 #, no-wrap
20193 msgid ""
20194 " int\n"
20195 " guestfs_zero_device (guestfs_h *g,\n"
20196 "                      const char *device);\n"
20197 "\n"
20198 msgstr ""
20199
20200 # type: textblock
20201 #. type: textblock
20202 #: ../src/guestfs-actions.pod:7268
20203 msgid ""
20204 "This command writes zeroes over the entire C<device>.  Compare with "
20205 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20206 msgstr ""
20207
20208 # type: textblock
20209 #. type: textblock
20210 #: ../src/guestfs-actions.pod:7282
20211 msgid "(Added in 1.3.1)"
20212 msgstr ""
20213
20214 # type: =head2
20215 #. type: =head2
20216 #: ../src/guestfs-actions.pod:7284
20217 msgid "guestfs_zerofree"
20218 msgstr ""
20219
20220 # type: verbatim
20221 #. type: verbatim
20222 #: ../src/guestfs-actions.pod:7286
20223 #, no-wrap
20224 msgid ""
20225 " int\n"
20226 " guestfs_zerofree (guestfs_h *g,\n"
20227 "                   const char *device);\n"
20228 "\n"
20229 msgstr ""
20230
20231 # type: textblock
20232 #. type: textblock
20233 #: ../src/guestfs-actions.pod:7290 ../fish/guestfish-actions.pod:4851
20234 msgid ""
20235 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20236 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20237 "possible to compress the filesystem more effectively."
20238 msgstr ""
20239
20240 # type: textblock
20241 #. type: textblock
20242 #: ../src/guestfs-actions.pod:7295 ../fish/guestfish-actions.pod:4856
20243 msgid "You should B<not> run this program if the filesystem is mounted."
20244 msgstr ""
20245
20246 # type: textblock
20247 #. type: textblock
20248 #: ../src/guestfs-actions.pod:7298 ../fish/guestfish-actions.pod:4859
20249 msgid ""
20250 "It is possible that using this program can damage the filesystem or data on "
20251 "the filesystem."
20252 msgstr ""
20253
20254 # type: =head2
20255 #. type: =head2
20256 #: ../src/guestfs-actions.pod:7305
20257 msgid "guestfs_zfgrep"
20258 msgstr ""
20259
20260 # type: verbatim
20261 #. type: verbatim
20262 #: ../src/guestfs-actions.pod:7307
20263 #, no-wrap
20264 msgid ""
20265 " char **\n"
20266 " guestfs_zfgrep (guestfs_h *g,\n"
20267 "                 const char *pattern,\n"
20268 "                 const char *path);\n"
20269 "\n"
20270 msgstr ""
20271
20272 # type: textblock
20273 #. type: textblock
20274 #: ../src/guestfs-actions.pod:7312 ../fish/guestfish-actions.pod:4866
20275 msgid ""
20276 "This calls the external C<zfgrep> program and returns the matching lines."
20277 msgstr ""
20278
20279 # type: =head2
20280 #. type: =head2
20281 #: ../src/guestfs-actions.pod:7324
20282 msgid "guestfs_zfgrepi"
20283 msgstr ""
20284
20285 # type: verbatim
20286 #. type: verbatim
20287 #: ../src/guestfs-actions.pod:7326
20288 #, no-wrap
20289 msgid ""
20290 " char **\n"
20291 " guestfs_zfgrepi (guestfs_h *g,\n"
20292 "                  const char *pattern,\n"
20293 "                  const char *path);\n"
20294 "\n"
20295 msgstr ""
20296
20297 # type: textblock
20298 #. type: textblock
20299 #: ../src/guestfs-actions.pod:7331 ../fish/guestfish-actions.pod:4876
20300 msgid ""
20301 "This calls the external C<zfgrep -i> program and returns the matching lines."
20302 msgstr ""
20303
20304 # type: =head2
20305 #. type: =head2
20306 #: ../src/guestfs-actions.pod:7343
20307 msgid "guestfs_zfile"
20308 msgstr ""
20309
20310 # type: verbatim
20311 #. type: verbatim
20312 #: ../src/guestfs-actions.pod:7345
20313 #, no-wrap
20314 msgid ""
20315 " char *\n"
20316 " guestfs_zfile (guestfs_h *g,\n"
20317 "                const char *meth,\n"
20318 "                const char *path);\n"
20319 "\n"
20320 msgstr ""
20321
20322 # type: textblock
20323 #. type: textblock
20324 #: ../src/guestfs-actions.pod:7350 ../fish/guestfish-actions.pod:4886
20325 msgid ""
20326 "This command runs C<file> after first decompressing C<path> using C<method>."
20327 msgstr ""
20328
20329 # type: textblock
20330 #. type: textblock
20331 #: ../src/guestfs-actions.pod:7353 ../fish/guestfish-actions.pod:4889
20332 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
20333 msgstr ""
20334
20335 # type: textblock
20336 #. type: textblock
20337 #: ../src/guestfs-actions.pod:7355
20338 msgid ""
20339 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
20340 "files."
20341 msgstr ""
20342
20343 # type: textblock
20344 #. type: textblock
20345 #: ../src/guestfs-actions.pod:7361 ../fish/guestfish-actions.pod:4894
20346 msgid ""
20347 "This function is deprecated.  In new code, use the C<file> call instead."
20348 msgstr ""
20349
20350 # type: =head2
20351 #. type: =head2
20352 #: ../src/guestfs-actions.pod:7370
20353 msgid "guestfs_zgrep"
20354 msgstr ""
20355
20356 # type: verbatim
20357 #. type: verbatim
20358 #: ../src/guestfs-actions.pod:7372
20359 #, no-wrap
20360 msgid ""
20361 " char **\n"
20362 " guestfs_zgrep (guestfs_h *g,\n"
20363 "                const char *regex,\n"
20364 "                const char *path);\n"
20365 "\n"
20366 msgstr ""
20367
20368 # type: textblock
20369 #. type: textblock
20370 #: ../src/guestfs-actions.pod:7377 ../fish/guestfish-actions.pod:4905
20371 msgid ""
20372 "This calls the external C<zgrep> program and returns the matching lines."
20373 msgstr ""
20374
20375 # type: =head2
20376 #. type: =head2
20377 #: ../src/guestfs-actions.pod:7389
20378 msgid "guestfs_zgrepi"
20379 msgstr ""
20380
20381 # type: verbatim
20382 #. type: verbatim
20383 #: ../src/guestfs-actions.pod:7391
20384 #, no-wrap
20385 msgid ""
20386 " char **\n"
20387 " guestfs_zgrepi (guestfs_h *g,\n"
20388 "                 const char *regex,\n"
20389 "                 const char *path);\n"
20390 "\n"
20391 msgstr ""
20392
20393 # type: textblock
20394 #. type: textblock
20395 #: ../src/guestfs-actions.pod:7396 ../fish/guestfish-actions.pod:4915
20396 msgid ""
20397 "This calls the external C<zgrep -i> program and returns the matching lines."
20398 msgstr ""
20399
20400 # type: =item
20401 #. type: =item
20402 #: ../src/guestfs-availability.pod:3
20403 msgid "B<augeas>"
20404 msgstr ""
20405
20406 # type: textblock
20407 #. type: textblock
20408 #: ../src/guestfs-availability.pod:5
20409 msgid ""
20410 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
20411 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
20412 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
20413 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
20414 "L</guestfs_aug_save> L</guestfs_aug_set>"
20415 msgstr ""
20416
20417 # type: =item
20418 #. type: =item
20419 #: ../src/guestfs-availability.pod:21
20420 msgid "B<inotify>"
20421 msgstr ""
20422
20423 # type: textblock
20424 #. type: textblock
20425 #: ../src/guestfs-availability.pod:23
20426 msgid ""
20427 "The following functions: L</guestfs_inotify_add_watch> L</"
20428 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
20429 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
20430 msgstr ""
20431
20432 # type: =item
20433 #. type: =item
20434 #: ../src/guestfs-availability.pod:31
20435 msgid "B<linuxfsuuid>"
20436 msgstr ""
20437
20438 # type: textblock
20439 #. type: textblock
20440 #: ../src/guestfs-availability.pod:33
20441 msgid ""
20442 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
20443 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
20444 msgstr ""
20445
20446 # type: =item
20447 #. type: =item
20448 #: ../src/guestfs-availability.pod:40
20449 msgid "B<linuxmodules>"
20450 msgstr ""
20451
20452 # type: textblock
20453 #. type: textblock
20454 #: ../src/guestfs-availability.pod:42
20455 msgid "The following functions: L</guestfs_modprobe>"
20456 msgstr ""
20457
20458 # type: =item
20459 #. type: =item
20460 #: ../src/guestfs-availability.pod:45
20461 msgid "B<linuxxattrs>"
20462 msgstr ""
20463
20464 # type: textblock
20465 #. type: textblock
20466 #: ../src/guestfs-availability.pod:47
20467 msgid ""
20468 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
20469 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
20470 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
20471 "guestfs_setxattr>"
20472 msgstr ""
20473
20474 # type: =item
20475 #. type: =item
20476 #: ../src/guestfs-availability.pod:58
20477 msgid "B<luks>"
20478 msgstr ""
20479
20480 # type: textblock
20481 #. type: textblock
20482 #: ../src/guestfs-availability.pod:60
20483 msgid ""
20484 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
20485 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
20486 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
20487 msgstr ""
20488
20489 # type: =item
20490 #. type: =item
20491 #: ../src/guestfs-availability.pod:69
20492 msgid "B<lvm2>"
20493 msgstr ""
20494
20495 # type: textblock
20496 #. type: textblock
20497 #: ../src/guestfs-availability.pod:71
20498 msgid ""
20499 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
20500 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
20501 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
20502 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
20503 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
20504 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
20505 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
20506 msgstr ""
20507
20508 # type: =item
20509 #. type: =item
20510 #: ../src/guestfs-availability.pod:94
20511 msgid "B<mknod>"
20512 msgstr ""
20513
20514 # type: textblock
20515 #. type: textblock
20516 #: ../src/guestfs-availability.pod:96
20517 msgid ""
20518 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
20519 "guestfs_mknod_b> L</guestfs_mknod_c>"
20520 msgstr ""
20521
20522 # type: =item
20523 #. type: =item
20524 #: ../src/guestfs-availability.pod:102
20525 msgid "B<ntfs3g>"
20526 msgstr ""
20527
20528 # type: textblock
20529 #. type: textblock
20530 #: ../src/guestfs-availability.pod:104
20531 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20532 msgstr ""
20533
20534 # type: =item
20535 #. type: =item
20536 #: ../src/guestfs-availability.pod:107
20537 msgid "B<ntfsprogs>"
20538 msgstr ""
20539
20540 # type: textblock
20541 #. type: textblock
20542 #: ../src/guestfs-availability.pod:109
20543 msgid ""
20544 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
20545 msgstr ""
20546
20547 # type: =item
20548 #. type: =item
20549 #: ../src/guestfs-availability.pod:113
20550 msgid "B<realpath>"
20551 msgstr ""
20552
20553 # type: textblock
20554 #. type: textblock
20555 #: ../src/guestfs-availability.pod:115
20556 msgid "The following functions: L</guestfs_realpath>"
20557 msgstr ""
20558
20559 # type: =item
20560 #. type: =item
20561 #: ../src/guestfs-availability.pod:118
20562 msgid "B<scrub>"
20563 msgstr ""
20564
20565 # type: textblock
20566 #. type: textblock
20567 #: ../src/guestfs-availability.pod:120
20568 msgid ""
20569 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
20570 "guestfs_scrub_freespace>"
20571 msgstr ""
20572
20573 # type: =item
20574 #. type: =item
20575 #: ../src/guestfs-availability.pod:125
20576 msgid "B<selinux>"
20577 msgstr ""
20578
20579 # type: textblock
20580 #. type: textblock
20581 #: ../src/guestfs-availability.pod:127
20582 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20583 msgstr ""
20584
20585 # type: =item
20586 #. type: =item
20587 #: ../src/guestfs-availability.pod:131
20588 msgid "B<xz>"
20589 msgstr ""
20590
20591 # type: textblock
20592 #. type: textblock
20593 #: ../src/guestfs-availability.pod:133
20594 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20595 msgstr ""
20596
20597 # type: =item
20598 #. type: =item
20599 #: ../src/guestfs-availability.pod:137
20600 msgid "B<zerofree>"
20601 msgstr ""
20602
20603 # type: textblock
20604 #. type: textblock
20605 #: ../src/guestfs-availability.pod:139
20606 msgid "The following functions: L</guestfs_zerofree>"
20607 msgstr ""
20608
20609 # type: =head2
20610 #. type: =head2
20611 #: ../src/guestfs-structs.pod:1
20612 msgid "guestfs_int_bool"
20613 msgstr ""
20614
20615 # type: verbatim
20616 #. type: verbatim
20617 #: ../src/guestfs-structs.pod:3
20618 #, no-wrap
20619 msgid ""
20620 " struct guestfs_int_bool {\n"
20621 "   int32_t i;\n"
20622 "   int32_t b;\n"
20623 " };\n"
20624 " \n"
20625 msgstr ""
20626
20627 # type: verbatim
20628 #. type: verbatim
20629 #: ../src/guestfs-structs.pod:8
20630 #, no-wrap
20631 msgid ""
20632 " struct guestfs_int_bool_list {\n"
20633 "   uint32_t len; /* Number of elements in list. */\n"
20634 "   struct guestfs_int_bool *val; /* Elements. */\n"
20635 " };\n"
20636 " \n"
20637 msgstr ""
20638
20639 # type: verbatim
20640 #. type: verbatim
20641 #: ../src/guestfs-structs.pod:13
20642 #, no-wrap
20643 msgid ""
20644 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
20645 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
20646 "\n"
20647 msgstr ""
20648
20649 # type: =head2
20650 #. type: =head2
20651 #: ../src/guestfs-structs.pod:16
20652 msgid "guestfs_lvm_pv"
20653 msgstr ""
20654
20655 # type: verbatim
20656 #. type: verbatim
20657 #: ../src/guestfs-structs.pod:18
20658 #, no-wrap
20659 msgid ""
20660 " struct guestfs_lvm_pv {\n"
20661 "   char *pv_name;\n"
20662 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20663 "   char pv_uuid[32];\n"
20664 "   char *pv_fmt;\n"
20665 "   uint64_t pv_size;\n"
20666 "   uint64_t dev_size;\n"
20667 "   uint64_t pv_free;\n"
20668 "   uint64_t pv_used;\n"
20669 "   char *pv_attr;\n"
20670 "   int64_t pv_pe_count;\n"
20671 "   int64_t pv_pe_alloc_count;\n"
20672 "   char *pv_tags;\n"
20673 "   uint64_t pe_start;\n"
20674 "   int64_t pv_mda_count;\n"
20675 "   uint64_t pv_mda_free;\n"
20676 " };\n"
20677 " \n"
20678 msgstr ""
20679
20680 # type: verbatim
20681 #. type: verbatim
20682 #: ../src/guestfs-structs.pod:36
20683 #, no-wrap
20684 msgid ""
20685 " struct guestfs_lvm_pv_list {\n"
20686 "   uint32_t len; /* Number of elements in list. */\n"
20687 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20688 " };\n"
20689 " \n"
20690 msgstr ""
20691
20692 # type: verbatim
20693 #. type: verbatim
20694 #: ../src/guestfs-structs.pod:41
20695 #, no-wrap
20696 msgid ""
20697 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20698 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20699 "\n"
20700 msgstr ""
20701
20702 # type: =head2
20703 #. type: =head2
20704 #: ../src/guestfs-structs.pod:44
20705 msgid "guestfs_lvm_vg"
20706 msgstr ""
20707
20708 # type: verbatim
20709 #. type: verbatim
20710 #: ../src/guestfs-structs.pod:46
20711 #, no-wrap
20712 msgid ""
20713 " struct guestfs_lvm_vg {\n"
20714 "   char *vg_name;\n"
20715 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20716 "   char vg_uuid[32];\n"
20717 "   char *vg_fmt;\n"
20718 "   char *vg_attr;\n"
20719 "   uint64_t vg_size;\n"
20720 "   uint64_t vg_free;\n"
20721 "   char *vg_sysid;\n"
20722 "   uint64_t vg_extent_size;\n"
20723 "   int64_t vg_extent_count;\n"
20724 "   int64_t vg_free_count;\n"
20725 "   int64_t max_lv;\n"
20726 "   int64_t max_pv;\n"
20727 "   int64_t pv_count;\n"
20728 "   int64_t lv_count;\n"
20729 "   int64_t snap_count;\n"
20730 "   int64_t vg_seqno;\n"
20731 "   char *vg_tags;\n"
20732 "   int64_t vg_mda_count;\n"
20733 "   uint64_t vg_mda_free;\n"
20734 " };\n"
20735 " \n"
20736 msgstr ""
20737
20738 # type: verbatim
20739 #. type: verbatim
20740 #: ../src/guestfs-structs.pod:69
20741 #, no-wrap
20742 msgid ""
20743 " struct guestfs_lvm_vg_list {\n"
20744 "   uint32_t len; /* Number of elements in list. */\n"
20745 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20746 " };\n"
20747 " \n"
20748 msgstr ""
20749
20750 # type: verbatim
20751 #. type: verbatim
20752 #: ../src/guestfs-structs.pod:74
20753 #, no-wrap
20754 msgid ""
20755 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20756 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20757 "\n"
20758 msgstr ""
20759
20760 # type: =head2
20761 #. type: =head2
20762 #: ../src/guestfs-structs.pod:77
20763 msgid "guestfs_lvm_lv"
20764 msgstr ""
20765
20766 # type: verbatim
20767 #. type: verbatim
20768 #: ../src/guestfs-structs.pod:79
20769 #, no-wrap
20770 msgid ""
20771 " struct guestfs_lvm_lv {\n"
20772 "   char *lv_name;\n"
20773 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20774 "   char lv_uuid[32];\n"
20775 "   char *lv_attr;\n"
20776 "   int64_t lv_major;\n"
20777 "   int64_t lv_minor;\n"
20778 "   int64_t lv_kernel_major;\n"
20779 "   int64_t lv_kernel_minor;\n"
20780 "   uint64_t lv_size;\n"
20781 "   int64_t seg_count;\n"
20782 "   char *origin;\n"
20783 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20784 "   float snap_percent;\n"
20785 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20786 "   float copy_percent;\n"
20787 "   char *move_pv;\n"
20788 "   char *lv_tags;\n"
20789 "   char *mirror_log;\n"
20790 "   char *modules;\n"
20791 " };\n"
20792 " \n"
20793 msgstr ""
20794
20795 # type: verbatim
20796 #. type: verbatim
20797 #: ../src/guestfs-structs.pod:101
20798 #, no-wrap
20799 msgid ""
20800 " struct guestfs_lvm_lv_list {\n"
20801 "   uint32_t len; /* Number of elements in list. */\n"
20802 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20803 " };\n"
20804 " \n"
20805 msgstr ""
20806
20807 # type: verbatim
20808 #. type: verbatim
20809 #: ../src/guestfs-structs.pod:106
20810 #, no-wrap
20811 msgid ""
20812 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20813 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20814 "\n"
20815 msgstr ""
20816
20817 # type: verbatim
20818 #. type: verbatim
20819 #: ../src/guestfs-structs.pod:111
20820 #, no-wrap
20821 msgid ""
20822 " struct guestfs_stat {\n"
20823 "   int64_t dev;\n"
20824 "   int64_t ino;\n"
20825 "   int64_t mode;\n"
20826 "   int64_t nlink;\n"
20827 "   int64_t uid;\n"
20828 "   int64_t gid;\n"
20829 "   int64_t rdev;\n"
20830 "   int64_t size;\n"
20831 "   int64_t blksize;\n"
20832 "   int64_t blocks;\n"
20833 "   int64_t atime;\n"
20834 "   int64_t mtime;\n"
20835 "   int64_t ctime;\n"
20836 " };\n"
20837 " \n"
20838 msgstr ""
20839
20840 # type: verbatim
20841 #. type: verbatim
20842 #: ../src/guestfs-structs.pod:127
20843 #, no-wrap
20844 msgid ""
20845 " struct guestfs_stat_list {\n"
20846 "   uint32_t len; /* Number of elements in list. */\n"
20847 "   struct guestfs_stat *val; /* Elements. */\n"
20848 " };\n"
20849 " \n"
20850 msgstr ""
20851
20852 # type: verbatim
20853 #. type: verbatim
20854 #: ../src/guestfs-structs.pod:132
20855 #, no-wrap
20856 msgid ""
20857 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20858 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20859 "\n"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #. type: verbatim
20864 #: ../src/guestfs-structs.pod:137
20865 #, no-wrap
20866 msgid ""
20867 " struct guestfs_statvfs {\n"
20868 "   int64_t bsize;\n"
20869 "   int64_t frsize;\n"
20870 "   int64_t blocks;\n"
20871 "   int64_t bfree;\n"
20872 "   int64_t bavail;\n"
20873 "   int64_t files;\n"
20874 "   int64_t ffree;\n"
20875 "   int64_t favail;\n"
20876 "   int64_t fsid;\n"
20877 "   int64_t flag;\n"
20878 "   int64_t namemax;\n"
20879 " };\n"
20880 " \n"
20881 msgstr ""
20882
20883 # type: verbatim
20884 #. type: verbatim
20885 #: ../src/guestfs-structs.pod:151
20886 #, no-wrap
20887 msgid ""
20888 " struct guestfs_statvfs_list {\n"
20889 "   uint32_t len; /* Number of elements in list. */\n"
20890 "   struct guestfs_statvfs *val; /* Elements. */\n"
20891 " };\n"
20892 " \n"
20893 msgstr ""
20894
20895 # type: verbatim
20896 #. type: verbatim
20897 #: ../src/guestfs-structs.pod:156
20898 #, no-wrap
20899 msgid ""
20900 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20901 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20902 "\n"
20903 msgstr ""
20904
20905 # type: =head2
20906 #. type: =head2
20907 #: ../src/guestfs-structs.pod:159
20908 msgid "guestfs_dirent"
20909 msgstr ""
20910
20911 # type: verbatim
20912 #. type: verbatim
20913 #: ../src/guestfs-structs.pod:161
20914 #, no-wrap
20915 msgid ""
20916 " struct guestfs_dirent {\n"
20917 "   int64_t ino;\n"
20918 "   char ftyp;\n"
20919 "   char *name;\n"
20920 " };\n"
20921 " \n"
20922 msgstr ""
20923
20924 # type: verbatim
20925 #. type: verbatim
20926 #: ../src/guestfs-structs.pod:167
20927 #, no-wrap
20928 msgid ""
20929 " struct guestfs_dirent_list {\n"
20930 "   uint32_t len; /* Number of elements in list. */\n"
20931 "   struct guestfs_dirent *val; /* Elements. */\n"
20932 " };\n"
20933 " \n"
20934 msgstr ""
20935
20936 # type: verbatim
20937 #. type: verbatim
20938 #: ../src/guestfs-structs.pod:172
20939 #, no-wrap
20940 msgid ""
20941 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20942 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20943 "\n"
20944 msgstr ""
20945
20946 # type: verbatim
20947 #. type: verbatim
20948 #: ../src/guestfs-structs.pod:177
20949 #, no-wrap
20950 msgid ""
20951 " struct guestfs_version {\n"
20952 "   int64_t major;\n"
20953 "   int64_t minor;\n"
20954 "   int64_t release;\n"
20955 "   char *extra;\n"
20956 " };\n"
20957 " \n"
20958 msgstr ""
20959
20960 # type: verbatim
20961 #. type: verbatim
20962 #: ../src/guestfs-structs.pod:184
20963 #, no-wrap
20964 msgid ""
20965 " struct guestfs_version_list {\n"
20966 "   uint32_t len; /* Number of elements in list. */\n"
20967 "   struct guestfs_version *val; /* Elements. */\n"
20968 " };\n"
20969 " \n"
20970 msgstr ""
20971
20972 # type: verbatim
20973 #. type: verbatim
20974 #: ../src/guestfs-structs.pod:189
20975 #, no-wrap
20976 msgid ""
20977 " void guestfs_free_version (struct guestfs_free_version *);\n"
20978 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20979 "\n"
20980 msgstr ""
20981
20982 # type: =head2
20983 #. type: =head2
20984 #: ../src/guestfs-structs.pod:192
20985 msgid "guestfs_xattr"
20986 msgstr ""
20987
20988 # type: verbatim
20989 #. type: verbatim
20990 #: ../src/guestfs-structs.pod:194
20991 #, no-wrap
20992 msgid ""
20993 " struct guestfs_xattr {\n"
20994 "   char *attrname;\n"
20995 "   /* The next two fields describe a byte array. */\n"
20996 "   uint32_t attrval_len;\n"
20997 "   char *attrval;\n"
20998 " };\n"
20999 " \n"
21000 msgstr ""
21001
21002 # type: verbatim
21003 #. type: verbatim
21004 #: ../src/guestfs-structs.pod:201
21005 #, no-wrap
21006 msgid ""
21007 " struct guestfs_xattr_list {\n"
21008 "   uint32_t len; /* Number of elements in list. */\n"
21009 "   struct guestfs_xattr *val; /* Elements. */\n"
21010 " };\n"
21011 " \n"
21012 msgstr ""
21013
21014 # type: verbatim
21015 #. type: verbatim
21016 #: ../src/guestfs-structs.pod:206
21017 #, no-wrap
21018 msgid ""
21019 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
21020 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
21021 "\n"
21022 msgstr ""
21023
21024 # type: =head2
21025 #. type: =head2
21026 #: ../src/guestfs-structs.pod:209
21027 msgid "guestfs_inotify_event"
21028 msgstr ""
21029
21030 # type: verbatim
21031 #. type: verbatim
21032 #: ../src/guestfs-structs.pod:211
21033 #, no-wrap
21034 msgid ""
21035 " struct guestfs_inotify_event {\n"
21036 "   int64_t in_wd;\n"
21037 "   uint32_t in_mask;\n"
21038 "   uint32_t in_cookie;\n"
21039 "   char *in_name;\n"
21040 " };\n"
21041 " \n"
21042 msgstr ""
21043
21044 # type: verbatim
21045 #. type: verbatim
21046 #: ../src/guestfs-structs.pod:218
21047 #, no-wrap
21048 msgid ""
21049 " struct guestfs_inotify_event_list {\n"
21050 "   uint32_t len; /* Number of elements in list. */\n"
21051 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21052 " };\n"
21053 " \n"
21054 msgstr ""
21055
21056 # type: verbatim
21057 #. type: verbatim
21058 #: ../src/guestfs-structs.pod:223
21059 #, no-wrap
21060 msgid ""
21061 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21062 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21063 "\n"
21064 msgstr ""
21065
21066 # type: =head2
21067 #. type: =head2
21068 #: ../src/guestfs-structs.pod:226
21069 msgid "guestfs_partition"
21070 msgstr ""
21071
21072 # type: verbatim
21073 #. type: verbatim
21074 #: ../src/guestfs-structs.pod:228
21075 #, no-wrap
21076 msgid ""
21077 " struct guestfs_partition {\n"
21078 "   int32_t part_num;\n"
21079 "   uint64_t part_start;\n"
21080 "   uint64_t part_end;\n"
21081 "   uint64_t part_size;\n"
21082 " };\n"
21083 " \n"
21084 msgstr ""
21085
21086 # type: verbatim
21087 #. type: verbatim
21088 #: ../src/guestfs-structs.pod:235
21089 #, no-wrap
21090 msgid ""
21091 " struct guestfs_partition_list {\n"
21092 "   uint32_t len; /* Number of elements in list. */\n"
21093 "   struct guestfs_partition *val; /* Elements. */\n"
21094 " };\n"
21095 " \n"
21096 msgstr ""
21097
21098 # type: verbatim
21099 #. type: verbatim
21100 #: ../src/guestfs-structs.pod:240
21101 #, no-wrap
21102 msgid ""
21103 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21104 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21105 "\n"
21106 msgstr ""
21107
21108 # type: =head2
21109 #. type: =head2
21110 #: ../src/guestfs-structs.pod:243
21111 msgid "guestfs_application"
21112 msgstr ""
21113
21114 # type: verbatim
21115 #. type: verbatim
21116 #: ../src/guestfs-structs.pod:245
21117 #, no-wrap
21118 msgid ""
21119 " struct guestfs_application {\n"
21120 "   char *app_name;\n"
21121 "   char *app_display_name;\n"
21122 "   int32_t app_epoch;\n"
21123 "   char *app_version;\n"
21124 "   char *app_release;\n"
21125 "   char *app_install_path;\n"
21126 "   char *app_trans_path;\n"
21127 "   char *app_publisher;\n"
21128 "   char *app_url;\n"
21129 "   char *app_source_package;\n"
21130 "   char *app_summary;\n"
21131 "   char *app_description;\n"
21132 " };\n"
21133 " \n"
21134 msgstr ""
21135
21136 # type: verbatim
21137 #. type: verbatim
21138 #: ../src/guestfs-structs.pod:260
21139 #, no-wrap
21140 msgid ""
21141 " struct guestfs_application_list {\n"
21142 "   uint32_t len; /* Number of elements in list. */\n"
21143 "   struct guestfs_application *val; /* Elements. */\n"
21144 " };\n"
21145 " \n"
21146 msgstr ""
21147
21148 # type: verbatim
21149 #. type: verbatim
21150 #: ../src/guestfs-structs.pod:265
21151 #, no-wrap
21152 msgid ""
21153 " void guestfs_free_application (struct guestfs_free_application *);\n"
21154 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21155 "\n"
21156 msgstr ""
21157
21158 # type: textblock
21159 #. type: textblock
21160 #: ../fish/guestfish.pod:5
21161 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21162 msgstr ""
21163
21164 # type: verbatim
21165 #. type: verbatim
21166 #: ../fish/guestfish.pod:9
21167 #, no-wrap
21168 msgid ""
21169 " guestfish [--options] [commands]\n"
21170 "\n"
21171 msgstr ""
21172
21173 # type: verbatim
21174 #. type: verbatim
21175 #: ../fish/guestfish.pod:11
21176 #, no-wrap
21177 msgid ""
21178 " guestfish\n"
21179 "\n"
21180 msgstr ""
21181
21182 # type: verbatim
21183 #. type: verbatim
21184 #: ../fish/guestfish.pod:13
21185 #, no-wrap
21186 msgid ""
21187 " guestfish [--ro|--rw] -a disk.img\n"
21188 "\n"
21189 msgstr ""
21190
21191 # type: verbatim
21192 #. type: verbatim
21193 #: ../fish/guestfish.pod:15
21194 #, no-wrap
21195 msgid ""
21196 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21197 "\n"
21198 msgstr ""
21199
21200 # type: verbatim
21201 #. type: verbatim
21202 #: ../fish/guestfish.pod:17
21203 #, no-wrap
21204 msgid ""
21205 " guestfish -d libvirt-domain\n"
21206 "\n"
21207 msgstr ""
21208
21209 # type: verbatim
21210 #. type: verbatim
21211 #: ../fish/guestfish.pod:19
21212 #, no-wrap
21213 msgid ""
21214 " guestfish [--ro|--rw] -a disk.img -i\n"
21215 "\n"
21216 msgstr ""
21217
21218 # type: verbatim
21219 #. type: verbatim
21220 #: ../fish/guestfish.pod:21
21221 #, no-wrap
21222 msgid ""
21223 " guestfish -d libvirt-domain -i\n"
21224 "\n"
21225 msgstr ""
21226
21227 # type: =head1
21228 #. type: =head1
21229 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
21230 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21231 msgid "WARNING"
21232 msgstr ""
21233
21234 # type: textblock
21235 #. type: textblock
21236 #: ../fish/guestfish.pod:25
21237 msgid ""
21238 "Using guestfish in read/write mode on live virtual machines can be "
21239 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21240 "option to use guestfish safely if the disk image or virtual machine might be "
21241 "live."
21242 msgstr ""
21243
21244 # type: textblock
21245 #. type: textblock
21246 #: ../fish/guestfish.pod:32
21247 msgid ""
21248 "Guestfish is a shell and command-line tool for examining and modifying "
21249 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21250 "functionality of the guestfs API, see L<guestfs(3)>."
21251 msgstr ""
21252
21253 # type: textblock
21254 #. type: textblock
21255 #: ../fish/guestfish.pod:36
21256 msgid ""
21257 "Guestfish gives you structured access to the libguestfs API, from shell "
21258 "scripts or the command line or interactively.  If you want to rescue a "
21259 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21260 "command."
21261 msgstr ""
21262
21263 # type: =head1
21264 #. type: =head1
21265 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:942
21266 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
21267 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
21268 msgid "EXAMPLES"
21269 msgstr ""
21270
21271 # type: =head2
21272 #. type: =head2
21273 #: ../fish/guestfish.pod:43
21274 msgid "As an interactive shell"
21275 msgstr ""
21276
21277 # type: verbatim
21278 #. type: verbatim
21279 #: ../fish/guestfish.pod:45
21280 #, no-wrap
21281 msgid ""
21282 " $ guestfish\n"
21283 " \n"
21284 msgstr ""
21285
21286 # type: verbatim
21287 #. type: verbatim
21288 #: ../fish/guestfish.pod:47
21289 #, no-wrap
21290 msgid ""
21291 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21292 " editing virtual machine filesystems.\n"
21293 " \n"
21294 msgstr ""
21295
21296 # type: verbatim
21297 #. type: verbatim
21298 #: ../fish/guestfish.pod:50
21299 #, no-wrap
21300 msgid ""
21301 " Type: 'help' for a list of commands\n"
21302 "       'man' to read the manual\n"
21303 "       'quit' to quit the shell\n"
21304 " \n"
21305 msgstr ""
21306
21307 # type: verbatim
21308 #. type: verbatim
21309 #: ../fish/guestfish.pod:54
21310 #, no-wrap
21311 msgid ""
21312 " ><fs> add-ro disk.img\n"
21313 " ><fs> run\n"
21314 " ><fs> list-filesystems\n"
21315 " /dev/sda1: ext4\n"
21316 " /dev/vg_guest/lv_root: ext4\n"
21317 " /dev/vg_guest/lv_swap: swap\n"
21318 " ><fs> mount /dev/vg_guest/lv_root /\n"
21319 " ><fs> cat /etc/fstab\n"
21320 " # /etc/fstab\n"
21321 " # Created by anaconda\n"
21322 " [...]\n"
21323 " ><fs> exit\n"
21324 "\n"
21325 msgstr ""
21326
21327 # type: =head2
21328 #. type: =head2
21329 #: ../fish/guestfish.pod:67
21330 msgid "From shell scripts"
21331 msgstr ""
21332
21333 # type: textblock
21334 #. type: textblock
21335 #: ../fish/guestfish.pod:69
21336 msgid "Create a new C</etc/motd> file in a guest or disk image:"
21337 msgstr ""
21338
21339 # type: verbatim
21340 #. type: verbatim
21341 #: ../fish/guestfish.pod:71
21342 #, no-wrap
21343 msgid ""
21344 " guestfish <<_EOF_\n"
21345 " add disk.img\n"
21346 " run\n"
21347 " mount /dev/vg_guest/lv_root /\n"
21348 " write /etc/motd \"Welcome, new users\"\n"
21349 " _EOF_\n"
21350 "\n"
21351 msgstr ""
21352
21353 # type: textblock
21354 #. type: textblock
21355 #: ../fish/guestfish.pod:78
21356 msgid "List the LVM logical volumes in a disk image:"
21357 msgstr ""
21358
21359 # type: verbatim
21360 #. type: verbatim
21361 #: ../fish/guestfish.pod:80
21362 #, no-wrap
21363 msgid ""
21364 " guestfish -a disk.img --ro <<_EOF_\n"
21365 " run\n"
21366 " lvs\n"
21367 " _EOF_\n"
21368 "\n"
21369 msgstr ""
21370
21371 # type: textblock
21372 #. type: textblock
21373 #: ../fish/guestfish.pod:85
21374 msgid "List all the filesystems in a disk image:"
21375 msgstr ""
21376
21377 # type: verbatim
21378 #. type: verbatim
21379 #: ../fish/guestfish.pod:87
21380 #, no-wrap
21381 msgid ""
21382 " guestfish -a disk.img --ro <<_EOF_\n"
21383 " run\n"
21384 " list-filesystems\n"
21385 " _EOF_\n"
21386 "\n"
21387 msgstr ""
21388
21389 # type: =head2
21390 #. type: =head2
21391 #: ../fish/guestfish.pod:92
21392 msgid "On one command line"
21393 msgstr ""
21394
21395 # type: textblock
21396 #. type: textblock
21397 #: ../fish/guestfish.pod:94
21398 msgid "Update C</etc/resolv.conf> in a guest:"
21399 msgstr ""
21400
21401 # type: verbatim
21402 #. type: verbatim
21403 #: ../fish/guestfish.pod:96
21404 #, no-wrap
21405 msgid ""
21406 " guestfish \\\n"
21407 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
21408 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
21409 "\n"
21410 msgstr ""
21411
21412 # type: textblock
21413 #. type: textblock
21414 #: ../fish/guestfish.pod:100
21415 msgid "Edit C</boot/grub/grub.conf> interactively:"
21416 msgstr ""
21417
21418 # type: verbatim
21419 #. type: verbatim
21420 #: ../fish/guestfish.pod:102
21421 #, no-wrap
21422 msgid ""
21423 " guestfish --rw --add disk.img \\\n"
21424 "   --mount /dev/vg_guest/lv_root \\\n"
21425 "   --mount /dev/sda1:/boot \\\n"
21426 "   edit /boot/grub/grub.conf\n"
21427 "\n"
21428 msgstr ""
21429
21430 # type: =head2
21431 #. type: =head2
21432 #: ../fish/guestfish.pod:107
21433 msgid "Mount disks automatically"
21434 msgstr ""
21435
21436 # type: textblock
21437 #. type: textblock
21438 #: ../fish/guestfish.pod:109
21439 msgid ""
21440 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
21441 msgstr ""
21442
21443 # type: verbatim
21444 #. type: verbatim
21445 #: ../fish/guestfish.pod:112
21446 #, no-wrap
21447 msgid ""
21448 " guestfish --ro -a disk.img -i cat /etc/group\n"
21449 "\n"
21450 msgstr ""
21451
21452 # type: verbatim
21453 #. type: verbatim
21454 #: ../fish/guestfish.pod:114
21455 #, no-wrap
21456 msgid ""
21457 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
21458 "\n"
21459 msgstr ""
21460
21461 # type: textblock
21462 #. type: textblock
21463 #: ../fish/guestfish.pod:116
21464 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
21465 msgstr ""
21466
21467 # type: verbatim
21468 #. type: verbatim
21469 #: ../fish/guestfish.pod:118
21470 #, no-wrap
21471 msgid ""
21472 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
21473 "\n"
21474 msgstr ""
21475
21476 # type: =head2
21477 #. type: =head2
21478 #: ../fish/guestfish.pod:120
21479 msgid "As a script interpreter"
21480 msgstr ""
21481
21482 # type: textblock
21483 #. type: textblock
21484 #: ../fish/guestfish.pod:122
21485 msgid "Create a 100MB disk containing an ext2-formatted partition:"
21486 msgstr ""
21487
21488 # type: verbatim
21489 #. type: verbatim
21490 #: ../fish/guestfish.pod:124
21491 #, no-wrap
21492 msgid ""
21493 " #!/usr/bin/guestfish -f\n"
21494 " sparse test1.img 100M\n"
21495 " run\n"
21496 " part-disk /dev/sda mbr\n"
21497 " mkfs ext2 /dev/sda1\n"
21498 "\n"
21499 msgstr ""
21500
21501 # type: =head2
21502 #. type: =head2
21503 #: ../fish/guestfish.pod:130
21504 msgid "Start with a prepared disk"
21505 msgstr ""
21506
21507 # type: textblock
21508 #. type: textblock
21509 #: ../fish/guestfish.pod:132
21510 msgid ""
21511 "An alternate way to create a 100MB disk called C<test1.img> containing a "
21512 "single ext2-formatted partition:"
21513 msgstr ""
21514
21515 # type: verbatim
21516 #. type: verbatim
21517 #: ../fish/guestfish.pod:135
21518 #, no-wrap
21519 msgid ""
21520 " guestfish -N fs\n"
21521 "\n"
21522 msgstr ""
21523
21524 # type: textblock
21525 #. type: textblock
21526 #: ../fish/guestfish.pod:137
21527 msgid "To list what is available do:"
21528 msgstr ""
21529
21530 # type: verbatim
21531 #. type: verbatim
21532 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:933
21533 #, no-wrap
21534 msgid ""
21535 " guestfish -N help | less\n"
21536 "\n"
21537 msgstr ""
21538
21539 # type: =head2
21540 #. type: =head2
21541 #: ../fish/guestfish.pod:141
21542 msgid "Remote control"
21543 msgstr ""
21544
21545 # type: verbatim
21546 #. type: verbatim
21547 #: ../fish/guestfish.pod:143
21548 #, no-wrap
21549 msgid ""
21550 " eval \"`guestfish --listen`\"\n"
21551 " guestfish --remote add-ro disk.img\n"
21552 " guestfish --remote run\n"
21553 " guestfish --remote lvs\n"
21554 "\n"
21555 msgstr ""
21556
21557 # type: =head1
21558 #. type: =head1
21559 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
21560 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
21561 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
21562 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
21563 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
21564 msgid "OPTIONS"
21565 msgstr ""
21566
21567 # type: =item
21568 #. type: =item
21569 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
21570 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
21571 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
21572 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
21573 #: ../tools/virt-list-partitions.pl:62
21574 msgid "B<--help>"
21575 msgstr ""
21576
21577 # type: textblock
21578 #. type: textblock
21579 #: ../fish/guestfish.pod:154
21580 msgid "Displays general help on options."
21581 msgstr ""
21582
21583 # type: =item
21584 #. type: =item
21585 #: ../fish/guestfish.pod:156
21586 msgid "B<-h>"
21587 msgstr ""
21588
21589 # type: =item
21590 #. type: =item
21591 #: ../fish/guestfish.pod:158
21592 msgid "B<--cmd-help>"
21593 msgstr ""
21594
21595 # type: textblock
21596 #. type: textblock
21597 #: ../fish/guestfish.pod:160
21598 msgid "Lists all available guestfish commands."
21599 msgstr ""
21600
21601 # type: =item
21602 #. type: =item
21603 #: ../fish/guestfish.pod:162
21604 msgid "B<-h cmd>"
21605 msgstr ""
21606
21607 # type: =item
21608 #. type: =item
21609 #: ../fish/guestfish.pod:164
21610 msgid "B<--cmd-help cmd>"
21611 msgstr ""
21612
21613 # type: textblock
21614 #. type: textblock
21615 #: ../fish/guestfish.pod:166
21616 msgid "Displays detailed help on a single command C<cmd>."
21617 msgstr ""
21618
21619 # type: =item
21620 #. type: =item
21621 #: ../fish/guestfish.pod:168
21622 msgid "B<-a image>"
21623 msgstr ""
21624
21625 # type: =item
21626 #. type: =item
21627 #: ../fish/guestfish.pod:170
21628 msgid "B<--add image>"
21629 msgstr ""
21630
21631 # type: textblock
21632 #. type: textblock
21633 #: ../fish/guestfish.pod:172
21634 msgid "Add a block device or virtual machine image to the shell."
21635 msgstr ""
21636
21637 # type: textblock
21638 #. type: textblock
21639 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
21640 msgid ""
21641 "The format of the disk image is auto-detected.  To override this and force a "
21642 "particular format use the I<--format=..> option."
21643 msgstr ""
21644
21645 # type: textblock
21646 #. type: textblock
21647 #: ../fish/guestfish.pod:177
21648 msgid ""
21649 "Using this flag is mostly equivalent to using the C<add> command, with "
21650 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21651 "the I<--format:...> flag was given."
21652 msgstr ""
21653
21654 # type: =item
21655 #. type: =item
21656 #: ../fish/guestfish.pod:181
21657 msgid "B<-c URI>"
21658 msgstr ""
21659
21660 # type: =item
21661 #. type: =item
21662 #: ../fish/guestfish.pod:183
21663 msgid "B<--connect URI>"
21664 msgstr ""
21665
21666 # type: textblock
21667 #. type: textblock
21668 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21669 msgid ""
21670 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21671 "URI to use.  The default is to use the default libvirt connection."
21672 msgstr ""
21673
21674 # type: =item
21675 #. type: =item
21676 #: ../fish/guestfish.pod:189
21677 msgid "B<--csh>"
21678 msgstr ""
21679
21680 # type: textblock
21681 #. type: textblock
21682 #: ../fish/guestfish.pod:191
21683 msgid ""
21684 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21685 "section L</REMOTE CONTROL AND CSH> below."
21686 msgstr ""
21687
21688 # type: =item
21689 #. type: =item
21690 #: ../fish/guestfish.pod:194
21691 msgid "B<-d libvirt-domain>"
21692 msgstr ""
21693
21694 # type: =item
21695 #. type: =item
21696 #: ../fish/guestfish.pod:196
21697 msgid "B<--domain libvirt-domain>"
21698 msgstr ""
21699
21700 # type: textblock
21701 #. type: textblock
21702 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21703 msgid ""
21704 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21705 "used, then any libvirt domain can be used.  However in write mode, only "
21706 "libvirt domains which are shut down can be named here."
21707 msgstr ""
21708
21709 # type: textblock
21710 #. type: textblock
21711 #: ../fish/guestfish.pod:202
21712 msgid ""
21713 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21714 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21715 "if the I<--format:...> flag was given."
21716 msgstr ""
21717
21718 # type: =item
21719 #. type: =item
21720 #: ../fish/guestfish.pod:206
21721 msgid "B<-D>"
21722 msgstr ""
21723
21724 # type: =item
21725 #. type: =item
21726 #: ../fish/guestfish.pod:208
21727 msgid "B<--no-dest-paths>"
21728 msgstr ""
21729
21730 # type: textblock
21731 #. type: textblock
21732 #: ../fish/guestfish.pod:210
21733 msgid ""
21734 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21735 "to hit the tab key to complete paths on the guest filesystem, but this "
21736 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21737 "allow this feature to be disabled."
21738 msgstr ""
21739
21740 # type: =item
21741 #. type: =item
21742 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21743 msgid "B<--echo-keys>"
21744 msgstr ""
21745
21746 # type: textblock
21747 #. type: textblock
21748 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21749 msgid ""
21750 "When prompting for keys and passphrases, guestfish normally turns echoing "
21751 "off so you cannot see what you are typing.  If you are not worried about "
21752 "Tempest attacks and there is no one else in the room you can specify this "
21753 "flag to see what you are typing."
21754 msgstr ""
21755
21756 # type: =item
21757 #. type: =item
21758 #: ../fish/guestfish.pod:222
21759 msgid "B<-f file>"
21760 msgstr ""
21761
21762 # type: =item
21763 #. type: =item
21764 #: ../fish/guestfish.pod:224
21765 msgid "B<--file file>"
21766 msgstr ""
21767
21768 # type: textblock
21769 #. type: textblock
21770 #: ../fish/guestfish.pod:226
21771 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21772 msgstr ""
21773
21774 # type: verbatim
21775 #. type: verbatim
21776 #: ../fish/guestfish.pod:229
21777 #, no-wrap
21778 msgid ""
21779 " #!/usr/bin/guestfish -f\n"
21780 "\n"
21781 msgstr ""
21782
21783 # type: =item
21784 #. type: =item
21785 #: ../fish/guestfish.pod:231
21786 msgid "B<--format=raw|qcow2|..>"
21787 msgstr ""
21788
21789 # type: =item
21790 #. type: =item
21791 #: ../fish/guestfish.pod:233
21792 msgid "B<--format>"
21793 msgstr ""
21794
21795 # type: textblock
21796 #. type: textblock
21797 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21798 msgid ""
21799 "The default for the I<-a> option is to auto-detect the format of the disk "
21800 "image.  Using this forces the disk format for I<-a> options which follow on "
21801 "the command line.  Using I<--format> with no argument switches back to auto-"
21802 "detection for subsequent I<-a> options."
21803 msgstr ""
21804
21805 # type: verbatim
21806 #. type: verbatim
21807 #: ../fish/guestfish.pod:242
21808 #, no-wrap
21809 msgid ""
21810 " guestfish --format=raw -a disk.img\n"
21811 "\n"
21812 msgstr ""
21813
21814 # type: textblock
21815 #. type: textblock
21816 #: ../fish/guestfish.pod:244
21817 msgid "forces raw format (no auto-detection) for C<disk.img>."
21818 msgstr ""
21819
21820 # type: verbatim
21821 #. type: verbatim
21822 #: ../fish/guestfish.pod:246
21823 #, no-wrap
21824 msgid ""
21825 " guestfish --format=raw -a disk.img --format -a another.img\n"
21826 "\n"
21827 msgstr ""
21828
21829 # type: textblock
21830 #. type: textblock
21831 #: ../fish/guestfish.pod:248
21832 msgid ""
21833 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21834 "detection for C<another.img>."
21835 msgstr ""
21836
21837 # type: textblock
21838 #. type: textblock
21839 #: ../fish/guestfish.pod:251
21840 msgid ""
21841 "If you have untrusted raw-format guest disk images, you should use this "
21842 "option to specify the disk format.  This avoids a possible security problem "
21843 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21844 msgstr ""
21845
21846 # type: =item
21847 #. type: =item
21848 #: ../fish/guestfish.pod:256
21849 msgid "B<-i>"
21850 msgstr ""
21851
21852 # type: =item
21853 #. type: =item
21854 #: ../fish/guestfish.pod:258
21855 msgid "B<--inspector>"
21856 msgstr ""
21857
21858 # type: textblock
21859 #. type: textblock
21860 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21861 msgid ""
21862 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21863 "system and mount filesystems as they would be mounted on the real virtual "
21864 "machine."
21865 msgstr ""
21866
21867 # type: textblock
21868 #. type: textblock
21869 #: ../fish/guestfish.pod:264
21870 msgid "Typical usage is either:"
21871 msgstr ""
21872
21873 # type: verbatim
21874 #. type: verbatim
21875 #: ../fish/guestfish.pod:266
21876 #, no-wrap
21877 msgid ""
21878 " guestfish -d myguest -i\n"
21879 "\n"
21880 msgstr ""
21881
21882 # type: textblock
21883 #. type: textblock
21884 #: ../fish/guestfish.pod:268
21885 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21886 msgstr ""
21887
21888 # type: verbatim
21889 #. type: verbatim
21890 #: ../fish/guestfish.pod:270
21891 #, no-wrap
21892 msgid ""
21893 " guestfish --ro -d myguest -i\n"
21894 "\n"
21895 msgstr ""
21896
21897 # type: textblock
21898 #. type: textblock
21899 #: ../fish/guestfish.pod:272
21900 msgid "(for active domains, readonly), or specify the block device directly:"
21901 msgstr ""
21902
21903 # type: verbatim
21904 #. type: verbatim
21905 #: ../fish/guestfish.pod:274
21906 #, no-wrap
21907 msgid ""
21908 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21909 "\n"
21910 msgstr ""
21911
21912 # type: textblock
21913 #. type: textblock
21914 #: ../fish/guestfish.pod:276
21915 msgid ""
21916 "Note that the command line syntax changed slightly over older versions of "
21917 "guestfish.  You can still use the old syntax:"
21918 msgstr ""
21919
21920 # type: verbatim
21921 #. type: verbatim
21922 #: ../fish/guestfish.pod:279
21923 #, no-wrap
21924 msgid ""
21925 " guestfish [--ro] -i disk.img\n"
21926 "\n"
21927 msgstr ""
21928
21929 # type: verbatim
21930 #. type: verbatim
21931 #: ../fish/guestfish.pod:281
21932 #, no-wrap
21933 msgid ""
21934 " guestfish [--ro] -i libvirt-domain\n"
21935 "\n"
21936 msgstr ""
21937
21938 # type: textblock
21939 #. type: textblock
21940 #: ../fish/guestfish.pod:283
21941 msgid ""
21942 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21943 "then using other commands to mount the filesystems that were found."
21944 msgstr ""
21945
21946 # type: =item
21947 #. type: =item
21948 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21949 msgid "B<--keys-from-stdin>"
21950 msgstr ""
21951
21952 # type: textblock
21953 #. type: textblock
21954 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21955 msgid ""
21956 "Read key or passphrase parameters from stdin.  The default is to try to read "
21957 "passphrases from the user by opening C</dev/tty>."
21958 msgstr ""
21959
21960 # type: =item
21961 #. type: =item
21962 #: ../fish/guestfish.pod:292
21963 msgid "B<--listen>"
21964 msgstr ""
21965
21966 # type: textblock
21967 #. type: textblock
21968 #: ../fish/guestfish.pod:294
21969 msgid ""
21970 "Fork into the background and listen for remote commands.  See section L</"
21971 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21972 msgstr ""
21973
21974 #. type: =item
21975 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
21976 msgid "B<--live>"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
21981 msgid ""
21982 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
21983 "ATTACHING TO RUNNING DAEMONS>)."
21984 msgstr ""
21985
21986 #. type: =item
21987 #: ../fish/guestfish.pod:302 ../fuse/guestmount.pod:151
21988 msgid "B<-m dev[:mountpoint[:options]]>"
21989 msgstr ""
21990
21991 #. type: =item
21992 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:153
21993 msgid "B<--mount dev[:mountpoint[:options]]>"
21994 msgstr ""
21995
21996 # type: textblock
21997 #. type: textblock
21998 #: ../fish/guestfish.pod:306
21999 msgid "Mount the named partition or logical volume on the given mountpoint."
22000 msgstr ""
22001
22002 # type: textblock
22003 #. type: textblock
22004 #: ../fish/guestfish.pod:308
22005 msgid "If the mountpoint is omitted, it defaults to C</>."
22006 msgstr ""
22007
22008 # type: textblock
22009 #. type: textblock
22010 #: ../fish/guestfish.pod:310
22011 msgid "You have to mount something on C</> before most commands will work."
22012 msgstr ""
22013
22014 # type: textblock
22015 #. type: textblock
22016 #: ../fish/guestfish.pod:312
22017 msgid ""
22018 "If any I<-m> or I<--mount> options are given, the guest is automatically "
22019 "launched."
22020 msgstr ""
22021
22022 # type: textblock
22023 #. type: textblock
22024 #: ../fish/guestfish.pod:315
22025 msgid ""
22026 "If you don't know what filesystems a disk image contains, you can either run "
22027 "guestfish without this option, then list the partitions, filesystems and LVs "
22028 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
22029 "commands), or you can use the L<virt-filesystems(1)> program."
22030 msgstr ""
22031
22032 #. type: textblock
22033 #: ../fish/guestfish.pod:321 ../fuse/guestmount.pod:161
22034 msgid ""
22035 "The third (and rarely used) part of the mount parameter is the list of mount "
22036 "options used to mount the underlying filesystem.  If this is not given, then "
22037 "the mount options are either the empty string or C<ro> (the latter if the "
22038 "I<--ro> flag is used).  By specifying the mount options, you override this "
22039 "default choice.  Probably the only time you would use this is to enable ACLs "
22040 "and/or extended attributes if the filesystem can support them:"
22041 msgstr ""
22042
22043 #. type: verbatim
22044 #: ../fish/guestfish.pod:329 ../fuse/guestmount.pod:169
22045 #, no-wrap
22046 msgid ""
22047 " -m /dev/sda1:/:acl,user_xattr\n"
22048 "\n"
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../fish/guestfish.pod:331
22053 msgid "Using this flag is equivalent to using the C<mount-options> command."
22054 msgstr ""
22055
22056 # type: =item
22057 #. type: =item
22058 #: ../fish/guestfish.pod:333
22059 msgid "B<-n>"
22060 msgstr ""
22061
22062 # type: =item
22063 #. type: =item
22064 #: ../fish/guestfish.pod:335
22065 msgid "B<--no-sync>"
22066 msgstr ""
22067
22068 # type: textblock
22069 #. type: textblock
22070 #: ../fish/guestfish.pod:337
22071 msgid ""
22072 "Disable autosync.  This is enabled by default.  See the discussion of "
22073 "autosync in the L<guestfs(3)> manpage."
22074 msgstr ""
22075
22076 # type: =item
22077 #. type: =item
22078 #: ../fish/guestfish.pod:340
22079 msgid "B<-N type>"
22080 msgstr ""
22081
22082 # type: =item
22083 #. type: =item
22084 #: ../fish/guestfish.pod:342
22085 msgid "B<--new type>"
22086 msgstr ""
22087
22088 # type: =item
22089 #. type: =item
22090 #: ../fish/guestfish.pod:344
22091 msgid "B<-N help>"
22092 msgstr ""
22093
22094 # type: textblock
22095 #. type: textblock
22096 #: ../fish/guestfish.pod:346
22097 msgid ""
22098 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22099 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22100 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22101 "IMAGES> below."
22102 msgstr ""
22103
22104 # type: =item
22105 #. type: =item
22106 #: ../fish/guestfish.pod:351
22107 msgid "B<--progress-bars>"
22108 msgstr ""
22109
22110 # type: textblock
22111 #. type: textblock
22112 #: ../fish/guestfish.pod:353
22113 msgid "Enable progress bars, even when guestfish is used non-interactively."
22114 msgstr ""
22115
22116 # type: textblock
22117 #. type: textblock
22118 #: ../fish/guestfish.pod:355
22119 msgid ""
22120 "Progress bars are enabled by default when guestfish is used as an "
22121 "interactive shell."
22122 msgstr ""
22123
22124 # type: =item
22125 #. type: =item
22126 #: ../fish/guestfish.pod:358
22127 msgid "B<--no-progress-bars>"
22128 msgstr ""
22129
22130 # type: textblock
22131 #. type: textblock
22132 #: ../fish/guestfish.pod:360
22133 msgid "Disable progress bars."
22134 msgstr ""
22135
22136 # type: =item
22137 #. type: =item
22138 #: ../fish/guestfish.pod:362
22139 msgid "B<--remote[=pid]>"
22140 msgstr ""
22141
22142 # type: textblock
22143 #. type: textblock
22144 #: ../fish/guestfish.pod:364
22145 msgid ""
22146 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22147 "CONTROL GUESTFISH OVER A SOCKET> below."
22148 msgstr ""
22149
22150 # type: =item
22151 #. type: =item
22152 #: ../fish/guestfish.pod:367
22153 msgid "B<-r>"
22154 msgstr ""
22155
22156 # type: =item
22157 #. type: =item
22158 #: ../fish/guestfish.pod:369
22159 msgid "B<--ro>"
22160 msgstr ""
22161
22162 # type: textblock
22163 #. type: textblock
22164 #: ../fish/guestfish.pod:371
22165 msgid ""
22166 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22167 "mounts are done read-only."
22168 msgstr ""
22169
22170 # type: textblock
22171 #. type: textblock
22172 #: ../fish/guestfish.pod:374
22173 msgid ""
22174 "The option must always be used if the disk image or virtual machine might be "
22175 "running, and is generally recommended in cases where you don't need write "
22176 "access to the disk."
22177 msgstr ""
22178
22179 # type: textblock
22180 #. type: textblock
22181 #: ../fish/guestfish.pod:378
22182 msgid ""
22183 "Note that prepared disk images created with I<-N> are not affected by this "
22184 "option.  Also commands like C<add> are not affected - you have to specify "
22185 "the C<readonly:true> option explicitly if you need it."
22186 msgstr ""
22187
22188 # type: textblock
22189 #. type: textblock
22190 #: ../fish/guestfish.pod:382
22191 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22192 msgstr ""
22193
22194 # type: =item
22195 #. type: =item
22196 #: ../fish/guestfish.pod:384 ../fuse/guestmount.pod:225
22197 msgid "B<--selinux>"
22198 msgstr ""
22199
22200 # type: textblock
22201 #. type: textblock
22202 #: ../fish/guestfish.pod:386
22203 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22204 msgstr ""
22205
22206 # type: =item
22207 #. type: =item
22208 #: ../fish/guestfish.pod:388
22209 msgid "B<-v>"
22210 msgstr ""
22211
22212 # type: =item
22213 #. type: =item
22214 #: ../fish/guestfish.pod:390
22215 msgid "B<--verbose>"
22216 msgstr ""
22217
22218 # type: textblock
22219 #. type: textblock
22220 #: ../fish/guestfish.pod:392
22221 msgid ""
22222 "Enable very verbose messages.  This is particularly useful if you find a bug."
22223 msgstr ""
22224
22225 # type: =item
22226 #. type: =item
22227 #: ../fish/guestfish.pod:395
22228 msgid "B<-V>"
22229 msgstr ""
22230
22231 # type: =item
22232 #. type: =item
22233 #: ../fish/guestfish.pod:397 ../tools/virt-edit.pl:88
22234 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
22235 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
22236 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
22237 msgid "B<--version>"
22238 msgstr ""
22239
22240 # type: textblock
22241 #. type: textblock
22242 #: ../fish/guestfish.pod:399
22243 msgid "Display the guestfish / libguestfs version number and exit."
22244 msgstr ""
22245
22246 # type: =item
22247 #. type: =item
22248 #: ../fish/guestfish.pod:401
22249 msgid "B<-w>"
22250 msgstr ""
22251
22252 # type: =item
22253 #. type: =item
22254 #: ../fish/guestfish.pod:403
22255 msgid "B<--rw>"
22256 msgstr ""
22257
22258 #. type: textblock
22259 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:239
22260 msgid ""
22261 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22262 "mounts are done read-write."
22263 msgstr ""
22264
22265 #. type: textblock
22266 #: ../fish/guestfish.pod:408
22267 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
22268 msgstr ""
22269
22270 # type: =item
22271 #. type: =item
22272 #: ../fish/guestfish.pod:410
22273 msgid "B<-x>"
22274 msgstr ""
22275
22276 # type: textblock
22277 #. type: textblock
22278 #: ../fish/guestfish.pod:412
22279 msgid "Echo each command before executing it."
22280 msgstr ""
22281
22282 # type: =head1
22283 #. type: =head1
22284 #: ../fish/guestfish.pod:416
22285 msgid "COMMANDS ON COMMAND LINE"
22286 msgstr ""
22287
22288 # type: textblock
22289 #. type: textblock
22290 #: ../fish/guestfish.pod:418
22291 msgid ""
22292 "Any additional (non-option) arguments are treated as commands to execute."
22293 msgstr ""
22294
22295 # type: textblock
22296 #. type: textblock
22297 #: ../fish/guestfish.pod:421
22298 msgid ""
22299 "Commands to execute should be separated by a colon (C<:>), where the colon "
22300 "is a separate parameter.  Thus:"
22301 msgstr ""
22302
22303 # type: verbatim
22304 #. type: verbatim
22305 #: ../fish/guestfish.pod:424
22306 #, no-wrap
22307 msgid ""
22308 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22309 "\n"
22310 msgstr ""
22311
22312 # type: textblock
22313 #. type: textblock
22314 #: ../fish/guestfish.pod:426
22315 msgid ""
22316 "If there are no additional arguments, then we enter a shell, either an "
22317 "interactive shell with a prompt (if the input is a terminal) or a non-"
22318 "interactive shell."
22319 msgstr ""
22320
22321 # type: textblock
22322 #. type: textblock
22323 #: ../fish/guestfish.pod:430
22324 msgid ""
22325 "In either command line mode or non-interactive shell, the first command that "
22326 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22327 "prompt) if a command fails, you can continue to enter commands."
22328 msgstr ""
22329
22330 # type: =head1
22331 #. type: =head1
22332 #: ../fish/guestfish.pod:435
22333 msgid "USING launch (OR run)"
22334 msgstr ""
22335
22336 # type: textblock
22337 #. type: textblock
22338 #: ../fish/guestfish.pod:437
22339 msgid ""
22340 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22341 "then launch it, then mount any disks you need, and finally issue actions/"
22342 "commands.  So the general order of the day is:"
22343 msgstr ""
22344
22345 # type: textblock
22346 #. type: textblock
22347 #: ../fish/guestfish.pod:445
22348 msgid "add or -a/--add"
22349 msgstr ""
22350
22351 # type: textblock
22352 #. type: textblock
22353 #: ../fish/guestfish.pod:449
22354 msgid "launch (aka run)"
22355 msgstr ""
22356
22357 # type: textblock
22358 #. type: textblock
22359 #: ../fish/guestfish.pod:453
22360 msgid "mount or -m/--mount"
22361 msgstr ""
22362
22363 # type: textblock
22364 #. type: textblock
22365 #: ../fish/guestfish.pod:457
22366 msgid "any other commands"
22367 msgstr ""
22368
22369 # type: textblock
22370 #. type: textblock
22371 #: ../fish/guestfish.pod:461
22372 msgid ""
22373 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
22374 "guest before mounting or performing any other commands."
22375 msgstr ""
22376
22377 # type: textblock
22378 #. type: textblock
22379 #: ../fish/guestfish.pod:464
22380 msgid ""
22381 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
22382 "I<--new> options were given then C<run> is done automatically, simply "
22383 "because guestfish can't perform the action you asked for without doing this."
22384 msgstr ""
22385
22386 # type: =head1
22387 #. type: =head1
22388 #: ../fish/guestfish.pod:469
22389 msgid "OPENING DISKS FOR READ AND WRITE"
22390 msgstr ""
22391
22392 #. type: textblock
22393 #: ../fish/guestfish.pod:471
22394 msgid ""
22395 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
22396 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
22397 "I<-i> and I<-m> open disk images read-only or for writing."
22398 msgstr ""
22399
22400 #. type: textblock
22401 #: ../fish/guestfish.pod:476
22402 msgid ""
22403 "In libguestfs E<le> 1.8, guestfish, guestmount and virt-rescue defaulted to "
22404 "opening disk images supplied on the command line for write.  To open a disk "
22405 "image read-only you have to do I<-a image --ro>."
22406 msgstr ""
22407
22408 # type: textblock
22409 #. type: textblock
22410 #: ../fish/guestfish.pod:480
22411 msgid ""
22412 "This matters: If you accidentally open a live VM disk image writable then "
22413 "you will cause irreversible disk corruption."
22414 msgstr ""
22415
22416 #. type: textblock
22417 #: ../fish/guestfish.pod:483
22418 msgid ""
22419 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
22420 "images will be opened read-only.  You will have to either specify "
22421 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
22422 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
22423 "access for disk images specified by those other command line options."
22424 msgstr ""
22425
22426 #. type: textblock
22427 #: ../fish/guestfish.pod:490
22428 msgid ""
22429 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
22430 "which does nothing (it is already the default).  However it is highly "
22431 "recommended that you use this option to indicate that you need write access, "
22432 "and prepare your scripts for the day when this option will be required for "
22433 "write access."
22434 msgstr ""
22435
22436 # type: textblock
22437 #. type: textblock
22438 #: ../fish/guestfish.pod:496
22439 msgid ""
22440 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
22441 "other libguestfs program apart from guestfish and guestmount."
22442 msgstr ""
22443
22444 # type: =head1
22445 #. type: =head1
22446 #: ../fish/guestfish.pod:499
22447 msgid "QUOTING"
22448 msgstr ""
22449
22450 # type: textblock
22451 #. type: textblock
22452 #: ../fish/guestfish.pod:501
22453 msgid ""
22454 "You can quote ordinary parameters using either single or double quotes.  For "
22455 "example:"
22456 msgstr ""
22457
22458 # type: verbatim
22459 #. type: verbatim
22460 #: ../fish/guestfish.pod:504
22461 #, no-wrap
22462 msgid ""
22463 " add \"file with a space.img\"\n"
22464 "\n"
22465 msgstr ""
22466
22467 # type: verbatim
22468 #. type: verbatim
22469 #: ../fish/guestfish.pod:506
22470 #, no-wrap
22471 msgid ""
22472 " rm '/file name'\n"
22473 "\n"
22474 msgstr ""
22475
22476 # type: verbatim
22477 #. type: verbatim
22478 #: ../fish/guestfish.pod:508
22479 #, no-wrap
22480 msgid ""
22481 " rm '/\"'\n"
22482 "\n"
22483 msgstr ""
22484
22485 # type: textblock
22486 #. type: textblock
22487 #: ../fish/guestfish.pod:510
22488 msgid ""
22489 "A few commands require a list of strings to be passed.  For these, use a "
22490 "whitespace-separated list, enclosed in quotes.  Strings containing "
22491 "whitespace to be passed through must be enclosed in single quotes.  A "
22492 "literal single quote must be escaped with a backslash."
22493 msgstr ""
22494
22495 # type: verbatim
22496 #. type: verbatim
22497 #: ../fish/guestfish.pod:515
22498 #, no-wrap
22499 msgid ""
22500 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
22501 " command \"/bin/echo 'foo      bar'\"\n"
22502 " command \"/bin/echo \\'foo\\'\"\n"
22503 "\n"
22504 msgstr ""
22505
22506 # type: =head1
22507 #. type: =head1
22508 #: ../fish/guestfish.pod:519
22509 msgid "OPTIONAL ARGUMENTS"
22510 msgstr ""
22511
22512 # type: textblock
22513 #. type: textblock
22514 #: ../fish/guestfish.pod:521
22515 msgid ""
22516 "Some commands take optional arguments.  These arguments appear in this "
22517 "documentation as C<[argname:..]>.  You can use them as in these examples:"
22518 msgstr ""
22519
22520 # type: verbatim
22521 #. type: verbatim
22522 #: ../fish/guestfish.pod:525
22523 #, no-wrap
22524 msgid ""
22525 " add-drive-opts filename\n"
22526 "\n"
22527 msgstr ""
22528
22529 # type: verbatim
22530 #. type: verbatim
22531 #: ../fish/guestfish.pod:527
22532 #, no-wrap
22533 msgid ""
22534 " add-drive-opts filename readonly:true\n"
22535 "\n"
22536 msgstr ""
22537
22538 # type: verbatim
22539 #. type: verbatim
22540 #: ../fish/guestfish.pod:529
22541 #, no-wrap
22542 msgid ""
22543 " add-drive-opts filename format:qcow2 readonly:false\n"
22544 "\n"
22545 msgstr ""
22546
22547 # type: textblock
22548 #. type: textblock
22549 #: ../fish/guestfish.pod:531
22550 msgid ""
22551 "Each optional argument can appear at most once.  All optional arguments must "
22552 "appear after the required ones."
22553 msgstr ""
22554
22555 # type: =head1
22556 #. type: =head1
22557 #: ../fish/guestfish.pod:534
22558 msgid "NUMBERS"
22559 msgstr ""
22560
22561 # type: textblock
22562 #. type: textblock
22563 #: ../fish/guestfish.pod:536
22564 msgid ""
22565 "This section applies to all commands which can take integers as parameters."
22566 msgstr ""
22567
22568 # type: =head2
22569 #. type: =head2
22570 #: ../fish/guestfish.pod:539
22571 msgid "SIZE SUFFIX"
22572 msgstr ""
22573
22574 # type: textblock
22575 #. type: textblock
22576 #: ../fish/guestfish.pod:541
22577 msgid ""
22578 "When the command takes a parameter measured in bytes, you can use one of the "
22579 "following suffixes to specify kilobytes, megabytes and larger sizes:"
22580 msgstr ""
22581
22582 # type: =item
22583 #. type: =item
22584 #: ../fish/guestfish.pod:547
22585 msgid "B<k> or B<K> or B<KiB>"
22586 msgstr ""
22587
22588 # type: textblock
22589 #. type: textblock
22590 #: ../fish/guestfish.pod:549
22591 msgid "The size in kilobytes (multiplied by 1024)."
22592 msgstr ""
22593
22594 # type: =item
22595 #. type: =item
22596 #: ../fish/guestfish.pod:551
22597 msgid "B<KB>"
22598 msgstr ""
22599
22600 # type: textblock
22601 #. type: textblock
22602 #: ../fish/guestfish.pod:553
22603 msgid "The size in SI 1000 byte units."
22604 msgstr ""
22605
22606 # type: =item
22607 #. type: =item
22608 #: ../fish/guestfish.pod:555
22609 msgid "B<M> or B<MiB>"
22610 msgstr ""
22611
22612 # type: textblock
22613 #. type: textblock
22614 #: ../fish/guestfish.pod:557
22615 msgid "The size in megabytes (multiplied by 1048576)."
22616 msgstr ""
22617
22618 # type: =item
22619 #. type: =item
22620 #: ../fish/guestfish.pod:559
22621 msgid "B<MB>"
22622 msgstr ""
22623
22624 # type: textblock
22625 #. type: textblock
22626 #: ../fish/guestfish.pod:561
22627 msgid "The size in SI 1000000 byte units."
22628 msgstr ""
22629
22630 # type: =item
22631 #. type: =item
22632 #: ../fish/guestfish.pod:563
22633 msgid "B<G> or B<GiB>"
22634 msgstr ""
22635
22636 # type: textblock
22637 #. type: textblock
22638 #: ../fish/guestfish.pod:565
22639 msgid "The size in gigabytes (multiplied by 2**30)."
22640 msgstr ""
22641
22642 # type: =item
22643 #. type: =item
22644 #: ../fish/guestfish.pod:567
22645 msgid "B<GB>"
22646 msgstr ""
22647
22648 # type: textblock
22649 #. type: textblock
22650 #: ../fish/guestfish.pod:569
22651 msgid "The size in SI 10**9 byte units."
22652 msgstr ""
22653
22654 # type: =item
22655 #. type: =item
22656 #: ../fish/guestfish.pod:571
22657 msgid "B<T> or B<TiB>"
22658 msgstr ""
22659
22660 # type: textblock
22661 #. type: textblock
22662 #: ../fish/guestfish.pod:573
22663 msgid "The size in terabytes (multiplied by 2**40)."
22664 msgstr ""
22665
22666 # type: =item
22667 #. type: =item
22668 #: ../fish/guestfish.pod:575
22669 msgid "B<TB>"
22670 msgstr ""
22671
22672 # type: textblock
22673 #. type: textblock
22674 #: ../fish/guestfish.pod:577
22675 msgid "The size in SI 10**12 byte units."
22676 msgstr ""
22677
22678 # type: =item
22679 #. type: =item
22680 #: ../fish/guestfish.pod:579
22681 msgid "B<P> or B<PiB>"
22682 msgstr ""
22683
22684 # type: textblock
22685 #. type: textblock
22686 #: ../fish/guestfish.pod:581
22687 msgid "The size in petabytes (multiplied by 2**50)."
22688 msgstr ""
22689
22690 # type: =item
22691 #. type: =item
22692 #: ../fish/guestfish.pod:583
22693 msgid "B<PB>"
22694 msgstr ""
22695
22696 # type: textblock
22697 #. type: textblock
22698 #: ../fish/guestfish.pod:585
22699 msgid "The size in SI 10**15 byte units."
22700 msgstr ""
22701
22702 # type: =item
22703 #. type: =item
22704 #: ../fish/guestfish.pod:587
22705 msgid "B<E> or B<EiB>"
22706 msgstr ""
22707
22708 # type: textblock
22709 #. type: textblock
22710 #: ../fish/guestfish.pod:589
22711 msgid "The size in exabytes (multiplied by 2**60)."
22712 msgstr ""
22713
22714 # type: =item
22715 #. type: =item
22716 #: ../fish/guestfish.pod:591
22717 msgid "B<EB>"
22718 msgstr ""
22719
22720 # type: textblock
22721 #. type: textblock
22722 #: ../fish/guestfish.pod:593
22723 msgid "The size in SI 10**18 byte units."
22724 msgstr ""
22725
22726 # type: =item
22727 #. type: =item
22728 #: ../fish/guestfish.pod:595
22729 msgid "B<Z> or B<ZiB>"
22730 msgstr ""
22731
22732 # type: textblock
22733 #. type: textblock
22734 #: ../fish/guestfish.pod:597
22735 msgid "The size in zettabytes (multiplied by 2**70)."
22736 msgstr ""
22737
22738 # type: =item
22739 #. type: =item
22740 #: ../fish/guestfish.pod:599
22741 msgid "B<ZB>"
22742 msgstr ""
22743
22744 # type: textblock
22745 #. type: textblock
22746 #: ../fish/guestfish.pod:601
22747 msgid "The size in SI 10**21 byte units."
22748 msgstr ""
22749
22750 # type: =item
22751 #. type: =item
22752 #: ../fish/guestfish.pod:603
22753 msgid "B<Y> or B<YiB>"
22754 msgstr ""
22755
22756 # type: textblock
22757 #. type: textblock
22758 #: ../fish/guestfish.pod:605
22759 msgid "The size in yottabytes (multiplied by 2**80)."
22760 msgstr ""
22761
22762 # type: =item
22763 #. type: =item
22764 #: ../fish/guestfish.pod:607
22765 msgid "B<YB>"
22766 msgstr ""
22767
22768 # type: textblock
22769 #. type: textblock
22770 #: ../fish/guestfish.pod:609
22771 msgid "The size in SI 10**24 byte units."
22772 msgstr ""
22773
22774 # type: verbatim
22775 #. type: verbatim
22776 #: ../fish/guestfish.pod:615
22777 #, no-wrap
22778 msgid ""
22779 " truncate-size /file 1G\n"
22780 "\n"
22781 msgstr ""
22782
22783 # type: textblock
22784 #. type: textblock
22785 #: ../fish/guestfish.pod:617
22786 msgid "would truncate the file to 1 gigabyte."
22787 msgstr ""
22788
22789 # type: textblock
22790 #. type: textblock
22791 #: ../fish/guestfish.pod:619
22792 msgid ""
22793 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22794 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22795 "suffix will probably not do what you expect."
22796 msgstr ""
22797
22798 # type: =head2
22799 #. type: =head2
22800 #: ../fish/guestfish.pod:623
22801 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22802 msgstr ""
22803
22804 # type: textblock
22805 #. type: textblock
22806 #: ../fish/guestfish.pod:625
22807 msgid ""
22808 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22809 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22810 msgstr ""
22811
22812 # type: verbatim
22813 #. type: verbatim
22814 #: ../fish/guestfish.pod:628
22815 #, no-wrap
22816 msgid ""
22817 " 1234      decimal number 1234\n"
22818 " 02322     octal number, equivalent to decimal 1234\n"
22819 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22820 "\n"
22821 msgstr ""
22822
22823 # type: textblock
22824 #. type: textblock
22825 #: ../fish/guestfish.pod:632
22826 msgid ""
22827 "When using the C<chmod> command, you almost always want to specify an octal "
22828 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22829 "L<chmod(1)> program):"
22830 msgstr ""
22831
22832 # type: verbatim
22833 #. type: verbatim
22834 #: ../fish/guestfish.pod:636
22835 #, no-wrap
22836 msgid ""
22837 " chmod 0777 /public  # OK\n"
22838 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22839 "\n"
22840 msgstr ""
22841
22842 # type: textblock
22843 #. type: textblock
22844 #: ../fish/guestfish.pod:639
22845 msgid ""
22846 "Commands that return numbers usually print them in decimal, but some "
22847 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22848 "octal, preceeded by C<0>)."
22849 msgstr ""
22850
22851 # type: =head1
22852 #. type: =head1
22853 #: ../fish/guestfish.pod:643
22854 msgid "WILDCARDS AND GLOBBING"
22855 msgstr ""
22856
22857 # type: textblock
22858 #. type: textblock
22859 #: ../fish/guestfish.pod:645
22860 msgid ""
22861 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22862 "(globbing) by default.  So for example the following will not do what you "
22863 "expect:"
22864 msgstr ""
22865
22866 # type: verbatim
22867 #. type: verbatim
22868 #: ../fish/guestfish.pod:649
22869 #, no-wrap
22870 msgid ""
22871 " rm-rf /home/*\n"
22872 "\n"
22873 msgstr ""
22874
22875 # type: textblock
22876 #. type: textblock
22877 #: ../fish/guestfish.pod:651
22878 msgid ""
22879 "Assuming you don't have a directory called literally C</home/*> then the "
22880 "above command will return an error."
22881 msgstr ""
22882
22883 # type: textblock
22884 #. type: textblock
22885 #: ../fish/guestfish.pod:654
22886 msgid "To perform wildcard expansion, use the C<glob> command."
22887 msgstr ""
22888
22889 # type: verbatim
22890 #. type: verbatim
22891 #: ../fish/guestfish.pod:656
22892 #, no-wrap
22893 msgid ""
22894 " glob rm-rf /home/*\n"
22895 "\n"
22896 msgstr ""
22897
22898 # type: textblock
22899 #. type: textblock
22900 #: ../fish/guestfish.pod:658
22901 msgid ""
22902 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
22903 "many times), equivalent to:"
22904 msgstr ""
22905
22906 # type: verbatim
22907 #. type: verbatim
22908 #: ../fish/guestfish.pod:661
22909 #, no-wrap
22910 msgid ""
22911 " rm-rf /home/jim\n"
22912 " rm-rf /home/joe\n"
22913 " rm-rf /home/mary\n"
22914 "\n"
22915 msgstr ""
22916
22917 # type: textblock
22918 #. type: textblock
22919 #: ../fish/guestfish.pod:665
22920 msgid "C<glob> only works on simple guest paths and not on device names."
22921 msgstr ""
22922
22923 # type: textblock
22924 #. type: textblock
22925 #: ../fish/guestfish.pod:667
22926 msgid ""
22927 "If you have several parameters, each containing a wildcard, then glob will "
22928 "perform a Cartesian product."
22929 msgstr ""
22930
22931 # type: =head1
22932 #. type: =head1
22933 #: ../fish/guestfish.pod:670
22934 msgid "COMMENTS"
22935 msgstr ""
22936
22937 # type: textblock
22938 #. type: textblock
22939 #: ../fish/guestfish.pod:672
22940 msgid ""
22941 "Any line which starts with a I<#> character is treated as a comment and "
22942 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22943 "a command.  For example:"
22944 msgstr ""
22945
22946 # type: verbatim
22947 #. type: verbatim
22948 #: ../fish/guestfish.pod:676
22949 #, no-wrap
22950 msgid ""
22951 " # this is a comment\n"
22952 "         # this is a comment\n"
22953 " foo # NOT a comment\n"
22954 "\n"
22955 msgstr ""
22956
22957 # type: textblock
22958 #. type: textblock
22959 #: ../fish/guestfish.pod:680
22960 msgid "Blank lines are also ignored."
22961 msgstr ""
22962
22963 # type: =head1
22964 #. type: =head1
22965 #: ../fish/guestfish.pod:682
22966 msgid "RUNNING COMMANDS LOCALLY"
22967 msgstr ""
22968
22969 # type: textblock
22970 #. type: textblock
22971 #: ../fish/guestfish.pod:684
22972 msgid ""
22973 "Any line which starts with a I<!> character is treated as a command sent to "
22974 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22975 msgstr ""
22976
22977 # type: verbatim
22978 #. type: verbatim
22979 #: ../fish/guestfish.pod:688
22980 #, no-wrap
22981 msgid ""
22982 " !mkdir local\n"
22983 " tgz-out /remote local/remote-data.tar.gz\n"
22984 "\n"
22985 msgstr ""
22986
22987 # type: textblock
22988 #. type: textblock
22989 #: ../fish/guestfish.pod:691
22990 msgid ""
22991 "will create a directory C<local> on the host, and then export the contents "
22992 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22993 "(See C<tgz-out>)."
22994 msgstr ""
22995
22996 # type: textblock
22997 #. type: textblock
22998 #: ../fish/guestfish.pod:695
22999 msgid ""
23000 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
23001 "effect, due to the way that subprocesses work in Unix."
23002 msgstr ""
23003
23004 #. type: =head2
23005 #: ../fish/guestfish.pod:698
23006 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
23007 msgstr ""
23008
23009 #. type: textblock
23010 #: ../fish/guestfish.pod:700
23011 msgid ""
23012 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
23013 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
23014 "and executed as guestfish commands."
23015 msgstr ""
23016
23017 #. type: textblock
23018 #: ../fish/guestfish.pod:704
23019 msgid ""
23020 "Thus you can use shell script to construct arbitrary guestfish commands "
23021 "which are then parsed by guestfish."
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../fish/guestfish.pod:707
23026 msgid ""
23027 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
23028 "through C</foo.100>) using guestfish commands alone.  However this is simple "
23029 "if we use a shell script to create the guestfish commands for us:"
23030 msgstr ""
23031
23032 #. type: verbatim
23033 #: ../fish/guestfish.pod:712
23034 #, no-wrap
23035 msgid ""
23036 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
23037 "\n"
23038 msgstr ""
23039
23040 #. type: textblock
23041 #: ../fish/guestfish.pod:714
23042 msgid "or with names like C</foo.001>:"
23043 msgstr ""
23044
23045 #. type: verbatim
23046 #: ../fish/guestfish.pod:716
23047 #, no-wrap
23048 msgid ""
23049 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23050 "\n"
23051 msgstr ""
23052
23053 #. type: textblock
23054 #: ../fish/guestfish.pod:718
23055 msgid ""
23056 "When using guestfish interactively it can be helpful to just run the shell "
23057 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23058 "ordinary I<!> local command), see what guestfish commands it would run, and "
23059 "when you are happy with those prepend the C<E<lt>> character to run the "
23060 "guestfish commands for real."
23061 msgstr ""
23062
23063 # type: =head1
23064 #. type: =head1
23065 #: ../fish/guestfish.pod:724
23066 msgid "PIPES"
23067 msgstr ""
23068
23069 # type: textblock
23070 #. type: textblock
23071 #: ../fish/guestfish.pod:726
23072 msgid ""
23073 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23074 "command (a guestfish command) to the second command (any host command).  For "
23075 "example:"
23076 msgstr ""
23077
23078 # type: verbatim
23079 #. type: verbatim
23080 #: ../fish/guestfish.pod:730
23081 #, no-wrap
23082 msgid ""
23083 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23084 "\n"
23085 msgstr ""
23086
23087 # type: textblock
23088 #. type: textblock
23089 #: ../fish/guestfish.pod:732
23090 msgid ""
23091 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23092 "program).  The above command would list all accounts in the guest filesystem "
23093 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23094 msgstr ""
23095
23096 # type: verbatim
23097 #. type: verbatim
23098 #: ../fish/guestfish.pod:737
23099 #, no-wrap
23100 msgid ""
23101 " hexdump /bin/ls | head\n"
23102 " list-devices | tail -1\n"
23103 " tgz-out / - | tar ztf -\n"
23104 "\n"
23105 msgstr ""
23106
23107 # type: textblock
23108 #. type: textblock
23109 #: ../fish/guestfish.pod:741
23110 msgid ""
23111 "The space before the pipe symbol is required, any space after the pipe "
23112 "symbol is optional.  Everything after the pipe symbol is just passed "
23113 "straight to the host shell, so it can contain redirections, globs and "
23114 "anything else that makes sense on the host side."
23115 msgstr ""
23116
23117 # type: textblock
23118 #. type: textblock
23119 #: ../fish/guestfish.pod:746
23120 msgid ""
23121 "To use a literal argument which begins with a pipe symbol, you have to quote "
23122 "it, eg:"
23123 msgstr ""
23124
23125 # type: verbatim
23126 #. type: verbatim
23127 #: ../fish/guestfish.pod:749
23128 #, no-wrap
23129 msgid ""
23130 " echo \"|\"\n"
23131 "\n"
23132 msgstr ""
23133
23134 # type: =head1
23135 #. type: =head1
23136 #: ../fish/guestfish.pod:751
23137 msgid "HOME DIRECTORIES"
23138 msgstr ""
23139
23140 # type: textblock
23141 #. type: textblock
23142 #: ../fish/guestfish.pod:753
23143 msgid ""
23144 "If a parameter starts with the character C<~> then the tilde may be expanded "
23145 "as a home directory path (either C<~> for the current user's home directory, "
23146 "or C<~user> for another user)."
23147 msgstr ""
23148
23149 # type: textblock
23150 #. type: textblock
23151 #: ../fish/guestfish.pod:757
23152 msgid ""
23153 "Note that home directory expansion happens for users known I<on the host>, "
23154 "not in the guest filesystem."
23155 msgstr ""
23156
23157 # type: textblock
23158 #. type: textblock
23159 #: ../fish/guestfish.pod:760
23160 msgid ""
23161 "To use a literal argument which begins with a tilde, you have to quote it, "
23162 "eg:"
23163 msgstr ""
23164
23165 # type: verbatim
23166 #. type: verbatim
23167 #: ../fish/guestfish.pod:763
23168 #, no-wrap
23169 msgid ""
23170 " echo \"~\"\n"
23171 "\n"
23172 msgstr ""
23173
23174 # type: textblock
23175 #. type: textblock
23176 #: ../fish/guestfish.pod:767
23177 msgid ""
23178 "Libguestfs has some support for Linux guests encrypted according to the "
23179 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23180 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23181 "LUKS is supported."
23182 msgstr ""
23183
23184 # type: textblock
23185 #. type: textblock
23186 #: ../fish/guestfish.pod:772
23187 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23188 msgstr ""
23189
23190 # type: verbatim
23191 #. type: verbatim
23192 #: ../fish/guestfish.pod:774
23193 #, no-wrap
23194 msgid ""
23195 " ><fs> vfs-type /dev/sda2\n"
23196 " crypto_LUKS\n"
23197 "\n"
23198 msgstr ""
23199
23200 # type: textblock
23201 #. type: textblock
23202 #: ../fish/guestfish.pod:777
23203 msgid ""
23204 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23205 "device called C</dev/mapper/luksdev>."
23206 msgstr ""
23207
23208 # type: verbatim
23209 #. type: verbatim
23210 #: ../fish/guestfish.pod:780
23211 #, no-wrap
23212 msgid ""
23213 " ><fs> luks-open /dev/sda2 luksdev\n"
23214 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23215 "\n"
23216 msgstr ""
23217
23218 # type: textblock
23219 #. type: textblock
23220 #: ../fish/guestfish.pod:783
23221 msgid ""
23222 "Finally you have to tell LVM to scan for volume groups on the newly created "
23223 "mapper device:"
23224 msgstr ""
23225
23226 # type: verbatim
23227 #. type: verbatim
23228 #: ../fish/guestfish.pod:786
23229 #, no-wrap
23230 msgid ""
23231 " vgscan\n"
23232 " vg-activate-all true\n"
23233 "\n"
23234 msgstr ""
23235
23236 # type: textblock
23237 #. type: textblock
23238 #: ../fish/guestfish.pod:789
23239 msgid "The logical volume(s) can now be mounted in the usual way."
23240 msgstr ""
23241
23242 # type: textblock
23243 #. type: textblock
23244 #: ../fish/guestfish.pod:791
23245 msgid ""
23246 "Before closing a LUKS device you must unmount any logical volumes on it and "
23247 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23248 "one.  Then you can close the mapper device:"
23249 msgstr ""
23250
23251 # type: verbatim
23252 #. type: verbatim
23253 #: ../fish/guestfish.pod:795
23254 #, no-wrap
23255 msgid ""
23256 " vg-activate false /dev/VG\n"
23257 " luks-close /dev/mapper/luksdev\n"
23258 "\n"
23259 msgstr ""
23260
23261 # type: =head1
23262 #. type: =head1
23263 #: ../fish/guestfish.pod:798
23264 msgid "WINDOWS PATHS"
23265 msgstr ""
23266
23267 # type: textblock
23268 #. type: textblock
23269 #: ../fish/guestfish.pod:800
23270 msgid ""
23271 "If a path is prefixed with C<win:> then you can use Windows-style paths "
23272 "(with some limitations).  The following commands are equivalent:"
23273 msgstr ""
23274
23275 # type: verbatim
23276 #. type: verbatim
23277 #: ../fish/guestfish.pod:803
23278 #, no-wrap
23279 msgid ""
23280 " file /WINDOWS/system32/config/system.LOG\n"
23281 "\n"
23282 msgstr ""
23283
23284 # type: verbatim
23285 #. type: verbatim
23286 #: ../fish/guestfish.pod:805
23287 #, no-wrap
23288 msgid ""
23289 " file win:/windows/system32/config/system.log\n"
23290 "\n"
23291 msgstr ""
23292
23293 # type: verbatim
23294 #. type: verbatim
23295 #: ../fish/guestfish.pod:807
23296 #, no-wrap
23297 msgid ""
23298 " file win:\\windows\\system32\\config\\system.log\n"
23299 "\n"
23300 msgstr ""
23301
23302 # type: verbatim
23303 #. type: verbatim
23304 #: ../fish/guestfish.pod:809
23305 #, no-wrap
23306 msgid ""
23307 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
23308 "\n"
23309 msgstr ""
23310
23311 # type: textblock
23312 #. type: textblock
23313 #: ../fish/guestfish.pod:811
23314 msgid ""
23315 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
23316 "handles case insensitivity like Windows would.  This only works in argument "
23317 "positions that expect a path."
23318 msgstr ""
23319
23320 # type: =head1
23321 #. type: =head1
23322 #: ../fish/guestfish.pod:815
23323 msgid "UPLOADING AND DOWNLOADING FILES"
23324 msgstr ""
23325
23326 # type: textblock
23327 #. type: textblock
23328 #: ../fish/guestfish.pod:817
23329 msgid ""
23330 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23331 "others which upload from or download to a local file, you can use the "
23332 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23333 msgstr ""
23334
23335 # type: verbatim
23336 #. type: verbatim
23337 #: ../fish/guestfish.pod:821
23338 #, no-wrap
23339 msgid ""
23340 " upload - /foo\n"
23341 "\n"
23342 msgstr ""
23343
23344 # type: textblock
23345 #. type: textblock
23346 #: ../fish/guestfish.pod:823
23347 msgid ""
23348 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23349 msgstr ""
23350
23351 # type: verbatim
23352 #. type: verbatim
23353 #: ../fish/guestfish.pod:826
23354 #, no-wrap
23355 msgid ""
23356 " tar-out /etc - | tar tf -\n"
23357 "\n"
23358 msgstr ""
23359
23360 # type: textblock
23361 #. type: textblock
23362 #: ../fish/guestfish.pod:828
23363 msgid ""
23364 "writes the tarball to stdout and then pipes that into the external \"tar\" "
23365 "command (see L</PIPES>)."
23366 msgstr ""
23367
23368 # type: textblock
23369 #. type: textblock
23370 #: ../fish/guestfish.pod:831
23371 msgid ""
23372 "When using C<-> to read from stdin, the input is read up to the end of "
23373 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
23374 "some arbitrary end marker:"
23375 msgstr ""
23376
23377 # type: verbatim
23378 #. type: verbatim
23379 #: ../fish/guestfish.pod:835
23380 #, no-wrap
23381 msgid ""
23382 " upload -<<END /foo\n"
23383 " input line 1\n"
23384 " input line 2\n"
23385 " input line 3\n"
23386 " END\n"
23387 "\n"
23388 msgstr ""
23389
23390 # type: textblock
23391 #. type: textblock
23392 #: ../fish/guestfish.pod:841
23393 msgid ""
23394 "Any string of characters can be used instead of C<END>.  The end marker must "
23395 "appear on a line of its own, without any preceeding or following characters "
23396 "(not even spaces)."
23397 msgstr ""
23398
23399 # type: textblock
23400 #. type: textblock
23401 #: ../fish/guestfish.pod:845
23402 msgid ""
23403 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
23404 "upload local files (so-called \"FileIn\" parameters in the generator)."
23405 msgstr ""
23406
23407 # type: =head1
23408 #. type: =head1
23409 #: ../fish/guestfish.pod:848
23410 msgid "EXIT ON ERROR BEHAVIOUR"
23411 msgstr ""
23412
23413 # type: textblock
23414 #. type: textblock
23415 #: ../fish/guestfish.pod:850
23416 msgid ""
23417 "By default, guestfish will ignore any errors when in interactive mode (ie. "
23418 "taking commands from a human over a tty), and will exit on the first error "
23419 "in non-interactive mode (scripts, commands given on the command line)."
23420 msgstr ""
23421
23422 # type: textblock
23423 #. type: textblock
23424 #: ../fish/guestfish.pod:855
23425 msgid ""
23426 "If you prefix a command with a I<-> character, then that command will not "
23427 "cause guestfish to exit, even if that (one) command returns an error."
23428 msgstr ""
23429
23430 # type: =head1
23431 #. type: =head1
23432 #: ../fish/guestfish.pod:859
23433 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
23434 msgstr ""
23435
23436 # type: textblock
23437 #. type: textblock
23438 #: ../fish/guestfish.pod:861
23439 msgid ""
23440 "Guestfish can be remote-controlled over a socket.  This is useful "
23441 "particularly in shell scripts where you want to make several different "
23442 "changes to a filesystem, but you don't want the overhead of starting up a "
23443 "guestfish process each time."
23444 msgstr ""
23445
23446 # type: textblock
23447 #. type: textblock
23448 #: ../fish/guestfish.pod:866
23449 msgid "Start a guestfish server process using:"
23450 msgstr ""
23451
23452 # type: verbatim
23453 #. type: verbatim
23454 #: ../fish/guestfish.pod:868
23455 #, no-wrap
23456 msgid ""
23457 " eval \"`guestfish --listen`\"\n"
23458 "\n"
23459 msgstr ""
23460
23461 # type: textblock
23462 #. type: textblock
23463 #: ../fish/guestfish.pod:870
23464 msgid "and then send it commands by doing:"
23465 msgstr ""
23466
23467 # type: verbatim
23468 #. type: verbatim
23469 #: ../fish/guestfish.pod:872
23470 #, no-wrap
23471 msgid ""
23472 " guestfish --remote cmd [...]\n"
23473 "\n"
23474 msgstr ""
23475
23476 # type: textblock
23477 #. type: textblock
23478 #: ../fish/guestfish.pod:874
23479 msgid "To cause the server to exit, send it the exit command:"
23480 msgstr ""
23481
23482 # type: verbatim
23483 #. type: verbatim
23484 #: ../fish/guestfish.pod:876
23485 #, no-wrap
23486 msgid ""
23487 " guestfish --remote exit\n"
23488 "\n"
23489 msgstr ""
23490
23491 # type: textblock
23492 #. type: textblock
23493 #: ../fish/guestfish.pod:878
23494 msgid ""
23495 "Note that the server will normally exit if there is an error in a command.  "
23496 "You can change this in the usual way.  See section L</EXIT ON ERROR "
23497 "BEHAVIOUR>."
23498 msgstr ""
23499
23500 # type: =head2
23501 #. type: =head2
23502 #: ../fish/guestfish.pod:882
23503 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
23504 msgstr ""
23505
23506 # type: textblock
23507 #. type: textblock
23508 #: ../fish/guestfish.pod:884
23509 msgid ""
23510 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
23511 "is how the I<--remote> option knows where to send the commands.  You can "
23512 "have several guestfish listener processes running using:"
23513 msgstr ""
23514
23515 # type: verbatim
23516 #. type: verbatim
23517 #: ../fish/guestfish.pod:888
23518 #, no-wrap
23519 msgid ""
23520 " eval \"`guestfish --listen`\"\n"
23521 " pid1=$GUESTFISH_PID\n"
23522 " eval \"`guestfish --listen`\"\n"
23523 " pid2=$GUESTFISH_PID\n"
23524 " ...\n"
23525 " guestfish --remote=$pid1 cmd\n"
23526 " guestfish --remote=$pid2 cmd\n"
23527 "\n"
23528 msgstr ""
23529
23530 # type: =head2
23531 #. type: =head2
23532 #: ../fish/guestfish.pod:896
23533 msgid "REMOTE CONTROL AND CSH"
23534 msgstr ""
23535
23536 # type: textblock
23537 #. type: textblock
23538 #: ../fish/guestfish.pod:898
23539 msgid ""
23540 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
23541 "option:"
23542 msgstr ""
23543
23544 # type: verbatim
23545 #. type: verbatim
23546 #: ../fish/guestfish.pod:901
23547 #, no-wrap
23548 msgid ""
23549 " eval \"`guestfish --listen --csh`\"\n"
23550 "\n"
23551 msgstr ""
23552
23553 # type: =head2
23554 #. type: =head2
23555 #: ../fish/guestfish.pod:903
23556 msgid "REMOTE CONTROL DETAILS"
23557 msgstr ""
23558
23559 # type: textblock
23560 #. type: textblock
23561 #: ../fish/guestfish.pod:905
23562 msgid ""
23563 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
23564 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
23565 "and C<$PID> is the process ID of the server."
23566 msgstr ""
23567
23568 # type: textblock
23569 #. type: textblock
23570 #: ../fish/guestfish.pod:909
23571 msgid "Guestfish client and server versions must match exactly."
23572 msgstr ""
23573
23574 # type: =head1
23575 #. type: =head1
23576 #: ../fish/guestfish.pod:911
23577 msgid "PREPARED DISK IMAGES"
23578 msgstr ""
23579
23580 # type: textblock
23581 #. type: textblock
23582 #: ../fish/guestfish.pod:913
23583 msgid ""
23584 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
23585 "preformatted disk images that guestfish can make for you to save typing.  "
23586 "This is particularly useful for testing purposes.  This option is used "
23587 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
23588 "can be mixed with I<-a>)."
23589 msgstr ""
23590
23591 # type: textblock
23592 #. type: textblock
23593 #: ../fish/guestfish.pod:919
23594 msgid ""
23595 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
23596 "the second and so on.  Existing files in the current directory are "
23597 "I<overwritten>."
23598 msgstr ""
23599
23600 # type: textblock
23601 #. type: textblock
23602 #: ../fish/guestfish.pod:923
23603 msgid ""
23604 "The type briefly describes how the disk should be sized, partitioned, how "
23605 "filesystem(s) should be created, and how content should be added.  "
23606 "Optionally the type can be followed by extra parameters, separated by C<:> "
23607 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
23608 "allocated disk, containing a single partition, with the partition formatted "
23609 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
23610 "disk instead."
23611 msgstr ""
23612
23613 # type: textblock
23614 #. type: textblock
23615 #: ../fish/guestfish.pod:931
23616 msgid "To list the available types and any extra parameters they take, run:"
23617 msgstr ""
23618
23619 # type: textblock
23620 #. type: textblock
23621 #: ../fish/guestfish.pod:935
23622 msgid ""
23623 "Note that the prepared filesystem is not mounted.  You would usually have to "
23624 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
23625 msgstr ""
23626
23627 # type: textblock
23628 #. type: textblock
23629 #: ../fish/guestfish.pod:939
23630 msgid ""
23631 "If any I<-N> or I<--new> options are given, the guest is automatically "
23632 "launched."
23633 msgstr ""
23634
23635 # type: textblock
23636 #. type: textblock
23637 #: ../fish/guestfish.pod:944
23638 msgid "Create a 100MB disk with an ext4-formatted partition:"
23639 msgstr ""
23640
23641 # type: verbatim
23642 #. type: verbatim
23643 #: ../fish/guestfish.pod:946
23644 #, no-wrap
23645 msgid ""
23646 " guestfish -N fs:ext4\n"
23647 "\n"
23648 msgstr ""
23649
23650 # type: textblock
23651 #. type: textblock
23652 #: ../fish/guestfish.pod:948
23653 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
23654 msgstr ""
23655
23656 # type: verbatim
23657 #. type: verbatim
23658 #: ../fish/guestfish.pod:950
23659 #, no-wrap
23660 msgid ""
23661 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
23662 "\n"
23663 msgstr ""
23664
23665 # type: textblock
23666 #. type: textblock
23667 #: ../fish/guestfish.pod:952
23668 msgid "Create a blank 200MB disk:"
23669 msgstr ""
23670
23671 # type: verbatim
23672 #. type: verbatim
23673 #: ../fish/guestfish.pod:954
23674 #, no-wrap
23675 msgid ""
23676 " guestfish -N disk:200M\n"
23677 "\n"
23678 msgstr ""
23679
23680 # type: =head1
23681 #. type: =head1
23682 #: ../fish/guestfish.pod:956
23683 msgid "PROGRESS BARS"
23684 msgstr ""
23685
23686 # type: textblock
23687 #. type: textblock
23688 #: ../fish/guestfish.pod:958
23689 msgid ""
23690 "Some (not all) long-running commands send progress notification messages as "
23691 "they are running.  Guestfish turns these messages into progress bars."
23692 msgstr ""
23693
23694 # type: textblock
23695 #. type: textblock
23696 #: ../fish/guestfish.pod:962
23697 msgid ""
23698 "When a command that supports progress bars takes longer than two seconds to "
23699 "run, and if progress bars are enabled, then you will see one appearing below "
23700 "the command:"
23701 msgstr ""
23702
23703 # type: verbatim
23704 #. type: verbatim
23705 #: ../fish/guestfish.pod:966
23706 #, no-wrap
23707 msgid ""
23708 " ><fs> copy-size /large-file /another-file 2048M\n"
23709 " / 10% [#####-----------------------------------------] 00:30\n"
23710 "\n"
23711 msgstr ""
23712
23713 # type: textblock
23714 #. type: textblock
23715 #: ../fish/guestfish.pod:969
23716 msgid ""
23717 "The spinner on the left hand side moves round once for every progress "
23718 "notification received from the backend.  This is a (reasonably) golden "
23719 "assurance that the command is \"doing something\" even if the progress bar "
23720 "is not moving, because the command is able to send the progress "
23721 "notifications.  When the bar reaches 100% and the command finishes, the "
23722 "spinner disappears."
23723 msgstr ""
23724
23725 # type: textblock
23726 #. type: textblock
23727 #: ../fish/guestfish.pod:976
23728 msgid ""
23729 "Progress bars are enabled by default when guestfish is used interactively.  "
23730 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23731 "and you can disable them completely using I<--no-progress-bars>."
23732 msgstr ""
23733
23734 # type: =head1
23735 #. type: =head1
23736 #: ../fish/guestfish.pod:981
23737 msgid "GUESTFISH COMMANDS"
23738 msgstr ""
23739
23740 # type: textblock
23741 #. type: textblock
23742 #: ../fish/guestfish.pod:983
23743 msgid ""
23744 "The commands in this section are guestfish convenience commands, in other "
23745 "words, they are not part of the L<guestfs(3)> API."
23746 msgstr ""
23747
23748 # type: =head2
23749 #. type: =head2
23750 #: ../fish/guestfish.pod:986
23751 msgid "help"
23752 msgstr ""
23753
23754 # type: verbatim
23755 #. type: verbatim
23756 #: ../fish/guestfish.pod:988
23757 #, no-wrap
23758 msgid ""
23759 " help\n"
23760 " help cmd\n"
23761 "\n"
23762 msgstr ""
23763
23764 # type: textblock
23765 #. type: textblock
23766 #: ../fish/guestfish.pod:991
23767 msgid "Without any parameter, this provides general help."
23768 msgstr ""
23769
23770 # type: textblock
23771 #. type: textblock
23772 #: ../fish/guestfish.pod:993
23773 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23774 msgstr ""
23775
23776 # type: =head2
23777 #. type: =head2
23778 #: ../fish/guestfish.pod:995
23779 msgid "quit | exit"
23780 msgstr ""
23781
23782 # type: textblock
23783 #. type: textblock
23784 #: ../fish/guestfish.pod:997
23785 msgid "This exits guestfish.  You can also use C<^D> key."
23786 msgstr ""
23787
23788 # type: textblock
23789 #. type: textblock
23790 #: ../fish/guestfish.pod:999
23791 msgid "@FISH_COMMANDS@"
23792 msgstr ""
23793
23794 # type: =head1
23795 #. type: =head1
23796 #: ../fish/guestfish.pod:1001
23797 msgid "COMMANDS"
23798 msgstr ""
23799
23800 # type: =head1
23801 #. type: =head1
23802 #: ../fish/guestfish.pod:1005 ../test-tool/libguestfs-test-tool.pod:83
23803 msgid "EXIT CODE"
23804 msgstr ""
23805
23806 # type: textblock
23807 #. type: textblock
23808 #: ../fish/guestfish.pod:1007
23809 msgid ""
23810 "guestfish returns 0 if the commands completed without error, or 1 if there "
23811 "was an error."
23812 msgstr ""
23813
23814 # type: =item
23815 #. type: =item
23816 #: ../fish/guestfish.pod:1014
23817 msgid "EDITOR"
23818 msgstr ""
23819
23820 # type: textblock
23821 #. type: textblock
23822 #: ../fish/guestfish.pod:1016
23823 msgid ""
23824 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23825 "C<vi>."
23826 msgstr ""
23827
23828 # type: =item
23829 #. type: =item
23830 #: ../fish/guestfish.pod:1019
23831 msgid "GUESTFISH_PID"
23832 msgstr ""
23833
23834 # type: textblock
23835 #. type: textblock
23836 #: ../fish/guestfish.pod:1021
23837 msgid ""
23838 "Used with the I<--remote> option to specify the remote guestfish process to "
23839 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23840 msgstr ""
23841
23842 # type: =item
23843 #. type: =item
23844 #: ../fish/guestfish.pod:1025
23845 msgid "HEXEDITOR"
23846 msgstr ""
23847
23848 # type: textblock
23849 #. type: textblock
23850 #: ../fish/guestfish.pod:1027
23851 msgid ""
23852 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23853 "not specified, the external L<hexedit(1)> program is used."
23854 msgstr ""
23855
23856 # type: =item
23857 #. type: =item
23858 #: ../fish/guestfish.pod:1031
23859 msgid "HOME"
23860 msgstr ""
23861
23862 # type: textblock
23863 #. type: textblock
23864 #: ../fish/guestfish.pod:1033
23865 msgid ""
23866 "If compiled with GNU readline support, various files in the home directory "
23867 "can be used.  See L</FILES>."
23868 msgstr ""
23869
23870 # type: textblock
23871 #. type: textblock
23872 #: ../fish/guestfish.pod:1042
23873 msgid ""
23874 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23875 "effect as using the B<-v> option."
23876 msgstr ""
23877
23878 # type: textblock
23879 #. type: textblock
23880 #: ../fish/guestfish.pod:1054
23881 msgid ""
23882 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23883 "the discussion of paths in L<guestfs(3)>."
23884 msgstr ""
23885
23886 # type: textblock
23887 #. type: textblock
23888 #: ../fish/guestfish.pod:1065
23889 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23890 msgstr ""
23891
23892 # type: =item
23893 #. type: =item
23894 #: ../fish/guestfish.pod:1067
23895 msgid "PAGER"
23896 msgstr ""
23897
23898 # type: textblock
23899 #. type: textblock
23900 #: ../fish/guestfish.pod:1069
23901 msgid ""
23902 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23903 "C<more>."
23904 msgstr ""
23905
23906 # type: =head1
23907 #. type: =head1
23908 #: ../fish/guestfish.pod:1085 ../test-tool/libguestfs-test-tool.pod:88
23909 #: ../fuse/guestmount.pod:252
23910 msgid "FILES"
23911 msgstr ""
23912
23913 #. type: =item
23914 #: ../fish/guestfish.pod:1089 ../fuse/guestmount.pod:256
23915 msgid "$HOME/.libguestfs-tools.rc"
23916 msgstr ""
23917
23918 #. type: =item
23919 #: ../fish/guestfish.pod:1091 ../fuse/guestmount.pod:258
23920 msgid "/etc/libguestfs-tools.conf"
23921 msgstr ""
23922
23923 #. type: textblock
23924 #: ../fish/guestfish.pod:1093 ../fuse/guestmount.pod:260
23925 msgid ""
23926 "This configuration file controls the default read-only or read-write mode "
23927 "(I<--ro> or I<--rw>)."
23928 msgstr ""
23929
23930 #. type: textblock
23931 #: ../fish/guestfish.pod:1096
23932 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
23933 msgstr ""
23934
23935 # type: =item
23936 #. type: =item
23937 #: ../fish/guestfish.pod:1098
23938 msgid "$HOME/.guestfish"
23939 msgstr ""
23940
23941 # type: textblock
23942 #. type: textblock
23943 #: ../fish/guestfish.pod:1100
23944 msgid ""
23945 "If compiled with GNU readline support, then the command history is saved in "
23946 "this file."
23947 msgstr ""
23948
23949 # type: =item
23950 #. type: =item
23951 #: ../fish/guestfish.pod:1103
23952 msgid "$HOME/.inputrc"
23953 msgstr ""
23954
23955 # type: =item
23956 #. type: =item
23957 #: ../fish/guestfish.pod:1105
23958 msgid "/etc/inputrc"
23959 msgstr ""
23960
23961 # type: textblock
23962 #. type: textblock
23963 #: ../fish/guestfish.pod:1107
23964 msgid ""
23965 "If compiled with GNU readline support, then these files can be used to "
23966 "configure readline.  For further information, please see L<readline(3)/"
23967 "INITIALIZATION FILE>."
23968 msgstr ""
23969
23970 # type: textblock
23971 #. type: textblock
23972 #: ../fish/guestfish.pod:1111
23973 msgid "To write rules which only apply to guestfish, use:"
23974 msgstr ""
23975
23976 # type: verbatim
23977 #. type: verbatim
23978 #: ../fish/guestfish.pod:1113
23979 #, no-wrap
23980 msgid ""
23981 " $if guestfish\n"
23982 " ...\n"
23983 " $endif\n"
23984 "\n"
23985 msgstr ""
23986
23987 # type: textblock
23988 #. type: textblock
23989 #: ../fish/guestfish.pod:1117
23990 msgid ""
23991 "Variables that you can set in inputrc that change the behaviour of guestfish "
23992 "in useful ways include:"
23993 msgstr ""
23994
23995 # type: =item
23996 #. type: =item
23997 #: ../fish/guestfish.pod:1122
23998 msgid "completion-ignore-case (default: on)"
23999 msgstr ""
24000
24001 # type: textblock
24002 #. type: textblock
24003 #: ../fish/guestfish.pod:1124
24004 msgid ""
24005 "By default, guestfish will ignore case when tab-completing paths on the "
24006 "disk.  Use:"
24007 msgstr ""
24008
24009 # type: verbatim
24010 #. type: verbatim
24011 #: ../fish/guestfish.pod:1127
24012 #, no-wrap
24013 msgid ""
24014 " set completion-ignore-case off\n"
24015 "\n"
24016 msgstr ""
24017
24018 # type: textblock
24019 #. type: textblock
24020 #: ../fish/guestfish.pod:1129
24021 msgid "to make guestfish case sensitive."
24022 msgstr ""
24023
24024 # type: =item
24025 #. type: =item
24026 #: ../fish/guestfish.pod:1133
24027 msgid "test1.img"
24028 msgstr ""
24029
24030 # type: =item
24031 #. type: =item
24032 #: ../fish/guestfish.pod:1135
24033 msgid "test2.img (etc)"
24034 msgstr ""
24035
24036 # type: textblock
24037 #. type: textblock
24038 #: ../fish/guestfish.pod:1137
24039 msgid ""
24040 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
24041 "will be created in the file C<test1.img> in the current directory.  The "
24042 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
24043 "the same name will be overwritten."
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../fish/guestfish.pod:1146
24048 msgid ""
24049 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
24050 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
24051 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
24052 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
24053 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
24054 ">, L<hexedit(1)>."
24055 msgstr ""
24056
24057 # type: textblock
24058 #. type: textblock
24059 #: ../fish/guestfish.pod:1176 ../test-tool/libguestfs-test-tool.pod:124
24060 #: ../fuse/guestmount.pod:287 ../tools/virt-edit.pl:372
24061 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1518
24062 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
24063 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
24064 msgid ""
24065 "This program is free software; you can redistribute it and/or modify it "
24066 "under the terms of the GNU General Public License as published by the Free "
24067 "Software Foundation; either version 2 of the License, or (at your option) "
24068 "any later version."
24069 msgstr ""
24070
24071 # type: textblock
24072 #. type: textblock
24073 #: ../fish/guestfish.pod:1181 ../test-tool/libguestfs-test-tool.pod:129
24074 #: ../fuse/guestmount.pod:292 ../tools/virt-edit.pl:377
24075 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1523
24076 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
24077 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
24078 msgid ""
24079 "This program is distributed in the hope that it will be useful, but WITHOUT "
24080 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24081 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24082 "more details."
24083 msgstr ""
24084
24085 # type: textblock
24086 #. type: textblock
24087 #: ../fish/guestfish.pod:1186 ../test-tool/libguestfs-test-tool.pod:134
24088 #: ../fuse/guestmount.pod:297 ../tools/virt-edit.pl:382
24089 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1528
24090 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
24091 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
24092 msgid ""
24093 "You should have received a copy of the GNU General Public License along with "
24094 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24095 "Ave, Cambridge, MA 02139, USA."
24096 msgstr ""
24097
24098 # type: =head2
24099 #. type: =head2
24100 #: ../fish/guestfish-actions.pod:1
24101 msgid "add-cdrom"
24102 msgstr ""
24103
24104 # type: verbatim
24105 #. type: verbatim
24106 #: ../fish/guestfish-actions.pod:3
24107 #, no-wrap
24108 msgid ""
24109 " add-cdrom filename\n"
24110 "\n"
24111 msgstr ""
24112
24113 # type: textblock
24114 #. type: textblock
24115 #: ../fish/guestfish-actions.pod:15
24116 msgid ""
24117 "This call checks for the existence of C<filename>.  This stops you from "
24118 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24119 "and C<http:> URLs.  To specify those, use the general L</config> call "
24120 "instead."
24121 msgstr ""
24122
24123 # type: textblock
24124 #. type: textblock
24125 #: ../fish/guestfish-actions.pod:22
24126 msgid ""
24127 "If you just want to add an ISO file (often you use this as an efficient way "
24128 "to transfer large files into the guest), then you should probably use L</add-"
24129 "drive-ro> instead."
24130 msgstr ""
24131
24132 # type: =head2
24133 #. type: =head2
24134 #: ../fish/guestfish-actions.pod:35
24135 msgid "add-domain"
24136 msgstr ""
24137
24138 # type: =head2
24139 #. type: =head2
24140 #: ../fish/guestfish-actions.pod:37
24141 msgid "domain"
24142 msgstr ""
24143
24144 #. type: verbatim
24145 #: ../fish/guestfish-actions.pod:39
24146 #, no-wrap
24147 msgid ""
24148 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
24149 "\n"
24150 msgstr ""
24151
24152 # type: textblock
24153 #. type: textblock
24154 #: ../fish/guestfish-actions.pod:41
24155 msgid ""
24156 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24157 "It works by connecting to libvirt, requesting the domain and domain XML from "
24158 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24159 msgstr ""
24160
24161 # type: textblock
24162 #. type: textblock
24163 #: ../fish/guestfish-actions.pod:71
24164 msgid ""
24165 "The other optional parameters are passed directly through to L</add-drive-"
24166 "opts>."
24167 msgstr ""
24168
24169 # type: textblock
24170 #. type: textblock
24171 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138
24172 #: ../fish/guestfish-actions.pod:2981
24173 msgid ""
24174 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24175 msgstr ""
24176
24177 # type: =head2
24178 #. type: =head2
24179 #: ../fish/guestfish-actions.pod:76
24180 msgid "add-drive"
24181 msgstr ""
24182
24183 # type: verbatim
24184 #. type: verbatim
24185 #: ../fish/guestfish-actions.pod:78
24186 #, no-wrap
24187 msgid ""
24188 " add-drive filename\n"
24189 "\n"
24190 msgstr ""
24191
24192 # type: textblock
24193 #. type: textblock
24194 #: ../fish/guestfish-actions.pod:80
24195 msgid ""
24196 "This function is the equivalent of calling L</add-drive-opts> with no "
24197 "optional parameters, so the disk is added writable, with the format being "
24198 "detected automatically."
24199 msgstr ""
24200
24201 # type: textblock
24202 #. type: textblock
24203 #: ../fish/guestfish-actions.pod:84
24204 msgid ""
24205 "Automatic detection of the format opens you up to a potential security hole "
24206 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24207 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24208 "you should think about replacing calls to this function with calls to L</add-"
24209 "drive-opts>, and specifying the format."
24210 msgstr ""
24211
24212 # type: =head2
24213 #. type: =head2
24214 #: ../fish/guestfish-actions.pod:91
24215 msgid "add-drive-opts"
24216 msgstr ""
24217
24218 # type: =head2
24219 #. type: =head2
24220 #: ../fish/guestfish-actions.pod:93
24221 msgid "add"
24222 msgstr ""
24223
24224 # type: verbatim
24225 #. type: verbatim
24226 #: ../fish/guestfish-actions.pod:95
24227 #, no-wrap
24228 msgid ""
24229 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24230 "\n"
24231 msgstr ""
24232
24233 # type: textblock
24234 #. type: textblock
24235 #: ../fish/guestfish-actions.pod:122
24236 msgid ""
24237 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24238 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24239 "include C<raw> and C<qcow2>."
24240 msgstr ""
24241
24242 # type: textblock
24243 #. type: textblock
24244 #: ../fish/guestfish-actions.pod:133
24245 msgid ""
24246 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24247 "add-drive-with-if> call (q.v.)"
24248 msgstr ""
24249
24250 # type: =head2
24251 #. type: =head2
24252 #: ../fish/guestfish-actions.pod:140
24253 msgid "add-drive-ro"
24254 msgstr ""
24255
24256 # type: =head2
24257 #. type: =head2
24258 #: ../fish/guestfish-actions.pod:142
24259 msgid "add-ro"
24260 msgstr ""
24261
24262 # type: verbatim
24263 #. type: verbatim
24264 #: ../fish/guestfish-actions.pod:144
24265 #, no-wrap
24266 msgid ""
24267 " add-drive-ro filename\n"
24268 "\n"
24269 msgstr ""
24270
24271 # type: textblock
24272 #. type: textblock
24273 #: ../fish/guestfish-actions.pod:146
24274 msgid ""
24275 "This function is the equivalent of calling L</add-drive-opts> with the "
24276 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24277 "is added read-only, with the format being detected automatically."
24278 msgstr ""
24279
24280 # type: =head2
24281 #. type: =head2
24282 #: ../fish/guestfish-actions.pod:151
24283 msgid "add-drive-ro-with-if"
24284 msgstr ""
24285
24286 # type: verbatim
24287 #. type: verbatim
24288 #: ../fish/guestfish-actions.pod:153
24289 #, no-wrap
24290 msgid ""
24291 " add-drive-ro-with-if filename iface\n"
24292 "\n"
24293 msgstr ""
24294
24295 # type: textblock
24296 #. type: textblock
24297 #: ../fish/guestfish-actions.pod:155
24298 msgid ""
24299 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24300 "interface emulation to use at run time."
24301 msgstr ""
24302
24303 # type: =head2
24304 #. type: =head2
24305 #: ../fish/guestfish-actions.pod:165
24306 msgid "add-drive-with-if"
24307 msgstr ""
24308
24309 # type: verbatim
24310 #. type: verbatim
24311 #: ../fish/guestfish-actions.pod:167
24312 #, no-wrap
24313 msgid ""
24314 " add-drive-with-if filename iface\n"
24315 "\n"
24316 msgstr ""
24317
24318 # type: textblock
24319 #. type: textblock
24320 #: ../fish/guestfish-actions.pod:169
24321 msgid ""
24322 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24323 "interface emulation to use at run time."
24324 msgstr ""
24325
24326 # type: =head2
24327 #. type: =head2
24328 #: ../fish/guestfish-actions.pod:179
24329 msgid "aug-clear"
24330 msgstr ""
24331
24332 # type: verbatim
24333 #. type: verbatim
24334 #: ../fish/guestfish-actions.pod:181
24335 #, no-wrap
24336 msgid ""
24337 " aug-clear augpath\n"
24338 "\n"
24339 msgstr ""
24340
24341 # type: =head2
24342 #. type: =head2
24343 #: ../fish/guestfish-actions.pod:186
24344 msgid "aug-close"
24345 msgstr ""
24346
24347 # type: verbatim
24348 #. type: verbatim
24349 #: ../fish/guestfish-actions.pod:188
24350 #, no-wrap
24351 msgid ""
24352 " aug-close\n"
24353 "\n"
24354 msgstr ""
24355
24356 # type: textblock
24357 #. type: textblock
24358 #: ../fish/guestfish-actions.pod:190
24359 msgid ""
24360 "Close the current Augeas handle and free up any resources used by it.  After "
24361 "calling this, you have to call L</aug-init> again before you can use any "
24362 "other Augeas functions."
24363 msgstr ""
24364
24365 # type: =head2
24366 #. type: =head2
24367 #: ../fish/guestfish-actions.pod:195
24368 msgid "aug-defnode"
24369 msgstr ""
24370
24371 # type: verbatim
24372 #. type: verbatim
24373 #: ../fish/guestfish-actions.pod:197
24374 #, no-wrap
24375 msgid ""
24376 " aug-defnode name expr val\n"
24377 "\n"
24378 msgstr ""
24379
24380 # type: textblock
24381 #. type: textblock
24382 #: ../fish/guestfish-actions.pod:202
24383 msgid ""
24384 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24385 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
24386 "containing that single node."
24387 msgstr ""
24388
24389 # type: =head2
24390 #. type: =head2
24391 #: ../fish/guestfish-actions.pod:210
24392 msgid "aug-defvar"
24393 msgstr ""
24394
24395 # type: verbatim
24396 #. type: verbatim
24397 #: ../fish/guestfish-actions.pod:212
24398 #, no-wrap
24399 msgid ""
24400 " aug-defvar name expr\n"
24401 "\n"
24402 msgstr ""
24403
24404 # type: =head2
24405 #. type: =head2
24406 #: ../fish/guestfish-actions.pod:221
24407 msgid "aug-get"
24408 msgstr ""
24409
24410 # type: verbatim
24411 #. type: verbatim
24412 #: ../fish/guestfish-actions.pod:223
24413 #, no-wrap
24414 msgid ""
24415 " aug-get augpath\n"
24416 "\n"
24417 msgstr ""
24418
24419 # type: =head2
24420 #. type: =head2
24421 #: ../fish/guestfish-actions.pod:228
24422 msgid "aug-init"
24423 msgstr ""
24424
24425 # type: verbatim
24426 #. type: verbatim
24427 #: ../fish/guestfish-actions.pod:230
24428 #, no-wrap
24429 msgid ""
24430 " aug-init root flags\n"
24431 "\n"
24432 msgstr ""
24433
24434 # type: textblock
24435 #. type: textblock
24436 #: ../fish/guestfish-actions.pod:236
24437 msgid "You must call this before using any other L</aug-*> commands."
24438 msgstr ""
24439
24440 # type: textblock
24441 #. type: textblock
24442 #: ../fish/guestfish-actions.pod:271
24443 msgid "Do not load the tree in L</aug-init>."
24444 msgstr ""
24445
24446 # type: textblock
24447 #. type: textblock
24448 #: ../fish/guestfish-actions.pod:275
24449 msgid "To close the handle, you can call L</aug-close>."
24450 msgstr ""
24451
24452 # type: =head2
24453 #. type: =head2
24454 #: ../fish/guestfish-actions.pod:279
24455 msgid "aug-insert"
24456 msgstr ""
24457
24458 # type: verbatim
24459 #. type: verbatim
24460 #: ../fish/guestfish-actions.pod:281
24461 #, no-wrap
24462 msgid ""
24463 " aug-insert augpath label true|false\n"
24464 "\n"
24465 msgstr ""
24466
24467 # type: =head2
24468 #. type: =head2
24469 #: ../fish/guestfish-actions.pod:291
24470 msgid "aug-load"
24471 msgstr ""
24472
24473 # type: verbatim
24474 #. type: verbatim
24475 #: ../fish/guestfish-actions.pod:293
24476 #, no-wrap
24477 msgid ""
24478 " aug-load\n"
24479 "\n"
24480 msgstr ""
24481
24482 # type: =head2
24483 #. type: =head2
24484 #: ../fish/guestfish-actions.pod:300
24485 msgid "aug-ls"
24486 msgstr ""
24487
24488 # type: verbatim
24489 #. type: verbatim
24490 #: ../fish/guestfish-actions.pod:302
24491 #, no-wrap
24492 msgid ""
24493 " aug-ls augpath\n"
24494 "\n"
24495 msgstr ""
24496
24497 # type: textblock
24498 #. type: textblock
24499 #: ../fish/guestfish-actions.pod:304
24500 msgid ""
24501 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
24502 "resulting nodes into alphabetical order."
24503 msgstr ""
24504
24505 # type: =head2
24506 #. type: =head2
24507 #: ../fish/guestfish-actions.pod:307
24508 msgid "aug-match"
24509 msgstr ""
24510
24511 # type: verbatim
24512 #. type: verbatim
24513 #: ../fish/guestfish-actions.pod:309
24514 #, no-wrap
24515 msgid ""
24516 " aug-match augpath\n"
24517 "\n"
24518 msgstr ""
24519
24520 # type: =head2
24521 #. type: =head2
24522 #: ../fish/guestfish-actions.pod:315
24523 msgid "aug-mv"
24524 msgstr ""
24525
24526 # type: verbatim
24527 #. type: verbatim
24528 #: ../fish/guestfish-actions.pod:317
24529 #, no-wrap
24530 msgid ""
24531 " aug-mv src dest\n"
24532 "\n"
24533 msgstr ""
24534
24535 # type: =head2
24536 #. type: =head2
24537 #: ../fish/guestfish-actions.pod:322
24538 msgid "aug-rm"
24539 msgstr ""
24540
24541 # type: verbatim
24542 #. type: verbatim
24543 #: ../fish/guestfish-actions.pod:324
24544 #, no-wrap
24545 msgid ""
24546 " aug-rm augpath\n"
24547 "\n"
24548 msgstr ""
24549
24550 # type: =head2
24551 #. type: =head2
24552 #: ../fish/guestfish-actions.pod:330
24553 msgid "aug-save"
24554 msgstr ""
24555
24556 # type: verbatim
24557 #. type: verbatim
24558 #: ../fish/guestfish-actions.pod:332
24559 #, no-wrap
24560 msgid ""
24561 " aug-save\n"
24562 "\n"
24563 msgstr ""
24564
24565 # type: textblock
24566 #. type: textblock
24567 #: ../fish/guestfish-actions.pod:336
24568 msgid ""
24569 "The flags which were passed to L</aug-init> affect exactly how files are "
24570 "saved."
24571 msgstr ""
24572
24573 # type: =head2
24574 #. type: =head2
24575 #: ../fish/guestfish-actions.pod:339
24576 msgid "aug-set"
24577 msgstr ""
24578
24579 # type: verbatim
24580 #. type: verbatim
24581 #: ../fish/guestfish-actions.pod:341
24582 #, no-wrap
24583 msgid ""
24584 " aug-set augpath val\n"
24585 "\n"
24586 msgstr ""
24587
24588 # type: textblock
24589 #. type: textblock
24590 #: ../fish/guestfish-actions.pod:345
24591 msgid ""
24592 "In the Augeas API, it is possible to clear a node by setting the value to "
24593 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24594 "this call.  Instead you must use the L</aug-clear> call."
24595 msgstr ""
24596
24597 # type: =head2
24598 #. type: =head2
24599 #: ../fish/guestfish-actions.pod:350
24600 msgid "available"
24601 msgstr ""
24602
24603 # type: verbatim
24604 #. type: verbatim
24605 #: ../fish/guestfish-actions.pod:352
24606 #, no-wrap
24607 msgid ""
24608 " available 'groups ...'\n"
24609 "\n"
24610 msgstr ""
24611
24612 # type: textblock
24613 #. type: textblock
24614 #: ../fish/guestfish-actions.pod:358
24615 msgid ""
24616 "The libguestfs groups, and the functions that those groups correspond to, "
24617 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24618 "runtime by calling L</available-all-groups>."
24619 msgstr ""
24620
24621 # type: textblock
24622 #. type: textblock
24623 #: ../fish/guestfish-actions.pod:382
24624 msgid "You must call L</launch> before calling this function."
24625 msgstr ""
24626
24627 # type: textblock
24628 #. type: textblock
24629 #: ../fish/guestfish-actions.pod:404
24630 msgid ""
24631 "This call was added in version C<1.0.80>.  In previous versions of "
24632 "libguestfs all you could do would be to speculatively execute a command to "
24633 "find out if the daemon implemented it.  See also L</version>."
24634 msgstr ""
24635
24636 # type: =head2
24637 #. type: =head2
24638 #: ../fish/guestfish-actions.pod:411
24639 msgid "available-all-groups"
24640 msgstr ""
24641
24642 # type: verbatim
24643 #. type: verbatim
24644 #: ../fish/guestfish-actions.pod:413
24645 #, no-wrap
24646 msgid ""
24647 " available-all-groups\n"
24648 "\n"
24649 msgstr ""
24650
24651 # type: textblock
24652 #. type: textblock
24653 #: ../fish/guestfish-actions.pod:415
24654 msgid ""
24655 "This command returns a list of all optional groups that this daemon knows "
24656 "about.  Note this returns both supported and unsupported groups.  To find "
24657 "out which ones the daemon can actually support you have to call L</"
24658 "available> on each member of the returned list."
24659 msgstr ""
24660
24661 # type: textblock
24662 #. type: textblock
24663 #: ../fish/guestfish-actions.pod:421
24664 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
24665 msgstr ""
24666
24667 # type: =head2
24668 #. type: =head2
24669 #: ../fish/guestfish-actions.pod:423
24670 msgid "base64-in"
24671 msgstr ""
24672
24673 # type: verbatim
24674 #. type: verbatim
24675 #: ../fish/guestfish-actions.pod:425
24676 #, no-wrap
24677 msgid ""
24678 " base64-in (base64file|-) filename\n"
24679 "\n"
24680 msgstr ""
24681
24682 # type: textblock
24683 #. type: textblock
24684 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439
24685 #: ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832
24686 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228
24687 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4391
24688 #: ../fish/guestfish-actions.pod:4402 ../fish/guestfish-actions.pod:4413
24689 #: ../fish/guestfish-actions.pod:4465 ../fish/guestfish-actions.pod:4474
24690 #: ../fish/guestfish-actions.pod:4528 ../fish/guestfish-actions.pod:4551
24691 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
24692 msgstr ""
24693
24694 # type: =head2
24695 #. type: =head2
24696 #: ../fish/guestfish-actions.pod:432
24697 msgid "base64-out"
24698 msgstr ""
24699
24700 # type: verbatim
24701 #. type: verbatim
24702 #: ../fish/guestfish-actions.pod:434
24703 #, no-wrap
24704 msgid ""
24705 " base64-out filename (base64file|-)\n"
24706 "\n"
24707 msgstr ""
24708
24709 # type: =head2
24710 #. type: =head2
24711 #: ../fish/guestfish-actions.pod:441
24712 msgid "blockdev-flushbufs"
24713 msgstr ""
24714
24715 # type: verbatim
24716 #. type: verbatim
24717 #: ../fish/guestfish-actions.pod:443
24718 #, no-wrap
24719 msgid ""
24720 " blockdev-flushbufs device\n"
24721 "\n"
24722 msgstr ""
24723
24724 # type: =head2
24725 #. type: =head2
24726 #: ../fish/guestfish-actions.pod:450
24727 msgid "blockdev-getbsz"
24728 msgstr ""
24729
24730 # type: verbatim
24731 #. type: verbatim
24732 #: ../fish/guestfish-actions.pod:452
24733 #, no-wrap
24734 msgid ""
24735 " blockdev-getbsz device\n"
24736 "\n"
24737 msgstr ""
24738
24739 # type: =head2
24740 #. type: =head2
24741 #: ../fish/guestfish-actions.pod:461
24742 msgid "blockdev-getro"
24743 msgstr ""
24744
24745 # type: verbatim
24746 #. type: verbatim
24747 #: ../fish/guestfish-actions.pod:463
24748 #, no-wrap
24749 msgid ""
24750 " blockdev-getro device\n"
24751 "\n"
24752 msgstr ""
24753
24754 # type: =head2
24755 #. type: =head2
24756 #: ../fish/guestfish-actions.pod:470
24757 msgid "blockdev-getsize64"
24758 msgstr ""
24759
24760 # type: verbatim
24761 #. type: verbatim
24762 #: ../fish/guestfish-actions.pod:472
24763 #, no-wrap
24764 msgid ""
24765 " blockdev-getsize64 device\n"
24766 "\n"
24767 msgstr ""
24768
24769 # type: textblock
24770 #. type: textblock
24771 #: ../fish/guestfish-actions.pod:476
24772 msgid "See also L</blockdev-getsz>."
24773 msgstr ""
24774
24775 # type: =head2
24776 #. type: =head2
24777 #: ../fish/guestfish-actions.pod:480
24778 msgid "blockdev-getss"
24779 msgstr ""
24780
24781 # type: verbatim
24782 #. type: verbatim
24783 #: ../fish/guestfish-actions.pod:482
24784 #, no-wrap
24785 msgid ""
24786 " blockdev-getss device\n"
24787 "\n"
24788 msgstr ""
24789
24790 # type: textblock
24791 #. type: textblock
24792 #: ../fish/guestfish-actions.pod:487
24793 msgid ""
24794 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24795 msgstr ""
24796
24797 # type: =head2
24798 #. type: =head2
24799 #: ../fish/guestfish-actions.pod:492
24800 msgid "blockdev-getsz"
24801 msgstr ""
24802
24803 # type: verbatim
24804 #. type: verbatim
24805 #: ../fish/guestfish-actions.pod:494
24806 #, no-wrap
24807 msgid ""
24808 " blockdev-getsz device\n"
24809 "\n"
24810 msgstr ""
24811
24812 # type: textblock
24813 #. type: textblock
24814 #: ../fish/guestfish-actions.pod:499
24815 msgid ""
24816 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24817 "blockdev-getsize64> for the more useful I<size in bytes>."
24818 msgstr ""
24819
24820 # type: =head2
24821 #. type: =head2
24822 #: ../fish/guestfish-actions.pod:505
24823 msgid "blockdev-rereadpt"
24824 msgstr ""
24825
24826 # type: verbatim
24827 #. type: verbatim
24828 #: ../fish/guestfish-actions.pod:507
24829 #, no-wrap
24830 msgid ""
24831 " blockdev-rereadpt device\n"
24832 "\n"
24833 msgstr ""
24834
24835 # type: =head2
24836 #. type: =head2
24837 #: ../fish/guestfish-actions.pod:513
24838 msgid "blockdev-setbsz"
24839 msgstr ""
24840
24841 # type: verbatim
24842 #. type: verbatim
24843 #: ../fish/guestfish-actions.pod:515
24844 #, no-wrap
24845 msgid ""
24846 " blockdev-setbsz device blocksize\n"
24847 "\n"
24848 msgstr ""
24849
24850 # type: =head2
24851 #. type: =head2
24852 #: ../fish/guestfish-actions.pod:524
24853 msgid "blockdev-setro"
24854 msgstr ""
24855
24856 # type: verbatim
24857 #. type: verbatim
24858 #: ../fish/guestfish-actions.pod:526
24859 #, no-wrap
24860 msgid ""
24861 " blockdev-setro device\n"
24862 "\n"
24863 msgstr ""
24864
24865 # type: =head2
24866 #. type: =head2
24867 #: ../fish/guestfish-actions.pod:532
24868 msgid "blockdev-setrw"
24869 msgstr ""
24870
24871 # type: verbatim
24872 #. type: verbatim
24873 #: ../fish/guestfish-actions.pod:534
24874 #, no-wrap
24875 msgid ""
24876 " blockdev-setrw device\n"
24877 "\n"
24878 msgstr ""
24879
24880 # type: =head2
24881 #. type: =head2
24882 #: ../fish/guestfish-actions.pod:540
24883 msgid "case-sensitive-path"
24884 msgstr ""
24885
24886 # type: verbatim
24887 #. type: verbatim
24888 #: ../fish/guestfish-actions.pod:542
24889 #, no-wrap
24890 msgid ""
24891 " case-sensitive-path path\n"
24892 "\n"
24893 msgstr ""
24894
24895 # type: textblock
24896 #. type: textblock
24897 #: ../fish/guestfish-actions.pod:566
24898 msgid ""
24899 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
24900 "WINDOWS/system32\"> (the exact return value would depend on details of how "
24901 "the directories were originally created under Windows)."
24902 msgstr ""
24903
24904 # type: textblock
24905 #. type: textblock
24906 #: ../fish/guestfish-actions.pod:574
24907 msgid "See also L</realpath>."
24908 msgstr ""
24909
24910 # type: =head2
24911 #. type: =head2
24912 #: ../fish/guestfish-actions.pod:576
24913 msgid "cat"
24914 msgstr ""
24915
24916 # type: verbatim
24917 #. type: verbatim
24918 #: ../fish/guestfish-actions.pod:578
24919 #, no-wrap
24920 msgid ""
24921 " cat path\n"
24922 "\n"
24923 msgstr ""
24924
24925 # type: textblock
24926 #. type: textblock
24927 #: ../fish/guestfish-actions.pod:582
24928 msgid ""
24929 "Note that this function cannot correctly handle binary files (specifically, "
24930 "files containing C<\\0> character which is treated as end of string).  For "
24931 "those you need to use the L</read-file> or L</download> functions which have "
24932 "a more complex interface."
24933 msgstr ""
24934
24935 # type: =head2
24936 #. type: =head2
24937 #: ../fish/guestfish-actions.pod:590
24938 msgid "checksum"
24939 msgstr ""
24940
24941 # type: verbatim
24942 #. type: verbatim
24943 #: ../fish/guestfish-actions.pod:592
24944 #, no-wrap
24945 msgid ""
24946 " checksum csumtype path\n"
24947 "\n"
24948 msgstr ""
24949
24950 # type: textblock
24951 #. type: textblock
24952 #: ../fish/guestfish-actions.pod:635
24953 msgid "To get the checksum for a device, use L</checksum-device>."
24954 msgstr ""
24955
24956 # type: textblock
24957 #. type: textblock
24958 #: ../fish/guestfish-actions.pod:637
24959 msgid "To get the checksums for many files, use L</checksums-out>."
24960 msgstr ""
24961
24962 # type: =head2
24963 #. type: =head2
24964 #: ../fish/guestfish-actions.pod:639
24965 msgid "checksum-device"
24966 msgstr ""
24967
24968 # type: verbatim
24969 #. type: verbatim
24970 #: ../fish/guestfish-actions.pod:641
24971 #, no-wrap
24972 msgid ""
24973 " checksum-device csumtype device\n"
24974 "\n"
24975 msgstr ""
24976
24977 # type: textblock
24978 #. type: textblock
24979 #: ../fish/guestfish-actions.pod:643
24980 msgid ""
24981 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24982 "device named C<device>.  For the types of checksums supported see the L</"
24983 "checksum> command."
24984 msgstr ""
24985
24986 # type: =head2
24987 #. type: =head2
24988 #: ../fish/guestfish-actions.pod:647
24989 msgid "checksums-out"
24990 msgstr ""
24991
24992 # type: verbatim
24993 #. type: verbatim
24994 #: ../fish/guestfish-actions.pod:649
24995 #, no-wrap
24996 msgid ""
24997 " checksums-out csumtype directory (sumsfile|-)\n"
24998 "\n"
24999 msgstr ""
25000
25001 # type: =head2
25002 #. type: =head2
25003 #: ../fish/guestfish-actions.pod:665
25004 msgid "chmod"
25005 msgstr ""
25006
25007 # type: verbatim
25008 #. type: verbatim
25009 #: ../fish/guestfish-actions.pod:667
25010 #, no-wrap
25011 msgid ""
25012 " chmod mode path\n"
25013 "\n"
25014 msgstr ""
25015
25016 # type: =head2
25017 #. type: =head2
25018 #: ../fish/guestfish-actions.pod:678
25019 msgid "chown"
25020 msgstr ""
25021
25022 # type: verbatim
25023 #. type: verbatim
25024 #: ../fish/guestfish-actions.pod:680
25025 #, no-wrap
25026 msgid ""
25027 " chown owner group path\n"
25028 "\n"
25029 msgstr ""
25030
25031 # type: =head2
25032 #. type: =head2
25033 #: ../fish/guestfish-actions.pod:688
25034 msgid "command"
25035 msgstr ""
25036
25037 # type: verbatim
25038 #. type: verbatim
25039 #: ../fish/guestfish-actions.pod:690
25040 #, no-wrap
25041 msgid ""
25042 " command 'arguments ...'\n"
25043 "\n"
25044 msgstr ""
25045
25046 # type: textblock
25047 #. type: textblock
25048 #: ../fish/guestfish-actions.pod:697
25049 msgid ""
25050 "The single parameter is an argv-style list of arguments.  The first element "
25051 "is the name of the program to run.  Subsequent elements are parameters.  The "
25052 "list must be non-empty (ie. must contain a program name).  Note that the "
25053 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
25054 msgstr ""
25055
25056 # type: =head2
25057 #. type: =head2
25058 #: ../fish/guestfish-actions.pod:725
25059 msgid "command-lines"
25060 msgstr ""
25061
25062 # type: verbatim
25063 #. type: verbatim
25064 #: ../fish/guestfish-actions.pod:727
25065 #, no-wrap
25066 msgid ""
25067 " command-lines 'arguments ...'\n"
25068 "\n"
25069 msgstr ""
25070
25071 # type: textblock
25072 #. type: textblock
25073 #: ../fish/guestfish-actions.pod:729
25074 msgid ""
25075 "This is the same as L</command>, but splits the result into a list of lines."
25076 msgstr ""
25077
25078 # type: textblock
25079 #. type: textblock
25080 #: ../fish/guestfish-actions.pod:732
25081 msgid "See also: L</sh-lines>"
25082 msgstr ""
25083
25084 # type: =head2
25085 #. type: =head2
25086 #: ../fish/guestfish-actions.pod:737
25087 msgid "config"
25088 msgstr ""
25089
25090 # type: verbatim
25091 #. type: verbatim
25092 #: ../fish/guestfish-actions.pod:739
25093 #, no-wrap
25094 msgid ""
25095 " config qemuparam qemuvalue\n"
25096 "\n"
25097 msgstr ""
25098
25099 # type: =head2
25100 #. type: =head2
25101 #: ../fish/guestfish-actions.pod:750
25102 msgid "copy-size"
25103 msgstr ""
25104
25105 # type: verbatim
25106 #. type: verbatim
25107 #: ../fish/guestfish-actions.pod:752
25108 #, no-wrap
25109 msgid ""
25110 " copy-size src dest size\n"
25111 "\n"
25112 msgstr ""
25113
25114 # type: =head2
25115 #. type: =head2
25116 #: ../fish/guestfish-actions.pod:760
25117 msgid "cp"
25118 msgstr ""
25119
25120 # type: verbatim
25121 #. type: verbatim
25122 #: ../fish/guestfish-actions.pod:762
25123 #, no-wrap
25124 msgid ""
25125 " cp src dest\n"
25126 "\n"
25127 msgstr ""
25128
25129 # type: =head2
25130 #. type: =head2
25131 #: ../fish/guestfish-actions.pod:767
25132 msgid "cp-a"
25133 msgstr ""
25134
25135 # type: verbatim
25136 #. type: verbatim
25137 #: ../fish/guestfish-actions.pod:769
25138 #, no-wrap
25139 msgid ""
25140 " cp-a src dest\n"
25141 "\n"
25142 msgstr ""
25143
25144 # type: =head2
25145 #. type: =head2
25146 #: ../fish/guestfish-actions.pod:774
25147 msgid "dd"
25148 msgstr ""
25149
25150 # type: verbatim
25151 #. type: verbatim
25152 #: ../fish/guestfish-actions.pod:776
25153 #, no-wrap
25154 msgid ""
25155 " dd src dest\n"
25156 "\n"
25157 msgstr ""
25158
25159 # type: textblock
25160 #. type: textblock
25161 #: ../fish/guestfish-actions.pod:783
25162 msgid ""
25163 "If the destination is a device, it must be as large or larger than the "
25164 "source file or device, otherwise the copy will fail.  This command cannot do "
25165 "partial copies (see L</copy-size>)."
25166 msgstr ""
25167
25168 # type: =head2
25169 #. type: =head2
25170 #: ../fish/guestfish-actions.pod:787
25171 msgid "df"
25172 msgstr ""
25173
25174 # type: verbatim
25175 #. type: verbatim
25176 #: ../fish/guestfish-actions.pod:789
25177 #, no-wrap
25178 msgid ""
25179 " df\n"
25180 "\n"
25181 msgstr ""
25182
25183 # type: textblock
25184 #. type: textblock
25185 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
25186 msgid ""
25187 "This command is mostly useful for interactive sessions.  It is I<not> "
25188 "intended that you try to parse the output string.  Use L</statvfs> from "
25189 "programs."
25190 msgstr ""
25191
25192 # type: =head2
25193 #. type: =head2
25194 #: ../fish/guestfish-actions.pod:797
25195 msgid "df-h"
25196 msgstr ""
25197
25198 # type: verbatim
25199 #. type: verbatim
25200 #: ../fish/guestfish-actions.pod:799
25201 #, no-wrap
25202 msgid ""
25203 " df-h\n"
25204 "\n"
25205 msgstr ""
25206
25207 # type: =head2
25208 #. type: =head2
25209 #: ../fish/guestfish-actions.pod:808
25210 msgid "dmesg"
25211 msgstr ""
25212
25213 # type: verbatim
25214 #. type: verbatim
25215 #: ../fish/guestfish-actions.pod:810
25216 #, no-wrap
25217 msgid ""
25218 " dmesg\n"
25219 "\n"
25220 msgstr ""
25221
25222 # type: textblock
25223 #. type: textblock
25224 #: ../fish/guestfish-actions.pod:816
25225 msgid ""
25226 "Another way to get the same information is to enable verbose messages with "
25227 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25228 "before running the program."
25229 msgstr ""
25230
25231 # type: =head2
25232 #. type: =head2
25233 #: ../fish/guestfish-actions.pod:821
25234 msgid "download"
25235 msgstr ""
25236
25237 # type: verbatim
25238 #. type: verbatim
25239 #: ../fish/guestfish-actions.pod:823
25240 #, no-wrap
25241 msgid ""
25242 " download remotefilename (filename|-)\n"
25243 "\n"
25244 msgstr ""
25245
25246 # type: textblock
25247 #. type: textblock
25248 #: ../fish/guestfish-actions.pod:830
25249 msgid "See also L</upload>, L</cat>."
25250 msgstr ""
25251
25252 # type: =head2
25253 #. type: =head2
25254 #: ../fish/guestfish-actions.pod:834
25255 msgid "download-offset"
25256 msgstr ""
25257
25258 # type: verbatim
25259 #. type: verbatim
25260 #: ../fish/guestfish-actions.pod:836
25261 #, no-wrap
25262 msgid ""
25263 " download-offset remotefilename (filename|-) offset size\n"
25264 "\n"
25265 msgstr ""
25266
25267 # type: textblock
25268 #. type: textblock
25269 #: ../fish/guestfish-actions.pod:844
25270 msgid ""
25271 "Note that there is no limit on the amount of data that can be downloaded "
25272 "with this call, unlike with L</pread>, and this call always reads the full "
25273 "amount unless an error occurs."
25274 msgstr ""
25275
25276 # type: textblock
25277 #. type: textblock
25278 #: ../fish/guestfish-actions.pod:849
25279 msgid "See also L</download>, L</pread>."
25280 msgstr ""
25281
25282 # type: =head2
25283 #. type: =head2
25284 #: ../fish/guestfish-actions.pod:853
25285 msgid "drop-caches"
25286 msgstr ""
25287
25288 # type: verbatim
25289 #. type: verbatim
25290 #: ../fish/guestfish-actions.pod:855
25291 #, no-wrap
25292 msgid ""
25293 " drop-caches whattodrop\n"
25294 "\n"
25295 msgstr ""
25296
25297 # type: =head2
25298 #. type: =head2
25299 #: ../fish/guestfish-actions.pod:867
25300 msgid "du"
25301 msgstr ""
25302
25303 # type: verbatim
25304 #. type: verbatim
25305 #: ../fish/guestfish-actions.pod:869
25306 #, no-wrap
25307 msgid ""
25308 " du path\n"
25309 "\n"
25310 msgstr ""
25311
25312 # type: =head2
25313 #. type: =head2
25314 #: ../fish/guestfish-actions.pod:881
25315 msgid "e2fsck-f"
25316 msgstr ""
25317
25318 # type: verbatim
25319 #. type: verbatim
25320 #: ../fish/guestfish-actions.pod:883
25321 #, no-wrap
25322 msgid ""
25323 " e2fsck-f device\n"
25324 "\n"
25325 msgstr ""
25326
25327 # type: textblock
25328 #. type: textblock
25329 #: ../fish/guestfish-actions.pod:889
25330 msgid ""
25331 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25332 "should use L</fsck>."
25333 msgstr ""
25334
25335 # type: =head2
25336 #. type: =head2
25337 #: ../fish/guestfish-actions.pod:892
25338 msgid "echo-daemon"
25339 msgstr ""
25340
25341 # type: verbatim
25342 #. type: verbatim
25343 #: ../fish/guestfish-actions.pod:894
25344 #, no-wrap
25345 msgid ""
25346 " echo-daemon 'words ...'\n"
25347 "\n"
25348 msgstr ""
25349
25350 # type: textblock
25351 #. type: textblock
25352 #: ../fish/guestfish-actions.pod:901
25353 msgid "See also L</ping-daemon>."
25354 msgstr ""
25355
25356 # type: =head2
25357 #. type: =head2
25358 #: ../fish/guestfish-actions.pod:903
25359 msgid "egrep"
25360 msgstr ""
25361
25362 # type: verbatim
25363 #. type: verbatim
25364 #: ../fish/guestfish-actions.pod:905
25365 #, no-wrap
25366 msgid ""
25367 " egrep regex path\n"
25368 "\n"
25369 msgstr ""
25370
25371 # type: =head2
25372 #. type: =head2
25373 #: ../fish/guestfish-actions.pod:913
25374 msgid "egrepi"
25375 msgstr ""
25376
25377 # type: verbatim
25378 #. type: verbatim
25379 #: ../fish/guestfish-actions.pod:915
25380 #, no-wrap
25381 msgid ""
25382 " egrepi regex path\n"
25383 "\n"
25384 msgstr ""
25385
25386 # type: =head2
25387 #. type: =head2
25388 #: ../fish/guestfish-actions.pod:923
25389 msgid "equal"
25390 msgstr ""
25391
25392 # type: verbatim
25393 #. type: verbatim
25394 #: ../fish/guestfish-actions.pod:925
25395 #, no-wrap
25396 msgid ""
25397 " equal file1 file2\n"
25398 "\n"
25399 msgstr ""
25400
25401 # type: =head2
25402 #. type: =head2
25403 #: ../fish/guestfish-actions.pod:932
25404 msgid "exists"
25405 msgstr ""
25406
25407 # type: verbatim
25408 #. type: verbatim
25409 #: ../fish/guestfish-actions.pod:934
25410 #, no-wrap
25411 msgid ""
25412 " exists path\n"
25413 "\n"
25414 msgstr ""
25415
25416 # type: textblock
25417 #. type: textblock
25418 #: ../fish/guestfish-actions.pod:939
25419 msgid "See also L</is-file>, L</is-dir>, L</stat>."
25420 msgstr ""
25421
25422 # type: =head2
25423 #. type: =head2
25424 #: ../fish/guestfish-actions.pod:941
25425 msgid "fallocate"
25426 msgstr ""
25427
25428 # type: verbatim
25429 #. type: verbatim
25430 #: ../fish/guestfish-actions.pod:943
25431 #, no-wrap
25432 msgid ""
25433 " fallocate path len\n"
25434 "\n"
25435 msgstr ""
25436
25437 # type: =head2
25438 #. type: =head2
25439 #: ../fish/guestfish-actions.pod:960
25440 msgid "fallocate64"
25441 msgstr ""
25442
25443 # type: verbatim
25444 #. type: verbatim
25445 #: ../fish/guestfish-actions.pod:962
25446 #, no-wrap
25447 msgid ""
25448 " fallocate64 path len\n"
25449 "\n"
25450 msgstr ""
25451
25452 # type: textblock
25453 #. type: textblock
25454 #: ../fish/guestfish-actions.pod:968
25455 msgid ""
25456 "Note that this call allocates disk blocks for the file.  To create a sparse "
25457 "file use L</truncate-size> instead."
25458 msgstr ""
25459
25460 # type: textblock
25461 #. type: textblock
25462 #: ../fish/guestfish-actions.pod:971
25463 msgid ""
25464 "The deprecated call L</fallocate> does the same, but owing to an oversight "
25465 "it only allowed 30 bit lengths to be specified, effectively limiting the "
25466 "maximum size of files created through that call to 1GB."
25467 msgstr ""
25468
25469 # type: =head2
25470 #. type: =head2
25471 #: ../fish/guestfish-actions.pod:980
25472 msgid "fgrep"
25473 msgstr ""
25474
25475 # type: verbatim
25476 #. type: verbatim
25477 #: ../fish/guestfish-actions.pod:982
25478 #, no-wrap
25479 msgid ""
25480 " fgrep pattern path\n"
25481 "\n"
25482 msgstr ""
25483
25484 # type: =head2
25485 #. type: =head2
25486 #: ../fish/guestfish-actions.pod:990
25487 msgid "fgrepi"
25488 msgstr ""
25489
25490 # type: verbatim
25491 #. type: verbatim
25492 #: ../fish/guestfish-actions.pod:992
25493 #, no-wrap
25494 msgid ""
25495 " fgrepi pattern path\n"
25496 "\n"
25497 msgstr ""
25498
25499 # type: =head2
25500 #. type: =head2
25501 #: ../fish/guestfish-actions.pod:1000
25502 msgid "file"
25503 msgstr ""
25504
25505 # type: verbatim
25506 #. type: verbatim
25507 #: ../fish/guestfish-actions.pod:1002
25508 #, no-wrap
25509 msgid ""
25510 " file path\n"
25511 "\n"
25512 msgstr ""
25513
25514 # type: textblock
25515 #. type: textblock
25516 #: ../fish/guestfish-actions.pod:1014
25517 msgid ""
25518 "This command can also be used on C</dev/> devices (and partitions, LV "
25519 "names).  You can for example use this to determine if a device contains a "
25520 "filesystem, although it's usually better to use L</vfs-type>."
25521 msgstr ""
25522
25523 # type: =head2
25524 #. type: =head2
25525 #: ../fish/guestfish-actions.pod:1024
25526 msgid "file-architecture"
25527 msgstr ""
25528
25529 # type: verbatim
25530 #. type: verbatim
25531 #: ../fish/guestfish-actions.pod:1026
25532 #, no-wrap
25533 msgid ""
25534 " file-architecture filename\n"
25535 "\n"
25536 msgstr ""
25537
25538 # type: =head2
25539 #. type: =head2
25540 #: ../fish/guestfish-actions.pod:1129
25541 msgid "filesize"
25542 msgstr ""
25543
25544 # type: verbatim
25545 #. type: verbatim
25546 #: ../fish/guestfish-actions.pod:1131
25547 #, no-wrap
25548 msgid ""
25549 " filesize file\n"
25550 "\n"
25551 msgstr ""
25552
25553 # type: textblock
25554 #. type: textblock
25555 #: ../fish/guestfish-actions.pod:1135
25556 msgid ""
25557 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
25558 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
25559 msgstr ""
25560
25561 # type: =head2
25562 #. type: =head2
25563 #: ../fish/guestfish-actions.pod:1139
25564 msgid "fill"
25565 msgstr ""
25566
25567 # type: verbatim
25568 #. type: verbatim
25569 #: ../fish/guestfish-actions.pod:1141
25570 #, no-wrap
25571 msgid ""
25572 " fill c len path\n"
25573 "\n"
25574 msgstr ""
25575
25576 # type: textblock
25577 #. type: textblock
25578 #: ../fish/guestfish-actions.pod:1147
25579 msgid ""
25580 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25581 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
25582 "L</fill-pattern>."
25583 msgstr ""
25584
25585 # type: =head2
25586 #. type: =head2
25587 #: ../fish/guestfish-actions.pod:1152
25588 msgid "fill-pattern"
25589 msgstr ""
25590
25591 # type: verbatim
25592 #. type: verbatim
25593 #: ../fish/guestfish-actions.pod:1154
25594 #, no-wrap
25595 msgid ""
25596 " fill-pattern pattern len path\n"
25597 "\n"
25598 msgstr ""
25599
25600 # type: textblock
25601 #. type: textblock
25602 #: ../fish/guestfish-actions.pod:1156
25603 msgid ""
25604 "This function is like L</fill> except that it creates a new file of length "
25605 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
25606 "is truncated if necessary to ensure the length of the file is exactly C<len> "
25607 "bytes."
25608 msgstr ""
25609
25610 # type: =head2
25611 #. type: =head2
25612 #: ../fish/guestfish-actions.pod:1161
25613 msgid "find"
25614 msgstr ""
25615
25616 # type: verbatim
25617 #. type: verbatim
25618 #: ../fish/guestfish-actions.pod:1163
25619 #, no-wrap
25620 msgid ""
25621 " find directory\n"
25622 "\n"
25623 msgstr ""
25624
25625 # type: textblock
25626 #. type: textblock
25627 #: ../fish/guestfish-actions.pod:1177
25628 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
25629 msgstr ""
25630
25631 # type: textblock
25632 #. type: textblock
25633 #: ../fish/guestfish-actions.pod:1190
25634 msgid "See also L</find0>."
25635 msgstr ""
25636
25637 # type: =head2
25638 #. type: =head2
25639 #: ../fish/guestfish-actions.pod:1195
25640 msgid "find0"
25641 msgstr ""
25642
25643 # type: verbatim
25644 #. type: verbatim
25645 #: ../fish/guestfish-actions.pod:1197
25646 #, no-wrap
25647 msgid ""
25648 " find0 directory (files|-)\n"
25649 "\n"
25650 msgstr ""
25651
25652 # type: textblock
25653 #. type: textblock
25654 #: ../fish/guestfish-actions.pod:1203
25655 msgid ""
25656 "This command works the same way as L</find> with the following exceptions:"
25657 msgstr ""
25658
25659 # type: =head2
25660 #. type: =head2
25661 #: ../fish/guestfish-actions.pod:1230
25662 msgid "findfs-label"
25663 msgstr ""
25664
25665 # type: verbatim
25666 #. type: verbatim
25667 #: ../fish/guestfish-actions.pod:1232
25668 #, no-wrap
25669 msgid ""
25670 " findfs-label label\n"
25671 "\n"
25672 msgstr ""
25673
25674 # type: textblock
25675 #. type: textblock
25676 #: ../fish/guestfish-actions.pod:1238
25677 msgid "To find the label of a filesystem, use L</vfs-label>."
25678 msgstr ""
25679
25680 # type: =head2
25681 #. type: =head2
25682 #: ../fish/guestfish-actions.pod:1240
25683 msgid "findfs-uuid"
25684 msgstr ""
25685
25686 # type: verbatim
25687 #. type: verbatim
25688 #: ../fish/guestfish-actions.pod:1242
25689 #, no-wrap
25690 msgid ""
25691 " findfs-uuid uuid\n"
25692 "\n"
25693 msgstr ""
25694
25695 # type: textblock
25696 #. type: textblock
25697 #: ../fish/guestfish-actions.pod:1248
25698 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
25699 msgstr ""
25700
25701 # type: =head2
25702 #. type: =head2
25703 #: ../fish/guestfish-actions.pod:1250
25704 msgid "fsck"
25705 msgstr ""
25706
25707 # type: verbatim
25708 #. type: verbatim
25709 #: ../fish/guestfish-actions.pod:1252
25710 #, no-wrap
25711 msgid ""
25712 " fsck fstype device\n"
25713 "\n"
25714 msgstr ""
25715
25716 # type: =head2
25717 #. type: =head2
25718 #: ../fish/guestfish-actions.pod:1282
25719 msgid "get-append"
25720 msgstr ""
25721
25722 # type: verbatim
25723 #. type: verbatim
25724 #: ../fish/guestfish-actions.pod:1284
25725 #, no-wrap
25726 msgid ""
25727 " get-append\n"
25728 "\n"
25729 msgstr ""
25730
25731 #. type: =head2
25732 #: ../fish/guestfish-actions.pod:1291
25733 msgid "get-attach-method"
25734 msgstr ""
25735
25736 #. type: verbatim
25737 #: ../fish/guestfish-actions.pod:1293
25738 #, no-wrap
25739 msgid ""
25740 " get-attach-method\n"
25741 "\n"
25742 msgstr ""
25743
25744 #. type: textblock
25745 #: ../fish/guestfish-actions.pod:1295
25746 msgid "Return the current attach method.  See L</set-attach-method>."
25747 msgstr ""
25748
25749 # type: =head2
25750 #. type: =head2
25751 #: ../fish/guestfish-actions.pod:1297
25752 msgid "get-autosync"
25753 msgstr ""
25754
25755 # type: verbatim
25756 #. type: verbatim
25757 #: ../fish/guestfish-actions.pod:1299
25758 #, no-wrap
25759 msgid ""
25760 " get-autosync\n"
25761 "\n"
25762 msgstr ""
25763
25764 # type: =head2
25765 #. type: =head2
25766 #: ../fish/guestfish-actions.pod:1303
25767 msgid "get-direct"
25768 msgstr ""
25769
25770 # type: verbatim
25771 #. type: verbatim
25772 #: ../fish/guestfish-actions.pod:1305
25773 #, no-wrap
25774 msgid ""
25775 " get-direct\n"
25776 "\n"
25777 msgstr ""
25778
25779 # type: =head2
25780 #. type: =head2
25781 #: ../fish/guestfish-actions.pod:1309
25782 msgid "get-e2label"
25783 msgstr ""
25784
25785 # type: verbatim
25786 #. type: verbatim
25787 #: ../fish/guestfish-actions.pod:1311
25788 #, no-wrap
25789 msgid ""
25790 " get-e2label device\n"
25791 "\n"
25792 msgstr ""
25793
25794 # type: =head2
25795 #. type: =head2
25796 #: ../fish/guestfish-actions.pod:1323
25797 msgid "get-e2uuid"
25798 msgstr ""
25799
25800 # type: verbatim
25801 #. type: verbatim
25802 #: ../fish/guestfish-actions.pod:1325
25803 #, no-wrap
25804 msgid ""
25805 " get-e2uuid device\n"
25806 "\n"
25807 msgstr ""
25808
25809 # type: =head2
25810 #. type: =head2
25811 #: ../fish/guestfish-actions.pod:1337
25812 msgid "get-memsize"
25813 msgstr ""
25814
25815 # type: verbatim
25816 #. type: verbatim
25817 #: ../fish/guestfish-actions.pod:1339
25818 #, no-wrap
25819 msgid ""
25820 " get-memsize\n"
25821 "\n"
25822 msgstr ""
25823
25824 # type: textblock
25825 #. type: textblock
25826 #: ../fish/guestfish-actions.pod:1344
25827 msgid ""
25828 "If L</set-memsize> was not called on this handle, and if "
25829 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25830 "value for memsize."
25831 msgstr ""
25832
25833 # type: =head2
25834 #. type: =head2
25835 #: ../fish/guestfish-actions.pod:1351
25836 msgid "get-network"
25837 msgstr ""
25838
25839 # type: verbatim
25840 #. type: verbatim
25841 #: ../fish/guestfish-actions.pod:1353
25842 #, no-wrap
25843 msgid ""
25844 " get-network\n"
25845 "\n"
25846 msgstr ""
25847
25848 # type: =head2
25849 #. type: =head2
25850 #: ../fish/guestfish-actions.pod:1357
25851 msgid "get-path"
25852 msgstr ""
25853
25854 # type: verbatim
25855 #. type: verbatim
25856 #: ../fish/guestfish-actions.pod:1359
25857 #, no-wrap
25858 msgid ""
25859 " get-path\n"
25860 "\n"
25861 msgstr ""
25862
25863 # type: =head2
25864 #. type: =head2
25865 #: ../fish/guestfish-actions.pod:1366
25866 msgid "get-pid"
25867 msgstr ""
25868
25869 # type: =head2
25870 #. type: =head2
25871 #: ../fish/guestfish-actions.pod:1368
25872 msgid "pid"
25873 msgstr ""
25874
25875 # type: verbatim
25876 #. type: verbatim
25877 #: ../fish/guestfish-actions.pod:1370
25878 #, no-wrap
25879 msgid ""
25880 " get-pid\n"
25881 "\n"
25882 msgstr ""
25883
25884 # type: =head2
25885 #. type: =head2
25886 #: ../fish/guestfish-actions.pod:1377
25887 msgid "get-qemu"
25888 msgstr ""
25889
25890 # type: verbatim
25891 #. type: verbatim
25892 #: ../fish/guestfish-actions.pod:1379
25893 #, no-wrap
25894 msgid ""
25895 " get-qemu\n"
25896 "\n"
25897 msgstr ""
25898
25899 # type: =head2
25900 #. type: =head2
25901 #: ../fish/guestfish-actions.pod:1386
25902 msgid "get-recovery-proc"
25903 msgstr ""
25904
25905 # type: verbatim
25906 #. type: verbatim
25907 #: ../fish/guestfish-actions.pod:1388
25908 #, no-wrap
25909 msgid ""
25910 " get-recovery-proc\n"
25911 "\n"
25912 msgstr ""
25913
25914 # type: =head2
25915 #. type: =head2
25916 #: ../fish/guestfish-actions.pod:1392
25917 msgid "get-selinux"
25918 msgstr ""
25919
25920 # type: verbatim
25921 #. type: verbatim
25922 #: ../fish/guestfish-actions.pod:1394
25923 #, no-wrap
25924 msgid ""
25925 " get-selinux\n"
25926 "\n"
25927 msgstr ""
25928
25929 # type: textblock
25930 #. type: textblock
25931 #: ../fish/guestfish-actions.pod:1396
25932 msgid ""
25933 "This returns the current setting of the selinux flag which is passed to the "
25934 "appliance at boot time.  See L</set-selinux>."
25935 msgstr ""
25936
25937 # type: =head2
25938 #. type: =head2
25939 #: ../fish/guestfish-actions.pod:1402
25940 msgid "get-state"
25941 msgstr ""
25942
25943 # type: verbatim
25944 #. type: verbatim
25945 #: ../fish/guestfish-actions.pod:1404
25946 #, no-wrap
25947 msgid ""
25948 " get-state\n"
25949 "\n"
25950 msgstr ""
25951
25952 # type: =head2
25953 #. type: =head2
25954 #: ../fish/guestfish-actions.pod:1411
25955 msgid "get-trace"
25956 msgstr ""
25957
25958 # type: verbatim
25959 #. type: verbatim
25960 #: ../fish/guestfish-actions.pod:1413
25961 #, no-wrap
25962 msgid ""
25963 " get-trace\n"
25964 "\n"
25965 msgstr ""
25966
25967 # type: =head2
25968 #. type: =head2
25969 #: ../fish/guestfish-actions.pod:1417
25970 msgid "get-umask"
25971 msgstr ""
25972
25973 # type: verbatim
25974 #. type: verbatim
25975 #: ../fish/guestfish-actions.pod:1419
25976 #, no-wrap
25977 msgid ""
25978 " get-umask\n"
25979 "\n"
25980 msgstr ""
25981
25982 # type: textblock
25983 #. type: textblock
25984 #: ../fish/guestfish-actions.pod:1421
25985 msgid ""
25986 "Return the current umask.  By default the umask is C<022> unless it has been "
25987 "set by calling L</umask>."
25988 msgstr ""
25989
25990 # type: =head2
25991 #. type: =head2
25992 #: ../fish/guestfish-actions.pod:1424
25993 msgid "get-verbose"
25994 msgstr ""
25995
25996 # type: verbatim
25997 #. type: verbatim
25998 #: ../fish/guestfish-actions.pod:1426
25999 #, no-wrap
26000 msgid ""
26001 " get-verbose\n"
26002 "\n"
26003 msgstr ""
26004
26005 # type: =head2
26006 #. type: =head2
26007 #: ../fish/guestfish-actions.pod:1430
26008 msgid "getcon"
26009 msgstr ""
26010
26011 # type: verbatim
26012 #. type: verbatim
26013 #: ../fish/guestfish-actions.pod:1432
26014 #, no-wrap
26015 msgid ""
26016 " getcon\n"
26017 "\n"
26018 msgstr ""
26019
26020 # type: textblock
26021 #. type: textblock
26022 #: ../fish/guestfish-actions.pod:1436
26023 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
26024 msgstr ""
26025
26026 # type: =head2
26027 #. type: =head2
26028 #: ../fish/guestfish-actions.pod:1439
26029 msgid "getxattr"
26030 msgstr ""
26031
26032 # type: verbatim
26033 #. type: verbatim
26034 #: ../fish/guestfish-actions.pod:1441
26035 #, no-wrap
26036 msgid ""
26037 " getxattr path name\n"
26038 "\n"
26039 msgstr ""
26040
26041 # type: textblock
26042 #. type: textblock
26043 #: ../fish/guestfish-actions.pod:1443
26044 msgid ""
26045 "Get a single extended attribute from file C<path> named C<name>.  This call "
26046 "follows symlinks.  If you want to lookup an extended attribute for the "
26047 "symlink itself, use L</lgetxattr>."
26048 msgstr ""
26049
26050 # type: textblock
26051 #. type: textblock
26052 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2387
26053 msgid ""
26054 "Normally it is better to get all extended attributes from a file in one go "
26055 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
26056 "buggy and do not provide a way to list out attributes.  For these "
26057 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
26058 "attributes you want in advance and call this function."
26059 msgstr ""
26060
26061 # type: textblock
26062 #. type: textblock
26063 #: ../fish/guestfish-actions.pod:1457
26064 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
26065 msgstr ""
26066
26067 # type: =head2
26068 #. type: =head2
26069 #: ../fish/guestfish-actions.pod:1459
26070 msgid "getxattrs"
26071 msgstr ""
26072
26073 # type: verbatim
26074 #. type: verbatim
26075 #: ../fish/guestfish-actions.pod:1461
26076 #, no-wrap
26077 msgid ""
26078 " getxattrs path\n"
26079 "\n"
26080 msgstr ""
26081
26082 # type: textblock
26083 #. type: textblock
26084 #: ../fish/guestfish-actions.pod:1469
26085 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26086 msgstr ""
26087
26088 # type: =head2
26089 #. type: =head2
26090 #: ../fish/guestfish-actions.pod:1471
26091 msgid "glob-expand"
26092 msgstr ""
26093
26094 # type: verbatim
26095 #. type: verbatim
26096 #: ../fish/guestfish-actions.pod:1473
26097 #, no-wrap
26098 msgid ""
26099 " glob-expand pattern\n"
26100 "\n"
26101 msgstr ""
26102
26103 # type: =head2
26104 #. type: =head2
26105 #: ../fish/guestfish-actions.pod:1486
26106 msgid "grep"
26107 msgstr ""
26108
26109 # type: verbatim
26110 #. type: verbatim
26111 #: ../fish/guestfish-actions.pod:1488
26112 #, no-wrap
26113 msgid ""
26114 " grep regex path\n"
26115 "\n"
26116 msgstr ""
26117
26118 # type: =head2
26119 #. type: =head2
26120 #: ../fish/guestfish-actions.pod:1496
26121 msgid "grepi"
26122 msgstr ""
26123
26124 # type: verbatim
26125 #. type: verbatim
26126 #: ../fish/guestfish-actions.pod:1498
26127 #, no-wrap
26128 msgid ""
26129 " grepi regex path\n"
26130 "\n"
26131 msgstr ""
26132
26133 # type: =head2
26134 #. type: =head2
26135 #: ../fish/guestfish-actions.pod:1506
26136 msgid "grub-install"
26137 msgstr ""
26138
26139 # type: verbatim
26140 #. type: verbatim
26141 #: ../fish/guestfish-actions.pod:1508
26142 #, no-wrap
26143 msgid ""
26144 " grub-install root device\n"
26145 "\n"
26146 msgstr ""
26147
26148 # type: =head2
26149 #. type: =head2
26150 #: ../fish/guestfish-actions.pod:1524
26151 msgid "head"
26152 msgstr ""
26153
26154 # type: verbatim
26155 #. type: verbatim
26156 #: ../fish/guestfish-actions.pod:1526
26157 #, no-wrap
26158 msgid ""
26159 " head path\n"
26160 "\n"
26161 msgstr ""
26162
26163 # type: =head2
26164 #. type: =head2
26165 #: ../fish/guestfish-actions.pod:1534
26166 msgid "head-n"
26167 msgstr ""
26168
26169 # type: verbatim
26170 #. type: verbatim
26171 #: ../fish/guestfish-actions.pod:1536
26172 #, no-wrap
26173 msgid ""
26174 " head-n nrlines path\n"
26175 "\n"
26176 msgstr ""
26177
26178 # type: =head2
26179 #. type: =head2
26180 #: ../fish/guestfish-actions.pod:1549
26181 msgid "hexdump"
26182 msgstr ""
26183
26184 # type: verbatim
26185 #. type: verbatim
26186 #: ../fish/guestfish-actions.pod:1551
26187 #, no-wrap
26188 msgid ""
26189 " hexdump path\n"
26190 "\n"
26191 msgstr ""
26192
26193 # type: =head2
26194 #. type: =head2
26195 #: ../fish/guestfish-actions.pod:1559
26196 msgid "initrd-cat"
26197 msgstr ""
26198
26199 # type: verbatim
26200 #. type: verbatim
26201 #: ../fish/guestfish-actions.pod:1561
26202 #, no-wrap
26203 msgid ""
26204 " initrd-cat initrdpath filename\n"
26205 "\n"
26206 msgstr ""
26207
26208 # type: textblock
26209 #. type: textblock
26210 #: ../fish/guestfish-actions.pod:1573
26211 msgid "See also L</initrd-list>."
26212 msgstr ""
26213
26214 # type: =head2
26215 #. type: =head2
26216 #: ../fish/guestfish-actions.pod:1578
26217 msgid "initrd-list"
26218 msgstr ""
26219
26220 # type: verbatim
26221 #. type: verbatim
26222 #: ../fish/guestfish-actions.pod:1580
26223 #, no-wrap
26224 msgid ""
26225 " initrd-list path\n"
26226 "\n"
26227 msgstr ""
26228
26229 # type: =head2
26230 #. type: =head2
26231 #: ../fish/guestfish-actions.pod:1592
26232 msgid "inotify-add-watch"
26233 msgstr ""
26234
26235 # type: verbatim
26236 #. type: verbatim
26237 #: ../fish/guestfish-actions.pod:1594
26238 #, no-wrap
26239 msgid ""
26240 " inotify-add-watch path mask\n"
26241 "\n"
26242 msgstr ""
26243
26244 # type: =head2
26245 #. type: =head2
26246 #: ../fish/guestfish-actions.pod:1606
26247 msgid "inotify-close"
26248 msgstr ""
26249
26250 # type: verbatim
26251 #. type: verbatim
26252 #: ../fish/guestfish-actions.pod:1608
26253 #, no-wrap
26254 msgid ""
26255 " inotify-close\n"
26256 "\n"
26257 msgstr ""
26258
26259 # type: =head2
26260 #. type: =head2
26261 #: ../fish/guestfish-actions.pod:1614
26262 msgid "inotify-files"
26263 msgstr ""
26264
26265 # type: verbatim
26266 #. type: verbatim
26267 #: ../fish/guestfish-actions.pod:1616
26268 #, no-wrap
26269 msgid ""
26270 " inotify-files\n"
26271 "\n"
26272 msgstr ""
26273
26274 # type: textblock
26275 #. type: textblock
26276 #: ../fish/guestfish-actions.pod:1618
26277 msgid ""
26278 "This function is a helpful wrapper around L</inotify-read> which just "
26279 "returns a list of pathnames of objects that were touched.  The returned "
26280 "pathnames are sorted and deduplicated."
26281 msgstr ""
26282
26283 # type: =head2
26284 #. type: =head2
26285 #: ../fish/guestfish-actions.pod:1622
26286 msgid "inotify-init"
26287 msgstr ""
26288
26289 # type: verbatim
26290 #. type: verbatim
26291 #: ../fish/guestfish-actions.pod:1624
26292 #, no-wrap
26293 msgid ""
26294 " inotify-init maxevents\n"
26295 "\n"
26296 msgstr ""
26297
26298 # type: textblock
26299 #. type: textblock
26300 #: ../fish/guestfish-actions.pod:1630
26301 msgid ""
26302 "C<maxevents> is the maximum number of events which will be queued up between "
26303 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26304 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26305 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26306 "but records the fact that it threw them away by setting a flag "
26307 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26308 msgstr ""
26309
26310 # type: textblock
26311 #. type: textblock
26312 #: ../fish/guestfish-actions.pod:1640
26313 msgid ""
26314 "Before any events are generated, you have to add some watches to the "
26315 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26316 "L</inotify-watch-all>."
26317 msgstr ""
26318
26319 # type: textblock
26320 #. type: textblock
26321 #: ../fish/guestfish-actions.pod:1646
26322 msgid ""
26323 "Queued up events should be read periodically by calling L</inotify-read> (or "
26324 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26325 "If you don't read the events out often enough then you risk the internal "
26326 "queue overflowing."
26327 msgstr ""
26328
26329 # type: textblock
26330 #. type: textblock
26331 #: ../fish/guestfish-actions.pod:1653
26332 msgid ""
26333 "The handle should be closed after use by calling L</inotify-close>.  This "
26334 "also removes any watches automatically."
26335 msgstr ""
26336
26337 # type: =head2
26338 #. type: =head2
26339 #: ../fish/guestfish-actions.pod:1662
26340 msgid "inotify-read"
26341 msgstr ""
26342
26343 # type: verbatim
26344 #. type: verbatim
26345 #: ../fish/guestfish-actions.pod:1664
26346 #, no-wrap
26347 msgid ""
26348 " inotify-read\n"
26349 "\n"
26350 msgstr ""
26351
26352 # type: =head2
26353 #. type: =head2
26354 #: ../fish/guestfish-actions.pod:1677
26355 msgid "inotify-rm-watch"
26356 msgstr ""
26357
26358 # type: verbatim
26359 #. type: verbatim
26360 #: ../fish/guestfish-actions.pod:1679
26361 #, no-wrap
26362 msgid ""
26363 " inotify-rm-watch wd\n"
26364 "\n"
26365 msgstr ""
26366
26367 # type: textblock
26368 #. type: textblock
26369 #: ../fish/guestfish-actions.pod:1681
26370 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
26371 msgstr ""
26372
26373 # type: =head2
26374 #. type: =head2
26375 #: ../fish/guestfish-actions.pod:1684
26376 msgid "inspect-get-arch"
26377 msgstr ""
26378
26379 # type: verbatim
26380 #. type: verbatim
26381 #: ../fish/guestfish-actions.pod:1686
26382 #, no-wrap
26383 msgid ""
26384 " inspect-get-arch root\n"
26385 "\n"
26386 msgstr ""
26387
26388 # type: textblock
26389 #. type: textblock
26390 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704
26391 #: ../fish/guestfish-actions.pod:1782 ../fish/guestfish-actions.pod:1800
26392 #: ../fish/guestfish-actions.pod:1834 ../fish/guestfish-actions.pod:1849
26393 #: ../fish/guestfish-actions.pod:1870 ../fish/guestfish-actions.pod:1885
26394 #: ../fish/guestfish-actions.pod:1912 ../fish/guestfish-actions.pod:1934
26395 #: ../fish/guestfish-actions.pod:1958 ../fish/guestfish-actions.pod:1975
26396 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2053
26397 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2082
26398 #: ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2110
26399 msgid ""
26400 "This function should only be called with a root device string as returned by "
26401 "L</inspect-os>."
26402 msgstr ""
26403
26404 # type: textblock
26405 #. type: textblock
26406 #: ../fish/guestfish-actions.pod:1691
26407 msgid ""
26408 "This returns the architecture of the inspected operating system.  The "
26409 "possible return values are listed under L</file-architecture>."
26410 msgstr ""
26411
26412 # type: =head2
26413 #. type: =head2
26414 #: ../fish/guestfish-actions.pod:1700
26415 msgid "inspect-get-distro"
26416 msgstr ""
26417
26418 # type: verbatim
26419 #. type: verbatim
26420 #: ../fish/guestfish-actions.pod:1702
26421 #, no-wrap
26422 msgid ""
26423 " inspect-get-distro root\n"
26424 "\n"
26425 msgstr ""
26426
26427 # type: =head2
26428 #. type: =head2
26429 #: ../fish/guestfish-actions.pod:1778
26430 msgid "inspect-get-filesystems"
26431 msgstr ""
26432
26433 # type: verbatim
26434 #. type: verbatim
26435 #: ../fish/guestfish-actions.pod:1780
26436 #, no-wrap
26437 msgid ""
26438 " inspect-get-filesystems root\n"
26439 "\n"
26440 msgstr ""
26441
26442 # type: textblock
26443 #. type: textblock
26444 #: ../fish/guestfish-actions.pod:1793
26445 msgid ""
26446 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26447 "get-mountpoints>."
26448 msgstr ""
26449
26450 #. type: =head2
26451 #: ../fish/guestfish-actions.pod:1796
26452 msgid "inspect-get-format"
26453 msgstr ""
26454
26455 #. type: verbatim
26456 #: ../fish/guestfish-actions.pod:1798
26457 #, no-wrap
26458 msgid ""
26459 " inspect-get-format root\n"
26460 "\n"
26461 msgstr ""
26462
26463 # type: =head2
26464 #. type: =head2
26465 #: ../fish/guestfish-actions.pod:1830
26466 msgid "inspect-get-hostname"
26467 msgstr ""
26468
26469 # type: verbatim
26470 #. type: verbatim
26471 #: ../fish/guestfish-actions.pod:1832
26472 #, no-wrap
26473 msgid ""
26474 " inspect-get-hostname root\n"
26475 "\n"
26476 msgstr ""
26477
26478 # type: =head2
26479 #. type: =head2
26480 #: ../fish/guestfish-actions.pod:1845
26481 msgid "inspect-get-major-version"
26482 msgstr ""
26483
26484 # type: verbatim
26485 #. type: verbatim
26486 #: ../fish/guestfish-actions.pod:1847
26487 #, no-wrap
26488 msgid ""
26489 " inspect-get-major-version root\n"
26490 "\n"
26491 msgstr ""
26492
26493 # type: =head2
26494 #. type: =head2
26495 #: ../fish/guestfish-actions.pod:1866
26496 msgid "inspect-get-minor-version"
26497 msgstr ""
26498
26499 # type: verbatim
26500 #. type: verbatim
26501 #: ../fish/guestfish-actions.pod:1868
26502 #, no-wrap
26503 msgid ""
26504 " inspect-get-minor-version root\n"
26505 "\n"
26506 msgstr ""
26507
26508 # type: textblock
26509 #. type: textblock
26510 #: ../fish/guestfish-actions.pod:1878
26511 msgid ""
26512 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26513 "get-major-version>."
26514 msgstr ""
26515
26516 # type: =head2
26517 #. type: =head2
26518 #: ../fish/guestfish-actions.pod:1881
26519 msgid "inspect-get-mountpoints"
26520 msgstr ""
26521
26522 # type: verbatim
26523 #. type: verbatim
26524 #: ../fish/guestfish-actions.pod:1883
26525 #, no-wrap
26526 msgid ""
26527 " inspect-get-mountpoints root\n"
26528 "\n"
26529 msgstr ""
26530
26531 # type: textblock
26532 #. type: textblock
26533 #: ../fish/guestfish-actions.pod:1905
26534 msgid ""
26535 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26536 "get-filesystems>."
26537 msgstr ""
26538
26539 # type: =head2
26540 #. type: =head2
26541 #: ../fish/guestfish-actions.pod:1908
26542 msgid "inspect-get-package-format"
26543 msgstr ""
26544
26545 # type: verbatim
26546 #. type: verbatim
26547 #: ../fish/guestfish-actions.pod:1910
26548 #, no-wrap
26549 msgid ""
26550 " inspect-get-package-format root\n"
26551 "\n"
26552 msgstr ""
26553
26554 # type: textblock
26555 #. type: textblock
26556 #: ../fish/guestfish-actions.pod:1915
26557 msgid ""
26558 "This function and L</inspect-get-package-management> return the package "
26559 "format and package management tool used by the inspected operating system.  "
26560 "For example for Fedora these functions would return C<rpm> (package format) "
26561 "and C<yum> (package management)."
26562 msgstr ""
26563
26564 # type: =head2
26565 #. type: =head2
26566 #: ../fish/guestfish-actions.pod:1930
26567 msgid "inspect-get-package-management"
26568 msgstr ""
26569
26570 # type: verbatim
26571 #. type: verbatim
26572 #: ../fish/guestfish-actions.pod:1932
26573 #, no-wrap
26574 msgid ""
26575 " inspect-get-package-management root\n"
26576 "\n"
26577 msgstr ""
26578
26579 # type: textblock
26580 #. type: textblock
26581 #: ../fish/guestfish-actions.pod:1937
26582 msgid ""
26583 "L</inspect-get-package-format> and this function return the package format "
26584 "and package management tool used by the inspected operating system.  For "
26585 "example for Fedora these functions would return C<rpm> (package format) and "
26586 "C<yum> (package management)."
26587 msgstr ""
26588
26589 # type: =head2
26590 #. type: =head2
26591 #: ../fish/guestfish-actions.pod:1954
26592 msgid "inspect-get-product-name"
26593 msgstr ""
26594
26595 # type: verbatim
26596 #. type: verbatim
26597 #: ../fish/guestfish-actions.pod:1956
26598 #, no-wrap
26599 msgid ""
26600 " inspect-get-product-name root\n"
26601 "\n"
26602 msgstr ""
26603
26604 #. type: =head2
26605 #: ../fish/guestfish-actions.pod:1971
26606 msgid "inspect-get-product-variant"
26607 msgstr ""
26608
26609 #. type: verbatim
26610 #: ../fish/guestfish-actions.pod:1973
26611 #, no-wrap
26612 msgid ""
26613 " inspect-get-product-variant root\n"
26614 "\n"
26615 msgstr ""
26616
26617 #. type: textblock
26618 #: ../fish/guestfish-actions.pod:1997
26619 msgid ""
26620 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26621 "get-product-name>, L</inspect-get-major-version>."
26622 msgstr ""
26623
26624 # type: =head2
26625 #. type: =head2
26626 #: ../fish/guestfish-actions.pod:2001
26627 msgid "inspect-get-roots"
26628 msgstr ""
26629
26630 # type: verbatim
26631 #. type: verbatim
26632 #: ../fish/guestfish-actions.pod:2003
26633 #, no-wrap
26634 msgid ""
26635 " inspect-get-roots\n"
26636 "\n"
26637 msgstr ""
26638
26639 # type: textblock
26640 #. type: textblock
26641 #: ../fish/guestfish-actions.pod:2005
26642 msgid ""
26643 "This function is a convenient way to get the list of root devices, as "
26644 "returned from a previous call to L</inspect-os>, but without redoing the "
26645 "whole inspection process."
26646 msgstr ""
26647
26648 # type: textblock
26649 #. type: textblock
26650 #: ../fish/guestfish-actions.pod:2009
26651 msgid ""
26652 "This returns an empty list if either no root devices were found or the "
26653 "caller has not called L</inspect-os>."
26654 msgstr ""
26655
26656 # type: =head2
26657 #. type: =head2
26658 #: ../fish/guestfish-actions.pod:2014
26659 msgid "inspect-get-type"
26660 msgstr ""
26661
26662 # type: verbatim
26663 #. type: verbatim
26664 #: ../fish/guestfish-actions.pod:2016
26665 #, no-wrap
26666 msgid ""
26667 " inspect-get-type root\n"
26668 "\n"
26669 msgstr ""
26670
26671 # type: =head2
26672 #. type: =head2
26673 #: ../fish/guestfish-actions.pod:2049
26674 msgid "inspect-get-windows-systemroot"
26675 msgstr ""
26676
26677 # type: verbatim
26678 #. type: verbatim
26679 #: ../fish/guestfish-actions.pod:2051
26680 #, no-wrap
26681 msgid ""
26682 " inspect-get-windows-systemroot root\n"
26683 "\n"
26684 msgstr ""
26685
26686 #. type: =head2
26687 #: ../fish/guestfish-actions.pod:2065
26688 msgid "inspect-is-live"
26689 msgstr ""
26690
26691 #. type: verbatim
26692 #: ../fish/guestfish-actions.pod:2067
26693 #, no-wrap
26694 msgid ""
26695 " inspect-is-live root\n"
26696 "\n"
26697 msgstr ""
26698
26699 #. type: textblock
26700 #: ../fish/guestfish-actions.pod:2072
26701 msgid ""
26702 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26703 "then this returns true if a live image was detected on the disk."
26704 msgstr ""
26705
26706 #. type: =head2
26707 #: ../fish/guestfish-actions.pod:2078
26708 msgid "inspect-is-multipart"
26709 msgstr ""
26710
26711 #. type: verbatim
26712 #: ../fish/guestfish-actions.pod:2080
26713 #, no-wrap
26714 msgid ""
26715 " inspect-is-multipart root\n"
26716 "\n"
26717 msgstr ""
26718
26719 #. type: textblock
26720 #: ../fish/guestfish-actions.pod:2085
26721 msgid ""
26722 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26723 "then this returns true if the disk is part of a set."
26724 msgstr ""
26725
26726 #. type: =head2
26727 #: ../fish/guestfish-actions.pod:2091
26728 msgid "inspect-is-netinst"
26729 msgstr ""
26730
26731 #. type: verbatim
26732 #: ../fish/guestfish-actions.pod:2093
26733 #, no-wrap
26734 msgid ""
26735 " inspect-is-netinst root\n"
26736 "\n"
26737 msgstr ""
26738
26739 #. type: textblock
26740 #: ../fish/guestfish-actions.pod:2098
26741 msgid ""
26742 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26743 "then this returns true if the disk is a network installer, ie. not a self-"
26744 "contained install CD but one which is likely to require network access to "
26745 "complete the install."
26746 msgstr ""
26747
26748 # type: =head2
26749 #. type: =head2
26750 #: ../fish/guestfish-actions.pod:2106
26751 msgid "inspect-list-applications"
26752 msgstr ""
26753
26754 # type: verbatim
26755 #. type: verbatim
26756 #: ../fish/guestfish-actions.pod:2108
26757 #, no-wrap
26758 msgid ""
26759 " inspect-list-applications root\n"
26760 "\n"
26761 msgstr ""
26762
26763 # type: textblock
26764 #. type: textblock
26765 #: ../fish/guestfish-actions.pod:2115
26766 msgid ""
26767 "I<Note:> This call works differently from other parts of the inspection "
26768 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
26769 "then mount up the disks, before calling this.  Listing applications is a "
26770 "significantly more difficult operation which requires access to the full "
26771 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
26772 "are just returning data cached in the libguestfs handle, this call actually "
26773 "reads parts of the mounted filesystems during the call."
26774 msgstr ""
26775
26776 # type: =head2
26777 #. type: =head2
26778 #: ../fish/guestfish-actions.pod:2205
26779 msgid "inspect-os"
26780 msgstr ""
26781
26782 # type: verbatim
26783 #. type: verbatim
26784 #: ../fish/guestfish-actions.pod:2207
26785 #, no-wrap
26786 msgid ""
26787 " inspect-os\n"
26788 "\n"
26789 msgstr ""
26790
26791 # type: textblock
26792 #. type: textblock
26793 #: ../fish/guestfish-actions.pod:2222
26794 msgid ""
26795 "You can pass the root string(s) returned to other L</inspect-get-*> "
26796 "functions in order to query further information about each operating system, "
26797 "such as the name and version."
26798 msgstr ""
26799
26800 # type: textblock
26801 #. type: textblock
26802 #: ../fish/guestfish-actions.pod:2227
26803 msgid ""
26804 "This function uses other libguestfs features such as L</mount-ro> and L</"
26805 "umount-all> in order to mount and unmount filesystems and look at the "
26806 "contents.  This should be called with no disks currently mounted.  The "
26807 "function may also use Augeas, so any existing Augeas handle will be closed."
26808 msgstr ""
26809
26810 # type: textblock
26811 #. type: textblock
26812 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2415
26813 #: ../fish/guestfish-actions.pod:2461
26814 msgid "See also L</list-filesystems>."
26815 msgstr ""
26816
26817 # type: =head2
26818 #. type: =head2
26819 #: ../fish/guestfish-actions.pod:2241
26820 msgid "is-blockdev"
26821 msgstr ""
26822
26823 # type: verbatim
26824 #. type: verbatim
26825 #: ../fish/guestfish-actions.pod:2243
26826 #, no-wrap
26827 msgid ""
26828 " is-blockdev path\n"
26829 "\n"
26830 msgstr ""
26831
26832 # type: textblock
26833 #. type: textblock
26834 #: ../fish/guestfish-actions.pod:2248 ../fish/guestfish-actions.pod:2266
26835 #: ../fish/guestfish-actions.pod:2285 ../fish/guestfish-actions.pod:2294
26836 #: ../fish/guestfish-actions.pod:2304 ../fish/guestfish-actions.pod:2338
26837 #: ../fish/guestfish-actions.pod:2347
26838 msgid "See also L</stat>."
26839 msgstr ""
26840
26841 # type: =head2
26842 #. type: =head2
26843 #: ../fish/guestfish-actions.pod:2250
26844 msgid "is-busy"
26845 msgstr ""
26846
26847 # type: verbatim
26848 #. type: verbatim
26849 #: ../fish/guestfish-actions.pod:2252
26850 #, no-wrap
26851 msgid ""
26852 " is-busy\n"
26853 "\n"
26854 msgstr ""
26855
26856 # type: =head2
26857 #. type: =head2
26858 #: ../fish/guestfish-actions.pod:2259
26859 msgid "is-chardev"
26860 msgstr ""
26861
26862 # type: verbatim
26863 #. type: verbatim
26864 #: ../fish/guestfish-actions.pod:2261
26865 #, no-wrap
26866 msgid ""
26867 " is-chardev path\n"
26868 "\n"
26869 msgstr ""
26870
26871 # type: =head2
26872 #. type: =head2
26873 #: ../fish/guestfish-actions.pod:2268
26874 msgid "is-config"
26875 msgstr ""
26876
26877 # type: verbatim
26878 #. type: verbatim
26879 #: ../fish/guestfish-actions.pod:2270
26880 #, no-wrap
26881 msgid ""
26882 " is-config\n"
26883 "\n"
26884 msgstr ""
26885
26886 # type: =head2
26887 #. type: =head2
26888 #: ../fish/guestfish-actions.pod:2277
26889 msgid "is-dir"
26890 msgstr ""
26891
26892 # type: verbatim
26893 #. type: verbatim
26894 #: ../fish/guestfish-actions.pod:2279
26895 #, no-wrap
26896 msgid ""
26897 " is-dir path\n"
26898 "\n"
26899 msgstr ""
26900
26901 # type: =head2
26902 #. type: =head2
26903 #: ../fish/guestfish-actions.pod:2287
26904 msgid "is-fifo"
26905 msgstr ""
26906
26907 # type: verbatim
26908 #. type: verbatim
26909 #: ../fish/guestfish-actions.pod:2289
26910 #, no-wrap
26911 msgid ""
26912 " is-fifo path\n"
26913 "\n"
26914 msgstr ""
26915
26916 # type: =head2
26917 #. type: =head2
26918 #: ../fish/guestfish-actions.pod:2296
26919 msgid "is-file"
26920 msgstr ""
26921
26922 # type: verbatim
26923 #. type: verbatim
26924 #: ../fish/guestfish-actions.pod:2298
26925 #, no-wrap
26926 msgid ""
26927 " is-file path\n"
26928 "\n"
26929 msgstr ""
26930
26931 # type: =head2
26932 #. type: =head2
26933 #: ../fish/guestfish-actions.pod:2306
26934 msgid "is-launching"
26935 msgstr ""
26936
26937 # type: verbatim
26938 #. type: verbatim
26939 #: ../fish/guestfish-actions.pod:2308
26940 #, no-wrap
26941 msgid ""
26942 " is-launching\n"
26943 "\n"
26944 msgstr ""
26945
26946 # type: =head2
26947 #. type: =head2
26948 #: ../fish/guestfish-actions.pod:2315
26949 msgid "is-lv"
26950 msgstr ""
26951
26952 # type: verbatim
26953 #. type: verbatim
26954 #: ../fish/guestfish-actions.pod:2317
26955 #, no-wrap
26956 msgid ""
26957 " is-lv device\n"
26958 "\n"
26959 msgstr ""
26960
26961 # type: =head2
26962 #. type: =head2
26963 #: ../fish/guestfish-actions.pod:2322
26964 msgid "is-ready"
26965 msgstr ""
26966
26967 # type: verbatim
26968 #. type: verbatim
26969 #: ../fish/guestfish-actions.pod:2324
26970 #, no-wrap
26971 msgid ""
26972 " is-ready\n"
26973 "\n"
26974 msgstr ""
26975
26976 # type: =head2
26977 #. type: =head2
26978 #: ../fish/guestfish-actions.pod:2331
26979 msgid "is-socket"
26980 msgstr ""
26981
26982 # type: verbatim
26983 #. type: verbatim
26984 #: ../fish/guestfish-actions.pod:2333
26985 #, no-wrap
26986 msgid ""
26987 " is-socket path\n"
26988 "\n"
26989 msgstr ""
26990
26991 # type: =head2
26992 #. type: =head2
26993 #: ../fish/guestfish-actions.pod:2340
26994 msgid "is-symlink"
26995 msgstr ""
26996
26997 # type: verbatim
26998 #. type: verbatim
26999 #: ../fish/guestfish-actions.pod:2342
27000 #, no-wrap
27001 msgid ""
27002 " is-symlink path\n"
27003 "\n"
27004 msgstr ""
27005
27006 # type: =head2
27007 #. type: =head2
27008 #: ../fish/guestfish-actions.pod:2349
27009 msgid "kill-subprocess"
27010 msgstr ""
27011
27012 # type: verbatim
27013 #. type: verbatim
27014 #: ../fish/guestfish-actions.pod:2351
27015 #, no-wrap
27016 msgid ""
27017 " kill-subprocess\n"
27018 "\n"
27019 msgstr ""
27020
27021 # type: =head2
27022 #. type: =head2
27023 #: ../fish/guestfish-actions.pod:2355
27024 msgid "launch"
27025 msgstr ""
27026
27027 # type: =head2
27028 #. type: =head2
27029 #: ../fish/guestfish-actions.pod:2357
27030 msgid "run"
27031 msgstr ""
27032
27033 # type: verbatim
27034 #. type: verbatim
27035 #: ../fish/guestfish-actions.pod:2359
27036 #, no-wrap
27037 msgid ""
27038 " launch\n"
27039 "\n"
27040 msgstr ""
27041
27042 # type: =head2
27043 #. type: =head2
27044 #: ../fish/guestfish-actions.pod:2367
27045 msgid "lchown"
27046 msgstr ""
27047
27048 # type: verbatim
27049 #. type: verbatim
27050 #: ../fish/guestfish-actions.pod:2369
27051 #, no-wrap
27052 msgid ""
27053 " lchown owner group path\n"
27054 "\n"
27055 msgstr ""
27056
27057 # type: textblock
27058 #. type: textblock
27059 #: ../fish/guestfish-actions.pod:2371
27060 msgid ""
27061 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
27062 "chown> but if C<path> is a symlink then the link itself is changed, not the "
27063 "target."
27064 msgstr ""
27065
27066 # type: =head2
27067 #. type: =head2
27068 #: ../fish/guestfish-actions.pod:2379
27069 msgid "lgetxattr"
27070 msgstr ""
27071
27072 # type: verbatim
27073 #. type: verbatim
27074 #: ../fish/guestfish-actions.pod:2381
27075 #, no-wrap
27076 msgid ""
27077 " lgetxattr path name\n"
27078 "\n"
27079 msgstr ""
27080
27081 # type: textblock
27082 #. type: textblock
27083 #: ../fish/guestfish-actions.pod:2397
27084 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27085 msgstr ""
27086
27087 # type: =head2
27088 #. type: =head2
27089 #: ../fish/guestfish-actions.pod:2399
27090 msgid "lgetxattrs"
27091 msgstr ""
27092
27093 # type: verbatim
27094 #. type: verbatim
27095 #: ../fish/guestfish-actions.pod:2401
27096 #, no-wrap
27097 msgid ""
27098 " lgetxattrs path\n"
27099 "\n"
27100 msgstr ""
27101
27102 # type: textblock
27103 #. type: textblock
27104 #: ../fish/guestfish-actions.pod:2403
27105 msgid ""
27106 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27107 "it returns the extended attributes of the link itself."
27108 msgstr ""
27109
27110 # type: =head2
27111 #. type: =head2
27112 #: ../fish/guestfish-actions.pod:2407
27113 msgid "list-devices"
27114 msgstr ""
27115
27116 # type: verbatim
27117 #. type: verbatim
27118 #: ../fish/guestfish-actions.pod:2409
27119 #, no-wrap
27120 msgid ""
27121 " list-devices\n"
27122 "\n"
27123 msgstr ""
27124
27125 # type: =head2
27126 #. type: =head2
27127 #: ../fish/guestfish-actions.pod:2417
27128 msgid "list-filesystems"
27129 msgstr ""
27130
27131 # type: verbatim
27132 #. type: verbatim
27133 #: ../fish/guestfish-actions.pod:2419
27134 #, no-wrap
27135 msgid ""
27136 " list-filesystems\n"
27137 "\n"
27138 msgstr ""
27139
27140 # type: textblock
27141 #. type: textblock
27142 #: ../fish/guestfish-actions.pod:2438
27143 msgid ""
27144 "This command runs other libguestfs commands, which might include L</mount> "
27145 "and L</umount>, and therefore you should use this soon after launch and only "
27146 "when nothing is mounted."
27147 msgstr ""
27148
27149 # type: textblock
27150 #. type: textblock
27151 #: ../fish/guestfish-actions.pod:2442
27152 msgid ""
27153 "Not all of the filesystems returned will be mountable.  In particular, swap "
27154 "partitions are returned in the list.  Also this command does not check that "
27155 "each filesystem found is valid and mountable, and some filesystems might be "
27156 "mountable but require special options.  Filesystems may not all belong to a "
27157 "single logical operating system (use L</inspect-os> to look for OSes)."
27158 msgstr ""
27159
27160 # type: =head2
27161 #. type: =head2
27162 #: ../fish/guestfish-actions.pod:2450
27163 msgid "list-partitions"
27164 msgstr ""
27165
27166 # type: verbatim
27167 #. type: verbatim
27168 #: ../fish/guestfish-actions.pod:2452
27169 #, no-wrap
27170 msgid ""
27171 " list-partitions\n"
27172 "\n"
27173 msgstr ""
27174
27175 # type: textblock
27176 #. type: textblock
27177 #: ../fish/guestfish-actions.pod:2458
27178 msgid ""
27179 "This does not return logical volumes.  For that you will need to call L</"
27180 "lvs>."
27181 msgstr ""
27182
27183 # type: =head2
27184 #. type: =head2
27185 #: ../fish/guestfish-actions.pod:2463
27186 msgid "ll"
27187 msgstr ""
27188
27189 # type: verbatim
27190 #. type: verbatim
27191 #: ../fish/guestfish-actions.pod:2465
27192 #, no-wrap
27193 msgid ""
27194 " ll directory\n"
27195 "\n"
27196 msgstr ""
27197
27198 # type: =head2
27199 #. type: =head2
27200 #: ../fish/guestfish-actions.pod:2473
27201 msgid "ln"
27202 msgstr ""
27203
27204 # type: verbatim
27205 #. type: verbatim
27206 #: ../fish/guestfish-actions.pod:2475
27207 #, no-wrap
27208 msgid ""
27209 " ln target linkname\n"
27210 "\n"
27211 msgstr ""
27212
27213 # type: =head2
27214 #. type: =head2
27215 #: ../fish/guestfish-actions.pod:2479
27216 msgid "ln-f"
27217 msgstr ""
27218
27219 # type: verbatim
27220 #. type: verbatim
27221 #: ../fish/guestfish-actions.pod:2481
27222 #, no-wrap
27223 msgid ""
27224 " ln-f target linkname\n"
27225 "\n"
27226 msgstr ""
27227
27228 # type: =head2
27229 #. type: =head2
27230 #: ../fish/guestfish-actions.pod:2486
27231 msgid "ln-s"
27232 msgstr ""
27233
27234 # type: verbatim
27235 #. type: verbatim
27236 #: ../fish/guestfish-actions.pod:2488
27237 #, no-wrap
27238 msgid ""
27239 " ln-s target linkname\n"
27240 "\n"
27241 msgstr ""
27242
27243 # type: =head2
27244 #. type: =head2
27245 #: ../fish/guestfish-actions.pod:2492
27246 msgid "ln-sf"
27247 msgstr ""
27248
27249 # type: verbatim
27250 #. type: verbatim
27251 #: ../fish/guestfish-actions.pod:2494
27252 #, no-wrap
27253 msgid ""
27254 " ln-sf target linkname\n"
27255 "\n"
27256 msgstr ""
27257
27258 # type: =head2
27259 #. type: =head2
27260 #: ../fish/guestfish-actions.pod:2499
27261 msgid "lremovexattr"
27262 msgstr ""
27263
27264 # type: verbatim
27265 #. type: verbatim
27266 #: ../fish/guestfish-actions.pod:2501
27267 #, no-wrap
27268 msgid ""
27269 " lremovexattr xattr path\n"
27270 "\n"
27271 msgstr ""
27272
27273 # type: textblock
27274 #. type: textblock
27275 #: ../fish/guestfish-actions.pod:2503
27276 msgid ""
27277 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27278 "it removes an extended attribute of the link itself."
27279 msgstr ""
27280
27281 # type: =head2
27282 #. type: =head2
27283 #: ../fish/guestfish-actions.pod:2507
27284 msgid "ls"
27285 msgstr ""
27286
27287 # type: verbatim
27288 #. type: verbatim
27289 #: ../fish/guestfish-actions.pod:2509
27290 #, no-wrap
27291 msgid ""
27292 " ls directory\n"
27293 "\n"
27294 msgstr ""
27295
27296 # type: textblock
27297 #. type: textblock
27298 #: ../fish/guestfish-actions.pod:2515
27299 msgid ""
27300 "This command is mostly useful for interactive sessions.  Programs should "
27301 "probably use L</readdir> instead."
27302 msgstr ""
27303
27304 # type: =head2
27305 #. type: =head2
27306 #: ../fish/guestfish-actions.pod:2518
27307 msgid "lsetxattr"
27308 msgstr ""
27309
27310 # type: verbatim
27311 #. type: verbatim
27312 #: ../fish/guestfish-actions.pod:2520
27313 #, no-wrap
27314 msgid ""
27315 " lsetxattr xattr val vallen path\n"
27316 "\n"
27317 msgstr ""
27318
27319 # type: textblock
27320 #. type: textblock
27321 #: ../fish/guestfish-actions.pod:2522
27322 msgid ""
27323 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
27324 "sets an extended attribute of the link itself."
27325 msgstr ""
27326
27327 # type: =head2
27328 #. type: =head2
27329 #: ../fish/guestfish-actions.pod:2526
27330 msgid "lstat"
27331 msgstr ""
27332
27333 # type: verbatim
27334 #. type: verbatim
27335 #: ../fish/guestfish-actions.pod:2528
27336 #, no-wrap
27337 msgid ""
27338 " lstat path\n"
27339 "\n"
27340 msgstr ""
27341
27342 # type: textblock
27343 #. type: textblock
27344 #: ../fish/guestfish-actions.pod:2532
27345 msgid ""
27346 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
27347 "the link is stat-ed, not the file it refers to."
27348 msgstr ""
27349
27350 # type: =head2
27351 #. type: =head2
27352 #: ../fish/guestfish-actions.pod:2538
27353 msgid "lstatlist"
27354 msgstr ""
27355
27356 # type: verbatim
27357 #. type: verbatim
27358 #: ../fish/guestfish-actions.pod:2540
27359 #, no-wrap
27360 msgid ""
27361 " lstatlist path 'names ...'\n"
27362 "\n"
27363 msgstr ""
27364
27365 # type: textblock
27366 #. type: textblock
27367 #: ../fish/guestfish-actions.pod:2542
27368 msgid ""
27369 "This call allows you to perform the L</lstat> operation on multiple files, "
27370 "where all files are in the directory C<path>.  C<names> is the list of files "
27371 "from this directory."
27372 msgstr ""
27373
27374 # type: textblock
27375 #. type: textblock
27376 #: ../fish/guestfish-actions.pod:2551
27377 msgid ""
27378 "This call is intended for programs that want to efficiently list a directory "
27379 "contents without making many round-trips.  See also L</lxattrlist> for a "
27380 "similarly efficient call for getting extended attributes.  Very long "
27381 "directory listings might cause the protocol message size to be exceeded, "
27382 "causing this call to fail.  The caller must split up such requests into "
27383 "smaller groups of names."
27384 msgstr ""
27385
27386 # type: =head2
27387 #. type: =head2
27388 #: ../fish/guestfish-actions.pod:2559
27389 msgid "luks-add-key"
27390 msgstr ""
27391
27392 # type: verbatim
27393 #. type: verbatim
27394 #: ../fish/guestfish-actions.pod:2561
27395 #, no-wrap
27396 msgid ""
27397 " luks-add-key device keyslot\n"
27398 "\n"
27399 msgstr ""
27400
27401 # type: textblock
27402 #. type: textblock
27403 #: ../fish/guestfish-actions.pod:2568
27404 msgid ""
27405 "Note that if C<keyslot> already contains a key, then this command will "
27406 "fail.  You have to use L</luks-kill-slot> first to remove that key."
27407 msgstr ""
27408
27409 # type: textblock
27410 #. type: textblock
27411 #: ../fish/guestfish-actions.pod:2572 ../fish/guestfish-actions.pod:2594
27412 #: ../fish/guestfish-actions.pod:2607 ../fish/guestfish-actions.pod:2621
27413 #: ../fish/guestfish-actions.pod:2644 ../fish/guestfish-actions.pod:2654
27414 msgid ""
27415 "This command has one or more key or passphrase parameters.  Guestfish will "
27416 "prompt for these separately."
27417 msgstr ""
27418
27419 # type: =head2
27420 #. type: =head2
27421 #: ../fish/guestfish-actions.pod:2575
27422 msgid "luks-close"
27423 msgstr ""
27424
27425 # type: verbatim
27426 #. type: verbatim
27427 #: ../fish/guestfish-actions.pod:2577
27428 #, no-wrap
27429 msgid ""
27430 " luks-close device\n"
27431 "\n"
27432 msgstr ""
27433
27434 # type: textblock
27435 #. type: textblock
27436 #: ../fish/guestfish-actions.pod:2579
27437 msgid ""
27438 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
27439 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
27440 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
27441 "block device."
27442 msgstr ""
27443
27444 # type: =head2
27445 #. type: =head2
27446 #: ../fish/guestfish-actions.pod:2585
27447 msgid "luks-format"
27448 msgstr ""
27449
27450 # type: verbatim
27451 #. type: verbatim
27452 #: ../fish/guestfish-actions.pod:2587
27453 #, no-wrap
27454 msgid ""
27455 " luks-format device keyslot\n"
27456 "\n"
27457 msgstr ""
27458
27459 # type: =head2
27460 #. type: =head2
27461 #: ../fish/guestfish-actions.pod:2600
27462 msgid "luks-format-cipher"
27463 msgstr ""
27464
27465 # type: verbatim
27466 #. type: verbatim
27467 #: ../fish/guestfish-actions.pod:2602
27468 #, no-wrap
27469 msgid ""
27470 " luks-format-cipher device keyslot cipher\n"
27471 "\n"
27472 msgstr ""
27473
27474 # type: textblock
27475 #. type: textblock
27476 #: ../fish/guestfish-actions.pod:2604
27477 msgid ""
27478 "This command is the same as L</luks-format> but it also allows you to set "
27479 "the C<cipher> used."
27480 msgstr ""
27481
27482 # type: =head2
27483 #. type: =head2
27484 #: ../fish/guestfish-actions.pod:2613
27485 msgid "luks-kill-slot"
27486 msgstr ""
27487
27488 # type: verbatim
27489 #. type: verbatim
27490 #: ../fish/guestfish-actions.pod:2615
27491 #, no-wrap
27492 msgid ""
27493 " luks-kill-slot device keyslot\n"
27494 "\n"
27495 msgstr ""
27496
27497 # type: =head2
27498 #. type: =head2
27499 #: ../fish/guestfish-actions.pod:2624
27500 msgid "luks-open"
27501 msgstr ""
27502
27503 # type: verbatim
27504 #. type: verbatim
27505 #: ../fish/guestfish-actions.pod:2626
27506 #, no-wrap
27507 msgid ""
27508 " luks-open device mapname\n"
27509 "\n"
27510 msgstr ""
27511
27512 # type: textblock
27513 #. type: textblock
27514 #: ../fish/guestfish-actions.pod:2640
27515 msgid ""
27516 "If this block device contains LVM volume groups, then calling L</vgscan> "
27517 "followed by L</vg-activate-all> will make them visible."
27518 msgstr ""
27519
27520 # type: =head2
27521 #. type: =head2
27522 #: ../fish/guestfish-actions.pod:2647
27523 msgid "luks-open-ro"
27524 msgstr ""
27525
27526 # type: verbatim
27527 #. type: verbatim
27528 #: ../fish/guestfish-actions.pod:2649
27529 #, no-wrap
27530 msgid ""
27531 " luks-open-ro device mapname\n"
27532 "\n"
27533 msgstr ""
27534
27535 # type: textblock
27536 #. type: textblock
27537 #: ../fish/guestfish-actions.pod:2651
27538 msgid ""
27539 "This is the same as L</luks-open> except that a read-only mapping is created."
27540 msgstr ""
27541
27542 # type: =head2
27543 #. type: =head2
27544 #: ../fish/guestfish-actions.pod:2657
27545 msgid "lvcreate"
27546 msgstr ""
27547
27548 # type: verbatim
27549 #. type: verbatim
27550 #: ../fish/guestfish-actions.pod:2659
27551 #, no-wrap
27552 msgid ""
27553 " lvcreate logvol volgroup mbytes\n"
27554 "\n"
27555 msgstr ""
27556
27557 # type: =head2
27558 #. type: =head2
27559 #: ../fish/guestfish-actions.pod:2664
27560 msgid "lvm-canonical-lv-name"
27561 msgstr ""
27562
27563 # type: verbatim
27564 #. type: verbatim
27565 #: ../fish/guestfish-actions.pod:2666
27566 #, no-wrap
27567 msgid ""
27568 " lvm-canonical-lv-name lvname\n"
27569 "\n"
27570 msgstr ""
27571
27572 # type: textblock
27573 #. type: textblock
27574 #: ../fish/guestfish-actions.pod:2675
27575 msgid "See also L</is-lv>."
27576 msgstr ""
27577
27578 # type: =head2
27579 #. type: =head2
27580 #: ../fish/guestfish-actions.pod:2677
27581 msgid "lvm-clear-filter"
27582 msgstr ""
27583
27584 # type: verbatim
27585 #. type: verbatim
27586 #: ../fish/guestfish-actions.pod:2679
27587 #, no-wrap
27588 msgid ""
27589 " lvm-clear-filter\n"
27590 "\n"
27591 msgstr ""
27592
27593 # type: textblock
27594 #. type: textblock
27595 #: ../fish/guestfish-actions.pod:2681
27596 msgid ""
27597 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
27598 "block device."
27599 msgstr ""
27600
27601 # type: =head2
27602 #. type: =head2
27603 #: ../fish/guestfish-actions.pod:2687
27604 msgid "lvm-remove-all"
27605 msgstr ""
27606
27607 # type: verbatim
27608 #. type: verbatim
27609 #: ../fish/guestfish-actions.pod:2689
27610 #, no-wrap
27611 msgid ""
27612 " lvm-remove-all\n"
27613 "\n"
27614 msgstr ""
27615
27616 # type: =head2
27617 #. type: =head2
27618 #: ../fish/guestfish-actions.pod:2697
27619 msgid "lvm-set-filter"
27620 msgstr ""
27621
27622 # type: verbatim
27623 #. type: verbatim
27624 #: ../fish/guestfish-actions.pod:2699
27625 #, no-wrap
27626 msgid ""
27627 " lvm-set-filter 'devices ...'\n"
27628 "\n"
27629 msgstr ""
27630
27631 # type: =head2
27632 #. type: =head2
27633 #: ../fish/guestfish-actions.pod:2724
27634 msgid "lvremove"
27635 msgstr ""
27636
27637 # type: verbatim
27638 #. type: verbatim
27639 #: ../fish/guestfish-actions.pod:2726
27640 #, no-wrap
27641 msgid ""
27642 " lvremove device\n"
27643 "\n"
27644 msgstr ""
27645
27646 # type: =head2
27647 #. type: =head2
27648 #: ../fish/guestfish-actions.pod:2734
27649 msgid "lvrename"
27650 msgstr ""
27651
27652 # type: verbatim
27653 #. type: verbatim
27654 #: ../fish/guestfish-actions.pod:2736
27655 #, no-wrap
27656 msgid ""
27657 " lvrename logvol newlogvol\n"
27658 "\n"
27659 msgstr ""
27660
27661 # type: =head2
27662 #. type: =head2
27663 #: ../fish/guestfish-actions.pod:2740
27664 msgid "lvresize"
27665 msgstr ""
27666
27667 # type: verbatim
27668 #. type: verbatim
27669 #: ../fish/guestfish-actions.pod:2742
27670 #, no-wrap
27671 msgid ""
27672 " lvresize device mbytes\n"
27673 "\n"
27674 msgstr ""
27675
27676 # type: =head2
27677 #. type: =head2
27678 #: ../fish/guestfish-actions.pod:2748
27679 msgid "lvresize-free"
27680 msgstr ""
27681
27682 # type: verbatim
27683 #. type: verbatim
27684 #: ../fish/guestfish-actions.pod:2750
27685 #, no-wrap
27686 msgid ""
27687 " lvresize-free lv percent\n"
27688 "\n"
27689 msgstr ""
27690
27691 # type: =head2
27692 #. type: =head2
27693 #: ../fish/guestfish-actions.pod:2758
27694 msgid "lvs"
27695 msgstr ""
27696
27697 # type: verbatim
27698 #. type: verbatim
27699 #: ../fish/guestfish-actions.pod:2760
27700 #, no-wrap
27701 msgid ""
27702 " lvs\n"
27703 "\n"
27704 msgstr ""
27705
27706 # type: textblock
27707 #. type: textblock
27708 #: ../fish/guestfish-actions.pod:2768
27709 msgid "See also L</lvs-full>, L</list-filesystems>."
27710 msgstr ""
27711
27712 # type: =head2
27713 #. type: =head2
27714 #: ../fish/guestfish-actions.pod:2770
27715 msgid "lvs-full"
27716 msgstr ""
27717
27718 # type: verbatim
27719 #. type: verbatim
27720 #: ../fish/guestfish-actions.pod:2772
27721 #, no-wrap
27722 msgid ""
27723 " lvs-full\n"
27724 "\n"
27725 msgstr ""
27726
27727 # type: =head2
27728 #. type: =head2
27729 #: ../fish/guestfish-actions.pod:2777
27730 msgid "lvuuid"
27731 msgstr ""
27732
27733 # type: verbatim
27734 #. type: verbatim
27735 #: ../fish/guestfish-actions.pod:2779
27736 #, no-wrap
27737 msgid ""
27738 " lvuuid device\n"
27739 "\n"
27740 msgstr ""
27741
27742 # type: =head2
27743 #. type: =head2
27744 #: ../fish/guestfish-actions.pod:2783
27745 msgid "lxattrlist"
27746 msgstr ""
27747
27748 # type: verbatim
27749 #. type: verbatim
27750 #: ../fish/guestfish-actions.pod:2785
27751 #, no-wrap
27752 msgid ""
27753 " lxattrlist path 'names ...'\n"
27754 "\n"
27755 msgstr ""
27756
27757 # type: textblock
27758 #. type: textblock
27759 #: ../fish/guestfish-actions.pod:2801
27760 msgid ""
27761 "This call is intended for programs that want to efficiently list a directory "
27762 "contents without making many round-trips.  See also L</lstatlist> for a "
27763 "similarly efficient call for getting standard stats.  Very long directory "
27764 "listings might cause the protocol message size to be exceeded, causing this "
27765 "call to fail.  The caller must split up such requests into smaller groups of "
27766 "names."
27767 msgstr ""
27768
27769 # type: =head2
27770 #. type: =head2
27771 #: ../fish/guestfish-actions.pod:2809
27772 msgid "mkdir"
27773 msgstr ""
27774
27775 # type: verbatim
27776 #. type: verbatim
27777 #: ../fish/guestfish-actions.pod:2811
27778 #, no-wrap
27779 msgid ""
27780 " mkdir path\n"
27781 "\n"
27782 msgstr ""
27783
27784 # type: =head2
27785 #. type: =head2
27786 #: ../fish/guestfish-actions.pod:2815
27787 msgid "mkdir-mode"
27788 msgstr ""
27789
27790 # type: verbatim
27791 #. type: verbatim
27792 #: ../fish/guestfish-actions.pod:2817
27793 #, no-wrap
27794 msgid ""
27795 " mkdir-mode path mode\n"
27796 "\n"
27797 msgstr ""
27798
27799 # type: textblock
27800 #. type: textblock
27801 #: ../fish/guestfish-actions.pod:2826
27802 msgid "See also L</mkdir>, L</umask>"
27803 msgstr ""
27804
27805 # type: =head2
27806 #. type: =head2
27807 #: ../fish/guestfish-actions.pod:2828
27808 msgid "mkdir-p"
27809 msgstr ""
27810
27811 # type: verbatim
27812 #. type: verbatim
27813 #: ../fish/guestfish-actions.pod:2830
27814 #, no-wrap
27815 msgid ""
27816 " mkdir-p path\n"
27817 "\n"
27818 msgstr ""
27819
27820 # type: =head2
27821 #. type: =head2
27822 #: ../fish/guestfish-actions.pod:2835
27823 msgid "mkdtemp"
27824 msgstr ""
27825
27826 # type: verbatim
27827 #. type: verbatim
27828 #: ../fish/guestfish-actions.pod:2837
27829 #, no-wrap
27830 msgid ""
27831 " mkdtemp template\n"
27832 "\n"
27833 msgstr ""
27834
27835 # type: =head2
27836 #. type: =head2
27837 #: ../fish/guestfish-actions.pod:2858
27838 msgid "mke2fs-J"
27839 msgstr ""
27840
27841 # type: verbatim
27842 #. type: verbatim
27843 #: ../fish/guestfish-actions.pod:2860
27844 #, no-wrap
27845 msgid ""
27846 " mke2fs-J fstype blocksize device journal\n"
27847 "\n"
27848 msgstr ""
27849
27850 # type: textblock
27851 #. type: textblock
27852 #: ../fish/guestfish-actions.pod:2868
27853 msgid "See also L</mke2journal>."
27854 msgstr ""
27855
27856 # type: =head2
27857 #. type: =head2
27858 #: ../fish/guestfish-actions.pod:2870
27859 msgid "mke2fs-JL"
27860 msgstr ""
27861
27862 # type: verbatim
27863 #. type: verbatim
27864 #: ../fish/guestfish-actions.pod:2872
27865 #, no-wrap
27866 msgid ""
27867 " mke2fs-JL fstype blocksize device label\n"
27868 "\n"
27869 msgstr ""
27870
27871 # type: textblock
27872 #. type: textblock
27873 #: ../fish/guestfish-actions.pod:2877
27874 msgid "See also L</mke2journal-L>."
27875 msgstr ""
27876
27877 # type: =head2
27878 #. type: =head2
27879 #: ../fish/guestfish-actions.pod:2879
27880 msgid "mke2fs-JU"
27881 msgstr ""
27882
27883 # type: verbatim
27884 #. type: verbatim
27885 #: ../fish/guestfish-actions.pod:2881
27886 #, no-wrap
27887 msgid ""
27888 " mke2fs-JU fstype blocksize device uuid\n"
27889 "\n"
27890 msgstr ""
27891
27892 # type: textblock
27893 #. type: textblock
27894 #: ../fish/guestfish-actions.pod:2886
27895 msgid "See also L</mke2journal-U>."
27896 msgstr ""
27897
27898 # type: =head2
27899 #. type: =head2
27900 #: ../fish/guestfish-actions.pod:2888
27901 msgid "mke2journal"
27902 msgstr ""
27903
27904 # type: verbatim
27905 #. type: verbatim
27906 #: ../fish/guestfish-actions.pod:2890
27907 #, no-wrap
27908 msgid ""
27909 " mke2journal blocksize device\n"
27910 "\n"
27911 msgstr ""
27912
27913 # type: =head2
27914 #. type: =head2
27915 #: ../fish/guestfish-actions.pod:2897
27916 msgid "mke2journal-L"
27917 msgstr ""
27918
27919 # type: verbatim
27920 #. type: verbatim
27921 #: ../fish/guestfish-actions.pod:2899
27922 #, no-wrap
27923 msgid ""
27924 " mke2journal-L blocksize label device\n"
27925 "\n"
27926 msgstr ""
27927
27928 # type: =head2
27929 #. type: =head2
27930 #: ../fish/guestfish-actions.pod:2903
27931 msgid "mke2journal-U"
27932 msgstr ""
27933
27934 # type: verbatim
27935 #. type: verbatim
27936 #: ../fish/guestfish-actions.pod:2905
27937 #, no-wrap
27938 msgid ""
27939 " mke2journal-U blocksize uuid device\n"
27940 "\n"
27941 msgstr ""
27942
27943 # type: =head2
27944 #. type: =head2
27945 #: ../fish/guestfish-actions.pod:2909
27946 msgid "mkfifo"
27947 msgstr ""
27948
27949 # type: verbatim
27950 #. type: verbatim
27951 #: ../fish/guestfish-actions.pod:2911
27952 #, no-wrap
27953 msgid ""
27954 " mkfifo mode path\n"
27955 "\n"
27956 msgstr ""
27957
27958 # type: textblock
27959 #. type: textblock
27960 #: ../fish/guestfish-actions.pod:2913
27961 msgid ""
27962 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27963 "is just a convenient wrapper around L</mknod>."
27964 msgstr ""
27965
27966 # type: =head2
27967 #. type: =head2
27968 #: ../fish/guestfish-actions.pod:2919
27969 msgid "mkfs"
27970 msgstr ""
27971
27972 # type: verbatim
27973 #. type: verbatim
27974 #: ../fish/guestfish-actions.pod:2921
27975 #, no-wrap
27976 msgid ""
27977 " mkfs fstype device\n"
27978 "\n"
27979 msgstr ""
27980
27981 # type: =head2
27982 #. type: =head2
27983 #: ../fish/guestfish-actions.pod:2927
27984 msgid "mkfs-b"
27985 msgstr ""
27986
27987 # type: verbatim
27988 #. type: verbatim
27989 #: ../fish/guestfish-actions.pod:2929
27990 #, no-wrap
27991 msgid ""
27992 " mkfs-b fstype blocksize device\n"
27993 "\n"
27994 msgstr ""
27995
27996 # type: textblock
27997 #. type: textblock
27998 #: ../fish/guestfish-actions.pod:2931
27999 msgid ""
28000 "This call is similar to L</mkfs>, but it allows you to control the block "
28001 "size of the resulting filesystem.  Supported block sizes depend on the "
28002 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28003 msgstr ""
28004
28005 # type: =head2
28006 #. type: =head2
28007 #: ../fish/guestfish-actions.pod:2946
28008 msgid "mkfs-opts"
28009 msgstr ""
28010
28011 #. type: verbatim
28012 #: ../fish/guestfish-actions.pod:2948
28013 #, no-wrap
28014 msgid ""
28015 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
28016 "\n"
28017 msgstr ""
28018
28019 # type: =head2
28020 #. type: =head2
28021 #: ../fish/guestfish-actions.pod:2983
28022 msgid "mkmountpoint"
28023 msgstr ""
28024
28025 # type: verbatim
28026 #. type: verbatim
28027 #: ../fish/guestfish-actions.pod:2985
28028 #, no-wrap
28029 msgid ""
28030 " mkmountpoint exemptpath\n"
28031 "\n"
28032 msgstr ""
28033
28034 # type: textblock
28035 #. type: textblock
28036 #: ../fish/guestfish-actions.pod:2987
28037 msgid ""
28038 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
28039 "to create extra mountpoints before mounting the first filesystem."
28040 msgstr ""
28041
28042 # type: textblock
28043 #. type: textblock
28044 #: ../fish/guestfish-actions.pod:3011
28045 msgid ""
28046 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
28047 "unexpected errors if you try to mix these calls.  It is safest to manually "
28048 "unmount filesystems and remove mountpoints after use."
28049 msgstr ""
28050
28051 # type: textblock
28052 #. type: textblock
28053 #: ../fish/guestfish-actions.pod:3015
28054 msgid ""
28055 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
28056 "for this to work for manual mountpoints, you must ensure that the innermost "
28057 "mountpoints have the longest pathnames, as in the example code above."
28058 msgstr ""
28059
28060 #. type: textblock
28061 #: ../fish/guestfish-actions.pod:3022
28062 msgid ""
28063 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
28064 "L</umount-all> to be called when the handle is closed which can also trigger "
28065 "these issues."
28066 msgstr ""
28067
28068 # type: =head2
28069 #. type: =head2
28070 #: ../fish/guestfish-actions.pod:3026
28071 msgid "mknod"
28072 msgstr ""
28073
28074 # type: verbatim
28075 #. type: verbatim
28076 #: ../fish/guestfish-actions.pod:3028
28077 #, no-wrap
28078 msgid ""
28079 " mknod mode devmajor devminor path\n"
28080 "\n"
28081 msgstr ""
28082
28083 # type: textblock
28084 #. type: textblock
28085 #: ../fish/guestfish-actions.pod:3038
28086 msgid ""
28087 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28088 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28089 "regular file).  These constants are available in the standard Linux header "
28090 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28091 "wrappers around this command which bitwise OR in the appropriate constant "
28092 "for you."
28093 msgstr ""
28094
28095 # type: =head2
28096 #. type: =head2
28097 #: ../fish/guestfish-actions.pod:3048
28098 msgid "mknod-b"
28099 msgstr ""
28100
28101 # type: verbatim
28102 #. type: verbatim
28103 #: ../fish/guestfish-actions.pod:3050
28104 #, no-wrap
28105 msgid ""
28106 " mknod-b mode devmajor devminor path\n"
28107 "\n"
28108 msgstr ""
28109
28110 # type: textblock
28111 #. type: textblock
28112 #: ../fish/guestfish-actions.pod:3052
28113 msgid ""
28114 "This call creates a block device node called C<path> with mode C<mode> and "
28115 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28116 "wrapper around L</mknod>."
28117 msgstr ""
28118
28119 # type: =head2
28120 #. type: =head2
28121 #: ../fish/guestfish-actions.pod:3058
28122 msgid "mknod-c"
28123 msgstr ""
28124
28125 # type: verbatim
28126 #. type: verbatim
28127 #: ../fish/guestfish-actions.pod:3060
28128 #, no-wrap
28129 msgid ""
28130 " mknod-c mode devmajor devminor path\n"
28131 "\n"
28132 msgstr ""
28133
28134 # type: textblock
28135 #. type: textblock
28136 #: ../fish/guestfish-actions.pod:3062
28137 msgid ""
28138 "This call creates a char device node called C<path> with mode C<mode> and "
28139 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28140 "wrapper around L</mknod>."
28141 msgstr ""
28142
28143 # type: =head2
28144 #. type: =head2
28145 #: ../fish/guestfish-actions.pod:3068
28146 msgid "mkswap"
28147 msgstr ""
28148
28149 # type: verbatim
28150 #. type: verbatim
28151 #: ../fish/guestfish-actions.pod:3070
28152 #, no-wrap
28153 msgid ""
28154 " mkswap device\n"
28155 "\n"
28156 msgstr ""
28157
28158 # type: =head2
28159 #. type: =head2
28160 #: ../fish/guestfish-actions.pod:3074
28161 msgid "mkswap-L"
28162 msgstr ""
28163
28164 # type: verbatim
28165 #. type: verbatim
28166 #: ../fish/guestfish-actions.pod:3076
28167 #, no-wrap
28168 msgid ""
28169 " mkswap-L label device\n"
28170 "\n"
28171 msgstr ""
28172
28173 # type: =head2
28174 #. type: =head2
28175 #: ../fish/guestfish-actions.pod:3084
28176 msgid "mkswap-U"
28177 msgstr ""
28178
28179 # type: verbatim
28180 #. type: verbatim
28181 #: ../fish/guestfish-actions.pod:3086
28182 #, no-wrap
28183 msgid ""
28184 " mkswap-U uuid device\n"
28185 "\n"
28186 msgstr ""
28187
28188 # type: =head2
28189 #. type: =head2
28190 #: ../fish/guestfish-actions.pod:3090
28191 msgid "mkswap-file"
28192 msgstr ""
28193
28194 # type: verbatim
28195 #. type: verbatim
28196 #: ../fish/guestfish-actions.pod:3092
28197 #, no-wrap
28198 msgid ""
28199 " mkswap-file path\n"
28200 "\n"
28201 msgstr ""
28202
28203 # type: textblock
28204 #. type: textblock
28205 #: ../fish/guestfish-actions.pod:3096
28206 msgid ""
28207 "This command just writes a swap file signature to an existing file.  To "
28208 "create the file itself, use something like L</fallocate>."
28209 msgstr ""
28210
28211 # type: =head2
28212 #. type: =head2
28213 #: ../fish/guestfish-actions.pod:3099
28214 msgid "modprobe"
28215 msgstr ""
28216
28217 # type: verbatim
28218 #. type: verbatim
28219 #: ../fish/guestfish-actions.pod:3101
28220 #, no-wrap
28221 msgid ""
28222 " modprobe modulename\n"
28223 "\n"
28224 msgstr ""
28225
28226 # type: =head2
28227 #. type: =head2
28228 #: ../fish/guestfish-actions.pod:3108
28229 msgid "mount"
28230 msgstr ""
28231
28232 # type: verbatim
28233 #. type: verbatim
28234 #: ../fish/guestfish-actions.pod:3110
28235 #, no-wrap
28236 msgid ""
28237 " mount device mountpoint\n"
28238 "\n"
28239 msgstr ""
28240
28241 # type: textblock
28242 #. type: textblock
28243 #: ../fish/guestfish-actions.pod:3126
28244 msgid ""
28245 "B<Important note:> When you use this call, the filesystem options C<sync> "
28246 "and C<noatime> are set implicitly.  This was originally done because we "
28247 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28248 "very large negative performance impact and negligible effect on "
28249 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28250 "code that needs performance, and instead use L</mount-options> (use an empty "
28251 "string for the first parameter if you don't want any options)."
28252 msgstr ""
28253
28254 # type: =head2
28255 #. type: =head2
28256 #: ../fish/guestfish-actions.pod:3136
28257 msgid "mount-loop"
28258 msgstr ""
28259
28260 # type: verbatim
28261 #. type: verbatim
28262 #: ../fish/guestfish-actions.pod:3138
28263 #, no-wrap
28264 msgid ""
28265 " mount-loop file mountpoint\n"
28266 "\n"
28267 msgstr ""
28268
28269 # type: =head2
28270 #. type: =head2
28271 #: ../fish/guestfish-actions.pod:3144
28272 msgid "mount-options"
28273 msgstr ""
28274
28275 # type: verbatim
28276 #. type: verbatim
28277 #: ../fish/guestfish-actions.pod:3146
28278 #, no-wrap
28279 msgid ""
28280 " mount-options options device mountpoint\n"
28281 "\n"
28282 msgstr ""
28283
28284 # type: textblock
28285 #. type: textblock
28286 #: ../fish/guestfish-actions.pod:3148
28287 msgid ""
28288 "This is the same as the L</mount> command, but it allows you to set the "
28289 "mount options as for the L<mount(8)> I<-o> flag."
28290 msgstr ""
28291
28292 # type: =head2
28293 #. type: =head2
28294 #: ../fish/guestfish-actions.pod:3156
28295 msgid "mount-ro"
28296 msgstr ""
28297
28298 # type: verbatim
28299 #. type: verbatim
28300 #: ../fish/guestfish-actions.pod:3158
28301 #, no-wrap
28302 msgid ""
28303 " mount-ro device mountpoint\n"
28304 "\n"
28305 msgstr ""
28306
28307 # type: textblock
28308 #. type: textblock
28309 #: ../fish/guestfish-actions.pod:3160
28310 msgid ""
28311 "This is the same as the L</mount> command, but it mounts the filesystem with "
28312 "the read-only (I<-o ro>) flag."
28313 msgstr ""
28314
28315 # type: =head2
28316 #. type: =head2
28317 #: ../fish/guestfish-actions.pod:3163
28318 msgid "mount-vfs"
28319 msgstr ""
28320
28321 # type: verbatim
28322 #. type: verbatim
28323 #: ../fish/guestfish-actions.pod:3165
28324 #, no-wrap
28325 msgid ""
28326 " mount-vfs options vfstype device mountpoint\n"
28327 "\n"
28328 msgstr ""
28329
28330 # type: textblock
28331 #. type: textblock
28332 #: ../fish/guestfish-actions.pod:3167
28333 msgid ""
28334 "This is the same as the L</mount> command, but it allows you to set both the "
28335 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
28336 msgstr ""
28337
28338 # type: =head2
28339 #. type: =head2
28340 #: ../fish/guestfish-actions.pod:3171
28341 msgid "mountpoints"
28342 msgstr ""
28343
28344 # type: verbatim
28345 #. type: verbatim
28346 #: ../fish/guestfish-actions.pod:3173
28347 #, no-wrap
28348 msgid ""
28349 " mountpoints\n"
28350 "\n"
28351 msgstr ""
28352
28353 # type: textblock
28354 #. type: textblock
28355 #: ../fish/guestfish-actions.pod:3175
28356 msgid ""
28357 "This call is similar to L</mounts>.  That call returns a list of devices.  "
28358 "This one returns a hash table (map) of device name to directory where the "
28359 "device is mounted."
28360 msgstr ""
28361
28362 # type: =head2
28363 #. type: =head2
28364 #: ../fish/guestfish-actions.pod:3179
28365 msgid "mounts"
28366 msgstr ""
28367
28368 # type: verbatim
28369 #. type: verbatim
28370 #: ../fish/guestfish-actions.pod:3181
28371 #, no-wrap
28372 msgid ""
28373 " mounts\n"
28374 "\n"
28375 msgstr ""
28376
28377 # type: textblock
28378 #. type: textblock
28379 #: ../fish/guestfish-actions.pod:3188
28380 msgid "See also: L</mountpoints>"
28381 msgstr ""
28382
28383 # type: =head2
28384 #. type: =head2
28385 #: ../fish/guestfish-actions.pod:3190
28386 msgid "mv"
28387 msgstr ""
28388
28389 # type: verbatim
28390 #. type: verbatim
28391 #: ../fish/guestfish-actions.pod:3192
28392 #, no-wrap
28393 msgid ""
28394 " mv src dest\n"
28395 "\n"
28396 msgstr ""
28397
28398 # type: =head2
28399 #. type: =head2
28400 #: ../fish/guestfish-actions.pod:3197
28401 msgid "ntfs-3g-probe"
28402 msgstr ""
28403
28404 # type: verbatim
28405 #. type: verbatim
28406 #: ../fish/guestfish-actions.pod:3199
28407 #, no-wrap
28408 msgid ""
28409 " ntfs-3g-probe true|false device\n"
28410 "\n"
28411 msgstr ""
28412
28413 # type: =head2
28414 #. type: =head2
28415 #: ../fish/guestfish-actions.pod:3213
28416 msgid "ntfsresize"
28417 msgstr ""
28418
28419 # type: verbatim
28420 #. type: verbatim
28421 #: ../fish/guestfish-actions.pod:3215
28422 #, no-wrap
28423 msgid ""
28424 " ntfsresize device\n"
28425 "\n"
28426 msgstr ""
28427
28428 # type: =head2
28429 #. type: =head2
28430 #: ../fish/guestfish-actions.pod:3221
28431 msgid "ntfsresize-size"
28432 msgstr ""
28433
28434 # type: verbatim
28435 #. type: verbatim
28436 #: ../fish/guestfish-actions.pod:3223
28437 #, no-wrap
28438 msgid ""
28439 " ntfsresize-size device size\n"
28440 "\n"
28441 msgstr ""
28442
28443 # type: textblock
28444 #. type: textblock
28445 #: ../fish/guestfish-actions.pod:3225
28446 msgid ""
28447 "This command is the same as L</ntfsresize> except that it allows you to "
28448 "specify the new size (in bytes) explicitly."
28449 msgstr ""
28450
28451 # type: =head2
28452 #. type: =head2
28453 #: ../fish/guestfish-actions.pod:3228
28454 msgid "part-add"
28455 msgstr ""
28456
28457 # type: verbatim
28458 #. type: verbatim
28459 #: ../fish/guestfish-actions.pod:3230
28460 #, no-wrap
28461 msgid ""
28462 " part-add device prlogex startsect endsect\n"
28463 "\n"
28464 msgstr ""
28465
28466 # type: textblock
28467 #. type: textblock
28468 #: ../fish/guestfish-actions.pod:3232
28469 msgid ""
28470 "This command adds a partition to C<device>.  If there is no partition table "
28471 "on the device, call L</part-init> first."
28472 msgstr ""
28473
28474 # type: textblock
28475 #. type: textblock
28476 #: ../fish/guestfish-actions.pod:3244
28477 msgid ""
28478 "Creating a partition which covers the whole disk is not so easy.  Use L</"
28479 "part-disk> to do that."
28480 msgstr ""
28481
28482 # type: =head2
28483 #. type: =head2
28484 #: ../fish/guestfish-actions.pod:3247
28485 msgid "part-del"
28486 msgstr ""
28487
28488 # type: verbatim
28489 #. type: verbatim
28490 #: ../fish/guestfish-actions.pod:3249
28491 #, no-wrap
28492 msgid ""
28493 " part-del device partnum\n"
28494 "\n"
28495 msgstr ""
28496
28497 # type: =head2
28498 #. type: =head2
28499 #: ../fish/guestfish-actions.pod:3257
28500 msgid "part-disk"
28501 msgstr ""
28502
28503 # type: verbatim
28504 #. type: verbatim
28505 #: ../fish/guestfish-actions.pod:3259
28506 #, no-wrap
28507 msgid ""
28508 " part-disk device parttype\n"
28509 "\n"
28510 msgstr ""
28511
28512 # type: textblock
28513 #. type: textblock
28514 #: ../fish/guestfish-actions.pod:3261
28515 msgid ""
28516 "This command is simply a combination of L</part-init> followed by L</part-"
28517 "add> to create a single primary partition covering the whole disk."
28518 msgstr ""
28519
28520 # type: textblock
28521 #. type: textblock
28522 #: ../fish/guestfish-actions.pod:3265
28523 msgid ""
28524 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28525 "possible values are described in L</part-init>."
28526 msgstr ""
28527
28528 # type: =head2
28529 #. type: =head2
28530 #: ../fish/guestfish-actions.pod:3271
28531 msgid "part-get-bootable"
28532 msgstr ""
28533
28534 # type: verbatim
28535 #. type: verbatim
28536 #: ../fish/guestfish-actions.pod:3273
28537 #, no-wrap
28538 msgid ""
28539 " part-get-bootable device partnum\n"
28540 "\n"
28541 msgstr ""
28542
28543 # type: textblock
28544 #. type: textblock
28545 #: ../fish/guestfish-actions.pod:3278
28546 msgid "See also L</part-set-bootable>."
28547 msgstr ""
28548
28549 # type: =head2
28550 #. type: =head2
28551 #: ../fish/guestfish-actions.pod:3280
28552 msgid "part-get-mbr-id"
28553 msgstr ""
28554
28555 # type: verbatim
28556 #. type: verbatim
28557 #: ../fish/guestfish-actions.pod:3282
28558 #, no-wrap
28559 msgid ""
28560 " part-get-mbr-id device partnum\n"
28561 "\n"
28562 msgstr ""
28563
28564 # type: textblock
28565 #. type: textblock
28566 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3425
28567 msgid ""
28568 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28569 "undefined results for other partition table types (see L</part-get-"
28570 "parttype>)."
28571 msgstr ""
28572
28573 # type: =head2
28574 #. type: =head2
28575 #: ../fish/guestfish-actions.pod:3291
28576 msgid "part-get-parttype"
28577 msgstr ""
28578
28579 # type: verbatim
28580 #. type: verbatim
28581 #: ../fish/guestfish-actions.pod:3293
28582 #, no-wrap
28583 msgid ""
28584 " part-get-parttype device\n"
28585 "\n"
28586 msgstr ""
28587
28588 # type: textblock
28589 #. type: textblock
28590 #: ../fish/guestfish-actions.pod:3298
28591 msgid ""
28592 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28593 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28594 "possible, although unusual.  See L</part-init> for a full list."
28595 msgstr ""
28596
28597 # type: =head2
28598 #. type: =head2
28599 #: ../fish/guestfish-actions.pod:3303
28600 msgid "part-init"
28601 msgstr ""
28602
28603 # type: verbatim
28604 #. type: verbatim
28605 #: ../fish/guestfish-actions.pod:3305
28606 #, no-wrap
28607 msgid ""
28608 " part-init device parttype\n"
28609 "\n"
28610 msgstr ""
28611
28612 # type: textblock
28613 #. type: textblock
28614 #: ../fish/guestfish-actions.pod:3311
28615 msgid ""
28616 "Initially there are no partitions.  Following this, you should call L</part-"
28617 "add> for each partition required."
28618 msgstr ""
28619
28620 # type: =head2
28621 #. type: =head2
28622 #: ../fish/guestfish-actions.pod:3374
28623 msgid "part-list"
28624 msgstr ""
28625
28626 # type: verbatim
28627 #. type: verbatim
28628 #: ../fish/guestfish-actions.pod:3376
28629 #, no-wrap
28630 msgid ""
28631 " part-list device\n"
28632 "\n"
28633 msgstr ""
28634
28635 # type: textblock
28636 #. type: textblock
28637 #: ../fish/guestfish-actions.pod:3391
28638 msgid ""
28639 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28640 "the device's sector size, see L</blockdev-getss>."
28641 msgstr ""
28642
28643 # type: =head2
28644 #. type: =head2
28645 #: ../fish/guestfish-actions.pod:3404
28646 msgid "part-set-bootable"
28647 msgstr ""
28648
28649 # type: verbatim
28650 #. type: verbatim
28651 #: ../fish/guestfish-actions.pod:3406
28652 #, no-wrap
28653 msgid ""
28654 " part-set-bootable device partnum true|false\n"
28655 "\n"
28656 msgstr ""
28657
28658 # type: =head2
28659 #. type: =head2
28660 #: ../fish/guestfish-actions.pod:3415
28661 msgid "part-set-mbr-id"
28662 msgstr ""
28663
28664 # type: verbatim
28665 #. type: verbatim
28666 #: ../fish/guestfish-actions.pod:3417
28667 #, no-wrap
28668 msgid ""
28669 " part-set-mbr-id device partnum idbyte\n"
28670 "\n"
28671 msgstr ""
28672
28673 # type: =head2
28674 #. type: =head2
28675 #: ../fish/guestfish-actions.pod:3429
28676 msgid "part-set-name"
28677 msgstr ""
28678
28679 # type: verbatim
28680 #. type: verbatim
28681 #: ../fish/guestfish-actions.pod:3431
28682 #, no-wrap
28683 msgid ""
28684 " part-set-name device partnum name\n"
28685 "\n"
28686 msgstr ""
28687
28688 # type: =head2
28689 #. type: =head2
28690 #: ../fish/guestfish-actions.pod:3439
28691 msgid "part-to-dev"
28692 msgstr ""
28693
28694 # type: verbatim
28695 #. type: verbatim
28696 #: ../fish/guestfish-actions.pod:3441
28697 #, no-wrap
28698 msgid ""
28699 " part-to-dev partition\n"
28700 "\n"
28701 msgstr ""
28702
28703 # type: textblock
28704 #. type: textblock
28705 #: ../fish/guestfish-actions.pod:3447
28706 msgid ""
28707 "The named partition must exist, for example as a string returned from L</"
28708 "list-partitions>."
28709 msgstr ""
28710
28711 # type: =head2
28712 #. type: =head2
28713 #: ../fish/guestfish-actions.pod:3450
28714 msgid "ping-daemon"
28715 msgstr ""
28716
28717 # type: verbatim
28718 #. type: verbatim
28719 #: ../fish/guestfish-actions.pod:3452
28720 #, no-wrap
28721 msgid ""
28722 " ping-daemon\n"
28723 "\n"
28724 msgstr ""
28725
28726 # type: =head2
28727 #. type: =head2
28728 #: ../fish/guestfish-actions.pod:3459
28729 msgid "pread"
28730 msgstr ""
28731
28732 # type: verbatim
28733 #. type: verbatim
28734 #: ../fish/guestfish-actions.pod:3461
28735 #, no-wrap
28736 msgid ""
28737 " pread path count offset\n"
28738 "\n"
28739 msgstr ""
28740
28741 # type: textblock
28742 #. type: textblock
28743 #: ../fish/guestfish-actions.pod:3469
28744 msgid "See also L</pwrite>, L</pread-device>."
28745 msgstr ""
28746
28747 # type: =head2
28748 #. type: =head2
28749 #: ../fish/guestfish-actions.pod:3474
28750 msgid "pread-device"
28751 msgstr ""
28752
28753 # type: verbatim
28754 #. type: verbatim
28755 #: ../fish/guestfish-actions.pod:3476
28756 #, no-wrap
28757 msgid ""
28758 " pread-device device count offset\n"
28759 "\n"
28760 msgstr ""
28761
28762 # type: textblock
28763 #. type: textblock
28764 #: ../fish/guestfish-actions.pod:3484
28765 msgid "See also L</pread>."
28766 msgstr ""
28767
28768 # type: =head2
28769 #. type: =head2
28770 #: ../fish/guestfish-actions.pod:3489
28771 msgid "pvcreate"
28772 msgstr ""
28773
28774 # type: verbatim
28775 #. type: verbatim
28776 #: ../fish/guestfish-actions.pod:3491
28777 #, no-wrap
28778 msgid ""
28779 " pvcreate device\n"
28780 "\n"
28781 msgstr ""
28782
28783 # type: =head2
28784 #. type: =head2
28785 #: ../fish/guestfish-actions.pod:3497
28786 msgid "pvremove"
28787 msgstr ""
28788
28789 # type: verbatim
28790 #. type: verbatim
28791 #: ../fish/guestfish-actions.pod:3499
28792 #, no-wrap
28793 msgid ""
28794 " pvremove device\n"
28795 "\n"
28796 msgstr ""
28797
28798 # type: =head2
28799 #. type: =head2
28800 #: ../fish/guestfish-actions.pod:3508
28801 msgid "pvresize"
28802 msgstr ""
28803
28804 # type: verbatim
28805 #. type: verbatim
28806 #: ../fish/guestfish-actions.pod:3510
28807 #, no-wrap
28808 msgid ""
28809 " pvresize device\n"
28810 "\n"
28811 msgstr ""
28812
28813 # type: =head2
28814 #. type: =head2
28815 #: ../fish/guestfish-actions.pod:3515
28816 msgid "pvresize-size"
28817 msgstr ""
28818
28819 # type: verbatim
28820 #. type: verbatim
28821 #: ../fish/guestfish-actions.pod:3517
28822 #, no-wrap
28823 msgid ""
28824 " pvresize-size device size\n"
28825 "\n"
28826 msgstr ""
28827
28828 # type: textblock
28829 #. type: textblock
28830 #: ../fish/guestfish-actions.pod:3519
28831 msgid ""
28832 "This command is the same as L</pvresize> except that it allows you to "
28833 "specify the new size (in bytes) explicitly."
28834 msgstr ""
28835
28836 # type: =head2
28837 #. type: =head2
28838 #: ../fish/guestfish-actions.pod:3522
28839 msgid "pvs"
28840 msgstr ""
28841
28842 # type: verbatim
28843 #. type: verbatim
28844 #: ../fish/guestfish-actions.pod:3524
28845 #, no-wrap
28846 msgid ""
28847 " pvs\n"
28848 "\n"
28849 msgstr ""
28850
28851 # type: textblock
28852 #. type: textblock
28853 #: ../fish/guestfish-actions.pod:3532
28854 msgid "See also L</pvs-full>."
28855 msgstr ""
28856
28857 # type: =head2
28858 #. type: =head2
28859 #: ../fish/guestfish-actions.pod:3534
28860 msgid "pvs-full"
28861 msgstr ""
28862
28863 # type: verbatim
28864 #. type: verbatim
28865 #: ../fish/guestfish-actions.pod:3536
28866 #, no-wrap
28867 msgid ""
28868 " pvs-full\n"
28869 "\n"
28870 msgstr ""
28871
28872 # type: =head2
28873 #. type: =head2
28874 #: ../fish/guestfish-actions.pod:3541
28875 msgid "pvuuid"
28876 msgstr ""
28877
28878 # type: verbatim
28879 #. type: verbatim
28880 #: ../fish/guestfish-actions.pod:3543
28881 #, no-wrap
28882 msgid ""
28883 " pvuuid device\n"
28884 "\n"
28885 msgstr ""
28886
28887 # type: =head2
28888 #. type: =head2
28889 #: ../fish/guestfish-actions.pod:3547
28890 msgid "pwrite"
28891 msgstr ""
28892
28893 # type: verbatim
28894 #. type: verbatim
28895 #: ../fish/guestfish-actions.pod:3549
28896 #, no-wrap
28897 msgid ""
28898 " pwrite path content offset\n"
28899 "\n"
28900 msgstr ""
28901
28902 # type: textblock
28903 #. type: textblock
28904 #: ../fish/guestfish-actions.pod:3560
28905 msgid "See also L</pread>, L</pwrite-device>."
28906 msgstr ""
28907
28908 # type: =head2
28909 #. type: =head2
28910 #: ../fish/guestfish-actions.pod:3565
28911 msgid "pwrite-device"
28912 msgstr ""
28913
28914 # type: verbatim
28915 #. type: verbatim
28916 #: ../fish/guestfish-actions.pod:3567
28917 #, no-wrap
28918 msgid ""
28919 " pwrite-device device content offset\n"
28920 "\n"
28921 msgstr ""
28922
28923 # type: textblock
28924 #. type: textblock
28925 #: ../fish/guestfish-actions.pod:3577
28926 msgid "See also L</pwrite>."
28927 msgstr ""
28928
28929 # type: =head2
28930 #. type: =head2
28931 #: ../fish/guestfish-actions.pod:3582
28932 msgid "read-file"
28933 msgstr ""
28934
28935 # type: verbatim
28936 #. type: verbatim
28937 #: ../fish/guestfish-actions.pod:3584
28938 #, no-wrap
28939 msgid ""
28940 " read-file path\n"
28941 "\n"
28942 msgstr ""
28943
28944 # type: textblock
28945 #. type: textblock
28946 #: ../fish/guestfish-actions.pod:3589
28947 msgid ""
28948 "Unlike L</cat>, this function can correctly handle files that contain "
28949 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28950 "is limited in the total size of file that can be handled."
28951 msgstr ""
28952
28953 # type: =head2
28954 #. type: =head2
28955 #: ../fish/guestfish-actions.pod:3597
28956 msgid "read-lines"
28957 msgstr ""
28958
28959 # type: verbatim
28960 #. type: verbatim
28961 #: ../fish/guestfish-actions.pod:3599
28962 #, no-wrap
28963 msgid ""
28964 " read-lines path\n"
28965 "\n"
28966 msgstr ""
28967
28968 # type: textblock
28969 #. type: textblock
28970 #: ../fish/guestfish-actions.pod:3606
28971 msgid ""
28972 "Note that this function cannot correctly handle binary files (specifically, "
28973 "files containing C<\\0> character which is treated as end of line).  For "
28974 "those you need to use the L</read-file> function which has a more complex "
28975 "interface."
28976 msgstr ""
28977
28978 # type: =head2
28979 #. type: =head2
28980 #: ../fish/guestfish-actions.pod:3611
28981 msgid "readdir"
28982 msgstr ""
28983
28984 # type: verbatim
28985 #. type: verbatim
28986 #: ../fish/guestfish-actions.pod:3613
28987 #, no-wrap
28988 msgid ""
28989 " readdir dir\n"
28990 "\n"
28991 msgstr ""
28992
28993 # type: textblock
28994 #. type: textblock
28995 #: ../fish/guestfish-actions.pod:3665
28996 msgid ""
28997 "This function is primarily intended for use by programs.  To get a simple "
28998 "list of names, use L</ls>.  To get a printable directory for human "
28999 "consumption, use L</ll>."
29000 msgstr ""
29001
29002 # type: =head2
29003 #. type: =head2
29004 #: ../fish/guestfish-actions.pod:3669
29005 msgid "readlink"
29006 msgstr ""
29007
29008 # type: verbatim
29009 #. type: verbatim
29010 #: ../fish/guestfish-actions.pod:3671
29011 #, no-wrap
29012 msgid ""
29013 " readlink path\n"
29014 "\n"
29015 msgstr ""
29016
29017 # type: =head2
29018 #. type: =head2
29019 #: ../fish/guestfish-actions.pod:3675
29020 msgid "readlinklist"
29021 msgstr ""
29022
29023 # type: verbatim
29024 #. type: verbatim
29025 #: ../fish/guestfish-actions.pod:3677
29026 #, no-wrap
29027 msgid ""
29028 " readlinklist path 'names ...'\n"
29029 "\n"
29030 msgstr ""
29031
29032 # type: =head2
29033 #. type: =head2
29034 #: ../fish/guestfish-actions.pod:3701
29035 msgid "realpath"
29036 msgstr ""
29037
29038 # type: verbatim
29039 #. type: verbatim
29040 #: ../fish/guestfish-actions.pod:3703
29041 #, no-wrap
29042 msgid ""
29043 " realpath path\n"
29044 "\n"
29045 msgstr ""
29046
29047 # type: =head2
29048 #. type: =head2
29049 #: ../fish/guestfish-actions.pod:3708
29050 msgid "removexattr"
29051 msgstr ""
29052
29053 # type: verbatim
29054 #. type: verbatim
29055 #: ../fish/guestfish-actions.pod:3710
29056 #, no-wrap
29057 msgid ""
29058 " removexattr xattr path\n"
29059 "\n"
29060 msgstr ""
29061
29062 # type: textblock
29063 #. type: textblock
29064 #: ../fish/guestfish-actions.pod:3715
29065 msgid "See also: L</lremovexattr>, L<attr(5)>."
29066 msgstr ""
29067
29068 # type: =head2
29069 #. type: =head2
29070 #: ../fish/guestfish-actions.pod:3717
29071 msgid "resize2fs"
29072 msgstr ""
29073
29074 # type: verbatim
29075 #. type: verbatim
29076 #: ../fish/guestfish-actions.pod:3719
29077 #, no-wrap
29078 msgid ""
29079 " resize2fs device\n"
29080 "\n"
29081 msgstr ""
29082
29083 # type: textblock
29084 #. type: textblock
29085 #: ../fish/guestfish-actions.pod:3724
29086 msgid ""
29087 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29088 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29089 "gives an error about this and sometimes not.  In any case, it is always safe "
29090 "to call L</e2fsck-f> before calling this function."
29091 msgstr ""
29092
29093 #. type: =head2
29094 #: ../fish/guestfish-actions.pod:3730
29095 msgid "resize2fs-M"
29096 msgstr ""
29097
29098 #. type: verbatim
29099 #: ../fish/guestfish-actions.pod:3732
29100 #, no-wrap
29101 msgid ""
29102 " resize2fs-M device\n"
29103 "\n"
29104 msgstr ""
29105
29106 #. type: textblock
29107 #: ../fish/guestfish-actions.pod:3734
29108 msgid ""
29109 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29110 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
29111 "command."
29112 msgstr ""
29113
29114 #. type: textblock
29115 #: ../fish/guestfish-actions.pod:3738
29116 msgid ""
29117 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29118 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29119 "multiplied together, give the resulting size of the minimal filesystem in "
29120 "bytes."
29121 msgstr ""
29122
29123 # type: =head2
29124 #. type: =head2
29125 #: ../fish/guestfish-actions.pod:3743
29126 msgid "resize2fs-size"
29127 msgstr ""
29128
29129 # type: verbatim
29130 #. type: verbatim
29131 #: ../fish/guestfish-actions.pod:3745
29132 #, no-wrap
29133 msgid ""
29134 " resize2fs-size device size\n"
29135 "\n"
29136 msgstr ""
29137
29138 # type: textblock
29139 #. type: textblock
29140 #: ../fish/guestfish-actions.pod:3747
29141 msgid ""
29142 "This command is the same as L</resize2fs> except that it allows you to "
29143 "specify the new size (in bytes) explicitly."
29144 msgstr ""
29145
29146 # type: =head2
29147 #. type: =head2
29148 #: ../fish/guestfish-actions.pod:3750
29149 msgid "rm"
29150 msgstr ""
29151
29152 # type: verbatim
29153 #. type: verbatim
29154 #: ../fish/guestfish-actions.pod:3752
29155 #, no-wrap
29156 msgid ""
29157 " rm path\n"
29158 "\n"
29159 msgstr ""
29160
29161 # type: =head2
29162 #. type: =head2
29163 #: ../fish/guestfish-actions.pod:3756
29164 msgid "rm-rf"
29165 msgstr ""
29166
29167 # type: verbatim
29168 #. type: verbatim
29169 #: ../fish/guestfish-actions.pod:3758
29170 #, no-wrap
29171 msgid ""
29172 " rm-rf path\n"
29173 "\n"
29174 msgstr ""
29175
29176 # type: =head2
29177 #. type: =head2
29178 #: ../fish/guestfish-actions.pod:3764
29179 msgid "rmdir"
29180 msgstr ""
29181
29182 # type: verbatim
29183 #. type: verbatim
29184 #: ../fish/guestfish-actions.pod:3766
29185 #, no-wrap
29186 msgid ""
29187 " rmdir path\n"
29188 "\n"
29189 msgstr ""
29190
29191 # type: =head2
29192 #. type: =head2
29193 #: ../fish/guestfish-actions.pod:3770
29194 msgid "rmmountpoint"
29195 msgstr ""
29196
29197 # type: verbatim
29198 #. type: verbatim
29199 #: ../fish/guestfish-actions.pod:3772
29200 #, no-wrap
29201 msgid ""
29202 " rmmountpoint exemptpath\n"
29203 "\n"
29204 msgstr ""
29205
29206 # type: textblock
29207 #. type: textblock
29208 #: ../fish/guestfish-actions.pod:3774
29209 msgid ""
29210 "This calls removes a mountpoint that was previously created with L</"
29211 "mkmountpoint>.  See L</mkmountpoint> for full details."
29212 msgstr ""
29213
29214 # type: =head2
29215 #. type: =head2
29216 #: ../fish/guestfish-actions.pod:3778
29217 msgid "scrub-device"
29218 msgstr ""
29219
29220 # type: verbatim
29221 #. type: verbatim
29222 #: ../fish/guestfish-actions.pod:3780
29223 #, no-wrap
29224 msgid ""
29225 " scrub-device device\n"
29226 "\n"
29227 msgstr ""
29228
29229 # type: =head2
29230 #. type: =head2
29231 #: ../fish/guestfish-actions.pod:3791
29232 msgid "scrub-file"
29233 msgstr ""
29234
29235 # type: verbatim
29236 #. type: verbatim
29237 #: ../fish/guestfish-actions.pod:3793
29238 #, no-wrap
29239 msgid ""
29240 " scrub-file file\n"
29241 "\n"
29242 msgstr ""
29243
29244 # type: =head2
29245 #. type: =head2
29246 #: ../fish/guestfish-actions.pod:3803
29247 msgid "scrub-freespace"
29248 msgstr ""
29249
29250 # type: verbatim
29251 #. type: verbatim
29252 #: ../fish/guestfish-actions.pod:3805
29253 #, no-wrap
29254 msgid ""
29255 " scrub-freespace dir\n"
29256 "\n"
29257 msgstr ""
29258
29259 # type: textblock
29260 #. type: textblock
29261 #: ../fish/guestfish-actions.pod:3807
29262 msgid ""
29263 "This command creates the directory C<dir> and then fills it with files until "
29264 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29265 "deletes them.  The intention is to scrub any free space on the partition "
29266 "containing C<dir>."
29267 msgstr ""
29268
29269 # type: =head2
29270 #. type: =head2
29271 #: ../fish/guestfish-actions.pod:3816
29272 msgid "set-append"
29273 msgstr ""
29274
29275 # type: =head2
29276 #. type: =head2
29277 #: ../fish/guestfish-actions.pod:3818
29278 msgid "append"
29279 msgstr ""
29280
29281 # type: verbatim
29282 #. type: verbatim
29283 #: ../fish/guestfish-actions.pod:3820
29284 #, no-wrap
29285 msgid ""
29286 " set-append append\n"
29287 "\n"
29288 msgstr ""
29289
29290 #. type: =head2
29291 #: ../fish/guestfish-actions.pod:3831
29292 msgid "set-attach-method"
29293 msgstr ""
29294
29295 #. type: =head2
29296 #: ../fish/guestfish-actions.pod:3833
29297 msgid "attach-method"
29298 msgstr ""
29299
29300 #. type: verbatim
29301 #: ../fish/guestfish-actions.pod:3835
29302 #, no-wrap
29303 msgid ""
29304 " set-attach-method attachmethod\n"
29305 "\n"
29306 msgstr ""
29307
29308 # type: =head2
29309 #. type: =head2
29310 #: ../fish/guestfish-actions.pod:3857
29311 msgid "set-autosync"
29312 msgstr ""
29313
29314 # type: =head2
29315 #. type: =head2
29316 #: ../fish/guestfish-actions.pod:3859
29317 msgid "autosync"
29318 msgstr ""
29319
29320 # type: verbatim
29321 #. type: verbatim
29322 #: ../fish/guestfish-actions.pod:3861
29323 #, no-wrap
29324 msgid ""
29325 " set-autosync true|false\n"
29326 "\n"
29327 msgstr ""
29328
29329 # type: =head2
29330 #. type: =head2
29331 #: ../fish/guestfish-actions.pod:3871
29332 msgid "set-direct"
29333 msgstr ""
29334
29335 # type: =head2
29336 #. type: =head2
29337 #: ../fish/guestfish-actions.pod:3873
29338 msgid "direct"
29339 msgstr ""
29340
29341 # type: verbatim
29342 #. type: verbatim
29343 #: ../fish/guestfish-actions.pod:3875
29344 #, no-wrap
29345 msgid ""
29346 " set-direct true|false\n"
29347 "\n"
29348 msgstr ""
29349
29350 # type: textblock
29351 #. type: textblock
29352 #: ../fish/guestfish-actions.pod:3881
29353 msgid ""
29354 "One consequence of this is that log messages aren't caught by the library "
29355 "and handled by L</set-log-message-callback>, but go straight to stdout."
29356 msgstr ""
29357
29358 # type: =head2
29359 #. type: =head2
29360 #: ../fish/guestfish-actions.pod:3890
29361 msgid "set-e2label"
29362 msgstr ""
29363
29364 # type: verbatim
29365 #. type: verbatim
29366 #: ../fish/guestfish-actions.pod:3892
29367 #, no-wrap
29368 msgid ""
29369 " set-e2label device label\n"
29370 "\n"
29371 msgstr ""
29372
29373 # type: textblock
29374 #. type: textblock
29375 #: ../fish/guestfish-actions.pod:3898
29376 msgid ""
29377 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
29378 "label on a filesystem."
29379 msgstr ""
29380
29381 # type: =head2
29382 #. type: =head2
29383 #: ../fish/guestfish-actions.pod:3901
29384 msgid "set-e2uuid"
29385 msgstr ""
29386
29387 # type: verbatim
29388 #. type: verbatim
29389 #: ../fish/guestfish-actions.pod:3903
29390 #, no-wrap
29391 msgid ""
29392 " set-e2uuid device uuid\n"
29393 "\n"
29394 msgstr ""
29395
29396 # type: textblock
29397 #. type: textblock
29398 #: ../fish/guestfish-actions.pod:3910
29399 msgid ""
29400 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
29401 "UUID of a filesystem."
29402 msgstr ""
29403
29404 # type: =head2
29405 #. type: =head2
29406 #: ../fish/guestfish-actions.pod:3913
29407 msgid "set-memsize"
29408 msgstr ""
29409
29410 # type: =head2
29411 #. type: =head2
29412 #: ../fish/guestfish-actions.pod:3915
29413 msgid "memsize"
29414 msgstr ""
29415
29416 # type: verbatim
29417 #. type: verbatim
29418 #: ../fish/guestfish-actions.pod:3917
29419 #, no-wrap
29420 msgid ""
29421 " set-memsize memsize\n"
29422 "\n"
29423 msgstr ""
29424
29425 # type: textblock
29426 #. type: textblock
29427 #: ../fish/guestfish-actions.pod:3919
29428 msgid ""
29429 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29430 "This only has any effect if called before L</launch>."
29431 msgstr ""
29432
29433 # type: =head2
29434 #. type: =head2
29435 #: ../fish/guestfish-actions.pod:3930
29436 msgid "set-network"
29437 msgstr ""
29438
29439 # type: =head2
29440 #. type: =head2
29441 #: ../fish/guestfish-actions.pod:3932
29442 msgid "network"
29443 msgstr ""
29444
29445 # type: verbatim
29446 #. type: verbatim
29447 #: ../fish/guestfish-actions.pod:3934
29448 #, no-wrap
29449 msgid ""
29450 " set-network true|false\n"
29451 "\n"
29452 msgstr ""
29453
29454 # type: textblock
29455 #. type: textblock
29456 #: ../fish/guestfish-actions.pod:3942
29457 msgid ""
29458 "You must call this before calling L</launch>, otherwise it has no effect."
29459 msgstr ""
29460
29461 # type: =head2
29462 #. type: =head2
29463 #: ../fish/guestfish-actions.pod:3945
29464 msgid "set-path"
29465 msgstr ""
29466
29467 # type: =head2
29468 #. type: =head2
29469 #: ../fish/guestfish-actions.pod:3947
29470 msgid "path"
29471 msgstr ""
29472
29473 # type: verbatim
29474 #. type: verbatim
29475 #: ../fish/guestfish-actions.pod:3949
29476 #, no-wrap
29477 msgid ""
29478 " set-path searchpath\n"
29479 "\n"
29480 msgstr ""
29481
29482 # type: =head2
29483 #. type: =head2
29484 #: ../fish/guestfish-actions.pod:3958
29485 msgid "set-qemu"
29486 msgstr ""
29487
29488 # type: =head2
29489 #. type: =head2
29490 #: ../fish/guestfish-actions.pod:3960
29491 msgid "qemu"
29492 msgstr ""
29493
29494 # type: verbatim
29495 #. type: verbatim
29496 #: ../fish/guestfish-actions.pod:3962
29497 #, no-wrap
29498 msgid ""
29499 " set-qemu qemu\n"
29500 "\n"
29501 msgstr ""
29502
29503 # type: =head2
29504 #. type: =head2
29505 #: ../fish/guestfish-actions.pod:3982
29506 msgid "set-recovery-proc"
29507 msgstr ""
29508
29509 # type: =head2
29510 #. type: =head2
29511 #: ../fish/guestfish-actions.pod:3984
29512 msgid "recovery-proc"
29513 msgstr ""
29514
29515 # type: verbatim
29516 #. type: verbatim
29517 #: ../fish/guestfish-actions.pod:3986
29518 #, no-wrap
29519 msgid ""
29520 " set-recovery-proc true|false\n"
29521 "\n"
29522 msgstr ""
29523
29524 # type: textblock
29525 #. type: textblock
29526 #: ../fish/guestfish-actions.pod:3988
29527 msgid ""
29528 "If this is called with the parameter C<false> then L</launch> does not "
29529 "create a recovery process.  The purpose of the recovery process is to stop "
29530 "runaway qemu processes in the case where the main program aborts abruptly."
29531 msgstr ""
29532
29533 # type: textblock
29534 #. type: textblock
29535 #: ../fish/guestfish-actions.pod:3993
29536 msgid ""
29537 "This only has any effect if called before L</launch>, and the default is "
29538 "true."
29539 msgstr ""
29540
29541 # type: =head2
29542 #. type: =head2
29543 #: ../fish/guestfish-actions.pod:4002
29544 msgid "set-selinux"
29545 msgstr ""
29546
29547 # type: =head2
29548 #. type: =head2
29549 #: ../fish/guestfish-actions.pod:4004
29550 msgid "selinux"
29551 msgstr ""
29552
29553 # type: verbatim
29554 #. type: verbatim
29555 #: ../fish/guestfish-actions.pod:4006
29556 #, no-wrap
29557 msgid ""
29558 " set-selinux true|false\n"
29559 "\n"
29560 msgstr ""
29561
29562 # type: =head2
29563 #. type: =head2
29564 #: ../fish/guestfish-actions.pod:4017
29565 msgid "set-trace"
29566 msgstr ""
29567
29568 # type: =head2
29569 #. type: =head2
29570 #: ../fish/guestfish-actions.pod:4019
29571 msgid "trace"
29572 msgstr ""
29573
29574 # type: verbatim
29575 #. type: verbatim
29576 #: ../fish/guestfish-actions.pod:4021
29577 #, no-wrap
29578 msgid ""
29579 " set-trace true|false\n"
29580 "\n"
29581 msgstr ""
29582
29583 #. type: textblock
29584 #: ../fish/guestfish-actions.pod:4033
29585 msgid ""
29586 "Trace messages are normally sent to C<stderr>, unless you register a "
29587 "callback to send them somewhere else (see L</set-event-callback>)."
29588 msgstr ""
29589
29590 # type: =head2
29591 #. type: =head2
29592 #: ../fish/guestfish-actions.pod:4037
29593 msgid "set-verbose"
29594 msgstr ""
29595
29596 # type: =head2
29597 #. type: =head2
29598 #: ../fish/guestfish-actions.pod:4039
29599 msgid "verbose"
29600 msgstr ""
29601
29602 # type: verbatim
29603 #. type: verbatim
29604 #: ../fish/guestfish-actions.pod:4041
29605 #, no-wrap
29606 msgid ""
29607 " set-verbose true|false\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../fish/guestfish-actions.pod:4048
29613 msgid ""
29614 "Verbose messages are normally sent to C<stderr>, unless you register a "
29615 "callback to send them somewhere else (see L</set-event-callback>)."
29616 msgstr ""
29617
29618 # type: =head2
29619 #. type: =head2
29620 #: ../fish/guestfish-actions.pod:4052
29621 msgid "setcon"
29622 msgstr ""
29623
29624 # type: verbatim
29625 #. type: verbatim
29626 #: ../fish/guestfish-actions.pod:4054
29627 #, no-wrap
29628 msgid ""
29629 " setcon context\n"
29630 "\n"
29631 msgstr ""
29632
29633 # type: =head2
29634 #. type: =head2
29635 #: ../fish/guestfish-actions.pod:4061
29636 msgid "setxattr"
29637 msgstr ""
29638
29639 # type: verbatim
29640 #. type: verbatim
29641 #: ../fish/guestfish-actions.pod:4063
29642 #, no-wrap
29643 msgid ""
29644 " setxattr xattr val vallen path\n"
29645 "\n"
29646 msgstr ""
29647
29648 # type: textblock
29649 #. type: textblock
29650 #: ../fish/guestfish-actions.pod:4069
29651 msgid "See also: L</lsetxattr>, L<attr(5)>."
29652 msgstr ""
29653
29654 # type: =head2
29655 #. type: =head2
29656 #: ../fish/guestfish-actions.pod:4071
29657 msgid "sfdisk"
29658 msgstr ""
29659
29660 # type: verbatim
29661 #. type: verbatim
29662 #: ../fish/guestfish-actions.pod:4073
29663 #, no-wrap
29664 msgid ""
29665 " sfdisk device cyls heads sectors 'lines ...'\n"
29666 "\n"
29667 msgstr ""
29668
29669 # type: textblock
29670 #. type: textblock
29671 #: ../fish/guestfish-actions.pod:4095
29672 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
29673 msgstr ""
29674
29675 # type: =head2
29676 #. type: =head2
29677 #: ../fish/guestfish-actions.pod:4101
29678 msgid "sfdiskM"
29679 msgstr ""
29680
29681 # type: verbatim
29682 #. type: verbatim
29683 #: ../fish/guestfish-actions.pod:4103
29684 #, no-wrap
29685 msgid ""
29686 " sfdiskM device 'lines ...'\n"
29687 "\n"
29688 msgstr ""
29689
29690 # type: textblock
29691 #. type: textblock
29692 #: ../fish/guestfish-actions.pod:4105
29693 msgid ""
29694 "This is a simplified interface to the L</sfdisk> command, where partition "
29695 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
29696 "you don't need to specify the cyls, heads and sectors parameters which were "
29697 "rarely if ever used anyway."
29698 msgstr ""
29699
29700 # type: textblock
29701 #. type: textblock
29702 #: ../fish/guestfish-actions.pod:4111
29703 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
29704 msgstr ""
29705
29706 # type: =head2
29707 #. type: =head2
29708 #: ../fish/guestfish-actions.pod:4117
29709 msgid "sfdisk-N"
29710 msgstr ""
29711
29712 # type: verbatim
29713 #. type: verbatim
29714 #: ../fish/guestfish-actions.pod:4119
29715 #, no-wrap
29716 msgid ""
29717 " sfdisk-N device partnum cyls heads sectors line\n"
29718 "\n"
29719 msgstr ""
29720
29721 # type: textblock
29722 #. type: textblock
29723 #: ../fish/guestfish-actions.pod:4124
29724 msgid ""
29725 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
29726 "cyls/heads/sectors parameters."
29727 msgstr ""
29728
29729 # type: textblock
29730 #. type: textblock
29731 #: ../fish/guestfish-actions.pod:4127
29732 msgid "See also: L</part-add>"
29733 msgstr ""
29734
29735 # type: =head2
29736 #. type: =head2
29737 #: ../fish/guestfish-actions.pod:4132
29738 msgid "sfdisk-disk-geometry"
29739 msgstr ""
29740
29741 # type: verbatim
29742 #. type: verbatim
29743 #: ../fish/guestfish-actions.pod:4134
29744 #, no-wrap
29745 msgid ""
29746 " sfdisk-disk-geometry device\n"
29747 "\n"
29748 msgstr ""
29749
29750 # type: textblock
29751 #. type: textblock
29752 #: ../fish/guestfish-actions.pod:4136
29753 msgid ""
29754 "This displays the disk geometry of C<device> read from the partition table.  "
29755 "Especially in the case where the underlying block device has been resized, "
29756 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
29757 "kernel-geometry>)."
29758 msgstr ""
29759
29760 # type: =head2
29761 #. type: =head2
29762 #: ../fish/guestfish-actions.pod:4144
29763 msgid "sfdisk-kernel-geometry"
29764 msgstr ""
29765
29766 # type: verbatim
29767 #. type: verbatim
29768 #: ../fish/guestfish-actions.pod:4146
29769 #, no-wrap
29770 msgid ""
29771 " sfdisk-kernel-geometry device\n"
29772 "\n"
29773 msgstr ""
29774
29775 # type: =head2
29776 #. type: =head2
29777 #: ../fish/guestfish-actions.pod:4153
29778 msgid "sfdisk-l"
29779 msgstr ""
29780
29781 # type: verbatim
29782 #. type: verbatim
29783 #: ../fish/guestfish-actions.pod:4155
29784 #, no-wrap
29785 msgid ""
29786 " sfdisk-l device\n"
29787 "\n"
29788 msgstr ""
29789
29790 # type: textblock
29791 #. type: textblock
29792 #: ../fish/guestfish-actions.pod:4161
29793 msgid "See also: L</part-list>"
29794 msgstr ""
29795
29796 # type: =head2
29797 #. type: =head2
29798 #: ../fish/guestfish-actions.pod:4163
29799 msgid "sh"
29800 msgstr ""
29801
29802 # type: verbatim
29803 #. type: verbatim
29804 #: ../fish/guestfish-actions.pod:4165
29805 #, no-wrap
29806 msgid ""
29807 " sh command\n"
29808 "\n"
29809 msgstr ""
29810
29811 # type: textblock
29812 #. type: textblock
29813 #: ../fish/guestfish-actions.pod:4170
29814 msgid "This is like L</command>, but passes the command to:"
29815 msgstr ""
29816
29817 # type: textblock
29818 #. type: textblock
29819 #: ../fish/guestfish-actions.pod:4178
29820 msgid "All the provisos about L</command> apply to this call."
29821 msgstr ""
29822
29823 # type: =head2
29824 #. type: =head2
29825 #: ../fish/guestfish-actions.pod:4180
29826 msgid "sh-lines"
29827 msgstr ""
29828
29829 # type: verbatim
29830 #. type: verbatim
29831 #: ../fish/guestfish-actions.pod:4182
29832 #, no-wrap
29833 msgid ""
29834 " sh-lines command\n"
29835 "\n"
29836 msgstr ""
29837
29838 # type: textblock
29839 #. type: textblock
29840 #: ../fish/guestfish-actions.pod:4184
29841 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29842 msgstr ""
29843
29844 # type: textblock
29845 #. type: textblock
29846 #: ../fish/guestfish-actions.pod:4187
29847 msgid "See also: L</command-lines>"
29848 msgstr ""
29849
29850 # type: =head2
29851 #. type: =head2
29852 #: ../fish/guestfish-actions.pod:4189
29853 msgid "sleep"
29854 msgstr ""
29855
29856 # type: verbatim
29857 #. type: verbatim
29858 #: ../fish/guestfish-actions.pod:4191
29859 #, no-wrap
29860 msgid ""
29861 " sleep secs\n"
29862 "\n"
29863 msgstr ""
29864
29865 # type: =head2
29866 #. type: =head2
29867 #: ../fish/guestfish-actions.pod:4195
29868 msgid "stat"
29869 msgstr ""
29870
29871 # type: verbatim
29872 #. type: verbatim
29873 #: ../fish/guestfish-actions.pod:4197
29874 #, no-wrap
29875 msgid ""
29876 " stat path\n"
29877 "\n"
29878 msgstr ""
29879
29880 # type: =head2
29881 #. type: =head2
29882 #: ../fish/guestfish-actions.pod:4203
29883 msgid "statvfs"
29884 msgstr ""
29885
29886 # type: verbatim
29887 #. type: verbatim
29888 #: ../fish/guestfish-actions.pod:4205
29889 #, no-wrap
29890 msgid ""
29891 " statvfs path\n"
29892 "\n"
29893 msgstr ""
29894
29895 # type: =head2
29896 #. type: =head2
29897 #: ../fish/guestfish-actions.pod:4213
29898 msgid "strings"
29899 msgstr ""
29900
29901 # type: verbatim
29902 #. type: verbatim
29903 #: ../fish/guestfish-actions.pod:4215
29904 #, no-wrap
29905 msgid ""
29906 " strings path\n"
29907 "\n"
29908 msgstr ""
29909
29910 # type: =head2
29911 #. type: =head2
29912 #: ../fish/guestfish-actions.pod:4223
29913 msgid "strings-e"
29914 msgstr ""
29915
29916 # type: verbatim
29917 #. type: verbatim
29918 #: ../fish/guestfish-actions.pod:4225
29919 #, no-wrap
29920 msgid ""
29921 " strings-e encoding path\n"
29922 "\n"
29923 msgstr ""
29924
29925 # type: textblock
29926 #. type: textblock
29927 #: ../fish/guestfish-actions.pod:4227
29928 msgid ""
29929 "This is like the L</strings> command, but allows you to specify the encoding "
29930 "of strings that are looked for in the source file C<path>."
29931 msgstr ""
29932
29933 # type: textblock
29934 #. type: textblock
29935 #: ../fish/guestfish-actions.pod:4237
29936 msgid ""
29937 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29938 "ISO-8859-X (this is what L</strings> uses)."
29939 msgstr ""
29940
29941 # type: =head2
29942 #. type: =head2
29943 #: ../fish/guestfish-actions.pod:4269
29944 msgid "swapoff-device"
29945 msgstr ""
29946
29947 # type: verbatim
29948 #. type: verbatim
29949 #: ../fish/guestfish-actions.pod:4271
29950 #, no-wrap
29951 msgid ""
29952 " swapoff-device device\n"
29953 "\n"
29954 msgstr ""
29955
29956 # type: textblock
29957 #. type: textblock
29958 #: ../fish/guestfish-actions.pod:4273
29959 msgid ""
29960 "This command disables the libguestfs appliance swap device or partition "
29961 "named C<device>.  See L</swapon-device>."
29962 msgstr ""
29963
29964 # type: =head2
29965 #. type: =head2
29966 #: ../fish/guestfish-actions.pod:4277
29967 msgid "swapoff-file"
29968 msgstr ""
29969
29970 # type: verbatim
29971 #. type: verbatim
29972 #: ../fish/guestfish-actions.pod:4279
29973 #, no-wrap
29974 msgid ""
29975 " swapoff-file file\n"
29976 "\n"
29977 msgstr ""
29978
29979 # type: =head2
29980 #. type: =head2
29981 #: ../fish/guestfish-actions.pod:4283
29982 msgid "swapoff-label"
29983 msgstr ""
29984
29985 # type: verbatim
29986 #. type: verbatim
29987 #: ../fish/guestfish-actions.pod:4285
29988 #, no-wrap
29989 msgid ""
29990 " swapoff-label label\n"
29991 "\n"
29992 msgstr ""
29993
29994 # type: =head2
29995 #. type: =head2
29996 #: ../fish/guestfish-actions.pod:4290
29997 msgid "swapoff-uuid"
29998 msgstr ""
29999
30000 # type: verbatim
30001 #. type: verbatim
30002 #: ../fish/guestfish-actions.pod:4292
30003 #, no-wrap
30004 msgid ""
30005 " swapoff-uuid uuid\n"
30006 "\n"
30007 msgstr ""
30008
30009 # type: =head2
30010 #. type: =head2
30011 #: ../fish/guestfish-actions.pod:4297
30012 msgid "swapon-device"
30013 msgstr ""
30014
30015 # type: verbatim
30016 #. type: verbatim
30017 #: ../fish/guestfish-actions.pod:4299
30018 #, no-wrap
30019 msgid ""
30020 " swapon-device device\n"
30021 "\n"
30022 msgstr ""
30023
30024 # type: textblock
30025 #. type: textblock
30026 #: ../fish/guestfish-actions.pod:4301
30027 msgid ""
30028 "This command enables the libguestfs appliance to use the swap device or "
30029 "partition named C<device>.  The increased memory is made available for all "
30030 "commands, for example those run using L</command> or L</sh>."
30031 msgstr ""
30032
30033 # type: =head2
30034 #. type: =head2
30035 #: ../fish/guestfish-actions.pod:4313
30036 msgid "swapon-file"
30037 msgstr ""
30038
30039 # type: verbatim
30040 #. type: verbatim
30041 #: ../fish/guestfish-actions.pod:4315
30042 #, no-wrap
30043 msgid ""
30044 " swapon-file file\n"
30045 "\n"
30046 msgstr ""
30047
30048 # type: textblock
30049 #. type: textblock
30050 #: ../fish/guestfish-actions.pod:4317
30051 msgid ""
30052 "This command enables swap to a file.  See L</swapon-device> for other notes."
30053 msgstr ""
30054
30055 # type: =head2
30056 #. type: =head2
30057 #: ../fish/guestfish-actions.pod:4320
30058 msgid "swapon-label"
30059 msgstr ""
30060
30061 # type: verbatim
30062 #. type: verbatim
30063 #: ../fish/guestfish-actions.pod:4322
30064 #, no-wrap
30065 msgid ""
30066 " swapon-label label\n"
30067 "\n"
30068 msgstr ""
30069
30070 # type: textblock
30071 #. type: textblock
30072 #: ../fish/guestfish-actions.pod:4324
30073 msgid ""
30074 "This command enables swap to a labeled swap partition.  See L</swapon-"
30075 "device> for other notes."
30076 msgstr ""
30077
30078 # type: =head2
30079 #. type: =head2
30080 #: ../fish/guestfish-actions.pod:4327
30081 msgid "swapon-uuid"
30082 msgstr ""
30083
30084 # type: verbatim
30085 #. type: verbatim
30086 #: ../fish/guestfish-actions.pod:4329
30087 #, no-wrap
30088 msgid ""
30089 " swapon-uuid uuid\n"
30090 "\n"
30091 msgstr ""
30092
30093 # type: textblock
30094 #. type: textblock
30095 #: ../fish/guestfish-actions.pod:4331
30096 msgid ""
30097 "This command enables swap to a swap partition with the given UUID.  See L</"
30098 "swapon-device> for other notes."
30099 msgstr ""
30100
30101 # type: =head2
30102 #. type: =head2
30103 #: ../fish/guestfish-actions.pod:4334
30104 msgid "sync"
30105 msgstr ""
30106
30107 # type: verbatim
30108 #. type: verbatim
30109 #: ../fish/guestfish-actions.pod:4336
30110 #, no-wrap
30111 msgid ""
30112 " sync\n"
30113 "\n"
30114 msgstr ""
30115
30116 # type: =head2
30117 #. type: =head2
30118 #: ../fish/guestfish-actions.pod:4344
30119 msgid "tail"
30120 msgstr ""
30121
30122 # type: verbatim
30123 #. type: verbatim
30124 #: ../fish/guestfish-actions.pod:4346
30125 #, no-wrap
30126 msgid ""
30127 " tail path\n"
30128 "\n"
30129 msgstr ""
30130
30131 # type: =head2
30132 #. type: =head2
30133 #: ../fish/guestfish-actions.pod:4354
30134 msgid "tail-n"
30135 msgstr ""
30136
30137 # type: verbatim
30138 #. type: verbatim
30139 #: ../fish/guestfish-actions.pod:4356
30140 #, no-wrap
30141 msgid ""
30142 " tail-n nrlines path\n"
30143 "\n"
30144 msgstr ""
30145
30146 # type: =head2
30147 #. type: =head2
30148 #: ../fish/guestfish-actions.pod:4369
30149 msgid "tar-in"
30150 msgstr ""
30151
30152 # type: verbatim
30153 #. type: verbatim
30154 #: ../fish/guestfish-actions.pod:4371
30155 #, no-wrap
30156 msgid ""
30157 " tar-in (tarfile|-) directory\n"
30158 "\n"
30159 msgstr ""
30160
30161 # type: textblock
30162 #. type: textblock
30163 #: ../fish/guestfish-actions.pod:4376
30164 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30165 msgstr ""
30166
30167 # type: =head2
30168 #. type: =head2
30169 #: ../fish/guestfish-actions.pod:4381
30170 msgid "tar-out"
30171 msgstr ""
30172
30173 # type: verbatim
30174 #. type: verbatim
30175 #: ../fish/guestfish-actions.pod:4383
30176 #, no-wrap
30177 msgid ""
30178 " tar-out directory (tarfile|-)\n"
30179 "\n"
30180 msgstr ""
30181
30182 # type: textblock
30183 #. type: textblock
30184 #: ../fish/guestfish-actions.pod:4388
30185 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30186 msgstr ""
30187
30188 # type: =head2
30189 #. type: =head2
30190 #: ../fish/guestfish-actions.pod:4393
30191 msgid "tgz-in"
30192 msgstr ""
30193
30194 # type: verbatim
30195 #. type: verbatim
30196 #: ../fish/guestfish-actions.pod:4395
30197 #, no-wrap
30198 msgid ""
30199 " tgz-in (tarball|-) directory\n"
30200 "\n"
30201 msgstr ""
30202
30203 # type: textblock
30204 #. type: textblock
30205 #: ../fish/guestfish-actions.pod:4400
30206 msgid "To upload an uncompressed tarball, use L</tar-in>."
30207 msgstr ""
30208
30209 # type: =head2
30210 #. type: =head2
30211 #: ../fish/guestfish-actions.pod:4404
30212 msgid "tgz-out"
30213 msgstr ""
30214
30215 # type: verbatim
30216 #. type: verbatim
30217 #: ../fish/guestfish-actions.pod:4406
30218 #, no-wrap
30219 msgid ""
30220 " tgz-out directory (tarball|-)\n"
30221 "\n"
30222 msgstr ""
30223
30224 # type: textblock
30225 #. type: textblock
30226 #: ../fish/guestfish-actions.pod:4411
30227 msgid "To download an uncompressed tarball, use L</tar-out>."
30228 msgstr ""
30229
30230 # type: =head2
30231 #. type: =head2
30232 #: ../fish/guestfish-actions.pod:4415
30233 msgid "touch"
30234 msgstr ""
30235
30236 # type: verbatim
30237 #. type: verbatim
30238 #: ../fish/guestfish-actions.pod:4417
30239 #, no-wrap
30240 msgid ""
30241 " touch path\n"
30242 "\n"
30243 msgstr ""
30244
30245 # type: =head2
30246 #. type: =head2
30247 #: ../fish/guestfish-actions.pod:4426
30248 msgid "truncate"
30249 msgstr ""
30250
30251 # type: verbatim
30252 #. type: verbatim
30253 #: ../fish/guestfish-actions.pod:4428
30254 #, no-wrap
30255 msgid ""
30256 " truncate path\n"
30257 "\n"
30258 msgstr ""
30259
30260 # type: =head2
30261 #. type: =head2
30262 #: ../fish/guestfish-actions.pod:4433
30263 msgid "truncate-size"
30264 msgstr ""
30265
30266 # type: verbatim
30267 #. type: verbatim
30268 #: ../fish/guestfish-actions.pod:4435
30269 #, no-wrap
30270 msgid ""
30271 " truncate-size path size\n"
30272 "\n"
30273 msgstr ""
30274
30275 # type: textblock
30276 #. type: textblock
30277 #: ../fish/guestfish-actions.pod:4440
30278 msgid ""
30279 "If the current file size is less than C<size> then the file is extended to "
30280 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30281 "blocks are not allocated for the file until you write to it).  To create a "
30282 "non-sparse file of zeroes, use L</fallocate64> instead."
30283 msgstr ""
30284
30285 # type: =head2
30286 #. type: =head2
30287 #: ../fish/guestfish-actions.pod:4446
30288 msgid "tune2fs-l"
30289 msgstr ""
30290
30291 # type: verbatim
30292 #. type: verbatim
30293 #: ../fish/guestfish-actions.pod:4448
30294 #, no-wrap
30295 msgid ""
30296 " tune2fs-l device\n"
30297 "\n"
30298 msgstr ""
30299
30300 # type: =head2
30301 #. type: =head2
30302 #: ../fish/guestfish-actions.pod:4458
30303 msgid "txz-in"
30304 msgstr ""
30305
30306 # type: verbatim
30307 #. type: verbatim
30308 #: ../fish/guestfish-actions.pod:4460
30309 #, no-wrap
30310 msgid ""
30311 " txz-in (tarball|-) directory\n"
30312 "\n"
30313 msgstr ""
30314
30315 # type: =head2
30316 #. type: =head2
30317 #: ../fish/guestfish-actions.pod:4467
30318 msgid "txz-out"
30319 msgstr ""
30320
30321 # type: verbatim
30322 #. type: verbatim
30323 #: ../fish/guestfish-actions.pod:4469
30324 #, no-wrap
30325 msgid ""
30326 " txz-out directory (tarball|-)\n"
30327 "\n"
30328 msgstr ""
30329
30330 # type: =head2
30331 #. type: =head2
30332 #: ../fish/guestfish-actions.pod:4476
30333 msgid "umask"
30334 msgstr ""
30335
30336 # type: verbatim
30337 #. type: verbatim
30338 #: ../fish/guestfish-actions.pod:4478
30339 #, no-wrap
30340 msgid ""
30341 " umask mask\n"
30342 "\n"
30343 msgstr ""
30344
30345 # type: textblock
30346 #. type: textblock
30347 #: ../fish/guestfish-actions.pod:4492
30348 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
30349 msgstr ""
30350
30351 # type: =head2
30352 #. type: =head2
30353 #: ../fish/guestfish-actions.pod:4497
30354 msgid "umount"
30355 msgstr ""
30356
30357 # type: =head2
30358 #. type: =head2
30359 #: ../fish/guestfish-actions.pod:4499
30360 msgid "unmount"
30361 msgstr ""
30362
30363 # type: verbatim
30364 #. type: verbatim
30365 #: ../fish/guestfish-actions.pod:4501
30366 #, no-wrap
30367 msgid ""
30368 " umount pathordevice\n"
30369 "\n"
30370 msgstr ""
30371
30372 # type: =head2
30373 #. type: =head2
30374 #: ../fish/guestfish-actions.pod:4507
30375 msgid "umount-all"
30376 msgstr ""
30377
30378 # type: =head2
30379 #. type: =head2
30380 #: ../fish/guestfish-actions.pod:4509
30381 msgid "unmount-all"
30382 msgstr ""
30383
30384 # type: verbatim
30385 #. type: verbatim
30386 #: ../fish/guestfish-actions.pod:4511
30387 #, no-wrap
30388 msgid ""
30389 " umount-all\n"
30390 "\n"
30391 msgstr ""
30392
30393 # type: =head2
30394 #. type: =head2
30395 #: ../fish/guestfish-actions.pod:4517
30396 msgid "upload"
30397 msgstr ""
30398
30399 # type: verbatim
30400 #. type: verbatim
30401 #: ../fish/guestfish-actions.pod:4519
30402 #, no-wrap
30403 msgid ""
30404 " upload (filename|-) remotefilename\n"
30405 "\n"
30406 msgstr ""
30407
30408 # type: textblock
30409 #. type: textblock
30410 #: ../fish/guestfish-actions.pod:4526
30411 msgid "See also L</download>."
30412 msgstr ""
30413
30414 # type: =head2
30415 #. type: =head2
30416 #: ../fish/guestfish-actions.pod:4530
30417 msgid "upload-offset"
30418 msgstr ""
30419
30420 # type: verbatim
30421 #. type: verbatim
30422 #: ../fish/guestfish-actions.pod:4532
30423 #, no-wrap
30424 msgid ""
30425 " upload-offset (filename|-) remotefilename offset\n"
30426 "\n"
30427 msgstr ""
30428
30429 # type: textblock
30430 #. type: textblock
30431 #: ../fish/guestfish-actions.pod:4544
30432 msgid ""
30433 "Note that there is no limit on the amount of data that can be uploaded with "
30434 "this call, unlike with L</pwrite>, and this call always writes the full "
30435 "amount unless an error occurs."
30436 msgstr ""
30437
30438 # type: textblock
30439 #. type: textblock
30440 #: ../fish/guestfish-actions.pod:4549
30441 msgid "See also L</upload>, L</pwrite>."
30442 msgstr ""
30443
30444 # type: =head2
30445 #. type: =head2
30446 #: ../fish/guestfish-actions.pod:4553
30447 msgid "utimens"
30448 msgstr ""
30449
30450 # type: verbatim
30451 #. type: verbatim
30452 #: ../fish/guestfish-actions.pod:4555
30453 #, no-wrap
30454 msgid ""
30455 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
30456 "\n"
30457 msgstr ""
30458
30459 # type: =head2
30460 #. type: =head2
30461 #: ../fish/guestfish-actions.pod:4574
30462 msgid "version"
30463 msgstr ""
30464
30465 # type: verbatim
30466 #. type: verbatim
30467 #: ../fish/guestfish-actions.pod:4576
30468 #, no-wrap
30469 msgid ""
30470 " version\n"
30471 "\n"
30472 msgstr ""
30473
30474 # type: textblock
30475 #. type: textblock
30476 #: ../fish/guestfish-actions.pod:4603
30477 msgid ""
30478 "I<Note:> Don't use this call to test for availability of features.  In "
30479 "enterprise distributions we backport features from later versions into "
30480 "earlier versions, making this an unreliable way to test for features.  Use "
30481 "L</available> instead."
30482 msgstr ""
30483
30484 # type: =head2
30485 #. type: =head2
30486 #: ../fish/guestfish-actions.pod:4609
30487 msgid "vfs-label"
30488 msgstr ""
30489
30490 # type: verbatim
30491 #. type: verbatim
30492 #: ../fish/guestfish-actions.pod:4611
30493 #, no-wrap
30494 msgid ""
30495 " vfs-label device\n"
30496 "\n"
30497 msgstr ""
30498
30499 # type: textblock
30500 #. type: textblock
30501 #: ../fish/guestfish-actions.pod:4618
30502 msgid "To find a filesystem from the label, use L</findfs-label>."
30503 msgstr ""
30504
30505 # type: =head2
30506 #. type: =head2
30507 #: ../fish/guestfish-actions.pod:4620
30508 msgid "vfs-type"
30509 msgstr ""
30510
30511 # type: verbatim
30512 #. type: verbatim
30513 #: ../fish/guestfish-actions.pod:4622
30514 #, no-wrap
30515 msgid ""
30516 " vfs-type device\n"
30517 "\n"
30518 msgstr ""
30519
30520 # type: =head2
30521 #. type: =head2
30522 #: ../fish/guestfish-actions.pod:4632
30523 msgid "vfs-uuid"
30524 msgstr ""
30525
30526 # type: verbatim
30527 #. type: verbatim
30528 #: ../fish/guestfish-actions.pod:4634
30529 #, no-wrap
30530 msgid ""
30531 " vfs-uuid device\n"
30532 "\n"
30533 msgstr ""
30534
30535 # type: textblock
30536 #. type: textblock
30537 #: ../fish/guestfish-actions.pod:4641
30538 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
30539 msgstr ""
30540
30541 # type: =head2
30542 #. type: =head2
30543 #: ../fish/guestfish-actions.pod:4643
30544 msgid "vg-activate"
30545 msgstr ""
30546
30547 # type: verbatim
30548 #. type: verbatim
30549 #: ../fish/guestfish-actions.pod:4645
30550 #, no-wrap
30551 msgid ""
30552 " vg-activate true|false 'volgroups ...'\n"
30553 "\n"
30554 msgstr ""
30555
30556 # type: =head2
30557 #. type: =head2
30558 #: ../fish/guestfish-actions.pod:4658
30559 msgid "vg-activate-all"
30560 msgstr ""
30561
30562 # type: verbatim
30563 #. type: verbatim
30564 #: ../fish/guestfish-actions.pod:4660
30565 #, no-wrap
30566 msgid ""
30567 " vg-activate-all true|false\n"
30568 "\n"
30569 msgstr ""
30570
30571 # type: =head2
30572 #. type: =head2
30573 #: ../fish/guestfish-actions.pod:4670
30574 msgid "vgcreate"
30575 msgstr ""
30576
30577 # type: verbatim
30578 #. type: verbatim
30579 #: ../fish/guestfish-actions.pod:4672
30580 #, no-wrap
30581 msgid ""
30582 " vgcreate volgroup 'physvols ...'\n"
30583 "\n"
30584 msgstr ""
30585
30586 # type: =head2
30587 #. type: =head2
30588 #: ../fish/guestfish-actions.pod:4677
30589 msgid "vglvuuids"
30590 msgstr ""
30591
30592 # type: verbatim
30593 #. type: verbatim
30594 #: ../fish/guestfish-actions.pod:4679
30595 #, no-wrap
30596 msgid ""
30597 " vglvuuids vgname\n"
30598 "\n"
30599 msgstr ""
30600
30601 # type: textblock
30602 #. type: textblock
30603 #: ../fish/guestfish-actions.pod:4684
30604 msgid ""
30605 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
30606 "logical volumes and volume groups."
30607 msgstr ""
30608
30609 # type: textblock
30610 #. type: textblock
30611 #: ../fish/guestfish-actions.pod:4687
30612 msgid "See also L</vgpvuuids>."
30613 msgstr ""
30614
30615 # type: =head2
30616 #. type: =head2
30617 #: ../fish/guestfish-actions.pod:4689
30618 msgid "vgpvuuids"
30619 msgstr ""
30620
30621 # type: verbatim
30622 #. type: verbatim
30623 #: ../fish/guestfish-actions.pod:4691
30624 #, no-wrap
30625 msgid ""
30626 " vgpvuuids vgname\n"
30627 "\n"
30628 msgstr ""
30629
30630 # type: textblock
30631 #. type: textblock
30632 #: ../fish/guestfish-actions.pod:4696
30633 msgid ""
30634 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
30635 "physical volumes and volume groups."
30636 msgstr ""
30637
30638 # type: textblock
30639 #. type: textblock
30640 #: ../fish/guestfish-actions.pod:4699
30641 msgid "See also L</vglvuuids>."
30642 msgstr ""
30643
30644 # type: =head2
30645 #. type: =head2
30646 #: ../fish/guestfish-actions.pod:4701
30647 msgid "vgremove"
30648 msgstr ""
30649
30650 # type: verbatim
30651 #. type: verbatim
30652 #: ../fish/guestfish-actions.pod:4703
30653 #, no-wrap
30654 msgid ""
30655 " vgremove vgname\n"
30656 "\n"
30657 msgstr ""
30658
30659 # type: =head2
30660 #. type: =head2
30661 #: ../fish/guestfish-actions.pod:4710
30662 msgid "vgrename"
30663 msgstr ""
30664
30665 # type: verbatim
30666 #. type: verbatim
30667 #: ../fish/guestfish-actions.pod:4712
30668 #, no-wrap
30669 msgid ""
30670 " vgrename volgroup newvolgroup\n"
30671 "\n"
30672 msgstr ""
30673
30674 # type: =head2
30675 #. type: =head2
30676 #: ../fish/guestfish-actions.pod:4716
30677 msgid "vgs"
30678 msgstr ""
30679
30680 # type: verbatim
30681 #. type: verbatim
30682 #: ../fish/guestfish-actions.pod:4718
30683 #, no-wrap
30684 msgid ""
30685 " vgs\n"
30686 "\n"
30687 msgstr ""
30688
30689 # type: textblock
30690 #. type: textblock
30691 #: ../fish/guestfish-actions.pod:4726
30692 msgid "See also L</vgs-full>."
30693 msgstr ""
30694
30695 # type: =head2
30696 #. type: =head2
30697 #: ../fish/guestfish-actions.pod:4728
30698 msgid "vgs-full"
30699 msgstr ""
30700
30701 # type: verbatim
30702 #. type: verbatim
30703 #: ../fish/guestfish-actions.pod:4730
30704 #, no-wrap
30705 msgid ""
30706 " vgs-full\n"
30707 "\n"
30708 msgstr ""
30709
30710 # type: =head2
30711 #. type: =head2
30712 #: ../fish/guestfish-actions.pod:4735
30713 msgid "vgscan"
30714 msgstr ""
30715
30716 # type: verbatim
30717 #. type: verbatim
30718 #: ../fish/guestfish-actions.pod:4737
30719 #, no-wrap
30720 msgid ""
30721 " vgscan\n"
30722 "\n"
30723 msgstr ""
30724
30725 # type: =head2
30726 #. type: =head2
30727 #: ../fish/guestfish-actions.pod:4742
30728 msgid "vguuid"
30729 msgstr ""
30730
30731 # type: verbatim
30732 #. type: verbatim
30733 #: ../fish/guestfish-actions.pod:4744
30734 #, no-wrap
30735 msgid ""
30736 " vguuid vgname\n"
30737 "\n"
30738 msgstr ""
30739
30740 # type: =head2
30741 #. type: =head2
30742 #: ../fish/guestfish-actions.pod:4748
30743 msgid "wc-c"
30744 msgstr ""
30745
30746 # type: verbatim
30747 #. type: verbatim
30748 #: ../fish/guestfish-actions.pod:4750
30749 #, no-wrap
30750 msgid ""
30751 " wc-c path\n"
30752 "\n"
30753 msgstr ""
30754
30755 # type: =head2
30756 #. type: =head2
30757 #: ../fish/guestfish-actions.pod:4755
30758 msgid "wc-l"
30759 msgstr ""
30760
30761 # type: verbatim
30762 #. type: verbatim
30763 #: ../fish/guestfish-actions.pod:4757
30764 #, no-wrap
30765 msgid ""
30766 " wc-l path\n"
30767 "\n"
30768 msgstr ""
30769
30770 # type: =head2
30771 #. type: =head2
30772 #: ../fish/guestfish-actions.pod:4762
30773 msgid "wc-w"
30774 msgstr ""
30775
30776 # type: verbatim
30777 #. type: verbatim
30778 #: ../fish/guestfish-actions.pod:4764
30779 #, no-wrap
30780 msgid ""
30781 " wc-w path\n"
30782 "\n"
30783 msgstr ""
30784
30785 # type: =head2
30786 #. type: =head2
30787 #: ../fish/guestfish-actions.pod:4769
30788 msgid "write"
30789 msgstr ""
30790
30791 # type: verbatim
30792 #. type: verbatim
30793 #: ../fish/guestfish-actions.pod:4771
30794 #, no-wrap
30795 msgid ""
30796 " write path content\n"
30797 "\n"
30798 msgstr ""
30799
30800 # type: =head2
30801 #. type: =head2
30802 #: ../fish/guestfish-actions.pod:4779
30803 msgid "write-file"
30804 msgstr ""
30805
30806 # type: verbatim
30807 #. type: verbatim
30808 #: ../fish/guestfish-actions.pod:4781
30809 #, no-wrap
30810 msgid ""
30811 " write-file path content size\n"
30812 "\n"
30813 msgstr ""
30814
30815 # type: =head2
30816 #. type: =head2
30817 #: ../fish/guestfish-actions.pod:4804
30818 msgid "zegrep"
30819 msgstr ""
30820
30821 # type: verbatim
30822 #. type: verbatim
30823 #: ../fish/guestfish-actions.pod:4806
30824 #, no-wrap
30825 msgid ""
30826 " zegrep regex path\n"
30827 "\n"
30828 msgstr ""
30829
30830 # type: =head2
30831 #. type: =head2
30832 #: ../fish/guestfish-actions.pod:4814
30833 msgid "zegrepi"
30834 msgstr ""
30835
30836 # type: verbatim
30837 #. type: verbatim
30838 #: ../fish/guestfish-actions.pod:4816
30839 #, no-wrap
30840 msgid ""
30841 " zegrepi regex path\n"
30842 "\n"
30843 msgstr ""
30844
30845 # type: =head2
30846 #. type: =head2
30847 #: ../fish/guestfish-actions.pod:4824
30848 msgid "zero"
30849 msgstr ""
30850
30851 # type: verbatim
30852 #. type: verbatim
30853 #: ../fish/guestfish-actions.pod:4826
30854 #, no-wrap
30855 msgid ""
30856 " zero device\n"
30857 "\n"
30858 msgstr ""
30859
30860 # type: textblock
30861 #. type: textblock
30862 #: ../fish/guestfish-actions.pod:4834
30863 msgid "See also: L</zero-device>, L</scrub-device>."
30864 msgstr ""
30865
30866 # type: =head2
30867 #. type: =head2
30868 #: ../fish/guestfish-actions.pod:4836
30869 msgid "zero-device"
30870 msgstr ""
30871
30872 # type: verbatim
30873 #. type: verbatim
30874 #: ../fish/guestfish-actions.pod:4838
30875 #, no-wrap
30876 msgid ""
30877 " zero-device device\n"
30878 "\n"
30879 msgstr ""
30880
30881 # type: textblock
30882 #. type: textblock
30883 #: ../fish/guestfish-actions.pod:4840
30884 msgid ""
30885 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
30886 "which just zeroes the first few blocks of a device."
30887 msgstr ""
30888
30889 # type: =head2
30890 #. type: =head2
30891 #: ../fish/guestfish-actions.pod:4847
30892 msgid "zerofree"
30893 msgstr ""
30894
30895 # type: verbatim
30896 #. type: verbatim
30897 #: ../fish/guestfish-actions.pod:4849
30898 #, no-wrap
30899 msgid ""
30900 " zerofree device\n"
30901 "\n"
30902 msgstr ""
30903
30904 # type: =head2
30905 #. type: =head2
30906 #: ../fish/guestfish-actions.pod:4862
30907 msgid "zfgrep"
30908 msgstr ""
30909
30910 # type: verbatim
30911 #. type: verbatim
30912 #: ../fish/guestfish-actions.pod:4864
30913 #, no-wrap
30914 msgid ""
30915 " zfgrep pattern path\n"
30916 "\n"
30917 msgstr ""
30918
30919 # type: =head2
30920 #. type: =head2
30921 #: ../fish/guestfish-actions.pod:4872
30922 msgid "zfgrepi"
30923 msgstr ""
30924
30925 # type: verbatim
30926 #. type: verbatim
30927 #: ../fish/guestfish-actions.pod:4874
30928 #, no-wrap
30929 msgid ""
30930 " zfgrepi pattern path\n"
30931 "\n"
30932 msgstr ""
30933
30934 # type: =head2
30935 #. type: =head2
30936 #: ../fish/guestfish-actions.pod:4882
30937 msgid "zfile"
30938 msgstr ""
30939
30940 # type: verbatim
30941 #. type: verbatim
30942 #: ../fish/guestfish-actions.pod:4884
30943 #, no-wrap
30944 msgid ""
30945 " zfile meth path\n"
30946 "\n"
30947 msgstr ""
30948
30949 # type: textblock
30950 #. type: textblock
30951 #: ../fish/guestfish-actions.pod:4891
30952 msgid ""
30953 "Since 1.0.63, use L</file> instead which can now process compressed files."
30954 msgstr ""
30955
30956 # type: =head2
30957 #. type: =head2
30958 #: ../fish/guestfish-actions.pod:4901
30959 msgid "zgrep"
30960 msgstr ""
30961
30962 # type: verbatim
30963 #. type: verbatim
30964 #: ../fish/guestfish-actions.pod:4903
30965 #, no-wrap
30966 msgid ""
30967 " zgrep regex path\n"
30968 "\n"
30969 msgstr ""
30970
30971 # type: =head2
30972 #. type: =head2
30973 #: ../fish/guestfish-actions.pod:4911
30974 msgid "zgrepi"
30975 msgstr ""
30976
30977 # type: verbatim
30978 #. type: verbatim
30979 #: ../fish/guestfish-actions.pod:4913
30980 #, no-wrap
30981 msgid ""
30982 " zgrepi regex path\n"
30983 "\n"
30984 msgstr ""
30985
30986 # type: =head2
30987 #. type: =head2
30988 #: ../fish/guestfish-commands.pod:1
30989 msgid "alloc"
30990 msgstr ""
30991
30992 # type: =head2
30993 #. type: =head2
30994 #: ../fish/guestfish-commands.pod:3
30995 msgid "allocate"
30996 msgstr ""
30997
30998 # type: verbatim
30999 #. type: verbatim
31000 #: ../fish/guestfish-commands.pod:5
31001 #, no-wrap
31002 msgid ""
31003 " alloc filename size\n"
31004 "\n"
31005 msgstr ""
31006
31007 # type: textblock
31008 #. type: textblock
31009 #: ../fish/guestfish-commands.pod:7
31010 msgid ""
31011 "This creates an empty (zeroed) file of the given size, and then adds so it "
31012 "can be further examined."
31013 msgstr ""
31014
31015 # type: textblock
31016 #. type: textblock
31017 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
31018 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
31019 msgstr ""
31020
31021 # type: textblock
31022 #. type: textblock
31023 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
31024 msgid "Size can be specified using standard suffixes, eg. C<1M>."
31025 msgstr ""
31026
31027 # type: textblock
31028 #. type: textblock
31029 #: ../fish/guestfish-commands.pod:14
31030 msgid ""
31031 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
31032 "image, see L</PREPARED DISK IMAGES>."
31033 msgstr ""
31034
31035 # type: =head2
31036 #. type: =head2
31037 #: ../fish/guestfish-commands.pod:17
31038 msgid "copy-in"
31039 msgstr ""
31040
31041 # type: verbatim
31042 #. type: verbatim
31043 #: ../fish/guestfish-commands.pod:19
31044 #, no-wrap
31045 msgid ""
31046 " copy-in local [local ...] /remotedir\n"
31047 "\n"
31048 msgstr ""
31049
31050 # type: textblock
31051 #. type: textblock
31052 #: ../fish/guestfish-commands.pod:21
31053 msgid ""
31054 "C<copy-in> copies local files or directories recursively into the disk "
31055 "image, placing them in the directory called C</remotedir> (which must "
31056 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
31057 "other commands as necessary."
31058 msgstr ""
31059
31060 # type: textblock
31061 #. type: textblock
31062 #: ../fish/guestfish-commands.pod:26
31063 msgid ""
31064 "Multiple local files and directories can be specified, but the last "
31065 "parameter must always be a remote directory.  Wildcards cannot be used."
31066 msgstr ""
31067
31068 # type: =head2
31069 #. type: =head2
31070 #: ../fish/guestfish-commands.pod:30
31071 msgid "copy-out"
31072 msgstr ""
31073
31074 # type: verbatim
31075 #. type: verbatim
31076 #: ../fish/guestfish-commands.pod:32
31077 #, no-wrap
31078 msgid ""
31079 " copy-out remote [remote ...] localdir\n"
31080 "\n"
31081 msgstr ""
31082
31083 # type: textblock
31084 #. type: textblock
31085 #: ../fish/guestfish-commands.pod:34
31086 msgid ""
31087 "C<copy-out> copies remote files or directories recursively out of the disk "
31088 "image, placing them on the host disk in a local directory called C<localdir> "
31089 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31090 "download>, L</tar-out> and other commands as necessary."
31091 msgstr ""
31092
31093 # type: textblock
31094 #. type: textblock
31095 #: ../fish/guestfish-commands.pod:40
31096 msgid ""
31097 "Multiple remote files and directories can be specified, but the last "
31098 "parameter must always be a local directory.  To download to the current "
31099 "directory, use C<.> as in:"
31100 msgstr ""
31101
31102 # type: verbatim
31103 #. type: verbatim
31104 #: ../fish/guestfish-commands.pod:44
31105 #, no-wrap
31106 msgid ""
31107 " copy-out /home .\n"
31108 "\n"
31109 msgstr ""
31110
31111 # type: textblock
31112 #. type: textblock
31113 #: ../fish/guestfish-commands.pod:46
31114 msgid ""
31115 "Wildcards cannot be used in the ordinary command, but you can use them with "
31116 "the help of L</glob> like this:"
31117 msgstr ""
31118
31119 # type: verbatim
31120 #. type: verbatim
31121 #: ../fish/guestfish-commands.pod:49
31122 #, no-wrap
31123 msgid ""
31124 " glob copy-out /home/* .\n"
31125 "\n"
31126 msgstr ""
31127
31128 # type: =head2
31129 #. type: =head2
31130 #: ../fish/guestfish-commands.pod:51
31131 msgid "echo"
31132 msgstr ""
31133
31134 # type: verbatim
31135 #. type: verbatim
31136 #: ../fish/guestfish-commands.pod:53
31137 #, no-wrap
31138 msgid ""
31139 " echo [params ...]\n"
31140 "\n"
31141 msgstr ""
31142
31143 # type: textblock
31144 #. type: textblock
31145 #: ../fish/guestfish-commands.pod:55
31146 msgid "This echos the parameters to the terminal."
31147 msgstr ""
31148
31149 # type: =head2
31150 #. type: =head2
31151 #: ../fish/guestfish-commands.pod:57
31152 msgid "edit"
31153 msgstr ""
31154
31155 # type: =head2
31156 #. type: =head2
31157 #: ../fish/guestfish-commands.pod:59
31158 msgid "vi"
31159 msgstr ""
31160
31161 # type: =head2
31162 #. type: =head2
31163 #: ../fish/guestfish-commands.pod:61
31164 msgid "emacs"
31165 msgstr ""
31166
31167 # type: verbatim
31168 #. type: verbatim
31169 #: ../fish/guestfish-commands.pod:63
31170 #, no-wrap
31171 msgid ""
31172 " edit filename\n"
31173 "\n"
31174 msgstr ""
31175
31176 # type: textblock
31177 #. type: textblock
31178 #: ../fish/guestfish-commands.pod:65
31179 msgid ""
31180 "This is used to edit a file.  It downloads the file, edits it locally using "
31181 "your editor, then uploads the result."
31182 msgstr ""
31183
31184 # type: textblock
31185 #. type: textblock
31186 #: ../fish/guestfish-commands.pod:68
31187 msgid ""
31188 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31189 "or C<emacs> you will get those corresponding editors."
31190 msgstr ""
31191
31192 # type: =head2
31193 #. type: =head2
31194 #: ../fish/guestfish-commands.pod:72
31195 msgid "glob"
31196 msgstr ""
31197
31198 # type: verbatim
31199 #. type: verbatim
31200 #: ../fish/guestfish-commands.pod:74
31201 #, no-wrap
31202 msgid ""
31203 " glob command args...\n"
31204 "\n"
31205 msgstr ""
31206
31207 # type: textblock
31208 #. type: textblock
31209 #: ../fish/guestfish-commands.pod:76
31210 msgid ""
31211 "Expand wildcards in any paths in the args list, and run C<command> "
31212 "repeatedly on each matching path."
31213 msgstr ""
31214
31215 # type: textblock
31216 #. type: textblock
31217 #: ../fish/guestfish-commands.pod:79
31218 msgid "See L</WILDCARDS AND GLOBBING>."
31219 msgstr ""
31220
31221 # type: =head2
31222 #. type: =head2
31223 #: ../fish/guestfish-commands.pod:81
31224 msgid "hexedit"
31225 msgstr ""
31226
31227 # type: verbatim
31228 #. type: verbatim
31229 #: ../fish/guestfish-commands.pod:83
31230 #, no-wrap
31231 msgid ""
31232 " hexedit <filename|device>\n"
31233 " hexedit <filename|device> <max>\n"
31234 " hexedit <filename|device> <start> <max>\n"
31235 "\n"
31236 msgstr ""
31237
31238 # type: textblock
31239 #. type: textblock
31240 #: ../fish/guestfish-commands.pod:87
31241 msgid ""
31242 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
31243 "device."
31244 msgstr ""
31245
31246 # type: textblock
31247 #. type: textblock
31248 #: ../fish/guestfish-commands.pod:90
31249 msgid ""
31250 "This command works by downloading potentially the whole file or device, "
31251 "editing it locally, then uploading it.  If the file or device is large, you "
31252 "have to specify which part you wish to edit by using C<max> and/or C<start> "
31253 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
31254 "usual modifiers allowed such as C<1M> (1 megabyte)."
31255 msgstr ""
31256
31257 # type: textblock
31258 #. type: textblock
31259 #: ../fish/guestfish-commands.pod:97
31260 msgid "For example to edit the first few sectors of a disk you might do:"
31261 msgstr ""
31262
31263 # type: verbatim
31264 #. type: verbatim
31265 #: ../fish/guestfish-commands.pod:100
31266 #, no-wrap
31267 msgid ""
31268 " hexedit /dev/sda 1M\n"
31269 "\n"
31270 msgstr ""
31271
31272 # type: textblock
31273 #. type: textblock
31274 #: ../fish/guestfish-commands.pod:102
31275 msgid ""
31276 "which would allow you to edit anywhere within the first megabyte of the disk."
31277 msgstr ""
31278
31279 # type: textblock
31280 #. type: textblock
31281 #: ../fish/guestfish-commands.pod:105
31282 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
31283 msgstr ""
31284
31285 # type: verbatim
31286 #. type: verbatim
31287 #: ../fish/guestfish-commands.pod:107
31288 #, no-wrap
31289 msgid ""
31290 " hexedit /dev/sda1 0x400 0x400\n"
31291 "\n"
31292 msgstr ""
31293
31294 # type: textblock
31295 #. type: textblock
31296 #: ../fish/guestfish-commands.pod:109
31297 msgid "(assuming the superblock is in the standard location)."
31298 msgstr ""
31299
31300 # type: textblock
31301 #. type: textblock
31302 #: ../fish/guestfish-commands.pod:111
31303 msgid ""
31304 "This command requires the external L<hexedit(1)> program.  You can specify "
31305 "another program to use by setting the C<HEXEDITOR> environment variable."
31306 msgstr ""
31307
31308 # type: textblock
31309 #. type: textblock
31310 #: ../fish/guestfish-commands.pod:115
31311 msgid "See also L</hexdump>."
31312 msgstr ""
31313
31314 # type: =head2
31315 #. type: =head2
31316 #: ../fish/guestfish-commands.pod:117
31317 msgid "lcd"
31318 msgstr ""
31319
31320 # type: verbatim
31321 #. type: verbatim
31322 #: ../fish/guestfish-commands.pod:119
31323 #, no-wrap
31324 msgid ""
31325 " lcd directory\n"
31326 "\n"
31327 msgstr ""
31328
31329 # type: textblock
31330 #. type: textblock
31331 #: ../fish/guestfish-commands.pod:121
31332 msgid ""
31333 "Change the local directory, ie. the current directory of guestfish itself."
31334 msgstr ""
31335
31336 # type: textblock
31337 #. type: textblock
31338 #: ../fish/guestfish-commands.pod:124
31339 msgid "Note that C<!cd> won't do what you might expect."
31340 msgstr ""
31341
31342 # type: =head2
31343 #. type: =head2
31344 #: ../fish/guestfish-commands.pod:126
31345 msgid "man"
31346 msgstr ""
31347
31348 # type: =head2
31349 #. type: =head2
31350 #: ../fish/guestfish-commands.pod:128
31351 msgid "manual"
31352 msgstr ""
31353
31354 # type: verbatim
31355 #. type: verbatim
31356 #: ../fish/guestfish-commands.pod:130
31357 #, no-wrap
31358 msgid ""
31359 "  man\n"
31360 "\n"
31361 msgstr ""
31362
31363 # type: textblock
31364 #. type: textblock
31365 #: ../fish/guestfish-commands.pod:132
31366 msgid "Opens the manual page for guestfish."
31367 msgstr ""
31368
31369 # type: =head2
31370 #. type: =head2
31371 #: ../fish/guestfish-commands.pod:134
31372 msgid "more"
31373 msgstr ""
31374
31375 # type: =head2
31376 #. type: =head2
31377 #: ../fish/guestfish-commands.pod:136
31378 msgid "less"
31379 msgstr ""
31380
31381 # type: verbatim
31382 #. type: verbatim
31383 #: ../fish/guestfish-commands.pod:138
31384 #, no-wrap
31385 msgid ""
31386 " more filename\n"
31387 "\n"
31388 msgstr ""
31389
31390 # type: verbatim
31391 #. type: verbatim
31392 #: ../fish/guestfish-commands.pod:140
31393 #, no-wrap
31394 msgid ""
31395 " less filename\n"
31396 "\n"
31397 msgstr ""
31398
31399 # type: textblock
31400 #. type: textblock
31401 #: ../fish/guestfish-commands.pod:142
31402 msgid "This is used to view a file."
31403 msgstr ""
31404
31405 # type: textblock
31406 #. type: textblock
31407 #: ../fish/guestfish-commands.pod:144
31408 msgid ""
31409 "The default viewer is C<$PAGER>.  However if you use the alternate command "
31410 "C<less> you will get the C<less> command specifically."
31411 msgstr ""
31412
31413 # type: =head2
31414 #. type: =head2
31415 #: ../fish/guestfish-commands.pod:147
31416 msgid "reopen"
31417 msgstr ""
31418
31419 # type: verbatim
31420 #. type: verbatim
31421 #: ../fish/guestfish-commands.pod:149
31422 #, no-wrap
31423 msgid ""
31424 "  reopen\n"
31425 "\n"
31426 msgstr ""
31427
31428 # type: textblock
31429 #. type: textblock
31430 #: ../fish/guestfish-commands.pod:151
31431 msgid ""
31432 "Close and reopen the libguestfs handle.  It is not necessary to use this "
31433 "normally, because the handle is closed properly when guestfish exits.  "
31434 "However this is occasionally useful for testing."
31435 msgstr ""
31436
31437 # type: =head2
31438 #. type: =head2
31439 #: ../fish/guestfish-commands.pod:155
31440 msgid "sparse"
31441 msgstr ""
31442
31443 # type: verbatim
31444 #. type: verbatim
31445 #: ../fish/guestfish-commands.pod:157
31446 #, no-wrap
31447 msgid ""
31448 " sparse filename size\n"
31449 "\n"
31450 msgstr ""
31451
31452 # type: textblock
31453 #. type: textblock
31454 #: ../fish/guestfish-commands.pod:159
31455 msgid ""
31456 "This creates an empty sparse file of the given size, and then adds so it can "
31457 "be further examined."
31458 msgstr ""
31459
31460 # type: textblock
31461 #. type: textblock
31462 #: ../fish/guestfish-commands.pod:162
31463 msgid ""
31464 "In all respects it works the same as the L</alloc> command, except that the "
31465 "image file is allocated sparsely, which means that disk blocks are not "
31466 "assigned to the file until they are needed.  Sparse disk files only use "
31467 "space when written to, but they are slower and there is a danger you could "
31468 "run out of real disk space during a write operation."
31469 msgstr ""
31470
31471 # type: =head2
31472 #. type: =head2
31473 #: ../fish/guestfish-commands.pod:172
31474 msgid "supported"
31475 msgstr ""
31476
31477 # type: verbatim
31478 #. type: verbatim
31479 #: ../fish/guestfish-commands.pod:174
31480 #, no-wrap
31481 msgid ""
31482 " supported\n"
31483 "\n"
31484 msgstr ""
31485
31486 # type: textblock
31487 #. type: textblock
31488 #: ../fish/guestfish-commands.pod:176
31489 msgid ""
31490 "This command returns a list of the optional groups known to the daemon, and "
31491 "indicates which ones are supported by this build of the libguestfs appliance."
31492 msgstr ""
31493
31494 # type: textblock
31495 #. type: textblock
31496 #: ../fish/guestfish-commands.pod:180
31497 msgid "See also L<guestfs(3)/AVAILABILITY>."
31498 msgstr ""
31499
31500 # type: =head2
31501 #. type: =head2
31502 #: ../fish/guestfish-commands.pod:182
31503 msgid "time"
31504 msgstr ""
31505
31506 # type: verbatim
31507 #. type: verbatim
31508 #: ../fish/guestfish-commands.pod:184
31509 #, no-wrap
31510 msgid ""
31511 " time command args...\n"
31512 "\n"
31513 msgstr ""
31514
31515 # type: textblock
31516 #. type: textblock
31517 #: ../fish/guestfish-commands.pod:186
31518 msgid ""
31519 "Run the command as usual, but print the elapsed time afterwards.  This can "
31520 "be useful for benchmarking operations."
31521 msgstr ""
31522
31523 # type: textblock
31524 #. type: textblock
31525 #: ../test-tool/libguestfs-test-tool.pod:5
31526 msgid "libguestfs-test-tool - End user tests for libguestfs"
31527 msgstr ""
31528
31529 # type: verbatim
31530 #. type: verbatim
31531 #: ../test-tool/libguestfs-test-tool.pod:9
31532 #, no-wrap
31533 msgid ""
31534 " libguestfs-test-tool [--options]\n"
31535 "\n"
31536 msgstr ""
31537
31538 # type: textblock
31539 #. type: textblock
31540 #: ../test-tool/libguestfs-test-tool.pod:13
31541 msgid ""
31542 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
31543 "and developers, to allow them to check basic libguestfs functionality is "
31544 "working.  This is needed because libguestfs occasionally breaks for reasons "
31545 "beyond our control: usually because of changes in the underlying qemu or "
31546 "kernel packages, or the host environment."
31547 msgstr ""
31548
31549 # type: textblock
31550 #. type: textblock
31551 #: ../test-tool/libguestfs-test-tool.pod:20
31552 msgid "If you suspect a problem in libguestfs, then just run:"
31553 msgstr ""
31554
31555 # type: verbatim
31556 #. type: verbatim
31557 #: ../test-tool/libguestfs-test-tool.pod:22
31558 #, no-wrap
31559 msgid ""
31560 " libguestfs-test-tool\n"
31561 "\n"
31562 msgstr ""
31563
31564 # type: textblock
31565 #. type: textblock
31566 #: ../test-tool/libguestfs-test-tool.pod:24
31567 msgid "It will print lots of diagnostic messages."
31568 msgstr ""
31569
31570 # type: textblock
31571 #. type: textblock
31572 #: ../test-tool/libguestfs-test-tool.pod:26
31573 msgid "If it runs to completion successfully, you will see this near the end:"
31574 msgstr ""
31575
31576 # type: verbatim
31577 #. type: verbatim
31578 #: ../test-tool/libguestfs-test-tool.pod:28
31579 #, no-wrap
31580 msgid ""
31581 " ===== TEST FINISHED OK =====\n"
31582 "\n"
31583 msgstr ""
31584
31585 # type: textblock
31586 #. type: textblock
31587 #: ../test-tool/libguestfs-test-tool.pod:30
31588 msgid "and the test tool will exit with code 0."
31589 msgstr ""
31590
31591 # type: textblock
31592 #. type: textblock
31593 #: ../test-tool/libguestfs-test-tool.pod:32
31594 msgid ""
31595 "If it fails (and/or exits with non-zero error code), please paste the "
31596 "B<complete, unedited> output of the test tool into a bug report.  More "
31597 "information about reporting bugs can be found on the L<http://libguestfs.org/"
31598 "> website."
31599 msgstr ""
31600
31601 # type: =item
31602 #. type: =item
31603 #: ../test-tool/libguestfs-test-tool.pod:41
31604 msgid "I<--help>"
31605 msgstr ""
31606
31607 # type: textblock
31608 #. type: textblock
31609 #: ../test-tool/libguestfs-test-tool.pod:43
31610 msgid "Display short usage information and exit."
31611 msgstr ""
31612
31613 # type: =item
31614 #. type: =item
31615 #: ../test-tool/libguestfs-test-tool.pod:45
31616 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
31617 msgstr ""
31618
31619 # type: textblock
31620 #. type: textblock
31621 #: ../test-tool/libguestfs-test-tool.pod:47
31622 msgid ""
31623 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
31624 "normally look in the C<$libexec> directory that was configured when the tool "
31625 "was built."
31626 msgstr ""
31627
31628 # type: =item
31629 #. type: =item
31630 #: ../test-tool/libguestfs-test-tool.pod:51
31631 msgid "I<--qemu qemu_binary>"
31632 msgstr ""
31633
31634 # type: textblock
31635 #. type: textblock
31636 #: ../test-tool/libguestfs-test-tool.pod:53
31637 msgid ""
31638 "If you have downloaded another qemu binary, point this option at the full "
31639 "path of the binary to try it."
31640 msgstr ""
31641
31642 # type: =item
31643 #. type: =item
31644 #: ../test-tool/libguestfs-test-tool.pod:56
31645 msgid "I<--qemudir qemu_source_dir>"
31646 msgstr ""
31647
31648 # type: textblock
31649 #. type: textblock
31650 #: ../test-tool/libguestfs-test-tool.pod:58
31651 msgid ""
31652 "If you have compiled qemu from source, point this option at the source "
31653 "directory to try it."
31654 msgstr ""
31655
31656 # type: =item
31657 #. type: =item
31658 #: ../test-tool/libguestfs-test-tool.pod:61
31659 msgid "I<--timeout N>"
31660 msgstr ""
31661
31662 # type: textblock
31663 #. type: textblock
31664 #: ../test-tool/libguestfs-test-tool.pod:63
31665 msgid ""
31666 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
31667 "does not usually need to be adjusted unless your machine is very slow."
31668 msgstr ""
31669
31670 # type: =head1
31671 #. type: =head1
31672 #: ../test-tool/libguestfs-test-tool.pod:69
31673 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
31674 msgstr ""
31675
31676 # type: textblock
31677 #. type: textblock
31678 #: ../test-tool/libguestfs-test-tool.pod:71
31679 msgid ""
31680 "If you have compiled another version of qemu from source and would like to "
31681 "try that, then you can use the I<--qemudir> option to point to the qemu "
31682 "source directory."
31683 msgstr ""
31684
31685 # type: textblock
31686 #. type: textblock
31687 #: ../test-tool/libguestfs-test-tool.pod:75
31688 msgid ""
31689 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
31690 "option to point to the binary."
31691 msgstr ""
31692
31693 # type: textblock
31694 #. type: textblock
31695 #: ../test-tool/libguestfs-test-tool.pod:78
31696 msgid ""
31697 "When using an alternate qemu with libguestfs, usually you would need to "
31698 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
31699 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
31700 "use either of the I<--qemudir> or I<--qemu> options."
31701 msgstr ""
31702
31703 # type: textblock
31704 #. type: textblock
31705 #: ../test-tool/libguestfs-test-tool.pod:85
31706 msgid ""
31707 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
31708 "I<1> if there was an error."
31709 msgstr ""
31710
31711 # type: =item
31712 #. type: =item
31713 #: ../test-tool/libguestfs-test-tool.pod:92
31714 msgid "/usr/libexec/libguestfs-test-tool-helper"
31715 msgstr ""
31716
31717 # type: textblock
31718 #. type: textblock
31719 #: ../test-tool/libguestfs-test-tool.pod:94
31720 msgid ""
31721 "This helper program is run inside the appliance and provides additional "
31722 "tests."
31723 msgstr ""
31724
31725 # type: =item
31726 #. type: =item
31727 #: ../test-tool/libguestfs-test-tool.pod:97
31728 msgid "/usr/bin/mkisofs"
31729 msgstr ""
31730
31731 # type: textblock
31732 #. type: textblock
31733 #: ../test-tool/libguestfs-test-tool.pod:99
31734 msgid ""
31735 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
31736 "which is used as part of the tests."
31737 msgstr ""
31738
31739 # type: textblock
31740 #. type: textblock
31741 #: ../test-tool/libguestfs-test-tool.pod:106
31742 msgid ""
31743 "For the full list of environment variables which may affect libguestfs, "
31744 "please see the L<guestfs(3)> manual page."
31745 msgstr ""
31746
31747 # type: textblock
31748 #. type: textblock
31749 #: ../test-tool/libguestfs-test-tool.pod:111
31750 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
31751 msgstr ""
31752
31753 # type: textblock
31754 #. type: textblock
31755 #: ../test-tool/libguestfs-test-tool.pod:121
31756 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
31757 msgstr ""
31758
31759 # type: textblock
31760 #. type: textblock
31761 #: ../fuse/guestmount.pod:5
31762 msgid ""
31763 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
31764 msgstr ""
31765
31766 # type: verbatim
31767 #. type: verbatim
31768 #: ../fuse/guestmount.pod:9
31769 #, no-wrap
31770 msgid ""
31771 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
31772 "\n"
31773 msgstr ""
31774
31775 # type: verbatim
31776 #. type: verbatim
31777 #: ../fuse/guestmount.pod:11
31778 #, no-wrap
31779 msgid ""
31780 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
31781 "\n"
31782 msgstr ""
31783
31784 # type: verbatim
31785 #. type: verbatim
31786 #: ../fuse/guestmount.pod:13
31787 #, no-wrap
31788 msgid ""
31789 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
31790 "\n"
31791 msgstr ""
31792
31793 # type: textblock
31794 #. type: textblock
31795 #: ../fuse/guestmount.pod:17
31796 msgid ""
31797 "You must I<not> use C<guestmount> in read-write mode on live virtual "
31798 "machines.  If you do this, you risk disk corruption in the VM."
31799 msgstr ""
31800
31801 # type: textblock
31802 #. type: textblock
31803 #: ../fuse/guestmount.pod:22
31804 msgid ""
31805 "The guestmount program can be used to mount virtual machine filesystems and "
31806 "other disk images on the host.  It uses libguestfs for access to the guest "
31807 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31808 "a mountable device."
31809 msgstr ""
31810
31811 # type: textblock
31812 #. type: textblock
31813 #: ../fuse/guestmount.pod:27
31814 msgid ""
31815 "Along with other options, you have to give at least one device (I<-a> "
31816 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31817 "option) or use the I<-i> inspection option.  How this works is better "
31818 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31819 "below."
31820 msgstr ""
31821
31822 # type: textblock
31823 #. type: textblock
31824 #: ../fuse/guestmount.pod:33
31825 msgid ""
31826 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31827 "by you, and the filesystem will not be visible to any other users unless you "
31828 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31829 "the filesystem, use the C<fusermount -u> command."
31830 msgstr ""
31831
31832 # type: textblock
31833 #. type: textblock
31834 #: ../fuse/guestmount.pod:41
31835 msgid ""
31836 "For a typical Windows guest which has its main filesystem on the first "
31837 "partition:"
31838 msgstr ""
31839
31840 # type: verbatim
31841 #. type: verbatim
31842 #: ../fuse/guestmount.pod:44
31843 #, no-wrap
31844 msgid ""
31845 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31846 "\n"
31847 msgstr ""
31848
31849 # type: textblock
31850 #. type: textblock
31851 #: ../fuse/guestmount.pod:46
31852 msgid ""
31853 "For a typical Linux guest which has a /boot filesystem on the first "
31854 "partition, and the root filesystem on a logical volume:"
31855 msgstr ""
31856
31857 # type: verbatim
31858 #. type: verbatim
31859 #: ../fuse/guestmount.pod:49
31860 #, no-wrap
31861 msgid ""
31862 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31863 "\n"
31864 msgstr ""
31865
31866 # type: textblock
31867 #. type: textblock
31868 #: ../fuse/guestmount.pod:51
31869 msgid "To get libguestfs to detect guest mountpoints for you:"
31870 msgstr ""
31871
31872 # type: verbatim
31873 #. type: verbatim
31874 #: ../fuse/guestmount.pod:53
31875 #, no-wrap
31876 msgid ""
31877 " guestmount -a guest.img -i --ro /mnt\n"
31878 "\n"
31879 msgstr ""
31880
31881 # type: textblock
31882 #. type: textblock
31883 #: ../fuse/guestmount.pod:55
31884 msgid "For a libvirt guest called \"Guest\" you could do:"
31885 msgstr ""
31886
31887 # type: verbatim
31888 #. type: verbatim
31889 #: ../fuse/guestmount.pod:57
31890 #, no-wrap
31891 msgid ""
31892 " guestmount -d Guest -i --ro /mnt\n"
31893 "\n"
31894 msgstr ""
31895
31896 # type: textblock
31897 #. type: textblock
31898 #: ../fuse/guestmount.pod:59
31899 msgid ""
31900 "If you don't know what filesystems are contained in a guest or disk image, "
31901 "use L<virt-filesystems(1)> first:"
31902 msgstr ""
31903
31904 # type: verbatim
31905 #. type: verbatim
31906 #: ../fuse/guestmount.pod:62
31907 #, no-wrap
31908 msgid ""
31909 " virt-filesystems MyGuest\n"
31910 "\n"
31911 msgstr ""
31912
31913 # type: textblock
31914 #. type: textblock
31915 #: ../fuse/guestmount.pod:64
31916 msgid ""
31917 "If you want to trace the libguestfs calls but without excessive debugging "
31918 "information, we recommend:"
31919 msgstr ""
31920
31921 # type: verbatim
31922 #. type: verbatim
31923 #: ../fuse/guestmount.pod:67
31924 #, no-wrap
31925 msgid ""
31926 " guestmount [...] --trace /mnt\n"
31927 "\n"
31928 msgstr ""
31929
31930 # type: textblock
31931 #. type: textblock
31932 #: ../fuse/guestmount.pod:69
31933 msgid "If you want to debug the program, we recommend:"
31934 msgstr ""
31935
31936 # type: verbatim
31937 #. type: verbatim
31938 #: ../fuse/guestmount.pod:71
31939 #, no-wrap
31940 msgid ""
31941 " guestmount [...] --trace --verbose /mnt\n"
31942 "\n"
31943 msgstr ""
31944
31945 # type: =item
31946 #. type: =item
31947 #: ../fuse/guestmount.pod:77
31948 msgid "B<-a image> | B<--add image>"
31949 msgstr ""
31950
31951 # type: textblock
31952 #. type: textblock
31953 #: ../fuse/guestmount.pod:79
31954 msgid "Add a block device or virtual machine image."
31955 msgstr ""
31956
31957 # type: =item
31958 #. type: =item
31959 #: ../fuse/guestmount.pod:84
31960 msgid "B<-c URI> | B<--connect URI>"
31961 msgstr ""
31962
31963 # type: =item
31964 #. type: =item
31965 #: ../fuse/guestmount.pod:90
31966 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
31967 msgstr ""
31968
31969 # type: =item
31970 #. type: =item
31971 #: ../fuse/guestmount.pod:96
31972 msgid "B<--dir-cache-timeout N>"
31973 msgstr ""
31974
31975 # type: textblock
31976 #. type: textblock
31977 #: ../fuse/guestmount.pod:98
31978 msgid ""
31979 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
31980 "seconds.  The readdir cache [actually, there are several semi-independent "
31981 "caches] is populated after a readdir(2) call with the stat and extended "
31982 "attributes of the files in the directory, in anticipation that they will be "
31983 "requested soon after."
31984 msgstr ""
31985
31986 # type: textblock
31987 #. type: textblock
31988 #: ../fuse/guestmount.pod:104
31989 msgid ""
31990 "There is also a different attribute cache implemented by FUSE (see the FUSE "
31991 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
31992 "requests, only cache existing ones."
31993 msgstr ""
31994
31995 # type: =item
31996 #. type: =item
31997 #: ../fuse/guestmount.pod:115
31998 msgid "B<--format=raw|qcow2|..> | B<--format>"
31999 msgstr ""
32000
32001 # type: textblock
32002 #. type: textblock
32003 #: ../fuse/guestmount.pod:122
32004 msgid ""
32005 "If you have untrusted raw-format guest disk images, you should use this "
32006 "option to specify the disk format.  This avoids a possible security problem "
32007 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
32008 "guestfs_add_drive_opts>."
32009 msgstr ""
32010
32011 # type: =item
32012 #. type: =item
32013 #: ../fuse/guestmount.pod:127
32014 msgid "B<--fuse-help>"
32015 msgstr ""
32016
32017 # type: textblock
32018 #. type: textblock
32019 #: ../fuse/guestmount.pod:129
32020 msgid "Display help on special FUSE options (see I<-o> below)."
32021 msgstr ""
32022
32023 # type: textblock
32024 #. type: textblock
32025 #: ../fuse/guestmount.pod:133
32026 msgid "Display brief help and exit."
32027 msgstr ""
32028
32029 # type: =item
32030 #. type: =item
32031 #: ../fuse/guestmount.pod:135
32032 msgid "B<-i> | B<--inspector>"
32033 msgstr ""
32034
32035 # type: textblock
32036 #. type: textblock
32037 #: ../fuse/guestmount.pod:155
32038 msgid ""
32039 "Mount the named partition or logical volume on the given mountpoint B<in the "
32040 "guest> (this has nothing to do with mountpoints in the host)."
32041 msgstr ""
32042
32043 # type: textblock
32044 #. type: textblock
32045 #: ../fuse/guestmount.pod:158
32046 msgid ""
32047 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
32048 "something on C</>."
32049 msgstr ""
32050
32051 # type: =item
32052 #. type: =item
32053 #: ../fuse/guestmount.pod:171
32054 msgid "B<-n> | B<--no-sync>"
32055 msgstr ""
32056
32057 # type: textblock
32058 #. type: textblock
32059 #: ../fuse/guestmount.pod:173
32060 msgid ""
32061 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
32062 "unmounted.  If you specify this option, then we don't attempt to sync the "
32063 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
32064 msgstr ""
32065
32066 # type: =item
32067 #. type: =item
32068 #: ../fuse/guestmount.pod:178
32069 msgid "B<-o option> | B<--option option>"
32070 msgstr ""
32071
32072 # type: textblock
32073 #. type: textblock
32074 #: ../fuse/guestmount.pod:180
32075 msgid "Pass extra options to FUSE."
32076 msgstr ""
32077
32078 # type: textblock
32079 #. type: textblock
32080 #: ../fuse/guestmount.pod:182
32081 msgid ""
32082 "To get a list of all the extra options supported by FUSE, use the command "
32083 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32084 "of them are a good idea."
32085 msgstr ""
32086
32087 # type: verbatim
32088 #. type: verbatim
32089 #: ../fuse/guestmount.pod:186
32090 #, no-wrap
32091 msgid ""
32092 " guestmount --fuse-help\n"
32093 "\n"
32094 msgstr ""
32095
32096 # type: textblock
32097 #. type: textblock
32098 #: ../fuse/guestmount.pod:188
32099 msgid "Some potentially useful FUSE options:"
32100 msgstr ""
32101
32102 # type: =item
32103 #. type: =item
32104 #: ../fuse/guestmount.pod:192
32105 msgid "B<-o allow_other>"
32106 msgstr ""
32107
32108 # type: textblock
32109 #. type: textblock
32110 #: ../fuse/guestmount.pod:194
32111 msgid "Allow other users to see the filesystem."
32112 msgstr ""
32113
32114 # type: =item
32115 #. type: =item
32116 #: ../fuse/guestmount.pod:196
32117 msgid "B<-o attr_timeout=N>"
32118 msgstr ""
32119
32120 # type: textblock
32121 #. type: textblock
32122 #: ../fuse/guestmount.pod:198
32123 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32124 msgstr ""
32125
32126 # type: =item
32127 #. type: =item
32128 #: ../fuse/guestmount.pod:200
32129 msgid "B<-o kernel_cache>"
32130 msgstr ""
32131
32132 # type: textblock
32133 #. type: textblock
32134 #: ../fuse/guestmount.pod:202
32135 msgid ""
32136 "Allow the kernel to cache files (reduces the number of reads that have to go "
32137 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32138 "afford the extra memory usage."
32139 msgstr ""
32140
32141 # type: =item
32142 #. type: =item
32143 #: ../fuse/guestmount.pod:206
32144 msgid "B<-o uid=N> B<-o gid=N>"
32145 msgstr ""
32146
32147 # type: textblock
32148 #. type: textblock
32149 #: ../fuse/guestmount.pod:208
32150 msgid ""
32151 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32152 "the chosen values."
32153 msgstr ""
32154
32155 # type: =item
32156 #. type: =item
32157 #: ../fuse/guestmount.pod:213
32158 msgid "B<-r> | B<--ro>"
32159 msgstr ""
32160
32161 # type: textblock
32162 #. type: textblock
32163 #: ../fuse/guestmount.pod:215
32164 msgid ""
32165 "Add devices and mount everything read-only.  Also disallow writes and make "
32166 "the disk appear read-only to FUSE."
32167 msgstr ""
32168
32169 # type: textblock
32170 #. type: textblock
32171 #: ../fuse/guestmount.pod:218
32172 msgid ""
32173 "This is highly recommended if you are not going to edit the guest disk.  If "
32174 "the guest is running and this option is I<not> supplied, then there is a "
32175 "strong risk of disk corruption in the guest.  We try to prevent this from "
32176 "happening, but it is not always possible."
32177 msgstr ""
32178
32179 # type: textblock
32180 #. type: textblock
32181 #: ../fuse/guestmount.pod:223
32182 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32183 msgstr ""
32184
32185 # type: textblock
32186 #. type: textblock
32187 #: ../fuse/guestmount.pod:227
32188 msgid "Enable SELinux support for the guest."
32189 msgstr ""
32190
32191 # type: =item
32192 #. type: =item
32193 #: ../fuse/guestmount.pod:229
32194 msgid "B<-v> | B<--verbose>"
32195 msgstr ""
32196
32197 # type: textblock
32198 #. type: textblock
32199 #: ../fuse/guestmount.pod:231
32200 msgid "Enable verbose messages from underlying libguestfs."
32201 msgstr ""
32202
32203 # type: =item
32204 #. type: =item
32205 #: ../fuse/guestmount.pod:233
32206 msgid "B<-V> | B<--version>"
32207 msgstr ""
32208
32209 # type: textblock
32210 #. type: textblock
32211 #: ../fuse/guestmount.pod:235
32212 msgid "Display the program version and exit."
32213 msgstr ""
32214
32215 # type: =item
32216 #. type: =item
32217 #: ../fuse/guestmount.pod:237
32218 msgid "B<-w> | B<--rw>"
32219 msgstr ""
32220
32221 #. type: textblock
32222 #: ../fuse/guestmount.pod:242 ../fuse/guestmount.pod:263
32223 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32224 msgstr ""
32225
32226 # type: =item
32227 #. type: =item
32228 #: ../fuse/guestmount.pod:244
32229 msgid "B<-x> | B<--trace>"
32230 msgstr ""
32231
32232 # type: textblock
32233 #. type: textblock
32234 #: ../fuse/guestmount.pod:246
32235 msgid "Trace libguestfs calls and entry into each FUSE function."
32236 msgstr ""
32237
32238 # type: textblock
32239 #. type: textblock
32240 #: ../fuse/guestmount.pod:248
32241 msgid "This also stops the daemon from forking into the background."
32242 msgstr ""
32243
32244 # type: textblock
32245 #. type: textblock
32246 #: ../fuse/guestmount.pod:269
32247 msgid ""
32248 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32249 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
32250 "net/>."
32251 msgstr ""
32252
32253 # type: textblock
32254 #. type: textblock
32255 #: ../fuse/guestmount.pod:284
32256 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
32257 msgstr ""
32258
32259 # type: textblock
32260 #. type: textblock
32261 #: ../tools/virt-edit.pl:34
32262 msgid "virt-edit - Edit a file in a virtual machine"
32263 msgstr ""
32264
32265 # type: verbatim
32266 #. type: verbatim
32267 #: ../tools/virt-edit.pl:38
32268 #, no-wrap
32269 msgid ""
32270 " virt-edit [--options] domname file\n"
32271 "\n"
32272 msgstr ""
32273
32274 # type: verbatim
32275 #. type: verbatim
32276 #: ../tools/virt-edit.pl:40
32277 #, no-wrap
32278 msgid ""
32279 " virt-edit [--options] disk.img [disk.img ...] file\n"
32280 "\n"
32281 msgstr ""
32282
32283 # type: verbatim
32284 #. type: verbatim
32285 #: ../tools/virt-edit.pl:42
32286 #, no-wrap
32287 msgid ""
32288 " virt-edit [domname|disk.img] file -e 'expr'\n"
32289 "\n"
32290 msgstr ""
32291
32292 # type: textblock
32293 #. type: textblock
32294 #: ../tools/virt-edit.pl:46
32295 msgid ""
32296 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
32297 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
32298 "doing this, but doesn't catch all cases."
32299 msgstr ""
32300
32301 # type: textblock
32302 #. type: textblock
32303 #: ../tools/virt-edit.pl:52
32304 msgid ""
32305 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
32306 "the named virtual machine (or disk image)."
32307 msgstr ""
32308
32309 # type: textblock
32310 #. type: textblock
32311 #: ../tools/virt-edit.pl:55
32312 msgid ""
32313 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
32314 "you should look at the L<guestfish(1)> tool."
32315 msgstr ""
32316
32317 # type: textblock
32318 #. type: textblock
32319 #: ../tools/virt-edit.pl:60
32320 msgid "Edit the named files interactively:"
32321 msgstr ""
32322
32323 # type: verbatim
32324 #. type: verbatim
32325 #: ../tools/virt-edit.pl:62
32326 #, no-wrap
32327 msgid ""
32328 " virt-edit mydomain /boot/grub/grub.conf\n"
32329 "\n"
32330 msgstr ""
32331
32332 # type: verbatim
32333 #. type: verbatim
32334 #: ../tools/virt-edit.pl:64
32335 #, no-wrap
32336 msgid ""
32337 " virt-edit mydomain /etc/passwd\n"
32338 "\n"
32339 msgstr ""
32340
32341 # type: textblock
32342 #. type: textblock
32343 #: ../tools/virt-edit.pl:66
32344 msgid ""
32345 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
32346 "below).  To change the init default level to 5:"
32347 msgstr ""
32348
32349 # type: verbatim
32350 #. type: verbatim
32351 #: ../tools/virt-edit.pl:70
32352 #, no-wrap
32353 msgid ""
32354 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
32355 "\n"
32356 msgstr ""
32357
32358 # type: textblock
32359 #. type: textblock
32360 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
32361 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
32362 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
32363 msgid "Display brief help."
32364 msgstr ""
32365
32366 # type: textblock
32367 #. type: textblock
32368 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
32369 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
32370 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
32371 #: ../tools/virt-list-partitions.pl:72
32372 msgid "Display version number and exit."
32373 msgstr ""
32374
32375 # type: =item
32376 #. type: =item
32377 #: ../tools/virt-edit.pl:96
32378 msgid "B<--backup extension> | B<-b extension>"
32379 msgstr ""
32380
32381 # type: textblock
32382 #. type: textblock
32383 #: ../tools/virt-edit.pl:98
32384 msgid ""
32385 "Create a backup of the original file I<in the guest disk image>.  The backup "
32386 "has the original filename with C<extension> added."
32387 msgstr ""
32388
32389 # type: textblock
32390 #. type: textblock
32391 #: ../tools/virt-edit.pl:101
32392 msgid ""
32393 "Usually the first character of C<extension> would be a dot C<.> so you would "
32394 "write:"
32395 msgstr ""
32396
32397 # type: verbatim
32398 #. type: verbatim
32399 #: ../tools/virt-edit.pl:104
32400 #, no-wrap
32401 msgid ""
32402 " virt-edit -b .orig [etc]\n"
32403 "\n"
32404 msgstr ""
32405
32406 # type: textblock
32407 #. type: textblock
32408 #: ../tools/virt-edit.pl:106
32409 msgid "By default, no backup file is made."
32410 msgstr ""
32411
32412 # type: =item
32413 #. type: =item
32414 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
32415 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
32416 #: ../tools/virt-list-partitions.pl:78
32417 msgid "B<--connect URI> | B<-c URI>"
32418 msgstr ""
32419
32420 # type: textblock
32421 #. type: textblock
32422 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
32423 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
32424 #: ../tools/virt-list-partitions.pl:80
32425 msgid ""
32426 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
32427 "to the default libvirt hypervisor."
32428 msgstr ""
32429
32430 # type: textblock
32431 #. type: textblock
32432 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
32433 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
32434 #: ../tools/virt-list-partitions.pl:83
32435 msgid ""
32436 "If you specify guest block devices directly, then libvirt is not used at all."
32437 msgstr ""
32438
32439 # type: =item
32440 #. type: =item
32441 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
32442 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
32443 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
32444 msgid "B<--format> raw"
32445 msgstr ""
32446
32447 # type: textblock
32448 #. type: textblock
32449 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
32450 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
32451 #: ../tools/virt-list-partitions.pl:92
32452 msgid ""
32453 "Specify the format of disk images given on the command line.  If this is "
32454 "omitted then the format is autodetected from the content of the disk image."
32455 msgstr ""
32456
32457 # type: textblock
32458 #. type: textblock
32459 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
32460 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
32461 #: ../tools/virt-list-partitions.pl:96
32462 msgid ""
32463 "If disk images are requested from libvirt, then this program asks libvirt "
32464 "for this information.  In this case, the value of the format parameter is "
32465 "ignored."
32466 msgstr ""
32467
32468 # type: textblock
32469 #. type: textblock
32470 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
32471 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
32472 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
32473 #: ../tools/virt-list-partitions.pl:100
32474 msgid ""
32475 "If working with untrusted raw-format guest disk images, you should ensure "
32476 "the format is always specified."
32477 msgstr ""
32478
32479 # type: =item
32480 #. type: =item
32481 #: ../tools/virt-edit.pl:141
32482 msgid "B<--expr EXPR> | B<-e EXPR>"
32483 msgstr ""
32484
32485 # type: textblock
32486 #. type: textblock
32487 #: ../tools/virt-edit.pl:143
32488 msgid ""
32489 "Instead of launching the external editor, non-interactively apply the Perl "
32490 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
32491 "EDITING> below."
32492 msgstr ""
32493
32494 # type: textblock
32495 #. type: textblock
32496 #: ../tools/virt-edit.pl:147
32497 msgid ""
32498 "Be careful to properly quote the expression to prevent it from being altered "
32499 "by the shell."
32500 msgstr ""
32501
32502 # type: =head1
32503 #. type: =head1
32504 #: ../tools/virt-edit.pl:268
32505 msgid "NON-INTERACTIVE EDITING"
32506 msgstr ""
32507
32508 # type: textblock
32509 #. type: textblock
32510 #: ../tools/virt-edit.pl:270
32511 msgid ""
32512 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
32513 "administrator can interactively edit the file."
32514 msgstr ""
32515
32516 # type: textblock
32517 #. type: textblock
32518 #: ../tools/virt-edit.pl:273
32519 msgid ""
32520 "There are two ways also to use C<virt-edit> from scripts in order to make "
32521 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
32522 "like this, it's less error-prone to write scripts directly using the "
32523 "libguestfs API and Augeas for configuration file editing.)"
32524 msgstr ""
32525
32526 # type: textblock
32527 #. type: textblock
32528 #: ../tools/virt-edit.pl:279
32529 msgid ""
32530 "The first method is to temporarily set C<$EDITOR> to any script or program "
32531 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
32532 "update C<tmpfile> in place however it likes."
32533 msgstr ""
32534
32535 # type: textblock
32536 #. type: textblock
32537 #: ../tools/virt-edit.pl:283
32538 msgid ""
32539 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
32540 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
32541 "instances of C<foo> with C<bar> in a file:"
32542 msgstr ""
32543
32544 # type: verbatim
32545 #. type: verbatim
32546 #: ../tools/virt-edit.pl:287
32547 #, no-wrap
32548 msgid ""
32549 " virt-edit domname filename -e 's/foo/bar/'\n"
32550 "\n"
32551 msgstr ""
32552
32553 # type: textblock
32554 #. type: textblock
32555 #: ../tools/virt-edit.pl:289
32556 msgid ""
32557 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
32558 "For example to delete root's password you could do:"
32559 msgstr ""
32560
32561 # type: verbatim
32562 #. type: verbatim
32563 #: ../tools/virt-edit.pl:292
32564 #, no-wrap
32565 msgid ""
32566 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
32567 "\n"
32568 msgstr ""
32569
32570 # type: textblock
32571 #. type: textblock
32572 #: ../tools/virt-edit.pl:294
32573 msgid ""
32574 "What really happens is that the snippet is evaluated as a Perl expression "
32575 "for each line of the file.  The line, including the final C<\\n>, is passed "
32576 "in C<$_> and the expression should update C<$_> or leave it unchanged."
32577 msgstr ""
32578
32579 # type: textblock
32580 #. type: textblock
32581 #: ../tools/virt-edit.pl:299
32582 msgid ""
32583 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
32584 "C<apache> user account from the password file you can do:"
32585 msgstr ""
32586
32587 # type: verbatim
32588 #. type: verbatim
32589 #: ../tools/virt-edit.pl:302
32590 #, no-wrap
32591 msgid ""
32592 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
32593 "\n"
32594 msgstr ""
32595
32596 # type: textblock
32597 #. type: textblock
32598 #: ../tools/virt-edit.pl:304
32599 msgid ""
32600 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
32601 "the end of the file is rather difficult this way since there is no concept "
32602 "of \"last line of the file\" - your expression just doesn't get called "
32603 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
32604 "want to do this."
32605 msgstr ""
32606
32607 # type: textblock
32608 #. type: textblock
32609 #: ../tools/virt-edit.pl:310
32610 msgid ""
32611 "The variable C<$lineno> contains the current line number.  As is "
32612 "traditional, the first line in the file is number C<1>."
32613 msgstr ""
32614
32615 # type: textblock
32616 #. type: textblock
32617 #: ../tools/virt-edit.pl:313
32618 msgid ""
32619 "The return value from the expression is ignored, but the expression may call "
32620 "C<die> in order to abort the whole program, leaving the original file "
32621 "untouched."
32622 msgstr ""
32623
32624 # type: textblock
32625 #. type: textblock
32626 #: ../tools/virt-edit.pl:317
32627 msgid ""
32628 "Remember when matching the end of a line that C<$_> may contain the final C<"
32629 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
32630 "newline then neither of these.  Thus to match or substitute some text at the "
32631 "end of a line, use this regular expression:"
32632 msgstr ""
32633
32634 # type: verbatim
32635 #. type: verbatim
32636 #: ../tools/virt-edit.pl:322
32637 #, no-wrap
32638 msgid ""
32639 " /some text(\\r?\\n)?$/\n"
32640 "\n"
32641 msgstr ""
32642
32643 # type: textblock
32644 #. type: textblock
32645 #: ../tools/virt-edit.pl:324
32646 msgid ""
32647 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
32648 "$_> itself (since that would remove all newlines from the file):"
32649 msgstr ""
32650
32651 # type: verbatim
32652 #. type: verbatim
32653 #: ../tools/virt-edit.pl:328
32654 #, no-wrap
32655 msgid ""
32656 " my $m = $_; chomp $m; $m =~ /some text$/\n"
32657 "\n"
32658 msgstr ""
32659
32660 # type: =item
32661 #. type: =item
32662 #: ../tools/virt-edit.pl:334
32663 msgid "C<EDITOR>"
32664 msgstr ""
32665
32666 # type: textblock
32667 #. type: textblock
32668 #: ../tools/virt-edit.pl:336
32669 msgid ""
32670 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
32671 "\"emacs -nw\">"
32672 msgstr ""
32673
32674 # type: textblock
32675 #. type: textblock
32676 #: ../tools/virt-edit.pl:339
32677 msgid "If not set, C<vi> is used."
32678 msgstr ""
32679
32680 # type: =head2
32681 #. type: =head1
32682 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
32683 #: ../tools/virt-resize.pl:1482 ../tools/virt-list-filesystems.pl:182
32684 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
32685 #: ../tools/virt-list-partitions.pl:250
32686 msgid "SHELL QUOTING"
32687 msgstr ""
32688
32689 # type: textblock
32690 #. type: textblock
32691 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
32692 #: ../tools/virt-resize.pl:1484 ../tools/virt-list-filesystems.pl:184
32693 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
32694 #: ../tools/virt-list-partitions.pl:252
32695 msgid ""
32696 "Libvirt guest names can contain arbitrary characters, some of which have "
32697 "meaning to the shell such as C<#> and space.  You may need to quote or "
32698 "escape these characters on the command line.  See the shell manual page L<sh"
32699 "(1)> for details."
32700 msgstr ""
32701
32702 #. type: textblock
32703 #: ../tools/virt-edit.pl:352
32704 msgid ""
32705 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
32706 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32707 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
32708 msgstr ""
32709
32710 # type: =head1
32711 #. type: =head1
32712 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
32713 #: ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:202
32714 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
32715 #: ../tools/virt-list-partitions.pl:269
32716 msgid "AUTHOR"
32717 msgstr ""
32718
32719 # type: textblock
32720 #. type: textblock
32721 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
32722 #: ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:204
32723 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
32724 #: ../tools/virt-list-partitions.pl:271
32725 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
32726 msgstr ""
32727
32728 # type: textblock
32729 #. type: textblock
32730 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
32731 msgid "Copyright (C) 2009-2010 Red Hat Inc."
32732 msgstr ""
32733
32734 # type: textblock
32735 #. type: textblock
32736 #: ../tools/virt-win-reg.pl:37
32737 msgid ""
32738 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
32739 msgstr ""
32740
32741 # type: verbatim
32742 #. type: verbatim
32743 #: ../tools/virt-win-reg.pl:41
32744 #, no-wrap
32745 msgid ""
32746 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
32747 "\n"
32748 msgstr ""
32749
32750 # type: verbatim
32751 #. type: verbatim
32752 #: ../tools/virt-win-reg.pl:43
32753 #, no-wrap
32754 msgid ""
32755 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
32756 "\n"
32757 msgstr ""
32758
32759 # type: verbatim
32760 #. type: verbatim
32761 #: ../tools/virt-win-reg.pl:45
32762 #, no-wrap
32763 msgid ""
32764 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
32765 "\n"
32766 msgstr ""
32767
32768 # type: verbatim
32769 #. type: verbatim
32770 #: ../tools/virt-win-reg.pl:47
32771 #, no-wrap
32772 msgid ""
32773 " virt-win-reg --merge domname [input.reg ...]\n"
32774 "\n"
32775 msgstr ""
32776
32777 # type: verbatim
32778 #. type: verbatim
32779 #: ../tools/virt-win-reg.pl:49
32780 #, no-wrap
32781 msgid ""
32782 " virt-win-reg [--options] disk.img ... # instead of domname\n"
32783 "\n"
32784 msgstr ""
32785
32786 # type: textblock
32787 #. type: textblock
32788 #: ../tools/virt-win-reg.pl:53
32789 msgid ""
32790 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
32791 "virtual machines.  If you do this, you I<will> get irreversible disk "
32792 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
32793 "but doesn't catch all cases."
32794 msgstr ""
32795
32796 # type: textblock
32797 #. type: textblock
32798 #: ../tools/virt-win-reg.pl:58
32799 msgid ""
32800 "Modifying the Windows Registry is an inherently risky operation.  The format "
32801 "is deliberately obscure and undocumented, and Registry changes can leave the "
32802 "system unbootable.  Therefore when using the C<--merge> option, make sure "
32803 "you have a reliable backup first."
32804 msgstr ""
32805
32806 # type: textblock
32807 #. type: textblock
32808 #: ../tools/virt-win-reg.pl:65
32809 msgid ""
32810 "This program can export and merge Windows Registry entries from a Windows "
32811 "guest."
32812 msgstr ""
32813
32814 # type: textblock
32815 #. type: textblock
32816 #: ../tools/virt-win-reg.pl:68
32817 msgid ""
32818 "The first parameter is the libvirt guest name or the raw disk image of a "
32819 "Windows guest."
32820 msgstr ""
32821
32822 # type: textblock
32823 #. type: textblock
32824 #: ../tools/virt-win-reg.pl:71
32825 msgid ""
32826 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
32827 "exported (recursively).  For example:"
32828 msgstr ""
32829
32830 # type: verbatim
32831 #. type: verbatim
32832 #: ../tools/virt-win-reg.pl:74
32833 #, no-wrap
32834 msgid ""
32835 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
32836 "\n"
32837 msgstr ""
32838
32839 # type: textblock
32840 #. type: textblock
32841 #: ../tools/virt-win-reg.pl:76
32842 msgid ""
32843 "You can also display single values from within registry keys, for example:"
32844 msgstr ""
32845
32846 # type: verbatim
32847 #. type: verbatim
32848 #: ../tools/virt-win-reg.pl:79
32849 #, no-wrap
32850 msgid ""
32851 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
32852 " $ virt-win-reg Windows7 $cvkey ProductName\n"
32853 " Windows 7 Enterprise\n"
32854 "\n"
32855 msgstr ""
32856
32857 # type: textblock
32858 #. type: textblock
32859 #: ../tools/virt-win-reg.pl:83
32860 msgid ""
32861 "With C<--merge>, you can merge a textual regedit file into the Windows "
32862 "Registry:"
32863 msgstr ""
32864
32865 # type: verbatim
32866 #. type: verbatim
32867 #: ../tools/virt-win-reg.pl:86
32868 #, no-wrap
32869 msgid ""
32870 " $ virt-win-reg --merge Windows7 changes.reg\n"
32871 "\n"
32872 msgstr ""
32873
32874 # type: =head2
32875 #. type: =head1
32876 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32877 msgid "NOTE"
32878 msgstr ""
32879
32880 # type: textblock
32881 #. type: textblock
32882 #: ../tools/virt-win-reg.pl:90
32883 msgid ""
32884 "This program is only meant for simple access to the registry.  If you want "
32885 "to do complicated things with the registry, we suggest you download the "
32886 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32887 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32888 "L<hivexregedit(1)>."
32889 msgstr ""
32890
32891 # type: =item
32892 #. type: =item
32893 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32894 msgid "B<--debug>"
32895 msgstr ""
32896
32897 # type: textblock
32898 #. type: textblock
32899 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
32900 msgid "Enable debugging messages."
32901 msgstr ""
32902
32903 # type: =item
32904 #. type: =item
32905 #: ../tools/virt-win-reg.pl:157
32906 msgid "B<--merge>"
32907 msgstr ""
32908
32909 # type: textblock
32910 #. type: textblock
32911 #: ../tools/virt-win-reg.pl:159
32912 msgid ""
32913 "In merge mode, this merges a textual regedit file into the Windows Registry "
32914 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32915 "displays or exports Registry entries instead."
32916 msgstr ""
32917
32918 # type: textblock
32919 #. type: textblock
32920 #: ../tools/virt-win-reg.pl:163
32921 msgid ""
32922 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
32923 "result in disk corruption.  However exporting (without this flag)  is always "
32924 "safe."
32925 msgstr ""
32926
32927 # type: =item
32928 #. type: =item
32929 #: ../tools/virt-win-reg.pl:171
32930 msgid "B<--encoding> UTF-16LE|ASCII"
32931 msgstr ""
32932
32933 # type: textblock
32934 #. type: textblock
32935 #: ../tools/virt-win-reg.pl:173
32936 msgid ""
32937 "When merging (only), you may need to specify the encoding for strings to be "
32938 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32939 "(3)/ENCODING STRINGS>."
32940 msgstr ""
32941
32942 # type: textblock
32943 #. type: textblock
32944 #: ../tools/virt-win-reg.pl:177
32945 msgid ""
32946 "The default is to use UTF-16LE, which should work with recent versions of "
32947 "Windows."
32948 msgstr ""
32949
32950 # type: =head2
32951 #. type: =head1
32952 #: ../tools/virt-win-reg.pl:402
32953 msgid "SUPPORTED SYSTEMS"
32954 msgstr ""
32955
32956 # type: textblock
32957 #. type: textblock
32958 #: ../tools/virt-win-reg.pl:404
32959 msgid ""
32960 "The program currently supports Windows NT-derived guests starting with "
32961 "Windows XP through to at least Windows 7."
32962 msgstr ""
32963
32964 # type: textblock
32965 #. type: textblock
32966 #: ../tools/virt-win-reg.pl:407
32967 msgid ""
32968 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32969 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32970 "and C<HKEY_USERS\\.DEFAULT>."
32971 msgstr ""
32972
32973 # type: textblock
32974 #. type: textblock
32975 #: ../tools/virt-win-reg.pl:411
32976 msgid ""
32977 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32978 "C<HKEY_USERS>."
32979 msgstr ""
32980
32981 # type: textblock
32982 #. type: textblock
32983 #: ../tools/virt-win-reg.pl:414
32984 msgid ""
32985 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32986 "time."
32987 msgstr ""
32988
32989 # type: =head2
32990 #. type: =head1
32991 #: ../tools/virt-win-reg.pl:417
32992 msgid "ENCODING"
32993 msgstr ""
32994
32995 # type: textblock
32996 #. type: textblock
32997 #: ../tools/virt-win-reg.pl:419
32998 msgid ""
32999 "C<virt-win-reg> expects that regedit files have already been reencoded in "
33000 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
33001 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
33002 "Windows-style line endings, you may need to reencode the whole file before "
33003 "or after processing."
33004 msgstr ""
33005
33006 # type: textblock
33007 #. type: textblock
33008 #: ../tools/virt-win-reg.pl:425
33009 msgid ""
33010 "To reencode a file from Windows format to Linux (before processing it with "
33011 "the C<--merge> option), you would do something like this:"
33012 msgstr ""
33013
33014 # type: verbatim
33015 #. type: verbatim
33016 #: ../tools/virt-win-reg.pl:428
33017 #, no-wrap
33018 msgid ""
33019 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
33020 "\n"
33021 msgstr ""
33022
33023 # type: textblock
33024 #. type: textblock
33025 #: ../tools/virt-win-reg.pl:430
33026 msgid ""
33027 "To go in the opposite direction, after exporting and before sending the file "
33028 "to a Windows user, do something like this:"
33029 msgstr ""
33030
33031 # type: verbatim
33032 #. type: verbatim
33033 #: ../tools/virt-win-reg.pl:433
33034 #, no-wrap
33035 msgid ""
33036 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
33037 "\n"
33038 msgstr ""
33039
33040 # type: textblock
33041 #. type: textblock
33042 #: ../tools/virt-win-reg.pl:435
33043 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
33044 msgstr ""
33045
33046 # type: textblock
33047 #. type: textblock
33048 #: ../tools/virt-win-reg.pl:437
33049 msgid ""
33050 "If you are unsure about the current encoding, use the L<file(1)> command.  "
33051 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
33052 "style (CRLF) line endings, like this:"
33053 msgstr ""
33054
33055 # type: verbatim
33056 #. type: verbatim
33057 #: ../tools/virt-win-reg.pl:441
33058 #, no-wrap
33059 msgid ""
33060 " $ file software.reg\n"
33061 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
33062 " with CRLF line terminators\n"
33063 "\n"
33064 msgstr ""
33065
33066 # type: textblock
33067 #. type: textblock
33068 #: ../tools/virt-win-reg.pl:445
33069 msgid "This file would need conversion before you could C<--merge> it."
33070 msgstr ""
33071
33072 # type: =head2
33073 #. type: =head1
33074 #: ../tools/virt-win-reg.pl:447
33075 msgid "CurrentControlSet etc."
33076 msgstr ""
33077
33078 # type: textblock
33079 #. type: textblock
33080 #: ../tools/virt-win-reg.pl:449
33081 msgid ""
33082 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33083 "Registry at the level of the hive file, and therefore you cannot modify "
33084 "these."
33085 msgstr ""
33086
33087 # type: textblock
33088 #. type: textblock
33089 #: ../tools/virt-win-reg.pl:453
33090 msgid ""
33091 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33092 "circumstances it might refer to another control set.  The way to find out is "
33093 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33094 msgstr ""
33095
33096 # type: verbatim
33097 #. type: verbatim
33098 #: ../tools/virt-win-reg.pl:457
33099 #, no-wrap
33100 msgid ""
33101 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33102 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33103 " \"Current\"=dword:00000001\n"
33104 " \"Default\"=dword:00000001\n"
33105 " \"Failed\"=dword:00000000\n"
33106 " \"LastKnownGood\"=dword:00000002\n"
33107 "\n"
33108 msgstr ""
33109
33110 # type: textblock
33111 #. type: textblock
33112 #: ../tools/virt-win-reg.pl:464
33113 msgid "\"Current\" is the one which Windows will choose when it boots."
33114 msgstr ""
33115
33116 # type: textblock
33117 #. type: textblock
33118 #: ../tools/virt-win-reg.pl:466
33119 msgid ""
33120 "Similarly, other C<Current...> keys in the path may need to be replaced."
33121 msgstr ""
33122
33123 # type: =head1
33124 #. type: =head1
33125 #: ../tools/virt-win-reg.pl:469
33126 msgid "WINDOWS TIPS"
33127 msgstr ""
33128
33129 # type: textblock
33130 #. type: textblock
33131 #: ../tools/virt-win-reg.pl:471
33132 msgid ""
33133 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33134 "be shut off, else you will get disk corruption."
33135 msgstr ""
33136
33137 # type: =head2
33138 #. type: =head2
33139 #: ../tools/virt-win-reg.pl:474
33140 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33141 msgstr ""
33142
33143 # type: textblock
33144 #. type: textblock
33145 #: ../tools/virt-win-reg.pl:476
33146 msgid ""
33147 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33148 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33149 "is uploaded into C<C:\\>:"
33150 msgstr ""
33151
33152 # type: verbatim
33153 #. type: verbatim
33154 #: ../tools/virt-win-reg.pl:480
33155 #, no-wrap
33156 msgid ""
33157 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33158 "\n"
33159 msgstr ""
33160
33161 # type: textblock
33162 #. type: textblock
33163 #: ../tools/virt-win-reg.pl:482
33164 msgid "Prepare a regedit file containing the registry change:"
33165 msgstr ""
33166
33167 # type: verbatim
33168 #. type: verbatim
33169 #: ../tools/virt-win-reg.pl:484
33170 #, no-wrap
33171 msgid ""
33172 " cat > test.reg <<'EOF'\n"
33173 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33174 " \"Test\"=\"c:\\\\test.bat\"\n"
33175 " EOF\n"
33176 "\n"
33177 msgstr ""
33178
33179 # type: textblock
33180 #. type: textblock
33181 #: ../tools/virt-win-reg.pl:489
33182 msgid ""
33183 "In this example we use the key C<RunOnce> which means that the script will "
33184 "run precisely once when the first user logs in.  If you want it to run every "
33185 "time a user logs in, replace C<RunOnce> with C<Run>."
33186 msgstr ""
33187
33188 # type: textblock
33189 #. type: textblock
33190 #: ../tools/virt-win-reg.pl:493
33191 msgid "Now update the registry:"
33192 msgstr ""
33193
33194 # type: verbatim
33195 #. type: verbatim
33196 #: ../tools/virt-win-reg.pl:495
33197 #, no-wrap
33198 msgid ""
33199 " virt-win-reg --merge WindowsGuest test.reg\n"
33200 "\n"
33201 msgstr ""
33202
33203 # type: =head2
33204 #. type: =head2
33205 #: ../tools/virt-win-reg.pl:497
33206 msgid "INSTALLING A SERVICE"
33207 msgstr ""
33208
33209 # type: textblock
33210 #. type: textblock
33211 #: ../tools/virt-win-reg.pl:499
33212 msgid ""
33213 "This section assumes you are familiar with Windows services, and you either "
33214 "have a program which handles the Windows Service Control Protocol directly "
33215 "or you want to run any program using a service wrapper like SrvAny or the "
33216 "free RHSrvAny."
33217 msgstr ""
33218
33219 # type: textblock
33220 #. type: textblock
33221 #: ../tools/virt-win-reg.pl:504
33222 msgid ""
33223 "First upload the program and optionally the service wrapper.  In this case "
33224 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33225 msgstr ""
33226
33227 # type: verbatim
33228 #. type: verbatim
33229 #: ../tools/virt-win-reg.pl:508
33230 #, no-wrap
33231 msgid ""
33232 " guestfish -i -d WindowsGuest <<EOF\n"
33233 "   upload rhsrvany.exe /rhsrvany.exe\n"
33234 "   upload test.exe /test.exe\n"
33235 " EOF\n"
33236 "\n"
33237 msgstr ""
33238
33239 # type: textblock
33240 #. type: textblock
33241 #: ../tools/virt-win-reg.pl:513
33242 msgid ""
33243 "Prepare a regedit file containing the registry changes.  In this example, "
33244 "the first registry change is needed for the service itself or the service "
33245 "wrapper (if used).  The second registry change is only needed because I am "
33246 "using the RHSrvAny service wrapper."
33247 msgstr ""
33248
33249 # type: verbatim
33250 #. type: verbatim
33251 #: ../tools/virt-win-reg.pl:518
33252 #, no-wrap
33253 msgid ""
33254 " cat > service.reg <<'EOF'\n"
33255 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33256 " \"Type\"=dword:00000010\n"
33257 " \"Start\"=dword:00000002\n"
33258 " \"ErrorControl\"=dword:00000001\n"
33259 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33260 " \"DisplayName\"=\"RHSrvAny\"\n"
33261 " \"ObjectName\"=\"NetworkService\"\n"
33262 " \n"
33263 msgstr ""
33264
33265 # type: verbatim
33266 #. type: verbatim
33267 #: ../tools/virt-win-reg.pl:527
33268 #, no-wrap
33269 msgid ""
33270 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33271 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33272 " \"PWD\"=\"c:\\\\Temp\"\n"
33273 " EOF\n"
33274 "\n"
33275 msgstr ""
33276
33277 # type: textblock
33278 #. type: textblock
33279 #: ../tools/virt-win-reg.pl:538
33280 msgid ""
33281 "For use of C<ControlSet001> see the section above in this manual page.  You "
33282 "may need to adjust this according to the control set that is in use by the "
33283 "guest."
33284 msgstr ""
33285
33286 # type: textblock
33287 #. type: textblock
33288 #: ../tools/virt-win-reg.pl:544
33289 msgid ""
33290 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33291 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33292 "privileged account."
33293 msgstr ""
33294
33295 # type: textblock
33296 #. type: textblock
33297 #: ../tools/virt-win-reg.pl:550
33298 msgid ""
33299 "For the meaning of the magic numbers, see this Microsoft KB article: "
33300 "L<http://support.microsoft.com/kb/103000>."
33301 msgstr ""
33302
33303 # type: textblock
33304 #. type: textblock
33305 #: ../tools/virt-win-reg.pl:555
33306 msgid "Update the registry:"
33307 msgstr ""
33308
33309 # type: verbatim
33310 #. type: verbatim
33311 #: ../tools/virt-win-reg.pl:557
33312 #, no-wrap
33313 msgid ""
33314 " virt-win-reg --merge WindowsGuest service.reg\n"
33315 "\n"
33316 msgstr ""
33317
33318 # type: textblock
33319 #. type: textblock
33320 #: ../tools/virt-win-reg.pl:561
33321 msgid ""
33322 "Be careful when passing parameters containing C<\\> (backslash) in the "
33323 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33324 "(but not both) to protect them from the shell."
33325 msgstr ""
33326
33327 # type: textblock
33328 #. type: textblock
33329 #: ../tools/virt-win-reg.pl:565
33330 msgid "Paths and value names are case-insensitive."
33331 msgstr ""
33332
33333 # type: textblock
33334 #. type: textblock
33335 #: ../tools/virt-win-reg.pl:574
33336 msgid ""
33337 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33338 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33339 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33340 msgstr ""
33341
33342 # type: textblock
33343 #. type: textblock
33344 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
33345 msgid ""
33346 "When reporting bugs, please enable debugging and capture the I<complete> "
33347 "output:"
33348 msgstr ""
33349
33350 # type: verbatim
33351 #. type: verbatim
33352 #: ../tools/virt-win-reg.pl:592
33353 #, no-wrap
33354 msgid ""
33355 " export LIBGUESTFS_DEBUG=1\n"
33356 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33357 "\n"
33358 msgstr ""
33359
33360 # type: textblock
33361 #. type: textblock
33362 #: ../tools/virt-win-reg.pl:595
33363 msgid ""
33364 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33365 "redhat.com/>"
33366 msgstr ""
33367
33368 # type: textblock
33369 #. type: textblock
33370 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1516
33371 #: ../tools/virt-make-fs.pl:570
33372 msgid "Copyright (C) 2010 Red Hat Inc."
33373 msgstr ""
33374
33375 # type: textblock
33376 #. type: textblock
33377 #: ../tools/virt-resize.pl:42
33378 msgid "virt-resize - Resize a virtual machine disk"
33379 msgstr ""
33380
33381 # type: verbatim
33382 #. type: verbatim
33383 #: ../tools/virt-resize.pl:46
33384 #, no-wrap
33385 msgid ""
33386 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
33387 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
33388 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
33389 "\n"
33390 msgstr ""
33391
33392 # type: textblock
33393 #. type: textblock
33394 #: ../tools/virt-resize.pl:52
33395 msgid ""
33396 "Virt-resize is a tool which can resize a virtual machine disk, making it "
33397 "larger or smaller overall, and resizing or deleting any partitions contained "
33398 "within."
33399 msgstr ""
33400
33401 # type: textblock
33402 #. type: textblock
33403 #: ../tools/virt-resize.pl:56
33404 msgid ""
33405 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
33406 "not> be used on live virtual machines - for consistent results, shut the "
33407 "virtual machine down before resizing it."
33408 msgstr ""
33409
33410 # type: textblock
33411 #. type: textblock
33412 #: ../tools/virt-resize.pl:60
33413 msgid ""
33414 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
33415 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
33416 msgstr ""
33417
33418 # type: textblock
33419 #. type: textblock
33420 #: ../tools/virt-resize.pl:66
33421 msgid ""
33422 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
33423 "fill the extra 5GB of space."
33424 msgstr ""
33425
33426 #. type: verbatim
33427 #: ../tools/virt-resize.pl:69
33428 #, no-wrap
33429 msgid ""
33430 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
33431 " virt-filesystems --long -h --all -a olddisk\n"
33432 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
33433 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
33434 "\n"
33435 msgstr ""
33436
33437 # type: textblock
33438 #. type: textblock
33439 #: ../tools/virt-resize.pl:74
33440 msgid ""
33441 "As above, but make the /boot partition 200MB bigger, while giving the "
33442 "remaining space to /dev/sda2:"
33443 msgstr ""
33444
33445 # type: verbatim
33446 #. type: verbatim
33447 #: ../tools/virt-resize.pl:77
33448 #, no-wrap
33449 msgid ""
33450 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
33451 "\n"
33452 msgstr ""
33453
33454 # type: textblock
33455 #. type: textblock
33456 #: ../tools/virt-resize.pl:79
33457 msgid "As above, but the output format will be uncompressed qcow2:"
33458 msgstr ""
33459
33460 # type: verbatim
33461 #. type: verbatim
33462 #: ../tools/virt-resize.pl:81
33463 #, no-wrap
33464 msgid ""
33465 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
33466 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
33467 "\n"
33468 msgstr ""
33469
33470 # type: =head1
33471 #. type: =head1
33472 #: ../tools/virt-resize.pl:84
33473 msgid "DETAILED USAGE"
33474 msgstr ""
33475
33476 # type: =head2
33477 #. type: =head2
33478 #: ../tools/virt-resize.pl:86
33479 msgid "EXPANDING A VIRTUAL MACHINE DISK"
33480 msgstr ""
33481
33482 # type: =item
33483 #. type: =item
33484 #: ../tools/virt-resize.pl:90
33485 msgid "1. Shut down the virtual machine"
33486 msgstr ""
33487
33488 # type: =item
33489 #. type: =item
33490 #: ../tools/virt-resize.pl:92
33491 msgid "2. Locate input disk image"
33492 msgstr ""
33493
33494 # type: textblock
33495 #. type: textblock
33496 #: ../tools/virt-resize.pl:94
33497 msgid ""
33498 "Locate the input disk image (ie. the file or device on the host containing "
33499 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
33500 "dumpxml> like this to find the disk image name:"
33501 msgstr ""
33502
33503 # type: verbatim
33504 #. type: verbatim
33505 #: ../tools/virt-resize.pl:98
33506 #, no-wrap
33507 msgid ""
33508 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
33509 " Found 1 nodes:\n"
33510 " -- NODE --\n"
33511 " <source dev=\"/dev/vg/lv_guest\" />\n"
33512 "\n"
33513 msgstr ""
33514
33515 # type: =item
33516 #. type: =item
33517 #: ../tools/virt-resize.pl:103
33518 msgid "3. Look at current sizing"
33519 msgstr ""
33520
33521 # type: textblock
33522 #. type: textblock
33523 #: ../tools/virt-resize.pl:105
33524 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
33525 msgstr ""
33526
33527 # type: verbatim
33528 #. type: verbatim
33529 #: ../tools/virt-resize.pl:108
33530 #, no-wrap
33531 msgid ""
33532 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
33533 " Name       Type       Size  Parent\n"
33534 " /dev/sda1  partition  101M  /dev/sda\n"
33535 " /dev/sda2  partition  7.9G  /dev/sda\n"
33536 " /dev/sda   device     8.0G  -\n"
33537 "\n"
33538 msgstr ""
33539
33540 # type: textblock
33541 #. type: textblock
33542 #: ../tools/virt-resize.pl:114
33543 msgid ""
33544 "(This example is a virtual machine with an 8 GB disk which we would like to "
33545 "expand up to 10 GB)."
33546 msgstr ""
33547
33548 # type: =item
33549 #. type: =item
33550 #: ../tools/virt-resize.pl:117
33551 msgid "4. Create output disk"
33552 msgstr ""
33553
33554 # type: textblock
33555 #. type: textblock
33556 #: ../tools/virt-resize.pl:119
33557 msgid ""
33558 "Virt-resize cannot do in-place disk modifications.  You have to have space "
33559 "to store the resized output disk."
33560 msgstr ""
33561
33562 # type: textblock
33563 #. type: textblock
33564 #: ../tools/virt-resize.pl:122
33565 msgid ""
33566 "To store the resized disk image in a file, create a file of a suitable size:"
33567 msgstr ""
33568
33569 # type: verbatim
33570 #. type: verbatim
33571 #: ../tools/virt-resize.pl:125
33572 #, no-wrap
33573 msgid ""
33574 " # rm -f outdisk\n"
33575 " # truncate -s 10G outdisk\n"
33576 "\n"
33577 msgstr ""
33578
33579 # type: textblock
33580 #. type: textblock
33581 #: ../tools/virt-resize.pl:128
33582 msgid "Or use L<lvcreate(1)> to create a logical volume:"
33583 msgstr ""
33584
33585 # type: verbatim
33586 #. type: verbatim
33587 #: ../tools/virt-resize.pl:130
33588 #, no-wrap
33589 msgid ""
33590 " # lvcreate -L 10G -n lv_name vg_name\n"
33591 "\n"
33592 msgstr ""
33593
33594 # type: textblock
33595 #. type: textblock
33596 #: ../tools/virt-resize.pl:132
33597 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
33598 msgstr ""
33599
33600 # type: verbatim
33601 #. type: verbatim
33602 #: ../tools/virt-resize.pl:134
33603 #, no-wrap
33604 msgid ""
33605 " # virsh pool-list\n"
33606 " # virsh vol-create-as poolname newvol 10G\n"
33607 "\n"
33608 msgstr ""
33609
33610 # type: =item
33611 #. type: =item
33612 #: ../tools/virt-resize.pl:137
33613 msgid "5. Resize"
33614 msgstr ""
33615
33616 # type: textblock
33617 #. type: textblock
33618 #: ../tools/virt-resize.pl:139
33619 msgid ""
33620 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
33621 "file) and the output disk.  The output disk is the one created in the "
33622 "previous step."
33623 msgstr ""
33624
33625 # type: verbatim
33626 #. type: verbatim
33627 #: ../tools/virt-resize.pl:143
33628 #, no-wrap
33629 msgid ""
33630 " # virt-resize indisk outdisk\n"
33631 "\n"
33632 msgstr ""
33633
33634 # type: textblock
33635 #. type: textblock
33636 #: ../tools/virt-resize.pl:145
33637 msgid ""
33638 "This command just copies disk image C<indisk> to disk image C<outdisk> "
33639 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
33640 "larger, then an extra, empty partition is created at the end of the disk "
33641 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
33642 "error."
33643 msgstr ""
33644
33645 # type: textblock
33646 #. type: textblock
33647 #: ../tools/virt-resize.pl:151
33648 msgid ""
33649 "More realistically you'd want to expand existing partitions in the disk "
33650 "image by passing extra options (for the full list see the L</OPTIONS> "
33651 "section below)."
33652 msgstr ""
33653
33654 # type: textblock
33655 #. type: textblock
33656 #: ../tools/virt-resize.pl:155
33657 msgid ""
33658 "L</--expand> is the most useful option.  It expands the named partition "
33659 "within the disk to fill any extra space:"
33660 msgstr ""
33661
33662 # type: verbatim
33663 #. type: verbatim
33664 #: ../tools/virt-resize.pl:158
33665 #, no-wrap
33666 msgid ""
33667 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
33668 "\n"
33669 msgstr ""
33670
33671 # type: textblock
33672 #. type: textblock
33673 #: ../tools/virt-resize.pl:160
33674 msgid ""
33675 "(In this case, an extra partition is I<not> created at the end of the disk, "
33676 "because there will be no unused space)."
33677 msgstr ""
33678
33679 # type: textblock
33680 #. type: textblock
33681 #: ../tools/virt-resize.pl:163
33682 msgid ""
33683 "L</--resize> is the other commonly used option.  The following would "
33684 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
33685 "rest of the available space:"
33686 msgstr ""
33687
33688 # type: verbatim
33689 #. type: verbatim
33690 #: ../tools/virt-resize.pl:167
33691 #, no-wrap
33692 msgid ""
33693 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
33694 "     indisk outdisk\n"
33695 "\n"
33696 msgstr ""
33697
33698 # type: textblock
33699 #. type: textblock
33700 #: ../tools/virt-resize.pl:170
33701 msgid ""
33702 "If the expanded partition in the image contains a filesystem or LVM PV, then "
33703 "if virt-resize knows how, it will resize the contents, the equivalent of "
33704 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
33705 ">.  However virt-resize does not know how to resize some filesystems, so you "
33706 "would have to online resize them after booting the guest."
33707 msgstr ""
33708
33709 # type: textblock
33710 #. type: textblock
33711 #: ../tools/virt-resize.pl:177
33712 msgid "Other options are covered below."
33713 msgstr ""
33714
33715 # type: =item
33716 #. type: =item
33717 #: ../tools/virt-resize.pl:179
33718 msgid "6. Test"
33719 msgstr ""
33720
33721 # type: textblock
33722 #. type: textblock
33723 #: ../tools/virt-resize.pl:181
33724 msgid "Thoroughly test the new disk image I<before> discarding the old one."
33725 msgstr ""
33726
33727 # type: textblock
33728 #. type: textblock
33729 #: ../tools/virt-resize.pl:183
33730 msgid "If you are using libvirt, edit the XML to point at the new disk:"
33731 msgstr ""
33732
33733 # type: verbatim
33734 #. type: verbatim
33735 #: ../tools/virt-resize.pl:185
33736 #, no-wrap
33737 msgid ""
33738 " # virsh edit guestname\n"
33739 "\n"
33740 msgstr ""
33741
33742 # type: textblock
33743 #. type: textblock
33744 #: ../tools/virt-resize.pl:187
33745 msgid ""
33746 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
33747 "html#elementsDisks>"
33748 msgstr ""
33749
33750 # type: textblock
33751 #. type: textblock
33752 #: ../tools/virt-resize.pl:190
33753 msgid "Then start up the domain with the new, resized disk:"
33754 msgstr ""
33755
33756 # type: verbatim
33757 #. type: verbatim
33758 #: ../tools/virt-resize.pl:192
33759 #, no-wrap
33760 msgid ""
33761 " # virsh start guestname\n"
33762 "\n"
33763 msgstr ""
33764
33765 # type: textblock
33766 #. type: textblock
33767 #: ../tools/virt-resize.pl:194
33768 msgid ""
33769 "and check that it still works.  See also the L</NOTES> section below for "
33770 "additional information."
33771 msgstr ""
33772
33773 # type: =item
33774 #. type: =item
33775 #: ../tools/virt-resize.pl:197
33776 msgid "7. Resize LVs etc inside the guest"
33777 msgstr ""
33778
33779 # type: textblock
33780 #. type: textblock
33781 #: ../tools/virt-resize.pl:199
33782 msgid "(This can also be done offline using L<guestfish(1)>)"
33783 msgstr ""
33784
33785 # type: textblock
33786 #. type: textblock
33787 #: ../tools/virt-resize.pl:201
33788 msgid ""
33789 "Once the guest has booted you should see the new space available, at least "
33790 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
33791 "may need to resize LVs inside PVs, and also resize filesystem types that "
33792 "virt-resize does not know how to expand."
33793 msgstr ""
33794
33795 # type: =head2
33796 #. type: =head2
33797 #: ../tools/virt-resize.pl:208
33798 msgid "SHRINKING A VIRTUAL MACHINE DISK"
33799 msgstr ""
33800
33801 # type: textblock
33802 #. type: textblock
33803 #: ../tools/virt-resize.pl:210
33804 msgid ""
33805 "Shrinking is somewhat more complex than expanding, and only an overview is "
33806 "given here."
33807 msgstr ""
33808
33809 # type: textblock
33810 #. type: textblock
33811 #: ../tools/virt-resize.pl:213
33812 msgid ""
33813 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
33814 "filesystems).  The user has to shrink content before passing the disk image "
33815 "to virt-resize, and virt-resize will check that the content has been shrunk "
33816 "properly."
33817 msgstr ""
33818
33819 # type: textblock
33820 #. type: textblock
33821 #: ../tools/virt-resize.pl:218
33822 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
33823 msgstr ""
33824
33825 # type: textblock
33826 #. type: textblock
33827 #: ../tools/virt-resize.pl:220
33828 msgid ""
33829 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
33830 "steps 3 and 4 above to allocate a new disk image."
33831 msgstr ""
33832
33833 # type: textblock
33834 #. type: textblock
33835 #: ../tools/virt-resize.pl:223
33836 msgid ""
33837 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
33838 msgstr ""
33839
33840 # type: =head2
33841 #. type: =head2
33842 #: ../tools/virt-resize.pl:226
33843 msgid "IGNORING OR DELETING PARTITIONS"
33844 msgstr ""
33845
33846 # type: textblock
33847 #. type: textblock
33848 #: ../tools/virt-resize.pl:228
33849 msgid ""
33850 "virt-resize also gives a convenient way to ignore or delete partitions when "
33851 "copying from the input disk to the output disk.  Ignoring a partition speeds "
33852 "up the copy where you don't care about the existing contents of a "
33853 "partition.  Deleting a partition removes it completely, but note that it "
33854 "also renumbers any partitions after the one which is deleted, which can "
33855 "leave some guests unbootable."
33856 msgstr ""
33857
33858 # type: =head2
33859 #. type: =head2
33860 #: ../tools/virt-resize.pl:235
33861 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
33862 msgstr ""
33863
33864 # type: textblock
33865 #. type: textblock
33866 #: ../tools/virt-resize.pl:237
33867 msgid ""
33868 "If the input disk is in qcow2 format, then you may prefer that the output is "
33869 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
33870 "the fly.  The output format is simply determined by the format of the empty "
33871 "output container that you provide.  Thus to create qcow2 output, use:"
33872 msgstr ""
33873
33874 # type: verbatim
33875 #. type: verbatim
33876 #: ../tools/virt-resize.pl:243
33877 #, no-wrap
33878 msgid ""
33879 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
33880 "\n"
33881 msgstr ""
33882
33883 # type: textblock
33884 #. type: textblock
33885 #: ../tools/virt-resize.pl:245
33886 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
33887 msgstr ""
33888
33889 # type: textblock
33890 #. type: textblock
33891 #: ../tools/virt-resize.pl:247
33892 msgid "Similarly, to get non-sparse raw output use:"
33893 msgstr ""
33894
33895 # type: verbatim
33896 #. type: verbatim
33897 #: ../tools/virt-resize.pl:249
33898 #, no-wrap
33899 msgid ""
33900 " fallocate -l size outdisk\n"
33901 "\n"
33902 msgstr ""
33903
33904 # type: textblock
33905 #. type: textblock
33906 #: ../tools/virt-resize.pl:251
33907 msgid ""
33908 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
33909 "dev/zero of=outdisk bs=1M count=..>)"
33910 msgstr ""
33911
33912 # type: textblock
33913 #. type: textblock
33914 #: ../tools/virt-resize.pl:264
33915 msgid "Display help."
33916 msgstr ""
33917
33918 # type: =item
33919 #. type: =item
33920 #: ../tools/virt-resize.pl:278
33921 msgid "B<--resize part=size>"
33922 msgstr ""
33923
33924 # type: textblock
33925 #. type: textblock
33926 #: ../tools/virt-resize.pl:280
33927 msgid ""
33928 "Resize the named partition (expanding or shrinking it) so that it has the "
33929 "given size."
33930 msgstr ""
33931
33932 # type: textblock
33933 #. type: textblock
33934 #: ../tools/virt-resize.pl:283
33935 msgid ""
33936 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
33937 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
33938 "Exabytes; or as a percentage of the current size; or as a relative number or "
33939 "percentage.  For example:"
33940 msgstr ""
33941
33942 # type: verbatim
33943 #. type: verbatim
33944 #: ../tools/virt-resize.pl:288
33945 #, no-wrap
33946 msgid ""
33947 " --resize /dev/sda2=10G\n"
33948 "\n"
33949 msgstr ""
33950
33951 # type: verbatim
33952 #. type: verbatim
33953 #: ../tools/virt-resize.pl:290
33954 #, no-wrap
33955 msgid ""
33956 " --resize /dev/sda4=90%\n"
33957 "\n"
33958 msgstr ""
33959
33960 # type: verbatim
33961 #. type: verbatim
33962 #: ../tools/virt-resize.pl:292
33963 #, no-wrap
33964 msgid ""
33965 " --resize /dev/sda2=+1G\n"
33966 "\n"
33967 msgstr ""
33968
33969 # type: verbatim
33970 #. type: verbatim
33971 #: ../tools/virt-resize.pl:294
33972 #, no-wrap
33973 msgid ""
33974 " --resize /dev/sda2=-200M\n"
33975 "\n"
33976 msgstr ""
33977
33978 # type: verbatim
33979 #. type: verbatim
33980 #: ../tools/virt-resize.pl:296
33981 #, no-wrap
33982 msgid ""
33983 " --resize /dev/sda1=+128K\n"
33984 "\n"
33985 msgstr ""
33986
33987 # type: verbatim
33988 #. type: verbatim
33989 #: ../tools/virt-resize.pl:298
33990 #, no-wrap
33991 msgid ""
33992 " --resize /dev/sda1=+10%\n"
33993 "\n"
33994 msgstr ""
33995
33996 # type: verbatim
33997 #. type: verbatim
33998 #: ../tools/virt-resize.pl:300
33999 #, no-wrap
34000 msgid ""
34001 " --resize /dev/sda1=-10%\n"
34002 "\n"
34003 msgstr ""
34004
34005 # type: textblock
34006 #. type: textblock
34007 #: ../tools/virt-resize.pl:302
34008 msgid ""
34009 "You can increase the size of any partition.  Virt-resize will expand the "
34010 "direct content of the partition if it knows how (see C<--expand> below)."
34011 msgstr ""
34012
34013 # type: textblock
34014 #. type: textblock
34015 #: ../tools/virt-resize.pl:306
34016 msgid ""
34017 "You can only I<decrease> the size of partitions that contain filesystems or "
34018 "PVs which have already been shrunk.  Virt-resize will check this has been "
34019 "done before proceeding, or else will print an error (see also C<--resize-"
34020 "force>)."
34021 msgstr ""
34022
34023 # type: textblock
34024 #. type: textblock
34025 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
34026 #: ../tools/virt-resize.pl:420
34027 msgid "You can give this option multiple times."
34028 msgstr ""
34029
34030 # type: =item
34031 #. type: =item
34032 #: ../tools/virt-resize.pl:317
34033 msgid "B<--resize-force part=size>"
34034 msgstr ""
34035
34036 # type: textblock
34037 #. type: textblock
34038 #: ../tools/virt-resize.pl:319
34039 msgid ""
34040 "This is the same as C<--resize> except that it will let you decrease the "
34041 "size of any partition.  Generally this means you will lose any data which "
34042 "was at the end of the partition you shrink, but you may not care about that "
34043 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
34044 "as a swap partition)."
34045 msgstr ""
34046
34047 # type: textblock
34048 #. type: textblock
34049 #: ../tools/virt-resize.pl:325
34050 msgid "See also the C<--ignore> option."
34051 msgstr ""
34052
34053 # type: =item
34054 #. type: =item
34055 #: ../tools/virt-resize.pl:331
34056 msgid "B<--expand part>"
34057 msgstr ""
34058
34059 # type: textblock
34060 #. type: textblock
34061 #: ../tools/virt-resize.pl:333
34062 msgid ""
34063 "Expand the named partition so it uses up all extra space (space left over "
34064 "after any other resize changes that you request have been done)."
34065 msgstr ""
34066
34067 # type: textblock
34068 #. type: textblock
34069 #: ../tools/virt-resize.pl:336
34070 msgid ""
34071 "If virt-resize knows how, it will expand the direct content of the "
34072 "partition.  For example, if the partition is an LVM PV, it will expand the "
34073 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
34074 "content it doesn't know about alone."
34075 msgstr ""
34076
34077 # type: textblock
34078 #. type: textblock
34079 #: ../tools/virt-resize.pl:341
34080 msgid "Currently virt-resize can resize:"
34081 msgstr ""
34082
34083 # type: textblock
34084 #. type: textblock
34085 #: ../tools/virt-resize.pl:347
34086 msgid ""
34087 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
34088 "partition."
34089 msgstr ""
34090
34091 # type: textblock
34092 #. type: textblock
34093 #: ../tools/virt-resize.pl:352
34094 msgid ""
34095 "NTFS filesystems contained directly in a partition, if libguestfs was "
34096 "compiled with support for NTFS."
34097 msgstr ""
34098
34099 # type: textblock
34100 #. type: textblock
34101 #: ../tools/virt-resize.pl:355
34102 msgid ""
34103 "The filesystem must have been shut down consistently last time it was used.  "
34104 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
34105 "consistency check, so at the first boot after resizing Windows will check "
34106 "the disk."
34107 msgstr ""
34108
34109 # type: textblock
34110 #. type: textblock
34111 #: ../tools/virt-resize.pl:362
34112 msgid ""
34113 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
34114 "inside the PV, but see the C<--LV-expand> option.  The user could also "
34115 "resize LVs as desired after boot."
34116 msgstr ""
34117
34118 # type: textblock
34119 #. type: textblock
34120 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
34121 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
34122 msgstr ""
34123
34124 # type: =item
34125 #. type: =item
34126 #: ../tools/virt-resize.pl:374
34127 msgid "B<--shrink part>"
34128 msgstr ""
34129
34130 # type: textblock
34131 #. type: textblock
34132 #: ../tools/virt-resize.pl:376
34133 msgid ""
34134 "Shrink the named partition until the overall disk image fits in the "
34135 "destination.  The named partition B<must> contain a filesystem or PV which "
34136 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
34137 "online tools).  Virt-resize will check this and give an error if it has not "
34138 "been done."
34139 msgstr ""
34140
34141 # type: textblock
34142 #. type: textblock
34143 #: ../tools/virt-resize.pl:382
34144 msgid ""
34145 "The amount by which the overall disk must be shrunk (after carrying out all "
34146 "other operations requested by the user) is called the \"deficit\".  For "
34147 "example, a straight copy (assume no other operations)  from a 5GB disk image "
34148 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
34149 "would give an error unless the user specified a partition to shrink and that "
34150 "partition had more than a gigabyte of free space."
34151 msgstr ""
34152
34153 # type: =item
34154 #. type: =item
34155 #: ../tools/virt-resize.pl:396
34156 msgid "B<--ignore part>"
34157 msgstr ""
34158
34159 # type: textblock
34160 #. type: textblock
34161 #: ../tools/virt-resize.pl:398
34162 msgid ""
34163 "Ignore the named partition.  Effectively this means the partition is "
34164 "allocated on the destination disk, but the content is not copied across from "
34165 "the source disk.  The content of the partition will be blank (all zero "
34166 "bytes)."
34167 msgstr ""
34168
34169 # type: =item
34170 #. type: =item
34171 #: ../tools/virt-resize.pl:409
34172 msgid "B<--delete part>"
34173 msgstr ""
34174
34175 # type: textblock
34176 #. type: textblock
34177 #: ../tools/virt-resize.pl:411
34178 msgid ""
34179 "Delete the named partition.  It would be more accurate to describe this as "
34180 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
34181 "the original disk image is left intact."
34182 msgstr ""
34183
34184 # type: textblock
34185 #. type: textblock
34186 #: ../tools/virt-resize.pl:415
34187 msgid ""
34188 "Note that when you delete a partition, then anything contained in the "
34189 "partition is also deleted.  Furthermore, this causes any partitions that "
34190 "come after to be I<renumbered>, which can easily make your guest unbootable."
34191 msgstr ""
34192
34193 # type: =item
34194 #. type: =item
34195 #: ../tools/virt-resize.pl:426
34196 msgid "B<--LV-expand logvol>"
34197 msgstr ""
34198
34199 # type: textblock
34200 #. type: textblock
34201 #: ../tools/virt-resize.pl:428
34202 msgid ""
34203 "This takes the logical volume and, as a final step, expands it to fill all "
34204 "the space available in its volume group.  A typical usage, assuming a Linux "
34205 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
34206 "lv_root> would be:"
34207 msgstr ""
34208
34209 # type: verbatim
34210 #. type: verbatim
34211 #: ../tools/virt-resize.pl:433
34212 #, no-wrap
34213 msgid ""
34214 " virt-resize indisk outdisk \\\n"
34215 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
34216 "\n"
34217 msgstr ""
34218
34219 # type: textblock
34220 #. type: textblock
34221 #: ../tools/virt-resize.pl:436
34222 msgid ""
34223 "This would first expand the partition (and PV), and then expand the root "
34224 "device to fill the extra space in the PV."
34225 msgstr ""
34226
34227 # type: textblock
34228 #. type: textblock
34229 #: ../tools/virt-resize.pl:439
34230 msgid ""
34231 "The contents of the LV are also resized if virt-resize knows how to do "
34232 "that.  You can stop virt-resize from trying to expand the content by using "
34233 "the option C<--no-expand-content>."
34234 msgstr ""
34235
34236 # type: textblock
34237 #. type: textblock
34238 #: ../tools/virt-resize.pl:443
34239 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
34240 msgstr ""
34241
34242 # type: textblock
34243 #. type: textblock
34244 #: ../tools/virt-resize.pl:446
34245 msgid ""
34246 "You can give this option multiple times, I<but> it doesn't make sense to do "
34247 "this unless the logical volumes you specify are all in different volume "
34248 "groups."
34249 msgstr ""
34250
34251 # type: =item
34252 #. type: =item
34253 #: ../tools/virt-resize.pl:454
34254 msgid "B<--no-copy-boot-loader>"
34255 msgstr ""
34256
34257 # type: textblock
34258 #. type: textblock
34259 #: ../tools/virt-resize.pl:456
34260 msgid ""
34261 "By default, virt-resize copies over some sectors at the start of the disk "
34262 "(up to the beginning of the first partition).  Commonly these sectors "
34263 "contain the Master Boot Record (MBR) and the boot loader, and are required "
34264 "in order for the guest to boot correctly."
34265 msgstr ""
34266
34267 # type: textblock
34268 #. type: textblock
34269 #: ../tools/virt-resize.pl:461
34270 msgid ""
34271 "If you specify this flag, then this initial copy is not done.  You may need "
34272 "to reinstall the boot loader in this case."
34273 msgstr ""
34274
34275 # type: =item
34276 #. type: =item
34277 #: ../tools/virt-resize.pl:469
34278 msgid "B<--no-extra-partition>"
34279 msgstr ""
34280
34281 # type: textblock
34282 #. type: textblock
34283 #: ../tools/virt-resize.pl:471
34284 msgid ""
34285 "By default, virt-resize creates an extra partition if there is any extra, "
34286 "unused space after all resizing has happened.  Use this option to prevent "
34287 "the extra partition from being created.  If you do this then the extra space "
34288 "will be inaccessible until you run fdisk, parted, or some other partitioning "
34289 "tool in the guest."
34290 msgstr ""
34291
34292 # type: textblock
34293 #. type: textblock
34294 #: ../tools/virt-resize.pl:477
34295 msgid ""
34296 "Note that if the surplus space is smaller than 10 MB, no extra partition "
34297 "will be created."
34298 msgstr ""
34299
34300 # type: =item
34301 #. type: =item
34302 #: ../tools/virt-resize.pl:484
34303 msgid "B<--no-expand-content>"
34304 msgstr ""
34305
34306 # type: textblock
34307 #. type: textblock
34308 #: ../tools/virt-resize.pl:486
34309 msgid ""
34310 "By default, virt-resize will try to expand the direct contents of "
34311 "partitions, if it knows how (see C<--expand> option above)."
34312 msgstr ""
34313
34314 # type: textblock
34315 #. type: textblock
34316 #: ../tools/virt-resize.pl:489
34317 msgid ""
34318 "If you give the C<--no-expand-content> option then virt-resize will not "
34319 "attempt this."
34320 msgstr ""
34321
34322 # type: =item
34323 #. type: =item
34324 #: ../tools/virt-resize.pl:496
34325 msgid "B<-d> | B<--debug>"
34326 msgstr ""
34327
34328 # type: =item
34329 #. type: =item
34330 #: ../tools/virt-resize.pl:504
34331 msgid "B<-n> | B<--dryrun>"
34332 msgstr ""
34333
34334 # type: textblock
34335 #. type: textblock
34336 #: ../tools/virt-resize.pl:506
34337 msgid "Print a summary of what would be done, but don't do anything."
34338 msgstr ""
34339
34340 # type: =item
34341 #. type: =item
34342 #: ../tools/virt-resize.pl:512
34343 msgid "B<-q> | B<--quiet>"
34344 msgstr ""
34345
34346 # type: textblock
34347 #. type: textblock
34348 #: ../tools/virt-resize.pl:514
34349 msgid "Don't print the summary."
34350 msgstr ""
34351
34352 # type: textblock
34353 #. type: textblock
34354 #: ../tools/virt-resize.pl:522
34355 msgid ""
34356 "Specify the format of the input disk image.  If this flag is not given then "
34357 "it is auto-detected from the image itself."
34358 msgstr ""
34359
34360 # type: textblock
34361 #. type: textblock
34362 #: ../tools/virt-resize.pl:528
34363 msgid ""
34364 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
34365 "AND NON-SPARSE RAW FORMATS>."
34366 msgstr ""
34367
34368 # type: =item
34369 #. type: =item
34370 #: ../tools/virt-resize.pl:535
34371 msgid "B<--output-format> raw"
34372 msgstr ""
34373
34374 # type: textblock
34375 #. type: textblock
34376 #: ../tools/virt-resize.pl:537
34377 msgid ""
34378 "Specify the format of the output disk image.  If this flag is not given then "
34379 "it is auto-detected from the image itself."
34380 msgstr ""
34381
34382 # type: textblock
34383 #. type: textblock
34384 #: ../tools/virt-resize.pl:543
34385 msgid ""
34386 "Note that you still need to create the output disk with the right format.  "
34387 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
34388 msgstr ""
34389
34390 # type: =head1
34391 #. type: =head1
34392 #: ../tools/virt-resize.pl:1425
34393 msgid "NOTES"
34394 msgstr ""
34395
34396 # type: =head2
34397 #. type: =head2
34398 #: ../tools/virt-resize.pl:1427
34399 msgid "\"Partition 1 does not end on cylinder boundary.\""
34400 msgstr ""
34401
34402 # type: textblock
34403 #. type: textblock
34404 #: ../tools/virt-resize.pl:1429
34405 msgid ""
34406 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
34407 "means the partitions will not be aligned to the ancient CHS geometry.  "
34408 "However CHS geometry is meaningless for disks manufactured since the early "
34409 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
34410 "cylinders is not required by any modern operating system."
34411 msgstr ""
34412
34413 # type: =head2
34414 #. type: =head2
34415 #: ../tools/virt-resize.pl:1436
34416 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
34417 msgstr ""
34418
34419 # type: textblock
34420 #. type: textblock
34421 #: ../tools/virt-resize.pl:1438
34422 msgid ""
34423 "In Windows Vista and later versions, Microsoft switched to using a separate "
34424 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
34425 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
34426 "the boot partition.  Doing so seems to break the guest completely.  However "
34427 "expanding the second partition (ie. C: drive) should work."
34428 msgstr ""
34429
34430 # type: textblock
34431 #. type: textblock
34432 #: ../tools/virt-resize.pl:1445
34433 msgid ""
34434 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
34435 "NTFS partitions have been expanded.  This is just a safety check and (unless "
34436 "it find errors) is nothing to worry about."
34437 msgstr ""
34438
34439 # type: =head2
34440 #. type: =head2
34441 #: ../tools/virt-resize.pl:1449
34442 msgid "GUEST BOOT STUCK AT \"GRUB\""
34443 msgstr ""
34444
34445 # type: textblock
34446 #. type: textblock
34447 #: ../tools/virt-resize.pl:1451
34448 msgid ""
34449 "If a Linux guest does not boot after resizing, and the boot is stuck after "
34450 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
34451 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
34452 "although we think is to do with partition alignment."
34453 msgstr ""
34454
34455 # type: verbatim
34456 #. type: verbatim
34457 #: ../tools/virt-resize.pl:1456
34458 #, no-wrap
34459 msgid ""
34460 " guestfish -i -a newdisk\n"
34461 " ><fs> cat /boot/grub/device.map\n"
34462 " # check the contents of this file are sensible or\n"
34463 " # edit the file if necessary\n"
34464 " ><fs> grub-install / /dev/vda\n"
34465 " ><fs> exit\n"
34466 "\n"
34467 msgstr ""
34468
34469 # type: textblock
34470 #. type: textblock
34471 #: ../tools/virt-resize.pl:1463
34472 msgid ""
34473 "For more flexible guest reconfiguration, including if you need to specify "
34474 "other parameters to grub-install, use L<virt-rescue(1)>."
34475 msgstr ""
34476
34477 # type: =head1
34478 #. type: =head1
34479 #: ../tools/virt-resize.pl:1466
34480 msgid "ALTERNATIVE TOOLS"
34481 msgstr ""
34482
34483 # type: textblock
34484 #. type: textblock
34485 #: ../tools/virt-resize.pl:1468
34486 msgid ""
34487 "There are several proprietary tools for resizing partitions.  We won't "
34488 "mention any here."
34489 msgstr ""
34490
34491 # type: textblock
34492 #. type: textblock
34493 #: ../tools/virt-resize.pl:1471
34494 msgid ""
34495 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
34496 "operations on disk images.  They can resize and move partitions, but I don't "
34497 "think they can do anything with the contents, and they certainly don't "
34498 "understand LVM."
34499 msgstr ""
34500
34501 # type: textblock
34502 #. type: textblock
34503 #: ../tools/virt-resize.pl:1476
34504 msgid ""
34505 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
34506 "but at a much lower level.  You will probably end up hand-calculating sector "
34507 "offsets, which is something that virt-resize was designed to avoid.  If you "
34508 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
34509 "C<--debug> flag."
34510 msgstr ""
34511
34512 # type: textblock
34513 #. type: textblock
34514 #: ../tools/virt-resize.pl:1491
34515 msgid ""
34516 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
34517 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
34518 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
34519 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
34520 "libguestfs.org/>."
34521 msgstr ""
34522
34523 # type: textblock
34524 #. type: textblock
34525 #: ../tools/virt-list-filesystems.pl:32
34526 msgid ""
34527 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
34528 msgstr ""
34529
34530 # type: verbatim
34531 #. type: verbatim
34532 #: ../tools/virt-list-filesystems.pl:36
34533 #, no-wrap
34534 msgid ""
34535 " virt-list-filesystems [--options] domname\n"
34536 "\n"
34537 msgstr ""
34538
34539 # type: verbatim
34540 #. type: verbatim
34541 #: ../tools/virt-list-filesystems.pl:38
34542 #, no-wrap
34543 msgid ""
34544 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
34545 "\n"
34546 msgstr ""
34547
34548 # type: textblock
34549 #. type: textblock
34550 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
34551 msgid ""
34552 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
34553 "replacement."
34554 msgstr ""
34555
34556 # type: textblock
34557 #. type: textblock
34558 #: ../tools/virt-list-filesystems.pl:45
34559 msgid ""
34560 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
34561 "are contained in a virtual machine or disk image."
34562 msgstr ""
34563
34564 # type: textblock
34565 #. type: textblock
34566 #: ../tools/virt-list-filesystems.pl:49
34567 msgid ""
34568 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
34569 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34570 "> tool."
34571 msgstr ""
34572
34573 # type: =item
34574 #. type: =item
34575 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
34576 msgid "B<-l> | B<--long>"
34577 msgstr ""
34578
34579 # type: textblock
34580 #. type: textblock
34581 #: ../tools/virt-list-filesystems.pl:108
34582 msgid ""
34583 "With this option, C<virt-list-filesystems> displays the type of each "
34584 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
34585 msgstr ""
34586
34587 # type: =item
34588 #. type: =item
34589 #: ../tools/virt-list-filesystems.pl:115
34590 msgid "B<-a> | B<--all>"
34591 msgstr ""
34592
34593 # type: textblock
34594 #. type: textblock
34595 #: ../tools/virt-list-filesystems.pl:117
34596 msgid ""
34597 "Normally we only show mountable filesystems.  If this option is given then "
34598 "swap devices are shown too."
34599 msgstr ""
34600
34601 # type: textblock
34602 #. type: textblock
34603 #: ../tools/virt-list-filesystems.pl:191
34604 msgid ""
34605 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34606 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34607 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34608 msgstr ""
34609
34610 # type: textblock
34611 #. type: textblock
34612 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34613 msgid "Copyright (C) 2009 Red Hat Inc."
34614 msgstr ""
34615
34616 # type: textblock
34617 #. type: textblock
34618 #: ../tools/virt-tar.pl:33
34619 msgid "virt-tar - Extract or upload files to a virtual machine"
34620 msgstr ""
34621
34622 # type: verbatim
34623 #. type: verbatim
34624 #: ../tools/virt-tar.pl:37
34625 #, no-wrap
34626 msgid ""
34627 " virt-tar [--options] -x domname directory tarball\n"
34628 "\n"
34629 msgstr ""
34630
34631 # type: verbatim
34632 #. type: verbatim
34633 #: ../tools/virt-tar.pl:39
34634 #, no-wrap
34635 msgid ""
34636 " virt-tar [--options] -u domname tarball directory\n"
34637 "\n"
34638 msgstr ""
34639
34640 # type: verbatim
34641 #. type: verbatim
34642 #: ../tools/virt-tar.pl:41
34643 #, no-wrap
34644 msgid ""
34645 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34646 "\n"
34647 msgstr ""
34648
34649 # type: verbatim
34650 #. type: verbatim
34651 #: ../tools/virt-tar.pl:43
34652 #, no-wrap
34653 msgid ""
34654 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34655 "\n"
34656 msgstr ""
34657
34658 #. type: textblock
34659 #: ../tools/virt-tar.pl:47
34660 msgid ""
34661 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34662 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34663 msgstr ""
34664
34665 # type: textblock
34666 #. type: textblock
34667 #: ../tools/virt-tar.pl:52
34668 msgid "Download C</home> from the VM into a local tarball:"
34669 msgstr ""
34670
34671 # type: verbatim
34672 #. type: verbatim
34673 #: ../tools/virt-tar.pl:54
34674 #, no-wrap
34675 msgid ""
34676 " virt-tar -x domname /home home.tar\n"
34677 "\n"
34678 msgstr ""
34679
34680 # type: verbatim
34681 #. type: verbatim
34682 #: ../tools/virt-tar.pl:56
34683 #, no-wrap
34684 msgid ""
34685 " virt-tar -zx domname /home home.tar.gz\n"
34686 "\n"
34687 msgstr ""
34688
34689 # type: textblock
34690 #. type: textblock
34691 #: ../tools/virt-tar.pl:58
34692 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34693 msgstr ""
34694
34695 # type: verbatim
34696 #. type: verbatim
34697 #: ../tools/virt-tar.pl:60
34698 #, no-wrap
34699 msgid ""
34700 " virt-tar -u domname uploadstuff.tar /tmp\n"
34701 "\n"
34702 msgstr ""
34703
34704 # type: verbatim
34705 #. type: verbatim
34706 #: ../tools/virt-tar.pl:62
34707 #, no-wrap
34708 msgid ""
34709 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34710 "\n"
34711 msgstr ""
34712
34713 # type: textblock
34714 #. type: textblock
34715 #: ../tools/virt-tar.pl:66
34716 msgid ""
34717 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
34718 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34719 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34720 msgstr ""
34721
34722 # type: textblock
34723 #. type: textblock
34724 #: ../tools/virt-tar.pl:71
34725 msgid ""
34726 "You can use C<-x> (extract) on live virtual machines, but you might get "
34727 "inconsistent results or errors if there is filesystem activity inside the "
34728 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34729 "work, but the only way to guarantee consistent results is if the virtual "
34730 "machine is shut down."
34731 msgstr ""
34732
34733 # type: textblock
34734 #. type: textblock
34735 #: ../tools/virt-tar.pl:79
34736 msgid ""
34737 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34738 "parts of a guest filesystem.  There are many possibilities: making backups, "
34739 "uploading data files, snooping on guest activity, fixing or customizing "
34740 "guests, etc."
34741 msgstr ""
34742
34743 # type: textblock
34744 #. type: textblock
34745 #: ../tools/virt-tar.pl:84
34746 msgid ""
34747 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34748 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34749 "should look at the L<guestfish(1)> tool."
34750 msgstr ""
34751
34752 # type: textblock
34753 #. type: textblock
34754 #: ../tools/virt-tar.pl:88
34755 msgid ""
34756 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
34757 "its contents (recursively) from the virtual machine into a local tarball.  "
34758 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
34759 "virtual machine.  You cannot use these two options together."
34760 msgstr ""
34761
34762 # type: textblock
34763 #. type: textblock
34764 #: ../tools/virt-tar.pl:94
34765 msgid ""
34766 "In addition, you may need to use the C<-z> (gZip) option to enable "
34767 "compression.  When uploading, you have to specify C<-z> if the upload file "
34768 "is compressed because virt-tar won't detect this on its own."
34769 msgstr ""
34770
34771 # type: textblock
34772 #. type: textblock
34773 #: ../tools/virt-tar.pl:98
34774 msgid ""
34775 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34776 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34777 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34778 "the L<libguestfs(3)> API)."
34779 msgstr ""
34780
34781 # type: =item
34782 #. type: =item
34783 #: ../tools/virt-tar.pl:156
34784 msgid "B<-x> | B<--extract> | B<--download>"
34785 msgstr ""
34786
34787 # type: =item
34788 #. type: =item
34789 #: ../tools/virt-tar.pl:158
34790 msgid "B<-u> | B<--upload>"
34791 msgstr ""
34792
34793 # type: textblock
34794 #. type: textblock
34795 #: ../tools/virt-tar.pl:160
34796 msgid ""
34797 "Use C<-x> to extract (download) a directory from a virtual machine to a "
34798 "local tarball."
34799 msgstr ""
34800
34801 # type: textblock
34802 #. type: textblock
34803 #: ../tools/virt-tar.pl:163
34804 msgid ""
34805 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
34806 "Please read the L</WARNING> section above before using this option."
34807 msgstr ""
34808
34809 # type: textblock
34810 #. type: textblock
34811 #: ../tools/virt-tar.pl:167
34812 msgid "You must specify exactly one of these options."
34813 msgstr ""
34814
34815 # type: =item
34816 #. type: =item
34817 #: ../tools/virt-tar.pl:173
34818 msgid "B<-z> | B<--gzip>"
34819 msgstr ""
34820
34821 # type: textblock
34822 #. type: textblock
34823 #: ../tools/virt-tar.pl:175
34824 msgid "Specify that the input or output tarball is gzip-compressed."
34825 msgstr ""
34826
34827 #. type: textblock
34828 #: ../tools/virt-tar.pl:288
34829 msgid ""
34830 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34831 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34832 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34833 "org/>."
34834 msgstr ""
34835
34836 # type: textblock
34837 #. type: textblock
34838 #: ../tools/virt-make-fs.pl:37
34839 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34840 msgstr ""
34841
34842 # type: verbatim
34843 #. type: verbatim
34844 #: ../tools/virt-make-fs.pl:41
34845 #, no-wrap
34846 msgid ""
34847 " virt-make-fs [--options] input.tar output.img\n"
34848 "\n"
34849 msgstr ""
34850
34851 # type: verbatim
34852 #. type: verbatim
34853 #: ../tools/virt-make-fs.pl:43
34854 #, no-wrap
34855 msgid ""
34856 " virt-make-fs [--options] input.tar.gz output.img\n"
34857 "\n"
34858 msgstr ""
34859
34860 # type: verbatim
34861 #. type: verbatim
34862 #: ../tools/virt-make-fs.pl:45
34863 #, no-wrap
34864 msgid ""
34865 " virt-make-fs [--options] directory output.img\n"
34866 "\n"
34867 msgstr ""
34868
34869 # type: textblock
34870 #. type: textblock
34871 #: ../tools/virt-make-fs.pl:49
34872 msgid ""
34873 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34874 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34875 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34876 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34877 "you want to attach these filesystems to existing virtual machines (eg. to "
34878 "import large amounts of read-only data to a VM)."
34879 msgstr ""
34880
34881 # type: textblock
34882 #. type: textblock
34883 #: ../tools/virt-make-fs.pl:57
34884 msgid "Basic usage is:"
34885 msgstr ""
34886
34887 # type: verbatim
34888 #. type: verbatim
34889 #: ../tools/virt-make-fs.pl:59
34890 #, no-wrap
34891 msgid ""
34892 " virt-make-fs input output\n"
34893 "\n"
34894 msgstr ""
34895
34896 # type: textblock
34897 #. type: textblock
34898 #: ../tools/virt-make-fs.pl:61
34899 msgid ""
34900 "where C<input> is either a directory containing files that you want to add, "
34901 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34902 "C<output> is a disk image.  The input type is detected automatically.  The "
34903 "output disk image defaults to a raw ext2 image unless you specify extra "
34904 "flags (see L</OPTIONS> below)."
34905 msgstr ""
34906
34907 # type: =head2
34908 #. type: =head2
34909 #: ../tools/virt-make-fs.pl:67
34910 msgid "EXTRA SPACE"
34911 msgstr ""
34912
34913 # type: textblock
34914 #. type: textblock
34915 #: ../tools/virt-make-fs.pl:69
34916 msgid ""
34917 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34918 "the files that it contains, but might have extra space.  Depending on how "
34919 "you are going to use the output, you might think this extra space is wasted "
34920 "and want to minimize it, or you might want to leave space so that more files "
34921 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34922 "but you can use the C<--size> flag to leave space in the filesystem if you "
34923 "want it."
34924 msgstr ""
34925
34926 # type: textblock
34927 #. type: textblock
34928 #: ../tools/virt-make-fs.pl:77
34929 msgid ""
34930 "An alternative way to leave extra space but not make the output image any "
34931 "bigger is to use an alternative disk image format (instead of the default "
34932 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34933 "image format (check your hypervisor supports this before using it).  This "
34934 "allows you to choose a large C<--size> but the extra space won't actually be "
34935 "allocated in the image until you try to store something in it."
34936 msgstr ""
34937
34938 #. type: textblock
34939 #: ../tools/virt-make-fs.pl:85
34940 msgid ""
34941 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34942 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34943 "to build another image from scratch."
34944 msgstr ""
34945
34946 # type: =head3
34947 #. type: =head3
34948 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34949 #: ../tools/virt-make-fs.pl:142
34950 msgid "EXAMPLE"
34951 msgstr ""
34952
34953 # type: verbatim
34954 #. type: verbatim
34955 #: ../tools/virt-make-fs.pl:91
34956 #, no-wrap
34957 msgid ""
34958 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34959 "\n"
34960 msgstr ""
34961
34962 # type: =head2
34963 #. type: =head2
34964 #: ../tools/virt-make-fs.pl:93
34965 msgid "FILESYSTEM TYPE"
34966 msgstr ""
34967
34968 # type: textblock
34969 #. type: textblock
34970 #: ../tools/virt-make-fs.pl:95
34971 msgid ""
34972 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34973 "libguestfs supports can be used (but I<not> read-only formats like "
34974 "ISO9660).  Here are some of the more common choices:"
34975 msgstr ""
34976
34977 # type: =item
34978 #. type: =item
34979 #: ../tools/virt-make-fs.pl:101
34980 msgid "I<ext3>"
34981 msgstr ""
34982
34983 # type: textblock
34984 #. type: textblock
34985 #: ../tools/virt-make-fs.pl:103
34986 msgid ""
34987 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34988 "you are not going to use the filesystem in a way that requires the journal, "
34989 "then this is just wasted overhead."
34990 msgstr ""
34991
34992 # type: =item
34993 #. type: =item
34994 #: ../tools/virt-make-fs.pl:107
34995 msgid "I<ntfs> or I<vfat>"
34996 msgstr ""
34997
34998 # type: textblock
34999 #. type: textblock
35000 #: ../tools/virt-make-fs.pl:109
35001 msgid "Useful if exporting data to a Windows guest."
35002 msgstr ""
35003
35004 # type: textblock
35005 #. type: textblock
35006 #: ../tools/virt-make-fs.pl:111
35007 msgid ""
35008 "I<Note for vfat>: The tar archive or local directory must only contain files "
35009 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
35010 "program running within libguestfs is unable to change the ownership of non-"
35011 "root files, since vfat itself does not support this."
35012 msgstr ""
35013
35014 # type: =item
35015 #. type: =item
35016 #: ../tools/virt-make-fs.pl:116
35017 msgid "I<minix>"
35018 msgstr ""
35019
35020 # type: textblock
35021 #. type: textblock
35022 #: ../tools/virt-make-fs.pl:118
35023 msgid ""
35024 "Lower overhead than C<ext2>, but certain limitations on filename length and "
35025 "total filesystem size."
35026 msgstr ""
35027
35028 # type: verbatim
35029 #. type: verbatim
35030 #: ../tools/virt-make-fs.pl:125
35031 #, no-wrap
35032 msgid ""
35033 " virt-make-fs --type=minix input minixfs.img\n"
35034 "\n"
35035 msgstr ""
35036
35037 # type: =head2
35038 #. type: =head2
35039 #: ../tools/virt-make-fs.pl:127
35040 msgid "TO PARTITION OR NOT TO PARTITION"
35041 msgstr ""
35042
35043 # type: textblock
35044 #. type: textblock
35045 #: ../tools/virt-make-fs.pl:129
35046 msgid "Optionally virt-make-fs can add a partition table to the output disk."
35047 msgstr ""
35048
35049 # type: textblock
35050 #. type: textblock
35051 #: ../tools/virt-make-fs.pl:131
35052 msgid ""
35053 "Adding a partition can make the disk image more compatible with certain "
35054 "virtualized operating systems which don't expect to see a filesystem "
35055 "directly located on a block device (Linux doesn't care and will happily "
35056 "handle both types)."
35057 msgstr ""
35058
35059 # type: textblock
35060 #. type: textblock
35061 #: ../tools/virt-make-fs.pl:136
35062 msgid ""
35063 "On the other hand, if you have a partition table then the output image is no "
35064 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
35065 "directly on a partitioned disk image.  (However libguestfs tools such as "
35066 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
35067 msgstr ""
35068
35069 # type: textblock
35070 #. type: textblock
35071 #: ../tools/virt-make-fs.pl:144
35072 msgid "Add an MBR partition:"
35073 msgstr ""
35074
35075 # type: verbatim
35076 #. type: verbatim
35077 #: ../tools/virt-make-fs.pl:146
35078 #, no-wrap
35079 msgid ""
35080 " virt-make-fs --partition -- input disk.img\n"
35081 "\n"
35082 msgstr ""
35083
35084 # type: textblock
35085 #. type: textblock
35086 #: ../tools/virt-make-fs.pl:148
35087 msgid ""
35088 "If the output disk image could be terabyte-sized or larger, it's better to "
35089 "use an EFI/GPT-compatible partition table:"
35090 msgstr ""
35091
35092 # type: verbatim
35093 #. type: verbatim
35094 #: ../tools/virt-make-fs.pl:151
35095 #, no-wrap
35096 msgid ""
35097 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
35098 "\n"
35099 msgstr ""
35100
35101 # type: textblock
35102 #. type: textblock
35103 #: ../tools/virt-make-fs.pl:179
35104 msgid "Enable debugging information."
35105 msgstr ""
35106
35107 # type: =item
35108 #. type: =item
35109 #: ../tools/virt-make-fs.pl:185
35110 msgid "B<--size=E<lt>NE<gt>>"
35111 msgstr ""
35112
35113 # type: =item
35114 #. type: =item
35115 #: ../tools/virt-make-fs.pl:187
35116 msgid "B<--size=+E<lt>NE<gt>>"
35117 msgstr ""
35118
35119 # type: =item
35120 #. type: =item
35121 #: ../tools/virt-make-fs.pl:189
35122 msgid "B<-s E<lt>NE<gt>>"
35123 msgstr ""
35124
35125 # type: =item
35126 #. type: =item
35127 #: ../tools/virt-make-fs.pl:191
35128 msgid "B<-s +E<lt>NE<gt>>"
35129 msgstr ""
35130
35131 # type: textblock
35132 #. type: textblock
35133 #: ../tools/virt-make-fs.pl:193
35134 msgid ""
35135 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
35136 msgstr ""
35137
35138 # type: textblock
35139 #. type: textblock
35140 #: ../tools/virt-make-fs.pl:196
35141 msgid ""
35142 "If this option is I<not> given, then the output image will be just large "
35143 "enough to contain all the files, with not much wasted space."
35144 msgstr ""
35145
35146 # type: textblock
35147 #. type: textblock
35148 #: ../tools/virt-make-fs.pl:199
35149 msgid ""
35150 "To choose a fixed size output disk, specify an absolute number followed by b/"
35151 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35152 "Petabytes or Exabytes.  This must be large enough to contain all the input "
35153 "files, else you will get an error."
35154 msgstr ""
35155
35156 # type: textblock
35157 #. type: textblock
35158 #: ../tools/virt-make-fs.pl:204
35159 msgid ""
35160 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
35161 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35162 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
35163 "the input files, and (approximately) an extra 200 MB free space."
35164 msgstr ""
35165
35166 # type: textblock
35167 #. type: textblock
35168 #: ../tools/virt-make-fs.pl:210
35169 msgid ""
35170 "Note that virt-make-fs estimates free space, and therefore will not produce "
35171 "filesystems containing precisely the free space requested.  (It is much more "
35172 "expensive and time-consuming to produce a filesystem which has precisely the "
35173 "desired free space)."
35174 msgstr ""
35175
35176 # type: =item
35177 #. type: =item
35178 #: ../tools/virt-make-fs.pl:219
35179 msgid "B<--format=E<lt>fmtE<gt>>"
35180 msgstr ""
35181
35182 # type: =item
35183 #. type: =item
35184 #: ../tools/virt-make-fs.pl:221
35185 msgid "B<-F E<lt>fmtE<gt>>"
35186 msgstr ""
35187
35188 # type: textblock
35189 #. type: textblock
35190 #: ../tools/virt-make-fs.pl:223
35191 msgid "Choose the output disk image format."
35192 msgstr ""
35193
35194 # type: textblock
35195 #. type: textblock
35196 #: ../tools/virt-make-fs.pl:225
35197 msgid "The default is C<raw> (raw disk image)."
35198 msgstr ""
35199
35200 # type: textblock
35201 #. type: textblock
35202 #: ../tools/virt-make-fs.pl:227
35203 msgid ""
35204 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
35205 "that would really make sense here is C<qcow2>."
35206 msgstr ""
35207
35208 # type: =item
35209 #. type: =item
35210 #: ../tools/virt-make-fs.pl:234
35211 msgid "B<--type=E<lt>fsE<gt>>"
35212 msgstr ""
35213
35214 # type: =item
35215 #. type: =item
35216 #: ../tools/virt-make-fs.pl:236
35217 msgid "B<-t E<lt>fsE<gt>>"
35218 msgstr ""
35219
35220 # type: textblock
35221 #. type: textblock
35222 #: ../tools/virt-make-fs.pl:238
35223 msgid "Choose the output filesystem type."
35224 msgstr ""
35225
35226 # type: textblock
35227 #. type: textblock
35228 #: ../tools/virt-make-fs.pl:240
35229 msgid "The default is C<ext2>."
35230 msgstr ""
35231
35232 # type: textblock
35233 #. type: textblock
35234 #: ../tools/virt-make-fs.pl:242
35235 msgid ""
35236 "Any filesystem which is supported read-write by libguestfs can be used here."
35237 msgstr ""
35238
35239 # type: =item
35240 #. type: =item
35241 #: ../tools/virt-make-fs.pl:249
35242 msgid "B<--partition>"
35243 msgstr ""
35244
35245 # type: =item
35246 #. type: =item
35247 #: ../tools/virt-make-fs.pl:251
35248 msgid "B<--partition=E<lt>parttypeE<gt>>"
35249 msgstr ""
35250
35251 # type: textblock
35252 #. type: textblock
35253 #: ../tools/virt-make-fs.pl:253
35254 msgid ""
35255 "If specified, this flag adds an MBR partition table to the output disk image."
35256 msgstr ""
35257
35258 # type: textblock
35259 #. type: textblock
35260 #: ../tools/virt-make-fs.pl:256
35261 msgid ""
35262 "You can change the partition table type, eg. C<--partition=gpt> for large "
35263 "disks."
35264 msgstr ""
35265
35266 # type: textblock
35267 #. type: textblock
35268 #: ../tools/virt-make-fs.pl:259
35269 msgid ""
35270 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
35271 "might consider the next parameter to be the partition type.  For example:"
35272 msgstr ""
35273
35274 # type: verbatim
35275 #. type: verbatim
35276 #: ../tools/virt-make-fs.pl:263
35277 #, no-wrap
35278 msgid ""
35279 " virt-make-fs --partition input.tar ...\n"
35280 "\n"
35281 msgstr ""
35282
35283 # type: textblock
35284 #. type: textblock
35285 #: ../tools/virt-make-fs.pl:265
35286 msgid ""
35287 "would cause virt-make-fs to think you wanted to use a partition type of "
35288 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
35289 "dash) between options and the input file argument:"
35290 msgstr ""
35291
35292 # type: verbatim
35293 #. type: verbatim
35294 #: ../tools/virt-make-fs.pl:269
35295 #, no-wrap
35296 msgid ""
35297 " virt-make-fs --partition -- input.tar ...\n"
35298 "\n"
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../tools/virt-make-fs.pl:541
35303 msgid ""
35304 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
35305 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
35306 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
35307 msgstr ""
35308
35309 # type: verbatim
35310 #. type: verbatim
35311 #: ../tools/virt-make-fs.pl:558
35312 #, no-wrap
35313 msgid ""
35314 " export LIBGUESTFS_DEBUG=1\n"
35315 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
35316 "\n"
35317 msgstr ""
35318
35319 # type: textblock
35320 #. type: textblock
35321 #: ../tools/virt-make-fs.pl:561
35322 msgid ""
35323 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
35324 "redhat.com/>"
35325 msgstr ""
35326
35327 # type: textblock
35328 #. type: textblock
35329 #: ../tools/virt-list-partitions.pl:32
35330 msgid ""
35331 "virt-list-partitions - List partitions in a virtual machine or disk image"
35332 msgstr ""
35333
35334 # type: verbatim
35335 #. type: verbatim
35336 #: ../tools/virt-list-partitions.pl:36
35337 #, no-wrap
35338 msgid ""
35339 " virt-list-partitions [--options] domname\n"
35340 "\n"
35341 msgstr ""
35342
35343 # type: verbatim
35344 #. type: verbatim
35345 #: ../tools/virt-list-partitions.pl:38
35346 #, no-wrap
35347 msgid ""
35348 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35349 "\n"
35350 msgstr ""
35351
35352 # type: textblock
35353 #. type: textblock
35354 #: ../tools/virt-list-partitions.pl:45
35355 msgid ""
35356 "C<virt-list-partitions> is a command line tool to list the partitions that "
35357 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35358 "first step to using L<virt-resize(1)>."
35359 msgstr ""
35360
35361 # type: textblock
35362 #. type: textblock
35363 #: ../tools/virt-list-partitions.pl:50
35364 msgid ""
35365 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35366 "functionality.  For more complex cases you should look at the L<guestfish(1)"
35367 "> tool."
35368 msgstr ""
35369
35370 # type: =item
35371 #. type: =item
35372 #: ../tools/virt-list-partitions.pl:107
35373 msgid "B<-h> | B<--human-readable>"
35374 msgstr ""
35375
35376 # type: textblock
35377 #. type: textblock
35378 #: ../tools/virt-list-partitions.pl:109
35379 msgid "Show sizes in human-readable form (eg. \"1G\")."
35380 msgstr ""
35381
35382 # type: textblock
35383 #. type: textblock
35384 #: ../tools/virt-list-partitions.pl:117
35385 msgid ""
35386 "With this option, C<virt-list-partitions> displays the type and size of each "
35387 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35388 msgstr ""
35389
35390 # type: =item
35391 #. type: =item
35392 #: ../tools/virt-list-partitions.pl:124
35393 msgid "B<-t> | B<--total>"
35394 msgstr ""
35395
35396 # type: textblock
35397 #. type: textblock
35398 #: ../tools/virt-list-partitions.pl:126
35399 msgid ""
35400 "Display the total size of each block device (as a separate row or rows)."
35401 msgstr ""
35402
35403 # type: textblock
35404 #. type: textblock
35405 #: ../tools/virt-list-partitions.pl:259
35406 msgid ""
35407 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
35408 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
35409 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35410 msgstr ""