Version 1.9.5
[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-18 13:31+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:2564 ../src/guestfs.pod:2568
930 #: ../src/guestfs.pod:2572 ../src/guestfs.pod:2576
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<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 #. type: textblock
5480 #: ../src/guestfs.pod:2504 ../fish/guestfish.pod:1055
5481 msgid "Location of temporary directory, defaults to C</tmp>."
5482 msgstr ""
5483
5484 # type: textblock
5485 #. type: textblock
5486 #: ../src/guestfs.pod:2506 ../fish/guestfish.pod:1057
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</tmp> is not large enough."
5492 msgstr ""
5493
5494 # type: =head1
5495 #. type: =head1
5496 #: ../src/guestfs.pod:2514 ../fish/guestfish.pod:1115
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:2516
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:2543
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:2550 ../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:2552
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:2554
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:2556
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:2558
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:2560
5563 msgid "When reporting a bug, please check:"
5564 msgstr ""
5565
5566 # type: textblock
5567 #. type: textblock
5568 #: ../src/guestfs.pod:2566
5569 msgid "That the bug hasn't been reported already."
5570 msgstr ""
5571
5572 # type: textblock
5573 #. type: textblock
5574 #: ../src/guestfs.pod:2570
5575 msgid "That you are testing a recent version."
5576 msgstr ""
5577
5578 # type: textblock
5579 #. type: textblock
5580 #: ../src/guestfs.pod:2574
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:2578
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:2583 ../fish/guestfish.pod:1138
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:2585 ../fish/guestfish.pod:1140
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:2587 ../fish/guestfish.pod:1142
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:2589 ../fish/guestfish.pod:1144
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:2592
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:2597
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:2602
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:4322
5743 #: ../src/guestfs-actions.pod:4395 ../src/guestfs-actions.pod:4426
5744 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4464
5745 #: ../src/guestfs-actions.pod:4476 ../src/guestfs-actions.pod:4493
5746 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4521
5747 #: ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4571
5748 #: ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4606
5749 #: ../src/guestfs-actions.pod:4620 ../src/guestfs-actions.pod:4637
5750 #: ../src/guestfs-actions.pod:4686 ../src/guestfs-actions.pod:4723
5751 #: ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4765
5752 #: ../src/guestfs-actions.pod:4782 ../src/guestfs-actions.pod:4800
5753 #: ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4991
5754 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5031
5755 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5129
5756 #: ../src/guestfs-actions.pod:5146 ../src/guestfs-actions.pod:5159
5757 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5462
5758 #: ../src/guestfs-actions.pod:5481 ../src/guestfs-actions.pod:5500
5759 #: ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5524
5760 #: ../src/guestfs-actions.pod:5538 ../src/guestfs-actions.pod:5550
5761 #: ../src/guestfs-actions.pod:5564 ../src/guestfs-actions.pod:5580
5762 #: ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5620
5763 #: ../src/guestfs-actions.pod:5639 ../src/guestfs-actions.pod:5657
5764 #: ../src/guestfs-actions.pod:5680 ../src/guestfs-actions.pod:5698
5765 #: ../src/guestfs-actions.pod:5717 ../src/guestfs-actions.pod:5738
5766 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5774
5767 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5826
5768 #: ../src/guestfs-actions.pod:5845 ../src/guestfs-actions.pod:5869
5769 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:5899
5770 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5955
5771 #: ../src/guestfs-actions.pod:5978 ../src/guestfs-actions.pod:6004
5772 #: ../src/guestfs-actions.pod:6112 ../src/guestfs-actions.pod:6233
5773 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6258
5774 #: ../src/guestfs-actions.pod:6271 ../src/guestfs-actions.pod:6293
5775 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6319
5776 #: ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6347
5777 #: ../src/guestfs-actions.pod:6406 ../src/guestfs-actions.pod:6423
5778 #: ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6455
5779 #: ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6485
5780 #: ../src/guestfs-actions.pod:6505 ../src/guestfs-actions.pod:6541
5781 #: ../src/guestfs-actions.pod:6555 ../src/guestfs-actions.pod:6596
5782 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:6627
5783 #: ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6697
5784 #: ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:6834
5785 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:6903
5786 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:6961
5787 #: ../src/guestfs-actions.pod:6994 ../src/guestfs-actions.pod:7048
5788 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7140
5789 #: ../src/guestfs-actions.pod:7159 ../src/guestfs-actions.pod:7188
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:7082
5809 #: ../src/guestfs-actions.pod:7251 ../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:4710 ../fish/guestfish-actions.pod:4807
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:4573 ../src/guestfs-actions.pod:5659
5827 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5886
5828 #: ../src/guestfs-actions.pod:6349 ../src/guestfs-actions.pod:6474
5829 #: ../src/guestfs-actions.pod:6996
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:4709
5936 #: ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:5243
5937 #: ../src/guestfs-actions.pod:5269 ../src/guestfs-actions.pod:6582
5938 #: ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7020
5939 #: ../src/guestfs-actions.pod:7033
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:4336 ../src/guestfs-actions.pod:4348
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:4307
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:5320
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:4855
6497 #: ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5218
6498 #: ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5445
6499 #: ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6041
6500 #: ../src/guestfs-actions.pod:6058 ../src/guestfs-actions.pod:6082
6501 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:6775
6502 #: ../src/guestfs-actions.pod:6793 ../src/guestfs-actions.pod:6973
6503 #: ../src/guestfs-actions.pod:7245
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:4670
6745 #: ../src/guestfs-actions.pod:5190 ../src/guestfs-actions.pod:5316
6746 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:6098
6747 #: ../src/guestfs-actions.pod:6159 ../src/guestfs-actions.pod:6214
6748 #: ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6384
6749 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6886
6750 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:7098
6751 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7202
6752 #: ../src/guestfs-actions.pod:7221 ../src/guestfs-actions.pod:7267
6753 #: ../src/guestfs-actions.pod:7286
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:4674
6768 #: ../src/guestfs-actions.pod:5131 ../src/guestfs-actions.pod:5526
6769 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5552
6770 #: ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6598
6771 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6850
6772 #: ../src/guestfs-actions.pod:7086
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:4819
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:6778
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:5306
7555 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:3541
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:5088 ../src/guestfs-actions.pod:5114
7579 #: ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5271
7580 #: ../src/guestfs-actions.pod:5295 ../src/guestfs-actions.pod:6163
7581 #: ../src/guestfs-actions.pod:6218 ../src/guestfs-actions.pod:6364
7582 #: ../src/guestfs-actions.pod:6388 ../src/guestfs-actions.pod:7050
7583 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7102
7584 #: ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7206
7585 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7271
7586 #: ../src/guestfs-actions.pod:7290 ../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:3411
7594 #: ../fish/guestfish-actions.pod:3426 ../fish/guestfish-actions.pod:3502
7595 #: ../fish/guestfish-actions.pod:3519 ../fish/guestfish-actions.pod:3534
7596 #: ../fish/guestfish-actions.pod:4130 ../fish/guestfish-actions.pod:4176
7597 #: ../fish/guestfish-actions.pod:4261 ../fish/guestfish-actions.pod:4276
7598 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4704
7599 #: ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4731
7600 #: ../fish/guestfish-actions.pod:4779 ../fish/guestfish-actions.pod:4789
7601 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4828
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:5194
7613 #: ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:6937
7614 #: ../src/guestfs-actions.pod:6951
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:6634
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:4725
7794 #: ../src/guestfs-actions.pod:4784 ../src/guestfs-actions.pod:4821
7795 #: ../src/guestfs-actions.pod:4839 ../src/guestfs-actions.pod:5015
7796 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6557
7797 #: ../src/guestfs-actions.pod:6963
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:4424 ../src/guestfs-actions.pod:4443
7884 #: ../src/guestfs-actions.pod:4462 ../fish/guestfish-actions.pod:669
7885 #: ../fish/guestfish-actions.pod:2870 ../fish/guestfish-actions.pod:2986
7886 #: ../fish/guestfish-actions.pod:2996 ../fish/guestfish-actions.pod:3006
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:6629
8113 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:7142
8114 #: ../src/guestfs-actions.pod:7161
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:5221 ../src/guestfs-actions.pod:6870
8126 #: ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6976
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:4688
8161 #: ../src/guestfs-actions.pod:5065
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:4588
8264 #: ../src/guestfs-actions.pod:6367 ../src/guestfs-actions.pod:6391
8265 #: ../src/guestfs-actions.pod:7009 ../src/guestfs-actions.pod:7022
8266 #: ../src/guestfs-actions.pod:7035
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:6623
8357 #: ../fish/guestfish-actions.pod:821 ../fish/guestfish-actions.pod:4434
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:6668
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:5871
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:4523
8617 #: ../src/guestfs-actions.pod:5399 ../src/guestfs-actions.pod:5448
8618 #: ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6247
8619 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:6273
8620 #: ../src/guestfs-actions.pod:6295 ../src/guestfs-actions.pod:6308
8621 #: ../src/guestfs-actions.pod:6321 ../src/guestfs-actions.pod:6334
8622 #: ../src/guestfs-actions.pod:7105 ../src/guestfs-actions.pod:7124
8623 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7228
8624 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7293
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:5483
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:7147
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:5161
9590 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:6009
9591 #: ../src/guestfs-actions.pod:6028 ../src/guestfs-actions.pod:6044
9592 #: ../src/guestfs-actions.pod:6061 ../src/guestfs-actions.pod:6818
9593 #: ../src/guestfs-actions.pod:6836 ../src/guestfs-actions.pod:7190
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:5682
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:5700 ../src/guestfs-actions.pod:5719
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:5735 ../src/guestfs-actions.pod:5842
9752 #: ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1386
9753 #: ../fish/guestfish-actions.pod:3841 ../fish/guestfish-actions.pod:3928
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:4428 ../src/guestfs-actions.pod:4447
9762 #: ../src/guestfs-actions.pod:4466 ../src/guestfs-actions.pod:4478
9763 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4508
9764 #: ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5740
9765 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6584
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:5759
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:5804
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:5091
9934 #: ../src/guestfs-actions.pod:5434 ../src/guestfs-actions.pod:5828
9935 #: ../src/guestfs-actions.pod:6487 ../src/guestfs-actions.pod:6507
9936 #: ../src/guestfs-actions.pod:6699
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:5847 ../src/guestfs-actions.pod:5901
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:5084
10160 #: ../src/guestfs-actions.pod:5110 ../src/guestfs-actions.pod:5291
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:5464 ../src/guestfs-actions.pod:5920
10224 #: ../src/guestfs-actions.pod:7255
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:6085
10271 #: ../src/guestfs-actions.pod:6102
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:6382
10443 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:4274
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:6166
10475 #: ../src/guestfs-actions.pod:6221
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:4650 ../src/guestfs-actions.pod:6523
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:5051
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:6122
12849 #: ../fish/guestfish-actions.pod:2483 ../fish/guestfish-actions.pod:4109
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:6126
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:6130
12878 #: ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6529
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:4802
13060 #: ../src/guestfs-actions.pod:5582 ../src/guestfs-actions.pod:5957
13061 #: ../src/guestfs-actions.pod:5980 ../src/guestfs-actions.pod:6006
13062 #: ../src/guestfs-actions.pod:7166 ../fish/guestfish-actions.pod:2550
13063 #: ../fish/guestfish-actions.pod:2563 ../fish/guestfish-actions.pod:2647
13064 #: ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3728
13065 #: ../fish/guestfish-actions.pod:4008 ../fish/guestfish-actions.pod:4024
13066 #: ../fish/guestfish-actions.pod:4039 ../fish/guestfish-actions.pod:4754
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:5148
13431 #: ../src/guestfs-actions.pod:6905
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:6918
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:4538
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:4317
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 #. type: verbatim
14141 #: ../src/guestfs-actions.pod:4302
14142 #, no-wrap
14143 msgid ""
14144 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
14145 "\n"
14146 msgstr ""
14147
14148 # type: textblock
14149 #. type: textblock
14150 #: ../src/guestfs-actions.pod:4304 ../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:4311 ../fish/guestfish-actions.pod:2910
14159 msgid "C<blocksize>"
14160 msgstr ""
14161
14162 # type: textblock
14163 #. type: textblock
14164 #: ../src/guestfs-actions.pod:4313 ../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:4324
14173 msgid "(Added in 1.7.19)"
14174 msgstr ""
14175
14176 # type: =head2
14177 #. type: =head2
14178 #: ../src/guestfs-actions.pod:4326
14179 msgid "guestfs_mkfs_opts_va"
14180 msgstr ""
14181
14182 # type: verbatim
14183 #. type: verbatim
14184 #: ../src/guestfs-actions.pod:4328
14185 #, no-wrap
14186 msgid ""
14187 " int\n"
14188 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
14189 "                       const char *fstype,\n"
14190 "                       const char *device,\n"
14191 "                       va_list args);\n"
14192 "\n"
14193 msgstr ""
14194
14195 # type: textblock
14196 #. type: textblock
14197 #: ../src/guestfs-actions.pod:4334
14198 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
14199 msgstr ""
14200
14201 # type: =head2
14202 #. type: =head2
14203 #: ../src/guestfs-actions.pod:4338
14204 msgid "guestfs_mkfs_opts_argv"
14205 msgstr ""
14206
14207 # type: verbatim
14208 #. type: verbatim
14209 #: ../src/guestfs-actions.pod:4340
14210 #, no-wrap
14211 msgid ""
14212 " int\n"
14213 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
14214 "                         const char *fstype,\n"
14215 "                         const char *device,\n"
14216 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
14217 "\n"
14218 msgstr ""
14219
14220 # type: textblock
14221 #. type: textblock
14222 #: ../src/guestfs-actions.pod:4346
14223 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
14224 msgstr ""
14225
14226 # type: =head2
14227 #. type: =head2
14228 #: ../src/guestfs-actions.pod:4350
14229 msgid "guestfs_mkmountpoint"
14230 msgstr ""
14231
14232 # type: verbatim
14233 #. type: verbatim
14234 #: ../src/guestfs-actions.pod:4352
14235 #, no-wrap
14236 msgid ""
14237 " int\n"
14238 " guestfs_mkmountpoint (guestfs_h *g,\n"
14239 "                       const char *exemptpath);\n"
14240 "\n"
14241 msgstr ""
14242
14243 # type: textblock
14244 #. type: textblock
14245 #: ../src/guestfs-actions.pod:4356
14246 msgid ""
14247 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
14248 "that can be used to create extra mountpoints before mounting the first "
14249 "filesystem."
14250 msgstr ""
14251
14252 # type: textblock
14253 #. type: textblock
14254 #: ../src/guestfs-actions.pod:4360 ../fish/guestfish-actions.pod:2931
14255 msgid ""
14256 "These calls are I<only> necessary in some very limited circumstances, mainly "
14257 "the case where you want to mount a mix of unrelated and/or read-only "
14258 "filesystems together."
14259 msgstr ""
14260
14261 # type: textblock
14262 #. type: textblock
14263 #: ../src/guestfs-actions.pod:4364 ../fish/guestfish-actions.pod:2935
14264 msgid ""
14265 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14266 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14267 "inside that.  You can unpack this as follows in guestfish:"
14268 msgstr ""
14269
14270 # type: verbatim
14271 #. type: verbatim
14272 #: ../src/guestfs-actions.pod:4369 ../fish/guestfish-actions.pod:2940
14273 #, no-wrap
14274 msgid ""
14275 " add-ro Fedora-11-i686-Live.iso\n"
14276 " run\n"
14277 " mkmountpoint /cd\n"
14278 " mkmountpoint /sqsh\n"
14279 " mkmountpoint /ext3fs\n"
14280 " mount /dev/sda /cd\n"
14281 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14282 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14283 "\n"
14284 msgstr ""
14285
14286 # type: textblock
14287 #. type: textblock
14288 #: ../src/guestfs-actions.pod:4378 ../fish/guestfish-actions.pod:2949
14289 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14290 msgstr ""
14291
14292 # type: textblock
14293 #. type: textblock
14294 #: ../src/guestfs-actions.pod:4380
14295 msgid ""
14296 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
14297 "may get unexpected errors if you try to mix these calls.  It is safest to "
14298 "manually unmount filesystems and remove mountpoints after use."
14299 msgstr ""
14300
14301 # type: textblock
14302 #. type: textblock
14303 #: ../src/guestfs-actions.pod:4384
14304 msgid ""
14305 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
14306 "first, so for this to work for manual mountpoints, you must ensure that the "
14307 "innermost mountpoints have the longest pathnames, as in the example code "
14308 "above."
14309 msgstr ""
14310
14311 # type: textblock
14312 #. type: textblock
14313 #: ../src/guestfs-actions.pod:4389 ../fish/guestfish-actions.pod:2960
14314 msgid ""
14315 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14316 msgstr ""
14317
14318 # type: textblock
14319 #. type: textblock
14320 #: ../src/guestfs-actions.pod:4391
14321 msgid ""
14322 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
14323 "means that C<guestfs_umount_all> is called when the handle is closed which "
14324 "can also trigger these issues."
14325 msgstr ""
14326
14327 # type: textblock
14328 #. type: textblock
14329 #: ../src/guestfs-actions.pod:4397 ../src/guestfs-actions.pod:4656
14330 #: ../src/guestfs-actions.pod:5566
14331 msgid "(Added in 1.0.62)"
14332 msgstr ""
14333
14334 # type: =head2
14335 #. type: =head2
14336 #: ../src/guestfs-actions.pod:4399
14337 msgid "guestfs_mknod"
14338 msgstr ""
14339
14340 # type: verbatim
14341 #. type: verbatim
14342 #: ../src/guestfs-actions.pod:4401
14343 #, no-wrap
14344 msgid ""
14345 " int\n"
14346 " guestfs_mknod (guestfs_h *g,\n"
14347 "                int mode,\n"
14348 "                int devmajor,\n"
14349 "                int devminor,\n"
14350 "                const char *path);\n"
14351 "\n"
14352 msgstr ""
14353
14354 # type: textblock
14355 #. type: textblock
14356 #: ../src/guestfs-actions.pod:4408 ../fish/guestfish-actions.pod:2970
14357 msgid ""
14358 "This call creates block or character special devices, or named pipes (FIFOs)."
14359 msgstr ""
14360
14361 # type: textblock
14362 #. type: textblock
14363 #: ../src/guestfs-actions.pod:4411 ../fish/guestfish-actions.pod:2973
14364 msgid ""
14365 "The C<mode> parameter should be the mode, using the standard constants.  "
14366 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14367 "used when creating block and character special devices."
14368 msgstr ""
14369
14370 # type: textblock
14371 #. type: textblock
14372 #: ../src/guestfs-actions.pod:4416
14373 msgid ""
14374 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14375 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14376 "regular file).  These constants are available in the standard Linux header "
14377 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
14378 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
14379 "the appropriate constant for you."
14380 msgstr ""
14381
14382 # type: =head2
14383 #. type: =head2
14384 #: ../src/guestfs-actions.pod:4430
14385 msgid "guestfs_mknod_b"
14386 msgstr ""
14387
14388 # type: verbatim
14389 #. type: verbatim
14390 #: ../src/guestfs-actions.pod:4432
14391 #, no-wrap
14392 msgid ""
14393 " int\n"
14394 " guestfs_mknod_b (guestfs_h *g,\n"
14395 "                  int mode,\n"
14396 "                  int devmajor,\n"
14397 "                  int devminor,\n"
14398 "                  const char *path);\n"
14399 "\n"
14400 msgstr ""
14401
14402 # type: textblock
14403 #. type: textblock
14404 #: ../src/guestfs-actions.pod:4439
14405 msgid ""
14406 "This call creates a block device node called C<path> with mode C<mode> and "
14407 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14408 "wrapper around C<guestfs_mknod>."
14409 msgstr ""
14410
14411 # type: =head2
14412 #. type: =head2
14413 #: ../src/guestfs-actions.pod:4449
14414 msgid "guestfs_mknod_c"
14415 msgstr ""
14416
14417 # type: verbatim
14418 #. type: verbatim
14419 #: ../src/guestfs-actions.pod:4451
14420 #, no-wrap
14421 msgid ""
14422 " int\n"
14423 " guestfs_mknod_c (guestfs_h *g,\n"
14424 "                  int mode,\n"
14425 "                  int devmajor,\n"
14426 "                  int devminor,\n"
14427 "                  const char *path);\n"
14428 "\n"
14429 msgstr ""
14430
14431 # type: textblock
14432 #. type: textblock
14433 #: ../src/guestfs-actions.pod:4458
14434 msgid ""
14435 "This call creates a char device node called C<path> with mode C<mode> and "
14436 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14437 "wrapper around C<guestfs_mknod>."
14438 msgstr ""
14439
14440 # type: =head2
14441 #. type: =head2
14442 #: ../src/guestfs-actions.pod:4468
14443 msgid "guestfs_mkswap"
14444 msgstr ""
14445
14446 # type: verbatim
14447 #. type: verbatim
14448 #: ../src/guestfs-actions.pod:4470
14449 #, no-wrap
14450 msgid ""
14451 " int\n"
14452 " guestfs_mkswap (guestfs_h *g,\n"
14453 "                 const char *device);\n"
14454 "\n"
14455 msgstr ""
14456
14457 # type: textblock
14458 #. type: textblock
14459 #: ../src/guestfs-actions.pod:4474 ../fish/guestfish-actions.pod:3012
14460 msgid "Create a swap partition on C<device>."
14461 msgstr ""
14462
14463 # type: =head2
14464 #. type: =head2
14465 #: ../src/guestfs-actions.pod:4480
14466 msgid "guestfs_mkswap_L"
14467 msgstr ""
14468
14469 # type: verbatim
14470 #. type: verbatim
14471 #: ../src/guestfs-actions.pod:4482
14472 #, no-wrap
14473 msgid ""
14474 " int\n"
14475 " guestfs_mkswap_L (guestfs_h *g,\n"
14476 "                   const char *label,\n"
14477 "                   const char *device);\n"
14478 "\n"
14479 msgstr ""
14480
14481 # type: textblock
14482 #. type: textblock
14483 #: ../src/guestfs-actions.pod:4487 ../fish/guestfish-actions.pod:3018
14484 msgid "Create a swap partition on C<device> with label C<label>."
14485 msgstr ""
14486
14487 # type: textblock
14488 #. type: textblock
14489 #: ../src/guestfs-actions.pod:4489 ../fish/guestfish-actions.pod:3020
14490 msgid ""
14491 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14492 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14493 "or swap tools."
14494 msgstr ""
14495
14496 # type: =head2
14497 #. type: =head2
14498 #: ../src/guestfs-actions.pod:4497
14499 msgid "guestfs_mkswap_U"
14500 msgstr ""
14501
14502 # type: verbatim
14503 #. type: verbatim
14504 #: ../src/guestfs-actions.pod:4499
14505 #, no-wrap
14506 msgid ""
14507 " int\n"
14508 " guestfs_mkswap_U (guestfs_h *g,\n"
14509 "                   const char *uuid,\n"
14510 "                   const char *device);\n"
14511 "\n"
14512 msgstr ""
14513
14514 # type: textblock
14515 #. type: textblock
14516 #: ../src/guestfs-actions.pod:4504 ../fish/guestfish-actions.pod:3028
14517 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14518 msgstr ""
14519
14520 # type: =head2
14521 #. type: =head2
14522 #: ../src/guestfs-actions.pod:4510
14523 msgid "guestfs_mkswap_file"
14524 msgstr ""
14525
14526 # type: verbatim
14527 #. type: verbatim
14528 #: ../src/guestfs-actions.pod:4512
14529 #, no-wrap
14530 msgid ""
14531 " int\n"
14532 " guestfs_mkswap_file (guestfs_h *g,\n"
14533 "                      const char *path);\n"
14534 "\n"
14535 msgstr ""
14536
14537 # type: textblock
14538 #. type: textblock
14539 #: ../src/guestfs-actions.pod:4516 ../fish/guestfish-actions.pod:3034
14540 msgid "Create a swap file."
14541 msgstr ""
14542
14543 # type: textblock
14544 #. type: textblock
14545 #: ../src/guestfs-actions.pod:4518
14546 msgid ""
14547 "This command just writes a swap file signature to an existing file.  To "
14548 "create the file itself, use something like C<guestfs_fallocate>."
14549 msgstr ""
14550
14551 # type: =head2
14552 #. type: =head2
14553 #: ../src/guestfs-actions.pod:4525
14554 msgid "guestfs_modprobe"
14555 msgstr ""
14556
14557 # type: verbatim
14558 #. type: verbatim
14559 #: ../src/guestfs-actions.pod:4527
14560 #, no-wrap
14561 msgid ""
14562 " int\n"
14563 " guestfs_modprobe (guestfs_h *g,\n"
14564 "                   const char *modulename);\n"
14565 "\n"
14566 msgstr ""
14567
14568 # type: textblock
14569 #. type: textblock
14570 #: ../src/guestfs-actions.pod:4531 ../fish/guestfish-actions.pod:3043
14571 msgid "This loads a kernel module in the appliance."
14572 msgstr ""
14573
14574 # type: textblock
14575 #. type: textblock
14576 #: ../src/guestfs-actions.pod:4533 ../fish/guestfish-actions.pod:3045
14577 msgid ""
14578 "The kernel module must have been whitelisted when libguestfs was built (see "
14579 "C<appliance/kmod.whitelist.in> in the source)."
14580 msgstr ""
14581
14582 # type: =head2
14583 #. type: =head2
14584 #: ../src/guestfs-actions.pod:4540
14585 msgid "guestfs_mount"
14586 msgstr ""
14587
14588 # type: verbatim
14589 #. type: verbatim
14590 #: ../src/guestfs-actions.pod:4542
14591 #, no-wrap
14592 msgid ""
14593 " int\n"
14594 " guestfs_mount (guestfs_h *g,\n"
14595 "                const char *device,\n"
14596 "                const char *mountpoint);\n"
14597 "\n"
14598 msgstr ""
14599
14600 # type: textblock
14601 #. type: textblock
14602 #: ../src/guestfs-actions.pod:4547 ../fish/guestfish-actions.pod:3052
14603 msgid ""
14604 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14605 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14606 "those block devices contain partitions, they will have the usual names (eg. "
14607 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14608 msgstr ""
14609
14610 # type: textblock
14611 #. type: textblock
14612 #: ../src/guestfs-actions.pod:4553 ../fish/guestfish-actions.pod:3058
14613 msgid ""
14614 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14615 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14616 "mounted on directories which already exist."
14617 msgstr ""
14618
14619 # type: textblock
14620 #. type: textblock
14621 #: ../src/guestfs-actions.pod:4558 ../fish/guestfish-actions.pod:3063
14622 msgid ""
14623 "The mounted filesystem is writable, if we have sufficient permissions on the "
14624 "underlying device."
14625 msgstr ""
14626
14627 # type: textblock
14628 #. type: textblock
14629 #: ../src/guestfs-actions.pod:4561
14630 msgid ""
14631 "B<Important note:> When you use this call, the filesystem options C<sync> "
14632 "and C<noatime> are set implicitly.  This was originally done because we "
14633 "thought it would improve reliability, but it turns out that I<-o sync> has a "
14634 "very large negative performance impact and negligible effect on "
14635 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
14636 "in any code that needs performance, and instead use C<guestfs_mount_options> "
14637 "(use an empty string for the first parameter if you don't want any options)."
14638 msgstr ""
14639
14640 # type: =head2
14641 #. type: =head2
14642 #: ../src/guestfs-actions.pod:4575
14643 msgid "guestfs_mount_loop"
14644 msgstr ""
14645
14646 # type: verbatim
14647 #. type: verbatim
14648 #: ../src/guestfs-actions.pod:4577
14649 #, no-wrap
14650 msgid ""
14651 " int\n"
14652 " guestfs_mount_loop (guestfs_h *g,\n"
14653 "                     const char *file,\n"
14654 "                     const char *mountpoint);\n"
14655 "\n"
14656 msgstr ""
14657
14658 # type: textblock
14659 #. type: textblock
14660 #: ../src/guestfs-actions.pod:4582 ../fish/guestfish-actions.pod:3080
14661 msgid ""
14662 "This command lets you mount C<file> (a filesystem image in a file) on a "
14663 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14664 "mountpoint>."
14665 msgstr ""
14666
14667 # type: =head2
14668 #. type: =head2
14669 #: ../src/guestfs-actions.pod:4590
14670 msgid "guestfs_mount_options"
14671 msgstr ""
14672
14673 # type: verbatim
14674 #. type: verbatim
14675 #: ../src/guestfs-actions.pod:4592
14676 #, no-wrap
14677 msgid ""
14678 " int\n"
14679 " guestfs_mount_options (guestfs_h *g,\n"
14680 "                        const char *options,\n"
14681 "                        const char *device,\n"
14682 "                        const char *mountpoint);\n"
14683 "\n"
14684 msgstr ""
14685
14686 # type: textblock
14687 #. type: textblock
14688 #: ../src/guestfs-actions.pod:4598
14689 msgid ""
14690 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14691 "the mount options as for the L<mount(8)> I<-o> flag."
14692 msgstr ""
14693
14694 # type: textblock
14695 #. type: textblock
14696 #: ../src/guestfs-actions.pod:4602 ../fish/guestfish-actions.pod:3092
14697 msgid ""
14698 "If the C<options> parameter is an empty string, then no options are passed "
14699 "(all options default to whatever the filesystem uses)."
14700 msgstr ""
14701
14702 # type: textblock
14703 #. type: textblock
14704 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4622
14705 #: ../src/guestfs-actions.pod:4639
14706 msgid "(Added in 1.0.10)"
14707 msgstr ""
14708
14709 # type: =head2
14710 #. type: =head2
14711 #: ../src/guestfs-actions.pod:4610
14712 msgid "guestfs_mount_ro"
14713 msgstr ""
14714
14715 # type: verbatim
14716 #. type: verbatim
14717 #: ../src/guestfs-actions.pod:4612
14718 #, no-wrap
14719 msgid ""
14720 " int\n"
14721 " guestfs_mount_ro (guestfs_h *g,\n"
14722 "                   const char *device,\n"
14723 "                   const char *mountpoint);\n"
14724 "\n"
14725 msgstr ""
14726
14727 # type: textblock
14728 #. type: textblock
14729 #: ../src/guestfs-actions.pod:4617
14730 msgid ""
14731 "This is the same as the C<guestfs_mount> command, but it mounts the "
14732 "filesystem with the read-only (I<-o ro>) flag."
14733 msgstr ""
14734
14735 # type: =head2
14736 #. type: =head2
14737 #: ../src/guestfs-actions.pod:4624
14738 msgid "guestfs_mount_vfs"
14739 msgstr ""
14740
14741 # type: verbatim
14742 #. type: verbatim
14743 #: ../src/guestfs-actions.pod:4626
14744 #, no-wrap
14745 msgid ""
14746 " int\n"
14747 " guestfs_mount_vfs (guestfs_h *g,\n"
14748 "                    const char *options,\n"
14749 "                    const char *vfstype,\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:4633
14758 msgid ""
14759 "This is the same as the C<guestfs_mount> command, but it allows you to set "
14760 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
14761 "t> flags."
14762 msgstr ""
14763
14764 # type: =head2
14765 #. type: =head2
14766 #: ../src/guestfs-actions.pod:4641
14767 msgid "guestfs_mountpoints"
14768 msgstr ""
14769
14770 # type: verbatim
14771 #. type: verbatim
14772 #: ../src/guestfs-actions.pod:4643
14773 #, no-wrap
14774 msgid ""
14775 " char **\n"
14776 " guestfs_mountpoints (guestfs_h *g);\n"
14777 "\n"
14778 msgstr ""
14779
14780 # type: textblock
14781 #. type: textblock
14782 #: ../src/guestfs-actions.pod:4646
14783 msgid ""
14784 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
14785 "devices.  This one returns a hash table (map) of device name to directory "
14786 "where the device is mounted."
14787 msgstr ""
14788
14789 # type: =head2
14790 #. type: =head2
14791 #: ../src/guestfs-actions.pod:4658
14792 msgid "guestfs_mounts"
14793 msgstr ""
14794
14795 # type: verbatim
14796 #. type: verbatim
14797 #: ../src/guestfs-actions.pod:4660
14798 #, no-wrap
14799 msgid ""
14800 " char **\n"
14801 " guestfs_mounts (guestfs_h *g);\n"
14802 "\n"
14803 msgstr ""
14804
14805 # type: textblock
14806 #. type: textblock
14807 #: ../src/guestfs-actions.pod:4663 ../fish/guestfish-actions.pod:3123
14808 msgid ""
14809 "This returns the list of currently mounted filesystems.  It returns the list "
14810 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14811 msgstr ""
14812
14813 # type: textblock
14814 #. type: textblock
14815 #: ../src/guestfs-actions.pod:4666 ../fish/guestfish-actions.pod:3126
14816 msgid "Some internal mounts are not shown."
14817 msgstr ""
14818
14819 # type: textblock
14820 #. type: textblock
14821 #: ../src/guestfs-actions.pod:4668
14822 msgid "See also: C<guestfs_mountpoints>"
14823 msgstr ""
14824
14825 # type: =head2
14826 #. type: =head2
14827 #: ../src/guestfs-actions.pod:4676
14828 msgid "guestfs_mv"
14829 msgstr ""
14830
14831 # type: verbatim
14832 #. type: verbatim
14833 #: ../src/guestfs-actions.pod:4678
14834 #, no-wrap
14835 msgid ""
14836 " int\n"
14837 " guestfs_mv (guestfs_h *g,\n"
14838 "             const char *src,\n"
14839 "             const char *dest);\n"
14840 "\n"
14841 msgstr ""
14842
14843 # type: textblock
14844 #. type: textblock
14845 #: ../src/guestfs-actions.pod:4683 ../fish/guestfish-actions.pod:3134
14846 msgid ""
14847 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14848 "destination filename or destination directory."
14849 msgstr ""
14850
14851 # type: =head2
14852 #. type: =head2
14853 #: ../src/guestfs-actions.pod:4690
14854 msgid "guestfs_ntfs_3g_probe"
14855 msgstr ""
14856
14857 # type: verbatim
14858 #. type: verbatim
14859 #: ../src/guestfs-actions.pod:4692
14860 #, no-wrap
14861 msgid ""
14862 " int\n"
14863 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
14864 "                        int rw,\n"
14865 "                        const char *device);\n"
14866 "\n"
14867 msgstr ""
14868
14869 # type: textblock
14870 #. type: textblock
14871 #: ../src/guestfs-actions.pod:4697 ../fish/guestfish-actions.pod:3141
14872 msgid ""
14873 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14874 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14875 "write, and some cannot be mounted at all)."
14876 msgstr ""
14877
14878 # type: textblock
14879 #. type: textblock
14880 #: ../src/guestfs-actions.pod:4701 ../fish/guestfish-actions.pod:3145
14881 msgid ""
14882 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14883 "can be mounted read-write.  Set it to false if you want to test if the "
14884 "volume can be mounted read-only."
14885 msgstr ""
14886
14887 # type: textblock
14888 #. type: textblock
14889 #: ../src/guestfs-actions.pod:4705 ../fish/guestfish-actions.pod:3149
14890 msgid ""
14891 "The return value is an integer which C<0> if the operation would succeed, or "
14892 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14893 msgstr ""
14894
14895 # type: textblock
14896 #. type: textblock
14897 #: ../src/guestfs-actions.pod:4711
14898 msgid "(Added in 1.0.43)"
14899 msgstr ""
14900
14901 # type: =head2
14902 #. type: =head2
14903 #: ../src/guestfs-actions.pod:4713
14904 msgid "guestfs_ntfsresize"
14905 msgstr ""
14906
14907 # type: verbatim
14908 #. type: verbatim
14909 #: ../src/guestfs-actions.pod:4715
14910 #, no-wrap
14911 msgid ""
14912 " int\n"
14913 " guestfs_ntfsresize (guestfs_h *g,\n"
14914 "                     const char *device);\n"
14915 "\n"
14916 msgstr ""
14917
14918 # type: textblock
14919 #. type: textblock
14920 #: ../src/guestfs-actions.pod:4719 ../fish/guestfish-actions.pod:3157
14921 msgid ""
14922 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14923 "size of the underlying device.  See also L<ntfsresize(8)>."
14924 msgstr ""
14925
14926 # type: =head2
14927 #. type: =head2
14928 #: ../src/guestfs-actions.pod:4727
14929 msgid "guestfs_ntfsresize_size"
14930 msgstr ""
14931
14932 # type: verbatim
14933 #. type: verbatim
14934 #: ../src/guestfs-actions.pod:4729
14935 #, no-wrap
14936 msgid ""
14937 " int\n"
14938 " guestfs_ntfsresize_size (guestfs_h *g,\n"
14939 "                          const char *device,\n"
14940 "                          int64_t size);\n"
14941 "\n"
14942 msgstr ""
14943
14944 # type: textblock
14945 #. type: textblock
14946 #: ../src/guestfs-actions.pod:4734
14947 msgid ""
14948 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
14949 "to specify the new size (in bytes) explicitly."
14950 msgstr ""
14951
14952 # type: textblock
14953 #. type: textblock
14954 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:5175
14955 #: ../src/guestfs-actions.pod:5248 ../src/guestfs-actions.pod:5514
14956 #: ../src/guestfs-actions.pod:7053
14957 msgid "(Added in 1.3.14)"
14958 msgstr ""
14959
14960 # type: =head2
14961 #. type: =head2
14962 #: ../src/guestfs-actions.pod:4741
14963 msgid "guestfs_part_add"
14964 msgstr ""
14965
14966 # type: verbatim
14967 #. type: verbatim
14968 #: ../src/guestfs-actions.pod:4743
14969 #, no-wrap
14970 msgid ""
14971 " int\n"
14972 " guestfs_part_add (guestfs_h *g,\n"
14973 "                   const char *device,\n"
14974 "                   const char *prlogex,\n"
14975 "                   int64_t startsect,\n"
14976 "                   int64_t endsect);\n"
14977 "\n"
14978 msgstr ""
14979
14980 # type: textblock
14981 #. type: textblock
14982 #: ../src/guestfs-actions.pod:4750
14983 msgid ""
14984 "This command adds a partition to C<device>.  If there is no partition table "
14985 "on the device, call C<guestfs_part_init> first."
14986 msgstr ""
14987
14988 # type: textblock
14989 #. type: textblock
14990 #: ../src/guestfs-actions.pod:4753 ../fish/guestfish-actions.pod:3175
14991 msgid ""
14992 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
14993 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
14994 "C<logical>) and C<e> (or C<extended>) partition types."
14995 msgstr ""
14996
14997 # type: textblock
14998 #. type: textblock
14999 #: ../src/guestfs-actions.pod:4758 ../fish/guestfish-actions.pod:3180
15000 msgid ""
15001 "C<startsect> and C<endsect> are the start and end of the partition in "
15002 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15003 "from the end of the disk (C<-1> is the last sector)."
15004 msgstr ""
15005
15006 # type: textblock
15007 #. type: textblock
15008 #: ../src/guestfs-actions.pod:4762
15009 msgid ""
15010 "Creating a partition which covers the whole disk is not so easy.  Use "
15011 "C<guestfs_part_disk> to do that."
15012 msgstr ""
15013
15014 # type: textblock
15015 #. type: textblock
15016 #: ../src/guestfs-actions.pod:4767 ../src/guestfs-actions.pod:4805
15017 #: ../src/guestfs-actions.pod:4858 ../src/guestfs-actions.pod:4936
15018 #: ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:4993
15019 #: ../src/guestfs-actions.pod:5033
15020 msgid "(Added in 1.0.78)"
15021 msgstr ""
15022
15023 # type: =head2
15024 #. type: =head2
15025 #: ../src/guestfs-actions.pod:4769
15026 msgid "guestfs_part_del"
15027 msgstr ""
15028
15029 # type: verbatim
15030 #. type: verbatim
15031 #: ../src/guestfs-actions.pod:4771
15032 #, no-wrap
15033 msgid ""
15034 " int\n"
15035 " guestfs_part_del (guestfs_h *g,\n"
15036 "                   const char *device,\n"
15037 "                   int partnum);\n"
15038 "\n"
15039 msgstr ""
15040
15041 # type: textblock
15042 #. type: textblock
15043 #: ../src/guestfs-actions.pod:4776 ../fish/guestfish-actions.pod:3191
15044 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15045 msgstr ""
15046
15047 # type: textblock
15048 #. type: textblock
15049 #: ../src/guestfs-actions.pod:4778 ../fish/guestfish-actions.pod:3193
15050 msgid ""
15051 "Note that in the case of MBR partitioning, deleting an extended partition "
15052 "also deletes any logical partitions it contains."
15053 msgstr ""
15054
15055 # type: =head2
15056 #. type: =head2
15057 #: ../src/guestfs-actions.pod:4786
15058 msgid "guestfs_part_disk"
15059 msgstr ""
15060
15061 # type: verbatim
15062 #. type: verbatim
15063 #: ../src/guestfs-actions.pod:4788
15064 #, no-wrap
15065 msgid ""
15066 " int\n"
15067 " guestfs_part_disk (guestfs_h *g,\n"
15068 "                    const char *device,\n"
15069 "                    const char *parttype);\n"
15070 "\n"
15071 msgstr ""
15072
15073 # type: textblock
15074 #. type: textblock
15075 #: ../src/guestfs-actions.pod:4793
15076 msgid ""
15077 "This command is simply a combination of C<guestfs_part_init> followed by "
15078 "C<guestfs_part_add> to create a single primary partition covering the whole "
15079 "disk."
15080 msgstr ""
15081
15082 # type: textblock
15083 #. type: textblock
15084 #: ../src/guestfs-actions.pod:4797
15085 msgid ""
15086 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15087 "possible values are described in C<guestfs_part_init>."
15088 msgstr ""
15089
15090 # type: =head2
15091 #. type: =head2
15092 #: ../src/guestfs-actions.pod:4807
15093 msgid "guestfs_part_get_bootable"
15094 msgstr ""
15095
15096 # type: verbatim
15097 #. type: verbatim
15098 #: ../src/guestfs-actions.pod:4809
15099 #, no-wrap
15100 msgid ""
15101 " int\n"
15102 " guestfs_part_get_bootable (guestfs_h *g,\n"
15103 "                            const char *device,\n"
15104 "                            int partnum);\n"
15105 "\n"
15106 msgstr ""
15107
15108 # type: textblock
15109 #. type: textblock
15110 #: ../src/guestfs-actions.pod:4814 ../fish/guestfish-actions.pod:3215
15111 msgid ""
15112 "This command returns true if the partition C<partnum> on C<device> has the "
15113 "bootable flag set."
15114 msgstr ""
15115
15116 # type: textblock
15117 #. type: textblock
15118 #: ../src/guestfs-actions.pod:4817
15119 msgid "See also C<guestfs_part_set_bootable>."
15120 msgstr ""
15121
15122 # type: =head2
15123 #. type: =head2
15124 #: ../src/guestfs-actions.pod:4823
15125 msgid "guestfs_part_get_mbr_id"
15126 msgstr ""
15127
15128 # type: verbatim
15129 #. type: verbatim
15130 #: ../src/guestfs-actions.pod:4825
15131 #, no-wrap
15132 msgid ""
15133 " int\n"
15134 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
15135 "                          const char *device,\n"
15136 "                          int partnum);\n"
15137 "\n"
15138 msgstr ""
15139
15140 # type: textblock
15141 #. type: textblock
15142 #: ../src/guestfs-actions.pod:4830 ../fish/guestfish-actions.pod:3224
15143 msgid ""
15144 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15145 "partition C<partnum>."
15146 msgstr ""
15147
15148 # type: textblock
15149 #. type: textblock
15150 #: ../src/guestfs-actions.pod:4833 ../src/guestfs-actions.pod:5009
15151 msgid ""
15152 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15153 "undefined results for other partition table types (see "
15154 "C<guestfs_part_get_parttype>)."
15155 msgstr ""
15156
15157 # type: =head2
15158 #. type: =head2
15159 #: ../src/guestfs-actions.pod:4841
15160 msgid "guestfs_part_get_parttype"
15161 msgstr ""
15162
15163 # type: verbatim
15164 #. type: verbatim
15165 #: ../src/guestfs-actions.pod:4843
15166 #, no-wrap
15167 msgid ""
15168 " char *\n"
15169 " guestfs_part_get_parttype (guestfs_h *g,\n"
15170 "                            const char *device);\n"
15171 "\n"
15172 msgstr ""
15173
15174 # type: textblock
15175 #. type: textblock
15176 #: ../src/guestfs-actions.pod:4847 ../fish/guestfish-actions.pod:3235
15177 msgid ""
15178 "This command examines the partition table on C<device> and returns the "
15179 "partition table type (format) being used."
15180 msgstr ""
15181
15182 # type: textblock
15183 #. type: textblock
15184 #: ../src/guestfs-actions.pod:4850
15185 msgid ""
15186 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15187 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15188 "possible, although unusual.  See C<guestfs_part_init> for a full list."
15189 msgstr ""
15190
15191 # type: =head2
15192 #. type: =head2
15193 #: ../src/guestfs-actions.pod:4860
15194 msgid "guestfs_part_init"
15195 msgstr ""
15196
15197 # type: verbatim
15198 #. type: verbatim
15199 #: ../src/guestfs-actions.pod:4862
15200 #, no-wrap
15201 msgid ""
15202 " int\n"
15203 " guestfs_part_init (guestfs_h *g,\n"
15204 "                    const char *device,\n"
15205 "                    const char *parttype);\n"
15206 "\n"
15207 msgstr ""
15208
15209 # type: textblock
15210 #. type: textblock
15211 #: ../src/guestfs-actions.pod:4867 ../fish/guestfish-actions.pod:3247
15212 msgid ""
15213 "This creates an empty partition table on C<device> of one of the partition "
15214 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15215 "(for large disks)."
15216 msgstr ""
15217
15218 # type: textblock
15219 #. type: textblock
15220 #: ../src/guestfs-actions.pod:4871
15221 msgid ""
15222 "Initially there are no partitions.  Following this, you should call "
15223 "C<guestfs_part_add> for each partition required."
15224 msgstr ""
15225
15226 # type: textblock
15227 #. type: textblock
15228 #: ../src/guestfs-actions.pod:4874 ../fish/guestfish-actions.pod:3254
15229 msgid "Possible values for C<parttype> are:"
15230 msgstr ""
15231
15232 # type: =item
15233 #. type: =item
15234 #: ../src/guestfs-actions.pod:4878 ../fish/guestfish-actions.pod:3258
15235 msgid "B<efi> | B<gpt>"
15236 msgstr ""
15237
15238 # type: textblock
15239 #. type: textblock
15240 #: ../src/guestfs-actions.pod:4880 ../fish/guestfish-actions.pod:3260
15241 msgid "Intel EFI / GPT partition table."
15242 msgstr ""
15243
15244 # type: textblock
15245 #. type: textblock
15246 #: ../src/guestfs-actions.pod:4882 ../fish/guestfish-actions.pod:3262
15247 msgid ""
15248 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15249 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15250 "the C<mbr> format."
15251 msgstr ""
15252
15253 # type: =item
15254 #. type: =item
15255 #: ../src/guestfs-actions.pod:4886 ../fish/guestfish-actions.pod:3266
15256 msgid "B<mbr> | B<msdos>"
15257 msgstr ""
15258
15259 # type: textblock
15260 #. type: textblock
15261 #: ../src/guestfs-actions.pod:4888 ../fish/guestfish-actions.pod:3268
15262 msgid ""
15263 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15264 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15265 "TB.  For large disks we recommend using C<gpt>."
15266 msgstr ""
15267
15268 # type: textblock
15269 #. type: textblock
15270 #: ../src/guestfs-actions.pod:4895 ../fish/guestfish-actions.pod:3275
15271 msgid ""
15272 "Other partition table types that may work but are not supported include:"
15273 msgstr ""
15274
15275 # type: =item
15276 #. type: =item
15277 #: ../src/guestfs-actions.pod:4900 ../fish/guestfish-actions.pod:3280
15278 msgid "B<aix>"
15279 msgstr ""
15280
15281 # type: textblock
15282 #. type: textblock
15283 #: ../src/guestfs-actions.pod:4902 ../fish/guestfish-actions.pod:3282
15284 msgid "AIX disk labels."
15285 msgstr ""
15286
15287 # type: =item
15288 #. type: =item
15289 #: ../src/guestfs-actions.pod:4904 ../fish/guestfish-actions.pod:3284
15290 msgid "B<amiga> | B<rdb>"
15291 msgstr ""
15292
15293 # type: textblock
15294 #. type: textblock
15295 #: ../src/guestfs-actions.pod:4906 ../fish/guestfish-actions.pod:3286
15296 msgid "Amiga \"Rigid Disk Block\" format."
15297 msgstr ""
15298
15299 # type: =item
15300 #. type: =item
15301 #: ../src/guestfs-actions.pod:4908 ../fish/guestfish-actions.pod:3288
15302 msgid "B<bsd>"
15303 msgstr ""
15304
15305 # type: textblock
15306 #. type: textblock
15307 #: ../src/guestfs-actions.pod:4910 ../fish/guestfish-actions.pod:3290
15308 msgid "BSD disk labels."
15309 msgstr ""
15310
15311 # type: =item
15312 #. type: =item
15313 #: ../src/guestfs-actions.pod:4912 ../fish/guestfish-actions.pod:3292
15314 msgid "B<dasd>"
15315 msgstr ""
15316
15317 # type: textblock
15318 #. type: textblock
15319 #: ../src/guestfs-actions.pod:4914 ../fish/guestfish-actions.pod:3294
15320 msgid "DASD, used on IBM mainframes."
15321 msgstr ""
15322
15323 # type: =item
15324 #. type: =item
15325 #: ../src/guestfs-actions.pod:4916 ../fish/guestfish-actions.pod:3296
15326 msgid "B<dvh>"
15327 msgstr ""
15328
15329 # type: textblock
15330 #. type: textblock
15331 #: ../src/guestfs-actions.pod:4918 ../fish/guestfish-actions.pod:3298
15332 msgid "MIPS/SGI volumes."
15333 msgstr ""
15334
15335 # type: =item
15336 #. type: =item
15337 #: ../src/guestfs-actions.pod:4920 ../fish/guestfish-actions.pod:3300
15338 msgid "B<mac>"
15339 msgstr ""
15340
15341 # type: textblock
15342 #. type: textblock
15343 #: ../src/guestfs-actions.pod:4922 ../fish/guestfish-actions.pod:3302
15344 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15345 msgstr ""
15346
15347 # type: =item
15348 #. type: =item
15349 #: ../src/guestfs-actions.pod:4924 ../fish/guestfish-actions.pod:3304
15350 msgid "B<pc98>"
15351 msgstr ""
15352
15353 # type: textblock
15354 #. type: textblock
15355 #: ../src/guestfs-actions.pod:4926 ../fish/guestfish-actions.pod:3306
15356 msgid "NEC PC-98 format, common in Japan apparently."
15357 msgstr ""
15358
15359 # type: =item
15360 #. type: =item
15361 #: ../src/guestfs-actions.pod:4928 ../fish/guestfish-actions.pod:3308
15362 msgid "B<sun>"
15363 msgstr ""
15364
15365 # type: textblock
15366 #. type: textblock
15367 #: ../src/guestfs-actions.pod:4930 ../fish/guestfish-actions.pod:3310
15368 msgid "Sun disk labels."
15369 msgstr ""
15370
15371 # type: =head2
15372 #. type: =head2
15373 #: ../src/guestfs-actions.pod:4938
15374 msgid "guestfs_part_list"
15375 msgstr ""
15376
15377 # type: verbatim
15378 #. type: verbatim
15379 #: ../src/guestfs-actions.pod:4940
15380 #, no-wrap
15381 msgid ""
15382 " struct guestfs_partition_list *\n"
15383 " guestfs_part_list (guestfs_h *g,\n"
15384 "                    const char *device);\n"
15385 "\n"
15386 msgstr ""
15387
15388 # type: textblock
15389 #. type: textblock
15390 #: ../src/guestfs-actions.pod:4944 ../fish/guestfish-actions.pod:3318
15391 msgid ""
15392 "This command parses the partition table on C<device> and returns the list of "
15393 "partitions found."
15394 msgstr ""
15395
15396 # type: textblock
15397 #. type: textblock
15398 #: ../src/guestfs-actions.pod:4947 ../fish/guestfish-actions.pod:3321
15399 msgid "The fields in the returned structure are:"
15400 msgstr ""
15401
15402 # type: =item
15403 #. type: =item
15404 #: ../src/guestfs-actions.pod:4951 ../fish/guestfish-actions.pod:3325
15405 msgid "B<part_num>"
15406 msgstr ""
15407
15408 # type: textblock
15409 #. type: textblock
15410 #: ../src/guestfs-actions.pod:4953 ../fish/guestfish-actions.pod:3327
15411 msgid "Partition number, counting from 1."
15412 msgstr ""
15413
15414 # type: =item
15415 #. type: =item
15416 #: ../src/guestfs-actions.pod:4955 ../fish/guestfish-actions.pod:3329
15417 msgid "B<part_start>"
15418 msgstr ""
15419
15420 # type: textblock
15421 #. type: textblock
15422 #: ../src/guestfs-actions.pod:4957
15423 msgid ""
15424 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15425 "the device's sector size, see C<guestfs_blockdev_getss>."
15426 msgstr ""
15427
15428 # type: =item
15429 #. type: =item
15430 #: ../src/guestfs-actions.pod:4960 ../fish/guestfish-actions.pod:3334
15431 msgid "B<part_end>"
15432 msgstr ""
15433
15434 # type: textblock
15435 #. type: textblock
15436 #: ../src/guestfs-actions.pod:4962 ../fish/guestfish-actions.pod:3336
15437 msgid "End of the partition in bytes."
15438 msgstr ""
15439
15440 # type: =item
15441 #. type: =item
15442 #: ../src/guestfs-actions.pod:4964 ../fish/guestfish-actions.pod:3338
15443 msgid "B<part_size>"
15444 msgstr ""
15445
15446 # type: textblock
15447 #. type: textblock
15448 #: ../src/guestfs-actions.pod:4966 ../fish/guestfish-actions.pod:3340
15449 msgid "Size of the partition in bytes."
15450 msgstr ""
15451
15452 # type: textblock
15453 #. type: textblock
15454 #: ../src/guestfs-actions.pod:4970
15455 msgid ""
15456 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
15457 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
15458 "use>."
15459 msgstr ""
15460
15461 # type: =head2
15462 #. type: =head2
15463 #: ../src/guestfs-actions.pod:4976
15464 msgid "guestfs_part_set_bootable"
15465 msgstr ""
15466
15467 # type: verbatim
15468 #. type: verbatim
15469 #: ../src/guestfs-actions.pod:4978
15470 #, no-wrap
15471 msgid ""
15472 " int\n"
15473 " guestfs_part_set_bootable (guestfs_h *g,\n"
15474 "                            const char *device,\n"
15475 "                            int partnum,\n"
15476 "                            int bootable);\n"
15477 "\n"
15478 msgstr ""
15479
15480 # type: textblock
15481 #. type: textblock
15482 #: ../src/guestfs-actions.pod:4984 ../fish/guestfish-actions.pod:3348
15483 msgid ""
15484 "This sets the bootable flag on partition numbered C<partnum> on device "
15485 "C<device>.  Note that partitions are numbered from 1."
15486 msgstr ""
15487
15488 # type: textblock
15489 #. type: textblock
15490 #: ../src/guestfs-actions.pod:4987 ../fish/guestfish-actions.pod:3351
15491 msgid ""
15492 "The bootable flag is used by some operating systems (notably Windows) to "
15493 "determine which partition to boot from.  It is by no means universally "
15494 "recognized."
15495 msgstr ""
15496
15497 # type: =head2
15498 #. type: =head2
15499 #: ../src/guestfs-actions.pod:4995
15500 msgid "guestfs_part_set_mbr_id"
15501 msgstr ""
15502
15503 # type: verbatim
15504 #. type: verbatim
15505 #: ../src/guestfs-actions.pod:4997
15506 #, no-wrap
15507 msgid ""
15508 " int\n"
15509 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
15510 "                          const char *device,\n"
15511 "                          int partnum,\n"
15512 "                          int idbyte);\n"
15513 "\n"
15514 msgstr ""
15515
15516 # type: textblock
15517 #. type: textblock
15518 #: ../src/guestfs-actions.pod:5003 ../fish/guestfish-actions.pod:3359
15519 msgid ""
15520 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15521 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15522 "documentation are in fact hexadecimal numbers, but usually documented "
15523 "without any leading \"0x\" which might be confusing."
15524 msgstr ""
15525
15526 # type: =head2
15527 #. type: =head2
15528 #: ../src/guestfs-actions.pod:5017
15529 msgid "guestfs_part_set_name"
15530 msgstr ""
15531
15532 # type: verbatim
15533 #. type: verbatim
15534 #: ../src/guestfs-actions.pod:5019
15535 #, no-wrap
15536 msgid ""
15537 " int\n"
15538 " guestfs_part_set_name (guestfs_h *g,\n"
15539 "                        const char *device,\n"
15540 "                        int partnum,\n"
15541 "                        const char *name);\n"
15542 "\n"
15543 msgstr ""
15544
15545 # type: textblock
15546 #. type: textblock
15547 #: ../src/guestfs-actions.pod:5025 ../fish/guestfish-actions.pod:3373
15548 msgid ""
15549 "This sets the partition name on partition numbered C<partnum> on device "
15550 "C<device>.  Note that partitions are numbered from 1."
15551 msgstr ""
15552
15553 # type: textblock
15554 #. type: textblock
15555 #: ../src/guestfs-actions.pod:5028 ../fish/guestfish-actions.pod:3376
15556 msgid ""
15557 "The partition name can only be set on certain types of partition table.  "
15558 "This works on C<gpt> but not on C<mbr> partitions."
15559 msgstr ""
15560
15561 # type: =head2
15562 #. type: =head2
15563 #: ../src/guestfs-actions.pod:5035
15564 msgid "guestfs_part_to_dev"
15565 msgstr ""
15566
15567 # type: verbatim
15568 #. type: verbatim
15569 #: ../src/guestfs-actions.pod:5037
15570 #, no-wrap
15571 msgid ""
15572 " char *\n"
15573 " guestfs_part_to_dev (guestfs_h *g,\n"
15574 "                      const char *partition);\n"
15575 "\n"
15576 msgstr ""
15577
15578 # type: textblock
15579 #. type: textblock
15580 #: ../src/guestfs-actions.pod:5041 ../fish/guestfish-actions.pod:3383
15581 msgid ""
15582 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15583 "partition number, returning the device name (eg. \"/dev/sdb\")."
15584 msgstr ""
15585
15586 # type: textblock
15587 #. type: textblock
15588 #: ../src/guestfs-actions.pod:5045
15589 msgid ""
15590 "The named partition must exist, for example as a string returned from "
15591 "C<guestfs_list_partitions>."
15592 msgstr ""
15593
15594 # type: =head2
15595 #. type: =head2
15596 #: ../src/guestfs-actions.pod:5053
15597 msgid "guestfs_ping_daemon"
15598 msgstr ""
15599
15600 # type: verbatim
15601 #. type: verbatim
15602 #: ../src/guestfs-actions.pod:5055
15603 #, no-wrap
15604 msgid ""
15605 " int\n"
15606 " guestfs_ping_daemon (guestfs_h *g);\n"
15607 "\n"
15608 msgstr ""
15609
15610 # type: textblock
15611 #. type: textblock
15612 #: ../src/guestfs-actions.pod:5058 ../fish/guestfish-actions.pod:3394
15613 msgid ""
15614 "This is a test probe into the guestfs daemon running inside the qemu "
15615 "subprocess.  Calling this function checks that the daemon responds to the "
15616 "ping message, without affecting the daemon or attached block device(s) in "
15617 "any other way."
15618 msgstr ""
15619
15620 # type: =head2
15621 #. type: =head2
15622 #: ../src/guestfs-actions.pod:5067
15623 msgid "guestfs_pread"
15624 msgstr ""
15625
15626 # type: verbatim
15627 #. type: verbatim
15628 #: ../src/guestfs-actions.pod:5069
15629 #, no-wrap
15630 msgid ""
15631 " char *\n"
15632 " guestfs_pread (guestfs_h *g,\n"
15633 "                const char *path,\n"
15634 "                int count,\n"
15635 "                int64_t offset,\n"
15636 "                size_t *size_r);\n"
15637 "\n"
15638 msgstr ""
15639
15640 # type: textblock
15641 #. type: textblock
15642 #: ../src/guestfs-actions.pod:5076 ../fish/guestfish-actions.pod:3403
15643 msgid ""
15644 "This command lets you read part of a file.  It reads C<count> bytes of the "
15645 "file, starting at C<offset>, from file C<path>."
15646 msgstr ""
15647
15648 # type: textblock
15649 #. type: textblock
15650 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5105
15651 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3421
15652 msgid ""
15653 "This may read fewer bytes than requested.  For further details see the "
15654 "L<pread(2)> system call."
15655 msgstr ""
15656
15657 # type: textblock
15658 #. type: textblock
15659 #: ../src/guestfs-actions.pod:5082
15660 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
15661 msgstr ""
15662
15663 # type: =head2
15664 #. type: =head2
15665 #: ../src/guestfs-actions.pod:5093
15666 msgid "guestfs_pread_device"
15667 msgstr ""
15668
15669 # type: verbatim
15670 #. type: verbatim
15671 #: ../src/guestfs-actions.pod:5095
15672 #, no-wrap
15673 msgid ""
15674 " char *\n"
15675 " guestfs_pread_device (guestfs_h *g,\n"
15676 "                       const char *device,\n"
15677 "                       int count,\n"
15678 "                       int64_t offset,\n"
15679 "                       size_t *size_r);\n"
15680 "\n"
15681 msgstr ""
15682
15683 # type: textblock
15684 #. type: textblock
15685 #: ../src/guestfs-actions.pod:5102 ../fish/guestfish-actions.pod:3418
15686 msgid ""
15687 "This command lets you read part of a file.  It reads C<count> bytes of "
15688 "C<device>, starting at C<offset>."
15689 msgstr ""
15690
15691 # type: textblock
15692 #. type: textblock
15693 #: ../src/guestfs-actions.pod:5108
15694 msgid "See also C<guestfs_pread>."
15695 msgstr ""
15696
15697 # type: textblock
15698 #. type: textblock
15699 #: ../src/guestfs-actions.pod:5117
15700 msgid "(Added in 1.5.21)"
15701 msgstr ""
15702
15703 # type: =head2
15704 #. type: =head2
15705 #: ../src/guestfs-actions.pod:5119
15706 msgid "guestfs_pvcreate"
15707 msgstr ""
15708
15709 # type: verbatim
15710 #. type: verbatim
15711 #: ../src/guestfs-actions.pod:5121
15712 #, no-wrap
15713 msgid ""
15714 " int\n"
15715 " guestfs_pvcreate (guestfs_h *g,\n"
15716 "                   const char *device);\n"
15717 "\n"
15718 msgstr ""
15719
15720 # type: textblock
15721 #. type: textblock
15722 #: ../src/guestfs-actions.pod:5125 ../fish/guestfish-actions.pod:3433
15723 msgid ""
15724 "This creates an LVM physical volume on the named C<device>, where C<device> "
15725 "should usually be a partition name such as C</dev/sda1>."
15726 msgstr ""
15727
15728 # type: =head2
15729 #. type: =head2
15730 #: ../src/guestfs-actions.pod:5133
15731 msgid "guestfs_pvremove"
15732 msgstr ""
15733
15734 # type: verbatim
15735 #. type: verbatim
15736 #: ../src/guestfs-actions.pod:5135
15737 #, no-wrap
15738 msgid ""
15739 " int\n"
15740 " guestfs_pvremove (guestfs_h *g,\n"
15741 "                   const char *device);\n"
15742 "\n"
15743 msgstr ""
15744
15745 # type: textblock
15746 #. type: textblock
15747 #: ../src/guestfs-actions.pod:5139 ../fish/guestfish-actions.pod:3441
15748 msgid ""
15749 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15750 "it."
15751 msgstr ""
15752
15753 # type: textblock
15754 #. type: textblock
15755 #: ../src/guestfs-actions.pod:5142 ../fish/guestfish-actions.pod:3444
15756 msgid ""
15757 "The implementation uses the C<pvremove> command which refuses to wipe "
15758 "physical volumes that contain any volume groups, so you have to remove those "
15759 "first."
15760 msgstr ""
15761
15762 # type: =head2
15763 #. type: =head2
15764 #: ../src/guestfs-actions.pod:5150
15765 msgid "guestfs_pvresize"
15766 msgstr ""
15767
15768 # type: verbatim
15769 #. type: verbatim
15770 #: ../src/guestfs-actions.pod:5152
15771 #, no-wrap
15772 msgid ""
15773 " int\n"
15774 " guestfs_pvresize (guestfs_h *g,\n"
15775 "                   const char *device);\n"
15776 "\n"
15777 msgstr ""
15778
15779 # type: textblock
15780 #. type: textblock
15781 #: ../src/guestfs-actions.pod:5156 ../fish/guestfish-actions.pod:3452
15782 msgid ""
15783 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15784 "the new size of the underlying device."
15785 msgstr ""
15786
15787 # type: =head2
15788 #. type: =head2
15789 #: ../src/guestfs-actions.pod:5163
15790 msgid "guestfs_pvresize_size"
15791 msgstr ""
15792
15793 # type: verbatim
15794 #. type: verbatim
15795 #: ../src/guestfs-actions.pod:5165
15796 #, no-wrap
15797 msgid ""
15798 " int\n"
15799 " guestfs_pvresize_size (guestfs_h *g,\n"
15800 "                        const char *device,\n"
15801 "                        int64_t size);\n"
15802 "\n"
15803 msgstr ""
15804
15805 # type: textblock
15806 #. type: textblock
15807 #: ../src/guestfs-actions.pod:5170
15808 msgid ""
15809 "This command is the same as C<guestfs_pvresize> except that it allows you to "
15810 "specify the new size (in bytes) explicitly."
15811 msgstr ""
15812
15813 # type: =head2
15814 #. type: =head2
15815 #: ../src/guestfs-actions.pod:5177
15816 msgid "guestfs_pvs"
15817 msgstr ""
15818
15819 # type: verbatim
15820 #. type: verbatim
15821 #: ../src/guestfs-actions.pod:5179
15822 #, no-wrap
15823 msgid ""
15824 " char **\n"
15825 " guestfs_pvs (guestfs_h *g);\n"
15826 "\n"
15827 msgstr ""
15828
15829 # type: textblock
15830 #. type: textblock
15831 #: ../src/guestfs-actions.pod:5182 ../fish/guestfish-actions.pod:3466
15832 msgid ""
15833 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15834 "(8)> command."
15835 msgstr ""
15836
15837 # type: textblock
15838 #. type: textblock
15839 #: ../src/guestfs-actions.pod:5185 ../fish/guestfish-actions.pod:3469
15840 msgid ""
15841 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15842 "sda2>)."
15843 msgstr ""
15844
15845 # type: textblock
15846 #. type: textblock
15847 #: ../src/guestfs-actions.pod:5188
15848 msgid "See also C<guestfs_pvs_full>."
15849 msgstr ""
15850
15851 # type: =head2
15852 #. type: =head2
15853 #: ../src/guestfs-actions.pod:5196
15854 msgid "guestfs_pvs_full"
15855 msgstr ""
15856
15857 # type: verbatim
15858 #. type: verbatim
15859 #: ../src/guestfs-actions.pod:5198
15860 #, no-wrap
15861 msgid ""
15862 " struct guestfs_lvm_pv_list *\n"
15863 " guestfs_pvs_full (guestfs_h *g);\n"
15864 "\n"
15865 msgstr ""
15866
15867 # type: textblock
15868 #. type: textblock
15869 #: ../src/guestfs-actions.pod:5201 ../fish/guestfish-actions.pod:3478
15870 msgid ""
15871 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15872 "(8)> command.  The \"full\" version includes all fields."
15873 msgstr ""
15874
15875 # type: textblock
15876 #. type: textblock
15877 #: ../src/guestfs-actions.pod:5204
15878 msgid ""
15879 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
15880 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
15881 msgstr ""
15882
15883 # type: =head2
15884 #. type: =head2
15885 #: ../src/guestfs-actions.pod:5210
15886 msgid "guestfs_pvuuid"
15887 msgstr ""
15888
15889 # type: verbatim
15890 #. type: verbatim
15891 #: ../src/guestfs-actions.pod:5212
15892 #, no-wrap
15893 msgid ""
15894 " char *\n"
15895 " guestfs_pvuuid (guestfs_h *g,\n"
15896 "                 const char *device);\n"
15897 "\n"
15898 msgstr ""
15899
15900 # type: textblock
15901 #. type: textblock
15902 #: ../src/guestfs-actions.pod:5216 ../fish/guestfish-actions.pod:3485
15903 msgid "This command returns the UUID of the LVM PV C<device>."
15904 msgstr ""
15905
15906 # type: =head2
15907 #. type: =head2
15908 #: ../src/guestfs-actions.pod:5223
15909 msgid "guestfs_pwrite"
15910 msgstr ""
15911
15912 # type: verbatim
15913 #. type: verbatim
15914 #: ../src/guestfs-actions.pod:5225
15915 #, no-wrap
15916 msgid ""
15917 " int\n"
15918 " guestfs_pwrite (guestfs_h *g,\n"
15919 "                 const char *path,\n"
15920 "                 const char *content,\n"
15921 "                 size_t content_size,\n"
15922 "                 int64_t offset);\n"
15923 "\n"
15924 msgstr ""
15925
15926 # type: textblock
15927 #. type: textblock
15928 #: ../src/guestfs-actions.pod:5232 ../fish/guestfish-actions.pod:3491
15929 msgid ""
15930 "This command writes to part of a file.  It writes the data buffer C<content> "
15931 "to the file C<path> starting at offset C<offset>."
15932 msgstr ""
15933
15934 # type: textblock
15935 #. type: textblock
15936 #: ../src/guestfs-actions.pod:5235 ../fish/guestfish-actions.pod:3494
15937 msgid ""
15938 "This command implements the L<pwrite(2)> system call, and like that system "
15939 "call it may not write the full data requested.  The return value is the "
15940 "number of bytes that were actually written to the file.  This could even be "
15941 "0, although short writes are unlikely for regular files in ordinary "
15942 "circumstances."
15943 msgstr ""
15944
15945 # type: textblock
15946 #. type: textblock
15947 #: ../src/guestfs-actions.pod:5241
15948 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
15949 msgstr ""
15950
15951 # type: =head2
15952 #. type: =head2
15953 #: ../src/guestfs-actions.pod:5250
15954 msgid "guestfs_pwrite_device"
15955 msgstr ""
15956
15957 # type: verbatim
15958 #. type: verbatim
15959 #: ../src/guestfs-actions.pod:5252
15960 #, no-wrap
15961 msgid ""
15962 " int\n"
15963 " guestfs_pwrite_device (guestfs_h *g,\n"
15964 "                        const char *device,\n"
15965 "                        const char *content,\n"
15966 "                        size_t content_size,\n"
15967 "                        int64_t offset);\n"
15968 "\n"
15969 msgstr ""
15970
15971 # type: textblock
15972 #. type: textblock
15973 #: ../src/guestfs-actions.pod:5259 ../fish/guestfish-actions.pod:3509
15974 msgid ""
15975 "This command writes to part of a device.  It writes the data buffer "
15976 "C<content> to C<device> starting at offset C<offset>."
15977 msgstr ""
15978
15979 # type: textblock
15980 #. type: textblock
15981 #: ../src/guestfs-actions.pod:5262 ../fish/guestfish-actions.pod:3512
15982 msgid ""
15983 "This command implements the L<pwrite(2)> system call, and like that system "
15984 "call it may not write the full data requested (although short writes to disk "
15985 "devices and partitions are probably impossible with standard Linux kernels)."
15986 msgstr ""
15987
15988 # type: textblock
15989 #. type: textblock
15990 #: ../src/guestfs-actions.pod:5267
15991 msgid "See also C<guestfs_pwrite>."
15992 msgstr ""
15993
15994 # type: textblock
15995 #. type: textblock
15996 #: ../src/guestfs-actions.pod:5274
15997 msgid "(Added in 1.5.20)"
15998 msgstr ""
15999
16000 # type: =head2
16001 #. type: =head2
16002 #: ../src/guestfs-actions.pod:5276
16003 msgid "guestfs_read_file"
16004 msgstr ""
16005
16006 # type: verbatim
16007 #. type: verbatim
16008 #: ../src/guestfs-actions.pod:5278
16009 #, no-wrap
16010 msgid ""
16011 " char *\n"
16012 " guestfs_read_file (guestfs_h *g,\n"
16013 "                    const char *path,\n"
16014 "                    size_t *size_r);\n"
16015 "\n"
16016 msgstr ""
16017
16018 # type: textblock
16019 #. type: textblock
16020 #: ../src/guestfs-actions.pod:5283 ../fish/guestfish-actions.pod:3526
16021 msgid "This calls returns the contents of the file C<path> as a buffer."
16022 msgstr ""
16023
16024 # type: textblock
16025 #. type: textblock
16026 #: ../src/guestfs-actions.pod:5286
16027 msgid ""
16028 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
16029 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
16030 "function is limited in the total size of file that can be handled."
16031 msgstr ""
16032
16033 # type: textblock
16034 #. type: textblock
16035 #: ../src/guestfs-actions.pod:5298
16036 msgid "(Added in 1.0.63)"
16037 msgstr ""
16038
16039 # type: =head2
16040 #. type: =head2
16041 #: ../src/guestfs-actions.pod:5300
16042 msgid "guestfs_read_lines"
16043 msgstr ""
16044
16045 # type: verbatim
16046 #. type: verbatim
16047 #: ../src/guestfs-actions.pod:5302
16048 #, no-wrap
16049 msgid ""
16050 " char **\n"
16051 " guestfs_read_lines (guestfs_h *g,\n"
16052 "                     const char *path);\n"
16053 "\n"
16054 msgstr ""
16055
16056 # type: textblock
16057 #. type: textblock
16058 #: ../src/guestfs-actions.pod:5308 ../fish/guestfish-actions.pod:3543
16059 msgid ""
16060 "The file contents are returned as a list of lines.  Trailing C<LF> and "
16061 "C<CRLF> character sequences are I<not> returned."
16062 msgstr ""
16063
16064 # type: textblock
16065 #. type: textblock
16066 #: ../src/guestfs-actions.pod:5311
16067 msgid ""
16068 "Note that this function cannot correctly handle binary files (specifically, "
16069 "files containing C<\\0> character which is treated as end of line).  For "
16070 "those you need to use the C<guestfs_read_file> function which has a more "
16071 "complex interface."
16072 msgstr ""
16073
16074 # type: =head2
16075 #. type: =head2
16076 #: ../src/guestfs-actions.pod:5322
16077 msgid "guestfs_readdir"
16078 msgstr ""
16079
16080 # type: verbatim
16081 #. type: verbatim
16082 #: ../src/guestfs-actions.pod:5324
16083 #, no-wrap
16084 msgid ""
16085 " struct guestfs_dirent_list *\n"
16086 " guestfs_readdir (guestfs_h *g,\n"
16087 "                  const char *dir);\n"
16088 "\n"
16089 msgstr ""
16090
16091 # type: textblock
16092 #. type: textblock
16093 #: ../src/guestfs-actions.pod:5328 ../fish/guestfish-actions.pod:3555
16094 msgid "This returns the list of directory entries in directory C<dir>."
16095 msgstr ""
16096
16097 # type: textblock
16098 #. type: textblock
16099 #: ../src/guestfs-actions.pod:5330 ../fish/guestfish-actions.pod:3557
16100 msgid ""
16101 "All entries in the directory are returned, including C<.> and C<..>.  The "
16102 "entries are I<not> sorted, but returned in the same order as the underlying "
16103 "filesystem."
16104 msgstr ""
16105
16106 # type: textblock
16107 #. type: textblock
16108 #: ../src/guestfs-actions.pod:5334 ../fish/guestfish-actions.pod:3561
16109 msgid ""
16110 "Also this call returns basic file type information about each file.  The "
16111 "C<ftyp> field will contain one of the following characters:"
16112 msgstr ""
16113
16114 # type: =item
16115 #. type: =item
16116 #: ../src/guestfs-actions.pod:5339 ../fish/guestfish-actions.pod:3566
16117 msgid "'b'"
16118 msgstr ""
16119
16120 # type: textblock
16121 #. type: textblock
16122 #: ../src/guestfs-actions.pod:5341 ../fish/guestfish-actions.pod:3568
16123 msgid "Block special"
16124 msgstr ""
16125
16126 # type: =item
16127 #. type: =item
16128 #: ../src/guestfs-actions.pod:5343 ../fish/guestfish-actions.pod:3570
16129 msgid "'c'"
16130 msgstr ""
16131
16132 # type: textblock
16133 #. type: textblock
16134 #: ../src/guestfs-actions.pod:5345 ../fish/guestfish-actions.pod:3572
16135 msgid "Char special"
16136 msgstr ""
16137
16138 # type: =item
16139 #. type: =item
16140 #: ../src/guestfs-actions.pod:5347 ../fish/guestfish-actions.pod:3574
16141 msgid "'d'"
16142 msgstr ""
16143
16144 # type: textblock
16145 #. type: textblock
16146 #: ../src/guestfs-actions.pod:5349 ../fish/guestfish-actions.pod:3576
16147 msgid "Directory"
16148 msgstr ""
16149
16150 # type: =item
16151 #. type: =item
16152 #: ../src/guestfs-actions.pod:5351 ../fish/guestfish-actions.pod:3578
16153 msgid "'f'"
16154 msgstr ""
16155
16156 # type: textblock
16157 #. type: textblock
16158 #: ../src/guestfs-actions.pod:5353 ../fish/guestfish-actions.pod:3580
16159 msgid "FIFO (named pipe)"
16160 msgstr ""
16161
16162 # type: =item
16163 #. type: =item
16164 #: ../src/guestfs-actions.pod:5355 ../fish/guestfish-actions.pod:3582
16165 msgid "'l'"
16166 msgstr ""
16167
16168 # type: textblock
16169 #. type: textblock
16170 #: ../src/guestfs-actions.pod:5357 ../fish/guestfish-actions.pod:3584
16171 msgid "Symbolic link"
16172 msgstr ""
16173
16174 # type: =item
16175 #. type: =item
16176 #: ../src/guestfs-actions.pod:5359 ../fish/guestfish-actions.pod:3586
16177 msgid "'r'"
16178 msgstr ""
16179
16180 # type: textblock
16181 #. type: textblock
16182 #: ../src/guestfs-actions.pod:5361 ../fish/guestfish-actions.pod:3588
16183 msgid "Regular file"
16184 msgstr ""
16185
16186 # type: =item
16187 #. type: =item
16188 #: ../src/guestfs-actions.pod:5363 ../fish/guestfish-actions.pod:3590
16189 msgid "'s'"
16190 msgstr ""
16191
16192 # type: textblock
16193 #. type: textblock
16194 #: ../src/guestfs-actions.pod:5365 ../fish/guestfish-actions.pod:3592
16195 msgid "Socket"
16196 msgstr ""
16197
16198 # type: =item
16199 #. type: =item
16200 #: ../src/guestfs-actions.pod:5367 ../fish/guestfish-actions.pod:3594
16201 msgid "'u'"
16202 msgstr ""
16203
16204 # type: textblock
16205 #. type: textblock
16206 #: ../src/guestfs-actions.pod:5369 ../fish/guestfish-actions.pod:3596
16207 msgid "Unknown file type"
16208 msgstr ""
16209
16210 # type: =item
16211 #. type: =item
16212 #: ../src/guestfs-actions.pod:5371 ../fish/guestfish-actions.pod:3598
16213 msgid "'?'"
16214 msgstr ""
16215
16216 # type: textblock
16217 #. type: textblock
16218 #: ../src/guestfs-actions.pod:5373 ../fish/guestfish-actions.pod:3600
16219 msgid ""
16220 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16221 msgstr ""
16222
16223 # type: textblock
16224 #. type: textblock
16225 #: ../src/guestfs-actions.pod:5378
16226 msgid ""
16227 "This function is primarily intended for use by programs.  To get a simple "
16228 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
16229 "consumption, use C<guestfs_ll>."
16230 msgstr ""
16231
16232 # type: textblock
16233 #. type: textblock
16234 #: ../src/guestfs-actions.pod:5382
16235 msgid ""
16236 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
16237 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
16238 msgstr ""
16239
16240 # type: =head2
16241 #. type: =head2
16242 #: ../src/guestfs-actions.pod:5388
16243 msgid "guestfs_readlink"
16244 msgstr ""
16245
16246 # type: verbatim
16247 #. type: verbatim
16248 #: ../src/guestfs-actions.pod:5390
16249 #, no-wrap
16250 msgid ""
16251 " char *\n"
16252 " guestfs_readlink (guestfs_h *g,\n"
16253 "                   const char *path);\n"
16254 "\n"
16255 msgstr ""
16256
16257 # type: textblock
16258 #. type: textblock
16259 #: ../src/guestfs-actions.pod:5394 ../fish/guestfish-actions.pod:3613
16260 msgid "This command reads the target of a symbolic link."
16261 msgstr ""
16262
16263 # type: =head2
16264 #. type: =head2
16265 #: ../src/guestfs-actions.pod:5401
16266 msgid "guestfs_readlinklist"
16267 msgstr ""
16268
16269 # type: verbatim
16270 #. type: verbatim
16271 #: ../src/guestfs-actions.pod:5403
16272 #, no-wrap
16273 msgid ""
16274 " char **\n"
16275 " guestfs_readlinklist (guestfs_h *g,\n"
16276 "                       const char *path,\n"
16277 "                       char *const *names);\n"
16278 "\n"
16279 msgstr ""
16280
16281 # type: textblock
16282 #. type: textblock
16283 #: ../src/guestfs-actions.pod:5408 ../fish/guestfish-actions.pod:3619
16284 msgid ""
16285 "This call allows you to do a C<readlink> operation on multiple files, where "
16286 "all files are in the directory C<path>.  C<names> is the list of files from "
16287 "this directory."
16288 msgstr ""
16289
16290 # type: textblock
16291 #. type: textblock
16292 #: ../src/guestfs-actions.pod:5412 ../fish/guestfish-actions.pod:3623
16293 msgid ""
16294 "On return you get a list of strings, with a one-to-one correspondence to the "
16295 "C<names> list.  Each string is the value of the symbolic link."
16296 msgstr ""
16297
16298 # type: textblock
16299 #. type: textblock
16300 #: ../src/guestfs-actions.pod:5416 ../fish/guestfish-actions.pod:3627
16301 msgid ""
16302 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16303 "result string is the empty string C<\"\">.  However the whole operation is "
16304 "completed even if there were C<readlink(2)> errors, and so you can call this "
16305 "function with names where you don't know if they are symbolic links already "
16306 "(albeit slightly less efficient)."
16307 msgstr ""
16308
16309 # type: textblock
16310 #. type: textblock
16311 #: ../src/guestfs-actions.pod:5423 ../fish/guestfish-actions.pod:3634
16312 msgid ""
16313 "This call is intended for programs that want to efficiently list a directory "
16314 "contents without making many round-trips.  Very long directory listings "
16315 "might cause the protocol message size to be exceeded, causing this call to "
16316 "fail.  The caller must split up such requests into smaller groups of names."
16317 msgstr ""
16318
16319 # type: =head2
16320 #. type: =head2
16321 #: ../src/guestfs-actions.pod:5436
16322 msgid "guestfs_realpath"
16323 msgstr ""
16324
16325 # type: verbatim
16326 #. type: verbatim
16327 #: ../src/guestfs-actions.pod:5438
16328 #, no-wrap
16329 msgid ""
16330 " char *\n"
16331 " guestfs_realpath (guestfs_h *g,\n"
16332 "                   const char *path);\n"
16333 "\n"
16334 msgstr ""
16335
16336 # type: textblock
16337 #. type: textblock
16338 #: ../src/guestfs-actions.pod:5442 ../fish/guestfish-actions.pod:3645
16339 msgid ""
16340 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16341 "has no C<.>, C<..> or symbolic link path elements."
16342 msgstr ""
16343
16344 # type: =head2
16345 #. type: =head2
16346 #: ../src/guestfs-actions.pod:5450
16347 msgid "guestfs_removexattr"
16348 msgstr ""
16349
16350 # type: verbatim
16351 #. type: verbatim
16352 #: ../src/guestfs-actions.pod:5452
16353 #, no-wrap
16354 msgid ""
16355 " int\n"
16356 " guestfs_removexattr (guestfs_h *g,\n"
16357 "                      const char *xattr,\n"
16358 "                      const char *path);\n"
16359 "\n"
16360 msgstr ""
16361
16362 # type: textblock
16363 #. type: textblock
16364 #: ../src/guestfs-actions.pod:5457 ../fish/guestfish-actions.pod:3652
16365 msgid ""
16366 "This call removes the extended attribute named C<xattr> of the file C<path>."
16367 msgstr ""
16368
16369 # type: textblock
16370 #. type: textblock
16371 #: ../src/guestfs-actions.pod:5460
16372 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
16373 msgstr ""
16374
16375 # type: =head2
16376 #. type: =head2
16377 #: ../src/guestfs-actions.pod:5466
16378 msgid "guestfs_resize2fs"
16379 msgstr ""
16380
16381 # type: verbatim
16382 #. type: verbatim
16383 #: ../src/guestfs-actions.pod:5468
16384 #, no-wrap
16385 msgid ""
16386 " int\n"
16387 " guestfs_resize2fs (guestfs_h *g,\n"
16388 "                    const char *device);\n"
16389 "\n"
16390 msgstr ""
16391
16392 # type: textblock
16393 #. type: textblock
16394 #: ../src/guestfs-actions.pod:5472 ../fish/guestfish-actions.pod:3661
16395 msgid ""
16396 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16397 "underlying device."
16398 msgstr ""
16399
16400 # type: textblock
16401 #. type: textblock
16402 #: ../src/guestfs-actions.pod:5475
16403 msgid ""
16404 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
16405 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
16406 "sometimes gives an error about this and sometimes not.  In any case, it is "
16407 "always safe to call C<guestfs_e2fsck_f> before calling this function."
16408 msgstr ""
16409
16410 #. type: =head2
16411 #: ../src/guestfs-actions.pod:5485
16412 msgid "guestfs_resize2fs_M"
16413 msgstr ""
16414
16415 #. type: verbatim
16416 #: ../src/guestfs-actions.pod:5487
16417 #, no-wrap
16418 msgid ""
16419 " int\n"
16420 " guestfs_resize2fs_M (guestfs_h *g,\n"
16421 "                      const char *device);\n"
16422 "\n"
16423 msgstr ""
16424
16425 #. type: textblock
16426 #: ../src/guestfs-actions.pod:5491
16427 msgid ""
16428 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
16429 "resized to its minimum size.  This works like the C<-M> option to the "
16430 "C<resize2fs> command."
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../src/guestfs-actions.pod:5495
16435 msgid ""
16436 "To get the resulting size of the filesystem you should call "
16437 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
16438 "These two numbers, multiplied together, give the resulting size of the "
16439 "minimal filesystem in bytes."
16440 msgstr ""
16441
16442 # type: =head2
16443 #. type: =head2
16444 #: ../src/guestfs-actions.pod:5502
16445 msgid "guestfs_resize2fs_size"
16446 msgstr ""
16447
16448 # type: verbatim
16449 #. type: verbatim
16450 #: ../src/guestfs-actions.pod:5504
16451 #, no-wrap
16452 msgid ""
16453 " int\n"
16454 " guestfs_resize2fs_size (guestfs_h *g,\n"
16455 "                         const char *device,\n"
16456 "                         int64_t size);\n"
16457 "\n"
16458 msgstr ""
16459
16460 # type: textblock
16461 #. type: textblock
16462 #: ../src/guestfs-actions.pod:5509
16463 msgid ""
16464 "This command is the same as C<guestfs_resize2fs> except that it allows you "
16465 "to specify the new size (in bytes) explicitly."
16466 msgstr ""
16467
16468 # type: =head2
16469 #. type: =head2
16470 #: ../src/guestfs-actions.pod:5516
16471 msgid "guestfs_rm"
16472 msgstr ""
16473
16474 # type: verbatim
16475 #. type: verbatim
16476 #: ../src/guestfs-actions.pod:5518
16477 #, no-wrap
16478 msgid ""
16479 " int\n"
16480 " guestfs_rm (guestfs_h *g,\n"
16481 "             const char *path);\n"
16482 "\n"
16483 msgstr ""
16484
16485 # type: textblock
16486 #. type: textblock
16487 #: ../src/guestfs-actions.pod:5522 ../fish/guestfish-actions.pod:3694
16488 msgid "Remove the single file C<path>."
16489 msgstr ""
16490
16491 # type: =head2
16492 #. type: =head2
16493 #: ../src/guestfs-actions.pod:5528
16494 msgid "guestfs_rm_rf"
16495 msgstr ""
16496
16497 # type: verbatim
16498 #. type: verbatim
16499 #: ../src/guestfs-actions.pod:5530
16500 #, no-wrap
16501 msgid ""
16502 " int\n"
16503 " guestfs_rm_rf (guestfs_h *g,\n"
16504 "                const char *path);\n"
16505 "\n"
16506 msgstr ""
16507
16508 # type: textblock
16509 #. type: textblock
16510 #: ../src/guestfs-actions.pod:5534 ../fish/guestfish-actions.pod:3700
16511 msgid ""
16512 "Remove the file or directory C<path>, recursively removing the contents if "
16513 "its a directory.  This is like the C<rm -rf> shell command."
16514 msgstr ""
16515
16516 # type: =head2
16517 #. type: =head2
16518 #: ../src/guestfs-actions.pod:5542
16519 msgid "guestfs_rmdir"
16520 msgstr ""
16521
16522 # type: verbatim
16523 #. type: verbatim
16524 #: ../src/guestfs-actions.pod:5544
16525 #, no-wrap
16526 msgid ""
16527 " int\n"
16528 " guestfs_rmdir (guestfs_h *g,\n"
16529 "                const char *path);\n"
16530 "\n"
16531 msgstr ""
16532
16533 # type: textblock
16534 #. type: textblock
16535 #: ../src/guestfs-actions.pod:5548 ../fish/guestfish-actions.pod:3708
16536 msgid "Remove the single directory C<path>."
16537 msgstr ""
16538
16539 # type: =head2
16540 #. type: =head2
16541 #: ../src/guestfs-actions.pod:5554
16542 msgid "guestfs_rmmountpoint"
16543 msgstr ""
16544
16545 # type: verbatim
16546 #. type: verbatim
16547 #: ../src/guestfs-actions.pod:5556
16548 #, no-wrap
16549 msgid ""
16550 " int\n"
16551 " guestfs_rmmountpoint (guestfs_h *g,\n"
16552 "                       const char *exemptpath);\n"
16553 "\n"
16554 msgstr ""
16555
16556 # type: textblock
16557 #. type: textblock
16558 #: ../src/guestfs-actions.pod:5560
16559 msgid ""
16560 "This calls removes a mountpoint that was previously created with "
16561 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
16562 msgstr ""
16563
16564 # type: =head2
16565 #. type: =head2
16566 #: ../src/guestfs-actions.pod:5568
16567 msgid "guestfs_scrub_device"
16568 msgstr ""
16569
16570 # type: verbatim
16571 #. type: verbatim
16572 #: ../src/guestfs-actions.pod:5570
16573 #, no-wrap
16574 msgid ""
16575 " int\n"
16576 " guestfs_scrub_device (guestfs_h *g,\n"
16577 "                       const char *device);\n"
16578 "\n"
16579 msgstr ""
16580
16581 # type: textblock
16582 #. type: textblock
16583 #: ../src/guestfs-actions.pod:5574 ../fish/guestfish-actions.pod:3722
16584 msgid ""
16585 "This command writes patterns over C<device> to make data retrieval more "
16586 "difficult."
16587 msgstr ""
16588
16589 # type: textblock
16590 #. type: textblock
16591 #: ../src/guestfs-actions.pod:5577 ../src/guestfs-actions.pod:5598
16592 #: ../src/guestfs-actions.pod:5617 ../fish/guestfish-actions.pod:3725
16593 #: ../fish/guestfish-actions.pod:3740 ../fish/guestfish-actions.pod:3753
16594 msgid ""
16595 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16596 "more details."
16597 msgstr ""
16598
16599 # type: textblock
16600 #. type: textblock
16601 #: ../src/guestfs-actions.pod:5585 ../src/guestfs-actions.pod:5603
16602 #: ../src/guestfs-actions.pod:5622
16603 msgid "(Added in 1.0.52)"
16604 msgstr ""
16605
16606 # type: =head2
16607 #. type: =head2
16608 #: ../src/guestfs-actions.pod:5587
16609 msgid "guestfs_scrub_file"
16610 msgstr ""
16611
16612 # type: verbatim
16613 #. type: verbatim
16614 #: ../src/guestfs-actions.pod:5589
16615 #, no-wrap
16616 msgid ""
16617 " int\n"
16618 " guestfs_scrub_file (guestfs_h *g,\n"
16619 "                     const char *file);\n"
16620 "\n"
16621 msgstr ""
16622
16623 # type: textblock
16624 #. type: textblock
16625 #: ../src/guestfs-actions.pod:5593 ../fish/guestfish-actions.pod:3735
16626 msgid ""
16627 "This command writes patterns over a file to make data retrieval more "
16628 "difficult."
16629 msgstr ""
16630
16631 # type: textblock
16632 #. type: textblock
16633 #: ../src/guestfs-actions.pod:5596 ../fish/guestfish-actions.pod:3738
16634 msgid "The file is I<removed> after scrubbing."
16635 msgstr ""
16636
16637 # type: =head2
16638 #. type: =head2
16639 #: ../src/guestfs-actions.pod:5605
16640 msgid "guestfs_scrub_freespace"
16641 msgstr ""
16642
16643 # type: verbatim
16644 #. type: verbatim
16645 #: ../src/guestfs-actions.pod:5607
16646 #, no-wrap
16647 msgid ""
16648 " int\n"
16649 " guestfs_scrub_freespace (guestfs_h *g,\n"
16650 "                          const char *dir);\n"
16651 "\n"
16652 msgstr ""
16653
16654 # type: textblock
16655 #. type: textblock
16656 #: ../src/guestfs-actions.pod:5611
16657 msgid ""
16658 "This command creates the directory C<dir> and then fills it with files until "
16659 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
16660 "and deletes them.  The intention is to scrub any free space on the partition "
16661 "containing C<dir>."
16662 msgstr ""
16663
16664 # type: =head2
16665 #. type: =head2
16666 #: ../src/guestfs-actions.pod:5624
16667 msgid "guestfs_set_append"
16668 msgstr ""
16669
16670 # type: verbatim
16671 #. type: verbatim
16672 #: ../src/guestfs-actions.pod:5626
16673 #, no-wrap
16674 msgid ""
16675 " int\n"
16676 " guestfs_set_append (guestfs_h *g,\n"
16677 "                     const char *append);\n"
16678 "\n"
16679 msgstr ""
16680
16681 # type: textblock
16682 #. type: textblock
16683 #: ../src/guestfs-actions.pod:5630 ../fish/guestfish-actions.pod:3762
16684 msgid ""
16685 "This function is used to add additional options to the guest kernel command "
16686 "line."
16687 msgstr ""
16688
16689 # type: textblock
16690 #. type: textblock
16691 #: ../src/guestfs-actions.pod:5633 ../fish/guestfish-actions.pod:3765
16692 msgid ""
16693 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16694 "environment variable."
16695 msgstr ""
16696
16697 # type: textblock
16698 #. type: textblock
16699 #: ../src/guestfs-actions.pod:5636 ../fish/guestfish-actions.pod:3768
16700 msgid ""
16701 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16702 "(libguestfs always adds a few of its own)."
16703 msgstr ""
16704
16705 # type: =head2
16706 #. type: =head2
16707 #: ../src/guestfs-actions.pod:5643
16708 msgid "guestfs_set_autosync"
16709 msgstr ""
16710
16711 # type: verbatim
16712 #. type: verbatim
16713 #: ../src/guestfs-actions.pod:5645
16714 #, no-wrap
16715 msgid ""
16716 " int\n"
16717 " guestfs_set_autosync (guestfs_h *g,\n"
16718 "                       int autosync);\n"
16719 "\n"
16720 msgstr ""
16721
16722 # type: textblock
16723 #. type: textblock
16724 #: ../src/guestfs-actions.pod:5649
16725 msgid ""
16726 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16727 "effort attempt to run C<guestfs_umount_all> followed by C<guestfs_sync> when "
16728 "the handle is closed (also if the program exits without closing handles)."
16729 msgstr ""
16730
16731 # type: textblock
16732 #. type: textblock
16733 #: ../src/guestfs-actions.pod:5654 ../fish/guestfish-actions.pod:3782
16734 msgid ""
16735 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16736 "disabled by default)."
16737 msgstr ""
16738
16739 # type: =head2
16740 #. type: =head2
16741 #: ../src/guestfs-actions.pod:5661
16742 msgid "guestfs_set_direct"
16743 msgstr ""
16744
16745 # type: verbatim
16746 #. type: verbatim
16747 #: ../src/guestfs-actions.pod:5663
16748 #, no-wrap
16749 msgid ""
16750 " int\n"
16751 " guestfs_set_direct (guestfs_h *g,\n"
16752 "                     int direct);\n"
16753 "\n"
16754 msgstr ""
16755
16756 # type: textblock
16757 #. type: textblock
16758 #: ../src/guestfs-actions.pod:5667 ../fish/guestfish-actions.pod:3791
16759 msgid ""
16760 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16761 "passed directly through to the appliance once it is launched."
16762 msgstr ""
16763
16764 # type: textblock
16765 #. type: textblock
16766 #: ../src/guestfs-actions.pod:5671
16767 msgid ""
16768 "One consequence of this is that log messages aren't caught by the library "
16769 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
16770 "stdout."
16771 msgstr ""
16772
16773 # type: textblock
16774 #. type: textblock
16775 #: ../src/guestfs-actions.pod:5675 ../fish/guestfish-actions.pod:3799
16776 msgid "You probably don't want to use this unless you know what you are doing."
16777 msgstr ""
16778
16779 # type: textblock
16780 #. type: textblock
16781 #: ../src/guestfs-actions.pod:5678 ../fish/guestfish-actions.pod:3802
16782 msgid "The default is disabled."
16783 msgstr ""
16784
16785 # type: =head2
16786 #. type: =head2
16787 #: ../src/guestfs-actions.pod:5684
16788 msgid "guestfs_set_e2label"
16789 msgstr ""
16790
16791 # type: verbatim
16792 #. type: verbatim
16793 #: ../src/guestfs-actions.pod:5686
16794 #, no-wrap
16795 msgid ""
16796 " int\n"
16797 " guestfs_set_e2label (guestfs_h *g,\n"
16798 "                      const char *device,\n"
16799 "                      const char *label);\n"
16800 "\n"
16801 msgstr ""
16802
16803 # type: textblock
16804 #. type: textblock
16805 #: ../src/guestfs-actions.pod:5691 ../fish/guestfish-actions.pod:3808
16806 msgid ""
16807 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16808 "C<label>.  Filesystem labels are limited to 16 characters."
16809 msgstr ""
16810
16811 # type: textblock
16812 #. type: textblock
16813 #: ../src/guestfs-actions.pod:5695
16814 msgid ""
16815 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
16816 "the existing label on a filesystem."
16817 msgstr ""
16818
16819 # type: =head2
16820 #. type: =head2
16821 #: ../src/guestfs-actions.pod:5702
16822 msgid "guestfs_set_e2uuid"
16823 msgstr ""
16824
16825 # type: verbatim
16826 #. type: verbatim
16827 #: ../src/guestfs-actions.pod:5704
16828 #, no-wrap
16829 msgid ""
16830 " int\n"
16831 " guestfs_set_e2uuid (guestfs_h *g,\n"
16832 "                     const char *device,\n"
16833 "                     const char *uuid);\n"
16834 "\n"
16835 msgstr ""
16836
16837 # type: textblock
16838 #. type: textblock
16839 #: ../src/guestfs-actions.pod:5709 ../fish/guestfish-actions.pod:3819
16840 msgid ""
16841 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16842 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16843 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16844 msgstr ""
16845
16846 # type: textblock
16847 #. type: textblock
16848 #: ../src/guestfs-actions.pod:5714
16849 msgid ""
16850 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
16851 "the existing UUID of a filesystem."
16852 msgstr ""
16853
16854 # type: =head2
16855 #. type: =head2
16856 #: ../src/guestfs-actions.pod:5721
16857 msgid "guestfs_set_memsize"
16858 msgstr ""
16859
16860 # type: verbatim
16861 #. type: verbatim
16862 #: ../src/guestfs-actions.pod:5723
16863 #, no-wrap
16864 msgid ""
16865 " int\n"
16866 " guestfs_set_memsize (guestfs_h *g,\n"
16867 "                      int memsize);\n"
16868 "\n"
16869 msgstr ""
16870
16871 # type: textblock
16872 #. type: textblock
16873 #: ../src/guestfs-actions.pod:5727
16874 msgid ""
16875 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16876 "This only has any effect if called before C<guestfs_launch>."
16877 msgstr ""
16878
16879 # type: textblock
16880 #. type: textblock
16881 #: ../src/guestfs-actions.pod:5731 ../fish/guestfish-actions.pod:3837
16882 msgid ""
16883 "You can also change this by setting the environment variable "
16884 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16885 msgstr ""
16886
16887 # type: =head2
16888 #. type: =head2
16889 #: ../src/guestfs-actions.pod:5742
16890 msgid "guestfs_set_network"
16891 msgstr ""
16892
16893 # type: verbatim
16894 #. type: verbatim
16895 #: ../src/guestfs-actions.pod:5744
16896 #, no-wrap
16897 msgid ""
16898 " int\n"
16899 " guestfs_set_network (guestfs_h *g,\n"
16900 "                      int network);\n"
16901 "\n"
16902 msgstr ""
16903
16904 # type: textblock
16905 #. type: textblock
16906 #: ../src/guestfs-actions.pod:5748 ../fish/guestfish-actions.pod:3850
16907 msgid ""
16908 "If C<network> is true, then the network is enabled in the libguestfs "
16909 "appliance.  The default is false."
16910 msgstr ""
16911
16912 # type: textblock
16913 #. type: textblock
16914 #: ../src/guestfs-actions.pod:5751 ../fish/guestfish-actions.pod:3853
16915 msgid ""
16916 "This affects whether commands are able to access the network (see L<guestfs"
16917 "(3)/RUNNING COMMANDS>)."
16918 msgstr ""
16919
16920 # type: textblock
16921 #. type: textblock
16922 #: ../src/guestfs-actions.pod:5754
16923 msgid ""
16924 "You must call this before calling C<guestfs_launch>, otherwise it has no "
16925 "effect."
16926 msgstr ""
16927
16928 # type: =head2
16929 #. type: =head2
16930 #: ../src/guestfs-actions.pod:5761
16931 msgid "guestfs_set_path"
16932 msgstr ""
16933
16934 # type: verbatim
16935 #. type: verbatim
16936 #: ../src/guestfs-actions.pod:5763
16937 #, no-wrap
16938 msgid ""
16939 " int\n"
16940 " guestfs_set_path (guestfs_h *g,\n"
16941 "                   const char *searchpath);\n"
16942 "\n"
16943 msgstr ""
16944
16945 # type: textblock
16946 #. type: textblock
16947 #: ../src/guestfs-actions.pod:5767 ../fish/guestfish-actions.pod:3865
16948 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16949 msgstr ""
16950
16951 # type: textblock
16952 #. type: textblock
16953 #: ../src/guestfs-actions.pod:5769 ../fish/guestfish-actions.pod:3867
16954 msgid ""
16955 "The default is C<$libdir/guestfs> unless overridden by setting "
16956 "C<LIBGUESTFS_PATH> environment variable."
16957 msgstr ""
16958
16959 # type: textblock
16960 #. type: textblock
16961 #: ../src/guestfs-actions.pod:5772 ../fish/guestfish-actions.pod:3870
16962 msgid "Setting C<path> to C<NULL> restores the default path."
16963 msgstr ""
16964
16965 # type: =head2
16966 #. type: =head2
16967 #: ../src/guestfs-actions.pod:5778
16968 msgid "guestfs_set_qemu"
16969 msgstr ""
16970
16971 # type: verbatim
16972 #. type: verbatim
16973 #: ../src/guestfs-actions.pod:5780
16974 #, no-wrap
16975 msgid ""
16976 " int\n"
16977 " guestfs_set_qemu (guestfs_h *g,\n"
16978 "                   const char *qemu);\n"
16979 "\n"
16980 msgstr ""
16981
16982 # type: textblock
16983 #. type: textblock
16984 #: ../src/guestfs-actions.pod:5784 ../fish/guestfish-actions.pod:3878
16985 msgid "Set the qemu binary that we will use."
16986 msgstr ""
16987
16988 # type: textblock
16989 #. type: textblock
16990 #: ../src/guestfs-actions.pod:5786 ../fish/guestfish-actions.pod:3880
16991 msgid ""
16992 "The default is chosen when the library was compiled by the configure script."
16993 msgstr ""
16994
16995 # type: textblock
16996 #. type: textblock
16997 #: ../src/guestfs-actions.pod:5789 ../fish/guestfish-actions.pod:3883
16998 msgid ""
16999 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
17000 "variable."
17001 msgstr ""
17002
17003 # type: textblock
17004 #. type: textblock
17005 #: ../src/guestfs-actions.pod:5792 ../fish/guestfish-actions.pod:3886
17006 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
17007 msgstr ""
17008
17009 # type: textblock
17010 #. type: textblock
17011 #: ../src/guestfs-actions.pod:5794 ../fish/guestfish-actions.pod:3888
17012 msgid ""
17013 "Note that you should call this function as early as possible after creating "
17014 "the handle.  This is because some pre-launch operations depend on testing "
17015 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
17016 "don't retest features, and so you might see inconsistent results.  Using the "
17017 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
17018 "the qemu binary at the same time as the handle is created."
17019 msgstr ""
17020
17021 # type: =head2
17022 #. type: =head2
17023 #: ../src/guestfs-actions.pod:5806
17024 msgid "guestfs_set_recovery_proc"
17025 msgstr ""
17026
17027 # type: verbatim
17028 #. type: verbatim
17029 #: ../src/guestfs-actions.pod:5808
17030 #, no-wrap
17031 msgid ""
17032 " int\n"
17033 " guestfs_set_recovery_proc (guestfs_h *g,\n"
17034 "                            int recoveryproc);\n"
17035 "\n"
17036 msgstr ""
17037
17038 # type: textblock
17039 #. type: textblock
17040 #: ../src/guestfs-actions.pod:5812
17041 msgid ""
17042 "If this is called with the parameter C<false> then C<guestfs_launch> does "
17043 "not create a recovery process.  The purpose of the recovery process is to "
17044 "stop runaway qemu processes in the case where the main program aborts "
17045 "abruptly."
17046 msgstr ""
17047
17048 # type: textblock
17049 #. type: textblock
17050 #: ../src/guestfs-actions.pod:5817
17051 msgid ""
17052 "This only has any effect if called before C<guestfs_launch>, and the default "
17053 "is true."
17054 msgstr ""
17055
17056 # type: textblock
17057 #. type: textblock
17058 #: ../src/guestfs-actions.pod:5820 ../fish/guestfish-actions.pod:3910
17059 msgid ""
17060 "About the only time when you would want to disable this is if the main "
17061 "process will fork itself into the background (\"daemonize\" itself).  In "
17062 "this case the recovery process thinks that the main program has disappeared "
17063 "and so kills qemu, which is not very helpful."
17064 msgstr ""
17065
17066 # type: =head2
17067 #. type: =head2
17068 #: ../src/guestfs-actions.pod:5830
17069 msgid "guestfs_set_selinux"
17070 msgstr ""
17071
17072 # type: verbatim
17073 #. type: verbatim
17074 #: ../src/guestfs-actions.pod:5832
17075 #, no-wrap
17076 msgid ""
17077 " int\n"
17078 " guestfs_set_selinux (guestfs_h *g,\n"
17079 "                      int selinux);\n"
17080 "\n"
17081 msgstr ""
17082
17083 # type: textblock
17084 #. type: textblock
17085 #: ../src/guestfs-actions.pod:5836 ../fish/guestfish-actions.pod:3922
17086 msgid ""
17087 "This sets the selinux flag that is passed to the appliance at boot time.  "
17088 "The default is C<selinux=0> (disabled)."
17089 msgstr ""
17090
17091 # type: textblock
17092 #. type: textblock
17093 #: ../src/guestfs-actions.pod:5839 ../fish/guestfish-actions.pod:3925
17094 msgid ""
17095 "Note that if SELinux is enabled, it is always in Permissive mode "
17096 "(C<enforcing=0>)."
17097 msgstr ""
17098
17099 # type: =head2
17100 #. type: =head2
17101 #: ../src/guestfs-actions.pod:5849
17102 msgid "guestfs_set_trace"
17103 msgstr ""
17104
17105 # type: verbatim
17106 #. type: verbatim
17107 #: ../src/guestfs-actions.pod:5851
17108 #, no-wrap
17109 msgid ""
17110 " int\n"
17111 " guestfs_set_trace (guestfs_h *g,\n"
17112 "                    int trace);\n"
17113 "\n"
17114 msgstr ""
17115
17116 # type: textblock
17117 #. type: textblock
17118 #: ../src/guestfs-actions.pod:5855 ../fish/guestfish-actions.pod:3937
17119 msgid ""
17120 "If the command trace flag is set to 1, then commands are printed on stderr "
17121 "before they are executed in a format which is very similar to the one used "
17122 "by guestfish.  In other words, you can run a program with this enabled, and "
17123 "you will get out a script which you can feed to guestfish to perform the "
17124 "same set of actions."
17125 msgstr ""
17126
17127 # type: textblock
17128 #. type: textblock
17129 #: ../src/guestfs-actions.pod:5862 ../fish/guestfish-actions.pod:3944
17130 msgid ""
17131 "If you want to trace C API calls into libguestfs (and other libraries) then "
17132 "possibly a better way is to use the external ltrace(1) command."
17133 msgstr ""
17134
17135 # type: textblock
17136 #. type: textblock
17137 #: ../src/guestfs-actions.pod:5866 ../fish/guestfish-actions.pod:3948
17138 msgid ""
17139 "Command traces are disabled unless the environment variable "
17140 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17141 msgstr ""
17142
17143 # type: =head2
17144 #. type: =head2
17145 #: ../src/guestfs-actions.pod:5873
17146 msgid "guestfs_set_verbose"
17147 msgstr ""
17148
17149 # type: verbatim
17150 #. type: verbatim
17151 #: ../src/guestfs-actions.pod:5875
17152 #, no-wrap
17153 msgid ""
17154 " int\n"
17155 " guestfs_set_verbose (guestfs_h *g,\n"
17156 "                      int verbose);\n"
17157 "\n"
17158 msgstr ""
17159
17160 # type: textblock
17161 #. type: textblock
17162 #: ../src/guestfs-actions.pod:5879 ../fish/guestfish-actions.pod:3957
17163 msgid "If C<verbose> is true, this turns on verbose messages (to C<stderr>)."
17164 msgstr ""
17165
17166 # type: textblock
17167 #. type: textblock
17168 #: ../src/guestfs-actions.pod:5881 ../fish/guestfish-actions.pod:3959
17169 msgid ""
17170 "Verbose messages are disabled unless the environment variable "
17171 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17172 msgstr ""
17173
17174 # type: =head2
17175 #. type: =head2
17176 #: ../src/guestfs-actions.pod:5888
17177 msgid "guestfs_setcon"
17178 msgstr ""
17179
17180 # type: verbatim
17181 #. type: verbatim
17182 #: ../src/guestfs-actions.pod:5890
17183 #, no-wrap
17184 msgid ""
17185 " int\n"
17186 " guestfs_setcon (guestfs_h *g,\n"
17187 "                 const char *context);\n"
17188 "\n"
17189 msgstr ""
17190
17191 # type: textblock
17192 #. type: textblock
17193 #: ../src/guestfs-actions.pod:5894 ../fish/guestfish-actions.pod:3966
17194 msgid ""
17195 "This sets the SELinux security context of the daemon to the string "
17196 "C<context>."
17197 msgstr ""
17198
17199 # type: textblock
17200 #. type: textblock
17201 #: ../src/guestfs-actions.pod:5897 ../fish/guestfish-actions.pod:3969
17202 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17203 msgstr ""
17204
17205 # type: =head2
17206 #. type: =head2
17207 #: ../src/guestfs-actions.pod:5903
17208 msgid "guestfs_setxattr"
17209 msgstr ""
17210
17211 # type: verbatim
17212 #. type: verbatim
17213 #: ../src/guestfs-actions.pod:5905
17214 #, no-wrap
17215 msgid ""
17216 " int\n"
17217 " guestfs_setxattr (guestfs_h *g,\n"
17218 "                   const char *xattr,\n"
17219 "                   const char *val,\n"
17220 "                   int vallen,\n"
17221 "                   const char *path);\n"
17222 "\n"
17223 msgstr ""
17224
17225 # type: textblock
17226 #. type: textblock
17227 #: ../src/guestfs-actions.pod:5912 ../fish/guestfish-actions.pod:3975
17228 msgid ""
17229 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17230 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17231 msgstr ""
17232
17233 # type: textblock
17234 #. type: textblock
17235 #: ../src/guestfs-actions.pod:5916
17236 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
17237 msgstr ""
17238
17239 # type: =head2
17240 #. type: =head2
17241 #: ../src/guestfs-actions.pod:5922
17242 msgid "guestfs_sfdisk"
17243 msgstr ""
17244
17245 # type: verbatim
17246 #. type: verbatim
17247 #: ../src/guestfs-actions.pod:5924
17248 #, no-wrap
17249 msgid ""
17250 " int\n"
17251 " guestfs_sfdisk (guestfs_h *g,\n"
17252 "                 const char *device,\n"
17253 "                 int cyls,\n"
17254 "                 int heads,\n"
17255 "                 int sectors,\n"
17256 "                 char *const *lines);\n"
17257 "\n"
17258 msgstr ""
17259
17260 # type: textblock
17261 #. type: textblock
17262 #: ../src/guestfs-actions.pod:5932 ../fish/guestfish-actions.pod:3985
17263 msgid ""
17264 "This is a direct interface to the L<sfdisk(8)> program for creating "
17265 "partitions on block devices."
17266 msgstr ""
17267
17268 # type: textblock
17269 #. type: textblock
17270 #: ../src/guestfs-actions.pod:5935 ../fish/guestfish-actions.pod:3988
17271 msgid "C<device> should be a block device, for example C</dev/sda>."
17272 msgstr ""
17273
17274 # type: textblock
17275 #. type: textblock
17276 #: ../src/guestfs-actions.pod:5937 ../fish/guestfish-actions.pod:3990
17277 msgid ""
17278 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17279 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17280 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17281 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17282 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17283 "the kernel) cannot work out the right geometry and you will need to tell it."
17284 msgstr ""
17285
17286 # type: textblock
17287 #. type: textblock
17288 #: ../src/guestfs-actions.pod:5945 ../fish/guestfish-actions.pod:3998
17289 msgid ""
17290 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17291 "refer to the L<sfdisk(8)> manpage."
17292 msgstr ""
17293
17294 # type: textblock
17295 #. type: textblock
17296 #: ../src/guestfs-actions.pod:5948 ../fish/guestfish-actions.pod:4001
17297 msgid ""
17298 "To create a single partition occupying the whole disk, you would pass "
17299 "C<lines> as a single element list, when the single element being the string "
17300 "C<,> (comma)."
17301 msgstr ""
17302
17303 # type: textblock
17304 #. type: textblock
17305 #: ../src/guestfs-actions.pod:5952
17306 msgid ""
17307 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
17308 msgstr ""
17309
17310 # type: =head2
17311 #. type: =head2
17312 #: ../src/guestfs-actions.pod:5962
17313 msgid "guestfs_sfdiskM"
17314 msgstr ""
17315
17316 # type: verbatim
17317 #. type: verbatim
17318 #: ../src/guestfs-actions.pod:5964
17319 #, no-wrap
17320 msgid ""
17321 " int\n"
17322 " guestfs_sfdiskM (guestfs_h *g,\n"
17323 "                  const char *device,\n"
17324 "                  char *const *lines);\n"
17325 "\n"
17326 msgstr ""
17327
17328 # type: textblock
17329 #. type: textblock
17330 #: ../src/guestfs-actions.pod:5969
17331 msgid ""
17332 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
17333 "partition sizes are specified in megabytes only (rounded to the nearest "
17334 "cylinder) and you don't need to specify the cyls, heads and sectors "
17335 "parameters which were rarely if ever used anyway."
17336 msgstr ""
17337
17338 # type: textblock
17339 #. type: textblock
17340 #: ../src/guestfs-actions.pod:5975
17341 msgid ""
17342 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
17343 "C<guestfs_part_disk>"
17344 msgstr ""
17345
17346 # type: =head2
17347 #. type: =head2
17348 #: ../src/guestfs-actions.pod:5985
17349 msgid "guestfs_sfdisk_N"
17350 msgstr ""
17351
17352 # type: verbatim
17353 #. type: verbatim
17354 #: ../src/guestfs-actions.pod:5987
17355 #, no-wrap
17356 msgid ""
17357 " int\n"
17358 " guestfs_sfdisk_N (guestfs_h *g,\n"
17359 "                   const char *device,\n"
17360 "                   int partnum,\n"
17361 "                   int cyls,\n"
17362 "                   int heads,\n"
17363 "                   int sectors,\n"
17364 "                   const char *line);\n"
17365 "\n"
17366 msgstr ""
17367
17368 # type: textblock
17369 #. type: textblock
17370 #: ../src/guestfs-actions.pod:5996 ../fish/guestfish-actions.pod:4031
17371 msgid ""
17372 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17373 "(note: C<n> counts from 1)."
17374 msgstr ""
17375
17376 # type: textblock
17377 #. type: textblock
17378 #: ../src/guestfs-actions.pod:5999
17379 msgid ""
17380 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
17381 "for the cyls/heads/sectors parameters."
17382 msgstr ""
17383
17384 # type: textblock
17385 #. type: textblock
17386 #: ../src/guestfs-actions.pod:6002
17387 msgid "See also: C<guestfs_part_add>"
17388 msgstr ""
17389
17390 # type: =head2
17391 #. type: =head2
17392 #: ../src/guestfs-actions.pod:6011
17393 msgid "guestfs_sfdisk_disk_geometry"
17394 msgstr ""
17395
17396 # type: verbatim
17397 #. type: verbatim
17398 #: ../src/guestfs-actions.pod:6013
17399 #, no-wrap
17400 msgid ""
17401 " char *\n"
17402 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
17403 "                               const char *device);\n"
17404 "\n"
17405 msgstr ""
17406
17407 # type: textblock
17408 #. type: textblock
17409 #: ../src/guestfs-actions.pod:6017
17410 msgid ""
17411 "This displays the disk geometry of C<device> read from the partition table.  "
17412 "Especially in the case where the underlying block device has been resized, "
17413 "this can be different from the kernel's idea of the geometry (see "
17414 "C<guestfs_sfdisk_kernel_geometry>)."
17415 msgstr ""
17416
17417 # type: textblock
17418 #. type: textblock
17419 #: ../src/guestfs-actions.pod:6022 ../src/guestfs-actions.pod:6038
17420 #: ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4060
17421 msgid "The result is in human-readable format, and not designed to be parsed."
17422 msgstr ""
17423
17424 # type: =head2
17425 #. type: =head2
17426 #: ../src/guestfs-actions.pod:6030
17427 msgid "guestfs_sfdisk_kernel_geometry"
17428 msgstr ""
17429
17430 # type: verbatim
17431 #. type: verbatim
17432 #: ../src/guestfs-actions.pod:6032
17433 #, no-wrap
17434 msgid ""
17435 " char *\n"
17436 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
17437 "                                 const char *device);\n"
17438 "\n"
17439 msgstr ""
17440
17441 # type: textblock
17442 #. type: textblock
17443 #: ../src/guestfs-actions.pod:6036 ../fish/guestfish-actions.pod:4058
17444 msgid "This displays the kernel's idea of the geometry of C<device>."
17445 msgstr ""
17446
17447 # type: =head2
17448 #. type: =head2
17449 #: ../src/guestfs-actions.pod:6046
17450 msgid "guestfs_sfdisk_l"
17451 msgstr ""
17452
17453 # type: verbatim
17454 #. type: verbatim
17455 #: ../src/guestfs-actions.pod:6048
17456 #, no-wrap
17457 msgid ""
17458 " char *\n"
17459 " guestfs_sfdisk_l (guestfs_h *g,\n"
17460 "                   const char *device);\n"
17461 "\n"
17462 msgstr ""
17463
17464 # type: textblock
17465 #. type: textblock
17466 #: ../src/guestfs-actions.pod:6052 ../fish/guestfish-actions.pod:4067
17467 msgid ""
17468 "This displays the partition table on C<device>, in the human-readable output "
17469 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17470 msgstr ""
17471
17472 # type: textblock
17473 #. type: textblock
17474 #: ../src/guestfs-actions.pod:6056
17475 msgid "See also: C<guestfs_part_list>"
17476 msgstr ""
17477
17478 # type: =head2
17479 #. type: =head2
17480 #: ../src/guestfs-actions.pod:6063
17481 msgid "guestfs_sh"
17482 msgstr ""
17483
17484 # type: verbatim
17485 #. type: verbatim
17486 #: ../src/guestfs-actions.pod:6065
17487 #, no-wrap
17488 msgid ""
17489 " char *\n"
17490 " guestfs_sh (guestfs_h *g,\n"
17491 "             const char *command);\n"
17492 "\n"
17493 msgstr ""
17494
17495 # type: textblock
17496 #. type: textblock
17497 #: ../src/guestfs-actions.pod:6069 ../fish/guestfish-actions.pod:4077
17498 msgid ""
17499 "This call runs a command from the guest filesystem via the guest's C</bin/"
17500 "sh>."
17501 msgstr ""
17502
17503 # type: textblock
17504 #. type: textblock
17505 #: ../src/guestfs-actions.pod:6072
17506 msgid "This is like C<guestfs_command>, but passes the command to:"
17507 msgstr ""
17508
17509 # type: verbatim
17510 #. type: verbatim
17511 #: ../src/guestfs-actions.pod:6074 ../fish/guestfish-actions.pod:4082
17512 #, no-wrap
17513 msgid ""
17514 " /bin/sh -c \"command\"\n"
17515 "\n"
17516 msgstr ""
17517
17518 # type: textblock
17519 #. type: textblock
17520 #: ../src/guestfs-actions.pod:6076 ../fish/guestfish-actions.pod:4084
17521 msgid ""
17522 "Depending on the guest's shell, this usually results in wildcards being "
17523 "expanded, shell expressions being interpolated and so on."
17524 msgstr ""
17525
17526 # type: textblock
17527 #. type: textblock
17528 #: ../src/guestfs-actions.pod:6080
17529 msgid "All the provisos about C<guestfs_command> apply to this call."
17530 msgstr ""
17531
17532 # type: =head2
17533 #. type: =head2
17534 #: ../src/guestfs-actions.pod:6087
17535 msgid "guestfs_sh_lines"
17536 msgstr ""
17537
17538 # type: verbatim
17539 #. type: verbatim
17540 #: ../src/guestfs-actions.pod:6089
17541 #, no-wrap
17542 msgid ""
17543 " char **\n"
17544 " guestfs_sh_lines (guestfs_h *g,\n"
17545 "                   const char *command);\n"
17546 "\n"
17547 msgstr ""
17548
17549 # type: textblock
17550 #. type: textblock
17551 #: ../src/guestfs-actions.pod:6093
17552 msgid ""
17553 "This is the same as C<guestfs_sh>, but splits the result into a list of "
17554 "lines."
17555 msgstr ""
17556
17557 # type: textblock
17558 #. type: textblock
17559 #: ../src/guestfs-actions.pod:6096
17560 msgid "See also: C<guestfs_command_lines>"
17561 msgstr ""
17562
17563 # type: =head2
17564 #. type: =head2
17565 #: ../src/guestfs-actions.pod:6104
17566 msgid "guestfs_sleep"
17567 msgstr ""
17568
17569 # type: verbatim
17570 #. type: verbatim
17571 #: ../src/guestfs-actions.pod:6106
17572 #, no-wrap
17573 msgid ""
17574 " int\n"
17575 " guestfs_sleep (guestfs_h *g,\n"
17576 "                int secs);\n"
17577 "\n"
17578 msgstr ""
17579
17580 # type: textblock
17581 #. type: textblock
17582 #: ../src/guestfs-actions.pod:6110 ../fish/guestfish-actions.pod:4103
17583 msgid "Sleep for C<secs> seconds."
17584 msgstr ""
17585
17586 # type: textblock
17587 #. type: textblock
17588 #: ../src/guestfs-actions.pod:6114
17589 msgid "(Added in 1.0.41)"
17590 msgstr ""
17591
17592 # type: =head2
17593 #. type: =head2
17594 #: ../src/guestfs-actions.pod:6116 ../src/guestfs-structs.pod:109
17595 msgid "guestfs_stat"
17596 msgstr ""
17597
17598 # type: verbatim
17599 #. type: verbatim
17600 #: ../src/guestfs-actions.pod:6118
17601 #, no-wrap
17602 msgid ""
17603 " struct guestfs_stat *\n"
17604 " guestfs_stat (guestfs_h *g,\n"
17605 "               const char *path);\n"
17606 "\n"
17607 msgstr ""
17608
17609 # type: textblock
17610 #. type: textblock
17611 #: ../src/guestfs-actions.pod:6124 ../fish/guestfish-actions.pod:4111
17612 msgid "This is the same as the C<stat(2)> system call."
17613 msgstr ""
17614
17615 # type: =head2
17616 #. type: =head2
17617 #: ../src/guestfs-actions.pod:6132 ../src/guestfs-structs.pod:135
17618 msgid "guestfs_statvfs"
17619 msgstr ""
17620
17621 # type: verbatim
17622 #. type: verbatim
17623 #: ../src/guestfs-actions.pod:6134
17624 #, no-wrap
17625 msgid ""
17626 " struct guestfs_statvfs *\n"
17627 " guestfs_statvfs (guestfs_h *g,\n"
17628 "                  const char *path);\n"
17629 "\n"
17630 msgstr ""
17631
17632 # type: textblock
17633 #. type: textblock
17634 #: ../src/guestfs-actions.pod:6138 ../fish/guestfish-actions.pod:4117
17635 msgid ""
17636 "Returns file system statistics for any mounted file system.  C<path> should "
17637 "be a file or directory in the mounted file system (typically it is the mount "
17638 "point itself, but it doesn't need to be)."
17639 msgstr ""
17640
17641 # type: textblock
17642 #. type: textblock
17643 #: ../src/guestfs-actions.pod:6142 ../fish/guestfish-actions.pod:4121
17644 msgid "This is the same as the C<statvfs(2)> system call."
17645 msgstr ""
17646
17647 # type: textblock
17648 #. type: textblock
17649 #: ../src/guestfs-actions.pod:6144
17650 msgid ""
17651 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
17652 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
17653 msgstr ""
17654
17655 # type: =head2
17656 #. type: =head2
17657 #: ../src/guestfs-actions.pod:6150
17658 msgid "guestfs_strings"
17659 msgstr ""
17660
17661 # type: verbatim
17662 #. type: verbatim
17663 #: ../src/guestfs-actions.pod:6152
17664 #, no-wrap
17665 msgid ""
17666 " char **\n"
17667 " guestfs_strings (guestfs_h *g,\n"
17668 "                  const char *path);\n"
17669 "\n"
17670 msgstr ""
17671
17672 # type: textblock
17673 #. type: textblock
17674 #: ../src/guestfs-actions.pod:6156 ../fish/guestfish-actions.pod:4127
17675 msgid ""
17676 "This runs the L<strings(1)> command on a file and returns the list of "
17677 "printable strings found."
17678 msgstr ""
17679
17680 # type: =head2
17681 #. type: =head2
17682 #: ../src/guestfs-actions.pod:6168
17683 msgid "guestfs_strings_e"
17684 msgstr ""
17685
17686 # type: verbatim
17687 #. type: verbatim
17688 #: ../src/guestfs-actions.pod:6170
17689 #, no-wrap
17690 msgid ""
17691 " char **\n"
17692 " guestfs_strings_e (guestfs_h *g,\n"
17693 "                    const char *encoding,\n"
17694 "                    const char *path);\n"
17695 "\n"
17696 msgstr ""
17697
17698 # type: textblock
17699 #. type: textblock
17700 #: ../src/guestfs-actions.pod:6175
17701 msgid ""
17702 "This is like the C<guestfs_strings> command, but allows you to specify the "
17703 "encoding of strings that are looked for in the source file C<path>."
17704 msgstr ""
17705
17706 # type: textblock
17707 #. type: textblock
17708 #: ../src/guestfs-actions.pod:6179 ../fish/guestfish-actions.pod:4141
17709 msgid "Allowed encodings are:"
17710 msgstr ""
17711
17712 # type: =item
17713 #. type: =item
17714 #: ../src/guestfs-actions.pod:6183 ../fish/guestfish-actions.pod:4145
17715 msgid "s"
17716 msgstr ""
17717
17718 # type: textblock
17719 #. type: textblock
17720 #: ../src/guestfs-actions.pod:6185
17721 msgid ""
17722 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17723 "ISO-8859-X (this is what C<guestfs_strings> uses)."
17724 msgstr ""
17725
17726 # type: =item
17727 #. type: =item
17728 #: ../src/guestfs-actions.pod:6188 ../fish/guestfish-actions.pod:4150
17729 msgid "S"
17730 msgstr ""
17731
17732 # type: textblock
17733 #. type: textblock
17734 #: ../src/guestfs-actions.pod:6190 ../fish/guestfish-actions.pod:4152
17735 msgid "Single 8-bit-byte characters."
17736 msgstr ""
17737
17738 # type: =item
17739 #. type: =item
17740 #: ../src/guestfs-actions.pod:6192 ../fish/guestfish-actions.pod:4154
17741 msgid "b"
17742 msgstr ""
17743
17744 # type: textblock
17745 #. type: textblock
17746 #: ../src/guestfs-actions.pod:6194 ../fish/guestfish-actions.pod:4156
17747 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17748 msgstr ""
17749
17750 # type: =item
17751 #. type: =item
17752 #: ../src/guestfs-actions.pod:6197 ../fish/guestfish-actions.pod:4159
17753 msgid "l (lower case letter L)"
17754 msgstr ""
17755
17756 # type: textblock
17757 #. type: textblock
17758 #: ../src/guestfs-actions.pod:6199 ../fish/guestfish-actions.pod:4161
17759 msgid ""
17760 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17761 "examining binaries in Windows guests."
17762 msgstr ""
17763
17764 # type: =item
17765 #. type: =item
17766 #: ../src/guestfs-actions.pod:6202 ../fish/guestfish-actions.pod:4164
17767 msgid "B"
17768 msgstr ""
17769
17770 # type: textblock
17771 #. type: textblock
17772 #: ../src/guestfs-actions.pod:6204 ../fish/guestfish-actions.pod:4166
17773 msgid "32-bit big endian such as UCS-4BE."
17774 msgstr ""
17775
17776 # type: =item
17777 #. type: =item
17778 #: ../src/guestfs-actions.pod:6206 ../fish/guestfish-actions.pod:4168
17779 msgid "L"
17780 msgstr ""
17781
17782 # type: textblock
17783 #. type: textblock
17784 #: ../src/guestfs-actions.pod:6208 ../fish/guestfish-actions.pod:4170
17785 msgid "32-bit little endian such as UCS-4LE."
17786 msgstr ""
17787
17788 # type: textblock
17789 #. type: textblock
17790 #: ../src/guestfs-actions.pod:6212 ../fish/guestfish-actions.pod:4174
17791 msgid "The returned strings are transcoded to UTF-8."
17792 msgstr ""
17793
17794 # type: =head2
17795 #. type: =head2
17796 #: ../src/guestfs-actions.pod:6223
17797 msgid "guestfs_swapoff_device"
17798 msgstr ""
17799
17800 # type: verbatim
17801 #. type: verbatim
17802 #: ../src/guestfs-actions.pod:6225
17803 #, no-wrap
17804 msgid ""
17805 " int\n"
17806 " guestfs_swapoff_device (guestfs_h *g,\n"
17807 "                         const char *device);\n"
17808 "\n"
17809 msgstr ""
17810
17811 # type: textblock
17812 #. type: textblock
17813 #: ../src/guestfs-actions.pod:6229
17814 msgid ""
17815 "This command disables the libguestfs appliance swap device or partition "
17816 "named C<device>.  See C<guestfs_swapon_device>."
17817 msgstr ""
17818
17819 # type: =head2
17820 #. type: =head2
17821 #: ../src/guestfs-actions.pod:6237
17822 msgid "guestfs_swapoff_file"
17823 msgstr ""
17824
17825 # type: verbatim
17826 #. type: verbatim
17827 #: ../src/guestfs-actions.pod:6239
17828 #, no-wrap
17829 msgid ""
17830 " int\n"
17831 " guestfs_swapoff_file (guestfs_h *g,\n"
17832 "                       const char *file);\n"
17833 "\n"
17834 msgstr ""
17835
17836 # type: textblock
17837 #. type: textblock
17838 #: ../src/guestfs-actions.pod:6243 ../fish/guestfish-actions.pod:4191
17839 msgid "This command disables the libguestfs appliance swap on file."
17840 msgstr ""
17841
17842 # type: =head2
17843 #. type: =head2
17844 #: ../src/guestfs-actions.pod:6249
17845 msgid "guestfs_swapoff_label"
17846 msgstr ""
17847
17848 # type: verbatim
17849 #. type: verbatim
17850 #: ../src/guestfs-actions.pod:6251
17851 #, no-wrap
17852 msgid ""
17853 " int\n"
17854 " guestfs_swapoff_label (guestfs_h *g,\n"
17855 "                        const char *label);\n"
17856 "\n"
17857 msgstr ""
17858
17859 # type: textblock
17860 #. type: textblock
17861 #: ../src/guestfs-actions.pod:6255 ../fish/guestfish-actions.pod:4197
17862 msgid ""
17863 "This command disables the libguestfs appliance swap on labeled swap "
17864 "partition."
17865 msgstr ""
17866
17867 # type: =head2
17868 #. type: =head2
17869 #: ../src/guestfs-actions.pod:6262
17870 msgid "guestfs_swapoff_uuid"
17871 msgstr ""
17872
17873 # type: verbatim
17874 #. type: verbatim
17875 #: ../src/guestfs-actions.pod:6264
17876 #, no-wrap
17877 msgid ""
17878 " int\n"
17879 " guestfs_swapoff_uuid (guestfs_h *g,\n"
17880 "                       const char *uuid);\n"
17881 "\n"
17882 msgstr ""
17883
17884 # type: textblock
17885 #. type: textblock
17886 #: ../src/guestfs-actions.pod:6268 ../fish/guestfish-actions.pod:4204
17887 msgid ""
17888 "This command disables the libguestfs appliance swap partition with the given "
17889 "UUID."
17890 msgstr ""
17891
17892 # type: =head2
17893 #. type: =head2
17894 #: ../src/guestfs-actions.pod:6275
17895 msgid "guestfs_swapon_device"
17896 msgstr ""
17897
17898 # type: verbatim
17899 #. type: verbatim
17900 #: ../src/guestfs-actions.pod:6277
17901 #, no-wrap
17902 msgid ""
17903 " int\n"
17904 " guestfs_swapon_device (guestfs_h *g,\n"
17905 "                        const char *device);\n"
17906 "\n"
17907 msgstr ""
17908
17909 # type: textblock
17910 #. type: textblock
17911 #: ../src/guestfs-actions.pod:6281
17912 msgid ""
17913 "This command enables the libguestfs appliance to use the swap device or "
17914 "partition named C<device>.  The increased memory is made available for all "
17915 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
17916 msgstr ""
17917
17918 # type: textblock
17919 #. type: textblock
17920 #: ../src/guestfs-actions.pod:6286 ../fish/guestfish-actions.pod:4216
17921 msgid ""
17922 "Note that you should not swap to existing guest swap partitions unless you "
17923 "know what you are doing.  They may contain hibernation information, or other "
17924 "information that the guest doesn't want you to trash.  You also risk leaking "
17925 "information about the host to the guest this way.  Instead, attach a new "
17926 "host device to the guest and swap on that."
17927 msgstr ""
17928
17929 # type: =head2
17930 #. type: =head2
17931 #: ../src/guestfs-actions.pod:6297
17932 msgid "guestfs_swapon_file"
17933 msgstr ""
17934
17935 # type: verbatim
17936 #. type: verbatim
17937 #: ../src/guestfs-actions.pod:6299
17938 #, no-wrap
17939 msgid ""
17940 " int\n"
17941 " guestfs_swapon_file (guestfs_h *g,\n"
17942 "                      const char *file);\n"
17943 "\n"
17944 msgstr ""
17945
17946 # type: textblock
17947 #. type: textblock
17948 #: ../src/guestfs-actions.pod:6303
17949 msgid ""
17950 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
17951 "notes."
17952 msgstr ""
17953
17954 # type: =head2
17955 #. type: =head2
17956 #: ../src/guestfs-actions.pod:6310
17957 msgid "guestfs_swapon_label"
17958 msgstr ""
17959
17960 # type: verbatim
17961 #. type: verbatim
17962 #: ../src/guestfs-actions.pod:6312
17963 #, no-wrap
17964 msgid ""
17965 " int\n"
17966 " guestfs_swapon_label (guestfs_h *g,\n"
17967 "                       const char *label);\n"
17968 "\n"
17969 msgstr ""
17970
17971 # type: textblock
17972 #. type: textblock
17973 #: ../src/guestfs-actions.pod:6316
17974 msgid ""
17975 "This command enables swap to a labeled swap partition.  See "
17976 "C<guestfs_swapon_device> for other notes."
17977 msgstr ""
17978
17979 # type: =head2
17980 #. type: =head2
17981 #: ../src/guestfs-actions.pod:6323
17982 msgid "guestfs_swapon_uuid"
17983 msgstr ""
17984
17985 # type: verbatim
17986 #. type: verbatim
17987 #: ../src/guestfs-actions.pod:6325
17988 #, no-wrap
17989 msgid ""
17990 " int\n"
17991 " guestfs_swapon_uuid (guestfs_h *g,\n"
17992 "                      const char *uuid);\n"
17993 "\n"
17994 msgstr ""
17995
17996 # type: textblock
17997 #. type: textblock
17998 #: ../src/guestfs-actions.pod:6329
17999 msgid ""
18000 "This command enables swap to a swap partition with the given UUID.  See "
18001 "C<guestfs_swapon_device> for other notes."
18002 msgstr ""
18003
18004 # type: =head2
18005 #. type: =head2
18006 #: ../src/guestfs-actions.pod:6336
18007 msgid "guestfs_sync"
18008 msgstr ""
18009
18010 # type: verbatim
18011 #. type: verbatim
18012 #: ../src/guestfs-actions.pod:6338
18013 #, no-wrap
18014 msgid ""
18015 " int\n"
18016 " guestfs_sync (guestfs_h *g);\n"
18017 "\n"
18018 msgstr ""
18019
18020 # type: textblock
18021 #. type: textblock
18022 #: ../src/guestfs-actions.pod:6341 ../fish/guestfish-actions.pod:4248
18023 msgid ""
18024 "This syncs the disk, so that any writes are flushed through to the "
18025 "underlying disk image."
18026 msgstr ""
18027
18028 # type: textblock
18029 #. type: textblock
18030 #: ../src/guestfs-actions.pod:6344 ../fish/guestfish-actions.pod:4251
18031 msgid ""
18032 "You should always call this if you have modified a disk image, before "
18033 "closing the handle."
18034 msgstr ""
18035
18036 # type: =head2
18037 #. type: =head2
18038 #: ../src/guestfs-actions.pod:6351
18039 msgid "guestfs_tail"
18040 msgstr ""
18041
18042 # type: verbatim
18043 #. type: verbatim
18044 #: ../src/guestfs-actions.pod:6353
18045 #, no-wrap
18046 msgid ""
18047 " char **\n"
18048 " guestfs_tail (guestfs_h *g,\n"
18049 "               const char *path);\n"
18050 "\n"
18051 msgstr ""
18052
18053 # type: textblock
18054 #. type: textblock
18055 #: ../src/guestfs-actions.pod:6357 ../fish/guestfish-actions.pod:4258
18056 msgid ""
18057 "This command returns up to the last 10 lines of a file as a list of strings."
18058 msgstr ""
18059
18060 # type: =head2
18061 #. type: =head2
18062 #: ../src/guestfs-actions.pod:6369
18063 msgid "guestfs_tail_n"
18064 msgstr ""
18065
18066 # type: verbatim
18067 #. type: verbatim
18068 #: ../src/guestfs-actions.pod:6371
18069 #, no-wrap
18070 msgid ""
18071 " char **\n"
18072 " guestfs_tail_n (guestfs_h *g,\n"
18073 "                 int nrlines,\n"
18074 "                 const char *path);\n"
18075 "\n"
18076 msgstr ""
18077
18078 # type: textblock
18079 #. type: textblock
18080 #: ../src/guestfs-actions.pod:6376 ../fish/guestfish-actions.pod:4268
18081 msgid ""
18082 "If the parameter C<nrlines> is a positive number, this returns the last "
18083 "C<nrlines> lines of the file C<path>."
18084 msgstr ""
18085
18086 # type: textblock
18087 #. type: textblock
18088 #: ../src/guestfs-actions.pod:6379 ../fish/guestfish-actions.pod:4271
18089 msgid ""
18090 "If the parameter C<nrlines> is a negative number, this returns lines from "
18091 "the file C<path>, starting with the C<-nrlines>th line."
18092 msgstr ""
18093
18094 # type: =head2
18095 #. type: =head2
18096 #: ../src/guestfs-actions.pod:6393
18097 msgid "guestfs_tar_in"
18098 msgstr ""
18099
18100 # type: verbatim
18101 #. type: verbatim
18102 #: ../src/guestfs-actions.pod:6395
18103 #, no-wrap
18104 msgid ""
18105 " int\n"
18106 " guestfs_tar_in (guestfs_h *g,\n"
18107 "                 const char *tarfile,\n"
18108 "                 const char *directory);\n"
18109 "\n"
18110 msgstr ""
18111
18112 # type: textblock
18113 #. type: textblock
18114 #: ../src/guestfs-actions.pod:6400 ../fish/guestfish-actions.pod:4283
18115 msgid ""
18116 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
18117 "tar file) into C<directory>."
18118 msgstr ""
18119
18120 # type: textblock
18121 #. type: textblock
18122 #: ../src/guestfs-actions.pod:6403
18123 msgid ""
18124 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
18125 msgstr ""
18126
18127 # type: textblock
18128 #. type: textblock
18129 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6425
18130 #: ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6457
18131 msgid "(Added in 1.0.3)"
18132 msgstr ""
18133
18134 # type: =head2
18135 #. type: =head2
18136 #: ../src/guestfs-actions.pod:6410
18137 msgid "guestfs_tar_out"
18138 msgstr ""
18139
18140 # type: verbatim
18141 #. type: verbatim
18142 #: ../src/guestfs-actions.pod:6412
18143 #, no-wrap
18144 msgid ""
18145 " int\n"
18146 " guestfs_tar_out (guestfs_h *g,\n"
18147 "                  const char *directory,\n"
18148 "                  const char *tarfile);\n"
18149 "\n"
18150 msgstr ""
18151
18152 # type: textblock
18153 #. type: textblock
18154 #: ../src/guestfs-actions.pod:6417 ../fish/guestfish-actions.pod:4295
18155 msgid ""
18156 "This command packs the contents of C<directory> and downloads it to local "
18157 "file C<tarfile>."
18158 msgstr ""
18159
18160 # type: textblock
18161 #. type: textblock
18162 #: ../src/guestfs-actions.pod:6420
18163 msgid ""
18164 "To download a compressed tarball, use C<guestfs_tgz_out> or "
18165 "C<guestfs_txz_out>."
18166 msgstr ""
18167
18168 # type: =head2
18169 #. type: =head2
18170 #: ../src/guestfs-actions.pod:6427
18171 msgid "guestfs_tgz_in"
18172 msgstr ""
18173
18174 # type: verbatim
18175 #. type: verbatim
18176 #: ../src/guestfs-actions.pod:6429
18177 #, no-wrap
18178 msgid ""
18179 " int\n"
18180 " guestfs_tgz_in (guestfs_h *g,\n"
18181 "                 const char *tarball,\n"
18182 "                 const char *directory);\n"
18183 "\n"
18184 msgstr ""
18185
18186 # type: textblock
18187 #. type: textblock
18188 #: ../src/guestfs-actions.pod:6434 ../fish/guestfish-actions.pod:4307
18189 msgid ""
18190 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
18191 "tar file) into C<directory>."
18192 msgstr ""
18193
18194 # type: textblock
18195 #. type: textblock
18196 #: ../src/guestfs-actions.pod:6437
18197 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
18198 msgstr ""
18199
18200 # type: =head2
18201 #. type: =head2
18202 #: ../src/guestfs-actions.pod:6443
18203 msgid "guestfs_tgz_out"
18204 msgstr ""
18205
18206 # type: verbatim
18207 #. type: verbatim
18208 #: ../src/guestfs-actions.pod:6445
18209 #, no-wrap
18210 msgid ""
18211 " int\n"
18212 " guestfs_tgz_out (guestfs_h *g,\n"
18213 "                  const char *directory,\n"
18214 "                  const char *tarball);\n"
18215 "\n"
18216 msgstr ""
18217
18218 # type: textblock
18219 #. type: textblock
18220 #: ../src/guestfs-actions.pod:6450 ../fish/guestfish-actions.pod:4318
18221 msgid ""
18222 "This command packs the contents of C<directory> and downloads it to local "
18223 "file C<tarball>."
18224 msgstr ""
18225
18226 # type: textblock
18227 #. type: textblock
18228 #: ../src/guestfs-actions.pod:6453
18229 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
18230 msgstr ""
18231
18232 # type: =head2
18233 #. type: =head2
18234 #: ../src/guestfs-actions.pod:6459
18235 msgid "guestfs_touch"
18236 msgstr ""
18237
18238 # type: verbatim
18239 #. type: verbatim
18240 #: ../src/guestfs-actions.pod:6461
18241 #, no-wrap
18242 msgid ""
18243 " int\n"
18244 " guestfs_touch (guestfs_h *g,\n"
18245 "                const char *path);\n"
18246 "\n"
18247 msgstr ""
18248
18249 # type: textblock
18250 #. type: textblock
18251 #: ../src/guestfs-actions.pod:6465 ../fish/guestfish-actions.pod:4329
18252 msgid ""
18253 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18254 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18255 "length file."
18256 msgstr ""
18257
18258 # type: textblock
18259 #. type: textblock
18260 #: ../src/guestfs-actions.pod:6469 ../fish/guestfish-actions.pod:4333
18261 msgid ""
18262 "This command only works on regular files, and will fail on other file types "
18263 "such as directories, symbolic links, block special etc."
18264 msgstr ""
18265
18266 # type: =head2
18267 #. type: =head2
18268 #: ../src/guestfs-actions.pod:6476
18269 msgid "guestfs_truncate"
18270 msgstr ""
18271
18272 # type: verbatim
18273 #. type: verbatim
18274 #: ../src/guestfs-actions.pod:6478
18275 #, no-wrap
18276 msgid ""
18277 " int\n"
18278 " guestfs_truncate (guestfs_h *g,\n"
18279 "                   const char *path);\n"
18280 "\n"
18281 msgstr ""
18282
18283 # type: textblock
18284 #. type: textblock
18285 #: ../src/guestfs-actions.pod:6482 ../fish/guestfish-actions.pod:4340
18286 msgid ""
18287 "This command truncates C<path> to a zero-length file.  The file must exist "
18288 "already."
18289 msgstr ""
18290
18291 # type: =head2
18292 #. type: =head2
18293 #: ../src/guestfs-actions.pod:6489
18294 msgid "guestfs_truncate_size"
18295 msgstr ""
18296
18297 # type: verbatim
18298 #. type: verbatim
18299 #: ../src/guestfs-actions.pod:6491
18300 #, no-wrap
18301 msgid ""
18302 " int\n"
18303 " guestfs_truncate_size (guestfs_h *g,\n"
18304 "                        const char *path,\n"
18305 "                        int64_t size);\n"
18306 "\n"
18307 msgstr ""
18308
18309 # type: textblock
18310 #. type: textblock
18311 #: ../src/guestfs-actions.pod:6496 ../fish/guestfish-actions.pod:4347
18312 msgid ""
18313 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18314 "already."
18315 msgstr ""
18316
18317 # type: textblock
18318 #. type: textblock
18319 #: ../src/guestfs-actions.pod:6499
18320 msgid ""
18321 "If the current file size is less than C<size> then the file is extended to "
18322 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18323 "blocks are not allocated for the file until you write to it).  To create a "
18324 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
18325 msgstr ""
18326
18327 # type: =head2
18328 #. type: =head2
18329 #: ../src/guestfs-actions.pod:6509
18330 msgid "guestfs_tune2fs_l"
18331 msgstr ""
18332
18333 # type: verbatim
18334 #. type: verbatim
18335 #: ../src/guestfs-actions.pod:6511
18336 #, no-wrap
18337 msgid ""
18338 " char **\n"
18339 " guestfs_tune2fs_l (guestfs_h *g,\n"
18340 "                    const char *device);\n"
18341 "\n"
18342 msgstr ""
18343
18344 # type: textblock
18345 #. type: textblock
18346 #: ../src/guestfs-actions.pod:6515 ../fish/guestfish-actions.pod:4360
18347 msgid ""
18348 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18349 "C<device>."
18350 msgstr ""
18351
18352 # type: textblock
18353 #. type: textblock
18354 #: ../src/guestfs-actions.pod:6518 ../fish/guestfish-actions.pod:4363
18355 msgid ""
18356 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18357 "for more details.  The list of fields returned isn't clearly defined, and "
18358 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18359 "and the filesystem itself."
18360 msgstr ""
18361
18362 # type: =head2
18363 #. type: =head2
18364 #: ../src/guestfs-actions.pod:6531
18365 msgid "guestfs_txz_in"
18366 msgstr ""
18367
18368 # type: verbatim
18369 #. type: verbatim
18370 #: ../src/guestfs-actions.pod:6533
18371 #, no-wrap
18372 msgid ""
18373 " int\n"
18374 " guestfs_txz_in (guestfs_h *g,\n"
18375 "                 const char *tarball,\n"
18376 "                 const char *directory);\n"
18377 "\n"
18378 msgstr ""
18379
18380 # type: textblock
18381 #. type: textblock
18382 #: ../src/guestfs-actions.pod:6538 ../fish/guestfish-actions.pod:4372
18383 msgid ""
18384 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18385 "tar file) into C<directory>."
18386 msgstr ""
18387
18388 # type: =head2
18389 #. type: =head2
18390 #: ../src/guestfs-actions.pod:6545
18391 msgid "guestfs_txz_out"
18392 msgstr ""
18393
18394 # type: verbatim
18395 #. type: verbatim
18396 #: ../src/guestfs-actions.pod:6547
18397 #, no-wrap
18398 msgid ""
18399 " int\n"
18400 " guestfs_txz_out (guestfs_h *g,\n"
18401 "                  const char *directory,\n"
18402 "                  const char *tarball);\n"
18403 "\n"
18404 msgstr ""
18405
18406 # type: textblock
18407 #. type: textblock
18408 #: ../src/guestfs-actions.pod:6552 ../fish/guestfish-actions.pod:4381
18409 msgid ""
18410 "This command packs the contents of C<directory> and downloads it to local "
18411 "file C<tarball> (as an xz compressed tar archive)."
18412 msgstr ""
18413
18414 # type: =head2
18415 #. type: =head2
18416 #: ../src/guestfs-actions.pod:6559
18417 msgid "guestfs_umask"
18418 msgstr ""
18419
18420 # type: verbatim
18421 #. type: verbatim
18422 #: ../src/guestfs-actions.pod:6561
18423 #, no-wrap
18424 msgid ""
18425 " int\n"
18426 " guestfs_umask (guestfs_h *g,\n"
18427 "                int mask);\n"
18428 "\n"
18429 msgstr ""
18430
18431 # type: textblock
18432 #. type: textblock
18433 #: ../src/guestfs-actions.pod:6565 ../fish/guestfish-actions.pod:4390
18434 msgid ""
18435 "This function sets the mask used for creating new files and device nodes to "
18436 "C<mask & 0777>."
18437 msgstr ""
18438
18439 # type: textblock
18440 #. type: textblock
18441 #: ../src/guestfs-actions.pod:6568 ../fish/guestfish-actions.pod:4393
18442 msgid ""
18443 "Typical umask values would be C<022> which creates new files with "
18444 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18445 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18446 msgstr ""
18447
18448 # type: textblock
18449 #. type: textblock
18450 #: ../src/guestfs-actions.pod:6573 ../fish/guestfish-actions.pod:4398
18451 msgid ""
18452 "The default umask is C<022>.  This is important because it means that "
18453 "directories and device nodes will be created with C<0644> or C<0755> mode "
18454 "even if you specify C<0777>."
18455 msgstr ""
18456
18457 # type: textblock
18458 #. type: textblock
18459 #: ../src/guestfs-actions.pod:6577
18460 msgid ""
18461 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
18462 "C<guestfs_mkdir>."
18463 msgstr ""
18464
18465 # type: textblock
18466 #. type: textblock
18467 #: ../src/guestfs-actions.pod:6580 ../fish/guestfish-actions.pod:4405
18468 msgid "This call returns the previous umask."
18469 msgstr ""
18470
18471 # type: =head2
18472 #. type: =head2
18473 #: ../src/guestfs-actions.pod:6586
18474 msgid "guestfs_umount"
18475 msgstr ""
18476
18477 # type: verbatim
18478 #. type: verbatim
18479 #: ../src/guestfs-actions.pod:6588
18480 #, no-wrap
18481 msgid ""
18482 " int\n"
18483 " guestfs_umount (guestfs_h *g,\n"
18484 "                 const char *pathordevice);\n"
18485 "\n"
18486 msgstr ""
18487
18488 # type: textblock
18489 #. type: textblock
18490 #: ../src/guestfs-actions.pod:6592 ../fish/guestfish-actions.pod:4413
18491 msgid ""
18492 "This unmounts the given filesystem.  The filesystem may be specified either "
18493 "by its mountpoint (path) or the device which contains the filesystem."
18494 msgstr ""
18495
18496 # type: =head2
18497 #. type: =head2
18498 #: ../src/guestfs-actions.pod:6600
18499 msgid "guestfs_umount_all"
18500 msgstr ""
18501
18502 # type: verbatim
18503 #. type: verbatim
18504 #: ../src/guestfs-actions.pod:6602
18505 #, no-wrap
18506 msgid ""
18507 " int\n"
18508 " guestfs_umount_all (guestfs_h *g);\n"
18509 "\n"
18510 msgstr ""
18511
18512 # type: textblock
18513 #. type: textblock
18514 #: ../src/guestfs-actions.pod:6605 ../fish/guestfish-actions.pod:4423
18515 msgid "This unmounts all mounted filesystems."
18516 msgstr ""
18517
18518 # type: textblock
18519 #. type: textblock
18520 #: ../src/guestfs-actions.pod:6607 ../fish/guestfish-actions.pod:4425
18521 msgid "Some internal mounts are not unmounted by this call."
18522 msgstr ""
18523
18524 # type: =head2
18525 #. type: =head2
18526 #: ../src/guestfs-actions.pod:6613
18527 msgid "guestfs_upload"
18528 msgstr ""
18529
18530 # type: verbatim
18531 #. type: verbatim
18532 #: ../src/guestfs-actions.pod:6615
18533 #, no-wrap
18534 msgid ""
18535 " int\n"
18536 " guestfs_upload (guestfs_h *g,\n"
18537 "                 const char *filename,\n"
18538 "                 const char *remotefilename);\n"
18539 "\n"
18540 msgstr ""
18541
18542 # type: textblock
18543 #. type: textblock
18544 #: ../src/guestfs-actions.pod:6620 ../src/guestfs-actions.pod:6644
18545 #: ../fish/guestfish-actions.pod:4431 ../fish/guestfish-actions.pod:4444
18546 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18547 msgstr ""
18548
18549 # type: textblock
18550 #. type: textblock
18551 #: ../src/guestfs-actions.pod:6625
18552 msgid "See also C<guestfs_download>."
18553 msgstr ""
18554
18555 # type: =head2
18556 #. type: =head2
18557 #: ../src/guestfs-actions.pod:6636
18558 msgid "guestfs_upload_offset"
18559 msgstr ""
18560
18561 # type: verbatim
18562 #. type: verbatim
18563 #: ../src/guestfs-actions.pod:6638
18564 #, no-wrap
18565 msgid ""
18566 " int\n"
18567 " guestfs_upload_offset (guestfs_h *g,\n"
18568 "                        const char *filename,\n"
18569 "                        const char *remotefilename,\n"
18570 "                        int64_t offset);\n"
18571 "\n"
18572 msgstr ""
18573
18574 # type: textblock
18575 #. type: textblock
18576 #: ../src/guestfs-actions.pod:6647 ../fish/guestfish-actions.pod:4447
18577 msgid ""
18578 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18579 "The intention is to overwrite parts of existing files or devices, although "
18580 "if a non-existant file is specified then it is created with a \"hole\" "
18581 "before C<offset>.  The size of the data written is implicit in the size of "
18582 "the source C<filename>."
18583 msgstr ""
18584
18585 # type: textblock
18586 #. type: textblock
18587 #: ../src/guestfs-actions.pod:6654
18588 msgid ""
18589 "Note that there is no limit on the amount of data that can be uploaded with "
18590 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
18591 "full amount unless an error occurs."
18592 msgstr ""
18593
18594 # type: textblock
18595 #. type: textblock
18596 #: ../src/guestfs-actions.pod:6659
18597 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
18598 msgstr ""
18599
18600 # type: =head2
18601 #. type: =head2
18602 #: ../src/guestfs-actions.pod:6670
18603 msgid "guestfs_utimens"
18604 msgstr ""
18605
18606 # type: verbatim
18607 #. type: verbatim
18608 #: ../src/guestfs-actions.pod:6672
18609 #, no-wrap
18610 msgid ""
18611 " int\n"
18612 " guestfs_utimens (guestfs_h *g,\n"
18613 "                  const char *path,\n"
18614 "                  int64_t atsecs,\n"
18615 "                  int64_t atnsecs,\n"
18616 "                  int64_t mtsecs,\n"
18617 "                  int64_t mtnsecs);\n"
18618 "\n"
18619 msgstr ""
18620
18621 # type: textblock
18622 #. type: textblock
18623 #: ../src/guestfs-actions.pod:6680 ../fish/guestfish-actions.pod:4467
18624 msgid "This command sets the timestamps of a file with nanosecond precision."
18625 msgstr ""
18626
18627 # type: textblock
18628 #. type: textblock
18629 #: ../src/guestfs-actions.pod:6683 ../fish/guestfish-actions.pod:4470
18630 msgid ""
18631 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18632 "from the epoch."
18633 msgstr ""
18634
18635 # type: textblock
18636 #. type: textblock
18637 #: ../src/guestfs-actions.pod:6686 ../fish/guestfish-actions.pod:4473
18638 msgid ""
18639 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18640 "nanoseconds from the epoch."
18641 msgstr ""
18642
18643 # type: textblock
18644 #. type: textblock
18645 #: ../src/guestfs-actions.pod:6689 ../fish/guestfish-actions.pod:4476
18646 msgid ""
18647 "If the C<*nsecs> field contains the special value C<-1> then the "
18648 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18649 "ignored in this case)."
18650 msgstr ""
18651
18652 # type: textblock
18653 #. type: textblock
18654 #: ../src/guestfs-actions.pod:6693 ../fish/guestfish-actions.pod:4480
18655 msgid ""
18656 "If the C<*nsecs> field contains the special value C<-2> then the "
18657 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18658 "in this case)."
18659 msgstr ""
18660
18661 # type: =head2
18662 #. type: =head2
18663 #: ../src/guestfs-actions.pod:6701 ../src/guestfs-structs.pod:175
18664 msgid "guestfs_version"
18665 msgstr ""
18666
18667 # type: verbatim
18668 #. type: verbatim
18669 #: ../src/guestfs-actions.pod:6703
18670 #, no-wrap
18671 msgid ""
18672 " struct guestfs_version *\n"
18673 " guestfs_version (guestfs_h *g);\n"
18674 "\n"
18675 msgstr ""
18676
18677 # type: textblock
18678 #. type: textblock
18679 #: ../src/guestfs-actions.pod:6706 ../fish/guestfish-actions.pod:4488
18680 msgid ""
18681 "Return the libguestfs version number that the program is linked against."
18682 msgstr ""
18683
18684 # type: textblock
18685 #. type: textblock
18686 #: ../src/guestfs-actions.pod:6709 ../fish/guestfish-actions.pod:4491
18687 msgid ""
18688 "Note that because of dynamic linking this is not necessarily the version of "
18689 "libguestfs that you compiled against.  You can compile the program, and then "
18690 "at runtime dynamically link against a completely different C<libguestfs.so> "
18691 "library."
18692 msgstr ""
18693
18694 # type: textblock
18695 #. type: textblock
18696 #: ../src/guestfs-actions.pod:6714 ../fish/guestfish-actions.pod:4496
18697 msgid ""
18698 "This call was added in version C<1.0.58>.  In previous versions of "
18699 "libguestfs there was no way to get the version number.  From C code you can "
18700 "use dynamic linker functions to find out if this symbol exists (if it "
18701 "doesn't, then it's an earlier version)."
18702 msgstr ""
18703
18704 # type: textblock
18705 #. type: textblock
18706 #: ../src/guestfs-actions.pod:6720 ../fish/guestfish-actions.pod:4502
18707 msgid ""
18708 "The call returns a structure with four elements.  The first three (C<major>, "
18709 "C<minor> and C<release>) are numbers and correspond to the usual version "
18710 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18711 "but may be used for distro-specific information."
18712 msgstr ""
18713
18714 # type: textblock
18715 #. type: textblock
18716 #: ../src/guestfs-actions.pod:6726 ../fish/guestfish-actions.pod:4508
18717 msgid ""
18718 "To construct the original version string: C<$major.$minor.$release$extra>"
18719 msgstr ""
18720
18721 # type: textblock
18722 #. type: textblock
18723 #: ../src/guestfs-actions.pod:6729 ../fish/guestfish-actions.pod:4511
18724 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18725 msgstr ""
18726
18727 # type: textblock
18728 #. type: textblock
18729 #: ../src/guestfs-actions.pod:6731
18730 msgid ""
18731 "I<Note:> Don't use this call to test for availability of features.  In "
18732 "enterprise distributions we backport features from later versions into "
18733 "earlier versions, making this an unreliable way to test for features.  Use "
18734 "C<guestfs_available> instead."
18735 msgstr ""
18736
18737 # type: textblock
18738 #. type: textblock
18739 #: ../src/guestfs-actions.pod:6737
18740 msgid ""
18741 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
18742 "error.  I<The caller must call C<guestfs_free_version> after use>."
18743 msgstr ""
18744
18745 # type: textblock
18746 #. type: textblock
18747 #: ../src/guestfs-actions.pod:6741
18748 msgid "(Added in 1.0.58)"
18749 msgstr ""
18750
18751 # type: =head2
18752 #. type: =head2
18753 #: ../src/guestfs-actions.pod:6743
18754 msgid "guestfs_vfs_label"
18755 msgstr ""
18756
18757 # type: verbatim
18758 #. type: verbatim
18759 #: ../src/guestfs-actions.pod:6745
18760 #, no-wrap
18761 msgid ""
18762 " char *\n"
18763 " guestfs_vfs_label (guestfs_h *g,\n"
18764 "                    const char *device);\n"
18765 "\n"
18766 msgstr ""
18767
18768 # type: textblock
18769 #. type: textblock
18770 #: ../src/guestfs-actions.pod:6749 ../fish/guestfish-actions.pod:4523
18771 msgid "This returns the filesystem label of the filesystem on C<device>."
18772 msgstr ""
18773
18774 # type: textblock
18775 #. type: textblock
18776 #: ../src/guestfs-actions.pod:6752 ../fish/guestfish-actions.pod:4526
18777 msgid "If the filesystem is unlabeled, this returns the empty string."
18778 msgstr ""
18779
18780 # type: textblock
18781 #. type: textblock
18782 #: ../src/guestfs-actions.pod:6754
18783 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
18784 msgstr ""
18785
18786 # type: textblock
18787 #. type: textblock
18788 #: ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:6796
18789 msgid "(Added in 1.3.18)"
18790 msgstr ""
18791
18792 # type: =head2
18793 #. type: =head2
18794 #: ../src/guestfs-actions.pod:6761
18795 msgid "guestfs_vfs_type"
18796 msgstr ""
18797
18798 # type: verbatim
18799 #. type: verbatim
18800 #: ../src/guestfs-actions.pod:6763
18801 #, no-wrap
18802 msgid ""
18803 " char *\n"
18804 " guestfs_vfs_type (guestfs_h *g,\n"
18805 "                   const char *device);\n"
18806 "\n"
18807 msgstr ""
18808
18809 # type: textblock
18810 #. type: textblock
18811 #: ../src/guestfs-actions.pod:6767 ../fish/guestfish-actions.pod:4534
18812 msgid ""
18813 "This command gets the filesystem type corresponding to the filesystem on "
18814 "C<device>."
18815 msgstr ""
18816
18817 # type: textblock
18818 #. type: textblock
18819 #: ../src/guestfs-actions.pod:6770 ../fish/guestfish-actions.pod:4537
18820 msgid ""
18821 "For most filesystems, the result is the name of the Linux VFS module which "
18822 "would be used to mount this filesystem if you mounted it without specifying "
18823 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18824 msgstr ""
18825
18826 # type: =head2
18827 #. type: =head2
18828 #: ../src/guestfs-actions.pod:6780
18829 msgid "guestfs_vfs_uuid"
18830 msgstr ""
18831
18832 # type: verbatim
18833 #. type: verbatim
18834 #: ../src/guestfs-actions.pod:6782
18835 #, no-wrap
18836 msgid ""
18837 " char *\n"
18838 " guestfs_vfs_uuid (guestfs_h *g,\n"
18839 "                   const char *device);\n"
18840 "\n"
18841 msgstr ""
18842
18843 # type: textblock
18844 #. type: textblock
18845 #: ../src/guestfs-actions.pod:6786 ../fish/guestfish-actions.pod:4546
18846 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18847 msgstr ""
18848
18849 # type: textblock
18850 #. type: textblock
18851 #: ../src/guestfs-actions.pod:6789 ../fish/guestfish-actions.pod:4549
18852 msgid "If the filesystem does not have a UUID, this returns the empty string."
18853 msgstr ""
18854
18855 # type: textblock
18856 #. type: textblock
18857 #: ../src/guestfs-actions.pod:6791
18858 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
18859 msgstr ""
18860
18861 # type: =head2
18862 #. type: =head2
18863 #: ../src/guestfs-actions.pod:6798
18864 msgid "guestfs_vg_activate"
18865 msgstr ""
18866
18867 # type: verbatim
18868 #. type: verbatim
18869 #: ../src/guestfs-actions.pod:6800
18870 #, no-wrap
18871 msgid ""
18872 " int\n"
18873 " guestfs_vg_activate (guestfs_h *g,\n"
18874 "                      int activate,\n"
18875 "                      char *const *volgroups);\n"
18876 "\n"
18877 msgstr ""
18878
18879 # type: textblock
18880 #. type: textblock
18881 #: ../src/guestfs-actions.pod:6805 ../fish/guestfish-actions.pod:4557
18882 msgid ""
18883 "This command activates or (if C<activate> is false) deactivates all logical "
18884 "volumes in the listed volume groups C<volgroups>.  If activated, then they "
18885 "are made known to the kernel, ie. they appear as C</dev/mapper> devices.  If "
18886 "deactivated, then those devices disappear."
18887 msgstr ""
18888
18889 # type: textblock
18890 #. type: textblock
18891 #: ../src/guestfs-actions.pod:6811 ../fish/guestfish-actions.pod:4563
18892 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18893 msgstr ""
18894
18895 # type: textblock
18896 #. type: textblock
18897 #: ../src/guestfs-actions.pod:6813 ../fish/guestfish-actions.pod:4565
18898 msgid ""
18899 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18900 "activated or deactivated."
18901 msgstr ""
18902
18903 # type: =head2
18904 #. type: =head2
18905 #: ../src/guestfs-actions.pod:6820
18906 msgid "guestfs_vg_activate_all"
18907 msgstr ""
18908
18909 # type: verbatim
18910 #. type: verbatim
18911 #: ../src/guestfs-actions.pod:6822
18912 #, no-wrap
18913 msgid ""
18914 " int\n"
18915 " guestfs_vg_activate_all (guestfs_h *g,\n"
18916 "                          int activate);\n"
18917 "\n"
18918 msgstr ""
18919
18920 # type: textblock
18921 #. type: textblock
18922 #: ../src/guestfs-actions.pod:6826 ../fish/guestfish-actions.pod:4572
18923 msgid ""
18924 "This command activates or (if C<activate> is false) deactivates all logical "
18925 "volumes in all volume groups.  If activated, then they are made known to the "
18926 "kernel, ie. they appear as C</dev/mapper> devices.  If deactivated, then "
18927 "those devices disappear."
18928 msgstr ""
18929
18930 # type: textblock
18931 #. type: textblock
18932 #: ../src/guestfs-actions.pod:6832 ../fish/guestfish-actions.pod:4578
18933 msgid "This command is the same as running C<vgchange -a y|n>"
18934 msgstr ""
18935
18936 # type: =head2
18937 #. type: =head2
18938 #: ../src/guestfs-actions.pod:6838
18939 msgid "guestfs_vgcreate"
18940 msgstr ""
18941
18942 # type: verbatim
18943 #. type: verbatim
18944 #: ../src/guestfs-actions.pod:6840
18945 #, no-wrap
18946 msgid ""
18947 " int\n"
18948 " guestfs_vgcreate (guestfs_h *g,\n"
18949 "                   const char *volgroup,\n"
18950 "                   char *const *physvols);\n"
18951 "\n"
18952 msgstr ""
18953
18954 # type: textblock
18955 #. type: textblock
18956 #: ../src/guestfs-actions.pod:6845 ../fish/guestfish-actions.pod:4584
18957 msgid ""
18958 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18959 "of physical volumes C<physvols>."
18960 msgstr ""
18961
18962 # type: =head2
18963 #. type: =head2
18964 #: ../src/guestfs-actions.pod:6852
18965 msgid "guestfs_vglvuuids"
18966 msgstr ""
18967
18968 # type: verbatim
18969 #. type: verbatim
18970 #: ../src/guestfs-actions.pod:6854
18971 #, no-wrap
18972 msgid ""
18973 " char **\n"
18974 " guestfs_vglvuuids (guestfs_h *g,\n"
18975 "                    const char *vgname);\n"
18976 "\n"
18977 msgstr ""
18978
18979 # type: textblock
18980 #. type: textblock
18981 #: ../src/guestfs-actions.pod:6858 ../fish/guestfish-actions.pod:4591
18982 msgid ""
18983 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18984 "volumes created in this volume group."
18985 msgstr ""
18986
18987 # type: textblock
18988 #. type: textblock
18989 #: ../src/guestfs-actions.pod:6861
18990 msgid ""
18991 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
18992 "associate logical volumes and volume groups."
18993 msgstr ""
18994
18995 # type: textblock
18996 #. type: textblock
18997 #: ../src/guestfs-actions.pod:6864
18998 msgid "See also C<guestfs_vgpvuuids>."
18999 msgstr ""
19000
19001 # type: =head2
19002 #. type: =head2
19003 #: ../src/guestfs-actions.pod:6872
19004 msgid "guestfs_vgpvuuids"
19005 msgstr ""
19006
19007 # type: verbatim
19008 #. type: verbatim
19009 #: ../src/guestfs-actions.pod:6874
19010 #, no-wrap
19011 msgid ""
19012 " char **\n"
19013 " guestfs_vgpvuuids (guestfs_h *g,\n"
19014 "                    const char *vgname);\n"
19015 "\n"
19016 msgstr ""
19017
19018 # type: textblock
19019 #. type: textblock
19020 #: ../src/guestfs-actions.pod:6878 ../fish/guestfish-actions.pod:4603
19021 msgid ""
19022 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
19023 "volumes that this volume group resides on."
19024 msgstr ""
19025
19026 # type: textblock
19027 #. type: textblock
19028 #: ../src/guestfs-actions.pod:6881
19029 msgid ""
19030 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
19031 "associate physical volumes and volume groups."
19032 msgstr ""
19033
19034 # type: textblock
19035 #. type: textblock
19036 #: ../src/guestfs-actions.pod:6884
19037 msgid "See also C<guestfs_vglvuuids>."
19038 msgstr ""
19039
19040 # type: =head2
19041 #. type: =head2
19042 #: ../src/guestfs-actions.pod:6892
19043 msgid "guestfs_vgremove"
19044 msgstr ""
19045
19046 # type: verbatim
19047 #. type: verbatim
19048 #: ../src/guestfs-actions.pod:6894
19049 #, no-wrap
19050 msgid ""
19051 " int\n"
19052 " guestfs_vgremove (guestfs_h *g,\n"
19053 "                   const char *vgname);\n"
19054 "\n"
19055 msgstr ""
19056
19057 # type: textblock
19058 #. type: textblock
19059 #: ../src/guestfs-actions.pod:6898 ../fish/guestfish-actions.pod:4615
19060 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
19061 msgstr ""
19062
19063 # type: textblock
19064 #. type: textblock
19065 #: ../src/guestfs-actions.pod:6900 ../fish/guestfish-actions.pod:4617
19066 msgid ""
19067 "This also forcibly removes all logical volumes in the volume group (if any)."
19068 msgstr ""
19069
19070 # type: =head2
19071 #. type: =head2
19072 #: ../src/guestfs-actions.pod:6907
19073 msgid "guestfs_vgrename"
19074 msgstr ""
19075
19076 # type: verbatim
19077 #. type: verbatim
19078 #: ../src/guestfs-actions.pod:6909
19079 #, no-wrap
19080 msgid ""
19081 " int\n"
19082 " guestfs_vgrename (guestfs_h *g,\n"
19083 "                   const char *volgroup,\n"
19084 "                   const char *newvolgroup);\n"
19085 "\n"
19086 msgstr ""
19087
19088 # type: textblock
19089 #. type: textblock
19090 #: ../src/guestfs-actions.pod:6914 ../fish/guestfish-actions.pod:4624
19091 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
19092 msgstr ""
19093
19094 # type: =head2
19095 #. type: =head2
19096 #: ../src/guestfs-actions.pod:6920
19097 msgid "guestfs_vgs"
19098 msgstr ""
19099
19100 # type: verbatim
19101 #. type: verbatim
19102 #: ../src/guestfs-actions.pod:6922
19103 #, no-wrap
19104 msgid ""
19105 " char **\n"
19106 " guestfs_vgs (guestfs_h *g);\n"
19107 "\n"
19108 msgstr ""
19109
19110 # type: textblock
19111 #. type: textblock
19112 #: ../src/guestfs-actions.pod:6925 ../fish/guestfish-actions.pod:4630
19113 msgid ""
19114 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19115 "> command."
19116 msgstr ""
19117
19118 # type: textblock
19119 #. type: textblock
19120 #: ../src/guestfs-actions.pod:6928 ../fish/guestfish-actions.pod:4633
19121 msgid ""
19122 "This returns a list of just the volume group names that were detected (eg. "
19123 "C<VolGroup00>)."
19124 msgstr ""
19125
19126 # type: textblock
19127 #. type: textblock
19128 #: ../src/guestfs-actions.pod:6931
19129 msgid "See also C<guestfs_vgs_full>."
19130 msgstr ""
19131
19132 # type: =head2
19133 #. type: =head2
19134 #: ../src/guestfs-actions.pod:6939
19135 msgid "guestfs_vgs_full"
19136 msgstr ""
19137
19138 # type: verbatim
19139 #. type: verbatim
19140 #: ../src/guestfs-actions.pod:6941
19141 #, no-wrap
19142 msgid ""
19143 " struct guestfs_lvm_vg_list *\n"
19144 " guestfs_vgs_full (guestfs_h *g);\n"
19145 "\n"
19146 msgstr ""
19147
19148 # type: textblock
19149 #. type: textblock
19150 #: ../src/guestfs-actions.pod:6944 ../fish/guestfish-actions.pod:4642
19151 msgid ""
19152 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
19153 "> command.  The \"full\" version includes all fields."
19154 msgstr ""
19155
19156 # type: textblock
19157 #. type: textblock
19158 #: ../src/guestfs-actions.pod:6947
19159 msgid ""
19160 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
19161 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
19162 msgstr ""
19163
19164 # type: =head2
19165 #. type: =head2
19166 #: ../src/guestfs-actions.pod:6953
19167 msgid "guestfs_vgscan"
19168 msgstr ""
19169
19170 # type: verbatim
19171 #. type: verbatim
19172 #: ../src/guestfs-actions.pod:6955
19173 #, no-wrap
19174 msgid ""
19175 " int\n"
19176 " guestfs_vgscan (guestfs_h *g);\n"
19177 "\n"
19178 msgstr ""
19179
19180 # type: textblock
19181 #. type: textblock
19182 #: ../src/guestfs-actions.pod:6958 ../fish/guestfish-actions.pod:4649
19183 msgid ""
19184 "This rescans all block devices and rebuilds the list of LVM physical "
19185 "volumes, volume groups and logical volumes."
19186 msgstr ""
19187
19188 # type: =head2
19189 #. type: =head2
19190 #: ../src/guestfs-actions.pod:6965
19191 msgid "guestfs_vguuid"
19192 msgstr ""
19193
19194 # type: verbatim
19195 #. type: verbatim
19196 #: ../src/guestfs-actions.pod:6967
19197 #, no-wrap
19198 msgid ""
19199 " char *\n"
19200 " guestfs_vguuid (guestfs_h *g,\n"
19201 "                 const char *vgname);\n"
19202 "\n"
19203 msgstr ""
19204
19205 # type: textblock
19206 #. type: textblock
19207 #: ../src/guestfs-actions.pod:6971 ../fish/guestfish-actions.pod:4656
19208 msgid "This command returns the UUID of the LVM VG named C<vgname>."
19209 msgstr ""
19210
19211 # type: =head2
19212 #. type: =head2
19213 #: ../src/guestfs-actions.pod:6978
19214 msgid "guestfs_wait_ready"
19215 msgstr ""
19216
19217 # type: verbatim
19218 #. type: verbatim
19219 #: ../src/guestfs-actions.pod:6980
19220 #, no-wrap
19221 msgid ""
19222 " int\n"
19223 " guestfs_wait_ready (guestfs_h *g);\n"
19224 "\n"
19225 msgstr ""
19226
19227 # type: textblock
19228 #. type: textblock
19229 #: ../src/guestfs-actions.pod:6983
19230 msgid "This function is a no op."
19231 msgstr ""
19232
19233 # type: textblock
19234 #. type: textblock
19235 #: ../src/guestfs-actions.pod:6985
19236 msgid ""
19237 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
19238 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
19239 "is no longer necessary because C<guestfs_launch> now does the waiting."
19240 msgstr ""
19241
19242 # type: textblock
19243 #. type: textblock
19244 #: ../src/guestfs-actions.pod:6990
19245 msgid ""
19246 "If you see any calls to this function in code then you can just remove them, "
19247 "unless you want to retain compatibility with older versions of the API."
19248 msgstr ""
19249
19250 # type: =head2
19251 #. type: =head2
19252 #: ../src/guestfs-actions.pod:6998
19253 msgid "guestfs_wc_c"
19254 msgstr ""
19255
19256 # type: verbatim
19257 #. type: verbatim
19258 #: ../src/guestfs-actions.pod:7000
19259 #, no-wrap
19260 msgid ""
19261 " int\n"
19262 " guestfs_wc_c (guestfs_h *g,\n"
19263 "               const char *path);\n"
19264 "\n"
19265 msgstr ""
19266
19267 # type: textblock
19268 #. type: textblock
19269 #: ../src/guestfs-actions.pod:7004 ../fish/guestfish-actions.pod:4662
19270 msgid ""
19271 "This command counts the characters in a file, using the C<wc -c> external "
19272 "command."
19273 msgstr ""
19274
19275 # type: =head2
19276 #. type: =head2
19277 #: ../src/guestfs-actions.pod:7011
19278 msgid "guestfs_wc_l"
19279 msgstr ""
19280
19281 # type: verbatim
19282 #. type: verbatim
19283 #: ../src/guestfs-actions.pod:7013
19284 #, no-wrap
19285 msgid ""
19286 " int\n"
19287 " guestfs_wc_l (guestfs_h *g,\n"
19288 "               const char *path);\n"
19289 "\n"
19290 msgstr ""
19291
19292 # type: textblock
19293 #. type: textblock
19294 #: ../src/guestfs-actions.pod:7017 ../fish/guestfish-actions.pod:4669
19295 msgid ""
19296 "This command counts the lines in a file, using the C<wc -l> external command."
19297 msgstr ""
19298
19299 # type: =head2
19300 #. type: =head2
19301 #: ../src/guestfs-actions.pod:7024
19302 msgid "guestfs_wc_w"
19303 msgstr ""
19304
19305 # type: verbatim
19306 #. type: verbatim
19307 #: ../src/guestfs-actions.pod:7026
19308 #, no-wrap
19309 msgid ""
19310 " int\n"
19311 " guestfs_wc_w (guestfs_h *g,\n"
19312 "               const char *path);\n"
19313 "\n"
19314 msgstr ""
19315
19316 # type: textblock
19317 #. type: textblock
19318 #: ../src/guestfs-actions.pod:7030 ../fish/guestfish-actions.pod:4676
19319 msgid ""
19320 "This command counts the words in a file, using the C<wc -w> external command."
19321 msgstr ""
19322
19323 # type: =head2
19324 #. type: =head2
19325 #: ../src/guestfs-actions.pod:7037
19326 msgid "guestfs_write"
19327 msgstr ""
19328
19329 # type: verbatim
19330 #. type: verbatim
19331 #: ../src/guestfs-actions.pod:7039
19332 #, no-wrap
19333 msgid ""
19334 " int\n"
19335 " guestfs_write (guestfs_h *g,\n"
19336 "                const char *path,\n"
19337 "                const char *content,\n"
19338 "                size_t content_size);\n"
19339 "\n"
19340 msgstr ""
19341
19342 # type: textblock
19343 #. type: textblock
19344 #: ../src/guestfs-actions.pod:7045 ../fish/guestfish-actions.pod:4683
19345 msgid ""
19346 "This call creates a file called C<path>.  The content of the file is the "
19347 "string C<content> (which can contain any 8 bit data)."
19348 msgstr ""
19349
19350 # type: =head2
19351 #. type: =head2
19352 #: ../src/guestfs-actions.pod:7055
19353 msgid "guestfs_write_file"
19354 msgstr ""
19355
19356 # type: verbatim
19357 #. type: verbatim
19358 #: ../src/guestfs-actions.pod:7057
19359 #, no-wrap
19360 msgid ""
19361 " int\n"
19362 " guestfs_write_file (guestfs_h *g,\n"
19363 "                     const char *path,\n"
19364 "                     const char *content,\n"
19365 "                     int size);\n"
19366 "\n"
19367 msgstr ""
19368
19369 # type: textblock
19370 #. type: textblock
19371 #: ../src/guestfs-actions.pod:7063 ../fish/guestfish-actions.pod:4693
19372 msgid ""
19373 "This call creates a file called C<path>.  The contents of the file is the "
19374 "string C<content> (which can contain any 8 bit data), with length C<size>."
19375 msgstr ""
19376
19377 # type: textblock
19378 #. type: textblock
19379 #: ../src/guestfs-actions.pod:7067 ../fish/guestfish-actions.pod:4697
19380 msgid ""
19381 "As a special case, if C<size> is C<0> then the length is calculated using "
19382 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19383 msgstr ""
19384
19385 # type: textblock
19386 #. type: textblock
19387 #: ../src/guestfs-actions.pod:7071 ../fish/guestfish-actions.pod:4701
19388 msgid ""
19389 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19390 "I<not> work, even if the length is specified."
19391 msgstr ""
19392
19393 # type: textblock
19394 #. type: textblock
19395 #: ../src/guestfs-actions.pod:7079 ../fish/guestfish-actions.pod:4707
19396 msgid ""
19397 "This function is deprecated.  In new code, use the C<write> call instead."
19398 msgstr ""
19399
19400 # type: =head2
19401 #. type: =head2
19402 #: ../src/guestfs-actions.pod:7088
19403 msgid "guestfs_zegrep"
19404 msgstr ""
19405
19406 # type: verbatim
19407 #. type: verbatim
19408 #: ../src/guestfs-actions.pod:7090
19409 #, no-wrap
19410 msgid ""
19411 " char **\n"
19412 " guestfs_zegrep (guestfs_h *g,\n"
19413 "                 const char *regex,\n"
19414 "                 const char *path);\n"
19415 "\n"
19416 msgstr ""
19417
19418 # type: textblock
19419 #. type: textblock
19420 #: ../src/guestfs-actions.pod:7095 ../fish/guestfish-actions.pod:4718
19421 msgid ""
19422 "This calls the external C<zegrep> program and returns the matching lines."
19423 msgstr ""
19424
19425 # type: =head2
19426 #. type: =head2
19427 #: ../src/guestfs-actions.pod:7107
19428 msgid "guestfs_zegrepi"
19429 msgstr ""
19430
19431 # type: verbatim
19432 #. type: verbatim
19433 #: ../src/guestfs-actions.pod:7109
19434 #, no-wrap
19435 msgid ""
19436 " char **\n"
19437 " guestfs_zegrepi (guestfs_h *g,\n"
19438 "                  const char *regex,\n"
19439 "                  const char *path);\n"
19440 "\n"
19441 msgstr ""
19442
19443 # type: textblock
19444 #. type: textblock
19445 #: ../src/guestfs-actions.pod:7114 ../fish/guestfish-actions.pod:4728
19446 msgid ""
19447 "This calls the external C<zegrep -i> program and returns the matching lines."
19448 msgstr ""
19449
19450 # type: =head2
19451 #. type: =head2
19452 #: ../src/guestfs-actions.pod:7126
19453 msgid "guestfs_zero"
19454 msgstr ""
19455
19456 # type: verbatim
19457 #. type: verbatim
19458 #: ../src/guestfs-actions.pod:7128
19459 #, no-wrap
19460 msgid ""
19461 " int\n"
19462 " guestfs_zero (guestfs_h *g,\n"
19463 "               const char *device);\n"
19464 "\n"
19465 msgstr ""
19466
19467 # type: textblock
19468 #. type: textblock
19469 #: ../src/guestfs-actions.pod:7132 ../fish/guestfish-actions.pod:4738
19470 msgid "This command writes zeroes over the first few blocks of C<device>."
19471 msgstr ""
19472
19473 # type: textblock
19474 #. type: textblock
19475 #: ../src/guestfs-actions.pod:7134 ../fish/guestfish-actions.pod:4740
19476 msgid ""
19477 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19478 "securely wipe the device).  It should be sufficient to remove any partition "
19479 "tables, filesystem superblocks and so on."
19480 msgstr ""
19481
19482 # type: textblock
19483 #. type: textblock
19484 #: ../src/guestfs-actions.pod:7138
19485 msgid "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>."
19486 msgstr ""
19487
19488 # type: =head2
19489 #. type: =head2
19490 #: ../src/guestfs-actions.pod:7149
19491 msgid "guestfs_zero_device"
19492 msgstr ""
19493
19494 # type: verbatim
19495 #. type: verbatim
19496 #: ../src/guestfs-actions.pod:7151
19497 #, no-wrap
19498 msgid ""
19499 " int\n"
19500 " guestfs_zero_device (guestfs_h *g,\n"
19501 "                      const char *device);\n"
19502 "\n"
19503 msgstr ""
19504
19505 # type: textblock
19506 #. type: textblock
19507 #: ../src/guestfs-actions.pod:7155
19508 msgid ""
19509 "This command writes zeroes over the entire C<device>.  Compare with "
19510 "C<guestfs_zero> which just zeroes the first few blocks of a device."
19511 msgstr ""
19512
19513 # type: textblock
19514 #. type: textblock
19515 #: ../src/guestfs-actions.pod:7169
19516 msgid "(Added in 1.3.1)"
19517 msgstr ""
19518
19519 # type: =head2
19520 #. type: =head2
19521 #: ../src/guestfs-actions.pod:7171
19522 msgid "guestfs_zerofree"
19523 msgstr ""
19524
19525 # type: verbatim
19526 #. type: verbatim
19527 #: ../src/guestfs-actions.pod:7173
19528 #, no-wrap
19529 msgid ""
19530 " int\n"
19531 " guestfs_zerofree (guestfs_h *g,\n"
19532 "                   const char *device);\n"
19533 "\n"
19534 msgstr ""
19535
19536 # type: textblock
19537 #. type: textblock
19538 #: ../src/guestfs-actions.pod:7177 ../fish/guestfish-actions.pod:4761
19539 msgid ""
19540 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19541 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19542 "possible to compress the filesystem more effectively."
19543 msgstr ""
19544
19545 # type: textblock
19546 #. type: textblock
19547 #: ../src/guestfs-actions.pod:7182 ../fish/guestfish-actions.pod:4766
19548 msgid "You should B<not> run this program if the filesystem is mounted."
19549 msgstr ""
19550
19551 # type: textblock
19552 #. type: textblock
19553 #: ../src/guestfs-actions.pod:7185 ../fish/guestfish-actions.pod:4769
19554 msgid ""
19555 "It is possible that using this program can damage the filesystem or data on "
19556 "the filesystem."
19557 msgstr ""
19558
19559 # type: =head2
19560 #. type: =head2
19561 #: ../src/guestfs-actions.pod:7192
19562 msgid "guestfs_zfgrep"
19563 msgstr ""
19564
19565 # type: verbatim
19566 #. type: verbatim
19567 #: ../src/guestfs-actions.pod:7194
19568 #, no-wrap
19569 msgid ""
19570 " char **\n"
19571 " guestfs_zfgrep (guestfs_h *g,\n"
19572 "                 const char *pattern,\n"
19573 "                 const char *path);\n"
19574 "\n"
19575 msgstr ""
19576
19577 # type: textblock
19578 #. type: textblock
19579 #: ../src/guestfs-actions.pod:7199 ../fish/guestfish-actions.pod:4776
19580 msgid ""
19581 "This calls the external C<zfgrep> program and returns the matching lines."
19582 msgstr ""
19583
19584 # type: =head2
19585 #. type: =head2
19586 #: ../src/guestfs-actions.pod:7211
19587 msgid "guestfs_zfgrepi"
19588 msgstr ""
19589
19590 # type: verbatim
19591 #. type: verbatim
19592 #: ../src/guestfs-actions.pod:7213
19593 #, no-wrap
19594 msgid ""
19595 " char **\n"
19596 " guestfs_zfgrepi (guestfs_h *g,\n"
19597 "                  const char *pattern,\n"
19598 "                  const char *path);\n"
19599 "\n"
19600 msgstr ""
19601
19602 # type: textblock
19603 #. type: textblock
19604 #: ../src/guestfs-actions.pod:7218 ../fish/guestfish-actions.pod:4786
19605 msgid ""
19606 "This calls the external C<zfgrep -i> program and returns the matching lines."
19607 msgstr ""
19608
19609 # type: =head2
19610 #. type: =head2
19611 #: ../src/guestfs-actions.pod:7230
19612 msgid "guestfs_zfile"
19613 msgstr ""
19614
19615 # type: verbatim
19616 #. type: verbatim
19617 #: ../src/guestfs-actions.pod:7232
19618 #, no-wrap
19619 msgid ""
19620 " char *\n"
19621 " guestfs_zfile (guestfs_h *g,\n"
19622 "                const char *meth,\n"
19623 "                const char *path);\n"
19624 "\n"
19625 msgstr ""
19626
19627 # type: textblock
19628 #. type: textblock
19629 #: ../src/guestfs-actions.pod:7237 ../fish/guestfish-actions.pod:4796
19630 msgid ""
19631 "This command runs C<file> after first decompressing C<path> using C<method>."
19632 msgstr ""
19633
19634 # type: textblock
19635 #. type: textblock
19636 #: ../src/guestfs-actions.pod:7240 ../fish/guestfish-actions.pod:4799
19637 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19638 msgstr ""
19639
19640 # type: textblock
19641 #. type: textblock
19642 #: ../src/guestfs-actions.pod:7242
19643 msgid ""
19644 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
19645 "files."
19646 msgstr ""
19647
19648 # type: textblock
19649 #. type: textblock
19650 #: ../src/guestfs-actions.pod:7248 ../fish/guestfish-actions.pod:4804
19651 msgid ""
19652 "This function is deprecated.  In new code, use the C<file> call instead."
19653 msgstr ""
19654
19655 # type: =head2
19656 #. type: =head2
19657 #: ../src/guestfs-actions.pod:7257
19658 msgid "guestfs_zgrep"
19659 msgstr ""
19660
19661 # type: verbatim
19662 #. type: verbatim
19663 #: ../src/guestfs-actions.pod:7259
19664 #, no-wrap
19665 msgid ""
19666 " char **\n"
19667 " guestfs_zgrep (guestfs_h *g,\n"
19668 "                const char *regex,\n"
19669 "                const char *path);\n"
19670 "\n"
19671 msgstr ""
19672
19673 # type: textblock
19674 #. type: textblock
19675 #: ../src/guestfs-actions.pod:7264 ../fish/guestfish-actions.pod:4815
19676 msgid ""
19677 "This calls the external C<zgrep> program and returns the matching lines."
19678 msgstr ""
19679
19680 # type: =head2
19681 #. type: =head2
19682 #: ../src/guestfs-actions.pod:7276
19683 msgid "guestfs_zgrepi"
19684 msgstr ""
19685
19686 # type: verbatim
19687 #. type: verbatim
19688 #: ../src/guestfs-actions.pod:7278
19689 #, no-wrap
19690 msgid ""
19691 " char **\n"
19692 " guestfs_zgrepi (guestfs_h *g,\n"
19693 "                 const char *regex,\n"
19694 "                 const char *path);\n"
19695 "\n"
19696 msgstr ""
19697
19698 # type: textblock
19699 #. type: textblock
19700 #: ../src/guestfs-actions.pod:7283 ../fish/guestfish-actions.pod:4825
19701 msgid ""
19702 "This calls the external C<zgrep -i> program and returns the matching lines."
19703 msgstr ""
19704
19705 # type: =item
19706 #. type: =item
19707 #: ../src/guestfs-availability.pod:3
19708 msgid "B<augeas>"
19709 msgstr ""
19710
19711 # type: textblock
19712 #. type: textblock
19713 #: ../src/guestfs-availability.pod:5
19714 msgid ""
19715 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
19716 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
19717 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
19718 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
19719 "L</guestfs_aug_save> L</guestfs_aug_set>"
19720 msgstr ""
19721
19722 # type: =item
19723 #. type: =item
19724 #: ../src/guestfs-availability.pod:21
19725 msgid "B<inotify>"
19726 msgstr ""
19727
19728 # type: textblock
19729 #. type: textblock
19730 #: ../src/guestfs-availability.pod:23
19731 msgid ""
19732 "The following functions: L</guestfs_inotify_add_watch> L</"
19733 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
19734 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
19735 msgstr ""
19736
19737 # type: =item
19738 #. type: =item
19739 #: ../src/guestfs-availability.pod:31
19740 msgid "B<linuxfsuuid>"
19741 msgstr ""
19742
19743 # type: textblock
19744 #. type: textblock
19745 #: ../src/guestfs-availability.pod:33
19746 msgid ""
19747 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
19748 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
19749 msgstr ""
19750
19751 # type: =item
19752 #. type: =item
19753 #: ../src/guestfs-availability.pod:40
19754 msgid "B<linuxmodules>"
19755 msgstr ""
19756
19757 # type: textblock
19758 #. type: textblock
19759 #: ../src/guestfs-availability.pod:42
19760 msgid "The following functions: L</guestfs_modprobe>"
19761 msgstr ""
19762
19763 # type: =item
19764 #. type: =item
19765 #: ../src/guestfs-availability.pod:45
19766 msgid "B<linuxxattrs>"
19767 msgstr ""
19768
19769 # type: textblock
19770 #. type: textblock
19771 #: ../src/guestfs-availability.pod:47
19772 msgid ""
19773 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
19774 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
19775 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
19776 "guestfs_setxattr>"
19777 msgstr ""
19778
19779 # type: =item
19780 #. type: =item
19781 #: ../src/guestfs-availability.pod:58
19782 msgid "B<luks>"
19783 msgstr ""
19784
19785 # type: textblock
19786 #. type: textblock
19787 #: ../src/guestfs-availability.pod:60
19788 msgid ""
19789 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
19790 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
19791 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
19792 msgstr ""
19793
19794 # type: =item
19795 #. type: =item
19796 #: ../src/guestfs-availability.pod:69
19797 msgid "B<lvm2>"
19798 msgstr ""
19799
19800 # type: textblock
19801 #. type: textblock
19802 #: ../src/guestfs-availability.pod:71
19803 msgid ""
19804 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
19805 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
19806 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
19807 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
19808 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
19809 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
19810 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
19811 msgstr ""
19812
19813 # type: =item
19814 #. type: =item
19815 #: ../src/guestfs-availability.pod:94
19816 msgid "B<mknod>"
19817 msgstr ""
19818
19819 # type: textblock
19820 #. type: textblock
19821 #: ../src/guestfs-availability.pod:96
19822 msgid ""
19823 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
19824 "guestfs_mknod_b> L</guestfs_mknod_c>"
19825 msgstr ""
19826
19827 # type: =item
19828 #. type: =item
19829 #: ../src/guestfs-availability.pod:102
19830 msgid "B<ntfs3g>"
19831 msgstr ""
19832
19833 # type: textblock
19834 #. type: textblock
19835 #: ../src/guestfs-availability.pod:104
19836 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
19837 msgstr ""
19838
19839 # type: =item
19840 #. type: =item
19841 #: ../src/guestfs-availability.pod:107
19842 msgid "B<ntfsprogs>"
19843 msgstr ""
19844
19845 # type: textblock
19846 #. type: textblock
19847 #: ../src/guestfs-availability.pod:109
19848 msgid ""
19849 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_size>"
19850 msgstr ""
19851
19852 # type: =item
19853 #. type: =item
19854 #: ../src/guestfs-availability.pod:113
19855 msgid "B<realpath>"
19856 msgstr ""
19857
19858 # type: textblock
19859 #. type: textblock
19860 #: ../src/guestfs-availability.pod:115
19861 msgid "The following functions: L</guestfs_realpath>"
19862 msgstr ""
19863
19864 # type: =item
19865 #. type: =item
19866 #: ../src/guestfs-availability.pod:118
19867 msgid "B<scrub>"
19868 msgstr ""
19869
19870 # type: textblock
19871 #. type: textblock
19872 #: ../src/guestfs-availability.pod:120
19873 msgid ""
19874 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
19875 "guestfs_scrub_freespace>"
19876 msgstr ""
19877
19878 # type: =item
19879 #. type: =item
19880 #: ../src/guestfs-availability.pod:125
19881 msgid "B<selinux>"
19882 msgstr ""
19883
19884 # type: textblock
19885 #. type: textblock
19886 #: ../src/guestfs-availability.pod:127
19887 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
19888 msgstr ""
19889
19890 # type: =item
19891 #. type: =item
19892 #: ../src/guestfs-availability.pod:131
19893 msgid "B<xz>"
19894 msgstr ""
19895
19896 # type: textblock
19897 #. type: textblock
19898 #: ../src/guestfs-availability.pod:133
19899 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
19900 msgstr ""
19901
19902 # type: =item
19903 #. type: =item
19904 #: ../src/guestfs-availability.pod:137
19905 msgid "B<zerofree>"
19906 msgstr ""
19907
19908 # type: textblock
19909 #. type: textblock
19910 #: ../src/guestfs-availability.pod:139
19911 msgid "The following functions: L</guestfs_zerofree>"
19912 msgstr ""
19913
19914 # type: =head2
19915 #. type: =head2
19916 #: ../src/guestfs-structs.pod:1
19917 msgid "guestfs_int_bool"
19918 msgstr ""
19919
19920 # type: verbatim
19921 #. type: verbatim
19922 #: ../src/guestfs-structs.pod:3
19923 #, no-wrap
19924 msgid ""
19925 " struct guestfs_int_bool {\n"
19926 "   int32_t i;\n"
19927 "   int32_t b;\n"
19928 " };\n"
19929 " \n"
19930 msgstr ""
19931
19932 # type: verbatim
19933 #. type: verbatim
19934 #: ../src/guestfs-structs.pod:8
19935 #, no-wrap
19936 msgid ""
19937 " struct guestfs_int_bool_list {\n"
19938 "   uint32_t len; /* Number of elements in list. */\n"
19939 "   struct guestfs_int_bool *val; /* Elements. */\n"
19940 " };\n"
19941 " \n"
19942 msgstr ""
19943
19944 # type: verbatim
19945 #. type: verbatim
19946 #: ../src/guestfs-structs.pod:13
19947 #, no-wrap
19948 msgid ""
19949 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
19950 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
19951 "\n"
19952 msgstr ""
19953
19954 # type: =head2
19955 #. type: =head2
19956 #: ../src/guestfs-structs.pod:16
19957 msgid "guestfs_lvm_pv"
19958 msgstr ""
19959
19960 # type: verbatim
19961 #. type: verbatim
19962 #: ../src/guestfs-structs.pod:18
19963 #, no-wrap
19964 msgid ""
19965 " struct guestfs_lvm_pv {\n"
19966 "   char *pv_name;\n"
19967 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
19968 "   char pv_uuid[32];\n"
19969 "   char *pv_fmt;\n"
19970 "   uint64_t pv_size;\n"
19971 "   uint64_t dev_size;\n"
19972 "   uint64_t pv_free;\n"
19973 "   uint64_t pv_used;\n"
19974 "   char *pv_attr;\n"
19975 "   int64_t pv_pe_count;\n"
19976 "   int64_t pv_pe_alloc_count;\n"
19977 "   char *pv_tags;\n"
19978 "   uint64_t pe_start;\n"
19979 "   int64_t pv_mda_count;\n"
19980 "   uint64_t pv_mda_free;\n"
19981 " };\n"
19982 " \n"
19983 msgstr ""
19984
19985 # type: verbatim
19986 #. type: verbatim
19987 #: ../src/guestfs-structs.pod:36
19988 #, no-wrap
19989 msgid ""
19990 " struct guestfs_lvm_pv_list {\n"
19991 "   uint32_t len; /* Number of elements in list. */\n"
19992 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
19993 " };\n"
19994 " \n"
19995 msgstr ""
19996
19997 # type: verbatim
19998 #. type: verbatim
19999 #: ../src/guestfs-structs.pod:41
20000 #, no-wrap
20001 msgid ""
20002 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
20003 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
20004 "\n"
20005 msgstr ""
20006
20007 # type: =head2
20008 #. type: =head2
20009 #: ../src/guestfs-structs.pod:44
20010 msgid "guestfs_lvm_vg"
20011 msgstr ""
20012
20013 # type: verbatim
20014 #. type: verbatim
20015 #: ../src/guestfs-structs.pod:46
20016 #, no-wrap
20017 msgid ""
20018 " struct guestfs_lvm_vg {\n"
20019 "   char *vg_name;\n"
20020 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20021 "   char vg_uuid[32];\n"
20022 "   char *vg_fmt;\n"
20023 "   char *vg_attr;\n"
20024 "   uint64_t vg_size;\n"
20025 "   uint64_t vg_free;\n"
20026 "   char *vg_sysid;\n"
20027 "   uint64_t vg_extent_size;\n"
20028 "   int64_t vg_extent_count;\n"
20029 "   int64_t vg_free_count;\n"
20030 "   int64_t max_lv;\n"
20031 "   int64_t max_pv;\n"
20032 "   int64_t pv_count;\n"
20033 "   int64_t lv_count;\n"
20034 "   int64_t snap_count;\n"
20035 "   int64_t vg_seqno;\n"
20036 "   char *vg_tags;\n"
20037 "   int64_t vg_mda_count;\n"
20038 "   uint64_t vg_mda_free;\n"
20039 " };\n"
20040 " \n"
20041 msgstr ""
20042
20043 # type: verbatim
20044 #. type: verbatim
20045 #: ../src/guestfs-structs.pod:69
20046 #, no-wrap
20047 msgid ""
20048 " struct guestfs_lvm_vg_list {\n"
20049 "   uint32_t len; /* Number of elements in list. */\n"
20050 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
20051 " };\n"
20052 " \n"
20053 msgstr ""
20054
20055 # type: verbatim
20056 #. type: verbatim
20057 #: ../src/guestfs-structs.pod:74
20058 #, no-wrap
20059 msgid ""
20060 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
20061 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
20062 "\n"
20063 msgstr ""
20064
20065 # type: =head2
20066 #. type: =head2
20067 #: ../src/guestfs-structs.pod:77
20068 msgid "guestfs_lvm_lv"
20069 msgstr ""
20070
20071 # type: verbatim
20072 #. type: verbatim
20073 #: ../src/guestfs-structs.pod:79
20074 #, no-wrap
20075 msgid ""
20076 " struct guestfs_lvm_lv {\n"
20077 "   char *lv_name;\n"
20078 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
20079 "   char lv_uuid[32];\n"
20080 "   char *lv_attr;\n"
20081 "   int64_t lv_major;\n"
20082 "   int64_t lv_minor;\n"
20083 "   int64_t lv_kernel_major;\n"
20084 "   int64_t lv_kernel_minor;\n"
20085 "   uint64_t lv_size;\n"
20086 "   int64_t seg_count;\n"
20087 "   char *origin;\n"
20088 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20089 "   float snap_percent;\n"
20090 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
20091 "   float copy_percent;\n"
20092 "   char *move_pv;\n"
20093 "   char *lv_tags;\n"
20094 "   char *mirror_log;\n"
20095 "   char *modules;\n"
20096 " };\n"
20097 " \n"
20098 msgstr ""
20099
20100 # type: verbatim
20101 #. type: verbatim
20102 #: ../src/guestfs-structs.pod:101
20103 #, no-wrap
20104 msgid ""
20105 " struct guestfs_lvm_lv_list {\n"
20106 "   uint32_t len; /* Number of elements in list. */\n"
20107 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
20108 " };\n"
20109 " \n"
20110 msgstr ""
20111
20112 # type: verbatim
20113 #. type: verbatim
20114 #: ../src/guestfs-structs.pod:106
20115 #, no-wrap
20116 msgid ""
20117 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
20118 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
20119 "\n"
20120 msgstr ""
20121
20122 # type: verbatim
20123 #. type: verbatim
20124 #: ../src/guestfs-structs.pod:111
20125 #, no-wrap
20126 msgid ""
20127 " struct guestfs_stat {\n"
20128 "   int64_t dev;\n"
20129 "   int64_t ino;\n"
20130 "   int64_t mode;\n"
20131 "   int64_t nlink;\n"
20132 "   int64_t uid;\n"
20133 "   int64_t gid;\n"
20134 "   int64_t rdev;\n"
20135 "   int64_t size;\n"
20136 "   int64_t blksize;\n"
20137 "   int64_t blocks;\n"
20138 "   int64_t atime;\n"
20139 "   int64_t mtime;\n"
20140 "   int64_t ctime;\n"
20141 " };\n"
20142 " \n"
20143 msgstr ""
20144
20145 # type: verbatim
20146 #. type: verbatim
20147 #: ../src/guestfs-structs.pod:127
20148 #, no-wrap
20149 msgid ""
20150 " struct guestfs_stat_list {\n"
20151 "   uint32_t len; /* Number of elements in list. */\n"
20152 "   struct guestfs_stat *val; /* Elements. */\n"
20153 " };\n"
20154 " \n"
20155 msgstr ""
20156
20157 # type: verbatim
20158 #. type: verbatim
20159 #: ../src/guestfs-structs.pod:132
20160 #, no-wrap
20161 msgid ""
20162 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
20163 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
20164 "\n"
20165 msgstr ""
20166
20167 # type: verbatim
20168 #. type: verbatim
20169 #: ../src/guestfs-structs.pod:137
20170 #, no-wrap
20171 msgid ""
20172 " struct guestfs_statvfs {\n"
20173 "   int64_t bsize;\n"
20174 "   int64_t frsize;\n"
20175 "   int64_t blocks;\n"
20176 "   int64_t bfree;\n"
20177 "   int64_t bavail;\n"
20178 "   int64_t files;\n"
20179 "   int64_t ffree;\n"
20180 "   int64_t favail;\n"
20181 "   int64_t fsid;\n"
20182 "   int64_t flag;\n"
20183 "   int64_t namemax;\n"
20184 " };\n"
20185 " \n"
20186 msgstr ""
20187
20188 # type: verbatim
20189 #. type: verbatim
20190 #: ../src/guestfs-structs.pod:151
20191 #, no-wrap
20192 msgid ""
20193 " struct guestfs_statvfs_list {\n"
20194 "   uint32_t len; /* Number of elements in list. */\n"
20195 "   struct guestfs_statvfs *val; /* Elements. */\n"
20196 " };\n"
20197 " \n"
20198 msgstr ""
20199
20200 # type: verbatim
20201 #. type: verbatim
20202 #: ../src/guestfs-structs.pod:156
20203 #, no-wrap
20204 msgid ""
20205 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
20206 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
20207 "\n"
20208 msgstr ""
20209
20210 # type: =head2
20211 #. type: =head2
20212 #: ../src/guestfs-structs.pod:159
20213 msgid "guestfs_dirent"
20214 msgstr ""
20215
20216 # type: verbatim
20217 #. type: verbatim
20218 #: ../src/guestfs-structs.pod:161
20219 #, no-wrap
20220 msgid ""
20221 " struct guestfs_dirent {\n"
20222 "   int64_t ino;\n"
20223 "   char ftyp;\n"
20224 "   char *name;\n"
20225 " };\n"
20226 " \n"
20227 msgstr ""
20228
20229 # type: verbatim
20230 #. type: verbatim
20231 #: ../src/guestfs-structs.pod:167
20232 #, no-wrap
20233 msgid ""
20234 " struct guestfs_dirent_list {\n"
20235 "   uint32_t len; /* Number of elements in list. */\n"
20236 "   struct guestfs_dirent *val; /* Elements. */\n"
20237 " };\n"
20238 " \n"
20239 msgstr ""
20240
20241 # type: verbatim
20242 #. type: verbatim
20243 #: ../src/guestfs-structs.pod:172
20244 #, no-wrap
20245 msgid ""
20246 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
20247 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
20248 "\n"
20249 msgstr ""
20250
20251 # type: verbatim
20252 #. type: verbatim
20253 #: ../src/guestfs-structs.pod:177
20254 #, no-wrap
20255 msgid ""
20256 " struct guestfs_version {\n"
20257 "   int64_t major;\n"
20258 "   int64_t minor;\n"
20259 "   int64_t release;\n"
20260 "   char *extra;\n"
20261 " };\n"
20262 " \n"
20263 msgstr ""
20264
20265 # type: verbatim
20266 #. type: verbatim
20267 #: ../src/guestfs-structs.pod:184
20268 #, no-wrap
20269 msgid ""
20270 " struct guestfs_version_list {\n"
20271 "   uint32_t len; /* Number of elements in list. */\n"
20272 "   struct guestfs_version *val; /* Elements. */\n"
20273 " };\n"
20274 " \n"
20275 msgstr ""
20276
20277 # type: verbatim
20278 #. type: verbatim
20279 #: ../src/guestfs-structs.pod:189
20280 #, no-wrap
20281 msgid ""
20282 " void guestfs_free_version (struct guestfs_free_version *);\n"
20283 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
20284 "\n"
20285 msgstr ""
20286
20287 # type: =head2
20288 #. type: =head2
20289 #: ../src/guestfs-structs.pod:192
20290 msgid "guestfs_xattr"
20291 msgstr ""
20292
20293 # type: verbatim
20294 #. type: verbatim
20295 #: ../src/guestfs-structs.pod:194
20296 #, no-wrap
20297 msgid ""
20298 " struct guestfs_xattr {\n"
20299 "   char *attrname;\n"
20300 "   /* The next two fields describe a byte array. */\n"
20301 "   uint32_t attrval_len;\n"
20302 "   char *attrval;\n"
20303 " };\n"
20304 " \n"
20305 msgstr ""
20306
20307 # type: verbatim
20308 #. type: verbatim
20309 #: ../src/guestfs-structs.pod:201
20310 #, no-wrap
20311 msgid ""
20312 " struct guestfs_xattr_list {\n"
20313 "   uint32_t len; /* Number of elements in list. */\n"
20314 "   struct guestfs_xattr *val; /* Elements. */\n"
20315 " };\n"
20316 " \n"
20317 msgstr ""
20318
20319 # type: verbatim
20320 #. type: verbatim
20321 #: ../src/guestfs-structs.pod:206
20322 #, no-wrap
20323 msgid ""
20324 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
20325 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
20326 "\n"
20327 msgstr ""
20328
20329 # type: =head2
20330 #. type: =head2
20331 #: ../src/guestfs-structs.pod:209
20332 msgid "guestfs_inotify_event"
20333 msgstr ""
20334
20335 # type: verbatim
20336 #. type: verbatim
20337 #: ../src/guestfs-structs.pod:211
20338 #, no-wrap
20339 msgid ""
20340 " struct guestfs_inotify_event {\n"
20341 "   int64_t in_wd;\n"
20342 "   uint32_t in_mask;\n"
20343 "   uint32_t in_cookie;\n"
20344 "   char *in_name;\n"
20345 " };\n"
20346 " \n"
20347 msgstr ""
20348
20349 # type: verbatim
20350 #. type: verbatim
20351 #: ../src/guestfs-structs.pod:218
20352 #, no-wrap
20353 msgid ""
20354 " struct guestfs_inotify_event_list {\n"
20355 "   uint32_t len; /* Number of elements in list. */\n"
20356 "   struct guestfs_inotify_event *val; /* Elements. */\n"
20357 " };\n"
20358 " \n"
20359 msgstr ""
20360
20361 # type: verbatim
20362 #. type: verbatim
20363 #: ../src/guestfs-structs.pod:223
20364 #, no-wrap
20365 msgid ""
20366 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
20367 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
20368 "\n"
20369 msgstr ""
20370
20371 # type: =head2
20372 #. type: =head2
20373 #: ../src/guestfs-structs.pod:226
20374 msgid "guestfs_partition"
20375 msgstr ""
20376
20377 # type: verbatim
20378 #. type: verbatim
20379 #: ../src/guestfs-structs.pod:228
20380 #, no-wrap
20381 msgid ""
20382 " struct guestfs_partition {\n"
20383 "   int32_t part_num;\n"
20384 "   uint64_t part_start;\n"
20385 "   uint64_t part_end;\n"
20386 "   uint64_t part_size;\n"
20387 " };\n"
20388 " \n"
20389 msgstr ""
20390
20391 # type: verbatim
20392 #. type: verbatim
20393 #: ../src/guestfs-structs.pod:235
20394 #, no-wrap
20395 msgid ""
20396 " struct guestfs_partition_list {\n"
20397 "   uint32_t len; /* Number of elements in list. */\n"
20398 "   struct guestfs_partition *val; /* Elements. */\n"
20399 " };\n"
20400 " \n"
20401 msgstr ""
20402
20403 # type: verbatim
20404 #. type: verbatim
20405 #: ../src/guestfs-structs.pod:240
20406 #, no-wrap
20407 msgid ""
20408 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
20409 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
20410 "\n"
20411 msgstr ""
20412
20413 # type: =head2
20414 #. type: =head2
20415 #: ../src/guestfs-structs.pod:243
20416 msgid "guestfs_application"
20417 msgstr ""
20418
20419 # type: verbatim
20420 #. type: verbatim
20421 #: ../src/guestfs-structs.pod:245
20422 #, no-wrap
20423 msgid ""
20424 " struct guestfs_application {\n"
20425 "   char *app_name;\n"
20426 "   char *app_display_name;\n"
20427 "   int32_t app_epoch;\n"
20428 "   char *app_version;\n"
20429 "   char *app_release;\n"
20430 "   char *app_install_path;\n"
20431 "   char *app_trans_path;\n"
20432 "   char *app_publisher;\n"
20433 "   char *app_url;\n"
20434 "   char *app_source_package;\n"
20435 "   char *app_summary;\n"
20436 "   char *app_description;\n"
20437 " };\n"
20438 " \n"
20439 msgstr ""
20440
20441 # type: verbatim
20442 #. type: verbatim
20443 #: ../src/guestfs-structs.pod:260
20444 #, no-wrap
20445 msgid ""
20446 " struct guestfs_application_list {\n"
20447 "   uint32_t len; /* Number of elements in list. */\n"
20448 "   struct guestfs_application *val; /* Elements. */\n"
20449 " };\n"
20450 " \n"
20451 msgstr ""
20452
20453 # type: verbatim
20454 #. type: verbatim
20455 #: ../src/guestfs-structs.pod:265
20456 #, no-wrap
20457 msgid ""
20458 " void guestfs_free_application (struct guestfs_free_application *);\n"
20459 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
20460 "\n"
20461 msgstr ""
20462
20463 # type: textblock
20464 #. type: textblock
20465 #: ../fish/guestfish.pod:5
20466 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
20467 msgstr ""
20468
20469 # type: verbatim
20470 #. type: verbatim
20471 #: ../fish/guestfish.pod:9
20472 #, no-wrap
20473 msgid ""
20474 " guestfish [--options] [commands]\n"
20475 "\n"
20476 msgstr ""
20477
20478 # type: verbatim
20479 #. type: verbatim
20480 #: ../fish/guestfish.pod:11
20481 #, no-wrap
20482 msgid ""
20483 " guestfish\n"
20484 "\n"
20485 msgstr ""
20486
20487 # type: verbatim
20488 #. type: verbatim
20489 #: ../fish/guestfish.pod:13
20490 #, no-wrap
20491 msgid ""
20492 " guestfish [--ro|--rw] -a disk.img\n"
20493 "\n"
20494 msgstr ""
20495
20496 # type: verbatim
20497 #. type: verbatim
20498 #: ../fish/guestfish.pod:15
20499 #, no-wrap
20500 msgid ""
20501 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
20502 "\n"
20503 msgstr ""
20504
20505 # type: verbatim
20506 #. type: verbatim
20507 #: ../fish/guestfish.pod:17
20508 #, no-wrap
20509 msgid ""
20510 " guestfish -d libvirt-domain\n"
20511 "\n"
20512 msgstr ""
20513
20514 # type: verbatim
20515 #. type: verbatim
20516 #: ../fish/guestfish.pod:19
20517 #, no-wrap
20518 msgid ""
20519 " guestfish [--ro|--rw] -a disk.img -i\n"
20520 "\n"
20521 msgstr ""
20522
20523 # type: verbatim
20524 #. type: verbatim
20525 #: ../fish/guestfish.pod:21
20526 #, no-wrap
20527 msgid ""
20528 " guestfish -d libvirt-domain -i\n"
20529 "\n"
20530 msgstr ""
20531
20532 # type: =head1
20533 #. type: =head1
20534 #: ../fish/guestfish.pod:23 ../fuse/guestmount.pod:15 ../tools/virt-edit.pl:44
20535 #: ../tools/virt-win-reg.pl:51 ../tools/virt-tar.pl:64
20536 msgid "WARNING"
20537 msgstr ""
20538
20539 # type: textblock
20540 #. type: textblock
20541 #: ../fish/guestfish.pod:25
20542 msgid ""
20543 "Using guestfish in read/write mode on live virtual machines can be "
20544 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20545 "option to use guestfish safely if the disk image or virtual machine might be "
20546 "live."
20547 msgstr ""
20548
20549 # type: textblock
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:32
20552 msgid ""
20553 "Guestfish is a shell and command-line tool for examining and modifying "
20554 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20555 "functionality of the guestfs API, see L<guestfs(3)>."
20556 msgstr ""
20557
20558 # type: textblock
20559 #. type: textblock
20560 #: ../fish/guestfish.pod:36
20561 msgid ""
20562 "Guestfish gives you structured access to the libguestfs API, from shell "
20563 "scripts or the command line or interactively.  If you want to rescue a "
20564 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20565 "command."
20566 msgstr ""
20567
20568 # type: =head1
20569 #. type: =head1
20570 #: ../fish/guestfish.pod:41 ../fish/guestfish.pod:923
20571 #: ../fuse/guestmount.pod:39 ../tools/virt-edit.pl:58
20572 #: ../tools/virt-resize.pl:64 ../tools/virt-tar.pl:50
20573 msgid "EXAMPLES"
20574 msgstr ""
20575
20576 # type: =head2
20577 #. type: =head2
20578 #: ../fish/guestfish.pod:43
20579 msgid "As an interactive shell"
20580 msgstr ""
20581
20582 # type: verbatim
20583 #. type: verbatim
20584 #: ../fish/guestfish.pod:45
20585 #, no-wrap
20586 msgid ""
20587 " $ guestfish\n"
20588 " \n"
20589 msgstr ""
20590
20591 # type: verbatim
20592 #. type: verbatim
20593 #: ../fish/guestfish.pod:47
20594 #, no-wrap
20595 msgid ""
20596 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20597 " editing virtual machine filesystems.\n"
20598 " \n"
20599 msgstr ""
20600
20601 # type: verbatim
20602 #. type: verbatim
20603 #: ../fish/guestfish.pod:50
20604 #, no-wrap
20605 msgid ""
20606 " Type: 'help' for a list of commands\n"
20607 "       'man' to read the manual\n"
20608 "       'quit' to quit the shell\n"
20609 " \n"
20610 msgstr ""
20611
20612 # type: verbatim
20613 #. type: verbatim
20614 #: ../fish/guestfish.pod:54
20615 #, no-wrap
20616 msgid ""
20617 " ><fs> add-ro disk.img\n"
20618 " ><fs> run\n"
20619 " ><fs> list-filesystems\n"
20620 " /dev/sda1: ext4\n"
20621 " /dev/vg_guest/lv_root: ext4\n"
20622 " /dev/vg_guest/lv_swap: swap\n"
20623 " ><fs> mount /dev/vg_guest/lv_root /\n"
20624 " ><fs> cat /etc/fstab\n"
20625 " # /etc/fstab\n"
20626 " # Created by anaconda\n"
20627 " [...]\n"
20628 " ><fs> exit\n"
20629 "\n"
20630 msgstr ""
20631
20632 # type: =head2
20633 #. type: =head2
20634 #: ../fish/guestfish.pod:67
20635 msgid "From shell scripts"
20636 msgstr ""
20637
20638 # type: textblock
20639 #. type: textblock
20640 #: ../fish/guestfish.pod:69
20641 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20642 msgstr ""
20643
20644 # type: verbatim
20645 #. type: verbatim
20646 #: ../fish/guestfish.pod:71
20647 #, no-wrap
20648 msgid ""
20649 " guestfish <<_EOF_\n"
20650 " add disk.img\n"
20651 " run\n"
20652 " mount /dev/vg_guest/lv_root /\n"
20653 " write /etc/motd \"Welcome, new users\"\n"
20654 " _EOF_\n"
20655 "\n"
20656 msgstr ""
20657
20658 # type: textblock
20659 #. type: textblock
20660 #: ../fish/guestfish.pod:78
20661 msgid "List the LVM logical volumes in a disk image:"
20662 msgstr ""
20663
20664 # type: verbatim
20665 #. type: verbatim
20666 #: ../fish/guestfish.pod:80
20667 #, no-wrap
20668 msgid ""
20669 " guestfish -a disk.img --ro <<_EOF_\n"
20670 " run\n"
20671 " lvs\n"
20672 " _EOF_\n"
20673 "\n"
20674 msgstr ""
20675
20676 # type: textblock
20677 #. type: textblock
20678 #: ../fish/guestfish.pod:85
20679 msgid "List all the filesystems in a disk image:"
20680 msgstr ""
20681
20682 # type: verbatim
20683 #. type: verbatim
20684 #: ../fish/guestfish.pod:87
20685 #, no-wrap
20686 msgid ""
20687 " guestfish -a disk.img --ro <<_EOF_\n"
20688 " run\n"
20689 " list-filesystems\n"
20690 " _EOF_\n"
20691 "\n"
20692 msgstr ""
20693
20694 # type: =head2
20695 #. type: =head2
20696 #: ../fish/guestfish.pod:92
20697 msgid "On one command line"
20698 msgstr ""
20699
20700 # type: textblock
20701 #. type: textblock
20702 #: ../fish/guestfish.pod:94
20703 msgid "Update C</etc/resolv.conf> in a guest:"
20704 msgstr ""
20705
20706 # type: verbatim
20707 #. type: verbatim
20708 #: ../fish/guestfish.pod:96
20709 #, no-wrap
20710 msgid ""
20711 " guestfish \\\n"
20712 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20713 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20714 "\n"
20715 msgstr ""
20716
20717 # type: textblock
20718 #. type: textblock
20719 #: ../fish/guestfish.pod:100
20720 msgid "Edit C</boot/grub/grub.conf> interactively:"
20721 msgstr ""
20722
20723 # type: verbatim
20724 #. type: verbatim
20725 #: ../fish/guestfish.pod:102
20726 #, no-wrap
20727 msgid ""
20728 " guestfish --rw --add disk.img \\\n"
20729 "   --mount /dev/vg_guest/lv_root \\\n"
20730 "   --mount /dev/sda1:/boot \\\n"
20731 "   edit /boot/grub/grub.conf\n"
20732 "\n"
20733 msgstr ""
20734
20735 # type: =head2
20736 #. type: =head2
20737 #: ../fish/guestfish.pod:107
20738 msgid "Mount disks automatically"
20739 msgstr ""
20740
20741 # type: textblock
20742 #. type: textblock
20743 #: ../fish/guestfish.pod:109
20744 msgid ""
20745 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20746 msgstr ""
20747
20748 # type: verbatim
20749 #. type: verbatim
20750 #: ../fish/guestfish.pod:112
20751 #, no-wrap
20752 msgid ""
20753 " guestfish --ro -a disk.img -i cat /etc/group\n"
20754 "\n"
20755 msgstr ""
20756
20757 # type: verbatim
20758 #. type: verbatim
20759 #: ../fish/guestfish.pod:114
20760 #, no-wrap
20761 msgid ""
20762 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20763 "\n"
20764 msgstr ""
20765
20766 # type: textblock
20767 #. type: textblock
20768 #: ../fish/guestfish.pod:116
20769 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20770 msgstr ""
20771
20772 # type: verbatim
20773 #. type: verbatim
20774 #: ../fish/guestfish.pod:118
20775 #, no-wrap
20776 msgid ""
20777 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20778 "\n"
20779 msgstr ""
20780
20781 # type: =head2
20782 #. type: =head2
20783 #: ../fish/guestfish.pod:120
20784 msgid "As a script interpreter"
20785 msgstr ""
20786
20787 # type: textblock
20788 #. type: textblock
20789 #: ../fish/guestfish.pod:122
20790 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20791 msgstr ""
20792
20793 # type: verbatim
20794 #. type: verbatim
20795 #: ../fish/guestfish.pod:124
20796 #, no-wrap
20797 msgid ""
20798 " #!/usr/bin/guestfish -f\n"
20799 " sparse test1.img 100M\n"
20800 " run\n"
20801 " part-disk /dev/sda mbr\n"
20802 " mkfs ext2 /dev/sda1\n"
20803 "\n"
20804 msgstr ""
20805
20806 # type: =head2
20807 #. type: =head2
20808 #: ../fish/guestfish.pod:130
20809 msgid "Start with a prepared disk"
20810 msgstr ""
20811
20812 # type: textblock
20813 #. type: textblock
20814 #: ../fish/guestfish.pod:132
20815 msgid ""
20816 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20817 "single ext2-formatted partition:"
20818 msgstr ""
20819
20820 # type: verbatim
20821 #. type: verbatim
20822 #: ../fish/guestfish.pod:135
20823 #, no-wrap
20824 msgid ""
20825 " guestfish -N fs\n"
20826 "\n"
20827 msgstr ""
20828
20829 # type: textblock
20830 #. type: textblock
20831 #: ../fish/guestfish.pod:137
20832 msgid "To list what is available do:"
20833 msgstr ""
20834
20835 # type: verbatim
20836 #. type: verbatim
20837 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:914
20838 #, no-wrap
20839 msgid ""
20840 " guestfish -N help | less\n"
20841 "\n"
20842 msgstr ""
20843
20844 # type: =head2
20845 #. type: =head2
20846 #: ../fish/guestfish.pod:141
20847 msgid "Remote control"
20848 msgstr ""
20849
20850 # type: verbatim
20851 #. type: verbatim
20852 #: ../fish/guestfish.pod:143
20853 #, no-wrap
20854 msgid ""
20855 " eval \"`guestfish --listen`\"\n"
20856 " guestfish --remote add-ro disk.img\n"
20857 " guestfish --remote run\n"
20858 " guestfish --remote lvs\n"
20859 "\n"
20860 msgstr ""
20861
20862 # type: =head1
20863 #. type: =head1
20864 #: ../fish/guestfish.pod:148 ../test-tool/libguestfs-test-tool.pod:37
20865 #: ../fuse/guestmount.pod:73 ../tools/virt-edit.pl:72
20866 #: ../tools/virt-win-reg.pl:96 ../tools/virt-resize.pl:254
20867 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-tar.pl:103
20868 #: ../tools/virt-make-fs.pl:153 ../tools/virt-list-partitions.pl:54
20869 msgid "OPTIONS"
20870 msgstr ""
20871
20872 # type: =item
20873 #. type: =item
20874 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:131
20875 #: ../tools/virt-edit.pl:80 ../tools/virt-win-reg.pl:104
20876 #: ../tools/virt-resize.pl:262 ../tools/virt-list-filesystems.pl:61
20877 #: ../tools/virt-tar.pl:111 ../tools/virt-make-fs.pl:161
20878 #: ../tools/virt-list-partitions.pl:62
20879 msgid "B<--help>"
20880 msgstr ""
20881
20882 # type: textblock
20883 #. type: textblock
20884 #: ../fish/guestfish.pod:154
20885 msgid "Displays general help on options."
20886 msgstr ""
20887
20888 # type: =item
20889 #. type: =item
20890 #: ../fish/guestfish.pod:156
20891 msgid "B<-h>"
20892 msgstr ""
20893
20894 # type: =item
20895 #. type: =item
20896 #: ../fish/guestfish.pod:158
20897 msgid "B<--cmd-help>"
20898 msgstr ""
20899
20900 # type: textblock
20901 #. type: textblock
20902 #: ../fish/guestfish.pod:160
20903 msgid "Lists all available guestfish commands."
20904 msgstr ""
20905
20906 # type: =item
20907 #. type: =item
20908 #: ../fish/guestfish.pod:162
20909 msgid "B<-h cmd>"
20910 msgstr ""
20911
20912 # type: =item
20913 #. type: =item
20914 #: ../fish/guestfish.pod:164
20915 msgid "B<--cmd-help cmd>"
20916 msgstr ""
20917
20918 # type: textblock
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:166
20921 msgid "Displays detailed help on a single command C<cmd>."
20922 msgstr ""
20923
20924 # type: =item
20925 #. type: =item
20926 #: ../fish/guestfish.pod:168
20927 msgid "B<-a image>"
20928 msgstr ""
20929
20930 # type: =item
20931 #. type: =item
20932 #: ../fish/guestfish.pod:170
20933 msgid "B<--add image>"
20934 msgstr ""
20935
20936 # type: textblock
20937 #. type: textblock
20938 #: ../fish/guestfish.pod:172
20939 msgid "Add a block device or virtual machine image to the shell."
20940 msgstr ""
20941
20942 # type: textblock
20943 #. type: textblock
20944 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:81
20945 msgid ""
20946 "The format of the disk image is auto-detected.  To override this and force a "
20947 "particular format use the I<--format=..> option."
20948 msgstr ""
20949
20950 # type: textblock
20951 #. type: textblock
20952 #: ../fish/guestfish.pod:177
20953 msgid ""
20954 "Using this flag is mostly equivalent to using the C<add> command, with "
20955 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20956 "the I<--format:...> flag was given."
20957 msgstr ""
20958
20959 # type: =item
20960 #. type: =item
20961 #: ../fish/guestfish.pod:181
20962 msgid "B<-c URI>"
20963 msgstr ""
20964
20965 # type: =item
20966 #. type: =item
20967 #: ../fish/guestfish.pod:183
20968 msgid "B<--connect URI>"
20969 msgstr ""
20970
20971 # type: textblock
20972 #. type: textblock
20973 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:86
20974 msgid ""
20975 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20976 "URI to use.  The default is to use the default libvirt connection."
20977 msgstr ""
20978
20979 # type: =item
20980 #. type: =item
20981 #: ../fish/guestfish.pod:189
20982 msgid "B<--csh>"
20983 msgstr ""
20984
20985 # type: textblock
20986 #. type: textblock
20987 #: ../fish/guestfish.pod:191
20988 msgid ""
20989 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20990 "section L</REMOTE CONTROL AND CSH> below."
20991 msgstr ""
20992
20993 # type: =item
20994 #. type: =item
20995 #: ../fish/guestfish.pod:194
20996 msgid "B<-d libvirt-domain>"
20997 msgstr ""
20998
20999 # type: =item
21000 #. type: =item
21001 #: ../fish/guestfish.pod:196
21002 msgid "B<--domain libvirt-domain>"
21003 msgstr ""
21004
21005 # type: textblock
21006 #. type: textblock
21007 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:92
21008 msgid ""
21009 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
21010 "used, then any libvirt domain can be used.  However in write mode, only "
21011 "libvirt domains which are shut down can be named here."
21012 msgstr ""
21013
21014 # type: textblock
21015 #. type: textblock
21016 #: ../fish/guestfish.pod:202
21017 msgid ""
21018 "Using this flag is mostly equivalent to using the C<add-domain> command, "
21019 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
21020 "if the I<--format:...> flag was given."
21021 msgstr ""
21022
21023 # type: =item
21024 #. type: =item
21025 #: ../fish/guestfish.pod:206
21026 msgid "B<-D>"
21027 msgstr ""
21028
21029 # type: =item
21030 #. type: =item
21031 #: ../fish/guestfish.pod:208
21032 msgid "B<--no-dest-paths>"
21033 msgstr ""
21034
21035 # type: textblock
21036 #. type: textblock
21037 #: ../fish/guestfish.pod:210
21038 msgid ""
21039 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
21040 "to hit the tab key to complete paths on the guest filesystem, but this "
21041 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
21042 "allow this feature to be disabled."
21043 msgstr ""
21044
21045 # type: =item
21046 #. type: =item
21047 #: ../fish/guestfish.pod:215 ../fuse/guestmount.pod:108
21048 msgid "B<--echo-keys>"
21049 msgstr ""
21050
21051 # type: textblock
21052 #. type: textblock
21053 #: ../fish/guestfish.pod:217 ../fuse/guestmount.pod:110
21054 msgid ""
21055 "When prompting for keys and passphrases, guestfish normally turns echoing "
21056 "off so you cannot see what you are typing.  If you are not worried about "
21057 "Tempest attacks and there is no one else in the room you can specify this "
21058 "flag to see what you are typing."
21059 msgstr ""
21060
21061 # type: =item
21062 #. type: =item
21063 #: ../fish/guestfish.pod:222
21064 msgid "B<-f file>"
21065 msgstr ""
21066
21067 # type: =item
21068 #. type: =item
21069 #: ../fish/guestfish.pod:224
21070 msgid "B<--file file>"
21071 msgstr ""
21072
21073 # type: textblock
21074 #. type: textblock
21075 #: ../fish/guestfish.pod:226
21076 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
21077 msgstr ""
21078
21079 # type: verbatim
21080 #. type: verbatim
21081 #: ../fish/guestfish.pod:229
21082 #, no-wrap
21083 msgid ""
21084 " #!/usr/bin/guestfish -f\n"
21085 "\n"
21086 msgstr ""
21087
21088 # type: =item
21089 #. type: =item
21090 #: ../fish/guestfish.pod:231
21091 msgid "B<--format=raw|qcow2|..>"
21092 msgstr ""
21093
21094 # type: =item
21095 #. type: =item
21096 #: ../fish/guestfish.pod:233
21097 msgid "B<--format>"
21098 msgstr ""
21099
21100 # type: textblock
21101 #. type: textblock
21102 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:117
21103 msgid ""
21104 "The default for the I<-a> option is to auto-detect the format of the disk "
21105 "image.  Using this forces the disk format for I<-a> options which follow on "
21106 "the command line.  Using I<--format> with no argument switches back to auto-"
21107 "detection for subsequent I<-a> options."
21108 msgstr ""
21109
21110 # type: verbatim
21111 #. type: verbatim
21112 #: ../fish/guestfish.pod:242
21113 #, no-wrap
21114 msgid ""
21115 " guestfish --format=raw -a disk.img\n"
21116 "\n"
21117 msgstr ""
21118
21119 # type: textblock
21120 #. type: textblock
21121 #: ../fish/guestfish.pod:244
21122 msgid "forces raw format (no auto-detection) for C<disk.img>."
21123 msgstr ""
21124
21125 # type: verbatim
21126 #. type: verbatim
21127 #: ../fish/guestfish.pod:246
21128 #, no-wrap
21129 msgid ""
21130 " guestfish --format=raw -a disk.img --format -a another.img\n"
21131 "\n"
21132 msgstr ""
21133
21134 # type: textblock
21135 #. type: textblock
21136 #: ../fish/guestfish.pod:248
21137 msgid ""
21138 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
21139 "detection for C<another.img>."
21140 msgstr ""
21141
21142 # type: textblock
21143 #. type: textblock
21144 #: ../fish/guestfish.pod:251
21145 msgid ""
21146 "If you have untrusted raw-format guest disk images, you should use this "
21147 "option to specify the disk format.  This avoids a possible security problem "
21148 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
21149 msgstr ""
21150
21151 # type: =item
21152 #. type: =item
21153 #: ../fish/guestfish.pod:256
21154 msgid "B<-i>"
21155 msgstr ""
21156
21157 # type: =item
21158 #. type: =item
21159 #: ../fish/guestfish.pod:258
21160 msgid "B<--inspector>"
21161 msgstr ""
21162
21163 # type: textblock
21164 #. type: textblock
21165 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:137
21166 msgid ""
21167 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
21168 "system and mount filesystems as they would be mounted on the real virtual "
21169 "machine."
21170 msgstr ""
21171
21172 # type: textblock
21173 #. type: textblock
21174 #: ../fish/guestfish.pod:264
21175 msgid "Typical usage is either:"
21176 msgstr ""
21177
21178 # type: verbatim
21179 #. type: verbatim
21180 #: ../fish/guestfish.pod:266
21181 #, no-wrap
21182 msgid ""
21183 " guestfish -d myguest -i\n"
21184 "\n"
21185 msgstr ""
21186
21187 # type: textblock
21188 #. type: textblock
21189 #: ../fish/guestfish.pod:268
21190 msgid "(for an inactive libvirt domain called I<myguest>), or:"
21191 msgstr ""
21192
21193 # type: verbatim
21194 #. type: verbatim
21195 #: ../fish/guestfish.pod:270
21196 #, no-wrap
21197 msgid ""
21198 " guestfish --ro -d myguest -i\n"
21199 "\n"
21200 msgstr ""
21201
21202 # type: textblock
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:272
21205 msgid "(for active domains, readonly), or specify the block device directly:"
21206 msgstr ""
21207
21208 # type: verbatim
21209 #. type: verbatim
21210 #: ../fish/guestfish.pod:274
21211 #, no-wrap
21212 msgid ""
21213 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
21214 "\n"
21215 msgstr ""
21216
21217 # type: textblock
21218 #. type: textblock
21219 #: ../fish/guestfish.pod:276
21220 msgid ""
21221 "Note that the command line syntax changed slightly over older versions of "
21222 "guestfish.  You can still use the old syntax:"
21223 msgstr ""
21224
21225 # type: verbatim
21226 #. type: verbatim
21227 #: ../fish/guestfish.pod:279
21228 #, no-wrap
21229 msgid ""
21230 " guestfish [--ro] -i disk.img\n"
21231 "\n"
21232 msgstr ""
21233
21234 # type: verbatim
21235 #. type: verbatim
21236 #: ../fish/guestfish.pod:281
21237 #, no-wrap
21238 msgid ""
21239 " guestfish [--ro] -i libvirt-domain\n"
21240 "\n"
21241 msgstr ""
21242
21243 # type: textblock
21244 #. type: textblock
21245 #: ../fish/guestfish.pod:283
21246 msgid ""
21247 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
21248 "then using other commands to mount the filesystems that were found."
21249 msgstr ""
21250
21251 # type: =item
21252 #. type: =item
21253 #: ../fish/guestfish.pod:287 ../fuse/guestmount.pod:141
21254 msgid "B<--keys-from-stdin>"
21255 msgstr ""
21256
21257 # type: textblock
21258 #. type: textblock
21259 #: ../fish/guestfish.pod:289 ../fuse/guestmount.pod:143
21260 msgid ""
21261 "Read key or passphrase parameters from stdin.  The default is to try to read "
21262 "passphrases from the user by opening C</dev/tty>."
21263 msgstr ""
21264
21265 # type: =item
21266 #. type: =item
21267 #: ../fish/guestfish.pod:292
21268 msgid "B<--listen>"
21269 msgstr ""
21270
21271 # type: textblock
21272 #. type: textblock
21273 #: ../fish/guestfish.pod:294
21274 msgid ""
21275 "Fork into the background and listen for remote commands.  See section L</"
21276 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
21277 msgstr ""
21278
21279 # type: =item
21280 #. type: =item
21281 #: ../fish/guestfish.pod:297
21282 msgid "B<-m dev[:mountpoint]>"
21283 msgstr ""
21284
21285 # type: =item
21286 #. type: =item
21287 #: ../fish/guestfish.pod:299
21288 msgid "B<--mount dev[:mountpoint]>"
21289 msgstr ""
21290
21291 # type: textblock
21292 #. type: textblock
21293 #: ../fish/guestfish.pod:301
21294 msgid "Mount the named partition or logical volume on the given mountpoint."
21295 msgstr ""
21296
21297 # type: textblock
21298 #. type: textblock
21299 #: ../fish/guestfish.pod:303
21300 msgid "If the mountpoint is omitted, it defaults to C</>."
21301 msgstr ""
21302
21303 # type: textblock
21304 #. type: textblock
21305 #: ../fish/guestfish.pod:305
21306 msgid "You have to mount something on C</> before most commands will work."
21307 msgstr ""
21308
21309 # type: textblock
21310 #. type: textblock
21311 #: ../fish/guestfish.pod:307
21312 msgid ""
21313 "If any I<-m> or I<--mount> options are given, the guest is automatically "
21314 "launched."
21315 msgstr ""
21316
21317 # type: textblock
21318 #. type: textblock
21319 #: ../fish/guestfish.pod:310
21320 msgid ""
21321 "If you don't know what filesystems a disk image contains, you can either run "
21322 "guestfish without this option, then list the partitions, filesystems and LVs "
21323 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
21324 "commands), or you can use the L<virt-filesystems(1)> program."
21325 msgstr ""
21326
21327 # type: textblock
21328 #. type: textblock
21329 #: ../fish/guestfish.pod:316
21330 msgid ""
21331 "Using this flag is mostly equivalent to using the C<mount-options> command "
21332 "or the C<mount-ro> command if the I<--ro> flag was given."
21333 msgstr ""
21334
21335 # type: =item
21336 #. type: =item
21337 #: ../fish/guestfish.pod:319
21338 msgid "B<-n>"
21339 msgstr ""
21340
21341 # type: =item
21342 #. type: =item
21343 #: ../fish/guestfish.pod:321
21344 msgid "B<--no-sync>"
21345 msgstr ""
21346
21347 # type: textblock
21348 #. type: textblock
21349 #: ../fish/guestfish.pod:323
21350 msgid ""
21351 "Disable autosync.  This is enabled by default.  See the discussion of "
21352 "autosync in the L<guestfs(3)> manpage."
21353 msgstr ""
21354
21355 # type: =item
21356 #. type: =item
21357 #: ../fish/guestfish.pod:326
21358 msgid "B<-N type>"
21359 msgstr ""
21360
21361 # type: =item
21362 #. type: =item
21363 #: ../fish/guestfish.pod:328
21364 msgid "B<--new type>"
21365 msgstr ""
21366
21367 # type: =item
21368 #. type: =item
21369 #: ../fish/guestfish.pod:330
21370 msgid "B<-N help>"
21371 msgstr ""
21372
21373 # type: textblock
21374 #. type: textblock
21375 #: ../fish/guestfish.pod:332
21376 msgid ""
21377 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
21378 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
21379 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
21380 "IMAGES> below."
21381 msgstr ""
21382
21383 # type: =item
21384 #. type: =item
21385 #: ../fish/guestfish.pod:337
21386 msgid "B<--progress-bars>"
21387 msgstr ""
21388
21389 # type: textblock
21390 #. type: textblock
21391 #: ../fish/guestfish.pod:339
21392 msgid "Enable progress bars, even when guestfish is used non-interactively."
21393 msgstr ""
21394
21395 # type: textblock
21396 #. type: textblock
21397 #: ../fish/guestfish.pod:341
21398 msgid ""
21399 "Progress bars are enabled by default when guestfish is used as an "
21400 "interactive shell."
21401 msgstr ""
21402
21403 # type: =item
21404 #. type: =item
21405 #: ../fish/guestfish.pod:344
21406 msgid "B<--no-progress-bars>"
21407 msgstr ""
21408
21409 # type: textblock
21410 #. type: textblock
21411 #: ../fish/guestfish.pod:346
21412 msgid "Disable progress bars."
21413 msgstr ""
21414
21415 # type: =item
21416 #. type: =item
21417 #: ../fish/guestfish.pod:348
21418 msgid "B<--remote[=pid]>"
21419 msgstr ""
21420
21421 # type: textblock
21422 #. type: textblock
21423 #: ../fish/guestfish.pod:350
21424 msgid ""
21425 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
21426 "CONTROL GUESTFISH OVER A SOCKET> below."
21427 msgstr ""
21428
21429 # type: =item
21430 #. type: =item
21431 #: ../fish/guestfish.pod:353
21432 msgid "B<-r>"
21433 msgstr ""
21434
21435 # type: =item
21436 #. type: =item
21437 #: ../fish/guestfish.pod:355
21438 msgid "B<--ro>"
21439 msgstr ""
21440
21441 # type: textblock
21442 #. type: textblock
21443 #: ../fish/guestfish.pod:357
21444 msgid ""
21445 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
21446 "mounts are done read-only."
21447 msgstr ""
21448
21449 # type: textblock
21450 #. type: textblock
21451 #: ../fish/guestfish.pod:360
21452 msgid ""
21453 "The option must always be used if the disk image or virtual machine might be "
21454 "running, and is generally recommended in cases where you don't need write "
21455 "access to the disk."
21456 msgstr ""
21457
21458 # type: textblock
21459 #. type: textblock
21460 #: ../fish/guestfish.pod:364
21461 msgid ""
21462 "Note that prepared disk images created with I<-N> are not affected by this "
21463 "option.  Also commands like C<add> are not affected - you have to specify "
21464 "the C<readonly:true> option explicitly if you need it."
21465 msgstr ""
21466
21467 # type: textblock
21468 #. type: textblock
21469 #: ../fish/guestfish.pod:368
21470 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
21471 msgstr ""
21472
21473 # type: =item
21474 #. type: =item
21475 #: ../fish/guestfish.pod:370 ../fuse/guestmount.pod:208
21476 msgid "B<--selinux>"
21477 msgstr ""
21478
21479 # type: textblock
21480 #. type: textblock
21481 #: ../fish/guestfish.pod:372
21482 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
21483 msgstr ""
21484
21485 # type: =item
21486 #. type: =item
21487 #: ../fish/guestfish.pod:374
21488 msgid "B<-v>"
21489 msgstr ""
21490
21491 # type: =item
21492 #. type: =item
21493 #: ../fish/guestfish.pod:376
21494 msgid "B<--verbose>"
21495 msgstr ""
21496
21497 # type: textblock
21498 #. type: textblock
21499 #: ../fish/guestfish.pod:378
21500 msgid ""
21501 "Enable very verbose messages.  This is particularly useful if you find a bug."
21502 msgstr ""
21503
21504 # type: =item
21505 #. type: =item
21506 #: ../fish/guestfish.pod:381
21507 msgid "B<-V>"
21508 msgstr ""
21509
21510 # type: =item
21511 #. type: =item
21512 #: ../fish/guestfish.pod:383 ../tools/virt-edit.pl:88
21513 #: ../tools/virt-win-reg.pl:112 ../tools/virt-resize.pl:270
21514 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-tar.pl:119
21515 #: ../tools/virt-make-fs.pl:169 ../tools/virt-list-partitions.pl:70
21516 msgid "B<--version>"
21517 msgstr ""
21518
21519 # type: textblock
21520 #. type: textblock
21521 #: ../fish/guestfish.pod:385
21522 msgid "Display the guestfish / libguestfs version number and exit."
21523 msgstr ""
21524
21525 # type: =item
21526 #. type: =item
21527 #: ../fish/guestfish.pod:387
21528 msgid "B<-w>"
21529 msgstr ""
21530
21531 # type: =item
21532 #. type: =item
21533 #: ../fish/guestfish.pod:389
21534 msgid "B<--rw>"
21535 msgstr ""
21536
21537 # type: textblock
21538 #. type: textblock
21539 #: ../fish/guestfish.pod:391
21540 msgid ""
21541 "This option does nothing at the moment.  See L</OPENING DISKS FOR READ AND "
21542 "WRITE> below."
21543 msgstr ""
21544
21545 # type: =item
21546 #. type: =item
21547 #: ../fish/guestfish.pod:394
21548 msgid "B<-x>"
21549 msgstr ""
21550
21551 # type: textblock
21552 #. type: textblock
21553 #: ../fish/guestfish.pod:396
21554 msgid "Echo each command before executing it."
21555 msgstr ""
21556
21557 # type: =head1
21558 #. type: =head1
21559 #: ../fish/guestfish.pod:400
21560 msgid "COMMANDS ON COMMAND LINE"
21561 msgstr ""
21562
21563 # type: textblock
21564 #. type: textblock
21565 #: ../fish/guestfish.pod:402
21566 msgid ""
21567 "Any additional (non-option) arguments are treated as commands to execute."
21568 msgstr ""
21569
21570 # type: textblock
21571 #. type: textblock
21572 #: ../fish/guestfish.pod:405
21573 msgid ""
21574 "Commands to execute should be separated by a colon (C<:>), where the colon "
21575 "is a separate parameter.  Thus:"
21576 msgstr ""
21577
21578 # type: verbatim
21579 #. type: verbatim
21580 #: ../fish/guestfish.pod:408
21581 #, no-wrap
21582 msgid ""
21583 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
21584 "\n"
21585 msgstr ""
21586
21587 # type: textblock
21588 #. type: textblock
21589 #: ../fish/guestfish.pod:410
21590 msgid ""
21591 "If there are no additional arguments, then we enter a shell, either an "
21592 "interactive shell with a prompt (if the input is a terminal) or a non-"
21593 "interactive shell."
21594 msgstr ""
21595
21596 # type: textblock
21597 #. type: textblock
21598 #: ../fish/guestfish.pod:414
21599 msgid ""
21600 "In either command line mode or non-interactive shell, the first command that "
21601 "gives an error causes the whole shell to exit.  In interactive mode (with a "
21602 "prompt) if a command fails, you can continue to enter commands."
21603 msgstr ""
21604
21605 # type: =head1
21606 #. type: =head1
21607 #: ../fish/guestfish.pod:419
21608 msgid "USING launch (OR run)"
21609 msgstr ""
21610
21611 # type: textblock
21612 #. type: textblock
21613 #: ../fish/guestfish.pod:421
21614 msgid ""
21615 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
21616 "then launch it, then mount any disks you need, and finally issue actions/"
21617 "commands.  So the general order of the day is:"
21618 msgstr ""
21619
21620 # type: textblock
21621 #. type: textblock
21622 #: ../fish/guestfish.pod:429
21623 msgid "add or -a/--add"
21624 msgstr ""
21625
21626 # type: textblock
21627 #. type: textblock
21628 #: ../fish/guestfish.pod:433
21629 msgid "launch (aka run)"
21630 msgstr ""
21631
21632 # type: textblock
21633 #. type: textblock
21634 #: ../fish/guestfish.pod:437
21635 msgid "mount or -m/--mount"
21636 msgstr ""
21637
21638 # type: textblock
21639 #. type: textblock
21640 #: ../fish/guestfish.pod:441
21641 msgid "any other commands"
21642 msgstr ""
21643
21644 # type: textblock
21645 #. type: textblock
21646 #: ../fish/guestfish.pod:445
21647 msgid ""
21648 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
21649 "guest before mounting or performing any other commands."
21650 msgstr ""
21651
21652 # type: textblock
21653 #. type: textblock
21654 #: ../fish/guestfish.pod:448
21655 msgid ""
21656 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
21657 "I<--new> options were given then C<run> is done automatically, simply "
21658 "because guestfish can't perform the action you asked for without doing this."
21659 msgstr ""
21660
21661 # type: =head1
21662 #. type: =head1
21663 #: ../fish/guestfish.pod:453
21664 msgid "OPENING DISKS FOR READ AND WRITE"
21665 msgstr ""
21666
21667 # type: textblock
21668 #. type: textblock
21669 #: ../fish/guestfish.pod:455
21670 msgid ""
21671 "The guestfish (and L<guestmount(1)>) options I<--ro> and I<--rw> affect "
21672 "whether the other command line options I<-a>, I<-c>, I<-d>, I<-i> and I<-m> "
21673 "open disk images read-only or for writing."
21674 msgstr ""
21675
21676 # type: textblock
21677 #. type: textblock
21678 #: ../fish/guestfish.pod:459
21679 msgid ""
21680 "In libguestfs E<lt> 1.6.2, guestfish and guestmount defaulted to opening "
21681 "disk images supplied on the command line for write.  To open a disk image "
21682 "read-only you have to do I<-a image --ro>."
21683 msgstr ""
21684
21685 # type: textblock
21686 #. type: textblock
21687 #: ../fish/guestfish.pod:463
21688 msgid ""
21689 "This matters: If you accidentally open a live VM disk image writable then "
21690 "you will cause irreversible disk corruption."
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../fish/guestfish.pod:466
21695 msgid ""
21696 "By libguestfs 1.10 we intend to change the default the other way.  Disk "
21697 "images will be opened read-only.  You will have to either specify "
21698 "I<guestfish --rw> or change a configuration file in order to get write "
21699 "access for disk images specified by those other command line options."
21700 msgstr ""
21701
21702 # type: textblock
21703 #. type: textblock
21704 #: ../fish/guestfish.pod:471
21705 msgid ""
21706 "This version of guestfish has a I<--rw> option which does nothing (it is "
21707 "already the default).  However it is highly recommended that you use this "
21708 "option to indicate that guestfish needs write access, and to prepare your "
21709 "scripts for the day when this option will be required for write access."
21710 msgstr ""
21711
21712 # type: textblock
21713 #. type: textblock
21714 #: ../fish/guestfish.pod:477
21715 msgid ""
21716 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
21717 "other libguestfs program apart from guestfish and guestmount."
21718 msgstr ""
21719
21720 # type: =head1
21721 #. type: =head1
21722 #: ../fish/guestfish.pod:480
21723 msgid "QUOTING"
21724 msgstr ""
21725
21726 # type: textblock
21727 #. type: textblock
21728 #: ../fish/guestfish.pod:482
21729 msgid ""
21730 "You can quote ordinary parameters using either single or double quotes.  For "
21731 "example:"
21732 msgstr ""
21733
21734 # type: verbatim
21735 #. type: verbatim
21736 #: ../fish/guestfish.pod:485
21737 #, no-wrap
21738 msgid ""
21739 " add \"file with a space.img\"\n"
21740 "\n"
21741 msgstr ""
21742
21743 # type: verbatim
21744 #. type: verbatim
21745 #: ../fish/guestfish.pod:487
21746 #, no-wrap
21747 msgid ""
21748 " rm '/file name'\n"
21749 "\n"
21750 msgstr ""
21751
21752 # type: verbatim
21753 #. type: verbatim
21754 #: ../fish/guestfish.pod:489
21755 #, no-wrap
21756 msgid ""
21757 " rm '/\"'\n"
21758 "\n"
21759 msgstr ""
21760
21761 # type: textblock
21762 #. type: textblock
21763 #: ../fish/guestfish.pod:491
21764 msgid ""
21765 "A few commands require a list of strings to be passed.  For these, use a "
21766 "whitespace-separated list, enclosed in quotes.  Strings containing "
21767 "whitespace to be passed through must be enclosed in single quotes.  A "
21768 "literal single quote must be escaped with a backslash."
21769 msgstr ""
21770
21771 # type: verbatim
21772 #. type: verbatim
21773 #: ../fish/guestfish.pod:496
21774 #, no-wrap
21775 msgid ""
21776 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21777 " command \"/bin/echo 'foo      bar'\"\n"
21778 " command \"/bin/echo \\'foo\\'\"\n"
21779 "\n"
21780 msgstr ""
21781
21782 # type: =head1
21783 #. type: =head1
21784 #: ../fish/guestfish.pod:500
21785 msgid "OPTIONAL ARGUMENTS"
21786 msgstr ""
21787
21788 # type: textblock
21789 #. type: textblock
21790 #: ../fish/guestfish.pod:502
21791 msgid ""
21792 "Some commands take optional arguments.  These arguments appear in this "
21793 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21794 msgstr ""
21795
21796 # type: verbatim
21797 #. type: verbatim
21798 #: ../fish/guestfish.pod:506
21799 #, no-wrap
21800 msgid ""
21801 " add-drive-opts filename\n"
21802 "\n"
21803 msgstr ""
21804
21805 # type: verbatim
21806 #. type: verbatim
21807 #: ../fish/guestfish.pod:508
21808 #, no-wrap
21809 msgid ""
21810 " add-drive-opts filename readonly:true\n"
21811 "\n"
21812 msgstr ""
21813
21814 # type: verbatim
21815 #. type: verbatim
21816 #: ../fish/guestfish.pod:510
21817 #, no-wrap
21818 msgid ""
21819 " add-drive-opts filename format:qcow2 readonly:false\n"
21820 "\n"
21821 msgstr ""
21822
21823 # type: textblock
21824 #. type: textblock
21825 #: ../fish/guestfish.pod:512
21826 msgid ""
21827 "Each optional argument can appear at most once.  All optional arguments must "
21828 "appear after the required ones."
21829 msgstr ""
21830
21831 # type: =head1
21832 #. type: =head1
21833 #: ../fish/guestfish.pod:515
21834 msgid "NUMBERS"
21835 msgstr ""
21836
21837 # type: textblock
21838 #. type: textblock
21839 #: ../fish/guestfish.pod:517
21840 msgid ""
21841 "This section applies to all commands which can take integers as parameters."
21842 msgstr ""
21843
21844 # type: =head2
21845 #. type: =head2
21846 #: ../fish/guestfish.pod:520
21847 msgid "SIZE SUFFIX"
21848 msgstr ""
21849
21850 # type: textblock
21851 #. type: textblock
21852 #: ../fish/guestfish.pod:522
21853 msgid ""
21854 "When the command takes a parameter measured in bytes, you can use one of the "
21855 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21856 msgstr ""
21857
21858 # type: =item
21859 #. type: =item
21860 #: ../fish/guestfish.pod:528
21861 msgid "B<k> or B<K> or B<KiB>"
21862 msgstr ""
21863
21864 # type: textblock
21865 #. type: textblock
21866 #: ../fish/guestfish.pod:530
21867 msgid "The size in kilobytes (multiplied by 1024)."
21868 msgstr ""
21869
21870 # type: =item
21871 #. type: =item
21872 #: ../fish/guestfish.pod:532
21873 msgid "B<KB>"
21874 msgstr ""
21875
21876 # type: textblock
21877 #. type: textblock
21878 #: ../fish/guestfish.pod:534
21879 msgid "The size in SI 1000 byte units."
21880 msgstr ""
21881
21882 # type: =item
21883 #. type: =item
21884 #: ../fish/guestfish.pod:536
21885 msgid "B<M> or B<MiB>"
21886 msgstr ""
21887
21888 # type: textblock
21889 #. type: textblock
21890 #: ../fish/guestfish.pod:538
21891 msgid "The size in megabytes (multiplied by 1048576)."
21892 msgstr ""
21893
21894 # type: =item
21895 #. type: =item
21896 #: ../fish/guestfish.pod:540
21897 msgid "B<MB>"
21898 msgstr ""
21899
21900 # type: textblock
21901 #. type: textblock
21902 #: ../fish/guestfish.pod:542
21903 msgid "The size in SI 1000000 byte units."
21904 msgstr ""
21905
21906 # type: =item
21907 #. type: =item
21908 #: ../fish/guestfish.pod:544
21909 msgid "B<G> or B<GiB>"
21910 msgstr ""
21911
21912 # type: textblock
21913 #. type: textblock
21914 #: ../fish/guestfish.pod:546
21915 msgid "The size in gigabytes (multiplied by 2**30)."
21916 msgstr ""
21917
21918 # type: =item
21919 #. type: =item
21920 #: ../fish/guestfish.pod:548
21921 msgid "B<GB>"
21922 msgstr ""
21923
21924 # type: textblock
21925 #. type: textblock
21926 #: ../fish/guestfish.pod:550
21927 msgid "The size in SI 10**9 byte units."
21928 msgstr ""
21929
21930 # type: =item
21931 #. type: =item
21932 #: ../fish/guestfish.pod:552
21933 msgid "B<T> or B<TiB>"
21934 msgstr ""
21935
21936 # type: textblock
21937 #. type: textblock
21938 #: ../fish/guestfish.pod:554
21939 msgid "The size in terabytes (multiplied by 2**40)."
21940 msgstr ""
21941
21942 # type: =item
21943 #. type: =item
21944 #: ../fish/guestfish.pod:556
21945 msgid "B<TB>"
21946 msgstr ""
21947
21948 # type: textblock
21949 #. type: textblock
21950 #: ../fish/guestfish.pod:558
21951 msgid "The size in SI 10**12 byte units."
21952 msgstr ""
21953
21954 # type: =item
21955 #. type: =item
21956 #: ../fish/guestfish.pod:560
21957 msgid "B<P> or B<PiB>"
21958 msgstr ""
21959
21960 # type: textblock
21961 #. type: textblock
21962 #: ../fish/guestfish.pod:562
21963 msgid "The size in petabytes (multiplied by 2**50)."
21964 msgstr ""
21965
21966 # type: =item
21967 #. type: =item
21968 #: ../fish/guestfish.pod:564
21969 msgid "B<PB>"
21970 msgstr ""
21971
21972 # type: textblock
21973 #. type: textblock
21974 #: ../fish/guestfish.pod:566
21975 msgid "The size in SI 10**15 byte units."
21976 msgstr ""
21977
21978 # type: =item
21979 #. type: =item
21980 #: ../fish/guestfish.pod:568
21981 msgid "B<E> or B<EiB>"
21982 msgstr ""
21983
21984 # type: textblock
21985 #. type: textblock
21986 #: ../fish/guestfish.pod:570
21987 msgid "The size in exabytes (multiplied by 2**60)."
21988 msgstr ""
21989
21990 # type: =item
21991 #. type: =item
21992 #: ../fish/guestfish.pod:572
21993 msgid "B<EB>"
21994 msgstr ""
21995
21996 # type: textblock
21997 #. type: textblock
21998 #: ../fish/guestfish.pod:574
21999 msgid "The size in SI 10**18 byte units."
22000 msgstr ""
22001
22002 # type: =item
22003 #. type: =item
22004 #: ../fish/guestfish.pod:576
22005 msgid "B<Z> or B<ZiB>"
22006 msgstr ""
22007
22008 # type: textblock
22009 #. type: textblock
22010 #: ../fish/guestfish.pod:578
22011 msgid "The size in zettabytes (multiplied by 2**70)."
22012 msgstr ""
22013
22014 # type: =item
22015 #. type: =item
22016 #: ../fish/guestfish.pod:580
22017 msgid "B<ZB>"
22018 msgstr ""
22019
22020 # type: textblock
22021 #. type: textblock
22022 #: ../fish/guestfish.pod:582
22023 msgid "The size in SI 10**21 byte units."
22024 msgstr ""
22025
22026 # type: =item
22027 #. type: =item
22028 #: ../fish/guestfish.pod:584
22029 msgid "B<Y> or B<YiB>"
22030 msgstr ""
22031
22032 # type: textblock
22033 #. type: textblock
22034 #: ../fish/guestfish.pod:586
22035 msgid "The size in yottabytes (multiplied by 2**80)."
22036 msgstr ""
22037
22038 # type: =item
22039 #. type: =item
22040 #: ../fish/guestfish.pod:588
22041 msgid "B<YB>"
22042 msgstr ""
22043
22044 # type: textblock
22045 #. type: textblock
22046 #: ../fish/guestfish.pod:590
22047 msgid "The size in SI 10**24 byte units."
22048 msgstr ""
22049
22050 # type: verbatim
22051 #. type: verbatim
22052 #: ../fish/guestfish.pod:596
22053 #, no-wrap
22054 msgid ""
22055 " truncate-size /file 1G\n"
22056 "\n"
22057 msgstr ""
22058
22059 # type: textblock
22060 #. type: textblock
22061 #: ../fish/guestfish.pod:598
22062 msgid "would truncate the file to 1 gigabyte."
22063 msgstr ""
22064
22065 # type: textblock
22066 #. type: textblock
22067 #: ../fish/guestfish.pod:600
22068 msgid ""
22069 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
22070 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
22071 "suffix will probably not do what you expect."
22072 msgstr ""
22073
22074 # type: =head2
22075 #. type: =head2
22076 #: ../fish/guestfish.pod:604
22077 msgid "OCTAL AND HEXADECIMAL NUMBERS"
22078 msgstr ""
22079
22080 # type: textblock
22081 #. type: textblock
22082 #: ../fish/guestfish.pod:606
22083 msgid ""
22084 "For specifying the radix (base) use the C convention: C<0> to prefix an "
22085 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
22086 msgstr ""
22087
22088 # type: verbatim
22089 #. type: verbatim
22090 #: ../fish/guestfish.pod:609
22091 #, no-wrap
22092 msgid ""
22093 " 1234      decimal number 1234\n"
22094 " 02322     octal number, equivalent to decimal 1234\n"
22095 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
22096 "\n"
22097 msgstr ""
22098
22099 # type: textblock
22100 #. type: textblock
22101 #: ../fish/guestfish.pod:613
22102 msgid ""
22103 "When using the C<chmod> command, you almost always want to specify an octal "
22104 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
22105 "L<chmod(1)> program):"
22106 msgstr ""
22107
22108 # type: verbatim
22109 #. type: verbatim
22110 #: ../fish/guestfish.pod:617
22111 #, no-wrap
22112 msgid ""
22113 " chmod 0777 /public  # OK\n"
22114 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
22115 "\n"
22116 msgstr ""
22117
22118 # type: textblock
22119 #. type: textblock
22120 #: ../fish/guestfish.pod:620
22121 msgid ""
22122 "Commands that return numbers usually print them in decimal, but some "
22123 "commands print numbers in other radices (eg. C<umask> prints the mode in "
22124 "octal, preceeded by C<0>)."
22125 msgstr ""
22126
22127 # type: =head1
22128 #. type: =head1
22129 #: ../fish/guestfish.pod:624
22130 msgid "WILDCARDS AND GLOBBING"
22131 msgstr ""
22132
22133 # type: textblock
22134 #. type: textblock
22135 #: ../fish/guestfish.pod:626
22136 msgid ""
22137 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
22138 "(globbing) by default.  So for example the following will not do what you "
22139 "expect:"
22140 msgstr ""
22141
22142 # type: verbatim
22143 #. type: verbatim
22144 #: ../fish/guestfish.pod:630
22145 #, no-wrap
22146 msgid ""
22147 " rm-rf /home/*\n"
22148 "\n"
22149 msgstr ""
22150
22151 # type: textblock
22152 #. type: textblock
22153 #: ../fish/guestfish.pod:632
22154 msgid ""
22155 "Assuming you don't have a directory called literally C</home/*> then the "
22156 "above command will return an error."
22157 msgstr ""
22158
22159 # type: textblock
22160 #. type: textblock
22161 #: ../fish/guestfish.pod:635
22162 msgid "To perform wildcard expansion, use the C<glob> command."
22163 msgstr ""
22164
22165 # type: verbatim
22166 #. type: verbatim
22167 #: ../fish/guestfish.pod:637
22168 #, no-wrap
22169 msgid ""
22170 " glob rm-rf /home/*\n"
22171 "\n"
22172 msgstr ""
22173
22174 # type: textblock
22175 #. type: textblock
22176 #: ../fish/guestfish.pod:639
22177 msgid ""
22178 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
22179 "many times), equivalent to:"
22180 msgstr ""
22181
22182 # type: verbatim
22183 #. type: verbatim
22184 #: ../fish/guestfish.pod:642
22185 #, no-wrap
22186 msgid ""
22187 " rm-rf /home/jim\n"
22188 " rm-rf /home/joe\n"
22189 " rm-rf /home/mary\n"
22190 "\n"
22191 msgstr ""
22192
22193 # type: textblock
22194 #. type: textblock
22195 #: ../fish/guestfish.pod:646
22196 msgid "C<glob> only works on simple guest paths and not on device names."
22197 msgstr ""
22198
22199 # type: textblock
22200 #. type: textblock
22201 #: ../fish/guestfish.pod:648
22202 msgid ""
22203 "If you have several parameters, each containing a wildcard, then glob will "
22204 "perform a Cartesian product."
22205 msgstr ""
22206
22207 # type: =head1
22208 #. type: =head1
22209 #: ../fish/guestfish.pod:651
22210 msgid "COMMENTS"
22211 msgstr ""
22212
22213 # type: textblock
22214 #. type: textblock
22215 #: ../fish/guestfish.pod:653
22216 msgid ""
22217 "Any line which starts with a I<#> character is treated as a comment and "
22218 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
22219 "a command.  For example:"
22220 msgstr ""
22221
22222 # type: verbatim
22223 #. type: verbatim
22224 #: ../fish/guestfish.pod:657
22225 #, no-wrap
22226 msgid ""
22227 " # this is a comment\n"
22228 "         # this is a comment\n"
22229 " foo # NOT a comment\n"
22230 "\n"
22231 msgstr ""
22232
22233 # type: textblock
22234 #. type: textblock
22235 #: ../fish/guestfish.pod:661
22236 msgid "Blank lines are also ignored."
22237 msgstr ""
22238
22239 # type: =head1
22240 #. type: =head1
22241 #: ../fish/guestfish.pod:663
22242 msgid "RUNNING COMMANDS LOCALLY"
22243 msgstr ""
22244
22245 # type: textblock
22246 #. type: textblock
22247 #: ../fish/guestfish.pod:665
22248 msgid ""
22249 "Any line which starts with a I<!> character is treated as a command sent to "
22250 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
22251 msgstr ""
22252
22253 # type: verbatim
22254 #. type: verbatim
22255 #: ../fish/guestfish.pod:669
22256 #, no-wrap
22257 msgid ""
22258 " !mkdir local\n"
22259 " tgz-out /remote local/remote-data.tar.gz\n"
22260 "\n"
22261 msgstr ""
22262
22263 # type: textblock
22264 #. type: textblock
22265 #: ../fish/guestfish.pod:672
22266 msgid ""
22267 "will create a directory C<local> on the host, and then export the contents "
22268 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
22269 "(See C<tgz-out>)."
22270 msgstr ""
22271
22272 # type: textblock
22273 #. type: textblock
22274 #: ../fish/guestfish.pod:676
22275 msgid ""
22276 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
22277 "effect, due to the way that subprocesses work in Unix."
22278 msgstr ""
22279
22280 #. type: =head2
22281 #: ../fish/guestfish.pod:679
22282 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../fish/guestfish.pod:681
22287 msgid ""
22288 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
22289 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
22290 "and executed as guestfish commands."
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../fish/guestfish.pod:685
22295 msgid ""
22296 "Thus you can use shell script to construct arbitrary guestfish commands "
22297 "which are then parsed by guestfish."
22298 msgstr ""
22299
22300 #. type: textblock
22301 #: ../fish/guestfish.pod:688
22302 msgid ""
22303 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
22304 "through C</foo.100>) using guestfish commands alone.  However this is simple "
22305 "if we use a shell script to create the guestfish commands for us:"
22306 msgstr ""
22307
22308 #. type: verbatim
22309 #: ../fish/guestfish.pod:693
22310 #, no-wrap
22311 msgid ""
22312 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
22313 "\n"
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../fish/guestfish.pod:695
22318 msgid "or with names like C</foo.001>:"
22319 msgstr ""
22320
22321 #. type: verbatim
22322 #: ../fish/guestfish.pod:697
22323 #, no-wrap
22324 msgid ""
22325 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
22326 "\n"
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../fish/guestfish.pod:699
22331 msgid ""
22332 "When using guestfish interactively it can be helpful to just run the shell "
22333 "script first (ie. remove the initial C<E<lt>> character so it is just an "
22334 "ordinary I<!> local command), see what guestfish commands it would run, and "
22335 "when you are happy with those prepend the C<E<lt>> character to run the "
22336 "guestfish commands for real."
22337 msgstr ""
22338
22339 # type: =head1
22340 #. type: =head1
22341 #: ../fish/guestfish.pod:705
22342 msgid "PIPES"
22343 msgstr ""
22344
22345 # type: textblock
22346 #. type: textblock
22347 #: ../fish/guestfish.pod:707
22348 msgid ""
22349 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
22350 "command (a guestfish command) to the second command (any host command).  For "
22351 "example:"
22352 msgstr ""
22353
22354 # type: verbatim
22355 #. type: verbatim
22356 #: ../fish/guestfish.pod:711
22357 #, no-wrap
22358 msgid ""
22359 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
22360 "\n"
22361 msgstr ""
22362
22363 # type: textblock
22364 #. type: textblock
22365 #: ../fish/guestfish.pod:713
22366 msgid ""
22367 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
22368 "program).  The above command would list all accounts in the guest filesystem "
22369 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
22370 msgstr ""
22371
22372 # type: verbatim
22373 #. type: verbatim
22374 #: ../fish/guestfish.pod:718
22375 #, no-wrap
22376 msgid ""
22377 " hexdump /bin/ls | head\n"
22378 " list-devices | tail -1\n"
22379 " tgz-out / - | tar ztf -\n"
22380 "\n"
22381 msgstr ""
22382
22383 # type: textblock
22384 #. type: textblock
22385 #: ../fish/guestfish.pod:722
22386 msgid ""
22387 "The space before the pipe symbol is required, any space after the pipe "
22388 "symbol is optional.  Everything after the pipe symbol is just passed "
22389 "straight to the host shell, so it can contain redirections, globs and "
22390 "anything else that makes sense on the host side."
22391 msgstr ""
22392
22393 # type: textblock
22394 #. type: textblock
22395 #: ../fish/guestfish.pod:727
22396 msgid ""
22397 "To use a literal argument which begins with a pipe symbol, you have to quote "
22398 "it, eg:"
22399 msgstr ""
22400
22401 # type: verbatim
22402 #. type: verbatim
22403 #: ../fish/guestfish.pod:730
22404 #, no-wrap
22405 msgid ""
22406 " echo \"|\"\n"
22407 "\n"
22408 msgstr ""
22409
22410 # type: =head1
22411 #. type: =head1
22412 #: ../fish/guestfish.pod:732
22413 msgid "HOME DIRECTORIES"
22414 msgstr ""
22415
22416 # type: textblock
22417 #. type: textblock
22418 #: ../fish/guestfish.pod:734
22419 msgid ""
22420 "If a parameter starts with the character C<~> then the tilde may be expanded "
22421 "as a home directory path (either C<~> for the current user's home directory, "
22422 "or C<~user> for another user)."
22423 msgstr ""
22424
22425 # type: textblock
22426 #. type: textblock
22427 #: ../fish/guestfish.pod:738
22428 msgid ""
22429 "Note that home directory expansion happens for users known I<on the host>, "
22430 "not in the guest filesystem."
22431 msgstr ""
22432
22433 # type: textblock
22434 #. type: textblock
22435 #: ../fish/guestfish.pod:741
22436 msgid ""
22437 "To use a literal argument which begins with a tilde, you have to quote it, "
22438 "eg:"
22439 msgstr ""
22440
22441 # type: verbatim
22442 #. type: verbatim
22443 #: ../fish/guestfish.pod:744
22444 #, no-wrap
22445 msgid ""
22446 " echo \"~\"\n"
22447 "\n"
22448 msgstr ""
22449
22450 # type: textblock
22451 #. type: textblock
22452 #: ../fish/guestfish.pod:748
22453 msgid ""
22454 "Libguestfs has some support for Linux guests encrypted according to the "
22455 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
22456 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
22457 "LUKS is supported."
22458 msgstr ""
22459
22460 # type: textblock
22461 #. type: textblock
22462 #: ../fish/guestfish.pod:753
22463 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
22464 msgstr ""
22465
22466 # type: verbatim
22467 #. type: verbatim
22468 #: ../fish/guestfish.pod:755
22469 #, no-wrap
22470 msgid ""
22471 " ><fs> vfs-type /dev/sda2\n"
22472 " crypto_LUKS\n"
22473 "\n"
22474 msgstr ""
22475
22476 # type: textblock
22477 #. type: textblock
22478 #: ../fish/guestfish.pod:758
22479 msgid ""
22480 "Then open those devices using L</luks-open>.  This creates a device-mapper "
22481 "device called C</dev/mapper/luksdev>."
22482 msgstr ""
22483
22484 # type: verbatim
22485 #. type: verbatim
22486 #: ../fish/guestfish.pod:761
22487 #, no-wrap
22488 msgid ""
22489 " ><fs> luks-open /dev/sda2 luksdev\n"
22490 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
22491 "\n"
22492 msgstr ""
22493
22494 # type: textblock
22495 #. type: textblock
22496 #: ../fish/guestfish.pod:764
22497 msgid ""
22498 "Finally you have to tell LVM to scan for volume groups on the newly created "
22499 "mapper device:"
22500 msgstr ""
22501
22502 # type: verbatim
22503 #. type: verbatim
22504 #: ../fish/guestfish.pod:767
22505 #, no-wrap
22506 msgid ""
22507 " vgscan\n"
22508 " vg-activate-all true\n"
22509 "\n"
22510 msgstr ""
22511
22512 # type: textblock
22513 #. type: textblock
22514 #: ../fish/guestfish.pod:770
22515 msgid "The logical volume(s) can now be mounted in the usual way."
22516 msgstr ""
22517
22518 # type: textblock
22519 #. type: textblock
22520 #: ../fish/guestfish.pod:772
22521 msgid ""
22522 "Before closing a LUKS device you must unmount any logical volumes on it and "
22523 "deactivate the volume groups by calling C<vg-activate false VG> on each "
22524 "one.  Then you can close the mapper device:"
22525 msgstr ""
22526
22527 # type: verbatim
22528 #. type: verbatim
22529 #: ../fish/guestfish.pod:776
22530 #, no-wrap
22531 msgid ""
22532 " vg-activate false /dev/VG\n"
22533 " luks-close /dev/mapper/luksdev\n"
22534 "\n"
22535 msgstr ""
22536
22537 # type: =head1
22538 #. type: =head1
22539 #: ../fish/guestfish.pod:779
22540 msgid "WINDOWS PATHS"
22541 msgstr ""
22542
22543 # type: textblock
22544 #. type: textblock
22545 #: ../fish/guestfish.pod:781
22546 msgid ""
22547 "If a path is prefixed with C<win:> then you can use Windows-style paths "
22548 "(with some limitations).  The following commands are equivalent:"
22549 msgstr ""
22550
22551 # type: verbatim
22552 #. type: verbatim
22553 #: ../fish/guestfish.pod:784
22554 #, no-wrap
22555 msgid ""
22556 " file /WINDOWS/system32/config/system.LOG\n"
22557 "\n"
22558 msgstr ""
22559
22560 # type: verbatim
22561 #. type: verbatim
22562 #: ../fish/guestfish.pod:786
22563 #, no-wrap
22564 msgid ""
22565 " file win:/windows/system32/config/system.log\n"
22566 "\n"
22567 msgstr ""
22568
22569 # type: verbatim
22570 #. type: verbatim
22571 #: ../fish/guestfish.pod:788
22572 #, no-wrap
22573 msgid ""
22574 " file win:\\windows\\system32\\config\\system.log\n"
22575 "\n"
22576 msgstr ""
22577
22578 # type: verbatim
22579 #. type: verbatim
22580 #: ../fish/guestfish.pod:790
22581 #, no-wrap
22582 msgid ""
22583 " file WIN:C:\\Windows\\SYSTEM32\\conFIG\\SYSTEM.LOG\n"
22584 "\n"
22585 msgstr ""
22586
22587 # type: textblock
22588 #. type: textblock
22589 #: ../fish/guestfish.pod:792
22590 msgid ""
22591 "This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also "
22592 "handles case insensitivity like Windows would.  This only works in argument "
22593 "positions that expect a path."
22594 msgstr ""
22595
22596 # type: =head1
22597 #. type: =head1
22598 #: ../fish/guestfish.pod:796
22599 msgid "UPLOADING AND DOWNLOADING FILES"
22600 msgstr ""
22601
22602 # type: textblock
22603 #. type: textblock
22604 #: ../fish/guestfish.pod:798
22605 msgid ""
22606 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
22607 "others which upload from or download to a local file, you can use the "
22608 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
22609 msgstr ""
22610
22611 # type: verbatim
22612 #. type: verbatim
22613 #: ../fish/guestfish.pod:802
22614 #, no-wrap
22615 msgid ""
22616 " upload - /foo\n"
22617 "\n"
22618 msgstr ""
22619
22620 # type: textblock
22621 #. type: textblock
22622 #: ../fish/guestfish.pod:804
22623 msgid ""
22624 "reads stdin and creates from that a file C</foo> in the disk image, and:"
22625 msgstr ""
22626
22627 # type: verbatim
22628 #. type: verbatim
22629 #: ../fish/guestfish.pod:807
22630 #, no-wrap
22631 msgid ""
22632 " tar-out /etc - | tar tf -\n"
22633 "\n"
22634 msgstr ""
22635
22636 # type: textblock
22637 #. type: textblock
22638 #: ../fish/guestfish.pod:809
22639 msgid ""
22640 "writes the tarball to stdout and then pipes that into the external \"tar\" "
22641 "command (see L</PIPES>)."
22642 msgstr ""
22643
22644 # type: textblock
22645 #. type: textblock
22646 #: ../fish/guestfish.pod:812
22647 msgid ""
22648 "When using C<-> to read from stdin, the input is read up to the end of "
22649 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
22650 "some arbitrary end marker:"
22651 msgstr ""
22652
22653 # type: verbatim
22654 #. type: verbatim
22655 #: ../fish/guestfish.pod:816
22656 #, no-wrap
22657 msgid ""
22658 " upload -<<END /foo\n"
22659 " input line 1\n"
22660 " input line 2\n"
22661 " input line 3\n"
22662 " END\n"
22663 "\n"
22664 msgstr ""
22665
22666 # type: textblock
22667 #. type: textblock
22668 #: ../fish/guestfish.pod:822
22669 msgid ""
22670 "Any string of characters can be used instead of C<END>.  The end marker must "
22671 "appear on a line of its own, without any preceeding or following characters "
22672 "(not even spaces)."
22673 msgstr ""
22674
22675 # type: textblock
22676 #. type: textblock
22677 #: ../fish/guestfish.pod:826
22678 msgid ""
22679 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
22680 "upload local files (so-called \"FileIn\" parameters in the generator)."
22681 msgstr ""
22682
22683 # type: =head1
22684 #. type: =head1
22685 #: ../fish/guestfish.pod:829
22686 msgid "EXIT ON ERROR BEHAVIOUR"
22687 msgstr ""
22688
22689 # type: textblock
22690 #. type: textblock
22691 #: ../fish/guestfish.pod:831
22692 msgid ""
22693 "By default, guestfish will ignore any errors when in interactive mode (ie. "
22694 "taking commands from a human over a tty), and will exit on the first error "
22695 "in non-interactive mode (scripts, commands given on the command line)."
22696 msgstr ""
22697
22698 # type: textblock
22699 #. type: textblock
22700 #: ../fish/guestfish.pod:836
22701 msgid ""
22702 "If you prefix a command with a I<-> character, then that command will not "
22703 "cause guestfish to exit, even if that (one) command returns an error."
22704 msgstr ""
22705
22706 # type: =head1
22707 #. type: =head1
22708 #: ../fish/guestfish.pod:840
22709 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
22710 msgstr ""
22711
22712 # type: textblock
22713 #. type: textblock
22714 #: ../fish/guestfish.pod:842
22715 msgid ""
22716 "Guestfish can be remote-controlled over a socket.  This is useful "
22717 "particularly in shell scripts where you want to make several different "
22718 "changes to a filesystem, but you don't want the overhead of starting up a "
22719 "guestfish process each time."
22720 msgstr ""
22721
22722 # type: textblock
22723 #. type: textblock
22724 #: ../fish/guestfish.pod:847
22725 msgid "Start a guestfish server process using:"
22726 msgstr ""
22727
22728 # type: verbatim
22729 #. type: verbatim
22730 #: ../fish/guestfish.pod:849
22731 #, no-wrap
22732 msgid ""
22733 " eval \"`guestfish --listen`\"\n"
22734 "\n"
22735 msgstr ""
22736
22737 # type: textblock
22738 #. type: textblock
22739 #: ../fish/guestfish.pod:851
22740 msgid "and then send it commands by doing:"
22741 msgstr ""
22742
22743 # type: verbatim
22744 #. type: verbatim
22745 #: ../fish/guestfish.pod:853
22746 #, no-wrap
22747 msgid ""
22748 " guestfish --remote cmd [...]\n"
22749 "\n"
22750 msgstr ""
22751
22752 # type: textblock
22753 #. type: textblock
22754 #: ../fish/guestfish.pod:855
22755 msgid "To cause the server to exit, send it the exit command:"
22756 msgstr ""
22757
22758 # type: verbatim
22759 #. type: verbatim
22760 #: ../fish/guestfish.pod:857
22761 #, no-wrap
22762 msgid ""
22763 " guestfish --remote exit\n"
22764 "\n"
22765 msgstr ""
22766
22767 # type: textblock
22768 #. type: textblock
22769 #: ../fish/guestfish.pod:859
22770 msgid ""
22771 "Note that the server will normally exit if there is an error in a command.  "
22772 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22773 "BEHAVIOUR>."
22774 msgstr ""
22775
22776 # type: =head2
22777 #. type: =head2
22778 #: ../fish/guestfish.pod:863
22779 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22780 msgstr ""
22781
22782 # type: textblock
22783 #. type: textblock
22784 #: ../fish/guestfish.pod:865
22785 msgid ""
22786 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22787 "is how the I<--remote> option knows where to send the commands.  You can "
22788 "have several guestfish listener processes running using:"
22789 msgstr ""
22790
22791 # type: verbatim
22792 #. type: verbatim
22793 #: ../fish/guestfish.pod:869
22794 #, no-wrap
22795 msgid ""
22796 " eval \"`guestfish --listen`\"\n"
22797 " pid1=$GUESTFISH_PID\n"
22798 " eval \"`guestfish --listen`\"\n"
22799 " pid2=$GUESTFISH_PID\n"
22800 " ...\n"
22801 " guestfish --remote=$pid1 cmd\n"
22802 " guestfish --remote=$pid2 cmd\n"
22803 "\n"
22804 msgstr ""
22805
22806 # type: =head2
22807 #. type: =head2
22808 #: ../fish/guestfish.pod:877
22809 msgid "REMOTE CONTROL AND CSH"
22810 msgstr ""
22811
22812 # type: textblock
22813 #. type: textblock
22814 #: ../fish/guestfish.pod:879
22815 msgid ""
22816 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22817 "option:"
22818 msgstr ""
22819
22820 # type: verbatim
22821 #. type: verbatim
22822 #: ../fish/guestfish.pod:882
22823 #, no-wrap
22824 msgid ""
22825 " eval \"`guestfish --listen --csh`\"\n"
22826 "\n"
22827 msgstr ""
22828
22829 # type: =head2
22830 #. type: =head2
22831 #: ../fish/guestfish.pod:884
22832 msgid "REMOTE CONTROL DETAILS"
22833 msgstr ""
22834
22835 # type: textblock
22836 #. type: textblock
22837 #: ../fish/guestfish.pod:886
22838 msgid ""
22839 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22840 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22841 "and C<$PID> is the process ID of the server."
22842 msgstr ""
22843
22844 # type: textblock
22845 #. type: textblock
22846 #: ../fish/guestfish.pod:890
22847 msgid "Guestfish client and server versions must match exactly."
22848 msgstr ""
22849
22850 # type: =head1
22851 #. type: =head1
22852 #: ../fish/guestfish.pod:892
22853 msgid "PREPARED DISK IMAGES"
22854 msgstr ""
22855
22856 # type: textblock
22857 #. type: textblock
22858 #: ../fish/guestfish.pod:894
22859 msgid ""
22860 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22861 "preformatted disk images that guestfish can make for you to save typing.  "
22862 "This is particularly useful for testing purposes.  This option is used "
22863 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22864 "can be mixed with I<-a>)."
22865 msgstr ""
22866
22867 # type: textblock
22868 #. type: textblock
22869 #: ../fish/guestfish.pod:900
22870 msgid ""
22871 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22872 "the second and so on.  Existing files in the current directory are "
22873 "I<overwritten>."
22874 msgstr ""
22875
22876 # type: textblock
22877 #. type: textblock
22878 #: ../fish/guestfish.pod:904
22879 msgid ""
22880 "The type briefly describes how the disk should be sized, partitioned, how "
22881 "filesystem(s) should be created, and how content should be added.  "
22882 "Optionally the type can be followed by extra parameters, separated by C<:> "
22883 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22884 "allocated disk, containing a single partition, with the partition formatted "
22885 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22886 "disk instead."
22887 msgstr ""
22888
22889 # type: textblock
22890 #. type: textblock
22891 #: ../fish/guestfish.pod:912
22892 msgid "To list the available types and any extra parameters they take, run:"
22893 msgstr ""
22894
22895 # type: textblock
22896 #. type: textblock
22897 #: ../fish/guestfish.pod:916
22898 msgid ""
22899 "Note that the prepared filesystem is not mounted.  You would usually have to "
22900 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22901 msgstr ""
22902
22903 # type: textblock
22904 #. type: textblock
22905 #: ../fish/guestfish.pod:920
22906 msgid ""
22907 "If any I<-N> or I<--new> options are given, the guest is automatically "
22908 "launched."
22909 msgstr ""
22910
22911 # type: textblock
22912 #. type: textblock
22913 #: ../fish/guestfish.pod:925
22914 msgid "Create a 100MB disk with an ext4-formatted partition:"
22915 msgstr ""
22916
22917 # type: verbatim
22918 #. type: verbatim
22919 #: ../fish/guestfish.pod:927
22920 #, no-wrap
22921 msgid ""
22922 " guestfish -N fs:ext4\n"
22923 "\n"
22924 msgstr ""
22925
22926 # type: textblock
22927 #. type: textblock
22928 #: ../fish/guestfish.pod:929
22929 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22930 msgstr ""
22931
22932 # type: verbatim
22933 #. type: verbatim
22934 #: ../fish/guestfish.pod:931
22935 #, no-wrap
22936 msgid ""
22937 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22938 "\n"
22939 msgstr ""
22940
22941 # type: textblock
22942 #. type: textblock
22943 #: ../fish/guestfish.pod:933
22944 msgid "Create a blank 200MB disk:"
22945 msgstr ""
22946
22947 # type: verbatim
22948 #. type: verbatim
22949 #: ../fish/guestfish.pod:935
22950 #, no-wrap
22951 msgid ""
22952 " guestfish -N disk:200M\n"
22953 "\n"
22954 msgstr ""
22955
22956 # type: =head1
22957 #. type: =head1
22958 #: ../fish/guestfish.pod:937
22959 msgid "PROGRESS BARS"
22960 msgstr ""
22961
22962 # type: textblock
22963 #. type: textblock
22964 #: ../fish/guestfish.pod:939
22965 msgid ""
22966 "Some (not all) long-running commands send progress notification messages as "
22967 "they are running.  Guestfish turns these messages into progress bars."
22968 msgstr ""
22969
22970 # type: textblock
22971 #. type: textblock
22972 #: ../fish/guestfish.pod:943
22973 msgid ""
22974 "When a command that supports progress bars takes longer than two seconds to "
22975 "run, and if progress bars are enabled, then you will see one appearing below "
22976 "the command:"
22977 msgstr ""
22978
22979 # type: verbatim
22980 #. type: verbatim
22981 #: ../fish/guestfish.pod:947
22982 #, no-wrap
22983 msgid ""
22984 " ><fs> copy-size /large-file /another-file 2048M\n"
22985 " / 10% [#####-----------------------------------------] 00:30\n"
22986 "\n"
22987 msgstr ""
22988
22989 # type: textblock
22990 #. type: textblock
22991 #: ../fish/guestfish.pod:950
22992 msgid ""
22993 "The spinner on the left hand side moves round once for every progress "
22994 "notification received from the backend.  This is a (reasonably) golden "
22995 "assurance that the command is \"doing something\" even if the progress bar "
22996 "is not moving, because the command is able to send the progress "
22997 "notifications.  When the bar reaches 100% and the command finishes, the "
22998 "spinner disappears."
22999 msgstr ""
23000
23001 # type: textblock
23002 #. type: textblock
23003 #: ../fish/guestfish.pod:957
23004 msgid ""
23005 "Progress bars are enabled by default when guestfish is used interactively.  "
23006 "You can enable them even for non-interactive modes using I<--progress-bars>, "
23007 "and you can disable them completely using I<--no-progress-bars>."
23008 msgstr ""
23009
23010 # type: =head1
23011 #. type: =head1
23012 #: ../fish/guestfish.pod:962
23013 msgid "GUESTFISH COMMANDS"
23014 msgstr ""
23015
23016 # type: textblock
23017 #. type: textblock
23018 #: ../fish/guestfish.pod:964
23019 msgid ""
23020 "The commands in this section are guestfish convenience commands, in other "
23021 "words, they are not part of the L<guestfs(3)> API."
23022 msgstr ""
23023
23024 # type: =head2
23025 #. type: =head2
23026 #: ../fish/guestfish.pod:967
23027 msgid "help"
23028 msgstr ""
23029
23030 # type: verbatim
23031 #. type: verbatim
23032 #: ../fish/guestfish.pod:969
23033 #, no-wrap
23034 msgid ""
23035 " help\n"
23036 " help cmd\n"
23037 "\n"
23038 msgstr ""
23039
23040 # type: textblock
23041 #. type: textblock
23042 #: ../fish/guestfish.pod:972
23043 msgid "Without any parameter, this provides general help."
23044 msgstr ""
23045
23046 # type: textblock
23047 #. type: textblock
23048 #: ../fish/guestfish.pod:974
23049 msgid "With a C<cmd> parameter, this displays detailed help for that command."
23050 msgstr ""
23051
23052 # type: =head2
23053 #. type: =head2
23054 #: ../fish/guestfish.pod:976
23055 msgid "quit | exit"
23056 msgstr ""
23057
23058 # type: textblock
23059 #. type: textblock
23060 #: ../fish/guestfish.pod:978
23061 msgid "This exits guestfish.  You can also use C<^D> key."
23062 msgstr ""
23063
23064 # type: textblock
23065 #. type: textblock
23066 #: ../fish/guestfish.pod:980
23067 msgid "@FISH_COMMANDS@"
23068 msgstr ""
23069
23070 # type: =head1
23071 #. type: =head1
23072 #: ../fish/guestfish.pod:982
23073 msgid "COMMANDS"
23074 msgstr ""
23075
23076 # type: =head1
23077 #. type: =head1
23078 #: ../fish/guestfish.pod:986 ../test-tool/libguestfs-test-tool.pod:83
23079 msgid "EXIT CODE"
23080 msgstr ""
23081
23082 # type: textblock
23083 #. type: textblock
23084 #: ../fish/guestfish.pod:988
23085 msgid ""
23086 "guestfish returns 0 if the commands completed without error, or 1 if there "
23087 "was an error."
23088 msgstr ""
23089
23090 # type: =item
23091 #. type: =item
23092 #: ../fish/guestfish.pod:995
23093 msgid "EDITOR"
23094 msgstr ""
23095
23096 # type: textblock
23097 #. type: textblock
23098 #: ../fish/guestfish.pod:997
23099 msgid ""
23100 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
23101 "C<vi>."
23102 msgstr ""
23103
23104 # type: =item
23105 #. type: =item
23106 #: ../fish/guestfish.pod:1000
23107 msgid "GUESTFISH_PID"
23108 msgstr ""
23109
23110 # type: textblock
23111 #. type: textblock
23112 #: ../fish/guestfish.pod:1002
23113 msgid ""
23114 "Used with the I<--remote> option to specify the remote guestfish process to "
23115 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
23116 msgstr ""
23117
23118 # type: =item
23119 #. type: =item
23120 #: ../fish/guestfish.pod:1006
23121 msgid "HEXEDITOR"
23122 msgstr ""
23123
23124 # type: textblock
23125 #. type: textblock
23126 #: ../fish/guestfish.pod:1008
23127 msgid ""
23128 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
23129 "not specified, the external L<hexedit(1)> program is used."
23130 msgstr ""
23131
23132 # type: =item
23133 #. type: =item
23134 #: ../fish/guestfish.pod:1012
23135 msgid "HOME"
23136 msgstr ""
23137
23138 # type: textblock
23139 #. type: textblock
23140 #: ../fish/guestfish.pod:1014
23141 msgid ""
23142 "If compiled with GNU readline support, various files in the home directory "
23143 "can be used.  See L</FILES>."
23144 msgstr ""
23145
23146 # type: textblock
23147 #. type: textblock
23148 #: ../fish/guestfish.pod:1023
23149 msgid ""
23150 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
23151 "effect as using the B<-v> option."
23152 msgstr ""
23153
23154 # type: textblock
23155 #. type: textblock
23156 #: ../fish/guestfish.pod:1035
23157 msgid ""
23158 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
23159 "the discussion of paths in L<guestfs(3)>."
23160 msgstr ""
23161
23162 # type: textblock
23163 #. type: textblock
23164 #: ../fish/guestfish.pod:1046
23165 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
23166 msgstr ""
23167
23168 # type: =item
23169 #. type: =item
23170 #: ../fish/guestfish.pod:1048
23171 msgid "PAGER"
23172 msgstr ""
23173
23174 # type: textblock
23175 #. type: textblock
23176 #: ../fish/guestfish.pod:1050
23177 msgid ""
23178 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
23179 "C<more>."
23180 msgstr ""
23181
23182 # type: =head1
23183 #. type: =head1
23184 #: ../fish/guestfish.pod:1065 ../test-tool/libguestfs-test-tool.pod:88
23185 msgid "FILES"
23186 msgstr ""
23187
23188 # type: =item
23189 #. type: =item
23190 #: ../fish/guestfish.pod:1069
23191 msgid "$HOME/.guestfish"
23192 msgstr ""
23193
23194 # type: textblock
23195 #. type: textblock
23196 #: ../fish/guestfish.pod:1071
23197 msgid ""
23198 "If compiled with GNU readline support, then the command history is saved in "
23199 "this file."
23200 msgstr ""
23201
23202 # type: =item
23203 #. type: =item
23204 #: ../fish/guestfish.pod:1074
23205 msgid "$HOME/.inputrc"
23206 msgstr ""
23207
23208 # type: =item
23209 #. type: =item
23210 #: ../fish/guestfish.pod:1076
23211 msgid "/etc/inputrc"
23212 msgstr ""
23213
23214 # type: textblock
23215 #. type: textblock
23216 #: ../fish/guestfish.pod:1078
23217 msgid ""
23218 "If compiled with GNU readline support, then these files can be used to "
23219 "configure readline.  For further information, please see L<readline(3)/"
23220 "INITIALIZATION FILE>."
23221 msgstr ""
23222
23223 # type: textblock
23224 #. type: textblock
23225 #: ../fish/guestfish.pod:1082
23226 msgid "To write rules which only apply to guestfish, use:"
23227 msgstr ""
23228
23229 # type: verbatim
23230 #. type: verbatim
23231 #: ../fish/guestfish.pod:1084
23232 #, no-wrap
23233 msgid ""
23234 " $if guestfish\n"
23235 " ...\n"
23236 " $endif\n"
23237 "\n"
23238 msgstr ""
23239
23240 # type: textblock
23241 #. type: textblock
23242 #: ../fish/guestfish.pod:1088
23243 msgid ""
23244 "Variables that you can set in inputrc that change the behaviour of guestfish "
23245 "in useful ways include:"
23246 msgstr ""
23247
23248 # type: =item
23249 #. type: =item
23250 #: ../fish/guestfish.pod:1093
23251 msgid "completion-ignore-case (default: on)"
23252 msgstr ""
23253
23254 # type: textblock
23255 #. type: textblock
23256 #: ../fish/guestfish.pod:1095
23257 msgid ""
23258 "By default, guestfish will ignore case when tab-completing paths on the "
23259 "disk.  Use:"
23260 msgstr ""
23261
23262 # type: verbatim
23263 #. type: verbatim
23264 #: ../fish/guestfish.pod:1098
23265 #, no-wrap
23266 msgid ""
23267 " set completion-ignore-case off\n"
23268 "\n"
23269 msgstr ""
23270
23271 # type: textblock
23272 #. type: textblock
23273 #: ../fish/guestfish.pod:1100
23274 msgid "to make guestfish case sensitive."
23275 msgstr ""
23276
23277 # type: =item
23278 #. type: =item
23279 #: ../fish/guestfish.pod:1104
23280 msgid "test1.img"
23281 msgstr ""
23282
23283 # type: =item
23284 #. type: =item
23285 #: ../fish/guestfish.pod:1106
23286 msgid "test2.img (etc)"
23287 msgstr ""
23288
23289 # type: textblock
23290 #. type: textblock
23291 #: ../fish/guestfish.pod:1108
23292 msgid ""
23293 "When using the C<-N> or C<--new> option, the prepared disk or filesystem "
23294 "will be created in the file C<test1.img> in the current directory.  The "
23295 "second use of C<-N> will use C<test2.img> and so on.  Any existing file with "
23296 "the same name will be overwritten."
23297 msgstr ""
23298
23299 #. type: textblock
23300 #: ../fish/guestfish.pod:1117
23301 msgid ""
23302 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
23303 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
23304 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
23305 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
23306 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
23307 ">, L<hexedit(1)>."
23308 msgstr ""
23309
23310 # type: textblock
23311 #. type: textblock
23312 #: ../fish/guestfish.pod:1147 ../test-tool/libguestfs-test-tool.pod:124
23313 #: ../fuse/guestmount.pod:253 ../tools/virt-edit.pl:372
23314 #: ../tools/virt-win-reg.pl:606 ../tools/virt-resize.pl:1512
23315 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-tar.pl:309
23316 #: ../tools/virt-make-fs.pl:567 ../tools/virt-list-partitions.pl:277
23317 msgid ""
23318 "This program is free software; you can redistribute it and/or modify it "
23319 "under the terms of the GNU General Public License as published by the Free "
23320 "Software Foundation; either version 2 of the License, or (at your option) "
23321 "any later version."
23322 msgstr ""
23323
23324 # type: textblock
23325 #. type: textblock
23326 #: ../fish/guestfish.pod:1152 ../test-tool/libguestfs-test-tool.pod:129
23327 #: ../fuse/guestmount.pod:258 ../tools/virt-edit.pl:377
23328 #: ../tools/virt-win-reg.pl:611 ../tools/virt-resize.pl:1517
23329 #: ../tools/virt-list-filesystems.pl:215 ../tools/virt-tar.pl:314
23330 #: ../tools/virt-make-fs.pl:572 ../tools/virt-list-partitions.pl:282
23331 msgid ""
23332 "This program is distributed in the hope that it will be useful, but WITHOUT "
23333 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
23334 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
23335 "more details."
23336 msgstr ""
23337
23338 # type: textblock
23339 #. type: textblock
23340 #: ../fish/guestfish.pod:1157 ../test-tool/libguestfs-test-tool.pod:134
23341 #: ../fuse/guestmount.pod:263 ../tools/virt-edit.pl:382
23342 #: ../tools/virt-win-reg.pl:616 ../tools/virt-resize.pl:1522
23343 #: ../tools/virt-list-filesystems.pl:220 ../tools/virt-tar.pl:319
23344 #: ../tools/virt-make-fs.pl:577 ../tools/virt-list-partitions.pl:287
23345 msgid ""
23346 "You should have received a copy of the GNU General Public License along with "
23347 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
23348 "Ave, Cambridge, MA 02139, USA."
23349 msgstr ""
23350
23351 # type: =head2
23352 #. type: =head2
23353 #: ../fish/guestfish-actions.pod:1
23354 msgid "add-cdrom"
23355 msgstr ""
23356
23357 # type: verbatim
23358 #. type: verbatim
23359 #: ../fish/guestfish-actions.pod:3
23360 #, no-wrap
23361 msgid ""
23362 " add-cdrom filename\n"
23363 "\n"
23364 msgstr ""
23365
23366 # type: textblock
23367 #. type: textblock
23368 #: ../fish/guestfish-actions.pod:15
23369 msgid ""
23370 "This call checks for the existence of C<filename>.  This stops you from "
23371 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23372 "and C<http:> URLs.  To specify those, use the general L</config> call "
23373 "instead."
23374 msgstr ""
23375
23376 # type: textblock
23377 #. type: textblock
23378 #: ../fish/guestfish-actions.pod:22
23379 msgid ""
23380 "If you just want to add an ISO file (often you use this as an efficient way "
23381 "to transfer large files into the guest), then you should probably use L</add-"
23382 "drive-ro> instead."
23383 msgstr ""
23384
23385 # type: =head2
23386 #. type: =head2
23387 #: ../fish/guestfish-actions.pod:35
23388 msgid "add-domain"
23389 msgstr ""
23390
23391 # type: =head2
23392 #. type: =head2
23393 #: ../fish/guestfish-actions.pod:37
23394 msgid "domain"
23395 msgstr ""
23396
23397 # type: verbatim
23398 #. type: verbatim
23399 #: ../fish/guestfish-actions.pod:39
23400 #, no-wrap
23401 msgid ""
23402 " add-domain dom [libvirturi:..] [readonly:..] [iface:..]\n"
23403 "\n"
23404 msgstr ""
23405
23406 # type: textblock
23407 #. type: textblock
23408 #: ../fish/guestfish-actions.pod:41
23409 msgid ""
23410 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23411 "It works by connecting to libvirt, requesting the domain and domain XML from "
23412 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
23413 msgstr ""
23414
23415 # type: textblock
23416 #. type: textblock
23417 #: ../fish/guestfish-actions.pod:64
23418 msgid ""
23419 "The other optional parameters are passed directly through to L</add-drive-"
23420 "opts>."
23421 msgstr ""
23422
23423 # type: textblock
23424 #. type: textblock
23425 #: ../fish/guestfish-actions.pod:67 ../fish/guestfish-actions.pod:131
23426 #: ../fish/guestfish-actions.pod:2921
23427 msgid ""
23428 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
23429 msgstr ""
23430
23431 # type: =head2
23432 #. type: =head2
23433 #: ../fish/guestfish-actions.pod:69
23434 msgid "add-drive"
23435 msgstr ""
23436
23437 # type: verbatim
23438 #. type: verbatim
23439 #: ../fish/guestfish-actions.pod:71
23440 #, no-wrap
23441 msgid ""
23442 " add-drive filename\n"
23443 "\n"
23444 msgstr ""
23445
23446 # type: textblock
23447 #. type: textblock
23448 #: ../fish/guestfish-actions.pod:73
23449 msgid ""
23450 "This function is the equivalent of calling L</add-drive-opts> with no "
23451 "optional parameters, so the disk is added writable, with the format being "
23452 "detected automatically."
23453 msgstr ""
23454
23455 # type: textblock
23456 #. type: textblock
23457 #: ../fish/guestfish-actions.pod:77
23458 msgid ""
23459 "Automatic detection of the format opens you up to a potential security hole "
23460 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23461 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23462 "you should think about replacing calls to this function with calls to L</add-"
23463 "drive-opts>, and specifying the format."
23464 msgstr ""
23465
23466 # type: =head2
23467 #. type: =head2
23468 #: ../fish/guestfish-actions.pod:84
23469 msgid "add-drive-opts"
23470 msgstr ""
23471
23472 # type: =head2
23473 #. type: =head2
23474 #: ../fish/guestfish-actions.pod:86
23475 msgid "add"
23476 msgstr ""
23477
23478 # type: verbatim
23479 #. type: verbatim
23480 #: ../fish/guestfish-actions.pod:88
23481 #, no-wrap
23482 msgid ""
23483 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
23484 "\n"
23485 msgstr ""
23486
23487 # type: textblock
23488 #. type: textblock
23489 #: ../fish/guestfish-actions.pod:115
23490 msgid ""
23491 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
23492 "add-drive-ro>) then the format is automatically detected.  Possible formats "
23493 "include C<raw> and C<qcow2>."
23494 msgstr ""
23495
23496 # type: textblock
23497 #. type: textblock
23498 #: ../fish/guestfish-actions.pod:126
23499 msgid ""
23500 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
23501 "add-drive-with-if> call (q.v.)"
23502 msgstr ""
23503
23504 # type: =head2
23505 #. type: =head2
23506 #: ../fish/guestfish-actions.pod:133
23507 msgid "add-drive-ro"
23508 msgstr ""
23509
23510 # type: =head2
23511 #. type: =head2
23512 #: ../fish/guestfish-actions.pod:135
23513 msgid "add-ro"
23514 msgstr ""
23515
23516 # type: verbatim
23517 #. type: verbatim
23518 #: ../fish/guestfish-actions.pod:137
23519 #, no-wrap
23520 msgid ""
23521 " add-drive-ro filename\n"
23522 "\n"
23523 msgstr ""
23524
23525 # type: textblock
23526 #. type: textblock
23527 #: ../fish/guestfish-actions.pod:139
23528 msgid ""
23529 "This function is the equivalent of calling L</add-drive-opts> with the "
23530 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
23531 "is added read-only, with the format being detected automatically."
23532 msgstr ""
23533
23534 # type: =head2
23535 #. type: =head2
23536 #: ../fish/guestfish-actions.pod:144
23537 msgid "add-drive-ro-with-if"
23538 msgstr ""
23539
23540 # type: verbatim
23541 #. type: verbatim
23542 #: ../fish/guestfish-actions.pod:146
23543 #, no-wrap
23544 msgid ""
23545 " add-drive-ro-with-if filename iface\n"
23546 "\n"
23547 msgstr ""
23548
23549 # type: textblock
23550 #. type: textblock
23551 #: ../fish/guestfish-actions.pod:148
23552 msgid ""
23553 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
23554 "interface emulation to use at run time."
23555 msgstr ""
23556
23557 # type: =head2
23558 #. type: =head2
23559 #: ../fish/guestfish-actions.pod:158
23560 msgid "add-drive-with-if"
23561 msgstr ""
23562
23563 # type: verbatim
23564 #. type: verbatim
23565 #: ../fish/guestfish-actions.pod:160
23566 #, no-wrap
23567 msgid ""
23568 " add-drive-with-if filename iface\n"
23569 "\n"
23570 msgstr ""
23571
23572 # type: textblock
23573 #. type: textblock
23574 #: ../fish/guestfish-actions.pod:162
23575 msgid ""
23576 "This is the same as L</add-drive> but it allows you to specify the QEMU "
23577 "interface emulation to use at run time."
23578 msgstr ""
23579
23580 # type: =head2
23581 #. type: =head2
23582 #: ../fish/guestfish-actions.pod:172
23583 msgid "aug-clear"
23584 msgstr ""
23585
23586 # type: verbatim
23587 #. type: verbatim
23588 #: ../fish/guestfish-actions.pod:174
23589 #, no-wrap
23590 msgid ""
23591 " aug-clear augpath\n"
23592 "\n"
23593 msgstr ""
23594
23595 # type: =head2
23596 #. type: =head2
23597 #: ../fish/guestfish-actions.pod:179
23598 msgid "aug-close"
23599 msgstr ""
23600
23601 # type: verbatim
23602 #. type: verbatim
23603 #: ../fish/guestfish-actions.pod:181
23604 #, no-wrap
23605 msgid ""
23606 " aug-close\n"
23607 "\n"
23608 msgstr ""
23609
23610 # type: textblock
23611 #. type: textblock
23612 #: ../fish/guestfish-actions.pod:183
23613 msgid ""
23614 "Close the current Augeas handle and free up any resources used by it.  After "
23615 "calling this, you have to call L</aug-init> again before you can use any "
23616 "other Augeas functions."
23617 msgstr ""
23618
23619 # type: =head2
23620 #. type: =head2
23621 #: ../fish/guestfish-actions.pod:188
23622 msgid "aug-defnode"
23623 msgstr ""
23624
23625 # type: verbatim
23626 #. type: verbatim
23627 #: ../fish/guestfish-actions.pod:190
23628 #, no-wrap
23629 msgid ""
23630 " aug-defnode name expr val\n"
23631 "\n"
23632 msgstr ""
23633
23634 # type: textblock
23635 #. type: textblock
23636 #: ../fish/guestfish-actions.pod:195
23637 msgid ""
23638 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23639 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
23640 "containing that single node."
23641 msgstr ""
23642
23643 # type: =head2
23644 #. type: =head2
23645 #: ../fish/guestfish-actions.pod:203
23646 msgid "aug-defvar"
23647 msgstr ""
23648
23649 # type: verbatim
23650 #. type: verbatim
23651 #: ../fish/guestfish-actions.pod:205
23652 #, no-wrap
23653 msgid ""
23654 " aug-defvar name expr\n"
23655 "\n"
23656 msgstr ""
23657
23658 # type: =head2
23659 #. type: =head2
23660 #: ../fish/guestfish-actions.pod:214
23661 msgid "aug-get"
23662 msgstr ""
23663
23664 # type: verbatim
23665 #. type: verbatim
23666 #: ../fish/guestfish-actions.pod:216
23667 #, no-wrap
23668 msgid ""
23669 " aug-get augpath\n"
23670 "\n"
23671 msgstr ""
23672
23673 # type: =head2
23674 #. type: =head2
23675 #: ../fish/guestfish-actions.pod:221
23676 msgid "aug-init"
23677 msgstr ""
23678
23679 # type: verbatim
23680 #. type: verbatim
23681 #: ../fish/guestfish-actions.pod:223
23682 #, no-wrap
23683 msgid ""
23684 " aug-init root flags\n"
23685 "\n"
23686 msgstr ""
23687
23688 # type: textblock
23689 #. type: textblock
23690 #: ../fish/guestfish-actions.pod:229
23691 msgid "You must call this before using any other L</aug-*> commands."
23692 msgstr ""
23693
23694 # type: textblock
23695 #. type: textblock
23696 #: ../fish/guestfish-actions.pod:264
23697 msgid "Do not load the tree in L</aug-init>."
23698 msgstr ""
23699
23700 # type: textblock
23701 #. type: textblock
23702 #: ../fish/guestfish-actions.pod:268
23703 msgid "To close the handle, you can call L</aug-close>."
23704 msgstr ""
23705
23706 # type: =head2
23707 #. type: =head2
23708 #: ../fish/guestfish-actions.pod:272
23709 msgid "aug-insert"
23710 msgstr ""
23711
23712 # type: verbatim
23713 #. type: verbatim
23714 #: ../fish/guestfish-actions.pod:274
23715 #, no-wrap
23716 msgid ""
23717 " aug-insert augpath label true|false\n"
23718 "\n"
23719 msgstr ""
23720
23721 # type: =head2
23722 #. type: =head2
23723 #: ../fish/guestfish-actions.pod:284
23724 msgid "aug-load"
23725 msgstr ""
23726
23727 # type: verbatim
23728 #. type: verbatim
23729 #: ../fish/guestfish-actions.pod:286
23730 #, no-wrap
23731 msgid ""
23732 " aug-load\n"
23733 "\n"
23734 msgstr ""
23735
23736 # type: =head2
23737 #. type: =head2
23738 #: ../fish/guestfish-actions.pod:293
23739 msgid "aug-ls"
23740 msgstr ""
23741
23742 # type: verbatim
23743 #. type: verbatim
23744 #: ../fish/guestfish-actions.pod:295
23745 #, no-wrap
23746 msgid ""
23747 " aug-ls augpath\n"
23748 "\n"
23749 msgstr ""
23750
23751 # type: textblock
23752 #. type: textblock
23753 #: ../fish/guestfish-actions.pod:297
23754 msgid ""
23755 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
23756 "resulting nodes into alphabetical order."
23757 msgstr ""
23758
23759 # type: =head2
23760 #. type: =head2
23761 #: ../fish/guestfish-actions.pod:300
23762 msgid "aug-match"
23763 msgstr ""
23764
23765 # type: verbatim
23766 #. type: verbatim
23767 #: ../fish/guestfish-actions.pod:302
23768 #, no-wrap
23769 msgid ""
23770 " aug-match augpath\n"
23771 "\n"
23772 msgstr ""
23773
23774 # type: =head2
23775 #. type: =head2
23776 #: ../fish/guestfish-actions.pod:308
23777 msgid "aug-mv"
23778 msgstr ""
23779
23780 # type: verbatim
23781 #. type: verbatim
23782 #: ../fish/guestfish-actions.pod:310
23783 #, no-wrap
23784 msgid ""
23785 " aug-mv src dest\n"
23786 "\n"
23787 msgstr ""
23788
23789 # type: =head2
23790 #. type: =head2
23791 #: ../fish/guestfish-actions.pod:315
23792 msgid "aug-rm"
23793 msgstr ""
23794
23795 # type: verbatim
23796 #. type: verbatim
23797 #: ../fish/guestfish-actions.pod:317
23798 #, no-wrap
23799 msgid ""
23800 " aug-rm augpath\n"
23801 "\n"
23802 msgstr ""
23803
23804 # type: =head2
23805 #. type: =head2
23806 #: ../fish/guestfish-actions.pod:323
23807 msgid "aug-save"
23808 msgstr ""
23809
23810 # type: verbatim
23811 #. type: verbatim
23812 #: ../fish/guestfish-actions.pod:325
23813 #, no-wrap
23814 msgid ""
23815 " aug-save\n"
23816 "\n"
23817 msgstr ""
23818
23819 # type: textblock
23820 #. type: textblock
23821 #: ../fish/guestfish-actions.pod:329
23822 msgid ""
23823 "The flags which were passed to L</aug-init> affect exactly how files are "
23824 "saved."
23825 msgstr ""
23826
23827 # type: =head2
23828 #. type: =head2
23829 #: ../fish/guestfish-actions.pod:332
23830 msgid "aug-set"
23831 msgstr ""
23832
23833 # type: verbatim
23834 #. type: verbatim
23835 #: ../fish/guestfish-actions.pod:334
23836 #, no-wrap
23837 msgid ""
23838 " aug-set augpath val\n"
23839 "\n"
23840 msgstr ""
23841
23842 # type: textblock
23843 #. type: textblock
23844 #: ../fish/guestfish-actions.pod:338
23845 msgid ""
23846 "In the Augeas API, it is possible to clear a node by setting the value to "
23847 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23848 "this call.  Instead you must use the L</aug-clear> call."
23849 msgstr ""
23850
23851 # type: =head2
23852 #. type: =head2
23853 #: ../fish/guestfish-actions.pod:343
23854 msgid "available"
23855 msgstr ""
23856
23857 # type: verbatim
23858 #. type: verbatim
23859 #: ../fish/guestfish-actions.pod:345
23860 #, no-wrap
23861 msgid ""
23862 " available 'groups ...'\n"
23863 "\n"
23864 msgstr ""
23865
23866 # type: textblock
23867 #. type: textblock
23868 #: ../fish/guestfish-actions.pod:351
23869 msgid ""
23870 "The libguestfs groups, and the functions that those groups correspond to, "
23871 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23872 "runtime by calling L</available-all-groups>."
23873 msgstr ""
23874
23875 # type: textblock
23876 #. type: textblock
23877 #: ../fish/guestfish-actions.pod:375
23878 msgid "You must call L</launch> before calling this function."
23879 msgstr ""
23880
23881 # type: textblock
23882 #. type: textblock
23883 #: ../fish/guestfish-actions.pod:397
23884 msgid ""
23885 "This call was added in version C<1.0.80>.  In previous versions of "
23886 "libguestfs all you could do would be to speculatively execute a command to "
23887 "find out if the daemon implemented it.  See also L</version>."
23888 msgstr ""
23889
23890 # type: =head2
23891 #. type: =head2
23892 #: ../fish/guestfish-actions.pod:404
23893 msgid "available-all-groups"
23894 msgstr ""
23895
23896 # type: verbatim
23897 #. type: verbatim
23898 #: ../fish/guestfish-actions.pod:406
23899 #, no-wrap
23900 msgid ""
23901 " available-all-groups\n"
23902 "\n"
23903 msgstr ""
23904
23905 # type: textblock
23906 #. type: textblock
23907 #: ../fish/guestfish-actions.pod:408
23908 msgid ""
23909 "This command returns a list of all optional groups that this daemon knows "
23910 "about.  Note this returns both supported and unsupported groups.  To find "
23911 "out which ones the daemon can actually support you have to call L</"
23912 "available> on each member of the returned list."
23913 msgstr ""
23914
23915 # type: textblock
23916 #. type: textblock
23917 #: ../fish/guestfish-actions.pod:414
23918 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
23919 msgstr ""
23920
23921 # type: =head2
23922 #. type: =head2
23923 #: ../fish/guestfish-actions.pod:416
23924 msgid "base64-in"
23925 msgstr ""
23926
23927 # type: verbatim
23928 #. type: verbatim
23929 #: ../fish/guestfish-actions.pod:418
23930 #, no-wrap
23931 msgid ""
23932 " base64-in (base64file|-) filename\n"
23933 "\n"
23934 msgstr ""
23935
23936 # type: textblock
23937 #. type: textblock
23938 #: ../fish/guestfish-actions.pod:423 ../fish/guestfish-actions.pod:432
23939 #: ../fish/guestfish-actions.pod:656 ../fish/guestfish-actions.pod:825
23940 #: ../fish/guestfish-actions.pod:844 ../fish/guestfish-actions.pod:1221
23941 #: ../fish/guestfish-actions.pod:4289 ../fish/guestfish-actions.pod:4301
23942 #: ../fish/guestfish-actions.pod:4312 ../fish/guestfish-actions.pod:4323
23943 #: ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4384
23944 #: ../fish/guestfish-actions.pod:4438 ../fish/guestfish-actions.pod:4461
23945 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
23946 msgstr ""
23947
23948 # type: =head2
23949 #. type: =head2
23950 #: ../fish/guestfish-actions.pod:425
23951 msgid "base64-out"
23952 msgstr ""
23953
23954 # type: verbatim
23955 #. type: verbatim
23956 #: ../fish/guestfish-actions.pod:427
23957 #, no-wrap
23958 msgid ""
23959 " base64-out filename (base64file|-)\n"
23960 "\n"
23961 msgstr ""
23962
23963 # type: =head2
23964 #. type: =head2
23965 #: ../fish/guestfish-actions.pod:434
23966 msgid "blockdev-flushbufs"
23967 msgstr ""
23968
23969 # type: verbatim
23970 #. type: verbatim
23971 #: ../fish/guestfish-actions.pod:436
23972 #, no-wrap
23973 msgid ""
23974 " blockdev-flushbufs device\n"
23975 "\n"
23976 msgstr ""
23977
23978 # type: =head2
23979 #. type: =head2
23980 #: ../fish/guestfish-actions.pod:443
23981 msgid "blockdev-getbsz"
23982 msgstr ""
23983
23984 # type: verbatim
23985 #. type: verbatim
23986 #: ../fish/guestfish-actions.pod:445
23987 #, no-wrap
23988 msgid ""
23989 " blockdev-getbsz device\n"
23990 "\n"
23991 msgstr ""
23992
23993 # type: =head2
23994 #. type: =head2
23995 #: ../fish/guestfish-actions.pod:454
23996 msgid "blockdev-getro"
23997 msgstr ""
23998
23999 # type: verbatim
24000 #. type: verbatim
24001 #: ../fish/guestfish-actions.pod:456
24002 #, no-wrap
24003 msgid ""
24004 " blockdev-getro device\n"
24005 "\n"
24006 msgstr ""
24007
24008 # type: =head2
24009 #. type: =head2
24010 #: ../fish/guestfish-actions.pod:463
24011 msgid "blockdev-getsize64"
24012 msgstr ""
24013
24014 # type: verbatim
24015 #. type: verbatim
24016 #: ../fish/guestfish-actions.pod:465
24017 #, no-wrap
24018 msgid ""
24019 " blockdev-getsize64 device\n"
24020 "\n"
24021 msgstr ""
24022
24023 # type: textblock
24024 #. type: textblock
24025 #: ../fish/guestfish-actions.pod:469
24026 msgid "See also L</blockdev-getsz>."
24027 msgstr ""
24028
24029 # type: =head2
24030 #. type: =head2
24031 #: ../fish/guestfish-actions.pod:473
24032 msgid "blockdev-getss"
24033 msgstr ""
24034
24035 # type: verbatim
24036 #. type: verbatim
24037 #: ../fish/guestfish-actions.pod:475
24038 #, no-wrap
24039 msgid ""
24040 " blockdev-getss device\n"
24041 "\n"
24042 msgstr ""
24043
24044 # type: textblock
24045 #. type: textblock
24046 #: ../fish/guestfish-actions.pod:480
24047 msgid ""
24048 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
24049 msgstr ""
24050
24051 # type: =head2
24052 #. type: =head2
24053 #: ../fish/guestfish-actions.pod:485
24054 msgid "blockdev-getsz"
24055 msgstr ""
24056
24057 # type: verbatim
24058 #. type: verbatim
24059 #: ../fish/guestfish-actions.pod:487
24060 #, no-wrap
24061 msgid ""
24062 " blockdev-getsz device\n"
24063 "\n"
24064 msgstr ""
24065
24066 # type: textblock
24067 #. type: textblock
24068 #: ../fish/guestfish-actions.pod:492
24069 msgid ""
24070 "See also L</blockdev-getss> for the real sector size of the device, and L</"
24071 "blockdev-getsize64> for the more useful I<size in bytes>."
24072 msgstr ""
24073
24074 # type: =head2
24075 #. type: =head2
24076 #: ../fish/guestfish-actions.pod:498
24077 msgid "blockdev-rereadpt"
24078 msgstr ""
24079
24080 # type: verbatim
24081 #. type: verbatim
24082 #: ../fish/guestfish-actions.pod:500
24083 #, no-wrap
24084 msgid ""
24085 " blockdev-rereadpt device\n"
24086 "\n"
24087 msgstr ""
24088
24089 # type: =head2
24090 #. type: =head2
24091 #: ../fish/guestfish-actions.pod:506
24092 msgid "blockdev-setbsz"
24093 msgstr ""
24094
24095 # type: verbatim
24096 #. type: verbatim
24097 #: ../fish/guestfish-actions.pod:508
24098 #, no-wrap
24099 msgid ""
24100 " blockdev-setbsz device blocksize\n"
24101 "\n"
24102 msgstr ""
24103
24104 # type: =head2
24105 #. type: =head2
24106 #: ../fish/guestfish-actions.pod:517
24107 msgid "blockdev-setro"
24108 msgstr ""
24109
24110 # type: verbatim
24111 #. type: verbatim
24112 #: ../fish/guestfish-actions.pod:519
24113 #, no-wrap
24114 msgid ""
24115 " blockdev-setro device\n"
24116 "\n"
24117 msgstr ""
24118
24119 # type: =head2
24120 #. type: =head2
24121 #: ../fish/guestfish-actions.pod:525
24122 msgid "blockdev-setrw"
24123 msgstr ""
24124
24125 # type: verbatim
24126 #. type: verbatim
24127 #: ../fish/guestfish-actions.pod:527
24128 #, no-wrap
24129 msgid ""
24130 " blockdev-setrw device\n"
24131 "\n"
24132 msgstr ""
24133
24134 # type: =head2
24135 #. type: =head2
24136 #: ../fish/guestfish-actions.pod:533
24137 msgid "case-sensitive-path"
24138 msgstr ""
24139
24140 # type: verbatim
24141 #. type: verbatim
24142 #: ../fish/guestfish-actions.pod:535
24143 #, no-wrap
24144 msgid ""
24145 " case-sensitive-path path\n"
24146 "\n"
24147 msgstr ""
24148
24149 # type: textblock
24150 #. type: textblock
24151 #: ../fish/guestfish-actions.pod:559
24152 msgid ""
24153 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
24154 "WINDOWS/system32\"> (the exact return value would depend on details of how "
24155 "the directories were originally created under Windows)."
24156 msgstr ""
24157
24158 # type: textblock
24159 #. type: textblock
24160 #: ../fish/guestfish-actions.pod:567
24161 msgid "See also L</realpath>."
24162 msgstr ""
24163
24164 # type: =head2
24165 #. type: =head2
24166 #: ../fish/guestfish-actions.pod:569
24167 msgid "cat"
24168 msgstr ""
24169
24170 # type: verbatim
24171 #. type: verbatim
24172 #: ../fish/guestfish-actions.pod:571
24173 #, no-wrap
24174 msgid ""
24175 " cat path\n"
24176 "\n"
24177 msgstr ""
24178
24179 # type: textblock
24180 #. type: textblock
24181 #: ../fish/guestfish-actions.pod:575
24182 msgid ""
24183 "Note that this function cannot correctly handle binary files (specifically, "
24184 "files containing C<\\0> character which is treated as end of string).  For "
24185 "those you need to use the L</read-file> or L</download> functions which have "
24186 "a more complex interface."
24187 msgstr ""
24188
24189 # type: =head2
24190 #. type: =head2
24191 #: ../fish/guestfish-actions.pod:583
24192 msgid "checksum"
24193 msgstr ""
24194
24195 # type: verbatim
24196 #. type: verbatim
24197 #: ../fish/guestfish-actions.pod:585
24198 #, no-wrap
24199 msgid ""
24200 " checksum csumtype path\n"
24201 "\n"
24202 msgstr ""
24203
24204 # type: textblock
24205 #. type: textblock
24206 #: ../fish/guestfish-actions.pod:628
24207 msgid "To get the checksum for a device, use L</checksum-device>."
24208 msgstr ""
24209
24210 # type: textblock
24211 #. type: textblock
24212 #: ../fish/guestfish-actions.pod:630
24213 msgid "To get the checksums for many files, use L</checksums-out>."
24214 msgstr ""
24215
24216 # type: =head2
24217 #. type: =head2
24218 #: ../fish/guestfish-actions.pod:632
24219 msgid "checksum-device"
24220 msgstr ""
24221
24222 # type: verbatim
24223 #. type: verbatim
24224 #: ../fish/guestfish-actions.pod:634
24225 #, no-wrap
24226 msgid ""
24227 " checksum-device csumtype device\n"
24228 "\n"
24229 msgstr ""
24230
24231 # type: textblock
24232 #. type: textblock
24233 #: ../fish/guestfish-actions.pod:636
24234 msgid ""
24235 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24236 "device named C<device>.  For the types of checksums supported see the L</"
24237 "checksum> command."
24238 msgstr ""
24239
24240 # type: =head2
24241 #. type: =head2
24242 #: ../fish/guestfish-actions.pod:640
24243 msgid "checksums-out"
24244 msgstr ""
24245
24246 # type: verbatim
24247 #. type: verbatim
24248 #: ../fish/guestfish-actions.pod:642
24249 #, no-wrap
24250 msgid ""
24251 " checksums-out csumtype directory (sumsfile|-)\n"
24252 "\n"
24253 msgstr ""
24254
24255 # type: =head2
24256 #. type: =head2
24257 #: ../fish/guestfish-actions.pod:658
24258 msgid "chmod"
24259 msgstr ""
24260
24261 # type: verbatim
24262 #. type: verbatim
24263 #: ../fish/guestfish-actions.pod:660
24264 #, no-wrap
24265 msgid ""
24266 " chmod mode path\n"
24267 "\n"
24268 msgstr ""
24269
24270 # type: =head2
24271 #. type: =head2
24272 #: ../fish/guestfish-actions.pod:671
24273 msgid "chown"
24274 msgstr ""
24275
24276 # type: verbatim
24277 #. type: verbatim
24278 #: ../fish/guestfish-actions.pod:673
24279 #, no-wrap
24280 msgid ""
24281 " chown owner group path\n"
24282 "\n"
24283 msgstr ""
24284
24285 # type: =head2
24286 #. type: =head2
24287 #: ../fish/guestfish-actions.pod:681
24288 msgid "command"
24289 msgstr ""
24290
24291 # type: verbatim
24292 #. type: verbatim
24293 #: ../fish/guestfish-actions.pod:683
24294 #, no-wrap
24295 msgid ""
24296 " command 'arguments ...'\n"
24297 "\n"
24298 msgstr ""
24299
24300 # type: textblock
24301 #. type: textblock
24302 #: ../fish/guestfish-actions.pod:690
24303 msgid ""
24304 "The single parameter is an argv-style list of arguments.  The first element "
24305 "is the name of the program to run.  Subsequent elements are parameters.  The "
24306 "list must be non-empty (ie. must contain a program name).  Note that the "
24307 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
24308 msgstr ""
24309
24310 # type: =head2
24311 #. type: =head2
24312 #: ../fish/guestfish-actions.pod:718
24313 msgid "command-lines"
24314 msgstr ""
24315
24316 # type: verbatim
24317 #. type: verbatim
24318 #: ../fish/guestfish-actions.pod:720
24319 #, no-wrap
24320 msgid ""
24321 " command-lines 'arguments ...'\n"
24322 "\n"
24323 msgstr ""
24324
24325 # type: textblock
24326 #. type: textblock
24327 #: ../fish/guestfish-actions.pod:722
24328 msgid ""
24329 "This is the same as L</command>, but splits the result into a list of lines."
24330 msgstr ""
24331
24332 # type: textblock
24333 #. type: textblock
24334 #: ../fish/guestfish-actions.pod:725
24335 msgid "See also: L</sh-lines>"
24336 msgstr ""
24337
24338 # type: =head2
24339 #. type: =head2
24340 #: ../fish/guestfish-actions.pod:730
24341 msgid "config"
24342 msgstr ""
24343
24344 # type: verbatim
24345 #. type: verbatim
24346 #: ../fish/guestfish-actions.pod:732
24347 #, no-wrap
24348 msgid ""
24349 " config qemuparam qemuvalue\n"
24350 "\n"
24351 msgstr ""
24352
24353 # type: =head2
24354 #. type: =head2
24355 #: ../fish/guestfish-actions.pod:743
24356 msgid "copy-size"
24357 msgstr ""
24358
24359 # type: verbatim
24360 #. type: verbatim
24361 #: ../fish/guestfish-actions.pod:745
24362 #, no-wrap
24363 msgid ""
24364 " copy-size src dest size\n"
24365 "\n"
24366 msgstr ""
24367
24368 # type: =head2
24369 #. type: =head2
24370 #: ../fish/guestfish-actions.pod:753
24371 msgid "cp"
24372 msgstr ""
24373
24374 # type: verbatim
24375 #. type: verbatim
24376 #: ../fish/guestfish-actions.pod:755
24377 #, no-wrap
24378 msgid ""
24379 " cp src dest\n"
24380 "\n"
24381 msgstr ""
24382
24383 # type: =head2
24384 #. type: =head2
24385 #: ../fish/guestfish-actions.pod:760
24386 msgid "cp-a"
24387 msgstr ""
24388
24389 # type: verbatim
24390 #. type: verbatim
24391 #: ../fish/guestfish-actions.pod:762
24392 #, no-wrap
24393 msgid ""
24394 " cp-a src dest\n"
24395 "\n"
24396 msgstr ""
24397
24398 # type: =head2
24399 #. type: =head2
24400 #: ../fish/guestfish-actions.pod:767
24401 msgid "dd"
24402 msgstr ""
24403
24404 # type: verbatim
24405 #. type: verbatim
24406 #: ../fish/guestfish-actions.pod:769
24407 #, no-wrap
24408 msgid ""
24409 " dd src dest\n"
24410 "\n"
24411 msgstr ""
24412
24413 # type: textblock
24414 #. type: textblock
24415 #: ../fish/guestfish-actions.pod:776
24416 msgid ""
24417 "If the destination is a device, it must be as large or larger than the "
24418 "source file or device, otherwise the copy will fail.  This command cannot do "
24419 "partial copies (see L</copy-size>)."
24420 msgstr ""
24421
24422 # type: =head2
24423 #. type: =head2
24424 #: ../fish/guestfish-actions.pod:780
24425 msgid "df"
24426 msgstr ""
24427
24428 # type: verbatim
24429 #. type: verbatim
24430 #: ../fish/guestfish-actions.pod:782
24431 #, no-wrap
24432 msgid ""
24433 " df\n"
24434 "\n"
24435 msgstr ""
24436
24437 # type: textblock
24438 #. type: textblock
24439 #: ../fish/guestfish-actions.pod:786 ../fish/guestfish-actions.pod:797
24440 msgid ""
24441 "This command is mostly useful for interactive sessions.  It is I<not> "
24442 "intended that you try to parse the output string.  Use L</statvfs> from "
24443 "programs."
24444 msgstr ""
24445
24446 # type: =head2
24447 #. type: =head2
24448 #: ../fish/guestfish-actions.pod:790
24449 msgid "df-h"
24450 msgstr ""
24451
24452 # type: verbatim
24453 #. type: verbatim
24454 #: ../fish/guestfish-actions.pod:792
24455 #, no-wrap
24456 msgid ""
24457 " df-h\n"
24458 "\n"
24459 msgstr ""
24460
24461 # type: =head2
24462 #. type: =head2
24463 #: ../fish/guestfish-actions.pod:801
24464 msgid "dmesg"
24465 msgstr ""
24466
24467 # type: verbatim
24468 #. type: verbatim
24469 #: ../fish/guestfish-actions.pod:803
24470 #, no-wrap
24471 msgid ""
24472 " dmesg\n"
24473 "\n"
24474 msgstr ""
24475
24476 # type: textblock
24477 #. type: textblock
24478 #: ../fish/guestfish-actions.pod:809
24479 msgid ""
24480 "Another way to get the same information is to enable verbose messages with "
24481 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
24482 "before running the program."
24483 msgstr ""
24484
24485 # type: =head2
24486 #. type: =head2
24487 #: ../fish/guestfish-actions.pod:814
24488 msgid "download"
24489 msgstr ""
24490
24491 # type: verbatim
24492 #. type: verbatim
24493 #: ../fish/guestfish-actions.pod:816
24494 #, no-wrap
24495 msgid ""
24496 " download remotefilename (filename|-)\n"
24497 "\n"
24498 msgstr ""
24499
24500 # type: textblock
24501 #. type: textblock
24502 #: ../fish/guestfish-actions.pod:823
24503 msgid "See also L</upload>, L</cat>."
24504 msgstr ""
24505
24506 # type: =head2
24507 #. type: =head2
24508 #: ../fish/guestfish-actions.pod:827
24509 msgid "download-offset"
24510 msgstr ""
24511
24512 # type: verbatim
24513 #. type: verbatim
24514 #: ../fish/guestfish-actions.pod:829
24515 #, no-wrap
24516 msgid ""
24517 " download-offset remotefilename (filename|-) offset size\n"
24518 "\n"
24519 msgstr ""
24520
24521 # type: textblock
24522 #. type: textblock
24523 #: ../fish/guestfish-actions.pod:837
24524 msgid ""
24525 "Note that there is no limit on the amount of data that can be downloaded "
24526 "with this call, unlike with L</pread>, and this call always reads the full "
24527 "amount unless an error occurs."
24528 msgstr ""
24529
24530 # type: textblock
24531 #. type: textblock
24532 #: ../fish/guestfish-actions.pod:842
24533 msgid "See also L</download>, L</pread>."
24534 msgstr ""
24535
24536 # type: =head2
24537 #. type: =head2
24538 #: ../fish/guestfish-actions.pod:846
24539 msgid "drop-caches"
24540 msgstr ""
24541
24542 # type: verbatim
24543 #. type: verbatim
24544 #: ../fish/guestfish-actions.pod:848
24545 #, no-wrap
24546 msgid ""
24547 " drop-caches whattodrop\n"
24548 "\n"
24549 msgstr ""
24550
24551 # type: =head2
24552 #. type: =head2
24553 #: ../fish/guestfish-actions.pod:860
24554 msgid "du"
24555 msgstr ""
24556
24557 # type: verbatim
24558 #. type: verbatim
24559 #: ../fish/guestfish-actions.pod:862
24560 #, no-wrap
24561 msgid ""
24562 " du path\n"
24563 "\n"
24564 msgstr ""
24565
24566 # type: =head2
24567 #. type: =head2
24568 #: ../fish/guestfish-actions.pod:874
24569 msgid "e2fsck-f"
24570 msgstr ""
24571
24572 # type: verbatim
24573 #. type: verbatim
24574 #: ../fish/guestfish-actions.pod:876
24575 #, no-wrap
24576 msgid ""
24577 " e2fsck-f device\n"
24578 "\n"
24579 msgstr ""
24580
24581 # type: textblock
24582 #. type: textblock
24583 #: ../fish/guestfish-actions.pod:882
24584 msgid ""
24585 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
24586 "should use L</fsck>."
24587 msgstr ""
24588
24589 # type: =head2
24590 #. type: =head2
24591 #: ../fish/guestfish-actions.pod:885
24592 msgid "echo-daemon"
24593 msgstr ""
24594
24595 # type: verbatim
24596 #. type: verbatim
24597 #: ../fish/guestfish-actions.pod:887
24598 #, no-wrap
24599 msgid ""
24600 " echo-daemon 'words ...'\n"
24601 "\n"
24602 msgstr ""
24603
24604 # type: textblock
24605 #. type: textblock
24606 #: ../fish/guestfish-actions.pod:894
24607 msgid "See also L</ping-daemon>."
24608 msgstr ""
24609
24610 # type: =head2
24611 #. type: =head2
24612 #: ../fish/guestfish-actions.pod:896
24613 msgid "egrep"
24614 msgstr ""
24615
24616 # type: verbatim
24617 #. type: verbatim
24618 #: ../fish/guestfish-actions.pod:898
24619 #, no-wrap
24620 msgid ""
24621 " egrep regex path\n"
24622 "\n"
24623 msgstr ""
24624
24625 # type: =head2
24626 #. type: =head2
24627 #: ../fish/guestfish-actions.pod:906
24628 msgid "egrepi"
24629 msgstr ""
24630
24631 # type: verbatim
24632 #. type: verbatim
24633 #: ../fish/guestfish-actions.pod:908
24634 #, no-wrap
24635 msgid ""
24636 " egrepi regex path\n"
24637 "\n"
24638 msgstr ""
24639
24640 # type: =head2
24641 #. type: =head2
24642 #: ../fish/guestfish-actions.pod:916
24643 msgid "equal"
24644 msgstr ""
24645
24646 # type: verbatim
24647 #. type: verbatim
24648 #: ../fish/guestfish-actions.pod:918
24649 #, no-wrap
24650 msgid ""
24651 " equal file1 file2\n"
24652 "\n"
24653 msgstr ""
24654
24655 # type: =head2
24656 #. type: =head2
24657 #: ../fish/guestfish-actions.pod:925
24658 msgid "exists"
24659 msgstr ""
24660
24661 # type: verbatim
24662 #. type: verbatim
24663 #: ../fish/guestfish-actions.pod:927
24664 #, no-wrap
24665 msgid ""
24666 " exists path\n"
24667 "\n"
24668 msgstr ""
24669
24670 # type: textblock
24671 #. type: textblock
24672 #: ../fish/guestfish-actions.pod:932
24673 msgid "See also L</is-file>, L</is-dir>, L</stat>."
24674 msgstr ""
24675
24676 # type: =head2
24677 #. type: =head2
24678 #: ../fish/guestfish-actions.pod:934
24679 msgid "fallocate"
24680 msgstr ""
24681
24682 # type: verbatim
24683 #. type: verbatim
24684 #: ../fish/guestfish-actions.pod:936
24685 #, no-wrap
24686 msgid ""
24687 " fallocate path len\n"
24688 "\n"
24689 msgstr ""
24690
24691 # type: =head2
24692 #. type: =head2
24693 #: ../fish/guestfish-actions.pod:953
24694 msgid "fallocate64"
24695 msgstr ""
24696
24697 # type: verbatim
24698 #. type: verbatim
24699 #: ../fish/guestfish-actions.pod:955
24700 #, no-wrap
24701 msgid ""
24702 " fallocate64 path len\n"
24703 "\n"
24704 msgstr ""
24705
24706 # type: textblock
24707 #. type: textblock
24708 #: ../fish/guestfish-actions.pod:961
24709 msgid ""
24710 "Note that this call allocates disk blocks for the file.  To create a sparse "
24711 "file use L</truncate-size> instead."
24712 msgstr ""
24713
24714 # type: textblock
24715 #. type: textblock
24716 #: ../fish/guestfish-actions.pod:964
24717 msgid ""
24718 "The deprecated call L</fallocate> does the same, but owing to an oversight "
24719 "it only allowed 30 bit lengths to be specified, effectively limiting the "
24720 "maximum size of files created through that call to 1GB."
24721 msgstr ""
24722
24723 # type: =head2
24724 #. type: =head2
24725 #: ../fish/guestfish-actions.pod:973
24726 msgid "fgrep"
24727 msgstr ""
24728
24729 # type: verbatim
24730 #. type: verbatim
24731 #: ../fish/guestfish-actions.pod:975
24732 #, no-wrap
24733 msgid ""
24734 " fgrep pattern path\n"
24735 "\n"
24736 msgstr ""
24737
24738 # type: =head2
24739 #. type: =head2
24740 #: ../fish/guestfish-actions.pod:983
24741 msgid "fgrepi"
24742 msgstr ""
24743
24744 # type: verbatim
24745 #. type: verbatim
24746 #: ../fish/guestfish-actions.pod:985
24747 #, no-wrap
24748 msgid ""
24749 " fgrepi pattern path\n"
24750 "\n"
24751 msgstr ""
24752
24753 # type: =head2
24754 #. type: =head2
24755 #: ../fish/guestfish-actions.pod:993
24756 msgid "file"
24757 msgstr ""
24758
24759 # type: verbatim
24760 #. type: verbatim
24761 #: ../fish/guestfish-actions.pod:995
24762 #, no-wrap
24763 msgid ""
24764 " file path\n"
24765 "\n"
24766 msgstr ""
24767
24768 # type: textblock
24769 #. type: textblock
24770 #: ../fish/guestfish-actions.pod:1007
24771 msgid ""
24772 "This command can also be used on C</dev/> devices (and partitions, LV "
24773 "names).  You can for example use this to determine if a device contains a "
24774 "filesystem, although it's usually better to use L</vfs-type>."
24775 msgstr ""
24776
24777 # type: =head2
24778 #. type: =head2
24779 #: ../fish/guestfish-actions.pod:1017
24780 msgid "file-architecture"
24781 msgstr ""
24782
24783 # type: verbatim
24784 #. type: verbatim
24785 #: ../fish/guestfish-actions.pod:1019
24786 #, no-wrap
24787 msgid ""
24788 " file-architecture filename\n"
24789 "\n"
24790 msgstr ""
24791
24792 # type: =head2
24793 #. type: =head2
24794 #: ../fish/guestfish-actions.pod:1122
24795 msgid "filesize"
24796 msgstr ""
24797
24798 # type: verbatim
24799 #. type: verbatim
24800 #: ../fish/guestfish-actions.pod:1124
24801 #, no-wrap
24802 msgid ""
24803 " filesize file\n"
24804 "\n"
24805 msgstr ""
24806
24807 # type: textblock
24808 #. type: textblock
24809 #: ../fish/guestfish-actions.pod:1128
24810 msgid ""
24811 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
24812 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
24813 msgstr ""
24814
24815 # type: =head2
24816 #. type: =head2
24817 #: ../fish/guestfish-actions.pod:1132
24818 msgid "fill"
24819 msgstr ""
24820
24821 # type: verbatim
24822 #. type: verbatim
24823 #: ../fish/guestfish-actions.pod:1134
24824 #, no-wrap
24825 msgid ""
24826 " fill c len path\n"
24827 "\n"
24828 msgstr ""
24829
24830 # type: textblock
24831 #. type: textblock
24832 #: ../fish/guestfish-actions.pod:1140
24833 msgid ""
24834 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
24835 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
24836 "L</fill-pattern>."
24837 msgstr ""
24838
24839 # type: =head2
24840 #. type: =head2
24841 #: ../fish/guestfish-actions.pod:1145
24842 msgid "fill-pattern"
24843 msgstr ""
24844
24845 # type: verbatim
24846 #. type: verbatim
24847 #: ../fish/guestfish-actions.pod:1147
24848 #, no-wrap
24849 msgid ""
24850 " fill-pattern pattern len path\n"
24851 "\n"
24852 msgstr ""
24853
24854 # type: textblock
24855 #. type: textblock
24856 #: ../fish/guestfish-actions.pod:1149
24857 msgid ""
24858 "This function is like L</fill> except that it creates a new file of length "
24859 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
24860 "is truncated if necessary to ensure the length of the file is exactly C<len> "
24861 "bytes."
24862 msgstr ""
24863
24864 # type: =head2
24865 #. type: =head2
24866 #: ../fish/guestfish-actions.pod:1154
24867 msgid "find"
24868 msgstr ""
24869
24870 # type: verbatim
24871 #. type: verbatim
24872 #: ../fish/guestfish-actions.pod:1156
24873 #, no-wrap
24874 msgid ""
24875 " find directory\n"
24876 "\n"
24877 msgstr ""
24878
24879 # type: textblock
24880 #. type: textblock
24881 #: ../fish/guestfish-actions.pod:1170
24882 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
24883 msgstr ""
24884
24885 # type: textblock
24886 #. type: textblock
24887 #: ../fish/guestfish-actions.pod:1183
24888 msgid "See also L</find0>."
24889 msgstr ""
24890
24891 # type: =head2
24892 #. type: =head2
24893 #: ../fish/guestfish-actions.pod:1188
24894 msgid "find0"
24895 msgstr ""
24896
24897 # type: verbatim
24898 #. type: verbatim
24899 #: ../fish/guestfish-actions.pod:1190
24900 #, no-wrap
24901 msgid ""
24902 " find0 directory (files|-)\n"
24903 "\n"
24904 msgstr ""
24905
24906 # type: textblock
24907 #. type: textblock
24908 #: ../fish/guestfish-actions.pod:1196
24909 msgid ""
24910 "This command works the same way as L</find> with the following exceptions:"
24911 msgstr ""
24912
24913 # type: =head2
24914 #. type: =head2
24915 #: ../fish/guestfish-actions.pod:1223
24916 msgid "findfs-label"
24917 msgstr ""
24918
24919 # type: verbatim
24920 #. type: verbatim
24921 #: ../fish/guestfish-actions.pod:1225
24922 #, no-wrap
24923 msgid ""
24924 " findfs-label label\n"
24925 "\n"
24926 msgstr ""
24927
24928 # type: textblock
24929 #. type: textblock
24930 #: ../fish/guestfish-actions.pod:1231
24931 msgid "To find the label of a filesystem, use L</vfs-label>."
24932 msgstr ""
24933
24934 # type: =head2
24935 #. type: =head2
24936 #: ../fish/guestfish-actions.pod:1233
24937 msgid "findfs-uuid"
24938 msgstr ""
24939
24940 # type: verbatim
24941 #. type: verbatim
24942 #: ../fish/guestfish-actions.pod:1235
24943 #, no-wrap
24944 msgid ""
24945 " findfs-uuid uuid\n"
24946 "\n"
24947 msgstr ""
24948
24949 # type: textblock
24950 #. type: textblock
24951 #: ../fish/guestfish-actions.pod:1241
24952 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
24953 msgstr ""
24954
24955 # type: =head2
24956 #. type: =head2
24957 #: ../fish/guestfish-actions.pod:1243
24958 msgid "fsck"
24959 msgstr ""
24960
24961 # type: verbatim
24962 #. type: verbatim
24963 #: ../fish/guestfish-actions.pod:1245
24964 #, no-wrap
24965 msgid ""
24966 " fsck fstype device\n"
24967 "\n"
24968 msgstr ""
24969
24970 # type: =head2
24971 #. type: =head2
24972 #: ../fish/guestfish-actions.pod:1275
24973 msgid "get-append"
24974 msgstr ""
24975
24976 # type: verbatim
24977 #. type: verbatim
24978 #: ../fish/guestfish-actions.pod:1277
24979 #, no-wrap
24980 msgid ""
24981 " get-append\n"
24982 "\n"
24983 msgstr ""
24984
24985 # type: =head2
24986 #. type: =head2
24987 #: ../fish/guestfish-actions.pod:1284
24988 msgid "get-autosync"
24989 msgstr ""
24990
24991 # type: verbatim
24992 #. type: verbatim
24993 #: ../fish/guestfish-actions.pod:1286
24994 #, no-wrap
24995 msgid ""
24996 " get-autosync\n"
24997 "\n"
24998 msgstr ""
24999
25000 # type: =head2
25001 #. type: =head2
25002 #: ../fish/guestfish-actions.pod:1290
25003 msgid "get-direct"
25004 msgstr ""
25005
25006 # type: verbatim
25007 #. type: verbatim
25008 #: ../fish/guestfish-actions.pod:1292
25009 #, no-wrap
25010 msgid ""
25011 " get-direct\n"
25012 "\n"
25013 msgstr ""
25014
25015 # type: =head2
25016 #. type: =head2
25017 #: ../fish/guestfish-actions.pod:1296
25018 msgid "get-e2label"
25019 msgstr ""
25020
25021 # type: verbatim
25022 #. type: verbatim
25023 #: ../fish/guestfish-actions.pod:1298
25024 #, no-wrap
25025 msgid ""
25026 " get-e2label device\n"
25027 "\n"
25028 msgstr ""
25029
25030 # type: =head2
25031 #. type: =head2
25032 #: ../fish/guestfish-actions.pod:1310
25033 msgid "get-e2uuid"
25034 msgstr ""
25035
25036 # type: verbatim
25037 #. type: verbatim
25038 #: ../fish/guestfish-actions.pod:1312
25039 #, no-wrap
25040 msgid ""
25041 " get-e2uuid device\n"
25042 "\n"
25043 msgstr ""
25044
25045 # type: =head2
25046 #. type: =head2
25047 #: ../fish/guestfish-actions.pod:1324
25048 msgid "get-memsize"
25049 msgstr ""
25050
25051 # type: verbatim
25052 #. type: verbatim
25053 #: ../fish/guestfish-actions.pod:1326
25054 #, no-wrap
25055 msgid ""
25056 " get-memsize\n"
25057 "\n"
25058 msgstr ""
25059
25060 # type: textblock
25061 #. type: textblock
25062 #: ../fish/guestfish-actions.pod:1331
25063 msgid ""
25064 "If L</set-memsize> was not called on this handle, and if "
25065 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25066 "value for memsize."
25067 msgstr ""
25068
25069 # type: =head2
25070 #. type: =head2
25071 #: ../fish/guestfish-actions.pod:1338
25072 msgid "get-network"
25073 msgstr ""
25074
25075 # type: verbatim
25076 #. type: verbatim
25077 #: ../fish/guestfish-actions.pod:1340
25078 #, no-wrap
25079 msgid ""
25080 " get-network\n"
25081 "\n"
25082 msgstr ""
25083
25084 # type: =head2
25085 #. type: =head2
25086 #: ../fish/guestfish-actions.pod:1344
25087 msgid "get-path"
25088 msgstr ""
25089
25090 # type: verbatim
25091 #. type: verbatim
25092 #: ../fish/guestfish-actions.pod:1346
25093 #, no-wrap
25094 msgid ""
25095 " get-path\n"
25096 "\n"
25097 msgstr ""
25098
25099 # type: =head2
25100 #. type: =head2
25101 #: ../fish/guestfish-actions.pod:1353
25102 msgid "get-pid"
25103 msgstr ""
25104
25105 # type: =head2
25106 #. type: =head2
25107 #: ../fish/guestfish-actions.pod:1355
25108 msgid "pid"
25109 msgstr ""
25110
25111 # type: verbatim
25112 #. type: verbatim
25113 #: ../fish/guestfish-actions.pod:1357
25114 #, no-wrap
25115 msgid ""
25116 " get-pid\n"
25117 "\n"
25118 msgstr ""
25119
25120 # type: =head2
25121 #. type: =head2
25122 #: ../fish/guestfish-actions.pod:1364
25123 msgid "get-qemu"
25124 msgstr ""
25125
25126 # type: verbatim
25127 #. type: verbatim
25128 #: ../fish/guestfish-actions.pod:1366
25129 #, no-wrap
25130 msgid ""
25131 " get-qemu\n"
25132 "\n"
25133 msgstr ""
25134
25135 # type: =head2
25136 #. type: =head2
25137 #: ../fish/guestfish-actions.pod:1373
25138 msgid "get-recovery-proc"
25139 msgstr ""
25140
25141 # type: verbatim
25142 #. type: verbatim
25143 #: ../fish/guestfish-actions.pod:1375
25144 #, no-wrap
25145 msgid ""
25146 " get-recovery-proc\n"
25147 "\n"
25148 msgstr ""
25149
25150 # type: =head2
25151 #. type: =head2
25152 #: ../fish/guestfish-actions.pod:1379
25153 msgid "get-selinux"
25154 msgstr ""
25155
25156 # type: verbatim
25157 #. type: verbatim
25158 #: ../fish/guestfish-actions.pod:1381
25159 #, no-wrap
25160 msgid ""
25161 " get-selinux\n"
25162 "\n"
25163 msgstr ""
25164
25165 # type: textblock
25166 #. type: textblock
25167 #: ../fish/guestfish-actions.pod:1383
25168 msgid ""
25169 "This returns the current setting of the selinux flag which is passed to the "
25170 "appliance at boot time.  See L</set-selinux>."
25171 msgstr ""
25172
25173 # type: =head2
25174 #. type: =head2
25175 #: ../fish/guestfish-actions.pod:1389
25176 msgid "get-state"
25177 msgstr ""
25178
25179 # type: verbatim
25180 #. type: verbatim
25181 #: ../fish/guestfish-actions.pod:1391
25182 #, no-wrap
25183 msgid ""
25184 " get-state\n"
25185 "\n"
25186 msgstr ""
25187
25188 # type: =head2
25189 #. type: =head2
25190 #: ../fish/guestfish-actions.pod:1398
25191 msgid "get-trace"
25192 msgstr ""
25193
25194 # type: verbatim
25195 #. type: verbatim
25196 #: ../fish/guestfish-actions.pod:1400
25197 #, no-wrap
25198 msgid ""
25199 " get-trace\n"
25200 "\n"
25201 msgstr ""
25202
25203 # type: =head2
25204 #. type: =head2
25205 #: ../fish/guestfish-actions.pod:1404
25206 msgid "get-umask"
25207 msgstr ""
25208
25209 # type: verbatim
25210 #. type: verbatim
25211 #: ../fish/guestfish-actions.pod:1406
25212 #, no-wrap
25213 msgid ""
25214 " get-umask\n"
25215 "\n"
25216 msgstr ""
25217
25218 # type: textblock
25219 #. type: textblock
25220 #: ../fish/guestfish-actions.pod:1408
25221 msgid ""
25222 "Return the current umask.  By default the umask is C<022> unless it has been "
25223 "set by calling L</umask>."
25224 msgstr ""
25225
25226 # type: =head2
25227 #. type: =head2
25228 #: ../fish/guestfish-actions.pod:1411
25229 msgid "get-verbose"
25230 msgstr ""
25231
25232 # type: verbatim
25233 #. type: verbatim
25234 #: ../fish/guestfish-actions.pod:1413
25235 #, no-wrap
25236 msgid ""
25237 " get-verbose\n"
25238 "\n"
25239 msgstr ""
25240
25241 # type: =head2
25242 #. type: =head2
25243 #: ../fish/guestfish-actions.pod:1417
25244 msgid "getcon"
25245 msgstr ""
25246
25247 # type: verbatim
25248 #. type: verbatim
25249 #: ../fish/guestfish-actions.pod:1419
25250 #, no-wrap
25251 msgid ""
25252 " getcon\n"
25253 "\n"
25254 msgstr ""
25255
25256 # type: textblock
25257 #. type: textblock
25258 #: ../fish/guestfish-actions.pod:1423
25259 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
25260 msgstr ""
25261
25262 # type: =head2
25263 #. type: =head2
25264 #: ../fish/guestfish-actions.pod:1426
25265 msgid "getxattr"
25266 msgstr ""
25267
25268 # type: verbatim
25269 #. type: verbatim
25270 #: ../fish/guestfish-actions.pod:1428
25271 #, no-wrap
25272 msgid ""
25273 " getxattr path name\n"
25274 "\n"
25275 msgstr ""
25276
25277 # type: textblock
25278 #. type: textblock
25279 #: ../fish/guestfish-actions.pod:1430
25280 msgid ""
25281 "Get a single extended attribute from file C<path> named C<name>.  This call "
25282 "follows symlinks.  If you want to lookup an extended attribute for the "
25283 "symlink itself, use L</lgetxattr>."
25284 msgstr ""
25285
25286 # type: textblock
25287 #. type: textblock
25288 #: ../fish/guestfish-actions.pod:1434 ../fish/guestfish-actions.pod:2340
25289 msgid ""
25290 "Normally it is better to get all extended attributes from a file in one go "
25291 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
25292 "buggy and do not provide a way to list out attributes.  For these "
25293 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
25294 "attributes you want in advance and call this function."
25295 msgstr ""
25296
25297 # type: textblock
25298 #. type: textblock
25299 #: ../fish/guestfish-actions.pod:1444
25300 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
25301 msgstr ""
25302
25303 # type: =head2
25304 #. type: =head2
25305 #: ../fish/guestfish-actions.pod:1446
25306 msgid "getxattrs"
25307 msgstr ""
25308
25309 # type: verbatim
25310 #. type: verbatim
25311 #: ../fish/guestfish-actions.pod:1448
25312 #, no-wrap
25313 msgid ""
25314 " getxattrs path\n"
25315 "\n"
25316 msgstr ""
25317
25318 # type: textblock
25319 #. type: textblock
25320 #: ../fish/guestfish-actions.pod:1456
25321 msgid "See also: L</lgetxattrs>, L<attr(5)>."
25322 msgstr ""
25323
25324 # type: =head2
25325 #. type: =head2
25326 #: ../fish/guestfish-actions.pod:1458
25327 msgid "glob-expand"
25328 msgstr ""
25329
25330 # type: verbatim
25331 #. type: verbatim
25332 #: ../fish/guestfish-actions.pod:1460
25333 #, no-wrap
25334 msgid ""
25335 " glob-expand pattern\n"
25336 "\n"
25337 msgstr ""
25338
25339 # type: =head2
25340 #. type: =head2
25341 #: ../fish/guestfish-actions.pod:1473
25342 msgid "grep"
25343 msgstr ""
25344
25345 # type: verbatim
25346 #. type: verbatim
25347 #: ../fish/guestfish-actions.pod:1475
25348 #, no-wrap
25349 msgid ""
25350 " grep regex path\n"
25351 "\n"
25352 msgstr ""
25353
25354 # type: =head2
25355 #. type: =head2
25356 #: ../fish/guestfish-actions.pod:1483
25357 msgid "grepi"
25358 msgstr ""
25359
25360 # type: verbatim
25361 #. type: verbatim
25362 #: ../fish/guestfish-actions.pod:1485
25363 #, no-wrap
25364 msgid ""
25365 " grepi regex path\n"
25366 "\n"
25367 msgstr ""
25368
25369 # type: =head2
25370 #. type: =head2
25371 #: ../fish/guestfish-actions.pod:1493
25372 msgid "grub-install"
25373 msgstr ""
25374
25375 # type: verbatim
25376 #. type: verbatim
25377 #: ../fish/guestfish-actions.pod:1495
25378 #, no-wrap
25379 msgid ""
25380 " grub-install root device\n"
25381 "\n"
25382 msgstr ""
25383
25384 # type: =head2
25385 #. type: =head2
25386 #: ../fish/guestfish-actions.pod:1511
25387 msgid "head"
25388 msgstr ""
25389
25390 # type: verbatim
25391 #. type: verbatim
25392 #: ../fish/guestfish-actions.pod:1513
25393 #, no-wrap
25394 msgid ""
25395 " head path\n"
25396 "\n"
25397 msgstr ""
25398
25399 # type: =head2
25400 #. type: =head2
25401 #: ../fish/guestfish-actions.pod:1521
25402 msgid "head-n"
25403 msgstr ""
25404
25405 # type: verbatim
25406 #. type: verbatim
25407 #: ../fish/guestfish-actions.pod:1523
25408 #, no-wrap
25409 msgid ""
25410 " head-n nrlines path\n"
25411 "\n"
25412 msgstr ""
25413
25414 # type: =head2
25415 #. type: =head2
25416 #: ../fish/guestfish-actions.pod:1536
25417 msgid "hexdump"
25418 msgstr ""
25419
25420 # type: verbatim
25421 #. type: verbatim
25422 #: ../fish/guestfish-actions.pod:1538
25423 #, no-wrap
25424 msgid ""
25425 " hexdump path\n"
25426 "\n"
25427 msgstr ""
25428
25429 # type: =head2
25430 #. type: =head2
25431 #: ../fish/guestfish-actions.pod:1546
25432 msgid "initrd-cat"
25433 msgstr ""
25434
25435 # type: verbatim
25436 #. type: verbatim
25437 #: ../fish/guestfish-actions.pod:1548
25438 #, no-wrap
25439 msgid ""
25440 " initrd-cat initrdpath filename\n"
25441 "\n"
25442 msgstr ""
25443
25444 # type: textblock
25445 #. type: textblock
25446 #: ../fish/guestfish-actions.pod:1560
25447 msgid "See also L</initrd-list>."
25448 msgstr ""
25449
25450 # type: =head2
25451 #. type: =head2
25452 #: ../fish/guestfish-actions.pod:1565
25453 msgid "initrd-list"
25454 msgstr ""
25455
25456 # type: verbatim
25457 #. type: verbatim
25458 #: ../fish/guestfish-actions.pod:1567
25459 #, no-wrap
25460 msgid ""
25461 " initrd-list path\n"
25462 "\n"
25463 msgstr ""
25464
25465 # type: =head2
25466 #. type: =head2
25467 #: ../fish/guestfish-actions.pod:1579
25468 msgid "inotify-add-watch"
25469 msgstr ""
25470
25471 # type: verbatim
25472 #. type: verbatim
25473 #: ../fish/guestfish-actions.pod:1581
25474 #, no-wrap
25475 msgid ""
25476 " inotify-add-watch path mask\n"
25477 "\n"
25478 msgstr ""
25479
25480 # type: =head2
25481 #. type: =head2
25482 #: ../fish/guestfish-actions.pod:1593
25483 msgid "inotify-close"
25484 msgstr ""
25485
25486 # type: verbatim
25487 #. type: verbatim
25488 #: ../fish/guestfish-actions.pod:1595
25489 #, no-wrap
25490 msgid ""
25491 " inotify-close\n"
25492 "\n"
25493 msgstr ""
25494
25495 # type: =head2
25496 #. type: =head2
25497 #: ../fish/guestfish-actions.pod:1601
25498 msgid "inotify-files"
25499 msgstr ""
25500
25501 # type: verbatim
25502 #. type: verbatim
25503 #: ../fish/guestfish-actions.pod:1603
25504 #, no-wrap
25505 msgid ""
25506 " inotify-files\n"
25507 "\n"
25508 msgstr ""
25509
25510 # type: textblock
25511 #. type: textblock
25512 #: ../fish/guestfish-actions.pod:1605
25513 msgid ""
25514 "This function is a helpful wrapper around L</inotify-read> which just "
25515 "returns a list of pathnames of objects that were touched.  The returned "
25516 "pathnames are sorted and deduplicated."
25517 msgstr ""
25518
25519 # type: =head2
25520 #. type: =head2
25521 #: ../fish/guestfish-actions.pod:1609
25522 msgid "inotify-init"
25523 msgstr ""
25524
25525 # type: verbatim
25526 #. type: verbatim
25527 #: ../fish/guestfish-actions.pod:1611
25528 #, no-wrap
25529 msgid ""
25530 " inotify-init maxevents\n"
25531 "\n"
25532 msgstr ""
25533
25534 # type: textblock
25535 #. type: textblock
25536 #: ../fish/guestfish-actions.pod:1617
25537 msgid ""
25538 "C<maxevents> is the maximum number of events which will be queued up between "
25539 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
25540 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
25541 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
25542 "but records the fact that it threw them away by setting a flag "
25543 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
25544 msgstr ""
25545
25546 # type: textblock
25547 #. type: textblock
25548 #: ../fish/guestfish-actions.pod:1627
25549 msgid ""
25550 "Before any events are generated, you have to add some watches to the "
25551 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
25552 "L</inotify-watch-all>."
25553 msgstr ""
25554
25555 # type: textblock
25556 #. type: textblock
25557 #: ../fish/guestfish-actions.pod:1633
25558 msgid ""
25559 "Queued up events should be read periodically by calling L</inotify-read> (or "
25560 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
25561 "If you don't read the events out often enough then you risk the internal "
25562 "queue overflowing."
25563 msgstr ""
25564
25565 # type: textblock
25566 #. type: textblock
25567 #: ../fish/guestfish-actions.pod:1640
25568 msgid ""
25569 "The handle should be closed after use by calling L</inotify-close>.  This "
25570 "also removes any watches automatically."
25571 msgstr ""
25572
25573 # type: =head2
25574 #. type: =head2
25575 #: ../fish/guestfish-actions.pod:1649
25576 msgid "inotify-read"
25577 msgstr ""
25578
25579 # type: verbatim
25580 #. type: verbatim
25581 #: ../fish/guestfish-actions.pod:1651
25582 #, no-wrap
25583 msgid ""
25584 " inotify-read\n"
25585 "\n"
25586 msgstr ""
25587
25588 # type: =head2
25589 #. type: =head2
25590 #: ../fish/guestfish-actions.pod:1664
25591 msgid "inotify-rm-watch"
25592 msgstr ""
25593
25594 # type: verbatim
25595 #. type: verbatim
25596 #: ../fish/guestfish-actions.pod:1666
25597 #, no-wrap
25598 msgid ""
25599 " inotify-rm-watch wd\n"
25600 "\n"
25601 msgstr ""
25602
25603 # type: textblock
25604 #. type: textblock
25605 #: ../fish/guestfish-actions.pod:1668
25606 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
25607 msgstr ""
25608
25609 # type: =head2
25610 #. type: =head2
25611 #: ../fish/guestfish-actions.pod:1671
25612 msgid "inspect-get-arch"
25613 msgstr ""
25614
25615 # type: verbatim
25616 #. type: verbatim
25617 #: ../fish/guestfish-actions.pod:1673
25618 #, no-wrap
25619 msgid ""
25620 " inspect-get-arch root\n"
25621 "\n"
25622 msgstr ""
25623
25624 # type: textblock
25625 #. type: textblock
25626 #: ../fish/guestfish-actions.pod:1675 ../fish/guestfish-actions.pod:1691
25627 #: ../fish/guestfish-actions.pod:1765 ../fish/guestfish-actions.pod:1783
25628 #: ../fish/guestfish-actions.pod:1817 ../fish/guestfish-actions.pod:1832
25629 #: ../fish/guestfish-actions.pod:1853 ../fish/guestfish-actions.pod:1868
25630 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1917
25631 #: ../fish/guestfish-actions.pod:1941 ../fish/guestfish-actions.pod:1971
25632 #: ../fish/guestfish-actions.pod:2006 ../fish/guestfish-actions.pod:2022
25633 #: ../fish/guestfish-actions.pod:2035 ../fish/guestfish-actions.pod:2048
25634 #: ../fish/guestfish-actions.pod:2063
25635 msgid ""
25636 "This function should only be called with a root device string as returned by "
25637 "L</inspect-os>."
25638 msgstr ""
25639
25640 # type: textblock
25641 #. type: textblock
25642 #: ../fish/guestfish-actions.pod:1678
25643 msgid ""
25644 "This returns the architecture of the inspected operating system.  The "
25645 "possible return values are listed under L</file-architecture>."
25646 msgstr ""
25647
25648 # type: =head2
25649 #. type: =head2
25650 #: ../fish/guestfish-actions.pod:1687
25651 msgid "inspect-get-distro"
25652 msgstr ""
25653
25654 # type: verbatim
25655 #. type: verbatim
25656 #: ../fish/guestfish-actions.pod:1689
25657 #, no-wrap
25658 msgid ""
25659 " inspect-get-distro root\n"
25660 "\n"
25661 msgstr ""
25662
25663 # type: =head2
25664 #. type: =head2
25665 #: ../fish/guestfish-actions.pod:1761
25666 msgid "inspect-get-filesystems"
25667 msgstr ""
25668
25669 # type: verbatim
25670 #. type: verbatim
25671 #: ../fish/guestfish-actions.pod:1763
25672 #, no-wrap
25673 msgid ""
25674 " inspect-get-filesystems root\n"
25675 "\n"
25676 msgstr ""
25677
25678 # type: textblock
25679 #. type: textblock
25680 #: ../fish/guestfish-actions.pod:1776
25681 msgid ""
25682 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25683 "get-mountpoints>."
25684 msgstr ""
25685
25686 #. type: =head2
25687 #: ../fish/guestfish-actions.pod:1779
25688 msgid "inspect-get-format"
25689 msgstr ""
25690
25691 #. type: verbatim
25692 #: ../fish/guestfish-actions.pod:1781
25693 #, no-wrap
25694 msgid ""
25695 " inspect-get-format root\n"
25696 "\n"
25697 msgstr ""
25698
25699 # type: =head2
25700 #. type: =head2
25701 #: ../fish/guestfish-actions.pod:1813
25702 msgid "inspect-get-hostname"
25703 msgstr ""
25704
25705 # type: verbatim
25706 #. type: verbatim
25707 #: ../fish/guestfish-actions.pod:1815
25708 #, no-wrap
25709 msgid ""
25710 " inspect-get-hostname root\n"
25711 "\n"
25712 msgstr ""
25713
25714 # type: =head2
25715 #. type: =head2
25716 #: ../fish/guestfish-actions.pod:1828
25717 msgid "inspect-get-major-version"
25718 msgstr ""
25719
25720 # type: verbatim
25721 #. type: verbatim
25722 #: ../fish/guestfish-actions.pod:1830
25723 #, no-wrap
25724 msgid ""
25725 " inspect-get-major-version root\n"
25726 "\n"
25727 msgstr ""
25728
25729 # type: =head2
25730 #. type: =head2
25731 #: ../fish/guestfish-actions.pod:1849
25732 msgid "inspect-get-minor-version"
25733 msgstr ""
25734
25735 # type: verbatim
25736 #. type: verbatim
25737 #: ../fish/guestfish-actions.pod:1851
25738 #, no-wrap
25739 msgid ""
25740 " inspect-get-minor-version root\n"
25741 "\n"
25742 msgstr ""
25743
25744 # type: textblock
25745 #. type: textblock
25746 #: ../fish/guestfish-actions.pod:1861
25747 msgid ""
25748 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25749 "get-major-version>."
25750 msgstr ""
25751
25752 # type: =head2
25753 #. type: =head2
25754 #: ../fish/guestfish-actions.pod:1864
25755 msgid "inspect-get-mountpoints"
25756 msgstr ""
25757
25758 # type: verbatim
25759 #. type: verbatim
25760 #: ../fish/guestfish-actions.pod:1866
25761 #, no-wrap
25762 msgid ""
25763 " inspect-get-mountpoints root\n"
25764 "\n"
25765 msgstr ""
25766
25767 # type: textblock
25768 #. type: textblock
25769 #: ../fish/guestfish-actions.pod:1888
25770 msgid ""
25771 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
25772 "get-filesystems>."
25773 msgstr ""
25774
25775 # type: =head2
25776 #. type: =head2
25777 #: ../fish/guestfish-actions.pod:1891
25778 msgid "inspect-get-package-format"
25779 msgstr ""
25780
25781 # type: verbatim
25782 #. type: verbatim
25783 #: ../fish/guestfish-actions.pod:1893
25784 #, no-wrap
25785 msgid ""
25786 " inspect-get-package-format root\n"
25787 "\n"
25788 msgstr ""
25789
25790 # type: textblock
25791 #. type: textblock
25792 #: ../fish/guestfish-actions.pod:1898
25793 msgid ""
25794 "This function and L</inspect-get-package-management> return the package "
25795 "format and package management tool used by the inspected operating system.  "
25796 "For example for Fedora these functions would return C<rpm> (package format) "
25797 "and C<yum> (package management)."
25798 msgstr ""
25799
25800 # type: =head2
25801 #. type: =head2
25802 #: ../fish/guestfish-actions.pod:1913
25803 msgid "inspect-get-package-management"
25804 msgstr ""
25805
25806 # type: verbatim
25807 #. type: verbatim
25808 #: ../fish/guestfish-actions.pod:1915
25809 #, no-wrap
25810 msgid ""
25811 " inspect-get-package-management root\n"
25812 "\n"
25813 msgstr ""
25814
25815 # type: textblock
25816 #. type: textblock
25817 #: ../fish/guestfish-actions.pod:1920
25818 msgid ""
25819 "L</inspect-get-package-format> and this function return the package format "
25820 "and package management tool used by the inspected operating system.  For "
25821 "example for Fedora these functions would return C<rpm> (package format) and "
25822 "C<yum> (package management)."
25823 msgstr ""
25824
25825 # type: =head2
25826 #. type: =head2
25827 #: ../fish/guestfish-actions.pod:1937
25828 msgid "inspect-get-product-name"
25829 msgstr ""
25830
25831 # type: verbatim
25832 #. type: verbatim
25833 #: ../fish/guestfish-actions.pod:1939
25834 #, no-wrap
25835 msgid ""
25836 " inspect-get-product-name root\n"
25837 "\n"
25838 msgstr ""
25839
25840 # type: =head2
25841 #. type: =head2
25842 #: ../fish/guestfish-actions.pod:1954
25843 msgid "inspect-get-roots"
25844 msgstr ""
25845
25846 # type: verbatim
25847 #. type: verbatim
25848 #: ../fish/guestfish-actions.pod:1956
25849 #, no-wrap
25850 msgid ""
25851 " inspect-get-roots\n"
25852 "\n"
25853 msgstr ""
25854
25855 # type: textblock
25856 #. type: textblock
25857 #: ../fish/guestfish-actions.pod:1958
25858 msgid ""
25859 "This function is a convenient way to get the list of root devices, as "
25860 "returned from a previous call to L</inspect-os>, but without redoing the "
25861 "whole inspection process."
25862 msgstr ""
25863
25864 # type: textblock
25865 #. type: textblock
25866 #: ../fish/guestfish-actions.pod:1962
25867 msgid ""
25868 "This returns an empty list if either no root devices were found or the "
25869 "caller has not called L</inspect-os>."
25870 msgstr ""
25871
25872 # type: =head2
25873 #. type: =head2
25874 #: ../fish/guestfish-actions.pod:1967
25875 msgid "inspect-get-type"
25876 msgstr ""
25877
25878 # type: verbatim
25879 #. type: verbatim
25880 #: ../fish/guestfish-actions.pod:1969
25881 #, no-wrap
25882 msgid ""
25883 " inspect-get-type root\n"
25884 "\n"
25885 msgstr ""
25886
25887 # type: =head2
25888 #. type: =head2
25889 #: ../fish/guestfish-actions.pod:2002
25890 msgid "inspect-get-windows-systemroot"
25891 msgstr ""
25892
25893 # type: verbatim
25894 #. type: verbatim
25895 #: ../fish/guestfish-actions.pod:2004
25896 #, no-wrap
25897 msgid ""
25898 " inspect-get-windows-systemroot root\n"
25899 "\n"
25900 msgstr ""
25901
25902 #. type: =head2
25903 #: ../fish/guestfish-actions.pod:2018
25904 msgid "inspect-is-live"
25905 msgstr ""
25906
25907 #. type: verbatim
25908 #: ../fish/guestfish-actions.pod:2020
25909 #, no-wrap
25910 msgid ""
25911 " inspect-is-live root\n"
25912 "\n"
25913 msgstr ""
25914
25915 #. type: textblock
25916 #: ../fish/guestfish-actions.pod:2025
25917 msgid ""
25918 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25919 "then this returns true if a live image was detected on the disk."
25920 msgstr ""
25921
25922 #. type: =head2
25923 #: ../fish/guestfish-actions.pod:2031
25924 msgid "inspect-is-multipart"
25925 msgstr ""
25926
25927 #. type: verbatim
25928 #: ../fish/guestfish-actions.pod:2033
25929 #, no-wrap
25930 msgid ""
25931 " inspect-is-multipart root\n"
25932 "\n"
25933 msgstr ""
25934
25935 #. type: textblock
25936 #: ../fish/guestfish-actions.pod:2038
25937 msgid ""
25938 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25939 "then this returns true if the disk is part of a set."
25940 msgstr ""
25941
25942 #. type: =head2
25943 #: ../fish/guestfish-actions.pod:2044
25944 msgid "inspect-is-netinst"
25945 msgstr ""
25946
25947 #. type: verbatim
25948 #: ../fish/guestfish-actions.pod:2046
25949 #, no-wrap
25950 msgid ""
25951 " inspect-is-netinst root\n"
25952 "\n"
25953 msgstr ""
25954
25955 #. type: textblock
25956 #: ../fish/guestfish-actions.pod:2051
25957 msgid ""
25958 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
25959 "then this returns true if the disk is a network installer, ie. not a self-"
25960 "contained install CD but one which is likely to require network access to "
25961 "complete the install."
25962 msgstr ""
25963
25964 # type: =head2
25965 #. type: =head2
25966 #: ../fish/guestfish-actions.pod:2059
25967 msgid "inspect-list-applications"
25968 msgstr ""
25969
25970 # type: verbatim
25971 #. type: verbatim
25972 #: ../fish/guestfish-actions.pod:2061
25973 #, no-wrap
25974 msgid ""
25975 " inspect-list-applications root\n"
25976 "\n"
25977 msgstr ""
25978
25979 # type: textblock
25980 #. type: textblock
25981 #: ../fish/guestfish-actions.pod:2068
25982 msgid ""
25983 "I<Note:> This call works differently from other parts of the inspection "
25984 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
25985 "then mount up the disks, before calling this.  Listing applications is a "
25986 "significantly more difficult operation which requires access to the full "
25987 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
25988 "are just returning data cached in the libguestfs handle, this call actually "
25989 "reads parts of the mounted filesystems during the call."
25990 msgstr ""
25991
25992 # type: =head2
25993 #. type: =head2
25994 #: ../fish/guestfish-actions.pod:2158
25995 msgid "inspect-os"
25996 msgstr ""
25997
25998 # type: verbatim
25999 #. type: verbatim
26000 #: ../fish/guestfish-actions.pod:2160
26001 #, no-wrap
26002 msgid ""
26003 " inspect-os\n"
26004 "\n"
26005 msgstr ""
26006
26007 # type: textblock
26008 #. type: textblock
26009 #: ../fish/guestfish-actions.pod:2175
26010 msgid ""
26011 "You can pass the root string(s) returned to other L</inspect-get-*> "
26012 "functions in order to query further information about each operating system, "
26013 "such as the name and version."
26014 msgstr ""
26015
26016 # type: textblock
26017 #. type: textblock
26018 #: ../fish/guestfish-actions.pod:2180
26019 msgid ""
26020 "This function uses other libguestfs features such as L</mount-ro> and L</"
26021 "umount-all> in order to mount and unmount filesystems and look at the "
26022 "contents.  This should be called with no disks currently mounted.  The "
26023 "function may also use Augeas, so any existing Augeas handle will be closed."
26024 msgstr ""
26025
26026 # type: textblock
26027 #. type: textblock
26028 #: ../fish/guestfish-actions.pod:2192 ../fish/guestfish-actions.pod:2368
26029 #: ../fish/guestfish-actions.pod:2414
26030 msgid "See also L</list-filesystems>."
26031 msgstr ""
26032
26033 # type: =head2
26034 #. type: =head2
26035 #: ../fish/guestfish-actions.pod:2194
26036 msgid "is-blockdev"
26037 msgstr ""
26038
26039 # type: verbatim
26040 #. type: verbatim
26041 #: ../fish/guestfish-actions.pod:2196
26042 #, no-wrap
26043 msgid ""
26044 " is-blockdev path\n"
26045 "\n"
26046 msgstr ""
26047
26048 # type: textblock
26049 #. type: textblock
26050 #: ../fish/guestfish-actions.pod:2201 ../fish/guestfish-actions.pod:2219
26051 #: ../fish/guestfish-actions.pod:2238 ../fish/guestfish-actions.pod:2247
26052 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2291
26053 #: ../fish/guestfish-actions.pod:2300
26054 msgid "See also L</stat>."
26055 msgstr ""
26056
26057 # type: =head2
26058 #. type: =head2
26059 #: ../fish/guestfish-actions.pod:2203
26060 msgid "is-busy"
26061 msgstr ""
26062
26063 # type: verbatim
26064 #. type: verbatim
26065 #: ../fish/guestfish-actions.pod:2205
26066 #, no-wrap
26067 msgid ""
26068 " is-busy\n"
26069 "\n"
26070 msgstr ""
26071
26072 # type: =head2
26073 #. type: =head2
26074 #: ../fish/guestfish-actions.pod:2212
26075 msgid "is-chardev"
26076 msgstr ""
26077
26078 # type: verbatim
26079 #. type: verbatim
26080 #: ../fish/guestfish-actions.pod:2214
26081 #, no-wrap
26082 msgid ""
26083 " is-chardev path\n"
26084 "\n"
26085 msgstr ""
26086
26087 # type: =head2
26088 #. type: =head2
26089 #: ../fish/guestfish-actions.pod:2221
26090 msgid "is-config"
26091 msgstr ""
26092
26093 # type: verbatim
26094 #. type: verbatim
26095 #: ../fish/guestfish-actions.pod:2223
26096 #, no-wrap
26097 msgid ""
26098 " is-config\n"
26099 "\n"
26100 msgstr ""
26101
26102 # type: =head2
26103 #. type: =head2
26104 #: ../fish/guestfish-actions.pod:2230
26105 msgid "is-dir"
26106 msgstr ""
26107
26108 # type: verbatim
26109 #. type: verbatim
26110 #: ../fish/guestfish-actions.pod:2232
26111 #, no-wrap
26112 msgid ""
26113 " is-dir path\n"
26114 "\n"
26115 msgstr ""
26116
26117 # type: =head2
26118 #. type: =head2
26119 #: ../fish/guestfish-actions.pod:2240
26120 msgid "is-fifo"
26121 msgstr ""
26122
26123 # type: verbatim
26124 #. type: verbatim
26125 #: ../fish/guestfish-actions.pod:2242
26126 #, no-wrap
26127 msgid ""
26128 " is-fifo path\n"
26129 "\n"
26130 msgstr ""
26131
26132 # type: =head2
26133 #. type: =head2
26134 #: ../fish/guestfish-actions.pod:2249
26135 msgid "is-file"
26136 msgstr ""
26137
26138 # type: verbatim
26139 #. type: verbatim
26140 #: ../fish/guestfish-actions.pod:2251
26141 #, no-wrap
26142 msgid ""
26143 " is-file path\n"
26144 "\n"
26145 msgstr ""
26146
26147 # type: =head2
26148 #. type: =head2
26149 #: ../fish/guestfish-actions.pod:2259
26150 msgid "is-launching"
26151 msgstr ""
26152
26153 # type: verbatim
26154 #. type: verbatim
26155 #: ../fish/guestfish-actions.pod:2261
26156 #, no-wrap
26157 msgid ""
26158 " is-launching\n"
26159 "\n"
26160 msgstr ""
26161
26162 # type: =head2
26163 #. type: =head2
26164 #: ../fish/guestfish-actions.pod:2268
26165 msgid "is-lv"
26166 msgstr ""
26167
26168 # type: verbatim
26169 #. type: verbatim
26170 #: ../fish/guestfish-actions.pod:2270
26171 #, no-wrap
26172 msgid ""
26173 " is-lv device\n"
26174 "\n"
26175 msgstr ""
26176
26177 # type: =head2
26178 #. type: =head2
26179 #: ../fish/guestfish-actions.pod:2275
26180 msgid "is-ready"
26181 msgstr ""
26182
26183 # type: verbatim
26184 #. type: verbatim
26185 #: ../fish/guestfish-actions.pod:2277
26186 #, no-wrap
26187 msgid ""
26188 " is-ready\n"
26189 "\n"
26190 msgstr ""
26191
26192 # type: =head2
26193 #. type: =head2
26194 #: ../fish/guestfish-actions.pod:2284
26195 msgid "is-socket"
26196 msgstr ""
26197
26198 # type: verbatim
26199 #. type: verbatim
26200 #: ../fish/guestfish-actions.pod:2286
26201 #, no-wrap
26202 msgid ""
26203 " is-socket path\n"
26204 "\n"
26205 msgstr ""
26206
26207 # type: =head2
26208 #. type: =head2
26209 #: ../fish/guestfish-actions.pod:2293
26210 msgid "is-symlink"
26211 msgstr ""
26212
26213 # type: verbatim
26214 #. type: verbatim
26215 #: ../fish/guestfish-actions.pod:2295
26216 #, no-wrap
26217 msgid ""
26218 " is-symlink path\n"
26219 "\n"
26220 msgstr ""
26221
26222 # type: =head2
26223 #. type: =head2
26224 #: ../fish/guestfish-actions.pod:2302
26225 msgid "kill-subprocess"
26226 msgstr ""
26227
26228 # type: verbatim
26229 #. type: verbatim
26230 #: ../fish/guestfish-actions.pod:2304
26231 #, no-wrap
26232 msgid ""
26233 " kill-subprocess\n"
26234 "\n"
26235 msgstr ""
26236
26237 # type: =head2
26238 #. type: =head2
26239 #: ../fish/guestfish-actions.pod:2308
26240 msgid "launch"
26241 msgstr ""
26242
26243 # type: =head2
26244 #. type: =head2
26245 #: ../fish/guestfish-actions.pod:2310
26246 msgid "run"
26247 msgstr ""
26248
26249 # type: verbatim
26250 #. type: verbatim
26251 #: ../fish/guestfish-actions.pod:2312
26252 #, no-wrap
26253 msgid ""
26254 " launch\n"
26255 "\n"
26256 msgstr ""
26257
26258 # type: =head2
26259 #. type: =head2
26260 #: ../fish/guestfish-actions.pod:2320
26261 msgid "lchown"
26262 msgstr ""
26263
26264 # type: verbatim
26265 #. type: verbatim
26266 #: ../fish/guestfish-actions.pod:2322
26267 #, no-wrap
26268 msgid ""
26269 " lchown owner group path\n"
26270 "\n"
26271 msgstr ""
26272
26273 # type: textblock
26274 #. type: textblock
26275 #: ../fish/guestfish-actions.pod:2324
26276 msgid ""
26277 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
26278 "chown> but if C<path> is a symlink then the link itself is changed, not the "
26279 "target."
26280 msgstr ""
26281
26282 # type: =head2
26283 #. type: =head2
26284 #: ../fish/guestfish-actions.pod:2332
26285 msgid "lgetxattr"
26286 msgstr ""
26287
26288 # type: verbatim
26289 #. type: verbatim
26290 #: ../fish/guestfish-actions.pod:2334
26291 #, no-wrap
26292 msgid ""
26293 " lgetxattr path name\n"
26294 "\n"
26295 msgstr ""
26296
26297 # type: textblock
26298 #. type: textblock
26299 #: ../fish/guestfish-actions.pod:2350
26300 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
26301 msgstr ""
26302
26303 # type: =head2
26304 #. type: =head2
26305 #: ../fish/guestfish-actions.pod:2352
26306 msgid "lgetxattrs"
26307 msgstr ""
26308
26309 # type: verbatim
26310 #. type: verbatim
26311 #: ../fish/guestfish-actions.pod:2354
26312 #, no-wrap
26313 msgid ""
26314 " lgetxattrs path\n"
26315 "\n"
26316 msgstr ""
26317
26318 # type: textblock
26319 #. type: textblock
26320 #: ../fish/guestfish-actions.pod:2356
26321 msgid ""
26322 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
26323 "it returns the extended attributes of the link itself."
26324 msgstr ""
26325
26326 # type: =head2
26327 #. type: =head2
26328 #: ../fish/guestfish-actions.pod:2360
26329 msgid "list-devices"
26330 msgstr ""
26331
26332 # type: verbatim
26333 #. type: verbatim
26334 #: ../fish/guestfish-actions.pod:2362
26335 #, no-wrap
26336 msgid ""
26337 " list-devices\n"
26338 "\n"
26339 msgstr ""
26340
26341 # type: =head2
26342 #. type: =head2
26343 #: ../fish/guestfish-actions.pod:2370
26344 msgid "list-filesystems"
26345 msgstr ""
26346
26347 # type: verbatim
26348 #. type: verbatim
26349 #: ../fish/guestfish-actions.pod:2372
26350 #, no-wrap
26351 msgid ""
26352 " list-filesystems\n"
26353 "\n"
26354 msgstr ""
26355
26356 # type: textblock
26357 #. type: textblock
26358 #: ../fish/guestfish-actions.pod:2391
26359 msgid ""
26360 "This command runs other libguestfs commands, which might include L</mount> "
26361 "and L</umount>, and therefore you should use this soon after launch and only "
26362 "when nothing is mounted."
26363 msgstr ""
26364
26365 # type: textblock
26366 #. type: textblock
26367 #: ../fish/guestfish-actions.pod:2395
26368 msgid ""
26369 "Not all of the filesystems returned will be mountable.  In particular, swap "
26370 "partitions are returned in the list.  Also this command does not check that "
26371 "each filesystem found is valid and mountable, and some filesystems might be "
26372 "mountable but require special options.  Filesystems may not all belong to a "
26373 "single logical operating system (use L</inspect-os> to look for OSes)."
26374 msgstr ""
26375
26376 # type: =head2
26377 #. type: =head2
26378 #: ../fish/guestfish-actions.pod:2403
26379 msgid "list-partitions"
26380 msgstr ""
26381
26382 # type: verbatim
26383 #. type: verbatim
26384 #: ../fish/guestfish-actions.pod:2405
26385 #, no-wrap
26386 msgid ""
26387 " list-partitions\n"
26388 "\n"
26389 msgstr ""
26390
26391 # type: textblock
26392 #. type: textblock
26393 #: ../fish/guestfish-actions.pod:2411
26394 msgid ""
26395 "This does not return logical volumes.  For that you will need to call L</"
26396 "lvs>."
26397 msgstr ""
26398
26399 # type: =head2
26400 #. type: =head2
26401 #: ../fish/guestfish-actions.pod:2416
26402 msgid "ll"
26403 msgstr ""
26404
26405 # type: verbatim
26406 #. type: verbatim
26407 #: ../fish/guestfish-actions.pod:2418
26408 #, no-wrap
26409 msgid ""
26410 " ll directory\n"
26411 "\n"
26412 msgstr ""
26413
26414 # type: =head2
26415 #. type: =head2
26416 #: ../fish/guestfish-actions.pod:2426
26417 msgid "ln"
26418 msgstr ""
26419
26420 # type: verbatim
26421 #. type: verbatim
26422 #: ../fish/guestfish-actions.pod:2428
26423 #, no-wrap
26424 msgid ""
26425 " ln target linkname\n"
26426 "\n"
26427 msgstr ""
26428
26429 # type: =head2
26430 #. type: =head2
26431 #: ../fish/guestfish-actions.pod:2432
26432 msgid "ln-f"
26433 msgstr ""
26434
26435 # type: verbatim
26436 #. type: verbatim
26437 #: ../fish/guestfish-actions.pod:2434
26438 #, no-wrap
26439 msgid ""
26440 " ln-f target linkname\n"
26441 "\n"
26442 msgstr ""
26443
26444 # type: =head2
26445 #. type: =head2
26446 #: ../fish/guestfish-actions.pod:2439
26447 msgid "ln-s"
26448 msgstr ""
26449
26450 # type: verbatim
26451 #. type: verbatim
26452 #: ../fish/guestfish-actions.pod:2441
26453 #, no-wrap
26454 msgid ""
26455 " ln-s target linkname\n"
26456 "\n"
26457 msgstr ""
26458
26459 # type: =head2
26460 #. type: =head2
26461 #: ../fish/guestfish-actions.pod:2445
26462 msgid "ln-sf"
26463 msgstr ""
26464
26465 # type: verbatim
26466 #. type: verbatim
26467 #: ../fish/guestfish-actions.pod:2447
26468 #, no-wrap
26469 msgid ""
26470 " ln-sf target linkname\n"
26471 "\n"
26472 msgstr ""
26473
26474 # type: =head2
26475 #. type: =head2
26476 #: ../fish/guestfish-actions.pod:2452
26477 msgid "lremovexattr"
26478 msgstr ""
26479
26480 # type: verbatim
26481 #. type: verbatim
26482 #: ../fish/guestfish-actions.pod:2454
26483 #, no-wrap
26484 msgid ""
26485 " lremovexattr xattr path\n"
26486 "\n"
26487 msgstr ""
26488
26489 # type: textblock
26490 #. type: textblock
26491 #: ../fish/guestfish-actions.pod:2456
26492 msgid ""
26493 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
26494 "it removes an extended attribute of the link itself."
26495 msgstr ""
26496
26497 # type: =head2
26498 #. type: =head2
26499 #: ../fish/guestfish-actions.pod:2460
26500 msgid "ls"
26501 msgstr ""
26502
26503 # type: verbatim
26504 #. type: verbatim
26505 #: ../fish/guestfish-actions.pod:2462
26506 #, no-wrap
26507 msgid ""
26508 " ls directory\n"
26509 "\n"
26510 msgstr ""
26511
26512 # type: textblock
26513 #. type: textblock
26514 #: ../fish/guestfish-actions.pod:2468
26515 msgid ""
26516 "This command is mostly useful for interactive sessions.  Programs should "
26517 "probably use L</readdir> instead."
26518 msgstr ""
26519
26520 # type: =head2
26521 #. type: =head2
26522 #: ../fish/guestfish-actions.pod:2471
26523 msgid "lsetxattr"
26524 msgstr ""
26525
26526 # type: verbatim
26527 #. type: verbatim
26528 #: ../fish/guestfish-actions.pod:2473
26529 #, no-wrap
26530 msgid ""
26531 " lsetxattr xattr val vallen path\n"
26532 "\n"
26533 msgstr ""
26534
26535 # type: textblock
26536 #. type: textblock
26537 #: ../fish/guestfish-actions.pod:2475
26538 msgid ""
26539 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
26540 "sets an extended attribute of the link itself."
26541 msgstr ""
26542
26543 # type: =head2
26544 #. type: =head2
26545 #: ../fish/guestfish-actions.pod:2479
26546 msgid "lstat"
26547 msgstr ""
26548
26549 # type: verbatim
26550 #. type: verbatim
26551 #: ../fish/guestfish-actions.pod:2481
26552 #, no-wrap
26553 msgid ""
26554 " lstat path\n"
26555 "\n"
26556 msgstr ""
26557
26558 # type: textblock
26559 #. type: textblock
26560 #: ../fish/guestfish-actions.pod:2485
26561 msgid ""
26562 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
26563 "the link is stat-ed, not the file it refers to."
26564 msgstr ""
26565
26566 # type: =head2
26567 #. type: =head2
26568 #: ../fish/guestfish-actions.pod:2491
26569 msgid "lstatlist"
26570 msgstr ""
26571
26572 # type: verbatim
26573 #. type: verbatim
26574 #: ../fish/guestfish-actions.pod:2493
26575 #, no-wrap
26576 msgid ""
26577 " lstatlist path 'names ...'\n"
26578 "\n"
26579 msgstr ""
26580
26581 # type: textblock
26582 #. type: textblock
26583 #: ../fish/guestfish-actions.pod:2495
26584 msgid ""
26585 "This call allows you to perform the L</lstat> operation on multiple files, "
26586 "where all files are in the directory C<path>.  C<names> is the list of files "
26587 "from this directory."
26588 msgstr ""
26589
26590 # type: textblock
26591 #. type: textblock
26592 #: ../fish/guestfish-actions.pod:2504
26593 msgid ""
26594 "This call is intended for programs that want to efficiently list a directory "
26595 "contents without making many round-trips.  See also L</lxattrlist> for a "
26596 "similarly efficient call for getting extended attributes.  Very long "
26597 "directory listings might cause the protocol message size to be exceeded, "
26598 "causing this call to fail.  The caller must split up such requests into "
26599 "smaller groups of names."
26600 msgstr ""
26601
26602 # type: =head2
26603 #. type: =head2
26604 #: ../fish/guestfish-actions.pod:2512
26605 msgid "luks-add-key"
26606 msgstr ""
26607
26608 # type: verbatim
26609 #. type: verbatim
26610 #: ../fish/guestfish-actions.pod:2514
26611 #, no-wrap
26612 msgid ""
26613 " luks-add-key device keyslot\n"
26614 "\n"
26615 msgstr ""
26616
26617 # type: textblock
26618 #. type: textblock
26619 #: ../fish/guestfish-actions.pod:2521
26620 msgid ""
26621 "Note that if C<keyslot> already contains a key, then this command will "
26622 "fail.  You have to use L</luks-kill-slot> first to remove that key."
26623 msgstr ""
26624
26625 # type: textblock
26626 #. type: textblock
26627 #: ../fish/guestfish-actions.pod:2525 ../fish/guestfish-actions.pod:2547
26628 #: ../fish/guestfish-actions.pod:2560 ../fish/guestfish-actions.pod:2574
26629 #: ../fish/guestfish-actions.pod:2597 ../fish/guestfish-actions.pod:2607
26630 msgid ""
26631 "This command has one or more key or passphrase parameters.  Guestfish will "
26632 "prompt for these separately."
26633 msgstr ""
26634
26635 # type: =head2
26636 #. type: =head2
26637 #: ../fish/guestfish-actions.pod:2528
26638 msgid "luks-close"
26639 msgstr ""
26640
26641 # type: verbatim
26642 #. type: verbatim
26643 #: ../fish/guestfish-actions.pod:2530
26644 #, no-wrap
26645 msgid ""
26646 " luks-close device\n"
26647 "\n"
26648 msgstr ""
26649
26650 # type: textblock
26651 #. type: textblock
26652 #: ../fish/guestfish-actions.pod:2532
26653 msgid ""
26654 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
26655 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
26656 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
26657 "block device."
26658 msgstr ""
26659
26660 # type: =head2
26661 #. type: =head2
26662 #: ../fish/guestfish-actions.pod:2538
26663 msgid "luks-format"
26664 msgstr ""
26665
26666 # type: verbatim
26667 #. type: verbatim
26668 #: ../fish/guestfish-actions.pod:2540
26669 #, no-wrap
26670 msgid ""
26671 " luks-format device keyslot\n"
26672 "\n"
26673 msgstr ""
26674
26675 # type: =head2
26676 #. type: =head2
26677 #: ../fish/guestfish-actions.pod:2553
26678 msgid "luks-format-cipher"
26679 msgstr ""
26680
26681 # type: verbatim
26682 #. type: verbatim
26683 #: ../fish/guestfish-actions.pod:2555
26684 #, no-wrap
26685 msgid ""
26686 " luks-format-cipher device keyslot cipher\n"
26687 "\n"
26688 msgstr ""
26689
26690 # type: textblock
26691 #. type: textblock
26692 #: ../fish/guestfish-actions.pod:2557
26693 msgid ""
26694 "This command is the same as L</luks-format> but it also allows you to set "
26695 "the C<cipher> used."
26696 msgstr ""
26697
26698 # type: =head2
26699 #. type: =head2
26700 #: ../fish/guestfish-actions.pod:2566
26701 msgid "luks-kill-slot"
26702 msgstr ""
26703
26704 # type: verbatim
26705 #. type: verbatim
26706 #: ../fish/guestfish-actions.pod:2568
26707 #, no-wrap
26708 msgid ""
26709 " luks-kill-slot device keyslot\n"
26710 "\n"
26711 msgstr ""
26712
26713 # type: =head2
26714 #. type: =head2
26715 #: ../fish/guestfish-actions.pod:2577
26716 msgid "luks-open"
26717 msgstr ""
26718
26719 # type: verbatim
26720 #. type: verbatim
26721 #: ../fish/guestfish-actions.pod:2579
26722 #, no-wrap
26723 msgid ""
26724 " luks-open device mapname\n"
26725 "\n"
26726 msgstr ""
26727
26728 # type: textblock
26729 #. type: textblock
26730 #: ../fish/guestfish-actions.pod:2593
26731 msgid ""
26732 "If this block device contains LVM volume groups, then calling L</vgscan> "
26733 "followed by L</vg-activate-all> will make them visible."
26734 msgstr ""
26735
26736 # type: =head2
26737 #. type: =head2
26738 #: ../fish/guestfish-actions.pod:2600
26739 msgid "luks-open-ro"
26740 msgstr ""
26741
26742 # type: verbatim
26743 #. type: verbatim
26744 #: ../fish/guestfish-actions.pod:2602
26745 #, no-wrap
26746 msgid ""
26747 " luks-open-ro device mapname\n"
26748 "\n"
26749 msgstr ""
26750
26751 # type: textblock
26752 #. type: textblock
26753 #: ../fish/guestfish-actions.pod:2604
26754 msgid ""
26755 "This is the same as L</luks-open> except that a read-only mapping is created."
26756 msgstr ""
26757
26758 # type: =head2
26759 #. type: =head2
26760 #: ../fish/guestfish-actions.pod:2610
26761 msgid "lvcreate"
26762 msgstr ""
26763
26764 # type: verbatim
26765 #. type: verbatim
26766 #: ../fish/guestfish-actions.pod:2612
26767 #, no-wrap
26768 msgid ""
26769 " lvcreate logvol volgroup mbytes\n"
26770 "\n"
26771 msgstr ""
26772
26773 # type: =head2
26774 #. type: =head2
26775 #: ../fish/guestfish-actions.pod:2617
26776 msgid "lvm-canonical-lv-name"
26777 msgstr ""
26778
26779 # type: verbatim
26780 #. type: verbatim
26781 #: ../fish/guestfish-actions.pod:2619
26782 #, no-wrap
26783 msgid ""
26784 " lvm-canonical-lv-name lvname\n"
26785 "\n"
26786 msgstr ""
26787
26788 # type: textblock
26789 #. type: textblock
26790 #: ../fish/guestfish-actions.pod:2628
26791 msgid "See also L</is-lv>."
26792 msgstr ""
26793
26794 # type: =head2
26795 #. type: =head2
26796 #: ../fish/guestfish-actions.pod:2630
26797 msgid "lvm-clear-filter"
26798 msgstr ""
26799
26800 # type: verbatim
26801 #. type: verbatim
26802 #: ../fish/guestfish-actions.pod:2632
26803 #, no-wrap
26804 msgid ""
26805 " lvm-clear-filter\n"
26806 "\n"
26807 msgstr ""
26808
26809 # type: textblock
26810 #. type: textblock
26811 #: ../fish/guestfish-actions.pod:2634
26812 msgid ""
26813 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
26814 "block device."
26815 msgstr ""
26816
26817 # type: =head2
26818 #. type: =head2
26819 #: ../fish/guestfish-actions.pod:2640
26820 msgid "lvm-remove-all"
26821 msgstr ""
26822
26823 # type: verbatim
26824 #. type: verbatim
26825 #: ../fish/guestfish-actions.pod:2642
26826 #, no-wrap
26827 msgid ""
26828 " lvm-remove-all\n"
26829 "\n"
26830 msgstr ""
26831
26832 # type: =head2
26833 #. type: =head2
26834 #: ../fish/guestfish-actions.pod:2650
26835 msgid "lvm-set-filter"
26836 msgstr ""
26837
26838 # type: verbatim
26839 #. type: verbatim
26840 #: ../fish/guestfish-actions.pod:2652
26841 #, no-wrap
26842 msgid ""
26843 " lvm-set-filter 'devices ...'\n"
26844 "\n"
26845 msgstr ""
26846
26847 # type: =head2
26848 #. type: =head2
26849 #: ../fish/guestfish-actions.pod:2677
26850 msgid "lvremove"
26851 msgstr ""
26852
26853 # type: verbatim
26854 #. type: verbatim
26855 #: ../fish/guestfish-actions.pod:2679
26856 #, no-wrap
26857 msgid ""
26858 " lvremove device\n"
26859 "\n"
26860 msgstr ""
26861
26862 # type: =head2
26863 #. type: =head2
26864 #: ../fish/guestfish-actions.pod:2687
26865 msgid "lvrename"
26866 msgstr ""
26867
26868 # type: verbatim
26869 #. type: verbatim
26870 #: ../fish/guestfish-actions.pod:2689
26871 #, no-wrap
26872 msgid ""
26873 " lvrename logvol newlogvol\n"
26874 "\n"
26875 msgstr ""
26876
26877 # type: =head2
26878 #. type: =head2
26879 #: ../fish/guestfish-actions.pod:2693
26880 msgid "lvresize"
26881 msgstr ""
26882
26883 # type: verbatim
26884 #. type: verbatim
26885 #: ../fish/guestfish-actions.pod:2695
26886 #, no-wrap
26887 msgid ""
26888 " lvresize device mbytes\n"
26889 "\n"
26890 msgstr ""
26891
26892 # type: =head2
26893 #. type: =head2
26894 #: ../fish/guestfish-actions.pod:2701
26895 msgid "lvresize-free"
26896 msgstr ""
26897
26898 # type: verbatim
26899 #. type: verbatim
26900 #: ../fish/guestfish-actions.pod:2703
26901 #, no-wrap
26902 msgid ""
26903 " lvresize-free lv percent\n"
26904 "\n"
26905 msgstr ""
26906
26907 # type: =head2
26908 #. type: =head2
26909 #: ../fish/guestfish-actions.pod:2711
26910 msgid "lvs"
26911 msgstr ""
26912
26913 # type: verbatim
26914 #. type: verbatim
26915 #: ../fish/guestfish-actions.pod:2713
26916 #, no-wrap
26917 msgid ""
26918 " lvs\n"
26919 "\n"
26920 msgstr ""
26921
26922 # type: textblock
26923 #. type: textblock
26924 #: ../fish/guestfish-actions.pod:2721
26925 msgid "See also L</lvs-full>, L</list-filesystems>."
26926 msgstr ""
26927
26928 # type: =head2
26929 #. type: =head2
26930 #: ../fish/guestfish-actions.pod:2723
26931 msgid "lvs-full"
26932 msgstr ""
26933
26934 # type: verbatim
26935 #. type: verbatim
26936 #: ../fish/guestfish-actions.pod:2725
26937 #, no-wrap
26938 msgid ""
26939 " lvs-full\n"
26940 "\n"
26941 msgstr ""
26942
26943 # type: =head2
26944 #. type: =head2
26945 #: ../fish/guestfish-actions.pod:2730
26946 msgid "lvuuid"
26947 msgstr ""
26948
26949 # type: verbatim
26950 #. type: verbatim
26951 #: ../fish/guestfish-actions.pod:2732
26952 #, no-wrap
26953 msgid ""
26954 " lvuuid device\n"
26955 "\n"
26956 msgstr ""
26957
26958 # type: =head2
26959 #. type: =head2
26960 #: ../fish/guestfish-actions.pod:2736
26961 msgid "lxattrlist"
26962 msgstr ""
26963
26964 # type: verbatim
26965 #. type: verbatim
26966 #: ../fish/guestfish-actions.pod:2738
26967 #, no-wrap
26968 msgid ""
26969 " lxattrlist path 'names ...'\n"
26970 "\n"
26971 msgstr ""
26972
26973 # type: textblock
26974 #. type: textblock
26975 #: ../fish/guestfish-actions.pod:2754
26976 msgid ""
26977 "This call is intended for programs that want to efficiently list a directory "
26978 "contents without making many round-trips.  See also L</lstatlist> for a "
26979 "similarly efficient call for getting standard stats.  Very long directory "
26980 "listings might cause the protocol message size to be exceeded, causing this "
26981 "call to fail.  The caller must split up such requests into smaller groups of "
26982 "names."
26983 msgstr ""
26984
26985 # type: =head2
26986 #. type: =head2
26987 #: ../fish/guestfish-actions.pod:2762
26988 msgid "mkdir"
26989 msgstr ""
26990
26991 # type: verbatim
26992 #. type: verbatim
26993 #: ../fish/guestfish-actions.pod:2764
26994 #, no-wrap
26995 msgid ""
26996 " mkdir path\n"
26997 "\n"
26998 msgstr ""
26999
27000 # type: =head2
27001 #. type: =head2
27002 #: ../fish/guestfish-actions.pod:2768
27003 msgid "mkdir-mode"
27004 msgstr ""
27005
27006 # type: verbatim
27007 #. type: verbatim
27008 #: ../fish/guestfish-actions.pod:2770
27009 #, no-wrap
27010 msgid ""
27011 " mkdir-mode path mode\n"
27012 "\n"
27013 msgstr ""
27014
27015 # type: textblock
27016 #. type: textblock
27017 #: ../fish/guestfish-actions.pod:2779
27018 msgid "See also L</mkdir>, L</umask>"
27019 msgstr ""
27020
27021 # type: =head2
27022 #. type: =head2
27023 #: ../fish/guestfish-actions.pod:2781
27024 msgid "mkdir-p"
27025 msgstr ""
27026
27027 # type: verbatim
27028 #. type: verbatim
27029 #: ../fish/guestfish-actions.pod:2783
27030 #, no-wrap
27031 msgid ""
27032 " mkdir-p path\n"
27033 "\n"
27034 msgstr ""
27035
27036 # type: =head2
27037 #. type: =head2
27038 #: ../fish/guestfish-actions.pod:2788
27039 msgid "mkdtemp"
27040 msgstr ""
27041
27042 # type: verbatim
27043 #. type: verbatim
27044 #: ../fish/guestfish-actions.pod:2790
27045 #, no-wrap
27046 msgid ""
27047 " mkdtemp template\n"
27048 "\n"
27049 msgstr ""
27050
27051 # type: =head2
27052 #. type: =head2
27053 #: ../fish/guestfish-actions.pod:2811
27054 msgid "mke2fs-J"
27055 msgstr ""
27056
27057 # type: verbatim
27058 #. type: verbatim
27059 #: ../fish/guestfish-actions.pod:2813
27060 #, no-wrap
27061 msgid ""
27062 " mke2fs-J fstype blocksize device journal\n"
27063 "\n"
27064 msgstr ""
27065
27066 # type: textblock
27067 #. type: textblock
27068 #: ../fish/guestfish-actions.pod:2821
27069 msgid "See also L</mke2journal>."
27070 msgstr ""
27071
27072 # type: =head2
27073 #. type: =head2
27074 #: ../fish/guestfish-actions.pod:2823
27075 msgid "mke2fs-JL"
27076 msgstr ""
27077
27078 # type: verbatim
27079 #. type: verbatim
27080 #: ../fish/guestfish-actions.pod:2825
27081 #, no-wrap
27082 msgid ""
27083 " mke2fs-JL fstype blocksize device label\n"
27084 "\n"
27085 msgstr ""
27086
27087 # type: textblock
27088 #. type: textblock
27089 #: ../fish/guestfish-actions.pod:2830
27090 msgid "See also L</mke2journal-L>."
27091 msgstr ""
27092
27093 # type: =head2
27094 #. type: =head2
27095 #: ../fish/guestfish-actions.pod:2832
27096 msgid "mke2fs-JU"
27097 msgstr ""
27098
27099 # type: verbatim
27100 #. type: verbatim
27101 #: ../fish/guestfish-actions.pod:2834
27102 #, no-wrap
27103 msgid ""
27104 " mke2fs-JU fstype blocksize device uuid\n"
27105 "\n"
27106 msgstr ""
27107
27108 # type: textblock
27109 #. type: textblock
27110 #: ../fish/guestfish-actions.pod:2839
27111 msgid "See also L</mke2journal-U>."
27112 msgstr ""
27113
27114 # type: =head2
27115 #. type: =head2
27116 #: ../fish/guestfish-actions.pod:2841
27117 msgid "mke2journal"
27118 msgstr ""
27119
27120 # type: verbatim
27121 #. type: verbatim
27122 #: ../fish/guestfish-actions.pod:2843
27123 #, no-wrap
27124 msgid ""
27125 " mke2journal blocksize device\n"
27126 "\n"
27127 msgstr ""
27128
27129 # type: =head2
27130 #. type: =head2
27131 #: ../fish/guestfish-actions.pod:2850
27132 msgid "mke2journal-L"
27133 msgstr ""
27134
27135 # type: verbatim
27136 #. type: verbatim
27137 #: ../fish/guestfish-actions.pod:2852
27138 #, no-wrap
27139 msgid ""
27140 " mke2journal-L blocksize label device\n"
27141 "\n"
27142 msgstr ""
27143
27144 # type: =head2
27145 #. type: =head2
27146 #: ../fish/guestfish-actions.pod:2856
27147 msgid "mke2journal-U"
27148 msgstr ""
27149
27150 # type: verbatim
27151 #. type: verbatim
27152 #: ../fish/guestfish-actions.pod:2858
27153 #, no-wrap
27154 msgid ""
27155 " mke2journal-U blocksize uuid device\n"
27156 "\n"
27157 msgstr ""
27158
27159 # type: =head2
27160 #. type: =head2
27161 #: ../fish/guestfish-actions.pod:2862
27162 msgid "mkfifo"
27163 msgstr ""
27164
27165 # type: verbatim
27166 #. type: verbatim
27167 #: ../fish/guestfish-actions.pod:2864
27168 #, no-wrap
27169 msgid ""
27170 " mkfifo mode path\n"
27171 "\n"
27172 msgstr ""
27173
27174 # type: textblock
27175 #. type: textblock
27176 #: ../fish/guestfish-actions.pod:2866
27177 msgid ""
27178 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27179 "is just a convenient wrapper around L</mknod>."
27180 msgstr ""
27181
27182 # type: =head2
27183 #. type: =head2
27184 #: ../fish/guestfish-actions.pod:2872
27185 msgid "mkfs"
27186 msgstr ""
27187
27188 # type: verbatim
27189 #. type: verbatim
27190 #: ../fish/guestfish-actions.pod:2874
27191 #, no-wrap
27192 msgid ""
27193 " mkfs fstype device\n"
27194 "\n"
27195 msgstr ""
27196
27197 # type: =head2
27198 #. type: =head2
27199 #: ../fish/guestfish-actions.pod:2880
27200 msgid "mkfs-b"
27201 msgstr ""
27202
27203 # type: verbatim
27204 #. type: verbatim
27205 #: ../fish/guestfish-actions.pod:2882
27206 #, no-wrap
27207 msgid ""
27208 " mkfs-b fstype blocksize device\n"
27209 "\n"
27210 msgstr ""
27211
27212 # type: textblock
27213 #. type: textblock
27214 #: ../fish/guestfish-actions.pod:2884
27215 msgid ""
27216 "This call is similar to L</mkfs>, but it allows you to control the block "
27217 "size of the resulting filesystem.  Supported block sizes depend on the "
27218 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
27219 msgstr ""
27220
27221 # type: =head2
27222 #. type: =head2
27223 #: ../fish/guestfish-actions.pod:2899
27224 msgid "mkfs-opts"
27225 msgstr ""
27226
27227 # type: verbatim
27228 #. type: verbatim
27229 #: ../fish/guestfish-actions.pod:2901
27230 #, no-wrap
27231 msgid ""
27232 " mkfs-opts fstype device [blocksize:..]\n"
27233 "\n"
27234 msgstr ""
27235
27236 # type: =head2
27237 #. type: =head2
27238 #: ../fish/guestfish-actions.pod:2923
27239 msgid "mkmountpoint"
27240 msgstr ""
27241
27242 # type: verbatim
27243 #. type: verbatim
27244 #: ../fish/guestfish-actions.pod:2925
27245 #, no-wrap
27246 msgid ""
27247 " mkmountpoint exemptpath\n"
27248 "\n"
27249 msgstr ""
27250
27251 # type: textblock
27252 #. type: textblock
27253 #: ../fish/guestfish-actions.pod:2927
27254 msgid ""
27255 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
27256 "to create extra mountpoints before mounting the first filesystem."
27257 msgstr ""
27258
27259 # type: textblock
27260 #. type: textblock
27261 #: ../fish/guestfish-actions.pod:2951
27262 msgid ""
27263 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
27264 "unexpected errors if you try to mix these calls.  It is safest to manually "
27265 "unmount filesystems and remove mountpoints after use."
27266 msgstr ""
27267
27268 # type: textblock
27269 #. type: textblock
27270 #: ../fish/guestfish-actions.pod:2955
27271 msgid ""
27272 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
27273 "for this to work for manual mountpoints, you must ensure that the innermost "
27274 "mountpoints have the longest pathnames, as in the example code above."
27275 msgstr ""
27276
27277 # type: textblock
27278 #. type: textblock
27279 #: ../fish/guestfish-actions.pod:2962
27280 msgid ""
27281 "Autosync [see L</set-autosync>, this is set by default on handles] means "
27282 "that L</umount-all> is called when the handle is closed which can also "
27283 "trigger these issues."
27284 msgstr ""
27285
27286 # type: =head2
27287 #. type: =head2
27288 #: ../fish/guestfish-actions.pod:2966
27289 msgid "mknod"
27290 msgstr ""
27291
27292 # type: verbatim
27293 #. type: verbatim
27294 #: ../fish/guestfish-actions.pod:2968
27295 #, no-wrap
27296 msgid ""
27297 " mknod mode devmajor devminor path\n"
27298 "\n"
27299 msgstr ""
27300
27301 # type: textblock
27302 #. type: textblock
27303 #: ../fish/guestfish-actions.pod:2978
27304 msgid ""
27305 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
27306 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
27307 "regular file).  These constants are available in the standard Linux header "
27308 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
27309 "wrappers around this command which bitwise OR in the appropriate constant "
27310 "for you."
27311 msgstr ""
27312
27313 # type: =head2
27314 #. type: =head2
27315 #: ../fish/guestfish-actions.pod:2988
27316 msgid "mknod-b"
27317 msgstr ""
27318
27319 # type: verbatim
27320 #. type: verbatim
27321 #: ../fish/guestfish-actions.pod:2990
27322 #, no-wrap
27323 msgid ""
27324 " mknod-b mode devmajor devminor path\n"
27325 "\n"
27326 msgstr ""
27327
27328 # type: textblock
27329 #. type: textblock
27330 #: ../fish/guestfish-actions.pod:2992
27331 msgid ""
27332 "This call creates a block device node called C<path> with mode C<mode> and "
27333 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27334 "wrapper around L</mknod>."
27335 msgstr ""
27336
27337 # type: =head2
27338 #. type: =head2
27339 #: ../fish/guestfish-actions.pod:2998
27340 msgid "mknod-c"
27341 msgstr ""
27342
27343 # type: verbatim
27344 #. type: verbatim
27345 #: ../fish/guestfish-actions.pod:3000
27346 #, no-wrap
27347 msgid ""
27348 " mknod-c mode devmajor devminor path\n"
27349 "\n"
27350 msgstr ""
27351
27352 # type: textblock
27353 #. type: textblock
27354 #: ../fish/guestfish-actions.pod:3002
27355 msgid ""
27356 "This call creates a char device node called C<path> with mode C<mode> and "
27357 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
27358 "wrapper around L</mknod>."
27359 msgstr ""
27360
27361 # type: =head2
27362 #. type: =head2
27363 #: ../fish/guestfish-actions.pod:3008
27364 msgid "mkswap"
27365 msgstr ""
27366
27367 # type: verbatim
27368 #. type: verbatim
27369 #: ../fish/guestfish-actions.pod:3010
27370 #, no-wrap
27371 msgid ""
27372 " mkswap device\n"
27373 "\n"
27374 msgstr ""
27375
27376 # type: =head2
27377 #. type: =head2
27378 #: ../fish/guestfish-actions.pod:3014
27379 msgid "mkswap-L"
27380 msgstr ""
27381
27382 # type: verbatim
27383 #. type: verbatim
27384 #: ../fish/guestfish-actions.pod:3016
27385 #, no-wrap
27386 msgid ""
27387 " mkswap-L label device\n"
27388 "\n"
27389 msgstr ""
27390
27391 # type: =head2
27392 #. type: =head2
27393 #: ../fish/guestfish-actions.pod:3024
27394 msgid "mkswap-U"
27395 msgstr ""
27396
27397 # type: verbatim
27398 #. type: verbatim
27399 #: ../fish/guestfish-actions.pod:3026
27400 #, no-wrap
27401 msgid ""
27402 " mkswap-U uuid device\n"
27403 "\n"
27404 msgstr ""
27405
27406 # type: =head2
27407 #. type: =head2
27408 #: ../fish/guestfish-actions.pod:3030
27409 msgid "mkswap-file"
27410 msgstr ""
27411
27412 # type: verbatim
27413 #. type: verbatim
27414 #: ../fish/guestfish-actions.pod:3032
27415 #, no-wrap
27416 msgid ""
27417 " mkswap-file path\n"
27418 "\n"
27419 msgstr ""
27420
27421 # type: textblock
27422 #. type: textblock
27423 #: ../fish/guestfish-actions.pod:3036
27424 msgid ""
27425 "This command just writes a swap file signature to an existing file.  To "
27426 "create the file itself, use something like L</fallocate>."
27427 msgstr ""
27428
27429 # type: =head2
27430 #. type: =head2
27431 #: ../fish/guestfish-actions.pod:3039
27432 msgid "modprobe"
27433 msgstr ""
27434
27435 # type: verbatim
27436 #. type: verbatim
27437 #: ../fish/guestfish-actions.pod:3041
27438 #, no-wrap
27439 msgid ""
27440 " modprobe modulename\n"
27441 "\n"
27442 msgstr ""
27443
27444 # type: =head2
27445 #. type: =head2
27446 #: ../fish/guestfish-actions.pod:3048
27447 msgid "mount"
27448 msgstr ""
27449
27450 # type: verbatim
27451 #. type: verbatim
27452 #: ../fish/guestfish-actions.pod:3050
27453 #, no-wrap
27454 msgid ""
27455 " mount device mountpoint\n"
27456 "\n"
27457 msgstr ""
27458
27459 # type: textblock
27460 #. type: textblock
27461 #: ../fish/guestfish-actions.pod:3066
27462 msgid ""
27463 "B<Important note:> When you use this call, the filesystem options C<sync> "
27464 "and C<noatime> are set implicitly.  This was originally done because we "
27465 "thought it would improve reliability, but it turns out that I<-o sync> has a "
27466 "very large negative performance impact and negligible effect on "
27467 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
27468 "code that needs performance, and instead use L</mount-options> (use an empty "
27469 "string for the first parameter if you don't want any options)."
27470 msgstr ""
27471
27472 # type: =head2
27473 #. type: =head2
27474 #: ../fish/guestfish-actions.pod:3076
27475 msgid "mount-loop"
27476 msgstr ""
27477
27478 # type: verbatim
27479 #. type: verbatim
27480 #: ../fish/guestfish-actions.pod:3078
27481 #, no-wrap
27482 msgid ""
27483 " mount-loop file mountpoint\n"
27484 "\n"
27485 msgstr ""
27486
27487 # type: =head2
27488 #. type: =head2
27489 #: ../fish/guestfish-actions.pod:3084
27490 msgid "mount-options"
27491 msgstr ""
27492
27493 # type: verbatim
27494 #. type: verbatim
27495 #: ../fish/guestfish-actions.pod:3086
27496 #, no-wrap
27497 msgid ""
27498 " mount-options options device mountpoint\n"
27499 "\n"
27500 msgstr ""
27501
27502 # type: textblock
27503 #. type: textblock
27504 #: ../fish/guestfish-actions.pod:3088
27505 msgid ""
27506 "This is the same as the L</mount> command, but it allows you to set the "
27507 "mount options as for the L<mount(8)> I<-o> flag."
27508 msgstr ""
27509
27510 # type: =head2
27511 #. type: =head2
27512 #: ../fish/guestfish-actions.pod:3096
27513 msgid "mount-ro"
27514 msgstr ""
27515
27516 # type: verbatim
27517 #. type: verbatim
27518 #: ../fish/guestfish-actions.pod:3098
27519 #, no-wrap
27520 msgid ""
27521 " mount-ro device mountpoint\n"
27522 "\n"
27523 msgstr ""
27524
27525 # type: textblock
27526 #. type: textblock
27527 #: ../fish/guestfish-actions.pod:3100
27528 msgid ""
27529 "This is the same as the L</mount> command, but it mounts the filesystem with "
27530 "the read-only (I<-o ro>) flag."
27531 msgstr ""
27532
27533 # type: =head2
27534 #. type: =head2
27535 #: ../fish/guestfish-actions.pod:3103
27536 msgid "mount-vfs"
27537 msgstr ""
27538
27539 # type: verbatim
27540 #. type: verbatim
27541 #: ../fish/guestfish-actions.pod:3105
27542 #, no-wrap
27543 msgid ""
27544 " mount-vfs options vfstype device mountpoint\n"
27545 "\n"
27546 msgstr ""
27547
27548 # type: textblock
27549 #. type: textblock
27550 #: ../fish/guestfish-actions.pod:3107
27551 msgid ""
27552 "This is the same as the L</mount> command, but it allows you to set both the "
27553 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
27554 msgstr ""
27555
27556 # type: =head2
27557 #. type: =head2
27558 #: ../fish/guestfish-actions.pod:3111
27559 msgid "mountpoints"
27560 msgstr ""
27561
27562 # type: verbatim
27563 #. type: verbatim
27564 #: ../fish/guestfish-actions.pod:3113
27565 #, no-wrap
27566 msgid ""
27567 " mountpoints\n"
27568 "\n"
27569 msgstr ""
27570
27571 # type: textblock
27572 #. type: textblock
27573 #: ../fish/guestfish-actions.pod:3115
27574 msgid ""
27575 "This call is similar to L</mounts>.  That call returns a list of devices.  "
27576 "This one returns a hash table (map) of device name to directory where the "
27577 "device is mounted."
27578 msgstr ""
27579
27580 # type: =head2
27581 #. type: =head2
27582 #: ../fish/guestfish-actions.pod:3119
27583 msgid "mounts"
27584 msgstr ""
27585
27586 # type: verbatim
27587 #. type: verbatim
27588 #: ../fish/guestfish-actions.pod:3121
27589 #, no-wrap
27590 msgid ""
27591 " mounts\n"
27592 "\n"
27593 msgstr ""
27594
27595 # type: textblock
27596 #. type: textblock
27597 #: ../fish/guestfish-actions.pod:3128
27598 msgid "See also: L</mountpoints>"
27599 msgstr ""
27600
27601 # type: =head2
27602 #. type: =head2
27603 #: ../fish/guestfish-actions.pod:3130
27604 msgid "mv"
27605 msgstr ""
27606
27607 # type: verbatim
27608 #. type: verbatim
27609 #: ../fish/guestfish-actions.pod:3132
27610 #, no-wrap
27611 msgid ""
27612 " mv src dest\n"
27613 "\n"
27614 msgstr ""
27615
27616 # type: =head2
27617 #. type: =head2
27618 #: ../fish/guestfish-actions.pod:3137
27619 msgid "ntfs-3g-probe"
27620 msgstr ""
27621
27622 # type: verbatim
27623 #. type: verbatim
27624 #: ../fish/guestfish-actions.pod:3139
27625 #, no-wrap
27626 msgid ""
27627 " ntfs-3g-probe true|false device\n"
27628 "\n"
27629 msgstr ""
27630
27631 # type: =head2
27632 #. type: =head2
27633 #: ../fish/guestfish-actions.pod:3153
27634 msgid "ntfsresize"
27635 msgstr ""
27636
27637 # type: verbatim
27638 #. type: verbatim
27639 #: ../fish/guestfish-actions.pod:3155
27640 #, no-wrap
27641 msgid ""
27642 " ntfsresize device\n"
27643 "\n"
27644 msgstr ""
27645
27646 # type: =head2
27647 #. type: =head2
27648 #: ../fish/guestfish-actions.pod:3161
27649 msgid "ntfsresize-size"
27650 msgstr ""
27651
27652 # type: verbatim
27653 #. type: verbatim
27654 #: ../fish/guestfish-actions.pod:3163
27655 #, no-wrap
27656 msgid ""
27657 " ntfsresize-size device size\n"
27658 "\n"
27659 msgstr ""
27660
27661 # type: textblock
27662 #. type: textblock
27663 #: ../fish/guestfish-actions.pod:3165
27664 msgid ""
27665 "This command is the same as L</ntfsresize> except that it allows you to "
27666 "specify the new size (in bytes) explicitly."
27667 msgstr ""
27668
27669 # type: =head2
27670 #. type: =head2
27671 #: ../fish/guestfish-actions.pod:3168
27672 msgid "part-add"
27673 msgstr ""
27674
27675 # type: verbatim
27676 #. type: verbatim
27677 #: ../fish/guestfish-actions.pod:3170
27678 #, no-wrap
27679 msgid ""
27680 " part-add device prlogex startsect endsect\n"
27681 "\n"
27682 msgstr ""
27683
27684 # type: textblock
27685 #. type: textblock
27686 #: ../fish/guestfish-actions.pod:3172
27687 msgid ""
27688 "This command adds a partition to C<device>.  If there is no partition table "
27689 "on the device, call L</part-init> first."
27690 msgstr ""
27691
27692 # type: textblock
27693 #. type: textblock
27694 #: ../fish/guestfish-actions.pod:3184
27695 msgid ""
27696 "Creating a partition which covers the whole disk is not so easy.  Use L</"
27697 "part-disk> to do that."
27698 msgstr ""
27699
27700 # type: =head2
27701 #. type: =head2
27702 #: ../fish/guestfish-actions.pod:3187
27703 msgid "part-del"
27704 msgstr ""
27705
27706 # type: verbatim
27707 #. type: verbatim
27708 #: ../fish/guestfish-actions.pod:3189
27709 #, no-wrap
27710 msgid ""
27711 " part-del device partnum\n"
27712 "\n"
27713 msgstr ""
27714
27715 # type: =head2
27716 #. type: =head2
27717 #: ../fish/guestfish-actions.pod:3197
27718 msgid "part-disk"
27719 msgstr ""
27720
27721 # type: verbatim
27722 #. type: verbatim
27723 #: ../fish/guestfish-actions.pod:3199
27724 #, no-wrap
27725 msgid ""
27726 " part-disk device parttype\n"
27727 "\n"
27728 msgstr ""
27729
27730 # type: textblock
27731 #. type: textblock
27732 #: ../fish/guestfish-actions.pod:3201
27733 msgid ""
27734 "This command is simply a combination of L</part-init> followed by L</part-"
27735 "add> to create a single primary partition covering the whole disk."
27736 msgstr ""
27737
27738 # type: textblock
27739 #. type: textblock
27740 #: ../fish/guestfish-actions.pod:3205
27741 msgid ""
27742 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27743 "possible values are described in L</part-init>."
27744 msgstr ""
27745
27746 # type: =head2
27747 #. type: =head2
27748 #: ../fish/guestfish-actions.pod:3211
27749 msgid "part-get-bootable"
27750 msgstr ""
27751
27752 # type: verbatim
27753 #. type: verbatim
27754 #: ../fish/guestfish-actions.pod:3213
27755 #, no-wrap
27756 msgid ""
27757 " part-get-bootable device partnum\n"
27758 "\n"
27759 msgstr ""
27760
27761 # type: textblock
27762 #. type: textblock
27763 #: ../fish/guestfish-actions.pod:3218
27764 msgid "See also L</part-set-bootable>."
27765 msgstr ""
27766
27767 # type: =head2
27768 #. type: =head2
27769 #: ../fish/guestfish-actions.pod:3220
27770 msgid "part-get-mbr-id"
27771 msgstr ""
27772
27773 # type: verbatim
27774 #. type: verbatim
27775 #: ../fish/guestfish-actions.pod:3222
27776 #, no-wrap
27777 msgid ""
27778 " part-get-mbr-id device partnum\n"
27779 "\n"
27780 msgstr ""
27781
27782 # type: textblock
27783 #. type: textblock
27784 #: ../fish/guestfish-actions.pod:3227 ../fish/guestfish-actions.pod:3365
27785 msgid ""
27786 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27787 "undefined results for other partition table types (see L</part-get-"
27788 "parttype>)."
27789 msgstr ""
27790
27791 # type: =head2
27792 #. type: =head2
27793 #: ../fish/guestfish-actions.pod:3231
27794 msgid "part-get-parttype"
27795 msgstr ""
27796
27797 # type: verbatim
27798 #. type: verbatim
27799 #: ../fish/guestfish-actions.pod:3233
27800 #, no-wrap
27801 msgid ""
27802 " part-get-parttype device\n"
27803 "\n"
27804 msgstr ""
27805
27806 # type: textblock
27807 #. type: textblock
27808 #: ../fish/guestfish-actions.pod:3238
27809 msgid ""
27810 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27811 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27812 "possible, although unusual.  See L</part-init> for a full list."
27813 msgstr ""
27814
27815 # type: =head2
27816 #. type: =head2
27817 #: ../fish/guestfish-actions.pod:3243
27818 msgid "part-init"
27819 msgstr ""
27820
27821 # type: verbatim
27822 #. type: verbatim
27823 #: ../fish/guestfish-actions.pod:3245
27824 #, no-wrap
27825 msgid ""
27826 " part-init device parttype\n"
27827 "\n"
27828 msgstr ""
27829
27830 # type: textblock
27831 #. type: textblock
27832 #: ../fish/guestfish-actions.pod:3251
27833 msgid ""
27834 "Initially there are no partitions.  Following this, you should call L</part-"
27835 "add> for each partition required."
27836 msgstr ""
27837
27838 # type: =head2
27839 #. type: =head2
27840 #: ../fish/guestfish-actions.pod:3314
27841 msgid "part-list"
27842 msgstr ""
27843
27844 # type: verbatim
27845 #. type: verbatim
27846 #: ../fish/guestfish-actions.pod:3316
27847 #, no-wrap
27848 msgid ""
27849 " part-list device\n"
27850 "\n"
27851 msgstr ""
27852
27853 # type: textblock
27854 #. type: textblock
27855 #: ../fish/guestfish-actions.pod:3331
27856 msgid ""
27857 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27858 "the device's sector size, see L</blockdev-getss>."
27859 msgstr ""
27860
27861 # type: =head2
27862 #. type: =head2
27863 #: ../fish/guestfish-actions.pod:3344
27864 msgid "part-set-bootable"
27865 msgstr ""
27866
27867 # type: verbatim
27868 #. type: verbatim
27869 #: ../fish/guestfish-actions.pod:3346
27870 #, no-wrap
27871 msgid ""
27872 " part-set-bootable device partnum true|false\n"
27873 "\n"
27874 msgstr ""
27875
27876 # type: =head2
27877 #. type: =head2
27878 #: ../fish/guestfish-actions.pod:3355
27879 msgid "part-set-mbr-id"
27880 msgstr ""
27881
27882 # type: verbatim
27883 #. type: verbatim
27884 #: ../fish/guestfish-actions.pod:3357
27885 #, no-wrap
27886 msgid ""
27887 " part-set-mbr-id device partnum idbyte\n"
27888 "\n"
27889 msgstr ""
27890
27891 # type: =head2
27892 #. type: =head2
27893 #: ../fish/guestfish-actions.pod:3369
27894 msgid "part-set-name"
27895 msgstr ""
27896
27897 # type: verbatim
27898 #. type: verbatim
27899 #: ../fish/guestfish-actions.pod:3371
27900 #, no-wrap
27901 msgid ""
27902 " part-set-name device partnum name\n"
27903 "\n"
27904 msgstr ""
27905
27906 # type: =head2
27907 #. type: =head2
27908 #: ../fish/guestfish-actions.pod:3379
27909 msgid "part-to-dev"
27910 msgstr ""
27911
27912 # type: verbatim
27913 #. type: verbatim
27914 #: ../fish/guestfish-actions.pod:3381
27915 #, no-wrap
27916 msgid ""
27917 " part-to-dev partition\n"
27918 "\n"
27919 msgstr ""
27920
27921 # type: textblock
27922 #. type: textblock
27923 #: ../fish/guestfish-actions.pod:3387
27924 msgid ""
27925 "The named partition must exist, for example as a string returned from L</"
27926 "list-partitions>."
27927 msgstr ""
27928
27929 # type: =head2
27930 #. type: =head2
27931 #: ../fish/guestfish-actions.pod:3390
27932 msgid "ping-daemon"
27933 msgstr ""
27934
27935 # type: verbatim
27936 #. type: verbatim
27937 #: ../fish/guestfish-actions.pod:3392
27938 #, no-wrap
27939 msgid ""
27940 " ping-daemon\n"
27941 "\n"
27942 msgstr ""
27943
27944 # type: =head2
27945 #. type: =head2
27946 #: ../fish/guestfish-actions.pod:3399
27947 msgid "pread"
27948 msgstr ""
27949
27950 # type: verbatim
27951 #. type: verbatim
27952 #: ../fish/guestfish-actions.pod:3401
27953 #, no-wrap
27954 msgid ""
27955 " pread path count offset\n"
27956 "\n"
27957 msgstr ""
27958
27959 # type: textblock
27960 #. type: textblock
27961 #: ../fish/guestfish-actions.pod:3409
27962 msgid "See also L</pwrite>, L</pread-device>."
27963 msgstr ""
27964
27965 # type: =head2
27966 #. type: =head2
27967 #: ../fish/guestfish-actions.pod:3414
27968 msgid "pread-device"
27969 msgstr ""
27970
27971 # type: verbatim
27972 #. type: verbatim
27973 #: ../fish/guestfish-actions.pod:3416
27974 #, no-wrap
27975 msgid ""
27976 " pread-device device count offset\n"
27977 "\n"
27978 msgstr ""
27979
27980 # type: textblock
27981 #. type: textblock
27982 #: ../fish/guestfish-actions.pod:3424
27983 msgid "See also L</pread>."
27984 msgstr ""
27985
27986 # type: =head2
27987 #. type: =head2
27988 #: ../fish/guestfish-actions.pod:3429
27989 msgid "pvcreate"
27990 msgstr ""
27991
27992 # type: verbatim
27993 #. type: verbatim
27994 #: ../fish/guestfish-actions.pod:3431
27995 #, no-wrap
27996 msgid ""
27997 " pvcreate device\n"
27998 "\n"
27999 msgstr ""
28000
28001 # type: =head2
28002 #. type: =head2
28003 #: ../fish/guestfish-actions.pod:3437
28004 msgid "pvremove"
28005 msgstr ""
28006
28007 # type: verbatim
28008 #. type: verbatim
28009 #: ../fish/guestfish-actions.pod:3439
28010 #, no-wrap
28011 msgid ""
28012 " pvremove device\n"
28013 "\n"
28014 msgstr ""
28015
28016 # type: =head2
28017 #. type: =head2
28018 #: ../fish/guestfish-actions.pod:3448
28019 msgid "pvresize"
28020 msgstr ""
28021
28022 # type: verbatim
28023 #. type: verbatim
28024 #: ../fish/guestfish-actions.pod:3450
28025 #, no-wrap
28026 msgid ""
28027 " pvresize device\n"
28028 "\n"
28029 msgstr ""
28030
28031 # type: =head2
28032 #. type: =head2
28033 #: ../fish/guestfish-actions.pod:3455
28034 msgid "pvresize-size"
28035 msgstr ""
28036
28037 # type: verbatim
28038 #. type: verbatim
28039 #: ../fish/guestfish-actions.pod:3457
28040 #, no-wrap
28041 msgid ""
28042 " pvresize-size device size\n"
28043 "\n"
28044 msgstr ""
28045
28046 # type: textblock
28047 #. type: textblock
28048 #: ../fish/guestfish-actions.pod:3459
28049 msgid ""
28050 "This command is the same as L</pvresize> except that it allows you to "
28051 "specify the new size (in bytes) explicitly."
28052 msgstr ""
28053
28054 # type: =head2
28055 #. type: =head2
28056 #: ../fish/guestfish-actions.pod:3462
28057 msgid "pvs"
28058 msgstr ""
28059
28060 # type: verbatim
28061 #. type: verbatim
28062 #: ../fish/guestfish-actions.pod:3464
28063 #, no-wrap
28064 msgid ""
28065 " pvs\n"
28066 "\n"
28067 msgstr ""
28068
28069 # type: textblock
28070 #. type: textblock
28071 #: ../fish/guestfish-actions.pod:3472
28072 msgid "See also L</pvs-full>."
28073 msgstr ""
28074
28075 # type: =head2
28076 #. type: =head2
28077 #: ../fish/guestfish-actions.pod:3474
28078 msgid "pvs-full"
28079 msgstr ""
28080
28081 # type: verbatim
28082 #. type: verbatim
28083 #: ../fish/guestfish-actions.pod:3476
28084 #, no-wrap
28085 msgid ""
28086 " pvs-full\n"
28087 "\n"
28088 msgstr ""
28089
28090 # type: =head2
28091 #. type: =head2
28092 #: ../fish/guestfish-actions.pod:3481
28093 msgid "pvuuid"
28094 msgstr ""
28095
28096 # type: verbatim
28097 #. type: verbatim
28098 #: ../fish/guestfish-actions.pod:3483
28099 #, no-wrap
28100 msgid ""
28101 " pvuuid device\n"
28102 "\n"
28103 msgstr ""
28104
28105 # type: =head2
28106 #. type: =head2
28107 #: ../fish/guestfish-actions.pod:3487
28108 msgid "pwrite"
28109 msgstr ""
28110
28111 # type: verbatim
28112 #. type: verbatim
28113 #: ../fish/guestfish-actions.pod:3489
28114 #, no-wrap
28115 msgid ""
28116 " pwrite path content offset\n"
28117 "\n"
28118 msgstr ""
28119
28120 # type: textblock
28121 #. type: textblock
28122 #: ../fish/guestfish-actions.pod:3500
28123 msgid "See also L</pread>, L</pwrite-device>."
28124 msgstr ""
28125
28126 # type: =head2
28127 #. type: =head2
28128 #: ../fish/guestfish-actions.pod:3505
28129 msgid "pwrite-device"
28130 msgstr ""
28131
28132 # type: verbatim
28133 #. type: verbatim
28134 #: ../fish/guestfish-actions.pod:3507
28135 #, no-wrap
28136 msgid ""
28137 " pwrite-device device content offset\n"
28138 "\n"
28139 msgstr ""
28140
28141 # type: textblock
28142 #. type: textblock
28143 #: ../fish/guestfish-actions.pod:3517
28144 msgid "See also L</pwrite>."
28145 msgstr ""
28146
28147 # type: =head2
28148 #. type: =head2
28149 #: ../fish/guestfish-actions.pod:3522
28150 msgid "read-file"
28151 msgstr ""
28152
28153 # type: verbatim
28154 #. type: verbatim
28155 #: ../fish/guestfish-actions.pod:3524
28156 #, no-wrap
28157 msgid ""
28158 " read-file path\n"
28159 "\n"
28160 msgstr ""
28161
28162 # type: textblock
28163 #. type: textblock
28164 #: ../fish/guestfish-actions.pod:3529
28165 msgid ""
28166 "Unlike L</cat>, this function can correctly handle files that contain "
28167 "embedded ASCII NUL characters.  However unlike L</download>, this function "
28168 "is limited in the total size of file that can be handled."
28169 msgstr ""
28170
28171 # type: =head2
28172 #. type: =head2
28173 #: ../fish/guestfish-actions.pod:3537
28174 msgid "read-lines"
28175 msgstr ""
28176
28177 # type: verbatim
28178 #. type: verbatim
28179 #: ../fish/guestfish-actions.pod:3539
28180 #, no-wrap
28181 msgid ""
28182 " read-lines path\n"
28183 "\n"
28184 msgstr ""
28185
28186 # type: textblock
28187 #. type: textblock
28188 #: ../fish/guestfish-actions.pod:3546
28189 msgid ""
28190 "Note that this function cannot correctly handle binary files (specifically, "
28191 "files containing C<\\0> character which is treated as end of line).  For "
28192 "those you need to use the L</read-file> function which has a more complex "
28193 "interface."
28194 msgstr ""
28195
28196 # type: =head2
28197 #. type: =head2
28198 #: ../fish/guestfish-actions.pod:3551
28199 msgid "readdir"
28200 msgstr ""
28201
28202 # type: verbatim
28203 #. type: verbatim
28204 #: ../fish/guestfish-actions.pod:3553
28205 #, no-wrap
28206 msgid ""
28207 " readdir dir\n"
28208 "\n"
28209 msgstr ""
28210
28211 # type: textblock
28212 #. type: textblock
28213 #: ../fish/guestfish-actions.pod:3605
28214 msgid ""
28215 "This function is primarily intended for use by programs.  To get a simple "
28216 "list of names, use L</ls>.  To get a printable directory for human "
28217 "consumption, use L</ll>."
28218 msgstr ""
28219
28220 # type: =head2
28221 #. type: =head2
28222 #: ../fish/guestfish-actions.pod:3609
28223 msgid "readlink"
28224 msgstr ""
28225
28226 # type: verbatim
28227 #. type: verbatim
28228 #: ../fish/guestfish-actions.pod:3611
28229 #, no-wrap
28230 msgid ""
28231 " readlink path\n"
28232 "\n"
28233 msgstr ""
28234
28235 # type: =head2
28236 #. type: =head2
28237 #: ../fish/guestfish-actions.pod:3615
28238 msgid "readlinklist"
28239 msgstr ""
28240
28241 # type: verbatim
28242 #. type: verbatim
28243 #: ../fish/guestfish-actions.pod:3617
28244 #, no-wrap
28245 msgid ""
28246 " readlinklist path 'names ...'\n"
28247 "\n"
28248 msgstr ""
28249
28250 # type: =head2
28251 #. type: =head2
28252 #: ../fish/guestfish-actions.pod:3641
28253 msgid "realpath"
28254 msgstr ""
28255
28256 # type: verbatim
28257 #. type: verbatim
28258 #: ../fish/guestfish-actions.pod:3643
28259 #, no-wrap
28260 msgid ""
28261 " realpath path\n"
28262 "\n"
28263 msgstr ""
28264
28265 # type: =head2
28266 #. type: =head2
28267 #: ../fish/guestfish-actions.pod:3648
28268 msgid "removexattr"
28269 msgstr ""
28270
28271 # type: verbatim
28272 #. type: verbatim
28273 #: ../fish/guestfish-actions.pod:3650
28274 #, no-wrap
28275 msgid ""
28276 " removexattr xattr path\n"
28277 "\n"
28278 msgstr ""
28279
28280 # type: textblock
28281 #. type: textblock
28282 #: ../fish/guestfish-actions.pod:3655
28283 msgid "See also: L</lremovexattr>, L<attr(5)>."
28284 msgstr ""
28285
28286 # type: =head2
28287 #. type: =head2
28288 #: ../fish/guestfish-actions.pod:3657
28289 msgid "resize2fs"
28290 msgstr ""
28291
28292 # type: verbatim
28293 #. type: verbatim
28294 #: ../fish/guestfish-actions.pod:3659
28295 #, no-wrap
28296 msgid ""
28297 " resize2fs device\n"
28298 "\n"
28299 msgstr ""
28300
28301 # type: textblock
28302 #. type: textblock
28303 #: ../fish/guestfish-actions.pod:3664
28304 msgid ""
28305 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
28306 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
28307 "gives an error about this and sometimes not.  In any case, it is always safe "
28308 "to call L</e2fsck-f> before calling this function."
28309 msgstr ""
28310
28311 #. type: =head2
28312 #: ../fish/guestfish-actions.pod:3670
28313 msgid "resize2fs-M"
28314 msgstr ""
28315
28316 #. type: verbatim
28317 #: ../fish/guestfish-actions.pod:3672
28318 #, no-wrap
28319 msgid ""
28320 " resize2fs-M device\n"
28321 "\n"
28322 msgstr ""
28323
28324 #. type: textblock
28325 #: ../fish/guestfish-actions.pod:3674
28326 msgid ""
28327 "This command is the same as L</resize2fs>, but the filesystem is resized to "
28328 "its minimum size.  This works like the C<-M> option to the C<resize2fs> "
28329 "command."
28330 msgstr ""
28331
28332 #. type: textblock
28333 #: ../fish/guestfish-actions.pod:3678
28334 msgid ""
28335 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
28336 "and read the C<Block size> and C<Block count> values.  These two numbers, "
28337 "multiplied together, give the resulting size of the minimal filesystem in "
28338 "bytes."
28339 msgstr ""
28340
28341 # type: =head2
28342 #. type: =head2
28343 #: ../fish/guestfish-actions.pod:3683
28344 msgid "resize2fs-size"
28345 msgstr ""
28346
28347 # type: verbatim
28348 #. type: verbatim
28349 #: ../fish/guestfish-actions.pod:3685
28350 #, no-wrap
28351 msgid ""
28352 " resize2fs-size device size\n"
28353 "\n"
28354 msgstr ""
28355
28356 # type: textblock
28357 #. type: textblock
28358 #: ../fish/guestfish-actions.pod:3687
28359 msgid ""
28360 "This command is the same as L</resize2fs> except that it allows you to "
28361 "specify the new size (in bytes) explicitly."
28362 msgstr ""
28363
28364 # type: =head2
28365 #. type: =head2
28366 #: ../fish/guestfish-actions.pod:3690
28367 msgid "rm"
28368 msgstr ""
28369
28370 # type: verbatim
28371 #. type: verbatim
28372 #: ../fish/guestfish-actions.pod:3692
28373 #, no-wrap
28374 msgid ""
28375 " rm path\n"
28376 "\n"
28377 msgstr ""
28378
28379 # type: =head2
28380 #. type: =head2
28381 #: ../fish/guestfish-actions.pod:3696
28382 msgid "rm-rf"
28383 msgstr ""
28384
28385 # type: verbatim
28386 #. type: verbatim
28387 #: ../fish/guestfish-actions.pod:3698
28388 #, no-wrap
28389 msgid ""
28390 " rm-rf path\n"
28391 "\n"
28392 msgstr ""
28393
28394 # type: =head2
28395 #. type: =head2
28396 #: ../fish/guestfish-actions.pod:3704
28397 msgid "rmdir"
28398 msgstr ""
28399
28400 # type: verbatim
28401 #. type: verbatim
28402 #: ../fish/guestfish-actions.pod:3706
28403 #, no-wrap
28404 msgid ""
28405 " rmdir path\n"
28406 "\n"
28407 msgstr ""
28408
28409 # type: =head2
28410 #. type: =head2
28411 #: ../fish/guestfish-actions.pod:3710
28412 msgid "rmmountpoint"
28413 msgstr ""
28414
28415 # type: verbatim
28416 #. type: verbatim
28417 #: ../fish/guestfish-actions.pod:3712
28418 #, no-wrap
28419 msgid ""
28420 " rmmountpoint exemptpath\n"
28421 "\n"
28422 msgstr ""
28423
28424 # type: textblock
28425 #. type: textblock
28426 #: ../fish/guestfish-actions.pod:3714
28427 msgid ""
28428 "This calls removes a mountpoint that was previously created with L</"
28429 "mkmountpoint>.  See L</mkmountpoint> for full details."
28430 msgstr ""
28431
28432 # type: =head2
28433 #. type: =head2
28434 #: ../fish/guestfish-actions.pod:3718
28435 msgid "scrub-device"
28436 msgstr ""
28437
28438 # type: verbatim
28439 #. type: verbatim
28440 #: ../fish/guestfish-actions.pod:3720
28441 #, no-wrap
28442 msgid ""
28443 " scrub-device device\n"
28444 "\n"
28445 msgstr ""
28446
28447 # type: =head2
28448 #. type: =head2
28449 #: ../fish/guestfish-actions.pod:3731
28450 msgid "scrub-file"
28451 msgstr ""
28452
28453 # type: verbatim
28454 #. type: verbatim
28455 #: ../fish/guestfish-actions.pod:3733
28456 #, no-wrap
28457 msgid ""
28458 " scrub-file file\n"
28459 "\n"
28460 msgstr ""
28461
28462 # type: =head2
28463 #. type: =head2
28464 #: ../fish/guestfish-actions.pod:3743
28465 msgid "scrub-freespace"
28466 msgstr ""
28467
28468 # type: verbatim
28469 #. type: verbatim
28470 #: ../fish/guestfish-actions.pod:3745
28471 #, no-wrap
28472 msgid ""
28473 " scrub-freespace dir\n"
28474 "\n"
28475 msgstr ""
28476
28477 # type: textblock
28478 #. type: textblock
28479 #: ../fish/guestfish-actions.pod:3747
28480 msgid ""
28481 "This command creates the directory C<dir> and then fills it with files until "
28482 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
28483 "deletes them.  The intention is to scrub any free space on the partition "
28484 "containing C<dir>."
28485 msgstr ""
28486
28487 # type: =head2
28488 #. type: =head2
28489 #: ../fish/guestfish-actions.pod:3756
28490 msgid "set-append"
28491 msgstr ""
28492
28493 # type: =head2
28494 #. type: =head2
28495 #: ../fish/guestfish-actions.pod:3758
28496 msgid "append"
28497 msgstr ""
28498
28499 # type: verbatim
28500 #. type: verbatim
28501 #: ../fish/guestfish-actions.pod:3760
28502 #, no-wrap
28503 msgid ""
28504 " set-append append\n"
28505 "\n"
28506 msgstr ""
28507
28508 # type: =head2
28509 #. type: =head2
28510 #: ../fish/guestfish-actions.pod:3771
28511 msgid "set-autosync"
28512 msgstr ""
28513
28514 # type: =head2
28515 #. type: =head2
28516 #: ../fish/guestfish-actions.pod:3773
28517 msgid "autosync"
28518 msgstr ""
28519
28520 # type: verbatim
28521 #. type: verbatim
28522 #: ../fish/guestfish-actions.pod:3775
28523 #, no-wrap
28524 msgid ""
28525 " set-autosync true|false\n"
28526 "\n"
28527 msgstr ""
28528
28529 # type: textblock
28530 #. type: textblock
28531 #: ../fish/guestfish-actions.pod:3777
28532 msgid ""
28533 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
28534 "effort attempt to run L</umount-all> followed by L</sync> when the handle is "
28535 "closed (also if the program exits without closing handles)."
28536 msgstr ""
28537
28538 # type: =head2
28539 #. type: =head2
28540 #: ../fish/guestfish-actions.pod:3785
28541 msgid "set-direct"
28542 msgstr ""
28543
28544 # type: =head2
28545 #. type: =head2
28546 #: ../fish/guestfish-actions.pod:3787
28547 msgid "direct"
28548 msgstr ""
28549
28550 # type: verbatim
28551 #. type: verbatim
28552 #: ../fish/guestfish-actions.pod:3789
28553 #, no-wrap
28554 msgid ""
28555 " set-direct true|false\n"
28556 "\n"
28557 msgstr ""
28558
28559 # type: textblock
28560 #. type: textblock
28561 #: ../fish/guestfish-actions.pod:3795
28562 msgid ""
28563 "One consequence of this is that log messages aren't caught by the library "
28564 "and handled by L</set-log-message-callback>, but go straight to stdout."
28565 msgstr ""
28566
28567 # type: =head2
28568 #. type: =head2
28569 #: ../fish/guestfish-actions.pod:3804
28570 msgid "set-e2label"
28571 msgstr ""
28572
28573 # type: verbatim
28574 #. type: verbatim
28575 #: ../fish/guestfish-actions.pod:3806
28576 #, no-wrap
28577 msgid ""
28578 " set-e2label device label\n"
28579 "\n"
28580 msgstr ""
28581
28582 # type: textblock
28583 #. type: textblock
28584 #: ../fish/guestfish-actions.pod:3812
28585 msgid ""
28586 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
28587 "label on a filesystem."
28588 msgstr ""
28589
28590 # type: =head2
28591 #. type: =head2
28592 #: ../fish/guestfish-actions.pod:3815
28593 msgid "set-e2uuid"
28594 msgstr ""
28595
28596 # type: verbatim
28597 #. type: verbatim
28598 #: ../fish/guestfish-actions.pod:3817
28599 #, no-wrap
28600 msgid ""
28601 " set-e2uuid device uuid\n"
28602 "\n"
28603 msgstr ""
28604
28605 # type: textblock
28606 #. type: textblock
28607 #: ../fish/guestfish-actions.pod:3824
28608 msgid ""
28609 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
28610 "UUID of a filesystem."
28611 msgstr ""
28612
28613 # type: =head2
28614 #. type: =head2
28615 #: ../fish/guestfish-actions.pod:3827
28616 msgid "set-memsize"
28617 msgstr ""
28618
28619 # type: =head2
28620 #. type: =head2
28621 #: ../fish/guestfish-actions.pod:3829
28622 msgid "memsize"
28623 msgstr ""
28624
28625 # type: verbatim
28626 #. type: verbatim
28627 #: ../fish/guestfish-actions.pod:3831
28628 #, no-wrap
28629 msgid ""
28630 " set-memsize memsize\n"
28631 "\n"
28632 msgstr ""
28633
28634 # type: textblock
28635 #. type: textblock
28636 #: ../fish/guestfish-actions.pod:3833
28637 msgid ""
28638 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28639 "This only has any effect if called before L</launch>."
28640 msgstr ""
28641
28642 # type: =head2
28643 #. type: =head2
28644 #: ../fish/guestfish-actions.pod:3844
28645 msgid "set-network"
28646 msgstr ""
28647
28648 # type: =head2
28649 #. type: =head2
28650 #: ../fish/guestfish-actions.pod:3846
28651 msgid "network"
28652 msgstr ""
28653
28654 # type: verbatim
28655 #. type: verbatim
28656 #: ../fish/guestfish-actions.pod:3848
28657 #, no-wrap
28658 msgid ""
28659 " set-network true|false\n"
28660 "\n"
28661 msgstr ""
28662
28663 # type: textblock
28664 #. type: textblock
28665 #: ../fish/guestfish-actions.pod:3856
28666 msgid ""
28667 "You must call this before calling L</launch>, otherwise it has no effect."
28668 msgstr ""
28669
28670 # type: =head2
28671 #. type: =head2
28672 #: ../fish/guestfish-actions.pod:3859
28673 msgid "set-path"
28674 msgstr ""
28675
28676 # type: =head2
28677 #. type: =head2
28678 #: ../fish/guestfish-actions.pod:3861
28679 msgid "path"
28680 msgstr ""
28681
28682 # type: verbatim
28683 #. type: verbatim
28684 #: ../fish/guestfish-actions.pod:3863
28685 #, no-wrap
28686 msgid ""
28687 " set-path searchpath\n"
28688 "\n"
28689 msgstr ""
28690
28691 # type: =head2
28692 #. type: =head2
28693 #: ../fish/guestfish-actions.pod:3872
28694 msgid "set-qemu"
28695 msgstr ""
28696
28697 # type: =head2
28698 #. type: =head2
28699 #: ../fish/guestfish-actions.pod:3874
28700 msgid "qemu"
28701 msgstr ""
28702
28703 # type: verbatim
28704 #. type: verbatim
28705 #: ../fish/guestfish-actions.pod:3876
28706 #, no-wrap
28707 msgid ""
28708 " set-qemu qemu\n"
28709 "\n"
28710 msgstr ""
28711
28712 # type: =head2
28713 #. type: =head2
28714 #: ../fish/guestfish-actions.pod:3896
28715 msgid "set-recovery-proc"
28716 msgstr ""
28717
28718 # type: =head2
28719 #. type: =head2
28720 #: ../fish/guestfish-actions.pod:3898
28721 msgid "recovery-proc"
28722 msgstr ""
28723
28724 # type: verbatim
28725 #. type: verbatim
28726 #: ../fish/guestfish-actions.pod:3900
28727 #, no-wrap
28728 msgid ""
28729 " set-recovery-proc true|false\n"
28730 "\n"
28731 msgstr ""
28732
28733 # type: textblock
28734 #. type: textblock
28735 #: ../fish/guestfish-actions.pod:3902
28736 msgid ""
28737 "If this is called with the parameter C<false> then L</launch> does not "
28738 "create a recovery process.  The purpose of the recovery process is to stop "
28739 "runaway qemu processes in the case where the main program aborts abruptly."
28740 msgstr ""
28741
28742 # type: textblock
28743 #. type: textblock
28744 #: ../fish/guestfish-actions.pod:3907
28745 msgid ""
28746 "This only has any effect if called before L</launch>, and the default is "
28747 "true."
28748 msgstr ""
28749
28750 # type: =head2
28751 #. type: =head2
28752 #: ../fish/guestfish-actions.pod:3916
28753 msgid "set-selinux"
28754 msgstr ""
28755
28756 # type: =head2
28757 #. type: =head2
28758 #: ../fish/guestfish-actions.pod:3918
28759 msgid "selinux"
28760 msgstr ""
28761
28762 # type: verbatim
28763 #. type: verbatim
28764 #: ../fish/guestfish-actions.pod:3920
28765 #, no-wrap
28766 msgid ""
28767 " set-selinux true|false\n"
28768 "\n"
28769 msgstr ""
28770
28771 # type: =head2
28772 #. type: =head2
28773 #: ../fish/guestfish-actions.pod:3931
28774 msgid "set-trace"
28775 msgstr ""
28776
28777 # type: =head2
28778 #. type: =head2
28779 #: ../fish/guestfish-actions.pod:3933
28780 msgid "trace"
28781 msgstr ""
28782
28783 # type: verbatim
28784 #. type: verbatim
28785 #: ../fish/guestfish-actions.pod:3935
28786 #, no-wrap
28787 msgid ""
28788 " set-trace true|false\n"
28789 "\n"
28790 msgstr ""
28791
28792 # type: =head2
28793 #. type: =head2
28794 #: ../fish/guestfish-actions.pod:3951
28795 msgid "set-verbose"
28796 msgstr ""
28797
28798 # type: =head2
28799 #. type: =head2
28800 #: ../fish/guestfish-actions.pod:3953
28801 msgid "verbose"
28802 msgstr ""
28803
28804 # type: verbatim
28805 #. type: verbatim
28806 #: ../fish/guestfish-actions.pod:3955
28807 #, no-wrap
28808 msgid ""
28809 " set-verbose true|false\n"
28810 "\n"
28811 msgstr ""
28812
28813 # type: =head2
28814 #. type: =head2
28815 #: ../fish/guestfish-actions.pod:3962
28816 msgid "setcon"
28817 msgstr ""
28818
28819 # type: verbatim
28820 #. type: verbatim
28821 #: ../fish/guestfish-actions.pod:3964
28822 #, no-wrap
28823 msgid ""
28824 " setcon context\n"
28825 "\n"
28826 msgstr ""
28827
28828 # type: =head2
28829 #. type: =head2
28830 #: ../fish/guestfish-actions.pod:3971
28831 msgid "setxattr"
28832 msgstr ""
28833
28834 # type: verbatim
28835 #. type: verbatim
28836 #: ../fish/guestfish-actions.pod:3973
28837 #, no-wrap
28838 msgid ""
28839 " setxattr xattr val vallen path\n"
28840 "\n"
28841 msgstr ""
28842
28843 # type: textblock
28844 #. type: textblock
28845 #: ../fish/guestfish-actions.pod:3979
28846 msgid "See also: L</lsetxattr>, L<attr(5)>."
28847 msgstr ""
28848
28849 # type: =head2
28850 #. type: =head2
28851 #: ../fish/guestfish-actions.pod:3981
28852 msgid "sfdisk"
28853 msgstr ""
28854
28855 # type: verbatim
28856 #. type: verbatim
28857 #: ../fish/guestfish-actions.pod:3983
28858 #, no-wrap
28859 msgid ""
28860 " sfdisk device cyls heads sectors 'lines ...'\n"
28861 "\n"
28862 msgstr ""
28863
28864 # type: textblock
28865 #. type: textblock
28866 #: ../fish/guestfish-actions.pod:4005
28867 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
28868 msgstr ""
28869
28870 # type: =head2
28871 #. type: =head2
28872 #: ../fish/guestfish-actions.pod:4011
28873 msgid "sfdiskM"
28874 msgstr ""
28875
28876 # type: verbatim
28877 #. type: verbatim
28878 #: ../fish/guestfish-actions.pod:4013
28879 #, no-wrap
28880 msgid ""
28881 " sfdiskM device 'lines ...'\n"
28882 "\n"
28883 msgstr ""
28884
28885 # type: textblock
28886 #. type: textblock
28887 #: ../fish/guestfish-actions.pod:4015
28888 msgid ""
28889 "This is a simplified interface to the L</sfdisk> command, where partition "
28890 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
28891 "you don't need to specify the cyls, heads and sectors parameters which were "
28892 "rarely if ever used anyway."
28893 msgstr ""
28894
28895 # type: textblock
28896 #. type: textblock
28897 #: ../fish/guestfish-actions.pod:4021
28898 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
28899 msgstr ""
28900
28901 # type: =head2
28902 #. type: =head2
28903 #: ../fish/guestfish-actions.pod:4027
28904 msgid "sfdisk-N"
28905 msgstr ""
28906
28907 # type: verbatim
28908 #. type: verbatim
28909 #: ../fish/guestfish-actions.pod:4029
28910 #, no-wrap
28911 msgid ""
28912 " sfdisk-N device partnum cyls heads sectors line\n"
28913 "\n"
28914 msgstr ""
28915
28916 # type: textblock
28917 #. type: textblock
28918 #: ../fish/guestfish-actions.pod:4034
28919 msgid ""
28920 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
28921 "cyls/heads/sectors parameters."
28922 msgstr ""
28923
28924 # type: textblock
28925 #. type: textblock
28926 #: ../fish/guestfish-actions.pod:4037
28927 msgid "See also: L</part-add>"
28928 msgstr ""
28929
28930 # type: =head2
28931 #. type: =head2
28932 #: ../fish/guestfish-actions.pod:4042
28933 msgid "sfdisk-disk-geometry"
28934 msgstr ""
28935
28936 # type: verbatim
28937 #. type: verbatim
28938 #: ../fish/guestfish-actions.pod:4044
28939 #, no-wrap
28940 msgid ""
28941 " sfdisk-disk-geometry device\n"
28942 "\n"
28943 msgstr ""
28944
28945 # type: textblock
28946 #. type: textblock
28947 #: ../fish/guestfish-actions.pod:4046
28948 msgid ""
28949 "This displays the disk geometry of C<device> read from the partition table.  "
28950 "Especially in the case where the underlying block device has been resized, "
28951 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
28952 "kernel-geometry>)."
28953 msgstr ""
28954
28955 # type: =head2
28956 #. type: =head2
28957 #: ../fish/guestfish-actions.pod:4054
28958 msgid "sfdisk-kernel-geometry"
28959 msgstr ""
28960
28961 # type: verbatim
28962 #. type: verbatim
28963 #: ../fish/guestfish-actions.pod:4056
28964 #, no-wrap
28965 msgid ""
28966 " sfdisk-kernel-geometry device\n"
28967 "\n"
28968 msgstr ""
28969
28970 # type: =head2
28971 #. type: =head2
28972 #: ../fish/guestfish-actions.pod:4063
28973 msgid "sfdisk-l"
28974 msgstr ""
28975
28976 # type: verbatim
28977 #. type: verbatim
28978 #: ../fish/guestfish-actions.pod:4065
28979 #, no-wrap
28980 msgid ""
28981 " sfdisk-l device\n"
28982 "\n"
28983 msgstr ""
28984
28985 # type: textblock
28986 #. type: textblock
28987 #: ../fish/guestfish-actions.pod:4071
28988 msgid "See also: L</part-list>"
28989 msgstr ""
28990
28991 # type: =head2
28992 #. type: =head2
28993 #: ../fish/guestfish-actions.pod:4073
28994 msgid "sh"
28995 msgstr ""
28996
28997 # type: verbatim
28998 #. type: verbatim
28999 #: ../fish/guestfish-actions.pod:4075
29000 #, no-wrap
29001 msgid ""
29002 " sh command\n"
29003 "\n"
29004 msgstr ""
29005
29006 # type: textblock
29007 #. type: textblock
29008 #: ../fish/guestfish-actions.pod:4080
29009 msgid "This is like L</command>, but passes the command to:"
29010 msgstr ""
29011
29012 # type: textblock
29013 #. type: textblock
29014 #: ../fish/guestfish-actions.pod:4088
29015 msgid "All the provisos about L</command> apply to this call."
29016 msgstr ""
29017
29018 # type: =head2
29019 #. type: =head2
29020 #: ../fish/guestfish-actions.pod:4090
29021 msgid "sh-lines"
29022 msgstr ""
29023
29024 # type: verbatim
29025 #. type: verbatim
29026 #: ../fish/guestfish-actions.pod:4092
29027 #, no-wrap
29028 msgid ""
29029 " sh-lines command\n"
29030 "\n"
29031 msgstr ""
29032
29033 # type: textblock
29034 #. type: textblock
29035 #: ../fish/guestfish-actions.pod:4094
29036 msgid "This is the same as L</sh>, but splits the result into a list of lines."
29037 msgstr ""
29038
29039 # type: textblock
29040 #. type: textblock
29041 #: ../fish/guestfish-actions.pod:4097
29042 msgid "See also: L</command-lines>"
29043 msgstr ""
29044
29045 # type: =head2
29046 #. type: =head2
29047 #: ../fish/guestfish-actions.pod:4099
29048 msgid "sleep"
29049 msgstr ""
29050
29051 # type: verbatim
29052 #. type: verbatim
29053 #: ../fish/guestfish-actions.pod:4101
29054 #, no-wrap
29055 msgid ""
29056 " sleep secs\n"
29057 "\n"
29058 msgstr ""
29059
29060 # type: =head2
29061 #. type: =head2
29062 #: ../fish/guestfish-actions.pod:4105
29063 msgid "stat"
29064 msgstr ""
29065
29066 # type: verbatim
29067 #. type: verbatim
29068 #: ../fish/guestfish-actions.pod:4107
29069 #, no-wrap
29070 msgid ""
29071 " stat path\n"
29072 "\n"
29073 msgstr ""
29074
29075 # type: =head2
29076 #. type: =head2
29077 #: ../fish/guestfish-actions.pod:4113
29078 msgid "statvfs"
29079 msgstr ""
29080
29081 # type: verbatim
29082 #. type: verbatim
29083 #: ../fish/guestfish-actions.pod:4115
29084 #, no-wrap
29085 msgid ""
29086 " statvfs path\n"
29087 "\n"
29088 msgstr ""
29089
29090 # type: =head2
29091 #. type: =head2
29092 #: ../fish/guestfish-actions.pod:4123
29093 msgid "strings"
29094 msgstr ""
29095
29096 # type: verbatim
29097 #. type: verbatim
29098 #: ../fish/guestfish-actions.pod:4125
29099 #, no-wrap
29100 msgid ""
29101 " strings path\n"
29102 "\n"
29103 msgstr ""
29104
29105 # type: =head2
29106 #. type: =head2
29107 #: ../fish/guestfish-actions.pod:4133
29108 msgid "strings-e"
29109 msgstr ""
29110
29111 # type: verbatim
29112 #. type: verbatim
29113 #: ../fish/guestfish-actions.pod:4135
29114 #, no-wrap
29115 msgid ""
29116 " strings-e encoding path\n"
29117 "\n"
29118 msgstr ""
29119
29120 # type: textblock
29121 #. type: textblock
29122 #: ../fish/guestfish-actions.pod:4137
29123 msgid ""
29124 "This is like the L</strings> command, but allows you to specify the encoding "
29125 "of strings that are looked for in the source file C<path>."
29126 msgstr ""
29127
29128 # type: textblock
29129 #. type: textblock
29130 #: ../fish/guestfish-actions.pod:4147
29131 msgid ""
29132 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
29133 "ISO-8859-X (this is what L</strings> uses)."
29134 msgstr ""
29135
29136 # type: =head2
29137 #. type: =head2
29138 #: ../fish/guestfish-actions.pod:4179
29139 msgid "swapoff-device"
29140 msgstr ""
29141
29142 # type: verbatim
29143 #. type: verbatim
29144 #: ../fish/guestfish-actions.pod:4181
29145 #, no-wrap
29146 msgid ""
29147 " swapoff-device device\n"
29148 "\n"
29149 msgstr ""
29150
29151 # type: textblock
29152 #. type: textblock
29153 #: ../fish/guestfish-actions.pod:4183
29154 msgid ""
29155 "This command disables the libguestfs appliance swap device or partition "
29156 "named C<device>.  See L</swapon-device>."
29157 msgstr ""
29158
29159 # type: =head2
29160 #. type: =head2
29161 #: ../fish/guestfish-actions.pod:4187
29162 msgid "swapoff-file"
29163 msgstr ""
29164
29165 # type: verbatim
29166 #. type: verbatim
29167 #: ../fish/guestfish-actions.pod:4189
29168 #, no-wrap
29169 msgid ""
29170 " swapoff-file file\n"
29171 "\n"
29172 msgstr ""
29173
29174 # type: =head2
29175 #. type: =head2
29176 #: ../fish/guestfish-actions.pod:4193
29177 msgid "swapoff-label"
29178 msgstr ""
29179
29180 # type: verbatim
29181 #. type: verbatim
29182 #: ../fish/guestfish-actions.pod:4195
29183 #, no-wrap
29184 msgid ""
29185 " swapoff-label label\n"
29186 "\n"
29187 msgstr ""
29188
29189 # type: =head2
29190 #. type: =head2
29191 #: ../fish/guestfish-actions.pod:4200
29192 msgid "swapoff-uuid"
29193 msgstr ""
29194
29195 # type: verbatim
29196 #. type: verbatim
29197 #: ../fish/guestfish-actions.pod:4202
29198 #, no-wrap
29199 msgid ""
29200 " swapoff-uuid uuid\n"
29201 "\n"
29202 msgstr ""
29203
29204 # type: =head2
29205 #. type: =head2
29206 #: ../fish/guestfish-actions.pod:4207
29207 msgid "swapon-device"
29208 msgstr ""
29209
29210 # type: verbatim
29211 #. type: verbatim
29212 #: ../fish/guestfish-actions.pod:4209
29213 #, no-wrap
29214 msgid ""
29215 " swapon-device device\n"
29216 "\n"
29217 msgstr ""
29218
29219 # type: textblock
29220 #. type: textblock
29221 #: ../fish/guestfish-actions.pod:4211
29222 msgid ""
29223 "This command enables the libguestfs appliance to use the swap device or "
29224 "partition named C<device>.  The increased memory is made available for all "
29225 "commands, for example those run using L</command> or L</sh>."
29226 msgstr ""
29227
29228 # type: =head2
29229 #. type: =head2
29230 #: ../fish/guestfish-actions.pod:4223
29231 msgid "swapon-file"
29232 msgstr ""
29233
29234 # type: verbatim
29235 #. type: verbatim
29236 #: ../fish/guestfish-actions.pod:4225
29237 #, no-wrap
29238 msgid ""
29239 " swapon-file file\n"
29240 "\n"
29241 msgstr ""
29242
29243 # type: textblock
29244 #. type: textblock
29245 #: ../fish/guestfish-actions.pod:4227
29246 msgid ""
29247 "This command enables swap to a file.  See L</swapon-device> for other notes."
29248 msgstr ""
29249
29250 # type: =head2
29251 #. type: =head2
29252 #: ../fish/guestfish-actions.pod:4230
29253 msgid "swapon-label"
29254 msgstr ""
29255
29256 # type: verbatim
29257 #. type: verbatim
29258 #: ../fish/guestfish-actions.pod:4232
29259 #, no-wrap
29260 msgid ""
29261 " swapon-label label\n"
29262 "\n"
29263 msgstr ""
29264
29265 # type: textblock
29266 #. type: textblock
29267 #: ../fish/guestfish-actions.pod:4234
29268 msgid ""
29269 "This command enables swap to a labeled swap partition.  See L</swapon-"
29270 "device> for other notes."
29271 msgstr ""
29272
29273 # type: =head2
29274 #. type: =head2
29275 #: ../fish/guestfish-actions.pod:4237
29276 msgid "swapon-uuid"
29277 msgstr ""
29278
29279 # type: verbatim
29280 #. type: verbatim
29281 #: ../fish/guestfish-actions.pod:4239
29282 #, no-wrap
29283 msgid ""
29284 " swapon-uuid uuid\n"
29285 "\n"
29286 msgstr ""
29287
29288 # type: textblock
29289 #. type: textblock
29290 #: ../fish/guestfish-actions.pod:4241
29291 msgid ""
29292 "This command enables swap to a swap partition with the given UUID.  See L</"
29293 "swapon-device> for other notes."
29294 msgstr ""
29295
29296 # type: =head2
29297 #. type: =head2
29298 #: ../fish/guestfish-actions.pod:4244
29299 msgid "sync"
29300 msgstr ""
29301
29302 # type: verbatim
29303 #. type: verbatim
29304 #: ../fish/guestfish-actions.pod:4246
29305 #, no-wrap
29306 msgid ""
29307 " sync\n"
29308 "\n"
29309 msgstr ""
29310
29311 # type: =head2
29312 #. type: =head2
29313 #: ../fish/guestfish-actions.pod:4254
29314 msgid "tail"
29315 msgstr ""
29316
29317 # type: verbatim
29318 #. type: verbatim
29319 #: ../fish/guestfish-actions.pod:4256
29320 #, no-wrap
29321 msgid ""
29322 " tail path\n"
29323 "\n"
29324 msgstr ""
29325
29326 # type: =head2
29327 #. type: =head2
29328 #: ../fish/guestfish-actions.pod:4264
29329 msgid "tail-n"
29330 msgstr ""
29331
29332 # type: verbatim
29333 #. type: verbatim
29334 #: ../fish/guestfish-actions.pod:4266
29335 #, no-wrap
29336 msgid ""
29337 " tail-n nrlines path\n"
29338 "\n"
29339 msgstr ""
29340
29341 # type: =head2
29342 #. type: =head2
29343 #: ../fish/guestfish-actions.pod:4279
29344 msgid "tar-in"
29345 msgstr ""
29346
29347 # type: verbatim
29348 #. type: verbatim
29349 #: ../fish/guestfish-actions.pod:4281
29350 #, no-wrap
29351 msgid ""
29352 " tar-in (tarfile|-) directory\n"
29353 "\n"
29354 msgstr ""
29355
29356 # type: textblock
29357 #. type: textblock
29358 #: ../fish/guestfish-actions.pod:4286
29359 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
29360 msgstr ""
29361
29362 # type: =head2
29363 #. type: =head2
29364 #: ../fish/guestfish-actions.pod:4291
29365 msgid "tar-out"
29366 msgstr ""
29367
29368 # type: verbatim
29369 #. type: verbatim
29370 #: ../fish/guestfish-actions.pod:4293
29371 #, no-wrap
29372 msgid ""
29373 " tar-out directory (tarfile|-)\n"
29374 "\n"
29375 msgstr ""
29376
29377 # type: textblock
29378 #. type: textblock
29379 #: ../fish/guestfish-actions.pod:4298
29380 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
29381 msgstr ""
29382
29383 # type: =head2
29384 #. type: =head2
29385 #: ../fish/guestfish-actions.pod:4303
29386 msgid "tgz-in"
29387 msgstr ""
29388
29389 # type: verbatim
29390 #. type: verbatim
29391 #: ../fish/guestfish-actions.pod:4305
29392 #, no-wrap
29393 msgid ""
29394 " tgz-in (tarball|-) directory\n"
29395 "\n"
29396 msgstr ""
29397
29398 # type: textblock
29399 #. type: textblock
29400 #: ../fish/guestfish-actions.pod:4310
29401 msgid "To upload an uncompressed tarball, use L</tar-in>."
29402 msgstr ""
29403
29404 # type: =head2
29405 #. type: =head2
29406 #: ../fish/guestfish-actions.pod:4314
29407 msgid "tgz-out"
29408 msgstr ""
29409
29410 # type: verbatim
29411 #. type: verbatim
29412 #: ../fish/guestfish-actions.pod:4316
29413 #, no-wrap
29414 msgid ""
29415 " tgz-out directory (tarball|-)\n"
29416 "\n"
29417 msgstr ""
29418
29419 # type: textblock
29420 #. type: textblock
29421 #: ../fish/guestfish-actions.pod:4321
29422 msgid "To download an uncompressed tarball, use L</tar-out>."
29423 msgstr ""
29424
29425 # type: =head2
29426 #. type: =head2
29427 #: ../fish/guestfish-actions.pod:4325
29428 msgid "touch"
29429 msgstr ""
29430
29431 # type: verbatim
29432 #. type: verbatim
29433 #: ../fish/guestfish-actions.pod:4327
29434 #, no-wrap
29435 msgid ""
29436 " touch path\n"
29437 "\n"
29438 msgstr ""
29439
29440 # type: =head2
29441 #. type: =head2
29442 #: ../fish/guestfish-actions.pod:4336
29443 msgid "truncate"
29444 msgstr ""
29445
29446 # type: verbatim
29447 #. type: verbatim
29448 #: ../fish/guestfish-actions.pod:4338
29449 #, no-wrap
29450 msgid ""
29451 " truncate path\n"
29452 "\n"
29453 msgstr ""
29454
29455 # type: =head2
29456 #. type: =head2
29457 #: ../fish/guestfish-actions.pod:4343
29458 msgid "truncate-size"
29459 msgstr ""
29460
29461 # type: verbatim
29462 #. type: verbatim
29463 #: ../fish/guestfish-actions.pod:4345
29464 #, no-wrap
29465 msgid ""
29466 " truncate-size path size\n"
29467 "\n"
29468 msgstr ""
29469
29470 # type: textblock
29471 #. type: textblock
29472 #: ../fish/guestfish-actions.pod:4350
29473 msgid ""
29474 "If the current file size is less than C<size> then the file is extended to "
29475 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29476 "blocks are not allocated for the file until you write to it).  To create a "
29477 "non-sparse file of zeroes, use L</fallocate64> instead."
29478 msgstr ""
29479
29480 # type: =head2
29481 #. type: =head2
29482 #: ../fish/guestfish-actions.pod:4356
29483 msgid "tune2fs-l"
29484 msgstr ""
29485
29486 # type: verbatim
29487 #. type: verbatim
29488 #: ../fish/guestfish-actions.pod:4358
29489 #, no-wrap
29490 msgid ""
29491 " tune2fs-l device\n"
29492 "\n"
29493 msgstr ""
29494
29495 # type: =head2
29496 #. type: =head2
29497 #: ../fish/guestfish-actions.pod:4368
29498 msgid "txz-in"
29499 msgstr ""
29500
29501 # type: verbatim
29502 #. type: verbatim
29503 #: ../fish/guestfish-actions.pod:4370
29504 #, no-wrap
29505 msgid ""
29506 " txz-in (tarball|-) directory\n"
29507 "\n"
29508 msgstr ""
29509
29510 # type: =head2
29511 #. type: =head2
29512 #: ../fish/guestfish-actions.pod:4377
29513 msgid "txz-out"
29514 msgstr ""
29515
29516 # type: verbatim
29517 #. type: verbatim
29518 #: ../fish/guestfish-actions.pod:4379
29519 #, no-wrap
29520 msgid ""
29521 " txz-out directory (tarball|-)\n"
29522 "\n"
29523 msgstr ""
29524
29525 # type: =head2
29526 #. type: =head2
29527 #: ../fish/guestfish-actions.pod:4386
29528 msgid "umask"
29529 msgstr ""
29530
29531 # type: verbatim
29532 #. type: verbatim
29533 #: ../fish/guestfish-actions.pod:4388
29534 #, no-wrap
29535 msgid ""
29536 " umask mask\n"
29537 "\n"
29538 msgstr ""
29539
29540 # type: textblock
29541 #. type: textblock
29542 #: ../fish/guestfish-actions.pod:4402
29543 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
29544 msgstr ""
29545
29546 # type: =head2
29547 #. type: =head2
29548 #: ../fish/guestfish-actions.pod:4407
29549 msgid "umount"
29550 msgstr ""
29551
29552 # type: =head2
29553 #. type: =head2
29554 #: ../fish/guestfish-actions.pod:4409
29555 msgid "unmount"
29556 msgstr ""
29557
29558 # type: verbatim
29559 #. type: verbatim
29560 #: ../fish/guestfish-actions.pod:4411
29561 #, no-wrap
29562 msgid ""
29563 " umount pathordevice\n"
29564 "\n"
29565 msgstr ""
29566
29567 # type: =head2
29568 #. type: =head2
29569 #: ../fish/guestfish-actions.pod:4417
29570 msgid "umount-all"
29571 msgstr ""
29572
29573 # type: =head2
29574 #. type: =head2
29575 #: ../fish/guestfish-actions.pod:4419
29576 msgid "unmount-all"
29577 msgstr ""
29578
29579 # type: verbatim
29580 #. type: verbatim
29581 #: ../fish/guestfish-actions.pod:4421
29582 #, no-wrap
29583 msgid ""
29584 " umount-all\n"
29585 "\n"
29586 msgstr ""
29587
29588 # type: =head2
29589 #. type: =head2
29590 #: ../fish/guestfish-actions.pod:4427
29591 msgid "upload"
29592 msgstr ""
29593
29594 # type: verbatim
29595 #. type: verbatim
29596 #: ../fish/guestfish-actions.pod:4429
29597 #, no-wrap
29598 msgid ""
29599 " upload (filename|-) remotefilename\n"
29600 "\n"
29601 msgstr ""
29602
29603 # type: textblock
29604 #. type: textblock
29605 #: ../fish/guestfish-actions.pod:4436
29606 msgid "See also L</download>."
29607 msgstr ""
29608
29609 # type: =head2
29610 #. type: =head2
29611 #: ../fish/guestfish-actions.pod:4440
29612 msgid "upload-offset"
29613 msgstr ""
29614
29615 # type: verbatim
29616 #. type: verbatim
29617 #: ../fish/guestfish-actions.pod:4442
29618 #, no-wrap
29619 msgid ""
29620 " upload-offset (filename|-) remotefilename offset\n"
29621 "\n"
29622 msgstr ""
29623
29624 # type: textblock
29625 #. type: textblock
29626 #: ../fish/guestfish-actions.pod:4454
29627 msgid ""
29628 "Note that there is no limit on the amount of data that can be uploaded with "
29629 "this call, unlike with L</pwrite>, and this call always writes the full "
29630 "amount unless an error occurs."
29631 msgstr ""
29632
29633 # type: textblock
29634 #. type: textblock
29635 #: ../fish/guestfish-actions.pod:4459
29636 msgid "See also L</upload>, L</pwrite>."
29637 msgstr ""
29638
29639 # type: =head2
29640 #. type: =head2
29641 #: ../fish/guestfish-actions.pod:4463
29642 msgid "utimens"
29643 msgstr ""
29644
29645 # type: verbatim
29646 #. type: verbatim
29647 #: ../fish/guestfish-actions.pod:4465
29648 #, no-wrap
29649 msgid ""
29650 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
29651 "\n"
29652 msgstr ""
29653
29654 # type: =head2
29655 #. type: =head2
29656 #: ../fish/guestfish-actions.pod:4484
29657 msgid "version"
29658 msgstr ""
29659
29660 # type: verbatim
29661 #. type: verbatim
29662 #: ../fish/guestfish-actions.pod:4486
29663 #, no-wrap
29664 msgid ""
29665 " version\n"
29666 "\n"
29667 msgstr ""
29668
29669 # type: textblock
29670 #. type: textblock
29671 #: ../fish/guestfish-actions.pod:4513
29672 msgid ""
29673 "I<Note:> Don't use this call to test for availability of features.  In "
29674 "enterprise distributions we backport features from later versions into "
29675 "earlier versions, making this an unreliable way to test for features.  Use "
29676 "L</available> instead."
29677 msgstr ""
29678
29679 # type: =head2
29680 #. type: =head2
29681 #: ../fish/guestfish-actions.pod:4519
29682 msgid "vfs-label"
29683 msgstr ""
29684
29685 # type: verbatim
29686 #. type: verbatim
29687 #: ../fish/guestfish-actions.pod:4521
29688 #, no-wrap
29689 msgid ""
29690 " vfs-label device\n"
29691 "\n"
29692 msgstr ""
29693
29694 # type: textblock
29695 #. type: textblock
29696 #: ../fish/guestfish-actions.pod:4528
29697 msgid "To find a filesystem from the label, use L</findfs-label>."
29698 msgstr ""
29699
29700 # type: =head2
29701 #. type: =head2
29702 #: ../fish/guestfish-actions.pod:4530
29703 msgid "vfs-type"
29704 msgstr ""
29705
29706 # type: verbatim
29707 #. type: verbatim
29708 #: ../fish/guestfish-actions.pod:4532
29709 #, no-wrap
29710 msgid ""
29711 " vfs-type device\n"
29712 "\n"
29713 msgstr ""
29714
29715 # type: =head2
29716 #. type: =head2
29717 #: ../fish/guestfish-actions.pod:4542
29718 msgid "vfs-uuid"
29719 msgstr ""
29720
29721 # type: verbatim
29722 #. type: verbatim
29723 #: ../fish/guestfish-actions.pod:4544
29724 #, no-wrap
29725 msgid ""
29726 " vfs-uuid device\n"
29727 "\n"
29728 msgstr ""
29729
29730 # type: textblock
29731 #. type: textblock
29732 #: ../fish/guestfish-actions.pod:4551
29733 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
29734 msgstr ""
29735
29736 # type: =head2
29737 #. type: =head2
29738 #: ../fish/guestfish-actions.pod:4553
29739 msgid "vg-activate"
29740 msgstr ""
29741
29742 # type: verbatim
29743 #. type: verbatim
29744 #: ../fish/guestfish-actions.pod:4555
29745 #, no-wrap
29746 msgid ""
29747 " vg-activate true|false 'volgroups ...'\n"
29748 "\n"
29749 msgstr ""
29750
29751 # type: =head2
29752 #. type: =head2
29753 #: ../fish/guestfish-actions.pod:4568
29754 msgid "vg-activate-all"
29755 msgstr ""
29756
29757 # type: verbatim
29758 #. type: verbatim
29759 #: ../fish/guestfish-actions.pod:4570
29760 #, no-wrap
29761 msgid ""
29762 " vg-activate-all true|false\n"
29763 "\n"
29764 msgstr ""
29765
29766 # type: =head2
29767 #. type: =head2
29768 #: ../fish/guestfish-actions.pod:4580
29769 msgid "vgcreate"
29770 msgstr ""
29771
29772 # type: verbatim
29773 #. type: verbatim
29774 #: ../fish/guestfish-actions.pod:4582
29775 #, no-wrap
29776 msgid ""
29777 " vgcreate volgroup 'physvols ...'\n"
29778 "\n"
29779 msgstr ""
29780
29781 # type: =head2
29782 #. type: =head2
29783 #: ../fish/guestfish-actions.pod:4587
29784 msgid "vglvuuids"
29785 msgstr ""
29786
29787 # type: verbatim
29788 #. type: verbatim
29789 #: ../fish/guestfish-actions.pod:4589
29790 #, no-wrap
29791 msgid ""
29792 " vglvuuids vgname\n"
29793 "\n"
29794 msgstr ""
29795
29796 # type: textblock
29797 #. type: textblock
29798 #: ../fish/guestfish-actions.pod:4594
29799 msgid ""
29800 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
29801 "logical volumes and volume groups."
29802 msgstr ""
29803
29804 # type: textblock
29805 #. type: textblock
29806 #: ../fish/guestfish-actions.pod:4597
29807 msgid "See also L</vgpvuuids>."
29808 msgstr ""
29809
29810 # type: =head2
29811 #. type: =head2
29812 #: ../fish/guestfish-actions.pod:4599
29813 msgid "vgpvuuids"
29814 msgstr ""
29815
29816 # type: verbatim
29817 #. type: verbatim
29818 #: ../fish/guestfish-actions.pod:4601
29819 #, no-wrap
29820 msgid ""
29821 " vgpvuuids vgname\n"
29822 "\n"
29823 msgstr ""
29824
29825 # type: textblock
29826 #. type: textblock
29827 #: ../fish/guestfish-actions.pod:4606
29828 msgid ""
29829 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
29830 "physical volumes and volume groups."
29831 msgstr ""
29832
29833 # type: textblock
29834 #. type: textblock
29835 #: ../fish/guestfish-actions.pod:4609
29836 msgid "See also L</vglvuuids>."
29837 msgstr ""
29838
29839 # type: =head2
29840 #. type: =head2
29841 #: ../fish/guestfish-actions.pod:4611
29842 msgid "vgremove"
29843 msgstr ""
29844
29845 # type: verbatim
29846 #. type: verbatim
29847 #: ../fish/guestfish-actions.pod:4613
29848 #, no-wrap
29849 msgid ""
29850 " vgremove vgname\n"
29851 "\n"
29852 msgstr ""
29853
29854 # type: =head2
29855 #. type: =head2
29856 #: ../fish/guestfish-actions.pod:4620
29857 msgid "vgrename"
29858 msgstr ""
29859
29860 # type: verbatim
29861 #. type: verbatim
29862 #: ../fish/guestfish-actions.pod:4622
29863 #, no-wrap
29864 msgid ""
29865 " vgrename volgroup newvolgroup\n"
29866 "\n"
29867 msgstr ""
29868
29869 # type: =head2
29870 #. type: =head2
29871 #: ../fish/guestfish-actions.pod:4626
29872 msgid "vgs"
29873 msgstr ""
29874
29875 # type: verbatim
29876 #. type: verbatim
29877 #: ../fish/guestfish-actions.pod:4628
29878 #, no-wrap
29879 msgid ""
29880 " vgs\n"
29881 "\n"
29882 msgstr ""
29883
29884 # type: textblock
29885 #. type: textblock
29886 #: ../fish/guestfish-actions.pod:4636
29887 msgid "See also L</vgs-full>."
29888 msgstr ""
29889
29890 # type: =head2
29891 #. type: =head2
29892 #: ../fish/guestfish-actions.pod:4638
29893 msgid "vgs-full"
29894 msgstr ""
29895
29896 # type: verbatim
29897 #. type: verbatim
29898 #: ../fish/guestfish-actions.pod:4640
29899 #, no-wrap
29900 msgid ""
29901 " vgs-full\n"
29902 "\n"
29903 msgstr ""
29904
29905 # type: =head2
29906 #. type: =head2
29907 #: ../fish/guestfish-actions.pod:4645
29908 msgid "vgscan"
29909 msgstr ""
29910
29911 # type: verbatim
29912 #. type: verbatim
29913 #: ../fish/guestfish-actions.pod:4647
29914 #, no-wrap
29915 msgid ""
29916 " vgscan\n"
29917 "\n"
29918 msgstr ""
29919
29920 # type: =head2
29921 #. type: =head2
29922 #: ../fish/guestfish-actions.pod:4652
29923 msgid "vguuid"
29924 msgstr ""
29925
29926 # type: verbatim
29927 #. type: verbatim
29928 #: ../fish/guestfish-actions.pod:4654
29929 #, no-wrap
29930 msgid ""
29931 " vguuid vgname\n"
29932 "\n"
29933 msgstr ""
29934
29935 # type: =head2
29936 #. type: =head2
29937 #: ../fish/guestfish-actions.pod:4658
29938 msgid "wc-c"
29939 msgstr ""
29940
29941 # type: verbatim
29942 #. type: verbatim
29943 #: ../fish/guestfish-actions.pod:4660
29944 #, no-wrap
29945 msgid ""
29946 " wc-c path\n"
29947 "\n"
29948 msgstr ""
29949
29950 # type: =head2
29951 #. type: =head2
29952 #: ../fish/guestfish-actions.pod:4665
29953 msgid "wc-l"
29954 msgstr ""
29955
29956 # type: verbatim
29957 #. type: verbatim
29958 #: ../fish/guestfish-actions.pod:4667
29959 #, no-wrap
29960 msgid ""
29961 " wc-l path\n"
29962 "\n"
29963 msgstr ""
29964
29965 # type: =head2
29966 #. type: =head2
29967 #: ../fish/guestfish-actions.pod:4672
29968 msgid "wc-w"
29969 msgstr ""
29970
29971 # type: verbatim
29972 #. type: verbatim
29973 #: ../fish/guestfish-actions.pod:4674
29974 #, no-wrap
29975 msgid ""
29976 " wc-w path\n"
29977 "\n"
29978 msgstr ""
29979
29980 # type: =head2
29981 #. type: =head2
29982 #: ../fish/guestfish-actions.pod:4679
29983 msgid "write"
29984 msgstr ""
29985
29986 # type: verbatim
29987 #. type: verbatim
29988 #: ../fish/guestfish-actions.pod:4681
29989 #, no-wrap
29990 msgid ""
29991 " write path content\n"
29992 "\n"
29993 msgstr ""
29994
29995 # type: =head2
29996 #. type: =head2
29997 #: ../fish/guestfish-actions.pod:4689
29998 msgid "write-file"
29999 msgstr ""
30000
30001 # type: verbatim
30002 #. type: verbatim
30003 #: ../fish/guestfish-actions.pod:4691
30004 #, no-wrap
30005 msgid ""
30006 " write-file path content size\n"
30007 "\n"
30008 msgstr ""
30009
30010 # type: =head2
30011 #. type: =head2
30012 #: ../fish/guestfish-actions.pod:4714
30013 msgid "zegrep"
30014 msgstr ""
30015
30016 # type: verbatim
30017 #. type: verbatim
30018 #: ../fish/guestfish-actions.pod:4716
30019 #, no-wrap
30020 msgid ""
30021 " zegrep regex path\n"
30022 "\n"
30023 msgstr ""
30024
30025 # type: =head2
30026 #. type: =head2
30027 #: ../fish/guestfish-actions.pod:4724
30028 msgid "zegrepi"
30029 msgstr ""
30030
30031 # type: verbatim
30032 #. type: verbatim
30033 #: ../fish/guestfish-actions.pod:4726
30034 #, no-wrap
30035 msgid ""
30036 " zegrepi regex path\n"
30037 "\n"
30038 msgstr ""
30039
30040 # type: =head2
30041 #. type: =head2
30042 #: ../fish/guestfish-actions.pod:4734
30043 msgid "zero"
30044 msgstr ""
30045
30046 # type: verbatim
30047 #. type: verbatim
30048 #: ../fish/guestfish-actions.pod:4736
30049 #, no-wrap
30050 msgid ""
30051 " zero device\n"
30052 "\n"
30053 msgstr ""
30054
30055 # type: textblock
30056 #. type: textblock
30057 #: ../fish/guestfish-actions.pod:4744
30058 msgid "See also: L</zero-device>, L</scrub-device>."
30059 msgstr ""
30060
30061 # type: =head2
30062 #. type: =head2
30063 #: ../fish/guestfish-actions.pod:4746
30064 msgid "zero-device"
30065 msgstr ""
30066
30067 # type: verbatim
30068 #. type: verbatim
30069 #: ../fish/guestfish-actions.pod:4748
30070 #, no-wrap
30071 msgid ""
30072 " zero-device device\n"
30073 "\n"
30074 msgstr ""
30075
30076 # type: textblock
30077 #. type: textblock
30078 #: ../fish/guestfish-actions.pod:4750
30079 msgid ""
30080 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
30081 "which just zeroes the first few blocks of a device."
30082 msgstr ""
30083
30084 # type: =head2
30085 #. type: =head2
30086 #: ../fish/guestfish-actions.pod:4757
30087 msgid "zerofree"
30088 msgstr ""
30089
30090 # type: verbatim
30091 #. type: verbatim
30092 #: ../fish/guestfish-actions.pod:4759
30093 #, no-wrap
30094 msgid ""
30095 " zerofree device\n"
30096 "\n"
30097 msgstr ""
30098
30099 # type: =head2
30100 #. type: =head2
30101 #: ../fish/guestfish-actions.pod:4772
30102 msgid "zfgrep"
30103 msgstr ""
30104
30105 # type: verbatim
30106 #. type: verbatim
30107 #: ../fish/guestfish-actions.pod:4774
30108 #, no-wrap
30109 msgid ""
30110 " zfgrep pattern path\n"
30111 "\n"
30112 msgstr ""
30113
30114 # type: =head2
30115 #. type: =head2
30116 #: ../fish/guestfish-actions.pod:4782
30117 msgid "zfgrepi"
30118 msgstr ""
30119
30120 # type: verbatim
30121 #. type: verbatim
30122 #: ../fish/guestfish-actions.pod:4784
30123 #, no-wrap
30124 msgid ""
30125 " zfgrepi pattern path\n"
30126 "\n"
30127 msgstr ""
30128
30129 # type: =head2
30130 #. type: =head2
30131 #: ../fish/guestfish-actions.pod:4792
30132 msgid "zfile"
30133 msgstr ""
30134
30135 # type: verbatim
30136 #. type: verbatim
30137 #: ../fish/guestfish-actions.pod:4794
30138 #, no-wrap
30139 msgid ""
30140 " zfile meth path\n"
30141 "\n"
30142 msgstr ""
30143
30144 # type: textblock
30145 #. type: textblock
30146 #: ../fish/guestfish-actions.pod:4801
30147 msgid ""
30148 "Since 1.0.63, use L</file> instead which can now process compressed files."
30149 msgstr ""
30150
30151 # type: =head2
30152 #. type: =head2
30153 #: ../fish/guestfish-actions.pod:4811
30154 msgid "zgrep"
30155 msgstr ""
30156
30157 # type: verbatim
30158 #. type: verbatim
30159 #: ../fish/guestfish-actions.pod:4813
30160 #, no-wrap
30161 msgid ""
30162 " zgrep regex path\n"
30163 "\n"
30164 msgstr ""
30165
30166 # type: =head2
30167 #. type: =head2
30168 #: ../fish/guestfish-actions.pod:4821
30169 msgid "zgrepi"
30170 msgstr ""
30171
30172 # type: verbatim
30173 #. type: verbatim
30174 #: ../fish/guestfish-actions.pod:4823
30175 #, no-wrap
30176 msgid ""
30177 " zgrepi regex path\n"
30178 "\n"
30179 msgstr ""
30180
30181 # type: =head2
30182 #. type: =head2
30183 #: ../fish/guestfish-commands.pod:1
30184 msgid "alloc"
30185 msgstr ""
30186
30187 # type: =head2
30188 #. type: =head2
30189 #: ../fish/guestfish-commands.pod:3
30190 msgid "allocate"
30191 msgstr ""
30192
30193 # type: verbatim
30194 #. type: verbatim
30195 #: ../fish/guestfish-commands.pod:5
30196 #, no-wrap
30197 msgid ""
30198 " alloc filename size\n"
30199 "\n"
30200 msgstr ""
30201
30202 # type: textblock
30203 #. type: textblock
30204 #: ../fish/guestfish-commands.pod:7
30205 msgid ""
30206 "This creates an empty (zeroed) file of the given size, and then adds so it "
30207 "can be further examined."
30208 msgstr ""
30209
30210 # type: textblock
30211 #. type: textblock
30212 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:168
30213 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
30214 msgstr ""
30215
30216 # type: textblock
30217 #. type: textblock
30218 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:170
30219 msgid "Size can be specified using standard suffixes, eg. C<1M>."
30220 msgstr ""
30221
30222 # type: textblock
30223 #. type: textblock
30224 #: ../fish/guestfish-commands.pod:14
30225 msgid ""
30226 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
30227 "image, see L</PREPARED DISK IMAGES>."
30228 msgstr ""
30229
30230 # type: =head2
30231 #. type: =head2
30232 #: ../fish/guestfish-commands.pod:17
30233 msgid "copy-in"
30234 msgstr ""
30235
30236 # type: verbatim
30237 #. type: verbatim
30238 #: ../fish/guestfish-commands.pod:19
30239 #, no-wrap
30240 msgid ""
30241 " copy-in local [local ...] /remotedir\n"
30242 "\n"
30243 msgstr ""
30244
30245 # type: textblock
30246 #. type: textblock
30247 #: ../fish/guestfish-commands.pod:21
30248 msgid ""
30249 "C<copy-in> copies local files or directories recursively into the disk "
30250 "image, placing them in the directory called C</remotedir> (which must "
30251 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
30252 "other commands as necessary."
30253 msgstr ""
30254
30255 # type: textblock
30256 #. type: textblock
30257 #: ../fish/guestfish-commands.pod:26
30258 msgid ""
30259 "Multiple local files and directories can be specified, but the last "
30260 "parameter must always be a remote directory.  Wildcards cannot be used."
30261 msgstr ""
30262
30263 # type: =head2
30264 #. type: =head2
30265 #: ../fish/guestfish-commands.pod:30
30266 msgid "copy-out"
30267 msgstr ""
30268
30269 # type: verbatim
30270 #. type: verbatim
30271 #: ../fish/guestfish-commands.pod:32
30272 #, no-wrap
30273 msgid ""
30274 " copy-out remote [remote ...] localdir\n"
30275 "\n"
30276 msgstr ""
30277
30278 # type: textblock
30279 #. type: textblock
30280 #: ../fish/guestfish-commands.pod:34
30281 msgid ""
30282 "C<copy-out> copies remote files or directories recursively out of the disk "
30283 "image, placing them on the host disk in a local directory called C<localdir> "
30284 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
30285 "download>, L</tar-out> and other commands as necessary."
30286 msgstr ""
30287
30288 # type: textblock
30289 #. type: textblock
30290 #: ../fish/guestfish-commands.pod:40
30291 msgid ""
30292 "Multiple remote files and directories can be specified, but the last "
30293 "parameter must always be a local directory.  To download to the current "
30294 "directory, use C<.> as in:"
30295 msgstr ""
30296
30297 # type: verbatim
30298 #. type: verbatim
30299 #: ../fish/guestfish-commands.pod:44
30300 #, no-wrap
30301 msgid ""
30302 " copy-out /home .\n"
30303 "\n"
30304 msgstr ""
30305
30306 # type: textblock
30307 #. type: textblock
30308 #: ../fish/guestfish-commands.pod:46
30309 msgid ""
30310 "Wildcards cannot be used in the ordinary command, but you can use them with "
30311 "the help of L</glob> like this:"
30312 msgstr ""
30313
30314 # type: verbatim
30315 #. type: verbatim
30316 #: ../fish/guestfish-commands.pod:49
30317 #, no-wrap
30318 msgid ""
30319 " glob copy-out /home/* .\n"
30320 "\n"
30321 msgstr ""
30322
30323 # type: =head2
30324 #. type: =head2
30325 #: ../fish/guestfish-commands.pod:51
30326 msgid "echo"
30327 msgstr ""
30328
30329 # type: verbatim
30330 #. type: verbatim
30331 #: ../fish/guestfish-commands.pod:53
30332 #, no-wrap
30333 msgid ""
30334 " echo [params ...]\n"
30335 "\n"
30336 msgstr ""
30337
30338 # type: textblock
30339 #. type: textblock
30340 #: ../fish/guestfish-commands.pod:55
30341 msgid "This echos the parameters to the terminal."
30342 msgstr ""
30343
30344 # type: =head2
30345 #. type: =head2
30346 #: ../fish/guestfish-commands.pod:57
30347 msgid "edit"
30348 msgstr ""
30349
30350 # type: =head2
30351 #. type: =head2
30352 #: ../fish/guestfish-commands.pod:59
30353 msgid "vi"
30354 msgstr ""
30355
30356 # type: =head2
30357 #. type: =head2
30358 #: ../fish/guestfish-commands.pod:61
30359 msgid "emacs"
30360 msgstr ""
30361
30362 # type: verbatim
30363 #. type: verbatim
30364 #: ../fish/guestfish-commands.pod:63
30365 #, no-wrap
30366 msgid ""
30367 " edit filename\n"
30368 "\n"
30369 msgstr ""
30370
30371 # type: textblock
30372 #. type: textblock
30373 #: ../fish/guestfish-commands.pod:65
30374 msgid ""
30375 "This is used to edit a file.  It downloads the file, edits it locally using "
30376 "your editor, then uploads the result."
30377 msgstr ""
30378
30379 # type: textblock
30380 #. type: textblock
30381 #: ../fish/guestfish-commands.pod:68
30382 msgid ""
30383 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
30384 "or C<emacs> you will get those corresponding editors."
30385 msgstr ""
30386
30387 # type: =head2
30388 #. type: =head2
30389 #: ../fish/guestfish-commands.pod:72
30390 msgid "glob"
30391 msgstr ""
30392
30393 # type: verbatim
30394 #. type: verbatim
30395 #: ../fish/guestfish-commands.pod:74
30396 #, no-wrap
30397 msgid ""
30398 " glob command args...\n"
30399 "\n"
30400 msgstr ""
30401
30402 # type: textblock
30403 #. type: textblock
30404 #: ../fish/guestfish-commands.pod:76
30405 msgid ""
30406 "Expand wildcards in any paths in the args list, and run C<command> "
30407 "repeatedly on each matching path."
30408 msgstr ""
30409
30410 # type: textblock
30411 #. type: textblock
30412 #: ../fish/guestfish-commands.pod:79
30413 msgid "See L</WILDCARDS AND GLOBBING>."
30414 msgstr ""
30415
30416 # type: =head2
30417 #. type: =head2
30418 #: ../fish/guestfish-commands.pod:81
30419 msgid "hexedit"
30420 msgstr ""
30421
30422 # type: verbatim
30423 #. type: verbatim
30424 #: ../fish/guestfish-commands.pod:83
30425 #, no-wrap
30426 msgid ""
30427 " hexedit <filename|device>\n"
30428 " hexedit <filename|device> <max>\n"
30429 " hexedit <filename|device> <start> <max>\n"
30430 "\n"
30431 msgstr ""
30432
30433 # type: textblock
30434 #. type: textblock
30435 #: ../fish/guestfish-commands.pod:87
30436 msgid ""
30437 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
30438 "device."
30439 msgstr ""
30440
30441 # type: textblock
30442 #. type: textblock
30443 #: ../fish/guestfish-commands.pod:90
30444 msgid ""
30445 "This command works by downloading potentially the whole file or device, "
30446 "editing it locally, then uploading it.  If the file or device is large, you "
30447 "have to specify which part you wish to edit by using C<max> and/or C<start> "
30448 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
30449 "usual modifiers allowed such as C<1M> (1 megabyte)."
30450 msgstr ""
30451
30452 # type: textblock
30453 #. type: textblock
30454 #: ../fish/guestfish-commands.pod:97
30455 msgid "For example to edit the first few sectors of a disk you might do:"
30456 msgstr ""
30457
30458 # type: verbatim
30459 #. type: verbatim
30460 #: ../fish/guestfish-commands.pod:100
30461 #, no-wrap
30462 msgid ""
30463 " hexedit /dev/sda 1M\n"
30464 "\n"
30465 msgstr ""
30466
30467 # type: textblock
30468 #. type: textblock
30469 #: ../fish/guestfish-commands.pod:102
30470 msgid ""
30471 "which would allow you to edit anywhere within the first megabyte of the disk."
30472 msgstr ""
30473
30474 # type: textblock
30475 #. type: textblock
30476 #: ../fish/guestfish-commands.pod:105
30477 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
30478 msgstr ""
30479
30480 # type: verbatim
30481 #. type: verbatim
30482 #: ../fish/guestfish-commands.pod:107
30483 #, no-wrap
30484 msgid ""
30485 " hexedit /dev/sda1 0x400 0x400\n"
30486 "\n"
30487 msgstr ""
30488
30489 # type: textblock
30490 #. type: textblock
30491 #: ../fish/guestfish-commands.pod:109
30492 msgid "(assuming the superblock is in the standard location)."
30493 msgstr ""
30494
30495 # type: textblock
30496 #. type: textblock
30497 #: ../fish/guestfish-commands.pod:111
30498 msgid ""
30499 "This command requires the external L<hexedit(1)> program.  You can specify "
30500 "another program to use by setting the C<HEXEDITOR> environment variable."
30501 msgstr ""
30502
30503 # type: textblock
30504 #. type: textblock
30505 #: ../fish/guestfish-commands.pod:115
30506 msgid "See also L</hexdump>."
30507 msgstr ""
30508
30509 # type: =head2
30510 #. type: =head2
30511 #: ../fish/guestfish-commands.pod:117
30512 msgid "lcd"
30513 msgstr ""
30514
30515 # type: verbatim
30516 #. type: verbatim
30517 #: ../fish/guestfish-commands.pod:119
30518 #, no-wrap
30519 msgid ""
30520 " lcd directory\n"
30521 "\n"
30522 msgstr ""
30523
30524 # type: textblock
30525 #. type: textblock
30526 #: ../fish/guestfish-commands.pod:121
30527 msgid ""
30528 "Change the local directory, ie. the current directory of guestfish itself."
30529 msgstr ""
30530
30531 # type: textblock
30532 #. type: textblock
30533 #: ../fish/guestfish-commands.pod:124
30534 msgid "Note that C<!cd> won't do what you might expect."
30535 msgstr ""
30536
30537 # type: =head2
30538 #. type: =head2
30539 #: ../fish/guestfish-commands.pod:126
30540 msgid "man"
30541 msgstr ""
30542
30543 # type: =head2
30544 #. type: =head2
30545 #: ../fish/guestfish-commands.pod:128
30546 msgid "manual"
30547 msgstr ""
30548
30549 # type: verbatim
30550 #. type: verbatim
30551 #: ../fish/guestfish-commands.pod:130
30552 #, no-wrap
30553 msgid ""
30554 "  man\n"
30555 "\n"
30556 msgstr ""
30557
30558 # type: textblock
30559 #. type: textblock
30560 #: ../fish/guestfish-commands.pod:132
30561 msgid "Opens the manual page for guestfish."
30562 msgstr ""
30563
30564 # type: =head2
30565 #. type: =head2
30566 #: ../fish/guestfish-commands.pod:134
30567 msgid "more"
30568 msgstr ""
30569
30570 # type: =head2
30571 #. type: =head2
30572 #: ../fish/guestfish-commands.pod:136
30573 msgid "less"
30574 msgstr ""
30575
30576 # type: verbatim
30577 #. type: verbatim
30578 #: ../fish/guestfish-commands.pod:138
30579 #, no-wrap
30580 msgid ""
30581 " more filename\n"
30582 "\n"
30583 msgstr ""
30584
30585 # type: verbatim
30586 #. type: verbatim
30587 #: ../fish/guestfish-commands.pod:140
30588 #, no-wrap
30589 msgid ""
30590 " less filename\n"
30591 "\n"
30592 msgstr ""
30593
30594 # type: textblock
30595 #. type: textblock
30596 #: ../fish/guestfish-commands.pod:142
30597 msgid "This is used to view a file."
30598 msgstr ""
30599
30600 # type: textblock
30601 #. type: textblock
30602 #: ../fish/guestfish-commands.pod:144
30603 msgid ""
30604 "The default viewer is C<$PAGER>.  However if you use the alternate command "
30605 "C<less> you will get the C<less> command specifically."
30606 msgstr ""
30607
30608 # type: =head2
30609 #. type: =head2
30610 #: ../fish/guestfish-commands.pod:147
30611 msgid "reopen"
30612 msgstr ""
30613
30614 # type: verbatim
30615 #. type: verbatim
30616 #: ../fish/guestfish-commands.pod:149
30617 #, no-wrap
30618 msgid ""
30619 "  reopen\n"
30620 "\n"
30621 msgstr ""
30622
30623 # type: textblock
30624 #. type: textblock
30625 #: ../fish/guestfish-commands.pod:151
30626 msgid ""
30627 "Close and reopen the libguestfs handle.  It is not necessary to use this "
30628 "normally, because the handle is closed properly when guestfish exits.  "
30629 "However this is occasionally useful for testing."
30630 msgstr ""
30631
30632 # type: =head2
30633 #. type: =head2
30634 #: ../fish/guestfish-commands.pod:155
30635 msgid "sparse"
30636 msgstr ""
30637
30638 # type: verbatim
30639 #. type: verbatim
30640 #: ../fish/guestfish-commands.pod:157
30641 #, no-wrap
30642 msgid ""
30643 " sparse filename size\n"
30644 "\n"
30645 msgstr ""
30646
30647 # type: textblock
30648 #. type: textblock
30649 #: ../fish/guestfish-commands.pod:159
30650 msgid ""
30651 "This creates an empty sparse file of the given size, and then adds so it can "
30652 "be further examined."
30653 msgstr ""
30654
30655 # type: textblock
30656 #. type: textblock
30657 #: ../fish/guestfish-commands.pod:162
30658 msgid ""
30659 "In all respects it works the same as the L</alloc> command, except that the "
30660 "image file is allocated sparsely, which means that disk blocks are not "
30661 "assigned to the file until they are needed.  Sparse disk files only use "
30662 "space when written to, but they are slower and there is a danger you could "
30663 "run out of real disk space during a write operation."
30664 msgstr ""
30665
30666 # type: =head2
30667 #. type: =head2
30668 #: ../fish/guestfish-commands.pod:172
30669 msgid "supported"
30670 msgstr ""
30671
30672 # type: verbatim
30673 #. type: verbatim
30674 #: ../fish/guestfish-commands.pod:174
30675 #, no-wrap
30676 msgid ""
30677 " supported\n"
30678 "\n"
30679 msgstr ""
30680
30681 # type: textblock
30682 #. type: textblock
30683 #: ../fish/guestfish-commands.pod:176
30684 msgid ""
30685 "This command returns a list of the optional groups known to the daemon, and "
30686 "indicates which ones are supported by this build of the libguestfs appliance."
30687 msgstr ""
30688
30689 # type: textblock
30690 #. type: textblock
30691 #: ../fish/guestfish-commands.pod:180
30692 msgid "See also L<guestfs(3)/AVAILABILITY>."
30693 msgstr ""
30694
30695 # type: =head2
30696 #. type: =head2
30697 #: ../fish/guestfish-commands.pod:182
30698 msgid "time"
30699 msgstr ""
30700
30701 # type: verbatim
30702 #. type: verbatim
30703 #: ../fish/guestfish-commands.pod:184
30704 #, no-wrap
30705 msgid ""
30706 " time command args...\n"
30707 "\n"
30708 msgstr ""
30709
30710 # type: textblock
30711 #. type: textblock
30712 #: ../fish/guestfish-commands.pod:186
30713 msgid ""
30714 "Run the command as usual, but print the elapsed time afterwards.  This can "
30715 "be useful for benchmarking operations."
30716 msgstr ""
30717
30718 # type: textblock
30719 #. type: textblock
30720 #: ../test-tool/libguestfs-test-tool.pod:5
30721 msgid "libguestfs-test-tool - End user tests for libguestfs"
30722 msgstr ""
30723
30724 # type: verbatim
30725 #. type: verbatim
30726 #: ../test-tool/libguestfs-test-tool.pod:9
30727 #, no-wrap
30728 msgid ""
30729 " libguestfs-test-tool [--options]\n"
30730 "\n"
30731 msgstr ""
30732
30733 # type: textblock
30734 #. type: textblock
30735 #: ../test-tool/libguestfs-test-tool.pod:13
30736 msgid ""
30737 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
30738 "and developers, to allow them to check basic libguestfs functionality is "
30739 "working.  This is needed because libguestfs occasionally breaks for reasons "
30740 "beyond our control: usually because of changes in the underlying qemu or "
30741 "kernel packages, or the host environment."
30742 msgstr ""
30743
30744 # type: textblock
30745 #. type: textblock
30746 #: ../test-tool/libguestfs-test-tool.pod:20
30747 msgid "If you suspect a problem in libguestfs, then just run:"
30748 msgstr ""
30749
30750 # type: verbatim
30751 #. type: verbatim
30752 #: ../test-tool/libguestfs-test-tool.pod:22
30753 #, no-wrap
30754 msgid ""
30755 " libguestfs-test-tool\n"
30756 "\n"
30757 msgstr ""
30758
30759 # type: textblock
30760 #. type: textblock
30761 #: ../test-tool/libguestfs-test-tool.pod:24
30762 msgid "It will print lots of diagnostic messages."
30763 msgstr ""
30764
30765 # type: textblock
30766 #. type: textblock
30767 #: ../test-tool/libguestfs-test-tool.pod:26
30768 msgid "If it runs to completion successfully, you will see this near the end:"
30769 msgstr ""
30770
30771 # type: verbatim
30772 #. type: verbatim
30773 #: ../test-tool/libguestfs-test-tool.pod:28
30774 #, no-wrap
30775 msgid ""
30776 " ===== TEST FINISHED OK =====\n"
30777 "\n"
30778 msgstr ""
30779
30780 # type: textblock
30781 #. type: textblock
30782 #: ../test-tool/libguestfs-test-tool.pod:30
30783 msgid "and the test tool will exit with code 0."
30784 msgstr ""
30785
30786 # type: textblock
30787 #. type: textblock
30788 #: ../test-tool/libguestfs-test-tool.pod:32
30789 msgid ""
30790 "If it fails (and/or exits with non-zero error code), please paste the "
30791 "B<complete, unedited> output of the test tool into a bug report.  More "
30792 "information about reporting bugs can be found on the L<http://libguestfs.org/"
30793 "> website."
30794 msgstr ""
30795
30796 # type: =item
30797 #. type: =item
30798 #: ../test-tool/libguestfs-test-tool.pod:41
30799 msgid "I<--help>"
30800 msgstr ""
30801
30802 # type: textblock
30803 #. type: textblock
30804 #: ../test-tool/libguestfs-test-tool.pod:43
30805 msgid "Display short usage information and exit."
30806 msgstr ""
30807
30808 # type: =item
30809 #. type: =item
30810 #: ../test-tool/libguestfs-test-tool.pod:45
30811 msgid "I<--helper /path/to/libguestfs-test-tool-helper>"
30812 msgstr ""
30813
30814 # type: textblock
30815 #. type: textblock
30816 #: ../test-tool/libguestfs-test-tool.pod:47
30817 msgid ""
30818 "Pass an alternate name for the helper program.  libguestfs-test-tool will "
30819 "normally look in the C<$libexec> directory that was configured when the tool "
30820 "was built."
30821 msgstr ""
30822
30823 # type: =item
30824 #. type: =item
30825 #: ../test-tool/libguestfs-test-tool.pod:51
30826 msgid "I<--qemu qemu_binary>"
30827 msgstr ""
30828
30829 # type: textblock
30830 #. type: textblock
30831 #: ../test-tool/libguestfs-test-tool.pod:53
30832 msgid ""
30833 "If you have downloaded another qemu binary, point this option at the full "
30834 "path of the binary to try it."
30835 msgstr ""
30836
30837 # type: =item
30838 #. type: =item
30839 #: ../test-tool/libguestfs-test-tool.pod:56
30840 msgid "I<--qemudir qemu_source_dir>"
30841 msgstr ""
30842
30843 # type: textblock
30844 #. type: textblock
30845 #: ../test-tool/libguestfs-test-tool.pod:58
30846 msgid ""
30847 "If you have compiled qemu from source, point this option at the source "
30848 "directory to try it."
30849 msgstr ""
30850
30851 # type: =item
30852 #. type: =item
30853 #: ../test-tool/libguestfs-test-tool.pod:61
30854 msgid "I<--timeout N>"
30855 msgstr ""
30856
30857 # type: textblock
30858 #. type: textblock
30859 #: ../test-tool/libguestfs-test-tool.pod:63
30860 msgid ""
30861 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
30862 "does not usually need to be adjusted unless your machine is very slow."
30863 msgstr ""
30864
30865 # type: =head1
30866 #. type: =head1
30867 #: ../test-tool/libguestfs-test-tool.pod:69
30868 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
30869 msgstr ""
30870
30871 # type: textblock
30872 #. type: textblock
30873 #: ../test-tool/libguestfs-test-tool.pod:71
30874 msgid ""
30875 "If you have compiled another version of qemu from source and would like to "
30876 "try that, then you can use the I<--qemudir> option to point to the qemu "
30877 "source directory."
30878 msgstr ""
30879
30880 # type: textblock
30881 #. type: textblock
30882 #: ../test-tool/libguestfs-test-tool.pod:75
30883 msgid ""
30884 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
30885 "option to point to the binary."
30886 msgstr ""
30887
30888 # type: textblock
30889 #. type: textblock
30890 #: ../test-tool/libguestfs-test-tool.pod:78
30891 msgid ""
30892 "When using an alternate qemu with libguestfs, usually you would need to "
30893 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
30894 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
30895 "use either of the I<--qemudir> or I<--qemu> options."
30896 msgstr ""
30897
30898 # type: textblock
30899 #. type: textblock
30900 #: ../test-tool/libguestfs-test-tool.pod:85
30901 msgid ""
30902 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
30903 "I<1> if there was an error."
30904 msgstr ""
30905
30906 # type: =item
30907 #. type: =item
30908 #: ../test-tool/libguestfs-test-tool.pod:92
30909 msgid "/usr/libexec/libguestfs-test-tool-helper"
30910 msgstr ""
30911
30912 # type: textblock
30913 #. type: textblock
30914 #: ../test-tool/libguestfs-test-tool.pod:94
30915 msgid ""
30916 "This helper program is run inside the appliance and provides additional "
30917 "tests."
30918 msgstr ""
30919
30920 # type: =item
30921 #. type: =item
30922 #: ../test-tool/libguestfs-test-tool.pod:97
30923 msgid "/usr/bin/mkisofs"
30924 msgstr ""
30925
30926 # type: textblock
30927 #. type: textblock
30928 #: ../test-tool/libguestfs-test-tool.pod:99
30929 msgid ""
30930 "The C<mkisofs> command is required in order to construct a CD-ROM ISO file "
30931 "which is used as part of the tests."
30932 msgstr ""
30933
30934 # type: textblock
30935 #. type: textblock
30936 #: ../test-tool/libguestfs-test-tool.pod:106
30937 msgid ""
30938 "For the full list of environment variables which may affect libguestfs, "
30939 "please see the L<guestfs(3)> manual page."
30940 msgstr ""
30941
30942 # type: textblock
30943 #. type: textblock
30944 #: ../test-tool/libguestfs-test-tool.pod:111
30945 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
30946 msgstr ""
30947
30948 # type: textblock
30949 #. type: textblock
30950 #: ../test-tool/libguestfs-test-tool.pod:121
30951 msgid "Copyright (C) 2009 Red Hat Inc.  L<http://libguestfs.org/>"
30952 msgstr ""
30953
30954 # type: textblock
30955 #. type: textblock
30956 #: ../fuse/guestmount.pod:5
30957 msgid ""
30958 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
30959 msgstr ""
30960
30961 # type: verbatim
30962 #. type: verbatim
30963 #: ../fuse/guestmount.pod:9
30964 #, no-wrap
30965 msgid ""
30966 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
30967 "\n"
30968 msgstr ""
30969
30970 # type: verbatim
30971 #. type: verbatim
30972 #: ../fuse/guestmount.pod:11
30973 #, no-wrap
30974 msgid ""
30975 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
30976 "\n"
30977 msgstr ""
30978
30979 # type: verbatim
30980 #. type: verbatim
30981 #: ../fuse/guestmount.pod:13
30982 #, no-wrap
30983 msgid ""
30984 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
30985 "\n"
30986 msgstr ""
30987
30988 # type: textblock
30989 #. type: textblock
30990 #: ../fuse/guestmount.pod:17
30991 msgid ""
30992 "You must I<not> use C<guestmount> in read-write mode on live virtual "
30993 "machines.  If you do this, you risk disk corruption in the VM."
30994 msgstr ""
30995
30996 # type: textblock
30997 #. type: textblock
30998 #: ../fuse/guestmount.pod:22
30999 msgid ""
31000 "The guestmount program can be used to mount virtual machine filesystems and "
31001 "other disk images on the host.  It uses libguestfs for access to the guest "
31002 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
31003 "a mountable device."
31004 msgstr ""
31005
31006 # type: textblock
31007 #. type: textblock
31008 #: ../fuse/guestmount.pod:27
31009 msgid ""
31010 "Along with other options, you have to give at least one device (I<-a> "
31011 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
31012 "option) or use the I<-i> inspection option.  How this works is better "
31013 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
31014 "below."
31015 msgstr ""
31016
31017 # type: textblock
31018 #. type: textblock
31019 #: ../fuse/guestmount.pod:33
31020 msgid ""
31021 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
31022 "by you, and the filesystem will not be visible to any other users unless you "
31023 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
31024 "the filesystem, use the C<fusermount -u> command."
31025 msgstr ""
31026
31027 # type: textblock
31028 #. type: textblock
31029 #: ../fuse/guestmount.pod:41
31030 msgid ""
31031 "For a typical Windows guest which has its main filesystem on the first "
31032 "partition:"
31033 msgstr ""
31034
31035 # type: verbatim
31036 #. type: verbatim
31037 #: ../fuse/guestmount.pod:44
31038 #, no-wrap
31039 msgid ""
31040 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
31041 "\n"
31042 msgstr ""
31043
31044 # type: textblock
31045 #. type: textblock
31046 #: ../fuse/guestmount.pod:46
31047 msgid ""
31048 "For a typical Linux guest which has a /boot filesystem on the first "
31049 "partition, and the root filesystem on a logical volume:"
31050 msgstr ""
31051
31052 # type: verbatim
31053 #. type: verbatim
31054 #: ../fuse/guestmount.pod:49
31055 #, no-wrap
31056 msgid ""
31057 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
31058 "\n"
31059 msgstr ""
31060
31061 # type: textblock
31062 #. type: textblock
31063 #: ../fuse/guestmount.pod:51
31064 msgid "To get libguestfs to detect guest mountpoints for you:"
31065 msgstr ""
31066
31067 # type: verbatim
31068 #. type: verbatim
31069 #: ../fuse/guestmount.pod:53
31070 #, no-wrap
31071 msgid ""
31072 " guestmount -a guest.img -i --ro /mnt\n"
31073 "\n"
31074 msgstr ""
31075
31076 # type: textblock
31077 #. type: textblock
31078 #: ../fuse/guestmount.pod:55
31079 msgid "For a libvirt guest called \"Guest\" you could do:"
31080 msgstr ""
31081
31082 # type: verbatim
31083 #. type: verbatim
31084 #: ../fuse/guestmount.pod:57
31085 #, no-wrap
31086 msgid ""
31087 " guestmount -d Guest -i --ro /mnt\n"
31088 "\n"
31089 msgstr ""
31090
31091 # type: textblock
31092 #. type: textblock
31093 #: ../fuse/guestmount.pod:59
31094 msgid ""
31095 "If you don't know what filesystems are contained in a guest or disk image, "
31096 "use L<virt-filesystems(1)> first:"
31097 msgstr ""
31098
31099 # type: verbatim
31100 #. type: verbatim
31101 #: ../fuse/guestmount.pod:62
31102 #, no-wrap
31103 msgid ""
31104 " virt-filesystems MyGuest\n"
31105 "\n"
31106 msgstr ""
31107
31108 # type: textblock
31109 #. type: textblock
31110 #: ../fuse/guestmount.pod:64
31111 msgid ""
31112 "If you want to trace the libguestfs calls but without excessive debugging "
31113 "information, we recommend:"
31114 msgstr ""
31115
31116 # type: verbatim
31117 #. type: verbatim
31118 #: ../fuse/guestmount.pod:67
31119 #, no-wrap
31120 msgid ""
31121 " guestmount [...] --trace /mnt\n"
31122 "\n"
31123 msgstr ""
31124
31125 # type: textblock
31126 #. type: textblock
31127 #: ../fuse/guestmount.pod:69
31128 msgid "If you want to debug the program, we recommend:"
31129 msgstr ""
31130
31131 # type: verbatim
31132 #. type: verbatim
31133 #: ../fuse/guestmount.pod:71
31134 #, no-wrap
31135 msgid ""
31136 " guestmount [...] --trace --verbose /mnt\n"
31137 "\n"
31138 msgstr ""
31139
31140 # type: =item
31141 #. type: =item
31142 #: ../fuse/guestmount.pod:77
31143 msgid "B<-a image> | B<--add image>"
31144 msgstr ""
31145
31146 # type: textblock
31147 #. type: textblock
31148 #: ../fuse/guestmount.pod:79
31149 msgid "Add a block device or virtual machine image."
31150 msgstr ""
31151
31152 # type: =item
31153 #. type: =item
31154 #: ../fuse/guestmount.pod:84
31155 msgid "B<-c URI> | B<--connect URI>"
31156 msgstr ""
31157
31158 # type: =item
31159 #. type: =item
31160 #: ../fuse/guestmount.pod:90
31161 msgid "B<-d libvirt-domain> | B<--domain libvirt-domain>"
31162 msgstr ""
31163
31164 # type: =item
31165 #. type: =item
31166 #: ../fuse/guestmount.pod:96
31167 msgid "B<--dir-cache-timeout N>"
31168 msgstr ""
31169
31170 # type: textblock
31171 #. type: textblock
31172 #: ../fuse/guestmount.pod:98
31173 msgid ""
31174 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
31175 "seconds.  The readdir cache [actually, there are several semi-independent "
31176 "caches] is populated after a readdir(2) call with the stat and extended "
31177 "attributes of the files in the directory, in anticipation that they will be "
31178 "requested soon after."
31179 msgstr ""
31180
31181 # type: textblock
31182 #. type: textblock
31183 #: ../fuse/guestmount.pod:104
31184 msgid ""
31185 "There is also a different attribute cache implemented by FUSE (see the FUSE "
31186 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
31187 "requests, only cache existing ones."
31188 msgstr ""
31189
31190 # type: =item
31191 #. type: =item
31192 #: ../fuse/guestmount.pod:115
31193 msgid "B<--format=raw|qcow2|..> | B<--format>"
31194 msgstr ""
31195
31196 # type: textblock
31197 #. type: textblock
31198 #: ../fuse/guestmount.pod:122
31199 msgid ""
31200 "If you have untrusted raw-format guest disk images, you should use this "
31201 "option to specify the disk format.  This avoids a possible security problem "
31202 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
31203 "guestfs_add_drive_opts>."
31204 msgstr ""
31205
31206 # type: =item
31207 #. type: =item
31208 #: ../fuse/guestmount.pod:127
31209 msgid "B<--fuse-help>"
31210 msgstr ""
31211
31212 # type: textblock
31213 #. type: textblock
31214 #: ../fuse/guestmount.pod:129
31215 msgid "Display help on special FUSE options (see I<-o> below)."
31216 msgstr ""
31217
31218 # type: textblock
31219 #. type: textblock
31220 #: ../fuse/guestmount.pod:133
31221 msgid "Display brief help and exit."
31222 msgstr ""
31223
31224 # type: =item
31225 #. type: =item
31226 #: ../fuse/guestmount.pod:135
31227 msgid "B<-i> | B<--inspector>"
31228 msgstr ""
31229
31230 # type: =item
31231 #. type: =item
31232 #: ../fuse/guestmount.pod:146
31233 msgid "B<-m dev[:mnt]> | B<--mount dev[:mnt]>"
31234 msgstr ""
31235
31236 # type: textblock
31237 #. type: textblock
31238 #: ../fuse/guestmount.pod:148
31239 msgid ""
31240 "Mount the named partition or logical volume on the given mountpoint B<in the "
31241 "guest> (this has nothing to do with mountpoints in the host)."
31242 msgstr ""
31243
31244 # type: textblock
31245 #. type: textblock
31246 #: ../fuse/guestmount.pod:151
31247 msgid ""
31248 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
31249 "something on C</>."
31250 msgstr ""
31251
31252 # type: =item
31253 #. type: =item
31254 #: ../fuse/guestmount.pod:154
31255 msgid "B<-n> | B<--no-sync>"
31256 msgstr ""
31257
31258 # type: textblock
31259 #. type: textblock
31260 #: ../fuse/guestmount.pod:156
31261 msgid ""
31262 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
31263 "unmounted.  If you specify this option, then we don't attempt to sync the "
31264 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
31265 msgstr ""
31266
31267 # type: =item
31268 #. type: =item
31269 #: ../fuse/guestmount.pod:161
31270 msgid "B<-o option> | B<--option option>"
31271 msgstr ""
31272
31273 # type: textblock
31274 #. type: textblock
31275 #: ../fuse/guestmount.pod:163
31276 msgid "Pass extra options to FUSE."
31277 msgstr ""
31278
31279 # type: textblock
31280 #. type: textblock
31281 #: ../fuse/guestmount.pod:165
31282 msgid ""
31283 "To get a list of all the extra options supported by FUSE, use the command "
31284 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
31285 "of them are a good idea."
31286 msgstr ""
31287
31288 # type: verbatim
31289 #. type: verbatim
31290 #: ../fuse/guestmount.pod:169
31291 #, no-wrap
31292 msgid ""
31293 " guestmount --fuse-help\n"
31294 "\n"
31295 msgstr ""
31296
31297 # type: textblock
31298 #. type: textblock
31299 #: ../fuse/guestmount.pod:171
31300 msgid "Some potentially useful FUSE options:"
31301 msgstr ""
31302
31303 # type: =item
31304 #. type: =item
31305 #: ../fuse/guestmount.pod:175
31306 msgid "B<-o allow_other>"
31307 msgstr ""
31308
31309 # type: textblock
31310 #. type: textblock
31311 #: ../fuse/guestmount.pod:177
31312 msgid "Allow other users to see the filesystem."
31313 msgstr ""
31314
31315 # type: =item
31316 #. type: =item
31317 #: ../fuse/guestmount.pod:179
31318 msgid "B<-o attr_timeout=N>"
31319 msgstr ""
31320
31321 # type: textblock
31322 #. type: textblock
31323 #: ../fuse/guestmount.pod:181
31324 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
31325 msgstr ""
31326
31327 # type: =item
31328 #. type: =item
31329 #: ../fuse/guestmount.pod:183
31330 msgid "B<-o kernel_cache>"
31331 msgstr ""
31332
31333 # type: textblock
31334 #. type: textblock
31335 #: ../fuse/guestmount.pod:185
31336 msgid ""
31337 "Allow the kernel to cache files (reduces the number of reads that have to go "
31338 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
31339 "afford the extra memory usage."
31340 msgstr ""
31341
31342 # type: =item
31343 #. type: =item
31344 #: ../fuse/guestmount.pod:189
31345 msgid "B<-o uid=N> B<-o gid=N>"
31346 msgstr ""
31347
31348 # type: textblock
31349 #. type: textblock
31350 #: ../fuse/guestmount.pod:191
31351 msgid ""
31352 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
31353 "the chosen values."
31354 msgstr ""
31355
31356 # type: =item
31357 #. type: =item
31358 #: ../fuse/guestmount.pod:196
31359 msgid "B<-r> | B<--ro>"
31360 msgstr ""
31361
31362 # type: textblock
31363 #. type: textblock
31364 #: ../fuse/guestmount.pod:198
31365 msgid ""
31366 "Add devices and mount everything read-only.  Also disallow writes and make "
31367 "the disk appear read-only to FUSE."
31368 msgstr ""
31369
31370 # type: textblock
31371 #. type: textblock
31372 #: ../fuse/guestmount.pod:201
31373 msgid ""
31374 "This is highly recommended if you are not going to edit the guest disk.  If "
31375 "the guest is running and this option is I<not> supplied, then there is a "
31376 "strong risk of disk corruption in the guest.  We try to prevent this from "
31377 "happening, but it is not always possible."
31378 msgstr ""
31379
31380 # type: textblock
31381 #. type: textblock
31382 #: ../fuse/guestmount.pod:206
31383 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
31384 msgstr ""
31385
31386 # type: textblock
31387 #. type: textblock
31388 #: ../fuse/guestmount.pod:210
31389 msgid "Enable SELinux support for the guest."
31390 msgstr ""
31391
31392 # type: =item
31393 #. type: =item
31394 #: ../fuse/guestmount.pod:212
31395 msgid "B<-v> | B<--verbose>"
31396 msgstr ""
31397
31398 # type: textblock
31399 #. type: textblock
31400 #: ../fuse/guestmount.pod:214
31401 msgid "Enable verbose messages from underlying libguestfs."
31402 msgstr ""
31403
31404 # type: =item
31405 #. type: =item
31406 #: ../fuse/guestmount.pod:216
31407 msgid "B<-V> | B<--version>"
31408 msgstr ""
31409
31410 # type: textblock
31411 #. type: textblock
31412 #: ../fuse/guestmount.pod:218
31413 msgid "Display the program version and exit."
31414 msgstr ""
31415
31416 # type: =item
31417 #. type: =item
31418 #: ../fuse/guestmount.pod:220
31419 msgid "B<-w> | B<--rw>"
31420 msgstr ""
31421
31422 # type: textblock
31423 #. type: textblock
31424 #: ../fuse/guestmount.pod:222
31425 msgid ""
31426 "This option does nothing at the moment.  See L<guestfish(1)/OPENING DISKS "
31427 "FOR READ AND WRITE>."
31428 msgstr ""
31429
31430 # type: =item
31431 #. type: =item
31432 #: ../fuse/guestmount.pod:225
31433 msgid "B<-x> | B<--trace>"
31434 msgstr ""
31435
31436 # type: textblock
31437 #. type: textblock
31438 #: ../fuse/guestmount.pod:227
31439 msgid "Trace libguestfs calls and entry into each FUSE function."
31440 msgstr ""
31441
31442 # type: textblock
31443 #. type: textblock
31444 #: ../fuse/guestmount.pod:229
31445 msgid "This also stops the daemon from forking into the background."
31446 msgstr ""
31447
31448 # type: textblock
31449 #. type: textblock
31450 #: ../fuse/guestmount.pod:235
31451 msgid ""
31452 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
31453 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
31454 "net/>."
31455 msgstr ""
31456
31457 # type: textblock
31458 #. type: textblock
31459 #: ../tools/virt-edit.pl:34
31460 msgid "virt-edit - Edit a file in a virtual machine"
31461 msgstr ""
31462
31463 # type: verbatim
31464 #. type: verbatim
31465 #: ../tools/virt-edit.pl:38
31466 #, no-wrap
31467 msgid ""
31468 " virt-edit [--options] domname file\n"
31469 "\n"
31470 msgstr ""
31471
31472 # type: verbatim
31473 #. type: verbatim
31474 #: ../tools/virt-edit.pl:40
31475 #, no-wrap
31476 msgid ""
31477 " virt-edit [--options] disk.img [disk.img ...] file\n"
31478 "\n"
31479 msgstr ""
31480
31481 # type: verbatim
31482 #. type: verbatim
31483 #: ../tools/virt-edit.pl:42
31484 #, no-wrap
31485 msgid ""
31486 " virt-edit [domname|disk.img] file -e 'expr'\n"
31487 "\n"
31488 msgstr ""
31489
31490 # type: textblock
31491 #. type: textblock
31492 #: ../tools/virt-edit.pl:46
31493 msgid ""
31494 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
31495 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
31496 "doing this, but doesn't catch all cases."
31497 msgstr ""
31498
31499 # type: textblock
31500 #. type: textblock
31501 #: ../tools/virt-edit.pl:52
31502 msgid ""
31503 "C<virt-edit> is a command line tool to edit C<file> where C<file> exists in "
31504 "the named virtual machine (or disk image)."
31505 msgstr ""
31506
31507 # type: textblock
31508 #. type: textblock
31509 #: ../tools/virt-edit.pl:55
31510 msgid ""
31511 "If you want to just view a file, use L<virt-cat(1)>.  For more complex cases "
31512 "you should look at the L<guestfish(1)> tool."
31513 msgstr ""
31514
31515 # type: textblock
31516 #. type: textblock
31517 #: ../tools/virt-edit.pl:60
31518 msgid "Edit the named files interactively:"
31519 msgstr ""
31520
31521 # type: verbatim
31522 #. type: verbatim
31523 #: ../tools/virt-edit.pl:62
31524 #, no-wrap
31525 msgid ""
31526 " virt-edit mydomain /boot/grub/grub.conf\n"
31527 "\n"
31528 msgstr ""
31529
31530 # type: verbatim
31531 #. type: verbatim
31532 #: ../tools/virt-edit.pl:64
31533 #, no-wrap
31534 msgid ""
31535 " virt-edit mydomain /etc/passwd\n"
31536 "\n"
31537 msgstr ""
31538
31539 # type: textblock
31540 #. type: textblock
31541 #: ../tools/virt-edit.pl:66
31542 msgid ""
31543 "You can also edit files non-interactively (see L</NON-INTERACTIVE EDITING> "
31544 "below).  To change the init default level to 5:"
31545 msgstr ""
31546
31547 # type: verbatim
31548 #. type: verbatim
31549 #: ../tools/virt-edit.pl:70
31550 #, no-wrap
31551 msgid ""
31552 " virt-edit mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
31553 "\n"
31554 msgstr ""
31555
31556 # type: textblock
31557 #. type: textblock
31558 #: ../tools/virt-edit.pl:82 ../tools/virt-win-reg.pl:106
31559 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-tar.pl:113
31560 #: ../tools/virt-make-fs.pl:163 ../tools/virt-list-partitions.pl:64
31561 msgid "Display brief help."
31562 msgstr ""
31563
31564 # type: textblock
31565 #. type: textblock
31566 #: ../tools/virt-edit.pl:90 ../tools/virt-win-reg.pl:114
31567 #: ../tools/virt-resize.pl:272 ../tools/virt-list-filesystems.pl:71
31568 #: ../tools/virt-tar.pl:121 ../tools/virt-make-fs.pl:171
31569 #: ../tools/virt-list-partitions.pl:72
31570 msgid "Display version number and exit."
31571 msgstr ""
31572
31573 # type: =item
31574 #. type: =item
31575 #: ../tools/virt-edit.pl:96
31576 msgid "B<--backup extension> | B<-b extension>"
31577 msgstr ""
31578
31579 # type: textblock
31580 #. type: textblock
31581 #: ../tools/virt-edit.pl:98
31582 msgid ""
31583 "Create a backup of the original file I<in the guest disk image>.  The backup "
31584 "has the original filename with C<extension> added."
31585 msgstr ""
31586
31587 # type: textblock
31588 #. type: textblock
31589 #: ../tools/virt-edit.pl:101
31590 msgid ""
31591 "Usually the first character of C<extension> would be a dot C<.> so you would "
31592 "write:"
31593 msgstr ""
31594
31595 # type: verbatim
31596 #. type: verbatim
31597 #: ../tools/virt-edit.pl:104
31598 #, no-wrap
31599 msgid ""
31600 " virt-edit -b .orig [etc]\n"
31601 "\n"
31602 msgstr ""
31603
31604 # type: textblock
31605 #. type: textblock
31606 #: ../tools/virt-edit.pl:106
31607 msgid "By default, no backup file is made."
31608 msgstr ""
31609
31610 # type: =item
31611 #. type: =item
31612 #: ../tools/virt-edit.pl:112 ../tools/virt-win-reg.pl:128
31613 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-tar.pl:127
31614 #: ../tools/virt-list-partitions.pl:78
31615 msgid "B<--connect URI> | B<-c URI>"
31616 msgstr ""
31617
31618 # type: textblock
31619 #. type: textblock
31620 #: ../tools/virt-edit.pl:114 ../tools/virt-win-reg.pl:130
31621 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-tar.pl:129
31622 #: ../tools/virt-list-partitions.pl:80
31623 msgid ""
31624 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
31625 "to the default libvirt hypervisor."
31626 msgstr ""
31627
31628 # type: textblock
31629 #. type: textblock
31630 #: ../tools/virt-edit.pl:117 ../tools/virt-win-reg.pl:133
31631 #: ../tools/virt-list-filesystems.pl:82 ../tools/virt-tar.pl:132
31632 #: ../tools/virt-list-partitions.pl:83
31633 msgid ""
31634 "If you specify guest block devices directly, then libvirt is not used at all."
31635 msgstr ""
31636
31637 # type: =item
31638 #. type: =item
31639 #: ../tools/virt-edit.pl:124 ../tools/virt-win-reg.pl:140
31640 #: ../tools/virt-resize.pl:520 ../tools/virt-list-filesystems.pl:89
31641 #: ../tools/virt-tar.pl:139 ../tools/virt-list-partitions.pl:90
31642 msgid "B<--format> raw"
31643 msgstr ""
31644
31645 # type: textblock
31646 #. type: textblock
31647 #: ../tools/virt-edit.pl:126 ../tools/virt-win-reg.pl:142
31648 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-tar.pl:141
31649 #: ../tools/virt-list-partitions.pl:92
31650 msgid ""
31651 "Specify the format of disk images given on the command line.  If this is "
31652 "omitted then the format is autodetected from the content of the disk image."
31653 msgstr ""
31654
31655 # type: textblock
31656 #. type: textblock
31657 #: ../tools/virt-edit.pl:130 ../tools/virt-win-reg.pl:146
31658 #: ../tools/virt-list-filesystems.pl:95 ../tools/virt-tar.pl:145
31659 #: ../tools/virt-list-partitions.pl:96
31660 msgid ""
31661 "If disk images are requested from libvirt, then this program asks libvirt "
31662 "for this information.  In this case, the value of the format parameter is "
31663 "ignored."
31664 msgstr ""
31665
31666 # type: textblock
31667 #. type: textblock
31668 #: ../tools/virt-edit.pl:134 ../tools/virt-win-reg.pl:150
31669 #: ../tools/virt-resize.pl:525 ../tools/virt-resize.pl:540
31670 #: ../tools/virt-list-filesystems.pl:99 ../tools/virt-tar.pl:149
31671 #: ../tools/virt-list-partitions.pl:100
31672 msgid ""
31673 "If working with untrusted raw-format guest disk images, you should ensure "
31674 "the format is always specified."
31675 msgstr ""
31676
31677 # type: =item
31678 #. type: =item
31679 #: ../tools/virt-edit.pl:141
31680 msgid "B<--expr EXPR> | B<-e EXPR>"
31681 msgstr ""
31682
31683 # type: textblock
31684 #. type: textblock
31685 #: ../tools/virt-edit.pl:143
31686 msgid ""
31687 "Instead of launching the external editor, non-interactively apply the Perl "
31688 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
31689 "EDITING> below."
31690 msgstr ""
31691
31692 # type: textblock
31693 #. type: textblock
31694 #: ../tools/virt-edit.pl:147
31695 msgid ""
31696 "Be careful to properly quote the expression to prevent it from being altered "
31697 "by the shell."
31698 msgstr ""
31699
31700 # type: =head1
31701 #. type: =head1
31702 #: ../tools/virt-edit.pl:268
31703 msgid "NON-INTERACTIVE EDITING"
31704 msgstr ""
31705
31706 # type: textblock
31707 #. type: textblock
31708 #: ../tools/virt-edit.pl:270
31709 msgid ""
31710 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
31711 "administrator can interactively edit the file."
31712 msgstr ""
31713
31714 # type: textblock
31715 #. type: textblock
31716 #: ../tools/virt-edit.pl:273
31717 msgid ""
31718 "There are two ways also to use C<virt-edit> from scripts in order to make "
31719 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
31720 "like this, it's less error-prone to write scripts directly using the "
31721 "libguestfs API and Augeas for configuration file editing.)"
31722 msgstr ""
31723
31724 # type: textblock
31725 #. type: textblock
31726 #: ../tools/virt-edit.pl:279
31727 msgid ""
31728 "The first method is to temporarily set C<$EDITOR> to any script or program "
31729 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
31730 "update C<tmpfile> in place however it likes."
31731 msgstr ""
31732
31733 # type: textblock
31734 #. type: textblock
31735 #: ../tools/virt-edit.pl:283
31736 msgid ""
31737 "The second method is to use the C<-e> parameter of C<virt-edit> to run a "
31738 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
31739 "instances of C<foo> with C<bar> in a file:"
31740 msgstr ""
31741
31742 # type: verbatim
31743 #. type: verbatim
31744 #: ../tools/virt-edit.pl:287
31745 #, no-wrap
31746 msgid ""
31747 " virt-edit domname filename -e 's/foo/bar/'\n"
31748 "\n"
31749 msgstr ""
31750
31751 # type: textblock
31752 #. type: textblock
31753 #: ../tools/virt-edit.pl:289
31754 msgid ""
31755 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
31756 "For example to delete root's password you could do:"
31757 msgstr ""
31758
31759 # type: verbatim
31760 #. type: verbatim
31761 #: ../tools/virt-edit.pl:292
31762 #, no-wrap
31763 msgid ""
31764 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
31765 "\n"
31766 msgstr ""
31767
31768 # type: textblock
31769 #. type: textblock
31770 #: ../tools/virt-edit.pl:294
31771 msgid ""
31772 "What really happens is that the snippet is evaluated as a Perl expression "
31773 "for each line of the file.  The line, including the final C<\\n>, is passed "
31774 "in C<$_> and the expression should update C<$_> or leave it unchanged."
31775 msgstr ""
31776
31777 # type: textblock
31778 #. type: textblock
31779 #: ../tools/virt-edit.pl:299
31780 msgid ""
31781 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
31782 "C<apache> user account from the password file you can do:"
31783 msgstr ""
31784
31785 # type: verbatim
31786 #. type: verbatim
31787 #: ../tools/virt-edit.pl:302
31788 #, no-wrap
31789 msgid ""
31790 " virt-edit mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
31791 "\n"
31792 msgstr ""
31793
31794 # type: textblock
31795 #. type: textblock
31796 #: ../tools/virt-edit.pl:304
31797 msgid ""
31798 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
31799 "the end of the file is rather difficult this way since there is no concept "
31800 "of \"last line of the file\" - your expression just doesn't get called "
31801 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
31802 "want to do this."
31803 msgstr ""
31804
31805 # type: textblock
31806 #. type: textblock
31807 #: ../tools/virt-edit.pl:310
31808 msgid ""
31809 "The variable C<$lineno> contains the current line number.  As is "
31810 "traditional, the first line in the file is number C<1>."
31811 msgstr ""
31812
31813 # type: textblock
31814 #. type: textblock
31815 #: ../tools/virt-edit.pl:313
31816 msgid ""
31817 "The return value from the expression is ignored, but the expression may call "
31818 "C<die> in order to abort the whole program, leaving the original file "
31819 "untouched."
31820 msgstr ""
31821
31822 # type: textblock
31823 #. type: textblock
31824 #: ../tools/virt-edit.pl:317
31825 msgid ""
31826 "Remember when matching the end of a line that C<$_> may contain the final C<"
31827 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
31828 "newline then neither of these.  Thus to match or substitute some text at the "
31829 "end of a line, use this regular expression:"
31830 msgstr ""
31831
31832 # type: verbatim
31833 #. type: verbatim
31834 #: ../tools/virt-edit.pl:322
31835 #, no-wrap
31836 msgid ""
31837 " /some text(\\r?\\n)?$/\n"
31838 "\n"
31839 msgstr ""
31840
31841 # type: textblock
31842 #. type: textblock
31843 #: ../tools/virt-edit.pl:324
31844 msgid ""
31845 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
31846 "$_> itself (since that would remove all newlines from the file):"
31847 msgstr ""
31848
31849 # type: verbatim
31850 #. type: verbatim
31851 #: ../tools/virt-edit.pl:328
31852 #, no-wrap
31853 msgid ""
31854 " my $m = $_; chomp $m; $m =~ /some text$/\n"
31855 "\n"
31856 msgstr ""
31857
31858 # type: =item
31859 #. type: =item
31860 #: ../tools/virt-edit.pl:334
31861 msgid "C<EDITOR>"
31862 msgstr ""
31863
31864 # type: textblock
31865 #. type: textblock
31866 #: ../tools/virt-edit.pl:336
31867 msgid ""
31868 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
31869 "\"emacs -nw\">"
31870 msgstr ""
31871
31872 # type: textblock
31873 #. type: textblock
31874 #: ../tools/virt-edit.pl:339
31875 msgid "If not set, C<vi> is used."
31876 msgstr ""
31877
31878 # type: =head2
31879 #. type: =head1
31880 #: ../tools/virt-edit.pl:343 ../tools/virt-win-reg.pl:559
31881 #: ../tools/virt-resize.pl:1476 ../tools/virt-list-filesystems.pl:182
31882 #: ../tools/virt-tar.pl:279 ../tools/virt-make-fs.pl:527
31883 #: ../tools/virt-list-partitions.pl:250
31884 msgid "SHELL QUOTING"
31885 msgstr ""
31886
31887 # type: textblock
31888 #. type: textblock
31889 #: ../tools/virt-edit.pl:345 ../tools/virt-win-reg.pl:567
31890 #: ../tools/virt-resize.pl:1478 ../tools/virt-list-filesystems.pl:184
31891 #: ../tools/virt-tar.pl:281 ../tools/virt-make-fs.pl:529
31892 #: ../tools/virt-list-partitions.pl:252
31893 msgid ""
31894 "Libvirt guest names can contain arbitrary characters, some of which have "
31895 "meaning to the shell such as C<#> and space.  You may need to quote or "
31896 "escape these characters on the command line.  See the shell manual page L<sh"
31897 "(1)> for details."
31898 msgstr ""
31899
31900 #. type: textblock
31901 #: ../tools/virt-edit.pl:352
31902 msgid ""
31903 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
31904 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
31905 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
31906 msgstr ""
31907
31908 # type: =head1
31909 #. type: =head1
31910 #: ../tools/virt-edit.pl:364 ../tools/virt-win-reg.pl:598
31911 #: ../tools/virt-resize.pl:1504 ../tools/virt-list-filesystems.pl:202
31912 #: ../tools/virt-tar.pl:301 ../tools/virt-make-fs.pl:559
31913 #: ../tools/virt-list-partitions.pl:269
31914 msgid "AUTHOR"
31915 msgstr ""
31916
31917 # type: textblock
31918 #. type: textblock
31919 #: ../tools/virt-edit.pl:366 ../tools/virt-win-reg.pl:600
31920 #: ../tools/virt-resize.pl:1506 ../tools/virt-list-filesystems.pl:204
31921 #: ../tools/virt-tar.pl:303 ../tools/virt-make-fs.pl:561
31922 #: ../tools/virt-list-partitions.pl:271
31923 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
31924 msgstr ""
31925
31926 # type: textblock
31927 #. type: textblock
31928 #: ../tools/virt-edit.pl:370 ../tools/virt-list-partitions.pl:275
31929 msgid "Copyright (C) 2009-2010 Red Hat Inc."
31930 msgstr ""
31931
31932 # type: textblock
31933 #. type: textblock
31934 #: ../tools/virt-win-reg.pl:37
31935 msgid ""
31936 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
31937 msgstr ""
31938
31939 # type: verbatim
31940 #. type: verbatim
31941 #: ../tools/virt-win-reg.pl:41
31942 #, no-wrap
31943 msgid ""
31944 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
31945 "\n"
31946 msgstr ""
31947
31948 # type: verbatim
31949 #. type: verbatim
31950 #: ../tools/virt-win-reg.pl:43
31951 #, no-wrap
31952 msgid ""
31953 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
31954 "\n"
31955 msgstr ""
31956
31957 # type: verbatim
31958 #. type: verbatim
31959 #: ../tools/virt-win-reg.pl:45
31960 #, no-wrap
31961 msgid ""
31962 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
31963 "\n"
31964 msgstr ""
31965
31966 # type: verbatim
31967 #. type: verbatim
31968 #: ../tools/virt-win-reg.pl:47
31969 #, no-wrap
31970 msgid ""
31971 " virt-win-reg --merge domname [input.reg ...]\n"
31972 "\n"
31973 msgstr ""
31974
31975 # type: verbatim
31976 #. type: verbatim
31977 #: ../tools/virt-win-reg.pl:49
31978 #, no-wrap
31979 msgid ""
31980 " virt-win-reg [--options] disk.img ... # instead of domname\n"
31981 "\n"
31982 msgstr ""
31983
31984 # type: textblock
31985 #. type: textblock
31986 #: ../tools/virt-win-reg.pl:53
31987 msgid ""
31988 "You must I<not> use C<virt-win-reg> with the C<--merge> option on live "
31989 "virtual machines.  If you do this, you I<will> get irreversible disk "
31990 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
31991 "but doesn't catch all cases."
31992 msgstr ""
31993
31994 # type: textblock
31995 #. type: textblock
31996 #: ../tools/virt-win-reg.pl:58
31997 msgid ""
31998 "Modifying the Windows Registry is an inherently risky operation.  The format "
31999 "is deliberately obscure and undocumented, and Registry changes can leave the "
32000 "system unbootable.  Therefore when using the C<--merge> option, make sure "
32001 "you have a reliable backup first."
32002 msgstr ""
32003
32004 # type: textblock
32005 #. type: textblock
32006 #: ../tools/virt-win-reg.pl:65
32007 msgid ""
32008 "This program can export and merge Windows Registry entries from a Windows "
32009 "guest."
32010 msgstr ""
32011
32012 # type: textblock
32013 #. type: textblock
32014 #: ../tools/virt-win-reg.pl:68
32015 msgid ""
32016 "The first parameter is the libvirt guest name or the raw disk image of a "
32017 "Windows guest."
32018 msgstr ""
32019
32020 # type: textblock
32021 #. type: textblock
32022 #: ../tools/virt-win-reg.pl:71
32023 msgid ""
32024 "If C<--merge> is I<not> specified, then the chosen registry key is displayed/"
32025 "exported (recursively).  For example:"
32026 msgstr ""
32027
32028 # type: verbatim
32029 #. type: verbatim
32030 #: ../tools/virt-win-reg.pl:74
32031 #, no-wrap
32032 msgid ""
32033 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
32034 "\n"
32035 msgstr ""
32036
32037 # type: textblock
32038 #. type: textblock
32039 #: ../tools/virt-win-reg.pl:76
32040 msgid ""
32041 "You can also display single values from within registry keys, for example:"
32042 msgstr ""
32043
32044 # type: verbatim
32045 #. type: verbatim
32046 #: ../tools/virt-win-reg.pl:79
32047 #, no-wrap
32048 msgid ""
32049 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
32050 " $ virt-win-reg Windows7 $cvkey ProductName\n"
32051 " Windows 7 Enterprise\n"
32052 "\n"
32053 msgstr ""
32054
32055 # type: textblock
32056 #. type: textblock
32057 #: ../tools/virt-win-reg.pl:83
32058 msgid ""
32059 "With C<--merge>, you can merge a textual regedit file into the Windows "
32060 "Registry:"
32061 msgstr ""
32062
32063 # type: verbatim
32064 #. type: verbatim
32065 #: ../tools/virt-win-reg.pl:86
32066 #, no-wrap
32067 msgid ""
32068 " $ virt-win-reg --merge Windows7 changes.reg\n"
32069 "\n"
32070 msgstr ""
32071
32072 # type: =head2
32073 #. type: =head1
32074 #: ../tools/virt-win-reg.pl:88 ../tools/virt-tar.pl:45
32075 msgid "NOTE"
32076 msgstr ""
32077
32078 # type: textblock
32079 #. type: textblock
32080 #: ../tools/virt-win-reg.pl:90
32081 msgid ""
32082 "This program is only meant for simple access to the registry.  If you want "
32083 "to do complicated things with the registry, we suggest you download the "
32084 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
32085 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
32086 "L<hivexregedit(1)>."
32087 msgstr ""
32088
32089 # type: =item
32090 #. type: =item
32091 #: ../tools/virt-win-reg.pl:120 ../tools/virt-make-fs.pl:177
32092 msgid "B<--debug>"
32093 msgstr ""
32094
32095 # type: textblock
32096 #. type: textblock
32097 #: ../tools/virt-win-reg.pl:122 ../tools/virt-resize.pl:498
32098 msgid "Enable debugging messages."
32099 msgstr ""
32100
32101 # type: =item
32102 #. type: =item
32103 #: ../tools/virt-win-reg.pl:157
32104 msgid "B<--merge>"
32105 msgstr ""
32106
32107 # type: textblock
32108 #. type: textblock
32109 #: ../tools/virt-win-reg.pl:159
32110 msgid ""
32111 "In merge mode, this merges a textual regedit file into the Windows Registry "
32112 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
32113 "displays or exports Registry entries instead."
32114 msgstr ""
32115
32116 # type: textblock
32117 #. type: textblock
32118 #: ../tools/virt-win-reg.pl:163
32119 msgid ""
32120 "Note that C<--merge> is I<unsafe> to use on live virtual machines, and will "
32121 "result in disk corruption.  However exporting (without this flag)  is always "
32122 "safe."
32123 msgstr ""
32124
32125 # type: =item
32126 #. type: =item
32127 #: ../tools/virt-win-reg.pl:171
32128 msgid "B<--encoding> UTF-16LE|ASCII"
32129 msgstr ""
32130
32131 # type: textblock
32132 #. type: textblock
32133 #: ../tools/virt-win-reg.pl:173
32134 msgid ""
32135 "When merging (only), you may need to specify the encoding for strings to be "
32136 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
32137 "(3)/ENCODING STRINGS>."
32138 msgstr ""
32139
32140 # type: textblock
32141 #. type: textblock
32142 #: ../tools/virt-win-reg.pl:177
32143 msgid ""
32144 "The default is to use UTF-16LE, which should work with recent versions of "
32145 "Windows."
32146 msgstr ""
32147
32148 # type: =head2
32149 #. type: =head1
32150 #: ../tools/virt-win-reg.pl:402
32151 msgid "SUPPORTED SYSTEMS"
32152 msgstr ""
32153
32154 # type: textblock
32155 #. type: textblock
32156 #: ../tools/virt-win-reg.pl:404
32157 msgid ""
32158 "The program currently supports Windows NT-derived guests starting with "
32159 "Windows XP through to at least Windows 7."
32160 msgstr ""
32161
32162 # type: textblock
32163 #. type: textblock
32164 #: ../tools/virt-win-reg.pl:407
32165 msgid ""
32166 "Registry support is done for C<HKEY_LOCAL_MACHINE\\SAM>, C<HKEY_LOCAL_MACHINE"
32167 "\\SECURITY>, C<HKEY_LOCAL_MACHINE\\SOFTWARE>, C<HKEY_LOCAL_MACHINE\\SYSTEM> "
32168 "and C<HKEY_USERS\\.DEFAULT>."
32169 msgstr ""
32170
32171 # type: textblock
32172 #. type: textblock
32173 #: ../tools/virt-win-reg.pl:411
32174 msgid ""
32175 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
32176 "C<HKEY_USERS>."
32177 msgstr ""
32178
32179 # type: textblock
32180 #. type: textblock
32181 #: ../tools/virt-win-reg.pl:414
32182 msgid ""
32183 "C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are B<not> supported at this "
32184 "time."
32185 msgstr ""
32186
32187 # type: =head2
32188 #. type: =head1
32189 #: ../tools/virt-win-reg.pl:417
32190 msgid "ENCODING"
32191 msgstr ""
32192
32193 # type: textblock
32194 #. type: textblock
32195 #: ../tools/virt-win-reg.pl:419
32196 msgid ""
32197 "C<virt-win-reg> expects that regedit files have already been reencoded in "
32198 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
32199 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
32200 "Windows-style line endings, you may need to reencode the whole file before "
32201 "or after processing."
32202 msgstr ""
32203
32204 # type: textblock
32205 #. type: textblock
32206 #: ../tools/virt-win-reg.pl:425
32207 msgid ""
32208 "To reencode a file from Windows format to Linux (before processing it with "
32209 "the C<--merge> option), you would do something like this:"
32210 msgstr ""
32211
32212 # type: verbatim
32213 #. type: verbatim
32214 #: ../tools/virt-win-reg.pl:428
32215 #, no-wrap
32216 msgid ""
32217 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
32218 "\n"
32219 msgstr ""
32220
32221 # type: textblock
32222 #. type: textblock
32223 #: ../tools/virt-win-reg.pl:430
32224 msgid ""
32225 "To go in the opposite direction, after exporting and before sending the file "
32226 "to a Windows user, do something like this:"
32227 msgstr ""
32228
32229 # type: verbatim
32230 #. type: verbatim
32231 #: ../tools/virt-win-reg.pl:433
32232 #, no-wrap
32233 msgid ""
32234 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
32235 "\n"
32236 msgstr ""
32237
32238 # type: textblock
32239 #. type: textblock
32240 #: ../tools/virt-win-reg.pl:435
32241 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
32242 msgstr ""
32243
32244 # type: textblock
32245 #. type: textblock
32246 #: ../tools/virt-win-reg.pl:437
32247 msgid ""
32248 "If you are unsure about the current encoding, use the L<file(1)> command.  "
32249 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
32250 "style (CRLF) line endings, like this:"
32251 msgstr ""
32252
32253 # type: verbatim
32254 #. type: verbatim
32255 #: ../tools/virt-win-reg.pl:441
32256 #, no-wrap
32257 msgid ""
32258 " $ file software.reg\n"
32259 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
32260 " with CRLF line terminators\n"
32261 "\n"
32262 msgstr ""
32263
32264 # type: textblock
32265 #. type: textblock
32266 #: ../tools/virt-win-reg.pl:445
32267 msgid "This file would need conversion before you could C<--merge> it."
32268 msgstr ""
32269
32270 # type: =head2
32271 #. type: =head1
32272 #: ../tools/virt-win-reg.pl:447
32273 msgid "CurrentControlSet etc."
32274 msgstr ""
32275
32276 # type: textblock
32277 #. type: textblock
32278 #: ../tools/virt-win-reg.pl:449
32279 msgid ""
32280 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
32281 "Registry at the level of the hive file, and therefore you cannot modify "
32282 "these."
32283 msgstr ""
32284
32285 # type: textblock
32286 #. type: textblock
32287 #: ../tools/virt-win-reg.pl:453
32288 msgid ""
32289 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
32290 "circumstances it might refer to another control set.  The way to find out is "
32291 "to look at the C<HKLM\\SYSTEM\\Select> key:"
32292 msgstr ""
32293
32294 # type: verbatim
32295 #. type: verbatim
32296 #: ../tools/virt-win-reg.pl:457
32297 #, no-wrap
32298 msgid ""
32299 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
32300 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
32301 " \"Current\"=dword:00000001\n"
32302 " \"Default\"=dword:00000001\n"
32303 " \"Failed\"=dword:00000000\n"
32304 " \"LastKnownGood\"=dword:00000002\n"
32305 "\n"
32306 msgstr ""
32307
32308 # type: textblock
32309 #. type: textblock
32310 #: ../tools/virt-win-reg.pl:464
32311 msgid "\"Current\" is the one which Windows will choose when it boots."
32312 msgstr ""
32313
32314 # type: textblock
32315 #. type: textblock
32316 #: ../tools/virt-win-reg.pl:466
32317 msgid ""
32318 "Similarly, other C<Current...> keys in the path may need to be replaced."
32319 msgstr ""
32320
32321 # type: =head1
32322 #. type: =head1
32323 #: ../tools/virt-win-reg.pl:469
32324 msgid "WINDOWS TIPS"
32325 msgstr ""
32326
32327 # type: textblock
32328 #. type: textblock
32329 #: ../tools/virt-win-reg.pl:471
32330 msgid ""
32331 "Note that some of these tips modify the guest disk image.  The guest I<must> "
32332 "be shut off, else you will get disk corruption."
32333 msgstr ""
32334
32335 # type: =head2
32336 #. type: =head2
32337 #: ../tools/virt-win-reg.pl:474
32338 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
32339 msgstr ""
32340
32341 # type: textblock
32342 #. type: textblock
32343 #: ../tools/virt-win-reg.pl:476
32344 msgid ""
32345 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
32346 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
32347 "is uploaded into C<C:\\>:"
32348 msgstr ""
32349
32350 # type: verbatim
32351 #. type: verbatim
32352 #: ../tools/virt-win-reg.pl:480
32353 #, no-wrap
32354 msgid ""
32355 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
32356 "\n"
32357 msgstr ""
32358
32359 # type: textblock
32360 #. type: textblock
32361 #: ../tools/virt-win-reg.pl:482
32362 msgid "Prepare a regedit file containing the registry change:"
32363 msgstr ""
32364
32365 # type: verbatim
32366 #. type: verbatim
32367 #: ../tools/virt-win-reg.pl:484
32368 #, no-wrap
32369 msgid ""
32370 " cat > test.reg <<'EOF'\n"
32371 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
32372 " \"Test\"=\"c:\\\\test.bat\"\n"
32373 " EOF\n"
32374 "\n"
32375 msgstr ""
32376
32377 # type: textblock
32378 #. type: textblock
32379 #: ../tools/virt-win-reg.pl:489
32380 msgid ""
32381 "In this example we use the key C<RunOnce> which means that the script will "
32382 "run precisely once when the first user logs in.  If you want it to run every "
32383 "time a user logs in, replace C<RunOnce> with C<Run>."
32384 msgstr ""
32385
32386 # type: textblock
32387 #. type: textblock
32388 #: ../tools/virt-win-reg.pl:493
32389 msgid "Now update the registry:"
32390 msgstr ""
32391
32392 # type: verbatim
32393 #. type: verbatim
32394 #: ../tools/virt-win-reg.pl:495
32395 #, no-wrap
32396 msgid ""
32397 " virt-win-reg --merge WindowsGuest test.reg\n"
32398 "\n"
32399 msgstr ""
32400
32401 # type: =head2
32402 #. type: =head2
32403 #: ../tools/virt-win-reg.pl:497
32404 msgid "INSTALLING A SERVICE"
32405 msgstr ""
32406
32407 # type: textblock
32408 #. type: textblock
32409 #: ../tools/virt-win-reg.pl:499
32410 msgid ""
32411 "This section assumes you are familiar with Windows services, and you either "
32412 "have a program which handles the Windows Service Control Protocol directly "
32413 "or you want to run any program using a service wrapper like SrvAny or the "
32414 "free RHSrvAny."
32415 msgstr ""
32416
32417 # type: textblock
32418 #. type: textblock
32419 #: ../tools/virt-win-reg.pl:504
32420 msgid ""
32421 "First upload the program and optionally the service wrapper.  In this case "
32422 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
32423 msgstr ""
32424
32425 # type: verbatim
32426 #. type: verbatim
32427 #: ../tools/virt-win-reg.pl:508
32428 #, no-wrap
32429 msgid ""
32430 " guestfish -i -d WindowsGuest <<EOF\n"
32431 "   upload rhsrvany.exe /rhsrvany.exe\n"
32432 "   upload test.exe /test.exe\n"
32433 " EOF\n"
32434 "\n"
32435 msgstr ""
32436
32437 # type: textblock
32438 #. type: textblock
32439 #: ../tools/virt-win-reg.pl:513
32440 msgid ""
32441 "Prepare a regedit file containing the registry changes.  In this example, "
32442 "the first registry change is needed for the service itself or the service "
32443 "wrapper (if used).  The second registry change is only needed because I am "
32444 "using the RHSrvAny service wrapper."
32445 msgstr ""
32446
32447 # type: verbatim
32448 #. type: verbatim
32449 #: ../tools/virt-win-reg.pl:518
32450 #, no-wrap
32451 msgid ""
32452 " cat > service.reg <<'EOF'\n"
32453 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
32454 " \"Type\"=dword:00000010\n"
32455 " \"Start\"=dword:00000002\n"
32456 " \"ErrorControl\"=dword:00000001\n"
32457 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
32458 " \"DisplayName\"=\"RHSrvAny\"\n"
32459 " \"ObjectName\"=\"NetworkService\"\n"
32460 " \n"
32461 msgstr ""
32462
32463 # type: verbatim
32464 #. type: verbatim
32465 #: ../tools/virt-win-reg.pl:527
32466 #, no-wrap
32467 msgid ""
32468 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
32469 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
32470 " \"PWD\"=\"c:\\\\Temp\"\n"
32471 " EOF\n"
32472 "\n"
32473 msgstr ""
32474
32475 # type: textblock
32476 #. type: textblock
32477 #: ../tools/virt-win-reg.pl:538
32478 msgid ""
32479 "For use of C<ControlSet001> see the section above in this manual page.  You "
32480 "may need to adjust this according to the control set that is in use by the "
32481 "guest."
32482 msgstr ""
32483
32484 # type: textblock
32485 #. type: textblock
32486 #: ../tools/virt-win-reg.pl:544
32487 msgid ""
32488 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
32489 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
32490 "privileged account."
32491 msgstr ""
32492
32493 # type: textblock
32494 #. type: textblock
32495 #: ../tools/virt-win-reg.pl:550
32496 msgid ""
32497 "For the meaning of the magic numbers, see this Microsoft KB article: "
32498 "L<http://support.microsoft.com/kb/103000>."
32499 msgstr ""
32500
32501 # type: textblock
32502 #. type: textblock
32503 #: ../tools/virt-win-reg.pl:555
32504 msgid "Update the registry:"
32505 msgstr ""
32506
32507 # type: verbatim
32508 #. type: verbatim
32509 #: ../tools/virt-win-reg.pl:557
32510 #, no-wrap
32511 msgid ""
32512 " virt-win-reg --merge WindowsGuest service.reg\n"
32513 "\n"
32514 msgstr ""
32515
32516 # type: textblock
32517 #. type: textblock
32518 #: ../tools/virt-win-reg.pl:561
32519 msgid ""
32520 "Be careful when passing parameters containing C<\\> (backslash) in the "
32521 "shell.  Usually you will have to use 'single quotes' or double backslashes "
32522 "(but not both) to protect them from the shell."
32523 msgstr ""
32524
32525 # type: textblock
32526 #. type: textblock
32527 #: ../tools/virt-win-reg.pl:565
32528 msgid "Paths and value names are case-insensitive."
32529 msgstr ""
32530
32531 # type: textblock
32532 #. type: textblock
32533 #: ../tools/virt-win-reg.pl:574
32534 msgid ""
32535 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
32536 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
32537 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
32538 msgstr ""
32539
32540 # type: textblock
32541 #. type: textblock
32542 #: ../tools/virt-win-reg.pl:589 ../tools/virt-make-fs.pl:550
32543 msgid ""
32544 "When reporting bugs, please enable debugging and capture the I<complete> "
32545 "output:"
32546 msgstr ""
32547
32548 # type: verbatim
32549 #. type: verbatim
32550 #: ../tools/virt-win-reg.pl:592
32551 #, no-wrap
32552 msgid ""
32553 " export LIBGUESTFS_DEBUG=1\n"
32554 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
32555 "\n"
32556 msgstr ""
32557
32558 # type: textblock
32559 #. type: textblock
32560 #: ../tools/virt-win-reg.pl:595
32561 msgid ""
32562 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
32563 "redhat.com/>"
32564 msgstr ""
32565
32566 # type: textblock
32567 #. type: textblock
32568 #: ../tools/virt-win-reg.pl:604 ../tools/virt-resize.pl:1510
32569 #: ../tools/virt-make-fs.pl:565
32570 msgid "Copyright (C) 2010 Red Hat Inc."
32571 msgstr ""
32572
32573 # type: textblock
32574 #. type: textblock
32575 #: ../tools/virt-resize.pl:42
32576 msgid "virt-resize - Resize a virtual machine disk"
32577 msgstr ""
32578
32579 # type: verbatim
32580 #. type: verbatim
32581 #: ../tools/virt-resize.pl:46
32582 #, no-wrap
32583 msgid ""
32584 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
32585 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
32586 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
32587 "\n"
32588 msgstr ""
32589
32590 # type: textblock
32591 #. type: textblock
32592 #: ../tools/virt-resize.pl:52
32593 msgid ""
32594 "Virt-resize is a tool which can resize a virtual machine disk, making it "
32595 "larger or smaller overall, and resizing or deleting any partitions contained "
32596 "within."
32597 msgstr ""
32598
32599 # type: textblock
32600 #. type: textblock
32601 #: ../tools/virt-resize.pl:56
32602 msgid ""
32603 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
32604 "not> be used on live virtual machines - for consistent results, shut the "
32605 "virtual machine down before resizing it."
32606 msgstr ""
32607
32608 # type: textblock
32609 #. type: textblock
32610 #: ../tools/virt-resize.pl:60
32611 msgid ""
32612 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
32613 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
32614 msgstr ""
32615
32616 # type: textblock
32617 #. type: textblock
32618 #: ../tools/virt-resize.pl:66
32619 msgid ""
32620 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
32621 "fill the extra 5GB of space."
32622 msgstr ""
32623
32624 #. type: verbatim
32625 #: ../tools/virt-resize.pl:69
32626 #, no-wrap
32627 msgid ""
32628 " truncate -r olddisk newdisk; truncate -s +5G newdisk\n"
32629 " virt-filesystems --long -h --all -a olddisk\n"
32630 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
32631 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
32632 "\n"
32633 msgstr ""
32634
32635 # type: textblock
32636 #. type: textblock
32637 #: ../tools/virt-resize.pl:74
32638 msgid ""
32639 "As above, but make the /boot partition 200MB bigger, while giving the "
32640 "remaining space to /dev/sda2:"
32641 msgstr ""
32642
32643 # type: verbatim
32644 #. type: verbatim
32645 #: ../tools/virt-resize.pl:77
32646 #, no-wrap
32647 msgid ""
32648 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 olddisk newdisk\n"
32649 "\n"
32650 msgstr ""
32651
32652 # type: textblock
32653 #. type: textblock
32654 #: ../tools/virt-resize.pl:79
32655 msgid "As above, but the output format will be uncompressed qcow2:"
32656 msgstr ""
32657
32658 # type: verbatim
32659 #. type: verbatim
32660 #: ../tools/virt-resize.pl:81
32661 #, no-wrap
32662 msgid ""
32663 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
32664 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
32665 "\n"
32666 msgstr ""
32667
32668 # type: =head1
32669 #. type: =head1
32670 #: ../tools/virt-resize.pl:84
32671 msgid "DETAILED USAGE"
32672 msgstr ""
32673
32674 # type: =head2
32675 #. type: =head2
32676 #: ../tools/virt-resize.pl:86
32677 msgid "EXPANDING A VIRTUAL MACHINE DISK"
32678 msgstr ""
32679
32680 # type: =item
32681 #. type: =item
32682 #: ../tools/virt-resize.pl:90
32683 msgid "1. Shut down the virtual machine"
32684 msgstr ""
32685
32686 # type: =item
32687 #. type: =item
32688 #: ../tools/virt-resize.pl:92
32689 msgid "2. Locate input disk image"
32690 msgstr ""
32691
32692 # type: textblock
32693 #. type: textblock
32694 #: ../tools/virt-resize.pl:94
32695 msgid ""
32696 "Locate the input disk image (ie. the file or device on the host containing "
32697 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
32698 "dumpxml> like this to find the disk image name:"
32699 msgstr ""
32700
32701 # type: verbatim
32702 #. type: verbatim
32703 #: ../tools/virt-resize.pl:98
32704 #, no-wrap
32705 msgid ""
32706 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
32707 " Found 1 nodes:\n"
32708 " -- NODE --\n"
32709 " <source dev=\"/dev/vg/lv_guest\" />\n"
32710 "\n"
32711 msgstr ""
32712
32713 # type: =item
32714 #. type: =item
32715 #: ../tools/virt-resize.pl:103
32716 msgid "3. Look at current sizing"
32717 msgstr ""
32718
32719 # type: textblock
32720 #. type: textblock
32721 #: ../tools/virt-resize.pl:105
32722 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
32723 msgstr ""
32724
32725 # type: verbatim
32726 #. type: verbatim
32727 #: ../tools/virt-resize.pl:108
32728 #, no-wrap
32729 msgid ""
32730 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
32731 " Name       Type       Size  Parent\n"
32732 " /dev/sda1  partition  101M  /dev/sda\n"
32733 " /dev/sda2  partition  7.9G  /dev/sda\n"
32734 " /dev/sda   device     8.0G  -\n"
32735 "\n"
32736 msgstr ""
32737
32738 # type: textblock
32739 #. type: textblock
32740 #: ../tools/virt-resize.pl:114
32741 msgid ""
32742 "(This example is a virtual machine with an 8 GB disk which we would like to "
32743 "expand up to 10 GB)."
32744 msgstr ""
32745
32746 # type: =item
32747 #. type: =item
32748 #: ../tools/virt-resize.pl:117
32749 msgid "4. Create output disk"
32750 msgstr ""
32751
32752 # type: textblock
32753 #. type: textblock
32754 #: ../tools/virt-resize.pl:119
32755 msgid ""
32756 "Virt-resize cannot do in-place disk modifications.  You have to have space "
32757 "to store the resized output disk."
32758 msgstr ""
32759
32760 # type: textblock
32761 #. type: textblock
32762 #: ../tools/virt-resize.pl:122
32763 msgid ""
32764 "To store the resized disk image in a file, create a file of a suitable size:"
32765 msgstr ""
32766
32767 # type: verbatim
32768 #. type: verbatim
32769 #: ../tools/virt-resize.pl:125
32770 #, no-wrap
32771 msgid ""
32772 " # rm -f outdisk\n"
32773 " # truncate -s 10G outdisk\n"
32774 "\n"
32775 msgstr ""
32776
32777 # type: textblock
32778 #. type: textblock
32779 #: ../tools/virt-resize.pl:128
32780 msgid "Or use L<lvcreate(1)> to create a logical volume:"
32781 msgstr ""
32782
32783 # type: verbatim
32784 #. type: verbatim
32785 #: ../tools/virt-resize.pl:130
32786 #, no-wrap
32787 msgid ""
32788 " # lvcreate -L 10G -n lv_name vg_name\n"
32789 "\n"
32790 msgstr ""
32791
32792 # type: textblock
32793 #. type: textblock
32794 #: ../tools/virt-resize.pl:132
32795 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
32796 msgstr ""
32797
32798 # type: verbatim
32799 #. type: verbatim
32800 #: ../tools/virt-resize.pl:134
32801 #, no-wrap
32802 msgid ""
32803 " # virsh pool-list\n"
32804 " # virsh vol-create-as poolname newvol 10G\n"
32805 "\n"
32806 msgstr ""
32807
32808 # type: =item
32809 #. type: =item
32810 #: ../tools/virt-resize.pl:137
32811 msgid "5. Resize"
32812 msgstr ""
32813
32814 # type: textblock
32815 #. type: textblock
32816 #: ../tools/virt-resize.pl:139
32817 msgid ""
32818 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
32819 "file) and the output disk.  The output disk is the one created in the "
32820 "previous step."
32821 msgstr ""
32822
32823 # type: verbatim
32824 #. type: verbatim
32825 #: ../tools/virt-resize.pl:143
32826 #, no-wrap
32827 msgid ""
32828 " # virt-resize indisk outdisk\n"
32829 "\n"
32830 msgstr ""
32831
32832 # type: textblock
32833 #. type: textblock
32834 #: ../tools/virt-resize.pl:145
32835 msgid ""
32836 "This command just copies disk image C<indisk> to disk image C<outdisk> "
32837 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
32838 "larger, then an extra, empty partition is created at the end of the disk "
32839 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
32840 "error."
32841 msgstr ""
32842
32843 # type: textblock
32844 #. type: textblock
32845 #: ../tools/virt-resize.pl:151
32846 msgid ""
32847 "More realistically you'd want to expand existing partitions in the disk "
32848 "image by passing extra options (for the full list see the L</OPTIONS> "
32849 "section below)."
32850 msgstr ""
32851
32852 # type: textblock
32853 #. type: textblock
32854 #: ../tools/virt-resize.pl:155
32855 msgid ""
32856 "L</--expand> is the most useful option.  It expands the named partition "
32857 "within the disk to fill any extra space:"
32858 msgstr ""
32859
32860 # type: verbatim
32861 #. type: verbatim
32862 #: ../tools/virt-resize.pl:158
32863 #, no-wrap
32864 msgid ""
32865 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
32866 "\n"
32867 msgstr ""
32868
32869 # type: textblock
32870 #. type: textblock
32871 #: ../tools/virt-resize.pl:160
32872 msgid ""
32873 "(In this case, an extra partition is I<not> created at the end of the disk, "
32874 "because there will be no unused space)."
32875 msgstr ""
32876
32877 # type: textblock
32878 #. type: textblock
32879 #: ../tools/virt-resize.pl:163
32880 msgid ""
32881 "L</--resize> is the other commonly used option.  The following would "
32882 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
32883 "rest of the available space:"
32884 msgstr ""
32885
32886 # type: verbatim
32887 #. type: verbatim
32888 #: ../tools/virt-resize.pl:167
32889 #, no-wrap
32890 msgid ""
32891 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
32892 "     indisk outdisk\n"
32893 "\n"
32894 msgstr ""
32895
32896 # type: textblock
32897 #. type: textblock
32898 #: ../tools/virt-resize.pl:170
32899 msgid ""
32900 "If the expanded partition in the image contains a filesystem or LVM PV, then "
32901 "if virt-resize knows how, it will resize the contents, the equivalent of "
32902 "calling a command such as L<pvresize(8)>, L<resize2fs(8)> or L<ntfsresize(8)"
32903 ">.  However virt-resize does not know how to resize some filesystems, so you "
32904 "would have to online resize them after booting the guest."
32905 msgstr ""
32906
32907 # type: textblock
32908 #. type: textblock
32909 #: ../tools/virt-resize.pl:177
32910 msgid "Other options are covered below."
32911 msgstr ""
32912
32913 # type: =item
32914 #. type: =item
32915 #: ../tools/virt-resize.pl:179
32916 msgid "6. Test"
32917 msgstr ""
32918
32919 # type: textblock
32920 #. type: textblock
32921 #: ../tools/virt-resize.pl:181
32922 msgid "Thoroughly test the new disk image I<before> discarding the old one."
32923 msgstr ""
32924
32925 # type: textblock
32926 #. type: textblock
32927 #: ../tools/virt-resize.pl:183
32928 msgid "If you are using libvirt, edit the XML to point at the new disk:"
32929 msgstr ""
32930
32931 # type: verbatim
32932 #. type: verbatim
32933 #: ../tools/virt-resize.pl:185
32934 #, no-wrap
32935 msgid ""
32936 " # virsh edit guestname\n"
32937 "\n"
32938 msgstr ""
32939
32940 # type: textblock
32941 #. type: textblock
32942 #: ../tools/virt-resize.pl:187
32943 msgid ""
32944 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
32945 "html#elementsDisks>"
32946 msgstr ""
32947
32948 # type: textblock
32949 #. type: textblock
32950 #: ../tools/virt-resize.pl:190
32951 msgid "Then start up the domain with the new, resized disk:"
32952 msgstr ""
32953
32954 # type: verbatim
32955 #. type: verbatim
32956 #: ../tools/virt-resize.pl:192
32957 #, no-wrap
32958 msgid ""
32959 " # virsh start guestname\n"
32960 "\n"
32961 msgstr ""
32962
32963 # type: textblock
32964 #. type: textblock
32965 #: ../tools/virt-resize.pl:194
32966 msgid ""
32967 "and check that it still works.  See also the L</NOTES> section below for "
32968 "additional information."
32969 msgstr ""
32970
32971 # type: =item
32972 #. type: =item
32973 #: ../tools/virt-resize.pl:197
32974 msgid "7. Resize LVs etc inside the guest"
32975 msgstr ""
32976
32977 # type: textblock
32978 #. type: textblock
32979 #: ../tools/virt-resize.pl:199
32980 msgid "(This can also be done offline using L<guestfish(1)>)"
32981 msgstr ""
32982
32983 # type: textblock
32984 #. type: textblock
32985 #: ../tools/virt-resize.pl:201
32986 msgid ""
32987 "Once the guest has booted you should see the new space available, at least "
32988 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
32989 "may need to resize LVs inside PVs, and also resize filesystem types that "
32990 "virt-resize does not know how to expand."
32991 msgstr ""
32992
32993 # type: =head2
32994 #. type: =head2
32995 #: ../tools/virt-resize.pl:208
32996 msgid "SHRINKING A VIRTUAL MACHINE DISK"
32997 msgstr ""
32998
32999 # type: textblock
33000 #. type: textblock
33001 #: ../tools/virt-resize.pl:210
33002 msgid ""
33003 "Shrinking is somewhat more complex than expanding, and only an overview is "
33004 "given here."
33005 msgstr ""
33006
33007 # type: textblock
33008 #. type: textblock
33009 #: ../tools/virt-resize.pl:213
33010 msgid ""
33011 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
33012 "filesystems).  The user has to shrink content before passing the disk image "
33013 "to virt-resize, and virt-resize will check that the content has been shrunk "
33014 "properly."
33015 msgstr ""
33016
33017 # type: textblock
33018 #. type: textblock
33019 #: ../tools/virt-resize.pl:218
33020 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
33021 msgstr ""
33022
33023 # type: textblock
33024 #. type: textblock
33025 #: ../tools/virt-resize.pl:220
33026 msgid ""
33027 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
33028 "steps 3 and 4 above to allocate a new disk image."
33029 msgstr ""
33030
33031 # type: textblock
33032 #. type: textblock
33033 #: ../tools/virt-resize.pl:223
33034 msgid ""
33035 "Then run virt-resize with any of the C<--shrink> and/or C<--resize> options."
33036 msgstr ""
33037
33038 # type: =head2
33039 #. type: =head2
33040 #: ../tools/virt-resize.pl:226
33041 msgid "IGNORING OR DELETING PARTITIONS"
33042 msgstr ""
33043
33044 # type: textblock
33045 #. type: textblock
33046 #: ../tools/virt-resize.pl:228
33047 msgid ""
33048 "virt-resize also gives a convenient way to ignore or delete partitions when "
33049 "copying from the input disk to the output disk.  Ignoring a partition speeds "
33050 "up the copy where you don't care about the existing contents of a "
33051 "partition.  Deleting a partition removes it completely, but note that it "
33052 "also renumbers any partitions after the one which is deleted, which can "
33053 "leave some guests unbootable."
33054 msgstr ""
33055
33056 # type: =head2
33057 #. type: =head2
33058 #: ../tools/virt-resize.pl:235
33059 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
33060 msgstr ""
33061
33062 # type: textblock
33063 #. type: textblock
33064 #: ../tools/virt-resize.pl:237
33065 msgid ""
33066 "If the input disk is in qcow2 format, then you may prefer that the output is "
33067 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
33068 "the fly.  The output format is simply determined by the format of the empty "
33069 "output container that you provide.  Thus to create qcow2 output, use:"
33070 msgstr ""
33071
33072 # type: verbatim
33073 #. type: verbatim
33074 #: ../tools/virt-resize.pl:243
33075 #, no-wrap
33076 msgid ""
33077 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
33078 "\n"
33079 msgstr ""
33080
33081 # type: textblock
33082 #. type: textblock
33083 #: ../tools/virt-resize.pl:245
33084 msgid "instead of the truncate command (use C<-c> for a compressed disk)."
33085 msgstr ""
33086
33087 # type: textblock
33088 #. type: textblock
33089 #: ../tools/virt-resize.pl:247
33090 msgid "Similarly, to get non-sparse raw output use:"
33091 msgstr ""
33092
33093 # type: verbatim
33094 #. type: verbatim
33095 #: ../tools/virt-resize.pl:249
33096 #, no-wrap
33097 msgid ""
33098 " fallocate -l size outdisk\n"
33099 "\n"
33100 msgstr ""
33101
33102 # type: textblock
33103 #. type: textblock
33104 #: ../tools/virt-resize.pl:251
33105 msgid ""
33106 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
33107 "dev/zero of=outdisk bs=1M count=..>)"
33108 msgstr ""
33109
33110 # type: textblock
33111 #. type: textblock
33112 #: ../tools/virt-resize.pl:264
33113 msgid "Display help."
33114 msgstr ""
33115
33116 # type: =item
33117 #. type: =item
33118 #: ../tools/virt-resize.pl:278
33119 msgid "B<--resize part=size>"
33120 msgstr ""
33121
33122 # type: textblock
33123 #. type: textblock
33124 #: ../tools/virt-resize.pl:280
33125 msgid ""
33126 "Resize the named partition (expanding or shrinking it) so that it has the "
33127 "given size."
33128 msgstr ""
33129
33130 # type: textblock
33131 #. type: textblock
33132 #: ../tools/virt-resize.pl:283
33133 msgid ""
33134 "C<size> can be expressed as an absolute number followed by b/K/M/G/T/P/E to "
33135 "mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Petabytes or "
33136 "Exabytes; or as a percentage of the current size; or as a relative number or "
33137 "percentage.  For example:"
33138 msgstr ""
33139
33140 # type: verbatim
33141 #. type: verbatim
33142 #: ../tools/virt-resize.pl:288
33143 #, no-wrap
33144 msgid ""
33145 " --resize /dev/sda2=10G\n"
33146 "\n"
33147 msgstr ""
33148
33149 # type: verbatim
33150 #. type: verbatim
33151 #: ../tools/virt-resize.pl:290
33152 #, no-wrap
33153 msgid ""
33154 " --resize /dev/sda4=90%\n"
33155 "\n"
33156 msgstr ""
33157
33158 # type: verbatim
33159 #. type: verbatim
33160 #: ../tools/virt-resize.pl:292
33161 #, no-wrap
33162 msgid ""
33163 " --resize /dev/sda2=+1G\n"
33164 "\n"
33165 msgstr ""
33166
33167 # type: verbatim
33168 #. type: verbatim
33169 #: ../tools/virt-resize.pl:294
33170 #, no-wrap
33171 msgid ""
33172 " --resize /dev/sda2=-200M\n"
33173 "\n"
33174 msgstr ""
33175
33176 # type: verbatim
33177 #. type: verbatim
33178 #: ../tools/virt-resize.pl:296
33179 #, no-wrap
33180 msgid ""
33181 " --resize /dev/sda1=+128K\n"
33182 "\n"
33183 msgstr ""
33184
33185 # type: verbatim
33186 #. type: verbatim
33187 #: ../tools/virt-resize.pl:298
33188 #, no-wrap
33189 msgid ""
33190 " --resize /dev/sda1=+10%\n"
33191 "\n"
33192 msgstr ""
33193
33194 # type: verbatim
33195 #. type: verbatim
33196 #: ../tools/virt-resize.pl:300
33197 #, no-wrap
33198 msgid ""
33199 " --resize /dev/sda1=-10%\n"
33200 "\n"
33201 msgstr ""
33202
33203 # type: textblock
33204 #. type: textblock
33205 #: ../tools/virt-resize.pl:302
33206 msgid ""
33207 "You can increase the size of any partition.  Virt-resize will expand the "
33208 "direct content of the partition if it knows how (see C<--expand> below)."
33209 msgstr ""
33210
33211 # type: textblock
33212 #. type: textblock
33213 #: ../tools/virt-resize.pl:306
33214 msgid ""
33215 "You can only I<decrease> the size of partitions that contain filesystems or "
33216 "PVs which have already been shrunk.  Virt-resize will check this has been "
33217 "done before proceeding, or else will print an error (see also C<--resize-"
33218 "force>)."
33219 msgstr ""
33220
33221 # type: textblock
33222 #. type: textblock
33223 #: ../tools/virt-resize.pl:311 ../tools/virt-resize.pl:403
33224 #: ../tools/virt-resize.pl:420
33225 msgid "You can give this option multiple times."
33226 msgstr ""
33227
33228 # type: =item
33229 #. type: =item
33230 #: ../tools/virt-resize.pl:317
33231 msgid "B<--resize-force part=size>"
33232 msgstr ""
33233
33234 # type: textblock
33235 #. type: textblock
33236 #: ../tools/virt-resize.pl:319
33237 msgid ""
33238 "This is the same as C<--resize> except that it will let you decrease the "
33239 "size of any partition.  Generally this means you will lose any data which "
33240 "was at the end of the partition you shrink, but you may not care about that "
33241 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
33242 "as a swap partition)."
33243 msgstr ""
33244
33245 # type: textblock
33246 #. type: textblock
33247 #: ../tools/virt-resize.pl:325
33248 msgid "See also the C<--ignore> option."
33249 msgstr ""
33250
33251 # type: =item
33252 #. type: =item
33253 #: ../tools/virt-resize.pl:331
33254 msgid "B<--expand part>"
33255 msgstr ""
33256
33257 # type: textblock
33258 #. type: textblock
33259 #: ../tools/virt-resize.pl:333
33260 msgid ""
33261 "Expand the named partition so it uses up all extra space (space left over "
33262 "after any other resize changes that you request have been done)."
33263 msgstr ""
33264
33265 # type: textblock
33266 #. type: textblock
33267 #: ../tools/virt-resize.pl:336
33268 msgid ""
33269 "If virt-resize knows how, it will expand the direct content of the "
33270 "partition.  For example, if the partition is an LVM PV, it will expand the "
33271 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
33272 "content it doesn't know about alone."
33273 msgstr ""
33274
33275 # type: textblock
33276 #. type: textblock
33277 #: ../tools/virt-resize.pl:341
33278 msgid "Currently virt-resize can resize:"
33279 msgstr ""
33280
33281 # type: textblock
33282 #. type: textblock
33283 #: ../tools/virt-resize.pl:347
33284 msgid ""
33285 "ext2, ext3 and ext4 filesystems when they are contained directly inside a "
33286 "partition."
33287 msgstr ""
33288
33289 # type: textblock
33290 #. type: textblock
33291 #: ../tools/virt-resize.pl:352
33292 msgid ""
33293 "NTFS filesystems contained directly in a partition, if libguestfs was "
33294 "compiled with support for NTFS."
33295 msgstr ""
33296
33297 # type: textblock
33298 #. type: textblock
33299 #: ../tools/virt-resize.pl:355
33300 msgid ""
33301 "The filesystem must have been shut down consistently last time it was used.  "
33302 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
33303 "consistency check, so at the first boot after resizing Windows will check "
33304 "the disk."
33305 msgstr ""
33306
33307 # type: textblock
33308 #. type: textblock
33309 #: ../tools/virt-resize.pl:362
33310 msgid ""
33311 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
33312 "inside the PV, but see the C<--LV-expand> option.  The user could also "
33313 "resize LVs as desired after boot."
33314 msgstr ""
33315
33316 # type: textblock
33317 #. type: textblock
33318 #: ../tools/virt-resize.pl:368 ../tools/virt-resize.pl:390
33319 msgid "Note that you cannot use C<--expand> and C<--shrink> together."
33320 msgstr ""
33321
33322 # type: =item
33323 #. type: =item
33324 #: ../tools/virt-resize.pl:374
33325 msgid "B<--shrink part>"
33326 msgstr ""
33327
33328 # type: textblock
33329 #. type: textblock
33330 #: ../tools/virt-resize.pl:376
33331 msgid ""
33332 "Shrink the named partition until the overall disk image fits in the "
33333 "destination.  The named partition B<must> contain a filesystem or PV which "
33334 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
33335 "online tools).  Virt-resize will check this and give an error if it has not "
33336 "been done."
33337 msgstr ""
33338
33339 # type: textblock
33340 #. type: textblock
33341 #: ../tools/virt-resize.pl:382
33342 msgid ""
33343 "The amount by which the overall disk must be shrunk (after carrying out all "
33344 "other operations requested by the user) is called the \"deficit\".  For "
33345 "example, a straight copy (assume no other operations)  from a 5GB disk image "
33346 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
33347 "would give an error unless the user specified a partition to shrink and that "
33348 "partition had more than a gigabyte of free space."
33349 msgstr ""
33350
33351 # type: =item
33352 #. type: =item
33353 #: ../tools/virt-resize.pl:396
33354 msgid "B<--ignore part>"
33355 msgstr ""
33356
33357 # type: textblock
33358 #. type: textblock
33359 #: ../tools/virt-resize.pl:398
33360 msgid ""
33361 "Ignore the named partition.  Effectively this means the partition is "
33362 "allocated on the destination disk, but the content is not copied across from "
33363 "the source disk.  The content of the partition will be blank (all zero "
33364 "bytes)."
33365 msgstr ""
33366
33367 # type: =item
33368 #. type: =item
33369 #: ../tools/virt-resize.pl:409
33370 msgid "B<--delete part>"
33371 msgstr ""
33372
33373 # type: textblock
33374 #. type: textblock
33375 #: ../tools/virt-resize.pl:411
33376 msgid ""
33377 "Delete the named partition.  It would be more accurate to describe this as "
33378 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
33379 "the original disk image is left intact."
33380 msgstr ""
33381
33382 # type: textblock
33383 #. type: textblock
33384 #: ../tools/virt-resize.pl:415
33385 msgid ""
33386 "Note that when you delete a partition, then anything contained in the "
33387 "partition is also deleted.  Furthermore, this causes any partitions that "
33388 "come after to be I<renumbered>, which can easily make your guest unbootable."
33389 msgstr ""
33390
33391 # type: =item
33392 #. type: =item
33393 #: ../tools/virt-resize.pl:426
33394 msgid "B<--LV-expand logvol>"
33395 msgstr ""
33396
33397 # type: textblock
33398 #. type: textblock
33399 #: ../tools/virt-resize.pl:428
33400 msgid ""
33401 "This takes the logical volume and, as a final step, expands it to fill all "
33402 "the space available in its volume group.  A typical usage, assuming a Linux "
33403 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
33404 "lv_root> would be:"
33405 msgstr ""
33406
33407 # type: verbatim
33408 #. type: verbatim
33409 #: ../tools/virt-resize.pl:433
33410 #, no-wrap
33411 msgid ""
33412 " virt-resize indisk outdisk \\\n"
33413 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
33414 "\n"
33415 msgstr ""
33416
33417 # type: textblock
33418 #. type: textblock
33419 #: ../tools/virt-resize.pl:436
33420 msgid ""
33421 "This would first expand the partition (and PV), and then expand the root "
33422 "device to fill the extra space in the PV."
33423 msgstr ""
33424
33425 # type: textblock
33426 #. type: textblock
33427 #: ../tools/virt-resize.pl:439
33428 msgid ""
33429 "The contents of the LV are also resized if virt-resize knows how to do "
33430 "that.  You can stop virt-resize from trying to expand the content by using "
33431 "the option C<--no-expand-content>."
33432 msgstr ""
33433
33434 # type: textblock
33435 #. type: textblock
33436 #: ../tools/virt-resize.pl:443
33437 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
33438 msgstr ""
33439
33440 # type: textblock
33441 #. type: textblock
33442 #: ../tools/virt-resize.pl:446
33443 msgid ""
33444 "You can give this option multiple times, I<but> it doesn't make sense to do "
33445 "this unless the logical volumes you specify are all in different volume "
33446 "groups."
33447 msgstr ""
33448
33449 # type: =item
33450 #. type: =item
33451 #: ../tools/virt-resize.pl:454
33452 msgid "B<--no-copy-boot-loader>"
33453 msgstr ""
33454
33455 # type: textblock
33456 #. type: textblock
33457 #: ../tools/virt-resize.pl:456
33458 msgid ""
33459 "By default, virt-resize copies over some sectors at the start of the disk "
33460 "(up to the beginning of the first partition).  Commonly these sectors "
33461 "contain the Master Boot Record (MBR) and the boot loader, and are required "
33462 "in order for the guest to boot correctly."
33463 msgstr ""
33464
33465 # type: textblock
33466 #. type: textblock
33467 #: ../tools/virt-resize.pl:461
33468 msgid ""
33469 "If you specify this flag, then this initial copy is not done.  You may need "
33470 "to reinstall the boot loader in this case."
33471 msgstr ""
33472
33473 # type: =item
33474 #. type: =item
33475 #: ../tools/virt-resize.pl:469
33476 msgid "B<--no-extra-partition>"
33477 msgstr ""
33478
33479 # type: textblock
33480 #. type: textblock
33481 #: ../tools/virt-resize.pl:471
33482 msgid ""
33483 "By default, virt-resize creates an extra partition if there is any extra, "
33484 "unused space after all resizing has happened.  Use this option to prevent "
33485 "the extra partition from being created.  If you do this then the extra space "
33486 "will be inaccessible until you run fdisk, parted, or some other partitioning "
33487 "tool in the guest."
33488 msgstr ""
33489
33490 # type: textblock
33491 #. type: textblock
33492 #: ../tools/virt-resize.pl:477
33493 msgid ""
33494 "Note that if the surplus space is smaller than 10 MB, no extra partition "
33495 "will be created."
33496 msgstr ""
33497
33498 # type: =item
33499 #. type: =item
33500 #: ../tools/virt-resize.pl:484
33501 msgid "B<--no-expand-content>"
33502 msgstr ""
33503
33504 # type: textblock
33505 #. type: textblock
33506 #: ../tools/virt-resize.pl:486
33507 msgid ""
33508 "By default, virt-resize will try to expand the direct contents of "
33509 "partitions, if it knows how (see C<--expand> option above)."
33510 msgstr ""
33511
33512 # type: textblock
33513 #. type: textblock
33514 #: ../tools/virt-resize.pl:489
33515 msgid ""
33516 "If you give the C<--no-expand-content> option then virt-resize will not "
33517 "attempt this."
33518 msgstr ""
33519
33520 # type: =item
33521 #. type: =item
33522 #: ../tools/virt-resize.pl:496
33523 msgid "B<-d> | B<--debug>"
33524 msgstr ""
33525
33526 # type: =item
33527 #. type: =item
33528 #: ../tools/virt-resize.pl:504
33529 msgid "B<-n> | B<--dryrun>"
33530 msgstr ""
33531
33532 # type: textblock
33533 #. type: textblock
33534 #: ../tools/virt-resize.pl:506
33535 msgid "Print a summary of what would be done, but don't do anything."
33536 msgstr ""
33537
33538 # type: =item
33539 #. type: =item
33540 #: ../tools/virt-resize.pl:512
33541 msgid "B<-q> | B<--quiet>"
33542 msgstr ""
33543
33544 # type: textblock
33545 #. type: textblock
33546 #: ../tools/virt-resize.pl:514
33547 msgid "Don't print the summary."
33548 msgstr ""
33549
33550 # type: textblock
33551 #. type: textblock
33552 #: ../tools/virt-resize.pl:522
33553 msgid ""
33554 "Specify the format of the input disk image.  If this flag is not given then "
33555 "it is auto-detected from the image itself."
33556 msgstr ""
33557
33558 # type: textblock
33559 #. type: textblock
33560 #: ../tools/virt-resize.pl:528
33561 msgid ""
33562 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
33563 "AND NON-SPARSE RAW FORMATS>."
33564 msgstr ""
33565
33566 # type: =item
33567 #. type: =item
33568 #: ../tools/virt-resize.pl:535
33569 msgid "B<--output-format> raw"
33570 msgstr ""
33571
33572 # type: textblock
33573 #. type: textblock
33574 #: ../tools/virt-resize.pl:537
33575 msgid ""
33576 "Specify the format of the output disk image.  If this flag is not given then "
33577 "it is auto-detected from the image itself."
33578 msgstr ""
33579
33580 # type: textblock
33581 #. type: textblock
33582 #: ../tools/virt-resize.pl:543
33583 msgid ""
33584 "Note that you still need to create the output disk with the right format.  "
33585 "See L</QCOW2 AND NON-SPARSE RAW FORMATS>."
33586 msgstr ""
33587
33588 # type: =head1
33589 #. type: =head1
33590 #: ../tools/virt-resize.pl:1419
33591 msgid "NOTES"
33592 msgstr ""
33593
33594 # type: =head2
33595 #. type: =head2
33596 #: ../tools/virt-resize.pl:1421
33597 msgid "\"Partition 1 does not end on cylinder boundary.\""
33598 msgstr ""
33599
33600 # type: textblock
33601 #. type: textblock
33602 #: ../tools/virt-resize.pl:1423
33603 msgid ""
33604 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
33605 "means the partitions will not be aligned to the ancient CHS geometry.  "
33606 "However CHS geometry is meaningless for disks manufactured since the early "
33607 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
33608 "cylinders is not required by any modern operating system."
33609 msgstr ""
33610
33611 # type: =head2
33612 #. type: =head2
33613 #: ../tools/virt-resize.pl:1430
33614 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
33615 msgstr ""
33616
33617 # type: textblock
33618 #. type: textblock
33619 #: ../tools/virt-resize.pl:1432
33620 msgid ""
33621 "In Windows Vista and later versions, Microsoft switched to using a separate "
33622 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
33623 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
33624 "the boot partition.  Doing so seems to break the guest completely.  However "
33625 "expanding the second partition (ie. C: drive) should work."
33626 msgstr ""
33627
33628 # type: textblock
33629 #. type: textblock
33630 #: ../tools/virt-resize.pl:1439
33631 msgid ""
33632 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
33633 "NTFS partitions have been expanded.  This is just a safety check and (unless "
33634 "it find errors) is nothing to worry about."
33635 msgstr ""
33636
33637 # type: =head2
33638 #. type: =head2
33639 #: ../tools/virt-resize.pl:1443
33640 msgid "GUEST BOOT STUCK AT \"GRUB\""
33641 msgstr ""
33642
33643 # type: textblock
33644 #. type: textblock
33645 #: ../tools/virt-resize.pl:1445
33646 msgid ""
33647 "If a Linux guest does not boot after resizing, and the boot is stuck after "
33648 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
33649 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
33650 "although we think is to do with partition alignment."
33651 msgstr ""
33652
33653 # type: verbatim
33654 #. type: verbatim
33655 #: ../tools/virt-resize.pl:1450
33656 #, no-wrap
33657 msgid ""
33658 " guestfish -i -a newdisk\n"
33659 " ><fs> cat /boot/grub/device.map\n"
33660 " # check the contents of this file are sensible or\n"
33661 " # edit the file if necessary\n"
33662 " ><fs> grub-install / /dev/vda\n"
33663 " ><fs> exit\n"
33664 "\n"
33665 msgstr ""
33666
33667 # type: textblock
33668 #. type: textblock
33669 #: ../tools/virt-resize.pl:1457
33670 msgid ""
33671 "For more flexible guest reconfiguration, including if you need to specify "
33672 "other parameters to grub-install, use L<virt-rescue(1)>."
33673 msgstr ""
33674
33675 # type: =head1
33676 #. type: =head1
33677 #: ../tools/virt-resize.pl:1460
33678 msgid "ALTERNATIVE TOOLS"
33679 msgstr ""
33680
33681 # type: textblock
33682 #. type: textblock
33683 #: ../tools/virt-resize.pl:1462
33684 msgid ""
33685 "There are several proprietary tools for resizing partitions.  We won't "
33686 "mention any here."
33687 msgstr ""
33688
33689 # type: textblock
33690 #. type: textblock
33691 #: ../tools/virt-resize.pl:1465
33692 msgid ""
33693 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
33694 "operations on disk images.  They can resize and move partitions, but I don't "
33695 "think they can do anything with the contents, and they certainly don't "
33696 "understand LVM."
33697 msgstr ""
33698
33699 # type: textblock
33700 #. type: textblock
33701 #: ../tools/virt-resize.pl:1470
33702 msgid ""
33703 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
33704 "but at a much lower level.  You will probably end up hand-calculating sector "
33705 "offsets, which is something that virt-resize was designed to avoid.  If you "
33706 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
33707 "C<--debug> flag."
33708 msgstr ""
33709
33710 # type: textblock
33711 #. type: textblock
33712 #: ../tools/virt-resize.pl:1485
33713 msgid ""
33714 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
33715 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
33716 "L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, L<grub(8)>, "
33717 "L<grub-install(8)>, L<virt-rescue(1)>, L<Sys::Guestfs(3)>, L<http://"
33718 "libguestfs.org/>."
33719 msgstr ""
33720
33721 # type: textblock
33722 #. type: textblock
33723 #: ../tools/virt-list-filesystems.pl:32
33724 msgid ""
33725 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
33726 msgstr ""
33727
33728 # type: verbatim
33729 #. type: verbatim
33730 #: ../tools/virt-list-filesystems.pl:36
33731 #, no-wrap
33732 msgid ""
33733 " virt-list-filesystems [--options] domname\n"
33734 "\n"
33735 msgstr ""
33736
33737 # type: verbatim
33738 #. type: verbatim
33739 #: ../tools/virt-list-filesystems.pl:38
33740 #, no-wrap
33741 msgid ""
33742 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
33743 "\n"
33744 msgstr ""
33745
33746 # type: textblock
33747 #. type: textblock
33748 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
33749 msgid ""
33750 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
33751 "replacement."
33752 msgstr ""
33753
33754 # type: textblock
33755 #. type: textblock
33756 #: ../tools/virt-list-filesystems.pl:45
33757 msgid ""
33758 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
33759 "are contained in a virtual machine or disk image."
33760 msgstr ""
33761
33762 # type: textblock
33763 #. type: textblock
33764 #: ../tools/virt-list-filesystems.pl:49
33765 msgid ""
33766 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
33767 "functionality.  For more complex cases you should look at the L<guestfish(1)"
33768 "> tool."
33769 msgstr ""
33770
33771 # type: =item
33772 #. type: =item
33773 #: ../tools/virt-list-filesystems.pl:106 ../tools/virt-list-partitions.pl:115
33774 msgid "B<-l> | B<--long>"
33775 msgstr ""
33776
33777 # type: textblock
33778 #. type: textblock
33779 #: ../tools/virt-list-filesystems.pl:108
33780 msgid ""
33781 "With this option, C<virt-list-filesystems> displays the type of each "
33782 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
33783 msgstr ""
33784
33785 # type: =item
33786 #. type: =item
33787 #: ../tools/virt-list-filesystems.pl:115
33788 msgid "B<-a> | B<--all>"
33789 msgstr ""
33790
33791 # type: textblock
33792 #. type: textblock
33793 #: ../tools/virt-list-filesystems.pl:117
33794 msgid ""
33795 "Normally we only show mountable filesystems.  If this option is given then "
33796 "swap devices are shown too."
33797 msgstr ""
33798
33799 # type: textblock
33800 #. type: textblock
33801 #: ../tools/virt-list-filesystems.pl:191
33802 msgid ""
33803 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
33804 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
33805 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
33806 msgstr ""
33807
33808 # type: textblock
33809 #. type: textblock
33810 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-tar.pl:307
33811 msgid "Copyright (C) 2009 Red Hat Inc."
33812 msgstr ""
33813
33814 # type: textblock
33815 #. type: textblock
33816 #: ../tools/virt-tar.pl:33
33817 msgid "virt-tar - Extract or upload files to a virtual machine"
33818 msgstr ""
33819
33820 # type: verbatim
33821 #. type: verbatim
33822 #: ../tools/virt-tar.pl:37
33823 #, no-wrap
33824 msgid ""
33825 " virt-tar [--options] -x domname directory tarball\n"
33826 "\n"
33827 msgstr ""
33828
33829 # type: verbatim
33830 #. type: verbatim
33831 #: ../tools/virt-tar.pl:39
33832 #, no-wrap
33833 msgid ""
33834 " virt-tar [--options] -u domname tarball directory\n"
33835 "\n"
33836 msgstr ""
33837
33838 # type: verbatim
33839 #. type: verbatim
33840 #: ../tools/virt-tar.pl:41
33841 #, no-wrap
33842 msgid ""
33843 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
33844 "\n"
33845 msgstr ""
33846
33847 # type: verbatim
33848 #. type: verbatim
33849 #: ../tools/virt-tar.pl:43
33850 #, no-wrap
33851 msgid ""
33852 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
33853 "\n"
33854 msgstr ""
33855
33856 #. type: textblock
33857 #: ../tools/virt-tar.pl:47
33858 msgid ""
33859 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
33860 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
33861 msgstr ""
33862
33863 # type: textblock
33864 #. type: textblock
33865 #: ../tools/virt-tar.pl:52
33866 msgid "Download C</home> from the VM into a local tarball:"
33867 msgstr ""
33868
33869 # type: verbatim
33870 #. type: verbatim
33871 #: ../tools/virt-tar.pl:54
33872 #, no-wrap
33873 msgid ""
33874 " virt-tar -x domname /home home.tar\n"
33875 "\n"
33876 msgstr ""
33877
33878 # type: verbatim
33879 #. type: verbatim
33880 #: ../tools/virt-tar.pl:56
33881 #, no-wrap
33882 msgid ""
33883 " virt-tar -zx domname /home home.tar.gz\n"
33884 "\n"
33885 msgstr ""
33886
33887 # type: textblock
33888 #. type: textblock
33889 #: ../tools/virt-tar.pl:58
33890 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
33891 msgstr ""
33892
33893 # type: verbatim
33894 #. type: verbatim
33895 #: ../tools/virt-tar.pl:60
33896 #, no-wrap
33897 msgid ""
33898 " virt-tar -u domname uploadstuff.tar /tmp\n"
33899 "\n"
33900 msgstr ""
33901
33902 # type: verbatim
33903 #. type: verbatim
33904 #: ../tools/virt-tar.pl:62
33905 #, no-wrap
33906 msgid ""
33907 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
33908 "\n"
33909 msgstr ""
33910
33911 # type: textblock
33912 #. type: textblock
33913 #: ../tools/virt-tar.pl:66
33914 msgid ""
33915 "You must I<not> use C<virt-tar> with the C<-u> option (upload) on live "
33916 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
33917 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
33918 msgstr ""
33919
33920 # type: textblock
33921 #. type: textblock
33922 #: ../tools/virt-tar.pl:71
33923 msgid ""
33924 "You can use C<-x> (extract) on live virtual machines, but you might get "
33925 "inconsistent results or errors if there is filesystem activity inside the "
33926 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
33927 "work, but the only way to guarantee consistent results is if the virtual "
33928 "machine is shut down."
33929 msgstr ""
33930
33931 # type: textblock
33932 #. type: textblock
33933 #: ../tools/virt-tar.pl:79
33934 msgid ""
33935 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
33936 "parts of a guest filesystem.  There are many possibilities: making backups, "
33937 "uploading data files, snooping on guest activity, fixing or customizing "
33938 "guests, etc."
33939 msgstr ""
33940
33941 # type: textblock
33942 #. type: textblock
33943 #: ../tools/virt-tar.pl:84
33944 msgid ""
33945 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
33946 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
33947 "should look at the L<guestfish(1)> tool."
33948 msgstr ""
33949
33950 # type: textblock
33951 #. type: textblock
33952 #: ../tools/virt-tar.pl:88
33953 msgid ""
33954 "There are two modes of operation: C<-x> (eXtract) downloads a directory and "
33955 "its contents (recursively) from the virtual machine into a local tarball.  "
33956 "C<-u> uploads from a local tarball, unpacking it into a directory inside the "
33957 "virtual machine.  You cannot use these two options together."
33958 msgstr ""
33959
33960 # type: textblock
33961 #. type: textblock
33962 #: ../tools/virt-tar.pl:94
33963 msgid ""
33964 "In addition, you may need to use the C<-z> (gZip) option to enable "
33965 "compression.  When uploading, you have to specify C<-z> if the upload file "
33966 "is compressed because virt-tar won't detect this on its own."
33967 msgstr ""
33968
33969 # type: textblock
33970 #. type: textblock
33971 #: ../tools/virt-tar.pl:98
33972 msgid ""
33973 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
33974 "example it cannot do PKZip files or bzip2 compression.  If you want that "
33975 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
33976 "the L<libguestfs(3)> API)."
33977 msgstr ""
33978
33979 # type: =item
33980 #. type: =item
33981 #: ../tools/virt-tar.pl:156
33982 msgid "B<-x> | B<--extract> | B<--download>"
33983 msgstr ""
33984
33985 # type: =item
33986 #. type: =item
33987 #: ../tools/virt-tar.pl:158
33988 msgid "B<-u> | B<--upload>"
33989 msgstr ""
33990
33991 # type: textblock
33992 #. type: textblock
33993 #: ../tools/virt-tar.pl:160
33994 msgid ""
33995 "Use C<-x> to extract (download) a directory from a virtual machine to a "
33996 "local tarball."
33997 msgstr ""
33998
33999 # type: textblock
34000 #. type: textblock
34001 #: ../tools/virt-tar.pl:163
34002 msgid ""
34003 "Use C<-u> to upload and unpack from a local tarball into a virtual machine.  "
34004 "Please read the L</WARNING> section above before using this option."
34005 msgstr ""
34006
34007 # type: textblock
34008 #. type: textblock
34009 #: ../tools/virt-tar.pl:167
34010 msgid "You must specify exactly one of these options."
34011 msgstr ""
34012
34013 # type: =item
34014 #. type: =item
34015 #: ../tools/virt-tar.pl:173
34016 msgid "B<-z> | B<--gzip>"
34017 msgstr ""
34018
34019 # type: textblock
34020 #. type: textblock
34021 #: ../tools/virt-tar.pl:175
34022 msgid "Specify that the input or output tarball is gzip-compressed."
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../tools/virt-tar.pl:288
34027 msgid ""
34028 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
34029 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
34030 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
34031 "org/>."
34032 msgstr ""
34033
34034 # type: textblock
34035 #. type: textblock
34036 #: ../tools/virt-make-fs.pl:37
34037 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
34038 msgstr ""
34039
34040 # type: verbatim
34041 #. type: verbatim
34042 #: ../tools/virt-make-fs.pl:41
34043 #, no-wrap
34044 msgid ""
34045 " virt-make-fs [--options] input.tar output.img\n"
34046 "\n"
34047 msgstr ""
34048
34049 # type: verbatim
34050 #. type: verbatim
34051 #: ../tools/virt-make-fs.pl:43
34052 #, no-wrap
34053 msgid ""
34054 " virt-make-fs [--options] input.tar.gz output.img\n"
34055 "\n"
34056 msgstr ""
34057
34058 # type: verbatim
34059 #. type: verbatim
34060 #: ../tools/virt-make-fs.pl:45
34061 #, no-wrap
34062 msgid ""
34063 " virt-make-fs [--options] directory output.img\n"
34064 "\n"
34065 msgstr ""
34066
34067 # type: textblock
34068 #. type: textblock
34069 #: ../tools/virt-make-fs.pl:49
34070 msgid ""
34071 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
34072 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
34073 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
34074 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
34075 "you want to attach these filesystems to existing virtual machines (eg. to "
34076 "import large amounts of read-only data to a VM)."
34077 msgstr ""
34078
34079 # type: textblock
34080 #. type: textblock
34081 #: ../tools/virt-make-fs.pl:57
34082 msgid "Basic usage is:"
34083 msgstr ""
34084
34085 # type: verbatim
34086 #. type: verbatim
34087 #: ../tools/virt-make-fs.pl:59
34088 #, no-wrap
34089 msgid ""
34090 " virt-make-fs input output\n"
34091 "\n"
34092 msgstr ""
34093
34094 # type: textblock
34095 #. type: textblock
34096 #: ../tools/virt-make-fs.pl:61
34097 msgid ""
34098 "where C<input> is either a directory containing files that you want to add, "
34099 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
34100 "C<output> is a disk image.  The input type is detected automatically.  The "
34101 "output disk image defaults to a raw ext2 image unless you specify extra "
34102 "flags (see L</OPTIONS> below)."
34103 msgstr ""
34104
34105 # type: =head2
34106 #. type: =head2
34107 #: ../tools/virt-make-fs.pl:67
34108 msgid "EXTRA SPACE"
34109 msgstr ""
34110
34111 # type: textblock
34112 #. type: textblock
34113 #: ../tools/virt-make-fs.pl:69
34114 msgid ""
34115 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
34116 "the files that it contains, but might have extra space.  Depending on how "
34117 "you are going to use the output, you might think this extra space is wasted "
34118 "and want to minimize it, or you might want to leave space so that more files "
34119 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
34120 "but you can use the C<--size> flag to leave space in the filesystem if you "
34121 "want it."
34122 msgstr ""
34123
34124 # type: textblock
34125 #. type: textblock
34126 #: ../tools/virt-make-fs.pl:77
34127 msgid ""
34128 "An alternative way to leave extra space but not make the output image any "
34129 "bigger is to use an alternative disk image format (instead of the default "
34130 "\"raw\" format).  Using C<--format=qcow2> will use the native QEmu/KVM qcow2 "
34131 "image format (check your hypervisor supports this before using it).  This "
34132 "allows you to choose a large C<--size> but the extra space won't actually be "
34133 "allocated in the image until you try to store something in it."
34134 msgstr ""
34135
34136 # type: textblock
34137 #. type: textblock
34138 #: ../tools/virt-make-fs.pl:85
34139 msgid ""
34140 "Don't forget that you can also use local commands including L<resize2fs(8)> "
34141 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-"
34142 "resize to build another image from scratch."
34143 msgstr ""
34144
34145 # type: =head3
34146 #. type: =head3
34147 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
34148 #: ../tools/virt-make-fs.pl:142
34149 msgid "EXAMPLE"
34150 msgstr ""
34151
34152 # type: verbatim
34153 #. type: verbatim
34154 #: ../tools/virt-make-fs.pl:91
34155 #, no-wrap
34156 msgid ""
34157 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
34158 "\n"
34159 msgstr ""
34160
34161 # type: =head2
34162 #. type: =head2
34163 #: ../tools/virt-make-fs.pl:93
34164 msgid "FILESYSTEM TYPE"
34165 msgstr ""
34166
34167 # type: textblock
34168 #. type: textblock
34169 #: ../tools/virt-make-fs.pl:95
34170 msgid ""
34171 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
34172 "libguestfs supports can be used (but I<not> read-only formats like "
34173 "ISO9660).  Here are some of the more common choices:"
34174 msgstr ""
34175
34176 # type: =item
34177 #. type: =item
34178 #: ../tools/virt-make-fs.pl:101
34179 msgid "I<ext3>"
34180 msgstr ""
34181
34182 # type: textblock
34183 #. type: textblock
34184 #: ../tools/virt-make-fs.pl:103
34185 msgid ""
34186 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
34187 "you are not going to use the filesystem in a way that requires the journal, "
34188 "then this is just wasted overhead."
34189 msgstr ""
34190
34191 # type: =item
34192 #. type: =item
34193 #: ../tools/virt-make-fs.pl:107
34194 msgid "I<ntfs> or I<vfat>"
34195 msgstr ""
34196
34197 # type: textblock
34198 #. type: textblock
34199 #: ../tools/virt-make-fs.pl:109
34200 msgid "Useful if exporting data to a Windows guest."
34201 msgstr ""
34202
34203 # type: textblock
34204 #. type: textblock
34205 #: ../tools/virt-make-fs.pl:111
34206 msgid ""
34207 "I<Note for vfat>: The tar archive or local directory must only contain files "
34208 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
34209 "program running within libguestfs is unable to change the ownership of non-"
34210 "root files, since vfat itself does not support this."
34211 msgstr ""
34212
34213 # type: =item
34214 #. type: =item
34215 #: ../tools/virt-make-fs.pl:116
34216 msgid "I<minix>"
34217 msgstr ""
34218
34219 # type: textblock
34220 #. type: textblock
34221 #: ../tools/virt-make-fs.pl:118
34222 msgid ""
34223 "Lower overhead than C<ext2>, but certain limitations on filename length and "
34224 "total filesystem size."
34225 msgstr ""
34226
34227 # type: verbatim
34228 #. type: verbatim
34229 #: ../tools/virt-make-fs.pl:125
34230 #, no-wrap
34231 msgid ""
34232 " virt-make-fs --type=minix input minixfs.img\n"
34233 "\n"
34234 msgstr ""
34235
34236 # type: =head2
34237 #. type: =head2
34238 #: ../tools/virt-make-fs.pl:127
34239 msgid "TO PARTITION OR NOT TO PARTITION"
34240 msgstr ""
34241
34242 # type: textblock
34243 #. type: textblock
34244 #: ../tools/virt-make-fs.pl:129
34245 msgid "Optionally virt-make-fs can add a partition table to the output disk."
34246 msgstr ""
34247
34248 # type: textblock
34249 #. type: textblock
34250 #: ../tools/virt-make-fs.pl:131
34251 msgid ""
34252 "Adding a partition can make the disk image more compatible with certain "
34253 "virtualized operating systems which don't expect to see a filesystem "
34254 "directly located on a block device (Linux doesn't care and will happily "
34255 "handle both types)."
34256 msgstr ""
34257
34258 # type: textblock
34259 #. type: textblock
34260 #: ../tools/virt-make-fs.pl:136
34261 msgid ""
34262 "On the other hand, if you have a partition table then the output image is no "
34263 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
34264 "directly on a partitioned disk image.  (However libguestfs tools such as "
34265 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
34266 msgstr ""
34267
34268 # type: textblock
34269 #. type: textblock
34270 #: ../tools/virt-make-fs.pl:144
34271 msgid "Add an MBR partition:"
34272 msgstr ""
34273
34274 # type: verbatim
34275 #. type: verbatim
34276 #: ../tools/virt-make-fs.pl:146
34277 #, no-wrap
34278 msgid ""
34279 " virt-make-fs --partition -- input disk.img\n"
34280 "\n"
34281 msgstr ""
34282
34283 # type: textblock
34284 #. type: textblock
34285 #: ../tools/virt-make-fs.pl:148
34286 msgid ""
34287 "If the output disk image could be terabyte-sized or larger, it's better to "
34288 "use an EFI/GPT-compatible partition table:"
34289 msgstr ""
34290
34291 # type: verbatim
34292 #. type: verbatim
34293 #: ../tools/virt-make-fs.pl:151
34294 #, no-wrap
34295 msgid ""
34296 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
34297 "\n"
34298 msgstr ""
34299
34300 # type: textblock
34301 #. type: textblock
34302 #: ../tools/virt-make-fs.pl:179
34303 msgid "Enable debugging information."
34304 msgstr ""
34305
34306 # type: =item
34307 #. type: =item
34308 #: ../tools/virt-make-fs.pl:185
34309 msgid "B<--size=E<lt>NE<gt>>"
34310 msgstr ""
34311
34312 # type: =item
34313 #. type: =item
34314 #: ../tools/virt-make-fs.pl:187
34315 msgid "B<--size=+E<lt>NE<gt>>"
34316 msgstr ""
34317
34318 # type: =item
34319 #. type: =item
34320 #: ../tools/virt-make-fs.pl:189
34321 msgid "B<-s E<lt>NE<gt>>"
34322 msgstr ""
34323
34324 # type: =item
34325 #. type: =item
34326 #: ../tools/virt-make-fs.pl:191
34327 msgid "B<-s +E<lt>NE<gt>>"
34328 msgstr ""
34329
34330 # type: textblock
34331 #. type: textblock
34332 #: ../tools/virt-make-fs.pl:193
34333 msgid ""
34334 "Use the C<--size> (or C<-s>) option to choose the size of the output image."
34335 msgstr ""
34336
34337 # type: textblock
34338 #. type: textblock
34339 #: ../tools/virt-make-fs.pl:196
34340 msgid ""
34341 "If this option is I<not> given, then the output image will be just large "
34342 "enough to contain all the files, with not much wasted space."
34343 msgstr ""
34344
34345 # type: textblock
34346 #. type: textblock
34347 #: ../tools/virt-make-fs.pl:199
34348 msgid ""
34349 "To choose a fixed size output disk, specify an absolute number followed by b/"
34350 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34351 "Petabytes or Exabytes.  This must be large enough to contain all the input "
34352 "files, else you will get an error."
34353 msgstr ""
34354
34355 # type: textblock
34356 #. type: textblock
34357 #: ../tools/virt-make-fs.pl:204
34358 msgid ""
34359 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
34360 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
34361 "Petabytes or Exabytes.  For example: C<--size=+200M> means enough space for "
34362 "the input files, and (approximately) an extra 200 MB free space."
34363 msgstr ""
34364
34365 # type: textblock
34366 #. type: textblock
34367 #: ../tools/virt-make-fs.pl:210
34368 msgid ""
34369 "Note that virt-make-fs estimates free space, and therefore will not produce "
34370 "filesystems containing precisely the free space requested.  (It is much more "
34371 "expensive and time-consuming to produce a filesystem which has precisely the "
34372 "desired free space)."
34373 msgstr ""
34374
34375 # type: =item
34376 #. type: =item
34377 #: ../tools/virt-make-fs.pl:219
34378 msgid "B<--format=E<lt>fmtE<gt>>"
34379 msgstr ""
34380
34381 # type: =item
34382 #. type: =item
34383 #: ../tools/virt-make-fs.pl:221
34384 msgid "B<-F E<lt>fmtE<gt>>"
34385 msgstr ""
34386
34387 # type: textblock
34388 #. type: textblock
34389 #: ../tools/virt-make-fs.pl:223
34390 msgid "Choose the output disk image format."
34391 msgstr ""
34392
34393 # type: textblock
34394 #. type: textblock
34395 #: ../tools/virt-make-fs.pl:225
34396 msgid "The default is C<raw> (raw disk image)."
34397 msgstr ""
34398
34399 # type: textblock
34400 #. type: textblock
34401 #: ../tools/virt-make-fs.pl:227
34402 msgid ""
34403 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
34404 "that would really make sense here is C<qcow2>."
34405 msgstr ""
34406
34407 # type: =item
34408 #. type: =item
34409 #: ../tools/virt-make-fs.pl:234
34410 msgid "B<--type=E<lt>fsE<gt>>"
34411 msgstr ""
34412
34413 # type: =item
34414 #. type: =item
34415 #: ../tools/virt-make-fs.pl:236
34416 msgid "B<-t E<lt>fsE<gt>>"
34417 msgstr ""
34418
34419 # type: textblock
34420 #. type: textblock
34421 #: ../tools/virt-make-fs.pl:238
34422 msgid "Choose the output filesystem type."
34423 msgstr ""
34424
34425 # type: textblock
34426 #. type: textblock
34427 #: ../tools/virt-make-fs.pl:240
34428 msgid "The default is C<ext2>."
34429 msgstr ""
34430
34431 # type: textblock
34432 #. type: textblock
34433 #: ../tools/virt-make-fs.pl:242
34434 msgid ""
34435 "Any filesystem which is supported read-write by libguestfs can be used here."
34436 msgstr ""
34437
34438 # type: =item
34439 #. type: =item
34440 #: ../tools/virt-make-fs.pl:249
34441 msgid "B<--partition>"
34442 msgstr ""
34443
34444 # type: =item
34445 #. type: =item
34446 #: ../tools/virt-make-fs.pl:251
34447 msgid "B<--partition=E<lt>parttypeE<gt>>"
34448 msgstr ""
34449
34450 # type: textblock
34451 #. type: textblock
34452 #: ../tools/virt-make-fs.pl:253
34453 msgid ""
34454 "If specified, this flag adds an MBR partition table to the output disk image."
34455 msgstr ""
34456
34457 # type: textblock
34458 #. type: textblock
34459 #: ../tools/virt-make-fs.pl:256
34460 msgid ""
34461 "You can change the partition table type, eg. C<--partition=gpt> for large "
34462 "disks."
34463 msgstr ""
34464
34465 # type: textblock
34466 #. type: textblock
34467 #: ../tools/virt-make-fs.pl:259
34468 msgid ""
34469 "Note that if you just use a lonesome C<--partition>, the Perl option parser "
34470 "might consider the next parameter to be the partition type.  For example:"
34471 msgstr ""
34472
34473 # type: verbatim
34474 #. type: verbatim
34475 #: ../tools/virt-make-fs.pl:263
34476 #, no-wrap
34477 msgid ""
34478 " virt-make-fs --partition input.tar ...\n"
34479 "\n"
34480 msgstr ""
34481
34482 # type: textblock
34483 #. type: textblock
34484 #: ../tools/virt-make-fs.pl:265
34485 msgid ""
34486 "would cause virt-make-fs to think you wanted to use a partition type of "
34487 "C<input.tar> which is completely wrong.  To avoid this, use C<--> (a double "
34488 "dash) between options and the input file argument:"
34489 msgstr ""
34490
34491 # type: verbatim
34492 #. type: verbatim
34493 #: ../tools/virt-make-fs.pl:269
34494 #, no-wrap
34495 msgid ""
34496 " virt-make-fs --partition -- input.tar ...\n"
34497 "\n"
34498 msgstr ""
34499
34500 #. type: textblock
34501 #: ../tools/virt-make-fs.pl:536
34502 msgid ""
34503 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
34504 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
34505 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
34506 msgstr ""
34507
34508 # type: verbatim
34509 #. type: verbatim
34510 #: ../tools/virt-make-fs.pl:553
34511 #, no-wrap
34512 msgid ""
34513 " export LIBGUESTFS_DEBUG=1\n"
34514 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
34515 "\n"
34516 msgstr ""
34517
34518 # type: textblock
34519 #. type: textblock
34520 #: ../tools/virt-make-fs.pl:556
34521 msgid ""
34522 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
34523 "redhat.com/>"
34524 msgstr ""
34525
34526 # type: textblock
34527 #. type: textblock
34528 #: ../tools/virt-list-partitions.pl:32
34529 msgid ""
34530 "virt-list-partitions - List partitions in a virtual machine or disk image"
34531 msgstr ""
34532
34533 # type: verbatim
34534 #. type: verbatim
34535 #: ../tools/virt-list-partitions.pl:36
34536 #, no-wrap
34537 msgid ""
34538 " virt-list-partitions [--options] domname\n"
34539 "\n"
34540 msgstr ""
34541
34542 # type: verbatim
34543 #. type: verbatim
34544 #: ../tools/virt-list-partitions.pl:38
34545 #, no-wrap
34546 msgid ""
34547 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
34548 "\n"
34549 msgstr ""
34550
34551 # type: textblock
34552 #. type: textblock
34553 #: ../tools/virt-list-partitions.pl:45
34554 msgid ""
34555 "C<virt-list-partitions> is a command line tool to list the partitions that "
34556 "are contained in a virtual machine or disk image.  It is mainly useful as a "
34557 "first step to using L<virt-resize(1)>."
34558 msgstr ""
34559
34560 # type: textblock
34561 #. type: textblock
34562 #: ../tools/virt-list-partitions.pl:50
34563 msgid ""
34564 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
34565 "functionality.  For more complex cases you should look at the L<guestfish(1)"
34566 "> tool."
34567 msgstr ""
34568
34569 # type: =item
34570 #. type: =item
34571 #: ../tools/virt-list-partitions.pl:107
34572 msgid "B<-h> | B<--human-readable>"
34573 msgstr ""
34574
34575 # type: textblock
34576 #. type: textblock
34577 #: ../tools/virt-list-partitions.pl:109
34578 msgid "Show sizes in human-readable form (eg. \"1G\")."
34579 msgstr ""
34580
34581 # type: textblock
34582 #. type: textblock
34583 #: ../tools/virt-list-partitions.pl:117
34584 msgid ""
34585 "With this option, C<virt-list-partitions> displays the type and size of each "
34586 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
34587 msgstr ""
34588
34589 # type: =item
34590 #. type: =item
34591 #: ../tools/virt-list-partitions.pl:124
34592 msgid "B<-t> | B<--total>"
34593 msgstr ""
34594
34595 # type: textblock
34596 #. type: textblock
34597 #: ../tools/virt-list-partitions.pl:126
34598 msgid ""
34599 "Display the total size of each block device (as a separate row or rows)."
34600 msgstr ""
34601
34602 # type: textblock
34603 #. type: textblock
34604 #: ../tools/virt-list-partitions.pl:259
34605 msgid ""
34606 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
34607 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
34608 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
34609 msgstr ""