Version 1.9.13.
[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-03-24 12:04+0000\n"
11 "PO-Revision-Date: 2010-09-02 14:46+0100\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # type: =head1
20 #. type: =head1
21 #: ../src/guestfs.pod:3 ../fish/guestfish.pod:3
22 #: ../test-tool/libguestfs-test-tool.pod:3 ../fuse/guestmount.pod:3
23 #: ../tools/virt-edit.pl:32 ../tools/virt-win-reg.pl:35
24 #: ../tools/virt-resize.pl:40 ../tools/virt-list-filesystems.pl:30
25 #: ../tools/virt-tar.pl:31 ../tools/virt-make-fs.pl:35
26 #: ../tools/virt-list-partitions.pl:30
27 msgid "NAME"
28 msgstr "名前"
29
30 # type: textblock
31 #. type: textblock
32 #: ../src/guestfs.pod:5
33 msgid "guestfs - Library for accessing and modifying virtual machine images"
34 msgstr ""
35
36 # type: =head1
37 #. type: =head1
38 #: ../src/guestfs.pod:7 ../fish/guestfish.pod:7
39 #: ../test-tool/libguestfs-test-tool.pod:7 ../fuse/guestmount.pod:7
40 #: ../tools/virt-edit.pl:36 ../tools/virt-win-reg.pl:39
41 #: ../tools/virt-resize.pl:44 ../tools/virt-list-filesystems.pl:34
42 #: ../tools/virt-tar.pl:35 ../tools/virt-make-fs.pl:39
43 #: ../tools/virt-list-partitions.pl:34
44 msgid "SYNOPSIS"
45 msgstr ""
46
47 # type: verbatim
48 #. type: verbatim
49 #: ../src/guestfs.pod:9
50 #, no-wrap
51 msgid ""
52 " #include <guestfs.h>\n"
53 " \n"
54 msgstr ""
55
56 # type: verbatim
57 #. type: verbatim
58 #: ../src/guestfs.pod:11
59 #, no-wrap
60 msgid ""
61 " guestfs_h *g = guestfs_create ();\n"
62 " guestfs_add_drive (g, \"guest.img\");\n"
63 " guestfs_launch (g);\n"
64 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
65 " guestfs_touch (g, \"/hello\");\n"
66 " guestfs_umount (g, \"/\");\n"
67 " guestfs_close (g);\n"
68 "\n"
69 msgstr ""
70
71 # type: verbatim
72 #. type: verbatim
73 #: ../src/guestfs.pod:19
74 #, no-wrap
75 msgid ""
76 " cc prog.c -o prog -lguestfs\n"
77 "or:\n"
78 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
79 "\n"
80 msgstr ""
81
82 # type: =head1
83 #. type: =head1
84 #: ../src/guestfs.pod:23 ../fish/guestfish.pod:30
85 #: ../test-tool/libguestfs-test-tool.pod:11 ../fuse/guestmount.pod:20
86 #: ../tools/virt-edit.pl:50 ../tools/virt-win-reg.pl:63
87 #: ../tools/virt-resize.pl:50 ../tools/virt-list-filesystems.pl:40
88 #: ../tools/virt-tar.pl:77 ../tools/virt-make-fs.pl:47
89 #: ../tools/virt-list-partitions.pl:40
90 msgid "DESCRIPTION"
91 msgstr ""
92
93 # type: textblock
94 #. type: textblock
95 #: ../src/guestfs.pod:25
96 msgid ""
97 "Libguestfs is a library for accessing and modifying guest disk images.  "
98 "Amongst the things this is good for: making batch configuration changes to "
99 "guests, getting disk used/free statistics (see also: virt-df), migrating "
100 "between virtualization systems (see also: virt-p2v), performing partial "
101 "backups, performing partial guest clones, cloning guests and changing "
102 "registry/UUID/hostname info, and much else besides."
103 msgstr ""
104
105 # type: textblock
106 #. type: textblock
107 #: ../src/guestfs.pod:33
108 msgid ""
109 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
110 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
111 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
112 "qcow2, vmdk."
113 msgstr ""
114
115 # type: textblock
116 #. type: textblock
117 #: ../src/guestfs.pod:38
118 msgid ""
119 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
120 "what filesystem is in each LV, etc.).  It can also run commands in the "
121 "context of the guest.  Also you can access filesystems over FUSE."
122 msgstr ""
123
124 # type: textblock
125 #. type: textblock
126 #: ../src/guestfs.pod:43
127 msgid ""
128 "Libguestfs is a library that can be linked with C and C++ management "
129 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
130 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
131 "line."
132 msgstr ""
133
134 # type: textblock
135 #. type: textblock
136 #: ../src/guestfs.pod:48
137 msgid ""
138 "You don't need to be root to use libguestfs, although obviously you do need "
139 "enough permissions to access the disk images."
140 msgstr ""
141
142 # type: textblock
143 #. type: textblock
144 #: ../src/guestfs.pod:51
145 msgid ""
146 "Libguestfs is a large API because it can do many things.  For a gentle "
147 "introduction, please read the L</API OVERVIEW> section next."
148 msgstr ""
149
150 # type: textblock
151 #. type: textblock
152 #: ../src/guestfs.pod:54
153 msgid ""
154 "There are also some example programs in the L<guestfs-examples(3)> manual "
155 "page."
156 msgstr ""
157
158 # type: =head1
159 #. type: =head1
160 #: ../src/guestfs.pod:57
161 msgid "API OVERVIEW"
162 msgstr ""
163
164 # type: textblock
165 #. type: textblock
166 #: ../src/guestfs.pod:59
167 msgid ""
168 "This section provides a gentler overview of the libguestfs API.  We also try "
169 "to group API calls together, where that may not be obvious from reading "
170 "about the individual calls in the main section of this manual."
171 msgstr ""
172
173 # type: =head2
174 #. type: =head2
175 #: ../src/guestfs.pod:64
176 msgid "HANDLES"
177 msgstr ""
178
179 # type: textblock
180 #. type: textblock
181 #: ../src/guestfs.pod:66
182 msgid ""
183 "Before you can use libguestfs calls, you have to create a handle.  Then you "
184 "must add at least one disk image to the handle, followed by launching the "
185 "handle, then performing whatever operations you want, and finally closing "
186 "the handle.  By convention we use the single letter C<g> for the name of the "
187 "handle variable, although of course you can use any name you want."
188 msgstr ""
189
190 # type: textblock
191 #. type: textblock
192 #: ../src/guestfs.pod:73
193 msgid "The general structure of all libguestfs-using programs looks like this:"
194 msgstr ""
195
196 # type: verbatim
197 #. type: verbatim
198 #: ../src/guestfs.pod:76
199 #, no-wrap
200 msgid ""
201 " guestfs_h *g = guestfs_create ();\n"
202 " \n"
203 msgstr ""
204
205 # type: verbatim
206 #. type: verbatim
207 #: ../src/guestfs.pod:78
208 #, no-wrap
209 msgid ""
210 " /* Call guestfs_add_drive additional times if there are\n"
211 "  * multiple disk images.\n"
212 "  */\n"
213 " guestfs_add_drive (g, \"guest.img\");\n"
214 " \n"
215 msgstr ""
216
217 # type: verbatim
218 #. type: verbatim
219 #: ../src/guestfs.pod:83
220 #, no-wrap
221 msgid ""
222 " /* Most manipulation calls won't work until you've launched\n"
223 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
224 "  * and _before_ other commands.\n"
225 "  */\n"
226 " guestfs_launch (g);\n"
227 " \n"
228 msgstr ""
229
230 # type: verbatim
231 #. type: verbatim
232 #: ../src/guestfs.pod:89
233 #, no-wrap
234 msgid ""
235 " /* Now you can examine what partitions, LVs etc are available.\n"
236 "  */\n"
237 " char **partitions = guestfs_list_partitions (g);\n"
238 " char **logvols = guestfs_lvs (g);\n"
239 " \n"
240 msgstr ""
241
242 # type: verbatim
243 #. type: verbatim
244 #: ../src/guestfs.pod:94
245 #, no-wrap
246 msgid ""
247 " /* To access a filesystem in the image, you must mount it.\n"
248 "  */\n"
249 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
250 " \n"
251 msgstr ""
252
253 #. type: verbatim
254 #: ../src/guestfs.pod:98
255 #, no-wrap
256 msgid ""
257 " /* Now you can perform filesystem actions on the guest\n"
258 "  * disk image.\n"
259 "  */\n"
260 " guestfs_touch (g, \"/hello\");\n"
261 " \n"
262 msgstr ""
263
264 # type: verbatim
265 #. type: verbatim
266 #: ../src/guestfs.pod:103
267 #, no-wrap
268 msgid ""
269 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
270 "  * it is done automatically when you close the handle.  See\n"
271 "  * discussion of autosync in this page.\n"
272 "  */\n"
273 " guestfs_sync (g);\n"
274 " \n"
275 msgstr ""
276
277 # type: verbatim
278 #. type: verbatim
279 #: ../src/guestfs.pod:109
280 #, no-wrap
281 msgid ""
282 " /* Close the handle 'g'. */\n"
283 " guestfs_close (g);\n"
284 "\n"
285 msgstr ""
286
287 # type: textblock
288 #. type: textblock
289 #: ../src/guestfs.pod:112
290 msgid ""
291 "The code above doesn't include any error checking.  In real code you should "
292 "check return values carefully for errors.  In general all functions that "
293 "return integers return C<-1> on error, and all functions that return "
294 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
295 "how to handle errors, and consult the documentation for each function call "
296 "below to see precisely how they return error indications.  See L<guestfs-"
297 "examples(3)> for fully worked examples."
298 msgstr ""
299
300 # type: =head2
301 #. type: =head2
302 #: ../src/guestfs.pod:121
303 msgid "DISK IMAGES"
304 msgstr ""
305
306 # type: textblock
307 #. type: textblock
308 #: ../src/guestfs.pod:123
309 msgid ""
310 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
311 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
312 "actual block device, or simply an empty file of zeroes that you have created "
313 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
314 "of these."
315 msgstr ""
316
317 # type: textblock
318 #. type: textblock
319 #: ../src/guestfs.pod:129
320 msgid ""
321 "The call you should use in modern code for adding drives is L</"
322 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
323 "specifying that the format is raw, do:"
324 msgstr ""
325
326 # type: verbatim
327 #. type: verbatim
328 #: ../src/guestfs.pod:133
329 #, no-wrap
330 msgid ""
331 " guestfs_add_drive_opts (g, filename,\n"
332 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
333 "                         -1);\n"
334 "\n"
335 msgstr ""
336
337 # type: textblock
338 #. type: textblock
339 #: ../src/guestfs.pod:137
340 msgid "You can add a disk read-only using:"
341 msgstr ""
342
343 # type: verbatim
344 #. type: verbatim
345 #: ../src/guestfs.pod:139
346 #, no-wrap
347 msgid ""
348 " guestfs_add_drive_opts (g, filename,\n"
349 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
350 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
351 "                         -1);\n"
352 "\n"
353 msgstr ""
354
355 # type: textblock
356 #. type: textblock
357 #: ../src/guestfs.pod:144
358 msgid ""
359 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
360 "libguestfs won't modify the file."
361 msgstr ""
362
363 # type: textblock
364 #. type: textblock
365 #: ../src/guestfs.pod:147
366 msgid ""
367 "Be extremely cautious if the disk image is in use, eg. if it is being used "
368 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
369 "corruption, but adding it read-only is safe."
370 msgstr ""
371
372 # type: textblock
373 #. type: textblock
374 #: ../src/guestfs.pod:151
375 msgid ""
376 "You must add at least one disk image, and you may add multiple disk images.  "
377 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
378 "first one you added), C</dev/sdb> (for the second one you added), etc."
379 msgstr ""
380
381 # type: textblock
382 #. type: textblock
383 #: ../src/guestfs.pod:156
384 msgid ""
385 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
386 "can call L</guestfs_list_devices> to get a list of the device names, in the "
387 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
388 msgstr ""
389
390 # type: =head2
391 #. type: =head2
392 #: ../src/guestfs.pod:161
393 msgid "MOUNTING"
394 msgstr ""
395
396 #. type: textblock
397 #: ../src/guestfs.pod:163
398 msgid ""
399 "Before you can read or write files, create directories and so on in a disk "
400 "image that contains filesystems, you have to mount those filesystems using "
401 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
402 "a disk image contains (for example) one partition with a filesystem on that "
403 "partition, then you can mount it directly:"
404 msgstr ""
405
406 #. type: verbatim
407 #: ../src/guestfs.pod:170
408 #, no-wrap
409 msgid ""
410 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
411 "\n"
412 msgstr ""
413
414 #. type: textblock
415 #: ../src/guestfs.pod:172
416 msgid ""
417 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
418 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
419 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
420 "that these are libguestfs virtual devices, and are nothing to do with host "
421 "devices."
422 msgstr ""
423
424 #. type: textblock
425 #: ../src/guestfs.pod:178
426 msgid ""
427 "If you are given a disk image and you don't know what it contains then you "
428 "have to find out.  Libguestfs can do that too: use L</"
429 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
430 "LVs, and either try mounting each to see what is mountable, or else examine "
431 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
432 "filesystems, use L</guestfs_list_filesystems>."
433 msgstr ""
434
435 #. type: textblock
436 #: ../src/guestfs.pod:186
437 msgid ""
438 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
439 "L</INSPECTION> below).  But you might find it easier to look at higher level "
440 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
441 msgstr ""
442
443 #. type: textblock
444 #: ../src/guestfs.pod:191
445 msgid ""
446 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
447 "several other variations of the C<guestfs_mount_*> call."
448 msgstr ""
449
450 # type: =head2
451 #. type: =head2
452 #: ../src/guestfs.pod:194
453 msgid "FILESYSTEM ACCESS AND MODIFICATION"
454 msgstr ""
455
456 # type: textblock
457 #. type: textblock
458 #: ../src/guestfs.pod:196
459 msgid ""
460 "The majority of the libguestfs API consists of fairly low-level calls for "
461 "accessing and modifying the files, directories, symlinks etc on mounted "
462 "filesystems.  There are over a hundred such calls which you can find listed "
463 "in detail below in this man page, and we don't even pretend to cover them "
464 "all in this overview."
465 msgstr ""
466
467 # type: textblock
468 #. type: textblock
469 #: ../src/guestfs.pod:202
470 msgid ""
471 "Specify filenames as full paths, starting with C<\"/\"> and including the "
472 "mount point."
473 msgstr ""
474
475 # type: textblock
476 #. type: textblock
477 #: ../src/guestfs.pod:205
478 msgid ""
479 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
480 "the file called C<\"etc/passwd\"> then you could do:"
481 msgstr ""
482
483 # type: verbatim
484 #. type: verbatim
485 #: ../src/guestfs.pod:208
486 #, no-wrap
487 msgid ""
488 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
489 "\n"
490 msgstr ""
491
492 # type: textblock
493 #. type: textblock
494 #: ../src/guestfs.pod:210
495 msgid ""
496 "This would return C<data> as a newly allocated buffer containing the full "
497 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
498 "or C<NULL> if there was an error."
499 msgstr ""
500
501 # type: textblock
502 #. type: textblock
503 #: ../src/guestfs.pod:214
504 msgid ""
505 "As another example, to create a top-level directory on that filesystem "
506 "called C<\"var\"> you would do:"
507 msgstr ""
508
509 # type: verbatim
510 #. type: verbatim
511 #: ../src/guestfs.pod:217
512 #, no-wrap
513 msgid ""
514 " guestfs_mkdir (g, \"/var\");\n"
515 "\n"
516 msgstr ""
517
518 # type: textblock
519 #. type: textblock
520 #: ../src/guestfs.pod:219
521 msgid "To create a symlink you could do:"
522 msgstr ""
523
524 # type: verbatim
525 #. type: verbatim
526 #: ../src/guestfs.pod:221
527 #, no-wrap
528 msgid ""
529 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
530 "               \"/etc/rc3.d/S30portmap\");\n"
531 "\n"
532 msgstr ""
533
534 # type: textblock
535 #. type: textblock
536 #: ../src/guestfs.pod:224
537 msgid ""
538 "Libguestfs will reject attempts to use relative paths and there is no "
539 "concept of a current working directory."
540 msgstr ""
541
542 # type: textblock
543 #. type: textblock
544 #: ../src/guestfs.pod:227
545 msgid ""
546 "Libguestfs can return errors in many situations: for example if the "
547 "filesystem isn't writable, or if a file or directory that you requested "
548 "doesn't exist.  If you are using the C API (documented here)  you have to "
549 "check for those error conditions after each call.  (Other language bindings "
550 "turn these errors into exceptions)."
551 msgstr ""
552
553 # type: textblock
554 #. type: textblock
555 #: ../src/guestfs.pod:233
556 msgid ""
557 "File writes are affected by the per-handle umask, set by calling L</"
558 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
559 msgstr ""
560
561 # type: =head2
562 #. type: =head2
563 #: ../src/guestfs.pod:236
564 msgid "PARTITIONING"
565 msgstr ""
566
567 # type: textblock
568 #. type: textblock
569 #: ../src/guestfs.pod:238
570 msgid ""
571 "Libguestfs contains API calls to read, create and modify partition tables on "
572 "disk images."
573 msgstr ""
574
575 # type: textblock
576 #. type: textblock
577 #: ../src/guestfs.pod:241
578 msgid ""
579 "In the common case where you want to create a single partition covering the "
580 "whole disk, you should use the L</guestfs_part_disk> call:"
581 msgstr ""
582
583 # type: verbatim
584 #. type: verbatim
585 #: ../src/guestfs.pod:245
586 #, no-wrap
587 msgid ""
588 " const char *parttype = \"mbr\";\n"
589 " if (disk_is_larger_than_2TB)\n"
590 "   parttype = \"gpt\";\n"
591 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
592 "\n"
593 msgstr ""
594
595 # type: textblock
596 #. type: textblock
597 #: ../src/guestfs.pod:250
598 msgid ""
599 "Obviously this effectively wipes anything that was on that disk image before."
600 msgstr ""
601
602 # type: =head2
603 #. type: =head2
604 #: ../src/guestfs.pod:253
605 msgid "LVM2"
606 msgstr ""
607
608 # type: textblock
609 #. type: textblock
610 #: ../src/guestfs.pod:255
611 msgid ""
612 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
613 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
614 "you familiarize yourself with the concepts of physical volumes, volume "
615 "groups and logical volumes."
616 msgstr ""
617
618 # type: textblock
619 #. type: textblock
620 #: ../src/guestfs.pod:260
621 msgid ""
622 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
623 "tldp.org/HOWTO/LVM-HOWTO/>."
624 msgstr ""
625
626 # type: =head2
627 #. type: =head2
628 #: ../src/guestfs.pod:263
629 msgid "DOWNLOADING"
630 msgstr ""
631
632 #. type: textblock
633 #: ../src/guestfs.pod:265
634 msgid ""
635 "Use L</guestfs_cat> to download small, text only files.  This call is "
636 "limited to files which are less than 2 MB and which cannot contain any ASCII "
637 "NUL (C<\\0>) characters.  However the API is very simple to use."
638 msgstr ""
639
640 # type: textblock
641 #. type: textblock
642 #: ../src/guestfs.pod:269
643 msgid ""
644 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
645 "bit data, since it returns a (pointer, size) pair.  However it is still "
646 "limited to \"small\" files, less than 2 MB."
647 msgstr ""
648
649 # type: textblock
650 #. type: textblock
651 #: ../src/guestfs.pod:273
652 msgid ""
653 "L</guestfs_download> can be used to download any file, with no limits on "
654 "content or size (even files larger than 4 GB)."
655 msgstr ""
656
657 # type: textblock
658 #. type: textblock
659 #: ../src/guestfs.pod:276
660 msgid ""
661 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
662 msgstr ""
663
664 # type: =head2
665 #. type: =head2
666 #: ../src/guestfs.pod:279
667 msgid "UPLOADING"
668 msgstr ""
669
670 # type: textblock
671 #. type: textblock
672 #: ../src/guestfs.pod:281
673 msgid ""
674 "It's often the case that you want to write a file or files to the disk image."
675 msgstr ""
676
677 # type: textblock
678 #. type: textblock
679 #: ../src/guestfs.pod:284
680 msgid ""
681 "To write a small file with fixed content, use L</guestfs_write>.  To create "
682 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
683 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
684 "of other functions for creating test files, for example L</guestfs_fill> and "
685 "L</guestfs_fill_pattern>."
686 msgstr ""
687
688 # type: textblock
689 #. type: textblock
690 #: ../src/guestfs.pod:290
691 msgid ""
692 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
693 "file content or size (even files larger than 4 GB)."
694 msgstr ""
695
696 # type: textblock
697 #. type: textblock
698 #: ../src/guestfs.pod:293
699 msgid ""
700 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
701 msgstr ""
702
703 # type: textblock
704 #. type: textblock
705 #: ../src/guestfs.pod:295
706 msgid ""
707 "However the fastest way to upload I<large numbers of arbitrary files> is to "
708 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
709 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
710 "in a predictable way (eg. adding it last after all other drives) then you "
711 "can get the device name from L</guestfs_list_devices> and mount it directly "
712 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
713 "portable between kernel versions, and they don't support labels or UUIDs.  "
714 "If you want to pre-build an image or you need to mount it using a label or "
715 "UUID, use an ISO image instead."
716 msgstr ""
717
718 # type: =head2
719 #. type: =head2
720 #: ../src/guestfs.pod:306
721 msgid "COPYING"
722 msgstr ""
723
724 # type: textblock
725 #. type: textblock
726 #: ../src/guestfs.pod:308
727 msgid ""
728 "There are various different commands for copying between files and devices "
729 "and in and out of the guest filesystem.  These are summarised in the table "
730 "below."
731 msgstr ""
732
733 # type: =item
734 #. type: =item
735 #: ../src/guestfs.pod:314
736 msgid "B<file> to B<file>"
737 msgstr ""
738
739 # type: textblock
740 #. type: textblock
741 #: ../src/guestfs.pod:316
742 msgid ""
743 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
744 "directories recursively."
745 msgstr ""
746
747 # type: =item
748 #. type: =item
749 #: ../src/guestfs.pod:319
750 msgid "B<file or device> to B<file or device>"
751 msgstr ""
752
753 # type: textblock
754 #. type: textblock
755 #: ../src/guestfs.pod:321
756 msgid ""
757 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
758 "devices in the guest."
759 msgstr ""
760
761 # type: textblock
762 #. type: textblock
763 #: ../src/guestfs.pod:324
764 msgid "Example: duplicate the contents of an LV:"
765 msgstr ""
766
767 # type: verbatim
768 #. type: verbatim
769 #: ../src/guestfs.pod:326
770 #, no-wrap
771 msgid ""
772 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
773 "\n"
774 msgstr ""
775
776 # type: textblock
777 #. type: textblock
778 #: ../src/guestfs.pod:328
779 msgid ""
780 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
781 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
782 "guestfs_copy_size>."
783 msgstr ""
784
785 # type: =item
786 #. type: =item
787 #: ../src/guestfs.pod:332
788 msgid "B<file on the host> to B<file or device>"
789 msgstr ""
790
791 # type: textblock
792 #. type: textblock
793 #: ../src/guestfs.pod:334
794 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
795 msgstr ""
796
797 # type: =item
798 #. type: =item
799 #: ../src/guestfs.pod:336
800 msgid "B<file or device> to B<file on the host>"
801 msgstr ""
802
803 # type: textblock
804 #. type: textblock
805 #: ../src/guestfs.pod:338
806 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
807 msgstr ""
808
809 # type: =head2
810 #. type: =head2
811 #: ../src/guestfs.pod:342
812 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
813 msgstr ""
814
815 # type: textblock
816 #. type: textblock
817 #: ../src/guestfs.pod:344
818 msgid ""
819 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
820 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
821 "appears you can only upload and download to files.  However many Un*x-like "
822 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
823 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
824 "and arbitrary file descriptor N."
825 msgstr ""
826
827 # type: textblock
828 #. type: textblock
829 #: ../src/guestfs.pod:352
830 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
831 msgstr ""
832
833 #. type: verbatim
834 #: ../src/guestfs.pod:355
835 #, no-wrap
836 msgid ""
837 " guestfs_download (g, filename, \"/dev/stdout\");\n"
838 "\n"
839 msgstr ""
840
841 # type: textblock
842 #. type: textblock
843 #: ../src/guestfs.pod:357
844 msgid "and you can write tar output to a pipe C<fd> by doing:"
845 msgstr ""
846
847 #. type: verbatim
848 #: ../src/guestfs.pod:359
849 #, no-wrap
850 msgid ""
851 " char devfd[64];\n"
852 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
853 " guestfs_tar_out (g, \"/\", devfd);\n"
854 "\n"
855 msgstr ""
856
857 # type: =head2
858 #. type: =head2
859 #: ../src/guestfs.pod:363
860 msgid "LISTING FILES"
861 msgstr ""
862
863 # type: textblock
864 #. type: textblock
865 #: ../src/guestfs.pod:365
866 msgid ""
867 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
868 "L<guestfish(1)>-equivalent command C<ll>)."
869 msgstr ""
870
871 # type: textblock
872 #. type: textblock
873 #: ../src/guestfs.pod:368
874 msgid ""
875 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
876 "programs, as a flat list of strings."
877 msgstr ""
878
879 # type: textblock
880 #. type: textblock
881 #: ../src/guestfs.pod:371
882 msgid ""
883 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
884 "directory, plus additional information about each one.  It is more "
885 "equivalent to using the L<readdir(3)> call on a local filesystem."
886 msgstr ""
887
888 # type: textblock
889 #. type: textblock
890 #: ../src/guestfs.pod:375
891 msgid ""
892 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
893 msgstr ""
894
895 # type: =head2
896 #. type: =head2
897 #: ../src/guestfs.pod:378
898 msgid "RUNNING COMMANDS"
899 msgstr ""
900
901 # type: textblock
902 #. type: textblock
903 #: ../src/guestfs.pod:380
904 msgid ""
905 "Although libguestfs is primarily an API for manipulating files inside guest "
906 "images, we also provide some limited facilities for running commands inside "
907 "guests."
908 msgstr ""
909
910 # type: textblock
911 #. type: textblock
912 #: ../src/guestfs.pod:384
913 msgid "There are many limitations to this:"
914 msgstr ""
915
916 # type: =item
917 #. type: =item
918 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
919 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
920 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1088
921 #: ../src/guestfs.pod:1092 ../src/guestfs.pod:1096 ../src/guestfs.pod:1101
922 #: ../src/guestfs.pod:1109 ../src/guestfs.pod:1128 ../src/guestfs.pod:1136
923 #: ../src/guestfs.pod:1158 ../src/guestfs.pod:1162 ../src/guestfs.pod:1166
924 #: ../src/guestfs.pod:1170 ../src/guestfs.pod:1174 ../src/guestfs.pod:1178
925 #: ../src/guestfs.pod:1660 ../src/guestfs.pod:1665 ../src/guestfs.pod:1669
926 #: ../src/guestfs.pod:1770 ../src/guestfs.pod:1775 ../src/guestfs.pod:1779
927 #: ../src/guestfs.pod:2008 ../src/guestfs.pod:2013 ../src/guestfs.pod:2019
928 #: ../src/guestfs.pod:2027 ../src/guestfs.pod:2381 ../src/guestfs.pod:2387
929 #: ../src/guestfs.pod:2392 ../src/guestfs.pod:2398 ../src/guestfs.pod:2863
930 #: ../src/guestfs.pod:2867 ../src/guestfs.pod:2871 ../src/guestfs.pod:2875
931 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
932 #: ../src/guestfs-actions.pod:577 ../src/guestfs-actions.pod:585
933 #: ../src/guestfs-actions.pod:592 ../src/guestfs-actions.pod:599
934 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
935 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1607
936 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1619
937 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1633
938 #: ../src/guestfs-actions.pod:1637 ../src/guestfs-actions.pod:1641
939 #: ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1783
940 #: ../src/guestfs-actions.pod:1788 ../src/guestfs-actions.pod:1793
941 #: ../src/guestfs-actions.pod:1854 ../src/guestfs-actions.pod:1858
942 #: ../src/guestfs-actions.pod:1863 ../fish/guestfish.pod:432
943 #: ../fish/guestfish.pod:436 ../fish/guestfish.pod:440
944 #: ../fish/guestfish.pod:444 ../fish/guestfish-actions.pod:13
945 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:380
946 #: ../fish/guestfish-actions.pod:388 ../fish/guestfish-actions.pod:395
947 #: ../fish/guestfish-actions.pod:402 ../fish/guestfish-actions.pod:1072
948 #: ../fish/guestfish-actions.pod:1076 ../fish/guestfish-actions.pod:1080
949 #: ../fish/guestfish-actions.pod:1084 ../fish/guestfish-actions.pod:1092
950 #: ../fish/guestfish-actions.pod:1096 ../fish/guestfish-actions.pod:1100
951 #: ../fish/guestfish-actions.pod:1110 ../fish/guestfish-actions.pod:1114
952 #: ../fish/guestfish-actions.pod:1118 ../fish/guestfish-actions.pod:1208
953 #: ../fish/guestfish-actions.pod:1212 ../fish/guestfish-actions.pod:1217
954 #: ../fish/guestfish-actions.pod:1222 ../fish/guestfish-actions.pod:1264
955 #: ../fish/guestfish-actions.pod:1268 ../fish/guestfish-actions.pod:1273
956 #: ../tools/virt-win-reg.pl:536 ../tools/virt-win-reg.pl:542
957 #: ../tools/virt-win-reg.pl:548 ../tools/virt-resize.pl:345
958 #: ../tools/virt-resize.pl:350 ../tools/virt-resize.pl:360
959 msgid "*"
960 msgstr ""
961
962 # type: textblock
963 #. type: textblock
964 #: ../src/guestfs.pod:390
965 msgid ""
966 "The kernel version that the command runs under will be different from what "
967 "it expects."
968 msgstr ""
969
970 # type: textblock
971 #. type: textblock
972 #: ../src/guestfs.pod:395
973 msgid ""
974 "If the command needs to communicate with daemons, then most likely they "
975 "won't be running."
976 msgstr ""
977
978 # type: textblock
979 #. type: textblock
980 #: ../src/guestfs.pod:400
981 msgid "The command will be running in limited memory."
982 msgstr ""
983
984 # type: textblock
985 #. type: textblock
986 #: ../src/guestfs.pod:404
987 msgid ""
988 "The network may not be available unless you enable it (see L</"
989 "guestfs_set_network>)."
990 msgstr ""
991
992 # type: textblock
993 #. type: textblock
994 #: ../src/guestfs.pod:409
995 msgid "Only supports Linux guests (not Windows, BSD, etc)."
996 msgstr ""
997
998 # type: textblock
999 #. type: textblock
1000 #: ../src/guestfs.pod:413
1001 msgid ""
1002 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
1003 msgstr ""
1004
1005 # type: textblock
1006 #. type: textblock
1007 #: ../src/guestfs.pod:418
1008 msgid ""
1009 "For SELinux guests, you may need to enable SELinux and load policy first.  "
1010 "See L</SELINUX> in this manpage."
1011 msgstr ""
1012
1013 # type: textblock
1014 #. type: textblock
1015 #: ../src/guestfs.pod:423
1016 msgid ""
1017 "I<Security:> It is not safe to run commands from untrusted, possibly "
1018 "malicious guests.  These commands may attempt to exploit your program by "
1019 "sending unexpected output.  They could also try to exploit the Linux kernel "
1020 "or qemu provided by the libguestfs appliance.  They could use the network "
1021 "provided by the libguestfs appliance to bypass ordinary network partitions "
1022 "and firewalls.  They could use the elevated privileges or different SELinux "
1023 "context of your program to their advantage."
1024 msgstr ""
1025
1026 # type: textblock
1027 #. type: textblock
1028 #: ../src/guestfs.pod:432
1029 msgid ""
1030 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
1031 "(a script which runs when the guest next boots normally), and to have this "
1032 "script run the commands you want in the normal context of the running guest, "
1033 "network security and so on.  For information about other security issues, "
1034 "see L</SECURITY>."
1035 msgstr ""
1036
1037 # type: textblock
1038 #. type: textblock
1039 #: ../src/guestfs.pod:440
1040 msgid ""
1041 "The two main API calls to run commands are L</guestfs_command> and L</"
1042 "guestfs_sh> (there are also variations)."
1043 msgstr ""
1044
1045 # type: textblock
1046 #. type: textblock
1047 #: ../src/guestfs.pod:443
1048 msgid ""
1049 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
1050 "shell globs, redirections, etc will work."
1051 msgstr ""
1052
1053 # type: =head2
1054 #. type: =head2
1055 #: ../src/guestfs.pod:446
1056 msgid "CONFIGURATION FILES"
1057 msgstr ""
1058
1059 # type: textblock
1060 #. type: textblock
1061 #: ../src/guestfs.pod:448
1062 msgid ""
1063 "To read and write configuration files in Linux guest filesystems, we "
1064 "strongly recommend using Augeas.  For example, Augeas understands how to "
1065 "read and write, say, a Linux shadow password file or X.org configuration "
1066 "file, and so avoids you having to write that code."
1067 msgstr ""
1068
1069 # type: textblock
1070 #. type: textblock
1071 #: ../src/guestfs.pod:453
1072 msgid ""
1073 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
1074 "document Augeas itself here because there is excellent documentation on the "
1075 "L<http://augeas.net/> website."
1076 msgstr ""
1077
1078 # type: textblock
1079 #. type: textblock
1080 #: ../src/guestfs.pod:457
1081 msgid ""
1082 "If you don't want to use Augeas (you fool!) then try calling L</"
1083 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
1084 "over."
1085 msgstr ""
1086
1087 # type: =head2
1088 #. type: =head2
1089 #: ../src/guestfs.pod:461
1090 msgid "SELINUX"
1091 msgstr ""
1092
1093 # type: textblock
1094 #. type: textblock
1095 #: ../src/guestfs.pod:463
1096 msgid ""
1097 "We support SELinux guests.  To ensure that labeling happens correctly in "
1098 "SELinux guests, you need to enable SELinux and load the guest's policy:"
1099 msgstr ""
1100
1101 # type: =item
1102 #. type: =item
1103 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1281 ../src/guestfs.pod:1412
1104 #: ../src/guestfs.pod:2426
1105 msgid "1."
1106 msgstr ""
1107
1108 # type: textblock
1109 #. type: textblock
1110 #: ../src/guestfs.pod:471
1111 msgid "Before launching, do:"
1112 msgstr ""
1113
1114 # type: verbatim
1115 #. type: verbatim
1116 #: ../src/guestfs.pod:473
1117 #, no-wrap
1118 msgid ""
1119 " guestfs_set_selinux (g, 1);\n"
1120 "\n"
1121 msgstr ""
1122
1123 # type: =item
1124 #. type: =item
1125 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1285 ../src/guestfs.pod:1416
1126 #: ../src/guestfs.pod:2451
1127 msgid "2."
1128 msgstr ""
1129
1130 # type: textblock
1131 #. type: textblock
1132 #: ../src/guestfs.pod:477
1133 msgid ""
1134 "After mounting the guest's filesystem(s), load the policy.  This is best "
1135 "done by running the L<load_policy(8)> command in the guest itself:"
1136 msgstr ""
1137
1138 # type: verbatim
1139 #. type: verbatim
1140 #: ../src/guestfs.pod:481
1141 #, no-wrap
1142 msgid ""
1143 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
1144 "\n"
1145 msgstr ""
1146
1147 # type: textblock
1148 #. type: textblock
1149 #: ../src/guestfs.pod:483
1150 msgid ""
1151 "(Older versions of C<load_policy> require you to specify the name of the "
1152 "policy file)."
1153 msgstr ""
1154
1155 # type: =item
1156 #. type: =item
1157 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1422
1158 msgid "3."
1159 msgstr ""
1160
1161 # type: textblock
1162 #. type: textblock
1163 #: ../src/guestfs.pod:488
1164 msgid ""
1165 "Optionally, set the security context for the API.  The correct security "
1166 "context to use can only be known by inspecting the guest.  As an example:"
1167 msgstr ""
1168
1169 # type: verbatim
1170 #. type: verbatim
1171 #: ../src/guestfs.pod:492
1172 #, no-wrap
1173 msgid ""
1174 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
1175 "\n"
1176 msgstr ""
1177
1178 # type: textblock
1179 #. type: textblock
1180 #: ../src/guestfs.pod:496
1181 msgid "This will work for running commands and editing existing files."
1182 msgstr ""
1183
1184 # type: textblock
1185 #. type: textblock
1186 #: ../src/guestfs.pod:498
1187 msgid ""
1188 "When new files are created, you may need to label them explicitly, for "
1189 "example by running the external command C<restorecon pathname>."
1190 msgstr ""
1191
1192 # type: =head2
1193 #. type: =head2
1194 #: ../src/guestfs.pod:502
1195 msgid "UMASK"
1196 msgstr ""
1197
1198 # type: textblock
1199 #. type: textblock
1200 #: ../src/guestfs.pod:504
1201 msgid ""
1202 "Certain calls are affected by the current file mode creation mask (the "
1203 "\"umask\").  In particular ones which create files or directories, such as "
1204 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
1205 "either the default mode that the file is created with or modifies the mode "
1206 "that you supply."
1207 msgstr ""
1208
1209 # type: textblock
1210 #. type: textblock
1211 #: ../src/guestfs.pod:510
1212 msgid ""
1213 "The default umask is C<022>, so files are created with modes such as C<0644> "
1214 "and directories with C<0755>."
1215 msgstr ""
1216
1217 # type: textblock
1218 #. type: textblock
1219 #: ../src/guestfs.pod:513
1220 msgid ""
1221 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
1222 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
1223 "guestfs_chmod> after creating each file or directory."
1224 msgstr ""
1225
1226 # type: textblock
1227 #. type: textblock
1228 #: ../src/guestfs.pod:517
1229 msgid "For more information about umask, see L<umask(2)>."
1230 msgstr ""
1231
1232 # type: =head1
1233 #. type: =head1
1234 #: ../src/guestfs.pod:519 ../fish/guestfish.pod:751
1235 msgid "ENCRYPTED DISKS"
1236 msgstr ""
1237
1238 # type: textblock
1239 #. type: textblock
1240 #: ../src/guestfs.pod:521
1241 msgid ""
1242 "Libguestfs allows you to access Linux guests which have been encrypted using "
1243 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
1244 "standard.  This includes nearly all whole disk encryption systems used by "
1245 "modern Linux guests."
1246 msgstr ""
1247
1248 # type: textblock
1249 #. type: textblock
1250 #: ../src/guestfs.pod:527
1251 msgid ""
1252 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
1253 "returns the string C<crypto_LUKS>)."
1254 msgstr ""
1255
1256 # type: textblock
1257 #. type: textblock
1258 #: ../src/guestfs.pod:530
1259 msgid ""
1260 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
1261 "will require the passphrase!"
1262 msgstr ""
1263
1264 # type: textblock
1265 #. type: textblock
1266 #: ../src/guestfs.pod:533
1267 msgid ""
1268 "Opening a LUKS device creates a new device mapper device called C</dev/"
1269 "mapper/mapname> (where C<mapname> is the string you supply to L</"
1270 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
1271 "from and encrypted to the underlying block device respectively."
1272 msgstr ""
1273
1274 # type: textblock
1275 #. type: textblock
1276 #: ../src/guestfs.pod:539
1277 msgid ""
1278 "LVM volume groups on the device can be made visible by calling L</"
1279 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
1280 "(s) can now be mounted in the usual way."
1281 msgstr ""
1282
1283 # type: textblock
1284 #. type: textblock
1285 #: ../src/guestfs.pod:543
1286 msgid ""
1287 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
1288 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
1289 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
1290 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
1291 "underlying encrypted block device)."
1292 msgstr ""
1293
1294 # type: =head2
1295 #. type: =head2
1296 #: ../src/guestfs.pod:550
1297 msgid "INSPECTION"
1298 msgstr ""
1299
1300 #. type: textblock
1301 #: ../src/guestfs.pod:552
1302 msgid ""
1303 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
1304 "contains operating systems, an install CD or a live CD.  (These APIs used to "
1305 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
1306 "version 1.5.3 the most frequently used part of this library has been "
1307 "rewritten in C and moved into the core code)."
1308 msgstr ""
1309
1310 # type: textblock
1311 #. type: textblock
1312 #: ../src/guestfs.pod:559
1313 msgid ""
1314 "Add all disks belonging to the unknown virtual machine and call L</"
1315 "guestfs_launch> in the usual way."
1316 msgstr ""
1317
1318 # type: textblock
1319 #. type: textblock
1320 #: ../src/guestfs.pod:562
1321 msgid ""
1322 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
1323 "and certain heuristics, and returns a list of operating systems that were "
1324 "found.  An empty list means none were found.  A single element is the root "
1325 "filesystem of the operating system.  For dual- or multi-boot guests, "
1326 "multiple roots can be returned, each one corresponding to a separate "
1327 "operating system.  (Multi-boot virtual machines are extremely rare in the "
1328 "world of virtualization, but since this scenario can happen, we have built "
1329 "libguestfs to deal with it.)"
1330 msgstr ""
1331
1332 # type: textblock
1333 #. type: textblock
1334 #: ../src/guestfs.pod:571
1335 msgid ""
1336 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
1337 "to get additional details about that operating system.  For example, call L</"
1338 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
1339 "Windows and Linux-based operating systems respectively."
1340 msgstr ""
1341
1342 # type: textblock
1343 #. type: textblock
1344 #: ../src/guestfs.pod:577
1345 msgid ""
1346 "Un*x-like and Linux-based operating systems usually consist of several "
1347 "filesystems which are mounted at boot time (for example, a separate boot "
1348 "partition mounted on C</boot>).  The inspection rules are able to detect how "
1349 "filesystems correspond to mount points.  Call "
1350 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
1351 "hash table like this example:"
1352 msgstr ""
1353
1354 # type: verbatim
1355 #. type: verbatim
1356 #: ../src/guestfs.pod:584
1357 #, no-wrap
1358 msgid ""
1359 " /boot => /dev/sda1\n"
1360 " /     => /dev/vg_guest/lv_root\n"
1361 " /usr  => /dev/vg_guest/lv_usr\n"
1362 "\n"
1363 msgstr ""
1364
1365 # type: textblock
1366 #. type: textblock
1367 #: ../src/guestfs.pod:588
1368 msgid ""
1369 "The caller can then make calls to L</guestfs_mount_options> to mount the "
1370 "filesystems as suggested."
1371 msgstr ""
1372
1373 # type: textblock
1374 #. type: textblock
1375 #: ../src/guestfs.pod:591
1376 msgid ""
1377 "Be careful to mount filesystems in the right order (eg. C</> before C</"
1378 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
1379 msgstr ""
1380
1381 # type: textblock
1382 #. type: textblock
1383 #: ../src/guestfs.pod:595
1384 msgid ""
1385 "Inspection currently only works for some common operating systems.  "
1386 "Contributors are welcome to send patches for other operating systems that we "
1387 "currently cannot detect."
1388 msgstr ""
1389
1390 # type: textblock
1391 #. type: textblock
1392 #: ../src/guestfs.pod:599
1393 msgid ""
1394 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
1395 "for more details.  The L</guestfs_inspect_os> function just ignores any "
1396 "encrypted devices."
1397 msgstr ""
1398
1399 # type: textblock
1400 #. type: textblock
1401 #: ../src/guestfs.pod:603
1402 msgid ""
1403 "A note on the implementation: The call L</guestfs_inspect_os> performs "
1404 "inspection and caches the results in the guest handle.  Subsequent calls to "
1405 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
1406 "read the disks.  If you change the content of the guest disks, you can redo "
1407 "inspection by calling L</guestfs_inspect_os> again.  (L</"
1408 "guestfs_inspect_list_applications> works a little differently from the other "
1409 "calls and does read the disks.  See documentation for that function for "
1410 "details)."
1411 msgstr ""
1412
1413 #. type: =head3
1414 #: ../src/guestfs.pod:612
1415 msgid "INSPECTING INSTALL DISKS"
1416 msgstr ""
1417
1418 #. type: textblock
1419 #: ../src/guestfs.pod:614
1420 msgid ""
1421 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
1422 "CDs and more."
1423 msgstr ""
1424
1425 #. type: textblock
1426 #: ../src/guestfs.pod:617
1427 msgid ""
1428 "Call L</guestfs_inspect_get_format> to return the format of the operating "
1429 "system, which currently can be C<installed> (a regular operating system) or "
1430 "C<installer> (some sort of install disk)."
1431 msgstr ""
1432
1433 #. type: textblock
1434 #: ../src/guestfs.pod:621
1435 msgid ""
1436 "Further information is available about the operating system that can be "
1437 "installed using the regular inspection APIs like L</"
1438 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
1439 msgstr ""
1440
1441 #. type: textblock
1442 #: ../src/guestfs.pod:626
1443 msgid ""
1444 "Some additional information specific to installer disks is also available "
1445 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
1446 "guestfs_inspect_is_multipart> calls."
1447 msgstr ""
1448
1449 # type: =head2
1450 #. type: =head2
1451 #: ../src/guestfs.pod:631
1452 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
1453 msgstr ""
1454
1455 # type: textblock
1456 #. type: textblock
1457 #: ../src/guestfs.pod:633
1458 msgid ""
1459 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
1460 "ntfs-3g.org/> driver."
1461 msgstr ""
1462
1463 # type: =head3
1464 #. type: =head3
1465 #: ../src/guestfs.pod:636
1466 msgid "DRIVE LETTERS AND PATHS"
1467 msgstr ""
1468
1469 # type: textblock
1470 #. type: textblock
1471 #: ../src/guestfs.pod:638
1472 msgid ""
1473 "DOS and Windows still use drive letters, and the filesystems are always "
1474 "treated as case insensitive by Windows itself, and therefore you might find "
1475 "a Windows configuration file referring to a path like C<c:\\windows"
1476 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
1477 "might be referred to as C</WINDOWS/System32>."
1478 msgstr ""
1479
1480 # type: textblock
1481 #. type: textblock
1482 #: ../src/guestfs.pod:644
1483 msgid ""
1484 "Drive letter mappings are outside the scope of libguestfs.  You have to use "
1485 "libguestfs to read the appropriate Windows Registry and configuration files, "
1486 "to determine yourself how drives are mapped (see also L<hivex(3)> and L<virt-"
1487 "inspector(1)>)."
1488 msgstr ""
1489
1490 # type: textblock
1491 #. type: textblock
1492 #: ../src/guestfs.pod:649
1493 msgid ""
1494 "Replacing backslash characters with forward slash characters is also outside "
1495 "the scope of libguestfs, but something that you can easily do."
1496 msgstr ""
1497
1498 # type: textblock
1499 #. type: textblock
1500 #: ../src/guestfs.pod:652
1501 msgid ""
1502 "Where we can help is in resolving the case insensitivity of paths.  For "
1503 "this, call L</guestfs_case_sensitive_path>."
1504 msgstr ""
1505
1506 # type: =head3
1507 #. type: =head3
1508 #: ../src/guestfs.pod:655
1509 msgid "ACCESSING THE WINDOWS REGISTRY"
1510 msgstr ""
1511
1512 # type: textblock
1513 #. type: textblock
1514 #: ../src/guestfs.pod:657
1515 msgid ""
1516 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
1517 "files, through the library C<hivex> which is part of the libguestfs project "
1518 "although ships as a separate tarball.  You have to locate and download the "
1519 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
1520 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
1521 "reg(1)> for more help on this issue."
1522 msgstr ""
1523
1524 # type: =head3
1525 #. type: =head3
1526 #: ../src/guestfs.pod:665
1527 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
1528 msgstr ""
1529
1530 # type: textblock
1531 #. type: textblock
1532 #: ../src/guestfs.pod:667
1533 msgid ""
1534 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
1535 "provide something which looks like a Linux symlink.  The way it tries to do "
1536 "the rewriting is described here:"
1537 msgstr ""
1538
1539 # type: textblock
1540 #. type: textblock
1541 #: ../src/guestfs.pod:671
1542 msgid ""
1543 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
1544 "symbolic-links/>"
1545 msgstr ""
1546
1547 # type: textblock
1548 #. type: textblock
1549 #: ../src/guestfs.pod:673
1550 msgid ""
1551 "The essential problem is that ntfs-3g simply does not have enough "
1552 "information to do a correct job.  NTFS links can contain drive letters and "
1553 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
1554 "It is almost certainly the case that libguestfs callers should ignore what "
1555 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
1556 msgstr ""
1557
1558 # type: textblock
1559 #. type: textblock
1560 #: ../src/guestfs.pod:680
1561 msgid ""
1562 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
1563 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
1564 "attribute, and read the raw reparse data from that (you can find the format "
1565 "documented in various places around the web)."
1566 msgstr ""
1567
1568 # type: =head3
1569 #. type: =head3
1570 #: ../src/guestfs.pod:685
1571 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
1572 msgstr ""
1573
1574 # type: textblock
1575 #. type: textblock
1576 #: ../src/guestfs.pod:687
1577 msgid ""
1578 "There are other useful extended attributes that can be read from ntfs-3g "
1579 "filesystems (using L</guestfs_getxattr>).  See:"
1580 msgstr ""
1581
1582 # type: textblock
1583 #. type: textblock
1584 #: ../src/guestfs.pod:690
1585 msgid ""
1586 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
1587 msgstr ""
1588
1589 # type: =head2
1590 #. type: =head2
1591 #: ../src/guestfs.pod:692
1592 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
1593 msgstr ""
1594
1595 # type: textblock
1596 #. type: textblock
1597 #: ../src/guestfs.pod:694
1598 msgid ""
1599 "Although we don't want to discourage you from using the C API, we will "
1600 "mention here that the same API is also available in other languages."
1601 msgstr ""
1602
1603 #. type: textblock
1604 #: ../src/guestfs.pod:697
1605 msgid ""
1606 "The API is broadly identical in all supported languages.  This means that "
1607 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
1608 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
1609 "OCaml.  In other words, a straightforward, predictable isomorphism between "
1610 "each language."
1611 msgstr ""
1612
1613 # type: textblock
1614 #. type: textblock
1615 #: ../src/guestfs.pod:703
1616 msgid ""
1617 "Error messages are automatically transformed into exceptions if the language "
1618 "supports it."
1619 msgstr ""
1620
1621 # type: textblock
1622 #. type: textblock
1623 #: ../src/guestfs.pod:706
1624 msgid ""
1625 "We don't try to \"object orientify\" parts of the API in OO languages, "
1626 "although contributors are welcome to write higher level APIs above what we "
1627 "provide in their favourite languages if they wish."
1628 msgstr ""
1629
1630 # type: =item
1631 #. type: =item
1632 #: ../src/guestfs.pod:712
1633 msgid "B<C++>"
1634 msgstr ""
1635
1636 # type: textblock
1637 #. type: textblock
1638 #: ../src/guestfs.pod:714
1639 msgid ""
1640 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
1641 "identical to the C API.  C++ classes and exceptions are not used."
1642 msgstr ""
1643
1644 # type: =item
1645 #. type: =item
1646 #: ../src/guestfs.pod:718
1647 msgid "B<C#>"
1648 msgstr ""
1649
1650 # type: textblock
1651 #. type: textblock
1652 #: ../src/guestfs.pod:720
1653 msgid ""
1654 "The C# bindings are highly experimental.  Please read the warnings at the "
1655 "top of C<csharp/Libguestfs.cs>."
1656 msgstr ""
1657
1658 # type: =item
1659 #. type: =item
1660 #: ../src/guestfs.pod:723
1661 msgid "B<Haskell>"
1662 msgstr ""
1663
1664 # type: textblock
1665 #. type: textblock
1666 #: ../src/guestfs.pod:725
1667 msgid ""
1668 "This is the only language binding that is working but incomplete.  Only "
1669 "calls which return simple integers have been bound in Haskell, and we are "
1670 "looking for help to complete this binding."
1671 msgstr ""
1672
1673 # type: =item
1674 #. type: =item
1675 #: ../src/guestfs.pod:729
1676 msgid "B<Java>"
1677 msgstr ""
1678
1679 # type: textblock
1680 #. type: textblock
1681 #: ../src/guestfs.pod:731
1682 msgid ""
1683 "Full documentation is contained in the Javadoc which is distributed with "
1684 "libguestfs."
1685 msgstr ""
1686
1687 # type: =item
1688 #. type: =item
1689 #: ../src/guestfs.pod:734
1690 msgid "B<OCaml>"
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../src/guestfs.pod:736
1695 msgid "See L<guestfs-ocaml(3)>."
1696 msgstr ""
1697
1698 # type: =item
1699 #. type: =item
1700 #: ../src/guestfs.pod:738
1701 msgid "B<Perl>"
1702 msgstr ""
1703
1704 #. type: textblock
1705 #: ../src/guestfs.pod:740
1706 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
1707 msgstr ""
1708
1709 # type: =item
1710 #. type: =item
1711 #: ../src/guestfs.pod:742
1712 msgid "B<PHP>"
1713 msgstr ""
1714
1715 # type: textblock
1716 #. type: textblock
1717 #: ../src/guestfs.pod:744
1718 msgid ""
1719 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
1720 "the php-libguestfs package for your distribution."
1721 msgstr ""
1722
1723 # type: textblock
1724 #. type: textblock
1725 #: ../src/guestfs.pod:747
1726 msgid "The PHP binding only works correctly on 64 bit machines."
1727 msgstr ""
1728
1729 # type: =item
1730 #. type: =item
1731 #: ../src/guestfs.pod:749
1732 msgid "B<Python>"
1733 msgstr ""
1734
1735 #. type: textblock
1736 #: ../src/guestfs.pod:751
1737 msgid "See L<guestfs-python(3)>."
1738 msgstr ""
1739
1740 # type: =item
1741 #. type: =item
1742 #: ../src/guestfs.pod:753
1743 msgid "B<Ruby>"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../src/guestfs.pod:755
1748 msgid "See L<guestfs-ruby(3)>."
1749 msgstr ""
1750
1751 # type: =item
1752 #. type: =item
1753 #: ../src/guestfs.pod:757
1754 msgid "B<shell scripts>"
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../src/guestfs.pod:759
1759 msgid "See L<guestfish(1)>."
1760 msgstr ""
1761
1762 # type: =head2
1763 #. type: =head2
1764 #: ../src/guestfs.pod:763
1765 msgid "LIBGUESTFS GOTCHAS"
1766 msgstr ""
1767
1768 # type: textblock
1769 #. type: textblock
1770 #: ../src/guestfs.pod:765
1771 msgid ""
1772 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
1773 "system [...] that works in the way it is documented but is counterintuitive "
1774 "and almost invites mistakes.\""
1775 msgstr ""
1776
1777 # type: textblock
1778 #. type: textblock
1779 #: ../src/guestfs.pod:769
1780 msgid ""
1781 "Since we developed libguestfs and the associated tools, there are several "
1782 "things we would have designed differently, but are now stuck with for "
1783 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
1784 "release, you can expect these to change.  Beware of them."
1785 msgstr ""
1786
1787 # type: =item
1788 #. type: =item
1789 #: ../src/guestfs.pod:777
1790 msgid "Autosync / forgetting to sync."
1791 msgstr ""
1792
1793 # type: textblock
1794 #. type: textblock
1795 #: ../src/guestfs.pod:779
1796 msgid ""
1797 "When modifying a filesystem from C or another language, you B<must> unmount "
1798 "all filesystems and call L</guestfs_sync> explicitly before you close the "
1799 "libguestfs handle.  You can also call:"
1800 msgstr ""
1801
1802 # type: verbatim
1803 #. type: verbatim
1804 #: ../src/guestfs.pod:783
1805 #, no-wrap
1806 msgid ""
1807 " guestfs_set_autosync (g, 1);\n"
1808 "\n"
1809 msgstr ""
1810
1811 # type: textblock
1812 #. type: textblock
1813 #: ../src/guestfs.pod:785
1814 msgid ""
1815 "to have the unmount/sync done automatically for you when the handle 'g' is "
1816 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
1817 msgstr ""
1818
1819 # type: textblock
1820 #. type: textblock
1821 #: ../src/guestfs.pod:789
1822 msgid ""
1823 "If you forget to do this, then it is entirely possible that your changes "
1824 "won't be written out, or will be partially written, or (very rarely) that "
1825 "you'll get disk corruption."
1826 msgstr ""
1827
1828 # type: textblock
1829 #. type: textblock
1830 #: ../src/guestfs.pod:793
1831 msgid ""
1832 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
1833 "guestfish scripts that forget to sync will work just fine, which can make "
1834 "this very puzzling if you are trying to debug a problem."
1835 msgstr ""
1836
1837 # type: textblock
1838 #. type: textblock
1839 #: ../src/guestfs.pod:797
1840 msgid ""
1841 "Update: Autosync is enabled by default for all API users starting from "
1842 "libguestfs 1.5.24."
1843 msgstr ""
1844
1845 # type: =item
1846 #. type: =item
1847 #: ../src/guestfs.pod:800
1848 msgid "Mount option C<-o sync> should not be the default."
1849 msgstr ""
1850
1851 # type: textblock
1852 #. type: textblock
1853 #: ../src/guestfs.pod:802
1854 msgid ""
1855 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
1856 "However C<-o sync> does not add any reliability benefit, but does have a "
1857 "very large performance impact."
1858 msgstr ""
1859
1860 # type: textblock
1861 #. type: textblock
1862 #: ../src/guestfs.pod:806
1863 msgid ""
1864 "The work around is to use L</guestfs_mount_options> and set the mount "
1865 "options that you actually want to use."
1866 msgstr ""
1867
1868 # type: =item
1869 #. type: =item
1870 #: ../src/guestfs.pod:809
1871 msgid "Read-only should be the default."
1872 msgstr ""
1873
1874 # type: textblock
1875 #. type: textblock
1876 #: ../src/guestfs.pod:811
1877 msgid ""
1878 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
1879 "specify I<--rw> if you want to make changes to the image."
1880 msgstr ""
1881
1882 # type: textblock
1883 #. type: textblock
1884 #: ../src/guestfs.pod:814
1885 msgid "This would reduce the potential to corrupt live VM images."
1886 msgstr ""
1887
1888 # type: textblock
1889 #. type: textblock
1890 #: ../src/guestfs.pod:816
1891 msgid ""
1892 "Note that many filesystems change the disk when you just mount and unmount, "
1893 "even if you didn't perform any writes.  You need to use L</"
1894 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
1895 msgstr ""
1896
1897 # type: =item
1898 #. type: =item
1899 #: ../src/guestfs.pod:820
1900 msgid "guestfish command line is hard to use."
1901 msgstr ""
1902
1903 # type: textblock
1904 #. type: textblock
1905 #: ../src/guestfs.pod:822
1906 msgid ""
1907 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
1908 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
1909 "exist, so it fails.  In earlier versions of guestfish the error message was "
1910 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
1911 "we should have used C<guestfish -c command> to run commands."
1912 msgstr ""
1913
1914 # type: =item
1915 #. type: =item
1916 #: ../src/guestfs.pod:829
1917 msgid "guestfish megabyte modifiers don't work right on all commands"
1918 msgstr ""
1919
1920 # type: textblock
1921 #. type: textblock
1922 #: ../src/guestfs.pod:831
1923 msgid ""
1924 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
1925 "other modifiers).  What guestfish actually does is to multiply the number "
1926 "part by the modifier part and pass the result to the C API.  However this "
1927 "doesn't work for a few APIs which aren't expecting bytes, but are already "
1928 "expecting some other unit (eg. megabytes)."
1929 msgstr ""
1930
1931 # type: textblock
1932 #. type: textblock
1933 #: ../src/guestfs.pod:838
1934 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
1935 msgstr ""
1936
1937 # type: verbatim
1938 #. type: verbatim
1939 #: ../src/guestfs.pod:840
1940 #, no-wrap
1941 msgid ""
1942 " lvcreate LV VG 100M\n"
1943 "\n"
1944 msgstr ""
1945
1946 # type: textblock
1947 #. type: textblock
1948 #: ../src/guestfs.pod:842
1949 msgid ""
1950 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
1951 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
1952 "megabytes * megabytes) logical volume.  The error message you get from this "
1953 "is also a little obscure."
1954 msgstr ""
1955
1956 # type: textblock
1957 #. type: textblock
1958 #: ../src/guestfs.pod:847
1959 msgid ""
1960 "This could be fixed in the generator by specially marking parameters and "
1961 "return values which take bytes or other units."
1962 msgstr ""
1963
1964 # type: =item
1965 #. type: =item
1966 #: ../src/guestfs.pod:850
1967 msgid "Ambiguity between devices and paths"
1968 msgstr ""
1969
1970 # type: textblock
1971 #. type: textblock
1972 #: ../src/guestfs.pod:852
1973 msgid ""
1974 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
1975 "sdb2>) and a similar pathname.  A file might just happen to be called "
1976 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
1977 msgstr ""
1978
1979 # type: textblock
1980 #. type: textblock
1981 #: ../src/guestfs.pod:857
1982 msgid ""
1983 "In the current API we usually resolve this ambiguity by having two separate "
1984 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
1985 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
1986 "detecting if the path supplied begins with C</dev/>."
1987 msgstr ""
1988
1989 # type: textblock
1990 #. type: textblock
1991 #: ../src/guestfs.pod:863
1992 msgid ""
1993 "To avoid both the ambiguity and the need to duplicate some calls, we could "
1994 "make paths/devices into structured names.  One way to do this would be to "
1995 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
1996 "aspect of grub.  Another way would be to use a structured type, equivalent "
1997 "to this OCaml type:"
1998 msgstr ""
1999
2000 # type: verbatim
2001 #. type: verbatim
2002 #: ../src/guestfs.pod:869
2003 #, no-wrap
2004 msgid ""
2005 " type path = Path of string | Device of int | Partition of int * int\n"
2006 "\n"
2007 msgstr ""
2008
2009 # type: textblock
2010 #. type: textblock
2011 #: ../src/guestfs.pod:871
2012 msgid "which would allow you to pass arguments like:"
2013 msgstr ""
2014
2015 # type: verbatim
2016 #. type: verbatim
2017 #: ../src/guestfs.pod:873
2018 #, no-wrap
2019 msgid ""
2020 " Path \"/foo/bar\"\n"
2021 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
2022 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
2023 " Path \"/dev/sdb2\"    (* not a device *)\n"
2024 "\n"
2025 msgstr ""
2026
2027 # type: textblock
2028 #. type: textblock
2029 #: ../src/guestfs.pod:878
2030 msgid ""
2031 "As you can see there are still problems to resolve even with this "
2032 "representation.  Also consider how it might work in guestfish."
2033 msgstr ""
2034
2035 # type: =head2
2036 #. type: =head2
2037 #: ../src/guestfs.pod:883
2038 msgid "PROTOCOL LIMITS"
2039 msgstr ""
2040
2041 # type: textblock
2042 #. type: textblock
2043 #: ../src/guestfs.pod:885
2044 msgid ""
2045 "Internally libguestfs uses a message-based protocol to pass API calls and "
2046 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
2047 "plenty more detail about this).  The maximum message size used by the "
2048 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
2049 "aware of this limit.  The API calls which may be affected are individually "
2050 "documented, with a link back to this section of the documentation."
2051 msgstr ""
2052
2053 # type: textblock
2054 #. type: textblock
2055 #: ../src/guestfs.pod:893
2056 msgid ""
2057 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
2058 "a simple string.  Because this string is at some point internally encoded as "
2059 "a message, the maximum size that it can return is slightly under 4 MB.  If "
2060 "the requested file is larger than this then you will get an error."
2061 msgstr ""
2062
2063 # type: textblock
2064 #. type: textblock
2065 #: ../src/guestfs.pod:899
2066 msgid ""
2067 "In order to transfer large files into and out of the guest filesystem, you "
2068 "need to use particular calls that support this.  The sections L</UPLOADING> "
2069 "and L</DOWNLOADING> document how to do this."
2070 msgstr ""
2071
2072 # type: textblock
2073 #. type: textblock
2074 #: ../src/guestfs.pod:903
2075 msgid ""
2076 "You might also consider mounting the disk image using our FUSE filesystem "
2077 "support (L<guestmount(1)>)."
2078 msgstr ""
2079
2080 # type: =head2
2081 #. type: =head2
2082 #: ../src/guestfs.pod:906
2083 msgid "KEYS AND PASSPHRASES"
2084 msgstr ""
2085
2086 # type: textblock
2087 #. type: textblock
2088 #: ../src/guestfs.pod:908
2089 msgid ""
2090 "Certain libguestfs calls take a parameter that contains sensitive key "
2091 "material, passed in as a C string."
2092 msgstr ""
2093
2094 # type: textblock
2095 #. type: textblock
2096 #: ../src/guestfs.pod:911
2097 msgid ""
2098 "In the future we would hope to change the libguestfs implementation so that "
2099 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
2100 "swap.  However this is I<not> done at the moment, because of the complexity "
2101 "of such an implementation."
2102 msgstr ""
2103
2104 # type: textblock
2105 #. type: textblock
2106 #: ../src/guestfs.pod:916
2107 msgid ""
2108 "Therefore you should be aware that any key parameter you pass to libguestfs "
2109 "might end up being written out to the swap partition.  If this is a concern, "
2110 "scrub the swap partition or don't use libguestfs on encrypted devices."
2111 msgstr ""
2112
2113 # type: =head1
2114 #. type: =head2
2115 #: ../src/guestfs.pod:921
2116 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
2117 msgstr ""
2118
2119 # type: textblock
2120 #. type: textblock
2121 #: ../src/guestfs.pod:923
2122 msgid ""
2123 "All high-level libguestfs actions are synchronous.  If you want to use "
2124 "libguestfs asynchronously then you must create a thread."
2125 msgstr ""
2126
2127 # type: textblock
2128 #. type: textblock
2129 #: ../src/guestfs.pod:926
2130 msgid ""
2131 "Only use the handle from a single thread.  Either use the handle exclusively "
2132 "from one thread, or provide your own mutex so that two threads cannot issue "
2133 "calls on the same handle at the same time."
2134 msgstr ""
2135
2136 # type: textblock
2137 #. type: textblock
2138 #: ../src/guestfs.pod:930
2139 msgid ""
2140 "See the graphical program guestfs-browser for one possible architecture for "
2141 "multithreaded programs using libvirt and libguestfs."
2142 msgstr ""
2143
2144 # type: =head1
2145 #. type: =head2
2146 #: ../src/guestfs.pod:933
2147 msgid "PATH"
2148 msgstr ""
2149
2150 #. type: textblock
2151 #: ../src/guestfs.pod:935
2152 msgid ""
2153 "Libguestfs needs a supermin appliance, which it finds by looking along an "
2154 "internal path."
2155 msgstr ""
2156
2157 # type: textblock
2158 #. type: textblock
2159 #: ../src/guestfs.pod:938
2160 msgid ""
2161 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2162 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2163 msgstr ""
2164
2165 # type: textblock
2166 #. type: textblock
2167 #: ../src/guestfs.pod:941
2168 msgid ""
2169 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2170 "to change the directories that libguestfs will search in.  The value is a "
2171 "colon-separated list of paths.  The current directory is I<not> searched "
2172 "unless the path contains an empty element or C<.>.  For example "
2173 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2174 "then C</usr/lib/guestfs>."
2175 msgstr ""
2176
2177 # type: =head1
2178 #. type: =head2
2179 #: ../src/guestfs.pod:948
2180 msgid "QEMU WRAPPERS"
2181 msgstr ""
2182
2183 # type: textblock
2184 #. type: textblock
2185 #: ../src/guestfs.pod:950
2186 msgid ""
2187 "If you want to compile your own qemu, run qemu from a non-standard location, "
2188 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2189 "around qemu."
2190 msgstr ""
2191
2192 # type: textblock
2193 #. type: textblock
2194 #: ../src/guestfs.pod:954
2195 msgid ""
2196 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2197 "last command in the shell script (so that qemu replaces the shell and "
2198 "becomes the direct child of the libguestfs-using program).  If you don't do "
2199 "this, then the qemu process won't be cleaned up correctly."
2200 msgstr ""
2201
2202 # type: textblock
2203 #. type: textblock
2204 #: ../src/guestfs.pod:959
2205 msgid ""
2206 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2207 "source:"
2208 msgstr ""
2209
2210 # type: verbatim
2211 #. type: verbatim
2212 #: ../src/guestfs.pod:962
2213 #, no-wrap
2214 msgid ""
2215 " #!/bin/sh -\n"
2216 " qemudir=/home/rjones/d/qemu\n"
2217 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2218 "\n"
2219 msgstr ""
2220
2221 # type: textblock
2222 #. type: textblock
2223 #: ../src/guestfs.pod:966
2224 msgid ""
2225 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2226 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2227 "example:"
2228 msgstr ""
2229
2230 # type: verbatim
2231 #. type: verbatim
2232 #: ../src/guestfs.pod:970
2233 #, no-wrap
2234 msgid ""
2235 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2236 "\n"
2237 msgstr ""
2238
2239 # type: textblock
2240 #. type: textblock
2241 #: ../src/guestfs.pod:972
2242 msgid ""
2243 "Note that libguestfs also calls qemu with the -help and -version options in "
2244 "order to determine features."
2245 msgstr ""
2246
2247 #. type: =head2
2248 #: ../src/guestfs.pod:975
2249 msgid "ATTACHING TO RUNNING DAEMONS"
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../src/guestfs.pod:977
2254 msgid ""
2255 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
2256 "babies.  Use with caution."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../src/guestfs.pod:980
2261 msgid ""
2262 "I<Note (2):> This section explains how to attach to a running daemon from a "
2263 "low level perspective.  For most users, simply using virt tools such as "
2264 "L<guestfish(1)> with the I<--live> option will \"just work\"."
2265 msgstr ""
2266
2267 #. type: =head3
2268 #: ../src/guestfs.pod:984
2269 msgid "Using guestfs_set_attach_method"
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../src/guestfs.pod:986
2274 msgid ""
2275 "By calling L</guestfs_set_attach_method> you can change how the library "
2276 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
2277 "ARCHITECTURE> for some background)."
2278 msgstr ""
2279
2280 #. type: textblock
2281 #: ../src/guestfs.pod:990
2282 msgid ""
2283 "The normal attach method is C<appliance>, where a small appliance is created "
2284 "containing the daemon, and then the library connects to this."
2285 msgstr ""
2286
2287 #. type: textblock
2288 #: ../src/guestfs.pod:993
2289 msgid ""
2290 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
2291 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
2292 "daemon over the Unix domain socket."
2293 msgstr ""
2294
2295 #. type: textblock
2296 #: ../src/guestfs.pod:997
2297 msgid ""
2298 "The normal use for this is to connect to a running virtual machine that "
2299 "contains a C<guestfsd> daemon, and send commands so you can read and write "
2300 "files inside the live virtual machine."
2301 msgstr ""
2302
2303 #. type: =head3
2304 #: ../src/guestfs.pod:1001
2305 msgid "Using guestfs_add_domain with live flag"
2306 msgstr ""
2307
2308 #. type: textblock
2309 #: ../src/guestfs.pod:1003
2310 msgid ""
2311 "L</guestfs_add_domain> provides some help for getting the correct attach "
2312 "method.  If you pass the C<live> option to this function, then (if the "
2313 "virtual machine is running) it will examine the libvirt XML looking for a "
2314 "virtio-serial channel to connect to:"
2315 msgstr ""
2316
2317 #. type: verbatim
2318 #: ../src/guestfs.pod:1009
2319 #, no-wrap
2320 msgid ""
2321 " <domain>\n"
2322 "   ...\n"
2323 "   <devices>\n"
2324 "     ...\n"
2325 "     <channel type='unix'>\n"
2326 "       <source mode='bind' path='/path/to/socket'/>\n"
2327 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
2328 "     </channel>\n"
2329 "     ...\n"
2330 "   </devices>\n"
2331 " </domain>\n"
2332 "\n"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../src/guestfs.pod:1021
2337 msgid ""
2338 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
2339 "method to C<unix:/path/to/socket>."
2340 msgstr ""
2341
2342 #. type: textblock
2343 #: ../src/guestfs.pod:1024
2344 msgid ""
2345 "Some of the libguestfs tools (including guestfish) support a I<--live> "
2346 "option which is passed through to L</guestfs_add_domain> thus allowing you "
2347 "to attach to and modify live virtual machines."
2348 msgstr ""
2349
2350 #. type: textblock
2351 #: ../src/guestfs.pod:1028
2352 msgid ""
2353 "The virtual machine needs to have been set up beforehand so that it has the "
2354 "virtio-serial channel and so that guestfsd is running inside it."
2355 msgstr ""
2356
2357 # type: =head2
2358 #. type: =head2
2359 #: ../src/guestfs.pod:1032
2360 msgid "ABI GUARANTEE"
2361 msgstr ""
2362
2363 # type: textblock
2364 #. type: textblock
2365 #: ../src/guestfs.pod:1034
2366 msgid ""
2367 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2368 "actions as outlined in this section.  Although we will deprecate some "
2369 "actions, for example if they get replaced by newer calls, we will keep the "
2370 "old actions forever.  This allows you the developer to program in confidence "
2371 "against the libguestfs API."
2372 msgstr ""
2373
2374 # type: =head1
2375 #. type: =head2
2376 #: ../src/guestfs.pod:1040
2377 msgid "BLOCK DEVICE NAMING"
2378 msgstr ""
2379
2380 # type: textblock
2381 #. type: textblock
2382 #: ../src/guestfs.pod:1042
2383 msgid ""
2384 "In the kernel there is now quite a profusion of schemata for naming block "
2385 "devices (in this context, by I<block device> I mean a physical or virtual "
2386 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2387 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2388 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2389 "for the old IDE driver (particularly for SATA devices) those devices also "
2390 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2391 "paravirtualized drivers.  This has created several different naming systems, "
2392 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2393 msgstr ""
2394
2395 # type: textblock
2396 #. type: textblock
2397 #: ../src/guestfs.pod:1054
2398 msgid ""
2399 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2400 "Linux kernel to access block devices.  We can run a variety of appliances "
2401 "based on a variety of Linux kernels."
2402 msgstr ""
2403
2404 # type: textblock
2405 #. type: textblock
2406 #: ../src/guestfs.pod:1058
2407 msgid ""
2408 "This causes a problem for libguestfs because many API calls use device or "
2409 "partition names.  Working scripts and the recipe (example) scripts that we "
2410 "make available over the internet could fail if the naming scheme changes."
2411 msgstr ""
2412
2413 # type: textblock
2414 #. type: textblock
2415 #: ../src/guestfs.pod:1063
2416 msgid ""
2417 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2418 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2419 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2420 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2421 msgstr ""
2422
2423 # type: textblock
2424 #. type: textblock
2425 #: ../src/guestfs.pod:1069
2426 msgid ""
2427 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2428 "L</guestfs_list_partitions> and similar calls return the true names of the "
2429 "devices and partitions as known to the appliance."
2430 msgstr ""
2431
2432 # type: =head2
2433 #. type: =head3
2434 #: ../src/guestfs.pod:1074
2435 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2436 msgstr ""
2437
2438 # type: textblock
2439 #. type: textblock
2440 #: ../src/guestfs.pod:1076
2441 msgid ""
2442 "Usually this translation is transparent.  However in some (very rare)  cases "
2443 "you may need to know the exact algorithm.  Such cases include where you use "
2444 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2445 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2446 msgstr ""
2447
2448 # type: textblock
2449 #. type: textblock
2450 #: ../src/guestfs.pod:1082
2451 msgid ""
2452 "The algorithm is applied only to I<parameters> which are known to be either "
2453 "device or partition names.  Return values from functions such as L</"
2454 "guestfs_list_devices> are never changed."
2455 msgstr ""
2456
2457 # type: textblock
2458 #. type: textblock
2459 #: ../src/guestfs.pod:1090
2460 msgid "Is the string a parameter which is a device or partition name?"
2461 msgstr ""
2462
2463 # type: textblock
2464 #. type: textblock
2465 #: ../src/guestfs.pod:1094
2466 msgid "Does the string begin with C</dev/sd>?"
2467 msgstr ""
2468
2469 # type: textblock
2470 #. type: textblock
2471 #: ../src/guestfs.pod:1098
2472 msgid ""
2473 "Does the named device exist? If so, we use that device.  However if I<not> "
2474 "then we continue with this algorithm."
2475 msgstr ""
2476
2477 # type: textblock
2478 #. type: textblock
2479 #: ../src/guestfs.pod:1103
2480 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2481 msgstr ""
2482
2483 # type: textblock
2484 #. type: textblock
2485 #: ../src/guestfs.pod:1105
2486 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2487 msgstr ""
2488
2489 # type: textblock
2490 #. type: textblock
2491 #: ../src/guestfs.pod:1107
2492 msgid "If that named device exists, use it.  If not, continue."
2493 msgstr ""
2494
2495 # type: textblock
2496 #. type: textblock
2497 #: ../src/guestfs.pod:1111
2498 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2499 msgstr ""
2500
2501 # type: textblock
2502 #. type: textblock
2503 #: ../src/guestfs.pod:1113
2504 msgid "If that named device exists, use it.  If not, return an error."
2505 msgstr ""
2506
2507 # type: =head3
2508 #. type: =head3
2509 #: ../src/guestfs.pod:1117
2510 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2511 msgstr ""
2512
2513 # type: textblock
2514 #. type: textblock
2515 #: ../src/guestfs.pod:1119
2516 msgid ""
2517 "Although the standard naming scheme and automatic translation is useful for "
2518 "simple programs and guestfish scripts, for larger programs it is best not to "
2519 "rely on this mechanism."
2520 msgstr ""
2521
2522 # type: textblock
2523 #. type: textblock
2524 #: ../src/guestfs.pod:1123
2525 msgid ""
2526 "Where possible for maximum future portability programs using libguestfs "
2527 "should use these future-proof techniques:"
2528 msgstr ""
2529
2530 # type: textblock
2531 #. type: textblock
2532 #: ../src/guestfs.pod:1130
2533 msgid ""
2534 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2535 "device names, and then use those names directly."
2536 msgstr ""
2537
2538 # type: textblock
2539 #. type: textblock
2540 #: ../src/guestfs.pod:1133
2541 msgid ""
2542 "Since those device names exist by definition, they will never be translated."
2543 msgstr ""
2544
2545 # type: textblock
2546 #. type: textblock
2547 #: ../src/guestfs.pod:1138
2548 msgid ""
2549 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2550 "filesystem labels."
2551 msgstr ""
2552
2553 # type: =head1
2554 #. type: =head1
2555 #: ../src/guestfs.pod:1143
2556 msgid "SECURITY"
2557 msgstr ""
2558
2559 # type: textblock
2560 #. type: textblock
2561 #: ../src/guestfs.pod:1145
2562 msgid ""
2563 "This section discusses security implications of using libguestfs, "
2564 "particularly with untrusted or malicious guests or disk images."
2565 msgstr ""
2566
2567 # type: =head2
2568 #. type: =head2
2569 #: ../src/guestfs.pod:1148
2570 msgid "GENERAL SECURITY CONSIDERATIONS"
2571 msgstr ""
2572
2573 # type: textblock
2574 #. type: textblock
2575 #: ../src/guestfs.pod:1150
2576 msgid ""
2577 "Be careful with any files or data that you download from a guest (by "
2578 "\"download\" we mean not just the L</guestfs_download> command but any "
2579 "command that reads files, filenames, directories or anything else from a "
2580 "disk image).  An attacker could manipulate the data to fool your program "
2581 "into doing the wrong thing.  Consider cases such as:"
2582 msgstr ""
2583
2584 # type: textblock
2585 #. type: textblock
2586 #: ../src/guestfs.pod:1160
2587 msgid "the data (file etc) not being present"
2588 msgstr ""
2589
2590 # type: textblock
2591 #. type: textblock
2592 #: ../src/guestfs.pod:1164
2593 msgid "being present but empty"
2594 msgstr ""
2595
2596 # type: textblock
2597 #. type: textblock
2598 #: ../src/guestfs.pod:1168
2599 msgid "being much larger than normal"
2600 msgstr ""
2601
2602 # type: textblock
2603 #. type: textblock
2604 #: ../src/guestfs.pod:1172
2605 msgid "containing arbitrary 8 bit data"
2606 msgstr ""
2607
2608 # type: textblock
2609 #. type: textblock
2610 #: ../src/guestfs.pod:1176
2611 msgid "being in an unexpected character encoding"
2612 msgstr ""
2613
2614 # type: textblock
2615 #. type: textblock
2616 #: ../src/guestfs.pod:1180
2617 msgid "containing homoglyphs."
2618 msgstr ""
2619
2620 # type: =head2
2621 #. type: =head2
2622 #: ../src/guestfs.pod:1184
2623 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2624 msgstr ""
2625
2626 # type: textblock
2627 #. type: textblock
2628 #: ../src/guestfs.pod:1186
2629 msgid ""
2630 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2631 "(VFS) module can sometimes be escalated into exploits by deliberately "
2632 "creating a malicious, malformed filesystem.  These exploits are very severe "
2633 "for two reasons.  Firstly there are very many filesystem drivers in the "
2634 "kernel, and many of them are infrequently used and not much developer "
2635 "attention has been paid to the code.  Linux userspace helps potential "
2636 "crackers by detecting the filesystem type and automatically choosing the "
2637 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2638 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2639 "exploit (worse in some ways), giving immediate and total access to the "
2640 "system right down to the hardware level."
2641 msgstr ""
2642
2643 # type: textblock
2644 #. type: textblock
2645 #: ../src/guestfs.pod:1199
2646 msgid ""
2647 "That explains why you should never mount a filesystem from an untrusted "
2648 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2649 "inside a qemu virtual machine, usually running as a non-root user.  The "
2650 "attacker would need to write a filesystem which first exploited the kernel, "
2651 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2652 "the libguestfs protocol, and finally to be as serious as the host kernel "
2653 "exploit it would need to escalate its privileges to root.  This multi-step "
2654 "escalation, performed by a static piece of data, is thought to be extremely "
2655 "hard to do, although we never say 'never' about security issues."
2656 msgstr ""
2657
2658 # type: textblock
2659 #. type: textblock
2660 #: ../src/guestfs.pod:1210
2661 msgid ""
2662 "In any case callers can reduce the attack surface by forcing the filesystem "
2663 "type when mounting (use L</guestfs_mount_vfs>)."
2664 msgstr ""
2665
2666 # type: =head2
2667 #. type: =head2
2668 #: ../src/guestfs.pod:1213
2669 msgid "PROTOCOL SECURITY"
2670 msgstr ""
2671
2672 # type: textblock
2673 #. type: textblock
2674 #: ../src/guestfs.pod:1215
2675 msgid ""
2676 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2677 "defined upper message size.  However a program that uses libguestfs must "
2678 "also take care - for example you can write a program that downloads a binary "
2679 "from a disk image and executes it locally, and no amount of protocol "
2680 "security will save you from the consequences."
2681 msgstr ""
2682
2683 # type: =head2
2684 #. type: =head2
2685 #: ../src/guestfs.pod:1221
2686 msgid "INSPECTION SECURITY"
2687 msgstr ""
2688
2689 # type: textblock
2690 #. type: textblock
2691 #: ../src/guestfs.pod:1223
2692 msgid ""
2693 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2694 "directly from the guest, and these could contain any 8 bit data.  Callers "
2695 "should be careful to escape these before printing them to a structured file "
2696 "(for example, use HTML escaping if creating a web page)."
2697 msgstr ""
2698
2699 # type: textblock
2700 #. type: textblock
2701 #: ../src/guestfs.pod:1229
2702 msgid ""
2703 "Guest configuration may be altered in unusual ways by the administrator of "
2704 "the virtual machine, and may not reflect reality (particularly for untrusted "
2705 "or actively malicious guests).  For example we parse the hostname from "
2706 "configuration files like C</etc/sysconfig/network> that we find in the "
2707 "guest, but the guest administrator can easily manipulate these files to "
2708 "provide the wrong hostname."
2709 msgstr ""
2710
2711 # type: textblock
2712 #. type: textblock
2713 #: ../src/guestfs.pod:1237
2714 msgid ""
2715 "The inspection API parses guest configuration using two external libraries: "
2716 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2717 "designed to be robust in the face of malicious data, although denial of "
2718 "service attacks are still possible, for example with oversized configuration "
2719 "files."
2720 msgstr ""
2721
2722 # type: =head2
2723 #. type: =head2
2724 #: ../src/guestfs.pod:1243
2725 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2726 msgstr ""
2727
2728 # type: textblock
2729 #. type: textblock
2730 #: ../src/guestfs.pod:1245
2731 msgid ""
2732 "Be very cautious about running commands from the guest.  By running a "
2733 "command in the guest, you are giving CPU time to a binary that you do not "
2734 "control, under the same user account as the library, albeit wrapped in qemu "
2735 "virtualization.  More information and alternatives can be found in the "
2736 "section L</RUNNING COMMANDS>."
2737 msgstr ""
2738
2739 # type: =head2
2740 #. type: =head2
2741 #: ../src/guestfs.pod:1251
2742 msgid "CVE-2010-3851"
2743 msgstr ""
2744
2745 # type: textblock
2746 #. type: textblock
2747 #: ../src/guestfs.pod:1253
2748 msgid "https://bugzilla.redhat.com/642934"
2749 msgstr ""
2750
2751 # type: textblock
2752 #. type: textblock
2753 #: ../src/guestfs.pod:1255
2754 msgid ""
2755 "This security bug concerns the automatic disk format detection that qemu "
2756 "does on disk images."
2757 msgstr ""
2758
2759 # type: textblock
2760 #. type: textblock
2761 #: ../src/guestfs.pod:1258
2762 msgid ""
2763 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2764 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2765 "for one of the known headers, and if none is found then assuming the disk "
2766 "image must be raw."
2767 msgstr ""
2768
2769 # type: textblock
2770 #. type: textblock
2771 #: ../src/guestfs.pod:1263
2772 msgid ""
2773 "This allows a guest which has been given a raw disk image to write some "
2774 "other header.  At next boot (or when the disk image is accessed by "
2775 "libguestfs) qemu would do autodetection and think the disk image format was, "
2776 "say, qcow2 based on the header written by the guest."
2777 msgstr ""
2778
2779 # type: textblock
2780 #. type: textblock
2781 #: ../src/guestfs.pod:1268
2782 msgid ""
2783 "This in itself would not be a problem, but qcow2 offers many features, one "
2784 "of which is to allow a disk image to refer to another image (called the "
2785 "\"backing disk\").  It does this by placing the path to the backing disk "
2786 "into the qcow2 header.  This path is not validated and could point to any "
2787 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2788 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2789 "control of the attacker."
2790 msgstr ""
2791
2792 # type: textblock
2793 #. type: textblock
2794 #: ../src/guestfs.pod:1276
2795 msgid ""
2796 "In libguestfs this is rather hard to exploit except under two circumstances:"
2797 msgstr ""
2798
2799 # type: textblock
2800 #. type: textblock
2801 #: ../src/guestfs.pod:1283
2802 msgid "You have enabled the network or have opened the disk in write mode."
2803 msgstr ""
2804
2805 # type: textblock
2806 #. type: textblock
2807 #: ../src/guestfs.pod:1287
2808 msgid ""
2809 "You are also running untrusted code from the guest (see L</RUNNING "
2810 "COMMANDS>)."
2811 msgstr ""
2812
2813 # type: textblock
2814 #. type: textblock
2815 #: ../src/guestfs.pod:1292
2816 msgid ""
2817 "The way to avoid this is to specify the expected disk format when adding "
2818 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2819 "should always do this if the disk is raw format, and it's a good idea for "
2820 "other cases too."
2821 msgstr ""
2822
2823 # type: textblock
2824 #. type: textblock
2825 #: ../src/guestfs.pod:1297
2826 msgid ""
2827 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2828 "format is fetched from libvirt and passed through."
2829 msgstr ""
2830
2831 # type: textblock
2832 #. type: textblock
2833 #: ../src/guestfs.pod:1300
2834 msgid ""
2835 "For libguestfs tools, use the I<--format> command line parameter as "
2836 "appropriate."
2837 msgstr ""
2838
2839 # type: =head1
2840 #. type: =head1
2841 #: ../src/guestfs.pod:1303
2842 msgid "CONNECTION MANAGEMENT"
2843 msgstr ""
2844
2845 # type: =head2
2846 #. type: =head2
2847 #: ../src/guestfs.pod:1305
2848 msgid "guestfs_h *"
2849 msgstr ""
2850
2851 # type: textblock
2852 #. type: textblock
2853 #: ../src/guestfs.pod:1307
2854 msgid ""
2855 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2856 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2857 "handle and release all resources used."
2858 msgstr ""
2859
2860 # type: textblock
2861 #. type: textblock
2862 #: ../src/guestfs.pod:1311
2863 msgid ""
2864 "For information on using multiple handles and threads, see the section L</"
2865 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2866 msgstr ""
2867
2868 # type: =head2
2869 #. type: =head2
2870 #: ../src/guestfs.pod:1314
2871 msgid "guestfs_create"
2872 msgstr ""
2873
2874 # type: verbatim
2875 #. type: verbatim
2876 #: ../src/guestfs.pod:1316
2877 #, no-wrap
2878 msgid ""
2879 " guestfs_h *guestfs_create (void);\n"
2880 "\n"
2881 msgstr ""
2882
2883 # type: textblock
2884 #. type: textblock
2885 #: ../src/guestfs.pod:1318
2886 msgid "Create a connection handle."
2887 msgstr ""
2888
2889 # type: textblock
2890 #. type: textblock
2891 #: ../src/guestfs.pod:1320
2892 msgid ""
2893 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2894 "on the handle at least once."
2895 msgstr ""
2896
2897 # type: textblock
2898 #. type: textblock
2899 #: ../src/guestfs.pod:1323
2900 msgid ""
2901 "This function returns a non-NULL pointer to a handle on success or NULL on "
2902 "error."
2903 msgstr ""
2904
2905 # type: textblock
2906 #. type: textblock
2907 #: ../src/guestfs.pod:1326
2908 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2909 msgstr ""
2910
2911 # type: textblock
2912 #. type: textblock
2913 #: ../src/guestfs.pod:1328
2914 msgid ""
2915 "You may also want to configure error handling for the handle.  See L</ERROR "
2916 "HANDLING> section below."
2917 msgstr ""
2918
2919 # type: =head2
2920 #. type: =head2
2921 #: ../src/guestfs.pod:1331
2922 msgid "guestfs_close"
2923 msgstr ""
2924
2925 # type: verbatim
2926 #. type: verbatim
2927 #: ../src/guestfs.pod:1333
2928 #, no-wrap
2929 msgid ""
2930 " void guestfs_close (guestfs_h *g);\n"
2931 "\n"
2932 msgstr ""
2933
2934 # type: textblock
2935 #. type: textblock
2936 #: ../src/guestfs.pod:1335
2937 msgid "This closes the connection handle and frees up all resources used."
2938 msgstr ""
2939
2940 # type: =head1
2941 #. type: =head1
2942 #: ../src/guestfs.pod:1337
2943 msgid "ERROR HANDLING"
2944 msgstr ""
2945
2946 # type: textblock
2947 #. type: textblock
2948 #: ../src/guestfs.pod:1339
2949 msgid ""
2950 "API functions can return errors.  For example, almost all functions that "
2951 "return C<int> will return C<-1> to indicate an error."
2952 msgstr ""
2953
2954 # type: textblock
2955 #. type: textblock
2956 #: ../src/guestfs.pod:1342
2957 msgid ""
2958 "Additional information is available for errors: an error message string and "
2959 "optionally an error number (errno) if the thing that failed was a system "
2960 "call."
2961 msgstr ""
2962
2963 # type: textblock
2964 #. type: textblock
2965 #: ../src/guestfs.pod:1346
2966 msgid ""
2967 "You can get at the additional information about the last error on the handle "
2968 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2969 "up an error handler with L</guestfs_set_error_handler>."
2970 msgstr ""
2971
2972 # type: textblock
2973 #. type: textblock
2974 #: ../src/guestfs.pod:1351
2975 msgid ""
2976 "When the handle is created, a default error handler is installed which "
2977 "prints the error message string to C<stderr>.  For small short-running "
2978 "command line programs it is sufficient to do:"
2979 msgstr ""
2980
2981 # type: verbatim
2982 #. type: verbatim
2983 #: ../src/guestfs.pod:1355
2984 #, no-wrap
2985 msgid ""
2986 " if (guestfs_launch (g) == -1)\n"
2987 "   exit (EXIT_FAILURE);\n"
2988 "\n"
2989 msgstr ""
2990
2991 # type: textblock
2992 #. type: textblock
2993 #: ../src/guestfs.pod:1358
2994 msgid ""
2995 "since the default error handler will ensure that an error message has been "
2996 "printed to C<stderr> before the program exits."
2997 msgstr ""
2998
2999 # type: textblock
3000 #. type: textblock
3001 #: ../src/guestfs.pod:1361
3002 msgid ""
3003 "For other programs the caller will almost certainly want to install an "
3004 "alternate error handler or do error handling in-line like this:"
3005 msgstr ""
3006
3007 # type: verbatim
3008 #. type: verbatim
3009 #: ../src/guestfs.pod:1364
3010 #, no-wrap
3011 msgid ""
3012 " g = guestfs_create ();\n"
3013 " \n"
3014 msgstr ""
3015
3016 # type: verbatim
3017 #. type: verbatim
3018 #: ../src/guestfs.pod:1366
3019 #, no-wrap
3020 msgid ""
3021 " /* This disables the default behaviour of printing errors\n"
3022 "    on stderr. */\n"
3023 " guestfs_set_error_handler (g, NULL, NULL);\n"
3024 " \n"
3025 msgstr ""
3026
3027 # type: verbatim
3028 #. type: verbatim
3029 #: ../src/guestfs.pod:1370
3030 #, no-wrap
3031 msgid ""
3032 " if (guestfs_launch (g) == -1) {\n"
3033 "   /* Examine the error message and print it etc. */\n"
3034 "   char *msg = guestfs_last_error (g);\n"
3035 "   int errnum = guestfs_last_errno (g);\n"
3036 "   fprintf (stderr, \"%s\\n\", msg);\n"
3037 "   /* ... */\n"
3038 "  }\n"
3039 "\n"
3040 msgstr ""
3041
3042 # type: textblock
3043 #. type: textblock
3044 #: ../src/guestfs.pod:1378
3045 msgid ""
3046 "Out of memory errors are handled differently.  The default action is to call "
3047 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
3048 "guestfs_set_out_of_memory_handler>."
3049 msgstr ""
3050
3051 # type: textblock
3052 #. type: textblock
3053 #: ../src/guestfs.pod:1382
3054 msgid ""
3055 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
3056 "because there is no handle if this happens there is no way to get additional "
3057 "error information.  However L</guestfs_create> is supposed to be a "
3058 "lightweight operation which can only fail because of insufficient memory (it "
3059 "returns NULL in this case)."
3060 msgstr ""
3061
3062 # type: =head2
3063 #. type: =head2
3064 #: ../src/guestfs.pod:1388
3065 msgid "guestfs_last_error"
3066 msgstr ""
3067
3068 # type: verbatim
3069 #. type: verbatim
3070 #: ../src/guestfs.pod:1390
3071 #, no-wrap
3072 msgid ""
3073 " const char *guestfs_last_error (guestfs_h *g);\n"
3074 "\n"
3075 msgstr ""
3076
3077 # type: textblock
3078 #. type: textblock
3079 #: ../src/guestfs.pod:1392
3080 msgid ""
3081 "This returns the last error message that happened on C<g>.  If there has not "
3082 "been an error since the handle was created, then this returns C<NULL>."
3083 msgstr ""
3084
3085 # type: textblock
3086 #. type: textblock
3087 #: ../src/guestfs.pod:1396
3088 msgid ""
3089 "The lifetime of the returned string is until the next error occurs, or L</"
3090 "guestfs_close> is called."
3091 msgstr ""
3092
3093 # type: =head2
3094 #. type: =head2
3095 #: ../src/guestfs.pod:1399
3096 msgid "guestfs_last_errno"
3097 msgstr ""
3098
3099 # type: verbatim
3100 #. type: verbatim
3101 #: ../src/guestfs.pod:1401
3102 #, no-wrap
3103 msgid ""
3104 " int guestfs_last_errno (guestfs_h *g);\n"
3105 "\n"
3106 msgstr ""
3107
3108 # type: textblock
3109 #. type: textblock
3110 #: ../src/guestfs.pod:1403
3111 msgid "This returns the last error number (errno) that happened on C<g>."
3112 msgstr ""
3113
3114 # type: textblock
3115 #. type: textblock
3116 #: ../src/guestfs.pod:1405
3117 msgid "If successful, an errno integer not equal to zero is returned."
3118 msgstr ""
3119
3120 # type: textblock
3121 #. type: textblock
3122 #: ../src/guestfs.pod:1407
3123 msgid ""
3124 "If no error, this returns 0.  This call can return 0 in three situations:"
3125 msgstr ""
3126
3127 # type: textblock
3128 #. type: textblock
3129 #: ../src/guestfs.pod:1414
3130 msgid "There has not been any error on the handle."
3131 msgstr ""
3132
3133 # type: textblock
3134 #. type: textblock
3135 #: ../src/guestfs.pod:1418
3136 msgid ""
3137 "There has been an error but the errno was meaningless.  This corresponds to "
3138 "the case where the error did not come from a failed system call, but for "
3139 "some other reason."
3140 msgstr ""
3141
3142 # type: textblock
3143 #. type: textblock
3144 #: ../src/guestfs.pod:1424
3145 msgid ""
3146 "There was an error from a failed system call, but for some reason the errno "
3147 "was not captured and returned.  This usually indicates a bug in libguestfs."
3148 msgstr ""
3149
3150 # type: textblock
3151 #. type: textblock
3152 #: ../src/guestfs.pod:1430
3153 msgid ""
3154 "Libguestfs tries to convert the errno from inside the applicance into a "
3155 "corresponding errno for the caller (not entirely trivial: the appliance "
3156 "might be running a completely different operating system from the library "
3157 "and error numbers are not standardized across Un*xen).  If this could not be "
3158 "done, then the error is translated to C<EINVAL>.  In practice this should "
3159 "only happen in very rare circumstances."
3160 msgstr ""
3161
3162 # type: =head2
3163 #. type: =head2
3164 #: ../src/guestfs.pod:1438
3165 msgid "guestfs_set_error_handler"
3166 msgstr ""
3167
3168 # type: verbatim
3169 #. type: verbatim
3170 #: ../src/guestfs.pod:1440
3171 #, no-wrap
3172 msgid ""
3173 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3174 "                                           void *opaque,\n"
3175 "                                           const char *msg);\n"
3176 " void guestfs_set_error_handler (guestfs_h *g,\n"
3177 "                                 guestfs_error_handler_cb cb,\n"
3178 "                                 void *opaque);\n"
3179 "\n"
3180 msgstr ""
3181
3182 # type: textblock
3183 #. type: textblock
3184 #: ../src/guestfs.pod:1447
3185 msgid ""
3186 "The callback C<cb> will be called if there is an error.  The parameters "
3187 "passed to the callback are an opaque data pointer and the error message "
3188 "string."
3189 msgstr ""
3190
3191 # type: textblock
3192 #. type: textblock
3193 #: ../src/guestfs.pod:1451
3194 msgid ""
3195 "C<errno> is not passed to the callback.  To get that the callback must call "
3196 "L</guestfs_last_errno>."
3197 msgstr ""
3198
3199 # type: textblock
3200 #. type: textblock
3201 #: ../src/guestfs.pod:1454
3202 msgid ""
3203 "Note that the message string C<msg> is freed as soon as the callback "
3204 "function returns, so if you want to stash it somewhere you must make your "
3205 "own copy."
3206 msgstr ""
3207
3208 # type: textblock
3209 #. type: textblock
3210 #: ../src/guestfs.pod:1458
3211 msgid "The default handler prints messages on C<stderr>."
3212 msgstr ""
3213
3214 # type: textblock
3215 #. type: textblock
3216 #: ../src/guestfs.pod:1460
3217 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3218 msgstr ""
3219
3220 # type: =head2
3221 #. type: =head2
3222 #: ../src/guestfs.pod:1462
3223 msgid "guestfs_get_error_handler"
3224 msgstr ""
3225
3226 # type: verbatim
3227 #. type: verbatim
3228 #: ../src/guestfs.pod:1464
3229 #, no-wrap
3230 msgid ""
3231 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3232 "                                                     void **opaque_rtn);\n"
3233 "\n"
3234 msgstr ""
3235
3236 # type: textblock
3237 #. type: textblock
3238 #: ../src/guestfs.pod:1467
3239 msgid "Returns the current error handler callback."
3240 msgstr ""
3241
3242 # type: =head2
3243 #. type: =head2
3244 #: ../src/guestfs.pod:1469
3245 msgid "guestfs_set_out_of_memory_handler"
3246 msgstr ""
3247
3248 # type: verbatim
3249 #. type: verbatim
3250 #: ../src/guestfs.pod:1471
3251 #, no-wrap
3252 msgid ""
3253 " typedef void (*guestfs_abort_cb) (void);\n"
3254 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3255 "                                        guestfs_abort_cb);\n"
3256 "\n"
3257 msgstr ""
3258
3259 # type: textblock
3260 #. type: textblock
3261 #: ../src/guestfs.pod:1475
3262 msgid ""
3263 "The callback C<cb> will be called if there is an out of memory situation.  "
3264 "I<Note this callback must not return>."
3265 msgstr ""
3266
3267 # type: textblock
3268 #. type: textblock
3269 #: ../src/guestfs.pod:1478
3270 msgid "The default is to call L<abort(3)>."
3271 msgstr ""
3272
3273 # type: textblock
3274 #. type: textblock
3275 #: ../src/guestfs.pod:1480
3276 msgid ""
3277 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3278 msgstr ""
3279
3280 # type: =head2
3281 #. type: =head2
3282 #: ../src/guestfs.pod:1483
3283 msgid "guestfs_get_out_of_memory_handler"
3284 msgstr ""
3285
3286 # type: verbatim
3287 #. type: verbatim
3288 #: ../src/guestfs.pod:1485
3289 #, no-wrap
3290 msgid ""
3291 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3292 "\n"
3293 msgstr ""
3294
3295 # type: textblock
3296 #. type: textblock
3297 #: ../src/guestfs.pod:1487
3298 msgid "This returns the current out of memory handler."
3299 msgstr ""
3300
3301 # type: =head1
3302 #. type: =head1
3303 #: ../src/guestfs.pod:1489
3304 msgid "API CALLS"
3305 msgstr ""
3306
3307 # type: textblock
3308 #. type: textblock
3309 #: ../src/guestfs.pod:1491 ../fish/guestfish.pod:989
3310 msgid "@ACTIONS@"
3311 msgstr ""
3312
3313 # type: =head1
3314 #. type: =head1
3315 #: ../src/guestfs.pod:1493
3316 msgid "STRUCTURES"
3317 msgstr ""
3318
3319 # type: textblock
3320 #. type: textblock
3321 #: ../src/guestfs.pod:1495
3322 msgid "@STRUCTS@"
3323 msgstr ""
3324
3325 # type: =head1
3326 #. type: =head1
3327 #: ../src/guestfs.pod:1497
3328 msgid "AVAILABILITY"
3329 msgstr ""
3330
3331 # type: =head2
3332 #. type: =head2
3333 #: ../src/guestfs.pod:1499
3334 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3335 msgstr ""
3336
3337 # type: textblock
3338 #. type: textblock
3339 #: ../src/guestfs.pod:1501
3340 msgid ""
3341 "Using L</guestfs_available> you can test availability of the following "
3342 "groups of functions.  This test queries the appliance to see if the "
3343 "appliance you are currently using supports the functionality."
3344 msgstr ""
3345
3346 # type: textblock
3347 #. type: textblock
3348 #: ../src/guestfs.pod:1506
3349 msgid "@AVAILABILITY@"
3350 msgstr ""
3351
3352 # type: =head2
3353 #. type: =head2
3354 #: ../src/guestfs.pod:1508
3355 msgid "GUESTFISH supported COMMAND"
3356 msgstr ""
3357
3358 # type: textblock
3359 #. type: textblock
3360 #: ../src/guestfs.pod:1510
3361 msgid ""
3362 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3363 "prints out the available groups and whether they are supported by this build "
3364 "of libguestfs.  Note however that you have to do C<run> first."
3365 msgstr ""
3366
3367 # type: =head2
3368 #. type: =head2
3369 #: ../src/guestfs.pod:1515
3370 msgid "SINGLE CALLS AT COMPILE TIME"
3371 msgstr ""
3372
3373 # type: textblock
3374 #. type: textblock
3375 #: ../src/guestfs.pod:1517
3376 msgid ""
3377 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3378 "function, such as:"
3379 msgstr ""
3380
3381 # type: verbatim
3382 #. type: verbatim
3383 #: ../src/guestfs.pod:1520
3384 #, no-wrap
3385 msgid ""
3386 " #define LIBGUESTFS_HAVE_DD 1\n"
3387 "\n"
3388 msgstr ""
3389
3390 # type: textblock
3391 #. type: textblock
3392 #: ../src/guestfs.pod:1522
3393 msgid "if L</guestfs_dd> is available."
3394 msgstr ""
3395
3396 # type: textblock
3397 #. type: textblock
3398 #: ../src/guestfs.pod:1524
3399 msgid ""
3400 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3401 "function is available at compile time, we recommended using build tools such "
3402 "as autoconf or cmake.  For example in autotools you could use:"
3403 msgstr ""
3404
3405 # type: verbatim
3406 #. type: verbatim
3407 #: ../src/guestfs.pod:1529
3408 #, no-wrap
3409 msgid ""
3410 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3411 " AC_CHECK_FUNCS([guestfs_dd])\n"
3412 "\n"
3413 msgstr ""
3414
3415 # type: textblock
3416 #. type: textblock
3417 #: ../src/guestfs.pod:1532
3418 msgid ""
3419 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3420 "in your program."
3421 msgstr ""
3422
3423 # type: =head2
3424 #. type: =head2
3425 #: ../src/guestfs.pod:1535
3426 msgid "SINGLE CALLS AT RUN TIME"
3427 msgstr ""
3428
3429 # type: textblock
3430 #. type: textblock
3431 #: ../src/guestfs.pod:1537
3432 msgid ""
3433 "Testing at compile time doesn't guarantee that a function really exists in "
3434 "the library.  The reason is that you might be dynamically linked against a "
3435 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3436 "This situation unfortunately results in a segmentation fault, which is a "
3437 "shortcoming of the C dynamic linking system itself."
3438 msgstr ""
3439
3440 # type: textblock
3441 #. type: textblock
3442 #: ../src/guestfs.pod:1544
3443 msgid ""
3444 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3445 "in this example program (note that you still need the compile time check as "
3446 "well):"
3447 msgstr ""
3448
3449 # type: verbatim
3450 #. type: verbatim
3451 #: ../src/guestfs.pod:1548
3452 #, no-wrap
3453 msgid ""
3454 " #include <stdio.h>\n"
3455 " #include <stdlib.h>\n"
3456 " #include <unistd.h>\n"
3457 " #include <dlfcn.h>\n"
3458 " #include <guestfs.h>\n"
3459 " \n"
3460 msgstr ""
3461
3462 # type: verbatim
3463 #. type: verbatim
3464 #: ../src/guestfs.pod:1554
3465 #, no-wrap
3466 msgid ""
3467 " main ()\n"
3468 " {\n"
3469 " #ifdef LIBGUESTFS_HAVE_DD\n"
3470 "   void *dl;\n"
3471 "   int has_function;\n"
3472 " \n"
3473 msgstr ""
3474
3475 # type: verbatim
3476 #. type: verbatim
3477 #: ../src/guestfs.pod:1560
3478 #, no-wrap
3479 msgid ""
3480 "   /* Test if the function guestfs_dd is really available. */\n"
3481 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3482 "   if (!dl) {\n"
3483 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3484 "     exit (EXIT_FAILURE);\n"
3485 "   }\n"
3486 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3487 "   dlclose (dl);\n"
3488 " \n"
3489 msgstr ""
3490
3491 # type: verbatim
3492 #. type: verbatim
3493 #: ../src/guestfs.pod:1569
3494 #, no-wrap
3495 msgid ""
3496 "   if (!has_function)\n"
3497 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3498 "   else {\n"
3499 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3500 "     /* Now it's safe to call\n"
3501 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3502 "     */\n"
3503 "   }\n"
3504 " #else\n"
3505 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3506 " #endif\n"
3507 "  }\n"
3508 "\n"
3509 msgstr ""
3510
3511 # type: textblock
3512 #. type: textblock
3513 #: ../src/guestfs.pod:1582
3514 msgid ""
3515 "You may think the above is an awful lot of hassle, and it is.  There are "
3516 "other ways outside of the C linking system to ensure that this kind of "
3517 "incompatibility never arises, such as using package versioning:"
3518 msgstr ""
3519
3520 # type: verbatim
3521 #. type: verbatim
3522 #: ../src/guestfs.pod:1587
3523 #, no-wrap
3524 msgid ""
3525 " Requires: libguestfs >= 1.0.80\n"
3526 "\n"
3527 msgstr ""
3528
3529 # type: =head1
3530 #. type: =head1
3531 #: ../src/guestfs.pod:1589
3532 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3533 msgstr ""
3534
3535 # type: textblock
3536 #. type: textblock
3537 #: ../src/guestfs.pod:1591
3538 msgid ""
3539 "A recent feature of the API is the introduction of calls which take optional "
3540 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3541 "takes variable arguments (ie. C<...>), as in this example:"
3542 msgstr ""
3543
3544 # type: verbatim
3545 #. type: verbatim
3546 #: ../src/guestfs.pod:1596
3547 #, no-wrap
3548 msgid ""
3549 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3550 "\n"
3551 msgstr ""
3552
3553 # type: textblock
3554 #. type: textblock
3555 #: ../src/guestfs.pod:1598
3556 msgid ""
3557 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3558 "call with no optional arguments specified:"
3559 msgstr ""
3560
3561 # type: verbatim
3562 #. type: verbatim
3563 #: ../src/guestfs.pod:1601
3564 #, no-wrap
3565 msgid ""
3566 " guestfs_add_drive_opts (g, filename, -1);\n"
3567 "\n"
3568 msgstr ""
3569
3570 # type: textblock
3571 #. type: textblock
3572 #: ../src/guestfs.pod:1603
3573 msgid "With a single optional argument:"
3574 msgstr ""
3575
3576 # type: verbatim
3577 #. type: verbatim
3578 #: ../src/guestfs.pod:1605
3579 #, no-wrap
3580 msgid ""
3581 " guestfs_add_drive_opts (g, filename,\n"
3582 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3583 "                         -1);\n"
3584 "\n"
3585 msgstr ""
3586
3587 # type: textblock
3588 #. type: textblock
3589 #: ../src/guestfs.pod:1609
3590 msgid "With two:"
3591 msgstr ""
3592
3593 # type: verbatim
3594 #. type: verbatim
3595 #: ../src/guestfs.pod:1611
3596 #, no-wrap
3597 msgid ""
3598 " guestfs_add_drive_opts (g, filename,\n"
3599 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3600 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3601 "                         -1);\n"
3602 "\n"
3603 msgstr ""
3604
3605 # type: textblock
3606 #. type: textblock
3607 #: ../src/guestfs.pod:1616
3608 msgid ""
3609 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3610 "happen!"
3611 msgstr ""
3612
3613 # type: =head2
3614 #. type: =head2
3615 #: ../src/guestfs.pod:1619
3616 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3617 msgstr ""
3618
3619 # type: textblock
3620 #. type: textblock
3621 #: ../src/guestfs.pod:1621
3622 msgid ""
3623 "The second variant has the same name with the suffix C<_va>, which works the "
3624 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3625 "example function, this is declared:"
3626 msgstr ""
3627
3628 # type: verbatim
3629 #. type: verbatim
3630 #: ../src/guestfs.pod:1625
3631 #, no-wrap
3632 msgid ""
3633 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3634 "                                va_list args);\n"
3635 "\n"
3636 msgstr ""
3637
3638 # type: =head2
3639 #. type: =head2
3640 #: ../src/guestfs.pod:1628
3641 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3642 msgstr ""
3643
3644 # type: textblock
3645 #. type: textblock
3646 #: ../src/guestfs.pod:1630
3647 msgid ""
3648 "The third variant is useful where you need to construct these calls.  You "
3649 "pass in a structure where you fill in the optional fields.  The structure "
3650 "has a bitmask as the first element which you must set to indicate which "
3651 "fields you have filled in.  For our example function the structure and call "
3652 "are declared:"
3653 msgstr ""
3654
3655 # type: verbatim
3656 #. type: verbatim
3657 #: ../src/guestfs.pod:1636
3658 #, no-wrap
3659 msgid ""
3660 " struct guestfs_add_drive_opts_argv {\n"
3661 "   uint64_t bitmask;\n"
3662 "   int readonly;\n"
3663 "   const char *format;\n"
3664 "   /* ... */\n"
3665 " };\n"
3666 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3667 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3668 "\n"
3669 msgstr ""
3670
3671 # type: textblock
3672 #. type: textblock
3673 #: ../src/guestfs.pod:1645
3674 msgid "You could call it like this:"
3675 msgstr ""
3676
3677 # type: verbatim
3678 #. type: verbatim
3679 #: ../src/guestfs.pod:1647
3680 #, no-wrap
3681 msgid ""
3682 " struct guestfs_add_drive_opts_argv optargs = {\n"
3683 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3684 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3685 "   .readonly = 1,\n"
3686 "   .format = \"qcow2\"\n"
3687 " };\n"
3688 " \n"
3689 msgstr ""
3690
3691 # type: verbatim
3692 #. type: verbatim
3693 #: ../src/guestfs.pod:1654
3694 #, no-wrap
3695 msgid ""
3696 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3697 "\n"
3698 msgstr ""
3699
3700 # type: textblock
3701 #. type: textblock
3702 #: ../src/guestfs.pod:1656 ../src/guestfs-actions.pod:11
3703 #: ../src/guestfs-actions.pod:1850 ../fish/guestfish-actions.pod:9
3704 #: ../fish/guestfish-actions.pod:1260 ../tools/virt-win-reg.pl:532
3705 msgid "Notes:"
3706 msgstr ""
3707
3708 # type: textblock
3709 #. type: textblock
3710 #: ../src/guestfs.pod:1662
3711 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3712 msgstr ""
3713
3714 # type: textblock
3715 #. type: textblock
3716 #: ../src/guestfs.pod:1667
3717 msgid "You do not need to fill in all fields of the structure."
3718 msgstr ""
3719
3720 # type: textblock
3721 #. type: textblock
3722 #: ../src/guestfs.pod:1671
3723 msgid ""
3724 "There must be a one-to-one correspondence between fields of the structure "
3725 "that are filled in, and bits set in the bitmask."
3726 msgstr ""
3727
3728 # type: =head2
3729 #. type: =head2
3730 #: ../src/guestfs.pod:1676
3731 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3732 msgstr ""
3733
3734 # type: textblock
3735 #. type: textblock
3736 #: ../src/guestfs.pod:1678
3737 msgid ""
3738 "In other languages, optional arguments are expressed in the way that is "
3739 "natural for that language.  We refer you to the language-specific "
3740 "documentation for more details on that."
3741 msgstr ""
3742
3743 # type: textblock
3744 #. type: textblock
3745 #: ../src/guestfs.pod:1682
3746 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3747 msgstr ""
3748
3749 # type: =head2
3750 #. type: =head2
3751 #: ../src/guestfs.pod:1684
3752 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3753 msgstr ""
3754
3755 #. type: textblock
3756 #: ../src/guestfs.pod:1686
3757 msgid ""
3758 "B<Note:> This section documents the generic event mechanism introduced in "
3759 "libguestfs 1.10, which you should use in new code if possible.  The old "
3760 "functions C<guestfs_set_log_message_callback>, "
3761 "C<guestfs_set_subprocess_quit_callback>, "
3762 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
3763 "C<guestfs_set_progress_callback> are no longer documented in this manual "
3764 "page."
3765 msgstr ""
3766
3767 #. type: textblock
3768 #: ../src/guestfs.pod:1694
3769 msgid ""
3770 "Handles generate events when certain things happen, such as log messages "
3771 "being generated, progress messages during long-running operations, or the "
3772 "handle being closed.  The API calls described below let you register a "
3773 "callback to be called when events happen.  You can register multiple "
3774 "callbacks (for the same, different or overlapping sets of events), and "
3775 "individually remove callbacks.  If callbacks are not removed, then they "
3776 "remain in force until the handle is closed."
3777 msgstr ""
3778
3779 #. type: textblock
3780 #: ../src/guestfs.pod:1702
3781 msgid ""
3782 "In the current implementation, events are only generated synchronously: that "
3783 "means that events (and hence callbacks) can only happen while you are in the "
3784 "middle of making another libguestfs call.  The callback is called in the "
3785 "same thread."
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../src/guestfs.pod:1707
3790 msgid ""
3791 "Events may contain a payload, usually nothing (void), an array of 64 bit "
3792 "unsigned integers, or a message buffer.  Payloads are discussed later on."
3793 msgstr ""
3794
3795 #. type: =head3
3796 #: ../src/guestfs.pod:1711
3797 msgid "CLASSES OF EVENTS"
3798 msgstr ""
3799
3800 #. type: =item
3801 #: ../src/guestfs.pod:1715
3802 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../src/guestfs.pod:1718
3807 msgid ""
3808 "The callback function will be called while the handle is being closed "
3809 "(synchronously from L</guestfs_close>)."
3810 msgstr ""
3811
3812 # type: textblock
3813 #. type: textblock
3814 #: ../src/guestfs.pod:1721
3815 msgid ""
3816 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3817 "handles that are open when the program exits.  This means that this callback "
3818 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3819 "problems in higher-level languages (eg. if your HLL interpreter has already "
3820 "been cleaned up by the time this is called, and if your callback then jumps "
3821 "into some HLL function)."
3822 msgstr ""
3823
3824 #. type: textblock
3825 #: ../src/guestfs.pod:1728
3826 msgid ""
3827 "If no callback is registered: the handle is closed without any callback "
3828 "being invoked."
3829 msgstr ""
3830
3831 #. type: =item
3832 #: ../src/guestfs.pod:1731
3833 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
3834 msgstr ""
3835
3836 #. type: textblock
3837 #: ../src/guestfs.pod:1734
3838 msgid ""
3839 "The callback function will be called when the child process quits, either "
3840 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3841 "corresponds to a transition from any state to the CONFIG state)."
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../src/guestfs.pod:1738 ../src/guestfs.pod:1747
3846 msgid "If no callback is registered: the event is ignored."
3847 msgstr ""
3848
3849 #. type: =item
3850 #: ../src/guestfs.pod:1740
3851 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
3852 msgstr ""
3853
3854 #. type: textblock
3855 #: ../src/guestfs.pod:1743
3856 msgid ""
3857 "The callback function will be called when the child process becomes ready "
3858 "first time after it has been launched.  (This corresponds to a transition "
3859 "from LAUNCHING to the READY state)."
3860 msgstr ""
3861
3862 #. type: =item
3863 #: ../src/guestfs.pod:1749
3864 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
3865 msgstr ""
3866
3867 # type: textblock
3868 #. type: textblock
3869 #: ../src/guestfs.pod:1752
3870 msgid ""
3871 "Some long-running operations can generate progress messages.  If this "
3872 "callback is registered, then it will be called each time a progress message "
3873 "is generated (usually two seconds after the operation started, and three "
3874 "times per second thereafter until it completes, although the frequency may "
3875 "change in future versions)."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../src/guestfs.pod:1758
3880 msgid ""
3881 "The callback receives in the payload four unsigned 64 bit numbers which are "
3882 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../src/guestfs.pod:1761
3887 msgid ""
3888 "The units of C<total> are not defined, although for some operations C<total> "
3889 "may relate in some way to the amount of data to be transferred (eg. in bytes "
3890 "or megabytes), and C<position> may be the portion which has been transferred."
3891 msgstr ""
3892
3893 # type: textblock
3894 #. type: textblock
3895 #: ../src/guestfs.pod:1766
3896 msgid "The only defined and stable parts of the API are:"
3897 msgstr ""
3898
3899 # type: textblock
3900 #. type: textblock
3901 #: ../src/guestfs.pod:1772
3902 msgid ""
3903 "The callback can display to the user some type of progress bar or indicator "
3904 "which shows the ratio of C<position>:C<total>."
3905 msgstr ""
3906
3907 # type: textblock
3908 #. type: textblock
3909 #: ../src/guestfs.pod:1777
3910 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3911 msgstr ""
3912
3913 # type: textblock
3914 #. type: textblock
3915 #: ../src/guestfs.pod:1781
3916 msgid ""
3917 "If any progress notification is sent during a call, then a final progress "
3918 "notification is always sent when C<position> = C<total>."
3919 msgstr ""
3920
3921 # type: textblock
3922 #. type: textblock
3923 #: ../src/guestfs.pod:1784
3924 msgid ""
3925 "This is to simplify caller code, so callers can easily set the progress "
3926 "indicator to \"100%\" at the end of the operation, without requiring special "
3927 "code to detect this case."
3928 msgstr ""
3929
3930 #. type: textblock
3931 #: ../src/guestfs.pod:1790
3932 msgid ""
3933 "The callback also receives the procedure number (C<proc_nr>) and serial "
3934 "number (C<serial>) of the call.  These are only useful for debugging "
3935 "protocol issues, and the callback can normally ignore them.  The callback "
3936 "may want to print these numbers in error messages or debugging messages."
3937 msgstr ""
3938
3939 #. type: textblock
3940 #: ../src/guestfs.pod:1796
3941 msgid "If no callback is registered: progress messages are discarded."
3942 msgstr ""
3943
3944 #. type: =item
3945 #: ../src/guestfs.pod:1798
3946 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
3947 msgstr ""
3948
3949 #. type: textblock
3950 #: ../src/guestfs.pod:1801
3951 msgid ""
3952 "The callback function is called whenever a log message is generated by qemu, "
3953 "the appliance kernel, guestfsd (daemon), or utility programs."
3954 msgstr ""
3955
3956 #. type: textblock
3957 #: ../src/guestfs.pod:1804
3958 msgid ""
3959 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
3960 "guestfs_launch>) then additional debug messages are generated."
3961 msgstr ""
3962
3963 #. type: textblock
3964 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
3965 msgid ""
3966 "If no callback is registered: the messages are discarded unless the verbose "
3967 "flag is set in which case they are sent to stderr.  You can override the "
3968 "printing of verbose messages to stderr by setting up a callback."
3969 msgstr ""
3970
3971 #. type: =item
3972 #: ../src/guestfs.pod:1812
3973 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
3974 msgstr ""
3975
3976 #. type: textblock
3977 #: ../src/guestfs.pod:1815
3978 msgid ""
3979 "The callback function is called whenever a log message is generated by the "
3980 "library part of libguestfs."
3981 msgstr ""
3982
3983 #. type: textblock
3984 #: ../src/guestfs.pod:1818
3985 msgid ""
3986 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
3987 "messages are generated."
3988 msgstr ""
3989
3990 #. type: =item
3991 #: ../src/guestfs.pod:1826
3992 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../src/guestfs.pod:1829
3997 msgid ""
3998 "The callback function is called whenever a trace message is generated.  This "
3999 "only applies if the trace flag (L</guestfs_set_trace>) is set."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../src/guestfs.pod:1832
4004 msgid ""
4005 "If no callback is registered: the messages are sent to stderr.  You can "
4006 "override the printing of trace messages to stderr by setting up a callback."
4007 msgstr ""
4008
4009 #. type: =head3
4010 #: ../src/guestfs.pod:1838
4011 msgid "guestfs_set_event_callback"
4012 msgstr ""
4013
4014 #. type: verbatim
4015 #: ../src/guestfs.pod:1840
4016 #, no-wrap
4017 msgid ""
4018 " int guestfs_set_event_callback (guestfs_h *g,\n"
4019 "                                 guestfs_event_callback cb,\n"
4020 "                                 uint64_t event_bitmask,\n"
4021 "                                 int flags,\n"
4022 "                                 void *opaque);\n"
4023 "\n"
4024 msgstr ""
4025
4026 #. type: textblock
4027 #: ../src/guestfs.pod:1846
4028 msgid ""
4029 "This function registers a callback (C<cb>) for all event classes in the "
4030 "C<event_bitmask>."
4031 msgstr ""
4032
4033 #. type: textblock
4034 #: ../src/guestfs.pod:1849
4035 msgid ""
4036 "For example, to register for all log message events, you could call this "
4037 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
4038 "To register a single callback for all possible classes of events, use "
4039 "C<GUESTFS_EVENT_ALL>."
4040 msgstr ""
4041
4042 #. type: textblock
4043 #: ../src/guestfs.pod:1855
4044 msgid "C<flags> should always be passed as 0."
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../src/guestfs.pod:1857
4049 msgid ""
4050 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
4051 "it for any purpose."
4052 msgstr ""
4053
4054 #. type: textblock
4055 #: ../src/guestfs.pod:1860
4056 msgid ""
4057 "The return value is the event handle (an integer) which you can use to "
4058 "delete the callback (see below)."
4059 msgstr ""
4060
4061 #. type: textblock
4062 #: ../src/guestfs.pod:1863
4063 msgid ""
4064 "If there is an error, this function returns C<-1>, and sets the error in the "
4065 "handle in the usual way (see L</guestfs_last_error> etc.)"
4066 msgstr ""
4067
4068 #. type: textblock
4069 #: ../src/guestfs.pod:1866
4070 msgid ""
4071 "Callbacks remain in effect until they are deleted, or until the handle is "
4072 "closed."
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../src/guestfs.pod:1869
4077 msgid ""
4078 "In the case where multiple callbacks are registered for a particular event "
4079 "class, all of the callbacks are called.  The order in which multiple "
4080 "callbacks are called is not defined."
4081 msgstr ""
4082
4083 #. type: =head3
4084 #: ../src/guestfs.pod:1873
4085 msgid "guestfs_delete_event_callback"
4086 msgstr ""
4087
4088 #. type: verbatim
4089 #: ../src/guestfs.pod:1875
4090 #, no-wrap
4091 msgid ""
4092 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
4093 "\n"
4094 msgstr ""
4095
4096 #. type: textblock
4097 #: ../src/guestfs.pod:1877
4098 msgid ""
4099 "Delete a callback that was previously registered.  C<event_handle> should be "
4100 "the integer that was returned by a previous call to "
4101 "C<guestfs_set_event_callback> on the same handle."
4102 msgstr ""
4103
4104 #. type: =head3
4105 #: ../src/guestfs.pod:1881
4106 msgid "guestfs_event_callback"
4107 msgstr ""
4108
4109 #. type: verbatim
4110 #: ../src/guestfs.pod:1883
4111 #, no-wrap
4112 msgid ""
4113 " typedef void (*guestfs_event_callback) (\n"
4114 "                  guestfs_h *g,\n"
4115 "                  void *opaque,\n"
4116 "                  uint64_t event,\n"
4117 "                  int event_handle,\n"
4118 "                  int flags,\n"
4119 "                  const char *buf, size_t buf_len,\n"
4120 "                  const uint64_t *array, size_t array_len);\n"
4121 "\n"
4122 msgstr ""
4123
4124 #. type: textblock
4125 #: ../src/guestfs.pod:1892
4126 msgid ""
4127 "This is the type of the event callback function that you have to provide."
4128 msgstr ""
4129
4130 #. type: textblock
4131 #: ../src/guestfs.pod:1895
4132 msgid ""
4133 "The basic parameters are: the handle (C<g>), the opaque user pointer "
4134 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
4135 "handle, and C<flags> which in the current API you should ignore."
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../src/guestfs.pod:1899
4140 msgid ""
4141 "The remaining parameters contain the event payload (if any).  Each event may "
4142 "contain a payload, which usually relates to the event class, but for future "
4143 "proofing your code should be written to handle any payload for any event "
4144 "class."
4145 msgstr ""
4146
4147 #. type: textblock
4148 #: ../src/guestfs.pod:1904
4149 msgid ""
4150 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
4151 "there is no message buffer).  Note that this message buffer can contain "
4152 "arbitrary 8 bit data, including NUL bytes."
4153 msgstr ""
4154
4155 #. type: textblock
4156 #: ../src/guestfs.pod:1908
4157 msgid ""
4158 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
4159 "moment this is only used for progress messages."
4160 msgstr ""
4161
4162 #. type: =head3
4163 #: ../src/guestfs.pod:1911
4164 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
4165 msgstr ""
4166
4167 #. type: textblock
4168 #: ../src/guestfs.pod:1913
4169 msgid ""
4170 "One motivation for the generic event API was to allow GUI programs to "
4171 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
4172 "unconditionally to C<stderr>."
4173 msgstr ""
4174
4175 #. type: textblock
4176 #: ../src/guestfs.pod:1917
4177 msgid ""
4178 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
4179 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
4180 "messages are not events; you must capture error messages separately)."
4181 msgstr ""
4182
4183 #. type: textblock
4184 #: ../src/guestfs.pod:1922
4185 msgid ""
4186 "Programs have to set up a callback to capture the classes of events of "
4187 "interest:"
4188 msgstr ""
4189
4190 #. type: verbatim
4191 #: ../src/guestfs.pod:1925
4192 #, no-wrap
4193 msgid ""
4194 " int eh =\n"
4195 "   guestfs_set_event_callback\n"
4196 "     (g, message_callback,\n"
4197 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
4198 "      GUESTFS_EVENT_TRACE,\n"
4199 "      0, NULL) == -1)\n"
4200 " if (eh == -1) {\n"
4201 "   // handle error in the usual way\n"
4202 " }\n"
4203 "\n"
4204 msgstr ""
4205
4206 #. type: textblock
4207 #: ../src/guestfs.pod:1935
4208 msgid ""
4209 "The callback can then direct messages to the appropriate place.  In this "
4210 "example, messages are directed to syslog:"
4211 msgstr ""
4212
4213 #. type: verbatim
4214 #: ../src/guestfs.pod:1938
4215 #, no-wrap
4216 msgid ""
4217 " static void\n"
4218 " message_callback (\n"
4219 "         guestfs_h *g,\n"
4220 "         void *opaque,\n"
4221 "         uint64_t event,\n"
4222 "         int event_handle,\n"
4223 "         int flags,\n"
4224 "         const char *buf, size_t buf_len,\n"
4225 "         const uint64_t *array, size_t array_len)\n"
4226 " {\n"
4227 "   const int priority = LOG_USER|LOG_INFO;\n"
4228 "   if (buf_len > 0)\n"
4229 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
4230 " }\n"
4231 "\n"
4232 msgstr ""
4233
4234 # type: =head1
4235 #. type: =head1
4236 #: ../src/guestfs.pod:1953
4237 msgid "PRIVATE DATA AREA"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../src/guestfs.pod:1955
4242 msgid ""
4243 "You can attach named pieces of private data to the libguestfs handle, fetch "
4244 "them by name, and walk over them, for the lifetime of the handle.  This is "
4245 "called the private data area and is only available from the C API."
4246 msgstr ""
4247
4248 # type: textblock
4249 #. type: textblock
4250 #: ../src/guestfs.pod:1960
4251 msgid "To attach a named piece of data, use the following call:"
4252 msgstr ""
4253
4254 # type: verbatim
4255 #. type: verbatim
4256 #: ../src/guestfs.pod:1962
4257 #, no-wrap
4258 msgid ""
4259 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
4260 "\n"
4261 msgstr ""
4262
4263 # type: textblock
4264 #. type: textblock
4265 #: ../src/guestfs.pod:1964
4266 msgid ""
4267 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
4268 "pointer (which can be C<NULL>).  Any previous item with the same name is "
4269 "overwritten."
4270 msgstr ""
4271
4272 # type: textblock
4273 #. type: textblock
4274 #: ../src/guestfs.pod:1968
4275 msgid ""
4276 "You can use any C<key> you want, but names beginning with an underscore "
4277 "character are reserved for internal libguestfs purposes (for implementing "
4278 "language bindings).  It is recommended to prefix the name with some unique "
4279 "string to avoid collisions with other users."
4280 msgstr ""
4281
4282 # type: textblock
4283 #. type: textblock
4284 #: ../src/guestfs.pod:1973
4285 msgid "To retrieve the pointer, use:"
4286 msgstr ""
4287
4288 # type: verbatim
4289 #. type: verbatim
4290 #: ../src/guestfs.pod:1975
4291 #, no-wrap
4292 msgid ""
4293 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
4294 "\n"
4295 msgstr ""
4296
4297 # type: textblock
4298 #. type: textblock
4299 #: ../src/guestfs.pod:1977
4300 msgid ""
4301 "This function returns C<NULL> if either no data is found associated with "
4302 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
4303 "C<NULL>."
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../src/guestfs.pod:1981
4308 msgid ""
4309 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
4310 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
4311 "all.  In particular, libguestfs does I<not> try to free the data when the "
4312 "handle is closed.  If the data must be freed, then the caller must either "
4313 "free it before calling L</guestfs_close> or must set up a close callback to "
4314 "do it (see L</GUESTFS_EVENT_CLOSE>)."
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../src/guestfs.pod:1988
4319 msgid "To walk over all entries, use these two functions:"
4320 msgstr ""
4321
4322 #. type: verbatim
4323 #: ../src/guestfs.pod:1990
4324 #, no-wrap
4325 msgid ""
4326 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
4327 "\n"
4328 msgstr ""
4329
4330 #. type: verbatim
4331 #: ../src/guestfs.pod:1992
4332 #, no-wrap
4333 msgid ""
4334 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
4335 "\n"
4336 msgstr ""
4337
4338 #. type: textblock
4339 #: ../src/guestfs.pod:1994
4340 msgid ""
4341 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
4342 "not have any particular meaning -- keys are not returned in any defined "
4343 "order).  A pointer to the key is returned in C<*key_rtn> and the "
4344 "corresponding data pointer is returned from the function.  C<NULL> is "
4345 "returned if there are no keys stored in the handle."
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../src/guestfs.pod:2000
4350 msgid ""
4351 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
4352 "value of this function is also C<NULL> is there are no further entries to "
4353 "return."
4354 msgstr ""
4355
4356 #. type: textblock
4357 #: ../src/guestfs.pod:2004
4358 msgid "Notes about walking over entries:"
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../src/guestfs.pod:2010
4363 msgid ""
4364 "You must not call C<guestfs_set_private> while walking over the entries."
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../src/guestfs.pod:2015
4369 msgid ""
4370 "The handle maintains an internal iterator which is reset when you call "
4371 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
4372 "call C<guestfs_set_private>."
4373 msgstr ""
4374
4375 #. type: textblock
4376 #: ../src/guestfs.pod:2021
4377 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
4378 msgstr ""
4379
4380 #. type: verbatim
4381 #: ../src/guestfs.pod:2023
4382 #, no-wrap
4383 msgid ""
4384 " guestfs_set_private (g, key, NULL);\n"
4385 "\n"
4386 msgstr ""
4387
4388 #. type: textblock
4389 #: ../src/guestfs.pod:2025
4390 msgid "then that C<key> is not returned when walking."
4391 msgstr ""
4392
4393 #. type: textblock
4394 #: ../src/guestfs.pod:2029
4395 msgid ""
4396 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
4397 "C<guestfs_next_private> or C<guestfs_set_private>."
4398 msgstr ""
4399
4400 #. type: textblock
4401 #: ../src/guestfs.pod:2035
4402 msgid ""
4403 "The following example code shows how to print all keys and data pointers "
4404 "that are associated with the handle C<g>:"
4405 msgstr ""
4406
4407 #. type: verbatim
4408 #: ../src/guestfs.pod:2038
4409 #, no-wrap
4410 msgid ""
4411 " const char *key;\n"
4412 " void *data = guestfs_first_private (g, &key);\n"
4413 " while (data != NULL)\n"
4414 "   {\n"
4415 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
4416 "     data = guestfs_next_private (g, &key);\n"
4417 "   }\n"
4418 "\n"
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../src/guestfs.pod:2046
4423 msgid ""
4424 "More commonly you are only interested in keys that begin with an application-"
4425 "specific prefix C<foo_>.  Modify the loop like so:"
4426 msgstr ""
4427
4428 #. type: verbatim
4429 #: ../src/guestfs.pod:2049
4430 #, no-wrap
4431 msgid ""
4432 " const char *key;\n"
4433 " void *data = guestfs_first_private (g, &key);\n"
4434 " while (data != NULL)\n"
4435 "   {\n"
4436 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4437 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
4438 "     data = guestfs_next_private (g, &key);\n"
4439 "   }\n"
4440 "\n"
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../src/guestfs.pod:2058
4445 msgid ""
4446 "If you need to modify keys while walking, then you have to jump back to the "
4447 "beginning of the loop.  For example, to delete all keys prefixed with "
4448 "C<foo_>:"
4449 msgstr ""
4450
4451 #. type: verbatim
4452 #: ../src/guestfs.pod:2062
4453 #, no-wrap
4454 msgid ""
4455 "  const char *key;\n"
4456 "  void *data;\n"
4457 " again:\n"
4458 "  data = guestfs_first_private (g, &key);\n"
4459 "  while (data != NULL)\n"
4460 "    {\n"
4461 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
4462 "        {\n"
4463 "          guestfs_set_private (g, key, NULL);\n"
4464 "          /* note that 'key' pointer is now invalid, and so is\n"
4465 "             the internal iterator */\n"
4466 "          goto again;\n"
4467 "        }\n"
4468 "      data = guestfs_next_private (g, &key);\n"
4469 "    }\n"
4470 "\n"
4471 msgstr ""
4472
4473 #. type: textblock
4474 #: ../src/guestfs.pod:2078
4475 msgid ""
4476 "Note that the above loop is guaranteed to terminate because the keys are "
4477 "being deleted, but other manipulations of keys within the loop might not "
4478 "terminate unless you also maintain an indication of which keys have been "
4479 "visited."
4480 msgstr ""
4481
4482 # type: =end
4483 #. type: =end
4484 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2088
4485 msgid "html"
4486 msgstr ""
4487
4488 # type: textblock
4489 #. type: textblock
4490 #: ../src/guestfs.pod:2085
4491 msgid ""
4492 "<!-- old anchor for the next section --> <a name="
4493 "\"state_machine_and_low_level_event_api\"/>"
4494 msgstr ""
4495
4496 # type: =head1
4497 #. type: =head1
4498 #: ../src/guestfs.pod:2090
4499 msgid "ARCHITECTURE"
4500 msgstr ""
4501
4502 # type: textblock
4503 #. type: textblock
4504 #: ../src/guestfs.pod:2092
4505 msgid ""
4506 "Internally, libguestfs is implemented by running an appliance (a special "
4507 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4508 "process of the main program."
4509 msgstr ""
4510
4511 # type: verbatim
4512 #. type: verbatim
4513 #: ../src/guestfs.pod:2096
4514 #, no-wrap
4515 msgid ""
4516 "  ___________________\n"
4517 " /                   \\\n"
4518 " | main program      |\n"
4519 " |                   |\n"
4520 " |                   |           child process / appliance\n"
4521 " |                   |           __________________________\n"
4522 " |                   |          / qemu                     \\\n"
4523 " +-------------------+   RPC    |      +-----------------+ |\n"
4524 " | libguestfs     <--------------------> guestfsd        | |\n"
4525 " |                   |          |      +-----------------+ |\n"
4526 " \\___________________/          |      | Linux kernel    | |\n"
4527 "                                |      +--^--------------+ |\n"
4528 "                                \\_________|________________/\n"
4529 "                                          |\n"
4530 "                                   _______v______\n"
4531 "                                  /              \\\n"
4532 "                                  | Device or    |\n"
4533 "                                  | disk image   |\n"
4534 "                                  \\______________/\n"
4535 "\n"
4536 msgstr ""
4537
4538 # type: textblock
4539 #. type: textblock
4540 #: ../src/guestfs.pod:2116
4541 msgid ""
4542 "The library, linked to the main program, creates the child process and hence "
4543 "the appliance in the L</guestfs_launch> function."
4544 msgstr ""
4545
4546 # type: textblock
4547 #. type: textblock
4548 #: ../src/guestfs.pod:2119
4549 msgid ""
4550 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4551 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4552 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4553 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4554 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4555 "attached to the qemu process which translates device access by the "
4556 "appliance's Linux kernel into accesses to the image."
4557 msgstr ""
4558
4559 # type: textblock
4560 #. type: textblock
4561 #: ../src/guestfs.pod:2128
4562 msgid ""
4563 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4564 "Although the disk image you are attached to might also be used by some "
4565 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4566 "care if both libguestfs's qemu process and your virtual machine are trying "
4567 "to update the disk image at the same time, since these usually results in "
4568 "massive disk corruption)."
4569 msgstr ""
4570
4571 # type: =head1
4572 #. type: =head1
4573 #: ../src/guestfs.pod:2135
4574 msgid "STATE MACHINE"
4575 msgstr ""
4576
4577 # type: textblock
4578 #. type: textblock
4579 #: ../src/guestfs.pod:2137
4580 msgid "libguestfs uses a state machine to model the child process:"
4581 msgstr ""
4582
4583 # type: verbatim
4584 #. type: verbatim
4585 #: ../src/guestfs.pod:2139
4586 #, no-wrap
4587 msgid ""
4588 "                         |\n"
4589 "                    guestfs_create\n"
4590 "                         |\n"
4591 "                         |\n"
4592 "                     ____V_____\n"
4593 "                    /          \\\n"
4594 "                    |  CONFIG  |\n"
4595 "                    \\__________/\n"
4596 "                     ^ ^   ^  \\\n"
4597 "                    /  |    \\  \\ guestfs_launch\n"
4598 "                   /   |    _\\__V______\n"
4599 "                  /    |   /           \\\n"
4600 "                 /     |   | LAUNCHING |\n"
4601 "                /      |   \\___________/\n"
4602 "               /       |       /\n"
4603 "              /        |  guestfs_launch\n"
4604 "             /         |     /\n"
4605 "    ______  /        __|____V\n"
4606 "   /      \\ ------> /        \\\n"
4607 "   | BUSY |         | READY  |\n"
4608 "   \\______/ <------ \\________/\n"
4609 "\n"
4610 msgstr ""
4611
4612 # type: textblock
4613 #. type: textblock
4614 #: ../src/guestfs.pod:2161
4615 msgid ""
4616 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4617 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4618 "(3) alternating between READY and BUSY as commands are issued to, and "
4619 "carried out by, the child process."
4620 msgstr ""
4621
4622 # type: textblock
4623 #. type: textblock
4624 #: ../src/guestfs.pod:2166
4625 msgid ""
4626 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4627 "asynchronously at any time (eg. due to some internal error), and that causes "
4628 "the state to transition back to CONFIG."
4629 msgstr ""
4630
4631 # type: textblock
4632 #. type: textblock
4633 #: ../src/guestfs.pod:2170
4634 msgid ""
4635 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4636 "issued when in the CONFIG state."
4637 msgstr ""
4638
4639 # type: textblock
4640 #. type: textblock
4641 #: ../src/guestfs.pod:2173
4642 msgid ""
4643 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4644 "L</guestfs_launch> blocks until the child process is READY to accept "
4645 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4646 "moves the state from CONFIG to LAUNCHING while it is running."
4647 msgstr ""
4648
4649 # type: textblock
4650 #. type: textblock
4651 #: ../src/guestfs.pod:2179
4652 msgid ""
4653 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4654 "state.  These API calls block waiting for the command to be carried out (ie. "
4655 "the state to transition to BUSY and then back to READY).  There are no non-"
4656 "blocking versions, and no way to issue more than one command per handle at "
4657 "the same time."
4658 msgstr ""
4659
4660 # type: textblock
4661 #. type: textblock
4662 #: ../src/guestfs.pod:2185
4663 msgid ""
4664 "Finally, the child process sends asynchronous messages back to the main "
4665 "program, such as kernel log messages.  You can register a callback to "
4666 "receive these messages."
4667 msgstr ""
4668
4669 # type: =head1
4670 #. type: =head1
4671 #: ../src/guestfs.pod:2189
4672 msgid "INTERNALS"
4673 msgstr ""
4674
4675 # type: =head2
4676 #. type: =head2
4677 #: ../src/guestfs.pod:2191
4678 msgid "COMMUNICATION PROTOCOL"
4679 msgstr ""
4680
4681 # type: textblock
4682 #. type: textblock
4683 #: ../src/guestfs.pod:2193
4684 msgid ""
4685 "Don't rely on using this protocol directly.  This section documents how it "
4686 "currently works, but it may change at any time."
4687 msgstr ""
4688
4689 # type: textblock
4690 #. type: textblock
4691 #: ../src/guestfs.pod:2196
4692 msgid ""
4693 "The protocol used to talk between the library and the daemon running inside "
4694 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4695 "1014, RFC 1832, RFC 4506)."
4696 msgstr ""
4697
4698 # type: textblock
4699 #. type: textblock
4700 #: ../src/guestfs.pod:2200
4701 msgid ""
4702 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4703 "this file is automatically generated)."
4704 msgstr ""
4705
4706 # type: textblock
4707 #. type: textblock
4708 #: ../src/guestfs.pod:2203
4709 msgid ""
4710 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4711 "and C<FileOut> parameters, which are handled with very simple request/reply "
4712 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4713 "parameters, which use the same request and reply messages, but they may also "
4714 "be followed by files sent using a chunked encoding."
4715 msgstr ""
4716
4717 # type: =head3
4718 #. type: =head3
4719 #: ../src/guestfs.pod:2210
4720 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4721 msgstr ""
4722
4723 # type: textblock
4724 #. type: textblock
4725 #: ../src/guestfs.pod:2212
4726 msgid "For ordinary functions, the request message is:"
4727 msgstr ""
4728
4729 # type: verbatim
4730 #. type: verbatim
4731 #: ../src/guestfs.pod:2214
4732 #, no-wrap
4733 msgid ""
4734 " total length (header + arguments,\n"
4735 "      but not including the length word itself)\n"
4736 " struct guestfs_message_header (encoded as XDR)\n"
4737 " struct guestfs_<foo>_args (encoded as XDR)\n"
4738 "\n"
4739 msgstr ""
4740
4741 # type: textblock
4742 #. type: textblock
4743 #: ../src/guestfs.pod:2219
4744 msgid ""
4745 "The total length field allows the daemon to allocate a fixed size buffer "
4746 "into which it slurps the rest of the message.  As a result, the total length "
4747 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4748 "effective size of any request is limited to somewhere under this size."
4749 msgstr ""
4750
4751 # type: textblock
4752 #. type: textblock
4753 #: ../src/guestfs.pod:2225
4754 msgid ""
4755 "Note also that many functions don't take any arguments, in which case the "
4756 "C<guestfs_I<foo>_args> is completely omitted."
4757 msgstr ""
4758
4759 # type: textblock
4760 #. type: textblock
4761 #: ../src/guestfs.pod:2228
4762 msgid ""
4763 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4764 "receiver knows what type of args structure to expect, or none at all."
4765 msgstr ""
4766
4767 # type: textblock
4768 #. type: textblock
4769 #: ../src/guestfs.pod:2232
4770 msgid ""
4771 "For functions that take optional arguments, the optional arguments are "
4772 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4773 "arguments.  A bitmask in the header indicates which optional arguments are "
4774 "meaningful.  The bitmask is also checked to see if it contains bits set "
4775 "which the daemon does not know about (eg. if more optional arguments were "
4776 "added in a later version of the library), and this causes the call to be "
4777 "rejected."
4778 msgstr ""
4779
4780 # type: textblock
4781 #. type: textblock
4782 #: ../src/guestfs.pod:2240
4783 msgid "The reply message for ordinary functions is:"
4784 msgstr ""
4785
4786 # type: verbatim
4787 #. type: verbatim
4788 #: ../src/guestfs.pod:2242
4789 #, no-wrap
4790 msgid ""
4791 " total length (header + ret,\n"
4792 "      but not including the length word itself)\n"
4793 " struct guestfs_message_header (encoded as XDR)\n"
4794 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4795 "\n"
4796 msgstr ""
4797
4798 # type: textblock
4799 #. type: textblock
4800 #: ../src/guestfs.pod:2247
4801 msgid ""
4802 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4803 "functions that return no formal return values."
4804 msgstr ""
4805
4806 # type: textblock
4807 #. type: textblock
4808 #: ../src/guestfs.pod:2250
4809 msgid ""
4810 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4811 msgstr ""
4812
4813 # type: textblock
4814 #. type: textblock
4815 #: ../src/guestfs.pod:2253
4816 msgid ""
4817 "In the case of an error, a flag is set in the header, and the reply message "
4818 "is slightly changed:"
4819 msgstr ""
4820
4821 # type: verbatim
4822 #. type: verbatim
4823 #: ../src/guestfs.pod:2256
4824 #, no-wrap
4825 msgid ""
4826 " total length (header + error,\n"
4827 "      but not including the length word itself)\n"
4828 " struct guestfs_message_header (encoded as XDR)\n"
4829 " struct guestfs_message_error (encoded as XDR)\n"
4830 "\n"
4831 msgstr ""
4832
4833 # type: textblock
4834 #. type: textblock
4835 #: ../src/guestfs.pod:2261
4836 msgid ""
4837 "The C<guestfs_message_error> structure contains the error message as a "
4838 "string."
4839 msgstr ""
4840
4841 # type: =head3
4842 #. type: =head3
4843 #: ../src/guestfs.pod:2264
4844 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4845 msgstr ""
4846
4847 # type: textblock
4848 #. type: textblock
4849 #: ../src/guestfs.pod:2266
4850 msgid ""
4851 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4852 "The normal request message is sent (see above).  However this is followed by "
4853 "a sequence of file chunks."
4854 msgstr ""
4855
4856 # type: verbatim
4857 #. type: verbatim
4858 #: ../src/guestfs.pod:2270
4859 #, no-wrap
4860 msgid ""
4861 " total length (header + arguments,\n"
4862 "      but not including the length word itself,\n"
4863 "      and not including the chunks)\n"
4864 " struct guestfs_message_header (encoded as XDR)\n"
4865 " struct guestfs_<foo>_args (encoded as XDR)\n"
4866 " sequence of chunks for FileIn param #0\n"
4867 " sequence of chunks for FileIn param #1 etc.\n"
4868 "\n"
4869 msgstr ""
4870
4871 # type: textblock
4872 #. type: textblock
4873 #: ../src/guestfs.pod:2278
4874 msgid "The \"sequence of chunks\" is:"
4875 msgstr ""
4876
4877 # type: verbatim
4878 #. type: verbatim
4879 #: ../src/guestfs.pod:2280
4880 #, no-wrap
4881 msgid ""
4882 " length of chunk (not including length word itself)\n"
4883 " struct guestfs_chunk (encoded as XDR)\n"
4884 " length of chunk\n"
4885 " struct guestfs_chunk (encoded as XDR)\n"
4886 "   ...\n"
4887 " length of chunk\n"
4888 " struct guestfs_chunk (with data.data_len == 0)\n"
4889 "\n"
4890 msgstr ""
4891
4892 # type: textblock
4893 #. type: textblock
4894 #: ../src/guestfs.pod:2288
4895 msgid ""
4896 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4897 "is set in the final chunk to indicate either successful completion or early "
4898 "cancellation."
4899 msgstr ""
4900
4901 # type: textblock
4902 #. type: textblock
4903 #: ../src/guestfs.pod:2292
4904 msgid ""
4905 "At time of writing there are no functions that have more than one FileIn "
4906 "parameter.  However this is (theoretically) supported, by sending the "
4907 "sequence of chunks for each FileIn parameter one after another (from left to "
4908 "right)."
4909 msgstr ""
4910
4911 # type: textblock
4912 #. type: textblock
4913 #: ../src/guestfs.pod:2297
4914 msgid ""
4915 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4916 "transfer.  The library does this by sending a chunk with a special flag set "
4917 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4918 "RPC, does I<not> send any reply, and goes back to reading the next request."
4919 msgstr ""
4920
4921 # type: textblock
4922 #. type: textblock
4923 #: ../src/guestfs.pod:2303
4924 msgid ""
4925 "The daemon may also cancel.  It does this by writing a special word "
4926 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4927 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4928 "cancel chunk).  The special word is chosen so that even if cancellation "
4929 "happens right at the end of the transfer (after the library has finished "
4930 "writing and has started listening for the reply), the \"spurious\" cancel "
4931 "flag will not be confused with the reply message."
4932 msgstr ""
4933
4934 # type: textblock
4935 #. type: textblock
4936 #: ../src/guestfs.pod:2312
4937 msgid ""
4938 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4939 "limit), and also files where the size is not known in advance (eg. from "
4940 "pipes or sockets).  However the chunks are rather small "
4941 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4942 "to keep much in memory."
4943 msgstr ""
4944
4945 # type: =head3
4946 #. type: =head3
4947 #: ../src/guestfs.pod:2318
4948 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4949 msgstr ""
4950
4951 # type: textblock
4952 #. type: textblock
4953 #: ../src/guestfs.pod:2320
4954 msgid ""
4955 "The protocol for FileOut parameters is exactly the same as for FileIn "
4956 "parameters, but with the roles of daemon and library reversed."
4957 msgstr ""
4958
4959 # type: verbatim
4960 #. type: verbatim
4961 #: ../src/guestfs.pod:2323
4962 #, no-wrap
4963 msgid ""
4964 " total length (header + ret,\n"
4965 "      but not including the length word itself,\n"
4966 "      and not including the chunks)\n"
4967 " struct guestfs_message_header (encoded as XDR)\n"
4968 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4969 " sequence of chunks for FileOut param #0\n"
4970 " sequence of chunks for FileOut param #1 etc.\n"
4971 "\n"
4972 msgstr ""
4973
4974 # type: =head3
4975 #. type: =head3
4976 #: ../src/guestfs.pod:2331
4977 msgid "INITIAL MESSAGE"
4978 msgstr ""
4979
4980 # type: textblock
4981 #. type: textblock
4982 #: ../src/guestfs.pod:2333
4983 msgid ""
4984 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4985 "which indicates that the guest and daemon is alive.  This is what L</"
4986 "guestfs_launch> waits for."
4987 msgstr ""
4988
4989 # type: =head3
4990 #. type: =head3
4991 #: ../src/guestfs.pod:2337
4992 msgid "PROGRESS NOTIFICATION MESSAGES"
4993 msgstr ""
4994
4995 # type: textblock
4996 #. type: textblock
4997 #: ../src/guestfs.pod:2339
4998 msgid ""
4999 "The daemon may send progress notification messages at any time.  These are "
5000 "distinguished by the normal length word being replaced by "
5001 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
5002 msgstr ""
5003
5004 #. type: textblock
5005 #: ../src/guestfs.pod:2343
5006 msgid ""
5007 "The library turns them into progress callbacks (see L</"
5008 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
5009 "if not."
5010 msgstr ""
5011
5012 # type: textblock
5013 #. type: textblock
5014 #: ../src/guestfs.pod:2347
5015 msgid ""
5016 "The daemon self-limits the frequency of progress messages it sends (see "
5017 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
5018 "messages."
5019 msgstr ""
5020
5021 # type: =head1
5022 #. type: =head1
5023 #: ../src/guestfs.pod:2351
5024 msgid "LIBGUESTFS VERSION NUMBERS"
5025 msgstr ""
5026
5027 # type: textblock
5028 #. type: textblock
5029 #: ../src/guestfs.pod:2353
5030 msgid ""
5031 "Since April 2010, libguestfs has started to make separate development and "
5032 "stable releases, along with corresponding branches in our git repository.  "
5033 "These separate releases can be identified by version number:"
5034 msgstr ""
5035
5036 # type: verbatim
5037 #. type: verbatim
5038 #: ../src/guestfs.pod:2358
5039 #, no-wrap
5040 msgid ""
5041 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
5042 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
5043 "       |\n"
5044 "       v\n"
5045 " 1  .  3  .  5\n"
5046 " ^           ^\n"
5047 " |           |\n"
5048 " |           `-------- sub-version\n"
5049 " |\n"
5050 " `------ always '1' because we don't change the ABI\n"
5051 "\n"
5052 msgstr ""
5053
5054 # type: textblock
5055 #. type: textblock
5056 #: ../src/guestfs.pod:2369
5057 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
5058 msgstr ""
5059
5060 # type: textblock
5061 #. type: textblock
5062 #: ../src/guestfs.pod:2371
5063 msgid ""
5064 "As time passes we cherry pick fixes from the development branch and backport "
5065 "those into the stable branch, the effect being that the stable branch should "
5066 "get more stable and less buggy over time.  So the stable releases are ideal "
5067 "for people who don't need new features but would just like the software to "
5068 "work."
5069 msgstr ""
5070
5071 # type: textblock
5072 #. type: textblock
5073 #: ../src/guestfs.pod:2377
5074 msgid "Our criteria for backporting changes are:"
5075 msgstr ""
5076
5077 # type: textblock
5078 #. type: textblock
5079 #: ../src/guestfs.pod:2383
5080 msgid ""
5081 "Documentation changes which don't affect any code are backported unless the "
5082 "documentation refers to a future feature which is not in stable."
5083 msgstr ""
5084
5085 # type: textblock
5086 #. type: textblock
5087 #: ../src/guestfs.pod:2389
5088 msgid ""
5089 "Bug fixes which are not controversial, fix obvious problems, and have been "
5090 "well tested are backported."
5091 msgstr ""
5092
5093 # type: textblock
5094 #. type: textblock
5095 #: ../src/guestfs.pod:2394
5096 msgid ""
5097 "Simple rearrangements of code which shouldn't affect how it works get "
5098 "backported.  This is so that the code in the two branches doesn't get too "
5099 "far out of step, allowing us to backport future fixes more easily."
5100 msgstr ""
5101
5102 # type: textblock
5103 #. type: textblock
5104 #: ../src/guestfs.pod:2400
5105 msgid ""
5106 "We I<don't> backport new features, new APIs, new tools etc, except in one "
5107 "exceptional case: the new feature is required in order to implement an "
5108 "important bug fix."
5109 msgstr ""
5110
5111 # type: textblock
5112 #. type: textblock
5113 #: ../src/guestfs.pod:2406
5114 msgid ""
5115 "A new stable branch starts when we think the new features in development are "
5116 "substantial and compelling enough over the current stable branch to warrant "
5117 "it.  When that happens we create new stable and development versions 1.N.0 "
5118 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
5119 "stable at this point, but by backporting fixes from development, that branch "
5120 "will stabilize over time."
5121 msgstr ""
5122
5123 #. type: =head1
5124 #: ../src/guestfs.pod:2414
5125 msgid "EXTENDING LIBGUESTFS"
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../src/guestfs.pod:2416
5130 msgid "ADDING A NEW API ACTION"
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../src/guestfs.pod:2418
5135 msgid ""
5136 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
5137 "documentation) are generated, and this makes it easy to extend the "
5138 "libguestfs API."
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../src/guestfs.pod:2422
5143 msgid "To add a new API action there are two changes:"
5144 msgstr ""
5145
5146 #. type: textblock
5147 #: ../src/guestfs.pod:2428
5148 msgid ""
5149 "You need to add a description of the call (name, parameters, return type, "
5150 "tests, documentation) to C<generator/generator_actions.ml>."
5151 msgstr ""
5152
5153 #. type: textblock
5154 #: ../src/guestfs.pod:2431
5155 msgid ""
5156 "There are two sorts of API action, depending on whether the call goes "
5157 "through to the daemon in the appliance, or is serviced entirely by the "
5158 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
5159 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
5160 "an example of the latter, since a trace flag is maintained in the handle and "
5161 "all tracing is done on the library side."
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../src/guestfs.pod:2439
5166 msgid ""
5167 "Most new actions are of the first type, and get added to the "
5168 "C<daemon_functions> list.  Each function has a unique procedure number used "
5169 "in the RPC protocol which is assigned to that action when we publish "
5170 "libguestfs and cannot be reused.  Take the latest procedure number and "
5171 "increment it."
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../src/guestfs.pod:2445
5176 msgid ""
5177 "For library-only actions of the second type, add to the "
5178 "C<non_daemon_functions> list.  Since these functions are serviced by the "
5179 "library and do not travel over the RPC mechanism to the daemon, these "
5180 "functions do not need a procedure number, and so the procedure number is set "
5181 "to C<-1>."
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../src/guestfs.pod:2453
5186 msgid "Implement the action (in C):"
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../src/guestfs.pod:2455
5191 msgid ""
5192 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
5193 "C<daemon/> directory."
5194 msgstr ""
5195
5196 #. type: textblock
5197 #: ../src/guestfs.pod:2458
5198 msgid ""
5199 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
5200 "(note: double underscore) in the C<src/> directory."
5201 msgstr ""
5202
5203 #. type: textblock
5204 #: ../src/guestfs.pod:2461
5205 msgid "In either case, use another function as an example of what to do."
5206 msgstr ""
5207
5208 #. type: textblock
5209 #: ../src/guestfs.pod:2465
5210 msgid "After making these changes, use C<make> to compile."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../src/guestfs.pod:2467
5215 msgid ""
5216 "Note that you don't need to implement the RPC, language bindings, manual "
5217 "pages or anything else.  It's all automatically generated from the OCaml "
5218 "description."
5219 msgstr ""
5220
5221 #. type: =head2
5222 #: ../src/guestfs.pod:2471
5223 msgid "ADDING TESTS FOR AN API ACTION"
5224 msgstr ""
5225
5226 #. type: textblock
5227 #: ../src/guestfs.pod:2473
5228 msgid ""
5229 "You can supply zero or as many tests as you want per API call.  The tests "
5230 "can either be added as part of the API description (C<generator/"
5231 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
5232 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
5233 "slower, so if possible use the first method."
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../src/guestfs.pod:2479
5238 msgid ""
5239 "The following describes the test environment used when you add an API test "
5240 "in C<generator_actions.ml>."
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../src/guestfs.pod:2482
5245 msgid "The test environment has 4 block devices:"
5246 msgstr ""
5247
5248 #. type: =item
5249 #: ../src/guestfs.pod:2486
5250 msgid "C</dev/sda> 500MB"
5251 msgstr ""
5252
5253 #. type: textblock
5254 #: ../src/guestfs.pod:2488
5255 msgid "General block device for testing."
5256 msgstr ""
5257
5258 #. type: =item
5259 #: ../src/guestfs.pod:2490
5260 msgid "C</dev/sdb> 50MB"
5261 msgstr ""
5262
5263 #. type: textblock
5264 #: ../src/guestfs.pod:2492
5265 msgid ""
5266 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
5267 "operations."
5268 msgstr ""
5269
5270 #. type: =item
5271 #: ../src/guestfs.pod:2495
5272 msgid "C</dev/sdc> 10MB"
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../src/guestfs.pod:2497
5277 msgid "Used in a few tests where two block devices are needed."
5278 msgstr ""
5279
5280 #. type: =item
5281 #: ../src/guestfs.pod:2499
5282 msgid "C</dev/sdd>"
5283 msgstr ""
5284
5285 #. type: textblock
5286 #: ../src/guestfs.pod:2501
5287 msgid "ISO with fixed content (see C<images/test.iso>)."
5288 msgstr ""
5289
5290 #. type: textblock
5291 #: ../src/guestfs.pod:2505
5292 msgid ""
5293 "To be able to run the tests in a reasonable amount of time, the libguestfs "
5294 "appliance and block devices are reused between tests.  So don't try testing "
5295 "L</guestfs_kill_subprocess> :-x"
5296 msgstr ""
5297
5298 #. type: textblock
5299 #: ../src/guestfs.pod:2509
5300 msgid ""
5301 "Each test starts with an initial scenario, selected using one of the "
5302 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
5303 "initialize the disks mentioned above in a particular way as documented in "
5304 "C<generator_types.ml>.  You should not assume anything about the previous "
5305 "contents of other disks that are not initialized."
5306 msgstr ""
5307
5308 #. type: textblock
5309 #: ../src/guestfs.pod:2515
5310 msgid ""
5311 "You can add a prerequisite clause to any individual test.  This is a run-"
5312 "time check, which, if it fails, causes the test to be skipped.  Useful if "
5313 "testing a command which might not work on all variations of libguestfs "
5314 "builds.  A test that has prerequisite of C<Always> means to run "
5315 "unconditionally."
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../src/guestfs.pod:2521
5320 msgid ""
5321 "In addition, packagers can skip individual tests by setting environment "
5322 "variables before running C<make check>."
5323 msgstr ""
5324
5325 #. type: verbatim
5326 #: ../src/guestfs.pod:2524
5327 #, no-wrap
5328 msgid ""
5329 " SKIP_TEST_<CMD>_<NUM>=1\n"
5330 "\n"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../src/guestfs.pod:2526
5335 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../src/guestfs.pod:2528
5340 msgid "or:"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../src/guestfs.pod:2530
5345 #, no-wrap
5346 msgid ""
5347 " SKIP_TEST_<CMD>=1\n"
5348 "\n"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../src/guestfs.pod:2532
5353 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../src/guestfs.pod:2534
5358 msgid "Packagers can run only certain tests by setting for example:"
5359 msgstr ""
5360
5361 #. type: verbatim
5362 #: ../src/guestfs.pod:2536
5363 #, no-wrap
5364 msgid ""
5365 " TEST_ONLY=\"vfs_type zerofree\"\n"
5366 "\n"
5367 msgstr ""
5368
5369 #. type: textblock
5370 #: ../src/guestfs.pod:2538
5371 msgid ""
5372 "See C<capitests/tests.c> for more details of how these environment variables "
5373 "work."
5374 msgstr ""
5375
5376 #. type: =head2
5377 #: ../src/guestfs.pod:2541
5378 msgid "DEBUGGING NEW API ACTIONS"
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../src/guestfs.pod:2543
5383 msgid "Test new actions work before submitting them."
5384 msgstr ""
5385
5386 #. type: textblock
5387 #: ../src/guestfs.pod:2545
5388 msgid "You can use guestfish to try out new commands."
5389 msgstr ""
5390
5391 #. type: textblock
5392 #: ../src/guestfs.pod:2547
5393 msgid ""
5394 "Debugging the daemon is a problem because it runs inside a minimal "
5395 "environment.  However you can fprintf messages in the daemon to stderr, and "
5396 "they will show up if you use C<guestfish -v>."
5397 msgstr ""
5398
5399 #. type: =head2
5400 #: ../src/guestfs.pod:2551
5401 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
5402 msgstr ""
5403
5404 #. type: textblock
5405 #: ../src/guestfs.pod:2553
5406 msgid ""
5407 "Our C source code generally adheres to some basic code-formatting "
5408 "conventions.  The existing code base is not totally consistent on this "
5409 "front, but we do prefer that contributed code be formatted similarly.  In "
5410 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
5411 "indentation level, and other than that, follow the K&R style."
5412 msgstr ""
5413
5414 #. type: textblock
5415 #: ../src/guestfs.pod:2559
5416 msgid ""
5417 "If you use Emacs, add the following to one of one of your start-up files (e."
5418 "g., ~/.emacs), to help ensure that you get indentation right:"
5419 msgstr ""
5420
5421 #. type: verbatim
5422 #: ../src/guestfs.pod:2562
5423 #, no-wrap
5424 msgid ""
5425 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
5426 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
5427 " (add-hook 'find-file-hook\n"
5428 "     '(lambda () (if (and buffer-file-name\n"
5429 "                          (string-match \"/libguestfs\\\\>\"\n"
5430 "                              (buffer-file-name))\n"
5431 "                          (not (string-equal mode-name \"Change Log\"))\n"
5432 "                          (not (string-equal mode-name \"Makefile\")))\n"
5433 "                     (setq indent-tabs-mode nil))))\n"
5434 " \n"
5435 msgstr ""
5436
5437 #. type: verbatim
5438 #: ../src/guestfs.pod:2572
5439 #, no-wrap
5440 msgid ""
5441 " ;;; When editing C sources in libguestfs, use this style.\n"
5442 " (defun libguestfs-c-mode ()\n"
5443 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
5444 "   (interactive)\n"
5445 "   (c-set-style \"K&R\")\n"
5446 "   (setq c-indent-level 2)\n"
5447 "   (setq c-basic-offset 2))\n"
5448 " (add-hook 'c-mode-hook\n"
5449 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
5450 "                               (buffer-file-name))\n"
5451 "                           (libguestfs-c-mode))))\n"
5452 "\n"
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../src/guestfs.pod:2584
5457 msgid "Enable warnings when compiling (and fix any problems this finds):"
5458 msgstr ""
5459
5460 #. type: verbatim
5461 #: ../src/guestfs.pod:2587
5462 #, no-wrap
5463 msgid ""
5464 " ./configure --enable-gcc-warnings\n"
5465 "\n"
5466 msgstr ""
5467
5468 #. type: textblock
5469 #: ../src/guestfs.pod:2589
5470 msgid "Useful targets are:"
5471 msgstr ""
5472
5473 #. type: verbatim
5474 #: ../src/guestfs.pod:2591
5475 #, no-wrap
5476 msgid ""
5477 " make syntax-check  # checks the syntax of the C code\n"
5478 " make check         # runs the test suite\n"
5479 "\n"
5480 msgstr ""
5481
5482 #. type: =head2
5483 #: ../src/guestfs.pod:2594
5484 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../src/guestfs.pod:2596
5489 msgid ""
5490 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
5491 "which are used to do shell quoting."
5492 msgstr ""
5493
5494 #. type: =item
5495 #: ../src/guestfs.pod:2601
5496 msgid "%Q"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../src/guestfs.pod:2603
5501 msgid ""
5502 "Simple shell quoted string.  Any spaces or other shell characters are "
5503 "escaped for you."
5504 msgstr ""
5505
5506 #. type: =item
5507 #: ../src/guestfs.pod:2606
5508 msgid "%R"
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../src/guestfs.pod:2608
5513 msgid ""
5514 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5515 "the sysroot."
5516 msgstr ""
5517
5518 # type: textblock
5519 #. type: textblock
5520 #: ../src/guestfs.pod:2613 ../fish/guestfish.pod:240 ../fish/guestfish.pod:599
5521 msgid "For example:"
5522 msgstr ""
5523
5524 #. type: verbatim
5525 #: ../src/guestfs.pod:2615
5526 #, no-wrap
5527 msgid ""
5528 " asprintf (&cmd, \"cat %R\", path);\n"
5529 "\n"
5530 msgstr ""
5531
5532 #. type: textblock
5533 #: ../src/guestfs.pod:2617
5534 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../src/guestfs.pod:2619
5539 msgid ""
5540 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5541 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5542 "they are not passed via the shell (instead, straight to exec).  You probably "
5543 "want to use the C<sysroot_path()> function however."
5544 msgstr ""
5545
5546 #. type: =head2
5547 #: ../src/guestfs.pod:2625
5548 msgid "SUBMITTING YOUR NEW API ACTIONS"
5549 msgstr ""
5550
5551 #. type: textblock
5552 #: ../src/guestfs.pod:2627
5553 msgid ""
5554 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5555 "libguestfs> and CC to L<rjones@redhat.com>."
5556 msgstr ""
5557
5558 #. type: =head2
5559 #: ../src/guestfs.pod:2631
5560 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../src/guestfs.pod:2633
5565 msgid "We support i18n (gettext anyhow) in the library."
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../src/guestfs.pod:2635
5570 msgid ""
5571 "However many messages come from the daemon, and we don't translate those at "
5572 "the moment.  One reason is that the appliance generally has all locale files "
5573 "removed from it, because they take up a lot of space.  So we'd have to readd "
5574 "some of those, as well as copying our PO files into the appliance."
5575 msgstr ""
5576
5577 #. type: textblock
5578 #: ../src/guestfs.pod:2641
5579 msgid ""
5580 "Debugging messages are never translated, since they are intended for the "
5581 "programmers."
5582 msgstr ""
5583
5584 #. type: =head2
5585 #: ../src/guestfs.pod:2644
5586 msgid "SOURCE CODE SUBDIRECTORIES"
5587 msgstr ""
5588
5589 #. type: =item
5590 #: ../src/guestfs.pod:2648 ../src/guestfs-actions.pod:5721
5591 #: ../fish/guestfish-actions.pod:3838
5592 msgid "C<appliance>"
5593 msgstr ""
5594
5595 #. type: textblock
5596 #: ../src/guestfs.pod:2650
5597 msgid "The libguestfs appliance, build scripts and so on."
5598 msgstr ""
5599
5600 #. type: =item
5601 #: ../src/guestfs.pod:2652
5602 msgid "C<capitests>"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../src/guestfs.pod:2654
5607 msgid "Automated tests of the C API."
5608 msgstr ""
5609
5610 #. type: =item
5611 #: ../src/guestfs.pod:2656
5612 msgid "C<cat>"
5613 msgstr ""
5614
5615 #. type: textblock
5616 #: ../src/guestfs.pod:2658
5617 msgid ""
5618 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5619 "documentation."
5620 msgstr ""
5621
5622 #. type: =item
5623 #: ../src/guestfs.pod:2661
5624 msgid "C<contrib>"
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../src/guestfs.pod:2663
5629 msgid "Outside contributions, experimental parts."
5630 msgstr ""
5631
5632 #. type: =item
5633 #: ../src/guestfs.pod:2665
5634 msgid "C<daemon>"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../src/guestfs.pod:2667
5639 msgid ""
5640 "The daemon that runs inside the libguestfs appliance and carries out actions."
5641 msgstr ""
5642
5643 #. type: =item
5644 #: ../src/guestfs.pod:2670
5645 msgid "C<df>"
5646 msgstr ""
5647
5648 #. type: textblock
5649 #: ../src/guestfs.pod:2672
5650 msgid "L<virt-df(1)> command and documentation."
5651 msgstr ""
5652
5653 #. type: =item
5654 #: ../src/guestfs.pod:2674
5655 msgid "C<examples>"
5656 msgstr ""
5657
5658 #. type: textblock
5659 #: ../src/guestfs.pod:2676
5660 msgid "C API example code."
5661 msgstr ""
5662
5663 #. type: =item
5664 #: ../src/guestfs.pod:2678
5665 msgid "C<fish>"
5666 msgstr ""
5667
5668 #. type: textblock
5669 #: ../src/guestfs.pod:2680
5670 msgid ""
5671 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5672 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5673 "L<virt-tar-out(1)>."
5674 msgstr ""
5675
5676 #. type: =item
5677 #: ../src/guestfs.pod:2684
5678 msgid "C<fuse>"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../src/guestfs.pod:2686
5683 msgid ""
5684 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5685 msgstr ""
5686
5687 #. type: =item
5688 #: ../src/guestfs.pod:2688
5689 msgid "C<generator>"
5690 msgstr ""
5691
5692 #. type: textblock
5693 #: ../src/guestfs.pod:2690
5694 msgid ""
5695 "The crucially important generator, used to automatically generate large "
5696 "amounts of boilerplate C code for things like RPC and bindings."
5697 msgstr ""
5698
5699 #. type: =item
5700 #: ../src/guestfs.pod:2693
5701 msgid "C<images>"
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../src/guestfs.pod:2695
5706 msgid "Files used by the test suite."
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../src/guestfs.pod:2697
5711 msgid "Some \"phony\" guest images which we test against."
5712 msgstr ""
5713
5714 #. type: =item
5715 #: ../src/guestfs.pod:2699
5716 msgid "C<inspector>"
5717 msgstr ""
5718
5719 #. type: textblock
5720 #: ../src/guestfs.pod:2701
5721 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5722 msgstr ""
5723
5724 #. type: =item
5725 #: ../src/guestfs.pod:2703
5726 msgid "C<logo>"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../src/guestfs.pod:2705
5731 msgid "Logo used on the website.  The fish is called Arthur by the way."
5732 msgstr ""
5733
5734 #. type: =item
5735 #: ../src/guestfs.pod:2707
5736 msgid "C<m4>"
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../src/guestfs.pod:2709
5741 msgid "M4 macros used by autoconf."
5742 msgstr ""
5743
5744 #. type: =item
5745 #: ../src/guestfs.pod:2711
5746 msgid "C<po>"
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../src/guestfs.pod:2713
5751 msgid "Translations of simple gettext strings."
5752 msgstr ""
5753
5754 #. type: =item
5755 #: ../src/guestfs.pod:2715
5756 msgid "C<po-docs>"
5757 msgstr ""
5758
5759 #. type: textblock
5760 #: ../src/guestfs.pod:2717
5761 msgid ""
5762 "The build infrastructure and PO files for translations of manpages and POD "
5763 "files.  Eventually this will be combined with the C<po> directory, but that "
5764 "is rather complicated."
5765 msgstr ""
5766
5767 #. type: =item
5768 #: ../src/guestfs.pod:2721
5769 msgid "C<regressions>"
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../src/guestfs.pod:2723
5774 msgid "Regression tests."
5775 msgstr ""
5776
5777 #. type: =item
5778 #: ../src/guestfs.pod:2725
5779 msgid "C<rescue>"
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../src/guestfs.pod:2727
5784 msgid "L<virt-rescue(1)> command and documentation."
5785 msgstr ""
5786
5787 #. type: =item
5788 #: ../src/guestfs.pod:2729
5789 msgid "C<src>"
5790 msgstr ""
5791
5792 #. type: textblock
5793 #: ../src/guestfs.pod:2731
5794 msgid "Source code to the C library."
5795 msgstr ""
5796
5797 #. type: =item
5798 #: ../src/guestfs.pod:2733
5799 msgid "C<tools>"
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../src/guestfs.pod:2735
5804 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5805 msgstr ""
5806
5807 #. type: =item
5808 #: ../src/guestfs.pod:2737
5809 msgid "C<test-tool>"
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../src/guestfs.pod:2739
5814 msgid ""
5815 "Test tool for end users to test if their qemu/kernel combination will work "
5816 "with libguestfs."
5817 msgstr ""
5818
5819 #. type: =item
5820 #: ../src/guestfs.pod:2742
5821 msgid "C<csharp>"
5822 msgstr ""
5823
5824 #. type: =item
5825 #: ../src/guestfs.pod:2744
5826 msgid "C<haskell>"
5827 msgstr ""
5828
5829 #. type: =item
5830 #: ../src/guestfs.pod:2746
5831 msgid "C<java>"
5832 msgstr ""
5833
5834 #. type: =item
5835 #: ../src/guestfs.pod:2748
5836 msgid "C<ocaml>"
5837 msgstr ""
5838
5839 #. type: =item
5840 #: ../src/guestfs.pod:2750
5841 msgid "C<php>"
5842 msgstr ""
5843
5844 #. type: =item
5845 #: ../src/guestfs.pod:2752
5846 msgid "C<perl>"
5847 msgstr ""
5848
5849 #. type: =item
5850 #: ../src/guestfs.pod:2754
5851 msgid "C<python>"
5852 msgstr ""
5853
5854 #. type: =item
5855 #: ../src/guestfs.pod:2756
5856 msgid "C<ruby>"
5857 msgstr ""
5858
5859 #. type: textblock
5860 #: ../src/guestfs.pod:2758
5861 msgid "Language bindings."
5862 msgstr ""
5863
5864 # type: =head1
5865 #. type: =head1
5866 #: ../src/guestfs.pod:2762 ../fish/guestfish.pod:996
5867 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5868 msgid "ENVIRONMENT VARIABLES"
5869 msgstr ""
5870
5871 # type: =item
5872 #. type: =item
5873 #: ../src/guestfs.pod:2766 ../fish/guestfish.pod:1022
5874 msgid "LIBGUESTFS_APPEND"
5875 msgstr ""
5876
5877 # type: textblock
5878 #. type: textblock
5879 #: ../src/guestfs.pod:2768 ../fish/guestfish.pod:1024
5880 msgid "Pass additional options to the guest kernel."
5881 msgstr ""
5882
5883 # type: =item
5884 #. type: =item
5885 #: ../src/guestfs.pod:2770 ../fish/guestfish.pod:1026
5886 msgid "LIBGUESTFS_DEBUG"
5887 msgstr ""
5888
5889 # type: textblock
5890 #. type: textblock
5891 #: ../src/guestfs.pod:2772
5892 msgid ""
5893 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5894 "effect as calling C<guestfs_set_verbose (g, 1)>."
5895 msgstr ""
5896
5897 # type: =item
5898 #. type: =item
5899 #: ../src/guestfs.pod:2775 ../fish/guestfish.pod:1031
5900 msgid "LIBGUESTFS_MEMSIZE"
5901 msgstr ""
5902
5903 # type: textblock
5904 #. type: textblock
5905 #: ../src/guestfs.pod:2777 ../fish/guestfish.pod:1033
5906 msgid ""
5907 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5908 msgstr ""
5909
5910 # type: verbatim
5911 #. type: verbatim
5912 #: ../src/guestfs.pod:2780 ../fish/guestfish.pod:1036
5913 #, no-wrap
5914 msgid ""
5915 " LIBGUESTFS_MEMSIZE=700\n"
5916 "\n"
5917 msgstr ""
5918
5919 # type: =item
5920 #. type: =item
5921 #: ../src/guestfs.pod:2782 ../fish/guestfish.pod:1038
5922 msgid "LIBGUESTFS_PATH"
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../src/guestfs.pod:2784
5927 msgid ""
5928 "Set the path that libguestfs uses to search for a supermin appliance.  See "
5929 "the discussion of paths in section L</PATH> above."
5930 msgstr ""
5931
5932 # type: =item
5933 #. type: =item
5934 #: ../src/guestfs.pod:2787 ../fish/guestfish.pod:1043
5935 msgid "LIBGUESTFS_QEMU"
5936 msgstr ""
5937
5938 # type: textblock
5939 #. type: textblock
5940 #: ../src/guestfs.pod:2789 ../fish/guestfish.pod:1045
5941 msgid ""
5942 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5943 "which was found at compile time by the configure script is used."
5944 msgstr ""
5945
5946 # type: textblock
5947 #. type: textblock
5948 #: ../src/guestfs.pod:2793
5949 msgid "See also L</QEMU WRAPPERS> above."
5950 msgstr ""
5951
5952 # type: =item
5953 #. type: =item
5954 #: ../src/guestfs.pod:2795 ../fish/guestfish.pod:1049
5955 msgid "LIBGUESTFS_TRACE"
5956 msgstr ""
5957
5958 # type: textblock
5959 #. type: textblock
5960 #: ../src/guestfs.pod:2797
5961 msgid ""
5962 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5963 "effect as calling C<guestfs_set_trace (g, 1)>."
5964 msgstr ""
5965
5966 # type: =item
5967 #. type: =item
5968 #: ../src/guestfs.pod:2800 ../fish/guestfish.pod:1058
5969 msgid "TMPDIR"
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../src/guestfs.pod:2802 ../fish/guestfish.pod:1060
5974 msgid ""
5975 "Location of temporary directory, defaults to C</tmp> except for the cached "
5976 "supermin appliance which defaults to C</var/tmp>."
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../src/guestfs.pod:2805 ../fish/guestfish.pod:1063
5981 msgid ""
5982 "If libguestfs was compiled to use the supermin appliance then the real "
5983 "appliance is cached in this directory, shared between all handles belonging "
5984 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5985 "use in case C</var/tmp> is not large enough."
5986 msgstr ""
5987
5988 # type: =head1
5989 #. type: =head1
5990 #: ../src/guestfs.pod:2813 ../fish/guestfish.pod:1121
5991 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:238
5992 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
5993 #: ../tools/virt-resize.pl:1489 ../tools/virt-list-filesystems.pl:189
5994 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:539
5995 #: ../tools/virt-list-partitions.pl:257
5996 msgid "SEE ALSO"
5997 msgstr ""
5998
5999 #. type: textblock
6000 #: ../src/guestfs.pod:2815
6001 msgid ""
6002 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
6003 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
6004 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
6005 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
6006 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
6007 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
6008 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
6009 msgstr ""
6010
6011 # type: textblock
6012 #. type: textblock
6013 #: ../src/guestfs.pod:2842
6014 msgid ""
6015 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
6016 "(8)>, L<disktype(1)>."
6017 msgstr ""
6018
6019 # type: =head1
6020 #. type: =head1
6021 #: ../src/guestfs.pod:2849 ../tools/virt-win-reg.pl:587
6022 #: ../tools/virt-make-fs.pl:553
6023 msgid "BUGS"
6024 msgstr ""
6025
6026 # type: textblock
6027 #. type: textblock
6028 #: ../src/guestfs.pod:2851
6029 msgid "To get a list of bugs against libguestfs use this link:"
6030 msgstr ""
6031
6032 # type: textblock
6033 #. type: textblock
6034 #: ../src/guestfs.pod:2853
6035 msgid ""
6036 "L<https://bugzilla.redhat.com/buglist.cgi?"
6037 "component=libguestfs&product=Virtualization+Tools>"
6038 msgstr ""
6039
6040 # type: textblock
6041 #. type: textblock
6042 #: ../src/guestfs.pod:2855
6043 msgid "To report a new bug against libguestfs use this link:"
6044 msgstr ""
6045
6046 # type: textblock
6047 #. type: textblock
6048 #: ../src/guestfs.pod:2857
6049 msgid ""
6050 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
6051 "component=libguestfs&product=Virtualization+Tools>"
6052 msgstr ""
6053
6054 # type: textblock
6055 #. type: textblock
6056 #: ../src/guestfs.pod:2859
6057 msgid "When reporting a bug, please check:"
6058 msgstr ""
6059
6060 # type: textblock
6061 #. type: textblock
6062 #: ../src/guestfs.pod:2865
6063 msgid "That the bug hasn't been reported already."
6064 msgstr ""
6065
6066 # type: textblock
6067 #. type: textblock
6068 #: ../src/guestfs.pod:2869
6069 msgid "That you are testing a recent version."
6070 msgstr ""
6071
6072 # type: textblock
6073 #. type: textblock
6074 #: ../src/guestfs.pod:2873
6075 msgid "Describe the bug accurately, and give a way to reproduce it."
6076 msgstr ""
6077
6078 # type: textblock
6079 #. type: textblock
6080 #: ../src/guestfs.pod:2877
6081 msgid ""
6082 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
6083 "bug report."
6084 msgstr ""
6085
6086 # type: =head1
6087 #. type: =head1
6088 #: ../src/guestfs.pod:2882 ../fish/guestfish.pod:1144
6089 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:249
6090 msgid "AUTHORS"
6091 msgstr ""
6092
6093 # type: textblock
6094 #. type: textblock
6095 #: ../src/guestfs.pod:2884 ../fish/guestfish.pod:1146
6096 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:251
6097 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
6098 msgstr ""
6099
6100 # type: =head1
6101 #. type: =head1
6102 #: ../src/guestfs.pod:2886 ../fish/guestfish.pod:1148
6103 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:253
6104 #: ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602
6105 #: ../tools/virt-resize.pl:1514 ../tools/virt-list-filesystems.pl:206
6106 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:568
6107 #: ../tools/virt-list-partitions.pl:273
6108 msgid "COPYRIGHT"
6109 msgstr ""
6110
6111 # type: textblock
6112 #. type: textblock
6113 #: ../src/guestfs.pod:2888 ../fish/guestfish.pod:1150
6114 #: ../fuse/guestmount.pod:255
6115 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
6116 msgstr ""
6117
6118 # type: textblock
6119 #. type: textblock
6120 #: ../src/guestfs.pod:2891
6121 msgid ""
6122 "This library is free software; you can redistribute it and/or modify it "
6123 "under the terms of the GNU Lesser General Public License as published by the "
6124 "Free Software Foundation; either version 2 of the License, or (at your "
6125 "option) any later version."
6126 msgstr ""
6127
6128 # type: textblock
6129 #. type: textblock
6130 #: ../src/guestfs.pod:2896
6131 msgid ""
6132 "This library is distributed in the hope that it will be useful, but WITHOUT "
6133 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
6134 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
6135 "for more details."
6136 msgstr ""
6137
6138 # type: textblock
6139 #. type: textblock
6140 #: ../src/guestfs.pod:2901
6141 msgid ""
6142 "You should have received a copy of the GNU Lesser General Public License "
6143 "along with this library; if not, write to the Free Software Foundation, "
6144 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
6145 msgstr ""
6146
6147 # type: =head2
6148 #. type: =head2
6149 #: ../src/guestfs-actions.pod:1
6150 msgid "guestfs_add_cdrom"
6151 msgstr ""
6152
6153 # type: verbatim
6154 #. type: verbatim
6155 #: ../src/guestfs-actions.pod:3
6156 #, no-wrap
6157 msgid ""
6158 " int\n"
6159 " guestfs_add_cdrom (guestfs_h *g,\n"
6160 "                    const char *filename);\n"
6161 "\n"
6162 msgstr ""
6163
6164 # type: textblock
6165 #. type: textblock
6166 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
6167 msgid "This function adds a virtual CD-ROM disk image to the guest."
6168 msgstr ""
6169
6170 # type: textblock
6171 #. type: textblock
6172 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
6173 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
6174 msgstr ""
6175
6176 # type: textblock
6177 #. type: textblock
6178 #: ../src/guestfs-actions.pod:17
6179 msgid ""
6180 "This call checks for the existence of C<filename>.  This stops you from "
6181 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6182 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
6183 "instead."
6184 msgstr ""
6185
6186 # type: textblock
6187 #. type: textblock
6188 #: ../src/guestfs-actions.pod:24
6189 msgid ""
6190 "If you just want to add an ISO file (often you use this as an efficient way "
6191 "to transfer large files into the guest), then you should probably use "
6192 "C<guestfs_add_drive_ro> instead."
6193 msgstr ""
6194
6195 # type: textblock
6196 #. type: textblock
6197 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:134
6198 #: ../src/guestfs-actions.pod:195 ../src/guestfs-actions.pod:232
6199 #: ../src/guestfs-actions.pod:246 ../src/guestfs-actions.pod:267
6200 #: ../src/guestfs-actions.pod:287 ../src/guestfs-actions.pod:301
6201 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:436
6202 #: ../src/guestfs-actions.pod:450 ../src/guestfs-actions.pod:495
6203 #: ../src/guestfs-actions.pod:523 ../src/guestfs-actions.pod:541
6204 #: ../src/guestfs-actions.pod:608 ../src/guestfs-actions.pod:641
6205 #: ../src/guestfs-actions.pod:655 ../src/guestfs-actions.pod:670
6206 #: ../src/guestfs-actions.pod:769 ../src/guestfs-actions.pod:787
6207 #: ../src/guestfs-actions.pod:801 ../src/guestfs-actions.pod:815
6208 #: ../src/guestfs-actions.pod:976 ../src/guestfs-actions.pod:996
6209 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1098
6210 #: ../src/guestfs-actions.pod:1116 ../src/guestfs-actions.pod:1135
6211 #: ../src/guestfs-actions.pod:1149 ../src/guestfs-actions.pod:1169
6212 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1270
6213 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1332
6214 #: ../src/guestfs-actions.pod:1438 ../src/guestfs-actions.pod:1472
6215 #: ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1712
6216 #: ../src/guestfs-actions.pod:1799 ../src/guestfs-actions.pod:2261
6217 #: ../src/guestfs-actions.pod:2405 ../src/guestfs-actions.pod:2466
6218 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:3371
6219 #: ../src/guestfs-actions.pod:3386 ../src/guestfs-actions.pod:3406
6220 #: ../src/guestfs-actions.pod:3561 ../src/guestfs-actions.pod:3575
6221 #: ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3602
6222 #: ../src/guestfs-actions.pod:3617 ../src/guestfs-actions.pod:3653
6223 #: ../src/guestfs-actions.pod:3725 ../src/guestfs-actions.pod:3745
6224 #: ../src/guestfs-actions.pod:3762 ../src/guestfs-actions.pod:3785
6225 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3840
6226 #: ../src/guestfs-actions.pod:3859 ../src/guestfs-actions.pod:3878
6227 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3925
6228 #: ../src/guestfs-actions.pod:3961 ../src/guestfs-actions.pod:3977
6229 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4005
6230 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:4115
6231 #: ../src/guestfs-actions.pod:4135 ../src/guestfs-actions.pod:4148
6232 #: ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4217
6233 #: ../src/guestfs-actions.pod:4235 ../src/guestfs-actions.pod:4251
6234 #: ../src/guestfs-actions.pod:4265 ../src/guestfs-actions.pod:4279
6235 #: ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4311
6236 #: ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:4389
6237 #: ../src/guestfs-actions.pod:4462 ../src/guestfs-actions.pod:4493
6238 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4531
6239 #: ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4560
6240 #: ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4588
6241 #: ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4638
6242 #: ../src/guestfs-actions.pod:4653 ../src/guestfs-actions.pod:4673
6243 #: ../src/guestfs-actions.pod:4687 ../src/guestfs-actions.pod:4704
6244 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:4790
6245 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4832
6246 #: ../src/guestfs-actions.pod:4849 ../src/guestfs-actions.pod:4867
6247 #: ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5058
6248 #: ../src/guestfs-actions.pod:5080 ../src/guestfs-actions.pod:5098
6249 #: ../src/guestfs-actions.pod:5130 ../src/guestfs-actions.pod:5196
6250 #: ../src/guestfs-actions.pod:5213 ../src/guestfs-actions.pod:5226
6251 #: ../src/guestfs-actions.pod:5240 ../src/guestfs-actions.pod:5529
6252 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:5567
6253 #: ../src/guestfs-actions.pod:5579 ../src/guestfs-actions.pod:5591
6254 #: ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5617
6255 #: ../src/guestfs-actions.pod:5631 ../src/guestfs-actions.pod:5647
6256 #: ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5687
6257 #: ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5736
6258 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5775
6259 #: ../src/guestfs-actions.pod:5793 ../src/guestfs-actions.pod:5812
6260 #: ../src/guestfs-actions.pod:5833 ../src/guestfs-actions.pod:5852
6261 #: ../src/guestfs-actions.pod:5869 ../src/guestfs-actions.pod:5897
6262 #: ../src/guestfs-actions.pod:5921 ../src/guestfs-actions.pod:5940
6263 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:5983
6264 #: ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6017
6265 #: ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6077
6266 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6211
6267 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6344
6268 #: ../src/guestfs-actions.pod:6357 ../src/guestfs-actions.pod:6370
6269 #: ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6405
6270 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6431
6271 #: ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6505
6272 #: ../src/guestfs-actions.pod:6522 ../src/guestfs-actions.pod:6538
6273 #: ../src/guestfs-actions.pod:6554 ../src/guestfs-actions.pod:6571
6274 #: ../src/guestfs-actions.pod:6584 ../src/guestfs-actions.pod:6604
6275 #: ../src/guestfs-actions.pod:6640 ../src/guestfs-actions.pod:6654
6276 #: ../src/guestfs-actions.pod:6695 ../src/guestfs-actions.pod:6708
6277 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:6760
6278 #: ../src/guestfs-actions.pod:6796 ../src/guestfs-actions.pod:6915
6279 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6947
6280 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7015
6281 #: ../src/guestfs-actions.pod:7060 ../src/guestfs-actions.pod:7093
6282 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7173
6283 #: ../src/guestfs-actions.pod:7239 ../src/guestfs-actions.pod:7258
6284 #: ../src/guestfs-actions.pod:7287
6285 msgid "This function returns 0 on success or -1 on error."
6286 msgstr ""
6287
6288 # type: textblock
6289 #. type: textblock
6290 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:248
6291 #: ../src/guestfs-actions.pod:269 ../fish/guestfish-actions.pod:28
6292 #: ../fish/guestfish-actions.pod:158 ../fish/guestfish-actions.pod:172
6293 msgid ""
6294 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
6295 "instead."
6296 msgstr ""
6297
6298 # type: textblock
6299 #. type: textblock
6300 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:251
6301 #: ../src/guestfs-actions.pod:272 ../src/guestfs-actions.pod:1443
6302 #: ../src/guestfs-actions.pod:1939 ../src/guestfs-actions.pod:1960
6303 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:7181
6304 #: ../src/guestfs-actions.pod:7350 ../fish/guestfish-actions.pod:31
6305 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:175
6306 #: ../fish/guestfish-actions.pod:956 ../fish/guestfish-actions.pod:1319
6307 #: ../fish/guestfish-actions.pod:1333 ../fish/guestfish-actions.pod:2938
6308 #: ../fish/guestfish-actions.pod:4796 ../fish/guestfish-actions.pod:4893
6309 msgid ""
6310 "Deprecated functions will not be removed from the API, but the fact that "
6311 "they are deprecated indicates that there are problems with correct use of "
6312 "these functions."
6313 msgstr ""
6314
6315 # type: textblock
6316 #. type: textblock
6317 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:136
6318 #: ../src/guestfs-actions.pod:1100 ../src/guestfs-actions.pod:1911
6319 #: ../src/guestfs-actions.pod:2009 ../src/guestfs-actions.pod:2112
6320 #: ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3388
6321 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:5754
6322 #: ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:5985
6323 #: ../src/guestfs-actions.pod:6448 ../src/guestfs-actions.pod:6573
6324 #: ../src/guestfs-actions.pod:7095
6325 msgid "(Added in 0.3)"
6326 msgstr ""
6327
6328 # type: =head2
6329 #. type: =head2
6330 #: ../src/guestfs-actions.pod:41
6331 msgid "guestfs_add_domain"
6332 msgstr ""
6333
6334 # type: verbatim
6335 #. type: verbatim
6336 #: ../src/guestfs-actions.pod:43
6337 #, no-wrap
6338 msgid ""
6339 " int\n"
6340 " guestfs_add_domain (guestfs_h *g,\n"
6341 "                     const char *dom,\n"
6342 "                     ...);\n"
6343 "\n"
6344 msgstr ""
6345
6346 # type: textblock
6347 #. type: textblock
6348 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:145
6349 #: ../src/guestfs-actions.pod:4350
6350 msgid ""
6351 "You may supply a list of optional arguments to this call.  Use zero or more "
6352 "of the following pairs of parameters, and terminate the list with C<-1> on "
6353 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
6354 msgstr ""
6355
6356 #. type: verbatim
6357 #: ../src/guestfs-actions.pod:53
6358 #, no-wrap
6359 msgid ""
6360 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
6361 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
6362 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
6363 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
6364 "\n"
6365 msgstr ""
6366
6367 # type: textblock
6368 #. type: textblock
6369 #: ../src/guestfs-actions.pod:58
6370 msgid ""
6371 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6372 "It works by connecting to libvirt, requesting the domain and domain XML from "
6373 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
6374 "one."
6375 msgstr ""
6376
6377 # type: textblock
6378 #. type: textblock
6379 #: ../src/guestfs-actions.pod:63 ../fish/guestfish-actions.pod:46
6380 msgid ""
6381 "The number of disks added is returned.  This operation is atomic: if an "
6382 "error is returned, then no disks are added."
6383 msgstr ""
6384
6385 # type: textblock
6386 #. type: textblock
6387 #: ../src/guestfs-actions.pod:66 ../fish/guestfish-actions.pod:49
6388 msgid ""
6389 "This function does some minimal checks to make sure the libvirt domain is "
6390 "not running (unless C<readonly> is true).  In a future version we will try "
6391 "to acquire the libvirt lock on each disk."
6392 msgstr ""
6393
6394 # type: textblock
6395 #. type: textblock
6396 #: ../src/guestfs-actions.pod:70 ../fish/guestfish-actions.pod:53
6397 msgid ""
6398 "Disks must be accessible locally.  This often means that adding disks from a "
6399 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6400 "unless those disks are accessible via the same device path locally too."
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../src/guestfs-actions.pod:75 ../fish/guestfish-actions.pod:58
6405 msgid ""
6406 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6407 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6408 "libvirt URI (or one set through an environment variable, see the libvirt "
6409 "documentation for full details)."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../src/guestfs-actions.pod:81 ../fish/guestfish-actions.pod:64
6414 msgid ""
6415 "The optional C<live> flag controls whether this call will try to connect to "
6416 "a running virtual machine C<guestfsd> process if it sees a suitable "
6417 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6418 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6419 "DAEMONS> for more information."
6420 msgstr ""
6421
6422 # type: textblock
6423 #. type: textblock
6424 #: ../src/guestfs-actions.pod:88
6425 msgid ""
6426 "The other optional parameters are passed directly through to "
6427 "C<guestfs_add_drive_opts>."
6428 msgstr ""
6429
6430 # type: textblock
6431 #. type: textblock
6432 #: ../src/guestfs-actions.pod:91 ../src/guestfs-actions.pod:344
6433 #: ../src/guestfs-actions.pod:509 ../src/guestfs-actions.pod:687
6434 #: ../src/guestfs-actions.pod:718 ../src/guestfs-actions.pod:736
6435 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:1315
6436 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1872
6437 #: ../src/guestfs-actions.pod:1981 ../src/guestfs-actions.pod:2021
6438 #: ../src/guestfs-actions.pod:2076 ../src/guestfs-actions.pod:2099
6439 #: ../src/guestfs-actions.pod:2392 ../src/guestfs-actions.pod:2719
6440 #: ../src/guestfs-actions.pod:2740 ../src/guestfs-actions.pod:4776
6441 #: ../src/guestfs-actions.pod:4904 ../src/guestfs-actions.pod:5310
6442 #: ../src/guestfs-actions.pod:5336 ../src/guestfs-actions.pod:6681
6443 #: ../src/guestfs-actions.pod:7106 ../src/guestfs-actions.pod:7119
6444 #: ../src/guestfs-actions.pod:7132
6445 msgid "On error this function returns -1."
6446 msgstr ""
6447
6448 # type: textblock
6449 #. type: textblock
6450 #: ../src/guestfs-actions.pod:93
6451 msgid "(Added in 1.7.4)"
6452 msgstr ""
6453
6454 # type: =head2
6455 #. type: =head2
6456 #: ../src/guestfs-actions.pod:95
6457 msgid "guestfs_add_domain_va"
6458 msgstr ""
6459
6460 # type: verbatim
6461 #. type: verbatim
6462 #: ../src/guestfs-actions.pod:97
6463 #, no-wrap
6464 msgid ""
6465 " int\n"
6466 " guestfs_add_domain_va (guestfs_h *g,\n"
6467 "                        const char *dom,\n"
6468 "                        va_list args);\n"
6469 "\n"
6470 msgstr ""
6471
6472 # type: textblock
6473 #. type: textblock
6474 #: ../src/guestfs-actions.pod:102
6475 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
6476 msgstr ""
6477
6478 # type: textblock
6479 #. type: textblock
6480 #: ../src/guestfs-actions.pod:104 ../src/guestfs-actions.pod:115
6481 #: ../src/guestfs-actions.pod:208 ../src/guestfs-actions.pod:219
6482 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4415
6483 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
6484 msgstr ""
6485
6486 # type: =head2
6487 #. type: =head2
6488 #: ../src/guestfs-actions.pod:106
6489 msgid "guestfs_add_domain_argv"
6490 msgstr ""
6491
6492 # type: verbatim
6493 #. type: verbatim
6494 #: ../src/guestfs-actions.pod:108
6495 #, no-wrap
6496 msgid ""
6497 " int\n"
6498 " guestfs_add_domain_argv (guestfs_h *g,\n"
6499 "                          const char *dom,\n"
6500 "                          const struct guestfs_add_domain_argv *optargs);\n"
6501 "\n"
6502 msgstr ""
6503
6504 # type: textblock
6505 #. type: textblock
6506 #: ../src/guestfs-actions.pod:113
6507 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6508 msgstr ""
6509
6510 # type: =head2
6511 #. type: =head2
6512 #: ../src/guestfs-actions.pod:117
6513 msgid "guestfs_add_drive"
6514 msgstr ""
6515
6516 # type: verbatim
6517 #. type: verbatim
6518 #: ../src/guestfs-actions.pod:119
6519 #, no-wrap
6520 msgid ""
6521 " int\n"
6522 " guestfs_add_drive (guestfs_h *g,\n"
6523 "                    const char *filename);\n"
6524 "\n"
6525 msgstr ""
6526
6527 # type: textblock
6528 #. type: textblock
6529 #: ../src/guestfs-actions.pod:123
6530 msgid ""
6531 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6532 "optional parameters, so the disk is added writable, with the format being "
6533 "detected automatically."
6534 msgstr ""
6535
6536 # type: textblock
6537 #. type: textblock
6538 #: ../src/guestfs-actions.pod:127
6539 msgid ""
6540 "Automatic detection of the format opens you up to a potential security hole "
6541 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6542 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6543 "you should think about replacing calls to this function with calls to "
6544 "C<guestfs_add_drive_opts>, and specifying the format."
6545 msgstr ""
6546
6547 # type: =head2
6548 #. type: =head2
6549 #: ../src/guestfs-actions.pod:138
6550 msgid "guestfs_add_drive_opts"
6551 msgstr ""
6552
6553 # type: verbatim
6554 #. type: verbatim
6555 #: ../src/guestfs-actions.pod:140
6556 #, no-wrap
6557 msgid ""
6558 " int\n"
6559 " guestfs_add_drive_opts (guestfs_h *g,\n"
6560 "                         const char *filename,\n"
6561 "                         ...);\n"
6562 "\n"
6563 msgstr ""
6564
6565 # type: verbatim
6566 #. type: verbatim
6567 #: ../src/guestfs-actions.pod:150
6568 #, no-wrap
6569 msgid ""
6570 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6571 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6572 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6573 "\n"
6574 msgstr ""
6575
6576 # type: textblock
6577 #. type: textblock
6578 #: ../src/guestfs-actions.pod:154 ../fish/guestfish-actions.pod:97
6579 msgid ""
6580 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6581 "The first time you call this function, the disk appears as C</dev/sda>, the "
6582 "second time as C</dev/sdb>, and so on."
6583 msgstr ""
6584
6585 # type: textblock
6586 #. type: textblock
6587 #: ../src/guestfs-actions.pod:159 ../fish/guestfish-actions.pod:102
6588 msgid ""
6589 "You don't necessarily need to be root when using libguestfs.  However you "
6590 "obviously do need sufficient permissions to access the filename for whatever "
6591 "operations you want to perform (ie. read access if you just want to read the "
6592 "image or write access if you want to modify the image)."
6593 msgstr ""
6594
6595 # type: textblock
6596 #. type: textblock
6597 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:108
6598 msgid "This call checks that C<filename> exists."
6599 msgstr ""
6600
6601 # type: textblock
6602 #. type: textblock
6603 #: ../src/guestfs-actions.pod:167 ../src/guestfs-actions.pod:4361
6604 #: ../fish/guestfish-actions.pod:110 ../fish/guestfish-actions.pod:2949
6605 msgid "The optional arguments are:"
6606 msgstr ""
6607
6608 # type: =item
6609 #. type: =item
6610 #: ../src/guestfs-actions.pod:171 ../fish/guestfish-actions.pod:114
6611 msgid "C<readonly>"
6612 msgstr ""
6613
6614 # type: textblock
6615 #. type: textblock
6616 #: ../src/guestfs-actions.pod:173 ../fish/guestfish-actions.pod:116
6617 msgid ""
6618 "If true then the image is treated as read-only.  Writes are still allowed, "
6619 "but they are stored in a temporary snapshot overlay which is discarded at "
6620 "the end.  The disk that you add is not modified."
6621 msgstr ""
6622
6623 # type: =item
6624 #. type: =item
6625 #: ../src/guestfs-actions.pod:177 ../fish/guestfish-actions.pod:120
6626 msgid "C<format>"
6627 msgstr ""
6628
6629 # type: textblock
6630 #. type: textblock
6631 #: ../src/guestfs-actions.pod:179
6632 msgid ""
6633 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6634 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6635 "Possible formats include C<raw> and C<qcow2>."
6636 msgstr ""
6637
6638 # type: textblock
6639 #. type: textblock
6640 #: ../src/guestfs-actions.pod:183 ../fish/guestfish-actions.pod:126
6641 msgid ""
6642 "Automatic detection of the format opens you up to a potential security hole "
6643 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6644 "RHBZ#642934.  Specifying the format closes this security hole."
6645 msgstr ""
6646
6647 # type: =item
6648 #. type: =item
6649 #: ../src/guestfs-actions.pod:188 ../fish/guestfish-actions.pod:131
6650 msgid "C<iface>"
6651 msgstr ""
6652
6653 # type: textblock
6654 #. type: textblock
6655 #: ../src/guestfs-actions.pod:190
6656 msgid ""
6657 "This rarely-used option lets you emulate the behaviour of the deprecated "
6658 "C<guestfs_add_drive_with_if> call (q.v.)"
6659 msgstr ""
6660
6661 # type: textblock
6662 #. type: textblock
6663 #: ../src/guestfs-actions.pod:197
6664 msgid "(Added in 1.5.23)"
6665 msgstr ""
6666
6667 # type: =head2
6668 #. type: =head2
6669 #: ../src/guestfs-actions.pod:199
6670 msgid "guestfs_add_drive_opts_va"
6671 msgstr ""
6672
6673 # type: verbatim
6674 #. type: verbatim
6675 #: ../src/guestfs-actions.pod:201
6676 #, no-wrap
6677 msgid ""
6678 " int\n"
6679 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6680 "                            const char *filename,\n"
6681 "                            va_list args);\n"
6682 "\n"
6683 msgstr ""
6684
6685 # type: textblock
6686 #. type: textblock
6687 #: ../src/guestfs-actions.pod:206
6688 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6689 msgstr ""
6690
6691 # type: =head2
6692 #. type: =head2
6693 #: ../src/guestfs-actions.pod:210
6694 msgid "guestfs_add_drive_opts_argv"
6695 msgstr ""
6696
6697 # type: verbatim
6698 #. type: verbatim
6699 #: ../src/guestfs-actions.pod:212
6700 #, no-wrap
6701 msgid ""
6702 " int\n"
6703 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6704 "                              const char *filename,\n"
6705 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6706 "\n"
6707 msgstr ""
6708
6709 # type: textblock
6710 #. type: textblock
6711 #: ../src/guestfs-actions.pod:217
6712 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6713 msgstr ""
6714
6715 # type: =head2
6716 #. type: =head2
6717 #: ../src/guestfs-actions.pod:221
6718 msgid "guestfs_add_drive_ro"
6719 msgstr ""
6720
6721 # type: verbatim
6722 #. type: verbatim
6723 #: ../src/guestfs-actions.pod:223
6724 #, no-wrap
6725 msgid ""
6726 " int\n"
6727 " guestfs_add_drive_ro (guestfs_h *g,\n"
6728 "                       const char *filename);\n"
6729 "\n"
6730 msgstr ""
6731
6732 # type: textblock
6733 #. type: textblock
6734 #: ../src/guestfs-actions.pod:227
6735 msgid ""
6736 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6737 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6738 "disk is added read-only, with the format being detected automatically."
6739 msgstr ""
6740
6741 # type: textblock
6742 #. type: textblock
6743 #: ../src/guestfs-actions.pod:234
6744 msgid "(Added in 1.0.38)"
6745 msgstr ""
6746
6747 # type: =head2
6748 #. type: =head2
6749 #: ../src/guestfs-actions.pod:236
6750 msgid "guestfs_add_drive_ro_with_if"
6751 msgstr ""
6752
6753 # type: verbatim
6754 #. type: verbatim
6755 #: ../src/guestfs-actions.pod:238
6756 #, no-wrap
6757 msgid ""
6758 " int\n"
6759 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6760 "                               const char *filename,\n"
6761 "                               const char *iface);\n"
6762 "\n"
6763 msgstr ""
6764
6765 # type: textblock
6766 #. type: textblock
6767 #: ../src/guestfs-actions.pod:243
6768 msgid ""
6769 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6770 "QEMU interface emulation to use at run time."
6771 msgstr ""
6772
6773 # type: textblock
6774 #. type: textblock
6775 #: ../src/guestfs-actions.pod:255 ../src/guestfs-actions.pod:276
6776 #: ../src/guestfs-actions.pod:2351
6777 msgid "(Added in 1.0.84)"
6778 msgstr ""
6779
6780 # type: =head2
6781 #. type: =head2
6782 #: ../src/guestfs-actions.pod:257
6783 msgid "guestfs_add_drive_with_if"
6784 msgstr ""
6785
6786 # type: verbatim
6787 #. type: verbatim
6788 #: ../src/guestfs-actions.pod:259
6789 #, no-wrap
6790 msgid ""
6791 " int\n"
6792 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6793 "                            const char *filename,\n"
6794 "                            const char *iface);\n"
6795 "\n"
6796 msgstr ""
6797
6798 # type: textblock
6799 #. type: textblock
6800 #: ../src/guestfs-actions.pod:264
6801 msgid ""
6802 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6803 "QEMU interface emulation to use at run time."
6804 msgstr ""
6805
6806 # type: =head2
6807 #. type: =head2
6808 #: ../src/guestfs-actions.pod:278
6809 msgid "guestfs_aug_clear"
6810 msgstr ""
6811
6812 # type: verbatim
6813 #. type: verbatim
6814 #: ../src/guestfs-actions.pod:280
6815 #, no-wrap
6816 msgid ""
6817 " int\n"
6818 " guestfs_aug_clear (guestfs_h *g,\n"
6819 "                    const char *augpath);\n"
6820 "\n"
6821 msgstr ""
6822
6823 # type: textblock
6824 #. type: textblock
6825 #: ../src/guestfs-actions.pod:284 ../fish/guestfish-actions.pod:183
6826 msgid ""
6827 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6828 "L<augtool(1)> C<clear> command."
6829 msgstr ""
6830
6831 # type: textblock
6832 #. type: textblock
6833 #: ../src/guestfs-actions.pod:289 ../src/guestfs-actions.pod:2101
6834 msgid "(Added in 1.3.4)"
6835 msgstr ""
6836
6837 # type: =head2
6838 #. type: =head2
6839 #: ../src/guestfs-actions.pod:291
6840 msgid "guestfs_aug_close"
6841 msgstr ""
6842
6843 # type: verbatim
6844 #. type: verbatim
6845 #: ../src/guestfs-actions.pod:293
6846 #, no-wrap
6847 msgid ""
6848 " int\n"
6849 " guestfs_aug_close (guestfs_h *g);\n"
6850 "\n"
6851 msgstr ""
6852
6853 # type: textblock
6854 #. type: textblock
6855 #: ../src/guestfs-actions.pod:296
6856 msgid ""
6857 "Close the current Augeas handle and free up any resources used by it.  After "
6858 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6859 "any other Augeas functions."
6860 msgstr ""
6861
6862 # type: textblock
6863 #. type: textblock
6864 #: ../src/guestfs-actions.pod:303 ../src/guestfs-actions.pod:328
6865 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
6866 #: ../src/guestfs-actions.pod:418 ../src/guestfs-actions.pod:438
6867 #: ../src/guestfs-actions.pod:452 ../src/guestfs-actions.pod:483
6868 #: ../src/guestfs-actions.pod:497 ../src/guestfs-actions.pod:511
6869 #: ../src/guestfs-actions.pod:525 ../src/guestfs-actions.pod:543
6870 #: ../src/guestfs-actions.pod:5387
6871 msgid "(Added in 0.7)"
6872 msgstr ""
6873
6874 # type: =head2
6875 #. type: =head2
6876 #: ../src/guestfs-actions.pod:305
6877 msgid "guestfs_aug_defnode"
6878 msgstr ""
6879
6880 # type: verbatim
6881 #. type: verbatim
6882 #: ../src/guestfs-actions.pod:307
6883 #, no-wrap
6884 msgid ""
6885 " struct guestfs_int_bool *\n"
6886 " guestfs_aug_defnode (guestfs_h *g,\n"
6887 "                      const char *name,\n"
6888 "                      const char *expr,\n"
6889 "                      const char *val);\n"
6890 "\n"
6891 msgstr ""
6892
6893 # type: textblock
6894 #. type: textblock
6895 #: ../src/guestfs-actions.pod:313 ../fish/guestfish-actions.pod:199
6896 msgid ""
6897 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6898 msgstr ""
6899
6900 # type: textblock
6901 #. type: textblock
6902 #: ../src/guestfs-actions.pod:316
6903 msgid ""
6904 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6905 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6906 "containing that single node."
6907 msgstr ""
6908
6909 # type: textblock
6910 #. type: textblock
6911 #: ../src/guestfs-actions.pod:320 ../fish/guestfish-actions.pod:206
6912 msgid ""
6913 "On success this returns a pair containing the number of nodes in the "
6914 "nodeset, and a boolean flag if a node was created."
6915 msgstr ""
6916
6917 # type: textblock
6918 #. type: textblock
6919 #: ../src/guestfs-actions.pod:324
6920 msgid ""
6921 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6922 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6923 msgstr ""
6924
6925 # type: =head2
6926 #. type: =head2
6927 #: ../src/guestfs-actions.pod:330
6928 msgid "guestfs_aug_defvar"
6929 msgstr ""
6930
6931 # type: verbatim
6932 #. type: verbatim
6933 #: ../src/guestfs-actions.pod:332
6934 #, no-wrap
6935 msgid ""
6936 " int\n"
6937 " guestfs_aug_defvar (guestfs_h *g,\n"
6938 "                     const char *name,\n"
6939 "                     const char *expr);\n"
6940 "\n"
6941 msgstr ""
6942
6943 # type: textblock
6944 #. type: textblock
6945 #: ../src/guestfs-actions.pod:337 ../fish/guestfish-actions.pod:214
6946 msgid ""
6947 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6948 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6949 msgstr ""
6950
6951 # type: textblock
6952 #. type: textblock
6953 #: ../src/guestfs-actions.pod:341 ../fish/guestfish-actions.pod:218
6954 msgid ""
6955 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6956 "evaluates to something which is not a nodeset."
6957 msgstr ""
6958
6959 # type: =head2
6960 #. type: =head2
6961 #: ../src/guestfs-actions.pod:348
6962 msgid "guestfs_aug_get"
6963 msgstr ""
6964
6965 # type: verbatim
6966 #. type: verbatim
6967 #: ../src/guestfs-actions.pod:350
6968 #, no-wrap
6969 msgid ""
6970 " char *\n"
6971 " guestfs_aug_get (guestfs_h *g,\n"
6972 "                  const char *augpath);\n"
6973 "\n"
6974 msgstr ""
6975
6976 # type: textblock
6977 #. type: textblock
6978 #: ../src/guestfs-actions.pod:354 ../fish/guestfish-actions.pod:225
6979 msgid ""
6980 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6981 "node, the C<value> is returned."
6982 msgstr ""
6983
6984 # type: textblock
6985 #. type: textblock
6986 #: ../src/guestfs-actions.pod:357 ../src/guestfs-actions.pod:857
6987 #: ../src/guestfs-actions.pod:875 ../src/guestfs-actions.pod:935
6988 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1054
6989 #: ../src/guestfs-actions.pod:1184 ../src/guestfs-actions.pod:1201
6990 #: ../src/guestfs-actions.pod:1220 ../src/guestfs-actions.pod:1349
6991 #: ../src/guestfs-actions.pod:1540 ../src/guestfs-actions.pod:1652
6992 #: ../src/guestfs-actions.pod:1815 ../src/guestfs-actions.pod:1832
6993 #: ../src/guestfs-actions.pod:1899 ../src/guestfs-actions.pod:1933
6994 #: ../src/guestfs-actions.pod:1954 ../src/guestfs-actions.pod:2124
6995 #: ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2523
6996 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2671
6997 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2805
6998 #: ../src/guestfs-actions.pod:2836 ../src/guestfs-actions.pod:2860
6999 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:2957
7000 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3547
7001 #: ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:4067
7002 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4922
7003 #: ../src/guestfs-actions.pod:5115 ../src/guestfs-actions.pod:5285
7004 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5512
7005 #: ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6140
7006 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6181
7007 #: ../src/guestfs-actions.pod:6855 ../src/guestfs-actions.pod:6874
7008 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:7072
7009 #: ../src/guestfs-actions.pod:7344
7010 msgid ""
7011 "This function returns a string, or NULL on error.  I<The caller must free "
7012 "the returned string after use>."
7013 msgstr ""
7014
7015 # type: =head2
7016 #. type: =head2
7017 #: ../src/guestfs-actions.pod:362
7018 msgid "guestfs_aug_init"
7019 msgstr ""
7020
7021 # type: verbatim
7022 #. type: verbatim
7023 #: ../src/guestfs-actions.pod:364
7024 #, no-wrap
7025 msgid ""
7026 " int\n"
7027 " guestfs_aug_init (guestfs_h *g,\n"
7028 "                   const char *root,\n"
7029 "                   int flags);\n"
7030 "\n"
7031 msgstr ""
7032
7033 # type: textblock
7034 #. type: textblock
7035 #: ../src/guestfs-actions.pod:369 ../fish/guestfish-actions.pod:232
7036 msgid ""
7037 "Create a new Augeas handle for editing configuration files.  If there was "
7038 "any previous Augeas handle associated with this guestfs session, then it is "
7039 "closed."
7040 msgstr ""
7041
7042 # type: textblock
7043 #. type: textblock
7044 #: ../src/guestfs-actions.pod:373
7045 msgid "You must call this before using any other C<guestfs_aug_*> commands."
7046 msgstr ""
7047
7048 # type: textblock
7049 #. type: textblock
7050 #: ../src/guestfs-actions.pod:376 ../fish/guestfish-actions.pod:239
7051 msgid ""
7052 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7053 msgstr ""
7054
7055 # type: textblock
7056 #. type: textblock
7057 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:242
7058 msgid ""
7059 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7060 "logical I<or> of the following integers:"
7061 msgstr ""
7062
7063 # type: =item
7064 #. type: =item
7065 #: ../src/guestfs-actions.pod:385 ../fish/guestfish-actions.pod:248
7066 msgid "C<AUG_SAVE_BACKUP> = 1"
7067 msgstr ""
7068
7069 # type: textblock
7070 #. type: textblock
7071 #: ../src/guestfs-actions.pod:387 ../fish/guestfish-actions.pod:250
7072 msgid "Keep the original file with a C<.augsave> extension."
7073 msgstr ""
7074
7075 # type: =item
7076 #. type: =item
7077 #: ../src/guestfs-actions.pod:389 ../fish/guestfish-actions.pod:252
7078 msgid "C<AUG_SAVE_NEWFILE> = 2"
7079 msgstr ""
7080
7081 # type: textblock
7082 #. type: textblock
7083 #: ../src/guestfs-actions.pod:391 ../fish/guestfish-actions.pod:254
7084 msgid ""
7085 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7086 "original.  Overrides C<AUG_SAVE_BACKUP>."
7087 msgstr ""
7088
7089 # type: =item
7090 #. type: =item
7091 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:257
7092 msgid "C<AUG_TYPE_CHECK> = 4"
7093 msgstr ""
7094
7095 # type: textblock
7096 #. type: textblock
7097 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:259
7098 msgid "Typecheck lenses (can be expensive)."
7099 msgstr ""
7100
7101 # type: =item
7102 #. type: =item
7103 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:261
7104 msgid "C<AUG_NO_STDINC> = 8"
7105 msgstr ""
7106
7107 # type: textblock
7108 #. type: textblock
7109 #: ../src/guestfs-actions.pod:400 ../fish/guestfish-actions.pod:263
7110 msgid "Do not use standard load path for modules."
7111 msgstr ""
7112
7113 # type: =item
7114 #. type: =item
7115 #: ../src/guestfs-actions.pod:402 ../fish/guestfish-actions.pod:265
7116 msgid "C<AUG_SAVE_NOOP> = 16"
7117 msgstr ""
7118
7119 # type: textblock
7120 #. type: textblock
7121 #: ../src/guestfs-actions.pod:404 ../fish/guestfish-actions.pod:267
7122 msgid "Make save a no-op, just record what would have been changed."
7123 msgstr ""
7124
7125 # type: =item
7126 #. type: =item
7127 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:269
7128 msgid "C<AUG_NO_LOAD> = 32"
7129 msgstr ""
7130
7131 # type: textblock
7132 #. type: textblock
7133 #: ../src/guestfs-actions.pod:408
7134 msgid "Do not load the tree in C<guestfs_aug_init>."
7135 msgstr ""
7136
7137 # type: textblock
7138 #. type: textblock
7139 #: ../src/guestfs-actions.pod:412
7140 msgid "To close the handle, you can call C<guestfs_aug_close>."
7141 msgstr ""
7142
7143 # type: textblock
7144 #. type: textblock
7145 #: ../src/guestfs-actions.pod:414 ../fish/guestfish-actions.pod:277
7146 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7147 msgstr ""
7148
7149 # type: =head2
7150 #. type: =head2
7151 #: ../src/guestfs-actions.pod:420
7152 msgid "guestfs_aug_insert"
7153 msgstr ""
7154
7155 # type: verbatim
7156 #. type: verbatim
7157 #: ../src/guestfs-actions.pod:422
7158 #, no-wrap
7159 msgid ""
7160 " int\n"
7161 " guestfs_aug_insert (guestfs_h *g,\n"
7162 "                     const char *augpath,\n"
7163 "                     const char *label,\n"
7164 "                     int before);\n"
7165 "\n"
7166 msgstr ""
7167
7168 # type: textblock
7169 #. type: textblock
7170 #: ../src/guestfs-actions.pod:428 ../fish/guestfish-actions.pod:283
7171 msgid ""
7172 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7173 "or after C<path> (depending on the boolean flag C<before>)."
7174 msgstr ""
7175
7176 # type: textblock
7177 #. type: textblock
7178 #: ../src/guestfs-actions.pod:432 ../fish/guestfish-actions.pod:287
7179 msgid ""
7180 "C<path> must match exactly one existing node in the tree, and C<label> must "
7181 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7182 msgstr ""
7183
7184 # type: =head2
7185 #. type: =head2
7186 #: ../src/guestfs-actions.pod:440
7187 msgid "guestfs_aug_load"
7188 msgstr ""
7189
7190 # type: verbatim
7191 #. type: verbatim
7192 #: ../src/guestfs-actions.pod:442
7193 #, no-wrap
7194 msgid ""
7195 " int\n"
7196 " guestfs_aug_load (guestfs_h *g);\n"
7197 "\n"
7198 msgstr ""
7199
7200 # type: textblock
7201 #. type: textblock
7202 #: ../src/guestfs-actions.pod:445 ../fish/guestfish-actions.pod:295
7203 msgid "Load files into the tree."
7204 msgstr ""
7205
7206 # type: textblock
7207 #. type: textblock
7208 #: ../src/guestfs-actions.pod:447 ../fish/guestfish-actions.pod:297
7209 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7210 msgstr ""
7211
7212 # type: =head2
7213 #. type: =head2
7214 #: ../src/guestfs-actions.pod:454
7215 msgid "guestfs_aug_ls"
7216 msgstr ""
7217
7218 # type: verbatim
7219 #. type: verbatim
7220 #: ../src/guestfs-actions.pod:456
7221 #, no-wrap
7222 msgid ""
7223 " char **\n"
7224 " guestfs_aug_ls (guestfs_h *g,\n"
7225 "                 const char *augpath);\n"
7226 "\n"
7227 msgstr ""
7228
7229 # type: textblock
7230 #. type: textblock
7231 #: ../src/guestfs-actions.pod:460
7232 msgid ""
7233 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
7234 "sorting the resulting nodes into alphabetical order."
7235 msgstr ""
7236
7237 # type: textblock
7238 #. type: textblock
7239 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:479
7240 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:1073
7241 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1383
7242 #: ../src/guestfs-actions.pod:1486 ../src/guestfs-actions.pod:1505
7243 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:2196
7244 #: ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:2231
7245 #: ../src/guestfs-actions.pod:2274 ../src/guestfs-actions.pod:2298
7246 #: ../src/guestfs-actions.pod:2369 ../src/guestfs-actions.pod:2418
7247 #: ../src/guestfs-actions.pod:2629 ../src/guestfs-actions.pod:2914
7248 #: ../src/guestfs-actions.pod:3182 ../src/guestfs-actions.pod:3467
7249 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3634
7250 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4737
7251 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5383
7252 #: ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:6197
7253 #: ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6313
7254 #: ../src/guestfs-actions.pod:6459 ../src/guestfs-actions.pod:6483
7255 #: ../src/guestfs-actions.pod:6965 ../src/guestfs-actions.pod:6985
7256 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7197
7257 #: ../src/guestfs-actions.pod:7216 ../src/guestfs-actions.pod:7301
7258 #: ../src/guestfs-actions.pod:7320 ../src/guestfs-actions.pod:7366
7259 #: ../src/guestfs-actions.pod:7385
7260 msgid ""
7261 "This function returns a NULL-terminated array of strings (like L<environ(3)"
7262 ">), or NULL if there was an error.  I<The caller must free the strings and "
7263 "the array after use>."
7264 msgstr ""
7265
7266 # type: textblock
7267 #. type: textblock
7268 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:998
7269 #: ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1421
7270 #: ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3291
7271 #: ../src/guestfs-actions.pod:3880 ../src/guestfs-actions.pod:3930
7272 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:4150
7273 #: ../src/guestfs-actions.pod:4313 ../src/guestfs-actions.pod:4741
7274 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5593
7275 #: ../src/guestfs-actions.pod:5607 ../src/guestfs-actions.pod:5619
7276 #: ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6697
7277 #: ../src/guestfs-actions.pod:6710 ../src/guestfs-actions.pod:6949
7278 #: ../src/guestfs-actions.pod:7185
7279 msgid "(Added in 0.8)"
7280 msgstr ""
7281
7282 # type: =head2
7283 #. type: =head2
7284 #: ../src/guestfs-actions.pod:469
7285 msgid "guestfs_aug_match"
7286 msgstr ""
7287
7288 # type: verbatim
7289 #. type: verbatim
7290 #: ../src/guestfs-actions.pod:471
7291 #, no-wrap
7292 msgid ""
7293 " char **\n"
7294 " guestfs_aug_match (guestfs_h *g,\n"
7295 "                    const char *augpath);\n"
7296 "\n"
7297 msgstr ""
7298
7299 # type: textblock
7300 #. type: textblock
7301 #: ../src/guestfs-actions.pod:475 ../fish/guestfish-actions.pod:311
7302 msgid ""
7303 "Returns a list of paths which match the path expression C<path>.  The "
7304 "returned paths are sufficiently qualified so that they match exactly one "
7305 "node in the current tree."
7306 msgstr ""
7307
7308 # type: =head2
7309 #. type: =head2
7310 #: ../src/guestfs-actions.pod:485
7311 msgid "guestfs_aug_mv"
7312 msgstr ""
7313
7314 # type: verbatim
7315 #. type: verbatim
7316 #: ../src/guestfs-actions.pod:487
7317 #, no-wrap
7318 msgid ""
7319 " int\n"
7320 " guestfs_aug_mv (guestfs_h *g,\n"
7321 "                 const char *src,\n"
7322 "                 const char *dest);\n"
7323 "\n"
7324 msgstr ""
7325
7326 # type: textblock
7327 #. type: textblock
7328 #: ../src/guestfs-actions.pod:492 ../fish/guestfish-actions.pod:319
7329 msgid ""
7330 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7331 "C<dest> is overwritten if it exists."
7332 msgstr ""
7333
7334 # type: =head2
7335 #. type: =head2
7336 #: ../src/guestfs-actions.pod:499
7337 msgid "guestfs_aug_rm"
7338 msgstr ""
7339
7340 # type: verbatim
7341 #. type: verbatim
7342 #: ../src/guestfs-actions.pod:501
7343 #, no-wrap
7344 msgid ""
7345 " int\n"
7346 " guestfs_aug_rm (guestfs_h *g,\n"
7347 "                 const char *augpath);\n"
7348 "\n"
7349 msgstr ""
7350
7351 # type: textblock
7352 #. type: textblock
7353 #: ../src/guestfs-actions.pod:505 ../fish/guestfish-actions.pod:326
7354 msgid "Remove C<path> and all of its children."
7355 msgstr ""
7356
7357 # type: textblock
7358 #. type: textblock
7359 #: ../src/guestfs-actions.pod:507 ../fish/guestfish-actions.pod:328
7360 msgid "On success this returns the number of entries which were removed."
7361 msgstr ""
7362
7363 # type: =head2
7364 #. type: =head2
7365 #: ../src/guestfs-actions.pod:513
7366 msgid "guestfs_aug_save"
7367 msgstr ""
7368
7369 # type: verbatim
7370 #. type: verbatim
7371 #: ../src/guestfs-actions.pod:515
7372 #, no-wrap
7373 msgid ""
7374 " int\n"
7375 " guestfs_aug_save (guestfs_h *g);\n"
7376 "\n"
7377 msgstr ""
7378
7379 # type: textblock
7380 #. type: textblock
7381 #: ../src/guestfs-actions.pod:518 ../fish/guestfish-actions.pod:334
7382 msgid "This writes all pending changes to disk."
7383 msgstr ""
7384
7385 # type: textblock
7386 #. type: textblock
7387 #: ../src/guestfs-actions.pod:520
7388 msgid ""
7389 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
7390 "are saved."
7391 msgstr ""
7392
7393 # type: =head2
7394 #. type: =head2
7395 #: ../src/guestfs-actions.pod:527
7396 msgid "guestfs_aug_set"
7397 msgstr ""
7398
7399 # type: verbatim
7400 #. type: verbatim
7401 #: ../src/guestfs-actions.pod:529
7402 #, no-wrap
7403 msgid ""
7404 " int\n"
7405 " guestfs_aug_set (guestfs_h *g,\n"
7406 "                  const char *augpath,\n"
7407 "                  const char *val);\n"
7408 "\n"
7409 msgstr ""
7410
7411 # type: textblock
7412 #. type: textblock
7413 #: ../src/guestfs-actions.pod:534 ../fish/guestfish-actions.pod:343
7414 msgid "Set the value associated with C<path> to C<val>."
7415 msgstr ""
7416
7417 # type: textblock
7418 #. type: textblock
7419 #: ../src/guestfs-actions.pod:536
7420 msgid ""
7421 "In the Augeas API, it is possible to clear a node by setting the value to "
7422 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7423 "this call.  Instead you must use the C<guestfs_aug_clear> call."
7424 msgstr ""
7425
7426 # type: =head2
7427 #. type: =head2
7428 #: ../src/guestfs-actions.pod:545
7429 msgid "guestfs_available"
7430 msgstr ""
7431
7432 # type: verbatim
7433 #. type: verbatim
7434 #: ../src/guestfs-actions.pod:547
7435 #, no-wrap
7436 msgid ""
7437 " int\n"
7438 " guestfs_available (guestfs_h *g,\n"
7439 "                    char *const *groups);\n"
7440 "\n"
7441 msgstr ""
7442
7443 # type: textblock
7444 #. type: textblock
7445 #: ../src/guestfs-actions.pod:551 ../fish/guestfish-actions.pod:354
7446 msgid ""
7447 "This command is used to check the availability of some groups of "
7448 "functionality in the appliance, which not all builds of the libguestfs "
7449 "appliance will be able to provide."
7450 msgstr ""
7451
7452 # type: textblock
7453 #. type: textblock
7454 #: ../src/guestfs-actions.pod:555
7455 msgid ""
7456 "The libguestfs groups, and the functions that those groups correspond to, "
7457 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7458 "runtime by calling C<guestfs_available_all_groups>."
7459 msgstr ""
7460
7461 # type: textblock
7462 #. type: textblock
7463 #: ../src/guestfs-actions.pod:560 ../fish/guestfish-actions.pod:363
7464 msgid ""
7465 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7466 "\"]> would check for the availability of the Linux inotify functions and "
7467 "Augeas (configuration file editing) functions."
7468 msgstr ""
7469
7470 # type: textblock
7471 #. type: textblock
7472 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:368
7473 msgid "The command returns no error if I<all> requested groups are available."
7474 msgstr ""
7475
7476 # type: textblock
7477 #. type: textblock
7478 #: ../src/guestfs-actions.pod:567 ../fish/guestfish-actions.pod:370
7479 msgid ""
7480 "It fails with an error if one or more of the requested groups is unavailable "
7481 "in the appliance."
7482 msgstr ""
7483
7484 # type: textblock
7485 #. type: textblock
7486 #: ../src/guestfs-actions.pod:570 ../fish/guestfish-actions.pod:373
7487 msgid ""
7488 "If an unknown group name is included in the list of groups then an error is "
7489 "always returned."
7490 msgstr ""
7491
7492 # type: textblock
7493 #. type: textblock
7494 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:376
7495 msgid "I<Notes:>"
7496 msgstr ""
7497
7498 # type: textblock
7499 #. type: textblock
7500 #: ../src/guestfs-actions.pod:579
7501 msgid "You must call C<guestfs_launch> before calling this function."
7502 msgstr ""
7503
7504 # type: textblock
7505 #. type: textblock
7506 #: ../src/guestfs-actions.pod:581 ../fish/guestfish-actions.pod:384
7507 msgid ""
7508 "The reason is because we don't know what groups are supported by the "
7509 "appliance/daemon until it is running and can be queried."
7510 msgstr ""
7511
7512 # type: textblock
7513 #. type: textblock
7514 #: ../src/guestfs-actions.pod:587 ../fish/guestfish-actions.pod:390
7515 msgid ""
7516 "If a group of functions is available, this does not necessarily mean that "
7517 "they will work.  You still have to check for errors when calling individual "
7518 "API functions even if they are available."
7519 msgstr ""
7520
7521 # type: textblock
7522 #. type: textblock
7523 #: ../src/guestfs-actions.pod:594 ../fish/guestfish-actions.pod:397
7524 msgid ""
7525 "It is usually the job of distro packagers to build complete functionality "
7526 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7527 "with all requirements satisfied, will support everything."
7528 msgstr ""
7529
7530 # type: textblock
7531 #. type: textblock
7532 #: ../src/guestfs-actions.pod:601
7533 msgid ""
7534 "This call was added in version C<1.0.80>.  In previous versions of "
7535 "libguestfs all you could do would be to speculatively execute a command to "
7536 "find out if the daemon implemented it.  See also C<guestfs_version>."
7537 msgstr ""
7538
7539 # type: textblock
7540 #. type: textblock
7541 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1171
7542 msgid "(Added in 1.0.80)"
7543 msgstr ""
7544
7545 # type: =head2
7546 #. type: =head2
7547 #: ../src/guestfs-actions.pod:612
7548 msgid "guestfs_available_all_groups"
7549 msgstr ""
7550
7551 # type: verbatim
7552 #. type: verbatim
7553 #: ../src/guestfs-actions.pod:614
7554 #, no-wrap
7555 msgid ""
7556 " char **\n"
7557 " guestfs_available_all_groups (guestfs_h *g);\n"
7558 "\n"
7559 msgstr ""
7560
7561 # type: textblock
7562 #. type: textblock
7563 #: ../src/guestfs-actions.pod:617
7564 msgid ""
7565 "This command returns a list of all optional groups that this daemon knows "
7566 "about.  Note this returns both supported and unsupported groups.  To find "
7567 "out which ones the daemon can actually support you have to call "
7568 "C<guestfs_available> on each member of the returned list."
7569 msgstr ""
7570
7571 # type: textblock
7572 #. type: textblock
7573 #: ../src/guestfs-actions.pod:623
7574 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7575 msgstr ""
7576
7577 # type: textblock
7578 #. type: textblock
7579 #: ../src/guestfs-actions.pod:629
7580 msgid "(Added in 1.3.15)"
7581 msgstr ""
7582
7583 # type: =head2
7584 #. type: =head2
7585 #: ../src/guestfs-actions.pod:631
7586 msgid "guestfs_base64_in"
7587 msgstr ""
7588
7589 # type: verbatim
7590 #. type: verbatim
7591 #: ../src/guestfs-actions.pod:633
7592 #, no-wrap
7593 msgid ""
7594 " int\n"
7595 " guestfs_base64_in (guestfs_h *g,\n"
7596 "                    const char *base64file,\n"
7597 "                    const char *filename);\n"
7598 "\n"
7599 msgstr ""
7600
7601 # type: textblock
7602 #. type: textblock
7603 #: ../src/guestfs-actions.pod:638 ../fish/guestfish-actions.pod:427
7604 msgid ""
7605 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7606 msgstr ""
7607
7608 # type: textblock
7609 #. type: textblock
7610 #: ../src/guestfs-actions.pod:643 ../src/guestfs-actions.pod:657
7611 msgid "(Added in 1.3.5)"
7612 msgstr ""
7613
7614 # type: =head2
7615 #. type: =head2
7616 #: ../src/guestfs-actions.pod:645
7617 msgid "guestfs_base64_out"
7618 msgstr ""
7619
7620 # type: verbatim
7621 #. type: verbatim
7622 #: ../src/guestfs-actions.pod:647
7623 #, no-wrap
7624 msgid ""
7625 " int\n"
7626 " guestfs_base64_out (guestfs_h *g,\n"
7627 "                     const char *filename,\n"
7628 "                     const char *base64file);\n"
7629 "\n"
7630 msgstr ""
7631
7632 # type: textblock
7633 #. type: textblock
7634 #: ../src/guestfs-actions.pod:652 ../fish/guestfish-actions.pod:436
7635 msgid ""
7636 "This command downloads the contents of C<filename>, writing it out to local "
7637 "file C<base64file> encoded as base64."
7638 msgstr ""
7639
7640 # type: =head2
7641 #. type: =head2
7642 #: ../src/guestfs-actions.pod:659
7643 msgid "guestfs_blockdev_flushbufs"
7644 msgstr ""
7645
7646 # type: verbatim
7647 #. type: verbatim
7648 #: ../src/guestfs-actions.pod:661
7649 #, no-wrap
7650 msgid ""
7651 " int\n"
7652 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7653 "                             const char *device);\n"
7654 "\n"
7655 msgstr ""
7656
7657 # type: textblock
7658 #. type: textblock
7659 #: ../src/guestfs-actions.pod:665 ../fish/guestfish-actions.pod:445
7660 msgid ""
7661 "This tells the kernel to flush internal buffers associated with C<device>."
7662 msgstr ""
7663
7664 # type: textblock
7665 #. type: textblock
7666 #: ../src/guestfs-actions.pod:668 ../src/guestfs-actions.pod:685
7667 #: ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:716
7668 #: ../src/guestfs-actions.pod:734 ../src/guestfs-actions.pod:753
7669 #: ../src/guestfs-actions.pod:767 ../src/guestfs-actions.pod:785
7670 #: ../src/guestfs-actions.pod:799 ../src/guestfs-actions.pod:813
7671 #: ../fish/guestfish-actions.pod:448 ../fish/guestfish-actions.pod:459
7672 #: ../fish/guestfish-actions.pod:468 ../fish/guestfish-actions.pod:478
7673 #: ../fish/guestfish-actions.pod:490 ../fish/guestfish-actions.pod:503
7674 #: ../fish/guestfish-actions.pod:511 ../fish/guestfish-actions.pod:522
7675 #: ../fish/guestfish-actions.pod:530 ../fish/guestfish-actions.pod:538
7676 msgid "This uses the L<blockdev(8)> command."
7677 msgstr ""
7678
7679 # type: textblock
7680 #. type: textblock
7681 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:689
7682 #: ../src/guestfs-actions.pod:704 ../src/guestfs-actions.pod:720
7683 #: ../src/guestfs-actions.pod:738 ../src/guestfs-actions.pod:757
7684 #: ../src/guestfs-actions.pod:771 ../src/guestfs-actions.pod:789
7685 #: ../src/guestfs-actions.pod:803 ../src/guestfs-actions.pod:817
7686 msgid "(Added in 0.9.3)"
7687 msgstr ""
7688
7689 # type: =head2
7690 #. type: =head2
7691 #: ../src/guestfs-actions.pod:674
7692 msgid "guestfs_blockdev_getbsz"
7693 msgstr ""
7694
7695 # type: verbatim
7696 #. type: verbatim
7697 #: ../src/guestfs-actions.pod:676
7698 #, no-wrap
7699 msgid ""
7700 " int\n"
7701 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7702 "                          const char *device);\n"
7703 "\n"
7704 msgstr ""
7705
7706 # type: textblock
7707 #. type: textblock
7708 #: ../src/guestfs-actions.pod:680 ../fish/guestfish-actions.pod:454
7709 msgid "This returns the block size of a device."
7710 msgstr ""
7711
7712 # type: textblock
7713 #. type: textblock
7714 #: ../src/guestfs-actions.pod:682 ../src/guestfs-actions.pod:782
7715 #: ../fish/guestfish-actions.pod:456 ../fish/guestfish-actions.pod:519
7716 msgid ""
7717 "(Note this is different from both I<size in blocks> and I<filesystem block "
7718 "size>)."
7719 msgstr ""
7720
7721 # type: =head2
7722 #. type: =head2
7723 #: ../src/guestfs-actions.pod:691
7724 msgid "guestfs_blockdev_getro"
7725 msgstr ""
7726
7727 # type: verbatim
7728 #. type: verbatim
7729 #: ../src/guestfs-actions.pod:693
7730 #, no-wrap
7731 msgid ""
7732 " int\n"
7733 " guestfs_blockdev_getro (guestfs_h *g,\n"
7734 "                         const char *device);\n"
7735 "\n"
7736 msgstr ""
7737
7738 # type: textblock
7739 #. type: textblock
7740 #: ../src/guestfs-actions.pod:697 ../fish/guestfish-actions.pod:465
7741 msgid ""
7742 "Returns a boolean indicating if the block device is read-only (true if read-"
7743 "only, false if not)."
7744 msgstr ""
7745
7746 # type: textblock
7747 #. type: textblock
7748 #: ../src/guestfs-actions.pod:702 ../src/guestfs-actions.pod:1404
7749 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1909
7750 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:1992
7751 #: ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2062
7752 #: ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2110
7753 #: ../src/guestfs-actions.pod:3000 ../src/guestfs-actions.pod:3017
7754 #: ../src/guestfs-actions.pod:3036 ../src/guestfs-actions.pod:3199
7755 #: ../src/guestfs-actions.pod:3213 ../src/guestfs-actions.pod:3228
7756 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3258
7757 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3289
7758 #: ../src/guestfs-actions.pod:3303 ../src/guestfs-actions.pod:3316
7759 #: ../src/guestfs-actions.pod:3330 ../src/guestfs-actions.pod:3345
7760 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4886
7761 msgid "This function returns a C truth value on success or -1 on error."
7762 msgstr ""
7763
7764 # type: =head2
7765 #. type: =head2
7766 #: ../src/guestfs-actions.pod:706
7767 msgid "guestfs_blockdev_getsize64"
7768 msgstr ""
7769
7770 # type: verbatim
7771 #. type: verbatim
7772 #: ../src/guestfs-actions.pod:708
7773 #, no-wrap
7774 msgid ""
7775 " int64_t\n"
7776 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7777 "                             const char *device);\n"
7778 "\n"
7779 msgstr ""
7780
7781 # type: textblock
7782 #. type: textblock
7783 #: ../src/guestfs-actions.pod:712 ../fish/guestfish-actions.pod:474
7784 msgid "This returns the size of the device in bytes."
7785 msgstr ""
7786
7787 # type: textblock
7788 #. type: textblock
7789 #: ../src/guestfs-actions.pod:714
7790 msgid "See also C<guestfs_blockdev_getsz>."
7791 msgstr ""
7792
7793 # type: =head2
7794 #. type: =head2
7795 #: ../src/guestfs-actions.pod:722
7796 msgid "guestfs_blockdev_getss"
7797 msgstr ""
7798
7799 # type: verbatim
7800 #. type: verbatim
7801 #: ../src/guestfs-actions.pod:724
7802 #, no-wrap
7803 msgid ""
7804 " int\n"
7805 " guestfs_blockdev_getss (guestfs_h *g,\n"
7806 "                         const char *device);\n"
7807 "\n"
7808 msgstr ""
7809
7810 # type: textblock
7811 #. type: textblock
7812 #: ../src/guestfs-actions.pod:728 ../fish/guestfish-actions.pod:484
7813 msgid ""
7814 "This returns the size of sectors on a block device.  Usually 512, but can be "
7815 "larger for modern devices."
7816 msgstr ""
7817
7818 # type: textblock
7819 #. type: textblock
7820 #: ../src/guestfs-actions.pod:731
7821 msgid ""
7822 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7823 "that)."
7824 msgstr ""
7825
7826 # type: =head2
7827 #. type: =head2
7828 #: ../src/guestfs-actions.pod:740
7829 msgid "guestfs_blockdev_getsz"
7830 msgstr ""
7831
7832 # type: verbatim
7833 #. type: verbatim
7834 #: ../src/guestfs-actions.pod:742
7835 #, no-wrap
7836 msgid ""
7837 " int64_t\n"
7838 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7839 "                         const char *device);\n"
7840 "\n"
7841 msgstr ""
7842
7843 # type: textblock
7844 #. type: textblock
7845 #: ../src/guestfs-actions.pod:746 ../fish/guestfish-actions.pod:496
7846 msgid ""
7847 "This returns the size of the device in units of 512-byte sectors (even if "
7848 "the sectorsize isn't 512 bytes ... weird)."
7849 msgstr ""
7850
7851 # type: textblock
7852 #. type: textblock
7853 #: ../src/guestfs-actions.pod:749
7854 msgid ""
7855 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7856 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7857 msgstr ""
7858
7859 # type: =head2
7860 #. type: =head2
7861 #: ../src/guestfs-actions.pod:759
7862 msgid "guestfs_blockdev_rereadpt"
7863 msgstr ""
7864
7865 # type: verbatim
7866 #. type: verbatim
7867 #: ../src/guestfs-actions.pod:761
7868 #, no-wrap
7869 msgid ""
7870 " int\n"
7871 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7872 "                            const char *device);\n"
7873 "\n"
7874 msgstr ""
7875
7876 # type: textblock
7877 #. type: textblock
7878 #: ../src/guestfs-actions.pod:765 ../fish/guestfish-actions.pod:509
7879 msgid "Reread the partition table on C<device>."
7880 msgstr ""
7881
7882 # type: =head2
7883 #. type: =head2
7884 #: ../src/guestfs-actions.pod:773
7885 msgid "guestfs_blockdev_setbsz"
7886 msgstr ""
7887
7888 # type: verbatim
7889 #. type: verbatim
7890 #: ../src/guestfs-actions.pod:775
7891 #, no-wrap
7892 msgid ""
7893 " int\n"
7894 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7895 "                          const char *device,\n"
7896 "                          int blocksize);\n"
7897 "\n"
7898 msgstr ""
7899
7900 # type: textblock
7901 #. type: textblock
7902 #: ../src/guestfs-actions.pod:780 ../fish/guestfish-actions.pod:517
7903 msgid "This sets the block size of a device."
7904 msgstr ""
7905
7906 # type: =head2
7907 #. type: =head2
7908 #: ../src/guestfs-actions.pod:791
7909 msgid "guestfs_blockdev_setro"
7910 msgstr ""
7911
7912 # type: verbatim
7913 #. type: verbatim
7914 #: ../src/guestfs-actions.pod:793
7915 #, no-wrap
7916 msgid ""
7917 " int\n"
7918 " guestfs_blockdev_setro (guestfs_h *g,\n"
7919 "                         const char *device);\n"
7920 "\n"
7921 msgstr ""
7922
7923 # type: textblock
7924 #. type: textblock
7925 #: ../src/guestfs-actions.pod:797 ../fish/guestfish-actions.pod:528
7926 msgid "Sets the block device named C<device> to read-only."
7927 msgstr ""
7928
7929 # type: =head2
7930 #. type: =head2
7931 #: ../src/guestfs-actions.pod:805
7932 msgid "guestfs_blockdev_setrw"
7933 msgstr ""
7934
7935 # type: verbatim
7936 #. type: verbatim
7937 #: ../src/guestfs-actions.pod:807
7938 #, no-wrap
7939 msgid ""
7940 " int\n"
7941 " guestfs_blockdev_setrw (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:811 ../fish/guestfish-actions.pod:536
7949 msgid "Sets the block device named C<device> to read-write."
7950 msgstr ""
7951
7952 # type: =head2
7953 #. type: =head2
7954 #: ../src/guestfs-actions.pod:819
7955 msgid "guestfs_case_sensitive_path"
7956 msgstr ""
7957
7958 # type: verbatim
7959 #. type: verbatim
7960 #: ../src/guestfs-actions.pod:821
7961 #, no-wrap
7962 msgid ""
7963 " char *\n"
7964 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7965 "                              const char *path);\n"
7966 "\n"
7967 msgstr ""
7968
7969 # type: textblock
7970 #. type: textblock
7971 #: ../src/guestfs-actions.pod:825 ../fish/guestfish-actions.pod:544
7972 msgid ""
7973 "This can be used to resolve case insensitive paths on a filesystem which is "
7974 "case sensitive.  The use case is to resolve paths which you have read from "
7975 "Windows configuration files or the Windows Registry, to the true path."
7976 msgstr ""
7977
7978 # type: textblock
7979 #. type: textblock
7980 #: ../src/guestfs-actions.pod:830 ../fish/guestfish-actions.pod:549
7981 msgid ""
7982 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7983 "(and probably others), which is that although the underlying filesystem is "
7984 "case-insensitive, the driver exports the filesystem to Linux as case-"
7985 "sensitive."
7986 msgstr ""
7987
7988 # type: textblock
7989 #. type: textblock
7990 #: ../src/guestfs-actions.pod:835 ../fish/guestfish-actions.pod:554
7991 msgid ""
7992 "One consequence of this is that special directories such as C<c:\\windows> "
7993 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7994 "precise details of how they were created.  In Windows itself this would not "
7995 "be a problem."
7996 msgstr ""
7997
7998 # type: textblock
7999 #. type: textblock
8000 #: ../src/guestfs-actions.pod:841 ../fish/guestfish-actions.pod:560
8001 msgid ""
8002 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8003 "#posixfilenames1>"
8004 msgstr ""
8005
8006 # type: textblock
8007 #. type: textblock
8008 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:563
8009 msgid ""
8010 "This function resolves the true case of each element in the path and returns "
8011 "the case-sensitive path."
8012 msgstr ""
8013
8014 # type: textblock
8015 #. type: textblock
8016 #: ../src/guestfs-actions.pod:847
8017 msgid ""
8018 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
8019 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
8020 "how the directories were originally created under Windows)."
8021 msgstr ""
8022
8023 # type: textblock
8024 #. type: textblock
8025 #: ../src/guestfs-actions.pod:852 ../fish/guestfish-actions.pod:571
8026 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8027 msgstr ""
8028
8029 # type: textblock
8030 #. type: textblock
8031 #: ../src/guestfs-actions.pod:855
8032 msgid "See also C<guestfs_realpath>."
8033 msgstr ""
8034
8035 # type: textblock
8036 #. type: textblock
8037 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:6877
8038 msgid "(Added in 1.0.75)"
8039 msgstr ""
8040
8041 # type: =head2
8042 #. type: =head2
8043 #: ../src/guestfs-actions.pod:862
8044 msgid "guestfs_cat"
8045 msgstr ""
8046
8047 # type: verbatim
8048 #. type: verbatim
8049 #: ../src/guestfs-actions.pod:864
8050 #, no-wrap
8051 msgid ""
8052 " char *\n"
8053 " guestfs_cat (guestfs_h *g,\n"
8054 "              const char *path);\n"
8055 "\n"
8056 msgstr ""
8057
8058 # type: textblock
8059 #. type: textblock
8060 #: ../src/guestfs-actions.pod:868 ../src/guestfs-actions.pod:5373
8061 #: ../fish/guestfish-actions.pod:580 ../fish/guestfish-actions.pod:3597
8062 msgid "Return the contents of the file named C<path>."
8063 msgstr ""
8064
8065 # type: textblock
8066 #. type: textblock
8067 #: ../src/guestfs-actions.pod:870
8068 msgid ""
8069 "Note that this function cannot correctly handle binary files (specifically, "
8070 "files containing C<\\0> character which is treated as end of string).  For "
8071 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
8072 "functions which have a more complex interface."
8073 msgstr ""
8074
8075 # type: textblock
8076 #. type: textblock
8077 #: ../src/guestfs-actions.pod:878 ../src/guestfs-actions.pod:1057
8078 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:1368
8079 #: ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:1490
8080 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:1758
8081 #: ../src/guestfs-actions.pod:2216 ../src/guestfs-actions.pod:2235
8082 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:2302
8083 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:2348
8084 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5181
8085 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5338
8086 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:6262
8087 #: ../src/guestfs-actions.pod:6317 ../src/guestfs-actions.pod:6463
8088 #: ../src/guestfs-actions.pod:6487 ../src/guestfs-actions.pod:7149
8089 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7201
8090 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7305
8091 #: ../src/guestfs-actions.pod:7324 ../src/guestfs-actions.pod:7370
8092 #: ../src/guestfs-actions.pod:7389 ../fish/guestfish-actions.pod:587
8093 #: ../fish/guestfish-actions.pod:722 ../fish/guestfish-actions.pod:734
8094 #: ../fish/guestfish-actions.pod:910 ../fish/guestfish-actions.pod:920
8095 #: ../fish/guestfish-actions.pod:987 ../fish/guestfish-actions.pod:997
8096 #: ../fish/guestfish-actions.pod:1192 ../fish/guestfish-actions.pod:1493
8097 #: ../fish/guestfish-actions.pod:1503 ../fish/guestfish-actions.pod:1531
8098 #: ../fish/guestfish-actions.pod:1546 ../fish/guestfish-actions.pod:1556
8099 #: ../fish/guestfish-actions.pod:1575 ../fish/guestfish-actions.pod:3467
8100 #: ../fish/guestfish-actions.pod:3482 ../fish/guestfish-actions.pod:3558
8101 #: ../fish/guestfish-actions.pod:3575 ../fish/guestfish-actions.pod:3590
8102 #: ../fish/guestfish-actions.pod:4216 ../fish/guestfish-actions.pod:4262
8103 #: ../fish/guestfish-actions.pod:4347 ../fish/guestfish-actions.pod:4362
8104 #: ../fish/guestfish-actions.pod:4772 ../fish/guestfish-actions.pod:4790
8105 #: ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4817
8106 #: ../fish/guestfish-actions.pod:4865 ../fish/guestfish-actions.pod:4875
8107 #: ../fish/guestfish-actions.pod:4904 ../fish/guestfish-actions.pod:4914
8108 msgid ""
8109 "Because of the message protocol, there is a transfer limit of somewhere "
8110 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8111 msgstr ""
8112
8113 # type: textblock
8114 #. type: textblock
8115 #: ../src/guestfs-actions.pod:881 ../src/guestfs-actions.pod:3471
8116 #: ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:3550
8117 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:4043
8118 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:5261
8119 #: ../src/guestfs-actions.pod:5275 ../src/guestfs-actions.pod:7036
8120 #: ../src/guestfs-actions.pod:7050
8121 msgid "(Added in 0.4)"
8122 msgstr ""
8123
8124 # type: =head2
8125 #. type: =head2
8126 #: ../src/guestfs-actions.pod:883
8127 msgid "guestfs_checksum"
8128 msgstr ""
8129
8130 # type: verbatim
8131 #. type: verbatim
8132 #: ../src/guestfs-actions.pod:885
8133 #, no-wrap
8134 msgid ""
8135 " char *\n"
8136 " guestfs_checksum (guestfs_h *g,\n"
8137 "                   const char *csumtype,\n"
8138 "                   const char *path);\n"
8139 "\n"
8140 msgstr ""
8141
8142 # type: textblock
8143 #. type: textblock
8144 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:594
8145 msgid ""
8146 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8147 msgstr ""
8148
8149 # type: textblock
8150 #. type: textblock
8151 #: ../src/guestfs-actions.pod:893 ../fish/guestfish-actions.pod:597
8152 msgid ""
8153 "The type of checksum to compute is given by the C<csumtype> parameter which "
8154 "must have one of the following values:"
8155 msgstr ""
8156
8157 # type: =item
8158 #. type: =item
8159 #: ../src/guestfs-actions.pod:898 ../fish/guestfish-actions.pod:602
8160 msgid "C<crc>"
8161 msgstr ""
8162
8163 # type: textblock
8164 #. type: textblock
8165 #: ../src/guestfs-actions.pod:900 ../fish/guestfish-actions.pod:604
8166 msgid ""
8167 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8168 "C<cksum> command."
8169 msgstr ""
8170
8171 # type: =item
8172 #. type: =item
8173 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:607
8174 msgid "C<md5>"
8175 msgstr ""
8176
8177 # type: textblock
8178 #. type: textblock
8179 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:609
8180 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8181 msgstr ""
8182
8183 # type: =item
8184 #. type: =item
8185 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:611
8186 msgid "C<sha1>"
8187 msgstr ""
8188
8189 # type: textblock
8190 #. type: textblock
8191 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:613
8192 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8193 msgstr ""
8194
8195 # type: =item
8196 #. type: =item
8197 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:615
8198 msgid "C<sha224>"
8199 msgstr ""
8200
8201 # type: textblock
8202 #. type: textblock
8203 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:617
8204 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8205 msgstr ""
8206
8207 # type: =item
8208 #. type: =item
8209 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:619
8210 msgid "C<sha256>"
8211 msgstr ""
8212
8213 # type: textblock
8214 #. type: textblock
8215 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:621
8216 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8217 msgstr ""
8218
8219 # type: =item
8220 #. type: =item
8221 #: ../src/guestfs-actions.pod:919 ../fish/guestfish-actions.pod:623
8222 msgid "C<sha384>"
8223 msgstr ""
8224
8225 # type: textblock
8226 #. type: textblock
8227 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:625
8228 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8229 msgstr ""
8230
8231 # type: =item
8232 #. type: =item
8233 #: ../src/guestfs-actions.pod:923 ../fish/guestfish-actions.pod:627
8234 msgid "C<sha512>"
8235 msgstr ""
8236
8237 # type: textblock
8238 #. type: textblock
8239 #: ../src/guestfs-actions.pod:925 ../fish/guestfish-actions.pod:629
8240 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8241 msgstr ""
8242
8243 # type: textblock
8244 #. type: textblock
8245 #: ../src/guestfs-actions.pod:929 ../fish/guestfish-actions.pod:633
8246 msgid "The checksum is returned as a printable string."
8247 msgstr ""
8248
8249 # type: textblock
8250 #. type: textblock
8251 #: ../src/guestfs-actions.pod:931
8252 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
8253 msgstr ""
8254
8255 # type: textblock
8256 #. type: textblock
8257 #: ../src/guestfs-actions.pod:933
8258 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
8259 msgstr ""
8260
8261 # type: textblock
8262 #. type: textblock
8263 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:1246
8264 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:3215
8265 #: ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3305
8266 #: ../src/guestfs-actions.pod:3332 ../src/guestfs-actions.pod:6733
8267 msgid "(Added in 1.0.2)"
8268 msgstr ""
8269
8270 # type: =head2
8271 #. type: =head2
8272 #: ../src/guestfs-actions.pod:940
8273 msgid "guestfs_checksum_device"
8274 msgstr ""
8275
8276 # type: verbatim
8277 #. type: verbatim
8278 #: ../src/guestfs-actions.pod:942
8279 #, no-wrap
8280 msgid ""
8281 " char *\n"
8282 " guestfs_checksum_device (guestfs_h *g,\n"
8283 "                          const char *csumtype,\n"
8284 "                          const char *device);\n"
8285 "\n"
8286 msgstr ""
8287
8288 # type: textblock
8289 #. type: textblock
8290 #: ../src/guestfs-actions.pod:947
8291 msgid ""
8292 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8293 "device named C<device>.  For the types of checksums supported see the "
8294 "C<guestfs_checksum> command."
8295 msgstr ""
8296
8297 # type: textblock
8298 #. type: textblock
8299 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:4792
8300 #: ../src/guestfs-actions.pod:4851 ../src/guestfs-actions.pod:4888
8301 #: ../src/guestfs-actions.pod:4906 ../src/guestfs-actions.pod:5082
8302 #: ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6656
8303 #: ../src/guestfs-actions.pod:7062
8304 msgid "(Added in 1.3.2)"
8305 msgstr ""
8306
8307 # type: =head2
8308 #. type: =head2
8309 #: ../src/guestfs-actions.pod:956
8310 msgid "guestfs_checksums_out"
8311 msgstr ""
8312
8313 # type: verbatim
8314 #. type: verbatim
8315 #: ../src/guestfs-actions.pod:958
8316 #, no-wrap
8317 msgid ""
8318 " int\n"
8319 " guestfs_checksums_out (guestfs_h *g,\n"
8320 "                        const char *csumtype,\n"
8321 "                        const char *directory,\n"
8322 "                        const char *sumsfile);\n"
8323 "\n"
8324 msgstr ""
8325
8326 # type: textblock
8327 #. type: textblock
8328 #: ../src/guestfs-actions.pod:964 ../fish/guestfish-actions.pod:651
8329 msgid ""
8330 "This command computes the checksums of all regular files in C<directory> and "
8331 "then emits a list of those checksums to the local output file C<sumsfile>."
8332 msgstr ""
8333
8334 # type: textblock
8335 #. type: textblock
8336 #: ../src/guestfs-actions.pod:968 ../fish/guestfish-actions.pod:655
8337 msgid ""
8338 "This can be used for verifying the integrity of a virtual machine.  However "
8339 "to be properly secure you should pay attention to the output of the checksum "
8340 "command (it uses the ones from GNU coreutils).  In particular when the "
8341 "filename is not printable, coreutils uses a special backslash syntax.  For "
8342 "more information, see the GNU coreutils info file."
8343 msgstr ""
8344
8345 # type: textblock
8346 #. type: textblock
8347 #: ../src/guestfs-actions.pod:978
8348 msgid "(Added in 1.3.7)"
8349 msgstr ""
8350
8351 # type: =head2
8352 #. type: =head2
8353 #: ../src/guestfs-actions.pod:980
8354 msgid "guestfs_chmod"
8355 msgstr ""
8356
8357 # type: verbatim
8358 #. type: verbatim
8359 #: ../src/guestfs-actions.pod:982
8360 #, no-wrap
8361 msgid ""
8362 " int\n"
8363 " guestfs_chmod (guestfs_h *g,\n"
8364 "                int mode,\n"
8365 "                const char *path);\n"
8366 "\n"
8367 msgstr ""
8368
8369 # type: textblock
8370 #. type: textblock
8371 #: ../src/guestfs-actions.pod:987 ../fish/guestfish-actions.pod:669
8372 msgid ""
8373 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8374 "supported."
8375 msgstr ""
8376
8377 # type: textblock
8378 #. type: textblock
8379 #: ../src/guestfs-actions.pod:990 ../fish/guestfish-actions.pod:672
8380 msgid ""
8381 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8382 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8383 "C<700>."
8384 msgstr ""
8385
8386 # type: textblock
8387 #. type: textblock
8388 #: ../src/guestfs-actions.pod:994 ../src/guestfs-actions.pod:4294
8389 #: ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4510
8390 #: ../src/guestfs-actions.pod:4529 ../fish/guestfish-actions.pod:676
8391 #: ../fish/guestfish-actions.pod:2913 ../fish/guestfish-actions.pod:3042
8392 #: ../fish/guestfish-actions.pod:3052 ../fish/guestfish-actions.pod:3062
8393 msgid "The mode actually set is affected by the umask."
8394 msgstr ""
8395
8396 # type: =head2
8397 #. type: =head2
8398 #: ../src/guestfs-actions.pod:1000
8399 msgid "guestfs_chown"
8400 msgstr ""
8401
8402 # type: verbatim
8403 #. type: verbatim
8404 #: ../src/guestfs-actions.pod:1002
8405 #, no-wrap
8406 msgid ""
8407 " int\n"
8408 " guestfs_chown (guestfs_h *g,\n"
8409 "                int owner,\n"
8410 "                int group,\n"
8411 "                const char *path);\n"
8412 "\n"
8413 msgstr ""
8414
8415 # type: textblock
8416 #. type: textblock
8417 #: ../src/guestfs-actions.pod:1008 ../fish/guestfish-actions.pod:682
8418 msgid "Change the file owner to C<owner> and group to C<group>."
8419 msgstr ""
8420
8421 # type: textblock
8422 #. type: textblock
8423 #: ../src/guestfs-actions.pod:1010 ../src/guestfs-actions.pod:3402
8424 #: ../fish/guestfish-actions.pod:684 ../fish/guestfish-actions.pod:2371
8425 msgid ""
8426 "Only numeric uid and gid are supported.  If you want to use names, you will "
8427 "need to locate and parse the password file yourself (Augeas support makes "
8428 "this relatively easy)."
8429 msgstr ""
8430
8431 # type: =head2
8432 #. type: =head2
8433 #: ../src/guestfs-actions.pod:1018
8434 msgid "guestfs_command"
8435 msgstr ""
8436
8437 # type: verbatim
8438 #. type: verbatim
8439 #: ../src/guestfs-actions.pod:1020
8440 #, no-wrap
8441 msgid ""
8442 " char *\n"
8443 " guestfs_command (guestfs_h *g,\n"
8444 "                  char *const *arguments);\n"
8445 "\n"
8446 msgstr ""
8447
8448 # type: textblock
8449 #. type: textblock
8450 #: ../src/guestfs-actions.pod:1024 ../fish/guestfish-actions.pod:692
8451 msgid ""
8452 "This call runs a command from the guest filesystem.  The filesystem must be "
8453 "mounted, and must contain a compatible operating system (ie. something "
8454 "Linux, with the same or compatible processor architecture)."
8455 msgstr ""
8456
8457 # type: textblock
8458 #. type: textblock
8459 #: ../src/guestfs-actions.pod:1029
8460 msgid ""
8461 "The single parameter is an argv-style list of arguments.  The first element "
8462 "is the name of the program to run.  Subsequent elements are parameters.  The "
8463 "list must be non-empty (ie. must contain a program name).  Note that the "
8464 "command runs directly, and is I<not> invoked via the shell (see "
8465 "C<guestfs_sh>)."
8466 msgstr ""
8467
8468 # type: textblock
8469 #. type: textblock
8470 #: ../src/guestfs-actions.pod:1036 ../fish/guestfish-actions.pod:704
8471 msgid "The return value is anything printed to I<stdout> by the command."
8472 msgstr ""
8473
8474 # type: textblock
8475 #. type: textblock
8476 #: ../src/guestfs-actions.pod:1039 ../fish/guestfish-actions.pod:707
8477 msgid ""
8478 "If the command returns a non-zero exit status, then this function returns an "
8479 "error message.  The error message string is the content of I<stderr> from "
8480 "the command."
8481 msgstr ""
8482
8483 # type: textblock
8484 #. type: textblock
8485 #: ../src/guestfs-actions.pod:1043 ../fish/guestfish-actions.pod:711
8486 msgid ""
8487 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8488 "bin>.  If you require a program from another location, you should provide "
8489 "the full path in the first parameter."
8490 msgstr ""
8491
8492 # type: textblock
8493 #. type: textblock
8494 #: ../src/guestfs-actions.pod:1048 ../fish/guestfish-actions.pod:716
8495 msgid ""
8496 "Shared libraries and data files required by the program must be available on "
8497 "filesystems which are mounted in the correct places.  It is the caller's "
8498 "responsibility to ensure all filesystems that are needed are mounted at the "
8499 "right locations."
8500 msgstr ""
8501
8502 # type: textblock
8503 #. type: textblock
8504 #: ../src/guestfs-actions.pod:1060 ../src/guestfs-actions.pod:1080
8505 #: ../src/guestfs-actions.pod:1543
8506 msgid "(Added in 0.9.1)"
8507 msgstr ""
8508
8509 # type: =head2
8510 #. type: =head2
8511 #: ../src/guestfs-actions.pod:1062
8512 msgid "guestfs_command_lines"
8513 msgstr ""
8514
8515 # type: verbatim
8516 #. type: verbatim
8517 #: ../src/guestfs-actions.pod:1064
8518 #, no-wrap
8519 msgid ""
8520 " char **\n"
8521 " guestfs_command_lines (guestfs_h *g,\n"
8522 "                        char *const *arguments);\n"
8523 "\n"
8524 msgstr ""
8525
8526 # type: textblock
8527 #. type: textblock
8528 #: ../src/guestfs-actions.pod:1068
8529 msgid ""
8530 "This is the same as C<guestfs_command>, but splits the result into a list of "
8531 "lines."
8532 msgstr ""
8533
8534 # type: textblock
8535 #. type: textblock
8536 #: ../src/guestfs-actions.pod:1071
8537 msgid "See also: C<guestfs_sh_lines>"
8538 msgstr ""
8539
8540 # type: =head2
8541 #. type: =head2
8542 #: ../src/guestfs-actions.pod:1082
8543 msgid "guestfs_config"
8544 msgstr ""
8545
8546 # type: verbatim
8547 #. type: verbatim
8548 #: ../src/guestfs-actions.pod:1084
8549 #, no-wrap
8550 msgid ""
8551 " int\n"
8552 " guestfs_config (guestfs_h *g,\n"
8553 "                 const char *qemuparam,\n"
8554 "                 const char *qemuvalue);\n"
8555 "\n"
8556 msgstr ""
8557
8558 # type: textblock
8559 #. type: textblock
8560 #: ../src/guestfs-actions.pod:1089 ../fish/guestfish-actions.pod:741
8561 msgid ""
8562 "This can be used to add arbitrary qemu command line parameters of the form "
8563 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8564 "setting some parameters which would interfere with parameters that we use."
8565 msgstr ""
8566
8567 # type: textblock
8568 #. type: textblock
8569 #: ../src/guestfs-actions.pod:1094 ../fish/guestfish-actions.pod:746
8570 msgid "The first character of C<param> string must be a C<-> (dash)."
8571 msgstr ""
8572
8573 # type: textblock
8574 #. type: textblock
8575 #: ../src/guestfs-actions.pod:1096 ../fish/guestfish-actions.pod:748
8576 msgid "C<value> can be NULL."
8577 msgstr ""
8578
8579 # type: =head2
8580 #. type: =head2
8581 #: ../src/guestfs-actions.pod:1102
8582 msgid "guestfs_copy_size"
8583 msgstr ""
8584
8585 # type: verbatim
8586 #. type: verbatim
8587 #: ../src/guestfs-actions.pod:1104
8588 #, no-wrap
8589 msgid ""
8590 " int\n"
8591 " guestfs_copy_size (guestfs_h *g,\n"
8592 "                    const char *src,\n"
8593 "                    const char *dest,\n"
8594 "                    int64_t size);\n"
8595 "\n"
8596 msgstr ""
8597
8598 # type: textblock
8599 #. type: textblock
8600 #: ../src/guestfs-actions.pod:1110 ../fish/guestfish-actions.pod:754
8601 msgid ""
8602 "This command copies exactly C<size> bytes from one source device or file "
8603 "C<src> to another destination device or file C<dest>."
8604 msgstr ""
8605
8606 # type: textblock
8607 #. type: textblock
8608 #: ../src/guestfs-actions.pod:1113 ../fish/guestfish-actions.pod:757
8609 msgid ""
8610 "Note this will fail if the source is too short or if the destination is not "
8611 "large enough."
8612 msgstr ""
8613
8614 # type: textblock
8615 #. type: textblock
8616 #: ../src/guestfs-actions.pod:1118 ../src/guestfs-actions.pod:1241
8617 #: ../src/guestfs-actions.pod:1272 ../src/guestfs-actions.pod:1692
8618 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:6728
8619 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7241
8620 #: ../src/guestfs-actions.pod:7260
8621 msgid ""
8622 "This long-running command can generate progress notification messages so "
8623 "that the caller can display a progress bar or indicator.  To receive these "
8624 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
8625 "guestfs_set_progress_callback>."
8626 msgstr ""
8627
8628 # type: textblock
8629 #. type: textblock
8630 #: ../src/guestfs-actions.pod:1123 ../src/guestfs-actions.pod:4070
8631 #: ../src/guestfs-actions.pod:5288 ../src/guestfs-actions.pod:6969
8632 #: ../src/guestfs-actions.pod:6989 ../src/guestfs-actions.pod:7075
8633 msgid "(Added in 1.0.87)"
8634 msgstr ""
8635
8636 # type: =head2
8637 #. type: =head2
8638 #: ../src/guestfs-actions.pod:1125
8639 msgid "guestfs_cp"
8640 msgstr ""
8641
8642 # type: verbatim
8643 #. type: verbatim
8644 #: ../src/guestfs-actions.pod:1127
8645 #, no-wrap
8646 msgid ""
8647 " int\n"
8648 " guestfs_cp (guestfs_h *g,\n"
8649 "             const char *src,\n"
8650 "             const char *dest);\n"
8651 "\n"
8652 msgstr ""
8653
8654 # type: textblock
8655 #. type: textblock
8656 #: ../src/guestfs-actions.pod:1132 ../fish/guestfish-actions.pod:764
8657 msgid ""
8658 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8659 "destination filename or destination directory."
8660 msgstr ""
8661
8662 # type: textblock
8663 #. type: textblock
8664 #: ../src/guestfs-actions.pod:1137 ../src/guestfs-actions.pod:1151
8665 #: ../src/guestfs-actions.pod:1223 ../src/guestfs-actions.pod:1297
8666 #: ../src/guestfs-actions.pod:1406 ../src/guestfs-actions.pod:4755
8667 #: ../src/guestfs-actions.pod:5132
8668 msgid "(Added in 1.0.18)"
8669 msgstr ""
8670
8671 # type: =head2
8672 #. type: =head2
8673 #: ../src/guestfs-actions.pod:1139
8674 msgid "guestfs_cp_a"
8675 msgstr ""
8676
8677 # type: verbatim
8678 #. type: verbatim
8679 #: ../src/guestfs-actions.pod:1141
8680 #, no-wrap
8681 msgid ""
8682 " int\n"
8683 " guestfs_cp_a (guestfs_h *g,\n"
8684 "               const char *src,\n"
8685 "               const char *dest);\n"
8686 "\n"
8687 msgstr ""
8688
8689 # type: textblock
8690 #. type: textblock
8691 #: ../src/guestfs-actions.pod:1146 ../fish/guestfish-actions.pod:771
8692 msgid ""
8693 "This copies a file or directory from C<src> to C<dest> recursively using the "
8694 "C<cp -a> command."
8695 msgstr ""
8696
8697 # type: =head2
8698 #. type: =head2
8699 #: ../src/guestfs-actions.pod:1153
8700 msgid "guestfs_dd"
8701 msgstr ""
8702
8703 # type: verbatim
8704 #. type: verbatim
8705 #: ../src/guestfs-actions.pod:1155
8706 #, no-wrap
8707 msgid ""
8708 " int\n"
8709 " guestfs_dd (guestfs_h *g,\n"
8710 "             const char *src,\n"
8711 "             const char *dest);\n"
8712 "\n"
8713 msgstr ""
8714
8715 # type: textblock
8716 #. type: textblock
8717 #: ../src/guestfs-actions.pod:1160 ../fish/guestfish-actions.pod:778
8718 msgid ""
8719 "This command copies from one source device or file C<src> to another "
8720 "destination device or file C<dest>.  Normally you would use this to copy to "
8721 "or from a device or partition, for example to duplicate a filesystem."
8722 msgstr ""
8723
8724 # type: textblock
8725 #. type: textblock
8726 #: ../src/guestfs-actions.pod:1165
8727 msgid ""
8728 "If the destination is a device, it must be as large or larger than the "
8729 "source file or device, otherwise the copy will fail.  This command cannot do "
8730 "partial copies (see C<guestfs_copy_size>)."
8731 msgstr ""
8732
8733 # type: =head2
8734 #. type: =head2
8735 #: ../src/guestfs-actions.pod:1173
8736 msgid "guestfs_df"
8737 msgstr ""
8738
8739 # type: verbatim
8740 #. type: verbatim
8741 #: ../src/guestfs-actions.pod:1175
8742 #, no-wrap
8743 msgid ""
8744 " char *\n"
8745 " guestfs_df (guestfs_h *g);\n"
8746 "\n"
8747 msgstr ""
8748
8749 # type: textblock
8750 #. type: textblock
8751 #: ../src/guestfs-actions.pod:1178 ../fish/guestfish-actions.pod:791
8752 msgid "This command runs the C<df> command to report disk space used."
8753 msgstr ""
8754
8755 # type: textblock
8756 #. type: textblock
8757 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1197
8758 msgid ""
8759 "This command is mostly useful for interactive sessions.  It is I<not> "
8760 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8761 "from programs."
8762 msgstr ""
8763
8764 # type: textblock
8765 #. type: textblock
8766 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1204
8767 #: ../src/guestfs-actions.pod:1317 ../src/guestfs-actions.pod:2281
8768 #: ../src/guestfs-actions.pod:2305 ../src/guestfs-actions.pod:2373
8769 #: ../src/guestfs-actions.pod:4180 ../src/guestfs-actions.pod:4655
8770 #: ../src/guestfs-actions.pod:6466 ../src/guestfs-actions.pod:6490
8771 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
8772 #: ../src/guestfs-actions.pod:7134
8773 msgid "(Added in 1.0.54)"
8774 msgstr ""
8775
8776 # type: =head2
8777 #. type: =head2
8778 #: ../src/guestfs-actions.pod:1189
8779 msgid "guestfs_df_h"
8780 msgstr ""
8781
8782 # type: verbatim
8783 #. type: verbatim
8784 #: ../src/guestfs-actions.pod:1191
8785 #, no-wrap
8786 msgid ""
8787 " char *\n"
8788 " guestfs_df_h (guestfs_h *g);\n"
8789 "\n"
8790 msgstr ""
8791
8792 # type: textblock
8793 #. type: textblock
8794 #: ../src/guestfs-actions.pod:1194 ../fish/guestfish-actions.pod:801
8795 msgid ""
8796 "This command runs the C<df -h> command to report disk space used in human-"
8797 "readable format."
8798 msgstr ""
8799
8800 # type: =head2
8801 #. type: =head2
8802 #: ../src/guestfs-actions.pod:1206
8803 msgid "guestfs_dmesg"
8804 msgstr ""
8805
8806 # type: verbatim
8807 #. type: verbatim
8808 #: ../src/guestfs-actions.pod:1208
8809 #, no-wrap
8810 msgid ""
8811 " char *\n"
8812 " guestfs_dmesg (guestfs_h *g);\n"
8813 "\n"
8814 msgstr ""
8815
8816 # type: textblock
8817 #. type: textblock
8818 #: ../src/guestfs-actions.pod:1211 ../fish/guestfish-actions.pod:812
8819 msgid ""
8820 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8821 "This is sometimes useful for extended debugging of problems."
8822 msgstr ""
8823
8824 # type: textblock
8825 #. type: textblock
8826 #: ../src/guestfs-actions.pod:1215
8827 msgid ""
8828 "Another way to get the same information is to enable verbose messages with "
8829 "C<guestfs_set_verbose> or by setting the environment variable "
8830 "C<LIBGUESTFS_DEBUG=1> before running the program."
8831 msgstr ""
8832
8833 # type: =head2
8834 #. type: =head2
8835 #: ../src/guestfs-actions.pod:1225
8836 msgid "guestfs_download"
8837 msgstr ""
8838
8839 # type: verbatim
8840 #. type: verbatim
8841 #: ../src/guestfs-actions.pod:1227
8842 #, no-wrap
8843 msgid ""
8844 " int\n"
8845 " guestfs_download (guestfs_h *g,\n"
8846 "                   const char *remotefilename,\n"
8847 "                   const char *filename);\n"
8848 "\n"
8849 msgstr ""
8850
8851 # type: textblock
8852 #. type: textblock
8853 #: ../src/guestfs-actions.pod:1232 ../src/guestfs-actions.pod:1257
8854 #: ../fish/guestfish-actions.pod:825 ../fish/guestfish-actions.pod:838
8855 msgid ""
8856 "Download file C<remotefilename> and save it as C<filename> on the local "
8857 "machine."
8858 msgstr ""
8859
8860 # type: textblock
8861 #. type: textblock
8862 #: ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:6722
8863 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:4520
8864 msgid "C<filename> can also be a named pipe."
8865 msgstr ""
8866
8867 # type: textblock
8868 #. type: textblock
8869 #: ../src/guestfs-actions.pod:1237
8870 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8871 msgstr ""
8872
8873 # type: =head2
8874 #. type: =head2
8875 #: ../src/guestfs-actions.pod:1248
8876 msgid "guestfs_download_offset"
8877 msgstr ""
8878
8879 # type: verbatim
8880 #. type: verbatim
8881 #: ../src/guestfs-actions.pod:1250
8882 #, no-wrap
8883 msgid ""
8884 " int\n"
8885 " guestfs_download_offset (guestfs_h *g,\n"
8886 "                          const char *remotefilename,\n"
8887 "                          const char *filename,\n"
8888 "                          int64_t offset,\n"
8889 "                          int64_t size);\n"
8890 "\n"
8891 msgstr ""
8892
8893 # type: textblock
8894 #. type: textblock
8895 #: ../src/guestfs-actions.pod:1260 ../fish/guestfish-actions.pod:841
8896 msgid ""
8897 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8898 "region must be within the file or device)."
8899 msgstr ""
8900
8901 # type: textblock
8902 #. type: textblock
8903 #: ../src/guestfs-actions.pod:1263
8904 msgid ""
8905 "Note that there is no limit on the amount of data that can be downloaded "
8906 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8907 "full amount unless an error occurs."
8908 msgstr ""
8909
8910 # type: textblock
8911 #. type: textblock
8912 #: ../src/guestfs-actions.pod:1268
8913 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8914 msgstr ""
8915
8916 # type: textblock
8917 #. type: textblock
8918 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:6767
8919 msgid "(Added in 1.5.17)"
8920 msgstr ""
8921
8922 # type: =head2
8923 #. type: =head2
8924 #: ../src/guestfs-actions.pod:1279
8925 msgid "guestfs_drop_caches"
8926 msgstr ""
8927
8928 # type: verbatim
8929 #. type: verbatim
8930 #: ../src/guestfs-actions.pod:1281
8931 #, no-wrap
8932 msgid ""
8933 " int\n"
8934 " guestfs_drop_caches (guestfs_h *g,\n"
8935 "                      int whattodrop);\n"
8936 "\n"
8937 msgstr ""
8938
8939 # type: textblock
8940 #. type: textblock
8941 #: ../src/guestfs-actions.pod:1285 ../fish/guestfish-actions.pod:857
8942 msgid ""
8943 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8944 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8945 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8946 msgstr ""
8947
8948 # type: textblock
8949 #. type: textblock
8950 #: ../src/guestfs-actions.pod:1290 ../fish/guestfish-actions.pod:862
8951 msgid "Setting C<whattodrop> to 3 should drop everything."
8952 msgstr ""
8953
8954 # type: textblock
8955 #. type: textblock
8956 #: ../src/guestfs-actions.pod:1292 ../fish/guestfish-actions.pod:864
8957 msgid ""
8958 "This automatically calls L<sync(2)> before the operation, so that the "
8959 "maximum guest memory is freed."
8960 msgstr ""
8961
8962 # type: =head2
8963 #. type: =head2
8964 #: ../src/guestfs-actions.pod:1299
8965 msgid "guestfs_du"
8966 msgstr ""
8967
8968 # type: verbatim
8969 #. type: verbatim
8970 #: ../src/guestfs-actions.pod:1301
8971 #, no-wrap
8972 msgid ""
8973 " int64_t\n"
8974 " guestfs_du (guestfs_h *g,\n"
8975 "             const char *path);\n"
8976 "\n"
8977 msgstr ""
8978
8979 # type: textblock
8980 #. type: textblock
8981 #: ../src/guestfs-actions.pod:1305 ../fish/guestfish-actions.pod:871
8982 msgid ""
8983 "This command runs the C<du -s> command to estimate file space usage for "
8984 "C<path>."
8985 msgstr ""
8986
8987 # type: textblock
8988 #. type: textblock
8989 #: ../src/guestfs-actions.pod:1308 ../fish/guestfish-actions.pod:874
8990 msgid ""
8991 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8992 "estimate includes the contents of the directory and all subdirectories "
8993 "(recursively)."
8994 msgstr ""
8995
8996 # type: textblock
8997 #. type: textblock
8998 #: ../src/guestfs-actions.pod:1312 ../fish/guestfish-actions.pod:878
8999 msgid ""
9000 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9001 msgstr ""
9002
9003 # type: =head2
9004 #. type: =head2
9005 #: ../src/guestfs-actions.pod:1319
9006 msgid "guestfs_e2fsck_f"
9007 msgstr ""
9008
9009 # type: verbatim
9010 #. type: verbatim
9011 #: ../src/guestfs-actions.pod:1321
9012 #, no-wrap
9013 msgid ""
9014 " int\n"
9015 " guestfs_e2fsck_f (guestfs_h *g,\n"
9016 "                   const char *device);\n"
9017 "\n"
9018 msgstr ""
9019
9020 # type: textblock
9021 #. type: textblock
9022 #: ../src/guestfs-actions.pod:1325 ../fish/guestfish-actions.pod:885
9023 msgid ""
9024 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9025 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
9026 "clean (C<-f>)."
9027 msgstr ""
9028
9029 # type: textblock
9030 #. type: textblock
9031 #: ../src/guestfs-actions.pod:1329
9032 msgid ""
9033 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
9034 "Normally you should use C<guestfs_fsck>."
9035 msgstr ""
9036
9037 # type: textblock
9038 #. type: textblock
9039 #: ../src/guestfs-actions.pod:1334
9040 msgid "(Added in 1.0.29)"
9041 msgstr ""
9042
9043 # type: =head2
9044 #. type: =head2
9045 #: ../src/guestfs-actions.pod:1336
9046 msgid "guestfs_echo_daemon"
9047 msgstr ""
9048
9049 # type: verbatim
9050 #. type: verbatim
9051 #: ../src/guestfs-actions.pod:1338
9052 #, no-wrap
9053 msgid ""
9054 " char *\n"
9055 " guestfs_echo_daemon (guestfs_h *g,\n"
9056 "                      char *const *words);\n"
9057 "\n"
9058 msgstr ""
9059
9060 # type: textblock
9061 #. type: textblock
9062 #: ../src/guestfs-actions.pod:1342 ../fish/guestfish-actions.pod:896
9063 msgid ""
9064 "This command concatenates the list of C<words> passed with single spaces "
9065 "between them and returns the resulting string."
9066 msgstr ""
9067
9068 # type: textblock
9069 #. type: textblock
9070 #: ../src/guestfs-actions.pod:1345 ../fish/guestfish-actions.pod:899
9071 msgid "You can use this command to test the connection through to the daemon."
9072 msgstr ""
9073
9074 # type: textblock
9075 #. type: textblock
9076 #: ../src/guestfs-actions.pod:1347
9077 msgid "See also C<guestfs_ping_daemon>."
9078 msgstr ""
9079
9080 # type: textblock
9081 #. type: textblock
9082 #: ../src/guestfs-actions.pod:1352 ../src/guestfs-actions.pod:2089
9083 #: ../src/guestfs-actions.pod:5966
9084 msgid "(Added in 1.0.69)"
9085 msgstr ""
9086
9087 # type: =head2
9088 #. type: =head2
9089 #: ../src/guestfs-actions.pod:1354
9090 msgid "guestfs_egrep"
9091 msgstr ""
9092
9093 # type: verbatim
9094 #. type: verbatim
9095 #: ../src/guestfs-actions.pod:1356
9096 #, no-wrap
9097 msgid ""
9098 " char **\n"
9099 " guestfs_egrep (guestfs_h *g,\n"
9100 "                const char *regex,\n"
9101 "                const char *path);\n"
9102 "\n"
9103 msgstr ""
9104
9105 # type: textblock
9106 #. type: textblock
9107 #: ../src/guestfs-actions.pod:1361 ../fish/guestfish-actions.pod:907
9108 msgid ""
9109 "This calls the external C<egrep> program and returns the matching lines."
9110 msgstr ""
9111
9112 # type: textblock
9113 #. type: textblock
9114 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1390
9115 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1493
9116 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:2219
9117 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2394
9118 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:2422
9119 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2490
9120 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:3563
9121 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3590
9122 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:4590
9123 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5515
9124 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6346
9125 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6372
9126 #: ../src/guestfs-actions.pod:6394 ../src/guestfs-actions.pod:6407
9127 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6433
9128 #: ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7223
9129 #: ../src/guestfs-actions.pod:7308 ../src/guestfs-actions.pod:7327
9130 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7392
9131 msgid "(Added in 1.0.66)"
9132 msgstr ""
9133
9134 # type: =head2
9135 #. type: =head2
9136 #: ../src/guestfs-actions.pod:1373
9137 msgid "guestfs_egrepi"
9138 msgstr ""
9139
9140 # type: verbatim
9141 #. type: verbatim
9142 #: ../src/guestfs-actions.pod:1375
9143 #, no-wrap
9144 msgid ""
9145 " char **\n"
9146 " guestfs_egrepi (guestfs_h *g,\n"
9147 "                 const char *regex,\n"
9148 "                 const char *path);\n"
9149 "\n"
9150 msgstr ""
9151
9152 # type: textblock
9153 #. type: textblock
9154 #: ../src/guestfs-actions.pod:1380 ../fish/guestfish-actions.pod:917
9155 msgid ""
9156 "This calls the external C<egrep -i> program and returns the matching lines."
9157 msgstr ""
9158
9159 # type: =head2
9160 #. type: =head2
9161 #: ../src/guestfs-actions.pod:1392
9162 msgid "guestfs_equal"
9163 msgstr ""
9164
9165 # type: verbatim
9166 #. type: verbatim
9167 #: ../src/guestfs-actions.pod:1394
9168 #, no-wrap
9169 msgid ""
9170 " int\n"
9171 " guestfs_equal (guestfs_h *g,\n"
9172 "                const char *file1,\n"
9173 "                const char *file2);\n"
9174 "\n"
9175 msgstr ""
9176
9177 # type: textblock
9178 #. type: textblock
9179 #: ../src/guestfs-actions.pod:1399 ../fish/guestfish-actions.pod:927
9180 msgid ""
9181 "This compares the two files C<file1> and C<file2> and returns true if their "
9182 "content is exactly equal, or false otherwise."
9183 msgstr ""
9184
9185 # type: textblock
9186 #. type: textblock
9187 #: ../src/guestfs-actions.pod:1402 ../fish/guestfish-actions.pod:930
9188 msgid "The external L<cmp(1)> program is used for the comparison."
9189 msgstr ""
9190
9191 # type: =head2
9192 #. type: =head2
9193 #: ../src/guestfs-actions.pod:1408
9194 msgid "guestfs_exists"
9195 msgstr ""
9196
9197 # type: verbatim
9198 #. type: verbatim
9199 #: ../src/guestfs-actions.pod:1410
9200 #, no-wrap
9201 msgid ""
9202 " int\n"
9203 " guestfs_exists (guestfs_h *g,\n"
9204 "                 const char *path);\n"
9205 "\n"
9206 msgstr ""
9207
9208 # type: textblock
9209 #. type: textblock
9210 #: ../src/guestfs-actions.pod:1414 ../fish/guestfish-actions.pod:936
9211 msgid ""
9212 "This returns C<true> if and only if there is a file, directory (or anything) "
9213 "with the given C<path> name."
9214 msgstr ""
9215
9216 # type: textblock
9217 #. type: textblock
9218 #: ../src/guestfs-actions.pod:1417
9219 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
9220 msgstr ""
9221
9222 # type: =head2
9223 #. type: =head2
9224 #: ../src/guestfs-actions.pod:1423
9225 msgid "guestfs_fallocate"
9226 msgstr ""
9227
9228 # type: verbatim
9229 #. type: verbatim
9230 #: ../src/guestfs-actions.pod:1425
9231 #, no-wrap
9232 msgid ""
9233 " int\n"
9234 " guestfs_fallocate (guestfs_h *g,\n"
9235 "                    const char *path,\n"
9236 "                    int len);\n"
9237 "\n"
9238 msgstr ""
9239
9240 # type: textblock
9241 #. type: textblock
9242 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1456
9243 #: ../fish/guestfish-actions.pod:945 ../fish/guestfish-actions.pod:964
9244 msgid ""
9245 "This command preallocates a file (containing zero bytes) named C<path> of "
9246 "size C<len> bytes.  If the file exists already, it is overwritten."
9247 msgstr ""
9248
9249 # type: textblock
9250 #. type: textblock
9251 #: ../src/guestfs-actions.pod:1434 ../fish/guestfish-actions.pod:949
9252 msgid ""
9253 "Do not confuse this with the guestfish-specific C<alloc> command which "
9254 "allocates a file in the host and attaches it as a device."
9255 msgstr ""
9256
9257 # type: textblock
9258 #. type: textblock
9259 #: ../src/guestfs-actions.pod:1440 ../fish/guestfish-actions.pod:953
9260 msgid ""
9261 "This function is deprecated.  In new code, use the C<fallocate64> call "
9262 "instead."
9263 msgstr ""
9264
9265 # type: =head2
9266 #. type: =head2
9267 #: ../src/guestfs-actions.pod:1449
9268 msgid "guestfs_fallocate64"
9269 msgstr ""
9270
9271 # type: verbatim
9272 #. type: verbatim
9273 #: ../src/guestfs-actions.pod:1451
9274 #, no-wrap
9275 msgid ""
9276 " int\n"
9277 " guestfs_fallocate64 (guestfs_h *g,\n"
9278 "                      const char *path,\n"
9279 "                      int64_t len);\n"
9280 "\n"
9281 msgstr ""
9282
9283 # type: textblock
9284 #. type: textblock
9285 #: ../src/guestfs-actions.pod:1460
9286 msgid ""
9287 "Note that this call allocates disk blocks for the file.  To create a sparse "
9288 "file use C<guestfs_truncate_size> instead."
9289 msgstr ""
9290
9291 # type: textblock
9292 #. type: textblock
9293 #: ../src/guestfs-actions.pod:1463
9294 msgid ""
9295 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
9296 "oversight it only allowed 30 bit lengths to be specified, effectively "
9297 "limiting the maximum size of files created through that call to 1GB."
9298 msgstr ""
9299
9300 # type: textblock
9301 #. type: textblock
9302 #: ../src/guestfs-actions.pod:1468 ../fish/guestfish-actions.pod:976
9303 msgid ""
9304 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9305 "commands which create a file in the host and attach it as a device."
9306 msgstr ""
9307
9308 # type: textblock
9309 #. type: textblock
9310 #: ../src/guestfs-actions.pod:1474
9311 msgid "(Added in 1.3.17)"
9312 msgstr ""
9313
9314 # type: =head2
9315 #. type: =head2
9316 #: ../src/guestfs-actions.pod:1476
9317 msgid "guestfs_fgrep"
9318 msgstr ""
9319
9320 # type: verbatim
9321 #. type: verbatim
9322 #: ../src/guestfs-actions.pod:1478
9323 #, no-wrap
9324 msgid ""
9325 " char **\n"
9326 " guestfs_fgrep (guestfs_h *g,\n"
9327 "                const char *pattern,\n"
9328 "                const char *path);\n"
9329 "\n"
9330 msgstr ""
9331
9332 # type: textblock
9333 #. type: textblock
9334 #: ../src/guestfs-actions.pod:1483 ../fish/guestfish-actions.pod:984
9335 msgid ""
9336 "This calls the external C<fgrep> program and returns the matching lines."
9337 msgstr ""
9338
9339 # type: =head2
9340 #. type: =head2
9341 #: ../src/guestfs-actions.pod:1495
9342 msgid "guestfs_fgrepi"
9343 msgstr ""
9344
9345 # type: verbatim
9346 #. type: verbatim
9347 #: ../src/guestfs-actions.pod:1497
9348 #, no-wrap
9349 msgid ""
9350 " char **\n"
9351 " guestfs_fgrepi (guestfs_h *g,\n"
9352 "                 const char *pattern,\n"
9353 "                 const char *path);\n"
9354 "\n"
9355 msgstr ""
9356
9357 # type: textblock
9358 #. type: textblock
9359 #: ../src/guestfs-actions.pod:1502 ../fish/guestfish-actions.pod:994
9360 msgid ""
9361 "This calls the external C<fgrep -i> program and returns the matching lines."
9362 msgstr ""
9363
9364 # type: =head2
9365 #. type: =head2
9366 #: ../src/guestfs-actions.pod:1514
9367 msgid "guestfs_file"
9368 msgstr ""
9369
9370 # type: verbatim
9371 #. type: verbatim
9372 #: ../src/guestfs-actions.pod:1516
9373 #, no-wrap
9374 msgid ""
9375 " char *\n"
9376 " guestfs_file (guestfs_h *g,\n"
9377 "               const char *path);\n"
9378 "\n"
9379 msgstr ""
9380
9381 # type: textblock
9382 #. type: textblock
9383 #: ../src/guestfs-actions.pod:1520 ../fish/guestfish-actions.pod:1004
9384 msgid ""
9385 "This call uses the standard L<file(1)> command to determine the type or "
9386 "contents of the file."
9387 msgstr ""
9388
9389 # type: textblock
9390 #. type: textblock
9391 #: ../src/guestfs-actions.pod:1523 ../fish/guestfish-actions.pod:1007
9392 msgid ""
9393 "This call will also transparently look inside various types of compressed "
9394 "file."
9395 msgstr ""
9396
9397 # type: textblock
9398 #. type: textblock
9399 #: ../src/guestfs-actions.pod:1526 ../fish/guestfish-actions.pod:1010
9400 msgid ""
9401 "The exact command which runs is C<file -zb path>.  Note in particular that "
9402 "the filename is not prepended to the output (the C<-b> option)."
9403 msgstr ""
9404
9405 # type: textblock
9406 #. type: textblock
9407 #: ../src/guestfs-actions.pod:1530
9408 msgid ""
9409 "This command can also be used on C</dev/> devices (and partitions, LV "
9410 "names).  You can for example use this to determine if a device contains a "
9411 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
9412 msgstr ""
9413
9414 # type: textblock
9415 #. type: textblock
9416 #: ../src/guestfs-actions.pod:1535 ../fish/guestfish-actions.pod:1019
9417 msgid ""
9418 "If the C<path> does not begin with C</dev/> then this command only works for "
9419 "the content of regular files.  For other file types (directory, symbolic "
9420 "link etc) it will just return the string C<directory> etc."
9421 msgstr ""
9422
9423 # type: =head2
9424 #. type: =head2
9425 #: ../src/guestfs-actions.pod:1545
9426 msgid "guestfs_file_architecture"
9427 msgstr ""
9428
9429 # type: verbatim
9430 #. type: verbatim
9431 #: ../src/guestfs-actions.pod:1547
9432 #, no-wrap
9433 msgid ""
9434 " char *\n"
9435 " guestfs_file_architecture (guestfs_h *g,\n"
9436 "                            const char *filename);\n"
9437 "\n"
9438 msgstr ""
9439
9440 # type: textblock
9441 #. type: textblock
9442 #: ../src/guestfs-actions.pod:1551 ../fish/guestfish-actions.pod:1028
9443 msgid ""
9444 "This detects the architecture of the binary C<filename>, and returns it if "
9445 "known."
9446 msgstr ""
9447
9448 # type: textblock
9449 #. type: textblock
9450 #: ../src/guestfs-actions.pod:1554 ../fish/guestfish-actions.pod:1031
9451 msgid "Currently defined architectures are:"
9452 msgstr ""
9453
9454 # type: =item
9455 #. type: =item
9456 #: ../src/guestfs-actions.pod:1558 ../fish/guestfish-actions.pod:1035
9457 msgid "\"i386\""
9458 msgstr ""
9459
9460 # type: textblock
9461 #. type: textblock
9462 #: ../src/guestfs-actions.pod:1560 ../fish/guestfish-actions.pod:1037
9463 msgid ""
9464 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9465 "irrespective of the precise processor requirements of the binary."
9466 msgstr ""
9467
9468 # type: =item
9469 #. type: =item
9470 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1040
9471 msgid "\"x86_64\""
9472 msgstr ""
9473
9474 # type: textblock
9475 #. type: textblock
9476 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1042
9477 msgid "64 bit x86-64."
9478 msgstr ""
9479
9480 # type: =item
9481 #. type: =item
9482 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1044
9483 msgid "\"sparc\""
9484 msgstr ""
9485
9486 # type: textblock
9487 #. type: textblock
9488 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1046
9489 msgid "32 bit SPARC."
9490 msgstr ""
9491
9492 # type: =item
9493 #. type: =item
9494 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1048
9495 msgid "\"sparc64\""
9496 msgstr ""
9497
9498 # type: textblock
9499 #. type: textblock
9500 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1050
9501 msgid "64 bit SPARC V9 and above."
9502 msgstr ""
9503
9504 # type: =item
9505 #. type: =item
9506 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1052
9507 msgid "\"ia64\""
9508 msgstr ""
9509
9510 # type: textblock
9511 #. type: textblock
9512 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1054
9513 msgid "Intel Itanium."
9514 msgstr ""
9515
9516 # type: =item
9517 #. type: =item
9518 #: ../src/guestfs-actions.pod:1579 ../fish/guestfish-actions.pod:1056
9519 msgid "\"ppc\""
9520 msgstr ""
9521
9522 # type: textblock
9523 #. type: textblock
9524 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1058
9525 msgid "32 bit Power PC."
9526 msgstr ""
9527
9528 # type: =item
9529 #. type: =item
9530 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1060
9531 msgid "\"ppc64\""
9532 msgstr ""
9533
9534 # type: textblock
9535 #. type: textblock
9536 #: ../src/guestfs-actions.pod:1585 ../fish/guestfish-actions.pod:1062
9537 msgid "64 bit Power PC."
9538 msgstr ""
9539
9540 # type: textblock
9541 #. type: textblock
9542 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1066
9543 msgid "Libguestfs may return other architecture strings in future."
9544 msgstr ""
9545
9546 # type: textblock
9547 #. type: textblock
9548 #: ../src/guestfs-actions.pod:1591 ../fish/guestfish-actions.pod:1068
9549 msgid "The function works on at least the following types of files:"
9550 msgstr ""
9551
9552 # type: textblock
9553 #. type: textblock
9554 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1074
9555 msgid "many types of Un*x and Linux binary"
9556 msgstr ""
9557
9558 # type: textblock
9559 #. type: textblock
9560 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1078
9561 msgid "many types of Un*x and Linux shared library"
9562 msgstr ""
9563
9564 # type: textblock
9565 #. type: textblock
9566 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1082
9567 msgid "Windows Win32 and Win64 binaries"
9568 msgstr ""
9569
9570 # type: textblock
9571 #. type: textblock
9572 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1086
9573 msgid "Windows Win32 and Win64 DLLs"
9574 msgstr ""
9575
9576 # type: textblock
9577 #. type: textblock
9578 #: ../src/guestfs-actions.pod:1611 ../fish/guestfish-actions.pod:1088
9579 msgid "Win32 binaries and DLLs return C<i386>."
9580 msgstr ""
9581
9582 # type: textblock
9583 #. type: textblock
9584 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1090
9585 msgid "Win64 binaries and DLLs return C<x86_64>."
9586 msgstr ""
9587
9588 # type: textblock
9589 #. type: textblock
9590 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1094
9591 msgid "Linux kernel modules"
9592 msgstr ""
9593
9594 # type: textblock
9595 #. type: textblock
9596 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1098
9597 msgid "Linux new-style initrd images"
9598 msgstr ""
9599
9600 # type: textblock
9601 #. type: textblock
9602 #: ../src/guestfs-actions.pod:1625 ../fish/guestfish-actions.pod:1102
9603 msgid "some non-x86 Linux vmlinuz kernels"
9604 msgstr ""
9605
9606 # type: textblock
9607 #. type: textblock
9608 #: ../src/guestfs-actions.pod:1629 ../fish/guestfish-actions.pod:1106
9609 msgid "What it can't do currently:"
9610 msgstr ""
9611
9612 # type: textblock
9613 #. type: textblock
9614 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1112
9615 msgid "static libraries (libfoo.a)"
9616 msgstr ""
9617
9618 # type: textblock
9619 #. type: textblock
9620 #: ../src/guestfs-actions.pod:1639 ../fish/guestfish-actions.pod:1116
9621 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9622 msgstr ""
9623
9624 # type: textblock
9625 #. type: textblock
9626 #: ../src/guestfs-actions.pod:1643 ../fish/guestfish-actions.pod:1120
9627 msgid "x86 Linux vmlinuz kernels"
9628 msgstr ""
9629
9630 # type: textblock
9631 #. type: textblock
9632 #: ../src/guestfs-actions.pod:1645 ../fish/guestfish-actions.pod:1122
9633 msgid ""
9634 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9635 "compressed code, and are horribly hard to unpack.  If you want to find the "
9636 "architecture of a kernel, use the architecture of the associated initrd or "
9637 "kernel module(s) instead."
9638 msgstr ""
9639
9640 # type: textblock
9641 #. type: textblock
9642 #: ../src/guestfs-actions.pod:1655 ../src/guestfs-actions.pod:1818
9643 #: ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:2526
9644 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2633
9645 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2742
9646 #: ../src/guestfs-actions.pod:2779 ../src/guestfs-actions.pod:2863
9647 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3186
9648 #: ../src/guestfs-actions.pod:3318
9649 msgid "(Added in 1.5.3)"
9650 msgstr ""
9651
9652 # type: =head2
9653 #. type: =head2
9654 #: ../src/guestfs-actions.pod:1657
9655 msgid "guestfs_filesize"
9656 msgstr ""
9657
9658 # type: verbatim
9659 #. type: verbatim
9660 #: ../src/guestfs-actions.pod:1659
9661 #, no-wrap
9662 msgid ""
9663 " int64_t\n"
9664 " guestfs_filesize (guestfs_h *g,\n"
9665 "                   const char *file);\n"
9666 "\n"
9667 msgstr ""
9668
9669 # type: textblock
9670 #. type: textblock
9671 #: ../src/guestfs-actions.pod:1663 ../fish/guestfish-actions.pod:1133
9672 msgid "This command returns the size of C<file> in bytes."
9673 msgstr ""
9674
9675 # type: textblock
9676 #. type: textblock
9677 #: ../src/guestfs-actions.pod:1665
9678 msgid ""
9679 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9680 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9681 "devices, use C<guestfs_blockdev_getsize64>."
9682 msgstr ""
9683
9684 # type: textblock
9685 #. type: textblock
9686 #: ../src/guestfs-actions.pod:1671
9687 msgid "(Added in 1.0.82)"
9688 msgstr ""
9689
9690 # type: =head2
9691 #. type: =head2
9692 #: ../src/guestfs-actions.pod:1673
9693 msgid "guestfs_fill"
9694 msgstr ""
9695
9696 # type: verbatim
9697 #. type: verbatim
9698 #: ../src/guestfs-actions.pod:1675
9699 #, no-wrap
9700 msgid ""
9701 " int\n"
9702 " guestfs_fill (guestfs_h *g,\n"
9703 "               int c,\n"
9704 "               int len,\n"
9705 "               const char *path);\n"
9706 "\n"
9707 msgstr ""
9708
9709 # type: textblock
9710 #. type: textblock
9711 #: ../src/guestfs-actions.pod:1681 ../fish/guestfish-actions.pod:1143
9712 msgid ""
9713 "This command creates a new file called C<path>.  The initial content of the "
9714 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9715 "[0..255]>."
9716 msgstr ""
9717
9718 # type: textblock
9719 #. type: textblock
9720 #: ../src/guestfs-actions.pod:1685
9721 msgid ""
9722 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9723 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9724 "bytes use C<guestfs_fill_pattern>."
9725 msgstr ""
9726
9727 # type: textblock
9728 #. type: textblock
9729 #: ../src/guestfs-actions.pod:1697
9730 msgid "(Added in 1.0.79)"
9731 msgstr ""
9732
9733 # type: =head2
9734 #. type: =head2
9735 #: ../src/guestfs-actions.pod:1699
9736 msgid "guestfs_fill_pattern"
9737 msgstr ""
9738
9739 # type: verbatim
9740 #. type: verbatim
9741 #: ../src/guestfs-actions.pod:1701
9742 #, no-wrap
9743 msgid ""
9744 " int\n"
9745 " guestfs_fill_pattern (guestfs_h *g,\n"
9746 "                       const char *pattern,\n"
9747 "                       int len,\n"
9748 "                       const char *path);\n"
9749 "\n"
9750 msgstr ""
9751
9752 # type: textblock
9753 #. type: textblock
9754 #: ../src/guestfs-actions.pod:1707
9755 msgid ""
9756 "This function is like C<guestfs_fill> except that it creates a new file of "
9757 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9758 "pattern is truncated if necessary to ensure the length of the file is "
9759 "exactly C<len> bytes."
9760 msgstr ""
9761
9762 # type: textblock
9763 #. type: textblock
9764 #: ../src/guestfs-actions.pod:1719
9765 msgid "(Added in 1.3.12)"
9766 msgstr ""
9767
9768 # type: =head2
9769 #. type: =head2
9770 #: ../src/guestfs-actions.pod:1721
9771 msgid "guestfs_find"
9772 msgstr ""
9773
9774 # type: verbatim
9775 #. type: verbatim
9776 #: ../src/guestfs-actions.pod:1723
9777 #, no-wrap
9778 msgid ""
9779 " char **\n"
9780 " guestfs_find (guestfs_h *g,\n"
9781 "               const char *directory);\n"
9782 "\n"
9783 msgstr ""
9784
9785 # type: textblock
9786 #. type: textblock
9787 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1165
9788 msgid ""
9789 "This command lists out all files and directories, recursively, starting at "
9790 "C<directory>.  It is essentially equivalent to running the shell command "
9791 "C<find directory -print> but some post-processing happens on the output, "
9792 "described below."
9793 msgstr ""
9794
9795 # type: textblock
9796 #. type: textblock
9797 #: ../src/guestfs-actions.pod:1732 ../fish/guestfish-actions.pod:1170
9798 msgid ""
9799 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9800 "structure was:"
9801 msgstr ""
9802
9803 # type: verbatim
9804 #. type: verbatim
9805 #: ../src/guestfs-actions.pod:1735 ../fish/guestfish-actions.pod:1173
9806 #, no-wrap
9807 msgid ""
9808 " /tmp/a\n"
9809 " /tmp/b\n"
9810 " /tmp/c/d\n"
9811 "\n"
9812 msgstr ""
9813
9814 # type: textblock
9815 #. type: textblock
9816 #: ../src/guestfs-actions.pod:1739
9817 msgid ""
9818 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9819 msgstr ""
9820
9821 # type: verbatim
9822 #. type: verbatim
9823 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1180
9824 #, no-wrap
9825 msgid ""
9826 " a\n"
9827 " b\n"
9828 " c\n"
9829 " c/d\n"
9830 "\n"
9831 msgstr ""
9832
9833 # type: textblock
9834 #. type: textblock
9835 #: ../src/guestfs-actions.pod:1747 ../fish/guestfish-actions.pod:1185
9836 msgid "If C<directory> is not a directory, then this command returns an error."
9837 msgstr ""
9838
9839 # type: textblock
9840 #. type: textblock
9841 #: ../src/guestfs-actions.pod:1750 ../fish/guestfish-actions.pod:1188
9842 msgid "The returned list is sorted."
9843 msgstr ""
9844
9845 # type: textblock
9846 #. type: textblock
9847 #: ../src/guestfs-actions.pod:1752
9848 msgid "See also C<guestfs_find0>."
9849 msgstr ""
9850
9851 # type: textblock
9852 #. type: textblock
9853 #: ../src/guestfs-actions.pod:1761 ../src/guestfs-actions.pod:4007
9854 #: ../src/guestfs-actions.pod:5550
9855 msgid "(Added in 1.0.27)"
9856 msgstr ""
9857
9858 # type: =head2
9859 #. type: =head2
9860 #: ../src/guestfs-actions.pod:1763
9861 msgid "guestfs_find0"
9862 msgstr ""
9863
9864 # type: verbatim
9865 #. type: verbatim
9866 #: ../src/guestfs-actions.pod:1765
9867 #, no-wrap
9868 msgid ""
9869 " int\n"
9870 " guestfs_find0 (guestfs_h *g,\n"
9871 "                const char *directory,\n"
9872 "                const char *files);\n"
9873 "\n"
9874 msgstr ""
9875
9876 # type: textblock
9877 #. type: textblock
9878 #: ../src/guestfs-actions.pod:1770 ../fish/guestfish-actions.pod:1199
9879 msgid ""
9880 "This command lists out all files and directories, recursively, starting at "
9881 "C<directory>, placing the resulting list in the external file called "
9882 "C<files>."
9883 msgstr ""
9884
9885 # type: textblock
9886 #. type: textblock
9887 #: ../src/guestfs-actions.pod:1774
9888 msgid ""
9889 "This command works the same way as C<guestfs_find> with the following "
9890 "exceptions:"
9891 msgstr ""
9892
9893 # type: textblock
9894 #. type: textblock
9895 #: ../src/guestfs-actions.pod:1781 ../fish/guestfish-actions.pod:1210
9896 msgid "The resulting list is written to an external file."
9897 msgstr ""
9898
9899 # type: textblock
9900 #. type: textblock
9901 #: ../src/guestfs-actions.pod:1785 ../fish/guestfish-actions.pod:1214
9902 msgid ""
9903 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9904 "L<find(1)> option I<-print0>."
9905 msgstr ""
9906
9907 # type: textblock
9908 #. type: textblock
9909 #: ../src/guestfs-actions.pod:1790 ../fish/guestfish-actions.pod:1219
9910 msgid "This command is not limited in the number of names that it can return."
9911 msgstr ""
9912
9913 # type: textblock
9914 #. type: textblock
9915 #: ../src/guestfs-actions.pod:1795 ../fish/guestfish-actions.pod:1224
9916 msgid "The result list is not sorted."
9917 msgstr ""
9918
9919 # type: textblock
9920 #. type: textblock
9921 #: ../src/guestfs-actions.pod:1801
9922 msgid "(Added in 1.0.74)"
9923 msgstr ""
9924
9925 # type: =head2
9926 #. type: =head2
9927 #: ../src/guestfs-actions.pod:1803
9928 msgid "guestfs_findfs_label"
9929 msgstr ""
9930
9931 # type: verbatim
9932 #. type: verbatim
9933 #: ../src/guestfs-actions.pod:1805
9934 #, no-wrap
9935 msgid ""
9936 " char *\n"
9937 " guestfs_findfs_label (guestfs_h *g,\n"
9938 "                       const char *label);\n"
9939 "\n"
9940 msgstr ""
9941
9942 # type: textblock
9943 #. type: textblock
9944 #: ../src/guestfs-actions.pod:1809 ../fish/guestfish-actions.pod:1234
9945 msgid ""
9946 "This command searches the filesystems and returns the one which has the "
9947 "given label.  An error is returned if no such filesystem can be found."
9948 msgstr ""
9949
9950 # type: textblock
9951 #. type: textblock
9952 #: ../src/guestfs-actions.pod:1813
9953 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9954 msgstr ""
9955
9956 # type: =head2
9957 #. type: =head2
9958 #: ../src/guestfs-actions.pod:1820
9959 msgid "guestfs_findfs_uuid"
9960 msgstr ""
9961
9962 # type: verbatim
9963 #. type: verbatim
9964 #: ../src/guestfs-actions.pod:1822
9965 #, no-wrap
9966 msgid ""
9967 " char *\n"
9968 " guestfs_findfs_uuid (guestfs_h *g,\n"
9969 "                      const char *uuid);\n"
9970 "\n"
9971 msgstr ""
9972
9973 # type: textblock
9974 #. type: textblock
9975 #: ../src/guestfs-actions.pod:1826 ../fish/guestfish-actions.pod:1244
9976 msgid ""
9977 "This command searches the filesystems and returns the one which has the "
9978 "given UUID.  An error is returned if no such filesystem can be found."
9979 msgstr ""
9980
9981 # type: textblock
9982 #. type: textblock
9983 #: ../src/guestfs-actions.pod:1830
9984 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9985 msgstr ""
9986
9987 # type: =head2
9988 #. type: =head2
9989 #: ../src/guestfs-actions.pod:1837
9990 msgid "guestfs_fsck"
9991 msgstr ""
9992
9993 # type: verbatim
9994 #. type: verbatim
9995 #: ../src/guestfs-actions.pod:1839
9996 #, no-wrap
9997 msgid ""
9998 " int\n"
9999 " guestfs_fsck (guestfs_h *g,\n"
10000 "               const char *fstype,\n"
10001 "               const char *device);\n"
10002 "\n"
10003 msgstr ""
10004
10005 # type: textblock
10006 #. type: textblock
10007 #: ../src/guestfs-actions.pod:1844 ../fish/guestfish-actions.pod:1254
10008 msgid ""
10009 "This runs the filesystem checker (fsck) on C<device> which should have "
10010 "filesystem type C<fstype>."
10011 msgstr ""
10012
10013 # type: textblock
10014 #. type: textblock
10015 #: ../src/guestfs-actions.pod:1847 ../fish/guestfish-actions.pod:1257
10016 msgid ""
10017 "The returned integer is the status.  See L<fsck(8)> for the list of status "
10018 "codes from C<fsck>."
10019 msgstr ""
10020
10021 # type: textblock
10022 #. type: textblock
10023 #: ../src/guestfs-actions.pod:1856 ../fish/guestfish-actions.pod:1266
10024 msgid "Multiple status codes can be summed together."
10025 msgstr ""
10026
10027 # type: textblock
10028 #. type: textblock
10029 #: ../src/guestfs-actions.pod:1860 ../fish/guestfish-actions.pod:1270
10030 msgid ""
10031 "A non-zero return code can mean \"success\", for example if errors have been "
10032 "corrected on the filesystem."
10033 msgstr ""
10034
10035 # type: textblock
10036 #. type: textblock
10037 #: ../src/guestfs-actions.pod:1865 ../fish/guestfish-actions.pod:1275
10038 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
10039 msgstr ""
10040
10041 # type: textblock
10042 #. type: textblock
10043 #: ../src/guestfs-actions.pod:1870 ../fish/guestfish-actions.pod:1280
10044 msgid ""
10045 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
10046 msgstr ""
10047
10048 # type: textblock
10049 #. type: textblock
10050 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:7246
10051 msgid "(Added in 1.0.16)"
10052 msgstr ""
10053
10054 # type: =head2
10055 #. type: =head2
10056 #: ../src/guestfs-actions.pod:1876
10057 msgid "guestfs_get_append"
10058 msgstr ""
10059
10060 # type: verbatim
10061 #. type: verbatim
10062 #: ../src/guestfs-actions.pod:1878
10063 #, no-wrap
10064 msgid ""
10065 " const char *\n"
10066 " guestfs_get_append (guestfs_h *g);\n"
10067 "\n"
10068 msgstr ""
10069
10070 # type: textblock
10071 #. type: textblock
10072 #: ../src/guestfs-actions.pod:1881 ../fish/guestfish-actions.pod:1286
10073 msgid ""
10074 "Return the additional kernel options which are added to the guest kernel "
10075 "command line."
10076 msgstr ""
10077
10078 # type: textblock
10079 #. type: textblock
10080 #: ../src/guestfs-actions.pod:1884 ../fish/guestfish-actions.pod:1289
10081 msgid "If C<NULL> then no options are added."
10082 msgstr ""
10083
10084 # type: textblock
10085 #. type: textblock
10086 #: ../src/guestfs-actions.pod:1886
10087 msgid ""
10088 "This function returns a string which may be NULL.  There is no way to return "
10089 "an error from this function.  The string is owned by the guest handle and "
10090 "must I<not> be freed."
10091 msgstr ""
10092
10093 # type: textblock
10094 #. type: textblock
10095 #: ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:5228
10096 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:6108
10097 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6143
10098 #: ../src/guestfs-actions.pod:6160 ../src/guestfs-actions.pod:6917
10099 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7289
10100 msgid "(Added in 1.0.26)"
10101 msgstr ""
10102
10103 #. type: =head2
10104 #: ../src/guestfs-actions.pod:1892
10105 msgid "guestfs_get_attach_method"
10106 msgstr ""
10107
10108 #. type: verbatim
10109 #: ../src/guestfs-actions.pod:1894
10110 #, no-wrap
10111 msgid ""
10112 " char *\n"
10113 " guestfs_get_attach_method (guestfs_h *g);\n"
10114 "\n"
10115 msgstr ""
10116
10117 #. type: textblock
10118 #: ../src/guestfs-actions.pod:1897
10119 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
10120 msgstr ""
10121
10122 # type: =head2
10123 #. type: =head2
10124 #: ../src/guestfs-actions.pod:1902
10125 msgid "guestfs_get_autosync"
10126 msgstr ""
10127
10128 # type: verbatim
10129 #. type: verbatim
10130 #: ../src/guestfs-actions.pod:1904
10131 #, no-wrap
10132 msgid ""
10133 " int\n"
10134 " guestfs_get_autosync (guestfs_h *g);\n"
10135 "\n"
10136 msgstr ""
10137
10138 # type: textblock
10139 #. type: textblock
10140 #: ../src/guestfs-actions.pod:1907 ../fish/guestfish-actions.pod:1301
10141 msgid "Get the autosync flag."
10142 msgstr ""
10143
10144 # type: =head2
10145 #. type: =head2
10146 #: ../src/guestfs-actions.pod:1913
10147 msgid "guestfs_get_direct"
10148 msgstr ""
10149
10150 # type: verbatim
10151 #. type: verbatim
10152 #: ../src/guestfs-actions.pod:1915
10153 #, no-wrap
10154 msgid ""
10155 " int\n"
10156 " guestfs_get_direct (guestfs_h *g);\n"
10157 "\n"
10158 msgstr ""
10159
10160 # type: textblock
10161 #. type: textblock
10162 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1307
10163 msgid "Return the direct appliance mode flag."
10164 msgstr ""
10165
10166 # type: textblock
10167 #. type: textblock
10168 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:5777
10169 msgid "(Added in 1.0.72)"
10170 msgstr ""
10171
10172 # type: =head2
10173 #. type: =head2
10174 #: ../src/guestfs-actions.pod:1924
10175 msgid "guestfs_get_e2label"
10176 msgstr ""
10177
10178 # type: verbatim
10179 #. type: verbatim
10180 #: ../src/guestfs-actions.pod:1926
10181 #, no-wrap
10182 msgid ""
10183 " char *\n"
10184 " guestfs_get_e2label (guestfs_h *g,\n"
10185 "                      const char *device);\n"
10186 "\n"
10187 msgstr ""
10188
10189 # type: textblock
10190 #. type: textblock
10191 #: ../src/guestfs-actions.pod:1930 ../fish/guestfish-actions.pod:1313
10192 msgid ""
10193 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
10194 msgstr ""
10195
10196 # type: textblock
10197 #. type: textblock
10198 #: ../src/guestfs-actions.pod:1936 ../fish/guestfish-actions.pod:1316
10199 msgid ""
10200 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
10201 msgstr ""
10202
10203 # type: textblock
10204 #. type: textblock
10205 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:1964
10206 #: ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:5814
10207 msgid "(Added in 1.0.15)"
10208 msgstr ""
10209
10210 # type: =head2
10211 #. type: =head2
10212 #: ../src/guestfs-actions.pod:1945
10213 msgid "guestfs_get_e2uuid"
10214 msgstr ""
10215
10216 # type: verbatim
10217 #. type: verbatim
10218 #: ../src/guestfs-actions.pod:1947
10219 #, no-wrap
10220 msgid ""
10221 " char *\n"
10222 " guestfs_get_e2uuid (guestfs_h *g,\n"
10223 "                     const char *device);\n"
10224 "\n"
10225 msgstr ""
10226
10227 # type: textblock
10228 #. type: textblock
10229 #: ../src/guestfs-actions.pod:1951 ../fish/guestfish-actions.pod:1327
10230 msgid ""
10231 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
10232 msgstr ""
10233
10234 # type: textblock
10235 #. type: textblock
10236 #: ../src/guestfs-actions.pod:1957 ../fish/guestfish-actions.pod:1330
10237 msgid ""
10238 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
10239 msgstr ""
10240
10241 # type: =head2
10242 #. type: =head2
10243 #: ../src/guestfs-actions.pod:1966
10244 msgid "guestfs_get_memsize"
10245 msgstr ""
10246
10247 # type: verbatim
10248 #. type: verbatim
10249 #: ../src/guestfs-actions.pod:1968
10250 #, no-wrap
10251 msgid ""
10252 " int\n"
10253 " guestfs_get_memsize (guestfs_h *g);\n"
10254 "\n"
10255 msgstr ""
10256
10257 # type: textblock
10258 #. type: textblock
10259 #: ../src/guestfs-actions.pod:1971 ../fish/guestfish-actions.pod:1341
10260 msgid ""
10261 "This gets the memory size in megabytes allocated to the qemu subprocess."
10262 msgstr ""
10263
10264 # type: textblock
10265 #. type: textblock
10266 #: ../src/guestfs-actions.pod:1974
10267 msgid ""
10268 "If C<guestfs_set_memsize> was not called on this handle, and if "
10269 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10270 "value for memsize."
10271 msgstr ""
10272
10273 # type: textblock
10274 #. type: textblock
10275 #: ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:2059
10276 #: ../src/guestfs-actions.pod:5830 ../src/guestfs-actions.pod:5937
10277 #: ../fish/guestfish-actions.pod:1348 ../fish/guestfish-actions.pod:1399
10278 #: ../fish/guestfish-actions.pod:3923 ../fish/guestfish-actions.pod:4010
10279 msgid ""
10280 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10281 msgstr ""
10282
10283 # type: textblock
10284 #. type: textblock
10285 #: ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:4298
10286 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4514
10287 #: ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4545
10288 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4575
10289 #: ../src/guestfs-actions.pod:5453 ../src/guestfs-actions.pod:5835
10290 #: ../src/guestfs-actions.pod:6082 ../src/guestfs-actions.pod:6683
10291 msgid "(Added in 1.0.55)"
10292 msgstr ""
10293
10294 # type: =head2
10295 #. type: =head2
10296 #: ../src/guestfs-actions.pod:1985
10297 msgid "guestfs_get_network"
10298 msgstr ""
10299
10300 # type: verbatim
10301 #. type: verbatim
10302 #: ../src/guestfs-actions.pod:1987
10303 #, no-wrap
10304 msgid ""
10305 " int\n"
10306 " guestfs_get_network (guestfs_h *g);\n"
10307 "\n"
10308 msgstr ""
10309
10310 # type: textblock
10311 #. type: textblock
10312 #: ../src/guestfs-actions.pod:1990 ../fish/guestfish-actions.pod:1355
10313 msgid "This returns the enable network flag."
10314 msgstr ""
10315
10316 # type: textblock
10317 #. type: textblock
10318 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:5854
10319 msgid "(Added in 1.5.4)"
10320 msgstr ""
10321
10322 # type: =head2
10323 #. type: =head2
10324 #: ../src/guestfs-actions.pod:1996
10325 msgid "guestfs_get_path"
10326 msgstr ""
10327
10328 # type: verbatim
10329 #. type: verbatim
10330 #: ../src/guestfs-actions.pod:1998
10331 #, no-wrap
10332 msgid ""
10333 " const char *\n"
10334 " guestfs_get_path (guestfs_h *g);\n"
10335 "\n"
10336 msgstr ""
10337
10338 # type: textblock
10339 #. type: textblock
10340 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1361
10341 msgid "Return the current search path."
10342 msgstr ""
10343
10344 # type: textblock
10345 #. type: textblock
10346 #: ../src/guestfs-actions.pod:2003 ../fish/guestfish-actions.pod:1363
10347 msgid ""
10348 "This is always non-NULL.  If it wasn't set already, then this will return "
10349 "the default path."
10350 msgstr ""
10351
10352 # type: textblock
10353 #. type: textblock
10354 #: ../src/guestfs-actions.pod:2006 ../src/guestfs-actions.pod:2035
10355 msgid ""
10356 "This function returns a string, or NULL on error.  The string is owned by "
10357 "the guest handle and must I<not> be freed."
10358 msgstr ""
10359
10360 # type: =head2
10361 #. type: =head2
10362 #: ../src/guestfs-actions.pod:2011
10363 msgid "guestfs_get_pid"
10364 msgstr ""
10365
10366 # type: verbatim
10367 #. type: verbatim
10368 #: ../src/guestfs-actions.pod:2013
10369 #, no-wrap
10370 msgid ""
10371 " int\n"
10372 " guestfs_get_pid (guestfs_h *g);\n"
10373 "\n"
10374 msgstr ""
10375
10376 # type: textblock
10377 #. type: textblock
10378 #: ../src/guestfs-actions.pod:2016 ../fish/guestfish-actions.pod:1372
10379 msgid ""
10380 "Return the process ID of the qemu subprocess.  If there is no qemu "
10381 "subprocess, then this will return an error."
10382 msgstr ""
10383
10384 # type: textblock
10385 #. type: textblock
10386 #: ../src/guestfs-actions.pod:2019 ../fish/guestfish-actions.pod:1375
10387 msgid "This is an internal call used for debugging and testing."
10388 msgstr ""
10389
10390 # type: textblock
10391 #. type: textblock
10392 #: ../src/guestfs-actions.pod:2023
10393 msgid "(Added in 1.0.56)"
10394 msgstr ""
10395
10396 # type: =head2
10397 #. type: =head2
10398 #: ../src/guestfs-actions.pod:2025
10399 msgid "guestfs_get_qemu"
10400 msgstr ""
10401
10402 # type: verbatim
10403 #. type: verbatim
10404 #: ../src/guestfs-actions.pod:2027
10405 #, no-wrap
10406 msgid ""
10407 " const char *\n"
10408 " guestfs_get_qemu (guestfs_h *g);\n"
10409 "\n"
10410 msgstr ""
10411
10412 # type: textblock
10413 #. type: textblock
10414 #: ../src/guestfs-actions.pod:2030 ../fish/guestfish-actions.pod:1381
10415 msgid "Return the current qemu binary."
10416 msgstr ""
10417
10418 # type: textblock
10419 #. type: textblock
10420 #: ../src/guestfs-actions.pod:2032 ../fish/guestfish-actions.pod:1383
10421 msgid ""
10422 "This is always non-NULL.  If it wasn't set already, then this will return "
10423 "the default qemu binary name."
10424 msgstr ""
10425
10426 # type: textblock
10427 #. type: textblock
10428 #: ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:5899
10429 msgid "(Added in 1.0.6)"
10430 msgstr ""
10431
10432 # type: =head2
10433 #. type: =head2
10434 #: ../src/guestfs-actions.pod:2040
10435 msgid "guestfs_get_recovery_proc"
10436 msgstr ""
10437
10438 # type: verbatim
10439 #. type: verbatim
10440 #: ../src/guestfs-actions.pod:2042
10441 #, no-wrap
10442 msgid ""
10443 " int\n"
10444 " guestfs_get_recovery_proc (guestfs_h *g);\n"
10445 "\n"
10446 msgstr ""
10447
10448 # type: textblock
10449 #. type: textblock
10450 #: ../src/guestfs-actions.pod:2045 ../fish/guestfish-actions.pod:1390
10451 msgid "Return the recovery process enabled flag."
10452 msgstr ""
10453
10454 # type: textblock
10455 #. type: textblock
10456 #: ../src/guestfs-actions.pod:2049 ../src/guestfs-actions.pod:3408
10457 #: ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:4105
10458 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:5158
10459 #: ../src/guestfs-actions.pod:5501 ../src/guestfs-actions.pod:5923
10460 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6606
10461 #: ../src/guestfs-actions.pod:6798
10462 msgid "(Added in 1.0.77)"
10463 msgstr ""
10464
10465 # type: =head2
10466 #. type: =head2
10467 #: ../src/guestfs-actions.pod:2051
10468 msgid "guestfs_get_selinux"
10469 msgstr ""
10470
10471 # type: verbatim
10472 #. type: verbatim
10473 #: ../src/guestfs-actions.pod:2053
10474 #, no-wrap
10475 msgid ""
10476 " int\n"
10477 " guestfs_get_selinux (guestfs_h *g);\n"
10478 "\n"
10479 msgstr ""
10480
10481 # type: textblock
10482 #. type: textblock
10483 #: ../src/guestfs-actions.pod:2056
10484 msgid ""
10485 "This returns the current setting of the selinux flag which is passed to the "
10486 "appliance at boot time.  See C<guestfs_set_selinux>."
10487 msgstr ""
10488
10489 # type: textblock
10490 #. type: textblock
10491 #: ../src/guestfs-actions.pod:2064 ../src/guestfs-actions.pod:2127
10492 #: ../src/guestfs-actions.pod:5942 ../src/guestfs-actions.pod:6000
10493 msgid "(Added in 1.0.67)"
10494 msgstr ""
10495
10496 # type: =head2
10497 #. type: =head2
10498 #: ../src/guestfs-actions.pod:2066
10499 msgid "guestfs_get_state"
10500 msgstr ""
10501
10502 # type: verbatim
10503 #. type: verbatim
10504 #: ../src/guestfs-actions.pod:2068
10505 #, no-wrap
10506 msgid ""
10507 " int\n"
10508 " guestfs_get_state (guestfs_h *g);\n"
10509 "\n"
10510 msgstr ""
10511
10512 # type: textblock
10513 #. type: textblock
10514 #: ../src/guestfs-actions.pod:2071 ../fish/guestfish-actions.pod:1406
10515 msgid ""
10516 "This returns the current state as an opaque integer.  This is only useful "
10517 "for printing debug and internal error messages."
10518 msgstr ""
10519
10520 # type: textblock
10521 #. type: textblock
10522 #: ../src/guestfs-actions.pod:2074 ../src/guestfs-actions.pod:3211
10523 #: ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3301
10524 #: ../src/guestfs-actions.pod:3328 ../fish/guestfish-actions.pod:1409
10525 #: ../fish/guestfish-actions.pod:2253 ../fish/guestfish-actions.pod:2271
10526 #: ../fish/guestfish-actions.pod:2309 ../fish/guestfish-actions.pod:2325
10527 msgid "For more information on states, see L<guestfs(3)>."
10528 msgstr ""
10529
10530 # type: =head2
10531 #. type: =head2
10532 #: ../src/guestfs-actions.pod:2080
10533 msgid "guestfs_get_trace"
10534 msgstr ""
10535
10536 # type: verbatim
10537 #. type: verbatim
10538 #: ../src/guestfs-actions.pod:2082
10539 #, no-wrap
10540 msgid ""
10541 " int\n"
10542 " guestfs_get_trace (guestfs_h *g);\n"
10543 "\n"
10544 msgstr ""
10545
10546 # type: textblock
10547 #. type: textblock
10548 #: ../src/guestfs-actions.pod:2085 ../fish/guestfish-actions.pod:1415
10549 msgid "Return the command trace flag."
10550 msgstr ""
10551
10552 # type: =head2
10553 #. type: =head2
10554 #: ../src/guestfs-actions.pod:2091
10555 msgid "guestfs_get_umask"
10556 msgstr ""
10557
10558 # type: verbatim
10559 #. type: verbatim
10560 #: ../src/guestfs-actions.pod:2093
10561 #, no-wrap
10562 msgid ""
10563 " int\n"
10564 " guestfs_get_umask (guestfs_h *g);\n"
10565 "\n"
10566 msgstr ""
10567
10568 # type: textblock
10569 #. type: textblock
10570 #: ../src/guestfs-actions.pod:2096
10571 msgid ""
10572 "Return the current umask.  By default the umask is C<022> unless it has been "
10573 "set by calling C<guestfs_umask>."
10574 msgstr ""
10575
10576 # type: =head2
10577 #. type: =head2
10578 #: ../src/guestfs-actions.pod:2103
10579 msgid "guestfs_get_verbose"
10580 msgstr ""
10581
10582 # type: verbatim
10583 #. type: verbatim
10584 #: ../src/guestfs-actions.pod:2105
10585 #, no-wrap
10586 msgid ""
10587 " int\n"
10588 " guestfs_get_verbose (guestfs_h *g);\n"
10589 "\n"
10590 msgstr ""
10591
10592 # type: textblock
10593 #. type: textblock
10594 #: ../src/guestfs-actions.pod:2108 ../fish/guestfish-actions.pod:1428
10595 msgid "This returns the verbose messages flag."
10596 msgstr ""
10597
10598 # type: =head2
10599 #. type: =head2
10600 #: ../src/guestfs-actions.pod:2114
10601 msgid "guestfs_getcon"
10602 msgstr ""
10603
10604 # type: verbatim
10605 #. type: verbatim
10606 #: ../src/guestfs-actions.pod:2116
10607 #, no-wrap
10608 msgid ""
10609 " char *\n"
10610 " guestfs_getcon (guestfs_h *g);\n"
10611 "\n"
10612 msgstr ""
10613
10614 # type: textblock
10615 #. type: textblock
10616 #: ../src/guestfs-actions.pod:2119 ../fish/guestfish-actions.pod:1434
10617 msgid "This gets the SELinux security context of the daemon."
10618 msgstr ""
10619
10620 # type: textblock
10621 #. type: textblock
10622 #: ../src/guestfs-actions.pod:2121
10623 msgid ""
10624 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10625 msgstr ""
10626
10627 # type: =head2
10628 #. type: =head2
10629 #: ../src/guestfs-actions.pod:2129
10630 msgid "guestfs_getxattr"
10631 msgstr ""
10632
10633 # type: verbatim
10634 #. type: verbatim
10635 #: ../src/guestfs-actions.pod:2131
10636 #, no-wrap
10637 msgid ""
10638 " char *\n"
10639 " guestfs_getxattr (guestfs_h *g,\n"
10640 "                   const char *path,\n"
10641 "                   const char *name,\n"
10642 "                   size_t *size_r);\n"
10643 "\n"
10644 msgstr ""
10645
10646 # type: textblock
10647 #. type: textblock
10648 #: ../src/guestfs-actions.pod:2137
10649 msgid ""
10650 "Get a single extended attribute from file C<path> named C<name>.  This call "
10651 "follows symlinks.  If you want to lookup an extended attribute for the "
10652 "symlink itself, use C<guestfs_lgetxattr>."
10653 msgstr ""
10654
10655 # type: textblock
10656 #. type: textblock
10657 #: ../src/guestfs-actions.pod:2141 ../src/guestfs-actions.pod:3422
10658 msgid ""
10659 "Normally it is better to get all extended attributes from a file in one go "
10660 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10661 "implementations are buggy and do not provide a way to list out attributes.  "
10662 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10663 "extended attributes you want in advance and call this function."
10664 msgstr ""
10665
10666 # type: textblock
10667 #. type: textblock
10668 #: ../src/guestfs-actions.pod:2148 ../src/guestfs-actions.pod:3429
10669 #: ../fish/guestfish-actions.pod:1454 ../fish/guestfish-actions.pod:2390
10670 msgid ""
10671 "Extended attribute values are blobs of binary data.  If there is no extended "
10672 "attribute named C<name>, this returns an error."
10673 msgstr ""
10674
10675 # type: textblock
10676 #. type: textblock
10677 #: ../src/guestfs-actions.pod:2151
10678 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10679 msgstr ""
10680
10681 # type: textblock
10682 #. type: textblock
10683 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2344
10684 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:5151
10685 #: ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5358
10686 msgid ""
10687 "This function returns a buffer, or NULL on error.  The size of the returned "
10688 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10689 "after use>."
10690 msgstr ""
10691
10692 #. type: textblock
10693 #: ../src/guestfs-actions.pod:2157 ../src/guestfs-actions.pod:3438
10694 msgid "(Added in 1.7.24)"
10695 msgstr ""
10696
10697 # type: =head2
10698 #. type: =head2
10699 #: ../src/guestfs-actions.pod:2159
10700 msgid "guestfs_getxattrs"
10701 msgstr ""
10702
10703 # type: verbatim
10704 #. type: verbatim
10705 #: ../src/guestfs-actions.pod:2161
10706 #, no-wrap
10707 msgid ""
10708 " struct guestfs_xattr_list *\n"
10709 " guestfs_getxattrs (guestfs_h *g,\n"
10710 "                    const char *path);\n"
10711 "\n"
10712 msgstr ""
10713
10714 # type: textblock
10715 #. type: textblock
10716 #: ../src/guestfs-actions.pod:2165 ../fish/guestfish-actions.pod:1463
10717 msgid ""
10718 "This call lists the extended attributes of the file or directory C<path>."
10719 msgstr ""
10720
10721 # type: textblock
10722 #. type: textblock
10723 #: ../src/guestfs-actions.pod:2168 ../fish/guestfish-actions.pod:1466
10724 msgid ""
10725 "At the system call level, this is a combination of the L<listxattr(2)> and "
10726 "L<getxattr(2)> calls."
10727 msgstr ""
10728
10729 # type: textblock
10730 #. type: textblock
10731 #: ../src/guestfs-actions.pod:2171
10732 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10733 msgstr ""
10734
10735 # type: textblock
10736 #. type: textblock
10737 #: ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:3450
10738 #: ../src/guestfs-actions.pod:4101
10739 msgid ""
10740 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10741 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10742 msgstr ""
10743
10744 # type: textblock
10745 #. type: textblock
10746 #: ../src/guestfs-actions.pod:2177 ../src/guestfs-actions.pod:3454
10747 #: ../src/guestfs-actions.pod:3619 ../src/guestfs-actions.pod:3655
10748 #: ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:6019
10749 #: ../src/guestfs-actions.pod:7354
10750 msgid "(Added in 1.0.59)"
10751 msgstr ""
10752
10753 # type: =head2
10754 #. type: =head2
10755 #: ../src/guestfs-actions.pod:2179
10756 msgid "guestfs_glob_expand"
10757 msgstr ""
10758
10759 # type: verbatim
10760 #. type: verbatim
10761 #: ../src/guestfs-actions.pod:2181
10762 #, no-wrap
10763 msgid ""
10764 " char **\n"
10765 " guestfs_glob_expand (guestfs_h *g,\n"
10766 "                      const char *pattern);\n"
10767 "\n"
10768 msgstr ""
10769
10770 # type: textblock
10771 #. type: textblock
10772 #: ../src/guestfs-actions.pod:2185 ../fish/guestfish-actions.pod:1475
10773 msgid ""
10774 "This command searches for all the pathnames matching C<pattern> according to "
10775 "the wildcard expansion rules used by the shell."
10776 msgstr ""
10777
10778 # type: textblock
10779 #. type: textblock
10780 #: ../src/guestfs-actions.pod:2189 ../fish/guestfish-actions.pod:1479
10781 msgid ""
10782 "If no paths match, then this returns an empty list (note: not an error)."
10783 msgstr ""
10784
10785 # type: textblock
10786 #. type: textblock
10787 #: ../src/guestfs-actions.pod:2192 ../fish/guestfish-actions.pod:1482
10788 msgid ""
10789 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10790 "GLOB_BRACE>.  See that manual page for more details."
10791 msgstr ""
10792
10793 # type: textblock
10794 #. type: textblock
10795 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:6184
10796 #: ../src/guestfs-actions.pod:6201
10797 msgid "(Added in 1.0.50)"
10798 msgstr ""
10799
10800 # type: =head2
10801 #. type: =head2
10802 #: ../src/guestfs-actions.pod:2202
10803 msgid "guestfs_grep"
10804 msgstr ""
10805
10806 # type: verbatim
10807 #. type: verbatim
10808 #: ../src/guestfs-actions.pod:2204
10809 #, no-wrap
10810 msgid ""
10811 " char **\n"
10812 " guestfs_grep (guestfs_h *g,\n"
10813 "               const char *regex,\n"
10814 "               const char *path);\n"
10815 "\n"
10816 msgstr ""
10817
10818 # type: textblock
10819 #. type: textblock
10820 #: ../src/guestfs-actions.pod:2209 ../fish/guestfish-actions.pod:1490
10821 msgid "This calls the external C<grep> program and returns the matching lines."
10822 msgstr ""
10823
10824 # type: =head2
10825 #. type: =head2
10826 #: ../src/guestfs-actions.pod:2221
10827 msgid "guestfs_grepi"
10828 msgstr ""
10829
10830 # type: verbatim
10831 #. type: verbatim
10832 #: ../src/guestfs-actions.pod:2223
10833 #, no-wrap
10834 msgid ""
10835 " char **\n"
10836 " guestfs_grepi (guestfs_h *g,\n"
10837 "                const char *regex,\n"
10838 "                const char *path);\n"
10839 "\n"
10840 msgstr ""
10841
10842 # type: textblock
10843 #. type: textblock
10844 #: ../src/guestfs-actions.pod:2228 ../fish/guestfish-actions.pod:1500
10845 msgid ""
10846 "This calls the external C<grep -i> program and returns the matching lines."
10847 msgstr ""
10848
10849 # type: =head2
10850 #. type: =head2
10851 #: ../src/guestfs-actions.pod:2240
10852 msgid "guestfs_grub_install"
10853 msgstr ""
10854
10855 # type: verbatim
10856 #. type: verbatim
10857 #: ../src/guestfs-actions.pod:2242
10858 #, no-wrap
10859 msgid ""
10860 " int\n"
10861 " guestfs_grub_install (guestfs_h *g,\n"
10862 "                       const char *root,\n"
10863 "                       const char *device);\n"
10864 "\n"
10865 msgstr ""
10866
10867 # type: textblock
10868 #. type: textblock
10869 #: ../src/guestfs-actions.pod:2247 ../fish/guestfish-actions.pod:1510
10870 msgid ""
10871 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10872 "the root directory being C<root>."
10873 msgstr ""
10874
10875 # type: textblock
10876 #. type: textblock
10877 #: ../src/guestfs-actions.pod:2250 ../fish/guestfish-actions.pod:1513
10878 msgid ""
10879 "Note: If grub-install reports the error \"No suitable drive was found in the "
10880 "generated device map.\" it may be that you need to create a C</boot/grub/"
10881 "device.map> file first that contains the mapping between grub device names "
10882 "and Linux device names.  It is usually sufficient to create a file "
10883 "containing:"
10884 msgstr ""
10885
10886 # type: verbatim
10887 #. type: verbatim
10888 #: ../src/guestfs-actions.pod:2257 ../fish/guestfish-actions.pod:1520
10889 #, no-wrap
10890 msgid ""
10891 " (hd0) /dev/vda\n"
10892 "\n"
10893 msgstr ""
10894
10895 # type: textblock
10896 #. type: textblock
10897 #: ../src/guestfs-actions.pod:2259 ../fish/guestfish-actions.pod:1522
10898 msgid "replacing C</dev/vda> with the name of the installation device."
10899 msgstr ""
10900
10901 # type: textblock
10902 #. type: textblock
10903 #: ../src/guestfs-actions.pod:2263
10904 msgid "(Added in 1.0.17)"
10905 msgstr ""
10906
10907 # type: =head2
10908 #. type: =head2
10909 #: ../src/guestfs-actions.pod:2265
10910 msgid "guestfs_head"
10911 msgstr ""
10912
10913 # type: verbatim
10914 #. type: verbatim
10915 #: ../src/guestfs-actions.pod:2267
10916 #, no-wrap
10917 msgid ""
10918 " char **\n"
10919 " guestfs_head (guestfs_h *g,\n"
10920 "               const char *path);\n"
10921 "\n"
10922 msgstr ""
10923
10924 # type: textblock
10925 #. type: textblock
10926 #: ../src/guestfs-actions.pod:2271 ../fish/guestfish-actions.pod:1528
10927 msgid ""
10928 "This command returns up to the first 10 lines of a file as a list of strings."
10929 msgstr ""
10930
10931 # type: =head2
10932 #. type: =head2
10933 #: ../src/guestfs-actions.pod:2283
10934 msgid "guestfs_head_n"
10935 msgstr ""
10936
10937 # type: verbatim
10938 #. type: verbatim
10939 #: ../src/guestfs-actions.pod:2285
10940 #, no-wrap
10941 msgid ""
10942 " char **\n"
10943 " guestfs_head_n (guestfs_h *g,\n"
10944 "                 int nrlines,\n"
10945 "                 const char *path);\n"
10946 "\n"
10947 msgstr ""
10948
10949 # type: textblock
10950 #. type: textblock
10951 #: ../src/guestfs-actions.pod:2290 ../fish/guestfish-actions.pod:1538
10952 msgid ""
10953 "If the parameter C<nrlines> is a positive number, this returns the first "
10954 "C<nrlines> lines of the file C<path>."
10955 msgstr ""
10956
10957 # type: textblock
10958 #. type: textblock
10959 #: ../src/guestfs-actions.pod:2293 ../fish/guestfish-actions.pod:1541
10960 msgid ""
10961 "If the parameter C<nrlines> is a negative number, this returns lines from "
10962 "the file C<path>, excluding the last C<nrlines> lines."
10963 msgstr ""
10964
10965 # type: textblock
10966 #. type: textblock
10967 #: ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:6481
10968 #: ../fish/guestfish-actions.pod:1544 ../fish/guestfish-actions.pod:4360
10969 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10970 msgstr ""
10971
10972 # type: =head2
10973 #. type: =head2
10974 #: ../src/guestfs-actions.pod:2307
10975 msgid "guestfs_hexdump"
10976 msgstr ""
10977
10978 # type: verbatim
10979 #. type: verbatim
10980 #: ../src/guestfs-actions.pod:2309
10981 #, no-wrap
10982 msgid ""
10983 " char *\n"
10984 " guestfs_hexdump (guestfs_h *g,\n"
10985 "                  const char *path);\n"
10986 "\n"
10987 msgstr ""
10988
10989 # type: textblock
10990 #. type: textblock
10991 #: ../src/guestfs-actions.pod:2313 ../fish/guestfish-actions.pod:1553
10992 msgid ""
10993 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10994 "readable, canonical hex dump of the file."
10995 msgstr ""
10996
10997 # type: textblock
10998 #. type: textblock
10999 #: ../src/guestfs-actions.pod:2322 ../src/guestfs-actions.pod:6265
11000 #: ../src/guestfs-actions.pod:6320
11001 msgid "(Added in 1.0.22)"
11002 msgstr ""
11003
11004 # type: =head2
11005 #. type: =head2
11006 #: ../src/guestfs-actions.pod:2324
11007 msgid "guestfs_initrd_cat"
11008 msgstr ""
11009
11010 # type: verbatim
11011 #. type: verbatim
11012 #: ../src/guestfs-actions.pod:2326
11013 #, no-wrap
11014 msgid ""
11015 " char *\n"
11016 " guestfs_initrd_cat (guestfs_h *g,\n"
11017 "                     const char *initrdpath,\n"
11018 "                     const char *filename,\n"
11019 "                     size_t *size_r);\n"
11020 "\n"
11021 msgstr ""
11022
11023 # type: textblock
11024 #. type: textblock
11025 #: ../src/guestfs-actions.pod:2332 ../fish/guestfish-actions.pod:1563
11026 msgid ""
11027 "This command unpacks the file C<filename> from the initrd file called "
11028 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
11029 "character."
11030 msgstr ""
11031
11032 # type: textblock
11033 #. type: textblock
11034 #: ../src/guestfs-actions.pod:2336 ../fish/guestfish-actions.pod:1567
11035 msgid ""
11036 "For example, in guestfish you could use the following command to examine the "
11037 "boot script (usually called C</init>)  contained in a Linux initrd or "
11038 "initramfs image:"
11039 msgstr ""
11040
11041 # type: verbatim
11042 #. type: verbatim
11043 #: ../src/guestfs-actions.pod:2340 ../fish/guestfish-actions.pod:1571
11044 #, no-wrap
11045 msgid ""
11046 " initrd-cat /boot/initrd-<version>.img init\n"
11047 "\n"
11048 msgstr ""
11049
11050 # type: textblock
11051 #. type: textblock
11052 #: ../src/guestfs-actions.pod:2342
11053 msgid "See also C<guestfs_initrd_list>."
11054 msgstr ""
11055
11056 # type: =head2
11057 #. type: =head2
11058 #: ../src/guestfs-actions.pod:2353
11059 msgid "guestfs_initrd_list"
11060 msgstr ""
11061
11062 # type: verbatim
11063 #. type: verbatim
11064 #: ../src/guestfs-actions.pod:2355
11065 #, no-wrap
11066 msgid ""
11067 " char **\n"
11068 " guestfs_initrd_list (guestfs_h *g,\n"
11069 "                      const char *path);\n"
11070 "\n"
11071 msgstr ""
11072
11073 # type: textblock
11074 #. type: textblock
11075 #: ../src/guestfs-actions.pod:2359 ../fish/guestfish-actions.pod:1582
11076 msgid "This command lists out files contained in an initrd."
11077 msgstr ""
11078
11079 # type: textblock
11080 #. type: textblock
11081 #: ../src/guestfs-actions.pod:2361 ../fish/guestfish-actions.pod:1584
11082 msgid ""
11083 "The files are listed without any initial C</> character.  The files are "
11084 "listed in the order they appear (not necessarily alphabetical).  Directory "
11085 "names are listed as separate items."
11086 msgstr ""
11087
11088 # type: textblock
11089 #. type: textblock
11090 #: ../src/guestfs-actions.pod:2365 ../fish/guestfish-actions.pod:1588
11091 msgid ""
11092 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
11093 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
11094 "files)."
11095 msgstr ""
11096
11097 # type: =head2
11098 #. type: =head2
11099 #: ../src/guestfs-actions.pod:2375
11100 msgid "guestfs_inotify_add_watch"
11101 msgstr ""
11102
11103 # type: verbatim
11104 #. type: verbatim
11105 #: ../src/guestfs-actions.pod:2377
11106 #, no-wrap
11107 msgid ""
11108 " int64_t\n"
11109 " guestfs_inotify_add_watch (guestfs_h *g,\n"
11110 "                            const char *path,\n"
11111 "                            int mask);\n"
11112 "\n"
11113 msgstr ""
11114
11115 # type: textblock
11116 #. type: textblock
11117 #: ../src/guestfs-actions.pod:2382 ../fish/guestfish-actions.pod:1596
11118 msgid "Watch C<path> for the events listed in C<mask>."
11119 msgstr ""
11120
11121 # type: textblock
11122 #. type: textblock
11123 #: ../src/guestfs-actions.pod:2384 ../fish/guestfish-actions.pod:1598
11124 msgid ""
11125 "Note that if C<path> is a directory then events within that directory are "
11126 "watched, but this does I<not> happen recursively (in subdirectories)."
11127 msgstr ""
11128
11129 # type: textblock
11130 #. type: textblock
11131 #: ../src/guestfs-actions.pod:2388 ../fish/guestfish-actions.pod:1602
11132 msgid ""
11133 "Note for non-C or non-Linux callers: the inotify events are defined by the "
11134 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
11135 msgstr ""
11136
11137 # type: =head2
11138 #. type: =head2
11139 #: ../src/guestfs-actions.pod:2396
11140 msgid "guestfs_inotify_close"
11141 msgstr ""
11142
11143 # type: verbatim
11144 #. type: verbatim
11145 #: ../src/guestfs-actions.pod:2398
11146 #, no-wrap
11147 msgid ""
11148 " int\n"
11149 " guestfs_inotify_close (guestfs_h *g);\n"
11150 "\n"
11151 msgstr ""
11152
11153 # type: textblock
11154 #. type: textblock
11155 #: ../src/guestfs-actions.pod:2401 ../fish/guestfish-actions.pod:1610
11156 msgid ""
11157 "This closes the inotify handle which was previously opened by inotify_init.  "
11158 "It removes all watches, throws away any pending events, and deallocates all "
11159 "resources."
11160 msgstr ""
11161
11162 # type: =head2
11163 #. type: =head2
11164 #: ../src/guestfs-actions.pod:2409
11165 msgid "guestfs_inotify_files"
11166 msgstr ""
11167
11168 # type: verbatim
11169 #. type: verbatim
11170 #: ../src/guestfs-actions.pod:2411
11171 #, no-wrap
11172 msgid ""
11173 " char **\n"
11174 " guestfs_inotify_files (guestfs_h *g);\n"
11175 "\n"
11176 msgstr ""
11177
11178 # type: textblock
11179 #. type: textblock
11180 #: ../src/guestfs-actions.pod:2414
11181 msgid ""
11182 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
11183 "returns a list of pathnames of objects that were touched.  The returned "
11184 "pathnames are sorted and deduplicated."
11185 msgstr ""
11186
11187 # type: =head2
11188 #. type: =head2
11189 #: ../src/guestfs-actions.pod:2424
11190 msgid "guestfs_inotify_init"
11191 msgstr ""
11192
11193 # type: verbatim
11194 #. type: verbatim
11195 #: ../src/guestfs-actions.pod:2426
11196 #, no-wrap
11197 msgid ""
11198 " int\n"
11199 " guestfs_inotify_init (guestfs_h *g,\n"
11200 "                       int maxevents);\n"
11201 "\n"
11202 msgstr ""
11203
11204 # type: textblock
11205 #. type: textblock
11206 #: ../src/guestfs-actions.pod:2430 ../fish/guestfish-actions.pod:1626
11207 msgid ""
11208 "This command creates a new inotify handle.  The inotify subsystem can be "
11209 "used to notify events which happen to objects in the guest filesystem."
11210 msgstr ""
11211
11212 # type: textblock
11213 #. type: textblock
11214 #: ../src/guestfs-actions.pod:2434
11215 msgid ""
11216 "C<maxevents> is the maximum number of events which will be queued up between "
11217 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
11218 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
11219 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
11220 "throws away events, but records the fact that it threw them away by setting "
11221 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
11222 "C<guestfs_inotify_read>)."
11223 msgstr ""
11224
11225 # type: textblock
11226 #. type: textblock
11227 #: ../src/guestfs-actions.pod:2444
11228 msgid ""
11229 "Before any events are generated, you have to add some watches to the "
11230 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
11231 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
11232 msgstr ""
11233
11234 # type: textblock
11235 #. type: textblock
11236 #: ../src/guestfs-actions.pod:2450
11237 msgid ""
11238 "Queued up events should be read periodically by calling "
11239 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
11240 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
11241 "often enough then you risk the internal queue overflowing."
11242 msgstr ""
11243
11244 # type: textblock
11245 #. type: textblock
11246 #: ../src/guestfs-actions.pod:2457
11247 msgid ""
11248 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
11249 "This also removes any watches automatically."
11250 msgstr ""
11251
11252 # type: textblock
11253 #. type: textblock
11254 #: ../src/guestfs-actions.pod:2461 ../fish/guestfish-actions.pod:1657
11255 msgid ""
11256 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
11257 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
11258 "that there is one global inotify handle per libguestfs instance."
11259 msgstr ""
11260
11261 # type: =head2
11262 #. type: =head2
11263 #: ../src/guestfs-actions.pod:2470
11264 msgid "guestfs_inotify_read"
11265 msgstr ""
11266
11267 # type: verbatim
11268 #. type: verbatim
11269 #: ../src/guestfs-actions.pod:2472
11270 #, no-wrap
11271 msgid ""
11272 " struct guestfs_inotify_event_list *\n"
11273 " guestfs_inotify_read (guestfs_h *g);\n"
11274 "\n"
11275 msgstr ""
11276
11277 # type: textblock
11278 #. type: textblock
11279 #: ../src/guestfs-actions.pod:2475 ../fish/guestfish-actions.pod:1666
11280 msgid ""
11281 "Return the complete queue of events that have happened since the previous "
11282 "read call."
11283 msgstr ""
11284
11285 # type: textblock
11286 #. type: textblock
11287 #: ../src/guestfs-actions.pod:2478 ../fish/guestfish-actions.pod:1669
11288 msgid "If no events have happened, this returns an empty list."
11289 msgstr ""
11290
11291 # type: textblock
11292 #. type: textblock
11293 #: ../src/guestfs-actions.pod:2480 ../fish/guestfish-actions.pod:1671
11294 msgid ""
11295 "I<Note>: In order to make sure that all events have been read, you must call "
11296 "this function repeatedly until it returns an empty list.  The reason is that "
11297 "the call will read events up to the maximum appliance-to-host message size "
11298 "and leave remaining events in the queue."
11299 msgstr ""
11300
11301 # type: textblock
11302 #. type: textblock
11303 #: ../src/guestfs-actions.pod:2486
11304 msgid ""
11305 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
11306 "there was an error.  I<The caller must call "
11307 "C<guestfs_free_inotify_event_list> after use>."
11308 msgstr ""
11309
11310 # type: =head2
11311 #. type: =head2
11312 #: ../src/guestfs-actions.pod:2492
11313 msgid "guestfs_inotify_rm_watch"
11314 msgstr ""
11315
11316 # type: verbatim
11317 #. type: verbatim
11318 #: ../src/guestfs-actions.pod:2494
11319 #, no-wrap
11320 msgid ""
11321 " int\n"
11322 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
11323 "                           int wd);\n"
11324 "\n"
11325 msgstr ""
11326
11327 # type: textblock
11328 #. type: textblock
11329 #: ../src/guestfs-actions.pod:2498
11330 msgid ""
11331 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
11332 msgstr ""
11333
11334 # type: =head2
11335 #. type: =head2
11336 #: ../src/guestfs-actions.pod:2505
11337 msgid "guestfs_inspect_get_arch"
11338 msgstr ""
11339
11340 # type: verbatim
11341 #. type: verbatim
11342 #: ../src/guestfs-actions.pod:2507
11343 #, no-wrap
11344 msgid ""
11345 " char *\n"
11346 " guestfs_inspect_get_arch (guestfs_h *g,\n"
11347 "                           const char *root);\n"
11348 "\n"
11349 msgstr ""
11350
11351 # type: textblock
11352 #. type: textblock
11353 #: ../src/guestfs-actions.pod:2511 ../src/guestfs-actions.pod:2534
11354 #: ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:2641
11355 #: ../src/guestfs-actions.pod:2680 ../src/guestfs-actions.pod:2702
11356 #: ../src/guestfs-actions.pod:2729 ../src/guestfs-actions.pod:2750
11357 #: ../src/guestfs-actions.pod:2787 ../src/guestfs-actions.pod:2816
11358 #: ../src/guestfs-actions.pod:2847 ../src/guestfs-actions.pod:2871
11359 #: ../src/guestfs-actions.pod:2926 ../src/guestfs-actions.pod:2968
11360 #: ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3008
11361 #: ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3044
11362 msgid ""
11363 "This function should only be called with a root device string as returned by "
11364 "C<guestfs_inspect_os>."
11365 msgstr ""
11366
11367 # type: textblock
11368 #. type: textblock
11369 #: ../src/guestfs-actions.pod:2514
11370 msgid ""
11371 "This returns the architecture of the inspected operating system.  The "
11372 "possible return values are listed under C<guestfs_file_architecture>."
11373 msgstr ""
11374
11375 # type: textblock
11376 #. type: textblock
11377 #: ../src/guestfs-actions.pod:2518 ../fish/guestfish-actions.pod:1695
11378 msgid ""
11379 "If the architecture could not be determined, then the string C<unknown> is "
11380 "returned."
11381 msgstr ""
11382
11383 # type: textblock
11384 #. type: textblock
11385 #: ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2602
11386 #: ../src/guestfs-actions.pod:2669 ../src/guestfs-actions.pod:2689
11387 #: ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2803
11388 #: ../src/guestfs-actions.pod:2834 ../src/guestfs-actions.pod:2858
11389 #: ../src/guestfs-actions.pod:2912 ../src/guestfs-actions.pod:2955
11390 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:2998
11391 #: ../src/guestfs-actions.pod:3015 ../src/guestfs-actions.pod:3034
11392 #: ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3178
11393 #: ../fish/guestfish-actions.pod:1698 ../fish/guestfish-actions.pod:1772
11394 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1839
11395 #: ../fish/guestfish-actions.pod:1860 ../fish/guestfish-actions.pod:1924
11396 #: ../fish/guestfish-actions.pod:1948 ../fish/guestfish-actions.pod:1965
11397 #: ../fish/guestfish-actions.pod:2008 ../fish/guestfish-actions.pod:2043
11398 #: ../fish/guestfish-actions.pod:2059 ../fish/guestfish-actions.pod:2072
11399 #: ../fish/guestfish-actions.pod:2085 ../fish/guestfish-actions.pod:2100
11400 #: ../fish/guestfish-actions.pod:2199 ../fish/guestfish-actions.pod:2233
11401 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
11402 msgstr ""
11403
11404 # type: =head2
11405 #. type: =head2
11406 #: ../src/guestfs-actions.pod:2528
11407 msgid "guestfs_inspect_get_distro"
11408 msgstr ""
11409
11410 # type: verbatim
11411 #. type: verbatim
11412 #: ../src/guestfs-actions.pod:2530
11413 #, no-wrap
11414 msgid ""
11415 " char *\n"
11416 " guestfs_inspect_get_distro (guestfs_h *g,\n"
11417 "                             const char *root);\n"
11418 "\n"
11419 msgstr ""
11420
11421 # type: textblock
11422 #. type: textblock
11423 #: ../src/guestfs-actions.pod:2537 ../fish/guestfish-actions.pod:1707
11424 msgid ""
11425 "This returns the distro (distribution) of the inspected operating system."
11426 msgstr ""
11427
11428 # type: textblock
11429 #. type: textblock
11430 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1710
11431 msgid "Currently defined distros are:"
11432 msgstr ""
11433
11434 # type: =item
11435 #. type: =item
11436 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1714
11437 msgid "\"archlinux\""
11438 msgstr ""
11439
11440 # type: textblock
11441 #. type: textblock
11442 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1716
11443 msgid "Arch Linux."
11444 msgstr ""
11445
11446 # type: =item
11447 #. type: =item
11448 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1718
11449 msgid "\"debian\""
11450 msgstr ""
11451
11452 # type: textblock
11453 #. type: textblock
11454 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1720
11455 msgid "Debian."
11456 msgstr ""
11457
11458 # type: =item
11459 #. type: =item
11460 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1722
11461 msgid "\"fedora\""
11462 msgstr ""
11463
11464 # type: textblock
11465 #. type: textblock
11466 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1724
11467 msgid "Fedora."
11468 msgstr ""
11469
11470 # type: =item
11471 #. type: =item
11472 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1726
11473 msgid "\"gentoo\""
11474 msgstr ""
11475
11476 # type: textblock
11477 #. type: textblock
11478 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1728
11479 msgid "Gentoo."
11480 msgstr ""
11481
11482 # type: =item
11483 #. type: =item
11484 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1730
11485 msgid "\"linuxmint\""
11486 msgstr ""
11487
11488 # type: textblock
11489 #. type: textblock
11490 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1732
11491 msgid "Linux Mint."
11492 msgstr ""
11493
11494 # type: =item
11495 #. type: =item
11496 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1734
11497 msgid "\"mandriva\""
11498 msgstr ""
11499
11500 # type: textblock
11501 #. type: textblock
11502 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1736
11503 msgid "Mandriva."
11504 msgstr ""
11505
11506 # type: =item
11507 #. type: =item
11508 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1738
11509 msgid "\"meego\""
11510 msgstr ""
11511
11512 # type: textblock
11513 #. type: textblock
11514 #: ../src/guestfs-actions.pod:2570 ../fish/guestfish-actions.pod:1740
11515 msgid "MeeGo."
11516 msgstr ""
11517
11518 # type: =item
11519 #. type: =item
11520 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1742
11521 msgid "\"pardus\""
11522 msgstr ""
11523
11524 # type: textblock
11525 #. type: textblock
11526 #: ../src/guestfs-actions.pod:2574 ../fish/guestfish-actions.pod:1744
11527 msgid "Pardus."
11528 msgstr ""
11529
11530 # type: =item
11531 #. type: =item
11532 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1746
11533 msgid "\"redhat-based\""
11534 msgstr ""
11535
11536 # type: textblock
11537 #. type: textblock
11538 #: ../src/guestfs-actions.pod:2578 ../fish/guestfish-actions.pod:1748
11539 msgid "Some Red Hat-derived distro."
11540 msgstr ""
11541
11542 # type: =item
11543 #. type: =item
11544 #: ../src/guestfs-actions.pod:2580 ../fish/guestfish-actions.pod:1750
11545 msgid "\"rhel\""
11546 msgstr ""
11547
11548 # type: textblock
11549 #. type: textblock
11550 #: ../src/guestfs-actions.pod:2582 ../fish/guestfish-actions.pod:1752
11551 msgid "Red Hat Enterprise Linux and some derivatives."
11552 msgstr ""
11553
11554 # type: =item
11555 #. type: =item
11556 #: ../src/guestfs-actions.pod:2584 ../fish/guestfish-actions.pod:1754
11557 msgid "\"ubuntu\""
11558 msgstr ""
11559
11560 # type: textblock
11561 #. type: textblock
11562 #: ../src/guestfs-actions.pod:2586 ../fish/guestfish-actions.pod:1756
11563 msgid "Ubuntu."
11564 msgstr ""
11565
11566 # type: =item
11567 #. type: =item
11568 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:2660
11569 #: ../src/guestfs-actions.pod:2946 ../fish/guestfish-actions.pod:1758
11570 #: ../fish/guestfish-actions.pod:1815 ../fish/guestfish-actions.pod:2034
11571 msgid "\"unknown\""
11572 msgstr ""
11573
11574 # type: textblock
11575 #. type: textblock
11576 #: ../src/guestfs-actions.pod:2590 ../fish/guestfish-actions.pod:1760
11577 msgid "The distro could not be determined."
11578 msgstr ""
11579
11580 # type: =item
11581 #. type: =item
11582 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2938
11583 #: ../fish/guestfish-actions.pod:1762 ../fish/guestfish-actions.pod:2026
11584 msgid "\"windows\""
11585 msgstr ""
11586
11587 # type: textblock
11588 #. type: textblock
11589 #: ../src/guestfs-actions.pod:2594 ../fish/guestfish-actions.pod:1764
11590 msgid ""
11591 "Windows does not have distributions.  This string is returned if the OS type "
11592 "is Windows."
11593 msgstr ""
11594
11595 # type: textblock
11596 #. type: textblock
11597 #: ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2666
11598 #: ../src/guestfs-actions.pod:2952 ../fish/guestfish-actions.pod:1769
11599 #: ../fish/guestfish-actions.pod:1821 ../fish/guestfish-actions.pod:2040
11600 msgid ""
11601 "Future versions of libguestfs may return other strings here.  The caller "
11602 "should be prepared to handle any string."
11603 msgstr ""
11604
11605 # type: =head2
11606 #. type: =head2
11607 #: ../src/guestfs-actions.pod:2609
11608 msgid "guestfs_inspect_get_filesystems"
11609 msgstr ""
11610
11611 # type: verbatim
11612 #. type: verbatim
11613 #: ../src/guestfs-actions.pod:2611
11614 #, no-wrap
11615 msgid ""
11616 " char **\n"
11617 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11618 "                                  const char *root);\n"
11619 "\n"
11620 msgstr ""
11621
11622 # type: textblock
11623 #. type: textblock
11624 #: ../src/guestfs-actions.pod:2618 ../fish/guestfish-actions.pod:1781
11625 msgid ""
11626 "This returns a list of all the filesystems that we think are associated with "
11627 "this operating system.  This includes the root filesystem, other ordinary "
11628 "filesystems, and non-mounted devices like swap partitions."
11629 msgstr ""
11630
11631 # type: textblock
11632 #. type: textblock
11633 #: ../src/guestfs-actions.pod:2623 ../fish/guestfish-actions.pod:1786
11634 msgid ""
11635 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11636 "to be shared between operating systems."
11637 msgstr ""
11638
11639 # type: textblock
11640 #. type: textblock
11641 #: ../src/guestfs-actions.pod:2626
11642 msgid ""
11643 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11644 "C<guestfs_inspect_get_mountpoints>."
11645 msgstr ""
11646
11647 #. type: =head2
11648 #: ../src/guestfs-actions.pod:2635
11649 msgid "guestfs_inspect_get_format"
11650 msgstr ""
11651
11652 #. type: verbatim
11653 #: ../src/guestfs-actions.pod:2637
11654 #, no-wrap
11655 msgid ""
11656 " char *\n"
11657 " guestfs_inspect_get_format (guestfs_h *g,\n"
11658 "                             const char *root);\n"
11659 "\n"
11660 msgstr ""
11661
11662 #. type: textblock
11663 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1799
11664 msgid ""
11665 "This returns the format of the inspected operating system.  You can use it "
11666 "to detect install images, live CDs and similar."
11667 msgstr ""
11668
11669 #. type: textblock
11670 #: ../src/guestfs-actions.pod:2647 ../fish/guestfish-actions.pod:1802
11671 msgid "Currently defined formats are:"
11672 msgstr ""
11673
11674 #. type: =item
11675 #: ../src/guestfs-actions.pod:2651 ../fish/guestfish-actions.pod:1806
11676 msgid "\"installed\""
11677 msgstr ""
11678
11679 #. type: textblock
11680 #: ../src/guestfs-actions.pod:2653 ../fish/guestfish-actions.pod:1808
11681 msgid "This is an installed operating system."
11682 msgstr ""
11683
11684 #. type: =item
11685 #: ../src/guestfs-actions.pod:2655 ../fish/guestfish-actions.pod:1810
11686 msgid "\"installer\""
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../src/guestfs-actions.pod:2657 ../fish/guestfish-actions.pod:1812
11691 msgid ""
11692 "The disk image being inspected is not an installed operating system, but a "
11693 "I<bootable> install disk, live CD, or similar."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../src/guestfs-actions.pod:2662 ../fish/guestfish-actions.pod:1817
11698 msgid "The format of this disk image is not known."
11699 msgstr ""
11700
11701 # type: =head2
11702 #. type: =head2
11703 #: ../src/guestfs-actions.pod:2674
11704 msgid "guestfs_inspect_get_hostname"
11705 msgstr ""
11706
11707 # type: verbatim
11708 #. type: verbatim
11709 #: ../src/guestfs-actions.pod:2676
11710 #, no-wrap
11711 msgid ""
11712 " char *\n"
11713 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11714 "                               const char *root);\n"
11715 "\n"
11716 msgstr ""
11717
11718 # type: textblock
11719 #. type: textblock
11720 #: ../src/guestfs-actions.pod:2683 ../fish/guestfish-actions.pod:1833
11721 msgid ""
11722 "This function returns the hostname of the operating system as found by "
11723 "inspection of the guest's configuration files."
11724 msgstr ""
11725
11726 # type: textblock
11727 #. type: textblock
11728 #: ../src/guestfs-actions.pod:2686 ../fish/guestfish-actions.pod:1836
11729 msgid ""
11730 "If the hostname could not be determined, then the string C<unknown> is "
11731 "returned."
11732 msgstr ""
11733
11734 # type: textblock
11735 #. type: textblock
11736 #: ../src/guestfs-actions.pod:2694
11737 msgid "(Added in 1.7.9)"
11738 msgstr ""
11739
11740 # type: =head2
11741 #. type: =head2
11742 #: ../src/guestfs-actions.pod:2696
11743 msgid "guestfs_inspect_get_major_version"
11744 msgstr ""
11745
11746 # type: verbatim
11747 #. type: verbatim
11748 #: ../src/guestfs-actions.pod:2698
11749 #, no-wrap
11750 msgid ""
11751 " int\n"
11752 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11753 "                                    const char *root);\n"
11754 "\n"
11755 msgstr ""
11756
11757 # type: textblock
11758 #. type: textblock
11759 #: ../src/guestfs-actions.pod:2705 ../fish/guestfish-actions.pod:1848
11760 msgid ""
11761 "This returns the major version number of the inspected operating system."
11762 msgstr ""
11763
11764 # type: textblock
11765 #. type: textblock
11766 #: ../src/guestfs-actions.pod:2708 ../fish/guestfish-actions.pod:1851
11767 msgid ""
11768 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11769 "popular public names used by the operating system.  Notably the operating "
11770 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11771 "1).  You can find out the real versions corresponding to releases of Windows "
11772 "by consulting Wikipedia or MSDN."
11773 msgstr ""
11774
11775 # type: textblock
11776 #. type: textblock
11777 #: ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2735
11778 #: ../fish/guestfish-actions.pod:1858 ../fish/guestfish-actions.pod:1872
11779 msgid "If the version could not be determined, then C<0> is returned."
11780 msgstr ""
11781
11782 # type: =head2
11783 #. type: =head2
11784 #: ../src/guestfs-actions.pod:2723
11785 msgid "guestfs_inspect_get_minor_version"
11786 msgstr ""
11787
11788 # type: verbatim
11789 #. type: verbatim
11790 #: ../src/guestfs-actions.pod:2725
11791 #, no-wrap
11792 msgid ""
11793 " int\n"
11794 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11795 "                                    const char *root);\n"
11796 "\n"
11797 msgstr ""
11798
11799 # type: textblock
11800 #. type: textblock
11801 #: ../src/guestfs-actions.pod:2732 ../fish/guestfish-actions.pod:1869
11802 msgid ""
11803 "This returns the minor version number of the inspected operating system."
11804 msgstr ""
11805
11806 # type: textblock
11807 #. type: textblock
11808 #: ../src/guestfs-actions.pod:2737
11809 msgid ""
11810 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11811 "C<guestfs_inspect_get_major_version>."
11812 msgstr ""
11813
11814 # type: =head2
11815 #. type: =head2
11816 #: ../src/guestfs-actions.pod:2744
11817 msgid "guestfs_inspect_get_mountpoints"
11818 msgstr ""
11819
11820 # type: verbatim
11821 #. type: verbatim
11822 #: ../src/guestfs-actions.pod:2746
11823 #, no-wrap
11824 msgid ""
11825 " char **\n"
11826 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11827 "                                  const char *root);\n"
11828 "\n"
11829 msgstr ""
11830
11831 #. type: textblock
11832 #: ../src/guestfs-actions.pod:2753 ../fish/guestfish-actions.pod:1884
11833 msgid ""
11834 "This returns a hash of where we think the filesystems associated with this "
11835 "operating system should be mounted.  Callers should note that this is at "
11836 "best an educated guess made by reading configuration files such as C</etc/"
11837 "fstab>.  I<In particular note> that this may return filesystems which are "
11838 "non-existent or not mountable and callers should be prepared to handle or "
11839 "ignore failures if they try to mount them."
11840 msgstr ""
11841
11842 # type: textblock
11843 #. type: textblock
11844 #: ../src/guestfs-actions.pod:2762 ../fish/guestfish-actions.pod:1893
11845 msgid ""
11846 "Each element in the returned hashtable has a key which is the path of the "
11847 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11848 "mounted there (eg. C</dev/sda1>)."
11849 msgstr ""
11850
11851 # type: textblock
11852 #. type: textblock
11853 #: ../src/guestfs-actions.pod:2767 ../fish/guestfish-actions.pod:1898
11854 msgid ""
11855 "Non-mounted devices such as swap devices are I<not> returned in this list."
11856 msgstr ""
11857
11858 # type: textblock
11859 #. type: textblock
11860 #: ../src/guestfs-actions.pod:2770
11861 msgid ""
11862 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11863 "C<guestfs_inspect_get_filesystems>."
11864 msgstr ""
11865
11866 # type: textblock
11867 #. type: textblock
11868 #: ../src/guestfs-actions.pod:2773 ../src/guestfs-actions.pod:3507
11869 #: ../src/guestfs-actions.pod:4717 ../src/guestfs-actions.pod:6622
11870 msgid ""
11871 "This function returns a NULL-terminated array of strings, or NULL if there "
11872 "was an error.  The array of strings will always have length C<2n+1>, where "
11873 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11874 "caller must free the strings and the array after use>."
11875 msgstr ""
11876
11877 # type: =head2
11878 #. type: =head2
11879 #: ../src/guestfs-actions.pod:2781
11880 msgid "guestfs_inspect_get_package_format"
11881 msgstr ""
11882
11883 # type: verbatim
11884 #. type: verbatim
11885 #: ../src/guestfs-actions.pod:2783
11886 #, no-wrap
11887 msgid ""
11888 " char *\n"
11889 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11890 "                                     const char *root);\n"
11891 "\n"
11892 msgstr ""
11893
11894 # type: textblock
11895 #. type: textblock
11896 #: ../src/guestfs-actions.pod:2790
11897 msgid ""
11898 "This function and C<guestfs_inspect_get_package_management> return the "
11899 "package format and package management tool used by the inspected operating "
11900 "system.  For example for Fedora these functions would return C<rpm> (package "
11901 "format) and C<yum> (package management)."
11902 msgstr ""
11903
11904 # type: textblock
11905 #. type: textblock
11906 #: ../src/guestfs-actions.pod:2796 ../fish/guestfish-actions.pod:1917
11907 msgid ""
11908 "This returns the string C<unknown> if we could not determine the package "
11909 "format I<or> if the operating system does not have a real packaging system "
11910 "(eg. Windows)."
11911 msgstr ""
11912
11913 # type: textblock
11914 #. type: textblock
11915 #: ../src/guestfs-actions.pod:2800 ../fish/guestfish-actions.pod:1921
11916 msgid ""
11917 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11918 "Future versions of libguestfs may return other strings."
11919 msgstr ""
11920
11921 # type: textblock
11922 #. type: textblock
11923 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2839
11924 msgid "(Added in 1.7.5)"
11925 msgstr ""
11926
11927 # type: =head2
11928 #. type: =head2
11929 #: ../src/guestfs-actions.pod:2810
11930 msgid "guestfs_inspect_get_package_management"
11931 msgstr ""
11932
11933 # type: verbatim
11934 #. type: verbatim
11935 #: ../src/guestfs-actions.pod:2812
11936 #, no-wrap
11937 msgid ""
11938 " char *\n"
11939 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11940 "                                         const char *root);\n"
11941 "\n"
11942 msgstr ""
11943
11944 # type: textblock
11945 #. type: textblock
11946 #: ../src/guestfs-actions.pod:2819
11947 msgid ""
11948 "C<guestfs_inspect_get_package_format> and this function return the package "
11949 "format and package management tool used by the inspected operating system.  "
11950 "For example for Fedora these functions would return C<rpm> (package format) "
11951 "and C<yum> (package management)."
11952 msgstr ""
11953
11954 # type: textblock
11955 #. type: textblock
11956 #: ../src/guestfs-actions.pod:2825 ../fish/guestfish-actions.pod:1939
11957 msgid ""
11958 "This returns the string C<unknown> if we could not determine the package "
11959 "management tool I<or> if the operating system does not have a real packaging "
11960 "system (eg. Windows)."
11961 msgstr ""
11962
11963 # type: textblock
11964 #. type: textblock
11965 #: ../src/guestfs-actions.pod:2829 ../fish/guestfish-actions.pod:1943
11966 msgid ""
11967 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11968 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11969 "libguestfs may return other strings."
11970 msgstr ""
11971
11972 # type: =head2
11973 #. type: =head2
11974 #: ../src/guestfs-actions.pod:2841
11975 msgid "guestfs_inspect_get_product_name"
11976 msgstr ""
11977
11978 # type: verbatim
11979 #. type: verbatim
11980 #: ../src/guestfs-actions.pod:2843
11981 #, no-wrap
11982 msgid ""
11983 " char *\n"
11984 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11985 "                                   const char *root);\n"
11986 "\n"
11987 msgstr ""
11988
11989 # type: textblock
11990 #. type: textblock
11991 #: ../src/guestfs-actions.pod:2850 ../fish/guestfish-actions.pod:1957
11992 msgid ""
11993 "This returns the product name of the inspected operating system.  The "
11994 "product name is generally some freeform string which can be displayed to the "
11995 "user, but should not be parsed by programs."
11996 msgstr ""
11997
11998 # type: textblock
11999 #. type: textblock
12000 #: ../src/guestfs-actions.pod:2855 ../fish/guestfish-actions.pod:1962
12001 msgid ""
12002 "If the product name could not be determined, then the string C<unknown> is "
12003 "returned."
12004 msgstr ""
12005
12006 #. type: =head2
12007 #: ../src/guestfs-actions.pod:2865
12008 msgid "guestfs_inspect_get_product_variant"
12009 msgstr ""
12010
12011 #. type: verbatim
12012 #: ../src/guestfs-actions.pod:2867
12013 #, no-wrap
12014 msgid ""
12015 " char *\n"
12016 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
12017 "                                      const char *root);\n"
12018 "\n"
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../src/guestfs-actions.pod:2874 ../fish/guestfish-actions.pod:1974
12023 msgid "This returns the product variant of the inspected operating system."
12024 msgstr ""
12025
12026 #. type: textblock
12027 #: ../src/guestfs-actions.pod:2877 ../fish/guestfish-actions.pod:1977
12028 msgid ""
12029 "For Windows guests, this returns the contents of the Registry key C<HKLM"
12030 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
12031 "is usually a string such as C<Client> or C<Server> (other values are "
12032 "possible).  This can be used to distinguish consumer and enterprise versions "
12033 "of Windows that have the same version number (for example, Windows 7 and "
12034 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
12035 "the latter is C<Server>)."
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../src/guestfs-actions.pod:2886 ../fish/guestfish-actions.pod:1986
12040 msgid ""
12041 "For enterprise Linux guests, in future we intend this to return the product "
12042 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
12043 "implemented at present."
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../src/guestfs-actions.pod:2890 ../fish/guestfish-actions.pod:1990
12048 msgid ""
12049 "If the product variant could not be determined, then the string C<unknown> "
12050 "is returned."
12051 msgstr ""
12052
12053 #. type: textblock
12054 #: ../src/guestfs-actions.pod:2893
12055 msgid ""
12056 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
12057 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
12058 msgstr ""
12059
12060 # type: =head2
12061 #. type: =head2
12062 #: ../src/guestfs-actions.pod:2900
12063 msgid "guestfs_inspect_get_roots"
12064 msgstr ""
12065
12066 # type: verbatim
12067 #. type: verbatim
12068 #: ../src/guestfs-actions.pod:2902
12069 #, no-wrap
12070 msgid ""
12071 " char **\n"
12072 " guestfs_inspect_get_roots (guestfs_h *g);\n"
12073 "\n"
12074 msgstr ""
12075
12076 # type: textblock
12077 #. type: textblock
12078 #: ../src/guestfs-actions.pod:2905
12079 msgid ""
12080 "This function is a convenient way to get the list of root devices, as "
12081 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
12082 "the whole inspection process."
12083 msgstr ""
12084
12085 # type: textblock
12086 #. type: textblock
12087 #: ../src/guestfs-actions.pod:2909
12088 msgid ""
12089 "This returns an empty list if either no root devices were found or the "
12090 "caller has not called C<guestfs_inspect_os>."
12091 msgstr ""
12092
12093 # type: textblock
12094 #. type: textblock
12095 #: ../src/guestfs-actions.pod:2918
12096 msgid "(Added in 1.7.3)"
12097 msgstr ""
12098
12099 # type: =head2
12100 #. type: =head2
12101 #: ../src/guestfs-actions.pod:2920
12102 msgid "guestfs_inspect_get_type"
12103 msgstr ""
12104
12105 # type: verbatim
12106 #. type: verbatim
12107 #: ../src/guestfs-actions.pod:2922
12108 #, no-wrap
12109 msgid ""
12110 " char *\n"
12111 " guestfs_inspect_get_type (guestfs_h *g,\n"
12112 "                           const char *root);\n"
12113 "\n"
12114 msgstr ""
12115
12116 # type: textblock
12117 #. type: textblock
12118 #: ../src/guestfs-actions.pod:2929 ../fish/guestfish-actions.pod:2017
12119 msgid ""
12120 "This returns the type of the inspected operating system.  Currently defined "
12121 "types are:"
12122 msgstr ""
12123
12124 # type: =item
12125 #. type: =item
12126 #: ../src/guestfs-actions.pod:2934 ../fish/guestfish-actions.pod:2022
12127 msgid "\"linux\""
12128 msgstr ""
12129
12130 # type: textblock
12131 #. type: textblock
12132 #: ../src/guestfs-actions.pod:2936 ../fish/guestfish-actions.pod:2024
12133 msgid "Any Linux-based operating system."
12134 msgstr ""
12135
12136 # type: textblock
12137 #. type: textblock
12138 #: ../src/guestfs-actions.pod:2940 ../fish/guestfish-actions.pod:2028
12139 msgid "Any Microsoft Windows operating system."
12140 msgstr ""
12141
12142 # type: =item
12143 #. type: =item
12144 #: ../src/guestfs-actions.pod:2942 ../fish/guestfish-actions.pod:2030
12145 msgid "\"freebsd\""
12146 msgstr ""
12147
12148 # type: textblock
12149 #. type: textblock
12150 #: ../src/guestfs-actions.pod:2944 ../fish/guestfish-actions.pod:2032
12151 msgid "FreeBSD."
12152 msgstr ""
12153
12154 # type: textblock
12155 #. type: textblock
12156 #: ../src/guestfs-actions.pod:2948 ../fish/guestfish-actions.pod:2036
12157 msgid "The operating system type could not be determined."
12158 msgstr ""
12159
12160 # type: =head2
12161 #. type: =head2
12162 #: ../src/guestfs-actions.pod:2962
12163 msgid "guestfs_inspect_get_windows_systemroot"
12164 msgstr ""
12165
12166 # type: verbatim
12167 #. type: verbatim
12168 #: ../src/guestfs-actions.pod:2964
12169 #, no-wrap
12170 msgid ""
12171 " char *\n"
12172 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
12173 "                                         const char *root);\n"
12174 "\n"
12175 msgstr ""
12176
12177 # type: textblock
12178 #. type: textblock
12179 #: ../src/guestfs-actions.pod:2971 ../fish/guestfish-actions.pod:2052
12180 msgid ""
12181 "This returns the Windows systemroot of the inspected guest.  The systemroot "
12182 "is a directory path such as C</WINDOWS>."
12183 msgstr ""
12184
12185 # type: textblock
12186 #. type: textblock
12187 #: ../src/guestfs-actions.pod:2974 ../fish/guestfish-actions.pod:2055
12188 msgid ""
12189 "This call assumes that the guest is Windows and that the systemroot could be "
12190 "determined by inspection.  If this is not the case then an error is returned."
12191 msgstr ""
12192
12193 # type: textblock
12194 #. type: textblock
12195 #: ../src/guestfs-actions.pod:2983
12196 msgid "(Added in 1.5.25)"
12197 msgstr ""
12198
12199 #. type: =head2
12200 #: ../src/guestfs-actions.pod:2985
12201 msgid "guestfs_inspect_is_live"
12202 msgstr ""
12203
12204 #. type: verbatim
12205 #: ../src/guestfs-actions.pod:2987
12206 #, no-wrap
12207 msgid ""
12208 " int\n"
12209 " guestfs_inspect_is_live (guestfs_h *g,\n"
12210 "                          const char *root);\n"
12211 "\n"
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../src/guestfs-actions.pod:2994
12216 msgid ""
12217 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12218 "disk), then this returns true if a live image was detected on the disk."
12219 msgstr ""
12220
12221 #. type: =head2
12222 #: ../src/guestfs-actions.pod:3002
12223 msgid "guestfs_inspect_is_multipart"
12224 msgstr ""
12225
12226 #. type: verbatim
12227 #: ../src/guestfs-actions.pod:3004
12228 #, no-wrap
12229 msgid ""
12230 " int\n"
12231 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
12232 "                               const char *root);\n"
12233 "\n"
12234 msgstr ""
12235
12236 #. type: textblock
12237 #: ../src/guestfs-actions.pod:3011
12238 msgid ""
12239 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12240 "disk), then this returns true if the disk is part of a set."
12241 msgstr ""
12242
12243 #. type: =head2
12244 #: ../src/guestfs-actions.pod:3019
12245 msgid "guestfs_inspect_is_netinst"
12246 msgstr ""
12247
12248 #. type: verbatim
12249 #: ../src/guestfs-actions.pod:3021
12250 #, no-wrap
12251 msgid ""
12252 " int\n"
12253 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
12254 "                             const char *root);\n"
12255 "\n"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../src/guestfs-actions.pod:3028
12260 msgid ""
12261 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
12262 "disk), then this returns true if the disk is a network installer, ie. not a "
12263 "self-contained install CD but one which is likely to require network access "
12264 "to complete the install."
12265 msgstr ""
12266
12267 # type: =head2
12268 #. type: =head2
12269 #: ../src/guestfs-actions.pod:3038
12270 msgid "guestfs_inspect_list_applications"
12271 msgstr ""
12272
12273 # type: verbatim
12274 #. type: verbatim
12275 #: ../src/guestfs-actions.pod:3040
12276 #, no-wrap
12277 msgid ""
12278 " struct guestfs_application_list *\n"
12279 " guestfs_inspect_list_applications (guestfs_h *g,\n"
12280 "                                    const char *root);\n"
12281 "\n"
12282 msgstr ""
12283
12284 # type: textblock
12285 #. type: textblock
12286 #: ../src/guestfs-actions.pod:3047 ../fish/guestfish-actions.pod:2109
12287 msgid "Return the list of applications installed in the operating system."
12288 msgstr ""
12289
12290 # type: textblock
12291 #. type: textblock
12292 #: ../src/guestfs-actions.pod:3049
12293 msgid ""
12294 "I<Note:> This call works differently from other parts of the inspection "
12295 "API.  You have to call C<guestfs_inspect_os>, then "
12296 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
12297 "this.  Listing applications is a significantly more difficult operation "
12298 "which requires access to the full filesystem.  Also note that unlike the "
12299 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
12300 "the libguestfs handle, this call actually reads parts of the mounted "
12301 "filesystems during the call."
12302 msgstr ""
12303
12304 # type: textblock
12305 #. type: textblock
12306 #: ../src/guestfs-actions.pod:3059 ../fish/guestfish-actions.pod:2121
12307 msgid ""
12308 "This returns an empty list if the inspection code was not able to determine "
12309 "the list of applications."
12310 msgstr ""
12311
12312 # type: textblock
12313 #. type: textblock
12314 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2124
12315 msgid "The application structure contains the following fields:"
12316 msgstr ""
12317
12318 # type: =item
12319 #. type: =item
12320 #: ../src/guestfs-actions.pod:3066 ../fish/guestfish-actions.pod:2128
12321 msgid "C<app_name>"
12322 msgstr ""
12323
12324 # type: textblock
12325 #. type: textblock
12326 #: ../src/guestfs-actions.pod:3068 ../fish/guestfish-actions.pod:2130
12327 msgid ""
12328 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12329 "guests, this is the package name."
12330 msgstr ""
12331
12332 # type: =item
12333 #. type: =item
12334 #: ../src/guestfs-actions.pod:3071 ../fish/guestfish-actions.pod:2133
12335 msgid "C<app_display_name>"
12336 msgstr ""
12337
12338 # type: textblock
12339 #. type: textblock
12340 #: ../src/guestfs-actions.pod:3073 ../fish/guestfish-actions.pod:2135
12341 msgid ""
12342 "The display name of the application, sometimes localized to the install "
12343 "language of the guest operating system."
12344 msgstr ""
12345
12346 # type: textblock
12347 #. type: textblock
12348 #: ../src/guestfs-actions.pod:3076 ../fish/guestfish-actions.pod:2138
12349 msgid ""
12350 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12351 "to display something can use C<app_name> instead."
12352 msgstr ""
12353
12354 # type: =item
12355 #. type: =item
12356 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2141
12357 msgid "C<app_epoch>"
12358 msgstr ""
12359
12360 # type: textblock
12361 #. type: textblock
12362 #: ../src/guestfs-actions.pod:3081 ../fish/guestfish-actions.pod:2143
12363 msgid ""
12364 "For package managers which use epochs, this contains the epoch of the "
12365 "package (an integer).  If unavailable, this is returned as C<0>."
12366 msgstr ""
12367
12368 # type: =item
12369 #. type: =item
12370 #: ../src/guestfs-actions.pod:3084 ../fish/guestfish-actions.pod:2146
12371 msgid "C<app_version>"
12372 msgstr ""
12373
12374 # type: textblock
12375 #. type: textblock
12376 #: ../src/guestfs-actions.pod:3086 ../fish/guestfish-actions.pod:2148
12377 msgid ""
12378 "The version string of the application or package.  If unavailable this is "
12379 "returned as an empty string C<\"\">."
12380 msgstr ""
12381
12382 # type: =item
12383 #. type: =item
12384 #: ../src/guestfs-actions.pod:3089 ../fish/guestfish-actions.pod:2151
12385 msgid "C<app_release>"
12386 msgstr ""
12387
12388 # type: textblock
12389 #. type: textblock
12390 #: ../src/guestfs-actions.pod:3091 ../fish/guestfish-actions.pod:2153
12391 msgid ""
12392 "The release string of the application or package, for package managers that "
12393 "use this.  If unavailable this is returned as an empty string C<\"\">."
12394 msgstr ""
12395
12396 # type: =item
12397 #. type: =item
12398 #: ../src/guestfs-actions.pod:3095 ../fish/guestfish-actions.pod:2157
12399 msgid "C<app_install_path>"
12400 msgstr ""
12401
12402 # type: textblock
12403 #. type: textblock
12404 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2159
12405 msgid ""
12406 "The installation path of the application (on operating systems such as "
12407 "Windows which use installation paths).  This path is in the format used by "
12408 "the guest operating system, it is not a libguestfs path."
12409 msgstr ""
12410
12411 # type: textblock
12412 #. type: textblock
12413 #: ../src/guestfs-actions.pod:3102 ../fish/guestfish-actions.pod:2164
12414 msgid "If unavailable this is returned as an empty string C<\"\">."
12415 msgstr ""
12416
12417 # type: =item
12418 #. type: =item
12419 #: ../src/guestfs-actions.pod:3104 ../fish/guestfish-actions.pod:2166
12420 msgid "C<app_trans_path>"
12421 msgstr ""
12422
12423 # type: textblock
12424 #. type: textblock
12425 #: ../src/guestfs-actions.pod:3106 ../fish/guestfish-actions.pod:2168
12426 msgid ""
12427 "The install path translated into a libguestfs path.  If unavailable this is "
12428 "returned as an empty string C<\"\">."
12429 msgstr ""
12430
12431 # type: =item
12432 #. type: =item
12433 #: ../src/guestfs-actions.pod:3109 ../fish/guestfish-actions.pod:2171
12434 msgid "C<app_publisher>"
12435 msgstr ""
12436
12437 # type: textblock
12438 #. type: textblock
12439 #: ../src/guestfs-actions.pod:3111 ../fish/guestfish-actions.pod:2173
12440 msgid ""
12441 "The name of the publisher of the application, for package managers that use "
12442 "this.  If unavailable this is returned as an empty string C<\"\">."
12443 msgstr ""
12444
12445 # type: =item
12446 #. type: =item
12447 #: ../src/guestfs-actions.pod:3115 ../fish/guestfish-actions.pod:2177
12448 msgid "C<app_url>"
12449 msgstr ""
12450
12451 # type: textblock
12452 #. type: textblock
12453 #: ../src/guestfs-actions.pod:3117 ../fish/guestfish-actions.pod:2179
12454 msgid ""
12455 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12456 "returned as an empty string C<\"\">."
12457 msgstr ""
12458
12459 # type: =item
12460 #. type: =item
12461 #: ../src/guestfs-actions.pod:3120 ../fish/guestfish-actions.pod:2182
12462 msgid "C<app_source_package>"
12463 msgstr ""
12464
12465 # type: textblock
12466 #. type: textblock
12467 #: ../src/guestfs-actions.pod:3122 ../fish/guestfish-actions.pod:2184
12468 msgid ""
12469 "For packaging systems which support this, the name of the source package.  "
12470 "If unavailable this is returned as an empty string C<\"\">."
12471 msgstr ""
12472
12473 # type: =item
12474 #. type: =item
12475 #: ../src/guestfs-actions.pod:3125 ../fish/guestfish-actions.pod:2187
12476 msgid "C<app_summary>"
12477 msgstr ""
12478
12479 # type: textblock
12480 #. type: textblock
12481 #: ../src/guestfs-actions.pod:3127 ../fish/guestfish-actions.pod:2189
12482 msgid ""
12483 "A short (usually one line) description of the application or package.  If "
12484 "unavailable this is returned as an empty string C<\"\">."
12485 msgstr ""
12486
12487 # type: =item
12488 #. type: =item
12489 #: ../src/guestfs-actions.pod:3130 ../fish/guestfish-actions.pod:2192
12490 msgid "C<app_description>"
12491 msgstr ""
12492
12493 # type: textblock
12494 #. type: textblock
12495 #: ../src/guestfs-actions.pod:3132 ../fish/guestfish-actions.pod:2194
12496 msgid ""
12497 "A longer description of the application or package.  If unavailable this is "
12498 "returned as an empty string C<\"\">."
12499 msgstr ""
12500
12501 # type: textblock
12502 #. type: textblock
12503 #: ../src/guestfs-actions.pod:3139
12504 msgid ""
12505 "This function returns a C<struct guestfs_application_list *>, or NULL if "
12506 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
12507 "after use>."
12508 msgstr ""
12509
12510 # type: textblock
12511 #. type: textblock
12512 #: ../src/guestfs-actions.pod:3143
12513 msgid "(Added in 1.7.8)"
12514 msgstr ""
12515
12516 # type: =head2
12517 #. type: =head2
12518 #: ../src/guestfs-actions.pod:3145
12519 msgid "guestfs_inspect_os"
12520 msgstr ""
12521
12522 # type: verbatim
12523 #. type: verbatim
12524 #: ../src/guestfs-actions.pod:3147
12525 #, no-wrap
12526 msgid ""
12527 " char **\n"
12528 " guestfs_inspect_os (guestfs_h *g);\n"
12529 "\n"
12530 msgstr ""
12531
12532 # type: textblock
12533 #. type: textblock
12534 #: ../src/guestfs-actions.pod:3150 ../fish/guestfish-actions.pod:2205
12535 msgid ""
12536 "This function uses other libguestfs functions and certain heuristics to "
12537 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12538 "for operating systems."
12539 msgstr ""
12540
12541 # type: textblock
12542 #. type: textblock
12543 #: ../src/guestfs-actions.pod:3154 ../fish/guestfish-actions.pod:2209
12544 msgid "The list returned is empty if no operating systems were found."
12545 msgstr ""
12546
12547 # type: textblock
12548 #. type: textblock
12549 #: ../src/guestfs-actions.pod:3156 ../fish/guestfish-actions.pod:2211
12550 msgid ""
12551 "If one operating system was found, then this returns a list with a single "
12552 "element, which is the name of the root filesystem of this operating system.  "
12553 "It is also possible for this function to return a list containing more than "
12554 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12555 "element being the root filesystem of one of the operating systems."
12556 msgstr ""
12557
12558 # type: textblock
12559 #. type: textblock
12560 #: ../src/guestfs-actions.pod:3163
12561 msgid ""
12562 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
12563 "functions in order to query further information about each operating system, "
12564 "such as the name and version."
12565 msgstr ""
12566
12567 # type: textblock
12568 #. type: textblock
12569 #: ../src/guestfs-actions.pod:3168
12570 msgid ""
12571 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
12572 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
12573 "the contents.  This should be called with no disks currently mounted.  The "
12574 "function may also use Augeas, so any existing Augeas handle will be closed."
12575 msgstr ""
12576
12577 # type: textblock
12578 #. type: textblock
12579 #: ../src/guestfs-actions.pod:3174 ../fish/guestfish-actions.pod:2229
12580 msgid ""
12581 "This function cannot decrypt encrypted disks.  The caller must do that first "
12582 "(supplying the necessary keys) if the disk is encrypted."
12583 msgstr ""
12584
12585 # type: textblock
12586 #. type: textblock
12587 #: ../src/guestfs-actions.pod:3180 ../src/guestfs-actions.pod:3465
12588 #: ../src/guestfs-actions.pod:3527
12589 msgid "See also C<guestfs_list_filesystems>."
12590 msgstr ""
12591
12592 # type: =head2
12593 #. type: =head2
12594 #: ../src/guestfs-actions.pod:3188
12595 msgid "guestfs_is_blockdev"
12596 msgstr ""
12597
12598 # type: verbatim
12599 #. type: verbatim
12600 #: ../src/guestfs-actions.pod:3190
12601 #, no-wrap
12602 msgid ""
12603 " int\n"
12604 " guestfs_is_blockdev (guestfs_h *g,\n"
12605 "                      const char *path);\n"
12606 "\n"
12607 msgstr ""
12608
12609 # type: textblock
12610 #. type: textblock
12611 #: ../src/guestfs-actions.pod:3194 ../fish/guestfish-actions.pod:2241
12612 msgid ""
12613 "This returns C<true> if and only if there is a block device with the given "
12614 "C<path> name."
12615 msgstr ""
12616
12617 # type: textblock
12618 #. type: textblock
12619 #: ../src/guestfs-actions.pod:3197 ../src/guestfs-actions.pod:3226
12620 #: ../src/guestfs-actions.pod:3256 ../src/guestfs-actions.pod:3271
12621 #: ../src/guestfs-actions.pod:3287 ../src/guestfs-actions.pod:3343
12622 #: ../src/guestfs-actions.pod:3358
12623 msgid "See also C<guestfs_stat>."
12624 msgstr ""
12625
12626 # type: textblock
12627 #. type: textblock
12628 #: ../src/guestfs-actions.pod:3201 ../src/guestfs-actions.pod:3230
12629 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3347
12630 #: ../src/guestfs-actions.pod:3362
12631 msgid "(Added in 1.5.10)"
12632 msgstr ""
12633
12634 # type: =head2
12635 #. type: =head2
12636 #: ../src/guestfs-actions.pod:3203
12637 msgid "guestfs_is_busy"
12638 msgstr ""
12639
12640 # type: verbatim
12641 #. type: verbatim
12642 #: ../src/guestfs-actions.pod:3205
12643 #, no-wrap
12644 msgid ""
12645 " int\n"
12646 " guestfs_is_busy (guestfs_h *g);\n"
12647 "\n"
12648 msgstr ""
12649
12650 # type: textblock
12651 #. type: textblock
12652 #: ../src/guestfs-actions.pod:3208 ../fish/guestfish-actions.pod:2250
12653 msgid ""
12654 "This returns true iff this handle is busy processing a command (in the "
12655 "C<BUSY> state)."
12656 msgstr ""
12657
12658 # type: =head2
12659 #. type: =head2
12660 #: ../src/guestfs-actions.pod:3217
12661 msgid "guestfs_is_chardev"
12662 msgstr ""
12663
12664 # type: verbatim
12665 #. type: verbatim
12666 #: ../src/guestfs-actions.pod:3219
12667 #, no-wrap
12668 msgid ""
12669 " int\n"
12670 " guestfs_is_chardev (guestfs_h *g,\n"
12671 "                     const char *path);\n"
12672 "\n"
12673 msgstr ""
12674
12675 # type: textblock
12676 #. type: textblock
12677 #: ../src/guestfs-actions.pod:3223 ../fish/guestfish-actions.pod:2259
12678 msgid ""
12679 "This returns C<true> if and only if there is a character device with the "
12680 "given C<path> name."
12681 msgstr ""
12682
12683 # type: =head2
12684 #. type: =head2
12685 #: ../src/guestfs-actions.pod:3232
12686 msgid "guestfs_is_config"
12687 msgstr ""
12688
12689 # type: verbatim
12690 #. type: verbatim
12691 #: ../src/guestfs-actions.pod:3234
12692 #, no-wrap
12693 msgid ""
12694 " int\n"
12695 " guestfs_is_config (guestfs_h *g);\n"
12696 "\n"
12697 msgstr ""
12698
12699 # type: textblock
12700 #. type: textblock
12701 #: ../src/guestfs-actions.pod:3237 ../fish/guestfish-actions.pod:2268
12702 msgid ""
12703 "This returns true iff this handle is being configured (in the C<CONFIG> "
12704 "state)."
12705 msgstr ""
12706
12707 # type: =head2
12708 #. type: =head2
12709 #: ../src/guestfs-actions.pod:3246
12710 msgid "guestfs_is_dir"
12711 msgstr ""
12712
12713 # type: verbatim
12714 #. type: verbatim
12715 #: ../src/guestfs-actions.pod:3248
12716 #, no-wrap
12717 msgid ""
12718 " int\n"
12719 " guestfs_is_dir (guestfs_h *g,\n"
12720 "                 const char *path);\n"
12721 "\n"
12722 msgstr ""
12723
12724 # type: textblock
12725 #. type: textblock
12726 #: ../src/guestfs-actions.pod:3252 ../fish/guestfish-actions.pod:2277
12727 msgid ""
12728 "This returns C<true> if and only if there is a directory with the given "
12729 "C<path> name.  Note that it returns false for other objects like files."
12730 msgstr ""
12731
12732 # type: =head2
12733 #. type: =head2
12734 #: ../src/guestfs-actions.pod:3262
12735 msgid "guestfs_is_fifo"
12736 msgstr ""
12737
12738 # type: verbatim
12739 #. type: verbatim
12740 #: ../src/guestfs-actions.pod:3264
12741 #, no-wrap
12742 msgid ""
12743 " int\n"
12744 " guestfs_is_fifo (guestfs_h *g,\n"
12745 "                  const char *path);\n"
12746 "\n"
12747 msgstr ""
12748
12749 # type: textblock
12750 #. type: textblock
12751 #: ../src/guestfs-actions.pod:3268 ../fish/guestfish-actions.pod:2287
12752 msgid ""
12753 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12754 "given C<path> name."
12755 msgstr ""
12756
12757 # type: =head2
12758 #. type: =head2
12759 #: ../src/guestfs-actions.pod:3277
12760 msgid "guestfs_is_file"
12761 msgstr ""
12762
12763 # type: verbatim
12764 #. type: verbatim
12765 #: ../src/guestfs-actions.pod:3279
12766 #, no-wrap
12767 msgid ""
12768 " int\n"
12769 " guestfs_is_file (guestfs_h *g,\n"
12770 "                  const char *path);\n"
12771 "\n"
12772 msgstr ""
12773
12774 # type: textblock
12775 #. type: textblock
12776 #: ../src/guestfs-actions.pod:3283 ../fish/guestfish-actions.pod:2296
12777 msgid ""
12778 "This returns C<true> if and only if there is a regular file with the given "
12779 "C<path> name.  Note that it returns false for other objects like directories."
12780 msgstr ""
12781
12782 # type: =head2
12783 #. type: =head2
12784 #: ../src/guestfs-actions.pod:3293
12785 msgid "guestfs_is_launching"
12786 msgstr ""
12787
12788 # type: verbatim
12789 #. type: verbatim
12790 #: ../src/guestfs-actions.pod:3295
12791 #, no-wrap
12792 msgid ""
12793 " int\n"
12794 " guestfs_is_launching (guestfs_h *g);\n"
12795 "\n"
12796 msgstr ""
12797
12798 # type: textblock
12799 #. type: textblock
12800 #: ../src/guestfs-actions.pod:3298 ../fish/guestfish-actions.pod:2306
12801 msgid ""
12802 "This returns true iff this handle is launching the subprocess (in the "
12803 "C<LAUNCHING> state)."
12804 msgstr ""
12805
12806 # type: =head2
12807 #. type: =head2
12808 #: ../src/guestfs-actions.pod:3307
12809 msgid "guestfs_is_lv"
12810 msgstr ""
12811
12812 # type: verbatim
12813 #. type: verbatim
12814 #: ../src/guestfs-actions.pod:3309
12815 #, no-wrap
12816 msgid ""
12817 " int\n"
12818 " guestfs_is_lv (guestfs_h *g,\n"
12819 "                const char *device);\n"
12820 "\n"
12821 msgstr ""
12822
12823 # type: textblock
12824 #. type: textblock
12825 #: ../src/guestfs-actions.pod:3313 ../fish/guestfish-actions.pod:2315
12826 msgid ""
12827 "This command tests whether C<device> is a logical volume, and returns true "
12828 "iff this is the case."
12829 msgstr ""
12830
12831 # type: =head2
12832 #. type: =head2
12833 #: ../src/guestfs-actions.pod:3320
12834 msgid "guestfs_is_ready"
12835 msgstr ""
12836
12837 # type: verbatim
12838 #. type: verbatim
12839 #: ../src/guestfs-actions.pod:3322
12840 #, no-wrap
12841 msgid ""
12842 " int\n"
12843 " guestfs_is_ready (guestfs_h *g);\n"
12844 "\n"
12845 msgstr ""
12846
12847 # type: textblock
12848 #. type: textblock
12849 #: ../src/guestfs-actions.pod:3325 ../fish/guestfish-actions.pod:2322
12850 msgid ""
12851 "This returns true iff this handle is ready to accept commands (in the "
12852 "C<READY> state)."
12853 msgstr ""
12854
12855 # type: =head2
12856 #. type: =head2
12857 #: ../src/guestfs-actions.pod:3334
12858 msgid "guestfs_is_socket"
12859 msgstr ""
12860
12861 # type: verbatim
12862 #. type: verbatim
12863 #: ../src/guestfs-actions.pod:3336
12864 #, no-wrap
12865 msgid ""
12866 " int\n"
12867 " guestfs_is_socket (guestfs_h *g,\n"
12868 "                    const char *path);\n"
12869 "\n"
12870 msgstr ""
12871
12872 # type: textblock
12873 #. type: textblock
12874 #: ../src/guestfs-actions.pod:3340 ../fish/guestfish-actions.pod:2331
12875 msgid ""
12876 "This returns C<true> if and only if there is a Unix domain socket with the "
12877 "given C<path> name."
12878 msgstr ""
12879
12880 # type: =head2
12881 #. type: =head2
12882 #: ../src/guestfs-actions.pod:3349
12883 msgid "guestfs_is_symlink"
12884 msgstr ""
12885
12886 # type: verbatim
12887 #. type: verbatim
12888 #: ../src/guestfs-actions.pod:3351
12889 #, no-wrap
12890 msgid ""
12891 " int\n"
12892 " guestfs_is_symlink (guestfs_h *g,\n"
12893 "                     const char *path);\n"
12894 "\n"
12895 msgstr ""
12896
12897 # type: textblock
12898 #. type: textblock
12899 #: ../src/guestfs-actions.pod:3355 ../fish/guestfish-actions.pod:2340
12900 msgid ""
12901 "This returns C<true> if and only if there is a symbolic link with the given "
12902 "C<path> name."
12903 msgstr ""
12904
12905 # type: =head2
12906 #. type: =head2
12907 #: ../src/guestfs-actions.pod:3364
12908 msgid "guestfs_kill_subprocess"
12909 msgstr ""
12910
12911 # type: verbatim
12912 #. type: verbatim
12913 #: ../src/guestfs-actions.pod:3366
12914 #, no-wrap
12915 msgid ""
12916 " int\n"
12917 " guestfs_kill_subprocess (guestfs_h *g);\n"
12918 "\n"
12919 msgstr ""
12920
12921 # type: textblock
12922 #. type: textblock
12923 #: ../src/guestfs-actions.pod:3369 ../fish/guestfish-actions.pod:2349
12924 msgid "This kills the qemu subprocess.  You should never need to call this."
12925 msgstr ""
12926
12927 # type: =head2
12928 #. type: =head2
12929 #: ../src/guestfs-actions.pod:3375
12930 msgid "guestfs_launch"
12931 msgstr ""
12932
12933 # type: verbatim
12934 #. type: verbatim
12935 #: ../src/guestfs-actions.pod:3377
12936 #, no-wrap
12937 msgid ""
12938 " int\n"
12939 " guestfs_launch (guestfs_h *g);\n"
12940 "\n"
12941 msgstr ""
12942
12943 # type: textblock
12944 #. type: textblock
12945 #: ../src/guestfs-actions.pod:3380 ../fish/guestfish-actions.pod:2357
12946 msgid ""
12947 "Internally libguestfs is implemented by running a virtual machine using "
12948 "L<qemu(1)>."
12949 msgstr ""
12950
12951 # type: textblock
12952 #. type: textblock
12953 #: ../src/guestfs-actions.pod:3383 ../fish/guestfish-actions.pod:2360
12954 msgid ""
12955 "You should call this after configuring the handle (eg. adding drives) but "
12956 "before performing any actions."
12957 msgstr ""
12958
12959 # type: =head2
12960 #. type: =head2
12961 #: ../src/guestfs-actions.pod:3390
12962 msgid "guestfs_lchown"
12963 msgstr ""
12964
12965 # type: verbatim
12966 #. type: verbatim
12967 #: ../src/guestfs-actions.pod:3392
12968 #, no-wrap
12969 msgid ""
12970 " int\n"
12971 " guestfs_lchown (guestfs_h *g,\n"
12972 "                 int owner,\n"
12973 "                 int group,\n"
12974 "                 const char *path);\n"
12975 "\n"
12976 msgstr ""
12977
12978 # type: textblock
12979 #. type: textblock
12980 #: ../src/guestfs-actions.pod:3398
12981 msgid ""
12982 "Change the file owner to C<owner> and group to C<group>.  This is like "
12983 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12984 "changed, not the target."
12985 msgstr ""
12986
12987 # type: =head2
12988 #. type: =head2
12989 #: ../src/guestfs-actions.pod:3410
12990 msgid "guestfs_lgetxattr"
12991 msgstr ""
12992
12993 # type: verbatim
12994 #. type: verbatim
12995 #: ../src/guestfs-actions.pod:3412
12996 #, no-wrap
12997 msgid ""
12998 " char *\n"
12999 " guestfs_lgetxattr (guestfs_h *g,\n"
13000 "                    const char *path,\n"
13001 "                    const char *name,\n"
13002 "                    size_t *size_r);\n"
13003 "\n"
13004 msgstr ""
13005
13006 # type: textblock
13007 #. type: textblock
13008 #: ../src/guestfs-actions.pod:3418 ../fish/guestfish-actions.pod:2379
13009 msgid ""
13010 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
13011 "is a symlink, then this call returns an extended attribute from the symlink."
13012 msgstr ""
13013
13014 # type: textblock
13015 #. type: textblock
13016 #: ../src/guestfs-actions.pod:3432
13017 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
13018 msgstr ""
13019
13020 # type: =head2
13021 #. type: =head2
13022 #: ../src/guestfs-actions.pod:3440
13023 msgid "guestfs_lgetxattrs"
13024 msgstr ""
13025
13026 # type: verbatim
13027 #. type: verbatim
13028 #: ../src/guestfs-actions.pod:3442
13029 #, no-wrap
13030 msgid ""
13031 " struct guestfs_xattr_list *\n"
13032 " guestfs_lgetxattrs (guestfs_h *g,\n"
13033 "                     const char *path);\n"
13034 "\n"
13035 msgstr ""
13036
13037 # type: textblock
13038 #. type: textblock
13039 #: ../src/guestfs-actions.pod:3446
13040 msgid ""
13041 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
13042 "then it returns the extended attributes of the link itself."
13043 msgstr ""
13044
13045 # type: =head2
13046 #. type: =head2
13047 #: ../src/guestfs-actions.pod:3456
13048 msgid "guestfs_list_devices"
13049 msgstr ""
13050
13051 # type: verbatim
13052 #. type: verbatim
13053 #: ../src/guestfs-actions.pod:3458
13054 #, no-wrap
13055 msgid ""
13056 " char **\n"
13057 " guestfs_list_devices (guestfs_h *g);\n"
13058 "\n"
13059 msgstr ""
13060
13061 # type: textblock
13062 #. type: textblock
13063 #: ../src/guestfs-actions.pod:3461 ../fish/guestfish-actions.pod:2407
13064 msgid "List all the block devices."
13065 msgstr ""
13066
13067 # type: textblock
13068 #. type: textblock
13069 #: ../src/guestfs-actions.pod:3463 ../fish/guestfish-actions.pod:2409
13070 msgid "The full block device names are returned, eg. C</dev/sda>."
13071 msgstr ""
13072
13073 # type: =head2
13074 #. type: =head2
13075 #: ../src/guestfs-actions.pod:3473
13076 msgid "guestfs_list_filesystems"
13077 msgstr ""
13078
13079 # type: verbatim
13080 #. type: verbatim
13081 #: ../src/guestfs-actions.pod:3475
13082 #, no-wrap
13083 msgid ""
13084 " char **\n"
13085 " guestfs_list_filesystems (guestfs_h *g);\n"
13086 "\n"
13087 msgstr ""
13088
13089 # type: textblock
13090 #. type: textblock
13091 #: ../src/guestfs-actions.pod:3478 ../fish/guestfish-actions.pod:2417
13092 msgid ""
13093 "This inspection command looks for filesystems on partitions, block devices "
13094 "and logical volumes, returning a list of devices containing filesystems and "
13095 "their type."
13096 msgstr ""
13097
13098 # type: textblock
13099 #. type: textblock
13100 #: ../src/guestfs-actions.pod:3482 ../fish/guestfish-actions.pod:2421
13101 msgid ""
13102 "The return value is a hash, where the keys are the devices containing "
13103 "filesystems, and the values are the filesystem types.  For example:"
13104 msgstr ""
13105
13106 # type: verbatim
13107 #. type: verbatim
13108 #: ../src/guestfs-actions.pod:3486 ../fish/guestfish-actions.pod:2425
13109 #, no-wrap
13110 msgid ""
13111 " \"/dev/sda1\" => \"ntfs\"\n"
13112 " \"/dev/sda2\" => \"ext2\"\n"
13113 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
13114 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
13115 "\n"
13116 msgstr ""
13117
13118 # type: textblock
13119 #. type: textblock
13120 #: ../src/guestfs-actions.pod:3491 ../fish/guestfish-actions.pod:2430
13121 msgid ""
13122 "The value can have the special value \"unknown\", meaning the content of the "
13123 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
13124 msgstr ""
13125
13126 # type: textblock
13127 #. type: textblock
13128 #: ../src/guestfs-actions.pod:3495
13129 msgid ""
13130 "This command runs other libguestfs commands, which might include "
13131 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
13132 "soon after launch and only when nothing is mounted."
13133 msgstr ""
13134
13135 # type: textblock
13136 #. type: textblock
13137 #: ../src/guestfs-actions.pod:3499
13138 msgid ""
13139 "Not all of the filesystems returned will be mountable.  In particular, swap "
13140 "partitions are returned in the list.  Also this command does not check that "
13141 "each filesystem found is valid and mountable, and some filesystems might be "
13142 "mountable but require special options.  Filesystems may not all belong to a "
13143 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
13144 msgstr ""
13145
13146 # type: textblock
13147 #. type: textblock
13148 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:5118
13149 msgid "(Added in 1.5.15)"
13150 msgstr ""
13151
13152 # type: =head2
13153 #. type: =head2
13154 #: ../src/guestfs-actions.pod:3515
13155 msgid "guestfs_list_partitions"
13156 msgstr ""
13157
13158 # type: verbatim
13159 #. type: verbatim
13160 #: ../src/guestfs-actions.pod:3517
13161 #, no-wrap
13162 msgid ""
13163 " char **\n"
13164 " guestfs_list_partitions (guestfs_h *g);\n"
13165 "\n"
13166 msgstr ""
13167
13168 # type: textblock
13169 #. type: textblock
13170 #: ../src/guestfs-actions.pod:3520 ../fish/guestfish-actions.pod:2450
13171 msgid "List all the partitions detected on all block devices."
13172 msgstr ""
13173
13174 # type: textblock
13175 #. type: textblock
13176 #: ../src/guestfs-actions.pod:3522 ../fish/guestfish-actions.pod:2452
13177 msgid "The full partition device names are returned, eg. C</dev/sda1>"
13178 msgstr ""
13179
13180 # type: textblock
13181 #. type: textblock
13182 #: ../src/guestfs-actions.pod:3524
13183 msgid ""
13184 "This does not return logical volumes.  For that you will need to call "
13185 "C<guestfs_lvs>."
13186 msgstr ""
13187
13188 # type: =head2
13189 #. type: =head2
13190 #: ../src/guestfs-actions.pod:3535
13191 msgid "guestfs_ll"
13192 msgstr ""
13193
13194 # type: verbatim
13195 #. type: verbatim
13196 #: ../src/guestfs-actions.pod:3537
13197 #, no-wrap
13198 msgid ""
13199 " char *\n"
13200 " guestfs_ll (guestfs_h *g,\n"
13201 "             const char *directory);\n"
13202 "\n"
13203 msgstr ""
13204
13205 # type: textblock
13206 #. type: textblock
13207 #: ../src/guestfs-actions.pod:3541 ../fish/guestfish-actions.pod:2463
13208 msgid ""
13209 "List the files in C<directory> (relative to the root directory, there is no "
13210 "cwd) in the format of 'ls -la'."
13211 msgstr ""
13212
13213 # type: textblock
13214 #. type: textblock
13215 #: ../src/guestfs-actions.pod:3544 ../fish/guestfish-actions.pod:2466
13216 msgid ""
13217 "This command is mostly useful for interactive sessions.  It is I<not> "
13218 "intended that you try to parse the output string."
13219 msgstr ""
13220
13221 # type: =head2
13222 #. type: =head2
13223 #: ../src/guestfs-actions.pod:3552
13224 msgid "guestfs_ln"
13225 msgstr ""
13226
13227 # type: verbatim
13228 #. type: verbatim
13229 #: ../src/guestfs-actions.pod:3554
13230 #, no-wrap
13231 msgid ""
13232 " int\n"
13233 " guestfs_ln (guestfs_h *g,\n"
13234 "             const char *target,\n"
13235 "             const char *linkname);\n"
13236 "\n"
13237 msgstr ""
13238
13239 # type: textblock
13240 #. type: textblock
13241 #: ../src/guestfs-actions.pod:3559 ../fish/guestfish-actions.pod:2473
13242 msgid "This command creates a hard link using the C<ln> command."
13243 msgstr ""
13244
13245 # type: =head2
13246 #. type: =head2
13247 #: ../src/guestfs-actions.pod:3565
13248 msgid "guestfs_ln_f"
13249 msgstr ""
13250
13251 # type: verbatim
13252 #. type: verbatim
13253 #: ../src/guestfs-actions.pod:3567
13254 #, no-wrap
13255 msgid ""
13256 " int\n"
13257 " guestfs_ln_f (guestfs_h *g,\n"
13258 "               const char *target,\n"
13259 "               const char *linkname);\n"
13260 "\n"
13261 msgstr ""
13262
13263 # type: textblock
13264 #. type: textblock
13265 #: ../src/guestfs-actions.pod:3572 ../fish/guestfish-actions.pod:2479
13266 msgid ""
13267 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
13268 "option removes the link (C<linkname>) if it exists already."
13269 msgstr ""
13270
13271 # type: =head2
13272 #. type: =head2
13273 #: ../src/guestfs-actions.pod:3579
13274 msgid "guestfs_ln_s"
13275 msgstr ""
13276
13277 # type: verbatim
13278 #. type: verbatim
13279 #: ../src/guestfs-actions.pod:3581
13280 #, no-wrap
13281 msgid ""
13282 " int\n"
13283 " guestfs_ln_s (guestfs_h *g,\n"
13284 "               const char *target,\n"
13285 "               const char *linkname);\n"
13286 "\n"
13287 msgstr ""
13288
13289 # type: textblock
13290 #. type: textblock
13291 #: ../src/guestfs-actions.pod:3586 ../fish/guestfish-actions.pod:2486
13292 msgid "This command creates a symbolic link using the C<ln -s> command."
13293 msgstr ""
13294
13295 # type: =head2
13296 #. type: =head2
13297 #: ../src/guestfs-actions.pod:3592
13298 msgid "guestfs_ln_sf"
13299 msgstr ""
13300
13301 # type: verbatim
13302 #. type: verbatim
13303 #: ../src/guestfs-actions.pod:3594
13304 #, no-wrap
13305 msgid ""
13306 " int\n"
13307 " guestfs_ln_sf (guestfs_h *g,\n"
13308 "                const char *target,\n"
13309 "                const char *linkname);\n"
13310 "\n"
13311 msgstr ""
13312
13313 # type: textblock
13314 #. type: textblock
13315 #: ../src/guestfs-actions.pod:3599 ../fish/guestfish-actions.pod:2492
13316 msgid ""
13317 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
13318 "option removes the link (C<linkname>) if it exists already."
13319 msgstr ""
13320
13321 # type: =head2
13322 #. type: =head2
13323 #: ../src/guestfs-actions.pod:3606
13324 msgid "guestfs_lremovexattr"
13325 msgstr ""
13326
13327 # type: verbatim
13328 #. type: verbatim
13329 #: ../src/guestfs-actions.pod:3608
13330 #, no-wrap
13331 msgid ""
13332 " int\n"
13333 " guestfs_lremovexattr (guestfs_h *g,\n"
13334 "                       const char *xattr,\n"
13335 "                       const char *path);\n"
13336 "\n"
13337 msgstr ""
13338
13339 # type: textblock
13340 #. type: textblock
13341 #: ../src/guestfs-actions.pod:3613
13342 msgid ""
13343 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
13344 "link, then it removes an extended attribute of the link itself."
13345 msgstr ""
13346
13347 # type: =head2
13348 #. type: =head2
13349 #: ../src/guestfs-actions.pod:3621
13350 msgid "guestfs_ls"
13351 msgstr ""
13352
13353 # type: verbatim
13354 #. type: verbatim
13355 #: ../src/guestfs-actions.pod:3623
13356 #, no-wrap
13357 msgid ""
13358 " char **\n"
13359 " guestfs_ls (guestfs_h *g,\n"
13360 "             const char *directory);\n"
13361 "\n"
13362 msgstr ""
13363
13364 # type: textblock
13365 #. type: textblock
13366 #: ../src/guestfs-actions.pod:3627 ../fish/guestfish-actions.pod:2507
13367 msgid ""
13368 "List the files in C<directory> (relative to the root directory, there is no "
13369 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13370 msgstr ""
13371
13372 # type: textblock
13373 #. type: textblock
13374 #: ../src/guestfs-actions.pod:3631
13375 msgid ""
13376 "This command is mostly useful for interactive sessions.  Programs should "
13377 "probably use C<guestfs_readdir> instead."
13378 msgstr ""
13379
13380 # type: =head2
13381 #. type: =head2
13382 #: ../src/guestfs-actions.pod:3640
13383 msgid "guestfs_lsetxattr"
13384 msgstr ""
13385
13386 # type: verbatim
13387 #. type: verbatim
13388 #: ../src/guestfs-actions.pod:3642
13389 #, no-wrap
13390 msgid ""
13391 " int\n"
13392 " guestfs_lsetxattr (guestfs_h *g,\n"
13393 "                    const char *xattr,\n"
13394 "                    const char *val,\n"
13395 "                    int vallen,\n"
13396 "                    const char *path);\n"
13397 "\n"
13398 msgstr ""
13399
13400 # type: textblock
13401 #. type: textblock
13402 #: ../src/guestfs-actions.pod:3649
13403 msgid ""
13404 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
13405 "then it sets an extended attribute of the link itself."
13406 msgstr ""
13407
13408 # type: =head2
13409 #. type: =head2
13410 #: ../src/guestfs-actions.pod:3657
13411 msgid "guestfs_lstat"
13412 msgstr ""
13413
13414 # type: verbatim
13415 #. type: verbatim
13416 #: ../src/guestfs-actions.pod:3659
13417 #, no-wrap
13418 msgid ""
13419 " struct guestfs_stat *\n"
13420 " guestfs_lstat (guestfs_h *g,\n"
13421 "                const char *path);\n"
13422 "\n"
13423 msgstr ""
13424
13425 # type: textblock
13426 #. type: textblock
13427 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:6221
13428 #: ../fish/guestfish-actions.pod:2526 ../fish/guestfish-actions.pod:4195
13429 msgid "Returns file information for the given C<path>."
13430 msgstr ""
13431
13432 # type: textblock
13433 #. type: textblock
13434 #: ../src/guestfs-actions.pod:3665
13435 msgid ""
13436 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
13437 "link, then the link is stat-ed, not the file it refers to."
13438 msgstr ""
13439
13440 # type: textblock
13441 #. type: textblock
13442 #: ../src/guestfs-actions.pod:3669 ../fish/guestfish-actions.pod:2532
13443 msgid "This is the same as the C<lstat(2)> system call."
13444 msgstr ""
13445
13446 # type: textblock
13447 #. type: textblock
13448 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:6225
13449 msgid ""
13450 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
13451 "error.  I<The caller must call C<guestfs_free_stat> after use>."
13452 msgstr ""
13453
13454 # type: textblock
13455 #. type: textblock
13456 #: ../src/guestfs-actions.pod:3675 ../src/guestfs-actions.pod:6229
13457 #: ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6628
13458 msgid "(Added in 0.9.2)"
13459 msgstr ""
13460
13461 # type: =head2
13462 #. type: =head2
13463 #: ../src/guestfs-actions.pod:3677
13464 msgid "guestfs_lstatlist"
13465 msgstr ""
13466
13467 # type: verbatim
13468 #. type: verbatim
13469 #: ../src/guestfs-actions.pod:3679
13470 #, no-wrap
13471 msgid ""
13472 " struct guestfs_stat_list *\n"
13473 " guestfs_lstatlist (guestfs_h *g,\n"
13474 "                    const char *path,\n"
13475 "                    char *const *names);\n"
13476 "\n"
13477 msgstr ""
13478
13479 # type: textblock
13480 #. type: textblock
13481 #: ../src/guestfs-actions.pod:3684
13482 msgid ""
13483 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
13484 "files, where all files are in the directory C<path>.  C<names> is the list "
13485 "of files from this directory."
13486 msgstr ""
13487
13488 # type: textblock
13489 #. type: textblock
13490 #: ../src/guestfs-actions.pod:3688 ../fish/guestfish-actions.pod:2542
13491 msgid ""
13492 "On return you get a list of stat structs, with a one-to-one correspondence "
13493 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13494 "then the C<ino> field of that structure is set to C<-1>."
13495 msgstr ""
13496
13497 # type: textblock
13498 #. type: textblock
13499 #: ../src/guestfs-actions.pod:3693
13500 msgid ""
13501 "This call is intended for programs that want to efficiently list a directory "
13502 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
13503 "for a similarly efficient call for getting extended attributes.  Very long "
13504 "directory listings might cause the protocol message size to be exceeded, "
13505 "causing this call to fail.  The caller must split up such requests into "
13506 "smaller groups of names."
13507 msgstr ""
13508
13509 # type: textblock
13510 #. type: textblock
13511 #: ../src/guestfs-actions.pod:3701
13512 msgid ""
13513 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
13514 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
13515 msgstr ""
13516
13517 # type: =head2
13518 #. type: =head2
13519 #: ../src/guestfs-actions.pod:3707
13520 msgid "guestfs_luks_add_key"
13521 msgstr ""
13522
13523 # type: verbatim
13524 #. type: verbatim
13525 #: ../src/guestfs-actions.pod:3709
13526 #, no-wrap
13527 msgid ""
13528 " int\n"
13529 " guestfs_luks_add_key (guestfs_h *g,\n"
13530 "                       const char *device,\n"
13531 "                       const char *key,\n"
13532 "                       const char *newkey,\n"
13533 "                       int keyslot);\n"
13534 "\n"
13535 msgstr ""
13536
13537 # type: textblock
13538 #. type: textblock
13539 #: ../src/guestfs-actions.pod:3716 ../fish/guestfish-actions.pod:2559
13540 msgid ""
13541 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13542 "existing key, and is used to access the device.  C<newkey> is the new key to "
13543 "add.  C<keyslot> is the key slot that will be replaced."
13544 msgstr ""
13545
13546 # type: textblock
13547 #. type: textblock
13548 #: ../src/guestfs-actions.pod:3721
13549 msgid ""
13550 "Note that if C<keyslot> already contains a key, then this command will "
13551 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
13552 msgstr ""
13553
13554 # type: textblock
13555 #. type: textblock
13556 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:3767
13557 #: ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:3810
13558 #: ../src/guestfs-actions.pod:3842 ../src/guestfs-actions.pod:3861
13559 msgid ""
13560 "This function takes a key or passphrase parameter which could contain "
13561 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
13562 "information."
13563 msgstr ""
13564
13565 # type: textblock
13566 #. type: textblock
13567 #: ../src/guestfs-actions.pod:3731 ../src/guestfs-actions.pod:3771
13568 #: ../src/guestfs-actions.pod:3794 ../src/guestfs-actions.pod:3814
13569 msgid "(Added in 1.5.2)"
13570 msgstr ""
13571
13572 # type: =head2
13573 #. type: =head2
13574 #: ../src/guestfs-actions.pod:3733
13575 msgid "guestfs_luks_close"
13576 msgstr ""
13577
13578 # type: verbatim
13579 #. type: verbatim
13580 #: ../src/guestfs-actions.pod:3735
13581 #, no-wrap
13582 msgid ""
13583 " int\n"
13584 " guestfs_luks_close (guestfs_h *g,\n"
13585 "                     const char *device);\n"
13586 "\n"
13587 msgstr ""
13588
13589 # type: textblock
13590 #. type: textblock
13591 #: ../src/guestfs-actions.pod:3739
13592 msgid ""
13593 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13594 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13595 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13596 "underlying block device."
13597 msgstr ""
13598
13599 # type: textblock
13600 #. type: textblock
13601 #: ../src/guestfs-actions.pod:3747 ../src/guestfs-actions.pod:3846
13602 #: ../src/guestfs-actions.pod:3865 ../src/guestfs-actions.pod:3915
13603 #: ../src/guestfs-actions.pod:3963
13604 msgid "(Added in 1.5.1)"
13605 msgstr ""
13606
13607 # type: =head2
13608 #. type: =head2
13609 #: ../src/guestfs-actions.pod:3749
13610 msgid "guestfs_luks_format"
13611 msgstr ""
13612
13613 # type: verbatim
13614 #. type: verbatim
13615 #: ../src/guestfs-actions.pod:3751
13616 #, no-wrap
13617 msgid ""
13618 " int\n"
13619 " guestfs_luks_format (guestfs_h *g,\n"
13620 "                      const char *device,\n"
13621 "                      const char *key,\n"
13622 "                      int keyslot);\n"
13623 "\n"
13624 msgstr ""
13625
13626 # type: textblock
13627 #. type: textblock
13628 #: ../src/guestfs-actions.pod:3757 ../fish/guestfish-actions.pod:2585
13629 msgid ""
13630 "This command erases existing data on C<device> and formats the device as a "
13631 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13632 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13633 msgstr ""
13634
13635 # type: textblock
13636 #. type: textblock
13637 #: ../src/guestfs-actions.pod:3764 ../src/guestfs-actions.pod:3787
13638 #: ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4869
13639 #: ../src/guestfs-actions.pod:5649 ../src/guestfs-actions.pod:6056
13640 #: ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6105
13641 #: ../src/guestfs-actions.pod:7265 ../fish/guestfish-actions.pod:2593
13642 #: ../fish/guestfish-actions.pod:2606 ../fish/guestfish-actions.pod:2690
13643 #: ../fish/guestfish-actions.pod:3264 ../fish/guestfish-actions.pod:3784
13644 #: ../fish/guestfish-actions.pod:4094 ../fish/guestfish-actions.pod:4110
13645 #: ../fish/guestfish-actions.pod:4125 ../fish/guestfish-actions.pod:4840
13646 msgid ""
13647 "B<This command is dangerous.  Without careful use you can easily destroy all "
13648 "your data>."
13649 msgstr ""
13650
13651 # type: =head2
13652 #. type: =head2
13653 #: ../src/guestfs-actions.pod:3773
13654 msgid "guestfs_luks_format_cipher"
13655 msgstr ""
13656
13657 # type: verbatim
13658 #. type: verbatim
13659 #: ../src/guestfs-actions.pod:3775
13660 #, no-wrap
13661 msgid ""
13662 " int\n"
13663 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13664 "                             const char *device,\n"
13665 "                             const char *key,\n"
13666 "                             int keyslot,\n"
13667 "                             const char *cipher);\n"
13668 "\n"
13669 msgstr ""
13670
13671 # type: textblock
13672 #. type: textblock
13673 #: ../src/guestfs-actions.pod:3782
13674 msgid ""
13675 "This command is the same as C<guestfs_luks_format> but it also allows you to "
13676 "set the C<cipher> used."
13677 msgstr ""
13678
13679 # type: =head2
13680 #. type: =head2
13681 #: ../src/guestfs-actions.pod:3796
13682 msgid "guestfs_luks_kill_slot"
13683 msgstr ""
13684
13685 # type: verbatim
13686 #. type: verbatim
13687 #: ../src/guestfs-actions.pod:3798
13688 #, no-wrap
13689 msgid ""
13690 " int\n"
13691 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13692 "                         const char *device,\n"
13693 "                         const char *key,\n"
13694 "                         int keyslot);\n"
13695 "\n"
13696 msgstr ""
13697
13698 # type: textblock
13699 #. type: textblock
13700 #: ../src/guestfs-actions.pod:3804 ../fish/guestfish-actions.pod:2613
13701 msgid ""
13702 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13703 "device C<device>.  C<key> must be one of the I<other> keys."
13704 msgstr ""
13705
13706 # type: =head2
13707 #. type: =head2
13708 #: ../src/guestfs-actions.pod:3816
13709 msgid "guestfs_luks_open"
13710 msgstr ""
13711
13712 # type: verbatim
13713 #. type: verbatim
13714 #: ../src/guestfs-actions.pod:3818
13715 #, no-wrap
13716 msgid ""
13717 " int\n"
13718 " guestfs_luks_open (guestfs_h *g,\n"
13719 "                    const char *device,\n"
13720 "                    const char *key,\n"
13721 "                    const char *mapname);\n"
13722 "\n"
13723 msgstr ""
13724
13725 # type: textblock
13726 #. type: textblock
13727 #: ../src/guestfs-actions.pod:3824 ../fish/guestfish-actions.pod:2624
13728 msgid ""
13729 "This command opens a block device which has been encrypted according to the "
13730 "Linux Unified Key Setup (LUKS) standard."
13731 msgstr ""
13732
13733 # type: textblock
13734 #. type: textblock
13735 #: ../src/guestfs-actions.pod:3827 ../fish/guestfish-actions.pod:2627
13736 msgid "C<device> is the encrypted block device or partition."
13737 msgstr ""
13738
13739 # type: textblock
13740 #. type: textblock
13741 #: ../src/guestfs-actions.pod:3829 ../fish/guestfish-actions.pod:2629
13742 msgid ""
13743 "The caller must supply one of the keys associated with the LUKS block "
13744 "device, in the C<key> parameter."
13745 msgstr ""
13746
13747 # type: textblock
13748 #. type: textblock
13749 #: ../src/guestfs-actions.pod:3832 ../fish/guestfish-actions.pod:2632
13750 msgid ""
13751 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13752 "writes to this block device are decrypted from and encrypted to the "
13753 "underlying C<device> respectively."
13754 msgstr ""
13755
13756 # type: textblock
13757 #. type: textblock
13758 #: ../src/guestfs-actions.pod:3836
13759 msgid ""
13760 "If this block device contains LVM volume groups, then calling "
13761 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13762 "visible."
13763 msgstr ""
13764
13765 # type: =head2
13766 #. type: =head2
13767 #: ../src/guestfs-actions.pod:3848
13768 msgid "guestfs_luks_open_ro"
13769 msgstr ""
13770
13771 # type: verbatim
13772 #. type: verbatim
13773 #: ../src/guestfs-actions.pod:3850
13774 #, no-wrap
13775 msgid ""
13776 " int\n"
13777 " guestfs_luks_open_ro (guestfs_h *g,\n"
13778 "                       const char *device,\n"
13779 "                       const char *key,\n"
13780 "                       const char *mapname);\n"
13781 "\n"
13782 msgstr ""
13783
13784 # type: textblock
13785 #. type: textblock
13786 #: ../src/guestfs-actions.pod:3856
13787 msgid ""
13788 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13789 "created."
13790 msgstr ""
13791
13792 # type: =head2
13793 #. type: =head2
13794 #: ../src/guestfs-actions.pod:3867
13795 msgid "guestfs_lvcreate"
13796 msgstr ""
13797
13798 # type: verbatim
13799 #. type: verbatim
13800 #: ../src/guestfs-actions.pod:3869
13801 #, no-wrap
13802 msgid ""
13803 " int\n"
13804 " guestfs_lvcreate (guestfs_h *g,\n"
13805 "                   const char *logvol,\n"
13806 "                   const char *volgroup,\n"
13807 "                   int mbytes);\n"
13808 "\n"
13809 msgstr ""
13810
13811 # type: textblock
13812 #. type: textblock
13813 #: ../src/guestfs-actions.pod:3875 ../fish/guestfish-actions.pod:2657
13814 msgid ""
13815 "This creates an LVM logical volume called C<logvol> on the volume group "
13816 "C<volgroup>, with C<size> megabytes."
13817 msgstr ""
13818
13819 # type: =head2
13820 #. type: =head2
13821 #: ../src/guestfs-actions.pod:3882
13822 msgid "guestfs_lvm_canonical_lv_name"
13823 msgstr ""
13824
13825 # type: verbatim
13826 #. type: verbatim
13827 #: ../src/guestfs-actions.pod:3884
13828 #, no-wrap
13829 msgid ""
13830 " char *\n"
13831 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13832 "                                const char *lvname);\n"
13833 "\n"
13834 msgstr ""
13835
13836 # type: textblock
13837 #. type: textblock
13838 #: ../src/guestfs-actions.pod:3888 ../fish/guestfish-actions.pod:2664
13839 msgid ""
13840 "This converts alternative naming schemes for LVs that you might find to the "
13841 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13842 "LV>."
13843 msgstr ""
13844
13845 # type: textblock
13846 #. type: textblock
13847 #: ../src/guestfs-actions.pod:3892 ../fish/guestfish-actions.pod:2668
13848 msgid ""
13849 "This command returns an error if the C<lvname> parameter does not refer to a "
13850 "logical volume."
13851 msgstr ""
13852
13853 # type: textblock
13854 #. type: textblock
13855 #: ../src/guestfs-actions.pod:3895
13856 msgid "See also C<guestfs_is_lv>."
13857 msgstr ""
13858
13859 # type: textblock
13860 #. type: textblock
13861 #: ../src/guestfs-actions.pod:3900
13862 msgid "(Added in 1.5.24)"
13863 msgstr ""
13864
13865 # type: =head2
13866 #. type: =head2
13867 #: ../src/guestfs-actions.pod:3902
13868 msgid "guestfs_lvm_clear_filter"
13869 msgstr ""
13870
13871 # type: verbatim
13872 #. type: verbatim
13873 #: ../src/guestfs-actions.pod:3904
13874 #, no-wrap
13875 msgid ""
13876 " int\n"
13877 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13878 "\n"
13879 msgstr ""
13880
13881 # type: textblock
13882 #. type: textblock
13883 #: ../src/guestfs-actions.pod:3907
13884 msgid ""
13885 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13886 "see every block device."
13887 msgstr ""
13888
13889 # type: textblock
13890 #. type: textblock
13891 #: ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3952
13892 #: ../fish/guestfish-actions.pod:2680 ../fish/guestfish-actions.pod:2711
13893 msgid ""
13894 "This command also clears the LVM cache and performs a volume group scan."
13895 msgstr ""
13896
13897 # type: =head2
13898 #. type: =head2
13899 #: ../src/guestfs-actions.pod:3917
13900 msgid "guestfs_lvm_remove_all"
13901 msgstr ""
13902
13903 # type: verbatim
13904 #. type: verbatim
13905 #: ../src/guestfs-actions.pod:3919
13906 #, no-wrap
13907 msgid ""
13908 " int\n"
13909 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13910 "\n"
13911 msgstr ""
13912
13913 # type: textblock
13914 #. type: textblock
13915 #: ../src/guestfs-actions.pod:3922 ../fish/guestfish-actions.pod:2687
13916 msgid ""
13917 "This command removes all LVM logical volumes, volume groups and physical "
13918 "volumes."
13919 msgstr ""
13920
13921 # type: =head2
13922 #. type: =head2
13923 #: ../src/guestfs-actions.pod:3932
13924 msgid "guestfs_lvm_set_filter"
13925 msgstr ""
13926
13927 # type: verbatim
13928 #. type: verbatim
13929 #: ../src/guestfs-actions.pod:3934
13930 #, no-wrap
13931 msgid ""
13932 " int\n"
13933 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13934 "                         char *const *devices);\n"
13935 "\n"
13936 msgstr ""
13937
13938 # type: textblock
13939 #. type: textblock
13940 #: ../src/guestfs-actions.pod:3938 ../fish/guestfish-actions.pod:2697
13941 msgid ""
13942 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13943 "block devices in the list C<devices>, and will ignore all other attached "
13944 "block devices."
13945 msgstr ""
13946
13947 # type: textblock
13948 #. type: textblock
13949 #: ../src/guestfs-actions.pod:3942 ../fish/guestfish-actions.pod:2701
13950 msgid ""
13951 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13952 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13953 "there are two types of duplication possible: either cloned PVs/VGs which "
13954 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13955 "same name.  In normal operation you cannot create this situation, but you "
13956 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13957 "inside the LVM metadata."
13958 msgstr ""
13959
13960 # type: textblock
13961 #. type: textblock
13962 #: ../src/guestfs-actions.pod:3955 ../fish/guestfish-actions.pod:2714
13963 msgid "You can filter whole block devices or individual partitions."
13964 msgstr ""
13965
13966 # type: textblock
13967 #. type: textblock
13968 #: ../src/guestfs-actions.pod:3957 ../fish/guestfish-actions.pod:2716
13969 msgid ""
13970 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13971 "filesystem), even if you are not filtering out that VG."
13972 msgstr ""
13973
13974 # type: =head2
13975 #. type: =head2
13976 #: ../src/guestfs-actions.pod:3965
13977 msgid "guestfs_lvremove"
13978 msgstr ""
13979
13980 # type: verbatim
13981 #. type: verbatim
13982 #: ../src/guestfs-actions.pod:3967
13983 #, no-wrap
13984 msgid ""
13985 " int\n"
13986 " guestfs_lvremove (guestfs_h *g,\n"
13987 "                   const char *device);\n"
13988 "\n"
13989 msgstr ""
13990
13991 # type: textblock
13992 #. type: textblock
13993 #: ../src/guestfs-actions.pod:3971 ../fish/guestfish-actions.pod:2724
13994 msgid ""
13995 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13996 "LV, such as C</dev/VG/LV>."
13997 msgstr ""
13998
13999 # type: textblock
14000 #. type: textblock
14001 #: ../src/guestfs-actions.pod:3974 ../fish/guestfish-actions.pod:2727
14002 msgid ""
14003 "You can also remove all LVs in a volume group by specifying the VG name, C</"
14004 "dev/VG>."
14005 msgstr ""
14006
14007 # type: textblock
14008 #. type: textblock
14009 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:5215
14010 #: ../src/guestfs-actions.pod:7004
14011 msgid "(Added in 1.0.13)"
14012 msgstr ""
14013
14014 # type: =head2
14015 #. type: =head2
14016 #: ../src/guestfs-actions.pod:3981
14017 msgid "guestfs_lvrename"
14018 msgstr ""
14019
14020 # type: verbatim
14021 #. type: verbatim
14022 #: ../src/guestfs-actions.pod:3983
14023 #, no-wrap
14024 msgid ""
14025 " int\n"
14026 " guestfs_lvrename (guestfs_h *g,\n"
14027 "                   const char *logvol,\n"
14028 "                   const char *newlogvol);\n"
14029 "\n"
14030 msgstr ""
14031
14032 # type: textblock
14033 #. type: textblock
14034 #: ../src/guestfs-actions.pod:3988 ../fish/guestfish-actions.pod:2734
14035 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
14036 msgstr ""
14037
14038 # type: textblock
14039 #. type: textblock
14040 #: ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:7017
14041 msgid "(Added in 1.0.83)"
14042 msgstr ""
14043
14044 # type: =head2
14045 #. type: =head2
14046 #: ../src/guestfs-actions.pod:3994
14047 msgid "guestfs_lvresize"
14048 msgstr ""
14049
14050 # type: verbatim
14051 #. type: verbatim
14052 #: ../src/guestfs-actions.pod:3996
14053 #, no-wrap
14054 msgid ""
14055 " int\n"
14056 " guestfs_lvresize (guestfs_h *g,\n"
14057 "                   const char *device,\n"
14058 "                   int mbytes);\n"
14059 "\n"
14060 msgstr ""
14061
14062 # type: textblock
14063 #. type: textblock
14064 #: ../src/guestfs-actions.pod:4001 ../fish/guestfish-actions.pod:2740
14065 msgid ""
14066 "This resizes (expands or shrinks) an existing LVM logical volume to "
14067 "C<mbytes>.  When reducing, data in the reduced part is lost."
14068 msgstr ""
14069
14070 # type: =head2
14071 #. type: =head2
14072 #: ../src/guestfs-actions.pod:4009
14073 msgid "guestfs_lvresize_free"
14074 msgstr ""
14075
14076 # type: verbatim
14077 #. type: verbatim
14078 #: ../src/guestfs-actions.pod:4011
14079 #, no-wrap
14080 msgid ""
14081 " int\n"
14082 " guestfs_lvresize_free (guestfs_h *g,\n"
14083 "                        const char *lv,\n"
14084 "                        int percent);\n"
14085 "\n"
14086 msgstr ""
14087
14088 # type: textblock
14089 #. type: textblock
14090 #: ../src/guestfs-actions.pod:4016 ../fish/guestfish-actions.pod:2748
14091 msgid ""
14092 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
14093 "remaining free space in the volume group.  Commonly you would call this with "
14094 "pc = 100 which expands the logical volume as much as possible, using all "
14095 "remaining free space in the volume group."
14096 msgstr ""
14097
14098 # type: textblock
14099 #. type: textblock
14100 #: ../src/guestfs-actions.pod:4024
14101 msgid "(Added in 1.3.3)"
14102 msgstr ""
14103
14104 # type: =head2
14105 #. type: =head2
14106 #: ../src/guestfs-actions.pod:4026
14107 msgid "guestfs_lvs"
14108 msgstr ""
14109
14110 # type: verbatim
14111 #. type: verbatim
14112 #: ../src/guestfs-actions.pod:4028
14113 #, no-wrap
14114 msgid ""
14115 " char **\n"
14116 " guestfs_lvs (guestfs_h *g);\n"
14117 "\n"
14118 msgstr ""
14119
14120 # type: textblock
14121 #. type: textblock
14122 #: ../src/guestfs-actions.pod:4031 ../fish/guestfish-actions.pod:2758
14123 msgid ""
14124 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14125 "(8)> command."
14126 msgstr ""
14127
14128 # type: textblock
14129 #. type: textblock
14130 #: ../src/guestfs-actions.pod:4034 ../fish/guestfish-actions.pod:2761
14131 msgid ""
14132 "This returns a list of the logical volume device names (eg. C</dev/"
14133 "VolGroup00/LogVol00>)."
14134 msgstr ""
14135
14136 # type: textblock
14137 #. type: textblock
14138 #: ../src/guestfs-actions.pod:4037
14139 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
14140 msgstr ""
14141
14142 # type: =head2
14143 #. type: =head2
14144 #: ../src/guestfs-actions.pod:4045
14145 msgid "guestfs_lvs_full"
14146 msgstr ""
14147
14148 # type: verbatim
14149 #. type: verbatim
14150 #: ../src/guestfs-actions.pod:4047
14151 #, no-wrap
14152 msgid ""
14153 " struct guestfs_lvm_lv_list *\n"
14154 " guestfs_lvs_full (guestfs_h *g);\n"
14155 "\n"
14156 msgstr ""
14157
14158 # type: textblock
14159 #. type: textblock
14160 #: ../src/guestfs-actions.pod:4050 ../fish/guestfish-actions.pod:2770
14161 msgid ""
14162 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
14163 "(8)> command.  The \"full\" version includes all fields."
14164 msgstr ""
14165
14166 # type: textblock
14167 #. type: textblock
14168 #: ../src/guestfs-actions.pod:4053
14169 msgid ""
14170 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
14171 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
14172 msgstr ""
14173
14174 # type: =head2
14175 #. type: =head2
14176 #: ../src/guestfs-actions.pod:4059
14177 msgid "guestfs_lvuuid"
14178 msgstr ""
14179
14180 # type: verbatim
14181 #. type: verbatim
14182 #: ../src/guestfs-actions.pod:4061
14183 #, no-wrap
14184 msgid ""
14185 " char *\n"
14186 " guestfs_lvuuid (guestfs_h *g,\n"
14187 "                 const char *device);\n"
14188 "\n"
14189 msgstr ""
14190
14191 # type: textblock
14192 #. type: textblock
14193 #: ../src/guestfs-actions.pod:4065 ../fish/guestfish-actions.pod:2777
14194 msgid "This command returns the UUID of the LVM LV C<device>."
14195 msgstr ""
14196
14197 # type: =head2
14198 #. type: =head2
14199 #: ../src/guestfs-actions.pod:4072
14200 msgid "guestfs_lxattrlist"
14201 msgstr ""
14202
14203 # type: verbatim
14204 #. type: verbatim
14205 #: ../src/guestfs-actions.pod:4074
14206 #, no-wrap
14207 msgid ""
14208 " struct guestfs_xattr_list *\n"
14209 " guestfs_lxattrlist (guestfs_h *g,\n"
14210 "                     const char *path,\n"
14211 "                     char *const *names);\n"
14212 "\n"
14213 msgstr ""
14214
14215 # type: textblock
14216 #. type: textblock
14217 #: ../src/guestfs-actions.pod:4079 ../fish/guestfish-actions.pod:2783
14218 msgid ""
14219 "This call allows you to get the extended attributes of multiple files, where "
14220 "all files are in the directory C<path>.  C<names> is the list of files from "
14221 "this directory."
14222 msgstr ""
14223
14224 # type: textblock
14225 #. type: textblock
14226 #: ../src/guestfs-actions.pod:4083 ../fish/guestfish-actions.pod:2787
14227 msgid ""
14228 "On return you get a flat list of xattr structs which must be interpreted "
14229 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
14230 "C<attrval> in this struct is zero-length to indicate there was an error "
14231 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
14232 "number (the number of following attributes for this file, which could be C<"
14233 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
14234 "for the first named file.  This repeats for the second and subsequent files."
14235 msgstr ""
14236
14237 # type: textblock
14238 #. type: textblock
14239 #: ../src/guestfs-actions.pod:4093
14240 msgid ""
14241 "This call is intended for programs that want to efficiently list a directory "
14242 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
14243 "a similarly efficient call for getting standard stats.  Very long directory "
14244 "listings might cause the protocol message size to be exceeded, causing this "
14245 "call to fail.  The caller must split up such requests into smaller groups of "
14246 "names."
14247 msgstr ""
14248
14249 # type: =head2
14250 #. type: =head2
14251 #: ../src/guestfs-actions.pod:4107
14252 msgid "guestfs_mkdir"
14253 msgstr ""
14254
14255 # type: verbatim
14256 #. type: verbatim
14257 #: ../src/guestfs-actions.pod:4109
14258 #, no-wrap
14259 msgid ""
14260 " int\n"
14261 " guestfs_mkdir (guestfs_h *g,\n"
14262 "                const char *path);\n"
14263 "\n"
14264 msgstr ""
14265
14266 # type: textblock
14267 #. type: textblock
14268 #: ../src/guestfs-actions.pod:4113 ../fish/guestfish-actions.pod:2809
14269 msgid "Create a directory named C<path>."
14270 msgstr ""
14271
14272 # type: =head2
14273 #. type: =head2
14274 #: ../src/guestfs-actions.pod:4119
14275 msgid "guestfs_mkdir_mode"
14276 msgstr ""
14277
14278 # type: verbatim
14279 #. type: verbatim
14280 #: ../src/guestfs-actions.pod:4121
14281 #, no-wrap
14282 msgid ""
14283 " int\n"
14284 " guestfs_mkdir_mode (guestfs_h *g,\n"
14285 "                     const char *path,\n"
14286 "                     int mode);\n"
14287 "\n"
14288 msgstr ""
14289
14290 # type: textblock
14291 #. type: textblock
14292 #: ../src/guestfs-actions.pod:4126 ../fish/guestfish-actions.pod:2815
14293 msgid ""
14294 "This command creates a directory, setting the initial permissions of the "
14295 "directory to C<mode>."
14296 msgstr ""
14297
14298 # type: textblock
14299 #. type: textblock
14300 #: ../src/guestfs-actions.pod:4129 ../fish/guestfish-actions.pod:2818
14301 msgid ""
14302 "For common Linux filesystems, the actual mode which is set will be C<mode & "
14303 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
14304 "other ways."
14305 msgstr ""
14306
14307 # type: textblock
14308 #. type: textblock
14309 #: ../src/guestfs-actions.pod:4133
14310 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
14311 msgstr ""
14312
14313 # type: =head2
14314 #. type: =head2
14315 #: ../src/guestfs-actions.pod:4139
14316 msgid "guestfs_mkdir_p"
14317 msgstr ""
14318
14319 # type: verbatim
14320 #. type: verbatim
14321 #: ../src/guestfs-actions.pod:4141
14322 #, no-wrap
14323 msgid ""
14324 " int\n"
14325 " guestfs_mkdir_p (guestfs_h *g,\n"
14326 "                  const char *path);\n"
14327 "\n"
14328 msgstr ""
14329
14330 # type: textblock
14331 #. type: textblock
14332 #: ../src/guestfs-actions.pod:4145 ../fish/guestfish-actions.pod:2828
14333 msgid ""
14334 "Create a directory named C<path>, creating any parent directories as "
14335 "necessary.  This is like the C<mkdir -p> shell command."
14336 msgstr ""
14337
14338 # type: =head2
14339 #. type: =head2
14340 #: ../src/guestfs-actions.pod:4152
14341 msgid "guestfs_mkdtemp"
14342 msgstr ""
14343
14344 # type: verbatim
14345 #. type: verbatim
14346 #: ../src/guestfs-actions.pod:4154
14347 #, no-wrap
14348 msgid ""
14349 " char *\n"
14350 " guestfs_mkdtemp (guestfs_h *g,\n"
14351 "                  const char *template);\n"
14352 "\n"
14353 msgstr ""
14354
14355 # type: textblock
14356 #. type: textblock
14357 #: ../src/guestfs-actions.pod:4158 ../fish/guestfish-actions.pod:2835
14358 msgid ""
14359 "This command creates a temporary directory.  The C<template> parameter "
14360 "should be a full pathname for the temporary directory name with the final "
14361 "six characters being \"XXXXXX\"."
14362 msgstr ""
14363
14364 # type: textblock
14365 #. type: textblock
14366 #: ../src/guestfs-actions.pod:4163 ../fish/guestfish-actions.pod:2840
14367 msgid ""
14368 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14369 "being suitable for Windows filesystems."
14370 msgstr ""
14371
14372 # type: textblock
14373 #. type: textblock
14374 #: ../src/guestfs-actions.pod:4166 ../fish/guestfish-actions.pod:2843
14375 msgid "The name of the temporary directory that was created is returned."
14376 msgstr ""
14377
14378 # type: textblock
14379 #. type: textblock
14380 #: ../src/guestfs-actions.pod:4169 ../fish/guestfish-actions.pod:2846
14381 msgid "The temporary directory is created with mode 0700 and is owned by root."
14382 msgstr ""
14383
14384 # type: textblock
14385 #. type: textblock
14386 #: ../src/guestfs-actions.pod:4172 ../fish/guestfish-actions.pod:2849
14387 msgid ""
14388 "The caller is responsible for deleting the temporary directory and its "
14389 "contents after use."
14390 msgstr ""
14391
14392 # type: textblock
14393 #. type: textblock
14394 #: ../src/guestfs-actions.pod:4175 ../fish/guestfish-actions.pod:2852
14395 msgid "See also: L<mkdtemp(3)>"
14396 msgstr ""
14397
14398 # type: =head2
14399 #. type: =head2
14400 #: ../src/guestfs-actions.pod:4182
14401 msgid "guestfs_mke2fs_J"
14402 msgstr ""
14403
14404 # type: verbatim
14405 #. type: verbatim
14406 #: ../src/guestfs-actions.pod:4184
14407 #, no-wrap
14408 msgid ""
14409 " int\n"
14410 " guestfs_mke2fs_J (guestfs_h *g,\n"
14411 "                   const char *fstype,\n"
14412 "                   int blocksize,\n"
14413 "                   const char *device,\n"
14414 "                   const char *journal);\n"
14415 "\n"
14416 msgstr ""
14417
14418 # type: textblock
14419 #. type: textblock
14420 #: ../src/guestfs-actions.pod:4191 ../fish/guestfish-actions.pod:2858
14421 msgid ""
14422 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14423 "C<journal>.  It is equivalent to the command:"
14424 msgstr ""
14425
14426 # type: verbatim
14427 #. type: verbatim
14428 #: ../src/guestfs-actions.pod:4195 ../fish/guestfish-actions.pod:2862
14429 #, no-wrap
14430 msgid ""
14431 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14432 "\n"
14433 msgstr ""
14434
14435 # type: textblock
14436 #. type: textblock
14437 #: ../src/guestfs-actions.pod:4197
14438 msgid "See also C<guestfs_mke2journal>."
14439 msgstr ""
14440
14441 # type: textblock
14442 #. type: textblock
14443 #: ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4219
14444 #: ../src/guestfs-actions.pod:4237 ../src/guestfs-actions.pod:4253
14445 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:4281
14446 #: ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4605
14447 msgid "(Added in 1.0.68)"
14448 msgstr ""
14449
14450 # type: =head2
14451 #. type: =head2
14452 #: ../src/guestfs-actions.pod:4203
14453 msgid "guestfs_mke2fs_JL"
14454 msgstr ""
14455
14456 # type: verbatim
14457 #. type: verbatim
14458 #: ../src/guestfs-actions.pod:4205
14459 #, no-wrap
14460 msgid ""
14461 " int\n"
14462 " guestfs_mke2fs_JL (guestfs_h *g,\n"
14463 "                    const char *fstype,\n"
14464 "                    int blocksize,\n"
14465 "                    const char *device,\n"
14466 "                    const char *label);\n"
14467 "\n"
14468 msgstr ""
14469
14470 # type: textblock
14471 #. type: textblock
14472 #: ../src/guestfs-actions.pod:4212 ../fish/guestfish-actions.pod:2870
14473 msgid ""
14474 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14475 "the journal labeled C<label>."
14476 msgstr ""
14477
14478 # type: textblock
14479 #. type: textblock
14480 #: ../src/guestfs-actions.pod:4215
14481 msgid "See also C<guestfs_mke2journal_L>."
14482 msgstr ""
14483
14484 # type: =head2
14485 #. type: =head2
14486 #: ../src/guestfs-actions.pod:4221
14487 msgid "guestfs_mke2fs_JU"
14488 msgstr ""
14489
14490 # type: verbatim
14491 #. type: verbatim
14492 #: ../src/guestfs-actions.pod:4223
14493 #, no-wrap
14494 msgid ""
14495 " int\n"
14496 " guestfs_mke2fs_JU (guestfs_h *g,\n"
14497 "                    const char *fstype,\n"
14498 "                    int blocksize,\n"
14499 "                    const char *device,\n"
14500 "                    const char *uuid);\n"
14501 "\n"
14502 msgstr ""
14503
14504 # type: textblock
14505 #. type: textblock
14506 #: ../src/guestfs-actions.pod:4230 ../fish/guestfish-actions.pod:2879
14507 msgid ""
14508 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14509 "the journal with UUID C<uuid>."
14510 msgstr ""
14511
14512 # type: textblock
14513 #. type: textblock
14514 #: ../src/guestfs-actions.pod:4233
14515 msgid "See also C<guestfs_mke2journal_U>."
14516 msgstr ""
14517
14518 # type: =head2
14519 #. type: =head2
14520 #: ../src/guestfs-actions.pod:4239
14521 msgid "guestfs_mke2journal"
14522 msgstr ""
14523
14524 # type: verbatim
14525 #. type: verbatim
14526 #: ../src/guestfs-actions.pod:4241
14527 #, no-wrap
14528 msgid ""
14529 " int\n"
14530 " guestfs_mke2journal (guestfs_h *g,\n"
14531 "                      int blocksize,\n"
14532 "                      const char *device);\n"
14533 "\n"
14534 msgstr ""
14535
14536 # type: textblock
14537 #. type: textblock
14538 #: ../src/guestfs-actions.pod:4246 ../fish/guestfish-actions.pod:2888
14539 msgid ""
14540 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14541 "command:"
14542 msgstr ""
14543
14544 # type: verbatim
14545 #. type: verbatim
14546 #: ../src/guestfs-actions.pod:4249 ../fish/guestfish-actions.pod:2891
14547 #, no-wrap
14548 msgid ""
14549 " mke2fs -O journal_dev -b blocksize device\n"
14550 "\n"
14551 msgstr ""
14552
14553 # type: =head2
14554 #. type: =head2
14555 #: ../src/guestfs-actions.pod:4255
14556 msgid "guestfs_mke2journal_L"
14557 msgstr ""
14558
14559 # type: verbatim
14560 #. type: verbatim
14561 #: ../src/guestfs-actions.pod:4257
14562 #, no-wrap
14563 msgid ""
14564 " int\n"
14565 " guestfs_mke2journal_L (guestfs_h *g,\n"
14566 "                        int blocksize,\n"
14567 "                        const char *label,\n"
14568 "                        const char *device);\n"
14569 "\n"
14570 msgstr ""
14571
14572 # type: textblock
14573 #. type: textblock
14574 #: ../src/guestfs-actions.pod:4263 ../fish/guestfish-actions.pod:2897
14575 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14576 msgstr ""
14577
14578 # type: =head2
14579 #. type: =head2
14580 #: ../src/guestfs-actions.pod:4269
14581 msgid "guestfs_mke2journal_U"
14582 msgstr ""
14583
14584 # type: verbatim
14585 #. type: verbatim
14586 #: ../src/guestfs-actions.pod:4271
14587 #, no-wrap
14588 msgid ""
14589 " int\n"
14590 " guestfs_mke2journal_U (guestfs_h *g,\n"
14591 "                        int blocksize,\n"
14592 "                        const char *uuid,\n"
14593 "                        const char *device);\n"
14594 "\n"
14595 msgstr ""
14596
14597 # type: textblock
14598 #. type: textblock
14599 #: ../src/guestfs-actions.pod:4277 ../fish/guestfish-actions.pod:2903
14600 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14601 msgstr ""
14602
14603 # type: =head2
14604 #. type: =head2
14605 #: ../src/guestfs-actions.pod:4283
14606 msgid "guestfs_mkfifo"
14607 msgstr ""
14608
14609 # type: verbatim
14610 #. type: verbatim
14611 #: ../src/guestfs-actions.pod:4285
14612 #, no-wrap
14613 msgid ""
14614 " int\n"
14615 " guestfs_mkfifo (guestfs_h *g,\n"
14616 "                 int mode,\n"
14617 "                 const char *path);\n"
14618 "\n"
14619 msgstr ""
14620
14621 # type: textblock
14622 #. type: textblock
14623 #: ../src/guestfs-actions.pod:4290
14624 msgid ""
14625 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14626 "is just a convenient wrapper around C<guestfs_mknod>."
14627 msgstr ""
14628
14629 # type: =head2
14630 #. type: =head2
14631 #: ../src/guestfs-actions.pod:4300
14632 msgid "guestfs_mkfs"
14633 msgstr ""
14634
14635 # type: verbatim
14636 #. type: verbatim
14637 #: ../src/guestfs-actions.pod:4302
14638 #, no-wrap
14639 msgid ""
14640 " int\n"
14641 " guestfs_mkfs (guestfs_h *g,\n"
14642 "               const char *fstype,\n"
14643 "               const char *device);\n"
14644 "\n"
14645 msgstr ""
14646
14647 # type: textblock
14648 #. type: textblock
14649 #: ../src/guestfs-actions.pod:4307 ../fish/guestfish-actions.pod:2919
14650 msgid ""
14651 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14652 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14653 msgstr ""
14654
14655 # type: =head2
14656 #. type: =head2
14657 #: ../src/guestfs-actions.pod:4315
14658 msgid "guestfs_mkfs_b"
14659 msgstr ""
14660
14661 # type: verbatim
14662 #. type: verbatim
14663 #: ../src/guestfs-actions.pod:4317
14664 #, no-wrap
14665 msgid ""
14666 " int\n"
14667 " guestfs_mkfs_b (guestfs_h *g,\n"
14668 "                 const char *fstype,\n"
14669 "                 int blocksize,\n"
14670 "                 const char *device);\n"
14671 "\n"
14672 msgstr ""
14673
14674 # type: textblock
14675 #. type: textblock
14676 #: ../src/guestfs-actions.pod:4323
14677 msgid ""
14678 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14679 "block size of the resulting filesystem.  Supported block sizes depend on the "
14680 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14681 msgstr ""
14682
14683 # type: textblock
14684 #. type: textblock
14685 #: ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4371
14686 #: ../fish/guestfish-actions.pod:2932 ../fish/guestfish-actions.pod:2959
14687 msgid ""
14688 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14689 "cluster size."
14690 msgstr ""
14691
14692 # type: textblock
14693 #. type: textblock
14694 #: ../src/guestfs-actions.pod:4333 ../fish/guestfish-actions.pod:2935
14695 msgid ""
14696 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
14697 msgstr ""
14698
14699 # type: =head2
14700 #. type: =head2
14701 #: ../src/guestfs-actions.pod:4342
14702 msgid "guestfs_mkfs_opts"
14703 msgstr ""
14704
14705 # type: verbatim
14706 #. type: verbatim
14707 #: ../src/guestfs-actions.pod:4344
14708 #, no-wrap
14709 msgid ""
14710 " int\n"
14711 " guestfs_mkfs_opts (guestfs_h *g,\n"
14712 "                    const char *fstype,\n"
14713 "                    const char *device,\n"
14714 "                    ...);\n"
14715 "\n"
14716 msgstr ""
14717
14718 #. type: verbatim
14719 #: ../src/guestfs-actions.pod:4355
14720 #, no-wrap
14721 msgid ""
14722 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14723 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
14724 "\n"
14725 msgstr ""
14726
14727 # type: textblock
14728 #. type: textblock
14729 #: ../src/guestfs-actions.pod:4358 ../fish/guestfish-actions.pod:2946
14730 msgid ""
14731 "This function creates a filesystem on C<device>.  The filesystem type is "
14732 "C<fstype>, for example C<ext3>."
14733 msgstr ""
14734
14735 # type: =item
14736 #. type: =item
14737 #: ../src/guestfs-actions.pod:4365 ../fish/guestfish-actions.pod:2953
14738 msgid "C<blocksize>"
14739 msgstr ""
14740
14741 # type: textblock
14742 #. type: textblock
14743 #: ../src/guestfs-actions.pod:4367 ../fish/guestfish-actions.pod:2955
14744 msgid ""
14745 "The filesystem block size.  Supported block sizes depend on the filesystem "
14746 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14747 "filesystems."
14748 msgstr ""
14749
14750 #. type: textblock
14751 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2962
14752 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14753 msgstr ""
14754
14755 #. type: =item
14756 #: ../src/guestfs-actions.pod:4376 ../fish/guestfish-actions.pod:2964
14757 msgid "C<features>"
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:2966
14762 msgid "This passes the C<-O> parameter to the external mkfs program."
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../src/guestfs-actions.pod:4380 ../fish/guestfish-actions.pod:2968
14767 msgid ""
14768 "For certain filesystem types, this allows extra filesystem features to be "
14769 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../src/guestfs-actions.pod:4384 ../fish/guestfish-actions.pod:2972
14774 msgid ""
14775 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14776 "type."
14777 msgstr ""
14778
14779 #. type: textblock
14780 #: ../src/guestfs-actions.pod:4391
14781 msgid "(Added in 1.7.19)"
14782 msgstr ""
14783
14784 # type: =head2
14785 #. type: =head2
14786 #: ../src/guestfs-actions.pod:4393
14787 msgid "guestfs_mkfs_opts_va"
14788 msgstr ""
14789
14790 # type: verbatim
14791 #. type: verbatim
14792 #: ../src/guestfs-actions.pod:4395
14793 #, no-wrap
14794 msgid ""
14795 " int\n"
14796 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14797 "                       const char *fstype,\n"
14798 "                       const char *device,\n"
14799 "                       va_list args);\n"
14800 "\n"
14801 msgstr ""
14802
14803 # type: textblock
14804 #. type: textblock
14805 #: ../src/guestfs-actions.pod:4401
14806 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14807 msgstr ""
14808
14809 # type: =head2
14810 #. type: =head2
14811 #: ../src/guestfs-actions.pod:4405
14812 msgid "guestfs_mkfs_opts_argv"
14813 msgstr ""
14814
14815 # type: verbatim
14816 #. type: verbatim
14817 #: ../src/guestfs-actions.pod:4407
14818 #, no-wrap
14819 msgid ""
14820 " int\n"
14821 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14822 "                         const char *fstype,\n"
14823 "                         const char *device,\n"
14824 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14825 "\n"
14826 msgstr ""
14827
14828 # type: textblock
14829 #. type: textblock
14830 #: ../src/guestfs-actions.pod:4413
14831 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14832 msgstr ""
14833
14834 # type: =head2
14835 #. type: =head2
14836 #: ../src/guestfs-actions.pod:4417
14837 msgid "guestfs_mkmountpoint"
14838 msgstr ""
14839
14840 # type: verbatim
14841 #. type: verbatim
14842 #: ../src/guestfs-actions.pod:4419
14843 #, no-wrap
14844 msgid ""
14845 " int\n"
14846 " guestfs_mkmountpoint (guestfs_h *g,\n"
14847 "                       const char *exemptpath);\n"
14848 "\n"
14849 msgstr ""
14850
14851 # type: textblock
14852 #. type: textblock
14853 #: ../src/guestfs-actions.pod:4423
14854 msgid ""
14855 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14856 "that can be used to create extra mountpoints before mounting the first "
14857 "filesystem."
14858 msgstr ""
14859
14860 # type: textblock
14861 #. type: textblock
14862 #: ../src/guestfs-actions.pod:4427 ../fish/guestfish-actions.pod:2987
14863 msgid ""
14864 "These calls are I<only> necessary in some very limited circumstances, mainly "
14865 "the case where you want to mount a mix of unrelated and/or read-only "
14866 "filesystems together."
14867 msgstr ""
14868
14869 # type: textblock
14870 #. type: textblock
14871 #: ../src/guestfs-actions.pod:4431 ../fish/guestfish-actions.pod:2991
14872 msgid ""
14873 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14874 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14875 "inside that.  You can unpack this as follows in guestfish:"
14876 msgstr ""
14877
14878 # type: verbatim
14879 #. type: verbatim
14880 #: ../src/guestfs-actions.pod:4436 ../fish/guestfish-actions.pod:2996
14881 #, no-wrap
14882 msgid ""
14883 " add-ro Fedora-11-i686-Live.iso\n"
14884 " run\n"
14885 " mkmountpoint /cd\n"
14886 " mkmountpoint /sqsh\n"
14887 " mkmountpoint /ext3fs\n"
14888 " mount /dev/sda /cd\n"
14889 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14890 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14891 "\n"
14892 msgstr ""
14893
14894 # type: textblock
14895 #. type: textblock
14896 #: ../src/guestfs-actions.pod:4445 ../fish/guestfish-actions.pod:3005
14897 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14898 msgstr ""
14899
14900 # type: textblock
14901 #. type: textblock
14902 #: ../src/guestfs-actions.pod:4447
14903 msgid ""
14904 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14905 "may get unexpected errors if you try to mix these calls.  It is safest to "
14906 "manually unmount filesystems and remove mountpoints after use."
14907 msgstr ""
14908
14909 # type: textblock
14910 #. type: textblock
14911 #: ../src/guestfs-actions.pod:4451
14912 msgid ""
14913 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14914 "first, so for this to work for manual mountpoints, you must ensure that the "
14915 "innermost mountpoints have the longest pathnames, as in the example code "
14916 "above."
14917 msgstr ""
14918
14919 # type: textblock
14920 #. type: textblock
14921 #: ../src/guestfs-actions.pod:4456 ../fish/guestfish-actions.pod:3016
14922 msgid ""
14923 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14924 msgstr ""
14925
14926 #. type: textblock
14927 #: ../src/guestfs-actions.pod:4458
14928 msgid ""
14929 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14930 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
14931 "can also trigger these issues."
14932 msgstr ""
14933
14934 # type: textblock
14935 #. type: textblock
14936 #: ../src/guestfs-actions.pod:4464 ../src/guestfs-actions.pod:4723
14937 #: ../src/guestfs-actions.pod:5633
14938 msgid "(Added in 1.0.62)"
14939 msgstr ""
14940
14941 # type: =head2
14942 #. type: =head2
14943 #: ../src/guestfs-actions.pod:4466
14944 msgid "guestfs_mknod"
14945 msgstr ""
14946
14947 # type: verbatim
14948 #. type: verbatim
14949 #: ../src/guestfs-actions.pod:4468
14950 #, no-wrap
14951 msgid ""
14952 " int\n"
14953 " guestfs_mknod (guestfs_h *g,\n"
14954 "                int mode,\n"
14955 "                int devmajor,\n"
14956 "                int devminor,\n"
14957 "                const char *path);\n"
14958 "\n"
14959 msgstr ""
14960
14961 # type: textblock
14962 #. type: textblock
14963 #: ../src/guestfs-actions.pod:4475 ../fish/guestfish-actions.pod:3026
14964 msgid ""
14965 "This call creates block or character special devices, or named pipes (FIFOs)."
14966 msgstr ""
14967
14968 # type: textblock
14969 #. type: textblock
14970 #: ../src/guestfs-actions.pod:4478 ../fish/guestfish-actions.pod:3029
14971 msgid ""
14972 "The C<mode> parameter should be the mode, using the standard constants.  "
14973 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14974 "used when creating block and character special devices."
14975 msgstr ""
14976
14977 # type: textblock
14978 #. type: textblock
14979 #: ../src/guestfs-actions.pod:4483
14980 msgid ""
14981 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14982 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14983 "regular file).  These constants are available in the standard Linux header "
14984 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14985 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14986 "the appropriate constant for you."
14987 msgstr ""
14988
14989 # type: =head2
14990 #. type: =head2
14991 #: ../src/guestfs-actions.pod:4497
14992 msgid "guestfs_mknod_b"
14993 msgstr ""
14994
14995 # type: verbatim
14996 #. type: verbatim
14997 #: ../src/guestfs-actions.pod:4499
14998 #, no-wrap
14999 msgid ""
15000 " int\n"
15001 " guestfs_mknod_b (guestfs_h *g,\n"
15002 "                  int mode,\n"
15003 "                  int devmajor,\n"
15004 "                  int devminor,\n"
15005 "                  const char *path);\n"
15006 "\n"
15007 msgstr ""
15008
15009 # type: textblock
15010 #. type: textblock
15011 #: ../src/guestfs-actions.pod:4506
15012 msgid ""
15013 "This call creates a block device node called C<path> with mode C<mode> and "
15014 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15015 "wrapper around C<guestfs_mknod>."
15016 msgstr ""
15017
15018 # type: =head2
15019 #. type: =head2
15020 #: ../src/guestfs-actions.pod:4516
15021 msgid "guestfs_mknod_c"
15022 msgstr ""
15023
15024 # type: verbatim
15025 #. type: verbatim
15026 #: ../src/guestfs-actions.pod:4518
15027 #, no-wrap
15028 msgid ""
15029 " int\n"
15030 " guestfs_mknod_c (guestfs_h *g,\n"
15031 "                  int mode,\n"
15032 "                  int devmajor,\n"
15033 "                  int devminor,\n"
15034 "                  const char *path);\n"
15035 "\n"
15036 msgstr ""
15037
15038 # type: textblock
15039 #. type: textblock
15040 #: ../src/guestfs-actions.pod:4525
15041 msgid ""
15042 "This call creates a char device node called C<path> with mode C<mode> and "
15043 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
15044 "wrapper around C<guestfs_mknod>."
15045 msgstr ""
15046
15047 # type: =head2
15048 #. type: =head2
15049 #: ../src/guestfs-actions.pod:4535
15050 msgid "guestfs_mkswap"
15051 msgstr ""
15052
15053 # type: verbatim
15054 #. type: verbatim
15055 #: ../src/guestfs-actions.pod:4537
15056 #, no-wrap
15057 msgid ""
15058 " int\n"
15059 " guestfs_mkswap (guestfs_h *g,\n"
15060 "                 const char *device);\n"
15061 "\n"
15062 msgstr ""
15063
15064 # type: textblock
15065 #. type: textblock
15066 #: ../src/guestfs-actions.pod:4541 ../fish/guestfish-actions.pod:3068
15067 msgid "Create a swap partition on C<device>."
15068 msgstr ""
15069
15070 # type: =head2
15071 #. type: =head2
15072 #: ../src/guestfs-actions.pod:4547
15073 msgid "guestfs_mkswap_L"
15074 msgstr ""
15075
15076 # type: verbatim
15077 #. type: verbatim
15078 #: ../src/guestfs-actions.pod:4549
15079 #, no-wrap
15080 msgid ""
15081 " int\n"
15082 " guestfs_mkswap_L (guestfs_h *g,\n"
15083 "                   const char *label,\n"
15084 "                   const char *device);\n"
15085 "\n"
15086 msgstr ""
15087
15088 # type: textblock
15089 #. type: textblock
15090 #: ../src/guestfs-actions.pod:4554 ../fish/guestfish-actions.pod:3074
15091 msgid "Create a swap partition on C<device> with label C<label>."
15092 msgstr ""
15093
15094 # type: textblock
15095 #. type: textblock
15096 #: ../src/guestfs-actions.pod:4556 ../fish/guestfish-actions.pod:3076
15097 msgid ""
15098 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
15099 "sda>), just to a partition.  This appears to be a limitation of the kernel "
15100 "or swap tools."
15101 msgstr ""
15102
15103 # type: =head2
15104 #. type: =head2
15105 #: ../src/guestfs-actions.pod:4564
15106 msgid "guestfs_mkswap_U"
15107 msgstr ""
15108
15109 # type: verbatim
15110 #. type: verbatim
15111 #: ../src/guestfs-actions.pod:4566
15112 #, no-wrap
15113 msgid ""
15114 " int\n"
15115 " guestfs_mkswap_U (guestfs_h *g,\n"
15116 "                   const char *uuid,\n"
15117 "                   const char *device);\n"
15118 "\n"
15119 msgstr ""
15120
15121 # type: textblock
15122 #. type: textblock
15123 #: ../src/guestfs-actions.pod:4571 ../fish/guestfish-actions.pod:3084
15124 msgid "Create a swap partition on C<device> with UUID C<uuid>."
15125 msgstr ""
15126
15127 # type: =head2
15128 #. type: =head2
15129 #: ../src/guestfs-actions.pod:4577
15130 msgid "guestfs_mkswap_file"
15131 msgstr ""
15132
15133 # type: verbatim
15134 #. type: verbatim
15135 #: ../src/guestfs-actions.pod:4579
15136 #, no-wrap
15137 msgid ""
15138 " int\n"
15139 " guestfs_mkswap_file (guestfs_h *g,\n"
15140 "                      const char *path);\n"
15141 "\n"
15142 msgstr ""
15143
15144 # type: textblock
15145 #. type: textblock
15146 #: ../src/guestfs-actions.pod:4583 ../fish/guestfish-actions.pod:3090
15147 msgid "Create a swap file."
15148 msgstr ""
15149
15150 # type: textblock
15151 #. type: textblock
15152 #: ../src/guestfs-actions.pod:4585
15153 msgid ""
15154 "This command just writes a swap file signature to an existing file.  To "
15155 "create the file itself, use something like C<guestfs_fallocate>."
15156 msgstr ""
15157
15158 # type: =head2
15159 #. type: =head2
15160 #: ../src/guestfs-actions.pod:4592
15161 msgid "guestfs_modprobe"
15162 msgstr ""
15163
15164 # type: verbatim
15165 #. type: verbatim
15166 #: ../src/guestfs-actions.pod:4594
15167 #, no-wrap
15168 msgid ""
15169 " int\n"
15170 " guestfs_modprobe (guestfs_h *g,\n"
15171 "                   const char *modulename);\n"
15172 "\n"
15173 msgstr ""
15174
15175 # type: textblock
15176 #. type: textblock
15177 #: ../src/guestfs-actions.pod:4598 ../fish/guestfish-actions.pod:3099
15178 msgid "This loads a kernel module in the appliance."
15179 msgstr ""
15180
15181 # type: textblock
15182 #. type: textblock
15183 #: ../src/guestfs-actions.pod:4600 ../fish/guestfish-actions.pod:3101
15184 msgid ""
15185 "The kernel module must have been whitelisted when libguestfs was built (see "
15186 "C<appliance/kmod.whitelist.in> in the source)."
15187 msgstr ""
15188
15189 # type: =head2
15190 #. type: =head2
15191 #: ../src/guestfs-actions.pod:4607
15192 msgid "guestfs_mount"
15193 msgstr ""
15194
15195 # type: verbatim
15196 #. type: verbatim
15197 #: ../src/guestfs-actions.pod:4609
15198 #, no-wrap
15199 msgid ""
15200 " int\n"
15201 " guestfs_mount (guestfs_h *g,\n"
15202 "                const char *device,\n"
15203 "                const char *mountpoint);\n"
15204 "\n"
15205 msgstr ""
15206
15207 # type: textblock
15208 #. type: textblock
15209 #: ../src/guestfs-actions.pod:4614 ../fish/guestfish-actions.pod:3108
15210 msgid ""
15211 "Mount a guest disk at a position in the filesystem.  Block devices are named "
15212 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
15213 "those block devices contain partitions, they will have the usual names (eg. "
15214 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
15215 msgstr ""
15216
15217 # type: textblock
15218 #. type: textblock
15219 #: ../src/guestfs-actions.pod:4620 ../fish/guestfish-actions.pod:3114
15220 msgid ""
15221 "The rules are the same as for L<mount(2)>: A filesystem must first be "
15222 "mounted on C</> before others can be mounted.  Other filesystems can only be "
15223 "mounted on directories which already exist."
15224 msgstr ""
15225
15226 # type: textblock
15227 #. type: textblock
15228 #: ../src/guestfs-actions.pod:4625 ../fish/guestfish-actions.pod:3119
15229 msgid ""
15230 "The mounted filesystem is writable, if we have sufficient permissions on the "
15231 "underlying device."
15232 msgstr ""
15233
15234 # type: textblock
15235 #. type: textblock
15236 #: ../src/guestfs-actions.pod:4628
15237 msgid ""
15238 "B<Important note:> When you use this call, the filesystem options C<sync> "
15239 "and C<noatime> are set implicitly.  This was originally done because we "
15240 "thought it would improve reliability, but it turns out that I<-o sync> has a "
15241 "very large negative performance impact and negligible effect on "
15242 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
15243 "in any code that needs performance, and instead use C<guestfs_mount_options> "
15244 "(use an empty string for the first parameter if you don't want any options)."
15245 msgstr ""
15246
15247 # type: =head2
15248 #. type: =head2
15249 #: ../src/guestfs-actions.pod:4642
15250 msgid "guestfs_mount_loop"
15251 msgstr ""
15252
15253 # type: verbatim
15254 #. type: verbatim
15255 #: ../src/guestfs-actions.pod:4644
15256 #, no-wrap
15257 msgid ""
15258 " int\n"
15259 " guestfs_mount_loop (guestfs_h *g,\n"
15260 "                     const char *file,\n"
15261 "                     const char *mountpoint);\n"
15262 "\n"
15263 msgstr ""
15264
15265 # type: textblock
15266 #. type: textblock
15267 #: ../src/guestfs-actions.pod:4649 ../fish/guestfish-actions.pod:3136
15268 msgid ""
15269 "This command lets you mount C<file> (a filesystem image in a file) on a "
15270 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
15271 "mountpoint>."
15272 msgstr ""
15273
15274 # type: =head2
15275 #. type: =head2
15276 #: ../src/guestfs-actions.pod:4657
15277 msgid "guestfs_mount_options"
15278 msgstr ""
15279
15280 # type: verbatim
15281 #. type: verbatim
15282 #: ../src/guestfs-actions.pod:4659
15283 #, no-wrap
15284 msgid ""
15285 " int\n"
15286 " guestfs_mount_options (guestfs_h *g,\n"
15287 "                        const char *options,\n"
15288 "                        const char *device,\n"
15289 "                        const char *mountpoint);\n"
15290 "\n"
15291 msgstr ""
15292
15293 # type: textblock
15294 #. type: textblock
15295 #: ../src/guestfs-actions.pod:4665
15296 msgid ""
15297 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15298 "the mount options as for the L<mount(8)> I<-o> flag."
15299 msgstr ""
15300
15301 # type: textblock
15302 #. type: textblock
15303 #: ../src/guestfs-actions.pod:4669 ../fish/guestfish-actions.pod:3148
15304 msgid ""
15305 "If the C<options> parameter is an empty string, then no options are passed "
15306 "(all options default to whatever the filesystem uses)."
15307 msgstr ""
15308
15309 # type: textblock
15310 #. type: textblock
15311 #: ../src/guestfs-actions.pod:4675 ../src/guestfs-actions.pod:4689
15312 #: ../src/guestfs-actions.pod:4706
15313 msgid "(Added in 1.0.10)"
15314 msgstr ""
15315
15316 # type: =head2
15317 #. type: =head2
15318 #: ../src/guestfs-actions.pod:4677
15319 msgid "guestfs_mount_ro"
15320 msgstr ""
15321
15322 # type: verbatim
15323 #. type: verbatim
15324 #: ../src/guestfs-actions.pod:4679
15325 #, no-wrap
15326 msgid ""
15327 " int\n"
15328 " guestfs_mount_ro (guestfs_h *g,\n"
15329 "                   const char *device,\n"
15330 "                   const char *mountpoint);\n"
15331 "\n"
15332 msgstr ""
15333
15334 # type: textblock
15335 #. type: textblock
15336 #: ../src/guestfs-actions.pod:4684
15337 msgid ""
15338 "This is the same as the C<guestfs_mount> command, but it mounts the "
15339 "filesystem with the read-only (I<-o ro>) flag."
15340 msgstr ""
15341
15342 # type: =head2
15343 #. type: =head2
15344 #: ../src/guestfs-actions.pod:4691
15345 msgid "guestfs_mount_vfs"
15346 msgstr ""
15347
15348 # type: verbatim
15349 #. type: verbatim
15350 #: ../src/guestfs-actions.pod:4693
15351 #, no-wrap
15352 msgid ""
15353 " int\n"
15354 " guestfs_mount_vfs (guestfs_h *g,\n"
15355 "                    const char *options,\n"
15356 "                    const char *vfstype,\n"
15357 "                    const char *device,\n"
15358 "                    const char *mountpoint);\n"
15359 "\n"
15360 msgstr ""
15361
15362 # type: textblock
15363 #. type: textblock
15364 #: ../src/guestfs-actions.pod:4700
15365 msgid ""
15366 "This is the same as the C<guestfs_mount> command, but it allows you to set "
15367 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
15368 "t> flags."
15369 msgstr ""
15370
15371 # type: =head2
15372 #. type: =head2
15373 #: ../src/guestfs-actions.pod:4708
15374 msgid "guestfs_mountpoints"
15375 msgstr ""
15376
15377 # type: verbatim
15378 #. type: verbatim
15379 #: ../src/guestfs-actions.pod:4710
15380 #, no-wrap
15381 msgid ""
15382 " char **\n"
15383 " guestfs_mountpoints (guestfs_h *g);\n"
15384 "\n"
15385 msgstr ""
15386
15387 # type: textblock
15388 #. type: textblock
15389 #: ../src/guestfs-actions.pod:4713
15390 msgid ""
15391 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
15392 "devices.  This one returns a hash table (map) of device name to directory "
15393 "where the device is mounted."
15394 msgstr ""
15395
15396 # type: =head2
15397 #. type: =head2
15398 #: ../src/guestfs-actions.pod:4725
15399 msgid "guestfs_mounts"
15400 msgstr ""
15401
15402 # type: verbatim
15403 #. type: verbatim
15404 #: ../src/guestfs-actions.pod:4727
15405 #, no-wrap
15406 msgid ""
15407 " char **\n"
15408 " guestfs_mounts (guestfs_h *g);\n"
15409 "\n"
15410 msgstr ""
15411
15412 # type: textblock
15413 #. type: textblock
15414 #: ../src/guestfs-actions.pod:4730 ../fish/guestfish-actions.pod:3179
15415 msgid ""
15416 "This returns the list of currently mounted filesystems.  It returns the list "
15417 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
15418 msgstr ""
15419
15420 # type: textblock
15421 #. type: textblock
15422 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3182
15423 msgid "Some internal mounts are not shown."
15424 msgstr ""
15425
15426 # type: textblock
15427 #. type: textblock
15428 #: ../src/guestfs-actions.pod:4735
15429 msgid "See also: C<guestfs_mountpoints>"
15430 msgstr ""
15431
15432 # type: =head2
15433 #. type: =head2
15434 #: ../src/guestfs-actions.pod:4743
15435 msgid "guestfs_mv"
15436 msgstr ""
15437
15438 # type: verbatim
15439 #. type: verbatim
15440 #: ../src/guestfs-actions.pod:4745
15441 #, no-wrap
15442 msgid ""
15443 " int\n"
15444 " guestfs_mv (guestfs_h *g,\n"
15445 "             const char *src,\n"
15446 "             const char *dest);\n"
15447 "\n"
15448 msgstr ""
15449
15450 # type: textblock
15451 #. type: textblock
15452 #: ../src/guestfs-actions.pod:4750 ../fish/guestfish-actions.pod:3190
15453 msgid ""
15454 "This moves a file from C<src> to C<dest> where C<dest> is either a "
15455 "destination filename or destination directory."
15456 msgstr ""
15457
15458 # type: =head2
15459 #. type: =head2
15460 #: ../src/guestfs-actions.pod:4757
15461 msgid "guestfs_ntfs_3g_probe"
15462 msgstr ""
15463
15464 # type: verbatim
15465 #. type: verbatim
15466 #: ../src/guestfs-actions.pod:4759
15467 #, no-wrap
15468 msgid ""
15469 " int\n"
15470 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
15471 "                        int rw,\n"
15472 "                        const char *device);\n"
15473 "\n"
15474 msgstr ""
15475
15476 # type: textblock
15477 #. type: textblock
15478 #: ../src/guestfs-actions.pod:4764 ../fish/guestfish-actions.pod:3197
15479 msgid ""
15480 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
15481 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
15482 "write, and some cannot be mounted at all)."
15483 msgstr ""
15484
15485 # type: textblock
15486 #. type: textblock
15487 #: ../src/guestfs-actions.pod:4768 ../fish/guestfish-actions.pod:3201
15488 msgid ""
15489 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
15490 "can be mounted read-write.  Set it to false if you want to test if the "
15491 "volume can be mounted read-only."
15492 msgstr ""
15493
15494 # type: textblock
15495 #. type: textblock
15496 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3205
15497 msgid ""
15498 "The return value is an integer which C<0> if the operation would succeed, or "
15499 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
15500 msgstr ""
15501
15502 # type: textblock
15503 #. type: textblock
15504 #: ../src/guestfs-actions.pod:4778
15505 msgid "(Added in 1.0.43)"
15506 msgstr ""
15507
15508 # type: =head2
15509 #. type: =head2
15510 #: ../src/guestfs-actions.pod:4780
15511 msgid "guestfs_ntfsresize"
15512 msgstr ""
15513
15514 # type: verbatim
15515 #. type: verbatim
15516 #: ../src/guestfs-actions.pod:4782
15517 #, no-wrap
15518 msgid ""
15519 " int\n"
15520 " guestfs_ntfsresize (guestfs_h *g,\n"
15521 "                     const char *device);\n"
15522 "\n"
15523 msgstr ""
15524
15525 # type: textblock
15526 #. type: textblock
15527 #: ../src/guestfs-actions.pod:4786 ../fish/guestfish-actions.pod:3213
15528 msgid ""
15529 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
15530 "size of the underlying device.  See also L<ntfsresize(8)>."
15531 msgstr ""
15532
15533 # type: =head2
15534 #. type: =head2
15535 #: ../src/guestfs-actions.pod:4794
15536 msgid "guestfs_ntfsresize_size"
15537 msgstr ""
15538
15539 # type: verbatim
15540 #. type: verbatim
15541 #: ../src/guestfs-actions.pod:4796
15542 #, no-wrap
15543 msgid ""
15544 " int\n"
15545 " guestfs_ntfsresize_size (guestfs_h *g,\n"
15546 "                          const char *device,\n"
15547 "                          int64_t size);\n"
15548 "\n"
15549 msgstr ""
15550
15551 # type: textblock
15552 #. type: textblock
15553 #: ../src/guestfs-actions.pod:4801
15554 msgid ""
15555 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
15556 "to specify the new size (in bytes) explicitly."
15557 msgstr ""
15558
15559 # type: textblock
15560 #. type: textblock
15561 #: ../src/guestfs-actions.pod:4806 ../src/guestfs-actions.pod:5242
15562 #: ../src/guestfs-actions.pod:5315 ../src/guestfs-actions.pod:5581
15563 #: ../src/guestfs-actions.pod:7152
15564 msgid "(Added in 1.3.14)"
15565 msgstr ""
15566
15567 # type: =head2
15568 #. type: =head2
15569 #: ../src/guestfs-actions.pod:4808
15570 msgid "guestfs_part_add"
15571 msgstr ""
15572
15573 # type: verbatim
15574 #. type: verbatim
15575 #: ../src/guestfs-actions.pod:4810
15576 #, no-wrap
15577 msgid ""
15578 " int\n"
15579 " guestfs_part_add (guestfs_h *g,\n"
15580 "                   const char *device,\n"
15581 "                   const char *prlogex,\n"
15582 "                   int64_t startsect,\n"
15583 "                   int64_t endsect);\n"
15584 "\n"
15585 msgstr ""
15586
15587 # type: textblock
15588 #. type: textblock
15589 #: ../src/guestfs-actions.pod:4817
15590 msgid ""
15591 "This command adds a partition to C<device>.  If there is no partition table "
15592 "on the device, call C<guestfs_part_init> first."
15593 msgstr ""
15594
15595 # type: textblock
15596 #. type: textblock
15597 #: ../src/guestfs-actions.pod:4820 ../fish/guestfish-actions.pod:3231
15598 msgid ""
15599 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15600 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15601 "C<logical>) and C<e> (or C<extended>) partition types."
15602 msgstr ""
15603
15604 # type: textblock
15605 #. type: textblock
15606 #: ../src/guestfs-actions.pod:4825 ../fish/guestfish-actions.pod:3236
15607 msgid ""
15608 "C<startsect> and C<endsect> are the start and end of the partition in "
15609 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15610 "from the end of the disk (C<-1> is the last sector)."
15611 msgstr ""
15612
15613 # type: textblock
15614 #. type: textblock
15615 #: ../src/guestfs-actions.pod:4829
15616 msgid ""
15617 "Creating a partition which covers the whole disk is not so easy.  Use "
15618 "C<guestfs_part_disk> to do that."
15619 msgstr ""
15620
15621 # type: textblock
15622 #. type: textblock
15623 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:4872
15624 #: ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:5003
15625 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5060
15626 #: ../src/guestfs-actions.pod:5100
15627 msgid "(Added in 1.0.78)"
15628 msgstr ""
15629
15630 # type: =head2
15631 #. type: =head2
15632 #: ../src/guestfs-actions.pod:4836
15633 msgid "guestfs_part_del"
15634 msgstr ""
15635
15636 # type: verbatim
15637 #. type: verbatim
15638 #: ../src/guestfs-actions.pod:4838
15639 #, no-wrap
15640 msgid ""
15641 " int\n"
15642 " guestfs_part_del (guestfs_h *g,\n"
15643 "                   const char *device,\n"
15644 "                   int partnum);\n"
15645 "\n"
15646 msgstr ""
15647
15648 # type: textblock
15649 #. type: textblock
15650 #: ../src/guestfs-actions.pod:4843 ../fish/guestfish-actions.pod:3247
15651 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15652 msgstr ""
15653
15654 # type: textblock
15655 #. type: textblock
15656 #: ../src/guestfs-actions.pod:4845 ../fish/guestfish-actions.pod:3249
15657 msgid ""
15658 "Note that in the case of MBR partitioning, deleting an extended partition "
15659 "also deletes any logical partitions it contains."
15660 msgstr ""
15661
15662 # type: =head2
15663 #. type: =head2
15664 #: ../src/guestfs-actions.pod:4853
15665 msgid "guestfs_part_disk"
15666 msgstr ""
15667
15668 # type: verbatim
15669 #. type: verbatim
15670 #: ../src/guestfs-actions.pod:4855
15671 #, no-wrap
15672 msgid ""
15673 " int\n"
15674 " guestfs_part_disk (guestfs_h *g,\n"
15675 "                    const char *device,\n"
15676 "                    const char *parttype);\n"
15677 "\n"
15678 msgstr ""
15679
15680 # type: textblock
15681 #. type: textblock
15682 #: ../src/guestfs-actions.pod:4860
15683 msgid ""
15684 "This command is simply a combination of C<guestfs_part_init> followed by "
15685 "C<guestfs_part_add> to create a single primary partition covering the whole "
15686 "disk."
15687 msgstr ""
15688
15689 # type: textblock
15690 #. type: textblock
15691 #: ../src/guestfs-actions.pod:4864
15692 msgid ""
15693 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15694 "possible values are described in C<guestfs_part_init>."
15695 msgstr ""
15696
15697 # type: =head2
15698 #. type: =head2
15699 #: ../src/guestfs-actions.pod:4874
15700 msgid "guestfs_part_get_bootable"
15701 msgstr ""
15702
15703 # type: verbatim
15704 #. type: verbatim
15705 #: ../src/guestfs-actions.pod:4876
15706 #, no-wrap
15707 msgid ""
15708 " int\n"
15709 " guestfs_part_get_bootable (guestfs_h *g,\n"
15710 "                            const char *device,\n"
15711 "                            int partnum);\n"
15712 "\n"
15713 msgstr ""
15714
15715 # type: textblock
15716 #. type: textblock
15717 #: ../src/guestfs-actions.pod:4881 ../fish/guestfish-actions.pod:3271
15718 msgid ""
15719 "This command returns true if the partition C<partnum> on C<device> has the "
15720 "bootable flag set."
15721 msgstr ""
15722
15723 # type: textblock
15724 #. type: textblock
15725 #: ../src/guestfs-actions.pod:4884
15726 msgid "See also C<guestfs_part_set_bootable>."
15727 msgstr ""
15728
15729 # type: =head2
15730 #. type: =head2
15731 #: ../src/guestfs-actions.pod:4890
15732 msgid "guestfs_part_get_mbr_id"
15733 msgstr ""
15734
15735 # type: verbatim
15736 #. type: verbatim
15737 #: ../src/guestfs-actions.pod:4892
15738 #, no-wrap
15739 msgid ""
15740 " int\n"
15741 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15742 "                          const char *device,\n"
15743 "                          int partnum);\n"
15744 "\n"
15745 msgstr ""
15746
15747 # type: textblock
15748 #. type: textblock
15749 #: ../src/guestfs-actions.pod:4897 ../fish/guestfish-actions.pod:3280
15750 msgid ""
15751 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15752 "partition C<partnum>."
15753 msgstr ""
15754
15755 # type: textblock
15756 #. type: textblock
15757 #: ../src/guestfs-actions.pod:4900 ../src/guestfs-actions.pod:5076
15758 msgid ""
15759 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15760 "undefined results for other partition table types (see "
15761 "C<guestfs_part_get_parttype>)."
15762 msgstr ""
15763
15764 # type: =head2
15765 #. type: =head2
15766 #: ../src/guestfs-actions.pod:4908
15767 msgid "guestfs_part_get_parttype"
15768 msgstr ""
15769
15770 # type: verbatim
15771 #. type: verbatim
15772 #: ../src/guestfs-actions.pod:4910
15773 #, no-wrap
15774 msgid ""
15775 " char *\n"
15776 " guestfs_part_get_parttype (guestfs_h *g,\n"
15777 "                            const char *device);\n"
15778 "\n"
15779 msgstr ""
15780
15781 # type: textblock
15782 #. type: textblock
15783 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3291
15784 msgid ""
15785 "This command examines the partition table on C<device> and returns the "
15786 "partition table type (format) being used."
15787 msgstr ""
15788
15789 # type: textblock
15790 #. type: textblock
15791 #: ../src/guestfs-actions.pod:4917
15792 msgid ""
15793 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15794 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15795 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15796 msgstr ""
15797
15798 # type: =head2
15799 #. type: =head2
15800 #: ../src/guestfs-actions.pod:4927
15801 msgid "guestfs_part_init"
15802 msgstr ""
15803
15804 # type: verbatim
15805 #. type: verbatim
15806 #: ../src/guestfs-actions.pod:4929
15807 #, no-wrap
15808 msgid ""
15809 " int\n"
15810 " guestfs_part_init (guestfs_h *g,\n"
15811 "                    const char *device,\n"
15812 "                    const char *parttype);\n"
15813 "\n"
15814 msgstr ""
15815
15816 # type: textblock
15817 #. type: textblock
15818 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3303
15819 msgid ""
15820 "This creates an empty partition table on C<device> of one of the partition "
15821 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15822 "(for large disks)."
15823 msgstr ""
15824
15825 # type: textblock
15826 #. type: textblock
15827 #: ../src/guestfs-actions.pod:4938
15828 msgid ""
15829 "Initially there are no partitions.  Following this, you should call "
15830 "C<guestfs_part_add> for each partition required."
15831 msgstr ""
15832
15833 # type: textblock
15834 #. type: textblock
15835 #: ../src/guestfs-actions.pod:4941 ../fish/guestfish-actions.pod:3310
15836 msgid "Possible values for C<parttype> are:"
15837 msgstr ""
15838
15839 # type: =item
15840 #. type: =item
15841 #: ../src/guestfs-actions.pod:4945 ../fish/guestfish-actions.pod:3314
15842 msgid "B<efi> | B<gpt>"
15843 msgstr ""
15844
15845 # type: textblock
15846 #. type: textblock
15847 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3316
15848 msgid "Intel EFI / GPT partition table."
15849 msgstr ""
15850
15851 # type: textblock
15852 #. type: textblock
15853 #: ../src/guestfs-actions.pod:4949 ../fish/guestfish-actions.pod:3318
15854 msgid ""
15855 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15856 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15857 "the C<mbr> format."
15858 msgstr ""
15859
15860 # type: =item
15861 #. type: =item
15862 #: ../src/guestfs-actions.pod:4953 ../fish/guestfish-actions.pod:3322
15863 msgid "B<mbr> | B<msdos>"
15864 msgstr ""
15865
15866 # type: textblock
15867 #. type: textblock
15868 #: ../src/guestfs-actions.pod:4955 ../fish/guestfish-actions.pod:3324
15869 msgid ""
15870 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15871 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15872 "TB.  For large disks we recommend using C<gpt>."
15873 msgstr ""
15874
15875 # type: textblock
15876 #. type: textblock
15877 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3331
15878 msgid ""
15879 "Other partition table types that may work but are not supported include:"
15880 msgstr ""
15881
15882 # type: =item
15883 #. type: =item
15884 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3336
15885 msgid "B<aix>"
15886 msgstr ""
15887
15888 # type: textblock
15889 #. type: textblock
15890 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3338
15891 msgid "AIX disk labels."
15892 msgstr ""
15893
15894 # type: =item
15895 #. type: =item
15896 #: ../src/guestfs-actions.pod:4971 ../fish/guestfish-actions.pod:3340
15897 msgid "B<amiga> | B<rdb>"
15898 msgstr ""
15899
15900 # type: textblock
15901 #. type: textblock
15902 #: ../src/guestfs-actions.pod:4973 ../fish/guestfish-actions.pod:3342
15903 msgid "Amiga \"Rigid Disk Block\" format."
15904 msgstr ""
15905
15906 # type: =item
15907 #. type: =item
15908 #: ../src/guestfs-actions.pod:4975 ../fish/guestfish-actions.pod:3344
15909 msgid "B<bsd>"
15910 msgstr ""
15911
15912 # type: textblock
15913 #. type: textblock
15914 #: ../src/guestfs-actions.pod:4977 ../fish/guestfish-actions.pod:3346
15915 msgid "BSD disk labels."
15916 msgstr ""
15917
15918 # type: =item
15919 #. type: =item
15920 #: ../src/guestfs-actions.pod:4979 ../fish/guestfish-actions.pod:3348
15921 msgid "B<dasd>"
15922 msgstr ""
15923
15924 # type: textblock
15925 #. type: textblock
15926 #: ../src/guestfs-actions.pod:4981 ../fish/guestfish-actions.pod:3350
15927 msgid "DASD, used on IBM mainframes."
15928 msgstr ""
15929
15930 # type: =item
15931 #. type: =item
15932 #: ../src/guestfs-actions.pod:4983 ../fish/guestfish-actions.pod:3352
15933 msgid "B<dvh>"
15934 msgstr ""
15935
15936 # type: textblock
15937 #. type: textblock
15938 #: ../src/guestfs-actions.pod:4985 ../fish/guestfish-actions.pod:3354
15939 msgid "MIPS/SGI volumes."
15940 msgstr ""
15941
15942 # type: =item
15943 #. type: =item
15944 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3356
15945 msgid "B<mac>"
15946 msgstr ""
15947
15948 # type: textblock
15949 #. type: textblock
15950 #: ../src/guestfs-actions.pod:4989 ../fish/guestfish-actions.pod:3358
15951 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15952 msgstr ""
15953
15954 # type: =item
15955 #. type: =item
15956 #: ../src/guestfs-actions.pod:4991 ../fish/guestfish-actions.pod:3360
15957 msgid "B<pc98>"
15958 msgstr ""
15959
15960 # type: textblock
15961 #. type: textblock
15962 #: ../src/guestfs-actions.pod:4993 ../fish/guestfish-actions.pod:3362
15963 msgid "NEC PC-98 format, common in Japan apparently."
15964 msgstr ""
15965
15966 # type: =item
15967 #. type: =item
15968 #: ../src/guestfs-actions.pod:4995 ../fish/guestfish-actions.pod:3364
15969 msgid "B<sun>"
15970 msgstr ""
15971
15972 # type: textblock
15973 #. type: textblock
15974 #: ../src/guestfs-actions.pod:4997 ../fish/guestfish-actions.pod:3366
15975 msgid "Sun disk labels."
15976 msgstr ""
15977
15978 # type: =head2
15979 #. type: =head2
15980 #: ../src/guestfs-actions.pod:5005
15981 msgid "guestfs_part_list"
15982 msgstr ""
15983
15984 # type: verbatim
15985 #. type: verbatim
15986 #: ../src/guestfs-actions.pod:5007
15987 #, no-wrap
15988 msgid ""
15989 " struct guestfs_partition_list *\n"
15990 " guestfs_part_list (guestfs_h *g,\n"
15991 "                    const char *device);\n"
15992 "\n"
15993 msgstr ""
15994
15995 # type: textblock
15996 #. type: textblock
15997 #: ../src/guestfs-actions.pod:5011 ../fish/guestfish-actions.pod:3374
15998 msgid ""
15999 "This command parses the partition table on C<device> and returns the list of "
16000 "partitions found."
16001 msgstr ""
16002
16003 # type: textblock
16004 #. type: textblock
16005 #: ../src/guestfs-actions.pod:5014 ../fish/guestfish-actions.pod:3377
16006 msgid "The fields in the returned structure are:"
16007 msgstr ""
16008
16009 # type: =item
16010 #. type: =item
16011 #: ../src/guestfs-actions.pod:5018 ../fish/guestfish-actions.pod:3381
16012 msgid "B<part_num>"
16013 msgstr ""
16014
16015 # type: textblock
16016 #. type: textblock
16017 #: ../src/guestfs-actions.pod:5020 ../fish/guestfish-actions.pod:3383
16018 msgid "Partition number, counting from 1."
16019 msgstr ""
16020
16021 # type: =item
16022 #. type: =item
16023 #: ../src/guestfs-actions.pod:5022 ../fish/guestfish-actions.pod:3385
16024 msgid "B<part_start>"
16025 msgstr ""
16026
16027 # type: textblock
16028 #. type: textblock
16029 #: ../src/guestfs-actions.pod:5024
16030 msgid ""
16031 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
16032 "the device's sector size, see C<guestfs_blockdev_getss>."
16033 msgstr ""
16034
16035 # type: =item
16036 #. type: =item
16037 #: ../src/guestfs-actions.pod:5027 ../fish/guestfish-actions.pod:3390
16038 msgid "B<part_end>"
16039 msgstr ""
16040
16041 # type: textblock
16042 #. type: textblock
16043 #: ../src/guestfs-actions.pod:5029 ../fish/guestfish-actions.pod:3392
16044 msgid "End of the partition in bytes."
16045 msgstr ""
16046
16047 # type: =item
16048 #. type: =item
16049 #: ../src/guestfs-actions.pod:5031 ../fish/guestfish-actions.pod:3394
16050 msgid "B<part_size>"
16051 msgstr ""
16052
16053 # type: textblock
16054 #. type: textblock
16055 #: ../src/guestfs-actions.pod:5033 ../fish/guestfish-actions.pod:3396
16056 msgid "Size of the partition in bytes."
16057 msgstr ""
16058
16059 # type: textblock
16060 #. type: textblock
16061 #: ../src/guestfs-actions.pod:5037
16062 msgid ""
16063 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
16064 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
16065 "use>."
16066 msgstr ""
16067
16068 # type: =head2
16069 #. type: =head2
16070 #: ../src/guestfs-actions.pod:5043
16071 msgid "guestfs_part_set_bootable"
16072 msgstr ""
16073
16074 # type: verbatim
16075 #. type: verbatim
16076 #: ../src/guestfs-actions.pod:5045
16077 #, no-wrap
16078 msgid ""
16079 " int\n"
16080 " guestfs_part_set_bootable (guestfs_h *g,\n"
16081 "                            const char *device,\n"
16082 "                            int partnum,\n"
16083 "                            int bootable);\n"
16084 "\n"
16085 msgstr ""
16086
16087 # type: textblock
16088 #. type: textblock
16089 #: ../src/guestfs-actions.pod:5051 ../fish/guestfish-actions.pod:3404
16090 msgid ""
16091 "This sets the bootable flag on partition numbered C<partnum> on device "
16092 "C<device>.  Note that partitions are numbered from 1."
16093 msgstr ""
16094
16095 # type: textblock
16096 #. type: textblock
16097 #: ../src/guestfs-actions.pod:5054 ../fish/guestfish-actions.pod:3407
16098 msgid ""
16099 "The bootable flag is used by some operating systems (notably Windows) to "
16100 "determine which partition to boot from.  It is by no means universally "
16101 "recognized."
16102 msgstr ""
16103
16104 # type: =head2
16105 #. type: =head2
16106 #: ../src/guestfs-actions.pod:5062
16107 msgid "guestfs_part_set_mbr_id"
16108 msgstr ""
16109
16110 # type: verbatim
16111 #. type: verbatim
16112 #: ../src/guestfs-actions.pod:5064
16113 #, no-wrap
16114 msgid ""
16115 " int\n"
16116 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
16117 "                          const char *device,\n"
16118 "                          int partnum,\n"
16119 "                          int idbyte);\n"
16120 "\n"
16121 msgstr ""
16122
16123 # type: textblock
16124 #. type: textblock
16125 #: ../src/guestfs-actions.pod:5070 ../fish/guestfish-actions.pod:3415
16126 msgid ""
16127 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
16128 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
16129 "documentation are in fact hexadecimal numbers, but usually documented "
16130 "without any leading \"0x\" which might be confusing."
16131 msgstr ""
16132
16133 # type: =head2
16134 #. type: =head2
16135 #: ../src/guestfs-actions.pod:5084
16136 msgid "guestfs_part_set_name"
16137 msgstr ""
16138
16139 # type: verbatim
16140 #. type: verbatim
16141 #: ../src/guestfs-actions.pod:5086
16142 #, no-wrap
16143 msgid ""
16144 " int\n"
16145 " guestfs_part_set_name (guestfs_h *g,\n"
16146 "                        const char *device,\n"
16147 "                        int partnum,\n"
16148 "                        const char *name);\n"
16149 "\n"
16150 msgstr ""
16151
16152 # type: textblock
16153 #. type: textblock
16154 #: ../src/guestfs-actions.pod:5092 ../fish/guestfish-actions.pod:3429
16155 msgid ""
16156 "This sets the partition name on partition numbered C<partnum> on device "
16157 "C<device>.  Note that partitions are numbered from 1."
16158 msgstr ""
16159
16160 # type: textblock
16161 #. type: textblock
16162 #: ../src/guestfs-actions.pod:5095 ../fish/guestfish-actions.pod:3432
16163 msgid ""
16164 "The partition name can only be set on certain types of partition table.  "
16165 "This works on C<gpt> but not on C<mbr> partitions."
16166 msgstr ""
16167
16168 # type: =head2
16169 #. type: =head2
16170 #: ../src/guestfs-actions.pod:5102
16171 msgid "guestfs_part_to_dev"
16172 msgstr ""
16173
16174 # type: verbatim
16175 #. type: verbatim
16176 #: ../src/guestfs-actions.pod:5104
16177 #, no-wrap
16178 msgid ""
16179 " char *\n"
16180 " guestfs_part_to_dev (guestfs_h *g,\n"
16181 "                      const char *partition);\n"
16182 "\n"
16183 msgstr ""
16184
16185 # type: textblock
16186 #. type: textblock
16187 #: ../src/guestfs-actions.pod:5108 ../fish/guestfish-actions.pod:3439
16188 msgid ""
16189 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
16190 "partition number, returning the device name (eg. \"/dev/sdb\")."
16191 msgstr ""
16192
16193 # type: textblock
16194 #. type: textblock
16195 #: ../src/guestfs-actions.pod:5112
16196 msgid ""
16197 "The named partition must exist, for example as a string returned from "
16198 "C<guestfs_list_partitions>."
16199 msgstr ""
16200
16201 # type: =head2
16202 #. type: =head2
16203 #: ../src/guestfs-actions.pod:5120
16204 msgid "guestfs_ping_daemon"
16205 msgstr ""
16206
16207 # type: verbatim
16208 #. type: verbatim
16209 #: ../src/guestfs-actions.pod:5122
16210 #, no-wrap
16211 msgid ""
16212 " int\n"
16213 " guestfs_ping_daemon (guestfs_h *g);\n"
16214 "\n"
16215 msgstr ""
16216
16217 # type: textblock
16218 #. type: textblock
16219 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3450
16220 msgid ""
16221 "This is a test probe into the guestfs daemon running inside the qemu "
16222 "subprocess.  Calling this function checks that the daemon responds to the "
16223 "ping message, without affecting the daemon or attached block device(s) in "
16224 "any other way."
16225 msgstr ""
16226
16227 # type: =head2
16228 #. type: =head2
16229 #: ../src/guestfs-actions.pod:5134
16230 msgid "guestfs_pread"
16231 msgstr ""
16232
16233 # type: verbatim
16234 #. type: verbatim
16235 #: ../src/guestfs-actions.pod:5136
16236 #, no-wrap
16237 msgid ""
16238 " char *\n"
16239 " guestfs_pread (guestfs_h *g,\n"
16240 "                const char *path,\n"
16241 "                int count,\n"
16242 "                int64_t offset,\n"
16243 "                size_t *size_r);\n"
16244 "\n"
16245 msgstr ""
16246
16247 # type: textblock
16248 #. type: textblock
16249 #: ../src/guestfs-actions.pod:5143 ../fish/guestfish-actions.pod:3459
16250 msgid ""
16251 "This command lets you read part of a file.  It reads C<count> bytes of the "
16252 "file, starting at C<offset>, from file C<path>."
16253 msgstr ""
16254
16255 # type: textblock
16256 #. type: textblock
16257 #: ../src/guestfs-actions.pod:5146 ../src/guestfs-actions.pod:5172
16258 #: ../fish/guestfish-actions.pod:3462 ../fish/guestfish-actions.pod:3477
16259 msgid ""
16260 "This may read fewer bytes than requested.  For further details see the "
16261 "L<pread(2)> system call."
16262 msgstr ""
16263
16264 # type: textblock
16265 #. type: textblock
16266 #: ../src/guestfs-actions.pod:5149
16267 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
16268 msgstr ""
16269
16270 # type: =head2
16271 #. type: =head2
16272 #: ../src/guestfs-actions.pod:5160
16273 msgid "guestfs_pread_device"
16274 msgstr ""
16275
16276 # type: verbatim
16277 #. type: verbatim
16278 #: ../src/guestfs-actions.pod:5162
16279 #, no-wrap
16280 msgid ""
16281 " char *\n"
16282 " guestfs_pread_device (guestfs_h *g,\n"
16283 "                       const char *device,\n"
16284 "                       int count,\n"
16285 "                       int64_t offset,\n"
16286 "                       size_t *size_r);\n"
16287 "\n"
16288 msgstr ""
16289
16290 # type: textblock
16291 #. type: textblock
16292 #: ../src/guestfs-actions.pod:5169 ../fish/guestfish-actions.pod:3474
16293 msgid ""
16294 "This command lets you read part of a file.  It reads C<count> bytes of "
16295 "C<device>, starting at C<offset>."
16296 msgstr ""
16297
16298 # type: textblock
16299 #. type: textblock
16300 #: ../src/guestfs-actions.pod:5175
16301 msgid "See also C<guestfs_pread>."
16302 msgstr ""
16303
16304 # type: textblock
16305 #. type: textblock
16306 #: ../src/guestfs-actions.pod:5184
16307 msgid "(Added in 1.5.21)"
16308 msgstr ""
16309
16310 # type: =head2
16311 #. type: =head2
16312 #: ../src/guestfs-actions.pod:5186
16313 msgid "guestfs_pvcreate"
16314 msgstr ""
16315
16316 # type: verbatim
16317 #. type: verbatim
16318 #: ../src/guestfs-actions.pod:5188
16319 #, no-wrap
16320 msgid ""
16321 " int\n"
16322 " guestfs_pvcreate (guestfs_h *g,\n"
16323 "                   const char *device);\n"
16324 "\n"
16325 msgstr ""
16326
16327 # type: textblock
16328 #. type: textblock
16329 #: ../src/guestfs-actions.pod:5192 ../fish/guestfish-actions.pod:3489
16330 msgid ""
16331 "This creates an LVM physical volume on the named C<device>, where C<device> "
16332 "should usually be a partition name such as C</dev/sda1>."
16333 msgstr ""
16334
16335 # type: =head2
16336 #. type: =head2
16337 #: ../src/guestfs-actions.pod:5200
16338 msgid "guestfs_pvremove"
16339 msgstr ""
16340
16341 # type: verbatim
16342 #. type: verbatim
16343 #: ../src/guestfs-actions.pod:5202
16344 #, no-wrap
16345 msgid ""
16346 " int\n"
16347 " guestfs_pvremove (guestfs_h *g,\n"
16348 "                   const char *device);\n"
16349 "\n"
16350 msgstr ""
16351
16352 # type: textblock
16353 #. type: textblock
16354 #: ../src/guestfs-actions.pod:5206 ../fish/guestfish-actions.pod:3497
16355 msgid ""
16356 "This wipes a physical volume C<device> so that LVM will no longer recognise "
16357 "it."
16358 msgstr ""
16359
16360 # type: textblock
16361 #. type: textblock
16362 #: ../src/guestfs-actions.pod:5209 ../fish/guestfish-actions.pod:3500
16363 msgid ""
16364 "The implementation uses the C<pvremove> command which refuses to wipe "
16365 "physical volumes that contain any volume groups, so you have to remove those "
16366 "first."
16367 msgstr ""
16368
16369 # type: =head2
16370 #. type: =head2
16371 #: ../src/guestfs-actions.pod:5217
16372 msgid "guestfs_pvresize"
16373 msgstr ""
16374
16375 # type: verbatim
16376 #. type: verbatim
16377 #: ../src/guestfs-actions.pod:5219
16378 #, no-wrap
16379 msgid ""
16380 " int\n"
16381 " guestfs_pvresize (guestfs_h *g,\n"
16382 "                   const char *device);\n"
16383 "\n"
16384 msgstr ""
16385
16386 # type: textblock
16387 #. type: textblock
16388 #: ../src/guestfs-actions.pod:5223 ../fish/guestfish-actions.pod:3508
16389 msgid ""
16390 "This resizes (expands or shrinks) an existing LVM physical volume to match "
16391 "the new size of the underlying device."
16392 msgstr ""
16393
16394 # type: =head2
16395 #. type: =head2
16396 #: ../src/guestfs-actions.pod:5230
16397 msgid "guestfs_pvresize_size"
16398 msgstr ""
16399
16400 # type: verbatim
16401 #. type: verbatim
16402 #: ../src/guestfs-actions.pod:5232
16403 #, no-wrap
16404 msgid ""
16405 " int\n"
16406 " guestfs_pvresize_size (guestfs_h *g,\n"
16407 "                        const char *device,\n"
16408 "                        int64_t size);\n"
16409 "\n"
16410 msgstr ""
16411
16412 # type: textblock
16413 #. type: textblock
16414 #: ../src/guestfs-actions.pod:5237
16415 msgid ""
16416 "This command is the same as C<guestfs_pvresize> except that it allows you to "
16417 "specify the new size (in bytes) explicitly."
16418 msgstr ""
16419
16420 # type: =head2
16421 #. type: =head2
16422 #: ../src/guestfs-actions.pod:5244
16423 msgid "guestfs_pvs"
16424 msgstr ""
16425
16426 # type: verbatim
16427 #. type: verbatim
16428 #: ../src/guestfs-actions.pod:5246
16429 #, no-wrap
16430 msgid ""
16431 " char **\n"
16432 " guestfs_pvs (guestfs_h *g);\n"
16433 "\n"
16434 msgstr ""
16435
16436 # type: textblock
16437 #. type: textblock
16438 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3522
16439 msgid ""
16440 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16441 "(8)> command."
16442 msgstr ""
16443
16444 # type: textblock
16445 #. type: textblock
16446 #: ../src/guestfs-actions.pod:5252 ../fish/guestfish-actions.pod:3525
16447 msgid ""
16448 "This returns a list of just the device names that contain PVs (eg. C</dev/"
16449 "sda2>)."
16450 msgstr ""
16451
16452 # type: textblock
16453 #. type: textblock
16454 #: ../src/guestfs-actions.pod:5255
16455 msgid "See also C<guestfs_pvs_full>."
16456 msgstr ""
16457
16458 # type: =head2
16459 #. type: =head2
16460 #: ../src/guestfs-actions.pod:5263
16461 msgid "guestfs_pvs_full"
16462 msgstr ""
16463
16464 # type: verbatim
16465 #. type: verbatim
16466 #: ../src/guestfs-actions.pod:5265
16467 #, no-wrap
16468 msgid ""
16469 " struct guestfs_lvm_pv_list *\n"
16470 " guestfs_pvs_full (guestfs_h *g);\n"
16471 "\n"
16472 msgstr ""
16473
16474 # type: textblock
16475 #. type: textblock
16476 #: ../src/guestfs-actions.pod:5268 ../fish/guestfish-actions.pod:3534
16477 msgid ""
16478 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
16479 "(8)> command.  The \"full\" version includes all fields."
16480 msgstr ""
16481
16482 # type: textblock
16483 #. type: textblock
16484 #: ../src/guestfs-actions.pod:5271
16485 msgid ""
16486 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
16487 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
16488 msgstr ""
16489
16490 # type: =head2
16491 #. type: =head2
16492 #: ../src/guestfs-actions.pod:5277
16493 msgid "guestfs_pvuuid"
16494 msgstr ""
16495
16496 # type: verbatim
16497 #. type: verbatim
16498 #: ../src/guestfs-actions.pod:5279
16499 #, no-wrap
16500 msgid ""
16501 " char *\n"
16502 " guestfs_pvuuid (guestfs_h *g,\n"
16503 "                 const char *device);\n"
16504 "\n"
16505 msgstr ""
16506
16507 # type: textblock
16508 #. type: textblock
16509 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3541
16510 msgid "This command returns the UUID of the LVM PV C<device>."
16511 msgstr ""
16512
16513 # type: =head2
16514 #. type: =head2
16515 #: ../src/guestfs-actions.pod:5290
16516 msgid "guestfs_pwrite"
16517 msgstr ""
16518
16519 # type: verbatim
16520 #. type: verbatim
16521 #: ../src/guestfs-actions.pod:5292
16522 #, no-wrap
16523 msgid ""
16524 " int\n"
16525 " guestfs_pwrite (guestfs_h *g,\n"
16526 "                 const char *path,\n"
16527 "                 const char *content,\n"
16528 "                 size_t content_size,\n"
16529 "                 int64_t offset);\n"
16530 "\n"
16531 msgstr ""
16532
16533 # type: textblock
16534 #. type: textblock
16535 #: ../src/guestfs-actions.pod:5299 ../fish/guestfish-actions.pod:3547
16536 msgid ""
16537 "This command writes to part of a file.  It writes the data buffer C<content> "
16538 "to the file C<path> starting at offset C<offset>."
16539 msgstr ""
16540
16541 # type: textblock
16542 #. type: textblock
16543 #: ../src/guestfs-actions.pod:5302 ../fish/guestfish-actions.pod:3550
16544 msgid ""
16545 "This command implements the L<pwrite(2)> system call, and like that system "
16546 "call it may not write the full data requested.  The return value is the "
16547 "number of bytes that were actually written to the file.  This could even be "
16548 "0, although short writes are unlikely for regular files in ordinary "
16549 "circumstances."
16550 msgstr ""
16551
16552 # type: textblock
16553 #. type: textblock
16554 #: ../src/guestfs-actions.pod:5308
16555 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
16556 msgstr ""
16557
16558 # type: =head2
16559 #. type: =head2
16560 #: ../src/guestfs-actions.pod:5317
16561 msgid "guestfs_pwrite_device"
16562 msgstr ""
16563
16564 # type: verbatim
16565 #. type: verbatim
16566 #: ../src/guestfs-actions.pod:5319
16567 #, no-wrap
16568 msgid ""
16569 " int\n"
16570 " guestfs_pwrite_device (guestfs_h *g,\n"
16571 "                        const char *device,\n"
16572 "                        const char *content,\n"
16573 "                        size_t content_size,\n"
16574 "                        int64_t offset);\n"
16575 "\n"
16576 msgstr ""
16577
16578 # type: textblock
16579 #. type: textblock
16580 #: ../src/guestfs-actions.pod:5326 ../fish/guestfish-actions.pod:3565
16581 msgid ""
16582 "This command writes to part of a device.  It writes the data buffer "
16583 "C<content> to C<device> starting at offset C<offset>."
16584 msgstr ""
16585
16586 # type: textblock
16587 #. type: textblock
16588 #: ../src/guestfs-actions.pod:5329 ../fish/guestfish-actions.pod:3568
16589 msgid ""
16590 "This command implements the L<pwrite(2)> system call, and like that system "
16591 "call it may not write the full data requested (although short writes to disk "
16592 "devices and partitions are probably impossible with standard Linux kernels)."
16593 msgstr ""
16594
16595 # type: textblock
16596 #. type: textblock
16597 #: ../src/guestfs-actions.pod:5334
16598 msgid "See also C<guestfs_pwrite>."
16599 msgstr ""
16600
16601 # type: textblock
16602 #. type: textblock
16603 #: ../src/guestfs-actions.pod:5341
16604 msgid "(Added in 1.5.20)"
16605 msgstr ""
16606
16607 # type: =head2
16608 #. type: =head2
16609 #: ../src/guestfs-actions.pod:5343
16610 msgid "guestfs_read_file"
16611 msgstr ""
16612
16613 # type: verbatim
16614 #. type: verbatim
16615 #: ../src/guestfs-actions.pod:5345
16616 #, no-wrap
16617 msgid ""
16618 " char *\n"
16619 " guestfs_read_file (guestfs_h *g,\n"
16620 "                    const char *path,\n"
16621 "                    size_t *size_r);\n"
16622 "\n"
16623 msgstr ""
16624
16625 # type: textblock
16626 #. type: textblock
16627 #: ../src/guestfs-actions.pod:5350 ../fish/guestfish-actions.pod:3582
16628 msgid "This calls returns the contents of the file C<path> as a buffer."
16629 msgstr ""
16630
16631 # type: textblock
16632 #. type: textblock
16633 #: ../src/guestfs-actions.pod:5353
16634 msgid ""
16635 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16636 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16637 "function is limited in the total size of file that can be handled."
16638 msgstr ""
16639
16640 # type: textblock
16641 #. type: textblock
16642 #: ../src/guestfs-actions.pod:5365
16643 msgid "(Added in 1.0.63)"
16644 msgstr ""
16645
16646 # type: =head2
16647 #. type: =head2
16648 #: ../src/guestfs-actions.pod:5367
16649 msgid "guestfs_read_lines"
16650 msgstr ""
16651
16652 # type: verbatim
16653 #. type: verbatim
16654 #: ../src/guestfs-actions.pod:5369
16655 #, no-wrap
16656 msgid ""
16657 " char **\n"
16658 " guestfs_read_lines (guestfs_h *g,\n"
16659 "                     const char *path);\n"
16660 "\n"
16661 msgstr ""
16662
16663 # type: textblock
16664 #. type: textblock
16665 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3599
16666 msgid ""
16667 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16668 "C<CRLF> character sequences are I<not> returned."
16669 msgstr ""
16670
16671 # type: textblock
16672 #. type: textblock
16673 #: ../src/guestfs-actions.pod:5378
16674 msgid ""
16675 "Note that this function cannot correctly handle binary files (specifically, "
16676 "files containing C<\\0> character which is treated as end of line).  For "
16677 "those you need to use the C<guestfs_read_file> function which has a more "
16678 "complex interface."
16679 msgstr ""
16680
16681 # type: =head2
16682 #. type: =head2
16683 #: ../src/guestfs-actions.pod:5389
16684 msgid "guestfs_readdir"
16685 msgstr ""
16686
16687 # type: verbatim
16688 #. type: verbatim
16689 #: ../src/guestfs-actions.pod:5391
16690 #, no-wrap
16691 msgid ""
16692 " struct guestfs_dirent_list *\n"
16693 " guestfs_readdir (guestfs_h *g,\n"
16694 "                  const char *dir);\n"
16695 "\n"
16696 msgstr ""
16697
16698 # type: textblock
16699 #. type: textblock
16700 #: ../src/guestfs-actions.pod:5395 ../fish/guestfish-actions.pod:3611
16701 msgid "This returns the list of directory entries in directory C<dir>."
16702 msgstr ""
16703
16704 # type: textblock
16705 #. type: textblock
16706 #: ../src/guestfs-actions.pod:5397 ../fish/guestfish-actions.pod:3613
16707 msgid ""
16708 "All entries in the directory are returned, including C<.> and C<..>.  The "
16709 "entries are I<not> sorted, but returned in the same order as the underlying "
16710 "filesystem."
16711 msgstr ""
16712
16713 # type: textblock
16714 #. type: textblock
16715 #: ../src/guestfs-actions.pod:5401 ../fish/guestfish-actions.pod:3617
16716 msgid ""
16717 "Also this call returns basic file type information about each file.  The "
16718 "C<ftyp> field will contain one of the following characters:"
16719 msgstr ""
16720
16721 # type: =item
16722 #. type: =item
16723 #: ../src/guestfs-actions.pod:5406 ../fish/guestfish-actions.pod:3622
16724 msgid "'b'"
16725 msgstr ""
16726
16727 # type: textblock
16728 #. type: textblock
16729 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3624
16730 msgid "Block special"
16731 msgstr ""
16732
16733 # type: =item
16734 #. type: =item
16735 #: ../src/guestfs-actions.pod:5410 ../fish/guestfish-actions.pod:3626
16736 msgid "'c'"
16737 msgstr ""
16738
16739 # type: textblock
16740 #. type: textblock
16741 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3628
16742 msgid "Char special"
16743 msgstr ""
16744
16745 # type: =item
16746 #. type: =item
16747 #: ../src/guestfs-actions.pod:5414 ../fish/guestfish-actions.pod:3630
16748 msgid "'d'"
16749 msgstr ""
16750
16751 # type: textblock
16752 #. type: textblock
16753 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3632
16754 msgid "Directory"
16755 msgstr ""
16756
16757 # type: =item
16758 #. type: =item
16759 #: ../src/guestfs-actions.pod:5418 ../fish/guestfish-actions.pod:3634
16760 msgid "'f'"
16761 msgstr ""
16762
16763 # type: textblock
16764 #. type: textblock
16765 #: ../src/guestfs-actions.pod:5420 ../fish/guestfish-actions.pod:3636
16766 msgid "FIFO (named pipe)"
16767 msgstr ""
16768
16769 # type: =item
16770 #. type: =item
16771 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3638
16772 msgid "'l'"
16773 msgstr ""
16774
16775 # type: textblock
16776 #. type: textblock
16777 #: ../src/guestfs-actions.pod:5424 ../fish/guestfish-actions.pod:3640
16778 msgid "Symbolic link"
16779 msgstr ""
16780
16781 # type: =item
16782 #. type: =item
16783 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3642
16784 msgid "'r'"
16785 msgstr ""
16786
16787 # type: textblock
16788 #. type: textblock
16789 #: ../src/guestfs-actions.pod:5428 ../fish/guestfish-actions.pod:3644
16790 msgid "Regular file"
16791 msgstr ""
16792
16793 # type: =item
16794 #. type: =item
16795 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3646
16796 msgid "'s'"
16797 msgstr ""
16798
16799 # type: textblock
16800 #. type: textblock
16801 #: ../src/guestfs-actions.pod:5432 ../fish/guestfish-actions.pod:3648
16802 msgid "Socket"
16803 msgstr ""
16804
16805 # type: =item
16806 #. type: =item
16807 #: ../src/guestfs-actions.pod:5434 ../fish/guestfish-actions.pod:3650
16808 msgid "'u'"
16809 msgstr ""
16810
16811 # type: textblock
16812 #. type: textblock
16813 #: ../src/guestfs-actions.pod:5436 ../fish/guestfish-actions.pod:3652
16814 msgid "Unknown file type"
16815 msgstr ""
16816
16817 # type: =item
16818 #. type: =item
16819 #: ../src/guestfs-actions.pod:5438 ../fish/guestfish-actions.pod:3654
16820 msgid "'?'"
16821 msgstr ""
16822
16823 # type: textblock
16824 #. type: textblock
16825 #: ../src/guestfs-actions.pod:5440 ../fish/guestfish-actions.pod:3656
16826 msgid ""
16827 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16828 msgstr ""
16829
16830 # type: textblock
16831 #. type: textblock
16832 #: ../src/guestfs-actions.pod:5445
16833 msgid ""
16834 "This function is primarily intended for use by programs.  To get a simple "
16835 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16836 "consumption, use C<guestfs_ll>."
16837 msgstr ""
16838
16839 # type: textblock
16840 #. type: textblock
16841 #: ../src/guestfs-actions.pod:5449
16842 msgid ""
16843 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16844 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16845 msgstr ""
16846
16847 # type: =head2
16848 #. type: =head2
16849 #: ../src/guestfs-actions.pod:5455
16850 msgid "guestfs_readlink"
16851 msgstr ""
16852
16853 # type: verbatim
16854 #. type: verbatim
16855 #: ../src/guestfs-actions.pod:5457
16856 #, no-wrap
16857 msgid ""
16858 " char *\n"
16859 " guestfs_readlink (guestfs_h *g,\n"
16860 "                   const char *path);\n"
16861 "\n"
16862 msgstr ""
16863
16864 # type: textblock
16865 #. type: textblock
16866 #: ../src/guestfs-actions.pod:5461 ../fish/guestfish-actions.pod:3669
16867 msgid "This command reads the target of a symbolic link."
16868 msgstr ""
16869
16870 # type: =head2
16871 #. type: =head2
16872 #: ../src/guestfs-actions.pod:5468
16873 msgid "guestfs_readlinklist"
16874 msgstr ""
16875
16876 # type: verbatim
16877 #. type: verbatim
16878 #: ../src/guestfs-actions.pod:5470
16879 #, no-wrap
16880 msgid ""
16881 " char **\n"
16882 " guestfs_readlinklist (guestfs_h *g,\n"
16883 "                       const char *path,\n"
16884 "                       char *const *names);\n"
16885 "\n"
16886 msgstr ""
16887
16888 # type: textblock
16889 #. type: textblock
16890 #: ../src/guestfs-actions.pod:5475 ../fish/guestfish-actions.pod:3675
16891 msgid ""
16892 "This call allows you to do a C<readlink> operation on multiple files, where "
16893 "all files are in the directory C<path>.  C<names> is the list of files from "
16894 "this directory."
16895 msgstr ""
16896
16897 # type: textblock
16898 #. type: textblock
16899 #: ../src/guestfs-actions.pod:5479 ../fish/guestfish-actions.pod:3679
16900 msgid ""
16901 "On return you get a list of strings, with a one-to-one correspondence to the "
16902 "C<names> list.  Each string is the value of the symbolic link."
16903 msgstr ""
16904
16905 # type: textblock
16906 #. type: textblock
16907 #: ../src/guestfs-actions.pod:5483 ../fish/guestfish-actions.pod:3683
16908 msgid ""
16909 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16910 "result string is the empty string C<\"\">.  However the whole operation is "
16911 "completed even if there were C<readlink(2)> errors, and so you can call this "
16912 "function with names where you don't know if they are symbolic links already "
16913 "(albeit slightly less efficient)."
16914 msgstr ""
16915
16916 # type: textblock
16917 #. type: textblock
16918 #: ../src/guestfs-actions.pod:5490 ../fish/guestfish-actions.pod:3690
16919 msgid ""
16920 "This call is intended for programs that want to efficiently list a directory "
16921 "contents without making many round-trips.  Very long directory listings "
16922 "might cause the protocol message size to be exceeded, causing this call to "
16923 "fail.  The caller must split up such requests into smaller groups of names."
16924 msgstr ""
16925
16926 # type: =head2
16927 #. type: =head2
16928 #: ../src/guestfs-actions.pod:5503
16929 msgid "guestfs_realpath"
16930 msgstr ""
16931
16932 # type: verbatim
16933 #. type: verbatim
16934 #: ../src/guestfs-actions.pod:5505
16935 #, no-wrap
16936 msgid ""
16937 " char *\n"
16938 " guestfs_realpath (guestfs_h *g,\n"
16939 "                   const char *path);\n"
16940 "\n"
16941 msgstr ""
16942
16943 # type: textblock
16944 #. type: textblock
16945 #: ../src/guestfs-actions.pod:5509 ../fish/guestfish-actions.pod:3701
16946 msgid ""
16947 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16948 "has no C<.>, C<..> or symbolic link path elements."
16949 msgstr ""
16950
16951 # type: =head2
16952 #. type: =head2
16953 #: ../src/guestfs-actions.pod:5517
16954 msgid "guestfs_removexattr"
16955 msgstr ""
16956
16957 # type: verbatim
16958 #. type: verbatim
16959 #: ../src/guestfs-actions.pod:5519
16960 #, no-wrap
16961 msgid ""
16962 " int\n"
16963 " guestfs_removexattr (guestfs_h *g,\n"
16964 "                      const char *xattr,\n"
16965 "                      const char *path);\n"
16966 "\n"
16967 msgstr ""
16968
16969 # type: textblock
16970 #. type: textblock
16971 #: ../src/guestfs-actions.pod:5524 ../fish/guestfish-actions.pod:3708
16972 msgid ""
16973 "This call removes the extended attribute named C<xattr> of the file C<path>."
16974 msgstr ""
16975
16976 # type: textblock
16977 #. type: textblock
16978 #: ../src/guestfs-actions.pod:5527
16979 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16980 msgstr ""
16981
16982 # type: =head2
16983 #. type: =head2
16984 #: ../src/guestfs-actions.pod:5533
16985 msgid "guestfs_resize2fs"
16986 msgstr ""
16987
16988 # type: verbatim
16989 #. type: verbatim
16990 #: ../src/guestfs-actions.pod:5535
16991 #, no-wrap
16992 msgid ""
16993 " int\n"
16994 " guestfs_resize2fs (guestfs_h *g,\n"
16995 "                    const char *device);\n"
16996 "\n"
16997 msgstr ""
16998
16999 # type: textblock
17000 #. type: textblock
17001 #: ../src/guestfs-actions.pod:5539 ../fish/guestfish-actions.pod:3717
17002 msgid ""
17003 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
17004 "underlying device."
17005 msgstr ""
17006
17007 # type: textblock
17008 #. type: textblock
17009 #: ../src/guestfs-actions.pod:5542
17010 msgid ""
17011 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
17012 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
17013 "sometimes gives an error about this and sometimes not.  In any case, it is "
17014 "always safe to call C<guestfs_e2fsck_f> before calling this function."
17015 msgstr ""
17016
17017 #. type: =head2
17018 #: ../src/guestfs-actions.pod:5552
17019 msgid "guestfs_resize2fs_M"
17020 msgstr ""
17021
17022 #. type: verbatim
17023 #: ../src/guestfs-actions.pod:5554
17024 #, no-wrap
17025 msgid ""
17026 " int\n"
17027 " guestfs_resize2fs_M (guestfs_h *g,\n"
17028 "                      const char *device);\n"
17029 "\n"
17030 msgstr ""
17031
17032 #. type: textblock
17033 #: ../src/guestfs-actions.pod:5558
17034 msgid ""
17035 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
17036 "resized to its minimum size.  This works like the C<-M> option to the "
17037 "C<resize2fs> command."
17038 msgstr ""
17039
17040 #. type: textblock
17041 #: ../src/guestfs-actions.pod:5562
17042 msgid ""
17043 "To get the resulting size of the filesystem you should call "
17044 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
17045 "These two numbers, multiplied together, give the resulting size of the "
17046 "minimal filesystem in bytes."
17047 msgstr ""
17048
17049 # type: =head2
17050 #. type: =head2
17051 #: ../src/guestfs-actions.pod:5569
17052 msgid "guestfs_resize2fs_size"
17053 msgstr ""
17054
17055 # type: verbatim
17056 #. type: verbatim
17057 #: ../src/guestfs-actions.pod:5571
17058 #, no-wrap
17059 msgid ""
17060 " int\n"
17061 " guestfs_resize2fs_size (guestfs_h *g,\n"
17062 "                         const char *device,\n"
17063 "                         int64_t size);\n"
17064 "\n"
17065 msgstr ""
17066
17067 # type: textblock
17068 #. type: textblock
17069 #: ../src/guestfs-actions.pod:5576
17070 msgid ""
17071 "This command is the same as C<guestfs_resize2fs> except that it allows you "
17072 "to specify the new size (in bytes) explicitly."
17073 msgstr ""
17074
17075 # type: =head2
17076 #. type: =head2
17077 #: ../src/guestfs-actions.pod:5583
17078 msgid "guestfs_rm"
17079 msgstr ""
17080
17081 # type: verbatim
17082 #. type: verbatim
17083 #: ../src/guestfs-actions.pod:5585
17084 #, no-wrap
17085 msgid ""
17086 " int\n"
17087 " guestfs_rm (guestfs_h *g,\n"
17088 "             const char *path);\n"
17089 "\n"
17090 msgstr ""
17091
17092 # type: textblock
17093 #. type: textblock
17094 #: ../src/guestfs-actions.pod:5589 ../fish/guestfish-actions.pod:3750
17095 msgid "Remove the single file C<path>."
17096 msgstr ""
17097
17098 # type: =head2
17099 #. type: =head2
17100 #: ../src/guestfs-actions.pod:5595
17101 msgid "guestfs_rm_rf"
17102 msgstr ""
17103
17104 # type: verbatim
17105 #. type: verbatim
17106 #: ../src/guestfs-actions.pod:5597
17107 #, no-wrap
17108 msgid ""
17109 " int\n"
17110 " guestfs_rm_rf (guestfs_h *g,\n"
17111 "                const char *path);\n"
17112 "\n"
17113 msgstr ""
17114
17115 # type: textblock
17116 #. type: textblock
17117 #: ../src/guestfs-actions.pod:5601 ../fish/guestfish-actions.pod:3756
17118 msgid ""
17119 "Remove the file or directory C<path>, recursively removing the contents if "
17120 "its a directory.  This is like the C<rm -rf> shell command."
17121 msgstr ""
17122
17123 # type: =head2
17124 #. type: =head2
17125 #: ../src/guestfs-actions.pod:5609
17126 msgid "guestfs_rmdir"
17127 msgstr ""
17128
17129 # type: verbatim
17130 #. type: verbatim
17131 #: ../src/guestfs-actions.pod:5611
17132 #, no-wrap
17133 msgid ""
17134 " int\n"
17135 " guestfs_rmdir (guestfs_h *g,\n"
17136 "                const char *path);\n"
17137 "\n"
17138 msgstr ""
17139
17140 # type: textblock
17141 #. type: textblock
17142 #: ../src/guestfs-actions.pod:5615 ../fish/guestfish-actions.pod:3764
17143 msgid "Remove the single directory C<path>."
17144 msgstr ""
17145
17146 # type: =head2
17147 #. type: =head2
17148 #: ../src/guestfs-actions.pod:5621
17149 msgid "guestfs_rmmountpoint"
17150 msgstr ""
17151
17152 # type: verbatim
17153 #. type: verbatim
17154 #: ../src/guestfs-actions.pod:5623
17155 #, no-wrap
17156 msgid ""
17157 " int\n"
17158 " guestfs_rmmountpoint (guestfs_h *g,\n"
17159 "                       const char *exemptpath);\n"
17160 "\n"
17161 msgstr ""
17162
17163 # type: textblock
17164 #. type: textblock
17165 #: ../src/guestfs-actions.pod:5627
17166 msgid ""
17167 "This calls removes a mountpoint that was previously created with "
17168 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
17169 msgstr ""
17170
17171 # type: =head2
17172 #. type: =head2
17173 #: ../src/guestfs-actions.pod:5635
17174 msgid "guestfs_scrub_device"
17175 msgstr ""
17176
17177 # type: verbatim
17178 #. type: verbatim
17179 #: ../src/guestfs-actions.pod:5637
17180 #, no-wrap
17181 msgid ""
17182 " int\n"
17183 " guestfs_scrub_device (guestfs_h *g,\n"
17184 "                       const char *device);\n"
17185 "\n"
17186 msgstr ""
17187
17188 # type: textblock
17189 #. type: textblock
17190 #: ../src/guestfs-actions.pod:5641 ../fish/guestfish-actions.pod:3778
17191 msgid ""
17192 "This command writes patterns over C<device> to make data retrieval more "
17193 "difficult."
17194 msgstr ""
17195
17196 # type: textblock
17197 #. type: textblock
17198 #: ../src/guestfs-actions.pod:5644 ../src/guestfs-actions.pod:5665
17199 #: ../src/guestfs-actions.pod:5684 ../fish/guestfish-actions.pod:3781
17200 #: ../fish/guestfish-actions.pod:3796 ../fish/guestfish-actions.pod:3809
17201 msgid ""
17202 "It is an interface to the L<scrub(1)> program.  See that manual page for "
17203 "more details."
17204 msgstr ""
17205
17206 # type: textblock
17207 #. type: textblock
17208 #: ../src/guestfs-actions.pod:5652 ../src/guestfs-actions.pod:5670
17209 #: ../src/guestfs-actions.pod:5689
17210 msgid "(Added in 1.0.52)"
17211 msgstr ""
17212
17213 # type: =head2
17214 #. type: =head2
17215 #: ../src/guestfs-actions.pod:5654
17216 msgid "guestfs_scrub_file"
17217 msgstr ""
17218
17219 # type: verbatim
17220 #. type: verbatim
17221 #: ../src/guestfs-actions.pod:5656
17222 #, no-wrap
17223 msgid ""
17224 " int\n"
17225 " guestfs_scrub_file (guestfs_h *g,\n"
17226 "                     const char *file);\n"
17227 "\n"
17228 msgstr ""
17229
17230 # type: textblock
17231 #. type: textblock
17232 #: ../src/guestfs-actions.pod:5660 ../fish/guestfish-actions.pod:3791
17233 msgid ""
17234 "This command writes patterns over a file to make data retrieval more "
17235 "difficult."
17236 msgstr ""
17237
17238 # type: textblock
17239 #. type: textblock
17240 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3794
17241 msgid "The file is I<removed> after scrubbing."
17242 msgstr ""
17243
17244 # type: =head2
17245 #. type: =head2
17246 #: ../src/guestfs-actions.pod:5672
17247 msgid "guestfs_scrub_freespace"
17248 msgstr ""
17249
17250 # type: verbatim
17251 #. type: verbatim
17252 #: ../src/guestfs-actions.pod:5674
17253 #, no-wrap
17254 msgid ""
17255 " int\n"
17256 " guestfs_scrub_freespace (guestfs_h *g,\n"
17257 "                          const char *dir);\n"
17258 "\n"
17259 msgstr ""
17260
17261 # type: textblock
17262 #. type: textblock
17263 #: ../src/guestfs-actions.pod:5678
17264 msgid ""
17265 "This command creates the directory C<dir> and then fills it with files until "
17266 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
17267 "and deletes them.  The intention is to scrub any free space on the partition "
17268 "containing C<dir>."
17269 msgstr ""
17270
17271 # type: =head2
17272 #. type: =head2
17273 #: ../src/guestfs-actions.pod:5691
17274 msgid "guestfs_set_append"
17275 msgstr ""
17276
17277 # type: verbatim
17278 #. type: verbatim
17279 #: ../src/guestfs-actions.pod:5693
17280 #, no-wrap
17281 msgid ""
17282 " int\n"
17283 " guestfs_set_append (guestfs_h *g,\n"
17284 "                     const char *append);\n"
17285 "\n"
17286 msgstr ""
17287
17288 # type: textblock
17289 #. type: textblock
17290 #: ../src/guestfs-actions.pod:5697 ../fish/guestfish-actions.pod:3818
17291 msgid ""
17292 "This function is used to add additional options to the guest kernel command "
17293 "line."
17294 msgstr ""
17295
17296 # type: textblock
17297 #. type: textblock
17298 #: ../src/guestfs-actions.pod:5700 ../fish/guestfish-actions.pod:3821
17299 msgid ""
17300 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
17301 "environment variable."
17302 msgstr ""
17303
17304 # type: textblock
17305 #. type: textblock
17306 #: ../src/guestfs-actions.pod:5703 ../fish/guestfish-actions.pod:3824
17307 msgid ""
17308 "Setting C<append> to C<NULL> means I<no> additional options are passed "
17309 "(libguestfs always adds a few of its own)."
17310 msgstr ""
17311
17312 #. type: =head2
17313 #: ../src/guestfs-actions.pod:5710
17314 msgid "guestfs_set_attach_method"
17315 msgstr ""
17316
17317 #. type: verbatim
17318 #: ../src/guestfs-actions.pod:5712
17319 #, no-wrap
17320 msgid ""
17321 " int\n"
17322 " guestfs_set_attach_method (guestfs_h *g,\n"
17323 "                            const char *attachmethod);\n"
17324 "\n"
17325 msgstr ""
17326
17327 #. type: textblock
17328 #: ../src/guestfs-actions.pod:5716 ../fish/guestfish-actions.pod:3833
17329 msgid ""
17330 "Set the method that libguestfs uses to connect to the back end guestfsd "
17331 "daemon.  Possible methods are:"
17332 msgstr ""
17333
17334 #. type: textblock
17335 #: ../src/guestfs-actions.pod:5723 ../fish/guestfish-actions.pod:3840
17336 msgid ""
17337 "Launch an appliance and connect to it.  This is the ordinary method and the "
17338 "default."
17339 msgstr ""
17340
17341 #. type: =item
17342 #: ../src/guestfs-actions.pod:5726 ../fish/guestfish-actions.pod:3843
17343 msgid "C<unix:I<path>>"
17344 msgstr ""
17345
17346 #. type: textblock
17347 #: ../src/guestfs-actions.pod:5728 ../fish/guestfish-actions.pod:3845
17348 msgid "Connect to the Unix domain socket I<path>."
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../src/guestfs-actions.pod:5730 ../fish/guestfish-actions.pod:3847
17353 msgid ""
17354 "This method lets you connect to an existing daemon or (using virtio-serial) "
17355 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
17356 "RUNNING DAEMONS>."
17357 msgstr ""
17358
17359 # type: =head2
17360 #. type: =head2
17361 #: ../src/guestfs-actions.pod:5738
17362 msgid "guestfs_set_autosync"
17363 msgstr ""
17364
17365 # type: verbatim
17366 #. type: verbatim
17367 #: ../src/guestfs-actions.pod:5740
17368 #, no-wrap
17369 msgid ""
17370 " int\n"
17371 " guestfs_set_autosync (guestfs_h *g,\n"
17372 "                       int autosync);\n"
17373 "\n"
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../src/guestfs-actions.pod:5744 ../fish/guestfish-actions.pod:3859
17378 msgid ""
17379 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
17380 "effort attempt to make filesystems consistent and synchronized when the "
17381 "handle is closed (also if the program exits without closing handles)."
17382 msgstr ""
17383
17384 # type: textblock
17385 #. type: textblock
17386 #: ../src/guestfs-actions.pod:5749 ../fish/guestfish-actions.pod:3864
17387 msgid ""
17388 "This is enabled by default (since libguestfs 1.5.24, previously it was "
17389 "disabled by default)."
17390 msgstr ""
17391
17392 # type: =head2
17393 #. type: =head2
17394 #: ../src/guestfs-actions.pod:5756
17395 msgid "guestfs_set_direct"
17396 msgstr ""
17397
17398 # type: verbatim
17399 #. type: verbatim
17400 #: ../src/guestfs-actions.pod:5758
17401 #, no-wrap
17402 msgid ""
17403 " int\n"
17404 " guestfs_set_direct (guestfs_h *g,\n"
17405 "                     int direct);\n"
17406 "\n"
17407 msgstr ""
17408
17409 # type: textblock
17410 #. type: textblock
17411 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3873
17412 msgid ""
17413 "If the direct appliance mode flag is enabled, then stdin and stdout are "
17414 "passed directly through to the appliance once it is launched."
17415 msgstr ""
17416
17417 # type: textblock
17418 #. type: textblock
17419 #: ../src/guestfs-actions.pod:5766
17420 msgid ""
17421 "One consequence of this is that log messages aren't caught by the library "
17422 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
17423 "stdout."
17424 msgstr ""
17425
17426 # type: textblock
17427 #. type: textblock
17428 #: ../src/guestfs-actions.pod:5770 ../fish/guestfish-actions.pod:3881
17429 msgid "You probably don't want to use this unless you know what you are doing."
17430 msgstr ""
17431
17432 # type: textblock
17433 #. type: textblock
17434 #: ../src/guestfs-actions.pod:5773 ../fish/guestfish-actions.pod:3884
17435 msgid "The default is disabled."
17436 msgstr ""
17437
17438 # type: =head2
17439 #. type: =head2
17440 #: ../src/guestfs-actions.pod:5779
17441 msgid "guestfs_set_e2label"
17442 msgstr ""
17443
17444 # type: verbatim
17445 #. type: verbatim
17446 #: ../src/guestfs-actions.pod:5781
17447 #, no-wrap
17448 msgid ""
17449 " int\n"
17450 " guestfs_set_e2label (guestfs_h *g,\n"
17451 "                      const char *device,\n"
17452 "                      const char *label);\n"
17453 "\n"
17454 msgstr ""
17455
17456 # type: textblock
17457 #. type: textblock
17458 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3890
17459 msgid ""
17460 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
17461 "C<label>.  Filesystem labels are limited to 16 characters."
17462 msgstr ""
17463
17464 # type: textblock
17465 #. type: textblock
17466 #: ../src/guestfs-actions.pod:5790
17467 msgid ""
17468 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
17469 "the existing label on a filesystem."
17470 msgstr ""
17471
17472 # type: =head2
17473 #. type: =head2
17474 #: ../src/guestfs-actions.pod:5797
17475 msgid "guestfs_set_e2uuid"
17476 msgstr ""
17477
17478 # type: verbatim
17479 #. type: verbatim
17480 #: ../src/guestfs-actions.pod:5799
17481 #, no-wrap
17482 msgid ""
17483 " int\n"
17484 " guestfs_set_e2uuid (guestfs_h *g,\n"
17485 "                     const char *device,\n"
17486 "                     const char *uuid);\n"
17487 "\n"
17488 msgstr ""
17489
17490 # type: textblock
17491 #. type: textblock
17492 #: ../src/guestfs-actions.pod:5804 ../fish/guestfish-actions.pod:3901
17493 msgid ""
17494 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
17495 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
17496 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
17497 msgstr ""
17498
17499 # type: textblock
17500 #. type: textblock
17501 #: ../src/guestfs-actions.pod:5809
17502 msgid ""
17503 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
17504 "the existing UUID of a filesystem."
17505 msgstr ""
17506
17507 # type: =head2
17508 #. type: =head2
17509 #: ../src/guestfs-actions.pod:5816
17510 msgid "guestfs_set_memsize"
17511 msgstr ""
17512
17513 # type: verbatim
17514 #. type: verbatim
17515 #: ../src/guestfs-actions.pod:5818
17516 #, no-wrap
17517 msgid ""
17518 " int\n"
17519 " guestfs_set_memsize (guestfs_h *g,\n"
17520 "                      int memsize);\n"
17521 "\n"
17522 msgstr ""
17523
17524 # type: textblock
17525 #. type: textblock
17526 #: ../src/guestfs-actions.pod:5822
17527 msgid ""
17528 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
17529 "This only has any effect if called before C<guestfs_launch>."
17530 msgstr ""
17531
17532 # type: textblock
17533 #. type: textblock
17534 #: ../src/guestfs-actions.pod:5826 ../fish/guestfish-actions.pod:3919
17535 msgid ""
17536 "You can also change this by setting the environment variable "
17537 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
17538 msgstr ""
17539
17540 # type: =head2
17541 #. type: =head2
17542 #: ../src/guestfs-actions.pod:5837
17543 msgid "guestfs_set_network"
17544 msgstr ""
17545
17546 # type: verbatim
17547 #. type: verbatim
17548 #: ../src/guestfs-actions.pod:5839
17549 #, no-wrap
17550 msgid ""
17551 " int\n"
17552 " guestfs_set_network (guestfs_h *g,\n"
17553 "                      int network);\n"
17554 "\n"
17555 msgstr ""
17556
17557 # type: textblock
17558 #. type: textblock
17559 #: ../src/guestfs-actions.pod:5843 ../fish/guestfish-actions.pod:3932
17560 msgid ""
17561 "If C<network> is true, then the network is enabled in the libguestfs "
17562 "appliance.  The default is false."
17563 msgstr ""
17564
17565 # type: textblock
17566 #. type: textblock
17567 #: ../src/guestfs-actions.pod:5846 ../fish/guestfish-actions.pod:3935
17568 msgid ""
17569 "This affects whether commands are able to access the network (see L<guestfs"
17570 "(3)/RUNNING COMMANDS>)."
17571 msgstr ""
17572
17573 # type: textblock
17574 #. type: textblock
17575 #: ../src/guestfs-actions.pod:5849
17576 msgid ""
17577 "You must call this before calling C<guestfs_launch>, otherwise it has no "
17578 "effect."
17579 msgstr ""
17580
17581 # type: =head2
17582 #. type: =head2
17583 #: ../src/guestfs-actions.pod:5856
17584 msgid "guestfs_set_path"
17585 msgstr ""
17586
17587 # type: verbatim
17588 #. type: verbatim
17589 #: ../src/guestfs-actions.pod:5858
17590 #, no-wrap
17591 msgid ""
17592 " int\n"
17593 " guestfs_set_path (guestfs_h *g,\n"
17594 "                   const char *searchpath);\n"
17595 "\n"
17596 msgstr ""
17597
17598 # type: textblock
17599 #. type: textblock
17600 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3947
17601 msgid "Set the path that libguestfs searches for kernel and initrd.img."
17602 msgstr ""
17603
17604 # type: textblock
17605 #. type: textblock
17606 #: ../src/guestfs-actions.pod:5864 ../fish/guestfish-actions.pod:3949
17607 msgid ""
17608 "The default is C<$libdir/guestfs> unless overridden by setting "
17609 "C<LIBGUESTFS_PATH> environment variable."
17610 msgstr ""
17611
17612 # type: textblock
17613 #. type: textblock
17614 #: ../src/guestfs-actions.pod:5867 ../fish/guestfish-actions.pod:3952
17615 msgid "Setting C<path> to C<NULL> restores the default path."
17616 msgstr ""
17617
17618 # type: =head2
17619 #. type: =head2
17620 #: ../src/guestfs-actions.pod:5873
17621 msgid "guestfs_set_qemu"
17622 msgstr ""
17623
17624 # type: verbatim
17625 #. type: verbatim
17626 #: ../src/guestfs-actions.pod:5875
17627 #, no-wrap
17628 msgid ""
17629 " int\n"
17630 " guestfs_set_qemu (guestfs_h *g,\n"
17631 "                   const char *qemu);\n"
17632 "\n"
17633 msgstr ""
17634
17635 # type: textblock
17636 #. type: textblock
17637 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3960
17638 msgid "Set the qemu binary that we will use."
17639 msgstr ""
17640
17641 # type: textblock
17642 #. type: textblock
17643 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3962
17644 msgid ""
17645 "The default is chosen when the library was compiled by the configure script."
17646 msgstr ""
17647
17648 # type: textblock
17649 #. type: textblock
17650 #: ../src/guestfs-actions.pod:5884 ../fish/guestfish-actions.pod:3965
17651 msgid ""
17652 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17653 "variable."
17654 msgstr ""
17655
17656 # type: textblock
17657 #. type: textblock
17658 #: ../src/guestfs-actions.pod:5887 ../fish/guestfish-actions.pod:3968
17659 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17660 msgstr ""
17661
17662 # type: textblock
17663 #. type: textblock
17664 #: ../src/guestfs-actions.pod:5889 ../fish/guestfish-actions.pod:3970
17665 msgid ""
17666 "Note that you should call this function as early as possible after creating "
17667 "the handle.  This is because some pre-launch operations depend on testing "
17668 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17669 "don't retest features, and so you might see inconsistent results.  Using the "
17670 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17671 "the qemu binary at the same time as the handle is created."
17672 msgstr ""
17673
17674 # type: =head2
17675 #. type: =head2
17676 #: ../src/guestfs-actions.pod:5901
17677 msgid "guestfs_set_recovery_proc"
17678 msgstr ""
17679
17680 # type: verbatim
17681 #. type: verbatim
17682 #: ../src/guestfs-actions.pod:5903
17683 #, no-wrap
17684 msgid ""
17685 " int\n"
17686 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17687 "                            int recoveryproc);\n"
17688 "\n"
17689 msgstr ""
17690
17691 # type: textblock
17692 #. type: textblock
17693 #: ../src/guestfs-actions.pod:5907
17694 msgid ""
17695 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17696 "not create a recovery process.  The purpose of the recovery process is to "
17697 "stop runaway qemu processes in the case where the main program aborts "
17698 "abruptly."
17699 msgstr ""
17700
17701 # type: textblock
17702 #. type: textblock
17703 #: ../src/guestfs-actions.pod:5912
17704 msgid ""
17705 "This only has any effect if called before C<guestfs_launch>, and the default "
17706 "is true."
17707 msgstr ""
17708
17709 # type: textblock
17710 #. type: textblock
17711 #: ../src/guestfs-actions.pod:5915 ../fish/guestfish-actions.pod:3992
17712 msgid ""
17713 "About the only time when you would want to disable this is if the main "
17714 "process will fork itself into the background (\"daemonize\" itself).  In "
17715 "this case the recovery process thinks that the main program has disappeared "
17716 "and so kills qemu, which is not very helpful."
17717 msgstr ""
17718
17719 # type: =head2
17720 #. type: =head2
17721 #: ../src/guestfs-actions.pod:5925
17722 msgid "guestfs_set_selinux"
17723 msgstr ""
17724
17725 # type: verbatim
17726 #. type: verbatim
17727 #: ../src/guestfs-actions.pod:5927
17728 #, no-wrap
17729 msgid ""
17730 " int\n"
17731 " guestfs_set_selinux (guestfs_h *g,\n"
17732 "                      int selinux);\n"
17733 "\n"
17734 msgstr ""
17735
17736 # type: textblock
17737 #. type: textblock
17738 #: ../src/guestfs-actions.pod:5931 ../fish/guestfish-actions.pod:4004
17739 msgid ""
17740 "This sets the selinux flag that is passed to the appliance at boot time.  "
17741 "The default is C<selinux=0> (disabled)."
17742 msgstr ""
17743
17744 # type: textblock
17745 #. type: textblock
17746 #: ../src/guestfs-actions.pod:5934 ../fish/guestfish-actions.pod:4007
17747 msgid ""
17748 "Note that if SELinux is enabled, it is always in Permissive mode "
17749 "(C<enforcing=0>)."
17750 msgstr ""
17751
17752 # type: =head2
17753 #. type: =head2
17754 #: ../src/guestfs-actions.pod:5944
17755 msgid "guestfs_set_trace"
17756 msgstr ""
17757
17758 # type: verbatim
17759 #. type: verbatim
17760 #: ../src/guestfs-actions.pod:5946
17761 #, no-wrap
17762 msgid ""
17763 " int\n"
17764 " guestfs_set_trace (guestfs_h *g,\n"
17765 "                    int trace);\n"
17766 "\n"
17767 msgstr ""
17768
17769 #. type: textblock
17770 #: ../src/guestfs-actions.pod:5950 ../fish/guestfish-actions.pod:4019
17771 msgid ""
17772 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17773 "return values are traced."
17774 msgstr ""
17775
17776 # type: textblock
17777 #. type: textblock
17778 #: ../src/guestfs-actions.pod:5953 ../fish/guestfish-actions.pod:4022
17779 msgid ""
17780 "If you want to trace C API calls into libguestfs (and other libraries) then "
17781 "possibly a better way is to use the external ltrace(1) command."
17782 msgstr ""
17783
17784 # type: textblock
17785 #. type: textblock
17786 #: ../src/guestfs-actions.pod:5957 ../fish/guestfish-actions.pod:4026
17787 msgid ""
17788 "Command traces are disabled unless the environment variable "
17789 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17790 msgstr ""
17791
17792 #. type: textblock
17793 #: ../src/guestfs-actions.pod:5960
17794 msgid ""
17795 "Trace messages are normally sent to C<stderr>, unless you register a "
17796 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17797 msgstr ""
17798
17799 # type: =head2
17800 #. type: =head2
17801 #: ../src/guestfs-actions.pod:5968
17802 msgid "guestfs_set_verbose"
17803 msgstr ""
17804
17805 # type: verbatim
17806 #. type: verbatim
17807 #: ../src/guestfs-actions.pod:5970
17808 #, no-wrap
17809 msgid ""
17810 " int\n"
17811 " guestfs_set_verbose (guestfs_h *g,\n"
17812 "                      int verbose);\n"
17813 "\n"
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../src/guestfs-actions.pod:5974 ../fish/guestfish-actions.pod:4039
17818 msgid "If C<verbose> is true, this turns on verbose messages."
17819 msgstr ""
17820
17821 # type: textblock
17822 #. type: textblock
17823 #: ../src/guestfs-actions.pod:5976 ../fish/guestfish-actions.pod:4041
17824 msgid ""
17825 "Verbose messages are disabled unless the environment variable "
17826 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../src/guestfs-actions.pod:5979
17831 msgid ""
17832 "Verbose messages are normally sent to C<stderr>, unless you register a "
17833 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
17834 msgstr ""
17835
17836 # type: =head2
17837 #. type: =head2
17838 #: ../src/guestfs-actions.pod:5987
17839 msgid "guestfs_setcon"
17840 msgstr ""
17841
17842 # type: verbatim
17843 #. type: verbatim
17844 #: ../src/guestfs-actions.pod:5989
17845 #, no-wrap
17846 msgid ""
17847 " int\n"
17848 " guestfs_setcon (guestfs_h *g,\n"
17849 "                 const char *context);\n"
17850 "\n"
17851 msgstr ""
17852
17853 # type: textblock
17854 #. type: textblock
17855 #: ../src/guestfs-actions.pod:5993 ../fish/guestfish-actions.pod:4052
17856 msgid ""
17857 "This sets the SELinux security context of the daemon to the string "
17858 "C<context>."
17859 msgstr ""
17860
17861 # type: textblock
17862 #. type: textblock
17863 #: ../src/guestfs-actions.pod:5996 ../fish/guestfish-actions.pod:4055
17864 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17865 msgstr ""
17866
17867 # type: =head2
17868 #. type: =head2
17869 #: ../src/guestfs-actions.pod:6002
17870 msgid "guestfs_setxattr"
17871 msgstr ""
17872
17873 # type: verbatim
17874 #. type: verbatim
17875 #: ../src/guestfs-actions.pod:6004
17876 #, no-wrap
17877 msgid ""
17878 " int\n"
17879 " guestfs_setxattr (guestfs_h *g,\n"
17880 "                   const char *xattr,\n"
17881 "                   const char *val,\n"
17882 "                   int vallen,\n"
17883 "                   const char *path);\n"
17884 "\n"
17885 msgstr ""
17886
17887 # type: textblock
17888 #. type: textblock
17889 #: ../src/guestfs-actions.pod:6011 ../fish/guestfish-actions.pod:4061
17890 msgid ""
17891 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17892 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17893 msgstr ""
17894
17895 # type: textblock
17896 #. type: textblock
17897 #: ../src/guestfs-actions.pod:6015
17898 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17899 msgstr ""
17900
17901 # type: =head2
17902 #. type: =head2
17903 #: ../src/guestfs-actions.pod:6021
17904 msgid "guestfs_sfdisk"
17905 msgstr ""
17906
17907 # type: verbatim
17908 #. type: verbatim
17909 #: ../src/guestfs-actions.pod:6023
17910 #, no-wrap
17911 msgid ""
17912 " int\n"
17913 " guestfs_sfdisk (guestfs_h *g,\n"
17914 "                 const char *device,\n"
17915 "                 int cyls,\n"
17916 "                 int heads,\n"
17917 "                 int sectors,\n"
17918 "                 char *const *lines);\n"
17919 "\n"
17920 msgstr ""
17921
17922 # type: textblock
17923 #. type: textblock
17924 #: ../src/guestfs-actions.pod:6031 ../fish/guestfish-actions.pod:4071
17925 msgid ""
17926 "This is a direct interface to the L<sfdisk(8)> program for creating "
17927 "partitions on block devices."
17928 msgstr ""
17929
17930 # type: textblock
17931 #. type: textblock
17932 #: ../src/guestfs-actions.pod:6034 ../fish/guestfish-actions.pod:4074
17933 msgid "C<device> should be a block device, for example C</dev/sda>."
17934 msgstr ""
17935
17936 # type: textblock
17937 #. type: textblock
17938 #: ../src/guestfs-actions.pod:6036 ../fish/guestfish-actions.pod:4076
17939 msgid ""
17940 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17941 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17942 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17943 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17944 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17945 "the kernel) cannot work out the right geometry and you will need to tell it."
17946 msgstr ""
17947
17948 # type: textblock
17949 #. type: textblock
17950 #: ../src/guestfs-actions.pod:6044 ../fish/guestfish-actions.pod:4084
17951 msgid ""
17952 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17953 "refer to the L<sfdisk(8)> manpage."
17954 msgstr ""
17955
17956 # type: textblock
17957 #. type: textblock
17958 #: ../src/guestfs-actions.pod:6047 ../fish/guestfish-actions.pod:4087
17959 msgid ""
17960 "To create a single partition occupying the whole disk, you would pass "
17961 "C<lines> as a single element list, when the single element being the string "
17962 "C<,> (comma)."
17963 msgstr ""
17964
17965 # type: textblock
17966 #. type: textblock
17967 #: ../src/guestfs-actions.pod:6051
17968 msgid ""
17969 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17970 msgstr ""
17971
17972 # type: =head2
17973 #. type: =head2
17974 #: ../src/guestfs-actions.pod:6061
17975 msgid "guestfs_sfdiskM"
17976 msgstr ""
17977
17978 # type: verbatim
17979 #. type: verbatim
17980 #: ../src/guestfs-actions.pod:6063
17981 #, no-wrap
17982 msgid ""
17983 " int\n"
17984 " guestfs_sfdiskM (guestfs_h *g,\n"
17985 "                  const char *device,\n"
17986 "                  char *const *lines);\n"
17987 "\n"
17988 msgstr ""
17989
17990 # type: textblock
17991 #. type: textblock
17992 #: ../src/guestfs-actions.pod:6068
17993 msgid ""
17994 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17995 "partition sizes are specified in megabytes only (rounded to the nearest "
17996 "cylinder) and you don't need to specify the cyls, heads and sectors "
17997 "parameters which were rarely if ever used anyway."
17998 msgstr ""
17999
18000 # type: textblock
18001 #. type: textblock
18002 #: ../src/guestfs-actions.pod:6074
18003 msgid ""
18004 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
18005 "C<guestfs_part_disk>"
18006 msgstr ""
18007
18008 # type: =head2
18009 #. type: =head2
18010 #: ../src/guestfs-actions.pod:6084
18011 msgid "guestfs_sfdisk_N"
18012 msgstr ""
18013
18014 # type: verbatim
18015 #. type: verbatim
18016 #: ../src/guestfs-actions.pod:6086
18017 #, no-wrap
18018 msgid ""
18019 " int\n"
18020 " guestfs_sfdisk_N (guestfs_h *g,\n"
18021 "                   const char *device,\n"
18022 "                   int partnum,\n"
18023 "                   int cyls,\n"
18024 "                   int heads,\n"
18025 "                   int sectors,\n"
18026 "                   const char *line);\n"
18027 "\n"
18028 msgstr ""
18029
18030 # type: textblock
18031 #. type: textblock
18032 #: ../src/guestfs-actions.pod:6095 ../fish/guestfish-actions.pod:4117
18033 msgid ""
18034 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
18035 "(note: C<n> counts from 1)."
18036 msgstr ""
18037
18038 # type: textblock
18039 #. type: textblock
18040 #: ../src/guestfs-actions.pod:6098
18041 msgid ""
18042 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
18043 "for the cyls/heads/sectors parameters."
18044 msgstr ""
18045
18046 # type: textblock
18047 #. type: textblock
18048 #: ../src/guestfs-actions.pod:6101
18049 msgid "See also: C<guestfs_part_add>"
18050 msgstr ""
18051
18052 # type: =head2
18053 #. type: =head2
18054 #: ../src/guestfs-actions.pod:6110
18055 msgid "guestfs_sfdisk_disk_geometry"
18056 msgstr ""
18057
18058 # type: verbatim
18059 #. type: verbatim
18060 #: ../src/guestfs-actions.pod:6112
18061 #, no-wrap
18062 msgid ""
18063 " char *\n"
18064 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
18065 "                               const char *device);\n"
18066 "\n"
18067 msgstr ""
18068
18069 # type: textblock
18070 #. type: textblock
18071 #: ../src/guestfs-actions.pod:6116
18072 msgid ""
18073 "This displays the disk geometry of C<device> read from the partition table.  "
18074 "Especially in the case where the underlying block device has been resized, "
18075 "this can be different from the kernel's idea of the geometry (see "
18076 "C<guestfs_sfdisk_kernel_geometry>)."
18077 msgstr ""
18078
18079 # type: textblock
18080 #. type: textblock
18081 #: ../src/guestfs-actions.pod:6121 ../src/guestfs-actions.pod:6137
18082 #: ../fish/guestfish-actions.pod:4137 ../fish/guestfish-actions.pod:4146
18083 msgid "The result is in human-readable format, and not designed to be parsed."
18084 msgstr ""
18085
18086 # type: =head2
18087 #. type: =head2
18088 #: ../src/guestfs-actions.pod:6129
18089 msgid "guestfs_sfdisk_kernel_geometry"
18090 msgstr ""
18091
18092 # type: verbatim
18093 #. type: verbatim
18094 #: ../src/guestfs-actions.pod:6131
18095 #, no-wrap
18096 msgid ""
18097 " char *\n"
18098 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
18099 "                                 const char *device);\n"
18100 "\n"
18101 msgstr ""
18102
18103 # type: textblock
18104 #. type: textblock
18105 #: ../src/guestfs-actions.pod:6135 ../fish/guestfish-actions.pod:4144
18106 msgid "This displays the kernel's idea of the geometry of C<device>."
18107 msgstr ""
18108
18109 # type: =head2
18110 #. type: =head2
18111 #: ../src/guestfs-actions.pod:6145
18112 msgid "guestfs_sfdisk_l"
18113 msgstr ""
18114
18115 # type: verbatim
18116 #. type: verbatim
18117 #: ../src/guestfs-actions.pod:6147
18118 #, no-wrap
18119 msgid ""
18120 " char *\n"
18121 " guestfs_sfdisk_l (guestfs_h *g,\n"
18122 "                   const char *device);\n"
18123 "\n"
18124 msgstr ""
18125
18126 # type: textblock
18127 #. type: textblock
18128 #: ../src/guestfs-actions.pod:6151 ../fish/guestfish-actions.pod:4153
18129 msgid ""
18130 "This displays the partition table on C<device>, in the human-readable output "
18131 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
18132 msgstr ""
18133
18134 # type: textblock
18135 #. type: textblock
18136 #: ../src/guestfs-actions.pod:6155
18137 msgid "See also: C<guestfs_part_list>"
18138 msgstr ""
18139
18140 # type: =head2
18141 #. type: =head2
18142 #: ../src/guestfs-actions.pod:6162
18143 msgid "guestfs_sh"
18144 msgstr ""
18145
18146 # type: verbatim
18147 #. type: verbatim
18148 #: ../src/guestfs-actions.pod:6164
18149 #, no-wrap
18150 msgid ""
18151 " char *\n"
18152 " guestfs_sh (guestfs_h *g,\n"
18153 "             const char *command);\n"
18154 "\n"
18155 msgstr ""
18156
18157 # type: textblock
18158 #. type: textblock
18159 #: ../src/guestfs-actions.pod:6168 ../fish/guestfish-actions.pod:4163
18160 msgid ""
18161 "This call runs a command from the guest filesystem via the guest's C</bin/"
18162 "sh>."
18163 msgstr ""
18164
18165 # type: textblock
18166 #. type: textblock
18167 #: ../src/guestfs-actions.pod:6171
18168 msgid "This is like C<guestfs_command>, but passes the command to:"
18169 msgstr ""
18170
18171 # type: verbatim
18172 #. type: verbatim
18173 #: ../src/guestfs-actions.pod:6173 ../fish/guestfish-actions.pod:4168
18174 #, no-wrap
18175 msgid ""
18176 " /bin/sh -c \"command\"\n"
18177 "\n"
18178 msgstr ""
18179
18180 # type: textblock
18181 #. type: textblock
18182 #: ../src/guestfs-actions.pod:6175 ../fish/guestfish-actions.pod:4170
18183 msgid ""
18184 "Depending on the guest's shell, this usually results in wildcards being "
18185 "expanded, shell expressions being interpolated and so on."
18186 msgstr ""
18187
18188 # type: textblock
18189 #. type: textblock
18190 #: ../src/guestfs-actions.pod:6179
18191 msgid "All the provisos about C<guestfs_command> apply to this call."
18192 msgstr ""
18193
18194 # type: =head2
18195 #. type: =head2
18196 #: ../src/guestfs-actions.pod:6186
18197 msgid "guestfs_sh_lines"
18198 msgstr ""
18199
18200 # type: verbatim
18201 #. type: verbatim
18202 #: ../src/guestfs-actions.pod:6188
18203 #, no-wrap
18204 msgid ""
18205 " char **\n"
18206 " guestfs_sh_lines (guestfs_h *g,\n"
18207 "                   const char *command);\n"
18208 "\n"
18209 msgstr ""
18210
18211 # type: textblock
18212 #. type: textblock
18213 #: ../src/guestfs-actions.pod:6192
18214 msgid ""
18215 "This is the same as C<guestfs_sh>, but splits the result into a list of "
18216 "lines."
18217 msgstr ""
18218
18219 # type: textblock
18220 #. type: textblock
18221 #: ../src/guestfs-actions.pod:6195
18222 msgid "See also: C<guestfs_command_lines>"
18223 msgstr ""
18224
18225 # type: =head2
18226 #. type: =head2
18227 #: ../src/guestfs-actions.pod:6203
18228 msgid "guestfs_sleep"
18229 msgstr ""
18230
18231 # type: verbatim
18232 #. type: verbatim
18233 #: ../src/guestfs-actions.pod:6205
18234 #, no-wrap
18235 msgid ""
18236 " int\n"
18237 " guestfs_sleep (guestfs_h *g,\n"
18238 "                int secs);\n"
18239 "\n"
18240 msgstr ""
18241
18242 # type: textblock
18243 #. type: textblock
18244 #: ../src/guestfs-actions.pod:6209 ../fish/guestfish-actions.pod:4189
18245 msgid "Sleep for C<secs> seconds."
18246 msgstr ""
18247
18248 # type: textblock
18249 #. type: textblock
18250 #: ../src/guestfs-actions.pod:6213
18251 msgid "(Added in 1.0.41)"
18252 msgstr ""
18253
18254 # type: =head2
18255 #. type: =head2
18256 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-structs.pod:109
18257 msgid "guestfs_stat"
18258 msgstr ""
18259
18260 # type: verbatim
18261 #. type: verbatim
18262 #: ../src/guestfs-actions.pod:6217
18263 #, no-wrap
18264 msgid ""
18265 " struct guestfs_stat *\n"
18266 " guestfs_stat (guestfs_h *g,\n"
18267 "               const char *path);\n"
18268 "\n"
18269 msgstr ""
18270
18271 # type: textblock
18272 #. type: textblock
18273 #: ../src/guestfs-actions.pod:6223 ../fish/guestfish-actions.pod:4197
18274 msgid "This is the same as the C<stat(2)> system call."
18275 msgstr ""
18276
18277 # type: =head2
18278 #. type: =head2
18279 #: ../src/guestfs-actions.pod:6231 ../src/guestfs-structs.pod:135
18280 msgid "guestfs_statvfs"
18281 msgstr ""
18282
18283 # type: verbatim
18284 #. type: verbatim
18285 #: ../src/guestfs-actions.pod:6233
18286 #, no-wrap
18287 msgid ""
18288 " struct guestfs_statvfs *\n"
18289 " guestfs_statvfs (guestfs_h *g,\n"
18290 "                  const char *path);\n"
18291 "\n"
18292 msgstr ""
18293
18294 # type: textblock
18295 #. type: textblock
18296 #: ../src/guestfs-actions.pod:6237 ../fish/guestfish-actions.pod:4203
18297 msgid ""
18298 "Returns file system statistics for any mounted file system.  C<path> should "
18299 "be a file or directory in the mounted file system (typically it is the mount "
18300 "point itself, but it doesn't need to be)."
18301 msgstr ""
18302
18303 # type: textblock
18304 #. type: textblock
18305 #: ../src/guestfs-actions.pod:6241 ../fish/guestfish-actions.pod:4207
18306 msgid "This is the same as the C<statvfs(2)> system call."
18307 msgstr ""
18308
18309 # type: textblock
18310 #. type: textblock
18311 #: ../src/guestfs-actions.pod:6243
18312 msgid ""
18313 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
18314 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
18315 msgstr ""
18316
18317 # type: =head2
18318 #. type: =head2
18319 #: ../src/guestfs-actions.pod:6249
18320 msgid "guestfs_strings"
18321 msgstr ""
18322
18323 # type: verbatim
18324 #. type: verbatim
18325 #: ../src/guestfs-actions.pod:6251
18326 #, no-wrap
18327 msgid ""
18328 " char **\n"
18329 " guestfs_strings (guestfs_h *g,\n"
18330 "                  const char *path);\n"
18331 "\n"
18332 msgstr ""
18333
18334 # type: textblock
18335 #. type: textblock
18336 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4213
18337 msgid ""
18338 "This runs the L<strings(1)> command on a file and returns the list of "
18339 "printable strings found."
18340 msgstr ""
18341
18342 # type: =head2
18343 #. type: =head2
18344 #: ../src/guestfs-actions.pod:6267
18345 msgid "guestfs_strings_e"
18346 msgstr ""
18347
18348 # type: verbatim
18349 #. type: verbatim
18350 #: ../src/guestfs-actions.pod:6269
18351 #, no-wrap
18352 msgid ""
18353 " char **\n"
18354 " guestfs_strings_e (guestfs_h *g,\n"
18355 "                    const char *encoding,\n"
18356 "                    const char *path);\n"
18357 "\n"
18358 msgstr ""
18359
18360 # type: textblock
18361 #. type: textblock
18362 #: ../src/guestfs-actions.pod:6274
18363 msgid ""
18364 "This is like the C<guestfs_strings> command, but allows you to specify the "
18365 "encoding of strings that are looked for in the source file C<path>."
18366 msgstr ""
18367
18368 # type: textblock
18369 #. type: textblock
18370 #: ../src/guestfs-actions.pod:6278 ../fish/guestfish-actions.pod:4227
18371 msgid "Allowed encodings are:"
18372 msgstr ""
18373
18374 # type: =item
18375 #. type: =item
18376 #: ../src/guestfs-actions.pod:6282 ../fish/guestfish-actions.pod:4231
18377 msgid "s"
18378 msgstr ""
18379
18380 # type: textblock
18381 #. type: textblock
18382 #: ../src/guestfs-actions.pod:6284
18383 msgid ""
18384 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
18385 "ISO-8859-X (this is what C<guestfs_strings> uses)."
18386 msgstr ""
18387
18388 # type: =item
18389 #. type: =item
18390 #: ../src/guestfs-actions.pod:6287 ../fish/guestfish-actions.pod:4236
18391 msgid "S"
18392 msgstr ""
18393
18394 # type: textblock
18395 #. type: textblock
18396 #: ../src/guestfs-actions.pod:6289 ../fish/guestfish-actions.pod:4238
18397 msgid "Single 8-bit-byte characters."
18398 msgstr ""
18399
18400 # type: =item
18401 #. type: =item
18402 #: ../src/guestfs-actions.pod:6291 ../fish/guestfish-actions.pod:4240
18403 msgid "b"
18404 msgstr ""
18405
18406 # type: textblock
18407 #. type: textblock
18408 #: ../src/guestfs-actions.pod:6293 ../fish/guestfish-actions.pod:4242
18409 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
18410 msgstr ""
18411
18412 # type: =item
18413 #. type: =item
18414 #: ../src/guestfs-actions.pod:6296 ../fish/guestfish-actions.pod:4245
18415 msgid "l (lower case letter L)"
18416 msgstr ""
18417
18418 # type: textblock
18419 #. type: textblock
18420 #: ../src/guestfs-actions.pod:6298 ../fish/guestfish-actions.pod:4247
18421 msgid ""
18422 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
18423 "examining binaries in Windows guests."
18424 msgstr ""
18425
18426 # type: =item
18427 #. type: =item
18428 #: ../src/guestfs-actions.pod:6301 ../fish/guestfish-actions.pod:4250
18429 msgid "B"
18430 msgstr ""
18431
18432 # type: textblock
18433 #. type: textblock
18434 #: ../src/guestfs-actions.pod:6303 ../fish/guestfish-actions.pod:4252
18435 msgid "32-bit big endian such as UCS-4BE."
18436 msgstr ""
18437
18438 # type: =item
18439 #. type: =item
18440 #: ../src/guestfs-actions.pod:6305 ../fish/guestfish-actions.pod:4254
18441 msgid "L"
18442 msgstr ""
18443
18444 # type: textblock
18445 #. type: textblock
18446 #: ../src/guestfs-actions.pod:6307 ../fish/guestfish-actions.pod:4256
18447 msgid "32-bit little endian such as UCS-4LE."
18448 msgstr ""
18449
18450 # type: textblock
18451 #. type: textblock
18452 #: ../src/guestfs-actions.pod:6311 ../fish/guestfish-actions.pod:4260
18453 msgid "The returned strings are transcoded to UTF-8."
18454 msgstr ""
18455
18456 # type: =head2
18457 #. type: =head2
18458 #: ../src/guestfs-actions.pod:6322
18459 msgid "guestfs_swapoff_device"
18460 msgstr ""
18461
18462 # type: verbatim
18463 #. type: verbatim
18464 #: ../src/guestfs-actions.pod:6324
18465 #, no-wrap
18466 msgid ""
18467 " int\n"
18468 " guestfs_swapoff_device (guestfs_h *g,\n"
18469 "                         const char *device);\n"
18470 "\n"
18471 msgstr ""
18472
18473 # type: textblock
18474 #. type: textblock
18475 #: ../src/guestfs-actions.pod:6328
18476 msgid ""
18477 "This command disables the libguestfs appliance swap device or partition "
18478 "named C<device>.  See C<guestfs_swapon_device>."
18479 msgstr ""
18480
18481 # type: =head2
18482 #. type: =head2
18483 #: ../src/guestfs-actions.pod:6336
18484 msgid "guestfs_swapoff_file"
18485 msgstr ""
18486
18487 # type: verbatim
18488 #. type: verbatim
18489 #: ../src/guestfs-actions.pod:6338
18490 #, no-wrap
18491 msgid ""
18492 " int\n"
18493 " guestfs_swapoff_file (guestfs_h *g,\n"
18494 "                       const char *file);\n"
18495 "\n"
18496 msgstr ""
18497
18498 # type: textblock
18499 #. type: textblock
18500 #: ../src/guestfs-actions.pod:6342 ../fish/guestfish-actions.pod:4277
18501 msgid "This command disables the libguestfs appliance swap on file."
18502 msgstr ""
18503
18504 # type: =head2
18505 #. type: =head2
18506 #: ../src/guestfs-actions.pod:6348
18507 msgid "guestfs_swapoff_label"
18508 msgstr ""
18509
18510 # type: verbatim
18511 #. type: verbatim
18512 #: ../src/guestfs-actions.pod:6350
18513 #, no-wrap
18514 msgid ""
18515 " int\n"
18516 " guestfs_swapoff_label (guestfs_h *g,\n"
18517 "                        const char *label);\n"
18518 "\n"
18519 msgstr ""
18520
18521 # type: textblock
18522 #. type: textblock
18523 #: ../src/guestfs-actions.pod:6354 ../fish/guestfish-actions.pod:4283
18524 msgid ""
18525 "This command disables the libguestfs appliance swap on labeled swap "
18526 "partition."
18527 msgstr ""
18528
18529 # type: =head2
18530 #. type: =head2
18531 #: ../src/guestfs-actions.pod:6361
18532 msgid "guestfs_swapoff_uuid"
18533 msgstr ""
18534
18535 # type: verbatim
18536 #. type: verbatim
18537 #: ../src/guestfs-actions.pod:6363
18538 #, no-wrap
18539 msgid ""
18540 " int\n"
18541 " guestfs_swapoff_uuid (guestfs_h *g,\n"
18542 "                       const char *uuid);\n"
18543 "\n"
18544 msgstr ""
18545
18546 # type: textblock
18547 #. type: textblock
18548 #: ../src/guestfs-actions.pod:6367 ../fish/guestfish-actions.pod:4290
18549 msgid ""
18550 "This command disables the libguestfs appliance swap partition with the given "
18551 "UUID."
18552 msgstr ""
18553
18554 # type: =head2
18555 #. type: =head2
18556 #: ../src/guestfs-actions.pod:6374
18557 msgid "guestfs_swapon_device"
18558 msgstr ""
18559
18560 # type: verbatim
18561 #. type: verbatim
18562 #: ../src/guestfs-actions.pod:6376
18563 #, no-wrap
18564 msgid ""
18565 " int\n"
18566 " guestfs_swapon_device (guestfs_h *g,\n"
18567 "                        const char *device);\n"
18568 "\n"
18569 msgstr ""
18570
18571 # type: textblock
18572 #. type: textblock
18573 #: ../src/guestfs-actions.pod:6380
18574 msgid ""
18575 "This command enables the libguestfs appliance to use the swap device or "
18576 "partition named C<device>.  The increased memory is made available for all "
18577 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
18578 msgstr ""
18579
18580 # type: textblock
18581 #. type: textblock
18582 #: ../src/guestfs-actions.pod:6385 ../fish/guestfish-actions.pod:4302
18583 msgid ""
18584 "Note that you should not swap to existing guest swap partitions unless you "
18585 "know what you are doing.  They may contain hibernation information, or other "
18586 "information that the guest doesn't want you to trash.  You also risk leaking "
18587 "information about the host to the guest this way.  Instead, attach a new "
18588 "host device to the guest and swap on that."
18589 msgstr ""
18590
18591 # type: =head2
18592 #. type: =head2
18593 #: ../src/guestfs-actions.pod:6396
18594 msgid "guestfs_swapon_file"
18595 msgstr ""
18596
18597 # type: verbatim
18598 #. type: verbatim
18599 #: ../src/guestfs-actions.pod:6398
18600 #, no-wrap
18601 msgid ""
18602 " int\n"
18603 " guestfs_swapon_file (guestfs_h *g,\n"
18604 "                      const char *file);\n"
18605 "\n"
18606 msgstr ""
18607
18608 # type: textblock
18609 #. type: textblock
18610 #: ../src/guestfs-actions.pod:6402
18611 msgid ""
18612 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
18613 "notes."
18614 msgstr ""
18615
18616 # type: =head2
18617 #. type: =head2
18618 #: ../src/guestfs-actions.pod:6409
18619 msgid "guestfs_swapon_label"
18620 msgstr ""
18621
18622 # type: verbatim
18623 #. type: verbatim
18624 #: ../src/guestfs-actions.pod:6411
18625 #, no-wrap
18626 msgid ""
18627 " int\n"
18628 " guestfs_swapon_label (guestfs_h *g,\n"
18629 "                       const char *label);\n"
18630 "\n"
18631 msgstr ""
18632
18633 # type: textblock
18634 #. type: textblock
18635 #: ../src/guestfs-actions.pod:6415
18636 msgid ""
18637 "This command enables swap to a labeled swap partition.  See "
18638 "C<guestfs_swapon_device> for other notes."
18639 msgstr ""
18640
18641 # type: =head2
18642 #. type: =head2
18643 #: ../src/guestfs-actions.pod:6422
18644 msgid "guestfs_swapon_uuid"
18645 msgstr ""
18646
18647 # type: verbatim
18648 #. type: verbatim
18649 #: ../src/guestfs-actions.pod:6424
18650 #, no-wrap
18651 msgid ""
18652 " int\n"
18653 " guestfs_swapon_uuid (guestfs_h *g,\n"
18654 "                      const char *uuid);\n"
18655 "\n"
18656 msgstr ""
18657
18658 # type: textblock
18659 #. type: textblock
18660 #: ../src/guestfs-actions.pod:6428
18661 msgid ""
18662 "This command enables swap to a swap partition with the given UUID.  See "
18663 "C<guestfs_swapon_device> for other notes."
18664 msgstr ""
18665
18666 # type: =head2
18667 #. type: =head2
18668 #: ../src/guestfs-actions.pod:6435
18669 msgid "guestfs_sync"
18670 msgstr ""
18671
18672 # type: verbatim
18673 #. type: verbatim
18674 #: ../src/guestfs-actions.pod:6437
18675 #, no-wrap
18676 msgid ""
18677 " int\n"
18678 " guestfs_sync (guestfs_h *g);\n"
18679 "\n"
18680 msgstr ""
18681
18682 # type: textblock
18683 #. type: textblock
18684 #: ../src/guestfs-actions.pod:6440 ../fish/guestfish-actions.pod:4334
18685 msgid ""
18686 "This syncs the disk, so that any writes are flushed through to the "
18687 "underlying disk image."
18688 msgstr ""
18689
18690 # type: textblock
18691 #. type: textblock
18692 #: ../src/guestfs-actions.pod:6443 ../fish/guestfish-actions.pod:4337
18693 msgid ""
18694 "You should always call this if you have modified a disk image, before "
18695 "closing the handle."
18696 msgstr ""
18697
18698 # type: =head2
18699 #. type: =head2
18700 #: ../src/guestfs-actions.pod:6450
18701 msgid "guestfs_tail"
18702 msgstr ""
18703
18704 # type: verbatim
18705 #. type: verbatim
18706 #: ../src/guestfs-actions.pod:6452
18707 #, no-wrap
18708 msgid ""
18709 " char **\n"
18710 " guestfs_tail (guestfs_h *g,\n"
18711 "               const char *path);\n"
18712 "\n"
18713 msgstr ""
18714
18715 # type: textblock
18716 #. type: textblock
18717 #: ../src/guestfs-actions.pod:6456 ../fish/guestfish-actions.pod:4344
18718 msgid ""
18719 "This command returns up to the last 10 lines of a file as a list of strings."
18720 msgstr ""
18721
18722 # type: =head2
18723 #. type: =head2
18724 #: ../src/guestfs-actions.pod:6468
18725 msgid "guestfs_tail_n"
18726 msgstr ""
18727
18728 # type: verbatim
18729 #. type: verbatim
18730 #: ../src/guestfs-actions.pod:6470
18731 #, no-wrap
18732 msgid ""
18733 " char **\n"
18734 " guestfs_tail_n (guestfs_h *g,\n"
18735 "                 int nrlines,\n"
18736 "                 const char *path);\n"
18737 "\n"
18738 msgstr ""
18739
18740 # type: textblock
18741 #. type: textblock
18742 #: ../src/guestfs-actions.pod:6475 ../fish/guestfish-actions.pod:4354
18743 msgid ""
18744 "If the parameter C<nrlines> is a positive number, this returns the last "
18745 "C<nrlines> lines of the file C<path>."
18746 msgstr ""
18747
18748 # type: textblock
18749 #. type: textblock
18750 #: ../src/guestfs-actions.pod:6478 ../fish/guestfish-actions.pod:4357
18751 msgid ""
18752 "If the parameter C<nrlines> is a negative number, this returns lines from "
18753 "the file C<path>, starting with the C<-nrlines>th line."
18754 msgstr ""
18755
18756 # type: =head2
18757 #. type: =head2
18758 #: ../src/guestfs-actions.pod:6492
18759 msgid "guestfs_tar_in"
18760 msgstr ""
18761
18762 # type: verbatim
18763 #. type: verbatim
18764 #: ../src/guestfs-actions.pod:6494
18765 #, no-wrap
18766 msgid ""
18767 " int\n"
18768 " guestfs_tar_in (guestfs_h *g,\n"
18769 "                 const char *tarfile,\n"
18770 "                 const char *directory);\n"
18771 "\n"
18772 msgstr ""
18773
18774 # type: textblock
18775 #. type: textblock
18776 #: ../src/guestfs-actions.pod:6499 ../fish/guestfish-actions.pod:4369
18777 msgid ""
18778 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18779 "tar file) into C<directory>."
18780 msgstr ""
18781
18782 # type: textblock
18783 #. type: textblock
18784 #: ../src/guestfs-actions.pod:6502
18785 msgid ""
18786 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18787 msgstr ""
18788
18789 # type: textblock
18790 #. type: textblock
18791 #: ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6524
18792 #: ../src/guestfs-actions.pod:6540 ../src/guestfs-actions.pod:6556
18793 msgid "(Added in 1.0.3)"
18794 msgstr ""
18795
18796 # type: =head2
18797 #. type: =head2
18798 #: ../src/guestfs-actions.pod:6509
18799 msgid "guestfs_tar_out"
18800 msgstr ""
18801
18802 # type: verbatim
18803 #. type: verbatim
18804 #: ../src/guestfs-actions.pod:6511
18805 #, no-wrap
18806 msgid ""
18807 " int\n"
18808 " guestfs_tar_out (guestfs_h *g,\n"
18809 "                  const char *directory,\n"
18810 "                  const char *tarfile);\n"
18811 "\n"
18812 msgstr ""
18813
18814 # type: textblock
18815 #. type: textblock
18816 #: ../src/guestfs-actions.pod:6516 ../fish/guestfish-actions.pod:4381
18817 msgid ""
18818 "This command packs the contents of C<directory> and downloads it to local "
18819 "file C<tarfile>."
18820 msgstr ""
18821
18822 # type: textblock
18823 #. type: textblock
18824 #: ../src/guestfs-actions.pod:6519
18825 msgid ""
18826 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18827 "C<guestfs_txz_out>."
18828 msgstr ""
18829
18830 # type: =head2
18831 #. type: =head2
18832 #: ../src/guestfs-actions.pod:6526
18833 msgid "guestfs_tgz_in"
18834 msgstr ""
18835
18836 # type: verbatim
18837 #. type: verbatim
18838 #: ../src/guestfs-actions.pod:6528
18839 #, no-wrap
18840 msgid ""
18841 " int\n"
18842 " guestfs_tgz_in (guestfs_h *g,\n"
18843 "                 const char *tarball,\n"
18844 "                 const char *directory);\n"
18845 "\n"
18846 msgstr ""
18847
18848 # type: textblock
18849 #. type: textblock
18850 #: ../src/guestfs-actions.pod:6533 ../fish/guestfish-actions.pod:4393
18851 msgid ""
18852 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18853 "tar file) into C<directory>."
18854 msgstr ""
18855
18856 # type: textblock
18857 #. type: textblock
18858 #: ../src/guestfs-actions.pod:6536
18859 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18860 msgstr ""
18861
18862 # type: =head2
18863 #. type: =head2
18864 #: ../src/guestfs-actions.pod:6542
18865 msgid "guestfs_tgz_out"
18866 msgstr ""
18867
18868 # type: verbatim
18869 #. type: verbatim
18870 #: ../src/guestfs-actions.pod:6544
18871 #, no-wrap
18872 msgid ""
18873 " int\n"
18874 " guestfs_tgz_out (guestfs_h *g,\n"
18875 "                  const char *directory,\n"
18876 "                  const char *tarball);\n"
18877 "\n"
18878 msgstr ""
18879
18880 # type: textblock
18881 #. type: textblock
18882 #: ../src/guestfs-actions.pod:6549 ../fish/guestfish-actions.pod:4404
18883 msgid ""
18884 "This command packs the contents of C<directory> and downloads it to local "
18885 "file C<tarball>."
18886 msgstr ""
18887
18888 # type: textblock
18889 #. type: textblock
18890 #: ../src/guestfs-actions.pod:6552
18891 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18892 msgstr ""
18893
18894 # type: =head2
18895 #. type: =head2
18896 #: ../src/guestfs-actions.pod:6558
18897 msgid "guestfs_touch"
18898 msgstr ""
18899
18900 # type: verbatim
18901 #. type: verbatim
18902 #: ../src/guestfs-actions.pod:6560
18903 #, no-wrap
18904 msgid ""
18905 " int\n"
18906 " guestfs_touch (guestfs_h *g,\n"
18907 "                const char *path);\n"
18908 "\n"
18909 msgstr ""
18910
18911 # type: textblock
18912 #. type: textblock
18913 #: ../src/guestfs-actions.pod:6564 ../fish/guestfish-actions.pod:4415
18914 msgid ""
18915 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18916 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18917 "length file."
18918 msgstr ""
18919
18920 # type: textblock
18921 #. type: textblock
18922 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4419
18923 msgid ""
18924 "This command only works on regular files, and will fail on other file types "
18925 "such as directories, symbolic links, block special etc."
18926 msgstr ""
18927
18928 # type: =head2
18929 #. type: =head2
18930 #: ../src/guestfs-actions.pod:6575
18931 msgid "guestfs_truncate"
18932 msgstr ""
18933
18934 # type: verbatim
18935 #. type: verbatim
18936 #: ../src/guestfs-actions.pod:6577
18937 #, no-wrap
18938 msgid ""
18939 " int\n"
18940 " guestfs_truncate (guestfs_h *g,\n"
18941 "                   const char *path);\n"
18942 "\n"
18943 msgstr ""
18944
18945 # type: textblock
18946 #. type: textblock
18947 #: ../src/guestfs-actions.pod:6581 ../fish/guestfish-actions.pod:4426
18948 msgid ""
18949 "This command truncates C<path> to a zero-length file.  The file must exist "
18950 "already."
18951 msgstr ""
18952
18953 # type: =head2
18954 #. type: =head2
18955 #: ../src/guestfs-actions.pod:6588
18956 msgid "guestfs_truncate_size"
18957 msgstr ""
18958
18959 # type: verbatim
18960 #. type: verbatim
18961 #: ../src/guestfs-actions.pod:6590
18962 #, no-wrap
18963 msgid ""
18964 " int\n"
18965 " guestfs_truncate_size (guestfs_h *g,\n"
18966 "                        const char *path,\n"
18967 "                        int64_t size);\n"
18968 "\n"
18969 msgstr ""
18970
18971 # type: textblock
18972 #. type: textblock
18973 #: ../src/guestfs-actions.pod:6595 ../fish/guestfish-actions.pod:4433
18974 msgid ""
18975 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18976 "already."
18977 msgstr ""
18978
18979 # type: textblock
18980 #. type: textblock
18981 #: ../src/guestfs-actions.pod:6598
18982 msgid ""
18983 "If the current file size is less than C<size> then the file is extended to "
18984 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18985 "blocks are not allocated for the file until you write to it).  To create a "
18986 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18987 msgstr ""
18988
18989 # type: =head2
18990 #. type: =head2
18991 #: ../src/guestfs-actions.pod:6608
18992 msgid "guestfs_tune2fs_l"
18993 msgstr ""
18994
18995 # type: verbatim
18996 #. type: verbatim
18997 #: ../src/guestfs-actions.pod:6610
18998 #, no-wrap
18999 msgid ""
19000 " char **\n"
19001 " guestfs_tune2fs_l (guestfs_h *g,\n"
19002 "                    const char *device);\n"
19003 "\n"
19004 msgstr ""
19005
19006 # type: textblock
19007 #. type: textblock
19008 #: ../src/guestfs-actions.pod:6614 ../fish/guestfish-actions.pod:4446
19009 msgid ""
19010 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
19011 "C<device>."
19012 msgstr ""
19013
19014 # type: textblock
19015 #. type: textblock
19016 #: ../src/guestfs-actions.pod:6617 ../fish/guestfish-actions.pod:4449
19017 msgid ""
19018 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
19019 "for more details.  The list of fields returned isn't clearly defined, and "
19020 "depends on both the version of C<tune2fs> that libguestfs was built against, "
19021 "and the filesystem itself."
19022 msgstr ""
19023
19024 # type: =head2
19025 #. type: =head2
19026 #: ../src/guestfs-actions.pod:6630
19027 msgid "guestfs_txz_in"
19028 msgstr ""
19029
19030 # type: verbatim
19031 #. type: verbatim
19032 #: ../src/guestfs-actions.pod:6632
19033 #, no-wrap
19034 msgid ""
19035 " int\n"
19036 " guestfs_txz_in (guestfs_h *g,\n"
19037 "                 const char *tarball,\n"
19038 "                 const char *directory);\n"
19039 "\n"
19040 msgstr ""
19041
19042 # type: textblock
19043 #. type: textblock
19044 #: ../src/guestfs-actions.pod:6637 ../fish/guestfish-actions.pod:4458
19045 msgid ""
19046 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
19047 "tar file) into C<directory>."
19048 msgstr ""
19049
19050 # type: =head2
19051 #. type: =head2
19052 #: ../src/guestfs-actions.pod:6644
19053 msgid "guestfs_txz_out"
19054 msgstr ""
19055
19056 # type: verbatim
19057 #. type: verbatim
19058 #: ../src/guestfs-actions.pod:6646
19059 #, no-wrap
19060 msgid ""
19061 " int\n"
19062 " guestfs_txz_out (guestfs_h *g,\n"
19063 "                  const char *directory,\n"
19064 "                  const char *tarball);\n"
19065 "\n"
19066 msgstr ""
19067
19068 # type: textblock
19069 #. type: textblock
19070 #: ../src/guestfs-actions.pod:6651 ../fish/guestfish-actions.pod:4467
19071 msgid ""
19072 "This command packs the contents of C<directory> and downloads it to local "
19073 "file C<tarball> (as an xz compressed tar archive)."
19074 msgstr ""
19075
19076 # type: =head2
19077 #. type: =head2
19078 #: ../src/guestfs-actions.pod:6658
19079 msgid "guestfs_umask"
19080 msgstr ""
19081
19082 # type: verbatim
19083 #. type: verbatim
19084 #: ../src/guestfs-actions.pod:6660
19085 #, no-wrap
19086 msgid ""
19087 " int\n"
19088 " guestfs_umask (guestfs_h *g,\n"
19089 "                int mask);\n"
19090 "\n"
19091 msgstr ""
19092
19093 # type: textblock
19094 #. type: textblock
19095 #: ../src/guestfs-actions.pod:6664 ../fish/guestfish-actions.pod:4476
19096 msgid ""
19097 "This function sets the mask used for creating new files and device nodes to "
19098 "C<mask & 0777>."
19099 msgstr ""
19100
19101 # type: textblock
19102 #. type: textblock
19103 #: ../src/guestfs-actions.pod:6667 ../fish/guestfish-actions.pod:4479
19104 msgid ""
19105 "Typical umask values would be C<022> which creates new files with "
19106 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
19107 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
19108 msgstr ""
19109
19110 # type: textblock
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:6672 ../fish/guestfish-actions.pod:4484
19113 msgid ""
19114 "The default umask is C<022>.  This is important because it means that "
19115 "directories and device nodes will be created with C<0644> or C<0755> mode "
19116 "even if you specify C<0777>."
19117 msgstr ""
19118
19119 # type: textblock
19120 #. type: textblock
19121 #: ../src/guestfs-actions.pod:6676
19122 msgid ""
19123 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
19124 "C<guestfs_mkdir>."
19125 msgstr ""
19126
19127 # type: textblock
19128 #. type: textblock
19129 #: ../src/guestfs-actions.pod:6679 ../fish/guestfish-actions.pod:4491
19130 msgid "This call returns the previous umask."
19131 msgstr ""
19132
19133 # type: =head2
19134 #. type: =head2
19135 #: ../src/guestfs-actions.pod:6685
19136 msgid "guestfs_umount"
19137 msgstr ""
19138
19139 # type: verbatim
19140 #. type: verbatim
19141 #: ../src/guestfs-actions.pod:6687
19142 #, no-wrap
19143 msgid ""
19144 " int\n"
19145 " guestfs_umount (guestfs_h *g,\n"
19146 "                 const char *pathordevice);\n"
19147 "\n"
19148 msgstr ""
19149
19150 # type: textblock
19151 #. type: textblock
19152 #: ../src/guestfs-actions.pod:6691 ../fish/guestfish-actions.pod:4499
19153 msgid ""
19154 "This unmounts the given filesystem.  The filesystem may be specified either "
19155 "by its mountpoint (path) or the device which contains the filesystem."
19156 msgstr ""
19157
19158 # type: =head2
19159 #. type: =head2
19160 #: ../src/guestfs-actions.pod:6699
19161 msgid "guestfs_umount_all"
19162 msgstr ""
19163
19164 # type: verbatim
19165 #. type: verbatim
19166 #: ../src/guestfs-actions.pod:6701
19167 #, no-wrap
19168 msgid ""
19169 " int\n"
19170 " guestfs_umount_all (guestfs_h *g);\n"
19171 "\n"
19172 msgstr ""
19173
19174 # type: textblock
19175 #. type: textblock
19176 #: ../src/guestfs-actions.pod:6704 ../fish/guestfish-actions.pod:4509
19177 msgid "This unmounts all mounted filesystems."
19178 msgstr ""
19179
19180 # type: textblock
19181 #. type: textblock
19182 #: ../src/guestfs-actions.pod:6706 ../fish/guestfish-actions.pod:4511
19183 msgid "Some internal mounts are not unmounted by this call."
19184 msgstr ""
19185
19186 # type: =head2
19187 #. type: =head2
19188 #: ../src/guestfs-actions.pod:6712
19189 msgid "guestfs_upload"
19190 msgstr ""
19191
19192 # type: verbatim
19193 #. type: verbatim
19194 #: ../src/guestfs-actions.pod:6714
19195 #, no-wrap
19196 msgid ""
19197 " int\n"
19198 " guestfs_upload (guestfs_h *g,\n"
19199 "                 const char *filename,\n"
19200 "                 const char *remotefilename);\n"
19201 "\n"
19202 msgstr ""
19203
19204 # type: textblock
19205 #. type: textblock
19206 #: ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:6743
19207 #: ../fish/guestfish-actions.pod:4517 ../fish/guestfish-actions.pod:4530
19208 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
19209 msgstr ""
19210
19211 # type: textblock
19212 #. type: textblock
19213 #: ../src/guestfs-actions.pod:6724
19214 msgid "See also C<guestfs_download>."
19215 msgstr ""
19216
19217 # type: =head2
19218 #. type: =head2
19219 #: ../src/guestfs-actions.pod:6735
19220 msgid "guestfs_upload_offset"
19221 msgstr ""
19222
19223 # type: verbatim
19224 #. type: verbatim
19225 #: ../src/guestfs-actions.pod:6737
19226 #, no-wrap
19227 msgid ""
19228 " int\n"
19229 " guestfs_upload_offset (guestfs_h *g,\n"
19230 "                        const char *filename,\n"
19231 "                        const char *remotefilename,\n"
19232 "                        int64_t offset);\n"
19233 "\n"
19234 msgstr ""
19235
19236 # type: textblock
19237 #. type: textblock
19238 #: ../src/guestfs-actions.pod:6746 ../fish/guestfish-actions.pod:4533
19239 msgid ""
19240 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
19241 "The intention is to overwrite parts of existing files or devices, although "
19242 "if a non-existant file is specified then it is created with a \"hole\" "
19243 "before C<offset>.  The size of the data written is implicit in the size of "
19244 "the source C<filename>."
19245 msgstr ""
19246
19247 # type: textblock
19248 #. type: textblock
19249 #: ../src/guestfs-actions.pod:6753
19250 msgid ""
19251 "Note that there is no limit on the amount of data that can be uploaded with "
19252 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
19253 "full amount unless an error occurs."
19254 msgstr ""
19255
19256 # type: textblock
19257 #. type: textblock
19258 #: ../src/guestfs-actions.pod:6758
19259 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
19260 msgstr ""
19261
19262 # type: =head2
19263 #. type: =head2
19264 #: ../src/guestfs-actions.pod:6769
19265 msgid "guestfs_utimens"
19266 msgstr ""
19267
19268 # type: verbatim
19269 #. type: verbatim
19270 #: ../src/guestfs-actions.pod:6771
19271 #, no-wrap
19272 msgid ""
19273 " int\n"
19274 " guestfs_utimens (guestfs_h *g,\n"
19275 "                  const char *path,\n"
19276 "                  int64_t atsecs,\n"
19277 "                  int64_t atnsecs,\n"
19278 "                  int64_t mtsecs,\n"
19279 "                  int64_t mtnsecs);\n"
19280 "\n"
19281 msgstr ""
19282
19283 # type: textblock
19284 #. type: textblock
19285 #: ../src/guestfs-actions.pod:6779 ../fish/guestfish-actions.pod:4553
19286 msgid "This command sets the timestamps of a file with nanosecond precision."
19287 msgstr ""
19288
19289 # type: textblock
19290 #. type: textblock
19291 #: ../src/guestfs-actions.pod:6782 ../fish/guestfish-actions.pod:4556
19292 msgid ""
19293 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
19294 "from the epoch."
19295 msgstr ""
19296
19297 # type: textblock
19298 #. type: textblock
19299 #: ../src/guestfs-actions.pod:6785 ../fish/guestfish-actions.pod:4559
19300 msgid ""
19301 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
19302 "nanoseconds from the epoch."
19303 msgstr ""
19304
19305 # type: textblock
19306 #. type: textblock
19307 #: ../src/guestfs-actions.pod:6788 ../fish/guestfish-actions.pod:4562
19308 msgid ""
19309 "If the C<*nsecs> field contains the special value C<-1> then the "
19310 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
19311 "ignored in this case)."
19312 msgstr ""
19313
19314 # type: textblock
19315 #. type: textblock
19316 #: ../src/guestfs-actions.pod:6792 ../fish/guestfish-actions.pod:4566
19317 msgid ""
19318 "If the C<*nsecs> field contains the special value C<-2> then the "
19319 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
19320 "in this case)."
19321 msgstr ""
19322
19323 # type: =head2
19324 #. type: =head2
19325 #: ../src/guestfs-actions.pod:6800 ../src/guestfs-structs.pod:175
19326 msgid "guestfs_version"
19327 msgstr ""
19328
19329 # type: verbatim
19330 #. type: verbatim
19331 #: ../src/guestfs-actions.pod:6802
19332 #, no-wrap
19333 msgid ""
19334 " struct guestfs_version *\n"
19335 " guestfs_version (guestfs_h *g);\n"
19336 "\n"
19337 msgstr ""
19338
19339 # type: textblock
19340 #. type: textblock
19341 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4574
19342 msgid ""
19343 "Return the libguestfs version number that the program is linked against."
19344 msgstr ""
19345
19346 # type: textblock
19347 #. type: textblock
19348 #: ../src/guestfs-actions.pod:6808 ../fish/guestfish-actions.pod:4577
19349 msgid ""
19350 "Note that because of dynamic linking this is not necessarily the version of "
19351 "libguestfs that you compiled against.  You can compile the program, and then "
19352 "at runtime dynamically link against a completely different C<libguestfs.so> "
19353 "library."
19354 msgstr ""
19355
19356 # type: textblock
19357 #. type: textblock
19358 #: ../src/guestfs-actions.pod:6813 ../fish/guestfish-actions.pod:4582
19359 msgid ""
19360 "This call was added in version C<1.0.58>.  In previous versions of "
19361 "libguestfs there was no way to get the version number.  From C code you can "
19362 "use dynamic linker functions to find out if this symbol exists (if it "
19363 "doesn't, then it's an earlier version)."
19364 msgstr ""
19365
19366 # type: textblock
19367 #. type: textblock
19368 #: ../src/guestfs-actions.pod:6819 ../fish/guestfish-actions.pod:4588
19369 msgid ""
19370 "The call returns a structure with four elements.  The first three (C<major>, "
19371 "C<minor> and C<release>) are numbers and correspond to the usual version "
19372 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
19373 "but may be used for distro-specific information."
19374 msgstr ""
19375
19376 # type: textblock
19377 #. type: textblock
19378 #: ../src/guestfs-actions.pod:6825 ../fish/guestfish-actions.pod:4594
19379 msgid ""
19380 "To construct the original version string: C<$major.$minor.$release$extra>"
19381 msgstr ""
19382
19383 # type: textblock
19384 #. type: textblock
19385 #: ../src/guestfs-actions.pod:6828 ../fish/guestfish-actions.pod:4597
19386 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
19387 msgstr ""
19388
19389 # type: textblock
19390 #. type: textblock
19391 #: ../src/guestfs-actions.pod:6830
19392 msgid ""
19393 "I<Note:> Don't use this call to test for availability of features.  In "
19394 "enterprise distributions we backport features from later versions into "
19395 "earlier versions, making this an unreliable way to test for features.  Use "
19396 "C<guestfs_available> instead."
19397 msgstr ""
19398
19399 # type: textblock
19400 #. type: textblock
19401 #: ../src/guestfs-actions.pod:6836
19402 msgid ""
19403 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
19404 "error.  I<The caller must call C<guestfs_free_version> after use>."
19405 msgstr ""
19406
19407 # type: textblock
19408 #. type: textblock
19409 #: ../src/guestfs-actions.pod:6840
19410 msgid "(Added in 1.0.58)"
19411 msgstr ""
19412
19413 # type: =head2
19414 #. type: =head2
19415 #: ../src/guestfs-actions.pod:6842
19416 msgid "guestfs_vfs_label"
19417 msgstr ""
19418
19419 # type: verbatim
19420 #. type: verbatim
19421 #: ../src/guestfs-actions.pod:6844
19422 #, no-wrap
19423 msgid ""
19424 " char *\n"
19425 " guestfs_vfs_label (guestfs_h *g,\n"
19426 "                    const char *device);\n"
19427 "\n"
19428 msgstr ""
19429
19430 # type: textblock
19431 #. type: textblock
19432 #: ../src/guestfs-actions.pod:6848 ../fish/guestfish-actions.pod:4609
19433 msgid "This returns the filesystem label of the filesystem on C<device>."
19434 msgstr ""
19435
19436 # type: textblock
19437 #. type: textblock
19438 #: ../src/guestfs-actions.pod:6851 ../fish/guestfish-actions.pod:4612
19439 msgid "If the filesystem is unlabeled, this returns the empty string."
19440 msgstr ""
19441
19442 # type: textblock
19443 #. type: textblock
19444 #: ../src/guestfs-actions.pod:6853
19445 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
19446 msgstr ""
19447
19448 # type: textblock
19449 #. type: textblock
19450 #: ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:6895
19451 msgid "(Added in 1.3.18)"
19452 msgstr ""
19453
19454 # type: =head2
19455 #. type: =head2
19456 #: ../src/guestfs-actions.pod:6860
19457 msgid "guestfs_vfs_type"
19458 msgstr ""
19459
19460 # type: verbatim
19461 #. type: verbatim
19462 #: ../src/guestfs-actions.pod:6862
19463 #, no-wrap
19464 msgid ""
19465 " char *\n"
19466 " guestfs_vfs_type (guestfs_h *g,\n"
19467 "                   const char *device);\n"
19468 "\n"
19469 msgstr ""
19470
19471 # type: textblock
19472 #. type: textblock
19473 #: ../src/guestfs-actions.pod:6866 ../fish/guestfish-actions.pod:4620
19474 msgid ""
19475 "This command gets the filesystem type corresponding to the filesystem on "
19476 "C<device>."
19477 msgstr ""
19478
19479 # type: textblock
19480 #. type: textblock
19481 #: ../src/guestfs-actions.pod:6869 ../fish/guestfish-actions.pod:4623
19482 msgid ""
19483 "For most filesystems, the result is the name of the Linux VFS module which "
19484 "would be used to mount this filesystem if you mounted it without specifying "
19485 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
19486 msgstr ""
19487
19488 # type: =head2
19489 #. type: =head2
19490 #: ../src/guestfs-actions.pod:6879
19491 msgid "guestfs_vfs_uuid"
19492 msgstr ""
19493
19494 # type: verbatim
19495 #. type: verbatim
19496 #: ../src/guestfs-actions.pod:6881
19497 #, no-wrap
19498 msgid ""
19499 " char *\n"
19500 " guestfs_vfs_uuid (guestfs_h *g,\n"
19501 "                   const char *device);\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: textblock
19506 #. type: textblock
19507 #: ../src/guestfs-actions.pod:6885 ../fish/guestfish-actions.pod:4632
19508 msgid "This returns the filesystem UUID of the filesystem on C<device>."
19509 msgstr ""
19510
19511 # type: textblock
19512 #. type: textblock
19513 #: ../src/guestfs-actions.pod:6888 ../fish/guestfish-actions.pod:4635
19514 msgid "If the filesystem does not have a UUID, this returns the empty string."
19515 msgstr ""
19516
19517 # type: textblock
19518 #. type: textblock
19519 #: ../src/guestfs-actions.pod:6890
19520 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
19521 msgstr ""
19522
19523 # type: =head2
19524 #. type: =head2
19525 #: ../src/guestfs-actions.pod:6897
19526 msgid "guestfs_vg_activate"
19527 msgstr ""
19528
19529 # type: verbatim
19530 #. type: verbatim
19531 #: ../src/guestfs-actions.pod:6899
19532 #, no-wrap
19533 msgid ""
19534 " int\n"
19535 " guestfs_vg_activate (guestfs_h *g,\n"
19536 "                      int activate,\n"
19537 "                      char *const *volgroups);\n"
19538 "\n"
19539 msgstr ""
19540
19541 # type: textblock
19542 #. type: textblock
19543 #: ../src/guestfs-actions.pod:6904 ../fish/guestfish-actions.pod:4643
19544 msgid ""
19545 "This command activates or (if C<activate> is false) deactivates all logical "
19546 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
19547 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
19548 "deactivated, then those devices disappear."
19549 msgstr ""
19550
19551 # type: textblock
19552 #. type: textblock
19553 #: ../src/guestfs-actions.pod:6910 ../fish/guestfish-actions.pod:4649
19554 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
19555 msgstr ""
19556
19557 # type: textblock
19558 #. type: textblock
19559 #: ../src/guestfs-actions.pod:6912 ../fish/guestfish-actions.pod:4651
19560 msgid ""
19561 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
19562 "activated or deactivated."
19563 msgstr ""
19564
19565 # type: =head2
19566 #. type: =head2
19567 #: ../src/guestfs-actions.pod:6919
19568 msgid "guestfs_vg_activate_all"
19569 msgstr ""
19570
19571 # type: verbatim
19572 #. type: verbatim
19573 #: ../src/guestfs-actions.pod:6921
19574 #, no-wrap
19575 msgid ""
19576 " int\n"
19577 " guestfs_vg_activate_all (guestfs_h *g,\n"
19578 "                          int activate);\n"
19579 "\n"
19580 msgstr ""
19581
19582 # type: textblock
19583 #. type: textblock
19584 #: ../src/guestfs-actions.pod:6925 ../fish/guestfish-actions.pod:4658
19585 msgid ""
19586 "This command activates or (if C<activate> is false) deactivates all logical "
19587 "volumes in all volume groups.  If activated, then they are made known to the "
19588 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
19589 "those devices disappear."
19590 msgstr ""
19591
19592 # type: textblock
19593 #. type: textblock
19594 #: ../src/guestfs-actions.pod:6931 ../fish/guestfish-actions.pod:4664
19595 msgid "This command is the same as running C<vgchange -a y|n>"
19596 msgstr ""
19597
19598 # type: =head2
19599 #. type: =head2
19600 #: ../src/guestfs-actions.pod:6937
19601 msgid "guestfs_vgcreate"
19602 msgstr ""
19603
19604 # type: verbatim
19605 #. type: verbatim
19606 #: ../src/guestfs-actions.pod:6939
19607 #, no-wrap
19608 msgid ""
19609 " int\n"
19610 " guestfs_vgcreate (guestfs_h *g,\n"
19611 "                   const char *volgroup,\n"
19612 "                   char *const *physvols);\n"
19613 "\n"
19614 msgstr ""
19615
19616 # type: textblock
19617 #. type: textblock
19618 #: ../src/guestfs-actions.pod:6944 ../fish/guestfish-actions.pod:4670
19619 msgid ""
19620 "This creates an LVM volume group called C<volgroup> from the non-empty list "
19621 "of physical volumes C<physvols>."
19622 msgstr ""
19623
19624 # type: =head2
19625 #. type: =head2
19626 #: ../src/guestfs-actions.pod:6951
19627 msgid "guestfs_vglvuuids"
19628 msgstr ""
19629
19630 # type: verbatim
19631 #. type: verbatim
19632 #: ../src/guestfs-actions.pod:6953
19633 #, no-wrap
19634 msgid ""
19635 " char **\n"
19636 " guestfs_vglvuuids (guestfs_h *g,\n"
19637 "                    const char *vgname);\n"
19638 "\n"
19639 msgstr ""
19640
19641 # type: textblock
19642 #. type: textblock
19643 #: ../src/guestfs-actions.pod:6957 ../fish/guestfish-actions.pod:4677
19644 msgid ""
19645 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19646 "volumes created in this volume group."
19647 msgstr ""
19648
19649 # type: textblock
19650 #. type: textblock
19651 #: ../src/guestfs-actions.pod:6960
19652 msgid ""
19653 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19654 "associate logical volumes and volume groups."
19655 msgstr ""
19656
19657 # type: textblock
19658 #. type: textblock
19659 #: ../src/guestfs-actions.pod:6963
19660 msgid "See also C<guestfs_vgpvuuids>."
19661 msgstr ""
19662
19663 # type: =head2
19664 #. type: =head2
19665 #: ../src/guestfs-actions.pod:6971
19666 msgid "guestfs_vgpvuuids"
19667 msgstr ""
19668
19669 # type: verbatim
19670 #. type: verbatim
19671 #: ../src/guestfs-actions.pod:6973
19672 #, no-wrap
19673 msgid ""
19674 " char **\n"
19675 " guestfs_vgpvuuids (guestfs_h *g,\n"
19676 "                    const char *vgname);\n"
19677 "\n"
19678 msgstr ""
19679
19680 # type: textblock
19681 #. type: textblock
19682 #: ../src/guestfs-actions.pod:6977 ../fish/guestfish-actions.pod:4689
19683 msgid ""
19684 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19685 "volumes that this volume group resides on."
19686 msgstr ""
19687
19688 # type: textblock
19689 #. type: textblock
19690 #: ../src/guestfs-actions.pod:6980
19691 msgid ""
19692 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19693 "associate physical volumes and volume groups."
19694 msgstr ""
19695
19696 # type: textblock
19697 #. type: textblock
19698 #: ../src/guestfs-actions.pod:6983
19699 msgid "See also C<guestfs_vglvuuids>."
19700 msgstr ""
19701
19702 # type: =head2
19703 #. type: =head2
19704 #: ../src/guestfs-actions.pod:6991
19705 msgid "guestfs_vgremove"
19706 msgstr ""
19707
19708 # type: verbatim
19709 #. type: verbatim
19710 #: ../src/guestfs-actions.pod:6993
19711 #, no-wrap
19712 msgid ""
19713 " int\n"
19714 " guestfs_vgremove (guestfs_h *g,\n"
19715 "                   const char *vgname);\n"
19716 "\n"
19717 msgstr ""
19718
19719 # type: textblock
19720 #. type: textblock
19721 #: ../src/guestfs-actions.pod:6997 ../fish/guestfish-actions.pod:4701
19722 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19723 msgstr ""
19724
19725 # type: textblock
19726 #. type: textblock
19727 #: ../src/guestfs-actions.pod:6999 ../fish/guestfish-actions.pod:4703
19728 msgid ""
19729 "This also forcibly removes all logical volumes in the volume group (if any)."
19730 msgstr ""
19731
19732 # type: =head2
19733 #. type: =head2
19734 #: ../src/guestfs-actions.pod:7006
19735 msgid "guestfs_vgrename"
19736 msgstr ""
19737
19738 # type: verbatim
19739 #. type: verbatim
19740 #: ../src/guestfs-actions.pod:7008
19741 #, no-wrap
19742 msgid ""
19743 " int\n"
19744 " guestfs_vgrename (guestfs_h *g,\n"
19745 "                   const char *volgroup,\n"
19746 "                   const char *newvolgroup);\n"
19747 "\n"
19748 msgstr ""
19749
19750 # type: textblock
19751 #. type: textblock
19752 #: ../src/guestfs-actions.pod:7013 ../fish/guestfish-actions.pod:4710
19753 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19754 msgstr ""
19755
19756 # type: =head2
19757 #. type: =head2
19758 #: ../src/guestfs-actions.pod:7019
19759 msgid "guestfs_vgs"
19760 msgstr ""
19761
19762 # type: verbatim
19763 #. type: verbatim
19764 #: ../src/guestfs-actions.pod:7021
19765 #, no-wrap
19766 msgid ""
19767 " char **\n"
19768 " guestfs_vgs (guestfs_h *g);\n"
19769 "\n"
19770 msgstr ""
19771
19772 # type: textblock
19773 #. type: textblock
19774 #: ../src/guestfs-actions.pod:7024 ../fish/guestfish-actions.pod:4716
19775 msgid ""
19776 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19777 "> command."
19778 msgstr ""
19779
19780 # type: textblock
19781 #. type: textblock
19782 #: ../src/guestfs-actions.pod:7027 ../fish/guestfish-actions.pod:4719
19783 msgid ""
19784 "This returns a list of just the volume group names that were detected (eg. "
19785 "C<VolGroup00>)."
19786 msgstr ""
19787
19788 # type: textblock
19789 #. type: textblock
19790 #: ../src/guestfs-actions.pod:7030
19791 msgid "See also C<guestfs_vgs_full>."
19792 msgstr ""
19793
19794 # type: =head2
19795 #. type: =head2
19796 #: ../src/guestfs-actions.pod:7038
19797 msgid "guestfs_vgs_full"
19798 msgstr ""
19799
19800 # type: verbatim
19801 #. type: verbatim
19802 #: ../src/guestfs-actions.pod:7040
19803 #, no-wrap
19804 msgid ""
19805 " struct guestfs_lvm_vg_list *\n"
19806 " guestfs_vgs_full (guestfs_h *g);\n"
19807 "\n"
19808 msgstr ""
19809
19810 # type: textblock
19811 #. type: textblock
19812 #: ../src/guestfs-actions.pod:7043 ../fish/guestfish-actions.pod:4728
19813 msgid ""
19814 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19815 "> command.  The \"full\" version includes all fields."
19816 msgstr ""
19817
19818 # type: textblock
19819 #. type: textblock
19820 #: ../src/guestfs-actions.pod:7046
19821 msgid ""
19822 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19823 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19824 msgstr ""
19825
19826 # type: =head2
19827 #. type: =head2
19828 #: ../src/guestfs-actions.pod:7052
19829 msgid "guestfs_vgscan"
19830 msgstr ""
19831
19832 # type: verbatim
19833 #. type: verbatim
19834 #: ../src/guestfs-actions.pod:7054
19835 #, no-wrap
19836 msgid ""
19837 " int\n"
19838 " guestfs_vgscan (guestfs_h *g);\n"
19839 "\n"
19840 msgstr ""
19841
19842 # type: textblock
19843 #. type: textblock
19844 #: ../src/guestfs-actions.pod:7057 ../fish/guestfish-actions.pod:4735
19845 msgid ""
19846 "This rescans all block devices and rebuilds the list of LVM physical "
19847 "volumes, volume groups and logical volumes."
19848 msgstr ""
19849
19850 # type: =head2
19851 #. type: =head2
19852 #: ../src/guestfs-actions.pod:7064
19853 msgid "guestfs_vguuid"
19854 msgstr ""
19855
19856 # type: verbatim
19857 #. type: verbatim
19858 #: ../src/guestfs-actions.pod:7066
19859 #, no-wrap
19860 msgid ""
19861 " char *\n"
19862 " guestfs_vguuid (guestfs_h *g,\n"
19863 "                 const char *vgname);\n"
19864 "\n"
19865 msgstr ""
19866
19867 # type: textblock
19868 #. type: textblock
19869 #: ../src/guestfs-actions.pod:7070 ../fish/guestfish-actions.pod:4742
19870 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19871 msgstr ""
19872
19873 # type: =head2
19874 #. type: =head2
19875 #: ../src/guestfs-actions.pod:7077
19876 msgid "guestfs_wait_ready"
19877 msgstr ""
19878
19879 # type: verbatim
19880 #. type: verbatim
19881 #: ../src/guestfs-actions.pod:7079
19882 #, no-wrap
19883 msgid ""
19884 " int\n"
19885 " guestfs_wait_ready (guestfs_h *g);\n"
19886 "\n"
19887 msgstr ""
19888
19889 # type: textblock
19890 #. type: textblock
19891 #: ../src/guestfs-actions.pod:7082
19892 msgid "This function is a no op."
19893 msgstr ""
19894
19895 # type: textblock
19896 #. type: textblock
19897 #: ../src/guestfs-actions.pod:7084
19898 msgid ""
19899 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19900 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19901 "is no longer necessary because C<guestfs_launch> now does the waiting."
19902 msgstr ""
19903
19904 # type: textblock
19905 #. type: textblock
19906 #: ../src/guestfs-actions.pod:7089
19907 msgid ""
19908 "If you see any calls to this function in code then you can just remove them, "
19909 "unless you want to retain compatibility with older versions of the API."
19910 msgstr ""
19911
19912 # type: =head2
19913 #. type: =head2
19914 #: ../src/guestfs-actions.pod:7097
19915 msgid "guestfs_wc_c"
19916 msgstr ""
19917
19918 # type: verbatim
19919 #. type: verbatim
19920 #: ../src/guestfs-actions.pod:7099
19921 #, no-wrap
19922 msgid ""
19923 " int\n"
19924 " guestfs_wc_c (guestfs_h *g,\n"
19925 "               const char *path);\n"
19926 "\n"
19927 msgstr ""
19928
19929 # type: textblock
19930 #. type: textblock
19931 #: ../src/guestfs-actions.pod:7103 ../fish/guestfish-actions.pod:4748
19932 msgid ""
19933 "This command counts the characters in a file, using the C<wc -c> external "
19934 "command."
19935 msgstr ""
19936
19937 # type: =head2
19938 #. type: =head2
19939 #: ../src/guestfs-actions.pod:7110
19940 msgid "guestfs_wc_l"
19941 msgstr ""
19942
19943 # type: verbatim
19944 #. type: verbatim
19945 #: ../src/guestfs-actions.pod:7112
19946 #, no-wrap
19947 msgid ""
19948 " int\n"
19949 " guestfs_wc_l (guestfs_h *g,\n"
19950 "               const char *path);\n"
19951 "\n"
19952 msgstr ""
19953
19954 # type: textblock
19955 #. type: textblock
19956 #: ../src/guestfs-actions.pod:7116 ../fish/guestfish-actions.pod:4755
19957 msgid ""
19958 "This command counts the lines in a file, using the C<wc -l> external command."
19959 msgstr ""
19960
19961 # type: =head2
19962 #. type: =head2
19963 #: ../src/guestfs-actions.pod:7123
19964 msgid "guestfs_wc_w"
19965 msgstr ""
19966
19967 # type: verbatim
19968 #. type: verbatim
19969 #: ../src/guestfs-actions.pod:7125
19970 #, no-wrap
19971 msgid ""
19972 " int\n"
19973 " guestfs_wc_w (guestfs_h *g,\n"
19974 "               const char *path);\n"
19975 "\n"
19976 msgstr ""
19977
19978 # type: textblock
19979 #. type: textblock
19980 #: ../src/guestfs-actions.pod:7129 ../fish/guestfish-actions.pod:4762
19981 msgid ""
19982 "This command counts the words in a file, using the C<wc -w> external command."
19983 msgstr ""
19984
19985 # type: =head2
19986 #. type: =head2
19987 #: ../src/guestfs-actions.pod:7136
19988 msgid "guestfs_write"
19989 msgstr ""
19990
19991 # type: verbatim
19992 #. type: verbatim
19993 #: ../src/guestfs-actions.pod:7138
19994 #, no-wrap
19995 msgid ""
19996 " int\n"
19997 " guestfs_write (guestfs_h *g,\n"
19998 "                const char *path,\n"
19999 "                const char *content,\n"
20000 "                size_t content_size);\n"
20001 "\n"
20002 msgstr ""
20003
20004 # type: textblock
20005 #. type: textblock
20006 #: ../src/guestfs-actions.pod:7144 ../fish/guestfish-actions.pod:4769
20007 msgid ""
20008 "This call creates a file called C<path>.  The content of the file is the "
20009 "string C<content> (which can contain any 8 bit data)."
20010 msgstr ""
20011
20012 # type: =head2
20013 #. type: =head2
20014 #: ../src/guestfs-actions.pod:7154
20015 msgid "guestfs_write_file"
20016 msgstr ""
20017
20018 # type: verbatim
20019 #. type: verbatim
20020 #: ../src/guestfs-actions.pod:7156
20021 #, no-wrap
20022 msgid ""
20023 " int\n"
20024 " guestfs_write_file (guestfs_h *g,\n"
20025 "                     const char *path,\n"
20026 "                     const char *content,\n"
20027 "                     int size);\n"
20028 "\n"
20029 msgstr ""
20030
20031 # type: textblock
20032 #. type: textblock
20033 #: ../src/guestfs-actions.pod:7162 ../fish/guestfish-actions.pod:4779
20034 msgid ""
20035 "This call creates a file called C<path>.  The contents of the file is the "
20036 "string C<content> (which can contain any 8 bit data), with length C<size>."
20037 msgstr ""
20038
20039 # type: textblock
20040 #. type: textblock
20041 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:4783
20042 msgid ""
20043 "As a special case, if C<size> is C<0> then the length is calculated using "
20044 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
20045 msgstr ""
20046
20047 # type: textblock
20048 #. type: textblock
20049 #: ../src/guestfs-actions.pod:7170 ../fish/guestfish-actions.pod:4787
20050 msgid ""
20051 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
20052 "I<not> work, even if the length is specified."
20053 msgstr ""
20054
20055 # type: textblock
20056 #. type: textblock
20057 #: ../src/guestfs-actions.pod:7178 ../fish/guestfish-actions.pod:4793
20058 msgid ""
20059 "This function is deprecated.  In new code, use the C<write> call instead."
20060 msgstr ""
20061
20062 # type: =head2
20063 #. type: =head2
20064 #: ../src/guestfs-actions.pod:7187
20065 msgid "guestfs_zegrep"
20066 msgstr ""
20067
20068 # type: verbatim
20069 #. type: verbatim
20070 #: ../src/guestfs-actions.pod:7189
20071 #, no-wrap
20072 msgid ""
20073 " char **\n"
20074 " guestfs_zegrep (guestfs_h *g,\n"
20075 "                 const char *regex,\n"
20076 "                 const char *path);\n"
20077 "\n"
20078 msgstr ""
20079
20080 # type: textblock
20081 #. type: textblock
20082 #: ../src/guestfs-actions.pod:7194 ../fish/guestfish-actions.pod:4804
20083 msgid ""
20084 "This calls the external C<zegrep> program and returns the matching lines."
20085 msgstr ""
20086
20087 # type: =head2
20088 #. type: =head2
20089 #: ../src/guestfs-actions.pod:7206
20090 msgid "guestfs_zegrepi"
20091 msgstr ""
20092
20093 # type: verbatim
20094 #. type: verbatim
20095 #: ../src/guestfs-actions.pod:7208
20096 #, no-wrap
20097 msgid ""
20098 " char **\n"
20099 " guestfs_zegrepi (guestfs_h *g,\n"
20100 "                  const char *regex,\n"
20101 "                  const char *path);\n"
20102 "\n"
20103 msgstr ""
20104
20105 # type: textblock
20106 #. type: textblock
20107 #: ../src/guestfs-actions.pod:7213 ../fish/guestfish-actions.pod:4814
20108 msgid ""
20109 "This calls the external C<zegrep -i> program and returns the matching lines."
20110 msgstr ""
20111
20112 # type: =head2
20113 #. type: =head2
20114 #: ../src/guestfs-actions.pod:7225
20115 msgid "guestfs_zero"
20116 msgstr ""
20117
20118 # type: verbatim
20119 #. type: verbatim
20120 #: ../src/guestfs-actions.pod:7227
20121 #, no-wrap
20122 msgid ""
20123 " int\n"
20124 " guestfs_zero (guestfs_h *g,\n"
20125 "               const char *device);\n"
20126 "\n"
20127 msgstr ""
20128
20129 # type: textblock
20130 #. type: textblock
20131 #: ../src/guestfs-actions.pod:7231 ../fish/guestfish-actions.pod:4824
20132 msgid "This command writes zeroes over the first few blocks of C<device>."
20133 msgstr ""
20134
20135 # type: textblock
20136 #. type: textblock
20137 #: ../src/guestfs-actions.pod:7233 ../fish/guestfish-actions.pod:4826
20138 msgid ""
20139 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
20140 "securely wipe the device).  It should be sufficient to remove any partition "
20141 "tables, filesystem superblocks and so on."
20142 msgstr ""
20143
20144 # type: textblock
20145 #. type: textblock
20146 #: ../src/guestfs-actions.pod:7237
20147 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
20148 msgstr ""
20149
20150 # type: =head2
20151 #. type: =head2
20152 #: ../src/guestfs-actions.pod:7248
20153 msgid "guestfs_zero_device"
20154 msgstr ""
20155
20156 # type: verbatim
20157 #. type: verbatim
20158 #: ../src/guestfs-actions.pod:7250
20159 #, no-wrap
20160 msgid ""
20161 " int\n"
20162 " guestfs_zero_device (guestfs_h *g,\n"
20163 "                      const char *device);\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: textblock
20168 #. type: textblock
20169 #: ../src/guestfs-actions.pod:7254
20170 msgid ""
20171 "This command writes zeroes over the entire C<device>.  Compare with "
20172 "C<guestfs_zero> which just zeroes the first few blocks of a device."
20173 msgstr ""
20174
20175 # type: textblock
20176 #. type: textblock
20177 #: ../src/guestfs-actions.pod:7268
20178 msgid "(Added in 1.3.1)"
20179 msgstr ""
20180
20181 # type: =head2
20182 #. type: =head2
20183 #: ../src/guestfs-actions.pod:7270
20184 msgid "guestfs_zerofree"
20185 msgstr ""
20186
20187 # type: verbatim
20188 #. type: verbatim
20189 #: ../src/guestfs-actions.pod:7272
20190 #, no-wrap
20191 msgid ""
20192 " int\n"
20193 " guestfs_zerofree (guestfs_h *g,\n"
20194 "                   const char *device);\n"
20195 "\n"
20196 msgstr ""
20197
20198 # type: textblock
20199 #. type: textblock
20200 #: ../src/guestfs-actions.pod:7276 ../fish/guestfish-actions.pod:4847
20201 msgid ""
20202 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
20203 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
20204 "possible to compress the filesystem more effectively."
20205 msgstr ""
20206
20207 # type: textblock
20208 #. type: textblock
20209 #: ../src/guestfs-actions.pod:7281 ../fish/guestfish-actions.pod:4852
20210 msgid "You should B<not> run this program if the filesystem is mounted."
20211 msgstr ""
20212
20213 # type: textblock
20214 #. type: textblock
20215 #: ../src/guestfs-actions.pod:7284 ../fish/guestfish-actions.pod:4855
20216 msgid ""
20217 "It is possible that using this program can damage the filesystem or data on "
20218 "the filesystem."
20219 msgstr ""
20220
20221 # type: =head2
20222 #. type: =head2
20223 #: ../src/guestfs-actions.pod:7291
20224 msgid "guestfs_zfgrep"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #. type: verbatim
20229 #: ../src/guestfs-actions.pod:7293
20230 #, no-wrap
20231 msgid ""
20232 " char **\n"
20233 " guestfs_zfgrep (guestfs_h *g,\n"
20234 "                 const char *pattern,\n"
20235 "                 const char *path);\n"
20236 "\n"
20237 msgstr ""
20238
20239 # type: textblock
20240 #. type: textblock
20241 #: ../src/guestfs-actions.pod:7298 ../fish/guestfish-actions.pod:4862
20242 msgid ""
20243 "This calls the external C<zfgrep> program and returns the matching lines."
20244 msgstr ""
20245
20246 # type: =head2
20247 #. type: =head2
20248 #: ../src/guestfs-actions.pod:7310
20249 msgid "guestfs_zfgrepi"
20250 msgstr ""
20251
20252 # type: verbatim
20253 #. type: verbatim
20254 #: ../src/guestfs-actions.pod:7312
20255 #, no-wrap
20256 msgid ""
20257 " char **\n"
20258 " guestfs_zfgrepi (guestfs_h *g,\n"
20259 "                  const char *pattern,\n"
20260 "                  const char *path);\n"
20261 "\n"
20262 msgstr ""
20263
20264 # type: textblock
20265 #. type: textblock
20266 #: ../src/guestfs-actions.pod:7317 ../fish/guestfish-actions.pod:4872
20267 msgid ""
20268 "This calls the external C<zfgrep -i> program and returns the matching lines."
20269 msgstr ""
20270
20271 # type: =head2
20272 #. type: =head2
20273 #: ../src/guestfs-actions.pod:7329
20274 msgid "guestfs_zfile"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #. type: verbatim
20279 #: ../src/guestfs-actions.pod:7331
20280 #, no-wrap
20281 msgid ""
20282 " char *\n"
20283 " guestfs_zfile (guestfs_h *g,\n"
20284 "                const char *meth,\n"
20285 "                const char *path);\n"
20286 "\n"
20287 msgstr ""
20288
20289 # type: textblock
20290 #. type: textblock
20291 #: ../src/guestfs-actions.pod:7336 ../fish/guestfish-actions.pod:4882
20292 msgid ""
20293 "This command runs C<file> after first decompressing C<path> using C<method>."
20294 msgstr ""
20295
20296 # type: textblock
20297 #. type: textblock
20298 #: ../src/guestfs-actions.pod:7339 ../fish/guestfish-actions.pod:4885
20299 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
20300 msgstr ""
20301
20302 # type: textblock
20303 #. type: textblock
20304 #: ../src/guestfs-actions.pod:7341
20305 msgid ""
20306 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
20307 "files."
20308 msgstr ""
20309
20310 # type: textblock
20311 #. type: textblock
20312 #: ../src/guestfs-actions.pod:7347 ../fish/guestfish-actions.pod:4890
20313 msgid ""
20314 "This function is deprecated.  In new code, use the C<file> call instead."
20315 msgstr ""
20316
20317 # type: =head2
20318 #. type: =head2
20319 #: ../src/guestfs-actions.pod:7356
20320 msgid "guestfs_zgrep"
20321 msgstr ""
20322
20323 # type: verbatim
20324 #. type: verbatim
20325 #: ../src/guestfs-actions.pod:7358
20326 #, no-wrap
20327 msgid ""
20328 " char **\n"
20329 " guestfs_zgrep (guestfs_h *g,\n"
20330 "                const char *regex,\n"
20331 "                const char *path);\n"
20332 "\n"
20333 msgstr ""
20334
20335 # type: textblock
20336 #. type: textblock
20337 #: ../src/guestfs-actions.pod:7363 ../fish/guestfish-actions.pod:4901
20338 msgid ""
20339 "This calls the external C<zgrep> program and returns the matching lines."
20340 msgstr ""
20341
20342 # type: =head2
20343 #. type: =head2
20344 #: ../src/guestfs-actions.pod:7375
20345 msgid "guestfs_zgrepi"
20346 msgstr ""
20347
20348 # type: verbatim
20349 #. type: verbatim
20350 #: ../src/guestfs-actions.pod:7377
20351 #, no-wrap
20352 msgid ""
20353 " char **\n"
20354 " guestfs_zgrepi (guestfs_h *g,\n"
20355 "                 const char *regex,\n"
20356 "                 const char *path);\n"
20357 "\n"
20358 msgstr ""
20359
20360 # type: textblock
20361 #. type: textblock
20362 #: ../src/guestfs-actions.pod:7382 ../fish/guestfish-actions.pod:4911
20363 msgid ""
20364 "This calls the external C<zgrep -i> program and returns the matching lines."
20365 msgstr ""
20366
20367 # type: =item
20368 #. type: =item
20369 #: ../src/guestfs-availability.pod:3
20370 msgid "B<augeas>"
20371 msgstr ""
20372
20373 # type: textblock
20374 #. type: textblock
20375 #: ../src/guestfs-availability.pod:5
20376 msgid ""
20377 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
20378 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
20379 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
20380 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
20381 "L</guestfs_aug_save> L</guestfs_aug_set>"
20382 msgstr ""
20383
20384 # type: =item
20385 #. type: =item
20386 #: ../src/guestfs-availability.pod:21
20387 msgid "B<inotify>"
20388 msgstr ""
20389
20390 # type: textblock
20391 #. type: textblock
20392 #: ../src/guestfs-availability.pod:23
20393 msgid ""
20394 "The following functions: L</guestfs_inotify_add_watch> L</"
20395 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
20396 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
20397 msgstr ""
20398
20399 # type: =item
20400 #. type: =item
20401 #: ../src/guestfs-availability.pod:31
20402 msgid "B<linuxfsuuid>"
20403 msgstr ""
20404
20405 # type: textblock
20406 #. type: textblock
20407 #: ../src/guestfs-availability.pod:33
20408 msgid ""
20409 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
20410 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
20411 msgstr ""
20412
20413 # type: =item
20414 #. type: =item
20415 #: ../src/guestfs-availability.pod:40
20416 msgid "B<linuxmodules>"
20417 msgstr ""
20418
20419 # type: textblock
20420 #. type: textblock
20421 #: ../src/guestfs-availability.pod:42
20422 msgid "The following functions: L</guestfs_modprobe>"
20423 msgstr ""
20424
20425 # type: =item
20426 #. type: =item
20427 #: ../src/guestfs-availability.pod:45
20428 msgid "B<linuxxattrs>"
20429 msgstr ""
20430
20431 # type: textblock
20432 #. type: textblock
20433 #: ../src/guestfs-availability.pod:47
20434 msgid ""
20435 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
20436 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
20437 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
20438 "guestfs_setxattr>"
20439 msgstr ""
20440
20441 # type: =item
20442 #. type: =item
20443 #: ../src/guestfs-availability.pod:58
20444 msgid "B<luks>"
20445 msgstr ""
20446
20447 # type: textblock
20448 #. type: textblock
20449 #: ../src/guestfs-availability.pod:60
20450 msgid ""
20451 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
20452 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
20453 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
20454 msgstr ""
20455
20456 # type: =item
20457 #. type: =item
20458 #: ../src/guestfs-availability.pod:69
20459 msgid "B<lvm2>"
20460 msgstr ""
20461
20462 # type: textblock
20463 #. type: textblock
20464 #: ../src/guestfs-availability.pod:71
20465 msgid ""
20466 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
20467 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
20468 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
20469 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
20470 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
20471 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
20472 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
20473 msgstr ""
20474
20475 # type: =item
20476 #. type: =item
20477 #: ../src/guestfs-availability.pod:94
20478 msgid "B<mknod>"
20479 msgstr ""
20480
20481 # type: textblock
20482 #. type: textblock
20483 #: ../src/guestfs-availability.pod:96
20484 msgid ""
20485 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
20486 "guestfs_mknod_b> L</guestfs_mknod_c>"
20487 msgstr ""
20488
20489 # type: =item
20490 #. type: =item
20491 #: ../src/guestfs-availability.pod:102
20492 msgid "B<ntfs3g>"
20493 msgstr ""
20494
20495 # type: textblock
20496 #. type: textblock
20497 #: ../src/guestfs-availability.pod:104
20498 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
20499 msgstr ""
20500
20501 # type: =item
20502 #. type: =item
20503 #: ../src/guestfs-availability.pod:107
20504 msgid "B<ntfsprogs>"
20505 msgstr ""
20506
20507 # type: textblock
20508 #. type: textblock
20509 #: ../src/guestfs-availability.pod:109
20510 msgid ""
20511 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
20512 msgstr ""
20513
20514 # type: =item
20515 #. type: =item
20516 #: ../src/guestfs-availability.pod:113
20517 msgid "B<realpath>"
20518 msgstr ""
20519
20520 # type: textblock
20521 #. type: textblock
20522 #: ../src/guestfs-availability.pod:115
20523 msgid "The following functions: L</guestfs_realpath>"
20524 msgstr ""
20525
20526 # type: =item
20527 #. type: =item
20528 #: ../src/guestfs-availability.pod:118
20529 msgid "B<scrub>"
20530 msgstr ""
20531
20532 # type: textblock
20533 #. type: textblock
20534 #: ../src/guestfs-availability.pod:120
20535 msgid ""
20536 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
20537 "guestfs_scrub_freespace>"
20538 msgstr ""
20539
20540 # type: =item
20541 #. type: =item
20542 #: ../src/guestfs-availability.pod:125
20543 msgid "B<selinux>"
20544 msgstr ""
20545
20546 # type: textblock
20547 #. type: textblock
20548 #: ../src/guestfs-availability.pod:127
20549 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
20550 msgstr ""
20551
20552 # type: =item
20553 #. type: =item
20554 #: ../src/guestfs-availability.pod:131
20555 msgid "B<xz>"
20556 msgstr ""
20557
20558 # type: textblock
20559 #. type: textblock
20560 #: ../src/guestfs-availability.pod:133
20561 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
20562 msgstr ""
20563
20564 # type: =item
20565 #. type: =item
20566 #: ../src/guestfs-availability.pod:137
20567 msgid "B<zerofree>"
20568 msgstr ""
20569
20570 # type: textblock
20571 #. type: textblock
20572 #: ../src/guestfs-availability.pod:139
20573 msgid "The following functions: L</guestfs_zerofree>"
20574 msgstr ""
20575
20576 # type: =head2
20577 #. type: =head2
20578 #: ../src/guestfs-structs.pod:1
20579 msgid "guestfs_int_bool"
20580 msgstr ""
20581
20582 # type: verbatim
20583 #. type: verbatim
20584 #: ../src/guestfs-structs.pod:3
20585 #, no-wrap
20586 msgid ""
20587 " struct guestfs_int_bool {\n"
20588 "   int32_t i;\n"
20589 "   int32_t b;\n"
20590 " };\n"
20591 " \n"
20592 msgstr ""
20593
20594 # type: verbatim
20595 #. type: verbatim
20596 #: ../src/guestfs-structs.pod:8
20597 #, no-wrap
20598 msgid ""
20599 " struct guestfs_int_bool_list {\n"
20600 "   uint32_t len; /* Number of elements in list. */\n"
20601 "   struct guestfs_int_bool *val; /* Elements. */\n"
20602 " };\n"
20603 " \n"
20604 msgstr ""
20605
20606 # type: verbatim
20607 #. type: verbatim
20608 #: ../src/guestfs-structs.pod:13
20609 #, no-wrap
20610 msgid ""
20611 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
20612 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
20613 "\n"
20614 msgstr ""
20615
20616 # type: =head2
20617 #. type: =head2
20618 #: ../src/guestfs-structs.pod:16
20619 msgid "guestfs_lvm_pv"
20620 msgstr ""
20621
20622 # type: verbatim
20623 #. type: verbatim
20624 #: ../src/guestfs-structs.pod:18
20625 #, no-wrap
20626 msgid ""
20627 " struct guestfs_lvm_pv {\n"
20628 "   char *pv_name;\n"
20629 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20630 "   char pv_uuid[32];\n"
20631 "   char *pv_fmt;\n"
20632 "   uint64_t pv_size;\n"
20633 "   uint64_t dev_size;\n"
20634 "   uint64_t pv_free;\n"
20635 "   uint64_t pv_used;\n"
20636 "   char *pv_attr;\n"
20637 "   int64_t pv_pe_count;\n"
20638 "   int64_t pv_pe_alloc_count;\n"
20639 "   char *pv_tags;\n"
20640 "   uint64_t pe_start;\n"
20641 "   int64_t pv_mda_count;\n"
20642 "   uint64_t pv_mda_free;\n"
20643 " };\n"
20644 " \n"
20645 msgstr ""
20646
20647 # type: verbatim
20648 #. type: verbatim
20649 #: ../src/guestfs-structs.pod:36
20650 #, no-wrap
20651 msgid ""
20652 " struct guestfs_lvm_pv_list {\n"
20653 "   uint32_t len; /* Number of elements in list. */\n"
20654 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20655 " };\n"
20656 " \n"
20657 msgstr ""
20658
20659 # type: verbatim
20660 #. type: verbatim
20661 #: ../src/guestfs-structs.pod:41
20662 #, no-wrap
20663 msgid ""
20664 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20665 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20666 "\n"
20667 msgstr ""
20668
20669 # type: =head2
20670 #. type: =head2
20671 #: ../src/guestfs-structs.pod:44
20672 msgid "guestfs_lvm_vg"
20673 msgstr ""
20674
20675 # type: verbatim
20676 #. type: verbatim
20677 #: ../src/guestfs-structs.pod:46
20678 #, no-wrap
20679 msgid ""
20680 " struct guestfs_lvm_vg {\n"
20681 "   char *vg_name;\n"
20682 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20683 "   char vg_uuid[32];\n"
20684 "   char *vg_fmt;\n"
20685 "   char *vg_attr;\n"
20686 "   uint64_t vg_size;\n"
20687 "   uint64_t vg_free;\n"
20688 "   char *vg_sysid;\n"
20689 "   uint64_t vg_extent_size;\n"
20690 "   int64_t vg_extent_count;\n"
20691 "   int64_t vg_free_count;\n"
20692 "   int64_t max_lv;\n"
20693 "   int64_t max_pv;\n"
20694 "   int64_t pv_count;\n"
20695 "   int64_t lv_count;\n"
20696 "   int64_t snap_count;\n"
20697 "   int64_t vg_seqno;\n"
20698 "   char *vg_tags;\n"
20699 "   int64_t vg_mda_count;\n"
20700 "   uint64_t vg_mda_free;\n"
20701 " };\n"
20702 " \n"
20703 msgstr ""
20704
20705 # type: verbatim
20706 #. type: verbatim
20707 #: ../src/guestfs-structs.pod:69
20708 #, no-wrap
20709 msgid ""
20710 " struct guestfs_lvm_vg_list {\n"
20711 "   uint32_t len; /* Number of elements in list. */\n"
20712 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20713 " };\n"
20714 " \n"
20715 msgstr ""
20716
20717 # type: verbatim
20718 #. type: verbatim
20719 #: ../src/guestfs-structs.pod:74
20720 #, no-wrap
20721 msgid ""
20722 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20723 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20724 "\n"
20725 msgstr ""
20726
20727 # type: =head2
20728 #. type: =head2
20729 #: ../src/guestfs-structs.pod:77
20730 msgid "guestfs_lvm_lv"
20731 msgstr ""
20732
20733 # type: verbatim
20734 #. type: verbatim
20735 #: ../src/guestfs-structs.pod:79
20736 #, no-wrap
20737 msgid ""
20738 " struct guestfs_lvm_lv {\n"
20739 "   char *lv_name;\n"
20740 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20741 "   char lv_uuid[32];\n"
20742 "   char *lv_attr;\n"
20743 "   int64_t lv_major;\n"
20744 "   int64_t lv_minor;\n"
20745 "   int64_t lv_kernel_major;\n"
20746 "   int64_t lv_kernel_minor;\n"
20747 "   uint64_t lv_size;\n"
20748 "   int64_t seg_count;\n"
20749 "   char *origin;\n"
20750 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20751 "   float snap_percent;\n"
20752 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20753 "   float copy_percent;\n"
20754 "   char *move_pv;\n"
20755 "   char *lv_tags;\n"
20756 "   char *mirror_log;\n"
20757 "   char *modules;\n"
20758 " };\n"
20759 " \n"
20760 msgstr ""
20761
20762 # type: verbatim
20763 #. type: verbatim
20764 #: ../src/guestfs-structs.pod:101
20765 #, no-wrap
20766 msgid ""
20767 " struct guestfs_lvm_lv_list {\n"
20768 "   uint32_t len; /* Number of elements in list. */\n"
20769 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20770 " };\n"
20771 " \n"
20772 msgstr ""
20773
20774 # type: verbatim
20775 #. type: verbatim
20776 #: ../src/guestfs-structs.pod:106
20777 #, no-wrap
20778 msgid ""
20779 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20780 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20781 "\n"
20782 msgstr ""
20783
20784 # type: verbatim
20785 #. type: verbatim
20786 #: ../src/guestfs-structs.pod:111
20787 #, no-wrap
20788 msgid ""
20789 " struct guestfs_stat {\n"
20790 "   int64_t dev;\n"
20791 "   int64_t ino;\n"
20792 "   int64_t mode;\n"
20793 "   int64_t nlink;\n"
20794 "   int64_t uid;\n"
20795 "   int64_t gid;\n"
20796 "   int64_t rdev;\n"
20797 "   int64_t size;\n"
20798 "   int64_t blksize;\n"
20799 "   int64_t blocks;\n"
20800 "   int64_t atime;\n"
20801 "   int64_t mtime;\n"
20802 "   int64_t ctime;\n"
20803 " };\n"
20804 " \n"
20805 msgstr ""
20806
20807 # type: verbatim
20808 #. type: verbatim
20809 #: ../src/guestfs-structs.pod:127
20810 #, no-wrap
20811 msgid ""
20812 " struct guestfs_stat_list {\n"
20813 "   uint32_t len; /* Number of elements in list. */\n"
20814 "   struct guestfs_stat *val; /* Elements. */\n"
20815 " };\n"
20816 " \n"
20817 msgstr ""
20818
20819 # type: verbatim
20820 #. type: verbatim
20821 #: ../src/guestfs-structs.pod:132
20822 #, no-wrap
20823 msgid ""
20824 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20825 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: verbatim
20830 #. type: verbatim
20831 #: ../src/guestfs-structs.pod:137
20832 #, no-wrap
20833 msgid ""
20834 " struct guestfs_statvfs {\n"
20835 "   int64_t bsize;\n"
20836 "   int64_t frsize;\n"
20837 "   int64_t blocks;\n"
20838 "   int64_t bfree;\n"
20839 "   int64_t bavail;\n"
20840 "   int64_t files;\n"
20841 "   int64_t ffree;\n"
20842 "   int64_t favail;\n"
20843 "   int64_t fsid;\n"
20844 "   int64_t flag;\n"
20845 "   int64_t namemax;\n"
20846 " };\n"
20847 " \n"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #. type: verbatim
20852 #: ../src/guestfs-structs.pod:151
20853 #, no-wrap
20854 msgid ""
20855 " struct guestfs_statvfs_list {\n"
20856 "   uint32_t len; /* Number of elements in list. */\n"
20857 "   struct guestfs_statvfs *val; /* Elements. */\n"
20858 " };\n"
20859 " \n"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #. type: verbatim
20864 #: ../src/guestfs-structs.pod:156
20865 #, no-wrap
20866 msgid ""
20867 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20868 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20869 "\n"
20870 msgstr ""
20871
20872 # type: =head2
20873 #. type: =head2
20874 #: ../src/guestfs-structs.pod:159
20875 msgid "guestfs_dirent"
20876 msgstr ""
20877
20878 # type: verbatim
20879 #. type: verbatim
20880 #: ../src/guestfs-structs.pod:161
20881 #, no-wrap
20882 msgid ""
20883 " struct guestfs_dirent {\n"
20884 "   int64_t ino;\n"
20885 "   char ftyp;\n"
20886 "   char *name;\n"
20887 " };\n"
20888 " \n"
20889 msgstr ""
20890
20891 # type: verbatim
20892 #. type: verbatim
20893 #: ../src/guestfs-structs.pod:167
20894 #, no-wrap
20895 msgid ""
20896 " struct guestfs_dirent_list {\n"
20897 "   uint32_t len; /* Number of elements in list. */\n"
20898 "   struct guestfs_dirent *val; /* Elements. */\n"
20899 " };\n"
20900 " \n"
20901 msgstr ""
20902
20903 # type: verbatim
20904 #. type: verbatim
20905 #: ../src/guestfs-structs.pod:172
20906 #, no-wrap
20907 msgid ""
20908 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20909 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20910 "\n"
20911 msgstr ""
20912
20913 # type: verbatim
20914 #. type: verbatim
20915 #: ../src/guestfs-structs.pod:177
20916 #, no-wrap
20917 msgid ""
20918 " struct guestfs_version {\n"
20919 "   int64_t major;\n"
20920 "   int64_t minor;\n"
20921 "   int64_t release;\n"
20922 "   char *extra;\n"
20923 " };\n"
20924 " \n"
20925 msgstr ""
20926
20927 # type: verbatim
20928 #. type: verbatim
20929 #: ../src/guestfs-structs.pod:184
20930 #, no-wrap
20931 msgid ""
20932 " struct guestfs_version_list {\n"
20933 "   uint32_t len; /* Number of elements in list. */\n"
20934 "   struct guestfs_version *val; /* Elements. */\n"
20935 " };\n"
20936 " \n"
20937 msgstr ""
20938
20939 # type: verbatim
20940 #. type: verbatim
20941 #: ../src/guestfs-structs.pod:189
20942 #, no-wrap
20943 msgid ""
20944 " void guestfs_free_version (struct guestfs_free_version *);\n"
20945 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20946 "\n"
20947 msgstr ""
20948
20949 # type: =head2
20950 #. type: =head2
20951 #: ../src/guestfs-structs.pod:192
20952 msgid "guestfs_xattr"
20953 msgstr ""
20954
20955 # type: verbatim
20956 #. type: verbatim
20957 #: ../src/guestfs-structs.pod:194
20958 #, no-wrap
20959 msgid ""
20960 " struct guestfs_xattr {\n"
20961 "   char *attrname;\n"
20962 "   /* The next two fields describe a byte array. */\n"
20963 "   uint32_t attrval_len;\n"
20964 "   char *attrval;\n"
20965 " };\n"
20966 " \n"
20967 msgstr ""
20968
20969 # type: verbatim
20970 #. type: verbatim
20971 #: ../src/guestfs-structs.pod:201
20972 #, no-wrap
20973 msgid ""
20974 " struct guestfs_xattr_list {\n"
20975 "   uint32_t len; /* Number of elements in list. */\n"
20976 "   struct guestfs_xattr *val; /* Elements. */\n"
20977 " };\n"
20978 " \n"
20979 msgstr ""
20980
20981 # type: verbatim
20982 #. type: verbatim
20983 #: ../src/guestfs-structs.pod:206
20984 #, no-wrap
20985 msgid ""
20986 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20987 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20988 "\n"
20989 msgstr ""
20990
20991 # type: =head2
20992 #. type: =head2
20993 #: ../src/guestfs-structs.pod:209
20994 msgid "guestfs_inotify_event"
20995 msgstr ""
20996
20997 # type: verbatim
20998 #. type: verbatim
20999 #: ../src/guestfs-structs.pod:211
21000 #, no-wrap
21001 msgid ""
21002 " struct guestfs_inotify_event {\n"
21003 "   int64_t in_wd;\n"
21004 "   uint32_t in_mask;\n"
21005 "   uint32_t in_cookie;\n"
21006 "   char *in_name;\n"
21007 " };\n"
21008 " \n"
21009 msgstr ""
21010
21011 # type: verbatim
21012 #. type: verbatim
21013 #: ../src/guestfs-structs.pod:218
21014 #, no-wrap
21015 msgid ""
21016 " struct guestfs_inotify_event_list {\n"
21017 "   uint32_t len; /* Number of elements in list. */\n"
21018 "   struct guestfs_inotify_event *val; /* Elements. */\n"
21019 " };\n"
21020 " \n"
21021 msgstr ""
21022
21023 # type: verbatim
21024 #. type: verbatim
21025 #: ../src/guestfs-structs.pod:223
21026 #, no-wrap
21027 msgid ""
21028 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
21029 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
21030 "\n"
21031 msgstr ""
21032
21033 # type: =head2
21034 #. type: =head2
21035 #: ../src/guestfs-structs.pod:226
21036 msgid "guestfs_partition"
21037 msgstr ""
21038
21039 # type: verbatim
21040 #. type: verbatim
21041 #: ../src/guestfs-structs.pod:228
21042 #, no-wrap
21043 msgid ""
21044 " struct guestfs_partition {\n"
21045 "   int32_t part_num;\n"
21046 "   uint64_t part_start;\n"
21047 "   uint64_t part_end;\n"
21048 "   uint64_t part_size;\n"
21049 " };\n"
21050 " \n"
21051 msgstr ""
21052
21053 # type: verbatim
21054 #. type: verbatim
21055 #: ../src/guestfs-structs.pod:235
21056 #, no-wrap
21057 msgid ""
21058 " struct guestfs_partition_list {\n"
21059 "   uint32_t len; /* Number of elements in list. */\n"
21060 "   struct guestfs_partition *val; /* Elements. */\n"
21061 " };\n"
21062 " \n"
21063 msgstr ""
21064
21065 # type: verbatim
21066 #. type: verbatim
21067 #: ../src/guestfs-structs.pod:240
21068 #, no-wrap
21069 msgid ""
21070 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
21071 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
21072 "\n"
21073 msgstr ""
21074
21075 # type: =head2
21076 #. type: =head2
21077 #: ../src/guestfs-structs.pod:243
21078 msgid "guestfs_application"
21079 msgstr ""
21080
21081 # type: verbatim
21082 #. type: verbatim
21083 #: ../src/guestfs-structs.pod:245
21084 #, no-wrap
21085 msgid ""
21086 " struct guestfs_application {\n"
21087 "   char *app_name;\n"
21088 "   char *app_display_name;\n"
21089 "   int32_t app_epoch;\n"
21090 "   char *app_version;\n"
21091 "   char *app_release;\n"
21092 "   char *app_install_path;\n"
21093 "   char *app_trans_path;\n"
21094 "   char *app_publisher;\n"
21095 "   char *app_url;\n"
21096 "   char *app_source_package;\n"
21097 "   char *app_summary;\n"
21098 "   char *app_description;\n"
21099 " };\n"
21100 " \n"
21101 msgstr ""
21102
21103 # type: verbatim
21104 #. type: verbatim
21105 #: ../src/guestfs-structs.pod:260
21106 #, no-wrap
21107 msgid ""
21108 " struct guestfs_application_list {\n"
21109 "   uint32_t len; /* Number of elements in list. */\n"
21110 "   struct guestfs_application *val; /* Elements. */\n"
21111 " };\n"
21112 " \n"
21113 msgstr ""
21114
21115 # type: verbatim
21116 #. type: verbatim
21117 #: ../src/guestfs-structs.pod:265
21118 #, no-wrap
21119 msgid ""
21120 " void guestfs_free_application (struct guestfs_free_application *);\n"
21121 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
21122 "\n"
21123 msgstr ""
21124
21125 # type: textblock
21126 #. type: textblock
21127 #: ../fish/guestfish.pod:5
21128 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
21129 msgstr ""
21130
21131 # type: verbatim
21132 #. type: verbatim
21133 #: ../fish/guestfish.pod:9
21134 #, no-wrap
21135 msgid ""
21136 " guestfish [--options] [commands]\n"
21137 "\n"
21138 msgstr ""
21139
21140 # type: verbatim
21141 #. type: verbatim
21142 #: ../fish/guestfish.pod:11
21143 #, no-wrap
21144 msgid ""
21145 " guestfish\n"
21146 "\n"
21147 msgstr ""
21148
21149 # type: verbatim
21150 #. type: verbatim
21151 #: ../fish/guestfish.pod:13
21152 #, no-wrap
21153 msgid ""
21154 " guestfish [--ro|--rw] -a disk.img\n"
21155 "\n"
21156 msgstr ""
21157
21158 # type: verbatim
21159 #. type: verbatim
21160 #: ../fish/guestfish.pod:15
21161 #, no-wrap
21162 msgid ""
21163 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
21164 "\n"
21165 msgstr ""
21166
21167 # type: verbatim
21168 #. type: verbatim
21169 #: ../fish/guestfish.pod:17
21170 #, no-wrap
21171 msgid ""
21172 " guestfish -d libvirt-domain\n"
21173 "\n"
21174 msgstr ""
21175
21176 # type: verbatim
21177 #. type: verbatim
21178 #: ../fish/guestfish.pod:19
21179 #, no-wrap
21180 msgid ""
21181 " guestfish [--ro|--rw] -a disk.img -i\n"
21182 "\n"
21183 msgstr ""
21184
21185 # type: verbatim
21186 #. type: verbatim
21187 #: ../fish/guestfish.pod:21
21188 #, no-wrap
21189 msgid ""
21190 " guestfish -d libvirt-domain -i\n"
21191 "\n"
21192 msgstr ""
21193
21194 # type: =head1
21195 #. type: =head1
21196 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
21197 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
21198 msgid "WARNING"
21199 msgstr ""
21200
21201 # type: textblock
21202 #. type: textblock
21203 #: ../fish/guestfish.pod:25
21204 msgid ""
21205 "Using guestfish in read/write mode on live virtual machines can be "
21206 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
21207 "option to use guestfish safely if the disk image or virtual machine might be "
21208 "live."
21209 msgstr ""
21210
21211 # type: textblock
21212 #. type: textblock
21213 #: ../fish/guestfish.pod:32
21214 msgid ""
21215 "Guestfish is a shell and command-line tool for examining and modifying "
21216 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
21217 "functionality of the guestfs API, see L<guestfs(3)>."
21218 msgstr ""
21219
21220 # type: textblock
21221 #. type: textblock
21222 #: ../fish/guestfish.pod:36
21223 msgid ""
21224 "Guestfish gives you structured access to the libguestfs API, from shell "
21225 "scripts or the command line or interactively.  If you want to rescue a "
21226 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
21227 "command."
21228 msgstr ""
21229
21230 # type: =head1
21231 #. type: =head1
21232 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:928
21233 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
21234 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
21235 msgid "EXAMPLES"
21236 msgstr ""
21237
21238 # type: =head2
21239 #. type: =head2
21240 #: ../fish/guestfish.pod:43
21241 msgid "As an interactive shell"
21242 msgstr ""
21243
21244 # type: verbatim
21245 #. type: verbatim
21246 #: ../fish/guestfish.pod:45
21247 #, no-wrap
21248 msgid ""
21249 " $ guestfish\n"
21250 " \n"
21251 msgstr ""
21252
21253 # type: verbatim
21254 #. type: verbatim
21255 #: ../fish/guestfish.pod:47
21256 #, no-wrap
21257 msgid ""
21258 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
21259 " editing virtual machine filesystems.\n"
21260 " \n"
21261 msgstr ""
21262
21263 # type: verbatim
21264 #. type: verbatim
21265 #: ../fish/guestfish.pod:50
21266 #, no-wrap
21267 msgid ""
21268 " Type: 'help' for a list of commands\n"
21269 "       'man' to read the manual\n"
21270 "       'quit' to quit the shell\n"
21271 " \n"
21272 msgstr ""
21273
21274 # type: verbatim
21275 #. type: verbatim
21276 #: ../fish/guestfish.pod:54
21277 #, no-wrap
21278 msgid ""
21279 " ><fs> add-ro disk.img\n"
21280 " ><fs> run\n"
21281 " ><fs> list-filesystems\n"
21282 " /dev/sda1: ext4\n"
21283 " /dev/vg_guest/lv_root: ext4\n"
21284 " /dev/vg_guest/lv_swap: swap\n"
21285 " ><fs> mount /dev/vg_guest/lv_root /\n"
21286 " ><fs> cat /etc/fstab\n"
21287 " # /etc/fstab\n"
21288 " # Created by anaconda\n"
21289 " [...]\n"
21290 " ><fs> exit\n"
21291 "\n"
21292 msgstr ""
21293
21294 # type: =head2
21295 #. type: =head2
21296 #: ../fish/guestfish.pod:67
21297 msgid "From shell scripts"
21298 msgstr ""
21299
21300 # type: textblock
21301 #. type: textblock
21302 #: ../fish/guestfish.pod:69
21303 msgid "Create a new C</etc/motd> file in a guest or disk image:"
21304 msgstr ""
21305
21306 # type: verbatim
21307 #. type: verbatim
21308 #: ../fish/guestfish.pod:71
21309 #, no-wrap
21310 msgid ""
21311 " guestfish <<_EOF_\n"
21312 " add disk.img\n"
21313 " run\n"
21314 " mount /dev/vg_guest/lv_root /\n"
21315 " write /etc/motd \"Welcome, new users\"\n"
21316 " _EOF_\n"
21317 "\n"
21318 msgstr ""
21319
21320 # type: textblock
21321 #. type: textblock
21322 #: ../fish/guestfish.pod:78
21323 msgid "List the LVM logical volumes in a disk image:"
21324 msgstr ""
21325
21326 # type: verbatim
21327 #. type: verbatim
21328 #: ../fish/guestfish.pod:80
21329 #, no-wrap
21330 msgid ""
21331 " guestfish -a disk.img --ro <<_EOF_\n"
21332 " run\n"
21333 " lvs\n"
21334 " _EOF_\n"
21335 "\n"
21336 msgstr ""
21337
21338 # type: textblock
21339 #. type: textblock
21340 #: ../fish/guestfish.pod:85
21341 msgid "List all the filesystems in a disk image:"
21342 msgstr ""
21343
21344 # type: verbatim
21345 #. type: verbatim
21346 #: ../fish/guestfish.pod:87
21347 #, no-wrap
21348 msgid ""
21349 " guestfish -a disk.img --ro <<_EOF_\n"
21350 " run\n"
21351 " list-filesystems\n"
21352 " _EOF_\n"
21353 "\n"
21354 msgstr ""
21355
21356 # type: =head2
21357 #. type: =head2
21358 #: ../fish/guestfish.pod:92
21359 msgid "On one command line"
21360 msgstr ""
21361
21362 # type: textblock
21363 #. type: textblock
21364 #: ../fish/guestfish.pod:94
21365 msgid "Update C</etc/resolv.conf> in a guest:"
21366 msgstr ""
21367
21368 # type: verbatim
21369 #. type: verbatim
21370 #: ../fish/guestfish.pod:96
21371 #, no-wrap
21372 msgid ""
21373 " guestfish \\\n"
21374 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
21375 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
21376 "\n"
21377 msgstr ""
21378
21379 # type: textblock
21380 #. type: textblock
21381 #: ../fish/guestfish.pod:100
21382 msgid "Edit C</boot/grub/grub.conf> interactively:"
21383 msgstr ""
21384
21385 # type: verbatim
21386 #. type: verbatim
21387 #: ../fish/guestfish.pod:102
21388 #, no-wrap
21389 msgid ""
21390 " guestfish --rw --add disk.img \\\n"
21391 "   --mount /dev/vg_guest/lv_root \\\n"
21392 "   --mount /dev/sda1:/boot \\\n"
21393 "   edit /boot/grub/grub.conf\n"
21394 "\n"
21395 msgstr ""
21396
21397 # type: =head2
21398 #. type: =head2
21399 #: ../fish/guestfish.pod:107
21400 msgid "Mount disks automatically"
21401 msgstr ""
21402
21403 # type: textblock
21404 #. type: textblock
21405 #: ../fish/guestfish.pod:109
21406 msgid ""
21407 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
21408 msgstr ""
21409
21410 # type: verbatim
21411 #. type: verbatim
21412 #: ../fish/guestfish.pod:112
21413 #, no-wrap
21414 msgid ""
21415 " guestfish --ro -a disk.img -i cat /etc/group\n"
21416 "\n"
21417 msgstr ""
21418
21419 # type: verbatim
21420 #. type: verbatim
21421 #: ../fish/guestfish.pod:114
21422 #, no-wrap
21423 msgid ""
21424 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
21425 "\n"
21426 msgstr ""
21427
21428 # type: textblock
21429 #. type: textblock
21430 #: ../fish/guestfish.pod:116
21431 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
21432 msgstr ""
21433
21434 # type: verbatim
21435 #. type: verbatim
21436 #: ../fish/guestfish.pod:118
21437 #, no-wrap
21438 msgid ""
21439 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
21440 "\n"
21441 msgstr ""
21442
21443 # type: =head2
21444 #. type: =head2
21445 #: ../fish/guestfish.pod:120
21446 msgid "As a script interpreter"
21447 msgstr ""
21448
21449 # type: textblock
21450 #. type: textblock
21451 #: ../fish/guestfish.pod:122
21452 msgid "Create a 100MB disk containing an ext2-formatted partition:"
21453 msgstr ""
21454
21455 # type: verbatim
21456 #. type: verbatim
21457 #: ../fish/guestfish.pod:124
21458 #, no-wrap
21459 msgid ""
21460 " #!/usr/bin/guestfish -f\n"
21461 " sparse test1.img 100M\n"
21462 " run\n"
21463 " part-disk /dev/sda mbr\n"
21464 " mkfs ext2 /dev/sda1\n"
21465 "\n"
21466 msgstr ""
21467
21468 # type: =head2
21469 #. type: =head2
21470 #: ../fish/guestfish.pod:130
21471 msgid "Start with a prepared disk"
21472 msgstr ""
21473
21474 # type: textblock
21475 #. type: textblock
21476 #: ../fish/guestfish.pod:132
21477 msgid ""
21478 "An alternate way to create a 100MB disk called C<test1.img> containing a "
21479 "single ext2-formatted partition:"
21480 msgstr ""
21481
21482 # type: verbatim
21483 #. type: verbatim
21484 #: ../fish/guestfish.pod:135
21485 #, no-wrap
21486 msgid ""
21487 " guestfish -N fs\n"
21488 "\n"
21489 msgstr ""
21490
21491 # type: textblock
21492 #. type: textblock
21493 #: ../fish/guestfish.pod:137
21494 msgid "To list what is available do:"
21495 msgstr ""
21496
21497 # type: verbatim
21498 #. type: verbatim
21499 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:919
21500 #, no-wrap
21501 msgid ""
21502 " guestfish -N help | less\n"
21503 "\n"
21504 msgstr ""
21505
21506 # type: =head2
21507 #. type: =head2
21508 #: ../fish/guestfish.pod:141
21509 msgid "Remote control"
21510 msgstr ""
21511
21512 # type: verbatim
21513 #. type: verbatim
21514 #: ../fish/guestfish.pod:143
21515 #, no-wrap
21516 msgid ""
21517 " eval \"`guestfish --listen`\"\n"
21518 " guestfish --remote add-ro disk.img\n"
21519 " guestfish --remote run\n"
21520 " guestfish --remote lvs\n"
21521 "\n"
21522 msgstr ""
21523
21524 # type: =head1
21525 #. type: =head1
21526 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
21527 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
21528 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
21529 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
21530 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
21531 msgid "OPTIONS"
21532 msgstr ""
21533
21534 # type: =item
21535 #. type: =item
21536 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
21537 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
21538 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
21539 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
21540 #: ../tools/virt-list-partitions.pl:62
21541 msgid "B<--help>"
21542 msgstr ""
21543
21544 # type: textblock
21545 #. type: textblock
21546 #: ../fish/guestfish.pod:154
21547 msgid "Displays general help on options."
21548 msgstr ""
21549
21550 # type: =item
21551 #. type: =item
21552 #: ../fish/guestfish.pod:156
21553 msgid "B<-h>"
21554 msgstr ""
21555
21556 # type: =item
21557 #. type: =item
21558 #: ../fish/guestfish.pod:158
21559 msgid "B<--cmd-help>"
21560 msgstr ""
21561
21562 # type: textblock
21563 #. type: textblock
21564 #: ../fish/guestfish.pod:160
21565 msgid "Lists all available guestfish commands."
21566 msgstr ""
21567
21568 # type: =item
21569 #. type: =item
21570 #: ../fish/guestfish.pod:162
21571 msgid "B<-h cmd>"
21572 msgstr ""
21573
21574 # type: =item
21575 #. type: =item
21576 #: ../fish/guestfish.pod:164
21577 msgid "B<--cmd-help cmd>"
21578 msgstr ""
21579
21580 # type: textblock
21581 #. type: textblock
21582 #: ../fish/guestfish.pod:166
21583 msgid "Displays detailed help on a single command C<cmd>."
21584 msgstr ""
21585
21586 # type: =item
21587 #. type: =item
21588 #: ../fish/guestfish.pod:168
21589 msgid "B<-a image>"
21590 msgstr ""
21591
21592 # type: =item
21593 #. type: =item
21594 #: ../fish/guestfish.pod:170
21595 msgid "B<--add image>"
21596 msgstr ""
21597
21598 # type: textblock
21599 #. type: textblock
21600 #: ../fish/guestfish.pod:172
21601 msgid "Add a block device or virtual machine image to the shell."
21602 msgstr ""
21603
21604 # type: textblock
21605 #. type: textblock
21606 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
21607 msgid ""
21608 "The format of the disk image is auto-detected.  To override this and force a "
21609 "particular format use the I<--format=..> option."
21610 msgstr ""
21611
21612 # type: textblock
21613 #. type: textblock
21614 #: ../fish/guestfish.pod:177
21615 msgid ""
21616 "Using this flag is mostly equivalent to using the C<add> command, with "
21617 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
21618 "the I<--format:...> flag was given."
21619 msgstr ""
21620
21621 # type: =item
21622 #. type: =item
21623 #: ../fish/guestfish.pod:181
21624 msgid "B<-c URI>"
21625 msgstr ""
21626
21627 # type: =item
21628 #. type: =item
21629 #: ../fish/guestfish.pod:183
21630 msgid "B<--connect URI>"
21631 msgstr ""
21632
21633 # type: textblock
21634 #. type: textblock
21635 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21636 msgid ""
21637 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21638 "URI to use.  The default is to use the default libvirt connection."
21639 msgstr ""
21640
21641 # type: =item
21642 #. type: =item
21643 #: ../fish/guestfish.pod:189
21644 msgid "B<--csh>"
21645 msgstr ""
21646
21647 # type: textblock
21648 #. type: textblock
21649 #: ../fish/guestfish.pod:191
21650 msgid ""
21651 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21652 "section L</REMOTE CONTROL AND CSH> below."
21653 msgstr ""
21654
21655 # type: =item
21656 #. type: =item
21657 #: ../fish/guestfish.pod:194
21658 msgid "B<-d libvirt-domain>"
21659 msgstr ""
21660
21661 # type: =item
21662 #. type: =item
21663 #: ../fish/guestfish.pod:196
21664 msgid "B<--domain libvirt-domain>"
21665 msgstr ""
21666
21667 # type: textblock
21668 #. type: textblock
21669 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21670 msgid ""
21671 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21672 "used, then any libvirt domain can be used.  However in write mode, only "
21673 "libvirt domains which are shut down can be named here."
21674 msgstr ""
21675
21676 # type: textblock
21677 #. type: textblock
21678 #: ../fish/guestfish.pod:202
21679 msgid ""
21680 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21681 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21682 "if the I<--format:...> flag was given."
21683 msgstr ""
21684
21685 # type: =item
21686 #. type: =item
21687 #: ../fish/guestfish.pod:206
21688 msgid "B<-D>"
21689 msgstr ""
21690
21691 # type: =item
21692 #. type: =item
21693 #: ../fish/guestfish.pod:208
21694 msgid "B<--no-dest-paths>"
21695 msgstr ""
21696
21697 # type: textblock
21698 #. type: textblock
21699 #: ../fish/guestfish.pod:210
21700 msgid ""
21701 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21702 "to hit the tab key to complete paths on the guest filesystem, but this "
21703 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21704 "allow this feature to be disabled."
21705 msgstr ""
21706
21707 # type: =item
21708 #. type: =item
21709 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21710 msgid "B<--echo-keys>"
21711 msgstr ""
21712
21713 # type: textblock
21714 #. type: textblock
21715 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21716 msgid ""
21717 "When prompting for keys and passphrases, guestfish normally turns echoing "
21718 "off so you cannot see what you are typing.  If you are not worried about "
21719 "Tempest attacks and there is no one else in the room you can specify this "
21720 "flag to see what you are typing."
21721 msgstr ""
21722
21723 # type: =item
21724 #. type: =item
21725 #: ../fish/guestfish.pod:222
21726 msgid "B<-f file>"
21727 msgstr ""
21728
21729 # type: =item
21730 #. type: =item
21731 #: ../fish/guestfish.pod:224
21732 msgid "B<--file file>"
21733 msgstr ""
21734
21735 # type: textblock
21736 #. type: textblock
21737 #: ../fish/guestfish.pod:226
21738 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21739 msgstr ""
21740
21741 # type: verbatim
21742 #. type: verbatim
21743 #: ../fish/guestfish.pod:229
21744 #, no-wrap
21745 msgid ""
21746 " #!/usr/bin/guestfish -f\n"
21747 "\n"
21748 msgstr ""
21749
21750 # type: =item
21751 #. type: =item
21752 #: ../fish/guestfish.pod:231
21753 msgid "B<--format=raw|qcow2|..>"
21754 msgstr ""
21755
21756 # type: =item
21757 #. type: =item
21758 #: ../fish/guestfish.pod:233
21759 msgid "B<--format>"
21760 msgstr ""
21761
21762 # type: textblock
21763 #. type: textblock
21764 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21765 msgid ""
21766 "The default for the I<-a> option is to auto-detect the format of the disk "
21767 "image.  Using this forces the disk format for I<-a> options which follow on "
21768 "the command line.  Using I<--format> with no argument switches back to auto-"
21769 "detection for subsequent I<-a> options."
21770 msgstr ""
21771
21772 # type: verbatim
21773 #. type: verbatim
21774 #: ../fish/guestfish.pod:242
21775 #, no-wrap
21776 msgid ""
21777 " guestfish --format=raw -a disk.img\n"
21778 "\n"
21779 msgstr ""
21780
21781 # type: textblock
21782 #. type: textblock
21783 #: ../fish/guestfish.pod:244
21784 msgid "forces raw format (no auto-detection) for C<disk.img>."
21785 msgstr ""
21786
21787 # type: verbatim
21788 #. type: verbatim
21789 #: ../fish/guestfish.pod:246
21790 #, no-wrap
21791 msgid ""
21792 " guestfish --format=raw -a disk.img --format -a another.img\n"
21793 "\n"
21794 msgstr ""
21795
21796 # type: textblock
21797 #. type: textblock
21798 #: ../fish/guestfish.pod:248
21799 msgid ""
21800 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21801 "detection for C<another.img>."
21802 msgstr ""
21803
21804 # type: textblock
21805 #. type: textblock
21806 #: ../fish/guestfish.pod:251
21807 msgid ""
21808 "If you have untrusted raw-format guest disk images, you should use this "
21809 "option to specify the disk format.  This avoids a possible security problem "
21810 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21811 msgstr ""
21812
21813 # type: =item
21814 #. type: =item
21815 #: ../fish/guestfish.pod:256
21816 msgid "B<-i>"
21817 msgstr ""
21818
21819 # type: =item
21820 #. type: =item
21821 #: ../fish/guestfish.pod:258
21822 msgid "B<--inspector>"
21823 msgstr ""
21824
21825 # type: textblock
21826 #. type: textblock
21827 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21828 msgid ""
21829 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21830 "system and mount filesystems as they would be mounted on the real virtual "
21831 "machine."
21832 msgstr ""
21833
21834 # type: textblock
21835 #. type: textblock
21836 #: ../fish/guestfish.pod:264
21837 msgid "Typical usage is either:"
21838 msgstr ""
21839
21840 # type: verbatim
21841 #. type: verbatim
21842 #: ../fish/guestfish.pod:266
21843 #, no-wrap
21844 msgid ""
21845 " guestfish -d myguest -i\n"
21846 "\n"
21847 msgstr ""
21848
21849 # type: textblock
21850 #. type: textblock
21851 #: ../fish/guestfish.pod:268
21852 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21853 msgstr ""
21854
21855 # type: verbatim
21856 #. type: verbatim
21857 #: ../fish/guestfish.pod:270
21858 #, no-wrap
21859 msgid ""
21860 " guestfish --ro -d myguest -i\n"
21861 "\n"
21862 msgstr ""
21863
21864 # type: textblock
21865 #. type: textblock
21866 #: ../fish/guestfish.pod:272
21867 msgid "(for active domains, readonly), or specify the block device directly:"
21868 msgstr ""
21869
21870 # type: verbatim
21871 #. type: verbatim
21872 #: ../fish/guestfish.pod:274
21873 #, no-wrap
21874 msgid ""
21875 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21876 "\n"
21877 msgstr ""
21878
21879 # type: textblock
21880 #. type: textblock
21881 #: ../fish/guestfish.pod:276
21882 msgid ""
21883 "Note that the command line syntax changed slightly over older versions of "
21884 "guestfish.  You can still use the old syntax:"
21885 msgstr ""
21886
21887 # type: verbatim
21888 #. type: verbatim
21889 #: ../fish/guestfish.pod:279
21890 #, no-wrap
21891 msgid ""
21892 " guestfish [--ro] -i disk.img\n"
21893 "\n"
21894 msgstr ""
21895
21896 # type: verbatim
21897 #. type: verbatim
21898 #: ../fish/guestfish.pod:281
21899 #, no-wrap
21900 msgid ""
21901 " guestfish [--ro] -i libvirt-domain\n"
21902 "\n"
21903 msgstr ""
21904
21905 # type: textblock
21906 #. type: textblock
21907 #: ../fish/guestfish.pod:283
21908 msgid ""
21909 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21910 "then using other commands to mount the filesystems that were found."
21911 msgstr ""
21912
21913 # type: =item
21914 #. type: =item
21915 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21916 msgid "B<--keys-from-stdin>"
21917 msgstr ""
21918
21919 # type: textblock
21920 #. type: textblock
21921 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21922 msgid ""
21923 "Read key or passphrase parameters from stdin.  The default is to try to read "
21924 "passphrases from the user by opening C</dev/tty>."
21925 msgstr ""
21926
21927 # type: =item
21928 #. type: =item
21929 #: ../fish/guestfish.pod:292
21930 msgid "B<--listen>"
21931 msgstr ""
21932
21933 # type: textblock
21934 #. type: textblock
21935 #: ../fish/guestfish.pod:294
21936 msgid ""
21937 "Fork into the background and listen for remote commands.  See section L</"
21938 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21939 msgstr ""
21940
21941 #. type: =item
21942 #: ../fish/guestfish.pod:297 ../fuse/guestmount.pod:146
21943 msgid "B<--live>"
21944 msgstr ""
21945
21946 #. type: textblock
21947 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:148
21948 msgid ""
21949 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
21950 "ATTACHING TO RUNNING DAEMONS>)."
21951 msgstr ""
21952
21953 # type: =item
21954 #. type: =item
21955 #: ../fish/guestfish.pod:302
21956 msgid "B<-m dev[:mountpoint]>"
21957 msgstr ""
21958
21959 # type: =item
21960 #. type: =item
21961 #: ../fish/guestfish.pod:304
21962 msgid "B<--mount dev[:mountpoint]>"
21963 msgstr ""
21964
21965 # type: textblock
21966 #. type: textblock
21967 #: ../fish/guestfish.pod:306
21968 msgid "Mount the named partition or logical volume on the given mountpoint."
21969 msgstr ""
21970
21971 # type: textblock
21972 #. type: textblock
21973 #: ../fish/guestfish.pod:308
21974 msgid "If the mountpoint is omitted, it defaults to C</>."
21975 msgstr ""
21976
21977 # type: textblock
21978 #. type: textblock
21979 #: ../fish/guestfish.pod:310
21980 msgid "You have to mount something on C</> before most commands will work."
21981 msgstr ""
21982
21983 # type: textblock
21984 #. type: textblock
21985 #: ../fish/guestfish.pod:312
21986 msgid ""
21987 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21988 "launched."
21989 msgstr ""
21990
21991 # type: textblock
21992 #. type: textblock
21993 #: ../fish/guestfish.pod:315
21994 msgid ""
21995 "If you don't know what filesystems a disk image contains, you can either run "
21996 "guestfish without this option, then list the partitions, filesystems and LVs "
21997 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21998 "commands), or you can use the L<virt-filesystems(1)> program."
21999 msgstr ""
22000
22001 # type: textblock
22002 #. type: textblock
22003 #: ../fish/guestfish.pod:321
22004 msgid ""
22005 "Using this flag is mostly equivalent to using the C<mount-options> command "
22006 "or the C<mount-ro> command if the I<--ro> flag was given."
22007 msgstr ""
22008
22009 # type: =item
22010 #. type: =item
22011 #: ../fish/guestfish.pod:324
22012 msgid "B<-n>"
22013 msgstr ""
22014
22015 # type: =item
22016 #. type: =item
22017 #: ../fish/guestfish.pod:326
22018 msgid "B<--no-sync>"
22019 msgstr ""
22020
22021 # type: textblock
22022 #. type: textblock
22023 #: ../fish/guestfish.pod:328
22024 msgid ""
22025 "Disable autosync.  This is enabled by default.  See the discussion of "
22026 "autosync in the L<guestfs(3)> manpage."
22027 msgstr ""
22028
22029 # type: =item
22030 #. type: =item
22031 #: ../fish/guestfish.pod:331
22032 msgid "B<-N type>"
22033 msgstr ""
22034
22035 # type: =item
22036 #. type: =item
22037 #: ../fish/guestfish.pod:333
22038 msgid "B<--new type>"
22039 msgstr ""
22040
22041 # type: =item
22042 #. type: =item
22043 #: ../fish/guestfish.pod:335
22044 msgid "B<-N help>"
22045 msgstr ""
22046
22047 # type: textblock
22048 #. type: textblock
22049 #: ../fish/guestfish.pod:337
22050 msgid ""
22051 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
22052 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
22053 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
22054 "IMAGES> below."
22055 msgstr ""
22056
22057 # type: =item
22058 #. type: =item
22059 #: ../fish/guestfish.pod:342
22060 msgid "B<--progress-bars>"
22061 msgstr ""
22062
22063 # type: textblock
22064 #. type: textblock
22065 #: ../fish/guestfish.pod:344
22066 msgid "Enable progress bars, even when guestfish is used non-interactively."
22067 msgstr ""
22068
22069 # type: textblock
22070 #. type: textblock
22071 #: ../fish/guestfish.pod:346
22072 msgid ""
22073 "Progress bars are enabled by default when guestfish is used as an "
22074 "interactive shell."
22075 msgstr ""
22076
22077 # type: =item
22078 #. type: =item
22079 #: ../fish/guestfish.pod:349
22080 msgid "B<--no-progress-bars>"
22081 msgstr ""
22082
22083 # type: textblock
22084 #. type: textblock
22085 #: ../fish/guestfish.pod:351
22086 msgid "Disable progress bars."
22087 msgstr ""
22088
22089 # type: =item
22090 #. type: =item
22091 #: ../fish/guestfish.pod:353
22092 msgid "B<--remote[=pid]>"
22093 msgstr ""
22094
22095 # type: textblock
22096 #. type: textblock
22097 #: ../fish/guestfish.pod:355
22098 msgid ""
22099 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
22100 "CONTROL GUESTFISH OVER A SOCKET> below."
22101 msgstr ""
22102
22103 # type: =item
22104 #. type: =item
22105 #: ../fish/guestfish.pod:358
22106 msgid "B<-r>"
22107 msgstr ""
22108
22109 # type: =item
22110 #. type: =item
22111 #: ../fish/guestfish.pod:360
22112 msgid "B<--ro>"
22113 msgstr ""
22114
22115 # type: textblock
22116 #. type: textblock
22117 #: ../fish/guestfish.pod:362
22118 msgid ""
22119 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
22120 "mounts are done read-only."
22121 msgstr ""
22122
22123 # type: textblock
22124 #. type: textblock
22125 #: ../fish/guestfish.pod:365
22126 msgid ""
22127 "The option must always be used if the disk image or virtual machine might be "
22128 "running, and is generally recommended in cases where you don't need write "
22129 "access to the disk."
22130 msgstr ""
22131
22132 # type: textblock
22133 #. type: textblock
22134 #: ../fish/guestfish.pod:369
22135 msgid ""
22136 "Note that prepared disk images created with I<-N> are not affected by this "
22137 "option.  Also commands like C<add> are not affected - you have to specify "
22138 "the C<readonly:true> option explicitly if you need it."
22139 msgstr ""
22140
22141 # type: textblock
22142 #. type: textblock
22143 #: ../fish/guestfish.pod:373
22144 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
22145 msgstr ""
22146
22147 # type: =item
22148 #. type: =item
22149 #: ../fish/guestfish.pod:375 ../fuse/guestmount.pod:213
22150 msgid "B<--selinux>"
22151 msgstr ""
22152
22153 # type: textblock
22154 #. type: textblock
22155 #: ../fish/guestfish.pod:377
22156 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
22157 msgstr ""
22158
22159 # type: =item
22160 #. type: =item
22161 #: ../fish/guestfish.pod:379
22162 msgid "B<-v>"
22163 msgstr ""
22164
22165 # type: =item
22166 #. type: =item
22167 #: ../fish/guestfish.pod:381
22168 msgid "B<--verbose>"
22169 msgstr ""
22170
22171 # type: textblock
22172 #. type: textblock
22173 #: ../fish/guestfish.pod:383
22174 msgid ""
22175 "Enable very verbose messages.  This is particularly useful if you find a bug."
22176 msgstr ""
22177
22178 # type: =item
22179 #. type: =item
22180 #: ../fish/guestfish.pod:386
22181 msgid "B<-V>"
22182 msgstr ""
22183
22184 # type: =item
22185 #. type: =item
22186 #: ../fish/guestfish.pod:388 ../tools/virt-edit.pl:88
22187 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
22188 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
22189 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
22190 msgid "B<--version>"
22191 msgstr ""
22192
22193 # type: textblock
22194 #. type: textblock
22195 #: ../fish/guestfish.pod:390
22196 msgid "Display the guestfish / libguestfs version number and exit."
22197 msgstr ""
22198
22199 # type: =item
22200 #. type: =item
22201 #: ../fish/guestfish.pod:392
22202 msgid "B<-w>"
22203 msgstr ""
22204
22205 # type: =item
22206 #. type: =item
22207 #: ../fish/guestfish.pod:394
22208 msgid "B<--rw>"
22209 msgstr ""
22210
22211 # type: textblock
22212 #. type: textblock
22213 #: ../fish/guestfish.pod:396
22214 msgid ""
22215 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
22216 "WRITE> below."
22217 msgstr ""
22218
22219 # type: =item
22220 #. type: =item
22221 #: ../fish/guestfish.pod:399
22222 msgid "B<-x>"
22223 msgstr ""
22224
22225 # type: textblock
22226 #. type: textblock
22227 #: ../fish/guestfish.pod:401
22228 msgid "Echo each command before executing it."
22229 msgstr ""
22230
22231 # type: =head1
22232 #. type: =head1
22233 #: ../fish/guestfish.pod:405
22234 msgid "COMMANDS ON COMMAND LINE"
22235 msgstr ""
22236
22237 # type: textblock
22238 #. type: textblock
22239 #: ../fish/guestfish.pod:407
22240 msgid ""
22241 "Any additional (non-option) arguments are treated as commands to execute."
22242 msgstr ""
22243
22244 # type: textblock
22245 #. type: textblock
22246 #: ../fish/guestfish.pod:410
22247 msgid ""
22248 "Commands to execute should be separated by a colon (C<:>), where the colon "
22249 "is a separate parameter.  Thus:"
22250 msgstr ""
22251
22252 # type: verbatim
22253 #. type: verbatim
22254 #: ../fish/guestfish.pod:413
22255 #, no-wrap
22256 msgid ""
22257 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
22258 "\n"
22259 msgstr ""
22260
22261 # type: textblock
22262 #. type: textblock
22263 #: ../fish/guestfish.pod:415
22264 msgid ""
22265 "If there are no additional arguments, then we enter a shell, either an "
22266 "interactive shell with a prompt (if the input is a terminal) or a non-"
22267 "interactive shell."
22268 msgstr ""
22269
22270 # type: textblock
22271 #. type: textblock
22272 #: ../fish/guestfish.pod:419
22273 msgid ""
22274 "In either command line mode or non-interactive shell, the first command that "
22275 "gives an error causes the whole shell to exit.  In interactive mode (with a "
22276 "prompt) if a command fails, you can continue to enter commands."
22277 msgstr ""
22278
22279 # type: =head1
22280 #. type: =head1
22281 #: ../fish/guestfish.pod:424
22282 msgid "USING launch (OR run)"
22283 msgstr ""
22284
22285 # type: textblock
22286 #. type: textblock
22287 #: ../fish/guestfish.pod:426
22288 msgid ""
22289 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
22290 "then launch it, then mount any disks you need, and finally issue actions/"
22291 "commands.  So the general order of the day is:"
22292 msgstr ""
22293
22294 # type: textblock
22295 #. type: textblock
22296 #: ../fish/guestfish.pod:434
22297 msgid "add or -a/--add"
22298 msgstr ""
22299
22300 # type: textblock
22301 #. type: textblock
22302 #: ../fish/guestfish.pod:438
22303 msgid "launch (aka run)"
22304 msgstr ""
22305
22306 # type: textblock
22307 #. type: textblock
22308 #: ../fish/guestfish.pod:442
22309 msgid "mount or -m/--mount"
22310 msgstr ""
22311
22312 # type: textblock
22313 #. type: textblock
22314 #: ../fish/guestfish.pod:446
22315 msgid "any other commands"
22316 msgstr ""
22317
22318 # type: textblock
22319 #. type: textblock
22320 #: ../fish/guestfish.pod:450
22321 msgid ""
22322 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
22323 "guest before mounting or performing any other commands."
22324 msgstr ""
22325
22326 # type: textblock
22327 #. type: textblock
22328 #: ../fish/guestfish.pod:453
22329 msgid ""
22330 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
22331 "I<--new> options were given then C<run> is done automatically, simply "
22332 "because guestfish can't perform the action you asked for without doing this."
22333 msgstr ""
22334
22335 # type: =head1
22336 #. type: =head1
22337 #: ../fish/guestfish.pod:458
22338 msgid "OPENING DISKS FOR READ AND WRITE"
22339 msgstr ""
22340
22341 # type: textblock
22342 #. type: textblock
22343 #: ../fish/guestfish.pod:460
22344 msgid ""
22345 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
22346 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
22347 "open disk images read-only or for writing."
22348 msgstr ""
22349
22350 # type: textblock
22351 #. type: textblock
22352 #: ../fish/guestfish.pod:464
22353 msgid ""
22354 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
22355 "disk images supplied on the command line for write.  To open a disk image "
22356 "read-only you have to do I<-a image --ro>."
22357 msgstr ""
22358
22359 # type: textblock
22360 #. type: textblock
22361 #: ../fish/guestfish.pod:468
22362 msgid ""
22363 "This matters: If you accidentally open a live VM disk image writable then "
22364 "you will cause irreversible disk corruption."
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../fish/guestfish.pod:471
22369 msgid ""
22370 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
22371 "images will be opened read-only.  You will have to either specify "
22372 "I<guestfish --rw> or change a configuration file in order to get write "
22373 "access for disk images specified by those other command line options."
22374 msgstr ""
22375
22376 # type: textblock
22377 #. type: textblock
22378 #: ../fish/guestfish.pod:476
22379 msgid ""
22380 "This version of guestfish has a I<--rw> option which does nothing (it is "
22381 "already the default).  However it is highly recommended that you use this "
22382 "option to indicate that guestfish needs write access, and to prepare your "
22383 "scripts for the day when this option will be required for write access."
22384 msgstr ""
22385
22386 # type: textblock
22387 #. type: textblock
22388 #: ../fish/guestfish.pod:482
22389 msgid ""
22390 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
22391 "other libguestfs program apart from guestfish and guestmount."
22392 msgstr ""
22393
22394 # type: =head1
22395 #. type: =head1
22396 #: ../fish/guestfish.pod:485
22397 msgid "QUOTING"
22398 msgstr ""
22399
22400 # type: textblock
22401 #. type: textblock
22402 #: ../fish/guestfish.pod:487
22403 msgid ""
22404 "You can quote ordinary parameters using either single or double quotes.  For "
22405 "example:"
22406 msgstr ""
22407
22408 # type: verbatim
22409 #. type: verbatim
22410 #: ../fish/guestfish.pod:490
22411 #, no-wrap
22412 msgid ""
22413 " add \"file with a space.img\"\n"
22414 "\n"
22415 msgstr ""
22416
22417 # type: verbatim
22418 #. type: verbatim
22419 #: ../fish/guestfish.pod:492
22420 #, no-wrap
22421 msgid ""
22422 " rm '/file name'\n"
22423 "\n"
22424 msgstr ""
22425
22426 # type: verbatim
22427 #. type: verbatim
22428 #: ../fish/guestfish.pod:494
22429 #, no-wrap
22430 msgid ""
22431 " rm '/\"'\n"
22432 "\n"
22433 msgstr ""
22434
22435 # type: textblock
22436 #. type: textblock
22437 #: ../fish/guestfish.pod:496
22438 msgid ""
22439 "A few commands require a list of strings to be passed.  For these, use a "
22440 "whitespace-separated list, enclosed in quotes.  Strings containing "
22441 "whitespace to be passed through must be enclosed in single quotes.  A "
22442 "literal single quote must be escaped with a backslash."
22443 msgstr ""
22444
22445 # type: verbatim
22446 #. type: verbatim
22447 #: ../fish/guestfish.pod:501
22448 #, no-wrap
22449 msgid ""
22450 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
22451 " command \"/bin/echo 'foo      bar'\"\n"
22452 " command \"/bin/echo \\'foo\\'\"\n"
22453 "\n"
22454 msgstr ""
22455
22456 # type: =head1
22457 #. type: =head1
22458 #: ../fish/guestfish.pod:505
22459 msgid "OPTIONAL ARGUMENTS"
22460 msgstr ""
22461
22462 # type: textblock
22463 #. type: textblock
22464 #: ../fish/guestfish.pod:507
22465 msgid ""
22466 "Some commands take optional arguments.  These arguments appear in this "
22467 "documentation as C<[argname:..]>.  You can use them as in these examples:"
22468 msgstr ""
22469
22470 # type: verbatim
22471 #. type: verbatim
22472 #: ../fish/guestfish.pod:511
22473 #, no-wrap
22474 msgid ""
22475 " add-drive-opts filename\n"
22476 "\n"
22477 msgstr ""
22478
22479 # type: verbatim
22480 #. type: verbatim
22481 #: ../fish/guestfish.pod:513
22482 #, no-wrap
22483 msgid ""
22484 " add-drive-opts filename readonly:true\n"
22485 "\n"
22486 msgstr ""
22487
22488 # type: verbatim
22489 #. type: verbatim
22490 #: ../fish/guestfish.pod:515
22491 #, no-wrap
22492 msgid ""
22493 " add-drive-opts filename format:qcow2 readonly:false\n"
22494 "\n"
22495 msgstr ""
22496
22497 # type: textblock
22498 #. type: textblock
22499 #: ../fish/guestfish.pod:517
22500 msgid ""
22501 "Each optional argument can appear at most once.  All optional arguments must "
22502 "appear after the required ones."
22503 msgstr ""
22504
22505 # type: =head1
22506 #. type: =head1
22507 #: ../fish/guestfish.pod:520
22508 msgid "NUMBERS"
22509 msgstr ""
22510
22511 # type: textblock
22512 #. type: textblock
22513 #: ../fish/guestfish.pod:522
22514 msgid ""
22515 "This section applies to all commands which can take integers as parameters."
22516 msgstr ""
22517
22518 # type: =head2
22519 #. type: =head2
22520 #: ../fish/guestfish.pod:525
22521 msgid "SIZE SUFFIX"
22522 msgstr ""
22523
22524 # type: textblock
22525 #. type: textblock
22526 #: ../fish/guestfish.pod:527
22527 msgid ""
22528 "When the command takes a parameter measured in bytes, you can use one of the "
22529 "following suffixes to specify kilobytes, megabytes and larger sizes:"
22530 msgstr ""
22531
22532 # type: =item
22533 #. type: =item
22534 #: ../fish/guestfish.pod:533
22535 msgid "B<k> or B<K> or B<KiB>"
22536 msgstr ""
22537
22538 # type: textblock
22539 #. type: textblock
22540 #: ../fish/guestfish.pod:535
22541 msgid "The size in kilobytes (multiplied by 1024)."
22542 msgstr ""
22543
22544 # type: =item
22545 #. type: =item
22546 #: ../fish/guestfish.pod:537
22547 msgid "B<KB>"
22548 msgstr ""
22549
22550 # type: textblock
22551 #. type: textblock
22552 #: ../fish/guestfish.pod:539
22553 msgid "The size in SI 1000 byte units."
22554 msgstr ""
22555
22556 # type: =item
22557 #. type: =item
22558 #: ../fish/guestfish.pod:541
22559 msgid "B<M> or B<MiB>"
22560 msgstr ""
22561
22562 # type: textblock
22563 #. type: textblock
22564 #: ../fish/guestfish.pod:543
22565 msgid "The size in megabytes (multiplied by 1048576)."
22566 msgstr ""
22567
22568 # type: =item
22569 #. type: =item
22570 #: ../fish/guestfish.pod:545
22571 msgid "B<MB>"
22572 msgstr ""
22573
22574 # type: textblock
22575 #. type: textblock
22576 #: ../fish/guestfish.pod:547
22577 msgid "The size in SI 1000000 byte units."
22578 msgstr ""
22579
22580 # type: =item
22581 #. type: =item
22582 #: ../fish/guestfish.pod:549
22583 msgid "B<G> or B<GiB>"
22584 msgstr ""
22585
22586 # type: textblock
22587 #. type: textblock
22588 #: ../fish/guestfish.pod:551
22589 msgid "The size in gigabytes (multiplied by 2**30)."
22590 msgstr ""
22591
22592 # type: =item
22593 #. type: =item
22594 #: ../fish/guestfish.pod:553
22595 msgid "B<GB>"
22596 msgstr ""
22597
22598 # type: textblock
22599 #. type: textblock
22600 #: ../fish/guestfish.pod:555
22601 msgid "The size in SI 10**9 byte units."
22602 msgstr ""
22603
22604 # type: =item
22605 #. type: =item
22606 #: ../fish/guestfish.pod:557
22607 msgid "B<T> or B<TiB>"
22608 msgstr ""
22609
22610 # type: textblock
22611 #. type: textblock
22612 #: ../fish/guestfish.pod:559
22613 msgid "The size in terabytes (multiplied by 2**40)."
22614 msgstr ""
22615
22616 # type: =item
22617 #. type: =item
22618 #: ../fish/guestfish.pod:561
22619 msgid "B<TB>"
22620 msgstr ""
22621
22622 # type: textblock
22623 #. type: textblock
22624 #: ../fish/guestfish.pod:563
22625 msgid "The size in SI 10**12 byte units."
22626 msgstr ""
22627
22628 # type: =item
22629 #. type: =item
22630 #: ../fish/guestfish.pod:565
22631 msgid "B<P> or B<PiB>"
22632 msgstr ""
22633
22634 # type: textblock
22635 #. type: textblock
22636 #: ../fish/guestfish.pod:567
22637 msgid "The size in petabytes (multiplied by 2**50)."
22638 msgstr ""
22639
22640 # type: =item
22641 #. type: =item
22642 #: ../fish/guestfish.pod:569
22643 msgid "B<PB>"
22644 msgstr ""
22645
22646 # type: textblock
22647 #. type: textblock
22648 #: ../fish/guestfish.pod:571
22649 msgid "The size in SI 10**15 byte units."
22650 msgstr ""
22651
22652 # type: =item
22653 #. type: =item
22654 #: ../fish/guestfish.pod:573
22655 msgid "B<E> or B<EiB>"
22656 msgstr ""
22657
22658 # type: textblock
22659 #. type: textblock
22660 #: ../fish/guestfish.pod:575
22661 msgid "The size in exabytes (multiplied by 2**60)."
22662 msgstr ""
22663
22664 # type: =item
22665 #. type: =item
22666 #: ../fish/guestfish.pod:577
22667 msgid "B<EB>"
22668 msgstr ""
22669
22670 # type: textblock
22671 #. type: textblock
22672 #: ../fish/guestfish.pod:579
22673 msgid "The size in SI 10**18 byte units."
22674 msgstr ""
22675
22676 # type: =item
22677 #. type: =item
22678 #: ../fish/guestfish.pod:581
22679 msgid "B<Z> or B<ZiB>"
22680 msgstr ""
22681
22682 # type: textblock
22683 #. type: textblock
22684 #: ../fish/guestfish.pod:583
22685 msgid "The size in zettabytes (multiplied by 2**70)."
22686 msgstr ""
22687
22688 # type: =item
22689 #. type: =item
22690 #: ../fish/guestfish.pod:585
22691 msgid "B<ZB>"
22692 msgstr ""
22693
22694 # type: textblock
22695 #. type: textblock
22696 #: ../fish/guestfish.pod:587
22697 msgid "The size in SI 10**21 byte units."
22698 msgstr ""
22699
22700 # type: =item
22701 #. type: =item
22702 #: ../fish/guestfish.pod:589
22703 msgid "B<Y> or B<YiB>"
22704 msgstr ""
22705
22706 # type: textblock
22707 #. type: textblock
22708 #: ../fish/guestfish.pod:591
22709 msgid "The size in yottabytes (multiplied by 2**80)."
22710 msgstr ""
22711
22712 # type: =item
22713 #. type: =item
22714 #: ../fish/guestfish.pod:593
22715 msgid "B<YB>"
22716 msgstr ""
22717
22718 # type: textblock
22719 #. type: textblock
22720 #: ../fish/guestfish.pod:595
22721 msgid "The size in SI 10**24 byte units."
22722 msgstr ""
22723
22724 # type: verbatim
22725 #. type: verbatim
22726 #: ../fish/guestfish.pod:601
22727 #, no-wrap
22728 msgid ""
22729 " truncate-size /file 1G\n"
22730 "\n"
22731 msgstr ""
22732
22733 # type: textblock
22734 #. type: textblock
22735 #: ../fish/guestfish.pod:603
22736 msgid "would truncate the file to 1 gigabyte."
22737 msgstr ""
22738
22739 # type: textblock
22740 #. type: textblock
22741 #: ../fish/guestfish.pod:605
22742 msgid ""
22743 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22744 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22745 "suffix will probably not do what you expect."
22746 msgstr ""
22747
22748 # type: =head2
22749 #. type: =head2
22750 #: ../fish/guestfish.pod:609
22751 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22752 msgstr ""
22753
22754 # type: textblock
22755 #. type: textblock
22756 #: ../fish/guestfish.pod:611
22757 msgid ""
22758 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22759 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22760 msgstr ""
22761
22762 # type: verbatim
22763 #. type: verbatim
22764 #: ../fish/guestfish.pod:614
22765 #, no-wrap
22766 msgid ""
22767 " 1234      decimal number 1234\n"
22768 " 02322     octal number, equivalent to decimal 1234\n"
22769 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22770 "\n"
22771 msgstr ""
22772
22773 # type: textblock
22774 #. type: textblock
22775 #: ../fish/guestfish.pod:618
22776 msgid ""
22777 "When using the C<chmod> command, you almost always want to specify an octal "
22778 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22779 "L<chmod(1)> program):"
22780 msgstr ""
22781
22782 # type: verbatim
22783 #. type: verbatim
22784 #: ../fish/guestfish.pod:622
22785 #, no-wrap
22786 msgid ""
22787 " chmod 0777 /public  # OK\n"
22788 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22789 "\n"
22790 msgstr ""
22791
22792 # type: textblock
22793 #. type: textblock
22794 #: ../fish/guestfish.pod:625
22795 msgid ""
22796 "Commands that return numbers usually print them in decimal, but some "
22797 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22798 "octal, preceeded by C<0>)."
22799 msgstr ""
22800
22801 # type: =head1
22802 #. type: =head1
22803 #: ../fish/guestfish.pod:629
22804 msgid "WILDCARDS AND GLOBBING"
22805 msgstr ""
22806
22807 # type: textblock
22808 #. type: textblock
22809 #: ../fish/guestfish.pod:631
22810 msgid ""
22811 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22812 "(globbing) by default.  So for example the following will not do what you "
22813 "expect:"
22814 msgstr ""
22815
22816 # type: verbatim
22817 #. type: verbatim
22818 #: ../fish/guestfish.pod:635
22819 #, no-wrap
22820 msgid ""
22821 " rm-rf /home/*\n"
22822 "\n"
22823 msgstr ""
22824
22825 # type: textblock
22826 #. type: textblock
22827 #: ../fish/guestfish.pod:637
22828 msgid ""
22829 "Assuming you don't have a directory called literally C</home/*> then the "
22830 "above command will return an error."
22831 msgstr ""
22832
22833 # type: textblock
22834 #. type: textblock
22835 #: ../fish/guestfish.pod:640
22836 msgid "To perform wildcard expansion, use the C<glob> command."
22837 msgstr ""
22838
22839 # type: verbatim
22840 #. type: verbatim
22841 #: ../fish/guestfish.pod:642
22842 #, no-wrap
22843 msgid ""
22844 " glob rm-rf /home/*\n"
22845 "\n"
22846 msgstr ""
22847
22848 # type: textblock
22849 #. type: textblock
22850 #: ../fish/guestfish.pod:644
22851 msgid ""
22852 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
22853 "many times), equivalent to:"
22854 msgstr ""
22855
22856 # type: verbatim
22857 #. type: verbatim
22858 #: ../fish/guestfish.pod:647
22859 #, no-wrap
22860 msgid ""
22861 " rm-rf /home/jim\n"
22862 " rm-rf /home/joe\n"
22863 " rm-rf /home/mary\n"
22864 "\n"
22865 msgstr ""
22866
22867 # type: textblock
22868 #. type: textblock
22869 #: ../fish/guestfish.pod:651
22870 msgid "C<glob> only works on simple guest paths and not on device names."
22871 msgstr ""
22872
22873 # type: textblock
22874 #. type: textblock
22875 #: ../fish/guestfish.pod:653
22876 msgid ""
22877 "If you have several parameters, each containing a wildcard, then glob will "
22878 "perform a Cartesian product."
22879 msgstr ""
22880
22881 # type: =head1
22882 #. type: =head1
22883 #: ../fish/guestfish.pod:656
22884 msgid "COMMENTS"
22885 msgstr ""
22886
22887 # type: textblock
22888 #. type: textblock
22889 #: ../fish/guestfish.pod:658
22890 msgid ""
22891 "Any line which starts with a I<#> character is treated as a comment and "
22892 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22893 "a command.  For example:"
22894 msgstr ""
22895
22896 # type: verbatim
22897 #. type: verbatim
22898 #: ../fish/guestfish.pod:662
22899 #, no-wrap
22900 msgid ""
22901 " # this is a comment\n"
22902 "         # this is a comment\n"
22903 " foo # NOT a comment\n"
22904 "\n"
22905 msgstr ""
22906
22907 # type: textblock
22908 #. type: textblock
22909 #: ../fish/guestfish.pod:666
22910 msgid "Blank lines are also ignored."
22911 msgstr ""
22912
22913 # type: =head1
22914 #. type: =head1
22915 #: ../fish/guestfish.pod:668
22916 msgid "RUNNING COMMANDS LOCALLY"
22917 msgstr ""
22918
22919 # type: textblock
22920 #. type: textblock
22921 #: ../fish/guestfish.pod:670
22922 msgid ""
22923 "Any line which starts with a I<!> character is treated as a command sent to "
22924 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22925 msgstr ""
22926
22927 # type: verbatim
22928 #. type: verbatim
22929 #: ../fish/guestfish.pod:674
22930 #, no-wrap
22931 msgid ""
22932 " !mkdir local\n"
22933 " tgz-out /remote local/remote-data.tar.gz\n"
22934 "\n"
22935 msgstr ""
22936
22937 # type: textblock
22938 #. type: textblock
22939 #: ../fish/guestfish.pod:677
22940 msgid ""
22941 "will create a directory C<local> on the host, and then export the contents "
22942 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22943 "(See C<tgz-out>)."
22944 msgstr ""
22945
22946 # type: textblock
22947 #. type: textblock
22948 #: ../fish/guestfish.pod:681
22949 msgid ""
22950 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22951 "effect, due to the way that subprocesses work in Unix."
22952 msgstr ""
22953
22954 #. type: =head2
22955 #: ../fish/guestfish.pod:684
22956 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
22957 msgstr ""
22958
22959 #. type: textblock
22960 #: ../fish/guestfish.pod:686
22961 msgid ""
22962 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
22963 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
22964 "and executed as guestfish commands."
22965 msgstr ""
22966
22967 #. type: textblock
22968 #: ../fish/guestfish.pod:690
22969 msgid ""
22970 "Thus you can use shell script to construct arbitrary guestfish commands "
22971 "which are then parsed by guestfish."
22972 msgstr ""
22973
22974 #. type: textblock
22975 #: ../fish/guestfish.pod:693
22976 msgid ""
22977 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
22978 "through C</foo.100>) using guestfish commands alone.  However this is simple "
22979 "if we use a shell script to create the guestfish commands for us:"
22980 msgstr ""
22981
22982 #. type: verbatim
22983 #: ../fish/guestfish.pod:698
22984 #, no-wrap
22985 msgid ""
22986 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
22987 "\n"
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../fish/guestfish.pod:700
22992 msgid "or with names like C</foo.001>:"
22993 msgstr ""
22994
22995 #. type: verbatim
22996 #: ../fish/guestfish.pod:702
22997 #, no-wrap
22998 msgid ""
22999 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
23000 "\n"
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../fish/guestfish.pod:704
23005 msgid ""
23006 "When using guestfish interactively it can be helpful to just run the shell "
23007 "script first (ie. remove the initial C<E<lt>> character so it is just an "
23008 "ordinary I<!> local command), see what guestfish commands it would run, and "
23009 "when you are happy with those prepend the C<E<lt>> character to run the "
23010 "guestfish commands for real."
23011 msgstr ""
23012
23013 # type: =head1
23014 #. type: =head1
23015 #: ../fish/guestfish.pod:710
23016 msgid "PIPES"
23017 msgstr ""
23018
23019 # type: textblock
23020 #. type: textblock
23021 #: ../fish/guestfish.pod:712
23022 msgid ""
23023 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
23024 "command (a guestfish command) to the second command (any host command).  For "
23025 "example:"
23026 msgstr ""
23027
23028 # type: verbatim
23029 #. type: verbatim
23030 #: ../fish/guestfish.pod:716
23031 #, no-wrap
23032 msgid ""
23033 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
23034 "\n"
23035 msgstr ""
23036
23037 # type: textblock
23038 #. type: textblock
23039 #: ../fish/guestfish.pod:718
23040 msgid ""
23041 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
23042 "program).  The above command would list all accounts in the guest filesystem "
23043 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
23044 msgstr ""
23045
23046 # type: verbatim
23047 #. type: verbatim
23048 #: ../fish/guestfish.pod:723
23049 #, no-wrap
23050 msgid ""
23051 " hexdump /bin/ls | head\n"
23052 " list-devices | tail -1\n"
23053 " tgz-out / - | tar ztf -\n"
23054 "\n"
23055 msgstr ""
23056
23057 # type: textblock
23058 #. type: textblock
23059 #: ../fish/guestfish.pod:727
23060 msgid ""
23061 "The space before the pipe symbol is required, any space after the pipe "
23062 "symbol is optional.  Everything after the pipe symbol is just passed "
23063 "straight to the host shell, so it can contain redirections, globs and "
23064 "anything else that makes sense on the host side."
23065 msgstr ""
23066
23067 # type: textblock
23068 #. type: textblock
23069 #: ../fish/guestfish.pod:732
23070 msgid ""
23071 "To use a literal argument which begins with a pipe symbol, you have to quote "
23072 "it, eg:"
23073 msgstr ""
23074
23075 # type: verbatim
23076 #. type: verbatim
23077 #: ../fish/guestfish.pod:735
23078 #, no-wrap
23079 msgid ""
23080 " echo \"|\"\n"
23081 "\n"
23082 msgstr ""
23083
23084 # type: =head1
23085 #. type: =head1
23086 #: ../fish/guestfish.pod:737
23087 msgid "HOME DIRECTORIES"
23088 msgstr ""
23089
23090 # type: textblock
23091 #. type: textblock
23092 #: ../fish/guestfish.pod:739
23093 msgid ""
23094 "If a parameter starts with the character C<~> then the tilde may be expanded "
23095 "as a home directory path (either C<~> for the current user's home directory, "
23096 "or C<~user> for another user)."
23097 msgstr ""
23098
23099 # type: textblock
23100 #. type: textblock
23101 #: ../fish/guestfish.pod:743
23102 msgid ""
23103 "Note that home directory expansion happens for users known I<on the host>, "
23104 "not in the guest filesystem."
23105 msgstr ""
23106
23107 # type: textblock
23108 #. type: textblock
23109 #: ../fish/guestfish.pod:746
23110 msgid ""
23111 "To use a literal argument which begins with a tilde, you have to quote it, "
23112 "eg:"
23113 msgstr ""
23114
23115 # type: verbatim
23116 #. type: verbatim
23117 #: ../fish/guestfish.pod:749
23118 #, no-wrap
23119 msgid ""
23120 " echo \"~\"\n"
23121 "\n"
23122 msgstr ""
23123
23124 # type: textblock
23125 #. type: textblock
23126 #: ../fish/guestfish.pod:753
23127 msgid ""
23128 "Libguestfs has some support for Linux guests encrypted according to the "
23129 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
23130 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
23131 "LUKS is supported."
23132 msgstr ""
23133
23134 # type: textblock
23135 #. type: textblock
23136 #: ../fish/guestfish.pod:758
23137 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
23138 msgstr ""
23139
23140 # type: verbatim
23141 #. type: verbatim
23142 #: ../fish/guestfish.pod:760
23143 #, no-wrap
23144 msgid ""
23145 " ><fs> vfs-type /dev/sda2\n"
23146 " crypto_LUKS\n"
23147 "\n"
23148 msgstr ""
23149
23150 # type: textblock
23151 #. type: textblock
23152 #: ../fish/guestfish.pod:763
23153 msgid ""
23154 "Then open those devices using L</luks-open>.  This creates a device-mapper "
23155 "device called C</dev/mapper/luksdev>."
23156 msgstr ""
23157
23158 # type: verbatim
23159 #. type: verbatim
23160 #: ../fish/guestfish.pod:766
23161 #, no-wrap
23162 msgid ""
23163 " ><fs> luks-open /dev/sda2 luksdev\n"
23164 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
23165 "\n"
23166 msgstr ""
23167
23168 # type: textblock
23169 #. type: textblock
23170 #: ../fish/guestfish.pod:769
23171 msgid ""
23172 "Finally you have to tell LVM to scan for volume groups on the newly created "
23173 "mapper device:"
23174 msgstr ""
23175
23176 # type: verbatim
23177 #. type: verbatim
23178 #: ../fish/guestfish.pod:772
23179 #, no-wrap
23180 msgid ""
23181 " vgscan\n"
23182 " vg-activate-all true\n"
23183 "\n"
23184 msgstr ""
23185
23186 # type: textblock
23187 #. type: textblock
23188 #: ../fish/guestfish.pod:775
23189 msgid "The logical volume(s) can now be mounted in the usual way."
23190 msgstr ""
23191
23192 # type: textblock
23193 #. type: textblock
23194 #: ../fish/guestfish.pod:777
23195 msgid ""
23196 "Before closing a LUKS device you must unmount any logical volumes on it and "
23197 "deactivate the volume groups by calling C<vg-activate false VG> on each "
23198 "one.  Then you can close the mapper device:"
23199 msgstr ""
23200
23201 # type: verbatim
23202 #. type: verbatim
23203 #: ../fish/guestfish.pod:781
23204 #, no-wrap
23205 msgid ""
23206 " vg-activate false /dev/VG\n"
23207 " luks-close /dev/mapper/luksdev\n"
23208 "\n"
23209 msgstr ""
23210
23211 # type: =head1
23212 #. type: =head1
23213 #: ../fish/guestfish.pod:784
23214 msgid "WINDOWS PATHS"
23215 msgstr ""
23216
23217 # type: textblock
23218 #. type: textblock
23219 #: ../fish/guestfish.pod:786
23220 msgid ""
23221 "If a path is prefixed with C<win:> then you can use Windows-style paths "
23222 "(with some limitations).  The following commands are equivalent:"
23223 msgstr ""
23224
23225 # type: verbatim
23226 #. type: verbatim
23227 #: ../fish/guestfish.pod:789
23228 #, no-wrap
23229 msgid ""
23230 " file /WINDOWS/system32/config/system.LOG\n"
23231 "\n"
23232 msgstr ""
23233
23234 # type: verbatim
23235 #. type: verbatim
23236 #: ../fish/guestfish.pod:791
23237 #, no-wrap
23238 msgid ""
23239 " file win:/windows/system32/config/system.log\n"
23240 "\n"
23241 msgstr ""
23242
23243 # type: verbatim
23244 #. type: verbatim
23245 #: ../fish/guestfish.pod:793
23246 #, no-wrap
23247 msgid ""
23248 " file win:\\windows\\system32\\config\\system.log\n"
23249 "\n"
23250 msgstr ""
23251
23252 # type: verbatim
23253 #. type: verbatim
23254 #: ../fish/guestfish.pod:795
23255 #, no-wrap
23256 msgid ""
23257 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
23258 "\n"
23259 msgstr ""
23260
23261 # type: textblock
23262 #. type: textblock
23263 #: ../fish/guestfish.pod:797
23264 msgid ""
23265 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
23266 "handles case insensitivity like Windows would.  This only works in argument "
23267 "positions that expect a path."
23268 msgstr ""
23269
23270 # type: =head1
23271 #. type: =head1
23272 #: ../fish/guestfish.pod:801
23273 msgid "UPLOADING AND DOWNLOADING FILES"
23274 msgstr ""
23275
23276 # type: textblock
23277 #. type: textblock
23278 #: ../fish/guestfish.pod:803
23279 msgid ""
23280 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
23281 "others which upload from or download to a local file, you can use the "
23282 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
23283 msgstr ""
23284
23285 # type: verbatim
23286 #. type: verbatim
23287 #: ../fish/guestfish.pod:807
23288 #, no-wrap
23289 msgid ""
23290 " upload - /foo\n"
23291 "\n"
23292 msgstr ""
23293
23294 # type: textblock
23295 #. type: textblock
23296 #: ../fish/guestfish.pod:809
23297 msgid ""
23298 "reads stdin and creates from that a file C</foo> in the disk image, and:"
23299 msgstr ""
23300
23301 # type: verbatim
23302 #. type: verbatim
23303 #: ../fish/guestfish.pod:812
23304 #, no-wrap
23305 msgid ""
23306 " tar-out /etc - | tar tf -\n"
23307 "\n"
23308 msgstr ""
23309
23310 # type: textblock
23311 #. type: textblock
23312 #: ../fish/guestfish.pod:814
23313 msgid ""
23314 "writes the tarball to stdout and then pipes that into the external \"tar\" "
23315 "command (see L</PIPES>)."
23316 msgstr ""
23317
23318 # type: textblock
23319 #. type: textblock
23320 #: ../fish/guestfish.pod:817
23321 msgid ""
23322 "When using C<-> to read from stdin, the input is read up to the end of "
23323 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
23324 "some arbitrary end marker:"
23325 msgstr ""
23326
23327 # type: verbatim
23328 #. type: verbatim
23329 #: ../fish/guestfish.pod:821
23330 #, no-wrap
23331 msgid ""
23332 " upload -<<END /foo\n"
23333 " input line 1\n"
23334 " input line 2\n"
23335 " input line 3\n"
23336 " END\n"
23337 "\n"
23338 msgstr ""
23339
23340 # type: textblock
23341 #. type: textblock
23342 #: ../fish/guestfish.pod:827
23343 msgid ""
23344 "Any string of characters can be used instead of C<END>.  The end marker must "
23345 "appear on a line of its own, without any preceeding or following characters "
23346 "(not even spaces)."
23347 msgstr ""
23348
23349 # type: textblock
23350 #. type: textblock
23351 #: ../fish/guestfish.pod:831
23352 msgid ""
23353 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
23354 "upload local files (so-called \"FileIn\" parameters in the generator)."
23355 msgstr ""
23356
23357 # type: =head1
23358 #. type: =head1
23359 #: ../fish/guestfish.pod:834
23360 msgid "EXIT ON ERROR BEHAVIOUR"
23361 msgstr ""
23362
23363 # type: textblock
23364 #. type: textblock
23365 #: ../fish/guestfish.pod:836
23366 msgid ""
23367 "By default, guestfish will ignore any errors when in interactive mode (ie. "
23368 "taking commands from a human over a tty), and will exit on the first error "
23369 "in non-interactive mode (scripts, commands given on the command line)."
23370 msgstr ""
23371
23372 # type: textblock
23373 #. type: textblock
23374 #: ../fish/guestfish.pod:841
23375 msgid ""
23376 "If you prefix a command with a I<-> character, then that command will not "
23377 "cause guestfish to exit, even if that (one) command returns an error."
23378 msgstr ""
23379
23380 # type: =head1
23381 #. type: =head1
23382 #: ../fish/guestfish.pod:845
23383 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
23384 msgstr ""
23385
23386 # type: textblock
23387 #. type: textblock
23388 #: ../fish/guestfish.pod:847
23389 msgid ""
23390 "Guestfish can be remote-controlled over a socket.  This is useful "
23391 "particularly in shell scripts where you want to make several different "
23392 "changes to a filesystem, but you don't want the overhead of starting up a "
23393 "guestfish process each time."
23394 msgstr ""
23395
23396 # type: textblock
23397 #. type: textblock
23398 #: ../fish/guestfish.pod:852
23399 msgid "Start a guestfish server process using:"
23400 msgstr ""
23401
23402 # type: verbatim
23403 #. type: verbatim
23404 #: ../fish/guestfish.pod:854
23405 #, no-wrap
23406 msgid ""
23407 " eval \"`guestfish --listen`\"\n"
23408 "\n"
23409 msgstr ""
23410
23411 # type: textblock
23412 #. type: textblock
23413 #: ../fish/guestfish.pod:856
23414 msgid "and then send it commands by doing:"
23415 msgstr ""
23416
23417 # type: verbatim
23418 #. type: verbatim
23419 #: ../fish/guestfish.pod:858
23420 #, no-wrap
23421 msgid ""
23422 " guestfish --remote cmd [...]\n"
23423 "\n"
23424 msgstr ""
23425
23426 # type: textblock
23427 #. type: textblock
23428 #: ../fish/guestfish.pod:860
23429 msgid "To cause the server to exit, send it the exit command:"
23430 msgstr ""
23431
23432 # type: verbatim
23433 #. type: verbatim
23434 #: ../fish/guestfish.pod:862
23435 #, no-wrap
23436 msgid ""
23437 " guestfish --remote exit\n"
23438 "\n"
23439 msgstr ""
23440
23441 # type: textblock
23442 #. type: textblock
23443 #: ../fish/guestfish.pod:864
23444 msgid ""
23445 "Note that the server will normally exit if there is an error in a command.  "
23446 "You can change this in the usual way.  See section L</EXIT ON ERROR "
23447 "BEHAVIOUR>."
23448 msgstr ""
23449
23450 # type: =head2
23451 #. type: =head2
23452 #: ../fish/guestfish.pod:868
23453 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
23454 msgstr ""
23455
23456 # type: textblock
23457 #. type: textblock
23458 #: ../fish/guestfish.pod:870
23459 msgid ""
23460 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
23461 "is how the I<--remote> option knows where to send the commands.  You can "
23462 "have several guestfish listener processes running using:"
23463 msgstr ""
23464
23465 # type: verbatim
23466 #. type: verbatim
23467 #: ../fish/guestfish.pod:874
23468 #, no-wrap
23469 msgid ""
23470 " eval \"`guestfish --listen`\"\n"
23471 " pid1=$GUESTFISH_PID\n"
23472 " eval \"`guestfish --listen`\"\n"
23473 " pid2=$GUESTFISH_PID\n"
23474 " ...\n"
23475 " guestfish --remote=$pid1 cmd\n"
23476 " guestfish --remote=$pid2 cmd\n"
23477 "\n"
23478 msgstr ""
23479
23480 # type: =head2
23481 #. type: =head2
23482 #: ../fish/guestfish.pod:882
23483 msgid "REMOTE CONTROL AND CSH"
23484 msgstr ""
23485
23486 # type: textblock
23487 #. type: textblock
23488 #: ../fish/guestfish.pod:884
23489 msgid ""
23490 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
23491 "option:"
23492 msgstr ""
23493
23494 # type: verbatim
23495 #. type: verbatim
23496 #: ../fish/guestfish.pod:887
23497 #, no-wrap
23498 msgid ""
23499 " eval \"`guestfish --listen --csh`\"\n"
23500 "\n"
23501 msgstr ""
23502
23503 # type: =head2
23504 #. type: =head2
23505 #: ../fish/guestfish.pod:889
23506 msgid "REMOTE CONTROL DETAILS"
23507 msgstr ""
23508
23509 # type: textblock
23510 #. type: textblock
23511 #: ../fish/guestfish.pod:891
23512 msgid ""
23513 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
23514 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
23515 "and C<$PID> is the process ID of the server."
23516 msgstr ""
23517
23518 # type: textblock
23519 #. type: textblock
23520 #: ../fish/guestfish.pod:895
23521 msgid "Guestfish client and server versions must match exactly."
23522 msgstr ""
23523
23524 # type: =head1
23525 #. type: =head1
23526 #: ../fish/guestfish.pod:897
23527 msgid "PREPARED DISK IMAGES"
23528 msgstr ""
23529
23530 # type: textblock
23531 #. type: textblock
23532 #: ../fish/guestfish.pod:899
23533 msgid ""
23534 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
23535 "preformatted disk images that guestfish can make for you to save typing.  "
23536 "This is particularly useful for testing purposes.  This option is used "
23537 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
23538 "can be mixed with I<-a>)."
23539 msgstr ""
23540
23541 # type: textblock
23542 #. type: textblock
23543 #: ../fish/guestfish.pod:905
23544 msgid ""
23545 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
23546 "the second and so on.  Existing files in the current directory are "
23547 "I<overwritten>."
23548 msgstr ""
23549
23550 # type: textblock
23551 #. type: textblock
23552 #: ../fish/guestfish.pod:909
23553 msgid ""
23554 "The type briefly describes how the disk should be sized, partitioned, how "
23555 "filesystem(s) should be created, and how content should be added.  "
23556 "Optionally the type can be followed by extra parameters, separated by C<:> "
23557 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
23558 "allocated disk, containing a single partition, with the partition formatted "
23559 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
23560 "disk instead."
23561 msgstr ""
23562
23563 # type: textblock
23564 #. type: textblock
23565 #: ../fish/guestfish.pod:917
23566 msgid "To list the available types and any extra parameters they take, run:"
23567 msgstr ""
23568
23569 # type: textblock
23570 #. type: textblock
23571 #: ../fish/guestfish.pod:921
23572 msgid ""
23573 "Note that the prepared filesystem is not mounted.  You would usually have to "
23574 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
23575 msgstr ""
23576
23577 # type: textblock
23578 #. type: textblock
23579 #: ../fish/guestfish.pod:925
23580 msgid ""
23581 "If any I<-N> or I<--new> options are given, the guest is automatically "
23582 "launched."
23583 msgstr ""
23584
23585 # type: textblock
23586 #. type: textblock
23587 #: ../fish/guestfish.pod:930
23588 msgid "Create a 100MB disk with an ext4-formatted partition:"
23589 msgstr ""
23590
23591 # type: verbatim
23592 #. type: verbatim
23593 #: ../fish/guestfish.pod:932
23594 #, no-wrap
23595 msgid ""
23596 " guestfish -N fs:ext4\n"
23597 "\n"
23598 msgstr ""
23599
23600 # type: textblock
23601 #. type: textblock
23602 #: ../fish/guestfish.pod:934
23603 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
23604 msgstr ""
23605
23606 # type: verbatim
23607 #. type: verbatim
23608 #: ../fish/guestfish.pod:936
23609 #, no-wrap
23610 msgid ""
23611 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
23612 "\n"
23613 msgstr ""
23614
23615 # type: textblock
23616 #. type: textblock
23617 #: ../fish/guestfish.pod:938
23618 msgid "Create a blank 200MB disk:"
23619 msgstr ""
23620
23621 # type: verbatim
23622 #. type: verbatim
23623 #: ../fish/guestfish.pod:940
23624 #, no-wrap
23625 msgid ""
23626 " guestfish -N disk:200M\n"
23627 "\n"
23628 msgstr ""
23629
23630 # type: =head1
23631 #. type: =head1
23632 #: ../fish/guestfish.pod:942
23633 msgid "PROGRESS BARS"
23634 msgstr ""
23635
23636 # type: textblock
23637 #. type: textblock
23638 #: ../fish/guestfish.pod:944
23639 msgid ""
23640 "Some (not all) long-running commands send progress notification messages as "
23641 "they are running.  Guestfish turns these messages into progress bars."
23642 msgstr ""
23643
23644 # type: textblock
23645 #. type: textblock
23646 #: ../fish/guestfish.pod:948
23647 msgid ""
23648 "When a command that supports progress bars takes longer than two seconds to "
23649 "run, and if progress bars are enabled, then you will see one appearing below "
23650 "the command:"
23651 msgstr ""
23652
23653 # type: verbatim
23654 #. type: verbatim
23655 #: ../fish/guestfish.pod:952
23656 #, no-wrap
23657 msgid ""
23658 " ><fs> copy-size /large-file /another-file 2048M\n"
23659 " / 10% [#####-----------------------------------------] 00:30\n"
23660 "\n"
23661 msgstr ""
23662
23663 # type: textblock
23664 #. type: textblock
23665 #: ../fish/guestfish.pod:955
23666 msgid ""
23667 "The spinner on the left hand side moves round once for every progress "
23668 "notification received from the backend.  This is a (reasonably) golden "
23669 "assurance that the command is \"doing something\" even if the progress bar "
23670 "is not moving, because the command is able to send the progress "
23671 "notifications.  When the bar reaches 100% and the command finishes, the "
23672 "spinner disappears."
23673 msgstr ""
23674
23675 # type: textblock
23676 #. type: textblock
23677 #: ../fish/guestfish.pod:962
23678 msgid ""
23679 "Progress bars are enabled by default when guestfish is used interactively.  "
23680 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23681 "and you can disable them completely using I<--no-progress-bars>."
23682 msgstr ""
23683
23684 # type: =head1
23685 #. type: =head1
23686 #: ../fish/guestfish.pod:967
23687 msgid "GUESTFISH COMMANDS"
23688 msgstr ""
23689
23690 # type: textblock
23691 #. type: textblock
23692 #: ../fish/guestfish.pod:969
23693 msgid ""
23694 "The commands in this section are guestfish convenience commands, in other "
23695 "words, they are not part of the L<guestfs(3)> API."
23696 msgstr ""
23697
23698 # type: =head2
23699 #. type: =head2
23700 #: ../fish/guestfish.pod:972
23701 msgid "help"
23702 msgstr ""
23703
23704 # type: verbatim
23705 #. type: verbatim
23706 #: ../fish/guestfish.pod:974
23707 #, no-wrap
23708 msgid ""
23709 " help\n"
23710 " help cmd\n"
23711 "\n"
23712 msgstr ""
23713
23714 # type: textblock
23715 #. type: textblock
23716 #: ../fish/guestfish.pod:977
23717 msgid "Without any parameter, this provides general help."
23718 msgstr ""
23719
23720 # type: textblock
23721 #. type: textblock
23722 #: ../fish/guestfish.pod:979
23723 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23724 msgstr ""
23725
23726 # type: =head2
23727 #. type: =head2
23728 #: ../fish/guestfish.pod:981
23729 msgid "quit | exit"
23730 msgstr ""
23731
23732 # type: textblock
23733 #. type: textblock
23734 #: ../fish/guestfish.pod:983
23735 msgid "This exits guestfish.  You can also use C<^D> key."
23736 msgstr ""
23737
23738 # type: textblock
23739 #. type: textblock
23740 #: ../fish/guestfish.pod:985
23741 msgid "@FISH_COMMANDS@"
23742 msgstr ""
23743
23744 # type: =head1
23745 #. type: =head1
23746 #: ../fish/guestfish.pod:987
23747 msgid "COMMANDS"
23748 msgstr ""
23749
23750 # type: =head1
23751 #. type: =head1
23752 #: ../fish/guestfish.pod:991 ../test-tool/libguestfs-test-tool.pod:83
23753 msgid "EXIT CODE"
23754 msgstr ""
23755
23756 # type: textblock
23757 #. type: textblock
23758 #: ../fish/guestfish.pod:993
23759 msgid ""
23760 "guestfish returns 0 if the commands completed without error, or 1 if there "
23761 "was an error."
23762 msgstr ""
23763
23764 # type: =item
23765 #. type: =item
23766 #: ../fish/guestfish.pod:1000
23767 msgid "EDITOR"
23768 msgstr ""
23769
23770 # type: textblock
23771 #. type: textblock
23772 #: ../fish/guestfish.pod:1002
23773 msgid ""
23774 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23775 "C<vi>."
23776 msgstr ""
23777
23778 # type: =item
23779 #. type: =item
23780 #: ../fish/guestfish.pod:1005
23781 msgid "GUESTFISH_PID"
23782 msgstr ""
23783
23784 # type: textblock
23785 #. type: textblock
23786 #: ../fish/guestfish.pod:1007
23787 msgid ""
23788 "Used with the I<--remote> option to specify the remote guestfish process to "
23789 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23790 msgstr ""
23791
23792 # type: =item
23793 #. type: =item
23794 #: ../fish/guestfish.pod:1011
23795 msgid "HEXEDITOR"
23796 msgstr ""
23797
23798 # type: textblock
23799 #. type: textblock
23800 #: ../fish/guestfish.pod:1013
23801 msgid ""
23802 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23803 "not specified, the external L<hexedit(1)> program is used."
23804 msgstr ""
23805
23806 # type: =item
23807 #. type: =item
23808 #: ../fish/guestfish.pod:1017
23809 msgid "HOME"
23810 msgstr ""
23811
23812 # type: textblock
23813 #. type: textblock
23814 #: ../fish/guestfish.pod:1019
23815 msgid ""
23816 "If compiled with GNU readline support, various files in the home directory "
23817 "can be used.  See L</FILES>."
23818 msgstr ""
23819
23820 # type: textblock
23821 #. type: textblock
23822 #: ../fish/guestfish.pod:1028
23823 msgid ""
23824 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23825 "effect as using the B<-v> option."
23826 msgstr ""
23827
23828 # type: textblock
23829 #. type: textblock
23830 #: ../fish/guestfish.pod:1040
23831 msgid ""
23832 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23833 "the discussion of paths in L<guestfs(3)>."
23834 msgstr ""
23835
23836 # type: textblock
23837 #. type: textblock
23838 #: ../fish/guestfish.pod:1051
23839 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23840 msgstr ""
23841
23842 # type: =item
23843 #. type: =item
23844 #: ../fish/guestfish.pod:1053
23845 msgid "PAGER"
23846 msgstr ""
23847
23848 # type: textblock
23849 #. type: textblock
23850 #: ../fish/guestfish.pod:1055
23851 msgid ""
23852 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23853 "C<more>."
23854 msgstr ""
23855
23856 # type: =head1
23857 #. type: =head1
23858 #: ../fish/guestfish.pod:1071 ../test-tool/libguestfs-test-tool.pod:88
23859 msgid "FILES"
23860 msgstr ""
23861
23862 # type: =item
23863 #. type: =item
23864 #: ../fish/guestfish.pod:1075
23865 msgid "$HOME/.guestfish"
23866 msgstr ""
23867
23868 # type: textblock
23869 #. type: textblock
23870 #: ../fish/guestfish.pod:1077
23871 msgid ""
23872 "If compiled with GNU readline support, then the command history is saved in "
23873 "this file."
23874 msgstr ""
23875
23876 # type: =item
23877 #. type: =item
23878 #: ../fish/guestfish.pod:1080
23879 msgid "$HOME/.inputrc"
23880 msgstr ""
23881
23882 # type: =item
23883 #. type: =item
23884 #: ../fish/guestfish.pod:1082
23885 msgid "/etc/inputrc"
23886 msgstr ""
23887
23888 # type: textblock
23889 #. type: textblock
23890 #: ../fish/guestfish.pod:1084
23891 msgid ""
23892 "If compiled with GNU readline support, then these files can be used to "
23893 "configure readline.  For further information, please see L<readline(3)/"
23894 "INITIALIZATION FILE>."
23895 msgstr ""
23896
23897 # type: textblock
23898 #. type: textblock
23899 #: ../fish/guestfish.pod:1088
23900 msgid "To write rules which only apply to guestfish, use:"
23901 msgstr ""
23902
23903 # type: verbatim
23904 #. type: verbatim
23905 #: ../fish/guestfish.pod:1090
23906 #, no-wrap
23907 msgid ""
23908 " $if guestfish\n"
23909 " ...\n"
23910 " $endif\n"
23911 "\n"
23912 msgstr ""
23913
23914 # type: textblock
23915 #. type: textblock
23916 #: ../fish/guestfish.pod:1094
23917 msgid ""
23918 "Variables that you can set in inputrc that change the behaviour of guestfish "
23919 "in useful ways include:"
23920 msgstr ""
23921
23922 # type: =item
23923 #. type: =item
23924 #: ../fish/guestfish.pod:1099
23925 msgid "completion-ignore-case (default: on)"
23926 msgstr ""
23927
23928 # type: textblock
23929 #. type: textblock
23930 #: ../fish/guestfish.pod:1101
23931 msgid ""
23932 "By default, guestfish will ignore case when tab-completing paths on the "
23933 "disk.  Use:"
23934 msgstr ""
23935
23936 # type: verbatim
23937 #. type: verbatim
23938 #: ../fish/guestfish.pod:1104
23939 #, no-wrap
23940 msgid ""
23941 " set completion-ignore-case off\n"
23942 "\n"
23943 msgstr ""
23944
23945 # type: textblock
23946 #. type: textblock
23947 #: ../fish/guestfish.pod:1106
23948 msgid "to make guestfish case sensitive."
23949 msgstr ""
23950
23951 # type: =item
23952 #. type: =item
23953 #: ../fish/guestfish.pod:1110
23954 msgid "test1.img"
23955 msgstr ""
23956
23957 # type: =item
23958 #. type: =item
23959 #: ../fish/guestfish.pod:1112
23960 msgid "test2.img (etc)"
23961 msgstr ""
23962
23963 # type: textblock
23964 #. type: textblock
23965 #: ../fish/guestfish.pod:1114
23966 msgid ""
23967 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
23968 "will be created in the file C<test1.img> in the current directory.  The "
23969 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
23970 "the same name will be overwritten."
23971 msgstr ""
23972
23973 #. type: textblock
23974 #: ../fish/guestfish.pod:1123
23975 msgid ""
23976 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
23977 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
23978 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
23979 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
23980 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
23981 ">, L<hexedit(1)>."
23982 msgstr ""
23983
23984 # type: textblock
23985 #. type: textblock
23986 #: ../fish/guestfish.pod:1153 ../test-tool/libguestfs-test-tool.pod:124
23987 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:372
23988 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1518
23989 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
23990 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:277
23991 msgid ""
23992 "This program is free software; you can redistribute it and/or modify it "
23993 "under the terms of the GNU General Public License as published by the Free "
23994 "Software Foundation; either version 2 of the License, or (at your option) "
23995 "any later version."
23996 msgstr ""
23997
23998 # type: textblock
23999 #. type: textblock
24000 #: ../fish/guestfish.pod:1158 ../test-tool/libguestfs-test-tool.pod:129
24001 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:377
24002 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1523
24003 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
24004 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:282
24005 msgid ""
24006 "This program is distributed in the hope that it will be useful, but WITHOUT "
24007 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
24008 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
24009 "more details."
24010 msgstr ""
24011
24012 # type: textblock
24013 #. type: textblock
24014 #: ../fish/guestfish.pod:1163 ../test-tool/libguestfs-test-tool.pod:134
24015 #: ../fuse/guestmount.pod:268 ../tools/virt-edit.pl:382
24016 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1528
24017 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
24018 #: ../tools/virt-make-fs.pl:582 ../tools/virt-list-partitions.pl:287
24019 msgid ""
24020 "You should have received a copy of the GNU General Public License along with "
24021 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
24022 "Ave, Cambridge, MA 02139, USA."
24023 msgstr ""
24024
24025 # type: =head2
24026 #. type: =head2
24027 #: ../fish/guestfish-actions.pod:1
24028 msgid "add-cdrom"
24029 msgstr ""
24030
24031 # type: verbatim
24032 #. type: verbatim
24033 #: ../fish/guestfish-actions.pod:3
24034 #, no-wrap
24035 msgid ""
24036 " add-cdrom filename\n"
24037 "\n"
24038 msgstr ""
24039
24040 # type: textblock
24041 #. type: textblock
24042 #: ../fish/guestfish-actions.pod:15
24043 msgid ""
24044 "This call checks for the existence of C<filename>.  This stops you from "
24045 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24046 "and C<http:> URLs.  To specify those, use the general L</config> call "
24047 "instead."
24048 msgstr ""
24049
24050 # type: textblock
24051 #. type: textblock
24052 #: ../fish/guestfish-actions.pod:22
24053 msgid ""
24054 "If you just want to add an ISO file (often you use this as an efficient way "
24055 "to transfer large files into the guest), then you should probably use L</add-"
24056 "drive-ro> instead."
24057 msgstr ""
24058
24059 # type: =head2
24060 #. type: =head2
24061 #: ../fish/guestfish-actions.pod:35
24062 msgid "add-domain"
24063 msgstr ""
24064
24065 # type: =head2
24066 #. type: =head2
24067 #: ../fish/guestfish-actions.pod:37
24068 msgid "domain"
24069 msgstr ""
24070
24071 #. type: verbatim
24072 #: ../fish/guestfish-actions.pod:39
24073 #, no-wrap
24074 msgid ""
24075 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..]\n"
24076 "\n"
24077 msgstr ""
24078
24079 # type: textblock
24080 #. type: textblock
24081 #: ../fish/guestfish-actions.pod:41
24082 msgid ""
24083 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24084 "It works by connecting to libvirt, requesting the domain and domain XML from "
24085 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
24086 msgstr ""
24087
24088 # type: textblock
24089 #. type: textblock
24090 #: ../fish/guestfish-actions.pod:71
24091 msgid ""
24092 "The other optional parameters are passed directly through to L</add-drive-"
24093 "opts>."
24094 msgstr ""
24095
24096 # type: textblock
24097 #. type: textblock
24098 #: ../fish/guestfish-actions.pod:74 ../fish/guestfish-actions.pod:138
24099 #: ../fish/guestfish-actions.pod:2977
24100 msgid ""
24101 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
24102 msgstr ""
24103
24104 # type: =head2
24105 #. type: =head2
24106 #: ../fish/guestfish-actions.pod:76
24107 msgid "add-drive"
24108 msgstr ""
24109
24110 # type: verbatim
24111 #. type: verbatim
24112 #: ../fish/guestfish-actions.pod:78
24113 #, no-wrap
24114 msgid ""
24115 " add-drive filename\n"
24116 "\n"
24117 msgstr ""
24118
24119 # type: textblock
24120 #. type: textblock
24121 #: ../fish/guestfish-actions.pod:80
24122 msgid ""
24123 "This function is the equivalent of calling L</add-drive-opts> with no "
24124 "optional parameters, so the disk is added writable, with the format being "
24125 "detected automatically."
24126 msgstr ""
24127
24128 # type: textblock
24129 #. type: textblock
24130 #: ../fish/guestfish-actions.pod:84
24131 msgid ""
24132 "Automatic detection of the format opens you up to a potential security hole "
24133 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24134 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24135 "you should think about replacing calls to this function with calls to L</add-"
24136 "drive-opts>, and specifying the format."
24137 msgstr ""
24138
24139 # type: =head2
24140 #. type: =head2
24141 #: ../fish/guestfish-actions.pod:91
24142 msgid "add-drive-opts"
24143 msgstr ""
24144
24145 # type: =head2
24146 #. type: =head2
24147 #: ../fish/guestfish-actions.pod:93
24148 msgid "add"
24149 msgstr ""
24150
24151 # type: verbatim
24152 #. type: verbatim
24153 #: ../fish/guestfish-actions.pod:95
24154 #, no-wrap
24155 msgid ""
24156 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
24157 "\n"
24158 msgstr ""
24159
24160 # type: textblock
24161 #. type: textblock
24162 #: ../fish/guestfish-actions.pod:122
24163 msgid ""
24164 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
24165 "add-drive-ro>) then the format is automatically detected.  Possible formats "
24166 "include C<raw> and C<qcow2>."
24167 msgstr ""
24168
24169 # type: textblock
24170 #. type: textblock
24171 #: ../fish/guestfish-actions.pod:133
24172 msgid ""
24173 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
24174 "add-drive-with-if> call (q.v.)"
24175 msgstr ""
24176
24177 # type: =head2
24178 #. type: =head2
24179 #: ../fish/guestfish-actions.pod:140
24180 msgid "add-drive-ro"
24181 msgstr ""
24182
24183 # type: =head2
24184 #. type: =head2
24185 #: ../fish/guestfish-actions.pod:142
24186 msgid "add-ro"
24187 msgstr ""
24188
24189 # type: verbatim
24190 #. type: verbatim
24191 #: ../fish/guestfish-actions.pod:144
24192 #, no-wrap
24193 msgid ""
24194 " add-drive-ro filename\n"
24195 "\n"
24196 msgstr ""
24197
24198 # type: textblock
24199 #. type: textblock
24200 #: ../fish/guestfish-actions.pod:146
24201 msgid ""
24202 "This function is the equivalent of calling L</add-drive-opts> with the "
24203 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
24204 "is added read-only, with the format being detected automatically."
24205 msgstr ""
24206
24207 # type: =head2
24208 #. type: =head2
24209 #: ../fish/guestfish-actions.pod:151
24210 msgid "add-drive-ro-with-if"
24211 msgstr ""
24212
24213 # type: verbatim
24214 #. type: verbatim
24215 #: ../fish/guestfish-actions.pod:153
24216 #, no-wrap
24217 msgid ""
24218 " add-drive-ro-with-if filename iface\n"
24219 "\n"
24220 msgstr ""
24221
24222 # type: textblock
24223 #. type: textblock
24224 #: ../fish/guestfish-actions.pod:155
24225 msgid ""
24226 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
24227 "interface emulation to use at run time."
24228 msgstr ""
24229
24230 # type: =head2
24231 #. type: =head2
24232 #: ../fish/guestfish-actions.pod:165
24233 msgid "add-drive-with-if"
24234 msgstr ""
24235
24236 # type: verbatim
24237 #. type: verbatim
24238 #: ../fish/guestfish-actions.pod:167
24239 #, no-wrap
24240 msgid ""
24241 " add-drive-with-if filename iface\n"
24242 "\n"
24243 msgstr ""
24244
24245 # type: textblock
24246 #. type: textblock
24247 #: ../fish/guestfish-actions.pod:169
24248 msgid ""
24249 "This is the same as L</add-drive> but it allows you to specify the QEMU "
24250 "interface emulation to use at run time."
24251 msgstr ""
24252
24253 # type: =head2
24254 #. type: =head2
24255 #: ../fish/guestfish-actions.pod:179
24256 msgid "aug-clear"
24257 msgstr ""
24258
24259 # type: verbatim
24260 #. type: verbatim
24261 #: ../fish/guestfish-actions.pod:181
24262 #, no-wrap
24263 msgid ""
24264 " aug-clear augpath\n"
24265 "\n"
24266 msgstr ""
24267
24268 # type: =head2
24269 #. type: =head2
24270 #: ../fish/guestfish-actions.pod:186
24271 msgid "aug-close"
24272 msgstr ""
24273
24274 # type: verbatim
24275 #. type: verbatim
24276 #: ../fish/guestfish-actions.pod:188
24277 #, no-wrap
24278 msgid ""
24279 " aug-close\n"
24280 "\n"
24281 msgstr ""
24282
24283 # type: textblock
24284 #. type: textblock
24285 #: ../fish/guestfish-actions.pod:190
24286 msgid ""
24287 "Close the current Augeas handle and free up any resources used by it.  After "
24288 "calling this, you have to call L</aug-init> again before you can use any "
24289 "other Augeas functions."
24290 msgstr ""
24291
24292 # type: =head2
24293 #. type: =head2
24294 #: ../fish/guestfish-actions.pod:195
24295 msgid "aug-defnode"
24296 msgstr ""
24297
24298 # type: verbatim
24299 #. type: verbatim
24300 #: ../fish/guestfish-actions.pod:197
24301 #, no-wrap
24302 msgid ""
24303 " aug-defnode name expr val\n"
24304 "\n"
24305 msgstr ""
24306
24307 # type: textblock
24308 #. type: textblock
24309 #: ../fish/guestfish-actions.pod:202
24310 msgid ""
24311 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24312 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
24313 "containing that single node."
24314 msgstr ""
24315
24316 # type: =head2
24317 #. type: =head2
24318 #: ../fish/guestfish-actions.pod:210
24319 msgid "aug-defvar"
24320 msgstr ""
24321
24322 # type: verbatim
24323 #. type: verbatim
24324 #: ../fish/guestfish-actions.pod:212
24325 #, no-wrap
24326 msgid ""
24327 " aug-defvar name expr\n"
24328 "\n"
24329 msgstr ""
24330
24331 # type: =head2
24332 #. type: =head2
24333 #: ../fish/guestfish-actions.pod:221
24334 msgid "aug-get"
24335 msgstr ""
24336
24337 # type: verbatim
24338 #. type: verbatim
24339 #: ../fish/guestfish-actions.pod:223
24340 #, no-wrap
24341 msgid ""
24342 " aug-get augpath\n"
24343 "\n"
24344 msgstr ""
24345
24346 # type: =head2
24347 #. type: =head2
24348 #: ../fish/guestfish-actions.pod:228
24349 msgid "aug-init"
24350 msgstr ""
24351
24352 # type: verbatim
24353 #. type: verbatim
24354 #: ../fish/guestfish-actions.pod:230
24355 #, no-wrap
24356 msgid ""
24357 " aug-init root flags\n"
24358 "\n"
24359 msgstr ""
24360
24361 # type: textblock
24362 #. type: textblock
24363 #: ../fish/guestfish-actions.pod:236
24364 msgid "You must call this before using any other L</aug-*> commands."
24365 msgstr ""
24366
24367 # type: textblock
24368 #. type: textblock
24369 #: ../fish/guestfish-actions.pod:271
24370 msgid "Do not load the tree in L</aug-init>."
24371 msgstr ""
24372
24373 # type: textblock
24374 #. type: textblock
24375 #: ../fish/guestfish-actions.pod:275
24376 msgid "To close the handle, you can call L</aug-close>."
24377 msgstr ""
24378
24379 # type: =head2
24380 #. type: =head2
24381 #: ../fish/guestfish-actions.pod:279
24382 msgid "aug-insert"
24383 msgstr ""
24384
24385 # type: verbatim
24386 #. type: verbatim
24387 #: ../fish/guestfish-actions.pod:281
24388 #, no-wrap
24389 msgid ""
24390 " aug-insert augpath label true|false\n"
24391 "\n"
24392 msgstr ""
24393
24394 # type: =head2
24395 #. type: =head2
24396 #: ../fish/guestfish-actions.pod:291
24397 msgid "aug-load"
24398 msgstr ""
24399
24400 # type: verbatim
24401 #. type: verbatim
24402 #: ../fish/guestfish-actions.pod:293
24403 #, no-wrap
24404 msgid ""
24405 " aug-load\n"
24406 "\n"
24407 msgstr ""
24408
24409 # type: =head2
24410 #. type: =head2
24411 #: ../fish/guestfish-actions.pod:300
24412 msgid "aug-ls"
24413 msgstr ""
24414
24415 # type: verbatim
24416 #. type: verbatim
24417 #: ../fish/guestfish-actions.pod:302
24418 #, no-wrap
24419 msgid ""
24420 " aug-ls augpath\n"
24421 "\n"
24422 msgstr ""
24423
24424 # type: textblock
24425 #. type: textblock
24426 #: ../fish/guestfish-actions.pod:304
24427 msgid ""
24428 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
24429 "resulting nodes into alphabetical order."
24430 msgstr ""
24431
24432 # type: =head2
24433 #. type: =head2
24434 #: ../fish/guestfish-actions.pod:307
24435 msgid "aug-match"
24436 msgstr ""
24437
24438 # type: verbatim
24439 #. type: verbatim
24440 #: ../fish/guestfish-actions.pod:309
24441 #, no-wrap
24442 msgid ""
24443 " aug-match augpath\n"
24444 "\n"
24445 msgstr ""
24446
24447 # type: =head2
24448 #. type: =head2
24449 #: ../fish/guestfish-actions.pod:315
24450 msgid "aug-mv"
24451 msgstr ""
24452
24453 # type: verbatim
24454 #. type: verbatim
24455 #: ../fish/guestfish-actions.pod:317
24456 #, no-wrap
24457 msgid ""
24458 " aug-mv src dest\n"
24459 "\n"
24460 msgstr ""
24461
24462 # type: =head2
24463 #. type: =head2
24464 #: ../fish/guestfish-actions.pod:322
24465 msgid "aug-rm"
24466 msgstr ""
24467
24468 # type: verbatim
24469 #. type: verbatim
24470 #: ../fish/guestfish-actions.pod:324
24471 #, no-wrap
24472 msgid ""
24473 " aug-rm augpath\n"
24474 "\n"
24475 msgstr ""
24476
24477 # type: =head2
24478 #. type: =head2
24479 #: ../fish/guestfish-actions.pod:330
24480 msgid "aug-save"
24481 msgstr ""
24482
24483 # type: verbatim
24484 #. type: verbatim
24485 #: ../fish/guestfish-actions.pod:332
24486 #, no-wrap
24487 msgid ""
24488 " aug-save\n"
24489 "\n"
24490 msgstr ""
24491
24492 # type: textblock
24493 #. type: textblock
24494 #: ../fish/guestfish-actions.pod:336
24495 msgid ""
24496 "The flags which were passed to L</aug-init> affect exactly how files are "
24497 "saved."
24498 msgstr ""
24499
24500 # type: =head2
24501 #. type: =head2
24502 #: ../fish/guestfish-actions.pod:339
24503 msgid "aug-set"
24504 msgstr ""
24505
24506 # type: verbatim
24507 #. type: verbatim
24508 #: ../fish/guestfish-actions.pod:341
24509 #, no-wrap
24510 msgid ""
24511 " aug-set augpath val\n"
24512 "\n"
24513 msgstr ""
24514
24515 # type: textblock
24516 #. type: textblock
24517 #: ../fish/guestfish-actions.pod:345
24518 msgid ""
24519 "In the Augeas API, it is possible to clear a node by setting the value to "
24520 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24521 "this call.  Instead you must use the L</aug-clear> call."
24522 msgstr ""
24523
24524 # type: =head2
24525 #. type: =head2
24526 #: ../fish/guestfish-actions.pod:350
24527 msgid "available"
24528 msgstr ""
24529
24530 # type: verbatim
24531 #. type: verbatim
24532 #: ../fish/guestfish-actions.pod:352
24533 #, no-wrap
24534 msgid ""
24535 " available 'groups ...'\n"
24536 "\n"
24537 msgstr ""
24538
24539 # type: textblock
24540 #. type: textblock
24541 #: ../fish/guestfish-actions.pod:358
24542 msgid ""
24543 "The libguestfs groups, and the functions that those groups correspond to, "
24544 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24545 "runtime by calling L</available-all-groups>."
24546 msgstr ""
24547
24548 # type: textblock
24549 #. type: textblock
24550 #: ../fish/guestfish-actions.pod:382
24551 msgid "You must call L</launch> before calling this function."
24552 msgstr ""
24553
24554 # type: textblock
24555 #. type: textblock
24556 #: ../fish/guestfish-actions.pod:404
24557 msgid ""
24558 "This call was added in version C<1.0.80>.  In previous versions of "
24559 "libguestfs all you could do would be to speculatively execute a command to "
24560 "find out if the daemon implemented it.  See also L</version>."
24561 msgstr ""
24562
24563 # type: =head2
24564 #. type: =head2
24565 #: ../fish/guestfish-actions.pod:411
24566 msgid "available-all-groups"
24567 msgstr ""
24568
24569 # type: verbatim
24570 #. type: verbatim
24571 #: ../fish/guestfish-actions.pod:413
24572 #, no-wrap
24573 msgid ""
24574 " available-all-groups\n"
24575 "\n"
24576 msgstr ""
24577
24578 # type: textblock
24579 #. type: textblock
24580 #: ../fish/guestfish-actions.pod:415
24581 msgid ""
24582 "This command returns a list of all optional groups that this daemon knows "
24583 "about.  Note this returns both supported and unsupported groups.  To find "
24584 "out which ones the daemon can actually support you have to call L</"
24585 "available> on each member of the returned list."
24586 msgstr ""
24587
24588 # type: textblock
24589 #. type: textblock
24590 #: ../fish/guestfish-actions.pod:421
24591 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
24592 msgstr ""
24593
24594 # type: =head2
24595 #. type: =head2
24596 #: ../fish/guestfish-actions.pod:423
24597 msgid "base64-in"
24598 msgstr ""
24599
24600 # type: verbatim
24601 #. type: verbatim
24602 #: ../fish/guestfish-actions.pod:425
24603 #, no-wrap
24604 msgid ""
24605 " base64-in (base64file|-) filename\n"
24606 "\n"
24607 msgstr ""
24608
24609 # type: textblock
24610 #. type: textblock
24611 #: ../fish/guestfish-actions.pod:430 ../fish/guestfish-actions.pod:439
24612 #: ../fish/guestfish-actions.pod:663 ../fish/guestfish-actions.pod:832
24613 #: ../fish/guestfish-actions.pod:851 ../fish/guestfish-actions.pod:1228
24614 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4387
24615 #: ../fish/guestfish-actions.pod:4398 ../fish/guestfish-actions.pod:4409
24616 #: ../fish/guestfish-actions.pod:4461 ../fish/guestfish-actions.pod:4470
24617 #: ../fish/guestfish-actions.pod:4524 ../fish/guestfish-actions.pod:4547
24618 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
24619 msgstr ""
24620
24621 # type: =head2
24622 #. type: =head2
24623 #: ../fish/guestfish-actions.pod:432
24624 msgid "base64-out"
24625 msgstr ""
24626
24627 # type: verbatim
24628 #. type: verbatim
24629 #: ../fish/guestfish-actions.pod:434
24630 #, no-wrap
24631 msgid ""
24632 " base64-out filename (base64file|-)\n"
24633 "\n"
24634 msgstr ""
24635
24636 # type: =head2
24637 #. type: =head2
24638 #: ../fish/guestfish-actions.pod:441
24639 msgid "blockdev-flushbufs"
24640 msgstr ""
24641
24642 # type: verbatim
24643 #. type: verbatim
24644 #: ../fish/guestfish-actions.pod:443
24645 #, no-wrap
24646 msgid ""
24647 " blockdev-flushbufs device\n"
24648 "\n"
24649 msgstr ""
24650
24651 # type: =head2
24652 #. type: =head2
24653 #: ../fish/guestfish-actions.pod:450
24654 msgid "blockdev-getbsz"
24655 msgstr ""
24656
24657 # type: verbatim
24658 #. type: verbatim
24659 #: ../fish/guestfish-actions.pod:452
24660 #, no-wrap
24661 msgid ""
24662 " blockdev-getbsz device\n"
24663 "\n"
24664 msgstr ""
24665
24666 # type: =head2
24667 #. type: =head2
24668 #: ../fish/guestfish-actions.pod:461
24669 msgid "blockdev-getro"
24670 msgstr ""
24671
24672 # type: verbatim
24673 #. type: verbatim
24674 #: ../fish/guestfish-actions.pod:463
24675 #, no-wrap
24676 msgid ""
24677 " blockdev-getro device\n"
24678 "\n"
24679 msgstr ""
24680
24681 # type: =head2
24682 #. type: =head2
24683 #: ../fish/guestfish-actions.pod:470
24684 msgid "blockdev-getsize64"
24685 msgstr ""
24686
24687 # type: verbatim
24688 #. type: verbatim
24689 #: ../fish/guestfish-actions.pod:472
24690 #, no-wrap
24691 msgid ""
24692 " blockdev-getsize64 device\n"
24693 "\n"
24694 msgstr ""
24695
24696 # type: textblock
24697 #. type: textblock
24698 #: ../fish/guestfish-actions.pod:476
24699 msgid "See also L</blockdev-getsz>."
24700 msgstr ""
24701
24702 # type: =head2
24703 #. type: =head2
24704 #: ../fish/guestfish-actions.pod:480
24705 msgid "blockdev-getss"
24706 msgstr ""
24707
24708 # type: verbatim
24709 #. type: verbatim
24710 #: ../fish/guestfish-actions.pod:482
24711 #, no-wrap
24712 msgid ""
24713 " blockdev-getss device\n"
24714 "\n"
24715 msgstr ""
24716
24717 # type: textblock
24718 #. type: textblock
24719 #: ../fish/guestfish-actions.pod:487
24720 msgid ""
24721 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24722 msgstr ""
24723
24724 # type: =head2
24725 #. type: =head2
24726 #: ../fish/guestfish-actions.pod:492
24727 msgid "blockdev-getsz"
24728 msgstr ""
24729
24730 # type: verbatim
24731 #. type: verbatim
24732 #: ../fish/guestfish-actions.pod:494
24733 #, no-wrap
24734 msgid ""
24735 " blockdev-getsz device\n"
24736 "\n"
24737 msgstr ""
24738
24739 # type: textblock
24740 #. type: textblock
24741 #: ../fish/guestfish-actions.pod:499
24742 msgid ""
24743 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24744 "blockdev-getsize64> for the more useful I<size in bytes>."
24745 msgstr ""
24746
24747 # type: =head2
24748 #. type: =head2
24749 #: ../fish/guestfish-actions.pod:505
24750 msgid "blockdev-rereadpt"
24751 msgstr ""
24752
24753 # type: verbatim
24754 #. type: verbatim
24755 #: ../fish/guestfish-actions.pod:507
24756 #, no-wrap
24757 msgid ""
24758 " blockdev-rereadpt device\n"
24759 "\n"
24760 msgstr ""
24761
24762 # type: =head2
24763 #. type: =head2
24764 #: ../fish/guestfish-actions.pod:513
24765 msgid "blockdev-setbsz"
24766 msgstr ""
24767
24768 # type: verbatim
24769 #. type: verbatim
24770 #: ../fish/guestfish-actions.pod:515
24771 #, no-wrap
24772 msgid ""
24773 " blockdev-setbsz device blocksize\n"
24774 "\n"
24775 msgstr ""
24776
24777 # type: =head2
24778 #. type: =head2
24779 #: ../fish/guestfish-actions.pod:524
24780 msgid "blockdev-setro"
24781 msgstr ""
24782
24783 # type: verbatim
24784 #. type: verbatim
24785 #: ../fish/guestfish-actions.pod:526
24786 #, no-wrap
24787 msgid ""
24788 " blockdev-setro device\n"
24789 "\n"
24790 msgstr ""
24791
24792 # type: =head2
24793 #. type: =head2
24794 #: ../fish/guestfish-actions.pod:532
24795 msgid "blockdev-setrw"
24796 msgstr ""
24797
24798 # type: verbatim
24799 #. type: verbatim
24800 #: ../fish/guestfish-actions.pod:534
24801 #, no-wrap
24802 msgid ""
24803 " blockdev-setrw device\n"
24804 "\n"
24805 msgstr ""
24806
24807 # type: =head2
24808 #. type: =head2
24809 #: ../fish/guestfish-actions.pod:540
24810 msgid "case-sensitive-path"
24811 msgstr ""
24812
24813 # type: verbatim
24814 #. type: verbatim
24815 #: ../fish/guestfish-actions.pod:542
24816 #, no-wrap
24817 msgid ""
24818 " case-sensitive-path path\n"
24819 "\n"
24820 msgstr ""
24821
24822 # type: textblock
24823 #. type: textblock
24824 #: ../fish/guestfish-actions.pod:566
24825 msgid ""
24826 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
24827 "WINDOWS/system32\"> (the exact return value would depend on details of how "
24828 "the directories were originally created under Windows)."
24829 msgstr ""
24830
24831 # type: textblock
24832 #. type: textblock
24833 #: ../fish/guestfish-actions.pod:574
24834 msgid "See also L</realpath>."
24835 msgstr ""
24836
24837 # type: =head2
24838 #. type: =head2
24839 #: ../fish/guestfish-actions.pod:576
24840 msgid "cat"
24841 msgstr ""
24842
24843 # type: verbatim
24844 #. type: verbatim
24845 #: ../fish/guestfish-actions.pod:578
24846 #, no-wrap
24847 msgid ""
24848 " cat path\n"
24849 "\n"
24850 msgstr ""
24851
24852 # type: textblock
24853 #. type: textblock
24854 #: ../fish/guestfish-actions.pod:582
24855 msgid ""
24856 "Note that this function cannot correctly handle binary files (specifically, "
24857 "files containing C<\\0> character which is treated as end of string).  For "
24858 "those you need to use the L</read-file> or L</download> functions which have "
24859 "a more complex interface."
24860 msgstr ""
24861
24862 # type: =head2
24863 #. type: =head2
24864 #: ../fish/guestfish-actions.pod:590
24865 msgid "checksum"
24866 msgstr ""
24867
24868 # type: verbatim
24869 #. type: verbatim
24870 #: ../fish/guestfish-actions.pod:592
24871 #, no-wrap
24872 msgid ""
24873 " checksum csumtype path\n"
24874 "\n"
24875 msgstr ""
24876
24877 # type: textblock
24878 #. type: textblock
24879 #: ../fish/guestfish-actions.pod:635
24880 msgid "To get the checksum for a device, use L</checksum-device>."
24881 msgstr ""
24882
24883 # type: textblock
24884 #. type: textblock
24885 #: ../fish/guestfish-actions.pod:637
24886 msgid "To get the checksums for many files, use L</checksums-out>."
24887 msgstr ""
24888
24889 # type: =head2
24890 #. type: =head2
24891 #: ../fish/guestfish-actions.pod:639
24892 msgid "checksum-device"
24893 msgstr ""
24894
24895 # type: verbatim
24896 #. type: verbatim
24897 #: ../fish/guestfish-actions.pod:641
24898 #, no-wrap
24899 msgid ""
24900 " checksum-device csumtype device\n"
24901 "\n"
24902 msgstr ""
24903
24904 # type: textblock
24905 #. type: textblock
24906 #: ../fish/guestfish-actions.pod:643
24907 msgid ""
24908 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24909 "device named C<device>.  For the types of checksums supported see the L</"
24910 "checksum> command."
24911 msgstr ""
24912
24913 # type: =head2
24914 #. type: =head2
24915 #: ../fish/guestfish-actions.pod:647
24916 msgid "checksums-out"
24917 msgstr ""
24918
24919 # type: verbatim
24920 #. type: verbatim
24921 #: ../fish/guestfish-actions.pod:649
24922 #, no-wrap
24923 msgid ""
24924 " checksums-out csumtype directory (sumsfile|-)\n"
24925 "\n"
24926 msgstr ""
24927
24928 # type: =head2
24929 #. type: =head2
24930 #: ../fish/guestfish-actions.pod:665
24931 msgid "chmod"
24932 msgstr ""
24933
24934 # type: verbatim
24935 #. type: verbatim
24936 #: ../fish/guestfish-actions.pod:667
24937 #, no-wrap
24938 msgid ""
24939 " chmod mode path\n"
24940 "\n"
24941 msgstr ""
24942
24943 # type: =head2
24944 #. type: =head2
24945 #: ../fish/guestfish-actions.pod:678
24946 msgid "chown"
24947 msgstr ""
24948
24949 # type: verbatim
24950 #. type: verbatim
24951 #: ../fish/guestfish-actions.pod:680
24952 #, no-wrap
24953 msgid ""
24954 " chown owner group path\n"
24955 "\n"
24956 msgstr ""
24957
24958 # type: =head2
24959 #. type: =head2
24960 #: ../fish/guestfish-actions.pod:688
24961 msgid "command"
24962 msgstr ""
24963
24964 # type: verbatim
24965 #. type: verbatim
24966 #: ../fish/guestfish-actions.pod:690
24967 #, no-wrap
24968 msgid ""
24969 " command 'arguments ...'\n"
24970 "\n"
24971 msgstr ""
24972
24973 # type: textblock
24974 #. type: textblock
24975 #: ../fish/guestfish-actions.pod:697
24976 msgid ""
24977 "The single parameter is an argv-style list of arguments.  The first element "
24978 "is the name of the program to run.  Subsequent elements are parameters.  The "
24979 "list must be non-empty (ie. must contain a program name).  Note that the "
24980 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24981 msgstr ""
24982
24983 # type: =head2
24984 #. type: =head2
24985 #: ../fish/guestfish-actions.pod:725
24986 msgid "command-lines"
24987 msgstr ""
24988
24989 # type: verbatim
24990 #. type: verbatim
24991 #: ../fish/guestfish-actions.pod:727
24992 #, no-wrap
24993 msgid ""
24994 " command-lines 'arguments ...'\n"
24995 "\n"
24996 msgstr ""
24997
24998 # type: textblock
24999 #. type: textblock
25000 #: ../fish/guestfish-actions.pod:729
25001 msgid ""
25002 "This is the same as L</command>, but splits the result into a list of lines."
25003 msgstr ""
25004
25005 # type: textblock
25006 #. type: textblock
25007 #: ../fish/guestfish-actions.pod:732
25008 msgid "See also: L</sh-lines>"
25009 msgstr ""
25010
25011 # type: =head2
25012 #. type: =head2
25013 #: ../fish/guestfish-actions.pod:737
25014 msgid "config"
25015 msgstr ""
25016
25017 # type: verbatim
25018 #. type: verbatim
25019 #: ../fish/guestfish-actions.pod:739
25020 #, no-wrap
25021 msgid ""
25022 " config qemuparam qemuvalue\n"
25023 "\n"
25024 msgstr ""
25025
25026 # type: =head2
25027 #. type: =head2
25028 #: ../fish/guestfish-actions.pod:750
25029 msgid "copy-size"
25030 msgstr ""
25031
25032 # type: verbatim
25033 #. type: verbatim
25034 #: ../fish/guestfish-actions.pod:752
25035 #, no-wrap
25036 msgid ""
25037 " copy-size src dest size\n"
25038 "\n"
25039 msgstr ""
25040
25041 # type: =head2
25042 #. type: =head2
25043 #: ../fish/guestfish-actions.pod:760
25044 msgid "cp"
25045 msgstr ""
25046
25047 # type: verbatim
25048 #. type: verbatim
25049 #: ../fish/guestfish-actions.pod:762
25050 #, no-wrap
25051 msgid ""
25052 " cp src dest\n"
25053 "\n"
25054 msgstr ""
25055
25056 # type: =head2
25057 #. type: =head2
25058 #: ../fish/guestfish-actions.pod:767
25059 msgid "cp-a"
25060 msgstr ""
25061
25062 # type: verbatim
25063 #. type: verbatim
25064 #: ../fish/guestfish-actions.pod:769
25065 #, no-wrap
25066 msgid ""
25067 " cp-a src dest\n"
25068 "\n"
25069 msgstr ""
25070
25071 # type: =head2
25072 #. type: =head2
25073 #: ../fish/guestfish-actions.pod:774
25074 msgid "dd"
25075 msgstr ""
25076
25077 # type: verbatim
25078 #. type: verbatim
25079 #: ../fish/guestfish-actions.pod:776
25080 #, no-wrap
25081 msgid ""
25082 " dd src dest\n"
25083 "\n"
25084 msgstr ""
25085
25086 # type: textblock
25087 #. type: textblock
25088 #: ../fish/guestfish-actions.pod:783
25089 msgid ""
25090 "If the destination is a device, it must be as large or larger than the "
25091 "source file or device, otherwise the copy will fail.  This command cannot do "
25092 "partial copies (see L</copy-size>)."
25093 msgstr ""
25094
25095 # type: =head2
25096 #. type: =head2
25097 #: ../fish/guestfish-actions.pod:787
25098 msgid "df"
25099 msgstr ""
25100
25101 # type: verbatim
25102 #. type: verbatim
25103 #: ../fish/guestfish-actions.pod:789
25104 #, no-wrap
25105 msgid ""
25106 " df\n"
25107 "\n"
25108 msgstr ""
25109
25110 # type: textblock
25111 #. type: textblock
25112 #: ../fish/guestfish-actions.pod:793 ../fish/guestfish-actions.pod:804
25113 msgid ""
25114 "This command is mostly useful for interactive sessions.  It is I<not> "
25115 "intended that you try to parse the output string.  Use L</statvfs> from "
25116 "programs."
25117 msgstr ""
25118
25119 # type: =head2
25120 #. type: =head2
25121 #: ../fish/guestfish-actions.pod:797
25122 msgid "df-h"
25123 msgstr ""
25124
25125 # type: verbatim
25126 #. type: verbatim
25127 #: ../fish/guestfish-actions.pod:799
25128 #, no-wrap
25129 msgid ""
25130 " df-h\n"
25131 "\n"
25132 msgstr ""
25133
25134 # type: =head2
25135 #. type: =head2
25136 #: ../fish/guestfish-actions.pod:808
25137 msgid "dmesg"
25138 msgstr ""
25139
25140 # type: verbatim
25141 #. type: verbatim
25142 #: ../fish/guestfish-actions.pod:810
25143 #, no-wrap
25144 msgid ""
25145 " dmesg\n"
25146 "\n"
25147 msgstr ""
25148
25149 # type: textblock
25150 #. type: textblock
25151 #: ../fish/guestfish-actions.pod:816
25152 msgid ""
25153 "Another way to get the same information is to enable verbose messages with "
25154 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
25155 "before running the program."
25156 msgstr ""
25157
25158 # type: =head2
25159 #. type: =head2
25160 #: ../fish/guestfish-actions.pod:821
25161 msgid "download"
25162 msgstr ""
25163
25164 # type: verbatim
25165 #. type: verbatim
25166 #: ../fish/guestfish-actions.pod:823
25167 #, no-wrap
25168 msgid ""
25169 " download remotefilename (filename|-)\n"
25170 "\n"
25171 msgstr ""
25172
25173 # type: textblock
25174 #. type: textblock
25175 #: ../fish/guestfish-actions.pod:830
25176 msgid "See also L</upload>, L</cat>."
25177 msgstr ""
25178
25179 # type: =head2
25180 #. type: =head2
25181 #: ../fish/guestfish-actions.pod:834
25182 msgid "download-offset"
25183 msgstr ""
25184
25185 # type: verbatim
25186 #. type: verbatim
25187 #: ../fish/guestfish-actions.pod:836
25188 #, no-wrap
25189 msgid ""
25190 " download-offset remotefilename (filename|-) offset size\n"
25191 "\n"
25192 msgstr ""
25193
25194 # type: textblock
25195 #. type: textblock
25196 #: ../fish/guestfish-actions.pod:844
25197 msgid ""
25198 "Note that there is no limit on the amount of data that can be downloaded "
25199 "with this call, unlike with L</pread>, and this call always reads the full "
25200 "amount unless an error occurs."
25201 msgstr ""
25202
25203 # type: textblock
25204 #. type: textblock
25205 #: ../fish/guestfish-actions.pod:849
25206 msgid "See also L</download>, L</pread>."
25207 msgstr ""
25208
25209 # type: =head2
25210 #. type: =head2
25211 #: ../fish/guestfish-actions.pod:853
25212 msgid "drop-caches"
25213 msgstr ""
25214
25215 # type: verbatim
25216 #. type: verbatim
25217 #: ../fish/guestfish-actions.pod:855
25218 #, no-wrap
25219 msgid ""
25220 " drop-caches whattodrop\n"
25221 "\n"
25222 msgstr ""
25223
25224 # type: =head2
25225 #. type: =head2
25226 #: ../fish/guestfish-actions.pod:867
25227 msgid "du"
25228 msgstr ""
25229
25230 # type: verbatim
25231 #. type: verbatim
25232 #: ../fish/guestfish-actions.pod:869
25233 #, no-wrap
25234 msgid ""
25235 " du path\n"
25236 "\n"
25237 msgstr ""
25238
25239 # type: =head2
25240 #. type: =head2
25241 #: ../fish/guestfish-actions.pod:881
25242 msgid "e2fsck-f"
25243 msgstr ""
25244
25245 # type: verbatim
25246 #. type: verbatim
25247 #: ../fish/guestfish-actions.pod:883
25248 #, no-wrap
25249 msgid ""
25250 " e2fsck-f device\n"
25251 "\n"
25252 msgstr ""
25253
25254 # type: textblock
25255 #. type: textblock
25256 #: ../fish/guestfish-actions.pod:889
25257 msgid ""
25258 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
25259 "should use L</fsck>."
25260 msgstr ""
25261
25262 # type: =head2
25263 #. type: =head2
25264 #: ../fish/guestfish-actions.pod:892
25265 msgid "echo-daemon"
25266 msgstr ""
25267
25268 # type: verbatim
25269 #. type: verbatim
25270 #: ../fish/guestfish-actions.pod:894
25271 #, no-wrap
25272 msgid ""
25273 " echo-daemon 'words ...'\n"
25274 "\n"
25275 msgstr ""
25276
25277 # type: textblock
25278 #. type: textblock
25279 #: ../fish/guestfish-actions.pod:901
25280 msgid "See also L</ping-daemon>."
25281 msgstr ""
25282
25283 # type: =head2
25284 #. type: =head2
25285 #: ../fish/guestfish-actions.pod:903
25286 msgid "egrep"
25287 msgstr ""
25288
25289 # type: verbatim
25290 #. type: verbatim
25291 #: ../fish/guestfish-actions.pod:905
25292 #, no-wrap
25293 msgid ""
25294 " egrep regex path\n"
25295 "\n"
25296 msgstr ""
25297
25298 # type: =head2
25299 #. type: =head2
25300 #: ../fish/guestfish-actions.pod:913
25301 msgid "egrepi"
25302 msgstr ""
25303
25304 # type: verbatim
25305 #. type: verbatim
25306 #: ../fish/guestfish-actions.pod:915
25307 #, no-wrap
25308 msgid ""
25309 " egrepi regex path\n"
25310 "\n"
25311 msgstr ""
25312
25313 # type: =head2
25314 #. type: =head2
25315 #: ../fish/guestfish-actions.pod:923
25316 msgid "equal"
25317 msgstr ""
25318
25319 # type: verbatim
25320 #. type: verbatim
25321 #: ../fish/guestfish-actions.pod:925
25322 #, no-wrap
25323 msgid ""
25324 " equal file1 file2\n"
25325 "\n"
25326 msgstr ""
25327
25328 # type: =head2
25329 #. type: =head2
25330 #: ../fish/guestfish-actions.pod:932
25331 msgid "exists"
25332 msgstr ""
25333
25334 # type: verbatim
25335 #. type: verbatim
25336 #: ../fish/guestfish-actions.pod:934
25337 #, no-wrap
25338 msgid ""
25339 " exists path\n"
25340 "\n"
25341 msgstr ""
25342
25343 # type: textblock
25344 #. type: textblock
25345 #: ../fish/guestfish-actions.pod:939
25346 msgid "See also L</is-file>, L</is-dir>, L</stat>."
25347 msgstr ""
25348
25349 # type: =head2
25350 #. type: =head2
25351 #: ../fish/guestfish-actions.pod:941
25352 msgid "fallocate"
25353 msgstr ""
25354
25355 # type: verbatim
25356 #. type: verbatim
25357 #: ../fish/guestfish-actions.pod:943
25358 #, no-wrap
25359 msgid ""
25360 " fallocate path len\n"
25361 "\n"
25362 msgstr ""
25363
25364 # type: =head2
25365 #. type: =head2
25366 #: ../fish/guestfish-actions.pod:960
25367 msgid "fallocate64"
25368 msgstr ""
25369
25370 # type: verbatim
25371 #. type: verbatim
25372 #: ../fish/guestfish-actions.pod:962
25373 #, no-wrap
25374 msgid ""
25375 " fallocate64 path len\n"
25376 "\n"
25377 msgstr ""
25378
25379 # type: textblock
25380 #. type: textblock
25381 #: ../fish/guestfish-actions.pod:968
25382 msgid ""
25383 "Note that this call allocates disk blocks for the file.  To create a sparse "
25384 "file use L</truncate-size> instead."
25385 msgstr ""
25386
25387 # type: textblock
25388 #. type: textblock
25389 #: ../fish/guestfish-actions.pod:971
25390 msgid ""
25391 "The deprecated call L</fallocate> does the same, but owing to an oversight "
25392 "it only allowed 30 bit lengths to be specified, effectively limiting the "
25393 "maximum size of files created through that call to 1GB."
25394 msgstr ""
25395
25396 # type: =head2
25397 #. type: =head2
25398 #: ../fish/guestfish-actions.pod:980
25399 msgid "fgrep"
25400 msgstr ""
25401
25402 # type: verbatim
25403 #. type: verbatim
25404 #: ../fish/guestfish-actions.pod:982
25405 #, no-wrap
25406 msgid ""
25407 " fgrep pattern path\n"
25408 "\n"
25409 msgstr ""
25410
25411 # type: =head2
25412 #. type: =head2
25413 #: ../fish/guestfish-actions.pod:990
25414 msgid "fgrepi"
25415 msgstr ""
25416
25417 # type: verbatim
25418 #. type: verbatim
25419 #: ../fish/guestfish-actions.pod:992
25420 #, no-wrap
25421 msgid ""
25422 " fgrepi pattern path\n"
25423 "\n"
25424 msgstr ""
25425
25426 # type: =head2
25427 #. type: =head2
25428 #: ../fish/guestfish-actions.pod:1000
25429 msgid "file"
25430 msgstr ""
25431
25432 # type: verbatim
25433 #. type: verbatim
25434 #: ../fish/guestfish-actions.pod:1002
25435 #, no-wrap
25436 msgid ""
25437 " file path\n"
25438 "\n"
25439 msgstr ""
25440
25441 # type: textblock
25442 #. type: textblock
25443 #: ../fish/guestfish-actions.pod:1014
25444 msgid ""
25445 "This command can also be used on C</dev/> devices (and partitions, LV "
25446 "names).  You can for example use this to determine if a device contains a "
25447 "filesystem, although it's usually better to use L</vfs-type>."
25448 msgstr ""
25449
25450 # type: =head2
25451 #. type: =head2
25452 #: ../fish/guestfish-actions.pod:1024
25453 msgid "file-architecture"
25454 msgstr ""
25455
25456 # type: verbatim
25457 #. type: verbatim
25458 #: ../fish/guestfish-actions.pod:1026
25459 #, no-wrap
25460 msgid ""
25461 " file-architecture filename\n"
25462 "\n"
25463 msgstr ""
25464
25465 # type: =head2
25466 #. type: =head2
25467 #: ../fish/guestfish-actions.pod:1129
25468 msgid "filesize"
25469 msgstr ""
25470
25471 # type: verbatim
25472 #. type: verbatim
25473 #: ../fish/guestfish-actions.pod:1131
25474 #, no-wrap
25475 msgid ""
25476 " filesize file\n"
25477 "\n"
25478 msgstr ""
25479
25480 # type: textblock
25481 #. type: textblock
25482 #: ../fish/guestfish-actions.pod:1135
25483 msgid ""
25484 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
25485 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
25486 msgstr ""
25487
25488 # type: =head2
25489 #. type: =head2
25490 #: ../fish/guestfish-actions.pod:1139
25491 msgid "fill"
25492 msgstr ""
25493
25494 # type: verbatim
25495 #. type: verbatim
25496 #: ../fish/guestfish-actions.pod:1141
25497 #, no-wrap
25498 msgid ""
25499 " fill c len path\n"
25500 "\n"
25501 msgstr ""
25502
25503 # type: textblock
25504 #. type: textblock
25505 #: ../fish/guestfish-actions.pod:1147
25506 msgid ""
25507 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25508 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
25509 "L</fill-pattern>."
25510 msgstr ""
25511
25512 # type: =head2
25513 #. type: =head2
25514 #: ../fish/guestfish-actions.pod:1152
25515 msgid "fill-pattern"
25516 msgstr ""
25517
25518 # type: verbatim
25519 #. type: verbatim
25520 #: ../fish/guestfish-actions.pod:1154
25521 #, no-wrap
25522 msgid ""
25523 " fill-pattern pattern len path\n"
25524 "\n"
25525 msgstr ""
25526
25527 # type: textblock
25528 #. type: textblock
25529 #: ../fish/guestfish-actions.pod:1156
25530 msgid ""
25531 "This function is like L</fill> except that it creates a new file of length "
25532 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
25533 "is truncated if necessary to ensure the length of the file is exactly C<len> "
25534 "bytes."
25535 msgstr ""
25536
25537 # type: =head2
25538 #. type: =head2
25539 #: ../fish/guestfish-actions.pod:1161
25540 msgid "find"
25541 msgstr ""
25542
25543 # type: verbatim
25544 #. type: verbatim
25545 #: ../fish/guestfish-actions.pod:1163
25546 #, no-wrap
25547 msgid ""
25548 " find directory\n"
25549 "\n"
25550 msgstr ""
25551
25552 # type: textblock
25553 #. type: textblock
25554 #: ../fish/guestfish-actions.pod:1177
25555 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
25556 msgstr ""
25557
25558 # type: textblock
25559 #. type: textblock
25560 #: ../fish/guestfish-actions.pod:1190
25561 msgid "See also L</find0>."
25562 msgstr ""
25563
25564 # type: =head2
25565 #. type: =head2
25566 #: ../fish/guestfish-actions.pod:1195
25567 msgid "find0"
25568 msgstr ""
25569
25570 # type: verbatim
25571 #. type: verbatim
25572 #: ../fish/guestfish-actions.pod:1197
25573 #, no-wrap
25574 msgid ""
25575 " find0 directory (files|-)\n"
25576 "\n"
25577 msgstr ""
25578
25579 # type: textblock
25580 #. type: textblock
25581 #: ../fish/guestfish-actions.pod:1203
25582 msgid ""
25583 "This command works the same way as L</find> with the following exceptions:"
25584 msgstr ""
25585
25586 # type: =head2
25587 #. type: =head2
25588 #: ../fish/guestfish-actions.pod:1230
25589 msgid "findfs-label"
25590 msgstr ""
25591
25592 # type: verbatim
25593 #. type: verbatim
25594 #: ../fish/guestfish-actions.pod:1232
25595 #, no-wrap
25596 msgid ""
25597 " findfs-label label\n"
25598 "\n"
25599 msgstr ""
25600
25601 # type: textblock
25602 #. type: textblock
25603 #: ../fish/guestfish-actions.pod:1238
25604 msgid "To find the label of a filesystem, use L</vfs-label>."
25605 msgstr ""
25606
25607 # type: =head2
25608 #. type: =head2
25609 #: ../fish/guestfish-actions.pod:1240
25610 msgid "findfs-uuid"
25611 msgstr ""
25612
25613 # type: verbatim
25614 #. type: verbatim
25615 #: ../fish/guestfish-actions.pod:1242
25616 #, no-wrap
25617 msgid ""
25618 " findfs-uuid uuid\n"
25619 "\n"
25620 msgstr ""
25621
25622 # type: textblock
25623 #. type: textblock
25624 #: ../fish/guestfish-actions.pod:1248
25625 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
25626 msgstr ""
25627
25628 # type: =head2
25629 #. type: =head2
25630 #: ../fish/guestfish-actions.pod:1250
25631 msgid "fsck"
25632 msgstr ""
25633
25634 # type: verbatim
25635 #. type: verbatim
25636 #: ../fish/guestfish-actions.pod:1252
25637 #, no-wrap
25638 msgid ""
25639 " fsck fstype device\n"
25640 "\n"
25641 msgstr ""
25642
25643 # type: =head2
25644 #. type: =head2
25645 #: ../fish/guestfish-actions.pod:1282
25646 msgid "get-append"
25647 msgstr ""
25648
25649 # type: verbatim
25650 #. type: verbatim
25651 #: ../fish/guestfish-actions.pod:1284
25652 #, no-wrap
25653 msgid ""
25654 " get-append\n"
25655 "\n"
25656 msgstr ""
25657
25658 #. type: =head2
25659 #: ../fish/guestfish-actions.pod:1291
25660 msgid "get-attach-method"
25661 msgstr ""
25662
25663 #. type: verbatim
25664 #: ../fish/guestfish-actions.pod:1293
25665 #, no-wrap
25666 msgid ""
25667 " get-attach-method\n"
25668 "\n"
25669 msgstr ""
25670
25671 #. type: textblock
25672 #: ../fish/guestfish-actions.pod:1295
25673 msgid "Return the current attach method.  See L</set-attach-method>."
25674 msgstr ""
25675
25676 # type: =head2
25677 #. type: =head2
25678 #: ../fish/guestfish-actions.pod:1297
25679 msgid "get-autosync"
25680 msgstr ""
25681
25682 # type: verbatim
25683 #. type: verbatim
25684 #: ../fish/guestfish-actions.pod:1299
25685 #, no-wrap
25686 msgid ""
25687 " get-autosync\n"
25688 "\n"
25689 msgstr ""
25690
25691 # type: =head2
25692 #. type: =head2
25693 #: ../fish/guestfish-actions.pod:1303
25694 msgid "get-direct"
25695 msgstr ""
25696
25697 # type: verbatim
25698 #. type: verbatim
25699 #: ../fish/guestfish-actions.pod:1305
25700 #, no-wrap
25701 msgid ""
25702 " get-direct\n"
25703 "\n"
25704 msgstr ""
25705
25706 # type: =head2
25707 #. type: =head2
25708 #: ../fish/guestfish-actions.pod:1309
25709 msgid "get-e2label"
25710 msgstr ""
25711
25712 # type: verbatim
25713 #. type: verbatim
25714 #: ../fish/guestfish-actions.pod:1311
25715 #, no-wrap
25716 msgid ""
25717 " get-e2label device\n"
25718 "\n"
25719 msgstr ""
25720
25721 # type: =head2
25722 #. type: =head2
25723 #: ../fish/guestfish-actions.pod:1323
25724 msgid "get-e2uuid"
25725 msgstr ""
25726
25727 # type: verbatim
25728 #. type: verbatim
25729 #: ../fish/guestfish-actions.pod:1325
25730 #, no-wrap
25731 msgid ""
25732 " get-e2uuid device\n"
25733 "\n"
25734 msgstr ""
25735
25736 # type: =head2
25737 #. type: =head2
25738 #: ../fish/guestfish-actions.pod:1337
25739 msgid "get-memsize"
25740 msgstr ""
25741
25742 # type: verbatim
25743 #. type: verbatim
25744 #: ../fish/guestfish-actions.pod:1339
25745 #, no-wrap
25746 msgid ""
25747 " get-memsize\n"
25748 "\n"
25749 msgstr ""
25750
25751 # type: textblock
25752 #. type: textblock
25753 #: ../fish/guestfish-actions.pod:1344
25754 msgid ""
25755 "If L</set-memsize> was not called on this handle, and if "
25756 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25757 "value for memsize."
25758 msgstr ""
25759
25760 # type: =head2
25761 #. type: =head2
25762 #: ../fish/guestfish-actions.pod:1351
25763 msgid "get-network"
25764 msgstr ""
25765
25766 # type: verbatim
25767 #. type: verbatim
25768 #: ../fish/guestfish-actions.pod:1353
25769 #, no-wrap
25770 msgid ""
25771 " get-network\n"
25772 "\n"
25773 msgstr ""
25774
25775 # type: =head2
25776 #. type: =head2
25777 #: ../fish/guestfish-actions.pod:1357
25778 msgid "get-path"
25779 msgstr ""
25780
25781 # type: verbatim
25782 #. type: verbatim
25783 #: ../fish/guestfish-actions.pod:1359
25784 #, no-wrap
25785 msgid ""
25786 " get-path\n"
25787 "\n"
25788 msgstr ""
25789
25790 # type: =head2
25791 #. type: =head2
25792 #: ../fish/guestfish-actions.pod:1366
25793 msgid "get-pid"
25794 msgstr ""
25795
25796 # type: =head2
25797 #. type: =head2
25798 #: ../fish/guestfish-actions.pod:1368
25799 msgid "pid"
25800 msgstr ""
25801
25802 # type: verbatim
25803 #. type: verbatim
25804 #: ../fish/guestfish-actions.pod:1370
25805 #, no-wrap
25806 msgid ""
25807 " get-pid\n"
25808 "\n"
25809 msgstr ""
25810
25811 # type: =head2
25812 #. type: =head2
25813 #: ../fish/guestfish-actions.pod:1377
25814 msgid "get-qemu"
25815 msgstr ""
25816
25817 # type: verbatim
25818 #. type: verbatim
25819 #: ../fish/guestfish-actions.pod:1379
25820 #, no-wrap
25821 msgid ""
25822 " get-qemu\n"
25823 "\n"
25824 msgstr ""
25825
25826 # type: =head2
25827 #. type: =head2
25828 #: ../fish/guestfish-actions.pod:1386
25829 msgid "get-recovery-proc"
25830 msgstr ""
25831
25832 # type: verbatim
25833 #. type: verbatim
25834 #: ../fish/guestfish-actions.pod:1388
25835 #, no-wrap
25836 msgid ""
25837 " get-recovery-proc\n"
25838 "\n"
25839 msgstr ""
25840
25841 # type: =head2
25842 #. type: =head2
25843 #: ../fish/guestfish-actions.pod:1392
25844 msgid "get-selinux"
25845 msgstr ""
25846
25847 # type: verbatim
25848 #. type: verbatim
25849 #: ../fish/guestfish-actions.pod:1394
25850 #, no-wrap
25851 msgid ""
25852 " get-selinux\n"
25853 "\n"
25854 msgstr ""
25855
25856 # type: textblock
25857 #. type: textblock
25858 #: ../fish/guestfish-actions.pod:1396
25859 msgid ""
25860 "This returns the current setting of the selinux flag which is passed to the "
25861 "appliance at boot time.  See L</set-selinux>."
25862 msgstr ""
25863
25864 # type: =head2
25865 #. type: =head2
25866 #: ../fish/guestfish-actions.pod:1402
25867 msgid "get-state"
25868 msgstr ""
25869
25870 # type: verbatim
25871 #. type: verbatim
25872 #: ../fish/guestfish-actions.pod:1404
25873 #, no-wrap
25874 msgid ""
25875 " get-state\n"
25876 "\n"
25877 msgstr ""
25878
25879 # type: =head2
25880 #. type: =head2
25881 #: ../fish/guestfish-actions.pod:1411
25882 msgid "get-trace"
25883 msgstr ""
25884
25885 # type: verbatim
25886 #. type: verbatim
25887 #: ../fish/guestfish-actions.pod:1413
25888 #, no-wrap
25889 msgid ""
25890 " get-trace\n"
25891 "\n"
25892 msgstr ""
25893
25894 # type: =head2
25895 #. type: =head2
25896 #: ../fish/guestfish-actions.pod:1417
25897 msgid "get-umask"
25898 msgstr ""
25899
25900 # type: verbatim
25901 #. type: verbatim
25902 #: ../fish/guestfish-actions.pod:1419
25903 #, no-wrap
25904 msgid ""
25905 " get-umask\n"
25906 "\n"
25907 msgstr ""
25908
25909 # type: textblock
25910 #. type: textblock
25911 #: ../fish/guestfish-actions.pod:1421
25912 msgid ""
25913 "Return the current umask.  By default the umask is C<022> unless it has been "
25914 "set by calling L</umask>."
25915 msgstr ""
25916
25917 # type: =head2
25918 #. type: =head2
25919 #: ../fish/guestfish-actions.pod:1424
25920 msgid "get-verbose"
25921 msgstr ""
25922
25923 # type: verbatim
25924 #. type: verbatim
25925 #: ../fish/guestfish-actions.pod:1426
25926 #, no-wrap
25927 msgid ""
25928 " get-verbose\n"
25929 "\n"
25930 msgstr ""
25931
25932 # type: =head2
25933 #. type: =head2
25934 #: ../fish/guestfish-actions.pod:1430
25935 msgid "getcon"
25936 msgstr ""
25937
25938 # type: verbatim
25939 #. type: verbatim
25940 #: ../fish/guestfish-actions.pod:1432
25941 #, no-wrap
25942 msgid ""
25943 " getcon\n"
25944 "\n"
25945 msgstr ""
25946
25947 # type: textblock
25948 #. type: textblock
25949 #: ../fish/guestfish-actions.pod:1436
25950 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25951 msgstr ""
25952
25953 # type: =head2
25954 #. type: =head2
25955 #: ../fish/guestfish-actions.pod:1439
25956 msgid "getxattr"
25957 msgstr ""
25958
25959 # type: verbatim
25960 #. type: verbatim
25961 #: ../fish/guestfish-actions.pod:1441
25962 #, no-wrap
25963 msgid ""
25964 " getxattr path name\n"
25965 "\n"
25966 msgstr ""
25967
25968 # type: textblock
25969 #. type: textblock
25970 #: ../fish/guestfish-actions.pod:1443
25971 msgid ""
25972 "Get a single extended attribute from file C<path> named C<name>.  This call "
25973 "follows symlinks.  If you want to lookup an extended attribute for the "
25974 "symlink itself, use L</lgetxattr>."
25975 msgstr ""
25976
25977 # type: textblock
25978 #. type: textblock
25979 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2383
25980 msgid ""
25981 "Normally it is better to get all extended attributes from a file in one go "
25982 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
25983 "buggy and do not provide a way to list out attributes.  For these "
25984 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25985 "attributes you want in advance and call this function."
25986 msgstr ""
25987
25988 # type: textblock
25989 #. type: textblock
25990 #: ../fish/guestfish-actions.pod:1457
25991 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25992 msgstr ""
25993
25994 # type: =head2
25995 #. type: =head2
25996 #: ../fish/guestfish-actions.pod:1459
25997 msgid "getxattrs"
25998 msgstr ""
25999
26000 # type: verbatim
26001 #. type: verbatim
26002 #: ../fish/guestfish-actions.pod:1461
26003 #, no-wrap
26004 msgid ""
26005 " getxattrs path\n"
26006 "\n"
26007 msgstr ""
26008
26009 # type: textblock
26010 #. type: textblock
26011 #: ../fish/guestfish-actions.pod:1469
26012 msgid "See also: L</lgetxattrs>, L<attr(5)>."
26013 msgstr ""
26014
26015 # type: =head2
26016 #. type: =head2
26017 #: ../fish/guestfish-actions.pod:1471
26018 msgid "glob-expand"
26019 msgstr ""
26020
26021 # type: verbatim
26022 #. type: verbatim
26023 #: ../fish/guestfish-actions.pod:1473
26024 #, no-wrap
26025 msgid ""
26026 " glob-expand pattern\n"
26027 "\n"
26028 msgstr ""
26029
26030 # type: =head2
26031 #. type: =head2
26032 #: ../fish/guestfish-actions.pod:1486
26033 msgid "grep"
26034 msgstr ""
26035
26036 # type: verbatim
26037 #. type: verbatim
26038 #: ../fish/guestfish-actions.pod:1488
26039 #, no-wrap
26040 msgid ""
26041 " grep regex path\n"
26042 "\n"
26043 msgstr ""
26044
26045 # type: =head2
26046 #. type: =head2
26047 #: ../fish/guestfish-actions.pod:1496
26048 msgid "grepi"
26049 msgstr ""
26050
26051 # type: verbatim
26052 #. type: verbatim
26053 #: ../fish/guestfish-actions.pod:1498
26054 #, no-wrap
26055 msgid ""
26056 " grepi regex path\n"
26057 "\n"
26058 msgstr ""
26059
26060 # type: =head2
26061 #. type: =head2
26062 #: ../fish/guestfish-actions.pod:1506
26063 msgid "grub-install"
26064 msgstr ""
26065
26066 # type: verbatim
26067 #. type: verbatim
26068 #: ../fish/guestfish-actions.pod:1508
26069 #, no-wrap
26070 msgid ""
26071 " grub-install root device\n"
26072 "\n"
26073 msgstr ""
26074
26075 # type: =head2
26076 #. type: =head2
26077 #: ../fish/guestfish-actions.pod:1524
26078 msgid "head"
26079 msgstr ""
26080
26081 # type: verbatim
26082 #. type: verbatim
26083 #: ../fish/guestfish-actions.pod:1526
26084 #, no-wrap
26085 msgid ""
26086 " head path\n"
26087 "\n"
26088 msgstr ""
26089
26090 # type: =head2
26091 #. type: =head2
26092 #: ../fish/guestfish-actions.pod:1534
26093 msgid "head-n"
26094 msgstr ""
26095
26096 # type: verbatim
26097 #. type: verbatim
26098 #: ../fish/guestfish-actions.pod:1536
26099 #, no-wrap
26100 msgid ""
26101 " head-n nrlines path\n"
26102 "\n"
26103 msgstr ""
26104
26105 # type: =head2
26106 #. type: =head2
26107 #: ../fish/guestfish-actions.pod:1549
26108 msgid "hexdump"
26109 msgstr ""
26110
26111 # type: verbatim
26112 #. type: verbatim
26113 #: ../fish/guestfish-actions.pod:1551
26114 #, no-wrap
26115 msgid ""
26116 " hexdump path\n"
26117 "\n"
26118 msgstr ""
26119
26120 # type: =head2
26121 #. type: =head2
26122 #: ../fish/guestfish-actions.pod:1559
26123 msgid "initrd-cat"
26124 msgstr ""
26125
26126 # type: verbatim
26127 #. type: verbatim
26128 #: ../fish/guestfish-actions.pod:1561
26129 #, no-wrap
26130 msgid ""
26131 " initrd-cat initrdpath filename\n"
26132 "\n"
26133 msgstr ""
26134
26135 # type: textblock
26136 #. type: textblock
26137 #: ../fish/guestfish-actions.pod:1573
26138 msgid "See also L</initrd-list>."
26139 msgstr ""
26140
26141 # type: =head2
26142 #. type: =head2
26143 #: ../fish/guestfish-actions.pod:1578
26144 msgid "initrd-list"
26145 msgstr ""
26146
26147 # type: verbatim
26148 #. type: verbatim
26149 #: ../fish/guestfish-actions.pod:1580
26150 #, no-wrap
26151 msgid ""
26152 " initrd-list path\n"
26153 "\n"
26154 msgstr ""
26155
26156 # type: =head2
26157 #. type: =head2
26158 #: ../fish/guestfish-actions.pod:1592
26159 msgid "inotify-add-watch"
26160 msgstr ""
26161
26162 # type: verbatim
26163 #. type: verbatim
26164 #: ../fish/guestfish-actions.pod:1594
26165 #, no-wrap
26166 msgid ""
26167 " inotify-add-watch path mask\n"
26168 "\n"
26169 msgstr ""
26170
26171 # type: =head2
26172 #. type: =head2
26173 #: ../fish/guestfish-actions.pod:1606
26174 msgid "inotify-close"
26175 msgstr ""
26176
26177 # type: verbatim
26178 #. type: verbatim
26179 #: ../fish/guestfish-actions.pod:1608
26180 #, no-wrap
26181 msgid ""
26182 " inotify-close\n"
26183 "\n"
26184 msgstr ""
26185
26186 # type: =head2
26187 #. type: =head2
26188 #: ../fish/guestfish-actions.pod:1614
26189 msgid "inotify-files"
26190 msgstr ""
26191
26192 # type: verbatim
26193 #. type: verbatim
26194 #: ../fish/guestfish-actions.pod:1616
26195 #, no-wrap
26196 msgid ""
26197 " inotify-files\n"
26198 "\n"
26199 msgstr ""
26200
26201 # type: textblock
26202 #. type: textblock
26203 #: ../fish/guestfish-actions.pod:1618
26204 msgid ""
26205 "This function is a helpful wrapper around L</inotify-read> which just "
26206 "returns a list of pathnames of objects that were touched.  The returned "
26207 "pathnames are sorted and deduplicated."
26208 msgstr ""
26209
26210 # type: =head2
26211 #. type: =head2
26212 #: ../fish/guestfish-actions.pod:1622
26213 msgid "inotify-init"
26214 msgstr ""
26215
26216 # type: verbatim
26217 #. type: verbatim
26218 #: ../fish/guestfish-actions.pod:1624
26219 #, no-wrap
26220 msgid ""
26221 " inotify-init maxevents\n"
26222 "\n"
26223 msgstr ""
26224
26225 # type: textblock
26226 #. type: textblock
26227 #: ../fish/guestfish-actions.pod:1630
26228 msgid ""
26229 "C<maxevents> is the maximum number of events which will be queued up between "
26230 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
26231 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
26232 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
26233 "but records the fact that it threw them away by setting a flag "
26234 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
26235 msgstr ""
26236
26237 # type: textblock
26238 #. type: textblock
26239 #: ../fish/guestfish-actions.pod:1640
26240 msgid ""
26241 "Before any events are generated, you have to add some watches to the "
26242 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
26243 "L</inotify-watch-all>."
26244 msgstr ""
26245
26246 # type: textblock
26247 #. type: textblock
26248 #: ../fish/guestfish-actions.pod:1646
26249 msgid ""
26250 "Queued up events should be read periodically by calling L</inotify-read> (or "
26251 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
26252 "If you don't read the events out often enough then you risk the internal "
26253 "queue overflowing."
26254 msgstr ""
26255
26256 # type: textblock
26257 #. type: textblock
26258 #: ../fish/guestfish-actions.pod:1653
26259 msgid ""
26260 "The handle should be closed after use by calling L</inotify-close>.  This "
26261 "also removes any watches automatically."
26262 msgstr ""
26263
26264 # type: =head2
26265 #. type: =head2
26266 #: ../fish/guestfish-actions.pod:1662
26267 msgid "inotify-read"
26268 msgstr ""
26269
26270 # type: verbatim
26271 #. type: verbatim
26272 #: ../fish/guestfish-actions.pod:1664
26273 #, no-wrap
26274 msgid ""
26275 " inotify-read\n"
26276 "\n"
26277 msgstr ""
26278
26279 # type: =head2
26280 #. type: =head2
26281 #: ../fish/guestfish-actions.pod:1677
26282 msgid "inotify-rm-watch"
26283 msgstr ""
26284
26285 # type: verbatim
26286 #. type: verbatim
26287 #: ../fish/guestfish-actions.pod:1679
26288 #, no-wrap
26289 msgid ""
26290 " inotify-rm-watch wd\n"
26291 "\n"
26292 msgstr ""
26293
26294 # type: textblock
26295 #. type: textblock
26296 #: ../fish/guestfish-actions.pod:1681
26297 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
26298 msgstr ""
26299
26300 # type: =head2
26301 #. type: =head2
26302 #: ../fish/guestfish-actions.pod:1684
26303 msgid "inspect-get-arch"
26304 msgstr ""
26305
26306 # type: verbatim
26307 #. type: verbatim
26308 #: ../fish/guestfish-actions.pod:1686
26309 #, no-wrap
26310 msgid ""
26311 " inspect-get-arch root\n"
26312 "\n"
26313 msgstr ""
26314
26315 # type: textblock
26316 #. type: textblock
26317 #: ../fish/guestfish-actions.pod:1688 ../fish/guestfish-actions.pod:1704
26318 #: ../fish/guestfish-actions.pod:1778 ../fish/guestfish-actions.pod:1796
26319 #: ../fish/guestfish-actions.pod:1830 ../fish/guestfish-actions.pod:1845
26320 #: ../fish/guestfish-actions.pod:1866 ../fish/guestfish-actions.pod:1881
26321 #: ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:1930
26322 #: ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1971
26323 #: ../fish/guestfish-actions.pod:2014 ../fish/guestfish-actions.pod:2049
26324 #: ../fish/guestfish-actions.pod:2065 ../fish/guestfish-actions.pod:2078
26325 #: ../fish/guestfish-actions.pod:2091 ../fish/guestfish-actions.pod:2106
26326 msgid ""
26327 "This function should only be called with a root device string as returned by "
26328 "L</inspect-os>."
26329 msgstr ""
26330
26331 # type: textblock
26332 #. type: textblock
26333 #: ../fish/guestfish-actions.pod:1691
26334 msgid ""
26335 "This returns the architecture of the inspected operating system.  The "
26336 "possible return values are listed under L</file-architecture>."
26337 msgstr ""
26338
26339 # type: =head2
26340 #. type: =head2
26341 #: ../fish/guestfish-actions.pod:1700
26342 msgid "inspect-get-distro"
26343 msgstr ""
26344
26345 # type: verbatim
26346 #. type: verbatim
26347 #: ../fish/guestfish-actions.pod:1702
26348 #, no-wrap
26349 msgid ""
26350 " inspect-get-distro root\n"
26351 "\n"
26352 msgstr ""
26353
26354 # type: =head2
26355 #. type: =head2
26356 #: ../fish/guestfish-actions.pod:1774
26357 msgid "inspect-get-filesystems"
26358 msgstr ""
26359
26360 # type: verbatim
26361 #. type: verbatim
26362 #: ../fish/guestfish-actions.pod:1776
26363 #, no-wrap
26364 msgid ""
26365 " inspect-get-filesystems root\n"
26366 "\n"
26367 msgstr ""
26368
26369 # type: textblock
26370 #. type: textblock
26371 #: ../fish/guestfish-actions.pod:1789
26372 msgid ""
26373 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26374 "get-mountpoints>."
26375 msgstr ""
26376
26377 #. type: =head2
26378 #: ../fish/guestfish-actions.pod:1792
26379 msgid "inspect-get-format"
26380 msgstr ""
26381
26382 #. type: verbatim
26383 #: ../fish/guestfish-actions.pod:1794
26384 #, no-wrap
26385 msgid ""
26386 " inspect-get-format root\n"
26387 "\n"
26388 msgstr ""
26389
26390 # type: =head2
26391 #. type: =head2
26392 #: ../fish/guestfish-actions.pod:1826
26393 msgid "inspect-get-hostname"
26394 msgstr ""
26395
26396 # type: verbatim
26397 #. type: verbatim
26398 #: ../fish/guestfish-actions.pod:1828
26399 #, no-wrap
26400 msgid ""
26401 " inspect-get-hostname root\n"
26402 "\n"
26403 msgstr ""
26404
26405 # type: =head2
26406 #. type: =head2
26407 #: ../fish/guestfish-actions.pod:1841
26408 msgid "inspect-get-major-version"
26409 msgstr ""
26410
26411 # type: verbatim
26412 #. type: verbatim
26413 #: ../fish/guestfish-actions.pod:1843
26414 #, no-wrap
26415 msgid ""
26416 " inspect-get-major-version root\n"
26417 "\n"
26418 msgstr ""
26419
26420 # type: =head2
26421 #. type: =head2
26422 #: ../fish/guestfish-actions.pod:1862
26423 msgid "inspect-get-minor-version"
26424 msgstr ""
26425
26426 # type: verbatim
26427 #. type: verbatim
26428 #: ../fish/guestfish-actions.pod:1864
26429 #, no-wrap
26430 msgid ""
26431 " inspect-get-minor-version root\n"
26432 "\n"
26433 msgstr ""
26434
26435 # type: textblock
26436 #. type: textblock
26437 #: ../fish/guestfish-actions.pod:1874
26438 msgid ""
26439 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26440 "get-major-version>."
26441 msgstr ""
26442
26443 # type: =head2
26444 #. type: =head2
26445 #: ../fish/guestfish-actions.pod:1877
26446 msgid "inspect-get-mountpoints"
26447 msgstr ""
26448
26449 # type: verbatim
26450 #. type: verbatim
26451 #: ../fish/guestfish-actions.pod:1879
26452 #, no-wrap
26453 msgid ""
26454 " inspect-get-mountpoints root\n"
26455 "\n"
26456 msgstr ""
26457
26458 # type: textblock
26459 #. type: textblock
26460 #: ../fish/guestfish-actions.pod:1901
26461 msgid ""
26462 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26463 "get-filesystems>."
26464 msgstr ""
26465
26466 # type: =head2
26467 #. type: =head2
26468 #: ../fish/guestfish-actions.pod:1904
26469 msgid "inspect-get-package-format"
26470 msgstr ""
26471
26472 # type: verbatim
26473 #. type: verbatim
26474 #: ../fish/guestfish-actions.pod:1906
26475 #, no-wrap
26476 msgid ""
26477 " inspect-get-package-format root\n"
26478 "\n"
26479 msgstr ""
26480
26481 # type: textblock
26482 #. type: textblock
26483 #: ../fish/guestfish-actions.pod:1911
26484 msgid ""
26485 "This function and L</inspect-get-package-management> return the package "
26486 "format and package management tool used by the inspected operating system.  "
26487 "For example for Fedora these functions would return C<rpm> (package format) "
26488 "and C<yum> (package management)."
26489 msgstr ""
26490
26491 # type: =head2
26492 #. type: =head2
26493 #: ../fish/guestfish-actions.pod:1926
26494 msgid "inspect-get-package-management"
26495 msgstr ""
26496
26497 # type: verbatim
26498 #. type: verbatim
26499 #: ../fish/guestfish-actions.pod:1928
26500 #, no-wrap
26501 msgid ""
26502 " inspect-get-package-management root\n"
26503 "\n"
26504 msgstr ""
26505
26506 # type: textblock
26507 #. type: textblock
26508 #: ../fish/guestfish-actions.pod:1933
26509 msgid ""
26510 "L</inspect-get-package-format> and this function return the package format "
26511 "and package management tool used by the inspected operating system.  For "
26512 "example for Fedora these functions would return C<rpm> (package format) and "
26513 "C<yum> (package management)."
26514 msgstr ""
26515
26516 # type: =head2
26517 #. type: =head2
26518 #: ../fish/guestfish-actions.pod:1950
26519 msgid "inspect-get-product-name"
26520 msgstr ""
26521
26522 # type: verbatim
26523 #. type: verbatim
26524 #: ../fish/guestfish-actions.pod:1952
26525 #, no-wrap
26526 msgid ""
26527 " inspect-get-product-name root\n"
26528 "\n"
26529 msgstr ""
26530
26531 #. type: =head2
26532 #: ../fish/guestfish-actions.pod:1967
26533 msgid "inspect-get-product-variant"
26534 msgstr ""
26535
26536 #. type: verbatim
26537 #: ../fish/guestfish-actions.pod:1969
26538 #, no-wrap
26539 msgid ""
26540 " inspect-get-product-variant root\n"
26541 "\n"
26542 msgstr ""
26543
26544 #. type: textblock
26545 #: ../fish/guestfish-actions.pod:1993
26546 msgid ""
26547 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
26548 "get-product-name>, L</inspect-get-major-version>."
26549 msgstr ""
26550
26551 # type: =head2
26552 #. type: =head2
26553 #: ../fish/guestfish-actions.pod:1997
26554 msgid "inspect-get-roots"
26555 msgstr ""
26556
26557 # type: verbatim
26558 #. type: verbatim
26559 #: ../fish/guestfish-actions.pod:1999
26560 #, no-wrap
26561 msgid ""
26562 " inspect-get-roots\n"
26563 "\n"
26564 msgstr ""
26565
26566 # type: textblock
26567 #. type: textblock
26568 #: ../fish/guestfish-actions.pod:2001
26569 msgid ""
26570 "This function is a convenient way to get the list of root devices, as "
26571 "returned from a previous call to L</inspect-os>, but without redoing the "
26572 "whole inspection process."
26573 msgstr ""
26574
26575 # type: textblock
26576 #. type: textblock
26577 #: ../fish/guestfish-actions.pod:2005
26578 msgid ""
26579 "This returns an empty list if either no root devices were found or the "
26580 "caller has not called L</inspect-os>."
26581 msgstr ""
26582
26583 # type: =head2
26584 #. type: =head2
26585 #: ../fish/guestfish-actions.pod:2010
26586 msgid "inspect-get-type"
26587 msgstr ""
26588
26589 # type: verbatim
26590 #. type: verbatim
26591 #: ../fish/guestfish-actions.pod:2012
26592 #, no-wrap
26593 msgid ""
26594 " inspect-get-type root\n"
26595 "\n"
26596 msgstr ""
26597
26598 # type: =head2
26599 #. type: =head2
26600 #: ../fish/guestfish-actions.pod:2045
26601 msgid "inspect-get-windows-systemroot"
26602 msgstr ""
26603
26604 # type: verbatim
26605 #. type: verbatim
26606 #: ../fish/guestfish-actions.pod:2047
26607 #, no-wrap
26608 msgid ""
26609 " inspect-get-windows-systemroot root\n"
26610 "\n"
26611 msgstr ""
26612
26613 #. type: =head2
26614 #: ../fish/guestfish-actions.pod:2061
26615 msgid "inspect-is-live"
26616 msgstr ""
26617
26618 #. type: verbatim
26619 #: ../fish/guestfish-actions.pod:2063
26620 #, no-wrap
26621 msgid ""
26622 " inspect-is-live root\n"
26623 "\n"
26624 msgstr ""
26625
26626 #. type: textblock
26627 #: ../fish/guestfish-actions.pod:2068
26628 msgid ""
26629 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26630 "then this returns true if a live image was detected on the disk."
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../fish/guestfish-actions.pod:2074
26635 msgid "inspect-is-multipart"
26636 msgstr ""
26637
26638 #. type: verbatim
26639 #: ../fish/guestfish-actions.pod:2076
26640 #, no-wrap
26641 msgid ""
26642 " inspect-is-multipart root\n"
26643 "\n"
26644 msgstr ""
26645
26646 #. type: textblock
26647 #: ../fish/guestfish-actions.pod:2081
26648 msgid ""
26649 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26650 "then this returns true if the disk is part of a set."
26651 msgstr ""
26652
26653 #. type: =head2
26654 #: ../fish/guestfish-actions.pod:2087
26655 msgid "inspect-is-netinst"
26656 msgstr ""
26657
26658 #. type: verbatim
26659 #: ../fish/guestfish-actions.pod:2089
26660 #, no-wrap
26661 msgid ""
26662 " inspect-is-netinst root\n"
26663 "\n"
26664 msgstr ""
26665
26666 #. type: textblock
26667 #: ../fish/guestfish-actions.pod:2094
26668 msgid ""
26669 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
26670 "then this returns true if the disk is a network installer, ie. not a self-"
26671 "contained install CD but one which is likely to require network access to "
26672 "complete the install."
26673 msgstr ""
26674
26675 # type: =head2
26676 #. type: =head2
26677 #: ../fish/guestfish-actions.pod:2102
26678 msgid "inspect-list-applications"
26679 msgstr ""
26680
26681 # type: verbatim
26682 #. type: verbatim
26683 #: ../fish/guestfish-actions.pod:2104
26684 #, no-wrap
26685 msgid ""
26686 " inspect-list-applications root\n"
26687 "\n"
26688 msgstr ""
26689
26690 # type: textblock
26691 #. type: textblock
26692 #: ../fish/guestfish-actions.pod:2111
26693 msgid ""
26694 "I<Note:> This call works differently from other parts of the inspection "
26695 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
26696 "then mount up the disks, before calling this.  Listing applications is a "
26697 "significantly more difficult operation which requires access to the full "
26698 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
26699 "are just returning data cached in the libguestfs handle, this call actually "
26700 "reads parts of the mounted filesystems during the call."
26701 msgstr ""
26702
26703 # type: =head2
26704 #. type: =head2
26705 #: ../fish/guestfish-actions.pod:2201
26706 msgid "inspect-os"
26707 msgstr ""
26708
26709 # type: verbatim
26710 #. type: verbatim
26711 #: ../fish/guestfish-actions.pod:2203
26712 #, no-wrap
26713 msgid ""
26714 " inspect-os\n"
26715 "\n"
26716 msgstr ""
26717
26718 # type: textblock
26719 #. type: textblock
26720 #: ../fish/guestfish-actions.pod:2218
26721 msgid ""
26722 "You can pass the root string(s) returned to other L</inspect-get-*> "
26723 "functions in order to query further information about each operating system, "
26724 "such as the name and version."
26725 msgstr ""
26726
26727 # type: textblock
26728 #. type: textblock
26729 #: ../fish/guestfish-actions.pod:2223
26730 msgid ""
26731 "This function uses other libguestfs features such as L</mount-ro> and L</"
26732 "umount-all> in order to mount and unmount filesystems and look at the "
26733 "contents.  This should be called with no disks currently mounted.  The "
26734 "function may also use Augeas, so any existing Augeas handle will be closed."
26735 msgstr ""
26736
26737 # type: textblock
26738 #. type: textblock
26739 #: ../fish/guestfish-actions.pod:2235 ../fish/guestfish-actions.pod:2411
26740 #: ../fish/guestfish-actions.pod:2457
26741 msgid "See also L</list-filesystems>."
26742 msgstr ""
26743
26744 # type: =head2
26745 #. type: =head2
26746 #: ../fish/guestfish-actions.pod:2237
26747 msgid "is-blockdev"
26748 msgstr ""
26749
26750 # type: verbatim
26751 #. type: verbatim
26752 #: ../fish/guestfish-actions.pod:2239
26753 #, no-wrap
26754 msgid ""
26755 " is-blockdev path\n"
26756 "\n"
26757 msgstr ""
26758
26759 # type: textblock
26760 #. type: textblock
26761 #: ../fish/guestfish-actions.pod:2244 ../fish/guestfish-actions.pod:2262
26762 #: ../fish/guestfish-actions.pod:2281 ../fish/guestfish-actions.pod:2290
26763 #: ../fish/guestfish-actions.pod:2300 ../fish/guestfish-actions.pod:2334
26764 #: ../fish/guestfish-actions.pod:2343
26765 msgid "See also L</stat>."
26766 msgstr ""
26767
26768 # type: =head2
26769 #. type: =head2
26770 #: ../fish/guestfish-actions.pod:2246
26771 msgid "is-busy"
26772 msgstr ""
26773
26774 # type: verbatim
26775 #. type: verbatim
26776 #: ../fish/guestfish-actions.pod:2248
26777 #, no-wrap
26778 msgid ""
26779 " is-busy\n"
26780 "\n"
26781 msgstr ""
26782
26783 # type: =head2
26784 #. type: =head2
26785 #: ../fish/guestfish-actions.pod:2255
26786 msgid "is-chardev"
26787 msgstr ""
26788
26789 # type: verbatim
26790 #. type: verbatim
26791 #: ../fish/guestfish-actions.pod:2257
26792 #, no-wrap
26793 msgid ""
26794 " is-chardev path\n"
26795 "\n"
26796 msgstr ""
26797
26798 # type: =head2
26799 #. type: =head2
26800 #: ../fish/guestfish-actions.pod:2264
26801 msgid "is-config"
26802 msgstr ""
26803
26804 # type: verbatim
26805 #. type: verbatim
26806 #: ../fish/guestfish-actions.pod:2266
26807 #, no-wrap
26808 msgid ""
26809 " is-config\n"
26810 "\n"
26811 msgstr ""
26812
26813 # type: =head2
26814 #. type: =head2
26815 #: ../fish/guestfish-actions.pod:2273
26816 msgid "is-dir"
26817 msgstr ""
26818
26819 # type: verbatim
26820 #. type: verbatim
26821 #: ../fish/guestfish-actions.pod:2275
26822 #, no-wrap
26823 msgid ""
26824 " is-dir path\n"
26825 "\n"
26826 msgstr ""
26827
26828 # type: =head2
26829 #. type: =head2
26830 #: ../fish/guestfish-actions.pod:2283
26831 msgid "is-fifo"
26832 msgstr ""
26833
26834 # type: verbatim
26835 #. type: verbatim
26836 #: ../fish/guestfish-actions.pod:2285
26837 #, no-wrap
26838 msgid ""
26839 " is-fifo path\n"
26840 "\n"
26841 msgstr ""
26842
26843 # type: =head2
26844 #. type: =head2
26845 #: ../fish/guestfish-actions.pod:2292
26846 msgid "is-file"
26847 msgstr ""
26848
26849 # type: verbatim
26850 #. type: verbatim
26851 #: ../fish/guestfish-actions.pod:2294
26852 #, no-wrap
26853 msgid ""
26854 " is-file path\n"
26855 "\n"
26856 msgstr ""
26857
26858 # type: =head2
26859 #. type: =head2
26860 #: ../fish/guestfish-actions.pod:2302
26861 msgid "is-launching"
26862 msgstr ""
26863
26864 # type: verbatim
26865 #. type: verbatim
26866 #: ../fish/guestfish-actions.pod:2304
26867 #, no-wrap
26868 msgid ""
26869 " is-launching\n"
26870 "\n"
26871 msgstr ""
26872
26873 # type: =head2
26874 #. type: =head2
26875 #: ../fish/guestfish-actions.pod:2311
26876 msgid "is-lv"
26877 msgstr ""
26878
26879 # type: verbatim
26880 #. type: verbatim
26881 #: ../fish/guestfish-actions.pod:2313
26882 #, no-wrap
26883 msgid ""
26884 " is-lv device\n"
26885 "\n"
26886 msgstr ""
26887
26888 # type: =head2
26889 #. type: =head2
26890 #: ../fish/guestfish-actions.pod:2318
26891 msgid "is-ready"
26892 msgstr ""
26893
26894 # type: verbatim
26895 #. type: verbatim
26896 #: ../fish/guestfish-actions.pod:2320
26897 #, no-wrap
26898 msgid ""
26899 " is-ready\n"
26900 "\n"
26901 msgstr ""
26902
26903 # type: =head2
26904 #. type: =head2
26905 #: ../fish/guestfish-actions.pod:2327
26906 msgid "is-socket"
26907 msgstr ""
26908
26909 # type: verbatim
26910 #. type: verbatim
26911 #: ../fish/guestfish-actions.pod:2329
26912 #, no-wrap
26913 msgid ""
26914 " is-socket path\n"
26915 "\n"
26916 msgstr ""
26917
26918 # type: =head2
26919 #. type: =head2
26920 #: ../fish/guestfish-actions.pod:2336
26921 msgid "is-symlink"
26922 msgstr ""
26923
26924 # type: verbatim
26925 #. type: verbatim
26926 #: ../fish/guestfish-actions.pod:2338
26927 #, no-wrap
26928 msgid ""
26929 " is-symlink path\n"
26930 "\n"
26931 msgstr ""
26932
26933 # type: =head2
26934 #. type: =head2
26935 #: ../fish/guestfish-actions.pod:2345
26936 msgid "kill-subprocess"
26937 msgstr ""
26938
26939 # type: verbatim
26940 #. type: verbatim
26941 #: ../fish/guestfish-actions.pod:2347
26942 #, no-wrap
26943 msgid ""
26944 " kill-subprocess\n"
26945 "\n"
26946 msgstr ""
26947
26948 # type: =head2
26949 #. type: =head2
26950 #: ../fish/guestfish-actions.pod:2351
26951 msgid "launch"
26952 msgstr ""
26953
26954 # type: =head2
26955 #. type: =head2
26956 #: ../fish/guestfish-actions.pod:2353
26957 msgid "run"
26958 msgstr ""
26959
26960 # type: verbatim
26961 #. type: verbatim
26962 #: ../fish/guestfish-actions.pod:2355
26963 #, no-wrap
26964 msgid ""
26965 " launch\n"
26966 "\n"
26967 msgstr ""
26968
26969 # type: =head2
26970 #. type: =head2
26971 #: ../fish/guestfish-actions.pod:2363
26972 msgid "lchown"
26973 msgstr ""
26974
26975 # type: verbatim
26976 #. type: verbatim
26977 #: ../fish/guestfish-actions.pod:2365
26978 #, no-wrap
26979 msgid ""
26980 " lchown owner group path\n"
26981 "\n"
26982 msgstr ""
26983
26984 # type: textblock
26985 #. type: textblock
26986 #: ../fish/guestfish-actions.pod:2367
26987 msgid ""
26988 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
26989 "chown> but if C<path> is a symlink then the link itself is changed, not the "
26990 "target."
26991 msgstr ""
26992
26993 # type: =head2
26994 #. type: =head2
26995 #: ../fish/guestfish-actions.pod:2375
26996 msgid "lgetxattr"
26997 msgstr ""
26998
26999 # type: verbatim
27000 #. type: verbatim
27001 #: ../fish/guestfish-actions.pod:2377
27002 #, no-wrap
27003 msgid ""
27004 " lgetxattr path name\n"
27005 "\n"
27006 msgstr ""
27007
27008 # type: textblock
27009 #. type: textblock
27010 #: ../fish/guestfish-actions.pod:2393
27011 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
27012 msgstr ""
27013
27014 # type: =head2
27015 #. type: =head2
27016 #: ../fish/guestfish-actions.pod:2395
27017 msgid "lgetxattrs"
27018 msgstr ""
27019
27020 # type: verbatim
27021 #. type: verbatim
27022 #: ../fish/guestfish-actions.pod:2397
27023 #, no-wrap
27024 msgid ""
27025 " lgetxattrs path\n"
27026 "\n"
27027 msgstr ""
27028
27029 # type: textblock
27030 #. type: textblock
27031 #: ../fish/guestfish-actions.pod:2399
27032 msgid ""
27033 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
27034 "it returns the extended attributes of the link itself."
27035 msgstr ""
27036
27037 # type: =head2
27038 #. type: =head2
27039 #: ../fish/guestfish-actions.pod:2403
27040 msgid "list-devices"
27041 msgstr ""
27042
27043 # type: verbatim
27044 #. type: verbatim
27045 #: ../fish/guestfish-actions.pod:2405
27046 #, no-wrap
27047 msgid ""
27048 " list-devices\n"
27049 "\n"
27050 msgstr ""
27051
27052 # type: =head2
27053 #. type: =head2
27054 #: ../fish/guestfish-actions.pod:2413
27055 msgid "list-filesystems"
27056 msgstr ""
27057
27058 # type: verbatim
27059 #. type: verbatim
27060 #: ../fish/guestfish-actions.pod:2415
27061 #, no-wrap
27062 msgid ""
27063 " list-filesystems\n"
27064 "\n"
27065 msgstr ""
27066
27067 # type: textblock
27068 #. type: textblock
27069 #: ../fish/guestfish-actions.pod:2434
27070 msgid ""
27071 "This command runs other libguestfs commands, which might include L</mount> "
27072 "and L</umount>, and therefore you should use this soon after launch and only "
27073 "when nothing is mounted."
27074 msgstr ""
27075
27076 # type: textblock
27077 #. type: textblock
27078 #: ../fish/guestfish-actions.pod:2438
27079 msgid ""
27080 "Not all of the filesystems returned will be mountable.  In particular, swap "
27081 "partitions are returned in the list.  Also this command does not check that "
27082 "each filesystem found is valid and mountable, and some filesystems might be "
27083 "mountable but require special options.  Filesystems may not all belong to a "
27084 "single logical operating system (use L</inspect-os> to look for OSes)."
27085 msgstr ""
27086
27087 # type: =head2
27088 #. type: =head2
27089 #: ../fish/guestfish-actions.pod:2446
27090 msgid "list-partitions"
27091 msgstr ""
27092
27093 # type: verbatim
27094 #. type: verbatim
27095 #: ../fish/guestfish-actions.pod:2448
27096 #, no-wrap
27097 msgid ""
27098 " list-partitions\n"
27099 "\n"
27100 msgstr ""
27101
27102 # type: textblock
27103 #. type: textblock
27104 #: ../fish/guestfish-actions.pod:2454
27105 msgid ""
27106 "This does not return logical volumes.  For that you will need to call L</"
27107 "lvs>."
27108 msgstr ""
27109
27110 # type: =head2
27111 #. type: =head2
27112 #: ../fish/guestfish-actions.pod:2459
27113 msgid "ll"
27114 msgstr ""
27115
27116 # type: verbatim
27117 #. type: verbatim
27118 #: ../fish/guestfish-actions.pod:2461
27119 #, no-wrap
27120 msgid ""
27121 " ll directory\n"
27122 "\n"
27123 msgstr ""
27124
27125 # type: =head2
27126 #. type: =head2
27127 #: ../fish/guestfish-actions.pod:2469
27128 msgid "ln"
27129 msgstr ""
27130
27131 # type: verbatim
27132 #. type: verbatim
27133 #: ../fish/guestfish-actions.pod:2471
27134 #, no-wrap
27135 msgid ""
27136 " ln target linkname\n"
27137 "\n"
27138 msgstr ""
27139
27140 # type: =head2
27141 #. type: =head2
27142 #: ../fish/guestfish-actions.pod:2475
27143 msgid "ln-f"
27144 msgstr ""
27145
27146 # type: verbatim
27147 #. type: verbatim
27148 #: ../fish/guestfish-actions.pod:2477
27149 #, no-wrap
27150 msgid ""
27151 " ln-f target linkname\n"
27152 "\n"
27153 msgstr ""
27154
27155 # type: =head2
27156 #. type: =head2
27157 #: ../fish/guestfish-actions.pod:2482
27158 msgid "ln-s"
27159 msgstr ""
27160
27161 # type: verbatim
27162 #. type: verbatim
27163 #: ../fish/guestfish-actions.pod:2484
27164 #, no-wrap
27165 msgid ""
27166 " ln-s target linkname\n"
27167 "\n"
27168 msgstr ""
27169
27170 # type: =head2
27171 #. type: =head2
27172 #: ../fish/guestfish-actions.pod:2488
27173 msgid "ln-sf"
27174 msgstr ""
27175
27176 # type: verbatim
27177 #. type: verbatim
27178 #: ../fish/guestfish-actions.pod:2490
27179 #, no-wrap
27180 msgid ""
27181 " ln-sf target linkname\n"
27182 "\n"
27183 msgstr ""
27184
27185 # type: =head2
27186 #. type: =head2
27187 #: ../fish/guestfish-actions.pod:2495
27188 msgid "lremovexattr"
27189 msgstr ""
27190
27191 # type: verbatim
27192 #. type: verbatim
27193 #: ../fish/guestfish-actions.pod:2497
27194 #, no-wrap
27195 msgid ""
27196 " lremovexattr xattr path\n"
27197 "\n"
27198 msgstr ""
27199
27200 # type: textblock
27201 #. type: textblock
27202 #: ../fish/guestfish-actions.pod:2499
27203 msgid ""
27204 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
27205 "it removes an extended attribute of the link itself."
27206 msgstr ""
27207
27208 # type: =head2
27209 #. type: =head2
27210 #: ../fish/guestfish-actions.pod:2503
27211 msgid "ls"
27212 msgstr ""
27213
27214 # type: verbatim
27215 #. type: verbatim
27216 #: ../fish/guestfish-actions.pod:2505
27217 #, no-wrap
27218 msgid ""
27219 " ls directory\n"
27220 "\n"
27221 msgstr ""
27222
27223 # type: textblock
27224 #. type: textblock
27225 #: ../fish/guestfish-actions.pod:2511
27226 msgid ""
27227 "This command is mostly useful for interactive sessions.  Programs should "
27228 "probably use L</readdir> instead."
27229 msgstr ""
27230
27231 # type: =head2
27232 #. type: =head2
27233 #: ../fish/guestfish-actions.pod:2514
27234 msgid "lsetxattr"
27235 msgstr ""
27236
27237 # type: verbatim
27238 #. type: verbatim
27239 #: ../fish/guestfish-actions.pod:2516
27240 #, no-wrap
27241 msgid ""
27242 " lsetxattr xattr val vallen path\n"
27243 "\n"
27244 msgstr ""
27245
27246 # type: textblock
27247 #. type: textblock
27248 #: ../fish/guestfish-actions.pod:2518
27249 msgid ""
27250 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
27251 "sets an extended attribute of the link itself."
27252 msgstr ""
27253
27254 # type: =head2
27255 #. type: =head2
27256 #: ../fish/guestfish-actions.pod:2522
27257 msgid "lstat"
27258 msgstr ""
27259
27260 # type: verbatim
27261 #. type: verbatim
27262 #: ../fish/guestfish-actions.pod:2524
27263 #, no-wrap
27264 msgid ""
27265 " lstat path\n"
27266 "\n"
27267 msgstr ""
27268
27269 # type: textblock
27270 #. type: textblock
27271 #: ../fish/guestfish-actions.pod:2528
27272 msgid ""
27273 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
27274 "the link is stat-ed, not the file it refers to."
27275 msgstr ""
27276
27277 # type: =head2
27278 #. type: =head2
27279 #: ../fish/guestfish-actions.pod:2534
27280 msgid "lstatlist"
27281 msgstr ""
27282
27283 # type: verbatim
27284 #. type: verbatim
27285 #: ../fish/guestfish-actions.pod:2536
27286 #, no-wrap
27287 msgid ""
27288 " lstatlist path 'names ...'\n"
27289 "\n"
27290 msgstr ""
27291
27292 # type: textblock
27293 #. type: textblock
27294 #: ../fish/guestfish-actions.pod:2538
27295 msgid ""
27296 "This call allows you to perform the L</lstat> operation on multiple files, "
27297 "where all files are in the directory C<path>.  C<names> is the list of files "
27298 "from this directory."
27299 msgstr ""
27300
27301 # type: textblock
27302 #. type: textblock
27303 #: ../fish/guestfish-actions.pod:2547
27304 msgid ""
27305 "This call is intended for programs that want to efficiently list a directory "
27306 "contents without making many round-trips.  See also L</lxattrlist> for a "
27307 "similarly efficient call for getting extended attributes.  Very long "
27308 "directory listings might cause the protocol message size to be exceeded, "
27309 "causing this call to fail.  The caller must split up such requests into "
27310 "smaller groups of names."
27311 msgstr ""
27312
27313 # type: =head2
27314 #. type: =head2
27315 #: ../fish/guestfish-actions.pod:2555
27316 msgid "luks-add-key"
27317 msgstr ""
27318
27319 # type: verbatim
27320 #. type: verbatim
27321 #: ../fish/guestfish-actions.pod:2557
27322 #, no-wrap
27323 msgid ""
27324 " luks-add-key device keyslot\n"
27325 "\n"
27326 msgstr ""
27327
27328 # type: textblock
27329 #. type: textblock
27330 #: ../fish/guestfish-actions.pod:2564
27331 msgid ""
27332 "Note that if C<keyslot> already contains a key, then this command will "
27333 "fail.  You have to use L</luks-kill-slot> first to remove that key."
27334 msgstr ""
27335
27336 # type: textblock
27337 #. type: textblock
27338 #: ../fish/guestfish-actions.pod:2568 ../fish/guestfish-actions.pod:2590
27339 #: ../fish/guestfish-actions.pod:2603 ../fish/guestfish-actions.pod:2617
27340 #: ../fish/guestfish-actions.pod:2640 ../fish/guestfish-actions.pod:2650
27341 msgid ""
27342 "This command has one or more key or passphrase parameters.  Guestfish will "
27343 "prompt for these separately."
27344 msgstr ""
27345
27346 # type: =head2
27347 #. type: =head2
27348 #: ../fish/guestfish-actions.pod:2571
27349 msgid "luks-close"
27350 msgstr ""
27351
27352 # type: verbatim
27353 #. type: verbatim
27354 #: ../fish/guestfish-actions.pod:2573
27355 #, no-wrap
27356 msgid ""
27357 " luks-close device\n"
27358 "\n"
27359 msgstr ""
27360
27361 # type: textblock
27362 #. type: textblock
27363 #: ../fish/guestfish-actions.pod:2575
27364 msgid ""
27365 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
27366 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
27367 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
27368 "block device."
27369 msgstr ""
27370
27371 # type: =head2
27372 #. type: =head2
27373 #: ../fish/guestfish-actions.pod:2581
27374 msgid "luks-format"
27375 msgstr ""
27376
27377 # type: verbatim
27378 #. type: verbatim
27379 #: ../fish/guestfish-actions.pod:2583
27380 #, no-wrap
27381 msgid ""
27382 " luks-format device keyslot\n"
27383 "\n"
27384 msgstr ""
27385
27386 # type: =head2
27387 #. type: =head2
27388 #: ../fish/guestfish-actions.pod:2596
27389 msgid "luks-format-cipher"
27390 msgstr ""
27391
27392 # type: verbatim
27393 #. type: verbatim
27394 #: ../fish/guestfish-actions.pod:2598
27395 #, no-wrap
27396 msgid ""
27397 " luks-format-cipher device keyslot cipher\n"
27398 "\n"
27399 msgstr ""
27400
27401 # type: textblock
27402 #. type: textblock
27403 #: ../fish/guestfish-actions.pod:2600
27404 msgid ""
27405 "This command is the same as L</luks-format> but it also allows you to set "
27406 "the C<cipher> used."
27407 msgstr ""
27408
27409 # type: =head2
27410 #. type: =head2
27411 #: ../fish/guestfish-actions.pod:2609
27412 msgid "luks-kill-slot"
27413 msgstr ""
27414
27415 # type: verbatim
27416 #. type: verbatim
27417 #: ../fish/guestfish-actions.pod:2611
27418 #, no-wrap
27419 msgid ""
27420 " luks-kill-slot device keyslot\n"
27421 "\n"
27422 msgstr ""
27423
27424 # type: =head2
27425 #. type: =head2
27426 #: ../fish/guestfish-actions.pod:2620
27427 msgid "luks-open"
27428 msgstr ""
27429
27430 # type: verbatim
27431 #. type: verbatim
27432 #: ../fish/guestfish-actions.pod:2622
27433 #, no-wrap
27434 msgid ""
27435 " luks-open device mapname\n"
27436 "\n"
27437 msgstr ""
27438
27439 # type: textblock
27440 #. type: textblock
27441 #: ../fish/guestfish-actions.pod:2636
27442 msgid ""
27443 "If this block device contains LVM volume groups, then calling L</vgscan> "
27444 "followed by L</vg-activate-all> will make them visible."
27445 msgstr ""
27446
27447 # type: =head2
27448 #. type: =head2
27449 #: ../fish/guestfish-actions.pod:2643
27450 msgid "luks-open-ro"
27451 msgstr ""
27452
27453 # type: verbatim
27454 #. type: verbatim
27455 #: ../fish/guestfish-actions.pod:2645
27456 #, no-wrap
27457 msgid ""
27458 " luks-open-ro device mapname\n"
27459 "\n"
27460 msgstr ""
27461
27462 # type: textblock
27463 #. type: textblock
27464 #: ../fish/guestfish-actions.pod:2647
27465 msgid ""
27466 "This is the same as L</luks-open> except that a read-only mapping is created."
27467 msgstr ""
27468
27469 # type: =head2
27470 #. type: =head2
27471 #: ../fish/guestfish-actions.pod:2653
27472 msgid "lvcreate"
27473 msgstr ""
27474
27475 # type: verbatim
27476 #. type: verbatim
27477 #: ../fish/guestfish-actions.pod:2655
27478 #, no-wrap
27479 msgid ""
27480 " lvcreate logvol volgroup mbytes\n"
27481 "\n"
27482 msgstr ""
27483
27484 # type: =head2
27485 #. type: =head2
27486 #: ../fish/guestfish-actions.pod:2660
27487 msgid "lvm-canonical-lv-name"
27488 msgstr ""
27489
27490 # type: verbatim
27491 #. type: verbatim
27492 #: ../fish/guestfish-actions.pod:2662
27493 #, no-wrap
27494 msgid ""
27495 " lvm-canonical-lv-name lvname\n"
27496 "\n"
27497 msgstr ""
27498
27499 # type: textblock
27500 #. type: textblock
27501 #: ../fish/guestfish-actions.pod:2671
27502 msgid "See also L</is-lv>."
27503 msgstr ""
27504
27505 # type: =head2
27506 #. type: =head2
27507 #: ../fish/guestfish-actions.pod:2673
27508 msgid "lvm-clear-filter"
27509 msgstr ""
27510
27511 # type: verbatim
27512 #. type: verbatim
27513 #: ../fish/guestfish-actions.pod:2675
27514 #, no-wrap
27515 msgid ""
27516 " lvm-clear-filter\n"
27517 "\n"
27518 msgstr ""
27519
27520 # type: textblock
27521 #. type: textblock
27522 #: ../fish/guestfish-actions.pod:2677
27523 msgid ""
27524 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
27525 "block device."
27526 msgstr ""
27527
27528 # type: =head2
27529 #. type: =head2
27530 #: ../fish/guestfish-actions.pod:2683
27531 msgid "lvm-remove-all"
27532 msgstr ""
27533
27534 # type: verbatim
27535 #. type: verbatim
27536 #: ../fish/guestfish-actions.pod:2685
27537 #, no-wrap
27538 msgid ""
27539 " lvm-remove-all\n"
27540 "\n"
27541 msgstr ""
27542
27543 # type: =head2
27544 #. type: =head2
27545 #: ../fish/guestfish-actions.pod:2693
27546 msgid "lvm-set-filter"
27547 msgstr ""
27548
27549 # type: verbatim
27550 #. type: verbatim
27551 #: ../fish/guestfish-actions.pod:2695
27552 #, no-wrap
27553 msgid ""
27554 " lvm-set-filter 'devices ...'\n"
27555 "\n"
27556 msgstr ""
27557
27558 # type: =head2
27559 #. type: =head2
27560 #: ../fish/guestfish-actions.pod:2720
27561 msgid "lvremove"
27562 msgstr ""
27563
27564 # type: verbatim
27565 #. type: verbatim
27566 #: ../fish/guestfish-actions.pod:2722
27567 #, no-wrap
27568 msgid ""
27569 " lvremove device\n"
27570 "\n"
27571 msgstr ""
27572
27573 # type: =head2
27574 #. type: =head2
27575 #: ../fish/guestfish-actions.pod:2730
27576 msgid "lvrename"
27577 msgstr ""
27578
27579 # type: verbatim
27580 #. type: verbatim
27581 #: ../fish/guestfish-actions.pod:2732
27582 #, no-wrap
27583 msgid ""
27584 " lvrename logvol newlogvol\n"
27585 "\n"
27586 msgstr ""
27587
27588 # type: =head2
27589 #. type: =head2
27590 #: ../fish/guestfish-actions.pod:2736
27591 msgid "lvresize"
27592 msgstr ""
27593
27594 # type: verbatim
27595 #. type: verbatim
27596 #: ../fish/guestfish-actions.pod:2738
27597 #, no-wrap
27598 msgid ""
27599 " lvresize device mbytes\n"
27600 "\n"
27601 msgstr ""
27602
27603 # type: =head2
27604 #. type: =head2
27605 #: ../fish/guestfish-actions.pod:2744
27606 msgid "lvresize-free"
27607 msgstr ""
27608
27609 # type: verbatim
27610 #. type: verbatim
27611 #: ../fish/guestfish-actions.pod:2746
27612 #, no-wrap
27613 msgid ""
27614 " lvresize-free lv percent\n"
27615 "\n"
27616 msgstr ""
27617
27618 # type: =head2
27619 #. type: =head2
27620 #: ../fish/guestfish-actions.pod:2754
27621 msgid "lvs"
27622 msgstr ""
27623
27624 # type: verbatim
27625 #. type: verbatim
27626 #: ../fish/guestfish-actions.pod:2756
27627 #, no-wrap
27628 msgid ""
27629 " lvs\n"
27630 "\n"
27631 msgstr ""
27632
27633 # type: textblock
27634 #. type: textblock
27635 #: ../fish/guestfish-actions.pod:2764
27636 msgid "See also L</lvs-full>, L</list-filesystems>."
27637 msgstr ""
27638
27639 # type: =head2
27640 #. type: =head2
27641 #: ../fish/guestfish-actions.pod:2766
27642 msgid "lvs-full"
27643 msgstr ""
27644
27645 # type: verbatim
27646 #. type: verbatim
27647 #: ../fish/guestfish-actions.pod:2768
27648 #, no-wrap
27649 msgid ""
27650 " lvs-full\n"
27651 "\n"
27652 msgstr ""
27653
27654 # type: =head2
27655 #. type: =head2
27656 #: ../fish/guestfish-actions.pod:2773
27657 msgid "lvuuid"
27658 msgstr ""
27659
27660 # type: verbatim
27661 #. type: verbatim
27662 #: ../fish/guestfish-actions.pod:2775
27663 #, no-wrap
27664 msgid ""
27665 " lvuuid device\n"
27666 "\n"
27667 msgstr ""
27668
27669 # type: =head2
27670 #. type: =head2
27671 #: ../fish/guestfish-actions.pod:2779
27672 msgid "lxattrlist"
27673 msgstr ""
27674
27675 # type: verbatim
27676 #. type: verbatim
27677 #: ../fish/guestfish-actions.pod:2781
27678 #, no-wrap
27679 msgid ""
27680 " lxattrlist path 'names ...'\n"
27681 "\n"
27682 msgstr ""
27683
27684 # type: textblock
27685 #. type: textblock
27686 #: ../fish/guestfish-actions.pod:2797
27687 msgid ""
27688 "This call is intended for programs that want to efficiently list a directory "
27689 "contents without making many round-trips.  See also L</lstatlist> for a "
27690 "similarly efficient call for getting standard stats.  Very long directory "
27691 "listings might cause the protocol message size to be exceeded, causing this "
27692 "call to fail.  The caller must split up such requests into smaller groups of "
27693 "names."
27694 msgstr ""
27695
27696 # type: =head2
27697 #. type: =head2
27698 #: ../fish/guestfish-actions.pod:2805
27699 msgid "mkdir"
27700 msgstr ""
27701
27702 # type: verbatim
27703 #. type: verbatim
27704 #: ../fish/guestfish-actions.pod:2807
27705 #, no-wrap
27706 msgid ""
27707 " mkdir path\n"
27708 "\n"
27709 msgstr ""
27710
27711 # type: =head2
27712 #. type: =head2
27713 #: ../fish/guestfish-actions.pod:2811
27714 msgid "mkdir-mode"
27715 msgstr ""
27716
27717 # type: verbatim
27718 #. type: verbatim
27719 #: ../fish/guestfish-actions.pod:2813
27720 #, no-wrap
27721 msgid ""
27722 " mkdir-mode path mode\n"
27723 "\n"
27724 msgstr ""
27725
27726 # type: textblock
27727 #. type: textblock
27728 #: ../fish/guestfish-actions.pod:2822
27729 msgid "See also L</mkdir>, L</umask>"
27730 msgstr ""
27731
27732 # type: =head2
27733 #. type: =head2
27734 #: ../fish/guestfish-actions.pod:2824
27735 msgid "mkdir-p"
27736 msgstr ""
27737
27738 # type: verbatim
27739 #. type: verbatim
27740 #: ../fish/guestfish-actions.pod:2826
27741 #, no-wrap
27742 msgid ""
27743 " mkdir-p path\n"
27744 "\n"
27745 msgstr ""
27746
27747 # type: =head2
27748 #. type: =head2
27749 #: ../fish/guestfish-actions.pod:2831
27750 msgid "mkdtemp"
27751 msgstr ""
27752
27753 # type: verbatim
27754 #. type: verbatim
27755 #: ../fish/guestfish-actions.pod:2833
27756 #, no-wrap
27757 msgid ""
27758 " mkdtemp template\n"
27759 "\n"
27760 msgstr ""
27761
27762 # type: =head2
27763 #. type: =head2
27764 #: ../fish/guestfish-actions.pod:2854
27765 msgid "mke2fs-J"
27766 msgstr ""
27767
27768 # type: verbatim
27769 #. type: verbatim
27770 #: ../fish/guestfish-actions.pod:2856
27771 #, no-wrap
27772 msgid ""
27773 " mke2fs-J fstype blocksize device journal\n"
27774 "\n"
27775 msgstr ""
27776
27777 # type: textblock
27778 #. type: textblock
27779 #: ../fish/guestfish-actions.pod:2864
27780 msgid "See also L</mke2journal>."
27781 msgstr ""
27782
27783 # type: =head2
27784 #. type: =head2
27785 #: ../fish/guestfish-actions.pod:2866
27786 msgid "mke2fs-JL"
27787 msgstr ""
27788
27789 # type: verbatim
27790 #. type: verbatim
27791 #: ../fish/guestfish-actions.pod:2868
27792 #, no-wrap
27793 msgid ""
27794 " mke2fs-JL fstype blocksize device label\n"
27795 "\n"
27796 msgstr ""
27797
27798 # type: textblock
27799 #. type: textblock
27800 #: ../fish/guestfish-actions.pod:2873
27801 msgid "See also L</mke2journal-L>."
27802 msgstr ""
27803
27804 # type: =head2
27805 #. type: =head2
27806 #: ../fish/guestfish-actions.pod:2875
27807 msgid "mke2fs-JU"
27808 msgstr ""
27809
27810 # type: verbatim
27811 #. type: verbatim
27812 #: ../fish/guestfish-actions.pod:2877
27813 #, no-wrap
27814 msgid ""
27815 " mke2fs-JU fstype blocksize device uuid\n"
27816 "\n"
27817 msgstr ""
27818
27819 # type: textblock
27820 #. type: textblock
27821 #: ../fish/guestfish-actions.pod:2882
27822 msgid "See also L</mke2journal-U>."
27823 msgstr ""
27824
27825 # type: =head2
27826 #. type: =head2
27827 #: ../fish/guestfish-actions.pod:2884
27828 msgid "mke2journal"
27829 msgstr ""
27830
27831 # type: verbatim
27832 #. type: verbatim
27833 #: ../fish/guestfish-actions.pod:2886
27834 #, no-wrap
27835 msgid ""
27836 " mke2journal blocksize device\n"
27837 "\n"
27838 msgstr ""
27839
27840 # type: =head2
27841 #. type: =head2
27842 #: ../fish/guestfish-actions.pod:2893
27843 msgid "mke2journal-L"
27844 msgstr ""
27845
27846 # type: verbatim
27847 #. type: verbatim
27848 #: ../fish/guestfish-actions.pod:2895
27849 #, no-wrap
27850 msgid ""
27851 " mke2journal-L blocksize label device\n"
27852 "\n"
27853 msgstr ""
27854
27855 # type: =head2
27856 #. type: =head2
27857 #: ../fish/guestfish-actions.pod:2899
27858 msgid "mke2journal-U"
27859 msgstr ""
27860
27861 # type: verbatim
27862 #. type: verbatim
27863 #: ../fish/guestfish-actions.pod:2901
27864 #, no-wrap
27865 msgid ""
27866 " mke2journal-U blocksize uuid device\n"
27867 "\n"
27868 msgstr ""
27869
27870 # type: =head2
27871 #. type: =head2
27872 #: ../fish/guestfish-actions.pod:2905
27873 msgid "mkfifo"
27874 msgstr ""
27875
27876 # type: verbatim
27877 #. type: verbatim
27878 #: ../fish/guestfish-actions.pod:2907
27879 #, no-wrap
27880 msgid ""
27881 " mkfifo mode path\n"
27882 "\n"
27883 msgstr ""
27884
27885 # type: textblock
27886 #. type: textblock
27887 #: ../fish/guestfish-actions.pod:2909
27888 msgid ""
27889 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27890 "is just a convenient wrapper around L</mknod>."
27891 msgstr ""
27892
27893 # type: =head2
27894 #. type: =head2
27895 #: ../fish/guestfish-actions.pod:2915
27896 msgid "mkfs"
27897 msgstr ""
27898
27899 # type: verbatim
27900 #. type: verbatim
27901 #: ../fish/guestfish-actions.pod:2917
27902 #, no-wrap
27903 msgid ""
27904 " mkfs fstype device\n"
27905 "\n"
27906 msgstr ""
27907
27908 # type: =head2
27909 #. type: =head2
27910 #: ../fish/guestfish-actions.pod:2923
27911 msgid "mkfs-b"
27912 msgstr ""
27913
27914 # type: verbatim
27915 #. type: verbatim
27916 #: ../fish/guestfish-actions.pod:2925
27917 #, no-wrap
27918 msgid ""
27919 " mkfs-b fstype blocksize device\n"
27920 "\n"
27921 msgstr ""
27922
27923 # type: textblock
27924 #. type: textblock
27925 #: ../fish/guestfish-actions.pod:2927
27926 msgid ""
27927 "This call is similar to L</mkfs>, but it allows you to control the block "
27928 "size of the resulting filesystem.  Supported block sizes depend on the "
27929 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27930 msgstr ""
27931
27932 # type: =head2
27933 #. type: =head2
27934 #: ../fish/guestfish-actions.pod:2942
27935 msgid "mkfs-opts"
27936 msgstr ""
27937
27938 #. type: verbatim
27939 #: ../fish/guestfish-actions.pod:2944
27940 #, no-wrap
27941 msgid ""
27942 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
27943 "\n"
27944 msgstr ""
27945
27946 # type: =head2
27947 #. type: =head2
27948 #: ../fish/guestfish-actions.pod:2979
27949 msgid "mkmountpoint"
27950 msgstr ""
27951
27952 # type: verbatim
27953 #. type: verbatim
27954 #: ../fish/guestfish-actions.pod:2981
27955 #, no-wrap
27956 msgid ""
27957 " mkmountpoint exemptpath\n"
27958 "\n"
27959 msgstr ""
27960
27961 # type: textblock
27962 #. type: textblock
27963 #: ../fish/guestfish-actions.pod:2983
27964 msgid ""
27965 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
27966 "to create extra mountpoints before mounting the first filesystem."
27967 msgstr ""
27968
27969 # type: textblock
27970 #. type: textblock
27971 #: ../fish/guestfish-actions.pod:3007
27972 msgid ""
27973 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
27974 "unexpected errors if you try to mix these calls.  It is safest to manually "
27975 "unmount filesystems and remove mountpoints after use."
27976 msgstr ""
27977
27978 # type: textblock
27979 #. type: textblock
27980 #: ../fish/guestfish-actions.pod:3011
27981 msgid ""
27982 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
27983 "for this to work for manual mountpoints, you must ensure that the innermost "
27984 "mountpoints have the longest pathnames, as in the example code above."
27985 msgstr ""
27986
27987 #. type: textblock
27988 #: ../fish/guestfish-actions.pod:3018
27989 msgid ""
27990 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
27991 "L</umount-all> to be called when the handle is closed which can also trigger "
27992 "these issues."
27993 msgstr ""
27994
27995 # type: =head2
27996 #. type: =head2
27997 #: ../fish/guestfish-actions.pod:3022
27998 msgid "mknod"
27999 msgstr ""
28000
28001 # type: verbatim
28002 #. type: verbatim
28003 #: ../fish/guestfish-actions.pod:3024
28004 #, no-wrap
28005 msgid ""
28006 " mknod mode devmajor devminor path\n"
28007 "\n"
28008 msgstr ""
28009
28010 # type: textblock
28011 #. type: textblock
28012 #: ../fish/guestfish-actions.pod:3034
28013 msgid ""
28014 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28015 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28016 "regular file).  These constants are available in the standard Linux header "
28017 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
28018 "wrappers around this command which bitwise OR in the appropriate constant "
28019 "for you."
28020 msgstr ""
28021
28022 # type: =head2
28023 #. type: =head2
28024 #: ../fish/guestfish-actions.pod:3044
28025 msgid "mknod-b"
28026 msgstr ""
28027
28028 # type: verbatim
28029 #. type: verbatim
28030 #: ../fish/guestfish-actions.pod:3046
28031 #, no-wrap
28032 msgid ""
28033 " mknod-b mode devmajor devminor path\n"
28034 "\n"
28035 msgstr ""
28036
28037 # type: textblock
28038 #. type: textblock
28039 #: ../fish/guestfish-actions.pod:3048
28040 msgid ""
28041 "This call creates a block device node called C<path> with mode C<mode> and "
28042 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28043 "wrapper around L</mknod>."
28044 msgstr ""
28045
28046 # type: =head2
28047 #. type: =head2
28048 #: ../fish/guestfish-actions.pod:3054
28049 msgid "mknod-c"
28050 msgstr ""
28051
28052 # type: verbatim
28053 #. type: verbatim
28054 #: ../fish/guestfish-actions.pod:3056
28055 #, no-wrap
28056 msgid ""
28057 " mknod-c mode devmajor devminor path\n"
28058 "\n"
28059 msgstr ""
28060
28061 # type: textblock
28062 #. type: textblock
28063 #: ../fish/guestfish-actions.pod:3058
28064 msgid ""
28065 "This call creates a char device node called C<path> with mode C<mode> and "
28066 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28067 "wrapper around L</mknod>."
28068 msgstr ""
28069
28070 # type: =head2
28071 #. type: =head2
28072 #: ../fish/guestfish-actions.pod:3064
28073 msgid "mkswap"
28074 msgstr ""
28075
28076 # type: verbatim
28077 #. type: verbatim
28078 #: ../fish/guestfish-actions.pod:3066
28079 #, no-wrap
28080 msgid ""
28081 " mkswap device\n"
28082 "\n"
28083 msgstr ""
28084
28085 # type: =head2
28086 #. type: =head2
28087 #: ../fish/guestfish-actions.pod:3070
28088 msgid "mkswap-L"
28089 msgstr ""
28090
28091 # type: verbatim
28092 #. type: verbatim
28093 #: ../fish/guestfish-actions.pod:3072
28094 #, no-wrap
28095 msgid ""
28096 " mkswap-L label device\n"
28097 "\n"
28098 msgstr ""
28099
28100 # type: =head2
28101 #. type: =head2
28102 #: ../fish/guestfish-actions.pod:3080
28103 msgid "mkswap-U"
28104 msgstr ""
28105
28106 # type: verbatim
28107 #. type: verbatim
28108 #: ../fish/guestfish-actions.pod:3082
28109 #, no-wrap
28110 msgid ""
28111 " mkswap-U uuid device\n"
28112 "\n"
28113 msgstr ""
28114
28115 # type: =head2
28116 #. type: =head2
28117 #: ../fish/guestfish-actions.pod:3086
28118 msgid "mkswap-file"
28119 msgstr ""
28120
28121 # type: verbatim
28122 #. type: verbatim
28123 #: ../fish/guestfish-actions.pod:3088
28124 #, no-wrap
28125 msgid ""
28126 " mkswap-file path\n"
28127 "\n"
28128 msgstr ""
28129
28130 # type: textblock
28131 #. type: textblock
28132 #: ../fish/guestfish-actions.pod:3092
28133 msgid ""
28134 "This command just writes a swap file signature to an existing file.  To "
28135 "create the file itself, use something like L</fallocate>."
28136 msgstr ""
28137
28138 # type: =head2
28139 #. type: =head2
28140 #: ../fish/guestfish-actions.pod:3095
28141 msgid "modprobe"
28142 msgstr ""
28143
28144 # type: verbatim
28145 #. type: verbatim
28146 #: ../fish/guestfish-actions.pod:3097
28147 #, no-wrap
28148 msgid ""
28149 " modprobe modulename\n"
28150 "\n"
28151 msgstr ""
28152
28153 # type: =head2
28154 #. type: =head2
28155 #: ../fish/guestfish-actions.pod:3104
28156 msgid "mount"
28157 msgstr ""
28158
28159 # type: verbatim
28160 #. type: verbatim
28161 #: ../fish/guestfish-actions.pod:3106
28162 #, no-wrap
28163 msgid ""
28164 " mount device mountpoint\n"
28165 "\n"
28166 msgstr ""
28167
28168 # type: textblock
28169 #. type: textblock
28170 #: ../fish/guestfish-actions.pod:3122
28171 msgid ""
28172 "B<Important note:> When you use this call, the filesystem options C<sync> "
28173 "and C<noatime> are set implicitly.  This was originally done because we "
28174 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28175 "very large negative performance impact and negligible effect on "
28176 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
28177 "code that needs performance, and instead use L</mount-options> (use an empty "
28178 "string for the first parameter if you don't want any options)."
28179 msgstr ""
28180
28181 # type: =head2
28182 #. type: =head2
28183 #: ../fish/guestfish-actions.pod:3132
28184 msgid "mount-loop"
28185 msgstr ""
28186
28187 # type: verbatim
28188 #. type: verbatim
28189 #: ../fish/guestfish-actions.pod:3134
28190 #, no-wrap
28191 msgid ""
28192 " mount-loop file mountpoint\n"
28193 "\n"
28194 msgstr ""
28195
28196 # type: =head2
28197 #. type: =head2
28198 #: ../fish/guestfish-actions.pod:3140
28199 msgid "mount-options"
28200 msgstr ""
28201
28202 # type: verbatim
28203 #. type: verbatim
28204 #: ../fish/guestfish-actions.pod:3142
28205 #, no-wrap
28206 msgid ""
28207 " mount-options options device mountpoint\n"
28208 "\n"
28209 msgstr ""
28210
28211 # type: textblock
28212 #. type: textblock
28213 #: ../fish/guestfish-actions.pod:3144
28214 msgid ""
28215 "This is the same as the L</mount> command, but it allows you to set the "
28216 "mount options as for the L<mount(8)> I<-o> flag."
28217 msgstr ""
28218
28219 # type: =head2
28220 #. type: =head2
28221 #: ../fish/guestfish-actions.pod:3152
28222 msgid "mount-ro"
28223 msgstr ""
28224
28225 # type: verbatim
28226 #. type: verbatim
28227 #: ../fish/guestfish-actions.pod:3154
28228 #, no-wrap
28229 msgid ""
28230 " mount-ro device mountpoint\n"
28231 "\n"
28232 msgstr ""
28233
28234 # type: textblock
28235 #. type: textblock
28236 #: ../fish/guestfish-actions.pod:3156
28237 msgid ""
28238 "This is the same as the L</mount> command, but it mounts the filesystem with "
28239 "the read-only (I<-o ro>) flag."
28240 msgstr ""
28241
28242 # type: =head2
28243 #. type: =head2
28244 #: ../fish/guestfish-actions.pod:3159
28245 msgid "mount-vfs"
28246 msgstr ""
28247
28248 # type: verbatim
28249 #. type: verbatim
28250 #: ../fish/guestfish-actions.pod:3161
28251 #, no-wrap
28252 msgid ""
28253 " mount-vfs options vfstype device mountpoint\n"
28254 "\n"
28255 msgstr ""
28256
28257 # type: textblock
28258 #. type: textblock
28259 #: ../fish/guestfish-actions.pod:3163
28260 msgid ""
28261 "This is the same as the L</mount> command, but it allows you to set both the "
28262 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
28263 msgstr ""
28264
28265 # type: =head2
28266 #. type: =head2
28267 #: ../fish/guestfish-actions.pod:3167
28268 msgid "mountpoints"
28269 msgstr ""
28270
28271 # type: verbatim
28272 #. type: verbatim
28273 #: ../fish/guestfish-actions.pod:3169
28274 #, no-wrap
28275 msgid ""
28276 " mountpoints\n"
28277 "\n"
28278 msgstr ""
28279
28280 # type: textblock
28281 #. type: textblock
28282 #: ../fish/guestfish-actions.pod:3171
28283 msgid ""
28284 "This call is similar to L</mounts>.  That call returns a list of devices.  "
28285 "This one returns a hash table (map) of device name to directory where the "
28286 "device is mounted."
28287 msgstr ""
28288
28289 # type: =head2
28290 #. type: =head2
28291 #: ../fish/guestfish-actions.pod:3175
28292 msgid "mounts"
28293 msgstr ""
28294
28295 # type: verbatim
28296 #. type: verbatim
28297 #: ../fish/guestfish-actions.pod:3177
28298 #, no-wrap
28299 msgid ""
28300 " mounts\n"
28301 "\n"
28302 msgstr ""
28303
28304 # type: textblock
28305 #. type: textblock
28306 #: ../fish/guestfish-actions.pod:3184
28307 msgid "See also: L</mountpoints>"
28308 msgstr ""
28309
28310 # type: =head2
28311 #. type: =head2
28312 #: ../fish/guestfish-actions.pod:3186
28313 msgid "mv"
28314 msgstr ""
28315
28316 # type: verbatim
28317 #. type: verbatim
28318 #: ../fish/guestfish-actions.pod:3188
28319 #, no-wrap
28320 msgid ""
28321 " mv src dest\n"
28322 "\n"
28323 msgstr ""
28324
28325 # type: =head2
28326 #. type: =head2
28327 #: ../fish/guestfish-actions.pod:3193
28328 msgid "ntfs-3g-probe"
28329 msgstr ""
28330
28331 # type: verbatim
28332 #. type: verbatim
28333 #: ../fish/guestfish-actions.pod:3195
28334 #, no-wrap
28335 msgid ""
28336 " ntfs-3g-probe true|false device\n"
28337 "\n"
28338 msgstr ""
28339
28340 # type: =head2
28341 #. type: =head2
28342 #: ../fish/guestfish-actions.pod:3209
28343 msgid "ntfsresize"
28344 msgstr ""
28345
28346 # type: verbatim
28347 #. type: verbatim
28348 #: ../fish/guestfish-actions.pod:3211
28349 #, no-wrap
28350 msgid ""
28351 " ntfsresize device\n"
28352 "\n"
28353 msgstr ""
28354
28355 # type: =head2
28356 #. type: =head2
28357 #: ../fish/guestfish-actions.pod:3217
28358 msgid "ntfsresize-size"
28359 msgstr ""
28360
28361 # type: verbatim
28362 #. type: verbatim
28363 #: ../fish/guestfish-actions.pod:3219
28364 #, no-wrap
28365 msgid ""
28366 " ntfsresize-size device size\n"
28367 "\n"
28368 msgstr ""
28369
28370 # type: textblock
28371 #. type: textblock
28372 #: ../fish/guestfish-actions.pod:3221
28373 msgid ""
28374 "This command is the same as L</ntfsresize> except that it allows you to "
28375 "specify the new size (in bytes) explicitly."
28376 msgstr ""
28377
28378 # type: =head2
28379 #. type: =head2
28380 #: ../fish/guestfish-actions.pod:3224
28381 msgid "part-add"
28382 msgstr ""
28383
28384 # type: verbatim
28385 #. type: verbatim
28386 #: ../fish/guestfish-actions.pod:3226
28387 #, no-wrap
28388 msgid ""
28389 " part-add device prlogex startsect endsect\n"
28390 "\n"
28391 msgstr ""
28392
28393 # type: textblock
28394 #. type: textblock
28395 #: ../fish/guestfish-actions.pod:3228
28396 msgid ""
28397 "This command adds a partition to C<device>.  If there is no partition table "
28398 "on the device, call L</part-init> first."
28399 msgstr ""
28400
28401 # type: textblock
28402 #. type: textblock
28403 #: ../fish/guestfish-actions.pod:3240
28404 msgid ""
28405 "Creating a partition which covers the whole disk is not so easy.  Use L</"
28406 "part-disk> to do that."
28407 msgstr ""
28408
28409 # type: =head2
28410 #. type: =head2
28411 #: ../fish/guestfish-actions.pod:3243
28412 msgid "part-del"
28413 msgstr ""
28414
28415 # type: verbatim
28416 #. type: verbatim
28417 #: ../fish/guestfish-actions.pod:3245
28418 #, no-wrap
28419 msgid ""
28420 " part-del device partnum\n"
28421 "\n"
28422 msgstr ""
28423
28424 # type: =head2
28425 #. type: =head2
28426 #: ../fish/guestfish-actions.pod:3253
28427 msgid "part-disk"
28428 msgstr ""
28429
28430 # type: verbatim
28431 #. type: verbatim
28432 #: ../fish/guestfish-actions.pod:3255
28433 #, no-wrap
28434 msgid ""
28435 " part-disk device parttype\n"
28436 "\n"
28437 msgstr ""
28438
28439 # type: textblock
28440 #. type: textblock
28441 #: ../fish/guestfish-actions.pod:3257
28442 msgid ""
28443 "This command is simply a combination of L</part-init> followed by L</part-"
28444 "add> to create a single primary partition covering the whole disk."
28445 msgstr ""
28446
28447 # type: textblock
28448 #. type: textblock
28449 #: ../fish/guestfish-actions.pod:3261
28450 msgid ""
28451 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28452 "possible values are described in L</part-init>."
28453 msgstr ""
28454
28455 # type: =head2
28456 #. type: =head2
28457 #: ../fish/guestfish-actions.pod:3267
28458 msgid "part-get-bootable"
28459 msgstr ""
28460
28461 # type: verbatim
28462 #. type: verbatim
28463 #: ../fish/guestfish-actions.pod:3269
28464 #, no-wrap
28465 msgid ""
28466 " part-get-bootable device partnum\n"
28467 "\n"
28468 msgstr ""
28469
28470 # type: textblock
28471 #. type: textblock
28472 #: ../fish/guestfish-actions.pod:3274
28473 msgid "See also L</part-set-bootable>."
28474 msgstr ""
28475
28476 # type: =head2
28477 #. type: =head2
28478 #: ../fish/guestfish-actions.pod:3276
28479 msgid "part-get-mbr-id"
28480 msgstr ""
28481
28482 # type: verbatim
28483 #. type: verbatim
28484 #: ../fish/guestfish-actions.pod:3278
28485 #, no-wrap
28486 msgid ""
28487 " part-get-mbr-id device partnum\n"
28488 "\n"
28489 msgstr ""
28490
28491 # type: textblock
28492 #. type: textblock
28493 #: ../fish/guestfish-actions.pod:3283 ../fish/guestfish-actions.pod:3421
28494 msgid ""
28495 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28496 "undefined results for other partition table types (see L</part-get-"
28497 "parttype>)."
28498 msgstr ""
28499
28500 # type: =head2
28501 #. type: =head2
28502 #: ../fish/guestfish-actions.pod:3287
28503 msgid "part-get-parttype"
28504 msgstr ""
28505
28506 # type: verbatim
28507 #. type: verbatim
28508 #: ../fish/guestfish-actions.pod:3289
28509 #, no-wrap
28510 msgid ""
28511 " part-get-parttype device\n"
28512 "\n"
28513 msgstr ""
28514
28515 # type: textblock
28516 #. type: textblock
28517 #: ../fish/guestfish-actions.pod:3294
28518 msgid ""
28519 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28520 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28521 "possible, although unusual.  See L</part-init> for a full list."
28522 msgstr ""
28523
28524 # type: =head2
28525 #. type: =head2
28526 #: ../fish/guestfish-actions.pod:3299
28527 msgid "part-init"
28528 msgstr ""
28529
28530 # type: verbatim
28531 #. type: verbatim
28532 #: ../fish/guestfish-actions.pod:3301
28533 #, no-wrap
28534 msgid ""
28535 " part-init device parttype\n"
28536 "\n"
28537 msgstr ""
28538
28539 # type: textblock
28540 #. type: textblock
28541 #: ../fish/guestfish-actions.pod:3307
28542 msgid ""
28543 "Initially there are no partitions.  Following this, you should call L</part-"
28544 "add> for each partition required."
28545 msgstr ""
28546
28547 # type: =head2
28548 #. type: =head2
28549 #: ../fish/guestfish-actions.pod:3370
28550 msgid "part-list"
28551 msgstr ""
28552
28553 # type: verbatim
28554 #. type: verbatim
28555 #: ../fish/guestfish-actions.pod:3372
28556 #, no-wrap
28557 msgid ""
28558 " part-list device\n"
28559 "\n"
28560 msgstr ""
28561
28562 # type: textblock
28563 #. type: textblock
28564 #: ../fish/guestfish-actions.pod:3387
28565 msgid ""
28566 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28567 "the device's sector size, see L</blockdev-getss>."
28568 msgstr ""
28569
28570 # type: =head2
28571 #. type: =head2
28572 #: ../fish/guestfish-actions.pod:3400
28573 msgid "part-set-bootable"
28574 msgstr ""
28575
28576 # type: verbatim
28577 #. type: verbatim
28578 #: ../fish/guestfish-actions.pod:3402
28579 #, no-wrap
28580 msgid ""
28581 " part-set-bootable device partnum true|false\n"
28582 "\n"
28583 msgstr ""
28584
28585 # type: =head2
28586 #. type: =head2
28587 #: ../fish/guestfish-actions.pod:3411
28588 msgid "part-set-mbr-id"
28589 msgstr ""
28590
28591 # type: verbatim
28592 #. type: verbatim
28593 #: ../fish/guestfish-actions.pod:3413
28594 #, no-wrap
28595 msgid ""
28596 " part-set-mbr-id device partnum idbyte\n"
28597 "\n"
28598 msgstr ""
28599
28600 # type: =head2
28601 #. type: =head2
28602 #: ../fish/guestfish-actions.pod:3425
28603 msgid "part-set-name"
28604 msgstr ""
28605
28606 # type: verbatim
28607 #. type: verbatim
28608 #: ../fish/guestfish-actions.pod:3427
28609 #, no-wrap
28610 msgid ""
28611 " part-set-name device partnum name\n"
28612 "\n"
28613 msgstr ""
28614
28615 # type: =head2
28616 #. type: =head2
28617 #: ../fish/guestfish-actions.pod:3435
28618 msgid "part-to-dev"
28619 msgstr ""
28620
28621 # type: verbatim
28622 #. type: verbatim
28623 #: ../fish/guestfish-actions.pod:3437
28624 #, no-wrap
28625 msgid ""
28626 " part-to-dev partition\n"
28627 "\n"
28628 msgstr ""
28629
28630 # type: textblock
28631 #. type: textblock
28632 #: ../fish/guestfish-actions.pod:3443
28633 msgid ""
28634 "The named partition must exist, for example as a string returned from L</"
28635 "list-partitions>."
28636 msgstr ""
28637
28638 # type: =head2
28639 #. type: =head2
28640 #: ../fish/guestfish-actions.pod:3446
28641 msgid "ping-daemon"
28642 msgstr ""
28643
28644 # type: verbatim
28645 #. type: verbatim
28646 #: ../fish/guestfish-actions.pod:3448
28647 #, no-wrap
28648 msgid ""
28649 " ping-daemon\n"
28650 "\n"
28651 msgstr ""
28652
28653 # type: =head2
28654 #. type: =head2
28655 #: ../fish/guestfish-actions.pod:3455
28656 msgid "pread"
28657 msgstr ""
28658
28659 # type: verbatim
28660 #. type: verbatim
28661 #: ../fish/guestfish-actions.pod:3457
28662 #, no-wrap
28663 msgid ""
28664 " pread path count offset\n"
28665 "\n"
28666 msgstr ""
28667
28668 # type: textblock
28669 #. type: textblock
28670 #: ../fish/guestfish-actions.pod:3465
28671 msgid "See also L</pwrite>, L</pread-device>."
28672 msgstr ""
28673
28674 # type: =head2
28675 #. type: =head2
28676 #: ../fish/guestfish-actions.pod:3470
28677 msgid "pread-device"
28678 msgstr ""
28679
28680 # type: verbatim
28681 #. type: verbatim
28682 #: ../fish/guestfish-actions.pod:3472
28683 #, no-wrap
28684 msgid ""
28685 " pread-device device count offset\n"
28686 "\n"
28687 msgstr ""
28688
28689 # type: textblock
28690 #. type: textblock
28691 #: ../fish/guestfish-actions.pod:3480
28692 msgid "See also L</pread>."
28693 msgstr ""
28694
28695 # type: =head2
28696 #. type: =head2
28697 #: ../fish/guestfish-actions.pod:3485
28698 msgid "pvcreate"
28699 msgstr ""
28700
28701 # type: verbatim
28702 #. type: verbatim
28703 #: ../fish/guestfish-actions.pod:3487
28704 #, no-wrap
28705 msgid ""
28706 " pvcreate device\n"
28707 "\n"
28708 msgstr ""
28709
28710 # type: =head2
28711 #. type: =head2
28712 #: ../fish/guestfish-actions.pod:3493
28713 msgid "pvremove"
28714 msgstr ""
28715
28716 # type: verbatim
28717 #. type: verbatim
28718 #: ../fish/guestfish-actions.pod:3495
28719 #, no-wrap
28720 msgid ""
28721 " pvremove device\n"
28722 "\n"
28723 msgstr ""
28724
28725 # type: =head2
28726 #. type: =head2
28727 #: ../fish/guestfish-actions.pod:3504
28728 msgid "pvresize"
28729 msgstr ""
28730
28731 # type: verbatim
28732 #. type: verbatim
28733 #: ../fish/guestfish-actions.pod:3506
28734 #, no-wrap
28735 msgid ""
28736 " pvresize device\n"
28737 "\n"
28738 msgstr ""
28739
28740 # type: =head2
28741 #. type: =head2
28742 #: ../fish/guestfish-actions.pod:3511
28743 msgid "pvresize-size"
28744 msgstr ""
28745
28746 # type: verbatim
28747 #. type: verbatim
28748 #: ../fish/guestfish-actions.pod:3513
28749 #, no-wrap
28750 msgid ""
28751 " pvresize-size device size\n"
28752 "\n"
28753 msgstr ""
28754
28755 # type: textblock
28756 #. type: textblock
28757 #: ../fish/guestfish-actions.pod:3515
28758 msgid ""
28759 "This command is the same as L</pvresize> except that it allows you to "
28760 "specify the new size (in bytes) explicitly."
28761 msgstr ""
28762
28763 # type: =head2
28764 #. type: =head2
28765 #: ../fish/guestfish-actions.pod:3518
28766 msgid "pvs"
28767 msgstr ""
28768
28769 # type: verbatim
28770 #. type: verbatim
28771 #: ../fish/guestfish-actions.pod:3520
28772 #, no-wrap
28773 msgid ""
28774 " pvs\n"
28775 "\n"
28776 msgstr ""
28777
28778 # type: textblock
28779 #. type: textblock
28780 #: ../fish/guestfish-actions.pod:3528
28781 msgid "See also L</pvs-full>."
28782 msgstr ""
28783
28784 # type: =head2
28785 #. type: =head2
28786 #: ../fish/guestfish-actions.pod:3530
28787 msgid "pvs-full"
28788 msgstr ""
28789
28790 # type: verbatim
28791 #. type: verbatim
28792 #: ../fish/guestfish-actions.pod:3532
28793 #, no-wrap
28794 msgid ""
28795 " pvs-full\n"
28796 "\n"
28797 msgstr ""
28798
28799 # type: =head2
28800 #. type: =head2
28801 #: ../fish/guestfish-actions.pod:3537
28802 msgid "pvuuid"
28803 msgstr ""
28804
28805 # type: verbatim
28806 #. type: verbatim
28807 #: ../fish/guestfish-actions.pod:3539
28808 #, no-wrap
28809 msgid ""
28810 " pvuuid device\n"
28811 "\n"
28812 msgstr ""
28813
28814 # type: =head2
28815 #. type: =head2
28816 #: ../fish/guestfish-actions.pod:3543
28817 msgid "pwrite"
28818 msgstr ""
28819
28820 # type: verbatim
28821 #. type: verbatim
28822 #: ../fish/guestfish-actions.pod:3545
28823 #, no-wrap
28824 msgid ""
28825 " pwrite path content offset\n"
28826 "\n"
28827 msgstr ""
28828
28829 # type: textblock
28830 #. type: textblock
28831 #: ../fish/guestfish-actions.pod:3556
28832 msgid "See also L</pread>, L</pwrite-device>."
28833 msgstr ""
28834
28835 # type: =head2
28836 #. type: =head2
28837 #: ../fish/guestfish-actions.pod:3561
28838 msgid "pwrite-device"
28839 msgstr ""
28840
28841 # type: verbatim
28842 #. type: verbatim
28843 #: ../fish/guestfish-actions.pod:3563
28844 #, no-wrap
28845 msgid ""
28846 " pwrite-device device content offset\n"
28847 "\n"
28848 msgstr ""
28849
28850 # type: textblock
28851 #. type: textblock
28852 #: ../fish/guestfish-actions.pod:3573
28853 msgid "See also L</pwrite>."
28854 msgstr ""
28855
28856 # type: =head2
28857 #. type: =head2
28858 #: ../fish/guestfish-actions.pod:3578
28859 msgid "read-file"
28860 msgstr ""
28861
28862 # type: verbatim
28863 #. type: verbatim
28864 #: ../fish/guestfish-actions.pod:3580
28865 #, no-wrap
28866 msgid ""
28867 " read-file path\n"
28868 "\n"
28869 msgstr ""
28870
28871 # type: textblock
28872 #. type: textblock
28873 #: ../fish/guestfish-actions.pod:3585
28874 msgid ""
28875 "Unlike L</cat>, this function can correctly handle files that contain "
28876 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28877 "is limited in the total size of file that can be handled."
28878 msgstr ""
28879
28880 # type: =head2
28881 #. type: =head2
28882 #: ../fish/guestfish-actions.pod:3593
28883 msgid "read-lines"
28884 msgstr ""
28885
28886 # type: verbatim
28887 #. type: verbatim
28888 #: ../fish/guestfish-actions.pod:3595
28889 #, no-wrap
28890 msgid ""
28891 " read-lines path\n"
28892 "\n"
28893 msgstr ""
28894
28895 # type: textblock
28896 #. type: textblock
28897 #: ../fish/guestfish-actions.pod:3602
28898 msgid ""
28899 "Note that this function cannot correctly handle binary files (specifically, "
28900 "files containing C<\\0> character which is treated as end of line).  For "
28901 "those you need to use the L</read-file> function which has a more complex "
28902 "interface."
28903 msgstr ""
28904
28905 # type: =head2
28906 #. type: =head2
28907 #: ../fish/guestfish-actions.pod:3607
28908 msgid "readdir"
28909 msgstr ""
28910
28911 # type: verbatim
28912 #. type: verbatim
28913 #: ../fish/guestfish-actions.pod:3609
28914 #, no-wrap
28915 msgid ""
28916 " readdir dir\n"
28917 "\n"
28918 msgstr ""
28919
28920 # type: textblock
28921 #. type: textblock
28922 #: ../fish/guestfish-actions.pod:3661
28923 msgid ""
28924 "This function is primarily intended for use by programs.  To get a simple "
28925 "list of names, use L</ls>.  To get a printable directory for human "
28926 "consumption, use L</ll>."
28927 msgstr ""
28928
28929 # type: =head2
28930 #. type: =head2
28931 #: ../fish/guestfish-actions.pod:3665
28932 msgid "readlink"
28933 msgstr ""
28934
28935 # type: verbatim
28936 #. type: verbatim
28937 #: ../fish/guestfish-actions.pod:3667
28938 #, no-wrap
28939 msgid ""
28940 " readlink path\n"
28941 "\n"
28942 msgstr ""
28943
28944 # type: =head2
28945 #. type: =head2
28946 #: ../fish/guestfish-actions.pod:3671
28947 msgid "readlinklist"
28948 msgstr ""
28949
28950 # type: verbatim
28951 #. type: verbatim
28952 #: ../fish/guestfish-actions.pod:3673
28953 #, no-wrap
28954 msgid ""
28955 " readlinklist path 'names ...'\n"
28956 "\n"
28957 msgstr ""
28958
28959 # type: =head2
28960 #. type: =head2
28961 #: ../fish/guestfish-actions.pod:3697
28962 msgid "realpath"
28963 msgstr ""
28964
28965 # type: verbatim
28966 #. type: verbatim
28967 #: ../fish/guestfish-actions.pod:3699
28968 #, no-wrap
28969 msgid ""
28970 " realpath path\n"
28971 "\n"
28972 msgstr ""
28973
28974 # type: =head2
28975 #. type: =head2
28976 #: ../fish/guestfish-actions.pod:3704
28977 msgid "removexattr"
28978 msgstr ""
28979
28980 # type: verbatim
28981 #. type: verbatim
28982 #: ../fish/guestfish-actions.pod:3706
28983 #, no-wrap
28984 msgid ""
28985 " removexattr xattr path\n"
28986 "\n"
28987 msgstr ""
28988
28989 # type: textblock
28990 #. type: textblock
28991 #: ../fish/guestfish-actions.pod:3711
28992 msgid "See also: L</lremovexattr>, L<attr(5)>."
28993 msgstr ""
28994
28995 # type: =head2
28996 #. type: =head2
28997 #: ../fish/guestfish-actions.pod:3713
28998 msgid "resize2fs"
28999 msgstr ""
29000
29001 # type: verbatim
29002 #. type: verbatim
29003 #: ../fish/guestfish-actions.pod:3715
29004 #, no-wrap
29005 msgid ""
29006 " resize2fs device\n"
29007 "\n"
29008 msgstr ""
29009
29010 # type: textblock
29011 #. type: textblock
29012 #: ../fish/guestfish-actions.pod:3720
29013 msgid ""
29014 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
29015 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
29016 "gives an error about this and sometimes not.  In any case, it is always safe "
29017 "to call L</e2fsck-f> before calling this function."
29018 msgstr ""
29019
29020 #. type: =head2
29021 #: ../fish/guestfish-actions.pod:3726
29022 msgid "resize2fs-M"
29023 msgstr ""
29024
29025 #. type: verbatim
29026 #: ../fish/guestfish-actions.pod:3728
29027 #, no-wrap
29028 msgid ""
29029 " resize2fs-M device\n"
29030 "\n"
29031 msgstr ""
29032
29033 #. type: textblock
29034 #: ../fish/guestfish-actions.pod:3730
29035 msgid ""
29036 "This command is the same as L</resize2fs>, but the filesystem is resized to "
29037 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
29038 "command."
29039 msgstr ""
29040
29041 #. type: textblock
29042 #: ../fish/guestfish-actions.pod:3734
29043 msgid ""
29044 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
29045 "and read the C<Block size> and C<Block count> values.  These two numbers, "
29046 "multiplied together, give the resulting size of the minimal filesystem in "
29047 "bytes."
29048 msgstr ""
29049
29050 # type: =head2
29051 #. type: =head2
29052 #: ../fish/guestfish-actions.pod:3739
29053 msgid "resize2fs-size"
29054 msgstr ""
29055
29056 # type: verbatim
29057 #. type: verbatim
29058 #: ../fish/guestfish-actions.pod:3741
29059 #, no-wrap
29060 msgid ""
29061 " resize2fs-size device size\n"
29062 "\n"
29063 msgstr ""
29064
29065 # type: textblock
29066 #. type: textblock
29067 #: ../fish/guestfish-actions.pod:3743
29068 msgid ""
29069 "This command is the same as L</resize2fs> except that it allows you to "
29070 "specify the new size (in bytes) explicitly."
29071 msgstr ""
29072
29073 # type: =head2
29074 #. type: =head2
29075 #: ../fish/guestfish-actions.pod:3746
29076 msgid "rm"
29077 msgstr ""
29078
29079 # type: verbatim
29080 #. type: verbatim
29081 #: ../fish/guestfish-actions.pod:3748
29082 #, no-wrap
29083 msgid ""
29084 " rm path\n"
29085 "\n"
29086 msgstr ""
29087
29088 # type: =head2
29089 #. type: =head2
29090 #: ../fish/guestfish-actions.pod:3752
29091 msgid "rm-rf"
29092 msgstr ""
29093
29094 # type: verbatim
29095 #. type: verbatim
29096 #: ../fish/guestfish-actions.pod:3754
29097 #, no-wrap
29098 msgid ""
29099 " rm-rf path\n"
29100 "\n"
29101 msgstr ""
29102
29103 # type: =head2
29104 #. type: =head2
29105 #: ../fish/guestfish-actions.pod:3760
29106 msgid "rmdir"
29107 msgstr ""
29108
29109 # type: verbatim
29110 #. type: verbatim
29111 #: ../fish/guestfish-actions.pod:3762
29112 #, no-wrap
29113 msgid ""
29114 " rmdir path\n"
29115 "\n"
29116 msgstr ""
29117
29118 # type: =head2
29119 #. type: =head2
29120 #: ../fish/guestfish-actions.pod:3766
29121 msgid "rmmountpoint"
29122 msgstr ""
29123
29124 # type: verbatim
29125 #. type: verbatim
29126 #: ../fish/guestfish-actions.pod:3768
29127 #, no-wrap
29128 msgid ""
29129 " rmmountpoint exemptpath\n"
29130 "\n"
29131 msgstr ""
29132
29133 # type: textblock
29134 #. type: textblock
29135 #: ../fish/guestfish-actions.pod:3770
29136 msgid ""
29137 "This calls removes a mountpoint that was previously created with L</"
29138 "mkmountpoint>.  See L</mkmountpoint> for full details."
29139 msgstr ""
29140
29141 # type: =head2
29142 #. type: =head2
29143 #: ../fish/guestfish-actions.pod:3774
29144 msgid "scrub-device"
29145 msgstr ""
29146
29147 # type: verbatim
29148 #. type: verbatim
29149 #: ../fish/guestfish-actions.pod:3776
29150 #, no-wrap
29151 msgid ""
29152 " scrub-device device\n"
29153 "\n"
29154 msgstr ""
29155
29156 # type: =head2
29157 #. type: =head2
29158 #: ../fish/guestfish-actions.pod:3787
29159 msgid "scrub-file"
29160 msgstr ""
29161
29162 # type: verbatim
29163 #. type: verbatim
29164 #: ../fish/guestfish-actions.pod:3789
29165 #, no-wrap
29166 msgid ""
29167 " scrub-file file\n"
29168 "\n"
29169 msgstr ""
29170
29171 # type: =head2
29172 #. type: =head2
29173 #: ../fish/guestfish-actions.pod:3799
29174 msgid "scrub-freespace"
29175 msgstr ""
29176
29177 # type: verbatim
29178 #. type: verbatim
29179 #: ../fish/guestfish-actions.pod:3801
29180 #, no-wrap
29181 msgid ""
29182 " scrub-freespace dir\n"
29183 "\n"
29184 msgstr ""
29185
29186 # type: textblock
29187 #. type: textblock
29188 #: ../fish/guestfish-actions.pod:3803
29189 msgid ""
29190 "This command creates the directory C<dir> and then fills it with files until "
29191 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
29192 "deletes them.  The intention is to scrub any free space on the partition "
29193 "containing C<dir>."
29194 msgstr ""
29195
29196 # type: =head2
29197 #. type: =head2
29198 #: ../fish/guestfish-actions.pod:3812
29199 msgid "set-append"
29200 msgstr ""
29201
29202 # type: =head2
29203 #. type: =head2
29204 #: ../fish/guestfish-actions.pod:3814
29205 msgid "append"
29206 msgstr ""
29207
29208 # type: verbatim
29209 #. type: verbatim
29210 #: ../fish/guestfish-actions.pod:3816
29211 #, no-wrap
29212 msgid ""
29213 " set-append append\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: =head2
29218 #: ../fish/guestfish-actions.pod:3827
29219 msgid "set-attach-method"
29220 msgstr ""
29221
29222 #. type: =head2
29223 #: ../fish/guestfish-actions.pod:3829
29224 msgid "attach-method"
29225 msgstr ""
29226
29227 #. type: verbatim
29228 #: ../fish/guestfish-actions.pod:3831
29229 #, no-wrap
29230 msgid ""
29231 " set-attach-method attachmethod\n"
29232 "\n"
29233 msgstr ""
29234
29235 # type: =head2
29236 #. type: =head2
29237 #: ../fish/guestfish-actions.pod:3853
29238 msgid "set-autosync"
29239 msgstr ""
29240
29241 # type: =head2
29242 #. type: =head2
29243 #: ../fish/guestfish-actions.pod:3855
29244 msgid "autosync"
29245 msgstr ""
29246
29247 # type: verbatim
29248 #. type: verbatim
29249 #: ../fish/guestfish-actions.pod:3857
29250 #, no-wrap
29251 msgid ""
29252 " set-autosync true|false\n"
29253 "\n"
29254 msgstr ""
29255
29256 # type: =head2
29257 #. type: =head2
29258 #: ../fish/guestfish-actions.pod:3867
29259 msgid "set-direct"
29260 msgstr ""
29261
29262 # type: =head2
29263 #. type: =head2
29264 #: ../fish/guestfish-actions.pod:3869
29265 msgid "direct"
29266 msgstr ""
29267
29268 # type: verbatim
29269 #. type: verbatim
29270 #: ../fish/guestfish-actions.pod:3871
29271 #, no-wrap
29272 msgid ""
29273 " set-direct true|false\n"
29274 "\n"
29275 msgstr ""
29276
29277 # type: textblock
29278 #. type: textblock
29279 #: ../fish/guestfish-actions.pod:3877
29280 msgid ""
29281 "One consequence of this is that log messages aren't caught by the library "
29282 "and handled by L</set-log-message-callback>, but go straight to stdout."
29283 msgstr ""
29284
29285 # type: =head2
29286 #. type: =head2
29287 #: ../fish/guestfish-actions.pod:3886
29288 msgid "set-e2label"
29289 msgstr ""
29290
29291 # type: verbatim
29292 #. type: verbatim
29293 #: ../fish/guestfish-actions.pod:3888
29294 #, no-wrap
29295 msgid ""
29296 " set-e2label device label\n"
29297 "\n"
29298 msgstr ""
29299
29300 # type: textblock
29301 #. type: textblock
29302 #: ../fish/guestfish-actions.pod:3894
29303 msgid ""
29304 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
29305 "label on a filesystem."
29306 msgstr ""
29307
29308 # type: =head2
29309 #. type: =head2
29310 #: ../fish/guestfish-actions.pod:3897
29311 msgid "set-e2uuid"
29312 msgstr ""
29313
29314 # type: verbatim
29315 #. type: verbatim
29316 #: ../fish/guestfish-actions.pod:3899
29317 #, no-wrap
29318 msgid ""
29319 " set-e2uuid device uuid\n"
29320 "\n"
29321 msgstr ""
29322
29323 # type: textblock
29324 #. type: textblock
29325 #: ../fish/guestfish-actions.pod:3906
29326 msgid ""
29327 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
29328 "UUID of a filesystem."
29329 msgstr ""
29330
29331 # type: =head2
29332 #. type: =head2
29333 #: ../fish/guestfish-actions.pod:3909
29334 msgid "set-memsize"
29335 msgstr ""
29336
29337 # type: =head2
29338 #. type: =head2
29339 #: ../fish/guestfish-actions.pod:3911
29340 msgid "memsize"
29341 msgstr ""
29342
29343 # type: verbatim
29344 #. type: verbatim
29345 #: ../fish/guestfish-actions.pod:3913
29346 #, no-wrap
29347 msgid ""
29348 " set-memsize memsize\n"
29349 "\n"
29350 msgstr ""
29351
29352 # type: textblock
29353 #. type: textblock
29354 #: ../fish/guestfish-actions.pod:3915
29355 msgid ""
29356 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29357 "This only has any effect if called before L</launch>."
29358 msgstr ""
29359
29360 # type: =head2
29361 #. type: =head2
29362 #: ../fish/guestfish-actions.pod:3926
29363 msgid "set-network"
29364 msgstr ""
29365
29366 # type: =head2
29367 #. type: =head2
29368 #: ../fish/guestfish-actions.pod:3928
29369 msgid "network"
29370 msgstr ""
29371
29372 # type: verbatim
29373 #. type: verbatim
29374 #: ../fish/guestfish-actions.pod:3930
29375 #, no-wrap
29376 msgid ""
29377 " set-network true|false\n"
29378 "\n"
29379 msgstr ""
29380
29381 # type: textblock
29382 #. type: textblock
29383 #: ../fish/guestfish-actions.pod:3938
29384 msgid ""
29385 "You must call this before calling L</launch>, otherwise it has no effect."
29386 msgstr ""
29387
29388 # type: =head2
29389 #. type: =head2
29390 #: ../fish/guestfish-actions.pod:3941
29391 msgid "set-path"
29392 msgstr ""
29393
29394 # type: =head2
29395 #. type: =head2
29396 #: ../fish/guestfish-actions.pod:3943
29397 msgid "path"
29398 msgstr ""
29399
29400 # type: verbatim
29401 #. type: verbatim
29402 #: ../fish/guestfish-actions.pod:3945
29403 #, no-wrap
29404 msgid ""
29405 " set-path searchpath\n"
29406 "\n"
29407 msgstr ""
29408
29409 # type: =head2
29410 #. type: =head2
29411 #: ../fish/guestfish-actions.pod:3954
29412 msgid "set-qemu"
29413 msgstr ""
29414
29415 # type: =head2
29416 #. type: =head2
29417 #: ../fish/guestfish-actions.pod:3956
29418 msgid "qemu"
29419 msgstr ""
29420
29421 # type: verbatim
29422 #. type: verbatim
29423 #: ../fish/guestfish-actions.pod:3958
29424 #, no-wrap
29425 msgid ""
29426 " set-qemu qemu\n"
29427 "\n"
29428 msgstr ""
29429
29430 # type: =head2
29431 #. type: =head2
29432 #: ../fish/guestfish-actions.pod:3978
29433 msgid "set-recovery-proc"
29434 msgstr ""
29435
29436 # type: =head2
29437 #. type: =head2
29438 #: ../fish/guestfish-actions.pod:3980
29439 msgid "recovery-proc"
29440 msgstr ""
29441
29442 # type: verbatim
29443 #. type: verbatim
29444 #: ../fish/guestfish-actions.pod:3982
29445 #, no-wrap
29446 msgid ""
29447 " set-recovery-proc true|false\n"
29448 "\n"
29449 msgstr ""
29450
29451 # type: textblock
29452 #. type: textblock
29453 #: ../fish/guestfish-actions.pod:3984
29454 msgid ""
29455 "If this is called with the parameter C<false> then L</launch> does not "
29456 "create a recovery process.  The purpose of the recovery process is to stop "
29457 "runaway qemu processes in the case where the main program aborts abruptly."
29458 msgstr ""
29459
29460 # type: textblock
29461 #. type: textblock
29462 #: ../fish/guestfish-actions.pod:3989
29463 msgid ""
29464 "This only has any effect if called before L</launch>, and the default is "
29465 "true."
29466 msgstr ""
29467
29468 # type: =head2
29469 #. type: =head2
29470 #: ../fish/guestfish-actions.pod:3998
29471 msgid "set-selinux"
29472 msgstr ""
29473
29474 # type: =head2
29475 #. type: =head2
29476 #: ../fish/guestfish-actions.pod:4000
29477 msgid "selinux"
29478 msgstr ""
29479
29480 # type: verbatim
29481 #. type: verbatim
29482 #: ../fish/guestfish-actions.pod:4002
29483 #, no-wrap
29484 msgid ""
29485 " set-selinux true|false\n"
29486 "\n"
29487 msgstr ""
29488
29489 # type: =head2
29490 #. type: =head2
29491 #: ../fish/guestfish-actions.pod:4013
29492 msgid "set-trace"
29493 msgstr ""
29494
29495 # type: =head2
29496 #. type: =head2
29497 #: ../fish/guestfish-actions.pod:4015
29498 msgid "trace"
29499 msgstr ""
29500
29501 # type: verbatim
29502 #. type: verbatim
29503 #: ../fish/guestfish-actions.pod:4017
29504 #, no-wrap
29505 msgid ""
29506 " set-trace true|false\n"
29507 "\n"
29508 msgstr ""
29509
29510 #. type: textblock
29511 #: ../fish/guestfish-actions.pod:4029
29512 msgid ""
29513 "Trace messages are normally sent to C<stderr>, unless you register a "
29514 "callback to send them somewhere else (see L</set-event-callback>)."
29515 msgstr ""
29516
29517 # type: =head2
29518 #. type: =head2
29519 #: ../fish/guestfish-actions.pod:4033
29520 msgid "set-verbose"
29521 msgstr ""
29522
29523 # type: =head2
29524 #. type: =head2
29525 #: ../fish/guestfish-actions.pod:4035
29526 msgid "verbose"
29527 msgstr ""
29528
29529 # type: verbatim
29530 #. type: verbatim
29531 #: ../fish/guestfish-actions.pod:4037
29532 #, no-wrap
29533 msgid ""
29534 " set-verbose true|false\n"
29535 "\n"
29536 msgstr ""
29537
29538 #. type: textblock
29539 #: ../fish/guestfish-actions.pod:4044
29540 msgid ""
29541 "Verbose messages are normally sent to C<stderr>, unless you register a "
29542 "callback to send them somewhere else (see L</set-event-callback>)."
29543 msgstr ""
29544
29545 # type: =head2
29546 #. type: =head2
29547 #: ../fish/guestfish-actions.pod:4048
29548 msgid "setcon"
29549 msgstr ""
29550
29551 # type: verbatim
29552 #. type: verbatim
29553 #: ../fish/guestfish-actions.pod:4050
29554 #, no-wrap
29555 msgid ""
29556 " setcon context\n"
29557 "\n"
29558 msgstr ""
29559
29560 # type: =head2
29561 #. type: =head2
29562 #: ../fish/guestfish-actions.pod:4057
29563 msgid "setxattr"
29564 msgstr ""
29565
29566 # type: verbatim
29567 #. type: verbatim
29568 #: ../fish/guestfish-actions.pod:4059
29569 #, no-wrap
29570 msgid ""
29571 " setxattr xattr val vallen path\n"
29572 "\n"
29573 msgstr ""
29574
29575 # type: textblock
29576 #. type: textblock
29577 #: ../fish/guestfish-actions.pod:4065
29578 msgid "See also: L</lsetxattr>, L<attr(5)>."
29579 msgstr ""
29580
29581 # type: =head2
29582 #. type: =head2
29583 #: ../fish/guestfish-actions.pod:4067
29584 msgid "sfdisk"
29585 msgstr ""
29586
29587 # type: verbatim
29588 #. type: verbatim
29589 #: ../fish/guestfish-actions.pod:4069
29590 #, no-wrap
29591 msgid ""
29592 " sfdisk device cyls heads sectors 'lines ...'\n"
29593 "\n"
29594 msgstr ""
29595
29596 # type: textblock
29597 #. type: textblock
29598 #: ../fish/guestfish-actions.pod:4091
29599 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
29600 msgstr ""
29601
29602 # type: =head2
29603 #. type: =head2
29604 #: ../fish/guestfish-actions.pod:4097
29605 msgid "sfdiskM"
29606 msgstr ""
29607
29608 # type: verbatim
29609 #. type: verbatim
29610 #: ../fish/guestfish-actions.pod:4099
29611 #, no-wrap
29612 msgid ""
29613 " sfdiskM device 'lines ...'\n"
29614 "\n"
29615 msgstr ""
29616
29617 # type: textblock
29618 #. type: textblock
29619 #: ../fish/guestfish-actions.pod:4101
29620 msgid ""
29621 "This is a simplified interface to the L</sfdisk> command, where partition "
29622 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
29623 "you don't need to specify the cyls, heads and sectors parameters which were "
29624 "rarely if ever used anyway."
29625 msgstr ""
29626
29627 # type: textblock
29628 #. type: textblock
29629 #: ../fish/guestfish-actions.pod:4107
29630 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
29631 msgstr ""
29632
29633 # type: =head2
29634 #. type: =head2
29635 #: ../fish/guestfish-actions.pod:4113
29636 msgid "sfdisk-N"
29637 msgstr ""
29638
29639 # type: verbatim
29640 #. type: verbatim
29641 #: ../fish/guestfish-actions.pod:4115
29642 #, no-wrap
29643 msgid ""
29644 " sfdisk-N device partnum cyls heads sectors line\n"
29645 "\n"
29646 msgstr ""
29647
29648 # type: textblock
29649 #. type: textblock
29650 #: ../fish/guestfish-actions.pod:4120
29651 msgid ""
29652 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
29653 "cyls/heads/sectors parameters."
29654 msgstr ""
29655
29656 # type: textblock
29657 #. type: textblock
29658 #: ../fish/guestfish-actions.pod:4123
29659 msgid "See also: L</part-add>"
29660 msgstr ""
29661
29662 # type: =head2
29663 #. type: =head2
29664 #: ../fish/guestfish-actions.pod:4128
29665 msgid "sfdisk-disk-geometry"
29666 msgstr ""
29667
29668 # type: verbatim
29669 #. type: verbatim
29670 #: ../fish/guestfish-actions.pod:4130
29671 #, no-wrap
29672 msgid ""
29673 " sfdisk-disk-geometry device\n"
29674 "\n"
29675 msgstr ""
29676
29677 # type: textblock
29678 #. type: textblock
29679 #: ../fish/guestfish-actions.pod:4132
29680 msgid ""
29681 "This displays the disk geometry of C<device> read from the partition table.  "
29682 "Especially in the case where the underlying block device has been resized, "
29683 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
29684 "kernel-geometry>)."
29685 msgstr ""
29686
29687 # type: =head2
29688 #. type: =head2
29689 #: ../fish/guestfish-actions.pod:4140
29690 msgid "sfdisk-kernel-geometry"
29691 msgstr ""
29692
29693 # type: verbatim
29694 #. type: verbatim
29695 #: ../fish/guestfish-actions.pod:4142
29696 #, no-wrap
29697 msgid ""
29698 " sfdisk-kernel-geometry device\n"
29699 "\n"
29700 msgstr ""
29701
29702 # type: =head2
29703 #. type: =head2
29704 #: ../fish/guestfish-actions.pod:4149
29705 msgid "sfdisk-l"
29706 msgstr ""
29707
29708 # type: verbatim
29709 #. type: verbatim
29710 #: ../fish/guestfish-actions.pod:4151
29711 #, no-wrap
29712 msgid ""
29713 " sfdisk-l device\n"
29714 "\n"
29715 msgstr ""
29716
29717 # type: textblock
29718 #. type: textblock
29719 #: ../fish/guestfish-actions.pod:4157
29720 msgid "See also: L</part-list>"
29721 msgstr ""
29722
29723 # type: =head2
29724 #. type: =head2
29725 #: ../fish/guestfish-actions.pod:4159
29726 msgid "sh"
29727 msgstr ""
29728
29729 # type: verbatim
29730 #. type: verbatim
29731 #: ../fish/guestfish-actions.pod:4161
29732 #, no-wrap
29733 msgid ""
29734 " sh command\n"
29735 "\n"
29736 msgstr ""
29737
29738 # type: textblock
29739 #. type: textblock
29740 #: ../fish/guestfish-actions.pod:4166
29741 msgid "This is like L</command>, but passes the command to:"
29742 msgstr ""
29743
29744 # type: textblock
29745 #. type: textblock
29746 #: ../fish/guestfish-actions.pod:4174
29747 msgid "All the provisos about L</command> apply to this call."
29748 msgstr ""
29749
29750 # type: =head2
29751 #. type: =head2
29752 #: ../fish/guestfish-actions.pod:4176
29753 msgid "sh-lines"
29754 msgstr ""
29755
29756 # type: verbatim
29757 #. type: verbatim
29758 #: ../fish/guestfish-actions.pod:4178
29759 #, no-wrap
29760 msgid ""
29761 " sh-lines command\n"
29762 "\n"
29763 msgstr ""
29764
29765 # type: textblock
29766 #. type: textblock
29767 #: ../fish/guestfish-actions.pod:4180
29768 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29769 msgstr ""
29770
29771 # type: textblock
29772 #. type: textblock
29773 #: ../fish/guestfish-actions.pod:4183
29774 msgid "See also: L</command-lines>"
29775 msgstr ""
29776
29777 # type: =head2
29778 #. type: =head2
29779 #: ../fish/guestfish-actions.pod:4185
29780 msgid "sleep"
29781 msgstr ""
29782
29783 # type: verbatim
29784 #. type: verbatim
29785 #: ../fish/guestfish-actions.pod:4187
29786 #, no-wrap
29787 msgid ""
29788 " sleep secs\n"
29789 "\n"
29790 msgstr ""
29791
29792 # type: =head2
29793 #. type: =head2
29794 #: ../fish/guestfish-actions.pod:4191
29795 msgid "stat"
29796 msgstr ""
29797
29798 # type: verbatim
29799 #. type: verbatim
29800 #: ../fish/guestfish-actions.pod:4193
29801 #, no-wrap
29802 msgid ""
29803 " stat path\n"
29804 "\n"
29805 msgstr ""
29806
29807 # type: =head2
29808 #. type: =head2
29809 #: ../fish/guestfish-actions.pod:4199
29810 msgid "statvfs"
29811 msgstr ""
29812
29813 # type: verbatim
29814 #. type: verbatim
29815 #: ../fish/guestfish-actions.pod:4201
29816 #, no-wrap
29817 msgid ""
29818 " statvfs path\n"
29819 "\n"
29820 msgstr ""
29821
29822 # type: =head2
29823 #. type: =head2
29824 #: ../fish/guestfish-actions.pod:4209
29825 msgid "strings"
29826 msgstr ""
29827
29828 # type: verbatim
29829 #. type: verbatim
29830 #: ../fish/guestfish-actions.pod:4211
29831 #, no-wrap
29832 msgid ""
29833 " strings path\n"
29834 "\n"
29835 msgstr ""
29836
29837 # type: =head2
29838 #. type: =head2
29839 #: ../fish/guestfish-actions.pod:4219
29840 msgid "strings-e"
29841 msgstr ""
29842
29843 # type: verbatim
29844 #. type: verbatim
29845 #: ../fish/guestfish-actions.pod:4221
29846 #, no-wrap
29847 msgid ""
29848 " strings-e encoding path\n"
29849 "\n"
29850 msgstr ""
29851
29852 # type: textblock
29853 #. type: textblock
29854 #: ../fish/guestfish-actions.pod:4223
29855 msgid ""
29856 "This is like the L</strings> command, but allows you to specify the encoding "
29857 "of strings that are looked for in the source file C<path>."
29858 msgstr ""
29859
29860 # type: textblock
29861 #. type: textblock
29862 #: ../fish/guestfish-actions.pod:4233
29863 msgid ""
29864 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29865 "ISO-8859-X (this is what L</strings> uses)."
29866 msgstr ""
29867
29868 # type: =head2
29869 #. type: =head2
29870 #: ../fish/guestfish-actions.pod:4265
29871 msgid "swapoff-device"
29872 msgstr ""
29873
29874 # type: verbatim
29875 #. type: verbatim
29876 #: ../fish/guestfish-actions.pod:4267
29877 #, no-wrap
29878 msgid ""
29879 " swapoff-device device\n"
29880 "\n"
29881 msgstr ""
29882
29883 # type: textblock
29884 #. type: textblock
29885 #: ../fish/guestfish-actions.pod:4269
29886 msgid ""
29887 "This command disables the libguestfs appliance swap device or partition "
29888 "named C<device>.  See L</swapon-device>."
29889 msgstr ""
29890
29891 # type: =head2
29892 #. type: =head2
29893 #: ../fish/guestfish-actions.pod:4273
29894 msgid "swapoff-file"
29895 msgstr ""
29896
29897 # type: verbatim
29898 #. type: verbatim
29899 #: ../fish/guestfish-actions.pod:4275
29900 #, no-wrap
29901 msgid ""
29902 " swapoff-file file\n"
29903 "\n"
29904 msgstr ""
29905
29906 # type: =head2
29907 #. type: =head2
29908 #: ../fish/guestfish-actions.pod:4279
29909 msgid "swapoff-label"
29910 msgstr ""
29911
29912 # type: verbatim
29913 #. type: verbatim
29914 #: ../fish/guestfish-actions.pod:4281
29915 #, no-wrap
29916 msgid ""
29917 " swapoff-label label\n"
29918 "\n"
29919 msgstr ""
29920
29921 # type: =head2
29922 #. type: =head2
29923 #: ../fish/guestfish-actions.pod:4286
29924 msgid "swapoff-uuid"
29925 msgstr ""
29926
29927 # type: verbatim
29928 #. type: verbatim
29929 #: ../fish/guestfish-actions.pod:4288
29930 #, no-wrap
29931 msgid ""
29932 " swapoff-uuid uuid\n"
29933 "\n"
29934 msgstr ""
29935
29936 # type: =head2
29937 #. type: =head2
29938 #: ../fish/guestfish-actions.pod:4293
29939 msgid "swapon-device"
29940 msgstr ""
29941
29942 # type: verbatim
29943 #. type: verbatim
29944 #: ../fish/guestfish-actions.pod:4295
29945 #, no-wrap
29946 msgid ""
29947 " swapon-device device\n"
29948 "\n"
29949 msgstr ""
29950
29951 # type: textblock
29952 #. type: textblock
29953 #: ../fish/guestfish-actions.pod:4297
29954 msgid ""
29955 "This command enables the libguestfs appliance to use the swap device or "
29956 "partition named C<device>.  The increased memory is made available for all "
29957 "commands, for example those run using L</command> or L</sh>."
29958 msgstr ""
29959
29960 # type: =head2
29961 #. type: =head2
29962 #: ../fish/guestfish-actions.pod:4309
29963 msgid "swapon-file"
29964 msgstr ""
29965
29966 # type: verbatim
29967 #. type: verbatim
29968 #: ../fish/guestfish-actions.pod:4311
29969 #, no-wrap
29970 msgid ""
29971 " swapon-file file\n"
29972 "\n"
29973 msgstr ""
29974
29975 # type: textblock
29976 #. type: textblock
29977 #: ../fish/guestfish-actions.pod:4313
29978 msgid ""
29979 "This command enables swap to a file.  See L</swapon-device> for other notes."
29980 msgstr ""
29981
29982 # type: =head2
29983 #. type: =head2
29984 #: ../fish/guestfish-actions.pod:4316
29985 msgid "swapon-label"
29986 msgstr ""
29987
29988 # type: verbatim
29989 #. type: verbatim
29990 #: ../fish/guestfish-actions.pod:4318
29991 #, no-wrap
29992 msgid ""
29993 " swapon-label label\n"
29994 "\n"
29995 msgstr ""
29996
29997 # type: textblock
29998 #. type: textblock
29999 #: ../fish/guestfish-actions.pod:4320
30000 msgid ""
30001 "This command enables swap to a labeled swap partition.  See L</swapon-"
30002 "device> for other notes."
30003 msgstr ""
30004
30005 # type: =head2
30006 #. type: =head2
30007 #: ../fish/guestfish-actions.pod:4323
30008 msgid "swapon-uuid"
30009 msgstr ""
30010
30011 # type: verbatim
30012 #. type: verbatim
30013 #: ../fish/guestfish-actions.pod:4325
30014 #, no-wrap
30015 msgid ""
30016 " swapon-uuid uuid\n"
30017 "\n"
30018 msgstr ""
30019
30020 # type: textblock
30021 #. type: textblock
30022 #: ../fish/guestfish-actions.pod:4327
30023 msgid ""
30024 "This command enables swap to a swap partition with the given UUID.  See L</"
30025 "swapon-device> for other notes."
30026 msgstr ""
30027
30028 # type: =head2
30029 #. type: =head2
30030 #: ../fish/guestfish-actions.pod:4330
30031 msgid "sync"
30032 msgstr ""
30033
30034 # type: verbatim
30035 #. type: verbatim
30036 #: ../fish/guestfish-actions.pod:4332
30037 #, no-wrap
30038 msgid ""
30039 " sync\n"
30040 "\n"
30041 msgstr ""
30042
30043 # type: =head2
30044 #. type: =head2
30045 #: ../fish/guestfish-actions.pod:4340
30046 msgid "tail"
30047 msgstr ""
30048
30049 # type: verbatim
30050 #. type: verbatim
30051 #: ../fish/guestfish-actions.pod:4342
30052 #, no-wrap
30053 msgid ""
30054 " tail path\n"
30055 "\n"
30056 msgstr ""
30057
30058 # type: =head2
30059 #. type: =head2
30060 #: ../fish/guestfish-actions.pod:4350
30061 msgid "tail-n"
30062 msgstr ""
30063
30064 # type: verbatim
30065 #. type: verbatim
30066 #: ../fish/guestfish-actions.pod:4352
30067 #, no-wrap
30068 msgid ""
30069 " tail-n nrlines path\n"
30070 "\n"
30071 msgstr ""
30072
30073 # type: =head2
30074 #. type: =head2
30075 #: ../fish/guestfish-actions.pod:4365
30076 msgid "tar-in"
30077 msgstr ""
30078
30079 # type: verbatim
30080 #. type: verbatim
30081 #: ../fish/guestfish-actions.pod:4367
30082 #, no-wrap
30083 msgid ""
30084 " tar-in (tarfile|-) directory\n"
30085 "\n"
30086 msgstr ""
30087
30088 # type: textblock
30089 #. type: textblock
30090 #: ../fish/guestfish-actions.pod:4372
30091 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
30092 msgstr ""
30093
30094 # type: =head2
30095 #. type: =head2
30096 #: ../fish/guestfish-actions.pod:4377
30097 msgid "tar-out"
30098 msgstr ""
30099
30100 # type: verbatim
30101 #. type: verbatim
30102 #: ../fish/guestfish-actions.pod:4379
30103 #, no-wrap
30104 msgid ""
30105 " tar-out directory (tarfile|-)\n"
30106 "\n"
30107 msgstr ""
30108
30109 # type: textblock
30110 #. type: textblock
30111 #: ../fish/guestfish-actions.pod:4384
30112 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
30113 msgstr ""
30114
30115 # type: =head2
30116 #. type: =head2
30117 #: ../fish/guestfish-actions.pod:4389
30118 msgid "tgz-in"
30119 msgstr ""
30120
30121 # type: verbatim
30122 #. type: verbatim
30123 #: ../fish/guestfish-actions.pod:4391
30124 #, no-wrap
30125 msgid ""
30126 " tgz-in (tarball|-) directory\n"
30127 "\n"
30128 msgstr ""
30129
30130 # type: textblock
30131 #. type: textblock
30132 #: ../fish/guestfish-actions.pod:4396
30133 msgid "To upload an uncompressed tarball, use L</tar-in>."
30134 msgstr ""
30135
30136 # type: =head2
30137 #. type: =head2
30138 #: ../fish/guestfish-actions.pod:4400
30139 msgid "tgz-out"
30140 msgstr ""
30141
30142 # type: verbatim
30143 #. type: verbatim
30144 #: ../fish/guestfish-actions.pod:4402
30145 #, no-wrap
30146 msgid ""
30147 " tgz-out directory (tarball|-)\n"
30148 "\n"
30149 msgstr ""
30150
30151 # type: textblock
30152 #. type: textblock
30153 #: ../fish/guestfish-actions.pod:4407
30154 msgid "To download an uncompressed tarball, use L</tar-out>."
30155 msgstr ""
30156
30157 # type: =head2
30158 #. type: =head2
30159 #: ../fish/guestfish-actions.pod:4411
30160 msgid "touch"
30161 msgstr ""
30162
30163 # type: verbatim
30164 #. type: verbatim
30165 #: ../fish/guestfish-actions.pod:4413
30166 #, no-wrap
30167 msgid ""
30168 " touch path\n"
30169 "\n"
30170 msgstr ""
30171
30172 # type: =head2
30173 #. type: =head2
30174 #: ../fish/guestfish-actions.pod:4422
30175 msgid "truncate"
30176 msgstr ""
30177
30178 # type: verbatim
30179 #. type: verbatim
30180 #: ../fish/guestfish-actions.pod:4424
30181 #, no-wrap
30182 msgid ""
30183 " truncate path\n"
30184 "\n"
30185 msgstr ""
30186
30187 # type: =head2
30188 #. type: =head2
30189 #: ../fish/guestfish-actions.pod:4429
30190 msgid "truncate-size"
30191 msgstr ""
30192
30193 # type: verbatim
30194 #. type: verbatim
30195 #: ../fish/guestfish-actions.pod:4431
30196 #, no-wrap
30197 msgid ""
30198 " truncate-size path size\n"
30199 "\n"
30200 msgstr ""
30201
30202 # type: textblock
30203 #. type: textblock
30204 #: ../fish/guestfish-actions.pod:4436
30205 msgid ""
30206 "If the current file size is less than C<size> then the file is extended to "
30207 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30208 "blocks are not allocated for the file until you write to it).  To create a "
30209 "non-sparse file of zeroes, use L</fallocate64> instead."
30210 msgstr ""
30211
30212 # type: =head2
30213 #. type: =head2
30214 #: ../fish/guestfish-actions.pod:4442
30215 msgid "tune2fs-l"
30216 msgstr ""
30217
30218 # type: verbatim
30219 #. type: verbatim
30220 #: ../fish/guestfish-actions.pod:4444
30221 #, no-wrap
30222 msgid ""
30223 " tune2fs-l device\n"
30224 "\n"
30225 msgstr ""
30226
30227 # type: =head2
30228 #. type: =head2
30229 #: ../fish/guestfish-actions.pod:4454
30230 msgid "txz-in"
30231 msgstr ""
30232
30233 # type: verbatim
30234 #. type: verbatim
30235 #: ../fish/guestfish-actions.pod:4456
30236 #, no-wrap
30237 msgid ""
30238 " txz-in (tarball|-) directory\n"
30239 "\n"
30240 msgstr ""
30241
30242 # type: =head2
30243 #. type: =head2
30244 #: ../fish/guestfish-actions.pod:4463
30245 msgid "txz-out"
30246 msgstr ""
30247
30248 # type: verbatim
30249 #. type: verbatim
30250 #: ../fish/guestfish-actions.pod:4465
30251 #, no-wrap
30252 msgid ""
30253 " txz-out directory (tarball|-)\n"
30254 "\n"
30255 msgstr ""
30256
30257 # type: =head2
30258 #. type: =head2
30259 #: ../fish/guestfish-actions.pod:4472
30260 msgid "umask"
30261 msgstr ""
30262
30263 # type: verbatim
30264 #. type: verbatim
30265 #: ../fish/guestfish-actions.pod:4474
30266 #, no-wrap
30267 msgid ""
30268 " umask mask\n"
30269 "\n"
30270 msgstr ""
30271
30272 # type: textblock
30273 #. type: textblock
30274 #: ../fish/guestfish-actions.pod:4488
30275 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
30276 msgstr ""
30277
30278 # type: =head2
30279 #. type: =head2
30280 #: ../fish/guestfish-actions.pod:4493
30281 msgid "umount"
30282 msgstr ""
30283
30284 # type: =head2
30285 #. type: =head2
30286 #: ../fish/guestfish-actions.pod:4495
30287 msgid "unmount"
30288 msgstr ""
30289
30290 # type: verbatim
30291 #. type: verbatim
30292 #: ../fish/guestfish-actions.pod:4497
30293 #, no-wrap
30294 msgid ""
30295 " umount pathordevice\n"
30296 "\n"
30297 msgstr ""
30298
30299 # type: =head2
30300 #. type: =head2
30301 #: ../fish/guestfish-actions.pod:4503
30302 msgid "umount-all"
30303 msgstr ""
30304
30305 # type: =head2
30306 #. type: =head2
30307 #: ../fish/guestfish-actions.pod:4505
30308 msgid "unmount-all"
30309 msgstr ""
30310
30311 # type: verbatim
30312 #. type: verbatim
30313 #: ../fish/guestfish-actions.pod:4507
30314 #, no-wrap
30315 msgid ""
30316 " umount-all\n"
30317 "\n"
30318 msgstr ""
30319
30320 # type: =head2
30321 #. type: =head2
30322 #: ../fish/guestfish-actions.pod:4513
30323 msgid "upload"
30324 msgstr ""
30325
30326 # type: verbatim
30327 #. type: verbatim
30328 #: ../fish/guestfish-actions.pod:4515
30329 #, no-wrap
30330 msgid ""
30331 " upload (filename|-) remotefilename\n"
30332 "\n"
30333 msgstr ""
30334
30335 # type: textblock
30336 #. type: textblock
30337 #: ../fish/guestfish-actions.pod:4522
30338 msgid "See also L</download>."
30339 msgstr ""
30340
30341 # type: =head2
30342 #. type: =head2
30343 #: ../fish/guestfish-actions.pod:4526
30344 msgid "upload-offset"
30345 msgstr ""
30346
30347 # type: verbatim
30348 #. type: verbatim
30349 #: ../fish/guestfish-actions.pod:4528
30350 #, no-wrap
30351 msgid ""
30352 " upload-offset (filename|-) remotefilename offset\n"
30353 "\n"
30354 msgstr ""
30355
30356 # type: textblock
30357 #. type: textblock
30358 #: ../fish/guestfish-actions.pod:4540
30359 msgid ""
30360 "Note that there is no limit on the amount of data that can be uploaded with "
30361 "this call, unlike with L</pwrite>, and this call always writes the full "
30362 "amount unless an error occurs."
30363 msgstr ""
30364
30365 # type: textblock
30366 #. type: textblock
30367 #: ../fish/guestfish-actions.pod:4545
30368 msgid "See also L</upload>, L</pwrite>."
30369 msgstr ""
30370
30371 # type: =head2
30372 #. type: =head2
30373 #: ../fish/guestfish-actions.pod:4549
30374 msgid "utimens"
30375 msgstr ""
30376
30377 # type: verbatim
30378 #. type: verbatim
30379 #: ../fish/guestfish-actions.pod:4551
30380 #, no-wrap
30381 msgid ""
30382 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
30383 "\n"
30384 msgstr ""
30385
30386 # type: =head2
30387 #. type: =head2
30388 #: ../fish/guestfish-actions.pod:4570
30389 msgid "version"
30390 msgstr ""
30391
30392 # type: verbatim
30393 #. type: verbatim
30394 #: ../fish/guestfish-actions.pod:4572
30395 #, no-wrap
30396 msgid ""
30397 " version\n"
30398 "\n"
30399 msgstr ""
30400
30401 # type: textblock
30402 #. type: textblock
30403 #: ../fish/guestfish-actions.pod:4599
30404 msgid ""
30405 "I<Note:> Don't use this call to test for availability of features.  In "
30406 "enterprise distributions we backport features from later versions into "
30407 "earlier versions, making this an unreliable way to test for features.  Use "
30408 "L</available> instead."
30409 msgstr ""
30410
30411 # type: =head2
30412 #. type: =head2
30413 #: ../fish/guestfish-actions.pod:4605
30414 msgid "vfs-label"
30415 msgstr ""
30416
30417 # type: verbatim
30418 #. type: verbatim
30419 #: ../fish/guestfish-actions.pod:4607
30420 #, no-wrap
30421 msgid ""
30422 " vfs-label device\n"
30423 "\n"
30424 msgstr ""
30425
30426 # type: textblock
30427 #. type: textblock
30428 #: ../fish/guestfish-actions.pod:4614
30429 msgid "To find a filesystem from the label, use L</findfs-label>."
30430 msgstr ""
30431
30432 # type: =head2
30433 #. type: =head2
30434 #: ../fish/guestfish-actions.pod:4616
30435 msgid "vfs-type"
30436 msgstr ""
30437
30438 # type: verbatim
30439 #. type: verbatim
30440 #: ../fish/guestfish-actions.pod:4618
30441 #, no-wrap
30442 msgid ""
30443 " vfs-type device\n"
30444 "\n"
30445 msgstr ""
30446
30447 # type: =head2
30448 #. type: =head2
30449 #: ../fish/guestfish-actions.pod:4628
30450 msgid "vfs-uuid"
30451 msgstr ""
30452
30453 # type: verbatim
30454 #. type: verbatim
30455 #: ../fish/guestfish-actions.pod:4630
30456 #, no-wrap
30457 msgid ""
30458 " vfs-uuid device\n"
30459 "\n"
30460 msgstr ""
30461
30462 # type: textblock
30463 #. type: textblock
30464 #: ../fish/guestfish-actions.pod:4637
30465 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
30466 msgstr ""
30467
30468 # type: =head2
30469 #. type: =head2
30470 #: ../fish/guestfish-actions.pod:4639
30471 msgid "vg-activate"
30472 msgstr ""
30473
30474 # type: verbatim
30475 #. type: verbatim
30476 #: ../fish/guestfish-actions.pod:4641
30477 #, no-wrap
30478 msgid ""
30479 " vg-activate true|false 'volgroups ...'\n"
30480 "\n"
30481 msgstr ""
30482
30483 # type: =head2
30484 #. type: =head2
30485 #: ../fish/guestfish-actions.pod:4654
30486 msgid "vg-activate-all"
30487 msgstr ""
30488
30489 # type: verbatim
30490 #. type: verbatim
30491 #: ../fish/guestfish-actions.pod:4656
30492 #, no-wrap
30493 msgid ""
30494 " vg-activate-all true|false\n"
30495 "\n"
30496 msgstr ""
30497
30498 # type: =head2
30499 #. type: =head2
30500 #: ../fish/guestfish-actions.pod:4666
30501 msgid "vgcreate"
30502 msgstr ""
30503
30504 # type: verbatim
30505 #. type: verbatim
30506 #: ../fish/guestfish-actions.pod:4668
30507 #, no-wrap
30508 msgid ""
30509 " vgcreate volgroup 'physvols ...'\n"
30510 "\n"
30511 msgstr ""
30512
30513 # type: =head2
30514 #. type: =head2
30515 #: ../fish/guestfish-actions.pod:4673
30516 msgid "vglvuuids"
30517 msgstr ""
30518
30519 # type: verbatim
30520 #. type: verbatim
30521 #: ../fish/guestfish-actions.pod:4675
30522 #, no-wrap
30523 msgid ""
30524 " vglvuuids vgname\n"
30525 "\n"
30526 msgstr ""
30527
30528 # type: textblock
30529 #. type: textblock
30530 #: ../fish/guestfish-actions.pod:4680
30531 msgid ""
30532 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
30533 "logical volumes and volume groups."
30534 msgstr ""
30535
30536 # type: textblock
30537 #. type: textblock
30538 #: ../fish/guestfish-actions.pod:4683
30539 msgid "See also L</vgpvuuids>."
30540 msgstr ""
30541
30542 # type: =head2
30543 #. type: =head2
30544 #: ../fish/guestfish-actions.pod:4685
30545 msgid "vgpvuuids"
30546 msgstr ""
30547
30548 # type: verbatim
30549 #. type: verbatim
30550 #: ../fish/guestfish-actions.pod:4687
30551 #, no-wrap
30552 msgid ""
30553 " vgpvuuids vgname\n"
30554 "\n"
30555 msgstr ""
30556
30557 # type: textblock
30558 #. type: textblock
30559 #: ../fish/guestfish-actions.pod:4692
30560 msgid ""
30561 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
30562 "physical volumes and volume groups."
30563 msgstr ""
30564
30565 # type: textblock
30566 #. type: textblock
30567 #: ../fish/guestfish-actions.pod:4695
30568 msgid "See also L</vglvuuids>."
30569 msgstr ""
30570
30571 # type: =head2
30572 #. type: =head2
30573 #: ../fish/guestfish-actions.pod:4697
30574 msgid "vgremove"
30575 msgstr ""
30576
30577 # type: verbatim
30578 #. type: verbatim
30579 #: ../fish/guestfish-actions.pod:4699
30580 #, no-wrap
30581 msgid ""
30582 " vgremove vgname\n"
30583 "\n"
30584 msgstr ""
30585
30586 # type: =head2
30587 #. type: =head2
30588 #: ../fish/guestfish-actions.pod:4706
30589 msgid "vgrename"
30590 msgstr ""
30591
30592 # type: verbatim
30593 #. type: verbatim
30594 #: ../fish/guestfish-actions.pod:4708
30595 #, no-wrap
30596 msgid ""
30597 " vgrename volgroup newvolgroup\n"
30598 "\n"
30599 msgstr ""
30600
30601 # type: =head2
30602 #. type: =head2
30603 #: ../fish/guestfish-actions.pod:4712
30604 msgid "vgs"
30605 msgstr ""
30606
30607 # type: verbatim
30608 #. type: verbatim
30609 #: ../fish/guestfish-actions.pod:4714
30610 #, no-wrap
30611 msgid ""
30612 " vgs\n"
30613 "\n"
30614 msgstr ""
30615
30616 # type: textblock
30617 #. type: textblock
30618 #: ../fish/guestfish-actions.pod:4722
30619 msgid "See also L</vgs-full>."
30620 msgstr ""
30621
30622 # type: =head2
30623 #. type: =head2
30624 #: ../fish/guestfish-actions.pod:4724
30625 msgid "vgs-full"
30626 msgstr ""
30627
30628 # type: verbatim
30629 #. type: verbatim
30630 #: ../fish/guestfish-actions.pod:4726
30631 #, no-wrap
30632 msgid ""
30633 " vgs-full\n"
30634 "\n"
30635 msgstr ""
30636
30637 # type: =head2
30638 #. type: =head2
30639 #: ../fish/guestfish-actions.pod:4731
30640 msgid "vgscan"
30641 msgstr ""
30642
30643 # type: verbatim
30644 #. type: verbatim
30645 #: ../fish/guestfish-actions.pod:4733
30646 #, no-wrap
30647 msgid ""
30648 " vgscan\n"
30649 "\n"
30650 msgstr ""
30651
30652 # type: =head2
30653 #. type: =head2
30654 #: ../fish/guestfish-actions.pod:4738
30655 msgid "vguuid"
30656 msgstr ""
30657
30658 # type: verbatim
30659 #. type: verbatim
30660 #: ../fish/guestfish-actions.pod:4740
30661 #, no-wrap
30662 msgid ""
30663 " vguuid vgname\n"
30664 "\n"
30665 msgstr ""
30666
30667 # type: =head2
30668 #. type: =head2
30669 #: ../fish/guestfish-actions.pod:4744
30670 msgid "wc-c"
30671 msgstr ""
30672
30673 # type: verbatim
30674 #. type: verbatim
30675 #: ../fish/guestfish-actions.pod:4746
30676 #, no-wrap
30677 msgid ""
30678 " wc-c path\n"
30679 "\n"
30680 msgstr ""
30681
30682 # type: =head2
30683 #. type: =head2
30684 #: ../fish/guestfish-actions.pod:4751
30685 msgid "wc-l"
30686 msgstr ""
30687
30688 # type: verbatim
30689 #. type: verbatim
30690 #: ../fish/guestfish-actions.pod:4753
30691 #, no-wrap
30692 msgid ""
30693 " wc-l path\n"
30694 "\n"
30695 msgstr ""
30696
30697 # type: =head2
30698 #. type: =head2
30699 #: ../fish/guestfish-actions.pod:4758
30700 msgid "wc-w"
30701 msgstr ""
30702
30703 # type: verbatim
30704 #. type: verbatim
30705 #: ../fish/guestfish-actions.pod:4760
30706 #, no-wrap
30707 msgid ""
30708 " wc-w path\n"
30709 "\n"
30710 msgstr ""
30711
30712 # type: =head2
30713 #. type: =head2
30714 #: ../fish/guestfish-actions.pod:4765
30715 msgid "write"
30716 msgstr ""
30717
30718 # type: verbatim
30719 #. type: verbatim
30720 #: ../fish/guestfish-actions.pod:4767
30721 #, no-wrap
30722 msgid ""
30723 " write path content\n"
30724 "\n"
30725 msgstr ""
30726
30727 # type: =head2
30728 #. type: =head2
30729 #: ../fish/guestfish-actions.pod:4775
30730 msgid "write-file"
30731 msgstr ""
30732
30733 # type: verbatim
30734 #. type: verbatim
30735 #: ../fish/guestfish-actions.pod:4777
30736 #, no-wrap
30737 msgid ""
30738 " write-file path content size\n"
30739 "\n"
30740 msgstr ""
30741
30742 # type: =head2
30743 #. type: =head2
30744 #: ../fish/guestfish-actions.pod:4800
30745 msgid "zegrep"
30746 msgstr ""
30747
30748 # type: verbatim
30749 #. type: verbatim
30750 #: ../fish/guestfish-actions.pod:4802
30751 #, no-wrap
30752 msgid ""
30753 " zegrep regex path\n"
30754 "\n"
30755 msgstr ""
30756
30757 # type: =head2
30758 #. type: =head2
30759 #: ../fish/guestfish-actions.pod:4810
30760 msgid "zegrepi"
30761 msgstr ""
30762
30763 # type: verbatim
30764 #. type: verbatim
30765 #: ../fish/guestfish-actions.pod:4812
30766 #, no-wrap
30767 msgid ""
30768 " zegrepi regex path\n"
30769 "\n"
30770 msgstr ""
30771
30772 # type: =head2
30773 #. type: =head2
30774 #: ../fish/guestfish-actions.pod:4820
30775 msgid "zero"
30776 msgstr ""
30777
30778 # type: verbatim
30779 #. type: verbatim
30780 #: ../fish/guestfish-actions.pod:4822
30781 #, no-wrap
30782 msgid ""
30783 " zero device\n"
30784 "\n"
30785 msgstr ""
30786
30787 # type: textblock
30788 #. type: textblock
30789 #: ../fish/guestfish-actions.pod:4830
30790 msgid "See also: L</zero-device>, L</scrub-device>."
30791 msgstr ""
30792
30793 # type: =head2
30794 #. type: =head2
30795 #: ../fish/guestfish-actions.pod:4832
30796 msgid "zero-device"
30797 msgstr ""
30798
30799 # type: verbatim
30800 #. type: verbatim
30801 #: ../fish/guestfish-actions.pod:4834
30802 #, no-wrap
30803 msgid ""
30804 " zero-device device\n"
30805 "\n"
30806 msgstr ""
30807
30808 # type: textblock
30809 #. type: textblock
30810 #: ../fish/guestfish-actions.pod:4836
30811 msgid ""
30812 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
30813 "which just zeroes the first few blocks of a device."
30814 msgstr ""
30815
30816 # type: =head2
30817 #. type: =head2
30818 #: ../fish/guestfish-actions.pod:4843
30819 msgid "zerofree"
30820 msgstr ""
30821
30822 # type: verbatim
30823 #. type: verbatim
30824 #: ../fish/guestfish-actions.pod:4845
30825 #, no-wrap
30826 msgid ""
30827 " zerofree device\n"
30828 "\n"
30829 msgstr ""
30830
30831 # type: =head2
30832 #. type: =head2
30833 #: ../fish/guestfish-actions.pod:4858
30834 msgid "zfgrep"
30835 msgstr ""
30836
30837 # type: verbatim
30838 #. type: verbatim
30839 #: ../fish/guestfish-actions.pod:4860
30840 #, no-wrap
30841 msgid ""
30842 " zfgrep pattern path\n"
30843 "\n"
30844 msgstr ""
30845
30846 # type: =head2
30847 #. type: =head2
30848 #: ../fish/guestfish-actions.pod:4868
30849 msgid "zfgrepi"
30850 msgstr ""
30851
30852 # type: verbatim
30853 #. type: verbatim
30854 #: ../fish/guestfish-actions.pod:4870
30855 #, no-wrap
30856 msgid ""
30857 " zfgrepi pattern path\n"
30858 "\n"
30859 msgstr ""
30860
30861 # type: =head2
30862 #. type: =head2
30863 #: ../fish/guestfish-actions.pod:4878
30864 msgid "zfile"
30865 msgstr ""
30866
30867 # type: verbatim
30868 #. type: verbatim
30869 #: ../fish/guestfish-actions.pod:4880
30870 #, no-wrap
30871 msgid ""
30872 " zfile meth path\n"
30873 "\n"
30874 msgstr ""
30875
30876 # type: textblock
30877 #. type: textblock
30878 #: ../fish/guestfish-actions.pod:4887
30879 msgid ""
30880 "Since 1.0.63, use L</file> instead which can now process compressed files."
30881 msgstr ""
30882
30883 # type: =head2
30884 #. type: =head2
30885 #: ../fish/guestfish-actions.pod:4897
30886 msgid "zgrep"
30887 msgstr ""
30888
30889 # type: verbatim
30890 #. type: verbatim
30891 #: ../fish/guestfish-actions.pod:4899
30892 #, no-wrap
30893 msgid ""
30894 " zgrep regex path\n"
30895 "\n"
30896 msgstr ""
30897
30898 # type: =head2
30899 #. type: =head2
30900 #: ../fish/guestfish-actions.pod:4907
30901 msgid "zgrepi"
30902 msgstr ""
30903
30904 # type: verbatim
30905 #. type: verbatim
30906 #: ../fish/guestfish-actions.pod:4909
30907 #, no-wrap
30908 msgid ""
30909 " zgrepi regex path\n"
30910 "\n"
30911 msgstr ""
30912
30913 # type: =head2
30914 #. type: =head2
30915 #: ../fish/guestfish-commands.pod:1
30916 msgid "alloc"
30917 msgstr ""
30918
30919 # type: =head2
30920 #. type: =head2
30921 #: ../fish/guestfish-commands.pod:3
30922 msgid "allocate"
30923 msgstr ""
30924
30925 # type: verbatim
30926 #. type: verbatim
30927 #: ../fish/guestfish-commands.pod:5
30928 #, no-wrap
30929 msgid ""
30930 " alloc filename size\n"
30931 "\n"
30932 msgstr ""
30933
30934 # type: textblock
30935 #. type: textblock
30936 #: ../fish/guestfish-commands.pod:7
30937 msgid ""
30938 "This creates an empty (zeroed) file of the given size, and then adds so it "
30939 "can be further examined."
30940 msgstr ""
30941
30942 # type: textblock
30943 #. type: textblock
30944 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
30945 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
30946 msgstr ""
30947
30948 # type: textblock
30949 #. type: textblock
30950 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
30951 msgid "Size can be specified using standard suffixes, eg. C<1M>."
30952 msgstr ""
30953
30954 # type: textblock
30955 #. type: textblock
30956 #: ../fish/guestfish-commands.pod:14
30957 msgid ""
30958 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
30959 "image, see L</PREPARED DISK IMAGES>."
30960 msgstr ""
30961
30962 # type: =head2
30963 #. type: =head2
30964 #: ../fish/guestfish-commands.pod:17
30965 msgid "copy-in"
30966 msgstr ""
30967
30968 # type: verbatim
30969 #. type: verbatim
30970 #: ../fish/guestfish-commands.pod:19
30971 #, no-wrap
30972 msgid ""
30973 " copy-in local [local ...] /remotedir\n"
30974 "\n"
30975 msgstr ""
30976
30977 # type: textblock
30978 #. type: textblock
30979 #: ../fish/guestfish-commands.pod:21
30980 msgid ""
30981 "C<copy-in> copies local files or directories recursively into the disk "
30982 "image, placing them in the directory called C</remotedir> (which must "
30983 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
30984 "other commands as necessary."
30985 msgstr ""
30986
30987 # type: textblock
30988 #. type: textblock
30989 #: ../fish/guestfish-commands.pod:26
30990 msgid ""
30991 "Multiple local files and directories can be specified, but the last "
30992 "parameter must always be a remote directory.  Wildcards cannot be used."
30993 msgstr ""
30994
30995 # type: =head2
30996 #. type: =head2
30997 #: ../fish/guestfish-commands.pod:30
30998 msgid "copy-out"
30999 msgstr ""
31000
31001 # type: verbatim
31002 #. type: verbatim
31003 #: ../fish/guestfish-commands.pod:32
31004 #, no-wrap
31005 msgid ""
31006 " copy-out remote [remote ...] localdir\n"
31007 "\n"
31008 msgstr ""
31009
31010 # type: textblock
31011 #. type: textblock
31012 #: ../fish/guestfish-commands.pod:34
31013 msgid ""
31014 "C<copy-out> copies remote files or directories recursively out of the disk "
31015 "image, placing them on the host disk in a local directory called C<localdir> "
31016 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
31017 "download>, L</tar-out> and other commands as necessary."
31018 msgstr ""
31019
31020 # type: textblock
31021 #. type: textblock
31022 #: ../fish/guestfish-commands.pod:40
31023 msgid ""
31024 "Multiple remote files and directories can be specified, but the last "
31025 "parameter must always be a local directory.  To download to the current "
31026 "directory, use C<.> as in:"
31027 msgstr ""
31028
31029 # type: verbatim
31030 #. type: verbatim
31031 #: ../fish/guestfish-commands.pod:44
31032 #, no-wrap
31033 msgid ""
31034 " copy-out /home .\n"
31035 "\n"
31036 msgstr ""
31037
31038 # type: textblock
31039 #. type: textblock
31040 #: ../fish/guestfish-commands.pod:46
31041 msgid ""
31042 "Wildcards cannot be used in the ordinary command, but you can use them with "
31043 "the help of L</glob> like this:"
31044 msgstr ""
31045
31046 # type: verbatim
31047 #. type: verbatim
31048 #: ../fish/guestfish-commands.pod:49
31049 #, no-wrap
31050 msgid ""
31051 " glob copy-out /home/* .\n"
31052 "\n"
31053 msgstr ""
31054
31055 # type: =head2
31056 #. type: =head2
31057 #: ../fish/guestfish-commands.pod:51
31058 msgid "echo"
31059 msgstr ""
31060
31061 # type: verbatim
31062 #. type: verbatim
31063 #: ../fish/guestfish-commands.pod:53
31064 #, no-wrap
31065 msgid ""
31066 " echo [params ...]\n"
31067 "\n"
31068 msgstr ""
31069
31070 # type: textblock
31071 #. type: textblock
31072 #: ../fish/guestfish-commands.pod:55
31073 msgid "This echos the parameters to the terminal."
31074 msgstr ""
31075
31076 # type: =head2
31077 #. type: =head2
31078 #: ../fish/guestfish-commands.pod:57
31079 msgid "edit"
31080 msgstr ""
31081
31082 # type: =head2
31083 #. type: =head2
31084 #: ../fish/guestfish-commands.pod:59
31085 msgid "vi"
31086 msgstr ""
31087
31088 # type: =head2
31089 #. type: =head2
31090 #: ../fish/guestfish-commands.pod:61
31091 msgid "emacs"
31092 msgstr ""
31093
31094 # type: verbatim
31095 #. type: verbatim
31096 #: ../fish/guestfish-commands.pod:63
31097 #, no-wrap
31098 msgid ""
31099 " edit filename\n"
31100 "\n"
31101 msgstr ""
31102
31103 # type: textblock
31104 #. type: textblock
31105 #: ../fish/guestfish-commands.pod:65
31106 msgid ""
31107 "This is used to edit a file.  It downloads the file, edits it locally using "
31108 "your editor, then uploads the result."
31109 msgstr ""
31110
31111 # type: textblock
31112 #. type: textblock
31113 #: ../fish/guestfish-commands.pod:68
31114 msgid ""
31115 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
31116 "or C<emacs> you will get those corresponding editors."
31117 msgstr ""
31118
31119 # type: =head2
31120 #. type: =head2
31121 #: ../fish/guestfish-commands.pod:72
31122 msgid "glob"
31123 msgstr ""
31124
31125 # type: verbatim
31126 #. type: verbatim
31127 #: ../fish/guestfish-commands.pod:74
31128 #, no-wrap
31129 msgid ""
31130 " glob command args...\n"
31131 "\n"
31132 msgstr ""
31133
31134 # type: textblock
31135 #. type: textblock
31136 #: ../fish/guestfish-commands.pod:76
31137 msgid ""
31138 "Expand wildcards in any paths in the args list, and run C<command> "
31139 "repeatedly on each matching path."
31140 msgstr ""
31141
31142 # type: textblock
31143 #. type: textblock
31144 #: ../fish/guestfish-commands.pod:79
31145 msgid "See L</WILDCARDS AND GLOBBING>."
31146 msgstr ""
31147
31148 # type: =head2
31149 #. type: =head2
31150 #: ../fish/guestfish-commands.pod:81
31151 msgid "hexedit"
31152 msgstr ""
31153
31154 # type: verbatim
31155 #. type: verbatim
31156 #: ../fish/guestfish-commands.pod:83
31157 #, no-wrap
31158 msgid ""
31159 " hexedit <filename|device>\n"
31160 " hexedit <filename|device> <max>\n"
31161 " hexedit <filename|device> <start> <max>\n"
31162 "\n"
31163 msgstr ""
31164
31165 # type: textblock
31166 #. type: textblock
31167 #: ../fish/guestfish-commands.pod:87
31168 msgid ""
31169 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
31170 "device."
31171 msgstr ""
31172
31173 # type: textblock
31174 #. type: textblock
31175 #: ../fish/guestfish-commands.pod:90
31176 msgid ""
31177 "This command works by downloading potentially the whole file or device, "
31178 "editing it locally, then uploading it.  If the file or device is large, you "
31179 "have to specify which part you wish to edit by using C<max> and/or C<start> "
31180 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
31181 "usual modifiers allowed such as C<1M> (1 megabyte)."
31182 msgstr ""
31183
31184 # type: textblock
31185 #. type: textblock
31186 #: ../fish/guestfish-commands.pod:97
31187 msgid "For example to edit the first few sectors of a disk you might do:"
31188 msgstr ""
31189
31190 # type: verbatim
31191 #. type: verbatim
31192 #: ../fish/guestfish-commands.pod:100
31193 #, no-wrap
31194 msgid ""
31195 " hexedit /dev/sda 1M\n"
31196 "\n"
31197 msgstr ""
31198
31199 # type: textblock
31200 #. type: textblock
31201 #: ../fish/guestfish-commands.pod:102
31202 msgid ""
31203 "which would allow you to edit anywhere within the first megabyte of the disk."
31204 msgstr ""
31205
31206 # type: textblock
31207 #. type: textblock
31208 #: ../fish/guestfish-commands.pod:105
31209 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
31210 msgstr ""
31211
31212 # type: verbatim
31213 #. type: verbatim
31214 #: ../fish/guestfish-commands.pod:107
31215 #, no-wrap
31216 msgid ""
31217 " hexedit /dev/sda1 0x400 0x400\n"
31218 "\n"
31219 msgstr ""
31220
31221 # type: textblock
31222 #. type: textblock
31223 #: ../fish/guestfish-commands.pod:109
31224 msgid "(assuming the superblock is in the standard location)."
31225 msgstr ""
31226
31227 # type: textblock
31228 #. type: textblock
31229 #: ../fish/guestfish-commands.pod:111
31230 msgid ""
31231 "This command requires the external L<hexedit(1)> program.  You can specify "
31232 "another program to use by setting the C<HEXEDITOR> environment variable."
31233 msgstr ""
31234
31235 # type: textblock
31236 #. type: textblock
31237 #: ../fish/guestfish-commands.pod:115
31238 msgid "See also L</hexdump>."
31239 msgstr ""
31240
31241 # type: =head2
31242 #. type: =head2
31243 #: ../fish/guestfish-commands.pod:117
31244 msgid "lcd"
31245 msgstr ""
31246
31247 # type: verbatim
31248 #. type: verbatim
31249 #: ../fish/guestfish-commands.pod:119
31250 #, no-wrap
31251 msgid ""
31252 " lcd directory\n"
31253 "\n"
31254 msgstr ""
31255
31256 # type: textblock
31257 #. type: textblock
31258 #: ../fish/guestfish-commands.pod:121
31259 msgid ""
31260 "Change the local directory, ie. the current directory of guestfish itself."
31261 msgstr ""
31262
31263 # type: textblock
31264 #. type: textblock
31265 #: ../fish/guestfish-commands.pod:124
31266 msgid "Note that C<!cd> won't do what you might expect."
31267 msgstr ""
31268
31269 # type: =head2
31270 #. type: =head2
31271 #: ../fish/guestfish-commands.pod:126
31272 msgid "man"
31273 msgstr ""
31274
31275 # type: =head2
31276 #. type: =head2
31277 #: ../fish/guestfish-commands.pod:128
31278 msgid "manual"
31279 msgstr ""
31280
31281 # type: verbatim
31282 #. type: verbatim
31283 #: ../fish/guestfish-commands.pod:130
31284 #, no-wrap
31285 msgid ""
31286 "  man\n"
31287 "\n"
31288 msgstr ""
31289
31290 # type: textblock
31291 #. type: textblock
31292 #: ../fish/guestfish-commands.pod:132
31293 msgid "Opens the manual page for guestfish."
31294 msgstr ""
31295
31296 # type: =head2
31297 #. type: =head2
31298 #: ../fish/guestfish-commands.pod:134
31299 msgid "more"
31300 msgstr ""
31301
31302 # type: =head2
31303 #. type: =head2
31304 #: ../fish/guestfish-commands.pod:136
31305 msgid "less"
31306 msgstr ""
31307
31308 # type: verbatim
31309 #. type: verbatim
31310 #: ../fish/guestfish-commands.pod:138
31311 #, no-wrap
31312 msgid ""
31313 " more filename\n"
31314 "\n"
31315 msgstr ""
31316
31317 # type: verbatim
31318 #. type: verbatim
31319 #: ../fish/guestfish-commands.pod:140
31320 #, no-wrap
31321 msgid ""
31322 " less filename\n"
31323 "\n"
31324 msgstr ""
31325
31326 # type: textblock
31327 #. type: textblock
31328 #: ../fish/guestfish-commands.pod:142
31329 msgid "This is used to view a file."
31330 msgstr ""
31331
31332 # type: textblock
31333 #. type: textblock
31334 #: ../fish/guestfish-commands.pod:144
31335 msgid ""
31336 "The default viewer is C<$PAGER>.  However if you use the alternate command "
31337 "C<less> you will get the C<less> command specifically."
31338 msgstr ""
31339
31340 # type: =head2
31341 #. type: =head2
31342 #: ../fish/guestfish-commands.pod:147
31343 msgid "reopen"
31344 msgstr ""
31345
31346 # type: verbatim
31347 #. type: verbatim
31348 #: ../fish/guestfish-commands.pod:149
31349 #, no-wrap
31350 msgid ""
31351 "  reopen\n"
31352 "\n"
31353 msgstr ""
31354
31355 # type: textblock
31356 #. type: textblock
31357 #: ../fish/guestfish-commands.pod:151
31358 msgid ""
31359 "Close and reopen the libguestfs handle.  It is not necessary to use this "
31360 "normally, because the handle is closed properly when guestfish exits.  "
31361 "However this is occasionally useful for testing."
31362 msgstr ""
31363
31364 # type: =head2
31365 #. type: =head2
31366 #: ../fish/guestfish-commands.pod:155
31367 msgid "sparse"
31368 msgstr ""
31369
31370 # type: verbatim
31371 #. type: verbatim
31372 #: ../fish/guestfish-commands.pod:157
31373 #, no-wrap
31374 msgid ""
31375 " sparse filename size\n"
31376 "\n"
31377 msgstr ""
31378
31379 # type: textblock
31380 #. type: textblock
31381 #: ../fish/guestfish-commands.pod:159
31382 msgid ""
31383 "This creates an empty sparse file of the given size, and then adds so it can "
31384 "be further examined."
31385 msgstr ""
31386
31387 # type: textblock
31388 #. type: textblock
31389 #: ../fish/guestfish-commands.pod:162
31390 msgid ""
31391 "In all respects it works the same as the L</alloc> command, except that the "
31392 "image file is allocated sparsely, which means that disk blocks are not "
31393 "assigned to the file until they are needed.  Sparse disk files only use "
31394 "space when written to, but they are slower and there is a danger you could "
31395 "run out of real disk space during a write operation."
31396 msgstr ""
31397
31398 # type: =head2
31399 #. type: =head2
31400 #: ../fish/guestfish-commands.pod:172
31401 msgid "supported"
31402 msgstr ""
31403
31404 # type: verbatim
31405 #. type: verbatim
31406 #: ../fish/guestfish-commands.pod:174
31407 #, no-wrap
31408 msgid ""
31409 " supported\n"
31410 "\n"
31411 msgstr ""
31412
31413 # type: textblock
31414 #. type: textblock
31415 #: ../fish/guestfish-commands.pod:176
31416 msgid ""
31417 "This command returns a list of the optional groups known to the daemon, and "
31418 "indicates which ones are supported by this build of the libguestfs appliance."
31419 msgstr ""
31420
31421 # type: textblock
31422 #. type: textblock
31423 #: ../fish/guestfish-commands.pod:180
31424 msgid "See also L<guestfs(3)/AVAILABILITY>."
31425 msgstr ""
31426
31427 # type: =head2
31428 #. type: =head2
31429 #: ../fish/guestfish-commands.pod:182
31430 msgid "time"
31431 msgstr ""
31432
31433 # type: verbatim
31434 #. type: verbatim
31435 #: ../fish/guestfish-commands.pod:184
31436 #, no-wrap
31437 msgid ""
31438 " time command args...\n"
31439 "\n"
31440 msgstr ""
31441
31442 # type: textblock
31443 #. type: textblock
31444 #: ../fish/guestfish-commands.pod:186
31445 msgid ""
31446 "Run the command as usual, but print the elapsed time afterwards.  This can "
31447 "be useful for benchmarking operations."
31448 msgstr ""
31449
31450 # type: textblock
31451 #. type: textblock
31452 #: ../test-tool/libguestfs-test-tool.pod:5
31453 msgid "libguestfs-test-tool - End user tests for libguestfs"
31454 msgstr ""
31455
31456 # type: verbatim
31457 #. type: verbatim
31458 #: ../test-tool/libguestfs-test-tool.pod:9
31459 #, no-wrap
31460 msgid ""
31461 " libguestfs-test-tool [--options]\n"
31462 "\n"
31463 msgstr ""
31464
31465 # type: textblock
31466 #. type: textblock
31467 #: ../test-tool/libguestfs-test-tool.pod:13
31468 msgid ""
31469 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
31470 "and developers, to allow them to check basic libguestfs functionality is "
31471 "working.  This is needed because libguestfs occasionally breaks for reasons "
31472 "beyond our control: usually because of changes in the underlying qemu or "
31473 "kernel packages, or the host environment."
31474 msgstr ""
31475
31476 # type: textblock
31477 #. type: textblock
31478 #: ../test-tool/libguestfs-test-tool.pod:20
31479 msgid "If you suspect a problem in libguestfs, then just run:"
31480 msgstr ""
31481
31482 # type: verbatim
31483 #. type: verbatim
31484 #: ../test-tool/libguestfs-test-tool.pod:22
31485 #, no-wrap
31486 msgid ""
31487 " libguestfs-test-tool\n"
31488 "\n"
31489 msgstr ""
31490
31491 # type: textblock
31492 #. type: textblock
31493 #: ../test-tool/libguestfs-test-tool.pod:24
31494 msgid "It will print lots of diagnostic messages."
31495 msgstr ""
31496
31497 # type: textblock
31498 #. type: textblock
31499 #: ../test-tool/libguestfs-test-tool.pod:26
31500 msgid "If it runs to completion successfully, you will see this near the end:"
31501 msgstr ""
31502
31503 # type: verbatim
31504 #. type: verbatim
31505 #: ../test-tool/libguestfs-test-tool.pod:28
31506 #, no-wrap
31507 msgid ""
31508 " ===== TEST FINISHED OK =====\n"
31509 "\n"
31510 msgstr ""
31511
31512 # type: textblock
31513 #. type: textblock
31514 #: ../test-tool/libguestfs-test-tool.pod:30
31515 msgid "and the test tool will exit with code 0."
31516 msgstr ""
31517
31518 # type: textblock
31519 #. type: textblock
31520 #: ../test-tool/libguestfs-test-tool.pod:32
31521 msgid ""
31522 "If it fails (and/or exits with non-zero error code), please paste the "
31523 "B<complete, unedited> output of the test tool into a bug report.  More "
31524 "information about reporting bugs can be found on the L<http://libguestfs.org/"
31525 "> website."
31526 msgstr ""
31527
31528 # type: =item
31529 #. type: =item
31530 #: ../test-tool/libguestfs-test-tool.pod:41
31531 msgid "I<--help>"
31532 msgstr ""
31533
31534 # type: textblock
31535 #. type: textblock
31536 #: ../test-tool/libguestfs-test-tool.pod:43
31537 msgid "Display short usage information and exit."
31538 msgstr ""
31539
31540 # type: =item
31541 #. type: =item
31542 #: ../test-tool/libguestfs-test-tool.pod:45
31543 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
31544 msgstr ""
31545
31546 # type: textblock
31547 #. type: textblock
31548 #: ../test-tool/libguestfs-test-tool.pod:47
31549 msgid ""
31550 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
31551 "normally look in the C<$libexec> directory that was configured when the tool "
31552 "was built."
31553 msgstr ""
31554
31555 # type: =item
31556 #. type: =item
31557 #: ../test-tool/libguestfs-test-tool.pod:51
31558 msgid "I<--qemu qemu_binary>"
31559 msgstr ""
31560
31561 # type: textblock
31562 #. type: textblock
31563 #: ../test-tool/libguestfs-test-tool.pod:53
31564 msgid ""
31565 "If you have downloaded another qemu binary, point this option at the full "
31566 "path of the binary to try it."
31567 msgstr ""
31568
31569 # type: =item
31570 #. type: =item
31571 #: ../test-tool/libguestfs-test-tool.pod:56
31572 msgid "I<--qemudir qemu_source_dir>"
31573 msgstr ""
31574
31575 # type: textblock
31576 #. type: textblock
31577 #: ../test-tool/libguestfs-test-tool.pod:58
31578 msgid ""
31579 "If you have compiled qemu from source, point this option at the source "
31580 "directory to try it."
31581 msgstr ""
31582
31583 # type: =item
31584 #. type: =item
31585 #: ../test-tool/libguestfs-test-tool.pod:61
31586 msgid "I<--timeout N>"
31587 msgstr ""
31588
31589 # type: textblock
31590 #. type: textblock
31591 #: ../test-tool/libguestfs-test-tool.pod:63
31592 msgid ""
31593 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
31594 "does not usually need to be adjusted unless your machine is very slow."
31595 msgstr ""
31596
31597 # type: =head1
31598 #. type: =head1
31599 #: ../test-tool/libguestfs-test-tool.pod:69
31600 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
31601 msgstr ""
31602
31603 # type: textblock
31604 #. type: textblock
31605 #: ../test-tool/libguestfs-test-tool.pod:71
31606 msgid ""
31607 "If you have compiled another version of qemu from source and would like to "
31608 "try that, then you can use the I<--qemudir> option to point to the qemu "
31609 "source directory."
31610 msgstr ""
31611
31612 # type: textblock
31613 #. type: textblock
31614 #: ../test-tool/libguestfs-test-tool.pod:75
31615 msgid ""
31616 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
31617 "option to point to the binary."
31618 msgstr ""
31619
31620 # type: textblock
31621 #. type: textblock
31622 #: ../test-tool/libguestfs-test-tool.pod:78
31623 msgid ""
31624 "When using an alternate qemu with libguestfs, usually you would need to "
31625 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
31626 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
31627 "use either of the I<--qemudir> or I<--qemu> options."
31628 msgstr ""
31629
31630 # type: textblock
31631 #. type: textblock
31632 #: ../test-tool/libguestfs-test-tool.pod:85
31633 msgid ""
31634 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
31635 "I<1> if there was an error."
31636 msgstr ""
31637
31638 # type: =item
31639 #. type: =item
31640 #: ../test-tool/libguestfs-test-tool.pod:92
31641 msgid "/usr/libexec/libguestfs-test-tool-helper"
31642 msgstr ""
31643
31644 # type: textblock
31645 #. type: textblock
31646 #: ../test-tool/libguestfs-test-tool.pod:94
31647 msgid ""
31648 "This helper program is run inside the appliance and provides additional "
31649 "tests."
31650 msgstr ""
31651
31652 # type: =item
31653 #. type: =item
31654 #: ../test-tool/libguestfs-test-tool.pod:97
31655 msgid "/usr/bin/mkisofs"
31656 msgstr ""
31657
31658 # type: textblock
31659 #. type: textblock
31660 #: ../test-tool/libguestfs-test-tool.pod:99
31661 msgid ""
31662 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
31663 "which is used as part of the tests."
31664 msgstr ""
31665
31666 # type: textblock
31667 #. type: textblock
31668 #: ../test-tool/libguestfs-test-tool.pod:106
31669 msgid ""
31670 "For the full list of environment variables which may affect libguestfs, "
31671 "please see the L<guestfs(3)> manual page."
31672 msgstr ""
31673
31674 # type: textblock
31675 #. type: textblock
31676 #: ../test-tool/libguestfs-test-tool.pod:111
31677 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
31678 msgstr ""
31679
31680 # type: textblock
31681 #. type: textblock
31682 #: ../test-tool/libguestfs-test-tool.pod:121
31683 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
31684 msgstr ""
31685
31686 # type: textblock
31687 #. type: textblock
31688 #: ../fuse/guestmount.pod:5
31689 msgid ""
31690 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
31691 msgstr ""
31692
31693 # type: verbatim
31694 #. type: verbatim
31695 #: ../fuse/guestmount.pod:9
31696 #, no-wrap
31697 msgid ""
31698 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
31699 "\n"
31700 msgstr ""
31701
31702 # type: verbatim
31703 #. type: verbatim
31704 #: ../fuse/guestmount.pod:11
31705 #, no-wrap
31706 msgid ""
31707 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
31708 "\n"
31709 msgstr ""
31710
31711 # type: verbatim
31712 #. type: verbatim
31713 #: ../fuse/guestmount.pod:13
31714 #, no-wrap
31715 msgid ""
31716 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
31717 "\n"
31718 msgstr ""
31719
31720 # type: textblock
31721 #. type: textblock
31722 #: ../fuse/guestmount.pod:17
31723 msgid ""
31724 "You must I<not> use C<guestmount> in read-write mode on live virtual "
31725 "machines.  If you do this, you risk disk corruption in the VM."
31726 msgstr ""
31727
31728 # type: textblock
31729 #. type: textblock
31730 #: ../fuse/guestmount.pod:22
31731 msgid ""
31732 "The guestmount program can be used to mount virtual machine filesystems and "
31733 "other disk images on the host.  It uses libguestfs for access to the guest "
31734 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31735 "a mountable device."
31736 msgstr ""
31737
31738 # type: textblock
31739 #. type: textblock
31740 #: ../fuse/guestmount.pod:27
31741 msgid ""
31742 "Along with other options, you have to give at least one device (I<-a> "
31743 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31744 "option) or use the I<-i> inspection option.  How this works is better "
31745 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31746 "below."
31747 msgstr ""
31748
31749 # type: textblock
31750 #. type: textblock
31751 #: ../fuse/guestmount.pod:33
31752 msgid ""
31753 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31754 "by you, and the filesystem will not be visible to any other users unless you "
31755 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31756 "the filesystem, use the C<fusermount -u> command."
31757 msgstr ""
31758
31759 # type: textblock
31760 #. type: textblock
31761 #: ../fuse/guestmount.pod:41
31762 msgid ""
31763 "For a typical Windows guest which has its main filesystem on the first "
31764 "partition:"
31765 msgstr ""
31766
31767 # type: verbatim
31768 #. type: verbatim
31769 #: ../fuse/guestmount.pod:44
31770 #, no-wrap
31771 msgid ""
31772 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31773 "\n"
31774 msgstr ""
31775
31776 # type: textblock
31777 #. type: textblock
31778 #: ../fuse/guestmount.pod:46
31779 msgid ""
31780 "For a typical Linux guest which has a /boot filesystem on the first "
31781 "partition, and the root filesystem on a logical volume:"
31782 msgstr ""
31783
31784 # type: verbatim
31785 #. type: verbatim
31786 #: ../fuse/guestmount.pod:49
31787 #, no-wrap
31788 msgid ""
31789 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31790 "\n"
31791 msgstr ""
31792
31793 # type: textblock
31794 #. type: textblock
31795 #: ../fuse/guestmount.pod:51
31796 msgid "To get libguestfs to detect guest mountpoints for you:"
31797 msgstr ""
31798
31799 # type: verbatim
31800 #. type: verbatim
31801 #: ../fuse/guestmount.pod:53
31802 #, no-wrap
31803 msgid ""
31804 " guestmount -a guest.img -i --ro /mnt\n"
31805 "\n"
31806 msgstr ""
31807
31808 # type: textblock
31809 #. type: textblock
31810 #: ../fuse/guestmount.pod:55
31811 msgid "For a libvirt guest called \"Guest\" you could do:"
31812 msgstr ""
31813
31814 # type: verbatim
31815 #. type: verbatim
31816 #: ../fuse/guestmount.pod:57
31817 #, no-wrap
31818 msgid ""
31819 " guestmount -d Guest -i --ro /mnt\n"
31820 "\n"
31821 msgstr ""
31822
31823 # type: textblock
31824 #. type: textblock
31825 #: ../fuse/guestmount.pod:59
31826 msgid ""
31827 "If you don't know what filesystems are contained in a guest or disk image, "
31828 "use L<virt-filesystems(1)> first:"
31829 msgstr ""
31830
31831 # type: verbatim
31832 #. type: verbatim
31833 #: ../fuse/guestmount.pod:62
31834 #, no-wrap
31835 msgid ""
31836 " virt-filesystems MyGuest\n"
31837 "\n"
31838 msgstr ""
31839
31840 # type: textblock
31841 #. type: textblock
31842 #: ../fuse/guestmount.pod:64
31843 msgid ""
31844 "If you want to trace the libguestfs calls but without excessive debugging "
31845 "information, we recommend:"
31846 msgstr ""
31847
31848 # type: verbatim
31849 #. type: verbatim
31850 #: ../fuse/guestmount.pod:67
31851 #, no-wrap
31852 msgid ""
31853 " guestmount [...] --trace /mnt\n"
31854 "\n"
31855 msgstr ""
31856
31857 # type: textblock
31858 #. type: textblock
31859 #: ../fuse/guestmount.pod:69
31860 msgid "If you want to debug the program, we recommend:"
31861 msgstr ""
31862
31863 # type: verbatim
31864 #. type: verbatim
31865 #: ../fuse/guestmount.pod:71
31866 #, no-wrap
31867 msgid ""
31868 " guestmount [...] --trace --verbose /mnt\n"
31869 "\n"
31870 msgstr ""
31871
31872 # type: =item
31873 #. type: =item
31874 #: ../fuse/guestmount.pod:77
31875 msgid "B<-a image> | B<--add image>"
31876 msgstr ""
31877
31878 # type: textblock
31879 #. type: textblock
31880 #: ../fuse/guestmount.pod:79
31881 msgid "Add a block device or virtual machine image."
31882 msgstr ""
31883
31884 # type: =item
31885 #. type: =item
31886 #: ../fuse/guestmount.pod:84
31887 msgid "B<-c URI> | B<--connect URI>"
31888 msgstr ""
31889
31890 # type: =item
31891 #. type: =item
31892 #: ../fuse/guestmount.pod:90
31893 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
31894 msgstr ""
31895
31896 # type: =item
31897 #. type: =item
31898 #: ../fuse/guestmount.pod:96
31899 msgid "B<--dir-cache-timeout N>"
31900 msgstr ""
31901
31902 # type: textblock
31903 #. type: textblock
31904 #: ../fuse/guestmount.pod:98
31905 msgid ""
31906 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
31907 "seconds.  The readdir cache [actually, there are several semi-independent "
31908 "caches] is populated after a readdir(2) call with the stat and extended "
31909 "attributes of the files in the directory, in anticipation that they will be "
31910 "requested soon after."
31911 msgstr ""
31912
31913 # type: textblock
31914 #. type: textblock
31915 #: ../fuse/guestmount.pod:104
31916 msgid ""
31917 "There is also a different attribute cache implemented by FUSE (see the FUSE "
31918 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
31919 "requests, only cache existing ones."
31920 msgstr ""
31921
31922 # type: =item
31923 #. type: =item
31924 #: ../fuse/guestmount.pod:115
31925 msgid "B<--format=raw|qcow2|..> | B<--format>"
31926 msgstr ""
31927
31928 # type: textblock
31929 #. type: textblock
31930 #: ../fuse/guestmount.pod:122
31931 msgid ""
31932 "If you have untrusted raw-format guest disk images, you should use this "
31933 "option to specify the disk format.  This avoids a possible security problem "
31934 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
31935 "guestfs_add_drive_opts>."
31936 msgstr ""
31937
31938 # type: =item
31939 #. type: =item
31940 #: ../fuse/guestmount.pod:127
31941 msgid "B<--fuse-help>"
31942 msgstr ""
31943
31944 # type: textblock
31945 #. type: textblock
31946 #: ../fuse/guestmount.pod:129
31947 msgid "Display help on special FUSE options (see I<-o> below)."
31948 msgstr ""
31949
31950 # type: textblock
31951 #. type: textblock
31952 #: ../fuse/guestmount.pod:133
31953 msgid "Display brief help and exit."
31954 msgstr ""
31955
31956 # type: =item
31957 #. type: =item
31958 #: ../fuse/guestmount.pod:135
31959 msgid "B<-i> | B<--inspector>"
31960 msgstr ""
31961
31962 # type: =item
31963 #. type: =item
31964 #: ../fuse/guestmount.pod:151
31965 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
31966 msgstr ""
31967
31968 # type: textblock
31969 #. type: textblock
31970 #: ../fuse/guestmount.pod:153
31971 msgid ""
31972 "Mount the named partition or logical volume on the given mountpoint B<in the "
31973 "guest> (this has nothing to do with mountpoints in the host)."
31974 msgstr ""
31975
31976 # type: textblock
31977 #. type: textblock
31978 #: ../fuse/guestmount.pod:156
31979 msgid ""
31980 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
31981 "something on C</>."
31982 msgstr ""
31983
31984 # type: =item
31985 #. type: =item
31986 #: ../fuse/guestmount.pod:159
31987 msgid "B<-n> | B<--no-sync>"
31988 msgstr ""
31989
31990 # type: textblock
31991 #. type: textblock
31992 #: ../fuse/guestmount.pod:161
31993 msgid ""
31994 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
31995 "unmounted.  If you specify this option, then we don't attempt to sync the "
31996 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
31997 msgstr ""
31998
31999 # type: =item
32000 #. type: =item
32001 #: ../fuse/guestmount.pod:166
32002 msgid "B<-o option> | B<--option option>"
32003 msgstr ""
32004
32005 # type: textblock
32006 #. type: textblock
32007 #: ../fuse/guestmount.pod:168
32008 msgid "Pass extra options to FUSE."
32009 msgstr ""
32010
32011 # type: textblock
32012 #. type: textblock
32013 #: ../fuse/guestmount.pod:170
32014 msgid ""
32015 "To get a list of all the extra options supported by FUSE, use the command "
32016 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
32017 "of them are a good idea."
32018 msgstr ""
32019
32020 # type: verbatim
32021 #. type: verbatim
32022 #: ../fuse/guestmount.pod:174
32023 #, no-wrap
32024 msgid ""
32025 " guestmount --fuse-help\n"
32026 "\n"
32027 msgstr ""
32028
32029 # type: textblock
32030 #. type: textblock
32031 #: ../fuse/guestmount.pod:176
32032 msgid "Some potentially useful FUSE options:"
32033 msgstr ""
32034
32035 # type: =item
32036 #. type: =item
32037 #: ../fuse/guestmount.pod:180
32038 msgid "B<-o allow_other>"
32039 msgstr ""
32040
32041 # type: textblock
32042 #. type: textblock
32043 #: ../fuse/guestmount.pod:182
32044 msgid "Allow other users to see the filesystem."
32045 msgstr ""
32046
32047 # type: =item
32048 #. type: =item
32049 #: ../fuse/guestmount.pod:184
32050 msgid "B<-o attr_timeout=N>"
32051 msgstr ""
32052
32053 # type: textblock
32054 #. type: textblock
32055 #: ../fuse/guestmount.pod:186
32056 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
32057 msgstr ""
32058
32059 # type: =item
32060 #. type: =item
32061 #: ../fuse/guestmount.pod:188
32062 msgid "B<-o kernel_cache>"
32063 msgstr ""
32064
32065 # type: textblock
32066 #. type: textblock
32067 #: ../fuse/guestmount.pod:190
32068 msgid ""
32069 "Allow the kernel to cache files (reduces the number of reads that have to go "
32070 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
32071 "afford the extra memory usage."
32072 msgstr ""
32073
32074 # type: =item
32075 #. type: =item
32076 #: ../fuse/guestmount.pod:194
32077 msgid "B<-o uid=N> B<-o gid=N>"
32078 msgstr ""
32079
32080 # type: textblock
32081 #. type: textblock
32082 #: ../fuse/guestmount.pod:196
32083 msgid ""
32084 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
32085 "the chosen values."
32086 msgstr ""
32087
32088 # type: =item
32089 #. type: =item
32090 #: ../fuse/guestmount.pod:201
32091 msgid "B<-r> | B<--ro>"
32092 msgstr ""
32093
32094 # type: textblock
32095 #. type: textblock
32096 #: ../fuse/guestmount.pod:203
32097 msgid ""
32098 "Add devices and mount everything read-only.  Also disallow writes and make "
32099 "the disk appear read-only to FUSE."
32100 msgstr ""
32101
32102 # type: textblock
32103 #. type: textblock
32104 #: ../fuse/guestmount.pod:206
32105 msgid ""
32106 "This is highly recommended if you are not going to edit the guest disk.  If "
32107 "the guest is running and this option is I<not> supplied, then there is a "
32108 "strong risk of disk corruption in the guest.  We try to prevent this from "
32109 "happening, but it is not always possible."
32110 msgstr ""
32111
32112 # type: textblock
32113 #. type: textblock
32114 #: ../fuse/guestmount.pod:211
32115 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
32116 msgstr ""
32117
32118 # type: textblock
32119 #. type: textblock
32120 #: ../fuse/guestmount.pod:215
32121 msgid "Enable SELinux support for the guest."
32122 msgstr ""
32123
32124 # type: =item
32125 #. type: =item
32126 #: ../fuse/guestmount.pod:217
32127 msgid "B<-v> | B<--verbose>"
32128 msgstr ""
32129
32130 # type: textblock
32131 #. type: textblock
32132 #: ../fuse/guestmount.pod:219
32133 msgid "Enable verbose messages from underlying libguestfs."
32134 msgstr ""
32135
32136 # type: =item
32137 #. type: =item
32138 #: ../fuse/guestmount.pod:221
32139 msgid "B<-V> | B<--version>"
32140 msgstr ""
32141
32142 # type: textblock
32143 #. type: textblock
32144 #: ../fuse/guestmount.pod:223
32145 msgid "Display the program version and exit."
32146 msgstr ""
32147
32148 # type: =item
32149 #. type: =item
32150 #: ../fuse/guestmount.pod:225
32151 msgid "B<-w> | B<--rw>"
32152 msgstr ""
32153
32154 # type: textblock
32155 #. type: textblock
32156 #: ../fuse/guestmount.pod:227
32157 msgid ""
32158 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
32159 "FOR READ AND WRITE>."
32160 msgstr ""
32161
32162 # type: =item
32163 #. type: =item
32164 #: ../fuse/guestmount.pod:230
32165 msgid "B<-x> | B<--trace>"
32166 msgstr ""
32167
32168 # type: textblock
32169 #. type: textblock
32170 #: ../fuse/guestmount.pod:232
32171 msgid "Trace libguestfs calls and entry into each FUSE function."
32172 msgstr ""
32173
32174 # type: textblock
32175 #. type: textblock
32176 #: ../fuse/guestmount.pod:234
32177 msgid "This also stops the daemon from forking into the background."
32178 msgstr ""
32179
32180 # type: textblock
32181 #. type: textblock
32182 #: ../fuse/guestmount.pod:240
32183 msgid ""
32184 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
32185 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
32186 "net/>."
32187 msgstr ""
32188
32189 # type: textblock
32190 #. type: textblock
32191 #: ../tools/virt-edit.pl:34
32192 msgid "virt-edit - Edit a file in a virtual machine"
32193 msgstr ""
32194
32195 # type: verbatim
32196 #. type: verbatim
32197 #: ../tools/virt-edit.pl:38
32198 #, no-wrap
32199 msgid ""
32200 " virt-edit [--options] domname file\n"
32201 "\n"
32202 msgstr ""
32203
32204 # type: verbatim
32205 #. type: verbatim
32206 #: ../tools/virt-edit.pl:40
32207 #, no-wrap
32208 msgid ""
32209 " virt-edit [--options] disk.img [disk.img ...] file\n"
32210 "\n"
32211 msgstr ""
32212
32213 # type: verbatim
32214 #. type: verbatim
32215 #: ../tools/virt-edit.pl:42
32216 #, no-wrap
32217 msgid ""
32218 " virt-edit [domname|disk.img] file -e 'expr'\n"
32219 "\n"
32220 msgstr ""
32221
32222 # type: textblock
32223 #. type: textblock
32224 #: ../tools/virt-edit.pl:46
32225 msgid ""
32226 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
32227 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
32228 "doing this, but doesn't catch all cases."
32229 msgstr ""
32230
32231 # type: textblock
32232 #. type: textblock
32233 #: ../tools/virt-edit.pl:52
32234 msgid ""
32235 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
32236 "the named virtual machine (or disk image)."
32237 msgstr ""
32238
32239 # type: textblock
32240 #. type: textblock
32241 #: ../tools/virt-edit.pl:55
32242 msgid ""
32243 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
32244 "you should look at the L<guestfish(1)> tool."
32245 msgstr ""
32246
32247 # type: textblock
32248 #. type: textblock
32249 #: ../tools/virt-edit.pl:60
32250 msgid "Edit the named files interactively:"
32251 msgstr ""
32252
32253 # type: verbatim
32254 #. type: verbatim
32255 #: ../tools/virt-edit.pl:62
32256 #, no-wrap
32257 msgid ""
32258 " virt-edit mydomain /boot/grub/grub.conf\n"
32259 "\n"
32260 msgstr ""
32261
32262 # type: verbatim
32263 #. type: verbatim
32264 #: ../tools/virt-edit.pl:64
32265 #, no-wrap
32266 msgid ""
32267 " virt-edit mydomain /etc/passwd\n"
32268 "\n"
32269 msgstr ""
32270
32271 # type: textblock
32272 #. type: textblock
32273 #: ../tools/virt-edit.pl:66
32274 msgid ""
32275 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
32276 "below).  To change the init default level to 5:"
32277 msgstr ""
32278
32279 # type: verbatim
32280 #. type: verbatim
32281 #: ../tools/virt-edit.pl:70
32282 #, no-wrap
32283 msgid ""
32284 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
32285 "\n"
32286 msgstr ""
32287
32288 # type: textblock
32289 #. type: textblock
32290 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
32291 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
32292 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
32293 msgid "Display brief help."
32294 msgstr ""
32295
32296 # type: textblock
32297 #. type: textblock
32298 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
32299 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
32300 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
32301 #: ../tools/virt-list-partitions.pl:72
32302 msgid "Display version number and exit."
32303 msgstr ""
32304
32305 # type: =item
32306 #. type: =item
32307 #: ../tools/virt-edit.pl:96
32308 msgid "B<--backup extension> | B<-b extension>"
32309 msgstr ""
32310
32311 # type: textblock
32312 #. type: textblock
32313 #: ../tools/virt-edit.pl:98
32314 msgid ""
32315 "Create a backup of the original file I<in the guest disk image>.  The backup "
32316 "has the original filename with C<extension> added."
32317 msgstr ""
32318
32319 # type: textblock
32320 #. type: textblock
32321 #: ../tools/virt-edit.pl:101
32322 msgid ""
32323 "Usually the first character of C<extension> would be a dot C<.> so you would "
32324 "write:"
32325 msgstr ""
32326
32327 # type: verbatim
32328 #. type: verbatim
32329 #: ../tools/virt-edit.pl:104
32330 #, no-wrap
32331 msgid ""
32332 " virt-edit -b .orig [etc]\n"
32333 "\n"
32334 msgstr ""
32335
32336 # type: textblock
32337 #. type: textblock
32338 #: ../tools/virt-edit.pl:106
32339 msgid "By default, no backup file is made."
32340 msgstr ""
32341
32342 # type: =item
32343 #. type: =item
32344 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
32345 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
32346 #: ../tools/virt-list-partitions.pl:78
32347 msgid "B<--connect URI> | B<-c URI>"
32348 msgstr ""
32349
32350 # type: textblock
32351 #. type: textblock
32352 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
32353 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
32354 #: ../tools/virt-list-partitions.pl:80
32355 msgid ""
32356 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
32357 "to the default libvirt hypervisor."
32358 msgstr ""
32359
32360 # type: textblock
32361 #. type: textblock
32362 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
32363 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
32364 #: ../tools/virt-list-partitions.pl:83
32365 msgid ""
32366 "If you specify guest block devices directly, then libvirt is not used at all."
32367 msgstr ""
32368
32369 # type: =item
32370 #. type: =item
32371 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
32372 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
32373 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
32374 msgid "B<--format> raw"
32375 msgstr ""
32376
32377 # type: textblock
32378 #. type: textblock
32379 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
32380 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
32381 #: ../tools/virt-list-partitions.pl:92
32382 msgid ""
32383 "Specify the format of disk images given on the command line.  If this is "
32384 "omitted then the format is autodetected from the content of the disk image."
32385 msgstr ""
32386
32387 # type: textblock
32388 #. type: textblock
32389 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
32390 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
32391 #: ../tools/virt-list-partitions.pl:96
32392 msgid ""
32393 "If disk images are requested from libvirt, then this program asks libvirt "
32394 "for this information.  In this case, the value of the format parameter is "
32395 "ignored."
32396 msgstr ""
32397
32398 # type: textblock
32399 #. type: textblock
32400 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
32401 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
32402 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
32403 #: ../tools/virt-list-partitions.pl:100
32404 msgid ""
32405 "If working with untrusted raw-format guest disk images, you should ensure "
32406 "the format is always specified."
32407 msgstr ""
32408
32409 # type: =item
32410 #. type: =item
32411 #: ../tools/virt-edit.pl:141
32412 msgid "B<--expr EXPR> | B<-e EXPR>"
32413 msgstr ""
32414
32415 # type: textblock
32416 #. type: textblock
32417 #: ../tools/virt-edit.pl:143
32418 msgid ""
32419 "Instead of launching the external editor, non-interactively apply the Perl "
32420 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
32421 "EDITING> below."
32422 msgstr ""
32423
32424 # type: textblock
32425 #. type: textblock
32426 #: ../tools/virt-edit.pl:147
32427 msgid ""
32428 "Be careful to properly quote the expression to prevent it from being altered "
32429 "by the shell."
32430 msgstr ""
32431
32432 # type: =head1
32433 #. type: =head1
32434 #: ../tools/virt-edit.pl:268
32435 msgid "NON-INTERACTIVE EDITING"
32436 msgstr ""
32437
32438 # type: textblock
32439 #. type: textblock
32440 #: ../tools/virt-edit.pl:270
32441 msgid ""
32442 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
32443 "administrator can interactively edit the file."
32444 msgstr ""
32445
32446 # type: textblock
32447 #. type: textblock
32448 #: ../tools/virt-edit.pl:273
32449 msgid ""
32450 "There are two ways also to use C<virt-edit> from scripts in order to make "
32451 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
32452 "like this, it's less error-prone to write scripts directly using the "
32453 "libguestfs API and Augeas for configuration file editing.)"
32454 msgstr ""
32455
32456 # type: textblock
32457 #. type: textblock
32458 #: ../tools/virt-edit.pl:279
32459 msgid ""
32460 "The first method is to temporarily set C<$EDITOR> to any script or program "
32461 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
32462 "update C<tmpfile> in place however it likes."
32463 msgstr ""
32464
32465 # type: textblock
32466 #. type: textblock
32467 #: ../tools/virt-edit.pl:283
32468 msgid ""
32469 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
32470 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
32471 "instances of C<foo> with C<bar> in a file:"
32472 msgstr ""
32473
32474 # type: verbatim
32475 #. type: verbatim
32476 #: ../tools/virt-edit.pl:287
32477 #, no-wrap
32478 msgid ""
32479 " virt-edit domname filename -e 's/foo/bar/'\n"
32480 "\n"
32481 msgstr ""
32482
32483 # type: textblock
32484 #. type: textblock
32485 #: ../tools/virt-edit.pl:289
32486 msgid ""
32487 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
32488 "For example to delete root's password you could do:"
32489 msgstr ""
32490
32491 # type: verbatim
32492 #. type: verbatim
32493 #: ../tools/virt-edit.pl:292
32494 #, no-wrap
32495 msgid ""
32496 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
32497 "\n"
32498 msgstr ""
32499
32500 # type: textblock
32501 #. type: textblock
32502 #: ../tools/virt-edit.pl:294
32503 msgid ""
32504 "What really happens is that the snippet is evaluated as a Perl expression "
32505 "for each line of the file.  The line, including the final C<\\n>, is passed "
32506 "in C<$_> and the expression should update C<$_> or leave it unchanged."
32507 msgstr ""
32508
32509 # type: textblock
32510 #. type: textblock
32511 #: ../tools/virt-edit.pl:299
32512 msgid ""
32513 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
32514 "C<apache> user account from the password file you can do:"
32515 msgstr ""
32516
32517 # type: verbatim
32518 #. type: verbatim
32519 #: ../tools/virt-edit.pl:302
32520 #, no-wrap
32521 msgid ""
32522 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
32523 "\n"
32524 msgstr ""
32525
32526 # type: textblock
32527 #. type: textblock
32528 #: ../tools/virt-edit.pl:304
32529 msgid ""
32530 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
32531 "the end of the file is rather difficult this way since there is no concept "
32532 "of \"last line of the file\" - your expression just doesn't get called "
32533 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
32534 "want to do this."
32535 msgstr ""
32536
32537 # type: textblock
32538 #. type: textblock
32539 #: ../tools/virt-edit.pl:310
32540 msgid ""
32541 "The variable C<$lineno> contains the current line number.  As is "
32542 "traditional, the first line in the file is number C<1>."
32543 msgstr ""
32544
32545 # type: textblock
32546 #. type: textblock
32547 #: ../tools/virt-edit.pl:313
32548 msgid ""
32549 "The return value from the expression is ignored, but the expression may call "
32550 "C<die> in order to abort the whole program, leaving the original file "
32551 "untouched."
32552 msgstr ""
32553
32554 # type: textblock
32555 #. type: textblock
32556 #: ../tools/virt-edit.pl:317
32557 msgid ""
32558 "Remember when matching the end of a line that C<$_> may contain the final C<"
32559 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
32560 "newline then neither of these.  Thus to match or substitute some text at the "
32561 "end of a line, use this regular expression:"
32562 msgstr ""
32563
32564 # type: verbatim
32565 #. type: verbatim
32566 #: ../tools/virt-edit.pl:322
32567 #, no-wrap
32568 msgid ""
32569 " /some text(\\r?\\n)?$/\n"
32570 "\n"
32571 msgstr ""
32572
32573 # type: textblock
32574 #. type: textblock
32575 #: ../tools/virt-edit.pl:324
32576 msgid ""
32577 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
32578 "$_> itself (since that would remove all newlines from the file):"
32579 msgstr ""
32580
32581 # type: verbatim
32582 #. type: verbatim
32583 #: ../tools/virt-edit.pl:328
32584 #, no-wrap
32585 msgid ""
32586 " my $m = $_; chomp $m; $m =~ /some text$/\n"
32587 "\n"
32588 msgstr ""
32589
32590 # type: =item
32591 #. type: =item
32592 #: ../tools/virt-edit.pl:334
32593 msgid "C<EDITOR>"
32594 msgstr ""
32595
32596 # type: textblock
32597 #. type: textblock
32598 #: ../tools/virt-edit.pl:336
32599 msgid ""
32600 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
32601 "\"emacs -nw\">"
32602 msgstr ""
32603
32604 # type: textblock
32605 #. type: textblock
32606 #: ../tools/virt-edit.pl:339
32607 msgid "If not set, C<vi> is used."
32608 msgstr ""
32609
32610 # type: =head2
32611 #. type: =head1
32612 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
32613 #: ../tools/virt-resize.pl:1482 ../tools/virt-list-filesystems.pl:182
32614 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:532
32615 #: ../tools/virt-list-partitions.pl:250
32616 msgid "SHELL QUOTING"
32617 msgstr ""
32618
32619 # type: textblock
32620 #. type: textblock
32621 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
32622 #: ../tools/virt-resize.pl:1484 ../tools/virt-list-filesystems.pl:184
32623 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:534
32624 #: ../tools/virt-list-partitions.pl:252
32625 msgid ""
32626 "Libvirt guest names can contain arbitrary characters, some of which have "
32627 "meaning to the shell such as C<#> and space.  You may need to quote or "
32628 "escape these characters on the command line.  See the shell manual page L<sh"
32629 "(1)> for details."
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../tools/virt-edit.pl:352
32634 msgid ""
32635 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
32636 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
32637 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
32638 msgstr ""
32639
32640 # type: =head1
32641 #. type: =head1
32642 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
32643 #: ../tools/virt-resize.pl:1510 ../tools/virt-list-filesystems.pl:202
32644 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:564
32645 #: ../tools/virt-list-partitions.pl:269
32646 msgid "AUTHOR"
32647 msgstr ""
32648
32649 # type: textblock
32650 #. type: textblock
32651 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
32652 #: ../tools/virt-resize.pl:1512 ../tools/virt-list-filesystems.pl:204
32653 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:566
32654 #: ../tools/virt-list-partitions.pl:271
32655 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
32656 msgstr ""
32657
32658 # type: textblock
32659 #. type: textblock
32660 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
32661 msgid "Copyright (C) 2009-2010 Red Hat Inc."
32662 msgstr ""
32663
32664 # type: textblock
32665 #. type: textblock
32666 #: ../tools/virt-win-reg.pl:37
32667 msgid ""
32668 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
32669 msgstr ""
32670
32671 # type: verbatim
32672 #. type: verbatim
32673 #: ../tools/virt-win-reg.pl:41
32674 #, no-wrap
32675 msgid ""
32676 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
32677 "\n"
32678 msgstr ""
32679
32680 # type: verbatim
32681 #. type: verbatim
32682 #: ../tools/virt-win-reg.pl:43
32683 #, no-wrap
32684 msgid ""
32685 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
32686 "\n"
32687 msgstr ""
32688
32689 # type: verbatim
32690 #. type: verbatim
32691 #: ../tools/virt-win-reg.pl:45
32692 #, no-wrap
32693 msgid ""
32694 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
32695 "\n"
32696 msgstr ""
32697
32698 # type: verbatim
32699 #. type: verbatim
32700 #: ../tools/virt-win-reg.pl:47
32701 #, no-wrap
32702 msgid ""
32703 " virt-win-reg --merge domname [input.reg ...]\n"
32704 "\n"
32705 msgstr ""
32706
32707 # type: verbatim
32708 #. type: verbatim
32709 #: ../tools/virt-win-reg.pl:49
32710 #, no-wrap
32711 msgid ""
32712 " virt-win-reg [--options] disk.img ... # instead of domname\n"
32713 "\n"
32714 msgstr ""
32715
32716 # type: textblock
32717 #. type: textblock
32718 #: ../tools/virt-win-reg.pl:53
32719 msgid ""
32720 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
32721 "virtual machines.  If you do this, you I<will> get irreversible disk "
32722 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
32723 "but doesn't catch all cases."
32724 msgstr ""
32725
32726 # type: textblock
32727 #. type: textblock
32728 #: ../tools/virt-win-reg.pl:58
32729 msgid ""
32730 "Modifying the Windows Registry is an inherently risky operation.  The format "
32731 "is deliberately obscure and undocumented, and Registry changes can leave the "
32732 "system unbootable.  Therefore when using the C<--merge> option, make sure "
32733 "you have a reliable backup first."
32734 msgstr ""
32735
32736 # type: textblock
32737 #. type: textblock
32738 #: ../tools/virt-win-reg.pl:65
32739 msgid ""
32740 "This program can export and merge Windows Registry entries from a Windows "
32741 "guest."
32742 msgstr ""
32743
32744 # type: textblock
32745 #. type: textblock
32746 #: ../tools/virt-win-reg.pl:68
32747 msgid ""
32748 "The first parameter is the libvirt guest name or the raw disk image of a "
32749 "Windows guest."
32750 msgstr ""
32751
32752 # type: textblock
32753 #. type: textblock
32754 #: ../tools/virt-win-reg.pl:71
32755 msgid ""
32756 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
32757 "exported (recursively).  For example:"
32758 msgstr ""
32759
32760 # type: verbatim
32761 #. type: verbatim
32762 #: ../tools/virt-win-reg.pl:74
32763 #, no-wrap
32764 msgid ""
32765 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
32766 "\n"
32767 msgstr ""
32768
32769 # type: textblock
32770 #. type: textblock
32771 #: ../tools/virt-win-reg.pl:76
32772 msgid ""
32773 "You can also display single values from within registry keys, for example:"
32774 msgstr ""
32775
32776 # type: verbatim
32777 #. type: verbatim
32778 #: ../tools/virt-win-reg.pl:79
32779 #, no-wrap
32780 msgid ""
32781 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
32782 " $ virt-win-reg Windows7 $cvkey ProductName\n"
32783 " Windows 7 Enterprise\n"
32784 "\n"
32785 msgstr ""
32786
32787 # type: textblock
32788 #. type: textblock
32789 #: ../tools/virt-win-reg.pl:83
32790 msgid ""
32791 "With C<--merge>, you can merge a textual regedit file into the Windows "
32792 "Registry:"
32793 msgstr ""
32794
32795 # type: verbatim
32796 #. type: verbatim
32797 #: ../tools/virt-win-reg.pl:86
32798 #, no-wrap
32799 msgid ""
32800 " $ virt-win-reg --merge Windows7 changes.reg\n"
32801 "\n"
32802 msgstr ""
32803
32804 # type: =head2
32805 #. type: =head1
32806 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32807 msgid "NOTE"
32808 msgstr ""
32809
32810 # type: textblock
32811 #. type: textblock
32812 #: ../tools/virt-win-reg.pl:90
32813 msgid ""
32814 "This program is only meant for simple access to the registry.  If you want "
32815 "to do complicated things with the registry, we suggest you download the "
32816 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32817 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32818 "L<hivexregedit(1)>."
32819 msgstr ""
32820
32821 # type: =item
32822 #. type: =item
32823 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32824 msgid "B<--debug>"
32825 msgstr ""
32826
32827 # type: textblock
32828 #. type: textblock
32829 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
32830 msgid "Enable debugging messages."
32831 msgstr ""
32832
32833 # type: =item
32834 #. type: =item
32835 #: ../tools/virt-win-reg.pl:157
32836 msgid "B<--merge>"
32837 msgstr ""
32838
32839 # type: textblock
32840 #. type: textblock
32841 #: ../tools/virt-win-reg.pl:159
32842 msgid ""
32843 "In merge mode, this merges a textual regedit file into the Windows Registry "
32844 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32845 "displays or exports Registry entries instead."
32846 msgstr ""
32847
32848 # type: textblock
32849 #. type: textblock
32850 #: ../tools/virt-win-reg.pl:163
32851 msgid ""
32852 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
32853 "result in disk corruption.  However exporting (without this flag)  is always "
32854 "safe."
32855 msgstr ""
32856
32857 # type: =item
32858 #. type: =item
32859 #: ../tools/virt-win-reg.pl:171
32860 msgid "B<--encoding> UTF-16LE|ASCII"
32861 msgstr ""
32862
32863 # type: textblock
32864 #. type: textblock
32865 #: ../tools/virt-win-reg.pl:173
32866 msgid ""
32867 "When merging (only), you may need to specify the encoding for strings to be "
32868 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32869 "(3)/ENCODING STRINGS>."
32870 msgstr ""
32871
32872 # type: textblock
32873 #. type: textblock
32874 #: ../tools/virt-win-reg.pl:177
32875 msgid ""
32876 "The default is to use UTF-16LE, which should work with recent versions of "
32877 "Windows."
32878 msgstr ""
32879
32880 # type: =head2
32881 #. type: =head1
32882 #: ../tools/virt-win-reg.pl:402
32883 msgid "SUPPORTED SYSTEMS"
32884 msgstr ""
32885
32886 # type: textblock
32887 #. type: textblock
32888 #: ../tools/virt-win-reg.pl:404
32889 msgid ""
32890 "The program currently supports Windows NT-derived guests starting with "
32891 "Windows XP through to at least Windows 7."
32892 msgstr ""
32893
32894 # type: textblock
32895 #. type: textblock
32896 #: ../tools/virt-win-reg.pl:407
32897 msgid ""
32898 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32899 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32900 "and C<HKEY_USERS\\.DEFAULT>."
32901 msgstr ""
32902
32903 # type: textblock
32904 #. type: textblock
32905 #: ../tools/virt-win-reg.pl:411
32906 msgid ""
32907 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32908 "C<HKEY_USERS>."
32909 msgstr ""
32910
32911 # type: textblock
32912 #. type: textblock
32913 #: ../tools/virt-win-reg.pl:414
32914 msgid ""
32915 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32916 "time."
32917 msgstr ""
32918
32919 # type: =head2
32920 #. type: =head1
32921 #: ../tools/virt-win-reg.pl:417
32922 msgid "ENCODING"
32923 msgstr ""
32924
32925 # type: textblock
32926 #. type: textblock
32927 #: ../tools/virt-win-reg.pl:419
32928 msgid ""
32929 "C<virt-win-reg> expects that regedit files have already been reencoded in "
32930 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
32931 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
32932 "Windows-style line endings, you may need to reencode the whole file before "
32933 "or after processing."
32934 msgstr ""
32935
32936 # type: textblock
32937 #. type: textblock
32938 #: ../tools/virt-win-reg.pl:425
32939 msgid ""
32940 "To reencode a file from Windows format to Linux (before processing it with "
32941 "the C<--merge> option), you would do something like this:"
32942 msgstr ""
32943
32944 # type: verbatim
32945 #. type: verbatim
32946 #: ../tools/virt-win-reg.pl:428
32947 #, no-wrap
32948 msgid ""
32949 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
32950 "\n"
32951 msgstr ""
32952
32953 # type: textblock
32954 #. type: textblock
32955 #: ../tools/virt-win-reg.pl:430
32956 msgid ""
32957 "To go in the opposite direction, after exporting and before sending the file "
32958 "to a Windows user, do something like this:"
32959 msgstr ""
32960
32961 # type: verbatim
32962 #. type: verbatim
32963 #: ../tools/virt-win-reg.pl:433
32964 #, no-wrap
32965 msgid ""
32966 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
32967 "\n"
32968 msgstr ""
32969
32970 # type: textblock
32971 #. type: textblock
32972 #: ../tools/virt-win-reg.pl:435
32973 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
32974 msgstr ""
32975
32976 # type: textblock
32977 #. type: textblock
32978 #: ../tools/virt-win-reg.pl:437
32979 msgid ""
32980 "If you are unsure about the current encoding, use the L<file(1)> command.  "
32981 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
32982 "style (CRLF) line endings, like this:"
32983 msgstr ""
32984
32985 # type: verbatim
32986 #. type: verbatim
32987 #: ../tools/virt-win-reg.pl:441
32988 #, no-wrap
32989 msgid ""
32990 " $ file software.reg\n"
32991 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
32992 " with CRLF line terminators\n"
32993 "\n"
32994 msgstr ""
32995
32996 # type: textblock
32997 #. type: textblock
32998 #: ../tools/virt-win-reg.pl:445
32999 msgid "This file would need conversion before you could C<--merge> it."
33000 msgstr ""
33001
33002 # type: =head2
33003 #. type: =head1
33004 #: ../tools/virt-win-reg.pl:447
33005 msgid "CurrentControlSet etc."
33006 msgstr ""
33007
33008 # type: textblock
33009 #. type: textblock
33010 #: ../tools/virt-win-reg.pl:449
33011 msgid ""
33012 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
33013 "Registry at the level of the hive file, and therefore you cannot modify "
33014 "these."
33015 msgstr ""
33016
33017 # type: textblock
33018 #. type: textblock
33019 #: ../tools/virt-win-reg.pl:453
33020 msgid ""
33021 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
33022 "circumstances it might refer to another control set.  The way to find out is "
33023 "to look at the C<HKLM\\SYSTEM\\Select> key:"
33024 msgstr ""
33025
33026 # type: verbatim
33027 #. type: verbatim
33028 #: ../tools/virt-win-reg.pl:457
33029 #, no-wrap
33030 msgid ""
33031 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
33032 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
33033 " \"Current\"=dword:00000001\n"
33034 " \"Default\"=dword:00000001\n"
33035 " \"Failed\"=dword:00000000\n"
33036 " \"LastKnownGood\"=dword:00000002\n"
33037 "\n"
33038 msgstr ""
33039
33040 # type: textblock
33041 #. type: textblock
33042 #: ../tools/virt-win-reg.pl:464
33043 msgid "\"Current\" is the one which Windows will choose when it boots."
33044 msgstr ""
33045
33046 # type: textblock
33047 #. type: textblock
33048 #: ../tools/virt-win-reg.pl:466
33049 msgid ""
33050 "Similarly, other C<Current...> keys in the path may need to be replaced."
33051 msgstr ""
33052
33053 # type: =head1
33054 #. type: =head1
33055 #: ../tools/virt-win-reg.pl:469
33056 msgid "WINDOWS TIPS"
33057 msgstr ""
33058
33059 # type: textblock
33060 #. type: textblock
33061 #: ../tools/virt-win-reg.pl:471
33062 msgid ""
33063 "Note that some of these tips modify the guest disk image.  The guest I<must> "
33064 "be shut off, else you will get disk corruption."
33065 msgstr ""
33066
33067 # type: =head2
33068 #. type: =head2
33069 #: ../tools/virt-win-reg.pl:474
33070 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
33071 msgstr ""
33072
33073 # type: textblock
33074 #. type: textblock
33075 #: ../tools/virt-win-reg.pl:476
33076 msgid ""
33077 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
33078 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
33079 "is uploaded into C<C:\\>:"
33080 msgstr ""
33081
33082 # type: verbatim
33083 #. type: verbatim
33084 #: ../tools/virt-win-reg.pl:480
33085 #, no-wrap
33086 msgid ""
33087 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
33088 "\n"
33089 msgstr ""
33090
33091 # type: textblock
33092 #. type: textblock
33093 #: ../tools/virt-win-reg.pl:482
33094 msgid "Prepare a regedit file containing the registry change:"
33095 msgstr ""
33096
33097 # type: verbatim
33098 #. type: verbatim
33099 #: ../tools/virt-win-reg.pl:484
33100 #, no-wrap
33101 msgid ""
33102 " cat > test.reg <<'EOF'\n"
33103 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
33104 " \"Test\"=\"c:\\\\test.bat\"\n"
33105 " EOF\n"
33106 "\n"
33107 msgstr ""
33108
33109 # type: textblock
33110 #. type: textblock
33111 #: ../tools/virt-win-reg.pl:489
33112 msgid ""
33113 "In this example we use the key C<RunOnce> which means that the script will "
33114 "run precisely once when the first user logs in.  If you want it to run every "
33115 "time a user logs in, replace C<RunOnce> with C<Run>."
33116 msgstr ""
33117
33118 # type: textblock
33119 #. type: textblock
33120 #: ../tools/virt-win-reg.pl:493
33121 msgid "Now update the registry:"
33122 msgstr ""
33123
33124 # type: verbatim
33125 #. type: verbatim
33126 #: ../tools/virt-win-reg.pl:495
33127 #, no-wrap
33128 msgid ""
33129 " virt-win-reg --merge WindowsGuest test.reg\n"
33130 "\n"
33131 msgstr ""
33132
33133 # type: =head2
33134 #. type: =head2
33135 #: ../tools/virt-win-reg.pl:497
33136 msgid "INSTALLING A SERVICE"
33137 msgstr ""
33138
33139 # type: textblock
33140 #. type: textblock
33141 #: ../tools/virt-win-reg.pl:499
33142 msgid ""
33143 "This section assumes you are familiar with Windows services, and you either "
33144 "have a program which handles the Windows Service Control Protocol directly "
33145 "or you want to run any program using a service wrapper like SrvAny or the "
33146 "free RHSrvAny."
33147 msgstr ""
33148
33149 # type: textblock
33150 #. type: textblock
33151 #: ../tools/virt-win-reg.pl:504
33152 msgid ""
33153 "First upload the program and optionally the service wrapper.  In this case "
33154 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
33155 msgstr ""
33156
33157 # type: verbatim
33158 #. type: verbatim
33159 #: ../tools/virt-win-reg.pl:508
33160 #, no-wrap
33161 msgid ""
33162 " guestfish -i -d WindowsGuest <<EOF\n"
33163 "   upload rhsrvany.exe /rhsrvany.exe\n"
33164 "   upload test.exe /test.exe\n"
33165 " EOF\n"
33166 "\n"
33167 msgstr ""
33168
33169 # type: textblock
33170 #. type: textblock
33171 #: ../tools/virt-win-reg.pl:513
33172 msgid ""
33173 "Prepare a regedit file containing the registry changes.  In this example, "
33174 "the first registry change is needed for the service itself or the service "
33175 "wrapper (if used).  The second registry change is only needed because I am "
33176 "using the RHSrvAny service wrapper."
33177 msgstr ""
33178
33179 # type: verbatim
33180 #. type: verbatim
33181 #: ../tools/virt-win-reg.pl:518
33182 #, no-wrap
33183 msgid ""
33184 " cat > service.reg <<'EOF'\n"
33185 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
33186 " \"Type\"=dword:00000010\n"
33187 " \"Start\"=dword:00000002\n"
33188 " \"ErrorControl\"=dword:00000001\n"
33189 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
33190 " \"DisplayName\"=\"RHSrvAny\"\n"
33191 " \"ObjectName\"=\"NetworkService\"\n"
33192 " \n"
33193 msgstr ""
33194
33195 # type: verbatim
33196 #. type: verbatim
33197 #: ../tools/virt-win-reg.pl:527
33198 #, no-wrap
33199 msgid ""
33200 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
33201 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
33202 " \"PWD\"=\"c:\\\\Temp\"\n"
33203 " EOF\n"
33204 "\n"
33205 msgstr ""
33206
33207 # type: textblock
33208 #. type: textblock
33209 #: ../tools/virt-win-reg.pl:538
33210 msgid ""
33211 "For use of C<ControlSet001> see the section above in this manual page.  You "
33212 "may need to adjust this according to the control set that is in use by the "
33213 "guest."
33214 msgstr ""
33215
33216 # type: textblock
33217 #. type: textblock
33218 #: ../tools/virt-win-reg.pl:544
33219 msgid ""
33220 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
33221 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
33222 "privileged account."
33223 msgstr ""
33224
33225 # type: textblock
33226 #. type: textblock
33227 #: ../tools/virt-win-reg.pl:550
33228 msgid ""
33229 "For the meaning of the magic numbers, see this Microsoft KB article: "
33230 "L<http://support.microsoft.com/kb/103000>."
33231 msgstr ""
33232
33233 # type: textblock
33234 #. type: textblock
33235 #: ../tools/virt-win-reg.pl:555
33236 msgid "Update the registry:"
33237 msgstr ""
33238
33239 # type: verbatim
33240 #. type: verbatim
33241 #: ../tools/virt-win-reg.pl:557
33242 #, no-wrap
33243 msgid ""
33244 " virt-win-reg --merge WindowsGuest service.reg\n"
33245 "\n"
33246 msgstr ""
33247
33248 # type: textblock
33249 #. type: textblock
33250 #: ../tools/virt-win-reg.pl:561
33251 msgid ""
33252 "Be careful when passing parameters containing C<\\> (backslash) in the "
33253 "shell.  Usually you will have to use 'single quotes' or double backslashes "
33254 "(but not both) to protect them from the shell."
33255 msgstr ""
33256
33257 # type: textblock
33258 #. type: textblock
33259 #: ../tools/virt-win-reg.pl:565
33260 msgid "Paths and value names are case-insensitive."
33261 msgstr ""
33262
33263 # type: textblock
33264 #. type: textblock
33265 #: ../tools/virt-win-reg.pl:574
33266 msgid ""
33267 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
33268 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
33269 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33270 msgstr ""
33271
33272 # type: textblock
33273 #. type: textblock
33274 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:555
33275 msgid ""
33276 "When reporting bugs, please enable debugging and capture the I<complete> "
33277 "output:"
33278 msgstr ""
33279
33280 # type: verbatim
33281 #. type: verbatim
33282 #: ../tools/virt-win-reg.pl:592
33283 #, no-wrap
33284 msgid ""
33285 " export LIBGUESTFS_DEBUG=1\n"
33286 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
33287 "\n"
33288 msgstr ""
33289
33290 # type: textblock
33291 #. type: textblock
33292 #: ../tools/virt-win-reg.pl:595
33293 msgid ""
33294 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
33295 "redhat.com/>"
33296 msgstr ""
33297
33298 # type: textblock
33299 #. type: textblock
33300 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1516
33301 #: ../tools/virt-make-fs.pl:570
33302 msgid "Copyright (C) 2010 Red Hat Inc."
33303 msgstr ""
33304
33305 # type: textblock
33306 #. type: textblock
33307 #: ../tools/virt-resize.pl:42
33308 msgid "virt-resize - Resize a virtual machine disk"
33309 msgstr ""
33310
33311 # type: verbatim
33312 #. type: verbatim
33313 #: ../tools/virt-resize.pl:46
33314 #, no-wrap
33315 msgid ""
33316 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
33317 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
33318 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
33319 "\n"
33320 msgstr ""
33321
33322 # type: textblock
33323 #. type: textblock
33324 #: ../tools/virt-resize.pl:52
33325 msgid ""
33326 "Virt-resize is a tool which can resize a virtual machine disk, making it "
33327 "larger or smaller overall, and resizing or deleting any partitions contained "
33328 "within."
33329 msgstr ""
33330
33331 # type: textblock
33332 #. type: textblock
33333 #: ../tools/virt-resize.pl:56
33334 msgid ""
33335 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
33336 "not> be used on live virtual machines - for consistent results, shut the "
33337 "virtual machine down before resizing it."
33338 msgstr ""
33339
33340 # type: textblock
33341 #. type: textblock
33342 #: ../tools/virt-resize.pl:60
33343 msgid ""
33344 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
33345 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
33346 msgstr ""
33347
33348 # type: textblock
33349 #. type: textblock
33350 #: ../tools/virt-resize.pl:66
33351 msgid ""
33352 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
33353 "fill the extra 5GB of space."
33354 msgstr ""
33355
33356 #. type: verbatim
33357 #: ../tools/virt-resize.pl:69
33358 #, no-wrap
33359 msgid ""
33360 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
33361 " virt-filesystems --long -h --all -a olddisk\n"
33362 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
33363 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
33364 "\n"
33365 msgstr ""
33366
33367 # type: textblock
33368 #. type: textblock
33369 #: ../tools/virt-resize.pl:74
33370 msgid ""
33371 "As above, but make the /boot partition 200MB bigger, while giving the "
33372 "remaining space to /dev/sda2:"
33373 msgstr ""
33374
33375 # type: verbatim
33376 #. type: verbatim
33377 #: ../tools/virt-resize.pl:77
33378 #, no-wrap
33379 msgid ""
33380 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
33381 "\n"
33382 msgstr ""
33383
33384 # type: textblock
33385 #. type: textblock
33386 #: ../tools/virt-resize.pl:79
33387 msgid "As above, but the output format will be uncompressed qcow2:"
33388 msgstr ""
33389
33390 # type: verbatim
33391 #. type: verbatim
33392 #: ../tools/virt-resize.pl:81
33393 #, no-wrap
33394 msgid ""
33395 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
33396 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
33397 "\n"
33398 msgstr ""
33399
33400 # type: =head1
33401 #. type: =head1
33402 #: ../tools/virt-resize.pl:84
33403 msgid "DETAILED USAGE"
33404 msgstr ""
33405
33406 # type: =head2
33407 #. type: =head2
33408 #: ../tools/virt-resize.pl:86
33409 msgid "EXPANDING A VIRTUAL MACHINE DISK"
33410 msgstr ""
33411
33412 # type: =item
33413 #. type: =item
33414 #: ../tools/virt-resize.pl:90
33415 msgid "1. Shut down the virtual machine"
33416 msgstr ""
33417
33418 # type: =item
33419 #. type: =item
33420 #: ../tools/virt-resize.pl:92
33421 msgid "2. Locate input disk image"
33422 msgstr ""
33423
33424 # type: textblock
33425 #. type: textblock
33426 #: ../tools/virt-resize.pl:94
33427 msgid ""
33428 "Locate the input disk image (ie. the file or device on the host containing "
33429 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
33430 "dumpxml> like this to find the disk image name:"
33431 msgstr ""
33432
33433 # type: verbatim
33434 #. type: verbatim
33435 #: ../tools/virt-resize.pl:98
33436 #, no-wrap
33437 msgid ""
33438 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
33439 " Found 1 nodes:\n"
33440 " -- NODE --\n"
33441 " <source dev=\"/dev/vg/lv_guest\" />\n"
33442 "\n"
33443 msgstr ""
33444
33445 # type: =item
33446 #. type: =item
33447 #: ../tools/virt-resize.pl:103
33448 msgid "3. Look at current sizing"
33449 msgstr ""
33450
33451 # type: textblock
33452 #. type: textblock
33453 #: ../tools/virt-resize.pl:105
33454 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
33455 msgstr ""
33456
33457 # type: verbatim
33458 #. type: verbatim
33459 #: ../tools/virt-resize.pl:108
33460 #, no-wrap
33461 msgid ""
33462 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
33463 " Name       Type       Size  Parent\n"
33464 " /dev/sda1  partition  101M  /dev/sda\n"
33465 " /dev/sda2  partition  7.9G  /dev/sda\n"
33466 " /dev/sda   device     8.0G  -\n"
33467 "\n"
33468 msgstr ""
33469
33470 # type: textblock
33471 #. type: textblock
33472 #: ../tools/virt-resize.pl:114
33473 msgid ""
33474 "(This example is a virtual machine with an 8 GB disk which we would like to "
33475 "expand up to 10 GB)."
33476 msgstr ""
33477
33478 # type: =item
33479 #. type: =item
33480 #: ../tools/virt-resize.pl:117
33481 msgid "4. Create output disk"
33482 msgstr ""
33483
33484 # type: textblock
33485 #. type: textblock
33486 #: ../tools/virt-resize.pl:119
33487 msgid ""
33488 "Virt-resize cannot do in-place disk modifications.  You have to have space "
33489 "to store the resized output disk."
33490 msgstr ""
33491
33492 # type: textblock
33493 #. type: textblock
33494 #: ../tools/virt-resize.pl:122
33495 msgid ""
33496 "To store the resized disk image in a file, create a file of a suitable size:"
33497 msgstr ""
33498
33499 # type: verbatim
33500 #. type: verbatim
33501 #: ../tools/virt-resize.pl:125
33502 #, no-wrap
33503 msgid ""
33504 " # rm -f outdisk\n"
33505 " # truncate -s 10G outdisk\n"
33506 "\n"
33507 msgstr ""
33508
33509 # type: textblock
33510 #. type: textblock
33511 #: ../tools/virt-resize.pl:128
33512 msgid "Or use L<lvcreate(1)> to create a logical volume:"
33513 msgstr ""
33514
33515 # type: verbatim
33516 #. type: verbatim
33517 #: ../tools/virt-resize.pl:130
33518 #, no-wrap
33519 msgid ""
33520 " # lvcreate -L 10G -n lv_name vg_name\n"
33521 "\n"
33522 msgstr ""
33523
33524 # type: textblock
33525 #. type: textblock
33526 #: ../tools/virt-resize.pl:132
33527 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
33528 msgstr ""
33529
33530 # type: verbatim
33531 #. type: verbatim
33532 #: ../tools/virt-resize.pl:134
33533 #, no-wrap
33534 msgid ""
33535 " # virsh pool-list\n"
33536 " # virsh vol-create-as poolname newvol 10G\n"
33537 "\n"
33538 msgstr ""
33539
33540 # type: =item
33541 #. type: =item
33542 #: ../tools/virt-resize.pl:137
33543 msgid "5. Resize"
33544 msgstr ""
33545
33546 # type: textblock
33547 #. type: textblock
33548 #: ../tools/virt-resize.pl:139
33549 msgid ""
33550 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
33551 "file) and the output disk.  The output disk is the one created in the "
33552 "previous step."
33553 msgstr ""
33554
33555 # type: verbatim
33556 #. type: verbatim
33557 #: ../tools/virt-resize.pl:143
33558 #, no-wrap
33559 msgid ""
33560 " # virt-resize indisk outdisk\n"
33561 "\n"
33562 msgstr ""
33563
33564 # type: textblock
33565 #. type: textblock
33566 #: ../tools/virt-resize.pl:145
33567 msgid ""
33568 "This command just copies disk image C<indisk> to disk image C<outdisk> "
33569 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
33570 "larger, then an extra, empty partition is created at the end of the disk "
33571 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
33572 "error."
33573 msgstr ""
33574
33575 # type: textblock
33576 #. type: textblock
33577 #: ../tools/virt-resize.pl:151
33578 msgid ""
33579 "More realistically you'd want to expand existing partitions in the disk "
33580 "image by passing extra options (for the full list see the L</OPTIONS> "
33581 "section below)."
33582 msgstr ""
33583
33584 # type: textblock
33585 #. type: textblock
33586 #: ../tools/virt-resize.pl:155
33587 msgid ""
33588 "L</--expand> is the most useful option.  It expands the named partition "
33589 "within the disk to fill any extra space:"
33590 msgstr ""
33591
33592 # type: verbatim
33593 #. type: verbatim
33594 #: ../tools/virt-resize.pl:158
33595 #, no-wrap
33596 msgid ""
33597 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
33598 "\n"
33599 msgstr ""
33600
33601 # type: textblock
33602 #. type: textblock
33603 #: ../tools/virt-resize.pl:160
33604 msgid ""
33605 "(In this case, an extra partition is I<not> created at the end of the disk, "
33606 "because there will be no unused space)."
33607 msgstr ""
33608
33609 # type: textblock
33610 #. type: textblock
33611 #: ../tools/virt-resize.pl:163
33612 msgid ""
33613 "L</--resize> is the other commonly used option.  The following would "
33614 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
33615 "rest of the available space:"
33616 msgstr ""
33617
33618 # type: verbatim
33619 #. type: verbatim
33620 #: ../tools/virt-resize.pl:167
33621 #, no-wrap
33622 msgid ""
33623 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
33624 "     indisk outdisk\n"
33625 "\n"
33626 msgstr ""
33627
33628 # type: textblock
33629 #. type: textblock
33630 #: ../tools/virt-resize.pl:170
33631 msgid ""
33632 "If the expanded partition in the image contains a filesystem or LVM PV, then "
33633 "if virt-resize knows how, it will resize the contents, the equivalent of "
33634 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
33635 ">.  However virt-resize does not know how to resize some filesystems, so you "
33636 "would have to online resize them after booting the guest."
33637 msgstr ""
33638
33639 # type: textblock
33640 #. type: textblock
33641 #: ../tools/virt-resize.pl:177
33642 msgid "Other options are covered below."
33643 msgstr ""
33644
33645 # type: =item
33646 #. type: =item
33647 #: ../tools/virt-resize.pl:179
33648 msgid "6. Test"
33649 msgstr ""
33650
33651 # type: textblock
33652 #. type: textblock
33653 #: ../tools/virt-resize.pl:181
33654 msgid "Thoroughly test the new disk image I<before> discarding the old one."
33655 msgstr ""
33656
33657 # type: textblock
33658 #. type: textblock
33659 #: ../tools/virt-resize.pl:183
33660 msgid "If you are using libvirt, edit the XML to point at the new disk:"
33661 msgstr ""
33662
33663 # type: verbatim
33664 #. type: verbatim
33665 #: ../tools/virt-resize.pl:185
33666 #, no-wrap
33667 msgid ""
33668 " # virsh edit guestname\n"
33669 "\n"
33670 msgstr ""
33671
33672 # type: textblock
33673 #. type: textblock
33674 #: ../tools/virt-resize.pl:187
33675 msgid ""
33676 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
33677 "html#elementsDisks>"
33678 msgstr ""
33679
33680 # type: textblock
33681 #. type: textblock
33682 #: ../tools/virt-resize.pl:190
33683 msgid "Then start up the domain with the new, resized disk:"
33684 msgstr ""
33685
33686 # type: verbatim
33687 #. type: verbatim
33688 #: ../tools/virt-resize.pl:192
33689 #, no-wrap
33690 msgid ""
33691 " # virsh start guestname\n"
33692 "\n"
33693 msgstr ""
33694
33695 # type: textblock
33696 #. type: textblock
33697 #: ../tools/virt-resize.pl:194
33698 msgid ""
33699 "and check that it still works.  See also the L</NOTES> section below for "
33700 "additional information."
33701 msgstr ""
33702
33703 # type: =item
33704 #. type: =item
33705 #: ../tools/virt-resize.pl:197
33706 msgid "7. Resize LVs etc inside the guest"
33707 msgstr ""
33708
33709 # type: textblock
33710 #. type: textblock
33711 #: ../tools/virt-resize.pl:199
33712 msgid "(This can also be done offline using L<guestfish(1)>)"
33713 msgstr ""
33714
33715 # type: textblock
33716 #. type: textblock
33717 #: ../tools/virt-resize.pl:201
33718 msgid ""
33719 "Once the guest has booted you should see the new space available, at least "
33720 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
33721 "may need to resize LVs inside PVs, and also resize filesystem types that "
33722 "virt-resize does not know how to expand."
33723 msgstr ""
33724
33725 # type: =head2
33726 #. type: =head2
33727 #: ../tools/virt-resize.pl:208
33728 msgid "SHRINKING A VIRTUAL MACHINE DISK"
33729 msgstr ""
33730
33731 # type: textblock
33732 #. type: textblock
33733 #: ../tools/virt-resize.pl:210
33734 msgid ""
33735 "Shrinking is somewhat more complex than expanding, and only an overview is "
33736 "given here."
33737 msgstr ""
33738
33739 # type: textblock
33740 #. type: textblock
33741 #: ../tools/virt-resize.pl:213
33742 msgid ""
33743 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
33744 "filesystems).  The user has to shrink content before passing the disk image "
33745 "to virt-resize, and virt-resize will check that the content has been shrunk "
33746 "properly."
33747 msgstr ""
33748
33749 # type: textblock
33750 #. type: textblock
33751 #: ../tools/virt-resize.pl:218
33752 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
33753 msgstr ""
33754
33755 # type: textblock
33756 #. type: textblock
33757 #: ../tools/virt-resize.pl:220
33758 msgid ""
33759 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
33760 "steps 3 and 4 above to allocate a new disk image."
33761 msgstr ""
33762
33763 # type: textblock
33764 #. type: textblock
33765 #: ../tools/virt-resize.pl:223
33766 msgid ""
33767 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
33768 msgstr ""
33769
33770 # type: =head2
33771 #. type: =head2
33772 #: ../tools/virt-resize.pl:226
33773 msgid "IGNORING OR DELETING PARTITIONS"
33774 msgstr ""
33775
33776 # type: textblock
33777 #. type: textblock
33778 #: ../tools/virt-resize.pl:228
33779 msgid ""
33780 "virt-resize also gives a convenient way to ignore or delete partitions when "
33781 "copying from the input disk to the output disk.  Ignoring a partition speeds "
33782 "up the copy where you don't care about the existing contents of a "
33783 "partition.  Deleting a partition removes it completely, but note that it "
33784 "also renumbers any partitions after the one which is deleted, which can "
33785 "leave some guests unbootable."
33786 msgstr ""
33787
33788 # type: =head2
33789 #. type: =head2
33790 #: ../tools/virt-resize.pl:235
33791 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
33792 msgstr ""
33793
33794 # type: textblock
33795 #. type: textblock
33796 #: ../tools/virt-resize.pl:237
33797 msgid ""
33798 "If the input disk is in qcow2 format, then you may prefer that the output is "
33799 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
33800 "the fly.  The output format is simply determined by the format of the empty "
33801 "output container that you provide.  Thus to create qcow2 output, use:"
33802 msgstr ""
33803
33804 # type: verbatim
33805 #. type: verbatim
33806 #: ../tools/virt-resize.pl:243
33807 #, no-wrap
33808 msgid ""
33809 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
33810 "\n"
33811 msgstr ""
33812
33813 # type: textblock
33814 #. type: textblock
33815 #: ../tools/virt-resize.pl:245
33816 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
33817 msgstr ""
33818
33819 # type: textblock
33820 #. type: textblock
33821 #: ../tools/virt-resize.pl:247
33822 msgid "Similarly, to get non-sparse raw output use:"
33823 msgstr ""
33824
33825 # type: verbatim
33826 #. type: verbatim
33827 #: ../tools/virt-resize.pl:249
33828 #, no-wrap
33829 msgid ""
33830 " fallocate -l size outdisk\n"
33831 "\n"
33832 msgstr ""
33833
33834 # type: textblock
33835 #. type: textblock
33836 #: ../tools/virt-resize.pl:251
33837 msgid ""
33838 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
33839 "dev/zero of=outdisk bs=1M count=..>)"
33840 msgstr ""
33841
33842 # type: textblock
33843 #. type: textblock
33844 #: ../tools/virt-resize.pl:264
33845 msgid "Display help."
33846 msgstr ""
33847
33848 # type: =item
33849 #. type: =item
33850 #: ../tools/virt-resize.pl:278
33851 msgid "B<--resize part=size>"
33852 msgstr ""
33853
33854 # type: textblock
33855 #. type: textblock
33856 #: ../tools/virt-resize.pl:280
33857 msgid ""
33858 "Resize the named partition (expanding or shrinking it) so that it has the "
33859 "given size."
33860 msgstr ""
33861
33862 # type: textblock
33863 #. type: textblock
33864 #: ../tools/virt-resize.pl:283
33865 msgid ""
33866 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
33867 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
33868 "Exabytes; or as a percentage of the current size; or as a relative number or "
33869 "percentage.  For example:"
33870 msgstr ""
33871
33872 # type: verbatim
33873 #. type: verbatim
33874 #: ../tools/virt-resize.pl:288
33875 #, no-wrap
33876 msgid ""
33877 " --resize /dev/sda2=10G\n"
33878 "\n"
33879 msgstr ""
33880
33881 # type: verbatim
33882 #. type: verbatim
33883 #: ../tools/virt-resize.pl:290
33884 #, no-wrap
33885 msgid ""
33886 " --resize /dev/sda4=90%\n"
33887 "\n"
33888 msgstr ""
33889
33890 # type: verbatim
33891 #. type: verbatim
33892 #: ../tools/virt-resize.pl:292
33893 #, no-wrap
33894 msgid ""
33895 " --resize /dev/sda2=+1G\n"
33896 "\n"
33897 msgstr ""
33898
33899 # type: verbatim
33900 #. type: verbatim
33901 #: ../tools/virt-resize.pl:294
33902 #, no-wrap
33903 msgid ""
33904 " --resize /dev/sda2=-200M\n"
33905 "\n"
33906 msgstr ""
33907
33908 # type: verbatim
33909 #. type: verbatim
33910 #: ../tools/virt-resize.pl:296
33911 #, no-wrap
33912 msgid ""
33913 " --resize /dev/sda1=+128K\n"
33914 "\n"
33915 msgstr ""
33916
33917 # type: verbatim
33918 #. type: verbatim
33919 #: ../tools/virt-resize.pl:298
33920 #, no-wrap
33921 msgid ""
33922 " --resize /dev/sda1=+10%\n"
33923 "\n"
33924 msgstr ""
33925
33926 # type: verbatim
33927 #. type: verbatim
33928 #: ../tools/virt-resize.pl:300
33929 #, no-wrap
33930 msgid ""
33931 " --resize /dev/sda1=-10%\n"
33932 "\n"
33933 msgstr ""
33934
33935 # type: textblock
33936 #. type: textblock
33937 #: ../tools/virt-resize.pl:302
33938 msgid ""
33939 "You can increase the size of any partition.  Virt-resize will expand the "
33940 "direct content of the partition if it knows how (see C<--expand> below)."
33941 msgstr ""
33942
33943 # type: textblock
33944 #. type: textblock
33945 #: ../tools/virt-resize.pl:306
33946 msgid ""
33947 "You can only I<decrease> the size of partitions that contain filesystems or "
33948 "PVs which have already been shrunk.  Virt-resize will check this has been "
33949 "done before proceeding, or else will print an error (see also C<--resize-"
33950 "force>)."
33951 msgstr ""
33952
33953 # type: textblock
33954 #. type: textblock
33955 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
33956 #: ../tools/virt-resize.pl:420
33957 msgid "You can give this option multiple times."
33958 msgstr ""
33959
33960 # type: =item
33961 #. type: =item
33962 #: ../tools/virt-resize.pl:317
33963 msgid "B<--resize-force part=size>"
33964 msgstr ""
33965
33966 # type: textblock
33967 #. type: textblock
33968 #: ../tools/virt-resize.pl:319
33969 msgid ""
33970 "This is the same as C<--resize> except that it will let you decrease the "
33971 "size of any partition.  Generally this means you will lose any data which "
33972 "was at the end of the partition you shrink, but you may not care about that "
33973 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
33974 "as a swap partition)."
33975 msgstr ""
33976
33977 # type: textblock
33978 #. type: textblock
33979 #: ../tools/virt-resize.pl:325
33980 msgid "See also the C<--ignore> option."
33981 msgstr ""
33982
33983 # type: =item
33984 #. type: =item
33985 #: ../tools/virt-resize.pl:331
33986 msgid "B<--expand part>"
33987 msgstr ""
33988
33989 # type: textblock
33990 #. type: textblock
33991 #: ../tools/virt-resize.pl:333
33992 msgid ""
33993 "Expand the named partition so it uses up all extra space (space left over "
33994 "after any other resize changes that you request have been done)."
33995 msgstr ""
33996
33997 # type: textblock
33998 #. type: textblock
33999 #: ../tools/virt-resize.pl:336
34000 msgid ""
34001 "If virt-resize knows how, it will expand the direct content of the "
34002 "partition.  For example, if the partition is an LVM PV, it will expand the "
34003 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
34004 "content it doesn't know about alone."
34005 msgstr ""
34006
34007 # type: textblock
34008 #. type: textblock
34009 #: ../tools/virt-resize.pl:341
34010 msgid "Currently virt-resize can resize:"
34011 msgstr ""
34012
34013 # type: textblock
34014 #. type: textblock
34015 #: ../tools/virt-resize.pl:347
34016 msgid ""
34017 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
34018 "partition."
34019 msgstr ""
34020
34021 # type: textblock
34022 #. type: textblock
34023 #: ../tools/virt-resize.pl:352
34024 msgid ""
34025 "NTFS filesystems contained directly in a partition, if libguestfs was "
34026 "compiled with support for NTFS."
34027 msgstr ""
34028
34029 # type: textblock
34030 #. type: textblock
34031 #: ../tools/virt-resize.pl:355
34032 msgid ""
34033 "The filesystem must have been shut down consistently last time it was used.  "
34034 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
34035 "consistency check, so at the first boot after resizing Windows will check "
34036 "the disk."
34037 msgstr ""
34038
34039 # type: textblock
34040 #. type: textblock
34041 #: ../tools/virt-resize.pl:362
34042 msgid ""
34043 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
34044 "inside the PV, but see the C<--LV-expand> option.  The user could also "
34045 "resize LVs as desired after boot."
34046 msgstr ""
34047
34048 # type: textblock
34049 #. type: textblock
34050 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
34051 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
34052 msgstr ""
34053
34054 # type: =item
34055 #. type: =item
34056 #: ../tools/virt-resize.pl:374
34057 msgid "B<--shrink part>"
34058 msgstr ""
34059
34060 # type: textblock
34061 #. type: textblock
34062 #: ../tools/virt-resize.pl:376
34063 msgid ""
34064 "Shrink the named partition until the overall disk image fits in the "
34065 "destination.  The named partition B<must> contain a filesystem or PV which "
34066 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
34067 "online tools).  Virt-resize will check this and give an error if it has not "
34068 "been done."
34069 msgstr ""
34070
34071 # type: textblock
34072 #. type: textblock
34073 #: ../tools/virt-resize.pl:382
34074 msgid ""
34075 "The amount by which the overall disk must be shrunk (after carrying out all "
34076 "other operations requested by the user) is called the \"deficit\".  For "
34077 "example, a straight copy (assume no other operations)  from a 5GB disk image "
34078 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
34079 "would give an error unless the user specified a partition to shrink and that "
34080 "partition had more than a gigabyte of free space."
34081 msgstr ""
34082
34083 # type: =item
34084 #. type: =item
34085 #: ../tools/virt-resize.pl:396
34086 msgid "B<--ignore part>"
34087 msgstr ""
34088
34089 # type: textblock
34090 #. type: textblock
34091 #: ../tools/virt-resize.pl:398
34092 msgid ""
34093 "Ignore the named partition.  Effectively this means the partition is "
34094 "allocated on the destination disk, but the content is not copied across from "
34095 "the source disk.  The content of the partition will be blank (all zero "
34096 "bytes)."
34097 msgstr ""
34098
34099 # type: =item
34100 #. type: =item
34101 #: ../tools/virt-resize.pl:409
34102 msgid "B<--delete part>"
34103 msgstr ""
34104
34105 # type: textblock
34106 #. type: textblock
34107 #: ../tools/virt-resize.pl:411
34108 msgid ""
34109 "Delete the named partition.  It would be more accurate to describe this as "
34110 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
34111 "the original disk image is left intact."
34112 msgstr ""
34113
34114 # type: textblock
34115 #. type: textblock
34116 #: ../tools/virt-resize.pl:415
34117 msgid ""
34118 "Note that when you delete a partition, then anything contained in the "
34119 "partition is also deleted.  Furthermore, this causes any partitions that "
34120 "come after to be I<renumbered>, which can easily make your guest unbootable."
34121 msgstr ""
34122
34123 # type: =item
34124 #. type: =item
34125 #: ../tools/virt-resize.pl:426
34126 msgid "B<--LV-expand logvol>"
34127 msgstr ""
34128
34129 # type: textblock
34130 #. type: textblock
34131 #: ../tools/virt-resize.pl:428
34132 msgid ""
34133 "This takes the logical volume and, as a final step, expands it to fill all "
34134 "the space available in its volume group.  A typical usage, assuming a Linux "
34135 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
34136 "lv_root> would be:"
34137 msgstr ""
34138
34139 # type: verbatim
34140 #. type: verbatim
34141 #: ../tools/virt-resize.pl:433
34142 #, no-wrap
34143 msgid ""
34144 " virt-resize indisk outdisk \\\n"
34145 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
34146 "\n"
34147 msgstr ""
34148
34149 # type: textblock
34150 #. type: textblock
34151 #: ../tools/virt-resize.pl:436
34152 msgid ""
34153 "This would first expand the partition (and PV), and then expand the root "
34154 "device to fill the extra space in the PV."
34155 msgstr ""
34156
34157 # type: textblock
34158 #. type: textblock
34159 #: ../tools/virt-resize.pl:439
34160 msgid ""
34161 "The contents of the LV are also resized if virt-resize knows how to do "
34162 "that.  You can stop virt-resize from trying to expand the content by using "
34163 "the option C<--no-expand-content>."
34164 msgstr ""
34165
34166 # type: textblock
34167 #. type: textblock
34168 #: ../tools/virt-resize.pl:443
34169 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
34170 msgstr ""
34171
34172 # type: textblock
34173 #. type: textblock
34174 #: ../tools/virt-resize.pl:446
34175 msgid ""
34176 "You can give this option multiple times, I<but> it doesn't make sense to do "
34177 "this unless the logical volumes you specify are all in different volume "
34178 "groups."
34179 msgstr ""
34180
34181 # type: =item
34182 #. type: =item
34183 #: ../tools/virt-resize.pl:454
34184 msgid "B<--no-copy-boot-loader>"
34185 msgstr ""
34186
34187 # type: textblock
34188 #. type: textblock
34189 #: ../tools/virt-resize.pl:456
34190 msgid ""
34191 "By default, virt-resize copies over some sectors at the start of the disk "
34192 "(up to the beginning of the first partition).  Commonly these sectors "
34193 "contain the Master Boot Record (MBR) and the boot loader, and are required "
34194 "in order for the guest to boot correctly."
34195 msgstr ""
34196
34197 # type: textblock
34198 #. type: textblock
34199 #: ../tools/virt-resize.pl:461
34200 msgid ""
34201 "If you specify this flag, then this initial copy is not done.  You may need "
34202 "to reinstall the boot loader in this case."
34203 msgstr ""
34204
34205 # type: =item
34206 #. type: =item
34207 #: ../tools/virt-resize.pl:469
34208 msgid "B<--no-extra-partition>"
34209 msgstr ""
34210
34211 # type: textblock
34212 #. type: textblock
34213 #: ../tools/virt-resize.pl:471
34214 msgid ""
34215 "By default, virt-resize creates an extra partition if there is any extra, "
34216 "unused space after all resizing has happened.  Use this option to prevent "
34217 "the extra partition from being created.  If you do this then the extra space "
34218 "will be inaccessible until you run fdisk, parted, or some other partitioning "
34219 "tool in the guest."
34220 msgstr ""
34221
34222 # type: textblock
34223 #. type: textblock
34224 #: ../tools/virt-resize.pl:477
34225 msgid ""
34226 "Note that if the surplus space is smaller than 10 MB, no extra partition "
34227 "will be created."
34228 msgstr ""
34229
34230 # type: =item
34231 #. type: =item
34232 #: ../tools/virt-resize.pl:484
34233 msgid "B<--no-expand-content>"
34234 msgstr ""
34235
34236 # type: textblock
34237 #. type: textblock
34238 #: ../tools/virt-resize.pl:486
34239 msgid ""
34240 "By default, virt-resize will try to expand the direct contents of "
34241 "partitions, if it knows how (see C<--expand> option above)."
34242 msgstr ""
34243
34244 # type: textblock
34245 #. type: textblock
34246 #: ../tools/virt-resize.pl:489
34247 msgid ""
34248 "If you give the C<--no-expand-content> option then virt-resize will not "
34249 "attempt this."
34250 msgstr ""
34251
34252 # type: =item
34253 #. type: =item
34254 #: ../tools/virt-resize.pl:496
34255 msgid "B<-d> | B<--debug>"
34256 msgstr ""
34257
34258 # type: =item
34259 #. type: =item
34260 #: ../tools/virt-resize.pl:504
34261 msgid "B<-n> | B<--dryrun>"
34262 msgstr ""
34263
34264 # type: textblock
34265 #. type: textblock
34266 #: ../tools/virt-resize.pl:506
34267 msgid "Print a summary of what would be done, but don't do anything."
34268 msgstr ""
34269
34270 # type: =item
34271 #. type: =item
34272 #: ../tools/virt-resize.pl:512
34273 msgid "B<-q> | B<--quiet>"
34274 msgstr ""
34275
34276 # type: textblock
34277 #. type: textblock
34278 #: ../tools/virt-resize.pl:514
34279 msgid "Don't print the summary."
34280 msgstr ""
34281
34282 # type: textblock
34283 #. type: textblock
34284 #: ../tools/virt-resize.pl:522
34285 msgid ""
34286 "Specify the format of the input disk image.  If this flag is not given then "
34287 "it is auto-detected from the image itself."
34288 msgstr ""
34289
34290 # type: textblock
34291 #. type: textblock
34292 #: ../tools/virt-resize.pl:528
34293 msgid ""
34294 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
34295 "AND NON-SPARSE RAW FORMATS>."
34296 msgstr ""
34297
34298 # type: =item
34299 #. type: =item
34300 #: ../tools/virt-resize.pl:535
34301 msgid "B<--output-format> raw"
34302 msgstr ""
34303
34304 # type: textblock
34305 #. type: textblock
34306 #: ../tools/virt-resize.pl:537
34307 msgid ""
34308 "Specify the format of the output disk image.  If this flag is not given then "
34309 "it is auto-detected from the image itself."
34310 msgstr ""
34311
34312 # type: textblock
34313 #. type: textblock
34314 #: ../tools/virt-resize.pl:543
34315 msgid ""
34316 "Note that you still need to create the output disk with the right format.  "
34317 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
34318 msgstr ""
34319
34320 # type: =head1
34321 #. type: =head1
34322 #: ../tools/virt-resize.pl:1425
34323 msgid "NOTES"
34324 msgstr ""
34325
34326 # type: =head2
34327 #. type: =head2
34328 #: ../tools/virt-resize.pl:1427
34329 msgid "\"Partition 1 does not end on cylinder boundary.\""
34330 msgstr ""
34331
34332 # type: textblock
34333 #. type: textblock
34334 #: ../tools/virt-resize.pl:1429
34335 msgid ""
34336 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
34337 "means the partitions will not be aligned to the ancient CHS geometry.  "
34338 "However CHS geometry is meaningless for disks manufactured since the early "
34339 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
34340 "cylinders is not required by any modern operating system."
34341 msgstr ""
34342
34343 # type: =head2
34344 #. type: =head2
34345 #: ../tools/virt-resize.pl:1436
34346 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
34347 msgstr ""
34348
34349 # type: textblock
34350 #. type: textblock
34351 #: ../tools/virt-resize.pl:1438
34352 msgid ""
34353 "In Windows Vista and later versions, Microsoft switched to using a separate "
34354 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
34355 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
34356 "the boot partition.  Doing so seems to break the guest completely.  However "
34357 "expanding the second partition (ie. C: drive) should work."
34358 msgstr ""
34359
34360 # type: textblock
34361 #. type: textblock
34362 #: ../tools/virt-resize.pl:1445
34363 msgid ""
34364 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
34365 "NTFS partitions have been expanded.  This is just a safety check and (unless "
34366 "it find errors) is nothing to worry about."
34367 msgstr ""
34368
34369 # type: =head2
34370 #. type: =head2
34371 #: ../tools/virt-resize.pl:1449
34372 msgid "GUEST BOOT STUCK AT \"GRUB\""
34373 msgstr ""
34374
34375 # type: textblock
34376 #. type: textblock
34377 #: ../tools/virt-resize.pl:1451
34378 msgid ""
34379 "If a Linux guest does not boot after resizing, and the boot is stuck after "
34380 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
34381 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
34382 "although we think is to do with partition alignment."
34383 msgstr ""
34384
34385 # type: verbatim
34386 #. type: verbatim
34387 #: ../tools/virt-resize.pl:1456
34388 #, no-wrap
34389 msgid ""
34390 " guestfish -i -a newdisk\n"
34391 " ><fs> cat /boot/grub/device.map\n"
34392 " # check the contents of this file are sensible or\n"
34393 " # edit the file if necessary\n"
34394 " ><fs> grub-install / /dev/vda\n"
34395 " ><fs> exit\n"
34396 "\n"
34397 msgstr ""
34398
34399 # type: textblock
34400 #. type: textblock
34401 #: ../tools/virt-resize.pl:1463
34402 msgid ""
34403 "For more flexible guest reconfiguration, including if you need to specify "
34404 "other parameters to grub-install, use L<virt-rescue(1)>."
34405 msgstr ""
34406
34407 # type: =head1
34408 #. type: =head1
34409 #: ../tools/virt-resize.pl:1466
34410 msgid "ALTERNATIVE TOOLS"
34411 msgstr ""
34412
34413 # type: textblock
34414 #. type: textblock
34415 #: ../tools/virt-resize.pl:1468
34416 msgid ""
34417 "There are several proprietary tools for resizing partitions.  We won't "
34418 "mention any here."
34419 msgstr ""
34420
34421 # type: textblock
34422 #. type: textblock
34423 #: ../tools/virt-resize.pl:1471
34424 msgid ""
34425 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
34426 "operations on disk images.  They can resize and move partitions, but I don't "
34427 "think they can do anything with the contents, and they certainly don't "
34428 "understand LVM."
34429 msgstr ""
34430
34431 # type: textblock
34432 #. type: textblock
34433 #: ../tools/virt-resize.pl:1476
34434 msgid ""
34435 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
34436 "but at a much lower level.  You will probably end up hand-calculating sector "
34437 "offsets, which is something that virt-resize was designed to avoid.  If you "
34438 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
34439 "C<--debug> flag."
34440 msgstr ""
34441
34442 # type: textblock
34443 #. type: textblock
34444 #: ../tools/virt-resize.pl:1491
34445 msgid ""
34446 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
34447 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
34448 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
34449 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
34450 "libguestfs.org/>."
34451 msgstr ""
34452
34453 # type: textblock
34454 #. type: textblock
34455 #: ../tools/virt-list-filesystems.pl:32
34456 msgid ""
34457 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
34458 msgstr ""
34459
34460 # type: verbatim
34461 #. type: verbatim
34462 #: ../tools/virt-list-filesystems.pl:36
34463 #, no-wrap
34464 msgid ""
34465 " virt-list-filesystems [--options] domname\n"
34466 "\n"
34467 msgstr ""
34468
34469 # type: verbatim
34470 #. type: verbatim
34471 #: ../tools/virt-list-filesystems.pl:38
34472 #, no-wrap
34473 msgid ""
34474 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
34475 "\n"
34476 msgstr ""
34477
34478 # type: textblock
34479 #. type: textblock
34480 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
34481 msgid ""
34482 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
34483 "replacement."
34484 msgstr ""
34485
34486 # type: textblock
34487 #. type: textblock
34488 #: ../tools/virt-list-filesystems.pl:45
34489 msgid ""
34490 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
34491 "are contained in a virtual machine or disk image."
34492 msgstr ""
34493
34494 # type: textblock
34495 #. type: textblock
34496 #: ../tools/virt-list-filesystems.pl:49
34497 msgid ""
34498 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
34499 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34500 "> tool."
34501 msgstr ""
34502
34503 # type: =item
34504 #. type: =item
34505 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
34506 msgid "B<-l> | B<--long>"
34507 msgstr ""
34508
34509 # type: textblock
34510 #. type: textblock
34511 #: ../tools/virt-list-filesystems.pl:108
34512 msgid ""
34513 "With this option, C<virt-list-filesystems> displays the type of each "
34514 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
34515 msgstr ""
34516
34517 # type: =item
34518 #. type: =item
34519 #: ../tools/virt-list-filesystems.pl:115
34520 msgid "B<-a> | B<--all>"
34521 msgstr ""
34522
34523 # type: textblock
34524 #. type: textblock
34525 #: ../tools/virt-list-filesystems.pl:117
34526 msgid ""
34527 "Normally we only show mountable filesystems.  If this option is given then "
34528 "swap devices are shown too."
34529 msgstr ""
34530
34531 # type: textblock
34532 #. type: textblock
34533 #: ../tools/virt-list-filesystems.pl:191
34534 msgid ""
34535 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
34536 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
34537 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34538 msgstr ""
34539
34540 # type: textblock
34541 #. type: textblock
34542 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
34543 msgid "Copyright (C) 2009 Red Hat Inc."
34544 msgstr ""
34545
34546 # type: textblock
34547 #. type: textblock
34548 #: ../tools/virt-tar.pl:33
34549 msgid "virt-tar - Extract or upload files to a virtual machine"
34550 msgstr ""
34551
34552 # type: verbatim
34553 #. type: verbatim
34554 #: ../tools/virt-tar.pl:37
34555 #, no-wrap
34556 msgid ""
34557 " virt-tar [--options] -x domname directory tarball\n"
34558 "\n"
34559 msgstr ""
34560
34561 # type: verbatim
34562 #. type: verbatim
34563 #: ../tools/virt-tar.pl:39
34564 #, no-wrap
34565 msgid ""
34566 " virt-tar [--options] -u domname tarball directory\n"
34567 "\n"
34568 msgstr ""
34569
34570 # type: verbatim
34571 #. type: verbatim
34572 #: ../tools/virt-tar.pl:41
34573 #, no-wrap
34574 msgid ""
34575 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
34576 "\n"
34577 msgstr ""
34578
34579 # type: verbatim
34580 #. type: verbatim
34581 #: ../tools/virt-tar.pl:43
34582 #, no-wrap
34583 msgid ""
34584 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
34585 "\n"
34586 msgstr ""
34587
34588 #. type: textblock
34589 #: ../tools/virt-tar.pl:47
34590 msgid ""
34591 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
34592 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
34593 msgstr ""
34594
34595 # type: textblock
34596 #. type: textblock
34597 #: ../tools/virt-tar.pl:52
34598 msgid "Download C</home> from the VM into a local tarball:"
34599 msgstr ""
34600
34601 # type: verbatim
34602 #. type: verbatim
34603 #: ../tools/virt-tar.pl:54
34604 #, no-wrap
34605 msgid ""
34606 " virt-tar -x domname /home home.tar\n"
34607 "\n"
34608 msgstr ""
34609
34610 # type: verbatim
34611 #. type: verbatim
34612 #: ../tools/virt-tar.pl:56
34613 #, no-wrap
34614 msgid ""
34615 " virt-tar -zx domname /home home.tar.gz\n"
34616 "\n"
34617 msgstr ""
34618
34619 # type: textblock
34620 #. type: textblock
34621 #: ../tools/virt-tar.pl:58
34622 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
34623 msgstr ""
34624
34625 # type: verbatim
34626 #. type: verbatim
34627 #: ../tools/virt-tar.pl:60
34628 #, no-wrap
34629 msgid ""
34630 " virt-tar -u domname uploadstuff.tar /tmp\n"
34631 "\n"
34632 msgstr ""
34633
34634 # type: verbatim
34635 #. type: verbatim
34636 #: ../tools/virt-tar.pl:62
34637 #, no-wrap
34638 msgid ""
34639 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
34640 "\n"
34641 msgstr ""
34642
34643 # type: textblock
34644 #. type: textblock
34645 #: ../tools/virt-tar.pl:66
34646 msgid ""
34647 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
34648 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
34649 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
34650 msgstr ""
34651
34652 # type: textblock
34653 #. type: textblock
34654 #: ../tools/virt-tar.pl:71
34655 msgid ""
34656 "You can use C<-x> (extract) on live virtual machines, but you might get "
34657 "inconsistent results or errors if there is filesystem activity inside the "
34658 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
34659 "work, but the only way to guarantee consistent results is if the virtual "
34660 "machine is shut down."
34661 msgstr ""
34662
34663 # type: textblock
34664 #. type: textblock
34665 #: ../tools/virt-tar.pl:79
34666 msgid ""
34667 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
34668 "parts of a guest filesystem.  There are many possibilities: making backups, "
34669 "uploading data files, snooping on guest activity, fixing or customizing "
34670 "guests, etc."
34671 msgstr ""
34672
34673 # type: textblock
34674 #. type: textblock
34675 #: ../tools/virt-tar.pl:84
34676 msgid ""
34677 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
34678 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
34679 "should look at the L<guestfish(1)> tool."
34680 msgstr ""
34681
34682 # type: textblock
34683 #. type: textblock
34684 #: ../tools/virt-tar.pl:88
34685 msgid ""
34686 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
34687 "its contents (recursively) from the virtual machine into a local tarball.  "
34688 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
34689 "virtual machine.  You cannot use these two options together."
34690 msgstr ""
34691
34692 # type: textblock
34693 #. type: textblock
34694 #: ../tools/virt-tar.pl:94
34695 msgid ""
34696 "In addition, you may need to use the C<-z> (gZip) option to enable "
34697 "compression.  When uploading, you have to specify C<-z> if the upload file "
34698 "is compressed because virt-tar won't detect this on its own."
34699 msgstr ""
34700
34701 # type: textblock
34702 #. type: textblock
34703 #: ../tools/virt-tar.pl:98
34704 msgid ""
34705 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
34706 "example it cannot do PKZip files or bzip2 compression.  If you want that "
34707 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
34708 "the L<libguestfs(3)> API)."
34709 msgstr ""
34710
34711 # type: =item
34712 #. type: =item
34713 #: ../tools/virt-tar.pl:156
34714 msgid "B<-x> | B<--extract> | B<--download>"
34715 msgstr ""
34716
34717 # type: =item
34718 #. type: =item
34719 #: ../tools/virt-tar.pl:158
34720 msgid "B<-u> | B<--upload>"
34721 msgstr ""
34722
34723 # type: textblock
34724 #. type: textblock
34725 #: ../tools/virt-tar.pl:160
34726 msgid ""
34727 "Use C<-x> to extract (download) a directory from a virtual machine to a "
34728 "local tarball."
34729 msgstr ""
34730
34731 # type: textblock
34732 #. type: textblock
34733 #: ../tools/virt-tar.pl:163
34734 msgid ""
34735 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
34736 "Please read the L</WARNING> section above before using this option."
34737 msgstr ""
34738
34739 # type: textblock
34740 #. type: textblock
34741 #: ../tools/virt-tar.pl:167
34742 msgid "You must specify exactly one of these options."
34743 msgstr ""
34744
34745 # type: =item
34746 #. type: =item
34747 #: ../tools/virt-tar.pl:173
34748 msgid "B<-z> | B<--gzip>"
34749 msgstr ""
34750
34751 # type: textblock
34752 #. type: textblock
34753 #: ../tools/virt-tar.pl:175
34754 msgid "Specify that the input or output tarball is gzip-compressed."
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../tools/virt-tar.pl:288
34759 msgid ""
34760 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34761 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34762 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34763 "org/>."
34764 msgstr ""
34765
34766 # type: textblock
34767 #. type: textblock
34768 #: ../tools/virt-make-fs.pl:37
34769 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34770 msgstr ""
34771
34772 # type: verbatim
34773 #. type: verbatim
34774 #: ../tools/virt-make-fs.pl:41
34775 #, no-wrap
34776 msgid ""
34777 " virt-make-fs [--options] input.tar output.img\n"
34778 "\n"
34779 msgstr ""
34780
34781 # type: verbatim
34782 #. type: verbatim
34783 #: ../tools/virt-make-fs.pl:43
34784 #, no-wrap
34785 msgid ""
34786 " virt-make-fs [--options] input.tar.gz output.img\n"
34787 "\n"
34788 msgstr ""
34789
34790 # type: verbatim
34791 #. type: verbatim
34792 #: ../tools/virt-make-fs.pl:45
34793 #, no-wrap
34794 msgid ""
34795 " virt-make-fs [--options] directory output.img\n"
34796 "\n"
34797 msgstr ""
34798
34799 # type: textblock
34800 #. type: textblock
34801 #: ../tools/virt-make-fs.pl:49
34802 msgid ""
34803 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34804 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34805 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34806 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34807 "you want to attach these filesystems to existing virtual machines (eg. to "
34808 "import large amounts of read-only data to a VM)."
34809 msgstr ""
34810
34811 # type: textblock
34812 #. type: textblock
34813 #: ../tools/virt-make-fs.pl:57
34814 msgid "Basic usage is:"
34815 msgstr ""
34816
34817 # type: verbatim
34818 #. type: verbatim
34819 #: ../tools/virt-make-fs.pl:59
34820 #, no-wrap
34821 msgid ""
34822 " virt-make-fs input output\n"
34823 "\n"
34824 msgstr ""
34825
34826 # type: textblock
34827 #. type: textblock
34828 #: ../tools/virt-make-fs.pl:61
34829 msgid ""
34830 "where C<input> is either a directory containing files that you want to add, "
34831 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34832 "C<output> is a disk image.  The input type is detected automatically.  The "
34833 "output disk image defaults to a raw ext2 image unless you specify extra "
34834 "flags (see L</OPTIONS> below)."
34835 msgstr ""
34836
34837 # type: =head2
34838 #. type: =head2
34839 #: ../tools/virt-make-fs.pl:67
34840 msgid "EXTRA SPACE"
34841 msgstr ""
34842
34843 # type: textblock
34844 #. type: textblock
34845 #: ../tools/virt-make-fs.pl:69
34846 msgid ""
34847 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34848 "the files that it contains, but might have extra space.  Depending on how "
34849 "you are going to use the output, you might think this extra space is wasted "
34850 "and want to minimize it, or you might want to leave space so that more files "
34851 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34852 "but you can use the C<--size> flag to leave space in the filesystem if you "
34853 "want it."
34854 msgstr ""
34855
34856 # type: textblock
34857 #. type: textblock
34858 #: ../tools/virt-make-fs.pl:77
34859 msgid ""
34860 "An alternative way to leave extra space but not make the output image any "
34861 "bigger is to use an alternative disk image format (instead of the default "
34862 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34863 "image format (check your hypervisor supports this before using it).  This "
34864 "allows you to choose a large C<--size> but the extra space won't actually be "
34865 "allocated in the image until you try to store something in it."
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../tools/virt-make-fs.pl:85
34870 msgid ""
34871 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34872 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34873 "to build another image from scratch."
34874 msgstr ""
34875
34876 # type: =head3
34877 #. type: =head3
34878 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34879 #: ../tools/virt-make-fs.pl:142
34880 msgid "EXAMPLE"
34881 msgstr ""
34882
34883 # type: verbatim
34884 #. type: verbatim
34885 #: ../tools/virt-make-fs.pl:91
34886 #, no-wrap
34887 msgid ""
34888 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34889 "\n"
34890 msgstr ""
34891
34892 # type: =head2
34893 #. type: =head2
34894 #: ../tools/virt-make-fs.pl:93
34895 msgid "FILESYSTEM TYPE"
34896 msgstr ""
34897
34898 # type: textblock
34899 #. type: textblock
34900 #: ../tools/virt-make-fs.pl:95
34901 msgid ""
34902 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34903 "libguestfs supports can be used (but I<not> read-only formats like "
34904 "ISO9660).  Here are some of the more common choices:"
34905 msgstr ""
34906
34907 # type: =item
34908 #. type: =item
34909 #: ../tools/virt-make-fs.pl:101
34910 msgid "I<ext3>"
34911 msgstr ""
34912
34913 # type: textblock
34914 #. type: textblock
34915 #: ../tools/virt-make-fs.pl:103
34916 msgid ""
34917 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34918 "you are not going to use the filesystem in a way that requires the journal, "
34919 "then this is just wasted overhead."
34920 msgstr ""
34921
34922 # type: =item
34923 #. type: =item
34924 #: ../tools/virt-make-fs.pl:107
34925 msgid "I<ntfs> or I<vfat>"
34926 msgstr ""
34927
34928 # type: textblock
34929 #. type: textblock
34930 #: ../tools/virt-make-fs.pl:109
34931 msgid "Useful if exporting data to a Windows guest."
34932 msgstr ""
34933
34934 # type: textblock
34935 #. type: textblock
34936 #: ../tools/virt-make-fs.pl:111
34937 msgid ""
34938 "I<Note for vfat>: The tar archive or local directory must only contain files "
34939 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34940 "program running within libguestfs is unable to change the ownership of non-"
34941 "root files, since vfat itself does not support this."
34942 msgstr ""
34943
34944 # type: =item
34945 #. type: =item
34946 #: ../tools/virt-make-fs.pl:116
34947 msgid "I<minix>"
34948 msgstr ""
34949
34950 # type: textblock
34951 #. type: textblock
34952 #: ../tools/virt-make-fs.pl:118
34953 msgid ""
34954 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34955 "total filesystem size."
34956 msgstr ""
34957
34958 # type: verbatim
34959 #. type: verbatim
34960 #: ../tools/virt-make-fs.pl:125
34961 #, no-wrap
34962 msgid ""
34963 " virt-make-fs --type=minix input minixfs.img\n"
34964 "\n"
34965 msgstr ""
34966
34967 # type: =head2
34968 #. type: =head2
34969 #: ../tools/virt-make-fs.pl:127
34970 msgid "TO PARTITION OR NOT TO PARTITION"
34971 msgstr ""
34972
34973 # type: textblock
34974 #. type: textblock
34975 #: ../tools/virt-make-fs.pl:129
34976 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34977 msgstr ""
34978
34979 # type: textblock
34980 #. type: textblock
34981 #: ../tools/virt-make-fs.pl:131
34982 msgid ""
34983 "Adding a partition can make the disk image more compatible with certain "
34984 "virtualized operating systems which don't expect to see a filesystem "
34985 "directly located on a block device (Linux doesn't care and will happily "
34986 "handle both types)."
34987 msgstr ""
34988
34989 # type: textblock
34990 #. type: textblock
34991 #: ../tools/virt-make-fs.pl:136
34992 msgid ""
34993 "On the other hand, if you have a partition table then the output image is no "
34994 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34995 "directly on a partitioned disk image.  (However libguestfs tools such as "
34996 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34997 msgstr ""
34998
34999 # type: textblock
35000 #. type: textblock
35001 #: ../tools/virt-make-fs.pl:144
35002 msgid "Add an MBR partition:"
35003 msgstr ""
35004
35005 # type: verbatim
35006 #. type: verbatim
35007 #: ../tools/virt-make-fs.pl:146
35008 #, no-wrap
35009 msgid ""
35010 " virt-make-fs --partition -- input disk.img\n"
35011 "\n"
35012 msgstr ""
35013
35014 # type: textblock
35015 #. type: textblock
35016 #: ../tools/virt-make-fs.pl:148
35017 msgid ""
35018 "If the output disk image could be terabyte-sized or larger, it's better to "
35019 "use an EFI/GPT-compatible partition table:"
35020 msgstr ""
35021
35022 # type: verbatim
35023 #. type: verbatim
35024 #: ../tools/virt-make-fs.pl:151
35025 #, no-wrap
35026 msgid ""
35027 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
35028 "\n"
35029 msgstr ""
35030
35031 # type: textblock
35032 #. type: textblock
35033 #: ../tools/virt-make-fs.pl:179
35034 msgid "Enable debugging information."
35035 msgstr ""
35036
35037 # type: =item
35038 #. type: =item
35039 #: ../tools/virt-make-fs.pl:185
35040 msgid "B<--size=E<lt>NE<gt>>"
35041 msgstr ""
35042
35043 # type: =item
35044 #. type: =item
35045 #: ../tools/virt-make-fs.pl:187
35046 msgid "B<--size=+E<lt>NE<gt>>"
35047 msgstr ""
35048
35049 # type: =item
35050 #. type: =item
35051 #: ../tools/virt-make-fs.pl:189
35052 msgid "B<-s E<lt>NE<gt>>"
35053 msgstr ""
35054
35055 # type: =item
35056 #. type: =item
35057 #: ../tools/virt-make-fs.pl:191
35058 msgid "B<-s +E<lt>NE<gt>>"
35059 msgstr ""
35060
35061 # type: textblock
35062 #. type: textblock
35063 #: ../tools/virt-make-fs.pl:193
35064 msgid ""
35065 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
35066 msgstr ""
35067
35068 # type: textblock
35069 #. type: textblock
35070 #: ../tools/virt-make-fs.pl:196
35071 msgid ""
35072 "If this option is I<not> given, then the output image will be just large "
35073 "enough to contain all the files, with not much wasted space."
35074 msgstr ""
35075
35076 # type: textblock
35077 #. type: textblock
35078 #: ../tools/virt-make-fs.pl:199
35079 msgid ""
35080 "To choose a fixed size output disk, specify an absolute number followed by b/"
35081 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35082 "Petabytes or Exabytes.  This must be large enough to contain all the input "
35083 "files, else you will get an error."
35084 msgstr ""
35085
35086 # type: textblock
35087 #. type: textblock
35088 #: ../tools/virt-make-fs.pl:204
35089 msgid ""
35090 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
35091 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
35092 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
35093 "the input files, and (approximately) an extra 200 MB free space."
35094 msgstr ""
35095
35096 # type: textblock
35097 #. type: textblock
35098 #: ../tools/virt-make-fs.pl:210
35099 msgid ""
35100 "Note that virt-make-fs estimates free space, and therefore will not produce "
35101 "filesystems containing precisely the free space requested.  (It is much more "
35102 "expensive and time-consuming to produce a filesystem which has precisely the "
35103 "desired free space)."
35104 msgstr ""
35105
35106 # type: =item
35107 #. type: =item
35108 #: ../tools/virt-make-fs.pl:219
35109 msgid "B<--format=E<lt>fmtE<gt>>"
35110 msgstr ""
35111
35112 # type: =item
35113 #. type: =item
35114 #: ../tools/virt-make-fs.pl:221
35115 msgid "B<-F E<lt>fmtE<gt>>"
35116 msgstr ""
35117
35118 # type: textblock
35119 #. type: textblock
35120 #: ../tools/virt-make-fs.pl:223
35121 msgid "Choose the output disk image format."
35122 msgstr ""
35123
35124 # type: textblock
35125 #. type: textblock
35126 #: ../tools/virt-make-fs.pl:225
35127 msgid "The default is C<raw> (raw disk image)."
35128 msgstr ""
35129
35130 # type: textblock
35131 #. type: textblock
35132 #: ../tools/virt-make-fs.pl:227
35133 msgid ""
35134 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
35135 "that would really make sense here is C<qcow2>."
35136 msgstr ""
35137
35138 # type: =item
35139 #. type: =item
35140 #: ../tools/virt-make-fs.pl:234
35141 msgid "B<--type=E<lt>fsE<gt>>"
35142 msgstr ""
35143
35144 # type: =item
35145 #. type: =item
35146 #: ../tools/virt-make-fs.pl:236
35147 msgid "B<-t E<lt>fsE<gt>>"
35148 msgstr ""
35149
35150 # type: textblock
35151 #. type: textblock
35152 #: ../tools/virt-make-fs.pl:238
35153 msgid "Choose the output filesystem type."
35154 msgstr ""
35155
35156 # type: textblock
35157 #. type: textblock
35158 #: ../tools/virt-make-fs.pl:240
35159 msgid "The default is C<ext2>."
35160 msgstr ""
35161
35162 # type: textblock
35163 #. type: textblock
35164 #: ../tools/virt-make-fs.pl:242
35165 msgid ""
35166 "Any filesystem which is supported read-write by libguestfs can be used here."
35167 msgstr ""
35168
35169 # type: =item
35170 #. type: =item
35171 #: ../tools/virt-make-fs.pl:249
35172 msgid "B<--partition>"
35173 msgstr ""
35174
35175 # type: =item
35176 #. type: =item
35177 #: ../tools/virt-make-fs.pl:251
35178 msgid "B<--partition=E<lt>parttypeE<gt>>"
35179 msgstr ""
35180
35181 # type: textblock
35182 #. type: textblock
35183 #: ../tools/virt-make-fs.pl:253
35184 msgid ""
35185 "If specified, this flag adds an MBR partition table to the output disk image."
35186 msgstr ""
35187
35188 # type: textblock
35189 #. type: textblock
35190 #: ../tools/virt-make-fs.pl:256
35191 msgid ""
35192 "You can change the partition table type, eg. C<--partition=gpt> for large "
35193 "disks."
35194 msgstr ""
35195
35196 # type: textblock
35197 #. type: textblock
35198 #: ../tools/virt-make-fs.pl:259
35199 msgid ""
35200 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
35201 "might consider the next parameter to be the partition type.  For example:"
35202 msgstr ""
35203
35204 # type: verbatim
35205 #. type: verbatim
35206 #: ../tools/virt-make-fs.pl:263
35207 #, no-wrap
35208 msgid ""
35209 " virt-make-fs --partition input.tar ...\n"
35210 "\n"
35211 msgstr ""
35212
35213 # type: textblock
35214 #. type: textblock
35215 #: ../tools/virt-make-fs.pl:265
35216 msgid ""
35217 "would cause virt-make-fs to think you wanted to use a partition type of "
35218 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
35219 "dash) between options and the input file argument:"
35220 msgstr ""
35221
35222 # type: verbatim
35223 #. type: verbatim
35224 #: ../tools/virt-make-fs.pl:269
35225 #, no-wrap
35226 msgid ""
35227 " virt-make-fs --partition -- input.tar ...\n"
35228 "\n"
35229 msgstr ""
35230
35231 #. type: textblock
35232 #: ../tools/virt-make-fs.pl:541
35233 msgid ""
35234 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
35235 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
35236 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
35237 msgstr ""
35238
35239 # type: verbatim
35240 #. type: verbatim
35241 #: ../tools/virt-make-fs.pl:558
35242 #, no-wrap
35243 msgid ""
35244 " export LIBGUESTFS_DEBUG=1\n"
35245 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
35246 "\n"
35247 msgstr ""
35248
35249 # type: textblock
35250 #. type: textblock
35251 #: ../tools/virt-make-fs.pl:561
35252 msgid ""
35253 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
35254 "redhat.com/>"
35255 msgstr ""
35256
35257 # type: textblock
35258 #. type: textblock
35259 #: ../tools/virt-list-partitions.pl:32
35260 msgid ""
35261 "virt-list-partitions - List partitions in a virtual machine or disk image"
35262 msgstr ""
35263
35264 # type: verbatim
35265 #. type: verbatim
35266 #: ../tools/virt-list-partitions.pl:36
35267 #, no-wrap
35268 msgid ""
35269 " virt-list-partitions [--options] domname\n"
35270 "\n"
35271 msgstr ""
35272
35273 # type: verbatim
35274 #. type: verbatim
35275 #: ../tools/virt-list-partitions.pl:38
35276 #, no-wrap
35277 msgid ""
35278 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35279 "\n"
35280 msgstr ""
35281
35282 # type: textblock
35283 #. type: textblock
35284 #: ../tools/virt-list-partitions.pl:45
35285 msgid ""
35286 "C<virt-list-partitions> is a command line tool to list the partitions that "
35287 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35288 "first step to using L<virt-resize(1)>."
35289 msgstr ""
35290
35291 # type: textblock
35292 #. type: textblock
35293 #: ../tools/virt-list-partitions.pl:50
35294 msgid ""
35295 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35296 "functionality.  For more complex cases you should look at the L<guestfish(1)"
35297 "> tool."
35298 msgstr ""
35299
35300 # type: =item
35301 #. type: =item
35302 #: ../tools/virt-list-partitions.pl:107
35303 msgid "B<-h> | B<--human-readable>"
35304 msgstr ""
35305
35306 # type: textblock
35307 #. type: textblock
35308 #: ../tools/virt-list-partitions.pl:109
35309 msgid "Show sizes in human-readable form (eg. \"1G\")."
35310 msgstr ""
35311
35312 # type: textblock
35313 #. type: textblock
35314 #: ../tools/virt-list-partitions.pl:117
35315 msgid ""
35316 "With this option, C<virt-list-partitions> displays the type and size of each "
35317 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35318 msgstr ""
35319
35320 # type: =item
35321 #. type: =item
35322 #: ../tools/virt-list-partitions.pl:124
35323 msgid "B<-t> | B<--total>"
35324 msgstr ""
35325
35326 # type: textblock
35327 #. type: textblock
35328 #: ../tools/virt-list-partitions.pl:126
35329 msgid ""
35330 "Display the total size of each block device (as a separate row or rows)."
35331 msgstr ""
35332
35333 # type: textblock
35334 #. type: textblock
35335 #: ../tools/virt-list-partitions.pl:259
35336 msgid ""
35337 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
35338 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
35339 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35340 msgstr ""