Version 1.9.7.
[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-01-30 23:51+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 #. type: verbatim
255 #: ../src/guestfs.pod:98
256 #, no-wrap
257 msgid ""
258 " /* Now you can perform filesystem actions on the guest\n"
259 "  * disk image.\n"
260 "  */\n"
261 " guestfs_touch (g, \"/hello\");\n"
262 "\n"
263 msgstr ""
264
265 # type: verbatim
266 #. type: verbatim
267 #: ../src/guestfs.pod:103
268 #, no-wrap
269 msgid ""
270 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
271 "  * it is done automatically when you close the handle.  See\n"
272 "  * discussion of autosync in this page.\n"
273 "  */\n"
274 " guestfs_sync (g);\n"
275 " \n"
276 msgstr ""
277
278 # type: verbatim
279 #. type: verbatim
280 #: ../src/guestfs.pod:109
281 #, no-wrap
282 msgid ""
283 " /* Close the handle 'g'. */\n"
284 " guestfs_close (g);\n"
285 "\n"
286 msgstr ""
287
288 # type: textblock
289 #. type: textblock
290 #: ../src/guestfs.pod:112
291 msgid ""
292 "The code above doesn't include any error checking.  In real code you should "
293 "check return values carefully for errors.  In general all functions that "
294 "return integers return C<-1> on error, and all functions that return "
295 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
296 "how to handle errors, and consult the documentation for each function call "
297 "below to see precisely how they return error indications.  See L<guestfs-"
298 "examples(3)> for fully worked examples."
299 msgstr ""
300
301 # type: =head2
302 #. type: =head2
303 #: ../src/guestfs.pod:121
304 msgid "DISK IMAGES"
305 msgstr ""
306
307 # type: textblock
308 #. type: textblock
309 #: ../src/guestfs.pod:123
310 msgid ""
311 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
312 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
313 "actual block device, or simply an empty file of zeroes that you have created "
314 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
315 "of these."
316 msgstr ""
317
318 # type: textblock
319 #. type: textblock
320 #: ../src/guestfs.pod:129
321 msgid ""
322 "The call you should use in modern code for adding drives is L</"
323 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
324 "specifying that the format is raw, do:"
325 msgstr ""
326
327 # type: verbatim
328 #. type: verbatim
329 #: ../src/guestfs.pod:133
330 #, no-wrap
331 msgid ""
332 " guestfs_add_drive_opts (g, filename,\n"
333 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
334 "                         -1);\n"
335 "\n"
336 msgstr ""
337
338 # type: textblock
339 #. type: textblock
340 #: ../src/guestfs.pod:137
341 msgid "You can add a disk read-only using:"
342 msgstr ""
343
344 # type: verbatim
345 #. type: verbatim
346 #: ../src/guestfs.pod:139
347 #, no-wrap
348 msgid ""
349 " guestfs_add_drive_opts (g, filename,\n"
350 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
351 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
352 "                         -1);\n"
353 "\n"
354 msgstr ""
355
356 # type: textblock
357 #. type: textblock
358 #: ../src/guestfs.pod:144
359 msgid ""
360 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
361 "libguestfs won't modify the file."
362 msgstr ""
363
364 # type: textblock
365 #. type: textblock
366 #: ../src/guestfs.pod:147
367 msgid ""
368 "Be extremely cautious if the disk image is in use, eg. if it is being used "
369 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
370 "corruption, but adding it read-only is safe."
371 msgstr ""
372
373 # type: textblock
374 #. type: textblock
375 #: ../src/guestfs.pod:151
376 msgid ""
377 "You must add at least one disk image, and you may add multiple disk images.  "
378 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
379 "first one you added), C</dev/sdb> (for the second one you added), etc."
380 msgstr ""
381
382 # type: textblock
383 #. type: textblock
384 #: ../src/guestfs.pod:156
385 msgid ""
386 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
387 "can call L</guestfs_list_devices> to get a list of the device names, in the "
388 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
389 msgstr ""
390
391 # type: =head2
392 #. type: =head2
393 #: ../src/guestfs.pod:161
394 msgid "MOUNTING"
395 msgstr ""
396
397 #. type: textblock
398 #: ../src/guestfs.pod:163
399 msgid ""
400 "Before you can read or write files, create directories and so on in a disk "
401 "image that contains filesystems, you have to mount those filesystems using "
402 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
403 "a disk image contains (for example) one partition with a filesystem on that "
404 "partition, then you can mount it directly:"
405 msgstr ""
406
407 #. type: verbatim
408 #: ../src/guestfs.pod:170
409 #, no-wrap
410 msgid ""
411 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
412 "\n"
413 msgstr ""
414
415 #. type: textblock
416 #: ../src/guestfs.pod:172
417 msgid ""
418 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
419 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
420 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
421 "that these are libguestfs virtual devices, and are nothing to do with host "
422 "devices."
423 msgstr ""
424
425 #. type: textblock
426 #: ../src/guestfs.pod:178
427 msgid ""
428 "If you are given a disk image and you don't know what it contains then you "
429 "have to find out.  Libguestfs can do that too: use L</"
430 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
431 "LVs, and either try mounting each to see what is mountable, or else examine "
432 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
433 "filesystems, use L</guestfs_list_filesystems>."
434 msgstr ""
435
436 #. type: textblock
437 #: ../src/guestfs.pod:186
438 msgid ""
439 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
440 "L</INSPECTION> below).  But you might find it easier to look at higher level "
441 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
442 msgstr ""
443
444 #. type: textblock
445 #: ../src/guestfs.pod:191
446 msgid ""
447 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
448 "several other variations of the C<guestfs_mount_*> call."
449 msgstr ""
450
451 # type: =head2
452 #. type: =head2
453 #: ../src/guestfs.pod:194
454 msgid "FILESYSTEM ACCESS AND MODIFICATION"
455 msgstr ""
456
457 # type: textblock
458 #. type: textblock
459 #: ../src/guestfs.pod:196
460 msgid ""
461 "The majority of the libguestfs API consists of fairly low-level calls for "
462 "accessing and modifying the files, directories, symlinks etc on mounted "
463 "filesystems.  There are over a hundred such calls which you can find listed "
464 "in detail below in this man page, and we don't even pretend to cover them "
465 "all in this overview."
466 msgstr ""
467
468 # type: textblock
469 #. type: textblock
470 #: ../src/guestfs.pod:202
471 msgid ""
472 "Specify filenames as full paths, starting with C<\"/\"> and including the "
473 "mount point."
474 msgstr ""
475
476 # type: textblock
477 #. type: textblock
478 #: ../src/guestfs.pod:205
479 msgid ""
480 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
481 "the file called C<\"etc/passwd\"> then you could do:"
482 msgstr ""
483
484 # type: verbatim
485 #. type: verbatim
486 #: ../src/guestfs.pod:208
487 #, no-wrap
488 msgid ""
489 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
490 "\n"
491 msgstr ""
492
493 # type: textblock
494 #. type: textblock
495 #: ../src/guestfs.pod:210
496 msgid ""
497 "This would return C<data> as a newly allocated buffer containing the full "
498 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
499 "or C<NULL> if there was an error."
500 msgstr ""
501
502 # type: textblock
503 #. type: textblock
504 #: ../src/guestfs.pod:214
505 msgid ""
506 "As another example, to create a top-level directory on that filesystem "
507 "called C<\"var\"> you would do:"
508 msgstr ""
509
510 # type: verbatim
511 #. type: verbatim
512 #: ../src/guestfs.pod:217
513 #, no-wrap
514 msgid ""
515 " guestfs_mkdir (g, \"/var\");\n"
516 "\n"
517 msgstr ""
518
519 # type: textblock
520 #. type: textblock
521 #: ../src/guestfs.pod:219
522 msgid "To create a symlink you could do:"
523 msgstr ""
524
525 # type: verbatim
526 #. type: verbatim
527 #: ../src/guestfs.pod:221
528 #, no-wrap
529 msgid ""
530 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
531 "               \"/etc/rc3.d/S30portmap\");\n"
532 "\n"
533 msgstr ""
534
535 # type: textblock
536 #. type: textblock
537 #: ../src/guestfs.pod:224
538 msgid ""
539 "Libguestfs will reject attempts to use relative paths and there is no "
540 "concept of a current working directory."
541 msgstr ""
542
543 # type: textblock
544 #. type: textblock
545 #: ../src/guestfs.pod:227
546 msgid ""
547 "Libguestfs can return errors in many situations: for example if the "
548 "filesystem isn't writable, or if a file or directory that you requested "
549 "doesn't exist.  If you are using the C API (documented here)  you have to "
550 "check for those error conditions after each call.  (Other language bindings "
551 "turn these errors into exceptions)."
552 msgstr ""
553
554 # type: textblock
555 #. type: textblock
556 #: ../src/guestfs.pod:233
557 msgid ""
558 "File writes are affected by the per-handle umask, set by calling L</"
559 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
560 msgstr ""
561
562 # type: =head2
563 #. type: =head2
564 #: ../src/guestfs.pod:236
565 msgid "PARTITIONING"
566 msgstr ""
567
568 # type: textblock
569 #. type: textblock
570 #: ../src/guestfs.pod:238
571 msgid ""
572 "Libguestfs contains API calls to read, create and modify partition tables on "
573 "disk images."
574 msgstr ""
575
576 # type: textblock
577 #. type: textblock
578 #: ../src/guestfs.pod:241
579 msgid ""
580 "In the common case where you want to create a single partition covering the "
581 "whole disk, you should use the L</guestfs_part_disk> call:"
582 msgstr ""
583
584 # type: verbatim
585 #. type: verbatim
586 #: ../src/guestfs.pod:245
587 #, no-wrap
588 msgid ""
589 " const char *parttype = \"mbr\";\n"
590 " if (disk_is_larger_than_2TB)\n"
591 "   parttype = \"gpt\";\n"
592 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
593 "\n"
594 msgstr ""
595
596 # type: textblock
597 #. type: textblock
598 #: ../src/guestfs.pod:250
599 msgid ""
600 "Obviously this effectively wipes anything that was on that disk image before."
601 msgstr ""
602
603 # type: =head2
604 #. type: =head2
605 #: ../src/guestfs.pod:253
606 msgid "LVM2"
607 msgstr ""
608
609 # type: textblock
610 #. type: textblock
611 #: ../src/guestfs.pod:255
612 msgid ""
613 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
614 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
615 "you familiarize yourself with the concepts of physical volumes, volume "
616 "groups and logical volumes."
617 msgstr ""
618
619 # type: textblock
620 #. type: textblock
621 #: ../src/guestfs.pod:260
622 msgid ""
623 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
624 "tldp.org/HOWTO/LVM-HOWTO/>."
625 msgstr ""
626
627 # type: =head2
628 #. type: =head2
629 #: ../src/guestfs.pod:263
630 msgid "DOWNLOADING"
631 msgstr ""
632
633 #. type: textblock
634 #: ../src/guestfs.pod:265
635 msgid ""
636 "Use L</guestfs_cat> to download small, text only files.  This call is "
637 "limited to files which are less than 2 MB and which cannot contain any ASCII "
638 "NUL (C<\\0>) characters.  However the API is very simple to use."
639 msgstr ""
640
641 # type: textblock
642 #. type: textblock
643 #: ../src/guestfs.pod:269
644 msgid ""
645 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
646 "bit data, since it returns a (pointer, size) pair.  However it is still "
647 "limited to \"small\" files, less than 2 MB."
648 msgstr ""
649
650 # type: textblock
651 #. type: textblock
652 #: ../src/guestfs.pod:273
653 msgid ""
654 "L</guestfs_download> can be used to download any file, with no limits on "
655 "content or size (even files larger than 4 GB)."
656 msgstr ""
657
658 # type: textblock
659 #. type: textblock
660 #: ../src/guestfs.pod:276
661 msgid ""
662 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
663 msgstr ""
664
665 # type: =head2
666 #. type: =head2
667 #: ../src/guestfs.pod:279
668 msgid "UPLOADING"
669 msgstr ""
670
671 # type: textblock
672 #. type: textblock
673 #: ../src/guestfs.pod:281
674 msgid ""
675 "It's often the case that you want to write a file or files to the disk image."
676 msgstr ""
677
678 # type: textblock
679 #. type: textblock
680 #: ../src/guestfs.pod:284
681 msgid ""
682 "To write a small file with fixed content, use L</guestfs_write>.  To create "
683 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
684 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
685 "of other functions for creating test files, for example L</guestfs_fill> and "
686 "L</guestfs_fill_pattern>."
687 msgstr ""
688
689 # type: textblock
690 #. type: textblock
691 #: ../src/guestfs.pod:290
692 msgid ""
693 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
694 "file content or size (even files larger than 4 GB)."
695 msgstr ""
696
697 # type: textblock
698 #. type: textblock
699 #: ../src/guestfs.pod:293
700 msgid ""
701 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
702 msgstr ""
703
704 # type: textblock
705 #. type: textblock
706 #: ../src/guestfs.pod:295
707 msgid ""
708 "However the fastest way to upload I<large numbers of arbitrary files> is to "
709 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
710 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
711 "in a predictable way (eg. adding it last after all other drives) then you "
712 "can get the device name from L</guestfs_list_devices> and mount it directly "
713 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
714 "portable between kernel versions, and they don't support labels or UUIDs.  "
715 "If you want to pre-build an image or you need to mount it using a label or "
716 "UUID, use an ISO image instead."
717 msgstr ""
718
719 # type: =head2
720 #. type: =head2
721 #: ../src/guestfs.pod:306
722 msgid "COPYING"
723 msgstr ""
724
725 # type: textblock
726 #. type: textblock
727 #: ../src/guestfs.pod:308
728 msgid ""
729 "There are various different commands for copying between files and devices "
730 "and in and out of the guest filesystem.  These are summarised in the table "
731 "below."
732 msgstr ""
733
734 # type: =item
735 #. type: =item
736 #: ../src/guestfs.pod:314
737 msgid "B<file> to B<file>"
738 msgstr ""
739
740 # type: textblock
741 #. type: textblock
742 #: ../src/guestfs.pod:316
743 msgid ""
744 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
745 "directories recursively."
746 msgstr ""
747
748 # type: =item
749 #. type: =item
750 #: ../src/guestfs.pod:319
751 msgid "B<file or device> to B<file or device>"
752 msgstr ""
753
754 # type: textblock
755 #. type: textblock
756 #: ../src/guestfs.pod:321
757 msgid ""
758 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
759 "devices in the guest."
760 msgstr ""
761
762 # type: textblock
763 #. type: textblock
764 #: ../src/guestfs.pod:324
765 msgid "Example: duplicate the contents of an LV:"
766 msgstr ""
767
768 # type: verbatim
769 #. type: verbatim
770 #: ../src/guestfs.pod:326
771 #, no-wrap
772 msgid ""
773 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
774 "\n"
775 msgstr ""
776
777 # type: textblock
778 #. type: textblock
779 #: ../src/guestfs.pod:328
780 msgid ""
781 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
782 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
783 "guestfs_copy_size>."
784 msgstr ""
785
786 # type: =item
787 #. type: =item
788 #: ../src/guestfs.pod:332
789 msgid "B<file on the host> to B<file or device>"
790 msgstr ""
791
792 # type: textblock
793 #. type: textblock
794 #: ../src/guestfs.pod:334
795 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
796 msgstr ""
797
798 # type: =item
799 #. type: =item
800 #: ../src/guestfs.pod:336
801 msgid "B<file or device> to B<file on the host>"
802 msgstr ""
803
804 # type: textblock
805 #. type: textblock
806 #: ../src/guestfs.pod:338
807 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
808 msgstr ""
809
810 # type: =head2
811 #. type: =head2
812 #: ../src/guestfs.pod:342
813 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
814 msgstr ""
815
816 # type: textblock
817 #. type: textblock
818 #: ../src/guestfs.pod:344
819 msgid ""
820 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
821 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
822 "appears you can only upload and download to files.  However many Un*x-like "
823 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
824 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
825 "and arbitrary file descriptor N."
826 msgstr ""
827
828 # type: textblock
829 #. type: textblock
830 #: ../src/guestfs.pod:352
831 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
832 msgstr ""
833
834 #. type: verbatim
835 #: ../src/guestfs.pod:355
836 #, no-wrap
837 msgid ""
838 " guestfs_download (g, filename, \"/dev/stdout\");\n"
839 "\n"
840 msgstr ""
841
842 # type: textblock
843 #. type: textblock
844 #: ../src/guestfs.pod:357
845 msgid "and you can write tar output to a pipe C<fd> by doing:"
846 msgstr ""
847
848 #. type: verbatim
849 #: ../src/guestfs.pod:359
850 #, no-wrap
851 msgid ""
852 " char devfd[64];\n"
853 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
854 " guestfs_tar_out (g, \"/\", devfd);\n"
855 "\n"
856 msgstr ""
857
858 # type: =head2
859 #. type: =head2
860 #: ../src/guestfs.pod:363
861 msgid "LISTING FILES"
862 msgstr ""
863
864 # type: textblock
865 #. type: textblock
866 #: ../src/guestfs.pod:365
867 msgid ""
868 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
869 "L<guestfish(1)>-equivalent command C<ll>)."
870 msgstr ""
871
872 # type: textblock
873 #. type: textblock
874 #: ../src/guestfs.pod:368
875 msgid ""
876 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
877 "programs, as a flat list of strings."
878 msgstr ""
879
880 # type: textblock
881 #. type: textblock
882 #: ../src/guestfs.pod:371
883 msgid ""
884 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
885 "directory, plus additional information about each one.  It is more "
886 "equivalent to using the L<readdir(3)> call on a local filesystem."
887 msgstr ""
888
889 # type: textblock
890 #. type: textblock
891 #: ../src/guestfs.pod:375
892 msgid ""
893 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
894 msgstr ""
895
896 # type: =head2
897 #. type: =head2
898 #: ../src/guestfs.pod:378
899 msgid "RUNNING COMMANDS"
900 msgstr ""
901
902 # type: textblock
903 #. type: textblock
904 #: ../src/guestfs.pod:380
905 msgid ""
906 "Although libguestfs is primarily an API for manipulating files inside guest "
907 "images, we also provide some limited facilities for running commands inside "
908 "guests."
909 msgstr ""
910
911 # type: textblock
912 #. type: textblock
913 #: ../src/guestfs.pod:384
914 msgid "There are many limitations to this:"
915 msgstr ""
916
917 # type: =item
918 #. type: =item
919 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
920 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
921 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1031
922 #: ../src/guestfs.pod:1035 ../src/guestfs.pod:1039 ../src/guestfs.pod:1044
923 #: ../src/guestfs.pod:1052 ../src/guestfs.pod:1071 ../src/guestfs.pod:1079
924 #: ../src/guestfs.pod:1101 ../src/guestfs.pod:1105 ../src/guestfs.pod:1109
925 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1121
926 #: ../src/guestfs.pod:1603 ../src/guestfs.pod:1608 ../src/guestfs.pod:1612
927 #: ../src/guestfs.pod:1722 ../src/guestfs.pod:1727 ../src/guestfs.pod:1731
928 #: ../src/guestfs.pod:2083 ../src/guestfs.pod:2089 ../src/guestfs.pod:2094
929 #: ../src/guestfs.pod:2100 ../src/guestfs.pod:2565 ../src/guestfs.pod:2569
930 #: ../src/guestfs.pod:2573 ../src/guestfs.pod:2577
931 #: ../src/guestfs-actions.pod:15 ../src/guestfs-actions.pod:22
932 #: ../src/guestfs-actions.pod:569 ../src/guestfs-actions.pod:577
933 #: ../src/guestfs-actions.pod:584 ../src/guestfs-actions.pod:591
934 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:1591
935 #: ../src/guestfs-actions.pod:1595 ../src/guestfs-actions.pod:1599
936 #: ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1611
937 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1625
938 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1633
939 #: ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1775
940 #: ../src/guestfs-actions.pod:1780 ../src/guestfs-actions.pod:1785
941 #: ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850
942 #: ../src/guestfs-actions.pod:1855 ../fish/guestfish.pod:427
943 #: ../fish/guestfish.pod:431 ../fish/guestfish.pod:435
944 #: ../fish/guestfish.pod:439 ../fish/guestfish-actions.pod:13
945 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:373
946 #: ../fish/guestfish-actions.pod:381 ../fish/guestfish-actions.pod:388
947 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:1065
948 #: ../fish/guestfish-actions.pod:1069 ../fish/guestfish-actions.pod:1073
949 #: ../fish/guestfish-actions.pod:1077 ../fish/guestfish-actions.pod:1085
950 #: ../fish/guestfish-actions.pod:1089 ../fish/guestfish-actions.pod:1093
951 #: ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107
952 #: ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1201
953 #: ../fish/guestfish-actions.pod:1205 ../fish/guestfish-actions.pod:1210
954 #: ../fish/guestfish-actions.pod:1215 ../fish/guestfish-actions.pod:1257
955 #: ../fish/guestfish-actions.pod:1261 ../fish/guestfish-actions.pod:1266
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:1224 ../src/guestfs.pod:1355
1104 #: ../src/guestfs.pod:2128
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:1228 ../src/guestfs.pod:1359
1126 #: ../src/guestfs.pod:2153
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:1365
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:746
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 #. type: textblock
2152 #: ../src/guestfs.pod:935
2153 msgid ""
2154 "Libguestfs needs a kernel and initrd.img, which it finds by looking along an "
2155 "internal path."
2156 msgstr ""
2157
2158 # type: textblock
2159 #. type: textblock
2160 #: ../src/guestfs.pod:938
2161 msgid ""
2162 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
2163 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
2164 msgstr ""
2165
2166 # type: textblock
2167 #. type: textblock
2168 #: ../src/guestfs.pod:941
2169 msgid ""
2170 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
2171 "to change the directories that libguestfs will search in.  The value is a "
2172 "colon-separated list of paths.  The current directory is I<not> searched "
2173 "unless the path contains an empty element or C<.>.  For example "
2174 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
2175 "then C</usr/lib/guestfs>."
2176 msgstr ""
2177
2178 # type: =head1
2179 #. type: =head2
2180 #: ../src/guestfs.pod:948
2181 msgid "QEMU WRAPPERS"
2182 msgstr ""
2183
2184 # type: textblock
2185 #. type: textblock
2186 #: ../src/guestfs.pod:950
2187 msgid ""
2188 "If you want to compile your own qemu, run qemu from a non-standard location, "
2189 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
2190 "around qemu."
2191 msgstr ""
2192
2193 # type: textblock
2194 #. type: textblock
2195 #: ../src/guestfs.pod:954
2196 msgid ""
2197 "There is one important rule to remember: you I<must C<exec qemu>> as the "
2198 "last command in the shell script (so that qemu replaces the shell and "
2199 "becomes the direct child of the libguestfs-using program).  If you don't do "
2200 "this, then the qemu process won't be cleaned up correctly."
2201 msgstr ""
2202
2203 # type: textblock
2204 #. type: textblock
2205 #: ../src/guestfs.pod:959
2206 msgid ""
2207 "Here is an example of a wrapper, where I have built my own copy of qemu from "
2208 "source:"
2209 msgstr ""
2210
2211 # type: verbatim
2212 #. type: verbatim
2213 #: ../src/guestfs.pod:962
2214 #, no-wrap
2215 msgid ""
2216 " #!/bin/sh -\n"
2217 " qemudir=/home/rjones/d/qemu\n"
2218 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
2219 "\n"
2220 msgstr ""
2221
2222 # type: textblock
2223 #. type: textblock
2224 #: ../src/guestfs.pod:966
2225 msgid ""
2226 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
2227 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
2228 "example:"
2229 msgstr ""
2230
2231 # type: verbatim
2232 #. type: verbatim
2233 #: ../src/guestfs.pod:970
2234 #, no-wrap
2235 msgid ""
2236 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
2237 "\n"
2238 msgstr ""
2239
2240 # type: textblock
2241 #. type: textblock
2242 #: ../src/guestfs.pod:972
2243 msgid ""
2244 "Note that libguestfs also calls qemu with the -help and -version options in "
2245 "order to determine features."
2246 msgstr ""
2247
2248 # type: =head2
2249 #. type: =head2
2250 #: ../src/guestfs.pod:975
2251 msgid "ABI GUARANTEE"
2252 msgstr ""
2253
2254 # type: textblock
2255 #. type: textblock
2256 #: ../src/guestfs.pod:977
2257 msgid ""
2258 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
2259 "actions as outlined in this section.  Although we will deprecate some "
2260 "actions, for example if they get replaced by newer calls, we will keep the "
2261 "old actions forever.  This allows you the developer to program in confidence "
2262 "against the libguestfs API."
2263 msgstr ""
2264
2265 # type: =head1
2266 #. type: =head2
2267 #: ../src/guestfs.pod:983
2268 msgid "BLOCK DEVICE NAMING"
2269 msgstr ""
2270
2271 # type: textblock
2272 #. type: textblock
2273 #: ../src/guestfs.pod:985
2274 msgid ""
2275 "In the kernel there is now quite a profusion of schemata for naming block "
2276 "devices (in this context, by I<block device> I mean a physical or virtual "
2277 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
2278 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
2279 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
2280 "for the old IDE driver (particularly for SATA devices) those devices also "
2281 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
2282 "paravirtualized drivers.  This has created several different naming systems, "
2283 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
2284 msgstr ""
2285
2286 # type: textblock
2287 #. type: textblock
2288 #: ../src/guestfs.pod:997
2289 msgid ""
2290 "As discussed above, libguestfs uses a qemu appliance running an embedded "
2291 "Linux kernel to access block devices.  We can run a variety of appliances "
2292 "based on a variety of Linux kernels."
2293 msgstr ""
2294
2295 # type: textblock
2296 #. type: textblock
2297 #: ../src/guestfs.pod:1001
2298 msgid ""
2299 "This causes a problem for libguestfs because many API calls use device or "
2300 "partition names.  Working scripts and the recipe (example) scripts that we "
2301 "make available over the internet could fail if the naming scheme changes."
2302 msgstr ""
2303
2304 # type: textblock
2305 #. type: textblock
2306 #: ../src/guestfs.pod:1006
2307 msgid ""
2308 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
2309 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
2310 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
2311 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
2312 msgstr ""
2313
2314 # type: textblock
2315 #. type: textblock
2316 #: ../src/guestfs.pod:1012
2317 msgid ""
2318 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
2319 "L</guestfs_list_partitions> and similar calls return the true names of the "
2320 "devices and partitions as known to the appliance."
2321 msgstr ""
2322
2323 # type: =head2
2324 #. type: =head3
2325 #: ../src/guestfs.pod:1017
2326 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
2327 msgstr ""
2328
2329 # type: textblock
2330 #. type: textblock
2331 #: ../src/guestfs.pod:1019
2332 msgid ""
2333 "Usually this translation is transparent.  However in some (very rare)  cases "
2334 "you may need to know the exact algorithm.  Such cases include where you use "
2335 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
2336 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
2337 msgstr ""
2338
2339 # type: textblock
2340 #. type: textblock
2341 #: ../src/guestfs.pod:1025
2342 msgid ""
2343 "The algorithm is applied only to I<parameters> which are known to be either "
2344 "device or partition names.  Return values from functions such as L</"
2345 "guestfs_list_devices> are never changed."
2346 msgstr ""
2347
2348 # type: textblock
2349 #. type: textblock
2350 #: ../src/guestfs.pod:1033
2351 msgid "Is the string a parameter which is a device or partition name?"
2352 msgstr ""
2353
2354 # type: textblock
2355 #. type: textblock
2356 #: ../src/guestfs.pod:1037
2357 msgid "Does the string begin with C</dev/sd>?"
2358 msgstr ""
2359
2360 # type: textblock
2361 #. type: textblock
2362 #: ../src/guestfs.pod:1041
2363 msgid ""
2364 "Does the named device exist? If so, we use that device.  However if I<not> "
2365 "then we continue with this algorithm."
2366 msgstr ""
2367
2368 # type: textblock
2369 #. type: textblock
2370 #: ../src/guestfs.pod:1046
2371 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
2372 msgstr ""
2373
2374 # type: textblock
2375 #. type: textblock
2376 #: ../src/guestfs.pod:1048
2377 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
2378 msgstr ""
2379
2380 # type: textblock
2381 #. type: textblock
2382 #: ../src/guestfs.pod:1050
2383 msgid "If that named device exists, use it.  If not, continue."
2384 msgstr ""
2385
2386 # type: textblock
2387 #. type: textblock
2388 #: ../src/guestfs.pod:1054
2389 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
2390 msgstr ""
2391
2392 # type: textblock
2393 #. type: textblock
2394 #: ../src/guestfs.pod:1056
2395 msgid "If that named device exists, use it.  If not, return an error."
2396 msgstr ""
2397
2398 # type: =head3
2399 #. type: =head3
2400 #: ../src/guestfs.pod:1060
2401 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
2402 msgstr ""
2403
2404 # type: textblock
2405 #. type: textblock
2406 #: ../src/guestfs.pod:1062
2407 msgid ""
2408 "Although the standard naming scheme and automatic translation is useful for "
2409 "simple programs and guestfish scripts, for larger programs it is best not to "
2410 "rely on this mechanism."
2411 msgstr ""
2412
2413 # type: textblock
2414 #. type: textblock
2415 #: ../src/guestfs.pod:1066
2416 msgid ""
2417 "Where possible for maximum future portability programs using libguestfs "
2418 "should use these future-proof techniques:"
2419 msgstr ""
2420
2421 # type: textblock
2422 #. type: textblock
2423 #: ../src/guestfs.pod:1073
2424 msgid ""
2425 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
2426 "device names, and then use those names directly."
2427 msgstr ""
2428
2429 # type: textblock
2430 #. type: textblock
2431 #: ../src/guestfs.pod:1076
2432 msgid ""
2433 "Since those device names exist by definition, they will never be translated."
2434 msgstr ""
2435
2436 # type: textblock
2437 #. type: textblock
2438 #: ../src/guestfs.pod:1081
2439 msgid ""
2440 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
2441 "filesystem labels."
2442 msgstr ""
2443
2444 # type: =head1
2445 #. type: =head1
2446 #: ../src/guestfs.pod:1086
2447 msgid "SECURITY"
2448 msgstr ""
2449
2450 # type: textblock
2451 #. type: textblock
2452 #: ../src/guestfs.pod:1088
2453 msgid ""
2454 "This section discusses security implications of using libguestfs, "
2455 "particularly with untrusted or malicious guests or disk images."
2456 msgstr ""
2457
2458 # type: =head2
2459 #. type: =head2
2460 #: ../src/guestfs.pod:1091
2461 msgid "GENERAL SECURITY CONSIDERATIONS"
2462 msgstr ""
2463
2464 # type: textblock
2465 #. type: textblock
2466 #: ../src/guestfs.pod:1093
2467 msgid ""
2468 "Be careful with any files or data that you download from a guest (by "
2469 "\"download\" we mean not just the L</guestfs_download> command but any "
2470 "command that reads files, filenames, directories or anything else from a "
2471 "disk image).  An attacker could manipulate the data to fool your program "
2472 "into doing the wrong thing.  Consider cases such as:"
2473 msgstr ""
2474
2475 # type: textblock
2476 #. type: textblock
2477 #: ../src/guestfs.pod:1103
2478 msgid "the data (file etc) not being present"
2479 msgstr ""
2480
2481 # type: textblock
2482 #. type: textblock
2483 #: ../src/guestfs.pod:1107
2484 msgid "being present but empty"
2485 msgstr ""
2486
2487 # type: textblock
2488 #. type: textblock
2489 #: ../src/guestfs.pod:1111
2490 msgid "being much larger than normal"
2491 msgstr ""
2492
2493 # type: textblock
2494 #. type: textblock
2495 #: ../src/guestfs.pod:1115
2496 msgid "containing arbitrary 8 bit data"
2497 msgstr ""
2498
2499 # type: textblock
2500 #. type: textblock
2501 #: ../src/guestfs.pod:1119
2502 msgid "being in an unexpected character encoding"
2503 msgstr ""
2504
2505 # type: textblock
2506 #. type: textblock
2507 #: ../src/guestfs.pod:1123
2508 msgid "containing homoglyphs."
2509 msgstr ""
2510
2511 # type: =head2
2512 #. type: =head2
2513 #: ../src/guestfs.pod:1127
2514 msgid "SECURITY OF MOUNTING FILESYSTEMS"
2515 msgstr ""
2516
2517 # type: textblock
2518 #. type: textblock
2519 #: ../src/guestfs.pod:1129
2520 msgid ""
2521 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
2522 "(VFS) module can sometimes be escalated into exploits by deliberately "
2523 "creating a malicious, malformed filesystem.  These exploits are very severe "
2524 "for two reasons.  Firstly there are very many filesystem drivers in the "
2525 "kernel, and many of them are infrequently used and not much developer "
2526 "attention has been paid to the code.  Linux userspace helps potential "
2527 "crackers by detecting the filesystem type and automatically choosing the "
2528 "right VFS driver, even if that filesystem type is obscure or unexpected for "
2529 "the administrator.  Secondly, a kernel-level exploit is like a local root "
2530 "exploit (worse in some ways), giving immediate and total access to the "
2531 "system right down to the hardware level."
2532 msgstr ""
2533
2534 # type: textblock
2535 #. type: textblock
2536 #: ../src/guestfs.pod:1142
2537 msgid ""
2538 "That explains why you should never mount a filesystem from an untrusted "
2539 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
2540 "inside a qemu virtual machine, usually running as a non-root user.  The "
2541 "attacker would need to write a filesystem which first exploited the kernel, "
2542 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
2543 "the libguestfs protocol, and finally to be as serious as the host kernel "
2544 "exploit it would need to escalate its privileges to root.  This multi-step "
2545 "escalation, performed by a static piece of data, is thought to be extremely "
2546 "hard to do, although we never say 'never' about security issues."
2547 msgstr ""
2548
2549 # type: textblock
2550 #. type: textblock
2551 #: ../src/guestfs.pod:1153
2552 msgid ""
2553 "In any case callers can reduce the attack surface by forcing the filesystem "
2554 "type when mounting (use L</guestfs_mount_vfs>)."
2555 msgstr ""
2556
2557 # type: =head2
2558 #. type: =head2
2559 #: ../src/guestfs.pod:1156
2560 msgid "PROTOCOL SECURITY"
2561 msgstr ""
2562
2563 # type: textblock
2564 #. type: textblock
2565 #: ../src/guestfs.pod:1158
2566 msgid ""
2567 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
2568 "defined upper message size.  However a program that uses libguestfs must "
2569 "also take care - for example you can write a program that downloads a binary "
2570 "from a disk image and executes it locally, and no amount of protocol "
2571 "security will save you from the consequences."
2572 msgstr ""
2573
2574 # type: =head2
2575 #. type: =head2
2576 #: ../src/guestfs.pod:1164
2577 msgid "INSPECTION SECURITY"
2578 msgstr ""
2579
2580 # type: textblock
2581 #. type: textblock
2582 #: ../src/guestfs.pod:1166
2583 msgid ""
2584 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
2585 "directly from the guest, and these could contain any 8 bit data.  Callers "
2586 "should be careful to escape these before printing them to a structured file "
2587 "(for example, use HTML escaping if creating a web page)."
2588 msgstr ""
2589
2590 # type: textblock
2591 #. type: textblock
2592 #: ../src/guestfs.pod:1172
2593 msgid ""
2594 "Guest configuration may be altered in unusual ways by the administrator of "
2595 "the virtual machine, and may not reflect reality (particularly for untrusted "
2596 "or actively malicious guests).  For example we parse the hostname from "
2597 "configuration files like C</etc/sysconfig/network> that we find in the "
2598 "guest, but the guest administrator can easily manipulate these files to "
2599 "provide the wrong hostname."
2600 msgstr ""
2601
2602 # type: textblock
2603 #. type: textblock
2604 #: ../src/guestfs.pod:1180
2605 msgid ""
2606 "The inspection API parses guest configuration using two external libraries: "
2607 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
2608 "designed to be robust in the face of malicious data, although denial of "
2609 "service attacks are still possible, for example with oversized configuration "
2610 "files."
2611 msgstr ""
2612
2613 # type: =head2
2614 #. type: =head2
2615 #: ../src/guestfs.pod:1186
2616 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
2617 msgstr ""
2618
2619 # type: textblock
2620 #. type: textblock
2621 #: ../src/guestfs.pod:1188
2622 msgid ""
2623 "Be very cautious about running commands from the guest.  By running a "
2624 "command in the guest, you are giving CPU time to a binary that you do not "
2625 "control, under the same user account as the library, albeit wrapped in qemu "
2626 "virtualization.  More information and alternatives can be found in the "
2627 "section L</RUNNING COMMANDS>."
2628 msgstr ""
2629
2630 # type: =head2
2631 #. type: =head2
2632 #: ../src/guestfs.pod:1194
2633 msgid "CVE-2010-3851"
2634 msgstr ""
2635
2636 # type: textblock
2637 #. type: textblock
2638 #: ../src/guestfs.pod:1196
2639 msgid "https://bugzilla.redhat.com/642934"
2640 msgstr ""
2641
2642 # type: textblock
2643 #. type: textblock
2644 #: ../src/guestfs.pod:1198
2645 msgid ""
2646 "This security bug concerns the automatic disk format detection that qemu "
2647 "does on disk images."
2648 msgstr ""
2649
2650 # type: textblock
2651 #. type: textblock
2652 #: ../src/guestfs.pod:1201
2653 msgid ""
2654 "A raw disk image is just the raw bytes, there is no header.  Other disk "
2655 "images like qcow2 contain a special header.  Qemu deals with this by looking "
2656 "for one of the known headers, and if none is found then assuming the disk "
2657 "image must be raw."
2658 msgstr ""
2659
2660 # type: textblock
2661 #. type: textblock
2662 #: ../src/guestfs.pod:1206
2663 msgid ""
2664 "This allows a guest which has been given a raw disk image to write some "
2665 "other header.  At next boot (or when the disk image is accessed by "
2666 "libguestfs) qemu would do autodetection and think the disk image format was, "
2667 "say, qcow2 based on the header written by the guest."
2668 msgstr ""
2669
2670 # type: textblock
2671 #. type: textblock
2672 #: ../src/guestfs.pod:1211
2673 msgid ""
2674 "This in itself would not be a problem, but qcow2 offers many features, one "
2675 "of which is to allow a disk image to refer to another image (called the "
2676 "\"backing disk\").  It does this by placing the path to the backing disk "
2677 "into the qcow2 header.  This path is not validated and could point to any "
2678 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
2679 "\"holes\" in the qcow2 disk image, which of course is completely under the "
2680 "control of the attacker."
2681 msgstr ""
2682
2683 # type: textblock
2684 #. type: textblock
2685 #: ../src/guestfs.pod:1219
2686 msgid ""
2687 "In libguestfs this is rather hard to exploit except under two circumstances:"
2688 msgstr ""
2689
2690 # type: textblock
2691 #. type: textblock
2692 #: ../src/guestfs.pod:1226
2693 msgid "You have enabled the network or have opened the disk in write mode."
2694 msgstr ""
2695
2696 # type: textblock
2697 #. type: textblock
2698 #: ../src/guestfs.pod:1230
2699 msgid ""
2700 "You are also running untrusted code from the guest (see L</RUNNING "
2701 "COMMANDS>)."
2702 msgstr ""
2703
2704 # type: textblock
2705 #. type: textblock
2706 #: ../src/guestfs.pod:1235
2707 msgid ""
2708 "The way to avoid this is to specify the expected disk format when adding "
2709 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
2710 "should always do this if the disk is raw format, and it's a good idea for "
2711 "other cases too."
2712 msgstr ""
2713
2714 # type: textblock
2715 #. type: textblock
2716 #: ../src/guestfs.pod:1240
2717 msgid ""
2718 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
2719 "format is fetched from libvirt and passed through."
2720 msgstr ""
2721
2722 # type: textblock
2723 #. type: textblock
2724 #: ../src/guestfs.pod:1243
2725 msgid ""
2726 "For libguestfs tools, use the I<--format> command line parameter as "
2727 "appropriate."
2728 msgstr ""
2729
2730 # type: =head1
2731 #. type: =head1
2732 #: ../src/guestfs.pod:1246
2733 msgid "CONNECTION MANAGEMENT"
2734 msgstr ""
2735
2736 # type: =head2
2737 #. type: =head2
2738 #: ../src/guestfs.pod:1248
2739 msgid "guestfs_h *"
2740 msgstr ""
2741
2742 # type: textblock
2743 #. type: textblock
2744 #: ../src/guestfs.pod:1250
2745 msgid ""
2746 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
2747 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
2748 "handle and release all resources used."
2749 msgstr ""
2750
2751 # type: textblock
2752 #. type: textblock
2753 #: ../src/guestfs.pod:1254
2754 msgid ""
2755 "For information on using multiple handles and threads, see the section L</"
2756 "MULTIPLE HANDLES AND MULTIPLE THREADS> below."
2757 msgstr ""
2758
2759 # type: =head2
2760 #. type: =head2
2761 #: ../src/guestfs.pod:1257
2762 msgid "guestfs_create"
2763 msgstr ""
2764
2765 # type: verbatim
2766 #. type: verbatim
2767 #: ../src/guestfs.pod:1259
2768 #, no-wrap
2769 msgid ""
2770 " guestfs_h *guestfs_create (void);\n"
2771 "\n"
2772 msgstr ""
2773
2774 # type: textblock
2775 #. type: textblock
2776 #: ../src/guestfs.pod:1261
2777 msgid "Create a connection handle."
2778 msgstr ""
2779
2780 # type: textblock
2781 #. type: textblock
2782 #: ../src/guestfs.pod:1263
2783 msgid ""
2784 "You have to call L</guestfs_add_drive_opts> (or one of the equivalent calls) "
2785 "on the handle at least once."
2786 msgstr ""
2787
2788 # type: textblock
2789 #. type: textblock
2790 #: ../src/guestfs.pod:1266
2791 msgid ""
2792 "This function returns a non-NULL pointer to a handle on success or NULL on "
2793 "error."
2794 msgstr ""
2795
2796 # type: textblock
2797 #. type: textblock
2798 #: ../src/guestfs.pod:1269
2799 msgid "After configuring the handle, you have to call L</guestfs_launch>."
2800 msgstr ""
2801
2802 # type: textblock
2803 #. type: textblock
2804 #: ../src/guestfs.pod:1271
2805 msgid ""
2806 "You may also want to configure error handling for the handle.  See L</ERROR "
2807 "HANDLING> section below."
2808 msgstr ""
2809
2810 # type: =head2
2811 #. type: =head2
2812 #: ../src/guestfs.pod:1274
2813 msgid "guestfs_close"
2814 msgstr ""
2815
2816 # type: verbatim
2817 #. type: verbatim
2818 #: ../src/guestfs.pod:1276
2819 #, no-wrap
2820 msgid ""
2821 " void guestfs_close (guestfs_h *g);\n"
2822 "\n"
2823 msgstr ""
2824
2825 # type: textblock
2826 #. type: textblock
2827 #: ../src/guestfs.pod:1278
2828 msgid "This closes the connection handle and frees up all resources used."
2829 msgstr ""
2830
2831 # type: =head1
2832 #. type: =head1
2833 #: ../src/guestfs.pod:1280
2834 msgid "ERROR HANDLING"
2835 msgstr ""
2836
2837 # type: textblock
2838 #. type: textblock
2839 #: ../src/guestfs.pod:1282
2840 msgid ""
2841 "API functions can return errors.  For example, almost all functions that "
2842 "return C<int> will return C<-1> to indicate an error."
2843 msgstr ""
2844
2845 # type: textblock
2846 #. type: textblock
2847 #: ../src/guestfs.pod:1285
2848 msgid ""
2849 "Additional information is available for errors: an error message string and "
2850 "optionally an error number (errno) if the thing that failed was a system "
2851 "call."
2852 msgstr ""
2853
2854 # type: textblock
2855 #. type: textblock
2856 #: ../src/guestfs.pod:1289
2857 msgid ""
2858 "You can get at the additional information about the last error on the handle "
2859 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
2860 "up an error handler with L</guestfs_set_error_handler>."
2861 msgstr ""
2862
2863 # type: textblock
2864 #. type: textblock
2865 #: ../src/guestfs.pod:1294
2866 msgid ""
2867 "When the handle is created, a default error handler is installed which "
2868 "prints the error message string to C<stderr>.  For small short-running "
2869 "command line programs it is sufficient to do:"
2870 msgstr ""
2871
2872 # type: verbatim
2873 #. type: verbatim
2874 #: ../src/guestfs.pod:1298
2875 #, no-wrap
2876 msgid ""
2877 " if (guestfs_launch (g) == -1)\n"
2878 "   exit (EXIT_FAILURE);\n"
2879 "\n"
2880 msgstr ""
2881
2882 # type: textblock
2883 #. type: textblock
2884 #: ../src/guestfs.pod:1301
2885 msgid ""
2886 "since the default error handler will ensure that an error message has been "
2887 "printed to C<stderr> before the program exits."
2888 msgstr ""
2889
2890 # type: textblock
2891 #. type: textblock
2892 #: ../src/guestfs.pod:1304
2893 msgid ""
2894 "For other programs the caller will almost certainly want to install an "
2895 "alternate error handler or do error handling in-line like this:"
2896 msgstr ""
2897
2898 # type: verbatim
2899 #. type: verbatim
2900 #: ../src/guestfs.pod:1307
2901 #, no-wrap
2902 msgid ""
2903 " g = guestfs_create ();\n"
2904 " \n"
2905 msgstr ""
2906
2907 # type: verbatim
2908 #. type: verbatim
2909 #: ../src/guestfs.pod:1309
2910 #, no-wrap
2911 msgid ""
2912 " /* This disables the default behaviour of printing errors\n"
2913 "    on stderr. */\n"
2914 " guestfs_set_error_handler (g, NULL, NULL);\n"
2915 " \n"
2916 msgstr ""
2917
2918 # type: verbatim
2919 #. type: verbatim
2920 #: ../src/guestfs.pod:1313
2921 #, no-wrap
2922 msgid ""
2923 " if (guestfs_launch (g) == -1) {\n"
2924 "   /* Examine the error message and print it etc. */\n"
2925 "   char *msg = guestfs_last_error (g);\n"
2926 "   int errnum = guestfs_last_errno (g);\n"
2927 "   fprintf (stderr, \"%s\\n\", msg);\n"
2928 "   /* ... */\n"
2929 "  }\n"
2930 "\n"
2931 msgstr ""
2932
2933 # type: textblock
2934 #. type: textblock
2935 #: ../src/guestfs.pod:1321
2936 msgid ""
2937 "Out of memory errors are handled differently.  The default action is to call "
2938 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
2939 "guestfs_set_out_of_memory_handler>."
2940 msgstr ""
2941
2942 # type: textblock
2943 #. type: textblock
2944 #: ../src/guestfs.pod:1325
2945 msgid ""
2946 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
2947 "because there is no handle if this happens there is no way to get additional "
2948 "error information.  However L</guestfs_create> is supposed to be a "
2949 "lightweight operation which can only fail because of insufficient memory (it "
2950 "returns NULL in this case)."
2951 msgstr ""
2952
2953 # type: =head2
2954 #. type: =head2
2955 #: ../src/guestfs.pod:1331
2956 msgid "guestfs_last_error"
2957 msgstr ""
2958
2959 # type: verbatim
2960 #. type: verbatim
2961 #: ../src/guestfs.pod:1333
2962 #, no-wrap
2963 msgid ""
2964 " const char *guestfs_last_error (guestfs_h *g);\n"
2965 "\n"
2966 msgstr ""
2967
2968 # type: textblock
2969 #. type: textblock
2970 #: ../src/guestfs.pod:1335
2971 msgid ""
2972 "This returns the last error message that happened on C<g>.  If there has not "
2973 "been an error since the handle was created, then this returns C<NULL>."
2974 msgstr ""
2975
2976 # type: textblock
2977 #. type: textblock
2978 #: ../src/guestfs.pod:1339
2979 msgid ""
2980 "The lifetime of the returned string is until the next error occurs, or L</"
2981 "guestfs_close> is called."
2982 msgstr ""
2983
2984 # type: =head2
2985 #. type: =head2
2986 #: ../src/guestfs.pod:1342
2987 msgid "guestfs_last_errno"
2988 msgstr ""
2989
2990 # type: verbatim
2991 #. type: verbatim
2992 #: ../src/guestfs.pod:1344
2993 #, no-wrap
2994 msgid ""
2995 " int guestfs_last_errno (guestfs_h *g);\n"
2996 "\n"
2997 msgstr ""
2998
2999 # type: textblock
3000 #. type: textblock
3001 #: ../src/guestfs.pod:1346
3002 msgid "This returns the last error number (errno) that happened on C<g>."
3003 msgstr ""
3004
3005 # type: textblock
3006 #. type: textblock
3007 #: ../src/guestfs.pod:1348
3008 msgid "If successful, an errno integer not equal to zero is returned."
3009 msgstr ""
3010
3011 # type: textblock
3012 #. type: textblock
3013 #: ../src/guestfs.pod:1350
3014 msgid ""
3015 "If no error, this returns 0.  This call can return 0 in three situations:"
3016 msgstr ""
3017
3018 # type: textblock
3019 #. type: textblock
3020 #: ../src/guestfs.pod:1357
3021 msgid "There has not been any error on the handle."
3022 msgstr ""
3023
3024 # type: textblock
3025 #. type: textblock
3026 #: ../src/guestfs.pod:1361
3027 msgid ""
3028 "There has been an error but the errno was meaningless.  This corresponds to "
3029 "the case where the error did not come from a failed system call, but for "
3030 "some other reason."
3031 msgstr ""
3032
3033 # type: textblock
3034 #. type: textblock
3035 #: ../src/guestfs.pod:1367
3036 msgid ""
3037 "There was an error from a failed system call, but for some reason the errno "
3038 "was not captured and returned.  This usually indicates a bug in libguestfs."
3039 msgstr ""
3040
3041 # type: textblock
3042 #. type: textblock
3043 #: ../src/guestfs.pod:1373
3044 msgid ""
3045 "Libguestfs tries to convert the errno from inside the applicance into a "
3046 "corresponding errno for the caller (not entirely trivial: the appliance "
3047 "might be running a completely different operating system from the library "
3048 "and error numbers are not standardized across Un*xen).  If this could not be "
3049 "done, then the error is translated to C<EINVAL>.  In practice this should "
3050 "only happen in very rare circumstances."
3051 msgstr ""
3052
3053 # type: =head2
3054 #. type: =head2
3055 #: ../src/guestfs.pod:1381
3056 msgid "guestfs_set_error_handler"
3057 msgstr ""
3058
3059 # type: verbatim
3060 #. type: verbatim
3061 #: ../src/guestfs.pod:1383
3062 #, no-wrap
3063 msgid ""
3064 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
3065 "                                           void *opaque,\n"
3066 "                                           const char *msg);\n"
3067 " void guestfs_set_error_handler (guestfs_h *g,\n"
3068 "                                 guestfs_error_handler_cb cb,\n"
3069 "                                 void *opaque);\n"
3070 "\n"
3071 msgstr ""
3072
3073 # type: textblock
3074 #. type: textblock
3075 #: ../src/guestfs.pod:1390
3076 msgid ""
3077 "The callback C<cb> will be called if there is an error.  The parameters "
3078 "passed to the callback are an opaque data pointer and the error message "
3079 "string."
3080 msgstr ""
3081
3082 # type: textblock
3083 #. type: textblock
3084 #: ../src/guestfs.pod:1394
3085 msgid ""
3086 "C<errno> is not passed to the callback.  To get that the callback must call "
3087 "L</guestfs_last_errno>."
3088 msgstr ""
3089
3090 # type: textblock
3091 #. type: textblock
3092 #: ../src/guestfs.pod:1397
3093 msgid ""
3094 "Note that the message string C<msg> is freed as soon as the callback "
3095 "function returns, so if you want to stash it somewhere you must make your "
3096 "own copy."
3097 msgstr ""
3098
3099 # type: textblock
3100 #. type: textblock
3101 #: ../src/guestfs.pod:1401
3102 msgid "The default handler prints messages on C<stderr>."
3103 msgstr ""
3104
3105 # type: textblock
3106 #. type: textblock
3107 #: ../src/guestfs.pod:1403
3108 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
3109 msgstr ""
3110
3111 # type: =head2
3112 #. type: =head2
3113 #: ../src/guestfs.pod:1405
3114 msgid "guestfs_get_error_handler"
3115 msgstr ""
3116
3117 # type: verbatim
3118 #. type: verbatim
3119 #: ../src/guestfs.pod:1407
3120 #, no-wrap
3121 msgid ""
3122 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
3123 "                                                     void **opaque_rtn);\n"
3124 "\n"
3125 msgstr ""
3126
3127 # type: textblock
3128 #. type: textblock
3129 #: ../src/guestfs.pod:1410
3130 msgid "Returns the current error handler callback."
3131 msgstr ""
3132
3133 # type: =head2
3134 #. type: =head2
3135 #: ../src/guestfs.pod:1412
3136 msgid "guestfs_set_out_of_memory_handler"
3137 msgstr ""
3138
3139 # type: verbatim
3140 #. type: verbatim
3141 #: ../src/guestfs.pod:1414
3142 #, no-wrap
3143 msgid ""
3144 " typedef void (*guestfs_abort_cb) (void);\n"
3145 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
3146 "                                        guestfs_abort_cb);\n"
3147 "\n"
3148 msgstr ""
3149
3150 # type: textblock
3151 #. type: textblock
3152 #: ../src/guestfs.pod:1418
3153 msgid ""
3154 "The callback C<cb> will be called if there is an out of memory situation.  "
3155 "I<Note this callback must not return>."
3156 msgstr ""
3157
3158 # type: textblock
3159 #. type: textblock
3160 #: ../src/guestfs.pod:1421
3161 msgid "The default is to call L<abort(3)>."
3162 msgstr ""
3163
3164 # type: textblock
3165 #. type: textblock
3166 #: ../src/guestfs.pod:1423
3167 msgid ""
3168 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
3169 msgstr ""
3170
3171 # type: =head2
3172 #. type: =head2
3173 #: ../src/guestfs.pod:1426
3174 msgid "guestfs_get_out_of_memory_handler"
3175 msgstr ""
3176
3177 # type: verbatim
3178 #. type: verbatim
3179 #: ../src/guestfs.pod:1428
3180 #, no-wrap
3181 msgid ""
3182 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
3183 "\n"
3184 msgstr ""
3185
3186 # type: textblock
3187 #. type: textblock
3188 #: ../src/guestfs.pod:1430
3189 msgid "This returns the current out of memory handler."
3190 msgstr ""
3191
3192 # type: =head1
3193 #. type: =head1
3194 #: ../src/guestfs.pod:1432
3195 msgid "API CALLS"
3196 msgstr ""
3197
3198 # type: textblock
3199 #. type: textblock
3200 #: ../src/guestfs.pod:1434 ../fish/guestfish.pod:984
3201 msgid "@ACTIONS@"
3202 msgstr ""
3203
3204 # type: =head1
3205 #. type: =head1
3206 #: ../src/guestfs.pod:1436
3207 msgid "STRUCTURES"
3208 msgstr ""
3209
3210 # type: textblock
3211 #. type: textblock
3212 #: ../src/guestfs.pod:1438
3213 msgid "@STRUCTS@"
3214 msgstr ""
3215
3216 # type: =head1
3217 #. type: =head1
3218 #: ../src/guestfs.pod:1440
3219 msgid "AVAILABILITY"
3220 msgstr ""
3221
3222 # type: =head2
3223 #. type: =head2
3224 #: ../src/guestfs.pod:1442
3225 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
3226 msgstr ""
3227
3228 # type: textblock
3229 #. type: textblock
3230 #: ../src/guestfs.pod:1444
3231 msgid ""
3232 "Using L</guestfs_available> you can test availability of the following "
3233 "groups of functions.  This test queries the appliance to see if the "
3234 "appliance you are currently using supports the functionality."
3235 msgstr ""
3236
3237 # type: textblock
3238 #. type: textblock
3239 #: ../src/guestfs.pod:1449
3240 msgid "@AVAILABILITY@"
3241 msgstr ""
3242
3243 # type: =head2
3244 #. type: =head2
3245 #: ../src/guestfs.pod:1451
3246 msgid "GUESTFISH supported COMMAND"
3247 msgstr ""
3248
3249 # type: textblock
3250 #. type: textblock
3251 #: ../src/guestfs.pod:1453
3252 msgid ""
3253 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
3254 "prints out the available groups and whether they are supported by this build "
3255 "of libguestfs.  Note however that you have to do C<run> first."
3256 msgstr ""
3257
3258 # type: =head2
3259 #. type: =head2
3260 #: ../src/guestfs.pod:1458
3261 msgid "SINGLE CALLS AT COMPILE TIME"
3262 msgstr ""
3263
3264 # type: textblock
3265 #. type: textblock
3266 #: ../src/guestfs.pod:1460
3267 msgid ""
3268 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
3269 "function, such as:"
3270 msgstr ""
3271
3272 # type: verbatim
3273 #. type: verbatim
3274 #: ../src/guestfs.pod:1463
3275 #, no-wrap
3276 msgid ""
3277 " #define LIBGUESTFS_HAVE_DD 1\n"
3278 "\n"
3279 msgstr ""
3280
3281 # type: textblock
3282 #. type: textblock
3283 #: ../src/guestfs.pod:1465
3284 msgid "if L</guestfs_dd> is available."
3285 msgstr ""
3286
3287 # type: textblock
3288 #. type: textblock
3289 #: ../src/guestfs.pod:1467
3290 msgid ""
3291 "Before version 1.5.8, if you needed to test whether a single libguestfs "
3292 "function is available at compile time, we recommended using build tools such "
3293 "as autoconf or cmake.  For example in autotools you could use:"
3294 msgstr ""
3295
3296 # type: verbatim
3297 #. type: verbatim
3298 #: ../src/guestfs.pod:1472
3299 #, no-wrap
3300 msgid ""
3301 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
3302 " AC_CHECK_FUNCS([guestfs_dd])\n"
3303 "\n"
3304 msgstr ""
3305
3306 # type: textblock
3307 #. type: textblock
3308 #: ../src/guestfs.pod:1475
3309 msgid ""
3310 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
3311 "in your program."
3312 msgstr ""
3313
3314 # type: =head2
3315 #. type: =head2
3316 #: ../src/guestfs.pod:1478
3317 msgid "SINGLE CALLS AT RUN TIME"
3318 msgstr ""
3319
3320 # type: textblock
3321 #. type: textblock
3322 #: ../src/guestfs.pod:1480
3323 msgid ""
3324 "Testing at compile time doesn't guarantee that a function really exists in "
3325 "the library.  The reason is that you might be dynamically linked against a "
3326 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
3327 "This situation unfortunately results in a segmentation fault, which is a "
3328 "shortcoming of the C dynamic linking system itself."
3329 msgstr ""
3330
3331 # type: textblock
3332 #. type: textblock
3333 #: ../src/guestfs.pod:1487
3334 msgid ""
3335 "You can use L<dlopen(3)> to test if a function is available at run time, as "
3336 "in this example program (note that you still need the compile time check as "
3337 "well):"
3338 msgstr ""
3339
3340 # type: verbatim
3341 #. type: verbatim
3342 #: ../src/guestfs.pod:1491
3343 #, no-wrap
3344 msgid ""
3345 " #include <stdio.h>\n"
3346 " #include <stdlib.h>\n"
3347 " #include <unistd.h>\n"
3348 " #include <dlfcn.h>\n"
3349 " #include <guestfs.h>\n"
3350 " \n"
3351 msgstr ""
3352
3353 # type: verbatim
3354 #. type: verbatim
3355 #: ../src/guestfs.pod:1497
3356 #, no-wrap
3357 msgid ""
3358 " main ()\n"
3359 " {\n"
3360 " #ifdef LIBGUESTFS_HAVE_DD\n"
3361 "   void *dl;\n"
3362 "   int has_function;\n"
3363 " \n"
3364 msgstr ""
3365
3366 # type: verbatim
3367 #. type: verbatim
3368 #: ../src/guestfs.pod:1503
3369 #, no-wrap
3370 msgid ""
3371 "   /* Test if the function guestfs_dd is really available. */\n"
3372 "   dl = dlopen (NULL, RTLD_LAZY);\n"
3373 "   if (!dl) {\n"
3374 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
3375 "     exit (EXIT_FAILURE);\n"
3376 "   }\n"
3377 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
3378 "   dlclose (dl);\n"
3379 " \n"
3380 msgstr ""
3381
3382 # type: verbatim
3383 #. type: verbatim
3384 #: ../src/guestfs.pod:1512
3385 #, no-wrap
3386 msgid ""
3387 "   if (!has_function)\n"
3388 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
3389 "   else {\n"
3390 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
3391 "     /* Now it's safe to call\n"
3392 "     guestfs_dd (g, \"foo\", \"bar\");\n"
3393 "     */\n"
3394 "   }\n"
3395 " #else\n"
3396 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
3397 " #endif\n"
3398 "  }\n"
3399 "\n"
3400 msgstr ""
3401
3402 # type: textblock
3403 #. type: textblock
3404 #: ../src/guestfs.pod:1525
3405 msgid ""
3406 "You may think the above is an awful lot of hassle, and it is.  There are "
3407 "other ways outside of the C linking system to ensure that this kind of "
3408 "incompatibility never arises, such as using package versioning:"
3409 msgstr ""
3410
3411 # type: verbatim
3412 #. type: verbatim
3413 #: ../src/guestfs.pod:1530
3414 #, no-wrap
3415 msgid ""
3416 " Requires: libguestfs >= 1.0.80\n"
3417 "\n"
3418 msgstr ""
3419
3420 # type: =head1
3421 #. type: =head1
3422 #: ../src/guestfs.pod:1532
3423 msgid "CALLS WITH OPTIONAL ARGUMENTS"
3424 msgstr ""
3425
3426 # type: textblock
3427 #. type: textblock
3428 #: ../src/guestfs.pod:1534
3429 msgid ""
3430 "A recent feature of the API is the introduction of calls which take optional "
3431 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
3432 "takes variable arguments (ie. C<...>), as in this example:"
3433 msgstr ""
3434
3435 # type: verbatim
3436 #. type: verbatim
3437 #: ../src/guestfs.pod:1539
3438 #, no-wrap
3439 msgid ""
3440 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
3441 "\n"
3442 msgstr ""
3443
3444 # type: textblock
3445 #. type: textblock
3446 #: ../src/guestfs.pod:1541
3447 msgid ""
3448 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
3449 "call with no optional arguments specified:"
3450 msgstr ""
3451
3452 # type: verbatim
3453 #. type: verbatim
3454 #: ../src/guestfs.pod:1544
3455 #, no-wrap
3456 msgid ""
3457 " guestfs_add_drive_opts (g, filename, -1);\n"
3458 "\n"
3459 msgstr ""
3460
3461 # type: textblock
3462 #. type: textblock
3463 #: ../src/guestfs.pod:1546
3464 msgid "With a single optional argument:"
3465 msgstr ""
3466
3467 # type: verbatim
3468 #. type: verbatim
3469 #: ../src/guestfs.pod:1548
3470 #, no-wrap
3471 msgid ""
3472 " guestfs_add_drive_opts (g, filename,\n"
3473 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3474 "                         -1);\n"
3475 "\n"
3476 msgstr ""
3477
3478 # type: textblock
3479 #. type: textblock
3480 #: ../src/guestfs.pod:1552
3481 msgid "With two:"
3482 msgstr ""
3483
3484 # type: verbatim
3485 #. type: verbatim
3486 #: ../src/guestfs.pod:1554
3487 #, no-wrap
3488 msgid ""
3489 " guestfs_add_drive_opts (g, filename,\n"
3490 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
3491 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
3492 "                         -1);\n"
3493 "\n"
3494 msgstr ""
3495
3496 # type: textblock
3497 #. type: textblock
3498 #: ../src/guestfs.pod:1559
3499 msgid ""
3500 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
3501 "happen!"
3502 msgstr ""
3503
3504 # type: =head2
3505 #. type: =head2
3506 #: ../src/guestfs.pod:1562
3507 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
3508 msgstr ""
3509
3510 # type: textblock
3511 #. type: textblock
3512 #: ../src/guestfs.pod:1564
3513 msgid ""
3514 "The second variant has the same name with the suffix C<_va>, which works the "
3515 "same way but takes a C<va_list>.  See the C manual for details.  For the "
3516 "example function, this is declared:"
3517 msgstr ""
3518
3519 # type: verbatim
3520 #. type: verbatim
3521 #: ../src/guestfs.pod:1568
3522 #, no-wrap
3523 msgid ""
3524 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3525 "                                va_list args);\n"
3526 "\n"
3527 msgstr ""
3528
3529 # type: =head2
3530 #. type: =head2
3531 #: ../src/guestfs.pod:1571
3532 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
3533 msgstr ""
3534
3535 # type: textblock
3536 #. type: textblock
3537 #: ../src/guestfs.pod:1573
3538 msgid ""
3539 "The third variant is useful where you need to construct these calls.  You "
3540 "pass in a structure where you fill in the optional fields.  The structure "
3541 "has a bitmask as the first element which you must set to indicate which "
3542 "fields you have filled in.  For our example function the structure and call "
3543 "are declared:"
3544 msgstr ""
3545
3546 # type: verbatim
3547 #. type: verbatim
3548 #: ../src/guestfs.pod:1579
3549 #, no-wrap
3550 msgid ""
3551 " struct guestfs_add_drive_opts_argv {\n"
3552 "   uint64_t bitmask;\n"
3553 "   int readonly;\n"
3554 "   const char *format;\n"
3555 "   /* ... */\n"
3556 " };\n"
3557 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
3558 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
3559 "\n"
3560 msgstr ""
3561
3562 # type: textblock
3563 #. type: textblock
3564 #: ../src/guestfs.pod:1588
3565 msgid "You could call it like this:"
3566 msgstr ""
3567
3568 # type: verbatim
3569 #. type: verbatim
3570 #: ../src/guestfs.pod:1590
3571 #, no-wrap
3572 msgid ""
3573 " struct guestfs_add_drive_opts_argv optargs = {\n"
3574 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
3575 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
3576 "   .readonly = 1,\n"
3577 "   .format = \"qcow2\"\n"
3578 " };\n"
3579 " \n"
3580 msgstr ""
3581
3582 # type: verbatim
3583 #. type: verbatim
3584 #: ../src/guestfs.pod:1597
3585 #, no-wrap
3586 msgid ""
3587 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
3588 "\n"
3589 msgstr ""
3590
3591 # type: textblock
3592 #. type: textblock
3593 #: ../src/guestfs.pod:1599 ../src/guestfs-actions.pod:11
3594 #: ../src/guestfs-actions.pod:1842 ../fish/guestfish-actions.pod:9
3595 #: ../fish/guestfish-actions.pod:1253 ../tools/virt-win-reg.pl:532
3596 msgid "Notes:"
3597 msgstr ""
3598
3599 # type: textblock
3600 #. type: textblock
3601 #: ../src/guestfs.pod:1605
3602 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
3603 msgstr ""
3604
3605 # type: textblock
3606 #. type: textblock
3607 #: ../src/guestfs.pod:1610
3608 msgid "You do not need to fill in all fields of the structure."
3609 msgstr ""
3610
3611 # type: textblock
3612 #. type: textblock
3613 #: ../src/guestfs.pod:1614
3614 msgid ""
3615 "There must be a one-to-one correspondence between fields of the structure "
3616 "that are filled in, and bits set in the bitmask."
3617 msgstr ""
3618
3619 # type: =head2
3620 #. type: =head2
3621 #: ../src/guestfs.pod:1619
3622 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
3623 msgstr ""
3624
3625 # type: textblock
3626 #. type: textblock
3627 #: ../src/guestfs.pod:1621
3628 msgid ""
3629 "In other languages, optional arguments are expressed in the way that is "
3630 "natural for that language.  We refer you to the language-specific "
3631 "documentation for more details on that."
3632 msgstr ""
3633
3634 # type: textblock
3635 #. type: textblock
3636 #: ../src/guestfs.pod:1625
3637 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
3638 msgstr ""
3639
3640 # type: =head2
3641 #. type: =head2
3642 #: ../src/guestfs.pod:1627
3643 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
3644 msgstr ""
3645
3646 # type: textblock
3647 #. type: textblock
3648 #: ../src/guestfs.pod:1629
3649 msgid ""
3650 "The child process generates events in some situations.  Current events "
3651 "include: receiving a log message, the child process exits."
3652 msgstr ""
3653
3654 # type: textblock
3655 #. type: textblock
3656 #: ../src/guestfs.pod:1632
3657 msgid ""
3658 "Use the C<guestfs_set_*_callback> functions to set a callback for different "
3659 "types of events."
3660 msgstr ""
3661
3662 # type: textblock
3663 #. type: textblock
3664 #: ../src/guestfs.pod:1635
3665 msgid ""
3666 "Only I<one callback of each type> can be registered for each handle.  "
3667 "Calling C<guestfs_set_*_callback> again overwrites the previous callback of "
3668 "that type.  Cancel all callbacks of this type by calling this function with "
3669 "C<cb> set to C<NULL>."
3670 msgstr ""
3671
3672 # type: =head2
3673 #. type: =head2
3674 #: ../src/guestfs.pod:1640
3675 msgid "guestfs_set_log_message_callback"
3676 msgstr ""
3677
3678 # type: verbatim
3679 #. type: verbatim
3680 #: ../src/guestfs.pod:1642
3681 #, no-wrap
3682 msgid ""
3683 " typedef void (*guestfs_log_message_cb) (guestfs_h *g, void *opaque,\n"
3684 "                                         char *buf, int len);\n"
3685 " void guestfs_set_log_message_callback (guestfs_h *g,\n"
3686 "                                        guestfs_log_message_cb cb,\n"
3687 "                                        void *opaque);\n"
3688 "\n"
3689 msgstr ""
3690
3691 # type: textblock
3692 #. type: textblock
3693 #: ../src/guestfs.pod:1648
3694 msgid ""
3695 "The callback function C<cb> will be called whenever qemu or the guest writes "
3696 "anything to the console."
3697 msgstr ""
3698
3699 # type: textblock
3700 #. type: textblock
3701 #: ../src/guestfs.pod:1651
3702 msgid "Use this function to capture kernel messages and similar."
3703 msgstr ""
3704
3705 # type: textblock
3706 #. type: textblock
3707 #: ../src/guestfs.pod:1653
3708 msgid ""
3709 "Normally there is no log message handler, and log messages are just "
3710 "discarded."
3711 msgstr ""
3712
3713 # type: =head2
3714 #. type: =head2
3715 #: ../src/guestfs.pod:1656
3716 msgid "guestfs_set_subprocess_quit_callback"
3717 msgstr ""
3718
3719 # type: verbatim
3720 #. type: verbatim
3721 #: ../src/guestfs.pod:1658
3722 #, no-wrap
3723 msgid ""
3724 " typedef void (*guestfs_subprocess_quit_cb) (guestfs_h *g, void *opaque);\n"
3725 " void guestfs_set_subprocess_quit_callback (guestfs_h *g,\n"
3726 "                                            guestfs_subprocess_quit_cb cb,\n"
3727 "                                            void *opaque);\n"
3728 "\n"
3729 msgstr ""
3730
3731 # type: textblock
3732 #. type: textblock
3733 #: ../src/guestfs.pod:1663
3734 msgid ""
3735 "The callback function C<cb> will be called when the child process quits, "
3736 "either asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
3737 "corresponds to a transition from any state to the CONFIG state)."
3738 msgstr ""
3739
3740 # type: =head2
3741 #. type: =head2
3742 #: ../src/guestfs.pod:1668
3743 msgid "guestfs_set_launch_done_callback"
3744 msgstr ""
3745
3746 # type: verbatim
3747 #. type: verbatim
3748 #: ../src/guestfs.pod:1670
3749 #, no-wrap
3750 msgid ""
3751 " typedef void (*guestfs_launch_done_cb) (guestfs_h *g, void *opaque);\n"
3752 " void guestfs_set_launch_done_callback (guestfs_h *g,\n"
3753 "                                        guestfs_launch_done_cb cb,\n"
3754 "                                        void *opaque);\n"
3755 "\n"
3756 msgstr ""
3757
3758 # type: textblock
3759 #. type: textblock
3760 #: ../src/guestfs.pod:1675
3761 msgid ""
3762 "The callback function C<cb> will be called when the child process becomes "
3763 "ready first time after it has been launched.  (This corresponds to a "
3764 "transition from LAUNCHING to the READY state)."
3765 msgstr ""
3766
3767 # type: =head2
3768 #. type: =head2
3769 #: ../src/guestfs.pod:1679
3770 msgid "guestfs_set_close_callback"
3771 msgstr ""
3772
3773 # type: verbatim
3774 #. type: verbatim
3775 #: ../src/guestfs.pod:1681
3776 #, no-wrap
3777 msgid ""
3778 " typedef void (*guestfs_close_cb) (guestfs_h *g, void *opaque);\n"
3779 " void guestfs_set_close_callback (guestfs_h *g,\n"
3780 "                                  guestfs_close_cb cb,\n"
3781 "                                  void *opaque);\n"
3782 "\n"
3783 msgstr ""
3784
3785 # type: textblock
3786 #. type: textblock
3787 #: ../src/guestfs.pod:1686
3788 msgid ""
3789 "The callback function C<cb> will be called while the handle is being closed "
3790 "(synchronously from L</guestfs_close>)."
3791 msgstr ""
3792
3793 # type: textblock
3794 #. type: textblock
3795 #: ../src/guestfs.pod:1689
3796 msgid ""
3797 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
3798 "handles that are open when the program exits.  This means that this callback "
3799 "might be called indirectly from L<exit(3)>, which can cause unexpected "
3800 "problems in higher-level languages (eg. if your HLL interpreter has already "
3801 "been cleaned up by the time this is called, and if your callback then jumps "
3802 "into some HLL function)."
3803 msgstr ""
3804
3805 # type: =head2
3806 #. type: =head2
3807 #: ../src/guestfs.pod:1697
3808 msgid "guestfs_set_progress_callback"
3809 msgstr ""
3810
3811 # type: verbatim
3812 #. type: verbatim
3813 #: ../src/guestfs.pod:1699
3814 #, no-wrap
3815 msgid ""
3816 " typedef void (*guestfs_progress_cb) (guestfs_h *g, void *opaque,\n"
3817 "                                      int proc_nr, int serial,\n"
3818 "                                      uint64_t position, uint64_t total);\n"
3819 " void guestfs_set_progress_callback (guestfs_h *g,\n"
3820 "                                     guestfs_progress_cb cb,\n"
3821 "                                     void *opaque);\n"
3822 "\n"
3823 msgstr ""
3824
3825 # type: textblock
3826 #. type: textblock
3827 #: ../src/guestfs.pod:1706
3828 msgid ""
3829 "Some long-running operations can generate progress messages.  If this "
3830 "callback is registered, then it will be called each time a progress message "
3831 "is generated (usually two seconds after the operation started, and three "
3832 "times per second thereafter until it completes, although the frequency may "
3833 "change in future versions)."
3834 msgstr ""
3835
3836 # type: textblock
3837 #. type: textblock
3838 #: ../src/guestfs.pod:1712
3839 msgid ""
3840 "The callback receives two numbers: C<position> and C<total>.  The units of "
3841 "C<total> are not defined, although for some operations C<total> may relate "
3842 "in some way to the amount of data to be transferred (eg. in bytes or "
3843 "megabytes), and C<position> may be the portion which has been transferred."
3844 msgstr ""
3845
3846 # type: textblock
3847 #. type: textblock
3848 #: ../src/guestfs.pod:1718
3849 msgid "The only defined and stable parts of the API are:"
3850 msgstr ""
3851
3852 # type: textblock
3853 #. type: textblock
3854 #: ../src/guestfs.pod:1724
3855 msgid ""
3856 "The callback can display to the user some type of progress bar or indicator "
3857 "which shows the ratio of C<position>:C<total>."
3858 msgstr ""
3859
3860 # type: textblock
3861 #. type: textblock
3862 #: ../src/guestfs.pod:1729
3863 msgid "0 E<lt>= C<position> E<lt>= C<total>"
3864 msgstr ""
3865
3866 # type: textblock
3867 #. type: textblock
3868 #: ../src/guestfs.pod:1733
3869 msgid ""
3870 "If any progress notification is sent during a call, then a final progress "
3871 "notification is always sent when C<position> = C<total>."
3872 msgstr ""
3873
3874 # type: textblock
3875 #. type: textblock
3876 #: ../src/guestfs.pod:1736
3877 msgid ""
3878 "This is to simplify caller code, so callers can easily set the progress "
3879 "indicator to \"100%\" at the end of the operation, without requiring special "
3880 "code to detect this case."
3881 msgstr ""
3882
3883 # type: textblock
3884 #. type: textblock
3885 #: ../src/guestfs.pod:1742
3886 msgid ""
3887 "The callback also receives the procedure number and serial number of the "
3888 "call.  These are only useful for debugging protocol issues, and the callback "
3889 "can normally ignore them.  The callback may want to print these numbers in "
3890 "error messages or debugging messages."
3891 msgstr ""
3892
3893 # type: =head1
3894 #. type: =head1
3895 #: ../src/guestfs.pod:1747
3896 msgid "PRIVATE DATA AREA"
3897 msgstr ""
3898
3899 # type: textblock
3900 #. type: textblock
3901 #: ../src/guestfs.pod:1749
3902 msgid ""
3903 "You can attach named pieces of private data to the libguestfs handle, and "
3904 "fetch them by name for the lifetime of the handle.  This is called the "
3905 "private data area and is only available from the C API."
3906 msgstr ""
3907
3908 # type: textblock
3909 #. type: textblock
3910 #: ../src/guestfs.pod:1753
3911 msgid "To attach a named piece of data, use the following call:"
3912 msgstr ""
3913
3914 # type: verbatim
3915 #. type: verbatim
3916 #: ../src/guestfs.pod:1755
3917 #, no-wrap
3918 msgid ""
3919 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
3920 "\n"
3921 msgstr ""
3922
3923 # type: textblock
3924 #. type: textblock
3925 #: ../src/guestfs.pod:1757
3926 msgid ""
3927 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
3928 "pointer (which can be C<NULL>).  Any previous item with the same name is "
3929 "overwritten."
3930 msgstr ""
3931
3932 # type: textblock
3933 #. type: textblock
3934 #: ../src/guestfs.pod:1761
3935 msgid ""
3936 "You can use any C<key> you want, but names beginning with an underscore "
3937 "character are reserved for internal libguestfs purposes (for implementing "
3938 "language bindings).  It is recommended to prefix the name with some unique "
3939 "string to avoid collisions with other users."
3940 msgstr ""
3941
3942 # type: textblock
3943 #. type: textblock
3944 #: ../src/guestfs.pod:1766
3945 msgid "To retrieve the pointer, use:"
3946 msgstr ""
3947
3948 # type: verbatim
3949 #. type: verbatim
3950 #: ../src/guestfs.pod:1768
3951 #, no-wrap
3952 msgid ""
3953 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
3954 "\n"
3955 msgstr ""
3956
3957 # type: textblock
3958 #. type: textblock
3959 #: ../src/guestfs.pod:1770
3960 msgid ""
3961 "This function returns C<NULL> if either no data is found associated with "
3962 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
3963 "C<NULL>."
3964 msgstr ""
3965
3966 # type: textblock
3967 #. type: textblock
3968 #: ../src/guestfs.pod:1774
3969 msgid ""
3970 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
3971 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
3972 "all.  In particular, libguestfs does I<not> try to free the data when the "
3973 "handle is closed.  If the data must be freed, then the caller must either "
3974 "free it before calling L</guestfs_close> or must set up a close callback to "
3975 "do it (see L</guestfs_set_close_callback>, and note that only one callback "
3976 "can be registered for a handle)."
3977 msgstr ""
3978
3979 # type: textblock
3980 #. type: textblock
3981 #: ../src/guestfs.pod:1782
3982 msgid ""
3983 "The private data area is implemented using a hash table, and should be "
3984 "reasonably efficient for moderate numbers of keys."
3985 msgstr ""
3986
3987 # type: =end
3988 #. type: =end
3989 #: ../src/guestfs.pod:1785 ../src/guestfs.pod:1790
3990 msgid "html"
3991 msgstr ""
3992
3993 # type: textblock
3994 #. type: textblock
3995 #: ../src/guestfs.pod:1787
3996 msgid ""
3997 "<!-- old anchor for the next section --> <a name="
3998 "\"state_machine_and_low_level_event_api\"/>"
3999 msgstr ""
4000
4001 # type: =head1
4002 #. type: =head1
4003 #: ../src/guestfs.pod:1792
4004 msgid "ARCHITECTURE"
4005 msgstr ""
4006
4007 # type: textblock
4008 #. type: textblock
4009 #: ../src/guestfs.pod:1794
4010 msgid ""
4011 "Internally, libguestfs is implemented by running an appliance (a special "
4012 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
4013 "process of the main program."
4014 msgstr ""
4015
4016 # type: verbatim
4017 #. type: verbatim
4018 #: ../src/guestfs.pod:1798
4019 #, no-wrap
4020 msgid ""
4021 "  ___________________\n"
4022 " /                   \\\n"
4023 " | main program      |\n"
4024 " |                   |\n"
4025 " |                   |           child process / appliance\n"
4026 " |                   |           __________________________\n"
4027 " |                   |          / qemu                     \\\n"
4028 " +-------------------+   RPC    |      +-----------------+ |\n"
4029 " | libguestfs     <--------------------> guestfsd        | |\n"
4030 " |                   |          |      +-----------------+ |\n"
4031 " \\___________________/          |      | Linux kernel    | |\n"
4032 "                                |      +--^--------------+ |\n"
4033 "                                \\_________|________________/\n"
4034 "                                          |\n"
4035 "                                   _______v______\n"
4036 "                                  /              \\\n"
4037 "                                  | Device or    |\n"
4038 "                                  | disk image   |\n"
4039 "                                  \\______________/\n"
4040 "\n"
4041 msgstr ""
4042
4043 # type: textblock
4044 #. type: textblock
4045 #: ../src/guestfs.pod:1818
4046 msgid ""
4047 "The library, linked to the main program, creates the child process and hence "
4048 "the appliance in the L</guestfs_launch> function."
4049 msgstr ""
4050
4051 # type: textblock
4052 #. type: textblock
4053 #: ../src/guestfs.pod:1821
4054 msgid ""
4055 "Inside the appliance is a Linux kernel and a complete stack of userspace "
4056 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
4057 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
4058 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
4059 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
4060 "attached to the qemu process which translates device access by the "
4061 "appliance's Linux kernel into accesses to the image."
4062 msgstr ""
4063
4064 # type: textblock
4065 #. type: textblock
4066 #: ../src/guestfs.pod:1830
4067 msgid ""
4068 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
4069 "Although the disk image you are attached to might also be used by some "
4070 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
4071 "care if both libguestfs's qemu process and your virtual machine are trying "
4072 "to update the disk image at the same time, since these usually results in "
4073 "massive disk corruption)."
4074 msgstr ""
4075
4076 # type: =head1
4077 #. type: =head1
4078 #: ../src/guestfs.pod:1837
4079 msgid "STATE MACHINE"
4080 msgstr ""
4081
4082 # type: textblock
4083 #. type: textblock
4084 #: ../src/guestfs.pod:1839
4085 msgid "libguestfs uses a state machine to model the child process:"
4086 msgstr ""
4087
4088 # type: verbatim
4089 #. type: verbatim
4090 #: ../src/guestfs.pod:1841
4091 #, no-wrap
4092 msgid ""
4093 "                         |\n"
4094 "                    guestfs_create\n"
4095 "                         |\n"
4096 "                         |\n"
4097 "                     ____V_____\n"
4098 "                    /          \\\n"
4099 "                    |  CONFIG  |\n"
4100 "                    \\__________/\n"
4101 "                     ^ ^   ^  \\\n"
4102 "                    /  |    \\  \\ guestfs_launch\n"
4103 "                   /   |    _\\__V______\n"
4104 "                  /    |   /           \\\n"
4105 "                 /     |   | LAUNCHING |\n"
4106 "                /      |   \\___________/\n"
4107 "               /       |       /\n"
4108 "              /        |  guestfs_launch\n"
4109 "             /         |     /\n"
4110 "    ______  /        __|____V\n"
4111 "   /      \\ ------> /        \\\n"
4112 "   | BUSY |         | READY  |\n"
4113 "   \\______/ <------ \\________/\n"
4114 "\n"
4115 msgstr ""
4116
4117 # type: textblock
4118 #. type: textblock
4119 #: ../src/guestfs.pod:1863
4120 msgid ""
4121 "The normal transitions are (1) CONFIG (when the handle is created, but there "
4122 "is no child process), (2) LAUNCHING (when the child process is booting up), "
4123 "(3) alternating between READY and BUSY as commands are issued to, and "
4124 "carried out by, the child process."
4125 msgstr ""
4126
4127 # type: textblock
4128 #. type: textblock
4129 #: ../src/guestfs.pod:1868
4130 msgid ""
4131 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
4132 "asynchronously at any time (eg. due to some internal error), and that causes "
4133 "the state to transition back to CONFIG."
4134 msgstr ""
4135
4136 # type: textblock
4137 #. type: textblock
4138 #: ../src/guestfs.pod:1872
4139 msgid ""
4140 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
4141 "issued when in the CONFIG state."
4142 msgstr ""
4143
4144 # type: textblock
4145 #. type: textblock
4146 #: ../src/guestfs.pod:1875
4147 msgid ""
4148 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
4149 "L</guestfs_launch> blocks until the child process is READY to accept "
4150 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
4151 "moves the state from CONFIG to LAUNCHING while it is running."
4152 msgstr ""
4153
4154 # type: textblock
4155 #. type: textblock
4156 #: ../src/guestfs.pod:1881
4157 msgid ""
4158 "API actions such as L</guestfs_mount> can only be issued when in the READY "
4159 "state.  These API calls block waiting for the command to be carried out (ie. "
4160 "the state to transition to BUSY and then back to READY).  There are no non-"
4161 "blocking versions, and no way to issue more than one command per handle at "
4162 "the same time."
4163 msgstr ""
4164
4165 # type: textblock
4166 #. type: textblock
4167 #: ../src/guestfs.pod:1887
4168 msgid ""
4169 "Finally, the child process sends asynchronous messages back to the main "
4170 "program, such as kernel log messages.  You can register a callback to "
4171 "receive these messages."
4172 msgstr ""
4173
4174 # type: =head1
4175 #. type: =head1
4176 #: ../src/guestfs.pod:1891
4177 msgid "INTERNALS"
4178 msgstr ""
4179
4180 # type: =head2
4181 #. type: =head2
4182 #: ../src/guestfs.pod:1893
4183 msgid "COMMUNICATION PROTOCOL"
4184 msgstr ""
4185
4186 # type: textblock
4187 #. type: textblock
4188 #: ../src/guestfs.pod:1895
4189 msgid ""
4190 "Don't rely on using this protocol directly.  This section documents how it "
4191 "currently works, but it may change at any time."
4192 msgstr ""
4193
4194 # type: textblock
4195 #. type: textblock
4196 #: ../src/guestfs.pod:1898
4197 msgid ""
4198 "The protocol used to talk between the library and the daemon running inside "
4199 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
4200 "1014, RFC 1832, RFC 4506)."
4201 msgstr ""
4202
4203 # type: textblock
4204 #. type: textblock
4205 #: ../src/guestfs.pod:1902
4206 msgid ""
4207 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
4208 "this file is automatically generated)."
4209 msgstr ""
4210
4211 # type: textblock
4212 #. type: textblock
4213 #: ../src/guestfs.pod:1905
4214 msgid ""
4215 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
4216 "and C<FileOut> parameters, which are handled with very simple request/reply "
4217 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
4218 "parameters, which use the same request and reply messages, but they may also "
4219 "be followed by files sent using a chunked encoding."
4220 msgstr ""
4221
4222 # type: =head3
4223 #. type: =head3
4224 #: ../src/guestfs.pod:1912
4225 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
4226 msgstr ""
4227
4228 # type: textblock
4229 #. type: textblock
4230 #: ../src/guestfs.pod:1914
4231 msgid "For ordinary functions, the request message is:"
4232 msgstr ""
4233
4234 # type: verbatim
4235 #. type: verbatim
4236 #: ../src/guestfs.pod:1916
4237 #, no-wrap
4238 msgid ""
4239 " total length (header + arguments,\n"
4240 "      but not including the length word itself)\n"
4241 " struct guestfs_message_header (encoded as XDR)\n"
4242 " struct guestfs_<foo>_args (encoded as XDR)\n"
4243 "\n"
4244 msgstr ""
4245
4246 # type: textblock
4247 #. type: textblock
4248 #: ../src/guestfs.pod:1921
4249 msgid ""
4250 "The total length field allows the daemon to allocate a fixed size buffer "
4251 "into which it slurps the rest of the message.  As a result, the total length "
4252 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
4253 "effective size of any request is limited to somewhere under this size."
4254 msgstr ""
4255
4256 # type: textblock
4257 #. type: textblock
4258 #: ../src/guestfs.pod:1927
4259 msgid ""
4260 "Note also that many functions don't take any arguments, in which case the "
4261 "C<guestfs_I<foo>_args> is completely omitted."
4262 msgstr ""
4263
4264 # type: textblock
4265 #. type: textblock
4266 #: ../src/guestfs.pod:1930
4267 msgid ""
4268 "The header contains the procedure number (C<guestfs_proc>) which is how the "
4269 "receiver knows what type of args structure to expect, or none at all."
4270 msgstr ""
4271
4272 # type: textblock
4273 #. type: textblock
4274 #: ../src/guestfs.pod:1934
4275 msgid ""
4276 "For functions that take optional arguments, the optional arguments are "
4277 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
4278 "arguments.  A bitmask in the header indicates which optional arguments are "
4279 "meaningful.  The bitmask is also checked to see if it contains bits set "
4280 "which the daemon does not know about (eg. if more optional arguments were "
4281 "added in a later version of the library), and this causes the call to be "
4282 "rejected."
4283 msgstr ""
4284
4285 # type: textblock
4286 #. type: textblock
4287 #: ../src/guestfs.pod:1942
4288 msgid "The reply message for ordinary functions is:"
4289 msgstr ""
4290
4291 # type: verbatim
4292 #. type: verbatim
4293 #: ../src/guestfs.pod:1944
4294 #, no-wrap
4295 msgid ""
4296 " total length (header + ret,\n"
4297 "      but not including the length word itself)\n"
4298 " struct guestfs_message_header (encoded as XDR)\n"
4299 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4300 "\n"
4301 msgstr ""
4302
4303 # type: textblock
4304 #. type: textblock
4305 #: ../src/guestfs.pod:1949
4306 msgid ""
4307 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
4308 "functions that return no formal return values."
4309 msgstr ""
4310
4311 # type: textblock
4312 #. type: textblock
4313 #: ../src/guestfs.pod:1952
4314 msgid ""
4315 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
4316 msgstr ""
4317
4318 # type: textblock
4319 #. type: textblock
4320 #: ../src/guestfs.pod:1955
4321 msgid ""
4322 "In the case of an error, a flag is set in the header, and the reply message "
4323 "is slightly changed:"
4324 msgstr ""
4325
4326 # type: verbatim
4327 #. type: verbatim
4328 #: ../src/guestfs.pod:1958
4329 #, no-wrap
4330 msgid ""
4331 " total length (header + error,\n"
4332 "      but not including the length word itself)\n"
4333 " struct guestfs_message_header (encoded as XDR)\n"
4334 " struct guestfs_message_error (encoded as XDR)\n"
4335 "\n"
4336 msgstr ""
4337
4338 # type: textblock
4339 #. type: textblock
4340 #: ../src/guestfs.pod:1963
4341 msgid ""
4342 "The C<guestfs_message_error> structure contains the error message as a "
4343 "string."
4344 msgstr ""
4345
4346 # type: =head3
4347 #. type: =head3
4348 #: ../src/guestfs.pod:1966
4349 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
4350 msgstr ""
4351
4352 # type: textblock
4353 #. type: textblock
4354 #: ../src/guestfs.pod:1968
4355 msgid ""
4356 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
4357 "The normal request message is sent (see above).  However this is followed by "
4358 "a sequence of file chunks."
4359 msgstr ""
4360
4361 # type: verbatim
4362 #. type: verbatim
4363 #: ../src/guestfs.pod:1972
4364 #, no-wrap
4365 msgid ""
4366 " total length (header + arguments,\n"
4367 "      but not including the length word itself,\n"
4368 "      and not including the chunks)\n"
4369 " struct guestfs_message_header (encoded as XDR)\n"
4370 " struct guestfs_<foo>_args (encoded as XDR)\n"
4371 " sequence of chunks for FileIn param #0\n"
4372 " sequence of chunks for FileIn param #1 etc.\n"
4373 "\n"
4374 msgstr ""
4375
4376 # type: textblock
4377 #. type: textblock
4378 #: ../src/guestfs.pod:1980
4379 msgid "The \"sequence of chunks\" is:"
4380 msgstr ""
4381
4382 # type: verbatim
4383 #. type: verbatim
4384 #: ../src/guestfs.pod:1982
4385 #, no-wrap
4386 msgid ""
4387 " length of chunk (not including length word itself)\n"
4388 " struct guestfs_chunk (encoded as XDR)\n"
4389 " length of chunk\n"
4390 " struct guestfs_chunk (encoded as XDR)\n"
4391 "   ...\n"
4392 " length of chunk\n"
4393 " struct guestfs_chunk (with data.data_len == 0)\n"
4394 "\n"
4395 msgstr ""
4396
4397 # type: textblock
4398 #. type: textblock
4399 #: ../src/guestfs.pod:1990
4400 msgid ""
4401 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
4402 "is set in the final chunk to indicate either successful completion or early "
4403 "cancellation."
4404 msgstr ""
4405
4406 # type: textblock
4407 #. type: textblock
4408 #: ../src/guestfs.pod:1994
4409 msgid ""
4410 "At time of writing there are no functions that have more than one FileIn "
4411 "parameter.  However this is (theoretically) supported, by sending the "
4412 "sequence of chunks for each FileIn parameter one after another (from left to "
4413 "right)."
4414 msgstr ""
4415
4416 # type: textblock
4417 #. type: textblock
4418 #: ../src/guestfs.pod:1999
4419 msgid ""
4420 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
4421 "transfer.  The library does this by sending a chunk with a special flag set "
4422 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
4423 "RPC, does I<not> send any reply, and goes back to reading the next request."
4424 msgstr ""
4425
4426 # type: textblock
4427 #. type: textblock
4428 #: ../src/guestfs.pod:2005
4429 msgid ""
4430 "The daemon may also cancel.  It does this by writing a special word "
4431 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
4432 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
4433 "cancel chunk).  The special word is chosen so that even if cancellation "
4434 "happens right at the end of the transfer (after the library has finished "
4435 "writing and has started listening for the reply), the \"spurious\" cancel "
4436 "flag will not be confused with the reply message."
4437 msgstr ""
4438
4439 # type: textblock
4440 #. type: textblock
4441 #: ../src/guestfs.pod:2014
4442 msgid ""
4443 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
4444 "limit), and also files where the size is not known in advance (eg. from "
4445 "pipes or sockets).  However the chunks are rather small "
4446 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
4447 "to keep much in memory."
4448 msgstr ""
4449
4450 # type: =head3
4451 #. type: =head3
4452 #: ../src/guestfs.pod:2020
4453 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
4454 msgstr ""
4455
4456 # type: textblock
4457 #. type: textblock
4458 #: ../src/guestfs.pod:2022
4459 msgid ""
4460 "The protocol for FileOut parameters is exactly the same as for FileIn "
4461 "parameters, but with the roles of daemon and library reversed."
4462 msgstr ""
4463
4464 # type: verbatim
4465 #. type: verbatim
4466 #: ../src/guestfs.pod:2025
4467 #, no-wrap
4468 msgid ""
4469 " total length (header + ret,\n"
4470 "      but not including the length word itself,\n"
4471 "      and not including the chunks)\n"
4472 " struct guestfs_message_header (encoded as XDR)\n"
4473 " struct guestfs_<foo>_ret (encoded as XDR)\n"
4474 " sequence of chunks for FileOut param #0\n"
4475 " sequence of chunks for FileOut param #1 etc.\n"
4476 "\n"
4477 msgstr ""
4478
4479 # type: =head3
4480 #. type: =head3
4481 #: ../src/guestfs.pod:2033
4482 msgid "INITIAL MESSAGE"
4483 msgstr ""
4484
4485 # type: textblock
4486 #. type: textblock
4487 #: ../src/guestfs.pod:2035
4488 msgid ""
4489 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
4490 "which indicates that the guest and daemon is alive.  This is what L</"
4491 "guestfs_launch> waits for."
4492 msgstr ""
4493
4494 # type: =head3
4495 #. type: =head3
4496 #: ../src/guestfs.pod:2039
4497 msgid "PROGRESS NOTIFICATION MESSAGES"
4498 msgstr ""
4499
4500 # type: textblock
4501 #. type: textblock
4502 #: ../src/guestfs.pod:2041
4503 msgid ""
4504 "The daemon may send progress notification messages at any time.  These are "
4505 "distinguished by the normal length word being replaced by "
4506 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
4507 msgstr ""
4508
4509 # type: textblock
4510 #. type: textblock
4511 #: ../src/guestfs.pod:2045
4512 msgid ""
4513 "The library turns them into progress callbacks (see "
4514 "C<guestfs_set_progress_callback>) if there is a callback registered, or "
4515 "discards them if not."
4516 msgstr ""
4517
4518 # type: textblock
4519 #. type: textblock
4520 #: ../src/guestfs.pod:2049
4521 msgid ""
4522 "The daemon self-limits the frequency of progress messages it sends (see "
4523 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
4524 "messages."
4525 msgstr ""
4526
4527 # type: =head1
4528 #. type: =head1
4529 #: ../src/guestfs.pod:2053
4530 msgid "LIBGUESTFS VERSION NUMBERS"
4531 msgstr ""
4532
4533 # type: textblock
4534 #. type: textblock
4535 #: ../src/guestfs.pod:2055
4536 msgid ""
4537 "Since April 2010, libguestfs has started to make separate development and "
4538 "stable releases, along with corresponding branches in our git repository.  "
4539 "These separate releases can be identified by version number:"
4540 msgstr ""
4541
4542 # type: verbatim
4543 #. type: verbatim
4544 #: ../src/guestfs.pod:2060
4545 #, no-wrap
4546 msgid ""
4547 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
4548 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
4549 "       |\n"
4550 "       v\n"
4551 " 1  .  3  .  5\n"
4552 " ^           ^\n"
4553 " |           |\n"
4554 " |           `-------- sub-version\n"
4555 " |\n"
4556 " `------ always '1' because we don't change the ABI\n"
4557 "\n"
4558 msgstr ""
4559
4560 # type: textblock
4561 #. type: textblock
4562 #: ../src/guestfs.pod:2071
4563 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
4564 msgstr ""
4565
4566 # type: textblock
4567 #. type: textblock
4568 #: ../src/guestfs.pod:2073
4569 msgid ""
4570 "As time passes we cherry pick fixes from the development branch and backport "
4571 "those into the stable branch, the effect being that the stable branch should "
4572 "get more stable and less buggy over time.  So the stable releases are ideal "
4573 "for people who don't need new features but would just like the software to "
4574 "work."
4575 msgstr ""
4576
4577 # type: textblock
4578 #. type: textblock
4579 #: ../src/guestfs.pod:2079
4580 msgid "Our criteria for backporting changes are:"
4581 msgstr ""
4582
4583 # type: textblock
4584 #. type: textblock
4585 #: ../src/guestfs.pod:2085
4586 msgid ""
4587 "Documentation changes which don't affect any code are backported unless the "
4588 "documentation refers to a future feature which is not in stable."
4589 msgstr ""
4590
4591 # type: textblock
4592 #. type: textblock
4593 #: ../src/guestfs.pod:2091
4594 msgid ""
4595 "Bug fixes which are not controversial, fix obvious problems, and have been "
4596 "well tested are backported."
4597 msgstr ""
4598
4599 # type: textblock
4600 #. type: textblock
4601 #: ../src/guestfs.pod:2096
4602 msgid ""
4603 "Simple rearrangements of code which shouldn't affect how it works get "
4604 "backported.  This is so that the code in the two branches doesn't get too "
4605 "far out of step, allowing us to backport future fixes more easily."
4606 msgstr ""
4607
4608 # type: textblock
4609 #. type: textblock
4610 #: ../src/guestfs.pod:2102
4611 msgid ""
4612 "We I<don't> backport new features, new APIs, new tools etc, except in one "
4613 "exceptional case: the new feature is required in order to implement an "
4614 "important bug fix."
4615 msgstr ""
4616
4617 # type: textblock
4618 #. type: textblock
4619 #: ../src/guestfs.pod:2108
4620 msgid ""
4621 "A new stable branch starts when we think the new features in development are "
4622 "substantial and compelling enough over the current stable branch to warrant "
4623 "it.  When that happens we create new stable and development versions 1.N.0 "
4624 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
4625 "stable at this point, but by backporting fixes from development, that branch "
4626 "will stabilize over time."
4627 msgstr ""
4628
4629 #. type: =head1
4630 #: ../src/guestfs.pod:2116
4631 msgid "EXTENDING LIBGUESTFS"
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../src/guestfs.pod:2118
4636 msgid "ADDING A NEW API ACTION"
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../src/guestfs.pod:2120
4641 msgid ""
4642 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
4643 "documentation) are generated, and this makes it easy to extend the "
4644 "libguestfs API."
4645 msgstr ""
4646
4647 #. type: textblock
4648 #: ../src/guestfs.pod:2124
4649 msgid "To add a new API action there are two changes:"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../src/guestfs.pod:2130
4654 msgid ""
4655 "You need to add a description of the call (name, parameters, return type, "
4656 "tests, documentation) to C<generator/generator_actions.ml>."
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../src/guestfs.pod:2133
4661 msgid ""
4662 "There are two sorts of API action, depending on whether the call goes "
4663 "through to the daemon in the appliance, or is serviced entirely by the "
4664 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
4665 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
4666 "an example of the latter, since a trace flag is maintained in the handle and "
4667 "all tracing is done on the library side."
4668 msgstr ""
4669
4670 #. type: textblock
4671 #: ../src/guestfs.pod:2141
4672 msgid ""
4673 "Most new actions are of the first type, and get added to the "
4674 "C<daemon_functions> list.  Each function has a unique procedure number used "
4675 "in the RPC protocol which is assigned to that action when we publish "
4676 "libguestfs and cannot be reused.  Take the latest procedure number and "
4677 "increment it."
4678 msgstr ""
4679
4680 #. type: textblock
4681 #: ../src/guestfs.pod:2147
4682 msgid ""
4683 "For library-only actions of the second type, add to the "
4684 "C<non_daemon_functions> list.  Since these functions are serviced by the "
4685 "library and do not travel over the RPC mechanism to the daemon, these "
4686 "functions do not need a procedure number, and so the procedure number is set "
4687 "to C<-1>."
4688 msgstr ""
4689
4690 #. type: textblock
4691 #: ../src/guestfs.pod:2155
4692 msgid "Implement the action (in C):"
4693 msgstr ""
4694
4695 #. type: textblock
4696 #: ../src/guestfs.pod:2157
4697 msgid ""
4698 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
4699 "C<daemon/> directory."
4700 msgstr ""
4701
4702 #. type: textblock
4703 #: ../src/guestfs.pod:2160
4704 msgid ""
4705 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
4706 "(note: double underscore) in the C<src/> directory."
4707 msgstr ""
4708
4709 #. type: textblock
4710 #: ../src/guestfs.pod:2163
4711 msgid "In either case, use another function as an example of what to do."
4712 msgstr ""
4713
4714 #. type: textblock
4715 #: ../src/guestfs.pod:2167
4716 msgid "After making these changes, use C<make> to compile."
4717 msgstr ""
4718
4719 #. type: textblock
4720 #: ../src/guestfs.pod:2169
4721 msgid ""
4722 "Note that you don't need to implement the RPC, language bindings, manual "
4723 "pages or anything else.  It's all automatically generated from the OCaml "
4724 "description."
4725 msgstr ""
4726
4727 #. type: =head2
4728 #: ../src/guestfs.pod:2173
4729 msgid "ADDING TESTS FOR AN API ACTION"
4730 msgstr ""
4731
4732 #. type: textblock
4733 #: ../src/guestfs.pod:2175
4734 msgid ""
4735 "You can supply zero or as many tests as you want per API call.  The tests "
4736 "can either be added as part of the API description (C<generator/"
4737 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
4738 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
4739 "slower, so if possible use the first method."
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../src/guestfs.pod:2181
4744 msgid ""
4745 "The following describes the test environment used when you add an API test "
4746 "in C<generator_actions.ml>."
4747 msgstr ""
4748
4749 #. type: textblock
4750 #: ../src/guestfs.pod:2184
4751 msgid "The test environment has 4 block devices:"
4752 msgstr ""
4753
4754 #. type: =item
4755 #: ../src/guestfs.pod:2188
4756 msgid "C</dev/sda> 500MB"
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../src/guestfs.pod:2190
4761 msgid "General block device for testing."
4762 msgstr ""
4763
4764 #. type: =item
4765 #: ../src/guestfs.pod:2192
4766 msgid "C</dev/sdb> 50MB"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../src/guestfs.pod:2194
4771 msgid ""
4772 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
4773 "operations."
4774 msgstr ""
4775
4776 #. type: =item
4777 #: ../src/guestfs.pod:2197
4778 msgid "C</dev/sdc> 10MB"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../src/guestfs.pod:2199
4783 msgid "Used in a few tests where two block devices are needed."
4784 msgstr ""
4785
4786 #. type: =item
4787 #: ../src/guestfs.pod:2201
4788 msgid "C</dev/sdd>"
4789 msgstr ""
4790
4791 #. type: textblock
4792 #: ../src/guestfs.pod:2203
4793 msgid "ISO with fixed content (see C<images/test.iso>)."
4794 msgstr ""
4795
4796 #. type: textblock
4797 #: ../src/guestfs.pod:2207
4798 msgid ""
4799 "To be able to run the tests in a reasonable amount of time, the libguestfs "
4800 "appliance and block devices are reused between tests.  So don't try testing "
4801 "L</guestfs_kill_subprocess> :-x"
4802 msgstr ""
4803
4804 #. type: textblock
4805 #: ../src/guestfs.pod:2211
4806 msgid ""
4807 "Each test starts with an initial scenario, selected using one of the "
4808 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
4809 "initialize the disks mentioned above in a particular way as documented in "
4810 "C<generator_types.ml>.  You should not assume anything about the previous "
4811 "contents of other disks that are not initialized."
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../src/guestfs.pod:2217
4816 msgid ""
4817 "You can add a prerequisite clause to any individual test.  This is a run-"
4818 "time check, which, if it fails, causes the test to be skipped.  Useful if "
4819 "testing a command which might not work on all variations of libguestfs "
4820 "builds.  A test that has prerequisite of C<Always> means to run "
4821 "unconditionally."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../src/guestfs.pod:2223
4826 msgid ""
4827 "In addition, packagers can skip individual tests by setting environment "
4828 "variables before running C<make check>."
4829 msgstr ""
4830
4831 #. type: verbatim
4832 #: ../src/guestfs.pod:2226
4833 #, no-wrap
4834 msgid ""
4835 " SKIP_TEST_<CMD>_<NUM>=1\n"
4836 "\n"
4837 msgstr ""
4838
4839 #. type: textblock
4840 #: ../src/guestfs.pod:2228
4841 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
4842 msgstr ""
4843
4844 #. type: textblock
4845 #: ../src/guestfs.pod:2230
4846 msgid "or:"
4847 msgstr ""
4848
4849 #. type: verbatim
4850 #: ../src/guestfs.pod:2232
4851 #, no-wrap
4852 msgid ""
4853 " SKIP_TEST_<CMD>=1\n"
4854 "\n"
4855 msgstr ""
4856
4857 #. type: textblock
4858 #: ../src/guestfs.pod:2234
4859 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../src/guestfs.pod:2236
4864 msgid "Packagers can run only certain tests by setting for example:"
4865 msgstr ""
4866
4867 #. type: verbatim
4868 #: ../src/guestfs.pod:2238
4869 #, no-wrap
4870 msgid ""
4871 " TEST_ONLY=\"vfs_type zerofree\"\n"
4872 "\n"
4873 msgstr ""
4874
4875 #. type: textblock
4876 #: ../src/guestfs.pod:2240
4877 msgid ""
4878 "See C<capitests/tests.c> for more details of how these environment variables "
4879 "work."
4880 msgstr ""
4881
4882 #. type: =head2
4883 #: ../src/guestfs.pod:2243
4884 msgid "DEBUGGING NEW API ACTIONS"
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../src/guestfs.pod:2245
4889 msgid "Test new actions work before submitting them."
4890 msgstr ""
4891
4892 #. type: textblock
4893 #: ../src/guestfs.pod:2247
4894 msgid "You can use guestfish to try out new commands."
4895 msgstr ""
4896
4897 #. type: textblock
4898 #: ../src/guestfs.pod:2249
4899 msgid ""
4900 "Debugging the daemon is a problem because it runs inside a minimal "
4901 "environment.  However you can fprintf messages in the daemon to stderr, and "
4902 "they will show up if you use C<guestfish -v>."
4903 msgstr ""
4904
4905 #. type: =head2
4906 #: ../src/guestfs.pod:2253
4907 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
4908 msgstr ""
4909
4910 #. type: textblock
4911 #: ../src/guestfs.pod:2255
4912 msgid ""
4913 "Our C source code generally adheres to some basic code-formatting "
4914 "conventions.  The existing code base is not totally consistent on this "
4915 "front, but we do prefer that contributed code be formatted similarly.  In "
4916 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
4917 "indentation level, and other than that, follow the K&R style."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../src/guestfs.pod:2261
4922 msgid ""
4923 "If you use Emacs, add the following to one of one of your start-up files (e."
4924 "g., ~/.emacs), to help ensure that you get indentation right:"
4925 msgstr ""
4926
4927 #. type: verbatim
4928 #: ../src/guestfs.pod:2264
4929 #, no-wrap
4930 msgid ""
4931 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
4932 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
4933 " (add-hook 'find-file-hook\n"
4934 "     '(lambda () (if (and buffer-file-name\n"
4935 "                          (string-match \"/libguestfs\\\\>\"\n"
4936 "                              (buffer-file-name))\n"
4937 "                          (not (string-equal mode-name \"Change Log\"))\n"
4938 "                          (not (string-equal mode-name \"Makefile\")))\n"
4939 "                     (setq indent-tabs-mode nil))))\n"
4940 " \n"
4941 msgstr ""
4942
4943 #. type: verbatim
4944 #: ../src/guestfs.pod:2274
4945 #, no-wrap
4946 msgid ""
4947 " ;;; When editing C sources in libguestfs, use this style.\n"
4948 " (defun libguestfs-c-mode ()\n"
4949 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
4950 "   (interactive)\n"
4951 "   (c-set-style \"K&R\")\n"
4952 "   (setq c-indent-level 2)\n"
4953 "   (setq c-basic-offset 2))\n"
4954 " (add-hook 'c-mode-hook\n"
4955 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
4956 "                               (buffer-file-name))\n"
4957 "                           (libguestfs-c-mode))))\n"
4958 "\n"
4959 msgstr ""
4960
4961 #. type: textblock
4962 #: ../src/guestfs.pod:2286
4963 msgid "Enable warnings when compiling (and fix any problems this finds):"
4964 msgstr ""
4965
4966 #. type: verbatim
4967 #: ../src/guestfs.pod:2289
4968 #, no-wrap
4969 msgid ""
4970 " ./configure --enable-gcc-warnings\n"
4971 "\n"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../src/guestfs.pod:2291
4976 msgid "Useful targets are:"
4977 msgstr ""
4978
4979 #. type: verbatim
4980 #: ../src/guestfs.pod:2293
4981 #, no-wrap
4982 msgid ""
4983 " make syntax-check  # checks the syntax of the C code\n"
4984 " make check         # runs the test suite\n"
4985 "\n"
4986 msgstr ""
4987
4988 #. type: =head2
4989 #: ../src/guestfs.pod:2296
4990 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../src/guestfs.pod:2298
4995 msgid ""
4996 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
4997 "which are used to do shell quoting."
4998 msgstr ""
4999
5000 #. type: =item
5001 #: ../src/guestfs.pod:2303
5002 msgid "%Q"
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../src/guestfs.pod:2305
5007 msgid ""
5008 "Simple shell quoted string.  Any spaces or other shell characters are "
5009 "escaped for you."
5010 msgstr ""
5011
5012 #. type: =item
5013 #: ../src/guestfs.pod:2308
5014 msgid "%R"
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../src/guestfs.pod:2310
5019 msgid ""
5020 "Same as C<%Q> except the string is treated as a path which is prefixed by "
5021 "the sysroot."
5022 msgstr ""
5023
5024 # type: textblock
5025 #. type: textblock
5026 #: ../src/guestfs.pod:2315 ../fish/guestfish.pod:240 ../fish/guestfish.pod:594
5027 msgid "For example:"
5028 msgstr ""
5029
5030 #. type: verbatim
5031 #: ../src/guestfs.pod:2317
5032 #, no-wrap
5033 msgid ""
5034 " asprintf (&cmd, \"cat %R\", path);\n"
5035 "\n"
5036 msgstr ""
5037
5038 #. type: textblock
5039 #: ../src/guestfs.pod:2319
5040 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
5041 msgstr ""
5042
5043 #. type: textblock
5044 #: ../src/guestfs.pod:2321
5045 msgid ""
5046 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
5047 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
5048 "they are not passed via the shell (instead, straight to exec).  You probably "
5049 "want to use the C<sysroot_path()> function however."
5050 msgstr ""
5051
5052 #. type: =head2
5053 #: ../src/guestfs.pod:2327
5054 msgid "SUBMITTING YOUR NEW API ACTIONS"
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../src/guestfs.pod:2329
5059 msgid ""
5060 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
5061 "libguestfs> and CC to L<rjones@redhat.com>."
5062 msgstr ""
5063
5064 #. type: =head2
5065 #: ../src/guestfs.pod:2333
5066 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
5067 msgstr ""
5068
5069 #. type: textblock
5070 #: ../src/guestfs.pod:2335
5071 msgid "We support i18n (gettext anyhow) in the library."
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../src/guestfs.pod:2337
5076 msgid ""
5077 "However many messages come from the daemon, and we don't translate those at "
5078 "the moment.  One reason is that the appliance generally has all locale files "
5079 "removed from it, because they take up a lot of space.  So we'd have to readd "
5080 "some of those, as well as copying our PO files into the appliance."
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../src/guestfs.pod:2343
5085 msgid ""
5086 "Debugging messages are never translated, since they are intended for the "
5087 "programmers."
5088 msgstr ""
5089
5090 #. type: =head2
5091 #: ../src/guestfs.pod:2346
5092 msgid "SOURCE CODE SUBDIRECTORIES"
5093 msgstr ""
5094
5095 #. type: =item
5096 #: ../src/guestfs.pod:2350
5097 msgid "C<appliance>"
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../src/guestfs.pod:2352
5102 msgid "The libguestfs appliance, build scripts and so on."
5103 msgstr ""
5104
5105 #. type: =item
5106 #: ../src/guestfs.pod:2354
5107 msgid "C<capitests>"
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../src/guestfs.pod:2356
5112 msgid "Automated tests of the C API."
5113 msgstr ""
5114
5115 #. type: =item
5116 #: ../src/guestfs.pod:2358
5117 msgid "C<cat>"
5118 msgstr ""
5119
5120 #. type: textblock
5121 #: ../src/guestfs.pod:2360
5122 msgid ""
5123 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
5124 "documentation."
5125 msgstr ""
5126
5127 #. type: =item
5128 #: ../src/guestfs.pod:2363
5129 msgid "C<contrib>"
5130 msgstr ""
5131
5132 #. type: textblock
5133 #: ../src/guestfs.pod:2365
5134 msgid "Outside contributions, experimental parts."
5135 msgstr ""
5136
5137 #. type: =item
5138 #: ../src/guestfs.pod:2367
5139 msgid "C<daemon>"
5140 msgstr ""
5141
5142 #. type: textblock
5143 #: ../src/guestfs.pod:2369
5144 msgid ""
5145 "The daemon that runs inside the libguestfs appliance and carries out actions."
5146 msgstr ""
5147
5148 #. type: =item
5149 #: ../src/guestfs.pod:2372
5150 msgid "C<df>"
5151 msgstr ""
5152
5153 #. type: textblock
5154 #: ../src/guestfs.pod:2374
5155 msgid "L<virt-df(1)> command and documentation."
5156 msgstr ""
5157
5158 #. type: =item
5159 #: ../src/guestfs.pod:2376
5160 msgid "C<examples>"
5161 msgstr ""
5162
5163 #. type: textblock
5164 #: ../src/guestfs.pod:2378
5165 msgid "C API example code."
5166 msgstr ""
5167
5168 #. type: =item
5169 #: ../src/guestfs.pod:2380
5170 msgid "C<fish>"
5171 msgstr ""
5172
5173 #. type: textblock
5174 #: ../src/guestfs.pod:2382
5175 msgid ""
5176 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
5177 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
5178 "L<virt-tar-out(1)>."
5179 msgstr ""
5180
5181 #. type: =item
5182 #: ../src/guestfs.pod:2386
5183 msgid "C<fuse>"
5184 msgstr ""
5185
5186 #. type: textblock
5187 #: ../src/guestfs.pod:2388
5188 msgid ""
5189 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
5190 msgstr ""
5191
5192 #. type: =item
5193 #: ../src/guestfs.pod:2390
5194 msgid "C<generator>"
5195 msgstr ""
5196
5197 #. type: textblock
5198 #: ../src/guestfs.pod:2392
5199 msgid ""
5200 "The crucially important generator, used to automatically generate large "
5201 "amounts of boilerplate C code for things like RPC and bindings."
5202 msgstr ""
5203
5204 #. type: =item
5205 #: ../src/guestfs.pod:2395
5206 msgid "C<images>"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../src/guestfs.pod:2397
5211 msgid "Files used by the test suite."
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../src/guestfs.pod:2399
5216 msgid "Some \"phony\" guest images which we test against."
5217 msgstr ""
5218
5219 #. type: =item
5220 #: ../src/guestfs.pod:2401
5221 msgid "C<inspector>"
5222 msgstr ""
5223
5224 #. type: textblock
5225 #: ../src/guestfs.pod:2403
5226 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
5227 msgstr ""
5228
5229 #. type: =item
5230 #: ../src/guestfs.pod:2405
5231 msgid "C<logo>"
5232 msgstr ""
5233
5234 #. type: textblock
5235 #: ../src/guestfs.pod:2407
5236 msgid "Logo used on the website.  The fish is called Arthur by the way."
5237 msgstr ""
5238
5239 #. type: =item
5240 #: ../src/guestfs.pod:2409
5241 msgid "C<m4>"
5242 msgstr ""
5243
5244 #. type: textblock
5245 #: ../src/guestfs.pod:2411
5246 msgid "M4 macros used by autoconf."
5247 msgstr ""
5248
5249 #. type: =item
5250 #: ../src/guestfs.pod:2413
5251 msgid "C<po>"
5252 msgstr ""
5253
5254 #. type: textblock
5255 #: ../src/guestfs.pod:2415
5256 msgid "Translations of simple gettext strings."
5257 msgstr ""
5258
5259 #. type: =item
5260 #: ../src/guestfs.pod:2417
5261 msgid "C<po-docs>"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../src/guestfs.pod:2419
5266 msgid ""
5267 "The build infrastructure and PO files for translations of manpages and POD "
5268 "files.  Eventually this will be combined with the C<po> directory, but that "
5269 "is rather complicated."
5270 msgstr ""
5271
5272 #. type: =item
5273 #: ../src/guestfs.pod:2423
5274 msgid "C<regressions>"
5275 msgstr ""
5276
5277 #. type: textblock
5278 #: ../src/guestfs.pod:2425
5279 msgid "Regression tests."
5280 msgstr ""
5281
5282 #. type: =item
5283 #: ../src/guestfs.pod:2427
5284 msgid "C<rescue>"
5285 msgstr ""
5286
5287 #. type: textblock
5288 #: ../src/guestfs.pod:2429
5289 msgid "L<virt-rescue(1)> command and documentation."
5290 msgstr ""
5291
5292 #. type: =item
5293 #: ../src/guestfs.pod:2431
5294 msgid "C<src>"
5295 msgstr ""
5296
5297 #. type: textblock
5298 #: ../src/guestfs.pod:2433
5299 msgid "Source code to the C library."
5300 msgstr ""
5301
5302 #. type: =item
5303 #: ../src/guestfs.pod:2435
5304 msgid "C<tools>"
5305 msgstr ""
5306
5307 #. type: textblock
5308 #: ../src/guestfs.pod:2437
5309 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
5310 msgstr ""
5311
5312 #. type: =item
5313 #: ../src/guestfs.pod:2439
5314 msgid "C<test-tool>"
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../src/guestfs.pod:2441
5319 msgid ""
5320 "Test tool for end users to test if their qemu/kernel combination will work "
5321 "with libguestfs."
5322 msgstr ""
5323
5324 #. type: =item
5325 #: ../src/guestfs.pod:2444
5326 msgid "C<csharp>"
5327 msgstr ""
5328
5329 #. type: =item
5330 #: ../src/guestfs.pod:2446
5331 msgid "C<haskell>"
5332 msgstr ""
5333
5334 #. type: =item
5335 #: ../src/guestfs.pod:2448
5336 msgid "C<java>"
5337 msgstr ""
5338
5339 #. type: =item
5340 #: ../src/guestfs.pod:2450
5341 msgid "C<ocaml>"
5342 msgstr ""
5343
5344 #. type: =item
5345 #: ../src/guestfs.pod:2452
5346 msgid "C<php>"
5347 msgstr ""
5348
5349 #. type: =item
5350 #: ../src/guestfs.pod:2454
5351 msgid "C<perl>"
5352 msgstr ""
5353
5354 #. type: =item
5355 #: ../src/guestfs.pod:2456
5356 msgid "C<python>"
5357 msgstr ""
5358
5359 #. type: =item
5360 #: ../src/guestfs.pod:2458
5361 msgid "C<ruby>"
5362 msgstr ""
5363
5364 #. type: textblock
5365 #: ../src/guestfs.pod:2460
5366 msgid "Language bindings."
5367 msgstr ""
5368
5369 # type: =head1
5370 #. type: =head1
5371 #: ../src/guestfs.pod:2464 ../fish/guestfish.pod:991
5372 #: ../test-tool/libguestfs-test-tool.pod:104 ../tools/virt-edit.pl:330
5373 msgid "ENVIRONMENT VARIABLES"
5374 msgstr ""
5375
5376 # type: =item
5377 #. type: =item
5378 #: ../src/guestfs.pod:2468 ../fish/guestfish.pod:1017
5379 msgid "LIBGUESTFS_APPEND"
5380 msgstr ""
5381
5382 # type: textblock
5383 #. type: textblock
5384 #: ../src/guestfs.pod:2470 ../fish/guestfish.pod:1019
5385 msgid "Pass additional options to the guest kernel."
5386 msgstr ""
5387
5388 # type: =item
5389 #. type: =item
5390 #: ../src/guestfs.pod:2472 ../fish/guestfish.pod:1021
5391 msgid "LIBGUESTFS_DEBUG"
5392 msgstr ""
5393
5394 # type: textblock
5395 #. type: textblock
5396 #: ../src/guestfs.pod:2474
5397 msgid ""
5398 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
5399 "effect as calling C<guestfs_set_verbose (g, 1)>."
5400 msgstr ""
5401
5402 # type: =item
5403 #. type: =item
5404 #: ../src/guestfs.pod:2477 ../fish/guestfish.pod:1026
5405 msgid "LIBGUESTFS_MEMSIZE"
5406 msgstr ""
5407
5408 # type: textblock
5409 #. type: textblock
5410 #: ../src/guestfs.pod:2479 ../fish/guestfish.pod:1028
5411 msgid ""
5412 "Set the memory allocated to the qemu process, in megabytes.  For example:"
5413 msgstr ""
5414
5415 # type: verbatim
5416 #. type: verbatim
5417 #: ../src/guestfs.pod:2482 ../fish/guestfish.pod:1031
5418 #, no-wrap
5419 msgid ""
5420 " LIBGUESTFS_MEMSIZE=700\n"
5421 "\n"
5422 msgstr ""
5423
5424 # type: =item
5425 #. type: =item
5426 #: ../src/guestfs.pod:2484 ../fish/guestfish.pod:1033
5427 msgid "LIBGUESTFS_PATH"
5428 msgstr ""
5429
5430 # type: textblock
5431 #. type: textblock
5432 #: ../src/guestfs.pod:2486
5433 msgid ""
5434 "Set the path that libguestfs uses to search for kernel and initrd.img.  See "
5435 "the discussion of paths in section PATH above."
5436 msgstr ""
5437
5438 # type: =item
5439 #. type: =item
5440 #: ../src/guestfs.pod:2489 ../fish/guestfish.pod:1038
5441 msgid "LIBGUESTFS_QEMU"
5442 msgstr ""
5443
5444 # type: textblock
5445 #. type: textblock
5446 #: ../src/guestfs.pod:2491 ../fish/guestfish.pod:1040
5447 msgid ""
5448 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
5449 "which was found at compile time by the configure script is used."
5450 msgstr ""
5451
5452 # type: textblock
5453 #. type: textblock
5454 #: ../src/guestfs.pod:2495
5455 msgid "See also L</QEMU WRAPPERS> above."
5456 msgstr ""
5457
5458 # type: =item
5459 #. type: =item
5460 #: ../src/guestfs.pod:2497 ../fish/guestfish.pod:1044
5461 msgid "LIBGUESTFS_TRACE"
5462 msgstr ""
5463
5464 # type: textblock
5465 #. type: textblock
5466 #: ../src/guestfs.pod:2499
5467 msgid ""
5468 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
5469 "effect as calling C<guestfs_set_trace (g, 1)>."
5470 msgstr ""
5471
5472 # type: =item
5473 #. type: =item
5474 #: ../src/guestfs.pod:2502 ../fish/guestfish.pod:1053
5475 msgid "TMPDIR"
5476 msgstr ""
5477
5478 #. type: textblock
5479 #: ../src/guestfs.pod:2504 ../fish/guestfish.pod:1055
5480 msgid ""
5481 "Location of temporary directory, defaults to C</tmp> except for the cached "
5482 "supermin appliance which defaults to C</var/tmp>."
5483 msgstr ""
5484
5485 #. type: textblock
5486 #: ../src/guestfs.pod:2507 ../fish/guestfish.pod:1058
5487 msgid ""
5488 "If libguestfs was compiled to use the supermin appliance then the real "
5489 "appliance is cached in this directory, shared between all handles belonging "
5490 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
5491 "use in case C</var/tmp> is not large enough."
5492 msgstr ""
5493
5494 # type: =head1
5495 #. type: =head1
5496 #: ../src/guestfs.pod:2515 ../fish/guestfish.pod:1116
5497 #: ../test-tool/libguestfs-test-tool.pod:109 ../fuse/guestmount.pod:233
5498 #: ../tools/virt-edit.pl:350 ../tools/virt-win-reg.pl:572
5499 #: ../tools/virt-resize.pl:1483 ../tools/virt-list-filesystems.pl:189
5500 #: ../tools/virt-tar.pl:286 ../tools/virt-make-fs.pl:534
5501 #: ../tools/virt-list-partitions.pl:257
5502 msgid "SEE ALSO"
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../src/guestfs.pod:2517
5507 msgid ""
5508 "L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-"
5509 "ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in"
5510 "(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems"
5511 "(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-"
5512 "partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-"
5513 "tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)"
5514 ">, L<febootstrap(1)>, L<hivex(3)>, L<http://libguestfs.org/>."
5515 msgstr ""
5516
5517 # type: textblock
5518 #. type: textblock
5519 #: ../src/guestfs.pod:2544
5520 msgid ""
5521 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
5522 "(8)>, L<disktype(1)>."
5523 msgstr ""
5524
5525 # type: =head1
5526 #. type: =head1
5527 #: ../src/guestfs.pod:2551 ../tools/virt-win-reg.pl:587
5528 #: ../tools/virt-make-fs.pl:548
5529 msgid "BUGS"
5530 msgstr ""
5531
5532 # type: textblock
5533 #. type: textblock
5534 #: ../src/guestfs.pod:2553
5535 msgid "To get a list of bugs against libguestfs use this link:"
5536 msgstr ""
5537
5538 # type: textblock
5539 #. type: textblock
5540 #: ../src/guestfs.pod:2555
5541 msgid ""
5542 "L<https://bugzilla.redhat.com/buglist.cgi?"
5543 "component=libguestfs&product=Virtualization+Tools>"
5544 msgstr ""
5545
5546 # type: textblock
5547 #. type: textblock
5548 #: ../src/guestfs.pod:2557
5549 msgid "To report a new bug against libguestfs use this link:"
5550 msgstr ""
5551
5552 # type: textblock
5553 #. type: textblock
5554 #: ../src/guestfs.pod:2559
5555 msgid ""
5556 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5557 "component=libguestfs&product=Virtualization+Tools>"
5558 msgstr ""
5559
5560 # type: textblock
5561 #. type: textblock
5562 #: ../src/guestfs.pod:2561
5563 msgid "When reporting a bug, please check:"
5564 msgstr ""
5565
5566 # type: textblock
5567 #. type: textblock
5568 #: ../src/guestfs.pod:2567
5569 msgid "That the bug hasn't been reported already."
5570 msgstr ""
5571
5572 # type: textblock
5573 #. type: textblock
5574 #: ../src/guestfs.pod:2571
5575 msgid "That you are testing a recent version."
5576 msgstr ""
5577
5578 # type: textblock
5579 #. type: textblock
5580 #: ../src/guestfs.pod:2575
5581 msgid "Describe the bug accurately, and give a way to reproduce it."
5582 msgstr ""
5583
5584 # type: textblock
5585 #. type: textblock
5586 #: ../src/guestfs.pod:2579
5587 msgid ""
5588 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
5589 "bug report."
5590 msgstr ""
5591
5592 # type: =head1
5593 #. type: =head1
5594 #: ../src/guestfs.pod:2584 ../fish/guestfish.pod:1139
5595 #: ../test-tool/libguestfs-test-tool.pod:115 ../fuse/guestmount.pod:244
5596 msgid "AUTHORS"
5597 msgstr ""
5598
5599 # type: textblock
5600 #. type: textblock
5601 #: ../src/guestfs.pod:2586 ../fish/guestfish.pod:1141
5602 #: ../test-tool/libguestfs-test-tool.pod:117 ../fuse/guestmount.pod:246
5603 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
5604 msgstr ""
5605
5606 # type: =head1
5607 #. type: =head1
5608 #: ../src/guestfs.pod:2588 ../fish/guestfish.pod:1143
5609 #: ../test-tool/libguestfs-test-tool.pod:119 ../fuse/guestmount.pod:248
5610 #: ../tools/virt-edit.pl:368 ../tools/virt-win-reg.pl:602
5611 #: ../tools/virt-resize.pl:1508 ../tools/virt-list-filesystems.pl:206
5612 #: ../tools/virt-tar.pl:305 ../tools/virt-make-fs.pl:563
5613 #: ../tools/virt-list-partitions.pl:273
5614 msgid "COPYRIGHT"
5615 msgstr ""
5616
5617 # type: textblock
5618 #. type: textblock
5619 #: ../src/guestfs.pod:2590 ../fish/guestfish.pod:1145
5620 #: ../fuse/guestmount.pod:250
5621 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
5622 msgstr ""
5623
5624 # type: textblock
5625 #. type: textblock
5626 #: ../src/guestfs.pod:2593
5627 msgid ""
5628 "This library is free software; you can redistribute it and/or modify it "
5629 "under the terms of the GNU Lesser General Public License as published by the "
5630 "Free Software Foundation; either version 2 of the License, or (at your "
5631 "option) any later version."
5632 msgstr ""
5633
5634 # type: textblock
5635 #. type: textblock
5636 #: ../src/guestfs.pod:2598
5637 msgid ""
5638 "This library is distributed in the hope that it will be useful, but WITHOUT "
5639 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5640 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5641 "for more details."
5642 msgstr ""
5643
5644 # type: textblock
5645 #. type: textblock
5646 #: ../src/guestfs.pod:2603
5647 msgid ""
5648 "You should have received a copy of the GNU Lesser General Public License "
5649 "along with this library; if not, write to the Free Software Foundation, "
5650 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5651 msgstr ""
5652
5653 # type: =head2
5654 #. type: =head2
5655 #: ../src/guestfs-actions.pod:1
5656 msgid "guestfs_add_cdrom"
5657 msgstr ""
5658
5659 # type: verbatim
5660 #. type: verbatim
5661 #: ../src/guestfs-actions.pod:3
5662 #, no-wrap
5663 msgid ""
5664 " int\n"
5665 " guestfs_add_cdrom (guestfs_h *g,\n"
5666 "                    const char *filename);\n"
5667 "\n"
5668 msgstr ""
5669
5670 # type: textblock
5671 #. type: textblock
5672 #: ../src/guestfs-actions.pod:7 ../fish/guestfish-actions.pod:5
5673 msgid "This function adds a virtual CD-ROM disk image to the guest."
5674 msgstr ""
5675
5676 # type: textblock
5677 #. type: textblock
5678 #: ../src/guestfs-actions.pod:9 ../fish/guestfish-actions.pod:7
5679 msgid "This is equivalent to the qemu parameter C<-cdrom filename>."
5680 msgstr ""
5681
5682 # type: textblock
5683 #. type: textblock
5684 #: ../src/guestfs-actions.pod:17
5685 msgid ""
5686 "This call checks for the existence of C<filename>.  This stops you from "
5687 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5688 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
5689 "instead."
5690 msgstr ""
5691
5692 # type: textblock
5693 #. type: textblock
5694 #: ../src/guestfs-actions.pod:24
5695 msgid ""
5696 "If you just want to add an ISO file (often you use this as an efficient way "
5697 "to transfer large files into the guest), then you should probably use "
5698 "C<guestfs_add_drive_ro> instead."
5699 msgstr ""
5700
5701 # type: textblock
5702 #. type: textblock
5703 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:126
5704 #: ../src/guestfs-actions.pod:187 ../src/guestfs-actions.pod:224
5705 #: ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259
5706 #: ../src/guestfs-actions.pod:279 ../src/guestfs-actions.pod:293
5707 #: ../src/guestfs-actions.pod:408 ../src/guestfs-actions.pod:428
5708 #: ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:487
5709 #: ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:533
5710 #: ../src/guestfs-actions.pod:600 ../src/guestfs-actions.pod:633
5711 #: ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:662
5712 #: ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:779
5713 #: ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807
5714 #: ../src/guestfs-actions.pod:968 ../src/guestfs-actions.pod:988
5715 #: ../src/guestfs-actions.pod:1006 ../src/guestfs-actions.pod:1090
5716 #: ../src/guestfs-actions.pod:1108 ../src/guestfs-actions.pod:1127
5717 #: ../src/guestfs-actions.pod:1141 ../src/guestfs-actions.pod:1161
5718 #: ../src/guestfs-actions.pod:1231 ../src/guestfs-actions.pod:1262
5719 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:1324
5720 #: ../src/guestfs-actions.pod:1430 ../src/guestfs-actions.pod:1464
5721 #: ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1704
5722 #: ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2243
5723 #: ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2448
5724 #: ../src/guestfs-actions.pod:2483 ../src/guestfs-actions.pod:3318
5725 #: ../src/guestfs-actions.pod:3333 ../src/guestfs-actions.pod:3353
5726 #: ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3522
5727 #: ../src/guestfs-actions.pod:3535 ../src/guestfs-actions.pod:3549
5728 #: ../src/guestfs-actions.pod:3564 ../src/guestfs-actions.pod:3600
5729 #: ../src/guestfs-actions.pod:3672 ../src/guestfs-actions.pod:3692
5730 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3732
5731 #: ../src/guestfs-actions.pod:3755 ../src/guestfs-actions.pod:3787
5732 #: ../src/guestfs-actions.pod:3806 ../src/guestfs-actions.pod:3825
5733 #: ../src/guestfs-actions.pod:3860 ../src/guestfs-actions.pod:3872
5734 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3924
5735 #: ../src/guestfs-actions.pod:3937 ../src/guestfs-actions.pod:3952
5736 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4062
5737 #: ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4095
5738 #: ../src/guestfs-actions.pod:4146 ../src/guestfs-actions.pod:4164
5739 #: ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4198
5740 #: ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4226
5741 #: ../src/guestfs-actions.pod:4243 ../src/guestfs-actions.pod:4258
5742 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4336
5743 #: ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4440
5744 #: ../src/guestfs-actions.pod:4459 ../src/guestfs-actions.pod:4478
5745 #: ../src/guestfs-actions.pod:4490 ../src/guestfs-actions.pod:4507
5746 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4535
5747 #: ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4585
5748 #: ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4620
5749 #: ../src/guestfs-actions.pod:4634 ../src/guestfs-actions.pod:4651
5750 #: ../src/guestfs-actions.pod:4700 ../src/guestfs-actions.pod:4737
5751 #: ../src/guestfs-actions.pod:4751 ../src/guestfs-actions.pod:4779
5752 #: ../src/guestfs-actions.pod:4796 ../src/guestfs-actions.pod:4814
5753 #: ../src/guestfs-actions.pod:4948 ../src/guestfs-actions.pod:5005
5754 #: ../src/guestfs-actions.pod:5027 ../src/guestfs-actions.pod:5045
5755 #: ../src/guestfs-actions.pod:5077 ../src/guestfs-actions.pod:5143
5756 #: ../src/guestfs-actions.pod:5160 ../src/guestfs-actions.pod:5173
5757 #: ../src/guestfs-actions.pod:5187 ../src/guestfs-actions.pod:5476
5758 #: ../src/guestfs-actions.pod:5495 ../src/guestfs-actions.pod:5514
5759 #: ../src/guestfs-actions.pod:5526 ../src/guestfs-actions.pod:5538
5760 #: ../src/guestfs-actions.pod:5552 ../src/guestfs-actions.pod:5564
5761 #: ../src/guestfs-actions.pod:5578 ../src/guestfs-actions.pod:5594
5762 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5634
5763 #: ../src/guestfs-actions.pod:5653 ../src/guestfs-actions.pod:5671
5764 #: ../src/guestfs-actions.pod:5694 ../src/guestfs-actions.pod:5712
5765 #: ../src/guestfs-actions.pod:5731 ../src/guestfs-actions.pod:5752
5766 #: ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5788
5767 #: ../src/guestfs-actions.pod:5816 ../src/guestfs-actions.pod:5840
5768 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5883
5769 #: ../src/guestfs-actions.pod:5898 ../src/guestfs-actions.pod:5913
5770 #: ../src/guestfs-actions.pod:5932 ../src/guestfs-actions.pod:5969
5771 #: ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6018
5772 #: ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6247
5773 #: ../src/guestfs-actions.pod:6259 ../src/guestfs-actions.pod:6272
5774 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6307
5775 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6333
5776 #: ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6361
5777 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6437
5778 #: ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6469
5779 #: ../src/guestfs-actions.pod:6486 ../src/guestfs-actions.pod:6499
5780 #: ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6555
5781 #: ../src/guestfs-actions.pod:6569 ../src/guestfs-actions.pod:6610
5782 #: ../src/guestfs-actions.pod:6623 ../src/guestfs-actions.pod:6641
5783 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6711
5784 #: ../src/guestfs-actions.pod:6830 ../src/guestfs-actions.pod:6848
5785 #: ../src/guestfs-actions.pod:6862 ../src/guestfs-actions.pod:6917
5786 #: ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6975
5787 #: ../src/guestfs-actions.pod:7008 ../src/guestfs-actions.pod:7062
5788 #: ../src/guestfs-actions.pod:7088 ../src/guestfs-actions.pod:7154
5789 #: ../src/guestfs-actions.pod:7173 ../src/guestfs-actions.pod:7202
5790 msgid "This function returns 0 on success or -1 on error."
5791 msgstr ""
5792
5793 # type: textblock
5794 #. type: textblock
5795 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:240
5796 #: ../src/guestfs-actions.pod:261 ../fish/guestfish-actions.pod:28
5797 #: ../fish/guestfish-actions.pod:151 ../fish/guestfish-actions.pod:165
5798 msgid ""
5799 "This function is deprecated.  In new code, use the C<add_drive_opts> call "
5800 "instead."
5801 msgstr ""
5802
5803 # type: textblock
5804 #. type: textblock
5805 #: ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:243
5806 #: ../src/guestfs-actions.pod:264 ../src/guestfs-actions.pod:1435
5807 #: ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1942
5808 #: ../src/guestfs-actions.pod:4283 ../src/guestfs-actions.pod:7096
5809 #: ../src/guestfs-actions.pod:7265 ../fish/guestfish-actions.pod:31
5810 #: ../fish/guestfish-actions.pod:154 ../fish/guestfish-actions.pod:168
5811 #: ../fish/guestfish-actions.pod:949 ../fish/guestfish-actions.pod:1306
5812 #: ../fish/guestfish-actions.pod:1320 ../fish/guestfish-actions.pod:2895
5813 #: ../fish/guestfish-actions.pod:4723 ../fish/guestfish-actions.pod:4820
5814 msgid ""
5815 "Deprecated functions will not be removed from the API, but the fact that "
5816 "they are deprecated indicates that there are problems with correct use of "
5817 "these functions."
5818 msgstr ""
5819
5820 # type: textblock
5821 #. type: textblock
5822 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:128
5823 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1893
5824 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2094
5825 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3335
5826 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:5673
5827 #: ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5900
5828 #: ../src/guestfs-actions.pod:6363 ../src/guestfs-actions.pod:6488
5829 #: ../src/guestfs-actions.pod:7010
5830 msgid "(Added in 0.3)"
5831 msgstr ""
5832
5833 # type: =head2
5834 #. type: =head2
5835 #: ../src/guestfs-actions.pod:41
5836 msgid "guestfs_add_domain"
5837 msgstr ""
5838
5839 # type: verbatim
5840 #. type: verbatim
5841 #: ../src/guestfs-actions.pod:43
5842 #, no-wrap
5843 msgid ""
5844 " int\n"
5845 " guestfs_add_domain (guestfs_h *g,\n"
5846 "                     const char *dom,\n"
5847 "                     ...);\n"
5848 "\n"
5849 msgstr ""
5850
5851 # type: textblock
5852 #. type: textblock
5853 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:137
5854 #: ../src/guestfs-actions.pod:4297
5855 msgid ""
5856 "You may supply a list of optional arguments to this call.  Use zero or more "
5857 "of the following pairs of parameters, and terminate the list with C<-1> on "
5858 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
5859 msgstr ""
5860
5861 # type: verbatim
5862 #. type: verbatim
5863 #: ../src/guestfs-actions.pod:53
5864 #, no-wrap
5865 msgid ""
5866 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
5867 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
5868 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
5869 "\n"
5870 msgstr ""
5871
5872 # type: textblock
5873 #. type: textblock
5874 #: ../src/guestfs-actions.pod:57
5875 msgid ""
5876 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5877 "It works by connecting to libvirt, requesting the domain and domain XML from "
5878 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
5879 "one."
5880 msgstr ""
5881
5882 # type: textblock
5883 #. type: textblock
5884 #: ../src/guestfs-actions.pod:62 ../fish/guestfish-actions.pod:46
5885 msgid ""
5886 "The number of disks added is returned.  This operation is atomic: if an "
5887 "error is returned, then no disks are added."
5888 msgstr ""
5889
5890 # type: textblock
5891 #. type: textblock
5892 #: ../src/guestfs-actions.pod:65 ../fish/guestfish-actions.pod:49
5893 msgid ""
5894 "This function does some minimal checks to make sure the libvirt domain is "
5895 "not running (unless C<readonly> is true).  In a future version we will try "
5896 "to acquire the libvirt lock on each disk."
5897 msgstr ""
5898
5899 # type: textblock
5900 #. type: textblock
5901 #: ../src/guestfs-actions.pod:69 ../fish/guestfish-actions.pod:53
5902 msgid ""
5903 "Disks must be accessible locally.  This often means that adding disks from a "
5904 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5905 "unless those disks are accessible via the same device path locally too."
5906 msgstr ""
5907
5908 #. type: textblock
5909 #: ../src/guestfs-actions.pod:74 ../fish/guestfish-actions.pod:58
5910 msgid ""
5911 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5912 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5913 "libvirt URI (or one set through an environment variable, see the libvirt "
5914 "documentation for full details)."
5915 msgstr ""
5916
5917 # type: textblock
5918 #. type: textblock
5919 #: ../src/guestfs-actions.pod:80
5920 msgid ""
5921 "The other optional parameters are passed directly through to "
5922 "C<guestfs_add_drive_opts>."
5923 msgstr ""
5924
5925 # type: textblock
5926 #. type: textblock
5927 #: ../src/guestfs-actions.pod:83 ../src/guestfs-actions.pod:336
5928 #: ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:679
5929 #: ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:728
5930 #: ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:1307
5931 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1864
5932 #: ../src/guestfs-actions.pod:1963 ../src/guestfs-actions.pod:2003
5933 #: ../src/guestfs-actions.pod:2058 ../src/guestfs-actions.pod:2081
5934 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:2701
5935 #: ../src/guestfs-actions.pod:2722 ../src/guestfs-actions.pod:4723
5936 #: ../src/guestfs-actions.pod:4851 ../src/guestfs-actions.pod:5257
5937 #: ../src/guestfs-actions.pod:5283 ../src/guestfs-actions.pod:6596
5938 #: ../src/guestfs-actions.pod:7021 ../src/guestfs-actions.pod:7034
5939 #: ../src/guestfs-actions.pod:7047
5940 msgid "On error this function returns -1."
5941 msgstr ""
5942
5943 # type: textblock
5944 #. type: textblock
5945 #: ../src/guestfs-actions.pod:85
5946 msgid "(Added in 1.7.4)"
5947 msgstr ""
5948
5949 # type: =head2
5950 #. type: =head2
5951 #: ../src/guestfs-actions.pod:87
5952 msgid "guestfs_add_domain_va"
5953 msgstr ""
5954
5955 # type: verbatim
5956 #. type: verbatim
5957 #: ../src/guestfs-actions.pod:89
5958 #, no-wrap
5959 msgid ""
5960 " int\n"
5961 " guestfs_add_domain_va (guestfs_h *g,\n"
5962 "                        const char *dom,\n"
5963 "                        va_list args);\n"
5964 "\n"
5965 msgstr ""
5966
5967 # type: textblock
5968 #. type: textblock
5969 #: ../src/guestfs-actions.pod:94
5970 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
5971 msgstr ""
5972
5973 # type: textblock
5974 #. type: textblock
5975 #: ../src/guestfs-actions.pod:96 ../src/guestfs-actions.pod:107
5976 #: ../src/guestfs-actions.pod:200 ../src/guestfs-actions.pod:211
5977 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4362
5978 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
5979 msgstr ""
5980
5981 # type: =head2
5982 #. type: =head2
5983 #: ../src/guestfs-actions.pod:98
5984 msgid "guestfs_add_domain_argv"
5985 msgstr ""
5986
5987 # type: verbatim
5988 #. type: verbatim
5989 #: ../src/guestfs-actions.pod:100
5990 #, no-wrap
5991 msgid ""
5992 " int\n"
5993 " guestfs_add_domain_argv (guestfs_h *g,\n"
5994 "                          const char *dom,\n"
5995 "                          const struct guestfs_add_domain_argv *optargs);\n"
5996 "\n"
5997 msgstr ""
5998
5999 # type: textblock
6000 #. type: textblock
6001 #: ../src/guestfs-actions.pod:105
6002 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
6003 msgstr ""
6004
6005 # type: =head2
6006 #. type: =head2
6007 #: ../src/guestfs-actions.pod:109
6008 msgid "guestfs_add_drive"
6009 msgstr ""
6010
6011 # type: verbatim
6012 #. type: verbatim
6013 #: ../src/guestfs-actions.pod:111
6014 #, no-wrap
6015 msgid ""
6016 " int\n"
6017 " guestfs_add_drive (guestfs_h *g,\n"
6018 "                    const char *filename);\n"
6019 "\n"
6020 msgstr ""
6021
6022 # type: textblock
6023 #. type: textblock
6024 #: ../src/guestfs-actions.pod:115
6025 msgid ""
6026 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
6027 "optional parameters, so the disk is added writable, with the format being "
6028 "detected automatically."
6029 msgstr ""
6030
6031 # type: textblock
6032 #. type: textblock
6033 #: ../src/guestfs-actions.pod:119
6034 msgid ""
6035 "Automatic detection of the format opens you up to a potential security hole "
6036 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6037 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6038 "you should think about replacing calls to this function with calls to "
6039 "C<guestfs_add_drive_opts>, and specifying the format."
6040 msgstr ""
6041
6042 # type: =head2
6043 #. type: =head2
6044 #: ../src/guestfs-actions.pod:130
6045 msgid "guestfs_add_drive_opts"
6046 msgstr ""
6047
6048 # type: verbatim
6049 #. type: verbatim
6050 #: ../src/guestfs-actions.pod:132
6051 #, no-wrap
6052 msgid ""
6053 " int\n"
6054 " guestfs_add_drive_opts (guestfs_h *g,\n"
6055 "                         const char *filename,\n"
6056 "                         ...);\n"
6057 "\n"
6058 msgstr ""
6059
6060 # type: verbatim
6061 #. type: verbatim
6062 #: ../src/guestfs-actions.pod:142
6063 #, no-wrap
6064 msgid ""
6065 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
6066 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
6067 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
6068 "\n"
6069 msgstr ""
6070
6071 # type: textblock
6072 #. type: textblock
6073 #: ../src/guestfs-actions.pod:146 ../fish/guestfish-actions.pod:90
6074 msgid ""
6075 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6076 "The first time you call this function, the disk appears as C</dev/sda>, the "
6077 "second time as C</dev/sdb>, and so on."
6078 msgstr ""
6079
6080 # type: textblock
6081 #. type: textblock
6082 #: ../src/guestfs-actions.pod:151 ../fish/guestfish-actions.pod:95
6083 msgid ""
6084 "You don't necessarily need to be root when using libguestfs.  However you "
6085 "obviously do need sufficient permissions to access the filename for whatever "
6086 "operations you want to perform (ie. read access if you just want to read the "
6087 "image or write access if you want to modify the image)."
6088 msgstr ""
6089
6090 # type: textblock
6091 #. type: textblock
6092 #: ../src/guestfs-actions.pod:157 ../fish/guestfish-actions.pod:101
6093 msgid "This call checks that C<filename> exists."
6094 msgstr ""
6095
6096 # type: textblock
6097 #. type: textblock
6098 #: ../src/guestfs-actions.pod:159 ../src/guestfs-actions.pod:4308
6099 #: ../fish/guestfish-actions.pod:103 ../fish/guestfish-actions.pod:2906
6100 msgid "The optional arguments are:"
6101 msgstr ""
6102
6103 # type: =item
6104 #. type: =item
6105 #: ../src/guestfs-actions.pod:163 ../fish/guestfish-actions.pod:107
6106 msgid "C<readonly>"
6107 msgstr ""
6108
6109 # type: textblock
6110 #. type: textblock
6111 #: ../src/guestfs-actions.pod:165 ../fish/guestfish-actions.pod:109
6112 msgid ""
6113 "If true then the image is treated as read-only.  Writes are still allowed, "
6114 "but they are stored in a temporary snapshot overlay which is discarded at "
6115 "the end.  The disk that you add is not modified."
6116 msgstr ""
6117
6118 # type: =item
6119 #. type: =item
6120 #: ../src/guestfs-actions.pod:169 ../fish/guestfish-actions.pod:113
6121 msgid "C<format>"
6122 msgstr ""
6123
6124 # type: textblock
6125 #. type: textblock
6126 #: ../src/guestfs-actions.pod:171
6127 msgid ""
6128 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
6129 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
6130 "Possible formats include C<raw> and C<qcow2>."
6131 msgstr ""
6132
6133 # type: textblock
6134 #. type: textblock
6135 #: ../src/guestfs-actions.pod:175 ../fish/guestfish-actions.pod:119
6136 msgid ""
6137 "Automatic detection of the format opens you up to a potential security hole "
6138 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6139 "RHBZ#642934.  Specifying the format closes this security hole."
6140 msgstr ""
6141
6142 # type: =item
6143 #. type: =item
6144 #: ../src/guestfs-actions.pod:180 ../fish/guestfish-actions.pod:124
6145 msgid "C<iface>"
6146 msgstr ""
6147
6148 # type: textblock
6149 #. type: textblock
6150 #: ../src/guestfs-actions.pod:182
6151 msgid ""
6152 "This rarely-used option lets you emulate the behaviour of the deprecated "
6153 "C<guestfs_add_drive_with_if> call (q.v.)"
6154 msgstr ""
6155
6156 # type: textblock
6157 #. type: textblock
6158 #: ../src/guestfs-actions.pod:189
6159 msgid "(Added in 1.5.23)"
6160 msgstr ""
6161
6162 # type: =head2
6163 #. type: =head2
6164 #: ../src/guestfs-actions.pod:191
6165 msgid "guestfs_add_drive_opts_va"
6166 msgstr ""
6167
6168 # type: verbatim
6169 #. type: verbatim
6170 #: ../src/guestfs-actions.pod:193
6171 #, no-wrap
6172 msgid ""
6173 " int\n"
6174 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
6175 "                            const char *filename,\n"
6176 "                            va_list args);\n"
6177 "\n"
6178 msgstr ""
6179
6180 # type: textblock
6181 #. type: textblock
6182 #: ../src/guestfs-actions.pod:198
6183 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
6184 msgstr ""
6185
6186 # type: =head2
6187 #. type: =head2
6188 #: ../src/guestfs-actions.pod:202
6189 msgid "guestfs_add_drive_opts_argv"
6190 msgstr ""
6191
6192 # type: verbatim
6193 #. type: verbatim
6194 #: ../src/guestfs-actions.pod:204
6195 #, no-wrap
6196 msgid ""
6197 " int\n"
6198 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
6199 "                              const char *filename,\n"
6200 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
6201 "\n"
6202 msgstr ""
6203
6204 # type: textblock
6205 #. type: textblock
6206 #: ../src/guestfs-actions.pod:209
6207 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
6208 msgstr ""
6209
6210 # type: =head2
6211 #. type: =head2
6212 #: ../src/guestfs-actions.pod:213
6213 msgid "guestfs_add_drive_ro"
6214 msgstr ""
6215
6216 # type: verbatim
6217 #. type: verbatim
6218 #: ../src/guestfs-actions.pod:215
6219 #, no-wrap
6220 msgid ""
6221 " int\n"
6222 " guestfs_add_drive_ro (guestfs_h *g,\n"
6223 "                       const char *filename);\n"
6224 "\n"
6225 msgstr ""
6226
6227 # type: textblock
6228 #. type: textblock
6229 #: ../src/guestfs-actions.pod:219
6230 msgid ""
6231 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
6232 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
6233 "disk is added read-only, with the format being detected automatically."
6234 msgstr ""
6235
6236 # type: textblock
6237 #. type: textblock
6238 #: ../src/guestfs-actions.pod:226
6239 msgid "(Added in 1.0.38)"
6240 msgstr ""
6241
6242 # type: =head2
6243 #. type: =head2
6244 #: ../src/guestfs-actions.pod:228
6245 msgid "guestfs_add_drive_ro_with_if"
6246 msgstr ""
6247
6248 # type: verbatim
6249 #. type: verbatim
6250 #: ../src/guestfs-actions.pod:230
6251 #, no-wrap
6252 msgid ""
6253 " int\n"
6254 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
6255 "                               const char *filename,\n"
6256 "                               const char *iface);\n"
6257 "\n"
6258 msgstr ""
6259
6260 # type: textblock
6261 #. type: textblock
6262 #: ../src/guestfs-actions.pod:235
6263 msgid ""
6264 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
6265 "QEMU interface emulation to use at run time."
6266 msgstr ""
6267
6268 # type: textblock
6269 #. type: textblock
6270 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:268
6271 #: ../src/guestfs-actions.pod:2333
6272 msgid "(Added in 1.0.84)"
6273 msgstr ""
6274
6275 # type: =head2
6276 #. type: =head2
6277 #: ../src/guestfs-actions.pod:249
6278 msgid "guestfs_add_drive_with_if"
6279 msgstr ""
6280
6281 # type: verbatim
6282 #. type: verbatim
6283 #: ../src/guestfs-actions.pod:251
6284 #, no-wrap
6285 msgid ""
6286 " int\n"
6287 " guestfs_add_drive_with_if (guestfs_h *g,\n"
6288 "                            const char *filename,\n"
6289 "                            const char *iface);\n"
6290 "\n"
6291 msgstr ""
6292
6293 # type: textblock
6294 #. type: textblock
6295 #: ../src/guestfs-actions.pod:256
6296 msgid ""
6297 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
6298 "QEMU interface emulation to use at run time."
6299 msgstr ""
6300
6301 # type: =head2
6302 #. type: =head2
6303 #: ../src/guestfs-actions.pod:270
6304 msgid "guestfs_aug_clear"
6305 msgstr ""
6306
6307 # type: verbatim
6308 #. type: verbatim
6309 #: ../src/guestfs-actions.pod:272
6310 #, no-wrap
6311 msgid ""
6312 " int\n"
6313 " guestfs_aug_clear (guestfs_h *g,\n"
6314 "                    const char *augpath);\n"
6315 "\n"
6316 msgstr ""
6317
6318 # type: textblock
6319 #. type: textblock
6320 #: ../src/guestfs-actions.pod:276 ../fish/guestfish-actions.pod:176
6321 msgid ""
6322 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6323 "L<augtool(1)> C<clear> command."
6324 msgstr ""
6325
6326 # type: textblock
6327 #. type: textblock
6328 #: ../src/guestfs-actions.pod:281 ../src/guestfs-actions.pod:2083
6329 msgid "(Added in 1.3.4)"
6330 msgstr ""
6331
6332 # type: =head2
6333 #. type: =head2
6334 #: ../src/guestfs-actions.pod:283
6335 msgid "guestfs_aug_close"
6336 msgstr ""
6337
6338 # type: verbatim
6339 #. type: verbatim
6340 #: ../src/guestfs-actions.pod:285
6341 #, no-wrap
6342 msgid ""
6343 " int\n"
6344 " guestfs_aug_close (guestfs_h *g);\n"
6345 "\n"
6346 msgstr ""
6347
6348 # type: textblock
6349 #. type: textblock
6350 #: ../src/guestfs-actions.pod:288
6351 msgid ""
6352 "Close the current Augeas handle and free up any resources used by it.  After "
6353 "calling this, you have to call C<guestfs_aug_init> again before you can use "
6354 "any other Augeas functions."
6355 msgstr ""
6356
6357 # type: textblock
6358 #. type: textblock
6359 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:320
6360 #: ../src/guestfs-actions.pod:338 ../src/guestfs-actions.pod:352
6361 #: ../src/guestfs-actions.pod:410 ../src/guestfs-actions.pod:430
6362 #: ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:475
6363 #: ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503
6364 #: ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:535
6365 #: ../src/guestfs-actions.pod:5334
6366 msgid "(Added in 0.7)"
6367 msgstr ""
6368
6369 # type: =head2
6370 #. type: =head2
6371 #: ../src/guestfs-actions.pod:297
6372 msgid "guestfs_aug_defnode"
6373 msgstr ""
6374
6375 # type: verbatim
6376 #. type: verbatim
6377 #: ../src/guestfs-actions.pod:299
6378 #, no-wrap
6379 msgid ""
6380 " struct guestfs_int_bool *\n"
6381 " guestfs_aug_defnode (guestfs_h *g,\n"
6382 "                      const char *name,\n"
6383 "                      const char *expr,\n"
6384 "                      const char *val);\n"
6385 "\n"
6386 msgstr ""
6387
6388 # type: textblock
6389 #. type: textblock
6390 #: ../src/guestfs-actions.pod:305 ../fish/guestfish-actions.pod:192
6391 msgid ""
6392 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6393 msgstr ""
6394
6395 # type: textblock
6396 #. type: textblock
6397 #: ../src/guestfs-actions.pod:308
6398 msgid ""
6399 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6400 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
6401 "containing that single node."
6402 msgstr ""
6403
6404 # type: textblock
6405 #. type: textblock
6406 #: ../src/guestfs-actions.pod:312 ../fish/guestfish-actions.pod:199
6407 msgid ""
6408 "On success this returns a pair containing the number of nodes in the "
6409 "nodeset, and a boolean flag if a node was created."
6410 msgstr ""
6411
6412 # type: textblock
6413 #. type: textblock
6414 #: ../src/guestfs-actions.pod:316
6415 msgid ""
6416 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
6417 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
6418 msgstr ""
6419
6420 # type: =head2
6421 #. type: =head2
6422 #: ../src/guestfs-actions.pod:322
6423 msgid "guestfs_aug_defvar"
6424 msgstr ""
6425
6426 # type: verbatim
6427 #. type: verbatim
6428 #: ../src/guestfs-actions.pod:324
6429 #, no-wrap
6430 msgid ""
6431 " int\n"
6432 " guestfs_aug_defvar (guestfs_h *g,\n"
6433 "                     const char *name,\n"
6434 "                     const char *expr);\n"
6435 "\n"
6436 msgstr ""
6437
6438 # type: textblock
6439 #. type: textblock
6440 #: ../src/guestfs-actions.pod:329 ../fish/guestfish-actions.pod:207
6441 msgid ""
6442 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6443 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6444 msgstr ""
6445
6446 # type: textblock
6447 #. type: textblock
6448 #: ../src/guestfs-actions.pod:333 ../fish/guestfish-actions.pod:211
6449 msgid ""
6450 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6451 "evaluates to something which is not a nodeset."
6452 msgstr ""
6453
6454 # type: =head2
6455 #. type: =head2
6456 #: ../src/guestfs-actions.pod:340
6457 msgid "guestfs_aug_get"
6458 msgstr ""
6459
6460 # type: verbatim
6461 #. type: verbatim
6462 #: ../src/guestfs-actions.pod:342
6463 #, no-wrap
6464 msgid ""
6465 " char *\n"
6466 " guestfs_aug_get (guestfs_h *g,\n"
6467 "                  const char *augpath);\n"
6468 "\n"
6469 msgstr ""
6470
6471 # type: textblock
6472 #. type: textblock
6473 #: ../src/guestfs-actions.pod:346 ../fish/guestfish-actions.pod:218
6474 msgid ""
6475 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6476 "node, the C<value> is returned."
6477 msgstr ""
6478
6479 # type: textblock
6480 #. type: textblock
6481 #: ../src/guestfs-actions.pod:349 ../src/guestfs-actions.pod:849
6482 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:927
6483 #: ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1046
6484 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1193
6485 #: ../src/guestfs-actions.pod:1212 ../src/guestfs-actions.pod:1341
6486 #: ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1644
6487 #: ../src/guestfs-actions.pod:1807 ../src/guestfs-actions.pod:1824
6488 #: ../src/guestfs-actions.pod:1915 ../src/guestfs-actions.pod:1936
6489 #: ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2298
6490 #: ../src/guestfs-actions.pod:2505 ../src/guestfs-actions.pod:2586
6491 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2673
6492 #: ../src/guestfs-actions.pod:2787 ../src/guestfs-actions.pod:2818
6493 #: ../src/guestfs-actions.pod:2842 ../src/guestfs-actions.pod:2904
6494 #: ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:3494
6495 #: ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:4014
6496 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4869
6497 #: ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5232
6498 #: ../src/guestfs-actions.pod:5410 ../src/guestfs-actions.pod:5459
6499 #: ../src/guestfs-actions.pod:6039 ../src/guestfs-actions.pod:6055
6500 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6096
6501 #: ../src/guestfs-actions.pod:6770 ../src/guestfs-actions.pod:6789
6502 #: ../src/guestfs-actions.pod:6807 ../src/guestfs-actions.pod:6987
6503 #: ../src/guestfs-actions.pod:7259
6504 msgid ""
6505 "This function returns a string, or NULL on error.  I<The caller must free "
6506 "the returned string after use>."
6507 msgstr ""
6508
6509 # type: =head2
6510 #. type: =head2
6511 #: ../src/guestfs-actions.pod:354
6512 msgid "guestfs_aug_init"
6513 msgstr ""
6514
6515 # type: verbatim
6516 #. type: verbatim
6517 #: ../src/guestfs-actions.pod:356
6518 #, no-wrap
6519 msgid ""
6520 " int\n"
6521 " guestfs_aug_init (guestfs_h *g,\n"
6522 "                   const char *root,\n"
6523 "                   int flags);\n"
6524 "\n"
6525 msgstr ""
6526
6527 # type: textblock
6528 #. type: textblock
6529 #: ../src/guestfs-actions.pod:361 ../fish/guestfish-actions.pod:225
6530 msgid ""
6531 "Create a new Augeas handle for editing configuration files.  If there was "
6532 "any previous Augeas handle associated with this guestfs session, then it is "
6533 "closed."
6534 msgstr ""
6535
6536 # type: textblock
6537 #. type: textblock
6538 #: ../src/guestfs-actions.pod:365
6539 msgid "You must call this before using any other C<guestfs_aug_*> commands."
6540 msgstr ""
6541
6542 # type: textblock
6543 #. type: textblock
6544 #: ../src/guestfs-actions.pod:368 ../fish/guestfish-actions.pod:232
6545 msgid ""
6546 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6547 msgstr ""
6548
6549 # type: textblock
6550 #. type: textblock
6551 #: ../src/guestfs-actions.pod:371 ../fish/guestfish-actions.pod:235
6552 msgid ""
6553 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6554 "logical I<or> of the following integers:"
6555 msgstr ""
6556
6557 # type: =item
6558 #. type: =item
6559 #: ../src/guestfs-actions.pod:377 ../fish/guestfish-actions.pod:241
6560 msgid "C<AUG_SAVE_BACKUP> = 1"
6561 msgstr ""
6562
6563 # type: textblock
6564 #. type: textblock
6565 #: ../src/guestfs-actions.pod:379 ../fish/guestfish-actions.pod:243
6566 msgid "Keep the original file with a C<.augsave> extension."
6567 msgstr ""
6568
6569 # type: =item
6570 #. type: =item
6571 #: ../src/guestfs-actions.pod:381 ../fish/guestfish-actions.pod:245
6572 msgid "C<AUG_SAVE_NEWFILE> = 2"
6573 msgstr ""
6574
6575 # type: textblock
6576 #. type: textblock
6577 #: ../src/guestfs-actions.pod:383 ../fish/guestfish-actions.pod:247
6578 msgid ""
6579 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6580 "original.  Overrides C<AUG_SAVE_BACKUP>."
6581 msgstr ""
6582
6583 # type: =item
6584 #. type: =item
6585 #: ../src/guestfs-actions.pod:386 ../fish/guestfish-actions.pod:250
6586 msgid "C<AUG_TYPE_CHECK> = 4"
6587 msgstr ""
6588
6589 # type: textblock
6590 #. type: textblock
6591 #: ../src/guestfs-actions.pod:388 ../fish/guestfish-actions.pod:252
6592 msgid "Typecheck lenses (can be expensive)."
6593 msgstr ""
6594
6595 # type: =item
6596 #. type: =item
6597 #: ../src/guestfs-actions.pod:390 ../fish/guestfish-actions.pod:254
6598 msgid "C<AUG_NO_STDINC> = 8"
6599 msgstr ""
6600
6601 # type: textblock
6602 #. type: textblock
6603 #: ../src/guestfs-actions.pod:392 ../fish/guestfish-actions.pod:256
6604 msgid "Do not use standard load path for modules."
6605 msgstr ""
6606
6607 # type: =item
6608 #. type: =item
6609 #: ../src/guestfs-actions.pod:394 ../fish/guestfish-actions.pod:258
6610 msgid "C<AUG_SAVE_NOOP> = 16"
6611 msgstr ""
6612
6613 # type: textblock
6614 #. type: textblock
6615 #: ../src/guestfs-actions.pod:396 ../fish/guestfish-actions.pod:260
6616 msgid "Make save a no-op, just record what would have been changed."
6617 msgstr ""
6618
6619 # type: =item
6620 #. type: =item
6621 #: ../src/guestfs-actions.pod:398 ../fish/guestfish-actions.pod:262
6622 msgid "C<AUG_NO_LOAD> = 32"
6623 msgstr ""
6624
6625 # type: textblock
6626 #. type: textblock
6627 #: ../src/guestfs-actions.pod:400
6628 msgid "Do not load the tree in C<guestfs_aug_init>."
6629 msgstr ""
6630
6631 # type: textblock
6632 #. type: textblock
6633 #: ../src/guestfs-actions.pod:404
6634 msgid "To close the handle, you can call C<guestfs_aug_close>."
6635 msgstr ""
6636
6637 # type: textblock
6638 #. type: textblock
6639 #: ../src/guestfs-actions.pod:406 ../fish/guestfish-actions.pod:270
6640 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6641 msgstr ""
6642
6643 # type: =head2
6644 #. type: =head2
6645 #: ../src/guestfs-actions.pod:412
6646 msgid "guestfs_aug_insert"
6647 msgstr ""
6648
6649 # type: verbatim
6650 #. type: verbatim
6651 #: ../src/guestfs-actions.pod:414
6652 #, no-wrap
6653 msgid ""
6654 " int\n"
6655 " guestfs_aug_insert (guestfs_h *g,\n"
6656 "                     const char *augpath,\n"
6657 "                     const char *label,\n"
6658 "                     int before);\n"
6659 "\n"
6660 msgstr ""
6661
6662 # type: textblock
6663 #. type: textblock
6664 #: ../src/guestfs-actions.pod:420 ../fish/guestfish-actions.pod:276
6665 msgid ""
6666 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6667 "or after C<path> (depending on the boolean flag C<before>)."
6668 msgstr ""
6669
6670 # type: textblock
6671 #. type: textblock
6672 #: ../src/guestfs-actions.pod:424 ../fish/guestfish-actions.pod:280
6673 msgid ""
6674 "C<path> must match exactly one existing node in the tree, and C<label> must "
6675 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6676 msgstr ""
6677
6678 # type: =head2
6679 #. type: =head2
6680 #: ../src/guestfs-actions.pod:432
6681 msgid "guestfs_aug_load"
6682 msgstr ""
6683
6684 # type: verbatim
6685 #. type: verbatim
6686 #: ../src/guestfs-actions.pod:434
6687 #, no-wrap
6688 msgid ""
6689 " int\n"
6690 " guestfs_aug_load (guestfs_h *g);\n"
6691 "\n"
6692 msgstr ""
6693
6694 # type: textblock
6695 #. type: textblock
6696 #: ../src/guestfs-actions.pod:437 ../fish/guestfish-actions.pod:288
6697 msgid "Load files into the tree."
6698 msgstr ""
6699
6700 # type: textblock
6701 #. type: textblock
6702 #: ../src/guestfs-actions.pod:439 ../fish/guestfish-actions.pod:290
6703 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6704 msgstr ""
6705
6706 # type: =head2
6707 #. type: =head2
6708 #: ../src/guestfs-actions.pod:446
6709 msgid "guestfs_aug_ls"
6710 msgstr ""
6711
6712 # type: verbatim
6713 #. type: verbatim
6714 #: ../src/guestfs-actions.pod:448
6715 #, no-wrap
6716 msgid ""
6717 " char **\n"
6718 " guestfs_aug_ls (guestfs_h *g,\n"
6719 "                 const char *augpath);\n"
6720 "\n"
6721 msgstr ""
6722
6723 # type: textblock
6724 #. type: textblock
6725 #: ../src/guestfs-actions.pod:452
6726 msgid ""
6727 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
6728 "sorting the resulting nodes into alphabetical order."
6729 msgstr ""
6730
6731 # type: textblock
6732 #. type: textblock
6733 #: ../src/guestfs-actions.pod:455 ../src/guestfs-actions.pod:471
6734 #: ../src/guestfs-actions.pod:617 ../src/guestfs-actions.pod:1065
6735 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1375
6736 #: ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1497
6737 #: ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:2178
6738 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2213
6739 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2280
6740 #: ../src/guestfs-actions.pod:2351 ../src/guestfs-actions.pod:2400
6741 #: ../src/guestfs-actions.pod:2611 ../src/guestfs-actions.pod:2861
6742 #: ../src/guestfs-actions.pod:3129 ../src/guestfs-actions.pod:3414
6743 #: ../src/guestfs-actions.pod:3476 ../src/guestfs-actions.pod:3581
6744 #: ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4684
6745 #: ../src/guestfs-actions.pod:5204 ../src/guestfs-actions.pod:5330
6746 #: ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:6112
6747 #: ../src/guestfs-actions.pod:6173 ../src/guestfs-actions.pod:6228
6748 #: ../src/guestfs-actions.pod:6374 ../src/guestfs-actions.pod:6398
6749 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6900
6750 #: ../src/guestfs-actions.pod:6947 ../src/guestfs-actions.pod:7112
6751 #: ../src/guestfs-actions.pod:7131 ../src/guestfs-actions.pod:7216
6752 #: ../src/guestfs-actions.pod:7235 ../src/guestfs-actions.pod:7281
6753 #: ../src/guestfs-actions.pod:7300
6754 msgid ""
6755 "This function returns a NULL-terminated array of strings (like L<environ(3)"
6756 ">), or NULL if there was an error.  I<The caller must free the strings and "
6757 "the array after use>."
6758 msgstr ""
6759
6760 # type: textblock
6761 #. type: textblock
6762 #: ../src/guestfs-actions.pod:459 ../src/guestfs-actions.pod:990
6763 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1413
6764 #: ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3238
6765 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3877
6766 #: ../src/guestfs-actions.pod:4064 ../src/guestfs-actions.pod:4097
6767 #: ../src/guestfs-actions.pod:4260 ../src/guestfs-actions.pod:4688
6768 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5540
6769 #: ../src/guestfs-actions.pod:5554 ../src/guestfs-actions.pod:5566
6770 #: ../src/guestfs-actions.pod:5974 ../src/guestfs-actions.pod:6612
6771 #: ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6864
6772 #: ../src/guestfs-actions.pod:7100
6773 msgid "(Added in 0.8)"
6774 msgstr ""
6775
6776 # type: =head2
6777 #. type: =head2
6778 #: ../src/guestfs-actions.pod:461
6779 msgid "guestfs_aug_match"
6780 msgstr ""
6781
6782 # type: verbatim
6783 #. type: verbatim
6784 #: ../src/guestfs-actions.pod:463
6785 #, no-wrap
6786 msgid ""
6787 " char **\n"
6788 " guestfs_aug_match (guestfs_h *g,\n"
6789 "                    const char *augpath);\n"
6790 "\n"
6791 msgstr ""
6792
6793 # type: textblock
6794 #. type: textblock
6795 #: ../src/guestfs-actions.pod:467 ../fish/guestfish-actions.pod:304
6796 msgid ""
6797 "Returns a list of paths which match the path expression C<path>.  The "
6798 "returned paths are sufficiently qualified so that they match exactly one "
6799 "node in the current tree."
6800 msgstr ""
6801
6802 # type: =head2
6803 #. type: =head2
6804 #: ../src/guestfs-actions.pod:477
6805 msgid "guestfs_aug_mv"
6806 msgstr ""
6807
6808 # type: verbatim
6809 #. type: verbatim
6810 #: ../src/guestfs-actions.pod:479
6811 #, no-wrap
6812 msgid ""
6813 " int\n"
6814 " guestfs_aug_mv (guestfs_h *g,\n"
6815 "                 const char *src,\n"
6816 "                 const char *dest);\n"
6817 "\n"
6818 msgstr ""
6819
6820 # type: textblock
6821 #. type: textblock
6822 #: ../src/guestfs-actions.pod:484 ../fish/guestfish-actions.pod:312
6823 msgid ""
6824 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6825 "C<dest> is overwritten if it exists."
6826 msgstr ""
6827
6828 # type: =head2
6829 #. type: =head2
6830 #: ../src/guestfs-actions.pod:491
6831 msgid "guestfs_aug_rm"
6832 msgstr ""
6833
6834 # type: verbatim
6835 #. type: verbatim
6836 #: ../src/guestfs-actions.pod:493
6837 #, no-wrap
6838 msgid ""
6839 " int\n"
6840 " guestfs_aug_rm (guestfs_h *g,\n"
6841 "                 const char *augpath);\n"
6842 "\n"
6843 msgstr ""
6844
6845 # type: textblock
6846 #. type: textblock
6847 #: ../src/guestfs-actions.pod:497 ../fish/guestfish-actions.pod:319
6848 msgid "Remove C<path> and all of its children."
6849 msgstr ""
6850
6851 # type: textblock
6852 #. type: textblock
6853 #: ../src/guestfs-actions.pod:499 ../fish/guestfish-actions.pod:321
6854 msgid "On success this returns the number of entries which were removed."
6855 msgstr ""
6856
6857 # type: =head2
6858 #. type: =head2
6859 #: ../src/guestfs-actions.pod:505
6860 msgid "guestfs_aug_save"
6861 msgstr ""
6862
6863 # type: verbatim
6864 #. type: verbatim
6865 #: ../src/guestfs-actions.pod:507
6866 #, no-wrap
6867 msgid ""
6868 " int\n"
6869 " guestfs_aug_save (guestfs_h *g);\n"
6870 "\n"
6871 msgstr ""
6872
6873 # type: textblock
6874 #. type: textblock
6875 #: ../src/guestfs-actions.pod:510 ../fish/guestfish-actions.pod:327
6876 msgid "This writes all pending changes to disk."
6877 msgstr ""
6878
6879 # type: textblock
6880 #. type: textblock
6881 #: ../src/guestfs-actions.pod:512
6882 msgid ""
6883 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
6884 "are saved."
6885 msgstr ""
6886
6887 # type: =head2
6888 #. type: =head2
6889 #: ../src/guestfs-actions.pod:519
6890 msgid "guestfs_aug_set"
6891 msgstr ""
6892
6893 # type: verbatim
6894 #. type: verbatim
6895 #: ../src/guestfs-actions.pod:521
6896 #, no-wrap
6897 msgid ""
6898 " int\n"
6899 " guestfs_aug_set (guestfs_h *g,\n"
6900 "                  const char *augpath,\n"
6901 "                  const char *val);\n"
6902 "\n"
6903 msgstr ""
6904
6905 # type: textblock
6906 #. type: textblock
6907 #: ../src/guestfs-actions.pod:526 ../fish/guestfish-actions.pod:336
6908 msgid "Set the value associated with C<path> to C<val>."
6909 msgstr ""
6910
6911 # type: textblock
6912 #. type: textblock
6913 #: ../src/guestfs-actions.pod:528
6914 msgid ""
6915 "In the Augeas API, it is possible to clear a node by setting the value to "
6916 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6917 "this call.  Instead you must use the C<guestfs_aug_clear> call."
6918 msgstr ""
6919
6920 # type: =head2
6921 #. type: =head2
6922 #: ../src/guestfs-actions.pod:537
6923 msgid "guestfs_available"
6924 msgstr ""
6925
6926 # type: verbatim
6927 #. type: verbatim
6928 #: ../src/guestfs-actions.pod:539
6929 #, no-wrap
6930 msgid ""
6931 " int\n"
6932 " guestfs_available (guestfs_h *g,\n"
6933 "                    char *const *groups);\n"
6934 "\n"
6935 msgstr ""
6936
6937 # type: textblock
6938 #. type: textblock
6939 #: ../src/guestfs-actions.pod:543 ../fish/guestfish-actions.pod:347
6940 msgid ""
6941 "This command is used to check the availability of some groups of "
6942 "functionality in the appliance, which not all builds of the libguestfs "
6943 "appliance will be able to provide."
6944 msgstr ""
6945
6946 # type: textblock
6947 #. type: textblock
6948 #: ../src/guestfs-actions.pod:547
6949 msgid ""
6950 "The libguestfs groups, and the functions that those groups correspond to, "
6951 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6952 "runtime by calling C<guestfs_available_all_groups>."
6953 msgstr ""
6954
6955 # type: textblock
6956 #. type: textblock
6957 #: ../src/guestfs-actions.pod:552 ../fish/guestfish-actions.pod:356
6958 msgid ""
6959 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6960 "\"]> would check for the availability of the Linux inotify functions and "
6961 "Augeas (configuration file editing) functions."
6962 msgstr ""
6963
6964 # type: textblock
6965 #. type: textblock
6966 #: ../src/guestfs-actions.pod:557 ../fish/guestfish-actions.pod:361
6967 msgid "The command returns no error if I<all> requested groups are available."
6968 msgstr ""
6969
6970 # type: textblock
6971 #. type: textblock
6972 #: ../src/guestfs-actions.pod:559 ../fish/guestfish-actions.pod:363
6973 msgid ""
6974 "It fails with an error if one or more of the requested groups is unavailable "
6975 "in the appliance."
6976 msgstr ""
6977
6978 # type: textblock
6979 #. type: textblock
6980 #: ../src/guestfs-actions.pod:562 ../fish/guestfish-actions.pod:366
6981 msgid ""
6982 "If an unknown group name is included in the list of groups then an error is "
6983 "always returned."
6984 msgstr ""
6985
6986 # type: textblock
6987 #. type: textblock
6988 #: ../src/guestfs-actions.pod:565 ../fish/guestfish-actions.pod:369
6989 msgid "I<Notes:>"
6990 msgstr ""
6991
6992 # type: textblock
6993 #. type: textblock
6994 #: ../src/guestfs-actions.pod:571
6995 msgid "You must call C<guestfs_launch> before calling this function."
6996 msgstr ""
6997
6998 # type: textblock
6999 #. type: textblock
7000 #: ../src/guestfs-actions.pod:573 ../fish/guestfish-actions.pod:377
7001 msgid ""
7002 "The reason is because we don't know what groups are supported by the "
7003 "appliance/daemon until it is running and can be queried."
7004 msgstr ""
7005
7006 # type: textblock
7007 #. type: textblock
7008 #: ../src/guestfs-actions.pod:579 ../fish/guestfish-actions.pod:383
7009 msgid ""
7010 "If a group of functions is available, this does not necessarily mean that "
7011 "they will work.  You still have to check for errors when calling individual "
7012 "API functions even if they are available."
7013 msgstr ""
7014
7015 # type: textblock
7016 #. type: textblock
7017 #: ../src/guestfs-actions.pod:586 ../fish/guestfish-actions.pod:390
7018 msgid ""
7019 "It is usually the job of distro packagers to build complete functionality "
7020 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7021 "with all requirements satisfied, will support everything."
7022 msgstr ""
7023
7024 # type: textblock
7025 #. type: textblock
7026 #: ../src/guestfs-actions.pod:593
7027 msgid ""
7028 "This call was added in version C<1.0.80>.  In previous versions of "
7029 "libguestfs all you could do would be to speculatively execute a command to "
7030 "find out if the daemon implemented it.  See also C<guestfs_version>."
7031 msgstr ""
7032
7033 # type: textblock
7034 #. type: textblock
7035 #: ../src/guestfs-actions.pod:602 ../src/guestfs-actions.pod:1163
7036 msgid "(Added in 1.0.80)"
7037 msgstr ""
7038
7039 # type: =head2
7040 #. type: =head2
7041 #: ../src/guestfs-actions.pod:604
7042 msgid "guestfs_available_all_groups"
7043 msgstr ""
7044
7045 # type: verbatim
7046 #. type: verbatim
7047 #: ../src/guestfs-actions.pod:606
7048 #, no-wrap
7049 msgid ""
7050 " char **\n"
7051 " guestfs_available_all_groups (guestfs_h *g);\n"
7052 "\n"
7053 msgstr ""
7054
7055 # type: textblock
7056 #. type: textblock
7057 #: ../src/guestfs-actions.pod:609
7058 msgid ""
7059 "This command returns a list of all optional groups that this daemon knows "
7060 "about.  Note this returns both supported and unsupported groups.  To find "
7061 "out which ones the daemon can actually support you have to call "
7062 "C<guestfs_available> on each member of the returned list."
7063 msgstr ""
7064
7065 # type: textblock
7066 #. type: textblock
7067 #: ../src/guestfs-actions.pod:615
7068 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
7069 msgstr ""
7070
7071 # type: textblock
7072 #. type: textblock
7073 #: ../src/guestfs-actions.pod:621
7074 msgid "(Added in 1.3.15)"
7075 msgstr ""
7076
7077 # type: =head2
7078 #. type: =head2
7079 #: ../src/guestfs-actions.pod:623
7080 msgid "guestfs_base64_in"
7081 msgstr ""
7082
7083 # type: verbatim
7084 #. type: verbatim
7085 #: ../src/guestfs-actions.pod:625
7086 #, no-wrap
7087 msgid ""
7088 " int\n"
7089 " guestfs_base64_in (guestfs_h *g,\n"
7090 "                    const char *base64file,\n"
7091 "                    const char *filename);\n"
7092 "\n"
7093 msgstr ""
7094
7095 # type: textblock
7096 #. type: textblock
7097 #: ../src/guestfs-actions.pod:630 ../fish/guestfish-actions.pod:420
7098 msgid ""
7099 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7100 msgstr ""
7101
7102 # type: textblock
7103 #. type: textblock
7104 #: ../src/guestfs-actions.pod:635 ../src/guestfs-actions.pod:649
7105 msgid "(Added in 1.3.5)"
7106 msgstr ""
7107
7108 # type: =head2
7109 #. type: =head2
7110 #: ../src/guestfs-actions.pod:637
7111 msgid "guestfs_base64_out"
7112 msgstr ""
7113
7114 # type: verbatim
7115 #. type: verbatim
7116 #: ../src/guestfs-actions.pod:639
7117 #, no-wrap
7118 msgid ""
7119 " int\n"
7120 " guestfs_base64_out (guestfs_h *g,\n"
7121 "                     const char *filename,\n"
7122 "                     const char *base64file);\n"
7123 "\n"
7124 msgstr ""
7125
7126 # type: textblock
7127 #. type: textblock
7128 #: ../src/guestfs-actions.pod:644 ../fish/guestfish-actions.pod:429
7129 msgid ""
7130 "This command downloads the contents of C<filename>, writing it out to local "
7131 "file C<base64file> encoded as base64."
7132 msgstr ""
7133
7134 # type: =head2
7135 #. type: =head2
7136 #: ../src/guestfs-actions.pod:651
7137 msgid "guestfs_blockdev_flushbufs"
7138 msgstr ""
7139
7140 # type: verbatim
7141 #. type: verbatim
7142 #: ../src/guestfs-actions.pod:653
7143 #, no-wrap
7144 msgid ""
7145 " int\n"
7146 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
7147 "                             const char *device);\n"
7148 "\n"
7149 msgstr ""
7150
7151 # type: textblock
7152 #. type: textblock
7153 #: ../src/guestfs-actions.pod:657 ../fish/guestfish-actions.pod:438
7154 msgid ""
7155 "This tells the kernel to flush internal buffers associated with C<device>."
7156 msgstr ""
7157
7158 # type: textblock
7159 #. type: textblock
7160 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:677
7161 #: ../src/guestfs-actions.pod:692 ../src/guestfs-actions.pod:708
7162 #: ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:745
7163 #: ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:777
7164 #: ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805
7165 #: ../fish/guestfish-actions.pod:441 ../fish/guestfish-actions.pod:452
7166 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:471
7167 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:496
7168 #: ../fish/guestfish-actions.pod:504 ../fish/guestfish-actions.pod:515
7169 #: ../fish/guestfish-actions.pod:523 ../fish/guestfish-actions.pod:531
7170 msgid "This uses the L<blockdev(8)> command."
7171 msgstr ""
7172
7173 # type: textblock
7174 #. type: textblock
7175 #: ../src/guestfs-actions.pod:664 ../src/guestfs-actions.pod:681
7176 #: ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:712
7177 #: ../src/guestfs-actions.pod:730 ../src/guestfs-actions.pod:749
7178 #: ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:781
7179 #: ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809
7180 msgid "(Added in 0.9.3)"
7181 msgstr ""
7182
7183 # type: =head2
7184 #. type: =head2
7185 #: ../src/guestfs-actions.pod:666
7186 msgid "guestfs_blockdev_getbsz"
7187 msgstr ""
7188
7189 # type: verbatim
7190 #. type: verbatim
7191 #: ../src/guestfs-actions.pod:668
7192 #, no-wrap
7193 msgid ""
7194 " int\n"
7195 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
7196 "                          const char *device);\n"
7197 "\n"
7198 msgstr ""
7199
7200 # type: textblock
7201 #. type: textblock
7202 #: ../src/guestfs-actions.pod:672 ../fish/guestfish-actions.pod:447
7203 msgid "This returns the block size of a device."
7204 msgstr ""
7205
7206 # type: textblock
7207 #. type: textblock
7208 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:774
7209 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:512
7210 msgid ""
7211 "(Note this is different from both I<size in blocks> and I<filesystem block "
7212 "size>)."
7213 msgstr ""
7214
7215 # type: =head2
7216 #. type: =head2
7217 #: ../src/guestfs-actions.pod:683
7218 msgid "guestfs_blockdev_getro"
7219 msgstr ""
7220
7221 # type: verbatim
7222 #. type: verbatim
7223 #: ../src/guestfs-actions.pod:685
7224 #, no-wrap
7225 msgid ""
7226 " int\n"
7227 " guestfs_blockdev_getro (guestfs_h *g,\n"
7228 "                         const char *device);\n"
7229 "\n"
7230 msgstr ""
7231
7232 # type: textblock
7233 #. type: textblock
7234 #: ../src/guestfs-actions.pod:689 ../fish/guestfish-actions.pod:458
7235 msgid ""
7236 "Returns a boolean indicating if the block device is read-only (true if read-"
7237 "only, false if not)."
7238 msgstr ""
7239
7240 # type: textblock
7241 #. type: textblock
7242 #: ../src/guestfs-actions.pod:694 ../src/guestfs-actions.pod:1396
7243 #: ../src/guestfs-actions.pod:1411 ../src/guestfs-actions.pod:1891
7244 #: ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:1974
7245 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2044
7246 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:2092
7247 #: ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:2964
7248 #: ../src/guestfs-actions.pod:2983 ../src/guestfs-actions.pod:3146
7249 #: ../src/guestfs-actions.pod:3160 ../src/guestfs-actions.pod:3175
7250 #: ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3205
7251 #: ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3236
7252 #: ../src/guestfs-actions.pod:3250 ../src/guestfs-actions.pod:3263
7253 #: ../src/guestfs-actions.pod:3277 ../src/guestfs-actions.pod:3292
7254 #: ../src/guestfs-actions.pod:3307 ../src/guestfs-actions.pod:4833
7255 msgid "This function returns a C truth value on success or -1 on error."
7256 msgstr ""
7257
7258 # type: =head2
7259 #. type: =head2
7260 #: ../src/guestfs-actions.pod:698
7261 msgid "guestfs_blockdev_getsize64"
7262 msgstr ""
7263
7264 # type: verbatim
7265 #. type: verbatim
7266 #: ../src/guestfs-actions.pod:700
7267 #, no-wrap
7268 msgid ""
7269 " int64_t\n"
7270 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
7271 "                             const char *device);\n"
7272 "\n"
7273 msgstr ""
7274
7275 # type: textblock
7276 #. type: textblock
7277 #: ../src/guestfs-actions.pod:704 ../fish/guestfish-actions.pod:467
7278 msgid "This returns the size of the device in bytes."
7279 msgstr ""
7280
7281 # type: textblock
7282 #. type: textblock
7283 #: ../src/guestfs-actions.pod:706
7284 msgid "See also C<guestfs_blockdev_getsz>."
7285 msgstr ""
7286
7287 # type: =head2
7288 #. type: =head2
7289 #: ../src/guestfs-actions.pod:714
7290 msgid "guestfs_blockdev_getss"
7291 msgstr ""
7292
7293 # type: verbatim
7294 #. type: verbatim
7295 #: ../src/guestfs-actions.pod:716
7296 #, no-wrap
7297 msgid ""
7298 " int\n"
7299 " guestfs_blockdev_getss (guestfs_h *g,\n"
7300 "                         const char *device);\n"
7301 "\n"
7302 msgstr ""
7303
7304 # type: textblock
7305 #. type: textblock
7306 #: ../src/guestfs-actions.pod:720 ../fish/guestfish-actions.pod:477
7307 msgid ""
7308 "This returns the size of sectors on a block device.  Usually 512, but can be "
7309 "larger for modern devices."
7310 msgstr ""
7311
7312 # type: textblock
7313 #. type: textblock
7314 #: ../src/guestfs-actions.pod:723
7315 msgid ""
7316 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
7317 "that)."
7318 msgstr ""
7319
7320 # type: =head2
7321 #. type: =head2
7322 #: ../src/guestfs-actions.pod:732
7323 msgid "guestfs_blockdev_getsz"
7324 msgstr ""
7325
7326 # type: verbatim
7327 #. type: verbatim
7328 #: ../src/guestfs-actions.pod:734
7329 #, no-wrap
7330 msgid ""
7331 " int64_t\n"
7332 " guestfs_blockdev_getsz (guestfs_h *g,\n"
7333 "                         const char *device);\n"
7334 "\n"
7335 msgstr ""
7336
7337 # type: textblock
7338 #. type: textblock
7339 #: ../src/guestfs-actions.pod:738 ../fish/guestfish-actions.pod:489
7340 msgid ""
7341 "This returns the size of the device in units of 512-byte sectors (even if "
7342 "the sectorsize isn't 512 bytes ... weird)."
7343 msgstr ""
7344
7345 # type: textblock
7346 #. type: textblock
7347 #: ../src/guestfs-actions.pod:741
7348 msgid ""
7349 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
7350 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
7351 msgstr ""
7352
7353 # type: =head2
7354 #. type: =head2
7355 #: ../src/guestfs-actions.pod:751
7356 msgid "guestfs_blockdev_rereadpt"
7357 msgstr ""
7358
7359 # type: verbatim
7360 #. type: verbatim
7361 #: ../src/guestfs-actions.pod:753
7362 #, no-wrap
7363 msgid ""
7364 " int\n"
7365 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
7366 "                            const char *device);\n"
7367 "\n"
7368 msgstr ""
7369
7370 # type: textblock
7371 #. type: textblock
7372 #: ../src/guestfs-actions.pod:757 ../fish/guestfish-actions.pod:502
7373 msgid "Reread the partition table on C<device>."
7374 msgstr ""
7375
7376 # type: =head2
7377 #. type: =head2
7378 #: ../src/guestfs-actions.pod:765
7379 msgid "guestfs_blockdev_setbsz"
7380 msgstr ""
7381
7382 # type: verbatim
7383 #. type: verbatim
7384 #: ../src/guestfs-actions.pod:767
7385 #, no-wrap
7386 msgid ""
7387 " int\n"
7388 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
7389 "                          const char *device,\n"
7390 "                          int blocksize);\n"
7391 "\n"
7392 msgstr ""
7393
7394 # type: textblock
7395 #. type: textblock
7396 #: ../src/guestfs-actions.pod:772 ../fish/guestfish-actions.pod:510
7397 msgid "This sets the block size of a device."
7398 msgstr ""
7399
7400 # type: =head2
7401 #. type: =head2
7402 #: ../src/guestfs-actions.pod:783
7403 msgid "guestfs_blockdev_setro"
7404 msgstr ""
7405
7406 # type: verbatim
7407 #. type: verbatim
7408 #: ../src/guestfs-actions.pod:785
7409 #, no-wrap
7410 msgid ""
7411 " int\n"
7412 " guestfs_blockdev_setro (guestfs_h *g,\n"
7413 "                         const char *device);\n"
7414 "\n"
7415 msgstr ""
7416
7417 # type: textblock
7418 #. type: textblock
7419 #: ../src/guestfs-actions.pod:789 ../fish/guestfish-actions.pod:521
7420 msgid "Sets the block device named C<device> to read-only."
7421 msgstr ""
7422
7423 # type: =head2
7424 #. type: =head2
7425 #: ../src/guestfs-actions.pod:797
7426 msgid "guestfs_blockdev_setrw"
7427 msgstr ""
7428
7429 # type: verbatim
7430 #. type: verbatim
7431 #: ../src/guestfs-actions.pod:799
7432 #, no-wrap
7433 msgid ""
7434 " int\n"
7435 " guestfs_blockdev_setrw (guestfs_h *g,\n"
7436 "                         const char *device);\n"
7437 "\n"
7438 msgstr ""
7439
7440 # type: textblock
7441 #. type: textblock
7442 #: ../src/guestfs-actions.pod:803 ../fish/guestfish-actions.pod:529
7443 msgid "Sets the block device named C<device> to read-write."
7444 msgstr ""
7445
7446 # type: =head2
7447 #. type: =head2
7448 #: ../src/guestfs-actions.pod:811
7449 msgid "guestfs_case_sensitive_path"
7450 msgstr ""
7451
7452 # type: verbatim
7453 #. type: verbatim
7454 #: ../src/guestfs-actions.pod:813
7455 #, no-wrap
7456 msgid ""
7457 " char *\n"
7458 " guestfs_case_sensitive_path (guestfs_h *g,\n"
7459 "                              const char *path);\n"
7460 "\n"
7461 msgstr ""
7462
7463 # type: textblock
7464 #. type: textblock
7465 #: ../src/guestfs-actions.pod:817 ../fish/guestfish-actions.pod:537
7466 msgid ""
7467 "This can be used to resolve case insensitive paths on a filesystem which is "
7468 "case sensitive.  The use case is to resolve paths which you have read from "
7469 "Windows configuration files or the Windows Registry, to the true path."
7470 msgstr ""
7471
7472 # type: textblock
7473 #. type: textblock
7474 #: ../src/guestfs-actions.pod:822 ../fish/guestfish-actions.pod:542
7475 msgid ""
7476 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7477 "(and probably others), which is that although the underlying filesystem is "
7478 "case-insensitive, the driver exports the filesystem to Linux as case-"
7479 "sensitive."
7480 msgstr ""
7481
7482 # type: textblock
7483 #. type: textblock
7484 #: ../src/guestfs-actions.pod:827 ../fish/guestfish-actions.pod:547
7485 msgid ""
7486 "One consequence of this is that special directories such as C<c:\\windows> "
7487 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7488 "precise details of how they were created.  In Windows itself this would not "
7489 "be a problem."
7490 msgstr ""
7491
7492 # type: textblock
7493 #. type: textblock
7494 #: ../src/guestfs-actions.pod:833 ../fish/guestfish-actions.pod:553
7495 msgid ""
7496 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7497 "#posixfilenames1>"
7498 msgstr ""
7499
7500 # type: textblock
7501 #. type: textblock
7502 #: ../src/guestfs-actions.pod:836 ../fish/guestfish-actions.pod:556
7503 msgid ""
7504 "This function resolves the true case of each element in the path and returns "
7505 "the case-sensitive path."
7506 msgstr ""
7507
7508 # type: textblock
7509 #. type: textblock
7510 #: ../src/guestfs-actions.pod:839
7511 msgid ""
7512 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
7513 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
7514 "how the directories were originally created under Windows)."
7515 msgstr ""
7516
7517 # type: textblock
7518 #. type: textblock
7519 #: ../src/guestfs-actions.pod:844 ../fish/guestfish-actions.pod:564
7520 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7521 msgstr ""
7522
7523 # type: textblock
7524 #. type: textblock
7525 #: ../src/guestfs-actions.pod:847
7526 msgid "See also C<guestfs_realpath>."
7527 msgstr ""
7528
7529 # type: textblock
7530 #. type: textblock
7531 #: ../src/guestfs-actions.pod:852 ../src/guestfs-actions.pod:6792
7532 msgid "(Added in 1.0.75)"
7533 msgstr ""
7534
7535 # type: =head2
7536 #. type: =head2
7537 #: ../src/guestfs-actions.pod:854
7538 msgid "guestfs_cat"
7539 msgstr ""
7540
7541 # type: verbatim
7542 #. type: verbatim
7543 #: ../src/guestfs-actions.pod:856
7544 #, no-wrap
7545 msgid ""
7546 " char *\n"
7547 " guestfs_cat (guestfs_h *g,\n"
7548 "              const char *path);\n"
7549 "\n"
7550 msgstr ""
7551
7552 # type: textblock
7553 #. type: textblock
7554 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5320
7555 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:3554
7556 msgid "Return the contents of the file named C<path>."
7557 msgstr ""
7558
7559 # type: textblock
7560 #. type: textblock
7561 #: ../src/guestfs-actions.pod:862
7562 msgid ""
7563 "Note that this function cannot correctly handle binary files (specifically, "
7564 "files containing C<\\0> character which is treated as end of string).  For "
7565 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
7566 "functions which have a more complex interface."
7567 msgstr ""
7568
7569 # type: textblock
7570 #. type: textblock
7571 #: ../src/guestfs-actions.pod:870 ../src/guestfs-actions.pod:1049
7572 #: ../src/guestfs-actions.pod:1069 ../src/guestfs-actions.pod:1360
7573 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1482
7574 #: ../src/guestfs-actions.pod:1501 ../src/guestfs-actions.pod:1750
7575 #: ../src/guestfs-actions.pod:2198 ../src/guestfs-actions.pod:2217
7576 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2284
7577 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2330
7578 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5128
7579 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5285
7580 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:6177
7581 #: ../src/guestfs-actions.pod:6232 ../src/guestfs-actions.pod:6378
7582 #: ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:7064
7583 #: ../src/guestfs-actions.pod:7090 ../src/guestfs-actions.pod:7116
7584 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7220
7585 #: ../src/guestfs-actions.pod:7239 ../src/guestfs-actions.pod:7285
7586 #: ../src/guestfs-actions.pod:7304 ../fish/guestfish-actions.pod:580
7587 #: ../fish/guestfish-actions.pod:715 ../fish/guestfish-actions.pod:727
7588 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:913
7589 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990
7590 #: ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1480
7591 #: ../fish/guestfish-actions.pod:1490 ../fish/guestfish-actions.pod:1518
7592 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:1543
7593 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:3424
7594 #: ../fish/guestfish-actions.pod:3439 ../fish/guestfish-actions.pod:3515
7595 #: ../fish/guestfish-actions.pod:3532 ../fish/guestfish-actions.pod:3547
7596 #: ../fish/guestfish-actions.pod:4143 ../fish/guestfish-actions.pod:4189
7597 #: ../fish/guestfish-actions.pod:4274 ../fish/guestfish-actions.pod:4289
7598 #: ../fish/guestfish-actions.pod:4699 ../fish/guestfish-actions.pod:4717
7599 #: ../fish/guestfish-actions.pod:4734 ../fish/guestfish-actions.pod:4744
7600 #: ../fish/guestfish-actions.pod:4792 ../fish/guestfish-actions.pod:4802
7601 #: ../fish/guestfish-actions.pod:4831 ../fish/guestfish-actions.pod:4841
7602 msgid ""
7603 "Because of the message protocol, there is a transfer limit of somewhere "
7604 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7605 msgstr ""
7606
7607 # type: textblock
7608 #. type: textblock
7609 #: ../src/guestfs-actions.pod:873 ../src/guestfs-actions.pod:3418
7610 #: ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3497
7611 #: ../src/guestfs-actions.pod:3585 ../src/guestfs-actions.pod:3990
7612 #: ../src/guestfs-actions.pod:4004 ../src/guestfs-actions.pod:5208
7613 #: ../src/guestfs-actions.pod:5222 ../src/guestfs-actions.pod:6951
7614 #: ../src/guestfs-actions.pod:6965
7615 msgid "(Added in 0.4)"
7616 msgstr ""
7617
7618 # type: =head2
7619 #. type: =head2
7620 #: ../src/guestfs-actions.pod:875
7621 msgid "guestfs_checksum"
7622 msgstr ""
7623
7624 # type: verbatim
7625 #. type: verbatim
7626 #: ../src/guestfs-actions.pod:877
7627 #, no-wrap
7628 msgid ""
7629 " char *\n"
7630 " guestfs_checksum (guestfs_h *g,\n"
7631 "                   const char *csumtype,\n"
7632 "                   const char *path);\n"
7633 "\n"
7634 msgstr ""
7635
7636 # type: textblock
7637 #. type: textblock
7638 #: ../src/guestfs-actions.pod:882 ../fish/guestfish-actions.pod:587
7639 msgid ""
7640 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7641 msgstr ""
7642
7643 # type: textblock
7644 #. type: textblock
7645 #: ../src/guestfs-actions.pod:885 ../fish/guestfish-actions.pod:590
7646 msgid ""
7647 "The type of checksum to compute is given by the C<csumtype> parameter which "
7648 "must have one of the following values:"
7649 msgstr ""
7650
7651 # type: =item
7652 #. type: =item
7653 #: ../src/guestfs-actions.pod:890 ../fish/guestfish-actions.pod:595
7654 msgid "C<crc>"
7655 msgstr ""
7656
7657 # type: textblock
7658 #. type: textblock
7659 #: ../src/guestfs-actions.pod:892 ../fish/guestfish-actions.pod:597
7660 msgid ""
7661 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7662 "C<cksum> command."
7663 msgstr ""
7664
7665 # type: =item
7666 #. type: =item
7667 #: ../src/guestfs-actions.pod:895 ../fish/guestfish-actions.pod:600
7668 msgid "C<md5>"
7669 msgstr ""
7670
7671 # type: textblock
7672 #. type: textblock
7673 #: ../src/guestfs-actions.pod:897 ../fish/guestfish-actions.pod:602
7674 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7675 msgstr ""
7676
7677 # type: =item
7678 #. type: =item
7679 #: ../src/guestfs-actions.pod:899 ../fish/guestfish-actions.pod:604
7680 msgid "C<sha1>"
7681 msgstr ""
7682
7683 # type: textblock
7684 #. type: textblock
7685 #: ../src/guestfs-actions.pod:901 ../fish/guestfish-actions.pod:606
7686 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7687 msgstr ""
7688
7689 # type: =item
7690 #. type: =item
7691 #: ../src/guestfs-actions.pod:903 ../fish/guestfish-actions.pod:608
7692 msgid "C<sha224>"
7693 msgstr ""
7694
7695 # type: textblock
7696 #. type: textblock
7697 #: ../src/guestfs-actions.pod:905 ../fish/guestfish-actions.pod:610
7698 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7699 msgstr ""
7700
7701 # type: =item
7702 #. type: =item
7703 #: ../src/guestfs-actions.pod:907 ../fish/guestfish-actions.pod:612
7704 msgid "C<sha256>"
7705 msgstr ""
7706
7707 # type: textblock
7708 #. type: textblock
7709 #: ../src/guestfs-actions.pod:909 ../fish/guestfish-actions.pod:614
7710 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7711 msgstr ""
7712
7713 # type: =item
7714 #. type: =item
7715 #: ../src/guestfs-actions.pod:911 ../fish/guestfish-actions.pod:616
7716 msgid "C<sha384>"
7717 msgstr ""
7718
7719 # type: textblock
7720 #. type: textblock
7721 #: ../src/guestfs-actions.pod:913 ../fish/guestfish-actions.pod:618
7722 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7723 msgstr ""
7724
7725 # type: =item
7726 #. type: =item
7727 #: ../src/guestfs-actions.pod:915 ../fish/guestfish-actions.pod:620
7728 msgid "C<sha512>"
7729 msgstr ""
7730
7731 # type: textblock
7732 #. type: textblock
7733 #: ../src/guestfs-actions.pod:917 ../fish/guestfish-actions.pod:622
7734 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7735 msgstr ""
7736
7737 # type: textblock
7738 #. type: textblock
7739 #: ../src/guestfs-actions.pod:921 ../fish/guestfish-actions.pod:626
7740 msgid "The checksum is returned as a printable string."
7741 msgstr ""
7742
7743 # type: textblock
7744 #. type: textblock
7745 #: ../src/guestfs-actions.pod:923
7746 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
7747 msgstr ""
7748
7749 # type: textblock
7750 #. type: textblock
7751 #: ../src/guestfs-actions.pod:925
7752 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
7753 msgstr ""
7754
7755 # type: textblock
7756 #. type: textblock
7757 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:1238
7758 #: ../src/guestfs-actions.pod:2060 ../src/guestfs-actions.pod:3162
7759 #: ../src/guestfs-actions.pod:3191 ../src/guestfs-actions.pod:3252
7760 #: ../src/guestfs-actions.pod:3279 ../src/guestfs-actions.pod:6648
7761 msgid "(Added in 1.0.2)"
7762 msgstr ""
7763
7764 # type: =head2
7765 #. type: =head2
7766 #: ../src/guestfs-actions.pod:932
7767 msgid "guestfs_checksum_device"
7768 msgstr ""
7769
7770 # type: verbatim
7771 #. type: verbatim
7772 #: ../src/guestfs-actions.pod:934
7773 #, no-wrap
7774 msgid ""
7775 " char *\n"
7776 " guestfs_checksum_device (guestfs_h *g,\n"
7777 "                          const char *csumtype,\n"
7778 "                          const char *device);\n"
7779 "\n"
7780 msgstr ""
7781
7782 # type: textblock
7783 #. type: textblock
7784 #: ../src/guestfs-actions.pod:939
7785 msgid ""
7786 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7787 "device named C<device>.  For the types of checksums supported see the "
7788 "C<guestfs_checksum> command."
7789 msgstr ""
7790
7791 # type: textblock
7792 #. type: textblock
7793 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:4739
7794 #: ../src/guestfs-actions.pod:4798 ../src/guestfs-actions.pod:4835
7795 #: ../src/guestfs-actions.pod:4853 ../src/guestfs-actions.pod:5029
7796 #: ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6571
7797 #: ../src/guestfs-actions.pod:6977
7798 msgid "(Added in 1.3.2)"
7799 msgstr ""
7800
7801 # type: =head2
7802 #. type: =head2
7803 #: ../src/guestfs-actions.pod:948
7804 msgid "guestfs_checksums_out"
7805 msgstr ""
7806
7807 # type: verbatim
7808 #. type: verbatim
7809 #: ../src/guestfs-actions.pod:950
7810 #, no-wrap
7811 msgid ""
7812 " int\n"
7813 " guestfs_checksums_out (guestfs_h *g,\n"
7814 "                        const char *csumtype,\n"
7815 "                        const char *directory,\n"
7816 "                        const char *sumsfile);\n"
7817 "\n"
7818 msgstr ""
7819
7820 # type: textblock
7821 #. type: textblock
7822 #: ../src/guestfs-actions.pod:956 ../fish/guestfish-actions.pod:644
7823 msgid ""
7824 "This command computes the checksums of all regular files in C<directory> and "
7825 "then emits a list of those checksums to the local output file C<sumsfile>."
7826 msgstr ""
7827
7828 # type: textblock
7829 #. type: textblock
7830 #: ../src/guestfs-actions.pod:960 ../fish/guestfish-actions.pod:648
7831 msgid ""
7832 "This can be used for verifying the integrity of a virtual machine.  However "
7833 "to be properly secure you should pay attention to the output of the checksum "
7834 "command (it uses the ones from GNU coreutils).  In particular when the "
7835 "filename is not printable, coreutils uses a special backslash syntax.  For "
7836 "more information, see the GNU coreutils info file."
7837 msgstr ""
7838
7839 # type: textblock
7840 #. type: textblock
7841 #: ../src/guestfs-actions.pod:970
7842 msgid "(Added in 1.3.7)"
7843 msgstr ""
7844
7845 # type: =head2
7846 #. type: =head2
7847 #: ../src/guestfs-actions.pod:972
7848 msgid "guestfs_chmod"
7849 msgstr ""
7850
7851 # type: verbatim
7852 #. type: verbatim
7853 #: ../src/guestfs-actions.pod:974
7854 #, no-wrap
7855 msgid ""
7856 " int\n"
7857 " guestfs_chmod (guestfs_h *g,\n"
7858 "                int mode,\n"
7859 "                const char *path);\n"
7860 "\n"
7861 msgstr ""
7862
7863 # type: textblock
7864 #. type: textblock
7865 #: ../src/guestfs-actions.pod:979 ../fish/guestfish-actions.pod:662
7866 msgid ""
7867 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7868 "supported."
7869 msgstr ""
7870
7871 # type: textblock
7872 #. type: textblock
7873 #: ../src/guestfs-actions.pod:982 ../fish/guestfish-actions.pod:665
7874 msgid ""
7875 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7876 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7877 "C<700>."
7878 msgstr ""
7879
7880 # type: textblock
7881 #. type: textblock
7882 #: ../src/guestfs-actions.pod:986 ../src/guestfs-actions.pod:4241
7883 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4457
7884 #: ../src/guestfs-actions.pod:4476 ../fish/guestfish-actions.pod:669
7885 #: ../fish/guestfish-actions.pod:2870 ../fish/guestfish-actions.pod:2999
7886 #: ../fish/guestfish-actions.pod:3009 ../fish/guestfish-actions.pod:3019
7887 msgid "The mode actually set is affected by the umask."
7888 msgstr ""
7889
7890 # type: =head2
7891 #. type: =head2
7892 #: ../src/guestfs-actions.pod:992
7893 msgid "guestfs_chown"
7894 msgstr ""
7895
7896 # type: verbatim
7897 #. type: verbatim
7898 #: ../src/guestfs-actions.pod:994
7899 #, no-wrap
7900 msgid ""
7901 " int\n"
7902 " guestfs_chown (guestfs_h *g,\n"
7903 "                int owner,\n"
7904 "                int group,\n"
7905 "                const char *path);\n"
7906 "\n"
7907 msgstr ""
7908
7909 # type: textblock
7910 #. type: textblock
7911 #: ../src/guestfs-actions.pod:1000 ../fish/guestfish-actions.pod:675
7912 msgid "Change the file owner to C<owner> and group to C<group>."
7913 msgstr ""
7914
7915 # type: textblock
7916 #. type: textblock
7917 #: ../src/guestfs-actions.pod:1002 ../src/guestfs-actions.pod:3349
7918 #: ../fish/guestfish-actions.pod:677 ../fish/guestfish-actions.pod:2328
7919 msgid ""
7920 "Only numeric uid and gid are supported.  If you want to use names, you will "
7921 "need to locate and parse the password file yourself (Augeas support makes "
7922 "this relatively easy)."
7923 msgstr ""
7924
7925 # type: =head2
7926 #. type: =head2
7927 #: ../src/guestfs-actions.pod:1010
7928 msgid "guestfs_command"
7929 msgstr ""
7930
7931 # type: verbatim
7932 #. type: verbatim
7933 #: ../src/guestfs-actions.pod:1012
7934 #, no-wrap
7935 msgid ""
7936 " char *\n"
7937 " guestfs_command (guestfs_h *g,\n"
7938 "                  char *const *arguments);\n"
7939 "\n"
7940 msgstr ""
7941
7942 # type: textblock
7943 #. type: textblock
7944 #: ../src/guestfs-actions.pod:1016 ../fish/guestfish-actions.pod:685
7945 msgid ""
7946 "This call runs a command from the guest filesystem.  The filesystem must be "
7947 "mounted, and must contain a compatible operating system (ie. something "
7948 "Linux, with the same or compatible processor architecture)."
7949 msgstr ""
7950
7951 # type: textblock
7952 #. type: textblock
7953 #: ../src/guestfs-actions.pod:1021
7954 msgid ""
7955 "The single parameter is an argv-style list of arguments.  The first element "
7956 "is the name of the program to run.  Subsequent elements are parameters.  The "
7957 "list must be non-empty (ie. must contain a program name).  Note that the "
7958 "command runs directly, and is I<not> invoked via the shell (see "
7959 "C<guestfs_sh>)."
7960 msgstr ""
7961
7962 # type: textblock
7963 #. type: textblock
7964 #: ../src/guestfs-actions.pod:1028 ../fish/guestfish-actions.pod:697
7965 msgid "The return value is anything printed to I<stdout> by the command."
7966 msgstr ""
7967
7968 # type: textblock
7969 #. type: textblock
7970 #: ../src/guestfs-actions.pod:1031 ../fish/guestfish-actions.pod:700
7971 msgid ""
7972 "If the command returns a non-zero exit status, then this function returns an "
7973 "error message.  The error message string is the content of I<stderr> from "
7974 "the command."
7975 msgstr ""
7976
7977 # type: textblock
7978 #. type: textblock
7979 #: ../src/guestfs-actions.pod:1035 ../fish/guestfish-actions.pod:704
7980 msgid ""
7981 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7982 "bin>.  If you require a program from another location, you should provide "
7983 "the full path in the first parameter."
7984 msgstr ""
7985
7986 # type: textblock
7987 #. type: textblock
7988 #: ../src/guestfs-actions.pod:1040 ../fish/guestfish-actions.pod:709
7989 msgid ""
7990 "Shared libraries and data files required by the program must be available on "
7991 "filesystems which are mounted in the correct places.  It is the caller's "
7992 "responsibility to ensure all filesystems that are needed are mounted at the "
7993 "right locations."
7994 msgstr ""
7995
7996 # type: textblock
7997 #. type: textblock
7998 #: ../src/guestfs-actions.pod:1052 ../src/guestfs-actions.pod:1072
7999 #: ../src/guestfs-actions.pod:1535
8000 msgid "(Added in 0.9.1)"
8001 msgstr ""
8002
8003 # type: =head2
8004 #. type: =head2
8005 #: ../src/guestfs-actions.pod:1054
8006 msgid "guestfs_command_lines"
8007 msgstr ""
8008
8009 # type: verbatim
8010 #. type: verbatim
8011 #: ../src/guestfs-actions.pod:1056
8012 #, no-wrap
8013 msgid ""
8014 " char **\n"
8015 " guestfs_command_lines (guestfs_h *g,\n"
8016 "                        char *const *arguments);\n"
8017 "\n"
8018 msgstr ""
8019
8020 # type: textblock
8021 #. type: textblock
8022 #: ../src/guestfs-actions.pod:1060
8023 msgid ""
8024 "This is the same as C<guestfs_command>, but splits the result into a list of "
8025 "lines."
8026 msgstr ""
8027
8028 # type: textblock
8029 #. type: textblock
8030 #: ../src/guestfs-actions.pod:1063
8031 msgid "See also: C<guestfs_sh_lines>"
8032 msgstr ""
8033
8034 # type: =head2
8035 #. type: =head2
8036 #: ../src/guestfs-actions.pod:1074
8037 msgid "guestfs_config"
8038 msgstr ""
8039
8040 # type: verbatim
8041 #. type: verbatim
8042 #: ../src/guestfs-actions.pod:1076
8043 #, no-wrap
8044 msgid ""
8045 " int\n"
8046 " guestfs_config (guestfs_h *g,\n"
8047 "                 const char *qemuparam,\n"
8048 "                 const char *qemuvalue);\n"
8049 "\n"
8050 msgstr ""
8051
8052 # type: textblock
8053 #. type: textblock
8054 #: ../src/guestfs-actions.pod:1081 ../fish/guestfish-actions.pod:734
8055 msgid ""
8056 "This can be used to add arbitrary qemu command line parameters of the form "
8057 "C<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8058 "setting some parameters which would interfere with parameters that we use."
8059 msgstr ""
8060
8061 # type: textblock
8062 #. type: textblock
8063 #: ../src/guestfs-actions.pod:1086 ../fish/guestfish-actions.pod:739
8064 msgid "The first character of C<param> string must be a C<-> (dash)."
8065 msgstr ""
8066
8067 # type: textblock
8068 #. type: textblock
8069 #: ../src/guestfs-actions.pod:1088 ../fish/guestfish-actions.pod:741
8070 msgid "C<value> can be NULL."
8071 msgstr ""
8072
8073 # type: =head2
8074 #. type: =head2
8075 #: ../src/guestfs-actions.pod:1094
8076 msgid "guestfs_copy_size"
8077 msgstr ""
8078
8079 # type: verbatim
8080 #. type: verbatim
8081 #: ../src/guestfs-actions.pod:1096
8082 #, no-wrap
8083 msgid ""
8084 " int\n"
8085 " guestfs_copy_size (guestfs_h *g,\n"
8086 "                    const char *src,\n"
8087 "                    const char *dest,\n"
8088 "                    int64_t size);\n"
8089 "\n"
8090 msgstr ""
8091
8092 # type: textblock
8093 #. type: textblock
8094 #: ../src/guestfs-actions.pod:1102 ../fish/guestfish-actions.pod:747
8095 msgid ""
8096 "This command copies exactly C<size> bytes from one source device or file "
8097 "C<src> to another destination device or file C<dest>."
8098 msgstr ""
8099
8100 # type: textblock
8101 #. type: textblock
8102 #: ../src/guestfs-actions.pod:1105 ../fish/guestfish-actions.pod:750
8103 msgid ""
8104 "Note this will fail if the source is too short or if the destination is not "
8105 "large enough."
8106 msgstr ""
8107
8108 # type: textblock
8109 #. type: textblock
8110 #: ../src/guestfs-actions.pod:1110 ../src/guestfs-actions.pod:1233
8111 #: ../src/guestfs-actions.pod:1264 ../src/guestfs-actions.pod:1684
8112 #: ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:6643
8113 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:7156
8114 #: ../src/guestfs-actions.pod:7175
8115 msgid ""
8116 "This long-running command can generate progress notification messages so "
8117 "that the caller can display a progress bar or indicator.  To receive these "
8118 "messages, the caller must register a progress callback.  See L<guestfs(3)/"
8119 "guestfs_set_progress_callback>."
8120 msgstr ""
8121
8122 # type: textblock
8123 #. type: textblock
8124 #: ../src/guestfs-actions.pod:1115 ../src/guestfs-actions.pod:4017
8125 #: ../src/guestfs-actions.pod:5235 ../src/guestfs-actions.pod:6884
8126 #: ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6990
8127 msgid "(Added in 1.0.87)"
8128 msgstr ""
8129
8130 # type: =head2
8131 #. type: =head2
8132 #: ../src/guestfs-actions.pod:1117
8133 msgid "guestfs_cp"
8134 msgstr ""
8135
8136 # type: verbatim
8137 #. type: verbatim
8138 #: ../src/guestfs-actions.pod:1119
8139 #, no-wrap
8140 msgid ""
8141 " int\n"
8142 " guestfs_cp (guestfs_h *g,\n"
8143 "             const char *src,\n"
8144 "             const char *dest);\n"
8145 "\n"
8146 msgstr ""
8147
8148 # type: textblock
8149 #. type: textblock
8150 #: ../src/guestfs-actions.pod:1124 ../fish/guestfish-actions.pod:757
8151 msgid ""
8152 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8153 "destination filename or destination directory."
8154 msgstr ""
8155
8156 # type: textblock
8157 #. type: textblock
8158 #: ../src/guestfs-actions.pod:1129 ../src/guestfs-actions.pod:1143
8159 #: ../src/guestfs-actions.pod:1215 ../src/guestfs-actions.pod:1289
8160 #: ../src/guestfs-actions.pod:1398 ../src/guestfs-actions.pod:4702
8161 #: ../src/guestfs-actions.pod:5079
8162 msgid "(Added in 1.0.18)"
8163 msgstr ""
8164
8165 # type: =head2
8166 #. type: =head2
8167 #: ../src/guestfs-actions.pod:1131
8168 msgid "guestfs_cp_a"
8169 msgstr ""
8170
8171 # type: verbatim
8172 #. type: verbatim
8173 #: ../src/guestfs-actions.pod:1133
8174 #, no-wrap
8175 msgid ""
8176 " int\n"
8177 " guestfs_cp_a (guestfs_h *g,\n"
8178 "               const char *src,\n"
8179 "               const char *dest);\n"
8180 "\n"
8181 msgstr ""
8182
8183 # type: textblock
8184 #. type: textblock
8185 #: ../src/guestfs-actions.pod:1138 ../fish/guestfish-actions.pod:764
8186 msgid ""
8187 "This copies a file or directory from C<src> to C<dest> recursively using the "
8188 "C<cp -a> command."
8189 msgstr ""
8190
8191 # type: =head2
8192 #. type: =head2
8193 #: ../src/guestfs-actions.pod:1145
8194 msgid "guestfs_dd"
8195 msgstr ""
8196
8197 # type: verbatim
8198 #. type: verbatim
8199 #: ../src/guestfs-actions.pod:1147
8200 #, no-wrap
8201 msgid ""
8202 " int\n"
8203 " guestfs_dd (guestfs_h *g,\n"
8204 "             const char *src,\n"
8205 "             const char *dest);\n"
8206 "\n"
8207 msgstr ""
8208
8209 # type: textblock
8210 #. type: textblock
8211 #: ../src/guestfs-actions.pod:1152 ../fish/guestfish-actions.pod:771
8212 msgid ""
8213 "This command copies from one source device or file C<src> to another "
8214 "destination device or file C<dest>.  Normally you would use this to copy to "
8215 "or from a device or partition, for example to duplicate a filesystem."
8216 msgstr ""
8217
8218 # type: textblock
8219 #. type: textblock
8220 #: ../src/guestfs-actions.pod:1157
8221 msgid ""
8222 "If the destination is a device, it must be as large or larger than the "
8223 "source file or device, otherwise the copy will fail.  This command cannot do "
8224 "partial copies (see C<guestfs_copy_size>)."
8225 msgstr ""
8226
8227 # type: =head2
8228 #. type: =head2
8229 #: ../src/guestfs-actions.pod:1165
8230 msgid "guestfs_df"
8231 msgstr ""
8232
8233 # type: verbatim
8234 #. type: verbatim
8235 #: ../src/guestfs-actions.pod:1167
8236 #, no-wrap
8237 msgid ""
8238 " char *\n"
8239 " guestfs_df (guestfs_h *g);\n"
8240 "\n"
8241 msgstr ""
8242
8243 # type: textblock
8244 #. type: textblock
8245 #: ../src/guestfs-actions.pod:1170 ../fish/guestfish-actions.pod:784
8246 msgid "This command runs the C<df> command to report disk space used."
8247 msgstr ""
8248
8249 # type: textblock
8250 #. type: textblock
8251 #: ../src/guestfs-actions.pod:1172 ../src/guestfs-actions.pod:1189
8252 msgid ""
8253 "This command is mostly useful for interactive sessions.  It is I<not> "
8254 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
8255 "from programs."
8256 msgstr ""
8257
8258 # type: textblock
8259 #. type: textblock
8260 #: ../src/guestfs-actions.pod:1179 ../src/guestfs-actions.pod:1196
8261 #: ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:2263
8262 #: ../src/guestfs-actions.pod:2287 ../src/guestfs-actions.pod:2355
8263 #: ../src/guestfs-actions.pod:4127 ../src/guestfs-actions.pod:4602
8264 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6405
8265 #: ../src/guestfs-actions.pod:7023 ../src/guestfs-actions.pod:7036
8266 #: ../src/guestfs-actions.pod:7049
8267 msgid "(Added in 1.0.54)"
8268 msgstr ""
8269
8270 # type: =head2
8271 #. type: =head2
8272 #: ../src/guestfs-actions.pod:1181
8273 msgid "guestfs_df_h"
8274 msgstr ""
8275
8276 # type: verbatim
8277 #. type: verbatim
8278 #: ../src/guestfs-actions.pod:1183
8279 #, no-wrap
8280 msgid ""
8281 " char *\n"
8282 " guestfs_df_h (guestfs_h *g);\n"
8283 "\n"
8284 msgstr ""
8285
8286 # type: textblock
8287 #. type: textblock
8288 #: ../src/guestfs-actions.pod:1186 ../fish/guestfish-actions.pod:794
8289 msgid ""
8290 "This command runs the C<df -h> command to report disk space used in human-"
8291 "readable format."
8292 msgstr ""
8293
8294 # type: =head2
8295 #. type: =head2
8296 #: ../src/guestfs-actions.pod:1198
8297 msgid "guestfs_dmesg"
8298 msgstr ""
8299
8300 # type: verbatim
8301 #. type: verbatim
8302 #: ../src/guestfs-actions.pod:1200
8303 #, no-wrap
8304 msgid ""
8305 " char *\n"
8306 " guestfs_dmesg (guestfs_h *g);\n"
8307 "\n"
8308 msgstr ""
8309
8310 # type: textblock
8311 #. type: textblock
8312 #: ../src/guestfs-actions.pod:1203 ../fish/guestfish-actions.pod:805
8313 msgid ""
8314 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8315 "This is sometimes useful for extended debugging of problems."
8316 msgstr ""
8317
8318 # type: textblock
8319 #. type: textblock
8320 #: ../src/guestfs-actions.pod:1207
8321 msgid ""
8322 "Another way to get the same information is to enable verbose messages with "
8323 "C<guestfs_set_verbose> or by setting the environment variable "
8324 "C<LIBGUESTFS_DEBUG=1> before running the program."
8325 msgstr ""
8326
8327 # type: =head2
8328 #. type: =head2
8329 #: ../src/guestfs-actions.pod:1217
8330 msgid "guestfs_download"
8331 msgstr ""
8332
8333 # type: verbatim
8334 #. type: verbatim
8335 #: ../src/guestfs-actions.pod:1219
8336 #, no-wrap
8337 msgid ""
8338 " int\n"
8339 " guestfs_download (guestfs_h *g,\n"
8340 "                   const char *remotefilename,\n"
8341 "                   const char *filename);\n"
8342 "\n"
8343 msgstr ""
8344
8345 # type: textblock
8346 #. type: textblock
8347 #: ../src/guestfs-actions.pod:1224 ../src/guestfs-actions.pod:1249
8348 #: ../fish/guestfish-actions.pod:818 ../fish/guestfish-actions.pod:831
8349 msgid ""
8350 "Download file C<remotefilename> and save it as C<filename> on the local "
8351 "machine."
8352 msgstr ""
8353
8354 # type: textblock
8355 #. type: textblock
8356 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:6637
8357 #: ../fish/guestfish-actions.pod:821 ../fish/guestfish-actions.pod:4447
8358 msgid "C<filename> can also be a named pipe."
8359 msgstr ""
8360
8361 # type: textblock
8362 #. type: textblock
8363 #: ../src/guestfs-actions.pod:1229
8364 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
8365 msgstr ""
8366
8367 # type: =head2
8368 #. type: =head2
8369 #: ../src/guestfs-actions.pod:1240
8370 msgid "guestfs_download_offset"
8371 msgstr ""
8372
8373 # type: verbatim
8374 #. type: verbatim
8375 #: ../src/guestfs-actions.pod:1242
8376 #, no-wrap
8377 msgid ""
8378 " int\n"
8379 " guestfs_download_offset (guestfs_h *g,\n"
8380 "                          const char *remotefilename,\n"
8381 "                          const char *filename,\n"
8382 "                          int64_t offset,\n"
8383 "                          int64_t size);\n"
8384 "\n"
8385 msgstr ""
8386
8387 # type: textblock
8388 #. type: textblock
8389 #: ../src/guestfs-actions.pod:1252 ../fish/guestfish-actions.pod:834
8390 msgid ""
8391 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8392 "region must be within the file or device)."
8393 msgstr ""
8394
8395 # type: textblock
8396 #. type: textblock
8397 #: ../src/guestfs-actions.pod:1255
8398 msgid ""
8399 "Note that there is no limit on the amount of data that can be downloaded "
8400 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
8401 "full amount unless an error occurs."
8402 msgstr ""
8403
8404 # type: textblock
8405 #. type: textblock
8406 #: ../src/guestfs-actions.pod:1260
8407 msgid "See also C<guestfs_download>, C<guestfs_pread>."
8408 msgstr ""
8409
8410 # type: textblock
8411 #. type: textblock
8412 #: ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:6682
8413 msgid "(Added in 1.5.17)"
8414 msgstr ""
8415
8416 # type: =head2
8417 #. type: =head2
8418 #: ../src/guestfs-actions.pod:1271
8419 msgid "guestfs_drop_caches"
8420 msgstr ""
8421
8422 # type: verbatim
8423 #. type: verbatim
8424 #: ../src/guestfs-actions.pod:1273
8425 #, no-wrap
8426 msgid ""
8427 " int\n"
8428 " guestfs_drop_caches (guestfs_h *g,\n"
8429 "                      int whattodrop);\n"
8430 "\n"
8431 msgstr ""
8432
8433 # type: textblock
8434 #. type: textblock
8435 #: ../src/guestfs-actions.pod:1277 ../fish/guestfish-actions.pod:850
8436 msgid ""
8437 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8438 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8439 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8440 msgstr ""
8441
8442 # type: textblock
8443 #. type: textblock
8444 #: ../src/guestfs-actions.pod:1282 ../fish/guestfish-actions.pod:855
8445 msgid "Setting C<whattodrop> to 3 should drop everything."
8446 msgstr ""
8447
8448 # type: textblock
8449 #. type: textblock
8450 #: ../src/guestfs-actions.pod:1284 ../fish/guestfish-actions.pod:857
8451 msgid ""
8452 "This automatically calls L<sync(2)> before the operation, so that the "
8453 "maximum guest memory is freed."
8454 msgstr ""
8455
8456 # type: =head2
8457 #. type: =head2
8458 #: ../src/guestfs-actions.pod:1291
8459 msgid "guestfs_du"
8460 msgstr ""
8461
8462 # type: verbatim
8463 #. type: verbatim
8464 #: ../src/guestfs-actions.pod:1293
8465 #, no-wrap
8466 msgid ""
8467 " int64_t\n"
8468 " guestfs_du (guestfs_h *g,\n"
8469 "             const char *path);\n"
8470 "\n"
8471 msgstr ""
8472
8473 # type: textblock
8474 #. type: textblock
8475 #: ../src/guestfs-actions.pod:1297 ../fish/guestfish-actions.pod:864
8476 msgid ""
8477 "This command runs the C<du -s> command to estimate file space usage for "
8478 "C<path>."
8479 msgstr ""
8480
8481 # type: textblock
8482 #. type: textblock
8483 #: ../src/guestfs-actions.pod:1300 ../fish/guestfish-actions.pod:867
8484 msgid ""
8485 "C<path> can be a file or a directory.  If C<path> is a directory then the "
8486 "estimate includes the contents of the directory and all subdirectories "
8487 "(recursively)."
8488 msgstr ""
8489
8490 # type: textblock
8491 #. type: textblock
8492 #: ../src/guestfs-actions.pod:1304 ../fish/guestfish-actions.pod:871
8493 msgid ""
8494 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
8495 msgstr ""
8496
8497 # type: =head2
8498 #. type: =head2
8499 #: ../src/guestfs-actions.pod:1311
8500 msgid "guestfs_e2fsck_f"
8501 msgstr ""
8502
8503 # type: verbatim
8504 #. type: verbatim
8505 #: ../src/guestfs-actions.pod:1313
8506 #, no-wrap
8507 msgid ""
8508 " int\n"
8509 " guestfs_e2fsck_f (guestfs_h *g,\n"
8510 "                   const char *device);\n"
8511 "\n"
8512 msgstr ""
8513
8514 # type: textblock
8515 #. type: textblock
8516 #: ../src/guestfs-actions.pod:1317 ../fish/guestfish-actions.pod:878
8517 msgid ""
8518 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
8519 "on C<device>, noninteractively (C<-p>), even if the filesystem appears to be "
8520 "clean (C<-f>)."
8521 msgstr ""
8522
8523 # type: textblock
8524 #. type: textblock
8525 #: ../src/guestfs-actions.pod:1321
8526 msgid ""
8527 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
8528 "Normally you should use C<guestfs_fsck>."
8529 msgstr ""
8530
8531 # type: textblock
8532 #. type: textblock
8533 #: ../src/guestfs-actions.pod:1326
8534 msgid "(Added in 1.0.29)"
8535 msgstr ""
8536
8537 # type: =head2
8538 #. type: =head2
8539 #: ../src/guestfs-actions.pod:1328
8540 msgid "guestfs_echo_daemon"
8541 msgstr ""
8542
8543 # type: verbatim
8544 #. type: verbatim
8545 #: ../src/guestfs-actions.pod:1330
8546 #, no-wrap
8547 msgid ""
8548 " char *\n"
8549 " guestfs_echo_daemon (guestfs_h *g,\n"
8550 "                      char *const *words);\n"
8551 "\n"
8552 msgstr ""
8553
8554 # type: textblock
8555 #. type: textblock
8556 #: ../src/guestfs-actions.pod:1334 ../fish/guestfish-actions.pod:889
8557 msgid ""
8558 "This command concatenates the list of C<words> passed with single spaces "
8559 "between them and returns the resulting string."
8560 msgstr ""
8561
8562 # type: textblock
8563 #. type: textblock
8564 #: ../src/guestfs-actions.pod:1337 ../fish/guestfish-actions.pod:892
8565 msgid "You can use this command to test the connection through to the daemon."
8566 msgstr ""
8567
8568 # type: textblock
8569 #. type: textblock
8570 #: ../src/guestfs-actions.pod:1339
8571 msgid "See also C<guestfs_ping_daemon>."
8572 msgstr ""
8573
8574 # type: textblock
8575 #. type: textblock
8576 #: ../src/guestfs-actions.pod:1344 ../src/guestfs-actions.pod:2071
8577 #: ../src/guestfs-actions.pod:5885
8578 msgid "(Added in 1.0.69)"
8579 msgstr ""
8580
8581 # type: =head2
8582 #. type: =head2
8583 #: ../src/guestfs-actions.pod:1346
8584 msgid "guestfs_egrep"
8585 msgstr ""
8586
8587 # type: verbatim
8588 #. type: verbatim
8589 #: ../src/guestfs-actions.pod:1348
8590 #, no-wrap
8591 msgid ""
8592 " char **\n"
8593 " guestfs_egrep (guestfs_h *g,\n"
8594 "                const char *regex,\n"
8595 "                const char *path);\n"
8596 "\n"
8597 msgstr ""
8598
8599 # type: textblock
8600 #. type: textblock
8601 #: ../src/guestfs-actions.pod:1353 ../fish/guestfish-actions.pod:900
8602 msgid ""
8603 "This calls the external C<egrep> program and returns the matching lines."
8604 msgstr ""
8605
8606 # type: textblock
8607 #. type: textblock
8608 #: ../src/guestfs-actions.pod:1363 ../src/guestfs-actions.pod:1382
8609 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1485
8610 #: ../src/guestfs-actions.pod:1504 ../src/guestfs-actions.pod:2201
8611 #: ../src/guestfs-actions.pod:2220 ../src/guestfs-actions.pod:2376
8612 #: ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2404
8613 #: ../src/guestfs-actions.pod:2450 ../src/guestfs-actions.pod:2472
8614 #: ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:3510
8615 #: ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3537
8616 #: ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:4537
8617 #: ../src/guestfs-actions.pod:5413 ../src/guestfs-actions.pod:5462
8618 #: ../src/guestfs-actions.pod:6249 ../src/guestfs-actions.pod:6261
8619 #: ../src/guestfs-actions.pod:6274 ../src/guestfs-actions.pod:6287
8620 #: ../src/guestfs-actions.pod:6309 ../src/guestfs-actions.pod:6322
8621 #: ../src/guestfs-actions.pod:6335 ../src/guestfs-actions.pod:6348
8622 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7138
8623 #: ../src/guestfs-actions.pod:7223 ../src/guestfs-actions.pod:7242
8624 #: ../src/guestfs-actions.pod:7288 ../src/guestfs-actions.pod:7307
8625 msgid "(Added in 1.0.66)"
8626 msgstr ""
8627
8628 # type: =head2
8629 #. type: =head2
8630 #: ../src/guestfs-actions.pod:1365
8631 msgid "guestfs_egrepi"
8632 msgstr ""
8633
8634 # type: verbatim
8635 #. type: verbatim
8636 #: ../src/guestfs-actions.pod:1367
8637 #, no-wrap
8638 msgid ""
8639 " char **\n"
8640 " guestfs_egrepi (guestfs_h *g,\n"
8641 "                 const char *regex,\n"
8642 "                 const char *path);\n"
8643 "\n"
8644 msgstr ""
8645
8646 # type: textblock
8647 #. type: textblock
8648 #: ../src/guestfs-actions.pod:1372 ../fish/guestfish-actions.pod:910
8649 msgid ""
8650 "This calls the external C<egrep -i> program and returns the matching lines."
8651 msgstr ""
8652
8653 # type: =head2
8654 #. type: =head2
8655 #: ../src/guestfs-actions.pod:1384
8656 msgid "guestfs_equal"
8657 msgstr ""
8658
8659 # type: verbatim
8660 #. type: verbatim
8661 #: ../src/guestfs-actions.pod:1386
8662 #, no-wrap
8663 msgid ""
8664 " int\n"
8665 " guestfs_equal (guestfs_h *g,\n"
8666 "                const char *file1,\n"
8667 "                const char *file2);\n"
8668 "\n"
8669 msgstr ""
8670
8671 # type: textblock
8672 #. type: textblock
8673 #: ../src/guestfs-actions.pod:1391 ../fish/guestfish-actions.pod:920
8674 msgid ""
8675 "This compares the two files C<file1> and C<file2> and returns true if their "
8676 "content is exactly equal, or false otherwise."
8677 msgstr ""
8678
8679 # type: textblock
8680 #. type: textblock
8681 #: ../src/guestfs-actions.pod:1394 ../fish/guestfish-actions.pod:923
8682 msgid "The external L<cmp(1)> program is used for the comparison."
8683 msgstr ""
8684
8685 # type: =head2
8686 #. type: =head2
8687 #: ../src/guestfs-actions.pod:1400
8688 msgid "guestfs_exists"
8689 msgstr ""
8690
8691 # type: verbatim
8692 #. type: verbatim
8693 #: ../src/guestfs-actions.pod:1402
8694 #, no-wrap
8695 msgid ""
8696 " int\n"
8697 " guestfs_exists (guestfs_h *g,\n"
8698 "                 const char *path);\n"
8699 "\n"
8700 msgstr ""
8701
8702 # type: textblock
8703 #. type: textblock
8704 #: ../src/guestfs-actions.pod:1406 ../fish/guestfish-actions.pod:929
8705 msgid ""
8706 "This returns C<true> if and only if there is a file, directory (or anything) "
8707 "with the given C<path> name."
8708 msgstr ""
8709
8710 # type: textblock
8711 #. type: textblock
8712 #: ../src/guestfs-actions.pod:1409
8713 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
8714 msgstr ""
8715
8716 # type: =head2
8717 #. type: =head2
8718 #: ../src/guestfs-actions.pod:1415
8719 msgid "guestfs_fallocate"
8720 msgstr ""
8721
8722 # type: verbatim
8723 #. type: verbatim
8724 #: ../src/guestfs-actions.pod:1417
8725 #, no-wrap
8726 msgid ""
8727 " int\n"
8728 " guestfs_fallocate (guestfs_h *g,\n"
8729 "                    const char *path,\n"
8730 "                    int len);\n"
8731 "\n"
8732 msgstr ""
8733
8734 # type: textblock
8735 #. type: textblock
8736 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1448
8737 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:957
8738 msgid ""
8739 "This command preallocates a file (containing zero bytes) named C<path> of "
8740 "size C<len> bytes.  If the file exists already, it is overwritten."
8741 msgstr ""
8742
8743 # type: textblock
8744 #. type: textblock
8745 #: ../src/guestfs-actions.pod:1426 ../fish/guestfish-actions.pod:942
8746 msgid ""
8747 "Do not confuse this with the guestfish-specific C<alloc> command which "
8748 "allocates a file in the host and attaches it as a device."
8749 msgstr ""
8750
8751 # type: textblock
8752 #. type: textblock
8753 #: ../src/guestfs-actions.pod:1432 ../fish/guestfish-actions.pod:946
8754 msgid ""
8755 "This function is deprecated.  In new code, use the C<fallocate64> call "
8756 "instead."
8757 msgstr ""
8758
8759 # type: =head2
8760 #. type: =head2
8761 #: ../src/guestfs-actions.pod:1441
8762 msgid "guestfs_fallocate64"
8763 msgstr ""
8764
8765 # type: verbatim
8766 #. type: verbatim
8767 #: ../src/guestfs-actions.pod:1443
8768 #, no-wrap
8769 msgid ""
8770 " int\n"
8771 " guestfs_fallocate64 (guestfs_h *g,\n"
8772 "                      const char *path,\n"
8773 "                      int64_t len);\n"
8774 "\n"
8775 msgstr ""
8776
8777 # type: textblock
8778 #. type: textblock
8779 #: ../src/guestfs-actions.pod:1452
8780 msgid ""
8781 "Note that this call allocates disk blocks for the file.  To create a sparse "
8782 "file use C<guestfs_truncate_size> instead."
8783 msgstr ""
8784
8785 # type: textblock
8786 #. type: textblock
8787 #: ../src/guestfs-actions.pod:1455
8788 msgid ""
8789 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
8790 "oversight it only allowed 30 bit lengths to be specified, effectively "
8791 "limiting the maximum size of files created through that call to 1GB."
8792 msgstr ""
8793
8794 # type: textblock
8795 #. type: textblock
8796 #: ../src/guestfs-actions.pod:1460 ../fish/guestfish-actions.pod:969
8797 msgid ""
8798 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8799 "commands which create a file in the host and attach it as a device."
8800 msgstr ""
8801
8802 # type: textblock
8803 #. type: textblock
8804 #: ../src/guestfs-actions.pod:1466
8805 msgid "(Added in 1.3.17)"
8806 msgstr ""
8807
8808 # type: =head2
8809 #. type: =head2
8810 #: ../src/guestfs-actions.pod:1468
8811 msgid "guestfs_fgrep"
8812 msgstr ""
8813
8814 # type: verbatim
8815 #. type: verbatim
8816 #: ../src/guestfs-actions.pod:1470
8817 #, no-wrap
8818 msgid ""
8819 " char **\n"
8820 " guestfs_fgrep (guestfs_h *g,\n"
8821 "                const char *pattern,\n"
8822 "                const char *path);\n"
8823 "\n"
8824 msgstr ""
8825
8826 # type: textblock
8827 #. type: textblock
8828 #: ../src/guestfs-actions.pod:1475 ../fish/guestfish-actions.pod:977
8829 msgid ""
8830 "This calls the external C<fgrep> program and returns the matching lines."
8831 msgstr ""
8832
8833 # type: =head2
8834 #. type: =head2
8835 #: ../src/guestfs-actions.pod:1487
8836 msgid "guestfs_fgrepi"
8837 msgstr ""
8838
8839 # type: verbatim
8840 #. type: verbatim
8841 #: ../src/guestfs-actions.pod:1489
8842 #, no-wrap
8843 msgid ""
8844 " char **\n"
8845 " guestfs_fgrepi (guestfs_h *g,\n"
8846 "                 const char *pattern,\n"
8847 "                 const char *path);\n"
8848 "\n"
8849 msgstr ""
8850
8851 # type: textblock
8852 #. type: textblock
8853 #: ../src/guestfs-actions.pod:1494 ../fish/guestfish-actions.pod:987
8854 msgid ""
8855 "This calls the external C<fgrep -i> program and returns the matching lines."
8856 msgstr ""
8857
8858 # type: =head2
8859 #. type: =head2
8860 #: ../src/guestfs-actions.pod:1506
8861 msgid "guestfs_file"
8862 msgstr ""
8863
8864 # type: verbatim
8865 #. type: verbatim
8866 #: ../src/guestfs-actions.pod:1508
8867 #, no-wrap
8868 msgid ""
8869 " char *\n"
8870 " guestfs_file (guestfs_h *g,\n"
8871 "               const char *path);\n"
8872 "\n"
8873 msgstr ""
8874
8875 # type: textblock
8876 #. type: textblock
8877 #: ../src/guestfs-actions.pod:1512 ../fish/guestfish-actions.pod:997
8878 msgid ""
8879 "This call uses the standard L<file(1)> command to determine the type or "
8880 "contents of the file."
8881 msgstr ""
8882
8883 # type: textblock
8884 #. type: textblock
8885 #: ../src/guestfs-actions.pod:1515 ../fish/guestfish-actions.pod:1000
8886 msgid ""
8887 "This call will also transparently look inside various types of compressed "
8888 "file."
8889 msgstr ""
8890
8891 # type: textblock
8892 #. type: textblock
8893 #: ../src/guestfs-actions.pod:1518 ../fish/guestfish-actions.pod:1003
8894 msgid ""
8895 "The exact command which runs is C<file -zb path>.  Note in particular that "
8896 "the filename is not prepended to the output (the C<-b> option)."
8897 msgstr ""
8898
8899 # type: textblock
8900 #. type: textblock
8901 #: ../src/guestfs-actions.pod:1522
8902 msgid ""
8903 "This command can also be used on C</dev/> devices (and partitions, LV "
8904 "names).  You can for example use this to determine if a device contains a "
8905 "filesystem, although it's usually better to use C<guestfs_vfs_type>."
8906 msgstr ""
8907
8908 # type: textblock
8909 #. type: textblock
8910 #: ../src/guestfs-actions.pod:1527 ../fish/guestfish-actions.pod:1012
8911 msgid ""
8912 "If the C<path> does not begin with C</dev/> then this command only works for "
8913 "the content of regular files.  For other file types (directory, symbolic "
8914 "link etc) it will just return the string C<directory> etc."
8915 msgstr ""
8916
8917 # type: =head2
8918 #. type: =head2
8919 #: ../src/guestfs-actions.pod:1537
8920 msgid "guestfs_file_architecture"
8921 msgstr ""
8922
8923 # type: verbatim
8924 #. type: verbatim
8925 #: ../src/guestfs-actions.pod:1539
8926 #, no-wrap
8927 msgid ""
8928 " char *\n"
8929 " guestfs_file_architecture (guestfs_h *g,\n"
8930 "                            const char *filename);\n"
8931 "\n"
8932 msgstr ""
8933
8934 # type: textblock
8935 #. type: textblock
8936 #: ../src/guestfs-actions.pod:1543 ../fish/guestfish-actions.pod:1021
8937 msgid ""
8938 "This detects the architecture of the binary C<filename>, and returns it if "
8939 "known."
8940 msgstr ""
8941
8942 # type: textblock
8943 #. type: textblock
8944 #: ../src/guestfs-actions.pod:1546 ../fish/guestfish-actions.pod:1024
8945 msgid "Currently defined architectures are:"
8946 msgstr ""
8947
8948 # type: =item
8949 #. type: =item
8950 #: ../src/guestfs-actions.pod:1550 ../fish/guestfish-actions.pod:1028
8951 msgid "\"i386\""
8952 msgstr ""
8953
8954 # type: textblock
8955 #. type: textblock
8956 #: ../src/guestfs-actions.pod:1552 ../fish/guestfish-actions.pod:1030
8957 msgid ""
8958 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8959 "irrespective of the precise processor requirements of the binary."
8960 msgstr ""
8961
8962 # type: =item
8963 #. type: =item
8964 #: ../src/guestfs-actions.pod:1555 ../fish/guestfish-actions.pod:1033
8965 msgid "\"x86_64\""
8966 msgstr ""
8967
8968 # type: textblock
8969 #. type: textblock
8970 #: ../src/guestfs-actions.pod:1557 ../fish/guestfish-actions.pod:1035
8971 msgid "64 bit x86-64."
8972 msgstr ""
8973
8974 # type: =item
8975 #. type: =item
8976 #: ../src/guestfs-actions.pod:1559 ../fish/guestfish-actions.pod:1037
8977 msgid "\"sparc\""
8978 msgstr ""
8979
8980 # type: textblock
8981 #. type: textblock
8982 #: ../src/guestfs-actions.pod:1561 ../fish/guestfish-actions.pod:1039
8983 msgid "32 bit SPARC."
8984 msgstr ""
8985
8986 # type: =item
8987 #. type: =item
8988 #: ../src/guestfs-actions.pod:1563 ../fish/guestfish-actions.pod:1041
8989 msgid "\"sparc64\""
8990 msgstr ""
8991
8992 # type: textblock
8993 #. type: textblock
8994 #: ../src/guestfs-actions.pod:1565 ../fish/guestfish-actions.pod:1043
8995 msgid "64 bit SPARC V9 and above."
8996 msgstr ""
8997
8998 # type: =item
8999 #. type: =item
9000 #: ../src/guestfs-actions.pod:1567 ../fish/guestfish-actions.pod:1045
9001 msgid "\"ia64\""
9002 msgstr ""
9003
9004 # type: textblock
9005 #. type: textblock
9006 #: ../src/guestfs-actions.pod:1569 ../fish/guestfish-actions.pod:1047
9007 msgid "Intel Itanium."
9008 msgstr ""
9009
9010 # type: =item
9011 #. type: =item
9012 #: ../src/guestfs-actions.pod:1571 ../fish/guestfish-actions.pod:1049
9013 msgid "\"ppc\""
9014 msgstr ""
9015
9016 # type: textblock
9017 #. type: textblock
9018 #: ../src/guestfs-actions.pod:1573 ../fish/guestfish-actions.pod:1051
9019 msgid "32 bit Power PC."
9020 msgstr ""
9021
9022 # type: =item
9023 #. type: =item
9024 #: ../src/guestfs-actions.pod:1575 ../fish/guestfish-actions.pod:1053
9025 msgid "\"ppc64\""
9026 msgstr ""
9027
9028 # type: textblock
9029 #. type: textblock
9030 #: ../src/guestfs-actions.pod:1577 ../fish/guestfish-actions.pod:1055
9031 msgid "64 bit Power PC."
9032 msgstr ""
9033
9034 # type: textblock
9035 #. type: textblock
9036 #: ../src/guestfs-actions.pod:1581 ../fish/guestfish-actions.pod:1059
9037 msgid "Libguestfs may return other architecture strings in future."
9038 msgstr ""
9039
9040 # type: textblock
9041 #. type: textblock
9042 #: ../src/guestfs-actions.pod:1583 ../fish/guestfish-actions.pod:1061
9043 msgid "The function works on at least the following types of files:"
9044 msgstr ""
9045
9046 # type: textblock
9047 #. type: textblock
9048 #: ../src/guestfs-actions.pod:1589 ../fish/guestfish-actions.pod:1067
9049 msgid "many types of Un*x and Linux binary"
9050 msgstr ""
9051
9052 # type: textblock
9053 #. type: textblock
9054 #: ../src/guestfs-actions.pod:1593 ../fish/guestfish-actions.pod:1071
9055 msgid "many types of Un*x and Linux shared library"
9056 msgstr ""
9057
9058 # type: textblock
9059 #. type: textblock
9060 #: ../src/guestfs-actions.pod:1597 ../fish/guestfish-actions.pod:1075
9061 msgid "Windows Win32 and Win64 binaries"
9062 msgstr ""
9063
9064 # type: textblock
9065 #. type: textblock
9066 #: ../src/guestfs-actions.pod:1601 ../fish/guestfish-actions.pod:1079
9067 msgid "Windows Win32 and Win64 DLLs"
9068 msgstr ""
9069
9070 # type: textblock
9071 #. type: textblock
9072 #: ../src/guestfs-actions.pod:1603 ../fish/guestfish-actions.pod:1081
9073 msgid "Win32 binaries and DLLs return C<i386>."
9074 msgstr ""
9075
9076 # type: textblock
9077 #. type: textblock
9078 #: ../src/guestfs-actions.pod:1605 ../fish/guestfish-actions.pod:1083
9079 msgid "Win64 binaries and DLLs return C<x86_64>."
9080 msgstr ""
9081
9082 # type: textblock
9083 #. type: textblock
9084 #: ../src/guestfs-actions.pod:1609 ../fish/guestfish-actions.pod:1087
9085 msgid "Linux kernel modules"
9086 msgstr ""
9087
9088 # type: textblock
9089 #. type: textblock
9090 #: ../src/guestfs-actions.pod:1613 ../fish/guestfish-actions.pod:1091
9091 msgid "Linux new-style initrd images"
9092 msgstr ""
9093
9094 # type: textblock
9095 #. type: textblock
9096 #: ../src/guestfs-actions.pod:1617 ../fish/guestfish-actions.pod:1095
9097 msgid "some non-x86 Linux vmlinuz kernels"
9098 msgstr ""
9099
9100 # type: textblock
9101 #. type: textblock
9102 #: ../src/guestfs-actions.pod:1621 ../fish/guestfish-actions.pod:1099
9103 msgid "What it can't do currently:"
9104 msgstr ""
9105
9106 # type: textblock
9107 #. type: textblock
9108 #: ../src/guestfs-actions.pod:1627 ../fish/guestfish-actions.pod:1105
9109 msgid "static libraries (libfoo.a)"
9110 msgstr ""
9111
9112 # type: textblock
9113 #. type: textblock
9114 #: ../src/guestfs-actions.pod:1631 ../fish/guestfish-actions.pod:1109
9115 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9116 msgstr ""
9117
9118 # type: textblock
9119 #. type: textblock
9120 #: ../src/guestfs-actions.pod:1635 ../fish/guestfish-actions.pod:1113
9121 msgid "x86 Linux vmlinuz kernels"
9122 msgstr ""
9123
9124 # type: textblock
9125 #. type: textblock
9126 #: ../src/guestfs-actions.pod:1637 ../fish/guestfish-actions.pod:1115
9127 msgid ""
9128 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9129 "compressed code, and are horribly hard to unpack.  If you want to find the "
9130 "architecture of a kernel, use the architecture of the associated initrd or "
9131 "kernel module(s) instead."
9132 msgstr ""
9133
9134 # type: textblock
9135 #. type: textblock
9136 #: ../src/guestfs-actions.pod:1647 ../src/guestfs-actions.pod:1810
9137 #: ../src/guestfs-actions.pod:1827 ../src/guestfs-actions.pod:2508
9138 #: ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:2615
9139 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2724
9140 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2845
9141 #: ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:3133
9142 #: ../src/guestfs-actions.pod:3265
9143 msgid "(Added in 1.5.3)"
9144 msgstr ""
9145
9146 # type: =head2
9147 #. type: =head2
9148 #: ../src/guestfs-actions.pod:1649
9149 msgid "guestfs_filesize"
9150 msgstr ""
9151
9152 # type: verbatim
9153 #. type: verbatim
9154 #: ../src/guestfs-actions.pod:1651
9155 #, no-wrap
9156 msgid ""
9157 " int64_t\n"
9158 " guestfs_filesize (guestfs_h *g,\n"
9159 "                   const char *file);\n"
9160 "\n"
9161 msgstr ""
9162
9163 # type: textblock
9164 #. type: textblock
9165 #: ../src/guestfs-actions.pod:1655 ../fish/guestfish-actions.pod:1126
9166 msgid "This command returns the size of C<file> in bytes."
9167 msgstr ""
9168
9169 # type: textblock
9170 #. type: textblock
9171 #: ../src/guestfs-actions.pod:1657
9172 msgid ""
9173 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
9174 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
9175 "devices, use C<guestfs_blockdev_getsize64>."
9176 msgstr ""
9177
9178 # type: textblock
9179 #. type: textblock
9180 #: ../src/guestfs-actions.pod:1663
9181 msgid "(Added in 1.0.82)"
9182 msgstr ""
9183
9184 # type: =head2
9185 #. type: =head2
9186 #: ../src/guestfs-actions.pod:1665
9187 msgid "guestfs_fill"
9188 msgstr ""
9189
9190 # type: verbatim
9191 #. type: verbatim
9192 #: ../src/guestfs-actions.pod:1667
9193 #, no-wrap
9194 msgid ""
9195 " int\n"
9196 " guestfs_fill (guestfs_h *g,\n"
9197 "               int c,\n"
9198 "               int len,\n"
9199 "               const char *path);\n"
9200 "\n"
9201 msgstr ""
9202
9203 # type: textblock
9204 #. type: textblock
9205 #: ../src/guestfs-actions.pod:1673 ../fish/guestfish-actions.pod:1136
9206 msgid ""
9207 "This command creates a new file called C<path>.  The initial content of the "
9208 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9209 "[0..255]>."
9210 msgstr ""
9211
9212 # type: textblock
9213 #. type: textblock
9214 #: ../src/guestfs-actions.pod:1677
9215 msgid ""
9216 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9217 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
9218 "bytes use C<guestfs_fill_pattern>."
9219 msgstr ""
9220
9221 # type: textblock
9222 #. type: textblock
9223 #: ../src/guestfs-actions.pod:1689
9224 msgid "(Added in 1.0.79)"
9225 msgstr ""
9226
9227 # type: =head2
9228 #. type: =head2
9229 #: ../src/guestfs-actions.pod:1691
9230 msgid "guestfs_fill_pattern"
9231 msgstr ""
9232
9233 # type: verbatim
9234 #. type: verbatim
9235 #: ../src/guestfs-actions.pod:1693
9236 #, no-wrap
9237 msgid ""
9238 " int\n"
9239 " guestfs_fill_pattern (guestfs_h *g,\n"
9240 "                       const char *pattern,\n"
9241 "                       int len,\n"
9242 "                       const char *path);\n"
9243 "\n"
9244 msgstr ""
9245
9246 # type: textblock
9247 #. type: textblock
9248 #: ../src/guestfs-actions.pod:1699
9249 msgid ""
9250 "This function is like C<guestfs_fill> except that it creates a new file of "
9251 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
9252 "pattern is truncated if necessary to ensure the length of the file is "
9253 "exactly C<len> bytes."
9254 msgstr ""
9255
9256 # type: textblock
9257 #. type: textblock
9258 #: ../src/guestfs-actions.pod:1711
9259 msgid "(Added in 1.3.12)"
9260 msgstr ""
9261
9262 # type: =head2
9263 #. type: =head2
9264 #: ../src/guestfs-actions.pod:1713
9265 msgid "guestfs_find"
9266 msgstr ""
9267
9268 # type: verbatim
9269 #. type: verbatim
9270 #: ../src/guestfs-actions.pod:1715
9271 #, no-wrap
9272 msgid ""
9273 " char **\n"
9274 " guestfs_find (guestfs_h *g,\n"
9275 "               const char *directory);\n"
9276 "\n"
9277 msgstr ""
9278
9279 # type: textblock
9280 #. type: textblock
9281 #: ../src/guestfs-actions.pod:1719 ../fish/guestfish-actions.pod:1158
9282 msgid ""
9283 "This command lists out all files and directories, recursively, starting at "
9284 "C<directory>.  It is essentially equivalent to running the shell command "
9285 "C<find directory -print> but some post-processing happens on the output, "
9286 "described below."
9287 msgstr ""
9288
9289 # type: textblock
9290 #. type: textblock
9291 #: ../src/guestfs-actions.pod:1724 ../fish/guestfish-actions.pod:1163
9292 msgid ""
9293 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9294 "structure was:"
9295 msgstr ""
9296
9297 # type: verbatim
9298 #. type: verbatim
9299 #: ../src/guestfs-actions.pod:1727 ../fish/guestfish-actions.pod:1166
9300 #, no-wrap
9301 msgid ""
9302 " /tmp/a\n"
9303 " /tmp/b\n"
9304 " /tmp/c/d\n"
9305 "\n"
9306 msgstr ""
9307
9308 # type: textblock
9309 #. type: textblock
9310 #: ../src/guestfs-actions.pod:1731
9311 msgid ""
9312 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
9313 msgstr ""
9314
9315 # type: verbatim
9316 #. type: verbatim
9317 #: ../src/guestfs-actions.pod:1734 ../fish/guestfish-actions.pod:1173
9318 #, no-wrap
9319 msgid ""
9320 " a\n"
9321 " b\n"
9322 " c\n"
9323 " c/d\n"
9324 "\n"
9325 msgstr ""
9326
9327 # type: textblock
9328 #. type: textblock
9329 #: ../src/guestfs-actions.pod:1739 ../fish/guestfish-actions.pod:1178
9330 msgid "If C<directory> is not a directory, then this command returns an error."
9331 msgstr ""
9332
9333 # type: textblock
9334 #. type: textblock
9335 #: ../src/guestfs-actions.pod:1742 ../fish/guestfish-actions.pod:1181
9336 msgid "The returned list is sorted."
9337 msgstr ""
9338
9339 # type: textblock
9340 #. type: textblock
9341 #: ../src/guestfs-actions.pod:1744
9342 msgid "See also C<guestfs_find0>."
9343 msgstr ""
9344
9345 # type: textblock
9346 #. type: textblock
9347 #: ../src/guestfs-actions.pod:1753 ../src/guestfs-actions.pod:3954
9348 #: ../src/guestfs-actions.pod:5497
9349 msgid "(Added in 1.0.27)"
9350 msgstr ""
9351
9352 # type: =head2
9353 #. type: =head2
9354 #: ../src/guestfs-actions.pod:1755
9355 msgid "guestfs_find0"
9356 msgstr ""
9357
9358 # type: verbatim
9359 #. type: verbatim
9360 #: ../src/guestfs-actions.pod:1757
9361 #, no-wrap
9362 msgid ""
9363 " int\n"
9364 " guestfs_find0 (guestfs_h *g,\n"
9365 "                const char *directory,\n"
9366 "                const char *files);\n"
9367 "\n"
9368 msgstr ""
9369
9370 # type: textblock
9371 #. type: textblock
9372 #: ../src/guestfs-actions.pod:1762 ../fish/guestfish-actions.pod:1192
9373 msgid ""
9374 "This command lists out all files and directories, recursively, starting at "
9375 "C<directory>, placing the resulting list in the external file called "
9376 "C<files>."
9377 msgstr ""
9378
9379 # type: textblock
9380 #. type: textblock
9381 #: ../src/guestfs-actions.pod:1766
9382 msgid ""
9383 "This command works the same way as C<guestfs_find> with the following "
9384 "exceptions:"
9385 msgstr ""
9386
9387 # type: textblock
9388 #. type: textblock
9389 #: ../src/guestfs-actions.pod:1773 ../fish/guestfish-actions.pod:1203
9390 msgid "The resulting list is written to an external file."
9391 msgstr ""
9392
9393 # type: textblock
9394 #. type: textblock
9395 #: ../src/guestfs-actions.pod:1777 ../fish/guestfish-actions.pod:1207
9396 msgid ""
9397 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9398 "L<find(1)> option I<-print0>."
9399 msgstr ""
9400
9401 # type: textblock
9402 #. type: textblock
9403 #: ../src/guestfs-actions.pod:1782 ../fish/guestfish-actions.pod:1212
9404 msgid "This command is not limited in the number of names that it can return."
9405 msgstr ""
9406
9407 # type: textblock
9408 #. type: textblock
9409 #: ../src/guestfs-actions.pod:1787 ../fish/guestfish-actions.pod:1217
9410 msgid "The result list is not sorted."
9411 msgstr ""
9412
9413 # type: textblock
9414 #. type: textblock
9415 #: ../src/guestfs-actions.pod:1793
9416 msgid "(Added in 1.0.74)"
9417 msgstr ""
9418
9419 # type: =head2
9420 #. type: =head2
9421 #: ../src/guestfs-actions.pod:1795
9422 msgid "guestfs_findfs_label"
9423 msgstr ""
9424
9425 # type: verbatim
9426 #. type: verbatim
9427 #: ../src/guestfs-actions.pod:1797
9428 #, no-wrap
9429 msgid ""
9430 " char *\n"
9431 " guestfs_findfs_label (guestfs_h *g,\n"
9432 "                       const char *label);\n"
9433 "\n"
9434 msgstr ""
9435
9436 # type: textblock
9437 #. type: textblock
9438 #: ../src/guestfs-actions.pod:1801 ../fish/guestfish-actions.pod:1227
9439 msgid ""
9440 "This command searches the filesystems and returns the one which has the "
9441 "given label.  An error is returned if no such filesystem can be found."
9442 msgstr ""
9443
9444 # type: textblock
9445 #. type: textblock
9446 #: ../src/guestfs-actions.pod:1805
9447 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
9448 msgstr ""
9449
9450 # type: =head2
9451 #. type: =head2
9452 #: ../src/guestfs-actions.pod:1812
9453 msgid "guestfs_findfs_uuid"
9454 msgstr ""
9455
9456 # type: verbatim
9457 #. type: verbatim
9458 #: ../src/guestfs-actions.pod:1814
9459 #, no-wrap
9460 msgid ""
9461 " char *\n"
9462 " guestfs_findfs_uuid (guestfs_h *g,\n"
9463 "                      const char *uuid);\n"
9464 "\n"
9465 msgstr ""
9466
9467 # type: textblock
9468 #. type: textblock
9469 #: ../src/guestfs-actions.pod:1818 ../fish/guestfish-actions.pod:1237
9470 msgid ""
9471 "This command searches the filesystems and returns the one which has the "
9472 "given UUID.  An error is returned if no such filesystem can be found."
9473 msgstr ""
9474
9475 # type: textblock
9476 #. type: textblock
9477 #: ../src/guestfs-actions.pod:1822
9478 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
9479 msgstr ""
9480
9481 # type: =head2
9482 #. type: =head2
9483 #: ../src/guestfs-actions.pod:1829
9484 msgid "guestfs_fsck"
9485 msgstr ""
9486
9487 # type: verbatim
9488 #. type: verbatim
9489 #: ../src/guestfs-actions.pod:1831
9490 #, no-wrap
9491 msgid ""
9492 " int\n"
9493 " guestfs_fsck (guestfs_h *g,\n"
9494 "               const char *fstype,\n"
9495 "               const char *device);\n"
9496 "\n"
9497 msgstr ""
9498
9499 # type: textblock
9500 #. type: textblock
9501 #: ../src/guestfs-actions.pod:1836 ../fish/guestfish-actions.pod:1247
9502 msgid ""
9503 "This runs the filesystem checker (fsck) on C<device> which should have "
9504 "filesystem type C<fstype>."
9505 msgstr ""
9506
9507 # type: textblock
9508 #. type: textblock
9509 #: ../src/guestfs-actions.pod:1839 ../fish/guestfish-actions.pod:1250
9510 msgid ""
9511 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9512 "codes from C<fsck>."
9513 msgstr ""
9514
9515 # type: textblock
9516 #. type: textblock
9517 #: ../src/guestfs-actions.pod:1848 ../fish/guestfish-actions.pod:1259
9518 msgid "Multiple status codes can be summed together."
9519 msgstr ""
9520
9521 # type: textblock
9522 #. type: textblock
9523 #: ../src/guestfs-actions.pod:1852 ../fish/guestfish-actions.pod:1263
9524 msgid ""
9525 "A non-zero return code can mean \"success\", for example if errors have been "
9526 "corrected on the filesystem."
9527 msgstr ""
9528
9529 # type: textblock
9530 #. type: textblock
9531 #: ../src/guestfs-actions.pod:1857 ../fish/guestfish-actions.pod:1268
9532 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9533 msgstr ""
9534
9535 # type: textblock
9536 #. type: textblock
9537 #: ../src/guestfs-actions.pod:1862 ../fish/guestfish-actions.pod:1273
9538 msgid ""
9539 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9540 msgstr ""
9541
9542 # type: textblock
9543 #. type: textblock
9544 #: ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:7161
9545 msgid "(Added in 1.0.16)"
9546 msgstr ""
9547
9548 # type: =head2
9549 #. type: =head2
9550 #: ../src/guestfs-actions.pod:1868
9551 msgid "guestfs_get_append"
9552 msgstr ""
9553
9554 # type: verbatim
9555 #. type: verbatim
9556 #: ../src/guestfs-actions.pod:1870
9557 #, no-wrap
9558 msgid ""
9559 " const char *\n"
9560 " guestfs_get_append (guestfs_h *g);\n"
9561 "\n"
9562 msgstr ""
9563
9564 # type: textblock
9565 #. type: textblock
9566 #: ../src/guestfs-actions.pod:1873 ../fish/guestfish-actions.pod:1279
9567 msgid ""
9568 "Return the additional kernel options which are added to the guest kernel "
9569 "command line."
9570 msgstr ""
9571
9572 # type: textblock
9573 #. type: textblock
9574 #: ../src/guestfs-actions.pod:1876 ../fish/guestfish-actions.pod:1282
9575 msgid "If C<NULL> then no options are added."
9576 msgstr ""
9577
9578 # type: textblock
9579 #. type: textblock
9580 #: ../src/guestfs-actions.pod:1878
9581 msgid ""
9582 "This function returns a string which may be NULL.  There is no way to return "
9583 "an error from this function.  The string is owned by the guest handle and "
9584 "must I<not> be freed."
9585 msgstr ""
9586
9587 # type: textblock
9588 #. type: textblock
9589 #: ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:5175
9590 #: ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:6023
9591 #: ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:6058
9592 #: ../src/guestfs-actions.pod:6075 ../src/guestfs-actions.pod:6832
9593 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7204
9594 msgid "(Added in 1.0.26)"
9595 msgstr ""
9596
9597 # type: =head2
9598 #. type: =head2
9599 #: ../src/guestfs-actions.pod:1884
9600 msgid "guestfs_get_autosync"
9601 msgstr ""
9602
9603 # type: verbatim
9604 #. type: verbatim
9605 #: ../src/guestfs-actions.pod:1886
9606 #, no-wrap
9607 msgid ""
9608 " int\n"
9609 " guestfs_get_autosync (guestfs_h *g);\n"
9610 "\n"
9611 msgstr ""
9612
9613 # type: textblock
9614 #. type: textblock
9615 #: ../src/guestfs-actions.pod:1889 ../fish/guestfish-actions.pod:1288
9616 msgid "Get the autosync flag."
9617 msgstr ""
9618
9619 # type: =head2
9620 #. type: =head2
9621 #: ../src/guestfs-actions.pod:1895
9622 msgid "guestfs_get_direct"
9623 msgstr ""
9624
9625 # type: verbatim
9626 #. type: verbatim
9627 #: ../src/guestfs-actions.pod:1897
9628 #, no-wrap
9629 msgid ""
9630 " int\n"
9631 " guestfs_get_direct (guestfs_h *g);\n"
9632 "\n"
9633 msgstr ""
9634
9635 # type: textblock
9636 #. type: textblock
9637 #: ../src/guestfs-actions.pod:1900 ../fish/guestfish-actions.pod:1294
9638 msgid "Return the direct appliance mode flag."
9639 msgstr ""
9640
9641 # type: textblock
9642 #. type: textblock
9643 #: ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:5696
9644 msgid "(Added in 1.0.72)"
9645 msgstr ""
9646
9647 # type: =head2
9648 #. type: =head2
9649 #: ../src/guestfs-actions.pod:1906
9650 msgid "guestfs_get_e2label"
9651 msgstr ""
9652
9653 # type: verbatim
9654 #. type: verbatim
9655 #: ../src/guestfs-actions.pod:1908
9656 #, no-wrap
9657 msgid ""
9658 " char *\n"
9659 " guestfs_get_e2label (guestfs_h *g,\n"
9660 "                      const char *device);\n"
9661 "\n"
9662 msgstr ""
9663
9664 # type: textblock
9665 #. type: textblock
9666 #: ../src/guestfs-actions.pod:1912 ../fish/guestfish-actions.pod:1300
9667 msgid ""
9668 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9669 msgstr ""
9670
9671 # type: textblock
9672 #. type: textblock
9673 #: ../src/guestfs-actions.pod:1918 ../fish/guestfish-actions.pod:1303
9674 msgid ""
9675 "This function is deprecated.  In new code, use the C<vfs_label> call instead."
9676 msgstr ""
9677
9678 # type: textblock
9679 #. type: textblock
9680 #: ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1946
9681 #: ../src/guestfs-actions.pod:5714 ../src/guestfs-actions.pod:5733
9682 msgid "(Added in 1.0.15)"
9683 msgstr ""
9684
9685 # type: =head2
9686 #. type: =head2
9687 #: ../src/guestfs-actions.pod:1927
9688 msgid "guestfs_get_e2uuid"
9689 msgstr ""
9690
9691 # type: verbatim
9692 #. type: verbatim
9693 #: ../src/guestfs-actions.pod:1929
9694 #, no-wrap
9695 msgid ""
9696 " char *\n"
9697 " guestfs_get_e2uuid (guestfs_h *g,\n"
9698 "                     const char *device);\n"
9699 "\n"
9700 msgstr ""
9701
9702 # type: textblock
9703 #. type: textblock
9704 #: ../src/guestfs-actions.pod:1933 ../fish/guestfish-actions.pod:1314
9705 msgid ""
9706 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9707 msgstr ""
9708
9709 # type: textblock
9710 #. type: textblock
9711 #: ../src/guestfs-actions.pod:1939 ../fish/guestfish-actions.pod:1317
9712 msgid ""
9713 "This function is deprecated.  In new code, use the C<vfs_uuid> call instead."
9714 msgstr ""
9715
9716 # type: =head2
9717 #. type: =head2
9718 #: ../src/guestfs-actions.pod:1948
9719 msgid "guestfs_get_memsize"
9720 msgstr ""
9721
9722 # type: verbatim
9723 #. type: verbatim
9724 #: ../src/guestfs-actions.pod:1950
9725 #, no-wrap
9726 msgid ""
9727 " int\n"
9728 " guestfs_get_memsize (guestfs_h *g);\n"
9729 "\n"
9730 msgstr ""
9731
9732 # type: textblock
9733 #. type: textblock
9734 #: ../src/guestfs-actions.pod:1953 ../fish/guestfish-actions.pod:1328
9735 msgid ""
9736 "This gets the memory size in megabytes allocated to the qemu subprocess."
9737 msgstr ""
9738
9739 # type: textblock
9740 #. type: textblock
9741 #: ../src/guestfs-actions.pod:1956
9742 msgid ""
9743 "If C<guestfs_set_memsize> was not called on this handle, and if "
9744 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
9745 "value for memsize."
9746 msgstr ""
9747
9748 # type: textblock
9749 #. type: textblock
9750 #: ../src/guestfs-actions.pod:1960 ../src/guestfs-actions.pod:2041
9751 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5856
9752 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1386
9753 #: ../fish/guestfish-actions.pod:3854 ../fish/guestfish-actions.pod:3941
9754 msgid ""
9755 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
9756 msgstr ""
9757
9758 # type: textblock
9759 #. type: textblock
9760 #: ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:4245
9761 #: ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:4461
9762 #: ../src/guestfs-actions.pod:4480 ../src/guestfs-actions.pod:4492
9763 #: ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4522
9764 #: ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5754
9765 #: ../src/guestfs-actions.pod:5997 ../src/guestfs-actions.pod:6598
9766 msgid "(Added in 1.0.55)"
9767 msgstr ""
9768
9769 # type: =head2
9770 #. type: =head2
9771 #: ../src/guestfs-actions.pod:1967
9772 msgid "guestfs_get_network"
9773 msgstr ""
9774
9775 # type: verbatim
9776 #. type: verbatim
9777 #: ../src/guestfs-actions.pod:1969
9778 #, no-wrap
9779 msgid ""
9780 " int\n"
9781 " guestfs_get_network (guestfs_h *g);\n"
9782 "\n"
9783 msgstr ""
9784
9785 # type: textblock
9786 #. type: textblock
9787 #: ../src/guestfs-actions.pod:1972 ../fish/guestfish-actions.pod:1342
9788 msgid "This returns the enable network flag."
9789 msgstr ""
9790
9791 # type: textblock
9792 #. type: textblock
9793 #: ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:5773
9794 msgid "(Added in 1.5.4)"
9795 msgstr ""
9796
9797 # type: =head2
9798 #. type: =head2
9799 #: ../src/guestfs-actions.pod:1978
9800 msgid "guestfs_get_path"
9801 msgstr ""
9802
9803 # type: verbatim
9804 #. type: verbatim
9805 #: ../src/guestfs-actions.pod:1980
9806 #, no-wrap
9807 msgid ""
9808 " const char *\n"
9809 " guestfs_get_path (guestfs_h *g);\n"
9810 "\n"
9811 msgstr ""
9812
9813 # type: textblock
9814 #. type: textblock
9815 #: ../src/guestfs-actions.pod:1983 ../fish/guestfish-actions.pod:1348
9816 msgid "Return the current search path."
9817 msgstr ""
9818
9819 # type: textblock
9820 #. type: textblock
9821 #: ../src/guestfs-actions.pod:1985 ../fish/guestfish-actions.pod:1350
9822 msgid ""
9823 "This is always non-NULL.  If it wasn't set already, then this will return "
9824 "the default path."
9825 msgstr ""
9826
9827 # type: textblock
9828 #. type: textblock
9829 #: ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2017
9830 msgid ""
9831 "This function returns a string, or NULL on error.  The string is owned by "
9832 "the guest handle and must I<not> be freed."
9833 msgstr ""
9834
9835 # type: =head2
9836 #. type: =head2
9837 #: ../src/guestfs-actions.pod:1993
9838 msgid "guestfs_get_pid"
9839 msgstr ""
9840
9841 # type: verbatim
9842 #. type: verbatim
9843 #: ../src/guestfs-actions.pod:1995
9844 #, no-wrap
9845 msgid ""
9846 " int\n"
9847 " guestfs_get_pid (guestfs_h *g);\n"
9848 "\n"
9849 msgstr ""
9850
9851 # type: textblock
9852 #. type: textblock
9853 #: ../src/guestfs-actions.pod:1998 ../fish/guestfish-actions.pod:1359
9854 msgid ""
9855 "Return the process ID of the qemu subprocess.  If there is no qemu "
9856 "subprocess, then this will return an error."
9857 msgstr ""
9858
9859 # type: textblock
9860 #. type: textblock
9861 #: ../src/guestfs-actions.pod:2001 ../fish/guestfish-actions.pod:1362
9862 msgid "This is an internal call used for debugging and testing."
9863 msgstr ""
9864
9865 # type: textblock
9866 #. type: textblock
9867 #: ../src/guestfs-actions.pod:2005
9868 msgid "(Added in 1.0.56)"
9869 msgstr ""
9870
9871 # type: =head2
9872 #. type: =head2
9873 #: ../src/guestfs-actions.pod:2007
9874 msgid "guestfs_get_qemu"
9875 msgstr ""
9876
9877 # type: verbatim
9878 #. type: verbatim
9879 #: ../src/guestfs-actions.pod:2009
9880 #, no-wrap
9881 msgid ""
9882 " const char *\n"
9883 " guestfs_get_qemu (guestfs_h *g);\n"
9884 "\n"
9885 msgstr ""
9886
9887 # type: textblock
9888 #. type: textblock
9889 #: ../src/guestfs-actions.pod:2012 ../fish/guestfish-actions.pod:1368
9890 msgid "Return the current qemu binary."
9891 msgstr ""
9892
9893 # type: textblock
9894 #. type: textblock
9895 #: ../src/guestfs-actions.pod:2014 ../fish/guestfish-actions.pod:1370
9896 msgid ""
9897 "This is always non-NULL.  If it wasn't set already, then this will return "
9898 "the default qemu binary name."
9899 msgstr ""
9900
9901 # type: textblock
9902 #. type: textblock
9903 #: ../src/guestfs-actions.pod:2020 ../src/guestfs-actions.pod:5818
9904 msgid "(Added in 1.0.6)"
9905 msgstr ""
9906
9907 # type: =head2
9908 #. type: =head2
9909 #: ../src/guestfs-actions.pod:2022
9910 msgid "guestfs_get_recovery_proc"
9911 msgstr ""
9912
9913 # type: verbatim
9914 #. type: verbatim
9915 #: ../src/guestfs-actions.pod:2024
9916 #, no-wrap
9917 msgid ""
9918 " int\n"
9919 " guestfs_get_recovery_proc (guestfs_h *g);\n"
9920 "\n"
9921 msgstr ""
9922
9923 # type: textblock
9924 #. type: textblock
9925 #: ../src/guestfs-actions.pod:2027 ../fish/guestfish-actions.pod:1377
9926 msgid "Return the recovery process enabled flag."
9927 msgstr ""
9928
9929 # type: textblock
9930 #. type: textblock
9931 #: ../src/guestfs-actions.pod:2031 ../src/guestfs-actions.pod:3355
9932 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:4052
9933 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:5105
9934 #: ../src/guestfs-actions.pod:5448 ../src/guestfs-actions.pod:5842
9935 #: ../src/guestfs-actions.pod:6501 ../src/guestfs-actions.pod:6521
9936 #: ../src/guestfs-actions.pod:6713
9937 msgid "(Added in 1.0.77)"
9938 msgstr ""
9939
9940 # type: =head2
9941 #. type: =head2
9942 #: ../src/guestfs-actions.pod:2033
9943 msgid "guestfs_get_selinux"
9944 msgstr ""
9945
9946 # type: verbatim
9947 #. type: verbatim
9948 #: ../src/guestfs-actions.pod:2035
9949 #, no-wrap
9950 msgid ""
9951 " int\n"
9952 " guestfs_get_selinux (guestfs_h *g);\n"
9953 "\n"
9954 msgstr ""
9955
9956 # type: textblock
9957 #. type: textblock
9958 #: ../src/guestfs-actions.pod:2038
9959 msgid ""
9960 "This returns the current setting of the selinux flag which is passed to the "
9961 "appliance at boot time.  See C<guestfs_set_selinux>."
9962 msgstr ""
9963
9964 # type: textblock
9965 #. type: textblock
9966 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2109
9967 #: ../src/guestfs-actions.pod:5861 ../src/guestfs-actions.pod:5915
9968 msgid "(Added in 1.0.67)"
9969 msgstr ""
9970
9971 # type: =head2
9972 #. type: =head2
9973 #: ../src/guestfs-actions.pod:2048
9974 msgid "guestfs_get_state"
9975 msgstr ""
9976
9977 # type: verbatim
9978 #. type: verbatim
9979 #: ../src/guestfs-actions.pod:2050
9980 #, no-wrap
9981 msgid ""
9982 " int\n"
9983 " guestfs_get_state (guestfs_h *g);\n"
9984 "\n"
9985 msgstr ""
9986
9987 # type: textblock
9988 #. type: textblock
9989 #: ../src/guestfs-actions.pod:2053 ../fish/guestfish-actions.pod:1393
9990 msgid ""
9991 "This returns the current state as an opaque integer.  This is only useful "
9992 "for printing debug and internal error messages."
9993 msgstr ""
9994
9995 # type: textblock
9996 #. type: textblock
9997 #: ../src/guestfs-actions.pod:2056 ../src/guestfs-actions.pod:3158
9998 #: ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3248
9999 #: ../src/guestfs-actions.pod:3275 ../fish/guestfish-actions.pod:1396
10000 #: ../fish/guestfish-actions.pod:2210 ../fish/guestfish-actions.pod:2228
10001 #: ../fish/guestfish-actions.pod:2266 ../fish/guestfish-actions.pod:2282
10002 msgid "For more information on states, see L<guestfs(3)>."
10003 msgstr ""
10004
10005 # type: =head2
10006 #. type: =head2
10007 #: ../src/guestfs-actions.pod:2062
10008 msgid "guestfs_get_trace"
10009 msgstr ""
10010
10011 # type: verbatim
10012 #. type: verbatim
10013 #: ../src/guestfs-actions.pod:2064
10014 #, no-wrap
10015 msgid ""
10016 " int\n"
10017 " guestfs_get_trace (guestfs_h *g);\n"
10018 "\n"
10019 msgstr ""
10020
10021 # type: textblock
10022 #. type: textblock
10023 #: ../src/guestfs-actions.pod:2067 ../fish/guestfish-actions.pod:1402
10024 msgid "Return the command trace flag."
10025 msgstr ""
10026
10027 # type: =head2
10028 #. type: =head2
10029 #: ../src/guestfs-actions.pod:2073
10030 msgid "guestfs_get_umask"
10031 msgstr ""
10032
10033 # type: verbatim
10034 #. type: verbatim
10035 #: ../src/guestfs-actions.pod:2075
10036 #, no-wrap
10037 msgid ""
10038 " int\n"
10039 " guestfs_get_umask (guestfs_h *g);\n"
10040 "\n"
10041 msgstr ""
10042
10043 # type: textblock
10044 #. type: textblock
10045 #: ../src/guestfs-actions.pod:2078
10046 msgid ""
10047 "Return the current umask.  By default the umask is C<022> unless it has been "
10048 "set by calling C<guestfs_umask>."
10049 msgstr ""
10050
10051 # type: =head2
10052 #. type: =head2
10053 #: ../src/guestfs-actions.pod:2085
10054 msgid "guestfs_get_verbose"
10055 msgstr ""
10056
10057 # type: verbatim
10058 #. type: verbatim
10059 #: ../src/guestfs-actions.pod:2087
10060 #, no-wrap
10061 msgid ""
10062 " int\n"
10063 " guestfs_get_verbose (guestfs_h *g);\n"
10064 "\n"
10065 msgstr ""
10066
10067 # type: textblock
10068 #. type: textblock
10069 #: ../src/guestfs-actions.pod:2090 ../fish/guestfish-actions.pod:1415
10070 msgid "This returns the verbose messages flag."
10071 msgstr ""
10072
10073 # type: =head2
10074 #. type: =head2
10075 #: ../src/guestfs-actions.pod:2096
10076 msgid "guestfs_getcon"
10077 msgstr ""
10078
10079 # type: verbatim
10080 #. type: verbatim
10081 #: ../src/guestfs-actions.pod:2098
10082 #, no-wrap
10083 msgid ""
10084 " char *\n"
10085 " guestfs_getcon (guestfs_h *g);\n"
10086 "\n"
10087 msgstr ""
10088
10089 # type: textblock
10090 #. type: textblock
10091 #: ../src/guestfs-actions.pod:2101 ../fish/guestfish-actions.pod:1421
10092 msgid "This gets the SELinux security context of the daemon."
10093 msgstr ""
10094
10095 # type: textblock
10096 #. type: textblock
10097 #: ../src/guestfs-actions.pod:2103
10098 msgid ""
10099 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
10100 msgstr ""
10101
10102 # type: =head2
10103 #. type: =head2
10104 #: ../src/guestfs-actions.pod:2111
10105 msgid "guestfs_getxattr"
10106 msgstr ""
10107
10108 # type: verbatim
10109 #. type: verbatim
10110 #: ../src/guestfs-actions.pod:2113
10111 #, no-wrap
10112 msgid ""
10113 " char *\n"
10114 " guestfs_getxattr (guestfs_h *g,\n"
10115 "                   const char *path,\n"
10116 "                   const char *name,\n"
10117 "                   size_t *size_r);\n"
10118 "\n"
10119 msgstr ""
10120
10121 # type: textblock
10122 #. type: textblock
10123 #: ../src/guestfs-actions.pod:2119
10124 msgid ""
10125 "Get a single extended attribute from file C<path> named C<name>.  This call "
10126 "follows symlinks.  If you want to lookup an extended attribute for the "
10127 "symlink itself, use C<guestfs_lgetxattr>."
10128 msgstr ""
10129
10130 # type: textblock
10131 #. type: textblock
10132 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:3369
10133 msgid ""
10134 "Normally it is better to get all extended attributes from a file in one go "
10135 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
10136 "implementations are buggy and do not provide a way to list out attributes.  "
10137 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
10138 "extended attributes you want in advance and call this function."
10139 msgstr ""
10140
10141 # type: textblock
10142 #. type: textblock
10143 #: ../src/guestfs-actions.pod:2130 ../src/guestfs-actions.pod:3376
10144 #: ../fish/guestfish-actions.pod:1441 ../fish/guestfish-actions.pod:2347
10145 msgid ""
10146 "Extended attribute values are blobs of binary data.  If there is no extended "
10147 "attribute named C<name>, this returns an error."
10148 msgstr ""
10149
10150 # type: textblock
10151 #. type: textblock
10152 #: ../src/guestfs-actions.pod:2133
10153 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
10154 msgstr ""
10155
10156 # type: textblock
10157 #. type: textblock
10158 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:2326
10159 #: ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:5098
10160 #: ../src/guestfs-actions.pod:5124 ../src/guestfs-actions.pod:5305
10161 msgid ""
10162 "This function returns a buffer, or NULL on error.  The size of the returned "
10163 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
10164 "after use>."
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:3385
10169 msgid "(Added in 1.7.24)"
10170 msgstr ""
10171
10172 # type: =head2
10173 #. type: =head2
10174 #: ../src/guestfs-actions.pod:2141
10175 msgid "guestfs_getxattrs"
10176 msgstr ""
10177
10178 # type: verbatim
10179 #. type: verbatim
10180 #: ../src/guestfs-actions.pod:2143
10181 #, no-wrap
10182 msgid ""
10183 " struct guestfs_xattr_list *\n"
10184 " guestfs_getxattrs (guestfs_h *g,\n"
10185 "                    const char *path);\n"
10186 "\n"
10187 msgstr ""
10188
10189 # type: textblock
10190 #. type: textblock
10191 #: ../src/guestfs-actions.pod:2147 ../fish/guestfish-actions.pod:1450
10192 msgid ""
10193 "This call lists the extended attributes of the file or directory C<path>."
10194 msgstr ""
10195
10196 # type: textblock
10197 #. type: textblock
10198 #: ../src/guestfs-actions.pod:2150 ../fish/guestfish-actions.pod:1453
10199 msgid ""
10200 "At the system call level, this is a combination of the L<listxattr(2)> and "
10201 "L<getxattr(2)> calls."
10202 msgstr ""
10203
10204 # type: textblock
10205 #. type: textblock
10206 #: ../src/guestfs-actions.pod:2153
10207 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
10208 msgstr ""
10209
10210 # type: textblock
10211 #. type: textblock
10212 #: ../src/guestfs-actions.pod:2155 ../src/guestfs-actions.pod:3397
10213 #: ../src/guestfs-actions.pod:4048
10214 msgid ""
10215 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
10216 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
10217 msgstr ""
10218
10219 # type: textblock
10220 #. type: textblock
10221 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3401
10222 #: ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3602
10223 #: ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:5934
10224 #: ../src/guestfs-actions.pod:7269
10225 msgid "(Added in 1.0.59)"
10226 msgstr ""
10227
10228 # type: =head2
10229 #. type: =head2
10230 #: ../src/guestfs-actions.pod:2161
10231 msgid "guestfs_glob_expand"
10232 msgstr ""
10233
10234 # type: verbatim
10235 #. type: verbatim
10236 #: ../src/guestfs-actions.pod:2163
10237 #, no-wrap
10238 msgid ""
10239 " char **\n"
10240 " guestfs_glob_expand (guestfs_h *g,\n"
10241 "                      const char *pattern);\n"
10242 "\n"
10243 msgstr ""
10244
10245 # type: textblock
10246 #. type: textblock
10247 #: ../src/guestfs-actions.pod:2167 ../fish/guestfish-actions.pod:1462
10248 msgid ""
10249 "This command searches for all the pathnames matching C<pattern> according to "
10250 "the wildcard expansion rules used by the shell."
10251 msgstr ""
10252
10253 # type: textblock
10254 #. type: textblock
10255 #: ../src/guestfs-actions.pod:2171 ../fish/guestfish-actions.pod:1466
10256 msgid ""
10257 "If no paths match, then this returns an empty list (note: not an error)."
10258 msgstr ""
10259
10260 # type: textblock
10261 #. type: textblock
10262 #: ../src/guestfs-actions.pod:2174 ../fish/guestfish-actions.pod:1469
10263 msgid ""
10264 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10265 "GLOB_BRACE>.  See that manual page for more details."
10266 msgstr ""
10267
10268 # type: textblock
10269 #. type: textblock
10270 #: ../src/guestfs-actions.pod:2182 ../src/guestfs-actions.pod:6099
10271 #: ../src/guestfs-actions.pod:6116
10272 msgid "(Added in 1.0.50)"
10273 msgstr ""
10274
10275 # type: =head2
10276 #. type: =head2
10277 #: ../src/guestfs-actions.pod:2184
10278 msgid "guestfs_grep"
10279 msgstr ""
10280
10281 # type: verbatim
10282 #. type: verbatim
10283 #: ../src/guestfs-actions.pod:2186
10284 #, no-wrap
10285 msgid ""
10286 " char **\n"
10287 " guestfs_grep (guestfs_h *g,\n"
10288 "               const char *regex,\n"
10289 "               const char *path);\n"
10290 "\n"
10291 msgstr ""
10292
10293 # type: textblock
10294 #. type: textblock
10295 #: ../src/guestfs-actions.pod:2191 ../fish/guestfish-actions.pod:1477
10296 msgid "This calls the external C<grep> program and returns the matching lines."
10297 msgstr ""
10298
10299 # type: =head2
10300 #. type: =head2
10301 #: ../src/guestfs-actions.pod:2203
10302 msgid "guestfs_grepi"
10303 msgstr ""
10304
10305 # type: verbatim
10306 #. type: verbatim
10307 #: ../src/guestfs-actions.pod:2205
10308 #, no-wrap
10309 msgid ""
10310 " char **\n"
10311 " guestfs_grepi (guestfs_h *g,\n"
10312 "                const char *regex,\n"
10313 "                const char *path);\n"
10314 "\n"
10315 msgstr ""
10316
10317 # type: textblock
10318 #. type: textblock
10319 #: ../src/guestfs-actions.pod:2210 ../fish/guestfish-actions.pod:1487
10320 msgid ""
10321 "This calls the external C<grep -i> program and returns the matching lines."
10322 msgstr ""
10323
10324 # type: =head2
10325 #. type: =head2
10326 #: ../src/guestfs-actions.pod:2222
10327 msgid "guestfs_grub_install"
10328 msgstr ""
10329
10330 # type: verbatim
10331 #. type: verbatim
10332 #: ../src/guestfs-actions.pod:2224
10333 #, no-wrap
10334 msgid ""
10335 " int\n"
10336 " guestfs_grub_install (guestfs_h *g,\n"
10337 "                       const char *root,\n"
10338 "                       const char *device);\n"
10339 "\n"
10340 msgstr ""
10341
10342 # type: textblock
10343 #. type: textblock
10344 #: ../src/guestfs-actions.pod:2229 ../fish/guestfish-actions.pod:1497
10345 msgid ""
10346 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
10347 "the root directory being C<root>."
10348 msgstr ""
10349
10350 # type: textblock
10351 #. type: textblock
10352 #: ../src/guestfs-actions.pod:2232 ../fish/guestfish-actions.pod:1500
10353 msgid ""
10354 "Note: If grub-install reports the error \"No suitable drive was found in the "
10355 "generated device map.\" it may be that you need to create a C</boot/grub/"
10356 "device.map> file first that contains the mapping between grub device names "
10357 "and Linux device names.  It is usually sufficient to create a file "
10358 "containing:"
10359 msgstr ""
10360
10361 # type: verbatim
10362 #. type: verbatim
10363 #: ../src/guestfs-actions.pod:2239 ../fish/guestfish-actions.pod:1507
10364 #, no-wrap
10365 msgid ""
10366 " (hd0) /dev/vda\n"
10367 "\n"
10368 msgstr ""
10369
10370 # type: textblock
10371 #. type: textblock
10372 #: ../src/guestfs-actions.pod:2241 ../fish/guestfish-actions.pod:1509
10373 msgid "replacing C</dev/vda> with the name of the installation device."
10374 msgstr ""
10375
10376 # type: textblock
10377 #. type: textblock
10378 #: ../src/guestfs-actions.pod:2245
10379 msgid "(Added in 1.0.17)"
10380 msgstr ""
10381
10382 # type: =head2
10383 #. type: =head2
10384 #: ../src/guestfs-actions.pod:2247
10385 msgid "guestfs_head"
10386 msgstr ""
10387
10388 # type: verbatim
10389 #. type: verbatim
10390 #: ../src/guestfs-actions.pod:2249
10391 #, no-wrap
10392 msgid ""
10393 " char **\n"
10394 " guestfs_head (guestfs_h *g,\n"
10395 "               const char *path);\n"
10396 "\n"
10397 msgstr ""
10398
10399 # type: textblock
10400 #. type: textblock
10401 #: ../src/guestfs-actions.pod:2253 ../fish/guestfish-actions.pod:1515
10402 msgid ""
10403 "This command returns up to the first 10 lines of a file as a list of strings."
10404 msgstr ""
10405
10406 # type: =head2
10407 #. type: =head2
10408 #: ../src/guestfs-actions.pod:2265
10409 msgid "guestfs_head_n"
10410 msgstr ""
10411
10412 # type: verbatim
10413 #. type: verbatim
10414 #: ../src/guestfs-actions.pod:2267
10415 #, no-wrap
10416 msgid ""
10417 " char **\n"
10418 " guestfs_head_n (guestfs_h *g,\n"
10419 "                 int nrlines,\n"
10420 "                 const char *path);\n"
10421 "\n"
10422 msgstr ""
10423
10424 # type: textblock
10425 #. type: textblock
10426 #: ../src/guestfs-actions.pod:2272 ../fish/guestfish-actions.pod:1525
10427 msgid ""
10428 "If the parameter C<nrlines> is a positive number, this returns the first "
10429 "C<nrlines> lines of the file C<path>."
10430 msgstr ""
10431
10432 # type: textblock
10433 #. type: textblock
10434 #: ../src/guestfs-actions.pod:2275 ../fish/guestfish-actions.pod:1528
10435 msgid ""
10436 "If the parameter C<nrlines> is a negative number, this returns lines from "
10437 "the file C<path>, excluding the last C<nrlines> lines."
10438 msgstr ""
10439
10440 # type: textblock
10441 #. type: textblock
10442 #: ../src/guestfs-actions.pod:2278 ../src/guestfs-actions.pod:6396
10443 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:4287
10444 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10445 msgstr ""
10446
10447 # type: =head2
10448 #. type: =head2
10449 #: ../src/guestfs-actions.pod:2289
10450 msgid "guestfs_hexdump"
10451 msgstr ""
10452
10453 # type: verbatim
10454 #. type: verbatim
10455 #: ../src/guestfs-actions.pod:2291
10456 #, no-wrap
10457 msgid ""
10458 " char *\n"
10459 " guestfs_hexdump (guestfs_h *g,\n"
10460 "                  const char *path);\n"
10461 "\n"
10462 msgstr ""
10463
10464 # type: textblock
10465 #. type: textblock
10466 #: ../src/guestfs-actions.pod:2295 ../fish/guestfish-actions.pod:1540
10467 msgid ""
10468 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10469 "readable, canonical hex dump of the file."
10470 msgstr ""
10471
10472 # type: textblock
10473 #. type: textblock
10474 #: ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:6180
10475 #: ../src/guestfs-actions.pod:6235
10476 msgid "(Added in 1.0.22)"
10477 msgstr ""
10478
10479 # type: =head2
10480 #. type: =head2
10481 #: ../src/guestfs-actions.pod:2306
10482 msgid "guestfs_initrd_cat"
10483 msgstr ""
10484
10485 # type: verbatim
10486 #. type: verbatim
10487 #: ../src/guestfs-actions.pod:2308
10488 #, no-wrap
10489 msgid ""
10490 " char *\n"
10491 " guestfs_initrd_cat (guestfs_h *g,\n"
10492 "                     const char *initrdpath,\n"
10493 "                     const char *filename,\n"
10494 "                     size_t *size_r);\n"
10495 "\n"
10496 msgstr ""
10497
10498 # type: textblock
10499 #. type: textblock
10500 #: ../src/guestfs-actions.pod:2314 ../fish/guestfish-actions.pod:1550
10501 msgid ""
10502 "This command unpacks the file C<filename> from the initrd file called "
10503 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10504 "character."
10505 msgstr ""
10506
10507 # type: textblock
10508 #. type: textblock
10509 #: ../src/guestfs-actions.pod:2318 ../fish/guestfish-actions.pod:1554
10510 msgid ""
10511 "For example, in guestfish you could use the following command to examine the "
10512 "boot script (usually called C</init>)  contained in a Linux initrd or "
10513 "initramfs image:"
10514 msgstr ""
10515
10516 # type: verbatim
10517 #. type: verbatim
10518 #: ../src/guestfs-actions.pod:2322 ../fish/guestfish-actions.pod:1558
10519 #, no-wrap
10520 msgid ""
10521 " initrd-cat /boot/initrd-<version>.img init\n"
10522 "\n"
10523 msgstr ""
10524
10525 # type: textblock
10526 #. type: textblock
10527 #: ../src/guestfs-actions.pod:2324
10528 msgid "See also C<guestfs_initrd_list>."
10529 msgstr ""
10530
10531 # type: =head2
10532 #. type: =head2
10533 #: ../src/guestfs-actions.pod:2335
10534 msgid "guestfs_initrd_list"
10535 msgstr ""
10536
10537 # type: verbatim
10538 #. type: verbatim
10539 #: ../src/guestfs-actions.pod:2337
10540 #, no-wrap
10541 msgid ""
10542 " char **\n"
10543 " guestfs_initrd_list (guestfs_h *g,\n"
10544 "                      const char *path);\n"
10545 "\n"
10546 msgstr ""
10547
10548 # type: textblock
10549 #. type: textblock
10550 #: ../src/guestfs-actions.pod:2341 ../fish/guestfish-actions.pod:1569
10551 msgid "This command lists out files contained in an initrd."
10552 msgstr ""
10553
10554 # type: textblock
10555 #. type: textblock
10556 #: ../src/guestfs-actions.pod:2343 ../fish/guestfish-actions.pod:1571
10557 msgid ""
10558 "The files are listed without any initial C</> character.  The files are "
10559 "listed in the order they appear (not necessarily alphabetical).  Directory "
10560 "names are listed as separate items."
10561 msgstr ""
10562
10563 # type: textblock
10564 #. type: textblock
10565 #: ../src/guestfs-actions.pod:2347 ../fish/guestfish-actions.pod:1575
10566 msgid ""
10567 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10568 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10569 "files)."
10570 msgstr ""
10571
10572 # type: =head2
10573 #. type: =head2
10574 #: ../src/guestfs-actions.pod:2357
10575 msgid "guestfs_inotify_add_watch"
10576 msgstr ""
10577
10578 # type: verbatim
10579 #. type: verbatim
10580 #: ../src/guestfs-actions.pod:2359
10581 #, no-wrap
10582 msgid ""
10583 " int64_t\n"
10584 " guestfs_inotify_add_watch (guestfs_h *g,\n"
10585 "                            const char *path,\n"
10586 "                            int mask);\n"
10587 "\n"
10588 msgstr ""
10589
10590 # type: textblock
10591 #. type: textblock
10592 #: ../src/guestfs-actions.pod:2364 ../fish/guestfish-actions.pod:1583
10593 msgid "Watch C<path> for the events listed in C<mask>."
10594 msgstr ""
10595
10596 # type: textblock
10597 #. type: textblock
10598 #: ../src/guestfs-actions.pod:2366 ../fish/guestfish-actions.pod:1585
10599 msgid ""
10600 "Note that if C<path> is a directory then events within that directory are "
10601 "watched, but this does I<not> happen recursively (in subdirectories)."
10602 msgstr ""
10603
10604 # type: textblock
10605 #. type: textblock
10606 #: ../src/guestfs-actions.pod:2370 ../fish/guestfish-actions.pod:1589
10607 msgid ""
10608 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10609 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10610 msgstr ""
10611
10612 # type: =head2
10613 #. type: =head2
10614 #: ../src/guestfs-actions.pod:2378
10615 msgid "guestfs_inotify_close"
10616 msgstr ""
10617
10618 # type: verbatim
10619 #. type: verbatim
10620 #: ../src/guestfs-actions.pod:2380
10621 #, no-wrap
10622 msgid ""
10623 " int\n"
10624 " guestfs_inotify_close (guestfs_h *g);\n"
10625 "\n"
10626 msgstr ""
10627
10628 # type: textblock
10629 #. type: textblock
10630 #: ../src/guestfs-actions.pod:2383 ../fish/guestfish-actions.pod:1597
10631 msgid ""
10632 "This closes the inotify handle which was previously opened by inotify_init.  "
10633 "It removes all watches, throws away any pending events, and deallocates all "
10634 "resources."
10635 msgstr ""
10636
10637 # type: =head2
10638 #. type: =head2
10639 #: ../src/guestfs-actions.pod:2391
10640 msgid "guestfs_inotify_files"
10641 msgstr ""
10642
10643 # type: verbatim
10644 #. type: verbatim
10645 #: ../src/guestfs-actions.pod:2393
10646 #, no-wrap
10647 msgid ""
10648 " char **\n"
10649 " guestfs_inotify_files (guestfs_h *g);\n"
10650 "\n"
10651 msgstr ""
10652
10653 # type: textblock
10654 #. type: textblock
10655 #: ../src/guestfs-actions.pod:2396
10656 msgid ""
10657 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
10658 "returns a list of pathnames of objects that were touched.  The returned "
10659 "pathnames are sorted and deduplicated."
10660 msgstr ""
10661
10662 # type: =head2
10663 #. type: =head2
10664 #: ../src/guestfs-actions.pod:2406
10665 msgid "guestfs_inotify_init"
10666 msgstr ""
10667
10668 # type: verbatim
10669 #. type: verbatim
10670 #: ../src/guestfs-actions.pod:2408
10671 #, no-wrap
10672 msgid ""
10673 " int\n"
10674 " guestfs_inotify_init (guestfs_h *g,\n"
10675 "                       int maxevents);\n"
10676 "\n"
10677 msgstr ""
10678
10679 # type: textblock
10680 #. type: textblock
10681 #: ../src/guestfs-actions.pod:2412 ../fish/guestfish-actions.pod:1613
10682 msgid ""
10683 "This command creates a new inotify handle.  The inotify subsystem can be "
10684 "used to notify events which happen to objects in the guest filesystem."
10685 msgstr ""
10686
10687 # type: textblock
10688 #. type: textblock
10689 #: ../src/guestfs-actions.pod:2416
10690 msgid ""
10691 "C<maxevents> is the maximum number of events which will be queued up between "
10692 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
10693 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
10694 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
10695 "throws away events, but records the fact that it threw them away by setting "
10696 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
10697 "C<guestfs_inotify_read>)."
10698 msgstr ""
10699
10700 # type: textblock
10701 #. type: textblock
10702 #: ../src/guestfs-actions.pod:2426
10703 msgid ""
10704 "Before any events are generated, you have to add some watches to the "
10705 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
10706 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
10707 msgstr ""
10708
10709 # type: textblock
10710 #. type: textblock
10711 #: ../src/guestfs-actions.pod:2432
10712 msgid ""
10713 "Queued up events should be read periodically by calling "
10714 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
10715 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
10716 "often enough then you risk the internal queue overflowing."
10717 msgstr ""
10718
10719 # type: textblock
10720 #. type: textblock
10721 #: ../src/guestfs-actions.pod:2439
10722 msgid ""
10723 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
10724 "This also removes any watches automatically."
10725 msgstr ""
10726
10727 # type: textblock
10728 #. type: textblock
10729 #: ../src/guestfs-actions.pod:2443 ../fish/guestfish-actions.pod:1644
10730 msgid ""
10731 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10732 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10733 "that there is one global inotify handle per libguestfs instance."
10734 msgstr ""
10735
10736 # type: =head2
10737 #. type: =head2
10738 #: ../src/guestfs-actions.pod:2452
10739 msgid "guestfs_inotify_read"
10740 msgstr ""
10741
10742 # type: verbatim
10743 #. type: verbatim
10744 #: ../src/guestfs-actions.pod:2454
10745 #, no-wrap
10746 msgid ""
10747 " struct guestfs_inotify_event_list *\n"
10748 " guestfs_inotify_read (guestfs_h *g);\n"
10749 "\n"
10750 msgstr ""
10751
10752 # type: textblock
10753 #. type: textblock
10754 #: ../src/guestfs-actions.pod:2457 ../fish/guestfish-actions.pod:1653
10755 msgid ""
10756 "Return the complete queue of events that have happened since the previous "
10757 "read call."
10758 msgstr ""
10759
10760 # type: textblock
10761 #. type: textblock
10762 #: ../src/guestfs-actions.pod:2460 ../fish/guestfish-actions.pod:1656
10763 msgid "If no events have happened, this returns an empty list."
10764 msgstr ""
10765
10766 # type: textblock
10767 #. type: textblock
10768 #: ../src/guestfs-actions.pod:2462 ../fish/guestfish-actions.pod:1658
10769 msgid ""
10770 "I<Note>: In order to make sure that all events have been read, you must call "
10771 "this function repeatedly until it returns an empty list.  The reason is that "
10772 "the call will read events up to the maximum appliance-to-host message size "
10773 "and leave remaining events in the queue."
10774 msgstr ""
10775
10776 # type: textblock
10777 #. type: textblock
10778 #: ../src/guestfs-actions.pod:2468
10779 msgid ""
10780 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
10781 "there was an error.  I<The caller must call "
10782 "C<guestfs_free_inotify_event_list> after use>."
10783 msgstr ""
10784
10785 # type: =head2
10786 #. type: =head2
10787 #: ../src/guestfs-actions.pod:2474
10788 msgid "guestfs_inotify_rm_watch"
10789 msgstr ""
10790
10791 # type: verbatim
10792 #. type: verbatim
10793 #: ../src/guestfs-actions.pod:2476
10794 #, no-wrap
10795 msgid ""
10796 " int\n"
10797 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
10798 "                           int wd);\n"
10799 "\n"
10800 msgstr ""
10801
10802 # type: textblock
10803 #. type: textblock
10804 #: ../src/guestfs-actions.pod:2480
10805 msgid ""
10806 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
10807 msgstr ""
10808
10809 # type: =head2
10810 #. type: =head2
10811 #: ../src/guestfs-actions.pod:2487
10812 msgid "guestfs_inspect_get_arch"
10813 msgstr ""
10814
10815 # type: verbatim
10816 #. type: verbatim
10817 #: ../src/guestfs-actions.pod:2489
10818 #, no-wrap
10819 msgid ""
10820 " char *\n"
10821 " guestfs_inspect_get_arch (guestfs_h *g,\n"
10822 "                           const char *root);\n"
10823 "\n"
10824 msgstr ""
10825
10826 # type: textblock
10827 #. type: textblock
10828 #: ../src/guestfs-actions.pod:2493 ../src/guestfs-actions.pod:2516
10829 #: ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2623
10830 #: ../src/guestfs-actions.pod:2662 ../src/guestfs-actions.pod:2684
10831 #: ../src/guestfs-actions.pod:2711 ../src/guestfs-actions.pod:2732
10832 #: ../src/guestfs-actions.pod:2769 ../src/guestfs-actions.pod:2798
10833 #: ../src/guestfs-actions.pod:2829 ../src/guestfs-actions.pod:2873
10834 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2938
10835 #: ../src/guestfs-actions.pod:2955 ../src/guestfs-actions.pod:2972
10836 #: ../src/guestfs-actions.pod:2991
10837 msgid ""
10838 "This function should only be called with a root device string as returned by "
10839 "C<guestfs_inspect_os>."
10840 msgstr ""
10841
10842 # type: textblock
10843 #. type: textblock
10844 #: ../src/guestfs-actions.pod:2496
10845 msgid ""
10846 "This returns the architecture of the inspected operating system.  The "
10847 "possible return values are listed under C<guestfs_file_architecture>."
10848 msgstr ""
10849
10850 # type: textblock
10851 #. type: textblock
10852 #: ../src/guestfs-actions.pod:2500 ../fish/guestfish-actions.pod:1682
10853 msgid ""
10854 "If the architecture could not be determined, then the string C<unknown> is "
10855 "returned."
10856 msgstr ""
10857
10858 # type: textblock
10859 #. type: textblock
10860 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2584
10861 #: ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2671
10862 #: ../src/guestfs-actions.pod:2699 ../src/guestfs-actions.pod:2785
10863 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2840
10864 #: ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2902
10865 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:2945
10866 #: ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:2981
10867 #: ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3125
10868 #: ../fish/guestfish-actions.pod:1685 ../fish/guestfish-actions.pod:1759
10869 #: ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1826
10870 #: ../fish/guestfish-actions.pod:1847 ../fish/guestfish-actions.pod:1911
10871 #: ../fish/guestfish-actions.pod:1935 ../fish/guestfish-actions.pod:1952
10872 #: ../fish/guestfish-actions.pod:1965 ../fish/guestfish-actions.pod:2000
10873 #: ../fish/guestfish-actions.pod:2016 ../fish/guestfish-actions.pod:2029
10874 #: ../fish/guestfish-actions.pod:2042 ../fish/guestfish-actions.pod:2057
10875 #: ../fish/guestfish-actions.pod:2156 ../fish/guestfish-actions.pod:2190
10876 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10877 msgstr ""
10878
10879 # type: =head2
10880 #. type: =head2
10881 #: ../src/guestfs-actions.pod:2510
10882 msgid "guestfs_inspect_get_distro"
10883 msgstr ""
10884
10885 # type: verbatim
10886 #. type: verbatim
10887 #: ../src/guestfs-actions.pod:2512
10888 #, no-wrap
10889 msgid ""
10890 " char *\n"
10891 " guestfs_inspect_get_distro (guestfs_h *g,\n"
10892 "                             const char *root);\n"
10893 "\n"
10894 msgstr ""
10895
10896 # type: textblock
10897 #. type: textblock
10898 #: ../src/guestfs-actions.pod:2519 ../fish/guestfish-actions.pod:1694
10899 msgid ""
10900 "This returns the distro (distribution) of the inspected operating system."
10901 msgstr ""
10902
10903 # type: textblock
10904 #. type: textblock
10905 #: ../src/guestfs-actions.pod:2522 ../fish/guestfish-actions.pod:1697
10906 msgid "Currently defined distros are:"
10907 msgstr ""
10908
10909 # type: =item
10910 #. type: =item
10911 #: ../src/guestfs-actions.pod:2526 ../fish/guestfish-actions.pod:1701
10912 msgid "\"archlinux\""
10913 msgstr ""
10914
10915 # type: textblock
10916 #. type: textblock
10917 #: ../src/guestfs-actions.pod:2528 ../fish/guestfish-actions.pod:1703
10918 msgid "Arch Linux."
10919 msgstr ""
10920
10921 # type: =item
10922 #. type: =item
10923 #: ../src/guestfs-actions.pod:2530 ../fish/guestfish-actions.pod:1705
10924 msgid "\"debian\""
10925 msgstr ""
10926
10927 # type: textblock
10928 #. type: textblock
10929 #: ../src/guestfs-actions.pod:2532 ../fish/guestfish-actions.pod:1707
10930 msgid "Debian."
10931 msgstr ""
10932
10933 # type: =item
10934 #. type: =item
10935 #: ../src/guestfs-actions.pod:2534 ../fish/guestfish-actions.pod:1709
10936 msgid "\"fedora\""
10937 msgstr ""
10938
10939 # type: textblock
10940 #. type: textblock
10941 #: ../src/guestfs-actions.pod:2536 ../fish/guestfish-actions.pod:1711
10942 msgid "Fedora."
10943 msgstr ""
10944
10945 # type: =item
10946 #. type: =item
10947 #: ../src/guestfs-actions.pod:2538 ../fish/guestfish-actions.pod:1713
10948 msgid "\"gentoo\""
10949 msgstr ""
10950
10951 # type: textblock
10952 #. type: textblock
10953 #: ../src/guestfs-actions.pod:2540 ../fish/guestfish-actions.pod:1715
10954 msgid "Gentoo."
10955 msgstr ""
10956
10957 # type: =item
10958 #. type: =item
10959 #: ../src/guestfs-actions.pod:2542 ../fish/guestfish-actions.pod:1717
10960 msgid "\"linuxmint\""
10961 msgstr ""
10962
10963 # type: textblock
10964 #. type: textblock
10965 #: ../src/guestfs-actions.pod:2544 ../fish/guestfish-actions.pod:1719
10966 msgid "Linux Mint."
10967 msgstr ""
10968
10969 # type: =item
10970 #. type: =item
10971 #: ../src/guestfs-actions.pod:2546 ../fish/guestfish-actions.pod:1721
10972 msgid "\"mandriva\""
10973 msgstr ""
10974
10975 # type: textblock
10976 #. type: textblock
10977 #: ../src/guestfs-actions.pod:2548 ../fish/guestfish-actions.pod:1723
10978 msgid "Mandriva."
10979 msgstr ""
10980
10981 # type: =item
10982 #. type: =item
10983 #: ../src/guestfs-actions.pod:2550 ../fish/guestfish-actions.pod:1725
10984 msgid "\"meego\""
10985 msgstr ""
10986
10987 # type: textblock
10988 #. type: textblock
10989 #: ../src/guestfs-actions.pod:2552 ../fish/guestfish-actions.pod:1727
10990 msgid "MeeGo."
10991 msgstr ""
10992
10993 # type: =item
10994 #. type: =item
10995 #: ../src/guestfs-actions.pod:2554 ../fish/guestfish-actions.pod:1729
10996 msgid "\"pardus\""
10997 msgstr ""
10998
10999 # type: textblock
11000 #. type: textblock
11001 #: ../src/guestfs-actions.pod:2556 ../fish/guestfish-actions.pod:1731
11002 msgid "Pardus."
11003 msgstr ""
11004
11005 # type: =item
11006 #. type: =item
11007 #: ../src/guestfs-actions.pod:2558 ../fish/guestfish-actions.pod:1733
11008 msgid "\"redhat-based\""
11009 msgstr ""
11010
11011 # type: textblock
11012 #. type: textblock
11013 #: ../src/guestfs-actions.pod:2560 ../fish/guestfish-actions.pod:1735
11014 msgid "Some Red Hat-derived distro."
11015 msgstr ""
11016
11017 # type: =item
11018 #. type: =item
11019 #: ../src/guestfs-actions.pod:2562 ../fish/guestfish-actions.pod:1737
11020 msgid "\"rhel\""
11021 msgstr ""
11022
11023 # type: textblock
11024 #. type: textblock
11025 #: ../src/guestfs-actions.pod:2564 ../fish/guestfish-actions.pod:1739
11026 msgid "Red Hat Enterprise Linux and some derivatives."
11027 msgstr ""
11028
11029 # type: =item
11030 #. type: =item
11031 #: ../src/guestfs-actions.pod:2566 ../fish/guestfish-actions.pod:1741
11032 msgid "\"ubuntu\""
11033 msgstr ""
11034
11035 # type: textblock
11036 #. type: textblock
11037 #: ../src/guestfs-actions.pod:2568 ../fish/guestfish-actions.pod:1743
11038 msgid "Ubuntu."
11039 msgstr ""
11040
11041 # type: =item
11042 #. type: =item
11043 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2642
11044 #: ../src/guestfs-actions.pod:2893 ../fish/guestfish-actions.pod:1745
11045 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1991
11046 msgid "\"unknown\""
11047 msgstr ""
11048
11049 # type: textblock
11050 #. type: textblock
11051 #: ../src/guestfs-actions.pod:2572 ../fish/guestfish-actions.pod:1747
11052 msgid "The distro could not be determined."
11053 msgstr ""
11054
11055 # type: =item
11056 #. type: =item
11057 #: ../src/guestfs-actions.pod:2574 ../src/guestfs-actions.pod:2885
11058 #: ../fish/guestfish-actions.pod:1749 ../fish/guestfish-actions.pod:1983
11059 msgid "\"windows\""
11060 msgstr ""
11061
11062 # type: textblock
11063 #. type: textblock
11064 #: ../src/guestfs-actions.pod:2576 ../fish/guestfish-actions.pod:1751
11065 msgid ""
11066 "Windows does not have distributions.  This string is returned if the OS type "
11067 "is Windows."
11068 msgstr ""
11069
11070 # type: textblock
11071 #. type: textblock
11072 #: ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:2648
11073 #: ../src/guestfs-actions.pod:2899 ../fish/guestfish-actions.pod:1756
11074 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1997
11075 msgid ""
11076 "Future versions of libguestfs may return other strings here.  The caller "
11077 "should be prepared to handle any string."
11078 msgstr ""
11079
11080 # type: =head2
11081 #. type: =head2
11082 #: ../src/guestfs-actions.pod:2591
11083 msgid "guestfs_inspect_get_filesystems"
11084 msgstr ""
11085
11086 # type: verbatim
11087 #. type: verbatim
11088 #: ../src/guestfs-actions.pod:2593
11089 #, no-wrap
11090 msgid ""
11091 " char **\n"
11092 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
11093 "                                  const char *root);\n"
11094 "\n"
11095 msgstr ""
11096
11097 # type: textblock
11098 #. type: textblock
11099 #: ../src/guestfs-actions.pod:2600 ../fish/guestfish-actions.pod:1768
11100 msgid ""
11101 "This returns a list of all the filesystems that we think are associated with "
11102 "this operating system.  This includes the root filesystem, other ordinary "
11103 "filesystems, and non-mounted devices like swap partitions."
11104 msgstr ""
11105
11106 # type: textblock
11107 #. type: textblock
11108 #: ../src/guestfs-actions.pod:2605 ../fish/guestfish-actions.pod:1773
11109 msgid ""
11110 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11111 "to be shared between operating systems."
11112 msgstr ""
11113
11114 # type: textblock
11115 #. type: textblock
11116 #: ../src/guestfs-actions.pod:2608
11117 msgid ""
11118 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11119 "C<guestfs_inspect_get_mountpoints>."
11120 msgstr ""
11121
11122 #. type: =head2
11123 #: ../src/guestfs-actions.pod:2617
11124 msgid "guestfs_inspect_get_format"
11125 msgstr ""
11126
11127 #. type: verbatim
11128 #: ../src/guestfs-actions.pod:2619
11129 #, no-wrap
11130 msgid ""
11131 " char *\n"
11132 " guestfs_inspect_get_format (guestfs_h *g,\n"
11133 "                             const char *root);\n"
11134 "\n"
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../src/guestfs-actions.pod:2626 ../fish/guestfish-actions.pod:1786
11139 msgid ""
11140 "This returns the format of the inspected operating system.  You can use it "
11141 "to detect install images, live CDs and similar."
11142 msgstr ""
11143
11144 #. type: textblock
11145 #: ../src/guestfs-actions.pod:2629 ../fish/guestfish-actions.pod:1789
11146 msgid "Currently defined formats are:"
11147 msgstr ""
11148
11149 #. type: =item
11150 #: ../src/guestfs-actions.pod:2633 ../fish/guestfish-actions.pod:1793
11151 msgid "\"installed\""
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../src/guestfs-actions.pod:2635 ../fish/guestfish-actions.pod:1795
11156 msgid "This is an installed operating system."
11157 msgstr ""
11158
11159 #. type: =item
11160 #: ../src/guestfs-actions.pod:2637 ../fish/guestfish-actions.pod:1797
11161 msgid "\"installer\""
11162 msgstr ""
11163
11164 #. type: textblock
11165 #: ../src/guestfs-actions.pod:2639 ../fish/guestfish-actions.pod:1799
11166 msgid ""
11167 "The disk image being inspected is not an installed operating system, but a "
11168 "I<bootable> install disk, live CD, or similar."
11169 msgstr ""
11170
11171 #. type: textblock
11172 #: ../src/guestfs-actions.pod:2644 ../fish/guestfish-actions.pod:1804
11173 msgid "The format of this disk image is not known."
11174 msgstr ""
11175
11176 # type: =head2
11177 #. type: =head2
11178 #: ../src/guestfs-actions.pod:2656
11179 msgid "guestfs_inspect_get_hostname"
11180 msgstr ""
11181
11182 # type: verbatim
11183 #. type: verbatim
11184 #: ../src/guestfs-actions.pod:2658
11185 #, no-wrap
11186 msgid ""
11187 " char *\n"
11188 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
11189 "                               const char *root);\n"
11190 "\n"
11191 msgstr ""
11192
11193 # type: textblock
11194 #. type: textblock
11195 #: ../src/guestfs-actions.pod:2665 ../fish/guestfish-actions.pod:1820
11196 msgid ""
11197 "This function returns the hostname of the operating system as found by "
11198 "inspection of the guest's configuration files."
11199 msgstr ""
11200
11201 # type: textblock
11202 #. type: textblock
11203 #: ../src/guestfs-actions.pod:2668 ../fish/guestfish-actions.pod:1823
11204 msgid ""
11205 "If the hostname could not be determined, then the string C<unknown> is "
11206 "returned."
11207 msgstr ""
11208
11209 # type: textblock
11210 #. type: textblock
11211 #: ../src/guestfs-actions.pod:2676
11212 msgid "(Added in 1.7.9)"
11213 msgstr ""
11214
11215 # type: =head2
11216 #. type: =head2
11217 #: ../src/guestfs-actions.pod:2678
11218 msgid "guestfs_inspect_get_major_version"
11219 msgstr ""
11220
11221 # type: verbatim
11222 #. type: verbatim
11223 #: ../src/guestfs-actions.pod:2680
11224 #, no-wrap
11225 msgid ""
11226 " int\n"
11227 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
11228 "                                    const char *root);\n"
11229 "\n"
11230 msgstr ""
11231
11232 # type: textblock
11233 #. type: textblock
11234 #: ../src/guestfs-actions.pod:2687 ../fish/guestfish-actions.pod:1835
11235 msgid ""
11236 "This returns the major version number of the inspected operating system."
11237 msgstr ""
11238
11239 # type: textblock
11240 #. type: textblock
11241 #: ../src/guestfs-actions.pod:2690 ../fish/guestfish-actions.pod:1838
11242 msgid ""
11243 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11244 "popular public names used by the operating system.  Notably the operating "
11245 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11246 "1).  You can find out the real versions corresponding to releases of Windows "
11247 "by consulting Wikipedia or MSDN."
11248 msgstr ""
11249
11250 # type: textblock
11251 #. type: textblock
11252 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2717
11253 #: ../fish/guestfish-actions.pod:1845 ../fish/guestfish-actions.pod:1859
11254 msgid "If the version could not be determined, then C<0> is returned."
11255 msgstr ""
11256
11257 # type: =head2
11258 #. type: =head2
11259 #: ../src/guestfs-actions.pod:2705
11260 msgid "guestfs_inspect_get_minor_version"
11261 msgstr ""
11262
11263 # type: verbatim
11264 #. type: verbatim
11265 #: ../src/guestfs-actions.pod:2707
11266 #, no-wrap
11267 msgid ""
11268 " int\n"
11269 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
11270 "                                    const char *root);\n"
11271 "\n"
11272 msgstr ""
11273
11274 # type: textblock
11275 #. type: textblock
11276 #: ../src/guestfs-actions.pod:2714 ../fish/guestfish-actions.pod:1856
11277 msgid ""
11278 "This returns the minor version number of the inspected operating system."
11279 msgstr ""
11280
11281 # type: textblock
11282 #. type: textblock
11283 #: ../src/guestfs-actions.pod:2719
11284 msgid ""
11285 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11286 "C<guestfs_inspect_get_major_version>."
11287 msgstr ""
11288
11289 # type: =head2
11290 #. type: =head2
11291 #: ../src/guestfs-actions.pod:2726
11292 msgid "guestfs_inspect_get_mountpoints"
11293 msgstr ""
11294
11295 # type: verbatim
11296 #. type: verbatim
11297 #: ../src/guestfs-actions.pod:2728
11298 #, no-wrap
11299 msgid ""
11300 " char **\n"
11301 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
11302 "                                  const char *root);\n"
11303 "\n"
11304 msgstr ""
11305
11306 #. type: textblock
11307 #: ../src/guestfs-actions.pod:2735 ../fish/guestfish-actions.pod:1871
11308 msgid ""
11309 "This returns a hash of where we think the filesystems associated with this "
11310 "operating system should be mounted.  Callers should note that this is at "
11311 "best an educated guess made by reading configuration files such as C</etc/"
11312 "fstab>.  I<In particular note> that this may return filesystems which are "
11313 "non-existent or not mountable and callers should be prepared to handle or "
11314 "ignore failures if they try to mount them."
11315 msgstr ""
11316
11317 # type: textblock
11318 #. type: textblock
11319 #: ../src/guestfs-actions.pod:2744 ../fish/guestfish-actions.pod:1880
11320 msgid ""
11321 "Each element in the returned hashtable has a key which is the path of the "
11322 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11323 "mounted there (eg. C</dev/sda1>)."
11324 msgstr ""
11325
11326 # type: textblock
11327 #. type: textblock
11328 #: ../src/guestfs-actions.pod:2749 ../fish/guestfish-actions.pod:1885
11329 msgid ""
11330 "Non-mounted devices such as swap devices are I<not> returned in this list."
11331 msgstr ""
11332
11333 # type: textblock
11334 #. type: textblock
11335 #: ../src/guestfs-actions.pod:2752
11336 msgid ""
11337 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
11338 "C<guestfs_inspect_get_filesystems>."
11339 msgstr ""
11340
11341 # type: textblock
11342 #. type: textblock
11343 #: ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3454
11344 #: ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:6537
11345 msgid ""
11346 "This function returns a NULL-terminated array of strings, or NULL if there "
11347 "was an error.  The array of strings will always have length C<2n+1>, where "
11348 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
11349 "caller must free the strings and the array after use>."
11350 msgstr ""
11351
11352 # type: =head2
11353 #. type: =head2
11354 #: ../src/guestfs-actions.pod:2763
11355 msgid "guestfs_inspect_get_package_format"
11356 msgstr ""
11357
11358 # type: verbatim
11359 #. type: verbatim
11360 #: ../src/guestfs-actions.pod:2765
11361 #, no-wrap
11362 msgid ""
11363 " char *\n"
11364 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
11365 "                                     const char *root);\n"
11366 "\n"
11367 msgstr ""
11368
11369 # type: textblock
11370 #. type: textblock
11371 #: ../src/guestfs-actions.pod:2772
11372 msgid ""
11373 "This function and C<guestfs_inspect_get_package_management> return the "
11374 "package format and package management tool used by the inspected operating "
11375 "system.  For example for Fedora these functions would return C<rpm> (package "
11376 "format) and C<yum> (package management)."
11377 msgstr ""
11378
11379 # type: textblock
11380 #. type: textblock
11381 #: ../src/guestfs-actions.pod:2778 ../fish/guestfish-actions.pod:1904
11382 msgid ""
11383 "This returns the string C<unknown> if we could not determine the package "
11384 "format I<or> if the operating system does not have a real packaging system "
11385 "(eg. Windows)."
11386 msgstr ""
11387
11388 # type: textblock
11389 #. type: textblock
11390 #: ../src/guestfs-actions.pod:2782 ../fish/guestfish-actions.pod:1908
11391 msgid ""
11392 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
11393 "Future versions of libguestfs may return other strings."
11394 msgstr ""
11395
11396 # type: textblock
11397 #. type: textblock
11398 #: ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2821
11399 msgid "(Added in 1.7.5)"
11400 msgstr ""
11401
11402 # type: =head2
11403 #. type: =head2
11404 #: ../src/guestfs-actions.pod:2792
11405 msgid "guestfs_inspect_get_package_management"
11406 msgstr ""
11407
11408 # type: verbatim
11409 #. type: verbatim
11410 #: ../src/guestfs-actions.pod:2794
11411 #, no-wrap
11412 msgid ""
11413 " char *\n"
11414 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
11415 "                                         const char *root);\n"
11416 "\n"
11417 msgstr ""
11418
11419 # type: textblock
11420 #. type: textblock
11421 #: ../src/guestfs-actions.pod:2801
11422 msgid ""
11423 "C<guestfs_inspect_get_package_format> and this function return the package "
11424 "format and package management tool used by the inspected operating system.  "
11425 "For example for Fedora these functions would return C<rpm> (package format) "
11426 "and C<yum> (package management)."
11427 msgstr ""
11428
11429 # type: textblock
11430 #. type: textblock
11431 #: ../src/guestfs-actions.pod:2807 ../fish/guestfish-actions.pod:1926
11432 msgid ""
11433 "This returns the string C<unknown> if we could not determine the package "
11434 "management tool I<or> if the operating system does not have a real packaging "
11435 "system (eg. Windows)."
11436 msgstr ""
11437
11438 # type: textblock
11439 #. type: textblock
11440 #: ../src/guestfs-actions.pod:2811 ../fish/guestfish-actions.pod:1930
11441 msgid ""
11442 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11443 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
11444 "libguestfs may return other strings."
11445 msgstr ""
11446
11447 # type: =head2
11448 #. type: =head2
11449 #: ../src/guestfs-actions.pod:2823
11450 msgid "guestfs_inspect_get_product_name"
11451 msgstr ""
11452
11453 # type: verbatim
11454 #. type: verbatim
11455 #: ../src/guestfs-actions.pod:2825
11456 #, no-wrap
11457 msgid ""
11458 " char *\n"
11459 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
11460 "                                   const char *root);\n"
11461 "\n"
11462 msgstr ""
11463
11464 # type: textblock
11465 #. type: textblock
11466 #: ../src/guestfs-actions.pod:2832 ../fish/guestfish-actions.pod:1944
11467 msgid ""
11468 "This returns the product name of the inspected operating system.  The "
11469 "product name is generally some freeform string which can be displayed to the "
11470 "user, but should not be parsed by programs."
11471 msgstr ""
11472
11473 # type: textblock
11474 #. type: textblock
11475 #: ../src/guestfs-actions.pod:2837 ../fish/guestfish-actions.pod:1949
11476 msgid ""
11477 "If the product name could not be determined, then the string C<unknown> is "
11478 "returned."
11479 msgstr ""
11480
11481 # type: =head2
11482 #. type: =head2
11483 #: ../src/guestfs-actions.pod:2847
11484 msgid "guestfs_inspect_get_roots"
11485 msgstr ""
11486
11487 # type: verbatim
11488 #. type: verbatim
11489 #: ../src/guestfs-actions.pod:2849
11490 #, no-wrap
11491 msgid ""
11492 " char **\n"
11493 " guestfs_inspect_get_roots (guestfs_h *g);\n"
11494 "\n"
11495 msgstr ""
11496
11497 # type: textblock
11498 #. type: textblock
11499 #: ../src/guestfs-actions.pod:2852
11500 msgid ""
11501 "This function is a convenient way to get the list of root devices, as "
11502 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
11503 "the whole inspection process."
11504 msgstr ""
11505
11506 # type: textblock
11507 #. type: textblock
11508 #: ../src/guestfs-actions.pod:2856
11509 msgid ""
11510 "This returns an empty list if either no root devices were found or the "
11511 "caller has not called C<guestfs_inspect_os>."
11512 msgstr ""
11513
11514 # type: textblock
11515 #. type: textblock
11516 #: ../src/guestfs-actions.pod:2865
11517 msgid "(Added in 1.7.3)"
11518 msgstr ""
11519
11520 # type: =head2
11521 #. type: =head2
11522 #: ../src/guestfs-actions.pod:2867
11523 msgid "guestfs_inspect_get_type"
11524 msgstr ""
11525
11526 # type: verbatim
11527 #. type: verbatim
11528 #: ../src/guestfs-actions.pod:2869
11529 #, no-wrap
11530 msgid ""
11531 " char *\n"
11532 " guestfs_inspect_get_type (guestfs_h *g,\n"
11533 "                           const char *root);\n"
11534 "\n"
11535 msgstr ""
11536
11537 # type: textblock
11538 #. type: textblock
11539 #: ../src/guestfs-actions.pod:2876 ../fish/guestfish-actions.pod:1974
11540 msgid ""
11541 "This returns the type of the inspected operating system.  Currently defined "
11542 "types are:"
11543 msgstr ""
11544
11545 # type: =item
11546 #. type: =item
11547 #: ../src/guestfs-actions.pod:2881 ../fish/guestfish-actions.pod:1979
11548 msgid "\"linux\""
11549 msgstr ""
11550
11551 # type: textblock
11552 #. type: textblock
11553 #: ../src/guestfs-actions.pod:2883 ../fish/guestfish-actions.pod:1981
11554 msgid "Any Linux-based operating system."
11555 msgstr ""
11556
11557 # type: textblock
11558 #. type: textblock
11559 #: ../src/guestfs-actions.pod:2887 ../fish/guestfish-actions.pod:1985
11560 msgid "Any Microsoft Windows operating system."
11561 msgstr ""
11562
11563 # type: =item
11564 #. type: =item
11565 #: ../src/guestfs-actions.pod:2889 ../fish/guestfish-actions.pod:1987
11566 msgid "\"freebsd\""
11567 msgstr ""
11568
11569 # type: textblock
11570 #. type: textblock
11571 #: ../src/guestfs-actions.pod:2891 ../fish/guestfish-actions.pod:1989
11572 msgid "FreeBSD."
11573 msgstr ""
11574
11575 # type: textblock
11576 #. type: textblock
11577 #: ../src/guestfs-actions.pod:2895 ../fish/guestfish-actions.pod:1993
11578 msgid "The operating system type could not be determined."
11579 msgstr ""
11580
11581 # type: =head2
11582 #. type: =head2
11583 #: ../src/guestfs-actions.pod:2909
11584 msgid "guestfs_inspect_get_windows_systemroot"
11585 msgstr ""
11586
11587 # type: verbatim
11588 #. type: verbatim
11589 #: ../src/guestfs-actions.pod:2911
11590 #, no-wrap
11591 msgid ""
11592 " char *\n"
11593 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
11594 "                                         const char *root);\n"
11595 "\n"
11596 msgstr ""
11597
11598 # type: textblock
11599 #. type: textblock
11600 #: ../src/guestfs-actions.pod:2918 ../fish/guestfish-actions.pod:2009
11601 msgid ""
11602 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11603 "is a directory path such as C</WINDOWS>."
11604 msgstr ""
11605
11606 # type: textblock
11607 #. type: textblock
11608 #: ../src/guestfs-actions.pod:2921 ../fish/guestfish-actions.pod:2012
11609 msgid ""
11610 "This call assumes that the guest is Windows and that the systemroot could be "
11611 "determined by inspection.  If this is not the case then an error is returned."
11612 msgstr ""
11613
11614 # type: textblock
11615 #. type: textblock
11616 #: ../src/guestfs-actions.pod:2930
11617 msgid "(Added in 1.5.25)"
11618 msgstr ""
11619
11620 #. type: =head2
11621 #: ../src/guestfs-actions.pod:2932
11622 msgid "guestfs_inspect_is_live"
11623 msgstr ""
11624
11625 #. type: verbatim
11626 #: ../src/guestfs-actions.pod:2934
11627 #, no-wrap
11628 msgid ""
11629 " int\n"
11630 " guestfs_inspect_is_live (guestfs_h *g,\n"
11631 "                          const char *root);\n"
11632 "\n"
11633 msgstr ""
11634
11635 #. type: textblock
11636 #: ../src/guestfs-actions.pod:2941
11637 msgid ""
11638 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11639 "disk), then this returns true if a live image was detected on the disk."
11640 msgstr ""
11641
11642 #. type: =head2
11643 #: ../src/guestfs-actions.pod:2949
11644 msgid "guestfs_inspect_is_multipart"
11645 msgstr ""
11646
11647 #. type: verbatim
11648 #: ../src/guestfs-actions.pod:2951
11649 #, no-wrap
11650 msgid ""
11651 " int\n"
11652 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
11653 "                               const char *root);\n"
11654 "\n"
11655 msgstr ""
11656
11657 #. type: textblock
11658 #: ../src/guestfs-actions.pod:2958
11659 msgid ""
11660 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11661 "disk), then this returns true if the disk is part of a set."
11662 msgstr ""
11663
11664 #. type: =head2
11665 #: ../src/guestfs-actions.pod:2966
11666 msgid "guestfs_inspect_is_netinst"
11667 msgstr ""
11668
11669 #. type: verbatim
11670 #: ../src/guestfs-actions.pod:2968
11671 #, no-wrap
11672 msgid ""
11673 " int\n"
11674 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
11675 "                             const char *root);\n"
11676 "\n"
11677 msgstr ""
11678
11679 #. type: textblock
11680 #: ../src/guestfs-actions.pod:2975
11681 msgid ""
11682 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
11683 "disk), then this returns true if the disk is a network installer, ie. not a "
11684 "self-contained install CD but one which is likely to require network access "
11685 "to complete the install."
11686 msgstr ""
11687
11688 # type: =head2
11689 #. type: =head2
11690 #: ../src/guestfs-actions.pod:2985
11691 msgid "guestfs_inspect_list_applications"
11692 msgstr ""
11693
11694 # type: verbatim
11695 #. type: verbatim
11696 #: ../src/guestfs-actions.pod:2987
11697 #, no-wrap
11698 msgid ""
11699 " struct guestfs_application_list *\n"
11700 " guestfs_inspect_list_applications (guestfs_h *g,\n"
11701 "                                    const char *root);\n"
11702 "\n"
11703 msgstr ""
11704
11705 # type: textblock
11706 #. type: textblock
11707 #: ../src/guestfs-actions.pod:2994 ../fish/guestfish-actions.pod:2066
11708 msgid "Return the list of applications installed in the operating system."
11709 msgstr ""
11710
11711 # type: textblock
11712 #. type: textblock
11713 #: ../src/guestfs-actions.pod:2996
11714 msgid ""
11715 "I<Note:> This call works differently from other parts of the inspection "
11716 "API.  You have to call C<guestfs_inspect_os>, then "
11717 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
11718 "this.  Listing applications is a significantly more difficult operation "
11719 "which requires access to the full filesystem.  Also note that unlike the "
11720 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
11721 "the libguestfs handle, this call actually reads parts of the mounted "
11722 "filesystems during the call."
11723 msgstr ""
11724
11725 # type: textblock
11726 #. type: textblock
11727 #: ../src/guestfs-actions.pod:3006 ../fish/guestfish-actions.pod:2078
11728 msgid ""
11729 "This returns an empty list if the inspection code was not able to determine "
11730 "the list of applications."
11731 msgstr ""
11732
11733 # type: textblock
11734 #. type: textblock
11735 #: ../src/guestfs-actions.pod:3009 ../fish/guestfish-actions.pod:2081
11736 msgid "The application structure contains the following fields:"
11737 msgstr ""
11738
11739 # type: =item
11740 #. type: =item
11741 #: ../src/guestfs-actions.pod:3013 ../fish/guestfish-actions.pod:2085
11742 msgid "C<app_name>"
11743 msgstr ""
11744
11745 # type: textblock
11746 #. type: textblock
11747 #: ../src/guestfs-actions.pod:3015 ../fish/guestfish-actions.pod:2087
11748 msgid ""
11749 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
11750 "guests, this is the package name."
11751 msgstr ""
11752
11753 # type: =item
11754 #. type: =item
11755 #: ../src/guestfs-actions.pod:3018 ../fish/guestfish-actions.pod:2090
11756 msgid "C<app_display_name>"
11757 msgstr ""
11758
11759 # type: textblock
11760 #. type: textblock
11761 #: ../src/guestfs-actions.pod:3020 ../fish/guestfish-actions.pod:2092
11762 msgid ""
11763 "The display name of the application, sometimes localized to the install "
11764 "language of the guest operating system."
11765 msgstr ""
11766
11767 # type: textblock
11768 #. type: textblock
11769 #: ../src/guestfs-actions.pod:3023 ../fish/guestfish-actions.pod:2095
11770 msgid ""
11771 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
11772 "to display something can use C<app_name> instead."
11773 msgstr ""
11774
11775 # type: =item
11776 #. type: =item
11777 #: ../src/guestfs-actions.pod:3026 ../fish/guestfish-actions.pod:2098
11778 msgid "C<app_epoch>"
11779 msgstr ""
11780
11781 # type: textblock
11782 #. type: textblock
11783 #: ../src/guestfs-actions.pod:3028 ../fish/guestfish-actions.pod:2100
11784 msgid ""
11785 "For package managers which use epochs, this contains the epoch of the "
11786 "package (an integer).  If unavailable, this is returned as C<0>."
11787 msgstr ""
11788
11789 # type: =item
11790 #. type: =item
11791 #: ../src/guestfs-actions.pod:3031 ../fish/guestfish-actions.pod:2103
11792 msgid "C<app_version>"
11793 msgstr ""
11794
11795 # type: textblock
11796 #. type: textblock
11797 #: ../src/guestfs-actions.pod:3033 ../fish/guestfish-actions.pod:2105
11798 msgid ""
11799 "The version string of the application or package.  If unavailable this is "
11800 "returned as an empty string C<\"\">."
11801 msgstr ""
11802
11803 # type: =item
11804 #. type: =item
11805 #: ../src/guestfs-actions.pod:3036 ../fish/guestfish-actions.pod:2108
11806 msgid "C<app_release>"
11807 msgstr ""
11808
11809 # type: textblock
11810 #. type: textblock
11811 #: ../src/guestfs-actions.pod:3038 ../fish/guestfish-actions.pod:2110
11812 msgid ""
11813 "The release string of the application or package, for package managers that "
11814 "use this.  If unavailable this is returned as an empty string C<\"\">."
11815 msgstr ""
11816
11817 # type: =item
11818 #. type: =item
11819 #: ../src/guestfs-actions.pod:3042 ../fish/guestfish-actions.pod:2114
11820 msgid "C<app_install_path>"
11821 msgstr ""
11822
11823 # type: textblock
11824 #. type: textblock
11825 #: ../src/guestfs-actions.pod:3044 ../fish/guestfish-actions.pod:2116
11826 msgid ""
11827 "The installation path of the application (on operating systems such as "
11828 "Windows which use installation paths).  This path is in the format used by "
11829 "the guest operating system, it is not a libguestfs path."
11830 msgstr ""
11831
11832 # type: textblock
11833 #. type: textblock
11834 #: ../src/guestfs-actions.pod:3049 ../fish/guestfish-actions.pod:2121
11835 msgid "If unavailable this is returned as an empty string C<\"\">."
11836 msgstr ""
11837
11838 # type: =item
11839 #. type: =item
11840 #: ../src/guestfs-actions.pod:3051 ../fish/guestfish-actions.pod:2123
11841 msgid "C<app_trans_path>"
11842 msgstr ""
11843
11844 # type: textblock
11845 #. type: textblock
11846 #: ../src/guestfs-actions.pod:3053 ../fish/guestfish-actions.pod:2125
11847 msgid ""
11848 "The install path translated into a libguestfs path.  If unavailable this is "
11849 "returned as an empty string C<\"\">."
11850 msgstr ""
11851
11852 # type: =item
11853 #. type: =item
11854 #: ../src/guestfs-actions.pod:3056 ../fish/guestfish-actions.pod:2128
11855 msgid "C<app_publisher>"
11856 msgstr ""
11857
11858 # type: textblock
11859 #. type: textblock
11860 #: ../src/guestfs-actions.pod:3058 ../fish/guestfish-actions.pod:2130
11861 msgid ""
11862 "The name of the publisher of the application, for package managers that use "
11863 "this.  If unavailable this is returned as an empty string C<\"\">."
11864 msgstr ""
11865
11866 # type: =item
11867 #. type: =item
11868 #: ../src/guestfs-actions.pod:3062 ../fish/guestfish-actions.pod:2134
11869 msgid "C<app_url>"
11870 msgstr ""
11871
11872 # type: textblock
11873 #. type: textblock
11874 #: ../src/guestfs-actions.pod:3064 ../fish/guestfish-actions.pod:2136
11875 msgid ""
11876 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11877 "returned as an empty string C<\"\">."
11878 msgstr ""
11879
11880 # type: =item
11881 #. type: =item
11882 #: ../src/guestfs-actions.pod:3067 ../fish/guestfish-actions.pod:2139
11883 msgid "C<app_source_package>"
11884 msgstr ""
11885
11886 # type: textblock
11887 #. type: textblock
11888 #: ../src/guestfs-actions.pod:3069 ../fish/guestfish-actions.pod:2141
11889 msgid ""
11890 "For packaging systems which support this, the name of the source package.  "
11891 "If unavailable this is returned as an empty string C<\"\">."
11892 msgstr ""
11893
11894 # type: =item
11895 #. type: =item
11896 #: ../src/guestfs-actions.pod:3072 ../fish/guestfish-actions.pod:2144
11897 msgid "C<app_summary>"
11898 msgstr ""
11899
11900 # type: textblock
11901 #. type: textblock
11902 #: ../src/guestfs-actions.pod:3074 ../fish/guestfish-actions.pod:2146
11903 msgid ""
11904 "A short (usually one line) description of the application or package.  If "
11905 "unavailable this is returned as an empty string C<\"\">."
11906 msgstr ""
11907
11908 # type: =item
11909 #. type: =item
11910 #: ../src/guestfs-actions.pod:3077 ../fish/guestfish-actions.pod:2149
11911 msgid "C<app_description>"
11912 msgstr ""
11913
11914 # type: textblock
11915 #. type: textblock
11916 #: ../src/guestfs-actions.pod:3079 ../fish/guestfish-actions.pod:2151
11917 msgid ""
11918 "A longer description of the application or package.  If unavailable this is "
11919 "returned as an empty string C<\"\">."
11920 msgstr ""
11921
11922 # type: textblock
11923 #. type: textblock
11924 #: ../src/guestfs-actions.pod:3086
11925 msgid ""
11926 "This function returns a C<struct guestfs_application_list *>, or NULL if "
11927 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
11928 "after use>."
11929 msgstr ""
11930
11931 # type: textblock
11932 #. type: textblock
11933 #: ../src/guestfs-actions.pod:3090
11934 msgid "(Added in 1.7.8)"
11935 msgstr ""
11936
11937 # type: =head2
11938 #. type: =head2
11939 #: ../src/guestfs-actions.pod:3092
11940 msgid "guestfs_inspect_os"
11941 msgstr ""
11942
11943 # type: verbatim
11944 #. type: verbatim
11945 #: ../src/guestfs-actions.pod:3094
11946 #, no-wrap
11947 msgid ""
11948 " char **\n"
11949 " guestfs_inspect_os (guestfs_h *g);\n"
11950 "\n"
11951 msgstr ""
11952
11953 # type: textblock
11954 #. type: textblock
11955 #: ../src/guestfs-actions.pod:3097 ../fish/guestfish-actions.pod:2162
11956 msgid ""
11957 "This function uses other libguestfs functions and certain heuristics to "
11958 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11959 "for operating systems."
11960 msgstr ""
11961
11962 # type: textblock
11963 #. type: textblock
11964 #: ../src/guestfs-actions.pod:3101 ../fish/guestfish-actions.pod:2166
11965 msgid "The list returned is empty if no operating systems were found."
11966 msgstr ""
11967
11968 # type: textblock
11969 #. type: textblock
11970 #: ../src/guestfs-actions.pod:3103 ../fish/guestfish-actions.pod:2168
11971 msgid ""
11972 "If one operating system was found, then this returns a list with a single "
11973 "element, which is the name of the root filesystem of this operating system.  "
11974 "It is also possible for this function to return a list containing more than "
11975 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11976 "element being the root filesystem of one of the operating systems."
11977 msgstr ""
11978
11979 # type: textblock
11980 #. type: textblock
11981 #: ../src/guestfs-actions.pod:3110
11982 msgid ""
11983 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
11984 "functions in order to query further information about each operating system, "
11985 "such as the name and version."
11986 msgstr ""
11987
11988 # type: textblock
11989 #. type: textblock
11990 #: ../src/guestfs-actions.pod:3115
11991 msgid ""
11992 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
11993 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
11994 "the contents.  This should be called with no disks currently mounted.  The "
11995 "function may also use Augeas, so any existing Augeas handle will be closed."
11996 msgstr ""
11997
11998 # type: textblock
11999 #. type: textblock
12000 #: ../src/guestfs-actions.pod:3121 ../fish/guestfish-actions.pod:2186
12001 msgid ""
12002 "This function cannot decrypt encrypted disks.  The caller must do that first "
12003 "(supplying the necessary keys) if the disk is encrypted."
12004 msgstr ""
12005
12006 # type: textblock
12007 #. type: textblock
12008 #: ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3412
12009 #: ../src/guestfs-actions.pod:3474
12010 msgid "See also C<guestfs_list_filesystems>."
12011 msgstr ""
12012
12013 # type: =head2
12014 #. type: =head2
12015 #: ../src/guestfs-actions.pod:3135
12016 msgid "guestfs_is_blockdev"
12017 msgstr ""
12018
12019 # type: verbatim
12020 #. type: verbatim
12021 #: ../src/guestfs-actions.pod:3137
12022 #, no-wrap
12023 msgid ""
12024 " int\n"
12025 " guestfs_is_blockdev (guestfs_h *g,\n"
12026 "                      const char *path);\n"
12027 "\n"
12028 msgstr ""
12029
12030 # type: textblock
12031 #. type: textblock
12032 #: ../src/guestfs-actions.pod:3141 ../fish/guestfish-actions.pod:2198
12033 msgid ""
12034 "This returns C<true> if and only if there is a block device with the given "
12035 "C<path> name."
12036 msgstr ""
12037
12038 # type: textblock
12039 #. type: textblock
12040 #: ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3173
12041 #: ../src/guestfs-actions.pod:3203 ../src/guestfs-actions.pod:3218
12042 #: ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3290
12043 #: ../src/guestfs-actions.pod:3305
12044 msgid "See also C<guestfs_stat>."
12045 msgstr ""
12046
12047 # type: textblock
12048 #. type: textblock
12049 #: ../src/guestfs-actions.pod:3148 ../src/guestfs-actions.pod:3177
12050 #: ../src/guestfs-actions.pod:3222 ../src/guestfs-actions.pod:3294
12051 #: ../src/guestfs-actions.pod:3309
12052 msgid "(Added in 1.5.10)"
12053 msgstr ""
12054
12055 # type: =head2
12056 #. type: =head2
12057 #: ../src/guestfs-actions.pod:3150
12058 msgid "guestfs_is_busy"
12059 msgstr ""
12060
12061 # type: verbatim
12062 #. type: verbatim
12063 #: ../src/guestfs-actions.pod:3152
12064 #, no-wrap
12065 msgid ""
12066 " int\n"
12067 " guestfs_is_busy (guestfs_h *g);\n"
12068 "\n"
12069 msgstr ""
12070
12071 # type: textblock
12072 #. type: textblock
12073 #: ../src/guestfs-actions.pod:3155 ../fish/guestfish-actions.pod:2207
12074 msgid ""
12075 "This returns true iff this handle is busy processing a command (in the "
12076 "C<BUSY> state)."
12077 msgstr ""
12078
12079 # type: =head2
12080 #. type: =head2
12081 #: ../src/guestfs-actions.pod:3164
12082 msgid "guestfs_is_chardev"
12083 msgstr ""
12084
12085 # type: verbatim
12086 #. type: verbatim
12087 #: ../src/guestfs-actions.pod:3166
12088 #, no-wrap
12089 msgid ""
12090 " int\n"
12091 " guestfs_is_chardev (guestfs_h *g,\n"
12092 "                     const char *path);\n"
12093 "\n"
12094 msgstr ""
12095
12096 # type: textblock
12097 #. type: textblock
12098 #: ../src/guestfs-actions.pod:3170 ../fish/guestfish-actions.pod:2216
12099 msgid ""
12100 "This returns C<true> if and only if there is a character device with the "
12101 "given C<path> name."
12102 msgstr ""
12103
12104 # type: =head2
12105 #. type: =head2
12106 #: ../src/guestfs-actions.pod:3179
12107 msgid "guestfs_is_config"
12108 msgstr ""
12109
12110 # type: verbatim
12111 #. type: verbatim
12112 #: ../src/guestfs-actions.pod:3181
12113 #, no-wrap
12114 msgid ""
12115 " int\n"
12116 " guestfs_is_config (guestfs_h *g);\n"
12117 "\n"
12118 msgstr ""
12119
12120 # type: textblock
12121 #. type: textblock
12122 #: ../src/guestfs-actions.pod:3184 ../fish/guestfish-actions.pod:2225
12123 msgid ""
12124 "This returns true iff this handle is being configured (in the C<CONFIG> "
12125 "state)."
12126 msgstr ""
12127
12128 # type: =head2
12129 #. type: =head2
12130 #: ../src/guestfs-actions.pod:3193
12131 msgid "guestfs_is_dir"
12132 msgstr ""
12133
12134 # type: verbatim
12135 #. type: verbatim
12136 #: ../src/guestfs-actions.pod:3195
12137 #, no-wrap
12138 msgid ""
12139 " int\n"
12140 " guestfs_is_dir (guestfs_h *g,\n"
12141 "                 const char *path);\n"
12142 "\n"
12143 msgstr ""
12144
12145 # type: textblock
12146 #. type: textblock
12147 #: ../src/guestfs-actions.pod:3199 ../fish/guestfish-actions.pod:2234
12148 msgid ""
12149 "This returns C<true> if and only if there is a directory with the given "
12150 "C<path> name.  Note that it returns false for other objects like files."
12151 msgstr ""
12152
12153 # type: =head2
12154 #. type: =head2
12155 #: ../src/guestfs-actions.pod:3209
12156 msgid "guestfs_is_fifo"
12157 msgstr ""
12158
12159 # type: verbatim
12160 #. type: verbatim
12161 #: ../src/guestfs-actions.pod:3211
12162 #, no-wrap
12163 msgid ""
12164 " int\n"
12165 " guestfs_is_fifo (guestfs_h *g,\n"
12166 "                  const char *path);\n"
12167 "\n"
12168 msgstr ""
12169
12170 # type: textblock
12171 #. type: textblock
12172 #: ../src/guestfs-actions.pod:3215 ../fish/guestfish-actions.pod:2244
12173 msgid ""
12174 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12175 "given C<path> name."
12176 msgstr ""
12177
12178 # type: =head2
12179 #. type: =head2
12180 #: ../src/guestfs-actions.pod:3224
12181 msgid "guestfs_is_file"
12182 msgstr ""
12183
12184 # type: verbatim
12185 #. type: verbatim
12186 #: ../src/guestfs-actions.pod:3226
12187 #, no-wrap
12188 msgid ""
12189 " int\n"
12190 " guestfs_is_file (guestfs_h *g,\n"
12191 "                  const char *path);\n"
12192 "\n"
12193 msgstr ""
12194
12195 # type: textblock
12196 #. type: textblock
12197 #: ../src/guestfs-actions.pod:3230 ../fish/guestfish-actions.pod:2253
12198 msgid ""
12199 "This returns C<true> if and only if there is a regular file with the given "
12200 "C<path> name.  Note that it returns false for other objects like directories."
12201 msgstr ""
12202
12203 # type: =head2
12204 #. type: =head2
12205 #: ../src/guestfs-actions.pod:3240
12206 msgid "guestfs_is_launching"
12207 msgstr ""
12208
12209 # type: verbatim
12210 #. type: verbatim
12211 #: ../src/guestfs-actions.pod:3242
12212 #, no-wrap
12213 msgid ""
12214 " int\n"
12215 " guestfs_is_launching (guestfs_h *g);\n"
12216 "\n"
12217 msgstr ""
12218
12219 # type: textblock
12220 #. type: textblock
12221 #: ../src/guestfs-actions.pod:3245 ../fish/guestfish-actions.pod:2263
12222 msgid ""
12223 "This returns true iff this handle is launching the subprocess (in the "
12224 "C<LAUNCHING> state)."
12225 msgstr ""
12226
12227 # type: =head2
12228 #. type: =head2
12229 #: ../src/guestfs-actions.pod:3254
12230 msgid "guestfs_is_lv"
12231 msgstr ""
12232
12233 # type: verbatim
12234 #. type: verbatim
12235 #: ../src/guestfs-actions.pod:3256
12236 #, no-wrap
12237 msgid ""
12238 " int\n"
12239 " guestfs_is_lv (guestfs_h *g,\n"
12240 "                const char *device);\n"
12241 "\n"
12242 msgstr ""
12243
12244 # type: textblock
12245 #. type: textblock
12246 #: ../src/guestfs-actions.pod:3260 ../fish/guestfish-actions.pod:2272
12247 msgid ""
12248 "This command tests whether C<device> is a logical volume, and returns true "
12249 "iff this is the case."
12250 msgstr ""
12251
12252 # type: =head2
12253 #. type: =head2
12254 #: ../src/guestfs-actions.pod:3267
12255 msgid "guestfs_is_ready"
12256 msgstr ""
12257
12258 # type: verbatim
12259 #. type: verbatim
12260 #: ../src/guestfs-actions.pod:3269
12261 #, no-wrap
12262 msgid ""
12263 " int\n"
12264 " guestfs_is_ready (guestfs_h *g);\n"
12265 "\n"
12266 msgstr ""
12267
12268 # type: textblock
12269 #. type: textblock
12270 #: ../src/guestfs-actions.pod:3272 ../fish/guestfish-actions.pod:2279
12271 msgid ""
12272 "This returns true iff this handle is ready to accept commands (in the "
12273 "C<READY> state)."
12274 msgstr ""
12275
12276 # type: =head2
12277 #. type: =head2
12278 #: ../src/guestfs-actions.pod:3281
12279 msgid "guestfs_is_socket"
12280 msgstr ""
12281
12282 # type: verbatim
12283 #. type: verbatim
12284 #: ../src/guestfs-actions.pod:3283
12285 #, no-wrap
12286 msgid ""
12287 " int\n"
12288 " guestfs_is_socket (guestfs_h *g,\n"
12289 "                    const char *path);\n"
12290 "\n"
12291 msgstr ""
12292
12293 # type: textblock
12294 #. type: textblock
12295 #: ../src/guestfs-actions.pod:3287 ../fish/guestfish-actions.pod:2288
12296 msgid ""
12297 "This returns C<true> if and only if there is a Unix domain socket with the "
12298 "given C<path> name."
12299 msgstr ""
12300
12301 # type: =head2
12302 #. type: =head2
12303 #: ../src/guestfs-actions.pod:3296
12304 msgid "guestfs_is_symlink"
12305 msgstr ""
12306
12307 # type: verbatim
12308 #. type: verbatim
12309 #: ../src/guestfs-actions.pod:3298
12310 #, no-wrap
12311 msgid ""
12312 " int\n"
12313 " guestfs_is_symlink (guestfs_h *g,\n"
12314 "                     const char *path);\n"
12315 "\n"
12316 msgstr ""
12317
12318 # type: textblock
12319 #. type: textblock
12320 #: ../src/guestfs-actions.pod:3302 ../fish/guestfish-actions.pod:2297
12321 msgid ""
12322 "This returns C<true> if and only if there is a symbolic link with the given "
12323 "C<path> name."
12324 msgstr ""
12325
12326 # type: =head2
12327 #. type: =head2
12328 #: ../src/guestfs-actions.pod:3311
12329 msgid "guestfs_kill_subprocess"
12330 msgstr ""
12331
12332 # type: verbatim
12333 #. type: verbatim
12334 #: ../src/guestfs-actions.pod:3313
12335 #, no-wrap
12336 msgid ""
12337 " int\n"
12338 " guestfs_kill_subprocess (guestfs_h *g);\n"
12339 "\n"
12340 msgstr ""
12341
12342 # type: textblock
12343 #. type: textblock
12344 #: ../src/guestfs-actions.pod:3316 ../fish/guestfish-actions.pod:2306
12345 msgid "This kills the qemu subprocess.  You should never need to call this."
12346 msgstr ""
12347
12348 # type: =head2
12349 #. type: =head2
12350 #: ../src/guestfs-actions.pod:3322
12351 msgid "guestfs_launch"
12352 msgstr ""
12353
12354 # type: verbatim
12355 #. type: verbatim
12356 #: ../src/guestfs-actions.pod:3324
12357 #, no-wrap
12358 msgid ""
12359 " int\n"
12360 " guestfs_launch (guestfs_h *g);\n"
12361 "\n"
12362 msgstr ""
12363
12364 # type: textblock
12365 #. type: textblock
12366 #: ../src/guestfs-actions.pod:3327 ../fish/guestfish-actions.pod:2314
12367 msgid ""
12368 "Internally libguestfs is implemented by running a virtual machine using "
12369 "L<qemu(1)>."
12370 msgstr ""
12371
12372 # type: textblock
12373 #. type: textblock
12374 #: ../src/guestfs-actions.pod:3330 ../fish/guestfish-actions.pod:2317
12375 msgid ""
12376 "You should call this after configuring the handle (eg. adding drives) but "
12377 "before performing any actions."
12378 msgstr ""
12379
12380 # type: =head2
12381 #. type: =head2
12382 #: ../src/guestfs-actions.pod:3337
12383 msgid "guestfs_lchown"
12384 msgstr ""
12385
12386 # type: verbatim
12387 #. type: verbatim
12388 #: ../src/guestfs-actions.pod:3339
12389 #, no-wrap
12390 msgid ""
12391 " int\n"
12392 " guestfs_lchown (guestfs_h *g,\n"
12393 "                 int owner,\n"
12394 "                 int group,\n"
12395 "                 const char *path);\n"
12396 "\n"
12397 msgstr ""
12398
12399 # type: textblock
12400 #. type: textblock
12401 #: ../src/guestfs-actions.pod:3345
12402 msgid ""
12403 "Change the file owner to C<owner> and group to C<group>.  This is like "
12404 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
12405 "changed, not the target."
12406 msgstr ""
12407
12408 # type: =head2
12409 #. type: =head2
12410 #: ../src/guestfs-actions.pod:3357
12411 msgid "guestfs_lgetxattr"
12412 msgstr ""
12413
12414 # type: verbatim
12415 #. type: verbatim
12416 #: ../src/guestfs-actions.pod:3359
12417 #, no-wrap
12418 msgid ""
12419 " char *\n"
12420 " guestfs_lgetxattr (guestfs_h *g,\n"
12421 "                    const char *path,\n"
12422 "                    const char *name,\n"
12423 "                    size_t *size_r);\n"
12424 "\n"
12425 msgstr ""
12426
12427 # type: textblock
12428 #. type: textblock
12429 #: ../src/guestfs-actions.pod:3365 ../fish/guestfish-actions.pod:2336
12430 msgid ""
12431 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12432 "is a symlink, then this call returns an extended attribute from the symlink."
12433 msgstr ""
12434
12435 # type: textblock
12436 #. type: textblock
12437 #: ../src/guestfs-actions.pod:3379
12438 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
12439 msgstr ""
12440
12441 # type: =head2
12442 #. type: =head2
12443 #: ../src/guestfs-actions.pod:3387
12444 msgid "guestfs_lgetxattrs"
12445 msgstr ""
12446
12447 # type: verbatim
12448 #. type: verbatim
12449 #: ../src/guestfs-actions.pod:3389
12450 #, no-wrap
12451 msgid ""
12452 " struct guestfs_xattr_list *\n"
12453 " guestfs_lgetxattrs (guestfs_h *g,\n"
12454 "                     const char *path);\n"
12455 "\n"
12456 msgstr ""
12457
12458 # type: textblock
12459 #. type: textblock
12460 #: ../src/guestfs-actions.pod:3393
12461 msgid ""
12462 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
12463 "then it returns the extended attributes of the link itself."
12464 msgstr ""
12465
12466 # type: =head2
12467 #. type: =head2
12468 #: ../src/guestfs-actions.pod:3403
12469 msgid "guestfs_list_devices"
12470 msgstr ""
12471
12472 # type: verbatim
12473 #. type: verbatim
12474 #: ../src/guestfs-actions.pod:3405
12475 #, no-wrap
12476 msgid ""
12477 " char **\n"
12478 " guestfs_list_devices (guestfs_h *g);\n"
12479 "\n"
12480 msgstr ""
12481
12482 # type: textblock
12483 #. type: textblock
12484 #: ../src/guestfs-actions.pod:3408 ../fish/guestfish-actions.pod:2364
12485 msgid "List all the block devices."
12486 msgstr ""
12487
12488 # type: textblock
12489 #. type: textblock
12490 #: ../src/guestfs-actions.pod:3410 ../fish/guestfish-actions.pod:2366
12491 msgid "The full block device names are returned, eg. C</dev/sda>."
12492 msgstr ""
12493
12494 # type: =head2
12495 #. type: =head2
12496 #: ../src/guestfs-actions.pod:3420
12497 msgid "guestfs_list_filesystems"
12498 msgstr ""
12499
12500 # type: verbatim
12501 #. type: verbatim
12502 #: ../src/guestfs-actions.pod:3422
12503 #, no-wrap
12504 msgid ""
12505 " char **\n"
12506 " guestfs_list_filesystems (guestfs_h *g);\n"
12507 "\n"
12508 msgstr ""
12509
12510 # type: textblock
12511 #. type: textblock
12512 #: ../src/guestfs-actions.pod:3425 ../fish/guestfish-actions.pod:2374
12513 msgid ""
12514 "This inspection command looks for filesystems on partitions, block devices "
12515 "and logical volumes, returning a list of devices containing filesystems and "
12516 "their type."
12517 msgstr ""
12518
12519 # type: textblock
12520 #. type: textblock
12521 #: ../src/guestfs-actions.pod:3429 ../fish/guestfish-actions.pod:2378
12522 msgid ""
12523 "The return value is a hash, where the keys are the devices containing "
12524 "filesystems, and the values are the filesystem types.  For example:"
12525 msgstr ""
12526
12527 # type: verbatim
12528 #. type: verbatim
12529 #: ../src/guestfs-actions.pod:3433 ../fish/guestfish-actions.pod:2382
12530 #, no-wrap
12531 msgid ""
12532 " \"/dev/sda1\" => \"ntfs\"\n"
12533 " \"/dev/sda2\" => \"ext2\"\n"
12534 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12535 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12536 "\n"
12537 msgstr ""
12538
12539 # type: textblock
12540 #. type: textblock
12541 #: ../src/guestfs-actions.pod:3438 ../fish/guestfish-actions.pod:2387
12542 msgid ""
12543 "The value can have the special value \"unknown\", meaning the content of the "
12544 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12545 msgstr ""
12546
12547 # type: textblock
12548 #. type: textblock
12549 #: ../src/guestfs-actions.pod:3442
12550 msgid ""
12551 "This command runs other libguestfs commands, which might include "
12552 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
12553 "soon after launch and only when nothing is mounted."
12554 msgstr ""
12555
12556 # type: textblock
12557 #. type: textblock
12558 #: ../src/guestfs-actions.pod:3446
12559 msgid ""
12560 "Not all of the filesystems returned will be mountable.  In particular, swap "
12561 "partitions are returned in the list.  Also this command does not check that "
12562 "each filesystem found is valid and mountable, and some filesystems might be "
12563 "mountable but require special options.  Filesystems may not all belong to a "
12564 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
12565 msgstr ""
12566
12567 # type: textblock
12568 #. type: textblock
12569 #: ../src/guestfs-actions.pod:3460 ../src/guestfs-actions.pod:5065
12570 msgid "(Added in 1.5.15)"
12571 msgstr ""
12572
12573 # type: =head2
12574 #. type: =head2
12575 #: ../src/guestfs-actions.pod:3462
12576 msgid "guestfs_list_partitions"
12577 msgstr ""
12578
12579 # type: verbatim
12580 #. type: verbatim
12581 #: ../src/guestfs-actions.pod:3464
12582 #, no-wrap
12583 msgid ""
12584 " char **\n"
12585 " guestfs_list_partitions (guestfs_h *g);\n"
12586 "\n"
12587 msgstr ""
12588
12589 # type: textblock
12590 #. type: textblock
12591 #: ../src/guestfs-actions.pod:3467 ../fish/guestfish-actions.pod:2407
12592 msgid "List all the partitions detected on all block devices."
12593 msgstr ""
12594
12595 # type: textblock
12596 #. type: textblock
12597 #: ../src/guestfs-actions.pod:3469 ../fish/guestfish-actions.pod:2409
12598 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12599 msgstr ""
12600
12601 # type: textblock
12602 #. type: textblock
12603 #: ../src/guestfs-actions.pod:3471
12604 msgid ""
12605 "This does not return logical volumes.  For that you will need to call "
12606 "C<guestfs_lvs>."
12607 msgstr ""
12608
12609 # type: =head2
12610 #. type: =head2
12611 #: ../src/guestfs-actions.pod:3482
12612 msgid "guestfs_ll"
12613 msgstr ""
12614
12615 # type: verbatim
12616 #. type: verbatim
12617 #: ../src/guestfs-actions.pod:3484
12618 #, no-wrap
12619 msgid ""
12620 " char *\n"
12621 " guestfs_ll (guestfs_h *g,\n"
12622 "             const char *directory);\n"
12623 "\n"
12624 msgstr ""
12625
12626 # type: textblock
12627 #. type: textblock
12628 #: ../src/guestfs-actions.pod:3488 ../fish/guestfish-actions.pod:2420
12629 msgid ""
12630 "List the files in C<directory> (relative to the root directory, there is no "
12631 "cwd) in the format of 'ls -la'."
12632 msgstr ""
12633
12634 # type: textblock
12635 #. type: textblock
12636 #: ../src/guestfs-actions.pod:3491 ../fish/guestfish-actions.pod:2423
12637 msgid ""
12638 "This command is mostly useful for interactive sessions.  It is I<not> "
12639 "intended that you try to parse the output string."
12640 msgstr ""
12641
12642 # type: =head2
12643 #. type: =head2
12644 #: ../src/guestfs-actions.pod:3499
12645 msgid "guestfs_ln"
12646 msgstr ""
12647
12648 # type: verbatim
12649 #. type: verbatim
12650 #: ../src/guestfs-actions.pod:3501
12651 #, no-wrap
12652 msgid ""
12653 " int\n"
12654 " guestfs_ln (guestfs_h *g,\n"
12655 "             const char *target,\n"
12656 "             const char *linkname);\n"
12657 "\n"
12658 msgstr ""
12659
12660 # type: textblock
12661 #. type: textblock
12662 #: ../src/guestfs-actions.pod:3506 ../fish/guestfish-actions.pod:2430
12663 msgid "This command creates a hard link using the C<ln> command."
12664 msgstr ""
12665
12666 # type: =head2
12667 #. type: =head2
12668 #: ../src/guestfs-actions.pod:3512
12669 msgid "guestfs_ln_f"
12670 msgstr ""
12671
12672 # type: verbatim
12673 #. type: verbatim
12674 #: ../src/guestfs-actions.pod:3514
12675 #, no-wrap
12676 msgid ""
12677 " int\n"
12678 " guestfs_ln_f (guestfs_h *g,\n"
12679 "               const char *target,\n"
12680 "               const char *linkname);\n"
12681 "\n"
12682 msgstr ""
12683
12684 # type: textblock
12685 #. type: textblock
12686 #: ../src/guestfs-actions.pod:3519 ../fish/guestfish-actions.pod:2436
12687 msgid ""
12688 "This command creates a hard link using the C<ln -f> command.  The C<-f> "
12689 "option removes the link (C<linkname>) if it exists already."
12690 msgstr ""
12691
12692 # type: =head2
12693 #. type: =head2
12694 #: ../src/guestfs-actions.pod:3526
12695 msgid "guestfs_ln_s"
12696 msgstr ""
12697
12698 # type: verbatim
12699 #. type: verbatim
12700 #: ../src/guestfs-actions.pod:3528
12701 #, no-wrap
12702 msgid ""
12703 " int\n"
12704 " guestfs_ln_s (guestfs_h *g,\n"
12705 "               const char *target,\n"
12706 "               const char *linkname);\n"
12707 "\n"
12708 msgstr ""
12709
12710 # type: textblock
12711 #. type: textblock
12712 #: ../src/guestfs-actions.pod:3533 ../fish/guestfish-actions.pod:2443
12713 msgid "This command creates a symbolic link using the C<ln -s> command."
12714 msgstr ""
12715
12716 # type: =head2
12717 #. type: =head2
12718 #: ../src/guestfs-actions.pod:3539
12719 msgid "guestfs_ln_sf"
12720 msgstr ""
12721
12722 # type: verbatim
12723 #. type: verbatim
12724 #: ../src/guestfs-actions.pod:3541
12725 #, no-wrap
12726 msgid ""
12727 " int\n"
12728 " guestfs_ln_sf (guestfs_h *g,\n"
12729 "                const char *target,\n"
12730 "                const char *linkname);\n"
12731 "\n"
12732 msgstr ""
12733
12734 # type: textblock
12735 #. type: textblock
12736 #: ../src/guestfs-actions.pod:3546 ../fish/guestfish-actions.pod:2449
12737 msgid ""
12738 "This command creates a symbolic link using the C<ln -sf> command, The C<-f> "
12739 "option removes the link (C<linkname>) if it exists already."
12740 msgstr ""
12741
12742 # type: =head2
12743 #. type: =head2
12744 #: ../src/guestfs-actions.pod:3553
12745 msgid "guestfs_lremovexattr"
12746 msgstr ""
12747
12748 # type: verbatim
12749 #. type: verbatim
12750 #: ../src/guestfs-actions.pod:3555
12751 #, no-wrap
12752 msgid ""
12753 " int\n"
12754 " guestfs_lremovexattr (guestfs_h *g,\n"
12755 "                       const char *xattr,\n"
12756 "                       const char *path);\n"
12757 "\n"
12758 msgstr ""
12759
12760 # type: textblock
12761 #. type: textblock
12762 #: ../src/guestfs-actions.pod:3560
12763 msgid ""
12764 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
12765 "link, then it removes an extended attribute of the link itself."
12766 msgstr ""
12767
12768 # type: =head2
12769 #. type: =head2
12770 #: ../src/guestfs-actions.pod:3568
12771 msgid "guestfs_ls"
12772 msgstr ""
12773
12774 # type: verbatim
12775 #. type: verbatim
12776 #: ../src/guestfs-actions.pod:3570
12777 #, no-wrap
12778 msgid ""
12779 " char **\n"
12780 " guestfs_ls (guestfs_h *g,\n"
12781 "             const char *directory);\n"
12782 "\n"
12783 msgstr ""
12784
12785 # type: textblock
12786 #. type: textblock
12787 #: ../src/guestfs-actions.pod:3574 ../fish/guestfish-actions.pod:2464
12788 msgid ""
12789 "List the files in C<directory> (relative to the root directory, there is no "
12790 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
12791 msgstr ""
12792
12793 # type: textblock
12794 #. type: textblock
12795 #: ../src/guestfs-actions.pod:3578
12796 msgid ""
12797 "This command is mostly useful for interactive sessions.  Programs should "
12798 "probably use C<guestfs_readdir> instead."
12799 msgstr ""
12800
12801 # type: =head2
12802 #. type: =head2
12803 #: ../src/guestfs-actions.pod:3587
12804 msgid "guestfs_lsetxattr"
12805 msgstr ""
12806
12807 # type: verbatim
12808 #. type: verbatim
12809 #: ../src/guestfs-actions.pod:3589
12810 #, no-wrap
12811 msgid ""
12812 " int\n"
12813 " guestfs_lsetxattr (guestfs_h *g,\n"
12814 "                    const char *xattr,\n"
12815 "                    const char *val,\n"
12816 "                    int vallen,\n"
12817 "                    const char *path);\n"
12818 "\n"
12819 msgstr ""
12820
12821 # type: textblock
12822 #. type: textblock
12823 #: ../src/guestfs-actions.pod:3596
12824 msgid ""
12825 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
12826 "then it sets an extended attribute of the link itself."
12827 msgstr ""
12828
12829 # type: =head2
12830 #. type: =head2
12831 #: ../src/guestfs-actions.pod:3604
12832 msgid "guestfs_lstat"
12833 msgstr ""
12834
12835 # type: verbatim
12836 #. type: verbatim
12837 #: ../src/guestfs-actions.pod:3606
12838 #, no-wrap
12839 msgid ""
12840 " struct guestfs_stat *\n"
12841 " guestfs_lstat (guestfs_h *g,\n"
12842 "                const char *path);\n"
12843 "\n"
12844 msgstr ""
12845
12846 # type: textblock
12847 #. type: textblock
12848 #: ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:6136
12849 #: ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:4122
12850 msgid "Returns file information for the given C<path>."
12851 msgstr ""
12852
12853 # type: textblock
12854 #. type: textblock
12855 #: ../src/guestfs-actions.pod:3612
12856 msgid ""
12857 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
12858 "link, then the link is stat-ed, not the file it refers to."
12859 msgstr ""
12860
12861 # type: textblock
12862 #. type: textblock
12863 #: ../src/guestfs-actions.pod:3616 ../fish/guestfish-actions.pod:2489
12864 msgid "This is the same as the C<lstat(2)> system call."
12865 msgstr ""
12866
12867 # type: textblock
12868 #. type: textblock
12869 #: ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:6140
12870 msgid ""
12871 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
12872 "error.  I<The caller must call C<guestfs_free_stat> after use>."
12873 msgstr ""
12874
12875 # type: textblock
12876 #. type: textblock
12877 #: ../src/guestfs-actions.pod:3622 ../src/guestfs-actions.pod:6144
12878 #: ../src/guestfs-actions.pod:6162 ../src/guestfs-actions.pod:6543
12879 msgid "(Added in 0.9.2)"
12880 msgstr ""
12881
12882 # type: =head2
12883 #. type: =head2
12884 #: ../src/guestfs-actions.pod:3624
12885 msgid "guestfs_lstatlist"
12886 msgstr ""
12887
12888 # type: verbatim
12889 #. type: verbatim
12890 #: ../src/guestfs-actions.pod:3626
12891 #, no-wrap
12892 msgid ""
12893 " struct guestfs_stat_list *\n"
12894 " guestfs_lstatlist (guestfs_h *g,\n"
12895 "                    const char *path,\n"
12896 "                    char *const *names);\n"
12897 "\n"
12898 msgstr ""
12899
12900 # type: textblock
12901 #. type: textblock
12902 #: ../src/guestfs-actions.pod:3631
12903 msgid ""
12904 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
12905 "files, where all files are in the directory C<path>.  C<names> is the list "
12906 "of files from this directory."
12907 msgstr ""
12908
12909 # type: textblock
12910 #. type: textblock
12911 #: ../src/guestfs-actions.pod:3635 ../fish/guestfish-actions.pod:2499
12912 msgid ""
12913 "On return you get a list of stat structs, with a one-to-one correspondence "
12914 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
12915 "then the C<ino> field of that structure is set to C<-1>."
12916 msgstr ""
12917
12918 # type: textblock
12919 #. type: textblock
12920 #: ../src/guestfs-actions.pod:3640
12921 msgid ""
12922 "This call is intended for programs that want to efficiently list a directory "
12923 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
12924 "for a similarly efficient call for getting extended attributes.  Very long "
12925 "directory listings might cause the protocol message size to be exceeded, "
12926 "causing this call to fail.  The caller must split up such requests into "
12927 "smaller groups of names."
12928 msgstr ""
12929
12930 # type: textblock
12931 #. type: textblock
12932 #: ../src/guestfs-actions.pod:3648
12933 msgid ""
12934 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
12935 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
12936 msgstr ""
12937
12938 # type: =head2
12939 #. type: =head2
12940 #: ../src/guestfs-actions.pod:3654
12941 msgid "guestfs_luks_add_key"
12942 msgstr ""
12943
12944 # type: verbatim
12945 #. type: verbatim
12946 #: ../src/guestfs-actions.pod:3656
12947 #, no-wrap
12948 msgid ""
12949 " int\n"
12950 " guestfs_luks_add_key (guestfs_h *g,\n"
12951 "                       const char *device,\n"
12952 "                       const char *key,\n"
12953 "                       const char *newkey,\n"
12954 "                       int keyslot);\n"
12955 "\n"
12956 msgstr ""
12957
12958 # type: textblock
12959 #. type: textblock
12960 #: ../src/guestfs-actions.pod:3663 ../fish/guestfish-actions.pod:2516
12961 msgid ""
12962 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12963 "existing key, and is used to access the device.  C<newkey> is the new key to "
12964 "add.  C<keyslot> is the key slot that will be replaced."
12965 msgstr ""
12966
12967 # type: textblock
12968 #. type: textblock
12969 #: ../src/guestfs-actions.pod:3668
12970 msgid ""
12971 "Note that if C<keyslot> already contains a key, then this command will "
12972 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
12973 msgstr ""
12974
12975 # type: textblock
12976 #. type: textblock
12977 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3714
12978 #: ../src/guestfs-actions.pod:3737 ../src/guestfs-actions.pod:3757
12979 #: ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3808
12980 msgid ""
12981 "This function takes a key or passphrase parameter which could contain "
12982 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
12983 "information."
12984 msgstr ""
12985
12986 # type: textblock
12987 #. type: textblock
12988 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3718
12989 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
12990 msgid "(Added in 1.5.2)"
12991 msgstr ""
12992
12993 # type: =head2
12994 #. type: =head2
12995 #: ../src/guestfs-actions.pod:3680
12996 msgid "guestfs_luks_close"
12997 msgstr ""
12998
12999 # type: verbatim
13000 #. type: verbatim
13001 #: ../src/guestfs-actions.pod:3682
13002 #, no-wrap
13003 msgid ""
13004 " int\n"
13005 " guestfs_luks_close (guestfs_h *g,\n"
13006 "                     const char *device);\n"
13007 "\n"
13008 msgstr ""
13009
13010 # type: textblock
13011 #. type: textblock
13012 #: ../src/guestfs-actions.pod:3686
13013 msgid ""
13014 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
13015 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
13016 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
13017 "underlying block device."
13018 msgstr ""
13019
13020 # type: textblock
13021 #. type: textblock
13022 #: ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:3793
13023 #: ../src/guestfs-actions.pod:3812 ../src/guestfs-actions.pod:3862
13024 #: ../src/guestfs-actions.pod:3910
13025 msgid "(Added in 1.5.1)"
13026 msgstr ""
13027
13028 # type: =head2
13029 #. type: =head2
13030 #: ../src/guestfs-actions.pod:3696
13031 msgid "guestfs_luks_format"
13032 msgstr ""
13033
13034 # type: verbatim
13035 #. type: verbatim
13036 #: ../src/guestfs-actions.pod:3698
13037 #, no-wrap
13038 msgid ""
13039 " int\n"
13040 " guestfs_luks_format (guestfs_h *g,\n"
13041 "                      const char *device,\n"
13042 "                      const char *key,\n"
13043 "                      int keyslot);\n"
13044 "\n"
13045 msgstr ""
13046
13047 # type: textblock
13048 #. type: textblock
13049 #: ../src/guestfs-actions.pod:3704 ../fish/guestfish-actions.pod:2542
13050 msgid ""
13051 "This command erases existing data on C<device> and formats the device as a "
13052 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13053 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13054 msgstr ""
13055
13056 # type: textblock
13057 #. type: textblock
13058 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3734
13059 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4816
13060 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5971
13061 #: ../src/guestfs-actions.pod:5994 ../src/guestfs-actions.pod:6020
13062 #: ../src/guestfs-actions.pod:7180 ../fish/guestfish-actions.pod:2550
13063 #: ../fish/guestfish-actions.pod:2563 ../fish/guestfish-actions.pod:2647
13064 #: ../fish/guestfish-actions.pod:3221 ../fish/guestfish-actions.pod:3741
13065 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4037
13066 #: ../fish/guestfish-actions.pod:4052 ../fish/guestfish-actions.pod:4767
13067 msgid ""
13068 "B<This command is dangerous.  Without careful use you can easily destroy all "
13069 "your data>."
13070 msgstr ""
13071
13072 # type: =head2
13073 #. type: =head2
13074 #: ../src/guestfs-actions.pod:3720
13075 msgid "guestfs_luks_format_cipher"
13076 msgstr ""
13077
13078 # type: verbatim
13079 #. type: verbatim
13080 #: ../src/guestfs-actions.pod:3722
13081 #, no-wrap
13082 msgid ""
13083 " int\n"
13084 " guestfs_luks_format_cipher (guestfs_h *g,\n"
13085 "                             const char *device,\n"
13086 "                             const char *key,\n"
13087 "                             int keyslot,\n"
13088 "                             const char *cipher);\n"
13089 "\n"
13090 msgstr ""
13091
13092 # type: textblock
13093 #. type: textblock
13094 #: ../src/guestfs-actions.pod:3729
13095 msgid ""
13096 "This command is the same as C<guestfs_luks_format> but it also allows you to "
13097 "set the C<cipher> used."
13098 msgstr ""
13099
13100 # type: =head2
13101 #. type: =head2
13102 #: ../src/guestfs-actions.pod:3743
13103 msgid "guestfs_luks_kill_slot"
13104 msgstr ""
13105
13106 # type: verbatim
13107 #. type: verbatim
13108 #: ../src/guestfs-actions.pod:3745
13109 #, no-wrap
13110 msgid ""
13111 " int\n"
13112 " guestfs_luks_kill_slot (guestfs_h *g,\n"
13113 "                         const char *device,\n"
13114 "                         const char *key,\n"
13115 "                         int keyslot);\n"
13116 "\n"
13117 msgstr ""
13118
13119 # type: textblock
13120 #. type: textblock
13121 #: ../src/guestfs-actions.pod:3751 ../fish/guestfish-actions.pod:2570
13122 msgid ""
13123 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13124 "device C<device>.  C<key> must be one of the I<other> keys."
13125 msgstr ""
13126
13127 # type: =head2
13128 #. type: =head2
13129 #: ../src/guestfs-actions.pod:3763
13130 msgid "guestfs_luks_open"
13131 msgstr ""
13132
13133 # type: verbatim
13134 #. type: verbatim
13135 #: ../src/guestfs-actions.pod:3765
13136 #, no-wrap
13137 msgid ""
13138 " int\n"
13139 " guestfs_luks_open (guestfs_h *g,\n"
13140 "                    const char *device,\n"
13141 "                    const char *key,\n"
13142 "                    const char *mapname);\n"
13143 "\n"
13144 msgstr ""
13145
13146 # type: textblock
13147 #. type: textblock
13148 #: ../src/guestfs-actions.pod:3771 ../fish/guestfish-actions.pod:2581
13149 msgid ""
13150 "This command opens a block device which has been encrypted according to the "
13151 "Linux Unified Key Setup (LUKS) standard."
13152 msgstr ""
13153
13154 # type: textblock
13155 #. type: textblock
13156 #: ../src/guestfs-actions.pod:3774 ../fish/guestfish-actions.pod:2584
13157 msgid "C<device> is the encrypted block device or partition."
13158 msgstr ""
13159
13160 # type: textblock
13161 #. type: textblock
13162 #: ../src/guestfs-actions.pod:3776 ../fish/guestfish-actions.pod:2586
13163 msgid ""
13164 "The caller must supply one of the keys associated with the LUKS block "
13165 "device, in the C<key> parameter."
13166 msgstr ""
13167
13168 # type: textblock
13169 #. type: textblock
13170 #: ../src/guestfs-actions.pod:3779 ../fish/guestfish-actions.pod:2589
13171 msgid ""
13172 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13173 "writes to this block device are decrypted from and encrypted to the "
13174 "underlying C<device> respectively."
13175 msgstr ""
13176
13177 # type: textblock
13178 #. type: textblock
13179 #: ../src/guestfs-actions.pod:3783
13180 msgid ""
13181 "If this block device contains LVM volume groups, then calling "
13182 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
13183 "visible."
13184 msgstr ""
13185
13186 # type: =head2
13187 #. type: =head2
13188 #: ../src/guestfs-actions.pod:3795
13189 msgid "guestfs_luks_open_ro"
13190 msgstr ""
13191
13192 # type: verbatim
13193 #. type: verbatim
13194 #: ../src/guestfs-actions.pod:3797
13195 #, no-wrap
13196 msgid ""
13197 " int\n"
13198 " guestfs_luks_open_ro (guestfs_h *g,\n"
13199 "                       const char *device,\n"
13200 "                       const char *key,\n"
13201 "                       const char *mapname);\n"
13202 "\n"
13203 msgstr ""
13204
13205 # type: textblock
13206 #. type: textblock
13207 #: ../src/guestfs-actions.pod:3803
13208 msgid ""
13209 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
13210 "created."
13211 msgstr ""
13212
13213 # type: =head2
13214 #. type: =head2
13215 #: ../src/guestfs-actions.pod:3814
13216 msgid "guestfs_lvcreate"
13217 msgstr ""
13218
13219 # type: verbatim
13220 #. type: verbatim
13221 #: ../src/guestfs-actions.pod:3816
13222 #, no-wrap
13223 msgid ""
13224 " int\n"
13225 " guestfs_lvcreate (guestfs_h *g,\n"
13226 "                   const char *logvol,\n"
13227 "                   const char *volgroup,\n"
13228 "                   int mbytes);\n"
13229 "\n"
13230 msgstr ""
13231
13232 # type: textblock
13233 #. type: textblock
13234 #: ../src/guestfs-actions.pod:3822 ../fish/guestfish-actions.pod:2614
13235 msgid ""
13236 "This creates an LVM logical volume called C<logvol> on the volume group "
13237 "C<volgroup>, with C<size> megabytes."
13238 msgstr ""
13239
13240 # type: =head2
13241 #. type: =head2
13242 #: ../src/guestfs-actions.pod:3829
13243 msgid "guestfs_lvm_canonical_lv_name"
13244 msgstr ""
13245
13246 # type: verbatim
13247 #. type: verbatim
13248 #: ../src/guestfs-actions.pod:3831
13249 #, no-wrap
13250 msgid ""
13251 " char *\n"
13252 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
13253 "                                const char *lvname);\n"
13254 "\n"
13255 msgstr ""
13256
13257 # type: textblock
13258 #. type: textblock
13259 #: ../src/guestfs-actions.pod:3835 ../fish/guestfish-actions.pod:2621
13260 msgid ""
13261 "This converts alternative naming schemes for LVs that you might find to the "
13262 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13263 "LV>."
13264 msgstr ""
13265
13266 # type: textblock
13267 #. type: textblock
13268 #: ../src/guestfs-actions.pod:3839 ../fish/guestfish-actions.pod:2625
13269 msgid ""
13270 "This command returns an error if the C<lvname> parameter does not refer to a "
13271 "logical volume."
13272 msgstr ""
13273
13274 # type: textblock
13275 #. type: textblock
13276 #: ../src/guestfs-actions.pod:3842
13277 msgid "See also C<guestfs_is_lv>."
13278 msgstr ""
13279
13280 # type: textblock
13281 #. type: textblock
13282 #: ../src/guestfs-actions.pod:3847
13283 msgid "(Added in 1.5.24)"
13284 msgstr ""
13285
13286 # type: =head2
13287 #. type: =head2
13288 #: ../src/guestfs-actions.pod:3849
13289 msgid "guestfs_lvm_clear_filter"
13290 msgstr ""
13291
13292 # type: verbatim
13293 #. type: verbatim
13294 #: ../src/guestfs-actions.pod:3851
13295 #, no-wrap
13296 msgid ""
13297 " int\n"
13298 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
13299 "\n"
13300 msgstr ""
13301
13302 # type: textblock
13303 #. type: textblock
13304 #: ../src/guestfs-actions.pod:3854
13305 msgid ""
13306 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
13307 "see every block device."
13308 msgstr ""
13309
13310 # type: textblock
13311 #. type: textblock
13312 #: ../src/guestfs-actions.pod:3857 ../src/guestfs-actions.pod:3899
13313 #: ../fish/guestfish-actions.pod:2637 ../fish/guestfish-actions.pod:2668
13314 msgid ""
13315 "This command also clears the LVM cache and performs a volume group scan."
13316 msgstr ""
13317
13318 # type: =head2
13319 #. type: =head2
13320 #: ../src/guestfs-actions.pod:3864
13321 msgid "guestfs_lvm_remove_all"
13322 msgstr ""
13323
13324 # type: verbatim
13325 #. type: verbatim
13326 #: ../src/guestfs-actions.pod:3866
13327 #, no-wrap
13328 msgid ""
13329 " int\n"
13330 " guestfs_lvm_remove_all (guestfs_h *g);\n"
13331 "\n"
13332 msgstr ""
13333
13334 # type: textblock
13335 #. type: textblock
13336 #: ../src/guestfs-actions.pod:3869 ../fish/guestfish-actions.pod:2644
13337 msgid ""
13338 "This command removes all LVM logical volumes, volume groups and physical "
13339 "volumes."
13340 msgstr ""
13341
13342 # type: =head2
13343 #. type: =head2
13344 #: ../src/guestfs-actions.pod:3879
13345 msgid "guestfs_lvm_set_filter"
13346 msgstr ""
13347
13348 # type: verbatim
13349 #. type: verbatim
13350 #: ../src/guestfs-actions.pod:3881
13351 #, no-wrap
13352 msgid ""
13353 " int\n"
13354 " guestfs_lvm_set_filter (guestfs_h *g,\n"
13355 "                         char *const *devices);\n"
13356 "\n"
13357 msgstr ""
13358
13359 # type: textblock
13360 #. type: textblock
13361 #: ../src/guestfs-actions.pod:3885 ../fish/guestfish-actions.pod:2654
13362 msgid ""
13363 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13364 "block devices in the list C<devices>, and will ignore all other attached "
13365 "block devices."
13366 msgstr ""
13367
13368 # type: textblock
13369 #. type: textblock
13370 #: ../src/guestfs-actions.pod:3889 ../fish/guestfish-actions.pod:2658
13371 msgid ""
13372 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13373 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13374 "there are two types of duplication possible: either cloned PVs/VGs which "
13375 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13376 "same name.  In normal operation you cannot create this situation, but you "
13377 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13378 "inside the LVM metadata."
13379 msgstr ""
13380
13381 # type: textblock
13382 #. type: textblock
13383 #: ../src/guestfs-actions.pod:3902 ../fish/guestfish-actions.pod:2671
13384 msgid "You can filter whole block devices or individual partitions."
13385 msgstr ""
13386
13387 # type: textblock
13388 #. type: textblock
13389 #: ../src/guestfs-actions.pod:3904 ../fish/guestfish-actions.pod:2673
13390 msgid ""
13391 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13392 "filesystem), even if you are not filtering out that VG."
13393 msgstr ""
13394
13395 # type: =head2
13396 #. type: =head2
13397 #: ../src/guestfs-actions.pod:3912
13398 msgid "guestfs_lvremove"
13399 msgstr ""
13400
13401 # type: verbatim
13402 #. type: verbatim
13403 #: ../src/guestfs-actions.pod:3914
13404 #, no-wrap
13405 msgid ""
13406 " int\n"
13407 " guestfs_lvremove (guestfs_h *g,\n"
13408 "                   const char *device);\n"
13409 "\n"
13410 msgstr ""
13411
13412 # type: textblock
13413 #. type: textblock
13414 #: ../src/guestfs-actions.pod:3918 ../fish/guestfish-actions.pod:2681
13415 msgid ""
13416 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13417 "LV, such as C</dev/VG/LV>."
13418 msgstr ""
13419
13420 # type: textblock
13421 #. type: textblock
13422 #: ../src/guestfs-actions.pod:3921 ../fish/guestfish-actions.pod:2684
13423 msgid ""
13424 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13425 "dev/VG>."
13426 msgstr ""
13427
13428 # type: textblock
13429 #. type: textblock
13430 #: ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:5162
13431 #: ../src/guestfs-actions.pod:6919
13432 msgid "(Added in 1.0.13)"
13433 msgstr ""
13434
13435 # type: =head2
13436 #. type: =head2
13437 #: ../src/guestfs-actions.pod:3928
13438 msgid "guestfs_lvrename"
13439 msgstr ""
13440
13441 # type: verbatim
13442 #. type: verbatim
13443 #: ../src/guestfs-actions.pod:3930
13444 #, no-wrap
13445 msgid ""
13446 " int\n"
13447 " guestfs_lvrename (guestfs_h *g,\n"
13448 "                   const char *logvol,\n"
13449 "                   const char *newlogvol);\n"
13450 "\n"
13451 msgstr ""
13452
13453 # type: textblock
13454 #. type: textblock
13455 #: ../src/guestfs-actions.pod:3935 ../fish/guestfish-actions.pod:2691
13456 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13457 msgstr ""
13458
13459 # type: textblock
13460 #. type: textblock
13461 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:6932
13462 msgid "(Added in 1.0.83)"
13463 msgstr ""
13464
13465 # type: =head2
13466 #. type: =head2
13467 #: ../src/guestfs-actions.pod:3941
13468 msgid "guestfs_lvresize"
13469 msgstr ""
13470
13471 # type: verbatim
13472 #. type: verbatim
13473 #: ../src/guestfs-actions.pod:3943
13474 #, no-wrap
13475 msgid ""
13476 " int\n"
13477 " guestfs_lvresize (guestfs_h *g,\n"
13478 "                   const char *device,\n"
13479 "                   int mbytes);\n"
13480 "\n"
13481 msgstr ""
13482
13483 # type: textblock
13484 #. type: textblock
13485 #: ../src/guestfs-actions.pod:3948 ../fish/guestfish-actions.pod:2697
13486 msgid ""
13487 "This resizes (expands or shrinks) an existing LVM logical volume to "
13488 "C<mbytes>.  When reducing, data in the reduced part is lost."
13489 msgstr ""
13490
13491 # type: =head2
13492 #. type: =head2
13493 #: ../src/guestfs-actions.pod:3956
13494 msgid "guestfs_lvresize_free"
13495 msgstr ""
13496
13497 # type: verbatim
13498 #. type: verbatim
13499 #: ../src/guestfs-actions.pod:3958
13500 #, no-wrap
13501 msgid ""
13502 " int\n"
13503 " guestfs_lvresize_free (guestfs_h *g,\n"
13504 "                        const char *lv,\n"
13505 "                        int percent);\n"
13506 "\n"
13507 msgstr ""
13508
13509 # type: textblock
13510 #. type: textblock
13511 #: ../src/guestfs-actions.pod:3963 ../fish/guestfish-actions.pod:2705
13512 msgid ""
13513 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13514 "remaining free space in the volume group.  Commonly you would call this with "
13515 "pc = 100 which expands the logical volume as much as possible, using all "
13516 "remaining free space in the volume group."
13517 msgstr ""
13518
13519 # type: textblock
13520 #. type: textblock
13521 #: ../src/guestfs-actions.pod:3971
13522 msgid "(Added in 1.3.3)"
13523 msgstr ""
13524
13525 # type: =head2
13526 #. type: =head2
13527 #: ../src/guestfs-actions.pod:3973
13528 msgid "guestfs_lvs"
13529 msgstr ""
13530
13531 # type: verbatim
13532 #. type: verbatim
13533 #: ../src/guestfs-actions.pod:3975
13534 #, no-wrap
13535 msgid ""
13536 " char **\n"
13537 " guestfs_lvs (guestfs_h *g);\n"
13538 "\n"
13539 msgstr ""
13540
13541 # type: textblock
13542 #. type: textblock
13543 #: ../src/guestfs-actions.pod:3978 ../fish/guestfish-actions.pod:2715
13544 msgid ""
13545 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13546 "(8)> command."
13547 msgstr ""
13548
13549 # type: textblock
13550 #. type: textblock
13551 #: ../src/guestfs-actions.pod:3981 ../fish/guestfish-actions.pod:2718
13552 msgid ""
13553 "This returns a list of the logical volume device names (eg. C</dev/"
13554 "VolGroup00/LogVol00>)."
13555 msgstr ""
13556
13557 # type: textblock
13558 #. type: textblock
13559 #: ../src/guestfs-actions.pod:3984
13560 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
13561 msgstr ""
13562
13563 # type: =head2
13564 #. type: =head2
13565 #: ../src/guestfs-actions.pod:3992
13566 msgid "guestfs_lvs_full"
13567 msgstr ""
13568
13569 # type: verbatim
13570 #. type: verbatim
13571 #: ../src/guestfs-actions.pod:3994
13572 #, no-wrap
13573 msgid ""
13574 " struct guestfs_lvm_lv_list *\n"
13575 " guestfs_lvs_full (guestfs_h *g);\n"
13576 "\n"
13577 msgstr ""
13578
13579 # type: textblock
13580 #. type: textblock
13581 #: ../src/guestfs-actions.pod:3997 ../fish/guestfish-actions.pod:2727
13582 msgid ""
13583 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13584 "(8)> command.  The \"full\" version includes all fields."
13585 msgstr ""
13586
13587 # type: textblock
13588 #. type: textblock
13589 #: ../src/guestfs-actions.pod:4000
13590 msgid ""
13591 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
13592 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
13593 msgstr ""
13594
13595 # type: =head2
13596 #. type: =head2
13597 #: ../src/guestfs-actions.pod:4006
13598 msgid "guestfs_lvuuid"
13599 msgstr ""
13600
13601 # type: verbatim
13602 #. type: verbatim
13603 #: ../src/guestfs-actions.pod:4008
13604 #, no-wrap
13605 msgid ""
13606 " char *\n"
13607 " guestfs_lvuuid (guestfs_h *g,\n"
13608 "                 const char *device);\n"
13609 "\n"
13610 msgstr ""
13611
13612 # type: textblock
13613 #. type: textblock
13614 #: ../src/guestfs-actions.pod:4012 ../fish/guestfish-actions.pod:2734
13615 msgid "This command returns the UUID of the LVM LV C<device>."
13616 msgstr ""
13617
13618 # type: =head2
13619 #. type: =head2
13620 #: ../src/guestfs-actions.pod:4019
13621 msgid "guestfs_lxattrlist"
13622 msgstr ""
13623
13624 # type: verbatim
13625 #. type: verbatim
13626 #: ../src/guestfs-actions.pod:4021
13627 #, no-wrap
13628 msgid ""
13629 " struct guestfs_xattr_list *\n"
13630 " guestfs_lxattrlist (guestfs_h *g,\n"
13631 "                     const char *path,\n"
13632 "                     char *const *names);\n"
13633 "\n"
13634 msgstr ""
13635
13636 # type: textblock
13637 #. type: textblock
13638 #: ../src/guestfs-actions.pod:4026 ../fish/guestfish-actions.pod:2740
13639 msgid ""
13640 "This call allows you to get the extended attributes of multiple files, where "
13641 "all files are in the directory C<path>.  C<names> is the list of files from "
13642 "this directory."
13643 msgstr ""
13644
13645 # type: textblock
13646 #. type: textblock
13647 #: ../src/guestfs-actions.pod:4030 ../fish/guestfish-actions.pod:2744
13648 msgid ""
13649 "On return you get a flat list of xattr structs which must be interpreted "
13650 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13651 "C<attrval> in this struct is zero-length to indicate there was an error "
13652 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13653 "number (the number of following attributes for this file, which could be C<"
13654 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13655 "for the first named file.  This repeats for the second and subsequent files."
13656 msgstr ""
13657
13658 # type: textblock
13659 #. type: textblock
13660 #: ../src/guestfs-actions.pod:4040
13661 msgid ""
13662 "This call is intended for programs that want to efficiently list a directory "
13663 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
13664 "a similarly efficient call for getting standard stats.  Very long directory "
13665 "listings might cause the protocol message size to be exceeded, causing this "
13666 "call to fail.  The caller must split up such requests into smaller groups of "
13667 "names."
13668 msgstr ""
13669
13670 # type: =head2
13671 #. type: =head2
13672 #: ../src/guestfs-actions.pod:4054
13673 msgid "guestfs_mkdir"
13674 msgstr ""
13675
13676 # type: verbatim
13677 #. type: verbatim
13678 #: ../src/guestfs-actions.pod:4056
13679 #, no-wrap
13680 msgid ""
13681 " int\n"
13682 " guestfs_mkdir (guestfs_h *g,\n"
13683 "                const char *path);\n"
13684 "\n"
13685 msgstr ""
13686
13687 # type: textblock
13688 #. type: textblock
13689 #: ../src/guestfs-actions.pod:4060 ../fish/guestfish-actions.pod:2766
13690 msgid "Create a directory named C<path>."
13691 msgstr ""
13692
13693 # type: =head2
13694 #. type: =head2
13695 #: ../src/guestfs-actions.pod:4066
13696 msgid "guestfs_mkdir_mode"
13697 msgstr ""
13698
13699 # type: verbatim
13700 #. type: verbatim
13701 #: ../src/guestfs-actions.pod:4068
13702 #, no-wrap
13703 msgid ""
13704 " int\n"
13705 " guestfs_mkdir_mode (guestfs_h *g,\n"
13706 "                     const char *path,\n"
13707 "                     int mode);\n"
13708 "\n"
13709 msgstr ""
13710
13711 # type: textblock
13712 #. type: textblock
13713 #: ../src/guestfs-actions.pod:4073 ../fish/guestfish-actions.pod:2772
13714 msgid ""
13715 "This command creates a directory, setting the initial permissions of the "
13716 "directory to C<mode>."
13717 msgstr ""
13718
13719 # type: textblock
13720 #. type: textblock
13721 #: ../src/guestfs-actions.pod:4076 ../fish/guestfish-actions.pod:2775
13722 msgid ""
13723 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13724 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13725 "other ways."
13726 msgstr ""
13727
13728 # type: textblock
13729 #. type: textblock
13730 #: ../src/guestfs-actions.pod:4080
13731 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
13732 msgstr ""
13733
13734 # type: =head2
13735 #. type: =head2
13736 #: ../src/guestfs-actions.pod:4086
13737 msgid "guestfs_mkdir_p"
13738 msgstr ""
13739
13740 # type: verbatim
13741 #. type: verbatim
13742 #: ../src/guestfs-actions.pod:4088
13743 #, no-wrap
13744 msgid ""
13745 " int\n"
13746 " guestfs_mkdir_p (guestfs_h *g,\n"
13747 "                  const char *path);\n"
13748 "\n"
13749 msgstr ""
13750
13751 # type: textblock
13752 #. type: textblock
13753 #: ../src/guestfs-actions.pod:4092 ../fish/guestfish-actions.pod:2785
13754 msgid ""
13755 "Create a directory named C<path>, creating any parent directories as "
13756 "necessary.  This is like the C<mkdir -p> shell command."
13757 msgstr ""
13758
13759 # type: =head2
13760 #. type: =head2
13761 #: ../src/guestfs-actions.pod:4099
13762 msgid "guestfs_mkdtemp"
13763 msgstr ""
13764
13765 # type: verbatim
13766 #. type: verbatim
13767 #: ../src/guestfs-actions.pod:4101
13768 #, no-wrap
13769 msgid ""
13770 " char *\n"
13771 " guestfs_mkdtemp (guestfs_h *g,\n"
13772 "                  const char *template);\n"
13773 "\n"
13774 msgstr ""
13775
13776 # type: textblock
13777 #. type: textblock
13778 #: ../src/guestfs-actions.pod:4105 ../fish/guestfish-actions.pod:2792
13779 msgid ""
13780 "This command creates a temporary directory.  The C<template> parameter "
13781 "should be a full pathname for the temporary directory name with the final "
13782 "six characters being \"XXXXXX\"."
13783 msgstr ""
13784
13785 # type: textblock
13786 #. type: textblock
13787 #: ../src/guestfs-actions.pod:4110 ../fish/guestfish-actions.pod:2797
13788 msgid ""
13789 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
13790 "being suitable for Windows filesystems."
13791 msgstr ""
13792
13793 # type: textblock
13794 #. type: textblock
13795 #: ../src/guestfs-actions.pod:4113 ../fish/guestfish-actions.pod:2800
13796 msgid "The name of the temporary directory that was created is returned."
13797 msgstr ""
13798
13799 # type: textblock
13800 #. type: textblock
13801 #: ../src/guestfs-actions.pod:4116 ../fish/guestfish-actions.pod:2803
13802 msgid "The temporary directory is created with mode 0700 and is owned by root."
13803 msgstr ""
13804
13805 # type: textblock
13806 #. type: textblock
13807 #: ../src/guestfs-actions.pod:4119 ../fish/guestfish-actions.pod:2806
13808 msgid ""
13809 "The caller is responsible for deleting the temporary directory and its "
13810 "contents after use."
13811 msgstr ""
13812
13813 # type: textblock
13814 #. type: textblock
13815 #: ../src/guestfs-actions.pod:4122 ../fish/guestfish-actions.pod:2809
13816 msgid "See also: L<mkdtemp(3)>"
13817 msgstr ""
13818
13819 # type: =head2
13820 #. type: =head2
13821 #: ../src/guestfs-actions.pod:4129
13822 msgid "guestfs_mke2fs_J"
13823 msgstr ""
13824
13825 # type: verbatim
13826 #. type: verbatim
13827 #: ../src/guestfs-actions.pod:4131
13828 #, no-wrap
13829 msgid ""
13830 " int\n"
13831 " guestfs_mke2fs_J (guestfs_h *g,\n"
13832 "                   const char *fstype,\n"
13833 "                   int blocksize,\n"
13834 "                   const char *device,\n"
13835 "                   const char *journal);\n"
13836 "\n"
13837 msgstr ""
13838
13839 # type: textblock
13840 #. type: textblock
13841 #: ../src/guestfs-actions.pod:4138 ../fish/guestfish-actions.pod:2815
13842 msgid ""
13843 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13844 "C<journal>.  It is equivalent to the command:"
13845 msgstr ""
13846
13847 # type: verbatim
13848 #. type: verbatim
13849 #: ../src/guestfs-actions.pod:4142 ../fish/guestfish-actions.pod:2819
13850 #, no-wrap
13851 msgid ""
13852 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
13853 "\n"
13854 msgstr ""
13855
13856 # type: textblock
13857 #. type: textblock
13858 #: ../src/guestfs-actions.pod:4144
13859 msgid "See also C<guestfs_mke2journal>."
13860 msgstr ""
13861
13862 # type: textblock
13863 #. type: textblock
13864 #: ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:4166
13865 #: ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4200
13866 #: ../src/guestfs-actions.pod:4214 ../src/guestfs-actions.pod:4228
13867 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4552
13868 msgid "(Added in 1.0.68)"
13869 msgstr ""
13870
13871 # type: =head2
13872 #. type: =head2
13873 #: ../src/guestfs-actions.pod:4150
13874 msgid "guestfs_mke2fs_JL"
13875 msgstr ""
13876
13877 # type: verbatim
13878 #. type: verbatim
13879 #: ../src/guestfs-actions.pod:4152
13880 #, no-wrap
13881 msgid ""
13882 " int\n"
13883 " guestfs_mke2fs_JL (guestfs_h *g,\n"
13884 "                    const char *fstype,\n"
13885 "                    int blocksize,\n"
13886 "                    const char *device,\n"
13887 "                    const char *label);\n"
13888 "\n"
13889 msgstr ""
13890
13891 # type: textblock
13892 #. type: textblock
13893 #: ../src/guestfs-actions.pod:4159 ../fish/guestfish-actions.pod:2827
13894 msgid ""
13895 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13896 "the journal labeled C<label>."
13897 msgstr ""
13898
13899 # type: textblock
13900 #. type: textblock
13901 #: ../src/guestfs-actions.pod:4162
13902 msgid "See also C<guestfs_mke2journal_L>."
13903 msgstr ""
13904
13905 # type: =head2
13906 #. type: =head2
13907 #: ../src/guestfs-actions.pod:4168
13908 msgid "guestfs_mke2fs_JU"
13909 msgstr ""
13910
13911 # type: verbatim
13912 #. type: verbatim
13913 #: ../src/guestfs-actions.pod:4170
13914 #, no-wrap
13915 msgid ""
13916 " int\n"
13917 " guestfs_mke2fs_JU (guestfs_h *g,\n"
13918 "                    const char *fstype,\n"
13919 "                    int blocksize,\n"
13920 "                    const char *device,\n"
13921 "                    const char *uuid);\n"
13922 "\n"
13923 msgstr ""
13924
13925 # type: textblock
13926 #. type: textblock
13927 #: ../src/guestfs-actions.pod:4177 ../fish/guestfish-actions.pod:2836
13928 msgid ""
13929 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
13930 "the journal with UUID C<uuid>."
13931 msgstr ""
13932
13933 # type: textblock
13934 #. type: textblock
13935 #: ../src/guestfs-actions.pod:4180
13936 msgid "See also C<guestfs_mke2journal_U>."
13937 msgstr ""
13938
13939 # type: =head2
13940 #. type: =head2
13941 #: ../src/guestfs-actions.pod:4186
13942 msgid "guestfs_mke2journal"
13943 msgstr ""
13944
13945 # type: verbatim
13946 #. type: verbatim
13947 #: ../src/guestfs-actions.pod:4188
13948 #, no-wrap
13949 msgid ""
13950 " int\n"
13951 " guestfs_mke2journal (guestfs_h *g,\n"
13952 "                      int blocksize,\n"
13953 "                      const char *device);\n"
13954 "\n"
13955 msgstr ""
13956
13957 # type: textblock
13958 #. type: textblock
13959 #: ../src/guestfs-actions.pod:4193 ../fish/guestfish-actions.pod:2845
13960 msgid ""
13961 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
13962 "command:"
13963 msgstr ""
13964
13965 # type: verbatim
13966 #. type: verbatim
13967 #: ../src/guestfs-actions.pod:4196 ../fish/guestfish-actions.pod:2848
13968 #, no-wrap
13969 msgid ""
13970 " mke2fs -O journal_dev -b blocksize device\n"
13971 "\n"
13972 msgstr ""
13973
13974 # type: =head2
13975 #. type: =head2
13976 #: ../src/guestfs-actions.pod:4202
13977 msgid "guestfs_mke2journal_L"
13978 msgstr ""
13979
13980 # type: verbatim
13981 #. type: verbatim
13982 #: ../src/guestfs-actions.pod:4204
13983 #, no-wrap
13984 msgid ""
13985 " int\n"
13986 " guestfs_mke2journal_L (guestfs_h *g,\n"
13987 "                        int blocksize,\n"
13988 "                        const char *label,\n"
13989 "                        const char *device);\n"
13990 "\n"
13991 msgstr ""
13992
13993 # type: textblock
13994 #. type: textblock
13995 #: ../src/guestfs-actions.pod:4210 ../fish/guestfish-actions.pod:2854
13996 msgid "This creates an ext2 external journal on C<device> with label C<label>."
13997 msgstr ""
13998
13999 # type: =head2
14000 #. type: =head2
14001 #: ../src/guestfs-actions.pod:4216
14002 msgid "guestfs_mke2journal_U"
14003 msgstr ""
14004
14005 # type: verbatim
14006 #. type: verbatim
14007 #: ../src/guestfs-actions.pod:4218
14008 #, no-wrap
14009 msgid ""
14010 " int\n"
14011 " guestfs_mke2journal_U (guestfs_h *g,\n"
14012 "                        int blocksize,\n"
14013 "                        const char *uuid,\n"
14014 "                        const char *device);\n"
14015 "\n"
14016 msgstr ""
14017
14018 # type: textblock
14019 #. type: textblock
14020 #: ../src/guestfs-actions.pod:4224 ../fish/guestfish-actions.pod:2860
14021 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14022 msgstr ""
14023
14024 # type: =head2
14025 #. type: =head2
14026 #: ../src/guestfs-actions.pod:4230
14027 msgid "guestfs_mkfifo"
14028 msgstr ""
14029
14030 # type: verbatim
14031 #. type: verbatim
14032 #: ../src/guestfs-actions.pod:4232
14033 #, no-wrap
14034 msgid ""
14035 " int\n"
14036 " guestfs_mkfifo (guestfs_h *g,\n"
14037 "                 int mode,\n"
14038 "                 const char *path);\n"
14039 "\n"
14040 msgstr ""
14041
14042 # type: textblock
14043 #. type: textblock
14044 #: ../src/guestfs-actions.pod:4237
14045 msgid ""
14046 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14047 "is just a convenient wrapper around C<guestfs_mknod>."
14048 msgstr ""
14049
14050 # type: =head2
14051 #. type: =head2
14052 #: ../src/guestfs-actions.pod:4247
14053 msgid "guestfs_mkfs"
14054 msgstr ""
14055
14056 # type: verbatim
14057 #. type: verbatim
14058 #: ../src/guestfs-actions.pod:4249
14059 #, no-wrap
14060 msgid ""
14061 " int\n"
14062 " guestfs_mkfs (guestfs_h *g,\n"
14063 "               const char *fstype,\n"
14064 "               const char *device);\n"
14065 "\n"
14066 msgstr ""
14067
14068 # type: textblock
14069 #. type: textblock
14070 #: ../src/guestfs-actions.pod:4254 ../fish/guestfish-actions.pod:2876
14071 msgid ""
14072 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14073 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14074 msgstr ""
14075
14076 # type: =head2
14077 #. type: =head2
14078 #: ../src/guestfs-actions.pod:4262
14079 msgid "guestfs_mkfs_b"
14080 msgstr ""
14081
14082 # type: verbatim
14083 #. type: verbatim
14084 #: ../src/guestfs-actions.pod:4264
14085 #, no-wrap
14086 msgid ""
14087 " int\n"
14088 " guestfs_mkfs_b (guestfs_h *g,\n"
14089 "                 const char *fstype,\n"
14090 "                 int blocksize,\n"
14091 "                 const char *device);\n"
14092 "\n"
14093 msgstr ""
14094
14095 # type: textblock
14096 #. type: textblock
14097 #: ../src/guestfs-actions.pod:4270
14098 msgid ""
14099 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
14100 "block size of the resulting filesystem.  Supported block sizes depend on the "
14101 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14102 msgstr ""
14103
14104 # type: textblock
14105 #. type: textblock
14106 #: ../src/guestfs-actions.pod:4275 ../src/guestfs-actions.pod:4318
14107 #: ../fish/guestfish-actions.pod:2889 ../fish/guestfish-actions.pod:2916
14108 msgid ""
14109 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14110 "cluster size."
14111 msgstr ""
14112
14113 # type: textblock
14114 #. type: textblock
14115 #: ../src/guestfs-actions.pod:4280 ../fish/guestfish-actions.pod:2892
14116 msgid ""
14117 "This function is deprecated.  In new code, use the C<mkfs_opts> call instead."
14118 msgstr ""
14119
14120 # type: =head2
14121 #. type: =head2
14122 #: ../src/guestfs-actions.pod:4289
14123 msgid "guestfs_mkfs_opts"
14124 msgstr ""
14125
14126 # type: verbatim
14127 #. type: verbatim
14128 #: ../src/guestfs-actions.pod:4291
14129 #, no-wrap
14130 msgid ""
14131 " int\n"
14132 " guestfs_mkfs_opts (guestfs_h *g,\n"
14133 "                    const char *fstype,\n"
14134 "                    const char *device,\n"
14135 "                    ...);\n"
14136 "\n"
14137 msgstr ""
14138
14139 #. type: verbatim
14140 #: ../src/guestfs-actions.pod:4302
14141 #, no-wrap
14142 msgid ""
14143 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14144 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
14145 "\n"
14146 msgstr ""
14147
14148 # type: textblock
14149 #. type: textblock
14150 #: ../src/guestfs-actions.pod:4305 ../fish/guestfish-actions.pod:2903
14151 msgid ""
14152 "This function creates a filesystem on C<device>.  The filesystem type is "
14153 "C<fstype>, for example C<ext3>."
14154 msgstr ""
14155
14156 # type: =item
14157 #. type: =item
14158 #: ../src/guestfs-actions.pod:4312 ../fish/guestfish-actions.pod:2910
14159 msgid "C<blocksize>"
14160 msgstr ""
14161
14162 # type: textblock
14163 #. type: textblock
14164 #: ../src/guestfs-actions.pod:4314 ../fish/guestfish-actions.pod:2912
14165 msgid ""
14166 "The filesystem block size.  Supported block sizes depend on the filesystem "
14167 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14168 "filesystems."
14169 msgstr ""
14170
14171 #. type: textblock
14172 #: ../src/guestfs-actions.pod:4321 ../fish/guestfish-actions.pod:2919
14173 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14174 msgstr ""
14175
14176 #. type: =item
14177 #: ../src/guestfs-actions.pod:4323 ../fish/guestfish-actions.pod:2921
14178 msgid "C<features>"
14179 msgstr ""
14180
14181 #. type: textblock
14182 #: ../src/guestfs-actions.pod:4325 ../fish/guestfish-actions.pod:2923
14183 msgid "This passes the C<-O> parameter to the external mkfs program."
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../src/guestfs-actions.pod:4327 ../fish/guestfish-actions.pod:2925
14188 msgid ""
14189 "For certain filesystem types, this allows extra filesystem features to be "
14190 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14191 msgstr ""
14192
14193 #. type: textblock
14194 #: ../src/guestfs-actions.pod:4331 ../fish/guestfish-actions.pod:2929
14195 msgid ""
14196 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14197 "type."
14198 msgstr ""
14199
14200 #. type: textblock
14201 #: ../src/guestfs-actions.pod:4338
14202 msgid "(Added in 1.7.19)"
14203 msgstr ""
14204
14205 # type: =head2
14206 #. type: =head2
14207 #: ../src/guestfs-actions.pod:4340
14208 msgid "guestfs_mkfs_opts_va"
14209 msgstr ""
14210
14211 # type: verbatim
14212 #. type: verbatim
14213 #: ../src/guestfs-actions.pod:4342
14214 #, no-wrap
14215 msgid ""
14216 " int\n"
14217 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14218 "                       const char *fstype,\n"
14219 "                       const char *device,\n"
14220 "                       va_list args);\n"
14221 "\n"
14222 msgstr ""
14223
14224 # type: textblock
14225 #. type: textblock
14226 #: ../src/guestfs-actions.pod:4348
14227 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14228 msgstr ""
14229
14230 # type: =head2
14231 #. type: =head2
14232 #: ../src/guestfs-actions.pod:4352
14233 msgid "guestfs_mkfs_opts_argv"
14234 msgstr ""
14235
14236 # type: verbatim
14237 #. type: verbatim
14238 #: ../src/guestfs-actions.pod:4354
14239 #, no-wrap
14240 msgid ""
14241 " int\n"
14242 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14243 "                         const char *fstype,\n"
14244 "                         const char *device,\n"
14245 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14246 "\n"
14247 msgstr ""
14248
14249 # type: textblock
14250 #. type: textblock
14251 #: ../src/guestfs-actions.pod:4360
14252 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14253 msgstr ""
14254
14255 # type: =head2
14256 #. type: =head2
14257 #: ../src/guestfs-actions.pod:4364
14258 msgid "guestfs_mkmountpoint"
14259 msgstr ""
14260
14261 # type: verbatim
14262 #. type: verbatim
14263 #: ../src/guestfs-actions.pod:4366
14264 #, no-wrap
14265 msgid ""
14266 " int\n"
14267 " guestfs_mkmountpoint (guestfs_h *g,\n"
14268 "                       const char *exemptpath);\n"
14269 "\n"
14270 msgstr ""
14271
14272 # type: textblock
14273 #. type: textblock
14274 #: ../src/guestfs-actions.pod:4370
14275 msgid ""
14276 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14277 "that can be used to create extra mountpoints before mounting the first "
14278 "filesystem."
14279 msgstr ""
14280
14281 # type: textblock
14282 #. type: textblock
14283 #: ../src/guestfs-actions.pod:4374 ../fish/guestfish-actions.pod:2944
14284 msgid ""
14285 "These calls are I<only> necessary in some very limited circumstances, mainly "
14286 "the case where you want to mount a mix of unrelated and/or read-only "
14287 "filesystems together."
14288 msgstr ""
14289
14290 # type: textblock
14291 #. type: textblock
14292 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:2948
14293 msgid ""
14294 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14295 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14296 "inside that.  You can unpack this as follows in guestfish:"
14297 msgstr ""
14298
14299 # type: verbatim
14300 #. type: verbatim
14301 #: ../src/guestfs-actions.pod:4383 ../fish/guestfish-actions.pod:2953
14302 #, no-wrap
14303 msgid ""
14304 " add-ro Fedora-11-i686-Live.iso\n"
14305 " run\n"
14306 " mkmountpoint /cd\n"
14307 " mkmountpoint /sqsh\n"
14308 " mkmountpoint /ext3fs\n"
14309 " mount /dev/sda /cd\n"
14310 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14311 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14312 "\n"
14313 msgstr ""
14314
14315 # type: textblock
14316 #. type: textblock
14317 #: ../src/guestfs-actions.pod:4392 ../fish/guestfish-actions.pod:2962
14318 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14319 msgstr ""
14320
14321 # type: textblock
14322 #. type: textblock
14323 #: ../src/guestfs-actions.pod:4394
14324 msgid ""
14325 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14326 "may get unexpected errors if you try to mix these calls.  It is safest to "
14327 "manually unmount filesystems and remove mountpoints after use."
14328 msgstr ""
14329
14330 # type: textblock
14331 #. type: textblock
14332 #: ../src/guestfs-actions.pod:4398
14333 msgid ""
14334 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14335 "first, so for this to work for manual mountpoints, you must ensure that the "
14336 "innermost mountpoints have the longest pathnames, as in the example code "
14337 "above."
14338 msgstr ""
14339
14340 # type: textblock
14341 #. type: textblock
14342 #: ../src/guestfs-actions.pod:4403 ../fish/guestfish-actions.pod:2973
14343 msgid ""
14344 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14345 msgstr ""
14346
14347 #. type: textblock
14348 #: ../src/guestfs-actions.pod:4405
14349 msgid ""
14350 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14351 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
14352 "can also trigger these issues."
14353 msgstr ""
14354
14355 # type: textblock
14356 #. type: textblock
14357 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4670
14358 #: ../src/guestfs-actions.pod:5580
14359 msgid "(Added in 1.0.62)"
14360 msgstr ""
14361
14362 # type: =head2
14363 #. type: =head2
14364 #: ../src/guestfs-actions.pod:4413
14365 msgid "guestfs_mknod"
14366 msgstr ""
14367
14368 # type: verbatim
14369 #. type: verbatim
14370 #: ../src/guestfs-actions.pod:4415
14371 #, no-wrap
14372 msgid ""
14373 " int\n"
14374 " guestfs_mknod (guestfs_h *g,\n"
14375 "                int mode,\n"
14376 "                int devmajor,\n"
14377 "                int devminor,\n"
14378 "                const char *path);\n"
14379 "\n"
14380 msgstr ""
14381
14382 # type: textblock
14383 #. type: textblock
14384 #: ../src/guestfs-actions.pod:4422 ../fish/guestfish-actions.pod:2983
14385 msgid ""
14386 "This call creates block or character special devices, or named pipes (FIFOs)."
14387 msgstr ""
14388
14389 # type: textblock
14390 #. type: textblock
14391 #: ../src/guestfs-actions.pod:4425 ../fish/guestfish-actions.pod:2986
14392 msgid ""
14393 "The C<mode> parameter should be the mode, using the standard constants.  "
14394 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14395 "used when creating block and character special devices."
14396 msgstr ""
14397
14398 # type: textblock
14399 #. type: textblock
14400 #: ../src/guestfs-actions.pod:4430
14401 msgid ""
14402 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14403 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14404 "regular file).  These constants are available in the standard Linux header "
14405 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14406 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14407 "the appropriate constant for you."
14408 msgstr ""
14409
14410 # type: =head2
14411 #. type: =head2
14412 #: ../src/guestfs-actions.pod:4444
14413 msgid "guestfs_mknod_b"
14414 msgstr ""
14415
14416 # type: verbatim
14417 #. type: verbatim
14418 #: ../src/guestfs-actions.pod:4446
14419 #, no-wrap
14420 msgid ""
14421 " int\n"
14422 " guestfs_mknod_b (guestfs_h *g,\n"
14423 "                  int mode,\n"
14424 "                  int devmajor,\n"
14425 "                  int devminor,\n"
14426 "                  const char *path);\n"
14427 "\n"
14428 msgstr ""
14429
14430 # type: textblock
14431 #. type: textblock
14432 #: ../src/guestfs-actions.pod:4453
14433 msgid ""
14434 "This call creates a block device node called C<path> with mode C<mode> and "
14435 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14436 "wrapper around C<guestfs_mknod>."
14437 msgstr ""
14438
14439 # type: =head2
14440 #. type: =head2
14441 #: ../src/guestfs-actions.pod:4463
14442 msgid "guestfs_mknod_c"
14443 msgstr ""
14444
14445 # type: verbatim
14446 #. type: verbatim
14447 #: ../src/guestfs-actions.pod:4465
14448 #, no-wrap
14449 msgid ""
14450 " int\n"
14451 " guestfs_mknod_c (guestfs_h *g,\n"
14452 "                  int mode,\n"
14453 "                  int devmajor,\n"
14454 "                  int devminor,\n"
14455 "                  const char *path);\n"
14456 "\n"
14457 msgstr ""
14458
14459 # type: textblock
14460 #. type: textblock
14461 #: ../src/guestfs-actions.pod:4472
14462 msgid ""
14463 "This call creates a char device node called C<path> with mode C<mode> and "
14464 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14465 "wrapper around C<guestfs_mknod>."
14466 msgstr ""
14467
14468 # type: =head2
14469 #. type: =head2
14470 #: ../src/guestfs-actions.pod:4482
14471 msgid "guestfs_mkswap"
14472 msgstr ""
14473
14474 # type: verbatim
14475 #. type: verbatim
14476 #: ../src/guestfs-actions.pod:4484
14477 #, no-wrap
14478 msgid ""
14479 " int\n"
14480 " guestfs_mkswap (guestfs_h *g,\n"
14481 "                 const char *device);\n"
14482 "\n"
14483 msgstr ""
14484
14485 # type: textblock
14486 #. type: textblock
14487 #: ../src/guestfs-actions.pod:4488 ../fish/guestfish-actions.pod:3025
14488 msgid "Create a swap partition on C<device>."
14489 msgstr ""
14490
14491 # type: =head2
14492 #. type: =head2
14493 #: ../src/guestfs-actions.pod:4494
14494 msgid "guestfs_mkswap_L"
14495 msgstr ""
14496
14497 # type: verbatim
14498 #. type: verbatim
14499 #: ../src/guestfs-actions.pod:4496
14500 #, no-wrap
14501 msgid ""
14502 " int\n"
14503 " guestfs_mkswap_L (guestfs_h *g,\n"
14504 "                   const char *label,\n"
14505 "                   const char *device);\n"
14506 "\n"
14507 msgstr ""
14508
14509 # type: textblock
14510 #. type: textblock
14511 #: ../src/guestfs-actions.pod:4501 ../fish/guestfish-actions.pod:3031
14512 msgid "Create a swap partition on C<device> with label C<label>."
14513 msgstr ""
14514
14515 # type: textblock
14516 #. type: textblock
14517 #: ../src/guestfs-actions.pod:4503 ../fish/guestfish-actions.pod:3033
14518 msgid ""
14519 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14520 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14521 "or swap tools."
14522 msgstr ""
14523
14524 # type: =head2
14525 #. type: =head2
14526 #: ../src/guestfs-actions.pod:4511
14527 msgid "guestfs_mkswap_U"
14528 msgstr ""
14529
14530 # type: verbatim
14531 #. type: verbatim
14532 #: ../src/guestfs-actions.pod:4513
14533 #, no-wrap
14534 msgid ""
14535 " int\n"
14536 " guestfs_mkswap_U (guestfs_h *g,\n"
14537 "                   const char *uuid,\n"
14538 "                   const char *device);\n"
14539 "\n"
14540 msgstr ""
14541
14542 # type: textblock
14543 #. type: textblock
14544 #: ../src/guestfs-actions.pod:4518 ../fish/guestfish-actions.pod:3041
14545 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14546 msgstr ""
14547
14548 # type: =head2
14549 #. type: =head2
14550 #: ../src/guestfs-actions.pod:4524
14551 msgid "guestfs_mkswap_file"
14552 msgstr ""
14553
14554 # type: verbatim
14555 #. type: verbatim
14556 #: ../src/guestfs-actions.pod:4526
14557 #, no-wrap
14558 msgid ""
14559 " int\n"
14560 " guestfs_mkswap_file (guestfs_h *g,\n"
14561 "                      const char *path);\n"
14562 "\n"
14563 msgstr ""
14564
14565 # type: textblock
14566 #. type: textblock
14567 #: ../src/guestfs-actions.pod:4530 ../fish/guestfish-actions.pod:3047
14568 msgid "Create a swap file."
14569 msgstr ""
14570
14571 # type: textblock
14572 #. type: textblock
14573 #: ../src/guestfs-actions.pod:4532
14574 msgid ""
14575 "This command just writes a swap file signature to an existing file.  To "
14576 "create the file itself, use something like C<guestfs_fallocate>."
14577 msgstr ""
14578
14579 # type: =head2
14580 #. type: =head2
14581 #: ../src/guestfs-actions.pod:4539
14582 msgid "guestfs_modprobe"
14583 msgstr ""
14584
14585 # type: verbatim
14586 #. type: verbatim
14587 #: ../src/guestfs-actions.pod:4541
14588 #, no-wrap
14589 msgid ""
14590 " int\n"
14591 " guestfs_modprobe (guestfs_h *g,\n"
14592 "                   const char *modulename);\n"
14593 "\n"
14594 msgstr ""
14595
14596 # type: textblock
14597 #. type: textblock
14598 #: ../src/guestfs-actions.pod:4545 ../fish/guestfish-actions.pod:3056
14599 msgid "This loads a kernel module in the appliance."
14600 msgstr ""
14601
14602 # type: textblock
14603 #. type: textblock
14604 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3058
14605 msgid ""
14606 "The kernel module must have been whitelisted when libguestfs was built (see "
14607 "C<appliance/kmod.whitelist.in> in the source)."
14608 msgstr ""
14609
14610 # type: =head2
14611 #. type: =head2
14612 #: ../src/guestfs-actions.pod:4554
14613 msgid "guestfs_mount"
14614 msgstr ""
14615
14616 # type: verbatim
14617 #. type: verbatim
14618 #: ../src/guestfs-actions.pod:4556
14619 #, no-wrap
14620 msgid ""
14621 " int\n"
14622 " guestfs_mount (guestfs_h *g,\n"
14623 "                const char *device,\n"
14624 "                const char *mountpoint);\n"
14625 "\n"
14626 msgstr ""
14627
14628 # type: textblock
14629 #. type: textblock
14630 #: ../src/guestfs-actions.pod:4561 ../fish/guestfish-actions.pod:3065
14631 msgid ""
14632 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14633 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14634 "those block devices contain partitions, they will have the usual names (eg. "
14635 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14636 msgstr ""
14637
14638 # type: textblock
14639 #. type: textblock
14640 #: ../src/guestfs-actions.pod:4567 ../fish/guestfish-actions.pod:3071
14641 msgid ""
14642 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14643 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14644 "mounted on directories which already exist."
14645 msgstr ""
14646
14647 # type: textblock
14648 #. type: textblock
14649 #: ../src/guestfs-actions.pod:4572 ../fish/guestfish-actions.pod:3076
14650 msgid ""
14651 "The mounted filesystem is writable, if we have sufficient permissions on the "
14652 "underlying device."
14653 msgstr ""
14654
14655 # type: textblock
14656 #. type: textblock
14657 #: ../src/guestfs-actions.pod:4575
14658 msgid ""
14659 "B<Important note:> When you use this call, the filesystem options C<sync> "
14660 "and C<noatime> are set implicitly.  This was originally done because we "
14661 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14662 "very large negative performance impact and negligible effect on "
14663 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14664 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14665 "(use an empty string for the first parameter if you don't want any options)."
14666 msgstr ""
14667
14668 # type: =head2
14669 #. type: =head2
14670 #: ../src/guestfs-actions.pod:4589
14671 msgid "guestfs_mount_loop"
14672 msgstr ""
14673
14674 # type: verbatim
14675 #. type: verbatim
14676 #: ../src/guestfs-actions.pod:4591
14677 #, no-wrap
14678 msgid ""
14679 " int\n"
14680 " guestfs_mount_loop (guestfs_h *g,\n"
14681 "                     const char *file,\n"
14682 "                     const char *mountpoint);\n"
14683 "\n"
14684 msgstr ""
14685
14686 # type: textblock
14687 #. type: textblock
14688 #: ../src/guestfs-actions.pod:4596 ../fish/guestfish-actions.pod:3093
14689 msgid ""
14690 "This command lets you mount C<file> (a filesystem image in a file) on a "
14691 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14692 "mountpoint>."
14693 msgstr ""
14694
14695 # type: =head2
14696 #. type: =head2
14697 #: ../src/guestfs-actions.pod:4604
14698 msgid "guestfs_mount_options"
14699 msgstr ""
14700
14701 # type: verbatim
14702 #. type: verbatim
14703 #: ../src/guestfs-actions.pod:4606
14704 #, no-wrap
14705 msgid ""
14706 " int\n"
14707 " guestfs_mount_options (guestfs_h *g,\n"
14708 "                        const char *options,\n"
14709 "                        const char *device,\n"
14710 "                        const char *mountpoint);\n"
14711 "\n"
14712 msgstr ""
14713
14714 # type: textblock
14715 #. type: textblock
14716 #: ../src/guestfs-actions.pod:4612
14717 msgid ""
14718 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14719 "the mount options as for the L<mount(8)> I<-o> flag."
14720 msgstr ""
14721
14722 # type: textblock
14723 #. type: textblock
14724 #: ../src/guestfs-actions.pod:4616 ../fish/guestfish-actions.pod:3105
14725 msgid ""
14726 "If the C<options> parameter is an empty string, then no options are passed "
14727 "(all options default to whatever the filesystem uses)."
14728 msgstr ""
14729
14730 # type: textblock
14731 #. type: textblock
14732 #: ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:4636
14733 #: ../src/guestfs-actions.pod:4653
14734 msgid "(Added in 1.0.10)"
14735 msgstr ""
14736
14737 # type: =head2
14738 #. type: =head2
14739 #: ../src/guestfs-actions.pod:4624
14740 msgid "guestfs_mount_ro"
14741 msgstr ""
14742
14743 # type: verbatim
14744 #. type: verbatim
14745 #: ../src/guestfs-actions.pod:4626
14746 #, no-wrap
14747 msgid ""
14748 " int\n"
14749 " guestfs_mount_ro (guestfs_h *g,\n"
14750 "                   const char *device,\n"
14751 "                   const char *mountpoint);\n"
14752 "\n"
14753 msgstr ""
14754
14755 # type: textblock
14756 #. type: textblock
14757 #: ../src/guestfs-actions.pod:4631
14758 msgid ""
14759 "This is the same as the C<guestfs_mount> command, but it mounts the "
14760 "filesystem with the read-only (I<-o ro>) flag."
14761 msgstr ""
14762
14763 # type: =head2
14764 #. type: =head2
14765 #: ../src/guestfs-actions.pod:4638
14766 msgid "guestfs_mount_vfs"
14767 msgstr ""
14768
14769 # type: verbatim
14770 #. type: verbatim
14771 #: ../src/guestfs-actions.pod:4640
14772 #, no-wrap
14773 msgid ""
14774 " int\n"
14775 " guestfs_mount_vfs (guestfs_h *g,\n"
14776 "                    const char *options,\n"
14777 "                    const char *vfstype,\n"
14778 "                    const char *device,\n"
14779 "                    const char *mountpoint);\n"
14780 "\n"
14781 msgstr ""
14782
14783 # type: textblock
14784 #. type: textblock
14785 #: ../src/guestfs-actions.pod:4647
14786 msgid ""
14787 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14788 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14789 "t> flags."
14790 msgstr ""
14791
14792 # type: =head2
14793 #. type: =head2
14794 #: ../src/guestfs-actions.pod:4655
14795 msgid "guestfs_mountpoints"
14796 msgstr ""
14797
14798 # type: verbatim
14799 #. type: verbatim
14800 #: ../src/guestfs-actions.pod:4657
14801 #, no-wrap
14802 msgid ""
14803 " char **\n"
14804 " guestfs_mountpoints (guestfs_h *g);\n"
14805 "\n"
14806 msgstr ""
14807
14808 # type: textblock
14809 #. type: textblock
14810 #: ../src/guestfs-actions.pod:4660
14811 msgid ""
14812 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14813 "devices.  This one returns a hash table (map) of device name to directory "
14814 "where the device is mounted."
14815 msgstr ""
14816
14817 # type: =head2
14818 #. type: =head2
14819 #: ../src/guestfs-actions.pod:4672
14820 msgid "guestfs_mounts"
14821 msgstr ""
14822
14823 # type: verbatim
14824 #. type: verbatim
14825 #: ../src/guestfs-actions.pod:4674
14826 #, no-wrap
14827 msgid ""
14828 " char **\n"
14829 " guestfs_mounts (guestfs_h *g);\n"
14830 "\n"
14831 msgstr ""
14832
14833 # type: textblock
14834 #. type: textblock
14835 #: ../src/guestfs-actions.pod:4677 ../fish/guestfish-actions.pod:3136
14836 msgid ""
14837 "This returns the list of currently mounted filesystems.  It returns the list "
14838 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14839 msgstr ""
14840
14841 # type: textblock
14842 #. type: textblock
14843 #: ../src/guestfs-actions.pod:4680 ../fish/guestfish-actions.pod:3139
14844 msgid "Some internal mounts are not shown."
14845 msgstr ""
14846
14847 # type: textblock
14848 #. type: textblock
14849 #: ../src/guestfs-actions.pod:4682
14850 msgid "See also: C<guestfs_mountpoints>"
14851 msgstr ""
14852
14853 # type: =head2
14854 #. type: =head2
14855 #: ../src/guestfs-actions.pod:4690
14856 msgid "guestfs_mv"
14857 msgstr ""
14858
14859 # type: verbatim
14860 #. type: verbatim
14861 #: ../src/guestfs-actions.pod:4692
14862 #, no-wrap
14863 msgid ""
14864 " int\n"
14865 " guestfs_mv (guestfs_h *g,\n"
14866 "             const char *src,\n"
14867 "             const char *dest);\n"
14868 "\n"
14869 msgstr ""
14870
14871 # type: textblock
14872 #. type: textblock
14873 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3147
14874 msgid ""
14875 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14876 "destination filename or destination directory."
14877 msgstr ""
14878
14879 # type: =head2
14880 #. type: =head2
14881 #: ../src/guestfs-actions.pod:4704
14882 msgid "guestfs_ntfs_3g_probe"
14883 msgstr ""
14884
14885 # type: verbatim
14886 #. type: verbatim
14887 #: ../src/guestfs-actions.pod:4706
14888 #, no-wrap
14889 msgid ""
14890 " int\n"
14891 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14892 "                        int rw,\n"
14893 "                        const char *device);\n"
14894 "\n"
14895 msgstr ""
14896
14897 # type: textblock
14898 #. type: textblock
14899 #: ../src/guestfs-actions.pod:4711 ../fish/guestfish-actions.pod:3154
14900 msgid ""
14901 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14902 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14903 "write, and some cannot be mounted at all)."
14904 msgstr ""
14905
14906 # type: textblock
14907 #. type: textblock
14908 #: ../src/guestfs-actions.pod:4715 ../fish/guestfish-actions.pod:3158
14909 msgid ""
14910 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14911 "can be mounted read-write.  Set it to false if you want to test if the "
14912 "volume can be mounted read-only."
14913 msgstr ""
14914
14915 # type: textblock
14916 #. type: textblock
14917 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3162
14918 msgid ""
14919 "The return value is an integer which C<0> if the operation would succeed, or "
14920 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14921 msgstr ""
14922
14923 # type: textblock
14924 #. type: textblock
14925 #: ../src/guestfs-actions.pod:4725
14926 msgid "(Added in 1.0.43)"
14927 msgstr ""
14928
14929 # type: =head2
14930 #. type: =head2
14931 #: ../src/guestfs-actions.pod:4727
14932 msgid "guestfs_ntfsresize"
14933 msgstr ""
14934
14935 # type: verbatim
14936 #. type: verbatim
14937 #: ../src/guestfs-actions.pod:4729
14938 #, no-wrap
14939 msgid ""
14940 " int\n"
14941 " guestfs_ntfsresize (guestfs_h *g,\n"
14942 "                     const char *device);\n"
14943 "\n"
14944 msgstr ""
14945
14946 # type: textblock
14947 #. type: textblock
14948 #: ../src/guestfs-actions.pod:4733 ../fish/guestfish-actions.pod:3170
14949 msgid ""
14950 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14951 "size of the underlying device.  See also L<ntfsresize(8)>."
14952 msgstr ""
14953
14954 # type: =head2
14955 #. type: =head2
14956 #: ../src/guestfs-actions.pod:4741
14957 msgid "guestfs_ntfsresize_size"
14958 msgstr ""
14959
14960 # type: verbatim
14961 #. type: verbatim
14962 #: ../src/guestfs-actions.pod:4743
14963 #, no-wrap
14964 msgid ""
14965 " int\n"
14966 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14967 "                          const char *device,\n"
14968 "                          int64_t size);\n"
14969 "\n"
14970 msgstr ""
14971
14972 # type: textblock
14973 #. type: textblock
14974 #: ../src/guestfs-actions.pod:4748
14975 msgid ""
14976 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14977 "to specify the new size (in bytes) explicitly."
14978 msgstr ""
14979
14980 # type: textblock
14981 #. type: textblock
14982 #: ../src/guestfs-actions.pod:4753 ../src/guestfs-actions.pod:5189
14983 #: ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5528
14984 #: ../src/guestfs-actions.pod:7067
14985 msgid "(Added in 1.3.14)"
14986 msgstr ""
14987
14988 # type: =head2
14989 #. type: =head2
14990 #: ../src/guestfs-actions.pod:4755
14991 msgid "guestfs_part_add"
14992 msgstr ""
14993
14994 # type: verbatim
14995 #. type: verbatim
14996 #: ../src/guestfs-actions.pod:4757
14997 #, no-wrap
14998 msgid ""
14999 " int\n"
15000 " guestfs_part_add (guestfs_h *g,\n"
15001 "                   const char *device,\n"
15002 "                   const char *prlogex,\n"
15003 "                   int64_t startsect,\n"
15004 "                   int64_t endsect);\n"
15005 "\n"
15006 msgstr ""
15007
15008 # type: textblock
15009 #. type: textblock
15010 #: ../src/guestfs-actions.pod:4764
15011 msgid ""
15012 "This command adds a partition to C<device>.  If there is no partition table "
15013 "on the device, call C<guestfs_part_init> first."
15014 msgstr ""
15015
15016 # type: textblock
15017 #. type: textblock
15018 #: ../src/guestfs-actions.pod:4767 ../fish/guestfish-actions.pod:3188
15019 msgid ""
15020 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15021 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15022 "C<logical>) and C<e> (or C<extended>) partition types."
15023 msgstr ""
15024
15025 # type: textblock
15026 #. type: textblock
15027 #: ../src/guestfs-actions.pod:4772 ../fish/guestfish-actions.pod:3193
15028 msgid ""
15029 "C<startsect> and C<endsect> are the start and end of the partition in "
15030 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15031 "from the end of the disk (C<-1> is the last sector)."
15032 msgstr ""
15033
15034 # type: textblock
15035 #. type: textblock
15036 #: ../src/guestfs-actions.pod:4776
15037 msgid ""
15038 "Creating a partition which covers the whole disk is not so easy.  Use "
15039 "C<guestfs_part_disk> to do that."
15040 msgstr ""
15041
15042 # type: textblock
15043 #. type: textblock
15044 #: ../src/guestfs-actions.pod:4781 ../src/guestfs-actions.pod:4819
15045 #: ../src/guestfs-actions.pod:4872 ../src/guestfs-actions.pod:4950
15046 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5007
15047 #: ../src/guestfs-actions.pod:5047
15048 msgid "(Added in 1.0.78)"
15049 msgstr ""
15050
15051 # type: =head2
15052 #. type: =head2
15053 #: ../src/guestfs-actions.pod:4783
15054 msgid "guestfs_part_del"
15055 msgstr ""
15056
15057 # type: verbatim
15058 #. type: verbatim
15059 #: ../src/guestfs-actions.pod:4785
15060 #, no-wrap
15061 msgid ""
15062 " int\n"
15063 " guestfs_part_del (guestfs_h *g,\n"
15064 "                   const char *device,\n"
15065 "                   int partnum);\n"
15066 "\n"
15067 msgstr ""
15068
15069 # type: textblock
15070 #. type: textblock
15071 #: ../src/guestfs-actions.pod:4790 ../fish/guestfish-actions.pod:3204
15072 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15073 msgstr ""
15074
15075 # type: textblock
15076 #. type: textblock
15077 #: ../src/guestfs-actions.pod:4792 ../fish/guestfish-actions.pod:3206
15078 msgid ""
15079 "Note that in the case of MBR partitioning, deleting an extended partition "
15080 "also deletes any logical partitions it contains."
15081 msgstr ""
15082
15083 # type: =head2
15084 #. type: =head2
15085 #: ../src/guestfs-actions.pod:4800
15086 msgid "guestfs_part_disk"
15087 msgstr ""
15088
15089 # type: verbatim
15090 #. type: verbatim
15091 #: ../src/guestfs-actions.pod:4802
15092 #, no-wrap
15093 msgid ""
15094 " int\n"
15095 " guestfs_part_disk (guestfs_h *g,\n"
15096 "                    const char *device,\n"
15097 "                    const char *parttype);\n"
15098 "\n"
15099 msgstr ""
15100
15101 # type: textblock
15102 #. type: textblock
15103 #: ../src/guestfs-actions.pod:4807
15104 msgid ""
15105 "This command is simply a combination of C<guestfs_part_init> followed by "
15106 "C<guestfs_part_add> to create a single primary partition covering the whole "
15107 "disk."
15108 msgstr ""
15109
15110 # type: textblock
15111 #. type: textblock
15112 #: ../src/guestfs-actions.pod:4811
15113 msgid ""
15114 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15115 "possible values are described in C<guestfs_part_init>."
15116 msgstr ""
15117
15118 # type: =head2
15119 #. type: =head2
15120 #: ../src/guestfs-actions.pod:4821
15121 msgid "guestfs_part_get_bootable"
15122 msgstr ""
15123
15124 # type: verbatim
15125 #. type: verbatim
15126 #: ../src/guestfs-actions.pod:4823
15127 #, no-wrap
15128 msgid ""
15129 " int\n"
15130 " guestfs_part_get_bootable (guestfs_h *g,\n"
15131 "                            const char *device,\n"
15132 "                            int partnum);\n"
15133 "\n"
15134 msgstr ""
15135
15136 # type: textblock
15137 #. type: textblock
15138 #: ../src/guestfs-actions.pod:4828 ../fish/guestfish-actions.pod:3228
15139 msgid ""
15140 "This command returns true if the partition C<partnum> on C<device> has the "
15141 "bootable flag set."
15142 msgstr ""
15143
15144 # type: textblock
15145 #. type: textblock
15146 #: ../src/guestfs-actions.pod:4831
15147 msgid "See also C<guestfs_part_set_bootable>."
15148 msgstr ""
15149
15150 # type: =head2
15151 #. type: =head2
15152 #: ../src/guestfs-actions.pod:4837
15153 msgid "guestfs_part_get_mbr_id"
15154 msgstr ""
15155
15156 # type: verbatim
15157 #. type: verbatim
15158 #: ../src/guestfs-actions.pod:4839
15159 #, no-wrap
15160 msgid ""
15161 " int\n"
15162 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15163 "                          const char *device,\n"
15164 "                          int partnum);\n"
15165 "\n"
15166 msgstr ""
15167
15168 # type: textblock
15169 #. type: textblock
15170 #: ../src/guestfs-actions.pod:4844 ../fish/guestfish-actions.pod:3237
15171 msgid ""
15172 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15173 "partition C<partnum>."
15174 msgstr ""
15175
15176 # type: textblock
15177 #. type: textblock
15178 #: ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:5023
15179 msgid ""
15180 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15181 "undefined results for other partition table types (see "
15182 "C<guestfs_part_get_parttype>)."
15183 msgstr ""
15184
15185 # type: =head2
15186 #. type: =head2
15187 #: ../src/guestfs-actions.pod:4855
15188 msgid "guestfs_part_get_parttype"
15189 msgstr ""
15190
15191 # type: verbatim
15192 #. type: verbatim
15193 #: ../src/guestfs-actions.pod:4857
15194 #, no-wrap
15195 msgid ""
15196 " char *\n"
15197 " guestfs_part_get_parttype (guestfs_h *g,\n"
15198 "                            const char *device);\n"
15199 "\n"
15200 msgstr ""
15201
15202 # type: textblock
15203 #. type: textblock
15204 #: ../src/guestfs-actions.pod:4861 ../fish/guestfish-actions.pod:3248
15205 msgid ""
15206 "This command examines the partition table on C<device> and returns the "
15207 "partition table type (format) being used."
15208 msgstr ""
15209
15210 # type: textblock
15211 #. type: textblock
15212 #: ../src/guestfs-actions.pod:4864
15213 msgid ""
15214 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15215 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15216 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15217 msgstr ""
15218
15219 # type: =head2
15220 #. type: =head2
15221 #: ../src/guestfs-actions.pod:4874
15222 msgid "guestfs_part_init"
15223 msgstr ""
15224
15225 # type: verbatim
15226 #. type: verbatim
15227 #: ../src/guestfs-actions.pod:4876
15228 #, no-wrap
15229 msgid ""
15230 " int\n"
15231 " guestfs_part_init (guestfs_h *g,\n"
15232 "                    const char *device,\n"
15233 "                    const char *parttype);\n"
15234 "\n"
15235 msgstr ""
15236
15237 # type: textblock
15238 #. type: textblock
15239 #: ../src/guestfs-actions.pod:4881 ../fish/guestfish-actions.pod:3260
15240 msgid ""
15241 "This creates an empty partition table on C<device> of one of the partition "
15242 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15243 "(for large disks)."
15244 msgstr ""
15245
15246 # type: textblock
15247 #. type: textblock
15248 #: ../src/guestfs-actions.pod:4885
15249 msgid ""
15250 "Initially there are no partitions.  Following this, you should call "
15251 "C<guestfs_part_add> for each partition required."
15252 msgstr ""
15253
15254 # type: textblock
15255 #. type: textblock
15256 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3267
15257 msgid "Possible values for C<parttype> are:"
15258 msgstr ""
15259
15260 # type: =item
15261 #. type: =item
15262 #: ../src/guestfs-actions.pod:4892 ../fish/guestfish-actions.pod:3271
15263 msgid "B<efi> | B<gpt>"
15264 msgstr ""
15265
15266 # type: textblock
15267 #. type: textblock
15268 #: ../src/guestfs-actions.pod:4894 ../fish/guestfish-actions.pod:3273
15269 msgid "Intel EFI / GPT partition table."
15270 msgstr ""
15271
15272 # type: textblock
15273 #. type: textblock
15274 #: ../src/guestfs-actions.pod:4896 ../fish/guestfish-actions.pod:3275
15275 msgid ""
15276 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15277 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15278 "the C<mbr> format."
15279 msgstr ""
15280
15281 # type: =item
15282 #. type: =item
15283 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3279
15284 msgid "B<mbr> | B<msdos>"
15285 msgstr ""
15286
15287 # type: textblock
15288 #. type: textblock
15289 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3281
15290 msgid ""
15291 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15292 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15293 "TB.  For large disks we recommend using C<gpt>."
15294 msgstr ""
15295
15296 # type: textblock
15297 #. type: textblock
15298 #: ../src/guestfs-actions.pod:4909 ../fish/guestfish-actions.pod:3288
15299 msgid ""
15300 "Other partition table types that may work but are not supported include:"
15301 msgstr ""
15302
15303 # type: =item
15304 #. type: =item
15305 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3293
15306 msgid "B<aix>"
15307 msgstr ""
15308
15309 # type: textblock
15310 #. type: textblock
15311 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3295
15312 msgid "AIX disk labels."
15313 msgstr ""
15314
15315 # type: =item
15316 #. type: =item
15317 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3297
15318 msgid "B<amiga> | B<rdb>"
15319 msgstr ""
15320
15321 # type: textblock
15322 #. type: textblock
15323 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3299
15324 msgid "Amiga \"Rigid Disk Block\" format."
15325 msgstr ""
15326
15327 # type: =item
15328 #. type: =item
15329 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3301
15330 msgid "B<bsd>"
15331 msgstr ""
15332
15333 # type: textblock
15334 #. type: textblock
15335 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3303
15336 msgid "BSD disk labels."
15337 msgstr ""
15338
15339 # type: =item
15340 #. type: =item
15341 #: ../src/guestfs-actions.pod:4926 ../fish/guestfish-actions.pod:3305
15342 msgid "B<dasd>"
15343 msgstr ""
15344
15345 # type: textblock
15346 #. type: textblock
15347 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3307
15348 msgid "DASD, used on IBM mainframes."
15349 msgstr ""
15350
15351 # type: =item
15352 #. type: =item
15353 #: ../src/guestfs-actions.pod:4930 ../fish/guestfish-actions.pod:3309
15354 msgid "B<dvh>"
15355 msgstr ""
15356
15357 # type: textblock
15358 #. type: textblock
15359 #: ../src/guestfs-actions.pod:4932 ../fish/guestfish-actions.pod:3311
15360 msgid "MIPS/SGI volumes."
15361 msgstr ""
15362
15363 # type: =item
15364 #. type: =item
15365 #: ../src/guestfs-actions.pod:4934 ../fish/guestfish-actions.pod:3313
15366 msgid "B<mac>"
15367 msgstr ""
15368
15369 # type: textblock
15370 #. type: textblock
15371 #: ../src/guestfs-actions.pod:4936 ../fish/guestfish-actions.pod:3315
15372 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15373 msgstr ""
15374
15375 # type: =item
15376 #. type: =item
15377 #: ../src/guestfs-actions.pod:4938 ../fish/guestfish-actions.pod:3317
15378 msgid "B<pc98>"
15379 msgstr ""
15380
15381 # type: textblock
15382 #. type: textblock
15383 #: ../src/guestfs-actions.pod:4940 ../fish/guestfish-actions.pod:3319
15384 msgid "NEC PC-98 format, common in Japan apparently."
15385 msgstr ""
15386
15387 # type: =item
15388 #. type: =item
15389 #: ../src/guestfs-actions.pod:4942 ../fish/guestfish-actions.pod:3321
15390 msgid "B<sun>"
15391 msgstr ""
15392
15393 # type: textblock
15394 #. type: textblock
15395 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3323
15396 msgid "Sun disk labels."
15397 msgstr ""
15398
15399 # type: =head2
15400 #. type: =head2
15401 #: ../src/guestfs-actions.pod:4952
15402 msgid "guestfs_part_list"
15403 msgstr ""
15404
15405 # type: verbatim
15406 #. type: verbatim
15407 #: ../src/guestfs-actions.pod:4954
15408 #, no-wrap
15409 msgid ""
15410 " struct guestfs_partition_list *\n"
15411 " guestfs_part_list (guestfs_h *g,\n"
15412 "                    const char *device);\n"
15413 "\n"
15414 msgstr ""
15415
15416 # type: textblock
15417 #. type: textblock
15418 #: ../src/guestfs-actions.pod:4958 ../fish/guestfish-actions.pod:3331
15419 msgid ""
15420 "This command parses the partition table on C<device> and returns the list of "
15421 "partitions found."
15422 msgstr ""
15423
15424 # type: textblock
15425 #. type: textblock
15426 #: ../src/guestfs-actions.pod:4961 ../fish/guestfish-actions.pod:3334
15427 msgid "The fields in the returned structure are:"
15428 msgstr ""
15429
15430 # type: =item
15431 #. type: =item
15432 #: ../src/guestfs-actions.pod:4965 ../fish/guestfish-actions.pod:3338
15433 msgid "B<part_num>"
15434 msgstr ""
15435
15436 # type: textblock
15437 #. type: textblock
15438 #: ../src/guestfs-actions.pod:4967 ../fish/guestfish-actions.pod:3340
15439 msgid "Partition number, counting from 1."
15440 msgstr ""
15441
15442 # type: =item
15443 #. type: =item
15444 #: ../src/guestfs-actions.pod:4969 ../fish/guestfish-actions.pod:3342
15445 msgid "B<part_start>"
15446 msgstr ""
15447
15448 # type: textblock
15449 #. type: textblock
15450 #: ../src/guestfs-actions.pod:4971
15451 msgid ""
15452 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15453 "the device's sector size, see C<guestfs_blockdev_getss>."
15454 msgstr ""
15455
15456 # type: =item
15457 #. type: =item
15458 #: ../src/guestfs-actions.pod:4974 ../fish/guestfish-actions.pod:3347
15459 msgid "B<part_end>"
15460 msgstr ""
15461
15462 # type: textblock
15463 #. type: textblock
15464 #: ../src/guestfs-actions.pod:4976 ../fish/guestfish-actions.pod:3349
15465 msgid "End of the partition in bytes."
15466 msgstr ""
15467
15468 # type: =item
15469 #. type: =item
15470 #: ../src/guestfs-actions.pod:4978 ../fish/guestfish-actions.pod:3351
15471 msgid "B<part_size>"
15472 msgstr ""
15473
15474 # type: textblock
15475 #. type: textblock
15476 #: ../src/guestfs-actions.pod:4980 ../fish/guestfish-actions.pod:3353
15477 msgid "Size of the partition in bytes."
15478 msgstr ""
15479
15480 # type: textblock
15481 #. type: textblock
15482 #: ../src/guestfs-actions.pod:4984
15483 msgid ""
15484 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
15485 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
15486 "use>."
15487 msgstr ""
15488
15489 # type: =head2
15490 #. type: =head2
15491 #: ../src/guestfs-actions.pod:4990
15492 msgid "guestfs_part_set_bootable"
15493 msgstr ""
15494
15495 # type: verbatim
15496 #. type: verbatim
15497 #: ../src/guestfs-actions.pod:4992
15498 #, no-wrap
15499 msgid ""
15500 " int\n"
15501 " guestfs_part_set_bootable (guestfs_h *g,\n"
15502 "                            const char *device,\n"
15503 "                            int partnum,\n"
15504 "                            int bootable);\n"
15505 "\n"
15506 msgstr ""
15507
15508 # type: textblock
15509 #. type: textblock
15510 #: ../src/guestfs-actions.pod:4998 ../fish/guestfish-actions.pod:3361
15511 msgid ""
15512 "This sets the bootable flag on partition numbered C<partnum> on device "
15513 "C<device>.  Note that partitions are numbered from 1."
15514 msgstr ""
15515
15516 # type: textblock
15517 #. type: textblock
15518 #: ../src/guestfs-actions.pod:5001 ../fish/guestfish-actions.pod:3364
15519 msgid ""
15520 "The bootable flag is used by some operating systems (notably Windows) to "
15521 "determine which partition to boot from.  It is by no means universally "
15522 "recognized."
15523 msgstr ""
15524
15525 # type: =head2
15526 #. type: =head2
15527 #: ../src/guestfs-actions.pod:5009
15528 msgid "guestfs_part_set_mbr_id"
15529 msgstr ""
15530
15531 # type: verbatim
15532 #. type: verbatim
15533 #: ../src/guestfs-actions.pod:5011
15534 #, no-wrap
15535 msgid ""
15536 " int\n"
15537 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
15538 "                          const char *device,\n"
15539 "                          int partnum,\n"
15540 "                          int idbyte);\n"
15541 "\n"
15542 msgstr ""
15543
15544 # type: textblock
15545 #. type: textblock
15546 #: ../src/guestfs-actions.pod:5017 ../fish/guestfish-actions.pod:3372
15547 msgid ""
15548 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15549 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15550 "documentation are in fact hexadecimal numbers, but usually documented "
15551 "without any leading \"0x\" which might be confusing."
15552 msgstr ""
15553
15554 # type: =head2
15555 #. type: =head2
15556 #: ../src/guestfs-actions.pod:5031
15557 msgid "guestfs_part_set_name"
15558 msgstr ""
15559
15560 # type: verbatim
15561 #. type: verbatim
15562 #: ../src/guestfs-actions.pod:5033
15563 #, no-wrap
15564 msgid ""
15565 " int\n"
15566 " guestfs_part_set_name (guestfs_h *g,\n"
15567 "                        const char *device,\n"
15568 "                        int partnum,\n"
15569 "                        const char *name);\n"
15570 "\n"
15571 msgstr ""
15572
15573 # type: textblock
15574 #. type: textblock
15575 #: ../src/guestfs-actions.pod:5039 ../fish/guestfish-actions.pod:3386
15576 msgid ""
15577 "This sets the partition name on partition numbered C<partnum> on device "
15578 "C<device>.  Note that partitions are numbered from 1."
15579 msgstr ""
15580
15581 # type: textblock
15582 #. type: textblock
15583 #: ../src/guestfs-actions.pod:5042 ../fish/guestfish-actions.pod:3389
15584 msgid ""
15585 "The partition name can only be set on certain types of partition table.  "
15586 "This works on C<gpt> but not on C<mbr> partitions."
15587 msgstr ""
15588
15589 # type: =head2
15590 #. type: =head2
15591 #: ../src/guestfs-actions.pod:5049
15592 msgid "guestfs_part_to_dev"
15593 msgstr ""
15594
15595 # type: verbatim
15596 #. type: verbatim
15597 #: ../src/guestfs-actions.pod:5051
15598 #, no-wrap
15599 msgid ""
15600 " char *\n"
15601 " guestfs_part_to_dev (guestfs_h *g,\n"
15602 "                      const char *partition);\n"
15603 "\n"
15604 msgstr ""
15605
15606 # type: textblock
15607 #. type: textblock
15608 #: ../src/guestfs-actions.pod:5055 ../fish/guestfish-actions.pod:3396
15609 msgid ""
15610 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15611 "partition number, returning the device name (eg. \"/dev/sdb\")."
15612 msgstr ""
15613
15614 # type: textblock
15615 #. type: textblock
15616 #: ../src/guestfs-actions.pod:5059
15617 msgid ""
15618 "The named partition must exist, for example as a string returned from "
15619 "C<guestfs_list_partitions>."
15620 msgstr ""
15621
15622 # type: =head2
15623 #. type: =head2
15624 #: ../src/guestfs-actions.pod:5067
15625 msgid "guestfs_ping_daemon"
15626 msgstr ""
15627
15628 # type: verbatim
15629 #. type: verbatim
15630 #: ../src/guestfs-actions.pod:5069
15631 #, no-wrap
15632 msgid ""
15633 " int\n"
15634 " guestfs_ping_daemon (guestfs_h *g);\n"
15635 "\n"
15636 msgstr ""
15637
15638 # type: textblock
15639 #. type: textblock
15640 #: ../src/guestfs-actions.pod:5072 ../fish/guestfish-actions.pod:3407
15641 msgid ""
15642 "This is a test probe into the guestfs daemon running inside the qemu "
15643 "subprocess.  Calling this function checks that the daemon responds to the "
15644 "ping message, without affecting the daemon or attached block device(s) in "
15645 "any other way."
15646 msgstr ""
15647
15648 # type: =head2
15649 #. type: =head2
15650 #: ../src/guestfs-actions.pod:5081
15651 msgid "guestfs_pread"
15652 msgstr ""
15653
15654 # type: verbatim
15655 #. type: verbatim
15656 #: ../src/guestfs-actions.pod:5083
15657 #, no-wrap
15658 msgid ""
15659 " char *\n"
15660 " guestfs_pread (guestfs_h *g,\n"
15661 "                const char *path,\n"
15662 "                int count,\n"
15663 "                int64_t offset,\n"
15664 "                size_t *size_r);\n"
15665 "\n"
15666 msgstr ""
15667
15668 # type: textblock
15669 #. type: textblock
15670 #: ../src/guestfs-actions.pod:5090 ../fish/guestfish-actions.pod:3416
15671 msgid ""
15672 "This command lets you read part of a file.  It reads C<count> bytes of the "
15673 "file, starting at C<offset>, from file C<path>."
15674 msgstr ""
15675
15676 # type: textblock
15677 #. type: textblock
15678 #: ../src/guestfs-actions.pod:5093 ../src/guestfs-actions.pod:5119
15679 #: ../fish/guestfish-actions.pod:3419 ../fish/guestfish-actions.pod:3434
15680 msgid ""
15681 "This may read fewer bytes than requested.  For further details see the "
15682 "L<pread(2)> system call."
15683 msgstr ""
15684
15685 # type: textblock
15686 #. type: textblock
15687 #: ../src/guestfs-actions.pod:5096
15688 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15689 msgstr ""
15690
15691 # type: =head2
15692 #. type: =head2
15693 #: ../src/guestfs-actions.pod:5107
15694 msgid "guestfs_pread_device"
15695 msgstr ""
15696
15697 # type: verbatim
15698 #. type: verbatim
15699 #: ../src/guestfs-actions.pod:5109
15700 #, no-wrap
15701 msgid ""
15702 " char *\n"
15703 " guestfs_pread_device (guestfs_h *g,\n"
15704 "                       const char *device,\n"
15705 "                       int count,\n"
15706 "                       int64_t offset,\n"
15707 "                       size_t *size_r);\n"
15708 "\n"
15709 msgstr ""
15710
15711 # type: textblock
15712 #. type: textblock
15713 #: ../src/guestfs-actions.pod:5116 ../fish/guestfish-actions.pod:3431
15714 msgid ""
15715 "This command lets you read part of a file.  It reads C<count> bytes of "
15716 "C<device>, starting at C<offset>."
15717 msgstr ""
15718
15719 # type: textblock
15720 #. type: textblock
15721 #: ../src/guestfs-actions.pod:5122
15722 msgid "See also C<guestfs_pread>."
15723 msgstr ""
15724
15725 # type: textblock
15726 #. type: textblock
15727 #: ../src/guestfs-actions.pod:5131
15728 msgid "(Added in 1.5.21)"
15729 msgstr ""
15730
15731 # type: =head2
15732 #. type: =head2
15733 #: ../src/guestfs-actions.pod:5133
15734 msgid "guestfs_pvcreate"
15735 msgstr ""
15736
15737 # type: verbatim
15738 #. type: verbatim
15739 #: ../src/guestfs-actions.pod:5135
15740 #, no-wrap
15741 msgid ""
15742 " int\n"
15743 " guestfs_pvcreate (guestfs_h *g,\n"
15744 "                   const char *device);\n"
15745 "\n"
15746 msgstr ""
15747
15748 # type: textblock
15749 #. type: textblock
15750 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3446
15751 msgid ""
15752 "This creates an LVM physical volume on the named C<device>, where C<device> "
15753 "should usually be a partition name such as C</dev/sda1>."
15754 msgstr ""
15755
15756 # type: =head2
15757 #. type: =head2
15758 #: ../src/guestfs-actions.pod:5147
15759 msgid "guestfs_pvremove"
15760 msgstr ""
15761
15762 # type: verbatim
15763 #. type: verbatim
15764 #: ../src/guestfs-actions.pod:5149
15765 #, no-wrap
15766 msgid ""
15767 " int\n"
15768 " guestfs_pvremove (guestfs_h *g,\n"
15769 "                   const char *device);\n"
15770 "\n"
15771 msgstr ""
15772
15773 # type: textblock
15774 #. type: textblock
15775 #: ../src/guestfs-actions.pod:5153 ../fish/guestfish-actions.pod:3454
15776 msgid ""
15777 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15778 "it."
15779 msgstr ""
15780
15781 # type: textblock
15782 #. type: textblock
15783 #: ../src/guestfs-actions.pod:5156 ../fish/guestfish-actions.pod:3457
15784 msgid ""
15785 "The implementation uses the C<pvremove> command which refuses to wipe "
15786 "physical volumes that contain any volume groups, so you have to remove those "
15787 "first."
15788 msgstr ""
15789
15790 # type: =head2
15791 #. type: =head2
15792 #: ../src/guestfs-actions.pod:5164
15793 msgid "guestfs_pvresize"
15794 msgstr ""
15795
15796 # type: verbatim
15797 #. type: verbatim
15798 #: ../src/guestfs-actions.pod:5166
15799 #, no-wrap
15800 msgid ""
15801 " int\n"
15802 " guestfs_pvresize (guestfs_h *g,\n"
15803 "                   const char *device);\n"
15804 "\n"
15805 msgstr ""
15806
15807 # type: textblock
15808 #. type: textblock
15809 #: ../src/guestfs-actions.pod:5170 ../fish/guestfish-actions.pod:3465
15810 msgid ""
15811 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15812 "the new size of the underlying device."
15813 msgstr ""
15814
15815 # type: =head2
15816 #. type: =head2
15817 #: ../src/guestfs-actions.pod:5177
15818 msgid "guestfs_pvresize_size"
15819 msgstr ""
15820
15821 # type: verbatim
15822 #. type: verbatim
15823 #: ../src/guestfs-actions.pod:5179
15824 #, no-wrap
15825 msgid ""
15826 " int\n"
15827 " guestfs_pvresize_size (guestfs_h *g,\n"
15828 "                        const char *device,\n"
15829 "                        int64_t size);\n"
15830 "\n"
15831 msgstr ""
15832
15833 # type: textblock
15834 #. type: textblock
15835 #: ../src/guestfs-actions.pod:5184
15836 msgid ""
15837 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15838 "specify the new size (in bytes) explicitly."
15839 msgstr ""
15840
15841 # type: =head2
15842 #. type: =head2
15843 #: ../src/guestfs-actions.pod:5191
15844 msgid "guestfs_pvs"
15845 msgstr ""
15846
15847 # type: verbatim
15848 #. type: verbatim
15849 #: ../src/guestfs-actions.pod:5193
15850 #, no-wrap
15851 msgid ""
15852 " char **\n"
15853 " guestfs_pvs (guestfs_h *g);\n"
15854 "\n"
15855 msgstr ""
15856
15857 # type: textblock
15858 #. type: textblock
15859 #: ../src/guestfs-actions.pod:5196 ../fish/guestfish-actions.pod:3479
15860 msgid ""
15861 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15862 "(8)> command."
15863 msgstr ""
15864
15865 # type: textblock
15866 #. type: textblock
15867 #: ../src/guestfs-actions.pod:5199 ../fish/guestfish-actions.pod:3482
15868 msgid ""
15869 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15870 "sda2>)."
15871 msgstr ""
15872
15873 # type: textblock
15874 #. type: textblock
15875 #: ../src/guestfs-actions.pod:5202
15876 msgid "See also C<guestfs_pvs_full>."
15877 msgstr ""
15878
15879 # type: =head2
15880 #. type: =head2
15881 #: ../src/guestfs-actions.pod:5210
15882 msgid "guestfs_pvs_full"
15883 msgstr ""
15884
15885 # type: verbatim
15886 #. type: verbatim
15887 #: ../src/guestfs-actions.pod:5212
15888 #, no-wrap
15889 msgid ""
15890 " struct guestfs_lvm_pv_list *\n"
15891 " guestfs_pvs_full (guestfs_h *g);\n"
15892 "\n"
15893 msgstr ""
15894
15895 # type: textblock
15896 #. type: textblock
15897 #: ../src/guestfs-actions.pod:5215 ../fish/guestfish-actions.pod:3491
15898 msgid ""
15899 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15900 "(8)> command.  The \"full\" version includes all fields."
15901 msgstr ""
15902
15903 # type: textblock
15904 #. type: textblock
15905 #: ../src/guestfs-actions.pod:5218
15906 msgid ""
15907 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15908 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15909 msgstr ""
15910
15911 # type: =head2
15912 #. type: =head2
15913 #: ../src/guestfs-actions.pod:5224
15914 msgid "guestfs_pvuuid"
15915 msgstr ""
15916
15917 # type: verbatim
15918 #. type: verbatim
15919 #: ../src/guestfs-actions.pod:5226
15920 #, no-wrap
15921 msgid ""
15922 " char *\n"
15923 " guestfs_pvuuid (guestfs_h *g,\n"
15924 "                 const char *device);\n"
15925 "\n"
15926 msgstr ""
15927
15928 # type: textblock
15929 #. type: textblock
15930 #: ../src/guestfs-actions.pod:5230 ../fish/guestfish-actions.pod:3498
15931 msgid "This command returns the UUID of the LVM PV C<device>."
15932 msgstr ""
15933
15934 # type: =head2
15935 #. type: =head2
15936 #: ../src/guestfs-actions.pod:5237
15937 msgid "guestfs_pwrite"
15938 msgstr ""
15939
15940 # type: verbatim
15941 #. type: verbatim
15942 #: ../src/guestfs-actions.pod:5239
15943 #, no-wrap
15944 msgid ""
15945 " int\n"
15946 " guestfs_pwrite (guestfs_h *g,\n"
15947 "                 const char *path,\n"
15948 "                 const char *content,\n"
15949 "                 size_t content_size,\n"
15950 "                 int64_t offset);\n"
15951 "\n"
15952 msgstr ""
15953
15954 # type: textblock
15955 #. type: textblock
15956 #: ../src/guestfs-actions.pod:5246 ../fish/guestfish-actions.pod:3504
15957 msgid ""
15958 "This command writes to part of a file.  It writes the data buffer C<content> "
15959 "to the file C<path> starting at offset C<offset>."
15960 msgstr ""
15961
15962 # type: textblock
15963 #. type: textblock
15964 #: ../src/guestfs-actions.pod:5249 ../fish/guestfish-actions.pod:3507
15965 msgid ""
15966 "This command implements the L<pwrite(2)> system call, and like that system "
15967 "call it may not write the full data requested.  The return value is the "
15968 "number of bytes that were actually written to the file.  This could even be "
15969 "0, although short writes are unlikely for regular files in ordinary "
15970 "circumstances."
15971 msgstr ""
15972
15973 # type: textblock
15974 #. type: textblock
15975 #: ../src/guestfs-actions.pod:5255
15976 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15977 msgstr ""
15978
15979 # type: =head2
15980 #. type: =head2
15981 #: ../src/guestfs-actions.pod:5264
15982 msgid "guestfs_pwrite_device"
15983 msgstr ""
15984
15985 # type: verbatim
15986 #. type: verbatim
15987 #: ../src/guestfs-actions.pod:5266
15988 #, no-wrap
15989 msgid ""
15990 " int\n"
15991 " guestfs_pwrite_device (guestfs_h *g,\n"
15992 "                        const char *device,\n"
15993 "                        const char *content,\n"
15994 "                        size_t content_size,\n"
15995 "                        int64_t offset);\n"
15996 "\n"
15997 msgstr ""
15998
15999 # type: textblock
16000 #. type: textblock
16001 #: ../src/guestfs-actions.pod:5273 ../fish/guestfish-actions.pod:3522
16002 msgid ""
16003 "This command writes to part of a device.  It writes the data buffer "
16004 "C<content> to C<device> starting at offset C<offset>."
16005 msgstr ""
16006
16007 # type: textblock
16008 #. type: textblock
16009 #: ../src/guestfs-actions.pod:5276 ../fish/guestfish-actions.pod:3525
16010 msgid ""
16011 "This command implements the L<pwrite(2)> system call, and like that system "
16012 "call it may not write the full data requested (although short writes to disk "
16013 "devices and partitions are probably impossible with standard Linux kernels)."
16014 msgstr ""
16015
16016 # type: textblock
16017 #. type: textblock
16018 #: ../src/guestfs-actions.pod:5281
16019 msgid "See also C<guestfs_pwrite>."
16020 msgstr ""
16021
16022 # type: textblock
16023 #. type: textblock
16024 #: ../src/guestfs-actions.pod:5288
16025 msgid "(Added in 1.5.20)"
16026 msgstr ""
16027
16028 # type: =head2
16029 #. type: =head2
16030 #: ../src/guestfs-actions.pod:5290
16031 msgid "guestfs_read_file"
16032 msgstr ""
16033
16034 # type: verbatim
16035 #. type: verbatim
16036 #: ../src/guestfs-actions.pod:5292
16037 #, no-wrap
16038 msgid ""
16039 " char *\n"
16040 " guestfs_read_file (guestfs_h *g,\n"
16041 "                    const char *path,\n"
16042 "                    size_t *size_r);\n"
16043 "\n"
16044 msgstr ""
16045
16046 # type: textblock
16047 #. type: textblock
16048 #: ../src/guestfs-actions.pod:5297 ../fish/guestfish-actions.pod:3539
16049 msgid "This calls returns the contents of the file C<path> as a buffer."
16050 msgstr ""
16051
16052 # type: textblock
16053 #. type: textblock
16054 #: ../src/guestfs-actions.pod:5300
16055 msgid ""
16056 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16057 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16058 "function is limited in the total size of file that can be handled."
16059 msgstr ""
16060
16061 # type: textblock
16062 #. type: textblock
16063 #: ../src/guestfs-actions.pod:5312
16064 msgid "(Added in 1.0.63)"
16065 msgstr ""
16066
16067 # type: =head2
16068 #. type: =head2
16069 #: ../src/guestfs-actions.pod:5314
16070 msgid "guestfs_read_lines"
16071 msgstr ""
16072
16073 # type: verbatim
16074 #. type: verbatim
16075 #: ../src/guestfs-actions.pod:5316
16076 #, no-wrap
16077 msgid ""
16078 " char **\n"
16079 " guestfs_read_lines (guestfs_h *g,\n"
16080 "                     const char *path);\n"
16081 "\n"
16082 msgstr ""
16083
16084 # type: textblock
16085 #. type: textblock
16086 #: ../src/guestfs-actions.pod:5322 ../fish/guestfish-actions.pod:3556
16087 msgid ""
16088 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16089 "C<CRLF> character sequences are I<not> returned."
16090 msgstr ""
16091
16092 # type: textblock
16093 #. type: textblock
16094 #: ../src/guestfs-actions.pod:5325
16095 msgid ""
16096 "Note that this function cannot correctly handle binary files (specifically, "
16097 "files containing C<\\0> character which is treated as end of line).  For "
16098 "those you need to use the C<guestfs_read_file> function which has a more "
16099 "complex interface."
16100 msgstr ""
16101
16102 # type: =head2
16103 #. type: =head2
16104 #: ../src/guestfs-actions.pod:5336
16105 msgid "guestfs_readdir"
16106 msgstr ""
16107
16108 # type: verbatim
16109 #. type: verbatim
16110 #: ../src/guestfs-actions.pod:5338
16111 #, no-wrap
16112 msgid ""
16113 " struct guestfs_dirent_list *\n"
16114 " guestfs_readdir (guestfs_h *g,\n"
16115 "                  const char *dir);\n"
16116 "\n"
16117 msgstr ""
16118
16119 # type: textblock
16120 #. type: textblock
16121 #: ../src/guestfs-actions.pod:5342 ../fish/guestfish-actions.pod:3568
16122 msgid "This returns the list of directory entries in directory C<dir>."
16123 msgstr ""
16124
16125 # type: textblock
16126 #. type: textblock
16127 #: ../src/guestfs-actions.pod:5344 ../fish/guestfish-actions.pod:3570
16128 msgid ""
16129 "All entries in the directory are returned, including C<.> and C<..>.  The "
16130 "entries are I<not> sorted, but returned in the same order as the underlying "
16131 "filesystem."
16132 msgstr ""
16133
16134 # type: textblock
16135 #. type: textblock
16136 #: ../src/guestfs-actions.pod:5348 ../fish/guestfish-actions.pod:3574
16137 msgid ""
16138 "Also this call returns basic file type information about each file.  The "
16139 "C<ftyp> field will contain one of the following characters:"
16140 msgstr ""
16141
16142 # type: =item
16143 #. type: =item
16144 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:3579
16145 msgid "'b'"
16146 msgstr ""
16147
16148 # type: textblock
16149 #. type: textblock
16150 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:3581
16151 msgid "Block special"
16152 msgstr ""
16153
16154 # type: =item
16155 #. type: =item
16156 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3583
16157 msgid "'c'"
16158 msgstr ""
16159
16160 # type: textblock
16161 #. type: textblock
16162 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:3585
16163 msgid "Char special"
16164 msgstr ""
16165
16166 # type: =item
16167 #. type: =item
16168 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3587
16169 msgid "'d'"
16170 msgstr ""
16171
16172 # type: textblock
16173 #. type: textblock
16174 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:3589
16175 msgid "Directory"
16176 msgstr ""
16177
16178 # type: =item
16179 #. type: =item
16180 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3591
16181 msgid "'f'"
16182 msgstr ""
16183
16184 # type: textblock
16185 #. type: textblock
16186 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3593
16187 msgid "FIFO (named pipe)"
16188 msgstr ""
16189
16190 # type: =item
16191 #. type: =item
16192 #: ../src/guestfs-actions.pod:5369 ../fish/guestfish-actions.pod:3595
16193 msgid "'l'"
16194 msgstr ""
16195
16196 # type: textblock
16197 #. type: textblock
16198 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3597
16199 msgid "Symbolic link"
16200 msgstr ""
16201
16202 # type: =item
16203 #. type: =item
16204 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3599
16205 msgid "'r'"
16206 msgstr ""
16207
16208 # type: textblock
16209 #. type: textblock
16210 #: ../src/guestfs-actions.pod:5375 ../fish/guestfish-actions.pod:3601
16211 msgid "Regular file"
16212 msgstr ""
16213
16214 # type: =item
16215 #. type: =item
16216 #: ../src/guestfs-actions.pod:5377 ../fish/guestfish-actions.pod:3603
16217 msgid "'s'"
16218 msgstr ""
16219
16220 # type: textblock
16221 #. type: textblock
16222 #: ../src/guestfs-actions.pod:5379 ../fish/guestfish-actions.pod:3605
16223 msgid "Socket"
16224 msgstr ""
16225
16226 # type: =item
16227 #. type: =item
16228 #: ../src/guestfs-actions.pod:5381 ../fish/guestfish-actions.pod:3607
16229 msgid "'u'"
16230 msgstr ""
16231
16232 # type: textblock
16233 #. type: textblock
16234 #: ../src/guestfs-actions.pod:5383 ../fish/guestfish-actions.pod:3609
16235 msgid "Unknown file type"
16236 msgstr ""
16237
16238 # type: =item
16239 #. type: =item
16240 #: ../src/guestfs-actions.pod:5385 ../fish/guestfish-actions.pod:3611
16241 msgid "'?'"
16242 msgstr ""
16243
16244 # type: textblock
16245 #. type: textblock
16246 #: ../src/guestfs-actions.pod:5387 ../fish/guestfish-actions.pod:3613
16247 msgid ""
16248 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16249 msgstr ""
16250
16251 # type: textblock
16252 #. type: textblock
16253 #: ../src/guestfs-actions.pod:5392
16254 msgid ""
16255 "This function is primarily intended for use by programs.  To get a simple "
16256 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16257 "consumption, use C<guestfs_ll>."
16258 msgstr ""
16259
16260 # type: textblock
16261 #. type: textblock
16262 #: ../src/guestfs-actions.pod:5396
16263 msgid ""
16264 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16265 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16266 msgstr ""
16267
16268 # type: =head2
16269 #. type: =head2
16270 #: ../src/guestfs-actions.pod:5402
16271 msgid "guestfs_readlink"
16272 msgstr ""
16273
16274 # type: verbatim
16275 #. type: verbatim
16276 #: ../src/guestfs-actions.pod:5404
16277 #, no-wrap
16278 msgid ""
16279 " char *\n"
16280 " guestfs_readlink (guestfs_h *g,\n"
16281 "                   const char *path);\n"
16282 "\n"
16283 msgstr ""
16284
16285 # type: textblock
16286 #. type: textblock
16287 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3626
16288 msgid "This command reads the target of a symbolic link."
16289 msgstr ""
16290
16291 # type: =head2
16292 #. type: =head2
16293 #: ../src/guestfs-actions.pod:5415
16294 msgid "guestfs_readlinklist"
16295 msgstr ""
16296
16297 # type: verbatim
16298 #. type: verbatim
16299 #: ../src/guestfs-actions.pod:5417
16300 #, no-wrap
16301 msgid ""
16302 " char **\n"
16303 " guestfs_readlinklist (guestfs_h *g,\n"
16304 "                       const char *path,\n"
16305 "                       char *const *names);\n"
16306 "\n"
16307 msgstr ""
16308
16309 # type: textblock
16310 #. type: textblock
16311 #: ../src/guestfs-actions.pod:5422 ../fish/guestfish-actions.pod:3632
16312 msgid ""
16313 "This call allows you to do a C<readlink> operation on multiple files, where "
16314 "all files are in the directory C<path>.  C<names> is the list of files from "
16315 "this directory."
16316 msgstr ""
16317
16318 # type: textblock
16319 #. type: textblock
16320 #: ../src/guestfs-actions.pod:5426 ../fish/guestfish-actions.pod:3636
16321 msgid ""
16322 "On return you get a list of strings, with a one-to-one correspondence to the "
16323 "C<names> list.  Each string is the value of the symbolic link."
16324 msgstr ""
16325
16326 # type: textblock
16327 #. type: textblock
16328 #: ../src/guestfs-actions.pod:5430 ../fish/guestfish-actions.pod:3640
16329 msgid ""
16330 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16331 "result string is the empty string C<\"\">.  However the whole operation is "
16332 "completed even if there were C<readlink(2)> errors, and so you can call this "
16333 "function with names where you don't know if they are symbolic links already "
16334 "(albeit slightly less efficient)."
16335 msgstr ""
16336
16337 # type: textblock
16338 #. type: textblock
16339 #: ../src/guestfs-actions.pod:5437 ../fish/guestfish-actions.pod:3647
16340 msgid ""
16341 "This call is intended for programs that want to efficiently list a directory "
16342 "contents without making many round-trips.  Very long directory listings "
16343 "might cause the protocol message size to be exceeded, causing this call to "
16344 "fail.  The caller must split up such requests into smaller groups of names."
16345 msgstr ""
16346
16347 # type: =head2
16348 #. type: =head2
16349 #: ../src/guestfs-actions.pod:5450
16350 msgid "guestfs_realpath"
16351 msgstr ""
16352
16353 # type: verbatim
16354 #. type: verbatim
16355 #: ../src/guestfs-actions.pod:5452
16356 #, no-wrap
16357 msgid ""
16358 " char *\n"
16359 " guestfs_realpath (guestfs_h *g,\n"
16360 "                   const char *path);\n"
16361 "\n"
16362 msgstr ""
16363
16364 # type: textblock
16365 #. type: textblock
16366 #: ../src/guestfs-actions.pod:5456 ../fish/guestfish-actions.pod:3658
16367 msgid ""
16368 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16369 "has no C<.>, C<..> or symbolic link path elements."
16370 msgstr ""
16371
16372 # type: =head2
16373 #. type: =head2
16374 #: ../src/guestfs-actions.pod:5464
16375 msgid "guestfs_removexattr"
16376 msgstr ""
16377
16378 # type: verbatim
16379 #. type: verbatim
16380 #: ../src/guestfs-actions.pod:5466
16381 #, no-wrap
16382 msgid ""
16383 " int\n"
16384 " guestfs_removexattr (guestfs_h *g,\n"
16385 "                      const char *xattr,\n"
16386 "                      const char *path);\n"
16387 "\n"
16388 msgstr ""
16389
16390 # type: textblock
16391 #. type: textblock
16392 #: ../src/guestfs-actions.pod:5471 ../fish/guestfish-actions.pod:3665
16393 msgid ""
16394 "This call removes the extended attribute named C<xattr> of the file C<path>."
16395 msgstr ""
16396
16397 # type: textblock
16398 #. type: textblock
16399 #: ../src/guestfs-actions.pod:5474
16400 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16401 msgstr ""
16402
16403 # type: =head2
16404 #. type: =head2
16405 #: ../src/guestfs-actions.pod:5480
16406 msgid "guestfs_resize2fs"
16407 msgstr ""
16408
16409 # type: verbatim
16410 #. type: verbatim
16411 #: ../src/guestfs-actions.pod:5482
16412 #, no-wrap
16413 msgid ""
16414 " int\n"
16415 " guestfs_resize2fs (guestfs_h *g,\n"
16416 "                    const char *device);\n"
16417 "\n"
16418 msgstr ""
16419
16420 # type: textblock
16421 #. type: textblock
16422 #: ../src/guestfs-actions.pod:5486 ../fish/guestfish-actions.pod:3674
16423 msgid ""
16424 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16425 "underlying device."
16426 msgstr ""
16427
16428 # type: textblock
16429 #. type: textblock
16430 #: ../src/guestfs-actions.pod:5489
16431 msgid ""
16432 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
16433 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
16434 "sometimes gives an error about this and sometimes not.  In any case, it is "
16435 "always safe to call C<guestfs_e2fsck_f> before calling this function."
16436 msgstr ""
16437
16438 #. type: =head2
16439 #: ../src/guestfs-actions.pod:5499
16440 msgid "guestfs_resize2fs_M"
16441 msgstr ""
16442
16443 #. type: verbatim
16444 #: ../src/guestfs-actions.pod:5501
16445 #, no-wrap
16446 msgid ""
16447 " int\n"
16448 " guestfs_resize2fs_M (guestfs_h *g,\n"
16449 "                      const char *device);\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../src/guestfs-actions.pod:5505
16455 msgid ""
16456 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
16457 "resized to its minimum size.  This works like the C<-M> option to the "
16458 "C<resize2fs> command."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:5509
16463 msgid ""
16464 "To get the resulting size of the filesystem you should call "
16465 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
16466 "These two numbers, multiplied together, give the resulting size of the "
16467 "minimal filesystem in bytes."
16468 msgstr ""
16469
16470 # type: =head2
16471 #. type: =head2
16472 #: ../src/guestfs-actions.pod:5516
16473 msgid "guestfs_resize2fs_size"
16474 msgstr ""
16475
16476 # type: verbatim
16477 #. type: verbatim
16478 #: ../src/guestfs-actions.pod:5518
16479 #, no-wrap
16480 msgid ""
16481 " int\n"
16482 " guestfs_resize2fs_size (guestfs_h *g,\n"
16483 "                         const char *device,\n"
16484 "                         int64_t size);\n"
16485 "\n"
16486 msgstr ""
16487
16488 # type: textblock
16489 #. type: textblock
16490 #: ../src/guestfs-actions.pod:5523
16491 msgid ""
16492 "This command is the same as C<guestfs_resize2fs> except that it allows you "
16493 "to specify the new size (in bytes) explicitly."
16494 msgstr ""
16495
16496 # type: =head2
16497 #. type: =head2
16498 #: ../src/guestfs-actions.pod:5530
16499 msgid "guestfs_rm"
16500 msgstr ""
16501
16502 # type: verbatim
16503 #. type: verbatim
16504 #: ../src/guestfs-actions.pod:5532
16505 #, no-wrap
16506 msgid ""
16507 " int\n"
16508 " guestfs_rm (guestfs_h *g,\n"
16509 "             const char *path);\n"
16510 "\n"
16511 msgstr ""
16512
16513 # type: textblock
16514 #. type: textblock
16515 #: ../src/guestfs-actions.pod:5536 ../fish/guestfish-actions.pod:3707
16516 msgid "Remove the single file C<path>."
16517 msgstr ""
16518
16519 # type: =head2
16520 #. type: =head2
16521 #: ../src/guestfs-actions.pod:5542
16522 msgid "guestfs_rm_rf"
16523 msgstr ""
16524
16525 # type: verbatim
16526 #. type: verbatim
16527 #: ../src/guestfs-actions.pod:5544
16528 #, no-wrap
16529 msgid ""
16530 " int\n"
16531 " guestfs_rm_rf (guestfs_h *g,\n"
16532 "                const char *path);\n"
16533 "\n"
16534 msgstr ""
16535
16536 # type: textblock
16537 #. type: textblock
16538 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3713
16539 msgid ""
16540 "Remove the file or directory C<path>, recursively removing the contents if "
16541 "its a directory.  This is like the C<rm -rf> shell command."
16542 msgstr ""
16543
16544 # type: =head2
16545 #. type: =head2
16546 #: ../src/guestfs-actions.pod:5556
16547 msgid "guestfs_rmdir"
16548 msgstr ""
16549
16550 # type: verbatim
16551 #. type: verbatim
16552 #: ../src/guestfs-actions.pod:5558
16553 #, no-wrap
16554 msgid ""
16555 " int\n"
16556 " guestfs_rmdir (guestfs_h *g,\n"
16557 "                const char *path);\n"
16558 "\n"
16559 msgstr ""
16560
16561 # type: textblock
16562 #. type: textblock
16563 #: ../src/guestfs-actions.pod:5562 ../fish/guestfish-actions.pod:3721
16564 msgid "Remove the single directory C<path>."
16565 msgstr ""
16566
16567 # type: =head2
16568 #. type: =head2
16569 #: ../src/guestfs-actions.pod:5568
16570 msgid "guestfs_rmmountpoint"
16571 msgstr ""
16572
16573 # type: verbatim
16574 #. type: verbatim
16575 #: ../src/guestfs-actions.pod:5570
16576 #, no-wrap
16577 msgid ""
16578 " int\n"
16579 " guestfs_rmmountpoint (guestfs_h *g,\n"
16580 "                       const char *exemptpath);\n"
16581 "\n"
16582 msgstr ""
16583
16584 # type: textblock
16585 #. type: textblock
16586 #: ../src/guestfs-actions.pod:5574
16587 msgid ""
16588 "This calls removes a mountpoint that was previously created with "
16589 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
16590 msgstr ""
16591
16592 # type: =head2
16593 #. type: =head2
16594 #: ../src/guestfs-actions.pod:5582
16595 msgid "guestfs_scrub_device"
16596 msgstr ""
16597
16598 # type: verbatim
16599 #. type: verbatim
16600 #: ../src/guestfs-actions.pod:5584
16601 #, no-wrap
16602 msgid ""
16603 " int\n"
16604 " guestfs_scrub_device (guestfs_h *g,\n"
16605 "                       const char *device);\n"
16606 "\n"
16607 msgstr ""
16608
16609 # type: textblock
16610 #. type: textblock
16611 #: ../src/guestfs-actions.pod:5588 ../fish/guestfish-actions.pod:3735
16612 msgid ""
16613 "This command writes patterns over C<device> to make data retrieval more "
16614 "difficult."
16615 msgstr ""
16616
16617 # type: textblock
16618 #. type: textblock
16619 #: ../src/guestfs-actions.pod:5591 ../src/guestfs-actions.pod:5612
16620 #: ../src/guestfs-actions.pod:5631 ../fish/guestfish-actions.pod:3738
16621 #: ../fish/guestfish-actions.pod:3753 ../fish/guestfish-actions.pod:3766
16622 msgid ""
16623 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16624 "more details."
16625 msgstr ""
16626
16627 # type: textblock
16628 #. type: textblock
16629 #: ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5617
16630 #: ../src/guestfs-actions.pod:5636
16631 msgid "(Added in 1.0.52)"
16632 msgstr ""
16633
16634 # type: =head2
16635 #. type: =head2
16636 #: ../src/guestfs-actions.pod:5601
16637 msgid "guestfs_scrub_file"
16638 msgstr ""
16639
16640 # type: verbatim
16641 #. type: verbatim
16642 #: ../src/guestfs-actions.pod:5603
16643 #, no-wrap
16644 msgid ""
16645 " int\n"
16646 " guestfs_scrub_file (guestfs_h *g,\n"
16647 "                     const char *file);\n"
16648 "\n"
16649 msgstr ""
16650
16651 # type: textblock
16652 #. type: textblock
16653 #: ../src/guestfs-actions.pod:5607 ../fish/guestfish-actions.pod:3748
16654 msgid ""
16655 "This command writes patterns over a file to make data retrieval more "
16656 "difficult."
16657 msgstr ""
16658
16659 # type: textblock
16660 #. type: textblock
16661 #: ../src/guestfs-actions.pod:5610 ../fish/guestfish-actions.pod:3751
16662 msgid "The file is I<removed> after scrubbing."
16663 msgstr ""
16664
16665 # type: =head2
16666 #. type: =head2
16667 #: ../src/guestfs-actions.pod:5619
16668 msgid "guestfs_scrub_freespace"
16669 msgstr ""
16670
16671 # type: verbatim
16672 #. type: verbatim
16673 #: ../src/guestfs-actions.pod:5621
16674 #, no-wrap
16675 msgid ""
16676 " int\n"
16677 " guestfs_scrub_freespace (guestfs_h *g,\n"
16678 "                          const char *dir);\n"
16679 "\n"
16680 msgstr ""
16681
16682 # type: textblock
16683 #. type: textblock
16684 #: ../src/guestfs-actions.pod:5625
16685 msgid ""
16686 "This command creates the directory C<dir> and then fills it with files until "
16687 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
16688 "and deletes them.  The intention is to scrub any free space on the partition "
16689 "containing C<dir>."
16690 msgstr ""
16691
16692 # type: =head2
16693 #. type: =head2
16694 #: ../src/guestfs-actions.pod:5638
16695 msgid "guestfs_set_append"
16696 msgstr ""
16697
16698 # type: verbatim
16699 #. type: verbatim
16700 #: ../src/guestfs-actions.pod:5640
16701 #, no-wrap
16702 msgid ""
16703 " int\n"
16704 " guestfs_set_append (guestfs_h *g,\n"
16705 "                     const char *append);\n"
16706 "\n"
16707 msgstr ""
16708
16709 # type: textblock
16710 #. type: textblock
16711 #: ../src/guestfs-actions.pod:5644 ../fish/guestfish-actions.pod:3775
16712 msgid ""
16713 "This function is used to add additional options to the guest kernel command "
16714 "line."
16715 msgstr ""
16716
16717 # type: textblock
16718 #. type: textblock
16719 #: ../src/guestfs-actions.pod:5647 ../fish/guestfish-actions.pod:3778
16720 msgid ""
16721 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16722 "environment variable."
16723 msgstr ""
16724
16725 # type: textblock
16726 #. type: textblock
16727 #: ../src/guestfs-actions.pod:5650 ../fish/guestfish-actions.pod:3781
16728 msgid ""
16729 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16730 "(libguestfs always adds a few of its own)."
16731 msgstr ""
16732
16733 # type: =head2
16734 #. type: =head2
16735 #: ../src/guestfs-actions.pod:5657
16736 msgid "guestfs_set_autosync"
16737 msgstr ""
16738
16739 # type: verbatim
16740 #. type: verbatim
16741 #: ../src/guestfs-actions.pod:5659
16742 #, no-wrap
16743 msgid ""
16744 " int\n"
16745 " guestfs_set_autosync (guestfs_h *g,\n"
16746 "                       int autosync);\n"
16747 "\n"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../src/guestfs-actions.pod:5663 ../fish/guestfish-actions.pod:3790
16752 msgid ""
16753 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16754 "effort attempt to make filesystems consistent and synchronized when the "
16755 "handle is closed (also if the program exits without closing handles)."
16756 msgstr ""
16757
16758 # type: textblock
16759 #. type: textblock
16760 #: ../src/guestfs-actions.pod:5668 ../fish/guestfish-actions.pod:3795
16761 msgid ""
16762 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16763 "disabled by default)."
16764 msgstr ""
16765
16766 # type: =head2
16767 #. type: =head2
16768 #: ../src/guestfs-actions.pod:5675
16769 msgid "guestfs_set_direct"
16770 msgstr ""
16771
16772 # type: verbatim
16773 #. type: verbatim
16774 #: ../src/guestfs-actions.pod:5677
16775 #, no-wrap
16776 msgid ""
16777 " int\n"
16778 " guestfs_set_direct (guestfs_h *g,\n"
16779 "                     int direct);\n"
16780 "\n"
16781 msgstr ""
16782
16783 # type: textblock
16784 #. type: textblock
16785 #: ../src/guestfs-actions.pod:5681 ../fish/guestfish-actions.pod:3804
16786 msgid ""
16787 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16788 "passed directly through to the appliance once it is launched."
16789 msgstr ""
16790
16791 # type: textblock
16792 #. type: textblock
16793 #: ../src/guestfs-actions.pod:5685
16794 msgid ""
16795 "One consequence of this is that log messages aren't caught by the library "
16796 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16797 "stdout."
16798 msgstr ""
16799
16800 # type: textblock
16801 #. type: textblock
16802 #: ../src/guestfs-actions.pod:5689 ../fish/guestfish-actions.pod:3812
16803 msgid "You probably don't want to use this unless you know what you are doing."
16804 msgstr ""
16805
16806 # type: textblock
16807 #. type: textblock
16808 #: ../src/guestfs-actions.pod:5692 ../fish/guestfish-actions.pod:3815
16809 msgid "The default is disabled."
16810 msgstr ""
16811
16812 # type: =head2
16813 #. type: =head2
16814 #: ../src/guestfs-actions.pod:5698
16815 msgid "guestfs_set_e2label"
16816 msgstr ""
16817
16818 # type: verbatim
16819 #. type: verbatim
16820 #: ../src/guestfs-actions.pod:5700
16821 #, no-wrap
16822 msgid ""
16823 " int\n"
16824 " guestfs_set_e2label (guestfs_h *g,\n"
16825 "                      const char *device,\n"
16826 "                      const char *label);\n"
16827 "\n"
16828 msgstr ""
16829
16830 # type: textblock
16831 #. type: textblock
16832 #: ../src/guestfs-actions.pod:5705 ../fish/guestfish-actions.pod:3821
16833 msgid ""
16834 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16835 "C<label>.  Filesystem labels are limited to 16 characters."
16836 msgstr ""
16837
16838 # type: textblock
16839 #. type: textblock
16840 #: ../src/guestfs-actions.pod:5709
16841 msgid ""
16842 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16843 "the existing label on a filesystem."
16844 msgstr ""
16845
16846 # type: =head2
16847 #. type: =head2
16848 #: ../src/guestfs-actions.pod:5716
16849 msgid "guestfs_set_e2uuid"
16850 msgstr ""
16851
16852 # type: verbatim
16853 #. type: verbatim
16854 #: ../src/guestfs-actions.pod:5718
16855 #, no-wrap
16856 msgid ""
16857 " int\n"
16858 " guestfs_set_e2uuid (guestfs_h *g,\n"
16859 "                     const char *device,\n"
16860 "                     const char *uuid);\n"
16861 "\n"
16862 msgstr ""
16863
16864 # type: textblock
16865 #. type: textblock
16866 #: ../src/guestfs-actions.pod:5723 ../fish/guestfish-actions.pod:3832
16867 msgid ""
16868 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16869 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16870 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16871 msgstr ""
16872
16873 # type: textblock
16874 #. type: textblock
16875 #: ../src/guestfs-actions.pod:5728
16876 msgid ""
16877 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16878 "the existing UUID of a filesystem."
16879 msgstr ""
16880
16881 # type: =head2
16882 #. type: =head2
16883 #: ../src/guestfs-actions.pod:5735
16884 msgid "guestfs_set_memsize"
16885 msgstr ""
16886
16887 # type: verbatim
16888 #. type: verbatim
16889 #: ../src/guestfs-actions.pod:5737
16890 #, no-wrap
16891 msgid ""
16892 " int\n"
16893 " guestfs_set_memsize (guestfs_h *g,\n"
16894 "                      int memsize);\n"
16895 "\n"
16896 msgstr ""
16897
16898 # type: textblock
16899 #. type: textblock
16900 #: ../src/guestfs-actions.pod:5741
16901 msgid ""
16902 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16903 "This only has any effect if called before C<guestfs_launch>."
16904 msgstr ""
16905
16906 # type: textblock
16907 #. type: textblock
16908 #: ../src/guestfs-actions.pod:5745 ../fish/guestfish-actions.pod:3850
16909 msgid ""
16910 "You can also change this by setting the environment variable "
16911 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16912 msgstr ""
16913
16914 # type: =head2
16915 #. type: =head2
16916 #: ../src/guestfs-actions.pod:5756
16917 msgid "guestfs_set_network"
16918 msgstr ""
16919
16920 # type: verbatim
16921 #. type: verbatim
16922 #: ../src/guestfs-actions.pod:5758
16923 #, no-wrap
16924 msgid ""
16925 " int\n"
16926 " guestfs_set_network (guestfs_h *g,\n"
16927 "                      int network);\n"
16928 "\n"
16929 msgstr ""
16930
16931 # type: textblock
16932 #. type: textblock
16933 #: ../src/guestfs-actions.pod:5762 ../fish/guestfish-actions.pod:3863
16934 msgid ""
16935 "If C<network> is true, then the network is enabled in the libguestfs "
16936 "appliance.  The default is false."
16937 msgstr ""
16938
16939 # type: textblock
16940 #. type: textblock
16941 #: ../src/guestfs-actions.pod:5765 ../fish/guestfish-actions.pod:3866
16942 msgid ""
16943 "This affects whether commands are able to access the network (see L<guestfs"
16944 "(3)/RUNNING COMMANDS>)."
16945 msgstr ""
16946
16947 # type: textblock
16948 #. type: textblock
16949 #: ../src/guestfs-actions.pod:5768
16950 msgid ""
16951 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16952 "effect."
16953 msgstr ""
16954
16955 # type: =head2
16956 #. type: =head2
16957 #: ../src/guestfs-actions.pod:5775
16958 msgid "guestfs_set_path"
16959 msgstr ""
16960
16961 # type: verbatim
16962 #. type: verbatim
16963 #: ../src/guestfs-actions.pod:5777
16964 #, no-wrap
16965 msgid ""
16966 " int\n"
16967 " guestfs_set_path (guestfs_h *g,\n"
16968 "                   const char *searchpath);\n"
16969 "\n"
16970 msgstr ""
16971
16972 # type: textblock
16973 #. type: textblock
16974 #: ../src/guestfs-actions.pod:5781 ../fish/guestfish-actions.pod:3878
16975 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16976 msgstr ""
16977
16978 # type: textblock
16979 #. type: textblock
16980 #: ../src/guestfs-actions.pod:5783 ../fish/guestfish-actions.pod:3880
16981 msgid ""
16982 "The default is C<$libdir/guestfs> unless overridden by setting "
16983 "C<LIBGUESTFS_PATH> environment variable."
16984 msgstr ""
16985
16986 # type: textblock
16987 #. type: textblock
16988 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3883
16989 msgid "Setting C<path> to C<NULL> restores the default path."
16990 msgstr ""
16991
16992 # type: =head2
16993 #. type: =head2
16994 #: ../src/guestfs-actions.pod:5792
16995 msgid "guestfs_set_qemu"
16996 msgstr ""
16997
16998 # type: verbatim
16999 #. type: verbatim
17000 #: ../src/guestfs-actions.pod:5794
17001 #, no-wrap
17002 msgid ""
17003 " int\n"
17004 " guestfs_set_qemu (guestfs_h *g,\n"
17005 "                   const char *qemu);\n"
17006 "\n"
17007 msgstr ""
17008
17009 # type: textblock
17010 #. type: textblock
17011 #: ../src/guestfs-actions.pod:5798 ../fish/guestfish-actions.pod:3891
17012 msgid "Set the qemu binary that we will use."
17013 msgstr ""
17014
17015 # type: textblock
17016 #. type: textblock
17017 #: ../src/guestfs-actions.pod:5800 ../fish/guestfish-actions.pod:3893
17018 msgid ""
17019 "The default is chosen when the library was compiled by the configure script."
17020 msgstr ""
17021
17022 # type: textblock
17023 #. type: textblock
17024 #: ../src/guestfs-actions.pod:5803 ../fish/guestfish-actions.pod:3896
17025 msgid ""
17026 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17027 "variable."
17028 msgstr ""
17029
17030 # type: textblock
17031 #. type: textblock
17032 #: ../src/guestfs-actions.pod:5806 ../fish/guestfish-actions.pod:3899
17033 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17034 msgstr ""
17035
17036 # type: textblock
17037 #. type: textblock
17038 #: ../src/guestfs-actions.pod:5808 ../fish/guestfish-actions.pod:3901
17039 msgid ""
17040 "Note that you should call this function as early as possible after creating "
17041 "the handle.  This is because some pre-launch operations depend on testing "
17042 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17043 "don't retest features, and so you might see inconsistent results.  Using the "
17044 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17045 "the qemu binary at the same time as the handle is created."
17046 msgstr ""
17047
17048 # type: =head2
17049 #. type: =head2
17050 #: ../src/guestfs-actions.pod:5820
17051 msgid "guestfs_set_recovery_proc"
17052 msgstr ""
17053
17054 # type: verbatim
17055 #. type: verbatim
17056 #: ../src/guestfs-actions.pod:5822
17057 #, no-wrap
17058 msgid ""
17059 " int\n"
17060 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17061 "                            int recoveryproc);\n"
17062 "\n"
17063 msgstr ""
17064
17065 # type: textblock
17066 #. type: textblock
17067 #: ../src/guestfs-actions.pod:5826
17068 msgid ""
17069 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17070 "not create a recovery process.  The purpose of the recovery process is to "
17071 "stop runaway qemu processes in the case where the main program aborts "
17072 "abruptly."
17073 msgstr ""
17074
17075 # type: textblock
17076 #. type: textblock
17077 #: ../src/guestfs-actions.pod:5831
17078 msgid ""
17079 "This only has any effect if called before C<guestfs_launch>, and the default "
17080 "is true."
17081 msgstr ""
17082
17083 # type: textblock
17084 #. type: textblock
17085 #: ../src/guestfs-actions.pod:5834 ../fish/guestfish-actions.pod:3923
17086 msgid ""
17087 "About the only time when you would want to disable this is if the main "
17088 "process will fork itself into the background (\"daemonize\" itself).  In "
17089 "this case the recovery process thinks that the main program has disappeared "
17090 "and so kills qemu, which is not very helpful."
17091 msgstr ""
17092
17093 # type: =head2
17094 #. type: =head2
17095 #: ../src/guestfs-actions.pod:5844
17096 msgid "guestfs_set_selinux"
17097 msgstr ""
17098
17099 # type: verbatim
17100 #. type: verbatim
17101 #: ../src/guestfs-actions.pod:5846
17102 #, no-wrap
17103 msgid ""
17104 " int\n"
17105 " guestfs_set_selinux (guestfs_h *g,\n"
17106 "                      int selinux);\n"
17107 "\n"
17108 msgstr ""
17109
17110 # type: textblock
17111 #. type: textblock
17112 #: ../src/guestfs-actions.pod:5850 ../fish/guestfish-actions.pod:3935
17113 msgid ""
17114 "This sets the selinux flag that is passed to the appliance at boot time.  "
17115 "The default is C<selinux=0> (disabled)."
17116 msgstr ""
17117
17118 # type: textblock
17119 #. type: textblock
17120 #: ../src/guestfs-actions.pod:5853 ../fish/guestfish-actions.pod:3938
17121 msgid ""
17122 "Note that if SELinux is enabled, it is always in Permissive mode "
17123 "(C<enforcing=0>)."
17124 msgstr ""
17125
17126 # type: =head2
17127 #. type: =head2
17128 #: ../src/guestfs-actions.pod:5863
17129 msgid "guestfs_set_trace"
17130 msgstr ""
17131
17132 # type: verbatim
17133 #. type: verbatim
17134 #: ../src/guestfs-actions.pod:5865
17135 #, no-wrap
17136 msgid ""
17137 " int\n"
17138 " guestfs_set_trace (guestfs_h *g,\n"
17139 "                    int trace);\n"
17140 "\n"
17141 msgstr ""
17142
17143 # type: textblock
17144 #. type: textblock
17145 #: ../src/guestfs-actions.pod:5869 ../fish/guestfish-actions.pod:3950
17146 msgid ""
17147 "If the command trace flag is set to 1, then commands are printed on stderr "
17148 "before they are executed in a format which is very similar to the one used "
17149 "by guestfish.  In other words, you can run a program with this enabled, and "
17150 "you will get out a script which you can feed to guestfish to perform the "
17151 "same set of actions."
17152 msgstr ""
17153
17154 # type: textblock
17155 #. type: textblock
17156 #: ../src/guestfs-actions.pod:5876 ../fish/guestfish-actions.pod:3957
17157 msgid ""
17158 "If you want to trace C API calls into libguestfs (and other libraries) then "
17159 "possibly a better way is to use the external ltrace(1) command."
17160 msgstr ""
17161
17162 # type: textblock
17163 #. type: textblock
17164 #: ../src/guestfs-actions.pod:5880 ../fish/guestfish-actions.pod:3961
17165 msgid ""
17166 "Command traces are disabled unless the environment variable "
17167 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17168 msgstr ""
17169
17170 # type: =head2
17171 #. type: =head2
17172 #: ../src/guestfs-actions.pod:5887
17173 msgid "guestfs_set_verbose"
17174 msgstr ""
17175
17176 # type: verbatim
17177 #. type: verbatim
17178 #: ../src/guestfs-actions.pod:5889
17179 #, no-wrap
17180 msgid ""
17181 " int\n"
17182 " guestfs_set_verbose (guestfs_h *g,\n"
17183 "                      int verbose);\n"
17184 "\n"
17185 msgstr ""
17186
17187 # type: textblock
17188 #. type: textblock
17189 #: ../src/guestfs-actions.pod:5893 ../fish/guestfish-actions.pod:3970
17190 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
17191 msgstr ""
17192
17193 # type: textblock
17194 #. type: textblock
17195 #: ../src/guestfs-actions.pod:5895 ../fish/guestfish-actions.pod:3972
17196 msgid ""
17197 "Verbose messages are disabled unless the environment variable "
17198 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17199 msgstr ""
17200
17201 # type: =head2
17202 #. type: =head2
17203 #: ../src/guestfs-actions.pod:5902
17204 msgid "guestfs_setcon"
17205 msgstr ""
17206
17207 # type: verbatim
17208 #. type: verbatim
17209 #: ../src/guestfs-actions.pod:5904
17210 #, no-wrap
17211 msgid ""
17212 " int\n"
17213 " guestfs_setcon (guestfs_h *g,\n"
17214 "                 const char *context);\n"
17215 "\n"
17216 msgstr ""
17217
17218 # type: textblock
17219 #. type: textblock
17220 #: ../src/guestfs-actions.pod:5908 ../fish/guestfish-actions.pod:3979
17221 msgid ""
17222 "This sets the SELinux security context of the daemon to the string "
17223 "C<context>."
17224 msgstr ""
17225
17226 # type: textblock
17227 #. type: textblock
17228 #: ../src/guestfs-actions.pod:5911 ../fish/guestfish-actions.pod:3982
17229 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17230 msgstr ""
17231
17232 # type: =head2
17233 #. type: =head2
17234 #: ../src/guestfs-actions.pod:5917
17235 msgid "guestfs_setxattr"
17236 msgstr ""
17237
17238 # type: verbatim
17239 #. type: verbatim
17240 #: ../src/guestfs-actions.pod:5919
17241 #, no-wrap
17242 msgid ""
17243 " int\n"
17244 " guestfs_setxattr (guestfs_h *g,\n"
17245 "                   const char *xattr,\n"
17246 "                   const char *val,\n"
17247 "                   int vallen,\n"
17248 "                   const char *path);\n"
17249 "\n"
17250 msgstr ""
17251
17252 # type: textblock
17253 #. type: textblock
17254 #: ../src/guestfs-actions.pod:5926 ../fish/guestfish-actions.pod:3988
17255 msgid ""
17256 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17257 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17258 msgstr ""
17259
17260 # type: textblock
17261 #. type: textblock
17262 #: ../src/guestfs-actions.pod:5930
17263 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17264 msgstr ""
17265
17266 # type: =head2
17267 #. type: =head2
17268 #: ../src/guestfs-actions.pod:5936
17269 msgid "guestfs_sfdisk"
17270 msgstr ""
17271
17272 # type: verbatim
17273 #. type: verbatim
17274 #: ../src/guestfs-actions.pod:5938
17275 #, no-wrap
17276 msgid ""
17277 " int\n"
17278 " guestfs_sfdisk (guestfs_h *g,\n"
17279 "                 const char *device,\n"
17280 "                 int cyls,\n"
17281 "                 int heads,\n"
17282 "                 int sectors,\n"
17283 "                 char *const *lines);\n"
17284 "\n"
17285 msgstr ""
17286
17287 # type: textblock
17288 #. type: textblock
17289 #: ../src/guestfs-actions.pod:5946 ../fish/guestfish-actions.pod:3998
17290 msgid ""
17291 "This is a direct interface to the L<sfdisk(8)> program for creating "
17292 "partitions on block devices."
17293 msgstr ""
17294
17295 # type: textblock
17296 #. type: textblock
17297 #: ../src/guestfs-actions.pod:5949 ../fish/guestfish-actions.pod:4001
17298 msgid "C<device> should be a block device, for example C</dev/sda>."
17299 msgstr ""
17300
17301 # type: textblock
17302 #. type: textblock
17303 #: ../src/guestfs-actions.pod:5951 ../fish/guestfish-actions.pod:4003
17304 msgid ""
17305 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17306 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17307 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17308 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17309 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17310 "the kernel) cannot work out the right geometry and you will need to tell it."
17311 msgstr ""
17312
17313 # type: textblock
17314 #. type: textblock
17315 #: ../src/guestfs-actions.pod:5959 ../fish/guestfish-actions.pod:4011
17316 msgid ""
17317 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17318 "refer to the L<sfdisk(8)> manpage."
17319 msgstr ""
17320
17321 # type: textblock
17322 #. type: textblock
17323 #: ../src/guestfs-actions.pod:5962 ../fish/guestfish-actions.pod:4014
17324 msgid ""
17325 "To create a single partition occupying the whole disk, you would pass "
17326 "C<lines> as a single element list, when the single element being the string "
17327 "C<,> (comma)."
17328 msgstr ""
17329
17330 # type: textblock
17331 #. type: textblock
17332 #: ../src/guestfs-actions.pod:5966
17333 msgid ""
17334 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17335 msgstr ""
17336
17337 # type: =head2
17338 #. type: =head2
17339 #: ../src/guestfs-actions.pod:5976
17340 msgid "guestfs_sfdiskM"
17341 msgstr ""
17342
17343 # type: verbatim
17344 #. type: verbatim
17345 #: ../src/guestfs-actions.pod:5978
17346 #, no-wrap
17347 msgid ""
17348 " int\n"
17349 " guestfs_sfdiskM (guestfs_h *g,\n"
17350 "                  const char *device,\n"
17351 "                  char *const *lines);\n"
17352 "\n"
17353 msgstr ""
17354
17355 # type: textblock
17356 #. type: textblock
17357 #: ../src/guestfs-actions.pod:5983
17358 msgid ""
17359 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17360 "partition sizes are specified in megabytes only (rounded to the nearest "
17361 "cylinder) and you don't need to specify the cyls, heads and sectors "
17362 "parameters which were rarely if ever used anyway."
17363 msgstr ""
17364
17365 # type: textblock
17366 #. type: textblock
17367 #: ../src/guestfs-actions.pod:5989
17368 msgid ""
17369 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17370 "C<guestfs_part_disk>"
17371 msgstr ""
17372
17373 # type: =head2
17374 #. type: =head2
17375 #: ../src/guestfs-actions.pod:5999
17376 msgid "guestfs_sfdisk_N"
17377 msgstr ""
17378
17379 # type: verbatim
17380 #. type: verbatim
17381 #: ../src/guestfs-actions.pod:6001
17382 #, no-wrap
17383 msgid ""
17384 " int\n"
17385 " guestfs_sfdisk_N (guestfs_h *g,\n"
17386 "                   const char *device,\n"
17387 "                   int partnum,\n"
17388 "                   int cyls,\n"
17389 "                   int heads,\n"
17390 "                   int sectors,\n"
17391 "                   const char *line);\n"
17392 "\n"
17393 msgstr ""
17394
17395 # type: textblock
17396 #. type: textblock
17397 #: ../src/guestfs-actions.pod:6010 ../fish/guestfish-actions.pod:4044
17398 msgid ""
17399 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17400 "(note: C<n> counts from 1)."
17401 msgstr ""
17402
17403 # type: textblock
17404 #. type: textblock
17405 #: ../src/guestfs-actions.pod:6013
17406 msgid ""
17407 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
17408 "for the cyls/heads/sectors parameters."
17409 msgstr ""
17410
17411 # type: textblock
17412 #. type: textblock
17413 #: ../src/guestfs-actions.pod:6016
17414 msgid "See also: C<guestfs_part_add>"
17415 msgstr ""
17416
17417 # type: =head2
17418 #. type: =head2
17419 #: ../src/guestfs-actions.pod:6025
17420 msgid "guestfs_sfdisk_disk_geometry"
17421 msgstr ""
17422
17423 # type: verbatim
17424 #. type: verbatim
17425 #: ../src/guestfs-actions.pod:6027
17426 #, no-wrap
17427 msgid ""
17428 " char *\n"
17429 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
17430 "                               const char *device);\n"
17431 "\n"
17432 msgstr ""
17433
17434 # type: textblock
17435 #. type: textblock
17436 #: ../src/guestfs-actions.pod:6031
17437 msgid ""
17438 "This displays the disk geometry of C<device> read from the partition table.  "
17439 "Especially in the case where the underlying block device has been resized, "
17440 "this can be different from the kernel's idea of the geometry (see "
17441 "C<guestfs_sfdisk_kernel_geometry>)."
17442 msgstr ""
17443
17444 # type: textblock
17445 #. type: textblock
17446 #: ../src/guestfs-actions.pod:6036 ../src/guestfs-actions.pod:6052
17447 #: ../fish/guestfish-actions.pod:4064 ../fish/guestfish-actions.pod:4073
17448 msgid "The result is in human-readable format, and not designed to be parsed."
17449 msgstr ""
17450
17451 # type: =head2
17452 #. type: =head2
17453 #: ../src/guestfs-actions.pod:6044
17454 msgid "guestfs_sfdisk_kernel_geometry"
17455 msgstr ""
17456
17457 # type: verbatim
17458 #. type: verbatim
17459 #: ../src/guestfs-actions.pod:6046
17460 #, no-wrap
17461 msgid ""
17462 " char *\n"
17463 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
17464 "                                 const char *device);\n"
17465 "\n"
17466 msgstr ""
17467
17468 # type: textblock
17469 #. type: textblock
17470 #: ../src/guestfs-actions.pod:6050 ../fish/guestfish-actions.pod:4071
17471 msgid "This displays the kernel's idea of the geometry of C<device>."
17472 msgstr ""
17473
17474 # type: =head2
17475 #. type: =head2
17476 #: ../src/guestfs-actions.pod:6060
17477 msgid "guestfs_sfdisk_l"
17478 msgstr ""
17479
17480 # type: verbatim
17481 #. type: verbatim
17482 #: ../src/guestfs-actions.pod:6062
17483 #, no-wrap
17484 msgid ""
17485 " char *\n"
17486 " guestfs_sfdisk_l (guestfs_h *g,\n"
17487 "                   const char *device);\n"
17488 "\n"
17489 msgstr ""
17490
17491 # type: textblock
17492 #. type: textblock
17493 #: ../src/guestfs-actions.pod:6066 ../fish/guestfish-actions.pod:4080
17494 msgid ""
17495 "This displays the partition table on C<device>, in the human-readable output "
17496 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17497 msgstr ""
17498
17499 # type: textblock
17500 #. type: textblock
17501 #: ../src/guestfs-actions.pod:6070
17502 msgid "See also: C<guestfs_part_list>"
17503 msgstr ""
17504
17505 # type: =head2
17506 #. type: =head2
17507 #: ../src/guestfs-actions.pod:6077
17508 msgid "guestfs_sh"
17509 msgstr ""
17510
17511 # type: verbatim
17512 #. type: verbatim
17513 #: ../src/guestfs-actions.pod:6079
17514 #, no-wrap
17515 msgid ""
17516 " char *\n"
17517 " guestfs_sh (guestfs_h *g,\n"
17518 "             const char *command);\n"
17519 "\n"
17520 msgstr ""
17521
17522 # type: textblock
17523 #. type: textblock
17524 #: ../src/guestfs-actions.pod:6083 ../fish/guestfish-actions.pod:4090
17525 msgid ""
17526 "This call runs a command from the guest filesystem via the guest's C</bin/"
17527 "sh>."
17528 msgstr ""
17529
17530 # type: textblock
17531 #. type: textblock
17532 #: ../src/guestfs-actions.pod:6086
17533 msgid "This is like C<guestfs_command>, but passes the command to:"
17534 msgstr ""
17535
17536 # type: verbatim
17537 #. type: verbatim
17538 #: ../src/guestfs-actions.pod:6088 ../fish/guestfish-actions.pod:4095
17539 #, no-wrap
17540 msgid ""
17541 " /bin/sh -c \"command\"\n"
17542 "\n"
17543 msgstr ""
17544
17545 # type: textblock
17546 #. type: textblock
17547 #: ../src/guestfs-actions.pod:6090 ../fish/guestfish-actions.pod:4097
17548 msgid ""
17549 "Depending on the guest's shell, this usually results in wildcards being "
17550 "expanded, shell expressions being interpolated and so on."
17551 msgstr ""
17552
17553 # type: textblock
17554 #. type: textblock
17555 #: ../src/guestfs-actions.pod:6094
17556 msgid "All the provisos about C<guestfs_command> apply to this call."
17557 msgstr ""
17558
17559 # type: =head2
17560 #. type: =head2
17561 #: ../src/guestfs-actions.pod:6101
17562 msgid "guestfs_sh_lines"
17563 msgstr ""
17564
17565 # type: verbatim
17566 #. type: verbatim
17567 #: ../src/guestfs-actions.pod:6103
17568 #, no-wrap
17569 msgid ""
17570 " char **\n"
17571 " guestfs_sh_lines (guestfs_h *g,\n"
17572 "                   const char *command);\n"
17573 "\n"
17574 msgstr ""
17575
17576 # type: textblock
17577 #. type: textblock
17578 #: ../src/guestfs-actions.pod:6107
17579 msgid ""
17580 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17581 "lines."
17582 msgstr ""
17583
17584 # type: textblock
17585 #. type: textblock
17586 #: ../src/guestfs-actions.pod:6110
17587 msgid "See also: C<guestfs_command_lines>"
17588 msgstr ""
17589
17590 # type: =head2
17591 #. type: =head2
17592 #: ../src/guestfs-actions.pod:6118
17593 msgid "guestfs_sleep"
17594 msgstr ""
17595
17596 # type: verbatim
17597 #. type: verbatim
17598 #: ../src/guestfs-actions.pod:6120
17599 #, no-wrap
17600 msgid ""
17601 " int\n"
17602 " guestfs_sleep (guestfs_h *g,\n"
17603 "                int secs);\n"
17604 "\n"
17605 msgstr ""
17606
17607 # type: textblock
17608 #. type: textblock
17609 #: ../src/guestfs-actions.pod:6124 ../fish/guestfish-actions.pod:4116
17610 msgid "Sleep for C<secs> seconds."
17611 msgstr ""
17612
17613 # type: textblock
17614 #. type: textblock
17615 #: ../src/guestfs-actions.pod:6128
17616 msgid "(Added in 1.0.41)"
17617 msgstr ""
17618
17619 # type: =head2
17620 #. type: =head2
17621 #: ../src/guestfs-actions.pod:6130 ../src/guestfs-structs.pod:109
17622 msgid "guestfs_stat"
17623 msgstr ""
17624
17625 # type: verbatim
17626 #. type: verbatim
17627 #: ../src/guestfs-actions.pod:6132
17628 #, no-wrap
17629 msgid ""
17630 " struct guestfs_stat *\n"
17631 " guestfs_stat (guestfs_h *g,\n"
17632 "               const char *path);\n"
17633 "\n"
17634 msgstr ""
17635
17636 # type: textblock
17637 #. type: textblock
17638 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4124
17639 msgid "This is the same as the C<stat(2)> system call."
17640 msgstr ""
17641
17642 # type: =head2
17643 #. type: =head2
17644 #: ../src/guestfs-actions.pod:6146 ../src/guestfs-structs.pod:135
17645 msgid "guestfs_statvfs"
17646 msgstr ""
17647
17648 # type: verbatim
17649 #. type: verbatim
17650 #: ../src/guestfs-actions.pod:6148
17651 #, no-wrap
17652 msgid ""
17653 " struct guestfs_statvfs *\n"
17654 " guestfs_statvfs (guestfs_h *g,\n"
17655 "                  const char *path);\n"
17656 "\n"
17657 msgstr ""
17658
17659 # type: textblock
17660 #. type: textblock
17661 #: ../src/guestfs-actions.pod:6152 ../fish/guestfish-actions.pod:4130
17662 msgid ""
17663 "Returns file system statistics for any mounted file system.  C<path> should "
17664 "be a file or directory in the mounted file system (typically it is the mount "
17665 "point itself, but it doesn't need to be)."
17666 msgstr ""
17667
17668 # type: textblock
17669 #. type: textblock
17670 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4134
17671 msgid "This is the same as the C<statvfs(2)> system call."
17672 msgstr ""
17673
17674 # type: textblock
17675 #. type: textblock
17676 #: ../src/guestfs-actions.pod:6158
17677 msgid ""
17678 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
17679 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
17680 msgstr ""
17681
17682 # type: =head2
17683 #. type: =head2
17684 #: ../src/guestfs-actions.pod:6164
17685 msgid "guestfs_strings"
17686 msgstr ""
17687
17688 # type: verbatim
17689 #. type: verbatim
17690 #: ../src/guestfs-actions.pod:6166
17691 #, no-wrap
17692 msgid ""
17693 " char **\n"
17694 " guestfs_strings (guestfs_h *g,\n"
17695 "                  const char *path);\n"
17696 "\n"
17697 msgstr ""
17698
17699 # type: textblock
17700 #. type: textblock
17701 #: ../src/guestfs-actions.pod:6170 ../fish/guestfish-actions.pod:4140
17702 msgid ""
17703 "This runs the L<strings(1)> command on a file and returns the list of "
17704 "printable strings found."
17705 msgstr ""
17706
17707 # type: =head2
17708 #. type: =head2
17709 #: ../src/guestfs-actions.pod:6182
17710 msgid "guestfs_strings_e"
17711 msgstr ""
17712
17713 # type: verbatim
17714 #. type: verbatim
17715 #: ../src/guestfs-actions.pod:6184
17716 #, no-wrap
17717 msgid ""
17718 " char **\n"
17719 " guestfs_strings_e (guestfs_h *g,\n"
17720 "                    const char *encoding,\n"
17721 "                    const char *path);\n"
17722 "\n"
17723 msgstr ""
17724
17725 # type: textblock
17726 #. type: textblock
17727 #: ../src/guestfs-actions.pod:6189
17728 msgid ""
17729 "This is like the C<guestfs_strings> command, but allows you to specify the "
17730 "encoding of strings that are looked for in the source file C<path>."
17731 msgstr ""
17732
17733 # type: textblock
17734 #. type: textblock
17735 #: ../src/guestfs-actions.pod:6193 ../fish/guestfish-actions.pod:4154
17736 msgid "Allowed encodings are:"
17737 msgstr ""
17738
17739 # type: =item
17740 #. type: =item
17741 #: ../src/guestfs-actions.pod:6197 ../fish/guestfish-actions.pod:4158
17742 msgid "s"
17743 msgstr ""
17744
17745 # type: textblock
17746 #. type: textblock
17747 #: ../src/guestfs-actions.pod:6199
17748 msgid ""
17749 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17750 "ISO-8859-X (this is what C<guestfs_strings> uses)."
17751 msgstr ""
17752
17753 # type: =item
17754 #. type: =item
17755 #: ../src/guestfs-actions.pod:6202 ../fish/guestfish-actions.pod:4163
17756 msgid "S"
17757 msgstr ""
17758
17759 # type: textblock
17760 #. type: textblock
17761 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4165
17762 msgid "Single 8-bit-byte characters."
17763 msgstr ""
17764
17765 # type: =item
17766 #. type: =item
17767 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4167
17768 msgid "b"
17769 msgstr ""
17770
17771 # type: textblock
17772 #. type: textblock
17773 #: ../src/guestfs-actions.pod:6208 ../fish/guestfish-actions.pod:4169
17774 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17775 msgstr ""
17776
17777 # type: =item
17778 #. type: =item
17779 #: ../src/guestfs-actions.pod:6211 ../fish/guestfish-actions.pod:4172
17780 msgid "l (lower case letter L)"
17781 msgstr ""
17782
17783 # type: textblock
17784 #. type: textblock
17785 #: ../src/guestfs-actions.pod:6213 ../fish/guestfish-actions.pod:4174
17786 msgid ""
17787 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17788 "examining binaries in Windows guests."
17789 msgstr ""
17790
17791 # type: =item
17792 #. type: =item
17793 #: ../src/guestfs-actions.pod:6216 ../fish/guestfish-actions.pod:4177
17794 msgid "B"
17795 msgstr ""
17796
17797 # type: textblock
17798 #. type: textblock
17799 #: ../src/guestfs-actions.pod:6218 ../fish/guestfish-actions.pod:4179
17800 msgid "32-bit big endian such as UCS-4BE."
17801 msgstr ""
17802
17803 # type: =item
17804 #. type: =item
17805 #: ../src/guestfs-actions.pod:6220 ../fish/guestfish-actions.pod:4181
17806 msgid "L"
17807 msgstr ""
17808
17809 # type: textblock
17810 #. type: textblock
17811 #: ../src/guestfs-actions.pod:6222 ../fish/guestfish-actions.pod:4183
17812 msgid "32-bit little endian such as UCS-4LE."
17813 msgstr ""
17814
17815 # type: textblock
17816 #. type: textblock
17817 #: ../src/guestfs-actions.pod:6226 ../fish/guestfish-actions.pod:4187
17818 msgid "The returned strings are transcoded to UTF-8."
17819 msgstr ""
17820
17821 # type: =head2
17822 #. type: =head2
17823 #: ../src/guestfs-actions.pod:6237
17824 msgid "guestfs_swapoff_device"
17825 msgstr ""
17826
17827 # type: verbatim
17828 #. type: verbatim
17829 #: ../src/guestfs-actions.pod:6239
17830 #, no-wrap
17831 msgid ""
17832 " int\n"
17833 " guestfs_swapoff_device (guestfs_h *g,\n"
17834 "                         const char *device);\n"
17835 "\n"
17836 msgstr ""
17837
17838 # type: textblock
17839 #. type: textblock
17840 #: ../src/guestfs-actions.pod:6243
17841 msgid ""
17842 "This command disables the libguestfs appliance swap device or partition "
17843 "named C<device>.  See C<guestfs_swapon_device>."
17844 msgstr ""
17845
17846 # type: =head2
17847 #. type: =head2
17848 #: ../src/guestfs-actions.pod:6251
17849 msgid "guestfs_swapoff_file"
17850 msgstr ""
17851
17852 # type: verbatim
17853 #. type: verbatim
17854 #: ../src/guestfs-actions.pod:6253
17855 #, no-wrap
17856 msgid ""
17857 " int\n"
17858 " guestfs_swapoff_file (guestfs_h *g,\n"
17859 "                       const char *file);\n"
17860 "\n"
17861 msgstr ""
17862
17863 # type: textblock
17864 #. type: textblock
17865 #: ../src/guestfs-actions.pod:6257 ../fish/guestfish-actions.pod:4204
17866 msgid "This command disables the libguestfs appliance swap on file."
17867 msgstr ""
17868
17869 # type: =head2
17870 #. type: =head2
17871 #: ../src/guestfs-actions.pod:6263
17872 msgid "guestfs_swapoff_label"
17873 msgstr ""
17874
17875 # type: verbatim
17876 #. type: verbatim
17877 #: ../src/guestfs-actions.pod:6265
17878 #, no-wrap
17879 msgid ""
17880 " int\n"
17881 " guestfs_swapoff_label (guestfs_h *g,\n"
17882 "                        const char *label);\n"
17883 "\n"
17884 msgstr ""
17885
17886 # type: textblock
17887 #. type: textblock
17888 #: ../src/guestfs-actions.pod:6269 ../fish/guestfish-actions.pod:4210
17889 msgid ""
17890 "This command disables the libguestfs appliance swap on labeled swap "
17891 "partition."
17892 msgstr ""
17893
17894 # type: =head2
17895 #. type: =head2
17896 #: ../src/guestfs-actions.pod:6276
17897 msgid "guestfs_swapoff_uuid"
17898 msgstr ""
17899
17900 # type: verbatim
17901 #. type: verbatim
17902 #: ../src/guestfs-actions.pod:6278
17903 #, no-wrap
17904 msgid ""
17905 " int\n"
17906 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17907 "                       const char *uuid);\n"
17908 "\n"
17909 msgstr ""
17910
17911 # type: textblock
17912 #. type: textblock
17913 #: ../src/guestfs-actions.pod:6282 ../fish/guestfish-actions.pod:4217
17914 msgid ""
17915 "This command disables the libguestfs appliance swap partition with the given "
17916 "UUID."
17917 msgstr ""
17918
17919 # type: =head2
17920 #. type: =head2
17921 #: ../src/guestfs-actions.pod:6289
17922 msgid "guestfs_swapon_device"
17923 msgstr ""
17924
17925 # type: verbatim
17926 #. type: verbatim
17927 #: ../src/guestfs-actions.pod:6291
17928 #, no-wrap
17929 msgid ""
17930 " int\n"
17931 " guestfs_swapon_device (guestfs_h *g,\n"
17932 "                        const char *device);\n"
17933 "\n"
17934 msgstr ""
17935
17936 # type: textblock
17937 #. type: textblock
17938 #: ../src/guestfs-actions.pod:6295
17939 msgid ""
17940 "This command enables the libguestfs appliance to use the swap device or "
17941 "partition named C<device>.  The increased memory is made available for all "
17942 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17943 msgstr ""
17944
17945 # type: textblock
17946 #. type: textblock
17947 #: ../src/guestfs-actions.pod:6300 ../fish/guestfish-actions.pod:4229
17948 msgid ""
17949 "Note that you should not swap to existing guest swap partitions unless you "
17950 "know what you are doing.  They may contain hibernation information, or other "
17951 "information that the guest doesn't want you to trash.  You also risk leaking "
17952 "information about the host to the guest this way.  Instead, attach a new "
17953 "host device to the guest and swap on that."
17954 msgstr ""
17955
17956 # type: =head2
17957 #. type: =head2
17958 #: ../src/guestfs-actions.pod:6311
17959 msgid "guestfs_swapon_file"
17960 msgstr ""
17961
17962 # type: verbatim
17963 #. type: verbatim
17964 #: ../src/guestfs-actions.pod:6313
17965 #, no-wrap
17966 msgid ""
17967 " int\n"
17968 " guestfs_swapon_file (guestfs_h *g,\n"
17969 "                      const char *file);\n"
17970 "\n"
17971 msgstr ""
17972
17973 # type: textblock
17974 #. type: textblock
17975 #: ../src/guestfs-actions.pod:6317
17976 msgid ""
17977 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17978 "notes."
17979 msgstr ""
17980
17981 # type: =head2
17982 #. type: =head2
17983 #: ../src/guestfs-actions.pod:6324
17984 msgid "guestfs_swapon_label"
17985 msgstr ""
17986
17987 # type: verbatim
17988 #. type: verbatim
17989 #: ../src/guestfs-actions.pod:6326
17990 #, no-wrap
17991 msgid ""
17992 " int\n"
17993 " guestfs_swapon_label (guestfs_h *g,\n"
17994 "                       const char *label);\n"
17995 "\n"
17996 msgstr ""
17997
17998 # type: textblock
17999 #. type: textblock
18000 #: ../src/guestfs-actions.pod:6330
18001 msgid ""
18002 "This command enables swap to a labeled swap partition.  See "
18003 "C<guestfs_swapon_device> for other notes."
18004 msgstr ""
18005
18006 # type: =head2
18007 #. type: =head2
18008 #: ../src/guestfs-actions.pod:6337
18009 msgid "guestfs_swapon_uuid"
18010 msgstr ""
18011
18012 # type: verbatim
18013 #. type: verbatim
18014 #: ../src/guestfs-actions.pod:6339
18015 #, no-wrap
18016 msgid ""
18017 " int\n"
18018 " guestfs_swapon_uuid (guestfs_h *g,\n"
18019 "                      const char *uuid);\n"
18020 "\n"
18021 msgstr ""
18022
18023 # type: textblock
18024 #. type: textblock
18025 #: ../src/guestfs-actions.pod:6343
18026 msgid ""
18027 "This command enables swap to a swap partition with the given UUID.  See "
18028 "C<guestfs_swapon_device> for other notes."
18029 msgstr ""
18030
18031 # type: =head2
18032 #. type: =head2
18033 #: ../src/guestfs-actions.pod:6350
18034 msgid "guestfs_sync"
18035 msgstr ""
18036
18037 # type: verbatim
18038 #. type: verbatim
18039 #: ../src/guestfs-actions.pod:6352
18040 #, no-wrap
18041 msgid ""
18042 " int\n"
18043 " guestfs_sync (guestfs_h *g);\n"
18044 "\n"
18045 msgstr ""
18046
18047 # type: textblock
18048 #. type: textblock
18049 #: ../src/guestfs-actions.pod:6355 ../fish/guestfish-actions.pod:4261
18050 msgid ""
18051 "This syncs the disk, so that any writes are flushed through to the "
18052 "underlying disk image."
18053 msgstr ""
18054
18055 # type: textblock
18056 #. type: textblock
18057 #: ../src/guestfs-actions.pod:6358 ../fish/guestfish-actions.pod:4264
18058 msgid ""
18059 "You should always call this if you have modified a disk image, before "
18060 "closing the handle."
18061 msgstr ""
18062
18063 # type: =head2
18064 #. type: =head2
18065 #: ../src/guestfs-actions.pod:6365
18066 msgid "guestfs_tail"
18067 msgstr ""
18068
18069 # type: verbatim
18070 #. type: verbatim
18071 #: ../src/guestfs-actions.pod:6367
18072 #, no-wrap
18073 msgid ""
18074 " char **\n"
18075 " guestfs_tail (guestfs_h *g,\n"
18076 "               const char *path);\n"
18077 "\n"
18078 msgstr ""
18079
18080 # type: textblock
18081 #. type: textblock
18082 #: ../src/guestfs-actions.pod:6371 ../fish/guestfish-actions.pod:4271
18083 msgid ""
18084 "This command returns up to the last 10 lines of a file as a list of strings."
18085 msgstr ""
18086
18087 # type: =head2
18088 #. type: =head2
18089 #: ../src/guestfs-actions.pod:6383
18090 msgid "guestfs_tail_n"
18091 msgstr ""
18092
18093 # type: verbatim
18094 #. type: verbatim
18095 #: ../src/guestfs-actions.pod:6385
18096 #, no-wrap
18097 msgid ""
18098 " char **\n"
18099 " guestfs_tail_n (guestfs_h *g,\n"
18100 "                 int nrlines,\n"
18101 "                 const char *path);\n"
18102 "\n"
18103 msgstr ""
18104
18105 # type: textblock
18106 #. type: textblock
18107 #: ../src/guestfs-actions.pod:6390 ../fish/guestfish-actions.pod:4281
18108 msgid ""
18109 "If the parameter C<nrlines> is a positive number, this returns the last "
18110 "C<nrlines> lines of the file C<path>."
18111 msgstr ""
18112
18113 # type: textblock
18114 #. type: textblock
18115 #: ../src/guestfs-actions.pod:6393 ../fish/guestfish-actions.pod:4284
18116 msgid ""
18117 "If the parameter C<nrlines> is a negative number, this returns lines from "
18118 "the file C<path>, starting with the C<-nrlines>th line."
18119 msgstr ""
18120
18121 # type: =head2
18122 #. type: =head2
18123 #: ../src/guestfs-actions.pod:6407
18124 msgid "guestfs_tar_in"
18125 msgstr ""
18126
18127 # type: verbatim
18128 #. type: verbatim
18129 #: ../src/guestfs-actions.pod:6409
18130 #, no-wrap
18131 msgid ""
18132 " int\n"
18133 " guestfs_tar_in (guestfs_h *g,\n"
18134 "                 const char *tarfile,\n"
18135 "                 const char *directory);\n"
18136 "\n"
18137 msgstr ""
18138
18139 # type: textblock
18140 #. type: textblock
18141 #: ../src/guestfs-actions.pod:6414 ../fish/guestfish-actions.pod:4296
18142 msgid ""
18143 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18144 "tar file) into C<directory>."
18145 msgstr ""
18146
18147 # type: textblock
18148 #. type: textblock
18149 #: ../src/guestfs-actions.pod:6417
18150 msgid ""
18151 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18152 msgstr ""
18153
18154 # type: textblock
18155 #. type: textblock
18156 #: ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6439
18157 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6471
18158 msgid "(Added in 1.0.3)"
18159 msgstr ""
18160
18161 # type: =head2
18162 #. type: =head2
18163 #: ../src/guestfs-actions.pod:6424
18164 msgid "guestfs_tar_out"
18165 msgstr ""
18166
18167 # type: verbatim
18168 #. type: verbatim
18169 #: ../src/guestfs-actions.pod:6426
18170 #, no-wrap
18171 msgid ""
18172 " int\n"
18173 " guestfs_tar_out (guestfs_h *g,\n"
18174 "                  const char *directory,\n"
18175 "                  const char *tarfile);\n"
18176 "\n"
18177 msgstr ""
18178
18179 # type: textblock
18180 #. type: textblock
18181 #: ../src/guestfs-actions.pod:6431 ../fish/guestfish-actions.pod:4308
18182 msgid ""
18183 "This command packs the contents of C<directory> and downloads it to local "
18184 "file C<tarfile>."
18185 msgstr ""
18186
18187 # type: textblock
18188 #. type: textblock
18189 #: ../src/guestfs-actions.pod:6434
18190 msgid ""
18191 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18192 "C<guestfs_txz_out>."
18193 msgstr ""
18194
18195 # type: =head2
18196 #. type: =head2
18197 #: ../src/guestfs-actions.pod:6441
18198 msgid "guestfs_tgz_in"
18199 msgstr ""
18200
18201 # type: verbatim
18202 #. type: verbatim
18203 #: ../src/guestfs-actions.pod:6443
18204 #, no-wrap
18205 msgid ""
18206 " int\n"
18207 " guestfs_tgz_in (guestfs_h *g,\n"
18208 "                 const char *tarball,\n"
18209 "                 const char *directory);\n"
18210 "\n"
18211 msgstr ""
18212
18213 # type: textblock
18214 #. type: textblock
18215 #: ../src/guestfs-actions.pod:6448 ../fish/guestfish-actions.pod:4320
18216 msgid ""
18217 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18218 "tar file) into C<directory>."
18219 msgstr ""
18220
18221 # type: textblock
18222 #. type: textblock
18223 #: ../src/guestfs-actions.pod:6451
18224 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18225 msgstr ""
18226
18227 # type: =head2
18228 #. type: =head2
18229 #: ../src/guestfs-actions.pod:6457
18230 msgid "guestfs_tgz_out"
18231 msgstr ""
18232
18233 # type: verbatim
18234 #. type: verbatim
18235 #: ../src/guestfs-actions.pod:6459
18236 #, no-wrap
18237 msgid ""
18238 " int\n"
18239 " guestfs_tgz_out (guestfs_h *g,\n"
18240 "                  const char *directory,\n"
18241 "                  const char *tarball);\n"
18242 "\n"
18243 msgstr ""
18244
18245 # type: textblock
18246 #. type: textblock
18247 #: ../src/guestfs-actions.pod:6464 ../fish/guestfish-actions.pod:4331
18248 msgid ""
18249 "This command packs the contents of C<directory> and downloads it to local "
18250 "file C<tarball>."
18251 msgstr ""
18252
18253 # type: textblock
18254 #. type: textblock
18255 #: ../src/guestfs-actions.pod:6467
18256 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18257 msgstr ""
18258
18259 # type: =head2
18260 #. type: =head2
18261 #: ../src/guestfs-actions.pod:6473
18262 msgid "guestfs_touch"
18263 msgstr ""
18264
18265 # type: verbatim
18266 #. type: verbatim
18267 #: ../src/guestfs-actions.pod:6475
18268 #, no-wrap
18269 msgid ""
18270 " int\n"
18271 " guestfs_touch (guestfs_h *g,\n"
18272 "                const char *path);\n"
18273 "\n"
18274 msgstr ""
18275
18276 # type: textblock
18277 #. type: textblock
18278 #: ../src/guestfs-actions.pod:6479 ../fish/guestfish-actions.pod:4342
18279 msgid ""
18280 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18281 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18282 "length file."
18283 msgstr ""
18284
18285 # type: textblock
18286 #. type: textblock
18287 #: ../src/guestfs-actions.pod:6483 ../fish/guestfish-actions.pod:4346
18288 msgid ""
18289 "This command only works on regular files, and will fail on other file types "
18290 "such as directories, symbolic links, block special etc."
18291 msgstr ""
18292
18293 # type: =head2
18294 #. type: =head2
18295 #: ../src/guestfs-actions.pod:6490
18296 msgid "guestfs_truncate"
18297 msgstr ""
18298
18299 # type: verbatim
18300 #. type: verbatim
18301 #: ../src/guestfs-actions.pod:6492
18302 #, no-wrap
18303 msgid ""
18304 " int\n"
18305 " guestfs_truncate (guestfs_h *g,\n"
18306 "                   const char *path);\n"
18307 "\n"
18308 msgstr ""
18309
18310 # type: textblock
18311 #. type: textblock
18312 #: ../src/guestfs-actions.pod:6496 ../fish/guestfish-actions.pod:4353
18313 msgid ""
18314 "This command truncates C<path> to a zero-length file.  The file must exist "
18315 "already."
18316 msgstr ""
18317
18318 # type: =head2
18319 #. type: =head2
18320 #: ../src/guestfs-actions.pod:6503
18321 msgid "guestfs_truncate_size"
18322 msgstr ""
18323
18324 # type: verbatim
18325 #. type: verbatim
18326 #: ../src/guestfs-actions.pod:6505
18327 #, no-wrap
18328 msgid ""
18329 " int\n"
18330 " guestfs_truncate_size (guestfs_h *g,\n"
18331 "                        const char *path,\n"
18332 "                        int64_t size);\n"
18333 "\n"
18334 msgstr ""
18335
18336 # type: textblock
18337 #. type: textblock
18338 #: ../src/guestfs-actions.pod:6510 ../fish/guestfish-actions.pod:4360
18339 msgid ""
18340 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18341 "already."
18342 msgstr ""
18343
18344 # type: textblock
18345 #. type: textblock
18346 #: ../src/guestfs-actions.pod:6513
18347 msgid ""
18348 "If the current file size is less than C<size> then the file is extended to "
18349 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18350 "blocks are not allocated for the file until you write to it).  To create a "
18351 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18352 msgstr ""
18353
18354 # type: =head2
18355 #. type: =head2
18356 #: ../src/guestfs-actions.pod:6523
18357 msgid "guestfs_tune2fs_l"
18358 msgstr ""
18359
18360 # type: verbatim
18361 #. type: verbatim
18362 #: ../src/guestfs-actions.pod:6525
18363 #, no-wrap
18364 msgid ""
18365 " char **\n"
18366 " guestfs_tune2fs_l (guestfs_h *g,\n"
18367 "                    const char *device);\n"
18368 "\n"
18369 msgstr ""
18370
18371 # type: textblock
18372 #. type: textblock
18373 #: ../src/guestfs-actions.pod:6529 ../fish/guestfish-actions.pod:4373
18374 msgid ""
18375 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18376 "C<device>."
18377 msgstr ""
18378
18379 # type: textblock
18380 #. type: textblock
18381 #: ../src/guestfs-actions.pod:6532 ../fish/guestfish-actions.pod:4376
18382 msgid ""
18383 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18384 "for more details.  The list of fields returned isn't clearly defined, and "
18385 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18386 "and the filesystem itself."
18387 msgstr ""
18388
18389 # type: =head2
18390 #. type: =head2
18391 #: ../src/guestfs-actions.pod:6545
18392 msgid "guestfs_txz_in"
18393 msgstr ""
18394
18395 # type: verbatim
18396 #. type: verbatim
18397 #: ../src/guestfs-actions.pod:6547
18398 #, no-wrap
18399 msgid ""
18400 " int\n"
18401 " guestfs_txz_in (guestfs_h *g,\n"
18402 "                 const char *tarball,\n"
18403 "                 const char *directory);\n"
18404 "\n"
18405 msgstr ""
18406
18407 # type: textblock
18408 #. type: textblock
18409 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4385
18410 msgid ""
18411 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18412 "tar file) into C<directory>."
18413 msgstr ""
18414
18415 # type: =head2
18416 #. type: =head2
18417 #: ../src/guestfs-actions.pod:6559
18418 msgid "guestfs_txz_out"
18419 msgstr ""
18420
18421 # type: verbatim
18422 #. type: verbatim
18423 #: ../src/guestfs-actions.pod:6561
18424 #, no-wrap
18425 msgid ""
18426 " int\n"
18427 " guestfs_txz_out (guestfs_h *g,\n"
18428 "                  const char *directory,\n"
18429 "                  const char *tarball);\n"
18430 "\n"
18431 msgstr ""
18432
18433 # type: textblock
18434 #. type: textblock
18435 #: ../src/guestfs-actions.pod:6566 ../fish/guestfish-actions.pod:4394
18436 msgid ""
18437 "This command packs the contents of C<directory> and downloads it to local "
18438 "file C<tarball> (as an xz compressed tar archive)."
18439 msgstr ""
18440
18441 # type: =head2
18442 #. type: =head2
18443 #: ../src/guestfs-actions.pod:6573
18444 msgid "guestfs_umask"
18445 msgstr ""
18446
18447 # type: verbatim
18448 #. type: verbatim
18449 #: ../src/guestfs-actions.pod:6575
18450 #, no-wrap
18451 msgid ""
18452 " int\n"
18453 " guestfs_umask (guestfs_h *g,\n"
18454 "                int mask);\n"
18455 "\n"
18456 msgstr ""
18457
18458 # type: textblock
18459 #. type: textblock
18460 #: ../src/guestfs-actions.pod:6579 ../fish/guestfish-actions.pod:4403
18461 msgid ""
18462 "This function sets the mask used for creating new files and device nodes to "
18463 "C<mask & 0777>."
18464 msgstr ""
18465
18466 # type: textblock
18467 #. type: textblock
18468 #: ../src/guestfs-actions.pod:6582 ../fish/guestfish-actions.pod:4406
18469 msgid ""
18470 "Typical umask values would be C<022> which creates new files with "
18471 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18472 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18473 msgstr ""
18474
18475 # type: textblock
18476 #. type: textblock
18477 #: ../src/guestfs-actions.pod:6587 ../fish/guestfish-actions.pod:4411
18478 msgid ""
18479 "The default umask is C<022>.  This is important because it means that "
18480 "directories and device nodes will be created with C<0644> or C<0755> mode "
18481 "even if you specify C<0777>."
18482 msgstr ""
18483
18484 # type: textblock
18485 #. type: textblock
18486 #: ../src/guestfs-actions.pod:6591
18487 msgid ""
18488 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
18489 "C<guestfs_mkdir>."
18490 msgstr ""
18491
18492 # type: textblock
18493 #. type: textblock
18494 #: ../src/guestfs-actions.pod:6594 ../fish/guestfish-actions.pod:4418
18495 msgid "This call returns the previous umask."
18496 msgstr ""
18497
18498 # type: =head2
18499 #. type: =head2
18500 #: ../src/guestfs-actions.pod:6600
18501 msgid "guestfs_umount"
18502 msgstr ""
18503
18504 # type: verbatim
18505 #. type: verbatim
18506 #: ../src/guestfs-actions.pod:6602
18507 #, no-wrap
18508 msgid ""
18509 " int\n"
18510 " guestfs_umount (guestfs_h *g,\n"
18511 "                 const char *pathordevice);\n"
18512 "\n"
18513 msgstr ""
18514
18515 # type: textblock
18516 #. type: textblock
18517 #: ../src/guestfs-actions.pod:6606 ../fish/guestfish-actions.pod:4426
18518 msgid ""
18519 "This unmounts the given filesystem.  The filesystem may be specified either "
18520 "by its mountpoint (path) or the device which contains the filesystem."
18521 msgstr ""
18522
18523 # type: =head2
18524 #. type: =head2
18525 #: ../src/guestfs-actions.pod:6614
18526 msgid "guestfs_umount_all"
18527 msgstr ""
18528
18529 # type: verbatim
18530 #. type: verbatim
18531 #: ../src/guestfs-actions.pod:6616
18532 #, no-wrap
18533 msgid ""
18534 " int\n"
18535 " guestfs_umount_all (guestfs_h *g);\n"
18536 "\n"
18537 msgstr ""
18538
18539 # type: textblock
18540 #. type: textblock
18541 #: ../src/guestfs-actions.pod:6619 ../fish/guestfish-actions.pod:4436
18542 msgid "This unmounts all mounted filesystems."
18543 msgstr ""
18544
18545 # type: textblock
18546 #. type: textblock
18547 #: ../src/guestfs-actions.pod:6621 ../fish/guestfish-actions.pod:4438
18548 msgid "Some internal mounts are not unmounted by this call."
18549 msgstr ""
18550
18551 # type: =head2
18552 #. type: =head2
18553 #: ../src/guestfs-actions.pod:6627
18554 msgid "guestfs_upload"
18555 msgstr ""
18556
18557 # type: verbatim
18558 #. type: verbatim
18559 #: ../src/guestfs-actions.pod:6629
18560 #, no-wrap
18561 msgid ""
18562 " int\n"
18563 " guestfs_upload (guestfs_h *g,\n"
18564 "                 const char *filename,\n"
18565 "                 const char *remotefilename);\n"
18566 "\n"
18567 msgstr ""
18568
18569 # type: textblock
18570 #. type: textblock
18571 #: ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6658
18572 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4457
18573 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18574 msgstr ""
18575
18576 # type: textblock
18577 #. type: textblock
18578 #: ../src/guestfs-actions.pod:6639
18579 msgid "See also C<guestfs_download>."
18580 msgstr ""
18581
18582 # type: =head2
18583 #. type: =head2
18584 #: ../src/guestfs-actions.pod:6650
18585 msgid "guestfs_upload_offset"
18586 msgstr ""
18587
18588 # type: verbatim
18589 #. type: verbatim
18590 #: ../src/guestfs-actions.pod:6652
18591 #, no-wrap
18592 msgid ""
18593 " int\n"
18594 " guestfs_upload_offset (guestfs_h *g,\n"
18595 "                        const char *filename,\n"
18596 "                        const char *remotefilename,\n"
18597 "                        int64_t offset);\n"
18598 "\n"
18599 msgstr ""
18600
18601 # type: textblock
18602 #. type: textblock
18603 #: ../src/guestfs-actions.pod:6661 ../fish/guestfish-actions.pod:4460
18604 msgid ""
18605 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18606 "The intention is to overwrite parts of existing files or devices, although "
18607 "if a non-existant file is specified then it is created with a \"hole\" "
18608 "before C<offset>.  The size of the data written is implicit in the size of "
18609 "the source C<filename>."
18610 msgstr ""
18611
18612 # type: textblock
18613 #. type: textblock
18614 #: ../src/guestfs-actions.pod:6668
18615 msgid ""
18616 "Note that there is no limit on the amount of data that can be uploaded with "
18617 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
18618 "full amount unless an error occurs."
18619 msgstr ""
18620
18621 # type: textblock
18622 #. type: textblock
18623 #: ../src/guestfs-actions.pod:6673
18624 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
18625 msgstr ""
18626
18627 # type: =head2
18628 #. type: =head2
18629 #: ../src/guestfs-actions.pod:6684
18630 msgid "guestfs_utimens"
18631 msgstr ""
18632
18633 # type: verbatim
18634 #. type: verbatim
18635 #: ../src/guestfs-actions.pod:6686
18636 #, no-wrap
18637 msgid ""
18638 " int\n"
18639 " guestfs_utimens (guestfs_h *g,\n"
18640 "                  const char *path,\n"
18641 "                  int64_t atsecs,\n"
18642 "                  int64_t atnsecs,\n"
18643 "                  int64_t mtsecs,\n"
18644 "                  int64_t mtnsecs);\n"
18645 "\n"
18646 msgstr ""
18647
18648 # type: textblock
18649 #. type: textblock
18650 #: ../src/guestfs-actions.pod:6694 ../fish/guestfish-actions.pod:4480
18651 msgid "This command sets the timestamps of a file with nanosecond precision."
18652 msgstr ""
18653
18654 # type: textblock
18655 #. type: textblock
18656 #: ../src/guestfs-actions.pod:6697 ../fish/guestfish-actions.pod:4483
18657 msgid ""
18658 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18659 "from the epoch."
18660 msgstr ""
18661
18662 # type: textblock
18663 #. type: textblock
18664 #: ../src/guestfs-actions.pod:6700 ../fish/guestfish-actions.pod:4486
18665 msgid ""
18666 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18667 "nanoseconds from the epoch."
18668 msgstr ""
18669
18670 # type: textblock
18671 #. type: textblock
18672 #: ../src/guestfs-actions.pod:6703 ../fish/guestfish-actions.pod:4489
18673 msgid ""
18674 "If the C<*nsecs> field contains the special value C<-1> then the "
18675 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18676 "ignored in this case)."
18677 msgstr ""
18678
18679 # type: textblock
18680 #. type: textblock
18681 #: ../src/guestfs-actions.pod:6707 ../fish/guestfish-actions.pod:4493
18682 msgid ""
18683 "If the C<*nsecs> field contains the special value C<-2> then the "
18684 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18685 "in this case)."
18686 msgstr ""
18687
18688 # type: =head2
18689 #. type: =head2
18690 #: ../src/guestfs-actions.pod:6715 ../src/guestfs-structs.pod:175
18691 msgid "guestfs_version"
18692 msgstr ""
18693
18694 # type: verbatim
18695 #. type: verbatim
18696 #: ../src/guestfs-actions.pod:6717
18697 #, no-wrap
18698 msgid ""
18699 " struct guestfs_version *\n"
18700 " guestfs_version (guestfs_h *g);\n"
18701 "\n"
18702 msgstr ""
18703
18704 # type: textblock
18705 #. type: textblock
18706 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4501
18707 msgid ""
18708 "Return the libguestfs version number that the program is linked against."
18709 msgstr ""
18710
18711 # type: textblock
18712 #. type: textblock
18713 #: ../src/guestfs-actions.pod:6723 ../fish/guestfish-actions.pod:4504
18714 msgid ""
18715 "Note that because of dynamic linking this is not necessarily the version of "
18716 "libguestfs that you compiled against.  You can compile the program, and then "
18717 "at runtime dynamically link against a completely different C<libguestfs.so> "
18718 "library."
18719 msgstr ""
18720
18721 # type: textblock
18722 #. type: textblock
18723 #: ../src/guestfs-actions.pod:6728 ../fish/guestfish-actions.pod:4509
18724 msgid ""
18725 "This call was added in version C<1.0.58>.  In previous versions of "
18726 "libguestfs there was no way to get the version number.  From C code you can "
18727 "use dynamic linker functions to find out if this symbol exists (if it "
18728 "doesn't, then it's an earlier version)."
18729 msgstr ""
18730
18731 # type: textblock
18732 #. type: textblock
18733 #: ../src/guestfs-actions.pod:6734 ../fish/guestfish-actions.pod:4515
18734 msgid ""
18735 "The call returns a structure with four elements.  The first three (C<major>, "
18736 "C<minor> and C<release>) are numbers and correspond to the usual version "
18737 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18738 "but may be used for distro-specific information."
18739 msgstr ""
18740
18741 # type: textblock
18742 #. type: textblock
18743 #: ../src/guestfs-actions.pod:6740 ../fish/guestfish-actions.pod:4521
18744 msgid ""
18745 "To construct the original version string: C<$major.$minor.$release$extra>"
18746 msgstr ""
18747
18748 # type: textblock
18749 #. type: textblock
18750 #: ../src/guestfs-actions.pod:6743 ../fish/guestfish-actions.pod:4524
18751 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18752 msgstr ""
18753
18754 # type: textblock
18755 #. type: textblock
18756 #: ../src/guestfs-actions.pod:6745
18757 msgid ""
18758 "I<Note:> Don't use this call to test for availability of features.  In "
18759 "enterprise distributions we backport features from later versions into "
18760 "earlier versions, making this an unreliable way to test for features.  Use "
18761 "C<guestfs_available> instead."
18762 msgstr ""
18763
18764 # type: textblock
18765 #. type: textblock
18766 #: ../src/guestfs-actions.pod:6751
18767 msgid ""
18768 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
18769 "error.  I<The caller must call C<guestfs_free_version> after use>."
18770 msgstr ""
18771
18772 # type: textblock
18773 #. type: textblock
18774 #: ../src/guestfs-actions.pod:6755
18775 msgid "(Added in 1.0.58)"
18776 msgstr ""
18777
18778 # type: =head2
18779 #. type: =head2
18780 #: ../src/guestfs-actions.pod:6757
18781 msgid "guestfs_vfs_label"
18782 msgstr ""
18783
18784 # type: verbatim
18785 #. type: verbatim
18786 #: ../src/guestfs-actions.pod:6759
18787 #, no-wrap
18788 msgid ""
18789 " char *\n"
18790 " guestfs_vfs_label (guestfs_h *g,\n"
18791 "                    const char *device);\n"
18792 "\n"
18793 msgstr ""
18794
18795 # type: textblock
18796 #. type: textblock
18797 #: ../src/guestfs-actions.pod:6763 ../fish/guestfish-actions.pod:4536
18798 msgid "This returns the filesystem label of the filesystem on C<device>."
18799 msgstr ""
18800
18801 # type: textblock
18802 #. type: textblock
18803 #: ../src/guestfs-actions.pod:6766 ../fish/guestfish-actions.pod:4539
18804 msgid "If the filesystem is unlabeled, this returns the empty string."
18805 msgstr ""
18806
18807 # type: textblock
18808 #. type: textblock
18809 #: ../src/guestfs-actions.pod:6768
18810 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
18811 msgstr ""
18812
18813 # type: textblock
18814 #. type: textblock
18815 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6810
18816 msgid "(Added in 1.3.18)"
18817 msgstr ""
18818
18819 # type: =head2
18820 #. type: =head2
18821 #: ../src/guestfs-actions.pod:6775
18822 msgid "guestfs_vfs_type"
18823 msgstr ""
18824
18825 # type: verbatim
18826 #. type: verbatim
18827 #: ../src/guestfs-actions.pod:6777
18828 #, no-wrap
18829 msgid ""
18830 " char *\n"
18831 " guestfs_vfs_type (guestfs_h *g,\n"
18832 "                   const char *device);\n"
18833 "\n"
18834 msgstr ""
18835
18836 # type: textblock
18837 #. type: textblock
18838 #: ../src/guestfs-actions.pod:6781 ../fish/guestfish-actions.pod:4547
18839 msgid ""
18840 "This command gets the filesystem type corresponding to the filesystem on "
18841 "C<device>."
18842 msgstr ""
18843
18844 # type: textblock
18845 #. type: textblock
18846 #: ../src/guestfs-actions.pod:6784 ../fish/guestfish-actions.pod:4550
18847 msgid ""
18848 "For most filesystems, the result is the name of the Linux VFS module which "
18849 "would be used to mount this filesystem if you mounted it without specifying "
18850 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18851 msgstr ""
18852
18853 # type: =head2
18854 #. type: =head2
18855 #: ../src/guestfs-actions.pod:6794
18856 msgid "guestfs_vfs_uuid"
18857 msgstr ""
18858
18859 # type: verbatim
18860 #. type: verbatim
18861 #: ../src/guestfs-actions.pod:6796
18862 #, no-wrap
18863 msgid ""
18864 " char *\n"
18865 " guestfs_vfs_uuid (guestfs_h *g,\n"
18866 "                   const char *device);\n"
18867 "\n"
18868 msgstr ""
18869
18870 # type: textblock
18871 #. type: textblock
18872 #: ../src/guestfs-actions.pod:6800 ../fish/guestfish-actions.pod:4559
18873 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18874 msgstr ""
18875
18876 # type: textblock
18877 #. type: textblock
18878 #: ../src/guestfs-actions.pod:6803 ../fish/guestfish-actions.pod:4562
18879 msgid "If the filesystem does not have a UUID, this returns the empty string."
18880 msgstr ""
18881
18882 # type: textblock
18883 #. type: textblock
18884 #: ../src/guestfs-actions.pod:6805
18885 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
18886 msgstr ""
18887
18888 # type: =head2
18889 #. type: =head2
18890 #: ../src/guestfs-actions.pod:6812
18891 msgid "guestfs_vg_activate"
18892 msgstr ""
18893
18894 # type: verbatim
18895 #. type: verbatim
18896 #: ../src/guestfs-actions.pod:6814
18897 #, no-wrap
18898 msgid ""
18899 " int\n"
18900 " guestfs_vg_activate (guestfs_h *g,\n"
18901 "                      int activate,\n"
18902 "                      char *const *volgroups);\n"
18903 "\n"
18904 msgstr ""
18905
18906 # type: textblock
18907 #. type: textblock
18908 #: ../src/guestfs-actions.pod:6819 ../fish/guestfish-actions.pod:4570
18909 msgid ""
18910 "This command activates or (if C<activate> is false) deactivates all logical "
18911 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
18912 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
18913 "deactivated, then those devices disappear."
18914 msgstr ""
18915
18916 # type: textblock
18917 #. type: textblock
18918 #: ../src/guestfs-actions.pod:6825 ../fish/guestfish-actions.pod:4576
18919 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18920 msgstr ""
18921
18922 # type: textblock
18923 #. type: textblock
18924 #: ../src/guestfs-actions.pod:6827 ../fish/guestfish-actions.pod:4578
18925 msgid ""
18926 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18927 "activated or deactivated."
18928 msgstr ""
18929
18930 # type: =head2
18931 #. type: =head2
18932 #: ../src/guestfs-actions.pod:6834
18933 msgid "guestfs_vg_activate_all"
18934 msgstr ""
18935
18936 # type: verbatim
18937 #. type: verbatim
18938 #: ../src/guestfs-actions.pod:6836
18939 #, no-wrap
18940 msgid ""
18941 " int\n"
18942 " guestfs_vg_activate_all (guestfs_h *g,\n"
18943 "                          int activate);\n"
18944 "\n"
18945 msgstr ""
18946
18947 # type: textblock
18948 #. type: textblock
18949 #: ../src/guestfs-actions.pod:6840 ../fish/guestfish-actions.pod:4585
18950 msgid ""
18951 "This command activates or (if C<activate> is false) deactivates all logical "
18952 "volumes in all volume groups.  If activated, then they are made known to the "
18953 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
18954 "those devices disappear."
18955 msgstr ""
18956
18957 # type: textblock
18958 #. type: textblock
18959 #: ../src/guestfs-actions.pod:6846 ../fish/guestfish-actions.pod:4591
18960 msgid "This command is the same as running C<vgchange -a y|n>"
18961 msgstr ""
18962
18963 # type: =head2
18964 #. type: =head2
18965 #: ../src/guestfs-actions.pod:6852
18966 msgid "guestfs_vgcreate"
18967 msgstr ""
18968
18969 # type: verbatim
18970 #. type: verbatim
18971 #: ../src/guestfs-actions.pod:6854
18972 #, no-wrap
18973 msgid ""
18974 " int\n"
18975 " guestfs_vgcreate (guestfs_h *g,\n"
18976 "                   const char *volgroup,\n"
18977 "                   char *const *physvols);\n"
18978 "\n"
18979 msgstr ""
18980
18981 # type: textblock
18982 #. type: textblock
18983 #: ../src/guestfs-actions.pod:6859 ../fish/guestfish-actions.pod:4597
18984 msgid ""
18985 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18986 "of physical volumes C<physvols>."
18987 msgstr ""
18988
18989 # type: =head2
18990 #. type: =head2
18991 #: ../src/guestfs-actions.pod:6866
18992 msgid "guestfs_vglvuuids"
18993 msgstr ""
18994
18995 # type: verbatim
18996 #. type: verbatim
18997 #: ../src/guestfs-actions.pod:6868
18998 #, no-wrap
18999 msgid ""
19000 " char **\n"
19001 " guestfs_vglvuuids (guestfs_h *g,\n"
19002 "                    const char *vgname);\n"
19003 "\n"
19004 msgstr ""
19005
19006 # type: textblock
19007 #. type: textblock
19008 #: ../src/guestfs-actions.pod:6872 ../fish/guestfish-actions.pod:4604
19009 msgid ""
19010 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
19011 "volumes created in this volume group."
19012 msgstr ""
19013
19014 # type: textblock
19015 #. type: textblock
19016 #: ../src/guestfs-actions.pod:6875
19017 msgid ""
19018 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
19019 "associate logical volumes and volume groups."
19020 msgstr ""
19021
19022 # type: textblock
19023 #. type: textblock
19024 #: ../src/guestfs-actions.pod:6878
19025 msgid "See also C<guestfs_vgpvuuids>."
19026 msgstr ""
19027
19028 # type: =head2
19029 #. type: =head2
19030 #: ../src/guestfs-actions.pod:6886
19031 msgid "guestfs_vgpvuuids"
19032 msgstr ""
19033
19034 # type: verbatim
19035 #. type: verbatim
19036 #: ../src/guestfs-actions.pod:6888
19037 #, no-wrap
19038 msgid ""
19039 " char **\n"
19040 " guestfs_vgpvuuids (guestfs_h *g,\n"
19041 "                    const char *vgname);\n"
19042 "\n"
19043 msgstr ""
19044
19045 # type: textblock
19046 #. type: textblock
19047 #: ../src/guestfs-actions.pod:6892 ../fish/guestfish-actions.pod:4616
19048 msgid ""
19049 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19050 "volumes that this volume group resides on."
19051 msgstr ""
19052
19053 # type: textblock
19054 #. type: textblock
19055 #: ../src/guestfs-actions.pod:6895
19056 msgid ""
19057 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19058 "associate physical volumes and volume groups."
19059 msgstr ""
19060
19061 # type: textblock
19062 #. type: textblock
19063 #: ../src/guestfs-actions.pod:6898
19064 msgid "See also C<guestfs_vglvuuids>."
19065 msgstr ""
19066
19067 # type: =head2
19068 #. type: =head2
19069 #: ../src/guestfs-actions.pod:6906
19070 msgid "guestfs_vgremove"
19071 msgstr ""
19072
19073 # type: verbatim
19074 #. type: verbatim
19075 #: ../src/guestfs-actions.pod:6908
19076 #, no-wrap
19077 msgid ""
19078 " int\n"
19079 " guestfs_vgremove (guestfs_h *g,\n"
19080 "                   const char *vgname);\n"
19081 "\n"
19082 msgstr ""
19083
19084 # type: textblock
19085 #. type: textblock
19086 #: ../src/guestfs-actions.pod:6912 ../fish/guestfish-actions.pod:4628
19087 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19088 msgstr ""
19089
19090 # type: textblock
19091 #. type: textblock
19092 #: ../src/guestfs-actions.pod:6914 ../fish/guestfish-actions.pod:4630
19093 msgid ""
19094 "This also forcibly removes all logical volumes in the volume group (if any)."
19095 msgstr ""
19096
19097 # type: =head2
19098 #. type: =head2
19099 #: ../src/guestfs-actions.pod:6921
19100 msgid "guestfs_vgrename"
19101 msgstr ""
19102
19103 # type: verbatim
19104 #. type: verbatim
19105 #: ../src/guestfs-actions.pod:6923
19106 #, no-wrap
19107 msgid ""
19108 " int\n"
19109 " guestfs_vgrename (guestfs_h *g,\n"
19110 "                   const char *volgroup,\n"
19111 "                   const char *newvolgroup);\n"
19112 "\n"
19113 msgstr ""
19114
19115 # type: textblock
19116 #. type: textblock
19117 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4637
19118 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19119 msgstr ""
19120
19121 # type: =head2
19122 #. type: =head2
19123 #: ../src/guestfs-actions.pod:6934
19124 msgid "guestfs_vgs"
19125 msgstr ""
19126
19127 # type: verbatim
19128 #. type: verbatim
19129 #: ../src/guestfs-actions.pod:6936
19130 #, no-wrap
19131 msgid ""
19132 " char **\n"
19133 " guestfs_vgs (guestfs_h *g);\n"
19134 "\n"
19135 msgstr ""
19136
19137 # type: textblock
19138 #. type: textblock
19139 #: ../src/guestfs-actions.pod:6939 ../fish/guestfish-actions.pod:4643
19140 msgid ""
19141 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19142 "> command."
19143 msgstr ""
19144
19145 # type: textblock
19146 #. type: textblock
19147 #: ../src/guestfs-actions.pod:6942 ../fish/guestfish-actions.pod:4646
19148 msgid ""
19149 "This returns a list of just the volume group names that were detected (eg. "
19150 "C<VolGroup00>)."
19151 msgstr ""
19152
19153 # type: textblock
19154 #. type: textblock
19155 #: ../src/guestfs-actions.pod:6945
19156 msgid "See also C<guestfs_vgs_full>."
19157 msgstr ""
19158
19159 # type: =head2
19160 #. type: =head2
19161 #: ../src/guestfs-actions.pod:6953
19162 msgid "guestfs_vgs_full"
19163 msgstr ""
19164
19165 # type: verbatim
19166 #. type: verbatim
19167 #: ../src/guestfs-actions.pod:6955
19168 #, no-wrap
19169 msgid ""
19170 " struct guestfs_lvm_vg_list *\n"
19171 " guestfs_vgs_full (guestfs_h *g);\n"
19172 "\n"
19173 msgstr ""
19174
19175 # type: textblock
19176 #. type: textblock
19177 #: ../src/guestfs-actions.pod:6958 ../fish/guestfish-actions.pod:4655
19178 msgid ""
19179 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19180 "> command.  The \"full\" version includes all fields."
19181 msgstr ""
19182
19183 # type: textblock
19184 #. type: textblock
19185 #: ../src/guestfs-actions.pod:6961
19186 msgid ""
19187 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19188 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19189 msgstr ""
19190
19191 # type: =head2
19192 #. type: =head2
19193 #: ../src/guestfs-actions.pod:6967
19194 msgid "guestfs_vgscan"
19195 msgstr ""
19196
19197 # type: verbatim
19198 #. type: verbatim
19199 #: ../src/guestfs-actions.pod:6969
19200 #, no-wrap
19201 msgid ""
19202 " int\n"
19203 " guestfs_vgscan (guestfs_h *g);\n"
19204 "\n"
19205 msgstr ""
19206
19207 # type: textblock
19208 #. type: textblock
19209 #: ../src/guestfs-actions.pod:6972 ../fish/guestfish-actions.pod:4662
19210 msgid ""
19211 "This rescans all block devices and rebuilds the list of LVM physical "
19212 "volumes, volume groups and logical volumes."
19213 msgstr ""
19214
19215 # type: =head2
19216 #. type: =head2
19217 #: ../src/guestfs-actions.pod:6979
19218 msgid "guestfs_vguuid"
19219 msgstr ""
19220
19221 # type: verbatim
19222 #. type: verbatim
19223 #: ../src/guestfs-actions.pod:6981
19224 #, no-wrap
19225 msgid ""
19226 " char *\n"
19227 " guestfs_vguuid (guestfs_h *g,\n"
19228 "                 const char *vgname);\n"
19229 "\n"
19230 msgstr ""
19231
19232 # type: textblock
19233 #. type: textblock
19234 #: ../src/guestfs-actions.pod:6985 ../fish/guestfish-actions.pod:4669
19235 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19236 msgstr ""
19237
19238 # type: =head2
19239 #. type: =head2
19240 #: ../src/guestfs-actions.pod:6992
19241 msgid "guestfs_wait_ready"
19242 msgstr ""
19243
19244 # type: verbatim
19245 #. type: verbatim
19246 #: ../src/guestfs-actions.pod:6994
19247 #, no-wrap
19248 msgid ""
19249 " int\n"
19250 " guestfs_wait_ready (guestfs_h *g);\n"
19251 "\n"
19252 msgstr ""
19253
19254 # type: textblock
19255 #. type: textblock
19256 #: ../src/guestfs-actions.pod:6997
19257 msgid "This function is a no op."
19258 msgstr ""
19259
19260 # type: textblock
19261 #. type: textblock
19262 #: ../src/guestfs-actions.pod:6999
19263 msgid ""
19264 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19265 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19266 "is no longer necessary because C<guestfs_launch> now does the waiting."
19267 msgstr ""
19268
19269 # type: textblock
19270 #. type: textblock
19271 #: ../src/guestfs-actions.pod:7004
19272 msgid ""
19273 "If you see any calls to this function in code then you can just remove them, "
19274 "unless you want to retain compatibility with older versions of the API."
19275 msgstr ""
19276
19277 # type: =head2
19278 #. type: =head2
19279 #: ../src/guestfs-actions.pod:7012
19280 msgid "guestfs_wc_c"
19281 msgstr ""
19282
19283 # type: verbatim
19284 #. type: verbatim
19285 #: ../src/guestfs-actions.pod:7014
19286 #, no-wrap
19287 msgid ""
19288 " int\n"
19289 " guestfs_wc_c (guestfs_h *g,\n"
19290 "               const char *path);\n"
19291 "\n"
19292 msgstr ""
19293
19294 # type: textblock
19295 #. type: textblock
19296 #: ../src/guestfs-actions.pod:7018 ../fish/guestfish-actions.pod:4675
19297 msgid ""
19298 "This command counts the characters in a file, using the C<wc -c> external "
19299 "command."
19300 msgstr ""
19301
19302 # type: =head2
19303 #. type: =head2
19304 #: ../src/guestfs-actions.pod:7025
19305 msgid "guestfs_wc_l"
19306 msgstr ""
19307
19308 # type: verbatim
19309 #. type: verbatim
19310 #: ../src/guestfs-actions.pod:7027
19311 #, no-wrap
19312 msgid ""
19313 " int\n"
19314 " guestfs_wc_l (guestfs_h *g,\n"
19315 "               const char *path);\n"
19316 "\n"
19317 msgstr ""
19318
19319 # type: textblock
19320 #. type: textblock
19321 #: ../src/guestfs-actions.pod:7031 ../fish/guestfish-actions.pod:4682
19322 msgid ""
19323 "This command counts the lines in a file, using the C<wc -l> external command."
19324 msgstr ""
19325
19326 # type: =head2
19327 #. type: =head2
19328 #: ../src/guestfs-actions.pod:7038
19329 msgid "guestfs_wc_w"
19330 msgstr ""
19331
19332 # type: verbatim
19333 #. type: verbatim
19334 #: ../src/guestfs-actions.pod:7040
19335 #, no-wrap
19336 msgid ""
19337 " int\n"
19338 " guestfs_wc_w (guestfs_h *g,\n"
19339 "               const char *path);\n"
19340 "\n"
19341 msgstr ""
19342
19343 # type: textblock
19344 #. type: textblock
19345 #: ../src/guestfs-actions.pod:7044 ../fish/guestfish-actions.pod:4689
19346 msgid ""
19347 "This command counts the words in a file, using the C<wc -w> external command."
19348 msgstr ""
19349
19350 # type: =head2
19351 #. type: =head2
19352 #: ../src/guestfs-actions.pod:7051
19353 msgid "guestfs_write"
19354 msgstr ""
19355
19356 # type: verbatim
19357 #. type: verbatim
19358 #: ../src/guestfs-actions.pod:7053
19359 #, no-wrap
19360 msgid ""
19361 " int\n"
19362 " guestfs_write (guestfs_h *g,\n"
19363 "                const char *path,\n"
19364 "                const char *content,\n"
19365 "                size_t content_size);\n"
19366 "\n"
19367 msgstr ""
19368
19369 # type: textblock
19370 #. type: textblock
19371 #: ../src/guestfs-actions.pod:7059 ../fish/guestfish-actions.pod:4696
19372 msgid ""
19373 "This call creates a file called C<path>.  The content of the file is the "
19374 "string C<content> (which can contain any 8 bit data)."
19375 msgstr ""
19376
19377 # type: =head2
19378 #. type: =head2
19379 #: ../src/guestfs-actions.pod:7069
19380 msgid "guestfs_write_file"
19381 msgstr ""
19382
19383 # type: verbatim
19384 #. type: verbatim
19385 #: ../src/guestfs-actions.pod:7071
19386 #, no-wrap
19387 msgid ""
19388 " int\n"
19389 " guestfs_write_file (guestfs_h *g,\n"
19390 "                     const char *path,\n"
19391 "                     const char *content,\n"
19392 "                     int size);\n"
19393 "\n"
19394 msgstr ""
19395
19396 # type: textblock
19397 #. type: textblock
19398 #: ../src/guestfs-actions.pod:7077 ../fish/guestfish-actions.pod:4706
19399 msgid ""
19400 "This call creates a file called C<path>.  The contents of the file is the "
19401 "string C<content> (which can contain any 8 bit data), with length C<size>."
19402 msgstr ""
19403
19404 # type: textblock
19405 #. type: textblock
19406 #: ../src/guestfs-actions.pod:7081 ../fish/guestfish-actions.pod:4710
19407 msgid ""
19408 "As a special case, if C<size> is C<0> then the length is calculated using "
19409 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19410 msgstr ""
19411
19412 # type: textblock
19413 #. type: textblock
19414 #: ../src/guestfs-actions.pod:7085 ../fish/guestfish-actions.pod:4714
19415 msgid ""
19416 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19417 "I<not> work, even if the length is specified."
19418 msgstr ""
19419
19420 # type: textblock
19421 #. type: textblock
19422 #: ../src/guestfs-actions.pod:7093 ../fish/guestfish-actions.pod:4720
19423 msgid ""
19424 "This function is deprecated.  In new code, use the C<write> call instead."
19425 msgstr ""
19426
19427 # type: =head2
19428 #. type: =head2
19429 #: ../src/guestfs-actions.pod:7102
19430 msgid "guestfs_zegrep"
19431 msgstr ""
19432
19433 # type: verbatim
19434 #. type: verbatim
19435 #: ../src/guestfs-actions.pod:7104
19436 #, no-wrap
19437 msgid ""
19438 " char **\n"
19439 " guestfs_zegrep (guestfs_h *g,\n"
19440 "                 const char *regex,\n"
19441 "                 const char *path);\n"
19442 "\n"
19443 msgstr ""
19444
19445 # type: textblock
19446 #. type: textblock
19447 #: ../src/guestfs-actions.pod:7109 ../fish/guestfish-actions.pod:4731
19448 msgid ""
19449 "This calls the external C<zegrep> program and returns the matching lines."
19450 msgstr ""
19451
19452 # type: =head2
19453 #. type: =head2
19454 #: ../src/guestfs-actions.pod:7121
19455 msgid "guestfs_zegrepi"
19456 msgstr ""
19457
19458 # type: verbatim
19459 #. type: verbatim
19460 #: ../src/guestfs-actions.pod:7123
19461 #, no-wrap
19462 msgid ""
19463 " char **\n"
19464 " guestfs_zegrepi (guestfs_h *g,\n"
19465 "                  const char *regex,\n"
19466 "                  const char *path);\n"
19467 "\n"
19468 msgstr ""
19469
19470 # type: textblock
19471 #. type: textblock
19472 #: ../src/guestfs-actions.pod:7128 ../fish/guestfish-actions.pod:4741
19473 msgid ""
19474 "This calls the external C<zegrep -i> program and returns the matching lines."
19475 msgstr ""
19476
19477 # type: =head2
19478 #. type: =head2
19479 #: ../src/guestfs-actions.pod:7140
19480 msgid "guestfs_zero"
19481 msgstr ""
19482
19483 # type: verbatim
19484 #. type: verbatim
19485 #: ../src/guestfs-actions.pod:7142
19486 #, no-wrap
19487 msgid ""
19488 " int\n"
19489 " guestfs_zero (guestfs_h *g,\n"
19490 "               const char *device);\n"
19491 "\n"
19492 msgstr ""
19493
19494 # type: textblock
19495 #. type: textblock
19496 #: ../src/guestfs-actions.pod:7146 ../fish/guestfish-actions.pod:4751
19497 msgid "This command writes zeroes over the first few blocks of C<device>."
19498 msgstr ""
19499
19500 # type: textblock
19501 #. type: textblock
19502 #: ../src/guestfs-actions.pod:7148 ../fish/guestfish-actions.pod:4753
19503 msgid ""
19504 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19505 "securely wipe the device).  It should be sufficient to remove any partition "
19506 "tables, filesystem superblocks and so on."
19507 msgstr ""
19508
19509 # type: textblock
19510 #. type: textblock
19511 #: ../src/guestfs-actions.pod:7152
19512 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
19513 msgstr ""
19514
19515 # type: =head2
19516 #. type: =head2
19517 #: ../src/guestfs-actions.pod:7163
19518 msgid "guestfs_zero_device"
19519 msgstr ""
19520
19521 # type: verbatim
19522 #. type: verbatim
19523 #: ../src/guestfs-actions.pod:7165
19524 #, no-wrap
19525 msgid ""
19526 " int\n"
19527 " guestfs_zero_device (guestfs_h *g,\n"
19528 "                      const char *device);\n"
19529 "\n"
19530 msgstr ""
19531
19532 # type: textblock
19533 #. type: textblock
19534 #: ../src/guestfs-actions.pod:7169
19535 msgid ""
19536 "This command writes zeroes over the entire C<device>.  Compare with "
19537 "C<guestfs_zero> which just zeroes the first few blocks of a device."
19538 msgstr ""
19539
19540 # type: textblock
19541 #. type: textblock
19542 #: ../src/guestfs-actions.pod:7183
19543 msgid "(Added in 1.3.1)"
19544 msgstr ""
19545
19546 # type: =head2
19547 #. type: =head2
19548 #: ../src/guestfs-actions.pod:7185
19549 msgid "guestfs_zerofree"
19550 msgstr ""
19551
19552 # type: verbatim
19553 #. type: verbatim
19554 #: ../src/guestfs-actions.pod:7187
19555 #, no-wrap
19556 msgid ""
19557 " int\n"
19558 " guestfs_zerofree (guestfs_h *g,\n"
19559 "                   const char *device);\n"
19560 "\n"
19561 msgstr ""
19562
19563 # type: textblock
19564 #. type: textblock
19565 #: ../src/guestfs-actions.pod:7191 ../fish/guestfish-actions.pod:4774
19566 msgid ""
19567 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19568 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19569 "possible to compress the filesystem more effectively."
19570 msgstr ""
19571
19572 # type: textblock
19573 #. type: textblock
19574 #: ../src/guestfs-actions.pod:7196 ../fish/guestfish-actions.pod:4779
19575 msgid "You should B<not> run this program if the filesystem is mounted."
19576 msgstr ""
19577
19578 # type: textblock
19579 #. type: textblock
19580 #: ../src/guestfs-actions.pod:7199 ../fish/guestfish-actions.pod:4782
19581 msgid ""
19582 "It is possible that using this program can damage the filesystem or data on "
19583 "the filesystem."
19584 msgstr ""
19585
19586 # type: =head2
19587 #. type: =head2
19588 #: ../src/guestfs-actions.pod:7206
19589 msgid "guestfs_zfgrep"
19590 msgstr ""
19591
19592 # type: verbatim
19593 #. type: verbatim
19594 #: ../src/guestfs-actions.pod:7208
19595 #, no-wrap
19596 msgid ""
19597 " char **\n"
19598 " guestfs_zfgrep (guestfs_h *g,\n"
19599 "                 const char *pattern,\n"
19600 "                 const char *path);\n"
19601 "\n"
19602 msgstr ""
19603
19604 # type: textblock
19605 #. type: textblock
19606 #: ../src/guestfs-actions.pod:7213 ../fish/guestfish-actions.pod:4789
19607 msgid ""
19608 "This calls the external C<zfgrep> program and returns the matching lines."
19609 msgstr ""
19610
19611 # type: =head2
19612 #. type: =head2
19613 #: ../src/guestfs-actions.pod:7225
19614 msgid "guestfs_zfgrepi"
19615 msgstr ""
19616
19617 # type: verbatim
19618 #. type: verbatim
19619 #: ../src/guestfs-actions.pod:7227
19620 #, no-wrap
19621 msgid ""
19622 " char **\n"
19623 " guestfs_zfgrepi (guestfs_h *g,\n"
19624 "                  const char *pattern,\n"
19625 "                  const char *path);\n"
19626 "\n"
19627 msgstr ""
19628
19629 # type: textblock
19630 #. type: textblock
19631 #: ../src/guestfs-actions.pod:7232 ../fish/guestfish-actions.pod:4799
19632 msgid ""
19633 "This calls the external C<zfgrep -i> program and returns the matching lines."
19634 msgstr ""
19635
19636 # type: =head2
19637 #. type: =head2
19638 #: ../src/guestfs-actions.pod:7244
19639 msgid "guestfs_zfile"
19640 msgstr ""
19641
19642 # type: verbatim
19643 #. type: verbatim
19644 #: ../src/guestfs-actions.pod:7246
19645 #, no-wrap
19646 msgid ""
19647 " char *\n"
19648 " guestfs_zfile (guestfs_h *g,\n"
19649 "                const char *meth,\n"
19650 "                const char *path);\n"
19651 "\n"
19652 msgstr ""
19653
19654 # type: textblock
19655 #. type: textblock
19656 #: ../src/guestfs-actions.pod:7251 ../fish/guestfish-actions.pod:4809
19657 msgid ""
19658 "This command runs C<file> after first decompressing C<path> using C<method>."
19659 msgstr ""
19660
19661 # type: textblock
19662 #. type: textblock
19663 #: ../src/guestfs-actions.pod:7254 ../fish/guestfish-actions.pod:4812
19664 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19665 msgstr ""
19666
19667 # type: textblock
19668 #. type: textblock
19669 #: ../src/guestfs-actions.pod:7256
19670 msgid ""
19671 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
19672 "files."
19673 msgstr ""
19674
19675 # type: textblock
19676 #. type: textblock
19677 #: ../src/guestfs-actions.pod:7262 ../fish/guestfish-actions.pod:4817
19678 msgid ""
19679 "This function is deprecated.  In new code, use the C<file> call instead."
19680 msgstr ""
19681
19682 # type: =head2
19683 #. type: =head2
19684 #: ../src/guestfs-actions.pod:7271
19685 msgid "guestfs_zgrep"
19686 msgstr ""
19687
19688 # type: verbatim
19689 #. type: verbatim
19690 #: ../src/guestfs-actions.pod:7273
19691 #, no-wrap
19692 msgid ""
19693 " char **\n"
19694 " guestfs_zgrep (guestfs_h *g,\n"
19695 "                const char *regex,\n"
19696 "                const char *path);\n"
19697 "\n"
19698 msgstr ""
19699
19700 # type: textblock
19701 #. type: textblock
19702 #: ../src/guestfs-actions.pod:7278 ../fish/guestfish-actions.pod:4828
19703 msgid ""
19704 "This calls the external C<zgrep> program and returns the matching lines."
19705 msgstr ""
19706
19707 # type: =head2
19708 #. type: =head2
19709 #: ../src/guestfs-actions.pod:7290
19710 msgid "guestfs_zgrepi"
19711 msgstr ""
19712
19713 # type: verbatim
19714 #. type: verbatim
19715 #: ../src/guestfs-actions.pod:7292
19716 #, no-wrap
19717 msgid ""
19718 " char **\n"
19719 " guestfs_zgrepi (guestfs_h *g,\n"
19720 "                 const char *regex,\n"
19721 "                 const char *path);\n"
19722 "\n"
19723 msgstr ""
19724
19725 # type: textblock
19726 #. type: textblock
19727 #: ../src/guestfs-actions.pod:7297 ../fish/guestfish-actions.pod:4838
19728 msgid ""
19729 "This calls the external C<zgrep -i> program and returns the matching lines."
19730 msgstr ""
19731
19732 # type: =item
19733 #. type: =item
19734 #: ../src/guestfs-availability.pod:3
19735 msgid "B<augeas>"
19736 msgstr ""
19737
19738 # type: textblock
19739 #. type: textblock
19740 #: ../src/guestfs-availability.pod:5
19741 msgid ""
19742 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
19743 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
19744 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
19745 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
19746 "L</guestfs_aug_save> L</guestfs_aug_set>"
19747 msgstr ""
19748
19749 # type: =item
19750 #. type: =item
19751 #: ../src/guestfs-availability.pod:21
19752 msgid "B<inotify>"
19753 msgstr ""
19754
19755 # type: textblock
19756 #. type: textblock
19757 #: ../src/guestfs-availability.pod:23
19758 msgid ""
19759 "The following functions: L</guestfs_inotify_add_watch> L</"
19760 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
19761 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
19762 msgstr ""
19763
19764 # type: =item
19765 #. type: =item
19766 #: ../src/guestfs-availability.pod:31
19767 msgid "B<linuxfsuuid>"
19768 msgstr ""
19769
19770 # type: textblock
19771 #. type: textblock
19772 #: ../src/guestfs-availability.pod:33
19773 msgid ""
19774 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
19775 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
19776 msgstr ""
19777
19778 # type: =item
19779 #. type: =item
19780 #: ../src/guestfs-availability.pod:40
19781 msgid "B<linuxmodules>"
19782 msgstr ""
19783
19784 # type: textblock
19785 #. type: textblock
19786 #: ../src/guestfs-availability.pod:42
19787 msgid "The following functions: L</guestfs_modprobe>"
19788 msgstr ""
19789
19790 # type: =item
19791 #. type: =item
19792 #: ../src/guestfs-availability.pod:45
19793 msgid "B<linuxxattrs>"
19794 msgstr ""
19795
19796 # type: textblock
19797 #. type: textblock
19798 #: ../src/guestfs-availability.pod:47
19799 msgid ""
19800 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
19801 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
19802 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
19803 "guestfs_setxattr>"
19804 msgstr ""
19805
19806 # type: =item
19807 #. type: =item
19808 #: ../src/guestfs-availability.pod:58
19809 msgid "B<luks>"
19810 msgstr ""
19811
19812 # type: textblock
19813 #. type: textblock
19814 #: ../src/guestfs-availability.pod:60
19815 msgid ""
19816 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
19817 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
19818 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
19819 msgstr ""
19820
19821 # type: =item
19822 #. type: =item
19823 #: ../src/guestfs-availability.pod:69
19824 msgid "B<lvm2>"
19825 msgstr ""
19826
19827 # type: textblock
19828 #. type: textblock
19829 #: ../src/guestfs-availability.pod:71
19830 msgid ""
19831 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
19832 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
19833 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
19834 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
19835 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
19836 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
19837 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
19838 msgstr ""
19839
19840 # type: =item
19841 #. type: =item
19842 #: ../src/guestfs-availability.pod:94
19843 msgid "B<mknod>"
19844 msgstr ""
19845
19846 # type: textblock
19847 #. type: textblock
19848 #: ../src/guestfs-availability.pod:96
19849 msgid ""
19850 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
19851 "guestfs_mknod_b> L</guestfs_mknod_c>"
19852 msgstr ""
19853
19854 # type: =item
19855 #. type: =item
19856 #: ../src/guestfs-availability.pod:102
19857 msgid "B<ntfs3g>"
19858 msgstr ""
19859
19860 # type: textblock
19861 #. type: textblock
19862 #: ../src/guestfs-availability.pod:104
19863 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
19864 msgstr ""
19865
19866 # type: =item
19867 #. type: =item
19868 #: ../src/guestfs-availability.pod:107
19869 msgid "B<ntfsprogs>"
19870 msgstr ""
19871
19872 # type: textblock
19873 #. type: textblock
19874 #: ../src/guestfs-availability.pod:109
19875 msgid ""
19876 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
19877 msgstr ""
19878
19879 # type: =item
19880 #. type: =item
19881 #: ../src/guestfs-availability.pod:113
19882 msgid "B<realpath>"
19883 msgstr ""
19884
19885 # type: textblock
19886 #. type: textblock
19887 #: ../src/guestfs-availability.pod:115
19888 msgid "The following functions: L</guestfs_realpath>"
19889 msgstr ""
19890
19891 # type: =item
19892 #. type: =item
19893 #: ../src/guestfs-availability.pod:118
19894 msgid "B<scrub>"
19895 msgstr ""
19896
19897 # type: textblock
19898 #. type: textblock
19899 #: ../src/guestfs-availability.pod:120
19900 msgid ""
19901 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
19902 "guestfs_scrub_freespace>"
19903 msgstr ""
19904
19905 # type: =item
19906 #. type: =item
19907 #: ../src/guestfs-availability.pod:125
19908 msgid "B<selinux>"
19909 msgstr ""
19910
19911 # type: textblock
19912 #. type: textblock
19913 #: ../src/guestfs-availability.pod:127
19914 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
19915 msgstr ""
19916
19917 # type: =item
19918 #. type: =item
19919 #: ../src/guestfs-availability.pod:131
19920 msgid "B<xz>"
19921 msgstr ""
19922
19923 # type: textblock
19924 #. type: textblock
19925 #: ../src/guestfs-availability.pod:133
19926 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
19927 msgstr ""
19928
19929 # type: =item
19930 #. type: =item
19931 #: ../src/guestfs-availability.pod:137
19932 msgid "B<zerofree>"
19933 msgstr ""
19934
19935 # type: textblock
19936 #. type: textblock
19937 #: ../src/guestfs-availability.pod:139
19938 msgid "The following functions: L</guestfs_zerofree>"
19939 msgstr ""
19940
19941 # type: =head2
19942 #. type: =head2
19943 #: ../src/guestfs-structs.pod:1
19944 msgid "guestfs_int_bool"
19945 msgstr ""
19946
19947 # type: verbatim
19948 #. type: verbatim
19949 #: ../src/guestfs-structs.pod:3
19950 #, no-wrap
19951 msgid ""
19952 " struct guestfs_int_bool {\n"
19953 "   int32_t i;\n"
19954 "   int32_t b;\n"
19955 " };\n"
19956 " \n"
19957 msgstr ""
19958
19959 # type: verbatim
19960 #. type: verbatim
19961 #: ../src/guestfs-structs.pod:8
19962 #, no-wrap
19963 msgid ""
19964 " struct guestfs_int_bool_list {\n"
19965 "   uint32_t len; /* Number of elements in list. */\n"
19966 "   struct guestfs_int_bool *val; /* Elements. */\n"
19967 " };\n"
19968 " \n"
19969 msgstr ""
19970
19971 # type: verbatim
19972 #. type: verbatim
19973 #: ../src/guestfs-structs.pod:13
19974 #, no-wrap
19975 msgid ""
19976 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
19977 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
19978 "\n"
19979 msgstr ""
19980
19981 # type: =head2
19982 #. type: =head2
19983 #: ../src/guestfs-structs.pod:16
19984 msgid "guestfs_lvm_pv"
19985 msgstr ""
19986
19987 # type: verbatim
19988 #. type: verbatim
19989 #: ../src/guestfs-structs.pod:18
19990 #, no-wrap
19991 msgid ""
19992 " struct guestfs_lvm_pv {\n"
19993 "   char *pv_name;\n"
19994 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19995 "   char pv_uuid[32];\n"
19996 "   char *pv_fmt;\n"
19997 "   uint64_t pv_size;\n"
19998 "   uint64_t dev_size;\n"
19999 "   uint64_t pv_free;\n"
20000 "   uint64_t pv_used;\n"
20001 "   char *pv_attr;\n"
20002 "   int64_t pv_pe_count;\n"
20003 "   int64_t pv_pe_alloc_count;\n"
20004 "   char *pv_tags;\n"
20005 "   uint64_t pe_start;\n"
20006 "   int64_t pv_mda_count;\n"
20007 "   uint64_t pv_mda_free;\n"
20008 " };\n"
20009 " \n"
20010 msgstr ""
20011
20012 # type: verbatim
20013 #. type: verbatim
20014 #: ../src/guestfs-structs.pod:36
20015 #, no-wrap
20016 msgid ""
20017 " struct guestfs_lvm_pv_list {\n"
20018 "   uint32_t len; /* Number of elements in list. */\n"
20019 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
20020 " };\n"
20021 " \n"
20022 msgstr ""
20023
20024 # type: verbatim
20025 #. type: verbatim
20026 #: ../src/guestfs-structs.pod:41
20027 #, no-wrap
20028 msgid ""
20029 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20030 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20031 "\n"
20032 msgstr ""
20033
20034 # type: =head2
20035 #. type: =head2
20036 #: ../src/guestfs-structs.pod:44
20037 msgid "guestfs_lvm_vg"
20038 msgstr ""
20039
20040 # type: verbatim
20041 #. type: verbatim
20042 #: ../src/guestfs-structs.pod:46
20043 #, no-wrap
20044 msgid ""
20045 " struct guestfs_lvm_vg {\n"
20046 "   char *vg_name;\n"
20047 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20048 "   char vg_uuid[32];\n"
20049 "   char *vg_fmt;\n"
20050 "   char *vg_attr;\n"
20051 "   uint64_t vg_size;\n"
20052 "   uint64_t vg_free;\n"
20053 "   char *vg_sysid;\n"
20054 "   uint64_t vg_extent_size;\n"
20055 "   int64_t vg_extent_count;\n"
20056 "   int64_t vg_free_count;\n"
20057 "   int64_t max_lv;\n"
20058 "   int64_t max_pv;\n"
20059 "   int64_t pv_count;\n"
20060 "   int64_t lv_count;\n"
20061 "   int64_t snap_count;\n"
20062 "   int64_t vg_seqno;\n"
20063 "   char *vg_tags;\n"
20064 "   int64_t vg_mda_count;\n"
20065 "   uint64_t vg_mda_free;\n"
20066 " };\n"
20067 " \n"
20068 msgstr ""
20069
20070 # type: verbatim
20071 #. type: verbatim
20072 #: ../src/guestfs-structs.pod:69
20073 #, no-wrap
20074 msgid ""
20075 " struct guestfs_lvm_vg_list {\n"
20076 "   uint32_t len; /* Number of elements in list. */\n"
20077 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20078 " };\n"
20079 " \n"
20080 msgstr ""
20081
20082 # type: verbatim
20083 #. type: verbatim
20084 #: ../src/guestfs-structs.pod:74
20085 #, no-wrap
20086 msgid ""
20087 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20088 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20089 "\n"
20090 msgstr ""
20091
20092 # type: =head2
20093 #. type: =head2
20094 #: ../src/guestfs-structs.pod:77
20095 msgid "guestfs_lvm_lv"
20096 msgstr ""
20097
20098 # type: verbatim
20099 #. type: verbatim
20100 #: ../src/guestfs-structs.pod:79
20101 #, no-wrap
20102 msgid ""
20103 " struct guestfs_lvm_lv {\n"
20104 "   char *lv_name;\n"
20105 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20106 "   char lv_uuid[32];\n"
20107 "   char *lv_attr;\n"
20108 "   int64_t lv_major;\n"
20109 "   int64_t lv_minor;\n"
20110 "   int64_t lv_kernel_major;\n"
20111 "   int64_t lv_kernel_minor;\n"
20112 "   uint64_t lv_size;\n"
20113 "   int64_t seg_count;\n"
20114 "   char *origin;\n"
20115 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20116 "   float snap_percent;\n"
20117 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20118 "   float copy_percent;\n"
20119 "   char *move_pv;\n"
20120 "   char *lv_tags;\n"
20121 "   char *mirror_log;\n"
20122 "   char *modules;\n"
20123 " };\n"
20124 " \n"
20125 msgstr ""
20126
20127 # type: verbatim
20128 #. type: verbatim
20129 #: ../src/guestfs-structs.pod:101
20130 #, no-wrap
20131 msgid ""
20132 " struct guestfs_lvm_lv_list {\n"
20133 "   uint32_t len; /* Number of elements in list. */\n"
20134 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20135 " };\n"
20136 " \n"
20137 msgstr ""
20138
20139 # type: verbatim
20140 #. type: verbatim
20141 #: ../src/guestfs-structs.pod:106
20142 #, no-wrap
20143 msgid ""
20144 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20145 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20146 "\n"
20147 msgstr ""
20148
20149 # type: verbatim
20150 #. type: verbatim
20151 #: ../src/guestfs-structs.pod:111
20152 #, no-wrap
20153 msgid ""
20154 " struct guestfs_stat {\n"
20155 "   int64_t dev;\n"
20156 "   int64_t ino;\n"
20157 "   int64_t mode;\n"
20158 "   int64_t nlink;\n"
20159 "   int64_t uid;\n"
20160 "   int64_t gid;\n"
20161 "   int64_t rdev;\n"
20162 "   int64_t size;\n"
20163 "   int64_t blksize;\n"
20164 "   int64_t blocks;\n"
20165 "   int64_t atime;\n"
20166 "   int64_t mtime;\n"
20167 "   int64_t ctime;\n"
20168 " };\n"
20169 " \n"
20170 msgstr ""
20171
20172 # type: verbatim
20173 #. type: verbatim
20174 #: ../src/guestfs-structs.pod:127
20175 #, no-wrap
20176 msgid ""
20177 " struct guestfs_stat_list {\n"
20178 "   uint32_t len; /* Number of elements in list. */\n"
20179 "   struct guestfs_stat *val; /* Elements. */\n"
20180 " };\n"
20181 " \n"
20182 msgstr ""
20183
20184 # type: verbatim
20185 #. type: verbatim
20186 #: ../src/guestfs-structs.pod:132
20187 #, no-wrap
20188 msgid ""
20189 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20190 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20191 "\n"
20192 msgstr ""
20193
20194 # type: verbatim
20195 #. type: verbatim
20196 #: ../src/guestfs-structs.pod:137
20197 #, no-wrap
20198 msgid ""
20199 " struct guestfs_statvfs {\n"
20200 "   int64_t bsize;\n"
20201 "   int64_t frsize;\n"
20202 "   int64_t blocks;\n"
20203 "   int64_t bfree;\n"
20204 "   int64_t bavail;\n"
20205 "   int64_t files;\n"
20206 "   int64_t ffree;\n"
20207 "   int64_t favail;\n"
20208 "   int64_t fsid;\n"
20209 "   int64_t flag;\n"
20210 "   int64_t namemax;\n"
20211 " };\n"
20212 " \n"
20213 msgstr ""
20214
20215 # type: verbatim
20216 #. type: verbatim
20217 #: ../src/guestfs-structs.pod:151
20218 #, no-wrap
20219 msgid ""
20220 " struct guestfs_statvfs_list {\n"
20221 "   uint32_t len; /* Number of elements in list. */\n"
20222 "   struct guestfs_statvfs *val; /* Elements. */\n"
20223 " };\n"
20224 " \n"
20225 msgstr ""
20226
20227 # type: verbatim
20228 #. type: verbatim
20229 #: ../src/guestfs-structs.pod:156
20230 #, no-wrap
20231 msgid ""
20232 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20233 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20234 "\n"
20235 msgstr ""
20236
20237 # type: =head2
20238 #. type: =head2
20239 #: ../src/guestfs-structs.pod:159
20240 msgid "guestfs_dirent"
20241 msgstr ""
20242
20243 # type: verbatim
20244 #. type: verbatim
20245 #: ../src/guestfs-structs.pod:161
20246 #, no-wrap
20247 msgid ""
20248 " struct guestfs_dirent {\n"
20249 "   int64_t ino;\n"
20250 "   char ftyp;\n"
20251 "   char *name;\n"
20252 " };\n"
20253 " \n"
20254 msgstr ""
20255
20256 # type: verbatim
20257 #. type: verbatim
20258 #: ../src/guestfs-structs.pod:167
20259 #, no-wrap
20260 msgid ""
20261 " struct guestfs_dirent_list {\n"
20262 "   uint32_t len; /* Number of elements in list. */\n"
20263 "   struct guestfs_dirent *val; /* Elements. */\n"
20264 " };\n"
20265 " \n"
20266 msgstr ""
20267
20268 # type: verbatim
20269 #. type: verbatim
20270 #: ../src/guestfs-structs.pod:172
20271 #, no-wrap
20272 msgid ""
20273 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20274 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20275 "\n"
20276 msgstr ""
20277
20278 # type: verbatim
20279 #. type: verbatim
20280 #: ../src/guestfs-structs.pod:177
20281 #, no-wrap
20282 msgid ""
20283 " struct guestfs_version {\n"
20284 "   int64_t major;\n"
20285 "   int64_t minor;\n"
20286 "   int64_t release;\n"
20287 "   char *extra;\n"
20288 " };\n"
20289 " \n"
20290 msgstr ""
20291
20292 # type: verbatim
20293 #. type: verbatim
20294 #: ../src/guestfs-structs.pod:184
20295 #, no-wrap
20296 msgid ""
20297 " struct guestfs_version_list {\n"
20298 "   uint32_t len; /* Number of elements in list. */\n"
20299 "   struct guestfs_version *val; /* Elements. */\n"
20300 " };\n"
20301 " \n"
20302 msgstr ""
20303
20304 # type: verbatim
20305 #. type: verbatim
20306 #: ../src/guestfs-structs.pod:189
20307 #, no-wrap
20308 msgid ""
20309 " void guestfs_free_version (struct guestfs_free_version *);\n"
20310 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20311 "\n"
20312 msgstr ""
20313
20314 # type: =head2
20315 #. type: =head2
20316 #: ../src/guestfs-structs.pod:192
20317 msgid "guestfs_xattr"
20318 msgstr ""
20319
20320 # type: verbatim
20321 #. type: verbatim
20322 #: ../src/guestfs-structs.pod:194
20323 #, no-wrap
20324 msgid ""
20325 " struct guestfs_xattr {\n"
20326 "   char *attrname;\n"
20327 "   /* The next two fields describe a byte array. */\n"
20328 "   uint32_t attrval_len;\n"
20329 "   char *attrval;\n"
20330 " };\n"
20331 " \n"
20332 msgstr ""
20333
20334 # type: verbatim
20335 #. type: verbatim
20336 #: ../src/guestfs-structs.pod:201
20337 #, no-wrap
20338 msgid ""
20339 " struct guestfs_xattr_list {\n"
20340 "   uint32_t len; /* Number of elements in list. */\n"
20341 "   struct guestfs_xattr *val; /* Elements. */\n"
20342 " };\n"
20343 " \n"
20344 msgstr ""
20345
20346 # type: verbatim
20347 #. type: verbatim
20348 #: ../src/guestfs-structs.pod:206
20349 #, no-wrap
20350 msgid ""
20351 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20352 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20353 "\n"
20354 msgstr ""
20355
20356 # type: =head2
20357 #. type: =head2
20358 #: ../src/guestfs-structs.pod:209
20359 msgid "guestfs_inotify_event"
20360 msgstr ""
20361
20362 # type: verbatim
20363 #. type: verbatim
20364 #: ../src/guestfs-structs.pod:211
20365 #, no-wrap
20366 msgid ""
20367 " struct guestfs_inotify_event {\n"
20368 "   int64_t in_wd;\n"
20369 "   uint32_t in_mask;\n"
20370 "   uint32_t in_cookie;\n"
20371 "   char *in_name;\n"
20372 " };\n"
20373 " \n"
20374 msgstr ""
20375
20376 # type: verbatim
20377 #. type: verbatim
20378 #: ../src/guestfs-structs.pod:218
20379 #, no-wrap
20380 msgid ""
20381 " struct guestfs_inotify_event_list {\n"
20382 "   uint32_t len; /* Number of elements in list. */\n"
20383 "   struct guestfs_inotify_event *val; /* Elements. */\n"
20384 " };\n"
20385 " \n"
20386 msgstr ""
20387
20388 # type: verbatim
20389 #. type: verbatim
20390 #: ../src/guestfs-structs.pod:223
20391 #, no-wrap
20392 msgid ""
20393 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
20394 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
20395 "\n"
20396 msgstr ""
20397
20398 # type: =head2
20399 #. type: =head2
20400 #: ../src/guestfs-structs.pod:226
20401 msgid "guestfs_partition"
20402 msgstr ""
20403
20404 # type: verbatim
20405 #. type: verbatim
20406 #: ../src/guestfs-structs.pod:228
20407 #, no-wrap
20408 msgid ""
20409 " struct guestfs_partition {\n"
20410 "   int32_t part_num;\n"
20411 "   uint64_t part_start;\n"
20412 "   uint64_t part_end;\n"
20413 "   uint64_t part_size;\n"
20414 " };\n"
20415 " \n"
20416 msgstr ""
20417
20418 # type: verbatim
20419 #. type: verbatim
20420 #: ../src/guestfs-structs.pod:235
20421 #, no-wrap
20422 msgid ""
20423 " struct guestfs_partition_list {\n"
20424 "   uint32_t len; /* Number of elements in list. */\n"
20425 "   struct guestfs_partition *val; /* Elements. */\n"
20426 " };\n"
20427 " \n"
20428 msgstr ""
20429
20430 # type: verbatim
20431 #. type: verbatim
20432 #: ../src/guestfs-structs.pod:240
20433 #, no-wrap
20434 msgid ""
20435 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
20436 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
20437 "\n"
20438 msgstr ""
20439
20440 # type: =head2
20441 #. type: =head2
20442 #: ../src/guestfs-structs.pod:243
20443 msgid "guestfs_application"
20444 msgstr ""
20445
20446 # type: verbatim
20447 #. type: verbatim
20448 #: ../src/guestfs-structs.pod:245
20449 #, no-wrap
20450 msgid ""
20451 " struct guestfs_application {\n"
20452 "   char *app_name;\n"
20453 "   char *app_display_name;\n"
20454 "   int32_t app_epoch;\n"
20455 "   char *app_version;\n"
20456 "   char *app_release;\n"
20457 "   char *app_install_path;\n"
20458 "   char *app_trans_path;\n"
20459 "   char *app_publisher;\n"
20460 "   char *app_url;\n"
20461 "   char *app_source_package;\n"
20462 "   char *app_summary;\n"
20463 "   char *app_description;\n"
20464 " };\n"
20465 " \n"
20466 msgstr ""
20467
20468 # type: verbatim
20469 #. type: verbatim
20470 #: ../src/guestfs-structs.pod:260
20471 #, no-wrap
20472 msgid ""
20473 " struct guestfs_application_list {\n"
20474 "   uint32_t len; /* Number of elements in list. */\n"
20475 "   struct guestfs_application *val; /* Elements. */\n"
20476 " };\n"
20477 " \n"
20478 msgstr ""
20479
20480 # type: verbatim
20481 #. type: verbatim
20482 #: ../src/guestfs-structs.pod:265
20483 #, no-wrap
20484 msgid ""
20485 " void guestfs_free_application (struct guestfs_free_application *);\n"
20486 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
20487 "\n"
20488 msgstr ""
20489
20490 # type: textblock
20491 #. type: textblock
20492 #: ../fish/guestfish.pod:5
20493 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20494 msgstr ""
20495
20496 # type: verbatim
20497 #. type: verbatim
20498 #: ../fish/guestfish.pod:9
20499 #, no-wrap
20500 msgid ""
20501 " guestfish [--options] [commands]\n"
20502 "\n"
20503 msgstr ""
20504
20505 # type: verbatim
20506 #. type: verbatim
20507 #: ../fish/guestfish.pod:11
20508 #, no-wrap
20509 msgid ""
20510 " guestfish\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: verbatim
20515 #. type: verbatim
20516 #: ../fish/guestfish.pod:13
20517 #, no-wrap
20518 msgid ""
20519 " guestfish [--ro|--rw] -a disk.img\n"
20520 "\n"
20521 msgstr ""
20522
20523 # type: verbatim
20524 #. type: verbatim
20525 #: ../fish/guestfish.pod:15
20526 #, no-wrap
20527 msgid ""
20528 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: verbatim
20533 #. type: verbatim
20534 #: ../fish/guestfish.pod:17
20535 #, no-wrap
20536 msgid ""
20537 " guestfish -d libvirt-domain\n"
20538 "\n"
20539 msgstr ""
20540
20541 # type: verbatim
20542 #. type: verbatim
20543 #: ../fish/guestfish.pod:19
20544 #, no-wrap
20545 msgid ""
20546 " guestfish [--ro|--rw] -a disk.img -i\n"
20547 "\n"
20548 msgstr ""
20549
20550 # type: verbatim
20551 #. type: verbatim
20552 #: ../fish/guestfish.pod:21
20553 #, no-wrap
20554 msgid ""
20555 " guestfish -d libvirt-domain -i\n"
20556 "\n"
20557 msgstr ""
20558
20559 # type: =head1
20560 #. type: =head1
20561 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
20562 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
20563 msgid "WARNING"
20564 msgstr ""
20565
20566 # type: textblock
20567 #. type: textblock
20568 #: ../fish/guestfish.pod:25
20569 msgid ""
20570 "Using guestfish in read/write mode on live virtual machines can be "
20571 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20572 "option to use guestfish safely if the disk image or virtual machine might be "
20573 "live."
20574 msgstr ""
20575
20576 # type: textblock
20577 #. type: textblock
20578 #: ../fish/guestfish.pod:32
20579 msgid ""
20580 "Guestfish is a shell and command-line tool for examining and modifying "
20581 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20582 "functionality of the guestfs API, see L<guestfs(3)>."
20583 msgstr ""
20584
20585 # type: textblock
20586 #. type: textblock
20587 #: ../fish/guestfish.pod:36
20588 msgid ""
20589 "Guestfish gives you structured access to the libguestfs API, from shell "
20590 "scripts or the command line or interactively.  If you want to rescue a "
20591 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20592 "command."
20593 msgstr ""
20594
20595 # type: =head1
20596 #. type: =head1
20597 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:923
20598 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
20599 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
20600 msgid "EXAMPLES"
20601 msgstr ""
20602
20603 # type: =head2
20604 #. type: =head2
20605 #: ../fish/guestfish.pod:43
20606 msgid "As an interactive shell"
20607 msgstr ""
20608
20609 # type: verbatim
20610 #. type: verbatim
20611 #: ../fish/guestfish.pod:45
20612 #, no-wrap
20613 msgid ""
20614 " $ guestfish\n"
20615 " \n"
20616 msgstr ""
20617
20618 # type: verbatim
20619 #. type: verbatim
20620 #: ../fish/guestfish.pod:47
20621 #, no-wrap
20622 msgid ""
20623 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20624 " editing virtual machine filesystems.\n"
20625 " \n"
20626 msgstr ""
20627
20628 # type: verbatim
20629 #. type: verbatim
20630 #: ../fish/guestfish.pod:50
20631 #, no-wrap
20632 msgid ""
20633 " Type: 'help' for a list of commands\n"
20634 "       'man' to read the manual\n"
20635 "       'quit' to quit the shell\n"
20636 " \n"
20637 msgstr ""
20638
20639 # type: verbatim
20640 #. type: verbatim
20641 #: ../fish/guestfish.pod:54
20642 #, no-wrap
20643 msgid ""
20644 " ><fs> add-ro disk.img\n"
20645 " ><fs> run\n"
20646 " ><fs> list-filesystems\n"
20647 " /dev/sda1: ext4\n"
20648 " /dev/vg_guest/lv_root: ext4\n"
20649 " /dev/vg_guest/lv_swap: swap\n"
20650 " ><fs> mount /dev/vg_guest/lv_root /\n"
20651 " ><fs> cat /etc/fstab\n"
20652 " # /etc/fstab\n"
20653 " # Created by anaconda\n"
20654 " [...]\n"
20655 " ><fs> exit\n"
20656 "\n"
20657 msgstr ""
20658
20659 # type: =head2
20660 #. type: =head2
20661 #: ../fish/guestfish.pod:67
20662 msgid "From shell scripts"
20663 msgstr ""
20664
20665 # type: textblock
20666 #. type: textblock
20667 #: ../fish/guestfish.pod:69
20668 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20669 msgstr ""
20670
20671 # type: verbatim
20672 #. type: verbatim
20673 #: ../fish/guestfish.pod:71
20674 #, no-wrap
20675 msgid ""
20676 " guestfish <<_EOF_\n"
20677 " add disk.img\n"
20678 " run\n"
20679 " mount /dev/vg_guest/lv_root /\n"
20680 " write /etc/motd \"Welcome, new users\"\n"
20681 " _EOF_\n"
20682 "\n"
20683 msgstr ""
20684
20685 # type: textblock
20686 #. type: textblock
20687 #: ../fish/guestfish.pod:78
20688 msgid "List the LVM logical volumes in a disk image:"
20689 msgstr ""
20690
20691 # type: verbatim
20692 #. type: verbatim
20693 #: ../fish/guestfish.pod:80
20694 #, no-wrap
20695 msgid ""
20696 " guestfish -a disk.img --ro <<_EOF_\n"
20697 " run\n"
20698 " lvs\n"
20699 " _EOF_\n"
20700 "\n"
20701 msgstr ""
20702
20703 # type: textblock
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:85
20706 msgid "List all the filesystems in a disk image:"
20707 msgstr ""
20708
20709 # type: verbatim
20710 #. type: verbatim
20711 #: ../fish/guestfish.pod:87
20712 #, no-wrap
20713 msgid ""
20714 " guestfish -a disk.img --ro <<_EOF_\n"
20715 " run\n"
20716 " list-filesystems\n"
20717 " _EOF_\n"
20718 "\n"
20719 msgstr ""
20720
20721 # type: =head2
20722 #. type: =head2
20723 #: ../fish/guestfish.pod:92
20724 msgid "On one command line"
20725 msgstr ""
20726
20727 # type: textblock
20728 #. type: textblock
20729 #: ../fish/guestfish.pod:94
20730 msgid "Update C</etc/resolv.conf> in a guest:"
20731 msgstr ""
20732
20733 # type: verbatim
20734 #. type: verbatim
20735 #: ../fish/guestfish.pod:96
20736 #, no-wrap
20737 msgid ""
20738 " guestfish \\\n"
20739 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20740 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20741 "\n"
20742 msgstr ""
20743
20744 # type: textblock
20745 #. type: textblock
20746 #: ../fish/guestfish.pod:100
20747 msgid "Edit C</boot/grub/grub.conf> interactively:"
20748 msgstr ""
20749
20750 # type: verbatim
20751 #. type: verbatim
20752 #: ../fish/guestfish.pod:102
20753 #, no-wrap
20754 msgid ""
20755 " guestfish --rw --add disk.img \\\n"
20756 "   --mount /dev/vg_guest/lv_root \\\n"
20757 "   --mount /dev/sda1:/boot \\\n"
20758 "   edit /boot/grub/grub.conf\n"
20759 "\n"
20760 msgstr ""
20761
20762 # type: =head2
20763 #. type: =head2
20764 #: ../fish/guestfish.pod:107
20765 msgid "Mount disks automatically"
20766 msgstr ""
20767
20768 # type: textblock
20769 #. type: textblock
20770 #: ../fish/guestfish.pod:109
20771 msgid ""
20772 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20773 msgstr ""
20774
20775 # type: verbatim
20776 #. type: verbatim
20777 #: ../fish/guestfish.pod:112
20778 #, no-wrap
20779 msgid ""
20780 " guestfish --ro -a disk.img -i cat /etc/group\n"
20781 "\n"
20782 msgstr ""
20783
20784 # type: verbatim
20785 #. type: verbatim
20786 #: ../fish/guestfish.pod:114
20787 #, no-wrap
20788 msgid ""
20789 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20790 "\n"
20791 msgstr ""
20792
20793 # type: textblock
20794 #. type: textblock
20795 #: ../fish/guestfish.pod:116
20796 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20797 msgstr ""
20798
20799 # type: verbatim
20800 #. type: verbatim
20801 #: ../fish/guestfish.pod:118
20802 #, no-wrap
20803 msgid ""
20804 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20805 "\n"
20806 msgstr ""
20807
20808 # type: =head2
20809 #. type: =head2
20810 #: ../fish/guestfish.pod:120
20811 msgid "As a script interpreter"
20812 msgstr ""
20813
20814 # type: textblock
20815 #. type: textblock
20816 #: ../fish/guestfish.pod:122
20817 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20818 msgstr ""
20819
20820 # type: verbatim
20821 #. type: verbatim
20822 #: ../fish/guestfish.pod:124
20823 #, no-wrap
20824 msgid ""
20825 " #!/usr/bin/guestfish -f\n"
20826 " sparse test1.img 100M\n"
20827 " run\n"
20828 " part-disk /dev/sda mbr\n"
20829 " mkfs ext2 /dev/sda1\n"
20830 "\n"
20831 msgstr ""
20832
20833 # type: =head2
20834 #. type: =head2
20835 #: ../fish/guestfish.pod:130
20836 msgid "Start with a prepared disk"
20837 msgstr ""
20838
20839 # type: textblock
20840 #. type: textblock
20841 #: ../fish/guestfish.pod:132
20842 msgid ""
20843 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20844 "single ext2-formatted partition:"
20845 msgstr ""
20846
20847 # type: verbatim
20848 #. type: verbatim
20849 #: ../fish/guestfish.pod:135
20850 #, no-wrap
20851 msgid ""
20852 " guestfish -N fs\n"
20853 "\n"
20854 msgstr ""
20855
20856 # type: textblock
20857 #. type: textblock
20858 #: ../fish/guestfish.pod:137
20859 msgid "To list what is available do:"
20860 msgstr ""
20861
20862 # type: verbatim
20863 #. type: verbatim
20864 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:914
20865 #, no-wrap
20866 msgid ""
20867 " guestfish -N help | less\n"
20868 "\n"
20869 msgstr ""
20870
20871 # type: =head2
20872 #. type: =head2
20873 #: ../fish/guestfish.pod:141
20874 msgid "Remote control"
20875 msgstr ""
20876
20877 # type: verbatim
20878 #. type: verbatim
20879 #: ../fish/guestfish.pod:143
20880 #, no-wrap
20881 msgid ""
20882 " eval \"`guestfish --listen`\"\n"
20883 " guestfish --remote add-ro disk.img\n"
20884 " guestfish --remote run\n"
20885 " guestfish --remote lvs\n"
20886 "\n"
20887 msgstr ""
20888
20889 # type: =head1
20890 #. type: =head1
20891 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
20892 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
20893 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
20894 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
20895 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
20896 msgid "OPTIONS"
20897 msgstr ""
20898
20899 # type: =item
20900 #. type: =item
20901 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
20902 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
20903 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
20904 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
20905 #: ../tools/virt-list-partitions.pl:62
20906 msgid "B<--help>"
20907 msgstr ""
20908
20909 # type: textblock
20910 #. type: textblock
20911 #: ../fish/guestfish.pod:154
20912 msgid "Displays general help on options."
20913 msgstr ""
20914
20915 # type: =item
20916 #. type: =item
20917 #: ../fish/guestfish.pod:156
20918 msgid "B<-h>"
20919 msgstr ""
20920
20921 # type: =item
20922 #. type: =item
20923 #: ../fish/guestfish.pod:158
20924 msgid "B<--cmd-help>"
20925 msgstr ""
20926
20927 # type: textblock
20928 #. type: textblock
20929 #: ../fish/guestfish.pod:160
20930 msgid "Lists all available guestfish commands."
20931 msgstr ""
20932
20933 # type: =item
20934 #. type: =item
20935 #: ../fish/guestfish.pod:162
20936 msgid "B<-h cmd>"
20937 msgstr ""
20938
20939 # type: =item
20940 #. type: =item
20941 #: ../fish/guestfish.pod:164
20942 msgid "B<--cmd-help cmd>"
20943 msgstr ""
20944
20945 # type: textblock
20946 #. type: textblock
20947 #: ../fish/guestfish.pod:166
20948 msgid "Displays detailed help on a single command C<cmd>."
20949 msgstr ""
20950
20951 # type: =item
20952 #. type: =item
20953 #: ../fish/guestfish.pod:168
20954 msgid "B<-a image>"
20955 msgstr ""
20956
20957 # type: =item
20958 #. type: =item
20959 #: ../fish/guestfish.pod:170
20960 msgid "B<--add image>"
20961 msgstr ""
20962
20963 # type: textblock
20964 #. type: textblock
20965 #: ../fish/guestfish.pod:172
20966 msgid "Add a block device or virtual machine image to the shell."
20967 msgstr ""
20968
20969 # type: textblock
20970 #. type: textblock
20971 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
20972 msgid ""
20973 "The format of the disk image is auto-detected.  To override this and force a "
20974 "particular format use the I<--format=..> option."
20975 msgstr ""
20976
20977 # type: textblock
20978 #. type: textblock
20979 #: ../fish/guestfish.pod:177
20980 msgid ""
20981 "Using this flag is mostly equivalent to using the C<add> command, with "
20982 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20983 "the I<--format:...> flag was given."
20984 msgstr ""
20985
20986 # type: =item
20987 #. type: =item
20988 #: ../fish/guestfish.pod:181
20989 msgid "B<-c URI>"
20990 msgstr ""
20991
20992 # type: =item
20993 #. type: =item
20994 #: ../fish/guestfish.pod:183
20995 msgid "B<--connect URI>"
20996 msgstr ""
20997
20998 # type: textblock
20999 #. type: textblock
21000 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
21001 msgid ""
21002 "When used in conjunction with the I<-d> option, this specifies the libvirt "
21003 "URI to use.  The default is to use the default libvirt connection."
21004 msgstr ""
21005
21006 # type: =item
21007 #. type: =item
21008 #: ../fish/guestfish.pod:189
21009 msgid "B<--csh>"
21010 msgstr ""
21011
21012 # type: textblock
21013 #. type: textblock
21014 #: ../fish/guestfish.pod:191
21015 msgid ""
21016 "If using the I<--listen> option and a csh-like shell, use this option.  See "
21017 "section L</REMOTE CONTROL AND CSH> below."
21018 msgstr ""
21019
21020 # type: =item
21021 #. type: =item
21022 #: ../fish/guestfish.pod:194
21023 msgid "B<-d libvirt-domain>"
21024 msgstr ""
21025
21026 # type: =item
21027 #. type: =item
21028 #: ../fish/guestfish.pod:196
21029 msgid "B<--domain libvirt-domain>"
21030 msgstr ""
21031
21032 # type: textblock
21033 #. type: textblock
21034 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21035 msgid ""
21036 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21037 "used, then any libvirt domain can be used.  However in write mode, only "
21038 "libvirt domains which are shut down can be named here."
21039 msgstr ""
21040
21041 # type: textblock
21042 #. type: textblock
21043 #: ../fish/guestfish.pod:202
21044 msgid ""
21045 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21046 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21047 "if the I<--format:...> flag was given."
21048 msgstr ""
21049
21050 # type: =item
21051 #. type: =item
21052 #: ../fish/guestfish.pod:206
21053 msgid "B<-D>"
21054 msgstr ""
21055
21056 # type: =item
21057 #. type: =item
21058 #: ../fish/guestfish.pod:208
21059 msgid "B<--no-dest-paths>"
21060 msgstr ""
21061
21062 # type: textblock
21063 #. type: textblock
21064 #: ../fish/guestfish.pod:210
21065 msgid ""
21066 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21067 "to hit the tab key to complete paths on the guest filesystem, but this "
21068 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21069 "allow this feature to be disabled."
21070 msgstr ""
21071
21072 # type: =item
21073 #. type: =item
21074 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21075 msgid "B<--echo-keys>"
21076 msgstr ""
21077
21078 # type: textblock
21079 #. type: textblock
21080 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21081 msgid ""
21082 "When prompting for keys and passphrases, guestfish normally turns echoing "
21083 "off so you cannot see what you are typing.  If you are not worried about "
21084 "Tempest attacks and there is no one else in the room you can specify this "
21085 "flag to see what you are typing."
21086 msgstr ""
21087
21088 # type: =item
21089 #. type: =item
21090 #: ../fish/guestfish.pod:222
21091 msgid "B<-f file>"
21092 msgstr ""
21093
21094 # type: =item
21095 #. type: =item
21096 #: ../fish/guestfish.pod:224
21097 msgid "B<--file file>"
21098 msgstr ""
21099
21100 # type: textblock
21101 #. type: textblock
21102 #: ../fish/guestfish.pod:226
21103 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21104 msgstr ""
21105
21106 # type: verbatim
21107 #. type: verbatim
21108 #: ../fish/guestfish.pod:229
21109 #, no-wrap
21110 msgid ""
21111 " #!/usr/bin/guestfish -f\n"
21112 "\n"
21113 msgstr ""
21114
21115 # type: =item
21116 #. type: =item
21117 #: ../fish/guestfish.pod:231
21118 msgid "B<--format=raw|qcow2|..>"
21119 msgstr ""
21120
21121 # type: =item
21122 #. type: =item
21123 #: ../fish/guestfish.pod:233
21124 msgid "B<--format>"
21125 msgstr ""
21126
21127 # type: textblock
21128 #. type: textblock
21129 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21130 msgid ""
21131 "The default for the I<-a> option is to auto-detect the format of the disk "
21132 "image.  Using this forces the disk format for I<-a> options which follow on "
21133 "the command line.  Using I<--format> with no argument switches back to auto-"
21134 "detection for subsequent I<-a> options."
21135 msgstr ""
21136
21137 # type: verbatim
21138 #. type: verbatim
21139 #: ../fish/guestfish.pod:242
21140 #, no-wrap
21141 msgid ""
21142 " guestfish --format=raw -a disk.img\n"
21143 "\n"
21144 msgstr ""
21145
21146 # type: textblock
21147 #. type: textblock
21148 #: ../fish/guestfish.pod:244
21149 msgid "forces raw format (no auto-detection) for C<disk.img>."
21150 msgstr ""
21151
21152 # type: verbatim
21153 #. type: verbatim
21154 #: ../fish/guestfish.pod:246
21155 #, no-wrap
21156 msgid ""
21157 " guestfish --format=raw -a disk.img --format -a another.img\n"
21158 "\n"
21159 msgstr ""
21160
21161 # type: textblock
21162 #. type: textblock
21163 #: ../fish/guestfish.pod:248
21164 msgid ""
21165 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21166 "detection for C<another.img>."
21167 msgstr ""
21168
21169 # type: textblock
21170 #. type: textblock
21171 #: ../fish/guestfish.pod:251
21172 msgid ""
21173 "If you have untrusted raw-format guest disk images, you should use this "
21174 "option to specify the disk format.  This avoids a possible security problem "
21175 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21176 msgstr ""
21177
21178 # type: =item
21179 #. type: =item
21180 #: ../fish/guestfish.pod:256
21181 msgid "B<-i>"
21182 msgstr ""
21183
21184 # type: =item
21185 #. type: =item
21186 #: ../fish/guestfish.pod:258
21187 msgid "B<--inspector>"
21188 msgstr ""
21189
21190 # type: textblock
21191 #. type: textblock
21192 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21193 msgid ""
21194 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21195 "system and mount filesystems as they would be mounted on the real virtual "
21196 "machine."
21197 msgstr ""
21198
21199 # type: textblock
21200 #. type: textblock
21201 #: ../fish/guestfish.pod:264
21202 msgid "Typical usage is either:"
21203 msgstr ""
21204
21205 # type: verbatim
21206 #. type: verbatim
21207 #: ../fish/guestfish.pod:266
21208 #, no-wrap
21209 msgid ""
21210 " guestfish -d myguest -i\n"
21211 "\n"
21212 msgstr ""
21213
21214 # type: textblock
21215 #. type: textblock
21216 #: ../fish/guestfish.pod:268
21217 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21218 msgstr ""
21219
21220 # type: verbatim
21221 #. type: verbatim
21222 #: ../fish/guestfish.pod:270
21223 #, no-wrap
21224 msgid ""
21225 " guestfish --ro -d myguest -i\n"
21226 "\n"
21227 msgstr ""
21228
21229 # type: textblock
21230 #. type: textblock
21231 #: ../fish/guestfish.pod:272
21232 msgid "(for active domains, readonly), or specify the block device directly:"
21233 msgstr ""
21234
21235 # type: verbatim
21236 #. type: verbatim
21237 #: ../fish/guestfish.pod:274
21238 #, no-wrap
21239 msgid ""
21240 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21241 "\n"
21242 msgstr ""
21243
21244 # type: textblock
21245 #. type: textblock
21246 #: ../fish/guestfish.pod:276
21247 msgid ""
21248 "Note that the command line syntax changed slightly over older versions of "
21249 "guestfish.  You can still use the old syntax:"
21250 msgstr ""
21251
21252 # type: verbatim
21253 #. type: verbatim
21254 #: ../fish/guestfish.pod:279
21255 #, no-wrap
21256 msgid ""
21257 " guestfish [--ro] -i disk.img\n"
21258 "\n"
21259 msgstr ""
21260
21261 # type: verbatim
21262 #. type: verbatim
21263 #: ../fish/guestfish.pod:281
21264 #, no-wrap
21265 msgid ""
21266 " guestfish [--ro] -i libvirt-domain\n"
21267 "\n"
21268 msgstr ""
21269
21270 # type: textblock
21271 #. type: textblock
21272 #: ../fish/guestfish.pod:283
21273 msgid ""
21274 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21275 "then using other commands to mount the filesystems that were found."
21276 msgstr ""
21277
21278 # type: =item
21279 #. type: =item
21280 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21281 msgid "B<--keys-from-stdin>"
21282 msgstr ""
21283
21284 # type: textblock
21285 #. type: textblock
21286 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21287 msgid ""
21288 "Read key or passphrase parameters from stdin.  The default is to try to read "
21289 "passphrases from the user by opening C</dev/tty>."
21290 msgstr ""
21291
21292 # type: =item
21293 #. type: =item
21294 #: ../fish/guestfish.pod:292
21295 msgid "B<--listen>"
21296 msgstr ""
21297
21298 # type: textblock
21299 #. type: textblock
21300 #: ../fish/guestfish.pod:294
21301 msgid ""
21302 "Fork into the background and listen for remote commands.  See section L</"
21303 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21304 msgstr ""
21305
21306 # type: =item
21307 #. type: =item
21308 #: ../fish/guestfish.pod:297
21309 msgid "B<-m dev[:mountpoint]>"
21310 msgstr ""
21311
21312 # type: =item
21313 #. type: =item
21314 #: ../fish/guestfish.pod:299
21315 msgid "B<--mount dev[:mountpoint]>"
21316 msgstr ""
21317
21318 # type: textblock
21319 #. type: textblock
21320 #: ../fish/guestfish.pod:301
21321 msgid "Mount the named partition or logical volume on the given mountpoint."
21322 msgstr ""
21323
21324 # type: textblock
21325 #. type: textblock
21326 #: ../fish/guestfish.pod:303
21327 msgid "If the mountpoint is omitted, it defaults to C</>."
21328 msgstr ""
21329
21330 # type: textblock
21331 #. type: textblock
21332 #: ../fish/guestfish.pod:305
21333 msgid "You have to mount something on C</> before most commands will work."
21334 msgstr ""
21335
21336 # type: textblock
21337 #. type: textblock
21338 #: ../fish/guestfish.pod:307
21339 msgid ""
21340 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21341 "launched."
21342 msgstr ""
21343
21344 # type: textblock
21345 #. type: textblock
21346 #: ../fish/guestfish.pod:310
21347 msgid ""
21348 "If you don't know what filesystems a disk image contains, you can either run "
21349 "guestfish without this option, then list the partitions, filesystems and LVs "
21350 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21351 "commands), or you can use the L<virt-filesystems(1)> program."
21352 msgstr ""
21353
21354 # type: textblock
21355 #. type: textblock
21356 #: ../fish/guestfish.pod:316
21357 msgid ""
21358 "Using this flag is mostly equivalent to using the C<mount-options> command "
21359 "or the C<mount-ro> command if the I<--ro> flag was given."
21360 msgstr ""
21361
21362 # type: =item
21363 #. type: =item
21364 #: ../fish/guestfish.pod:319
21365 msgid "B<-n>"
21366 msgstr ""
21367
21368 # type: =item
21369 #. type: =item
21370 #: ../fish/guestfish.pod:321
21371 msgid "B<--no-sync>"
21372 msgstr ""
21373
21374 # type: textblock
21375 #. type: textblock
21376 #: ../fish/guestfish.pod:323
21377 msgid ""
21378 "Disable autosync.  This is enabled by default.  See the discussion of "
21379 "autosync in the L<guestfs(3)> manpage."
21380 msgstr ""
21381
21382 # type: =item
21383 #. type: =item
21384 #: ../fish/guestfish.pod:326
21385 msgid "B<-N type>"
21386 msgstr ""
21387
21388 # type: =item
21389 #. type: =item
21390 #: ../fish/guestfish.pod:328
21391 msgid "B<--new type>"
21392 msgstr ""
21393
21394 # type: =item
21395 #. type: =item
21396 #: ../fish/guestfish.pod:330
21397 msgid "B<-N help>"
21398 msgstr ""
21399
21400 # type: textblock
21401 #. type: textblock
21402 #: ../fish/guestfish.pod:332
21403 msgid ""
21404 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
21405 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
21406 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
21407 "IMAGES> below."
21408 msgstr ""
21409
21410 # type: =item
21411 #. type: =item
21412 #: ../fish/guestfish.pod:337
21413 msgid "B<--progress-bars>"
21414 msgstr ""
21415
21416 # type: textblock
21417 #. type: textblock
21418 #: ../fish/guestfish.pod:339
21419 msgid "Enable progress bars, even when guestfish is used non-interactively."
21420 msgstr ""
21421
21422 # type: textblock
21423 #. type: textblock
21424 #: ../fish/guestfish.pod:341
21425 msgid ""
21426 "Progress bars are enabled by default when guestfish is used as an "
21427 "interactive shell."
21428 msgstr ""
21429
21430 # type: =item
21431 #. type: =item
21432 #: ../fish/guestfish.pod:344
21433 msgid "B<--no-progress-bars>"
21434 msgstr ""
21435
21436 # type: textblock
21437 #. type: textblock
21438 #: ../fish/guestfish.pod:346
21439 msgid "Disable progress bars."
21440 msgstr ""
21441
21442 # type: =item
21443 #. type: =item
21444 #: ../fish/guestfish.pod:348
21445 msgid "B<--remote[=pid]>"
21446 msgstr ""
21447
21448 # type: textblock
21449 #. type: textblock
21450 #: ../fish/guestfish.pod:350
21451 msgid ""
21452 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
21453 "CONTROL GUESTFISH OVER A SOCKET> below."
21454 msgstr ""
21455
21456 # type: =item
21457 #. type: =item
21458 #: ../fish/guestfish.pod:353
21459 msgid "B<-r>"
21460 msgstr ""
21461
21462 # type: =item
21463 #. type: =item
21464 #: ../fish/guestfish.pod:355
21465 msgid "B<--ro>"
21466 msgstr ""
21467
21468 # type: textblock
21469 #. type: textblock
21470 #: ../fish/guestfish.pod:357
21471 msgid ""
21472 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21473 "mounts are done read-only."
21474 msgstr ""
21475
21476 # type: textblock
21477 #. type: textblock
21478 #: ../fish/guestfish.pod:360
21479 msgid ""
21480 "The option must always be used if the disk image or virtual machine might be "
21481 "running, and is generally recommended in cases where you don't need write "
21482 "access to the disk."
21483 msgstr ""
21484
21485 # type: textblock
21486 #. type: textblock
21487 #: ../fish/guestfish.pod:364
21488 msgid ""
21489 "Note that prepared disk images created with I<-N> are not affected by this "
21490 "option.  Also commands like C<add> are not affected - you have to specify "
21491 "the C<readonly:true> option explicitly if you need it."
21492 msgstr ""
21493
21494 # type: textblock
21495 #. type: textblock
21496 #: ../fish/guestfish.pod:368
21497 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
21498 msgstr ""
21499
21500 # type: =item
21501 #. type: =item
21502 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
21503 msgid "B<--selinux>"
21504 msgstr ""
21505
21506 # type: textblock
21507 #. type: textblock
21508 #: ../fish/guestfish.pod:372
21509 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
21510 msgstr ""
21511
21512 # type: =item
21513 #. type: =item
21514 #: ../fish/guestfish.pod:374
21515 msgid "B<-v>"
21516 msgstr ""
21517
21518 # type: =item
21519 #. type: =item
21520 #: ../fish/guestfish.pod:376
21521 msgid "B<--verbose>"
21522 msgstr ""
21523
21524 # type: textblock
21525 #. type: textblock
21526 #: ../fish/guestfish.pod:378
21527 msgid ""
21528 "Enable very verbose messages.  This is particularly useful if you find a bug."
21529 msgstr ""
21530
21531 # type: =item
21532 #. type: =item
21533 #: ../fish/guestfish.pod:381
21534 msgid "B<-V>"
21535 msgstr ""
21536
21537 # type: =item
21538 #. type: =item
21539 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
21540 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
21541 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
21542 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
21543 msgid "B<--version>"
21544 msgstr ""
21545
21546 # type: textblock
21547 #. type: textblock
21548 #: ../fish/guestfish.pod:385
21549 msgid "Display the guestfish / libguestfs version number and exit."
21550 msgstr ""
21551
21552 # type: =item
21553 #. type: =item
21554 #: ../fish/guestfish.pod:387
21555 msgid "B<-w>"
21556 msgstr ""
21557
21558 # type: =item
21559 #. type: =item
21560 #: ../fish/guestfish.pod:389
21561 msgid "B<--rw>"
21562 msgstr ""
21563
21564 # type: textblock
21565 #. type: textblock
21566 #: ../fish/guestfish.pod:391
21567 msgid ""
21568 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
21569 "WRITE> below."
21570 msgstr ""
21571
21572 # type: =item
21573 #. type: =item
21574 #: ../fish/guestfish.pod:394
21575 msgid "B<-x>"
21576 msgstr ""
21577
21578 # type: textblock
21579 #. type: textblock
21580 #: ../fish/guestfish.pod:396
21581 msgid "Echo each command before executing it."
21582 msgstr ""
21583
21584 # type: =head1
21585 #. type: =head1
21586 #: ../fish/guestfish.pod:400
21587 msgid "COMMANDS ON COMMAND LINE"
21588 msgstr ""
21589
21590 # type: textblock
21591 #. type: textblock
21592 #: ../fish/guestfish.pod:402
21593 msgid ""
21594 "Any additional (non-option) arguments are treated as commands to execute."
21595 msgstr ""
21596
21597 # type: textblock
21598 #. type: textblock
21599 #: ../fish/guestfish.pod:405
21600 msgid ""
21601 "Commands to execute should be separated by a colon (C<:>), where the colon "
21602 "is a separate parameter.  Thus:"
21603 msgstr ""
21604
21605 # type: verbatim
21606 #. type: verbatim
21607 #: ../fish/guestfish.pod:408
21608 #, no-wrap
21609 msgid ""
21610 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21611 "\n"
21612 msgstr ""
21613
21614 # type: textblock
21615 #. type: textblock
21616 #: ../fish/guestfish.pod:410
21617 msgid ""
21618 "If there are no additional arguments, then we enter a shell, either an "
21619 "interactive shell with a prompt (if the input is a terminal) or a non-"
21620 "interactive shell."
21621 msgstr ""
21622
21623 # type: textblock
21624 #. type: textblock
21625 #: ../fish/guestfish.pod:414
21626 msgid ""
21627 "In either command line mode or non-interactive shell, the first command that "
21628 "gives an error causes the whole shell to exit.  In interactive mode (with a "
21629 "prompt) if a command fails, you can continue to enter commands."
21630 msgstr ""
21631
21632 # type: =head1
21633 #. type: =head1
21634 #: ../fish/guestfish.pod:419
21635 msgid "USING launch (OR run)"
21636 msgstr ""
21637
21638 # type: textblock
21639 #. type: textblock
21640 #: ../fish/guestfish.pod:421
21641 msgid ""
21642 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21643 "then launch it, then mount any disks you need, and finally issue actions/"
21644 "commands.  So the general order of the day is:"
21645 msgstr ""
21646
21647 # type: textblock
21648 #. type: textblock
21649 #: ../fish/guestfish.pod:429
21650 msgid "add or -a/--add"
21651 msgstr ""
21652
21653 # type: textblock
21654 #. type: textblock
21655 #: ../fish/guestfish.pod:433
21656 msgid "launch (aka run)"
21657 msgstr ""
21658
21659 # type: textblock
21660 #. type: textblock
21661 #: ../fish/guestfish.pod:437
21662 msgid "mount or -m/--mount"
21663 msgstr ""
21664
21665 # type: textblock
21666 #. type: textblock
21667 #: ../fish/guestfish.pod:441
21668 msgid "any other commands"
21669 msgstr ""
21670
21671 # type: textblock
21672 #. type: textblock
21673 #: ../fish/guestfish.pod:445
21674 msgid ""
21675 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
21676 "guest before mounting or performing any other commands."
21677 msgstr ""
21678
21679 # type: textblock
21680 #. type: textblock
21681 #: ../fish/guestfish.pod:448
21682 msgid ""
21683 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21684 "I<--new> options were given then C<run> is done automatically, simply "
21685 "because guestfish can't perform the action you asked for without doing this."
21686 msgstr ""
21687
21688 # type: =head1
21689 #. type: =head1
21690 #: ../fish/guestfish.pod:453
21691 msgid "OPENING DISKS FOR READ AND WRITE"
21692 msgstr ""
21693
21694 # type: textblock
21695 #. type: textblock
21696 #: ../fish/guestfish.pod:455
21697 msgid ""
21698 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
21699 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
21700 "open disk images read-only or for writing."
21701 msgstr ""
21702
21703 # type: textblock
21704 #. type: textblock
21705 #: ../fish/guestfish.pod:459
21706 msgid ""
21707 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
21708 "disk images supplied on the command line for write.  To open a disk image "
21709 "read-only you have to do I<-a image --ro>."
21710 msgstr ""
21711
21712 # type: textblock
21713 #. type: textblock
21714 #: ../fish/guestfish.pod:463
21715 msgid ""
21716 "This matters: If you accidentally open a live VM disk image writable then "
21717 "you will cause irreversible disk corruption."
21718 msgstr ""
21719
21720 #. type: textblock
21721 #: ../fish/guestfish.pod:466
21722 msgid ""
21723 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
21724 "images will be opened read-only.  You will have to either specify "
21725 "I<guestfish --rw> or change a configuration file in order to get write "
21726 "access for disk images specified by those other command line options."
21727 msgstr ""
21728
21729 # type: textblock
21730 #. type: textblock
21731 #: ../fish/guestfish.pod:471
21732 msgid ""
21733 "This version of guestfish has a I<--rw> option which does nothing (it is "
21734 "already the default).  However it is highly recommended that you use this "
21735 "option to indicate that guestfish needs write access, and to prepare your "
21736 "scripts for the day when this option will be required for write access."
21737 msgstr ""
21738
21739 # type: textblock
21740 #. type: textblock
21741 #: ../fish/guestfish.pod:477
21742 msgid ""
21743 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21744 "other libguestfs program apart from guestfish and guestmount."
21745 msgstr ""
21746
21747 # type: =head1
21748 #. type: =head1
21749 #: ../fish/guestfish.pod:480
21750 msgid "QUOTING"
21751 msgstr ""
21752
21753 # type: textblock
21754 #. type: textblock
21755 #: ../fish/guestfish.pod:482
21756 msgid ""
21757 "You can quote ordinary parameters using either single or double quotes.  For "
21758 "example:"
21759 msgstr ""
21760
21761 # type: verbatim
21762 #. type: verbatim
21763 #: ../fish/guestfish.pod:485
21764 #, no-wrap
21765 msgid ""
21766 " add \"file with a space.img\"\n"
21767 "\n"
21768 msgstr ""
21769
21770 # type: verbatim
21771 #. type: verbatim
21772 #: ../fish/guestfish.pod:487
21773 #, no-wrap
21774 msgid ""
21775 " rm '/file name'\n"
21776 "\n"
21777 msgstr ""
21778
21779 # type: verbatim
21780 #. type: verbatim
21781 #: ../fish/guestfish.pod:489
21782 #, no-wrap
21783 msgid ""
21784 " rm '/\"'\n"
21785 "\n"
21786 msgstr ""
21787
21788 # type: textblock
21789 #. type: textblock
21790 #: ../fish/guestfish.pod:491
21791 msgid ""
21792 "A few commands require a list of strings to be passed.  For these, use a "
21793 "whitespace-separated list, enclosed in quotes.  Strings containing "
21794 "whitespace to be passed through must be enclosed in single quotes.  A "
21795 "literal single quote must be escaped with a backslash."
21796 msgstr ""
21797
21798 # type: verbatim
21799 #. type: verbatim
21800 #: ../fish/guestfish.pod:496
21801 #, no-wrap
21802 msgid ""
21803 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21804 " command \"/bin/echo 'foo      bar'\"\n"
21805 " command \"/bin/echo \\'foo\\'\"\n"
21806 "\n"
21807 msgstr ""
21808
21809 # type: =head1
21810 #. type: =head1
21811 #: ../fish/guestfish.pod:500
21812 msgid "OPTIONAL ARGUMENTS"
21813 msgstr ""
21814
21815 # type: textblock
21816 #. type: textblock
21817 #: ../fish/guestfish.pod:502
21818 msgid ""
21819 "Some commands take optional arguments.  These arguments appear in this "
21820 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21821 msgstr ""
21822
21823 # type: verbatim
21824 #. type: verbatim
21825 #: ../fish/guestfish.pod:506
21826 #, no-wrap
21827 msgid ""
21828 " add-drive-opts filename\n"
21829 "\n"
21830 msgstr ""
21831
21832 # type: verbatim
21833 #. type: verbatim
21834 #: ../fish/guestfish.pod:508
21835 #, no-wrap
21836 msgid ""
21837 " add-drive-opts filename readonly:true\n"
21838 "\n"
21839 msgstr ""
21840
21841 # type: verbatim
21842 #. type: verbatim
21843 #: ../fish/guestfish.pod:510
21844 #, no-wrap
21845 msgid ""
21846 " add-drive-opts filename format:qcow2 readonly:false\n"
21847 "\n"
21848 msgstr ""
21849
21850 # type: textblock
21851 #. type: textblock
21852 #: ../fish/guestfish.pod:512
21853 msgid ""
21854 "Each optional argument can appear at most once.  All optional arguments must "
21855 "appear after the required ones."
21856 msgstr ""
21857
21858 # type: =head1
21859 #. type: =head1
21860 #: ../fish/guestfish.pod:515
21861 msgid "NUMBERS"
21862 msgstr ""
21863
21864 # type: textblock
21865 #. type: textblock
21866 #: ../fish/guestfish.pod:517
21867 msgid ""
21868 "This section applies to all commands which can take integers as parameters."
21869 msgstr ""
21870
21871 # type: =head2
21872 #. type: =head2
21873 #: ../fish/guestfish.pod:520
21874 msgid "SIZE SUFFIX"
21875 msgstr ""
21876
21877 # type: textblock
21878 #. type: textblock
21879 #: ../fish/guestfish.pod:522
21880 msgid ""
21881 "When the command takes a parameter measured in bytes, you can use one of the "
21882 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21883 msgstr ""
21884
21885 # type: =item
21886 #. type: =item
21887 #: ../fish/guestfish.pod:528
21888 msgid "B<k> or B<K> or B<KiB>"
21889 msgstr ""
21890
21891 # type: textblock
21892 #. type: textblock
21893 #: ../fish/guestfish.pod:530
21894 msgid "The size in kilobytes (multiplied by 1024)."
21895 msgstr ""
21896
21897 # type: =item
21898 #. type: =item
21899 #: ../fish/guestfish.pod:532
21900 msgid "B<KB>"
21901 msgstr ""
21902
21903 # type: textblock
21904 #. type: textblock
21905 #: ../fish/guestfish.pod:534
21906 msgid "The size in SI 1000 byte units."
21907 msgstr ""
21908
21909 # type: =item
21910 #. type: =item
21911 #: ../fish/guestfish.pod:536
21912 msgid "B<M> or B<MiB>"
21913 msgstr ""
21914
21915 # type: textblock
21916 #. type: textblock
21917 #: ../fish/guestfish.pod:538
21918 msgid "The size in megabytes (multiplied by 1048576)."
21919 msgstr ""
21920
21921 # type: =item
21922 #. type: =item
21923 #: ../fish/guestfish.pod:540
21924 msgid "B<MB>"
21925 msgstr ""
21926
21927 # type: textblock
21928 #. type: textblock
21929 #: ../fish/guestfish.pod:542
21930 msgid "The size in SI 1000000 byte units."
21931 msgstr ""
21932
21933 # type: =item
21934 #. type: =item
21935 #: ../fish/guestfish.pod:544
21936 msgid "B<G> or B<GiB>"
21937 msgstr ""
21938
21939 # type: textblock
21940 #. type: textblock
21941 #: ../fish/guestfish.pod:546
21942 msgid "The size in gigabytes (multiplied by 2**30)."
21943 msgstr ""
21944
21945 # type: =item
21946 #. type: =item
21947 #: ../fish/guestfish.pod:548
21948 msgid "B<GB>"
21949 msgstr ""
21950
21951 # type: textblock
21952 #. type: textblock
21953 #: ../fish/guestfish.pod:550
21954 msgid "The size in SI 10**9 byte units."
21955 msgstr ""
21956
21957 # type: =item
21958 #. type: =item
21959 #: ../fish/guestfish.pod:552
21960 msgid "B<T> or B<TiB>"
21961 msgstr ""
21962
21963 # type: textblock
21964 #. type: textblock
21965 #: ../fish/guestfish.pod:554
21966 msgid "The size in terabytes (multiplied by 2**40)."
21967 msgstr ""
21968
21969 # type: =item
21970 #. type: =item
21971 #: ../fish/guestfish.pod:556
21972 msgid "B<TB>"
21973 msgstr ""
21974
21975 # type: textblock
21976 #. type: textblock
21977 #: ../fish/guestfish.pod:558
21978 msgid "The size in SI 10**12 byte units."
21979 msgstr ""
21980
21981 # type: =item
21982 #. type: =item
21983 #: ../fish/guestfish.pod:560
21984 msgid "B<P> or B<PiB>"
21985 msgstr ""
21986
21987 # type: textblock
21988 #. type: textblock
21989 #: ../fish/guestfish.pod:562
21990 msgid "The size in petabytes (multiplied by 2**50)."
21991 msgstr ""
21992
21993 # type: =item
21994 #. type: =item
21995 #: ../fish/guestfish.pod:564
21996 msgid "B<PB>"
21997 msgstr ""
21998
21999 # type: textblock
22000 #. type: textblock
22001 #: ../fish/guestfish.pod:566
22002 msgid "The size in SI 10**15 byte units."
22003 msgstr ""
22004
22005 # type: =item
22006 #. type: =item
22007 #: ../fish/guestfish.pod:568
22008 msgid "B<E> or B<EiB>"
22009 msgstr ""
22010
22011 # type: textblock
22012 #. type: textblock
22013 #: ../fish/guestfish.pod:570
22014 msgid "The size in exabytes (multiplied by 2**60)."
22015 msgstr ""
22016
22017 # type: =item
22018 #. type: =item
22019 #: ../fish/guestfish.pod:572
22020 msgid "B<EB>"
22021 msgstr ""
22022
22023 # type: textblock
22024 #. type: textblock
22025 #: ../fish/guestfish.pod:574
22026 msgid "The size in SI 10**18 byte units."
22027 msgstr ""
22028
22029 # type: =item
22030 #. type: =item
22031 #: ../fish/guestfish.pod:576
22032 msgid "B<Z> or B<ZiB>"
22033 msgstr ""
22034
22035 # type: textblock
22036 #. type: textblock
22037 #: ../fish/guestfish.pod:578
22038 msgid "The size in zettabytes (multiplied by 2**70)."
22039 msgstr ""
22040
22041 # type: =item
22042 #. type: =item
22043 #: ../fish/guestfish.pod:580
22044 msgid "B<ZB>"
22045 msgstr ""
22046
22047 # type: textblock
22048 #. type: textblock
22049 #: ../fish/guestfish.pod:582
22050 msgid "The size in SI 10**21 byte units."
22051 msgstr ""
22052
22053 # type: =item
22054 #. type: =item
22055 #: ../fish/guestfish.pod:584
22056 msgid "B<Y> or B<YiB>"
22057 msgstr ""
22058
22059 # type: textblock
22060 #. type: textblock
22061 #: ../fish/guestfish.pod:586
22062 msgid "The size in yottabytes (multiplied by 2**80)."
22063 msgstr ""
22064
22065 # type: =item
22066 #. type: =item
22067 #: ../fish/guestfish.pod:588
22068 msgid "B<YB>"
22069 msgstr ""
22070
22071 # type: textblock
22072 #. type: textblock
22073 #: ../fish/guestfish.pod:590
22074 msgid "The size in SI 10**24 byte units."
22075 msgstr ""
22076
22077 # type: verbatim
22078 #. type: verbatim
22079 #: ../fish/guestfish.pod:596
22080 #, no-wrap
22081 msgid ""
22082 " truncate-size /file 1G\n"
22083 "\n"
22084 msgstr ""
22085
22086 # type: textblock
22087 #. type: textblock
22088 #: ../fish/guestfish.pod:598
22089 msgid "would truncate the file to 1 gigabyte."
22090 msgstr ""
22091
22092 # type: textblock
22093 #. type: textblock
22094 #: ../fish/guestfish.pod:600
22095 msgid ""
22096 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22097 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22098 "suffix will probably not do what you expect."
22099 msgstr ""
22100
22101 # type: =head2
22102 #. type: =head2
22103 #: ../fish/guestfish.pod:604
22104 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22105 msgstr ""
22106
22107 # type: textblock
22108 #. type: textblock
22109 #: ../fish/guestfish.pod:606
22110 msgid ""
22111 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22112 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22113 msgstr ""
22114
22115 # type: verbatim
22116 #. type: verbatim
22117 #: ../fish/guestfish.pod:609
22118 #, no-wrap
22119 msgid ""
22120 " 1234      decimal number 1234\n"
22121 " 02322     octal number, equivalent to decimal 1234\n"
22122 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22123 "\n"
22124 msgstr ""
22125
22126 # type: textblock
22127 #. type: textblock
22128 #: ../fish/guestfish.pod:613
22129 msgid ""
22130 "When using the C<chmod> command, you almost always want to specify an octal "
22131 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22132 "L<chmod(1)> program):"
22133 msgstr ""
22134
22135 # type: verbatim
22136 #. type: verbatim
22137 #: ../fish/guestfish.pod:617
22138 #, no-wrap
22139 msgid ""
22140 " chmod 0777 /public  # OK\n"
22141 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22142 "\n"
22143 msgstr ""
22144
22145 # type: textblock
22146 #. type: textblock
22147 #: ../fish/guestfish.pod:620
22148 msgid ""
22149 "Commands that return numbers usually print them in decimal, but some "
22150 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22151 "octal, preceeded by C<0>)."
22152 msgstr ""
22153
22154 # type: =head1
22155 #. type: =head1
22156 #: ../fish/guestfish.pod:624
22157 msgid "WILDCARDS AND GLOBBING"
22158 msgstr ""
22159
22160 # type: textblock
22161 #. type: textblock
22162 #: ../fish/guestfish.pod:626
22163 msgid ""
22164 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22165 "(globbing) by default.  So for example the following will not do what you "
22166 "expect:"
22167 msgstr ""
22168
22169 # type: verbatim
22170 #. type: verbatim
22171 #: ../fish/guestfish.pod:630
22172 #, no-wrap
22173 msgid ""
22174 " rm-rf /home/*\n"
22175 "\n"
22176 msgstr ""
22177
22178 # type: textblock
22179 #. type: textblock
22180 #: ../fish/guestfish.pod:632
22181 msgid ""
22182 "Assuming you don't have a directory called literally C</home/*> then the "
22183 "above command will return an error."
22184 msgstr ""
22185
22186 # type: textblock
22187 #. type: textblock
22188 #: ../fish/guestfish.pod:635
22189 msgid "To perform wildcard expansion, use the C<glob> command."
22190 msgstr ""
22191
22192 # type: verbatim
22193 #. type: verbatim
22194 #: ../fish/guestfish.pod:637
22195 #, no-wrap
22196 msgid ""
22197 " glob rm-rf /home/*\n"
22198 "\n"
22199 msgstr ""
22200
22201 # type: textblock
22202 #. type: textblock
22203 #: ../fish/guestfish.pod:639
22204 msgid ""
22205 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
22206 "many times), equivalent to:"
22207 msgstr ""
22208
22209 # type: verbatim
22210 #. type: verbatim
22211 #: ../fish/guestfish.pod:642
22212 #, no-wrap
22213 msgid ""
22214 " rm-rf /home/jim\n"
22215 " rm-rf /home/joe\n"
22216 " rm-rf /home/mary\n"
22217 "\n"
22218 msgstr ""
22219
22220 # type: textblock
22221 #. type: textblock
22222 #: ../fish/guestfish.pod:646
22223 msgid "C<glob> only works on simple guest paths and not on device names."
22224 msgstr ""
22225
22226 # type: textblock
22227 #. type: textblock
22228 #: ../fish/guestfish.pod:648
22229 msgid ""
22230 "If you have several parameters, each containing a wildcard, then glob will "
22231 "perform a Cartesian product."
22232 msgstr ""
22233
22234 # type: =head1
22235 #. type: =head1
22236 #: ../fish/guestfish.pod:651
22237 msgid "COMMENTS"
22238 msgstr ""
22239
22240 # type: textblock
22241 #. type: textblock
22242 #: ../fish/guestfish.pod:653
22243 msgid ""
22244 "Any line which starts with a I<#> character is treated as a comment and "
22245 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22246 "a command.  For example:"
22247 msgstr ""
22248
22249 # type: verbatim
22250 #. type: verbatim
22251 #: ../fish/guestfish.pod:657
22252 #, no-wrap
22253 msgid ""
22254 " # this is a comment\n"
22255 "         # this is a comment\n"
22256 " foo # NOT a comment\n"
22257 "\n"
22258 msgstr ""
22259
22260 # type: textblock
22261 #. type: textblock
22262 #: ../fish/guestfish.pod:661
22263 msgid "Blank lines are also ignored."
22264 msgstr ""
22265
22266 # type: =head1
22267 #. type: =head1
22268 #: ../fish/guestfish.pod:663
22269 msgid "RUNNING COMMANDS LOCALLY"
22270 msgstr ""
22271
22272 # type: textblock
22273 #. type: textblock
22274 #: ../fish/guestfish.pod:665
22275 msgid ""
22276 "Any line which starts with a I<!> character is treated as a command sent to "
22277 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22278 msgstr ""
22279
22280 # type: verbatim
22281 #. type: verbatim
22282 #: ../fish/guestfish.pod:669
22283 #, no-wrap
22284 msgid ""
22285 " !mkdir local\n"
22286 " tgz-out /remote local/remote-data.tar.gz\n"
22287 "\n"
22288 msgstr ""
22289
22290 # type: textblock
22291 #. type: textblock
22292 #: ../fish/guestfish.pod:672
22293 msgid ""
22294 "will create a directory C<local> on the host, and then export the contents "
22295 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22296 "(See C<tgz-out>)."
22297 msgstr ""
22298
22299 # type: textblock
22300 #. type: textblock
22301 #: ../fish/guestfish.pod:676
22302 msgid ""
22303 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22304 "effect, due to the way that subprocesses work in Unix."
22305 msgstr ""
22306
22307 #. type: =head2
22308 #: ../fish/guestfish.pod:679
22309 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
22310 msgstr ""
22311
22312 #. type: textblock
22313 #: ../fish/guestfish.pod:681
22314 msgid ""
22315 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
22316 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
22317 "and executed as guestfish commands."
22318 msgstr ""
22319
22320 #. type: textblock
22321 #: ../fish/guestfish.pod:685
22322 msgid ""
22323 "Thus you can use shell script to construct arbitrary guestfish commands "
22324 "which are then parsed by guestfish."
22325 msgstr ""
22326
22327 #. type: textblock
22328 #: ../fish/guestfish.pod:688
22329 msgid ""
22330 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
22331 "through C</foo.100>) using guestfish commands alone.  However this is simple "
22332 "if we use a shell script to create the guestfish commands for us:"
22333 msgstr ""
22334
22335 #. type: verbatim
22336 #: ../fish/guestfish.pod:693
22337 #, no-wrap
22338 msgid ""
22339 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
22340 "\n"
22341 msgstr ""
22342
22343 #. type: textblock
22344 #: ../fish/guestfish.pod:695
22345 msgid "or with names like C</foo.001>:"
22346 msgstr ""
22347
22348 #. type: verbatim
22349 #: ../fish/guestfish.pod:697
22350 #, no-wrap
22351 msgid ""
22352 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
22353 "\n"
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../fish/guestfish.pod:699
22358 msgid ""
22359 "When using guestfish interactively it can be helpful to just run the shell "
22360 "script first (ie. remove the initial C<E<lt>> character so it is just an "
22361 "ordinary I<!> local command), see what guestfish commands it would run, and "
22362 "when you are happy with those prepend the C<E<lt>> character to run the "
22363 "guestfish commands for real."
22364 msgstr ""
22365
22366 # type: =head1
22367 #. type: =head1
22368 #: ../fish/guestfish.pod:705
22369 msgid "PIPES"
22370 msgstr ""
22371
22372 # type: textblock
22373 #. type: textblock
22374 #: ../fish/guestfish.pod:707
22375 msgid ""
22376 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
22377 "command (a guestfish command) to the second command (any host command).  For "
22378 "example:"
22379 msgstr ""
22380
22381 # type: verbatim
22382 #. type: verbatim
22383 #: ../fish/guestfish.pod:711
22384 #, no-wrap
22385 msgid ""
22386 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22387 "\n"
22388 msgstr ""
22389
22390 # type: textblock
22391 #. type: textblock
22392 #: ../fish/guestfish.pod:713
22393 msgid ""
22394 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
22395 "program).  The above command would list all accounts in the guest filesystem "
22396 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
22397 msgstr ""
22398
22399 # type: verbatim
22400 #. type: verbatim
22401 #: ../fish/guestfish.pod:718
22402 #, no-wrap
22403 msgid ""
22404 " hexdump /bin/ls | head\n"
22405 " list-devices | tail -1\n"
22406 " tgz-out / - | tar ztf -\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: textblock
22411 #. type: textblock
22412 #: ../fish/guestfish.pod:722
22413 msgid ""
22414 "The space before the pipe symbol is required, any space after the pipe "
22415 "symbol is optional.  Everything after the pipe symbol is just passed "
22416 "straight to the host shell, so it can contain redirections, globs and "
22417 "anything else that makes sense on the host side."
22418 msgstr ""
22419
22420 # type: textblock
22421 #. type: textblock
22422 #: ../fish/guestfish.pod:727
22423 msgid ""
22424 "To use a literal argument which begins with a pipe symbol, you have to quote "
22425 "it, eg:"
22426 msgstr ""
22427
22428 # type: verbatim
22429 #. type: verbatim
22430 #: ../fish/guestfish.pod:730
22431 #, no-wrap
22432 msgid ""
22433 " echo \"|\"\n"
22434 "\n"
22435 msgstr ""
22436
22437 # type: =head1
22438 #. type: =head1
22439 #: ../fish/guestfish.pod:732
22440 msgid "HOME DIRECTORIES"
22441 msgstr ""
22442
22443 # type: textblock
22444 #. type: textblock
22445 #: ../fish/guestfish.pod:734
22446 msgid ""
22447 "If a parameter starts with the character C<~> then the tilde may be expanded "
22448 "as a home directory path (either C<~> for the current user's home directory, "
22449 "or C<~user> for another user)."
22450 msgstr ""
22451
22452 # type: textblock
22453 #. type: textblock
22454 #: ../fish/guestfish.pod:738
22455 msgid ""
22456 "Note that home directory expansion happens for users known I<on the host>, "
22457 "not in the guest filesystem."
22458 msgstr ""
22459
22460 # type: textblock
22461 #. type: textblock
22462 #: ../fish/guestfish.pod:741
22463 msgid ""
22464 "To use a literal argument which begins with a tilde, you have to quote it, "
22465 "eg:"
22466 msgstr ""
22467
22468 # type: verbatim
22469 #. type: verbatim
22470 #: ../fish/guestfish.pod:744
22471 #, no-wrap
22472 msgid ""
22473 " echo \"~\"\n"
22474 "\n"
22475 msgstr ""
22476
22477 # type: textblock
22478 #. type: textblock
22479 #: ../fish/guestfish.pod:748
22480 msgid ""
22481 "Libguestfs has some support for Linux guests encrypted according to the "
22482 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
22483 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
22484 "LUKS is supported."
22485 msgstr ""
22486
22487 # type: textblock
22488 #. type: textblock
22489 #: ../fish/guestfish.pod:753
22490 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
22491 msgstr ""
22492
22493 # type: verbatim
22494 #. type: verbatim
22495 #: ../fish/guestfish.pod:755
22496 #, no-wrap
22497 msgid ""
22498 " ><fs> vfs-type /dev/sda2\n"
22499 " crypto_LUKS\n"
22500 "\n"
22501 msgstr ""
22502
22503 # type: textblock
22504 #. type: textblock
22505 #: ../fish/guestfish.pod:758
22506 msgid ""
22507 "Then open those devices using L</luks-open>.  This creates a device-mapper "
22508 "device called C</dev/mapper/luksdev>."
22509 msgstr ""
22510
22511 # type: verbatim
22512 #. type: verbatim
22513 #: ../fish/guestfish.pod:761
22514 #, no-wrap
22515 msgid ""
22516 " ><fs> luks-open /dev/sda2 luksdev\n"
22517 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
22518 "\n"
22519 msgstr ""
22520
22521 # type: textblock
22522 #. type: textblock
22523 #: ../fish/guestfish.pod:764
22524 msgid ""
22525 "Finally you have to tell LVM to scan for volume groups on the newly created "
22526 "mapper device:"
22527 msgstr ""
22528
22529 # type: verbatim
22530 #. type: verbatim
22531 #: ../fish/guestfish.pod:767
22532 #, no-wrap
22533 msgid ""
22534 " vgscan\n"
22535 " vg-activate-all true\n"
22536 "\n"
22537 msgstr ""
22538
22539 # type: textblock
22540 #. type: textblock
22541 #: ../fish/guestfish.pod:770
22542 msgid "The logical volume(s) can now be mounted in the usual way."
22543 msgstr ""
22544
22545 # type: textblock
22546 #. type: textblock
22547 #: ../fish/guestfish.pod:772
22548 msgid ""
22549 "Before closing a LUKS device you must unmount any logical volumes on it and "
22550 "deactivate the volume groups by calling C<vg-activate false VG> on each "
22551 "one.  Then you can close the mapper device:"
22552 msgstr ""
22553
22554 # type: verbatim
22555 #. type: verbatim
22556 #: ../fish/guestfish.pod:776
22557 #, no-wrap
22558 msgid ""
22559 " vg-activate false /dev/VG\n"
22560 " luks-close /dev/mapper/luksdev\n"
22561 "\n"
22562 msgstr ""
22563
22564 # type: =head1
22565 #. type: =head1
22566 #: ../fish/guestfish.pod:779
22567 msgid "WINDOWS PATHS"
22568 msgstr ""
22569
22570 # type: textblock
22571 #. type: textblock
22572 #: ../fish/guestfish.pod:781
22573 msgid ""
22574 "If a path is prefixed with C<win:> then you can use Windows-style paths "
22575 "(with some limitations).  The following commands are equivalent:"
22576 msgstr ""
22577
22578 # type: verbatim
22579 #. type: verbatim
22580 #: ../fish/guestfish.pod:784
22581 #, no-wrap
22582 msgid ""
22583 " file /WINDOWS/system32/config/system.LOG\n"
22584 "\n"
22585 msgstr ""
22586
22587 # type: verbatim
22588 #. type: verbatim
22589 #: ../fish/guestfish.pod:786
22590 #, no-wrap
22591 msgid ""
22592 " file win:/windows/system32/config/system.log\n"
22593 "\n"
22594 msgstr ""
22595
22596 # type: verbatim
22597 #. type: verbatim
22598 #: ../fish/guestfish.pod:788
22599 #, no-wrap
22600 msgid ""
22601 " file win:\\windows\\system32\\config\\system.log\n"
22602 "\n"
22603 msgstr ""
22604
22605 # type: verbatim
22606 #. type: verbatim
22607 #: ../fish/guestfish.pod:790
22608 #, no-wrap
22609 msgid ""
22610 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
22611 "\n"
22612 msgstr ""
22613
22614 # type: textblock
22615 #. type: textblock
22616 #: ../fish/guestfish.pod:792
22617 msgid ""
22618 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
22619 "handles case insensitivity like Windows would.  This only works in argument "
22620 "positions that expect a path."
22621 msgstr ""
22622
22623 # type: =head1
22624 #. type: =head1
22625 #: ../fish/guestfish.pod:796
22626 msgid "UPLOADING AND DOWNLOADING FILES"
22627 msgstr ""
22628
22629 # type: textblock
22630 #. type: textblock
22631 #: ../fish/guestfish.pod:798
22632 msgid ""
22633 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22634 "others which upload from or download to a local file, you can use the "
22635 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
22636 msgstr ""
22637
22638 # type: verbatim
22639 #. type: verbatim
22640 #: ../fish/guestfish.pod:802
22641 #, no-wrap
22642 msgid ""
22643 " upload - /foo\n"
22644 "\n"
22645 msgstr ""
22646
22647 # type: textblock
22648 #. type: textblock
22649 #: ../fish/guestfish.pod:804
22650 msgid ""
22651 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22652 msgstr ""
22653
22654 # type: verbatim
22655 #. type: verbatim
22656 #: ../fish/guestfish.pod:807
22657 #, no-wrap
22658 msgid ""
22659 " tar-out /etc - | tar tf -\n"
22660 "\n"
22661 msgstr ""
22662
22663 # type: textblock
22664 #. type: textblock
22665 #: ../fish/guestfish.pod:809
22666 msgid ""
22667 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22668 "command (see L</PIPES>)."
22669 msgstr ""
22670
22671 # type: textblock
22672 #. type: textblock
22673 #: ../fish/guestfish.pod:812
22674 msgid ""
22675 "When using C<-> to read from stdin, the input is read up to the end of "
22676 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
22677 "some arbitrary end marker:"
22678 msgstr ""
22679
22680 # type: verbatim
22681 #. type: verbatim
22682 #: ../fish/guestfish.pod:816
22683 #, no-wrap
22684 msgid ""
22685 " upload -<<END /foo\n"
22686 " input line 1\n"
22687 " input line 2\n"
22688 " input line 3\n"
22689 " END\n"
22690 "\n"
22691 msgstr ""
22692
22693 # type: textblock
22694 #. type: textblock
22695 #: ../fish/guestfish.pod:822
22696 msgid ""
22697 "Any string of characters can be used instead of C<END>.  The end marker must "
22698 "appear on a line of its own, without any preceeding or following characters "
22699 "(not even spaces)."
22700 msgstr ""
22701
22702 # type: textblock
22703 #. type: textblock
22704 #: ../fish/guestfish.pod:826
22705 msgid ""
22706 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22707 "upload local files (so-called \"FileIn\" parameters in the generator)."
22708 msgstr ""
22709
22710 # type: =head1
22711 #. type: =head1
22712 #: ../fish/guestfish.pod:829
22713 msgid "EXIT ON ERROR BEHAVIOUR"
22714 msgstr ""
22715
22716 # type: textblock
22717 #. type: textblock
22718 #: ../fish/guestfish.pod:831
22719 msgid ""
22720 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22721 "taking commands from a human over a tty), and will exit on the first error "
22722 "in non-interactive mode (scripts, commands given on the command line)."
22723 msgstr ""
22724
22725 # type: textblock
22726 #. type: textblock
22727 #: ../fish/guestfish.pod:836
22728 msgid ""
22729 "If you prefix a command with a I<-> character, then that command will not "
22730 "cause guestfish to exit, even if that (one) command returns an error."
22731 msgstr ""
22732
22733 # type: =head1
22734 #. type: =head1
22735 #: ../fish/guestfish.pod:840
22736 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22737 msgstr ""
22738
22739 # type: textblock
22740 #. type: textblock
22741 #: ../fish/guestfish.pod:842
22742 msgid ""
22743 "Guestfish can be remote-controlled over a socket.  This is useful "
22744 "particularly in shell scripts where you want to make several different "
22745 "changes to a filesystem, but you don't want the overhead of starting up a "
22746 "guestfish process each time."
22747 msgstr ""
22748
22749 # type: textblock
22750 #. type: textblock
22751 #: ../fish/guestfish.pod:847
22752 msgid "Start a guestfish server process using:"
22753 msgstr ""
22754
22755 # type: verbatim
22756 #. type: verbatim
22757 #: ../fish/guestfish.pod:849
22758 #, no-wrap
22759 msgid ""
22760 " eval \"`guestfish --listen`\"\n"
22761 "\n"
22762 msgstr ""
22763
22764 # type: textblock
22765 #. type: textblock
22766 #: ../fish/guestfish.pod:851
22767 msgid "and then send it commands by doing:"
22768 msgstr ""
22769
22770 # type: verbatim
22771 #. type: verbatim
22772 #: ../fish/guestfish.pod:853
22773 #, no-wrap
22774 msgid ""
22775 " guestfish --remote cmd [...]\n"
22776 "\n"
22777 msgstr ""
22778
22779 # type: textblock
22780 #. type: textblock
22781 #: ../fish/guestfish.pod:855
22782 msgid "To cause the server to exit, send it the exit command:"
22783 msgstr ""
22784
22785 # type: verbatim
22786 #. type: verbatim
22787 #: ../fish/guestfish.pod:857
22788 #, no-wrap
22789 msgid ""
22790 " guestfish --remote exit\n"
22791 "\n"
22792 msgstr ""
22793
22794 # type: textblock
22795 #. type: textblock
22796 #: ../fish/guestfish.pod:859
22797 msgid ""
22798 "Note that the server will normally exit if there is an error in a command.  "
22799 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22800 "BEHAVIOUR>."
22801 msgstr ""
22802
22803 # type: =head2
22804 #. type: =head2
22805 #: ../fish/guestfish.pod:863
22806 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22807 msgstr ""
22808
22809 # type: textblock
22810 #. type: textblock
22811 #: ../fish/guestfish.pod:865
22812 msgid ""
22813 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22814 "is how the I<--remote> option knows where to send the commands.  You can "
22815 "have several guestfish listener processes running using:"
22816 msgstr ""
22817
22818 # type: verbatim
22819 #. type: verbatim
22820 #: ../fish/guestfish.pod:869
22821 #, no-wrap
22822 msgid ""
22823 " eval \"`guestfish --listen`\"\n"
22824 " pid1=$GUESTFISH_PID\n"
22825 " eval \"`guestfish --listen`\"\n"
22826 " pid2=$GUESTFISH_PID\n"
22827 " ...\n"
22828 " guestfish --remote=$pid1 cmd\n"
22829 " guestfish --remote=$pid2 cmd\n"
22830 "\n"
22831 msgstr ""
22832
22833 # type: =head2
22834 #. type: =head2
22835 #: ../fish/guestfish.pod:877
22836 msgid "REMOTE CONTROL AND CSH"
22837 msgstr ""
22838
22839 # type: textblock
22840 #. type: textblock
22841 #: ../fish/guestfish.pod:879
22842 msgid ""
22843 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22844 "option:"
22845 msgstr ""
22846
22847 # type: verbatim
22848 #. type: verbatim
22849 #: ../fish/guestfish.pod:882
22850 #, no-wrap
22851 msgid ""
22852 " eval \"`guestfish --listen --csh`\"\n"
22853 "\n"
22854 msgstr ""
22855
22856 # type: =head2
22857 #. type: =head2
22858 #: ../fish/guestfish.pod:884
22859 msgid "REMOTE CONTROL DETAILS"
22860 msgstr ""
22861
22862 # type: textblock
22863 #. type: textblock
22864 #: ../fish/guestfish.pod:886
22865 msgid ""
22866 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22867 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22868 "and C<$PID> is the process ID of the server."
22869 msgstr ""
22870
22871 # type: textblock
22872 #. type: textblock
22873 #: ../fish/guestfish.pod:890
22874 msgid "Guestfish client and server versions must match exactly."
22875 msgstr ""
22876
22877 # type: =head1
22878 #. type: =head1
22879 #: ../fish/guestfish.pod:892
22880 msgid "PREPARED DISK IMAGES"
22881 msgstr ""
22882
22883 # type: textblock
22884 #. type: textblock
22885 #: ../fish/guestfish.pod:894
22886 msgid ""
22887 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22888 "preformatted disk images that guestfish can make for you to save typing.  "
22889 "This is particularly useful for testing purposes.  This option is used "
22890 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22891 "can be mixed with I<-a>)."
22892 msgstr ""
22893
22894 # type: textblock
22895 #. type: textblock
22896 #: ../fish/guestfish.pod:900
22897 msgid ""
22898 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22899 "the second and so on.  Existing files in the current directory are "
22900 "I<overwritten>."
22901 msgstr ""
22902
22903 # type: textblock
22904 #. type: textblock
22905 #: ../fish/guestfish.pod:904
22906 msgid ""
22907 "The type briefly describes how the disk should be sized, partitioned, how "
22908 "filesystem(s) should be created, and how content should be added.  "
22909 "Optionally the type can be followed by extra parameters, separated by C<:> "
22910 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22911 "allocated disk, containing a single partition, with the partition formatted "
22912 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22913 "disk instead."
22914 msgstr ""
22915
22916 # type: textblock
22917 #. type: textblock
22918 #: ../fish/guestfish.pod:912
22919 msgid "To list the available types and any extra parameters they take, run:"
22920 msgstr ""
22921
22922 # type: textblock
22923 #. type: textblock
22924 #: ../fish/guestfish.pod:916
22925 msgid ""
22926 "Note that the prepared filesystem is not mounted.  You would usually have to "
22927 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22928 msgstr ""
22929
22930 # type: textblock
22931 #. type: textblock
22932 #: ../fish/guestfish.pod:920
22933 msgid ""
22934 "If any I<-N> or I<--new> options are given, the guest is automatically "
22935 "launched."
22936 msgstr ""
22937
22938 # type: textblock
22939 #. type: textblock
22940 #: ../fish/guestfish.pod:925
22941 msgid "Create a 100MB disk with an ext4-formatted partition:"
22942 msgstr ""
22943
22944 # type: verbatim
22945 #. type: verbatim
22946 #: ../fish/guestfish.pod:927
22947 #, no-wrap
22948 msgid ""
22949 " guestfish -N fs:ext4\n"
22950 "\n"
22951 msgstr ""
22952
22953 # type: textblock
22954 #. type: textblock
22955 #: ../fish/guestfish.pod:929
22956 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22957 msgstr ""
22958
22959 # type: verbatim
22960 #. type: verbatim
22961 #: ../fish/guestfish.pod:931
22962 #, no-wrap
22963 msgid ""
22964 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22965 "\n"
22966 msgstr ""
22967
22968 # type: textblock
22969 #. type: textblock
22970 #: ../fish/guestfish.pod:933
22971 msgid "Create a blank 200MB disk:"
22972 msgstr ""
22973
22974 # type: verbatim
22975 #. type: verbatim
22976 #: ../fish/guestfish.pod:935
22977 #, no-wrap
22978 msgid ""
22979 " guestfish -N disk:200M\n"
22980 "\n"
22981 msgstr ""
22982
22983 # type: =head1
22984 #. type: =head1
22985 #: ../fish/guestfish.pod:937
22986 msgid "PROGRESS BARS"
22987 msgstr ""
22988
22989 # type: textblock
22990 #. type: textblock
22991 #: ../fish/guestfish.pod:939
22992 msgid ""
22993 "Some (not all) long-running commands send progress notification messages as "
22994 "they are running.  Guestfish turns these messages into progress bars."
22995 msgstr ""
22996
22997 # type: textblock
22998 #. type: textblock
22999 #: ../fish/guestfish.pod:943
23000 msgid ""
23001 "When a command that supports progress bars takes longer than two seconds to "
23002 "run, and if progress bars are enabled, then you will see one appearing below "
23003 "the command:"
23004 msgstr ""
23005
23006 # type: verbatim
23007 #. type: verbatim
23008 #: ../fish/guestfish.pod:947
23009 #, no-wrap
23010 msgid ""
23011 " ><fs> copy-size /large-file /another-file 2048M\n"
23012 " / 10% [#####-----------------------------------------] 00:30\n"
23013 "\n"
23014 msgstr ""
23015
23016 # type: textblock
23017 #. type: textblock
23018 #: ../fish/guestfish.pod:950
23019 msgid ""
23020 "The spinner on the left hand side moves round once for every progress "
23021 "notification received from the backend.  This is a (reasonably) golden "
23022 "assurance that the command is \"doing something\" even if the progress bar "
23023 "is not moving, because the command is able to send the progress "
23024 "notifications.  When the bar reaches 100% and the command finishes, the "
23025 "spinner disappears."
23026 msgstr ""
23027
23028 # type: textblock
23029 #. type: textblock
23030 #: ../fish/guestfish.pod:957
23031 msgid ""
23032 "Progress bars are enabled by default when guestfish is used interactively.  "
23033 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23034 "and you can disable them completely using I<--no-progress-bars>."
23035 msgstr ""
23036
23037 # type: =head1
23038 #. type: =head1
23039 #: ../fish/guestfish.pod:962
23040 msgid "GUESTFISH COMMANDS"
23041 msgstr ""
23042
23043 # type: textblock
23044 #. type: textblock
23045 #: ../fish/guestfish.pod:964
23046 msgid ""
23047 "The commands in this section are guestfish convenience commands, in other "
23048 "words, they are not part of the L<guestfs(3)> API."
23049 msgstr ""
23050
23051 # type: =head2
23052 #. type: =head2
23053 #: ../fish/guestfish.pod:967
23054 msgid "help"
23055 msgstr ""
23056
23057 # type: verbatim
23058 #. type: verbatim
23059 #: ../fish/guestfish.pod:969
23060 #, no-wrap
23061 msgid ""
23062 " help\n"
23063 " help cmd\n"
23064 "\n"
23065 msgstr ""
23066
23067 # type: textblock
23068 #. type: textblock
23069 #: ../fish/guestfish.pod:972
23070 msgid "Without any parameter, this provides general help."
23071 msgstr ""
23072
23073 # type: textblock
23074 #. type: textblock
23075 #: ../fish/guestfish.pod:974
23076 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23077 msgstr ""
23078
23079 # type: =head2
23080 #. type: =head2
23081 #: ../fish/guestfish.pod:976
23082 msgid "quit | exit"
23083 msgstr ""
23084
23085 # type: textblock
23086 #. type: textblock
23087 #: ../fish/guestfish.pod:978
23088 msgid "This exits guestfish.  You can also use C<^D> key."
23089 msgstr ""
23090
23091 # type: textblock
23092 #. type: textblock
23093 #: ../fish/guestfish.pod:980
23094 msgid "@FISH_COMMANDS@"
23095 msgstr ""
23096
23097 # type: =head1
23098 #. type: =head1
23099 #: ../fish/guestfish.pod:982
23100 msgid "COMMANDS"
23101 msgstr ""
23102
23103 # type: =head1
23104 #. type: =head1
23105 #: ../fish/guestfish.pod:986 ../test-tool/libguestfs-test-tool.pod:83
23106 msgid "EXIT CODE"
23107 msgstr ""
23108
23109 # type: textblock
23110 #. type: textblock
23111 #: ../fish/guestfish.pod:988
23112 msgid ""
23113 "guestfish returns 0 if the commands completed without error, or 1 if there "
23114 "was an error."
23115 msgstr ""
23116
23117 # type: =item
23118 #. type: =item
23119 #: ../fish/guestfish.pod:995
23120 msgid "EDITOR"
23121 msgstr ""
23122
23123 # type: textblock
23124 #. type: textblock
23125 #: ../fish/guestfish.pod:997
23126 msgid ""
23127 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23128 "C<vi>."
23129 msgstr ""
23130
23131 # type: =item
23132 #. type: =item
23133 #: ../fish/guestfish.pod:1000
23134 msgid "GUESTFISH_PID"
23135 msgstr ""
23136
23137 # type: textblock
23138 #. type: textblock
23139 #: ../fish/guestfish.pod:1002
23140 msgid ""
23141 "Used with the I<--remote> option to specify the remote guestfish process to "
23142 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23143 msgstr ""
23144
23145 # type: =item
23146 #. type: =item
23147 #: ../fish/guestfish.pod:1006
23148 msgid "HEXEDITOR"
23149 msgstr ""
23150
23151 # type: textblock
23152 #. type: textblock
23153 #: ../fish/guestfish.pod:1008
23154 msgid ""
23155 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23156 "not specified, the external L<hexedit(1)> program is used."
23157 msgstr ""
23158
23159 # type: =item
23160 #. type: =item
23161 #: ../fish/guestfish.pod:1012
23162 msgid "HOME"
23163 msgstr ""
23164
23165 # type: textblock
23166 #. type: textblock
23167 #: ../fish/guestfish.pod:1014
23168 msgid ""
23169 "If compiled with GNU readline support, various files in the home directory "
23170 "can be used.  See L</FILES>."
23171 msgstr ""
23172
23173 # type: textblock
23174 #. type: textblock
23175 #: ../fish/guestfish.pod:1023
23176 msgid ""
23177 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23178 "effect as using the B<-v> option."
23179 msgstr ""
23180
23181 # type: textblock
23182 #. type: textblock
23183 #: ../fish/guestfish.pod:1035
23184 msgid ""
23185 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23186 "the discussion of paths in L<guestfs(3)>."
23187 msgstr ""
23188
23189 # type: textblock
23190 #. type: textblock
23191 #: ../fish/guestfish.pod:1046
23192 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23193 msgstr ""
23194
23195 # type: =item
23196 #. type: =item
23197 #: ../fish/guestfish.pod:1048
23198 msgid "PAGER"
23199 msgstr ""
23200
23201 # type: textblock
23202 #. type: textblock
23203 #: ../fish/guestfish.pod:1050
23204 msgid ""
23205 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23206 "C<more>."
23207 msgstr ""
23208
23209 # type: =head1
23210 #. type: =head1
23211 #: ../fish/guestfish.pod:1066 ../test-tool/libguestfs-test-tool.pod:88
23212 msgid "FILES"
23213 msgstr ""
23214
23215 # type: =item
23216 #. type: =item
23217 #: ../fish/guestfish.pod:1070
23218 msgid "$HOME/.guestfish"
23219 msgstr ""
23220
23221 # type: textblock
23222 #. type: textblock
23223 #: ../fish/guestfish.pod:1072
23224 msgid ""
23225 "If compiled with GNU readline support, then the command history is saved in "
23226 "this file."
23227 msgstr ""
23228
23229 # type: =item
23230 #. type: =item
23231 #: ../fish/guestfish.pod:1075
23232 msgid "$HOME/.inputrc"
23233 msgstr ""
23234
23235 # type: =item
23236 #. type: =item
23237 #: ../fish/guestfish.pod:1077
23238 msgid "/etc/inputrc"
23239 msgstr ""
23240
23241 # type: textblock
23242 #. type: textblock
23243 #: ../fish/guestfish.pod:1079
23244 msgid ""
23245 "If compiled with GNU readline support, then these files can be used to "
23246 "configure readline.  For further information, please see L<readline(3)/"
23247 "INITIALIZATION FILE>."
23248 msgstr ""
23249
23250 # type: textblock
23251 #. type: textblock
23252 #: ../fish/guestfish.pod:1083
23253 msgid "To write rules which only apply to guestfish, use:"
23254 msgstr ""
23255
23256 # type: verbatim
23257 #. type: verbatim
23258 #: ../fish/guestfish.pod:1085
23259 #, no-wrap
23260 msgid ""
23261 " $if guestfish\n"
23262 " ...\n"
23263 " $endif\n"
23264 "\n"
23265 msgstr ""
23266
23267 # type: textblock
23268 #. type: textblock
23269 #: ../fish/guestfish.pod:1089
23270 msgid ""
23271 "Variables that you can set in inputrc that change the behaviour of guestfish "
23272 "in useful ways include:"
23273 msgstr ""
23274
23275 # type: =item
23276 #. type: =item
23277 #: ../fish/guestfish.pod:1094
23278 msgid "completion-ignore-case (default: on)"
23279 msgstr ""
23280
23281 # type: textblock
23282 #. type: textblock
23283 #: ../fish/guestfish.pod:1096
23284 msgid ""
23285 "By default, guestfish will ignore case when tab-completing paths on the "
23286 "disk.  Use:"
23287 msgstr ""
23288
23289 # type: verbatim
23290 #. type: verbatim
23291 #: ../fish/guestfish.pod:1099
23292 #, no-wrap
23293 msgid ""
23294 " set completion-ignore-case off\n"
23295 "\n"
23296 msgstr ""
23297
23298 # type: textblock
23299 #. type: textblock
23300 #: ../fish/guestfish.pod:1101
23301 msgid "to make guestfish case sensitive."
23302 msgstr ""
23303
23304 # type: =item
23305 #. type: =item
23306 #: ../fish/guestfish.pod:1105
23307 msgid "test1.img"
23308 msgstr ""
23309
23310 # type: =item
23311 #. type: =item
23312 #: ../fish/guestfish.pod:1107
23313 msgid "test2.img (etc)"
23314 msgstr ""
23315
23316 # type: textblock
23317 #. type: textblock
23318 #: ../fish/guestfish.pod:1109
23319 msgid ""
23320 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
23321 "will be created in the file C<test1.img> in the current directory.  The "
23322 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
23323 "the same name will be overwritten."
23324 msgstr ""
23325
23326 #. type: textblock
23327 #: ../fish/guestfish.pod:1118
23328 msgid ""
23329 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
23330 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
23331 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
23332 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
23333 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
23334 ">, L<hexedit(1)>."
23335 msgstr ""
23336
23337 # type: textblock
23338 #. type: textblock
23339 #: ../fish/guestfish.pod:1148 ../test-tool/libguestfs-test-tool.pod:124
23340 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:372
23341 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
23342 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
23343 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
23344 msgid ""
23345 "This program is free software; you can redistribute it and/or modify it "
23346 "under the terms of the GNU General Public License as published by the Free "
23347 "Software Foundation; either version 2 of the License, or (at your option) "
23348 "any later version."
23349 msgstr ""
23350
23351 # type: textblock
23352 #. type: textblock
23353 #: ../fish/guestfish.pod:1153 ../test-tool/libguestfs-test-tool.pod:129
23354 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:377
23355 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
23356 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
23357 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
23358 msgid ""
23359 "This program is distributed in the hope that it will be useful, but WITHOUT "
23360 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
23361 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
23362 "more details."
23363 msgstr ""
23364
23365 # type: textblock
23366 #. type: textblock
23367 #: ../fish/guestfish.pod:1158 ../test-tool/libguestfs-test-tool.pod:134
23368 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:382
23369 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
23370 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
23371 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
23372 msgid ""
23373 "You should have received a copy of the GNU General Public License along with "
23374 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
23375 "Ave, Cambridge, MA 02139, USA."
23376 msgstr ""
23377
23378 # type: =head2
23379 #. type: =head2
23380 #: ../fish/guestfish-actions.pod:1
23381 msgid "add-cdrom"
23382 msgstr ""
23383
23384 # type: verbatim
23385 #. type: verbatim
23386 #: ../fish/guestfish-actions.pod:3
23387 #, no-wrap
23388 msgid ""
23389 " add-cdrom filename\n"
23390 "\n"
23391 msgstr ""
23392
23393 # type: textblock
23394 #. type: textblock
23395 #: ../fish/guestfish-actions.pod:15
23396 msgid ""
23397 "This call checks for the existence of C<filename>.  This stops you from "
23398 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23399 "and C<http:> URLs.  To specify those, use the general L</config> call "
23400 "instead."
23401 msgstr ""
23402
23403 # type: textblock
23404 #. type: textblock
23405 #: ../fish/guestfish-actions.pod:22
23406 msgid ""
23407 "If you just want to add an ISO file (often you use this as an efficient way "
23408 "to transfer large files into the guest), then you should probably use L</add-"
23409 "drive-ro> instead."
23410 msgstr ""
23411
23412 # type: =head2
23413 #. type: =head2
23414 #: ../fish/guestfish-actions.pod:35
23415 msgid "add-domain"
23416 msgstr ""
23417
23418 # type: =head2
23419 #. type: =head2
23420 #: ../fish/guestfish-actions.pod:37
23421 msgid "domain"
23422 msgstr ""
23423
23424 # type: verbatim
23425 #. type: verbatim
23426 #: ../fish/guestfish-actions.pod:39
23427 #, no-wrap
23428 msgid ""
23429 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
23430 "\n"
23431 msgstr ""
23432
23433 # type: textblock
23434 #. type: textblock
23435 #: ../fish/guestfish-actions.pod:41
23436 msgid ""
23437 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23438 "It works by connecting to libvirt, requesting the domain and domain XML from "
23439 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
23440 msgstr ""
23441
23442 # type: textblock
23443 #. type: textblock
23444 #: ../fish/guestfish-actions.pod:64
23445 msgid ""
23446 "The other optional parameters are passed directly through to L</add-drive-"
23447 "opts>."
23448 msgstr ""
23449
23450 # type: textblock
23451 #. type: textblock
23452 #: ../fish/guestfish-actions.pod:67 ../fish/guestfish-actions.pod:131
23453 #: ../fish/guestfish-actions.pod:2934
23454 msgid ""
23455 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
23456 msgstr ""
23457
23458 # type: =head2
23459 #. type: =head2
23460 #: ../fish/guestfish-actions.pod:69
23461 msgid "add-drive"
23462 msgstr ""
23463
23464 # type: verbatim
23465 #. type: verbatim
23466 #: ../fish/guestfish-actions.pod:71
23467 #, no-wrap
23468 msgid ""
23469 " add-drive filename\n"
23470 "\n"
23471 msgstr ""
23472
23473 # type: textblock
23474 #. type: textblock
23475 #: ../fish/guestfish-actions.pod:73
23476 msgid ""
23477 "This function is the equivalent of calling L</add-drive-opts> with no "
23478 "optional parameters, so the disk is added writable, with the format being "
23479 "detected automatically."
23480 msgstr ""
23481
23482 # type: textblock
23483 #. type: textblock
23484 #: ../fish/guestfish-actions.pod:77
23485 msgid ""
23486 "Automatic detection of the format opens you up to a potential security hole "
23487 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23488 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23489 "you should think about replacing calls to this function with calls to L</add-"
23490 "drive-opts>, and specifying the format."
23491 msgstr ""
23492
23493 # type: =head2
23494 #. type: =head2
23495 #: ../fish/guestfish-actions.pod:84
23496 msgid "add-drive-opts"
23497 msgstr ""
23498
23499 # type: =head2
23500 #. type: =head2
23501 #: ../fish/guestfish-actions.pod:86
23502 msgid "add"
23503 msgstr ""
23504
23505 # type: verbatim
23506 #. type: verbatim
23507 #: ../fish/guestfish-actions.pod:88
23508 #, no-wrap
23509 msgid ""
23510 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
23511 "\n"
23512 msgstr ""
23513
23514 # type: textblock
23515 #. type: textblock
23516 #: ../fish/guestfish-actions.pod:115
23517 msgid ""
23518 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
23519 "add-drive-ro>) then the format is automatically detected.  Possible formats "
23520 "include C<raw> and C<qcow2>."
23521 msgstr ""
23522
23523 # type: textblock
23524 #. type: textblock
23525 #: ../fish/guestfish-actions.pod:126
23526 msgid ""
23527 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
23528 "add-drive-with-if> call (q.v.)"
23529 msgstr ""
23530
23531 # type: =head2
23532 #. type: =head2
23533 #: ../fish/guestfish-actions.pod:133
23534 msgid "add-drive-ro"
23535 msgstr ""
23536
23537 # type: =head2
23538 #. type: =head2
23539 #: ../fish/guestfish-actions.pod:135
23540 msgid "add-ro"
23541 msgstr ""
23542
23543 # type: verbatim
23544 #. type: verbatim
23545 #: ../fish/guestfish-actions.pod:137
23546 #, no-wrap
23547 msgid ""
23548 " add-drive-ro filename\n"
23549 "\n"
23550 msgstr ""
23551
23552 # type: textblock
23553 #. type: textblock
23554 #: ../fish/guestfish-actions.pod:139
23555 msgid ""
23556 "This function is the equivalent of calling L</add-drive-opts> with the "
23557 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
23558 "is added read-only, with the format being detected automatically."
23559 msgstr ""
23560
23561 # type: =head2
23562 #. type: =head2
23563 #: ../fish/guestfish-actions.pod:144
23564 msgid "add-drive-ro-with-if"
23565 msgstr ""
23566
23567 # type: verbatim
23568 #. type: verbatim
23569 #: ../fish/guestfish-actions.pod:146
23570 #, no-wrap
23571 msgid ""
23572 " add-drive-ro-with-if filename iface\n"
23573 "\n"
23574 msgstr ""
23575
23576 # type: textblock
23577 #. type: textblock
23578 #: ../fish/guestfish-actions.pod:148
23579 msgid ""
23580 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
23581 "interface emulation to use at run time."
23582 msgstr ""
23583
23584 # type: =head2
23585 #. type: =head2
23586 #: ../fish/guestfish-actions.pod:158
23587 msgid "add-drive-with-if"
23588 msgstr ""
23589
23590 # type: verbatim
23591 #. type: verbatim
23592 #: ../fish/guestfish-actions.pod:160
23593 #, no-wrap
23594 msgid ""
23595 " add-drive-with-if filename iface\n"
23596 "\n"
23597 msgstr ""
23598
23599 # type: textblock
23600 #. type: textblock
23601 #: ../fish/guestfish-actions.pod:162
23602 msgid ""
23603 "This is the same as L</add-drive> but it allows you to specify the QEMU "
23604 "interface emulation to use at run time."
23605 msgstr ""
23606
23607 # type: =head2
23608 #. type: =head2
23609 #: ../fish/guestfish-actions.pod:172
23610 msgid "aug-clear"
23611 msgstr ""
23612
23613 # type: verbatim
23614 #. type: verbatim
23615 #: ../fish/guestfish-actions.pod:174
23616 #, no-wrap
23617 msgid ""
23618 " aug-clear augpath\n"
23619 "\n"
23620 msgstr ""
23621
23622 # type: =head2
23623 #. type: =head2
23624 #: ../fish/guestfish-actions.pod:179
23625 msgid "aug-close"
23626 msgstr ""
23627
23628 # type: verbatim
23629 #. type: verbatim
23630 #: ../fish/guestfish-actions.pod:181
23631 #, no-wrap
23632 msgid ""
23633 " aug-close\n"
23634 "\n"
23635 msgstr ""
23636
23637 # type: textblock
23638 #. type: textblock
23639 #: ../fish/guestfish-actions.pod:183
23640 msgid ""
23641 "Close the current Augeas handle and free up any resources used by it.  After "
23642 "calling this, you have to call L</aug-init> again before you can use any "
23643 "other Augeas functions."
23644 msgstr ""
23645
23646 # type: =head2
23647 #. type: =head2
23648 #: ../fish/guestfish-actions.pod:188
23649 msgid "aug-defnode"
23650 msgstr ""
23651
23652 # type: verbatim
23653 #. type: verbatim
23654 #: ../fish/guestfish-actions.pod:190
23655 #, no-wrap
23656 msgid ""
23657 " aug-defnode name expr val\n"
23658 "\n"
23659 msgstr ""
23660
23661 # type: textblock
23662 #. type: textblock
23663 #: ../fish/guestfish-actions.pod:195
23664 msgid ""
23665 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23666 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
23667 "containing that single node."
23668 msgstr ""
23669
23670 # type: =head2
23671 #. type: =head2
23672 #: ../fish/guestfish-actions.pod:203
23673 msgid "aug-defvar"
23674 msgstr ""
23675
23676 # type: verbatim
23677 #. type: verbatim
23678 #: ../fish/guestfish-actions.pod:205
23679 #, no-wrap
23680 msgid ""
23681 " aug-defvar name expr\n"
23682 "\n"
23683 msgstr ""
23684
23685 # type: =head2
23686 #. type: =head2
23687 #: ../fish/guestfish-actions.pod:214
23688 msgid "aug-get"
23689 msgstr ""
23690
23691 # type: verbatim
23692 #. type: verbatim
23693 #: ../fish/guestfish-actions.pod:216
23694 #, no-wrap
23695 msgid ""
23696 " aug-get augpath\n"
23697 "\n"
23698 msgstr ""
23699
23700 # type: =head2
23701 #. type: =head2
23702 #: ../fish/guestfish-actions.pod:221
23703 msgid "aug-init"
23704 msgstr ""
23705
23706 # type: verbatim
23707 #. type: verbatim
23708 #: ../fish/guestfish-actions.pod:223
23709 #, no-wrap
23710 msgid ""
23711 " aug-init root flags\n"
23712 "\n"
23713 msgstr ""
23714
23715 # type: textblock
23716 #. type: textblock
23717 #: ../fish/guestfish-actions.pod:229
23718 msgid "You must call this before using any other L</aug-*> commands."
23719 msgstr ""
23720
23721 # type: textblock
23722 #. type: textblock
23723 #: ../fish/guestfish-actions.pod:264
23724 msgid "Do not load the tree in L</aug-init>."
23725 msgstr ""
23726
23727 # type: textblock
23728 #. type: textblock
23729 #: ../fish/guestfish-actions.pod:268
23730 msgid "To close the handle, you can call L</aug-close>."
23731 msgstr ""
23732
23733 # type: =head2
23734 #. type: =head2
23735 #: ../fish/guestfish-actions.pod:272
23736 msgid "aug-insert"
23737 msgstr ""
23738
23739 # type: verbatim
23740 #. type: verbatim
23741 #: ../fish/guestfish-actions.pod:274
23742 #, no-wrap
23743 msgid ""
23744 " aug-insert augpath label true|false\n"
23745 "\n"
23746 msgstr ""
23747
23748 # type: =head2
23749 #. type: =head2
23750 #: ../fish/guestfish-actions.pod:284
23751 msgid "aug-load"
23752 msgstr ""
23753
23754 # type: verbatim
23755 #. type: verbatim
23756 #: ../fish/guestfish-actions.pod:286
23757 #, no-wrap
23758 msgid ""
23759 " aug-load\n"
23760 "\n"
23761 msgstr ""
23762
23763 # type: =head2
23764 #. type: =head2
23765 #: ../fish/guestfish-actions.pod:293
23766 msgid "aug-ls"
23767 msgstr ""
23768
23769 # type: verbatim
23770 #. type: verbatim
23771 #: ../fish/guestfish-actions.pod:295
23772 #, no-wrap
23773 msgid ""
23774 " aug-ls augpath\n"
23775 "\n"
23776 msgstr ""
23777
23778 # type: textblock
23779 #. type: textblock
23780 #: ../fish/guestfish-actions.pod:297
23781 msgid ""
23782 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
23783 "resulting nodes into alphabetical order."
23784 msgstr ""
23785
23786 # type: =head2
23787 #. type: =head2
23788 #: ../fish/guestfish-actions.pod:300
23789 msgid "aug-match"
23790 msgstr ""
23791
23792 # type: verbatim
23793 #. type: verbatim
23794 #: ../fish/guestfish-actions.pod:302
23795 #, no-wrap
23796 msgid ""
23797 " aug-match augpath\n"
23798 "\n"
23799 msgstr ""
23800
23801 # type: =head2
23802 #. type: =head2
23803 #: ../fish/guestfish-actions.pod:308
23804 msgid "aug-mv"
23805 msgstr ""
23806
23807 # type: verbatim
23808 #. type: verbatim
23809 #: ../fish/guestfish-actions.pod:310
23810 #, no-wrap
23811 msgid ""
23812 " aug-mv src dest\n"
23813 "\n"
23814 msgstr ""
23815
23816 # type: =head2
23817 #. type: =head2
23818 #: ../fish/guestfish-actions.pod:315
23819 msgid "aug-rm"
23820 msgstr ""
23821
23822 # type: verbatim
23823 #. type: verbatim
23824 #: ../fish/guestfish-actions.pod:317
23825 #, no-wrap
23826 msgid ""
23827 " aug-rm augpath\n"
23828 "\n"
23829 msgstr ""
23830
23831 # type: =head2
23832 #. type: =head2
23833 #: ../fish/guestfish-actions.pod:323
23834 msgid "aug-save"
23835 msgstr ""
23836
23837 # type: verbatim
23838 #. type: verbatim
23839 #: ../fish/guestfish-actions.pod:325
23840 #, no-wrap
23841 msgid ""
23842 " aug-save\n"
23843 "\n"
23844 msgstr ""
23845
23846 # type: textblock
23847 #. type: textblock
23848 #: ../fish/guestfish-actions.pod:329
23849 msgid ""
23850 "The flags which were passed to L</aug-init> affect exactly how files are "
23851 "saved."
23852 msgstr ""
23853
23854 # type: =head2
23855 #. type: =head2
23856 #: ../fish/guestfish-actions.pod:332
23857 msgid "aug-set"
23858 msgstr ""
23859
23860 # type: verbatim
23861 #. type: verbatim
23862 #: ../fish/guestfish-actions.pod:334
23863 #, no-wrap
23864 msgid ""
23865 " aug-set augpath val\n"
23866 "\n"
23867 msgstr ""
23868
23869 # type: textblock
23870 #. type: textblock
23871 #: ../fish/guestfish-actions.pod:338
23872 msgid ""
23873 "In the Augeas API, it is possible to clear a node by setting the value to "
23874 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23875 "this call.  Instead you must use the L</aug-clear> call."
23876 msgstr ""
23877
23878 # type: =head2
23879 #. type: =head2
23880 #: ../fish/guestfish-actions.pod:343
23881 msgid "available"
23882 msgstr ""
23883
23884 # type: verbatim
23885 #. type: verbatim
23886 #: ../fish/guestfish-actions.pod:345
23887 #, no-wrap
23888 msgid ""
23889 " available 'groups ...'\n"
23890 "\n"
23891 msgstr ""
23892
23893 # type: textblock
23894 #. type: textblock
23895 #: ../fish/guestfish-actions.pod:351
23896 msgid ""
23897 "The libguestfs groups, and the functions that those groups correspond to, "
23898 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23899 "runtime by calling L</available-all-groups>."
23900 msgstr ""
23901
23902 # type: textblock
23903 #. type: textblock
23904 #: ../fish/guestfish-actions.pod:375
23905 msgid "You must call L</launch> before calling this function."
23906 msgstr ""
23907
23908 # type: textblock
23909 #. type: textblock
23910 #: ../fish/guestfish-actions.pod:397
23911 msgid ""
23912 "This call was added in version C<1.0.80>.  In previous versions of "
23913 "libguestfs all you could do would be to speculatively execute a command to "
23914 "find out if the daemon implemented it.  See also L</version>."
23915 msgstr ""
23916
23917 # type: =head2
23918 #. type: =head2
23919 #: ../fish/guestfish-actions.pod:404
23920 msgid "available-all-groups"
23921 msgstr ""
23922
23923 # type: verbatim
23924 #. type: verbatim
23925 #: ../fish/guestfish-actions.pod:406
23926 #, no-wrap
23927 msgid ""
23928 " available-all-groups\n"
23929 "\n"
23930 msgstr ""
23931
23932 # type: textblock
23933 #. type: textblock
23934 #: ../fish/guestfish-actions.pod:408
23935 msgid ""
23936 "This command returns a list of all optional groups that this daemon knows "
23937 "about.  Note this returns both supported and unsupported groups.  To find "
23938 "out which ones the daemon can actually support you have to call L</"
23939 "available> on each member of the returned list."
23940 msgstr ""
23941
23942 # type: textblock
23943 #. type: textblock
23944 #: ../fish/guestfish-actions.pod:414
23945 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
23946 msgstr ""
23947
23948 # type: =head2
23949 #. type: =head2
23950 #: ../fish/guestfish-actions.pod:416
23951 msgid "base64-in"
23952 msgstr ""
23953
23954 # type: verbatim
23955 #. type: verbatim
23956 #: ../fish/guestfish-actions.pod:418
23957 #, no-wrap
23958 msgid ""
23959 " base64-in (base64file|-) filename\n"
23960 "\n"
23961 msgstr ""
23962
23963 # type: textblock
23964 #. type: textblock
23965 #: ../fish/guestfish-actions.pod:423 ../fish/guestfish-actions.pod:432
23966 #: ../fish/guestfish-actions.pod:656 ../fish/guestfish-actions.pod:825
23967 #: ../fish/guestfish-actions.pod:844 ../fish/guestfish-actions.pod:1221
23968 #: ../fish/guestfish-actions.pod:4302 ../fish/guestfish-actions.pod:4314
23969 #: ../fish/guestfish-actions.pod:4325 ../fish/guestfish-actions.pod:4336
23970 #: ../fish/guestfish-actions.pod:4388 ../fish/guestfish-actions.pod:4397
23971 #: ../fish/guestfish-actions.pod:4451 ../fish/guestfish-actions.pod:4474
23972 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
23973 msgstr ""
23974
23975 # type: =head2
23976 #. type: =head2
23977 #: ../fish/guestfish-actions.pod:425
23978 msgid "base64-out"
23979 msgstr ""
23980
23981 # type: verbatim
23982 #. type: verbatim
23983 #: ../fish/guestfish-actions.pod:427
23984 #, no-wrap
23985 msgid ""
23986 " base64-out filename (base64file|-)\n"
23987 "\n"
23988 msgstr ""
23989
23990 # type: =head2
23991 #. type: =head2
23992 #: ../fish/guestfish-actions.pod:434
23993 msgid "blockdev-flushbufs"
23994 msgstr ""
23995
23996 # type: verbatim
23997 #. type: verbatim
23998 #: ../fish/guestfish-actions.pod:436
23999 #, no-wrap
24000 msgid ""
24001 " blockdev-flushbufs device\n"
24002 "\n"
24003 msgstr ""
24004
24005 # type: =head2
24006 #. type: =head2
24007 #: ../fish/guestfish-actions.pod:443
24008 msgid "blockdev-getbsz"
24009 msgstr ""
24010
24011 # type: verbatim
24012 #. type: verbatim
24013 #: ../fish/guestfish-actions.pod:445
24014 #, no-wrap
24015 msgid ""
24016 " blockdev-getbsz device\n"
24017 "\n"
24018 msgstr ""
24019
24020 # type: =head2
24021 #. type: =head2
24022 #: ../fish/guestfish-actions.pod:454
24023 msgid "blockdev-getro"
24024 msgstr ""
24025
24026 # type: verbatim
24027 #. type: verbatim
24028 #: ../fish/guestfish-actions.pod:456
24029 #, no-wrap
24030 msgid ""
24031 " blockdev-getro device\n"
24032 "\n"
24033 msgstr ""
24034
24035 # type: =head2
24036 #. type: =head2
24037 #: ../fish/guestfish-actions.pod:463
24038 msgid "blockdev-getsize64"
24039 msgstr ""
24040
24041 # type: verbatim
24042 #. type: verbatim
24043 #: ../fish/guestfish-actions.pod:465
24044 #, no-wrap
24045 msgid ""
24046 " blockdev-getsize64 device\n"
24047 "\n"
24048 msgstr ""
24049
24050 # type: textblock
24051 #. type: textblock
24052 #: ../fish/guestfish-actions.pod:469
24053 msgid "See also L</blockdev-getsz>."
24054 msgstr ""
24055
24056 # type: =head2
24057 #. type: =head2
24058 #: ../fish/guestfish-actions.pod:473
24059 msgid "blockdev-getss"
24060 msgstr ""
24061
24062 # type: verbatim
24063 #. type: verbatim
24064 #: ../fish/guestfish-actions.pod:475
24065 #, no-wrap
24066 msgid ""
24067 " blockdev-getss device\n"
24068 "\n"
24069 msgstr ""
24070
24071 # type: textblock
24072 #. type: textblock
24073 #: ../fish/guestfish-actions.pod:480
24074 msgid ""
24075 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24076 msgstr ""
24077
24078 # type: =head2
24079 #. type: =head2
24080 #: ../fish/guestfish-actions.pod:485
24081 msgid "blockdev-getsz"
24082 msgstr ""
24083
24084 # type: verbatim
24085 #. type: verbatim
24086 #: ../fish/guestfish-actions.pod:487
24087 #, no-wrap
24088 msgid ""
24089 " blockdev-getsz device\n"
24090 "\n"
24091 msgstr ""
24092
24093 # type: textblock
24094 #. type: textblock
24095 #: ../fish/guestfish-actions.pod:492
24096 msgid ""
24097 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24098 "blockdev-getsize64> for the more useful I<size in bytes>."
24099 msgstr ""
24100
24101 # type: =head2
24102 #. type: =head2
24103 #: ../fish/guestfish-actions.pod:498
24104 msgid "blockdev-rereadpt"
24105 msgstr ""
24106
24107 # type: verbatim
24108 #. type: verbatim
24109 #: ../fish/guestfish-actions.pod:500
24110 #, no-wrap
24111 msgid ""
24112 " blockdev-rereadpt device\n"
24113 "\n"
24114 msgstr ""
24115
24116 # type: =head2
24117 #. type: =head2
24118 #: ../fish/guestfish-actions.pod:506
24119 msgid "blockdev-setbsz"
24120 msgstr ""
24121
24122 # type: verbatim
24123 #. type: verbatim
24124 #: ../fish/guestfish-actions.pod:508
24125 #, no-wrap
24126 msgid ""
24127 " blockdev-setbsz device blocksize\n"
24128 "\n"
24129 msgstr ""
24130
24131 # type: =head2
24132 #. type: =head2
24133 #: ../fish/guestfish-actions.pod:517
24134 msgid "blockdev-setro"
24135 msgstr ""
24136
24137 # type: verbatim
24138 #. type: verbatim
24139 #: ../fish/guestfish-actions.pod:519
24140 #, no-wrap
24141 msgid ""
24142 " blockdev-setro device\n"
24143 "\n"
24144 msgstr ""
24145
24146 # type: =head2
24147 #. type: =head2
24148 #: ../fish/guestfish-actions.pod:525
24149 msgid "blockdev-setrw"
24150 msgstr ""
24151
24152 # type: verbatim
24153 #. type: verbatim
24154 #: ../fish/guestfish-actions.pod:527
24155 #, no-wrap
24156 msgid ""
24157 " blockdev-setrw device\n"
24158 "\n"
24159 msgstr ""
24160
24161 # type: =head2
24162 #. type: =head2
24163 #: ../fish/guestfish-actions.pod:533
24164 msgid "case-sensitive-path"
24165 msgstr ""
24166
24167 # type: verbatim
24168 #. type: verbatim
24169 #: ../fish/guestfish-actions.pod:535
24170 #, no-wrap
24171 msgid ""
24172 " case-sensitive-path path\n"
24173 "\n"
24174 msgstr ""
24175
24176 # type: textblock
24177 #. type: textblock
24178 #: ../fish/guestfish-actions.pod:559
24179 msgid ""
24180 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
24181 "WINDOWS/system32\"> (the exact return value would depend on details of how "
24182 "the directories were originally created under Windows)."
24183 msgstr ""
24184
24185 # type: textblock
24186 #. type: textblock
24187 #: ../fish/guestfish-actions.pod:567
24188 msgid "See also L</realpath>."
24189 msgstr ""
24190
24191 # type: =head2
24192 #. type: =head2
24193 #: ../fish/guestfish-actions.pod:569
24194 msgid "cat"
24195 msgstr ""
24196
24197 # type: verbatim
24198 #. type: verbatim
24199 #: ../fish/guestfish-actions.pod:571
24200 #, no-wrap
24201 msgid ""
24202 " cat path\n"
24203 "\n"
24204 msgstr ""
24205
24206 # type: textblock
24207 #. type: textblock
24208 #: ../fish/guestfish-actions.pod:575
24209 msgid ""
24210 "Note that this function cannot correctly handle binary files (specifically, "
24211 "files containing C<\\0> character which is treated as end of string).  For "
24212 "those you need to use the L</read-file> or L</download> functions which have "
24213 "a more complex interface."
24214 msgstr ""
24215
24216 # type: =head2
24217 #. type: =head2
24218 #: ../fish/guestfish-actions.pod:583
24219 msgid "checksum"
24220 msgstr ""
24221
24222 # type: verbatim
24223 #. type: verbatim
24224 #: ../fish/guestfish-actions.pod:585
24225 #, no-wrap
24226 msgid ""
24227 " checksum csumtype path\n"
24228 "\n"
24229 msgstr ""
24230
24231 # type: textblock
24232 #. type: textblock
24233 #: ../fish/guestfish-actions.pod:628
24234 msgid "To get the checksum for a device, use L</checksum-device>."
24235 msgstr ""
24236
24237 # type: textblock
24238 #. type: textblock
24239 #: ../fish/guestfish-actions.pod:630
24240 msgid "To get the checksums for many files, use L</checksums-out>."
24241 msgstr ""
24242
24243 # type: =head2
24244 #. type: =head2
24245 #: ../fish/guestfish-actions.pod:632
24246 msgid "checksum-device"
24247 msgstr ""
24248
24249 # type: verbatim
24250 #. type: verbatim
24251 #: ../fish/guestfish-actions.pod:634
24252 #, no-wrap
24253 msgid ""
24254 " checksum-device csumtype device\n"
24255 "\n"
24256 msgstr ""
24257
24258 # type: textblock
24259 #. type: textblock
24260 #: ../fish/guestfish-actions.pod:636
24261 msgid ""
24262 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24263 "device named C<device>.  For the types of checksums supported see the L</"
24264 "checksum> command."
24265 msgstr ""
24266
24267 # type: =head2
24268 #. type: =head2
24269 #: ../fish/guestfish-actions.pod:640
24270 msgid "checksums-out"
24271 msgstr ""
24272
24273 # type: verbatim
24274 #. type: verbatim
24275 #: ../fish/guestfish-actions.pod:642
24276 #, no-wrap
24277 msgid ""
24278 " checksums-out csumtype directory (sumsfile|-)\n"
24279 "\n"
24280 msgstr ""
24281
24282 # type: =head2
24283 #. type: =head2
24284 #: ../fish/guestfish-actions.pod:658
24285 msgid "chmod"
24286 msgstr ""
24287
24288 # type: verbatim
24289 #. type: verbatim
24290 #: ../fish/guestfish-actions.pod:660
24291 #, no-wrap
24292 msgid ""
24293 " chmod mode path\n"
24294 "\n"
24295 msgstr ""
24296
24297 # type: =head2
24298 #. type: =head2
24299 #: ../fish/guestfish-actions.pod:671
24300 msgid "chown"
24301 msgstr ""
24302
24303 # type: verbatim
24304 #. type: verbatim
24305 #: ../fish/guestfish-actions.pod:673
24306 #, no-wrap
24307 msgid ""
24308 " chown owner group path\n"
24309 "\n"
24310 msgstr ""
24311
24312 # type: =head2
24313 #. type: =head2
24314 #: ../fish/guestfish-actions.pod:681
24315 msgid "command"
24316 msgstr ""
24317
24318 # type: verbatim
24319 #. type: verbatim
24320 #: ../fish/guestfish-actions.pod:683
24321 #, no-wrap
24322 msgid ""
24323 " command 'arguments ...'\n"
24324 "\n"
24325 msgstr ""
24326
24327 # type: textblock
24328 #. type: textblock
24329 #: ../fish/guestfish-actions.pod:690
24330 msgid ""
24331 "The single parameter is an argv-style list of arguments.  The first element "
24332 "is the name of the program to run.  Subsequent elements are parameters.  The "
24333 "list must be non-empty (ie. must contain a program name).  Note that the "
24334 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24335 msgstr ""
24336
24337 # type: =head2
24338 #. type: =head2
24339 #: ../fish/guestfish-actions.pod:718
24340 msgid "command-lines"
24341 msgstr ""
24342
24343 # type: verbatim
24344 #. type: verbatim
24345 #: ../fish/guestfish-actions.pod:720
24346 #, no-wrap
24347 msgid ""
24348 " command-lines 'arguments ...'\n"
24349 "\n"
24350 msgstr ""
24351
24352 # type: textblock
24353 #. type: textblock
24354 #: ../fish/guestfish-actions.pod:722
24355 msgid ""
24356 "This is the same as L</command>, but splits the result into a list of lines."
24357 msgstr ""
24358
24359 # type: textblock
24360 #. type: textblock
24361 #: ../fish/guestfish-actions.pod:725
24362 msgid "See also: L</sh-lines>"
24363 msgstr ""
24364
24365 # type: =head2
24366 #. type: =head2
24367 #: ../fish/guestfish-actions.pod:730
24368 msgid "config"
24369 msgstr ""
24370
24371 # type: verbatim
24372 #. type: verbatim
24373 #: ../fish/guestfish-actions.pod:732
24374 #, no-wrap
24375 msgid ""
24376 " config qemuparam qemuvalue\n"
24377 "\n"
24378 msgstr ""
24379
24380 # type: =head2
24381 #. type: =head2
24382 #: ../fish/guestfish-actions.pod:743
24383 msgid "copy-size"
24384 msgstr ""
24385
24386 # type: verbatim
24387 #. type: verbatim
24388 #: ../fish/guestfish-actions.pod:745
24389 #, no-wrap
24390 msgid ""
24391 " copy-size src dest size\n"
24392 "\n"
24393 msgstr ""
24394
24395 # type: =head2
24396 #. type: =head2
24397 #: ../fish/guestfish-actions.pod:753
24398 msgid "cp"
24399 msgstr ""
24400
24401 # type: verbatim
24402 #. type: verbatim
24403 #: ../fish/guestfish-actions.pod:755
24404 #, no-wrap
24405 msgid ""
24406 " cp src dest\n"
24407 "\n"
24408 msgstr ""
24409
24410 # type: =head2
24411 #. type: =head2
24412 #: ../fish/guestfish-actions.pod:760
24413 msgid "cp-a"
24414 msgstr ""
24415
24416 # type: verbatim
24417 #. type: verbatim
24418 #: ../fish/guestfish-actions.pod:762
24419 #, no-wrap
24420 msgid ""
24421 " cp-a src dest\n"
24422 "\n"
24423 msgstr ""
24424
24425 # type: =head2
24426 #. type: =head2
24427 #: ../fish/guestfish-actions.pod:767
24428 msgid "dd"
24429 msgstr ""
24430
24431 # type: verbatim
24432 #. type: verbatim
24433 #: ../fish/guestfish-actions.pod:769
24434 #, no-wrap
24435 msgid ""
24436 " dd src dest\n"
24437 "\n"
24438 msgstr ""
24439
24440 # type: textblock
24441 #. type: textblock
24442 #: ../fish/guestfish-actions.pod:776
24443 msgid ""
24444 "If the destination is a device, it must be as large or larger than the "
24445 "source file or device, otherwise the copy will fail.  This command cannot do "
24446 "partial copies (see L</copy-size>)."
24447 msgstr ""
24448
24449 # type: =head2
24450 #. type: =head2
24451 #: ../fish/guestfish-actions.pod:780
24452 msgid "df"
24453 msgstr ""
24454
24455 # type: verbatim
24456 #. type: verbatim
24457 #: ../fish/guestfish-actions.pod:782
24458 #, no-wrap
24459 msgid ""
24460 " df\n"
24461 "\n"
24462 msgstr ""
24463
24464 # type: textblock
24465 #. type: textblock
24466 #: ../fish/guestfish-actions.pod:786 ../fish/guestfish-actions.pod:797
24467 msgid ""
24468 "This command is mostly useful for interactive sessions.  It is I<not> "
24469 "intended that you try to parse the output string.  Use L</statvfs> from "
24470 "programs."
24471 msgstr ""
24472
24473 # type: =head2
24474 #. type: =head2
24475 #: ../fish/guestfish-actions.pod:790
24476 msgid "df-h"
24477 msgstr ""
24478
24479 # type: verbatim
24480 #. type: verbatim
24481 #: ../fish/guestfish-actions.pod:792
24482 #, no-wrap
24483 msgid ""
24484 " df-h\n"
24485 "\n"
24486 msgstr ""
24487
24488 # type: =head2
24489 #. type: =head2
24490 #: ../fish/guestfish-actions.pod:801
24491 msgid "dmesg"
24492 msgstr ""
24493
24494 # type: verbatim
24495 #. type: verbatim
24496 #: ../fish/guestfish-actions.pod:803
24497 #, no-wrap
24498 msgid ""
24499 " dmesg\n"
24500 "\n"
24501 msgstr ""
24502
24503 # type: textblock
24504 #. type: textblock
24505 #: ../fish/guestfish-actions.pod:809
24506 msgid ""
24507 "Another way to get the same information is to enable verbose messages with "
24508 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
24509 "before running the program."
24510 msgstr ""
24511
24512 # type: =head2
24513 #. type: =head2
24514 #: ../fish/guestfish-actions.pod:814
24515 msgid "download"
24516 msgstr ""
24517
24518 # type: verbatim
24519 #. type: verbatim
24520 #: ../fish/guestfish-actions.pod:816
24521 #, no-wrap
24522 msgid ""
24523 " download remotefilename (filename|-)\n"
24524 "\n"
24525 msgstr ""
24526
24527 # type: textblock
24528 #. type: textblock
24529 #: ../fish/guestfish-actions.pod:823
24530 msgid "See also L</upload>, L</cat>."
24531 msgstr ""
24532
24533 # type: =head2
24534 #. type: =head2
24535 #: ../fish/guestfish-actions.pod:827
24536 msgid "download-offset"
24537 msgstr ""
24538
24539 # type: verbatim
24540 #. type: verbatim
24541 #: ../fish/guestfish-actions.pod:829
24542 #, no-wrap
24543 msgid ""
24544 " download-offset remotefilename (filename|-) offset size\n"
24545 "\n"
24546 msgstr ""
24547
24548 # type: textblock
24549 #. type: textblock
24550 #: ../fish/guestfish-actions.pod:837
24551 msgid ""
24552 "Note that there is no limit on the amount of data that can be downloaded "
24553 "with this call, unlike with L</pread>, and this call always reads the full "
24554 "amount unless an error occurs."
24555 msgstr ""
24556
24557 # type: textblock
24558 #. type: textblock
24559 #: ../fish/guestfish-actions.pod:842
24560 msgid "See also L</download>, L</pread>."
24561 msgstr ""
24562
24563 # type: =head2
24564 #. type: =head2
24565 #: ../fish/guestfish-actions.pod:846
24566 msgid "drop-caches"
24567 msgstr ""
24568
24569 # type: verbatim
24570 #. type: verbatim
24571 #: ../fish/guestfish-actions.pod:848
24572 #, no-wrap
24573 msgid ""
24574 " drop-caches whattodrop\n"
24575 "\n"
24576 msgstr ""
24577
24578 # type: =head2
24579 #. type: =head2
24580 #: ../fish/guestfish-actions.pod:860
24581 msgid "du"
24582 msgstr ""
24583
24584 # type: verbatim
24585 #. type: verbatim
24586 #: ../fish/guestfish-actions.pod:862
24587 #, no-wrap
24588 msgid ""
24589 " du path\n"
24590 "\n"
24591 msgstr ""
24592
24593 # type: =head2
24594 #. type: =head2
24595 #: ../fish/guestfish-actions.pod:874
24596 msgid "e2fsck-f"
24597 msgstr ""
24598
24599 # type: verbatim
24600 #. type: verbatim
24601 #: ../fish/guestfish-actions.pod:876
24602 #, no-wrap
24603 msgid ""
24604 " e2fsck-f device\n"
24605 "\n"
24606 msgstr ""
24607
24608 # type: textblock
24609 #. type: textblock
24610 #: ../fish/guestfish-actions.pod:882
24611 msgid ""
24612 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
24613 "should use L</fsck>."
24614 msgstr ""
24615
24616 # type: =head2
24617 #. type: =head2
24618 #: ../fish/guestfish-actions.pod:885
24619 msgid "echo-daemon"
24620 msgstr ""
24621
24622 # type: verbatim
24623 #. type: verbatim
24624 #: ../fish/guestfish-actions.pod:887
24625 #, no-wrap
24626 msgid ""
24627 " echo-daemon 'words ...'\n"
24628 "\n"
24629 msgstr ""
24630
24631 # type: textblock
24632 #. type: textblock
24633 #: ../fish/guestfish-actions.pod:894
24634 msgid "See also L</ping-daemon>."
24635 msgstr ""
24636
24637 # type: =head2
24638 #. type: =head2
24639 #: ../fish/guestfish-actions.pod:896
24640 msgid "egrep"
24641 msgstr ""
24642
24643 # type: verbatim
24644 #. type: verbatim
24645 #: ../fish/guestfish-actions.pod:898
24646 #, no-wrap
24647 msgid ""
24648 " egrep regex path\n"
24649 "\n"
24650 msgstr ""
24651
24652 # type: =head2
24653 #. type: =head2
24654 #: ../fish/guestfish-actions.pod:906
24655 msgid "egrepi"
24656 msgstr ""
24657
24658 # type: verbatim
24659 #. type: verbatim
24660 #: ../fish/guestfish-actions.pod:908
24661 #, no-wrap
24662 msgid ""
24663 " egrepi regex path\n"
24664 "\n"
24665 msgstr ""
24666
24667 # type: =head2
24668 #. type: =head2
24669 #: ../fish/guestfish-actions.pod:916
24670 msgid "equal"
24671 msgstr ""
24672
24673 # type: verbatim
24674 #. type: verbatim
24675 #: ../fish/guestfish-actions.pod:918
24676 #, no-wrap
24677 msgid ""
24678 " equal file1 file2\n"
24679 "\n"
24680 msgstr ""
24681
24682 # type: =head2
24683 #. type: =head2
24684 #: ../fish/guestfish-actions.pod:925
24685 msgid "exists"
24686 msgstr ""
24687
24688 # type: verbatim
24689 #. type: verbatim
24690 #: ../fish/guestfish-actions.pod:927
24691 #, no-wrap
24692 msgid ""
24693 " exists path\n"
24694 "\n"
24695 msgstr ""
24696
24697 # type: textblock
24698 #. type: textblock
24699 #: ../fish/guestfish-actions.pod:932
24700 msgid "See also L</is-file>, L</is-dir>, L</stat>."
24701 msgstr ""
24702
24703 # type: =head2
24704 #. type: =head2
24705 #: ../fish/guestfish-actions.pod:934
24706 msgid "fallocate"
24707 msgstr ""
24708
24709 # type: verbatim
24710 #. type: verbatim
24711 #: ../fish/guestfish-actions.pod:936
24712 #, no-wrap
24713 msgid ""
24714 " fallocate path len\n"
24715 "\n"
24716 msgstr ""
24717
24718 # type: =head2
24719 #. type: =head2
24720 #: ../fish/guestfish-actions.pod:953
24721 msgid "fallocate64"
24722 msgstr ""
24723
24724 # type: verbatim
24725 #. type: verbatim
24726 #: ../fish/guestfish-actions.pod:955
24727 #, no-wrap
24728 msgid ""
24729 " fallocate64 path len\n"
24730 "\n"
24731 msgstr ""
24732
24733 # type: textblock
24734 #. type: textblock
24735 #: ../fish/guestfish-actions.pod:961
24736 msgid ""
24737 "Note that this call allocates disk blocks for the file.  To create a sparse "
24738 "file use L</truncate-size> instead."
24739 msgstr ""
24740
24741 # type: textblock
24742 #. type: textblock
24743 #: ../fish/guestfish-actions.pod:964
24744 msgid ""
24745 "The deprecated call L</fallocate> does the same, but owing to an oversight "
24746 "it only allowed 30 bit lengths to be specified, effectively limiting the "
24747 "maximum size of files created through that call to 1GB."
24748 msgstr ""
24749
24750 # type: =head2
24751 #. type: =head2
24752 #: ../fish/guestfish-actions.pod:973
24753 msgid "fgrep"
24754 msgstr ""
24755
24756 # type: verbatim
24757 #. type: verbatim
24758 #: ../fish/guestfish-actions.pod:975
24759 #, no-wrap
24760 msgid ""
24761 " fgrep pattern path\n"
24762 "\n"
24763 msgstr ""
24764
24765 # type: =head2
24766 #. type: =head2
24767 #: ../fish/guestfish-actions.pod:983
24768 msgid "fgrepi"
24769 msgstr ""
24770
24771 # type: verbatim
24772 #. type: verbatim
24773 #: ../fish/guestfish-actions.pod:985
24774 #, no-wrap
24775 msgid ""
24776 " fgrepi pattern path\n"
24777 "\n"
24778 msgstr ""
24779
24780 # type: =head2
24781 #. type: =head2
24782 #: ../fish/guestfish-actions.pod:993
24783 msgid "file"
24784 msgstr ""
24785
24786 # type: verbatim
24787 #. type: verbatim
24788 #: ../fish/guestfish-actions.pod:995
24789 #, no-wrap
24790 msgid ""
24791 " file path\n"
24792 "\n"
24793 msgstr ""
24794
24795 # type: textblock
24796 #. type: textblock
24797 #: ../fish/guestfish-actions.pod:1007
24798 msgid ""
24799 "This command can also be used on C</dev/> devices (and partitions, LV "
24800 "names).  You can for example use this to determine if a device contains a "
24801 "filesystem, although it's usually better to use L</vfs-type>."
24802 msgstr ""
24803
24804 # type: =head2
24805 #. type: =head2
24806 #: ../fish/guestfish-actions.pod:1017
24807 msgid "file-architecture"
24808 msgstr ""
24809
24810 # type: verbatim
24811 #. type: verbatim
24812 #: ../fish/guestfish-actions.pod:1019
24813 #, no-wrap
24814 msgid ""
24815 " file-architecture filename\n"
24816 "\n"
24817 msgstr ""
24818
24819 # type: =head2
24820 #. type: =head2
24821 #: ../fish/guestfish-actions.pod:1122
24822 msgid "filesize"
24823 msgstr ""
24824
24825 # type: verbatim
24826 #. type: verbatim
24827 #: ../fish/guestfish-actions.pod:1124
24828 #, no-wrap
24829 msgid ""
24830 " filesize file\n"
24831 "\n"
24832 msgstr ""
24833
24834 # type: textblock
24835 #. type: textblock
24836 #: ../fish/guestfish-actions.pod:1128
24837 msgid ""
24838 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
24839 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
24840 msgstr ""
24841
24842 # type: =head2
24843 #. type: =head2
24844 #: ../fish/guestfish-actions.pod:1132
24845 msgid "fill"
24846 msgstr ""
24847
24848 # type: verbatim
24849 #. type: verbatim
24850 #: ../fish/guestfish-actions.pod:1134
24851 #, no-wrap
24852 msgid ""
24853 " fill c len path\n"
24854 "\n"
24855 msgstr ""
24856
24857 # type: textblock
24858 #. type: textblock
24859 #: ../fish/guestfish-actions.pod:1140
24860 msgid ""
24861 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24862 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
24863 "L</fill-pattern>."
24864 msgstr ""
24865
24866 # type: =head2
24867 #. type: =head2
24868 #: ../fish/guestfish-actions.pod:1145
24869 msgid "fill-pattern"
24870 msgstr ""
24871
24872 # type: verbatim
24873 #. type: verbatim
24874 #: ../fish/guestfish-actions.pod:1147
24875 #, no-wrap
24876 msgid ""
24877 " fill-pattern pattern len path\n"
24878 "\n"
24879 msgstr ""
24880
24881 # type: textblock
24882 #. type: textblock
24883 #: ../fish/guestfish-actions.pod:1149
24884 msgid ""
24885 "This function is like L</fill> except that it creates a new file of length "
24886 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
24887 "is truncated if necessary to ensure the length of the file is exactly C<len> "
24888 "bytes."
24889 msgstr ""
24890
24891 # type: =head2
24892 #. type: =head2
24893 #: ../fish/guestfish-actions.pod:1154
24894 msgid "find"
24895 msgstr ""
24896
24897 # type: verbatim
24898 #. type: verbatim
24899 #: ../fish/guestfish-actions.pod:1156
24900 #, no-wrap
24901 msgid ""
24902 " find directory\n"
24903 "\n"
24904 msgstr ""
24905
24906 # type: textblock
24907 #. type: textblock
24908 #: ../fish/guestfish-actions.pod:1170
24909 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
24910 msgstr ""
24911
24912 # type: textblock
24913 #. type: textblock
24914 #: ../fish/guestfish-actions.pod:1183
24915 msgid "See also L</find0>."
24916 msgstr ""
24917
24918 # type: =head2
24919 #. type: =head2
24920 #: ../fish/guestfish-actions.pod:1188
24921 msgid "find0"
24922 msgstr ""
24923
24924 # type: verbatim
24925 #. type: verbatim
24926 #: ../fish/guestfish-actions.pod:1190
24927 #, no-wrap
24928 msgid ""
24929 " find0 directory (files|-)\n"
24930 "\n"
24931 msgstr ""
24932
24933 # type: textblock
24934 #. type: textblock
24935 #: ../fish/guestfish-actions.pod:1196
24936 msgid ""
24937 "This command works the same way as L</find> with the following exceptions:"
24938 msgstr ""
24939
24940 # type: =head2
24941 #. type: =head2
24942 #: ../fish/guestfish-actions.pod:1223
24943 msgid "findfs-label"
24944 msgstr ""
24945
24946 # type: verbatim
24947 #. type: verbatim
24948 #: ../fish/guestfish-actions.pod:1225
24949 #, no-wrap
24950 msgid ""
24951 " findfs-label label\n"
24952 "\n"
24953 msgstr ""
24954
24955 # type: textblock
24956 #. type: textblock
24957 #: ../fish/guestfish-actions.pod:1231
24958 msgid "To find the label of a filesystem, use L</vfs-label>."
24959 msgstr ""
24960
24961 # type: =head2
24962 #. type: =head2
24963 #: ../fish/guestfish-actions.pod:1233
24964 msgid "findfs-uuid"
24965 msgstr ""
24966
24967 # type: verbatim
24968 #. type: verbatim
24969 #: ../fish/guestfish-actions.pod:1235
24970 #, no-wrap
24971 msgid ""
24972 " findfs-uuid uuid\n"
24973 "\n"
24974 msgstr ""
24975
24976 # type: textblock
24977 #. type: textblock
24978 #: ../fish/guestfish-actions.pod:1241
24979 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
24980 msgstr ""
24981
24982 # type: =head2
24983 #. type: =head2
24984 #: ../fish/guestfish-actions.pod:1243
24985 msgid "fsck"
24986 msgstr ""
24987
24988 # type: verbatim
24989 #. type: verbatim
24990 #: ../fish/guestfish-actions.pod:1245
24991 #, no-wrap
24992 msgid ""
24993 " fsck fstype device\n"
24994 "\n"
24995 msgstr ""
24996
24997 # type: =head2
24998 #. type: =head2
24999 #: ../fish/guestfish-actions.pod:1275
25000 msgid "get-append"
25001 msgstr ""
25002
25003 # type: verbatim
25004 #. type: verbatim
25005 #: ../fish/guestfish-actions.pod:1277
25006 #, no-wrap
25007 msgid ""
25008 " get-append\n"
25009 "\n"
25010 msgstr ""
25011
25012 # type: =head2
25013 #. type: =head2
25014 #: ../fish/guestfish-actions.pod:1284
25015 msgid "get-autosync"
25016 msgstr ""
25017
25018 # type: verbatim
25019 #. type: verbatim
25020 #: ../fish/guestfish-actions.pod:1286
25021 #, no-wrap
25022 msgid ""
25023 " get-autosync\n"
25024 "\n"
25025 msgstr ""
25026
25027 # type: =head2
25028 #. type: =head2
25029 #: ../fish/guestfish-actions.pod:1290
25030 msgid "get-direct"
25031 msgstr ""
25032
25033 # type: verbatim
25034 #. type: verbatim
25035 #: ../fish/guestfish-actions.pod:1292
25036 #, no-wrap
25037 msgid ""
25038 " get-direct\n"
25039 "\n"
25040 msgstr ""
25041
25042 # type: =head2
25043 #. type: =head2
25044 #: ../fish/guestfish-actions.pod:1296
25045 msgid "get-e2label"
25046 msgstr ""
25047
25048 # type: verbatim
25049 #. type: verbatim
25050 #: ../fish/guestfish-actions.pod:1298
25051 #, no-wrap
25052 msgid ""
25053 " get-e2label device\n"
25054 "\n"
25055 msgstr ""
25056
25057 # type: =head2
25058 #. type: =head2
25059 #: ../fish/guestfish-actions.pod:1310
25060 msgid "get-e2uuid"
25061 msgstr ""
25062
25063 # type: verbatim
25064 #. type: verbatim
25065 #: ../fish/guestfish-actions.pod:1312
25066 #, no-wrap
25067 msgid ""
25068 " get-e2uuid device\n"
25069 "\n"
25070 msgstr ""
25071
25072 # type: =head2
25073 #. type: =head2
25074 #: ../fish/guestfish-actions.pod:1324
25075 msgid "get-memsize"
25076 msgstr ""
25077
25078 # type: verbatim
25079 #. type: verbatim
25080 #: ../fish/guestfish-actions.pod:1326
25081 #, no-wrap
25082 msgid ""
25083 " get-memsize\n"
25084 "\n"
25085 msgstr ""
25086
25087 # type: textblock
25088 #. type: textblock
25089 #: ../fish/guestfish-actions.pod:1331
25090 msgid ""
25091 "If L</set-memsize> was not called on this handle, and if "
25092 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25093 "value for memsize."
25094 msgstr ""
25095
25096 # type: =head2
25097 #. type: =head2
25098 #: ../fish/guestfish-actions.pod:1338
25099 msgid "get-network"
25100 msgstr ""
25101
25102 # type: verbatim
25103 #. type: verbatim
25104 #: ../fish/guestfish-actions.pod:1340
25105 #, no-wrap
25106 msgid ""
25107 " get-network\n"
25108 "\n"
25109 msgstr ""
25110
25111 # type: =head2
25112 #. type: =head2
25113 #: ../fish/guestfish-actions.pod:1344
25114 msgid "get-path"
25115 msgstr ""
25116
25117 # type: verbatim
25118 #. type: verbatim
25119 #: ../fish/guestfish-actions.pod:1346
25120 #, no-wrap
25121 msgid ""
25122 " get-path\n"
25123 "\n"
25124 msgstr ""
25125
25126 # type: =head2
25127 #. type: =head2
25128 #: ../fish/guestfish-actions.pod:1353
25129 msgid "get-pid"
25130 msgstr ""
25131
25132 # type: =head2
25133 #. type: =head2
25134 #: ../fish/guestfish-actions.pod:1355
25135 msgid "pid"
25136 msgstr ""
25137
25138 # type: verbatim
25139 #. type: verbatim
25140 #: ../fish/guestfish-actions.pod:1357
25141 #, no-wrap
25142 msgid ""
25143 " get-pid\n"
25144 "\n"
25145 msgstr ""
25146
25147 # type: =head2
25148 #. type: =head2
25149 #: ../fish/guestfish-actions.pod:1364
25150 msgid "get-qemu"
25151 msgstr ""
25152
25153 # type: verbatim
25154 #. type: verbatim
25155 #: ../fish/guestfish-actions.pod:1366
25156 #, no-wrap
25157 msgid ""
25158 " get-qemu\n"
25159 "\n"
25160 msgstr ""
25161
25162 # type: =head2
25163 #. type: =head2
25164 #: ../fish/guestfish-actions.pod:1373
25165 msgid "get-recovery-proc"
25166 msgstr ""
25167
25168 # type: verbatim
25169 #. type: verbatim
25170 #: ../fish/guestfish-actions.pod:1375
25171 #, no-wrap
25172 msgid ""
25173 " get-recovery-proc\n"
25174 "\n"
25175 msgstr ""
25176
25177 # type: =head2
25178 #. type: =head2
25179 #: ../fish/guestfish-actions.pod:1379
25180 msgid "get-selinux"
25181 msgstr ""
25182
25183 # type: verbatim
25184 #. type: verbatim
25185 #: ../fish/guestfish-actions.pod:1381
25186 #, no-wrap
25187 msgid ""
25188 " get-selinux\n"
25189 "\n"
25190 msgstr ""
25191
25192 # type: textblock
25193 #. type: textblock
25194 #: ../fish/guestfish-actions.pod:1383
25195 msgid ""
25196 "This returns the current setting of the selinux flag which is passed to the "
25197 "appliance at boot time.  See L</set-selinux>."
25198 msgstr ""
25199
25200 # type: =head2
25201 #. type: =head2
25202 #: ../fish/guestfish-actions.pod:1389
25203 msgid "get-state"
25204 msgstr ""
25205
25206 # type: verbatim
25207 #. type: verbatim
25208 #: ../fish/guestfish-actions.pod:1391
25209 #, no-wrap
25210 msgid ""
25211 " get-state\n"
25212 "\n"
25213 msgstr ""
25214
25215 # type: =head2
25216 #. type: =head2
25217 #: ../fish/guestfish-actions.pod:1398
25218 msgid "get-trace"
25219 msgstr ""
25220
25221 # type: verbatim
25222 #. type: verbatim
25223 #: ../fish/guestfish-actions.pod:1400
25224 #, no-wrap
25225 msgid ""
25226 " get-trace\n"
25227 "\n"
25228 msgstr ""
25229
25230 # type: =head2
25231 #. type: =head2
25232 #: ../fish/guestfish-actions.pod:1404
25233 msgid "get-umask"
25234 msgstr ""
25235
25236 # type: verbatim
25237 #. type: verbatim
25238 #: ../fish/guestfish-actions.pod:1406
25239 #, no-wrap
25240 msgid ""
25241 " get-umask\n"
25242 "\n"
25243 msgstr ""
25244
25245 # type: textblock
25246 #. type: textblock
25247 #: ../fish/guestfish-actions.pod:1408
25248 msgid ""
25249 "Return the current umask.  By default the umask is C<022> unless it has been "
25250 "set by calling L</umask>."
25251 msgstr ""
25252
25253 # type: =head2
25254 #. type: =head2
25255 #: ../fish/guestfish-actions.pod:1411
25256 msgid "get-verbose"
25257 msgstr ""
25258
25259 # type: verbatim
25260 #. type: verbatim
25261 #: ../fish/guestfish-actions.pod:1413
25262 #, no-wrap
25263 msgid ""
25264 " get-verbose\n"
25265 "\n"
25266 msgstr ""
25267
25268 # type: =head2
25269 #. type: =head2
25270 #: ../fish/guestfish-actions.pod:1417
25271 msgid "getcon"
25272 msgstr ""
25273
25274 # type: verbatim
25275 #. type: verbatim
25276 #: ../fish/guestfish-actions.pod:1419
25277 #, no-wrap
25278 msgid ""
25279 " getcon\n"
25280 "\n"
25281 msgstr ""
25282
25283 # type: textblock
25284 #. type: textblock
25285 #: ../fish/guestfish-actions.pod:1423
25286 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25287 msgstr ""
25288
25289 # type: =head2
25290 #. type: =head2
25291 #: ../fish/guestfish-actions.pod:1426
25292 msgid "getxattr"
25293 msgstr ""
25294
25295 # type: verbatim
25296 #. type: verbatim
25297 #: ../fish/guestfish-actions.pod:1428
25298 #, no-wrap
25299 msgid ""
25300 " getxattr path name\n"
25301 "\n"
25302 msgstr ""
25303
25304 # type: textblock
25305 #. type: textblock
25306 #: ../fish/guestfish-actions.pod:1430
25307 msgid ""
25308 "Get a single extended attribute from file C<path> named C<name>.  This call "
25309 "follows symlinks.  If you want to lookup an extended attribute for the "
25310 "symlink itself, use L</lgetxattr>."
25311 msgstr ""
25312
25313 # type: textblock
25314 #. type: textblock
25315 #: ../fish/guestfish-actions.pod:1434 ../fish/guestfish-actions.pod:2340
25316 msgid ""
25317 "Normally it is better to get all extended attributes from a file in one go "
25318 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
25319 "buggy and do not provide a way to list out attributes.  For these "
25320 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25321 "attributes you want in advance and call this function."
25322 msgstr ""
25323
25324 # type: textblock
25325 #. type: textblock
25326 #: ../fish/guestfish-actions.pod:1444
25327 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25328 msgstr ""
25329
25330 # type: =head2
25331 #. type: =head2
25332 #: ../fish/guestfish-actions.pod:1446
25333 msgid "getxattrs"
25334 msgstr ""
25335
25336 # type: verbatim
25337 #. type: verbatim
25338 #: ../fish/guestfish-actions.pod:1448
25339 #, no-wrap
25340 msgid ""
25341 " getxattrs path\n"
25342 "\n"
25343 msgstr ""
25344
25345 # type: textblock
25346 #. type: textblock
25347 #: ../fish/guestfish-actions.pod:1456
25348 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25349 msgstr ""
25350
25351 # type: =head2
25352 #. type: =head2
25353 #: ../fish/guestfish-actions.pod:1458
25354 msgid "glob-expand"
25355 msgstr ""
25356
25357 # type: verbatim
25358 #. type: verbatim
25359 #: ../fish/guestfish-actions.pod:1460
25360 #, no-wrap
25361 msgid ""
25362 " glob-expand pattern\n"
25363 "\n"
25364 msgstr ""
25365
25366 # type: =head2
25367 #. type: =head2
25368 #: ../fish/guestfish-actions.pod:1473
25369 msgid "grep"
25370 msgstr ""
25371
25372 # type: verbatim
25373 #. type: verbatim
25374 #: ../fish/guestfish-actions.pod:1475
25375 #, no-wrap
25376 msgid ""
25377 " grep regex path\n"
25378 "\n"
25379 msgstr ""
25380
25381 # type: =head2
25382 #. type: =head2
25383 #: ../fish/guestfish-actions.pod:1483
25384 msgid "grepi"
25385 msgstr ""
25386
25387 # type: verbatim
25388 #. type: verbatim
25389 #: ../fish/guestfish-actions.pod:1485
25390 #, no-wrap
25391 msgid ""
25392 " grepi regex path\n"
25393 "\n"
25394 msgstr ""
25395
25396 # type: =head2
25397 #. type: =head2
25398 #: ../fish/guestfish-actions.pod:1493
25399 msgid "grub-install"
25400 msgstr ""
25401
25402 # type: verbatim
25403 #. type: verbatim
25404 #: ../fish/guestfish-actions.pod:1495
25405 #, no-wrap
25406 msgid ""
25407 " grub-install root device\n"
25408 "\n"
25409 msgstr ""
25410
25411 # type: =head2
25412 #. type: =head2
25413 #: ../fish/guestfish-actions.pod:1511
25414 msgid "head"
25415 msgstr ""
25416
25417 # type: verbatim
25418 #. type: verbatim
25419 #: ../fish/guestfish-actions.pod:1513
25420 #, no-wrap
25421 msgid ""
25422 " head path\n"
25423 "\n"
25424 msgstr ""
25425
25426 # type: =head2
25427 #. type: =head2
25428 #: ../fish/guestfish-actions.pod:1521
25429 msgid "head-n"
25430 msgstr ""
25431
25432 # type: verbatim
25433 #. type: verbatim
25434 #: ../fish/guestfish-actions.pod:1523
25435 #, no-wrap
25436 msgid ""
25437 " head-n nrlines path\n"
25438 "\n"
25439 msgstr ""
25440
25441 # type: =head2
25442 #. type: =head2
25443 #: ../fish/guestfish-actions.pod:1536
25444 msgid "hexdump"
25445 msgstr ""
25446
25447 # type: verbatim
25448 #. type: verbatim
25449 #: ../fish/guestfish-actions.pod:1538
25450 #, no-wrap
25451 msgid ""
25452 " hexdump path\n"
25453 "\n"
25454 msgstr ""
25455
25456 # type: =head2
25457 #. type: =head2
25458 #: ../fish/guestfish-actions.pod:1546
25459 msgid "initrd-cat"
25460 msgstr ""
25461
25462 # type: verbatim
25463 #. type: verbatim
25464 #: ../fish/guestfish-actions.pod:1548
25465 #, no-wrap
25466 msgid ""
25467 " initrd-cat initrdpath filename\n"
25468 "\n"
25469 msgstr ""
25470
25471 # type: textblock
25472 #. type: textblock
25473 #: ../fish/guestfish-actions.pod:1560
25474 msgid "See also L</initrd-list>."
25475 msgstr ""
25476
25477 # type: =head2
25478 #. type: =head2
25479 #: ../fish/guestfish-actions.pod:1565
25480 msgid "initrd-list"
25481 msgstr ""
25482
25483 # type: verbatim
25484 #. type: verbatim
25485 #: ../fish/guestfish-actions.pod:1567
25486 #, no-wrap
25487 msgid ""
25488 " initrd-list path\n"
25489 "\n"
25490 msgstr ""
25491
25492 # type: =head2
25493 #. type: =head2
25494 #: ../fish/guestfish-actions.pod:1579
25495 msgid "inotify-add-watch"
25496 msgstr ""
25497
25498 # type: verbatim
25499 #. type: verbatim
25500 #: ../fish/guestfish-actions.pod:1581
25501 #, no-wrap
25502 msgid ""
25503 " inotify-add-watch path mask\n"
25504 "\n"
25505 msgstr ""
25506
25507 # type: =head2
25508 #. type: =head2
25509 #: ../fish/guestfish-actions.pod:1593
25510 msgid "inotify-close"
25511 msgstr ""
25512
25513 # type: verbatim
25514 #. type: verbatim
25515 #: ../fish/guestfish-actions.pod:1595
25516 #, no-wrap
25517 msgid ""
25518 " inotify-close\n"
25519 "\n"
25520 msgstr ""
25521
25522 # type: =head2
25523 #. type: =head2
25524 #: ../fish/guestfish-actions.pod:1601
25525 msgid "inotify-files"
25526 msgstr ""
25527
25528 # type: verbatim
25529 #. type: verbatim
25530 #: ../fish/guestfish-actions.pod:1603
25531 #, no-wrap
25532 msgid ""
25533 " inotify-files\n"
25534 "\n"
25535 msgstr ""
25536
25537 # type: textblock
25538 #. type: textblock
25539 #: ../fish/guestfish-actions.pod:1605
25540 msgid ""
25541 "This function is a helpful wrapper around L</inotify-read> which just "
25542 "returns a list of pathnames of objects that were touched.  The returned "
25543 "pathnames are sorted and deduplicated."
25544 msgstr ""
25545
25546 # type: =head2
25547 #. type: =head2
25548 #: ../fish/guestfish-actions.pod:1609
25549 msgid "inotify-init"
25550 msgstr ""
25551
25552 # type: verbatim
25553 #. type: verbatim
25554 #: ../fish/guestfish-actions.pod:1611
25555 #, no-wrap
25556 msgid ""
25557 " inotify-init maxevents\n"
25558 "\n"
25559 msgstr ""
25560
25561 # type: textblock
25562 #. type: textblock
25563 #: ../fish/guestfish-actions.pod:1617
25564 msgid ""
25565 "C<maxevents> is the maximum number of events which will be queued up between "
25566 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
25567 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
25568 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
25569 "but records the fact that it threw them away by setting a flag "
25570 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
25571 msgstr ""
25572
25573 # type: textblock
25574 #. type: textblock
25575 #: ../fish/guestfish-actions.pod:1627
25576 msgid ""
25577 "Before any events are generated, you have to add some watches to the "
25578 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
25579 "L</inotify-watch-all>."
25580 msgstr ""
25581
25582 # type: textblock
25583 #. type: textblock
25584 #: ../fish/guestfish-actions.pod:1633
25585 msgid ""
25586 "Queued up events should be read periodically by calling L</inotify-read> (or "
25587 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
25588 "If you don't read the events out often enough then you risk the internal "
25589 "queue overflowing."
25590 msgstr ""
25591
25592 # type: textblock
25593 #. type: textblock
25594 #: ../fish/guestfish-actions.pod:1640
25595 msgid ""
25596 "The handle should be closed after use by calling L</inotify-close>.  This "
25597 "also removes any watches automatically."
25598 msgstr ""
25599
25600 # type: =head2
25601 #. type: =head2
25602 #: ../fish/guestfish-actions.pod:1649
25603 msgid "inotify-read"
25604 msgstr ""
25605
25606 # type: verbatim
25607 #. type: verbatim
25608 #: ../fish/guestfish-actions.pod:1651
25609 #, no-wrap
25610 msgid ""
25611 " inotify-read\n"
25612 "\n"
25613 msgstr ""
25614
25615 # type: =head2
25616 #. type: =head2
25617 #: ../fish/guestfish-actions.pod:1664
25618 msgid "inotify-rm-watch"
25619 msgstr ""
25620
25621 # type: verbatim
25622 #. type: verbatim
25623 #: ../fish/guestfish-actions.pod:1666
25624 #, no-wrap
25625 msgid ""
25626 " inotify-rm-watch wd\n"
25627 "\n"
25628 msgstr ""
25629
25630 # type: textblock
25631 #. type: textblock
25632 #: ../fish/guestfish-actions.pod:1668
25633 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
25634 msgstr ""
25635
25636 # type: =head2
25637 #. type: =head2
25638 #: ../fish/guestfish-actions.pod:1671
25639 msgid "inspect-get-arch"
25640 msgstr ""
25641
25642 # type: verbatim
25643 #. type: verbatim
25644 #: ../fish/guestfish-actions.pod:1673
25645 #, no-wrap
25646 msgid ""
25647 " inspect-get-arch root\n"
25648 "\n"
25649 msgstr ""
25650
25651 # type: textblock
25652 #. type: textblock
25653 #: ../fish/guestfish-actions.pod:1675 ../fish/guestfish-actions.pod:1691
25654 #: ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1783
25655 #: ../fish/guestfish-actions.pod:1817 ../fish/guestfish-actions.pod:1832
25656 #: ../fish/guestfish-actions.pod:1853 ../fish/guestfish-actions.pod:1868
25657 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1917
25658 #: ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1971
25659 #: ../fish/guestfish-actions.pod:2006 ../fish/guestfish-actions.pod:2022
25660 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2048
25661 #: ../fish/guestfish-actions.pod:2063
25662 msgid ""
25663 "This function should only be called with a root device string as returned by "
25664 "L</inspect-os>."
25665 msgstr ""
25666
25667 # type: textblock
25668 #. type: textblock
25669 #: ../fish/guestfish-actions.pod:1678
25670 msgid ""
25671 "This returns the architecture of the inspected operating system.  The "
25672 "possible return values are listed under L</file-architecture>."
25673 msgstr ""
25674
25675 # type: =head2
25676 #. type: =head2
25677 #: ../fish/guestfish-actions.pod:1687
25678 msgid "inspect-get-distro"
25679 msgstr ""
25680
25681 # type: verbatim
25682 #. type: verbatim
25683 #: ../fish/guestfish-actions.pod:1689
25684 #, no-wrap
25685 msgid ""
25686 " inspect-get-distro root\n"
25687 "\n"
25688 msgstr ""
25689
25690 # type: =head2
25691 #. type: =head2
25692 #: ../fish/guestfish-actions.pod:1761
25693 msgid "inspect-get-filesystems"
25694 msgstr ""
25695
25696 # type: verbatim
25697 #. type: verbatim
25698 #: ../fish/guestfish-actions.pod:1763
25699 #, no-wrap
25700 msgid ""
25701 " inspect-get-filesystems root\n"
25702 "\n"
25703 msgstr ""
25704
25705 # type: textblock
25706 #. type: textblock
25707 #: ../fish/guestfish-actions.pod:1776
25708 msgid ""
25709 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25710 "get-mountpoints>."
25711 msgstr ""
25712
25713 #. type: =head2
25714 #: ../fish/guestfish-actions.pod:1779
25715 msgid "inspect-get-format"
25716 msgstr ""
25717
25718 #. type: verbatim
25719 #: ../fish/guestfish-actions.pod:1781
25720 #, no-wrap
25721 msgid ""
25722 " inspect-get-format root\n"
25723 "\n"
25724 msgstr ""
25725
25726 # type: =head2
25727 #. type: =head2
25728 #: ../fish/guestfish-actions.pod:1813
25729 msgid "inspect-get-hostname"
25730 msgstr ""
25731
25732 # type: verbatim
25733 #. type: verbatim
25734 #: ../fish/guestfish-actions.pod:1815
25735 #, no-wrap
25736 msgid ""
25737 " inspect-get-hostname root\n"
25738 "\n"
25739 msgstr ""
25740
25741 # type: =head2
25742 #. type: =head2
25743 #: ../fish/guestfish-actions.pod:1828
25744 msgid "inspect-get-major-version"
25745 msgstr ""
25746
25747 # type: verbatim
25748 #. type: verbatim
25749 #: ../fish/guestfish-actions.pod:1830
25750 #, no-wrap
25751 msgid ""
25752 " inspect-get-major-version root\n"
25753 "\n"
25754 msgstr ""
25755
25756 # type: =head2
25757 #. type: =head2
25758 #: ../fish/guestfish-actions.pod:1849
25759 msgid "inspect-get-minor-version"
25760 msgstr ""
25761
25762 # type: verbatim
25763 #. type: verbatim
25764 #: ../fish/guestfish-actions.pod:1851
25765 #, no-wrap
25766 msgid ""
25767 " inspect-get-minor-version root\n"
25768 "\n"
25769 msgstr ""
25770
25771 # type: textblock
25772 #. type: textblock
25773 #: ../fish/guestfish-actions.pod:1861
25774 msgid ""
25775 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25776 "get-major-version>."
25777 msgstr ""
25778
25779 # type: =head2
25780 #. type: =head2
25781 #: ../fish/guestfish-actions.pod:1864
25782 msgid "inspect-get-mountpoints"
25783 msgstr ""
25784
25785 # type: verbatim
25786 #. type: verbatim
25787 #: ../fish/guestfish-actions.pod:1866
25788 #, no-wrap
25789 msgid ""
25790 " inspect-get-mountpoints root\n"
25791 "\n"
25792 msgstr ""
25793
25794 # type: textblock
25795 #. type: textblock
25796 #: ../fish/guestfish-actions.pod:1888
25797 msgid ""
25798 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25799 "get-filesystems>."
25800 msgstr ""
25801
25802 # type: =head2
25803 #. type: =head2
25804 #: ../fish/guestfish-actions.pod:1891
25805 msgid "inspect-get-package-format"
25806 msgstr ""
25807
25808 # type: verbatim
25809 #. type: verbatim
25810 #: ../fish/guestfish-actions.pod:1893
25811 #, no-wrap
25812 msgid ""
25813 " inspect-get-package-format root\n"
25814 "\n"
25815 msgstr ""
25816
25817 # type: textblock
25818 #. type: textblock
25819 #: ../fish/guestfish-actions.pod:1898
25820 msgid ""
25821 "This function and L</inspect-get-package-management> return the package "
25822 "format and package management tool used by the inspected operating system.  "
25823 "For example for Fedora these functions would return C<rpm> (package format) "
25824 "and C<yum> (package management)."
25825 msgstr ""
25826
25827 # type: =head2
25828 #. type: =head2
25829 #: ../fish/guestfish-actions.pod:1913
25830 msgid "inspect-get-package-management"
25831 msgstr ""
25832
25833 # type: verbatim
25834 #. type: verbatim
25835 #: ../fish/guestfish-actions.pod:1915
25836 #, no-wrap
25837 msgid ""
25838 " inspect-get-package-management root\n"
25839 "\n"
25840 msgstr ""
25841
25842 # type: textblock
25843 #. type: textblock
25844 #: ../fish/guestfish-actions.pod:1920
25845 msgid ""
25846 "L</inspect-get-package-format> and this function return the package format "
25847 "and package management tool used by the inspected operating system.  For "
25848 "example for Fedora these functions would return C<rpm> (package format) and "
25849 "C<yum> (package management)."
25850 msgstr ""
25851
25852 # type: =head2
25853 #. type: =head2
25854 #: ../fish/guestfish-actions.pod:1937
25855 msgid "inspect-get-product-name"
25856 msgstr ""
25857
25858 # type: verbatim
25859 #. type: verbatim
25860 #: ../fish/guestfish-actions.pod:1939
25861 #, no-wrap
25862 msgid ""
25863 " inspect-get-product-name root\n"
25864 "\n"
25865 msgstr ""
25866
25867 # type: =head2
25868 #. type: =head2
25869 #: ../fish/guestfish-actions.pod:1954
25870 msgid "inspect-get-roots"
25871 msgstr ""
25872
25873 # type: verbatim
25874 #. type: verbatim
25875 #: ../fish/guestfish-actions.pod:1956
25876 #, no-wrap
25877 msgid ""
25878 " inspect-get-roots\n"
25879 "\n"
25880 msgstr ""
25881
25882 # type: textblock
25883 #. type: textblock
25884 #: ../fish/guestfish-actions.pod:1958
25885 msgid ""
25886 "This function is a convenient way to get the list of root devices, as "
25887 "returned from a previous call to L</inspect-os>, but without redoing the "
25888 "whole inspection process."
25889 msgstr ""
25890
25891 # type: textblock
25892 #. type: textblock
25893 #: ../fish/guestfish-actions.pod:1962
25894 msgid ""
25895 "This returns an empty list if either no root devices were found or the "
25896 "caller has not called L</inspect-os>."
25897 msgstr ""
25898
25899 # type: =head2
25900 #. type: =head2
25901 #: ../fish/guestfish-actions.pod:1967
25902 msgid "inspect-get-type"
25903 msgstr ""
25904
25905 # type: verbatim
25906 #. type: verbatim
25907 #: ../fish/guestfish-actions.pod:1969
25908 #, no-wrap
25909 msgid ""
25910 " inspect-get-type root\n"
25911 "\n"
25912 msgstr ""
25913
25914 # type: =head2
25915 #. type: =head2
25916 #: ../fish/guestfish-actions.pod:2002
25917 msgid "inspect-get-windows-systemroot"
25918 msgstr ""
25919
25920 # type: verbatim
25921 #. type: verbatim
25922 #: ../fish/guestfish-actions.pod:2004
25923 #, no-wrap
25924 msgid ""
25925 " inspect-get-windows-systemroot root\n"
25926 "\n"
25927 msgstr ""
25928
25929 #. type: =head2
25930 #: ../fish/guestfish-actions.pod:2018
25931 msgid "inspect-is-live"
25932 msgstr ""
25933
25934 #. type: verbatim
25935 #: ../fish/guestfish-actions.pod:2020
25936 #, no-wrap
25937 msgid ""
25938 " inspect-is-live root\n"
25939 "\n"
25940 msgstr ""
25941
25942 #. type: textblock
25943 #: ../fish/guestfish-actions.pod:2025
25944 msgid ""
25945 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25946 "then this returns true if a live image was detected on the disk."
25947 msgstr ""
25948
25949 #. type: =head2
25950 #: ../fish/guestfish-actions.pod:2031
25951 msgid "inspect-is-multipart"
25952 msgstr ""
25953
25954 #. type: verbatim
25955 #: ../fish/guestfish-actions.pod:2033
25956 #, no-wrap
25957 msgid ""
25958 " inspect-is-multipart root\n"
25959 "\n"
25960 msgstr ""
25961
25962 #. type: textblock
25963 #: ../fish/guestfish-actions.pod:2038
25964 msgid ""
25965 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25966 "then this returns true if the disk is part of a set."
25967 msgstr ""
25968
25969 #. type: =head2
25970 #: ../fish/guestfish-actions.pod:2044
25971 msgid "inspect-is-netinst"
25972 msgstr ""
25973
25974 #. type: verbatim
25975 #: ../fish/guestfish-actions.pod:2046
25976 #, no-wrap
25977 msgid ""
25978 " inspect-is-netinst root\n"
25979 "\n"
25980 msgstr ""
25981
25982 #. type: textblock
25983 #: ../fish/guestfish-actions.pod:2051
25984 msgid ""
25985 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25986 "then this returns true if the disk is a network installer, ie. not a self-"
25987 "contained install CD but one which is likely to require network access to "
25988 "complete the install."
25989 msgstr ""
25990
25991 # type: =head2
25992 #. type: =head2
25993 #: ../fish/guestfish-actions.pod:2059
25994 msgid "inspect-list-applications"
25995 msgstr ""
25996
25997 # type: verbatim
25998 #. type: verbatim
25999 #: ../fish/guestfish-actions.pod:2061
26000 #, no-wrap
26001 msgid ""
26002 " inspect-list-applications root\n"
26003 "\n"
26004 msgstr ""
26005
26006 # type: textblock
26007 #. type: textblock
26008 #: ../fish/guestfish-actions.pod:2068
26009 msgid ""
26010 "I<Note:> This call works differently from other parts of the inspection "
26011 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
26012 "then mount up the disks, before calling this.  Listing applications is a "
26013 "significantly more difficult operation which requires access to the full "
26014 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
26015 "are just returning data cached in the libguestfs handle, this call actually "
26016 "reads parts of the mounted filesystems during the call."
26017 msgstr ""
26018
26019 # type: =head2
26020 #. type: =head2
26021 #: ../fish/guestfish-actions.pod:2158
26022 msgid "inspect-os"
26023 msgstr ""
26024
26025 # type: verbatim
26026 #. type: verbatim
26027 #: ../fish/guestfish-actions.pod:2160
26028 #, no-wrap
26029 msgid ""
26030 " inspect-os\n"
26031 "\n"
26032 msgstr ""
26033
26034 # type: textblock
26035 #. type: textblock
26036 #: ../fish/guestfish-actions.pod:2175
26037 msgid ""
26038 "You can pass the root string(s) returned to other L</inspect-get-*> "
26039 "functions in order to query further information about each operating system, "
26040 "such as the name and version."
26041 msgstr ""
26042
26043 # type: textblock
26044 #. type: textblock
26045 #: ../fish/guestfish-actions.pod:2180
26046 msgid ""
26047 "This function uses other libguestfs features such as L</mount-ro> and L</"
26048 "umount-all> in order to mount and unmount filesystems and look at the "
26049 "contents.  This should be called with no disks currently mounted.  The "
26050 "function may also use Augeas, so any existing Augeas handle will be closed."
26051 msgstr ""
26052
26053 # type: textblock
26054 #. type: textblock
26055 #: ../fish/guestfish-actions.pod:2192 ../fish/guestfish-actions.pod:2368
26056 #: ../fish/guestfish-actions.pod:2414
26057 msgid "See also L</list-filesystems>."
26058 msgstr ""
26059
26060 # type: =head2
26061 #. type: =head2
26062 #: ../fish/guestfish-actions.pod:2194
26063 msgid "is-blockdev"
26064 msgstr ""
26065
26066 # type: verbatim
26067 #. type: verbatim
26068 #: ../fish/guestfish-actions.pod:2196
26069 #, no-wrap
26070 msgid ""
26071 " is-blockdev path\n"
26072 "\n"
26073 msgstr ""
26074
26075 # type: textblock
26076 #. type: textblock
26077 #: ../fish/guestfish-actions.pod:2201 ../fish/guestfish-actions.pod:2219
26078 #: ../fish/guestfish-actions.pod:2238 ../fish/guestfish-actions.pod:2247
26079 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2291
26080 #: ../fish/guestfish-actions.pod:2300
26081 msgid "See also L</stat>."
26082 msgstr ""
26083
26084 # type: =head2
26085 #. type: =head2
26086 #: ../fish/guestfish-actions.pod:2203
26087 msgid "is-busy"
26088 msgstr ""
26089
26090 # type: verbatim
26091 #. type: verbatim
26092 #: ../fish/guestfish-actions.pod:2205
26093 #, no-wrap
26094 msgid ""
26095 " is-busy\n"
26096 "\n"
26097 msgstr ""
26098
26099 # type: =head2
26100 #. type: =head2
26101 #: ../fish/guestfish-actions.pod:2212
26102 msgid "is-chardev"
26103 msgstr ""
26104
26105 # type: verbatim
26106 #. type: verbatim
26107 #: ../fish/guestfish-actions.pod:2214
26108 #, no-wrap
26109 msgid ""
26110 " is-chardev path\n"
26111 "\n"
26112 msgstr ""
26113
26114 # type: =head2
26115 #. type: =head2
26116 #: ../fish/guestfish-actions.pod:2221
26117 msgid "is-config"
26118 msgstr ""
26119
26120 # type: verbatim
26121 #. type: verbatim
26122 #: ../fish/guestfish-actions.pod:2223
26123 #, no-wrap
26124 msgid ""
26125 " is-config\n"
26126 "\n"
26127 msgstr ""
26128
26129 # type: =head2
26130 #. type: =head2
26131 #: ../fish/guestfish-actions.pod:2230
26132 msgid "is-dir"
26133 msgstr ""
26134
26135 # type: verbatim
26136 #. type: verbatim
26137 #: ../fish/guestfish-actions.pod:2232
26138 #, no-wrap
26139 msgid ""
26140 " is-dir path\n"
26141 "\n"
26142 msgstr ""
26143
26144 # type: =head2
26145 #. type: =head2
26146 #: ../fish/guestfish-actions.pod:2240
26147 msgid "is-fifo"
26148 msgstr ""
26149
26150 # type: verbatim
26151 #. type: verbatim
26152 #: ../fish/guestfish-actions.pod:2242
26153 #, no-wrap
26154 msgid ""
26155 " is-fifo path\n"
26156 "\n"
26157 msgstr ""
26158
26159 # type: =head2
26160 #. type: =head2
26161 #: ../fish/guestfish-actions.pod:2249
26162 msgid "is-file"
26163 msgstr ""
26164
26165 # type: verbatim
26166 #. type: verbatim
26167 #: ../fish/guestfish-actions.pod:2251
26168 #, no-wrap
26169 msgid ""
26170 " is-file path\n"
26171 "\n"
26172 msgstr ""
26173
26174 # type: =head2
26175 #. type: =head2
26176 #: ../fish/guestfish-actions.pod:2259
26177 msgid "is-launching"
26178 msgstr ""
26179
26180 # type: verbatim
26181 #. type: verbatim
26182 #: ../fish/guestfish-actions.pod:2261
26183 #, no-wrap
26184 msgid ""
26185 " is-launching\n"
26186 "\n"
26187 msgstr ""
26188
26189 # type: =head2
26190 #. type: =head2
26191 #: ../fish/guestfish-actions.pod:2268
26192 msgid "is-lv"
26193 msgstr ""
26194
26195 # type: verbatim
26196 #. type: verbatim
26197 #: ../fish/guestfish-actions.pod:2270
26198 #, no-wrap
26199 msgid ""
26200 " is-lv device\n"
26201 "\n"
26202 msgstr ""
26203
26204 # type: =head2
26205 #. type: =head2
26206 #: ../fish/guestfish-actions.pod:2275
26207 msgid "is-ready"
26208 msgstr ""
26209
26210 # type: verbatim
26211 #. type: verbatim
26212 #: ../fish/guestfish-actions.pod:2277
26213 #, no-wrap
26214 msgid ""
26215 " is-ready\n"
26216 "\n"
26217 msgstr ""
26218
26219 # type: =head2
26220 #. type: =head2
26221 #: ../fish/guestfish-actions.pod:2284
26222 msgid "is-socket"
26223 msgstr ""
26224
26225 # type: verbatim
26226 #. type: verbatim
26227 #: ../fish/guestfish-actions.pod:2286
26228 #, no-wrap
26229 msgid ""
26230 " is-socket path\n"
26231 "\n"
26232 msgstr ""
26233
26234 # type: =head2
26235 #. type: =head2
26236 #: ../fish/guestfish-actions.pod:2293
26237 msgid "is-symlink"
26238 msgstr ""
26239
26240 # type: verbatim
26241 #. type: verbatim
26242 #: ../fish/guestfish-actions.pod:2295
26243 #, no-wrap
26244 msgid ""
26245 " is-symlink path\n"
26246 "\n"
26247 msgstr ""
26248
26249 # type: =head2
26250 #. type: =head2
26251 #: ../fish/guestfish-actions.pod:2302
26252 msgid "kill-subprocess"
26253 msgstr ""
26254
26255 # type: verbatim
26256 #. type: verbatim
26257 #: ../fish/guestfish-actions.pod:2304
26258 #, no-wrap
26259 msgid ""
26260 " kill-subprocess\n"
26261 "\n"
26262 msgstr ""
26263
26264 # type: =head2
26265 #. type: =head2
26266 #: ../fish/guestfish-actions.pod:2308
26267 msgid "launch"
26268 msgstr ""
26269
26270 # type: =head2
26271 #. type: =head2
26272 #: ../fish/guestfish-actions.pod:2310
26273 msgid "run"
26274 msgstr ""
26275
26276 # type: verbatim
26277 #. type: verbatim
26278 #: ../fish/guestfish-actions.pod:2312
26279 #, no-wrap
26280 msgid ""
26281 " launch\n"
26282 "\n"
26283 msgstr ""
26284
26285 # type: =head2
26286 #. type: =head2
26287 #: ../fish/guestfish-actions.pod:2320
26288 msgid "lchown"
26289 msgstr ""
26290
26291 # type: verbatim
26292 #. type: verbatim
26293 #: ../fish/guestfish-actions.pod:2322
26294 #, no-wrap
26295 msgid ""
26296 " lchown owner group path\n"
26297 "\n"
26298 msgstr ""
26299
26300 # type: textblock
26301 #. type: textblock
26302 #: ../fish/guestfish-actions.pod:2324
26303 msgid ""
26304 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
26305 "chown> but if C<path> is a symlink then the link itself is changed, not the "
26306 "target."
26307 msgstr ""
26308
26309 # type: =head2
26310 #. type: =head2
26311 #: ../fish/guestfish-actions.pod:2332
26312 msgid "lgetxattr"
26313 msgstr ""
26314
26315 # type: verbatim
26316 #. type: verbatim
26317 #: ../fish/guestfish-actions.pod:2334
26318 #, no-wrap
26319 msgid ""
26320 " lgetxattr path name\n"
26321 "\n"
26322 msgstr ""
26323
26324 # type: textblock
26325 #. type: textblock
26326 #: ../fish/guestfish-actions.pod:2350
26327 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
26328 msgstr ""
26329
26330 # type: =head2
26331 #. type: =head2
26332 #: ../fish/guestfish-actions.pod:2352
26333 msgid "lgetxattrs"
26334 msgstr ""
26335
26336 # type: verbatim
26337 #. type: verbatim
26338 #: ../fish/guestfish-actions.pod:2354
26339 #, no-wrap
26340 msgid ""
26341 " lgetxattrs path\n"
26342 "\n"
26343 msgstr ""
26344
26345 # type: textblock
26346 #. type: textblock
26347 #: ../fish/guestfish-actions.pod:2356
26348 msgid ""
26349 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
26350 "it returns the extended attributes of the link itself."
26351 msgstr ""
26352
26353 # type: =head2
26354 #. type: =head2
26355 #: ../fish/guestfish-actions.pod:2360
26356 msgid "list-devices"
26357 msgstr ""
26358
26359 # type: verbatim
26360 #. type: verbatim
26361 #: ../fish/guestfish-actions.pod:2362
26362 #, no-wrap
26363 msgid ""
26364 " list-devices\n"
26365 "\n"
26366 msgstr ""
26367
26368 # type: =head2
26369 #. type: =head2
26370 #: ../fish/guestfish-actions.pod:2370
26371 msgid "list-filesystems"
26372 msgstr ""
26373
26374 # type: verbatim
26375 #. type: verbatim
26376 #: ../fish/guestfish-actions.pod:2372
26377 #, no-wrap
26378 msgid ""
26379 " list-filesystems\n"
26380 "\n"
26381 msgstr ""
26382
26383 # type: textblock
26384 #. type: textblock
26385 #: ../fish/guestfish-actions.pod:2391
26386 msgid ""
26387 "This command runs other libguestfs commands, which might include L</mount> "
26388 "and L</umount>, and therefore you should use this soon after launch and only "
26389 "when nothing is mounted."
26390 msgstr ""
26391
26392 # type: textblock
26393 #. type: textblock
26394 #: ../fish/guestfish-actions.pod:2395
26395 msgid ""
26396 "Not all of the filesystems returned will be mountable.  In particular, swap "
26397 "partitions are returned in the list.  Also this command does not check that "
26398 "each filesystem found is valid and mountable, and some filesystems might be "
26399 "mountable but require special options.  Filesystems may not all belong to a "
26400 "single logical operating system (use L</inspect-os> to look for OSes)."
26401 msgstr ""
26402
26403 # type: =head2
26404 #. type: =head2
26405 #: ../fish/guestfish-actions.pod:2403
26406 msgid "list-partitions"
26407 msgstr ""
26408
26409 # type: verbatim
26410 #. type: verbatim
26411 #: ../fish/guestfish-actions.pod:2405
26412 #, no-wrap
26413 msgid ""
26414 " list-partitions\n"
26415 "\n"
26416 msgstr ""
26417
26418 # type: textblock
26419 #. type: textblock
26420 #: ../fish/guestfish-actions.pod:2411
26421 msgid ""
26422 "This does not return logical volumes.  For that you will need to call L</"
26423 "lvs>."
26424 msgstr ""
26425
26426 # type: =head2
26427 #. type: =head2
26428 #: ../fish/guestfish-actions.pod:2416
26429 msgid "ll"
26430 msgstr ""
26431
26432 # type: verbatim
26433 #. type: verbatim
26434 #: ../fish/guestfish-actions.pod:2418
26435 #, no-wrap
26436 msgid ""
26437 " ll directory\n"
26438 "\n"
26439 msgstr ""
26440
26441 # type: =head2
26442 #. type: =head2
26443 #: ../fish/guestfish-actions.pod:2426
26444 msgid "ln"
26445 msgstr ""
26446
26447 # type: verbatim
26448 #. type: verbatim
26449 #: ../fish/guestfish-actions.pod:2428
26450 #, no-wrap
26451 msgid ""
26452 " ln target linkname\n"
26453 "\n"
26454 msgstr ""
26455
26456 # type: =head2
26457 #. type: =head2
26458 #: ../fish/guestfish-actions.pod:2432
26459 msgid "ln-f"
26460 msgstr ""
26461
26462 # type: verbatim
26463 #. type: verbatim
26464 #: ../fish/guestfish-actions.pod:2434
26465 #, no-wrap
26466 msgid ""
26467 " ln-f target linkname\n"
26468 "\n"
26469 msgstr ""
26470
26471 # type: =head2
26472 #. type: =head2
26473 #: ../fish/guestfish-actions.pod:2439
26474 msgid "ln-s"
26475 msgstr ""
26476
26477 # type: verbatim
26478 #. type: verbatim
26479 #: ../fish/guestfish-actions.pod:2441
26480 #, no-wrap
26481 msgid ""
26482 " ln-s target linkname\n"
26483 "\n"
26484 msgstr ""
26485
26486 # type: =head2
26487 #. type: =head2
26488 #: ../fish/guestfish-actions.pod:2445
26489 msgid "ln-sf"
26490 msgstr ""
26491
26492 # type: verbatim
26493 #. type: verbatim
26494 #: ../fish/guestfish-actions.pod:2447
26495 #, no-wrap
26496 msgid ""
26497 " ln-sf target linkname\n"
26498 "\n"
26499 msgstr ""
26500
26501 # type: =head2
26502 #. type: =head2
26503 #: ../fish/guestfish-actions.pod:2452
26504 msgid "lremovexattr"
26505 msgstr ""
26506
26507 # type: verbatim
26508 #. type: verbatim
26509 #: ../fish/guestfish-actions.pod:2454
26510 #, no-wrap
26511 msgid ""
26512 " lremovexattr xattr path\n"
26513 "\n"
26514 msgstr ""
26515
26516 # type: textblock
26517 #. type: textblock
26518 #: ../fish/guestfish-actions.pod:2456
26519 msgid ""
26520 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
26521 "it removes an extended attribute of the link itself."
26522 msgstr ""
26523
26524 # type: =head2
26525 #. type: =head2
26526 #: ../fish/guestfish-actions.pod:2460
26527 msgid "ls"
26528 msgstr ""
26529
26530 # type: verbatim
26531 #. type: verbatim
26532 #: ../fish/guestfish-actions.pod:2462
26533 #, no-wrap
26534 msgid ""
26535 " ls directory\n"
26536 "\n"
26537 msgstr ""
26538
26539 # type: textblock
26540 #. type: textblock
26541 #: ../fish/guestfish-actions.pod:2468
26542 msgid ""
26543 "This command is mostly useful for interactive sessions.  Programs should "
26544 "probably use L</readdir> instead."
26545 msgstr ""
26546
26547 # type: =head2
26548 #. type: =head2
26549 #: ../fish/guestfish-actions.pod:2471
26550 msgid "lsetxattr"
26551 msgstr ""
26552
26553 # type: verbatim
26554 #. type: verbatim
26555 #: ../fish/guestfish-actions.pod:2473
26556 #, no-wrap
26557 msgid ""
26558 " lsetxattr xattr val vallen path\n"
26559 "\n"
26560 msgstr ""
26561
26562 # type: textblock
26563 #. type: textblock
26564 #: ../fish/guestfish-actions.pod:2475
26565 msgid ""
26566 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
26567 "sets an extended attribute of the link itself."
26568 msgstr ""
26569
26570 # type: =head2
26571 #. type: =head2
26572 #: ../fish/guestfish-actions.pod:2479
26573 msgid "lstat"
26574 msgstr ""
26575
26576 # type: verbatim
26577 #. type: verbatim
26578 #: ../fish/guestfish-actions.pod:2481
26579 #, no-wrap
26580 msgid ""
26581 " lstat path\n"
26582 "\n"
26583 msgstr ""
26584
26585 # type: textblock
26586 #. type: textblock
26587 #: ../fish/guestfish-actions.pod:2485
26588 msgid ""
26589 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
26590 "the link is stat-ed, not the file it refers to."
26591 msgstr ""
26592
26593 # type: =head2
26594 #. type: =head2
26595 #: ../fish/guestfish-actions.pod:2491
26596 msgid "lstatlist"
26597 msgstr ""
26598
26599 # type: verbatim
26600 #. type: verbatim
26601 #: ../fish/guestfish-actions.pod:2493
26602 #, no-wrap
26603 msgid ""
26604 " lstatlist path 'names ...'\n"
26605 "\n"
26606 msgstr ""
26607
26608 # type: textblock
26609 #. type: textblock
26610 #: ../fish/guestfish-actions.pod:2495
26611 msgid ""
26612 "This call allows you to perform the L</lstat> operation on multiple files, "
26613 "where all files are in the directory C<path>.  C<names> is the list of files "
26614 "from this directory."
26615 msgstr ""
26616
26617 # type: textblock
26618 #. type: textblock
26619 #: ../fish/guestfish-actions.pod:2504
26620 msgid ""
26621 "This call is intended for programs that want to efficiently list a directory "
26622 "contents without making many round-trips.  See also L</lxattrlist> for a "
26623 "similarly efficient call for getting extended attributes.  Very long "
26624 "directory listings might cause the protocol message size to be exceeded, "
26625 "causing this call to fail.  The caller must split up such requests into "
26626 "smaller groups of names."
26627 msgstr ""
26628
26629 # type: =head2
26630 #. type: =head2
26631 #: ../fish/guestfish-actions.pod:2512
26632 msgid "luks-add-key"
26633 msgstr ""
26634
26635 # type: verbatim
26636 #. type: verbatim
26637 #: ../fish/guestfish-actions.pod:2514
26638 #, no-wrap
26639 msgid ""
26640 " luks-add-key device keyslot\n"
26641 "\n"
26642 msgstr ""
26643
26644 # type: textblock
26645 #. type: textblock
26646 #: ../fish/guestfish-actions.pod:2521
26647 msgid ""
26648 "Note that if C<keyslot> already contains a key, then this command will "
26649 "fail.  You have to use L</luks-kill-slot> first to remove that key."
26650 msgstr ""
26651
26652 # type: textblock
26653 #. type: textblock
26654 #: ../fish/guestfish-actions.pod:2525 ../fish/guestfish-actions.pod:2547
26655 #: ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2574
26656 #: ../fish/guestfish-actions.pod:2597 ../fish/guestfish-actions.pod:2607
26657 msgid ""
26658 "This command has one or more key or passphrase parameters.  Guestfish will "
26659 "prompt for these separately."
26660 msgstr ""
26661
26662 # type: =head2
26663 #. type: =head2
26664 #: ../fish/guestfish-actions.pod:2528
26665 msgid "luks-close"
26666 msgstr ""
26667
26668 # type: verbatim
26669 #. type: verbatim
26670 #: ../fish/guestfish-actions.pod:2530
26671 #, no-wrap
26672 msgid ""
26673 " luks-close device\n"
26674 "\n"
26675 msgstr ""
26676
26677 # type: textblock
26678 #. type: textblock
26679 #: ../fish/guestfish-actions.pod:2532
26680 msgid ""
26681 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
26682 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
26683 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
26684 "block device."
26685 msgstr ""
26686
26687 # type: =head2
26688 #. type: =head2
26689 #: ../fish/guestfish-actions.pod:2538
26690 msgid "luks-format"
26691 msgstr ""
26692
26693 # type: verbatim
26694 #. type: verbatim
26695 #: ../fish/guestfish-actions.pod:2540
26696 #, no-wrap
26697 msgid ""
26698 " luks-format device keyslot\n"
26699 "\n"
26700 msgstr ""
26701
26702 # type: =head2
26703 #. type: =head2
26704 #: ../fish/guestfish-actions.pod:2553
26705 msgid "luks-format-cipher"
26706 msgstr ""
26707
26708 # type: verbatim
26709 #. type: verbatim
26710 #: ../fish/guestfish-actions.pod:2555
26711 #, no-wrap
26712 msgid ""
26713 " luks-format-cipher device keyslot cipher\n"
26714 "\n"
26715 msgstr ""
26716
26717 # type: textblock
26718 #. type: textblock
26719 #: ../fish/guestfish-actions.pod:2557
26720 msgid ""
26721 "This command is the same as L</luks-format> but it also allows you to set "
26722 "the C<cipher> used."
26723 msgstr ""
26724
26725 # type: =head2
26726 #. type: =head2
26727 #: ../fish/guestfish-actions.pod:2566
26728 msgid "luks-kill-slot"
26729 msgstr ""
26730
26731 # type: verbatim
26732 #. type: verbatim
26733 #: ../fish/guestfish-actions.pod:2568
26734 #, no-wrap
26735 msgid ""
26736 " luks-kill-slot device keyslot\n"
26737 "\n"
26738 msgstr ""
26739
26740 # type: =head2
26741 #. type: =head2
26742 #: ../fish/guestfish-actions.pod:2577
26743 msgid "luks-open"
26744 msgstr ""
26745
26746 # type: verbatim
26747 #. type: verbatim
26748 #: ../fish/guestfish-actions.pod:2579
26749 #, no-wrap
26750 msgid ""
26751 " luks-open device mapname\n"
26752 "\n"
26753 msgstr ""
26754
26755 # type: textblock
26756 #. type: textblock
26757 #: ../fish/guestfish-actions.pod:2593
26758 msgid ""
26759 "If this block device contains LVM volume groups, then calling L</vgscan> "
26760 "followed by L</vg-activate-all> will make them visible."
26761 msgstr ""
26762
26763 # type: =head2
26764 #. type: =head2
26765 #: ../fish/guestfish-actions.pod:2600
26766 msgid "luks-open-ro"
26767 msgstr ""
26768
26769 # type: verbatim
26770 #. type: verbatim
26771 #: ../fish/guestfish-actions.pod:2602
26772 #, no-wrap
26773 msgid ""
26774 " luks-open-ro device mapname\n"
26775 "\n"
26776 msgstr ""
26777
26778 # type: textblock
26779 #. type: textblock
26780 #: ../fish/guestfish-actions.pod:2604
26781 msgid ""
26782 "This is the same as L</luks-open> except that a read-only mapping is created."
26783 msgstr ""
26784
26785 # type: =head2
26786 #. type: =head2
26787 #: ../fish/guestfish-actions.pod:2610
26788 msgid "lvcreate"
26789 msgstr ""
26790
26791 # type: verbatim
26792 #. type: verbatim
26793 #: ../fish/guestfish-actions.pod:2612
26794 #, no-wrap
26795 msgid ""
26796 " lvcreate logvol volgroup mbytes\n"
26797 "\n"
26798 msgstr ""
26799
26800 # type: =head2
26801 #. type: =head2
26802 #: ../fish/guestfish-actions.pod:2617
26803 msgid "lvm-canonical-lv-name"
26804 msgstr ""
26805
26806 # type: verbatim
26807 #. type: verbatim
26808 #: ../fish/guestfish-actions.pod:2619
26809 #, no-wrap
26810 msgid ""
26811 " lvm-canonical-lv-name lvname\n"
26812 "\n"
26813 msgstr ""
26814
26815 # type: textblock
26816 #. type: textblock
26817 #: ../fish/guestfish-actions.pod:2628
26818 msgid "See also L</is-lv>."
26819 msgstr ""
26820
26821 # type: =head2
26822 #. type: =head2
26823 #: ../fish/guestfish-actions.pod:2630
26824 msgid "lvm-clear-filter"
26825 msgstr ""
26826
26827 # type: verbatim
26828 #. type: verbatim
26829 #: ../fish/guestfish-actions.pod:2632
26830 #, no-wrap
26831 msgid ""
26832 " lvm-clear-filter\n"
26833 "\n"
26834 msgstr ""
26835
26836 # type: textblock
26837 #. type: textblock
26838 #: ../fish/guestfish-actions.pod:2634
26839 msgid ""
26840 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
26841 "block device."
26842 msgstr ""
26843
26844 # type: =head2
26845 #. type: =head2
26846 #: ../fish/guestfish-actions.pod:2640
26847 msgid "lvm-remove-all"
26848 msgstr ""
26849
26850 # type: verbatim
26851 #. type: verbatim
26852 #: ../fish/guestfish-actions.pod:2642
26853 #, no-wrap
26854 msgid ""
26855 " lvm-remove-all\n"
26856 "\n"
26857 msgstr ""
26858
26859 # type: =head2
26860 #. type: =head2
26861 #: ../fish/guestfish-actions.pod:2650
26862 msgid "lvm-set-filter"
26863 msgstr ""
26864
26865 # type: verbatim
26866 #. type: verbatim
26867 #: ../fish/guestfish-actions.pod:2652
26868 #, no-wrap
26869 msgid ""
26870 " lvm-set-filter 'devices ...'\n"
26871 "\n"
26872 msgstr ""
26873
26874 # type: =head2
26875 #. type: =head2
26876 #: ../fish/guestfish-actions.pod:2677
26877 msgid "lvremove"
26878 msgstr ""
26879
26880 # type: verbatim
26881 #. type: verbatim
26882 #: ../fish/guestfish-actions.pod:2679
26883 #, no-wrap
26884 msgid ""
26885 " lvremove device\n"
26886 "\n"
26887 msgstr ""
26888
26889 # type: =head2
26890 #. type: =head2
26891 #: ../fish/guestfish-actions.pod:2687
26892 msgid "lvrename"
26893 msgstr ""
26894
26895 # type: verbatim
26896 #. type: verbatim
26897 #: ../fish/guestfish-actions.pod:2689
26898 #, no-wrap
26899 msgid ""
26900 " lvrename logvol newlogvol\n"
26901 "\n"
26902 msgstr ""
26903
26904 # type: =head2
26905 #. type: =head2
26906 #: ../fish/guestfish-actions.pod:2693
26907 msgid "lvresize"
26908 msgstr ""
26909
26910 # type: verbatim
26911 #. type: verbatim
26912 #: ../fish/guestfish-actions.pod:2695
26913 #, no-wrap
26914 msgid ""
26915 " lvresize device mbytes\n"
26916 "\n"
26917 msgstr ""
26918
26919 # type: =head2
26920 #. type: =head2
26921 #: ../fish/guestfish-actions.pod:2701
26922 msgid "lvresize-free"
26923 msgstr ""
26924
26925 # type: verbatim
26926 #. type: verbatim
26927 #: ../fish/guestfish-actions.pod:2703
26928 #, no-wrap
26929 msgid ""
26930 " lvresize-free lv percent\n"
26931 "\n"
26932 msgstr ""
26933
26934 # type: =head2
26935 #. type: =head2
26936 #: ../fish/guestfish-actions.pod:2711
26937 msgid "lvs"
26938 msgstr ""
26939
26940 # type: verbatim
26941 #. type: verbatim
26942 #: ../fish/guestfish-actions.pod:2713
26943 #, no-wrap
26944 msgid ""
26945 " lvs\n"
26946 "\n"
26947 msgstr ""
26948
26949 # type: textblock
26950 #. type: textblock
26951 #: ../fish/guestfish-actions.pod:2721
26952 msgid "See also L</lvs-full>, L</list-filesystems>."
26953 msgstr ""
26954
26955 # type: =head2
26956 #. type: =head2
26957 #: ../fish/guestfish-actions.pod:2723
26958 msgid "lvs-full"
26959 msgstr ""
26960
26961 # type: verbatim
26962 #. type: verbatim
26963 #: ../fish/guestfish-actions.pod:2725
26964 #, no-wrap
26965 msgid ""
26966 " lvs-full\n"
26967 "\n"
26968 msgstr ""
26969
26970 # type: =head2
26971 #. type: =head2
26972 #: ../fish/guestfish-actions.pod:2730
26973 msgid "lvuuid"
26974 msgstr ""
26975
26976 # type: verbatim
26977 #. type: verbatim
26978 #: ../fish/guestfish-actions.pod:2732
26979 #, no-wrap
26980 msgid ""
26981 " lvuuid device\n"
26982 "\n"
26983 msgstr ""
26984
26985 # type: =head2
26986 #. type: =head2
26987 #: ../fish/guestfish-actions.pod:2736
26988 msgid "lxattrlist"
26989 msgstr ""
26990
26991 # type: verbatim
26992 #. type: verbatim
26993 #: ../fish/guestfish-actions.pod:2738
26994 #, no-wrap
26995 msgid ""
26996 " lxattrlist path 'names ...'\n"
26997 "\n"
26998 msgstr ""
26999
27000 # type: textblock
27001 #. type: textblock
27002 #: ../fish/guestfish-actions.pod:2754
27003 msgid ""
27004 "This call is intended for programs that want to efficiently list a directory "
27005 "contents without making many round-trips.  See also L</lstatlist> for a "
27006 "similarly efficient call for getting standard stats.  Very long directory "
27007 "listings might cause the protocol message size to be exceeded, causing this "
27008 "call to fail.  The caller must split up such requests into smaller groups of "
27009 "names."
27010 msgstr ""
27011
27012 # type: =head2
27013 #. type: =head2
27014 #: ../fish/guestfish-actions.pod:2762
27015 msgid "mkdir"
27016 msgstr ""
27017
27018 # type: verbatim
27019 #. type: verbatim
27020 #: ../fish/guestfish-actions.pod:2764
27021 #, no-wrap
27022 msgid ""
27023 " mkdir path\n"
27024 "\n"
27025 msgstr ""
27026
27027 # type: =head2
27028 #. type: =head2
27029 #: ../fish/guestfish-actions.pod:2768
27030 msgid "mkdir-mode"
27031 msgstr ""
27032
27033 # type: verbatim
27034 #. type: verbatim
27035 #: ../fish/guestfish-actions.pod:2770
27036 #, no-wrap
27037 msgid ""
27038 " mkdir-mode path mode\n"
27039 "\n"
27040 msgstr ""
27041
27042 # type: textblock
27043 #. type: textblock
27044 #: ../fish/guestfish-actions.pod:2779
27045 msgid "See also L</mkdir>, L</umask>"
27046 msgstr ""
27047
27048 # type: =head2
27049 #. type: =head2
27050 #: ../fish/guestfish-actions.pod:2781
27051 msgid "mkdir-p"
27052 msgstr ""
27053
27054 # type: verbatim
27055 #. type: verbatim
27056 #: ../fish/guestfish-actions.pod:2783
27057 #, no-wrap
27058 msgid ""
27059 " mkdir-p path\n"
27060 "\n"
27061 msgstr ""
27062
27063 # type: =head2
27064 #. type: =head2
27065 #: ../fish/guestfish-actions.pod:2788
27066 msgid "mkdtemp"
27067 msgstr ""
27068
27069 # type: verbatim
27070 #. type: verbatim
27071 #: ../fish/guestfish-actions.pod:2790
27072 #, no-wrap
27073 msgid ""
27074 " mkdtemp template\n"
27075 "\n"
27076 msgstr ""
27077
27078 # type: =head2
27079 #. type: =head2
27080 #: ../fish/guestfish-actions.pod:2811
27081 msgid "mke2fs-J"
27082 msgstr ""
27083
27084 # type: verbatim
27085 #. type: verbatim
27086 #: ../fish/guestfish-actions.pod:2813
27087 #, no-wrap
27088 msgid ""
27089 " mke2fs-J fstype blocksize device journal\n"
27090 "\n"
27091 msgstr ""
27092
27093 # type: textblock
27094 #. type: textblock
27095 #: ../fish/guestfish-actions.pod:2821
27096 msgid "See also L</mke2journal>."
27097 msgstr ""
27098
27099 # type: =head2
27100 #. type: =head2
27101 #: ../fish/guestfish-actions.pod:2823
27102 msgid "mke2fs-JL"
27103 msgstr ""
27104
27105 # type: verbatim
27106 #. type: verbatim
27107 #: ../fish/guestfish-actions.pod:2825
27108 #, no-wrap
27109 msgid ""
27110 " mke2fs-JL fstype blocksize device label\n"
27111 "\n"
27112 msgstr ""
27113
27114 # type: textblock
27115 #. type: textblock
27116 #: ../fish/guestfish-actions.pod:2830
27117 msgid "See also L</mke2journal-L>."
27118 msgstr ""
27119
27120 # type: =head2
27121 #. type: =head2
27122 #: ../fish/guestfish-actions.pod:2832
27123 msgid "mke2fs-JU"
27124 msgstr ""
27125
27126 # type: verbatim
27127 #. type: verbatim
27128 #: ../fish/guestfish-actions.pod:2834
27129 #, no-wrap
27130 msgid ""
27131 " mke2fs-JU fstype blocksize device uuid\n"
27132 "\n"
27133 msgstr ""
27134
27135 # type: textblock
27136 #. type: textblock
27137 #: ../fish/guestfish-actions.pod:2839
27138 msgid "See also L</mke2journal-U>."
27139 msgstr ""
27140
27141 # type: =head2
27142 #. type: =head2
27143 #: ../fish/guestfish-actions.pod:2841
27144 msgid "mke2journal"
27145 msgstr ""
27146
27147 # type: verbatim
27148 #. type: verbatim
27149 #: ../fish/guestfish-actions.pod:2843
27150 #, no-wrap
27151 msgid ""
27152 " mke2journal blocksize device\n"
27153 "\n"
27154 msgstr ""
27155
27156 # type: =head2
27157 #. type: =head2
27158 #: ../fish/guestfish-actions.pod:2850
27159 msgid "mke2journal-L"
27160 msgstr ""
27161
27162 # type: verbatim
27163 #. type: verbatim
27164 #: ../fish/guestfish-actions.pod:2852
27165 #, no-wrap
27166 msgid ""
27167 " mke2journal-L blocksize label device\n"
27168 "\n"
27169 msgstr ""
27170
27171 # type: =head2
27172 #. type: =head2
27173 #: ../fish/guestfish-actions.pod:2856
27174 msgid "mke2journal-U"
27175 msgstr ""
27176
27177 # type: verbatim
27178 #. type: verbatim
27179 #: ../fish/guestfish-actions.pod:2858
27180 #, no-wrap
27181 msgid ""
27182 " mke2journal-U blocksize uuid device\n"
27183 "\n"
27184 msgstr ""
27185
27186 # type: =head2
27187 #. type: =head2
27188 #: ../fish/guestfish-actions.pod:2862
27189 msgid "mkfifo"
27190 msgstr ""
27191
27192 # type: verbatim
27193 #. type: verbatim
27194 #: ../fish/guestfish-actions.pod:2864
27195 #, no-wrap
27196 msgid ""
27197 " mkfifo mode path\n"
27198 "\n"
27199 msgstr ""
27200
27201 # type: textblock
27202 #. type: textblock
27203 #: ../fish/guestfish-actions.pod:2866
27204 msgid ""
27205 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27206 "is just a convenient wrapper around L</mknod>."
27207 msgstr ""
27208
27209 # type: =head2
27210 #. type: =head2
27211 #: ../fish/guestfish-actions.pod:2872
27212 msgid "mkfs"
27213 msgstr ""
27214
27215 # type: verbatim
27216 #. type: verbatim
27217 #: ../fish/guestfish-actions.pod:2874
27218 #, no-wrap
27219 msgid ""
27220 " mkfs fstype device\n"
27221 "\n"
27222 msgstr ""
27223
27224 # type: =head2
27225 #. type: =head2
27226 #: ../fish/guestfish-actions.pod:2880
27227 msgid "mkfs-b"
27228 msgstr ""
27229
27230 # type: verbatim
27231 #. type: verbatim
27232 #: ../fish/guestfish-actions.pod:2882
27233 #, no-wrap
27234 msgid ""
27235 " mkfs-b fstype blocksize device\n"
27236 "\n"
27237 msgstr ""
27238
27239 # type: textblock
27240 #. type: textblock
27241 #: ../fish/guestfish-actions.pod:2884
27242 msgid ""
27243 "This call is similar to L</mkfs>, but it allows you to control the block "
27244 "size of the resulting filesystem.  Supported block sizes depend on the "
27245 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27246 msgstr ""
27247
27248 # type: =head2
27249 #. type: =head2
27250 #: ../fish/guestfish-actions.pod:2899
27251 msgid "mkfs-opts"
27252 msgstr ""
27253
27254 #. type: verbatim
27255 #: ../fish/guestfish-actions.pod:2901
27256 #, no-wrap
27257 msgid ""
27258 " mkfs-opts fstype device [blocksize:..] [features:..]\n"
27259 "\n"
27260 msgstr ""
27261
27262 # type: =head2
27263 #. type: =head2
27264 #: ../fish/guestfish-actions.pod:2936
27265 msgid "mkmountpoint"
27266 msgstr ""
27267
27268 # type: verbatim
27269 #. type: verbatim
27270 #: ../fish/guestfish-actions.pod:2938
27271 #, no-wrap
27272 msgid ""
27273 " mkmountpoint exemptpath\n"
27274 "\n"
27275 msgstr ""
27276
27277 # type: textblock
27278 #. type: textblock
27279 #: ../fish/guestfish-actions.pod:2940
27280 msgid ""
27281 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
27282 "to create extra mountpoints before mounting the first filesystem."
27283 msgstr ""
27284
27285 # type: textblock
27286 #. type: textblock
27287 #: ../fish/guestfish-actions.pod:2964
27288 msgid ""
27289 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
27290 "unexpected errors if you try to mix these calls.  It is safest to manually "
27291 "unmount filesystems and remove mountpoints after use."
27292 msgstr ""
27293
27294 # type: textblock
27295 #. type: textblock
27296 #: ../fish/guestfish-actions.pod:2968
27297 msgid ""
27298 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
27299 "for this to work for manual mountpoints, you must ensure that the innermost "
27300 "mountpoints have the longest pathnames, as in the example code above."
27301 msgstr ""
27302
27303 #. type: textblock
27304 #: ../fish/guestfish-actions.pod:2975
27305 msgid ""
27306 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
27307 "L</umount-all> to be called when the handle is closed which can also trigger "
27308 "these issues."
27309 msgstr ""
27310
27311 # type: =head2
27312 #. type: =head2
27313 #: ../fish/guestfish-actions.pod:2979
27314 msgid "mknod"
27315 msgstr ""
27316
27317 # type: verbatim
27318 #. type: verbatim
27319 #: ../fish/guestfish-actions.pod:2981
27320 #, no-wrap
27321 msgid ""
27322 " mknod mode devmajor devminor path\n"
27323 "\n"
27324 msgstr ""
27325
27326 # type: textblock
27327 #. type: textblock
27328 #: ../fish/guestfish-actions.pod:2991
27329 msgid ""
27330 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27331 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27332 "regular file).  These constants are available in the standard Linux header "
27333 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
27334 "wrappers around this command which bitwise OR in the appropriate constant "
27335 "for you."
27336 msgstr ""
27337
27338 # type: =head2
27339 #. type: =head2
27340 #: ../fish/guestfish-actions.pod:3001
27341 msgid "mknod-b"
27342 msgstr ""
27343
27344 # type: verbatim
27345 #. type: verbatim
27346 #: ../fish/guestfish-actions.pod:3003
27347 #, no-wrap
27348 msgid ""
27349 " mknod-b mode devmajor devminor path\n"
27350 "\n"
27351 msgstr ""
27352
27353 # type: textblock
27354 #. type: textblock
27355 #: ../fish/guestfish-actions.pod:3005
27356 msgid ""
27357 "This call creates a block device node called C<path> with mode C<mode> and "
27358 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27359 "wrapper around L</mknod>."
27360 msgstr ""
27361
27362 # type: =head2
27363 #. type: =head2
27364 #: ../fish/guestfish-actions.pod:3011
27365 msgid "mknod-c"
27366 msgstr ""
27367
27368 # type: verbatim
27369 #. type: verbatim
27370 #: ../fish/guestfish-actions.pod:3013
27371 #, no-wrap
27372 msgid ""
27373 " mknod-c mode devmajor devminor path\n"
27374 "\n"
27375 msgstr ""
27376
27377 # type: textblock
27378 #. type: textblock
27379 #: ../fish/guestfish-actions.pod:3015
27380 msgid ""
27381 "This call creates a char device node called C<path> with mode C<mode> and "
27382 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27383 "wrapper around L</mknod>."
27384 msgstr ""
27385
27386 # type: =head2
27387 #. type: =head2
27388 #: ../fish/guestfish-actions.pod:3021
27389 msgid "mkswap"
27390 msgstr ""
27391
27392 # type: verbatim
27393 #. type: verbatim
27394 #: ../fish/guestfish-actions.pod:3023
27395 #, no-wrap
27396 msgid ""
27397 " mkswap device\n"
27398 "\n"
27399 msgstr ""
27400
27401 # type: =head2
27402 #. type: =head2
27403 #: ../fish/guestfish-actions.pod:3027
27404 msgid "mkswap-L"
27405 msgstr ""
27406
27407 # type: verbatim
27408 #. type: verbatim
27409 #: ../fish/guestfish-actions.pod:3029
27410 #, no-wrap
27411 msgid ""
27412 " mkswap-L label device\n"
27413 "\n"
27414 msgstr ""
27415
27416 # type: =head2
27417 #. type: =head2
27418 #: ../fish/guestfish-actions.pod:3037
27419 msgid "mkswap-U"
27420 msgstr ""
27421
27422 # type: verbatim
27423 #. type: verbatim
27424 #: ../fish/guestfish-actions.pod:3039
27425 #, no-wrap
27426 msgid ""
27427 " mkswap-U uuid device\n"
27428 "\n"
27429 msgstr ""
27430
27431 # type: =head2
27432 #. type: =head2
27433 #: ../fish/guestfish-actions.pod:3043
27434 msgid "mkswap-file"
27435 msgstr ""
27436
27437 # type: verbatim
27438 #. type: verbatim
27439 #: ../fish/guestfish-actions.pod:3045
27440 #, no-wrap
27441 msgid ""
27442 " mkswap-file path\n"
27443 "\n"
27444 msgstr ""
27445
27446 # type: textblock
27447 #. type: textblock
27448 #: ../fish/guestfish-actions.pod:3049
27449 msgid ""
27450 "This command just writes a swap file signature to an existing file.  To "
27451 "create the file itself, use something like L</fallocate>."
27452 msgstr ""
27453
27454 # type: =head2
27455 #. type: =head2
27456 #: ../fish/guestfish-actions.pod:3052
27457 msgid "modprobe"
27458 msgstr ""
27459
27460 # type: verbatim
27461 #. type: verbatim
27462 #: ../fish/guestfish-actions.pod:3054
27463 #, no-wrap
27464 msgid ""
27465 " modprobe modulename\n"
27466 "\n"
27467 msgstr ""
27468
27469 # type: =head2
27470 #. type: =head2
27471 #: ../fish/guestfish-actions.pod:3061
27472 msgid "mount"
27473 msgstr ""
27474
27475 # type: verbatim
27476 #. type: verbatim
27477 #: ../fish/guestfish-actions.pod:3063
27478 #, no-wrap
27479 msgid ""
27480 " mount device mountpoint\n"
27481 "\n"
27482 msgstr ""
27483
27484 # type: textblock
27485 #. type: textblock
27486 #: ../fish/guestfish-actions.pod:3079
27487 msgid ""
27488 "B<Important note:> When you use this call, the filesystem options C<sync> "
27489 "and C<noatime> are set implicitly.  This was originally done because we "
27490 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27491 "very large negative performance impact and negligible effect on "
27492 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
27493 "code that needs performance, and instead use L</mount-options> (use an empty "
27494 "string for the first parameter if you don't want any options)."
27495 msgstr ""
27496
27497 # type: =head2
27498 #. type: =head2
27499 #: ../fish/guestfish-actions.pod:3089
27500 msgid "mount-loop"
27501 msgstr ""
27502
27503 # type: verbatim
27504 #. type: verbatim
27505 #: ../fish/guestfish-actions.pod:3091
27506 #, no-wrap
27507 msgid ""
27508 " mount-loop file mountpoint\n"
27509 "\n"
27510 msgstr ""
27511
27512 # type: =head2
27513 #. type: =head2
27514 #: ../fish/guestfish-actions.pod:3097
27515 msgid "mount-options"
27516 msgstr ""
27517
27518 # type: verbatim
27519 #. type: verbatim
27520 #: ../fish/guestfish-actions.pod:3099
27521 #, no-wrap
27522 msgid ""
27523 " mount-options options device mountpoint\n"
27524 "\n"
27525 msgstr ""
27526
27527 # type: textblock
27528 #. type: textblock
27529 #: ../fish/guestfish-actions.pod:3101
27530 msgid ""
27531 "This is the same as the L</mount> command, but it allows you to set the "
27532 "mount options as for the L<mount(8)> I<-o> flag."
27533 msgstr ""
27534
27535 # type: =head2
27536 #. type: =head2
27537 #: ../fish/guestfish-actions.pod:3109
27538 msgid "mount-ro"
27539 msgstr ""
27540
27541 # type: verbatim
27542 #. type: verbatim
27543 #: ../fish/guestfish-actions.pod:3111
27544 #, no-wrap
27545 msgid ""
27546 " mount-ro device mountpoint\n"
27547 "\n"
27548 msgstr ""
27549
27550 # type: textblock
27551 #. type: textblock
27552 #: ../fish/guestfish-actions.pod:3113
27553 msgid ""
27554 "This is the same as the L</mount> command, but it mounts the filesystem with "
27555 "the read-only (I<-o ro>) flag."
27556 msgstr ""
27557
27558 # type: =head2
27559 #. type: =head2
27560 #: ../fish/guestfish-actions.pod:3116
27561 msgid "mount-vfs"
27562 msgstr ""
27563
27564 # type: verbatim
27565 #. type: verbatim
27566 #: ../fish/guestfish-actions.pod:3118
27567 #, no-wrap
27568 msgid ""
27569 " mount-vfs options vfstype device mountpoint\n"
27570 "\n"
27571 msgstr ""
27572
27573 # type: textblock
27574 #. type: textblock
27575 #: ../fish/guestfish-actions.pod:3120
27576 msgid ""
27577 "This is the same as the L</mount> command, but it allows you to set both the "
27578 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
27579 msgstr ""
27580
27581 # type: =head2
27582 #. type: =head2
27583 #: ../fish/guestfish-actions.pod:3124
27584 msgid "mountpoints"
27585 msgstr ""
27586
27587 # type: verbatim
27588 #. type: verbatim
27589 #: ../fish/guestfish-actions.pod:3126
27590 #, no-wrap
27591 msgid ""
27592 " mountpoints\n"
27593 "\n"
27594 msgstr ""
27595
27596 # type: textblock
27597 #. type: textblock
27598 #: ../fish/guestfish-actions.pod:3128
27599 msgid ""
27600 "This call is similar to L</mounts>.  That call returns a list of devices.  "
27601 "This one returns a hash table (map) of device name to directory where the "
27602 "device is mounted."
27603 msgstr ""
27604
27605 # type: =head2
27606 #. type: =head2
27607 #: ../fish/guestfish-actions.pod:3132
27608 msgid "mounts"
27609 msgstr ""
27610
27611 # type: verbatim
27612 #. type: verbatim
27613 #: ../fish/guestfish-actions.pod:3134
27614 #, no-wrap
27615 msgid ""
27616 " mounts\n"
27617 "\n"
27618 msgstr ""
27619
27620 # type: textblock
27621 #. type: textblock
27622 #: ../fish/guestfish-actions.pod:3141
27623 msgid "See also: L</mountpoints>"
27624 msgstr ""
27625
27626 # type: =head2
27627 #. type: =head2
27628 #: ../fish/guestfish-actions.pod:3143
27629 msgid "mv"
27630 msgstr ""
27631
27632 # type: verbatim
27633 #. type: verbatim
27634 #: ../fish/guestfish-actions.pod:3145
27635 #, no-wrap
27636 msgid ""
27637 " mv src dest\n"
27638 "\n"
27639 msgstr ""
27640
27641 # type: =head2
27642 #. type: =head2
27643 #: ../fish/guestfish-actions.pod:3150
27644 msgid "ntfs-3g-probe"
27645 msgstr ""
27646
27647 # type: verbatim
27648 #. type: verbatim
27649 #: ../fish/guestfish-actions.pod:3152
27650 #, no-wrap
27651 msgid ""
27652 " ntfs-3g-probe true|false device\n"
27653 "\n"
27654 msgstr ""
27655
27656 # type: =head2
27657 #. type: =head2
27658 #: ../fish/guestfish-actions.pod:3166
27659 msgid "ntfsresize"
27660 msgstr ""
27661
27662 # type: verbatim
27663 #. type: verbatim
27664 #: ../fish/guestfish-actions.pod:3168
27665 #, no-wrap
27666 msgid ""
27667 " ntfsresize device\n"
27668 "\n"
27669 msgstr ""
27670
27671 # type: =head2
27672 #. type: =head2
27673 #: ../fish/guestfish-actions.pod:3174
27674 msgid "ntfsresize-size"
27675 msgstr ""
27676
27677 # type: verbatim
27678 #. type: verbatim
27679 #: ../fish/guestfish-actions.pod:3176
27680 #, no-wrap
27681 msgid ""
27682 " ntfsresize-size device size\n"
27683 "\n"
27684 msgstr ""
27685
27686 # type: textblock
27687 #. type: textblock
27688 #: ../fish/guestfish-actions.pod:3178
27689 msgid ""
27690 "This command is the same as L</ntfsresize> except that it allows you to "
27691 "specify the new size (in bytes) explicitly."
27692 msgstr ""
27693
27694 # type: =head2
27695 #. type: =head2
27696 #: ../fish/guestfish-actions.pod:3181
27697 msgid "part-add"
27698 msgstr ""
27699
27700 # type: verbatim
27701 #. type: verbatim
27702 #: ../fish/guestfish-actions.pod:3183
27703 #, no-wrap
27704 msgid ""
27705 " part-add device prlogex startsect endsect\n"
27706 "\n"
27707 msgstr ""
27708
27709 # type: textblock
27710 #. type: textblock
27711 #: ../fish/guestfish-actions.pod:3185
27712 msgid ""
27713 "This command adds a partition to C<device>.  If there is no partition table "
27714 "on the device, call L</part-init> first."
27715 msgstr ""
27716
27717 # type: textblock
27718 #. type: textblock
27719 #: ../fish/guestfish-actions.pod:3197
27720 msgid ""
27721 "Creating a partition which covers the whole disk is not so easy.  Use L</"
27722 "part-disk> to do that."
27723 msgstr ""
27724
27725 # type: =head2
27726 #. type: =head2
27727 #: ../fish/guestfish-actions.pod:3200
27728 msgid "part-del"
27729 msgstr ""
27730
27731 # type: verbatim
27732 #. type: verbatim
27733 #: ../fish/guestfish-actions.pod:3202
27734 #, no-wrap
27735 msgid ""
27736 " part-del device partnum\n"
27737 "\n"
27738 msgstr ""
27739
27740 # type: =head2
27741 #. type: =head2
27742 #: ../fish/guestfish-actions.pod:3210
27743 msgid "part-disk"
27744 msgstr ""
27745
27746 # type: verbatim
27747 #. type: verbatim
27748 #: ../fish/guestfish-actions.pod:3212
27749 #, no-wrap
27750 msgid ""
27751 " part-disk device parttype\n"
27752 "\n"
27753 msgstr ""
27754
27755 # type: textblock
27756 #. type: textblock
27757 #: ../fish/guestfish-actions.pod:3214
27758 msgid ""
27759 "This command is simply a combination of L</part-init> followed by L</part-"
27760 "add> to create a single primary partition covering the whole disk."
27761 msgstr ""
27762
27763 # type: textblock
27764 #. type: textblock
27765 #: ../fish/guestfish-actions.pod:3218
27766 msgid ""
27767 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27768 "possible values are described in L</part-init>."
27769 msgstr ""
27770
27771 # type: =head2
27772 #. type: =head2
27773 #: ../fish/guestfish-actions.pod:3224
27774 msgid "part-get-bootable"
27775 msgstr ""
27776
27777 # type: verbatim
27778 #. type: verbatim
27779 #: ../fish/guestfish-actions.pod:3226
27780 #, no-wrap
27781 msgid ""
27782 " part-get-bootable device partnum\n"
27783 "\n"
27784 msgstr ""
27785
27786 # type: textblock
27787 #. type: textblock
27788 #: ../fish/guestfish-actions.pod:3231
27789 msgid "See also L</part-set-bootable>."
27790 msgstr ""
27791
27792 # type: =head2
27793 #. type: =head2
27794 #: ../fish/guestfish-actions.pod:3233
27795 msgid "part-get-mbr-id"
27796 msgstr ""
27797
27798 # type: verbatim
27799 #. type: verbatim
27800 #: ../fish/guestfish-actions.pod:3235
27801 #, no-wrap
27802 msgid ""
27803 " part-get-mbr-id device partnum\n"
27804 "\n"
27805 msgstr ""
27806
27807 # type: textblock
27808 #. type: textblock
27809 #: ../fish/guestfish-actions.pod:3240 ../fish/guestfish-actions.pod:3378
27810 msgid ""
27811 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27812 "undefined results for other partition table types (see L</part-get-"
27813 "parttype>)."
27814 msgstr ""
27815
27816 # type: =head2
27817 #. type: =head2
27818 #: ../fish/guestfish-actions.pod:3244
27819 msgid "part-get-parttype"
27820 msgstr ""
27821
27822 # type: verbatim
27823 #. type: verbatim
27824 #: ../fish/guestfish-actions.pod:3246
27825 #, no-wrap
27826 msgid ""
27827 " part-get-parttype device\n"
27828 "\n"
27829 msgstr ""
27830
27831 # type: textblock
27832 #. type: textblock
27833 #: ../fish/guestfish-actions.pod:3251
27834 msgid ""
27835 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27836 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27837 "possible, although unusual.  See L</part-init> for a full list."
27838 msgstr ""
27839
27840 # type: =head2
27841 #. type: =head2
27842 #: ../fish/guestfish-actions.pod:3256
27843 msgid "part-init"
27844 msgstr ""
27845
27846 # type: verbatim
27847 #. type: verbatim
27848 #: ../fish/guestfish-actions.pod:3258
27849 #, no-wrap
27850 msgid ""
27851 " part-init device parttype\n"
27852 "\n"
27853 msgstr ""
27854
27855 # type: textblock
27856 #. type: textblock
27857 #: ../fish/guestfish-actions.pod:3264
27858 msgid ""
27859 "Initially there are no partitions.  Following this, you should call L</part-"
27860 "add> for each partition required."
27861 msgstr ""
27862
27863 # type: =head2
27864 #. type: =head2
27865 #: ../fish/guestfish-actions.pod:3327
27866 msgid "part-list"
27867 msgstr ""
27868
27869 # type: verbatim
27870 #. type: verbatim
27871 #: ../fish/guestfish-actions.pod:3329
27872 #, no-wrap
27873 msgid ""
27874 " part-list device\n"
27875 "\n"
27876 msgstr ""
27877
27878 # type: textblock
27879 #. type: textblock
27880 #: ../fish/guestfish-actions.pod:3344
27881 msgid ""
27882 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27883 "the device's sector size, see L</blockdev-getss>."
27884 msgstr ""
27885
27886 # type: =head2
27887 #. type: =head2
27888 #: ../fish/guestfish-actions.pod:3357
27889 msgid "part-set-bootable"
27890 msgstr ""
27891
27892 # type: verbatim
27893 #. type: verbatim
27894 #: ../fish/guestfish-actions.pod:3359
27895 #, no-wrap
27896 msgid ""
27897 " part-set-bootable device partnum true|false\n"
27898 "\n"
27899 msgstr ""
27900
27901 # type: =head2
27902 #. type: =head2
27903 #: ../fish/guestfish-actions.pod:3368
27904 msgid "part-set-mbr-id"
27905 msgstr ""
27906
27907 # type: verbatim
27908 #. type: verbatim
27909 #: ../fish/guestfish-actions.pod:3370
27910 #, no-wrap
27911 msgid ""
27912 " part-set-mbr-id device partnum idbyte\n"
27913 "\n"
27914 msgstr ""
27915
27916 # type: =head2
27917 #. type: =head2
27918 #: ../fish/guestfish-actions.pod:3382
27919 msgid "part-set-name"
27920 msgstr ""
27921
27922 # type: verbatim
27923 #. type: verbatim
27924 #: ../fish/guestfish-actions.pod:3384
27925 #, no-wrap
27926 msgid ""
27927 " part-set-name device partnum name\n"
27928 "\n"
27929 msgstr ""
27930
27931 # type: =head2
27932 #. type: =head2
27933 #: ../fish/guestfish-actions.pod:3392
27934 msgid "part-to-dev"
27935 msgstr ""
27936
27937 # type: verbatim
27938 #. type: verbatim
27939 #: ../fish/guestfish-actions.pod:3394
27940 #, no-wrap
27941 msgid ""
27942 " part-to-dev partition\n"
27943 "\n"
27944 msgstr ""
27945
27946 # type: textblock
27947 #. type: textblock
27948 #: ../fish/guestfish-actions.pod:3400
27949 msgid ""
27950 "The named partition must exist, for example as a string returned from L</"
27951 "list-partitions>."
27952 msgstr ""
27953
27954 # type: =head2
27955 #. type: =head2
27956 #: ../fish/guestfish-actions.pod:3403
27957 msgid "ping-daemon"
27958 msgstr ""
27959
27960 # type: verbatim
27961 #. type: verbatim
27962 #: ../fish/guestfish-actions.pod:3405
27963 #, no-wrap
27964 msgid ""
27965 " ping-daemon\n"
27966 "\n"
27967 msgstr ""
27968
27969 # type: =head2
27970 #. type: =head2
27971 #: ../fish/guestfish-actions.pod:3412
27972 msgid "pread"
27973 msgstr ""
27974
27975 # type: verbatim
27976 #. type: verbatim
27977 #: ../fish/guestfish-actions.pod:3414
27978 #, no-wrap
27979 msgid ""
27980 " pread path count offset\n"
27981 "\n"
27982 msgstr ""
27983
27984 # type: textblock
27985 #. type: textblock
27986 #: ../fish/guestfish-actions.pod:3422
27987 msgid "See also L</pwrite>, L</pread-device>."
27988 msgstr ""
27989
27990 # type: =head2
27991 #. type: =head2
27992 #: ../fish/guestfish-actions.pod:3427
27993 msgid "pread-device"
27994 msgstr ""
27995
27996 # type: verbatim
27997 #. type: verbatim
27998 #: ../fish/guestfish-actions.pod:3429
27999 #, no-wrap
28000 msgid ""
28001 " pread-device device count offset\n"
28002 "\n"
28003 msgstr ""
28004
28005 # type: textblock
28006 #. type: textblock
28007 #: ../fish/guestfish-actions.pod:3437
28008 msgid "See also L</pread>."
28009 msgstr ""
28010
28011 # type: =head2
28012 #. type: =head2
28013 #: ../fish/guestfish-actions.pod:3442
28014 msgid "pvcreate"
28015 msgstr ""
28016
28017 # type: verbatim
28018 #. type: verbatim
28019 #: ../fish/guestfish-actions.pod:3444
28020 #, no-wrap
28021 msgid ""
28022 " pvcreate device\n"
28023 "\n"
28024 msgstr ""
28025
28026 # type: =head2
28027 #. type: =head2
28028 #: ../fish/guestfish-actions.pod:3450
28029 msgid "pvremove"
28030 msgstr ""
28031
28032 # type: verbatim
28033 #. type: verbatim
28034 #: ../fish/guestfish-actions.pod:3452
28035 #, no-wrap
28036 msgid ""
28037 " pvremove device\n"
28038 "\n"
28039 msgstr ""
28040
28041 # type: =head2
28042 #. type: =head2
28043 #: ../fish/guestfish-actions.pod:3461
28044 msgid "pvresize"
28045 msgstr ""
28046
28047 # type: verbatim
28048 #. type: verbatim
28049 #: ../fish/guestfish-actions.pod:3463
28050 #, no-wrap
28051 msgid ""
28052 " pvresize device\n"
28053 "\n"
28054 msgstr ""
28055
28056 # type: =head2
28057 #. type: =head2
28058 #: ../fish/guestfish-actions.pod:3468
28059 msgid "pvresize-size"
28060 msgstr ""
28061
28062 # type: verbatim
28063 #. type: verbatim
28064 #: ../fish/guestfish-actions.pod:3470
28065 #, no-wrap
28066 msgid ""
28067 " pvresize-size device size\n"
28068 "\n"
28069 msgstr ""
28070
28071 # type: textblock
28072 #. type: textblock
28073 #: ../fish/guestfish-actions.pod:3472
28074 msgid ""
28075 "This command is the same as L</pvresize> except that it allows you to "
28076 "specify the new size (in bytes) explicitly."
28077 msgstr ""
28078
28079 # type: =head2
28080 #. type: =head2
28081 #: ../fish/guestfish-actions.pod:3475
28082 msgid "pvs"
28083 msgstr ""
28084
28085 # type: verbatim
28086 #. type: verbatim
28087 #: ../fish/guestfish-actions.pod:3477
28088 #, no-wrap
28089 msgid ""
28090 " pvs\n"
28091 "\n"
28092 msgstr ""
28093
28094 # type: textblock
28095 #. type: textblock
28096 #: ../fish/guestfish-actions.pod:3485
28097 msgid "See also L</pvs-full>."
28098 msgstr ""
28099
28100 # type: =head2
28101 #. type: =head2
28102 #: ../fish/guestfish-actions.pod:3487
28103 msgid "pvs-full"
28104 msgstr ""
28105
28106 # type: verbatim
28107 #. type: verbatim
28108 #: ../fish/guestfish-actions.pod:3489
28109 #, no-wrap
28110 msgid ""
28111 " pvs-full\n"
28112 "\n"
28113 msgstr ""
28114
28115 # type: =head2
28116 #. type: =head2
28117 #: ../fish/guestfish-actions.pod:3494
28118 msgid "pvuuid"
28119 msgstr ""
28120
28121 # type: verbatim
28122 #. type: verbatim
28123 #: ../fish/guestfish-actions.pod:3496
28124 #, no-wrap
28125 msgid ""
28126 " pvuuid device\n"
28127 "\n"
28128 msgstr ""
28129
28130 # type: =head2
28131 #. type: =head2
28132 #: ../fish/guestfish-actions.pod:3500
28133 msgid "pwrite"
28134 msgstr ""
28135
28136 # type: verbatim
28137 #. type: verbatim
28138 #: ../fish/guestfish-actions.pod:3502
28139 #, no-wrap
28140 msgid ""
28141 " pwrite path content offset\n"
28142 "\n"
28143 msgstr ""
28144
28145 # type: textblock
28146 #. type: textblock
28147 #: ../fish/guestfish-actions.pod:3513
28148 msgid "See also L</pread>, L</pwrite-device>."
28149 msgstr ""
28150
28151 # type: =head2
28152 #. type: =head2
28153 #: ../fish/guestfish-actions.pod:3518
28154 msgid "pwrite-device"
28155 msgstr ""
28156
28157 # type: verbatim
28158 #. type: verbatim
28159 #: ../fish/guestfish-actions.pod:3520
28160 #, no-wrap
28161 msgid ""
28162 " pwrite-device device content offset\n"
28163 "\n"
28164 msgstr ""
28165
28166 # type: textblock
28167 #. type: textblock
28168 #: ../fish/guestfish-actions.pod:3530
28169 msgid "See also L</pwrite>."
28170 msgstr ""
28171
28172 # type: =head2
28173 #. type: =head2
28174 #: ../fish/guestfish-actions.pod:3535
28175 msgid "read-file"
28176 msgstr ""
28177
28178 # type: verbatim
28179 #. type: verbatim
28180 #: ../fish/guestfish-actions.pod:3537
28181 #, no-wrap
28182 msgid ""
28183 " read-file path\n"
28184 "\n"
28185 msgstr ""
28186
28187 # type: textblock
28188 #. type: textblock
28189 #: ../fish/guestfish-actions.pod:3542
28190 msgid ""
28191 "Unlike L</cat>, this function can correctly handle files that contain "
28192 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28193 "is limited in the total size of file that can be handled."
28194 msgstr ""
28195
28196 # type: =head2
28197 #. type: =head2
28198 #: ../fish/guestfish-actions.pod:3550
28199 msgid "read-lines"
28200 msgstr ""
28201
28202 # type: verbatim
28203 #. type: verbatim
28204 #: ../fish/guestfish-actions.pod:3552
28205 #, no-wrap
28206 msgid ""
28207 " read-lines path\n"
28208 "\n"
28209 msgstr ""
28210
28211 # type: textblock
28212 #. type: textblock
28213 #: ../fish/guestfish-actions.pod:3559
28214 msgid ""
28215 "Note that this function cannot correctly handle binary files (specifically, "
28216 "files containing C<\\0> character which is treated as end of line).  For "
28217 "those you need to use the L</read-file> function which has a more complex "
28218 "interface."
28219 msgstr ""
28220
28221 # type: =head2
28222 #. type: =head2
28223 #: ../fish/guestfish-actions.pod:3564
28224 msgid "readdir"
28225 msgstr ""
28226
28227 # type: verbatim
28228 #. type: verbatim
28229 #: ../fish/guestfish-actions.pod:3566
28230 #, no-wrap
28231 msgid ""
28232 " readdir dir\n"
28233 "\n"
28234 msgstr ""
28235
28236 # type: textblock
28237 #. type: textblock
28238 #: ../fish/guestfish-actions.pod:3618
28239 msgid ""
28240 "This function is primarily intended for use by programs.  To get a simple "
28241 "list of names, use L</ls>.  To get a printable directory for human "
28242 "consumption, use L</ll>."
28243 msgstr ""
28244
28245 # type: =head2
28246 #. type: =head2
28247 #: ../fish/guestfish-actions.pod:3622
28248 msgid "readlink"
28249 msgstr ""
28250
28251 # type: verbatim
28252 #. type: verbatim
28253 #: ../fish/guestfish-actions.pod:3624
28254 #, no-wrap
28255 msgid ""
28256 " readlink path\n"
28257 "\n"
28258 msgstr ""
28259
28260 # type: =head2
28261 #. type: =head2
28262 #: ../fish/guestfish-actions.pod:3628
28263 msgid "readlinklist"
28264 msgstr ""
28265
28266 # type: verbatim
28267 #. type: verbatim
28268 #: ../fish/guestfish-actions.pod:3630
28269 #, no-wrap
28270 msgid ""
28271 " readlinklist path 'names ...'\n"
28272 "\n"
28273 msgstr ""
28274
28275 # type: =head2
28276 #. type: =head2
28277 #: ../fish/guestfish-actions.pod:3654
28278 msgid "realpath"
28279 msgstr ""
28280
28281 # type: verbatim
28282 #. type: verbatim
28283 #: ../fish/guestfish-actions.pod:3656
28284 #, no-wrap
28285 msgid ""
28286 " realpath path\n"
28287 "\n"
28288 msgstr ""
28289
28290 # type: =head2
28291 #. type: =head2
28292 #: ../fish/guestfish-actions.pod:3661
28293 msgid "removexattr"
28294 msgstr ""
28295
28296 # type: verbatim
28297 #. type: verbatim
28298 #: ../fish/guestfish-actions.pod:3663
28299 #, no-wrap
28300 msgid ""
28301 " removexattr xattr path\n"
28302 "\n"
28303 msgstr ""
28304
28305 # type: textblock
28306 #. type: textblock
28307 #: ../fish/guestfish-actions.pod:3668
28308 msgid "See also: L</lremovexattr>, L<attr(5)>."
28309 msgstr ""
28310
28311 # type: =head2
28312 #. type: =head2
28313 #: ../fish/guestfish-actions.pod:3670
28314 msgid "resize2fs"
28315 msgstr ""
28316
28317 # type: verbatim
28318 #. type: verbatim
28319 #: ../fish/guestfish-actions.pod:3672
28320 #, no-wrap
28321 msgid ""
28322 " resize2fs device\n"
28323 "\n"
28324 msgstr ""
28325
28326 # type: textblock
28327 #. type: textblock
28328 #: ../fish/guestfish-actions.pod:3677
28329 msgid ""
28330 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
28331 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
28332 "gives an error about this and sometimes not.  In any case, it is always safe "
28333 "to call L</e2fsck-f> before calling this function."
28334 msgstr ""
28335
28336 #. type: =head2
28337 #: ../fish/guestfish-actions.pod:3683
28338 msgid "resize2fs-M"
28339 msgstr ""
28340
28341 #. type: verbatim
28342 #: ../fish/guestfish-actions.pod:3685
28343 #, no-wrap
28344 msgid ""
28345 " resize2fs-M device\n"
28346 "\n"
28347 msgstr ""
28348
28349 #. type: textblock
28350 #: ../fish/guestfish-actions.pod:3687
28351 msgid ""
28352 "This command is the same as L</resize2fs>, but the filesystem is resized to "
28353 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
28354 "command."
28355 msgstr ""
28356
28357 #. type: textblock
28358 #: ../fish/guestfish-actions.pod:3691
28359 msgid ""
28360 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
28361 "and read the C<Block size> and C<Block count> values.  These two numbers, "
28362 "multiplied together, give the resulting size of the minimal filesystem in "
28363 "bytes."
28364 msgstr ""
28365
28366 # type: =head2
28367 #. type: =head2
28368 #: ../fish/guestfish-actions.pod:3696
28369 msgid "resize2fs-size"
28370 msgstr ""
28371
28372 # type: verbatim
28373 #. type: verbatim
28374 #: ../fish/guestfish-actions.pod:3698
28375 #, no-wrap
28376 msgid ""
28377 " resize2fs-size device size\n"
28378 "\n"
28379 msgstr ""
28380
28381 # type: textblock
28382 #. type: textblock
28383 #: ../fish/guestfish-actions.pod:3700
28384 msgid ""
28385 "This command is the same as L</resize2fs> except that it allows you to "
28386 "specify the new size (in bytes) explicitly."
28387 msgstr ""
28388
28389 # type: =head2
28390 #. type: =head2
28391 #: ../fish/guestfish-actions.pod:3703
28392 msgid "rm"
28393 msgstr ""
28394
28395 # type: verbatim
28396 #. type: verbatim
28397 #: ../fish/guestfish-actions.pod:3705
28398 #, no-wrap
28399 msgid ""
28400 " rm path\n"
28401 "\n"
28402 msgstr ""
28403
28404 # type: =head2
28405 #. type: =head2
28406 #: ../fish/guestfish-actions.pod:3709
28407 msgid "rm-rf"
28408 msgstr ""
28409
28410 # type: verbatim
28411 #. type: verbatim
28412 #: ../fish/guestfish-actions.pod:3711
28413 #, no-wrap
28414 msgid ""
28415 " rm-rf path\n"
28416 "\n"
28417 msgstr ""
28418
28419 # type: =head2
28420 #. type: =head2
28421 #: ../fish/guestfish-actions.pod:3717
28422 msgid "rmdir"
28423 msgstr ""
28424
28425 # type: verbatim
28426 #. type: verbatim
28427 #: ../fish/guestfish-actions.pod:3719
28428 #, no-wrap
28429 msgid ""
28430 " rmdir path\n"
28431 "\n"
28432 msgstr ""
28433
28434 # type: =head2
28435 #. type: =head2
28436 #: ../fish/guestfish-actions.pod:3723
28437 msgid "rmmountpoint"
28438 msgstr ""
28439
28440 # type: verbatim
28441 #. type: verbatim
28442 #: ../fish/guestfish-actions.pod:3725
28443 #, no-wrap
28444 msgid ""
28445 " rmmountpoint exemptpath\n"
28446 "\n"
28447 msgstr ""
28448
28449 # type: textblock
28450 #. type: textblock
28451 #: ../fish/guestfish-actions.pod:3727
28452 msgid ""
28453 "This calls removes a mountpoint that was previously created with L</"
28454 "mkmountpoint>.  See L</mkmountpoint> for full details."
28455 msgstr ""
28456
28457 # type: =head2
28458 #. type: =head2
28459 #: ../fish/guestfish-actions.pod:3731
28460 msgid "scrub-device"
28461 msgstr ""
28462
28463 # type: verbatim
28464 #. type: verbatim
28465 #: ../fish/guestfish-actions.pod:3733
28466 #, no-wrap
28467 msgid ""
28468 " scrub-device device\n"
28469 "\n"
28470 msgstr ""
28471
28472 # type: =head2
28473 #. type: =head2
28474 #: ../fish/guestfish-actions.pod:3744
28475 msgid "scrub-file"
28476 msgstr ""
28477
28478 # type: verbatim
28479 #. type: verbatim
28480 #: ../fish/guestfish-actions.pod:3746
28481 #, no-wrap
28482 msgid ""
28483 " scrub-file file\n"
28484 "\n"
28485 msgstr ""
28486
28487 # type: =head2
28488 #. type: =head2
28489 #: ../fish/guestfish-actions.pod:3756
28490 msgid "scrub-freespace"
28491 msgstr ""
28492
28493 # type: verbatim
28494 #. type: verbatim
28495 #: ../fish/guestfish-actions.pod:3758
28496 #, no-wrap
28497 msgid ""
28498 " scrub-freespace dir\n"
28499 "\n"
28500 msgstr ""
28501
28502 # type: textblock
28503 #. type: textblock
28504 #: ../fish/guestfish-actions.pod:3760
28505 msgid ""
28506 "This command creates the directory C<dir> and then fills it with files until "
28507 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
28508 "deletes them.  The intention is to scrub any free space on the partition "
28509 "containing C<dir>."
28510 msgstr ""
28511
28512 # type: =head2
28513 #. type: =head2
28514 #: ../fish/guestfish-actions.pod:3769
28515 msgid "set-append"
28516 msgstr ""
28517
28518 # type: =head2
28519 #. type: =head2
28520 #: ../fish/guestfish-actions.pod:3771
28521 msgid "append"
28522 msgstr ""
28523
28524 # type: verbatim
28525 #. type: verbatim
28526 #: ../fish/guestfish-actions.pod:3773
28527 #, no-wrap
28528 msgid ""
28529 " set-append append\n"
28530 "\n"
28531 msgstr ""
28532
28533 # type: =head2
28534 #. type: =head2
28535 #: ../fish/guestfish-actions.pod:3784
28536 msgid "set-autosync"
28537 msgstr ""
28538
28539 # type: =head2
28540 #. type: =head2
28541 #: ../fish/guestfish-actions.pod:3786
28542 msgid "autosync"
28543 msgstr ""
28544
28545 # type: verbatim
28546 #. type: verbatim
28547 #: ../fish/guestfish-actions.pod:3788
28548 #, no-wrap
28549 msgid ""
28550 " set-autosync true|false\n"
28551 "\n"
28552 msgstr ""
28553
28554 # type: =head2
28555 #. type: =head2
28556 #: ../fish/guestfish-actions.pod:3798
28557 msgid "set-direct"
28558 msgstr ""
28559
28560 # type: =head2
28561 #. type: =head2
28562 #: ../fish/guestfish-actions.pod:3800
28563 msgid "direct"
28564 msgstr ""
28565
28566 # type: verbatim
28567 #. type: verbatim
28568 #: ../fish/guestfish-actions.pod:3802
28569 #, no-wrap
28570 msgid ""
28571 " set-direct true|false\n"
28572 "\n"
28573 msgstr ""
28574
28575 # type: textblock
28576 #. type: textblock
28577 #: ../fish/guestfish-actions.pod:3808
28578 msgid ""
28579 "One consequence of this is that log messages aren't caught by the library "
28580 "and handled by L</set-log-message-callback>, but go straight to stdout."
28581 msgstr ""
28582
28583 # type: =head2
28584 #. type: =head2
28585 #: ../fish/guestfish-actions.pod:3817
28586 msgid "set-e2label"
28587 msgstr ""
28588
28589 # type: verbatim
28590 #. type: verbatim
28591 #: ../fish/guestfish-actions.pod:3819
28592 #, no-wrap
28593 msgid ""
28594 " set-e2label device label\n"
28595 "\n"
28596 msgstr ""
28597
28598 # type: textblock
28599 #. type: textblock
28600 #: ../fish/guestfish-actions.pod:3825
28601 msgid ""
28602 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
28603 "label on a filesystem."
28604 msgstr ""
28605
28606 # type: =head2
28607 #. type: =head2
28608 #: ../fish/guestfish-actions.pod:3828
28609 msgid "set-e2uuid"
28610 msgstr ""
28611
28612 # type: verbatim
28613 #. type: verbatim
28614 #: ../fish/guestfish-actions.pod:3830
28615 #, no-wrap
28616 msgid ""
28617 " set-e2uuid device uuid\n"
28618 "\n"
28619 msgstr ""
28620
28621 # type: textblock
28622 #. type: textblock
28623 #: ../fish/guestfish-actions.pod:3837
28624 msgid ""
28625 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
28626 "UUID of a filesystem."
28627 msgstr ""
28628
28629 # type: =head2
28630 #. type: =head2
28631 #: ../fish/guestfish-actions.pod:3840
28632 msgid "set-memsize"
28633 msgstr ""
28634
28635 # type: =head2
28636 #. type: =head2
28637 #: ../fish/guestfish-actions.pod:3842
28638 msgid "memsize"
28639 msgstr ""
28640
28641 # type: verbatim
28642 #. type: verbatim
28643 #: ../fish/guestfish-actions.pod:3844
28644 #, no-wrap
28645 msgid ""
28646 " set-memsize memsize\n"
28647 "\n"
28648 msgstr ""
28649
28650 # type: textblock
28651 #. type: textblock
28652 #: ../fish/guestfish-actions.pod:3846
28653 msgid ""
28654 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28655 "This only has any effect if called before L</launch>."
28656 msgstr ""
28657
28658 # type: =head2
28659 #. type: =head2
28660 #: ../fish/guestfish-actions.pod:3857
28661 msgid "set-network"
28662 msgstr ""
28663
28664 # type: =head2
28665 #. type: =head2
28666 #: ../fish/guestfish-actions.pod:3859
28667 msgid "network"
28668 msgstr ""
28669
28670 # type: verbatim
28671 #. type: verbatim
28672 #: ../fish/guestfish-actions.pod:3861
28673 #, no-wrap
28674 msgid ""
28675 " set-network true|false\n"
28676 "\n"
28677 msgstr ""
28678
28679 # type: textblock
28680 #. type: textblock
28681 #: ../fish/guestfish-actions.pod:3869
28682 msgid ""
28683 "You must call this before calling L</launch>, otherwise it has no effect."
28684 msgstr ""
28685
28686 # type: =head2
28687 #. type: =head2
28688 #: ../fish/guestfish-actions.pod:3872
28689 msgid "set-path"
28690 msgstr ""
28691
28692 # type: =head2
28693 #. type: =head2
28694 #: ../fish/guestfish-actions.pod:3874
28695 msgid "path"
28696 msgstr ""
28697
28698 # type: verbatim
28699 #. type: verbatim
28700 #: ../fish/guestfish-actions.pod:3876
28701 #, no-wrap
28702 msgid ""
28703 " set-path searchpath\n"
28704 "\n"
28705 msgstr ""
28706
28707 # type: =head2
28708 #. type: =head2
28709 #: ../fish/guestfish-actions.pod:3885
28710 msgid "set-qemu"
28711 msgstr ""
28712
28713 # type: =head2
28714 #. type: =head2
28715 #: ../fish/guestfish-actions.pod:3887
28716 msgid "qemu"
28717 msgstr ""
28718
28719 # type: verbatim
28720 #. type: verbatim
28721 #: ../fish/guestfish-actions.pod:3889
28722 #, no-wrap
28723 msgid ""
28724 " set-qemu qemu\n"
28725 "\n"
28726 msgstr ""
28727
28728 # type: =head2
28729 #. type: =head2
28730 #: ../fish/guestfish-actions.pod:3909
28731 msgid "set-recovery-proc"
28732 msgstr ""
28733
28734 # type: =head2
28735 #. type: =head2
28736 #: ../fish/guestfish-actions.pod:3911
28737 msgid "recovery-proc"
28738 msgstr ""
28739
28740 # type: verbatim
28741 #. type: verbatim
28742 #: ../fish/guestfish-actions.pod:3913
28743 #, no-wrap
28744 msgid ""
28745 " set-recovery-proc true|false\n"
28746 "\n"
28747 msgstr ""
28748
28749 # type: textblock
28750 #. type: textblock
28751 #: ../fish/guestfish-actions.pod:3915
28752 msgid ""
28753 "If this is called with the parameter C<false> then L</launch> does not "
28754 "create a recovery process.  The purpose of the recovery process is to stop "
28755 "runaway qemu processes in the case where the main program aborts abruptly."
28756 msgstr ""
28757
28758 # type: textblock
28759 #. type: textblock
28760 #: ../fish/guestfish-actions.pod:3920
28761 msgid ""
28762 "This only has any effect if called before L</launch>, and the default is "
28763 "true."
28764 msgstr ""
28765
28766 # type: =head2
28767 #. type: =head2
28768 #: ../fish/guestfish-actions.pod:3929
28769 msgid "set-selinux"
28770 msgstr ""
28771
28772 # type: =head2
28773 #. type: =head2
28774 #: ../fish/guestfish-actions.pod:3931
28775 msgid "selinux"
28776 msgstr ""
28777
28778 # type: verbatim
28779 #. type: verbatim
28780 #: ../fish/guestfish-actions.pod:3933
28781 #, no-wrap
28782 msgid ""
28783 " set-selinux true|false\n"
28784 "\n"
28785 msgstr ""
28786
28787 # type: =head2
28788 #. type: =head2
28789 #: ../fish/guestfish-actions.pod:3944
28790 msgid "set-trace"
28791 msgstr ""
28792
28793 # type: =head2
28794 #. type: =head2
28795 #: ../fish/guestfish-actions.pod:3946
28796 msgid "trace"
28797 msgstr ""
28798
28799 # type: verbatim
28800 #. type: verbatim
28801 #: ../fish/guestfish-actions.pod:3948
28802 #, no-wrap
28803 msgid ""
28804 " set-trace true|false\n"
28805 "\n"
28806 msgstr ""
28807
28808 # type: =head2
28809 #. type: =head2
28810 #: ../fish/guestfish-actions.pod:3964
28811 msgid "set-verbose"
28812 msgstr ""
28813
28814 # type: =head2
28815 #. type: =head2
28816 #: ../fish/guestfish-actions.pod:3966
28817 msgid "verbose"
28818 msgstr ""
28819
28820 # type: verbatim
28821 #. type: verbatim
28822 #: ../fish/guestfish-actions.pod:3968
28823 #, no-wrap
28824 msgid ""
28825 " set-verbose true|false\n"
28826 "\n"
28827 msgstr ""
28828
28829 # type: =head2
28830 #. type: =head2
28831 #: ../fish/guestfish-actions.pod:3975
28832 msgid "setcon"
28833 msgstr ""
28834
28835 # type: verbatim
28836 #. type: verbatim
28837 #: ../fish/guestfish-actions.pod:3977
28838 #, no-wrap
28839 msgid ""
28840 " setcon context\n"
28841 "\n"
28842 msgstr ""
28843
28844 # type: =head2
28845 #. type: =head2
28846 #: ../fish/guestfish-actions.pod:3984
28847 msgid "setxattr"
28848 msgstr ""
28849
28850 # type: verbatim
28851 #. type: verbatim
28852 #: ../fish/guestfish-actions.pod:3986
28853 #, no-wrap
28854 msgid ""
28855 " setxattr xattr val vallen path\n"
28856 "\n"
28857 msgstr ""
28858
28859 # type: textblock
28860 #. type: textblock
28861 #: ../fish/guestfish-actions.pod:3992
28862 msgid "See also: L</lsetxattr>, L<attr(5)>."
28863 msgstr ""
28864
28865 # type: =head2
28866 #. type: =head2
28867 #: ../fish/guestfish-actions.pod:3994
28868 msgid "sfdisk"
28869 msgstr ""
28870
28871 # type: verbatim
28872 #. type: verbatim
28873 #: ../fish/guestfish-actions.pod:3996
28874 #, no-wrap
28875 msgid ""
28876 " sfdisk device cyls heads sectors 'lines ...'\n"
28877 "\n"
28878 msgstr ""
28879
28880 # type: textblock
28881 #. type: textblock
28882 #: ../fish/guestfish-actions.pod:4018
28883 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
28884 msgstr ""
28885
28886 # type: =head2
28887 #. type: =head2
28888 #: ../fish/guestfish-actions.pod:4024
28889 msgid "sfdiskM"
28890 msgstr ""
28891
28892 # type: verbatim
28893 #. type: verbatim
28894 #: ../fish/guestfish-actions.pod:4026
28895 #, no-wrap
28896 msgid ""
28897 " sfdiskM device 'lines ...'\n"
28898 "\n"
28899 msgstr ""
28900
28901 # type: textblock
28902 #. type: textblock
28903 #: ../fish/guestfish-actions.pod:4028
28904 msgid ""
28905 "This is a simplified interface to the L</sfdisk> command, where partition "
28906 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
28907 "you don't need to specify the cyls, heads and sectors parameters which were "
28908 "rarely if ever used anyway."
28909 msgstr ""
28910
28911 # type: textblock
28912 #. type: textblock
28913 #: ../fish/guestfish-actions.pod:4034
28914 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
28915 msgstr ""
28916
28917 # type: =head2
28918 #. type: =head2
28919 #: ../fish/guestfish-actions.pod:4040
28920 msgid "sfdisk-N"
28921 msgstr ""
28922
28923 # type: verbatim
28924 #. type: verbatim
28925 #: ../fish/guestfish-actions.pod:4042
28926 #, no-wrap
28927 msgid ""
28928 " sfdisk-N device partnum cyls heads sectors line\n"
28929 "\n"
28930 msgstr ""
28931
28932 # type: textblock
28933 #. type: textblock
28934 #: ../fish/guestfish-actions.pod:4047
28935 msgid ""
28936 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
28937 "cyls/heads/sectors parameters."
28938 msgstr ""
28939
28940 # type: textblock
28941 #. type: textblock
28942 #: ../fish/guestfish-actions.pod:4050
28943 msgid "See also: L</part-add>"
28944 msgstr ""
28945
28946 # type: =head2
28947 #. type: =head2
28948 #: ../fish/guestfish-actions.pod:4055
28949 msgid "sfdisk-disk-geometry"
28950 msgstr ""
28951
28952 # type: verbatim
28953 #. type: verbatim
28954 #: ../fish/guestfish-actions.pod:4057
28955 #, no-wrap
28956 msgid ""
28957 " sfdisk-disk-geometry device\n"
28958 "\n"
28959 msgstr ""
28960
28961 # type: textblock
28962 #. type: textblock
28963 #: ../fish/guestfish-actions.pod:4059
28964 msgid ""
28965 "This displays the disk geometry of C<device> read from the partition table.  "
28966 "Especially in the case where the underlying block device has been resized, "
28967 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
28968 "kernel-geometry>)."
28969 msgstr ""
28970
28971 # type: =head2
28972 #. type: =head2
28973 #: ../fish/guestfish-actions.pod:4067
28974 msgid "sfdisk-kernel-geometry"
28975 msgstr ""
28976
28977 # type: verbatim
28978 #. type: verbatim
28979 #: ../fish/guestfish-actions.pod:4069
28980 #, no-wrap
28981 msgid ""
28982 " sfdisk-kernel-geometry device\n"
28983 "\n"
28984 msgstr ""
28985
28986 # type: =head2
28987 #. type: =head2
28988 #: ../fish/guestfish-actions.pod:4076
28989 msgid "sfdisk-l"
28990 msgstr ""
28991
28992 # type: verbatim
28993 #. type: verbatim
28994 #: ../fish/guestfish-actions.pod:4078
28995 #, no-wrap
28996 msgid ""
28997 " sfdisk-l device\n"
28998 "\n"
28999 msgstr ""
29000
29001 # type: textblock
29002 #. type: textblock
29003 #: ../fish/guestfish-actions.pod:4084
29004 msgid "See also: L</part-list>"
29005 msgstr ""
29006
29007 # type: =head2
29008 #. type: =head2
29009 #: ../fish/guestfish-actions.pod:4086
29010 msgid "sh"
29011 msgstr ""
29012
29013 # type: verbatim
29014 #. type: verbatim
29015 #: ../fish/guestfish-actions.pod:4088
29016 #, no-wrap
29017 msgid ""
29018 " sh command\n"
29019 "\n"
29020 msgstr ""
29021
29022 # type: textblock
29023 #. type: textblock
29024 #: ../fish/guestfish-actions.pod:4093
29025 msgid "This is like L</command>, but passes the command to:"
29026 msgstr ""
29027
29028 # type: textblock
29029 #. type: textblock
29030 #: ../fish/guestfish-actions.pod:4101
29031 msgid "All the provisos about L</command> apply to this call."
29032 msgstr ""
29033
29034 # type: =head2
29035 #. type: =head2
29036 #: ../fish/guestfish-actions.pod:4103
29037 msgid "sh-lines"
29038 msgstr ""
29039
29040 # type: verbatim
29041 #. type: verbatim
29042 #: ../fish/guestfish-actions.pod:4105
29043 #, no-wrap
29044 msgid ""
29045 " sh-lines command\n"
29046 "\n"
29047 msgstr ""
29048
29049 # type: textblock
29050 #. type: textblock
29051 #: ../fish/guestfish-actions.pod:4107
29052 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29053 msgstr ""
29054
29055 # type: textblock
29056 #. type: textblock
29057 #: ../fish/guestfish-actions.pod:4110
29058 msgid "See also: L</command-lines>"
29059 msgstr ""
29060
29061 # type: =head2
29062 #. type: =head2
29063 #: ../fish/guestfish-actions.pod:4112
29064 msgid "sleep"
29065 msgstr ""
29066
29067 # type: verbatim
29068 #. type: verbatim
29069 #: ../fish/guestfish-actions.pod:4114
29070 #, no-wrap
29071 msgid ""
29072 " sleep secs\n"
29073 "\n"
29074 msgstr ""
29075
29076 # type: =head2
29077 #. type: =head2
29078 #: ../fish/guestfish-actions.pod:4118
29079 msgid "stat"
29080 msgstr ""
29081
29082 # type: verbatim
29083 #. type: verbatim
29084 #: ../fish/guestfish-actions.pod:4120
29085 #, no-wrap
29086 msgid ""
29087 " stat path\n"
29088 "\n"
29089 msgstr ""
29090
29091 # type: =head2
29092 #. type: =head2
29093 #: ../fish/guestfish-actions.pod:4126
29094 msgid "statvfs"
29095 msgstr ""
29096
29097 # type: verbatim
29098 #. type: verbatim
29099 #: ../fish/guestfish-actions.pod:4128
29100 #, no-wrap
29101 msgid ""
29102 " statvfs path\n"
29103 "\n"
29104 msgstr ""
29105
29106 # type: =head2
29107 #. type: =head2
29108 #: ../fish/guestfish-actions.pod:4136
29109 msgid "strings"
29110 msgstr ""
29111
29112 # type: verbatim
29113 #. type: verbatim
29114 #: ../fish/guestfish-actions.pod:4138
29115 #, no-wrap
29116 msgid ""
29117 " strings path\n"
29118 "\n"
29119 msgstr ""
29120
29121 # type: =head2
29122 #. type: =head2
29123 #: ../fish/guestfish-actions.pod:4146
29124 msgid "strings-e"
29125 msgstr ""
29126
29127 # type: verbatim
29128 #. type: verbatim
29129 #: ../fish/guestfish-actions.pod:4148
29130 #, no-wrap
29131 msgid ""
29132 " strings-e encoding path\n"
29133 "\n"
29134 msgstr ""
29135
29136 # type: textblock
29137 #. type: textblock
29138 #: ../fish/guestfish-actions.pod:4150
29139 msgid ""
29140 "This is like the L</strings> command, but allows you to specify the encoding "
29141 "of strings that are looked for in the source file C<path>."
29142 msgstr ""
29143
29144 # type: textblock
29145 #. type: textblock
29146 #: ../fish/guestfish-actions.pod:4160
29147 msgid ""
29148 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29149 "ISO-8859-X (this is what L</strings> uses)."
29150 msgstr ""
29151
29152 # type: =head2
29153 #. type: =head2
29154 #: ../fish/guestfish-actions.pod:4192
29155 msgid "swapoff-device"
29156 msgstr ""
29157
29158 # type: verbatim
29159 #. type: verbatim
29160 #: ../fish/guestfish-actions.pod:4194
29161 #, no-wrap
29162 msgid ""
29163 " swapoff-device device\n"
29164 "\n"
29165 msgstr ""
29166
29167 # type: textblock
29168 #. type: textblock
29169 #: ../fish/guestfish-actions.pod:4196
29170 msgid ""
29171 "This command disables the libguestfs appliance swap device or partition "
29172 "named C<device>.  See L</swapon-device>."
29173 msgstr ""
29174
29175 # type: =head2
29176 #. type: =head2
29177 #: ../fish/guestfish-actions.pod:4200
29178 msgid "swapoff-file"
29179 msgstr ""
29180
29181 # type: verbatim
29182 #. type: verbatim
29183 #: ../fish/guestfish-actions.pod:4202
29184 #, no-wrap
29185 msgid ""
29186 " swapoff-file file\n"
29187 "\n"
29188 msgstr ""
29189
29190 # type: =head2
29191 #. type: =head2
29192 #: ../fish/guestfish-actions.pod:4206
29193 msgid "swapoff-label"
29194 msgstr ""
29195
29196 # type: verbatim
29197 #. type: verbatim
29198 #: ../fish/guestfish-actions.pod:4208
29199 #, no-wrap
29200 msgid ""
29201 " swapoff-label label\n"
29202 "\n"
29203 msgstr ""
29204
29205 # type: =head2
29206 #. type: =head2
29207 #: ../fish/guestfish-actions.pod:4213
29208 msgid "swapoff-uuid"
29209 msgstr ""
29210
29211 # type: verbatim
29212 #. type: verbatim
29213 #: ../fish/guestfish-actions.pod:4215
29214 #, no-wrap
29215 msgid ""
29216 " swapoff-uuid uuid\n"
29217 "\n"
29218 msgstr ""
29219
29220 # type: =head2
29221 #. type: =head2
29222 #: ../fish/guestfish-actions.pod:4220
29223 msgid "swapon-device"
29224 msgstr ""
29225
29226 # type: verbatim
29227 #. type: verbatim
29228 #: ../fish/guestfish-actions.pod:4222
29229 #, no-wrap
29230 msgid ""
29231 " swapon-device device\n"
29232 "\n"
29233 msgstr ""
29234
29235 # type: textblock
29236 #. type: textblock
29237 #: ../fish/guestfish-actions.pod:4224
29238 msgid ""
29239 "This command enables the libguestfs appliance to use the swap device or "
29240 "partition named C<device>.  The increased memory is made available for all "
29241 "commands, for example those run using L</command> or L</sh>."
29242 msgstr ""
29243
29244 # type: =head2
29245 #. type: =head2
29246 #: ../fish/guestfish-actions.pod:4236
29247 msgid "swapon-file"
29248 msgstr ""
29249
29250 # type: verbatim
29251 #. type: verbatim
29252 #: ../fish/guestfish-actions.pod:4238
29253 #, no-wrap
29254 msgid ""
29255 " swapon-file file\n"
29256 "\n"
29257 msgstr ""
29258
29259 # type: textblock
29260 #. type: textblock
29261 #: ../fish/guestfish-actions.pod:4240
29262 msgid ""
29263 "This command enables swap to a file.  See L</swapon-device> for other notes."
29264 msgstr ""
29265
29266 # type: =head2
29267 #. type: =head2
29268 #: ../fish/guestfish-actions.pod:4243
29269 msgid "swapon-label"
29270 msgstr ""
29271
29272 # type: verbatim
29273 #. type: verbatim
29274 #: ../fish/guestfish-actions.pod:4245
29275 #, no-wrap
29276 msgid ""
29277 " swapon-label label\n"
29278 "\n"
29279 msgstr ""
29280
29281 # type: textblock
29282 #. type: textblock
29283 #: ../fish/guestfish-actions.pod:4247
29284 msgid ""
29285 "This command enables swap to a labeled swap partition.  See L</swapon-"
29286 "device> for other notes."
29287 msgstr ""
29288
29289 # type: =head2
29290 #. type: =head2
29291 #: ../fish/guestfish-actions.pod:4250
29292 msgid "swapon-uuid"
29293 msgstr ""
29294
29295 # type: verbatim
29296 #. type: verbatim
29297 #: ../fish/guestfish-actions.pod:4252
29298 #, no-wrap
29299 msgid ""
29300 " swapon-uuid uuid\n"
29301 "\n"
29302 msgstr ""
29303
29304 # type: textblock
29305 #. type: textblock
29306 #: ../fish/guestfish-actions.pod:4254
29307 msgid ""
29308 "This command enables swap to a swap partition with the given UUID.  See L</"
29309 "swapon-device> for other notes."
29310 msgstr ""
29311
29312 # type: =head2
29313 #. type: =head2
29314 #: ../fish/guestfish-actions.pod:4257
29315 msgid "sync"
29316 msgstr ""
29317
29318 # type: verbatim
29319 #. type: verbatim
29320 #: ../fish/guestfish-actions.pod:4259
29321 #, no-wrap
29322 msgid ""
29323 " sync\n"
29324 "\n"
29325 msgstr ""
29326
29327 # type: =head2
29328 #. type: =head2
29329 #: ../fish/guestfish-actions.pod:4267
29330 msgid "tail"
29331 msgstr ""
29332
29333 # type: verbatim
29334 #. type: verbatim
29335 #: ../fish/guestfish-actions.pod:4269
29336 #, no-wrap
29337 msgid ""
29338 " tail path\n"
29339 "\n"
29340 msgstr ""
29341
29342 # type: =head2
29343 #. type: =head2
29344 #: ../fish/guestfish-actions.pod:4277
29345 msgid "tail-n"
29346 msgstr ""
29347
29348 # type: verbatim
29349 #. type: verbatim
29350 #: ../fish/guestfish-actions.pod:4279
29351 #, no-wrap
29352 msgid ""
29353 " tail-n nrlines path\n"
29354 "\n"
29355 msgstr ""
29356
29357 # type: =head2
29358 #. type: =head2
29359 #: ../fish/guestfish-actions.pod:4292
29360 msgid "tar-in"
29361 msgstr ""
29362
29363 # type: verbatim
29364 #. type: verbatim
29365 #: ../fish/guestfish-actions.pod:4294
29366 #, no-wrap
29367 msgid ""
29368 " tar-in (tarfile|-) directory\n"
29369 "\n"
29370 msgstr ""
29371
29372 # type: textblock
29373 #. type: textblock
29374 #: ../fish/guestfish-actions.pod:4299
29375 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
29376 msgstr ""
29377
29378 # type: =head2
29379 #. type: =head2
29380 #: ../fish/guestfish-actions.pod:4304
29381 msgid "tar-out"
29382 msgstr ""
29383
29384 # type: verbatim
29385 #. type: verbatim
29386 #: ../fish/guestfish-actions.pod:4306
29387 #, no-wrap
29388 msgid ""
29389 " tar-out directory (tarfile|-)\n"
29390 "\n"
29391 msgstr ""
29392
29393 # type: textblock
29394 #. type: textblock
29395 #: ../fish/guestfish-actions.pod:4311
29396 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
29397 msgstr ""
29398
29399 # type: =head2
29400 #. type: =head2
29401 #: ../fish/guestfish-actions.pod:4316
29402 msgid "tgz-in"
29403 msgstr ""
29404
29405 # type: verbatim
29406 #. type: verbatim
29407 #: ../fish/guestfish-actions.pod:4318
29408 #, no-wrap
29409 msgid ""
29410 " tgz-in (tarball|-) directory\n"
29411 "\n"
29412 msgstr ""
29413
29414 # type: textblock
29415 #. type: textblock
29416 #: ../fish/guestfish-actions.pod:4323
29417 msgid "To upload an uncompressed tarball, use L</tar-in>."
29418 msgstr ""
29419
29420 # type: =head2
29421 #. type: =head2
29422 #: ../fish/guestfish-actions.pod:4327
29423 msgid "tgz-out"
29424 msgstr ""
29425
29426 # type: verbatim
29427 #. type: verbatim
29428 #: ../fish/guestfish-actions.pod:4329
29429 #, no-wrap
29430 msgid ""
29431 " tgz-out directory (tarball|-)\n"
29432 "\n"
29433 msgstr ""
29434
29435 # type: textblock
29436 #. type: textblock
29437 #: ../fish/guestfish-actions.pod:4334
29438 msgid "To download an uncompressed tarball, use L</tar-out>."
29439 msgstr ""
29440
29441 # type: =head2
29442 #. type: =head2
29443 #: ../fish/guestfish-actions.pod:4338
29444 msgid "touch"
29445 msgstr ""
29446
29447 # type: verbatim
29448 #. type: verbatim
29449 #: ../fish/guestfish-actions.pod:4340
29450 #, no-wrap
29451 msgid ""
29452 " touch path\n"
29453 "\n"
29454 msgstr ""
29455
29456 # type: =head2
29457 #. type: =head2
29458 #: ../fish/guestfish-actions.pod:4349
29459 msgid "truncate"
29460 msgstr ""
29461
29462 # type: verbatim
29463 #. type: verbatim
29464 #: ../fish/guestfish-actions.pod:4351
29465 #, no-wrap
29466 msgid ""
29467 " truncate path\n"
29468 "\n"
29469 msgstr ""
29470
29471 # type: =head2
29472 #. type: =head2
29473 #: ../fish/guestfish-actions.pod:4356
29474 msgid "truncate-size"
29475 msgstr ""
29476
29477 # type: verbatim
29478 #. type: verbatim
29479 #: ../fish/guestfish-actions.pod:4358
29480 #, no-wrap
29481 msgid ""
29482 " truncate-size path size\n"
29483 "\n"
29484 msgstr ""
29485
29486 # type: textblock
29487 #. type: textblock
29488 #: ../fish/guestfish-actions.pod:4363
29489 msgid ""
29490 "If the current file size is less than C<size> then the file is extended to "
29491 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29492 "blocks are not allocated for the file until you write to it).  To create a "
29493 "non-sparse file of zeroes, use L</fallocate64> instead."
29494 msgstr ""
29495
29496 # type: =head2
29497 #. type: =head2
29498 #: ../fish/guestfish-actions.pod:4369
29499 msgid "tune2fs-l"
29500 msgstr ""
29501
29502 # type: verbatim
29503 #. type: verbatim
29504 #: ../fish/guestfish-actions.pod:4371
29505 #, no-wrap
29506 msgid ""
29507 " tune2fs-l device\n"
29508 "\n"
29509 msgstr ""
29510
29511 # type: =head2
29512 #. type: =head2
29513 #: ../fish/guestfish-actions.pod:4381
29514 msgid "txz-in"
29515 msgstr ""
29516
29517 # type: verbatim
29518 #. type: verbatim
29519 #: ../fish/guestfish-actions.pod:4383
29520 #, no-wrap
29521 msgid ""
29522 " txz-in (tarball|-) directory\n"
29523 "\n"
29524 msgstr ""
29525
29526 # type: =head2
29527 #. type: =head2
29528 #: ../fish/guestfish-actions.pod:4390
29529 msgid "txz-out"
29530 msgstr ""
29531
29532 # type: verbatim
29533 #. type: verbatim
29534 #: ../fish/guestfish-actions.pod:4392
29535 #, no-wrap
29536 msgid ""
29537 " txz-out directory (tarball|-)\n"
29538 "\n"
29539 msgstr ""
29540
29541 # type: =head2
29542 #. type: =head2
29543 #: ../fish/guestfish-actions.pod:4399
29544 msgid "umask"
29545 msgstr ""
29546
29547 # type: verbatim
29548 #. type: verbatim
29549 #: ../fish/guestfish-actions.pod:4401
29550 #, no-wrap
29551 msgid ""
29552 " umask mask\n"
29553 "\n"
29554 msgstr ""
29555
29556 # type: textblock
29557 #. type: textblock
29558 #: ../fish/guestfish-actions.pod:4415
29559 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
29560 msgstr ""
29561
29562 # type: =head2
29563 #. type: =head2
29564 #: ../fish/guestfish-actions.pod:4420
29565 msgid "umount"
29566 msgstr ""
29567
29568 # type: =head2
29569 #. type: =head2
29570 #: ../fish/guestfish-actions.pod:4422
29571 msgid "unmount"
29572 msgstr ""
29573
29574 # type: verbatim
29575 #. type: verbatim
29576 #: ../fish/guestfish-actions.pod:4424
29577 #, no-wrap
29578 msgid ""
29579 " umount pathordevice\n"
29580 "\n"
29581 msgstr ""
29582
29583 # type: =head2
29584 #. type: =head2
29585 #: ../fish/guestfish-actions.pod:4430
29586 msgid "umount-all"
29587 msgstr ""
29588
29589 # type: =head2
29590 #. type: =head2
29591 #: ../fish/guestfish-actions.pod:4432
29592 msgid "unmount-all"
29593 msgstr ""
29594
29595 # type: verbatim
29596 #. type: verbatim
29597 #: ../fish/guestfish-actions.pod:4434
29598 #, no-wrap
29599 msgid ""
29600 " umount-all\n"
29601 "\n"
29602 msgstr ""
29603
29604 # type: =head2
29605 #. type: =head2
29606 #: ../fish/guestfish-actions.pod:4440
29607 msgid "upload"
29608 msgstr ""
29609
29610 # type: verbatim
29611 #. type: verbatim
29612 #: ../fish/guestfish-actions.pod:4442
29613 #, no-wrap
29614 msgid ""
29615 " upload (filename|-) remotefilename\n"
29616 "\n"
29617 msgstr ""
29618
29619 # type: textblock
29620 #. type: textblock
29621 #: ../fish/guestfish-actions.pod:4449
29622 msgid "See also L</download>."
29623 msgstr ""
29624
29625 # type: =head2
29626 #. type: =head2
29627 #: ../fish/guestfish-actions.pod:4453
29628 msgid "upload-offset"
29629 msgstr ""
29630
29631 # type: verbatim
29632 #. type: verbatim
29633 #: ../fish/guestfish-actions.pod:4455
29634 #, no-wrap
29635 msgid ""
29636 " upload-offset (filename|-) remotefilename offset\n"
29637 "\n"
29638 msgstr ""
29639
29640 # type: textblock
29641 #. type: textblock
29642 #: ../fish/guestfish-actions.pod:4467
29643 msgid ""
29644 "Note that there is no limit on the amount of data that can be uploaded with "
29645 "this call, unlike with L</pwrite>, and this call always writes the full "
29646 "amount unless an error occurs."
29647 msgstr ""
29648
29649 # type: textblock
29650 #. type: textblock
29651 #: ../fish/guestfish-actions.pod:4472
29652 msgid "See also L</upload>, L</pwrite>."
29653 msgstr ""
29654
29655 # type: =head2
29656 #. type: =head2
29657 #: ../fish/guestfish-actions.pod:4476
29658 msgid "utimens"
29659 msgstr ""
29660
29661 # type: verbatim
29662 #. type: verbatim
29663 #: ../fish/guestfish-actions.pod:4478
29664 #, no-wrap
29665 msgid ""
29666 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
29667 "\n"
29668 msgstr ""
29669
29670 # type: =head2
29671 #. type: =head2
29672 #: ../fish/guestfish-actions.pod:4497
29673 msgid "version"
29674 msgstr ""
29675
29676 # type: verbatim
29677 #. type: verbatim
29678 #: ../fish/guestfish-actions.pod:4499
29679 #, no-wrap
29680 msgid ""
29681 " version\n"
29682 "\n"
29683 msgstr ""
29684
29685 # type: textblock
29686 #. type: textblock
29687 #: ../fish/guestfish-actions.pod:4526
29688 msgid ""
29689 "I<Note:> Don't use this call to test for availability of features.  In "
29690 "enterprise distributions we backport features from later versions into "
29691 "earlier versions, making this an unreliable way to test for features.  Use "
29692 "L</available> instead."
29693 msgstr ""
29694
29695 # type: =head2
29696 #. type: =head2
29697 #: ../fish/guestfish-actions.pod:4532
29698 msgid "vfs-label"
29699 msgstr ""
29700
29701 # type: verbatim
29702 #. type: verbatim
29703 #: ../fish/guestfish-actions.pod:4534
29704 #, no-wrap
29705 msgid ""
29706 " vfs-label device\n"
29707 "\n"
29708 msgstr ""
29709
29710 # type: textblock
29711 #. type: textblock
29712 #: ../fish/guestfish-actions.pod:4541
29713 msgid "To find a filesystem from the label, use L</findfs-label>."
29714 msgstr ""
29715
29716 # type: =head2
29717 #. type: =head2
29718 #: ../fish/guestfish-actions.pod:4543
29719 msgid "vfs-type"
29720 msgstr ""
29721
29722 # type: verbatim
29723 #. type: verbatim
29724 #: ../fish/guestfish-actions.pod:4545
29725 #, no-wrap
29726 msgid ""
29727 " vfs-type device\n"
29728 "\n"
29729 msgstr ""
29730
29731 # type: =head2
29732 #. type: =head2
29733 #: ../fish/guestfish-actions.pod:4555
29734 msgid "vfs-uuid"
29735 msgstr ""
29736
29737 # type: verbatim
29738 #. type: verbatim
29739 #: ../fish/guestfish-actions.pod:4557
29740 #, no-wrap
29741 msgid ""
29742 " vfs-uuid device\n"
29743 "\n"
29744 msgstr ""
29745
29746 # type: textblock
29747 #. type: textblock
29748 #: ../fish/guestfish-actions.pod:4564
29749 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
29750 msgstr ""
29751
29752 # type: =head2
29753 #. type: =head2
29754 #: ../fish/guestfish-actions.pod:4566
29755 msgid "vg-activate"
29756 msgstr ""
29757
29758 # type: verbatim
29759 #. type: verbatim
29760 #: ../fish/guestfish-actions.pod:4568
29761 #, no-wrap
29762 msgid ""
29763 " vg-activate true|false 'volgroups ...'\n"
29764 "\n"
29765 msgstr ""
29766
29767 # type: =head2
29768 #. type: =head2
29769 #: ../fish/guestfish-actions.pod:4581
29770 msgid "vg-activate-all"
29771 msgstr ""
29772
29773 # type: verbatim
29774 #. type: verbatim
29775 #: ../fish/guestfish-actions.pod:4583
29776 #, no-wrap
29777 msgid ""
29778 " vg-activate-all true|false\n"
29779 "\n"
29780 msgstr ""
29781
29782 # type: =head2
29783 #. type: =head2
29784 #: ../fish/guestfish-actions.pod:4593
29785 msgid "vgcreate"
29786 msgstr ""
29787
29788 # type: verbatim
29789 #. type: verbatim
29790 #: ../fish/guestfish-actions.pod:4595
29791 #, no-wrap
29792 msgid ""
29793 " vgcreate volgroup 'physvols ...'\n"
29794 "\n"
29795 msgstr ""
29796
29797 # type: =head2
29798 #. type: =head2
29799 #: ../fish/guestfish-actions.pod:4600
29800 msgid "vglvuuids"
29801 msgstr ""
29802
29803 # type: verbatim
29804 #. type: verbatim
29805 #: ../fish/guestfish-actions.pod:4602
29806 #, no-wrap
29807 msgid ""
29808 " vglvuuids vgname\n"
29809 "\n"
29810 msgstr ""
29811
29812 # type: textblock
29813 #. type: textblock
29814 #: ../fish/guestfish-actions.pod:4607
29815 msgid ""
29816 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
29817 "logical volumes and volume groups."
29818 msgstr ""
29819
29820 # type: textblock
29821 #. type: textblock
29822 #: ../fish/guestfish-actions.pod:4610
29823 msgid "See also L</vgpvuuids>."
29824 msgstr ""
29825
29826 # type: =head2
29827 #. type: =head2
29828 #: ../fish/guestfish-actions.pod:4612
29829 msgid "vgpvuuids"
29830 msgstr ""
29831
29832 # type: verbatim
29833 #. type: verbatim
29834 #: ../fish/guestfish-actions.pod:4614
29835 #, no-wrap
29836 msgid ""
29837 " vgpvuuids vgname\n"
29838 "\n"
29839 msgstr ""
29840
29841 # type: textblock
29842 #. type: textblock
29843 #: ../fish/guestfish-actions.pod:4619
29844 msgid ""
29845 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
29846 "physical volumes and volume groups."
29847 msgstr ""
29848
29849 # type: textblock
29850 #. type: textblock
29851 #: ../fish/guestfish-actions.pod:4622
29852 msgid "See also L</vglvuuids>."
29853 msgstr ""
29854
29855 # type: =head2
29856 #. type: =head2
29857 #: ../fish/guestfish-actions.pod:4624
29858 msgid "vgremove"
29859 msgstr ""
29860
29861 # type: verbatim
29862 #. type: verbatim
29863 #: ../fish/guestfish-actions.pod:4626
29864 #, no-wrap
29865 msgid ""
29866 " vgremove vgname\n"
29867 "\n"
29868 msgstr ""
29869
29870 # type: =head2
29871 #. type: =head2
29872 #: ../fish/guestfish-actions.pod:4633
29873 msgid "vgrename"
29874 msgstr ""
29875
29876 # type: verbatim
29877 #. type: verbatim
29878 #: ../fish/guestfish-actions.pod:4635
29879 #, no-wrap
29880 msgid ""
29881 " vgrename volgroup newvolgroup\n"
29882 "\n"
29883 msgstr ""
29884
29885 # type: =head2
29886 #. type: =head2
29887 #: ../fish/guestfish-actions.pod:4639
29888 msgid "vgs"
29889 msgstr ""
29890
29891 # type: verbatim
29892 #. type: verbatim
29893 #: ../fish/guestfish-actions.pod:4641
29894 #, no-wrap
29895 msgid ""
29896 " vgs\n"
29897 "\n"
29898 msgstr ""
29899
29900 # type: textblock
29901 #. type: textblock
29902 #: ../fish/guestfish-actions.pod:4649
29903 msgid "See also L</vgs-full>."
29904 msgstr ""
29905
29906 # type: =head2
29907 #. type: =head2
29908 #: ../fish/guestfish-actions.pod:4651
29909 msgid "vgs-full"
29910 msgstr ""
29911
29912 # type: verbatim
29913 #. type: verbatim
29914 #: ../fish/guestfish-actions.pod:4653
29915 #, no-wrap
29916 msgid ""
29917 " vgs-full\n"
29918 "\n"
29919 msgstr ""
29920
29921 # type: =head2
29922 #. type: =head2
29923 #: ../fish/guestfish-actions.pod:4658
29924 msgid "vgscan"
29925 msgstr ""
29926
29927 # type: verbatim
29928 #. type: verbatim
29929 #: ../fish/guestfish-actions.pod:4660
29930 #, no-wrap
29931 msgid ""
29932 " vgscan\n"
29933 "\n"
29934 msgstr ""
29935
29936 # type: =head2
29937 #. type: =head2
29938 #: ../fish/guestfish-actions.pod:4665
29939 msgid "vguuid"
29940 msgstr ""
29941
29942 # type: verbatim
29943 #. type: verbatim
29944 #: ../fish/guestfish-actions.pod:4667
29945 #, no-wrap
29946 msgid ""
29947 " vguuid vgname\n"
29948 "\n"
29949 msgstr ""
29950
29951 # type: =head2
29952 #. type: =head2
29953 #: ../fish/guestfish-actions.pod:4671
29954 msgid "wc-c"
29955 msgstr ""
29956
29957 # type: verbatim
29958 #. type: verbatim
29959 #: ../fish/guestfish-actions.pod:4673
29960 #, no-wrap
29961 msgid ""
29962 " wc-c path\n"
29963 "\n"
29964 msgstr ""
29965
29966 # type: =head2
29967 #. type: =head2
29968 #: ../fish/guestfish-actions.pod:4678
29969 msgid "wc-l"
29970 msgstr ""
29971
29972 # type: verbatim
29973 #. type: verbatim
29974 #: ../fish/guestfish-actions.pod:4680
29975 #, no-wrap
29976 msgid ""
29977 " wc-l path\n"
29978 "\n"
29979 msgstr ""
29980
29981 # type: =head2
29982 #. type: =head2
29983 #: ../fish/guestfish-actions.pod:4685
29984 msgid "wc-w"
29985 msgstr ""
29986
29987 # type: verbatim
29988 #. type: verbatim
29989 #: ../fish/guestfish-actions.pod:4687
29990 #, no-wrap
29991 msgid ""
29992 " wc-w path\n"
29993 "\n"
29994 msgstr ""
29995
29996 # type: =head2
29997 #. type: =head2
29998 #: ../fish/guestfish-actions.pod:4692
29999 msgid "write"
30000 msgstr ""
30001
30002 # type: verbatim
30003 #. type: verbatim
30004 #: ../fish/guestfish-actions.pod:4694
30005 #, no-wrap
30006 msgid ""
30007 " write path content\n"
30008 "\n"
30009 msgstr ""
30010
30011 # type: =head2
30012 #. type: =head2
30013 #: ../fish/guestfish-actions.pod:4702
30014 msgid "write-file"
30015 msgstr ""
30016
30017 # type: verbatim
30018 #. type: verbatim
30019 #: ../fish/guestfish-actions.pod:4704
30020 #, no-wrap
30021 msgid ""
30022 " write-file path content size\n"
30023 "\n"
30024 msgstr ""
30025
30026 # type: =head2
30027 #. type: =head2
30028 #: ../fish/guestfish-actions.pod:4727
30029 msgid "zegrep"
30030 msgstr ""
30031
30032 # type: verbatim
30033 #. type: verbatim
30034 #: ../fish/guestfish-actions.pod:4729
30035 #, no-wrap
30036 msgid ""
30037 " zegrep regex path\n"
30038 "\n"
30039 msgstr ""
30040
30041 # type: =head2
30042 #. type: =head2
30043 #: ../fish/guestfish-actions.pod:4737
30044 msgid "zegrepi"
30045 msgstr ""
30046
30047 # type: verbatim
30048 #. type: verbatim
30049 #: ../fish/guestfish-actions.pod:4739
30050 #, no-wrap
30051 msgid ""
30052 " zegrepi regex path\n"
30053 "\n"
30054 msgstr ""
30055
30056 # type: =head2
30057 #. type: =head2
30058 #: ../fish/guestfish-actions.pod:4747
30059 msgid "zero"
30060 msgstr ""
30061
30062 # type: verbatim
30063 #. type: verbatim
30064 #: ../fish/guestfish-actions.pod:4749
30065 #, no-wrap
30066 msgid ""
30067 " zero device\n"
30068 "\n"
30069 msgstr ""
30070
30071 # type: textblock
30072 #. type: textblock
30073 #: ../fish/guestfish-actions.pod:4757
30074 msgid "See also: L</zero-device>, L</scrub-device>."
30075 msgstr ""
30076
30077 # type: =head2
30078 #. type: =head2
30079 #: ../fish/guestfish-actions.pod:4759
30080 msgid "zero-device"
30081 msgstr ""
30082
30083 # type: verbatim
30084 #. type: verbatim
30085 #: ../fish/guestfish-actions.pod:4761
30086 #, no-wrap
30087 msgid ""
30088 " zero-device device\n"
30089 "\n"
30090 msgstr ""
30091
30092 # type: textblock
30093 #. type: textblock
30094 #: ../fish/guestfish-actions.pod:4763
30095 msgid ""
30096 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
30097 "which just zeroes the first few blocks of a device."
30098 msgstr ""
30099
30100 # type: =head2
30101 #. type: =head2
30102 #: ../fish/guestfish-actions.pod:4770
30103 msgid "zerofree"
30104 msgstr ""
30105
30106 # type: verbatim
30107 #. type: verbatim
30108 #: ../fish/guestfish-actions.pod:4772
30109 #, no-wrap
30110 msgid ""
30111 " zerofree device\n"
30112 "\n"
30113 msgstr ""
30114
30115 # type: =head2
30116 #. type: =head2
30117 #: ../fish/guestfish-actions.pod:4785
30118 msgid "zfgrep"
30119 msgstr ""
30120
30121 # type: verbatim
30122 #. type: verbatim
30123 #: ../fish/guestfish-actions.pod:4787
30124 #, no-wrap
30125 msgid ""
30126 " zfgrep pattern path\n"
30127 "\n"
30128 msgstr ""
30129
30130 # type: =head2
30131 #. type: =head2
30132 #: ../fish/guestfish-actions.pod:4795
30133 msgid "zfgrepi"
30134 msgstr ""
30135
30136 # type: verbatim
30137 #. type: verbatim
30138 #: ../fish/guestfish-actions.pod:4797
30139 #, no-wrap
30140 msgid ""
30141 " zfgrepi pattern path\n"
30142 "\n"
30143 msgstr ""
30144
30145 # type: =head2
30146 #. type: =head2
30147 #: ../fish/guestfish-actions.pod:4805
30148 msgid "zfile"
30149 msgstr ""
30150
30151 # type: verbatim
30152 #. type: verbatim
30153 #: ../fish/guestfish-actions.pod:4807
30154 #, no-wrap
30155 msgid ""
30156 " zfile meth path\n"
30157 "\n"
30158 msgstr ""
30159
30160 # type: textblock
30161 #. type: textblock
30162 #: ../fish/guestfish-actions.pod:4814
30163 msgid ""
30164 "Since 1.0.63, use L</file> instead which can now process compressed files."
30165 msgstr ""
30166
30167 # type: =head2
30168 #. type: =head2
30169 #: ../fish/guestfish-actions.pod:4824
30170 msgid "zgrep"
30171 msgstr ""
30172
30173 # type: verbatim
30174 #. type: verbatim
30175 #: ../fish/guestfish-actions.pod:4826
30176 #, no-wrap
30177 msgid ""
30178 " zgrep regex path\n"
30179 "\n"
30180 msgstr ""
30181
30182 # type: =head2
30183 #. type: =head2
30184 #: ../fish/guestfish-actions.pod:4834
30185 msgid "zgrepi"
30186 msgstr ""
30187
30188 # type: verbatim
30189 #. type: verbatim
30190 #: ../fish/guestfish-actions.pod:4836
30191 #, no-wrap
30192 msgid ""
30193 " zgrepi regex path\n"
30194 "\n"
30195 msgstr ""
30196
30197 # type: =head2
30198 #. type: =head2
30199 #: ../fish/guestfish-commands.pod:1
30200 msgid "alloc"
30201 msgstr ""
30202
30203 # type: =head2
30204 #. type: =head2
30205 #: ../fish/guestfish-commands.pod:3
30206 msgid "allocate"
30207 msgstr ""
30208
30209 # type: verbatim
30210 #. type: verbatim
30211 #: ../fish/guestfish-commands.pod:5
30212 #, no-wrap
30213 msgid ""
30214 " alloc filename size\n"
30215 "\n"
30216 msgstr ""
30217
30218 # type: textblock
30219 #. type: textblock
30220 #: ../fish/guestfish-commands.pod:7
30221 msgid ""
30222 "This creates an empty (zeroed) file of the given size, and then adds so it "
30223 "can be further examined."
30224 msgstr ""
30225
30226 # type: textblock
30227 #. type: textblock
30228 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
30229 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
30230 msgstr ""
30231
30232 # type: textblock
30233 #. type: textblock
30234 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
30235 msgid "Size can be specified using standard suffixes, eg. C<1M>."
30236 msgstr ""
30237
30238 # type: textblock
30239 #. type: textblock
30240 #: ../fish/guestfish-commands.pod:14
30241 msgid ""
30242 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
30243 "image, see L</PREPARED DISK IMAGES>."
30244 msgstr ""
30245
30246 # type: =head2
30247 #. type: =head2
30248 #: ../fish/guestfish-commands.pod:17
30249 msgid "copy-in"
30250 msgstr ""
30251
30252 # type: verbatim
30253 #. type: verbatim
30254 #: ../fish/guestfish-commands.pod:19
30255 #, no-wrap
30256 msgid ""
30257 " copy-in local [local ...] /remotedir\n"
30258 "\n"
30259 msgstr ""
30260
30261 # type: textblock
30262 #. type: textblock
30263 #: ../fish/guestfish-commands.pod:21
30264 msgid ""
30265 "C<copy-in> copies local files or directories recursively into the disk "
30266 "image, placing them in the directory called C</remotedir> (which must "
30267 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
30268 "other commands as necessary."
30269 msgstr ""
30270
30271 # type: textblock
30272 #. type: textblock
30273 #: ../fish/guestfish-commands.pod:26
30274 msgid ""
30275 "Multiple local files and directories can be specified, but the last "
30276 "parameter must always be a remote directory.  Wildcards cannot be used."
30277 msgstr ""
30278
30279 # type: =head2
30280 #. type: =head2
30281 #: ../fish/guestfish-commands.pod:30
30282 msgid "copy-out"
30283 msgstr ""
30284
30285 # type: verbatim
30286 #. type: verbatim
30287 #: ../fish/guestfish-commands.pod:32
30288 #, no-wrap
30289 msgid ""
30290 " copy-out remote [remote ...] localdir\n"
30291 "\n"
30292 msgstr ""
30293
30294 # type: textblock
30295 #. type: textblock
30296 #: ../fish/guestfish-commands.pod:34
30297 msgid ""
30298 "C<copy-out> copies remote files or directories recursively out of the disk "
30299 "image, placing them on the host disk in a local directory called C<localdir> "
30300 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
30301 "download>, L</tar-out> and other commands as necessary."
30302 msgstr ""
30303
30304 # type: textblock
30305 #. type: textblock
30306 #: ../fish/guestfish-commands.pod:40
30307 msgid ""
30308 "Multiple remote files and directories can be specified, but the last "
30309 "parameter must always be a local directory.  To download to the current "
30310 "directory, use C<.> as in:"
30311 msgstr ""
30312
30313 # type: verbatim
30314 #. type: verbatim
30315 #: ../fish/guestfish-commands.pod:44
30316 #, no-wrap
30317 msgid ""
30318 " copy-out /home .\n"
30319 "\n"
30320 msgstr ""
30321
30322 # type: textblock
30323 #. type: textblock
30324 #: ../fish/guestfish-commands.pod:46
30325 msgid ""
30326 "Wildcards cannot be used in the ordinary command, but you can use them with "
30327 "the help of L</glob> like this:"
30328 msgstr ""
30329
30330 # type: verbatim
30331 #. type: verbatim
30332 #: ../fish/guestfish-commands.pod:49
30333 #, no-wrap
30334 msgid ""
30335 " glob copy-out /home/* .\n"
30336 "\n"
30337 msgstr ""
30338
30339 # type: =head2
30340 #. type: =head2
30341 #: ../fish/guestfish-commands.pod:51
30342 msgid "echo"
30343 msgstr ""
30344
30345 # type: verbatim
30346 #. type: verbatim
30347 #: ../fish/guestfish-commands.pod:53
30348 #, no-wrap
30349 msgid ""
30350 " echo [params ...]\n"
30351 "\n"
30352 msgstr ""
30353
30354 # type: textblock
30355 #. type: textblock
30356 #: ../fish/guestfish-commands.pod:55
30357 msgid "This echos the parameters to the terminal."
30358 msgstr ""
30359
30360 # type: =head2
30361 #. type: =head2
30362 #: ../fish/guestfish-commands.pod:57
30363 msgid "edit"
30364 msgstr ""
30365
30366 # type: =head2
30367 #. type: =head2
30368 #: ../fish/guestfish-commands.pod:59
30369 msgid "vi"
30370 msgstr ""
30371
30372 # type: =head2
30373 #. type: =head2
30374 #: ../fish/guestfish-commands.pod:61
30375 msgid "emacs"
30376 msgstr ""
30377
30378 # type: verbatim
30379 #. type: verbatim
30380 #: ../fish/guestfish-commands.pod:63
30381 #, no-wrap
30382 msgid ""
30383 " edit filename\n"
30384 "\n"
30385 msgstr ""
30386
30387 # type: textblock
30388 #. type: textblock
30389 #: ../fish/guestfish-commands.pod:65
30390 msgid ""
30391 "This is used to edit a file.  It downloads the file, edits it locally using "
30392 "your editor, then uploads the result."
30393 msgstr ""
30394
30395 # type: textblock
30396 #. type: textblock
30397 #: ../fish/guestfish-commands.pod:68
30398 msgid ""
30399 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
30400 "or C<emacs> you will get those corresponding editors."
30401 msgstr ""
30402
30403 # type: =head2
30404 #. type: =head2
30405 #: ../fish/guestfish-commands.pod:72
30406 msgid "glob"
30407 msgstr ""
30408
30409 # type: verbatim
30410 #. type: verbatim
30411 #: ../fish/guestfish-commands.pod:74
30412 #, no-wrap
30413 msgid ""
30414 " glob command args...\n"
30415 "\n"
30416 msgstr ""
30417
30418 # type: textblock
30419 #. type: textblock
30420 #: ../fish/guestfish-commands.pod:76
30421 msgid ""
30422 "Expand wildcards in any paths in the args list, and run C<command> "
30423 "repeatedly on each matching path."
30424 msgstr ""
30425
30426 # type: textblock
30427 #. type: textblock
30428 #: ../fish/guestfish-commands.pod:79
30429 msgid "See L</WILDCARDS AND GLOBBING>."
30430 msgstr ""
30431
30432 # type: =head2
30433 #. type: =head2
30434 #: ../fish/guestfish-commands.pod:81
30435 msgid "hexedit"
30436 msgstr ""
30437
30438 # type: verbatim
30439 #. type: verbatim
30440 #: ../fish/guestfish-commands.pod:83
30441 #, no-wrap
30442 msgid ""
30443 " hexedit <filename|device>\n"
30444 " hexedit <filename|device> <max>\n"
30445 " hexedit <filename|device> <start> <max>\n"
30446 "\n"
30447 msgstr ""
30448
30449 # type: textblock
30450 #. type: textblock
30451 #: ../fish/guestfish-commands.pod:87
30452 msgid ""
30453 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
30454 "device."
30455 msgstr ""
30456
30457 # type: textblock
30458 #. type: textblock
30459 #: ../fish/guestfish-commands.pod:90
30460 msgid ""
30461 "This command works by downloading potentially the whole file or device, "
30462 "editing it locally, then uploading it.  If the file or device is large, you "
30463 "have to specify which part you wish to edit by using C<max> and/or C<start> "
30464 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
30465 "usual modifiers allowed such as C<1M> (1 megabyte)."
30466 msgstr ""
30467
30468 # type: textblock
30469 #. type: textblock
30470 #: ../fish/guestfish-commands.pod:97
30471 msgid "For example to edit the first few sectors of a disk you might do:"
30472 msgstr ""
30473
30474 # type: verbatim
30475 #. type: verbatim
30476 #: ../fish/guestfish-commands.pod:100
30477 #, no-wrap
30478 msgid ""
30479 " hexedit /dev/sda 1M\n"
30480 "\n"
30481 msgstr ""
30482
30483 # type: textblock
30484 #. type: textblock
30485 #: ../fish/guestfish-commands.pod:102
30486 msgid ""
30487 "which would allow you to edit anywhere within the first megabyte of the disk."
30488 msgstr ""
30489
30490 # type: textblock
30491 #. type: textblock
30492 #: ../fish/guestfish-commands.pod:105
30493 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
30494 msgstr ""
30495
30496 # type: verbatim
30497 #. type: verbatim
30498 #: ../fish/guestfish-commands.pod:107
30499 #, no-wrap
30500 msgid ""
30501 " hexedit /dev/sda1 0x400 0x400\n"
30502 "\n"
30503 msgstr ""
30504
30505 # type: textblock
30506 #. type: textblock
30507 #: ../fish/guestfish-commands.pod:109
30508 msgid "(assuming the superblock is in the standard location)."
30509 msgstr ""
30510
30511 # type: textblock
30512 #. type: textblock
30513 #: ../fish/guestfish-commands.pod:111
30514 msgid ""
30515 "This command requires the external L<hexedit(1)> program.  You can specify "
30516 "another program to use by setting the C<HEXEDITOR> environment variable."
30517 msgstr ""
30518
30519 # type: textblock
30520 #. type: textblock
30521 #: ../fish/guestfish-commands.pod:115
30522 msgid "See also L</hexdump>."
30523 msgstr ""
30524
30525 # type: =head2
30526 #. type: =head2
30527 #: ../fish/guestfish-commands.pod:117
30528 msgid "lcd"
30529 msgstr ""
30530
30531 # type: verbatim
30532 #. type: verbatim
30533 #: ../fish/guestfish-commands.pod:119
30534 #, no-wrap
30535 msgid ""
30536 " lcd directory\n"
30537 "\n"
30538 msgstr ""
30539
30540 # type: textblock
30541 #. type: textblock
30542 #: ../fish/guestfish-commands.pod:121
30543 msgid ""
30544 "Change the local directory, ie. the current directory of guestfish itself."
30545 msgstr ""
30546
30547 # type: textblock
30548 #. type: textblock
30549 #: ../fish/guestfish-commands.pod:124
30550 msgid "Note that C<!cd> won't do what you might expect."
30551 msgstr ""
30552
30553 # type: =head2
30554 #. type: =head2
30555 #: ../fish/guestfish-commands.pod:126
30556 msgid "man"
30557 msgstr ""
30558
30559 # type: =head2
30560 #. type: =head2
30561 #: ../fish/guestfish-commands.pod:128
30562 msgid "manual"
30563 msgstr ""
30564
30565 # type: verbatim
30566 #. type: verbatim
30567 #: ../fish/guestfish-commands.pod:130
30568 #, no-wrap
30569 msgid ""
30570 "  man\n"
30571 "\n"
30572 msgstr ""
30573
30574 # type: textblock
30575 #. type: textblock
30576 #: ../fish/guestfish-commands.pod:132
30577 msgid "Opens the manual page for guestfish."
30578 msgstr ""
30579
30580 # type: =head2
30581 #. type: =head2
30582 #: ../fish/guestfish-commands.pod:134
30583 msgid "more"
30584 msgstr ""
30585
30586 # type: =head2
30587 #. type: =head2
30588 #: ../fish/guestfish-commands.pod:136
30589 msgid "less"
30590 msgstr ""
30591
30592 # type: verbatim
30593 #. type: verbatim
30594 #: ../fish/guestfish-commands.pod:138
30595 #, no-wrap
30596 msgid ""
30597 " more filename\n"
30598 "\n"
30599 msgstr ""
30600
30601 # type: verbatim
30602 #. type: verbatim
30603 #: ../fish/guestfish-commands.pod:140
30604 #, no-wrap
30605 msgid ""
30606 " less filename\n"
30607 "\n"
30608 msgstr ""
30609
30610 # type: textblock
30611 #. type: textblock
30612 #: ../fish/guestfish-commands.pod:142
30613 msgid "This is used to view a file."
30614 msgstr ""
30615
30616 # type: textblock
30617 #. type: textblock
30618 #: ../fish/guestfish-commands.pod:144
30619 msgid ""
30620 "The default viewer is C<$PAGER>.  However if you use the alternate command "
30621 "C<less> you will get the C<less> command specifically."
30622 msgstr ""
30623
30624 # type: =head2
30625 #. type: =head2
30626 #: ../fish/guestfish-commands.pod:147
30627 msgid "reopen"
30628 msgstr ""
30629
30630 # type: verbatim
30631 #. type: verbatim
30632 #: ../fish/guestfish-commands.pod:149
30633 #, no-wrap
30634 msgid ""
30635 "  reopen\n"
30636 "\n"
30637 msgstr ""
30638
30639 # type: textblock
30640 #. type: textblock
30641 #: ../fish/guestfish-commands.pod:151
30642 msgid ""
30643 "Close and reopen the libguestfs handle.  It is not necessary to use this "
30644 "normally, because the handle is closed properly when guestfish exits.  "
30645 "However this is occasionally useful for testing."
30646 msgstr ""
30647
30648 # type: =head2
30649 #. type: =head2
30650 #: ../fish/guestfish-commands.pod:155
30651 msgid "sparse"
30652 msgstr ""
30653
30654 # type: verbatim
30655 #. type: verbatim
30656 #: ../fish/guestfish-commands.pod:157
30657 #, no-wrap
30658 msgid ""
30659 " sparse filename size\n"
30660 "\n"
30661 msgstr ""
30662
30663 # type: textblock
30664 #. type: textblock
30665 #: ../fish/guestfish-commands.pod:159
30666 msgid ""
30667 "This creates an empty sparse file of the given size, and then adds so it can "
30668 "be further examined."
30669 msgstr ""
30670
30671 # type: textblock
30672 #. type: textblock
30673 #: ../fish/guestfish-commands.pod:162
30674 msgid ""
30675 "In all respects it works the same as the L</alloc> command, except that the "
30676 "image file is allocated sparsely, which means that disk blocks are not "
30677 "assigned to the file until they are needed.  Sparse disk files only use "
30678 "space when written to, but they are slower and there is a danger you could "
30679 "run out of real disk space during a write operation."
30680 msgstr ""
30681
30682 # type: =head2
30683 #. type: =head2
30684 #: ../fish/guestfish-commands.pod:172
30685 msgid "supported"
30686 msgstr ""
30687
30688 # type: verbatim
30689 #. type: verbatim
30690 #: ../fish/guestfish-commands.pod:174
30691 #, no-wrap
30692 msgid ""
30693 " supported\n"
30694 "\n"
30695 msgstr ""
30696
30697 # type: textblock
30698 #. type: textblock
30699 #: ../fish/guestfish-commands.pod:176
30700 msgid ""
30701 "This command returns a list of the optional groups known to the daemon, and "
30702 "indicates which ones are supported by this build of the libguestfs appliance."
30703 msgstr ""
30704
30705 # type: textblock
30706 #. type: textblock
30707 #: ../fish/guestfish-commands.pod:180
30708 msgid "See also L<guestfs(3)/AVAILABILITY>."
30709 msgstr ""
30710
30711 # type: =head2
30712 #. type: =head2
30713 #: ../fish/guestfish-commands.pod:182
30714 msgid "time"
30715 msgstr ""
30716
30717 # type: verbatim
30718 #. type: verbatim
30719 #: ../fish/guestfish-commands.pod:184
30720 #, no-wrap
30721 msgid ""
30722 " time command args...\n"
30723 "\n"
30724 msgstr ""
30725
30726 # type: textblock
30727 #. type: textblock
30728 #: ../fish/guestfish-commands.pod:186
30729 msgid ""
30730 "Run the command as usual, but print the elapsed time afterwards.  This can "
30731 "be useful for benchmarking operations."
30732 msgstr ""
30733
30734 # type: textblock
30735 #. type: textblock
30736 #: ../test-tool/libguestfs-test-tool.pod:5
30737 msgid "libguestfs-test-tool - End user tests for libguestfs"
30738 msgstr ""
30739
30740 # type: verbatim
30741 #. type: verbatim
30742 #: ../test-tool/libguestfs-test-tool.pod:9
30743 #, no-wrap
30744 msgid ""
30745 " libguestfs-test-tool [--options]\n"
30746 "\n"
30747 msgstr ""
30748
30749 # type: textblock
30750 #. type: textblock
30751 #: ../test-tool/libguestfs-test-tool.pod:13
30752 msgid ""
30753 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
30754 "and developers, to allow them to check basic libguestfs functionality is "
30755 "working.  This is needed because libguestfs occasionally breaks for reasons "
30756 "beyond our control: usually because of changes in the underlying qemu or "
30757 "kernel packages, or the host environment."
30758 msgstr ""
30759
30760 # type: textblock
30761 #. type: textblock
30762 #: ../test-tool/libguestfs-test-tool.pod:20
30763 msgid "If you suspect a problem in libguestfs, then just run:"
30764 msgstr ""
30765
30766 # type: verbatim
30767 #. type: verbatim
30768 #: ../test-tool/libguestfs-test-tool.pod:22
30769 #, no-wrap
30770 msgid ""
30771 " libguestfs-test-tool\n"
30772 "\n"
30773 msgstr ""
30774
30775 # type: textblock
30776 #. type: textblock
30777 #: ../test-tool/libguestfs-test-tool.pod:24
30778 msgid "It will print lots of diagnostic messages."
30779 msgstr ""
30780
30781 # type: textblock
30782 #. type: textblock
30783 #: ../test-tool/libguestfs-test-tool.pod:26
30784 msgid "If it runs to completion successfully, you will see this near the end:"
30785 msgstr ""
30786
30787 # type: verbatim
30788 #. type: verbatim
30789 #: ../test-tool/libguestfs-test-tool.pod:28
30790 #, no-wrap
30791 msgid ""
30792 " ===== TEST FINISHED OK =====\n"
30793 "\n"
30794 msgstr ""
30795
30796 # type: textblock
30797 #. type: textblock
30798 #: ../test-tool/libguestfs-test-tool.pod:30
30799 msgid "and the test tool will exit with code 0."
30800 msgstr ""
30801
30802 # type: textblock
30803 #. type: textblock
30804 #: ../test-tool/libguestfs-test-tool.pod:32
30805 msgid ""
30806 "If it fails (and/or exits with non-zero error code), please paste the "
30807 "B<complete, unedited> output of the test tool into a bug report.  More "
30808 "information about reporting bugs can be found on the L<http://libguestfs.org/"
30809 "> website."
30810 msgstr ""
30811
30812 # type: =item
30813 #. type: =item
30814 #: ../test-tool/libguestfs-test-tool.pod:41
30815 msgid "I<--help>"
30816 msgstr ""
30817
30818 # type: textblock
30819 #. type: textblock
30820 #: ../test-tool/libguestfs-test-tool.pod:43
30821 msgid "Display short usage information and exit."
30822 msgstr ""
30823
30824 # type: =item
30825 #. type: =item
30826 #: ../test-tool/libguestfs-test-tool.pod:45
30827 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
30828 msgstr ""
30829
30830 # type: textblock
30831 #. type: textblock
30832 #: ../test-tool/libguestfs-test-tool.pod:47
30833 msgid ""
30834 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
30835 "normally look in the C<$libexec> directory that was configured when the tool "
30836 "was built."
30837 msgstr ""
30838
30839 # type: =item
30840 #. type: =item
30841 #: ../test-tool/libguestfs-test-tool.pod:51
30842 msgid "I<--qemu qemu_binary>"
30843 msgstr ""
30844
30845 # type: textblock
30846 #. type: textblock
30847 #: ../test-tool/libguestfs-test-tool.pod:53
30848 msgid ""
30849 "If you have downloaded another qemu binary, point this option at the full "
30850 "path of the binary to try it."
30851 msgstr ""
30852
30853 # type: =item
30854 #. type: =item
30855 #: ../test-tool/libguestfs-test-tool.pod:56
30856 msgid "I<--qemudir qemu_source_dir>"
30857 msgstr ""
30858
30859 # type: textblock
30860 #. type: textblock
30861 #: ../test-tool/libguestfs-test-tool.pod:58
30862 msgid ""
30863 "If you have compiled qemu from source, point this option at the source "
30864 "directory to try it."
30865 msgstr ""
30866
30867 # type: =item
30868 #. type: =item
30869 #: ../test-tool/libguestfs-test-tool.pod:61
30870 msgid "I<--timeout N>"
30871 msgstr ""
30872
30873 # type: textblock
30874 #. type: textblock
30875 #: ../test-tool/libguestfs-test-tool.pod:63
30876 msgid ""
30877 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
30878 "does not usually need to be adjusted unless your machine is very slow."
30879 msgstr ""
30880
30881 # type: =head1
30882 #. type: =head1
30883 #: ../test-tool/libguestfs-test-tool.pod:69
30884 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
30885 msgstr ""
30886
30887 # type: textblock
30888 #. type: textblock
30889 #: ../test-tool/libguestfs-test-tool.pod:71
30890 msgid ""
30891 "If you have compiled another version of qemu from source and would like to "
30892 "try that, then you can use the I<--qemudir> option to point to the qemu "
30893 "source directory."
30894 msgstr ""
30895
30896 # type: textblock
30897 #. type: textblock
30898 #: ../test-tool/libguestfs-test-tool.pod:75
30899 msgid ""
30900 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
30901 "option to point to the binary."
30902 msgstr ""
30903
30904 # type: textblock
30905 #. type: textblock
30906 #: ../test-tool/libguestfs-test-tool.pod:78
30907 msgid ""
30908 "When using an alternate qemu with libguestfs, usually you would need to "
30909 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
30910 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
30911 "use either of the I<--qemudir> or I<--qemu> options."
30912 msgstr ""
30913
30914 # type: textblock
30915 #. type: textblock
30916 #: ../test-tool/libguestfs-test-tool.pod:85
30917 msgid ""
30918 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
30919 "I<1> if there was an error."
30920 msgstr ""
30921
30922 # type: =item
30923 #. type: =item
30924 #: ../test-tool/libguestfs-test-tool.pod:92
30925 msgid "/usr/libexec/libguestfs-test-tool-helper"
30926 msgstr ""
30927
30928 # type: textblock
30929 #. type: textblock
30930 #: ../test-tool/libguestfs-test-tool.pod:94
30931 msgid ""
30932 "This helper program is run inside the appliance and provides additional "
30933 "tests."
30934 msgstr ""
30935
30936 # type: =item
30937 #. type: =item
30938 #: ../test-tool/libguestfs-test-tool.pod:97
30939 msgid "/usr/bin/mkisofs"
30940 msgstr ""
30941
30942 # type: textblock
30943 #. type: textblock
30944 #: ../test-tool/libguestfs-test-tool.pod:99
30945 msgid ""
30946 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
30947 "which is used as part of the tests."
30948 msgstr ""
30949
30950 # type: textblock
30951 #. type: textblock
30952 #: ../test-tool/libguestfs-test-tool.pod:106
30953 msgid ""
30954 "For the full list of environment variables which may affect libguestfs, "
30955 "please see the L<guestfs(3)> manual page."
30956 msgstr ""
30957
30958 # type: textblock
30959 #. type: textblock
30960 #: ../test-tool/libguestfs-test-tool.pod:111
30961 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
30962 msgstr ""
30963
30964 # type: textblock
30965 #. type: textblock
30966 #: ../test-tool/libguestfs-test-tool.pod:121
30967 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
30968 msgstr ""
30969
30970 # type: textblock
30971 #. type: textblock
30972 #: ../fuse/guestmount.pod:5
30973 msgid ""
30974 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
30975 msgstr ""
30976
30977 # type: verbatim
30978 #. type: verbatim
30979 #: ../fuse/guestmount.pod:9
30980 #, no-wrap
30981 msgid ""
30982 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
30983 "\n"
30984 msgstr ""
30985
30986 # type: verbatim
30987 #. type: verbatim
30988 #: ../fuse/guestmount.pod:11
30989 #, no-wrap
30990 msgid ""
30991 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
30992 "\n"
30993 msgstr ""
30994
30995 # type: verbatim
30996 #. type: verbatim
30997 #: ../fuse/guestmount.pod:13
30998 #, no-wrap
30999 msgid ""
31000 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
31001 "\n"
31002 msgstr ""
31003
31004 # type: textblock
31005 #. type: textblock
31006 #: ../fuse/guestmount.pod:17
31007 msgid ""
31008 "You must I<not> use C<guestmount> in read-write mode on live virtual "
31009 "machines.  If you do this, you risk disk corruption in the VM."
31010 msgstr ""
31011
31012 # type: textblock
31013 #. type: textblock
31014 #: ../fuse/guestmount.pod:22
31015 msgid ""
31016 "The guestmount program can be used to mount virtual machine filesystems and "
31017 "other disk images on the host.  It uses libguestfs for access to the guest "
31018 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31019 "a mountable device."
31020 msgstr ""
31021
31022 # type: textblock
31023 #. type: textblock
31024 #: ../fuse/guestmount.pod:27
31025 msgid ""
31026 "Along with other options, you have to give at least one device (I<-a> "
31027 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31028 "option) or use the I<-i> inspection option.  How this works is better "
31029 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31030 "below."
31031 msgstr ""
31032
31033 # type: textblock
31034 #. type: textblock
31035 #: ../fuse/guestmount.pod:33
31036 msgid ""
31037 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31038 "by you, and the filesystem will not be visible to any other users unless you "
31039 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31040 "the filesystem, use the C<fusermount -u> command."
31041 msgstr ""
31042
31043 # type: textblock
31044 #. type: textblock
31045 #: ../fuse/guestmount.pod:41
31046 msgid ""
31047 "For a typical Windows guest which has its main filesystem on the first "
31048 "partition:"
31049 msgstr ""
31050
31051 # type: verbatim
31052 #. type: verbatim
31053 #: ../fuse/guestmount.pod:44
31054 #, no-wrap
31055 msgid ""
31056 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31057 "\n"
31058 msgstr ""
31059
31060 # type: textblock
31061 #. type: textblock
31062 #: ../fuse/guestmount.pod:46
31063 msgid ""
31064 "For a typical Linux guest which has a /boot filesystem on the first "
31065 "partition, and the root filesystem on a logical volume:"
31066 msgstr ""
31067
31068 # type: verbatim
31069 #. type: verbatim
31070 #: ../fuse/guestmount.pod:49
31071 #, no-wrap
31072 msgid ""
31073 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31074 "\n"
31075 msgstr ""
31076
31077 # type: textblock
31078 #. type: textblock
31079 #: ../fuse/guestmount.pod:51
31080 msgid "To get libguestfs to detect guest mountpoints for you:"
31081 msgstr ""
31082
31083 # type: verbatim
31084 #. type: verbatim
31085 #: ../fuse/guestmount.pod:53
31086 #, no-wrap
31087 msgid ""
31088 " guestmount -a guest.img -i --ro /mnt\n"
31089 "\n"
31090 msgstr ""
31091
31092 # type: textblock
31093 #. type: textblock
31094 #: ../fuse/guestmount.pod:55
31095 msgid "For a libvirt guest called \"Guest\" you could do:"
31096 msgstr ""
31097
31098 # type: verbatim
31099 #. type: verbatim
31100 #: ../fuse/guestmount.pod:57
31101 #, no-wrap
31102 msgid ""
31103 " guestmount -d Guest -i --ro /mnt\n"
31104 "\n"
31105 msgstr ""
31106
31107 # type: textblock
31108 #. type: textblock
31109 #: ../fuse/guestmount.pod:59
31110 msgid ""
31111 "If you don't know what filesystems are contained in a guest or disk image, "
31112 "use L<virt-filesystems(1)> first:"
31113 msgstr ""
31114
31115 # type: verbatim
31116 #. type: verbatim
31117 #: ../fuse/guestmount.pod:62
31118 #, no-wrap
31119 msgid ""
31120 " virt-filesystems MyGuest\n"
31121 "\n"
31122 msgstr ""
31123
31124 # type: textblock
31125 #. type: textblock
31126 #: ../fuse/guestmount.pod:64
31127 msgid ""
31128 "If you want to trace the libguestfs calls but without excessive debugging "
31129 "information, we recommend:"
31130 msgstr ""
31131
31132 # type: verbatim
31133 #. type: verbatim
31134 #: ../fuse/guestmount.pod:67
31135 #, no-wrap
31136 msgid ""
31137 " guestmount [...] --trace /mnt\n"
31138 "\n"
31139 msgstr ""
31140
31141 # type: textblock
31142 #. type: textblock
31143 #: ../fuse/guestmount.pod:69
31144 msgid "If you want to debug the program, we recommend:"
31145 msgstr ""
31146
31147 # type: verbatim
31148 #. type: verbatim
31149 #: ../fuse/guestmount.pod:71
31150 #, no-wrap
31151 msgid ""
31152 " guestmount [...] --trace --verbose /mnt\n"
31153 "\n"
31154 msgstr ""
31155
31156 # type: =item
31157 #. type: =item
31158 #: ../fuse/guestmount.pod:77
31159 msgid "B<-a image> | B<--add image>"
31160 msgstr ""
31161
31162 # type: textblock
31163 #. type: textblock
31164 #: ../fuse/guestmount.pod:79
31165 msgid "Add a block device or virtual machine image."
31166 msgstr ""
31167
31168 # type: =item
31169 #. type: =item
31170 #: ../fuse/guestmount.pod:84
31171 msgid "B<-c URI> | B<--connect URI>"
31172 msgstr ""
31173
31174 # type: =item
31175 #. type: =item
31176 #: ../fuse/guestmount.pod:90
31177 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
31178 msgstr ""
31179
31180 # type: =item
31181 #. type: =item
31182 #: ../fuse/guestmount.pod:96
31183 msgid "B<--dir-cache-timeout N>"
31184 msgstr ""
31185
31186 # type: textblock
31187 #. type: textblock
31188 #: ../fuse/guestmount.pod:98
31189 msgid ""
31190 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
31191 "seconds.  The readdir cache [actually, there are several semi-independent "
31192 "caches] is populated after a readdir(2) call with the stat and extended "
31193 "attributes of the files in the directory, in anticipation that they will be "
31194 "requested soon after."
31195 msgstr ""
31196
31197 # type: textblock
31198 #. type: textblock
31199 #: ../fuse/guestmount.pod:104
31200 msgid ""
31201 "There is also a different attribute cache implemented by FUSE (see the FUSE "
31202 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
31203 "requests, only cache existing ones."
31204 msgstr ""
31205
31206 # type: =item
31207 #. type: =item
31208 #: ../fuse/guestmount.pod:115
31209 msgid "B<--format=raw|qcow2|..> | B<--format>"
31210 msgstr ""
31211
31212 # type: textblock
31213 #. type: textblock
31214 #: ../fuse/guestmount.pod:122
31215 msgid ""
31216 "If you have untrusted raw-format guest disk images, you should use this "
31217 "option to specify the disk format.  This avoids a possible security problem "
31218 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
31219 "guestfs_add_drive_opts>."
31220 msgstr ""
31221
31222 # type: =item
31223 #. type: =item
31224 #: ../fuse/guestmount.pod:127
31225 msgid "B<--fuse-help>"
31226 msgstr ""
31227
31228 # type: textblock
31229 #. type: textblock
31230 #: ../fuse/guestmount.pod:129
31231 msgid "Display help on special FUSE options (see I<-o> below)."
31232 msgstr ""
31233
31234 # type: textblock
31235 #. type: textblock
31236 #: ../fuse/guestmount.pod:133
31237 msgid "Display brief help and exit."
31238 msgstr ""
31239
31240 # type: =item
31241 #. type: =item
31242 #: ../fuse/guestmount.pod:135
31243 msgid "B<-i> | B<--inspector>"
31244 msgstr ""
31245
31246 # type: =item
31247 #. type: =item
31248 #: ../fuse/guestmount.pod:146
31249 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
31250 msgstr ""
31251
31252 # type: textblock
31253 #. type: textblock
31254 #: ../fuse/guestmount.pod:148
31255 msgid ""
31256 "Mount the named partition or logical volume on the given mountpoint B<in the "
31257 "guest> (this has nothing to do with mountpoints in the host)."
31258 msgstr ""
31259
31260 # type: textblock
31261 #. type: textblock
31262 #: ../fuse/guestmount.pod:151
31263 msgid ""
31264 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
31265 "something on C</>."
31266 msgstr ""
31267
31268 # type: =item
31269 #. type: =item
31270 #: ../fuse/guestmount.pod:154
31271 msgid "B<-n> | B<--no-sync>"
31272 msgstr ""
31273
31274 # type: textblock
31275 #. type: textblock
31276 #: ../fuse/guestmount.pod:156
31277 msgid ""
31278 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
31279 "unmounted.  If you specify this option, then we don't attempt to sync the "
31280 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
31281 msgstr ""
31282
31283 # type: =item
31284 #. type: =item
31285 #: ../fuse/guestmount.pod:161
31286 msgid "B<-o option> | B<--option option>"
31287 msgstr ""
31288
31289 # type: textblock
31290 #. type: textblock
31291 #: ../fuse/guestmount.pod:163
31292 msgid "Pass extra options to FUSE."
31293 msgstr ""
31294
31295 # type: textblock
31296 #. type: textblock
31297 #: ../fuse/guestmount.pod:165
31298 msgid ""
31299 "To get a list of all the extra options supported by FUSE, use the command "
31300 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
31301 "of them are a good idea."
31302 msgstr ""
31303
31304 # type: verbatim
31305 #. type: verbatim
31306 #: ../fuse/guestmount.pod:169
31307 #, no-wrap
31308 msgid ""
31309 " guestmount --fuse-help\n"
31310 "\n"
31311 msgstr ""
31312
31313 # type: textblock
31314 #. type: textblock
31315 #: ../fuse/guestmount.pod:171
31316 msgid "Some potentially useful FUSE options:"
31317 msgstr ""
31318
31319 # type: =item
31320 #. type: =item
31321 #: ../fuse/guestmount.pod:175
31322 msgid "B<-o allow_other>"
31323 msgstr ""
31324
31325 # type: textblock
31326 #. type: textblock
31327 #: ../fuse/guestmount.pod:177
31328 msgid "Allow other users to see the filesystem."
31329 msgstr ""
31330
31331 # type: =item
31332 #. type: =item
31333 #: ../fuse/guestmount.pod:179
31334 msgid "B<-o attr_timeout=N>"
31335 msgstr ""
31336
31337 # type: textblock
31338 #. type: textblock
31339 #: ../fuse/guestmount.pod:181
31340 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
31341 msgstr ""
31342
31343 # type: =item
31344 #. type: =item
31345 #: ../fuse/guestmount.pod:183
31346 msgid "B<-o kernel_cache>"
31347 msgstr ""
31348
31349 # type: textblock
31350 #. type: textblock
31351 #: ../fuse/guestmount.pod:185
31352 msgid ""
31353 "Allow the kernel to cache files (reduces the number of reads that have to go "
31354 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
31355 "afford the extra memory usage."
31356 msgstr ""
31357
31358 # type: =item
31359 #. type: =item
31360 #: ../fuse/guestmount.pod:189
31361 msgid "B<-o uid=N> B<-o gid=N>"
31362 msgstr ""
31363
31364 # type: textblock
31365 #. type: textblock
31366 #: ../fuse/guestmount.pod:191
31367 msgid ""
31368 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
31369 "the chosen values."
31370 msgstr ""
31371
31372 # type: =item
31373 #. type: =item
31374 #: ../fuse/guestmount.pod:196
31375 msgid "B<-r> | B<--ro>"
31376 msgstr ""
31377
31378 # type: textblock
31379 #. type: textblock
31380 #: ../fuse/guestmount.pod:198
31381 msgid ""
31382 "Add devices and mount everything read-only.  Also disallow writes and make "
31383 "the disk appear read-only to FUSE."
31384 msgstr ""
31385
31386 # type: textblock
31387 #. type: textblock
31388 #: ../fuse/guestmount.pod:201
31389 msgid ""
31390 "This is highly recommended if you are not going to edit the guest disk.  If "
31391 "the guest is running and this option is I<not> supplied, then there is a "
31392 "strong risk of disk corruption in the guest.  We try to prevent this from "
31393 "happening, but it is not always possible."
31394 msgstr ""
31395
31396 # type: textblock
31397 #. type: textblock
31398 #: ../fuse/guestmount.pod:206
31399 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31400 msgstr ""
31401
31402 # type: textblock
31403 #. type: textblock
31404 #: ../fuse/guestmount.pod:210
31405 msgid "Enable SELinux support for the guest."
31406 msgstr ""
31407
31408 # type: =item
31409 #. type: =item
31410 #: ../fuse/guestmount.pod:212
31411 msgid "B<-v> | B<--verbose>"
31412 msgstr ""
31413
31414 # type: textblock
31415 #. type: textblock
31416 #: ../fuse/guestmount.pod:214
31417 msgid "Enable verbose messages from underlying libguestfs."
31418 msgstr ""
31419
31420 # type: =item
31421 #. type: =item
31422 #: ../fuse/guestmount.pod:216
31423 msgid "B<-V> | B<--version>"
31424 msgstr ""
31425
31426 # type: textblock
31427 #. type: textblock
31428 #: ../fuse/guestmount.pod:218
31429 msgid "Display the program version and exit."
31430 msgstr ""
31431
31432 # type: =item
31433 #. type: =item
31434 #: ../fuse/guestmount.pod:220
31435 msgid "B<-w> | B<--rw>"
31436 msgstr ""
31437
31438 # type: textblock
31439 #. type: textblock
31440 #: ../fuse/guestmount.pod:222
31441 msgid ""
31442 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
31443 "FOR READ AND WRITE>."
31444 msgstr ""
31445
31446 # type: =item
31447 #. type: =item
31448 #: ../fuse/guestmount.pod:225
31449 msgid "B<-x> | B<--trace>"
31450 msgstr ""
31451
31452 # type: textblock
31453 #. type: textblock
31454 #: ../fuse/guestmount.pod:227
31455 msgid "Trace libguestfs calls and entry into each FUSE function."
31456 msgstr ""
31457
31458 # type: textblock
31459 #. type: textblock
31460 #: ../fuse/guestmount.pod:229
31461 msgid "This also stops the daemon from forking into the background."
31462 msgstr ""
31463
31464 # type: textblock
31465 #. type: textblock
31466 #: ../fuse/guestmount.pod:235
31467 msgid ""
31468 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
31469 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
31470 "net/>."
31471 msgstr ""
31472
31473 # type: textblock
31474 #. type: textblock
31475 #: ../tools/virt-edit.pl:34
31476 msgid "virt-edit - Edit a file in a virtual machine"
31477 msgstr ""
31478
31479 # type: verbatim
31480 #. type: verbatim
31481 #: ../tools/virt-edit.pl:38
31482 #, no-wrap
31483 msgid ""
31484 " virt-edit [--options] domname file\n"
31485 "\n"
31486 msgstr ""
31487
31488 # type: verbatim
31489 #. type: verbatim
31490 #: ../tools/virt-edit.pl:40
31491 #, no-wrap
31492 msgid ""
31493 " virt-edit [--options] disk.img [disk.img ...] file\n"
31494 "\n"
31495 msgstr ""
31496
31497 # type: verbatim
31498 #. type: verbatim
31499 #: ../tools/virt-edit.pl:42
31500 #, no-wrap
31501 msgid ""
31502 " virt-edit [domname|disk.img] file -e 'expr'\n"
31503 "\n"
31504 msgstr ""
31505
31506 # type: textblock
31507 #. type: textblock
31508 #: ../tools/virt-edit.pl:46
31509 msgid ""
31510 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
31511 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
31512 "doing this, but doesn't catch all cases."
31513 msgstr ""
31514
31515 # type: textblock
31516 #. type: textblock
31517 #: ../tools/virt-edit.pl:52
31518 msgid ""
31519 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
31520 "the named virtual machine (or disk image)."
31521 msgstr ""
31522
31523 # type: textblock
31524 #. type: textblock
31525 #: ../tools/virt-edit.pl:55
31526 msgid ""
31527 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
31528 "you should look at the L<guestfish(1)> tool."
31529 msgstr ""
31530
31531 # type: textblock
31532 #. type: textblock
31533 #: ../tools/virt-edit.pl:60
31534 msgid "Edit the named files interactively:"
31535 msgstr ""
31536
31537 # type: verbatim
31538 #. type: verbatim
31539 #: ../tools/virt-edit.pl:62
31540 #, no-wrap
31541 msgid ""
31542 " virt-edit mydomain /boot/grub/grub.conf\n"
31543 "\n"
31544 msgstr ""
31545
31546 # type: verbatim
31547 #. type: verbatim
31548 #: ../tools/virt-edit.pl:64
31549 #, no-wrap
31550 msgid ""
31551 " virt-edit mydomain /etc/passwd\n"
31552 "\n"
31553 msgstr ""
31554
31555 # type: textblock
31556 #. type: textblock
31557 #: ../tools/virt-edit.pl:66
31558 msgid ""
31559 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
31560 "below).  To change the init default level to 5:"
31561 msgstr ""
31562
31563 # type: verbatim
31564 #. type: verbatim
31565 #: ../tools/virt-edit.pl:70
31566 #, no-wrap
31567 msgid ""
31568 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
31569 "\n"
31570 msgstr ""
31571
31572 # type: textblock
31573 #. type: textblock
31574 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
31575 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
31576 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
31577 msgid "Display brief help."
31578 msgstr ""
31579
31580 # type: textblock
31581 #. type: textblock
31582 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
31583 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
31584 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
31585 #: ../tools/virt-list-partitions.pl:72
31586 msgid "Display version number and exit."
31587 msgstr ""
31588
31589 # type: =item
31590 #. type: =item
31591 #: ../tools/virt-edit.pl:96
31592 msgid "B<--backup extension> | B<-b extension>"
31593 msgstr ""
31594
31595 # type: textblock
31596 #. type: textblock
31597 #: ../tools/virt-edit.pl:98
31598 msgid ""
31599 "Create a backup of the original file I<in the guest disk image>.  The backup "
31600 "has the original filename with C<extension> added."
31601 msgstr ""
31602
31603 # type: textblock
31604 #. type: textblock
31605 #: ../tools/virt-edit.pl:101
31606 msgid ""
31607 "Usually the first character of C<extension> would be a dot C<.> so you would "
31608 "write:"
31609 msgstr ""
31610
31611 # type: verbatim
31612 #. type: verbatim
31613 #: ../tools/virt-edit.pl:104
31614 #, no-wrap
31615 msgid ""
31616 " virt-edit -b .orig [etc]\n"
31617 "\n"
31618 msgstr ""
31619
31620 # type: textblock
31621 #. type: textblock
31622 #: ../tools/virt-edit.pl:106
31623 msgid "By default, no backup file is made."
31624 msgstr ""
31625
31626 # type: =item
31627 #. type: =item
31628 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
31629 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
31630 #: ../tools/virt-list-partitions.pl:78
31631 msgid "B<--connect URI> | B<-c URI>"
31632 msgstr ""
31633
31634 # type: textblock
31635 #. type: textblock
31636 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
31637 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
31638 #: ../tools/virt-list-partitions.pl:80
31639 msgid ""
31640 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
31641 "to the default libvirt hypervisor."
31642 msgstr ""
31643
31644 # type: textblock
31645 #. type: textblock
31646 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
31647 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
31648 #: ../tools/virt-list-partitions.pl:83
31649 msgid ""
31650 "If you specify guest block devices directly, then libvirt is not used at all."
31651 msgstr ""
31652
31653 # type: =item
31654 #. type: =item
31655 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
31656 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
31657 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
31658 msgid "B<--format> raw"
31659 msgstr ""
31660
31661 # type: textblock
31662 #. type: textblock
31663 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
31664 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
31665 #: ../tools/virt-list-partitions.pl:92
31666 msgid ""
31667 "Specify the format of disk images given on the command line.  If this is "
31668 "omitted then the format is autodetected from the content of the disk image."
31669 msgstr ""
31670
31671 # type: textblock
31672 #. type: textblock
31673 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
31674 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
31675 #: ../tools/virt-list-partitions.pl:96
31676 msgid ""
31677 "If disk images are requested from libvirt, then this program asks libvirt "
31678 "for this information.  In this case, the value of the format parameter is "
31679 "ignored."
31680 msgstr ""
31681
31682 # type: textblock
31683 #. type: textblock
31684 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
31685 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
31686 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
31687 #: ../tools/virt-list-partitions.pl:100
31688 msgid ""
31689 "If working with untrusted raw-format guest disk images, you should ensure "
31690 "the format is always specified."
31691 msgstr ""
31692
31693 # type: =item
31694 #. type: =item
31695 #: ../tools/virt-edit.pl:141
31696 msgid "B<--expr EXPR> | B<-e EXPR>"
31697 msgstr ""
31698
31699 # type: textblock
31700 #. type: textblock
31701 #: ../tools/virt-edit.pl:143
31702 msgid ""
31703 "Instead of launching the external editor, non-interactively apply the Perl "
31704 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
31705 "EDITING> below."
31706 msgstr ""
31707
31708 # type: textblock
31709 #. type: textblock
31710 #: ../tools/virt-edit.pl:147
31711 msgid ""
31712 "Be careful to properly quote the expression to prevent it from being altered "
31713 "by the shell."
31714 msgstr ""
31715
31716 # type: =head1
31717 #. type: =head1
31718 #: ../tools/virt-edit.pl:268
31719 msgid "NON-INTERACTIVE EDITING"
31720 msgstr ""
31721
31722 # type: textblock
31723 #. type: textblock
31724 #: ../tools/virt-edit.pl:270
31725 msgid ""
31726 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
31727 "administrator can interactively edit the file."
31728 msgstr ""
31729
31730 # type: textblock
31731 #. type: textblock
31732 #: ../tools/virt-edit.pl:273
31733 msgid ""
31734 "There are two ways also to use C<virt-edit> from scripts in order to make "
31735 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
31736 "like this, it's less error-prone to write scripts directly using the "
31737 "libguestfs API and Augeas for configuration file editing.)"
31738 msgstr ""
31739
31740 # type: textblock
31741 #. type: textblock
31742 #: ../tools/virt-edit.pl:279
31743 msgid ""
31744 "The first method is to temporarily set C<$EDITOR> to any script or program "
31745 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
31746 "update C<tmpfile> in place however it likes."
31747 msgstr ""
31748
31749 # type: textblock
31750 #. type: textblock
31751 #: ../tools/virt-edit.pl:283
31752 msgid ""
31753 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
31754 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
31755 "instances of C<foo> with C<bar> in a file:"
31756 msgstr ""
31757
31758 # type: verbatim
31759 #. type: verbatim
31760 #: ../tools/virt-edit.pl:287
31761 #, no-wrap
31762 msgid ""
31763 " virt-edit domname filename -e 's/foo/bar/'\n"
31764 "\n"
31765 msgstr ""
31766
31767 # type: textblock
31768 #. type: textblock
31769 #: ../tools/virt-edit.pl:289
31770 msgid ""
31771 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
31772 "For example to delete root's password you could do:"
31773 msgstr ""
31774
31775 # type: verbatim
31776 #. type: verbatim
31777 #: ../tools/virt-edit.pl:292
31778 #, no-wrap
31779 msgid ""
31780 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
31781 "\n"
31782 msgstr ""
31783
31784 # type: textblock
31785 #. type: textblock
31786 #: ../tools/virt-edit.pl:294
31787 msgid ""
31788 "What really happens is that the snippet is evaluated as a Perl expression "
31789 "for each line of the file.  The line, including the final C<\\n>, is passed "
31790 "in C<$_> and the expression should update C<$_> or leave it unchanged."
31791 msgstr ""
31792
31793 # type: textblock
31794 #. type: textblock
31795 #: ../tools/virt-edit.pl:299
31796 msgid ""
31797 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
31798 "C<apache> user account from the password file you can do:"
31799 msgstr ""
31800
31801 # type: verbatim
31802 #. type: verbatim
31803 #: ../tools/virt-edit.pl:302
31804 #, no-wrap
31805 msgid ""
31806 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
31807 "\n"
31808 msgstr ""
31809
31810 # type: textblock
31811 #. type: textblock
31812 #: ../tools/virt-edit.pl:304
31813 msgid ""
31814 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
31815 "the end of the file is rather difficult this way since there is no concept "
31816 "of \"last line of the file\" - your expression just doesn't get called "
31817 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
31818 "want to do this."
31819 msgstr ""
31820
31821 # type: textblock
31822 #. type: textblock
31823 #: ../tools/virt-edit.pl:310
31824 msgid ""
31825 "The variable C<$lineno> contains the current line number.  As is "
31826 "traditional, the first line in the file is number C<1>."
31827 msgstr ""
31828
31829 # type: textblock
31830 #. type: textblock
31831 #: ../tools/virt-edit.pl:313
31832 msgid ""
31833 "The return value from the expression is ignored, but the expression may call "
31834 "C<die> in order to abort the whole program, leaving the original file "
31835 "untouched."
31836 msgstr ""
31837
31838 # type: textblock
31839 #. type: textblock
31840 #: ../tools/virt-edit.pl:317
31841 msgid ""
31842 "Remember when matching the end of a line that C<$_> may contain the final C<"
31843 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
31844 "newline then neither of these.  Thus to match or substitute some text at the "
31845 "end of a line, use this regular expression:"
31846 msgstr ""
31847
31848 # type: verbatim
31849 #. type: verbatim
31850 #: ../tools/virt-edit.pl:322
31851 #, no-wrap
31852 msgid ""
31853 " /some text(\\r?\\n)?$/\n"
31854 "\n"
31855 msgstr ""
31856
31857 # type: textblock
31858 #. type: textblock
31859 #: ../tools/virt-edit.pl:324
31860 msgid ""
31861 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
31862 "$_> itself (since that would remove all newlines from the file):"
31863 msgstr ""
31864
31865 # type: verbatim
31866 #. type: verbatim
31867 #: ../tools/virt-edit.pl:328
31868 #, no-wrap
31869 msgid ""
31870 " my $m = $_; chomp $m; $m =~ /some text$/\n"
31871 "\n"
31872 msgstr ""
31873
31874 # type: =item
31875 #. type: =item
31876 #: ../tools/virt-edit.pl:334
31877 msgid "C<EDITOR>"
31878 msgstr ""
31879
31880 # type: textblock
31881 #. type: textblock
31882 #: ../tools/virt-edit.pl:336
31883 msgid ""
31884 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
31885 "\"emacs -nw\">"
31886 msgstr ""
31887
31888 # type: textblock
31889 #. type: textblock
31890 #: ../tools/virt-edit.pl:339
31891 msgid "If not set, C<vi> is used."
31892 msgstr ""
31893
31894 # type: =head2
31895 #. type: =head1
31896 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
31897 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
31898 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:527
31899 #: ../tools/virt-list-partitions.pl:250
31900 msgid "SHELL QUOTING"
31901 msgstr ""
31902
31903 # type: textblock
31904 #. type: textblock
31905 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
31906 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
31907 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:529
31908 #: ../tools/virt-list-partitions.pl:252
31909 msgid ""
31910 "Libvirt guest names can contain arbitrary characters, some of which have "
31911 "meaning to the shell such as C<#> and space.  You may need to quote or "
31912 "escape these characters on the command line.  See the shell manual page L<sh"
31913 "(1)> for details."
31914 msgstr ""
31915
31916 #. type: textblock
31917 #: ../tools/virt-edit.pl:352
31918 msgid ""
31919 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
31920 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
31921 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
31922 msgstr ""
31923
31924 # type: =head1
31925 #. type: =head1
31926 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
31927 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
31928 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:559
31929 #: ../tools/virt-list-partitions.pl:269
31930 msgid "AUTHOR"
31931 msgstr ""
31932
31933 # type: textblock
31934 #. type: textblock
31935 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
31936 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
31937 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:561
31938 #: ../tools/virt-list-partitions.pl:271
31939 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
31940 msgstr ""
31941
31942 # type: textblock
31943 #. type: textblock
31944 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
31945 msgid "Copyright (C) 2009-2010 Red Hat Inc."
31946 msgstr ""
31947
31948 # type: textblock
31949 #. type: textblock
31950 #: ../tools/virt-win-reg.pl:37
31951 msgid ""
31952 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
31953 msgstr ""
31954
31955 # type: verbatim
31956 #. type: verbatim
31957 #: ../tools/virt-win-reg.pl:41
31958 #, no-wrap
31959 msgid ""
31960 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
31961 "\n"
31962 msgstr ""
31963
31964 # type: verbatim
31965 #. type: verbatim
31966 #: ../tools/virt-win-reg.pl:43
31967 #, no-wrap
31968 msgid ""
31969 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
31970 "\n"
31971 msgstr ""
31972
31973 # type: verbatim
31974 #. type: verbatim
31975 #: ../tools/virt-win-reg.pl:45
31976 #, no-wrap
31977 msgid ""
31978 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
31979 "\n"
31980 msgstr ""
31981
31982 # type: verbatim
31983 #. type: verbatim
31984 #: ../tools/virt-win-reg.pl:47
31985 #, no-wrap
31986 msgid ""
31987 " virt-win-reg --merge domname [input.reg ...]\n"
31988 "\n"
31989 msgstr ""
31990
31991 # type: verbatim
31992 #. type: verbatim
31993 #: ../tools/virt-win-reg.pl:49
31994 #, no-wrap
31995 msgid ""
31996 " virt-win-reg [--options] disk.img ... # instead of domname\n"
31997 "\n"
31998 msgstr ""
31999
32000 # type: textblock
32001 #. type: textblock
32002 #: ../tools/virt-win-reg.pl:53
32003 msgid ""
32004 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
32005 "virtual machines.  If you do this, you I<will> get irreversible disk "
32006 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
32007 "but doesn't catch all cases."
32008 msgstr ""
32009
32010 # type: textblock
32011 #. type: textblock
32012 #: ../tools/virt-win-reg.pl:58
32013 msgid ""
32014 "Modifying the Windows Registry is an inherently risky operation.  The format "
32015 "is deliberately obscure and undocumented, and Registry changes can leave the "
32016 "system unbootable.  Therefore when using the C<--merge> option, make sure "
32017 "you have a reliable backup first."
32018 msgstr ""
32019
32020 # type: textblock
32021 #. type: textblock
32022 #: ../tools/virt-win-reg.pl:65
32023 msgid ""
32024 "This program can export and merge Windows Registry entries from a Windows "
32025 "guest."
32026 msgstr ""
32027
32028 # type: textblock
32029 #. type: textblock
32030 #: ../tools/virt-win-reg.pl:68
32031 msgid ""
32032 "The first parameter is the libvirt guest name or the raw disk image of a "
32033 "Windows guest."
32034 msgstr ""
32035
32036 # type: textblock
32037 #. type: textblock
32038 #: ../tools/virt-win-reg.pl:71
32039 msgid ""
32040 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
32041 "exported (recursively).  For example:"
32042 msgstr ""
32043
32044 # type: verbatim
32045 #. type: verbatim
32046 #: ../tools/virt-win-reg.pl:74
32047 #, no-wrap
32048 msgid ""
32049 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
32050 "\n"
32051 msgstr ""
32052
32053 # type: textblock
32054 #. type: textblock
32055 #: ../tools/virt-win-reg.pl:76
32056 msgid ""
32057 "You can also display single values from within registry keys, for example:"
32058 msgstr ""
32059
32060 # type: verbatim
32061 #. type: verbatim
32062 #: ../tools/virt-win-reg.pl:79
32063 #, no-wrap
32064 msgid ""
32065 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
32066 " $ virt-win-reg Windows7 $cvkey ProductName\n"
32067 " Windows 7 Enterprise\n"
32068 "\n"
32069 msgstr ""
32070
32071 # type: textblock
32072 #. type: textblock
32073 #: ../tools/virt-win-reg.pl:83
32074 msgid ""
32075 "With C<--merge>, you can merge a textual regedit file into the Windows "
32076 "Registry:"
32077 msgstr ""
32078
32079 # type: verbatim
32080 #. type: verbatim
32081 #: ../tools/virt-win-reg.pl:86
32082 #, no-wrap
32083 msgid ""
32084 " $ virt-win-reg --merge Windows7 changes.reg\n"
32085 "\n"
32086 msgstr ""
32087
32088 # type: =head2
32089 #. type: =head1
32090 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32091 msgid "NOTE"
32092 msgstr ""
32093
32094 # type: textblock
32095 #. type: textblock
32096 #: ../tools/virt-win-reg.pl:90
32097 msgid ""
32098 "This program is only meant for simple access to the registry.  If you want "
32099 "to do complicated things with the registry, we suggest you download the "
32100 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32101 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32102 "L<hivexregedit(1)>."
32103 msgstr ""
32104
32105 # type: =item
32106 #. type: =item
32107 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32108 msgid "B<--debug>"
32109 msgstr ""
32110
32111 # type: textblock
32112 #. type: textblock
32113 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
32114 msgid "Enable debugging messages."
32115 msgstr ""
32116
32117 # type: =item
32118 #. type: =item
32119 #: ../tools/virt-win-reg.pl:157
32120 msgid "B<--merge>"
32121 msgstr ""
32122
32123 # type: textblock
32124 #. type: textblock
32125 #: ../tools/virt-win-reg.pl:159
32126 msgid ""
32127 "In merge mode, this merges a textual regedit file into the Windows Registry "
32128 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32129 "displays or exports Registry entries instead."
32130 msgstr ""
32131
32132 # type: textblock
32133 #. type: textblock
32134 #: ../tools/virt-win-reg.pl:163
32135 msgid ""
32136 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
32137 "result in disk corruption.  However exporting (without this flag)  is always "
32138 "safe."
32139 msgstr ""
32140
32141 # type: =item
32142 #. type: =item
32143 #: ../tools/virt-win-reg.pl:171
32144 msgid "B<--encoding> UTF-16LE|ASCII"
32145 msgstr ""
32146
32147 # type: textblock
32148 #. type: textblock
32149 #: ../tools/virt-win-reg.pl:173
32150 msgid ""
32151 "When merging (only), you may need to specify the encoding for strings to be "
32152 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32153 "(3)/ENCODING STRINGS>."
32154 msgstr ""
32155
32156 # type: textblock
32157 #. type: textblock
32158 #: ../tools/virt-win-reg.pl:177
32159 msgid ""
32160 "The default is to use UTF-16LE, which should work with recent versions of "
32161 "Windows."
32162 msgstr ""
32163
32164 # type: =head2
32165 #. type: =head1
32166 #: ../tools/virt-win-reg.pl:402
32167 msgid "SUPPORTED SYSTEMS"
32168 msgstr ""
32169
32170 # type: textblock
32171 #. type: textblock
32172 #: ../tools/virt-win-reg.pl:404
32173 msgid ""
32174 "The program currently supports Windows NT-derived guests starting with "
32175 "Windows XP through to at least Windows 7."
32176 msgstr ""
32177
32178 # type: textblock
32179 #. type: textblock
32180 #: ../tools/virt-win-reg.pl:407
32181 msgid ""
32182 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32183 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32184 "and C<HKEY_USERS\\.DEFAULT>."
32185 msgstr ""
32186
32187 # type: textblock
32188 #. type: textblock
32189 #: ../tools/virt-win-reg.pl:411
32190 msgid ""
32191 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32192 "C<HKEY_USERS>."
32193 msgstr ""
32194
32195 # type: textblock
32196 #. type: textblock
32197 #: ../tools/virt-win-reg.pl:414
32198 msgid ""
32199 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32200 "time."
32201 msgstr ""
32202
32203 # type: =head2
32204 #. type: =head1
32205 #: ../tools/virt-win-reg.pl:417
32206 msgid "ENCODING"
32207 msgstr ""
32208
32209 # type: textblock
32210 #. type: textblock
32211 #: ../tools/virt-win-reg.pl:419
32212 msgid ""
32213 "C<virt-win-reg> expects that regedit files have already been reencoded in "
32214 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
32215 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
32216 "Windows-style line endings, you may need to reencode the whole file before "
32217 "or after processing."
32218 msgstr ""
32219
32220 # type: textblock
32221 #. type: textblock
32222 #: ../tools/virt-win-reg.pl:425
32223 msgid ""
32224 "To reencode a file from Windows format to Linux (before processing it with "
32225 "the C<--merge> option), you would do something like this:"
32226 msgstr ""
32227
32228 # type: verbatim
32229 #. type: verbatim
32230 #: ../tools/virt-win-reg.pl:428
32231 #, no-wrap
32232 msgid ""
32233 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
32234 "\n"
32235 msgstr ""
32236
32237 # type: textblock
32238 #. type: textblock
32239 #: ../tools/virt-win-reg.pl:430
32240 msgid ""
32241 "To go in the opposite direction, after exporting and before sending the file "
32242 "to a Windows user, do something like this:"
32243 msgstr ""
32244
32245 # type: verbatim
32246 #. type: verbatim
32247 #: ../tools/virt-win-reg.pl:433
32248 #, no-wrap
32249 msgid ""
32250 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
32251 "\n"
32252 msgstr ""
32253
32254 # type: textblock
32255 #. type: textblock
32256 #: ../tools/virt-win-reg.pl:435
32257 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
32258 msgstr ""
32259
32260 # type: textblock
32261 #. type: textblock
32262 #: ../tools/virt-win-reg.pl:437
32263 msgid ""
32264 "If you are unsure about the current encoding, use the L<file(1)> command.  "
32265 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
32266 "style (CRLF) line endings, like this:"
32267 msgstr ""
32268
32269 # type: verbatim
32270 #. type: verbatim
32271 #: ../tools/virt-win-reg.pl:441
32272 #, no-wrap
32273 msgid ""
32274 " $ file software.reg\n"
32275 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
32276 " with CRLF line terminators\n"
32277 "\n"
32278 msgstr ""
32279
32280 # type: textblock
32281 #. type: textblock
32282 #: ../tools/virt-win-reg.pl:445
32283 msgid "This file would need conversion before you could C<--merge> it."
32284 msgstr ""
32285
32286 # type: =head2
32287 #. type: =head1
32288 #: ../tools/virt-win-reg.pl:447
32289 msgid "CurrentControlSet etc."
32290 msgstr ""
32291
32292 # type: textblock
32293 #. type: textblock
32294 #: ../tools/virt-win-reg.pl:449
32295 msgid ""
32296 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
32297 "Registry at the level of the hive file, and therefore you cannot modify "
32298 "these."
32299 msgstr ""
32300
32301 # type: textblock
32302 #. type: textblock
32303 #: ../tools/virt-win-reg.pl:453
32304 msgid ""
32305 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
32306 "circumstances it might refer to another control set.  The way to find out is "
32307 "to look at the C<HKLM\\SYSTEM\\Select> key:"
32308 msgstr ""
32309
32310 # type: verbatim
32311 #. type: verbatim
32312 #: ../tools/virt-win-reg.pl:457
32313 #, no-wrap
32314 msgid ""
32315 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
32316 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
32317 " \"Current\"=dword:00000001\n"
32318 " \"Default\"=dword:00000001\n"
32319 " \"Failed\"=dword:00000000\n"
32320 " \"LastKnownGood\"=dword:00000002\n"
32321 "\n"
32322 msgstr ""
32323
32324 # type: textblock
32325 #. type: textblock
32326 #: ../tools/virt-win-reg.pl:464
32327 msgid "\"Current\" is the one which Windows will choose when it boots."
32328 msgstr ""
32329
32330 # type: textblock
32331 #. type: textblock
32332 #: ../tools/virt-win-reg.pl:466
32333 msgid ""
32334 "Similarly, other C<Current...> keys in the path may need to be replaced."
32335 msgstr ""
32336
32337 # type: =head1
32338 #. type: =head1
32339 #: ../tools/virt-win-reg.pl:469
32340 msgid "WINDOWS TIPS"
32341 msgstr ""
32342
32343 # type: textblock
32344 #. type: textblock
32345 #: ../tools/virt-win-reg.pl:471
32346 msgid ""
32347 "Note that some of these tips modify the guest disk image.  The guest I<must> "
32348 "be shut off, else you will get disk corruption."
32349 msgstr ""
32350
32351 # type: =head2
32352 #. type: =head2
32353 #: ../tools/virt-win-reg.pl:474
32354 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
32355 msgstr ""
32356
32357 # type: textblock
32358 #. type: textblock
32359 #: ../tools/virt-win-reg.pl:476
32360 msgid ""
32361 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
32362 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
32363 "is uploaded into C<C:\\>:"
32364 msgstr ""
32365
32366 # type: verbatim
32367 #. type: verbatim
32368 #: ../tools/virt-win-reg.pl:480
32369 #, no-wrap
32370 msgid ""
32371 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
32372 "\n"
32373 msgstr ""
32374
32375 # type: textblock
32376 #. type: textblock
32377 #: ../tools/virt-win-reg.pl:482
32378 msgid "Prepare a regedit file containing the registry change:"
32379 msgstr ""
32380
32381 # type: verbatim
32382 #. type: verbatim
32383 #: ../tools/virt-win-reg.pl:484
32384 #, no-wrap
32385 msgid ""
32386 " cat > test.reg <<'EOF'\n"
32387 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
32388 " \"Test\"=\"c:\\\\test.bat\"\n"
32389 " EOF\n"
32390 "\n"
32391 msgstr ""
32392
32393 # type: textblock
32394 #. type: textblock
32395 #: ../tools/virt-win-reg.pl:489
32396 msgid ""
32397 "In this example we use the key C<RunOnce> which means that the script will "
32398 "run precisely once when the first user logs in.  If you want it to run every "
32399 "time a user logs in, replace C<RunOnce> with C<Run>."
32400 msgstr ""
32401
32402 # type: textblock
32403 #. type: textblock
32404 #: ../tools/virt-win-reg.pl:493
32405 msgid "Now update the registry:"
32406 msgstr ""
32407
32408 # type: verbatim
32409 #. type: verbatim
32410 #: ../tools/virt-win-reg.pl:495
32411 #, no-wrap
32412 msgid ""
32413 " virt-win-reg --merge WindowsGuest test.reg\n"
32414 "\n"
32415 msgstr ""
32416
32417 # type: =head2
32418 #. type: =head2
32419 #: ../tools/virt-win-reg.pl:497
32420 msgid "INSTALLING A SERVICE"
32421 msgstr ""
32422
32423 # type: textblock
32424 #. type: textblock
32425 #: ../tools/virt-win-reg.pl:499
32426 msgid ""
32427 "This section assumes you are familiar with Windows services, and you either "
32428 "have a program which handles the Windows Service Control Protocol directly "
32429 "or you want to run any program using a service wrapper like SrvAny or the "
32430 "free RHSrvAny."
32431 msgstr ""
32432
32433 # type: textblock
32434 #. type: textblock
32435 #: ../tools/virt-win-reg.pl:504
32436 msgid ""
32437 "First upload the program and optionally the service wrapper.  In this case "
32438 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
32439 msgstr ""
32440
32441 # type: verbatim
32442 #. type: verbatim
32443 #: ../tools/virt-win-reg.pl:508
32444 #, no-wrap
32445 msgid ""
32446 " guestfish -i -d WindowsGuest <<EOF\n"
32447 "   upload rhsrvany.exe /rhsrvany.exe\n"
32448 "   upload test.exe /test.exe\n"
32449 " EOF\n"
32450 "\n"
32451 msgstr ""
32452
32453 # type: textblock
32454 #. type: textblock
32455 #: ../tools/virt-win-reg.pl:513
32456 msgid ""
32457 "Prepare a regedit file containing the registry changes.  In this example, "
32458 "the first registry change is needed for the service itself or the service "
32459 "wrapper (if used).  The second registry change is only needed because I am "
32460 "using the RHSrvAny service wrapper."
32461 msgstr ""
32462
32463 # type: verbatim
32464 #. type: verbatim
32465 #: ../tools/virt-win-reg.pl:518
32466 #, no-wrap
32467 msgid ""
32468 " cat > service.reg <<'EOF'\n"
32469 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
32470 " \"Type\"=dword:00000010\n"
32471 " \"Start\"=dword:00000002\n"
32472 " \"ErrorControl\"=dword:00000001\n"
32473 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
32474 " \"DisplayName\"=\"RHSrvAny\"\n"
32475 " \"ObjectName\"=\"NetworkService\"\n"
32476 " \n"
32477 msgstr ""
32478
32479 # type: verbatim
32480 #. type: verbatim
32481 #: ../tools/virt-win-reg.pl:527
32482 #, no-wrap
32483 msgid ""
32484 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
32485 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
32486 " \"PWD\"=\"c:\\\\Temp\"\n"
32487 " EOF\n"
32488 "\n"
32489 msgstr ""
32490
32491 # type: textblock
32492 #. type: textblock
32493 #: ../tools/virt-win-reg.pl:538
32494 msgid ""
32495 "For use of C<ControlSet001> see the section above in this manual page.  You "
32496 "may need to adjust this according to the control set that is in use by the "
32497 "guest."
32498 msgstr ""
32499
32500 # type: textblock
32501 #. type: textblock
32502 #: ../tools/virt-win-reg.pl:544
32503 msgid ""
32504 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
32505 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
32506 "privileged account."
32507 msgstr ""
32508
32509 # type: textblock
32510 #. type: textblock
32511 #: ../tools/virt-win-reg.pl:550
32512 msgid ""
32513 "For the meaning of the magic numbers, see this Microsoft KB article: "
32514 "L<http://support.microsoft.com/kb/103000>."
32515 msgstr ""
32516
32517 # type: textblock
32518 #. type: textblock
32519 #: ../tools/virt-win-reg.pl:555
32520 msgid "Update the registry:"
32521 msgstr ""
32522
32523 # type: verbatim
32524 #. type: verbatim
32525 #: ../tools/virt-win-reg.pl:557
32526 #, no-wrap
32527 msgid ""
32528 " virt-win-reg --merge WindowsGuest service.reg\n"
32529 "\n"
32530 msgstr ""
32531
32532 # type: textblock
32533 #. type: textblock
32534 #: ../tools/virt-win-reg.pl:561
32535 msgid ""
32536 "Be careful when passing parameters containing C<\\> (backslash) in the "
32537 "shell.  Usually you will have to use 'single quotes' or double backslashes "
32538 "(but not both) to protect them from the shell."
32539 msgstr ""
32540
32541 # type: textblock
32542 #. type: textblock
32543 #: ../tools/virt-win-reg.pl:565
32544 msgid "Paths and value names are case-insensitive."
32545 msgstr ""
32546
32547 # type: textblock
32548 #. type: textblock
32549 #: ../tools/virt-win-reg.pl:574
32550 msgid ""
32551 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
32552 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
32553 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32554 msgstr ""
32555
32556 # type: textblock
32557 #. type: textblock
32558 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
32559 msgid ""
32560 "When reporting bugs, please enable debugging and capture the I<complete> "
32561 "output:"
32562 msgstr ""
32563
32564 # type: verbatim
32565 #. type: verbatim
32566 #: ../tools/virt-win-reg.pl:592
32567 #, no-wrap
32568 msgid ""
32569 " export LIBGUESTFS_DEBUG=1\n"
32570 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
32571 "\n"
32572 msgstr ""
32573
32574 # type: textblock
32575 #. type: textblock
32576 #: ../tools/virt-win-reg.pl:595
32577 msgid ""
32578 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
32579 "redhat.com/>"
32580 msgstr ""
32581
32582 # type: textblock
32583 #. type: textblock
32584 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
32585 #: ../tools/virt-make-fs.pl:565
32586 msgid "Copyright (C) 2010 Red Hat Inc."
32587 msgstr ""
32588
32589 # type: textblock
32590 #. type: textblock
32591 #: ../tools/virt-resize.pl:42
32592 msgid "virt-resize - Resize a virtual machine disk"
32593 msgstr ""
32594
32595 # type: verbatim
32596 #. type: verbatim
32597 #: ../tools/virt-resize.pl:46
32598 #, no-wrap
32599 msgid ""
32600 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
32601 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
32602 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
32603 "\n"
32604 msgstr ""
32605
32606 # type: textblock
32607 #. type: textblock
32608 #: ../tools/virt-resize.pl:52
32609 msgid ""
32610 "Virt-resize is a tool which can resize a virtual machine disk, making it "
32611 "larger or smaller overall, and resizing or deleting any partitions contained "
32612 "within."
32613 msgstr ""
32614
32615 # type: textblock
32616 #. type: textblock
32617 #: ../tools/virt-resize.pl:56
32618 msgid ""
32619 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
32620 "not> be used on live virtual machines - for consistent results, shut the "
32621 "virtual machine down before resizing it."
32622 msgstr ""
32623
32624 # type: textblock
32625 #. type: textblock
32626 #: ../tools/virt-resize.pl:60
32627 msgid ""
32628 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
32629 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
32630 msgstr ""
32631
32632 # type: textblock
32633 #. type: textblock
32634 #: ../tools/virt-resize.pl:66
32635 msgid ""
32636 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
32637 "fill the extra 5GB of space."
32638 msgstr ""
32639
32640 #. type: verbatim
32641 #: ../tools/virt-resize.pl:69
32642 #, no-wrap
32643 msgid ""
32644 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
32645 " virt-filesystems --long -h --all -a olddisk\n"
32646 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
32647 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
32648 "\n"
32649 msgstr ""
32650
32651 # type: textblock
32652 #. type: textblock
32653 #: ../tools/virt-resize.pl:74
32654 msgid ""
32655 "As above, but make the /boot partition 200MB bigger, while giving the "
32656 "remaining space to /dev/sda2:"
32657 msgstr ""
32658
32659 # type: verbatim
32660 #. type: verbatim
32661 #: ../tools/virt-resize.pl:77
32662 #, no-wrap
32663 msgid ""
32664 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
32665 "\n"
32666 msgstr ""
32667
32668 # type: textblock
32669 #. type: textblock
32670 #: ../tools/virt-resize.pl:79
32671 msgid "As above, but the output format will be uncompressed qcow2:"
32672 msgstr ""
32673
32674 # type: verbatim
32675 #. type: verbatim
32676 #: ../tools/virt-resize.pl:81
32677 #, no-wrap
32678 msgid ""
32679 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
32680 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
32681 "\n"
32682 msgstr ""
32683
32684 # type: =head1
32685 #. type: =head1
32686 #: ../tools/virt-resize.pl:84
32687 msgid "DETAILED USAGE"
32688 msgstr ""
32689
32690 # type: =head2
32691 #. type: =head2
32692 #: ../tools/virt-resize.pl:86
32693 msgid "EXPANDING A VIRTUAL MACHINE DISK"
32694 msgstr ""
32695
32696 # type: =item
32697 #. type: =item
32698 #: ../tools/virt-resize.pl:90
32699 msgid "1. Shut down the virtual machine"
32700 msgstr ""
32701
32702 # type: =item
32703 #. type: =item
32704 #: ../tools/virt-resize.pl:92
32705 msgid "2. Locate input disk image"
32706 msgstr ""
32707
32708 # type: textblock
32709 #. type: textblock
32710 #: ../tools/virt-resize.pl:94
32711 msgid ""
32712 "Locate the input disk image (ie. the file or device on the host containing "
32713 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
32714 "dumpxml> like this to find the disk image name:"
32715 msgstr ""
32716
32717 # type: verbatim
32718 #. type: verbatim
32719 #: ../tools/virt-resize.pl:98
32720 #, no-wrap
32721 msgid ""
32722 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
32723 " Found 1 nodes:\n"
32724 " -- NODE --\n"
32725 " <source dev=\"/dev/vg/lv_guest\" />\n"
32726 "\n"
32727 msgstr ""
32728
32729 # type: =item
32730 #. type: =item
32731 #: ../tools/virt-resize.pl:103
32732 msgid "3. Look at current sizing"
32733 msgstr ""
32734
32735 # type: textblock
32736 #. type: textblock
32737 #: ../tools/virt-resize.pl:105
32738 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
32739 msgstr ""
32740
32741 # type: verbatim
32742 #. type: verbatim
32743 #: ../tools/virt-resize.pl:108
32744 #, no-wrap
32745 msgid ""
32746 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
32747 " Name       Type       Size  Parent\n"
32748 " /dev/sda1  partition  101M  /dev/sda\n"
32749 " /dev/sda2  partition  7.9G  /dev/sda\n"
32750 " /dev/sda   device     8.0G  -\n"
32751 "\n"
32752 msgstr ""
32753
32754 # type: textblock
32755 #. type: textblock
32756 #: ../tools/virt-resize.pl:114
32757 msgid ""
32758 "(This example is a virtual machine with an 8 GB disk which we would like to "
32759 "expand up to 10 GB)."
32760 msgstr ""
32761
32762 # type: =item
32763 #. type: =item
32764 #: ../tools/virt-resize.pl:117
32765 msgid "4. Create output disk"
32766 msgstr ""
32767
32768 # type: textblock
32769 #. type: textblock
32770 #: ../tools/virt-resize.pl:119
32771 msgid ""
32772 "Virt-resize cannot do in-place disk modifications.  You have to have space "
32773 "to store the resized output disk."
32774 msgstr ""
32775
32776 # type: textblock
32777 #. type: textblock
32778 #: ../tools/virt-resize.pl:122
32779 msgid ""
32780 "To store the resized disk image in a file, create a file of a suitable size:"
32781 msgstr ""
32782
32783 # type: verbatim
32784 #. type: verbatim
32785 #: ../tools/virt-resize.pl:125
32786 #, no-wrap
32787 msgid ""
32788 " # rm -f outdisk\n"
32789 " # truncate -s 10G outdisk\n"
32790 "\n"
32791 msgstr ""
32792
32793 # type: textblock
32794 #. type: textblock
32795 #: ../tools/virt-resize.pl:128
32796 msgid "Or use L<lvcreate(1)> to create a logical volume:"
32797 msgstr ""
32798
32799 # type: verbatim
32800 #. type: verbatim
32801 #: ../tools/virt-resize.pl:130
32802 #, no-wrap
32803 msgid ""
32804 " # lvcreate -L 10G -n lv_name vg_name\n"
32805 "\n"
32806 msgstr ""
32807
32808 # type: textblock
32809 #. type: textblock
32810 #: ../tools/virt-resize.pl:132
32811 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
32812 msgstr ""
32813
32814 # type: verbatim
32815 #. type: verbatim
32816 #: ../tools/virt-resize.pl:134
32817 #, no-wrap
32818 msgid ""
32819 " # virsh pool-list\n"
32820 " # virsh vol-create-as poolname newvol 10G\n"
32821 "\n"
32822 msgstr ""
32823
32824 # type: =item
32825 #. type: =item
32826 #: ../tools/virt-resize.pl:137
32827 msgid "5. Resize"
32828 msgstr ""
32829
32830 # type: textblock
32831 #. type: textblock
32832 #: ../tools/virt-resize.pl:139
32833 msgid ""
32834 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
32835 "file) and the output disk.  The output disk is the one created in the "
32836 "previous step."
32837 msgstr ""
32838
32839 # type: verbatim
32840 #. type: verbatim
32841 #: ../tools/virt-resize.pl:143
32842 #, no-wrap
32843 msgid ""
32844 " # virt-resize indisk outdisk\n"
32845 "\n"
32846 msgstr ""
32847
32848 # type: textblock
32849 #. type: textblock
32850 #: ../tools/virt-resize.pl:145
32851 msgid ""
32852 "This command just copies disk image C<indisk> to disk image C<outdisk> "
32853 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
32854 "larger, then an extra, empty partition is created at the end of the disk "
32855 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
32856 "error."
32857 msgstr ""
32858
32859 # type: textblock
32860 #. type: textblock
32861 #: ../tools/virt-resize.pl:151
32862 msgid ""
32863 "More realistically you'd want to expand existing partitions in the disk "
32864 "image by passing extra options (for the full list see the L</OPTIONS> "
32865 "section below)."
32866 msgstr ""
32867
32868 # type: textblock
32869 #. type: textblock
32870 #: ../tools/virt-resize.pl:155
32871 msgid ""
32872 "L</--expand> is the most useful option.  It expands the named partition "
32873 "within the disk to fill any extra space:"
32874 msgstr ""
32875
32876 # type: verbatim
32877 #. type: verbatim
32878 #: ../tools/virt-resize.pl:158
32879 #, no-wrap
32880 msgid ""
32881 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
32882 "\n"
32883 msgstr ""
32884
32885 # type: textblock
32886 #. type: textblock
32887 #: ../tools/virt-resize.pl:160
32888 msgid ""
32889 "(In this case, an extra partition is I<not> created at the end of the disk, "
32890 "because there will be no unused space)."
32891 msgstr ""
32892
32893 # type: textblock
32894 #. type: textblock
32895 #: ../tools/virt-resize.pl:163
32896 msgid ""
32897 "L</--resize> is the other commonly used option.  The following would "
32898 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
32899 "rest of the available space:"
32900 msgstr ""
32901
32902 # type: verbatim
32903 #. type: verbatim
32904 #: ../tools/virt-resize.pl:167
32905 #, no-wrap
32906 msgid ""
32907 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
32908 "     indisk outdisk\n"
32909 "\n"
32910 msgstr ""
32911
32912 # type: textblock
32913 #. type: textblock
32914 #: ../tools/virt-resize.pl:170
32915 msgid ""
32916 "If the expanded partition in the image contains a filesystem or LVM PV, then "
32917 "if virt-resize knows how, it will resize the contents, the equivalent of "
32918 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
32919 ">.  However virt-resize does not know how to resize some filesystems, so you "
32920 "would have to online resize them after booting the guest."
32921 msgstr ""
32922
32923 # type: textblock
32924 #. type: textblock
32925 #: ../tools/virt-resize.pl:177
32926 msgid "Other options are covered below."
32927 msgstr ""
32928
32929 # type: =item
32930 #. type: =item
32931 #: ../tools/virt-resize.pl:179
32932 msgid "6. Test"
32933 msgstr ""
32934
32935 # type: textblock
32936 #. type: textblock
32937 #: ../tools/virt-resize.pl:181
32938 msgid "Thoroughly test the new disk image I<before> discarding the old one."
32939 msgstr ""
32940
32941 # type: textblock
32942 #. type: textblock
32943 #: ../tools/virt-resize.pl:183
32944 msgid "If you are using libvirt, edit the XML to point at the new disk:"
32945 msgstr ""
32946
32947 # type: verbatim
32948 #. type: verbatim
32949 #: ../tools/virt-resize.pl:185
32950 #, no-wrap
32951 msgid ""
32952 " # virsh edit guestname\n"
32953 "\n"
32954 msgstr ""
32955
32956 # type: textblock
32957 #. type: textblock
32958 #: ../tools/virt-resize.pl:187
32959 msgid ""
32960 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
32961 "html#elementsDisks>"
32962 msgstr ""
32963
32964 # type: textblock
32965 #. type: textblock
32966 #: ../tools/virt-resize.pl:190
32967 msgid "Then start up the domain with the new, resized disk:"
32968 msgstr ""
32969
32970 # type: verbatim
32971 #. type: verbatim
32972 #: ../tools/virt-resize.pl:192
32973 #, no-wrap
32974 msgid ""
32975 " # virsh start guestname\n"
32976 "\n"
32977 msgstr ""
32978
32979 # type: textblock
32980 #. type: textblock
32981 #: ../tools/virt-resize.pl:194
32982 msgid ""
32983 "and check that it still works.  See also the L</NOTES> section below for "
32984 "additional information."
32985 msgstr ""
32986
32987 # type: =item
32988 #. type: =item
32989 #: ../tools/virt-resize.pl:197
32990 msgid "7. Resize LVs etc inside the guest"
32991 msgstr ""
32992
32993 # type: textblock
32994 #. type: textblock
32995 #: ../tools/virt-resize.pl:199
32996 msgid "(This can also be done offline using L<guestfish(1)>)"
32997 msgstr ""
32998
32999 # type: textblock
33000 #. type: textblock
33001 #: ../tools/virt-resize.pl:201
33002 msgid ""
33003 "Once the guest has booted you should see the new space available, at least "
33004 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
33005 "may need to resize LVs inside PVs, and also resize filesystem types that "
33006 "virt-resize does not know how to expand."
33007 msgstr ""
33008
33009 # type: =head2
33010 #. type: =head2
33011 #: ../tools/virt-resize.pl:208
33012 msgid "SHRINKING A VIRTUAL MACHINE DISK"
33013 msgstr ""
33014
33015 # type: textblock
33016 #. type: textblock
33017 #: ../tools/virt-resize.pl:210
33018 msgid ""
33019 "Shrinking is somewhat more complex than expanding, and only an overview is "
33020 "given here."
33021 msgstr ""
33022
33023 # type: textblock
33024 #. type: textblock
33025 #: ../tools/virt-resize.pl:213
33026 msgid ""
33027 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
33028 "filesystems).  The user has to shrink content before passing the disk image "
33029 "to virt-resize, and virt-resize will check that the content has been shrunk "
33030 "properly."
33031 msgstr ""
33032
33033 # type: textblock
33034 #. type: textblock
33035 #: ../tools/virt-resize.pl:218
33036 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
33037 msgstr ""
33038
33039 # type: textblock
33040 #. type: textblock
33041 #: ../tools/virt-resize.pl:220
33042 msgid ""
33043 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
33044 "steps 3 and 4 above to allocate a new disk image."
33045 msgstr ""
33046
33047 # type: textblock
33048 #. type: textblock
33049 #: ../tools/virt-resize.pl:223
33050 msgid ""
33051 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
33052 msgstr ""
33053
33054 # type: =head2
33055 #. type: =head2
33056 #: ../tools/virt-resize.pl:226
33057 msgid "IGNORING OR DELETING PARTITIONS"
33058 msgstr ""
33059
33060 # type: textblock
33061 #. type: textblock
33062 #: ../tools/virt-resize.pl:228
33063 msgid ""
33064 "virt-resize also gives a convenient way to ignore or delete partitions when "
33065 "copying from the input disk to the output disk.  Ignoring a partition speeds "
33066 "up the copy where you don't care about the existing contents of a "
33067 "partition.  Deleting a partition removes it completely, but note that it "
33068 "also renumbers any partitions after the one which is deleted, which can "
33069 "leave some guests unbootable."
33070 msgstr ""
33071
33072 # type: =head2
33073 #. type: =head2
33074 #: ../tools/virt-resize.pl:235
33075 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
33076 msgstr ""
33077
33078 # type: textblock
33079 #. type: textblock
33080 #: ../tools/virt-resize.pl:237
33081 msgid ""
33082 "If the input disk is in qcow2 format, then you may prefer that the output is "
33083 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
33084 "the fly.  The output format is simply determined by the format of the empty "
33085 "output container that you provide.  Thus to create qcow2 output, use:"
33086 msgstr ""
33087
33088 # type: verbatim
33089 #. type: verbatim
33090 #: ../tools/virt-resize.pl:243
33091 #, no-wrap
33092 msgid ""
33093 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
33094 "\n"
33095 msgstr ""
33096
33097 # type: textblock
33098 #. type: textblock
33099 #: ../tools/virt-resize.pl:245
33100 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
33101 msgstr ""
33102
33103 # type: textblock
33104 #. type: textblock
33105 #: ../tools/virt-resize.pl:247
33106 msgid "Similarly, to get non-sparse raw output use:"
33107 msgstr ""
33108
33109 # type: verbatim
33110 #. type: verbatim
33111 #: ../tools/virt-resize.pl:249
33112 #, no-wrap
33113 msgid ""
33114 " fallocate -l size outdisk\n"
33115 "\n"
33116 msgstr ""
33117
33118 # type: textblock
33119 #. type: textblock
33120 #: ../tools/virt-resize.pl:251
33121 msgid ""
33122 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
33123 "dev/zero of=outdisk bs=1M count=..>)"
33124 msgstr ""
33125
33126 # type: textblock
33127 #. type: textblock
33128 #: ../tools/virt-resize.pl:264
33129 msgid "Display help."
33130 msgstr ""
33131
33132 # type: =item
33133 #. type: =item
33134 #: ../tools/virt-resize.pl:278
33135 msgid "B<--resize part=size>"
33136 msgstr ""
33137
33138 # type: textblock
33139 #. type: textblock
33140 #: ../tools/virt-resize.pl:280
33141 msgid ""
33142 "Resize the named partition (expanding or shrinking it) so that it has the "
33143 "given size."
33144 msgstr ""
33145
33146 # type: textblock
33147 #. type: textblock
33148 #: ../tools/virt-resize.pl:283
33149 msgid ""
33150 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
33151 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
33152 "Exabytes; or as a percentage of the current size; or as a relative number or "
33153 "percentage.  For example:"
33154 msgstr ""
33155
33156 # type: verbatim
33157 #. type: verbatim
33158 #: ../tools/virt-resize.pl:288
33159 #, no-wrap
33160 msgid ""
33161 " --resize /dev/sda2=10G\n"
33162 "\n"
33163 msgstr ""
33164
33165 # type: verbatim
33166 #. type: verbatim
33167 #: ../tools/virt-resize.pl:290
33168 #, no-wrap
33169 msgid ""
33170 " --resize /dev/sda4=90%\n"
33171 "\n"
33172 msgstr ""
33173
33174 # type: verbatim
33175 #. type: verbatim
33176 #: ../tools/virt-resize.pl:292
33177 #, no-wrap
33178 msgid ""
33179 " --resize /dev/sda2=+1G\n"
33180 "\n"
33181 msgstr ""
33182
33183 # type: verbatim
33184 #. type: verbatim
33185 #: ../tools/virt-resize.pl:294
33186 #, no-wrap
33187 msgid ""
33188 " --resize /dev/sda2=-200M\n"
33189 "\n"
33190 msgstr ""
33191
33192 # type: verbatim
33193 #. type: verbatim
33194 #: ../tools/virt-resize.pl:296
33195 #, no-wrap
33196 msgid ""
33197 " --resize /dev/sda1=+128K\n"
33198 "\n"
33199 msgstr ""
33200
33201 # type: verbatim
33202 #. type: verbatim
33203 #: ../tools/virt-resize.pl:298
33204 #, no-wrap
33205 msgid ""
33206 " --resize /dev/sda1=+10%\n"
33207 "\n"
33208 msgstr ""
33209
33210 # type: verbatim
33211 #. type: verbatim
33212 #: ../tools/virt-resize.pl:300
33213 #, no-wrap
33214 msgid ""
33215 " --resize /dev/sda1=-10%\n"
33216 "\n"
33217 msgstr ""
33218
33219 # type: textblock
33220 #. type: textblock
33221 #: ../tools/virt-resize.pl:302
33222 msgid ""
33223 "You can increase the size of any partition.  Virt-resize will expand the "
33224 "direct content of the partition if it knows how (see C<--expand> below)."
33225 msgstr ""
33226
33227 # type: textblock
33228 #. type: textblock
33229 #: ../tools/virt-resize.pl:306
33230 msgid ""
33231 "You can only I<decrease> the size of partitions that contain filesystems or "
33232 "PVs which have already been shrunk.  Virt-resize will check this has been "
33233 "done before proceeding, or else will print an error (see also C<--resize-"
33234 "force>)."
33235 msgstr ""
33236
33237 # type: textblock
33238 #. type: textblock
33239 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
33240 #: ../tools/virt-resize.pl:420
33241 msgid "You can give this option multiple times."
33242 msgstr ""
33243
33244 # type: =item
33245 #. type: =item
33246 #: ../tools/virt-resize.pl:317
33247 msgid "B<--resize-force part=size>"
33248 msgstr ""
33249
33250 # type: textblock
33251 #. type: textblock
33252 #: ../tools/virt-resize.pl:319
33253 msgid ""
33254 "This is the same as C<--resize> except that it will let you decrease the "
33255 "size of any partition.  Generally this means you will lose any data which "
33256 "was at the end of the partition you shrink, but you may not care about that "
33257 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
33258 "as a swap partition)."
33259 msgstr ""
33260
33261 # type: textblock
33262 #. type: textblock
33263 #: ../tools/virt-resize.pl:325
33264 msgid "See also the C<--ignore> option."
33265 msgstr ""
33266
33267 # type: =item
33268 #. type: =item
33269 #: ../tools/virt-resize.pl:331
33270 msgid "B<--expand part>"
33271 msgstr ""
33272
33273 # type: textblock
33274 #. type: textblock
33275 #: ../tools/virt-resize.pl:333
33276 msgid ""
33277 "Expand the named partition so it uses up all extra space (space left over "
33278 "after any other resize changes that you request have been done)."
33279 msgstr ""
33280
33281 # type: textblock
33282 #. type: textblock
33283 #: ../tools/virt-resize.pl:336
33284 msgid ""
33285 "If virt-resize knows how, it will expand the direct content of the "
33286 "partition.  For example, if the partition is an LVM PV, it will expand the "
33287 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
33288 "content it doesn't know about alone."
33289 msgstr ""
33290
33291 # type: textblock
33292 #. type: textblock
33293 #: ../tools/virt-resize.pl:341
33294 msgid "Currently virt-resize can resize:"
33295 msgstr ""
33296
33297 # type: textblock
33298 #. type: textblock
33299 #: ../tools/virt-resize.pl:347
33300 msgid ""
33301 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
33302 "partition."
33303 msgstr ""
33304
33305 # type: textblock
33306 #. type: textblock
33307 #: ../tools/virt-resize.pl:352
33308 msgid ""
33309 "NTFS filesystems contained directly in a partition, if libguestfs was "
33310 "compiled with support for NTFS."
33311 msgstr ""
33312
33313 # type: textblock
33314 #. type: textblock
33315 #: ../tools/virt-resize.pl:355
33316 msgid ""
33317 "The filesystem must have been shut down consistently last time it was used.  "
33318 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
33319 "consistency check, so at the first boot after resizing Windows will check "
33320 "the disk."
33321 msgstr ""
33322
33323 # type: textblock
33324 #. type: textblock
33325 #: ../tools/virt-resize.pl:362
33326 msgid ""
33327 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
33328 "inside the PV, but see the C<--LV-expand> option.  The user could also "
33329 "resize LVs as desired after boot."
33330 msgstr ""
33331
33332 # type: textblock
33333 #. type: textblock
33334 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
33335 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
33336 msgstr ""
33337
33338 # type: =item
33339 #. type: =item
33340 #: ../tools/virt-resize.pl:374
33341 msgid "B<--shrink part>"
33342 msgstr ""
33343
33344 # type: textblock
33345 #. type: textblock
33346 #: ../tools/virt-resize.pl:376
33347 msgid ""
33348 "Shrink the named partition until the overall disk image fits in the "
33349 "destination.  The named partition B<must> contain a filesystem or PV which "
33350 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
33351 "online tools).  Virt-resize will check this and give an error if it has not "
33352 "been done."
33353 msgstr ""
33354
33355 # type: textblock
33356 #. type: textblock
33357 #: ../tools/virt-resize.pl:382
33358 msgid ""
33359 "The amount by which the overall disk must be shrunk (after carrying out all "
33360 "other operations requested by the user) is called the \"deficit\".  For "
33361 "example, a straight copy (assume no other operations)  from a 5GB disk image "
33362 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
33363 "would give an error unless the user specified a partition to shrink and that "
33364 "partition had more than a gigabyte of free space."
33365 msgstr ""
33366
33367 # type: =item
33368 #. type: =item
33369 #: ../tools/virt-resize.pl:396
33370 msgid "B<--ignore part>"
33371 msgstr ""
33372
33373 # type: textblock
33374 #. type: textblock
33375 #: ../tools/virt-resize.pl:398
33376 msgid ""
33377 "Ignore the named partition.  Effectively this means the partition is "
33378 "allocated on the destination disk, but the content is not copied across from "
33379 "the source disk.  The content of the partition will be blank (all zero "
33380 "bytes)."
33381 msgstr ""
33382
33383 # type: =item
33384 #. type: =item
33385 #: ../tools/virt-resize.pl:409
33386 msgid "B<--delete part>"
33387 msgstr ""
33388
33389 # type: textblock
33390 #. type: textblock
33391 #: ../tools/virt-resize.pl:411
33392 msgid ""
33393 "Delete the named partition.  It would be more accurate to describe this as "
33394 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
33395 "the original disk image is left intact."
33396 msgstr ""
33397
33398 # type: textblock
33399 #. type: textblock
33400 #: ../tools/virt-resize.pl:415
33401 msgid ""
33402 "Note that when you delete a partition, then anything contained in the "
33403 "partition is also deleted.  Furthermore, this causes any partitions that "
33404 "come after to be I<renumbered>, which can easily make your guest unbootable."
33405 msgstr ""
33406
33407 # type: =item
33408 #. type: =item
33409 #: ../tools/virt-resize.pl:426
33410 msgid "B<--LV-expand logvol>"
33411 msgstr ""
33412
33413 # type: textblock
33414 #. type: textblock
33415 #: ../tools/virt-resize.pl:428
33416 msgid ""
33417 "This takes the logical volume and, as a final step, expands it to fill all "
33418 "the space available in its volume group.  A typical usage, assuming a Linux "
33419 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
33420 "lv_root> would be:"
33421 msgstr ""
33422
33423 # type: verbatim
33424 #. type: verbatim
33425 #: ../tools/virt-resize.pl:433
33426 #, no-wrap
33427 msgid ""
33428 " virt-resize indisk outdisk \\\n"
33429 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
33430 "\n"
33431 msgstr ""
33432
33433 # type: textblock
33434 #. type: textblock
33435 #: ../tools/virt-resize.pl:436
33436 msgid ""
33437 "This would first expand the partition (and PV), and then expand the root "
33438 "device to fill the extra space in the PV."
33439 msgstr ""
33440
33441 # type: textblock
33442 #. type: textblock
33443 #: ../tools/virt-resize.pl:439
33444 msgid ""
33445 "The contents of the LV are also resized if virt-resize knows how to do "
33446 "that.  You can stop virt-resize from trying to expand the content by using "
33447 "the option C<--no-expand-content>."
33448 msgstr ""
33449
33450 # type: textblock
33451 #. type: textblock
33452 #: ../tools/virt-resize.pl:443
33453 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
33454 msgstr ""
33455
33456 # type: textblock
33457 #. type: textblock
33458 #: ../tools/virt-resize.pl:446
33459 msgid ""
33460 "You can give this option multiple times, I<but> it doesn't make sense to do "
33461 "this unless the logical volumes you specify are all in different volume "
33462 "groups."
33463 msgstr ""
33464
33465 # type: =item
33466 #. type: =item
33467 #: ../tools/virt-resize.pl:454
33468 msgid "B<--no-copy-boot-loader>"
33469 msgstr ""
33470
33471 # type: textblock
33472 #. type: textblock
33473 #: ../tools/virt-resize.pl:456
33474 msgid ""
33475 "By default, virt-resize copies over some sectors at the start of the disk "
33476 "(up to the beginning of the first partition).  Commonly these sectors "
33477 "contain the Master Boot Record (MBR) and the boot loader, and are required "
33478 "in order for the guest to boot correctly."
33479 msgstr ""
33480
33481 # type: textblock
33482 #. type: textblock
33483 #: ../tools/virt-resize.pl:461
33484 msgid ""
33485 "If you specify this flag, then this initial copy is not done.  You may need "
33486 "to reinstall the boot loader in this case."
33487 msgstr ""
33488
33489 # type: =item
33490 #. type: =item
33491 #: ../tools/virt-resize.pl:469
33492 msgid "B<--no-extra-partition>"
33493 msgstr ""
33494
33495 # type: textblock
33496 #. type: textblock
33497 #: ../tools/virt-resize.pl:471
33498 msgid ""
33499 "By default, virt-resize creates an extra partition if there is any extra, "
33500 "unused space after all resizing has happened.  Use this option to prevent "
33501 "the extra partition from being created.  If you do this then the extra space "
33502 "will be inaccessible until you run fdisk, parted, or some other partitioning "
33503 "tool in the guest."
33504 msgstr ""
33505
33506 # type: textblock
33507 #. type: textblock
33508 #: ../tools/virt-resize.pl:477
33509 msgid ""
33510 "Note that if the surplus space is smaller than 10 MB, no extra partition "
33511 "will be created."
33512 msgstr ""
33513
33514 # type: =item
33515 #. type: =item
33516 #: ../tools/virt-resize.pl:484
33517 msgid "B<--no-expand-content>"
33518 msgstr ""
33519
33520 # type: textblock
33521 #. type: textblock
33522 #: ../tools/virt-resize.pl:486
33523 msgid ""
33524 "By default, virt-resize will try to expand the direct contents of "
33525 "partitions, if it knows how (see C<--expand> option above)."
33526 msgstr ""
33527
33528 # type: textblock
33529 #. type: textblock
33530 #: ../tools/virt-resize.pl:489
33531 msgid ""
33532 "If you give the C<--no-expand-content> option then virt-resize will not "
33533 "attempt this."
33534 msgstr ""
33535
33536 # type: =item
33537 #. type: =item
33538 #: ../tools/virt-resize.pl:496
33539 msgid "B<-d> | B<--debug>"
33540 msgstr ""
33541
33542 # type: =item
33543 #. type: =item
33544 #: ../tools/virt-resize.pl:504
33545 msgid "B<-n> | B<--dryrun>"
33546 msgstr ""
33547
33548 # type: textblock
33549 #. type: textblock
33550 #: ../tools/virt-resize.pl:506
33551 msgid "Print a summary of what would be done, but don't do anything."
33552 msgstr ""
33553
33554 # type: =item
33555 #. type: =item
33556 #: ../tools/virt-resize.pl:512
33557 msgid "B<-q> | B<--quiet>"
33558 msgstr ""
33559
33560 # type: textblock
33561 #. type: textblock
33562 #: ../tools/virt-resize.pl:514
33563 msgid "Don't print the summary."
33564 msgstr ""
33565
33566 # type: textblock
33567 #. type: textblock
33568 #: ../tools/virt-resize.pl:522
33569 msgid ""
33570 "Specify the format of the input disk image.  If this flag is not given then "
33571 "it is auto-detected from the image itself."
33572 msgstr ""
33573
33574 # type: textblock
33575 #. type: textblock
33576 #: ../tools/virt-resize.pl:528
33577 msgid ""
33578 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
33579 "AND NON-SPARSE RAW FORMATS>."
33580 msgstr ""
33581
33582 # type: =item
33583 #. type: =item
33584 #: ../tools/virt-resize.pl:535
33585 msgid "B<--output-format> raw"
33586 msgstr ""
33587
33588 # type: textblock
33589 #. type: textblock
33590 #: ../tools/virt-resize.pl:537
33591 msgid ""
33592 "Specify the format of the output disk image.  If this flag is not given then "
33593 "it is auto-detected from the image itself."
33594 msgstr ""
33595
33596 # type: textblock
33597 #. type: textblock
33598 #: ../tools/virt-resize.pl:543
33599 msgid ""
33600 "Note that you still need to create the output disk with the right format.  "
33601 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
33602 msgstr ""
33603
33604 # type: =head1
33605 #. type: =head1
33606 #: ../tools/virt-resize.pl:1419
33607 msgid "NOTES"
33608 msgstr ""
33609
33610 # type: =head2
33611 #. type: =head2
33612 #: ../tools/virt-resize.pl:1421
33613 msgid "\"Partition 1 does not end on cylinder boundary.\""
33614 msgstr ""
33615
33616 # type: textblock
33617 #. type: textblock
33618 #: ../tools/virt-resize.pl:1423
33619 msgid ""
33620 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
33621 "means the partitions will not be aligned to the ancient CHS geometry.  "
33622 "However CHS geometry is meaningless for disks manufactured since the early "
33623 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
33624 "cylinders is not required by any modern operating system."
33625 msgstr ""
33626
33627 # type: =head2
33628 #. type: =head2
33629 #: ../tools/virt-resize.pl:1430
33630 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
33631 msgstr ""
33632
33633 # type: textblock
33634 #. type: textblock
33635 #: ../tools/virt-resize.pl:1432
33636 msgid ""
33637 "In Windows Vista and later versions, Microsoft switched to using a separate "
33638 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
33639 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
33640 "the boot partition.  Doing so seems to break the guest completely.  However "
33641 "expanding the second partition (ie. C: drive) should work."
33642 msgstr ""
33643
33644 # type: textblock
33645 #. type: textblock
33646 #: ../tools/virt-resize.pl:1439
33647 msgid ""
33648 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
33649 "NTFS partitions have been expanded.  This is just a safety check and (unless "
33650 "it find errors) is nothing to worry about."
33651 msgstr ""
33652
33653 # type: =head2
33654 #. type: =head2
33655 #: ../tools/virt-resize.pl:1443
33656 msgid "GUEST BOOT STUCK AT \"GRUB\""
33657 msgstr ""
33658
33659 # type: textblock
33660 #. type: textblock
33661 #: ../tools/virt-resize.pl:1445
33662 msgid ""
33663 "If a Linux guest does not boot after resizing, and the boot is stuck after "
33664 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
33665 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
33666 "although we think is to do with partition alignment."
33667 msgstr ""
33668
33669 # type: verbatim
33670 #. type: verbatim
33671 #: ../tools/virt-resize.pl:1450
33672 #, no-wrap
33673 msgid ""
33674 " guestfish -i -a newdisk\n"
33675 " ><fs> cat /boot/grub/device.map\n"
33676 " # check the contents of this file are sensible or\n"
33677 " # edit the file if necessary\n"
33678 " ><fs> grub-install / /dev/vda\n"
33679 " ><fs> exit\n"
33680 "\n"
33681 msgstr ""
33682
33683 # type: textblock
33684 #. type: textblock
33685 #: ../tools/virt-resize.pl:1457
33686 msgid ""
33687 "For more flexible guest reconfiguration, including if you need to specify "
33688 "other parameters to grub-install, use L<virt-rescue(1)>."
33689 msgstr ""
33690
33691 # type: =head1
33692 #. type: =head1
33693 #: ../tools/virt-resize.pl:1460
33694 msgid "ALTERNATIVE TOOLS"
33695 msgstr ""
33696
33697 # type: textblock
33698 #. type: textblock
33699 #: ../tools/virt-resize.pl:1462
33700 msgid ""
33701 "There are several proprietary tools for resizing partitions.  We won't "
33702 "mention any here."
33703 msgstr ""
33704
33705 # type: textblock
33706 #. type: textblock
33707 #: ../tools/virt-resize.pl:1465
33708 msgid ""
33709 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
33710 "operations on disk images.  They can resize and move partitions, but I don't "
33711 "think they can do anything with the contents, and they certainly don't "
33712 "understand LVM."
33713 msgstr ""
33714
33715 # type: textblock
33716 #. type: textblock
33717 #: ../tools/virt-resize.pl:1470
33718 msgid ""
33719 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
33720 "but at a much lower level.  You will probably end up hand-calculating sector "
33721 "offsets, which is something that virt-resize was designed to avoid.  If you "
33722 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
33723 "C<--debug> flag."
33724 msgstr ""
33725
33726 # type: textblock
33727 #. type: textblock
33728 #: ../tools/virt-resize.pl:1485
33729 msgid ""
33730 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
33731 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
33732 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
33733 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
33734 "libguestfs.org/>."
33735 msgstr ""
33736
33737 # type: textblock
33738 #. type: textblock
33739 #: ../tools/virt-list-filesystems.pl:32
33740 msgid ""
33741 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33742 msgstr ""
33743
33744 # type: verbatim
33745 #. type: verbatim
33746 #: ../tools/virt-list-filesystems.pl:36
33747 #, no-wrap
33748 msgid ""
33749 " virt-list-filesystems [--options] domname\n"
33750 "\n"
33751 msgstr ""
33752
33753 # type: verbatim
33754 #. type: verbatim
33755 #: ../tools/virt-list-filesystems.pl:38
33756 #, no-wrap
33757 msgid ""
33758 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33759 "\n"
33760 msgstr ""
33761
33762 # type: textblock
33763 #. type: textblock
33764 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33765 msgid ""
33766 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33767 "replacement."
33768 msgstr ""
33769
33770 # type: textblock
33771 #. type: textblock
33772 #: ../tools/virt-list-filesystems.pl:45
33773 msgid ""
33774 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33775 "are contained in a virtual machine or disk image."
33776 msgstr ""
33777
33778 # type: textblock
33779 #. type: textblock
33780 #: ../tools/virt-list-filesystems.pl:49
33781 msgid ""
33782 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33783 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33784 "> tool."
33785 msgstr ""
33786
33787 # type: =item
33788 #. type: =item
33789 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33790 msgid "B<-l> | B<--long>"
33791 msgstr ""
33792
33793 # type: textblock
33794 #. type: textblock
33795 #: ../tools/virt-list-filesystems.pl:108
33796 msgid ""
33797 "With this option, C<virt-list-filesystems> displays the type of each "
33798 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33799 msgstr ""
33800
33801 # type: =item
33802 #. type: =item
33803 #: ../tools/virt-list-filesystems.pl:115
33804 msgid "B<-a> | B<--all>"
33805 msgstr ""
33806
33807 # type: textblock
33808 #. type: textblock
33809 #: ../tools/virt-list-filesystems.pl:117
33810 msgid ""
33811 "Normally we only show mountable filesystems.  If this option is given then "
33812 "swap devices are shown too."
33813 msgstr ""
33814
33815 # type: textblock
33816 #. type: textblock
33817 #: ../tools/virt-list-filesystems.pl:191
33818 msgid ""
33819 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33820 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33821 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33822 msgstr ""
33823
33824 # type: textblock
33825 #. type: textblock
33826 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33827 msgid "Copyright (C) 2009 Red Hat Inc."
33828 msgstr ""
33829
33830 # type: textblock
33831 #. type: textblock
33832 #: ../tools/virt-tar.pl:33
33833 msgid "virt-tar - Extract or upload files to a virtual machine"
33834 msgstr ""
33835
33836 # type: verbatim
33837 #. type: verbatim
33838 #: ../tools/virt-tar.pl:37
33839 #, no-wrap
33840 msgid ""
33841 " virt-tar [--options] -x domname directory tarball\n"
33842 "\n"
33843 msgstr ""
33844
33845 # type: verbatim
33846 #. type: verbatim
33847 #: ../tools/virt-tar.pl:39
33848 #, no-wrap
33849 msgid ""
33850 " virt-tar [--options] -u domname tarball directory\n"
33851 "\n"
33852 msgstr ""
33853
33854 # type: verbatim
33855 #. type: verbatim
33856 #: ../tools/virt-tar.pl:41
33857 #, no-wrap
33858 msgid ""
33859 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33860 "\n"
33861 msgstr ""
33862
33863 # type: verbatim
33864 #. type: verbatim
33865 #: ../tools/virt-tar.pl:43
33866 #, no-wrap
33867 msgid ""
33868 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33869 "\n"
33870 msgstr ""
33871
33872 #. type: textblock
33873 #: ../tools/virt-tar.pl:47
33874 msgid ""
33875 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33876 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33877 msgstr ""
33878
33879 # type: textblock
33880 #. type: textblock
33881 #: ../tools/virt-tar.pl:52
33882 msgid "Download C</home> from the VM into a local tarball:"
33883 msgstr ""
33884
33885 # type: verbatim
33886 #. type: verbatim
33887 #: ../tools/virt-tar.pl:54
33888 #, no-wrap
33889 msgid ""
33890 " virt-tar -x domname /home home.tar\n"
33891 "\n"
33892 msgstr ""
33893
33894 # type: verbatim
33895 #. type: verbatim
33896 #: ../tools/virt-tar.pl:56
33897 #, no-wrap
33898 msgid ""
33899 " virt-tar -zx domname /home home.tar.gz\n"
33900 "\n"
33901 msgstr ""
33902
33903 # type: textblock
33904 #. type: textblock
33905 #: ../tools/virt-tar.pl:58
33906 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33907 msgstr ""
33908
33909 # type: verbatim
33910 #. type: verbatim
33911 #: ../tools/virt-tar.pl:60
33912 #, no-wrap
33913 msgid ""
33914 " virt-tar -u domname uploadstuff.tar /tmp\n"
33915 "\n"
33916 msgstr ""
33917
33918 # type: verbatim
33919 #. type: verbatim
33920 #: ../tools/virt-tar.pl:62
33921 #, no-wrap
33922 msgid ""
33923 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33924 "\n"
33925 msgstr ""
33926
33927 # type: textblock
33928 #. type: textblock
33929 #: ../tools/virt-tar.pl:66
33930 msgid ""
33931 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
33932 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33933 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33934 msgstr ""
33935
33936 # type: textblock
33937 #. type: textblock
33938 #: ../tools/virt-tar.pl:71
33939 msgid ""
33940 "You can use C<-x> (extract) on live virtual machines, but you might get "
33941 "inconsistent results or errors if there is filesystem activity inside the "
33942 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33943 "work, but the only way to guarantee consistent results is if the virtual "
33944 "machine is shut down."
33945 msgstr ""
33946
33947 # type: textblock
33948 #. type: textblock
33949 #: ../tools/virt-tar.pl:79
33950 msgid ""
33951 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33952 "parts of a guest filesystem.  There are many possibilities: making backups, "
33953 "uploading data files, snooping on guest activity, fixing or customizing "
33954 "guests, etc."
33955 msgstr ""
33956
33957 # type: textblock
33958 #. type: textblock
33959 #: ../tools/virt-tar.pl:84
33960 msgid ""
33961 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33962 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33963 "should look at the L<guestfish(1)> tool."
33964 msgstr ""
33965
33966 # type: textblock
33967 #. type: textblock
33968 #: ../tools/virt-tar.pl:88
33969 msgid ""
33970 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
33971 "its contents (recursively) from the virtual machine into a local tarball.  "
33972 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
33973 "virtual machine.  You cannot use these two options together."
33974 msgstr ""
33975
33976 # type: textblock
33977 #. type: textblock
33978 #: ../tools/virt-tar.pl:94
33979 msgid ""
33980 "In addition, you may need to use the C<-z> (gZip) option to enable "
33981 "compression.  When uploading, you have to specify C<-z> if the upload file "
33982 "is compressed because virt-tar won't detect this on its own."
33983 msgstr ""
33984
33985 # type: textblock
33986 #. type: textblock
33987 #: ../tools/virt-tar.pl:98
33988 msgid ""
33989 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33990 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33991 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33992 "the L<libguestfs(3)> API)."
33993 msgstr ""
33994
33995 # type: =item
33996 #. type: =item
33997 #: ../tools/virt-tar.pl:156
33998 msgid "B<-x> | B<--extract> | B<--download>"
33999 msgstr ""
34000
34001 # type: =item
34002 #. type: =item
34003 #: ../tools/virt-tar.pl:158
34004 msgid "B<-u> | B<--upload>"
34005 msgstr ""
34006
34007 # type: textblock
34008 #. type: textblock
34009 #: ../tools/virt-tar.pl:160
34010 msgid ""
34011 "Use C<-x> to extract (download) a directory from a virtual machine to a "
34012 "local tarball."
34013 msgstr ""
34014
34015 # type: textblock
34016 #. type: textblock
34017 #: ../tools/virt-tar.pl:163
34018 msgid ""
34019 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
34020 "Please read the L</WARNING> section above before using this option."
34021 msgstr ""
34022
34023 # type: textblock
34024 #. type: textblock
34025 #: ../tools/virt-tar.pl:167
34026 msgid "You must specify exactly one of these options."
34027 msgstr ""
34028
34029 # type: =item
34030 #. type: =item
34031 #: ../tools/virt-tar.pl:173
34032 msgid "B<-z> | B<--gzip>"
34033 msgstr ""
34034
34035 # type: textblock
34036 #. type: textblock
34037 #: ../tools/virt-tar.pl:175
34038 msgid "Specify that the input or output tarball is gzip-compressed."
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../tools/virt-tar.pl:288
34043 msgid ""
34044 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34045 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34046 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34047 "org/>."
34048 msgstr ""
34049
34050 # type: textblock
34051 #. type: textblock
34052 #: ../tools/virt-make-fs.pl:37
34053 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34054 msgstr ""
34055
34056 # type: verbatim
34057 #. type: verbatim
34058 #: ../tools/virt-make-fs.pl:41
34059 #, no-wrap
34060 msgid ""
34061 " virt-make-fs [--options] input.tar output.img\n"
34062 "\n"
34063 msgstr ""
34064
34065 # type: verbatim
34066 #. type: verbatim
34067 #: ../tools/virt-make-fs.pl:43
34068 #, no-wrap
34069 msgid ""
34070 " virt-make-fs [--options] input.tar.gz output.img\n"
34071 "\n"
34072 msgstr ""
34073
34074 # type: verbatim
34075 #. type: verbatim
34076 #: ../tools/virt-make-fs.pl:45
34077 #, no-wrap
34078 msgid ""
34079 " virt-make-fs [--options] directory output.img\n"
34080 "\n"
34081 msgstr ""
34082
34083 # type: textblock
34084 #. type: textblock
34085 #: ../tools/virt-make-fs.pl:49
34086 msgid ""
34087 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34088 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34089 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34090 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34091 "you want to attach these filesystems to existing virtual machines (eg. to "
34092 "import large amounts of read-only data to a VM)."
34093 msgstr ""
34094
34095 # type: textblock
34096 #. type: textblock
34097 #: ../tools/virt-make-fs.pl:57
34098 msgid "Basic usage is:"
34099 msgstr ""
34100
34101 # type: verbatim
34102 #. type: verbatim
34103 #: ../tools/virt-make-fs.pl:59
34104 #, no-wrap
34105 msgid ""
34106 " virt-make-fs input output\n"
34107 "\n"
34108 msgstr ""
34109
34110 # type: textblock
34111 #. type: textblock
34112 #: ../tools/virt-make-fs.pl:61
34113 msgid ""
34114 "where C<input> is either a directory containing files that you want to add, "
34115 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34116 "C<output> is a disk image.  The input type is detected automatically.  The "
34117 "output disk image defaults to a raw ext2 image unless you specify extra "
34118 "flags (see L</OPTIONS> below)."
34119 msgstr ""
34120
34121 # type: =head2
34122 #. type: =head2
34123 #: ../tools/virt-make-fs.pl:67
34124 msgid "EXTRA SPACE"
34125 msgstr ""
34126
34127 # type: textblock
34128 #. type: textblock
34129 #: ../tools/virt-make-fs.pl:69
34130 msgid ""
34131 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34132 "the files that it contains, but might have extra space.  Depending on how "
34133 "you are going to use the output, you might think this extra space is wasted "
34134 "and want to minimize it, or you might want to leave space so that more files "
34135 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34136 "but you can use the C<--size> flag to leave space in the filesystem if you "
34137 "want it."
34138 msgstr ""
34139
34140 # type: textblock
34141 #. type: textblock
34142 #: ../tools/virt-make-fs.pl:77
34143 msgid ""
34144 "An alternative way to leave extra space but not make the output image any "
34145 "bigger is to use an alternative disk image format (instead of the default "
34146 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34147 "image format (check your hypervisor supports this before using it).  This "
34148 "allows you to choose a large C<--size> but the extra space won't actually be "
34149 "allocated in the image until you try to store something in it."
34150 msgstr ""
34151
34152 #. type: textblock
34153 #: ../tools/virt-make-fs.pl:85
34154 msgid ""
34155 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34156 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
34157 "to build another image from scratch."
34158 msgstr ""
34159
34160 # type: =head3
34161 #. type: =head3
34162 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34163 #: ../tools/virt-make-fs.pl:142
34164 msgid "EXAMPLE"
34165 msgstr ""
34166
34167 # type: verbatim
34168 #. type: verbatim
34169 #: ../tools/virt-make-fs.pl:91
34170 #, no-wrap
34171 msgid ""
34172 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34173 "\n"
34174 msgstr ""
34175
34176 # type: =head2
34177 #. type: =head2
34178 #: ../tools/virt-make-fs.pl:93
34179 msgid "FILESYSTEM TYPE"
34180 msgstr ""
34181
34182 # type: textblock
34183 #. type: textblock
34184 #: ../tools/virt-make-fs.pl:95
34185 msgid ""
34186 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34187 "libguestfs supports can be used (but I<not> read-only formats like "
34188 "ISO9660).  Here are some of the more common choices:"
34189 msgstr ""
34190
34191 # type: =item
34192 #. type: =item
34193 #: ../tools/virt-make-fs.pl:101
34194 msgid "I<ext3>"
34195 msgstr ""
34196
34197 # type: textblock
34198 #. type: textblock
34199 #: ../tools/virt-make-fs.pl:103
34200 msgid ""
34201 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34202 "you are not going to use the filesystem in a way that requires the journal, "
34203 "then this is just wasted overhead."
34204 msgstr ""
34205
34206 # type: =item
34207 #. type: =item
34208 #: ../tools/virt-make-fs.pl:107
34209 msgid "I<ntfs> or I<vfat>"
34210 msgstr ""
34211
34212 # type: textblock
34213 #. type: textblock
34214 #: ../tools/virt-make-fs.pl:109
34215 msgid "Useful if exporting data to a Windows guest."
34216 msgstr ""
34217
34218 # type: textblock
34219 #. type: textblock
34220 #: ../tools/virt-make-fs.pl:111
34221 msgid ""
34222 "I<Note for vfat>: The tar archive or local directory must only contain files "
34223 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34224 "program running within libguestfs is unable to change the ownership of non-"
34225 "root files, since vfat itself does not support this."
34226 msgstr ""
34227
34228 # type: =item
34229 #. type: =item
34230 #: ../tools/virt-make-fs.pl:116
34231 msgid "I<minix>"
34232 msgstr ""
34233
34234 # type: textblock
34235 #. type: textblock
34236 #: ../tools/virt-make-fs.pl:118
34237 msgid ""
34238 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34239 "total filesystem size."
34240 msgstr ""
34241
34242 # type: verbatim
34243 #. type: verbatim
34244 #: ../tools/virt-make-fs.pl:125
34245 #, no-wrap
34246 msgid ""
34247 " virt-make-fs --type=minix input minixfs.img\n"
34248 "\n"
34249 msgstr ""
34250
34251 # type: =head2
34252 #. type: =head2
34253 #: ../tools/virt-make-fs.pl:127
34254 msgid "TO PARTITION OR NOT TO PARTITION"
34255 msgstr ""
34256
34257 # type: textblock
34258 #. type: textblock
34259 #: ../tools/virt-make-fs.pl:129
34260 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34261 msgstr ""
34262
34263 # type: textblock
34264 #. type: textblock
34265 #: ../tools/virt-make-fs.pl:131
34266 msgid ""
34267 "Adding a partition can make the disk image more compatible with certain "
34268 "virtualized operating systems which don't expect to see a filesystem "
34269 "directly located on a block device (Linux doesn't care and will happily "
34270 "handle both types)."
34271 msgstr ""
34272
34273 # type: textblock
34274 #. type: textblock
34275 #: ../tools/virt-make-fs.pl:136
34276 msgid ""
34277 "On the other hand, if you have a partition table then the output image is no "
34278 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34279 "directly on a partitioned disk image.  (However libguestfs tools such as "
34280 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34281 msgstr ""
34282
34283 # type: textblock
34284 #. type: textblock
34285 #: ../tools/virt-make-fs.pl:144
34286 msgid "Add an MBR partition:"
34287 msgstr ""
34288
34289 # type: verbatim
34290 #. type: verbatim
34291 #: ../tools/virt-make-fs.pl:146
34292 #, no-wrap
34293 msgid ""
34294 " virt-make-fs --partition -- input disk.img\n"
34295 "\n"
34296 msgstr ""
34297
34298 # type: textblock
34299 #. type: textblock
34300 #: ../tools/virt-make-fs.pl:148
34301 msgid ""
34302 "If the output disk image could be terabyte-sized or larger, it's better to "
34303 "use an EFI/GPT-compatible partition table:"
34304 msgstr ""
34305
34306 # type: verbatim
34307 #. type: verbatim
34308 #: ../tools/virt-make-fs.pl:151
34309 #, no-wrap
34310 msgid ""
34311 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34312 "\n"
34313 msgstr ""
34314
34315 # type: textblock
34316 #. type: textblock
34317 #: ../tools/virt-make-fs.pl:179
34318 msgid "Enable debugging information."
34319 msgstr ""
34320
34321 # type: =item
34322 #. type: =item
34323 #: ../tools/virt-make-fs.pl:185
34324 msgid "B<--size=E<lt>NE<gt>>"
34325 msgstr ""
34326
34327 # type: =item
34328 #. type: =item
34329 #: ../tools/virt-make-fs.pl:187
34330 msgid "B<--size=+E<lt>NE<gt>>"
34331 msgstr ""
34332
34333 # type: =item
34334 #. type: =item
34335 #: ../tools/virt-make-fs.pl:189
34336 msgid "B<-s E<lt>NE<gt>>"
34337 msgstr ""
34338
34339 # type: =item
34340 #. type: =item
34341 #: ../tools/virt-make-fs.pl:191
34342 msgid "B<-s +E<lt>NE<gt>>"
34343 msgstr ""
34344
34345 # type: textblock
34346 #. type: textblock
34347 #: ../tools/virt-make-fs.pl:193
34348 msgid ""
34349 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
34350 msgstr ""
34351
34352 # type: textblock
34353 #. type: textblock
34354 #: ../tools/virt-make-fs.pl:196
34355 msgid ""
34356 "If this option is I<not> given, then the output image will be just large "
34357 "enough to contain all the files, with not much wasted space."
34358 msgstr ""
34359
34360 # type: textblock
34361 #. type: textblock
34362 #: ../tools/virt-make-fs.pl:199
34363 msgid ""
34364 "To choose a fixed size output disk, specify an absolute number followed by b/"
34365 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34366 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34367 "files, else you will get an error."
34368 msgstr ""
34369
34370 # type: textblock
34371 #. type: textblock
34372 #: ../tools/virt-make-fs.pl:204
34373 msgid ""
34374 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34375 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34376 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
34377 "the input files, and (approximately) an extra 200 MB free space."
34378 msgstr ""
34379
34380 # type: textblock
34381 #. type: textblock
34382 #: ../tools/virt-make-fs.pl:210
34383 msgid ""
34384 "Note that virt-make-fs estimates free space, and therefore will not produce "
34385 "filesystems containing precisely the free space requested.  (It is much more "
34386 "expensive and time-consuming to produce a filesystem which has precisely the "
34387 "desired free space)."
34388 msgstr ""
34389
34390 # type: =item
34391 #. type: =item
34392 #: ../tools/virt-make-fs.pl:219
34393 msgid "B<--format=E<lt>fmtE<gt>>"
34394 msgstr ""
34395
34396 # type: =item
34397 #. type: =item
34398 #: ../tools/virt-make-fs.pl:221
34399 msgid "B<-F E<lt>fmtE<gt>>"
34400 msgstr ""
34401
34402 # type: textblock
34403 #. type: textblock
34404 #: ../tools/virt-make-fs.pl:223
34405 msgid "Choose the output disk image format."
34406 msgstr ""
34407
34408 # type: textblock
34409 #. type: textblock
34410 #: ../tools/virt-make-fs.pl:225
34411 msgid "The default is C<raw> (raw disk image)."
34412 msgstr ""
34413
34414 # type: textblock
34415 #. type: textblock
34416 #: ../tools/virt-make-fs.pl:227
34417 msgid ""
34418 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34419 "that would really make sense here is C<qcow2>."
34420 msgstr ""
34421
34422 # type: =item
34423 #. type: =item
34424 #: ../tools/virt-make-fs.pl:234
34425 msgid "B<--type=E<lt>fsE<gt>>"
34426 msgstr ""
34427
34428 # type: =item
34429 #. type: =item
34430 #: ../tools/virt-make-fs.pl:236
34431 msgid "B<-t E<lt>fsE<gt>>"
34432 msgstr ""
34433
34434 # type: textblock
34435 #. type: textblock
34436 #: ../tools/virt-make-fs.pl:238
34437 msgid "Choose the output filesystem type."
34438 msgstr ""
34439
34440 # type: textblock
34441 #. type: textblock
34442 #: ../tools/virt-make-fs.pl:240
34443 msgid "The default is C<ext2>."
34444 msgstr ""
34445
34446 # type: textblock
34447 #. type: textblock
34448 #: ../tools/virt-make-fs.pl:242
34449 msgid ""
34450 "Any filesystem which is supported read-write by libguestfs can be used here."
34451 msgstr ""
34452
34453 # type: =item
34454 #. type: =item
34455 #: ../tools/virt-make-fs.pl:249
34456 msgid "B<--partition>"
34457 msgstr ""
34458
34459 # type: =item
34460 #. type: =item
34461 #: ../tools/virt-make-fs.pl:251
34462 msgid "B<--partition=E<lt>parttypeE<gt>>"
34463 msgstr ""
34464
34465 # type: textblock
34466 #. type: textblock
34467 #: ../tools/virt-make-fs.pl:253
34468 msgid ""
34469 "If specified, this flag adds an MBR partition table to the output disk image."
34470 msgstr ""
34471
34472 # type: textblock
34473 #. type: textblock
34474 #: ../tools/virt-make-fs.pl:256
34475 msgid ""
34476 "You can change the partition table type, eg. C<--partition=gpt> for large "
34477 "disks."
34478 msgstr ""
34479
34480 # type: textblock
34481 #. type: textblock
34482 #: ../tools/virt-make-fs.pl:259
34483 msgid ""
34484 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
34485 "might consider the next parameter to be the partition type.  For example:"
34486 msgstr ""
34487
34488 # type: verbatim
34489 #. type: verbatim
34490 #: ../tools/virt-make-fs.pl:263
34491 #, no-wrap
34492 msgid ""
34493 " virt-make-fs --partition input.tar ...\n"
34494 "\n"
34495 msgstr ""
34496
34497 # type: textblock
34498 #. type: textblock
34499 #: ../tools/virt-make-fs.pl:265
34500 msgid ""
34501 "would cause virt-make-fs to think you wanted to use a partition type of "
34502 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
34503 "dash) between options and the input file argument:"
34504 msgstr ""
34505
34506 # type: verbatim
34507 #. type: verbatim
34508 #: ../tools/virt-make-fs.pl:269
34509 #, no-wrap
34510 msgid ""
34511 " virt-make-fs --partition -- input.tar ...\n"
34512 "\n"
34513 msgstr ""
34514
34515 #. type: textblock
34516 #: ../tools/virt-make-fs.pl:536
34517 msgid ""
34518 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34519 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34520 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34521 msgstr ""
34522
34523 # type: verbatim
34524 #. type: verbatim
34525 #: ../tools/virt-make-fs.pl:553
34526 #, no-wrap
34527 msgid ""
34528 " export LIBGUESTFS_DEBUG=1\n"
34529 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34530 "\n"
34531 msgstr ""
34532
34533 # type: textblock
34534 #. type: textblock
34535 #: ../tools/virt-make-fs.pl:556
34536 msgid ""
34537 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34538 "redhat.com/>"
34539 msgstr ""
34540
34541 # type: textblock
34542 #. type: textblock
34543 #: ../tools/virt-list-partitions.pl:32
34544 msgid ""
34545 "virt-list-partitions - List partitions in a virtual machine or disk image"
34546 msgstr ""
34547
34548 # type: verbatim
34549 #. type: verbatim
34550 #: ../tools/virt-list-partitions.pl:36
34551 #, no-wrap
34552 msgid ""
34553 " virt-list-partitions [--options] domname\n"
34554 "\n"
34555 msgstr ""
34556
34557 # type: verbatim
34558 #. type: verbatim
34559 #: ../tools/virt-list-partitions.pl:38
34560 #, no-wrap
34561 msgid ""
34562 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34563 "\n"
34564 msgstr ""
34565
34566 # type: textblock
34567 #. type: textblock
34568 #: ../tools/virt-list-partitions.pl:45
34569 msgid ""
34570 "C<virt-list-partitions> is a command line tool to list the partitions that "
34571 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34572 "first step to using L<virt-resize(1)>."
34573 msgstr ""
34574
34575 # type: textblock
34576 #. type: textblock
34577 #: ../tools/virt-list-partitions.pl:50
34578 msgid ""
34579 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34580 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34581 "> tool."
34582 msgstr ""
34583
34584 # type: =item
34585 #. type: =item
34586 #: ../tools/virt-list-partitions.pl:107
34587 msgid "B<-h> | B<--human-readable>"
34588 msgstr ""
34589
34590 # type: textblock
34591 #. type: textblock
34592 #: ../tools/virt-list-partitions.pl:109
34593 msgid "Show sizes in human-readable form (eg. \"1G\")."
34594 msgstr ""
34595
34596 # type: textblock
34597 #. type: textblock
34598 #: ../tools/virt-list-partitions.pl:117
34599 msgid ""
34600 "With this option, C<virt-list-partitions> displays the type and size of each "
34601 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34602 msgstr ""
34603
34604 # type: =item
34605 #. type: =item
34606 #: ../tools/virt-list-partitions.pl:124
34607 msgid "B<-t> | B<--total>"
34608 msgstr ""
34609
34610 # type: textblock
34611 #. type: textblock
34612 #: ../tools/virt-list-partitions.pl:126
34613 msgid ""
34614 "Display the total size of each block device (as a separate row or rows)."
34615 msgstr ""
34616
34617 # type: textblock
34618 #. type: textblock
34619 #: ../tools/virt-list-partitions.pl:259
34620 msgid ""
34621 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34622 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34623 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34624 msgstr ""